frameio 4.1.1 → 4.2.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/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +6 -0
  3. package/dist/cjs/Client.js +34 -24
  4. package/dist/cjs/api/resources/customActions/client/Client.d.ts +145 -0
  5. package/dist/cjs/api/resources/customActions/client/Client.js +443 -0
  6. package/dist/cjs/api/resources/customActions/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/customActions/client/index.js +17 -0
  8. package/dist/cjs/api/resources/customActions/client/requests/ActionCreateParams.d.ts +31 -0
  9. package/dist/cjs/api/resources/customActions/client/requests/ActionCreateParams.js +3 -0
  10. package/dist/cjs/api/resources/customActions/client/requests/ActionUpdateParams.d.ts +35 -0
  11. package/dist/cjs/api/resources/customActions/client/requests/ActionUpdateParams.js +3 -0
  12. package/dist/cjs/api/resources/customActions/client/requests/ActionsIndexRequest.d.ts +21 -0
  13. package/dist/cjs/api/resources/customActions/client/requests/ActionsIndexRequest.js +3 -0
  14. package/dist/cjs/api/resources/customActions/client/requests/ActionsShowRequest.d.ts +9 -0
  15. package/dist/cjs/api/resources/customActions/client/requests/ActionsShowRequest.js +3 -0
  16. package/dist/cjs/api/resources/customActions/client/requests/index.d.ts +4 -0
  17. package/dist/cjs/api/resources/customActions/client/requests/index.js +2 -0
  18. package/dist/cjs/api/resources/customActions/exports.d.ts +2 -0
  19. package/dist/cjs/api/resources/customActions/exports.js +21 -0
  20. package/dist/cjs/api/resources/customActions/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/customActions/index.js +17 -0
  22. package/dist/cjs/api/resources/files/client/Client.d.ts +1 -1
  23. package/dist/cjs/api/resources/files/client/Client.js +1 -1
  24. package/dist/cjs/api/resources/groups/client/Client.d.ts +116 -0
  25. package/dist/cjs/api/resources/groups/client/Client.js +368 -0
  26. package/dist/cjs/api/resources/groups/client/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/groups/client/index.js +17 -0
  28. package/dist/cjs/api/resources/groups/client/requests/CreateGroupParams.d.ts +20 -0
  29. package/dist/cjs/api/resources/groups/client/requests/CreateGroupParams.js +3 -0
  30. package/dist/cjs/api/resources/groups/client/requests/GroupsIndexRequest.d.ts +24 -0
  31. package/dist/cjs/api/resources/groups/client/requests/GroupsIndexRequest.js +3 -0
  32. package/dist/cjs/api/resources/groups/client/requests/GroupsShowRequest.d.ts +9 -0
  33. package/dist/cjs/api/resources/groups/client/requests/GroupsShowRequest.js +3 -0
  34. package/dist/cjs/api/resources/groups/client/requests/UpdateGroupParams.d.ts +20 -0
  35. package/dist/cjs/api/resources/groups/client/requests/UpdateGroupParams.js +3 -0
  36. package/dist/cjs/api/resources/groups/client/requests/index.d.ts +4 -0
  37. package/dist/cjs/api/resources/groups/client/requests/index.js +2 -0
  38. package/dist/cjs/api/resources/groups/exports.d.ts +2 -0
  39. package/dist/cjs/api/resources/groups/exports.js +21 -0
  40. package/dist/cjs/api/resources/groups/index.d.ts +2 -0
  41. package/dist/cjs/api/resources/groups/index.js +18 -0
  42. package/dist/cjs/api/resources/groups/types/GroupsIndexRequestSort.d.ts +10 -0
  43. package/dist/cjs/api/resources/groups/types/GroupsIndexRequestSort.js +13 -0
  44. package/dist/cjs/api/resources/groups/types/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/groups/types/index.js +17 -0
  46. package/dist/cjs/api/resources/index.d.ts +5 -0
  47. package/dist/cjs/api/resources/index.js +6 -1
  48. package/dist/cjs/api/resources/metadata/client/Client.d.ts +4 -4
  49. package/dist/cjs/api/resources/metadata/client/Client.js +4 -4
  50. package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +4 -4
  51. package/dist/cjs/api/resources/shares/client/Client.d.ts +4 -4
  52. package/dist/cjs/api/resources/shares/client/Client.js +4 -4
  53. package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +1 -1
  54. package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +2 -2
  55. package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +1 -1
  56. package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +1 -1
  57. package/dist/cjs/api/resources/versionStacks/client/Client.js +1 -1
  58. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +1 -1
  59. package/dist/cjs/api/types/Action.d.ts +25 -0
  60. package/dist/cjs/api/types/Action.js +3 -0
  61. package/dist/cjs/api/types/ActionCreateResponse.d.ts +13 -0
  62. package/dist/cjs/api/types/ActionCreateResponse.js +3 -0
  63. package/dist/cjs/api/types/ActionInclude.d.ts +4 -0
  64. package/dist/cjs/api/types/ActionInclude.js +3 -0
  65. package/dist/cjs/api/types/ActionResponse.d.ts +7 -0
  66. package/dist/cjs/api/types/ActionResponse.js +3 -0
  67. package/dist/cjs/api/types/ActionWithIncludes.d.ts +4 -0
  68. package/dist/cjs/api/types/ActionWithIncludes.js +3 -0
  69. package/dist/cjs/api/types/ActionWithIncludesResponse.d.ts +7 -0
  70. package/dist/cjs/api/types/ActionWithIncludesResponse.js +3 -0
  71. package/dist/cjs/api/types/ActionsWithIncludesResponse.d.ts +11 -0
  72. package/dist/cjs/api/types/ActionsWithIncludesResponse.js +3 -0
  73. package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +3 -0
  74. package/dist/cjs/api/types/AuditLogwithIncludes.js +3 -0
  75. package/dist/cjs/api/types/Filters.d.ts +3 -0
  76. package/dist/cjs/api/types/Filters.js +3 -0
  77. package/dist/cjs/api/types/GroupCommon.d.ts +16 -0
  78. package/dist/cjs/api/types/GroupCommon.js +3 -0
  79. package/dist/cjs/api/types/GroupCommonWithIncludes.d.ts +4 -0
  80. package/dist/cjs/api/types/GroupCommonWithIncludes.js +3 -0
  81. package/dist/cjs/api/types/GroupResponse.d.ts +4 -0
  82. package/dist/cjs/api/types/GroupResponse.js +3 -0
  83. package/dist/cjs/api/types/GroupWithIncludes.d.ts +13 -0
  84. package/dist/cjs/api/types/GroupWithIncludes.js +3 -0
  85. package/dist/cjs/api/types/GroupWithIncludesResponse.d.ts +4 -0
  86. package/dist/cjs/api/types/GroupWithIncludesResponse.js +3 -0
  87. package/dist/cjs/api/types/GroupsInclude.d.ts +4 -0
  88. package/dist/cjs/api/types/GroupsInclude.js +3 -0
  89. package/dist/cjs/api/types/GroupsSort.d.ts +10 -0
  90. package/dist/cjs/api/types/GroupsSort.js +13 -0
  91. package/dist/cjs/api/types/GroupsWithIncludesResponse.d.ts +8 -0
  92. package/dist/cjs/api/types/GroupsWithIncludesResponse.js +3 -0
  93. package/dist/cjs/api/types/SingleUserValue.d.ts +1 -1
  94. package/dist/cjs/api/types/SyncGroupWithIncludes.d.ts +15 -0
  95. package/dist/cjs/api/types/SyncGroupWithIncludes.js +14 -0
  96. package/dist/cjs/api/types/index.d.ts +16 -0
  97. package/dist/cjs/api/types/index.js +16 -0
  98. package/dist/cjs/version.d.ts +1 -1
  99. package/dist/cjs/version.js +1 -1
  100. package/dist/esm/BaseClient.mjs +2 -2
  101. package/dist/esm/Client.d.mts +6 -0
  102. package/dist/esm/Client.mjs +10 -0
  103. package/dist/esm/api/resources/customActions/client/Client.d.mts +145 -0
  104. package/dist/esm/api/resources/customActions/client/Client.mjs +406 -0
  105. package/dist/esm/api/resources/customActions/client/index.d.mts +1 -0
  106. package/dist/esm/api/resources/customActions/client/index.mjs +1 -0
  107. package/dist/esm/api/resources/customActions/client/requests/ActionCreateParams.d.mts +31 -0
  108. package/dist/esm/api/resources/customActions/client/requests/ActionCreateParams.mjs +2 -0
  109. package/dist/esm/api/resources/customActions/client/requests/ActionUpdateParams.d.mts +35 -0
  110. package/dist/esm/api/resources/customActions/client/requests/ActionUpdateParams.mjs +2 -0
  111. package/dist/esm/api/resources/customActions/client/requests/ActionsIndexRequest.d.mts +21 -0
  112. package/dist/esm/api/resources/customActions/client/requests/ActionsIndexRequest.mjs +2 -0
  113. package/dist/esm/api/resources/customActions/client/requests/ActionsShowRequest.d.mts +9 -0
  114. package/dist/esm/api/resources/customActions/client/requests/ActionsShowRequest.mjs +2 -0
  115. package/dist/esm/api/resources/customActions/client/requests/index.d.mts +4 -0
  116. package/dist/esm/api/resources/customActions/client/requests/index.mjs +1 -0
  117. package/dist/esm/api/resources/customActions/exports.d.mts +2 -0
  118. package/dist/esm/api/resources/customActions/exports.mjs +3 -0
  119. package/dist/esm/api/resources/customActions/index.d.mts +1 -0
  120. package/dist/esm/api/resources/customActions/index.mjs +1 -0
  121. package/dist/esm/api/resources/files/client/Client.d.mts +1 -1
  122. package/dist/esm/api/resources/files/client/Client.mjs +1 -1
  123. package/dist/esm/api/resources/groups/client/Client.d.mts +116 -0
  124. package/dist/esm/api/resources/groups/client/Client.mjs +331 -0
  125. package/dist/esm/api/resources/groups/client/index.d.mts +1 -0
  126. package/dist/esm/api/resources/groups/client/index.mjs +1 -0
  127. package/dist/esm/api/resources/groups/client/requests/CreateGroupParams.d.mts +20 -0
  128. package/dist/esm/api/resources/groups/client/requests/CreateGroupParams.mjs +2 -0
  129. package/dist/esm/api/resources/groups/client/requests/GroupsIndexRequest.d.mts +24 -0
  130. package/dist/esm/api/resources/groups/client/requests/GroupsIndexRequest.mjs +2 -0
  131. package/dist/esm/api/resources/groups/client/requests/GroupsShowRequest.d.mts +9 -0
  132. package/dist/esm/api/resources/groups/client/requests/GroupsShowRequest.mjs +2 -0
  133. package/dist/esm/api/resources/groups/client/requests/UpdateGroupParams.d.mts +20 -0
  134. package/dist/esm/api/resources/groups/client/requests/UpdateGroupParams.mjs +2 -0
  135. package/dist/esm/api/resources/groups/client/requests/index.d.mts +4 -0
  136. package/dist/esm/api/resources/groups/client/requests/index.mjs +1 -0
  137. package/dist/esm/api/resources/groups/exports.d.mts +2 -0
  138. package/dist/esm/api/resources/groups/exports.mjs +3 -0
  139. package/dist/esm/api/resources/groups/index.d.mts +2 -0
  140. package/dist/esm/api/resources/groups/index.mjs +2 -0
  141. package/dist/esm/api/resources/groups/types/GroupsIndexRequestSort.d.mts +10 -0
  142. package/dist/esm/api/resources/groups/types/GroupsIndexRequestSort.mjs +10 -0
  143. package/dist/esm/api/resources/groups/types/index.d.mts +1 -0
  144. package/dist/esm/api/resources/groups/types/index.mjs +1 -0
  145. package/dist/esm/api/resources/index.d.mts +5 -0
  146. package/dist/esm/api/resources/index.mjs +5 -0
  147. package/dist/esm/api/resources/metadata/client/Client.d.mts +4 -4
  148. package/dist/esm/api/resources/metadata/client/Client.mjs +4 -4
  149. package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +4 -4
  150. package/dist/esm/api/resources/shares/client/Client.d.mts +4 -4
  151. package/dist/esm/api/resources/shares/client/Client.mjs +4 -4
  152. package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +1 -1
  153. package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +2 -2
  154. package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +1 -1
  155. package/dist/esm/api/resources/versionStacks/client/Client.d.mts +1 -1
  156. package/dist/esm/api/resources/versionStacks/client/Client.mjs +1 -1
  157. package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +1 -1
  158. package/dist/esm/api/types/Action.d.mts +25 -0
  159. package/dist/esm/api/types/Action.mjs +2 -0
  160. package/dist/esm/api/types/ActionCreateResponse.d.mts +13 -0
  161. package/dist/esm/api/types/ActionCreateResponse.mjs +2 -0
  162. package/dist/esm/api/types/ActionInclude.d.mts +4 -0
  163. package/dist/esm/api/types/ActionInclude.mjs +2 -0
  164. package/dist/esm/api/types/ActionResponse.d.mts +7 -0
  165. package/dist/esm/api/types/ActionResponse.mjs +2 -0
  166. package/dist/esm/api/types/ActionWithIncludes.d.mts +4 -0
  167. package/dist/esm/api/types/ActionWithIncludes.mjs +2 -0
  168. package/dist/esm/api/types/ActionWithIncludesResponse.d.mts +7 -0
  169. package/dist/esm/api/types/ActionWithIncludesResponse.mjs +2 -0
  170. package/dist/esm/api/types/ActionsWithIncludesResponse.d.mts +11 -0
  171. package/dist/esm/api/types/ActionsWithIncludesResponse.mjs +2 -0
  172. package/dist/esm/api/types/AuditLogwithIncludes.d.mts +3 -0
  173. package/dist/esm/api/types/AuditLogwithIncludes.mjs +3 -0
  174. package/dist/esm/api/types/Filters.d.mts +3 -0
  175. package/dist/esm/api/types/Filters.mjs +3 -0
  176. package/dist/esm/api/types/GroupCommon.d.mts +16 -0
  177. package/dist/esm/api/types/GroupCommon.mjs +2 -0
  178. package/dist/esm/api/types/GroupCommonWithIncludes.d.mts +4 -0
  179. package/dist/esm/api/types/GroupCommonWithIncludes.mjs +2 -0
  180. package/dist/esm/api/types/GroupResponse.d.mts +4 -0
  181. package/dist/esm/api/types/GroupResponse.mjs +2 -0
  182. package/dist/esm/api/types/GroupWithIncludes.d.mts +13 -0
  183. package/dist/esm/api/types/GroupWithIncludes.mjs +2 -0
  184. package/dist/esm/api/types/GroupWithIncludesResponse.d.mts +4 -0
  185. package/dist/esm/api/types/GroupWithIncludesResponse.mjs +2 -0
  186. package/dist/esm/api/types/GroupsInclude.d.mts +4 -0
  187. package/dist/esm/api/types/GroupsInclude.mjs +2 -0
  188. package/dist/esm/api/types/GroupsSort.d.mts +10 -0
  189. package/dist/esm/api/types/GroupsSort.mjs +10 -0
  190. package/dist/esm/api/types/GroupsWithIncludesResponse.d.mts +8 -0
  191. package/dist/esm/api/types/GroupsWithIncludesResponse.mjs +2 -0
  192. package/dist/esm/api/types/SingleUserValue.d.mts +1 -1
  193. package/dist/esm/api/types/SyncGroupWithIncludes.d.mts +15 -0
  194. package/dist/esm/api/types/SyncGroupWithIncludes.mjs +11 -0
  195. package/dist/esm/api/types/index.d.mts +16 -0
  196. package/dist/esm/api/types/index.mjs +16 -0
  197. package/dist/esm/version.d.mts +1 -1
  198. package/dist/esm/version.mjs +1 -1
  199. package/package.json +23 -1
  200. package/reference.md +1318 -586
