frameio 4.2.0 → 4.2.2

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 (626) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +9 -0
  3. package/dist/cjs/Client.js +45 -30
  4. package/dist/cjs/api/resources/accountPermissions/client/Client.d.ts +3 -2
  5. package/dist/cjs/api/resources/accountPermissions/client/Client.js +2 -1
  6. package/dist/cjs/api/resources/accountPermissions/client/requests/AccountPermissionsIndexRequest.d.ts +3 -0
  7. package/dist/cjs/api/resources/accountPermissions/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/accountPermissions/index.js +1 -0
  9. package/dist/cjs/api/resources/accountPermissions/types/AccountPermissionsIndexRequestSort.d.ts +10 -0
  10. package/dist/cjs/api/resources/accountPermissions/types/AccountPermissionsIndexRequestSort.js +13 -0
  11. package/dist/cjs/api/resources/accountPermissions/types/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/accountPermissions/types/index.js +17 -0
  13. package/dist/cjs/api/resources/accounts/client/Client.d.ts +3 -2
  14. package/dist/cjs/api/resources/accounts/client/Client.js +2 -1
  15. package/dist/cjs/api/resources/accounts/client/requests/AccountsIndexRequest.d.ts +3 -0
  16. package/dist/cjs/api/resources/accounts/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/accounts/index.js +1 -0
  18. package/dist/cjs/api/resources/accounts/types/AccountsIndexRequestSort.d.ts +8 -0
  19. package/dist/cjs/api/resources/accounts/types/AccountsIndexRequestSort.js +11 -0
  20. package/dist/cjs/api/resources/accounts/types/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/accounts/types/index.js +17 -0
  22. package/dist/cjs/api/resources/collections/client/Client.d.ts +65 -0
  23. package/dist/cjs/api/resources/collections/client/Client.js +216 -0
  24. package/dist/cjs/api/resources/collections/client/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/collections/client/index.js +17 -0
  26. package/dist/cjs/api/resources/collections/client/requests/CollectionsIndexRequest.d.ts +21 -0
  27. package/dist/cjs/api/resources/collections/client/requests/CollectionsIndexRequest.js +3 -0
  28. package/dist/cjs/api/resources/collections/client/requests/CollectionsShowRequest.d.ts +10 -0
  29. package/dist/cjs/api/resources/collections/client/requests/CollectionsShowRequest.js +3 -0
  30. package/dist/cjs/api/resources/collections/client/requests/index.d.ts +2 -0
  31. package/dist/cjs/api/resources/collections/client/requests/index.js +2 -0
  32. package/dist/cjs/api/resources/collections/exports.d.ts +2 -0
  33. package/dist/cjs/api/resources/collections/exports.js +21 -0
  34. package/dist/cjs/api/resources/collections/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/collections/index.js +17 -0
  36. package/dist/cjs/api/resources/comments/client/Client.d.ts +17 -17
  37. package/dist/cjs/api/resources/comments/client/Client.js +10 -10
  38. package/dist/cjs/api/resources/customActions/client/Client.d.ts +10 -10
  39. package/dist/cjs/api/resources/customActions/client/Client.js +5 -5
  40. package/dist/cjs/api/resources/files/client/Client.d.ts +33 -33
  41. package/dist/cjs/api/resources/files/client/Client.js +22 -22
  42. package/dist/cjs/api/resources/files/types/FilesListRequestInclude.d.ts +0 -1
  43. package/dist/cjs/api/resources/files/types/FilesListRequestInclude.js +0 -1
  44. package/dist/cjs/api/resources/files/types/FilesShowRequestInclude.d.ts +0 -1
  45. package/dist/cjs/api/resources/files/types/FilesShowRequestInclude.js +0 -1
  46. package/dist/cjs/api/resources/folderPermissions/client/Client.d.ts +90 -0
  47. package/dist/cjs/api/resources/folderPermissions/client/Client.js +287 -0
  48. package/dist/cjs/api/resources/folderPermissions/client/index.d.ts +1 -0
  49. package/dist/cjs/api/resources/folderPermissions/client/index.js +17 -0
  50. package/dist/cjs/api/resources/folderPermissions/client/requests/FolderUserRolesIndexRequest.d.ts +22 -0
  51. package/dist/cjs/api/resources/folderPermissions/client/requests/FolderUserRolesIndexRequest.js +3 -0
  52. package/dist/cjs/api/resources/folderPermissions/client/requests/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/folderPermissions/client/requests/index.js +2 -0
  54. package/dist/cjs/api/resources/folderPermissions/exports.d.ts +2 -0
  55. package/dist/cjs/api/resources/folderPermissions/exports.js +21 -0
  56. package/dist/cjs/api/resources/folderPermissions/index.d.ts +1 -0
  57. package/dist/cjs/api/resources/folderPermissions/index.js +17 -0
  58. package/dist/cjs/api/resources/folders/client/Client.d.ts +24 -24
  59. package/dist/cjs/api/resources/folders/client/Client.js +16 -16
  60. package/dist/cjs/api/resources/folders/types/FoldersIndexRequestInclude.d.ts +0 -1
  61. package/dist/cjs/api/resources/folders/types/FoldersIndexRequestInclude.js +0 -1
  62. package/dist/cjs/api/resources/folders/types/FoldersListRequestInclude.d.ts +0 -1
  63. package/dist/cjs/api/resources/folders/types/FoldersListRequestInclude.js +0 -1
  64. package/dist/cjs/api/resources/folders/types/FoldersShowRequestInclude.d.ts +0 -1
  65. package/dist/cjs/api/resources/folders/types/FoldersShowRequestInclude.js +0 -1
  66. package/dist/cjs/api/resources/groups/client/Client.d.ts +8 -8
  67. package/dist/cjs/api/resources/groups/client/Client.js +4 -4
  68. package/dist/cjs/api/resources/index.d.ts +12 -0
  69. package/dist/cjs/api/resources/index.js +13 -1
  70. package/dist/cjs/api/resources/metadata/client/Client.d.ts +10 -10
  71. package/dist/cjs/api/resources/metadata/client/Client.js +8 -8
  72. package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +5 -5
  73. package/dist/cjs/api/resources/metadataFields/client/Client.d.ts +9 -8
  74. package/dist/cjs/api/resources/metadataFields/client/Client.js +7 -5
  75. package/dist/cjs/api/resources/metadataFields/client/requests/MetadataFieldDefinitionsIndexRequest.d.ts +3 -0
  76. package/dist/cjs/api/resources/metadataFields/types/MetadataFieldDefinitionsIndexRequestSort.d.ts +8 -0
  77. package/dist/cjs/api/resources/metadataFields/types/MetadataFieldDefinitionsIndexRequestSort.js +11 -0
  78. package/dist/cjs/api/resources/metadataFields/types/index.d.ts +1 -0
  79. package/dist/cjs/api/resources/metadataFields/types/index.js +1 -0
  80. package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +10 -9
  81. package/dist/cjs/api/resources/projectPermissions/client/Client.js +7 -6
  82. package/dist/cjs/api/resources/projectPermissions/client/requests/ProjectPermissionsIndexRequest.d.ts +3 -0
  83. package/dist/cjs/api/resources/projectPermissions/index.d.ts +1 -0
  84. package/dist/cjs/api/resources/projectPermissions/index.js +1 -0
  85. package/dist/cjs/api/resources/projectPermissions/types/ProjectPermissionsIndexRequestSort.d.ts +10 -0
  86. package/dist/cjs/api/resources/projectPermissions/types/ProjectPermissionsIndexRequestSort.js +13 -0
  87. package/dist/cjs/api/resources/projectPermissions/types/index.d.ts +1 -0
  88. package/dist/cjs/api/resources/projectPermissions/types/index.js +17 -0
  89. package/dist/cjs/api/resources/projects/client/Client.d.ts +14 -13
  90. package/dist/cjs/api/resources/projects/client/Client.js +9 -8
  91. package/dist/cjs/api/resources/projects/client/requests/ProjectsIndexRequest.d.ts +3 -0
  92. package/dist/cjs/api/resources/projects/index.d.ts +1 -0
  93. package/dist/cjs/api/resources/projects/index.js +1 -0
  94. package/dist/cjs/api/resources/projects/types/ProjectsIndexRequestSort.d.ts +8 -0
  95. package/dist/cjs/api/resources/projects/types/ProjectsIndexRequestSort.js +11 -0
  96. package/dist/cjs/api/resources/projects/types/index.d.ts +1 -0
  97. package/dist/cjs/api/resources/projects/types/index.js +17 -0
  98. package/dist/cjs/api/resources/search/client/Client.d.ts +48 -0
  99. package/dist/cjs/api/resources/search/client/Client.js +161 -0
  100. package/dist/cjs/api/resources/search/client/index.d.ts +1 -0
  101. package/dist/cjs/api/resources/search/client/index.js +17 -0
  102. package/dist/cjs/api/resources/search/client/requests/SearchParams.d.ts +51 -0
  103. package/dist/cjs/api/resources/search/client/requests/SearchParams.js +12 -0
  104. package/dist/cjs/api/resources/search/client/requests/index.d.ts +1 -0
  105. package/dist/cjs/api/resources/search/client/requests/index.js +5 -0
  106. package/dist/cjs/api/resources/search/exports.d.ts +2 -0
  107. package/dist/cjs/api/resources/search/exports.js +21 -0
  108. package/dist/cjs/api/resources/search/index.d.ts +1 -0
  109. package/dist/cjs/api/resources/search/index.js +17 -0
  110. package/dist/cjs/api/resources/shares/client/Client.d.ts +29 -27
  111. package/dist/cjs/api/resources/shares/client/Client.js +19 -17
  112. package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +2 -2
  113. package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +2 -2
  114. package/dist/cjs/api/resources/shares/client/requests/SharesIndexRequest.d.ts +3 -0
  115. package/dist/cjs/api/resources/shares/client/requests/SharesListReviewersRequest.d.ts +3 -0
  116. package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +2 -1
  117. package/dist/cjs/api/resources/shares/types/SharesIndexRequestSort.d.ts +8 -0
  118. package/dist/cjs/api/resources/shares/types/SharesIndexRequestSort.js +11 -0
  119. package/dist/cjs/api/resources/shares/types/SharesListReviewersRequestSort.d.ts +8 -0
  120. package/dist/cjs/api/resources/shares/types/SharesListReviewersRequestSort.js +11 -0
  121. package/dist/cjs/api/resources/shares/types/index.d.ts +2 -0
  122. package/dist/cjs/api/resources/shares/types/index.js +2 -0
  123. package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +19 -19
  124. package/dist/cjs/api/resources/versionStacks/client/Client.js +13 -13
  125. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +3 -2
  126. package/dist/cjs/api/resources/versionStacks/types/VersionStacksIndexRequestInclude.d.ts +0 -1
  127. package/dist/cjs/api/resources/versionStacks/types/VersionStacksIndexRequestInclude.js +0 -1
  128. package/dist/cjs/api/resources/versionStacks/types/VersionStacksListRequestInclude.d.ts +0 -1
  129. package/dist/cjs/api/resources/versionStacks/types/VersionStacksListRequestInclude.js +0 -1
  130. package/dist/cjs/api/resources/versionStacks/types/VersionStacksShowRequestInclude.d.ts +0 -1
  131. package/dist/cjs/api/resources/versionStacks/types/VersionStacksShowRequestInclude.js +0 -1
  132. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +10 -10
  133. package/dist/cjs/api/resources/webhooks/client/Client.js +5 -5
  134. package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +8 -7
  135. package/dist/cjs/api/resources/workspacePermissions/client/Client.js +5 -4
  136. package/dist/cjs/api/resources/workspacePermissions/client/requests/UpdateWorkspaceRoleParams.d.ts +17 -0
  137. package/dist/cjs/api/resources/workspacePermissions/client/requests/UpdateWorkspaceRoleParams.js +3 -0
  138. package/dist/cjs/api/resources/workspacePermissions/client/requests/WorkspacePermissionsIndexRequest.d.ts +3 -0
  139. package/dist/cjs/api/resources/workspacePermissions/client/requests/index.d.ts +1 -0
  140. package/dist/cjs/api/resources/workspacePermissions/index.d.ts +1 -0
  141. package/dist/cjs/api/resources/workspacePermissions/index.js +1 -0
  142. package/dist/cjs/api/resources/workspacePermissions/types/WorkspacePermissionsIndexRequestSort.d.ts +10 -0
  143. package/dist/cjs/api/resources/workspacePermissions/types/WorkspacePermissionsIndexRequestSort.js +13 -0
  144. package/dist/cjs/api/resources/workspacePermissions/types/index.d.ts +1 -0
  145. package/dist/cjs/api/resources/workspacePermissions/types/index.js +17 -0
  146. package/dist/cjs/api/resources/workspaces/client/Client.d.ts +11 -10
  147. package/dist/cjs/api/resources/workspaces/client/Client.js +6 -5
  148. package/dist/cjs/api/resources/workspaces/client/requests/WorkspacesIndexRequest.d.ts +3 -0
  149. package/dist/cjs/api/resources/workspaces/index.d.ts +1 -0
  150. package/dist/cjs/api/resources/workspaces/index.js +1 -0
  151. package/dist/cjs/api/resources/workspaces/types/WorkspacesIndexRequestSort.d.ts +8 -0
  152. package/dist/cjs/api/resources/workspaces/types/WorkspacesIndexRequestSort.js +11 -0
  153. package/dist/cjs/api/resources/workspaces/types/index.d.ts +1 -0
  154. package/dist/cjs/api/resources/workspaces/types/index.js +17 -0
  155. package/dist/cjs/api/types/Account.d.ts +2 -0
  156. package/dist/cjs/api/types/AccountSort.d.ts +8 -0
  157. package/dist/cjs/api/types/AccountSort.js +11 -0
  158. package/dist/cjs/api/types/AccountUserSort.d.ts +10 -0
  159. package/dist/cjs/api/types/AccountUserSort.js +13 -0
  160. package/dist/cjs/api/types/AssetCommon.d.ts +2 -0
  161. package/dist/cjs/api/types/AssetCommonWithIncludes.d.ts +2 -0
  162. package/dist/cjs/api/types/AssetInclude.d.ts +0 -1
  163. package/dist/cjs/api/types/AssetInclude.js +0 -1
  164. package/dist/cjs/api/types/AssetSearchResult.d.ts +18 -0
  165. package/dist/cjs/api/types/AssetSearchResult.js +12 -0
  166. package/dist/cjs/api/types/AssetShareParams.d.ts +4 -2
  167. package/dist/cjs/api/types/AssigneeMatch.d.ts +7 -0
  168. package/dist/cjs/api/types/AssigneeMatch.js +3 -0
  169. package/dist/cjs/api/types/AudioSampleRateMatch.d.ts +7 -0
  170. package/dist/cjs/api/types/AudioSampleRateMatch.js +3 -0
  171. package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +2 -0
  172. package/dist/cjs/api/types/AuditLogwithIncludes.js +2 -0
  173. package/dist/cjs/api/types/BitDepthMatch.d.ts +7 -0
  174. package/dist/cjs/api/types/BitDepthMatch.js +3 -0
  175. package/dist/cjs/api/types/BitRateMatch.d.ts +7 -0
  176. package/dist/cjs/api/types/BitRateMatch.js +3 -0
  177. package/dist/cjs/api/types/ChannelsMatch.d.ts +7 -0
  178. package/dist/cjs/api/types/ChannelsMatch.js +3 -0
  179. package/dist/cjs/api/types/CodecMatch.d.ts +7 -0
  180. package/dist/cjs/api/types/CodecMatch.js +3 -0
  181. package/dist/cjs/api/types/Collection.d.ts +31 -0
  182. package/dist/cjs/api/types/Collection.js +11 -0
  183. package/dist/cjs/api/types/CollectionInclude.d.ts +4 -0
  184. package/dist/cjs/api/types/CollectionInclude.js +3 -0
  185. package/dist/cjs/api/types/CollectionResponse.d.ts +4 -0
  186. package/dist/cjs/api/types/CollectionResponse.js +3 -0
  187. package/dist/cjs/api/types/CollectionsResponse.d.ts +8 -0
  188. package/dist/cjs/api/types/CollectionsResponse.js +3 -0
  189. package/dist/cjs/api/types/ColorSpaceMatch.d.ts +7 -0
  190. package/dist/cjs/api/types/ColorSpaceMatch.js +3 -0
  191. package/dist/cjs/api/types/CommentCountMatch.d.ts +7 -0
  192. package/dist/cjs/api/types/CommentCountMatch.js +3 -0
  193. package/dist/cjs/api/types/CommentMatch.d.ts +11 -0
  194. package/dist/cjs/api/types/CommentMatch.js +3 -0
  195. package/dist/cjs/api/types/CreatorMatch.d.ts +7 -0
  196. package/dist/cjs/api/types/CreatorMatch.js +3 -0
  197. package/dist/cjs/api/types/DeletedAtMatch.d.ts +7 -0
  198. package/dist/cjs/api/types/DeletedAtMatch.js +3 -0
  199. package/dist/cjs/api/types/DurationMatch.d.ts +7 -0
  200. package/dist/cjs/api/types/DurationMatch.js +3 -0
  201. package/dist/cjs/api/types/DynamicRangeMatch.d.ts +7 -0
  202. package/dist/cjs/api/types/DynamicRangeMatch.js +3 -0
  203. package/dist/cjs/api/types/FieldDefinitionSort.d.ts +8 -0
  204. package/dist/cjs/api/types/FieldDefinitionSort.js +11 -0
  205. package/dist/cjs/api/types/FileTypeMatch.d.ts +7 -0
  206. package/dist/cjs/api/types/FileTypeMatch.js +3 -0
  207. package/dist/cjs/api/types/FileWithIncludes.d.ts +2 -0
  208. package/dist/cjs/api/types/FileWithMediaLinksInclude.d.ts +0 -1
  209. package/dist/cjs/api/types/FileWithMediaLinksInclude.js +0 -1
  210. package/dist/cjs/api/types/File_.d.ts +4 -0
  211. package/dist/cjs/api/types/FilesizeMatch.d.ts +7 -0
  212. package/dist/cjs/api/types/FilesizeMatch.js +3 -0
  213. package/dist/cjs/api/types/Filters.d.ts +2 -0
  214. package/dist/cjs/api/types/Filters.js +2 -0
  215. package/dist/cjs/api/types/FolderWithIncludes.d.ts +2 -0
  216. package/dist/cjs/api/types/FormatMatch.d.ts +7 -0
  217. package/dist/cjs/api/types/FormatMatch.js +3 -0
  218. package/dist/cjs/api/types/FrameOrAdobeId.d.ts +4 -0
  219. package/dist/cjs/api/types/FrameOrAdobeId.js +3 -0
  220. package/dist/cjs/api/types/FrameRateMatch.d.ts +7 -0
  221. package/dist/cjs/api/types/FrameRateMatch.js +3 -0
  222. package/dist/cjs/api/types/HasAlphaChannelMatch.d.ts +7 -0
  223. package/dist/cjs/api/types/HasAlphaChannelMatch.js +3 -0
  224. package/dist/cjs/api/types/InsertedAtMatch.d.ts +7 -0
  225. package/dist/cjs/api/types/InsertedAtMatch.js +3 -0
  226. package/dist/cjs/api/types/KeywordsMatch.d.ts +7 -0
  227. package/dist/cjs/api/types/KeywordsMatch.js +3 -0
  228. package/dist/cjs/api/types/NameMatch.d.ts +9 -0
  229. package/dist/cjs/api/types/NameMatch.js +3 -0
  230. package/dist/cjs/api/types/NotesMatch.d.ts +7 -0
  231. package/dist/cjs/api/types/NotesMatch.js +3 -0
  232. package/dist/cjs/api/types/PageCountMatch.d.ts +7 -0
  233. package/dist/cjs/api/types/PageCountMatch.js +3 -0
  234. package/dist/cjs/api/types/Project.d.ts +2 -0
  235. package/dist/cjs/api/types/ProjectMatch.d.ts +20 -0
  236. package/dist/cjs/api/types/ProjectMatch.js +3 -0
  237. package/dist/cjs/api/types/ProjectMatchInfo.d.ts +9 -0
  238. package/dist/cjs/api/types/ProjectMatchInfo.js +3 -0
  239. package/dist/cjs/api/types/ProjectSearchResult.d.ts +10 -0
  240. package/dist/cjs/api/types/ProjectSearchResult.js +3 -0
  241. package/dist/cjs/api/types/ProjectSort.d.ts +8 -0
  242. package/dist/cjs/api/types/ProjectSort.js +11 -0
  243. package/dist/cjs/api/types/RatingMatch.d.ts +13 -0
  244. package/dist/cjs/api/types/RatingMatch.js +3 -0
  245. package/dist/cjs/api/types/ResolutionHeightMatch.d.ts +7 -0
  246. package/dist/cjs/api/types/ResolutionHeightMatch.js +3 -0
  247. package/dist/cjs/api/types/ResolutionWidthMatch.d.ts +7 -0
  248. package/dist/cjs/api/types/ResolutionWidthMatch.js +3 -0
  249. package/dist/cjs/api/types/ReviewersSort.d.ts +8 -0
  250. package/dist/cjs/api/types/ReviewersSort.js +11 -0
  251. package/dist/cjs/api/types/SearchMatch.d.ts +106 -0
  252. package/dist/cjs/api/types/SearchMatch.js +3 -0
  253. package/dist/cjs/api/types/SearchResponse.d.ts +17 -0
  254. package/dist/cjs/api/types/SearchResponse.js +3 -0
  255. package/dist/cjs/api/types/Share.d.ts +3 -0
  256. package/dist/cjs/api/types/ShareSort.d.ts +8 -0
  257. package/dist/cjs/api/types/ShareSort.js +11 -0
  258. package/dist/cjs/api/types/SourceFilenameMatch.d.ts +9 -0
  259. package/dist/cjs/api/types/SourceFilenameMatch.js +3 -0
  260. package/dist/cjs/api/types/StatusMatch.d.ts +7 -0
  261. package/dist/cjs/api/types/StatusMatch.js +3 -0
  262. package/dist/cjs/api/types/TranscriptionMatch.d.ts +23 -0
  263. package/dist/cjs/api/types/TranscriptionMatch.js +3 -0
  264. package/dist/cjs/api/types/UpdateWorkspaceRoleResponse.d.ts +9 -0
  265. package/dist/cjs/api/types/UpdateWorkspaceRoleResponse.js +3 -0
  266. package/dist/cjs/api/types/UpdatedAtMatch.d.ts +7 -0
  267. package/dist/cjs/api/types/UpdatedAtMatch.js +3 -0
  268. package/dist/cjs/api/types/UploadedAtMatch.d.ts +7 -0
  269. package/dist/cjs/api/types/UploadedAtMatch.js +3 -0
  270. package/dist/cjs/api/types/UserRole.d.ts +1 -0
  271. package/dist/cjs/api/types/UserRole.js +1 -0
  272. package/dist/cjs/api/types/UserRoleSort.d.ts +10 -0
  273. package/dist/cjs/api/types/UserRoleSort.js +13 -0
  274. package/dist/cjs/api/types/UserRolesResponse.d.ts +11 -0
  275. package/dist/cjs/api/types/UserRolesResponse.js +3 -0
  276. package/dist/cjs/api/types/Uuid.d.ts +1 -1
  277. package/dist/cjs/api/types/VersionStack.d.ts +2 -0
  278. package/dist/cjs/api/types/VersionStackWithIncludes.d.ts +2 -0
  279. package/dist/cjs/api/types/VisualMatch.d.ts +27 -0
  280. package/dist/cjs/api/types/VisualMatch.js +3 -0
  281. package/dist/cjs/api/types/VisualMatchClip.d.ts +15 -0
  282. package/dist/cjs/api/types/VisualMatchClip.js +3 -0
  283. package/dist/cjs/api/types/WorkspaceRole.d.ts +10 -0
  284. package/dist/cjs/api/types/WorkspaceRole.js +13 -0
  285. package/dist/cjs/api/types/WorkspaceSort.d.ts +8 -0
  286. package/dist/cjs/api/types/WorkspaceSort.js +11 -0
  287. package/dist/cjs/api/types/WorkspaceUserRole.d.ts +21 -0
  288. package/dist/cjs/api/types/WorkspaceUserRole.js +17 -0
  289. package/dist/cjs/api/types/WorkspaceUserRolesResponse.d.ts +2 -2
  290. package/dist/cjs/api/types/index.d.ts +56 -0
  291. package/dist/cjs/api/types/index.js +56 -0
  292. package/dist/cjs/oauth/BaseAuth.d.ts +2 -2
  293. package/dist/cjs/oauth/BaseAuth.js +13 -13
  294. package/dist/cjs/oauth/NativeAppAuth.d.ts +1 -1
  295. package/dist/cjs/oauth/NativeAppAuth.js +2 -2
  296. package/dist/cjs/oauth/SPAAuth.d.ts +2 -2
  297. package/dist/cjs/oauth/SPAAuth.js +12 -12
  298. package/dist/cjs/oauth/ServerToServerAuth.d.ts +2 -2
  299. package/dist/cjs/oauth/ServerToServerAuth.js +6 -6
  300. package/dist/cjs/oauth/TokenManager.d.ts +1 -1
  301. package/dist/cjs/oauth/TokenManager.js +11 -11
  302. package/dist/cjs/oauth/WebAppAuth.d.ts +2 -2
  303. package/dist/cjs/oauth/WebAppAuth.js +10 -10
  304. package/dist/cjs/oauth/http.d.ts +2 -2
  305. package/dist/cjs/oauth/http.js +15 -15
  306. package/dist/cjs/oauth/index.d.ts +14 -14
  307. package/dist/cjs/oauth/index.js +21 -21
  308. package/dist/cjs/oauth/validation.d.ts +1 -1
  309. package/dist/cjs/oauth/validation.js +6 -6
  310. package/dist/cjs/version.d.ts +1 -1
  311. package/dist/cjs/version.js +1 -1
  312. package/dist/esm/BaseClient.mjs +2 -2
  313. package/dist/esm/Client.d.mts +9 -0
  314. package/dist/esm/Client.mjs +15 -0
  315. package/dist/esm/api/resources/accountPermissions/client/Client.d.mts +3 -2
  316. package/dist/esm/api/resources/accountPermissions/client/Client.mjs +2 -1
  317. package/dist/esm/api/resources/accountPermissions/client/requests/AccountPermissionsIndexRequest.d.mts +3 -0
  318. package/dist/esm/api/resources/accountPermissions/index.d.mts +1 -0
  319. package/dist/esm/api/resources/accountPermissions/index.mjs +1 -0
  320. package/dist/esm/api/resources/accountPermissions/types/AccountPermissionsIndexRequestSort.d.mts +10 -0
  321. package/dist/esm/api/resources/accountPermissions/types/AccountPermissionsIndexRequestSort.mjs +10 -0
  322. package/dist/esm/api/resources/accountPermissions/types/index.d.mts +1 -0
  323. package/dist/esm/api/resources/accountPermissions/types/index.mjs +1 -0
  324. package/dist/esm/api/resources/accounts/client/Client.d.mts +3 -2
  325. package/dist/esm/api/resources/accounts/client/Client.mjs +2 -1
  326. package/dist/esm/api/resources/accounts/client/requests/AccountsIndexRequest.d.mts +3 -0
  327. package/dist/esm/api/resources/accounts/index.d.mts +1 -0
  328. package/dist/esm/api/resources/accounts/index.mjs +1 -0
  329. package/dist/esm/api/resources/accounts/types/AccountsIndexRequestSort.d.mts +8 -0
  330. package/dist/esm/api/resources/accounts/types/AccountsIndexRequestSort.mjs +8 -0
  331. package/dist/esm/api/resources/accounts/types/index.d.mts +1 -0
  332. package/dist/esm/api/resources/accounts/types/index.mjs +1 -0
  333. package/dist/esm/api/resources/collections/client/Client.d.mts +65 -0
  334. package/dist/esm/api/resources/collections/client/Client.mjs +179 -0
  335. package/dist/esm/api/resources/collections/client/index.d.mts +1 -0
  336. package/dist/esm/api/resources/collections/client/index.mjs +1 -0
  337. package/dist/esm/api/resources/collections/client/requests/CollectionsIndexRequest.d.mts +21 -0
  338. package/dist/esm/api/resources/collections/client/requests/CollectionsIndexRequest.mjs +2 -0
  339. package/dist/esm/api/resources/collections/client/requests/CollectionsShowRequest.d.mts +10 -0
  340. package/dist/esm/api/resources/collections/client/requests/CollectionsShowRequest.mjs +2 -0
  341. package/dist/esm/api/resources/collections/client/requests/index.d.mts +2 -0
  342. package/dist/esm/api/resources/collections/client/requests/index.mjs +1 -0
  343. package/dist/esm/api/resources/collections/exports.d.mts +2 -0
  344. package/dist/esm/api/resources/collections/exports.mjs +3 -0
  345. package/dist/esm/api/resources/collections/index.d.mts +1 -0
  346. package/dist/esm/api/resources/collections/index.mjs +1 -0
  347. package/dist/esm/api/resources/comments/client/Client.d.mts +17 -17
  348. package/dist/esm/api/resources/comments/client/Client.mjs +10 -10
  349. package/dist/esm/api/resources/customActions/client/Client.d.mts +10 -10
  350. package/dist/esm/api/resources/customActions/client/Client.mjs +5 -5
  351. package/dist/esm/api/resources/files/client/Client.d.mts +33 -33
  352. package/dist/esm/api/resources/files/client/Client.mjs +22 -22
  353. package/dist/esm/api/resources/files/types/FilesListRequestInclude.d.mts +0 -1
  354. package/dist/esm/api/resources/files/types/FilesListRequestInclude.mjs +0 -1
  355. package/dist/esm/api/resources/files/types/FilesShowRequestInclude.d.mts +0 -1
  356. package/dist/esm/api/resources/files/types/FilesShowRequestInclude.mjs +0 -1
  357. package/dist/esm/api/resources/folderPermissions/client/Client.d.mts +90 -0
  358. package/dist/esm/api/resources/folderPermissions/client/Client.mjs +250 -0
  359. package/dist/esm/api/resources/folderPermissions/client/index.d.mts +1 -0
  360. package/dist/esm/api/resources/folderPermissions/client/index.mjs +1 -0
  361. package/dist/esm/api/resources/folderPermissions/client/requests/FolderUserRolesIndexRequest.d.mts +22 -0
  362. package/dist/esm/api/resources/folderPermissions/client/requests/FolderUserRolesIndexRequest.mjs +2 -0
  363. package/dist/esm/api/resources/folderPermissions/client/requests/index.d.mts +1 -0
  364. package/dist/esm/api/resources/folderPermissions/client/requests/index.mjs +1 -0
  365. package/dist/esm/api/resources/folderPermissions/exports.d.mts +2 -0
  366. package/dist/esm/api/resources/folderPermissions/exports.mjs +3 -0
  367. package/dist/esm/api/resources/folderPermissions/index.d.mts +1 -0
  368. package/dist/esm/api/resources/folderPermissions/index.mjs +1 -0
  369. package/dist/esm/api/resources/folders/client/Client.d.mts +24 -24
  370. package/dist/esm/api/resources/folders/client/Client.mjs +16 -16
  371. package/dist/esm/api/resources/folders/types/FoldersIndexRequestInclude.d.mts +0 -1
  372. package/dist/esm/api/resources/folders/types/FoldersIndexRequestInclude.mjs +0 -1
  373. package/dist/esm/api/resources/folders/types/FoldersListRequestInclude.d.mts +0 -1
  374. package/dist/esm/api/resources/folders/types/FoldersListRequestInclude.mjs +0 -1
  375. package/dist/esm/api/resources/folders/types/FoldersShowRequestInclude.d.mts +0 -1
  376. package/dist/esm/api/resources/folders/types/FoldersShowRequestInclude.mjs +0 -1
  377. package/dist/esm/api/resources/groups/client/Client.d.mts +8 -8
  378. package/dist/esm/api/resources/groups/client/Client.mjs +4 -4
  379. package/dist/esm/api/resources/index.d.mts +12 -0
  380. package/dist/esm/api/resources/index.mjs +12 -0
  381. package/dist/esm/api/resources/metadata/client/Client.d.mts +10 -10
  382. package/dist/esm/api/resources/metadata/client/Client.mjs +8 -8
  383. package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +5 -5
  384. package/dist/esm/api/resources/metadataFields/client/Client.d.mts +9 -8
  385. package/dist/esm/api/resources/metadataFields/client/Client.mjs +7 -5
  386. package/dist/esm/api/resources/metadataFields/client/requests/MetadataFieldDefinitionsIndexRequest.d.mts +3 -0
  387. package/dist/esm/api/resources/metadataFields/types/MetadataFieldDefinitionsIndexRequestSort.d.mts +8 -0
  388. package/dist/esm/api/resources/metadataFields/types/MetadataFieldDefinitionsIndexRequestSort.mjs +8 -0
  389. package/dist/esm/api/resources/metadataFields/types/index.d.mts +1 -0
  390. package/dist/esm/api/resources/metadataFields/types/index.mjs +1 -0
  391. package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +10 -9
  392. package/dist/esm/api/resources/projectPermissions/client/Client.mjs +7 -6
  393. package/dist/esm/api/resources/projectPermissions/client/requests/ProjectPermissionsIndexRequest.d.mts +3 -0
  394. package/dist/esm/api/resources/projectPermissions/index.d.mts +1 -0
  395. package/dist/esm/api/resources/projectPermissions/index.mjs +1 -0
  396. package/dist/esm/api/resources/projectPermissions/types/ProjectPermissionsIndexRequestSort.d.mts +10 -0
  397. package/dist/esm/api/resources/projectPermissions/types/ProjectPermissionsIndexRequestSort.mjs +10 -0
  398. package/dist/esm/api/resources/projectPermissions/types/index.d.mts +1 -0
  399. package/dist/esm/api/resources/projectPermissions/types/index.mjs +1 -0
  400. package/dist/esm/api/resources/projects/client/Client.d.mts +14 -13
  401. package/dist/esm/api/resources/projects/client/Client.mjs +9 -8
  402. package/dist/esm/api/resources/projects/client/requests/ProjectsIndexRequest.d.mts +3 -0
  403. package/dist/esm/api/resources/projects/index.d.mts +1 -0
  404. package/dist/esm/api/resources/projects/index.mjs +1 -0
  405. package/dist/esm/api/resources/projects/types/ProjectsIndexRequestSort.d.mts +8 -0
  406. package/dist/esm/api/resources/projects/types/ProjectsIndexRequestSort.mjs +8 -0
  407. package/dist/esm/api/resources/projects/types/index.d.mts +1 -0
  408. package/dist/esm/api/resources/projects/types/index.mjs +1 -0
  409. package/dist/esm/api/resources/search/client/Client.d.mts +48 -0
  410. package/dist/esm/api/resources/search/client/Client.mjs +124 -0
  411. package/dist/esm/api/resources/search/client/index.d.mts +1 -0
  412. package/dist/esm/api/resources/search/client/index.mjs +1 -0
  413. package/dist/esm/api/resources/search/client/requests/SearchParams.d.mts +51 -0
  414. package/dist/esm/api/resources/search/client/requests/SearchParams.mjs +9 -0
  415. package/dist/esm/api/resources/search/client/requests/index.d.mts +1 -0
  416. package/dist/esm/api/resources/search/client/requests/index.mjs +1 -0
  417. package/dist/esm/api/resources/search/exports.d.mts +2 -0
  418. package/dist/esm/api/resources/search/exports.mjs +3 -0
  419. package/dist/esm/api/resources/search/index.d.mts +1 -0
  420. package/dist/esm/api/resources/search/index.mjs +1 -0
  421. package/dist/esm/api/resources/shares/client/Client.d.mts +29 -27
  422. package/dist/esm/api/resources/shares/client/Client.mjs +19 -17
  423. package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +2 -2
  424. package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +2 -2
  425. package/dist/esm/api/resources/shares/client/requests/SharesIndexRequest.d.mts +3 -0
  426. package/dist/esm/api/resources/shares/client/requests/SharesListReviewersRequest.d.mts +3 -0
  427. package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +2 -1
  428. package/dist/esm/api/resources/shares/types/SharesIndexRequestSort.d.mts +8 -0
  429. package/dist/esm/api/resources/shares/types/SharesIndexRequestSort.mjs +8 -0
  430. package/dist/esm/api/resources/shares/types/SharesListReviewersRequestSort.d.mts +8 -0
  431. package/dist/esm/api/resources/shares/types/SharesListReviewersRequestSort.mjs +8 -0
  432. package/dist/esm/api/resources/shares/types/index.d.mts +2 -0
  433. package/dist/esm/api/resources/shares/types/index.mjs +2 -0
  434. package/dist/esm/api/resources/versionStacks/client/Client.d.mts +19 -19
  435. package/dist/esm/api/resources/versionStacks/client/Client.mjs +13 -13
  436. package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +3 -2
  437. package/dist/esm/api/resources/versionStacks/types/VersionStacksIndexRequestInclude.d.mts +0 -1
  438. package/dist/esm/api/resources/versionStacks/types/VersionStacksIndexRequestInclude.mjs +0 -1
  439. package/dist/esm/api/resources/versionStacks/types/VersionStacksListRequestInclude.d.mts +0 -1
  440. package/dist/esm/api/resources/versionStacks/types/VersionStacksListRequestInclude.mjs +0 -1
  441. package/dist/esm/api/resources/versionStacks/types/VersionStacksShowRequestInclude.d.mts +0 -1
  442. package/dist/esm/api/resources/versionStacks/types/VersionStacksShowRequestInclude.mjs +0 -1
  443. package/dist/esm/api/resources/webhooks/client/Client.d.mts +10 -10
  444. package/dist/esm/api/resources/webhooks/client/Client.mjs +5 -5
  445. package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +8 -7
  446. package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +5 -4
  447. package/dist/esm/api/resources/workspacePermissions/client/requests/UpdateWorkspaceRoleParams.d.mts +17 -0
  448. package/dist/esm/api/resources/workspacePermissions/client/requests/UpdateWorkspaceRoleParams.mjs +2 -0
  449. package/dist/esm/api/resources/workspacePermissions/client/requests/WorkspacePermissionsIndexRequest.d.mts +3 -0
  450. package/dist/esm/api/resources/workspacePermissions/client/requests/index.d.mts +1 -0
  451. package/dist/esm/api/resources/workspacePermissions/index.d.mts +1 -0
  452. package/dist/esm/api/resources/workspacePermissions/index.mjs +1 -0
  453. package/dist/esm/api/resources/workspacePermissions/types/WorkspacePermissionsIndexRequestSort.d.mts +10 -0
  454. package/dist/esm/api/resources/workspacePermissions/types/WorkspacePermissionsIndexRequestSort.mjs +10 -0
  455. package/dist/esm/api/resources/workspacePermissions/types/index.d.mts +1 -0
  456. package/dist/esm/api/resources/workspacePermissions/types/index.mjs +1 -0
  457. package/dist/esm/api/resources/workspaces/client/Client.d.mts +11 -10
  458. package/dist/esm/api/resources/workspaces/client/Client.mjs +6 -5
  459. package/dist/esm/api/resources/workspaces/client/requests/WorkspacesIndexRequest.d.mts +3 -0
  460. package/dist/esm/api/resources/workspaces/index.d.mts +1 -0
  461. package/dist/esm/api/resources/workspaces/index.mjs +1 -0
  462. package/dist/esm/api/resources/workspaces/types/WorkspacesIndexRequestSort.d.mts +8 -0
  463. package/dist/esm/api/resources/workspaces/types/WorkspacesIndexRequestSort.mjs +8 -0
  464. package/dist/esm/api/resources/workspaces/types/index.d.mts +1 -0
  465. package/dist/esm/api/resources/workspaces/types/index.mjs +1 -0
  466. package/dist/esm/api/types/Account.d.mts +2 -0
  467. package/dist/esm/api/types/AccountSort.d.mts +8 -0
  468. package/dist/esm/api/types/AccountSort.mjs +8 -0
  469. package/dist/esm/api/types/AccountUserSort.d.mts +10 -0
  470. package/dist/esm/api/types/AccountUserSort.mjs +10 -0
  471. package/dist/esm/api/types/AssetCommon.d.mts +2 -0
  472. package/dist/esm/api/types/AssetCommonWithIncludes.d.mts +2 -0
  473. package/dist/esm/api/types/AssetInclude.d.mts +0 -1
  474. package/dist/esm/api/types/AssetInclude.mjs +0 -1
  475. package/dist/esm/api/types/AssetSearchResult.d.mts +18 -0
  476. package/dist/esm/api/types/AssetSearchResult.mjs +9 -0
  477. package/dist/esm/api/types/AssetShareParams.d.mts +4 -2
  478. package/dist/esm/api/types/AssigneeMatch.d.mts +7 -0
  479. package/dist/esm/api/types/AssigneeMatch.mjs +2 -0
  480. package/dist/esm/api/types/AudioSampleRateMatch.d.mts +7 -0
  481. package/dist/esm/api/types/AudioSampleRateMatch.mjs +2 -0
  482. package/dist/esm/api/types/AuditLogwithIncludes.d.mts +2 -0
  483. package/dist/esm/api/types/AuditLogwithIncludes.mjs +2 -0
  484. package/dist/esm/api/types/BitDepthMatch.d.mts +7 -0
  485. package/dist/esm/api/types/BitDepthMatch.mjs +2 -0
  486. package/dist/esm/api/types/BitRateMatch.d.mts +7 -0
  487. package/dist/esm/api/types/BitRateMatch.mjs +2 -0
  488. package/dist/esm/api/types/ChannelsMatch.d.mts +7 -0
  489. package/dist/esm/api/types/ChannelsMatch.mjs +2 -0
  490. package/dist/esm/api/types/CodecMatch.d.mts +7 -0
  491. package/dist/esm/api/types/CodecMatch.mjs +2 -0
  492. package/dist/esm/api/types/Collection.d.mts +31 -0
  493. package/dist/esm/api/types/Collection.mjs +8 -0
  494. package/dist/esm/api/types/CollectionInclude.d.mts +4 -0
  495. package/dist/esm/api/types/CollectionInclude.mjs +2 -0
  496. package/dist/esm/api/types/CollectionResponse.d.mts +4 -0
  497. package/dist/esm/api/types/CollectionResponse.mjs +2 -0
  498. package/dist/esm/api/types/CollectionsResponse.d.mts +8 -0
  499. package/dist/esm/api/types/CollectionsResponse.mjs +2 -0
  500. package/dist/esm/api/types/ColorSpaceMatch.d.mts +7 -0
  501. package/dist/esm/api/types/ColorSpaceMatch.mjs +2 -0
  502. package/dist/esm/api/types/CommentCountMatch.d.mts +7 -0
  503. package/dist/esm/api/types/CommentCountMatch.mjs +2 -0
  504. package/dist/esm/api/types/CommentMatch.d.mts +11 -0
  505. package/dist/esm/api/types/CommentMatch.mjs +2 -0
  506. package/dist/esm/api/types/CreatorMatch.d.mts +7 -0
  507. package/dist/esm/api/types/CreatorMatch.mjs +2 -0
  508. package/dist/esm/api/types/DeletedAtMatch.d.mts +7 -0
  509. package/dist/esm/api/types/DeletedAtMatch.mjs +2 -0
  510. package/dist/esm/api/types/DurationMatch.d.mts +7 -0
  511. package/dist/esm/api/types/DurationMatch.mjs +2 -0
  512. package/dist/esm/api/types/DynamicRangeMatch.d.mts +7 -0
  513. package/dist/esm/api/types/DynamicRangeMatch.mjs +2 -0
  514. package/dist/esm/api/types/FieldDefinitionSort.d.mts +8 -0
  515. package/dist/esm/api/types/FieldDefinitionSort.mjs +8 -0
  516. package/dist/esm/api/types/FileTypeMatch.d.mts +7 -0
  517. package/dist/esm/api/types/FileTypeMatch.mjs +2 -0
  518. package/dist/esm/api/types/FileWithIncludes.d.mts +2 -0
  519. package/dist/esm/api/types/FileWithMediaLinksInclude.d.mts +0 -1
  520. package/dist/esm/api/types/FileWithMediaLinksInclude.mjs +0 -1
  521. package/dist/esm/api/types/File_.d.mts +4 -0
  522. package/dist/esm/api/types/FilesizeMatch.d.mts +7 -0
  523. package/dist/esm/api/types/FilesizeMatch.mjs +2 -0
  524. package/dist/esm/api/types/Filters.d.mts +2 -0
  525. package/dist/esm/api/types/Filters.mjs +2 -0
  526. package/dist/esm/api/types/FolderWithIncludes.d.mts +2 -0
  527. package/dist/esm/api/types/FormatMatch.d.mts +7 -0
  528. package/dist/esm/api/types/FormatMatch.mjs +2 -0
  529. package/dist/esm/api/types/FrameOrAdobeId.d.mts +4 -0
  530. package/dist/esm/api/types/FrameOrAdobeId.mjs +2 -0
  531. package/dist/esm/api/types/FrameRateMatch.d.mts +7 -0
  532. package/dist/esm/api/types/FrameRateMatch.mjs +2 -0
  533. package/dist/esm/api/types/HasAlphaChannelMatch.d.mts +7 -0
  534. package/dist/esm/api/types/HasAlphaChannelMatch.mjs +2 -0
  535. package/dist/esm/api/types/InsertedAtMatch.d.mts +7 -0
  536. package/dist/esm/api/types/InsertedAtMatch.mjs +2 -0
  537. package/dist/esm/api/types/KeywordsMatch.d.mts +7 -0
  538. package/dist/esm/api/types/KeywordsMatch.mjs +2 -0
  539. package/dist/esm/api/types/NameMatch.d.mts +9 -0
  540. package/dist/esm/api/types/NameMatch.mjs +2 -0
  541. package/dist/esm/api/types/NotesMatch.d.mts +7 -0
  542. package/dist/esm/api/types/NotesMatch.mjs +2 -0
  543. package/dist/esm/api/types/PageCountMatch.d.mts +7 -0
  544. package/dist/esm/api/types/PageCountMatch.mjs +2 -0
  545. package/dist/esm/api/types/Project.d.mts +2 -0
  546. package/dist/esm/api/types/ProjectMatch.d.mts +20 -0
  547. package/dist/esm/api/types/ProjectMatch.mjs +2 -0
  548. package/dist/esm/api/types/ProjectMatchInfo.d.mts +9 -0
  549. package/dist/esm/api/types/ProjectMatchInfo.mjs +2 -0
  550. package/dist/esm/api/types/ProjectSearchResult.d.mts +10 -0
  551. package/dist/esm/api/types/ProjectSearchResult.mjs +2 -0
  552. package/dist/esm/api/types/ProjectSort.d.mts +8 -0
  553. package/dist/esm/api/types/ProjectSort.mjs +8 -0
  554. package/dist/esm/api/types/RatingMatch.d.mts +13 -0
  555. package/dist/esm/api/types/RatingMatch.mjs +2 -0
  556. package/dist/esm/api/types/ResolutionHeightMatch.d.mts +7 -0
  557. package/dist/esm/api/types/ResolutionHeightMatch.mjs +2 -0
  558. package/dist/esm/api/types/ResolutionWidthMatch.d.mts +7 -0
  559. package/dist/esm/api/types/ResolutionWidthMatch.mjs +2 -0
  560. package/dist/esm/api/types/ReviewersSort.d.mts +8 -0
  561. package/dist/esm/api/types/ReviewersSort.mjs +8 -0
  562. package/dist/esm/api/types/SearchMatch.d.mts +106 -0
  563. package/dist/esm/api/types/SearchMatch.mjs +2 -0
  564. package/dist/esm/api/types/SearchResponse.d.mts +17 -0
  565. package/dist/esm/api/types/SearchResponse.mjs +2 -0
  566. package/dist/esm/api/types/Share.d.mts +3 -0
  567. package/dist/esm/api/types/ShareSort.d.mts +8 -0
  568. package/dist/esm/api/types/ShareSort.mjs +8 -0
  569. package/dist/esm/api/types/SourceFilenameMatch.d.mts +9 -0
  570. package/dist/esm/api/types/SourceFilenameMatch.mjs +2 -0
  571. package/dist/esm/api/types/StatusMatch.d.mts +7 -0
  572. package/dist/esm/api/types/StatusMatch.mjs +2 -0
  573. package/dist/esm/api/types/TranscriptionMatch.d.mts +23 -0
  574. package/dist/esm/api/types/TranscriptionMatch.mjs +2 -0
  575. package/dist/esm/api/types/UpdateWorkspaceRoleResponse.d.mts +9 -0
  576. package/dist/esm/api/types/UpdateWorkspaceRoleResponse.mjs +2 -0
  577. package/dist/esm/api/types/UpdatedAtMatch.d.mts +7 -0
  578. package/dist/esm/api/types/UpdatedAtMatch.mjs +2 -0
  579. package/dist/esm/api/types/UploadedAtMatch.d.mts +7 -0
  580. package/dist/esm/api/types/UploadedAtMatch.mjs +2 -0
  581. package/dist/esm/api/types/UserRole.d.mts +1 -0
  582. package/dist/esm/api/types/UserRole.mjs +1 -0
  583. package/dist/esm/api/types/UserRoleSort.d.mts +10 -0
  584. package/dist/esm/api/types/UserRoleSort.mjs +10 -0
  585. package/dist/esm/api/types/UserRolesResponse.d.mts +11 -0
  586. package/dist/esm/api/types/UserRolesResponse.mjs +2 -0
  587. package/dist/esm/api/types/Uuid.d.mts +1 -1
  588. package/dist/esm/api/types/VersionStack.d.mts +2 -0
  589. package/dist/esm/api/types/VersionStackWithIncludes.d.mts +2 -0
  590. package/dist/esm/api/types/VisualMatch.d.mts +27 -0
  591. package/dist/esm/api/types/VisualMatch.mjs +2 -0
  592. package/dist/esm/api/types/VisualMatchClip.d.mts +15 -0
  593. package/dist/esm/api/types/VisualMatchClip.mjs +2 -0
  594. package/dist/esm/api/types/WorkspaceRole.d.mts +10 -0
  595. package/dist/esm/api/types/WorkspaceRole.mjs +10 -0
  596. package/dist/esm/api/types/WorkspaceSort.d.mts +8 -0
  597. package/dist/esm/api/types/WorkspaceSort.mjs +8 -0
  598. package/dist/esm/api/types/WorkspaceUserRole.d.mts +21 -0
  599. package/dist/esm/api/types/WorkspaceUserRole.mjs +14 -0
  600. package/dist/esm/api/types/WorkspaceUserRolesResponse.d.mts +2 -2
  601. package/dist/esm/api/types/index.d.mts +56 -0
  602. package/dist/esm/api/types/index.mjs +56 -0
  603. package/dist/esm/index.d.mts +4 -4
  604. package/dist/esm/index.mjs +3 -3
  605. package/dist/esm/oauth/BaseAuth.d.mts +2 -2
  606. package/dist/esm/oauth/BaseAuth.mjs +4 -4
  607. package/dist/esm/oauth/NativeAppAuth.d.mts +1 -1
  608. package/dist/esm/oauth/NativeAppAuth.mjs +1 -1
  609. package/dist/esm/oauth/SPAAuth.d.mts +2 -2
  610. package/dist/esm/oauth/SPAAuth.mjs +5 -5
  611. package/dist/esm/oauth/ServerToServerAuth.d.mts +2 -2
  612. package/dist/esm/oauth/ServerToServerAuth.mjs +3 -3
  613. package/dist/esm/oauth/TokenManager.d.mts +1 -1
  614. package/dist/esm/oauth/TokenManager.mjs +3 -3
  615. package/dist/esm/oauth/WebAppAuth.d.mts +2 -2
  616. package/dist/esm/oauth/WebAppAuth.mjs +4 -4
  617. package/dist/esm/oauth/http.d.mts +2 -2
  618. package/dist/esm/oauth/http.mjs +2 -2
  619. package/dist/esm/oauth/index.d.mts +14 -14
  620. package/dist/esm/oauth/index.mjs +7 -7
  621. package/dist/esm/oauth/validation.d.mts +1 -1
  622. package/dist/esm/oauth/validation.mjs +1 -1
  623. package/dist/esm/version.d.mts +1 -1
  624. package/dist/esm/version.mjs +1 -1
  625. package/package.json +34 -1
  626. package/reference.md +704 -181
