google-cloud-recaptcha_enterprise-v1beta1 0.7.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ce69755408fee0fb5f4516631f6333f667a3a779f9080e34894db0fff4476e4
4
- data.tar.gz: 5fd0f9854353f11614b494d4bf49bf4342df1fbf732853046d882aa51d974a6f
3
+ metadata.gz: 793fef933f05bf8fa945e51622f4c20fe9855a182e7d9b306fb9d459c00f10a5
4
+ data.tar.gz: 97e65dba0ff8e151c00ec3cef0a89e97ee4fcccf4e4430583946b781ac63f8d1
5
5
  SHA512:
6
- metadata.gz: 506344e20c70c353ea04c4ff01e190e41ccea9ad71a2bdab96e81bc090372b560301a602be0b647c58abf8a83d707c1415d2b01666a26b88cf4f1255a0a0bcff
7
- data.tar.gz: f21df9cac1a1f2fe0a7cd09babceda37214d15245cf5471f01cb977e605b3efd31f2efabd0179273cb6bc805c5ac538b28c53ca56142a0f036b5a04c7f4c6bd1
6
+ metadata.gz: fe460fd5594010ab419a86ca3ad6acfebbc944469311e2b74448a634bb244f18b995224ca585e3c559aecdcdc856ab4af79e1d6b4f3092ebca0843086353d4ee
7
+ data.tar.gz: abc37048931653034bd6b0271592c8960a6a349dfb5e7cc99bfb7621e14dec095a1efdb35d489173c379d1bd2a537c94de808952d0bf216a77308dd03e56c158
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the reCAPTCHA Enterprise V1beta1 API
2
2
 
3
- API Client library for the reCAPTCHA Enterprise V1beta1 API
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
 
@@ -47,7 +47,7 @@ for general usage information.
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
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://googleapis.dev/ruby/google-cloud-logging/latest)
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
 
@@ -250,7 +250,7 @@ module Google
250
250
  # @param options [::Gapic::CallOptions, ::Hash]
251
251
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
252
252
  #
253
- # @overload annotate_assessment(name: nil, annotation: nil, reasons: nil, hashed_account_id: nil)
253
+ # @overload annotate_assessment(name: nil, annotation: nil, reasons: nil, hashed_account_id: nil, transaction_event: nil)
254
254
  # Pass arguments to `annotate_assessment` via keyword arguments. Note that at
255
255
  # least one keyword argument is required. To specify no parameters, or to keep all
256
256
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -259,17 +259,21 @@ module Google
259
259
  # Required. The resource name of the Assessment, in the format
260
260
  # "projects/\\{project_number}/assessments/\\{assessment_id}".
261
261
  # @param annotation [::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Annotation]
262
- # Optional. The annotation that will be assigned to the Event. This field can be left
263
- # empty to provide reasons that apply to an event without concluding whether
264
- # the event is legitimate or fraudulent.
262
+ # Optional. The annotation that will be assigned to the Event. This field can
263
+ # be left empty to provide reasons that apply to an event without concluding
264
+ # whether the event is legitimate or fraudulent.
265
265
  # @param reasons [::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Reason>]
266
- # Optional. Optional reasons for the annotation that will be assigned to the Event.
266
+ # Optional. Optional reasons for the annotation that will be assigned to the
267
+ # Event.
267
268
  # @param hashed_account_id [::String]
268
- # Optional. Optional unique stable hashed user identifier to apply to the assessment.
269
- # This is an alternative to setting the hashed_account_id in
269
+ # Optional. Optional unique stable hashed user identifier to apply to the
270
+ # assessment. This is an alternative to setting the hashed_account_id in
270
271
  # CreateAssessment, for example when the account identifier is not yet known
271
272
  # in the initial request. It is recommended that the identifier is hashed
272
273
  # using hmac-sha256 with stable secret.
274
+ # @param transaction_event [::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent, ::Hash]
275
+ # Optional. If the assessment is part of a payment transaction, provide
276
+ # details on payment lifecycle events that occur in the transaction.
273
277
  #
274
278
  # @yield [response, operation] Access the result along with the RPC operation
275
279
  # @yieldparam response [::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentResponse]
@@ -373,9 +377,9 @@ module Google
373
377
  # * (`String`) The path to a service account key file in JSON format
374
378
  # * (`Hash`) A service account key as a Hash
375
379
  # * (`Google::Auth::Credentials`) A googleauth credentials object
376
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
380
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
377
381
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
378
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
382
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
379
383
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
380
384
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
381
385
  # * (`nil`) indicating no credentials
@@ -218,7 +218,7 @@ module Google
218
218
  # @param options [::Gapic::CallOptions, ::Hash]
219
219
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
220
220
  #
221
- # @overload annotate_assessment(name: nil, annotation: nil, reasons: nil, hashed_account_id: nil)
221
+ # @overload annotate_assessment(name: nil, annotation: nil, reasons: nil, hashed_account_id: nil, transaction_event: nil)
222
222
  # Pass arguments to `annotate_assessment` via keyword arguments. Note that at
223
223
  # least one keyword argument is required. To specify no parameters, or to keep all
224
224
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -227,17 +227,21 @@ module Google
227
227
  # Required. The resource name of the Assessment, in the format
228
228
  # "projects/\\{project_number}/assessments/\\{assessment_id}".
229
229
  # @param annotation [::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Annotation]
230
- # Optional. The annotation that will be assigned to the Event. This field can be left
231
- # empty to provide reasons that apply to an event without concluding whether
232
- # the event is legitimate or fraudulent.
230
+ # Optional. The annotation that will be assigned to the Event. This field can
231
+ # be left empty to provide reasons that apply to an event without concluding
232
+ # whether the event is legitimate or fraudulent.
233
233
  # @param reasons [::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Reason>]
234
- # Optional. Optional reasons for the annotation that will be assigned to the Event.
234
+ # Optional. Optional reasons for the annotation that will be assigned to the
235
+ # Event.
235
236
  # @param hashed_account_id [::String]
236
- # Optional. Optional unique stable hashed user identifier to apply to the assessment.
237
- # This is an alternative to setting the hashed_account_id in
237
+ # Optional. Optional unique stable hashed user identifier to apply to the
238
+ # assessment. This is an alternative to setting the hashed_account_id in
238
239
  # CreateAssessment, for example when the account identifier is not yet known
239
240
  # in the initial request. It is recommended that the identifier is hashed
240
241
  # using hmac-sha256 with stable secret.
