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.
Files changed (80) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +62 -13
  3. package/client.d.mts +6 -30
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -30
  6. package/client.d.ts.map +1 -1
  7. package/client.js +2 -26
  8. package/client.js.map +1 -1
  9. package/client.mjs +2 -26
  10. package/client.mjs.map +1 -1
  11. package/package.json +7 -1
  12. package/resources/index.d.mts +2 -6
  13. package/resources/index.d.mts.map +1 -1
  14. package/resources/index.d.ts +2 -6
  15. package/resources/index.d.ts.map +1 -1
  16. package/resources/index.js +1 -9
  17. package/resources/index.js.map +1 -1
  18. package/resources/index.mjs +0 -4
  19. package/resources/index.mjs.map +1 -1
  20. package/resources/sdk.d.mts +226 -8
  21. package/resources/sdk.d.mts.map +1 -1
  22. package/resources/sdk.d.ts +226 -8
  23. package/resources/sdk.d.ts.map +1 -1
  24. package/resources/sdk.js +43 -4
  25. package/resources/sdk.js.map +1 -1
  26. package/resources/sdk.mjs +43 -4
  27. package/resources/sdk.mjs.map +1 -1
  28. package/resources/verification.d.mts +46 -8
  29. package/resources/verification.d.mts.map +1 -1
  30. package/resources/verification.d.ts +46 -8
  31. package/resources/verification.d.ts.map +1 -1
  32. package/resources/verification.js +8 -7
  33. package/resources/verification.js.map +1 -1
  34. package/resources/verification.mjs +8 -7
  35. package/resources/verification.mjs.map +1 -1
  36. package/src/client.ts +26 -54
  37. package/src/resources/index.ts +12 -8
  38. package/src/resources/sdk.ts +347 -10
  39. package/src/resources/verification.ts +77 -9
  40. package/src/version.ts +1 -1
  41. package/version.d.mts +1 -1
  42. package/version.d.ts +1 -1
  43. package/version.js +1 -1
  44. package/version.mjs +1 -1
  45. package/resources/devices.d.mts +0 -21
  46. package/resources/devices.d.mts.map +0 -1
  47. package/resources/devices.d.ts +0 -21
  48. package/resources/devices.d.ts.map +0 -1
  49. package/resources/devices.js +0 -18
  50. package/resources/devices.js.map +0 -1
  51. package/resources/devices.mjs +0 -14
  52. package/resources/devices.mjs.map +0 -1
  53. package/resources/organizations.d.mts +0 -21
  54. package/resources/organizations.d.mts.map +0 -1
  55. package/resources/organizations.d.ts +0 -21
  56. package/resources/organizations.d.ts.map +0 -1
  57. package/resources/organizations.js +0 -18
  58. package/resources/organizations.js.map +0 -1
  59. package/resources/organizations.mjs +0 -14
  60. package/resources/organizations.mjs.map +0 -1
  61. package/resources/pass.d.mts +0 -21
  62. package/resources/pass.d.mts.map +0 -1
  63. package/resources/pass.d.ts +0 -21
  64. package/resources/pass.d.ts.map +0 -1
  65. package/resources/pass.js +0 -18
  66. package/resources/pass.js.map +0 -1
  67. package/resources/pass.mjs +0 -14
  68. package/resources/pass.mjs.map +0 -1
  69. package/resources/users.d.mts +0 -21
  70. package/resources/users.d.mts.map +0 -1
  71. package/resources/users.d.ts +0 -21
  72. package/resources/users.d.ts.map +0 -1
  73. package/resources/users.js +0 -18
  74. package/resources/users.js.map +0 -1
  75. package/resources/users.mjs +0 -14
  76. package/resources/users.mjs.map +0 -1
  77. package/src/resources/devices.ts +0 -27
  78. package/src/resources/organizations.ts +0 -33
  79. package/src/resources/pass.ts +0 -27
  80. package/src/resources/users.ts +0 -33
@@ -5,11 +5,12 @@ import { APIPromise } from '../core/api-promise';
5
5
  import { RequestOptions } from '../internal/request-options';
6
6
 
7
7
  /**
8
- * SDK integration endpoints
8
+ * Core SDK operations — session management, verification, token validation, and Signal Pixel scoring
9
9
  */
