Skip to content

Commit 061f37a

Browse files
yoshi-automationsofisl
authored andcommitted
feat(recaptchaenterprise): update the API
#### recaptchaenterprise:v1 The following keys were added: - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettings.properties.challengeSettings.$ref - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettings.properties.challengeSettings.description - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings.description - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings.id - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings.properties.scoreThreshold.description - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings.properties.scoreThreshold.format - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings.properties.scoreThreshold.type - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings.type - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings.description - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings.id - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings.properties.actionSettings.additionalProperties.$ref - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings.properties.actionSettings.description - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings.properties.actionSettings.type - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings.properties.defaultSettings.$ref - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings.properties.defaultSettings.description - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings.type The following keys were changed: - schemas.GoogleCloudRecaptchaenterpriseV1RiskAnalysis.properties.challenge.description - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettings.properties.challengeSecurityPreference.description - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettings.properties.integrationType.enum - schemas.GoogleCloudRecaptchaenterpriseV1WebKeySettings.properties.integrationType.enumDescriptions
1 parent 5154a71 commit 061f37a

File tree

2 files changed

+73
-7
lines changed

2 files changed

+73
-7
lines changed

discovery/recaptchaenterprise-v1.json

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@
786786
}
787787
}
788788
},
789-
"revision": "20250608",
789+
"revision": "20250706",
790790
"rootUrl": "https://recaptchaenterprise.googleapis.com/",
791791
"schemas": {
792792
"GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": {
@@ -1922,7 +1922,7 @@
19221922
"id": "GoogleCloudRecaptchaenterpriseV1RiskAnalysis",
19231923
"properties": {
19241924
"challenge": {
1925-
"description": "Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys",
1925+
"description": "Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys",
19261926
"enum": [
19271927
"CHALLENGE_UNSPECIFIED",
19281928
"NOCAPTCHA",
@@ -2544,7 +2544,7 @@
25442544
"type": "array"
25452545
},
25462546
"challengeSecurityPreference": {
2547-
"description": "Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE and SCORE_AND_CHALLENGE.",
2547+
"description": "Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for `IntegrationType` CHECKBOX, INVISIBLE or POLICY_BASED_CHALLENGE.",
25482548
"enum": [
25492549
"CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED",
25502550
"USABILITY",
@@ -2559,25 +2559,61 @@
25592559
],
25602560
"type": "string"
25612561
},
2562+
"challengeSettings": {
2563+
"$ref": "GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings",
2564+
"description": "Optional. Challenge settings."
2565+
},
25622566
"integrationType": {
25632567
"description": "Required. Describes how this key is integrated with the website.",
25642568
"enum": [
25652569
"INTEGRATION_TYPE_UNSPECIFIED",
25662570
"SCORE",
25672571
"CHECKBOX",
2568-
"INVISIBLE"
2572+
"INVISIBLE",
2573+
"POLICY_BASED_CHALLENGE"
25692574
],
25702575
"enumDescriptions": [
25712576
"Default type that indicates this enum hasn't been specified. This is not a valid IntegrationType, one of the other types must be specified instead.",
25722577
"Only used to produce scores. It doesn't display the \"I'm not a robot\" checkbox and never shows captcha challenges.",
25732578
"Displays the \"I'm not a robot\" checkbox and may show captcha challenges after it is checked.",
2574-
"Doesn't display the \"I'm not a robot\" checkbox, but may show captcha challenges after risk analysis."
2579+
"Doesn't display the \"I'm not a robot\" checkbox, but may show captcha challenges after risk analysis.",
2580+
"Displays a visual challenge or not depending on the user risk analysis score."
25752581
],
25762582
"type": "string"
25772583
}
25782584
},
25792585
"type": "object"
25802586
},
2587+
"GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings": {
2588+
"description": "Per-action challenge settings.",
2589+
"id": "GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings",
2590+
"properties": {
2591+
"scoreThreshold": {
2592+
"description": "Required. A challenge is triggered if the end-user score is below that threshold. Value must be between 0 and 1 (inclusive).",
2593+
"format": "float",
2594+
"type": "number"
2595+
}
2596+
},
2597+
"type": "object"
2598+
},
2599+
"GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings": {
2600+
"description": "Settings for POLICY_BASED_CHALLENGE keys to control when a challenge is triggered.",
2601+
"id": "GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings",
2602+
"properties": {
2603+
"actionSettings": {
2604+
"additionalProperties": {
2605+
"$ref": "GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings"
2606+
},
2607+
"description": "Optional. The action to score threshold map. The action name should be the same as the action name passed in the `data-action` attribute (see https://cloud.google.com/recaptcha/docs/actions-website). Action names are case-insensitive. There is a maximum of 100 action settings. An action name has a maximum length of 100.",
2608+
"type": "object"
2609+
},
2610+
"defaultSettings": {
2611+
"$ref": "GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings",
2612+
"description": "Required. Defines when a challenge is triggered (unless the default threshold is overridden for the given action, see `action_settings`)."
2613+
}
2614+
},
2615+
"type": "object"
2616+
},
25812617
"GoogleProtobufEmpty": {
25822618
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
25832619
"id": "GoogleProtobufEmpty",

src/apis/recaptchaenterprise/v1.ts

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ export namespace recaptchaenterprise_v1 {
891891
*/
892892
export interface Schema$GoogleCloudRecaptchaenterpriseV1RiskAnalysis {
893893
/**
894-
* Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys
894+
* Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys
895895
*/
896896
challenge?: string | null;
897897
/**
@@ -1270,14 +1270,44 @@ export namespace recaptchaenterprise_v1 {
12701270
*/
12711271
allowedDomains?: string[] | null;
12721272
/**
1273-
* Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE and SCORE_AND_CHALLENGE.
1273+
* Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for `IntegrationType` CHECKBOX, INVISIBLE or POLICY_BASED_CHALLENGE.
12741274
*/
12751275
challengeSecurityPreference?: string | null;
1276+
/**
1277+
* Optional. Challenge settings.
1278+
*/
1279+
challengeSettings?: Schema$GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings;
12761280
/**
12771281
* Required. Describes how this key is integrated with the website.
12781282
*/
12791283
integrationType?: string | null;
12801284
}
1285+
/**
1286+
* Per-action challenge settings.
1287+
*/
1288+
export interface Schema$GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings {
1289+
/**
1290+
* Required. A challenge is triggered if the end-user score is below that threshold. Value must be between 0 and 1 (inclusive).
1291+
*/
1292+
scoreThreshold?: number | null;
1293+
}
1294+
/**
1295+
* Settings for POLICY_BASED_CHALLENGE keys to control when a challenge is triggered.
1296+
*/
1297+
export interface Schema$GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings {
1298+
/**
1299+
* Optional. The action to score threshold map. The action name should be the same as the action name passed in the `data-action` attribute (see https://cloud.google.com/recaptcha/docs/actions-website). Action names are case-insensitive. There is a maximum of 100 action settings. An action name has a maximum length of 100.
1300+
*/
1301+
actionSettings?: {
1302+
[
1303+
key: string
1304+
]: Schema$GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings;
1305+
} | null;
1306+
/**
1307+
* Required. Defines when a challenge is triggered (unless the default threshold is overridden for the given action, see `action_settings`).
1308+
*/
1309+
defaultSettings?: Schema$GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings;
1310+
}
12811311
/**
12821312
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
12831313
*/

0 commit comments

Comments
 (0)