123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998 |
- syntax = "proto3";
- package google.cloud.recaptchaenterprise.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.RecaptchaEnterprise.V1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1;recaptchaenterprise";
- option java_multiple_files = true;
- option java_outer_classname = "RecaptchaEnterpriseProto";
- option java_package = "com.google.recaptchaenterprise.v1";
- option objc_class_prefix = "GCRE";
- option php_namespace = "Google\\Cloud\\RecaptchaEnterprise\\V1";
- option ruby_package = "Google::Cloud::RecaptchaEnterprise::V1";
- service RecaptchaEnterpriseService {
- 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: "/v1/{parent=projects/*}/assessments"
- body: "assessment"
- };
- option (google.api.method_signature) = "parent,assessment";
- }
-
-
- rpc AnnotateAssessment(AnnotateAssessmentRequest) returns (AnnotateAssessmentResponse) {
- option (google.api.http) = {
- post: "/v1/{name=projects/*/assessments/*}:annotate"
- body: "*"
- };
- option (google.api.method_signature) = "name,annotation";
- }
-
- rpc CreateKey(CreateKeyRequest) returns (Key) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*}/keys"
- body: "key"
- };
- }
-
- rpc ListKeys(ListKeysRequest) returns (ListKeysResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*}/keys"
- };
- }
-
-
-
- rpc RetrieveLegacySecretKey(RetrieveLegacySecretKeyRequest) returns (RetrieveLegacySecretKeyResponse) {
- option (google.api.http) = {
- get: "/v1/{key=projects/*/keys/*}:retrieveLegacySecretKey"
- };
- option (google.api.method_signature) = "key";
- }
-
- rpc GetKey(GetKeyRequest) returns (Key) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/keys/*}"
- };
- }
-
- rpc UpdateKey(UpdateKeyRequest) returns (Key) {
- option (google.api.http) = {
- patch: "/v1/{key.name=projects/*/keys/*}"
- body: "key"
- };
- }
-
- rpc DeleteKey(DeleteKeyRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/keys/*}"
- };
- }
-
-
-
-
-
-
- rpc MigrateKey(MigrateKeyRequest) returns (Key) {
- option (google.api.http) = {
- post: "/v1/{name=projects/*/keys/*}:migrate"
- body: "*"
- };
- }
-
-
- rpc GetMetrics(GetMetricsRequest) returns (Metrics) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/keys/*/metrics}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListRelatedAccountGroups(ListRelatedAccountGroupsRequest) returns (ListRelatedAccountGroupsResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*}/relatedaccountgroups"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc ListRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest) returns (ListRelatedAccountGroupMembershipsResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/relatedaccountgroups/*}/memberships"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest) returns (SearchRelatedAccountGroupMembershipsResponse) {
- option (google.api.http) = {
- post: "/v1/{project=projects/*}/relatedaccountgroupmemberships:search"
- body: "*"
- };
- option (google.api.method_signature) = "project,hashed_account_id";
- }
- }
- 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;
-
-
- REFUND = 10;
-
-
- REFUND_FRAUD = 11;
-
-
- TRANSACTION_ACCEPTED = 12;
-
-
- TRANSACTION_DECLINED = 13;
-
-
-
- PAYMENT_HEURISTICS = 2;
-
-
-
-
- INITIATED_TWO_FACTOR = 7;
-
- PASSED_TWO_FACTOR = 3;
-
- FAILED_TWO_FACTOR = 4;
-
- CORRECT_PASSWORD = 5;
-
- INCORRECT_PASSWORD = 6;
-
-
- SOCIAL_SPAM = 14;
- }
-
-
- 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 PrivatePasswordLeakVerification {
-
-
- bytes lookup_hash_prefix = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- bytes encrypted_user_credentials_hash = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated bytes encrypted_leak_match_prefixes = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- bytes reencrypted_user_credentials_hash = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message Assessment {
- option (google.api.resource) = {
- type: "recaptchaenterprise.googleapis.com/Assessment"
- pattern: "projects/{project}/assessments/{assessment}"
- };
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- Event event = 2;
-
- RiskAnalysis risk_analysis = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- TokenProperties token_properties = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- AccountDefenderAssessment account_defender_assessment = 6;
-
-
- PrivatePasswordLeakVerification private_password_leak_verification = 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 RiskAnalysis {
-
- enum ClassificationReason {
-
- CLASSIFICATION_REASON_UNSPECIFIED = 0;
-
- AUTOMATION = 1;
-
- UNEXPECTED_ENVIRONMENT = 2;
-
- TOO_MUCH_TRAFFIC = 3;
-
-
- UNEXPECTED_USAGE_PATTERNS = 4;
-
-
- LOW_CONFIDENCE_SCORE = 5;
- }
-
-
-
- float score = 1;
-
- repeated ClassificationReason reasons = 2;
- }
- message TokenProperties {
-
- enum InvalidReason {
-
- INVALID_REASON_UNSPECIFIED = 0;
-
- UNKNOWN_INVALID_REASON = 1;
-
- MALFORMED = 2;
-
- EXPIRED = 3;
-
- DUPE = 4;
-
- MISSING = 5;
-
-
- BROWSER_ERROR = 6;
- }
-
-
-
-
-
- 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;
- }
- message CreateKeyRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudresourcemanager.googleapis.com/Project"
- }
- ];
-
- Key key = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message ListKeysRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudresourcemanager.googleapis.com/Project"
- }
- ];
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListKeysResponse {
-
- repeated Key keys = 1;
-
-
- string next_page_token = 2;
- }
- message RetrieveLegacySecretKeyRequest {
-
-
- string key = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "recaptchaenterprise.googleapis.com/Key"
- }
- ];
- }
- message GetKeyRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "recaptchaenterprise.googleapis.com/Key"
- }
- ];
- }
- message UpdateKeyRequest {
-
- Key key = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message DeleteKeyRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "recaptchaenterprise.googleapis.com/Key"
- }
- ];
- }
- message MigrateKeyRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "recaptchaenterprise.googleapis.com/Key"
- }
- ];
- }
- message GetMetricsRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "recaptchaenterprise.googleapis.com/Metrics"
- }
- ];
- }
- message Metrics {
- option (google.api.resource) = {
- type: "recaptchaenterprise.googleapis.com/Metrics"
- pattern: "projects/{project}/keys/{key}/metrics"
- };
-
-
- string name = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp start_time = 1;
-
-
- repeated ScoreMetrics score_metrics = 2;
-
-
-
- repeated ChallengeMetrics challenge_metrics = 3;
- }
- message RetrieveLegacySecretKeyResponse {
-
-
-
-
- string legacy_secret_key = 1;
- }
- message Key {
- option (google.api.resource) = {
- type: "recaptchaenterprise.googleapis.com/Key"
- pattern: "projects/{project}/keys/{key}"
- };
-
-
- string name = 1;
-
- string display_name = 2;
-
-
- oneof platform_settings {
-
- WebKeySettings web_settings = 3;
-
- AndroidKeySettings android_settings = 4;
-
- IOSKeySettings ios_settings = 5;
- }
-
-
- map<string, string> labels = 6;
-
- google.protobuf.Timestamp create_time = 7;
-
- TestingOptions testing_options = 9;
-
- WafSettings waf_settings = 10;
- }
- message TestingOptions {
-
-
- enum TestingChallenge {
-
-
- TESTING_CHALLENGE_UNSPECIFIED = 0;
-
-
- NOCAPTCHA = 1;
-
-
- UNSOLVABLE_CHALLENGE = 2;
- }
-
-
- float testing_score = 1;
-
-
-
- TestingChallenge testing_challenge = 2;
- }
- message WebKeySettings {
-
- enum IntegrationType {
-
-
-
- INTEGRATION_TYPE_UNSPECIFIED = 0;
-
-
- SCORE = 1;
-
-
- CHECKBOX = 2;
-
-
- INVISIBLE = 3;
- }
-
-
- enum ChallengeSecurityPreference {
-
- CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED = 0;
-
- USABILITY = 1;
-
- BALANCE = 2;
-
- SECURITY = 3;
- }
-
- bool allow_all_domains = 3;
-
-
-
-
- repeated string allowed_domains = 1;
-
-
- bool allow_amp_traffic = 2;
-
- IntegrationType integration_type = 4 [(google.api.field_behavior) = REQUIRED];
-
-
-
- ChallengeSecurityPreference challenge_security_preference = 5;
- }
- message AndroidKeySettings {
-
- bool allow_all_package_names = 2;
-
-
- repeated string allowed_package_names = 1;
- }
- message IOSKeySettings {
-
- bool allow_all_bundle_ids = 2;
-
-
- repeated string allowed_bundle_ids = 1;
- }
- message ScoreDistribution {
-
-
-
- map<int32, int64> score_buckets = 1;
- }
- message ScoreMetrics {
-
- ScoreDistribution overall_metrics = 1;
-
-
-
- map<string, ScoreDistribution> action_metrics = 2;
- }
- message ChallengeMetrics {
-
-
- int64 pageload_count = 1;
-
- int64 nocaptcha_count = 2;
-
-
- int64 failed_count = 3;
-
-
-
- int64 passed_count = 4;
- }
- message ListRelatedAccountGroupMembershipsRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership"
- }
- ];
-
-
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListRelatedAccountGroupMembershipsResponse {
-
- repeated RelatedAccountGroupMembership related_account_group_memberships = 1;
-
-
- string next_page_token = 2;
- }
- message ListRelatedAccountGroupsRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "recaptchaenterprise.googleapis.com/RelatedAccountGroup"
- }
- ];
-
-
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListRelatedAccountGroupsResponse {
-
- repeated RelatedAccountGroup related_account_groups = 1;
-
-
- string next_page_token = 2;
- }
- message SearchRelatedAccountGroupMembershipsRequest {
-
-
- string project = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership"
- }
- ];
-
-
-
- bytes hashed_account_id = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
- string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message SearchRelatedAccountGroupMembershipsResponse {
-
- repeated RelatedAccountGroupMembership related_account_group_memberships = 1;
-
-
- string next_page_token = 2;
- }
- message RelatedAccountGroupMembership {
- option (google.api.resource) = {
- type: "recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership"
- pattern: "projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}"
- };
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership"
- }
- ];
-
-
-
- bytes hashed_account_id = 2;
- }
- message RelatedAccountGroup {
- option (google.api.resource) = {
- type: "recaptchaenterprise.googleapis.com/RelatedAccountGroup"
- pattern: "projects/{project}/relatedaccountgroups/{relatedaccountgroup}"
- };
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "recaptchaenterprise.googleapis.com/RelatedAccountGroup"
- }
- ];
- }
- message WafSettings {
-
-
- enum WafFeature {
-
- WAF_FEATURE_UNSPECIFIED = 0;
-
- CHALLENGE_PAGE = 1;
-
-
- SESSION_TOKEN = 2;
-
- ACTION_TOKEN = 3;
- }
-
- enum WafService {
-
- WAF_SERVICE_UNSPECIFIED = 0;
-
- CA = 1;
- }
-
- WafService waf_service = 1 [(google.api.field_behavior) = REQUIRED];
-
- WafFeature waf_feature = 2 [(google.api.field_behavior) = REQUIRED];
- }
|