Skip to content

Commit 6cab058

Browse files
committed
address tech review feedback (#1685)
1 parent f3094c8 commit 6cab058

File tree

4 files changed

+26
-30
lines changed

4 files changed

+26
-30
lines changed

src/auth/auth-config.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,19 +1594,18 @@ export class SmsRegionsAuthConfig {
15941594
}
15951595
}
15961596
}
1597-
15981597
/**
1599-
* Enforcement state of reCAPTCHA protection.
1600-
* - 'OFF': Unenforced.
1601-
* - 'AUDIT': Assessment is created but result is not used to enforce.
1602-
* - 'ENFORCE': Assessment is created and result is used to enforce.
1603-
*/
1598+
* Enforcement state of reCAPTCHA protection.
1599+
* - 'OFF': Unenforced.
1600+
* - 'AUDIT': Create assessment but don't enforce the result.
1601+
* - 'ENFORCE': Create assessment and enforce the result.
1602+
*/
16041603
export type RecaptchaProviderEnforcementState = 'OFF' | 'AUDIT' | 'ENFORCE';
16051604

16061605
/**
1607-
* The actions for reCAPTCHA-protected requests.
1608-
* - 'BLOCK': The reCAPTCHA-protected request will be blocked.
1609-
*/
1606+
* The actions to take for reCAPTCHA-protected requests.
1607+
* - 'BLOCK': The reCAPTCHA-protected request will be blocked.
1608+
*/
16101609
export type RecaptchaAction = 'BLOCK';
16111610

16121611
/**
@@ -1624,7 +1623,7 @@ export interface RecaptchaManagedRule {
16241623
}
16251624

16261625
/**
1627-
* The key's platform type: only web supported now.
1626+
* The key's platform type: only web is currently supported.
16281627
*/
16291628
export type RecaptchaKeyClientType = 'WEB';
16301629

@@ -1651,7 +1650,7 @@ export interface RecaptchaKey {
16511650
*/
16521651
export interface RecaptchaConfig {
16531652
/**
1654-
* The enforcement state of email password provider.
1653+
* The enforcement state of the email password provider.
16551654
*/
16561655
emailPasswordEnforcementState?: RecaptchaProviderEnforcementState;
16571656
/**

src/auth/project-config-manager.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ import {
2020
} from './auth-api-request';
2121

2222
/**
23-
* Defines the project config manager used to help manage project config related operations.
24-
* This includes:
25-
* <ul>
26-
* <li>The ability to update and get project config.</li>
23+
* Manages (gets and updates) the current project config.
2724
*/
2825
export class ProjectConfigManager {
2926
private readonly authRequestHandler: AuthRequestHandler;

src/auth/project-config.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,26 @@ export interface UpdateProjectConfigRequest {
3232
*/
3333
smsRegionConfig?: SmsRegionConfig;
3434
/**
35-
* The recaptcha configuration to update on the project.
36-
* By enabling reCAPTCHA Enterprise Integration you are
37-
* agreeing to reCAPTCHA Enterprise
35+
* The reCAPTCHA configuration to update on the project.
36+
* By enabling reCAPTCHA Enterprise integration, you are
37+
* agreeing to the reCAPTCHA Enterprise
3838
* {@link https://cloud.google.com/terms/service-terms | Term of Service}.
3939
*/
4040
recaptchaConfig?: RecaptchaConfig;
4141
}
4242

4343
/**
44-
* Response received from getting or updating a project config.
45-
* This object currently exposes only the SMS Region config.
44+
* Response received when getting or updating the project config.
45+
* Currently only includes the reCAPTCHA and SMS Region config.
4646
*/
4747
export interface ProjectConfigServerResponse {
4848
smsRegionConfig?: SmsRegionConfig;
4949
recaptchaConfig?: RecaptchaConfig;
5050
}
5151

5252
/**
53-
* Request sent to update project config.
54-
* This object currently exposes only the SMS Region config.
53+
* Request to update the project config.
54+
* Currently only includes the reCAPTCHA and SMS Region config.
5555
*/
5656
export interface ProjectConfigClientRequest {
5757
smsRegionConfig?: SmsRegionConfig;
@@ -68,10 +68,10 @@ export class ProjectConfig {
6868
* This is based on the calling code of the destination phone number.
6969
*/
7070
public readonly smsRegionConfig?: SmsRegionConfig;
71-
/**
72-
* The recaptcha configuration to update on the project config.
73-
* By enabling reCAPTCHA Enterprise Integration you are
74-
* agreeing to reCAPTCHA Enterprise
71+
/**
72+
* The reCAPTCHA configuration to update on the project.
73+
* By enabling reCAPTCHA Enterprise integration, you are
74+
* agreeing to the reCAPTCHA Enterprise
7575
* {@link https://cloud.google.com/terms/service-terms | Term of Service}.
7676
*/
7777
private readonly recaptchaConfig_?: RecaptchaAuthConfig;
@@ -125,7 +125,7 @@ export class ProjectConfig {
125125
}
126126

127127
/**
128-
* The recaptcha configuration.
128+
* The reCAPTCHA configuration.
129129
*/
130130
get recaptchaConfig(): RecaptchaConfig | undefined {
131131
return this.recaptchaConfig_;

src/auth/tenant.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ export interface UpdateTenantRequest {
6161
smsRegionConfig?: SmsRegionConfig;
6262

6363
/**
64-
* The recaptcha configuration to update on the tenant.
65-
* By enabling reCAPTCHA Enterprise Integration you are
66-
* agreeing to reCAPTCHA Enterprise
64+
* The reCAPTCHA configuration to update on the tenant.
65+
* By enabling reCAPTCHA Enterprise integration, you are
66+
* agreeing to the reCAPTCHA Enterprise
6767
* {@link https://cloud.google.com/terms/service-terms | Term of Service}.
6868
*/
6969
recaptchaConfig?: RecaptchaConfig;

0 commit comments

Comments
 (0)