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

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 (3) hide show
  1. package/index.d.ts +10 -7
  2. package/package.json +1 -1
  3. package/readme.md +17 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://recaptchaenterprise.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260310
12
+ // Revision: 20260609
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -45,7 +45,8 @@ declare namespace gapi.client {
45
45
  | 'RISK_REASON_UNSPECIFIED'
46
46
  | 'CLIENT_HISTORICAL_BOT_ACTIVITY'
47
47
  | 'ACCOUNT_IN_LARGE_RELATED_GROUP'
48
- | 'CLIENT_ACCESSED_MANY_ACCOUNTS';
48
+ | 'CLIENT_ACCESSED_MANY_ACCOUNTS'
49
+ | 'DISPOSABLE_EMAIL_DOMAIN';
49
50
  }
50
51
  interface GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict {
51
52
  /** Output only. Account takeover attempt probability. Values are from 0.0 (lowest risk) to 1.0 (highest risk). */
@@ -177,7 +178,7 @@ declare namespace gapi.client {
177
178
  | 'AI_AGENT'
178
179
  | 'CONTENT_SCRAPER'
179
180
  | 'SEARCH_INDEXER';
180
- /** Optional. Enumerated string value that indicates the identity of the bot, formatted in kebab-case. */
181
+ /** Optional. Enumerated string value that indicates the identity of the bot, formatted in kebab-case. Current example values include the following: * google-agent * browser-base * chat-gpt * aws-bedrock * cybaa-bot * cloudflare * payhawk Ensure that your applications can handle identifier values not explicitly listed here. Deprecated values might take some time to stop showing up in responses. New values can be pushed so this list should be taken as non exhaustive. */
181
182
  name?: string;
182
183
  }
183
184
  interface GoogleCloudRecaptchaenterpriseV1ChallengeMetrics {
@@ -464,7 +465,7 @@ declare namespace gapi.client {
464
465
  interface GoogleCloudRecaptchaenterpriseV1RiskAnalysis {
465
466
  /** Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys. */
466
467
  challenge?: 'CHALLENGE_UNSPECIFIED' | 'NOCAPTCHA' | 'PASSED' | 'FAILED';
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. */
468
+ /** Output only. Additional reasons contributing to the risk analysis verdict. These reasons are available to Enterprise tier projects only. Contact sales for more information. The set of reasons is subject to change. */
468
469
  extendedVerdictReasons?: string[];
469
470
  /** Output only. Reasons contributing to the risk analysis verdict. */
470
471
  reasons?:
@@ -542,10 +543,12 @@ declare namespace gapi.client {
542
543
  | 'DUPE'
543
544
  | 'MISSING'
544
545
  | 'BROWSER_ERROR'
545
- | 'UNEXPECTED_ACTION';
546
+ | 'UNEXPECTED_ACTION'
547
+ | 'KEY_MISMATCH'
548
+ | 'DOMAIN_MISMATCH';
546
549
  /** Output only. The ID of the iOS bundle with which the token was generated (iOS keys only). */
547
550
  iosBundleId?: string;
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). */
551
+ /** Output only. Indicates whether the provided user response token is valid. If `false`, the token is invalid, either because the user failed the challenge or for a reason provided in the `invalid_reason` field. */
549
552
  valid?: boolean;
550
553
  }
551
554
  interface GoogleCloudRecaptchaenterpriseV1TransactionData {
@@ -725,7 +728,7 @@ declare namespace gapi.client {
725
728
  /** The status code, which should be an enum value of google.rpc.Code. */
726
729
  code?: number;
727
730
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
728
- details?: Array<{[P in string]: any}>;
731
+ details?: {[P in string]: any}[];
729
732
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
730
733
  message?: string;
731
734
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.recaptchaenterprise-v1",
3
- "version": "0.2.20260310",
3
+ "version": "0.2.20260609",
4
4
  "description": "TypeScript typings for reCAPTCHA Enterprise API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for reCAPTCHA Enterprise API:
11
11
  npm install @types/gapi.client.recaptchaenterprise-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": [
22
+ "gapi",
23
+ "gapi.auth2",
24
+ "gapi.client",
25
+ "gapi.client.recaptchaenterprise-v1"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: