@maxim_mazurok/gapi.client.recaptchaenterprise-v1 0.1.20260310 → 0.2.20260310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +200 -87
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -32,11 +32,20 @@ declare namespace gapi.client {
32
32
  /** Output only. Account takeover risk assessment for this request. */
33
33
  accountTakeoverVerdict?: GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict;
34
34
  /** Output only. Labels for this request. */
35
- labels?: string[];
35
+ labels?:
36
+ | 'ACCOUNT_DEFENDER_LABEL_UNSPECIFIED'
37
+ | 'PROFILE_MATCH'
38
+ | 'SUSPICIOUS_LOGIN_ACTIVITY'
39
+ | 'SUSPICIOUS_ACCOUNT_CREATION'
40
+ | 'RELATED_ACCOUNTS_NUMBER_HIGH'[];
36
41
  }
37
42
  interface GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountRiskReason {
38
43
  /** Output only. A risk reason associated with this request. */
39
- reason?: string;
44
+ reason?:
45
+ | 'RISK_REASON_UNSPECIFIED'
46
+ | 'CLIENT_HISTORICAL_BOT_ACTIVITY'
47
+ | 'ACCOUNT_IN_LARGE_RELATED_GROUP'
48
+ | 'CLIENT_ACCESSED_MANY_ACCOUNTS';
40
49
  }
