@studyfetch/sdk 1.7.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 +8 -0
- package/README.md +0 -1
- package/package.json +1 -1
- package/resources/v1/auth/auth.d.mts +4 -93
- package/resources/v1/auth/auth.d.mts.map +1 -1
- package/resources/v1/auth/auth.d.ts +4 -93
- package/resources/v1/auth/auth.d.ts.map +1 -1
- package/resources/v1/auth/auth.js +0 -86
- package/resources/v1/auth/auth.js.map +1 -1
- package/resources/v1/auth/auth.mjs +1 -87
- 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 -16
- package/resources/v1/organizations/usage.d.mts.map +1 -1
- package/resources/v1/organizations/usage.d.ts +0 -16
- package/resources/v1/organizations/usage.d.ts.map +1 -1
- package/resources/v1/organizations/usage.js +0 -26
- package/resources/v1/organizations/usage.js.map +1 -1
- package/resources/v1/organizations/usage.mjs +0 -26
- 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 +4 -163
- 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 -31
- 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,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 1.7.0 (2025-07-18)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.6.0...v1.7.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.6.0...v1.7.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";
|
|
@@ -11,58 +11,6 @@ export declare class Auth extends APIResource {
|
|
|
11
11
|
login: LoginAPI.Login;
|
|
12
12
|
number2fa: Number2faAPI.Number2fa;
|
|
13
13
|
organizationInvites: OrganizationInvitesAPI.OrganizationInvites;
|
|
14
|
-
/**
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* await client.v1.auth.getProfile();
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
getProfile(options?: RequestOptions): APIPromise<void>;
|
|
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
14
|
/**
|
|
67
15
|
* Verify password reset token
|
|
68
16
|
*
|
|
@@ -73,46 +21,9 @@ export declare class Auth extends APIResource {
|
|
|
73
21
|
*/
|
|
74
22
|
verifyResetToken(options?: RequestOptions): APIPromise<void>;
|
|
75
23
|
}
|
|
76
|
-
export interface AuthRegisterNewUserParams {
|
|
77
|
-
/**
|
|
78
|
-
* User email address
|
|
79
|
-
*/
|
|
80
|
-
email: string;
|
|
81
|
-
/**
|
|
82
|
-
* User full name
|
|
83
|
-
*/
|
|
84
|
-
name: string;
|
|
85
|
-
/**
|
|
86
|
-
* Organization name
|
|
87
|
-
*/
|
|
88
|
-
organizationName: string;
|
|
89
|
-
/**
|
|
90
|
-
* User password
|
|
91
|
-
*/
|
|
92
|
-
password: string;
|
|
93
|
-
}
|
|
94
|
-
export interface AuthRegisterWithInviteParams {
|
|
95
|
-
}
|
|
96
|
-
export interface AuthRequestPasswordResetParams {
|
|
97
|
-
/**
|
|
98
|
-
* Email address to send reset link
|
|
99
|
-
*/
|
|
100
|
-
email: string;
|
|
101
|
-
}
|
|
102
|
-
export interface AuthResetPasswordParams {
|
|
103
|
-
/**
|
|
104
|
-
* Password reset token from email
|
|
105
|
-
*/
|
|
106
|
-
token: string;
|
|
107
|
-
/**
|
|
108
|
-
* New password
|
|
109
|
-
*/
|
|
110
|
-
newPassword: string;
|
|
111
|
-
}
|
|
112
24
|
export declare namespace Auth {
|
|
113
|
-
export {
|
|
114
|
-
export {
|
|
115
|
-
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 };
|
|
116
27
|
export { OrganizationInvites as OrganizationInvites };
|
|
117
28
|
}
|
|
118
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";
|
|
@@ -11,58 +11,6 @@ export declare class Auth extends APIResource {
|
|
|
11
11
|
login: LoginAPI.Login;
|
|
12
12
|
number2fa: Number2faAPI.Number2fa;
|
|
13
13
|
organizationInvites: OrganizationInvitesAPI.OrganizationInvites;
|
|
14
|
-
/**
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* await client.v1.auth.getProfile();
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
getProfile(options?: RequestOptions): APIPromise<void>;
|
|
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
14
|
/**
|
|
67
15
|
* Verify password reset token
|
|
68
16
|
*
|
|
@@ -73,46 +21,9 @@ export declare class Auth extends APIResource {
|
|
|
73
21
|
*/
|
|
74
22
|
verifyResetToken(options?: RequestOptions): APIPromise<void>;
|
|
75
23
|
}
|
|
76
|
-
export interface AuthRegisterNewUserParams {
|
|
77
|
-
/**
|
|
78
|
-
* User email address
|
|
79
|
-
*/
|
|
80
|
-
email: string;
|
|
81
|
-
/**
|
|
82
|
-
* User full name
|
|
83
|
-
*/
|
|
84
|
-
name: string;
|
|
85
|
-
/**
|
|
86
|
-
* Organization name
|
|
87
|
-
*/
|
|
88
|
-
organizationName: string;
|
|
89
|
-
/**
|
|
90
|
-
* User password
|
|
91
|
-
*/
|
|
92
|
-
password: string;
|
|
93
|
-
}
|
|
94
|
-
export interface AuthRegisterWithInviteParams {
|
|
95
|
-
}
|
|
96
|
-
export interface AuthRequestPasswordResetParams {
|
|
97
|
-
/**
|
|
98
|
-
* Email address to send reset link
|
|
99
|
-
*/
|
|
100
|
-
email: string;
|
|
101
|
-
}
|
|
102
|
-
export interface AuthResetPasswordParams {
|
|
103
|
-
/**
|
|
104
|
-
* Password reset token from email
|
|
105
|
-
*/
|
|
106
|
-
token: string;
|
|
107
|
-
/**
|
|
108
|
-
* New password
|
|
109
|
-
*/
|
|
110
|
-
newPassword: string;
|
|
111
|
-
}
|
|
112
24
|
export declare namespace Auth {
|
|
113
|
-
export {
|
|
114
|
-
export {
|
|
115
|
-
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 };
|
|
116
27
|
export { OrganizationInvites as OrganizationInvites };
|
|
117
28
|
}
|
|
118
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"}
|
|
@@ -18,92 +18,6 @@ class Auth extends resource_1.APIResource {
|
|
|
18
18
|
this.number2fa = new Number2faAPI.Number2fa(this._client);
|
|
19
19
|
this.organizationInvites = new OrganizationInvitesAPI.OrganizationInvites(this._client);
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* await client.v1.auth.getProfile();
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
getProfile(options) {
|
|
28
|
-
return this._client.get('/api/v1/auth/profile', {
|
|
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,
|
|
103
|
-
...options,
|
|
104
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
21
|
/**
|
|
108
22
|
* Verify password reset token
|
|
109
23
|
*
|
|
@@ -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";
|
|
@@ -14,92 +14,6 @@ export class Auth extends APIResource {
|
|
|
14
14
|
this.number2fa = new Number2faAPI.Number2fa(this._client);
|
|
15
15
|
this.organizationInvites = new OrganizationInvitesAPI.OrganizationInvites(this._client);
|
|
16
16
|
}
|
|
17
|
-
/**
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* await client.v1.auth.getProfile();
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
getProfile(options) {
|
|
24
|
-
return this._client.get('/api/v1/auth/profile', {
|
|
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,
|
|
99
|
-
...options,
|
|
100
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
17
|
/**
|
|
104
18
|
* Verify password reset token
|
|
105
19
|
*
|
|
@@ -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"}
|