242
+ # @param transaction_event [::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent, ::Hash]
243
+ # Optional. If the assessment is part of a payment transaction, provide
244
+ # details on payment lifecycle events that occur in the transaction.
241
245
  # @yield [result, operation] Access the result along with the TransportOperation object
242
246
  # @yieldparam result [::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentResponse]
243
247
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -318,9 +322,9 @@ module Google
318
322
  # * (`String`) The path to a service account key file in JSON format
319
323
  # * (`Hash`) A service account key as a Hash
320
324
  # * (`Google::Auth::Credentials`) A googleauth credentials object
321
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
325
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
322
326
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
323
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
327
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
324
328
  # * (`nil`) indicating no credentials
325
329
  # @return [::Object]
326
330
  # @!attribute [rw] scope
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module RecaptchaEnterprise
23
23
  module V1beta1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
3
4
 
@@ -9,97 +10,32 @@ require 'google/api/field_behavior_pb'
9
10
  require 'google/api/resource_pb'
10
11
  require 'google/protobuf/timestamp_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto", :syntax => :proto3) do
14
- add_message "google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest" do
15
- optional :parent, :string, 1
16
- optional :assessment, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.Assessment"
17
- end
18
- add_message "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest" do
19
- optional :name, :string, 1
20
- optional :annotation, :enum, 2, "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation"
21
- repeated :reasons, :enum, 3, "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason"
22
- optional :hashed_account_id, :bytes, 4
23
- end
24
- add_enum "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation" do
25
- value :ANNOTATION_UNSPECIFIED, 0
26
- value :LEGITIMATE, 1
27
- value :FRAUDULENT, 2
28
- value :PASSWORD_CORRECT, 3
29
- value :PASSWORD_INCORRECT, 4
30
- end
31
- add_enum "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason" do
32
- value :REASON_UNSPECIFIED, 0
33
- value :CHARGEBACK, 1
34
- value :CHARGEBACK_FRAUD, 8
35
- value :CHARGEBACK_DISPUTE, 9
36
- value :PAYMENT_HEURISTICS, 2
37
- value :INITIATED_TWO_FACTOR, 7
38
- value :PASSED_TWO_FACTOR, 3
39
- value :FAILED_TWO_FACTOR, 4
40
- value :CORRECT_PASSWORD, 5
41
- value :INCORRECT_PASSWORD, 6
42
- end
43
- add_message "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse" do
44
- end
45
- add_message "google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification" do
46
- optional :hashed_user_credentials, :bytes, 1
47
- optional :credentials_leaked, :bool, 2
48
- optional :canonicalized_username, :string, 3
49
- end
50
- add_message "google.cloud.recaptchaenterprise.v1beta1.Assessment" do
51
- optional :name, :string, 1
52
- optional :event, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.Event"
53
- optional :score, :float, 3
54
- optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1beta1.TokenProperties"
55
- repeated :reasons, :enum, 5, "google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason"
56
- optional :password_leak_verification, :message, 7, "google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification"
57
- optional :account_defender_assessment, :message, 8, "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment"
58
- end
59
- add_enum "google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason" do
60
- value :CLASSIFICATION_REASON_UNSPECIFIED, 0
61
- value :AUTOMATION, 1
62
- value :UNEXPECTED_ENVIRONMENT, 2
63
- value :TOO_MUCH_TRAFFIC, 3
64
- value :UNEXPECTED_USAGE_PATTERNS, 4
65
- value :LOW_CONFIDENCE_SCORE, 5
66
- end
67
- add_message "google.cloud.recaptchaenterprise.v1beta1.Event" do
68
- optional :token, :string, 1
69
- optional :site_key, :string, 2
70
- optional :user_agent, :string, 3
71
- optional :user_ip_address, :string, 4
72
- optional :expected_action, :string, 5
73
- optional :hashed_account_id, :bytes, 6
74
- end
75
- add_message "google.cloud.recaptchaenterprise.v1beta1.TokenProperties" do
76
- optional :valid, :bool, 1
77
- optional :invalid_reason, :enum, 2, "google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason"
78
- optional :create_time, :message, 3, "google.protobuf.Timestamp"
79
- optional :hostname, :string, 4
80
- optional :action, :string, 5
81
- end
82
- add_enum "google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason" do
83
- value :INVALID_REASON_UNSPECIFIED, 0
84
- value :UNKNOWN_INVALID_REASON, 1
85
- value :MALFORMED, 2
86
- value :EXPIRED, 3
87
- value :DUPE, 4
88
- value :SITE_MISMATCH, 5
89
- value :MISSING, 6
90
- value :BROWSER_ERROR, 7
91
- end
92
- add_message "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment" do
93
- repeated :labels, :enum, 1, "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel"
94
- end
95
- add_enum "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel" do
96
- value :ACCOUNT_DEFENDER_LABEL_UNSPECIFIED, 0
97
- value :PROFILE_MATCH, 1
98
- value :SUSPICIOUS_LOGIN_ACTIVITY, 2
99
- value :SUSPICIOUS_ACCOUNT_CREATION, 3
100
- value :RELATED_ACCOUNTS_NUMBER_HIGH, 4
13
+
14
+ descriptor_data = "\nBgoogle/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto\x12(google.cloud.recaptchaenterprise.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x01\n\x17\x43reateAssessmentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12M\n\nassessment\x18\x02 \x01(\x0b\x32\x34.google.cloud.recaptchaenterprise.v1beta1.AssessmentB\x03\xe0\x41\x02\"\x97\x05\n\x10TransactionEvent\x12h\n\nevent_type\x18\x01 \x01(\x0e\x32O.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventTypeB\x03\xe0\x41\x01\x12\x13\n\x06reason\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05value\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x33\n\nevent_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\xba\x03\n\x14TransactionEventType\x12&\n\"TRANSACTION_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10MERCHANT_APPROVE\x10\x01\x12\x11\n\rMERCHANT_DENY\x10\x02\x12\x11\n\rMANUAL_REVIEW\x10\x03\x12\x11\n\rAUTHORIZATION\x10\x04\x12\x19\n\x15\x41UTHORIZATION_DECLINE\x10\x05\x12\x13\n\x0fPAYMENT_CAPTURE\x10\x06\x12\x1b\n\x17PAYMENT_CAPTURE_DECLINE\x10\x07\x12\n\n\x06\x43\x41NCEL\x10\x08\x12\x16\n\x12\x43HARGEBACK_INQUIRY\x10\t\x12\x14\n\x10\x43HARGEBACK_ALERT\x10\n\x12\x16\n\x12\x46RAUD_NOTIFICATION\x10\x0b\x12\x0e\n\nCHARGEBACK\x10\x0c\x12\x1c\n\x18\x43HARGEBACK_REPRESENTMENT\x10\r\x12\x16\n\x12\x43HARGEBACK_REVERSE\x10\x0e\x12\x12\n\x0eREFUND_REQUEST\x10\x0f\x12\x12\n\x0eREFUND_DECLINE\x10\x10\x12\n\n\x06REFUND\x10\x11\x12\x12\n\x0eREFUND_REVERSE\x10\x12\"\xf9\x06\n\x19\x41nnotateAssessmentRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-recaptchaenterprise.googleapis.com/Assessment\x12g\n\nannotation\x18\x02 \x01(\x0e\x32N.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.AnnotationB\x03\xe0\x41\x01\x12`\n\x07reasons\x18\x03 \x03(\x0e\x32J.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.ReasonB\x03\xe0\x41\x01\x12\x1e\n\x11hashed_account_id\x18\x04 \x01(\x0c\x42\x03\xe0\x41\x01\x12Z\n\x11transaction_event\x18\x05 \x01(\x0b\x32:.google.cloud.recaptchaenterprise.v1beta1.TransactionEventB\x03\xe0\x41\x01\"~\n\nAnnotation\x12\x1a\n\x16\x41NNOTATION_UNSPECIFIED\x10\x00\x12\x0e\n\nLEGITIMATE\x10\x01\x12\x0e\n\nFRAUDULENT\x10\x02\x12\x18\n\x10PASSWORD_CORRECT\x10\x03\x1a\x02\x08\x01\x12\x1a\n\x12PASSWORD_INCORRECT\x10\x04\x1a\x02\x08\x01\"\xcf\x02\n\x06Reason\x12\x16\n\x12REASON_UNSPECIFIED\x10\x00\x12\x0e\n\nCHARGEBACK\x10\x01\x12\x14\n\x10\x43HARGEBACK_FRAUD\x10\x08\x12\x16\n\x12\x43HARGEBACK_DISPUTE\x10\t\x12\n\n\x06REFUND\x10\n\x12\x10\n\x0cREFUND_FRAUD\x10\x0b\x12\x18\n\x14TRANSACTION_ACCEPTED\x10\x0c\x12\x18\n\x14TRANSACTION_DECLINED\x10\r\x12\x16\n\x12PAYMENT_HEURISTICS\x10\x02\x12\x18\n\x14INITIATED_TWO_FACTOR\x10\x07\x12\x15\n\x11PASSED_TWO_FACTOR\x10\x03\x12\x15\n\x11\x46\x41ILED_TWO_FACTOR\x10\x04\x12\x14\n\x10\x43ORRECT_PASSWORD\x10\x05\x12\x16\n\x12INCORRECT_PASSWORD\x10\x06\x12\x0f\n\x0bSOCIAL_SPAM\x10\x0e\"\x1c\n\x1a\x41nnotateAssessmentResponse\"\x86\x01\n\x18PasswordLeakVerification\x12$\n\x17hashed_user_credentials\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x63redentials_leaked\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12#\n\x16\x63\x61nonicalized_username\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xb7\x07\n\nAssessment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12>\n\x05\x65vent\x18\x02 \x01(\x0b\x32/.google.cloud.recaptchaenterprise.v1beta1.Event\x12\x12\n\x05score\x18\x03 \x01(\x02\x42\x03\xe0\x41\x03\x12X\n\x10token_properties\x18\x04 \x01(\x0b\x32\x39.google.cloud.recaptchaenterprise.v1beta1.TokenPropertiesB\x03\xe0\x41\x03\x12_\n\x07reasons\x18\x05 \x03(\x0e\x32I.google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReasonB\x03\xe0\x41\x03\x12\x66\n\x1apassword_leak_verification\x18\x07 \x01(\x0b\x32\x42.google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification\x12h\n\x1b\x61\x63\x63ount_defender_assessment\x18\x08 \x01(\x0b\x32\x43.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment\x12h\n\x1b\x66raud_prevention_assessment\x18\x0b \x01(\x0b\x32\x43.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment\"\xe9\x01\n\x14\x43lassificationReason\x12%\n!CLASSIFICATION_REASON_UNSPECIFIED\x10\x00\x12\x0e\n\nAUTOMATION\x10\x01\x12\x1a\n\x16UNEXPECTED_ENVIRONMENT\x10\x02\x12\x14\n\x10TOO_MUCH_TRAFFIC\x10\x03\x12\x1d\n\x19UNEXPECTED_USAGE_PATTERNS\x10\x04\x12\x18\n\x14LOW_CONFIDENCE_SCORE\x10\x05\x12\x15\n\x11SUSPECTED_CARDING\x10\x06\x12\x18\n\x14SUSPECTED_CHARGEBACK\x10\x07:_\xea\x41\\\n-recaptchaenterprise.googleapis.com/Assessment\x12+projects/{project}/assessments/{assessment}\"\x81\x02\n\x05\x45vent\x12\x12\n\x05token\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08site_key\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nuser_agent\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fuser_ip_address\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x65xpected_action\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11hashed_account_id\x18\x06 \x01(\x0c\x42\x03\xe0\x41\x01\x12X\n\x10transaction_data\x18\r \x01(\x0b\x32\x39.google.cloud.recaptchaenterprise.v1beta1.TransactionDataB\x03\xe0\x41\x01\"\x9d\t\n\x0fTransactionData\x12\x1b\n\x0etransaction_id\x18\x0b \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0epayment_method\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61rd_bin\x18\x02 \x01(\t\x12\x16\n\x0e\x63\x61rd_last_four\x18\x03 \x01(\t\x12\x15\n\rcurrency_code\x18\x04 \x01(\t\x12\r\n\x05value\x18\x05 \x01(\x01\x12\x16\n\x0eshipping_value\x18\x0c \x01(\x01\x12[\n\x10shipping_address\x18\x06 \x01(\x0b\x32\x41.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address\x12Z\n\x0f\x62illing_address\x18\x07 \x01(\x0b\x32\x41.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address\x12L\n\x04user\x18\x08 \x01(\x0b\x32>.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User\x12Q\n\tmerchants\x18\r \x03(\x0b\x32>.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User\x12M\n\x05items\x18\x0e \x03(\x0b\x32>.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item\x12[\n\x0cgateway_info\x18\n \x01(\x0b\x32\x45.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo\x1a\x86\x01\n\x07\x41\x64\x64ress\x12\x11\n\trecipient\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x03(\t\x12\x10\n\x08locality\x18\x03 \x01(\t\x12\x1b\n\x13\x61\x64ministrative_area\x18\x04 \x01(\t\x12\x13\n\x0bregion_code\x18\x05 \x01(\t\x12\x13\n\x0bpostal_code\x18\x06 \x01(\t\x1a\x84\x01\n\x04User\x12\x12\n\naccount_id\x18\x06 \x01(\t\x12\x13\n\x0b\x63reation_ms\x18\x01 \x01(\x03\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x16\n\x0e\x65mail_verified\x18\x03 \x01(\x08\x12\x14\n\x0cphone_number\x18\x04 \x01(\t\x12\x16\n\x0ephone_verified\x18\x05 \x01(\x08\x1aR\n\x04Item\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01\x12\x10\n\x08quantity\x18\x03 \x01(\x03\x12\x1b\n\x13merchant_account_id\x18\x04 \x01(\t\x1ap\n\x0bGatewayInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1d\n\x15gateway_response_code\x18\x02 \x01(\t\x12\x19\n\x11\x61vs_response_code\x18\x03 \x01(\t\x12\x19\n\x11\x63vv_response_code\x18\x04 \x01(\tB\x11\n\x0f_transaction_id\"\xff\x02\n\x0fTokenProperties\x12\r\n\x05valid\x18\x01 \x01(\x08\x12_\n\x0einvalid_reason\x18\x02 \x01(\x0e\x32G.google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08hostname\x18\x04 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x05 \x01(\t\"\xa8\x01\n\rInvalidReason\x12\x1e\n\x1aINVALID_REASON_UNSPECIFIED\x10\x00\x12\x1a\n\x16UNKNOWN_INVALID_REASON\x10\x01\x12\r\n\tMALFORMED\x10\x02\x12\x0b\n\x07\x45XPIRED\x10\x03\x12\x08\n\x04\x44UPE\x10\x04\x12\x15\n\rSITE_MISMATCH\x10\x05\x1a\x02\x08\x01\x12\x0b\n\x07MISSING\x10\x06\x12\x11\n\rBROWSER_ERROR\x10\x07\"\xf8\x02\n\x19\x46raudPreventionAssessment\x12\x18\n\x10transaction_risk\x18\x01 \x01(\x02\x12~\n\x19stolen_instrument_verdict\x18\x02 \x01(\x0b\x32[.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict\x12t\n\x14\x63\x61rd_testing_verdict\x18\x03 \x01(\x0b\x32V.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict\x1a\'\n\x17StolenInstrumentVerdict\x12\x0c\n\x04risk\x18\x01 \x01(\x02\x1a\"\n\x12\x43\x61rdTestingVerdict\x12\x0c\n\x04risk\x18\x01 \x01(\x02\"\xbb\x02\n\x19\x41\x63\x63ountDefenderAssessment\x12h\n\x06labels\x18\x01 \x03(\x0e\x32X.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel\"\xb3\x01\n\x14\x41\x63\x63ountDefenderLabel\x12&\n\"ACCOUNT_DEFENDER_LABEL_UNSPECIFIED\x10\x00\x12\x11\n\rPROFILE_MATCH\x10\x01\x12\x1d\n\x19SUSPICIOUS_LOGIN_ACTIVITY\x10\x02\x12\x1f\n\x1bSUSPICIOUS_ACCOUNT_CREATION\x10\x03\x12 \n\x1cRELATED_ACCOUNTS_NUMBER_HIGH\x10\x04\x32\xcd\x04\n!RecaptchaEnterpriseServiceV1Beta1\x12\xdd\x01\n\x10\x43reateAssessment\x12\x41.google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest\x1a\x34.google.cloud.recaptchaenterprise.v1beta1.Assessment\"P\x82\xd3\xe4\x93\x02\x36\"(/v1beta1/{parent=projects/*}/assessments:\nassessment\xda\x41\x11parent,assessment\x12\xef\x01\n\x12\x41nnotateAssessment\x12\x43.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest\x1a\x44.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse\"N\x82\xd3\xe4\x93\x02\x36\"1/v1beta1/{name=projects/*/assessments/*}:annotate:\x01*\xda\x41\x0fname,annotation\x1aV\xca\x41\"recaptchaenterprise.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb2\x02\n&com.google.recaptchaenterprise.v1beta1B\x18RecaptchaEnterpriseProtoP\x01Zacloud.google.com/go/recaptchaenterprise/v2/apiv1beta1/recaptchaenterprisepb;recaptchaenterprisepb\xa2\x02\x04GCRE\xaa\x02(Google.Cloud.RecaptchaEnterprise.V1Beta1\xca\x02(Google\\Cloud\\RecaptchaEnterprise\\V1beta1\xea\x02+Google::Cloud::RecaptchaEnterprise::V1beta1b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
101
35
  end
