botshield-sdk 1.2.4 → 1.4.0
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.
- package/CHANGELOG.md +35 -0
- package/README.md +62 -13
- package/client.d.mts +6 -30
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -30
- package/client.d.ts.map +1 -1
- package/client.js +2 -26
- package/client.js.map +1 -1
- package/client.mjs +2 -26
- package/client.mjs.map +1 -1
- package/package.json +7 -1
- package/resources/index.d.mts +2 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -9
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -4
- package/resources/index.mjs.map +1 -1
- package/resources/sdk.d.mts +226 -8
- package/resources/sdk.d.mts.map +1 -1
- package/resources/sdk.d.ts +226 -8
- package/resources/sdk.d.ts.map +1 -1
- package/resources/sdk.js +43 -4
- package/resources/sdk.js.map +1 -1
- package/resources/sdk.mjs +43 -4
- package/resources/sdk.mjs.map +1 -1
- package/resources/verification.d.mts +46 -8
- package/resources/verification.d.mts.map +1 -1
- package/resources/verification.d.ts +46 -8
- package/resources/verification.d.ts.map +1 -1
- package/resources/verification.js +8 -7
- package/resources/verification.js.map +1 -1
- package/resources/verification.mjs +8 -7
- package/resources/verification.mjs.map +1 -1
- package/src/client.ts +26 -54
- package/src/resources/index.ts +12 -8
- package/src/resources/sdk.ts +347 -10
- package/src/resources/verification.ts +77 -9
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/devices.d.mts +0 -21
- package/resources/devices.d.mts.map +0 -1
- package/resources/devices.d.ts +0 -21
- package/resources/devices.d.ts.map +0 -1
- package/resources/devices.js +0 -18
- package/resources/devices.js.map +0 -1
- package/resources/devices.mjs +0 -14
- package/resources/devices.mjs.map +0 -1
- package/resources/organizations.d.mts +0 -21
- package/resources/organizations.d.mts.map +0 -1
- package/resources/organizations.d.ts +0 -21
- package/resources/organizations.d.ts.map +0 -1
- package/resources/organizations.js +0 -18
- package/resources/organizations.js.map +0 -1
- package/resources/organizations.mjs +0 -14
- package/resources/organizations.mjs.map +0 -1
- package/resources/pass.d.mts +0 -21
- package/resources/pass.d.mts.map +0 -1
- package/resources/pass.d.ts +0 -21
- package/resources/pass.d.ts.map +0 -1
- package/resources/pass.js +0 -18
- package/resources/pass.js.map +0 -1
- package/resources/pass.mjs +0 -14
- package/resources/pass.mjs.map +0 -1
- package/resources/users.d.mts +0 -21
- package/resources/users.d.mts.map +0 -1
- package/resources/users.d.ts +0 -21
- package/resources/users.d.ts.map +0 -1
- package/resources/users.js +0 -18
- package/resources/users.js.map +0 -1
- package/resources/users.mjs +0 -14
- package/resources/users.mjs.map +0 -1
- package/src/resources/devices.ts +0 -27
- package/src/resources/organizations.ts +0 -33
- package/src/resources/pass.ts +0 -27
- package/src/resources/users.ts +0 -33
package/resources/sdk.js
CHANGED
|
@@ -4,27 +4,66 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.SDK = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
/**
|
|
7
|
-
* SDK
|
|
7
|
+
* Core SDK operations — session management, verification, token validation, and Signal Pixel scoring
|
|
8
8
|
*/
|
|
9
9
|
class SDK extends resource_1.APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Creates a short-lived anchor grant token (5 minutes) from an API token or site
|
|
12
|
+
* key. Use this to get a token before creating verification links.
|
|
12
13
|
*/
|
|
13
14
|
createSession(body, options) {
|
|
14
15
|
return this._client.post('/sdk/create-session', { body, ...options });
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
+
* Creates a verification request with deep link, web URL, and QR code. Requires an
|
|
19
|
+
* anchor grant token from create-session.
|
|
18
20
|
*/
|
|
19
21
|
createVerificationLink(body, options) {
|
|
20
22
|
return this._client.post('/sdk/create-verification-link', { body, ...options });
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* Returns enabled integrations (Turnstile, etc.) for a site key. Public config
|
|
26
|
+
* only — secret keys never exposed.
|
|
27
|
+
*/
|
|
28
|
+
getPartnerConfig(query, options) {
|
|
29
|
+
return this._client.get('/sdk/partner-config', { query, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Revoke an Anchor Grant Window token
|
|
24
33
|
*/
|
|
25
34
|
logout(body, options) {
|
|
26
35
|
return this._client.post('/sdk/logout', { body, ...options });
|
|
27
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Soft-expires a pending verification for a scope and user. Use when
|
|
39
|
+
* create-verification-link returns 409.
|
|
40
|
+
*/
|
|
41
|
+
revokeVerification(body, options) {
|
|
42
|
+
return this._client.post('/sdk/revoke-verification', { body, ...options });
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Stores a behavioral fingerprint score server-side and returns an opaque
|
|
46
|
+
* signal*token (bs_sig*...). The client-side score can be spoofed — the
|
|
47
|
+
* signal_token maps to the real score in BotShield's database.
|
|
48
|
+
*/
|
|
49
|
+
storeSignal(body, options) {
|
|
50
|
+
return this._client.post('/sdk/store-signal', { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Validates a signal_token and returns the real server-side bot score. One-time
|
|
54
|
+
* use, 10-minute expiry. This is the tamper-proof check.
|
|
55
|
+
*/
|
|
56
|
+
validateSignal(body, options) {
|
|
57
|
+
return this._client.post('/sdk/validate-signal', { body, ...options });
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Validates a signed JWT verification receipt. This is the primary server-side
|
|
61
|
+
* check. Optionally include signal_token for combined confidence scoring with
|
|
62
|
+
* Signal Pixel + Turnstile + passkey results.
|
|
63
|
+
*/
|
|
64
|
+
verifyToken(body, options) {
|
|
65
|
+
return this._client.post('/sdk/verify-token', { body, ...options });
|
|
66
|
+
}
|
|
28
67
|
}
|
|
29
68
|
exports.SDK = SDK;
|
|
30
69
|
//# sourceMappingURL=sdk.js.map
|
package/resources/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/resources/sdk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,GAAI,SAAQ,sBAAW;IAClC
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/resources/sdk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;OAGG;IACH,aAAa,CACX,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,sBAAsB,CACpB,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,KAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;OAGG;IACH,kBAAkB,CAChB,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;OAGG;IACH,cAAc,CACZ,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AAhFD,kBAgFC"}
|
package/resources/sdk.mjs
CHANGED
|
@@ -1,26 +1,65 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
/**
|
|
4
|
-
* SDK
|
|
4
|
+
* Core SDK operations — session management, verification, token validation, and Signal Pixel scoring
|
|
5
5
|
*/
|
|
6
6
|
export class SDK extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Creates a short-lived anchor grant token (5 minutes) from an API token or site
|
|
9
|
+
* key. Use this to get a token before creating verification links.
|
|
9
10
|
*/
|
|
10
11
|
createSession(body, options) {
|
|
11
12
|
return this._client.post('/sdk/create-session', { body, ...options });
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
+
* Creates a verification request with deep link, web URL, and QR code. Requires an
|
|
16
|
+
* anchor grant token from create-session.
|
|
15
17
|
*/
|
|
16
18
|
createVerificationLink(body, options) {
|
|
17
19
|
return this._client.post('/sdk/create-verification-link', { body, ...options });
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
|
-
*
|
|
22
|
+
* Returns enabled integrations (Turnstile, etc.) for a site key. Public config
|
|
23
|
+
* only — secret keys never exposed.
|
|
24
|
+
*/
|
|
25
|
+
getPartnerConfig(query, options) {
|
|
26
|
+
return this._client.get('/sdk/partner-config', { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Revoke an Anchor Grant Window token
|
|
21
30
|
*/
|
|
22
31
|
logout(body, options) {
|
|
23
32
|
return this._client.post('/sdk/logout', { body, ...options });
|
|
24
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Soft-expires a pending verification for a scope and user. Use when
|
|
36
|
+
* create-verification-link returns 409.
|
|
37
|
+
*/
|
|
38
|
+
revokeVerification(body, options) {
|
|
39
|
+
return this._client.post('/sdk/revoke-verification', { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Stores a behavioral fingerprint score server-side and returns an opaque
|
|
43
|
+
* signal*token (bs_sig*...). The client-side score can be spoofed — the
|
|
44
|
+
* signal_token maps to the real score in BotShield's database.
|
|
45
|
+
*/
|
|
46
|
+
storeSignal(body, options) {
|
|
47
|
+
return this._client.post('/sdk/store-signal', { body, ...options });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Validates a signal_token and returns the real server-side bot score. One-time
|
|
51
|
+
* use, 10-minute expiry. This is the tamper-proof check.
|
|
52
|
+
*/
|
|
53
|
+
validateSignal(body, options) {
|
|
54
|
+
return this._client.post('/sdk/validate-signal', { body, ...options });
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Validates a signed JWT verification receipt. This is the primary server-side
|
|
58
|
+
* check. Optionally include signal_token for combined confidence scoring with
|
|
59
|
+
* Signal Pixel + Turnstile + passkey results.
|
|
60
|
+
*/
|
|
61
|
+
verifyToken(body, options) {
|
|
62
|
+
return this._client.post('/sdk/verify-token', { body, ...options });
|
|
63
|
+
}
|
|
25
64
|
}
|
|
26
65
|
//# sourceMappingURL=sdk.mjs.map
|
package/resources/sdk.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.mjs","sourceRoot":"","sources":["../src/resources/sdk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC
|
|
1
|
+
{"version":3,"file":"sdk.mjs","sourceRoot":"","sources":["../src/resources/sdk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;OAGG;IACH,aAAa,CACX,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,sBAAsB,CACpB,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,KAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;OAGG;IACH,kBAAkB,CAChB,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;OAGG;IACH,cAAc,CACZ,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
|
|
@@ -2,25 +2,63 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* Verification status and lookup
|
|
5
|
+
* Verification status checking and user lookup
|
|
6
6
|
*/
|
|
7
7
|
export declare class Verification extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Poll for verification request status. Returns signed token on completion.
|
|
10
10
|
*/
|
|
11
|
-
getStatus(options?: RequestOptions): APIPromise<VerificationGetStatusResponse>;
|
|
11
|
+
getStatus(query: VerificationGetStatusParams, options?: RequestOptions): APIPromise<VerificationGetStatusResponse>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Check whether a user exists and has a registered passkey before initiating
|
|
14
|
+
* verification.
|
|
14
15
|
*/
|
|
15
|
-
lookupUserByEmail(options?: RequestOptions): APIPromise<VerificationLookupUserByEmailResponse>;
|
|
16
|
+
lookupUserByEmail(query: VerificationLookupUserByEmailParams, options?: RequestOptions): APIPromise<VerificationLookupUserByEmailResponse>;
|
|
16
17
|
}
|
|
17
18
|
export interface VerificationGetStatusResponse {
|
|
18
|
-
|
|
19
|
+
auth_mode?: 'linked-account' | 'private';
|
|
20
|
+
confidence?: number;
|
|
21
|
+
created_at?: string;
|
|
22
|
+
error_message?: string;
|
|
23
|
+
expires_at?: string;
|
|
24
|
+
found?: boolean;
|
|
25
|
+
metadata?: {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
organization_id?: string;
|
|
29
|
+
partner_user_id?: string;
|
|
30
|
+
presence_address?: string;
|
|
31
|
+
request_id?: string;
|
|
32
|
+
scope?: string;
|
|
33
|
+
sdk_type?: 'signal' | 'presence';
|
|
34
|
+
signal_score?: number;
|
|
35
|
+
signed_token?: string;
|
|
36
|
+
status?: 'pending' | 'completed' | 'expired' | 'failed' | 'not_found';
|
|
37
|
+
user_email?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Legacy alias
|
|
40
|
+
*/
|
|
41
|
+
verification_token?: string;
|
|
42
|
+
verified_at?: string;
|
|
19
43
|
}
|
|
20
44
|
export interface VerificationLookupUserByEmailResponse {
|
|
21
|
-
data:
|
|
45
|
+
data: VerificationLookupUserByEmailResponse.Data;
|
|
46
|
+
}
|
|
47
|
+
export declare namespace VerificationLookupUserByEmailResponse {
|
|
48
|
+
interface Data {
|
|
49
|
+
clerk_user_id?: string;
|
|
50
|
+
found?: boolean;
|
|
51
|
+
has_passkey?: boolean;
|
|
52
|
+
is_active?: boolean;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export interface VerificationGetStatusParams {
|
|
56
|
+
request_id: string;
|
|
57
|
+
}
|
|
58
|
+
export interface VerificationLookupUserByEmailParams {
|
|
59
|
+
email: string;
|
|
22
60
|
}
|
|
23
61
|
export declare namespace Verification {
|
|
24
|
-
export { type VerificationGetStatusResponse as VerificationGetStatusResponse, type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse, };
|
|
62
|
+
export { type VerificationGetStatusResponse as VerificationGetStatusResponse, type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse, type VerificationGetStatusParams as VerificationGetStatusParams, type VerificationLookupUserByEmailParams as VerificationLookupUserByEmailParams, };
|
|
25
63
|
}
|
|
26
64
|
//# sourceMappingURL=verification.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification.d.mts","sourceRoot":"","sources":["../src/resources/verification.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,SAAS,
|
|
1
|
+
{"version":3,"file":"verification.d.mts","sourceRoot":"","sources":["../src/resources/verification.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,SAAS,CACP,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;OAGG;IACH,iBAAiB,CACf,KAAK,EAAE,mCAAmC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;CAGrD;AAED,MAAM,WAAW,6BAA6B;IAC5C,SAAS,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAEzC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEtC,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC;IAEtE,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,EAAE,qCAAqC,CAAC,IAAI,CAAC;CAClD;AAED,yBAAiB,qCAAqC,CAAC;IACrD,UAAiB,IAAI;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB,WAAW,CAAC,EAAE,OAAO,CAAC;QAEtB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;CACF;AAED,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mCAAmC;IAClD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -2,25 +2,63 @@ import { APIResource } from "../core/resource.js";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
/**
|
|
5
|
-
* Verification status and lookup
|
|
5
|
+
* Verification status checking and user lookup
|
|
6
6
|
*/
|
|
7
7
|
export declare class Verification extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Poll for verification request status. Returns signed token on completion.
|
|
10
10
|
*/
|
|
11
|
-
getStatus(options?: RequestOptions): APIPromise<VerificationGetStatusResponse>;
|
|
11
|
+
getStatus(query: VerificationGetStatusParams, options?: RequestOptions): APIPromise<VerificationGetStatusResponse>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Check whether a user exists and has a registered passkey before initiating
|
|
14
|
+
* verification.
|
|
14
15
|
*/
|
|
15
|
-
lookupUserByEmail(options?: RequestOptions): APIPromise<VerificationLookupUserByEmailResponse>;
|
|
16
|
+
lookupUserByEmail(query: VerificationLookupUserByEmailParams, options?: RequestOptions): APIPromise<VerificationLookupUserByEmailResponse>;
|
|
16
17
|
}
|
|
17
18
|
export interface VerificationGetStatusResponse {
|
|
18
|
-
|
|
19
|
+
auth_mode?: 'linked-account' | 'private';
|
|
20
|
+
confidence?: number;
|
|
21
|
+
created_at?: string;
|
|
22
|
+
error_message?: string;
|
|
23
|
+
expires_at?: string;
|
|
24
|
+
found?: boolean;
|
|
25
|
+
metadata?: {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
organization_id?: string;
|
|
29
|
+
partner_user_id?: string;
|
|
30
|
+
presence_address?: string;
|
|
31
|
+
request_id?: string;
|
|
32
|
+
scope?: string;
|
|
33
|
+
sdk_type?: 'signal' | 'presence';
|
|
34
|
+
signal_score?: number;
|
|
35
|
+
signed_token?: string;
|
|
36
|
+
status?: 'pending' | 'completed' | 'expired' | 'failed' | 'not_found';
|
|
37
|
+
user_email?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Legacy alias
|
|
40
|
+
*/
|
|
41
|
+
verification_token?: string;
|
|
42
|
+
verified_at?: string;
|
|
19
43
|
}
|
|
20
44
|
export interface VerificationLookupUserByEmailResponse {
|
|
21
|
-
data:
|
|
45
|
+
data: VerificationLookupUserByEmailResponse.Data;
|
|
46
|
+
}
|
|
47
|
+
export declare namespace VerificationLookupUserByEmailResponse {
|
|
48
|
+
interface Data {
|
|
49
|
+
clerk_user_id?: string;
|
|
50
|
+
found?: boolean;
|
|
51
|
+
has_passkey?: boolean;
|
|
52
|
+
is_active?: boolean;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export interface VerificationGetStatusParams {
|
|
56
|
+
request_id: string;
|
|
57
|
+
}
|
|
58
|
+
export interface VerificationLookupUserByEmailParams {
|
|
59
|
+
email: string;
|
|
22
60
|
}
|
|
23
61
|
export declare namespace Verification {
|
|
24
|
-
export { type VerificationGetStatusResponse as VerificationGetStatusResponse, type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse, };
|
|
62
|
+
export { type VerificationGetStatusResponse as VerificationGetStatusResponse, type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse, type VerificationGetStatusParams as VerificationGetStatusParams, type VerificationLookupUserByEmailParams as VerificationLookupUserByEmailParams, };
|
|
25
63
|
}
|
|
26
64
|
//# sourceMappingURL=verification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification.d.ts","sourceRoot":"","sources":["../src/resources/verification.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,SAAS,
|
|
1
|
+
{"version":3,"file":"verification.d.ts","sourceRoot":"","sources":["../src/resources/verification.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,SAAS,CACP,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;OAGG;IACH,iBAAiB,CACf,KAAK,EAAE,mCAAmC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;CAGrD;AAED,MAAM,WAAW,6BAA6B;IAC5C,SAAS,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAEzC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEtC,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC;IAEtE,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,EAAE,qCAAqC,CAAC,IAAI,CAAC;CAClD;AAED,yBAAiB,qCAAqC,CAAC;IACrD,UAAiB,IAAI;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB,WAAW,CAAC,EAAE,OAAO,CAAC;QAEtB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;CACF;AAED,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mCAAmC;IAClD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -4,20 +4,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Verification = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
/**
|
|
7
|
-
* Verification status and lookup
|
|
7
|
+
* Verification status checking and user lookup
|
|
8
8
|
*/
|
|
9
9
|
class Verification extends resource_1.APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Poll for verification request status. Returns signed token on completion.
|
|
12
12
|
*/
|
|
13
|
-
getStatus(options) {
|
|
14
|
-
return this._client.get('/verification/status', options);
|
|
13
|
+
getStatus(query, options) {
|
|
14
|
+
return this._client.get('/verification/status', { query, ...options });
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Check whether a user exists and has a registered passkey before initiating
|
|
18
|
+
* verification.
|
|
18
19
|
*/
|
|
19
|
-
lookupUserByEmail(options) {
|
|
20
|
-
return this._client.get('/verification/lookup-user-by-email', options);
|
|
20
|
+
lookupUserByEmail(query, options) {
|
|
21
|
+
return this._client.get('/verification/lookup-user-by-email', { query, ...options });
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
exports.Verification = Verification;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification.js","sourceRoot":"","sources":["../src/resources/verification.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,SAAS,
|
|
1
|
+
{"version":3,"file":"verification.js","sourceRoot":"","sources":["../src/resources/verification.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,SAAS,CACP,KAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACH,iBAAiB,CACf,KAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AArBD,oCAqBC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
/**
|
|
4
|
-
* Verification status and lookup
|
|
4
|
+
* Verification status checking and user lookup
|
|
5
5
|
*/
|
|
6
6
|
export class Verification extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Poll for verification request status. Returns signed token on completion.
|
|
9
9
|
*/
|
|
10
|
-
getStatus(options) {
|
|
11
|
-
return this._client.get('/verification/status', options);
|
|
10
|
+
getStatus(query, options) {
|
|
11
|
+
return this._client.get('/verification/status', { query, ...options });
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Check whether a user exists and has a registered passkey before initiating
|
|
15
|
+
* verification.
|
|
15
16
|
*/
|
|
16
|
-
lookupUserByEmail(options) {
|
|
17
|
-
return this._client.get('/verification/lookup-user-by-email', options);
|
|
17
|
+
lookupUserByEmail(query, options) {
|
|
18
|
+
return this._client.get('/verification/lookup-user-by-email', { query, ...options });
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
//# sourceMappingURL=verification.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification.mjs","sourceRoot":"","sources":["../src/resources/verification.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,SAAS,
|
|
1
|
+
{"version":3,"file":"verification.mjs","sourceRoot":"","sources":["../src/resources/verification.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,SAAS,CACP,KAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACH,iBAAiB,CACf,KAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -17,26 +17,30 @@ import * as Errors from './core/error';
|
|
|
17
17
|
import * as Uploads from './core/uploads';
|
|
18
18
|
import * as API from './resources/index';
|
|
19
19
|
import { APIPromise } from './core/api-promise';
|
|
20
|
-
import { DeviceRemoveParams, DeviceRemoveResponse, Devices } from './resources/devices';
|
|
21
|
-
import {
|
|
22
|
-
OrganizationAddMemberParams,
|
|
23
|
-
OrganizationAddMemberResponse,
|
|
24
|
-
Organizations,
|
|
25
|
-
} from './resources/organizations';
|
|
26
|
-
import { Pass, PassCreateParams, PassCreateResponse } from './resources/pass';
|
|
27
20
|
import {
|
|
28
21
|
SDK,
|
|
29
22
|
SDKCreateSessionParams,
|
|
30
23
|
SDKCreateSessionResponse,
|
|
31
24
|
SDKCreateVerificationLinkParams,
|
|
32
25
|
SDKCreateVerificationLinkResponse,
|
|
26
|
+
SDKGetPartnerConfigParams,
|
|
27
|
+
SDKGetPartnerConfigResponse,
|
|
33
28
|
SDKLogoutParams,
|
|
34
29
|
SDKLogoutResponse,
|
|
30
|
+
SDKRevokeVerificationParams,
|
|
31
|
+
SDKRevokeVerificationResponse,
|
|
32
|
+
SDKStoreSignalParams,
|
|
33
|
+
SDKStoreSignalResponse,
|
|
34
|
+
SDKValidateSignalParams,
|
|
35
|
+
SDKValidateSignalResponse,
|
|
36
|
+
SDKVerifyTokenParams,
|
|
37
|
+
SDKVerifyTokenResponse,
|
|
35
38
|
} from './resources/sdk';
|
|
36
|
-
import { UserUpdateMetadataParams, UserUpdateMetadataResponse, Users } from './resources/users';
|
|
37
39
|
import {
|
|
38
40
|
Verification,
|
|
41
|
+
VerificationGetStatusParams,
|
|
39
42
|
VerificationGetStatusResponse,
|
|
43
|
+
VerificationLookupUserByEmailParams,
|
|
40
44
|
VerificationLookupUserByEmailResponse,
|
|
41
45
|
} from './resources/verification';
|
|
42
46
|
import { type Fetch } from './internal/builtin-types';
|
|
@@ -770,37 +774,17 @@ export class BotShield {
|
|
|
770
774
|
static toFile = Uploads.toFile;
|
|
771
775
|
|
|
772
776
|
/**
|
|
773
|
-
* SDK
|
|
777
|
+
* Core SDK operations — session management, verification, token validation, and Signal Pixel scoring
|
|
774
778
|
*/
|
|
775
779
|
sdk: API.SDK = new API.SDK(this);
|
|
776
780
|
/**
|
|
777
|
-
* Verification status and lookup
|
|
781
|
+
* Verification status checking and user lookup
|
|
778
782
|
*/
|
|
779
783
|
verification: API.Verification = new API.Verification(this);
|
|
780
|
-
/**
|
|
781
|
-
* Pass management
|
|
782
|
-
*/
|
|
783
|
-
pass: API.Pass = new API.Pass(this);
|
|
784
|
-
/**
|
|
785
|
-
* SDK integration endpoints
|
|
786
|
-
*/
|
|
787
|
-
users: API.Users = new API.Users(this);
|
|
788
|
-
/**
|
|
789
|
-
* Device management
|
|
790
|
-
*/
|
|
791
|
-
devices: API.Devices = new API.Devices(this);
|
|
792
|
-
/**
|
|
793
|
-
* SDK integration endpoints
|
|
794
|
-
*/
|
|
795
|
-
organizations: API.Organizations = new API.Organizations(this);
|
|
796
784
|
}
|
|
797
785
|
|
|
798
786
|
BotShield.SDK = SDK;
|
|
799
787
|
BotShield.Verification = Verification;
|
|
800
|
-
BotShield.Pass = Pass;
|
|
801
|
-
BotShield.Users = Users;
|
|
802
|
-
BotShield.Devices = Devices;
|
|
803
|
-
BotShield.Organizations = Organizations;
|
|
804
788
|
|
|
805
789
|
export declare namespace BotShield {
|
|
806
790
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -809,39 +793,27 @@ export declare namespace BotShield {
|
|
|
809
793
|
SDK as SDK,
|
|
810
794
|
type SDKCreateSessionResponse as SDKCreateSessionResponse,
|
|
811
795
|
type SDKCreateVerificationLinkResponse as SDKCreateVerificationLinkResponse,
|
|
796
|
+
type SDKGetPartnerConfigResponse as SDKGetPartnerConfigResponse,
|
|
812
797
|
type SDKLogoutResponse as SDKLogoutResponse,
|
|
798
|
+
type SDKRevokeVerificationResponse as SDKRevokeVerificationResponse,
|
|
799
|
+
type SDKStoreSignalResponse as SDKStoreSignalResponse,
|
|
800
|
+
type SDKValidateSignalResponse as SDKValidateSignalResponse,
|
|
801
|
+
type SDKVerifyTokenResponse as SDKVerifyTokenResponse,
|
|
813
802
|
type SDKCreateSessionParams as SDKCreateSessionParams,
|
|
814
803
|
type SDKCreateVerificationLinkParams as SDKCreateVerificationLinkParams,
|
|
804
|
+
type SDKGetPartnerConfigParams as SDKGetPartnerConfigParams,
|
|
815
805
|
type SDKLogoutParams as SDKLogoutParams,
|
|
806
|
+
type SDKRevokeVerificationParams as SDKRevokeVerificationParams,
|
|
807
|
+
type SDKStoreSignalParams as SDKStoreSignalParams,
|
|
808
|
+
type SDKValidateSignalParams as SDKValidateSignalParams,
|
|
809
|
+
type SDKVerifyTokenParams as SDKVerifyTokenParams,
|
|
816
810
|
};
|
|
817
811
|
|
|
818
812
|
export {
|
|
819
813
|
Verification as Verification,
|
|
820
814
|
type VerificationGetStatusResponse as VerificationGetStatusResponse,
|
|
821
815
|
type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse,
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
export {
|
|
825
|
-
Pass as Pass,
|
|
826
|
-
type PassCreateResponse as PassCreateResponse,
|
|
827
|
-
type PassCreateParams as PassCreateParams,
|
|
828
|
-
};
|
|
829
|
-
|
|
830
|
-
export {
|
|
831
|
-
Users as Users,
|
|
832
|
-
type UserUpdateMetadataResponse as UserUpdateMetadataResponse,
|
|
833
|
-
type UserUpdateMetadataParams as UserUpdateMetadataParams,
|
|
834
|
-
};
|
|
835
|
-
|
|
836
|
-
export {
|
|
837
|
-
Devices as Devices,
|
|
838
|
-
type DeviceRemoveResponse as DeviceRemoveResponse,
|
|
839
|
-
type DeviceRemoveParams as DeviceRemoveParams,
|
|
840
|
-
};
|
|
841
|
-
|
|
842
|
-
export {
|
|
843
|
-
Organizations as Organizations,
|
|
844
|
-
type OrganizationAddMemberResponse as OrganizationAddMemberResponse,
|
|
845
|
-
type OrganizationAddMemberParams as OrganizationAddMemberParams,
|
|
816
|
+
type VerificationGetStatusParams as VerificationGetStatusParams,
|
|
817
|
+
type VerificationLookupUserByEmailParams as VerificationLookupUserByEmailParams,
|
|
846
818
|
};
|
|
847
819
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Devices, type DeviceRemoveResponse, type DeviceRemoveParams } from './devices';
|
|
4
|
-
export {
|
|
5
|
-
Organizations,
|
|
6
|
-
type OrganizationAddMemberResponse,
|
|
7
|
-
type OrganizationAddMemberParams,
|
|
8
|
-
} from './organizations';
|
|
9
|
-
export { Pass, type PassCreateResponse, type PassCreateParams } from './pass';
|
|
10
3
|
export {
|
|
11
4
|
SDK,
|
|
12
5
|
type SDKCreateSessionResponse,
|
|
13
6
|
type SDKCreateVerificationLinkResponse,
|
|
7
|
+
type SDKGetPartnerConfigResponse,
|
|
14
8
|
type SDKLogoutResponse,
|
|
9
|
+
type SDKRevokeVerificationResponse,
|
|
10
|
+
type SDKStoreSignalResponse,
|
|
11
|
+
type SDKValidateSignalResponse,
|
|
12
|
+
type SDKVerifyTokenResponse,
|
|
15
13
|
type SDKCreateSessionParams,
|
|
16
14
|
type SDKCreateVerificationLinkParams,
|
|
15
|
+
type SDKGetPartnerConfigParams,
|
|
17
16
|
type SDKLogoutParams,
|
|
17
|
+
type SDKRevokeVerificationParams,
|
|
18
|
+
type SDKStoreSignalParams,
|
|
19
|
+
type SDKValidateSignalParams,
|
|
20
|
+
type SDKVerifyTokenParams,
|
|
18
21
|
} from './sdk';
|
|
19
|
-
export { Users, type UserUpdateMetadataResponse, type UserUpdateMetadataParams } from './users';
|
|
20
22
|
export {
|
|
21
23
|
Verification,
|
|
22
24
|
type VerificationGetStatusResponse,
|
|
23
25
|
type VerificationLookupUserByEmailResponse,
|
|
26
|
+
type VerificationGetStatusParams,
|
|
27
|
+
type VerificationLookupUserByEmailParams,
|
|
24
28
|
} from './verification';
|