frameio 2.0.3 → 3.0.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 (786) hide show
  1. package/dist/cjs/BaseClient.d.ts +40 -0
  2. package/dist/cjs/BaseClient.js +62 -0
  3. package/dist/cjs/Client.d.ts +62 -68
  4. package/dist/cjs/Client.js +65 -39
  5. package/dist/cjs/api/errors/BadRequestError.d.ts +2 -2
  6. package/dist/cjs/api/errors/BadRequestError.js +5 -1
  7. package/dist/cjs/api/errors/ConflictError.d.ts +2 -2
  8. package/dist/cjs/api/errors/ConflictError.js +5 -1
  9. package/dist/cjs/api/errors/ForbiddenError.d.ts +2 -2
  10. package/dist/cjs/api/errors/ForbiddenError.js +5 -1
  11. package/dist/cjs/api/errors/NotFoundError.d.ts +2 -2
  12. package/dist/cjs/api/errors/NotFoundError.js +5 -1
  13. package/dist/cjs/api/errors/TooManyRequestsError.d.ts +2 -2
  14. package/dist/cjs/api/errors/TooManyRequestsError.js +5 -1
  15. package/dist/cjs/api/errors/UnauthorizedError.d.ts +2 -2
  16. package/dist/cjs/api/errors/UnauthorizedError.js +5 -1
  17. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +1 -1
  18. package/dist/cjs/api/errors/UnprocessableEntityError.js +5 -1
  19. package/dist/cjs/api/errors/index.d.ts +3 -3
  20. package/dist/cjs/api/errors/index.js +3 -3
  21. package/dist/cjs/api/index.d.ts +1 -1
  22. package/dist/cjs/api/index.js +1 -1
  23. package/dist/cjs/api/resources/accountPermissions/client/Client.d.ts +11 -30
  24. package/dist/cjs/api/resources/accountPermissions/client/Client.js +71 -86
  25. package/dist/cjs/api/resources/accountPermissions/client/index.d.ts +0 -1
  26. package/dist/cjs/api/resources/accountPermissions/client/requests/AccountPermissionsIndexRequest.d.ts +1 -3
  27. package/dist/cjs/api/resources/accountPermissions/client/requests/index.d.ts +1 -1
  28. package/dist/cjs/api/resources/accountPermissions/exports.d.ts +2 -0
  29. package/dist/cjs/api/resources/accountPermissions/exports.js +21 -0
  30. package/dist/cjs/api/resources/accounts/client/Client.d.ts +13 -32
  31. package/dist/cjs/api/resources/accounts/client/Client.js +89 -124
  32. package/dist/cjs/api/resources/accounts/client/index.d.ts +0 -1
  33. package/dist/cjs/api/resources/accounts/client/requests/AccountsIndexRequest.d.ts +1 -3
  34. package/dist/cjs/api/resources/accounts/client/requests/AuditlogIndexRequest.d.ts +1 -5
  35. package/dist/cjs/api/resources/accounts/client/requests/index.d.ts +2 -2
  36. package/dist/cjs/api/resources/accounts/exports.d.ts +2 -0
  37. package/dist/cjs/api/resources/accounts/exports.js +21 -0
  38. package/dist/cjs/api/resources/comments/client/Client.d.ts +28 -47
  39. package/dist/cjs/api/resources/comments/client/Client.js +143 -210
  40. package/dist/cjs/api/resources/comments/client/index.d.ts +0 -1
  41. package/dist/cjs/api/resources/comments/client/requests/CommentsIndexRequest.d.ts +1 -5
  42. package/dist/cjs/api/resources/comments/client/requests/CommentsShowRequest.d.ts +1 -3
  43. package/dist/cjs/api/resources/comments/client/requests/CreateCommentParams.d.ts +5 -6
  44. package/dist/cjs/api/resources/comments/client/requests/UpdateCommentParams.d.ts +6 -7
  45. package/dist/cjs/api/resources/comments/client/requests/index.d.ts +4 -4
  46. package/dist/cjs/api/resources/comments/exports.d.ts +2 -0
  47. package/dist/cjs/api/resources/comments/exports.js +21 -0
  48. package/dist/cjs/api/resources/comments/index.d.ts +1 -1
  49. package/dist/cjs/api/resources/comments/index.js +1 -1
  50. package/dist/cjs/api/resources/comments/types/index.d.ts +1 -1
  51. package/dist/cjs/api/resources/comments/types/index.js +1 -1
  52. package/dist/cjs/api/resources/files/client/Client.d.ts +54 -70
  53. package/dist/cjs/api/resources/files/client/Client.js +194 -329
  54. package/dist/cjs/api/resources/files/client/index.d.ts +0 -1
  55. package/dist/cjs/api/resources/files/client/requests/FileCopyParams.d.ts +2 -2
  56. package/dist/cjs/api/resources/files/client/requests/FileCreateParams.d.ts +1 -1
  57. package/dist/cjs/api/resources/files/client/requests/FileMoveParams.d.ts +1 -1
  58. package/dist/cjs/api/resources/files/client/requests/FileUpdateParams.d.ts +1 -1
  59. package/dist/cjs/api/resources/files/client/requests/FilesListRequest.d.ts +1 -4
  60. package/dist/cjs/api/resources/files/client/requests/FilesShowRequest.d.ts +1 -2
  61. package/dist/cjs/api/resources/files/client/requests/index.d.ts +9 -9
  62. package/dist/cjs/api/resources/files/exports.d.ts +2 -0
  63. package/dist/cjs/api/resources/files/exports.js +21 -0
  64. package/dist/cjs/api/resources/files/index.d.ts +1 -1
  65. package/dist/cjs/api/resources/files/index.js +1 -1
  66. package/dist/cjs/api/resources/files/types/index.d.ts +1 -1
  67. package/dist/cjs/api/resources/files/types/index.js +1 -1
  68. package/dist/cjs/api/resources/folders/client/Client.d.ts +40 -58
  69. package/dist/cjs/api/resources/folders/client/Client.js +153 -262
  70. package/dist/cjs/api/resources/folders/client/index.d.ts +0 -1
  71. package/dist/cjs/api/resources/folders/client/requests/FolderCopyParams.d.ts +1 -1
  72. package/dist/cjs/api/resources/folders/client/requests/FolderCreateParams.d.ts +1 -1
  73. package/dist/cjs/api/resources/folders/client/requests/FolderMoveParams.d.ts +1 -1
  74. package/dist/cjs/api/resources/folders/client/requests/FolderUpdateParams.d.ts +1 -1
  75. package/dist/cjs/api/resources/folders/client/requests/FoldersIndexRequest.d.ts +1 -5
  76. package/dist/cjs/api/resources/folders/client/requests/FoldersListRequest.d.ts +1 -4
  77. package/dist/cjs/api/resources/folders/client/requests/FoldersShowRequest.d.ts +1 -2
  78. package/dist/cjs/api/resources/folders/client/requests/index.d.ts +7 -7
  79. package/dist/cjs/api/resources/folders/exports.d.ts +2 -0
  80. package/dist/cjs/api/resources/folders/exports.js +21 -0
  81. package/dist/cjs/api/resources/folders/index.d.ts +1 -1
  82. package/dist/cjs/api/resources/folders/index.js +1 -1
  83. package/dist/cjs/api/resources/folders/types/index.d.ts +1 -1
  84. package/dist/cjs/api/resources/folders/types/index.js +1 -1
  85. package/dist/cjs/api/resources/index.d.ts +24 -24
  86. package/dist/cjs/api/resources/index.js +28 -28
  87. package/dist/cjs/api/resources/metadata/client/Client.d.ts +16 -34
  88. package/dist/cjs/api/resources/metadata/client/Client.js +44 -70
  89. package/dist/cjs/api/resources/metadata/client/index.d.ts +0 -1
  90. package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +2 -2
  91. package/dist/cjs/api/resources/metadata/client/requests/MetadataShowRequest.d.ts +0 -1
  92. package/dist/cjs/api/resources/metadata/client/requests/index.d.ts +2 -2
  93. package/dist/cjs/api/resources/metadata/exports.d.ts +2 -0
  94. package/dist/cjs/api/resources/metadata/exports.js +21 -0
  95. package/dist/cjs/api/resources/metadataFields/client/Client.d.ts +22 -40
  96. package/dist/cjs/api/resources/metadataFields/client/Client.js +77 -131
  97. package/dist/cjs/api/resources/metadataFields/client/index.d.ts +0 -1
  98. package/dist/cjs/api/resources/metadataFields/client/requests/CreateFieldDefinitionParams.d.ts +1 -1
  99. package/dist/cjs/api/resources/metadataFields/client/requests/MetadataFieldDefinitionsIndexRequest.d.ts +1 -4
  100. package/dist/cjs/api/resources/metadataFields/client/requests/UpdateFieldDefinitionParams.d.ts +1 -1
  101. package/dist/cjs/api/resources/metadataFields/client/requests/index.d.ts +3 -3
  102. package/dist/cjs/api/resources/metadataFields/exports.d.ts +2 -0
  103. package/dist/cjs/api/resources/metadataFields/exports.js +21 -0
  104. package/dist/cjs/api/resources/metadataFields/index.d.ts +1 -1
  105. package/dist/cjs/api/resources/metadataFields/index.js +1 -1
  106. package/dist/cjs/api/resources/metadataFields/types/CreateFieldDefinitionParamsData.d.ts +3 -3
  107. package/dist/cjs/api/resources/metadataFields/types/UpdateFieldDefinitionParamsData.d.ts +3 -3
  108. package/dist/cjs/api/resources/metadataFields/types/index.d.ts +1 -1
  109. package/dist/cjs/api/resources/metadataFields/types/index.js +1 -1
  110. package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +22 -41
  111. package/dist/cjs/api/resources/projectPermissions/client/Client.js +104 -141
  112. package/dist/cjs/api/resources/projectPermissions/client/index.d.ts +0 -1
  113. package/dist/cjs/api/resources/projectPermissions/client/requests/ProjectPermissionsIndexRequest.d.ts +1 -3
  114. package/dist/cjs/api/resources/projectPermissions/client/requests/index.d.ts +1 -1
  115. package/dist/cjs/api/resources/projectPermissions/exports.d.ts +2 -0
  116. package/dist/cjs/api/resources/projectPermissions/exports.js +21 -0
  117. package/dist/cjs/api/resources/projects/client/Client.d.ts +28 -47
  118. package/dist/cjs/api/resources/projects/client/Client.js +136 -196
  119. package/dist/cjs/api/resources/projects/client/index.d.ts +0 -1
  120. package/dist/cjs/api/resources/projects/client/requests/ProjectParams.d.ts +1 -1
  121. package/dist/cjs/api/resources/projects/client/requests/ProjectUpdateParams.d.ts +3 -3
  122. package/dist/cjs/api/resources/projects/client/requests/ProjectsIndexRequest.d.ts +1 -4
  123. package/dist/cjs/api/resources/projects/client/requests/ProjectsShowRequest.d.ts +0 -1
  124. package/dist/cjs/api/resources/projects/client/requests/index.d.ts +4 -4
  125. package/dist/cjs/api/resources/projects/client/requests/index.js +3 -0
  126. package/dist/cjs/api/resources/projects/exports.d.ts +2 -0
  127. package/dist/cjs/api/resources/projects/exports.js +21 -0
  128. package/dist/cjs/api/resources/shares/client/Client.d.ts +49 -69
  129. package/dist/cjs/api/resources/shares/client/Client.js +252 -364
  130. package/dist/cjs/api/resources/shares/client/index.d.ts +0 -1
  131. package/dist/cjs/api/resources/shares/client/requests/AddReviewersToShareParams.d.ts +4 -4
  132. package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +1 -1
  133. package/dist/cjs/api/resources/shares/client/requests/RemoveReviewerParams.d.ts +4 -4
  134. package/dist/cjs/api/resources/shares/client/requests/SharesIndexRequest.d.ts +1 -3
  135. package/dist/cjs/api/resources/shares/client/requests/SharesListReviewersRequest.d.ts +1 -3
  136. package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +6 -6
  137. package/dist/cjs/api/resources/shares/client/requests/index.d.ts +7 -7
  138. package/dist/cjs/api/resources/shares/client/requests/index.js +3 -0
  139. package/dist/cjs/api/resources/shares/exports.d.ts +2 -0
  140. package/dist/cjs/api/resources/shares/exports.js +21 -0
  141. package/dist/cjs/api/resources/shares/index.d.ts +1 -1
  142. package/dist/cjs/api/resources/shares/index.js +1 -1
  143. package/dist/cjs/api/resources/shares/types/CreateShareParamsData.d.ts +1 -1
  144. package/dist/cjs/api/resources/users/client/Client.d.ts +10 -28
  145. package/dist/cjs/api/resources/users/client/Client.js +19 -33
  146. package/dist/cjs/api/resources/users/exports.d.ts +2 -0
  147. package/dist/cjs/api/resources/users/exports.js +21 -0
  148. package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +32 -50
  149. package/dist/cjs/api/resources/versionStacks/client/Client.js +122 -207
  150. package/dist/cjs/api/resources/versionStacks/client/index.d.ts +0 -1
  151. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCopyParams.d.ts +1 -1
  152. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackMoveParams.d.ts +1 -1
  153. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStacksIndexRequest.d.ts +1 -4
  154. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStacksListRequest.d.ts +1 -4
  155. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStacksShowRequest.d.ts +1 -2
  156. package/dist/cjs/api/resources/versionStacks/client/requests/index.d.ts +6 -6
  157. package/dist/cjs/api/resources/versionStacks/exports.d.ts +2 -0
  158. package/dist/cjs/api/resources/versionStacks/exports.js +21 -0
  159. package/dist/cjs/api/resources/versionStacks/index.d.ts +1 -1
  160. package/dist/cjs/api/resources/versionStacks/index.js +1 -1
  161. package/dist/cjs/api/resources/versionStacks/types/index.d.ts +1 -1
  162. package/dist/cjs/api/resources/versionStacks/types/index.js +1 -1
  163. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +28 -47
  164. package/dist/cjs/api/resources/webhooks/client/Client.js +136 -196
  165. package/dist/cjs/api/resources/webhooks/client/index.d.ts +0 -1
  166. package/dist/cjs/api/resources/webhooks/client/requests/WebhookCreateParams.d.ts +1 -1
  167. package/dist/cjs/api/resources/webhooks/client/requests/WebhookUpdateParams.d.ts +5 -5
  168. package/dist/cjs/api/resources/webhooks/client/requests/WebhooksIndexRequest.d.ts +1 -4
  169. package/dist/cjs/api/resources/webhooks/client/requests/WebhooksShowRequest.d.ts +0 -1
  170. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +4 -4
  171. package/dist/cjs/api/resources/webhooks/exports.d.ts +2 -0
  172. package/dist/cjs/api/resources/webhooks/exports.js +21 -0
  173. package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +22 -41
  174. package/dist/cjs/api/resources/workspacePermissions/client/Client.js +104 -141
  175. package/dist/cjs/api/resources/workspacePermissions/client/index.d.ts +0 -1
  176. package/dist/cjs/api/resources/workspacePermissions/client/requests/WorkspacePermissionsIndexRequest.d.ts +1 -3
  177. package/dist/cjs/api/resources/workspacePermissions/client/requests/index.d.ts +1 -1
  178. package/dist/cjs/api/resources/workspacePermissions/exports.d.ts +2 -0
  179. package/dist/cjs/api/resources/workspacePermissions/exports.js +21 -0
  180. package/dist/cjs/api/resources/workspaces/client/Client.d.ts +26 -45
  181. package/dist/cjs/api/resources/workspaces/client/Client.js +134 -197
  182. package/dist/cjs/api/resources/workspaces/client/index.d.ts +0 -1
  183. package/dist/cjs/api/resources/workspaces/client/requests/WorkspacesIndexRequest.d.ts +1 -4
  184. package/dist/cjs/api/resources/workspaces/client/requests/WorkspacesShowRequest.d.ts +0 -1
  185. package/dist/cjs/api/resources/workspaces/client/requests/index.d.ts +2 -2
  186. package/dist/cjs/api/resources/workspaces/exports.d.ts +2 -0
  187. package/dist/cjs/api/resources/workspaces/exports.js +21 -0
  188. package/dist/cjs/api/types/Account.d.ts +4 -4
  189. package/dist/cjs/api/types/AccountUserRole.d.ts +2 -2
  190. package/dist/cjs/api/types/AccountUserRolesResponse.d.ts +2 -2
  191. package/dist/cjs/api/types/AccountsResponse.d.ts +2 -2
  192. package/dist/cjs/api/types/AddAssetResponse.d.ts +1 -1
  193. package/dist/cjs/api/types/AssetCommon.d.ts +1 -1
  194. package/dist/cjs/api/types/AssetCommonWithIncludes.d.ts +5 -5
  195. package/dist/cjs/api/types/AssetShareParams.d.ts +5 -5
  196. package/dist/cjs/api/types/AssetWithIncludes.d.ts +3 -3
  197. package/dist/cjs/api/types/AuditLogsWithIncludesResponse.d.ts +2 -2
  198. package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +4 -4
  199. package/dist/cjs/api/types/BadRequest.d.ts +3 -3
  200. package/dist/cjs/api/types/BooleanValue.d.ts +2 -2
  201. package/dist/cjs/api/types/Comment.d.ts +6 -6
  202. package/dist/cjs/api/types/CommentResponse.d.ts +1 -1
  203. package/dist/cjs/api/types/CommentWithIncludes.d.ts +3 -3
  204. package/dist/cjs/api/types/CommentWithIncludesResponse.d.ts +1 -1
  205. package/dist/cjs/api/types/CommentsWithIncludesResponse.d.ts +2 -2
  206. package/dist/cjs/api/types/Conflict.d.ts +3 -3
  207. package/dist/cjs/api/types/DateDefinition.d.ts +3 -4
  208. package/dist/cjs/api/types/DateDefinitionParams.d.ts +3 -4
  209. package/dist/cjs/api/types/DateDefinitionWithIncludes.d.ts +2 -2
  210. package/dist/cjs/api/types/DateValue.d.ts +2 -2
  211. package/dist/cjs/api/types/FieldDefinition.d.ts +3 -3
  212. package/dist/cjs/api/types/FieldDefinitionResponse.d.ts +1 -1
  213. package/dist/cjs/api/types/FieldDefinitionWithIncludes.d.ts +3 -3
  214. package/dist/cjs/api/types/FieldDefinitionsWithIncludesResponse.d.ts +2 -2
  215. package/dist/cjs/api/types/FileAssetsWithIncludesResponse.d.ts +2 -2
  216. package/dist/cjs/api/types/FileCopyResponse.d.ts +1 -1
  217. package/dist/cjs/api/types/FileRemoteUploadResponse.d.ts +1 -1
  218. package/dist/cjs/api/types/FileResponse.d.ts +1 -1
  219. package/dist/cjs/api/types/FileUploadStatus.d.ts +2 -2
  220. package/dist/cjs/api/types/FileUploadStatusResponse.d.ts +1 -1
  221. package/dist/cjs/api/types/FileWithIncludes.d.ts +2 -2
  222. package/dist/cjs/api/types/FileWithIncludesResponse.d.ts +1 -1
  223. package/dist/cjs/api/types/FileWithUploadUrls.d.ts +2 -2
  224. package/dist/cjs/api/types/FileWithUploadUrlsResponse.d.ts +1 -1
  225. package/dist/cjs/api/types/File_.d.ts +3 -3
  226. package/dist/cjs/api/types/Filters.d.ts +9 -9
  227. package/dist/cjs/api/types/Folder.d.ts +2 -2
  228. package/dist/cjs/api/types/FolderAssetsWithIncludesResponse.d.ts +2 -2
  229. package/dist/cjs/api/types/FolderCopyResponse.d.ts +1 -1
  230. package/dist/cjs/api/types/FolderResponse.d.ts +1 -1
  231. package/dist/cjs/api/types/FolderWithIncludes.d.ts +6 -6
  232. package/dist/cjs/api/types/FolderWithIncludesResponse.d.ts +1 -1
  233. package/dist/cjs/api/types/FoldersWithIncludesResponse.d.ts +2 -2
  234. package/dist/cjs/api/types/Forbidden.d.ts +3 -3
  235. package/dist/cjs/api/types/IntegerValue.d.ts +2 -2
  236. package/dist/cjs/api/types/Links.d.ts +1 -1
  237. package/dist/cjs/api/types/LongTextDefinition.d.ts +1 -2
  238. package/dist/cjs/api/types/LongTextDefinitionWithIncludes.d.ts +2 -2
  239. package/dist/cjs/api/types/MediaLinkCommon.d.ts +1 -1
  240. package/dist/cjs/api/types/MediaLinksCollection.d.ts +8 -8
  241. package/dist/cjs/api/types/MetadataField.d.ts +3 -3
  242. package/dist/cjs/api/types/MetadataResponse.d.ts +1 -1
  243. package/dist/cjs/api/types/MetadataWithDefinition.d.ts +1 -1
  244. package/dist/cjs/api/types/MultiSelectValue.d.ts +2 -2
  245. package/dist/cjs/api/types/MultiUserValue.d.ts +3 -3
  246. package/dist/cjs/api/types/NotFound.d.ts +3 -3
  247. package/dist/cjs/api/types/NumberDefinition.d.ts +1 -1
  248. package/dist/cjs/api/types/NumberDefinitionParams.d.ts +1 -1
  249. package/dist/cjs/api/types/NumberDefinitionWithIncludes.d.ts +2 -2
  250. package/dist/cjs/api/types/NumberValue.d.ts +2 -2
  251. package/dist/cjs/api/types/OriginalMediaLink.d.ts +2 -2
  252. package/dist/cjs/api/types/Profile.d.ts +1 -1
  253. package/dist/cjs/api/types/ProfileResponse.d.ts +1 -1
  254. package/dist/cjs/api/types/Project.d.ts +1 -1
  255. package/dist/cjs/api/types/ProjectResponse.d.ts +1 -1
  256. package/dist/cjs/api/types/ProjectUserRolesResponse.d.ts +2 -2
  257. package/dist/cjs/api/types/ProjectWithIncludes.d.ts +3 -3
  258. package/dist/cjs/api/types/ProjectWithIncludesResponse.d.ts +1 -1
  259. package/dist/cjs/api/types/ProjectsWithIncludesResponse.d.ts +2 -2
  260. package/dist/cjs/api/types/RatingDefinition.d.ts +2 -2
  261. package/dist/cjs/api/types/RatingDefinitionParams.d.ts +2 -2
  262. package/dist/cjs/api/types/RatingDefinitionWithIncludes.d.ts +2 -2
  263. package/dist/cjs/api/types/RemoveAssetResponse.d.ts +1 -1
  264. package/dist/cjs/api/types/RenditionMediaLink.d.ts +2 -2
  265. package/dist/cjs/api/types/SelectDefinition.d.ts +3 -3
  266. package/dist/cjs/api/types/SelectDefinitionParams.d.ts +2 -2
  267. package/dist/cjs/api/types/SelectDefinitionWithIncludes.d.ts +2 -2
  268. package/dist/cjs/api/types/SelectMultiDefinition.d.ts +3 -3
  269. package/dist/cjs/api/types/SelectMultiDefinitionParams.d.ts +2 -2
  270. package/dist/cjs/api/types/SelectMultiDefinitionWithIncludes.d.ts +2 -2
  271. package/dist/cjs/api/types/SelectValue.d.ts +2 -2
  272. package/dist/cjs/api/types/Share.d.ts +6 -6
  273. package/dist/cjs/api/types/ShareResponse.d.ts +1 -1
  274. package/dist/cjs/api/types/ShareReviewersResponse.d.ts +2 -2
  275. package/dist/cjs/api/types/SharesResponse.d.ts +2 -2
  276. package/dist/cjs/api/types/SingleUserValue.d.ts +3 -3
  277. package/dist/cjs/api/types/TextDefinition.d.ts +1 -2
  278. package/dist/cjs/api/types/TextDefinitionWithIncludes.d.ts +2 -2
  279. package/dist/cjs/api/types/TextValue.d.ts +2 -2
  280. package/dist/cjs/api/types/ToggleDefinition.d.ts +1 -1
  281. package/dist/cjs/api/types/ToggleDefinitionParams.d.ts +2 -2
  282. package/dist/cjs/api/types/ToggleDefinitionWithIncludes.d.ts +2 -2
  283. package/dist/cjs/api/types/TooManyRequests.d.ts +3 -3
  284. package/dist/cjs/api/types/Unauthorized.d.ts +3 -3
  285. package/dist/cjs/api/types/UnprocessableContent.d.ts +3 -3
  286. package/dist/cjs/api/types/UpdateDateDefinitionParams.d.ts +6 -7
  287. package/dist/cjs/api/types/UpdateLongTextDefinitionParams.d.ts +1 -1
  288. package/dist/cjs/api/types/UpdateNumberDefinitionParams.d.ts +4 -4
  289. package/dist/cjs/api/types/UpdateRatingDefinitionParams.d.ts +5 -5
  290. package/dist/cjs/api/types/UpdateSelectDefinitionParams.d.ts +5 -5
  291. package/dist/cjs/api/types/UpdateSelectMultiDefinitionParams.d.ts +5 -5
  292. package/dist/cjs/api/types/UpdateTextDefinitionParams.d.ts +1 -1
  293. package/dist/cjs/api/types/UpdateToggleDefinitionParams.d.ts +3 -3
  294. package/dist/cjs/api/types/UpdateUserMultiDefinitionParams.d.ts +3 -4
  295. package/dist/cjs/api/types/UpdateUserRolesResponse.d.ts +1 -1
  296. package/dist/cjs/api/types/UpdateUserSingleDefinitionParams.d.ts +3 -4
  297. package/dist/cjs/api/types/User.d.ts +5 -5
  298. package/dist/cjs/api/types/UserMultiDefinition.d.ts +0 -1
  299. package/dist/cjs/api/types/UserMultiDefinitionParams.d.ts +1 -2
  300. package/dist/cjs/api/types/UserMultiDefinitionWithIncludes.d.ts +2 -2
  301. package/dist/cjs/api/types/UserRole.d.ts +1 -1
  302. package/dist/cjs/api/types/UserSingleDefinition.d.ts +0 -1
  303. package/dist/cjs/api/types/UserSingleDefinitionParams.d.ts +1 -2
  304. package/dist/cjs/api/types/UserSingleDefinitionWithIncludes.d.ts +2 -2
  305. package/dist/cjs/api/types/VersionStack.d.ts +2 -2
  306. package/dist/cjs/api/types/VersionStackAssetsWithIncludesResponse.d.ts +2 -2
  307. package/dist/cjs/api/types/VersionStackCopyResponse.d.ts +1 -1
  308. package/dist/cjs/api/types/VersionStackResponse.d.ts +1 -1
  309. package/dist/cjs/api/types/VersionStackWithIncludes.d.ts +6 -6
  310. package/dist/cjs/api/types/VersionStackWithIncludesResponse.d.ts +1 -1
  311. package/dist/cjs/api/types/VersionStacksWithIncludesResponse.d.ts +2 -2
  312. package/dist/cjs/api/types/Webhook.d.ts +3 -3
  313. package/dist/cjs/api/types/WebhookCreateResponse.d.ts +1 -1
  314. package/dist/cjs/api/types/WebhookResponse.d.ts +1 -1
  315. package/dist/cjs/api/types/WebhookWithIncludes.d.ts +2 -2
  316. package/dist/cjs/api/types/WebhookWithIncludesResponse.d.ts +1 -1
  317. package/dist/cjs/api/types/WebhooksWithIncludesResponse.d.ts +2 -2
  318. package/dist/cjs/api/types/WorkspaceParams.d.ts +1 -1
  319. package/dist/cjs/api/types/WorkspaceResponse.d.ts +1 -1
  320. package/dist/cjs/api/types/WorkspaceUserRolesResponse.d.ts +2 -2
  321. package/dist/cjs/api/types/WorkspaceWithIncludes.d.ts +2 -2
  322. package/dist/cjs/api/types/WorkspaceWithIncludesResponse.d.ts +1 -1
  323. package/dist/cjs/api/types/WorkspacesWithIncludesResponse.d.ts +2 -2
  324. package/dist/cjs/api/types/index.d.ts +143 -143
  325. package/dist/cjs/api/types/index.js +143 -143
  326. package/dist/cjs/auth/BearerAuthProvider.d.ts +20 -0
  327. package/dist/cjs/auth/BearerAuthProvider.js +79 -0
  328. package/dist/cjs/auth/index.d.ts +1 -0
  329. package/dist/cjs/auth/index.js +5 -0
  330. package/dist/cjs/core/auth/AuthProvider.d.ts +5 -2
  331. package/dist/cjs/core/auth/BearerToken.d.ts +3 -1
  332. package/dist/cjs/core/auth/BearerToken.js +7 -6
  333. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
  334. package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
  335. package/dist/cjs/core/auth/index.d.ts +1 -0
  336. package/dist/cjs/core/auth/index.js +3 -1
  337. package/dist/cjs/core/exports.d.ts +2 -0
  338. package/dist/cjs/core/exports.js +18 -0
  339. package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
  340. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +5 -6
  341. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +4 -4
  342. package/dist/cjs/core/fetcher/Fetcher.d.ts +12 -6
  343. package/dist/cjs/core/fetcher/Fetcher.js +210 -9
  344. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
  345. package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
  346. package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
  347. package/dist/cjs/core/fetcher/getRequestBody.js +4 -0
  348. package/dist/cjs/core/fetcher/getResponseBody.js +21 -7
  349. package/dist/cjs/core/fetcher/index.d.ts +2 -0
  350. package/dist/cjs/core/fetcher/index.js +3 -1
  351. package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
  352. package/dist/cjs/core/fetcher/makePassthroughRequest.js +135 -0
  353. package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
  354. package/dist/cjs/core/fetcher/makeRequest.js +32 -13
  355. package/dist/cjs/core/fetcher/requestWithRetries.js +3 -12
  356. package/dist/cjs/core/fetcher/signals.d.ts +1 -7
  357. package/dist/cjs/core/fetcher/signals.js +0 -12
  358. package/dist/cjs/core/headers.d.ts +2 -2
  359. package/dist/cjs/core/headers.js +6 -4
  360. package/dist/cjs/core/index.d.ts +4 -2
  361. package/dist/cjs/core/index.js +5 -3
  362. package/dist/cjs/core/logging/exports.d.ts +18 -0
  363. package/dist/cjs/core/logging/exports.js +45 -0
  364. package/dist/cjs/core/logging/index.d.ts +1 -0
  365. package/dist/cjs/core/logging/index.js +17 -0
  366. package/dist/cjs/core/logging/logger.d.ts +126 -0
  367. package/dist/cjs/core/logging/logger.js +144 -0
  368. package/dist/cjs/core/pagination/Page.d.ts +33 -0
  369. package/dist/cjs/core/pagination/Page.js +101 -0
  370. package/dist/cjs/core/pagination/exports.d.ts +1 -0
  371. package/dist/cjs/core/pagination/exports.js +2 -0
  372. package/dist/cjs/core/pagination/index.d.ts +1 -0
  373. package/dist/cjs/core/pagination/index.js +5 -0
  374. package/dist/cjs/core/runtime/runtime.js +17 -15
  375. package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
  376. package/dist/cjs/core/url/encodePathParam.js +21 -0
  377. package/dist/cjs/core/url/index.d.ts +1 -0
  378. package/dist/cjs/core/url/index.js +3 -1
  379. package/dist/cjs/core/url/join.js +3 -4
  380. package/dist/cjs/errors/FrameioError.d.ts +1 -1
  381. package/dist/cjs/errors/FrameioError.js +6 -2
  382. package/dist/cjs/errors/FrameioTimeoutError.js +5 -1
  383. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
  384. package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
  385. package/dist/cjs/exports.d.ts +1 -0
  386. package/dist/cjs/exports.js +17 -0
  387. package/dist/cjs/index.d.ts +3 -1
  388. package/dist/cjs/index.js +8 -4
  389. package/dist/cjs/version.d.ts +1 -1
  390. package/dist/cjs/version.js +1 -1
  391. package/dist/esm/BaseClient.d.mts +40 -0
  392. package/dist/esm/BaseClient.mjs +25 -0
  393. package/dist/esm/Client.d.mts +62 -68
  394. package/dist/esm/Client.mjs +66 -40
  395. package/dist/esm/api/errors/BadRequestError.d.mts +2 -2
  396. package/dist/esm/api/errors/BadRequestError.mjs +5 -1
  397. package/dist/esm/api/errors/ConflictError.d.mts +2 -2
  398. package/dist/esm/api/errors/ConflictError.mjs +5 -1
  399. package/dist/esm/api/errors/ForbiddenError.d.mts +2 -2
  400. package/dist/esm/api/errors/ForbiddenError.mjs +5 -1
  401. package/dist/esm/api/errors/NotFoundError.d.mts +2 -2
  402. package/dist/esm/api/errors/NotFoundError.mjs +5 -1
  403. package/dist/esm/api/errors/TooManyRequestsError.d.mts +2 -2
  404. package/dist/esm/api/errors/TooManyRequestsError.mjs +5 -1
  405. package/dist/esm/api/errors/UnauthorizedError.d.mts +2 -2
  406. package/dist/esm/api/errors/UnauthorizedError.mjs +5 -1
  407. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -1
  408. package/dist/esm/api/errors/UnprocessableEntityError.mjs +5 -1
  409. package/dist/esm/api/errors/index.d.mts +3 -3
  410. package/dist/esm/api/errors/index.mjs +3 -3
  411. package/dist/esm/api/index.d.mts +1 -1
  412. package/dist/esm/api/index.mjs +1 -1
  413. package/dist/esm/api/resources/accountPermissions/client/Client.d.mts +11 -30
  414. package/dist/esm/api/resources/accountPermissions/client/Client.mjs +69 -84
  415. package/dist/esm/api/resources/accountPermissions/client/index.d.mts +0 -1
  416. package/dist/esm/api/resources/accountPermissions/client/requests/AccountPermissionsIndexRequest.d.mts +1 -3
  417. package/dist/esm/api/resources/accountPermissions/client/requests/index.d.mts +1 -1
  418. package/dist/esm/api/resources/accountPermissions/exports.d.mts +2 -0
  419. package/dist/esm/api/resources/accountPermissions/exports.mjs +3 -0
  420. package/dist/esm/api/resources/accounts/client/Client.d.mts +13 -32
  421. package/dist/esm/api/resources/accounts/client/Client.mjs +87 -122
  422. package/dist/esm/api/resources/accounts/client/index.d.mts +0 -1
  423. package/dist/esm/api/resources/accounts/client/requests/AccountsIndexRequest.d.mts +1 -3
  424. package/dist/esm/api/resources/accounts/client/requests/AuditlogIndexRequest.d.mts +1 -5
  425. package/dist/esm/api/resources/accounts/client/requests/index.d.mts +2 -2
  426. package/dist/esm/api/resources/accounts/exports.d.mts +2 -0
  427. package/dist/esm/api/resources/accounts/exports.mjs +3 -0
  428. package/dist/esm/api/resources/comments/client/Client.d.mts +28 -47
  429. package/dist/esm/api/resources/comments/client/Client.mjs +141 -208
  430. package/dist/esm/api/resources/comments/client/index.d.mts +0 -1
  431. package/dist/esm/api/resources/comments/client/requests/CommentsIndexRequest.d.mts +1 -5
  432. package/dist/esm/api/resources/comments/client/requests/CommentsShowRequest.d.mts +1 -3
  433. package/dist/esm/api/resources/comments/client/requests/CreateCommentParams.d.mts +5 -6
  434. package/dist/esm/api/resources/comments/client/requests/UpdateCommentParams.d.mts +6 -7
  435. package/dist/esm/api/resources/comments/client/requests/index.d.mts +4 -4
  436. package/dist/esm/api/resources/comments/exports.d.mts +2 -0
  437. package/dist/esm/api/resources/comments/exports.mjs +3 -0
  438. package/dist/esm/api/resources/comments/index.d.mts +1 -1
  439. package/dist/esm/api/resources/comments/index.mjs +1 -1
  440. package/dist/esm/api/resources/comments/types/index.d.mts +1 -1
  441. package/dist/esm/api/resources/comments/types/index.mjs +1 -1
  442. package/dist/esm/api/resources/files/client/Client.d.mts +54 -70
  443. package/dist/esm/api/resources/files/client/Client.mjs +192 -327
  444. package/dist/esm/api/resources/files/client/index.d.mts +0 -1
  445. package/dist/esm/api/resources/files/client/requests/FileCopyParams.d.mts +2 -2
  446. package/dist/esm/api/resources/files/client/requests/FileCreateParams.d.mts +1 -1
  447. package/dist/esm/api/resources/files/client/requests/FileMoveParams.d.mts +1 -1
  448. package/dist/esm/api/resources/files/client/requests/FileUpdateParams.d.mts +1 -1
  449. package/dist/esm/api/resources/files/client/requests/FilesListRequest.d.mts +1 -4
  450. package/dist/esm/api/resources/files/client/requests/FilesShowRequest.d.mts +1 -2
  451. package/dist/esm/api/resources/files/client/requests/index.d.mts +9 -9
  452. package/dist/esm/api/resources/files/exports.d.mts +2 -0
  453. package/dist/esm/api/resources/files/exports.mjs +3 -0
  454. package/dist/esm/api/resources/files/index.d.mts +1 -1
  455. package/dist/esm/api/resources/files/index.mjs +1 -1
  456. package/dist/esm/api/resources/files/types/index.d.mts +1 -1
  457. package/dist/esm/api/resources/files/types/index.mjs +1 -1
  458. package/dist/esm/api/resources/folders/client/Client.d.mts +40 -58
  459. package/dist/esm/api/resources/folders/client/Client.mjs +151 -260
  460. package/dist/esm/api/resources/folders/client/index.d.mts +0 -1
  461. package/dist/esm/api/resources/folders/client/requests/FolderCopyParams.d.mts +1 -1
  462. package/dist/esm/api/resources/folders/client/requests/FolderCreateParams.d.mts +1 -1
  463. package/dist/esm/api/resources/folders/client/requests/FolderMoveParams.d.mts +1 -1
  464. package/dist/esm/api/resources/folders/client/requests/FolderUpdateParams.d.mts +1 -1
  465. package/dist/esm/api/resources/folders/client/requests/FoldersIndexRequest.d.mts +1 -5
  466. package/dist/esm/api/resources/folders/client/requests/FoldersListRequest.d.mts +1 -4
  467. package/dist/esm/api/resources/folders/client/requests/FoldersShowRequest.d.mts +1 -2
  468. package/dist/esm/api/resources/folders/client/requests/index.d.mts +7 -7
  469. package/dist/esm/api/resources/folders/exports.d.mts +2 -0
  470. package/dist/esm/api/resources/folders/exports.mjs +3 -0
  471. package/dist/esm/api/resources/folders/index.d.mts +1 -1
  472. package/dist/esm/api/resources/folders/index.mjs +1 -1
  473. package/dist/esm/api/resources/folders/types/index.d.mts +1 -1
  474. package/dist/esm/api/resources/folders/types/index.mjs +1 -1
  475. package/dist/esm/api/resources/index.d.mts +24 -24
  476. package/dist/esm/api/resources/index.mjs +24 -24
  477. package/dist/esm/api/resources/metadata/client/Client.d.mts +16 -34
  478. package/dist/esm/api/resources/metadata/client/Client.mjs +42 -68
  479. package/dist/esm/api/resources/metadata/client/index.d.mts +0 -1
  480. package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +2 -2
  481. package/dist/esm/api/resources/metadata/client/requests/MetadataShowRequest.d.mts +0 -1
  482. package/dist/esm/api/resources/metadata/client/requests/index.d.mts +2 -2
  483. package/dist/esm/api/resources/metadata/exports.d.mts +2 -0
  484. package/dist/esm/api/resources/metadata/exports.mjs +3 -0
  485. package/dist/esm/api/resources/metadataFields/client/Client.d.mts +22 -40
  486. package/dist/esm/api/resources/metadataFields/client/Client.mjs +75 -129
  487. package/dist/esm/api/resources/metadataFields/client/index.d.mts +0 -1
  488. package/dist/esm/api/resources/metadataFields/client/requests/CreateFieldDefinitionParams.d.mts +1 -1
  489. package/dist/esm/api/resources/metadataFields/client/requests/MetadataFieldDefinitionsIndexRequest.d.mts +1 -4
  490. package/dist/esm/api/resources/metadataFields/client/requests/UpdateFieldDefinitionParams.d.mts +1 -1
  491. package/dist/esm/api/resources/metadataFields/client/requests/index.d.mts +3 -3
  492. package/dist/esm/api/resources/metadataFields/exports.d.mts +2 -0
  493. package/dist/esm/api/resources/metadataFields/exports.mjs +3 -0
  494. package/dist/esm/api/resources/metadataFields/index.d.mts +1 -1
  495. package/dist/esm/api/resources/metadataFields/index.mjs +1 -1
  496. package/dist/esm/api/resources/metadataFields/types/CreateFieldDefinitionParamsData.d.mts +3 -3
  497. package/dist/esm/api/resources/metadataFields/types/UpdateFieldDefinitionParamsData.d.mts +3 -3
  498. package/dist/esm/api/resources/metadataFields/types/index.d.mts +1 -1
  499. package/dist/esm/api/resources/metadataFields/types/index.mjs +1 -1
  500. package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +22 -41
  501. package/dist/esm/api/resources/projectPermissions/client/Client.mjs +102 -139
  502. package/dist/esm/api/resources/projectPermissions/client/index.d.mts +0 -1
  503. package/dist/esm/api/resources/projectPermissions/client/requests/ProjectPermissionsIndexRequest.d.mts +1 -3
  504. package/dist/esm/api/resources/projectPermissions/client/requests/index.d.mts +1 -1
  505. package/dist/esm/api/resources/projectPermissions/exports.d.mts +2 -0
  506. package/dist/esm/api/resources/projectPermissions/exports.mjs +3 -0
  507. package/dist/esm/api/resources/projects/client/Client.d.mts +28 -47
  508. package/dist/esm/api/resources/projects/client/Client.mjs +134 -194
  509. package/dist/esm/api/resources/projects/client/index.d.mts +0 -1
  510. package/dist/esm/api/resources/projects/client/requests/ProjectParams.d.mts +1 -1
  511. package/dist/esm/api/resources/projects/client/requests/ProjectUpdateParams.d.mts +3 -3
  512. package/dist/esm/api/resources/projects/client/requests/ProjectsIndexRequest.d.mts +1 -4
  513. package/dist/esm/api/resources/projects/client/requests/ProjectsShowRequest.d.mts +0 -1
  514. package/dist/esm/api/resources/projects/client/requests/index.d.mts +4 -4
  515. package/dist/esm/api/resources/projects/client/requests/index.mjs +1 -1
  516. package/dist/esm/api/resources/projects/exports.d.mts +2 -0
  517. package/dist/esm/api/resources/projects/exports.mjs +3 -0
  518. package/dist/esm/api/resources/shares/client/Client.d.mts +49 -69
  519. package/dist/esm/api/resources/shares/client/Client.mjs +250 -362
  520. package/dist/esm/api/resources/shares/client/index.d.mts +0 -1
  521. package/dist/esm/api/resources/shares/client/requests/AddReviewersToShareParams.d.mts +4 -4
  522. package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +1 -1
  523. package/dist/esm/api/resources/shares/client/requests/RemoveReviewerParams.d.mts +4 -4
  524. package/dist/esm/api/resources/shares/client/requests/SharesIndexRequest.d.mts +1 -3
  525. package/dist/esm/api/resources/shares/client/requests/SharesListReviewersRequest.d.mts +1 -3
  526. package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +6 -6
  527. package/dist/esm/api/resources/shares/client/requests/index.d.mts +7 -7
  528. package/dist/esm/api/resources/shares/client/requests/index.mjs +1 -1
  529. package/dist/esm/api/resources/shares/exports.d.mts +2 -0
  530. package/dist/esm/api/resources/shares/exports.mjs +3 -0
  531. package/dist/esm/api/resources/shares/index.d.mts +1 -1
  532. package/dist/esm/api/resources/shares/index.mjs +1 -1
  533. package/dist/esm/api/resources/shares/types/CreateShareParamsData.d.mts +1 -1
  534. package/dist/esm/api/resources/users/client/Client.d.mts +10 -28
  535. package/dist/esm/api/resources/users/client/Client.mjs +17 -31
  536. package/dist/esm/api/resources/users/exports.d.mts +2 -0
  537. package/dist/esm/api/resources/users/exports.mjs +3 -0
  538. package/dist/esm/api/resources/versionStacks/client/Client.d.mts +32 -50
  539. package/dist/esm/api/resources/versionStacks/client/Client.mjs +120 -205
  540. package/dist/esm/api/resources/versionStacks/client/index.d.mts +0 -1
  541. package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCopyParams.d.mts +1 -1
  542. package/dist/esm/api/resources/versionStacks/client/requests/VersionStackMoveParams.d.mts +1 -1
  543. package/dist/esm/api/resources/versionStacks/client/requests/VersionStacksIndexRequest.d.mts +1 -4
  544. package/dist/esm/api/resources/versionStacks/client/requests/VersionStacksListRequest.d.mts +1 -4
  545. package/dist/esm/api/resources/versionStacks/client/requests/VersionStacksShowRequest.d.mts +1 -2
  546. package/dist/esm/api/resources/versionStacks/client/requests/index.d.mts +6 -6
  547. package/dist/esm/api/resources/versionStacks/exports.d.mts +2 -0
  548. package/dist/esm/api/resources/versionStacks/exports.mjs +3 -0
  549. package/dist/esm/api/resources/versionStacks/index.d.mts +1 -1
  550. package/dist/esm/api/resources/versionStacks/index.mjs +1 -1
  551. package/dist/esm/api/resources/versionStacks/types/index.d.mts +1 -1
  552. package/dist/esm/api/resources/versionStacks/types/index.mjs +1 -1
  553. package/dist/esm/api/resources/webhooks/client/Client.d.mts +28 -47
  554. package/dist/esm/api/resources/webhooks/client/Client.mjs +134 -194
  555. package/dist/esm/api/resources/webhooks/client/index.d.mts +0 -1
  556. package/dist/esm/api/resources/webhooks/client/requests/WebhookCreateParams.d.mts +1 -1
  557. package/dist/esm/api/resources/webhooks/client/requests/WebhookUpdateParams.d.mts +5 -5
  558. package/dist/esm/api/resources/webhooks/client/requests/WebhooksIndexRequest.d.mts +1 -4
  559. package/dist/esm/api/resources/webhooks/client/requests/WebhooksShowRequest.d.mts +0 -1
  560. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +4 -4
  561. package/dist/esm/api/resources/webhooks/exports.d.mts +2 -0
  562. package/dist/esm/api/resources/webhooks/exports.mjs +3 -0
  563. package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +22 -41
  564. package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +102 -139
  565. package/dist/esm/api/resources/workspacePermissions/client/index.d.mts +0 -1
  566. package/dist/esm/api/resources/workspacePermissions/client/requests/WorkspacePermissionsIndexRequest.d.mts +1 -3
  567. package/dist/esm/api/resources/workspacePermissions/client/requests/index.d.mts +1 -1
  568. package/dist/esm/api/resources/workspacePermissions/exports.d.mts +2 -0
  569. package/dist/esm/api/resources/workspacePermissions/exports.mjs +3 -0
  570. package/dist/esm/api/resources/workspaces/client/Client.d.mts +26 -45
  571. package/dist/esm/api/resources/workspaces/client/Client.mjs +132 -195
  572. package/dist/esm/api/resources/workspaces/client/index.d.mts +0 -1
  573. package/dist/esm/api/resources/workspaces/client/requests/WorkspacesIndexRequest.d.mts +1 -4
  574. package/dist/esm/api/resources/workspaces/client/requests/WorkspacesShowRequest.d.mts +0 -1
  575. package/dist/esm/api/resources/workspaces/client/requests/index.d.mts +2 -2
  576. package/dist/esm/api/resources/workspaces/exports.d.mts +2 -0
  577. package/dist/esm/api/resources/workspaces/exports.mjs +3 -0
  578. package/dist/esm/api/types/Account.d.mts +4 -4
  579. package/dist/esm/api/types/AccountUserRole.d.mts +2 -2
  580. package/dist/esm/api/types/AccountUserRolesResponse.d.mts +2 -2
  581. package/dist/esm/api/types/AccountsResponse.d.mts +2 -2
  582. package/dist/esm/api/types/AddAssetResponse.d.mts +1 -1
  583. package/dist/esm/api/types/AssetCommon.d.mts +1 -1
  584. package/dist/esm/api/types/AssetCommonWithIncludes.d.mts +5 -5
  585. package/dist/esm/api/types/AssetShareParams.d.mts +5 -5
  586. package/dist/esm/api/types/AssetWithIncludes.d.mts +3 -3
  587. package/dist/esm/api/types/AuditLogsWithIncludesResponse.d.mts +2 -2
  588. package/dist/esm/api/types/AuditLogwithIncludes.d.mts +4 -4
  589. package/dist/esm/api/types/BadRequest.d.mts +3 -3
  590. package/dist/esm/api/types/BooleanValue.d.mts +2 -2
  591. package/dist/esm/api/types/Comment.d.mts +6 -6
  592. package/dist/esm/api/types/CommentResponse.d.mts +1 -1
  593. package/dist/esm/api/types/CommentWithIncludes.d.mts +3 -3
  594. package/dist/esm/api/types/CommentWithIncludesResponse.d.mts +1 -1
  595. package/dist/esm/api/types/CommentsWithIncludesResponse.d.mts +2 -2
  596. package/dist/esm/api/types/Conflict.d.mts +3 -3
  597. package/dist/esm/api/types/DateDefinition.d.mts +3 -4
  598. package/dist/esm/api/types/DateDefinitionParams.d.mts +3 -4
  599. package/dist/esm/api/types/DateDefinitionWithIncludes.d.mts +2 -2
  600. package/dist/esm/api/types/DateValue.d.mts +2 -2
  601. package/dist/esm/api/types/FieldDefinition.d.mts +3 -3
  602. package/dist/esm/api/types/FieldDefinitionResponse.d.mts +1 -1
  603. package/dist/esm/api/types/FieldDefinitionWithIncludes.d.mts +3 -3
  604. package/dist/esm/api/types/FieldDefinitionsWithIncludesResponse.d.mts +2 -2
  605. package/dist/esm/api/types/FileAssetsWithIncludesResponse.d.mts +2 -2
  606. package/dist/esm/api/types/FileCopyResponse.d.mts +1 -1
  607. package/dist/esm/api/types/FileRemoteUploadResponse.d.mts +1 -1
  608. package/dist/esm/api/types/FileResponse.d.mts +1 -1
  609. package/dist/esm/api/types/FileUploadStatus.d.mts +2 -2
  610. package/dist/esm/api/types/FileUploadStatusResponse.d.mts +1 -1
  611. package/dist/esm/api/types/FileWithIncludes.d.mts +2 -2
  612. package/dist/esm/api/types/FileWithIncludesResponse.d.mts +1 -1
  613. package/dist/esm/api/types/FileWithUploadUrls.d.mts +2 -2
  614. package/dist/esm/api/types/FileWithUploadUrlsResponse.d.mts +1 -1
  615. package/dist/esm/api/types/File_.d.mts +3 -3
  616. package/dist/esm/api/types/Filters.d.mts +9 -9
  617. package/dist/esm/api/types/Folder.d.mts +2 -2
  618. package/dist/esm/api/types/FolderAssetsWithIncludesResponse.d.mts +2 -2
  619. package/dist/esm/api/types/FolderCopyResponse.d.mts +1 -1
  620. package/dist/esm/api/types/FolderResponse.d.mts +1 -1
  621. package/dist/esm/api/types/FolderWithIncludes.d.mts +6 -6
  622. package/dist/esm/api/types/FolderWithIncludesResponse.d.mts +1 -1
  623. package/dist/esm/api/types/FoldersWithIncludesResponse.d.mts +2 -2
  624. package/dist/esm/api/types/Forbidden.d.mts +3 -3
  625. package/dist/esm/api/types/IntegerValue.d.mts +2 -2
  626. package/dist/esm/api/types/Links.d.mts +1 -1
  627. package/dist/esm/api/types/LongTextDefinition.d.mts +1 -2
  628. package/dist/esm/api/types/LongTextDefinitionWithIncludes.d.mts +2 -2
  629. package/dist/esm/api/types/MediaLinkCommon.d.mts +1 -1
  630. package/dist/esm/api/types/MediaLinksCollection.d.mts +8 -8
  631. package/dist/esm/api/types/MetadataField.d.mts +3 -3
  632. package/dist/esm/api/types/MetadataResponse.d.mts +1 -1
  633. package/dist/esm/api/types/MetadataWithDefinition.d.mts +1 -1
  634. package/dist/esm/api/types/MultiSelectValue.d.mts +2 -2
  635. package/dist/esm/api/types/MultiUserValue.d.mts +3 -3
  636. package/dist/esm/api/types/NotFound.d.mts +3 -3
  637. package/dist/esm/api/types/NumberDefinition.d.mts +1 -1
  638. package/dist/esm/api/types/NumberDefinitionParams.d.mts +1 -1
  639. package/dist/esm/api/types/NumberDefinitionWithIncludes.d.mts +2 -2
  640. package/dist/esm/api/types/NumberValue.d.mts +2 -2
  641. package/dist/esm/api/types/OriginalMediaLink.d.mts +2 -2
  642. package/dist/esm/api/types/Profile.d.mts +1 -1
  643. package/dist/esm/api/types/ProfileResponse.d.mts +1 -1
  644. package/dist/esm/api/types/Project.d.mts +1 -1
  645. package/dist/esm/api/types/ProjectResponse.d.mts +1 -1
  646. package/dist/esm/api/types/ProjectUserRolesResponse.d.mts +2 -2
  647. package/dist/esm/api/types/ProjectWithIncludes.d.mts +3 -3
  648. package/dist/esm/api/types/ProjectWithIncludesResponse.d.mts +1 -1
  649. package/dist/esm/api/types/ProjectsWithIncludesResponse.d.mts +2 -2
  650. package/dist/esm/api/types/RatingDefinition.d.mts +2 -2
  651. package/dist/esm/api/types/RatingDefinitionParams.d.mts +2 -2
  652. package/dist/esm/api/types/RatingDefinitionWithIncludes.d.mts +2 -2
  653. package/dist/esm/api/types/RemoveAssetResponse.d.mts +1 -1
  654. package/dist/esm/api/types/RenditionMediaLink.d.mts +2 -2
  655. package/dist/esm/api/types/SelectDefinition.d.mts +3 -3
  656. package/dist/esm/api/types/SelectDefinitionParams.d.mts +2 -2
  657. package/dist/esm/api/types/SelectDefinitionWithIncludes.d.mts +2 -2
  658. package/dist/esm/api/types/SelectMultiDefinition.d.mts +3 -3
  659. package/dist/esm/api/types/SelectMultiDefinitionParams.d.mts +2 -2
  660. package/dist/esm/api/types/SelectMultiDefinitionWithIncludes.d.mts +2 -2
  661. package/dist/esm/api/types/SelectValue.d.mts +2 -2
  662. package/dist/esm/api/types/Share.d.mts +6 -6
  663. package/dist/esm/api/types/ShareResponse.d.mts +1 -1
  664. package/dist/esm/api/types/ShareReviewersResponse.d.mts +2 -2
  665. package/dist/esm/api/types/SharesResponse.d.mts +2 -2
  666. package/dist/esm/api/types/SingleUserValue.d.mts +3 -3
  667. package/dist/esm/api/types/TextDefinition.d.mts +1 -2
  668. package/dist/esm/api/types/TextDefinitionWithIncludes.d.mts +2 -2
  669. package/dist/esm/api/types/TextValue.d.mts +2 -2
  670. package/dist/esm/api/types/ToggleDefinition.d.mts +1 -1
  671. package/dist/esm/api/types/ToggleDefinitionParams.d.mts +2 -2
  672. package/dist/esm/api/types/ToggleDefinitionWithIncludes.d.mts +2 -2
  673. package/dist/esm/api/types/TooManyRequests.d.mts +3 -3
  674. package/dist/esm/api/types/Unauthorized.d.mts +3 -3
  675. package/dist/esm/api/types/UnprocessableContent.d.mts +3 -3
  676. package/dist/esm/api/types/UpdateDateDefinitionParams.d.mts +6 -7
  677. package/dist/esm/api/types/UpdateLongTextDefinitionParams.d.mts +1 -1
  678. package/dist/esm/api/types/UpdateNumberDefinitionParams.d.mts +4 -4
  679. package/dist/esm/api/types/UpdateRatingDefinitionParams.d.mts +5 -5
  680. package/dist/esm/api/types/UpdateSelectDefinitionParams.d.mts +5 -5
  681. package/dist/esm/api/types/UpdateSelectMultiDefinitionParams.d.mts +5 -5
  682. package/dist/esm/api/types/UpdateTextDefinitionParams.d.mts +1 -1
  683. package/dist/esm/api/types/UpdateToggleDefinitionParams.d.mts +3 -3
  684. package/dist/esm/api/types/UpdateUserMultiDefinitionParams.d.mts +3 -4
  685. package/dist/esm/api/types/UpdateUserRolesResponse.d.mts +1 -1
  686. package/dist/esm/api/types/UpdateUserSingleDefinitionParams.d.mts +3 -4
  687. package/dist/esm/api/types/User.d.mts +5 -5
  688. package/dist/esm/api/types/UserMultiDefinition.d.mts +0 -1
  689. package/dist/esm/api/types/UserMultiDefinitionParams.d.mts +1 -2
  690. package/dist/esm/api/types/UserMultiDefinitionWithIncludes.d.mts +2 -2
  691. package/dist/esm/api/types/UserRole.d.mts +1 -1
  692. package/dist/esm/api/types/UserSingleDefinition.d.mts +0 -1
  693. package/dist/esm/api/types/UserSingleDefinitionParams.d.mts +1 -2
  694. package/dist/esm/api/types/UserSingleDefinitionWithIncludes.d.mts +2 -2
  695. package/dist/esm/api/types/VersionStack.d.mts +2 -2
  696. package/dist/esm/api/types/VersionStackAssetsWithIncludesResponse.d.mts +2 -2
  697. package/dist/esm/api/types/VersionStackCopyResponse.d.mts +1 -1
  698. package/dist/esm/api/types/VersionStackResponse.d.mts +1 -1
  699. package/dist/esm/api/types/VersionStackWithIncludes.d.mts +6 -6
  700. package/dist/esm/api/types/VersionStackWithIncludesResponse.d.mts +1 -1
  701. package/dist/esm/api/types/VersionStacksWithIncludesResponse.d.mts +2 -2
  702. package/dist/esm/api/types/Webhook.d.mts +3 -3
  703. package/dist/esm/api/types/WebhookCreateResponse.d.mts +1 -1
  704. package/dist/esm/api/types/WebhookResponse.d.mts +1 -1
  705. package/dist/esm/api/types/WebhookWithIncludes.d.mts +2 -2
  706. package/dist/esm/api/types/WebhookWithIncludesResponse.d.mts +1 -1
  707. package/dist/esm/api/types/WebhooksWithIncludesResponse.d.mts +2 -2
  708. package/dist/esm/api/types/WorkspaceParams.d.mts +1 -1
  709. package/dist/esm/api/types/WorkspaceResponse.d.mts +1 -1
  710. package/dist/esm/api/types/WorkspaceUserRolesResponse.d.mts +2 -2
  711. package/dist/esm/api/types/WorkspaceWithIncludes.d.mts +2 -2
  712. package/dist/esm/api/types/WorkspaceWithIncludesResponse.d.mts +1 -1
  713. package/dist/esm/api/types/WorkspacesWithIncludesResponse.d.mts +2 -2
  714. package/dist/esm/api/types/index.d.mts +143 -143
  715. package/dist/esm/api/types/index.mjs +143 -143
  716. package/dist/esm/auth/BearerAuthProvider.d.mts +20 -0
  717. package/dist/esm/auth/BearerAuthProvider.mjs +42 -0
  718. package/dist/esm/auth/index.d.mts +1 -0
  719. package/dist/esm/auth/index.mjs +1 -0
  720. package/dist/esm/core/auth/AuthProvider.d.mts +5 -2
  721. package/dist/esm/core/auth/BearerToken.d.mts +3 -1
  722. package/dist/esm/core/auth/BearerToken.mjs +7 -6
  723. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  724. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  725. package/dist/esm/core/auth/index.d.mts +1 -0
  726. package/dist/esm/core/auth/index.mjs +1 -0
  727. package/dist/esm/core/exports.d.mts +2 -0
  728. package/dist/esm/core/exports.mjs +2 -0
  729. package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
  730. package/dist/esm/core/fetcher/BinaryResponse.d.mts +5 -6
  731. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +4 -4
  732. package/dist/esm/core/fetcher/Fetcher.d.mts +12 -6
  733. package/dist/esm/core/fetcher/Fetcher.mjs +210 -9
  734. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
  735. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
  736. package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
  737. package/dist/esm/core/fetcher/getRequestBody.mjs +4 -0
  738. package/dist/esm/core/fetcher/getResponseBody.mjs +21 -7
  739. package/dist/esm/core/fetcher/index.d.mts +2 -0
  740. package/dist/esm/core/fetcher/index.mjs +1 -0
  741. package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
  742. package/dist/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
  743. package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
  744. package/dist/esm/core/fetcher/makeRequest.mjs +30 -13
  745. package/dist/esm/core/fetcher/requestWithRetries.mjs +3 -12
  746. package/dist/esm/core/fetcher/signals.d.mts +1 -7
  747. package/dist/esm/core/fetcher/signals.mjs +0 -12
  748. package/dist/esm/core/headers.d.mts +2 -2
  749. package/dist/esm/core/headers.mjs +6 -4
  750. package/dist/esm/core/index.d.mts +4 -2
  751. package/dist/esm/core/index.mjs +4 -2
  752. package/dist/esm/core/logging/exports.d.mts +18 -0
  753. package/dist/esm/core/logging/exports.mjs +9 -0
  754. package/dist/esm/core/logging/index.d.mts +1 -0
  755. package/dist/esm/core/logging/index.mjs +1 -0
  756. package/dist/esm/core/logging/logger.d.mts +126 -0
  757. package/dist/esm/core/logging/logger.mjs +138 -0
  758. package/dist/esm/core/pagination/Page.d.mts +33 -0
  759. package/dist/esm/core/pagination/Page.mjs +97 -0
  760. package/dist/esm/core/pagination/exports.d.mts +1 -0
  761. package/dist/esm/core/pagination/exports.mjs +1 -0
  762. package/dist/esm/core/pagination/index.d.mts +1 -0
  763. package/dist/esm/core/pagination/index.mjs +1 -0
  764. package/dist/esm/core/runtime/runtime.mjs +17 -15
  765. package/dist/esm/core/url/encodePathParam.d.mts +1 -0
  766. package/dist/esm/core/url/encodePathParam.mjs +18 -0
  767. package/dist/esm/core/url/index.d.mts +1 -0
  768. package/dist/esm/core/url/index.mjs +1 -0
  769. package/dist/esm/core/url/join.mjs +3 -4
  770. package/dist/esm/errors/FrameioError.d.mts +1 -1
  771. package/dist/esm/errors/FrameioError.mjs +6 -2
  772. package/dist/esm/errors/FrameioTimeoutError.mjs +5 -1
  773. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  774. package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
  775. package/dist/esm/exports.d.mts +1 -0
  776. package/dist/esm/exports.mjs +1 -0
  777. package/dist/esm/index.d.mts +3 -1
  778. package/dist/esm/index.mjs +2 -1
  779. package/dist/esm/version.d.mts +1 -1
  780. package/dist/esm/version.mjs +1 -1
  781. package/package.json +182 -8
  782. package/reference.md +1056 -1008
  783. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
  784. package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
  785. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
  786. package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