102
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
103
39
  end
104
40
 
105
41
  module Google
@@ -107,6 +43,8 @@ module Google
107
43
  module RecaptchaEnterprise
108
44
  module V1beta1
109
45
  CreateAssessmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest").msgclass
46
+ TransactionEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TransactionEvent").msgclass
47
+ TransactionEvent::TransactionEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType").enummodule
110
48
  AnnotateAssessmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest").msgclass
111
49
  AnnotateAssessmentRequest::Annotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation").enummodule
112
50
  AnnotateAssessmentRequest::Reason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason").enummodule
@@ -115,8 +53,16 @@ module Google
115
53
  Assessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Assessment").msgclass
116
54
  Assessment::ClassificationReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason").enummodule
117
55
  Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Event").msgclass
56
+ TransactionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TransactionData").msgclass
57
+ TransactionData::Address = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address").msgclass
58
+ TransactionData::User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TransactionData.User").msgclass
59
+ TransactionData::Item = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item").msgclass
60
+ TransactionData::GatewayInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo").msgclass
118
61
  TokenProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TokenProperties").msgclass
119
62
  TokenProperties::InvalidReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason").enummodule
63
+ FraudPreventionAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment").msgclass
64
+ FraudPreventionAssessment::StolenInstrumentVerdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict").msgclass
65
+ FraudPreventionAssessment::CardTestingVerdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict").msgclass
120
66
  AccountDefenderAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment").msgclass
