botshield-sdk 1.0.0 → 1.1.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 +8 -0
- package/README.md +15 -41
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/devices.d.mts +1 -12
- package/resources/devices.d.mts.map +1 -1
- package/resources/devices.d.ts +1 -12
- package/resources/devices.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/pass.d.mts +1 -22
- package/resources/pass.d.mts.map +1 -1
- package/resources/pass.d.ts +1 -22
- package/resources/pass.d.ts.map +1 -1
- package/resources/sdk.d.mts +2 -122
- package/resources/sdk.d.mts.map +1 -1
- package/resources/sdk.d.ts +2 -122
- package/resources/sdk.d.ts.map +1 -1
- package/resources/verification.d.mts +5 -73
- package/resources/verification.d.mts.map +1 -1
- package/resources/verification.d.ts +5 -73
- package/resources/verification.d.ts.map +1 -1
- package/resources/verification.js +4 -4
- package/resources/verification.js.map +1 -1
- package/resources/verification.mjs +4 -4
- package/resources/verification.mjs.map +1 -1
- package/src/client.ts +0 -4
- package/src/resources/devices.ts +2 -17
- package/src/resources/index.ts +0 -2
- package/src/resources/pass.ts +2 -28
- package/src/resources/sdk.ts +4 -146
- package/src/resources/verification.ts +6 -105
- 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/sdk.d.mts
CHANGED
|
@@ -12,134 +12,14 @@ export declare class SDK extends APIResource {
|
|
|
12
12
|
createVerificationLink(body: SDKCreateVerificationLinkParams, options?: RequestOptions): APIPromise<SDKCreateVerificationLinkResponse>;
|
|
13
13
|
}
|
|
14
14
|
export interface SDKCreateSessionResponse {
|
|
15
|
-
data:
|
|
16
|
-
}
|
|
17
|
-
export declare namespace SDKCreateSessionResponse {
|
|
18
|
-
interface Data {
|
|
19
|
-
data: Data.Data;
|
|
20
|
-
}
|
|
21
|
-
namespace Data {
|
|
22
|
-
interface Data {
|
|
23
|
-
/**
|
|
24
|
-
* ISO 8601 expiration timestamp
|
|
25
|
-
*/
|
|
26
|
-
expires_at: string;
|
|
27
|
-
/**
|
|
28
|
-
* Seconds until expiration
|
|
29
|
-
*/
|
|
30
|
-
expires_in_seconds: number;
|
|
31
|
-
organization: Data.Organization;
|
|
32
|
-
/**
|
|
33
|
-
* Session token for verification
|
|
34
|
-
*/
|
|
35
|
-
session_token: string;
|
|
36
|
-
}
|
|
37
|
-
namespace Data {
|
|
38
|
-
interface Organization {
|
|
39
|
-
/**
|
|
40
|
-
* Organization ID
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* Environment
|
|
45
|
-
*/
|
|
46
|
-
environment: 'development' | 'production';
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
interface Error {
|
|
51
|
-
error: Error.Error;
|
|
52
|
-
}
|
|
53
|
-
namespace Error {
|
|
54
|
-
interface Error {
|
|
55
|
-
/**
|
|
56
|
-
* Error message
|
|
57
|
-
*/
|
|
58
|
-
message: string;
|
|
59
|
-
statusCode: number;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
15
|
+
data: unknown;
|
|
62
16
|
}
|
|
63
17
|
export interface SDKCreateVerificationLinkResponse {
|
|
64
|
-
data:
|
|
65
|
-
}
|
|
66
|
-
export declare namespace SDKCreateVerificationLinkResponse {
|
|
67
|
-
interface Data {
|
|
68
|
-
data: Data.Data;
|
|
69
|
-
}
|
|
70
|
-
namespace Data {
|
|
71
|
-
interface Data {
|
|
72
|
-
/**
|
|
73
|
-
* Deep link for mobile app
|
|
74
|
-
*/
|
|
75
|
-
deep_link: string;
|
|
76
|
-
/**
|
|
77
|
-
* ISO 8601 expiration timestamp
|
|
78
|
-
*/
|
|
79
|
-
expires_at: string;
|
|
80
|
-
organization: Data.Organization;
|
|
81
|
-
/**
|
|
82
|
-
* QR code image URL
|
|
83
|
-
*/
|
|
84
|
-
qr_code_url: string;
|
|
85
|
-
/**
|
|
86
|
-
* Unique verification request ID
|
|
87
|
-
*/
|
|
88
|
-
request_id: string;
|
|
89
|
-
/**
|
|
90
|
-
* Web URL for verification
|
|
91
|
-
*/
|
|
92
|
-
web_url: string;
|
|
93
|
-
}
|
|
94
|
-
namespace Data {
|
|
95
|
-
interface Organization {
|
|
96
|
-
/**
|
|
97
|
-
* Organization ID
|
|
98
|
-
*/
|
|
99
|
-
id: string;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
interface Error {
|
|
104
|
-
error: Error.Error;
|
|
105
|
-
}
|
|
106
|
-
namespace Error {
|
|
107
|
-
interface Error {
|
|
108
|
-
/**
|
|
109
|
-
* Error message
|
|
110
|
-
*/
|
|
111
|
-
message: string;
|
|
112
|
-
statusCode: number;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
18
|
+
data: unknown;
|
|
115
19
|
}
|
|
116
20
|
export interface SDKCreateSessionParams {
|
|
117
|
-
/**
|
|
118
|
-
* Custom metadata to attach to session
|
|
119
|
-
*/
|
|
120
|
-
metadata?: {
|
|
121
|
-
[key: string]: unknown;
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Partner's user identifier
|
|
125
|
-
*/
|
|
126
|
-
partner_user_id?: string;
|
|
127
21
|
}
|
|
128
22
|
export interface SDKCreateVerificationLinkParams {
|
|
129
|
-
/**
|
|
130
|
-
* Custom metadata
|
|
131
|
-
*/
|
|
132
|
-
metadata?: {
|
|
133
|
-
[key: string]: unknown;
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* URL to return to after verification
|
|
137
|
-
*/
|
|
138
|
-
return_url?: string;
|
|
139
|
-
/**
|
|
140
|
-
* User's email address (optional, for tracking)
|
|
141
|
-
*/
|
|
142
|
-
user_email?: string;
|
|
143
23
|
}
|
|
144
24
|
export declare namespace SDK {
|
|
145
25
|
export { type SDKCreateSessionResponse as SDKCreateSessionResponse, type SDKCreateVerificationLinkResponse as SDKCreateVerificationLinkResponse, type SDKCreateSessionParams as SDKCreateSessionParams, type SDKCreateVerificationLinkParams as SDKCreateVerificationLinkParams, };
|
package/resources/sdk.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.mts","sourceRoot":"","sources":["../src/resources/sdk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,aAAa,CACX,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;OAEG;IACH,sBAAsB,CACpB,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"sdk.d.mts","sourceRoot":"","sources":["../src/resources/sdk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,aAAa,CACX,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;OAEG;IACH,sBAAsB,CACpB,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;CAAG;AAE1C,MAAM,WAAW,+BAA+B;CAAG;AAEnD,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
package/resources/sdk.d.ts
CHANGED
|
@@ -12,134 +12,14 @@ export declare class SDK extends APIResource {
|
|
|
12
12
|
createVerificationLink(body: SDKCreateVerificationLinkParams, options?: RequestOptions): APIPromise<SDKCreateVerificationLinkResponse>;
|
|
13
13
|
}
|
|
14
14
|
export interface SDKCreateSessionResponse {
|
|
15
|
-
data:
|
|
16
|
-
}
|
|
17
|
-
export declare namespace SDKCreateSessionResponse {
|
|
18
|
-
interface Data {
|
|
19
|
-
data: Data.Data;
|
|
20
|
-
}
|
|
21
|
-
namespace Data {
|
|
22
|
-
interface Data {
|
|
23
|
-
/**
|
|
24
|
-
* ISO 8601 expiration timestamp
|
|
25
|
-
*/
|
|
26
|
-
expires_at: string;
|
|
27
|
-
/**
|
|
28
|
-
* Seconds until expiration
|
|
29
|
-
*/
|
|
30
|
-
expires_in_seconds: number;
|
|
31
|
-
organization: Data.Organization;
|
|
32
|
-
/**
|
|
33
|
-
* Session token for verification
|
|
34
|
-
*/
|
|
35
|
-
session_token: string;
|
|
36
|
-
}
|
|
37
|
-
namespace Data {
|
|
38
|
-
interface Organization {
|
|
39
|
-
/**
|
|
40
|
-
* Organization ID
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* Environment
|
|
45
|
-
*/
|
|
46
|
-
environment: 'development' | 'production';
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
interface Error {
|
|
51
|
-
error: Error.Error;
|
|
52
|
-
}
|
|
53
|
-
namespace Error {
|
|
54
|
-
interface Error {
|
|
55
|
-
/**
|
|
56
|
-
* Error message
|
|
57
|
-
*/
|
|
58
|
-
message: string;
|
|
59
|
-
statusCode: number;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
15
|
+
data: unknown;
|
|
62
16
|
}
|
|
63
17
|
export interface SDKCreateVerificationLinkResponse {
|
|
64
|
-
data:
|
|
65
|
-
}
|
|
66
|
-
export declare namespace SDKCreateVerificationLinkResponse {
|
|
67
|
-
interface Data {
|
|
68
|
-
data: Data.Data;
|
|
69
|
-
}
|
|
70
|
-
namespace Data {
|
|
71
|
-
interface Data {
|
|
72
|
-
/**
|
|
73
|
-
* Deep link for mobile app
|
|
74
|
-
*/
|
|
75
|
-
deep_link: string;
|
|
76
|
-
/**
|
|
77
|
-
* ISO 8601 expiration timestamp
|
|
78
|
-
*/
|
|
79
|
-
expires_at: string;
|
|
80
|
-
organization: Data.Organization;
|
|
81
|
-
/**
|
|
82
|
-
* QR code image URL
|
|
83
|
-
*/
|
|
84
|
-
qr_code_url: string;
|
|
85
|
-
/**
|
|
86
|
-
* Unique verification request ID
|
|
87
|
-
*/
|
|
88
|
-
request_id: string;
|
|
89
|
-
/**
|
|
90
|
-
* Web URL for verification
|
|
91
|
-
*/
|
|
92
|
-
web_url: string;
|
|
93
|
-
}
|
|
94
|
-
namespace Data {
|
|
95
|
-
interface Organization {
|
|
96
|
-
/**
|
|
97
|
-
* Organization ID
|
|
98
|
-
*/
|
|
99
|
-
id: string;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
interface Error {
|
|
104
|
-
error: Error.Error;
|
|
105
|
-
}
|
|
106
|
-
namespace Error {
|
|
107
|
-
interface Error {
|
|
108
|
-
/**
|
|
109
|
-
* Error message
|
|
110
|
-
*/
|
|
111
|
-
message: string;
|
|
112
|
-
statusCode: number;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
18
|
+
data: unknown;
|
|
115
19
|
}
|
|
116
20
|
export interface SDKCreateSessionParams {
|
|
117
|
-
/**
|
|
118
|
-
* Custom metadata to attach to session
|
|
119
|
-
*/
|
|
120
|
-
metadata?: {
|
|
121
|
-
[key: string]: unknown;
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Partner's user identifier
|
|
125
|
-
*/
|
|
126
|
-
partner_user_id?: string;
|
|
127
21
|
}
|
|
128
22
|
export interface SDKCreateVerificationLinkParams {
|
|
129
|
-
/**
|
|
130
|
-
* Custom metadata
|
|
131
|
-
*/
|
|
132
|
-
metadata?: {
|
|
133
|
-
[key: string]: unknown;
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* URL to return to after verification
|
|
137
|
-
*/
|
|
138
|
-
return_url?: string;
|
|
139
|
-
/**
|
|
140
|
-
* User's email address (optional, for tracking)
|
|
141
|
-
*/
|
|
142
|
-
user_email?: string;
|
|
143
23
|
}
|
|
144
24
|
export declare namespace SDK {
|
|
145
25
|
export { type SDKCreateSessionResponse as SDKCreateSessionResponse, type SDKCreateVerificationLinkResponse as SDKCreateVerificationLinkResponse, type SDKCreateSessionParams as SDKCreateSessionParams, type SDKCreateVerificationLinkParams as SDKCreateVerificationLinkParams, };
|
package/resources/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/resources/sdk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,aAAa,CACX,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;OAEG;IACH,sBAAsB,CACpB,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/resources/sdk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,aAAa,CACX,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;OAEG;IACH,sBAAsB,CACpB,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;CAAG;AAE1C,MAAM,WAAW,+BAA+B;CAAG;AAEnD,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -5,87 +5,19 @@ export declare class Verification extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Check verification status
|
|
7
7
|
*/
|
|
8
|
-
getStatus(
|
|
8
|
+
getStatus(options?: RequestOptions): APIPromise<VerificationGetStatusResponse>;
|
|
9
9
|
/**
|
|
10
10
|
* Look up user by email
|
|
11
11
|
*/
|
|
12
|
-
lookupUserByEmail(
|
|
12
|
+
lookupUserByEmail(options?: RequestOptions): APIPromise<VerificationLookupUserByEmailResponse>;
|
|
13
13
|
}
|
|
14
14
|
export interface VerificationGetStatusResponse {
|
|
15
|
-
data:
|
|
16
|
-
}
|
|
17
|
-
export declare namespace VerificationGetStatusResponse {
|
|
18
|
-
interface UnionMember0 {
|
|
19
|
-
created_at: string;
|
|
20
|
-
expires_at: string;
|
|
21
|
-
found: true;
|
|
22
|
-
organization_id: string;
|
|
23
|
-
request_id: string;
|
|
24
|
-
/**
|
|
25
|
-
* Verification status
|
|
26
|
-
*/
|
|
27
|
-
status: 'pending' | 'verified' | 'failed' | 'expired' | 'cancelled';
|
|
28
|
-
error_message?: string | null;
|
|
29
|
-
metadata?: {
|
|
30
|
-
[key: string]: unknown;
|
|
31
|
-
} | null;
|
|
32
|
-
partner_user_id?: string | null;
|
|
33
|
-
user_email?: string | null;
|
|
34
|
-
verified_at?: string | null;
|
|
35
|
-
}
|
|
36
|
-
interface UnionMember1 {
|
|
37
|
-
found: false;
|
|
38
|
-
/**
|
|
39
|
-
* Error message
|
|
40
|
-
*/
|
|
41
|
-
message: string;
|
|
42
|
-
status: 'error';
|
|
43
|
-
}
|
|
15
|
+
data: unknown;
|
|
44
16
|
}
|
|
45
17
|
export interface VerificationLookupUserByEmailResponse {
|
|
46
|
-
data:
|
|
47
|
-
}
|
|
48
|
-
export declare namespace VerificationLookupUserByEmailResponse {
|
|
49
|
-
interface UnionMember0 {
|
|
50
|
-
/**
|
|
51
|
-
* Clerk user ID
|
|
52
|
-
*/
|
|
53
|
-
clerk_user_id: string;
|
|
54
|
-
/**
|
|
55
|
-
* User found
|
|
56
|
-
*/
|
|
57
|
-
found: true;
|
|
58
|
-
/**
|
|
59
|
-
* Whether user has registered passkey
|
|
60
|
-
*/
|
|
61
|
-
has_passkey: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Whether user account is active
|
|
64
|
-
*/
|
|
65
|
-
is_active: boolean;
|
|
66
|
-
}
|
|
67
|
-
interface UnionMember1 {
|
|
68
|
-
/**
|
|
69
|
-
* User not found
|
|
70
|
-
*/
|
|
71
|
-
found: false;
|
|
72
|
-
has_passkey: false;
|
|
73
|
-
is_active: false;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export interface VerificationGetStatusParams {
|
|
77
|
-
/**
|
|
78
|
-
* Verification request ID
|
|
79
|
-
*/
|
|
80
|
-
request_id: string;
|
|
81
|
-
}
|
|
82
|
-
export interface VerificationLookupUserByEmailParams {
|
|
83
|
-
/**
|
|
84
|
-
* Email address to look up
|
|
85
|
-
*/
|
|
86
|
-
email: string;
|
|
18
|
+
data: unknown;
|
|
87
19
|
}
|
|
88
20
|
export declare namespace Verification {
|
|
89
|
-
export { type VerificationGetStatusResponse as VerificationGetStatusResponse, type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse,
|
|
21
|
+
export { type VerificationGetStatusResponse as VerificationGetStatusResponse, type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse, };
|
|
90
22
|
}
|
|
91
23
|
//# 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,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,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAI9E;;OAEG;IACH,iBAAiB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qCAAqC,CAAC;CAG/F;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qCAAqC,IAAI,qCAAqC,GACpF,CAAC;CACH"}
|
|
@@ -5,87 +5,19 @@ export declare class Verification extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Check verification status
|
|
7
7
|
*/
|
|
8
|
-
getStatus(
|
|
8
|
+
getStatus(options?: RequestOptions): APIPromise<VerificationGetStatusResponse>;
|
|
9
9
|
/**
|
|
10
10
|
* Look up user by email
|
|
11
11
|
*/
|
|
12
|
-
lookupUserByEmail(
|
|
12
|
+
lookupUserByEmail(options?: RequestOptions): APIPromise<VerificationLookupUserByEmailResponse>;
|
|
13
13
|
}
|
|
14
14
|
export interface VerificationGetStatusResponse {
|
|
15
|
-
data:
|
|
16
|
-
}
|
|
17
|
-
export declare namespace VerificationGetStatusResponse {
|
|
18
|
-
interface UnionMember0 {
|
|
19
|
-
created_at: string;
|
|
20
|
-
expires_at: string;
|
|
21
|
-
found: true;
|
|
22
|
-
organization_id: string;
|
|
23
|
-
request_id: string;
|
|
24
|
-
/**
|
|
25
|
-
* Verification status
|
|
26
|
-
*/
|
|
27
|
-
status: 'pending' | 'verified' | 'failed' | 'expired' | 'cancelled';
|
|
28
|
-
error_message?: string | null;
|
|
29
|
-
metadata?: {
|
|
30
|
-
[key: string]: unknown;
|
|
31
|
-
} | null;
|
|
32
|
-
partner_user_id?: string | null;
|
|
33
|
-
user_email?: string | null;
|
|
34
|
-
verified_at?: string | null;
|
|
35
|
-
}
|
|
36
|
-
interface UnionMember1 {
|
|
37
|
-
found: false;
|
|
38
|
-
/**
|
|
39
|
-
* Error message
|
|
40
|
-
*/
|
|
41
|
-
message: string;
|
|
42
|
-
status: 'error';
|
|
43
|
-
}
|
|
15
|
+
data: unknown;
|
|
44
16
|
}
|
|
45
17
|
export interface VerificationLookupUserByEmailResponse {
|
|
46
|
-
data:
|
|
47
|
-
}
|
|
48
|
-
export declare namespace VerificationLookupUserByEmailResponse {
|
|
49
|
-
interface UnionMember0 {
|
|
50
|
-
/**
|
|
51
|
-
* Clerk user ID
|
|
52
|
-
*/
|
|
53
|
-
clerk_user_id: string;
|
|
54
|
-
/**
|
|
55
|
-
* User found
|
|
56
|
-
*/
|
|
57
|
-
found: true;
|
|
58
|
-
/**
|
|
59
|
-
* Whether user has registered passkey
|
|
60
|
-
*/
|
|
61
|
-
has_passkey: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Whether user account is active
|
|
64
|
-
*/
|
|
65
|
-
is_active: boolean;
|
|
66
|
-
}
|
|
67
|
-
interface UnionMember1 {
|
|
68
|
-
/**
|
|
69
|
-
* User not found
|
|
70
|
-
*/
|
|
71
|
-
found: false;
|
|
72
|
-
has_passkey: false;
|
|
73
|
-
is_active: false;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export interface VerificationGetStatusParams {
|
|
77
|
-
/**
|
|
78
|
-
* Verification request ID
|
|
79
|
-
*/
|
|
80
|
-
request_id: string;
|
|
81
|
-
}
|
|
82
|
-
export interface VerificationLookupUserByEmailParams {
|
|
83
|
-
/**
|
|
84
|
-
* Email address to look up
|
|
85
|
-
*/
|
|
86
|
-
email: string;
|
|
18
|
+
data: unknown;
|
|
87
19
|
}
|
|
88
20
|
export declare namespace Verification {
|
|
89
|
-
export { type VerificationGetStatusResponse as VerificationGetStatusResponse, type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse,
|
|
21
|
+
export { type VerificationGetStatusResponse as VerificationGetStatusResponse, type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse, };
|
|
90
22
|
}
|
|
91
23
|
//# 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,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,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAI9E;;OAEG;IACH,iBAAiB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qCAAqC,CAAC;CAG/F;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qCAAqC,IAAI,qCAAqC,GACpF,CAAC;CACH"}
|
|
@@ -7,14 +7,14 @@ class Verification extends resource_1.APIResource {
|
|
|
7
7
|
/**
|
|
8
8
|
* Check verification status
|
|
9
9
|
*/
|
|
10
|
-
getStatus(
|
|
11
|
-
return this._client.get('/verification/status',
|
|
10
|
+
getStatus(options) {
|
|
11
|
+
return this._client.get('/verification/status', options);
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Look up user by email
|
|
15
15
|
*/
|
|
16
|
-
lookupUserByEmail(
|
|
17
|
-
return this._client.get('/verification/lookup-user-by-email',
|
|
16
|
+
lookupUserByEmail(options) {
|
|
17
|
+
return this._client.get('/verification/lookup-user-by-email', options);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
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,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,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAdD,oCAcC"}
|
|
@@ -4,14 +4,14 @@ export class Verification extends APIResource {
|
|
|
4
4
|
/**
|
|
5
5
|
* Check verification status
|
|
6
6
|
*/
|
|
7
|
-
getStatus(
|
|
8
|
-
return this._client.get('/verification/status',
|
|
7
|
+
getStatus(options) {
|
|
8
|
+
return this._client.get('/verification/status', options);
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Look up user by email
|
|
12
12
|
*/
|
|
13
|
-
lookupUserByEmail(
|
|
14
|
-
return this._client.get('/verification/lookup-user-by-email',
|
|
13
|
+
lookupUserByEmail(options) {
|
|
14
|
+
return this._client.get('/verification/lookup-user-by-email', options);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
//# 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,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,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -27,9 +27,7 @@ import {
|
|
|
27
27
|
} from './resources/sdk';
|
|
28
28
|
import {
|
|
29
29
|
Verification,
|
|
30
|
-
VerificationGetStatusParams,
|
|
31
30
|
VerificationGetStatusResponse,
|
|
32
|
-
VerificationLookupUserByEmailParams,
|
|
33
31
|
VerificationLookupUserByEmailResponse,
|
|
34
32
|
} from './resources/verification';
|
|
35
33
|
import { type Fetch } from './internal/builtin-types';
|
|
@@ -785,8 +783,6 @@ export declare namespace BotShield {
|
|
|
785
783
|
Verification as Verification,
|
|
786
784
|
type VerificationGetStatusResponse as VerificationGetStatusResponse,
|
|
787
785
|
type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse,
|
|
788
|
-
type VerificationGetStatusParams as VerificationGetStatusParams,
|
|
789
|
-
type VerificationLookupUserByEmailParams as VerificationLookupUserByEmailParams,
|
|
790
786
|
};
|
|
791
787
|
|
|
792
788
|
export {
|
package/src/resources/devices.ts
CHANGED
|
@@ -14,25 +14,10 @@ export class Devices extends APIResource {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface DeviceRemoveResponse {
|
|
17
|
-
data:
|
|
17
|
+
data: unknown;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export
|
|
21
|
-
export interface Data {
|
|
22
|
-
message: string;
|
|
23
|
-
|
|
24
|
-
passkeys_deleted: number;
|
|
25
|
-
|
|
26
|
-
success: boolean;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface DeviceRemoveParams {
|
|
31
|
-
/**
|
|
32
|
-
* Clerk user ID
|
|
33
|
-
*/
|
|
34
|
-
clerk_user_id: string;
|
|
35
|
-
}
|
|
20
|
+
export interface DeviceRemoveParams {}
|
|
36
21
|
|
|
37
22
|
export declare namespace Devices {
|
|
38
23
|
export { type DeviceRemoveResponse as DeviceRemoveResponse, type DeviceRemoveParams as DeviceRemoveParams };
|
package/src/resources/index.ts
CHANGED
package/src/resources/pass.ts
CHANGED
|
@@ -14,36 +14,10 @@ export class Pass extends APIResource {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface PassCreateResponse {
|
|
17
|
-
data:
|
|
17
|
+
data: unknown;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export
|
|
21
|
-
export interface BotshieldUserID {
|
|
22
|
-
/**
|
|
23
|
-
* Anonymous BotShield user ID
|
|
24
|
-
*/
|
|
25
|
-
botshield_user_id: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface Error {
|
|
29
|
-
error: Error.Error;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export namespace Error {
|
|
33
|
-
export interface Error {
|
|
34
|
-
message: string;
|
|
35
|
-
|
|
36
|
-
statusCode: number;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface PassCreateParams {
|
|
42
|
-
/**
|
|
43
|
-
* Organization ID (optional)
|
|
44
|
-
*/
|
|
45
|
-
organization_id?: string;
|
|
46
|
-
}
|
|
20
|
+
export interface PassCreateParams {}
|
|
47
21
|
|
|
48
22
|
export declare namespace Pass {
|
|
49
23
|
export { type PassCreateResponse as PassCreateResponse, type PassCreateParams as PassCreateParams };
|