frameio 1.2.1 → 1.2.3

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 (135) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/accountPermissions/client/Client.d.ts +2 -1
  4. package/dist/cjs/api/resources/accountPermissions/client/Client.js +66 -79
  5. package/dist/cjs/api/resources/accounts/client/Client.d.ts +3 -2
  6. package/dist/cjs/api/resources/accounts/client/Client.js +67 -74
  7. package/dist/cjs/api/resources/comments/client/Client.d.ts +2 -1
  8. package/dist/cjs/api/resources/comments/client/Client.js +69 -82
  9. package/dist/cjs/api/resources/files/client/Client.d.ts +1 -1
  10. package/dist/cjs/api/resources/files/client/Client.js +4 -1
  11. package/dist/cjs/api/resources/folders/client/Client.d.ts +1 -1
  12. package/dist/cjs/api/resources/folders/client/Client.js +4 -1
  13. package/dist/cjs/api/resources/folders/types/FoldersListRequestInclude.d.ts +1 -0
  14. package/dist/cjs/api/resources/folders/types/FoldersListRequestInclude.js +1 -0
  15. package/dist/cjs/api/resources/folders/types/FoldersShowRequestInclude.d.ts +1 -0
  16. package/dist/cjs/api/resources/folders/types/FoldersShowRequestInclude.js +1 -0
  17. package/dist/cjs/api/resources/metadata/client/Client.d.ts +4 -4
  18. package/dist/cjs/api/resources/metadata/client/Client.js +4 -4
  19. package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +4 -4
  20. package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +2 -1
  21. package/dist/cjs/api/resources/projectPermissions/client/Client.js +66 -76
  22. package/dist/cjs/api/resources/projects/client/Client.d.ts +2 -1
  23. package/dist/cjs/api/resources/projects/client/Client.js +66 -79
  24. package/dist/cjs/api/resources/shares/client/Client.d.ts +8 -6
  25. package/dist/cjs/api/resources/shares/client/Client.js +130 -153
  26. package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +1 -1
  27. package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +2 -2
  28. package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +1 -1
  29. package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +2 -2
  30. package/dist/cjs/api/resources/versionStacks/client/Client.js +5 -2
  31. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +1 -1
  32. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +2 -1
  33. package/dist/cjs/api/resources/webhooks/client/Client.js +66 -79
  34. package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +2 -1
  35. package/dist/cjs/api/resources/workspacePermissions/client/Client.js +66 -76
  36. package/dist/cjs/api/resources/workspaces/client/Client.d.ts +2 -1
  37. package/dist/cjs/api/resources/workspaces/client/Client.js +69 -79
  38. package/dist/cjs/api/types/AssetInclude.d.ts +1 -0
  39. package/dist/cjs/api/types/AssetInclude.js +1 -0
  40. package/dist/cjs/api/types/{AuditLogsResponse.d.ts → AuditLogsWithIncludesResponse.d.ts} +1 -1
  41. package/dist/cjs/api/types/{AssetsWithIncludesResponse.d.ts → FileAssetsWithIncludesResponse.d.ts} +1 -1
  42. package/dist/cjs/api/types/FolderAssetsWithIncludesResponse.d.ts +8 -0
  43. package/dist/cjs/api/types/{UserRolesResponse.d.ts → ProjectUserRolesResponse.d.ts} +1 -1
  44. package/dist/cjs/api/types/ProjectUserRolesResponse.js +3 -0
  45. package/dist/cjs/api/types/VersionStackAssetsWithIncludesResponse.d.ts +8 -0
  46. package/dist/cjs/api/types/VersionStackAssetsWithIncludesResponse.js +3 -0
  47. package/dist/cjs/api/types/WorkspaceUserRolesResponse.d.ts +11 -0
  48. package/dist/cjs/api/types/WorkspaceUserRolesResponse.js +3 -0
  49. package/dist/cjs/api/types/index.d.ts +6 -3
  50. package/dist/cjs/api/types/index.js +6 -3
  51. package/dist/cjs/core/index.d.ts +0 -2
  52. package/dist/cjs/core/index.js +0 -2
  53. package/dist/cjs/version.d.ts +1 -1
  54. package/dist/cjs/version.js +1 -1
  55. package/dist/esm/Client.mjs +2 -2
  56. package/dist/esm/api/resources/accountPermissions/client/Client.d.mts +2 -1
  57. package/dist/esm/api/resources/accountPermissions/client/Client.mjs +66 -79
  58. package/dist/esm/api/resources/accounts/client/Client.d.mts +3 -2
  59. package/dist/esm/api/resources/accounts/client/Client.mjs +67 -74
  60. package/dist/esm/api/resources/comments/client/Client.d.mts +2 -1
  61. package/dist/esm/api/resources/comments/client/Client.mjs +69 -82
  62. package/dist/esm/api/resources/files/client/Client.d.mts +1 -1
  63. package/dist/esm/api/resources/files/client/Client.mjs +4 -1
  64. package/dist/esm/api/resources/folders/client/Client.d.mts +1 -1
  65. package/dist/esm/api/resources/folders/client/Client.mjs +4 -1
  66. package/dist/esm/api/resources/folders/types/FoldersListRequestInclude.d.mts +1 -0
  67. package/dist/esm/api/resources/folders/types/FoldersListRequestInclude.mjs +1 -0
  68. package/dist/esm/api/resources/folders/types/FoldersShowRequestInclude.d.mts +1 -0
  69. package/dist/esm/api/resources/folders/types/FoldersShowRequestInclude.mjs +1 -0
  70. package/dist/esm/api/resources/metadata/client/Client.d.mts +4 -4
  71. package/dist/esm/api/resources/metadata/client/Client.mjs +4 -4
  72. package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +4 -4
  73. package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +2 -1
  74. package/dist/esm/api/resources/projectPermissions/client/Client.mjs +66 -76
  75. package/dist/esm/api/resources/projects/client/Client.d.mts +2 -1
  76. package/dist/esm/api/resources/projects/client/Client.mjs +66 -79
  77. package/dist/esm/api/resources/shares/client/Client.d.mts +8 -6
  78. package/dist/esm/api/resources/shares/client/Client.mjs +130 -153
  79. package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +1 -1
  80. package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +2 -2
  81. package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +1 -1
  82. package/dist/esm/api/resources/versionStacks/client/Client.d.mts +2 -2
  83. package/dist/esm/api/resources/versionStacks/client/Client.mjs +5 -2
  84. package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +1 -1
  85. package/dist/esm/api/resources/webhooks/client/Client.d.mts +2 -1
  86. package/dist/esm/api/resources/webhooks/client/Client.mjs +66 -79
  87. package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +2 -1
  88. package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +66 -76
  89. package/dist/esm/api/resources/workspaces/client/Client.d.mts +2 -1
  90. package/dist/esm/api/resources/workspaces/client/Client.mjs +69 -79
  91. package/dist/esm/api/types/AssetInclude.d.mts +1 -0
  92. package/dist/esm/api/types/AssetInclude.mjs +1 -0
  93. package/dist/esm/api/types/{AuditLogsResponse.d.mts → AuditLogsWithIncludesResponse.d.mts} +1 -1
  94. package/dist/esm/api/types/{AssetsWithIncludesResponse.d.mts → FileAssetsWithIncludesResponse.d.mts} +1 -1
  95. package/dist/esm/api/types/FolderAssetsWithIncludesResponse.d.mts +8 -0
  96. package/dist/esm/api/types/{UserRolesResponse.d.mts → ProjectUserRolesResponse.d.mts} +1 -1
  97. package/dist/esm/api/types/ProjectUserRolesResponse.mjs +2 -0
  98. package/dist/esm/api/types/VersionStackAssetsWithIncludesResponse.d.mts +8 -0
  99. package/dist/esm/api/types/VersionStackAssetsWithIncludesResponse.mjs +2 -0
  100. package/dist/esm/api/types/WorkspaceUserRolesResponse.d.mts +11 -0
  101. package/dist/esm/api/types/WorkspaceUserRolesResponse.mjs +2 -0
  102. package/dist/esm/api/types/index.d.mts +6 -3
  103. package/dist/esm/api/types/index.mjs +6 -3
  104. package/dist/esm/core/index.d.mts +0 -2
  105. package/dist/esm/core/index.mjs +0 -2
  106. package/dist/esm/version.d.mts +1 -1
  107. package/dist/esm/version.mjs +1 -1
  108. package/package.json +1 -1
  109. package/reference.md +42 -216
  110. package/dist/cjs/core/pagination/Page.d.ts +0 -32
  111. package/dist/cjs/core/pagination/Page.js +0 -100
  112. package/dist/cjs/core/pagination/Pageable.d.ts +0 -14
  113. package/dist/cjs/core/pagination/Pageable.js +0 -10
  114. package/dist/cjs/core/pagination/index.d.ts +0 -2
  115. package/dist/cjs/core/pagination/index.js +0 -7
  116. package/dist/cjs/core/utils/index.d.ts +0 -1
  117. package/dist/cjs/core/utils/index.js +0 -5
  118. package/dist/cjs/core/utils/setObjectProperty.d.ts +0 -11
  119. package/dist/cjs/core/utils/setObjectProperty.js +0 -42
  120. package/dist/esm/core/pagination/Page.d.mts +0 -32
  121. package/dist/esm/core/pagination/Page.mjs +0 -96
  122. package/dist/esm/core/pagination/Pageable.d.mts +0 -14
  123. package/dist/esm/core/pagination/Pageable.mjs +0 -6
  124. package/dist/esm/core/pagination/index.d.mts +0 -2
  125. package/dist/esm/core/pagination/index.mjs +0 -2
  126. package/dist/esm/core/utils/index.d.mts +0 -1
  127. package/dist/esm/core/utils/index.mjs +0 -1
  128. package/dist/esm/core/utils/setObjectProperty.d.mts +0 -11
  129. package/dist/esm/core/utils/setObjectProperty.mjs +0 -39
  130. /package/dist/cjs/api/types/{AssetsWithIncludesResponse.js → AuditLogsWithIncludesResponse.js} +0 -0
  131. /package/dist/cjs/api/types/{AuditLogsResponse.js → FileAssetsWithIncludesResponse.js} +0 -0
  132. /package/dist/cjs/api/types/{UserRolesResponse.js → FolderAssetsWithIncludesResponse.js} +0 -0
  133. /package/dist/esm/api/types/{AssetsWithIncludesResponse.mjs → AuditLogsWithIncludesResponse.mjs} +0 -0
  134. /package/dist/esm/api/types/{AuditLogsResponse.mjs → FileAssetsWithIncludesResponse.mjs} +0 -0
  135. /package/dist/esm/api/types/{UserRolesResponse.mjs → FolderAssetsWithIncludesResponse.mjs} +0 -0