@@ -54,18 +54,20 @@ var __rest = (this && this.__rest) || function (s, e) {
54
54
  return t;
55
55
  };
56
56
  Object.defineProperty(exports, "__esModule", { value: true });
57
- exports.VersionStacks = void 0;
58
- const environments = __importStar(require("../../../../environments.js"));
59
- const core = __importStar(require("../../../../core/index.js"));
60
- const Frameio = __importStar(require("../../../index.js"));
57
+ exports.VersionStacksClient = void 0;
58
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
61
59
  const headers_js_1 = require("../../../../core/headers.js");
60
+ const core = __importStar(require("../../../../core/index.js"));
61
+ const environments = __importStar(require("../../../../environments.js"));
62
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
62
63
  const errors = __importStar(require("../../../../errors/index.js"));
64
+ const Frameio = __importStar(require("../../../index.js"));
63
65
  /**
64
66
  * Manage Version Stacks and related operations.
65
67
  */
66
- class VersionStacks {
67
- constructor(_options) {
68
- this._options = _options;
68
+ class VersionStacksClient {
69
+ constructor(options) {
70
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
69
71
  }
70
72
  /**
71
73
  * List the children (files) in a given version stack.
@@ -82,10 +84,10 @@ class VersionStacks {
82
84
  * null in the response payload. In short, the client must handle null media links gracefully.
83
85
  * <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
84
86
  *
85
- * @param {Frameio.Uuid} accountId -
86
- * @param {Frameio.Uuid} versionStackId -
87
+ * @param {Frameio.Uuid} account_id
88
+ * @param {Frameio.Uuid} version_stack_id
87
89
  * @param {Frameio.VersionStacksIndexRequest} request
88
- * @param {VersionStacks.RequestOptions} requestOptions - Request-specific configuration.
90
+ * @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
89
91
  *
90
92
  * @throws {@link Frameio.BadRequestError}
91
93
  * @throws {@link Frameio.UnauthorizedError}
@@ -103,35 +105,31 @@ class VersionStacks {
103
105
  * include_total_count: false
104
106
  * })
105
107
  */
106
- index(accountId, versionStackId, request = {}, requestOptions) {
107
- return core.HttpResponsePromise.fromPromise(this.__index(accountId, versionStackId, request, requestOptions));
108
+ index(account_id, version_stack_id, request = {}, requestOptions) {
109
+ return core.HttpResponsePromise.fromPromise(this.__index(account_id, version_stack_id, request, requestOptions));
108
110
  }
109
- __index(accountId_1, versionStackId_1) {
110
- return __awaiter(this, arguments, void 0, function* (accountId, versionStackId, request = {}, requestOptions) {
111
- var _a, _b, _c, _d;
111
+ __index(account_id_1, version_stack_id_1) {
112
+ return __awaiter(this, arguments, void 0, function* (account_id, version_stack_id, request = {}, requestOptions) {
113
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
112
114
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
113
- const _queryParams = {};
114
- if (include != null) {
115
- _queryParams["include"] = include;
116
- }
117
- if (after != null) {
118
- _queryParams["after"] = after;
119
- }
120
- if (pageSize != null) {
121
- _queryParams["page_size"] = pageSize.toString();
122
- }
123
- if (includeTotalCount != null) {
124
- _queryParams["include_total_count"] = includeTotalCount.toString();
125
- }
126
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
115
+ const _queryParams = {
116
+ include: include != null ? include : undefined,
117
+ after,
118
+ page_size: pageSize,
119
+ include_total_count: includeTotalCount,
120
+ };
121
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
122
+ 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);
127
123
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
128
- 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/${encodeURIComponent(accountId)}/version_stacks/${encodeURIComponent(versionStackId)}/children`),
124
+ 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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/children`),
129
125
  method: "GET",
130
126
  headers: _headers,
131
127
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
132
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
133
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
128
+ 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,
129
+ 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,
134
130
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
131
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
132
+ logging: this._options.logging,
135
133
  });
136
134
  if (_response.ok) {
137
135
  return {
@@ -163,30 +161,16 @@ class VersionStacks {
163
161
  });
164
162
  }
165
163
  }
166
- switch (_response.error.reason) {
167
- case "non-json":
168
- throw new errors.FrameioError({
169
- statusCode: _response.error.statusCode,
170
- body: _response.error.rawBody,
171
- rawResponse: _response.rawResponse,
172
- });
173
- case "timeout":
174
- throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/version_stacks/{version_stack_id}/children.");
175
- case "unknown":
176
- throw new errors.FrameioError({
177
- message: _response.error.errorMessage,
178
- rawResponse: _response.rawResponse,
179
- });
180
- }
164
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}/children");
181
165
  });
182
166
  }
183
167
  /**
184
168
  * Show version stack details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
185
169
  *
186
- * @param {Frameio.Uuid} accountId -
187
- * @param {Frameio.Uuid} versionStackId -
170
+ * @param {Frameio.Uuid} account_id
171
+ * @param {Frameio.Uuid} version_stack_id
188
172
  * @param {Frameio.VersionStacksShowRequest} request
189
- * @param {VersionStacks.RequestOptions} requestOptions - Request-specific configuration.
173
+ * @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
190
174
  *
191
175
  * @throws {@link Frameio.BadRequestError}
192
176
  * @throws {@link Frameio.UnauthorizedError}
@@ -201,26 +185,28 @@ class VersionStacks {
201
185
  * include: "media_links.original"
202
186
  * })
203
187
  */
204
- show(accountId, versionStackId, request = {}, requestOptions) {
205
- return core.HttpResponsePromise.fromPromise(this.__show(accountId, versionStackId, request, requestOptions));
188
+ show(account_id, version_stack_id, request = {}, requestOptions) {
189
+ return core.HttpResponsePromise.fromPromise(this.__show(account_id, version_stack_id, request, requestOptions));
206
190
  }
207
- __show(accountId_1, versionStackId_1) {
208
- return __awaiter(this, arguments, void 0, function* (accountId, versionStackId, request = {}, requestOptions) {
209
- var _a, _b, _c, _d;
191
+ __show(account_id_1, version_stack_id_1) {
192
+ return __awaiter(this, arguments, void 0, function* (account_id, version_stack_id, request = {}, requestOptions) {
193
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
210
194
  const { include } = request;
211
- const _queryParams = {};
212
- if (include != null) {
213
- _queryParams["include"] = include;
214
- }
215
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
195
+ const _queryParams = {
196
+ include: include != null ? include : undefined,
197
+ };
198
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
199
+ 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);
216
200
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
217
- 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/${encodeURIComponent(accountId)}/version_stacks/${encodeURIComponent(versionStackId)}`),
201
+ 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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}`),
218
202
  method: "GET",
219
203
  headers: _headers,
220
204
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
221
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
222
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
205
+ 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,
206
+ 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,
223
207
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
208
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
209
+ logging: this._options.logging,
224
210
  });
225
211
  if (_response.ok) {
226
212
  return {
@@ -252,30 +238,16 @@ class VersionStacks {
252
238
  });
253
239
  }
254
240
  }
255
- switch (_response.error.reason) {
256
- case "non-json":
257
- throw new errors.FrameioError({
258
- statusCode: _response.error.statusCode,
259
- body: _response.error.rawBody,
260
- rawResponse: _response.rawResponse,
261
- });
262
- case "timeout":
263
- throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/version_stacks/{version_stack_id}.");
264
- case "unknown":
265
- throw new errors.FrameioError({
266
- message: _response.error.errorMessage,
267
- rawResponse: _response.rawResponse,
268
- });
269
- }
241
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}");
270
242
  });