121
67
  AccountDefenderAssessment::AccountDefenderLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel").enummodule
122
68
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -34,6 +34,127 @@ module Google
34
34
  extend ::Google::Protobuf::MessageExts::ClassMethods
35
35
  end
36
36
 
37
+ # Describes an event in the lifecycle of a payment transaction.
38
+ # @!attribute [rw] event_type
39
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent::TransactionEventType]
40
+ # Optional. The type of this transaction event.
41
+ # @!attribute [rw] reason
42
+ # @return [::String]
43
+ # Optional. The reason or standardized code that corresponds with this
44
+ # transaction event, if one exists. For example, a CHARGEBACK event with code
45
+ # 6005.
46
+ # @!attribute [rw] value
47
+ # @return [::Float]
48
+ # Optional. The value that corresponds with this transaction event, if one
49
+ # exists. For example, a refund event where $5.00 was refunded. Currency is
50
+ # obtained from the original transaction data.
51
+ # @!attribute [rw] event_time
52
+ # @return [::Google::Protobuf::Timestamp]
53
+ # Optional. Timestamp when this transaction event occurred; otherwise assumed
54
+ # to be the time of the API call.
55
+ class TransactionEvent
56
+ include ::Google::Protobuf::MessageExts
57
+ extend ::Google::Protobuf::MessageExts::ClassMethods
58
+
59
+ # Enum that represents an event in the payment transaction lifecycle.
60
+ module TransactionEventType
61
+ # Default, unspecified event type.
62
+ TRANSACTION_EVENT_TYPE_UNSPECIFIED = 0
63
+
64
+ # Indicates that the transaction is approved by the merchant. The
65
+ # accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
66
+ # 'CYBERSOURCE', or 'MANUAL_REVIEW'.
67
+ MERCHANT_APPROVE = 1
68
+
69
+ # Indicates that the transaction is denied and concluded due to risks
70
+ # detected by the merchant. The accompanying reasons can include terms such
71
+ # as 'INHOUSE', 'ACCERTIFY', 'CYBERSOURCE', or 'MANUAL_REVIEW'.
72
+ MERCHANT_DENY = 2
73
+
74
+ # Indicates that the transaction is being evaluated by a human, due to
75
+ # suspicion or risk.
76
+ MANUAL_REVIEW = 3
77
+
78
+ # Indicates that the authorization attempt with the card issuer succeeded.
79
+ AUTHORIZATION = 4
80
+
81
+ # Indicates that the authorization attempt with the card issuer failed.
82
+ # The accompanying reasons can include Visa's '54' indicating that the card
83
+ # is expired, or '82' indicating that the CVV is incorrect.
84
+ AUTHORIZATION_DECLINE = 5
85
+
86
+ # Indicates that the transaction is completed because the funds were
87
+ # settled.
88
+ PAYMENT_CAPTURE = 6
89
+
90
+ # Indicates that the transaction could not be completed because the funds
91
+ # were not settled.
92
+ PAYMENT_CAPTURE_DECLINE = 7
93
+
94
+ # Indicates that the transaction has been canceled. Specify the reason
95
+ # for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
96
+ CANCEL = 8
97
+
98
+ # Indicates that the merchant has received a chargeback inquiry due to
99
+ # fraud for the transaction, requesting additional information before a
100
+ # fraud chargeback is officially issued and a formal chargeback
101
+ # notification is sent.
102
+ CHARGEBACK_INQUIRY = 9
103
+
104
+ # Indicates that the merchant has received a chargeback alert due to fraud
105
+ # for the transaction. The process of resolving the dispute without
106
+ # involving the payment network is started.
107
+ CHARGEBACK_ALERT = 10
108
+
109
+ # Indicates that a fraud notification is issued for the transaction, sent
110
+ # by the payment instrument's issuing bank because the transaction appears
111
+ # to be fraudulent. We recommend including TC40 or SAFE data in the
112
+ # `reason` field for this event type. For partial chargebacks, we recommend
113
+ # that you include an amount in the `value` field.
114
+ FRAUD_NOTIFICATION = 11
115
+
116
+ # Indicates that the merchant is informed by the payment network that the
117
+ # transaction has entered the chargeback process due to fraud. Reason code
118
+ # examples include Discover's '6005' and '6041'. For partial chargebacks,
119
+ # we recommend that you include an amount in the `value` field.
120
+ CHARGEBACK = 12
121
+
122
+ # Indicates that the transaction has entered the chargeback process due to
123
+ # fraud, and that the merchant has chosen to enter representment. Reason
124
+ # examples include Discover's '6005' and '6041'. For partial chargebacks,
125
+ # we recommend that you include an amount in the `value` field.
126
+ CHARGEBACK_REPRESENTMENT = 13
127
+
128
+ # Indicates that the transaction has had a fraud chargeback which was
129
+ # illegitimate and was reversed as a result. For partial chargebacks, we
130
+ # recommend that you include an amount in the `value` field.
131
+ CHARGEBACK_REVERSE = 14
132
+
133
+ # Indicates that the merchant has received a refund for a completed
134
+ # transaction. For partial refunds, we recommend that you include an amount
135
+ # in the `value` field. Reason example: 'TAX_EXEMPT' (partial refund of
136
+ # exempt tax)
137
+ REFUND_REQUEST = 15
138
+
139
+ # Indicates that the merchant has received a refund request for this
140
+ # transaction, but that they have declined it. For partial refunds, we
141
+ # recommend that you include an amount in the `value` field. Reason
142
+ # example: 'TAX_EXEMPT' (partial refund of exempt tax)
143
+ REFUND_DECLINE = 16
144
+
145
+ # Indicates that the completed transaction was refunded by the merchant.
146
+ # For partial refunds, we recommend that you include an amount in the
147
+ # `value` field. Reason example: 'TAX_EXEMPT' (partial refund of exempt
148
+ # tax)
149
+ REFUND = 17
150
+
151
+ # Indicates that the completed transaction was refunded by the merchant,
152
+ # and that this refund was reversed. For partial refunds, we recommend that
153
+ # you include an amount in the `value` field.
154
+ REFUND_REVERSE = 18
155
+ end
156
+ end
157
+
37
158
  # The request message to annotate an Assessment.
