@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
@@ -2,15 +2,9 @@
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import * as LoginAPI from './login';
5
- import { Login, LoginAuthenticateParams, LoginVerify2faParams, LoginVerifyBackupCodeParams } from './login';
5
+ import { Login } from './login';
6
6
  import * as Number2faAPI from './number-2fa';
7
- import {
8
- Number2fa,
9
- Number2faDisableParams,
10
- Number2faEnableParams,
11
- Number2faRegenerateBackupCodesParams,
12
- Number2faSendCodeParams,
13
- } from './number-2fa';
7
+ import { Number2fa, Number2faSendCodeParams } from './number-2fa';
14
8
  import * as OrganizationInvitesAPI from './organization-invites';
15
9
  import { OrganizationInvites } from './organization-invites';
16
10
  import { APIPromise } from '../../../core/api-promise';
@@ -24,139 +18,19 @@ export class Auth extends APIResource {
24
18
  new OrganizationInvitesAPI.OrganizationInvites(this._client);
25
19
 
26
20
  /**
21
+ * Verify password reset token
22
+ *
27
23
  * @example
28
24
  * ```ts
29
- * await client.v1.auth.getProfile();
25
+ * await client.v1.auth.verifyResetToken();
30
26
  * ```
31
27
  */
32
- getProfile(options?: RequestOptions): APIPromise<void> {
33
- return this._client.get('/api/v1/auth/profile', {
28
+ verifyResetToken(options?: RequestOptions): APIPromise<void> {
29
+ return this._client.post('/api/v1/auth/verify-reset-token', {
34
30
  ...options,
35
31
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
36
32
  });
37
33
  }
38
-
39
- /**
40
- * @example
41
- * ```ts
42
- * await client.v1.auth.registerNewUser({
43
- * email: 'user@example.com',
44
- * name: 'John Doe',
45
- * organizationName: 'Acme Corp',
46
- * password: 'password123',
47
- * });
48
- * ```
49
- */
50
- registerNewUser(body: AuthRegisterNewUserParams, options?: RequestOptions): APIPromise<void> {
51
- return this._client.post('/api/v1/auth/register', {
52
- body,
53
- ...options,
54
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
55
- });
56
- }
57
-
58
- /**
59
- * @example
60
- * ```ts
61
- * await client.v1.auth.registerOrganization();
62
- * ```
63
- */
64
- registerOrganization(options?: RequestOptions): APIPromise<void> {
65
- return this._client.post('/api/v1/auth/register-organization', {
66
- ...options,
67
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
68
- });
69
- }
70
-
71
- /**
72
- * @example
73
- * ```ts
74
- * await client.v1.auth.registerWithInvite();
75
- * ```
76
- */
77
- registerWithInvite(body: AuthRegisterWithInviteParams, options?: RequestOptions): APIPromise<void> {
78
- return this._client.post('/api/v1/auth/register-with-invite', {
79
- body,
80
- ...options,
81
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
82
- });
83
- }
84
-
85
- /**
86
- * @example
87
- * ```ts
88
- * await client.v1.auth.requestPasswordReset({
89
- * email: 'user@example.com',
90
- * });
91
- * ```
92
- */
93
- requestPasswordReset(body: AuthRequestPasswordResetParams, options?: RequestOptions): APIPromise<void> {
94
- return this._client.post('/api/v1/auth/forgot-password', {
95
- body,
96
- ...options,
97
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
98
- });
99
- }
100
-
101
- /**
102
- * @example
103
- * ```ts
104
- * await client.v1.auth.resetPassword({
105
- * token: 'reset-token-uuid',
106
- * newPassword: 'newPassword123',
107
- * });
108
- * ```
109
- */
110
- resetPassword(body: AuthResetPasswordParams, options?: RequestOptions): APIPromise<void> {
111
- return this._client.post('/api/v1/auth/reset-password', {
112
- body,
113
- ...options,
114
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
115
- });
116
- }
117
- }
118
-
119
- export interface AuthRegisterNewUserParams {
120
- /**
121
- * User email address
122
- */
123
- email: string;
124
-
125
- /**
126
- * User full name
127
- */
128
- name: string;
129
-
130
- /**
131
- * Organization name
132
- */
133
- organizationName: string;
134
-
135
- /**
136
- * User password
137
- */
138
- password: string;
139
- }
140
-
141
- export interface AuthRegisterWithInviteParams {}
142
-
143
- export interface AuthRequestPasswordResetParams {
144
- /**
145
- * Email address to send reset link
146
- */
147
- email: string;
148
- }
149
-
150
- export interface AuthResetPasswordParams {
151
- /**
152
- * Password reset token from email
153
- */
154
- token: string;
155
-
156
- /**
157
- * New password
158
- */
159
- newPassword: string;
160
34
  }
161
35
 
162
36
  Auth.Login = Login;
@@ -164,27 +38,9 @@ Auth.Number2fa = Number2fa;
164
38
  Auth.OrganizationInvites = OrganizationInvites;
165
39
 
166
40
  export declare namespace Auth {
167
- export {
168
- type AuthRegisterNewUserParams as AuthRegisterNewUserParams,
169
- type AuthRegisterWithInviteParams as AuthRegisterWithInviteParams,
170
- type AuthRequestPasswordResetParams as AuthRequestPasswordResetParams,
171
- type AuthResetPasswordParams as AuthResetPasswordParams,
172
- };
173
-
174
- export {
175
- Login as Login,
176
- type LoginAuthenticateParams as LoginAuthenticateParams,
177
- type LoginVerify2faParams as LoginVerify2faParams,
178
- type LoginVerifyBackupCodeParams as LoginVerifyBackupCodeParams,
179
- };
41
+ export { Login as Login };
180
42
 
181
- export {
182
- Number2fa as Number2fa,
183
- type Number2faDisableParams as Number2faDisableParams,
184
- type Number2faEnableParams as Number2faEnableParams,
185
- type Number2faRegenerateBackupCodesParams as Number2faRegenerateBackupCodesParams,
186
- type Number2faSendCodeParams as Number2faSendCodeParams,
187
- };
43
+ export { Number2fa as Number2fa, type Number2faSendCodeParams as Number2faSendCodeParams };
188
44
 
189
45
  export { OrganizationInvites as OrganizationInvites };
190
46
  }
@@ -1,23 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export {
4
- Auth,
5
- type AuthRegisterNewUserParams,
6
- type AuthRegisterWithInviteParams,
7
- type AuthRequestPasswordResetParams,
8
- type AuthResetPasswordParams,
9
- } from './auth';
10
- export {
11
- Login,
12
- type LoginAuthenticateParams,
13
- type LoginVerify2faParams,
14
- type LoginVerifyBackupCodeParams,
15
- } from './login';
16
- export {
17
- Number2fa,
18
- type Number2faDisableParams,
19
- type Number2faEnableParams,
20
- type Number2faRegenerateBackupCodesParams,
21
- type Number2faSendCodeParams,
22
- } from './number-2fa';
3
+ export { Auth } from './auth';
4
+ export { Login } from './login';
5
+ export { Number2fa, type Number2faSendCodeParams } from './number-2fa';
23
6
  export { OrganizationInvites } from './organization-invites';
@@ -1,103 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { buildHeaders } from '../../../internal/headers';
6
- import { RequestOptions } from '../../../internal/request-options';
7
4
 
8
- export class Login extends APIResource {
9
- /**
10
- * @example
11
- * ```ts
12
- * await client.v1.auth.login.authenticate({
13
- * email: 'user@example.com',
14
- * password: 'password123',
15
- * });
16
- * ```
17
- */
18
- authenticate(body: LoginAuthenticateParams, options?: RequestOptions): APIPromise<void> {
19
- return this._client.post('/api/v1/auth/login', {
20
- body,
21
- ...options,
22
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
23
- });
24
- }
25
-
26
- /**
27
- * @example
28
- * ```ts
29
- * await client.v1.auth.login.verify2fa({
30
- * code: '123456',
31
- * email: 'user@example.com',
32
- * });
33
- * ```
34
- */
35
- verify2fa(body: LoginVerify2faParams, options?: RequestOptions): APIPromise<void> {
36
- return this._client.post('/api/v1/auth/login/verify-2fa', {
37
- body,
38
- ...options,
39
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
40
- });
41
- }
42
-
43
- /**
44
- * @example
45
- * ```ts
46
- * await client.v1.auth.login.verifyBackupCode({
47
- * backupCode: 'ABCD-EFGH-IJKL',
48
- * email: 'user@example.com',
49
- * });
50
- * ```
51
- */
52
- verifyBackupCode(body: LoginVerifyBackupCodeParams, options?: RequestOptions): APIPromise<void> {
53
- return this._client.post('/api/v1/auth/login/verify-backup-code', {
54
- body,
55
- ...options,
56
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
57
- });
58
- }
59
- }
60
-
61
- export interface LoginAuthenticateParams {
62
- /**
63
- * User email address
64
- */
65
- email: string;
66
-
67
- /**
68
- * User password
69
- */
70
- password: string;
71
- }
72
-
73
- export interface LoginVerify2faParams {
74
- /**
75
- * 6-digit verification code
76
- */
77
- code: string;
78
-
79
- /**
80
- * User email address
81
- */
82
- email: string;
83
- }
84
-
85
- export interface LoginVerifyBackupCodeParams {
86
- /**
87
- * Backup code
88
- */
89
- backupCode: string;
90
-
91
- /**
92
- * User email address
93
- */
94
- email: string;
95
- }
96
-
97
- export declare namespace Login {
98
- export {
99
- type LoginAuthenticateParams as LoginAuthenticateParams,
100
- type LoginVerify2faParams as LoginVerify2faParams,
101
- type LoginVerifyBackupCodeParams as LoginVerifyBackupCodeParams,
102
- };
103
- }
5
+ export class Login extends APIResource {}
@@ -6,70 +6,6 @@ import { buildHeaders } from '../../../internal/headers';
6
6
  import { RequestOptions } from '../../../internal/request-options';
7
7
 
8
8
  export class Number2fa extends APIResource {
9
- /**
10
- * @example
11
- * ```ts
12
- * await client.v1.auth.number2fa.disable({
13
- * password: 'password123',
14
- * });
15
- * ```
16
- */
17
- disable(body: Number2faDisableParams, options?: RequestOptions): APIPromise<void> {
18
- return this._client.post('/api/v1/auth/2fa/disable', {
19
- body,
20
- ...options,
21
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
22
- });
23
- }
24
-
25
- /**
26
- * @example
27
- * ```ts
28
- * await client.v1.auth.number2fa.enable({
29
- * password: 'password123',
30
- * });
31
- * ```
32
- */
33
- enable(body: Number2faEnableParams, options?: RequestOptions): APIPromise<void> {
34
- return this._client.post('/api/v1/auth/2fa/enable', {
35
- body,
36
- ...options,
37
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
38
- });
39
- }
40
-
41
- /**
42
- * @example
43
- * ```ts
44
- * await client.v1.auth.number2fa.getStatus();
45
- * ```
46
- */
47
- getStatus(options?: RequestOptions): APIPromise<void> {
48
- return this._client.get('/api/v1/auth/2fa/status', {
49
- ...options,
50
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
51
- });
52
- }
53
-
54
- /**
55
- * @example
56
- * ```ts
57
- * await client.v1.auth.number2fa.regenerateBackupCodes({
58
- * password: 'password123',
59
- * });
60
- * ```
61
- */
62
- regenerateBackupCodes(
63
- body: Number2faRegenerateBackupCodesParams,
64
- options?: RequestOptions,
65
- ): APIPromise<void> {
66
- return this._client.post('/api/v1/auth/2fa/regenerate-backup-codes', {
67
- body,
68
- ...options,
69
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
70
- });
71
- }
72
-
73
9
  /**
74
10
  * @example
75
11
  * ```ts
@@ -87,27 +23,6 @@ export class Number2fa extends APIResource {
87
23
  }
88
24
  }
89
25
 
90
- export interface Number2faDisableParams {
91
- /**
92
- * User password for verification
93
- */
94
- password: string;
95
- }
96
-
97
- export interface Number2faEnableParams {
98
- /**
99
- * User password for verification
100
- */
101
- password: string;
102
- }
103
-
104
- export interface Number2faRegenerateBackupCodesParams {
105
- /**
106
- * User password for verification
107
- */
108
- password: string;
109
- }
110
-
111
26
  export interface Number2faSendCodeParams {
112
27
  /**
113
28
  * Email to send verification code
@@ -116,10 +31,5 @@ export interface Number2faSendCodeParams {
116
31
  }
117
32
 
118
33
  export declare namespace Number2fa {
119
- export {
120
- type Number2faDisableParams as Number2faDisableParams,
121
- type Number2faEnableParams as Number2faEnableParams,
122
- type Number2faRegenerateBackupCodesParams as Number2faRegenerateBackupCodesParams,
123
- type Number2faSendCodeParams as Number2faSendCodeParams,
124
- };
34
+ export { type Number2faSendCodeParams as Number2faSendCodeParams };
125
35
  }
@@ -1,22 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { buildHeaders } from '../../../internal/headers';
6
- import { RequestOptions } from '../../../internal/request-options';
7
- import { path } from '../../../internal/utils/path';
8
4
 
9
- export class OrganizationInvites extends APIResource {
10
- /**
11
- * @example
12
- * ```ts
13
- * await client.v1.auth.organizationInvites.preview('token');
14
- * ```
15
- */
16
- preview(token: string, options?: RequestOptions): APIPromise<void> {
17
- return this._client.get(path`/api/v1/auth/organization-invites/preview/${token}`, {
18
- ...options,
19
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
20
- });
21
- }
22
- }
5
+ export class OrganizationInvites extends APIResource {}
@@ -6,13 +6,7 @@ export {
6
6
  type AudioRecapCreateParams,
7
7
  type AudioRecapAskQuestionParams,
8
8
  } from './audio-recaps/index';
9
- export {
10
- Auth,
11
- type AuthRegisterNewUserParams,
12
- type AuthRegisterWithInviteParams,
13
- type AuthRequestPasswordResetParams,
14
- type AuthResetPasswordParams,
15
- } from './auth/index';
9
+ export { Auth } from './auth/index';
16
10
  export {
17
11
  Chat,
18
12
  type ChatRetrieveSessionParams,
@@ -54,7 +48,7 @@ export {
54
48
  type MaterialListParams,
55
49
  type MaterialGetDownloadURLParams,
56
50
  } from './materials/index';
57
- export { Organizations, type OrganizationUpdateParams } from './organizations/index';
51
+ export { Organizations } from './organizations/index';
58
52
  export { Scenarios, type ScenarioCreateParams, type ScenarioUpdateParams } from './scenarios/index';
59
53
  export {
60
54
  Tests,
@@ -69,7 +63,5 @@ export {
69
63
  type UsageGetStatsParams,
70
64
  type UsageGetSummaryParams,
71
65
  type UsageListEventsParams,
72
- type UsageTrackChatParams,
73
- type UsageTrackEventParams,
74
66
  } from './usage';
75
67
  export { V1 } from './v1';
@@ -1,48 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { buildHeaders } from '../../../internal/headers';
6
- import { RequestOptions } from '../../../internal/request-options';
7
- import { path } from '../../../internal/utils/path';
8
4
 
9
- export class APIKeys extends APIResource {
10
- /**
11
- * @example
12
- * ```ts
13
- * await client.v1.organizations.apiKeys.delete('keyId');
14
- * ```
15
- */
16
- delete(keyID: string, options?: RequestOptions): APIPromise<void> {
17
- return this._client.delete(path`/api/v1/organizations/api-keys/${keyID}`, {
18
- ...options,
19
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
20
- });
21
- }
22
-
23
- /**
24
- * @example
25
- * ```ts
26
- * await client.v1.organizations.apiKeys.apiKeys();
27
- * ```
28
- */
29
- apiKeys(options?: RequestOptions): APIPromise<void> {
30
- return this._client.post('/api/v1/organizations/api-keys', {
31
- ...options,
32
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
33
- });
34
- }
35
-
36
- /**
37
- * @example
38
- * ```ts
39
- * await client.v1.organizations.apiKeys.retrieveAPIKeys();
40
- * ```
41
- */
42
- retrieveAPIKeys(options?: RequestOptions): APIPromise<void> {
43
- return this._client.get('/api/v1/organizations/api-keys', {
44
- ...options,
45
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
46
- });
47
- }
48
- }
5
+ export class APIKeys extends APIResource {}
@@ -2,14 +2,8 @@
2
2
 
3
3
  export { APIKeys } from './api-keys';
4
4
  export { Logo } from './logo/index';
5
- export { Organizations, type OrganizationUpdateParams } from './organizations';
6
- export { Profile, type UpdateOrganization, type ProfilePatchAllParams } from './profile/index';
7
- export {
8
- Team,
9
- type TeamDeleteParams,
10
- type TeamAcceptInviteParams,
11
- type TeamResendInviteParams,
12
- type TeamUpdateRoleParams,
13
- } from './team/index';
5
+ export { Organizations } from './organizations';
6
+ export { Profile } from './profile/index';
7
+ export { Team } from './team/index';
14
8
  export { Theme } from './theme';
15
9
  export { Usage } from './usage';
@@ -3,25 +3,9 @@
3
3
  import { APIResource } from '../../../../core/resource';
4
4
  import * as UploadAPI from './upload';
5
5
  import { Upload } from './upload';
6
- import { APIPromise } from '../../../../core/api-promise';
7
- import { buildHeaders } from '../../../../internal/headers';
8
- import { RequestOptions } from '../../../../internal/request-options';
9
6
 
10
7
  export class Logo extends APIResource {
11
8
  upload: UploadAPI.Upload = new UploadAPI.Upload(this._client);
12
-
13
- /**
14
- * @example
15
- * ```ts
16
- * await client.v1.organizations.logo.deleteAll();
17
- * ```
18
- */
19
- deleteAll(options?: RequestOptions): APIPromise<void> {
20
- return this._client.delete('/api/v1/organizations/logo', {
21
- ...options,
22
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
23
- });
24
- }
25
9
  }
26
10
 
27
11
  Logo.Upload = Upload;
@@ -1,34 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../../core/resource';
4
- import { APIPromise } from '../../../../core/api-promise';
5
- import { buildHeaders } from '../../../../internal/headers';
6
- import { RequestOptions } from '../../../../internal/request-options';
7
4
 
8
- export class Upload extends APIResource {
9
- /**
10
- * @example
11
- * ```ts
12
- * await client.v1.organizations.logo.upload.complete();
13
- * ```
14
- */
15
- complete(options?: RequestOptions): APIPromise<void> {
16
- return this._client.post('/api/v1/organizations/logo/upload/complete', {
17
- ...options,
18
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
19
- });
20
- }
21
-
22
- /**
23
- * @example
24
- * ```ts
25
- * await client.v1.organizations.logo.upload.presignedURL();
26
- * ```
27
- */
28
- presignedURL(options?: RequestOptions): APIPromise<void> {
29
- return this._client.post('/api/v1/organizations/logo/upload/presigned-url', {
30
- ...options,
31
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
32
- });
33
- }
34
- }
5
+ export class Upload extends APIResource {}