271
243
  }
272
244
  /**
273
245
  * Copy version stack. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
274
246
  *
275
- * @param {Frameio.Uuid} accountId -
276
- * @param {Frameio.Uuid} versionStackId -
247
+ * @param {Frameio.Uuid} account_id
248
+ * @param {Frameio.Uuid} version_stack_id
277
249
  * @param {Frameio.VersionStackCopyParams} request
278
- * @param {VersionStacks.RequestOptions} requestOptions - Request-specific configuration.
250
+ * @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
279
251
  *
280
252
  * @throws {@link Frameio.BadRequestError}
281
253
  * @throws {@link Frameio.UnauthorizedError}
@@ -293,29 +265,31 @@ class VersionStacks {
293
265
  * }
294
266
  * })
295
267
  */
296
- copy(accountId, versionStackId, request = {}, requestOptions) {
297
- return core.HttpResponsePromise.fromPromise(this.__copy(accountId, versionStackId, request, requestOptions));
268
+ copy(account_id, version_stack_id, request = {}, requestOptions) {
269
+ return core.HttpResponsePromise.fromPromise(this.__copy(account_id, version_stack_id, request, requestOptions));
298
270
  }
299
- __copy(accountId_1, versionStackId_1) {
300
- return __awaiter(this, arguments, void 0, function* (accountId, versionStackId, request = {}, requestOptions) {
301
- var _a, _b, _c, _d;
271
+ __copy(account_id_1, version_stack_id_1) {
272
+ return __awaiter(this, arguments, void 0, function* (account_id, version_stack_id, request = {}, requestOptions) {
273
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
302
274
  const { copy_metadata: copyMetadata } = request, _body = __rest(request, ["copy_metadata"]);
303
- const _queryParams = {};
304
- if (copyMetadata != null) {
305
- _queryParams["copy_metadata"] = copyMetadata.toString();
306
- }
307
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
275
+ const _queryParams = {
276
+ copy_metadata: copyMetadata,
277
+ };
278
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
279
+ 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);
308
280
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
309
- 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/${encodeURIComponent(accountId)}/version_stacks/${encodeURIComponent(versionStackId)}/copy`),
281
+ 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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/copy`),
310
282
  method: "POST",
311
283
  headers: _headers,
312
284
  contentType: "application/json",
313
285
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
314
286
  requestType: "json",
315
287
  body: _body,
316
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
317
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
288
+ 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,
289
+ 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,
318
290
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
291
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
292
+ logging: this._options.logging,
319
293
  });
320
294
  if (_response.ok) {
321
295
  return { data: _response.body, rawResponse: _response.rawResponse };
@@ -344,30 +318,16 @@ class VersionStacks {
344
318
  });
345
319
  }
346
320
  }
347
- switch (_response.error.reason) {
348
- case "non-json":
349
- throw new errors.FrameioError({
350
- statusCode: _response.error.statusCode,
351
- body: _response.error.rawBody,
352
- rawResponse: _response.rawResponse,
353
- });
354
- case "timeout":
355
- throw new errors.FrameioTimeoutError("Timeout exceeded when calling POST /v4/accounts/{account_id}/version_stacks/{version_stack_id}/copy.");
356
- case "unknown":
357
- throw new errors.FrameioError({
358
- message: _response.error.errorMessage,
359
- rawResponse: _response.rawResponse,
360
- });
361
- }
321
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}/copy");
362
322
  });