38
159
  # @!attribute [rw] name
39
160
  # @return [::String]
@@ -41,19 +162,24 @@ module Google
41
162
  # "projects/\\{project_number}/assessments/\\{assessment_id}".
42
163
  # @!attribute [rw] annotation
43
164
  # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Annotation]
44
- # Optional. The annotation that will be assigned to the Event. This field can be left
45
- # empty to provide reasons that apply to an event without concluding whether
46
- # the event is legitimate or fraudulent.
165
+ # Optional. The annotation that will be assigned to the Event. This field can
166
+ # be left empty to provide reasons that apply to an event without concluding
167
+ # whether the event is legitimate or fraudulent.
47
168
  # @!attribute [rw] reasons
48
169
  # @return [::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest::Reason>]
49
- # Optional. Optional reasons for the annotation that will be assigned to the Event.
170
+ # Optional. Optional reasons for the annotation that will be assigned to the
171
+ # Event.
50
172
  # @!attribute [rw] hashed_account_id
51
173
  # @return [::String]
52
- # Optional. Optional unique stable hashed user identifier to apply to the assessment.
53
- # This is an alternative to setting the hashed_account_id in
174
+ # Optional. Optional unique stable hashed user identifier to apply to the
175
+ # assessment. This is an alternative to setting the hashed_account_id in
54
176
  # CreateAssessment, for example when the account identifier is not yet known
