botshield-sdk 1.0.0 → 1.2.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 +16 -0
- package/README.md +15 -41
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- 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 +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organizations.d.mts +18 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +18 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +15 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +11 -0
- package/resources/organizations.mjs.map +1 -0
- 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 +11 -122
- package/resources/sdk.d.mts.map +1 -1
- package/resources/sdk.d.ts +11 -122
- package/resources/sdk.d.ts.map +1 -1
- package/resources/sdk.js +6 -0
- package/resources/sdk.js.map +1 -1
- package/resources/sdk.mjs +6 -0
- package/resources/sdk.mjs.map +1 -1
- package/resources/users.d.mts +18 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +18 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +15 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +11 -0
- package/resources/users.mjs.map +1 -0
- 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 +26 -4
- package/src/resources/devices.ts +2 -17
- package/src/resources/index.ts +8 -2
- package/src/resources/organizations.ts +30 -0
- package/src/resources/pass.ts +2 -28
- package/src/resources/sdk.ts +16 -143
- package/src/resources/users.ts +30 -0
- 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
|
@@ -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.2.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.2.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.2.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.2.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|