363
323
  }
364
324
  /**
365
325
  * List version stacks in a given folder. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
366
326
  *
367
- * @param {Frameio.Uuid} accountId -
368
- * @param {Frameio.Uuid} folderId -
327
+ * @param {Frameio.Uuid} account_id
328
+ * @param {Frameio.Uuid} folder_id
369
329
  * @param {Frameio.VersionStacksListRequest} request
370
- * @param {VersionStacks.RequestOptions} requestOptions - Request-specific configuration.
330
+ * @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
371
331
  *
372
332
  * @throws {@link Frameio.BadRequestError}
373
333
  * @throws {@link Frameio.UnauthorizedError}
@@ -385,35 +345,31 @@ class VersionStacks {
385
345
  * include_total_count: false
386
346
  * })
387
347
  */
388
- list(accountId, folderId, request = {}, requestOptions) {
389
- return core.HttpResponsePromise.fromPromise(this.__list(accountId, folderId, request, requestOptions));
348
+ list(account_id, folder_id, request = {}, requestOptions) {
349
+ return core.HttpResponsePromise.fromPromise(this.__list(account_id, folder_id, request, requestOptions));
390
350
  }
391
- __list(accountId_1, folderId_1) {
392
- return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
393
- var _a, _b, _c, _d;
351
+ __list(account_id_1, folder_id_1) {
352
+ return __awaiter(this, arguments, void 0, function* (account_id, folder_id, request = {}, requestOptions) {
353
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
394
354
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
395
- const _queryParams = {};
396
- if (include != null) {
397
- _queryParams["include"] = include;
398
- }
399
- if (after != null) {
400
- _queryParams["after"] = after;
401
- }
402
- if (pageSize != null) {
403
- _queryParams["page_size"] = pageSize.toString();
404
- }
405
- if (includeTotalCount != null) {
406
- _queryParams["include_total_count"] = includeTotalCount.toString();
407
- }
408
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
355
+ const _queryParams = {
356
+ include: include != null ? include : undefined,
357
+ after,
358
+ page_size: pageSize,
359
+ include_total_count: includeTotalCount,
360
+ };
361
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
362
+ 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);
409
363
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
410
- 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/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/version_stacks`),
364
+ 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)}/folders/${core.url.encodePathParam(folder_id)}/version_stacks`),
411
365
  method: "GET",
412
366
  headers: _headers,
413
367
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
414
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
415
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
368
+ 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,
369
+ 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,
416
370
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
371
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
372
+ logging: this._options.logging,
417
373
  });
418
374
  if (_response.ok) {
419
375
  return {
@@ -445,30 +401,16 @@ class VersionStacks {
445
401
  });
446
402
  }
447
403
  }