55
177
  # in the initial request. It is recommended that the identifier is hashed
56
178
  # using hmac-sha256 with stable secret.
179
+ # @!attribute [rw] transaction_event
180
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent]
181
+ # Optional. If the assessment is part of a payment transaction, provide
182
+ # details on payment lifecycle events that occur in the transaction.
57
183
  class AnnotateAssessmentRequest
58
184
  include ::Google::Protobuf::MessageExts
59
185
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -85,21 +211,38 @@ module Google
85
211
  # Default unspecified reason.
86
212
  REASON_UNSPECIFIED = 0
87
213
 
88
- # Indicates a chargeback issued for the transaction with no other details.
89
- # When possible, specify the type by using CHARGEBACK_FRAUD or
214
+ # Indicates that the transaction had a chargeback issued with no other
215
+ # details. When possible, specify the type by using CHARGEBACK_FRAUD or
90
216
  # CHARGEBACK_DISPUTE instead.
91
217
  CHARGEBACK = 1
92
218
 
93
- # Indicates a chargeback related to an alleged unauthorized transaction
94
- # from the cardholder's perspective (for example, the card number was
95
- # stolen).
219
+ # Indicates that the transaction had a chargeback issued related to an
220
+ # alleged unauthorized transaction from the cardholder's perspective (for
221
+ # example, the card number was stolen).
96
222
  CHARGEBACK_FRAUD = 8
97
223
 
98
- # Indicates a chargeback related to the cardholder having provided their
99
- # card details but allegedly not being satisfied with the purchase
100
- # (for example, misrepresentation, attempted cancellation).
224
+ # Indicates that the transaction had a chargeback issued related to the
225
+ # cardholder having provided their card details but allegedly not being
226
+ # satisfied with the purchase (for example, misrepresentation, attempted
227
+ # cancellation).
101
228
  CHARGEBACK_DISPUTE = 9
102
229
 
230
+ # Indicates that the completed payment transaction was refunded by the
231
+ # seller.
232
+ REFUND = 10
233
+
234
+ # Indicates that the completed payment transaction was determined to be
235
+ # fraudulent by the seller, and was cancelled and refunded as a result.
236
+ REFUND_FRAUD = 11
237
+
238
+ # Indicates that the payment transaction was accepted, and the user was
239
+ # charged.
240
+ TRANSACTION_ACCEPTED = 12
241
+
242
+ # Indicates that the payment transaction was declined, for example due to
243
+ # invalid card details.
244
+ TRANSACTION_DECLINED = 13
245
+
103
246
  # Indicates the transaction associated with the assessment is suspected of
104
247
  # being fraudulent based on the payment method, billing details, shipping
105
248
  # address or other transaction information.
@@ -122,6 +265,10 @@ module Google
122
265
 
123
266
  # Indicates the user provided an incorrect password.
124
267
  INCORRECT_PASSWORD = 6
268
+
269
+ # Indicates that the user sent unwanted and abusive messages to other users
270
+ # of the platform, such as spam, scams, phishing, or social engineering.
271
+ SOCIAL_SPAM = 14
125
272
  end
126
273
  end
127
274
 
@@ -134,22 +281,23 @@ module Google
134
281
  # Password leak verification info.
135
282
  # @!attribute [rw] hashed_user_credentials
136
283
  # @return [::String]
137
- # Optional. Scrypt hash of the username+password that the customer wants to verify
138
- # against a known password leak.
284
+ # Optional. Scrypt hash of the username+password that the customer wants to
285
+ # verify against a known password leak.
139
286
  # @!attribute [r] credentials_leaked
140
287
  # @return [::Boolean]
141
- # Output only. Whether or not the user's credentials are present in a known leak.
288
+ # Output only. Whether or not the user's credentials are present in a known
289
+ # leak.
142
290
  # @!attribute [rw] canonicalized_username
143
291
  # @return [::String]
144
- # Optional. The username part of the user credentials for which we want to trigger a
145
- # leak check in canonicalized form. This is the same data used to create the
146
- # hashed_user_credentials on the customer side.
292
+ # Optional. The username part of the user credentials for which we want to
293
+ # trigger a leak check in canonicalized form. This is the same data used to
294
+ # create the hashed_user_credentials on the customer side.
147
295
  class PasswordLeakVerification
148
296
  include ::Google::Protobuf::MessageExts
149
297
  extend ::Google::Protobuf::MessageExts::ClassMethods
150
298
  end
151
299
 
152
- # A recaptcha assessment resource.
300
+ # A reCAPTCHA Enterprise assessment resource.
153
301
  # @!attribute [r] name
154
302
  # @return [::String]
155
303
  # Output only. The resource name for the Assessment in the format
@@ -176,8 +324,11 @@ module Google
176
324
  # environment.
177
325
  # @!attribute [rw] account_defender_assessment
178
326
  # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::AccountDefenderAssessment]
179
- # Assessment returned by Account Defender when a hashed_account_id is
327
+ # Assessment returned by account defender when a hashed_account_id is
180
328
  # provided.
329
+ # @!attribute [rw] fraud_prevention_assessment
330
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::FraudPreventionAssessment]
331
+ # Assessment returned by Fraud Prevention when TransactionData is provided.
181
332
  class Assessment
182
333
  include ::Google::Protobuf::MessageExts
