@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.
Files changed (200) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +0 -1
  3. package/package.json +1 -1
  4. package/resources/v1/auth/auth.d.mts +8 -88
  5. package/resources/v1/auth/auth.d.mts.map +1 -1
  6. package/resources/v1/auth/auth.d.ts +8 -88
  7. package/resources/v1/auth/auth.d.ts.map +1 -1
  8. package/resources/v1/auth/auth.js +5 -77
  9. package/resources/v1/auth/auth.js.map +1 -1
  10. package/resources/v1/auth/auth.mjs +6 -78
  11. package/resources/v1/auth/auth.mjs.map +1 -1
  12. package/resources/v1/auth/index.d.mts +3 -3
  13. package/resources/v1/auth/index.d.mts.map +1 -1
  14. package/resources/v1/auth/index.d.ts +3 -3
  15. package/resources/v1/auth/index.d.ts.map +1 -1
  16. package/resources/v1/auth/index.js.map +1 -1
  17. package/resources/v1/auth/index.mjs +3 -3
  18. package/resources/v1/auth/index.mjs.map +1 -1
  19. package/resources/v1/auth/login.d.mts +0 -65
  20. package/resources/v1/auth/login.d.mts.map +1 -1
  21. package/resources/v1/auth/login.d.ts +0 -65
  22. package/resources/v1/auth/login.d.ts.map +1 -1
  23. package/resources/v1/auth/login.js +0 -49
  24. package/resources/v1/auth/login.js.map +1 -1
  25. package/resources/v1/auth/login.mjs +0 -49
  26. package/resources/v1/auth/login.mjs.map +1 -1
  27. package/resources/v1/auth/number-2fa.d.mts +1 -53
  28. package/resources/v1/auth/number-2fa.d.mts.map +1 -1
  29. package/resources/v1/auth/number-2fa.d.ts +1 -53
  30. package/resources/v1/auth/number-2fa.d.ts.map +1 -1
  31. package/resources/v1/auth/number-2fa.js +0 -57
  32. package/resources/v1/auth/number-2fa.js.map +1 -1
  33. package/resources/v1/auth/number-2fa.mjs +0 -57
  34. package/resources/v1/auth/number-2fa.mjs.map +1 -1
  35. package/resources/v1/auth/organization-invites.d.mts +0 -9
  36. package/resources/v1/auth/organization-invites.d.mts.map +1 -1
  37. package/resources/v1/auth/organization-invites.d.ts +0 -9
  38. package/resources/v1/auth/organization-invites.d.ts.map +1 -1
  39. package/resources/v1/auth/organization-invites.js +0 -14
  40. package/resources/v1/auth/organization-invites.js.map +1 -1
  41. package/resources/v1/auth/organization-invites.mjs +0 -14
  42. package/resources/v1/auth/organization-invites.mjs.map +1 -1
  43. package/resources/v1/index.d.mts +3 -3
  44. package/resources/v1/index.d.mts.map +1 -1
  45. package/resources/v1/index.d.ts +3 -3
  46. package/resources/v1/index.d.ts.map +1 -1
  47. package/resources/v1/index.js.map +1 -1
  48. package/resources/v1/index.mjs +1 -1
  49. package/resources/v1/index.mjs.map +1 -1
  50. package/resources/v1/organizations/api-keys.d.mts +0 -23
  51. package/resources/v1/organizations/api-keys.d.mts.map +1 -1
  52. package/resources/v1/organizations/api-keys.d.ts +0 -23
  53. package/resources/v1/organizations/api-keys.d.ts.map +1 -1
  54. package/resources/v1/organizations/api-keys.js +0 -38
  55. package/resources/v1/organizations/api-keys.js.map +1 -1
  56. package/resources/v1/organizations/api-keys.mjs +0 -38
  57. package/resources/v1/organizations/api-keys.mjs.map +1 -1
  58. package/resources/v1/organizations/index.d.mts +3 -3
  59. package/resources/v1/organizations/index.d.mts.map +1 -1
  60. package/resources/v1/organizations/index.d.ts +3 -3
  61. package/resources/v1/organizations/index.d.ts.map +1 -1
  62. package/resources/v1/organizations/index.js.map +1 -1
  63. package/resources/v1/organizations/index.mjs +1 -1
  64. package/resources/v1/organizations/index.mjs.map +1 -1
  65. package/resources/v1/organizations/logo/logo.d.mts +0 -9
  66. package/resources/v1/organizations/logo/logo.d.mts.map +1 -1
  67. package/resources/v1/organizations/logo/logo.d.ts +0 -9
  68. package/resources/v1/organizations/logo/logo.d.ts.map +1 -1
  69. package/resources/v1/organizations/logo/logo.js +0 -13
  70. package/resources/v1/organizations/logo/logo.js.map +1 -1
  71. package/resources/v1/organizations/logo/logo.mjs +0 -13
  72. package/resources/v1/organizations/logo/logo.mjs.map +1 -1
  73. package/resources/v1/organizations/logo/upload.d.mts +0 -16
  74. package/resources/v1/organizations/logo/upload.d.mts.map +1 -1
  75. package/resources/v1/organizations/logo/upload.d.ts +0 -16
  76. package/resources/v1/organizations/logo/upload.d.ts.map +1 -1
  77. package/resources/v1/organizations/logo/upload.js +0 -25
  78. package/resources/v1/organizations/logo/upload.js.map +1 -1
  79. package/resources/v1/organizations/logo/upload.mjs +0 -25
  80. package/resources/v1/organizations/logo/upload.mjs.map +1 -1
  81. package/resources/v1/organizations/organizations.d.mts +4 -23
  82. package/resources/v1/organizations/organizations.d.mts.map +1 -1
  83. package/resources/v1/organizations/organizations.d.ts +4 -23
  84. package/resources/v1/organizations/organizations.d.ts.map +1 -1
  85. package/resources/v1/organizations/organizations.js +0 -27
  86. package/resources/v1/organizations/organizations.js.map +1 -1
  87. package/resources/v1/organizations/organizations.mjs +1 -28
  88. package/resources/v1/organizations/organizations.mjs.map +1 -1
  89. package/resources/v1/organizations/profile/index.d.mts +2 -2
  90. package/resources/v1/organizations/profile/index.d.mts.map +1 -1
  91. package/resources/v1/organizations/profile/index.d.ts +2 -2
  92. package/resources/v1/organizations/profile/index.d.ts.map +1 -1
  93. package/resources/v1/organizations/profile/index.js.map +1 -1
  94. package/resources/v1/organizations/profile/index.mjs +1 -1
  95. package/resources/v1/organizations/profile/index.mjs.map +1 -1
  96. package/resources/v1/organizations/profile/models.d.mts +0 -9
  97. package/resources/v1/organizations/profile/models.d.mts.map +1 -1
  98. package/resources/v1/organizations/profile/models.d.ts +0 -9
  99. package/resources/v1/organizations/profile/models.d.ts.map +1 -1
  100. package/resources/v1/organizations/profile/models.js +0 -13
  101. package/resources/v1/organizations/profile/models.js.map +1 -1
  102. package/resources/v1/organizations/profile/models.mjs +0 -13
  103. package/resources/v1/organizations/profile/models.mjs.map +1 -1
  104. package/resources/v1/organizations/profile/profile.d.mts +2 -22
  105. package/resources/v1/organizations/profile/profile.d.mts.map +1 -1
  106. package/resources/v1/organizations/profile/profile.d.ts +2 -22
  107. package/resources/v1/organizations/profile/profile.d.ts.map +1 -1
  108. package/resources/v1/organizations/profile/profile.js +0 -26
  109. package/resources/v1/organizations/profile/profile.js.map +1 -1
  110. package/resources/v1/organizations/profile/profile.mjs +0 -26
  111. package/resources/v1/organizations/profile/profile.mjs.map +1 -1
  112. package/resources/v1/organizations/profile/team.d.mts +0 -57
  113. package/resources/v1/organizations/profile/team.d.mts.map +1 -1
  114. package/resources/v1/organizations/profile/team.d.ts +0 -57
  115. package/resources/v1/organizations/profile/team.d.ts.map +1 -1
  116. package/resources/v1/organizations/profile/team.js +0 -80
  117. package/resources/v1/organizations/profile/team.js.map +1 -1
  118. package/resources/v1/organizations/profile/team.mjs +0 -80
  119. package/resources/v1/organizations/profile/team.mjs.map +1 -1
  120. package/resources/v1/organizations/team/index.d.mts +2 -2
  121. package/resources/v1/organizations/team/index.d.mts.map +1 -1
  122. package/resources/v1/organizations/team/index.d.ts +2 -2
  123. package/resources/v1/organizations/team/index.d.ts.map +1 -1
  124. package/resources/v1/organizations/team/index.js.map +1 -1
  125. package/resources/v1/organizations/team/index.mjs +1 -1
  126. package/resources/v1/organizations/team/index.mjs.map +1 -1
  127. package/resources/v1/organizations/team/invite.d.mts +0 -23
  128. package/resources/v1/organizations/team/invite.d.mts.map +1 -1
  129. package/resources/v1/organizations/team/invite.d.ts +0 -23
  130. package/resources/v1/organizations/team/invite.d.ts.map +1 -1
  131. package/resources/v1/organizations/team/invite.js +0 -29
  132. package/resources/v1/organizations/team/invite.js.map +1 -1
  133. package/resources/v1/organizations/team/invite.mjs +0 -29
  134. package/resources/v1/organizations/team/invite.mjs.map +1 -1
  135. package/resources/v1/organizations/team/team.d.mts +2 -64
  136. package/resources/v1/organizations/team/team.d.mts.map +1 -1
  137. package/resources/v1/organizations/team/team.d.ts +2 -64
  138. package/resources/v1/organizations/team/team.d.ts.map +1 -1
  139. package/resources/v1/organizations/team/team.js +0 -85
  140. package/resources/v1/organizations/team/team.js.map +1 -1
  141. package/resources/v1/organizations/team/team.mjs +0 -85
  142. package/resources/v1/organizations/team/team.mjs.map +1 -1
  143. package/resources/v1/organizations/theme.d.mts +0 -16
  144. package/resources/v1/organizations/theme.d.mts.map +1 -1
  145. package/resources/v1/organizations/theme.d.ts +0 -16
  146. package/resources/v1/organizations/theme.d.ts.map +1 -1
  147. package/resources/v1/organizations/theme.js +0 -25
  148. package/resources/v1/organizations/theme.js.map +1 -1
  149. package/resources/v1/organizations/theme.mjs +0 -25
  150. package/resources/v1/organizations/theme.mjs.map +1 -1
  151. package/resources/v1/organizations/usage.d.mts +0 -9
  152. package/resources/v1/organizations/usage.d.mts.map +1 -1
  153. package/resources/v1/organizations/usage.d.ts +0 -9
  154. package/resources/v1/organizations/usage.d.ts.map +1 -1
  155. package/resources/v1/organizations/usage.js +0 -14
  156. package/resources/v1/organizations/usage.js.map +1 -1
  157. package/resources/v1/organizations/usage.mjs +0 -14
  158. package/resources/v1/organizations/usage.mjs.map +1 -1
  159. package/resources/v1/usage.d.mts +1 -169
  160. package/resources/v1/usage.d.mts.map +1 -1
  161. package/resources/v1/usage.d.ts +1 -169
  162. package/resources/v1/usage.d.ts.map +1 -1
  163. package/resources/v1/usage.js +0 -45
  164. package/resources/v1/usage.js.map +1 -1
  165. package/resources/v1/usage.mjs +0 -45
  166. package/resources/v1/usage.mjs.map +1 -1
  167. package/resources/v1/v1.d.mts +6 -6
  168. package/resources/v1/v1.d.mts.map +1 -1
  169. package/resources/v1/v1.d.ts +6 -6
  170. package/resources/v1/v1.d.ts.map +1 -1
  171. package/resources/v1/v1.js.map +1 -1
  172. package/resources/v1/v1.mjs +2 -2
  173. package/resources/v1/v1.mjs.map +1 -1
  174. package/src/resources/v1/auth/auth.ts +9 -153
  175. package/src/resources/v1/auth/index.ts +3 -20
  176. package/src/resources/v1/auth/login.ts +1 -99
  177. package/src/resources/v1/auth/number-2fa.ts +1 -91
  178. package/src/resources/v1/auth/organization-invites.ts +1 -18
  179. package/src/resources/v1/index.ts +2 -10
  180. package/src/resources/v1/organizations/api-keys.ts +1 -44
  181. package/src/resources/v1/organizations/index.ts +3 -9
  182. package/src/resources/v1/organizations/logo/logo.ts +0 -16
  183. package/src/resources/v1/organizations/logo/upload.ts +1 -30
  184. package/src/resources/v1/organizations/organizations.ts +4 -55
  185. package/src/resources/v1/organizations/profile/index.ts +2 -8
  186. package/src/resources/v1/organizations/profile/models.ts +1 -17
  187. package/src/resources/v1/organizations/profile/profile.ts +2 -47
  188. package/src/resources/v1/organizations/profile/team.ts +1 -106
  189. package/src/resources/v1/organizations/team/index.ts +2 -8
  190. package/src/resources/v1/organizations/team/invite.ts +1 -40
  191. package/src/resources/v1/organizations/team/team.ts +2 -116
  192. package/src/resources/v1/organizations/theme.ts +1 -30
  193. package/src/resources/v1/organizations/usage.ts +1 -18
  194. package/src/resources/v1/usage.ts +0 -272
  195. package/src/resources/v1/v1.ts +5 -26
  196. package/src/version.ts +1 -1
  197. package/version.d.mts +1 -1
  198. package/version.d.ts +1 -1
  199. package/version.js +1 -1
  200. 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
