@maxim_mazurok/gapi.client.recaptchaenterprise-v1
Advanced tools
Comparing version 0.0.20230121 to 0.0.20230129
@@ -12,3 +12,3 @@ /* Type definitions for non-npm package reCAPTCHA Enterprise API v1 0.0 */ | ||
// Generated from: https://recaptchaenterprise.googleapis.com/$discovery/rest?version=v1 | ||
// Revision: 20230121 | ||
// Revision: 20230129 | ||
@@ -59,2 +59,4 @@ /// <reference types="gapi.client" /> | ||
reasons?: string[]; | ||
/** Optional. If the Assessment is part of a Payment Transaction, provide details on Payment Lifecycle Events that occur in the Transaction. */ | ||
transactionEvent?: GoogleCloudRecaptchaenterpriseV1TransactionEvent; | ||
} | ||
@@ -108,5 +110,5 @@ // tslint:disable-next-line:no-empty-interface | ||
hashedAccountId?: string; | ||
/** Optional. The site key that was used to invoke reCAPTCHA on your site and generate the token. */ | ||
/** Optional. The site key that was used to invoke reCAPTCHA Enterprise on your site and generate the token. */ | ||
siteKey?: string; | ||
/** Optional. The user response token provided by the reCAPTCHA client-side integration on your site. */ | ||
/** Optional. The user response token provided by the reCAPTCHA Enterprise client-side integration on your site. */ | ||
token?: string; | ||
@@ -274,2 +276,15 @@ /** Optional. The user agent present in the request from the user's device related to this event. */ | ||
} | ||
interface GoogleCloudRecaptchaenterpriseV1TransactionEvent { | ||
/** Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call. */ | ||
eventTime?: string; | ||
/** Optional. The type of this transaction event. */ | ||
eventType?: string; | ||
/** Optional. The reason or standardized code which corresponds with this transaction event, if one exists. E.g. a CHARGEBACK Event with code 4553. */ | ||
reason?: string; | ||
/** | ||
* 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 | ||
* data. | ||
*/ | ||
value?: number; | ||
} | ||
interface GoogleCloudRecaptchaenterpriseV1WafSettings { | ||
@@ -276,0 +291,0 @@ /** Required. The WAF feature for which this key is enabled. */ |
{ | ||
"name": "@maxim_mazurok/gapi.client.recaptchaenterprise-v1", | ||
"version": "0.0.20230121", | ||
"version": "0.0.20230129", | ||
"description": "TypeScript typings for reCAPTCHA Enterprise API v1", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -6,3 +6,3 @@ /* This is stub file for gapi.client.recaptchaenterprise-v1 definition tests */ | ||
// Revision: 20230121 | ||
// Revision: 20230129 | ||
@@ -42,2 +42,8 @@ gapi.load('client', async () => { | ||
], | ||
transactionEvent: { | ||
eventTime: "Test string", | ||
eventType: "Test string", | ||
reason: "Test string", | ||
value: 42, | ||
}, | ||
}); | ||
@@ -44,0 +50,0 @@ /** Creates an Assessment of the likelihood an event is legitimate. */ |
67459
1134