You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dyn/recaptchaenterprise_v1.projects.assessments.html
+28-5Lines changed: 28 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -94,8 +94,9 @@ <h3>Method Details</h3>
94
94
The object takes the form of:
95
95
96
96
{ # The request message to annotate an Assessment.
97
+
"accountId": "A String", # 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.
97
98
"annotation": "A String", # 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
-
"hashedAccountId": "A String", # 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
+
"hashedAccountId": "A String", # 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.
99
100
"reasons": [ # Optional. Reasons for the annotation that are assigned to the event.
100
101
"A String",
101
102
],
@@ -134,7 +135,7 @@ <h3>Method Details</h3>
134
135
The object takes the form of:
135
136
136
137
{ # A reCAPTCHA Enterprise assessment resource.
137
-
"accountDefenderAssessment": { # Account defender risk assessment. # Output only. Assessment returned by account defender when a hashed_account_id is provided.
138
+
"accountDefenderAssessment": { # Account defender risk assessment. # Output only. Assessment returned by account defender when an account identifier is provided.
138
139
"labels": [ # Output only. Labels for this request.
139
140
"A String",
140
141
],
@@ -156,7 +157,7 @@ <h3>Method Details</h3>
156
157
"expectedAction": "A String", # 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.
157
158
"express": 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.
158
159
"firewallPolicyEvaluation": 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
-
"hashedAccountId": "A String", # Optional. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
160
+
"hashedAccountId": "A String", # 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.
160
161
"headers": [ # Optional. HTTP header information about the request.
161
162
"A String",
162
163
],
@@ -226,6 +227,17 @@ <h3>Method Details</h3>
226
227
"value": 3.14, # Optional. The decimal value of the transaction in the specified currency.
227
228
},
228
229
"userAgent": "A String", # Optional. The user agent present in the request from the user's device related to this event.
230
+
"userInfo": { # 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
+
"accountId": "A String", # 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
+
"createAccountTime": "A String", # 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
+
"userIds": [ # Optional. Identifiers associated with this user or request.
234
+
{ # An identifier associated with a user.
235
+
"email": "A String", # Optional. An email address.
236
+
"phoneNumber": "A String", # Optional. A phone number. Should use the E.164 format.
237
+
"username": "A String", # 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
+
},
229
241
"userIpAddress": "A String", # Optional. The IP address in the request from the user's device related to this event.
230
242
"wafTokenAssessment": 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.
231
243
},
@@ -324,7 +336,7 @@ <h3>Method Details</h3>
324
336
An object of the form:
325
337
326
338
{ # A reCAPTCHA Enterprise assessment resource.
327
-
"accountDefenderAssessment": { # Account defender risk assessment. # Output only. Assessment returned by account defender when a hashed_account_id is provided.
339
+
"accountDefenderAssessment": { # Account defender risk assessment. # Output only. Assessment returned by account defender when an account identifier is provided.
328
340
"labels": [ # Output only. Labels for this request.
329
341
"A String",
330
342
],
@@ -346,7 +358,7 @@ <h3>Method Details</h3>
346
358
"expectedAction": "A String", # 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.
347
359
"express": 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.
348
360
"firewallPolicyEvaluation": 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
-
"hashedAccountId": "A String", # Optional. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
361
+
"hashedAccountId": "A String", # 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.
350
362
"headers": [ # Optional. HTTP header information about the request.
351
363
"A String",
352
364
],
@@ -416,6 +428,17 @@ <h3>Method Details</h3>
416
428
"value": 3.14, # Optional. The decimal value of the transaction in the specified currency.
417
429
},
418
430
"userAgent": "A String", # Optional. The user agent present in the request from the user's device related to this event.
431
+
"userInfo": { # 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
+
"accountId": "A String", # 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
+
"createAccountTime": "A String", # 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
+
"userIds": [ # Optional. Identifiers associated with this user or request.
435
+
{ # An identifier associated with a user.
436
+
"email": "A String", # Optional. An email address.
437
+
"phoneNumber": "A String", # Optional. A phone number. Should use the E.164 format.
438
+
"username": "A String", # 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
+
},
419
442
"userIpAddress": "A String", # Optional. The IP address in the request from the user's device related to this event.
420
443
"wafTokenAssessment": 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.
"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
+
},
779
783
"annotation": {
780
784
"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.",
781
785
"enum": [
@@ -802,7 +806,7 @@
802
806
"type": "string"
803
807
},
804
808
"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.",
"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.",
889
893
"readOnly": true
890
894
},
891
895
"accountVerification": {
@@ -1003,7 +1007,8 @@
1003
1007
"type": "boolean"
1004
1008
},
1005
1009
"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.",
1007
1012
"format": "byte",
1008
1013
"type": "string"
1009
1014
},
@@ -1038,6 +1043,10 @@
1038
1043
"description": "Optional. The user agent present in the request from the user's device related to this event.",
"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
+
},
1041
1050
"userIpAddress": {
1042
1051
"description": "Optional. The IP address in the request from the user's device related to this event.",
1043
1052
"type": "string"
@@ -2007,6 +2016,48 @@
2007
2016
},
2008
2017
"type": "object"
2009
2018
},
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
+
},
2010
2061
"GoogleCloudRecaptchaenterpriseV1WafSettings": {
2011
2062
"description": "Settings specific to keys that can be used for WAF (Web Application Firewall).",
0 commit comments