@@ -24,5 +24,4 @@ const client = new StudyfetchSDK({
24
24
  apiKey: process.env['STUDYFETCH_SDK_API_KEY'], // This is the default and can be omitted
25
25
  });
26
26
 
27
- await client.v1.auth.login.authenticate({ email: 'user@example.com', password: 'password123' });
28
27
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyfetch/sdk",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "description": "The official TypeScript library for the Studyfetch SDK API",
5
5
  "author": "Studyfetch SDK <>",
6
6
  "types": "./index.d.ts",
@@ -1,8 +1,8 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as LoginAPI from "./login.mjs";
3
- import { Login, LoginAuthenticateParams, LoginVerify2faParams, LoginVerifyBackupCodeParams } from "./login.mjs";
3
+ import { Login } from "./login.mjs";
4
4
  import * as Number2faAPI from "./number-2fa.mjs";
5
- import { Number2fa, Number2faDisableParams, Number2faEnableParams, Number2faRegenerateBackupCodesParams, Number2faSendCodeParams } from "./number-2fa.mjs";
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.getProfile();
19
+ * await client.v1.auth.verifyResetToken();
18
20
  * ```
19
21
  */
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
- }
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 { type AuthRegisterNewUserParams as AuthRegisterNewUserParams, type AuthRegisterWithInviteParams as AuthRegisterWithInviteParams, type AuthRequestPasswordResetParams as AuthRequestPasswordResetParams, type AuthResetPasswordParams as AuthResetPasswordParams, };
105
- export { Login as Login, type LoginAuthenticateParams as LoginAuthenticateParams, type LoginVerify2faParams as LoginVerify2faParams, type LoginVerifyBackupCodeParams as LoginVerifyBackupCodeParams, };
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,uBAAuB,EAAE,oBAAoB,EAAE,2BAA2B,EAAE;OACrF,KAAK,YAAY;OACjB,EACL,SAAS,EACT,sBAAsB,EACtB,qBAAqB,EACrB,oCAAoC,EACpC,uBAAuB,EACxB;OACM,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;;;;;OAKG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOtD;;;;;;;;;;OAUG;IACH,eAAe,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UA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A2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EAAE,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CACvD"}
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, LoginAuthenticateParams, LoginVerify2faParams, LoginVerifyBackupCodeParams } from "./login.js";
3
+ import { Login } from "./login.js";
4
4
  import * as Number2faAPI from "./number-2fa.js";
5
- import { Number2fa, Number2faDisableParams, Number2faEnableParams, Number2faRegenerateBackupCodesParams, Number2faSendCodeParams } from "./number-2fa.js";
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.getProfile();
19
+ * await client.v1.auth.verifyResetToken();
18
20
  * ```