183
334
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,38 +354,202 @@ module Google
203
354
  # Too little traffic has been received from this site thus far to generate
204
355
  # quality risk analysis.
205
356
  LOW_CONFIDENCE_SCORE = 5
357
+
358
+ # The request matches behavioral characteristics of a carding attack.
359
+ SUSPECTED_CARDING = 6
360
+
361
+ # The request matches behavioral characteristics of chargebacks for fraud.
362
+ SUSPECTED_CHARGEBACK = 7
206
363
  end
207
364
  end
208
365
 
209
366
  # @!attribute [rw] token
210
367
  # @return [::String]
211
- # Optional. The user response token provided by the reCAPTCHA client-side integration
212
- # on your site.
368
+ # Optional. The user response token provided by the reCAPTCHA Enterprise
369
+ # client-side integration on your site.
213
370
  # @!attribute [rw] site_key
214
371
  # @return [::String]
215
- # Optional. The site key that was used to invoke reCAPTCHA on your site and generate
216
- # the token.
372
+ # Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
373
+ # site and generate the token.
217
374
  # @!attribute [rw] user_agent
218
375
  # @return [::String]
219
- # Optional. The user agent present in the request from the user's device related to
220
- # this event.
376
+ # Optional. The user agent present in the request from the user's device
377
+ # related to this event.
221
378
  # @!attribute [rw] user_ip_address
222
379
  # @return [::String]
223
- # Optional. The IP address in the request from the user's device related to this event.
380
+ # Optional. The IP address in the request from the user's device related to
381
+ # this event.
224
382
  # @!attribute [rw] expected_action
225
383
  # @return [::String]
226
- # Optional. The expected action for this type of event. This should be the same action
227
- # provided at token generation time on client-side platforms already
228
- # integrated with recaptcha enterprise.
384
+ # Optional. The expected action for this type of event. This should be the
385
+ # same action provided at token generation time on client-side platforms
386
+ # already integrated with recaptcha enterprise.
229
387
  # @!attribute [rw] hashed_account_id
230
388
  # @return [::String]
231
- # Optional. Optional unique stable hashed user identifier for the request. The
232
- # identifier should ideally be hashed using sha256 with stable secret.
389
+ # Optional. Unique stable hashed user identifier for the request. The
390
+ # identifier must be hashed using hmac-sha256 with stable secret.
391
+ # @!attribute [rw] transaction_data
392
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData]
393
+ # Optional. Data describing a payment transaction to be assessed. Sending
394
+ # this data enables reCAPTCHA Enterprise Fraud Prevention and the
395
+ # FraudPreventionAssessment component in the response.
233
396
  class Event
234
397
  include ::Google::Protobuf::MessageExts
235
398
  extend ::Google::Protobuf::MessageExts::ClassMethods
236
399
  end
237
400
 
401
+ # Transaction data associated with a payment protected by reCAPTCHA Enterprise.
402
+ # All fields are optional.
403
+ # @!attribute [rw] transaction_id
404
+ # @return [::String]
405
+ # Unique identifier for the transaction. This custom identifier can be used
406
+ # to reference this transaction in the future, for example, labeling a refund
407
+ # or chargeback event. Two attempts at the same transaction should use the
408
+ # same transaction id.
409
+ # @!attribute [rw] payment_method
410
+ # @return [::String]
411
+ # The payment method for the transaction. The allowed values are:
412
+ #
413
+ # * credit-card
414
+ # * debit-card
415
+ # * gift-card
416
+ # * processor-\\{name} (If a third-party is used, for example,
417
+ # processor-paypal)
418
+ # * custom-\\{name} (If an alternative method is used, for example,
419
+ # custom-crypto)
420
+ # @!attribute [rw] card_bin
421
+ # @return [::String]
422
+ # The Bank Identification Number - generally the first 6 or 8 digits of the
423
+ # card.
424
+ # @!attribute [rw] card_last_four
425
+ # @return [::String]
426
+ # The last four digits of the card.
427
+ # @!attribute [rw] currency_code
428
+ # @return [::String]
429
+ # The currency code in ISO-4217 format.
430
+ # @!attribute [rw] value
431
+ # @return [::Float]
432
+ # The decimal value of the transaction in the specified currency.
433
+ # @!attribute [rw] shipping_value
434
+ # @return [::Float]
435
+ # The value of shipping in the specified currency. 0 for free or no shipping.
436
+ # @!attribute [rw] shipping_address
437
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address]
438
+ # Destination address if this transaction involves shipping a physical item.
439
+ # @!attribute [rw] billing_address
440
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address]
441
+ # Address associated with the payment method when applicable.
442
+ # @!attribute [rw] user
443
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User]
444
+ # Information about the user paying/initiating the transaction.
445
+ # @!attribute [rw] merchants
446
+ # @return [::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User>]
447
+ # Information about the user or users fulfilling the transaction.
448
+ # @!attribute [rw] items
449
+ # @return [::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Item>]
450
+ # Items purchased in this transaction.
451
+ # @!attribute [rw] gateway_info
452
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::GatewayInfo]
453
+ # Information about the payment gateway's response to the transaction.
454
+ class TransactionData
455
+ include ::Google::Protobuf::MessageExts
456
+ extend ::Google::Protobuf::MessageExts::ClassMethods
457
+
458
+ # Structured address format for billing and shipping addresses.
459
+ # @!attribute [rw] recipient
460
+ # @return [::String]
461
+ # The recipient name, potentially including information such as "care of".
462
+ # @!attribute [rw] address
463
+ # @return [::Array<::String>]
464
+ # The first lines of the address. The first line generally contains the
465
+ # street name and number, and further lines may include information such as
466
+ # an apartment number.
467
+ # @!attribute [rw] locality
468
+ # @return [::String]
469
+ # The town/city of the address.
470
+ # @!attribute [rw] administrative_area
471
+ # @return [::String]
472
+ # The state, province, or otherwise administrative area of the address.
473
+ # @!attribute [rw] region_code
474
+ # @return [::String]
475
+ # The CLDR country/region of the address.
476
+ # @!attribute [rw] postal_code
477
+ # @return [::String]
478
+ # The postal or ZIP code of the address.
479
+ class Address
480
+ include ::Google::Protobuf::MessageExts
481
+ extend ::Google::Protobuf::MessageExts::ClassMethods
482
+ end
483
+
484
+ # Details about a user's account involved in the transaction.
485
+ # @!attribute [rw] account_id
486
+ # @return [::String]
487
+ # Unique account identifier for this user. If using account defender,
488
+ # this should match the hashed_account_id field. Otherwise, a unique and
489
+ # persistent identifier for this account.
490
+ # @!attribute [rw] creation_ms
491
+ # @return [::Integer]
492
+ # The epoch milliseconds of the user's account creation.
493
+ # @!attribute [rw] email
494
+ # @return [::String]
495
+ # The email address of the user.
496
+ # @!attribute [rw] email_verified
497
+ # @return [::Boolean]
498
+ # Whether the email has been verified to be accessible by the user (OTP or
499
+ # similar).
500
+ # @!attribute [rw] phone_number
501
+ # @return [::String]
502
+ # The phone number of the user, with country code.
503
+ # @!attribute [rw] phone_verified
504
+ # @return [::Boolean]
505
+ # Whether the phone number has been verified to be accessible by the user
506
+ # (OTP or similar).
507
+ class User
508
+ include ::Google::Protobuf::MessageExts
509
+ extend ::Google::Protobuf::MessageExts::ClassMethods
510
+ end
511
+
512
+ # Line items being purchased in this transaction.
513
+ # @!attribute [rw] name
514
+ # @return [::String]
515
+ # The full name of the item.
516
+ # @!attribute [rw] value
517
+ # @return [::Float]
518
+ # The value per item that the user is paying, in the transaction currency,
519
+ # after discounts.
520
+ # @!attribute [rw] quantity
521
+ # @return [::Integer]
522
+ # The quantity of this item that is being purchased.
523
+ # @!attribute [rw] merchant_account_id
524
+ # @return [::String]
525
+ # When a merchant is specified, its corresponding account_id. Necessary to
526
+ # populate marketplace-style transactions.
527
+ class Item
528
+ include ::Google::Protobuf::MessageExts
529
+ extend ::Google::Protobuf::MessageExts::ClassMethods
530
+ end
531
+
532
+ # Details about the transaction from the gateway.
533
+ # @!attribute [rw] name
534
+ # @return [::String]
535
+ # Name of the gateway service (for example, stripe, square, paypal).
536
+ # @!attribute [rw] gateway_response_code
537
+ # @return [::String]
538
+ # Gateway response code describing the state of the transaction.
539
+ # @!attribute [rw] avs_response_code
540
+ # @return [::String]
541
+ # AVS response code from the gateway
542
+ # (available only when reCAPTCHA Enterprise is called after authorization).
543
+ # @!attribute [rw] cvv_response_code
544
+ # @return [::String]
545
+ # CVV response code from the gateway
546
+ # (available only when reCAPTCHA Enterprise is called after authorization).
547
+ class GatewayInfo
548
+ include ::Google::Protobuf::MessageExts
549
+ extend ::Google::Protobuf::MessageExts::ClassMethods
550
+ end
551
+ end
552
+
238
553
  # @!attribute [rw] valid