448
- switch (_response.error.reason) {
449
- case "non-json":
450
- throw new errors.FrameioError({
451
- statusCode: _response.error.statusCode,
452
- body: _response.error.rawBody,
453
- rawResponse: _response.rawResponse,
454
- });
455
- case "timeout":
456
- throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/folders/{folder_id}/version_stacks.");
457
- case "unknown":
458
- throw new errors.FrameioError({
459
- message: _response.error.errorMessage,
460
- rawResponse: _response.rawResponse,
461
- });
462
- }
404
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/folders/{folder_id}/version_stacks");
463
405
  });
464
406
  }
465
407
  /**
466
408
  * Create a new Version Stack under the parent folder. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
467
409
  *
468
- * @param {Frameio.Uuid} accountId -
469
- * @param {Frameio.Uuid} folderId -
410
+ * @param {Frameio.Uuid} account_id
411
+ * @param {Frameio.Uuid} folder_id
470
412
  * @param {Frameio.VersionStackCreateParams} request
471
- * @param {VersionStacks.RequestOptions} requestOptions - Request-specific configuration.
413
+ * @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
472
414
  *
473
415
  * @throws {@link Frameio.BadRequestError}
474
416
  * @throws {@link Frameio.UnauthorizedError}
@@ -485,24 +427,27 @@ class VersionStacks {
485
427
  * }
486
428
  * })
487
429
  */
