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
@@ -93,18 +93,18 @@ class CommentsClient {
93
93
  }
94
94
  __deleteAttachment(account_id, comment_id, attachment_id, requestOptions) {
95
95
  return __awaiter(this, void 0, void 0, function* () {
96
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
96
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
97
97
  const _authRequest = yield this._options.authProvider.getAuthRequest();
98
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
99
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
100
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/comments/${core.url.encodePathParam(comment_id)}/attachments/${core.url.encodePathParam(attachment_id)}`),
98
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
99
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
100
+ 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)}/comments/${core.url.encodePathParam(comment_id)}/attachments/${core.url.encodePathParam(attachment_id)}`),
101
101
  method: "DELETE",
102
102
  headers: _headers,
103
103
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
104
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
105
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
104
+ 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,
105
+ 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,
106
106
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
107
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
107
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
108
108
  logging: this._options.logging,
109
109
  });
110
110
  if (_response.ok) {
@@ -167,21 +167,21 @@ class CommentsClient {
167
167
  }
168
168
  __createAttachment(account_id, comment_id, request, requestOptions) {
169
169
  return __awaiter(this, void 0, void 0, function* () {
170
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
170
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
171
171
  const _authRequest = yield this._options.authProvider.getAuthRequest();
172
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
173
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
174
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/comments/${core.url.encodePathParam(comment_id)}/attachments`),
172
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
173
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
174
+ 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)}/comments/${core.url.encodePathParam(comment_id)}/attachments`),
175
175
  method: "POST",
176
176
  headers: _headers,
177
177
  contentType: "application/json",
178
178
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
179
179
  requestType: "json",
180
180
  body: request,
181
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
182
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
181
+ 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,
182
+ 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,
183
183
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
184
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
184
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
185
185
  logging: this._options.logging,
186
186
  });
187
187
  if (_response.ok) {
@@ -241,23 +241,23 @@ class CommentsClient {
241
241
  }
242
242
  __show(account_id_1, comment_id_1) {
243
243
  return __awaiter(this, arguments, void 0, function* (account_id, comment_id, request = {}, requestOptions) {
244
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
244
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
245
245
  const { timestamp_as_timecode: timestampAsTimecode, include } = request;
246
246
  const _queryParams = {
247
247
  timestamp_as_timecode: timestampAsTimecode,
248
248
  include: include != null ? include : undefined,
249
249
  };
250
250
  const _authRequest = yield this._options.authProvider.getAuthRequest();
251
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
252
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
253
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/comments/${core.url.encodePathParam(comment_id)}`),
251
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
252
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
253
+ 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)}/comments/${core.url.encodePathParam(comment_id)}`),
254
254
  method: "GET",
255
255
  headers: _headers,
256
256
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
257
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
258
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
257
+ 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,
258
+ 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,
259
259
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
260
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
260
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
261
261
  logging: this._options.logging,
262
262
  });
263
263
  if (_response.ok) {
@@ -313,18 +313,18 @@ class CommentsClient {
313
313
  }
314
314
  __delete(account_id, comment_id, requestOptions) {
315
315
  return __awaiter(this, void 0, void 0, function* () {
316
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
316
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
317
317
  const _authRequest = yield this._options.authProvider.getAuthRequest();
318
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
319
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
320
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/comments/${core.url.encodePathParam(comment_id)}`),
318
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
319
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
320
+ 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)}/comments/${core.url.encodePathParam(comment_id)}`),
321
321
  method: "DELETE",
322
322
  headers: _headers,
323
323
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
324
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
325
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
324
+ 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,
325
+ 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,
326
326
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
327
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
327
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
328
328
  logging: this._options.logging,
329
329
  });
330
330
  if (_response.ok) {
@@ -404,25 +404,25 @@ class CommentsClient {
404
404
  }
405
405
  __update(account_id, comment_id, request, requestOptions) {
406
406
  return __awaiter(this, void 0, void 0, function* () {
407
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
407
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
408
408
  const { timestamp_as_timecode: timestampAsTimecode } = request, _body = __rest(request, ["timestamp_as_timecode"]);
409
409
  const _queryParams = {
410
410
  timestamp_as_timecode: timestampAsTimecode,
411
411
  };
412
412
  const _authRequest = yield this._options.authProvider.getAuthRequest();
413
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
414
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
415
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/comments/${core.url.encodePathParam(comment_id)}`),
413
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
414
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
415
+ 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)}/comments/${core.url.encodePathParam(comment_id)}`),
416
416
  method: "PATCH",
417
417
  headers: _headers,
418
418
  contentType: "application/json",
419
419
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
420
420
  requestType: "json",
421
421
  body: _body,
422
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
423
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
422
+ 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,
423
+ 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,
424
424
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
425
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
425
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
426
426
  logging: this._options.logging,
427
427
  });
428
428
  if (_response.ok) {
@@ -485,17 +485,17 @@ class CommentsClient {
485
485
  return __awaiter(this, arguments, void 0, function* (account_id, file_id, _request = {}, requestOptions) {
486
486
  var _a, _b;
487
487
  const list = core.HttpResponsePromise.interceptFunction((_requestUrl) => __awaiter(this, void 0, void 0, function* () {
488
- var _a, _b, _c, _d, _e, _f, _g, _h;
488
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
489
489
  const _authRequest = yield this._options.authProvider.getAuthRequest();
490
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
491
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
490
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
491
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
492
492
  url: _requestUrl,
493
493
  method: "GET",
494
494
  headers: _headers,
495
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
496
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
495
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
496
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
497
497
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
498
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
498
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
499
499
  logging: this._options.logging,
500
500
  });
501
501
  if (_response.ok) {
@@ -602,25 +602,25 @@ class CommentsClient {
602
602
  }
603
603
  __create(account_id, file_id, request, requestOptions) {
604
604
  return __awaiter(this, void 0, void 0, function* () {
605
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
605
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
606
606
  const { timestamp_as_timecode: timestampAsTimecode } = request, _body = __rest(request, ["timestamp_as_timecode"]);
607
607
  const _queryParams = {
608
608
  timestamp_as_timecode: timestampAsTimecode,
609
609
  };
610
610
  const _authRequest = yield this._options.authProvider.getAuthRequest();
611
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
612
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
613
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/files/${core.url.encodePathParam(file_id)}/comments`),
611
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
612
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
613
+ 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)}/files/${core.url.encodePathParam(file_id)}/comments`),
614
614
  method: "POST",
615
615
  headers: _headers,
616
616
  contentType: "application/json",
617
617
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
618
618
  requestType: "json",
619
619
  body: _body,
620
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
621
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
620
+ 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,
621
+ 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,
622
622
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
623
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
623
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
624
624
  logging: this._options.logging,
625
625
  });
626
626
  if (_response.ok) {
@@ -0,0 +1,145 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as Frameio from "../../../index.js";
5
+ export declare namespace CustomActionsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ /**
11
+ * Manage Custom Actions and related operations.
12
+ */
13
+ export declare class CustomActionsClient {
14
+ protected readonly _options: NormalizedClientOptionsWithAuth<CustomActionsClient.Options>;
15
+ constructor(options: CustomActionsClient.Options);
16
+ /**
17
+ * Show custom action details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
18
+ *
19
+ * @param {Frameio.Uuid} account_id
20
+ * @param {Frameio.Uuid} action_id
21
+ * @param {Frameio.ActionsShowRequest} request
22
+ * @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
23
+ *
24
+ * @throws {@link Frameio.BadRequestError}
25
+ * @throws {@link Frameio.UnauthorizedError}
26
+ * @throws {@link Frameio.ForbiddenError}
27
+ * @throws {@link Frameio.NotFoundError}
28
+ * @throws {@link Frameio.ConflictError}
29
+ * @throws {@link Frameio.UnprocessableEntityError}
30
+ * @throws {@link Frameio.TooManyRequestsError}
31
+ *
32
+ * @example
33
+ * await client.customActions.actionsShow("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
34
+ * include: "creator"
35
+ * })
36
+ */
37
+ actionsShow(account_id: Frameio.Uuid, action_id: Frameio.Uuid, request?: Frameio.ActionsShowRequest, requestOptions?: CustomActionsClient.RequestOptions): core.HttpResponsePromise<Frameio.ActionWithIncludesResponse>;
38
+ private __actionsShow;
39
+ /**
40
+ * Delete a custom action. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
41
+ *
42
+ * @param {Frameio.Uuid} account_id
43
+ * @param {Frameio.Uuid} action_id
44
+ * @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @throws {@link Frameio.BadRequestError}
47
+ * @throws {@link Frameio.UnauthorizedError}
48
+ * @throws {@link Frameio.ForbiddenError}
49
+ * @throws {@link Frameio.NotFoundError}
50
+ * @throws {@link Frameio.ConflictError}
51
+ * @throws {@link Frameio.UnprocessableEntityError}
52
+ * @throws {@link Frameio.TooManyRequestsError}
53
+ *
54
+ * @example
55
+ * await client.customActions.actionsDelete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
56
+ */
57
+ actionsDelete(account_id: Frameio.Uuid, action_id: Frameio.Uuid, requestOptions?: CustomActionsClient.RequestOptions): core.HttpResponsePromise<void>;
58
+ private __actionsDelete;
59
+ /**
60
+ * Update custom action details. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
61
+ *
62
+ * @param {Frameio.Uuid} account_id
63
+ * @param {Frameio.Uuid} action_id
64
+ * @param {Frameio.ActionUpdateParams} request
65
+ * @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @throws {@link Frameio.BadRequestError}
68
+ * @throws {@link Frameio.UnauthorizedError}
69
+ * @throws {@link Frameio.ForbiddenError}
70
+ * @throws {@link Frameio.NotFoundError}
71
+ * @throws {@link Frameio.ConflictError}
72
+ * @throws {@link Frameio.UnprocessableEntityError}
73
+ * @throws {@link Frameio.TooManyRequestsError}
74
+ *
75
+ * @example
76
+ * await client.customActions.actionsUpdate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
77
+ * data: {
78
+ * active: true,
79
+ * description: "customizing our workflow",
80
+ * event: "my.event",
81
+ * multi_asset: true,
82
+ * name: "First Custom Action",
83
+ * timeout: 7,
84
+ * url: "https://example.com/custom-action"
85
+ * }
86
+ * })
87
+ */
88
+ actionsUpdate(account_id: Frameio.Uuid, action_id: Frameio.Uuid, request: Frameio.ActionUpdateParams, requestOptions?: CustomActionsClient.RequestOptions): core.HttpResponsePromise<Frameio.ActionResponse>;
89
+ private __actionsUpdate;
90
+ /**
91
+ * List actions in a given workspace. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
92
+ *
93
+ * @param {Frameio.Uuid} account_id
94
+ * @param {Frameio.Uuid} workspace_id
95
+ * @param {Frameio.ActionsIndexRequest} request
96
+ * @param {CustomActionsClient.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.customActions.actionsIndex("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
108
+ * include: "creator",
109
+ * after: "<opaque_cursor>",
110
+ * page_size: 10,
111
+ * include_total_count: false
112
+ * })
113
+ */
114
+ actionsIndex(account_id: Frameio.Uuid, workspace_id: Frameio.Uuid, request?: Frameio.ActionsIndexRequest, requestOptions?: CustomActionsClient.RequestOptions): core.HttpResponsePromise<Frameio.ActionsWithIncludesResponse>;
115
+ private __actionsIndex;
116
+ /**
117
+ * Create a custom action in a workspace. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
118
+ *
119
+ * @param {Frameio.Uuid} account_id
120
+ * @param {Frameio.Uuid} workspace_id
121
+ * @param {Frameio.ActionCreateParams} request
122
+ * @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
123
+ *
124
+ * @throws {@link Frameio.BadRequestError}
125
+ * @throws {@link Frameio.UnauthorizedError}
126
+ * @throws {@link Frameio.ForbiddenError}
127
+ * @throws {@link Frameio.NotFoundError}
128
+ * @throws {@link Frameio.ConflictError}
129
+ * @throws {@link Frameio.UnprocessableEntityError}
130
+ * @throws {@link Frameio.TooManyRequestsError}
131
+ *
132
+ * @example
133
+ * await client.customActions.actionsCreate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
134
+ * data: {
135
+ * description: "customizing our workflow",
136
+ * event: "my.event",
137
+ * name: "First Custom Action",
138
+ * timeout: 7,
139
+ * url: "https://example.com/custom-action"
140
+ * }
141
+ * })
142
+ */
143
+ actionsCreate(account_id: Frameio.Uuid, workspace_id: Frameio.Uuid, request: Frameio.ActionCreateParams, requestOptions?: CustomActionsClient.RequestOptions): core.HttpResponsePromise<Frameio.ActionCreateResponse>;
144
+ private __actionsCreate;
145
+ }