frameio 3.2.3 → 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 (279) hide show
  1. package/README.md +159 -4
  2. package/dist/cjs/BaseClient.d.ts +4 -0
  3. package/dist/cjs/BaseClient.js +4 -2
  4. package/dist/cjs/Client.d.ts +6 -0
  5. package/dist/cjs/Client.js +34 -24
  6. package/dist/cjs/api/resources/accountPermissions/client/Client.js +6 -6
  7. package/dist/cjs/api/resources/accounts/client/Client.js +13 -13
  8. package/dist/cjs/api/resources/comments/client/Client.js +48 -48
  9. package/dist/cjs/api/resources/customActions/client/Client.d.ts +145 -0
  10. package/dist/cjs/api/resources/customActions/client/Client.js +443 -0
  11. package/dist/cjs/api/resources/customActions/client/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/customActions/client/index.js +17 -0
  13. package/dist/cjs/api/resources/customActions/client/requests/ActionCreateParams.d.ts +31 -0
  14. package/dist/cjs/api/resources/customActions/client/requests/ActionCreateParams.js +3 -0
  15. package/dist/cjs/api/resources/customActions/client/requests/ActionUpdateParams.d.ts +35 -0
  16. package/dist/cjs/api/resources/customActions/client/requests/ActionUpdateParams.js +3 -0
  17. package/dist/cjs/api/resources/customActions/client/requests/ActionsIndexRequest.d.ts +21 -0
  18. package/dist/cjs/api/resources/customActions/client/requests/ActionsIndexRequest.js +3 -0
  19. package/dist/cjs/api/resources/customActions/client/requests/ActionsShowRequest.d.ts +9 -0
  20. package/dist/cjs/api/resources/customActions/client/requests/ActionsShowRequest.js +3 -0
  21. package/dist/cjs/api/resources/customActions/client/requests/index.d.ts +4 -0
  22. package/dist/cjs/api/resources/customActions/client/requests/index.js +2 -0
  23. package/dist/cjs/api/resources/customActions/exports.d.ts +2 -0
  24. package/dist/cjs/api/resources/customActions/exports.js +21 -0
  25. package/dist/cjs/api/resources/customActions/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/customActions/index.js +17 -0
  27. package/dist/cjs/api/resources/files/client/Client.d.ts +1 -1
  28. package/dist/cjs/api/resources/files/client/Client.js +78 -78
  29. package/dist/cjs/api/resources/folders/client/Client.js +56 -56
  30. package/dist/cjs/api/resources/groups/client/Client.d.ts +116 -0
  31. package/dist/cjs/api/resources/groups/client/Client.js +368 -0
  32. package/dist/cjs/api/resources/groups/client/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/groups/client/index.js +17 -0
  34. package/dist/cjs/api/resources/groups/client/requests/CreateGroupParams.d.ts +20 -0
  35. package/dist/cjs/api/resources/groups/client/requests/CreateGroupParams.js +3 -0
  36. package/dist/cjs/api/resources/groups/client/requests/GroupsIndexRequest.d.ts +24 -0
  37. package/dist/cjs/api/resources/groups/client/requests/GroupsIndexRequest.js +3 -0
  38. package/dist/cjs/api/resources/groups/client/requests/GroupsShowRequest.d.ts +9 -0
  39. package/dist/cjs/api/resources/groups/client/requests/GroupsShowRequest.js +3 -0
  40. package/dist/cjs/api/resources/groups/client/requests/UpdateGroupParams.d.ts +20 -0
  41. package/dist/cjs/api/resources/groups/client/requests/UpdateGroupParams.js +3 -0
  42. package/dist/cjs/api/resources/groups/client/requests/index.d.ts +4 -0
  43. package/dist/cjs/api/resources/groups/client/requests/index.js +2 -0
  44. package/dist/cjs/api/resources/groups/exports.d.ts +2 -0
  45. package/dist/cjs/api/resources/groups/exports.js +21 -0
  46. package/dist/cjs/api/resources/groups/index.d.ts +2 -0
  47. package/dist/cjs/api/resources/groups/index.js +18 -0
  48. package/dist/cjs/api/resources/groups/types/GroupsIndexRequestSort.d.ts +10 -0
  49. package/dist/cjs/api/resources/groups/types/GroupsIndexRequestSort.js +13 -0
  50. package/dist/cjs/api/resources/groups/types/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/groups/types/index.js +17 -0
  52. package/dist/cjs/api/resources/index.d.ts +5 -0
  53. package/dist/cjs/api/resources/index.js +6 -1
  54. package/dist/cjs/api/resources/metadata/client/Client.d.ts +4 -4
  55. package/dist/cjs/api/resources/metadata/client/Client.js +18 -18
  56. package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +4 -4
  57. package/dist/cjs/api/resources/metadataFields/client/Client.js +28 -28
  58. package/dist/cjs/api/resources/projectPermissions/client/Client.js +20 -20
  59. package/dist/cjs/api/resources/projects/client/Client.js +34 -34
  60. package/dist/cjs/api/resources/shares/client/Client.d.ts +4 -4
  61. package/dist/cjs/api/resources/shares/client/Client.js +72 -72
  62. package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +1 -1
  63. package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +2 -2
  64. package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +1 -1
  65. package/dist/cjs/api/resources/users/client/Client.js +7 -7
  66. package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +1 -1
  67. package/dist/cjs/api/resources/versionStacks/client/Client.js +43 -43
  68. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +1 -1
  69. package/dist/cjs/api/resources/webhooks/client/Client.js +34 -34
  70. package/dist/cjs/api/resources/workspacePermissions/client/Client.js +20 -20
  71. package/dist/cjs/api/resources/workspaces/client/Client.js +34 -34
  72. package/dist/cjs/api/types/Account.d.ts +0 -2
  73. package/dist/cjs/api/types/Action.d.ts +25 -0
  74. package/dist/cjs/api/types/Action.js +3 -0
  75. package/dist/cjs/api/types/ActionCreateResponse.d.ts +13 -0
  76. package/dist/cjs/api/types/ActionCreateResponse.js +3 -0
  77. package/dist/cjs/api/types/ActionInclude.d.ts +4 -0
  78. package/dist/cjs/api/types/ActionInclude.js +3 -0
  79. package/dist/cjs/api/types/ActionResponse.d.ts +7 -0
  80. package/dist/cjs/api/types/ActionResponse.js +3 -0
  81. package/dist/cjs/api/types/ActionWithIncludes.d.ts +4 -0
  82. package/dist/cjs/api/types/ActionWithIncludes.js +3 -0
  83. package/dist/cjs/api/types/ActionWithIncludesResponse.d.ts +7 -0
  84. package/dist/cjs/api/types/ActionWithIncludesResponse.js +3 -0
  85. package/dist/cjs/api/types/ActionsWithIncludesResponse.d.ts +11 -0
  86. package/dist/cjs/api/types/ActionsWithIncludesResponse.js +3 -0
  87. package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +7 -0
  88. package/dist/cjs/api/types/AuditLogwithIncludes.js +7 -0
  89. package/dist/cjs/api/types/Filters.d.ts +7 -0
  90. package/dist/cjs/api/types/Filters.js +7 -0
  91. package/dist/cjs/api/types/GroupCommon.d.ts +16 -0
  92. package/dist/cjs/api/types/GroupCommon.js +3 -0
  93. package/dist/cjs/api/types/GroupCommonWithIncludes.d.ts +4 -0
  94. package/dist/cjs/api/types/GroupCommonWithIncludes.js +3 -0
  95. package/dist/cjs/api/types/GroupResponse.d.ts +4 -0
  96. package/dist/cjs/api/types/GroupResponse.js +3 -0
  97. package/dist/cjs/api/types/GroupWithIncludes.d.ts +13 -0
  98. package/dist/cjs/api/types/GroupWithIncludes.js +3 -0
  99. package/dist/cjs/api/types/GroupWithIncludesResponse.d.ts +4 -0
  100. package/dist/cjs/api/types/GroupWithIncludesResponse.js +3 -0
  101. package/dist/cjs/api/types/GroupsInclude.d.ts +4 -0
  102. package/dist/cjs/api/types/GroupsInclude.js +3 -0
  103. package/dist/cjs/api/types/GroupsSort.d.ts +10 -0
  104. package/dist/cjs/api/types/GroupsSort.js +13 -0
  105. package/dist/cjs/api/types/GroupsWithIncludesResponse.d.ts +8 -0
  106. package/dist/cjs/api/types/GroupsWithIncludesResponse.js +3 -0
  107. package/dist/cjs/api/types/SingleUserValue.d.ts +1 -1
  108. package/dist/cjs/api/types/SyncGroupWithIncludes.d.ts +15 -0
  109. package/dist/cjs/api/types/SyncGroupWithIncludes.js +14 -0
  110. package/dist/cjs/api/types/index.d.ts +16 -0
  111. package/dist/cjs/api/types/index.js +16 -0
  112. package/dist/cjs/index.d.ts +4 -0
  113. package/dist/cjs/index.js +21 -1
  114. package/dist/cjs/oauth/BaseAuth.d.ts +66 -0
  115. package/dist/cjs/oauth/BaseAuth.js +113 -0
  116. package/dist/cjs/oauth/NativeAppAuth.d.ts +32 -0
  117. package/dist/cjs/oauth/NativeAppAuth.js +35 -0
  118. package/dist/cjs/oauth/SPAAuth.d.ts +38 -0
  119. package/dist/cjs/oauth/SPAAuth.js +96 -0
  120. package/dist/cjs/oauth/ServerToServerAuth.d.ts +17 -0
  121. package/dist/cjs/oauth/ServerToServerAuth.js +49 -0
  122. package/dist/cjs/oauth/TokenManager.d.ts +83 -0
  123. package/dist/cjs/oauth/TokenManager.js +174 -0
  124. package/dist/cjs/oauth/WebAppAuth.d.ts +29 -0
  125. package/dist/cjs/oauth/WebAppAuth.js +88 -0
  126. package/dist/cjs/oauth/errors.d.ts +41 -0
  127. package/dist/cjs/oauth/errors.js +83 -0
  128. package/dist/cjs/oauth/http.d.ts +70 -0
  129. package/dist/cjs/oauth/http.js +280 -0
  130. package/dist/cjs/oauth/index.d.ts +34 -0
  131. package/dist/cjs/oauth/index.js +47 -0
  132. package/dist/cjs/oauth/logger.d.ts +17 -0
  133. package/dist/cjs/oauth/logger.js +18 -0
  134. package/dist/cjs/oauth/pkce.d.ts +30 -0
  135. package/dist/cjs/oauth/pkce.js +102 -0
  136. package/dist/cjs/oauth/validation.d.ts +17 -0
  137. package/dist/cjs/oauth/validation.js +55 -0
  138. package/dist/cjs/version.d.ts +1 -1
  139. package/dist/cjs/version.js +1 -1
  140. package/dist/esm/BaseClient.d.mts +4 -0
  141. package/dist/esm/BaseClient.mjs +4 -2
  142. package/dist/esm/Client.d.mts +6 -0
  143. package/dist/esm/Client.mjs +10 -0
  144. package/dist/esm/api/resources/accountPermissions/client/Client.mjs +7 -7
  145. package/dist/esm/api/resources/accounts/client/Client.mjs +13 -13
  146. package/dist/esm/api/resources/comments/client/Client.mjs +49 -49
  147. package/dist/esm/api/resources/customActions/client/Client.d.mts +145 -0
  148. package/dist/esm/api/resources/customActions/client/Client.mjs +406 -0
  149. package/dist/esm/api/resources/customActions/client/index.d.mts +1 -0
  150. package/dist/esm/api/resources/customActions/client/index.mjs +1 -0
  151. package/dist/esm/api/resources/customActions/client/requests/ActionCreateParams.d.mts +31 -0
  152. package/dist/esm/api/resources/customActions/client/requests/ActionCreateParams.mjs +2 -0
  153. package/dist/esm/api/resources/customActions/client/requests/ActionUpdateParams.d.mts +35 -0
  154. package/dist/esm/api/resources/customActions/client/requests/ActionUpdateParams.mjs +2 -0
  155. package/dist/esm/api/resources/customActions/client/requests/ActionsIndexRequest.d.mts +21 -0
  156. package/dist/esm/api/resources/customActions/client/requests/ActionsIndexRequest.mjs +2 -0
  157. package/dist/esm/api/resources/customActions/client/requests/ActionsShowRequest.d.mts +9 -0
  158. package/dist/esm/api/resources/customActions/client/requests/ActionsShowRequest.mjs +2 -0
  159. package/dist/esm/api/resources/customActions/client/requests/index.d.mts +4 -0
  160. package/dist/esm/api/resources/customActions/client/requests/index.mjs +1 -0
  161. package/dist/esm/api/resources/customActions/exports.d.mts +2 -0
  162. package/dist/esm/api/resources/customActions/exports.mjs +3 -0
  163. package/dist/esm/api/resources/customActions/index.d.mts +1 -0
  164. package/dist/esm/api/resources/customActions/index.mjs +1 -0
  165. package/dist/esm/api/resources/files/client/Client.d.mts +1 -1
  166. package/dist/esm/api/resources/files/client/Client.mjs +79 -79
  167. package/dist/esm/api/resources/folders/client/Client.mjs +57 -57
  168. package/dist/esm/api/resources/groups/client/Client.d.mts +116 -0
  169. package/dist/esm/api/resources/groups/client/Client.mjs +331 -0
  170. package/dist/esm/api/resources/groups/client/index.d.mts +1 -0
  171. package/dist/esm/api/resources/groups/client/index.mjs +1 -0
  172. package/dist/esm/api/resources/groups/client/requests/CreateGroupParams.d.mts +20 -0
  173. package/dist/esm/api/resources/groups/client/requests/CreateGroupParams.mjs +2 -0
  174. package/dist/esm/api/resources/groups/client/requests/GroupsIndexRequest.d.mts +24 -0
  175. package/dist/esm/api/resources/groups/client/requests/GroupsIndexRequest.mjs +2 -0
  176. package/dist/esm/api/resources/groups/client/requests/GroupsShowRequest.d.mts +9 -0
  177. package/dist/esm/api/resources/groups/client/requests/GroupsShowRequest.mjs +2 -0
  178. package/dist/esm/api/resources/groups/client/requests/UpdateGroupParams.d.mts +20 -0
  179. package/dist/esm/api/resources/groups/client/requests/UpdateGroupParams.mjs +2 -0
  180. package/dist/esm/api/resources/groups/client/requests/index.d.mts +4 -0
  181. package/dist/esm/api/resources/groups/client/requests/index.mjs +1 -0
  182. package/dist/esm/api/resources/groups/exports.d.mts +2 -0
  183. package/dist/esm/api/resources/groups/exports.mjs +3 -0
  184. package/dist/esm/api/resources/groups/index.d.mts +2 -0
  185. package/dist/esm/api/resources/groups/index.mjs +2 -0
  186. package/dist/esm/api/resources/groups/types/GroupsIndexRequestSort.d.mts +10 -0
  187. package/dist/esm/api/resources/groups/types/GroupsIndexRequestSort.mjs +10 -0
  188. package/dist/esm/api/resources/groups/types/index.d.mts +1 -0
  189. package/dist/esm/api/resources/groups/types/index.mjs +1 -0
  190. package/dist/esm/api/resources/index.d.mts +5 -0
  191. package/dist/esm/api/resources/index.mjs +5 -0
  192. package/dist/esm/api/resources/metadata/client/Client.d.mts +4 -4
  193. package/dist/esm/api/resources/metadata/client/Client.mjs +19 -19
  194. package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +4 -4
  195. package/dist/esm/api/resources/metadataFields/client/Client.mjs +29 -29
  196. package/dist/esm/api/resources/projectPermissions/client/Client.mjs +21 -21
  197. package/dist/esm/api/resources/projects/client/Client.mjs +35 -35
  198. package/dist/esm/api/resources/shares/client/Client.d.mts +4 -4
  199. package/dist/esm/api/resources/shares/client/Client.mjs +73 -73
  200. package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +1 -1
  201. package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +2 -2
  202. package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +1 -1
  203. package/dist/esm/api/resources/users/client/Client.mjs +8 -8
  204. package/dist/esm/api/resources/versionStacks/client/Client.d.mts +1 -1
  205. package/dist/esm/api/resources/versionStacks/client/Client.mjs +44 -44
  206. package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +1 -1
  207. package/dist/esm/api/resources/webhooks/client/Client.mjs +35 -35
  208. package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +21 -21
  209. package/dist/esm/api/resources/workspaces/client/Client.mjs +35 -35
  210. package/dist/esm/api/types/Account.d.mts +0 -2
  211. package/dist/esm/api/types/Action.d.mts +25 -0
  212. package/dist/esm/api/types/Action.mjs +2 -0
  213. package/dist/esm/api/types/ActionCreateResponse.d.mts +13 -0
  214. package/dist/esm/api/types/ActionCreateResponse.mjs +2 -0
  215. package/dist/esm/api/types/ActionInclude.d.mts +4 -0
  216. package/dist/esm/api/types/ActionInclude.mjs +2 -0
  217. package/dist/esm/api/types/ActionResponse.d.mts +7 -0
  218. package/dist/esm/api/types/ActionResponse.mjs +2 -0
  219. package/dist/esm/api/types/ActionWithIncludes.d.mts +4 -0
  220. package/dist/esm/api/types/ActionWithIncludes.mjs +2 -0
  221. package/dist/esm/api/types/ActionWithIncludesResponse.d.mts +7 -0
  222. package/dist/esm/api/types/ActionWithIncludesResponse.mjs +2 -0
  223. package/dist/esm/api/types/ActionsWithIncludesResponse.d.mts +11 -0
  224. package/dist/esm/api/types/ActionsWithIncludesResponse.mjs +2 -0
  225. package/dist/esm/api/types/AuditLogwithIncludes.d.mts +7 -0
  226. package/dist/esm/api/types/AuditLogwithIncludes.mjs +7 -0
  227. package/dist/esm/api/types/Filters.d.mts +7 -0
  228. package/dist/esm/api/types/Filters.mjs +7 -0
  229. package/dist/esm/api/types/GroupCommon.d.mts +16 -0
  230. package/dist/esm/api/types/GroupCommon.mjs +2 -0
  231. package/dist/esm/api/types/GroupCommonWithIncludes.d.mts +4 -0
  232. package/dist/esm/api/types/GroupCommonWithIncludes.mjs +2 -0
  233. package/dist/esm/api/types/GroupResponse.d.mts +4 -0
  234. package/dist/esm/api/types/GroupResponse.mjs +2 -0
  235. package/dist/esm/api/types/GroupWithIncludes.d.mts +13 -0
  236. package/dist/esm/api/types/GroupWithIncludes.mjs +2 -0
  237. package/dist/esm/api/types/GroupWithIncludesResponse.d.mts +4 -0
  238. package/dist/esm/api/types/GroupWithIncludesResponse.mjs +2 -0
  239. package/dist/esm/api/types/GroupsInclude.d.mts +4 -0
  240. package/dist/esm/api/types/GroupsInclude.mjs +2 -0
  241. package/dist/esm/api/types/GroupsSort.d.mts +10 -0
  242. package/dist/esm/api/types/GroupsSort.mjs +10 -0
  243. package/dist/esm/api/types/GroupsWithIncludesResponse.d.mts +8 -0
  244. package/dist/esm/api/types/GroupsWithIncludesResponse.mjs +2 -0
  245. package/dist/esm/api/types/SingleUserValue.d.mts +1 -1
  246. package/dist/esm/api/types/SyncGroupWithIncludes.d.mts +15 -0
  247. package/dist/esm/api/types/SyncGroupWithIncludes.mjs +11 -0
  248. package/dist/esm/api/types/index.d.mts +16 -0
  249. package/dist/esm/api/types/index.mjs +16 -0
  250. package/dist/esm/index.d.mts +4 -0
  251. package/dist/esm/index.mjs +6 -0
  252. package/dist/esm/oauth/BaseAuth.d.mts +66 -0
  253. package/dist/esm/oauth/BaseAuth.mjs +109 -0
  254. package/dist/esm/oauth/NativeAppAuth.d.mts +32 -0
  255. package/dist/esm/oauth/NativeAppAuth.mjs +31 -0
  256. package/dist/esm/oauth/SPAAuth.d.mts +38 -0
  257. package/dist/esm/oauth/SPAAuth.mjs +92 -0
  258. package/dist/esm/oauth/ServerToServerAuth.d.mts +17 -0
  259. package/dist/esm/oauth/ServerToServerAuth.mjs +45 -0
  260. package/dist/esm/oauth/TokenManager.d.mts +83 -0
  261. package/dist/esm/oauth/TokenManager.mjs +170 -0
  262. package/dist/esm/oauth/WebAppAuth.d.mts +29 -0
  263. package/dist/esm/oauth/WebAppAuth.mjs +84 -0
  264. package/dist/esm/oauth/errors.d.mts +41 -0
  265. package/dist/esm/oauth/errors.mjs +72 -0
  266. package/dist/esm/oauth/http.d.mts +70 -0
  267. package/dist/esm/oauth/http.mjs +274 -0
  268. package/dist/esm/oauth/index.d.mts +34 -0
  269. package/dist/esm/oauth/index.mjs +30 -0
  270. package/dist/esm/oauth/logger.d.mts +17 -0
  271. package/dist/esm/oauth/logger.mjs +15 -0
  272. package/dist/esm/oauth/pkce.d.mts +30 -0
  273. package/dist/esm/oauth/pkce.mjs +98 -0
  274. package/dist/esm/oauth/validation.d.mts +17 -0
  275. package/dist/esm/oauth/validation.mjs +51 -0
  276. package/dist/esm/version.d.mts +1 -1
  277. package/dist/esm/version.mjs +1 -1
  278. package/package.json +23 -1
  279. package/reference.md +1318 -586
