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
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAwF;AAA/E,kGAAA,OAAO,OAAA;AAChB,kCAA8E;AAArE,4FAAA,IAAI,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAwF;AAA/E,kGAAA,OAAO,OAAA;AAChB,oDAIyB;AAHvB,8GAAA,aAAa,OAAA;AAIf,kCAA8E;AAArE,4FAAA,IAAI,OAAA;AACb,gCAQe;AAPb,0FAAA,GAAG,OAAA;AAQL,oCAAgG;AAAvF,8FAAA,KAAK,OAAA;AACd,kDAIwB;AAHtB,4GAAA,YAAY,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Devices } from "./devices.mjs";
|
|
3
|
+
export { Organizations, } from "./organizations.mjs";
|
|
3
4
|
export { Pass } from "./pass.mjs";
|
|
4
5
|
export { SDK, } from "./sdk.mjs";
|
|
6
|
+
export { Users } from "./users.mjs";
|
|
5
7
|
export { Verification, } from "./verification.mjs";
|
|
6
8
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAsD;OAC/D,EAAE,IAAI,EAAkD;OACxD,EACL,GAAG,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAsD;OAC/D,EACL,aAAa,GAGd;OACM,EAAE,IAAI,EAAkD;OACxD,EACL,GAAG,GAOJ;OACM,EAAE,KAAK,EAAkE;OACzE,EACL,YAAY,GAGb"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Organizations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* POST /organizations/add-member
|
|
7
|
+
*/
|
|
8
|
+
addMember(body: OrganizationAddMemberParams, options?: RequestOptions): APIPromise<OrganizationAddMemberResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface OrganizationAddMemberResponse {
|
|
11
|
+
data: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface OrganizationAddMemberParams {
|
|
14
|
+
}
|
|
15
|
+
export declare namespace Organizations {
|
|
16
|
+
export { type OrganizationAddMemberResponse as OrganizationAddMemberResponse, type OrganizationAddMemberParams as OrganizationAddMemberParams, };
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=organizations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Organizations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* POST /organizations/add-member
|
|
7
|
+
*/
|
|
8
|
+
addMember(body: OrganizationAddMemberParams, options?: RequestOptions): APIPromise<OrganizationAddMemberResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface OrganizationAddMemberResponse {
|
|
11
|
+
data: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface OrganizationAddMemberParams {
|
|
14
|
+
}
|
|
15
|
+
export declare namespace Organizations {
|
|
16
|
+
export { type OrganizationAddMemberResponse as OrganizationAddMemberResponse, type OrganizationAddMemberParams as OrganizationAddMemberParams, };
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=organizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.Organizations = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Organizations extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* POST /organizations/add-member
|
|
9
|
+
*/
|
|
10
|
+
addMember(body, options) {
|
|
11
|
+
return this._client.post('/organizations/add-member', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Organizations = Organizations;
|
|
15
|
+
//# sourceMappingURL=organizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../src/resources/organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,SAAS,CACP,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AAVD,sCAUC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Organizations extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* POST /organizations/add-member
|
|
6
|
+
*/
|
|
7
|
+
addMember(body, options) {
|
|
8
|
+
return this._client.post('/organizations/add-member', { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=organizations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations.mjs","sourceRoot":"","sources":["../src/resources/organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,SAAS,CACP,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF"}
|
package/resources/pass.d.mts
CHANGED
|
@@ -8,30 +8,9 @@ export declare class Pass extends APIResource {
|
|
|
8
8
|
create(body: PassCreateParams, options?: RequestOptions): APIPromise<PassCreateResponse>;
|
|
9
9
|
}
|
|
10
10
|
export interface PassCreateResponse {
|
|
11
|
-
data:
|
|
12
|
-
}
|
|
13
|
-
export declare namespace PassCreateResponse {
|
|
14
|
-
interface BotshieldUserID {
|
|
15
|
-
/**
|
|
16
|
-
* Anonymous BotShield user ID
|
|
17
|
-
*/
|
|
18
|
-
botshield_user_id: string;
|
|
19
|
-
}
|
|
20
|
-
interface Error {
|
|
21
|
-
error: Error.Error;
|
|
22
|
-
}
|
|
23
|
-
namespace Error {
|
|
24
|
-
interface Error {
|
|
25
|
-
message: string;
|
|
26
|
-
statusCode: number;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
11
|
+
data: unknown;
|
|
29
12
|
}
|
|
30
13
|
export interface PassCreateParams {
|
|
31
|
-
/**
|
|
32
|
-
* Organization ID (optional)
|
|
33
|
-
*/
|
|
34
|
-
organization_id?: string;
|
|
35
14
|
}
|
|
36
15
|
export declare namespace Pass {
|
|
37
16
|
export { type PassCreateResponse as PassCreateResponse, type PassCreateParams as PassCreateParams };
|
package/resources/pass.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pass.d.mts","sourceRoot":"","sources":["../src/resources/pass.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGzF;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"pass.d.mts","sourceRoot":"","sources":["../src/resources/pass.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGzF;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;CAAG;AAEpC,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
|
package/resources/pass.d.ts
CHANGED
|
@@ -8,30 +8,9 @@ export declare class Pass extends APIResource {
|
|
|
8
8
|
create(body: PassCreateParams, options?: RequestOptions): APIPromise<PassCreateResponse>;
|
|
9
9
|
}
|
|
10
10
|
export interface PassCreateResponse {
|
|
11
|
-
data:
|
|
12
|
-
}
|
|
13
|
-
export declare namespace PassCreateResponse {
|
|
14
|
-
interface BotshieldUserID {
|
|
15
|
-
/**
|
|
16
|
-
* Anonymous BotShield user ID
|
|
17
|
-
*/
|
|
18
|
-
botshield_user_id: string;
|
|
19
|
-
}
|
|
20
|
-
interface Error {
|
|
21
|
-
error: Error.Error;
|
|
22
|
-
}
|
|
23
|
-
namespace Error {
|
|
24
|
-
interface Error {
|
|
25
|
-
message: string;
|
|
26
|
-
statusCode: number;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
11
|
+
data: unknown;
|
|
29
12
|
}
|
|
30
13
|
export interface PassCreateParams {
|
|
31
|
-
/**
|
|
32
|
-
* Organization ID (optional)
|
|
33
|
-
*/
|
|
34
|
-
organization_id?: string;
|
|
35
14
|
}
|
|
36
15
|
export declare namespace Pass {
|
|
37
16
|
export { type PassCreateResponse as PassCreateResponse, type PassCreateParams as PassCreateParams };
|
package/resources/pass.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pass.d.ts","sourceRoot":"","sources":["../src/resources/pass.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGzF;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"pass.d.ts","sourceRoot":"","sources":["../src/resources/pass.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGzF;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;CAAG;AAEpC,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
|
package/resources/sdk.d.mts
CHANGED
|
@@ -10,138 +10,27 @@ export declare class SDK extends APIResource {
|
|
|
10
10
|
* Create a verification link
|
|
11
11
|
*/
|
|
12
12
|
createVerificationLink(body: SDKCreateVerificationLinkParams, options?: RequestOptions): APIPromise<SDKCreateVerificationLinkResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Logout and invalidate a session token
|
|
15
|
+
*/
|
|
16
|
+
logout(body: SDKLogoutParams, options?: RequestOptions): APIPromise<SDKLogoutResponse>;
|
|
13
17
|
}
|
|
14
18
|
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
|
-
}
|
|
19
|
+
data: unknown;
|
|
62
20
|
}
|
|
63
21
|
export interface SDKCreateVerificationLinkResponse {
|
|
64
|
-
data:
|
|
22
|
+
data: unknown;
|
|
65
23
|
}
|
|
66
|
-
export
|
|
67
|
-
|
|
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
|
-
}
|
|
24
|
+
export interface SDKLogoutResponse {
|
|
25
|
+
data: unknown;
|
|
115
26
|
}
|
|
116
27
|
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
28
|
}
|
|
128
29
|
export interface SDKCreateVerificationLinkParams {
|
|
129
|
-
|
|
130
|
-
|
|
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;
|
|
30
|
+
}
|
|
31
|
+
export interface SDKLogoutParams {
|
|
143
32
|
}
|
|
144
33
|
export declare namespace SDK {
|
|
145
|
-
export { type SDKCreateSessionResponse as SDKCreateSessionResponse, type SDKCreateVerificationLinkResponse as SDKCreateVerificationLinkResponse, type SDKCreateSessionParams as SDKCreateSessionParams, type SDKCreateVerificationLinkParams as SDKCreateVerificationLinkParams, };
|
|
34
|
+
export { type SDKCreateSessionResponse as SDKCreateSessionResponse, type SDKCreateVerificationLinkResponse as SDKCreateVerificationLinkResponse, type SDKLogoutResponse as SDKLogoutResponse, type SDKCreateSessionParams as SDKCreateSessionParams, type SDKCreateVerificationLinkParams as SDKCreateVerificationLinkParams, type SDKLogoutParams as SDKLogoutParams, };
|
|
146
35
|
}
|
|
147
36
|
//# sourceMappingURL=sdk.d.mts.map
|
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;
|
|
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;IAIhD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAGvF;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;CAAG;AAE1C,MAAM,WAAW,+BAA+B;CAAG;AAEnD,MAAM,WAAW,eAAe;CAAG;AAEnC,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
package/resources/sdk.d.ts
CHANGED
|
@@ -10,138 +10,27 @@ export declare class SDK extends APIResource {
|
|
|
10
10
|
* Create a verification link
|
|
11
11
|
*/
|
|
12
12
|
createVerificationLink(body: SDKCreateVerificationLinkParams, options?: RequestOptions): APIPromise<SDKCreateVerificationLinkResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Logout and invalidate a session token
|
|
15
|
+
*/
|
|
16
|
+
logout(body: SDKLogoutParams, options?: RequestOptions): APIPromise<SDKLogoutResponse>;
|
|
13
17
|
}
|
|
14
18
|
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
|
-
}
|
|
19
|
+
data: unknown;
|
|
62
20
|
}
|
|
63
21
|
export interface SDKCreateVerificationLinkResponse {
|
|
64
|
-
data:
|
|
22
|
+
data: unknown;
|
|
65
23
|
}
|
|
66
|
-
export
|
|
67
|
-
|
|
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
|
-
}
|
|
24
|
+
export interface SDKLogoutResponse {
|
|
25
|
+
data: unknown;
|
|
115
26
|
}
|
|
116
27
|
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
28
|
}
|
|
128
29
|
export interface SDKCreateVerificationLinkParams {
|
|
129
|
-
|
|
130
|
-
|
|
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;
|
|
30
|
+
}
|
|
31
|
+
export interface SDKLogoutParams {
|
|
143
32
|
}
|
|
144
33
|
export declare namespace SDK {
|
|
145
|
-
export { type SDKCreateSessionResponse as SDKCreateSessionResponse, type SDKCreateVerificationLinkResponse as SDKCreateVerificationLinkResponse, type SDKCreateSessionParams as SDKCreateSessionParams, type SDKCreateVerificationLinkParams as SDKCreateVerificationLinkParams, };
|
|
34
|
+
export { type SDKCreateSessionResponse as SDKCreateSessionResponse, type SDKCreateVerificationLinkResponse as SDKCreateVerificationLinkResponse, type SDKLogoutResponse as SDKLogoutResponse, type SDKCreateSessionParams as SDKCreateSessionParams, type SDKCreateVerificationLinkParams as SDKCreateVerificationLinkParams, type SDKLogoutParams as SDKLogoutParams, };
|
|
146
35
|
}
|
|
147
36
|
//# sourceMappingURL=sdk.d.ts.map
|
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;
|
|
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;IAIhD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAGvF;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;CAAG;AAE1C,MAAM,WAAW,+BAA+B;CAAG;AAEnD,MAAM,WAAW,eAAe;CAAG;AAEnC,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
package/resources/sdk.js
CHANGED
|
@@ -16,6 +16,12 @@ class SDK extends resource_1.APIResource {
|
|
|
16
16
|
createVerificationLink(body, options) {
|
|
17
17
|
return this._client.post('/sdk/create-verification-link', { body, ...options });
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Logout and invalidate a session token
|
|
21
|
+
*/
|
|
22
|
+
logout(body, options) {
|
|
23
|
+
return this._client.post('/sdk/logout', { body, ...options });
|
|
24
|
+
}
|
|
19
25
|
}
|
|
20
26
|
exports.SDK = SDK;
|
|
21
27
|
//# 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,MAAa,GAAI,SAAQ,sBAAW;IAClC;;OAEG;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;;OAEG;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;CACF;
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/resources/sdk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,GAAI,SAAQ,sBAAW;IAClC;;OAEG;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;;OAEG;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;;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;CACF;AA3BD,kBA2BC"}
|
package/resources/sdk.mjs
CHANGED
|
@@ -13,5 +13,11 @@ export class SDK extends APIResource {
|
|
|
13
13
|
createVerificationLink(body, options) {
|
|
14
14
|
return this._client.post('/sdk/create-verification-link', { body, ...options });
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Logout and invalidate a session token
|
|
18
|
+
*/
|
|
19
|
+
logout(body, options) {
|
|
20
|
+
return this._client.post('/sdk/logout', { body, ...options });
|
|
21
|
+
}
|
|
16
22
|
}
|
|
17
23
|
//# 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,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;OAEG;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;;OAEG;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;CACF"}
|
|
1
|
+
{"version":3,"file":"sdk.mjs","sourceRoot":"","sources":["../src/resources/sdk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;OAEG;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;;OAEG;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;;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;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Users extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* POST /users/update-metadata
|
|
7
|
+
*/
|
|
8
|
+
updateMetadata(body: UserUpdateMetadataParams, options?: RequestOptions): APIPromise<UserUpdateMetadataResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface UserUpdateMetadataResponse {
|
|
11
|
+
data: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface UserUpdateMetadataParams {
|
|
14
|
+
}
|
|
15
|
+
export declare namespace Users {
|
|
16
|
+
export { type UserUpdateMetadataResponse as UserUpdateMetadataResponse, type UserUpdateMetadataParams as UserUpdateMetadataParams, };
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=users.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,cAAc,CACZ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,wBAAwB;CAAG;AAE5C,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Users extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* POST /users/update-metadata
|
|
7
|
+
*/
|
|
8
|
+
updateMetadata(body: UserUpdateMetadataParams, options?: RequestOptions): APIPromise<UserUpdateMetadataResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface UserUpdateMetadataResponse {
|
|
11
|
+
data: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface UserUpdateMetadataParams {
|
|
14
|
+
}
|
|
15
|
+
export declare namespace Users {
|
|
16
|
+
export { type UserUpdateMetadataResponse as UserUpdateMetadataResponse, type UserUpdateMetadataParams as UserUpdateMetadataParams, };
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=users.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,cAAc,CACZ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,wBAAwB;CAAG;AAE5C,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.Users = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Users extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* POST /users/update-metadata
|
|
9
|
+
*/
|
|
10
|
+
updateMetadata(body, options) {
|
|
11
|
+
return this._client.post('/users/update-metadata', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Users = Users;
|
|
15
|
+
//# sourceMappingURL=users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,cAAc,CACZ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AAVD,sBAUC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Users extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* POST /users/update-metadata
|
|
6
|
+
*/
|
|
7
|
+
updateMetadata(body, options) {
|
|
8
|
+
return this._client.post('/users/update-metadata', { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=users.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,cAAc,CACZ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF"}
|