123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350 |
- syntax = "proto3";
- package google.cloud.recaptchaenterprise.v1beta1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.RecaptchaEnterprise.V1Beta1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1beta1;recaptchaenterprise";
- option java_multiple_files = true;
- option java_outer_classname = "RecaptchaEnterpriseProto";
- option java_package = "com.google.recaptchaenterprise.v1beta1";
- option objc_class_prefix = "GCRE";
- option php_namespace = "Google\\Cloud\\RecaptchaEnterprise\\V1beta1";
- option ruby_package = "Google::Cloud::RecaptchaEnterprise::V1beta1";
- service RecaptchaEnterpriseServiceV1Beta1 {
- option (google.api.default_host) = "recaptchaenterprise.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc CreateAssessment(CreateAssessmentRequest) returns (Assessment) {
- option (google.api.http) = {
- post: "/v1beta1/{parent=projects/*}/assessments"
- body: "assessment"
- };
- option (google.api.method_signature) = "parent,assessment";
- }
-
-
- rpc AnnotateAssessment(AnnotateAssessmentRequest) returns (AnnotateAssessmentResponse) {
- option (google.api.http) = {
- post: "/v1beta1/{name=projects/*/assessments/*}:annotate"
- body: "*"
- };
- option (google.api.method_signature) = "name,annotation";
- }
- }
- message CreateAssessmentRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudresourcemanager.googleapis.com/Project"
- }
- ];
-
- Assessment assessment = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message AnnotateAssessmentRequest {
-
- enum Annotation {
-
- ANNOTATION_UNSPECIFIED = 0;
-
- LEGITIMATE = 1;
-
- FRAUDULENT = 2;
-
-
-
- PASSWORD_CORRECT = 3 [deprecated = true];
-
-
-
- PASSWORD_INCORRECT = 4 [deprecated = true];
- }
-
- enum Reason {
-
- REASON_UNSPECIFIED = 0;
-
-
-
- CHARGEBACK = 1;
-
-
-
- CHARGEBACK_FRAUD = 8;
-
-
-
- CHARGEBACK_DISPUTE = 9;
-
-
-
- PAYMENT_HEURISTICS = 2;
-
-
-
-
- INITIATED_TWO_FACTOR = 7;
-
- PASSED_TWO_FACTOR = 3;
-
- FAILED_TWO_FACTOR = 4;
-
- CORRECT_PASSWORD = 5;
-
- INCORRECT_PASSWORD = 6;
- }
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "recaptchaenterprise.googleapis.com/Assessment"
- }
- ];
-
-
-
- Annotation annotation = 2 [(google.api.field_behavior) = OPTIONAL];
-
- repeated Reason reasons = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
- bytes hashed_account_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message AnnotateAssessmentResponse {
- }
- message PasswordLeakVerification {
-
-
- bytes hashed_user_credentials = 1 [(google.api.field_behavior) = OPTIONAL];
-
- bool credentials_leaked = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- string canonicalized_username = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message Assessment {
- option (google.api.resource) = {
- type: "recaptchaenterprise.googleapis.com/Assessment"
- pattern: "projects/{project}/assessments/{assessment}"
- };
-
- enum ClassificationReason {
-
- CLASSIFICATION_REASON_UNSPECIFIED = 0;
-
- AUTOMATION = 1;
-
- UNEXPECTED_ENVIRONMENT = 2;
-
- TOO_MUCH_TRAFFIC = 3;
-
-
- UNEXPECTED_USAGE_PATTERNS = 4;
-
-
- LOW_CONFIDENCE_SCORE = 5;
- }
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- Event event = 2;
-
-
-
- float score = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- TokenProperties token_properties = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- repeated ClassificationReason reasons = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- PasswordLeakVerification password_leak_verification = 7;
-
-
- AccountDefenderAssessment account_defender_assessment = 8;
- }
- message Event {
-
-
- string token = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
- string site_key = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
- string user_agent = 3 [(google.api.field_behavior) = OPTIONAL];
-
- string user_ip_address = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- string expected_action = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
- bytes hashed_account_id = 6 [(google.api.field_behavior) = OPTIONAL];
- }
- message TokenProperties {
-
- enum InvalidReason {
-
- INVALID_REASON_UNSPECIFIED = 0;
-
- UNKNOWN_INVALID_REASON = 1;
-
- MALFORMED = 2;
-
- EXPIRED = 3;
-
- DUPE = 4;
-
-
-
-
- SITE_MISMATCH = 5 [deprecated = true];
-
- MISSING = 6;
-
-
- BROWSER_ERROR = 7;
- }
-
-
-
-
-
- bool valid = 1;
-
- InvalidReason invalid_reason = 2;
-
- google.protobuf.Timestamp create_time = 3;
-
- string hostname = 4;
-
- string action = 5;
- }
- message AccountDefenderAssessment {
-
- enum AccountDefenderLabel {
-
- ACCOUNT_DEFENDER_LABEL_UNSPECIFIED = 0;
-
- PROFILE_MATCH = 1;
-
-
- SUSPICIOUS_LOGIN_ACTIVITY = 2;
-
-
- SUSPICIOUS_ACCOUNT_CREATION = 3;
-
-
-
- RELATED_ACCOUNTS_NUMBER_HIGH = 4;
- }
-
- repeated AccountDefenderLabel labels = 1;
- }
|