488
- create(accountId, folderId, request, requestOptions) {
489
- return core.HttpResponsePromise.fromPromise(this.__create(accountId, folderId, request, requestOptions));
430
+ create(account_id, folder_id, request, requestOptions) {
431
+ return core.HttpResponsePromise.fromPromise(this.__create(account_id, folder_id, request, requestOptions));
490
432
  }
491
- __create(accountId, folderId, request, requestOptions) {
433
+ __create(account_id, folder_id, request, requestOptions) {
492
434
  return __awaiter(this, void 0, void 0, function* () {
493
- var _a, _b, _c, _d;
494
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
435
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
436
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
437
+ 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);
495
438
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
496
- 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/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/version_stacks`),
439
+ 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)}/folders/${core.url.encodePathParam(folder_id)}/version_stacks`),
497
440
  method: "POST",
498
441
  headers: _headers,
499
442
  contentType: "application/json",
500
443
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
501
444
  requestType: "json",
502
445
  body: request,
503
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
504
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
446
+ 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,
447
+ 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,
505
448
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
449
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
450
+ logging: this._options.logging,
506
451
  });
507
452
  if (_response.ok) {
508
453
  return {
@@ -534,30 +479,16 @@ class VersionStacks {
534
479
  });
535
480
  }
536
481
  }