10
10
  export class SDK extends APIResource {
11
11
  /**
12
- * Create a verification session
12
+ * Creates a short-lived anchor grant token (5 minutes) from an API token or site
13
+ * key. Use this to get a token before creating verification links.
13
14
  */
14
15
  createSession(
15
16
  body: SDKCreateSessionParams,
@@ -19,7 +20,8 @@ export class SDK extends APIResource {
19
20
  }
20
21
 
21
22
  /**
22
- * Create a verification link
23
+ * Creates a verification request with deep link, web URL, and QR code. Requires an
24
+ * anchor grant token from create-session.
23
25
  */
24
26
  createVerificationLink(
25
27
  body: SDKCreateVerificationLinkParams,
@@ -29,38 +31,373 @@ export class SDK extends APIResource {
29
31
  }
30
32
 
31
33
  /**
32
- * Logout and invalidate a session token
34
+ * Returns enabled integrations (Turnstile, etc.) for a site key. Public config
35
+ * only — secret keys never exposed.
36
+ */
37
+ getPartnerConfig(
38
+ query: SDKGetPartnerConfigParams,
39
+ options?: RequestOptions,
40
+ ): APIPromise<SDKGetPartnerConfigResponse> {
41
+ return this._client.get('/sdk/partner-config', { query, ...options });
42
+ }
43
+
44
+ /**
45
+ * Revoke an Anchor Grant Window token
33
46
  */
34
47
  logout(body: SDKLogoutParams, options?: RequestOptions): APIPromise<SDKLogoutResponse> {
35
48
  return this._client.post('/sdk/logout', { body, ...options });
36
49
  }
50
+
51
+ /**
52
+ * Soft-expires a pending verification for a scope and user. Use when
53
+ * create-verification-link returns 409.
54
+ */
55
+ revokeVerification(
56
+ body: SDKRevokeVerificationParams,
57
+ options?: RequestOptions,
58
+ ): APIPromise<SDKRevokeVerificationResponse> {
59
+ return this._client.post('/sdk/revoke-verification', { body, ...options });
60
+ }
61
+
62
+ /**
63
+ * Stores a behavioral fingerprint score server-side and returns an opaque
64
+ * signal*token (bs_sig*...). The client-side score can be spoofed — the
65
+ * signal_token maps to the real score in BotShield's database.
66
+ */
67
+ storeSignal(body: SDKStoreSignalParams, options?: RequestOptions): APIPromise<SDKStoreSignalResponse> {
68
+ return this._client.post('/sdk/store-signal', { body, ...options });
69
+ }
70
+
71
+ /**
72
+ * Validates a signal_token and returns the real server-side bot score. One-time
73
+ * use, 10-minute expiry. This is the tamper-proof check.
74
+ */
75
+ validateSignal(
76
+ body: SDKValidateSignalParams,
77
+ options?: RequestOptions,
78
+ ): APIPromise<SDKValidateSignalResponse> {
79
+ return this._client.post('/sdk/validate-signal', { body, ...options });
80
+ }
81
+
82
+ /**
83
+ * Validates a signed JWT verification receipt. This is the primary server-side
84
+ * check. Optionally include signal_token for combined confidence scoring with
85
+ * Signal Pixel + Turnstile + passkey results.
86
+ */
87
+ verifyToken(body: SDKVerifyTokenParams, options?: RequestOptions): APIPromise<SDKVerifyTokenResponse> {
88
+ return this._client.post('/sdk/verify-token', { body, ...options });
89
+ }
37
90
  }
38
91
 
39
92
  export interface SDKCreateSessionResponse {
40
- data: unknown;
93
+ data: SDKCreateSessionResponse.Data;
94
+ }
95
+
96
+ export namespace SDKCreateSessionResponse {
97
+ export interface Data {
98
+ anchor_grant_expires_at: string;
99
+
100
+ anchor_grant_expires_in_seconds: number;
101
+
102
+ /**
103
+ * Canonical grant token (Bearer bss\_\*)
104
+ */
105
+ anchor_grant_token: string;
106
+
107
+ expires_at: string;
108
+
109
+ expires_in_seconds: number;
110
+
111
+ organization: Data.Organization;
112
+
113
+ /**
114
+ * Legacy alias (backward compatibility)
115
+ */
116
+ session_token: string;
117
+ }
118
+
119
+ export namespace Data {
120
+ export interface Organization {
121
+ id: string;
122
+
123
+ environment: string;
124
+ }
125
+ }
41
126
  }
42
127
 
43
128
  export interface SDKCreateVerificationLinkResponse {
44
- data: unknown;
129
+ data: SDKCreateVerificationLinkResponse.Data;
130
+ }
131
+
132
+ export namespace SDKCreateVerificationLinkResponse {
133
+ export interface Data {
134
+ deep_link: string;
135
+
136
+ expires_at: string;
137
+
138
+ qr_code_url: string;
139
+
140
+ request_id: string;
141
+
142
+ web_url: string;
143
+
144
+ auth_mode?: 'linked-account' | 'private';
145
+
146
+ organization?: Data.Organization;
147
+
148
+ scope?: string;
149
+
150
+ sdk_type?: 'signal' | 'presence';
151
+ }
152
+
153
+ export namespace Data {
154
+ export interface Organization {
155
+ id?: string;
156
+ }
157
+ }
158
+ }
159
+
160
+ export interface SDKGetPartnerConfigResponse {
161
+ environment?: 'test' | 'live';
162
+
163
+ integrations?: { [key: string]: SDKGetPartnerConfigResponse.Integrations };
164
+ }
165
+
166
+ export namespace SDKGetPartnerConfigResponse {
167
+ export interface Integrations {
168
+ config?: unknown;
169
+
170
+ enabled?: boolean;
171
+
172
+ site_key?: string;
173
+ }
45
174
  }
46
175
 
47
176
  export interface SDKLogoutResponse {
48
- data: unknown;
177
+ message?: string;
178
+
179
+ revoked_at?: string;
180
+
181
+ success?: boolean;
182
+
183
+ token_found?: boolean;
184
+ }
185
+
186
+ export interface SDKRevokeVerificationResponse {
187
+ data: SDKRevokeVerificationResponse.Data;
188
+ }
189
+
190
+ export namespace SDKRevokeVerificationResponse {
191
+ export interface Data {
192
+ message?: string;
193
+
194
+ revoked_count?: number;
195
+
196
+ success?: boolean;
197
+ }
198
+ }
199
+
200
+ export interface SDKStoreSignalResponse {
201
+ expires_at?: string;
202
+
203
+ /**
204
+ * Opaque tamper-proof token (bs*sig*...)
205
+ */
206
+ signal_token?: string;
207
+ }
208
+
209
+ export interface SDKValidateSignalResponse {
210
+ client_score?: number;
211
+
212
+ country?: string;
213
+
214
+ created_at?: string;
215
+
216
+ edge_score?: number;
217
+
218
+ fp_hash?: string;
219
+
220
+ reason?: string;
221
+
222
+ score?: number;
223
+
224
+ site_key?: string;
225
+
226
+ valid?: boolean;
227
+ }
228
+
229
+ export interface SDKVerifyTokenResponse {
230
+ claims?: SDKVerifyTokenResponse.Claims;
231
+
232
+ /**
233
+ * Combined confidence (passkey + signals + integrations)
234
+ */
235
+ confidence?: number;
236
+
237
+ reason?: string;
238
+
239
+ signals?: SDKVerifyTokenResponse.Signals;
240
+
241
+ valid?: boolean;
242
+ }
243
+
244
+ export namespace SDKVerifyTokenResponse {
245
+ export interface Claims {
246
+ auth_mode?: 'linked-account' | 'private';
247
+
248
+ botshield_user_id?: string;
249
+
250
+ expires_at?: number;
251
+
252
+ issued_at?: number;
253
+
254
+ organization_id?: string;
255
+
256
+ partner_user_id?: string;
257
+
258
+ request_id?: string;
259
+
260
+ timestamp?: string;
261
+
262
+ user_email?: string;
263
+
264
+ verified?: boolean;
265
+ }
266
+
267
+ export interface Signals {
268
+ /**
269
+ * Signal Pixel score (0-100)
270
+ */
271
+ botshield_score?: number;
272
+
273
+ passkey?: Signals.Passkey;
274
+
275
+ turnstile?: Signals.Turnstile;
276
+ }
277
+
278
+ export namespace Signals {
279
+ export interface Passkey {
280
+ verified?: boolean;
281
+ }
282
+
283
+ export interface Turnstile {
284
+ success?: boolean;
285
+ }
286
+ }
287
+ }
288
+
289
+ export interface SDKCreateSessionParams {
290
+ metadata?: { [key: string]: unknown };
291
+
292
+ /**
293
+ * Your internal user identifier for correlation
294
+ */
295
+ partner_user_id?: string;
296
+ }
297
+
298
+ export interface SDKCreateVerificationLinkParams {
299
+ /**
300
+ * Returning user ID to skip onboarding
301
+ */
302
+ botshield_user_id?: string;
303
+
304
+ metadata?: { [key: string]: unknown };
305
+
306
+ /**
307
+ * linked-account = OAuth+passkey, private = direct WebAuthn (no PII)
308
+ */
309
+ mode?: 'linked-account' | 'private';
310
+
311
+ return_url?: string;
312
+
313
+ scope?: string;
314
+
315
+ sdk_type?: 'signal' | 'presence';
316
+
317
+ /**
318
+ * Tamper-proof Signal Pixel token (bs*sig*...) for server-side score correlation
319
+ */
320
+ signal_token?: string;
321
+
322
+ user_email?: string;
323
+
324
+ webhook_url?: string;
325
+ }
326
+
327
+ export interface SDKGetPartnerConfigParams {
328
+ site_key: string;
329
+ }
330
+
331
+ export interface SDKLogoutParams {
332
+ /**
333
+ * The anchor grant token (bss\_\*) to revoke
334
+ */
335
+ session_token: string;
49
336
  }
50
337
 
51
- export interface SDKCreateSessionParams {}
338
+ export interface SDKRevokeVerificationParams {
339
+ scope: string;
52
340
 
53
- export interface SDKCreateVerificationLinkParams {}
341
+ partner_user_id?: string;
342
+
343
+ user_email?: string;
344
+ }
54
345
 
55
- export interface SDKLogoutParams {}
346
+ export interface SDKStoreSignalParams {
347
+ score: number;
348
+
349
+ site_key: string;
350
+
351
+ client_score?: number;
352
+
353
+ country?: string;
354
+
355
+ edge_score?: number;
356
+
357
+ fp_hash?: string;
358
+
359
+ ip_hash?: string;
360
+
361
+ signals?: unknown;
362
+
363
+ ua_hash?: string;
364
+ }
365
+
366
+ export interface SDKValidateSignalParams {
367
+ signal_token: string;
368
+
369
+ verification_event_id?: string;
370
+ }
371
+
372
+ export interface SDKVerifyTokenParams {
373
+ /**
374
+ * JWT verification receipt
375
+ */
376
+ token: string;
377
+
378
+ /**
379
+ * Optional Signal Pixel token for combined confidence
380
+ */
381
+ signal_token?: string;
382
+ }
56
383
 
57
384
  export declare namespace SDK {
58
385
  export {
59
386
  type SDKCreateSessionResponse as SDKCreateSessionResponse,
60
387
  type SDKCreateVerificationLinkResponse as SDKCreateVerificationLinkResponse,
388
+ type SDKGetPartnerConfigResponse as SDKGetPartnerConfigResponse,
61
389
  type SDKLogoutResponse as SDKLogoutResponse,
390
+ type SDKRevokeVerificationResponse as SDKRevokeVerificationResponse,
391
+ type SDKStoreSignalResponse as SDKStoreSignalResponse,
392
+ type SDKValidateSignalResponse as SDKValidateSignalResponse,
393
+ type SDKVerifyTokenResponse as SDKVerifyTokenResponse,
62
394
  type SDKCreateSessionParams as SDKCreateSessionParams,
63
395
  type SDKCreateVerificationLinkParams as SDKCreateVerificationLinkParams,
396
+ type SDKGetPartnerConfigParams as SDKGetPartnerConfigParams,
64
397
  type SDKLogoutParams as SDKLogoutParams,
398
+ type SDKRevokeVerificationParams as SDKRevokeVerificationParams,
399
+ type SDKStoreSignalParams as SDKStoreSignalParams,
400
+ type SDKValidateSignalParams as SDKValidateSignalParams,
401
+ type SDKVerifyTokenParams as SDKVerifyTokenParams,
65
402
  };
66
403
  }
@@ -5,35 +5,103 @@ import { APIPromise } from '../core/api-promise';
5
5
  import { RequestOptions } from '../internal/request-options';
6
6
 
7
7
  /**
8
- * Verification status and lookup
8
+ * Verification status checking and user lookup
9
9
  */
10
10
  export class Verification extends APIResource {
11
11
  /**
12
- * Check verification status
12
+ * Poll for verification request status. Returns signed token on completion.
13
13
  */
14
- getStatus(options?: RequestOptions): APIPromise<VerificationGetStatusResponse> {
15
- return this._client.get('/verification/status', options);
14
+ getStatus(
15
+ query: VerificationGetStatusParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<VerificationGetStatusResponse> {
18
+ return this._client.get('/verification/status', { query, ...options });
16
19
  }
17
20
 
18
21
  /**
19
- * Look up user by email
22
+ * Check whether a user exists and has a registered passkey before initiating
23
+ * verification.
20
24
  */
21
- lookupUserByEmail(options?: RequestOptions): APIPromise<VerificationLookupUserByEmailResponse> {
22
- return this._client.get('/verification/lookup-user-by-email', options);
25
+ lookupUserByEmail(
26
+ query: VerificationLookupUserByEmailParams,
27
+ options?: RequestOptions,
28
+ ): APIPromise<VerificationLookupUserByEmailResponse> {
29
+ return this._client.get('/verification/lookup-user-by-email', { query, ...options });
23
30
  }
24
31
  }
25
32
 
26
33
  export interface VerificationGetStatusResponse {
27
- data: unknown;
34
+ auth_mode?: 'linked-account' | 'private';
35
+
36
+ confidence?: number;
37
+
38
+ created_at?: string;
39
+
40
+ error_message?: string;
41
+
42
+ expires_at?: string;
43
+
44
+ found?: boolean;
45
+
46
+ metadata?: { [key: string]: unknown };
47
+
48
+ organization_id?: string;
49
+
50
+ partner_user_id?: string;
51
+
52
+ presence_address?: string;
53
+
54
+ request_id?: string;
55
+
56
+ scope?: string;
57
+
58
+ sdk_type?: 'signal' | 'presence';
59
+
60
+ signal_score?: number;
61
+
62
+ signed_token?: string;
63
+
64
+ status?: 'pending' | 'completed' | 'expired' | 'failed' | 'not_found';
65
+
66
+ user_email?: string;
67
+
68
+ /**
69
+ * Legacy alias
70
+ */
71
+ verification_token?: string;
72
+
73
+ verified_at?: string;
28
74
  }
29
75
 
30
76
  export interface VerificationLookupUserByEmailResponse {
31
- data: unknown;
77
+ data: VerificationLookupUserByEmailResponse.Data;
78
+ }
79
+
80
+ export namespace VerificationLookupUserByEmailResponse {
81
+ export interface Data {
82
+ clerk_user_id?: string;
83
+
84
+ found?: boolean;
85
+
86
+ has_passkey?: boolean;
87
+
88
+ is_active?: boolean;
89
+ }
90
+ }
91
+
92
+ export interface VerificationGetStatusParams {
93
+ request_id: string;
94
+ }
95
+
96
+ export interface VerificationLookupUserByEmailParams {
97
+ email: string;
32
98
  }
33
99
 
34
100
  export declare namespace Verification {
35
101
  export {
36
102
  type VerificationGetStatusResponse as VerificationGetStatusResponse,
37
103
  type VerificationLookupUserByEmailResponse as VerificationLookupUserByEmailResponse,
104
+ type VerificationGetStatusParams as VerificationGetStatusParams,
105
+ type VerificationLookupUserByEmailParams as VerificationLookupUserByEmailParams,
38
106
  };
39
107
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.4'; // x-release-please-version
1
+ export const VERSION = '1.4.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.2.4";
1
+ export declare const VERSION = "1.4.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.2.4";
1
+ export declare const VERSION = "1.4.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.2.4'; // x-release-please-version
4
+ exports.VERSION = '1.4.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.2.4'; // x-release-please-version
1
+ export const VERSION = '1.4.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,21 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { APIPromise } from "../core/api-promise.mjs";
3
- import { RequestOptions } from "../internal/request-options.mjs";
4
- /**
5
- * Device management
6
- */
7
- export declare class Devices extends APIResource {
8
- /**
9
- * Remove device and associated passkeys
10
- */
11
- remove(body: DeviceRemoveParams, options?: RequestOptions): APIPromise<DeviceRemoveResponse>;
12
- }
13
- export interface DeviceRemoveResponse {
14
- data: unknown;
15
- }
16
- export interface DeviceRemoveParams {
17
- }
18
- export declare namespace Devices {
19
- export { type DeviceRemoveResponse as DeviceRemoveResponse, type DeviceRemoveParams as DeviceRemoveParams };
20
- }
21
- //# sourceMappingURL=devices.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devices.d.mts","sourceRoot":"","sources":["../src/resources/devices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG7F;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;CAAG;AAEtC,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
@@ -1,21 +0,0 @@
1
- import { APIResource } from "../core/resource.js";
2
- import { APIPromise } from "../core/api-promise.js";
3
- import { RequestOptions } from "../internal/request-options.js";
4
- /**
5
- * Device management
6
- */
7
- export declare class Devices extends APIResource {
8
- /**
9
- * Remove device and associated passkeys
10
- */
11
- remove(body: DeviceRemoveParams, options?: RequestOptions): APIPromise<DeviceRemoveResponse>;
12
- }
13
- export interface DeviceRemoveResponse {
14
- data: unknown;
15
- }
16
- export interface DeviceRemoveParams {
17
- }
18
- export declare namespace Devices {
19
- export { type DeviceRemoveResponse as DeviceRemoveResponse, type DeviceRemoveParams as DeviceRemoveParams };
20
- }
21
- //# sourceMappingURL=devices.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../src/resources/devices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG7F;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;CAAG;AAEtC,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Devices = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- /**
7
- * Device management
8
- */
9
- class Devices extends resource_1.APIResource {
10
- /**
11
- * Remove device and associated passkeys
12
- */
13
- remove(body, options) {
14
- return this._client.post('/devices/remove', { body, ...options });
15
- }
16
- }
17
- exports.Devices = Devices;
18
- //# sourceMappingURL=devices.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devices.js","sourceRoot":"","sources":["../src/resources/devices.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF;AAPD,0BAOC"}
@@ -1,14 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- /**
4
- * Device management
5
- */
6
- export class Devices extends APIResource {
7
- /**
8
- * Remove device and associated passkeys
9
- */
10
- remove(body, options) {
11
- return this._client.post('/devices/remove', { body, ...options });
12
- }
13
- }
14
- //# sourceMappingURL=devices.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devices.mjs","sourceRoot":"","sources":["../src/resources/devices.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF"}
@@ -1,21 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { APIPromise } from "../core/api-promise.mjs";
3
- import { RequestOptions } from "../internal/request-options.mjs";
4
- /**
5
- * SDK integration endpoints
6
- */
7
- export declare class Organizations extends APIResource {
8
- /**
9
- * POST /organizations/add-member
10
- */
11
- addMember(body: OrganizationAddMemberParams, options?: RequestOptions): APIPromise<OrganizationAddMemberResponse>;
12
- }
13
- export interface OrganizationAddMemberResponse {
14
- data: unknown;
15
- }
16
- export interface OrganizationAddMemberParams {
17
- }
18
- export declare namespace Organizations {
19
- export { type OrganizationAddMemberResponse as OrganizationAddMemberResponse, type OrganizationAddMemberParams as OrganizationAddMemberParams, };
20
- }
21
- //# sourceMappingURL=organizations.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"organizations.d.mts","sourceRoot":"","sources":["../src/resources/organizations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,SAAS,CACP,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;CAG7C;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;CAAG;AAE/C,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -1,21 +0,0 @@
1
- import { APIResource } from "../core/resource.js";
2
- import { APIPromise } from "../core/api-promise.js";
3
- import { RequestOptions } from "../internal/request-options.js";
4
- /**
5
- * SDK integration endpoints
6
- */
7
- export declare class Organizations extends APIResource {
8
- /**
9
- * POST /organizations/add-member
10
- */
11
- addMember(body: OrganizationAddMemberParams, options?: RequestOptions): APIPromise<OrganizationAddMemberResponse>;
12
- }
13
- export interface OrganizationAddMemberResponse {
14
- data: unknown;
15
- }
16
- export interface OrganizationAddMemberParams {
17
- }
18
- export declare namespace Organizations {
19
- export { type OrganizationAddMemberResponse as OrganizationAddMemberResponse, type OrganizationAddMemberParams as OrganizationAddMemberParams, };
20
- }
21
- //# sourceMappingURL=organizations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../src/resources/organizations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,SAAS,CACP,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;CAG7C;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;CAAG;AAE/C,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}