google-cloud-recaptcha_enterprise-v1 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/client.rb +62 -59
- data/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service.rb +1 -1
- data/lib/google/cloud/recaptcha_enterprise/v1/version.rb +1 -1
- data/lib/google/cloud/recaptcha_enterprise/v1.rb +2 -2
- data/lib/google/cloud/recaptchaenterprise/v1/recaptchaenterprise_pb.rb +129 -0
- data/proto_docs/google/api/client.rb +324 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.rb +495 -57
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +12 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5088ca44e052b45ccfcb29d3fbc4510235c0c3aaedaf4c1255ff237cef928470
|
4
|
+
data.tar.gz: fcba51e7ee2249c21c663cff12f900b9cc5ea0563e03596dfacf1494cdd36f41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2155f69b74449d32a98e898872a3bcbcd831189eb23da2a754050a3b3f541f04a41e834d2c16b7bd9814f2176262ab3a323047ef76a1f73a0074173d1ec9f893
|
7
|
+
data.tar.gz: 01f2bbef7f1fd929e7c4b3efbd2be83954cf08f854c83c7aa89d52f124dc016076e757015767d2b803371e8672f5abb943aac754012c2babdc5f60f41b2a3caa
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the reCAPTCHA Enterprise V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Help protect your website from fraudulent activity, spam, and abuse without creating friction.
|
4
4
|
|
5
5
|
reCAPTCHA Enterprise is a service that protects your site from spam and abuse.
|
6
6
|
|
@@ -46,8 +46,8 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -260,7 +260,7 @@ module Google
|
|
260
260
|
# @param options [::Gapic::CallOptions, ::Hash]
|
261
261
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
262
262
|
#
|
263
|
-
# @overload annotate_assessment(name: nil, annotation: nil, reasons: nil, hashed_account_id: nil)
|
263
|
+
# @overload annotate_assessment(name: nil, annotation: nil, reasons: nil, hashed_account_id: nil, transaction_event: nil)
|
264
264
|
# Pass arguments to `annotate_assessment` via keyword arguments. Note that at
|
265
265
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
266
266
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -269,17 +269,21 @@ module Google
|
|
269
269
|
# Required. The resource name of the Assessment, in the format
|
270
270
|
# "projects/\\{project}/assessments/\\{assessment}".
|
271
271
|
# @param annotation [::Google::Cloud::RecaptchaEnterprise::V1::AnnotateAssessmentRequest::Annotation]
|
272
|
-
# Optional. The annotation that will be assigned to the Event. This field can
|
273
|
-
# empty to provide reasons that apply to an event without concluding
|
274
|
-
# the event is legitimate or fraudulent.
|
272
|
+
# Optional. The annotation that will be assigned to the Event. This field can
|
273
|
+
# be left empty to provide reasons that apply to an event without concluding
|
274
|
+
# whether the event is legitimate or fraudulent.
|
275
275
|
# @param reasons [::Array<::Google::Cloud::RecaptchaEnterprise::V1::AnnotateAssessmentRequest::Reason>]
|
276
|
-
# Optional. Optional reasons for the annotation that will be assigned to the
|
276
|
+
# Optional. Optional reasons for the annotation that will be assigned to the
|
277
|
+
# Event.
|
277
278
|
# @param hashed_account_id [::String]
|
278
279
|
# Optional. Unique stable hashed user identifier to apply to the assessment.
|
279
280
|
# This is an alternative to setting the hashed_account_id in
|
280
281
|
# CreateAssessment, for example when the account identifier is not yet known
|
281
282
|
# in the initial request. It is recommended that the identifier is hashed
|
282
283
|
# using hmac-sha256 with stable secret.
|
284
|
+
# @param transaction_event [::Google::Cloud::RecaptchaEnterprise::V1::TransactionEvent, ::Hash]
|
285
|
+
# Optional. If the assessment is part of a payment transaction, provide
|
286
|
+
# details on payment lifecycle events that occur in the transaction.
|
283
287
|
#
|
284
288
|
# @yield [response, operation] Access the result along with the RPC operation
|
285
289
|
# @yieldparam response [::Google::Cloud::RecaptchaEnterprise::V1::AnnotateAssessmentResponse]
|
@@ -481,13 +485,11 @@ module Google
|
|
481
485
|
# # Call the list_keys method.
|
482
486
|
# result = client.list_keys request
|
483
487
|
#
|
484
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
485
|
-
# #
|
486
|
-
#
|
487
|
-
# # methods are also available for managing paging directly.
|
488
|
-
# result.each do |response|
|
488
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
489
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
490
|
+
# result.each do |item|
|
489
491
|
# # Each element is of type ::Google::Cloud::RecaptchaEnterprise::V1::Key.
|
490
|
-
# p
|
492
|
+
# p item
|
491
493
|
# end
|
492
494
|
#
|
493
495
|
def list_keys request, options = nil
|
@@ -553,8 +555,8 @@ module Google
|
|
553
555
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
554
556
|
#
|
555
557
|
# @param key [::String]
|
556
|
-
# Required. The public key name linked to the requested secret key in the
|
557
|
-
# "projects/\\{project}/keys/\\{key}".
|
558
|
+
# Required. The public key name linked to the requested secret key in the
|
559
|
+
# format "projects/\\{project}/keys/\\{key}".
|
558
560
|
#
|
559
561
|
# @yield [response, operation] Access the result along with the RPC operation
|
560
562
|
# @yieldparam response [::Google::Cloud::RecaptchaEnterprise::V1::RetrieveLegacySecretKeyResponse]
|
@@ -727,8 +729,8 @@ module Google
|
|
727
729
|
# @param key [::Google::Cloud::RecaptchaEnterprise::V1::Key, ::Hash]
|
728
730
|
# Required. The key to update.
|
729
731
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
730
|
-
# Optional. The mask to control which fields of the key get updated. If the
|
731
|
-
# present, all fields will be updated.
|
732
|
+
# Optional. The mask to control which fields of the key get updated. If the
|
733
|
+
# mask is not present, all fields will be updated.
|
732
734
|
#
|
733
735
|
# @yield [response, operation] Access the result along with the RPC operation
|
734
736
|
# @yieldparam response [::Google::Cloud::RecaptchaEnterprise::V1::Key]
|
@@ -898,7 +900,7 @@ module Google
|
|
898
900
|
# @param options [::Gapic::CallOptions, ::Hash]
|
899
901
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
900
902
|
#
|
901
|
-
# @overload migrate_key(name: nil)
|
903
|
+
# @overload migrate_key(name: nil, skip_billing_check: nil)
|
902
904
|
# Pass arguments to `migrate_key` via keyword arguments. Note that at
|
903
905
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
904
906
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -906,6 +908,15 @@ module Google
|
|
906
908
|
# @param name [::String]
|
907
909
|
# Required. The name of the key to be migrated, in the format
|
908
910
|
# "projects/\\{project}/keys/\\{key}".
|
911
|
+
# @param skip_billing_check [::Boolean]
|
912
|
+
# Optional. If true, skips the billing check.
|
913
|
+
# A reCAPTCHA Enterprise key or migrated key behaves differently than a
|
914
|
+
# reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see
|
915
|
+
# https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid
|
916
|
+
# any disruption of your usage, we check that a billing account is present.
|
917
|
+
# If your usage of reCAPTCHA is under the free quota, you can safely skip the
|
918
|
+
# billing check and proceed with the migration. See
|
919
|
+
# https://cloud.google.com/recaptcha-enterprise/docs/billing-information.
|
909
920
|
#
|
910
921
|
# @yield [response, operation] Access the result along with the RPC operation
|
911
922
|
# @yieldparam response [::Google::Cloud::RecaptchaEnterprise::V1::Key]
|
@@ -1077,16 +1088,15 @@ module Google
|
|
1077
1088
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1078
1089
|
#
|
1079
1090
|
# @param parent [::String]
|
1080
|
-
# Required. The name of the project to list related account groups from, in
|
1081
|
-
# "projects/\\{project}".
|
1091
|
+
# Required. The name of the project to list related account groups from, in
|
1092
|
+
# the format "projects/\\{project}".
|
1082
1093
|
# @param page_size [::Integer]
|
1083
|
-
# Optional. The maximum number of groups to return. The service might return
|
1084
|
-
# this value.
|
1085
|
-
#
|
1086
|
-
# The maximum value is 1000; values above 1000 are coerced to 1000.
|
1094
|
+
# Optional. The maximum number of groups to return. The service might return
|
1095
|
+
# fewer than this value. If unspecified, at most 50 groups are returned. The
|
1096
|
+
# maximum value is 1000; values above 1000 are coerced to 1000.
|
1087
1097
|
# @param page_token [::String]
|
1088
|
-
# Optional. A page token, received from a previous `ListRelatedAccountGroups`
|
1089
|
-
# Provide this to retrieve the subsequent page.
|
1098
|
+
# Optional. A page token, received from a previous `ListRelatedAccountGroups`
|
1099
|
+
# call. Provide this to retrieve the subsequent page.
|
1090
1100
|
#
|
1091
1101
|
# When paginating, all other parameters provided to
|
1092
1102
|
# `ListRelatedAccountGroups` must match the call that provided the page
|
@@ -1112,13 +1122,11 @@ module Google
|
|
1112
1122
|
# # Call the list_related_account_groups method.
|
1113
1123
|
# result = client.list_related_account_groups request
|
1114
1124
|
#
|
1115
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1116
|
-
# #
|
1117
|
-
#
|
1118
|
-
# # methods are also available for managing paging directly.
|
1119
|
-
# result.each do |response|
|
1125
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1126
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1127
|
+
# result.each do |item|
|
1120
1128
|
# # Each element is of type ::Google::Cloud::RecaptchaEnterprise::V1::RelatedAccountGroup.
|
1121
|
-
# p
|
1129
|
+
# p item
|
1122
1130
|
# end
|
1123
1131
|
#
|
1124
1132
|
def list_related_account_groups request, options = nil
|
@@ -1185,13 +1193,12 @@ module Google
|
|
1185
1193
|
# Required. The resource name for the related account group in the format
|
1186
1194
|
# `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
|
1187
1195
|
# @param page_size [::Integer]
|
1188
|
-
# Optional. The maximum number of accounts to return. The service might
|
1189
|
-
# than this value.
|
1190
|
-
#
|
1191
|
-
# The maximum value is 1000; values above 1000 are coerced to 1000.
|
1196
|
+
# Optional. The maximum number of accounts to return. The service might
|
1197
|
+
# return fewer than this value. If unspecified, at most 50 accounts are
|
1198
|
+
# returned. The maximum value is 1000; values above 1000 are coerced to 1000.
|
1192
1199
|
# @param page_token [::String]
|
1193
|
-
# Optional. A page token, received from a previous
|
1194
|
-
# call.
|
1200
|
+
# Optional. A page token, received from a previous
|
1201
|
+
# `ListRelatedAccountGroupMemberships` call.
|
1195
1202
|
#
|
1196
1203
|
# When paginating, all other parameters provided to
|
1197
1204
|
# `ListRelatedAccountGroupMemberships` must match the call that provided the
|
@@ -1217,13 +1224,11 @@ module Google
|
|
1217
1224
|
# # Call the list_related_account_group_memberships method.
|
1218
1225
|
# result = client.list_related_account_group_memberships request
|
1219
1226
|
#
|
1220
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1221
|
-
# #
|
1222
|
-
#
|
1223
|
-
# # methods are also available for managing paging directly.
|
1224
|
-
# result.each do |response|
|
1227
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1228
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1229
|
+
# result.each do |item|
|
1225
1230
|
# # Each element is of type ::Google::Cloud::RecaptchaEnterprise::V1::RelatedAccountGroupMembership.
|
1226
|
-
# p
|
1231
|
+
# p item
|
1227
1232
|
# end
|
1228
1233
|
#
|
1229
1234
|
def list_related_account_group_memberships request, options = nil
|
@@ -1287,17 +1292,17 @@ module Google
|
|
1287
1292
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1288
1293
|
#
|
1289
1294
|
# @param project [::String]
|
1290
|
-
# Required. The name of the project to search related account group
|
1291
|
-
# Specify the project name in the following format:
|
1295
|
+
# Required. The name of the project to search related account group
|
1296
|
+
# memberships from. Specify the project name in the following format:
|
1297
|
+
# "projects/\\{project}".
|
1292
1298
|
# @param hashed_account_id [::String]
|
1293
|
-
# Optional. The unique stable hashed user identifier we should search
|
1294
|
-
# The identifier should correspond to a `hashed_account_id`
|
1295
|
-
# previous `CreateAssessment` or `AnnotateAssessment` call.
|
1299
|
+
# Optional. The unique stable hashed user identifier we should search
|
1300
|
+
# connections to. The identifier should correspond to a `hashed_account_id`
|
1301
|
+
# provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
|
1296
1302
|
# @param page_size [::Integer]
|
1297
|
-
# Optional. The maximum number of groups to return. The service might return
|
1298
|
-
# this value.
|
1299
|
-
#
|
1300
|
-
# The maximum value is 1000; values above 1000 are coerced to 1000.
|
1303
|
+
# Optional. The maximum number of groups to return. The service might return
|
1304
|
+
# fewer than this value. If unspecified, at most 50 groups are returned. The
|
1305
|
+
# maximum value is 1000; values above 1000 are coerced to 1000.
|
1301
1306
|
# @param page_token [::String]
|
1302
1307
|
# Optional. A page token, received from a previous
|
1303
1308
|
# `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
|
@@ -1327,13 +1332,11 @@ module Google
|
|
1327
1332
|
# # Call the search_related_account_group_memberships method.
|
1328
1333
|
# result = client.search_related_account_group_memberships request
|
1329
1334
|
#
|
1330
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1331
|
-
# #
|
1332
|
-
#
|
1333
|
-
# # methods are also available for managing paging directly.
|
1334
|
-
# result.each do |response|
|
1335
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1336
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1337
|
+
# result.each do |item|
|
1335
1338
|
# # Each element is of type ::Google::Cloud::RecaptchaEnterprise::V1::RelatedAccountGroupMembership.
|
1336
|
-
# p
|
1339
|
+
# p item
|
1337
1340
|
# end
|
1338
1341
|
#
|
1339
1342
|
def search_related_account_group_memberships request, options = nil
|
@@ -1416,9 +1419,9 @@ module Google
|
|
1416
1419
|
# * (`String`) The path to a service account key file in JSON format
|
1417
1420
|
# * (`Hash`) A service account key as a Hash
|
1418
1421
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1419
|
-
# (see the [googleauth docs](https://
|
1422
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1420
1423
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1421
|
-
# (see the [signet docs](https://
|
1424
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1422
1425
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1423
1426
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1424
1427
|
# * (`nil`) indicating no credentials
|
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
##
|
34
34
|
# Service to determine the likelihood an event is legitimate.
|
35
35
|
#
|
36
|
-
#
|
36
|
+
# @example Load this service and instantiate a gRPC client
|
37
37
|
#
|
38
38
|
# require "google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service"
|
39
39
|
# client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
|
@@ -23,9 +23,9 @@ module Google
|
|
23
23
|
module Cloud
|
24
24
|
module RecaptchaEnterprise
|
25
25
|
##
|
26
|
-
#
|
26
|
+
# API client module.
|
27
27
|
#
|
28
|
-
# @example
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
29
|
#
|
30
30
|
# require "google/cloud/recaptcha_enterprise/v1"
|
31
31
|
# client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
|
@@ -17,11 +17,39 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
17
|
optional :parent, :string, 1
|
18
18
|
optional :assessment, :message, 2, "google.cloud.recaptchaenterprise.v1.Assessment"
|
19
19
|
end
|
20
|
+
add_message "google.cloud.recaptchaenterprise.v1.TransactionEvent" do
|
21
|
+
optional :event_type, :enum, 1, "google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType"
|
22
|
+
optional :reason, :string, 2
|
23
|
+
optional :value, :double, 3
|
24
|
+
optional :event_time, :message, 4, "google.protobuf.Timestamp"
|
25
|
+
end
|
26
|
+
add_enum "google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType" do
|
27
|
+
value :TRANSACTION_EVENT_TYPE_UNSPECIFIED, 0
|
28
|
+
value :MERCHANT_APPROVE, 1
|
29
|
+
value :MERCHANT_DENY, 2
|
30
|
+
value :MANUAL_REVIEW, 3
|
31
|
+
value :AUTHORIZATION, 4
|
32
|
+
value :AUTHORIZATION_DECLINE, 5
|
33
|
+
value :PAYMENT_CAPTURE, 6
|
34
|
+
value :PAYMENT_CAPTURE_DECLINE, 7
|
35
|
+
value :CANCEL, 8
|
36
|
+
value :CHARGEBACK_INQUIRY, 9
|
37
|
+
value :CHARGEBACK_ALERT, 10
|
38
|
+
value :FRAUD_NOTIFICATION, 11
|
39
|
+
value :CHARGEBACK, 12
|
40
|
+
value :CHARGEBACK_REPRESENTMENT, 13
|
41
|
+
value :CHARGEBACK_REVERSE, 14
|
42
|
+
value :REFUND_REQUEST, 15
|
43
|
+
value :REFUND_DECLINE, 16
|
44
|
+
value :REFUND, 17
|
45
|
+
value :REFUND_REVERSE, 18
|
46
|
+
end
|
20
47
|
add_message "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest" do
|
21
48
|
optional :name, :string, 1
|
22
49
|
optional :annotation, :enum, 2, "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation"
|
23
50
|
repeated :reasons, :enum, 3, "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason"
|
24
51
|
optional :hashed_account_id, :bytes, 4
|
52
|
+
optional :transaction_event, :message, 5, "google.cloud.recaptchaenterprise.v1.TransactionEvent"
|
25
53
|
end
|
26
54
|
add_enum "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation" do
|
27
55
|
value :ANNOTATION_UNSPECIFIED, 0
|
@@ -49,6 +77,32 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
49
77
|
end
|
50
78
|
add_message "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse" do
|
51
79
|
end
|
80
|
+
add_message "google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo" do
|
81
|
+
optional :request_token, :string, 3
|
82
|
+
optional :last_verification_time, :message, 4, "google.protobuf.Timestamp"
|
83
|
+
oneof :endpoint do
|
84
|
+
optional :email_address, :string, 1
|
85
|
+
optional :phone_number, :string, 2
|
86
|
+
end
|
87
|
+
end
|
88
|
+
add_message "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo" do
|
89
|
+
repeated :endpoints, :message, 1, "google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo"
|
90
|
+
optional :language_code, :string, 3
|
91
|
+
optional :latest_verification_result, :enum, 7, "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result"
|
92
|
+
optional :username, :string, 2
|
93
|
+
end
|
94
|
+
add_enum "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result" do
|
95
|
+
value :RESULT_UNSPECIFIED, 0
|
96
|
+
value :SUCCESS_USER_VERIFIED, 1
|
97
|
+
value :ERROR_USER_NOT_VERIFIED, 2
|
98
|
+
value :ERROR_SITE_ONBOARDING_INCOMPLETE, 3
|
99
|
+
value :ERROR_RECIPIENT_NOT_ALLOWED, 4
|
100
|
+
value :ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED, 5
|
101
|
+
value :ERROR_CRITICAL_INTERNAL, 6
|
102
|
+
value :ERROR_CUSTOMER_QUOTA_EXHAUSTED, 7
|
103
|
+
value :ERROR_VERIFICATION_BYPASSED, 8
|
104
|
+
value :ERROR_VERDICT_MISMATCH, 9
|
105
|
+
end
|
52
106
|
add_message "google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification" do
|
53
107
|
optional :lookup_hash_prefix, :bytes, 1
|
54
108
|
optional :encrypted_user_credentials_hash, :bytes, 2
|
@@ -60,8 +114,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
60
114
|
optional :event, :message, 2, "google.cloud.recaptchaenterprise.v1.Event"
|
61
115
|
optional :risk_analysis, :message, 3, "google.cloud.recaptchaenterprise.v1.RiskAnalysis"
|
62
116
|
optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1.TokenProperties"
|
117
|
+
optional :account_verification, :message, 5, "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo"
|
63
118
|
optional :account_defender_assessment, :message, 6, "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment"
|
64
119
|
optional :private_password_leak_verification, :message, 8, "google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification"
|
120
|
+
optional :fraud_prevention_assessment, :message, 11, "google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment"
|
65
121
|
end
|
66
122
|
add_message "google.cloud.recaptchaenterprise.v1.Event" do
|
67
123
|
optional :token, :string, 1
|
@@ -70,6 +126,50 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
70
126
|
optional :user_ip_address, :string, 4
|
71
127
|
optional :expected_action, :string, 5
|
72
128
|
optional :hashed_account_id, :bytes, 6
|
129
|
+
optional :transaction_data, :message, 13, "google.cloud.recaptchaenterprise.v1.TransactionData"
|
130
|
+
end
|
131
|
+
add_message "google.cloud.recaptchaenterprise.v1.TransactionData" do
|
132
|
+
proto3_optional :transaction_id, :string, 11
|
133
|
+
optional :payment_method, :string, 1
|
134
|
+
optional :card_bin, :string, 2
|
135
|
+
optional :card_last_four, :string, 3
|
136
|
+
optional :currency_code, :string, 4
|
137
|
+
optional :value, :double, 5
|
138
|
+
optional :shipping_value, :double, 12
|
139
|
+
optional :shipping_address, :message, 6, "google.cloud.recaptchaenterprise.v1.TransactionData.Address"
|
140
|
+
optional :billing_address, :message, 7, "google.cloud.recaptchaenterprise.v1.TransactionData.Address"
|
141
|
+
optional :user, :message, 8, "google.cloud.recaptchaenterprise.v1.TransactionData.User"
|
142
|
+
repeated :merchants, :message, 13, "google.cloud.recaptchaenterprise.v1.TransactionData.User"
|
143
|
+
repeated :items, :message, 14, "google.cloud.recaptchaenterprise.v1.TransactionData.Item"
|
144
|
+
optional :gateway_info, :message, 10, "google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo"
|
145
|
+
end
|
146
|
+
add_message "google.cloud.recaptchaenterprise.v1.TransactionData.Address" do
|
147
|
+
optional :recipient, :string, 1
|
148
|
+
repeated :address, :string, 2
|
149
|
+
optional :locality, :string, 3
|
150
|
+
optional :administrative_area, :string, 4
|
151
|
+
optional :region_code, :string, 5
|
152
|
+
optional :postal_code, :string, 6
|
153
|
+
end
|
154
|
+
add_message "google.cloud.recaptchaenterprise.v1.TransactionData.User" do
|
155
|
+
optional :account_id, :string, 6
|
156
|
+
optional :creation_ms, :int64, 1
|
157
|
+
optional :email, :string, 2
|
158
|
+
optional :email_verified, :bool, 3
|
159
|
+
optional :phone_number, :string, 4
|
160
|
+
optional :phone_verified, :bool, 5
|
161
|
+
end
|
162
|
+
add_message "google.cloud.recaptchaenterprise.v1.TransactionData.Item" do
|
163
|
+
optional :name, :string, 1
|
164
|
+
optional :value, :double, 2
|
165
|
+
optional :quantity, :int64, 3
|
166
|
+
optional :merchant_account_id, :string, 4
|
167
|
+
end
|
168
|
+
add_message "google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo" do
|
169
|
+
optional :name, :string, 1
|
170
|
+
optional :gateway_response_code, :string, 2
|
171
|
+
optional :avs_response_code, :string, 3
|
172
|
+
optional :cvv_response_code, :string, 4
|
73
173
|
end
|
74
174
|
add_message "google.cloud.recaptchaenterprise.v1.RiskAnalysis" do
|
75
175
|
optional :score, :float, 1
|
@@ -82,12 +182,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
82
182
|
value :TOO_MUCH_TRAFFIC, 3
|
83
183
|
value :UNEXPECTED_USAGE_PATTERNS, 4
|
84
184
|
value :LOW_CONFIDENCE_SCORE, 5
|
185
|
+
value :SUSPECTED_CARDING, 6
|
186
|
+
value :SUSPECTED_CHARGEBACK, 7
|
85
187
|
end
|
86
188
|
add_message "google.cloud.recaptchaenterprise.v1.TokenProperties" do
|
87
189
|
optional :valid, :bool, 1
|
88
190
|
optional :invalid_reason, :enum, 2, "google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason"
|
89
191
|
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
90
192
|
optional :hostname, :string, 4
|
193
|
+
optional :android_package_name, :string, 8
|
194
|
+
optional :ios_bundle_id, :string, 9
|
91
195
|
optional :action, :string, 5
|
92
196
|
end
|
93
197
|
add_enum "google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason" do
|
@@ -99,6 +203,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
99
203
|
value :MISSING, 5
|
100
204
|
value :BROWSER_ERROR, 6
|
101
205
|
end
|
206
|
+
add_message "google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment" do
|
207
|
+
optional :transaction_risk, :float, 1
|
208
|
+
optional :stolen_instrument_verdict, :message, 2, "google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict"
|
209
|
+
optional :card_testing_verdict, :message, 3, "google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict"
|
210
|
+
end
|
211
|
+
add_message "google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict" do
|
212
|
+
optional :risk, :float, 1
|
213
|
+
end
|
214
|
+
add_message "google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict" do
|
215
|
+
optional :risk, :float, 1
|
216
|
+
end
|
102
217
|
add_message "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment" do
|
103
218
|
repeated :labels, :enum, 1, "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel"
|
104
219
|
end
|
@@ -137,6 +252,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
137
252
|
end
|
138
253
|
add_message "google.cloud.recaptchaenterprise.v1.MigrateKeyRequest" do
|
139
254
|
optional :name, :string, 1
|
255
|
+
optional :skip_billing_check, :bool, 2
|
140
256
|
end
|
141
257
|
add_message "google.cloud.recaptchaenterprise.v1.GetMetricsRequest" do
|
142
258
|
optional :name, :string, 1
|
@@ -269,17 +385,30 @@ module Google
|
|
269
385
|
module RecaptchaEnterprise
|
270
386
|
module V1
|
271
387
|
CreateAssessmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest").msgclass
|
388
|
+
TransactionEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionEvent").msgclass
|
389
|
+
TransactionEvent::TransactionEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType").enummodule
|
272
390
|
AnnotateAssessmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest").msgclass
|
273
391
|
AnnotateAssessmentRequest::Annotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation").enummodule
|
274
392
|
AnnotateAssessmentRequest::Reason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason").enummodule
|
275
393
|
AnnotateAssessmentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse").msgclass
|
394
|
+
EndpointVerificationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo").msgclass
|
395
|
+
AccountVerificationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountVerificationInfo").msgclass
|
396
|
+
AccountVerificationInfo::Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result").enummodule
|
276
397
|
PrivatePasswordLeakVerification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification").msgclass
|
277
398
|
Assessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Assessment").msgclass
|
278
399
|
Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Event").msgclass
|
400
|
+
TransactionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionData").msgclass
|
401
|
+
TransactionData::Address = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionData.Address").msgclass
|
402
|
+
TransactionData::User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionData.User").msgclass
|
403
|
+
TransactionData::Item = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionData.Item").msgclass
|
404
|
+
TransactionData::GatewayInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo").msgclass
|
279
405
|
RiskAnalysis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RiskAnalysis").msgclass
|
280
406
|
RiskAnalysis::ClassificationReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason").enummodule
|
281
407
|
TokenProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TokenProperties").msgclass
|
282
408
|
TokenProperties::InvalidReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason").enummodule
|
409
|
+
FraudPreventionAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment").msgclass
|
410
|
+
FraudPreventionAssessment::StolenInstrumentVerdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict").msgclass
|
411
|
+
FraudPreventionAssessment::CardTestingVerdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict").msgclass
|
283
412
|
AccountDefenderAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment").msgclass
|
284
413
|
AccountDefenderAssessment::AccountDefenderLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel").enummodule
|
285
414
|
CreateKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.CreateKeyRequest").msgclass
|