537
- switch (_response.error.reason) {
538
- case "non-json":
539
- throw new errors.FrameioError({
540
- statusCode: _response.error.statusCode,
541
- body: _response.error.rawBody,
542
- rawResponse: _response.rawResponse,
543
- });
544
- case "timeout":
545
- throw new errors.FrameioTimeoutError("Timeout exceeded when calling POST /v4/accounts/{account_id}/folders/{folder_id}/version_stacks.");
546
- case "unknown":
547
- throw new errors.FrameioError({
548
- message: _response.error.errorMessage,
549
- rawResponse: _response.rawResponse,
550
- });
551
- }
482
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/folders/{folder_id}/version_stacks");
552
483
  });
553
484
  }
554
485
  /**
555
486
  * Move version stack to a folder. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
556
487
  *
557
- * @param {Frameio.Uuid} accountId -
558
- * @param {Frameio.Uuid} versionStackId -
488
+ * @param {Frameio.Uuid} account_id
489
+ * @param {Frameio.Uuid} version_stack_id
559
490
  * @param {Frameio.VersionStackMoveParams} request
560
- * @param {VersionStacks.RequestOptions} requestOptions - Request-specific configuration.
491
+ * @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
561
492
  *
562
493
  * @throws {@link Frameio.BadRequestError}
563
494
  * @throws {@link Frameio.UnauthorizedError}
@@ -574,24 +505,27 @@ class VersionStacks {
574
505
  * }
575
506
  * })
576
507
  */