@@ -4,7 +4,7 @@
4
4
  * Use for desktop and mobile applications with custom URI schemes
5
5
  * or loopback redirects.
6
6
  */
7
- import { SPAAuth, type SPAAuthOptions } from "./SPAAuth";
7
+ import { SPAAuth, type SPAAuthOptions } from "./SPAAuth.js";
8
8
  export type NativeAppAuthOptions = SPAAuthOptions;
9
9
  /**
10
10
  * Authenticate native (desktop / mobile) apps using PKCE.
@@ -7,7 +7,7 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.NativeAppAuth = void 0;
10
- const SPAAuth_1 = require("./SPAAuth");
10
+ const SPAAuth_js_1 = require("./SPAAuth.js");
11
11
  /**
12
12
  * Authenticate native (desktop / mobile) apps using PKCE.
13
13
  *
@@ -30,6 +30,6 @@ const SPAAuth_1 = require("./SPAAuth");
30
30
  * const client = new FrameioClient({ token: () => auth.getToken() });
31
31
  * ```
32
32
  */
33
- class NativeAppAuth extends SPAAuth_1.SPAAuth {
33
+ class NativeAppAuth extends SPAAuth_js_1.SPAAuth {
34
34
  }
35
35
  exports.NativeAppAuth = NativeAppAuth;
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Use for browser-based apps that cannot store a client secret.
5
5
  */
6
- import { BaseAuth, type BaseAuthOptions } from "./BaseAuth";
7
- import type { TokenResponse } from "./TokenManager";
6
+ import { BaseAuth, type BaseAuthOptions } from "./BaseAuth.js";
7
+ import type { TokenResponse } from "./TokenManager.js";
8
8
  /** Returned by `getAuthorizationUrl` — contains the URL and PKCE verifier. */
9
9
  export interface AuthorizationUrlResult {
10
10
  url: string;
@@ -15,21 +15,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.SPAAuth = void 0;
18
- const BaseAuth_1 = require("./BaseAuth");
19
- const errors_1 = require("./errors");
20
- const http_1 = require("./http");
21
- const pkce_1 = require("./pkce");
22
- const validation_1 = require("./validation");
23
- class SPAAuth extends BaseAuth_1.BaseAuth {
18
+ const BaseAuth_js_1 = require("./BaseAuth.js");
19
+ const errors_js_1 = require("./errors.js");
20
+ const http_js_1 = require("./http.js");
21
+ const pkce_js_1 = require("./pkce.js");
22
+ const validation_js_1 = require("./validation.js");
23
+ class SPAAuth extends BaseAuth_js_1.BaseAuth {
24
24
  constructor(options) {
25
25
  var _a;
26
26
  if (!options.redirectUri) {
27
- throw new errors_1.ConfigurationError("redirectUri is required");
27
+ throw new errors_js_1.ConfigurationError("redirectUri is required");
28
28
  }
29
- (0, validation_1.validateRedirectUriScheme)(options.redirectUri);
29
+ (0, validation_js_1.validateRedirectUriScheme)(options.redirectUri);
30
30
  super(options);
31
31
  this._redirectUri = options.redirectUri;
32
- this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a : http_1.DEFAULT_SCOPES;
32
+ this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a : http_js_1.DEFAULT_SCOPES;
33
33
  }
34
34
  /**
35
35
  * Build the Adobe IMS authorization URL with PKCE challenge.
@@ -38,8 +38,8 @@ class SPAAuth extends BaseAuth_1.BaseAuth {
38
38
  */
39
39
  getAuthorizationUrl(options) {
40
40
  return __awaiter(this, void 0, void 0, function* () {
41
- const codeVerifier = (0, pkce_1.generateCodeVerifier)();
42
- const codeChallenge = yield (0, pkce_1.generateCodeChallenge)(codeVerifier);
41
+ const codeVerifier = (0, pkce_js_1.generateCodeVerifier)();
42
+ const codeChallenge = yield (0, pkce_js_1.generateCodeChallenge)(codeVerifier);
43
43
  const params = new URLSearchParams({
44
44
  client_id: this._clientId,
45
45
  redirect_uri: this._redirectUri,
@@ -83,7 +83,7 @@ class SPAAuth extends BaseAuth_1.BaseAuth {
83
83
  return __awaiter(this, void 0, void 0, function* () {
84
84
  const refreshTok = this._tokenManager.refreshTokenValue;
85
85
  if (!refreshTok) {
86
- throw new errors_1.ConfigurationError("No refresh token available. Call exchangeCode() first.");
86
+ throw new errors_js_1.ConfigurationError("No refresh token available. Call exchangeCode() first.");
87
87
  }
88
88
  return this._tokenRequest({
89
89
  grant_type: "refresh_token",
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Use for backend services and scripts with no user interaction.
5
5
  */
6
- import { BaseAuth, type BaseAuthOptions } from "./BaseAuth";
7
- import type { TokenResponse } from "./TokenManager";
6
+ import { BaseAuth, type BaseAuthOptions } from "./BaseAuth.js";
7
+ import type { TokenResponse } from "./TokenManager.js";
8
8
  export interface ServerToServerAuthOptions extends BaseAuthOptions {
9
9
  clientSecret: string;
10
10
  }
@@ -15,17 +15,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.ServerToServerAuth = void 0;
18
- const BaseAuth_1 = require("./BaseAuth");
19
- const errors_1 = require("./errors");
20
- const http_1 = require("./http");
21
- class ServerToServerAuth extends BaseAuth_1.BaseAuth {
18
+ const BaseAuth_js_1 = require("./BaseAuth.js");
19
+ const errors_js_1 = require("./errors.js");
20
+ const http_js_1 = require("./http.js");
21
+ class ServerToServerAuth extends BaseAuth_js_1.BaseAuth {
22
22
  constructor(options) {
23
23
  var _a;
24
24
  if (!options.clientSecret) {
25
- throw new errors_1.ConfigurationError("clientSecret is required");
25
+ throw new errors_js_1.ConfigurationError("clientSecret is required");
26
26
  }
27
27
  super(options, options.clientSecret);
28
- this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a : http_1.S2S_SCOPES;
28
+ this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a : http_js_1.S2S_SCOPES;
29
29
  }
30
30
  /** Explicitly fetch a new access token. */
31
31
  authenticate() {
@@ -4,7 +4,7 @@
4
4
  * Stores access/refresh tokens, checks expiry with a configurable buffer,
5
5
  * and coordinates async-safe automatic refresh.
6
6
  */
7
- import type { Logger } from "./logger";
7
+ import type { Logger } from "./logger.js";
8
8
  /** Shape returned by refresh functions and token endpoints. */
9
9
  export interface TokenResponse {
10
10
  access_token: string;
@@ -16,9 +16,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
16
16
  };
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.TokenManager = void 0;
19
- const errors_1 = require("./errors");
20
- const logger_1 = require("./logger");
21
- const validation_1 = require("./validation");
19
+ const errors_js_1 = require("./errors.js");
20
+ const logger_js_1 = require("./logger.js");
21
+ const validation_js_1 = require("./validation.js");
22
22
  /**
23
23
  * Manages token storage, expiry detection, and auto-refresh.
24
24
  *
@@ -40,7 +40,7 @@ class TokenManager {
40
40
  this._refreshFunc = options.refreshFunc;
41
41
  this._refreshBuffer = (_a = options.refreshBuffer) !== null && _a !== void 0 ? _a : 60;
42
42
  this._onTokenRefreshed = options.onTokenRefreshed;
43
- this._logger = (_b = options.logger) !== null && _b !== void 0 ? _b : logger_1.noopLogger;
43
+ this._logger = (_b = options.logger) !== null && _b !== void 0 ? _b : logger_js_1.noopLogger;
44
44
  }
45
45
  // ------------------------------------------------------------------
46
46
  // Public API
@@ -92,7 +92,7 @@ class TokenManager {
92
92
  /** Restore token state from a previously exported object. */
93
93
  importTokens(data) {
94
94
  var _a;
95
- (0, validation_1.validateTokenImport)(data);
95
+ (0, validation_js_1.validateTokenImport)(data);
96
96
  this._revoked = false;
97
97
  this._accessToken = data.access_token;
98
98
  this._refreshToken = data.refresh_token;
@@ -139,18 +139,18 @@ class TokenManager {
139
139
  result = yield this._refreshFunc();
140
140
  }
141
141
  catch (err) {
142
- if (err instanceof errors_1.AuthenticationError ||
143
- err instanceof errors_1.TokenExpiredError ||
144
- err instanceof errors_1.NetworkError ||
145
- err instanceof errors_1.RateLimitError) {
142
+ if (err instanceof errors_js_1.AuthenticationError ||
143
+ err instanceof errors_js_1.TokenExpiredError ||
144
+ err instanceof errors_js_1.NetworkError ||
145
+ err instanceof errors_js_1.RateLimitError) {
146
146
  throw err;
147
147
  }
148
- throw new errors_1.AuthenticationError("refresh_failed", (0, errors_1.sanitizeMessage)(`Token refresh failed: ${err instanceof Error ? err.message : String(err)}`));
148
+ throw new errors_js_1.AuthenticationError("refresh_failed", (0, errors_js_1.sanitizeMessage)(`Token refresh failed: ${err instanceof Error ? err.message : String(err)}`));
149
149
  }
150
150
  // If clear() was called while the refresh was in flight (e.g. via
151
151
  // revoke()), do not overwrite the cleared state with new tokens.
152
152
  if (this._revoked) {
153
- throw new errors_1.AuthenticationError("revoked", "Tokens were revoked during refresh.");
153
+ throw new errors_js_1.AuthenticationError("revoked", "Tokens were revoked during refresh.");
154
154
  }
155
155
  const token = result.access_token;
156
156
  this._accessToken = token;
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Use for server-side applications that can securely store a client secret.
5
5
  */
6
- import { BaseAuth, type BaseAuthOptions } from "./BaseAuth";
7
- import type { TokenResponse } from "./TokenManager";
6
+ import { BaseAuth, type BaseAuthOptions } from "./BaseAuth.js";
7
+ import type { TokenResponse } from "./TokenManager.js";
8
8
  export interface WebAppAuthOptions extends BaseAuthOptions {
9
9
  clientSecret: string;
10
10
  redirectUri: string;
@@ -15,23 +15,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.WebAppAuth = void 0;
18
- const BaseAuth_1 = require("./BaseAuth");
19
- const errors_1 = require("./errors");
20
- const http_1 = require("./http");
21
- const validation_1 = require("./validation");
22
- class WebAppAuth extends BaseAuth_1.BaseAuth {
18
+ const BaseAuth_js_1 = require("./BaseAuth.js");
19
+ const errors_js_1 = require("./errors.js");
20
+ const http_js_1 = require("./http.js");
21
+ const validation_js_1 = require("./validation.js");
22
+ class WebAppAuth extends BaseAuth_js_1.BaseAuth {
23
23
  constructor(options) {
24
24
  var _a;
25
25
  if (!options.clientSecret) {
26
- throw new errors_1.ConfigurationError("clientSecret is required");
26
+ throw new errors_js_1.ConfigurationError("clientSecret is required");
27
27
  }
28
28
  if (!options.redirectUri) {
29
- throw new errors_1.ConfigurationError("redirectUri is required");
29
+ throw new errors_js_1.ConfigurationError("redirectUri is required");
30
30
  }
31
- (0, validation_1.validateRedirectUriScheme)(options.redirectUri);
31
+ (0, validation_js_1.validateRedirectUriScheme)(options.redirectUri);
32
32
  super(options, options.clientSecret);
33
33
  this._redirectUri = options.redirectUri;
34
- this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a : http_1.DEFAULT_SCOPES;
34
+ this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a : http_js_1.DEFAULT_SCOPES;
35
35
  }
36
36
  /**
37
37
  * Build the Adobe IMS authorization URL.
@@ -74,7 +74,7 @@ class WebAppAuth extends BaseAuth_1.BaseAuth {
74
74
  return __awaiter(this, void 0, void 0, function* () {
75
75
  const refreshTok = this._tokenManager.refreshTokenValue;
76
76
  if (!refreshTok) {
77
- throw new errors_1.ConfigurationError("No refresh token available. Call exchangeCode() first.");
77
+ throw new errors_js_1.ConfigurationError("No refresh token available. Call exchangeCode() first.");
78
78
  }
79
79
  return this._tokenRequest({
80
80
  grant_type: "refresh_token",
@@ -7,8 +7,8 @@
7
7
  * Allows configurable IMS base URL for staging/alternative environments,
8
8
  * and optional fetch injection for proxy, TLS, and custom HTTP handling.
9
9
  */
10
- import type { Logger } from "./logger";
11
- import type { TokenResponse } from "./TokenManager";
10
+ import type { Logger } from "./logger.js";
11
+ import type { TokenResponse } from "./TokenManager.js";
12
12
  export declare const DEFAULT_IMS_BASE_URL = "https://ims-na1.adobelogin.com";
13
13
  /**
14
14
  * Build authorize, token, and revoke URLs from an IMS base URL.
@@ -22,8 +22,8 @@ exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = exports.S2S_SCOPES = exp
22
22
  exports.buildImsUrls = buildImsUrls;
23
23
  exports.tokenRequest = tokenRequest;
24
24
  exports.revokeRequest = revokeRequest;
25
- const errors_1 = require("./errors");
26
- const logger_1 = require("./logger");
25
+ const errors_js_1 = require("./errors.js");
26
+ const logger_js_1 = require("./logger.js");
27
27
  // Default Adobe IMS base URL (production). Override via imsBaseUrl for staging.
28
28
  exports.DEFAULT_IMS_BASE_URL = "https://ims-na1.adobelogin.com";
29
29
  /**
@@ -33,7 +33,7 @@ exports.DEFAULT_IMS_BASE_URL = "https://ims-na1.adobelogin.com";
33
33
  */
34
34
  function buildImsUrls(imsBaseUrl) {
35
35
  if (!imsBaseUrl.toLowerCase().startsWith("https://")) {
36
- throw new errors_1.ConfigurationError(`imsBaseUrl must use HTTPS, got: ${imsBaseUrl}`);
36
+ throw new errors_js_1.ConfigurationError(`imsBaseUrl must use HTTPS, got: ${imsBaseUrl}`);
37
37
  }
38
38
  const base = imsBaseUrl.replace(/\/$/, "");
39
39
  return {
@@ -75,11 +75,11 @@ function parseRetryAfter(header) {
75
75
  */
76
76
  function validateTokenResponse(data, log) {
77
77
  if (typeof data !== "object" || data === null) {
78
- throw new errors_1.AuthenticationError("invalid_response", "Token endpoint returned non-object response.");
78
+ throw new errors_js_1.AuthenticationError("invalid_response", "Token endpoint returned non-object response.");
79
79
  }
80
80
  const obj = data;
81
81
  if (!("access_token" in obj) || typeof obj.access_token !== "string" || !obj.access_token) {
82
- throw new errors_1.AuthenticationError("invalid_response", "Token response missing or empty 'access_token'.");
82
+ throw new errors_js_1.AuthenticationError("invalid_response", "Token response missing or empty 'access_token'.");
83
83
  }
84
84
  const tokenType = obj.token_type;
85
85
  if (tokenType == null) {
@@ -116,11 +116,11 @@ function tokenRequest(data_1) {
116
116
  var _a, _b, _c, _d, _e, _f;
117
117
  const timeout = (_a = options.timeout) !== null && _a !== void 0 ? _a : exports.DEFAULT_TIMEOUT;
118
118
  const maxRetries = (_b = options.maxRetries) !== null && _b !== void 0 ? _b : exports.DEFAULT_MAX_RETRIES;
119
- const log = (_c = options.logger) !== null && _c !== void 0 ? _c : logger_1.noopLogger;
119
+ const log = (_c = options.logger) !== null && _c !== void 0 ? _c : logger_js_1.noopLogger;
120
120
  const tokenUrl = (_d = options.tokenUrl) !== null && _d !== void 0 ? _d : exports.TOKEN_URL;
121
121
  const fetchFn = (_e = options.fetch) !== null && _e !== void 0 ? _e : (typeof globalThis.fetch !== "undefined" ? globalThis.fetch.bind(globalThis) : undefined);
122
122
  if (fetchFn === undefined) {
123
- throw new errors_1.NetworkError("no fetch implementation available; please provide options.fetch or polyfill global fetch");
123
+ throw new errors_js_1.NetworkError("no fetch implementation available; please provide options.fetch or polyfill global fetch");
124
124
  }
125
125
  const body = new URLSearchParams(data).toString();
126
126
  const maxErrorAttempts = maxRetries + 1;
@@ -156,9 +156,9 @@ function tokenRequest(data_1) {
156
156
  continue;
157
157
  }
158
158
  if (err instanceof Error && (err.name === "AbortError" || err.name === "TimeoutError")) {
159
- throw new errors_1.NetworkError(`Token request timed out after ${timeout}ms (${maxErrorAttempts} attempts).`);
159
+ throw new errors_js_1.NetworkError(`Token request timed out after ${timeout}ms (${maxErrorAttempts} attempts).`);
160
160
  }
161
- throw new errors_1.NetworkError(`Token request failed after ${maxErrorAttempts} attempts: ${err instanceof Error ? err.message : String(err)}`);
161
+ throw new errors_js_1.NetworkError(`Token request failed after ${maxErrorAttempts} attempts: ${err instanceof Error ? err.message : String(err)}`);
162
162
  }
163
163
  // Rate limit handling — separate budget from error retries
164
164
  if (response.status === 429) {
@@ -171,7 +171,7 @@ function tokenRequest(data_1) {
171
171
  yield sleep(waitMs);
172
172
  continue;
173
173
  }
174
- throw new errors_1.RateLimitError(retryAfterSec);
174
+ throw new errors_js_1.RateLimitError(retryAfterSec);
175
175
  }
176
176
  // Retryable server errors
177
177
  if (RETRYABLE_STATUS_CODES.has(response.status)) {
@@ -200,10 +200,10 @@ function tokenRequest(data_1) {
200
200
  errorDesc &&
201
201
  errorDesc.toLowerCase().includes("expired")) {
202
202
  log.error(`Token expired: ${errorCode}`);
203
- throw new errors_1.TokenExpiredError(`${errorCode} — ${errorDesc}`);
203
+ throw new errors_js_1.TokenExpiredError(`${errorCode} — ${errorDesc}`);
204
204
  }
205
205
  log.error(`Authentication error: ${errorCode}`);
206
- throw new errors_1.AuthenticationError(errorCode, errorDesc);
206
+ throw new errors_js_1.AuthenticationError(errorCode, errorDesc);
207
207
  }
208
208
  // Success
209
209
  let responseBody;
@@ -211,14 +211,14 @@ function tokenRequest(data_1) {
211
211
  responseBody = yield response.json();
212
212
  }
213
213
  catch (_h) {
214
- throw new errors_1.AuthenticationError("invalid_response", "Token endpoint returned non-JSON body");
214
+ throw new errors_js_1.AuthenticationError("invalid_response", "Token endpoint returned non-JSON body");
215
215
  }
216
216
  const result = validateTokenResponse(responseBody, log);
217
217
  log.info(`Token acquired (length=${result.access_token.length})`);
218
218
  return result;
219
219
  }
220
220
  // Should not reach here, but just in case
221
- throw new errors_1.NetworkError("Token request failed after all retries.");
221
+ throw new errors_js_1.NetworkError("Token request failed after all retries.");
222
222
  });
223
223
  }
224
224
  /**
@@ -234,7 +234,7 @@ function revokeRequest(token_1, clientId_1, clientSecret_1) {
234
234
  return __awaiter(this, arguments, void 0, function* (token, clientId, clientSecret, options = {}) {
235
235
  var _a, _b, _c, _d;
236
236
  const timeout = (_a = options.timeout) !== null && _a !== void 0 ? _a : exports.DEFAULT_TIMEOUT;
237
- const log = (_b = options.logger) !== null && _b !== void 0 ? _b : logger_1.noopLogger;
237
+ const log = (_b = options.logger) !== null && _b !== void 0 ? _b : logger_js_1.noopLogger;
238
238
  const revokeUrl = (_c = options.revokeUrl) !== null && _c !== void 0 ? _c : exports.REVOKE_URL;
239
239
  const fetchFn = (_d = options.fetch) !== null && _d !== void 0 ? _d : (typeof globalThis.fetch !== "undefined" ? globalThis.fetch.bind(globalThis) : undefined);
240
240
  if (fetchFn === undefined) {
@@ -18,17 +18,17 @@
18
18
  *
19
19
  * @packageDocumentation
20
20
  */
21
- export type { BaseAuthOptions } from "./BaseAuth";
22
- export { ServerToServerAuth } from "./ServerToServerAuth";
23
- export type { ServerToServerAuthOptions } from "./ServerToServerAuth";
24
- export { WebAppAuth } from "./WebAppAuth";
25
- export type { WebAppAuthOptions } from "./WebAppAuth";
26
- export { SPAAuth } from "./SPAAuth";
27
- export type { SPAAuthOptions, AuthorizationUrlResult } from "./SPAAuth";
28
- export { NativeAppAuth } from "./NativeAppAuth";
29
- export type { NativeAppAuthOptions } from "./NativeAppAuth";
30
- export { FrameioAuthError, AuthenticationError, TokenExpiredError, NetworkError, RateLimitError, PKCEError, ConfigurationError, } from "./errors";
31
- export type { Logger } from "./logger";
32
- export { noopLogger } from "./logger";
33
- export { DEFAULT_IMS_BASE_URL, buildImsUrls } from "./http";
34
- export type { TokenResponse, ExportedTokens, OnTokenRefreshed } from "./TokenManager";
21
+ export type { BaseAuthOptions } from "./BaseAuth.js";
22
+ export { ServerToServerAuth } from "./ServerToServerAuth.js";
23
+ export type { ServerToServerAuthOptions } from "./ServerToServerAuth.js";
24
+ export { WebAppAuth } from "./WebAppAuth.js";
25
+ export type { WebAppAuthOptions } from "./WebAppAuth.js";
26
+ export { SPAAuth } from "./SPAAuth.js";
27
+ export type { SPAAuthOptions, AuthorizationUrlResult } from "./SPAAuth.js";
28
+ export { NativeAppAuth } from "./NativeAppAuth.js";
29
+ export type { NativeAppAuthOptions } from "./NativeAppAuth.js";
30
+ export { FrameioAuthError, AuthenticationError, TokenExpiredError, NetworkError, RateLimitError, PKCEError, ConfigurationError, } from "./errors.js";
31
+ export type { Logger } from "./logger.js";
32
+ export { noopLogger } from "./logger.js";
33
+ export { DEFAULT_IMS_BASE_URL, buildImsUrls } from "./http.js";
34
+ export type { TokenResponse, ExportedTokens, OnTokenRefreshed } from "./TokenManager.js";
@@ -22,26 +22,26 @@
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.buildImsUrls = exports.DEFAULT_IMS_BASE_URL = exports.noopLogger = exports.ConfigurationError = exports.PKCEError = exports.RateLimitError = exports.NetworkError = exports.TokenExpiredError = exports.AuthenticationError = exports.FrameioAuthError = exports.NativeAppAuth = exports.SPAAuth = exports.WebAppAuth = exports.ServerToServerAuth = void 0;
24
24
  // Auth flows
25
- var ServerToServerAuth_1 = require("./ServerToServerAuth");
26
- Object.defineProperty(exports, "ServerToServerAuth", { enumerable: true, get: function () { return ServerToServerAuth_1.ServerToServerAuth; } });
27
- var WebAppAuth_1 = require("./WebAppAuth");
28
- Object.defineProperty(exports, "WebAppAuth", { enumerable: true, get: function () { return WebAppAuth_1.WebAppAuth; } });
29
- var SPAAuth_1 = require("./SPAAuth");
30
- Object.defineProperty(exports, "SPAAuth", { enumerable: true, get: function () { return SPAAuth_1.SPAAuth; } });
31
- var NativeAppAuth_1 = require("./NativeAppAuth");
32
- Object.defineProperty(exports, "NativeAppAuth", { enumerable: true, get: function () { return NativeAppAuth_1.NativeAppAuth; } });
25
+ var ServerToServerAuth_js_1 = require("./ServerToServerAuth.js");
26
+ Object.defineProperty(exports, "ServerToServerAuth", { enumerable: true, get: function () { return ServerToServerAuth_js_1.ServerToServerAuth; } });
27
+ var WebAppAuth_js_1 = require("./WebAppAuth.js");
28
+ Object.defineProperty(exports, "WebAppAuth", { enumerable: true, get: function () { return WebAppAuth_js_1.WebAppAuth; } });
29
+ var SPAAuth_js_1 = require("./SPAAuth.js");
30
+ Object.defineProperty(exports, "SPAAuth", { enumerable: true, get: function () { return SPAAuth_js_1.SPAAuth; } });
31
+ var NativeAppAuth_js_1 = require("./NativeAppAuth.js");
32
+ Object.defineProperty(exports, "NativeAppAuth", { enumerable: true, get: function () { return NativeAppAuth_js_1.NativeAppAuth; } });
33
33
  // Errors
34
- var errors_1 = require("./errors");
35
- Object.defineProperty(exports, "FrameioAuthError", { enumerable: true, get: function () { return errors_1.FrameioAuthError; } });
36
- Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return errors_1.AuthenticationError; } });
37
- Object.defineProperty(exports, "TokenExpiredError", { enumerable: true, get: function () { return errors_1.TokenExpiredError; } });
38
- Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return errors_1.NetworkError; } });
39
- Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return errors_1.RateLimitError; } });
40
- Object.defineProperty(exports, "PKCEError", { enumerable: true, get: function () { return errors_1.PKCEError; } });
41
- Object.defineProperty(exports, "ConfigurationError", { enumerable: true, get: function () { return errors_1.ConfigurationError; } });
42
- var logger_1 = require("./logger");
43
- Object.defineProperty(exports, "noopLogger", { enumerable: true, get: function () { return logger_1.noopLogger; } });
34
+ var errors_js_1 = require("./errors.js");
35
+ Object.defineProperty(exports, "FrameioAuthError", { enumerable: true, get: function () { return errors_js_1.FrameioAuthError; } });
36
+ Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return errors_js_1.AuthenticationError; } });
37
+ Object.defineProperty(exports, "TokenExpiredError", { enumerable: true, get: function () { return errors_js_1.TokenExpiredError; } });
38
+ Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return errors_js_1.NetworkError; } });
39
+ Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return errors_js_1.RateLimitError; } });
40
+ Object.defineProperty(exports, "PKCEError", { enumerable: true, get: function () { return errors_js_1.PKCEError; } });
41
+ Object.defineProperty(exports, "ConfigurationError", { enumerable: true, get: function () { return errors_js_1.ConfigurationError; } });
42
+ var logger_js_1 = require("./logger.js");
43
+ Object.defineProperty(exports, "noopLogger", { enumerable: true, get: function () { return logger_js_1.noopLogger; } });
44
44
  // Config
45
- var http_1 = require("./http");
46
- Object.defineProperty(exports, "DEFAULT_IMS_BASE_URL", { enumerable: true, get: function () { return http_1.DEFAULT_IMS_BASE_URL; } });
47
- Object.defineProperty(exports, "buildImsUrls", { enumerable: true, get: function () { return http_1.buildImsUrls; } });
45
+ var http_js_1 = require("./http.js");
46
+ Object.defineProperty(exports, "DEFAULT_IMS_BASE_URL", { enumerable: true, get: function () { return http_js_1.DEFAULT_IMS_BASE_URL; } });
47
+ Object.defineProperty(exports, "buildImsUrls", { enumerable: true, get: function () { return http_js_1.buildImsUrls; } });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Input validation helpers for frameio-auth-sdk.
3
3
  */
4
- import type { ExportedTokens } from "./TokenManager";
4
+ import type { ExportedTokens } from "./TokenManager.js";
5
5
  /**
6
6
  * Validate that a redirect URI uses HTTPS, except for loopback addresses
7
7
  * where HTTP is allowed for local development.
@@ -5,7 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.validateRedirectUriScheme = validateRedirectUriScheme;
7
7
  exports.validateTokenImport = validateTokenImport;
8
- const errors_1 = require("./errors");
8
+ const errors_js_1 = require("./errors.js");
9
9
  /** Hosts that are allowed to use http:// redirect URIs. */
10
10
  const LOOPBACK_HOSTS = new Set(["localhost", "127.0.0.1", "[::1]"]);
11
11
  /**
@@ -30,7 +30,7 @@ function validateRedirectUriScheme(uri) {
30
30
  host = hostPart.split("/")[0].split(":")[0];
31
31
  }
32
32
  if (!LOOPBACK_HOSTS.has(host)) {
33
- throw new errors_1.ConfigurationError(`Redirect URI must use HTTPS for non-loopback hosts, got: ${uri}`);
33
+ throw new errors_js_1.ConfigurationError(`Redirect URI must use HTTPS for non-loopback hosts, got: ${uri}`);
34
34
  }
35
35
  }
36
36
  /**
@@ -40,16 +40,16 @@ function validateRedirectUriScheme(uri) {
40
40
  */
41
41
  function validateTokenImport(data) {
42
42
  if (typeof data !== "object" || data === null) {
43
- throw new errors_1.ConfigurationError("Token import data must be a non-null object.");
43
+ throw new errors_js_1.ConfigurationError("Token import data must be a non-null object.");
44
44
  }
45
45
  const obj = data;
46
46
  if ("access_token" in obj && obj.access_token !== null && typeof obj.access_token !== "string") {
47
- throw new errors_1.ConfigurationError(`access_token must be a string or null, got ${typeof obj.access_token}`);
47
+ throw new errors_js_1.ConfigurationError(`access_token must be a string or null, got ${typeof obj.access_token}`);
48
48
  }
49
49
  if ("refresh_token" in obj && obj.refresh_token !== null && typeof obj.refresh_token !== "string") {
50
- throw new errors_1.ConfigurationError(`refresh_token must be a string or null, got ${typeof obj.refresh_token}`);
50
+ throw new errors_js_1.ConfigurationError(`refresh_token must be a string or null, got ${typeof obj.refresh_token}`);
51
51
  }
52
52
  if ("expires_at" in obj && typeof obj.expires_at !== "number") {
53
- throw new errors_1.ConfigurationError(`expires_at must be a number, got ${typeof obj.expires_at}`);
53
+ throw new errors_js_1.ConfigurationError(`expires_at must be a number, got ${typeof obj.expires_at}`);
54
54
  }
55
55
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.2.0";
1
+ export declare const SDK_VERSION = "4.2.2";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "4.2.0";
4
+ exports.SDK_VERSION = "4.2.2";
@@ -7,8 +7,8 @@ export function normalizeClientOptions(options) {
7
7
  const headers = mergeHeaders({
8
8
  "X-Fern-Language": "JavaScript",
9
9
  "X-Fern-SDK-Name": "frameio",
10
- "X-Fern-SDK-Version": "4.2.0",
11
- "User-Agent": "frameio/4.2.0",
10
+ "X-Fern-SDK-Version": "4.2.2",
11
+ "User-Agent": "frameio/4.2.2",
12
12
  "X-Fern-Runtime": core.RUNTIME.type,
13
13
  "X-Fern-Runtime-Version": core.RUNTIME.version,
14
14
  "user-agent": (_a = options === null || options === void 0 ? void 0 : options.userAgent) !== null && _a !== void 0 ? _a : "frameio-ts",
@@ -1,14 +1,17 @@
1
1
  import { AccountPermissionsClient } from "./api/resources/accountPermissions/client/Client.mjs";
2
2
  import { AccountsClient } from "./api/resources/accounts/client/Client.mjs";
3
+ import { CollectionsClient } from "./api/resources/collections/client/Client.mjs";
3
4
  import { CommentsClient } from "./api/resources/comments/client/Client.mjs";
4
5
  import { CustomActionsClient } from "./api/resources/customActions/client/Client.mjs";
5
6
  import { FilesClient } from "./api/resources/files/client/Client.mjs";
7
+ import { FolderPermissionsClient } from "./api/resources/folderPermissions/client/Client.mjs";
6
8
  import { FoldersClient } from "./api/resources/folders/client/Client.mjs";
7
9
  import { GroupsClient } from "./api/resources/groups/client/Client.mjs";
8
10
  import { MetadataClient } from "./api/resources/metadata/client/Client.mjs";
9
11
  import { MetadataFieldsClient } from "./api/resources/metadataFields/client/Client.mjs";
10
12
  import { ProjectPermissionsClient } from "./api/resources/projectPermissions/client/Client.mjs";
11
13
  import { ProjectsClient } from "./api/resources/projects/client/Client.mjs";
14
+ import { SearchClient } from "./api/resources/search/client/Client.mjs";
12
15
  import { SharesClient } from "./api/resources/shares/client/Client.mjs";
13
16
  import { UsersClient } from "./api/resources/users/client/Client.mjs";
14
17
  import { VersionStacksClient } from "./api/resources/versionStacks/client/Client.mjs";
@@ -41,7 +44,10 @@ export declare class FrameioClient {
41
44
  protected _files: FilesClient | undefined;
42
45
  protected _users: UsersClient | undefined;
43
46
  protected _projects: ProjectsClient | undefined;
47
+ protected _folderPermissions: FolderPermissionsClient | undefined;
44
48
  protected _workspaces: WorkspacesClient | undefined;
49
+ protected _collections: CollectionsClient | undefined;
50
+ protected _search: SearchClient | undefined;
45
51
  constructor(options: FrameioClient.Options);
46
52
  get customActions(): CustomActionsClient;
47
53
  get metadataFields(): MetadataFieldsClient;
@@ -59,7 +65,10 @@ export declare class FrameioClient {
59
65
  get files(): FilesClient;
60
66
  get users(): UsersClient;
61
67
  get projects(): ProjectsClient;
68
+ get folderPermissions(): FolderPermissionsClient;
62
69
  get workspaces(): WorkspacesClient;
70
+ get collections(): CollectionsClient;
71
+ get search(): SearchClient;
63
72
  /**
64
73
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
65
74
  * This is useful for making requests to endpoints not yet supported in the SDK.
@@ -10,15 +10,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  import { AccountPermissionsClient } from "./api/resources/accountPermissions/client/Client.mjs";
12
12
  import { AccountsClient } from "./api/resources/accounts/client/Client.mjs";
13
+ import { CollectionsClient } from "./api/resources/collections/client/Client.mjs";
13
14
  import { CommentsClient } from "./api/resources/comments/client/Client.mjs";
14
15
  import { CustomActionsClient } from "./api/resources/customActions/client/Client.mjs";
15
16
  import { FilesClient } from "./api/resources/files/client/Client.mjs";
17
+ import { FolderPermissionsClient } from "./api/resources/folderPermissions/client/Client.mjs";
16
18
  import { FoldersClient } from "./api/resources/folders/client/Client.mjs";
17
19
  import { GroupsClient } from "./api/resources/groups/client/Client.mjs";
18
20
  import { MetadataClient } from "./api/resources/metadata/client/Client.mjs";
19
21
  import { MetadataFieldsClient } from "./api/resources/metadataFields/client/Client.mjs";
20
22
  import { ProjectPermissionsClient } from "./api/resources/projectPermissions/client/Client.mjs";
21
23
  import { ProjectsClient } from "./api/resources/projects/client/Client.mjs";
24
+ import { SearchClient } from "./api/resources/search/client/Client.mjs";
22
25
  import { SharesClient } from "./api/resources/shares/client/Client.mjs";
23
26
  import { UsersClient } from "./api/resources/users/client/Client.mjs";
24
27
  import { VersionStacksClient } from "./api/resources/versionStacks/client/Client.mjs";
@@ -95,10 +98,22 @@ export class FrameioClient {
95
98
  var _a;
96
99
  return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new ProjectsClient(this._options)));
97
100
  }
101
+ get folderPermissions() {
102
+ var _a;
103
+ return ((_a = this._folderPermissions) !== null && _a !== void 0 ? _a : (this._folderPermissions = new FolderPermissionsClient(this._options)));
104
+ }
98
105
  get workspaces() {
99
106
  var _a;
100
107
  return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new WorkspacesClient(this._options)));
101
108
  }
109
+ get collections() {
110
+ var _a;
111
+ return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new CollectionsClient(this._options)));
112
+ }
113
+ get search() {
114
+ var _a;
115
+ return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new SearchClient(this._options)));
116
+ }
102
117
  /**
103
118
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
104
119
  * This is useful for making requests to endpoints not yet supported in the SDK.