@maxim_mazurok/gapi.client.recaptchaenterprise-v1
Advanced tools
Comparing version 0.0.20230312 to 0.0.20230319
{ | ||
"name": "@maxim_mazurok/gapi.client.recaptchaenterprise-v1", | ||
"version": "0.0.20230312", | ||
"version": "0.0.20230319", | ||
"description": "TypeScript typings for reCAPTCHA Enterprise API v1", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
107
tests.ts
@@ -6,3 +6,3 @@ /* This is stub file for gapi.client.recaptchaenterprise-v1 definition tests */ | ||
// Revision: 20230312 | ||
// Revision: 20230319 | ||
@@ -74,2 +74,3 @@ gapi.load('client', async () => { | ||
express: true, | ||
firewallPolicyEvaluation: true, | ||
hashedAccountId: "Test string", | ||
@@ -146,3 +147,38 @@ headers: [ | ||
userIpAddress: "Test string", | ||
wafTokenAssessment: true, | ||
}, | ||
firewallPolicyAssessment: { | ||
error: { | ||
code: 42, | ||
details: [ | ||
{ | ||
A: 42 | ||
} | ||
], | ||
message: "Test string", | ||
}, | ||
firewallPolicy: { | ||
actions: [ | ||
{ | ||
allow: { | ||
}, | ||
block: { | ||
}, | ||
redirect: { | ||
}, | ||
setHeader: { | ||
key: "Test string", | ||
value: "Test string", | ||
}, | ||
substitute: { | ||
path: "Test string", | ||
}, | ||
} | ||
], | ||
condition: "Test string", | ||
description: "Test string", | ||
name: "Test string", | ||
path: "Test string", | ||
}, | ||
}, | ||
fraudPreventionAssessment: { | ||
@@ -182,2 +218,69 @@ cardTestingVerdict: { | ||
}); | ||
/** Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies. */ | ||
await gapi.client.recaptchaenterprise.projects.firewallpolicies.create({ | ||
parent: "Test string", | ||
}, { | ||
actions: [ | ||
{ | ||
allow: { | ||
}, | ||
block: { | ||
}, | ||
redirect: { | ||
}, | ||
setHeader: { | ||
key: "Test string", | ||
value: "Test string", | ||
}, | ||
substitute: { | ||
path: "Test string", | ||
}, | ||
} | ||
], | ||
condition: "Test string", | ||
description: "Test string", | ||
name: "Test string", | ||
path: "Test string", | ||
}); | ||
/** Deletes the specified firewall policy. */ | ||
await gapi.client.recaptchaenterprise.projects.firewallpolicies.delete({ | ||
name: "Test string", | ||
}); | ||
/** Returns the specified firewall policy. */ | ||
await gapi.client.recaptchaenterprise.projects.firewallpolicies.get({ | ||
name: "Test string", | ||
}); | ||
/** Returns the list of all firewall policies that belong to a project. */ | ||
await gapi.client.recaptchaenterprise.projects.firewallpolicies.list({ | ||
pageSize: 42, | ||
pageToken: "Test string", | ||
parent: "Test string", | ||
}); | ||
/** Updates the specified firewall policy. */ | ||
await gapi.client.recaptchaenterprise.projects.firewallpolicies.patch({ | ||
name: "Test string", | ||
updateMask: "Test string", | ||
}, { | ||
actions: [ | ||
{ | ||
allow: { | ||
}, | ||
block: { | ||
}, | ||
redirect: { | ||
}, | ||
setHeader: { | ||
key: "Test string", | ||
value: "Test string", | ||
}, | ||
substitute: { | ||
path: "Test string", | ||
}, | ||
} | ||
], | ||
condition: "Test string", | ||
description: "Test string", | ||
name: "Test string", | ||
path: "Test string", | ||
}); | ||
/** Creates a new reCAPTCHA Enterprise key. */ | ||
@@ -192,2 +295,3 @@ await gapi.client.recaptchaenterprise.projects.keys.create({ | ||
], | ||
supportNonGoogleAppStoreDistribution: true, | ||
}, | ||
@@ -261,2 +365,3 @@ createTime: "Test string", | ||
], | ||
supportNonGoogleAppStoreDistribution: true, | ||
}, | ||
@@ -263,0 +368,0 @@ createTime: "Test string", |
Sorry, the diff of this file is too big to display
100372
1723