577
- move(accountId, versionStackId, request, requestOptions) {
578
- return core.HttpResponsePromise.fromPromise(this.__move(accountId, versionStackId, request, requestOptions));
508
+ move(account_id, version_stack_id, request, requestOptions) {
509
+ return core.HttpResponsePromise.fromPromise(this.__move(account_id, version_stack_id, request, requestOptions));
579
510
  }
580
- __move(accountId, versionStackId, request, requestOptions) {
511
+ __move(account_id, version_stack_id, request, requestOptions) {
581
512
  return __awaiter(this, void 0, void 0, function* () {
582
- var _a, _b, _c, _d;
583
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
513
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
514
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
515
+ 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);
584
516
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
585
- 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/${encodeURIComponent(accountId)}/version_stacks/${encodeURIComponent(versionStackId)}/move`),
517
+ 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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/move`),
586
518
  method: "PATCH",
587
519
  headers: _headers,
588
520
  contentType: "application/json",
589
521
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
590
522
  requestType: "json",
591
523
  body: request,
592
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
593
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
524
+ 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,
525
+ 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,
594
526
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
527
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
528
+ logging: this._options.logging,
595
529
  });
596
530
  if (_response.ok) {
597
531
  return { data: _response.body, rawResponse: _response.rawResponse };
@@ -620,27 +554,8 @@ class VersionStacks {
620
554
  });
621
555
  }
622
556
  }
623
- switch (_response.error.reason) {
624
- case "non-json":
625
- throw new errors.FrameioError({
626
- statusCode: _response.error.statusCode,
627
- body: _response.error.rawBody,
628
- rawResponse: _response.rawResponse,
629
- });
630
- case "timeout":
631
- throw new errors.FrameioTimeoutError("Timeout exceeded when calling PATCH /v4/accounts/{account_id}/version_stacks/{version_stack_id}/move.");
632
- case "unknown":
633
- throw new errors.FrameioError({
634
- message: _response.error.errorMessage,
635
- rawResponse: _response.rawResponse,
636
- });
637
- }
638
- });
639
- }
640
- _getAuthorizationHeader() {
641
- return __awaiter(this, void 0, void 0, function* () {
642
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
557
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}/move");
643
558
  });
644
559
  }
645
560
  }
646
- exports.VersionStacks = VersionStacks;
561
+ exports.VersionStacksClient = VersionStacksClient;
@@ -1,2 +1 @@
1
- export {};
2
1
  export * from "./requests/index.js";
@@ -15,6 +15,6 @@ export interface VersionStackCopyParams {
15
15
  export declare namespace VersionStackCopyParams {
16
16
  interface Data {
17
17
  /** Destination folder ID. Defaults to version stack parent ID. */
18
- parent_id?: string;
18
+ parent_id?: string | undefined;
19
19
  }
20
20
  }
@@ -12,6 +12,6 @@ export interface VersionStackMoveParams {
12
12
  export declare namespace VersionStackMoveParams {
13
13
  interface Data {
14
14
  /** Destination folder ID */
15
- parent_id?: string;
15
+ parent_id?: string | undefined;
16
16
  }
17
17
  }
@@ -1,4 +1,4 @@
1
- import * as Frameio from "../../../../index.js";
1
+ import type * as Frameio from "../../../../index.js";
2
2
  /**
3
3
  * @example
4
4
  * {
@@ -9,7 +9,6 @@ import * as Frameio from "../../../../index.js";
9
9
  * }
10
10
  */
11
11
  export interface VersionStacksIndexRequest {
12
- /** */
13
12
  include?: Frameio.VersionStacksIndexRequestInclude;
14
13
  /**
15
14
  * Opaque Cursor query param for requests returning paginated results.
@@ -17,8 +16,6 @@ export interface VersionStacksIndexRequest {
17
16
  * NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
18
17
  */
19
18
  after?: Frameio.RequestAfterOpaqueCursor | undefined;
20
- /** */
21
19
  page_size?: Frameio.RequestPageSize;
22
- /** */
23
20
  include_total_count?: Frameio.IncludeTotalCount;
24
21
  }
@@ -1,4 +1,4 @@
1
- import * as Frameio from "../../../../index.js";
1
+ import type * as Frameio from "../../../../index.js";
2
2
  /**
3
3
  * @example
4
4
  * {
@@ -9,7 +9,6 @@ import * as Frameio from "../../../../index.js";
9
9
  * }
10
10
  */
11
11
  export interface VersionStacksListRequest {
12
- /** */
13
12
  include?: Frameio.VersionStacksListRequestInclude;
14
13
  /**
15
14
  * Opaque Cursor query param for requests returning paginated results.
@@ -17,8 +16,6 @@ export interface VersionStacksListRequest {
17
16
  * NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
18
17
  */
19
18
  after?: Frameio.RequestAfterOpaqueCursor | undefined;
20
- /** */
21
19
  page_size?: Frameio.RequestPageSize;
22
- /** */
23
20
  include_total_count?: Frameio.IncludeTotalCount;
24
21
  }
@@ -1,4 +1,4 @@
1
- import * as Frameio from "../../../../index.js";
1
+ import type * as Frameio from "../../../../index.js";
2
2
  /**
3
3
  * @example
4
4
  * {
@@ -6,6 +6,5 @@ import * as Frameio from "../../../../index.js";
6
6
  * }
7
7
  */
8
8
  export interface VersionStacksShowRequest {
9
- /** */
10
9
  include?: Frameio.VersionStacksShowRequestInclude;
11
10
  }
@@ -1,6 +1,6 @@
1
- export { type VersionStacksIndexRequest } from "./VersionStacksIndexRequest.js";
2
- export { type VersionStacksShowRequest } from "./VersionStacksShowRequest.js";
3
- export { type VersionStackCopyParams } from "./VersionStackCopyParams.js";
4
- export { type VersionStacksListRequest } from "./VersionStacksListRequest.js";
5
- export { type VersionStackCreateParams } from "./VersionStackCreateParams.js";
6
- export { type VersionStackMoveParams } from "./VersionStackMoveParams.js";
1
+ export type { VersionStackCopyParams } from "./VersionStackCopyParams.js";
2
+ export type { VersionStackCreateParams } from "./VersionStackCreateParams.js";
3
+ export type { VersionStackMoveParams } from "./VersionStackMoveParams.js";
4
+ export type { VersionStacksIndexRequest } from "./VersionStacksIndexRequest.js";
5
+ export type { VersionStacksListRequest } from "./VersionStacksListRequest.js";
6
+ export type { VersionStacksShowRequest } from "./VersionStacksShowRequest.js";
@@ -0,0 +1,2 @@
1
+ export { VersionStacksClient } from "./client/Client.js";
2
+ export * from "./client/index.js";