@studyfetch/sdk 1.6.0 → 1.8.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 +0 -1
- package/package.json +1 -1
- package/resources/v1/auth/auth.d.mts +8 -88
- package/resources/v1/auth/auth.d.mts.map +1 -1
- package/resources/v1/auth/auth.d.ts +8 -88
- package/resources/v1/auth/auth.d.ts.map +1 -1
- package/resources/v1/auth/auth.js +5 -77
- package/resources/v1/auth/auth.js.map +1 -1
- package/resources/v1/auth/auth.mjs +6 -78
- package/resources/v1/auth/auth.mjs.map +1 -1
- package/resources/v1/auth/index.d.mts +3 -3
- package/resources/v1/auth/index.d.mts.map +1 -1
- package/resources/v1/auth/index.d.ts +3 -3
- package/resources/v1/auth/index.d.ts.map +1 -1
- package/resources/v1/auth/index.js.map +1 -1
- package/resources/v1/auth/index.mjs +3 -3
- package/resources/v1/auth/index.mjs.map +1 -1
- package/resources/v1/auth/login.d.mts +0 -65
- package/resources/v1/auth/login.d.mts.map +1 -1
- package/resources/v1/auth/login.d.ts +0 -65
- package/resources/v1/auth/login.d.ts.map +1 -1
- package/resources/v1/auth/login.js +0 -49
- package/resources/v1/auth/login.js.map +1 -1
- package/resources/v1/auth/login.mjs +0 -49
- package/resources/v1/auth/login.mjs.map +1 -1
- package/resources/v1/auth/number-2fa.d.mts +1 -53
- package/resources/v1/auth/number-2fa.d.mts.map +1 -1
- package/resources/v1/auth/number-2fa.d.ts +1 -53
- package/resources/v1/auth/number-2fa.d.ts.map +1 -1
- package/resources/v1/auth/number-2fa.js +0 -57
- package/resources/v1/auth/number-2fa.js.map +1 -1
- package/resources/v1/auth/number-2fa.mjs +0 -57
- package/resources/v1/auth/number-2fa.mjs.map +1 -1
- package/resources/v1/auth/organization-invites.d.mts +0 -9
- package/resources/v1/auth/organization-invites.d.mts.map +1 -1
- package/resources/v1/auth/organization-invites.d.ts +0 -9
- package/resources/v1/auth/organization-invites.d.ts.map +1 -1
- package/resources/v1/auth/organization-invites.js +0 -14
- package/resources/v1/auth/organization-invites.js.map +1 -1
- package/resources/v1/auth/organization-invites.mjs +0 -14
- package/resources/v1/auth/organization-invites.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -3
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -3
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/organizations/api-keys.d.mts +0 -23
- package/resources/v1/organizations/api-keys.d.mts.map +1 -1
- package/resources/v1/organizations/api-keys.d.ts +0 -23
- package/resources/v1/organizations/api-keys.d.ts.map +1 -1
- package/resources/v1/organizations/api-keys.js +0 -38
- package/resources/v1/organizations/api-keys.js.map +1 -1
- package/resources/v1/organizations/api-keys.mjs +0 -38
- package/resources/v1/organizations/api-keys.mjs.map +1 -1
- package/resources/v1/organizations/index.d.mts +3 -3
- package/resources/v1/organizations/index.d.mts.map +1 -1
- package/resources/v1/organizations/index.d.ts +3 -3
- package/resources/v1/organizations/index.d.ts.map +1 -1
- package/resources/v1/organizations/index.js.map +1 -1
- package/resources/v1/organizations/index.mjs +1 -1
- package/resources/v1/organizations/index.mjs.map +1 -1
- package/resources/v1/organizations/logo/logo.d.mts +0 -9
- package/resources/v1/organizations/logo/logo.d.mts.map +1 -1
- package/resources/v1/organizations/logo/logo.d.ts +0 -9
- package/resources/v1/organizations/logo/logo.d.ts.map +1 -1
- package/resources/v1/organizations/logo/logo.js +0 -13
- package/resources/v1/organizations/logo/logo.js.map +1 -1
- package/resources/v1/organizations/logo/logo.mjs +0 -13
- package/resources/v1/organizations/logo/logo.mjs.map +1 -1
- package/resources/v1/organizations/logo/upload.d.mts +0 -16
- package/resources/v1/organizations/logo/upload.d.mts.map +1 -1
- package/resources/v1/organizations/logo/upload.d.ts +0 -16
- package/resources/v1/organizations/logo/upload.d.ts.map +1 -1
- package/resources/v1/organizations/logo/upload.js +0 -25
- package/resources/v1/organizations/logo/upload.js.map +1 -1
- package/resources/v1/organizations/logo/upload.mjs +0 -25
- package/resources/v1/organizations/logo/upload.mjs.map +1 -1
- package/resources/v1/organizations/organizations.d.mts +4 -23
- package/resources/v1/organizations/organizations.d.mts.map +1 -1
- package/resources/v1/organizations/organizations.d.ts +4 -23
- package/resources/v1/organizations/organizations.d.ts.map +1 -1
- package/resources/v1/organizations/organizations.js +0 -27
- package/resources/v1/organizations/organizations.js.map +1 -1
- package/resources/v1/organizations/organizations.mjs +1 -28
- package/resources/v1/organizations/organizations.mjs.map +1 -1
- package/resources/v1/organizations/profile/index.d.mts +2 -2
- package/resources/v1/organizations/profile/index.d.mts.map +1 -1
- package/resources/v1/organizations/profile/index.d.ts +2 -2
- package/resources/v1/organizations/profile/index.d.ts.map +1 -1
- package/resources/v1/organizations/profile/index.js.map +1 -1
- package/resources/v1/organizations/profile/index.mjs +1 -1
- package/resources/v1/organizations/profile/index.mjs.map +1 -1
- package/resources/v1/organizations/profile/models.d.mts +0 -9
- package/resources/v1/organizations/profile/models.d.mts.map +1 -1
- package/resources/v1/organizations/profile/models.d.ts +0 -9
- package/resources/v1/organizations/profile/models.d.ts.map +1 -1
- package/resources/v1/organizations/profile/models.js +0 -13
- package/resources/v1/organizations/profile/models.js.map +1 -1
- package/resources/v1/organizations/profile/models.mjs +0 -13
- package/resources/v1/organizations/profile/models.mjs.map +1 -1
- package/resources/v1/organizations/profile/profile.d.mts +2 -22
- package/resources/v1/organizations/profile/profile.d.mts.map +1 -1
- package/resources/v1/organizations/profile/profile.d.ts +2 -22
- package/resources/v1/organizations/profile/profile.d.ts.map +1 -1
- package/resources/v1/organizations/profile/profile.js +0 -26
- package/resources/v1/organizations/profile/profile.js.map +1 -1
- package/resources/v1/organizations/profile/profile.mjs +0 -26
- package/resources/v1/organizations/profile/profile.mjs.map +1 -1
- package/resources/v1/organizations/profile/team.d.mts +0 -57
- package/resources/v1/organizations/profile/team.d.mts.map +1 -1
- package/resources/v1/organizations/profile/team.d.ts +0 -57
- package/resources/v1/organizations/profile/team.d.ts.map +1 -1
- package/resources/v1/organizations/profile/team.js +0 -80
- package/resources/v1/organizations/profile/team.js.map +1 -1
- package/resources/v1/organizations/profile/team.mjs +0 -80
- package/resources/v1/organizations/profile/team.mjs.map +1 -1
- package/resources/v1/organizations/team/index.d.mts +2 -2
- package/resources/v1/organizations/team/index.d.mts.map +1 -1
- package/resources/v1/organizations/team/index.d.ts +2 -2
- package/resources/v1/organizations/team/index.d.ts.map +1 -1
- package/resources/v1/organizations/team/index.js.map +1 -1
- package/resources/v1/organizations/team/index.mjs +1 -1
- package/resources/v1/organizations/team/index.mjs.map +1 -1
- package/resources/v1/organizations/team/invite.d.mts +0 -23
- package/resources/v1/organizations/team/invite.d.mts.map +1 -1
- package/resources/v1/organizations/team/invite.d.ts +0 -23
- package/resources/v1/organizations/team/invite.d.ts.map +1 -1
- package/resources/v1/organizations/team/invite.js +0 -29
- package/resources/v1/organizations/team/invite.js.map +1 -1
- package/resources/v1/organizations/team/invite.mjs +0 -29
- package/resources/v1/organizations/team/invite.mjs.map +1 -1
- package/resources/v1/organizations/team/team.d.mts +2 -64
- package/resources/v1/organizations/team/team.d.mts.map +1 -1
- package/resources/v1/organizations/team/team.d.ts +2 -64
- package/resources/v1/organizations/team/team.d.ts.map +1 -1
- package/resources/v1/organizations/team/team.js +0 -85
- package/resources/v1/organizations/team/team.js.map +1 -1
- package/resources/v1/organizations/team/team.mjs +0 -85
- package/resources/v1/organizations/team/team.mjs.map +1 -1
- package/resources/v1/organizations/theme.d.mts +0 -16
- package/resources/v1/organizations/theme.d.mts.map +1 -1
- package/resources/v1/organizations/theme.d.ts +0 -16
- package/resources/v1/organizations/theme.d.ts.map +1 -1
- package/resources/v1/organizations/theme.js +0 -25
- package/resources/v1/organizations/theme.js.map +1 -1
- package/resources/v1/organizations/theme.mjs +0 -25
- package/resources/v1/organizations/theme.mjs.map +1 -1
- package/resources/v1/organizations/usage.d.mts +0 -9
- package/resources/v1/organizations/usage.d.mts.map +1 -1
- package/resources/v1/organizations/usage.d.ts +0 -9
- package/resources/v1/organizations/usage.d.ts.map +1 -1
- package/resources/v1/organizations/usage.js +0 -14
- package/resources/v1/organizations/usage.js.map +1 -1
- package/resources/v1/organizations/usage.mjs +0 -14
- package/resources/v1/organizations/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +1 -169
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +1 -169
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +0 -45
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +0 -45
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +6 -6
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -6
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/auth/auth.ts +9 -153
- package/src/resources/v1/auth/index.ts +3 -20
- package/src/resources/v1/auth/login.ts +1 -99
- package/src/resources/v1/auth/number-2fa.ts +1 -91
- package/src/resources/v1/auth/organization-invites.ts +1 -18
- package/src/resources/v1/index.ts +2 -10
- package/src/resources/v1/organizations/api-keys.ts +1 -44
- package/src/resources/v1/organizations/index.ts +3 -9
- package/src/resources/v1/organizations/logo/logo.ts +0 -16
- package/src/resources/v1/organizations/logo/upload.ts +1 -30
- package/src/resources/v1/organizations/organizations.ts +4 -55
- package/src/resources/v1/organizations/profile/index.ts +2 -8
- package/src/resources/v1/organizations/profile/models.ts +1 -17
- package/src/resources/v1/organizations/profile/profile.ts +2 -47
- package/src/resources/v1/organizations/profile/team.ts +1 -106
- package/src/resources/v1/organizations/team/index.ts +2 -8
- package/src/resources/v1/organizations/team/invite.ts +1 -40
- package/src/resources/v1/organizations/team/team.ts +2 -116
- package/src/resources/v1/organizations/theme.ts +1 -30
- package/src/resources/v1/organizations/usage.ts +1 -18
- package/src/resources/v1/usage.ts +0 -272
- package/src/resources/v1/v1.ts +5 -26
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.8.0 (2025-07-19)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.7.0...v1.8.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.7.0...v1.8.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([6bcd440](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/6bcd44066e0086dea5f737875600c354b794f0c1))
|
|
10
|
+
|
|
11
|
+
## 1.7.0 (2025-07-18)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.6.0...v1.7.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.6.0...v1.7.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** manual updates ([1ba10ca](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/1ba10caab77f88f8ebb2a05fd92c913a9810c673))
|
|
18
|
+
|
|
3
19
|
## 1.6.0 (2025-07-18)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v1.5.0...v1.6.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.5.0...v1.6.0)
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as LoginAPI from "./login.mjs";
|
|
3
|
-
import { Login
|
|
3
|
+
import { Login } from "./login.mjs";
|
|
4
4
|
import * as Number2faAPI from "./number-2fa.mjs";
|
|
5
|
-
import { Number2fa,
|
|
5
|
+
import { Number2fa, Number2faSendCodeParams } from "./number-2fa.mjs";
|
|
6
6
|
import * as OrganizationInvitesAPI from "./organization-invites.mjs";
|
|
7
7
|
import { OrganizationInvites } from "./organization-invites.mjs";
|
|
8
8
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
@@ -12,98 +12,18 @@ export declare class Auth extends APIResource {
|
|
|
12
12
|
number2fa: Number2faAPI.Number2fa;
|
|
13
13
|
organizationInvites: OrganizationInvitesAPI.OrganizationInvites;
|
|
14
14
|
/**
|
|
15
|
+
* Verify password reset token
|
|
16
|
+
*
|
|
15
17
|
* @example
|
|
16
18
|
* ```ts
|
|
17
|
-
* await client.v1.auth.
|
|
19
|
+
* await client.v1.auth.verifyResetToken();
|
|
18
20
|
* ```
|
|
19
21
|
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* await client.v1.auth.registerNewUser({
|
|
25
|
-
* email: 'user@example.com',
|
|
26
|
-
* name: 'John Doe',
|
|
27
|
-
* organizationName: 'Acme Corp',
|
|
28
|
-
* password: 'password123',
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
registerNewUser(body: AuthRegisterNewUserParams, options?: RequestOptions): APIPromise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* await client.v1.auth.registerOrganization();
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
registerOrganization(options?: RequestOptions): APIPromise<void>;
|
|
40
|
-
/**
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* await client.v1.auth.registerWithInvite();
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
registerWithInvite(body: AuthRegisterWithInviteParams, options?: RequestOptions): APIPromise<void>;
|
|
47
|
-
/**
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* await client.v1.auth.requestPasswordReset({
|
|
51
|
-
* email: 'user@example.com',
|
|
52
|
-
* });
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
requestPasswordReset(body: AuthRequestPasswordResetParams, options?: RequestOptions): APIPromise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* await client.v1.auth.resetPassword({
|
|
60
|
-
* token: 'reset-token-uuid',
|
|
61
|
-
* newPassword: 'newPassword123',
|
|
62
|
-
* });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
resetPassword(body: AuthResetPasswordParams, options?: RequestOptions): APIPromise<void>;
|
|
66
|
-
}
|
|
67
|
-
export interface AuthRegisterNewUserParams {
|
|
68
|
-
/**
|
|
69
|
-
* User email address
|
|
70
|
-
*/
|
|
71
|
-
email: string;
|
|
72
|
-
/**
|
|
73
|
-
* User full name
|
|
74
|
-
*/
|
|
75
|
-
name: string;
|
|
76
|
-
/**
|
|
77
|
-
* Organization name
|
|
78
|
-
*/
|
|
79
|
-
organizationName: string;
|
|
80
|
-
/**
|
|
81
|
-
* User password
|
|
82
|
-
*/
|
|
83
|
-
password: string;
|
|
84
|
-
}
|
|
85
|
-
export interface AuthRegisterWithInviteParams {
|
|
86
|
-
}
|
|
87
|
-
export interface AuthRequestPasswordResetParams {
|
|
88
|
-
/**
|
|
89
|
-
* Email address to send reset link
|
|
90
|
-
*/
|
|
91
|
-
email: string;
|
|
92
|
-
}
|
|
93
|
-
export interface AuthResetPasswordParams {
|
|
94
|
-
/**
|
|
95
|
-
* Password reset token from email
|
|
96
|
-
*/
|
|
97
|
-
token: string;
|
|
98
|
-
/**
|
|
99
|
-
* New password
|
|
100
|
-
*/
|
|
101
|
-
newPassword: string;
|
|
22
|
+
verifyResetToken(options?: RequestOptions): APIPromise<void>;
|
|
102
23
|
}
|
|
103
24
|
export declare namespace Auth {
|
|
104
|
-
export {
|
|
105
|
-
export {
|
|
106
|
-
export { Number2fa as Number2fa, type Number2faDisableParams as Number2faDisableParams, type Number2faEnableParams as Number2faEnableParams, type Number2faRegenerateBackupCodesParams as Number2faRegenerateBackupCodesParams, type Number2faSendCodeParams as Number2faSendCodeParams, };
|
|
25
|
+
export { Login as Login };
|
|
26
|
+
export { Number2fa as Number2fa, type Number2faSendCodeParams as Number2faSendCodeParams };
|
|
107
27
|
export { OrganizationInvites as OrganizationInvites };
|
|
108
28
|
}
|
|
109
29
|
//# sourceMappingURL=auth.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE
|
|
1
|
+
{"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE;OACT,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE,uBAAuB,EAAE;OACtC,KAAK,sBAAsB;OAC3B,EAAE,mBAAmB,EAAE;OACvB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,mBAAmB,EAAE,sBAAsB,CAAC,mBAAmB,CACA;IAE/D;;;;;;;OAOG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM7D;AAMD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,CAAC;IAE1B,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;IAE3F,OAAO,EAAE,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CACvD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as LoginAPI from "./login.js";
|
|
3
|
-
import { Login
|
|
3
|
+
import { Login } from "./login.js";
|
|
4
4
|
import * as Number2faAPI from "./number-2fa.js";
|
|
5
|
-
import { Number2fa,
|
|
5
|
+
import { Number2fa, Number2faSendCodeParams } from "./number-2fa.js";
|
|
6
6
|
import * as OrganizationInvitesAPI from "./organization-invites.js";
|
|
7
7
|
import { OrganizationInvites } from "./organization-invites.js";
|
|
8
8
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
@@ -12,98 +12,18 @@ export declare class Auth extends APIResource {
|
|
|
12
12
|
number2fa: Number2faAPI.Number2fa;
|
|
13
13
|
organizationInvites: OrganizationInvitesAPI.OrganizationInvites;
|
|
14
14
|
/**
|
|
15
|
+
* Verify password reset token
|
|
16
|
+
*
|
|
15
17
|
* @example
|
|
16
18
|
* ```ts
|
|
17
|
-
* await client.v1.auth.
|
|
19
|
+
* await client.v1.auth.verifyResetToken();
|
|
18
20
|
* ```
|
|
19
21
|
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* await client.v1.auth.registerNewUser({
|
|
25
|
-
* email: 'user@example.com',
|
|
26
|
-
* name: 'John Doe',
|
|
27
|
-
* organizationName: 'Acme Corp',
|
|
28
|
-
* password: 'password123',
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
registerNewUser(body: AuthRegisterNewUserParams, options?: RequestOptions): APIPromise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* await client.v1.auth.registerOrganization();
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
registerOrganization(options?: RequestOptions): APIPromise<void>;
|
|
40
|
-
/**
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* await client.v1.auth.registerWithInvite();
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
registerWithInvite(body: AuthRegisterWithInviteParams, options?: RequestOptions): APIPromise<void>;
|
|
47
|
-
/**
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* await client.v1.auth.requestPasswordReset({
|
|
51
|
-
* email: 'user@example.com',
|
|
52
|
-
* });
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
requestPasswordReset(body: AuthRequestPasswordResetParams, options?: RequestOptions): APIPromise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* await client.v1.auth.resetPassword({
|
|
60
|
-
* token: 'reset-token-uuid',
|
|
61
|
-
* newPassword: 'newPassword123',
|
|
62
|
-
* });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
resetPassword(body: AuthResetPasswordParams, options?: RequestOptions): APIPromise<void>;
|
|
66
|
-
}
|
|
67
|
-
export interface AuthRegisterNewUserParams {
|
|
68
|
-
/**
|
|
69
|
-
* User email address
|
|
70
|
-
*/
|
|
71
|
-
email: string;
|
|
72
|
-
/**
|
|
73
|
-
* User full name
|
|
74
|
-
*/
|
|
75
|
-
name: string;
|
|
76
|
-
/**
|
|
77
|
-
* Organization name
|
|
78
|
-
*/
|
|
79
|
-
organizationName: string;
|
|
80
|
-
/**
|
|
81
|
-
* User password
|
|
82
|
-
*/
|
|
83
|
-
password: string;
|
|
84
|
-
}
|
|
85
|
-
export interface AuthRegisterWithInviteParams {
|
|
86
|
-
}
|
|
87
|
-
export interface AuthRequestPasswordResetParams {
|
|
88
|
-
/**
|
|
89
|
-
* Email address to send reset link
|
|
90
|
-
*/
|
|
91
|
-
email: string;
|
|
92
|
-
}
|
|
93
|
-
export interface AuthResetPasswordParams {
|
|
94
|
-
/**
|
|
95
|
-
* Password reset token from email
|
|
96
|
-
*/
|
|
97
|
-
token: string;
|
|
98
|
-
/**
|
|
99
|
-
* New password
|
|
100
|
-
*/
|
|
101
|
-
newPassword: string;
|
|
22
|
+
verifyResetToken(options?: RequestOptions): APIPromise<void>;
|
|
102
23
|
}
|
|
103
24
|
export declare namespace Auth {
|
|
104
|
-
export {
|
|
105
|
-
export {
|
|
106
|
-
export { Number2fa as Number2fa, type Number2faDisableParams as Number2faDisableParams, type Number2faEnableParams as Number2faEnableParams, type Number2faRegenerateBackupCodesParams as Number2faRegenerateBackupCodesParams, type Number2faSendCodeParams as Number2faSendCodeParams, };
|
|
25
|
+
export { Login as Login };
|
|
26
|
+
export { Number2fa as Number2fa, type Number2faSendCodeParams as Number2faSendCodeParams };
|
|
107
27
|
export { OrganizationInvites as OrganizationInvites };
|
|
108
28
|
}
|
|
109
29
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE;OACT,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE,uBAAuB,EAAE;OACtC,KAAK,sBAAsB;OAC3B,EAAE,mBAAmB,EAAE;OACvB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,mBAAmB,EAAE,sBAAsB,CAAC,mBAAmB,CACA;IAE/D;;;;;;;OAOG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM7D;AAMD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,CAAC;IAE1B,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;IAE3F,OAAO,EAAE,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CACvD"}
|
|
@@ -19,87 +19,15 @@ class Auth extends resource_1.APIResource {
|
|
|
19
19
|
this.organizationInvites = new OrganizationInvitesAPI.OrganizationInvites(this._client);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
+
* Verify password reset token
|
|
23
|
+
*
|
|
22
24
|
* @example
|
|
23
25
|
* ```ts
|
|
24
|
-
* await client.v1.auth.
|
|
26
|
+
* await client.v1.auth.verifyResetToken();
|
|
25
27
|
* ```
|
|
26
28
|
*/
|
|
27
|
-
|
|
28
|
-
return this._client.
|
|
29
|
-
...options,
|
|
30
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* await client.v1.auth.registerNewUser({
|
|
37
|
-
* email: 'user@example.com',
|
|
38
|
-
* name: 'John Doe',
|
|
39
|
-
* organizationName: 'Acme Corp',
|
|
40
|
-
* password: 'password123',
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
registerNewUser(body, options) {
|
|
45
|
-
return this._client.post('/api/v1/auth/register', {
|
|
46
|
-
body,
|
|
47
|
-
...options,
|
|
48
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @example
|
|
53
|
-
* ```ts
|
|
54
|
-
* await client.v1.auth.registerOrganization();
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
registerOrganization(options) {
|
|
58
|
-
return this._client.post('/api/v1/auth/register-organization', {
|
|
59
|
-
...options,
|
|
60
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @example
|
|
65
|
-
* ```ts
|
|
66
|
-
* await client.v1.auth.registerWithInvite();
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
registerWithInvite(body, options) {
|
|
70
|
-
return this._client.post('/api/v1/auth/register-with-invite', {
|
|
71
|
-
body,
|
|
72
|
-
...options,
|
|
73
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* @example
|
|
78
|
-
* ```ts
|
|
79
|
-
* await client.v1.auth.requestPasswordReset({
|
|
80
|
-
* email: 'user@example.com',
|
|
81
|
-
* });
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
requestPasswordReset(body, options) {
|
|
85
|
-
return this._client.post('/api/v1/auth/forgot-password', {
|
|
86
|
-
body,
|
|
87
|
-
...options,
|
|
88
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* @example
|
|
93
|
-
* ```ts
|
|
94
|
-
* await client.v1.auth.resetPassword({
|
|
95
|
-
* token: 'reset-token-uuid',
|
|
96
|
-
* newPassword: 'newPassword123',
|
|
97
|
-
* });
|
|
98
|
-
* ```
|
|
99
|
-
*/
|
|
100
|
-
resetPassword(body, options) {
|
|
101
|
-
return this._client.post('/api/v1/auth/reset-password', {
|
|
102
|
-
body,
|
|
29
|
+
verifyResetToken(options) {
|
|
30
|
+
return this._client.post('/api/v1/auth/verify-reset-token', {
|
|
103
31
|
...options,
|
|
104
32
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
105
33
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,sCAAgC;AAChC,sEAA6C;AAC7C,gDAAkE;AAClE,0FAAiE;AACjE,oEAA6D;AAE7D,0DAAyD;AAGzD,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,wBAAmB,GACjB,IAAI,sBAAsB,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBjE,CAAC;IAdC;;;;;;;OAOG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AApBD,oBAoBC;AAED,IAAI,CAAC,KAAK,GAAG,aAAK,CAAC;AACnB,IAAI,CAAC,SAAS,GAAG,sBAAS,CAAC;AAC3B,IAAI,CAAC,mBAAmB,GAAG,0CAAmB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
3
3
|
import * as LoginAPI from "./login.mjs";
|
|
4
4
|
import { Login } from "./login.mjs";
|
|
5
5
|
import * as Number2faAPI from "./number-2fa.mjs";
|
|
6
|
-
import { Number2fa
|
|
6
|
+
import { Number2fa } from "./number-2fa.mjs";
|
|
7
7
|
import * as OrganizationInvitesAPI from "./organization-invites.mjs";
|
|
8
8
|
import { OrganizationInvites } from "./organization-invites.mjs";
|
|
9
9
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
@@ -15,87 +15,15 @@ export class Auth extends APIResource {
|
|
|
15
15
|
this.organizationInvites = new OrganizationInvitesAPI.OrganizationInvites(this._client);
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
+
* Verify password reset token
|
|
19
|
+
*
|
|
18
20
|
* @example
|
|
19
21
|
* ```ts
|
|
20
|
-
* await client.v1.auth.
|
|
22
|
+
* await client.v1.auth.verifyResetToken();
|
|
21
23
|
* ```
|
|
22
24
|
*/
|
|
23
|
-
|
|
24
|
-
return this._client.
|
|
25
|
-
...options,
|
|
26
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* await client.v1.auth.registerNewUser({
|
|
33
|
-
* email: 'user@example.com',
|
|
34
|
-
* name: 'John Doe',
|
|
35
|
-
* organizationName: 'Acme Corp',
|
|
36
|
-
* password: 'password123',
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
registerNewUser(body, options) {
|
|
41
|
-
return this._client.post('/api/v1/auth/register', {
|
|
42
|
-
body,
|
|
43
|
-
...options,
|
|
44
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* await client.v1.auth.registerOrganization();
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
registerOrganization(options) {
|
|
54
|
-
return this._client.post('/api/v1/auth/register-organization', {
|
|
55
|
-
...options,
|
|
56
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await client.v1.auth.registerWithInvite();
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
registerWithInvite(body, options) {
|
|
66
|
-
return this._client.post('/api/v1/auth/register-with-invite', {
|
|
67
|
-
body,
|
|
68
|
-
...options,
|
|
69
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* await client.v1.auth.requestPasswordReset({
|
|
76
|
-
* email: 'user@example.com',
|
|
77
|
-
* });
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
requestPasswordReset(body, options) {
|
|
81
|
-
return this._client.post('/api/v1/auth/forgot-password', {
|
|
82
|
-
body,
|
|
83
|
-
...options,
|
|
84
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* @example
|
|
89
|
-
* ```ts
|
|
90
|
-
* await client.v1.auth.resetPassword({
|
|
91
|
-
* token: 'reset-token-uuid',
|
|
92
|
-
* newPassword: 'newPassword123',
|
|
93
|
-
* });
|
|
94
|
-
* ```
|
|
95
|
-
*/
|
|
96
|
-
resetPassword(body, options) {
|
|
97
|
-
return this._client.post('/api/v1/auth/reset-password', {
|
|
98
|
-
body,
|
|
25
|
+
verifyResetToken(options) {
|
|
26
|
+
return this._client.post('/api/v1/auth/verify-reset-token', {
|
|
99
27
|
...options,
|
|
100
28
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
101
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE;OACT,KAAK,YAAY;OACjB,EAAE,SAAS,EAA2B;OACtC,KAAK,sBAAsB;OAC3B,EAAE,mBAAmB,EAAE;OAEvB,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,wBAAmB,GACjB,IAAI,sBAAsB,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBjE,CAAC;IAdC;;;;;;;OAOG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;AAC3B,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Auth
|
|
2
|
-
export { Login
|
|
3
|
-
export { Number2fa, type
|
|
1
|
+
export { Auth } from "./auth.mjs";
|
|
2
|
+
export { Login } from "./login.mjs";
|
|
3
|
+
export { Number2fa, type Number2faSendCodeParams } from "./number-2fa.mjs";
|
|
4
4
|
export { OrganizationInvites } from "./organization-invites.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,KAAK,EAAE;OACT,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE;OAC3C,EAAE,mBAAmB,EAAE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Auth
|
|
2
|
-
export { Login
|
|
3
|
-
export { Number2fa, type
|
|
1
|
+
export { Auth } from "./auth.js";
|
|
2
|
+
export { Login } from "./login.js";
|
|
3
|
+
export { Number2fa, type Number2faSendCodeParams } from "./number-2fa.js";
|
|
4
4
|
export { OrganizationInvites } from "./organization-invites.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,KAAK,EAAE;OACT,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE;OAC3C,EAAE,mBAAmB,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,oCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,8CAAuE;AAA9D,uGAAA,SAAS,OAAA;AAClB,kEAA6D;AAApD,2HAAA,mBAAmB,OAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { Auth
|
|
3
|
-
export { Login
|
|
4
|
-
export { Number2fa
|
|
2
|
+
export { Auth } from "./auth.mjs";
|
|
3
|
+
export { Login } from "./login.mjs";
|
|
4
|
+
export { Number2fa } from "./number-2fa.mjs";
|
|
5
5
|
export { OrganizationInvites } from "./organization-invites.mjs";
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,KAAK,EAAE;OACT,EAAE,SAAS,EAAgC;OAC3C,EAAE,mBAAmB,EAAE"}
|
|
@@ -1,69 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
2
|
export declare class Login extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* await client.v1.auth.login.authenticate({
|
|
9
|
-
* email: 'user@example.com',
|
|
10
|
-
* password: 'password123',
|
|
11
|
-
* });
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
authenticate(body: LoginAuthenticateParams, options?: RequestOptions): APIPromise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* await client.v1.auth.login.verify2fa({
|
|
19
|
-
* code: '123456',
|
|
20
|
-
* email: 'user@example.com',
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
verify2fa(body: LoginVerify2faParams, options?: RequestOptions): APIPromise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* await client.v1.auth.login.verifyBackupCode({
|
|
29
|
-
* backupCode: 'ABCD-EFGH-IJKL',
|
|
30
|
-
* email: 'user@example.com',
|
|
31
|
-
* });
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
verifyBackupCode(body: LoginVerifyBackupCodeParams, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
}
|
|
36
|
-
export interface LoginAuthenticateParams {
|
|
37
|
-
/**
|
|
38
|
-
* User email address
|
|
39
|
-
*/
|
|
40
|
-
email: string;
|
|
41
|
-
/**
|
|
42
|
-
* User password
|
|
43
|
-
*/
|
|
44
|
-
password: string;
|
|
45
|
-
}
|
|
46
|
-
export interface LoginVerify2faParams {
|
|
47
|
-
/**
|
|
48
|
-
* 6-digit verification code
|
|
49
|
-
*/
|
|
50
|
-
code: string;
|
|
51
|
-
/**
|
|
52
|
-
* User email address
|
|
53
|
-
*/
|
|
54
|
-
email: string;
|
|
55
|
-
}
|
|
56
|
-
export interface LoginVerifyBackupCodeParams {
|
|
57
|
-
/**
|
|
58
|
-
* Backup code
|
|
59
|
-
*/
|
|
60
|
-
backupCode: string;
|
|
61
|
-
/**
|
|
62
|
-
* User email address
|
|
63
|
-
*/
|
|
64
|
-
email: string;
|
|
65
|
-
}
|
|
66
|
-
export declare namespace Login {
|
|
67
|
-
export { type LoginAuthenticateParams as LoginAuthenticateParams, type LoginVerify2faParams as LoginVerify2faParams, type LoginVerifyBackupCodeParams as LoginVerifyBackupCodeParams, };
|
|
68
3
|
}
|
|
69
4
|
//# sourceMappingURL=login.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/login.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"login.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/login.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,KAAM,SAAQ,WAAW;CAAG"}
|