Skip to content

Commit 2985fd0

Browse files
feat(recaptchaenterprise): update the api
#### recaptchaenterprise:v1 The following keys were added: - schemas.GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.properties.accountId.type (Total Keys: 1) - schemas.GoogleCloudRecaptchaenterpriseV1Event.properties.hashedAccountId.deprecated (Total Keys: 1) - schemas.GoogleCloudRecaptchaenterpriseV1Event.properties.userInfo.$ref (Total Keys: 1) - schemas.GoogleCloudRecaptchaenterpriseV1UserId (Total Keys: 4) - schemas.GoogleCloudRecaptchaenterpriseV1UserInfo (Total Keys: 7)
1 parent fb2cf0d commit 2985fd0

File tree

2 files changed

+83
-9
lines changed

2 files changed

+83
-9
lines changed

docs/dyn/recaptchaenterprise_v1.projects.assessments.html

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ <h3>Method Details</h3>
9494
The object takes the form of:
9595

9696
{ # The request message to annotate an Assessment.
97+
&quot;accountId&quot;: &quot;A String&quot;, # 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.
9798
&quot;annotation&quot;: &quot;A String&quot;, # Optional. The annotation that will be 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.
98-
&quot;hashedAccountId&quot;: &quot;A String&quot;, # Optional. Unique stable hashed user identifier to apply to the assessment. This is an alternative to setting the hashed_account_id in CreateAssessment, for example when the account identifier is not yet known in the initial request. It is recommended that the identifier is hashed using hmac-sha256 with stable secret.
99+
&quot;hashedAccountId&quot;: &quot;A String&quot;, # 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.
99100
&quot;reasons&quot;: [ # Optional. Reasons for the annotation that are assigned to the event.
100101
&quot;A String&quot;,
101102
],
@@ -134,7 +135,7 @@ <h3>Method Details</h3>
134135
The object takes the form of:
135136

136137
{ # A reCAPTCHA Enterprise assessment resource.
137-
&quot;accountDefenderAssessment&quot;: { # Account defender risk assessment. # Output only. Assessment returned by account defender when a hashed_account_id is provided.
138+
&quot;accountDefenderAssessment&quot;: { # Account defender risk assessment. # Output only. Assessment returned by account defender when an account identifier is provided.
138139
&quot;labels&quot;: [ # Output only. Labels for this request.
139140
&quot;A String&quot;,
140141
],
@@ -156,7 +157,7 @@ <h3>Method Details</h3>
156157
&quot;expectedAction&quot;: &quot;A String&quot;, # Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with recaptcha enterprise.
157158
&quot;express&quot;: True or False, # Optional. Flag for a reCAPTCHA express request for an assessment without a token. If enabled, `site_key` must reference a SCORE key with WAF feature set to EXPRESS.
158159
&quot;firewallPolicyEvaluation&quot;: True or False, # Optional. Flag for enabling firewall policy config assessment. If this flag is enabled, the firewall policy will be evaluated and a suggested firewall action will be returned in the response.
159-
&quot;hashedAccountId&quot;: &quot;A String&quot;, # Optional. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
160+
&quot;hashedAccountId&quot;: &quot;A String&quot;, # Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
160161
&quot;headers&quot;: [ # Optional. HTTP header information about the request.
161162
&quot;A String&quot;,
162163
],
@@ -226,6 +227,17 @@ <h3>Method Details</h3>
226227
&quot;value&quot;: 3.14, # Optional. The decimal value of the transaction in the specified currency.
227228
},
228229
&quot;userAgent&quot;: &quot;A String&quot;, # Optional. The user agent present in the request from the user&#x27;s device related to this event.
230+
&quot;userInfo&quot;: { # User information associated with a request protected by reCAPTCHA Enterprise. # Optional. Information about the user that generates this event, when they can be identified. They are often identified through the use of an account for logged-in requests or login/registration requests, or by providing user identifiers for guest actions like checkout.
231+
&quot;accountId&quot;: &quot;A String&quot;, # Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.
232+
&quot;createAccountTime&quot;: &quot;A String&quot;, # Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.
233+
&quot;userIds&quot;: [ # Optional. Identifiers associated with this user or request.
234+
{ # An identifier associated with a user.
235+
&quot;email&quot;: &quot;A String&quot;, # Optional. An email address.
236+
&quot;phoneNumber&quot;: &quot;A String&quot;, # Optional. A phone number. Should use the E.164 format.
237+
&quot;username&quot;: &quot;A String&quot;, # Optional. A unique username, if different from all the other identifiers and `account_id` that are provided. Can be a unique login handle or display name for a user.
238+
},
239+
],
240+
},
229241
&quot;userIpAddress&quot;: &quot;A String&quot;, # Optional. The IP address in the request from the user&#x27;s device related to this event.
230242
&quot;wafTokenAssessment&quot;: True or False, # Optional. Flag for running WAF token assessment. If enabled, the token must be specified, and have been created by a WAF-enabled key.
231243
},
@@ -324,7 +336,7 @@ <h3>Method Details</h3>
324336
An object of the form:
325337

326338
{ # A reCAPTCHA Enterprise assessment resource.
327-
&quot;accountDefenderAssessment&quot;: { # Account defender risk assessment. # Output only. Assessment returned by account defender when a hashed_account_id is provided.
339+
&quot;accountDefenderAssessment&quot;: { # Account defender risk assessment. # Output only. Assessment returned by account defender when an account identifier is provided.
328340
&quot;labels&quot;: [ # Output only. Labels for this request.
329341
&quot;A String&quot;,
330342
],
@@ -346,7 +358,7 @@ <h3>Method Details</h3>
346358
&quot;expectedAction&quot;: &quot;A String&quot;, # Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with recaptcha enterprise.
347359
&quot;express&quot;: True or False, # Optional. Flag for a reCAPTCHA express request for an assessment without a token. If enabled, `site_key` must reference a SCORE key with WAF feature set to EXPRESS.
348360
&quot;firewallPolicyEvaluation&quot;: True or False, # Optional. Flag for enabling firewall policy config assessment. If this flag is enabled, the firewall policy will be evaluated and a suggested firewall action will be returned in the response.
349-
&quot;hashedAccountId&quot;: &quot;A String&quot;, # Optional. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
361+
&quot;hashedAccountId&quot;: &quot;A String&quot;, # Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
350362
&quot;headers&quot;: [ # Optional. HTTP header information about the request.
351363
&quot;A String&quot;,
352364
],
@@ -416,6 +428,17 @@ <h3>Method Details</h3>
416428
&quot;value&quot;: 3.14, # Optional. The decimal value of the transaction in the specified currency.
417429
},
418430
&quot;userAgent&quot;: &quot;A String&quot;, # Optional. The user agent present in the request from the user&#x27;s device related to this event.
431+
&quot;userInfo&quot;: { # User information associated with a request protected by reCAPTCHA Enterprise. # Optional. Information about the user that generates this event, when they can be identified. They are often identified through the use of an account for logged-in requests or login/registration requests, or by providing user identifiers for guest actions like checkout.
432+
&quot;accountId&quot;: &quot;A String&quot;, # Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.
433+
&quot;createAccountTime&quot;: &quot;A String&quot;, # Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.
434+
&quot;userIds&quot;: [ # Optional. Identifiers associated with this user or request.
435+
{ # An identifier associated with a user.
436+
&quot;email&quot;: &quot;A String&quot;, # Optional. An email address.
437+
&quot;phoneNumber&quot;: &quot;A String&quot;, # Optional. A phone number. Should use the E.164 format.
438+
&quot;username&quot;: &quot;A String&quot;, # Optional. A unique username, if different from all the other identifiers and `account_id` that are provided. Can be a unique login handle or display name for a user.
439+
},
440+
],
441+
},
419442
&quot;userIpAddress&quot;: &quot;A String&quot;, # Optional. The IP address in the request from the user&#x27;s device related to this event.
420443
&quot;wafTokenAssessment&quot;: True or False, # Optional. Flag for running WAF token assessment. If enabled, the token must be specified, and have been created by a WAF-enabled key.
421444
},

googleapiclient/discovery_cache/documents/recaptchaenterprise.v1.json

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@
666666
}
667667
}
668668
},
669-
"revision": "20231015",
669+
"revision": "20231022",
670670
"rootUrl": "https://recaptchaenterprise.googleapis.com/",
671671
"schemas": {
672672
"GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": {
@@ -776,6 +776,10 @@
776776
"description": "The request message to annotate an Assessment.",
777777
"id": "GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest",
778778
"properties": {
779+
"accountId": {
780+
"description": "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.",
781+
"type": "string"
782+
},
779783
"annotation": {
780784
"description": "Optional. The annotation that will be 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.",
781785
"enum": [
@@ -802,7 +806,7 @@
802806
"type": "string"
803807
},
804808
"hashedAccountId": {
805-
"description": "Optional. Unique stable hashed user identifier to apply to the assessment. This is an alternative to setting the hashed_account_id in CreateAssessment, for example when the account identifier is not yet known in the initial request. It is recommended that the identifier is hashed using hmac-sha256 with stable secret.",
809+
"description": "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.",
806810
"format": "byte",
807811
"type": "string"
808812
},
@@ -885,7 +889,7 @@
885889
"properties": {
886890
"accountDefenderAssessment": {
887891
"$ref": "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment",
888-
"description": "Output only. Assessment returned by account defender when a hashed_account_id is provided.",
892+
"description": "Output only. Assessment returned by account defender when an account identifier is provided.",
889893
"readOnly": true
890894
},
891895
"accountVerification": {
@@ -1003,7 +1007,8 @@
10031007
"type": "boolean"
10041008
},
10051009
"hashedAccountId": {
1006-
"description": "Optional. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.",
1010+
"deprecated": true,
1011+
"description": "Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.",
10071012
"format": "byte",
10081013
"type": "string"
10091014
},
@@ -1038,6 +1043,10 @@
10381043
"description": "Optional. The user agent present in the request from the user's device related to this event.",
10391044
"type": "string"
10401045
},
1046+
"userInfo": {
1047+
"$ref": "GoogleCloudRecaptchaenterpriseV1UserInfo",
1048+
"description": "Optional. Information about the user that generates this event, when they can be identified. They are often identified through the use of an account for logged-in requests or login/registration requests, or by providing user identifiers for guest actions like checkout."
1049+
},
10411050
"userIpAddress": {
10421051
"description": "Optional. The IP address in the request from the user's device related to this event.",
10431052
"type": "string"
@@ -2007,6 +2016,48 @@
20072016
},
20082017
"type": "object"
20092018
},
2019+
"GoogleCloudRecaptchaenterpriseV1UserId": {
2020+
"description": "An identifier associated with a user.",
2021+
"id": "GoogleCloudRecaptchaenterpriseV1UserId",
2022+
"properties": {
2023+
"email": {
2024+
"description": "Optional. An email address.",
2025+
"type": "string"
2026+
},
2027+
"phoneNumber": {
2028+
"description": "Optional. A phone number. Should use the E.164 format.",
2029+
"type": "string"
2030+
},
2031+
"username": {
2032+
"description": "Optional. A unique username, if different from all the other identifiers and `account_id` that are provided. Can be a unique login handle or display name for a user.",
2033+
"type": "string"
2034+
}
2035+
},
2036+
"type": "object"
2037+
},
2038+
"GoogleCloudRecaptchaenterpriseV1UserInfo": {
2039+
"description": "User information associated with a request protected by reCAPTCHA Enterprise.",
2040+
"id": "GoogleCloudRecaptchaenterpriseV1UserInfo",
2041+
"properties": {
2042+
"accountId": {
2043+
"description": "Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.",
2044+
"type": "string"
2045+
},
2046+
"createAccountTime": {
2047+
"description": "Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.",
2048+
"format": "google-datetime",
2049+
"type": "string"
2050+
},
2051+
"userIds": {
2052+
"description": "Optional. Identifiers associated with this user or request.",
2053+
"items": {
2054+
"$ref": "GoogleCloudRecaptchaenterpriseV1UserId"
2055+
},
2056+
"type": "array"
2057+
}
2058+
},
2059+
"type": "object"
2060+
},
20102061
"GoogleCloudRecaptchaenterpriseV1WafSettings": {
20112062
"description": "Settings specific to keys that can be used for WAF (Web Application Firewall).",
20122063
"id": "GoogleCloudRecaptchaenterpriseV1WafSettings",

0 commit comments

Comments
 (0)