41
50
  interface GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict {
42
51
  /** Output only. Account takeover attempt probability. Values are from 0.0 (lowest risk) to 1.0 (highest risk). */
@@ -48,7 +57,10 @@ declare namespace gapi.client {
48
57
  }
49
58
  interface GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTrustReason {
50
59
  /** Output only. A trust reason associated with this request. */
51
- reason?: string;
60
+ reason?:
61
+ | 'TRUST_REASON_UNSPECIFIED'
62
+ | 'PROFILE_MATCH'
63
+ | 'ACCOUNT_HISTORY_REPUTABLE';
52
64
  }
53
65
  interface GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo {
54
66
  /** Optional. Endpoints that can be used for identity verification. */
@@ -56,7 +68,17 @@ declare namespace gapi.client {
56
68
  /** Optional. Language code preference for the verification message, set as a IETF BCP 47 language code. */
57
69
  languageCode?: string;
58
70
  /** Output only. Result of the latest account verification challenge. */
59
- latestVerificationResult?: string;
71
+ latestVerificationResult?:
72
+ | 'RESULT_UNSPECIFIED'
73
+ | 'SUCCESS_USER_VERIFIED'
74
+ | 'ERROR_USER_NOT_VERIFIED'
75
+ | 'ERROR_SITE_ONBOARDING_INCOMPLETE'
76
+ | 'ERROR_RECIPIENT_NOT_ALLOWED'
77
+ | 'ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED'
78
+ | 'ERROR_CRITICAL_INTERNAL'
79
+ | 'ERROR_CUSTOMER_QUOTA_EXHAUSTED'
80
+ | 'ERROR_VERIFICATION_BYPASSED'
81
+ | 'ERROR_VERDICT_MISMATCH';
60
82
  /** Username of the account that is being verified. Deprecated. Customers should now provide the `account_id` field in `event.user_info`. */
61
83
  username?: string;
62
84
  }
@@ -77,13 +99,33 @@ declare namespace gapi.client {
77
99
  /** Optional. A stable account identifier to apply to the assessment. This is an alternative to setting `account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request. */
78
100
  accountId?: string;
79
101
  /** Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. */
80
- annotation?: string;
102
+ annotation?:
103
+ | 'ANNOTATION_UNSPECIFIED'
104
+ | 'LEGITIMATE'
105
+ | 'FRAUDULENT'
106
+ | 'PASSWORD_CORRECT'
107
+ | 'PASSWORD_INCORRECT';
81
108
  /** Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting `hashed_account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request. */
82
109
  hashedAccountId?: string;
83
110
  /** Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes. */
84
111
  phoneAuthenticationEvent?: GoogleCloudRecaptchaenterpriseV1PhoneAuthenticationEvent;
85
112
  /** Optional. Reasons for the annotation that are assigned to the event. */
86
- reasons?: string[];
113
+ reasons?:
114
+ | 'REASON_UNSPECIFIED'
115
+ | 'CHARGEBACK'
116
+ | 'CHARGEBACK_FRAUD'
117
+ | 'CHARGEBACK_DISPUTE'
118
+ | 'REFUND'
119
+ | 'REFUND_FRAUD'
120
+ | 'TRANSACTION_ACCEPTED'
121
+ | 'TRANSACTION_DECLINED'
122
+ | 'PAYMENT_HEURISTICS'
123
+ | 'INITIATED_TWO_FACTOR'
124
+ | 'PASSED_TWO_FACTOR'
125
+ | 'FAILED_TWO_FACTOR'
126
+ | 'CORRECT_PASSWORD'
127
+ | 'INCORRECT_PASSWORD'
128
+ | 'SOCIAL_SPAM'[];
87
129
  /** Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction. */
88
130
  transactionEvent?: GoogleCloudRecaptchaenterpriseV1TransactionEvent;
89
131
  }
@@ -130,7 +172,11 @@ declare namespace gapi.client {
130
172
  }
131
173
  interface GoogleCloudRecaptchaenterpriseV1Bot {
132
174
  /** Optional. Enumerated field representing the type of bot. */
133
- botType?: string;
175
+ botType?:
176
+ | 'BOT_TYPE_UNSPECIFIED'
177
+ | 'AI_AGENT'
178
+ | 'CONTENT_SCRAPER'
179
+ | 'SEARCH_INDEXER';
134
180
  /** Optional. Enumerated string value that indicates the identity of the bot, formatted in kebab-case. */
135
181
  name?: string;
136
182
  }
@@ -162,7 +208,7 @@ declare namespace gapi.client {
162
208
  /** Optional. Flag for enabling firewall policy config assessment. If this flag is enabled, the firewall policy is evaluated and a suggested firewall action is returned in the response. */
163
209
  firewallPolicyEvaluation?: boolean;
164
210
  /** Optional. The Fraud Prevention setting for this assessment. */
165
- fraudPrevention?: string;
211
+ fraudPrevention?: 'FRAUD_PREVENTION_UNSPECIFIED' | 'ENABLED' | 'DISABLED';
166
212
  /** Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret. */
167
213
  hashedAccountId?: string;
168
214
  /** Optional. HTTP header information about the request. */
@@ -257,7 +303,13 @@ declare namespace gapi.client {
257
303
  }
258
304
  interface GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentRiskReason {
259
305
  /** Output only. Risk reasons applicable to the Fraud Prevention assessment. */
260
- reason?: string;
306
+ reason?:
307
+ | 'REASON_UNSPECIFIED'
308
+ | 'HIGH_TRANSACTION_VELOCITY'
309
+ | 'EXCESSIVE_ENUMERATION_PATTERN'
310
+ | 'SHORT_IDENTITY_HISTORY'
311
+ | 'GEOLOCATION_DISCREPANCY'
312
+ | 'ASSOCIATED_WITH_FRAUD_CLUSTER';
261
313
  }
262
314
  interface GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict {
263
315
  /** Output only. Probability of this transaction being executed with a stolen instrument. Values are from 0.0 (lowest) to 1.0 (highest). */
@@ -271,7 +323,11 @@ declare namespace gapi.client {
271
323
  }
272
324
  interface GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals {
273
325
  /** Output only. The labels for the payment card in this transaction. */
274
- cardLabels?: string[];
326
+ cardLabels?:
327
+ | 'CARD_LABEL_UNSPECIFIED'
328
+ | 'PREPAID'
329
+ | 'VIRTUAL'
330
+ | 'UNEXPECTED_LOCATION'[];
275
331
  }
276
332
  interface GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals {
277
333
  /** Output only. This user (based on email, phone, and other identifiers) has been seen on the internet for at least this number of days. */
@@ -291,7 +347,7 @@ declare namespace gapi.client {
291
347
  /** Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48 */
292
348
  ip?: string;
293
349
  /** Required. Describes the type of IP override. */
294
- overrideType?: string;
350
+ overrideType?: 'OVERRIDE_TYPE_UNSPECIFIED' | 'ALLOW';
295
351
  }
296
352
  interface GoogleCloudRecaptchaenterpriseV1Key {
297
353
  /** Settings for keys that can be used by Android apps. */
@@ -407,11 +463,19 @@ declare namespace gapi.client {
407
463
  }
408
464
  interface GoogleCloudRecaptchaenterpriseV1RiskAnalysis {
409
465
  /** Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys. */
410
- challenge?: string;
466
+ challenge?: 'CHALLENGE_UNSPECIFIED' | 'NOCAPTCHA' | 'PASSED' | 'FAILED';
411
467
  /** Output only. Advanced reasons contributing to the risk analysis verdict. These reasons are available to Enterprise tier projects only. Contact sales for more information. The set of possible reasons is subject to change. */
412
468
  extendedVerdictReasons?: string[];
413
469
  /** Output only. Reasons contributing to the risk analysis verdict. */
414
- reasons?: string[];
470
+ reasons?:
471
+ | 'CLASSIFICATION_REASON_UNSPECIFIED'
472
+ | 'AUTOMATION'
473
+ | 'UNEXPECTED_ENVIRONMENT'
474
+ | 'TOO_MUCH_TRAFFIC'
475
+ | 'UNEXPECTED_USAGE_PATTERNS'
476
+ | 'LOW_CONFIDENCE_SCORE'
477
+ | 'SUSPECTED_CARDING'
478
+ | 'SUSPECTED_CHARGEBACK'[];
415
479
  /** Output only. Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic). */
416
480
  score?: number;
417
481
  /** Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event. */
@@ -447,13 +511,16 @@ declare namespace gapi.client {
447
511
  }
448
512
  interface GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict {
449
513
  /** Output only. Reasons contributing to the SMS toll fraud verdict. */
450
- reasons?: string[];
514
+ reasons?: 'SMS_TOLL_FRAUD_REASON_UNSPECIFIED' | 'INVALID_PHONE_NUMBER'[];
451
515
  /** Output only. Probability of an SMS event being fraudulent. Values are from 0.0 (lowest) to 1.0 (highest). */
452
516
  risk?: number;
453
517
  }
454
518
  interface GoogleCloudRecaptchaenterpriseV1TestingOptions {
455
519
  /** Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE. */
456
- testingChallenge?: string;
520
+ testingChallenge?:
521
+ | 'TESTING_CHALLENGE_UNSPECIFIED'
522
+ | 'NOCAPTCHA'
523
+ | 'UNSOLVABLE_CHALLENGE';
457
524
  /** Optional. All assessments for this Key return this score. Must be between 0 (likely not legitimate) and 1 (likely legitimate) inclusive. */
458
525
  testingScore?: number;
459
526
  }
@@ -467,7 +534,15 @@ declare namespace gapi.client {
467
534
  /** Output only. The hostname of the page on which the token was generated (Web keys only). */
468
535
  hostname?: string;
469
536
  /** Output only. Reason associated with the response when valid = false. */
470
- invalidReason?: string;
537
+ invalidReason?:
538
+ | 'INVALID_REASON_UNSPECIFIED'
539
+ | 'UNKNOWN_INVALID_REASON'
540
+ | 'MALFORMED'
541
+ | 'EXPIRED'
542
+ | 'DUPE'
543
+ | 'MISSING'
544
+ | 'BROWSER_ERROR'
545
+ | 'UNEXPECTED_ACTION';
471
546
  /** Output only. The ID of the iOS bundle with which the token was generated (iOS keys only). */
472
547
  iosBundleId?: string;
473
548
  /** Output only. Whether the provided user response token is valid. When valid = false, the reason could be specified in invalid_reason or it could also be due to a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to generate the token was different than the one specified in the assessment). */
@@ -553,7 +628,26 @@ declare namespace gapi.client {
553
628
  /** Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call. */
554
629
  eventTime?: string;
555
630
  /** Optional. The type of this transaction event. */
556
- eventType?: string;
631
+ eventType?:
632
+ | 'TRANSACTION_EVENT_TYPE_UNSPECIFIED'
633
+ | 'MERCHANT_APPROVE'
634
+ | 'MERCHANT_DENY'
635
+ | 'MANUAL_REVIEW'
636
+ | 'AUTHORIZATION'
637
+ | 'AUTHORIZATION_DECLINE'
638
+ | 'PAYMENT_CAPTURE'
639
+ | 'PAYMENT_CAPTURE_DECLINE'
640
+ | 'CANCEL'
641
+ | 'CHARGEBACK_INQUIRY'
642
+ | 'CHARGEBACK_ALERT'
643
+ | 'FRAUD_NOTIFICATION'
644
+ | 'CHARGEBACK'
645
+ | 'CHARGEBACK_REPRESENTMENT'
646
+ | 'CHARGEBACK_REVERSE'
647
+ | 'REFUND_REQUEST'
648
+ | 'REFUND_DECLINE'
649
+ | 'REFUND'
650
+ | 'REFUND_REVERSE';
557
651
  /** Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005. */
558
652
  reason?: string;
559
653
  /** Optional. The value that corresponds with this transaction event, if one exists. For example, a refund event where $5.00 was refunded. Currency is obtained from the original transaction data. */
@@ -577,9 +671,19 @@ declare namespace gapi.client {
577
671
  }
578
672
  interface GoogleCloudRecaptchaenterpriseV1WafSettings {
579
673
  /** Required. The Web Application Firewall (WAF) feature for which this key is enabled. */
580
- wafFeature?: string;
674
+ wafFeature?:
675
+ | 'WAF_FEATURE_UNSPECIFIED'
676
+ | 'CHALLENGE_PAGE'
677
+ | 'SESSION_TOKEN'
678
+ | 'ACTION_TOKEN'
679
+ | 'EXPRESS';
581
680
  /** Required. The Web Application Firewall (WAF) service that uses this key. */
582
- wafService?: string;
681
+ wafService?:
682
+ | 'WAF_SERVICE_UNSPECIFIED'
683
+ | 'CA'
684
+ | 'FASTLY'
685
+ | 'CLOUDFLARE'
686
+ | 'AKAMAI';
583
687
  }
584
688
  interface GoogleCloudRecaptchaenterpriseV1WebKeySettings {
585
689
  /** Optional. If set to true, it means allowed_domains are not enforced. */
@@ -589,11 +693,20 @@ declare namespace gapi.client {
589
693
  /** Optional. Domains or subdomains of websites allowed to use the key. All subdomains of an allowed domain are automatically allowed. A valid domain requires a host and must not include any path, port, query or fragment. Examples: 'example.com' or 'subdomain.example.com' Each key supports a maximum of 250 domains. To use a key on more domains, set `allow_all_domains` to true. When this is set, you are responsible for validating the hostname by checking the `token_properties.hostname` field in each assessment response against your list of allowed domains. */
590
694
  allowedDomains?: string[];
591
695
  /** Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for `IntegrationType` CHECKBOX, INVISIBLE or POLICY_BASED_CHALLENGE. */
592
- challengeSecurityPreference?: string;
696
+ challengeSecurityPreference?:
697
+ | 'CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED'
698
+ | 'USABILITY'
699
+ | 'BALANCE'
700
+ | 'SECURITY';
593
701
  /** Optional. Challenge settings. */
594
702
  challengeSettings?: GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings;
595
703
  /** Required. Describes how this key is integrated with the website. */
596
- integrationType?: string;
704
+ integrationType?:
705
+ | 'INTEGRATION_TYPE_UNSPECIFIED'
706
+ | 'SCORE'
707
+ | 'CHECKBOX'
708
+ | 'INVISIBLE'
709
+ | 'POLICY_BASED_CHALLENGE';
597
710
  }
598
711
  interface GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings {
599
712
  /** Required. A challenge is triggered if the end-user score is below that threshold. Value must be between 0 and 1 (inclusive). */
@@ -620,11 +733,11 @@ declare namespace gapi.client {
620
733
  /** Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent. */
621
734
  annotate(request: {
622
735
  /** V1 error format. */
623
- '$.xgafv'?: string;
736
+ '$.xgafv'?: '1' | '2';
624
737
  /** OAuth access token. */
625
738
  access_token?: string;
626
739
  /** Data format for response. */
627
- alt?: string;
740
+ alt?: 'json' | 'media' | 'proto';
628
741
  /** JSONP */
629
742
  callback?: string;
630
743
  /** Selector specifying which fields to include in a partial response. */
@@ -649,11 +762,11 @@ declare namespace gapi.client {
649
762
  annotate(
650
763
  request: {
651
764
  /** V1 error format. */
652
- '$.xgafv'?: string;
765
+ '$.xgafv'?: '1' | '2';
653
766
  /** OAuth access token. */
654
767
  access_token?: string;
655
768
  /** Data format for response. */
656
- alt?: string;
769
+ alt?: 'json' | 'media' | 'proto';
657
770
  /** JSONP */
658
771
  callback?: string;
659
772
  /** Selector specifying which fields to include in a partial response. */
@@ -678,11 +791,11 @@ declare namespace gapi.client {
678
791
  /** Creates an Assessment of the likelihood an event is legitimate. */
679
792
  create(request: {
680
793
  /** V1 error format. */
681
- '$.xgafv'?: string;
794
+ '$.xgafv'?: '1' | '2';
682
795
  /** OAuth access token. */
683
796
  access_token?: string;
684
797
  /** Data format for response. */
685
- alt?: string;
798
+ alt?: 'json' | 'media' | 'proto';
686
799
  /** JSONP */
687
800
  callback?: string;
688
801
  /** Selector specifying which fields to include in a partial response. */
@@ -707,11 +820,11 @@ declare namespace gapi.client {
707
820
  create(
708
821
  request: {
709
822
  /** V1 error format. */
710
- '$.xgafv'?: string;
823
+ '$.xgafv'?: '1' | '2';
711
824
  /** OAuth access token. */
712
825
  access_token?: string;
713
826
  /** Data format for response. */
714
- alt?: string;
827
+ alt?: 'json' | 'media' | 'proto';
715
828
  /** JSONP */
716
829
  callback?: string;
717
830
  /** Selector specifying which fields to include in a partial response. */
@@ -738,11 +851,11 @@ declare namespace gapi.client {
738
851
  /** Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies. */
739
852
  create(request: {
740
853
  /** V1 error format. */
741
- '$.xgafv'?: string;
854
+ '$.xgafv'?: '1' | '2';
742
855
  /** OAuth access token. */
743
856
  access_token?: string;
744
857
  /** Data format for response. */
745
- alt?: string;
858
+ alt?: 'json' | 'media' | 'proto';
746
859
  /** JSONP */
747
860
  callback?: string;
748
861
  /** Selector specifying which fields to include in a partial response. */
@@ -767,11 +880,11 @@ declare namespace gapi.client {
767
880
  create(
768
881
  request: {
769
882
  /** V1 error format. */
770
- '$.xgafv'?: string;
883
+ '$.xgafv'?: '1' | '2';
771
884
  /** OAuth access token. */
772
885
  access_token?: string;
773
886
  /** Data format for response. */
774
- alt?: string;
887
+ alt?: 'json' | 'media' | 'proto';
775
888
  /** JSONP */
776
889
  callback?: string;
777
890
  /** Selector specifying which fields to include in a partial response. */
@@ -796,11 +909,11 @@ declare namespace gapi.client {
796
909
  /** Deletes the specified firewall policy. */
797
910
  delete(request?: {
798
911
  /** V1 error format. */
799
- '$.xgafv'?: string;
912
+ '$.xgafv'?: '1' | '2';
800
913
  /** OAuth access token. */
801
914
  access_token?: string;
802
915
  /** Data format for response. */
803
- alt?: string;
916
+ alt?: 'json' | 'media' | 'proto';
804
917
  /** JSONP */
805
918
  callback?: string;
806
919
  /** Selector specifying which fields to include in a partial response. */
@@ -823,11 +936,11 @@ declare namespace gapi.client {
823
936
  /** Returns the specified firewall policy. */
824
937
  get(request?: {
825
938
  /** V1 error format. */
826
- '$.xgafv'?: string;
939
+ '$.xgafv'?: '1' | '2';
827
940
  /** OAuth access token. */
828
941
  access_token?: string;
829
942
  /** Data format for response. */
830
- alt?: string;
943
+ alt?: 'json' | 'media' | 'proto';
831
944
  /** JSONP */
832
945
  callback?: string;
833
946
  /** Selector specifying which fields to include in a partial response. */
@@ -850,11 +963,11 @@ declare namespace gapi.client {
850
963
  /** Returns the list of all firewall policies that belong to a project. */
851
964
  list(request?: {
852
965
  /** V1 error format. */
853
- '$.xgafv'?: string;
966
+ '$.xgafv'?: '1' | '2';
854
967
  /** OAuth access token. */
855
968
  access_token?: string;
856
969
  /** Data format for response. */
857
- alt?: string;
970
+ alt?: 'json' | 'media' | 'proto';
858
971
  /** JSONP */
859
972
  callback?: string;
860
973
  /** Selector specifying which fields to include in a partial response. */
@@ -881,11 +994,11 @@ declare namespace gapi.client {
881
994
  /** Updates the specified firewall policy. */
882
995
  patch(request: {
883
996
  /** V1 error format. */
884
- '$.xgafv'?: string;
997
+ '$.xgafv'?: '1' | '2';
885
998
  /** OAuth access token. */
886
999
  access_token?: string;
887
1000
  /** Data format for response. */
888
- alt?: string;
1001
+ alt?: 'json' | 'media' | 'proto';
889
1002
  /** JSONP */
890
1003
  callback?: string;
891
1004
  /** Selector specifying which fields to include in a partial response. */
@@ -912,11 +1025,11 @@ declare namespace gapi.client {
912
1025
  patch(
913
1026
  request: {
914
1027
  /** V1 error format. */
915
- '$.xgafv'?: string;
1028
+ '$.xgafv'?: '1' | '2';
916
1029
  /** OAuth access token. */
917
1030
  access_token?: string;
918
1031
  /** Data format for response. */
919
- alt?: string;
1032
+ alt?: 'json' | 'media' | 'proto';
920
1033
  /** JSONP */
921
1034
  callback?: string;
922
1035
  /** Selector specifying which fields to include in a partial response. */
@@ -943,11 +1056,11 @@ declare namespace gapi.client {
943
1056
  /** Reorders all firewall policies. */
944
1057
  reorder(request: {
945
1058
  /** V1 error format. */
946
- '$.xgafv'?: string;
1059
+ '$.xgafv'?: '1' | '2';
947
1060
  /** OAuth access token. */
948
1061
  access_token?: string;
949
1062
  /** Data format for response. */
950
- alt?: string;
1063
+ alt?: 'json' | 'media' | 'proto';
951
1064
  /** JSONP */
952
1065
  callback?: string;
953
1066
  /** Selector specifying which fields to include in a partial response. */
@@ -972,11 +1085,11 @@ declare namespace gapi.client {
972
1085
  reorder(
973
1086
  request: {
974
1087
  /** V1 error format. */
975
- '$.xgafv'?: string;
1088
+ '$.xgafv'?: '1' | '2';
976
1089
  /** OAuth access token. */
977
1090
  access_token?: string;
978
1091
  /** Data format for response. */
979
- alt?: string;
1092
+ alt?: 'json' | 'media' | 'proto';
980
1093
  /** JSONP */
981
1094
  callback?: string;
982
1095
  /** Selector specifying which fields to include in a partial response. */
@@ -1003,11 +1116,11 @@ declare namespace gapi.client {
1003
1116
  /** Adds an IP override to a key. The following restrictions hold: * The maximum number of IP overrides per key is 1000. * For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned. */
1004
1117
  addIpOverride(request: {
1005
1118
  /** V1 error format. */
1006
- '$.xgafv'?: string;
1119
+ '$.xgafv'?: '1' | '2';
1007
1120
  /** OAuth access token. */
1008
1121
  access_token?: string;
1009
1122
  /** Data format for response. */
1010
- alt?: string;
1123
+ alt?: 'json' | 'media' | 'proto';
1011
1124
  /** JSONP */
1012
1125
  callback?: string;
1013
1126
  /** Selector specifying which fields to include in a partial response. */
@@ -1032,11 +1145,11 @@ declare namespace gapi.client {
1032
1145
  addIpOverride(
1033
1146
  request: {
1034
1147
  /** V1 error format. */
1035
- '$.xgafv'?: string;
1148
+ '$.xgafv'?: '1' | '2';
1036
1149
  /** OAuth access token. */
1037
1150
  access_token?: string;
1038
1151
  /** Data format for response. */
1039
- alt?: string;
1152
+ alt?: 'json' | 'media' | 'proto';
1040
1153
  /** JSONP */
1041
1154
  callback?: string;
1042
1155
  /** Selector specifying which fields to include in a partial response. */
@@ -1061,11 +1174,11 @@ declare namespace gapi.client {
1061
1174
  /** Creates a new reCAPTCHA Enterprise key. */
1062
1175
  create(request: {
1063
1176
  /** V1 error format. */
1064
- '$.xgafv'?: string;
1177
+ '$.xgafv'?: '1' | '2';
1065
1178
  /** OAuth access token. */
1066
1179
  access_token?: string;
1067
1180
  /** Data format for response. */
1068
- alt?: string;
1181
+ alt?: 'json' | 'media' | 'proto';
1069
1182
  /** JSONP */
1070
1183
  callback?: string;
1071
1184
  /** Selector specifying which fields to include in a partial response. */
@@ -1090,11 +1203,11 @@ declare namespace gapi.client {
1090
1203
  create(
1091
1204
  request: {
1092
1205
  /** V1 error format. */
1093
- '$.xgafv'?: string;
1206
+ '$.xgafv'?: '1' | '2';
1094
1207
  /** OAuth access token. */
1095
1208
  access_token?: string;
1096
1209
  /** Data format for response. */
1097
- alt?: string;
1210
+ alt?: 'json' | 'media' | 'proto';
1098
1211
  /** JSONP */
1099
1212
  callback?: string;
1100
1213
  /** Selector specifying which fields to include in a partial response. */
@@ -1119,11 +1232,11 @@ declare namespace gapi.client {
1119
1232
  /** Deletes the specified key. */
1120
1233
  delete(request?: {
1121
1234
  /** V1 error format. */
1122
- '$.xgafv'?: string;
1235
+ '$.xgafv'?: '1' | '2';
1123
1236
  /** OAuth access token. */
1124
1237
  access_token?: string;
1125
1238
  /** Data format for response. */
1126
- alt?: string;
1239
+ alt?: 'json' | 'media' | 'proto';
1127
1240
  /** JSONP */
1128
1241
  callback?: string;
1129
1242
  /** Selector specifying which fields to include in a partial response. */
@@ -1146,11 +1259,11 @@ declare namespace gapi.client {
1146
1259
  /** Returns the specified key. */
1147
1260
  get(request?: {
1148
1261
  /** V1 error format. */
1149
- '$.xgafv'?: string;
1262
+ '$.xgafv'?: '1' | '2';
1150
1263
  /** OAuth access token. */
1151
1264
  access_token?: string;
1152
1265
  /** Data format for response. */
1153
- alt?: string;
1266
+ alt?: 'json' | 'media' | 'proto';
1154
1267
  /** JSONP */
1155
1268
  callback?: string;
1156
1269
  /** Selector specifying which fields to include in a partial response. */
@@ -1173,11 +1286,11 @@ declare namespace gapi.client {
1173
1286
  /** Get some aggregated metrics for a Key. This data can be used to build dashboards. */
1174
1287
  getMetrics(request?: {
1175
1288
  /** V1 error format. */
1176
- '$.xgafv'?: string;
1289
+ '$.xgafv'?: '1' | '2';
1177
1290
  /** OAuth access token. */
1178
1291
  access_token?: string;
1179
1292
  /** Data format for response. */
1180
- alt?: string;
1293
+ alt?: 'json' | 'media' | 'proto';
1181
1294
  /** JSONP */
1182
1295
  callback?: string;
1183
1296
  /** Selector specifying which fields to include in a partial response. */
@@ -1200,11 +1313,11 @@ declare namespace gapi.client {
1200
1313
  /** Returns the list of all keys that belong to a project. */
1201
1314
  list(request?: {
1202
1315
  /** V1 error format. */
1203
- '$.xgafv'?: string;
1316
+ '$.xgafv'?: '1' | '2';
1204
1317
  /** OAuth access token. */
1205
1318
  access_token?: string;
1206
1319
  /** Data format for response. */
1207
- alt?: string;
1320
+ alt?: 'json' | 'media' | 'proto';
1208
1321
  /** JSONP */
1209
1322
  callback?: string;
1210
1323
  /** Selector specifying which fields to include in a partial response. */
@@ -1231,11 +1344,11 @@ declare namespace gapi.client {
1231
1344
  /** Lists all IP overrides for a key. */
1232
1345
  listIpOverrides(request?: {
1233
1346
  /** V1 error format. */
1234
- '$.xgafv'?: string;
1347
+ '$.xgafv'?: '1' | '2';
1235
1348
  /** OAuth access token. */
1236
1349
  access_token?: string;
1237
1350
  /** Data format for response. */
1238
- alt?: string;
1351
+ alt?: 'json' | 'media' | 'proto';
1239
1352
  /** JSONP */
1240
1353
  callback?: string;
1241
1354
  /** Selector specifying which fields to include in a partial response. */
@@ -1262,11 +1375,11 @@ declare namespace gapi.client {
1262
1375
  /** Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. Once a key is migrated, it can be used from either product. SiteVerify requests are billed as CreateAssessment calls. You must be authenticated as one of the current owners of the reCAPTCHA Key, and your user must have the reCAPTCHA Enterprise Admin IAM role in the destination project. */
1263
1376
  migrate(request: {
1264
1377
  /** V1 error format. */
1265
- '$.xgafv'?: string;
1378
+ '$.xgafv'?: '1' | '2';
1266
1379
  /** OAuth access token. */
1267
1380
  access_token?: string;
1268
1381
  /** Data format for response. */
1269
- alt?: string;
1382
+ alt?: 'json' | 'media' | 'proto';
1270
1383
  /** JSONP */
1271
1384
  callback?: string;
1272
1385
  /** Selector specifying which fields to include in a partial response. */
@@ -1291,11 +1404,11 @@ declare namespace gapi.client {
1291
1404
  migrate(
1292
1405
  request: {
1293
1406
  /** V1 error format. */
1294
- '$.xgafv'?: string;
1407
+ '$.xgafv'?: '1' | '2';
1295
1408
  /** OAuth access token. */
1296
1409
  access_token?: string;
1297
1410
  /** Data format for response. */
1298
- alt?: string;
1411
+ alt?: 'json' | 'media' | 'proto';
1299
1412
  /** JSONP */
1300
1413
  callback?: string;
1301
1414
  /** Selector specifying which fields to include in a partial response. */
@@ -1320,11 +1433,11 @@ declare namespace gapi.client {
1320
1433
  /** Updates the specified key. */
1321
1434
  patch(request: {
1322
1435
  /** V1 error format. */
1323
- '$.xgafv'?: string;
1436
+ '$.xgafv'?: '1' | '2';
1324
1437
  /** OAuth access token. */
1325
1438
  access_token?: string;
1326
1439
  /** Data format for response. */
1327
- alt?: string;
1440
+ alt?: 'json' | 'media' | 'proto';
1328
1441
  /** JSONP */
1329
1442
  callback?: string;
1330
1443
  /** Selector specifying which fields to include in a partial response. */
@@ -1351,11 +1464,11 @@ declare namespace gapi.client {
1351
1464
  patch(
1352
1465
  request: {
1353
1466
  /** V1 error format. */
1354
- '$.xgafv'?: string;
1467
+ '$.xgafv'?: '1' | '2';
1355
1468
  /** OAuth access token. */
1356
1469
  access_token?: string;
1357
1470
  /** Data format for response. */
1358
- alt?: string;
1471
+ alt?: 'json' | 'media' | 'proto';
1359
1472
  /** JSONP */
1360
1473
  callback?: string;
1361
1474
  /** Selector specifying which fields to include in a partial response. */
@@ -1382,11 +1495,11 @@ declare namespace gapi.client {
1382
1495
  /** Removes an IP override from a key. The following restrictions hold: * If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned. * If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned. */
1383
1496
  removeIpOverride(request: {
1384
1497
  /** V1 error format. */
1385
- '$.xgafv'?: string;
1498
+ '$.xgafv'?: '1' | '2';
1386
1499
  /** OAuth access token. */
1387
1500
  access_token?: string;
1388
1501
  /** Data format for response. */
1389
- alt?: string;
1502
+ alt?: 'json' | 'media' | 'proto';
1390
1503
  /** JSONP */
1391
1504
  callback?: string;
1392
1505
  /** Selector specifying which fields to include in a partial response. */
@@ -1411,11 +1524,11 @@ declare namespace gapi.client {
1411
1524
  removeIpOverride(
1412
1525
  request: {
1413
1526
  /** V1 error format. */
1414
- '$.xgafv'?: string;
1527
+ '$.xgafv'?: '1' | '2';
1415
1528
  /** OAuth access token. */
1416
1529
  access_token?: string;
1417
1530
  /** Data format for response. */
1418
- alt?: string;
1531
+ alt?: 'json' | 'media' | 'proto';
1419
1532
  /** JSONP */
1420
1533
  callback?: string;
1421
1534
  /** Selector specifying which fields to include in a partial response. */
@@ -1440,11 +1553,11 @@ declare namespace gapi.client {
1440
1553
  /** Returns the secret key related to the specified public key. You must use the legacy secret key only in a 3rd party integration with legacy reCAPTCHA. */
1441
1554
  retrieveLegacySecretKey(request?: {
1442
1555
  /** V1 error format. */
1443
- '$.xgafv'?: string;
1556
+ '$.xgafv'?: '1' | '2';
1444
1557
  /** OAuth access token. */
1445
1558
  access_token?: string;
1446
1559
  /** Data format for response. */
1447
- alt?: string;
1560
+ alt?: 'json' | 'media' | 'proto';
1448
1561
  /** JSONP */
1449
1562
  callback?: string;
1450
1563
  /** Selector specifying which fields to include in a partial response. */
@@ -1467,11 +1580,11 @@ declare namespace gapi.client {
1467
1580
  /** Search group memberships related to a given account. */
1468
1581
  search(request: {
1469
1582
  /** V1 error format. */
1470
- '$.xgafv'?: string;
1583
+ '$.xgafv'?: '1' | '2';
1471
1584
  /** OAuth access token. */
1472
1585
  access_token?: string;
1473
1586
  /** Data format for response. */
1474
- alt?: string;
1587
+ alt?: 'json' | 'media' | 'proto';
1475
1588
  /** JSONP */
1476
1589
  callback?: string;
1477
1590
  /** Selector specifying which fields to include in a partial response. */
@@ -1496,11 +1609,11 @@ declare namespace gapi.client {
1496
1609
  search(
1497
1610
  request: {
1498
1611
  /** V1 error format. */
1499
- '$.xgafv'?: string;
1612
+ '$.xgafv'?: '1' | '2';
1500
1613
  /** OAuth access token. */
1501
1614
  access_token?: string;
1502
1615
  /** Data format for response. */
1503
- alt?: string;
1616
+ alt?: 'json' | 'media' | 'proto';
1504
1617
  /** JSONP */
1505
1618
  callback?: string;
1506
1619
  /** Selector specifying which fields to include in a partial response. */
@@ -1527,11 +1640,11 @@ declare namespace gapi.client {
1527
1640
  /** Get memberships in a group of related accounts. */
1528
1641
  list(request?: {
1529
1642
  /** V1 error format. */
1530
- '$.xgafv'?: string;
1643
+ '$.xgafv'?: '1' | '2';
1531
1644
  /** OAuth access token. */
1532
1645
  access_token?: string;
1533
1646
  /** Data format for response. */
1534
- alt?: string;
1647
+ alt?: 'json' | 'media' | 'proto';
1535
1648
  /** JSONP */
1536
1649
  callback?: string;
1537
1650
  /** Selector specifying which fields to include in a partial response. */
@@ -1560,11 +1673,11 @@ declare namespace gapi.client {
1560
1673
  /** List groups of related accounts. */
1561
1674
  list(request?: {
1562
1675
  /** V1 error format. */
1563
- '$.xgafv'?: string;
1676
+ '$.xgafv'?: '1' | '2';
1564
1677
  /** OAuth access token. */
1565
1678
  access_token?: string;
1566
1679
  /** Data format for response. */
1567
- alt?: string;
1680
+ alt?: 'json' | 'media' | 'proto';
1568
1681
  /** JSONP */
1569
1682
  callback?: string;
1570
1683
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.recaptchaenterprise-v1",
3
- "version": "0.1.20260310",
3
+ "version": "0.2.20260310",
4
4
  "description": "TypeScript typings for reCAPTCHA Enterprise API v1",
5
5
  "repository": {
6
6
  "type": "git",