19
21
  */
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
- }
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 { type AuthRegisterNewUserParams as AuthRegisterNewUserParams, type AuthRegisterWithInviteParams as AuthRegisterWithInviteParams, type AuthRequestPasswordResetParams as AuthRequestPasswordResetParams, type AuthResetPasswordParams as AuthResetPasswordParams, };
105
- export { Login as Login, type LoginAuthenticateParams as LoginAuthenticateParams, type LoginVerify2faParams as LoginVerify2faParams, type LoginVerifyBackupCodeParams as LoginVerifyBackupCodeParams, };
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,uBAAuB,EAAE,oB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;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.getProfile();
26
+ * await client.v1.auth.verifyResetToken();
25
27
  * ```
26
28
  */
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,
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,sCAA4G;AAC5G,sEAA6C;AAC7C,gDAMsB;AACtB,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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AAC,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, } from "./number-2fa.mjs";
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.getProfile();
22
+ * await client.v1.auth.verifyResetToken();
21
23
  * ```
22
24
  */
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,
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,EAA8E;OACrF,KAAK,YAAY;OACjB,EACL,SAAS,GAKV;OACM,KAAK,sBAAsB;OAC3B,EAAE,mBAAmB,EAAE;OAEvB,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,UAAK,GA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AAS,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, type AuthRegisterNewUserParams, type AuthRegisterWithInviteParams, type AuthRequestPasswordResetParams, type AuthResetPasswordParams, } from "./auth.mjs";
2
- export { Login, type LoginAuthenticateParams, type LoginVerify2faParams, type LoginVerifyBackupCodeParams, } from "./login.mjs";
3
- export { Number2fa, type Number2faDisableParams, type Number2faEnableParams, type Number2faRegenerateBackupCodesParams, type Number2faSendCodeParams, } from "./number-2fa.mjs";
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,EACL,IAAI,EACJ,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,GAC7B;OACM,EACL,KAAK,EACL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,GACjC;OACM,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oCAAoC,EACzC,KAAK,uBAAuB,GAC7B;OACM,EAAE,mBAAmB,EAAE"}
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, type AuthRegisterNewUserParams, type AuthRegisterWithInviteParams, type AuthRequestPasswordResetParams, type AuthResetPasswordParams, } from "./auth.js";
2
- export { Login, type LoginAuthenticateParams, type LoginVerify2faParams, type LoginVerifyBackupCodeParams, } from "./login.js";
3
- export { Number2fa, type Number2faDisableParams, type Number2faEnableParams, type Number2faRegenerateBackupCodesParams, type Number2faSendCodeParams, } from "./number-2fa.js";
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,EACL,IAAI,EACJ,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,GAC7B;OACM,EACL,KAAK,EACL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,GACjC;OACM,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oCAAoC,EACzC,KAAK,uBAAuB,GAC7B;OACM,EAAE,mBAAmB,EAAE"}
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,kCAMgB;AALd,4FAAA,IAAI,OAAA;AAMN,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,8CAMsB;AALpB,uGAAA,SAAS,OAAA;AAMX,kEAA6D;AAApD,2HAAA,mBAAmB,OAAA"}
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, } from "./auth.mjs";
3
- export { Login, } from "./login.mjs";
4
- export { Number2fa, } from "./number-2fa.mjs";
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,EACL,IAAI,GAKL;OACM,EACL,KAAK,GAIN;OACM,EACL,SAAS,GAKV;OACM,EAAE,mBAAmB,EAAE"}
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;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,YAAY,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQvF;;;;;;;;OAQG;IACH,SAAS,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQjF;;;;;;;;OAQG;IACH,gBAAgB,CAAC,IAAI,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOhG;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
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"}