239
554
  # @return [::Boolean]
240
555
  # Whether the provided user response token is valid. When valid = false, the
@@ -276,7 +591,7 @@ module Google
276
591
  DUPE = 4
277
592
 
278
593
  # The user verification token did not match the provided site key.
279
- # This may be a configuration error (e.g. development keys used in
594
+ # This may be a configuration error (for example, development keys used in
280
595
  # production) or end users trying to use verification tokens from other
281
596
  # sites.
282
597
  SITE_MISMATCH = 5
@@ -290,7 +605,46 @@ module Google
290
605
  end
291
606
  end
292
607
 
293
- # Account Defender risk assessment.
608
+ # Assessment for Fraud Prevention.
609
+ # @!attribute [rw] transaction_risk
610
+ # @return [::Float]
611
+ # Probability (0-1) of this transaction being fraudulent. Summarizes the
612
+ # combined risk of attack vectors below.
613
+ # @!attribute [rw] stolen_instrument_verdict
614
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::FraudPreventionAssessment::StolenInstrumentVerdict]
615
+ # Assessment of this transaction for risk of a stolen instrument.
616
+ # @!attribute [rw] card_testing_verdict
617
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::FraudPreventionAssessment::CardTestingVerdict]
618
+ # Assessment of this transaction for risk of being part of a card testing
619
+ # attack.
620
+ class FraudPreventionAssessment
621
+ include ::Google::Protobuf::MessageExts
622
+ extend ::Google::Protobuf::MessageExts::ClassMethods
623
+
624
+ # Information about stolen instrument fraud, where the user is not the
625
+ # legitimate owner of the instrument being used for the purchase.
626
+ # @!attribute [rw] risk
627
+ # @return [::Float]
628
+ # Probability (0-1) of this transaction being executed with a stolen
629
+ # instrument.
630
+ class StolenInstrumentVerdict
631
+ include ::Google::Protobuf::MessageExts
632
+ extend ::Google::Protobuf::MessageExts::ClassMethods
633
+ end
634
+
635
+ # Information about card testing fraud, where an adversary is testing
636
+ # fraudulently obtained cards or brute forcing their details.
637
+ # @!attribute [rw] risk
638
+ # @return [::Float]
639
+ # Probability (0-1) of this transaction attempt being part of a card
640
+ # testing attack.
641
+ class CardTestingVerdict
642
+ include ::Google::Protobuf::MessageExts
643
+ extend ::Google::Protobuf::MessageExts::ClassMethods
644
+ end
645
+ end
646
+
647
+ # Account defender risk assessment.
294
648
  # @!attribute [rw] labels
295
649
  # @return [::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::AccountDefenderAssessment::AccountDefenderLabel>]
296
650
  # Labels for this request.
@@ -298,7 +652,7 @@ module Google
298
652
  include ::Google::Protobuf::MessageExts
299
653
  extend ::Google::Protobuf::MessageExts::ClassMethods
300
654
 
301
- # Labels returned by Account Defender for this request.
655
+ # Labels returned by account defender for this request.
302
656
  module AccountDefenderLabel
303
657
  # Default unspecified type.
304
658
  ACCOUNT_DEFENDER_LABEL_UNSPECIFIED = 0
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-recaptcha_enterprise-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -212,5 +212,6 @@ requirements: []
212
212
  rubygems_version: 3.4.2
213
213
  signing_key:
214
214
  specification_version: 4
215
- summary: API Client library for the reCAPTCHA Enterprise V1beta1 API
215
+ summary: Help protect your website from fraudulent activity, spam, and abuse without
216
+ creating friction.
216
217
  test_files: []