Skip to content

Commit

Permalink
feat: [recaptchaenterprise] added SMS Toll Fraud assessment (#5499)
Browse files Browse the repository at this point in the history
* feat: added SMS Toll Fraud assessment

PiperOrigin-RevId: 646633568

Source-Link: googleapis/googleapis@76b2166

Source-Link: googleapis/googleapis-gen@c68010a
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYWVudGVycHJpc2UvLk93bEJvdC55YW1sIiwiaCI6ImM2ODAxMGFhZGIyNDg2YWFmODI4YWJmNzY2Y2I4YmU2ZmI3YzUyZmEifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jun 26, 2024
1 parent c6f4b53 commit 6179569
Show file tree
Hide file tree
Showing 4 changed files with 813 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,12 @@ message Assessment {
// Output only. Fraud Signals specific to the users involved in a payment
// transaction.
FraudSignals fraud_signals = 13 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Assessment returned when a site key, a token, and a phone
// number as `user_id` are provided. Account defender and SMS toll fraud
// protection need to be enabled.
PhoneFraudAssessment phone_fraud_assessment = 12
[(google.api.field_behavior) = OUTPUT_ONLY];
}

// The event being assessed.
Expand Down Expand Up @@ -1116,6 +1122,33 @@ message FraudSignals {
CardSignals card_signals = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Information about SMS toll fraud.
message SmsTollFraudVerdict {
// Reasons contributing to the SMS toll fraud verdict.
enum SmsTollFraudReason {
// Default unspecified reason
SMS_TOLL_FRAUD_REASON_UNSPECIFIED = 0;

// The provided phone number was invalid
INVALID_PHONE_NUMBER = 1;
}

// Output only. Probability of an SMS event being fraudulent.
// Values are from 0.0 (lowest) to 1.0 (highest).
float risk = 1 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Reasons contributing to the SMS toll fraud verdict.
repeated SmsTollFraudReason reasons = 2
[(google.api.field_behavior) = OUTPUT_ONLY];
}

// Assessment for Phone Fraud
message PhoneFraudAssessment {
// Output only. Assessment of this phone event for risk of SMS toll fraud.
SmsTollFraudVerdict sms_toll_fraud_verdict = 1
[(google.api.field_behavior) = OUTPUT_ONLY];
}

// Account defender risk assessment.
message AccountDefenderAssessment {
// Labels returned by account defender for this request.
Expand Down
215 changes: 215 additions & 0 deletions packages/google-cloud-recaptchaenterprise/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6179569

Please sign in to comment.