@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
@@ -10,19 +10,9 @@ import { Usage } from './usage';
10
10
  import * as LogoAPI from './logo/logo';
11
11
  import { Logo } from './logo/logo';
12
12
  import * as ProfileAPI from './profile/profile';
13
- import { Profile, ProfilePatchAllParams, UpdateOrganization } from './profile/profile';
13
+ import { Profile } from './profile/profile';
14
14
  import * as TeamAPI from './team/team';
15
- import {
16
- Team,
17
- TeamAcceptInviteParams,
18
- TeamDeleteParams,
19
- TeamResendInviteParams,
20
- TeamUpdateRoleParams,
21
- } from './team/team';
22
- import { APIPromise } from '../../../core/api-promise';
23
- import { buildHeaders } from '../../../internal/headers';
24
- import { RequestOptions } from '../../../internal/request-options';
25
- import { path } from '../../../internal/utils/path';
15
+ import { Team } from './team/team';
26
16
 
27
17
  export class Organizations extends APIResource {
28
18
  profile: ProfileAPI.Profile = new ProfileAPI.Profile(this._client);
@@ -31,37 +21,8 @@ export class Organizations extends APIResource {
31
21
  theme: ThemeAPI.Theme = new ThemeAPI.Theme(this._client);
32
22
  logo: LogoAPI.Logo = new LogoAPI.Logo(this._client);
33
23
  team: TeamAPI.Team = new TeamAPI.Team(this._client);
34
-
35
- /**
36
- * @example
37
- * ```ts
38
- * await client.v1.organizations.retrieve('id');
39
- * ```
40
- */
41
- retrieve(id: string, options?: RequestOptions): APIPromise<void> {
42
- return this._client.get(path`/api/v1/organizations/${id}`, {
43
- ...options,
44
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
45
- });
46
- }
47
-
48
- /**
49
- * @example
50
- * ```ts
51
- * await client.v1.organizations.update('id');
52
- * ```
53
- */
54
- update(id: string, body: OrganizationUpdateParams, options?: RequestOptions): APIPromise<void> {
55
- return this._client.put(path`/api/v1/organizations/${id}`, {
56
- body,
57
- ...options,
58
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
59
- });
60
- }
61
24
  }
62
25
 
63
- export interface OrganizationUpdateParams {}
64
-
65
26
  Organizations.Profile = Profile;
66
27
  Organizations.APIKeys = APIKeys;
67
28
  Organizations.Usage = Usage;
@@ -70,13 +31,7 @@ Organizations.Logo = Logo;
70
31
  Organizations.Team = Team;
71
32
 
72
33
  export declare namespace Organizations {
73
- export { type OrganizationUpdateParams as OrganizationUpdateParams };
74
-
75
- export {
76
- Profile as Profile,
77
- type UpdateOrganization as UpdateOrganization,
78
- type ProfilePatchAllParams as ProfilePatchAllParams,
79
- };
34
+ export { Profile as Profile };
80
35
 
81
36
  export { APIKeys as APIKeys };
82
37
 
@@ -86,11 +41,5 @@ export declare namespace Organizations {
86
41
 
87
42
  export { Logo as Logo };
88
43
 
89
- export {
90
- Team as Team,
91
- type TeamDeleteParams as TeamDeleteParams,
92
- type TeamAcceptInviteParams as TeamAcceptInviteParams,
93
- type TeamResendInviteParams as TeamResendInviteParams,
94
- type TeamUpdateRoleParams as TeamUpdateRoleParams,
95
- };
44
+ export { Team as Team };
96
45
  }
@@ -1,11 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { Models } from './models';
4
- export { Profile, type UpdateOrganization, type ProfilePatchAllParams } from './profile';
5
- export {
6
- Team,
7
- type InviteTeamMember,
8
- type UpdateMemberRole,
9
- type TeamInviteParams,
10
- type TeamUpdateRoleParams,
11
- } from './team';
4
+ export { Profile } from './profile';
5
+ export { Team } from './team';
@@ -1,21 +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 Models extends APIResource {
9
- /**
10
- * @example
11
- * ```ts
12
- * await client.v1.organizations.profile.models.retrieveAvailable();
13
- * ```
14
- */
15
- retrieveAvailable(options?: RequestOptions): APIPromise<void> {
16
- return this._client.get('/api/v1/organizations/profile/models/available', {
17
- ...options,
18
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
19
- });
20
- }
21
- }
5
+ export class Models extends APIResource {}
@@ -4,63 +4,18 @@ import { APIResource } from '../../../../core/resource';
4
4
  import * as ModelsAPI from './models';
5
5
  import { Models } from './models';
6
6
  import * as TeamAPI from './team';
7
- import { InviteTeamMember, Team, TeamInviteParams, TeamUpdateRoleParams, UpdateMemberRole } from './team';
8
- import { APIPromise } from '../../../../core/api-promise';
9
- import { buildHeaders } from '../../../../internal/headers';
10
- import { RequestOptions } from '../../../../internal/request-options';
7
+ import { Team } from './team';
11
8
 
12
9
  export class Profile extends APIResource {
13
10
  models: ModelsAPI.Models = new ModelsAPI.Models(this._client);
14
11
  team: TeamAPI.Team = new TeamAPI.Team(this._client);
15
-
16
- /**
17
- * @example
18
- * ```ts
19
- * await client.v1.organizations.profile.list();
20
- * ```
21
- */
22
- list(options?: RequestOptions): APIPromise<void> {
23
- return this._client.get('/api/v1/organizations/profile', {
24
- ...options,
25
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
26
- });
27
- }
28
-
29
- /**
30
- * @example
31
- * ```ts
32
- * await client.v1.organizations.profile.patchAll();
33
- * ```
34
- */
35
- patchAll(body: ProfilePatchAllParams, options?: RequestOptions): APIPromise<void> {
36
- return this._client.patch('/api/v1/organizations/profile', {
37
- body,
38
- ...options,
39
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
40
- });
41
- }
42
12
  }
43
13
 
44
- export type UpdateOrganization = unknown;
45
-
46
- export interface ProfilePatchAllParams {}
47
-
48
14
  Profile.Models = Models;
49
15
  Profile.Team = Team;
50
16
 
51
17
  export declare namespace Profile {
52
- export {
53
- type UpdateOrganization as UpdateOrganization,
54
- type ProfilePatchAllParams as ProfilePatchAllParams,
55
- };
56
-
57
18
  export { Models as Models };
58
19
 
59
- export {
60
- Team as Team,
61
- type InviteTeamMember as InviteTeamMember,
62
- type UpdateMemberRole as UpdateMemberRole,
63
- type TeamInviteParams as TeamInviteParams,
64
- type TeamUpdateRoleParams as TeamUpdateRoleParams,
65
- };
20
+ export { Team as Team };
66
21
  }
@@ -1,110 +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 Team extends APIResource {
10
- /**
11
- * @example
12
- * ```ts
13
- * await client.v1.organizations.profile.team.list();
14
- * ```
15
- */
16
- list(options?: RequestOptions): APIPromise<void> {
17
- return this._client.get('/api/v1/organizations/profile/team', {
18
- ...options,
19
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
20
- });
21
- }
22
-
23
- /**
24
- * @example
25
- * ```ts
26
- * await client.v1.organizations.profile.team.delete('email');
27
- * ```
28
- */
29
- delete(email: string, options?: RequestOptions): APIPromise<void> {
30
- return this._client.delete(path`/api/v1/organizations/profile/team/${email}`, {
31
- ...options,
32
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
33
- });
34
- }
35
-
36
- /**
37
- * @example
38
- * ```ts
39
- * await client.v1.organizations.profile.team.invite();
40
- * ```
41
- */
42
- invite(body: TeamInviteParams, options?: RequestOptions): APIPromise<void> {
43
- return this._client.post('/api/v1/organizations/profile/team/invite', {
44
- body,
45
- ...options,
46
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
47
- });
48
- }
49
-
50
- /**
51
- * @example
52
- * ```ts
53
- * await client.v1.organizations.profile.team.resendInvite(
54
- * 'email',
55
- * );
56
- * ```
57
- */
58
- resendInvite(email: string, options?: RequestOptions): APIPromise<void> {
59
- return this._client.post(path`/api/v1/organizations/profile/team/${email}/resend-invite`, {
60
- ...options,
61
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
62
- });
63
- }
64
-
65
- /**
66
- * @example
67
- * ```ts
68
- * await client.v1.organizations.profile.team.retrieveDetailed();
69
- * ```
70
- */
71
- retrieveDetailed(options?: RequestOptions): APIPromise<void> {
72
- return this._client.get('/api/v1/organizations/profile/team/detailed', {
73
- ...options,
74
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
75
- });
76
- }
77
-
78
- /**
79
- * @example
80
- * ```ts
81
- * await client.v1.organizations.profile.team.updateRole(
82
- * 'email',
83
- * );
84
- * ```
85
- */
86
- updateRole(email: string, body: TeamUpdateRoleParams, options?: RequestOptions): APIPromise<void> {
87
- return this._client.put(path`/api/v1/organizations/profile/team/${email}/role`, {
88
- body,
89
- ...options,
90
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
91
- });
92
- }
93
- }
94
-
95
- export type InviteTeamMember = unknown;
96
-
97
- export type UpdateMemberRole = unknown;
98
-
99
- export interface TeamInviteParams {}
100
-
101
- export interface TeamUpdateRoleParams {}
102
-
103
- export declare namespace Team {
104
- export {
105
- type InviteTeamMember as InviteTeamMember,
106
- type UpdateMemberRole as UpdateMemberRole,
107
- type TeamInviteParams as TeamInviteParams,
108
- type TeamUpdateRoleParams as TeamUpdateRoleParams,
109
- };
110
- }
5
+ export class Team extends APIResource {}
@@ -1,10 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Invite, type InviteCreateParams } from './invite';
4
- export {
5
- Team,
6
- type TeamDeleteParams,
7
- type TeamAcceptInviteParams,
8
- type TeamResendInviteParams,
9
- type TeamUpdateRoleParams,
10
- } from './team';
3
+ export { Invite } from './invite';
4
+ export { Team } from './team';
@@ -1,44 +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 Invite extends APIResource {
10
- /**
11
- * @example
12
- * ```ts
13
- * await client.v1.organizations.team.invite.create('id');
14
- * ```
15
- */
16
- create(id: string, body: InviteCreateParams, options?: RequestOptions): APIPromise<void> {
17
- return this._client.post(path`/api/v1/organizations/${id}/team/invite`, {
18
- body,
19
- ...options,
20
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
21
- });
22
- }
23
-
24
- /**
25
- * @example
26
- * ```ts
27
- * await client.v1.organizations.team.invite.retrievePreview(
28
- * 'token',
29
- * );
30
- * ```
31
- */
32
- retrievePreview(token: string, options?: RequestOptions): APIPromise<void> {
33
- return this._client.get(path`/api/v1/organizations/team/invite/${token}/preview`, {
34
- ...options,
35
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
36
- });
37
- }
38
- }
39
-
40
- export interface InviteCreateParams {}
41
-
42
- export declare namespace Invite {
43
- export { type InviteCreateParams as InviteCreateParams };
44
- }
5
+ export class Invite extends APIResource {}
@@ -2,128 +2,14 @@
2
2
 
3
3
  import { APIResource } from '../../../../core/resource';
4
4
  import * as InviteAPI from './invite';
5
- import { Invite, InviteCreateParams } from './invite';
6
- import { APIPromise } from '../../../../core/api-promise';
7
- import { buildHeaders } from '../../../../internal/headers';
8
- import { RequestOptions } from '../../../../internal/request-options';
9
- import { path } from '../../../../internal/utils/path';
5
+ import { Invite } from './invite';
10
6
 
11
7
  export class Team extends APIResource {
12
8
  invite: InviteAPI.Invite = new InviteAPI.Invite(this._client);
13
-
14
- /**
15
- * @example
16
- * ```ts
17
- * await client.v1.organizations.team.list('id');
18
- * ```
19
- */
20
- list(id: string, options?: RequestOptions): APIPromise<void> {
21
- return this._client.get(path`/api/v1/organizations/${id}/team`, {
22
- ...options,
23
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
24
- });
25
- }
26
-
27
- /**
28
- * @example
29
- * ```ts
30
- * await client.v1.organizations.team.delete('email', {
31
- * id: 'id',
32
- * });
33
- * ```
34
- */
35
- delete(email: string, params: TeamDeleteParams, options?: RequestOptions): APIPromise<void> {
36
- const { id } = params;
37
- return this._client.delete(path`/api/v1/organizations/${id}/team/${email}`, {
38
- ...options,
39
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
40
- });
41
- }
42
-
43
- /**
44
- * @example
45
- * ```ts
46
- * await client.v1.organizations.team.acceptInvite();
47
- * ```
48
- */
49
- acceptInvite(body: TeamAcceptInviteParams, options?: RequestOptions): APIPromise<void> {
50
- return this._client.post('/api/v1/organizations/team/accept-invite', {
51
- body,
52
- ...options,
53
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
54
- });
55
- }
56
-
57
- /**
58
- * @example
59
- * ```ts
60
- * await client.v1.organizations.team.resendInvite('email', {
61
- * id: 'id',
62
- * });
63
- * ```
64
- */
65
- resendInvite(email: string, params: TeamResendInviteParams, options?: RequestOptions): APIPromise<void> {
66
- const { id } = params;
67
- return this._client.post(path`/api/v1/organizations/${id}/team/${email}/resend-invite`, {
68
- ...options,
69
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
70
- });
71
- }
72
-
73
- /**
74
- * @example
75
- * ```ts
76
- * await client.v1.organizations.team.retrieveDetailed('id');
77
- * ```
78
- */
79
- retrieveDetailed(id: string, options?: RequestOptions): APIPromise<void> {
80
- return this._client.get(path`/api/v1/organizations/${id}/team/detailed`, {
81
- ...options,
82
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
83
- });
84
- }
85
-
86
- /**
87
- * @example
88
- * ```ts
89
- * await client.v1.organizations.team.updateRole('email', {
90
- * id: 'id',
91
- * });
92
- * ```
93
- */
94
- updateRole(email: string, params: TeamUpdateRoleParams, options?: RequestOptions): APIPromise<void> {
95
- const { id, ...body } = params;
96
- return this._client.put(path`/api/v1/organizations/${id}/team/${email}/role`, {
97
- body,
98
- ...options,
99
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
100
- });
101
- }
102
- }
103
-
104
- export interface TeamDeleteParams {
105
- id: string;
106
- }
107
-
108
- export interface TeamAcceptInviteParams {}
109
-
110
- export interface TeamResendInviteParams {
111
- id: string;
112
- }
113
-
114
- export interface TeamUpdateRoleParams {
115
- id: string;
116
9
  }
117
10
 
118
11
  Team.Invite = Invite;
119
12
 
120
13
  export declare namespace Team {
121
- export {
122
- type TeamDeleteParams as TeamDeleteParams,
123
- type TeamAcceptInviteParams as TeamAcceptInviteParams,
124
- type TeamResendInviteParams as TeamResendInviteParams,
125
- type TeamUpdateRoleParams as TeamUpdateRoleParams,
126
- };
127
-
128
- export { Invite as Invite, type InviteCreateParams as InviteCreateParams };
14
+ export { Invite as Invite };
129
15
  }
@@ -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 Theme extends APIResource {
9
- /**
10
- * @example
11
- * ```ts
12
- * await client.v1.organizations.theme.create();
13
- * ```
14
- */
15
- create(options?: RequestOptions): APIPromise<void> {
16
- return this._client.put('/api/v1/organizations/theme', {
17
- ...options,
18
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
19
- });
20
- }
21
-
22
- /**
23
- * @example
24
- * ```ts
25
- * await client.v1.organizations.theme.list();
26
- * ```
27
- */
28
- list(options?: RequestOptions): APIPromise<void> {
29
- return this._client.get('/api/v1/organizations/theme', {
30
- ...options,
31
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
32
- });
33
- }
34
- }
5
+ export class Theme extends APIResource {}
@@ -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 Usage extends APIResource {
10
- /**
11
- * @example
12
- * ```ts
13
- * await client.v1.organizations.usage.list('id');
14
- * ```
15
- */
16
- list(id: string, options?: RequestOptions): APIPromise<void> {
17
- return this._client.get(path`/api/v1/organizations/${id}/usage`, {
18
- ...options,
19
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
20
- });
21
- }
22
- }
5
+ export class Usage extends APIResource {}