@@ -0,0 +1,116 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
+ import * as core from "../../../../core/index.mjs";
4
+ import * as Frameio from "../../../index.mjs";
5
+ export declare namespace GroupsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ /**
11
+ * Manage Groups and related operations.
12
+ */
13
+ export declare class GroupsClient {
14
+ protected readonly _options: NormalizedClientOptionsWithAuth<GroupsClient.Options>;
15
+ constructor(options: GroupsClient.Options);
16
+ /**
17
+ * List groups in account. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
18
+ *
19
+ * @param {Frameio.Uuid} account_id
20
+ * @param {Frameio.GroupsIndexRequest} request
21
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
22
+ *
23
+ * @throws {@link Frameio.BadRequestError}
24
+ * @throws {@link Frameio.UnauthorizedError}
25
+ * @throws {@link Frameio.ForbiddenError}
26
+ * @throws {@link Frameio.NotFoundError}
27
+ * @throws {@link Frameio.ConflictError}
28
+ * @throws {@link Frameio.UnprocessableEntityError}
29
+ * @throws {@link Frameio.TooManyRequestsError}
30
+ *
31
+ * @example
32
+ * await client.groups.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
33
+ * include: "creator",
34
+ * sort: "creator_asc",
35
+ * after: "<opaque_cursor>",
36
+ * page_size: 10,
37
+ * include_total_count: false
38
+ * })
39
+ */
40
+ index(account_id: Frameio.Uuid, request?: Frameio.GroupsIndexRequest, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<Frameio.GroupsWithIncludesResponse>;
41
+ private __index;
42
+ /**
43
+ * Create group for the current account. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
44
+ *
45
+ * @param {Frameio.Uuid} account_id
46
+ * @param {Frameio.CreateGroupParams} request
47
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
48
+ *
49
+ * @throws {@link Frameio.BadRequestError}
50
+ * @throws {@link Frameio.UnauthorizedError}
51
+ * @throws {@link Frameio.ForbiddenError}
52
+ * @throws {@link Frameio.NotFoundError}
53
+ * @throws {@link Frameio.ConflictError}
54
+ * @throws {@link Frameio.UnprocessableEntityError}
55
+ * @throws {@link Frameio.TooManyRequestsError}
56
+ *
57
+ * @example
58
+ * await client.groups.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
59
+ * data: {
60
+ * emoji: "smile",
61
+ * name: "group-1"
62
+ * }
63
+ * })
64
+ */
65
+ create(account_id: Frameio.Uuid, request: Frameio.CreateGroupParams, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<Frameio.GroupResponse>;
66
+ private __create;
67
+ /**
68
+ * Show group details. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
69
+ *
70
+ * @param {Frameio.Uuid} account_id
71
+ * @param {Frameio.Uuid} group_id
72
+ * @param {Frameio.GroupsShowRequest} request
73
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link Frameio.BadRequestError}
76
+ * @throws {@link Frameio.UnauthorizedError}
77
+ * @throws {@link Frameio.ForbiddenError}
78
+ * @throws {@link Frameio.NotFoundError}
79
+ * @throws {@link Frameio.ConflictError}
80
+ * @throws {@link Frameio.UnprocessableEntityError}
81
+ * @throws {@link Frameio.TooManyRequestsError}
82
+ *
83
+ * @example
84
+ * await client.groups.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
85
+ * include: "creator"
86
+ * })
87
+ */
88
+ show(account_id: Frameio.Uuid, group_id: Frameio.Uuid, request?: Frameio.GroupsShowRequest, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<Frameio.GroupWithIncludesResponse>;
89
+ private __show;
90
+ /**
91
+ * Update group details. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
92
+ *
93
+ * @param {Frameio.Uuid} account_id
94
+ * @param {Frameio.Uuid} group_id
95
+ * @param {Frameio.UpdateGroupParams} request
96
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
97
+ *
98
+ * @throws {@link Frameio.BadRequestError}
99
+ * @throws {@link Frameio.UnauthorizedError}
100
+ * @throws {@link Frameio.ForbiddenError}
101
+ * @throws {@link Frameio.NotFoundError}
102
+ * @throws {@link Frameio.ConflictError}
103
+ * @throws {@link Frameio.UnprocessableEntityError}
104
+ * @throws {@link Frameio.TooManyRequestsError}
105
+ *
106
+ * @example
107
+ * await client.groups.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
108
+ * data: {
109
+ * emoji: "smile",
110
+ * name: "group-1"
111
+ * }
112
+ * })
113
+ */
114
+ update(account_id: Frameio.Uuid, group_id: Frameio.Uuid, request: Frameio.UpdateGroupParams, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<Frameio.GroupResponse>;
115
+ private __update;
116
+ }
@@ -0,0 +1,331 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
13
+ import * as core from "../../../../core/index.mjs";
14
+ import * as environments from "../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../errors/index.mjs";
17
+ import * as Frameio from "../../../index.mjs";
18
+ /**
19
+ * Manage Groups and related operations.
20
+ */
21
+ export class GroupsClient {
22
+ constructor(options) {
23
+ this._options = normalizeClientOptionsWithAuth(options);
24
+ }
25
+ /**
26
+ * List groups in account. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
27
+ *
28
+ * @param {Frameio.Uuid} account_id
29
+ * @param {Frameio.GroupsIndexRequest} request
30
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @throws {@link Frameio.BadRequestError}
33
+ * @throws {@link Frameio.UnauthorizedError}
34
+ * @throws {@link Frameio.ForbiddenError}
35
+ * @throws {@link Frameio.NotFoundError}
36
+ * @throws {@link Frameio.ConflictError}
37
+ * @throws {@link Frameio.UnprocessableEntityError}
38
+ * @throws {@link Frameio.TooManyRequestsError}
39
+ *
40
+ * @example
41
+ * await client.groups.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
42
+ * include: "creator",
43
+ * sort: "creator_asc",
44
+ * after: "<opaque_cursor>",
45
+ * page_size: 10,
46
+ * include_total_count: false
47
+ * })
48
+ */
49
+ index(account_id, request = {}, requestOptions) {
50
+ return core.HttpResponsePromise.fromPromise(this.__index(account_id, request, requestOptions));
51
+ }
52
+ __index(account_id_1) {
53
+ return __awaiter(this, arguments, void 0, function* (account_id, request = {}, requestOptions) {
54
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
55
+ const { include, sort, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
56
+ const _queryParams = {
57
+ include: include != null ? include : undefined,
58
+ sort: sort != null ? sort : undefined,
59
+ after,
60
+ page_size: pageSize,
61
+ include_total_count: includeTotalCount,
62
+ };
63
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
64
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
65
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
66
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/groups`),
67
+ method: "GET",
68
+ headers: _headers,
69
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
70
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
71
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
72
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
73
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
74
+ logging: this._options.logging,
75
+ });
76
+ if (_response.ok) {
77
+ return { data: _response.body, rawResponse: _response.rawResponse };
78
+ }
79
+ if (_response.error.reason === "status-code") {
80
+ switch (_response.error.statusCode) {
81
+ case 400:
82
+ throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
83
+ case 401:
84
+ throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
85
+ case 403:
86
+ throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
87
+ case 404:
88
+ throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
89
+ case 409:
90
+ throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
91
+ case 422:
92
+ throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
93
+ case 429:
94
+ throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
95
+ default:
96
+ throw new errors.FrameioError({
97
+ statusCode: _response.error.statusCode,
98
+ body: _response.error.body,
99
+ rawResponse: _response.rawResponse,
100
+ });
101
+ }
102
+ }
103
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/groups");
104
+ });
105
+ }
106
+ /**
107
+ * Create group for the current account. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
108
+ *
109
+ * @param {Frameio.Uuid} account_id
110
+ * @param {Frameio.CreateGroupParams} request
111
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
112
+ *
113
+ * @throws {@link Frameio.BadRequestError}
114
+ * @throws {@link Frameio.UnauthorizedError}
115
+ * @throws {@link Frameio.ForbiddenError}
116
+ * @throws {@link Frameio.NotFoundError}
117
+ * @throws {@link Frameio.ConflictError}
118
+ * @throws {@link Frameio.UnprocessableEntityError}
119
+ * @throws {@link Frameio.TooManyRequestsError}
120
+ *
121
+ * @example
122
+ * await client.groups.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
123
+ * data: {
124
+ * emoji: "smile",
125
+ * name: "group-1"
126
+ * }
127
+ * })
128
+ */
129
+ create(account_id, request, requestOptions) {
130
+ return core.HttpResponsePromise.fromPromise(this.__create(account_id, request, requestOptions));
131
+ }
132
+ __create(account_id, request, requestOptions) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
135
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
136
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
137
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
138
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/groups`),
139
+ method: "POST",
140
+ headers: _headers,
141
+ contentType: "application/json",
142
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
143
+ requestType: "json",
144
+ body: request,
145
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
146
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
147
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
148
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
149
+ logging: this._options.logging,
150
+ });
151
+ if (_response.ok) {
152
+ return { data: _response.body, rawResponse: _response.rawResponse };
153
+ }
154
+ if (_response.error.reason === "status-code") {
155
+ switch (_response.error.statusCode) {
156
+ case 400:
157
+ throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
158
+ case 401:
159
+ throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
160
+ case 403:
161
+ throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
162
+ case 404:
163
+ throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
164
+ case 409:
165
+ throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
166
+ case 422:
167
+ throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
168
+ case 429:
169
+ throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
170
+ default:
171
+ throw new errors.FrameioError({
172
+ statusCode: _response.error.statusCode,
173
+ body: _response.error.body,
174
+ rawResponse: _response.rawResponse,
175
+ });
176
+ }
177
+ }
178
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/groups");
179
+ });
180
+ }
181
+ /**
182
+ * Show group details. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
183
+ *
184
+ * @param {Frameio.Uuid} account_id
185
+ * @param {Frameio.Uuid} group_id
186
+ * @param {Frameio.GroupsShowRequest} request
187
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
188
+ *
189
+ * @throws {@link Frameio.BadRequestError}
190
+ * @throws {@link Frameio.UnauthorizedError}
191
+ * @throws {@link Frameio.ForbiddenError}
192
+ * @throws {@link Frameio.NotFoundError}
193
+ * @throws {@link Frameio.ConflictError}
194
+ * @throws {@link Frameio.UnprocessableEntityError}
195
+ * @throws {@link Frameio.TooManyRequestsError}
196
+ *
197
+ * @example
198
+ * await client.groups.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
199
+ * include: "creator"
200
+ * })
201
+ */
202
+ show(account_id, group_id, request = {}, requestOptions) {
203
+ return core.HttpResponsePromise.fromPromise(this.__show(account_id, group_id, request, requestOptions));
204
+ }
205
+ __show(account_id_1, group_id_1) {
206
+ return __awaiter(this, arguments, void 0, function* (account_id, group_id, request = {}, requestOptions) {
207
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
208
+ const { include } = request;
209
+ const _queryParams = {
210
+ include: include != null ? include : undefined,
211
+ };
212
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
213
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
214
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
215
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/groups/${core.url.encodePathParam(group_id)}`),
216
+ method: "GET",
217
+ headers: _headers,
218
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
219
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
220
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
221
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
222
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
223
+ logging: this._options.logging,
224
+ });
225
+ if (_response.ok) {
226
+ return { data: _response.body, rawResponse: _response.rawResponse };
227
+ }
228
+ if (_response.error.reason === "status-code") {
229
+ switch (_response.error.statusCode) {
230
+ case 400:
231
+ throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
232
+ case 401:
233
+ throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
234
+ case 403:
235
+ throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
236
+ case 404:
237
+ throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
238
+ case 409:
239
+ throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
240
+ case 422:
241
+ throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
242
+ case 429:
243
+ throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
244
+ default:
245
+ throw new errors.FrameioError({
246
+ statusCode: _response.error.statusCode,
247
+ body: _response.error.body,
248
+ rawResponse: _response.rawResponse,
249
+ });
250
+ }
251
+ }
252
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/groups/{group_id}");
253
+ });
254
+ }
255
+ /**
256
+ * Update group details. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
257
+ *
258
+ * @param {Frameio.Uuid} account_id
259
+ * @param {Frameio.Uuid} group_id
260
+ * @param {Frameio.UpdateGroupParams} request
261
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
262
+ *
263
+ * @throws {@link Frameio.BadRequestError}
264
+ * @throws {@link Frameio.UnauthorizedError}
265
+ * @throws {@link Frameio.ForbiddenError}
266
+ * @throws {@link Frameio.NotFoundError}
267
+ * @throws {@link Frameio.ConflictError}
268
+ * @throws {@link Frameio.UnprocessableEntityError}
269
+ * @throws {@link Frameio.TooManyRequestsError}
270
+ *
271
+ * @example
272
+ * await client.groups.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
273
+ * data: {
274
+ * emoji: "smile",
275
+ * name: "group-1"
276
+ * }
277
+ * })
278
+ */
279
+ update(account_id, group_id, request, requestOptions) {
280
+ return core.HttpResponsePromise.fromPromise(this.__update(account_id, group_id, request, requestOptions));
281
+ }
282
+ __update(account_id, group_id, request, requestOptions) {
283
+ return __awaiter(this, void 0, void 0, function* () {
284
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
285
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
286
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
287
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
288
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/groups/${core.url.encodePathParam(group_id)}`),
289
+ method: "PATCH",
290
+ headers: _headers,
291
+ contentType: "application/json",
292
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
293
+ requestType: "json",
294
+ body: request,
295
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
296
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
297
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
298
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
299
+ logging: this._options.logging,
300
+ });
301
+ if (_response.ok) {
302
+ return { data: _response.body, rawResponse: _response.rawResponse };
303
+ }
304
+ if (_response.error.reason === "status-code") {
305
+ switch (_response.error.statusCode) {
306
+ case 400:
307
+ throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
308
+ case 401:
309
+ throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
310
+ case 403:
311
+ throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
312
+ case 404:
313
+ throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
314
+ case 409:
315
+ throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
316
+ case 422:
317
+ throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
318
+ case 429:
319
+ throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
320
+ default:
321
+ throw new errors.FrameioError({
322
+ statusCode: _response.error.statusCode,
323
+ body: _response.error.body,
324
+ rawResponse: _response.rawResponse,
325
+ });
326
+ }
327
+ }
328
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/groups/{group_id}");
329
+ });
330
+ }
331
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * data: {
5
+ * emoji: "smile",
6
+ * name: "group-1"
7
+ * }
8
+ * }
9
+ */
10
+ export interface CreateGroupParams {
11
+ data: CreateGroupParams.Data;
12
+ }
13
+ export declare namespace CreateGroupParams {
14
+ interface Data {
15
+ /** Group emoji for UI display */
16
+ emoji: string;
17
+ /** Group name */
18
+ name: string;
19
+ }
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,24 @@
1
+ import type * as Frameio from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * include: "creator",
6
+ * sort: "creator_asc",
7
+ * after: "<opaque_cursor>",
8
+ * page_size: 10,
9
+ * include_total_count: false
10
+ * }
11
+ */
12
+ export interface GroupsIndexRequest {
13
+ include?: "creator";
14
+ /** Sort groups by query params */
15
+ sort?: Frameio.GroupsIndexRequestSort;
16
+ /**
17
+ * Opaque Cursor query param for requests returning paginated results.
18
+ * <br/>
19
+ * NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
20
+ */
21
+ after?: Frameio.RequestAfterOpaqueCursor | undefined;
22
+ page_size?: Frameio.RequestPageSize;
23
+ include_total_count?: Frameio.IncludeTotalCount;
24
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * include: "creator"
5
+ * }
6
+ */
7
+ export interface GroupsShowRequest {
8
+ include?: "creator";
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * data: {
5
+ * emoji: "smile",
6
+ * name: "group-1"
7
+ * }
8
+ * }
9
+ */
10
+ export interface UpdateGroupParams {
11
+ data: UpdateGroupParams.Data;
12
+ }
13
+ export declare namespace UpdateGroupParams {
14
+ interface Data {
15
+ /** Group emoji for UI display */
16
+ emoji?: string | undefined;
17
+ /** Group name */
18
+ name?: string | undefined;
19
+ }
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export type { CreateGroupParams } from "./CreateGroupParams.mjs";
2
+ export type { GroupsIndexRequest } from "./GroupsIndexRequest.mjs";
3
+ export type { GroupsShowRequest } from "./GroupsShowRequest.mjs";
4
+ export type { UpdateGroupParams } from "./UpdateGroupParams.mjs";
@@ -0,0 +1,2 @@
1
+ export { GroupsClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { GroupsClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,10 @@
1
+ /** Sort query parameter for Groups. */
2
+ export declare const GroupsIndexRequestSort: {
3
+ readonly CreatorAsc: "creator_asc";
4
+ readonly CreatorDesc: "creator_desc";
5
+ readonly NameAsc: "name_asc";
6
+ readonly NameDesc: "name_desc";
7
+ readonly CreatedAtAsc: "created_at_asc";
8
+ readonly CreatedAtDesc: "created_at_desc";
9
+ };
10
+ export type GroupsIndexRequestSort = (typeof GroupsIndexRequestSort)[keyof typeof GroupsIndexRequestSort];
@@ -0,0 +1,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Sort query parameter for Groups. */
3
+ export const GroupsIndexRequestSort = {
4
+ CreatorAsc: "creator_asc",
5
+ CreatorDesc: "creator_desc",
6
+ NameAsc: "name_asc",
7
+ NameDesc: "name_desc",
8
+ CreatedAtAsc: "created_at_asc",
9
+ CreatedAtDesc: "created_at_desc",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./GroupsIndexRequestSort.mjs";
@@ -0,0 +1 @@
1
+ export * from "./GroupsIndexRequestSort.mjs";
@@ -5,12 +5,17 @@ export * as accounts from "./accounts/index.mjs";
5
5
  export * from "./comments/client/requests/index.mjs";
6
6
  export * as comments from "./comments/index.mjs";
7
7
  export * from "./comments/types/index.mjs";
8
+ export * from "./customActions/client/requests/index.mjs";
9
+ export * as customActions from "./customActions/index.mjs";
8
10
  export * from "./files/client/requests/index.mjs";
9
11
  export * as files from "./files/index.mjs";
10
12
  export * from "./files/types/index.mjs";
11
13
  export * from "./folders/client/requests/index.mjs";
12
14
  export * as folders from "./folders/index.mjs";
13
15
  export * from "./folders/types/index.mjs";
16
+ export * from "./groups/client/requests/index.mjs";
17
+ export * as groups from "./groups/index.mjs";
18
+ export * from "./groups/types/index.mjs";
14
19
  export * from "./metadata/client/requests/index.mjs";
15
20
  export * as metadata from "./metadata/index.mjs";
16
21
  export * from "./metadataFields/client/requests/index.mjs";
@@ -5,12 +5,17 @@ export * as accounts from "./accounts/index.mjs";
5
5
  export * from "./comments/client/requests/index.mjs";
6
6
  export * as comments from "./comments/index.mjs";
7
7
  export * from "./comments/types/index.mjs";
8
+ export * from "./customActions/client/requests/index.mjs";
9
+ export * as customActions from "./customActions/index.mjs";
8
10
  export * from "./files/client/requests/index.mjs";
9
11
  export * as files from "./files/index.mjs";
10
12
  export * from "./files/types/index.mjs";
11
13
  export * from "./folders/client/requests/index.mjs";
12
14
  export * as folders from "./folders/index.mjs";
13
15
  export * from "./folders/types/index.mjs";
16
+ export * from "./groups/client/requests/index.mjs";
17
+ export * as groups from "./groups/index.mjs";
18
+ export * from "./groups/types/index.mjs";
14
19
  export * from "./metadata/client/requests/index.mjs";
15
20
  export * as metadata from "./metadata/index.mjs";
16
21
  export * from "./metadataFields/client/requests/index.mjs";