Skip to content

Commit 23e45c6

Browse files
yoshi-automationmiguelvelezsa
authored andcommitted
feat(recaptchaenterprise)!: update the API
BREAKING CHANGE: This release has breaking changes. #### recaptchaenterprise:v1 The following keys were deleted: - schemas.GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.properties.annotation.description - schemas.GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.properties.reasons.description The following keys were changed: - schemas.GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment.properties.client.description - schemas.GoogleCloudRecaptchaenterpriseV1TokenProperties.properties.invalidReason.enum - schemas.GoogleCloudRecaptchaenterpriseV1TokenProperties.properties.invalidReason.enumDescriptions
1 parent 47f4f57 commit 23e45c6

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

discovery/recaptchaenterprise-v1.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@
786786
}
787787
}
788788
},
789-
"revision": "20251006",
789+
"revision": "20251026",
790790
"rootUrl": "https://recaptchaenterprise.googleapis.com/",
791791
"schemas": {
792792
"GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": {
@@ -918,7 +918,6 @@
918918
"type": "string"
919919
},
920920
"annotation": {
921-
"description": "Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.",
922921
"enum": [
923922
"ANNOTATION_UNSPECIFIED",
924923
"LEGITIMATE",
@@ -952,7 +951,6 @@
952951
"description": "Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes."
953952
},
954953
"reasons": {
955-
"description": "Optional. Reasons for the annotation that are assigned to the event.",
956954
"items": {
957955
"enum": [
958956
"REASON_UNSPECIFIED",
@@ -1092,7 +1090,7 @@
10921090
"id": "GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment",
10931091
"properties": {
10941092
"client": {
1095-
"description": "Optional. Identifies the client module initiating the CreateAssessment request. This can be the link to the client module's project. Examples include: - \"github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager\" - \"cloud.google.com/recaptcha/docs/implement-waf-akamai\" - \"cloud.google.com/recaptcha/docs/implement-waf-cloudflare\" - \"wordpress.org/plugins/recaptcha-something\"",
1093+
"description": "Optional. Identifies the client module initiating the CreateAssessment request. This can be the link to the client module's project. Examples include: - \"github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager\" - \"wordpress.org/plugins/recaptcha-something\"",
10961094
"type": "string"
10971095
},
10981096
"version": {
@@ -2177,7 +2175,8 @@
21772175
"EXPIRED",
21782176
"DUPE",
21792177
"MISSING",
2180-
"BROWSER_ERROR"
2178+
"BROWSER_ERROR",
2179+
"UNEXPECTED_ACTION"
21812180
],
21822181
"enumDescriptions": [
21832182
"Default unspecified type.",
@@ -2186,7 +2185,8 @@
21862185
"The user verification token had expired.",
21872186
"The user verification had already been seen.",
21882187
"The user verification token was not present.",
2189-
"A retriable error (such as network failure) occurred on the browser. Could easily be simulated by an attacker."
2188+
"A retriable error (such as network failure) occurred on the browser. Could easily be simulated by an attacker.",
2189+
"The action provided at token generation was different than the `expected_action` in the assessment request. The comparison is case-insensitive. This reason can only be returned if all of the following are true: - your `site_key` has the POLICY_BASED_CHALLENGE integration type - you set an action score threshold higher than 0.0 - you provided a non-empty `expected_action`"
21902190
],
21912191
"readOnly": true,
21922192
"type": "string"

src/apis/recaptchaenterprise/v1.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@ export namespace recaptchaenterprise_v1 {
192192
* Optional. A stable account identifier to apply to the assessment. This is an alternative to setting `account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
193193
*/
194194
accountId?: string | null;
195-
/**
196-
* Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.
197-
*/
198195
annotation?: string | null;
199196
/**
200197
* Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting `hashed_account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
@@ -204,9 +201,6 @@ export namespace recaptchaenterprise_v1 {
204201
* Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.
205202
*/
206203
phoneAuthenticationEvent?: Schema$GoogleCloudRecaptchaenterpriseV1PhoneAuthenticationEvent;
207-
/**
208-
* Optional. Reasons for the annotation that are assigned to the event.
209-
*/
210204
reasons?: string[] | null;
211205
/**
212206
* Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
@@ -292,7 +286,7 @@ export namespace recaptchaenterprise_v1 {
292286
*/
293287
export interface Schema$GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment {
294288
/**
295-
* Optional. Identifies the client module initiating the CreateAssessment request. This can be the link to the client module's project. Examples include: - "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager" - "cloud.google.com/recaptcha/docs/implement-waf-akamai" - "cloud.google.com/recaptcha/docs/implement-waf-cloudflare" - "wordpress.org/plugins/recaptcha-something"
289+
* Optional. Identifies the client module initiating the CreateAssessment request. This can be the link to the client module's project. Examples include: - "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager" - "wordpress.org/plugins/recaptcha-something"
296290
*/
297291
client?: string | null;
298292
/**

0 commit comments

Comments
 (0)