@maxim_mazurok/gapi.client.recaptchaenterprise-v1
Advanced tools
Comparing version 0.0.20221112 to 0.0.20221204
@@ -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: 20221112 | ||
// Revision: 20221204 | ||
@@ -30,2 +30,12 @@ /// <reference types="gapi.client" /> | ||
} | ||
interface GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo { | ||
/** Endpoints that can be used for identity verification. */ | ||
endpoints?: GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo[]; | ||
/** Language code preference for the verification message, set as a IETF BCP 47 language code. */ | ||
languageCode?: string; | ||
/** Output only. Result of the latest account verification challenge. */ | ||
latestVerificationResult?: string; | ||
/** Username of the account that is being verified. Deprecated. Customers should now provide the hashed account ID field in Event. */ | ||
username?: string; | ||
} | ||
interface GoogleCloudRecaptchaenterpriseV1AndroidKeySettings { | ||
@@ -57,2 +67,4 @@ /** If set to true, allowed_package_names are not enforced. */ | ||
accountDefenderAssessment?: GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment; | ||
/** Account verification information for identity verification. The assessment event must include a token and site key to use this feature. */ | ||
accountVerification?: GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo; | ||
/** The event being assessed. */ | ||
@@ -79,2 +91,12 @@ event?: GoogleCloudRecaptchaenterpriseV1Event; | ||
} | ||
interface GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo { | ||
/** Email address for which to trigger a verification request. */ | ||
emailAddress?: string; | ||
/** Output only. Timestamp of the last successful verification for the endpoint, if any. */ | ||
lastVerificationTime?: string; | ||
/** Phone number for which to trigger a verification request. Should be given in E.164 format. */ | ||
phoneNumber?: string; | ||
/** Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes. */ | ||
requestToken?: string; | ||
} | ||
interface GoogleCloudRecaptchaenterpriseV1Event { | ||
@@ -151,4 +173,9 @@ /** | ||
} | ||
// tslint:disable-next-line:no-empty-interface | ||
interface GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest { | ||
/** | ||
* Optional. Whether or not to do billing check. A reCAPTCHA Enterprise or migrated key behaves differently than a reCAPTCHA (non-Enterprise version) key when you reach a quota limit | ||
* (see https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid any disruption of your usage, we check that a billing account is present. If your usage of reCAPTCHA | ||
* is under the free quota, you can safely skip the billing check and proceed with the migration. See https://cloud.google.com/recaptcha-enterprise/docs/billing-information. | ||
*/ | ||
skipBillingCheck?: boolean; | ||
} | ||
@@ -155,0 +182,0 @@ interface GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification { |
{ | ||
"name": "@maxim_mazurok/gapi.client.recaptchaenterprise-v1", | ||
"version": "0.0.20221112", | ||
"version": "0.0.20221204", | ||
"description": "TypeScript typings for reCAPTCHA Enterprise API v1", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
# TypeScript typings for reCAPTCHA Enterprise API v1 | ||
Help protect your website from fraudulent activity, spam, and abuse without creating friction. | ||
For detailed description please check [documentation](https://cloud.google.com/recaptcha-enterprise/). | ||
@@ -5,0 +5,0 @@ |
16
tests.ts
@@ -6,3 +6,3 @@ /* This is stub file for gapi.client.recaptchaenterprise-v1 definition tests */ | ||
// Revision: 20221112 | ||
// Revision: 20221204 | ||
@@ -52,2 +52,15 @@ gapi.load('client', async () => { | ||
}, | ||
accountVerification: { | ||
endpoints: [ | ||
{ | ||
emailAddress: "Test string", | ||
lastVerificationTime: "Test string", | ||
phoneNumber: "Test string", | ||
requestToken: "Test string", | ||
} | ||
], | ||
languageCode: "Test string", | ||
latestVerificationResult: "Test string", | ||
username: "Test string", | ||
}, | ||
event: { | ||
@@ -151,2 +164,3 @@ expectedAction: "Test string", | ||
}, { | ||
skipBillingCheck: true, | ||
}); | ||
@@ -153,0 +167,0 @@ /** Updates the specified key. */ |
66200
1113