|
1 |
| -// Copyright 2021 Google LLC |
| 1 | +// Copyright 2022 Google LLC |
2 | 2 | //
|
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License");
|
4 | 4 | // you may not use this file except in compliance with the License.
|
@@ -135,10 +135,10 @@ service RecaptchaEnterpriseService {
|
135 | 135 | // Search group memberships related to a given account.
|
136 | 136 | rpc SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest) returns (SearchRelatedAccountGroupMembershipsResponse) {
|
137 | 137 | option (google.api.http) = {
|
138 |
| - post: "/v1/{parent=projects/*}/relatedaccountgroupmemberships:search" |
| 138 | + post: "/v1/{project=projects/*}/relatedaccountgroupmemberships:search" |
139 | 139 | body: "*"
|
140 | 140 | };
|
141 |
| - option (google.api.method_signature) = "parent,hashed_account_id"; |
| 141 | + option (google.api.method_signature) = "project,hashed_account_id"; |
142 | 142 | }
|
143 | 143 | }
|
144 | 144 |
|
@@ -186,18 +186,18 @@ message AnnotateAssessmentRequest {
|
186 | 186 | // Default unspecified reason.
|
187 | 187 | REASON_UNSPECIFIED = 0;
|
188 | 188 |
|
189 |
| - // Indicates a chargeback was issued for the transaction associated with the |
190 |
| - // assessment, with no other details. When possible, specify the type by |
191 |
| - // using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead. |
| 189 | + // Indicates a chargeback issued for the transaction with no other details. |
| 190 | + // When possible, specify the type by using CHARGEBACK_FRAUD or |
| 191 | + // CHARGEBACK_DISPUTE instead. |
192 | 192 | CHARGEBACK = 1;
|
193 | 193 |
|
194 | 194 | // Indicates a chargeback related to an alleged unauthorized transaction
|
195 |
| - // from the perspective of the cardholder (for example, the card number was |
| 195 | + // from the cardholder's perspective (for example, the card number was |
196 | 196 | // stolen).
|
197 | 197 | CHARGEBACK_FRAUD = 8;
|
198 | 198 |
|
199 | 199 | // Indicates a chargeback related to the cardholder having provided their
|
200 |
| - // card but allegedly not being satisfied with the purchase |
| 200 | + // card details but allegedly not being satisfied with the purchase |
201 | 201 | // (for example, misrepresentation, attempted cancellation).
|
202 | 202 | CHARGEBACK_DISPUTE = 9;
|
203 | 203 |
|
@@ -578,6 +578,9 @@ message Key {
|
578 | 578 |
|
579 | 579 | // Options for user acceptance testing.
|
580 | 580 | TestingOptions testing_options = 9;
|
| 581 | + |
| 582 | + // Settings for WAF |
| 583 | + WafSettings waf_settings = 10; |
581 | 584 | }
|
582 | 585 |
|
583 | 586 | // Options for user acceptance testing.
|
@@ -802,7 +805,7 @@ message ListRelatedAccountGroupsResponse {
|
802 | 805 | message SearchRelatedAccountGroupMembershipsRequest {
|
803 | 806 | // Required. The name of the project to search related account group memberships from,
|
804 | 807 | // in the format "projects/{project}".
|
805 |
| - string parent = 1 [ |
| 808 | + string project = 1 [ |
806 | 809 | (google.api.field_behavior) = REQUIRED,
|
807 | 810 | (google.api.resource_reference) = {
|
808 | 811 | child_type: "recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership"
|
@@ -878,3 +881,39 @@ message RelatedAccountGroup {
|
878 | 881 | }
|
879 | 882 | ];
|
880 | 883 | }
|
| 884 | + |
| 885 | +// Settings specific to keys that can be used for WAF (Web Application |
| 886 | +// Firewall). |
| 887 | +message WafSettings { |
| 888 | + // Supported WAF features. For more information, see |
| 889 | + // https://cloud.google.com/recaptcha-enterprise/docs/usecase#comparison_of_features. |
| 890 | + enum WafFeature { |
| 891 | + // Undefined feature. |
| 892 | + WAF_FEATURE_UNSPECIFIED = 0; |
| 893 | + |
| 894 | + // Redirects suspicious traffic to reCAPTCHA. |
| 895 | + CHALLENGE_PAGE = 1; |
| 896 | + |
| 897 | + // Use reCAPTCHA session-tokens to protect the whole user session on the |
| 898 | + // site's domain. |
| 899 | + SESSION_TOKEN = 2; |
| 900 | + |
| 901 | + // Use reCAPTCHA action-tokens to protect user actions. |
| 902 | + ACTION_TOKEN = 3; |
| 903 | + } |
| 904 | + |
| 905 | + // Web Application Firewalls supported by reCAPTCHA Enterprise. |
| 906 | + enum WafService { |
| 907 | + // Undefined WAF |
| 908 | + WAF_SERVICE_UNSPECIFIED = 0; |
| 909 | + |
| 910 | + // Cloud Armor |
| 911 | + CA = 1; |
| 912 | + } |
| 913 | + |
| 914 | + // Required. The WAF service that uses this key. |
| 915 | + WafService waf_service = 1 [(google.api.field_behavior) = REQUIRED]; |
| 916 | + |
| 917 | + // Required. The WAF feature for which this key is enabled. |
| 918 | + WafFeature waf_feature = 2 [(google.api.field_behavior) = REQUIRED]; |
| 919 | +} |
0 commit comments