@@ -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";
@@ -32,16 +32,16 @@ export declare class MetadataClient {
32
32
  * @example
33
33
  * await client.metadata.bulkUpdate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
34
34
  * data: {
35
- * file_ids: ["6597eb4d-3137-4760-9c5e-6f59479908b8", "a4f42a72-f640-44fc-b9a9-2533d9d64df1"],
35
+ * file_ids: ["5ae2cb10-9340-4bdb-8681-de8776df1cc8", "8310dcf0-91ba-4ae6-8b3f-e929a1fb050a"],
36
36
  * values: [{
37
- * field_definition_id: "2626b9ed-d32a-4eab-871e-038a956338c4",
37
+ * field_definition_id: "93a78d3b-e319-4c80-af1d-f5dd0bd39db5",
38
38
  * value: [
39
39
  * {
40
- * "id": "e0bfb74f-2139-4b25-81bd-18a8cc22cccc",
40
+ * "id": "5da35091-57b7-4931-bfce-19ce4a6bb311",
41
41
  * "type": "user"
42
42
  * },
43
43
  * {
44
- * "id": "edff6fbf-9b0c-44d8-81f9-f56a42a0263e",
44
+ * "id": "cb9b133e-33bb-4a37-bff5-adc2554d5689",
45
45
  * "type": "account_user_group"
46
46
  * }
47
47
  * ]