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/src/resources/sdk.ts
CHANGED
|
@@ -27,158 +27,16 @@ export class SDK extends APIResource {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface SDKCreateSessionResponse {
|
|
30
|
-
data:
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export namespace SDKCreateSessionResponse {
|
|
34
|
-
export interface Data {
|
|
35
|
-
data: Data.Data;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export namespace Data {
|
|
39
|
-
export interface Data {
|
|
40
|
-
/**
|
|
41
|
-
* ISO 8601 expiration timestamp
|
|
42
|
-
*/
|
|
43
|
-
expires_at: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Seconds until expiration
|
|
47
|
-
*/
|
|
48
|
-
expires_in_seconds: number;
|
|
49
|
-
|
|
50
|
-
organization: Data.Organization;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Session token for verification
|
|
54
|
-
*/
|
|
55
|
-
session_token: string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export namespace Data {
|
|
59
|
-
export interface Organization {
|
|
60
|
-
/**
|
|
61
|
-
* Organization ID
|
|
62
|
-
*/
|
|
63
|
-
id: string;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Environment
|
|
67
|
-
*/
|
|
68
|
-
environment: 'development' | 'production';
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface Error {
|
|
74
|
-
error: Error.Error;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export namespace Error {
|
|
78
|
-
export interface Error {
|
|
79
|
-
/**
|
|
80
|
-
* Error message
|
|
81
|
-
*/
|
|
82
|
-
message: string;
|
|
83
|
-
|
|
84
|
-
statusCode: number;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
30
|
+
data: unknown;
|
|
87
31
|
}
|
|
88
32
|
|
|
89
33
|
export interface SDKCreateVerificationLinkResponse {
|
|
90
|
-
data:
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export namespace SDKCreateVerificationLinkResponse {
|
|
94
|
-
export interface Data {
|
|
95
|
-
data: Data.Data;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export namespace Data {
|
|
99
|
-
export interface Data {
|
|
100
|
-
/**
|
|
101
|
-
* Deep link for mobile app
|
|
102
|
-
*/
|
|
103
|
-
deep_link: string;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* ISO 8601 expiration timestamp
|
|
107
|
-
*/
|
|
108
|
-
expires_at: string;
|
|
109
|
-
|
|
110
|
-
organization: Data.Organization;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* QR code image URL
|
|
114
|
-
*/
|
|
115
|
-
qr_code_url: string;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Unique verification request ID
|
|
119
|
-
*/
|
|
120
|
-
request_id: string;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Web URL for verification
|
|
124
|
-
*/
|
|
125
|
-
web_url: string;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export namespace Data {
|
|
129
|
-
export interface Organization {
|
|
130
|
-
/**
|
|
131
|
-
* Organization ID
|
|
132
|
-
*/
|
|
133
|
-
id: string;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface Error {
|
|
139
|
-
error: Error.Error;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export namespace Error {
|
|
143
|
-
export interface Error {
|
|
144
|
-
/**
|
|
145
|
-
* Error message
|
|
146
|
-
*/
|
|
147
|
-
message: string;
|
|
148
|
-
|
|
149
|
-
statusCode: number;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
34
|
+
data: unknown;
|
|
152
35
|
}
|
|
153
36
|
|
|
154
|
-
export interface SDKCreateSessionParams {
|
|
155
|
-
/**
|
|
156
|
-
* Custom metadata to attach to session
|
|
157
|
-
*/
|
|
158
|
-
metadata?: { [key: string]: unknown };
|
|
37
|
+
export interface SDKCreateSessionParams {}
|
|
159
38
|
|
|
160
|
-
|
|
161
|
-
* Partner's user identifier
|
|
162
|
-
*/
|
|
163
|
-
partner_user_id?: string;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface SDKCreateVerificationLinkParams {
|
|
167
|
-
/**
|
|
168
|
-
* Custom metadata
|
|
169
|
-
*/
|
|
170
|
-
metadata?: { [key: string]: unknown };
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* URL to return to after verification
|
|
174
|
-
*/
|
|
175
|
-
return_url?: string;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* User's email address (optional, for tracking)
|
|
179
|
-
*/
|
|
180
|
-
user_email?: string;
|
|
181
|
-
}
|
|
39
|
+
export interface SDKCreateVerificationLinkParams {}
|
|
182
40
|
|
|
183
41
|
export declare namespace SDK {
|
|
184
42
|
export {
|
|
@@ -8,128 +8,29 @@ export class Verification extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Check verification status
|
|
10
10
|
*/
|
|
11
|
-
getStatus(
|
|
12
|
-
|
|
13
|
-
options?: RequestOptions,
|
|
14
|
-
): APIPromise<VerificationGetStatusResponse> {
|
|
15
|
-
return this._client.get('/verification/status', { query, ...options });
|
|
11
|
+
getStatus(options?: RequestOptions): APIPromise<VerificationGetStatusResponse> {
|
|
12
|
+
return this._client.get('/verification/status', options);
|
|
16
13
|
}
|
|
17
14
|
|
|
18
15
|
/**
|
|
19
16
|
* Look up user by email
|
|
20
17
|
*/
|
|
21
|
-
lookupUserByEmail(
|
|
22
|
-
|
|
23
|
-
options?: RequestOptions,
|
|
24
|
-
): APIPromise<VerificationLookupUserByEmailResponse> {
|
|
25
|
-
return this._client.get('/verification/lookup-user-by-email', { query, ...options });
|
|
18
|
+
lookupUserByEmail(options?: RequestOptions): APIPromise<VerificationLookupUserByEmailResponse> {
|
|
19
|
+
return this._client.get('/verification/lookup-user-by-email', options);
|
|
26
20
|
}
|
|
27
21
|
}
|
|
28
22
|
|
|
29
23
|
export interface VerificationGetStatusResponse {
|
|
30
|
-
data:
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export namespace VerificationGetStatusResponse {
|
|
34
|
-
export interface UnionMember0 {
|
|
35
|
-
created_at: string;
|
|
36
|
-
|
|
37
|
-
expires_at: string;
|
|
38
|
-
|
|
39
|
-
found: true;
|
|
40
|
-
|
|
41
|
-
organization_id: string;
|
|
42
|
-
|
|
43
|
-
request_id: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Verification status
|
|
47
|
-
*/
|
|
48
|
-
status: 'pending' | 'verified' | 'failed' | 'expired' | 'cancelled';
|
|
49
|
-
|
|
50
|
-
error_message?: string | null;
|
|
51
|
-
|
|
52
|
-
metadata?: { [key: string]: unknown } | null;
|
|
53
|
-
|
|
54
|
-
partner_user_id?: string | null;
|
|
55
|
-
|
|
56
|
-
user_email?: string | null;
|
|
57
|
-
|
|
58
|
-
verified_at?: string | null;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface UnionMember1 {
|
|
62
|
-
found: false;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Error message
|
|
66
|
-
*/
|
|
67
|
-
message: string;
|
|
68
|
-
|
|
69
|
-
status: 'error';
|
|
70
|
-
}
|
|
24
|
+
data: unknown;
|
|
71
25
|
}
|
|
72
26
|
|
|
73
27
|
export interface VerificationLookupUserByEmailResponse {
|
|
74
|
-
data:
|
|
75
|
-
| VerificationLookupUserByEmailResponse.UnionMember0
|
|
76
|
-
| VerificationLookupUserByEmailResponse.UnionMember1;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export namespace VerificationLookupUserByEmailResponse {
|
|
80
|
-
export interface UnionMember0 {
|
|
81
|
-
/**
|
|
82
|
-
* Clerk user ID
|
|
83
|
-
*/
|
|
84
|
-
clerk_user_id: string;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* User found
|
|
88
|
-
*/
|
|
89
|
-
found: true;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Whether user has registered passkey
|
|
93
|
-
*/
|
|
94
|
-
has_passkey: boolean;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Whether user account is active
|
|
98
|
-
*/
|
|
99
|
-
is_active: boolean;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export interface UnionMember1 {
|
|
103
|
-
/**
|
|
104
|
-
* User not found
|
|
105
|
-
*/
|
|
106
|
-
found: false;
|
|
107
|
-
|
|
108
|
-
has_passkey: false;
|
|
109
|
-
|
|
110
|
-
is_active: false;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface VerificationGetStatusParams {
|
|
115
|
-
/**
|
|
116
|
-
* Verification request ID
|
|
117
|
-
*/
|
|
118
|
-
request_id: string;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface VerificationLookupUserByEmailParams {
|
|
122
|
-
/**
|
|
123
|
-
* Email address to look up
|
|
124
|
-
*/
|
|
125
|
-
email: string;
|
|
28
|
+
data: unknown;
|
|
126
29
|
}
|
|
127
30
|
|
|
128
31
|
export declare namespace Verification {
|
|
129
32
|
export {
|
|
130
33
|
type VerificationGetStatusResponse as VerificationGetStatusResponse,
|
|
131
34
|
type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse,
|
|
132
|
-
type VerificationGetStatusParams as VerificationGetStatusParams,
|
|
133
|
-
type VerificationLookupUserByEmailParams as VerificationLookupUserByEmailParams,
|
|
134
35
|
};
|
|
135
36
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.1.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.1.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|