package/reference.md CHANGED
@@ -340,7 +340,7 @@ await client.metadataFields.metadataFieldDefinitionsCreate("b2702c44-c6da-4bb6-8
340
340
 
341
341
  ## Project Permissions
342
342
 
343
- <details><summary><code>client.projectPermissions.<a href="/src/api/resources/projectPermissions/client/Client.ts">index</a>(accountId, projectId, { ...params }) -> core.Page&lt;Frameio.UserRole&gt;</code></summary>
343
+ <details><summary><code>client.projectPermissions.<a href="/src/api/resources/projectPermissions/client/Client.ts">index</a>(accountId, projectId, { ...params }) -> Frameio.ProjectUserRolesResponse</code></summary>
344
344
  <dl>
345
345
  <dd>
346
346
 
@@ -368,34 +368,12 @@ List user roles for a given project. <br>Rate Limits: 100 calls per 1.00 minute(
368
368
  <dd>
369
369
 
370
370
  ```typescript
371
- const response = await client.projectPermissions.index(
372
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
373
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
374
- {
375
- include_deactivated: true,
376
- after: "<opaque_cursor>",
377
- page_size: 10,
378
- include_total_count: false,
379
- },
380
- );
381
- for await (const item of response) {
382
- console.log(item);
383
- }
384
-
385
- // Or you can manually iterate page-by-page
386
- let page = await client.projectPermissions.index(
387
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
388
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
389
- {
390
- include_deactivated: true,
391
- after: "<opaque_cursor>",
392
- page_size: 10,
393
- include_total_count: false,
394
- },
395
- );
396
- while (page.hasNextPage()) {
397
- page = page.getNextPage();
398
- }
371
+ await client.projectPermissions.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
372
+ include_deactivated: true,
373
+ after: "<opaque_cursor>",
374
+ page_size: 10,
375
+ include_total_count: false,
376
+ });
399
377
  ```
400
378
 
401
379
  </dd>
@@ -863,7 +841,7 @@ await client.folders.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6
863
841
  </dl>
864
842
  </details>
865
843
 
866
- <details><summary><code>client.folders.<a href="/src/api/resources/folders/client/Client.ts">index</a>(accountId, folderId, { ...params }) -> Frameio.AssetsWithIncludesResponse</code></summary>
844
+ <details><summary><code>client.folders.<a href="/src/api/resources/folders/client/Client.ts">index</a>(accountId, folderId, { ...params }) -> Frameio.FolderAssetsWithIncludesResponse</code></summary>
867
845
  <dl>
868
846
  <dd>
869
847
 
@@ -1296,7 +1274,7 @@ await client.folders.move("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da
1296
1274
 
1297
1275
  ## Version Stacks
1298
1276
 
1299
- <details><summary><code>client.versionStacks.<a href="/src/api/resources/versionStacks/client/Client.ts">index</a>(accountId, versionStackId, { ...params }) -> Frameio.AssetsWithIncludesResponse</code></summary>
1277
+ <details><summary><code>client.versionStacks.<a href="/src/api/resources/versionStacks/client/Client.ts">index</a>(accountId, versionStackId, { ...params }) -> Frameio.VersionStackAssetsWithIncludesResponse</code></summary>
1300
1278
  <dl>
1301
1279
  <dd>
1302
1280
 
@@ -1671,7 +1649,7 @@ Create a new Version Stack under the parent folder. <br>Rate Limits: 10 calls pe
1671
1649
  ```typescript
1672
1650
  await client.versionStacks.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
1673
1651
  data: {
1674
- file_ids: ["8726ca45-0cc1-4c80-86ce-30dc35ffbdbe", "d14056db-0e13-44fe-9618-f6a2aef8becf"],
1652
+ file_ids: ["6ba6eaa7-1079-46ab-8448-0f9e9c7075e2", "2ea8d129-5381-48e0-852f-be35f90435a9"],
1675
1653
  },
1676
1654
  });
1677
1655
  ```
@@ -1809,7 +1787,7 @@ await client.versionStacks.move("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c4
1809
1787
 
1810
1788
  ## Account Permissions
1811
1789
 
1812
- <details><summary><code>client.accountPermissions.<a href="/src/api/resources/accountPermissions/client/Client.ts">index</a>(accountId, { ...params }) -> core.Page&lt;Frameio.AccountUserRole&gt;</code></summary>
1790
+ <details><summary><code>client.accountPermissions.<a href="/src/api/resources/accountPermissions/client/Client.ts">index</a>(accountId, { ...params }) -> Frameio.AccountUserRolesResponse</code></summary>
1813
1791
  <dl>
1814
1792
  <dd>
1815
1793
 
@@ -1837,26 +1815,12 @@ List user roles for a given account. <br>Rate Limits: 100 calls per 1.00 minute(
1837
1815
  <dd>
1838
1816
 
1839
1817
  ```typescript
1840
- const response = await client.accountPermissions.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
1841
- include_deactivated: true,
1842
- after: "<opaque_cursor>",
1843
- page_size: 10,
1844
- include_total_count: false,
1845
- });
1846
- for await (const item of response) {
1847
- console.log(item);
1848
- }
1849
-
1850
- // Or you can manually iterate page-by-page
1851
- let page = await client.accountPermissions.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
1818
+ await client.accountPermissions.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
1852
1819
  include_deactivated: true,
1853
1820
  after: "<opaque_cursor>",
1854
1821
  page_size: 10,
1855
1822
  include_total_count: false,
1856
1823
  });
1857
- while (page.hasNextPage()) {
1858
- page = page.getNextPage();
1859
- }
1860
1824
  ```
1861
1825
 
1862
1826
  </dd>
@@ -1901,7 +1865,7 @@ while (page.hasNextPage()) {
1901
1865
 
1902
1866
  ## Accounts
1903
1867
 
1904
- <details><summary><code>client.accounts.<a href="/src/api/resources/accounts/client/Client.ts">index</a>({ ...params }) -> core.Page&lt;Frameio.Account&gt;</code></summary>
1868
+ <details><summary><code>client.accounts.<a href="/src/api/resources/accounts/client/Client.ts">index</a>({ ...params }) -> Frameio.AccountsResponse</code></summary>
1905
1869
  <dl>
1906
1870
  <dd>
1907
1871
 
@@ -1929,24 +1893,11 @@ List accounts for the current user. <br>Rate Limits: 100 calls per 1.00 minute(s
1929
1893
  <dd>
1930
1894
 
1931
1895
  ```typescript
1932
- const response = await client.accounts.index({
1933
- after: "<opaque_cursor>",
1934
- page_size: 10,
1935
- include_total_count: false,
1936
- });
1937
- for await (const item of response) {
1938
- console.log(item);
1939
- }
1940
-
1941
- // Or you can manually iterate page-by-page
1942
- let page = await client.accounts.index({
1896
+ await client.accounts.index({
1943
1897
  after: "<opaque_cursor>",
1944
1898
  page_size: 10,
1945
1899
  include_total_count: false,
1946
1900
  });
1947
- while (page.hasNextPage()) {
1948
- page = page.getNextPage();
1949
- }
1950
1901
  ```
1951
1902
 
1952
1903
  </dd>
@@ -1981,7 +1932,7 @@ while (page.hasNextPage()) {
1981
1932
  </dl>
1982
1933
  </details>
1983
1934
 
1984
- <details><summary><code>client.accounts.<a href="/src/api/resources/accounts/client/Client.ts">auditlogIndex</a>(accountId, { ...params }) -> Frameio.AuditLogsResponse</code></summary>
1935
+ <details><summary><code>client.accounts.<a href="/src/api/resources/accounts/client/Client.ts">auditlogIndex</a>(accountId, { ...params }) -> Frameio.AuditLogsWithIncludesResponse</code></summary>
1985
1936
  <dl>
1986
1937
  <dd>
1987
1938
 
@@ -2300,7 +2251,7 @@ await client.comments.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c
2300
2251
  </dl>
2301
2252
  </details>
2302
2253
 
2303
- <details><summary><code>client.comments.<a href="/src/api/resources/comments/client/Client.ts">index</a>(accountId, fileId, { ...params }) -> core.Page&lt;Frameio.CommentWithIncludes&gt;</code></summary>
2254
+ <details><summary><code>client.comments.<a href="/src/api/resources/comments/client/Client.ts">index</a>(accountId, fileId, { ...params }) -> Frameio.CommentsWithIncludesResponse</code></summary>
2304
2255
  <dl>
2305
2256
  <dd>
2306
2257
 
@@ -2328,32 +2279,13 @@ List comments on a given asset. <br>Rate Limits: 100 calls per 1.00 minute(s) pe
2328
2279
  <dd>
2329
2280
 
2330
2281
  ```typescript
2331
- const response = await client.comments.index(
2332
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
2333
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
2334
- {
2335
- timestamp_as_timecode: true,
2336
- include: "owner",
2337
- after: "<opaque_cursor>",
2338
- page_size: 10,
2339
- include_total_count: false,
2340
- },
2341
- );
2342
- for await (const item of response) {
2343
- console.log(item);
2344
- }
2345
-
2346
- // Or you can manually iterate page-by-page
2347
- let page = await client.comments.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
2282
+ await client.comments.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
2348
2283
  timestamp_as_timecode: true,
2349
2284
  include: "owner",
2350
2285
  after: "<opaque_cursor>",
2351
2286
  page_size: 10,
2352
2287
  include_total_count: false,
2353
2288
  });
2354
- while (page.hasNextPage()) {
2355
- page = page.getNextPage();
2356
- }
2357
2289
  ```
2358
2290
 
2359
2291
  </dd>
@@ -2495,7 +2427,7 @@ await client.comments.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c
2495
2427
 
2496
2428
  ## Webhooks
2497
2429
 
2498
- <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">index</a>(accountId, workspaceId, { ...params }) -> core.Page&lt;Frameio.WebhookWithIncludes&gt;</code></summary>
2430
+ <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">index</a>(accountId, workspaceId, { ...params }) -> Frameio.WebhooksWithIncludesResponse</code></summary>
2499
2431
  <dl>
2500
2432
  <dd>
2501
2433
 
@@ -2523,30 +2455,12 @@ List webhooks for the given workspace. <br>Rate Limits: 100 calls per 1.00 minut
2523
2455
  <dd>
2524
2456
 
2525
2457
  ```typescript
2526
- const response = await client.webhooks.index(
2527
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
2528
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
2529
- {
2530
- include: "creator",
2531
- after: "<opaque_cursor>",
2532
- page_size: 10,
2533
- include_total_count: false,
2534
- },
2535
- );
2536
- for await (const item of response) {
2537
- console.log(item);
2538
- }
2539
-
2540
- // Or you can manually iterate page-by-page
2541
- let page = await client.webhooks.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
2458
+ await client.webhooks.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
2542
2459
  include: "creator",
2543
2460
  after: "<opaque_cursor>",
2544
2461
  page_size: 10,
2545
2462
  include_total_count: false,
2546
2463
  });
2547
- while (page.hasNextPage()) {
2548
- page = page.getNextPage();
2549
- }
2550
2464
  ```
2551
2465
 
2552
2466
  </dd>
@@ -2987,7 +2901,7 @@ await client.webhooks.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c
2987
2901
 
2988
2902
  ## Workspace Permissions
2989
2903
 
2990
- <details><summary><code>client.workspacePermissions.<a href="/src/api/resources/workspacePermissions/client/Client.ts">index</a>(accountId, workspaceId, { ...params }) -> core.Page&lt;Frameio.UserRole&gt;</code></summary>
2904
+ <details><summary><code>client.workspacePermissions.<a href="/src/api/resources/workspacePermissions/client/Client.ts">index</a>(accountId, workspaceId, { ...params }) -> Frameio.WorkspaceUserRolesResponse</code></summary>
2991
2905
  <dl>
2992
2906
  <dd>
2993
2907
 
@@ -3015,22 +2929,7 @@ List user roles for a given workspace. <br>Rate Limits: 100 calls per 1.00 minut
3015
2929
  <dd>
3016
2930
 
3017
2931
  ```typescript
3018
- const response = await client.workspacePermissions.index(
3019
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
3020
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
3021
- {
3022
- include_deactivated: true,
3023
- after: "<opaque_cursor>",
3024
- page_size: 10,
3025
- include_total_count: false,
3026
- },
3027
- );
3028
- for await (const item of response) {
3029
- console.log(item);
3030
- }
3031
-
3032
- // Or you can manually iterate page-by-page
3033
- let page = await client.workspacePermissions.index(
2932
+ await client.workspacePermissions.index(
3034
2933
  "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
3035
2934
  "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
3036
2935
  {
@@ -3040,9 +2939,6 @@ let page = await client.workspacePermissions.index(
3040
2939
  include_total_count: false,
3041
2940
  },
3042
2941
  );
3043
- while (page.hasNextPage()) {
3044
- page = page.getNextPage();
3045
- }
3046
2942
  ```
3047
2943
 
3048
2944
  </dd>
@@ -3450,7 +3346,7 @@ await client.shares.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6d
3450
3346
  access: "public",
3451
3347
  description: "A descriptive summary of the share",
3452
3348
  downloading_enabled: true,
3453
- expiration: "2026-01-26T20:35:55Z",
3349
+ expiration: "2026-01-29T19:41:37Z",
3454
3350
  name: "Share Name",
3455
3351
  passphrase: "as!dfj39sd(*",
3456
3352
  },
@@ -3505,7 +3401,7 @@ await client.shares.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6d
3505
3401
  </dl>
3506
3402
  </details>
3507
3403
 
3508
- <details><summary><code>client.shares.<a href="/src/api/resources/shares/client/Client.ts">listReviewers</a>(accountId, shareId, { ...params }) -> core.Page&lt;Frameio.User&gt;</code></summary>
3404
+ <details><summary><code>client.shares.<a href="/src/api/resources/shares/client/Client.ts">listReviewers</a>(accountId, shareId, { ...params }) -> Frameio.ShareReviewersResponse</code></summary>
3509
3405
  <dl>
3510
3406
  <dd>
3511
3407
 
@@ -3533,32 +3429,11 @@ List share reviewers. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_u
3533
3429
  <dd>
3534
3430
 
3535
3431
  ```typescript
3536
- const response = await client.shares.listReviewers(
3537
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
3538
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
3539
- {
3540
- after: "<opaque_cursor>",
3541
- page_size: 10,
3542
- include_total_count: false,
3543
- },
3544
- );
3545
- for await (const item of response) {
3546
- console.log(item);
3547
- }
3548
-
3549
- // Or you can manually iterate page-by-page
3550
- let page = await client.shares.listReviewers(
3551
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
3552
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
3553
- {
3554
- after: "<opaque_cursor>",
3555
- page_size: 10,
3556
- include_total_count: false,
3557
- },
3558
- );
3559
- while (page.hasNextPage()) {
3560
- page = page.getNextPage();
3561
- }
3432
+ await client.shares.listReviewers("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
3433
+ after: "<opaque_cursor>",
3434
+ page_size: 10,
3435
+ include_total_count: false,
3436
+ });
3562
3437
  ```
3563
3438
 
3564
3439
  </dd>
@@ -3901,7 +3776,7 @@ Add new asset share. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_us
3901
3776
  ```typescript
3902
3777
  await client.shares.addAsset("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
3903
3778
  data: {
3904
- asset_id: "2b272853-e4b3-46ee-8bd0-e345444ddf46",
3779
+ asset_id: "26a44993-9abd-49bb-8e39-2f44b4a72f62",
3905
3780
  },
3906
3781
  });
3907
3782
  ```
@@ -3954,7 +3829,7 @@ await client.shares.addAsset("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c
3954
3829
  </dl>
3955
3830
  </details>
3956
3831
 
3957
- <details><summary><code>client.shares.<a href="/src/api/resources/shares/client/Client.ts">index</a>(accountId, projectId, { ...params }) -> core.Page&lt;Frameio.Share&gt;</code></summary>
3832
+ <details><summary><code>client.shares.<a href="/src/api/resources/shares/client/Client.ts">index</a>(accountId, projectId, { ...params }) -> Frameio.SharesResponse</code></summary>
3958
3833
  <dl>
3959
3834
  <dd>
3960
3835
 
@@ -3982,28 +3857,11 @@ List shares on a project. <br>Rate Limits: 100 calls per 1.00 minute(s) per acco
3982
3857
  <dd>
3983
3858
 
3984
3859
  ```typescript
3985
- const response = await client.shares.index(
3986
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
3987
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
3988
- {
3989
- after: "<opaque_cursor>",
3990
- page_size: 10,
3991
- include_total_count: false,
3992
- },
3993
- );
3994
- for await (const item of response) {
3995
- console.log(item);
3996
- }
3997
-
3998
- // Or you can manually iterate page-by-page
3999
- let page = await client.shares.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
3860
+ await client.shares.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
4000
3861
  after: "<opaque_cursor>",
4001
3862
  page_size: 10,
4002
3863
  include_total_count: false,
4003
3864
  });
4004
- while (page.hasNextPage()) {
4005
- page = page.getNextPage();
4006
- }
4007
3865
  ```
4008
3866
 
4009
3867
  </dd>
@@ -4086,9 +3944,9 @@ await client.shares.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6d
4086
3944
  data: {
4087
3945
  type: "asset",
4088
3946
  access: "public",
4089
- asset_ids: ["8d7fbbc2-543b-43a4-b85b-c8789fe95ff5", "59398733-93c6-403b-b84d-4225e3468b05"],
3947
+ asset_ids: ["b68f4112-23fe-475e-9927-c0405331266b", "888a368c-06b2-47f8-b3b1-09ce71d37e6b"],
4090
3948
  downloading_enabled: true,
4091
- expiration: "2026-01-26T20:35:55Z",
3949
+ expiration: "2026-01-29T19:41:37Z",
4092
3950
  name: "Share Name",
4093
3951
  passphrase: "as!dfj39sd(*",
4094
3952
  },
@@ -4175,17 +4033,17 @@ Update metadata values across multiple files. <br>Rate Limits: 10 calls per 1.00
4175
4033
  ```typescript
4176
4034
  await client.metadata.bulkUpdate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
4177
4035
  data: {
4178
- file_ids: ["ffa8b46c-edd6-4c6f-9525-55361d4b21a5", "e1330ea0-c8ac-43ce-bd68-1a4505481985"],
4036
+ file_ids: ["6aa84ef8-7f0a-431e-805e-a5e96345a176", "54916a83-698a-43f8-9f14-19fd99094474"],
4179
4037
  values: [
4180
4038
  {
4181
- field_definition_id: "340b2dcf-3986-4e1c-8727-4722b746b9ed",
4039
+ field_definition_id: "79e05ece-741a-4a20-b320-3a09c15673bb",
4182
4040
  value: [
4183
4041
  {
4184
- id: "58704c22-8e3d-4ca4-953c-a6d632c2c29a",
4042
+ id: "95681686-3627-4b8c-9a7c-982e41dc8af6",
4185
4043
  type: "user",
4186
4044
  },
4187
4045
  {
4188
- id: "c833a8fa-55d8-483d-84c3-86ed065a3e55",
4046
+ id: "8759b175-9d71-41af-8b52-0dc79db384ec",
4189
4047
  type: "account_user_group",
4190
4048
  },
4191
4049
  ],
@@ -4326,7 +4184,7 @@ await client.metadata.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6d
4326
4184
 
4327
4185
  ## Files
4328
4186
 
4329
- <details><summary><code>client.files.<a href="/src/api/resources/files/client/Client.ts">list</a>(accountId, folderId, { ...params }) -> Frameio.AssetsWithIncludesResponse</code></summary>
4187
+ <details><summary><code>client.files.<a href="/src/api/resources/files/client/Client.ts">list</a>(accountId, folderId, { ...params }) -> Frameio.FileAssetsWithIncludesResponse</code></summary>
4330
4188
  <dl>
4331
4189
  <dd>
4332
4190
 
@@ -5446,7 +5304,7 @@ await client.projects.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c
5446
5304
  </dl>
5447
5305
  </details>
5448
5306
 
5449
- <details><summary><code>client.projects.<a href="/src/api/resources/projects/client/Client.ts">index</a>(accountId, workspaceId, { ...params }) -> core.Page&lt;Frameio.ProjectWithIncludes&gt;</code></summary>
5307
+ <details><summary><code>client.projects.<a href="/src/api/resources/projects/client/Client.ts">index</a>(accountId, workspaceId, { ...params }) -> Frameio.ProjectsWithIncludesResponse</code></summary>
5450
5308
  <dl>
5451
5309
  <dd>
5452
5310
 
@@ -5474,30 +5332,12 @@ List projects in a given workspace. <br>Rate Limits: 100 calls per 1.00 minute(s
5474
5332
  <dd>
5475
5333
 
5476
5334
  ```typescript
5477
- const response = await client.projects.index(
5478
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
5479
- "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
5480
- {
5481
- include: "owner",
5482
- after: "<opaque_cursor>",
5483
- page_size: 10,
5484
- include_total_count: false,
5485
- },
5486
- );
5487
- for await (const item of response) {
5488
- console.log(item);
5489
- }
5490
-
5491
- // Or you can manually iterate page-by-page
5492
- let page = await client.projects.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
5335
+ await client.projects.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
5493
5336
  include: "owner",
5494
5337
  after: "<opaque_cursor>",
5495
5338
  page_size: 10,
5496
5339
  include_total_count: false,
5497
5340
  });
5498
- while (page.hasNextPage()) {
5499
- page = page.getNextPage();
5500
- }
5501
5341
  ```
5502
5342
 
5503
5343
  </dd>
@@ -5869,7 +5709,7 @@ await client.workspaces.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44
5869
5709
  </dl>
5870
5710
  </details>
5871
5711
 
5872
- <details><summary><code>client.workspaces.<a href="/src/api/resources/workspaces/client/Client.ts">index</a>(accountId, { ...params }) -> core.Page&lt;Frameio.WorkspaceWithIncludes&gt;</code></summary>
5712
+ <details><summary><code>client.workspaces.<a href="/src/api/resources/workspaces/client/Client.ts">index</a>(accountId, { ...params }) -> Frameio.WorkspacesWithIncludesResponse</code></summary>
5873
5713
  <dl>
5874
5714
  <dd>
5875
5715
 
@@ -5897,26 +5737,12 @@ List workspaces for a given account. <br>Rate Limits: 100 calls per 1.00 minute(
5897
5737
  <dd>
5898
5738
 
5899
5739
  ```typescript
5900
- const response = await client.workspaces.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
5901
- include: "creator",
5902
- after: "<opaque_cursor>",
5903
- page_size: 10,
5904
- include_total_count: false,
5905
- });
5906
- for await (const item of response) {
5907
- console.log(item);
5908
- }
5909
-
5910
- // Or you can manually iterate page-by-page
5911
- let page = await client.workspaces.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
5740
+ await client.workspaces.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
5912
5741
  include: "creator",
5913
5742
  after: "<opaque_cursor>",
5914
5743
  page_size: 10,
5915
5744
  include_total_count: false,
5916
5745
  });
5917
- while (page.hasNextPage()) {
5918
- page = page.getNextPage();
5919
- }
5920
5746
  ```
5921
5747
 
5922
5748
  </dd>
@@ -1,32 +0,0 @@
1
- import { HttpResponsePromise, RawResponse } from "../fetcher/index.js";
2
- /**
3
- * A page of results from a paginated API.
4
- *
5
- * @template T The type of the items in the page.
6
- */
7
- export declare class Page<T> implements AsyncIterable<T> {
8
- data: T[];
9
- rawResponse: RawResponse;
10
- private response;
11
- private _hasNextPage;
12
- private getItems;
13
- private loadNextPage;
14
- constructor({ response, rawResponse, hasNextPage, getItems, loadPage, }: {
15
- response: unknown;
16
- rawResponse: RawResponse;
17
- hasNextPage: (response: unknown) => boolean;
18
- getItems: (response: unknown) => T[];
19
- loadPage: (response: unknown) => HttpResponsePromise<any>;
20
- });
21
- /**
22
- * Retrieves the next page
23
- * @returns this
24
- */
25
- getNextPage(): Promise<this>;
26
- /**
27
- * @returns whether there is a next page to load
28
- */
29
- hasNextPage(): boolean;
30
- private iterMessages;
31
- [Symbol.asyncIterator](): AsyncIterator<T, void, any>;
32
- }
@@ -1,100 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
12
- var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
13
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
14
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
15
- return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
16
- function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
17
- function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
18
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
19
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
20
- function fulfill(value) { resume("next", value); }
21
- function reject(value) { resume("throw", value); }
22
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
23
- };
24
- var __asyncValues = (this && this.__asyncValues) || function (o) {
25
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
26
- var m = o[Symbol.asyncIterator], i;
27
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
28
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
29
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.Page = void 0;
33
- /**
34
- * A page of results from a paginated API.
35
- *
36
- * @template T The type of the items in the page.
37
- */
38
- class Page {
39
- constructor({ response, rawResponse, hasNextPage, getItems, loadPage, }) {
40
- this.response = response;
41
- this.rawResponse = rawResponse;
42
- this.data = getItems(response);
43
- this._hasNextPage = hasNextPage;
44
- this.getItems = getItems;
45
- this.loadNextPage = loadPage;
46
- }
47
- /**
48
- * Retrieves the next page
49
- * @returns this
50
- */
51
- getNextPage() {
52
- return __awaiter(this, void 0, void 0, function* () {
53
- const { data, rawResponse } = yield this.loadNextPage(this.response).withRawResponse();
54
- this.response = data;
55
- this.rawResponse = rawResponse;
56
- this.data = this.getItems(this.response);
57
- return this;
58
- });
59
- }
60
- /**
61
- * @returns whether there is a next page to load
62
- */
63
- hasNextPage() {
64
- return this._hasNextPage(this.response);
65
- }
66
- iterMessages() {
67
- return __asyncGenerator(this, arguments, function* iterMessages_1() {
68
- for (const item of this.data) {
69
- yield yield __await(item);
70
- }
71
- while (this.hasNextPage()) {
72
- yield __await(this.getNextPage());
73
- for (const item of this.data) {
74
- yield yield __await(item);
75
- }
76
- }
77
- });
78
- }
79
- [Symbol.asyncIterator]() {
80
- return __asyncGenerator(this, arguments, function* _a() {
81
- var _b, e_1, _c, _d;
82
- try {
83
- for (var _e = true, _f = __asyncValues(this.iterMessages()), _g; _g = yield __await(_f.next()), _b = _g.done, !_b; _e = true) {
84
- _d = _g.value;
85
- _e = false;
86
- const message = _d;
87
- yield yield __await(message);
88
- }
89
- }
90
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
91
- finally {
92
- try {
93
- if (!_e && !_b && (_c = _f.return)) yield __await(_c.call(_f));
94
- }
95
- finally { if (e_1) throw e_1.error; }
96
- }
97
- });
98
- }
99
- }
100
- exports.Page = Page;
@@ -1,14 +0,0 @@
1
- import { RawResponse } from "../fetcher/index.js";
2
- import { Page } from "./Page.js";
3
- export declare namespace Pageable {
4
- interface Args<Response, Item> {
5
- response: Response;
6
- rawResponse: RawResponse;
7
- hasNextPage: (response: Response) => boolean;
8
- getItems: (response: Response) => Item[];
9
- loadPage: (response: Response) => Promise<Response>;
10
- }
11
- }
12
- export declare class Pageable<R, T> extends Page<T> {
13
- constructor(args: Pageable.Args<R, T>);
14
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Pageable = void 0;
4
- const Page_js_1 = require("./Page.js");
5
- class Pageable extends Page_js_1.Page {
6
- constructor(args) {
7
- super(args);
8
- }
9
- }
10
- exports.Pageable = Pageable;
@@ -1,2 +0,0 @@
1
- export { Page } from "./Page.js";
2
- export { Pageable } from "./Pageable.js";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Pageable = exports.Page = void 0;
4
- var Page_js_1 = require("./Page.js");
5
- Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_js_1.Page; } });
6
- var Pageable_js_1 = require("./Pageable.js");
7
- Object.defineProperty(exports, "Pageable", { enumerable: true, get: function () { return Pageable_js_1.Pageable; } });