@maxim_mazurok/gapi.client.recaptchaenterprise-v1 0.0.20230121 → 0.0.20230205

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 +18 -3
  2. package/package.json +1 -1
  3. package/tests.ts +7 -1
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: 20230121
12
+ // Revision: 20230205
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -55,6 +55,8 @@ declare namespace gapi.client {
55
55
  hashedAccountId?: string;
56
56
  /** Optional. Optional reasons for the annotation that will be assigned to the Event. */
57
57
  reasons?: string[];
58
+ /** Optional. If the Assessment is part of a Payment Transaction, provide details on Payment Lifecycle Events that occur in the Transaction. */
59
+ transactionEvent?: GoogleCloudRecaptchaenterpriseV1TransactionEvent;
58
60
  }
59
61
  // tslint:disable-next-line:no-empty-interface
60
62
  interface GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponse {
@@ -103,9 +105,9 @@ declare namespace gapi.client {
103
105
  expectedAction?: string;
104
106
  /** Optional. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret. */
105
107
  hashedAccountId?: string;
106
- /** Optional. The site key that was used to invoke reCAPTCHA on your site and generate the token. */
108
+ /** Optional. The site key that was used to invoke reCAPTCHA Enterprise on your site and generate the token. */
107
109
  siteKey?: string;
108
- /** Optional. The user response token provided by the reCAPTCHA client-side integration on your site. */
110
+ /** Optional. The user response token provided by the reCAPTCHA Enterprise client-side integration on your site. */
109
111
  token?: string;
110
112
  /** Optional. The user agent present in the request from the user's device related to this event. */
111
113
  userAgent?: string;
@@ -268,6 +270,19 @@ declare namespace gapi.client {
268
270
  */
269
271
  valid?: boolean;
270
272
  }
273
+ interface GoogleCloudRecaptchaenterpriseV1TransactionEvent {
274
+ /** Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call. */
275
+ eventTime?: string;
276
+ /** Optional. The type of this transaction event. */
277
+ eventType?: string;
278
+ /** Optional. The reason or standardized code which corresponds with this transaction event, if one exists. E.g. a CHARGEBACK Event with code 4553. */
279
+ reason?: string;
280
+ /**
281
+ * Optional. The value that corresponds with this transaction event, if one exists. E.g. A refund event where $5.00 was refunded. Currency is obtained from the original transaction
282
+ * data.
283
+ */
284
+ value?: number;
285
+ }
271
286
  interface GoogleCloudRecaptchaenterpriseV1WafSettings {
272
287
  /** Required. The WAF feature for which this key is enabled. */
273
288
  wafFeature?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.recaptchaenterprise-v1",
3
- "version": "0.0.20230121",
3
+ "version": "0.0.20230205",
4
4
  "description": "TypeScript typings for reCAPTCHA Enterprise API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230121
6
+ // Revision: 20230205
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -38,6 +38,12 @@ gapi.load('client', async () => {
38
38
  reasons: [
39
39
  "Test string"
40
40
  ],
41
+ transactionEvent: {
42
+ eventTime: "Test string",
43
+ eventType: "Test string",
44
+ reason: "Test string",
45
+ value: 42,
46
+ },
41
47
  });
42
48
  /** Creates an Assessment of the likelihood an event is legitimate. */
43
49
  await gapi.client.recaptchaenterprise.projects.assessments.create({