@scenario-labs/sdk 0.1.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/LICENSE +1 -1
  3. package/README.md +29 -27
  4. package/client.d.mts +33 -16
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +33 -16
  7. package/client.d.ts.map +1 -1
  8. package/client.js +88 -50
  9. package/client.js.map +1 -1
  10. package/client.mjs +86 -48
  11. package/client.mjs.map +1 -1
  12. package/core/api-promise.d.mts +2 -2
  13. package/core/api-promise.d.mts.map +1 -1
  14. package/core/api-promise.d.ts +2 -2
  15. package/core/api-promise.d.ts.map +1 -1
  16. package/core/api-promise.js.map +1 -1
  17. package/core/api-promise.mjs.map +1 -1
  18. package/core/error.d.mts +2 -2
  19. package/core/error.d.mts.map +1 -1
  20. package/core/error.d.ts +2 -2
  21. package/core/error.d.ts.map +1 -1
  22. package/core/error.js +4 -4
  23. package/core/error.js.map +1 -1
  24. package/core/error.mjs +2 -2
  25. package/core/error.mjs.map +1 -1
  26. package/core/resource.d.mts +3 -3
  27. package/core/resource.d.mts.map +1 -1
  28. package/core/resource.d.ts +3 -3
  29. package/core/resource.d.ts.map +1 -1
  30. package/core/resource.js.map +1 -1
  31. package/core/resource.mjs.map +1 -1
  32. package/index.d.mts +9 -3
  33. package/index.d.mts.map +1 -1
  34. package/index.d.ts +9 -3
  35. package/index.d.ts.map +1 -1
  36. package/index.js +18 -6
  37. package/index.js.map +1 -1
  38. package/index.mjs +8 -3
  39. package/index.mjs.map +1 -1
  40. package/internal/parse.d.mts +2 -2
  41. package/internal/parse.d.mts.map +1 -1
  42. package/internal/parse.d.ts +2 -2
  43. package/internal/parse.d.ts.map +1 -1
  44. package/internal/parse.js.map +1 -1
  45. package/internal/parse.mjs.map +1 -1
  46. package/internal/request-options.d.mts +4 -0
  47. package/internal/request-options.d.mts.map +1 -1
  48. package/internal/request-options.d.ts +4 -0
  49. package/internal/request-options.d.ts.map +1 -1
  50. package/internal/request-options.js.map +1 -1
  51. package/internal/request-options.mjs.map +1 -1
  52. package/internal/shims.js +1 -1
  53. package/internal/shims.js.map +1 -1
  54. package/internal/shims.mjs +1 -1
  55. package/internal/shims.mjs.map +1 -1
  56. package/internal/uploads.d.mts +4 -4
  57. package/internal/uploads.d.mts.map +1 -1
  58. package/internal/uploads.d.ts +4 -4
  59. package/internal/uploads.d.ts.map +1 -1
  60. package/internal/uploads.js.map +1 -1
  61. package/internal/uploads.mjs.map +1 -1
  62. package/internal/utils/base64.js +2 -2
  63. package/internal/utils/base64.js.map +1 -1
  64. package/internal/utils/base64.mjs +3 -3
  65. package/internal/utils/base64.mjs.map +1 -1
  66. package/internal/utils/log.d.mts +3 -3
  67. package/internal/utils/log.d.mts.map +1 -1
  68. package/internal/utils/log.d.ts +3 -3
  69. package/internal/utils/log.d.ts.map +1 -1
  70. package/internal/utils/log.js.map +1 -1
  71. package/internal/utils/log.mjs.map +1 -1
  72. package/internal/utils/path.js +1 -1
  73. package/internal/utils/path.js.map +1 -1
  74. package/internal/utils/path.mjs +2 -2
  75. package/internal/utils/path.mjs.map +1 -1
  76. package/internal/utils/values.js +5 -5
  77. package/internal/utils/values.js.map +1 -1
  78. package/internal/utils/values.mjs +6 -6
  79. package/internal/utils/values.mjs.map +1 -1
  80. package/lib/generate.d.mts +19 -0
  81. package/lib/generate.d.mts.map +1 -0
  82. package/lib/generate.d.ts +19 -0
  83. package/lib/generate.d.ts.map +1 -0
  84. package/lib/generate.js +35 -0
  85. package/lib/generate.js.map +1 -0
  86. package/lib/generate.mjs +31 -0
  87. package/lib/generate.mjs.map +1 -0
  88. package/lib/job.d.mts +48 -0
  89. package/lib/job.d.mts.map +1 -0
  90. package/lib/job.d.ts +48 -0
  91. package/lib/job.d.ts.map +1 -0
  92. package/lib/job.js +50 -0
  93. package/lib/job.js.map +1 -0
  94. package/lib/job.mjs +45 -0
  95. package/lib/job.mjs.map +1 -0
  96. package/lib/models.d.mts +20 -0
  97. package/lib/models.d.mts.map +1 -0
  98. package/lib/models.d.ts +20 -0
  99. package/lib/models.d.ts.map +1 -0
  100. package/lib/models.js +28 -0
  101. package/lib/models.js.map +1 -0
  102. package/lib/models.mjs +23 -0
  103. package/lib/models.mjs.map +1 -0
  104. package/lib/scenario.d.mts +39 -0
  105. package/lib/scenario.d.mts.map +1 -0
  106. package/lib/scenario.d.ts +39 -0
  107. package/lib/scenario.d.ts.map +1 -0
  108. package/lib/scenario.js +46 -0
  109. package/lib/scenario.js.map +1 -0
  110. package/lib/scenario.mjs +42 -0
  111. package/lib/scenario.mjs.map +1 -0
  112. package/lib/workflow.d.mts +53 -0
  113. package/lib/workflow.d.mts.map +1 -0
  114. package/lib/workflow.d.ts +53 -0
  115. package/lib/workflow.d.ts.map +1 -0
  116. package/lib/workflow.js +67 -0
  117. package/lib/workflow.js.map +1 -0
  118. package/lib/workflow.mjs +62 -0
  119. package/lib/workflow.mjs.map +1 -0
  120. package/lib/workflow_validator.d.mts +22 -0
  121. package/lib/workflow_validator.d.mts.map +1 -0
  122. package/lib/workflow_validator.d.ts +22 -0
  123. package/lib/workflow_validator.d.ts.map +1 -0
  124. package/lib/workflow_validator.js +124 -0
  125. package/lib/workflow_validator.js.map +1 -0
  126. package/lib/workflow_validator.mjs +121 -0
  127. package/lib/workflow_validator.mjs.map +1 -0
  128. package/package.json +13 -3
  129. package/resources/assets/assets.d.mts +399 -88
  130. package/resources/assets/assets.d.mts.map +1 -1
  131. package/resources/assets/assets.d.ts +399 -88
  132. package/resources/assets/assets.d.ts.map +1 -1
  133. package/resources/assets/assets.js.map +1 -1
  134. package/resources/assets/assets.mjs.map +1 -1
  135. package/resources/assets/public.d.mts +30 -27
  136. package/resources/assets/public.d.mts.map +1 -1
  137. package/resources/assets/public.d.ts +30 -27
  138. package/resources/assets/public.d.ts.map +1 -1
  139. package/resources/assets/public.js +2 -2
  140. package/resources/assets/public.js.map +1 -1
  141. package/resources/assets/public.mjs +2 -2
  142. package/resources/assets/public.mjs.map +1 -1
  143. package/resources/collections/collections.d.mts +1 -1
  144. package/resources/collections/collections.d.ts +1 -1
  145. package/resources/generate.d.mts +4188 -1370
  146. package/resources/generate.d.mts.map +1 -1
  147. package/resources/generate.d.ts +4188 -1370
  148. package/resources/generate.d.ts.map +1 -1
  149. package/resources/index.d.mts +1 -1
  150. package/resources/index.d.mts.map +1 -1
  151. package/resources/index.d.ts +1 -1
  152. package/resources/index.d.ts.map +1 -1
  153. package/resources/jobs.d.mts +943 -33
  154. package/resources/jobs.d.mts.map +1 -1
  155. package/resources/jobs.d.ts +943 -33
  156. package/resources/jobs.d.ts.map +1 -1
  157. package/resources/jobs.js +3 -2
  158. package/resources/jobs.js.map +1 -1
  159. package/resources/jobs.mjs +3 -2
  160. package/resources/jobs.mjs.map +1 -1
  161. package/resources/models/description.d.mts +8 -8
  162. package/resources/models/description.d.mts.map +1 -1
  163. package/resources/models/description.d.ts +8 -8
  164. package/resources/models/description.d.ts.map +1 -1
  165. package/resources/models/examples.d.mts +640 -34
  166. package/resources/models/examples.d.mts.map +1 -1
  167. package/resources/models/examples.d.ts +640 -34
  168. package/resources/models/examples.d.ts.map +1 -1
  169. package/resources/models/models.d.mts +1323 -301
  170. package/resources/models/models.d.mts.map +1 -1
  171. package/resources/models/models.d.ts +1323 -301
  172. package/resources/models/models.d.ts.map +1 -1
  173. package/resources/models/models.js.map +1 -1
  174. package/resources/models/models.mjs.map +1 -1
  175. package/resources/models/train.d.mts +718 -90
  176. package/resources/models/train.d.mts.map +1 -1
  177. package/resources/models/train.d.ts +718 -90
  178. package/resources/models/train.d.ts.map +1 -1
  179. package/resources/models/train.js +9 -4
  180. package/resources/models/train.js.map +1 -1
  181. package/resources/models/train.mjs +9 -4
  182. package/resources/models/train.mjs.map +1 -1
  183. package/resources/models/training-images.d.mts +2 -2
  184. package/resources/models/training-images.d.mts.map +1 -1
  185. package/resources/models/training-images.d.ts +2 -2
  186. package/resources/models/training-images.d.ts.map +1 -1
  187. package/resources/search.d.mts +6 -31
  188. package/resources/search.d.mts.map +1 -1
  189. package/resources/search.d.ts +6 -31
  190. package/resources/search.d.ts.map +1 -1
  191. package/resources/search.js +6 -2
  192. package/resources/search.js.map +1 -1
  193. package/resources/search.mjs +6 -2
  194. package/resources/search.mjs.map +1 -1
  195. package/resources/tags.d.mts +1 -1
  196. package/resources/tags.d.ts +1 -1
  197. package/resources/usages.d.mts +401 -16
  198. package/resources/usages.d.mts.map +1 -1
  199. package/resources/usages.d.ts +401 -16
  200. package/resources/usages.d.ts.map +1 -1
  201. package/resources/workflows.d.mts +2738 -101
  202. package/resources/workflows.d.mts.map +1 -1
  203. package/resources/workflows.d.ts +2738 -101
  204. package/resources/workflows.d.ts.map +1 -1
  205. package/src/client.ts +102 -42
  206. package/src/core/api-promise.ts +4 -4
  207. package/src/core/error.ts +2 -2
  208. package/src/core/resource.ts +3 -3
  209. package/src/index.ts +9 -3
  210. package/src/internal/parse.ts +2 -2
  211. package/src/internal/request-options.ts +2 -0
  212. package/src/internal/shims.ts +1 -1
  213. package/src/internal/uploads.ts +5 -5
  214. package/src/internal/utils/base64.ts +3 -3
  215. package/src/internal/utils/log.ts +3 -3
  216. package/src/internal/utils/path.ts +2 -2
  217. package/src/internal/utils/values.ts +6 -6
  218. package/src/lib/generate.ts +77 -0
  219. package/src/lib/job.ts +78 -0
  220. package/src/lib/models.ts +27 -0
  221. package/src/lib/scenario.ts +39 -0
  222. package/src/lib/workflow.ts +99 -0
  223. package/src/lib/workflow_validator.ts +167 -0
  224. package/src/resources/assets/assets.ts +788 -177
  225. package/src/resources/assets/public.ts +151 -29
  226. package/src/resources/collections/collections.ts +1 -1
  227. package/src/resources/generate.ts +6254 -2217
  228. package/src/resources/index.ts +2 -2
  229. package/src/resources/jobs.ts +1355 -26
  230. package/src/resources/models/description.ts +50 -8
  231. package/src/resources/models/examples.ts +906 -56
  232. package/src/resources/models/models.ts +1867 -330
  233. package/src/resources/models/train.ts +976 -98
  234. package/src/resources/models/training-images.ts +2 -2
  235. package/src/resources/search.ts +13 -39
  236. package/src/resources/tags.ts +1 -1
  237. package/src/resources/usages.ts +544 -11
  238. package/src/resources/workflows.ts +4586 -914
  239. package/src/version.ts +1 -1
  240. package/version.d.mts +1 -1
  241. package/version.d.ts +1 -1
  242. package/version.js +1 -1
  243. package/version.mjs +1 -1
@@ -282,8 +282,10 @@ export namespace AssetRetrieveResponse {
282
282
  | 'upscale-texture'
283
283
  | 'upscale-video'
284
284
  | 'vectorization'
285
+ | 'video23d'
285
286
  | 'video2img'
286
- | 'video2video';
287
+ | 'video2video'
288
+ | 'voice-clone';
287
289
 
288
290
  /**
289
291
  * The actual status
@@ -463,8 +465,10 @@ export namespace AssetRetrieveResponse {
463
465
  | 'upscale-texture'
464
466
  | 'upscale-video'
465
467
  | 'vectorization'
468
+ | 'video23d'
466
469
  | 'video2img'
467
- | 'video2video';
470
+ | 'video2video'
471
+ | 'voice-clone';
468
472
 
469
473
  /**
470
474
  * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
@@ -491,7 +495,7 @@ export namespace AssetRetrieveResponse {
491
495
  /**
492
496
  * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
493
497
  */
494
- bbox?: Array<unknown>;
498
+ bbox?: Array<number>;
495
499
 
496
500
  /**
497
501
  * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
@@ -733,6 +737,7 @@ export namespace AssetRetrieveResponse {
733
737
  */
734
738
  modelType?:
735
739
  | 'custom'
740
+ | 'elevenlabs-voice'
736
741
  | 'flux.1'
737
742
  | 'flux.1-composition'
738
743
  | 'flux.1-kontext-dev'
@@ -742,14 +747,32 @@ export namespace AssetRetrieveResponse {
742
747
  | 'flux.1-lora'
743
748
  | 'flux.1-pro'
744
749
  | 'flux.1.1-pro-ultra'
750
+ | 'flux.2-dev-edit-lora'
751
+ | 'flux.2-dev-lora'
752
+ | 'flux.2-klein-4b-edit-lora'
753
+ | 'flux.2-klein-4b-lora'
754
+ | 'flux.2-klein-9b-edit-lora'
755
+ | 'flux.2-klein-9b-lora'
756
+ | 'flux.2-klein-base-4b-edit-lora'
757
+ | 'flux.2-klein-base-4b-lora'
758
+ | 'flux.2-klein-base-9b-edit-lora'
759
+ | 'flux.2-klein-base-9b-lora'
745
760
  | 'flux1.1-pro'
746
761
  | 'gpt-image-1'
762
+ | 'qwen-image-2512-lora'
763
+ | 'qwen-image-edit-2509-lora'
764
+ | 'qwen-image-edit-2511-lora'
765
+ | 'qwen-image-edit-lora'
766
+ | 'qwen-image-lora'
747
767
  | 'sd-1_5'
748
768
  | 'sd-1_5-composition'
749
769
  | 'sd-1_5-lora'
750
770
  | 'sd-xl'
751
771
  | 'sd-xl-composition'
752
- | 'sd-xl-lora';
772
+ | 'sd-xl-lora'
773
+ | 'zimage-de-turbo-lora'
774
+ | 'zimage-lora'
775
+ | 'zimage-turbo-lora';
753
776
 
754
777
  name?: string;
755
778
 
@@ -802,7 +825,7 @@ export namespace AssetRetrieveResponse {
802
825
  * List of points (label, x, y) in the image where label = 0 for background and 1
803
826
  * for object.
804
827
  */
805
- points?: Array<Array<unknown>>;
828
+ points?: Array<Array<number>>;
806
829
 
807
830
  /**
808
831
  * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
@@ -887,7 +910,8 @@ export namespace AssetRetrieveResponse {
887
910
  scheduler?: string;
888
911
 
889
912
  /**
890
- * The seed used to generate this asset
913
+ * The seed used to generate this asset. <!> Can be a string or a number in some
914
+ * cases <!>.
891
915
  */
892
916
  seed?: string;
893
917
 
@@ -1101,7 +1125,7 @@ export namespace AssetRetrieveResponse {
1101
1125
  /**
1102
1126
  * Bounding box dimensions [width, height, depth]
1103
1127
  */
1104
- dimensions?: Array<unknown>;
1128
+ dimensions?: Array<number>;
1105
1129
 
1106
1130
  /**
1107
1131
  * Duration of the media in seconds
@@ -1370,8 +1394,10 @@ export namespace AssetUpdateResponse {
1370
1394
  | 'upscale-texture'
1371
1395
  | 'upscale-video'
1372
1396
  | 'vectorization'
1397
+ | 'video23d'
1373
1398
  | 'video2img'
1374
- | 'video2video';
1399
+ | 'video2video'
1400
+ | 'voice-clone';
1375
1401
 
1376
1402
  /**
1377
1403
  * The actual status
@@ -1551,8 +1577,10 @@ export namespace AssetUpdateResponse {
1551
1577
  | 'upscale-texture'
1552
1578
  | 'upscale-video'
1553
1579
  | 'vectorization'
1580
+ | 'video23d'
1554
1581
  | 'video2img'
1555
- | 'video2video';
1582
+ | 'video2video'
1583
+ | 'voice-clone';
1556
1584
 
1557
1585
  /**
1558
1586
  * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
@@ -1579,7 +1607,7 @@ export namespace AssetUpdateResponse {
1579
1607
  /**
1580
1608
  * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
1581
1609
  */
1582
- bbox?: Array<unknown>;
1610
+ bbox?: Array<number>;
1583
1611
 
1584
1612
  /**
1585
1613
  * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
@@ -1821,6 +1849,7 @@ export namespace AssetUpdateResponse {
1821
1849
  */
1822
1850
  modelType?:
1823
1851
  | 'custom'
1852
+ | 'elevenlabs-voice'
1824
1853
  | 'flux.1'
1825
1854
  | 'flux.1-composition'
1826
1855
  | 'flux.1-kontext-dev'
@@ -1830,14 +1859,32 @@ export namespace AssetUpdateResponse {
1830
1859
  | 'flux.1-lora'
1831
1860
  | 'flux.1-pro'
1832
1861
  | 'flux.1.1-pro-ultra'
1862
+ | 'flux.2-dev-edit-lora'
1863
+ | 'flux.2-dev-lora'
1864
+ | 'flux.2-klein-4b-edit-lora'
1865
+ | 'flux.2-klein-4b-lora'
1866
+ | 'flux.2-klein-9b-edit-lora'
1867
+ | 'flux.2-klein-9b-lora'
1868
+ | 'flux.2-klein-base-4b-edit-lora'
1869
+ | 'flux.2-klein-base-4b-lora'
1870
+ | 'flux.2-klein-base-9b-edit-lora'
1871
+ | 'flux.2-klein-base-9b-lora'
1833
1872
  | 'flux1.1-pro'
1834
1873
  | 'gpt-image-1'
1874
+ | 'qwen-image-2512-lora'
1875
+ | 'qwen-image-edit-2509-lora'
1876
+ | 'qwen-image-edit-2511-lora'
1877
+ | 'qwen-image-edit-lora'
1878
+ | 'qwen-image-lora'
1835
1879
  | 'sd-1_5'
1836
1880
  | 'sd-1_5-composition'
1837
1881
  | 'sd-1_5-lora'
1838
1882
  | 'sd-xl'
1839
1883
  | 'sd-xl-composition'
1840
- | 'sd-xl-lora';
1884
+ | 'sd-xl-lora'
1885
+ | 'zimage-de-turbo-lora'
1886
+ | 'zimage-lora'
1887
+ | 'zimage-turbo-lora';
1841
1888
 
1842
1889
  name?: string;
1843
1890
 
@@ -1890,7 +1937,7 @@ export namespace AssetUpdateResponse {
1890
1937
  * List of points (label, x, y) in the image where label = 0 for background and 1
1891
1938
  * for object.
1892
1939
  */
1893
- points?: Array<Array<unknown>>;
1940
+ points?: Array<Array<number>>;
1894
1941
 
1895
1942
  /**
1896
1943
  * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
@@ -1975,7 +2022,8 @@ export namespace AssetUpdateResponse {
1975
2022
  scheduler?: string;
1976
2023
 
1977
2024
  /**
1978
- * The seed used to generate this asset
2025
+ * The seed used to generate this asset. <!> Can be a string or a number in some
2026
+ * cases <!>.
1979
2027
  */
1980
2028
  seed?: string;
1981
2029
 
@@ -2189,7 +2237,7 @@ export namespace AssetUpdateResponse {
2189
2237
  /**
2190
2238
  * Bounding box dimensions [width, height, depth]
2191
2239
  */
2192
- dimensions?: Array<unknown>;
2240
+ dimensions?: Array<number>;
2193
2241
 
2194
2242
  /**
2195
2243
  * Duration of the media in seconds
@@ -2463,8 +2511,10 @@ export namespace AssetListResponse {
2463
2511
  | 'upscale-texture'
2464
2512
  | 'upscale-video'
2465
2513
  | 'vectorization'
2514
+ | 'video23d'
2466
2515
  | 'video2img'
2467
- | 'video2video';
2516
+ | 'video2video'
2517
+ | 'voice-clone';
2468
2518
 
2469
2519
  /**
2470
2520
  * The actual status
@@ -2644,8 +2694,10 @@ export namespace AssetListResponse {
2644
2694
  | 'upscale-texture'
2645
2695
  | 'upscale-video'
2646
2696
  | 'vectorization'
2697
+ | 'video23d'
2647
2698
  | 'video2img'
2648
- | 'video2video';
2699
+ | 'video2video'
2700
+ | 'voice-clone';
2649
2701
 
2650
2702
  /**
2651
2703
  * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
@@ -2672,7 +2724,7 @@ export namespace AssetListResponse {
2672
2724
  /**
2673
2725
  * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
2674
2726
  */
2675
- bbox?: Array<unknown>;
2727
+ bbox?: Array<number>;
2676
2728
 
2677
2729
  /**
2678
2730
  * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
@@ -2914,6 +2966,7 @@ export namespace AssetListResponse {
2914
2966
  */
2915
2967
  modelType?:
2916
2968
  | 'custom'
2969
+ | 'elevenlabs-voice'
2917
2970
  | 'flux.1'
2918
2971
  | 'flux.1-composition'
2919
2972
  | 'flux.1-kontext-dev'
@@ -2923,14 +2976,32 @@ export namespace AssetListResponse {
2923
2976
  | 'flux.1-lora'
2924
2977
  | 'flux.1-pro'
2925
2978
  | 'flux.1.1-pro-ultra'
2979
+ | 'flux.2-dev-edit-lora'
2980
+ | 'flux.2-dev-lora'
2981
+ | 'flux.2-klein-4b-edit-lora'
2982
+ | 'flux.2-klein-4b-lora'
2983
+ | 'flux.2-klein-9b-edit-lora'
2984
+ | 'flux.2-klein-9b-lora'
2985
+ | 'flux.2-klein-base-4b-edit-lora'
2986
+ | 'flux.2-klein-base-4b-lora'
2987
+ | 'flux.2-klein-base-9b-edit-lora'
2988
+ | 'flux.2-klein-base-9b-lora'
2926
2989
  | 'flux1.1-pro'
2927
2990
  | 'gpt-image-1'
2991
+ | 'qwen-image-2512-lora'
2992
+ | 'qwen-image-edit-2509-lora'
2993
+ | 'qwen-image-edit-2511-lora'
2994
+ | 'qwen-image-edit-lora'
2995
+ | 'qwen-image-lora'
2928
2996
  | 'sd-1_5'
2929
2997
  | 'sd-1_5-composition'
2930
2998
  | 'sd-1_5-lora'
2931
2999
  | 'sd-xl'
2932
3000
  | 'sd-xl-composition'
2933
- | 'sd-xl-lora';
3001
+ | 'sd-xl-lora'
3002
+ | 'zimage-de-turbo-lora'
3003
+ | 'zimage-lora'
3004
+ | 'zimage-turbo-lora';
2934
3005
 
2935
3006
  name?: string;
2936
3007
 
@@ -2983,7 +3054,7 @@ export namespace AssetListResponse {
2983
3054
  * List of points (label, x, y) in the image where label = 0 for background and 1
2984
3055
  * for object.
2985
3056
  */
2986
- points?: Array<Array<unknown>>;
3057
+ points?: Array<Array<number>>;
2987
3058
 
2988
3059
  /**
2989
3060
  * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
@@ -3068,7 +3139,8 @@ export namespace AssetListResponse {
3068
3139
  scheduler?: string;
3069
3140
 
3070
3141
  /**
3071
- * The seed used to generate this asset
3142
+ * The seed used to generate this asset. <!> Can be a string or a number in some
3143
+ * cases <!>.
3072
3144
  */
3073
3145
  seed?: string;
3074
3146
 
@@ -3282,7 +3354,7 @@ export namespace AssetListResponse {
3282
3354
  /**
3283
3355
  * Bounding box dimensions [width, height, depth]
3284
3356
  */
3285
- dimensions?: Array<unknown>;
3357
+ dimensions?: Array<number>;
3286
3358
 
3287
3359
  /**
3288
3360
  * Duration of the media in seconds
@@ -3553,8 +3625,10 @@ export namespace AssetDuplicateResponse {
3553
3625
  | 'upscale-texture'
3554
3626
  | 'upscale-video'
3555
3627
  | 'vectorization'
3628
+ | 'video23d'
3556
3629
  | 'video2img'
3557
- | 'video2video';
3630
+ | 'video2video'
3631
+ | 'voice-clone';
3558
3632
 
3559
3633
  /**
3560
3634
  * The actual status
@@ -3734,8 +3808,10 @@ export namespace AssetDuplicateResponse {
3734
3808
  | 'upscale-texture'
3735
3809
  | 'upscale-video'
3736
3810
  | 'vectorization'
3811
+ | 'video23d'
3737
3812
  | 'video2img'
3738
- | 'video2video';
3813
+ | 'video2video'
3814
+ | 'voice-clone';
3739
3815
 
3740
3816
  /**
3741
3817
  * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
@@ -3762,7 +3838,7 @@ export namespace AssetDuplicateResponse {
3762
3838
  /**
3763
3839
  * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
3764
3840
  */
3765
- bbox?: Array<unknown>;
3841
+ bbox?: Array<number>;
3766
3842
 
3767
3843
  /**
3768
3844
  * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
@@ -4004,6 +4080,7 @@ export namespace AssetDuplicateResponse {
4004
4080
  */
4005
4081
  modelType?:
4006
4082
  | 'custom'
4083
+ | 'elevenlabs-voice'
4007
4084
  | 'flux.1'
4008
4085
  | 'flux.1-composition'
4009
4086
  | 'flux.1-kontext-dev'
@@ -4013,14 +4090,32 @@ export namespace AssetDuplicateResponse {
4013
4090
  | 'flux.1-lora'
4014
4091
  | 'flux.1-pro'
4015
4092
  | 'flux.1.1-pro-ultra'
4093
+ | 'flux.2-dev-edit-lora'
4094
+ | 'flux.2-dev-lora'
4095
+ | 'flux.2-klein-4b-edit-lora'
4096
+ | 'flux.2-klein-4b-lora'
4097
+ | 'flux.2-klein-9b-edit-lora'
4098
+ | 'flux.2-klein-9b-lora'
4099
+ | 'flux.2-klein-base-4b-edit-lora'
4100
+ | 'flux.2-klein-base-4b-lora'
4101
+ | 'flux.2-klein-base-9b-edit-lora'
4102
+ | 'flux.2-klein-base-9b-lora'
4016
4103
  | 'flux1.1-pro'
4017
4104
  | 'gpt-image-1'
4105
+ | 'qwen-image-2512-lora'
4106
+ | 'qwen-image-edit-2509-lora'
4107
+ | 'qwen-image-edit-2511-lora'
4108
+ | 'qwen-image-edit-lora'
4109
+ | 'qwen-image-lora'
4018
4110
  | 'sd-1_5'
4019
4111
  | 'sd-1_5-composition'
4020
4112
  | 'sd-1_5-lora'
4021
4113
  | 'sd-xl'
4022
4114
  | 'sd-xl-composition'
4023
- | 'sd-xl-lora';
4115
+ | 'sd-xl-lora'
4116
+ | 'zimage-de-turbo-lora'
4117
+ | 'zimage-lora'
4118
+ | 'zimage-turbo-lora';
4024
4119
 
4025
4120
  name?: string;
4026
4121
 
@@ -4073,7 +4168,7 @@ export namespace AssetDuplicateResponse {
4073
4168
  * List of points (label, x, y) in the image where label = 0 for background and 1
4074
4169
  * for object.
4075
4170
  */
4076
- points?: Array<Array<unknown>>;
4171
+ points?: Array<Array<number>>;
4077
4172
 
4078
4173
  /**
4079
4174
  * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
@@ -4158,7 +4253,8 @@ export namespace AssetDuplicateResponse {
4158
4253
  scheduler?: string;
4159
4254
 
4160
4255
  /**
4161
- * The seed used to generate this asset
4256
+ * The seed used to generate this asset. <!> Can be a string or a number in some
4257
+ * cases <!>.
4162
4258
  */
4163
4259
  seed?: string;
4164
4260
 
@@ -4372,7 +4468,7 @@ export namespace AssetDuplicateResponse {
4372
4468
  /**
4373
4469
  * Bounding box dimensions [width, height, depth]
4374
4470
  */
4375
- dimensions?: Array<unknown>;
4471
+ dimensions?: Array<number>;
4376
4472
 
4377
4473
  /**
4378
4474
  * Duration of the media in seconds
@@ -4641,8 +4737,10 @@ export namespace AssetGetBulkResponse {
4641
4737
  | 'upscale-texture'
4642
4738
  | 'upscale-video'
4643
4739
  | 'vectorization'
4740
+ | 'video23d'
4644
4741
  | 'video2img'
4645
- | 'video2video';
4742
+ | 'video2video'
4743
+ | 'voice-clone';
4646
4744
 
4647
4745
  /**
4648
4746
  * The actual status
@@ -4822,8 +4920,10 @@ export namespace AssetGetBulkResponse {
4822
4920
  | 'upscale-texture'
4823
4921
  | 'upscale-video'
4824
4922
  | 'vectorization'
4923
+ | 'video23d'
4825
4924
  | 'video2img'
4826
- | 'video2video';
4925
+ | 'video2video'
4926
+ | 'voice-clone';
4827
4927
 
4828
4928
  /**
4829
4929
  * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
@@ -4850,7 +4950,7 @@ export namespace AssetGetBulkResponse {
4850
4950
  /**
4851
4951
  * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
4852
4952
  */
4853
- bbox?: Array<unknown>;
4953
+ bbox?: Array<number>;
4854
4954
 
4855
4955
  /**
4856
4956
  * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
@@ -5092,6 +5192,7 @@ export namespace AssetGetBulkResponse {
5092
5192
  */
5093
5193
  modelType?:
5094
5194
  | 'custom'
5195
+ | 'elevenlabs-voice'
5095
5196
  | 'flux.1'
5096
5197
  | 'flux.1-composition'
5097
5198
  | 'flux.1-kontext-dev'
@@ -5101,14 +5202,32 @@ export namespace AssetGetBulkResponse {
5101
5202
  | 'flux.1-lora'
5102
5203
  | 'flux.1-pro'
5103
5204
  | 'flux.1.1-pro-ultra'
5205
+ | 'flux.2-dev-edit-lora'
5206
+ | 'flux.2-dev-lora'
5207
+ | 'flux.2-klein-4b-edit-lora'
5208
+ | 'flux.2-klein-4b-lora'
5209
+ | 'flux.2-klein-9b-edit-lora'
5210
+ | 'flux.2-klein-9b-lora'
5211
+ | 'flux.2-klein-base-4b-edit-lora'
5212
+ | 'flux.2-klein-base-4b-lora'
5213
+ | 'flux.2-klein-base-9b-edit-lora'
5214
+ | 'flux.2-klein-base-9b-lora'
5104
5215
  | 'flux1.1-pro'
5105
5216
  | 'gpt-image-1'
5217
+ | 'qwen-image-2512-lora'
5218
+ | 'qwen-image-edit-2509-lora'
5219
+ | 'qwen-image-edit-2511-lora'
5220
+ | 'qwen-image-edit-lora'
5221
+ | 'qwen-image-lora'
5106
5222
  | 'sd-1_5'
5107
5223
  | 'sd-1_5-composition'
5108
5224
  | 'sd-1_5-lora'
5109
5225
  | 'sd-xl'
5110
5226
  | 'sd-xl-composition'
5111
- | 'sd-xl-lora';
5227
+ | 'sd-xl-lora'
5228
+ | 'zimage-de-turbo-lora'
5229
+ | 'zimage-lora'
5230
+ | 'zimage-turbo-lora';
5112
5231
 
5113
5232
  name?: string;
5114
5233
 
@@ -5161,7 +5280,7 @@ export namespace AssetGetBulkResponse {
5161
5280
  * List of points (label, x, y) in the image where label = 0 for background and 1
5162
5281
  * for object.
5163
5282
  */
5164
- points?: Array<Array<unknown>>;
5283
+ points?: Array<Array<number>>;
5165
5284
 
5166
5285
  /**
5167
5286
  * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
@@ -5246,7 +5365,8 @@ export namespace AssetGetBulkResponse {
5246
5365
  scheduler?: string;
5247
5366
 
5248
5367
  /**
5249
- * The seed used to generate this asset
5368
+ * The seed used to generate this asset. <!> Can be a string or a number in some
5369
+ * cases <!>.
5250
5370
  */
5251
5371
  seed?: string;
5252
5372
 
@@ -5460,7 +5580,7 @@ export namespace AssetGetBulkResponse {
5460
5580
  /**
5461
5581
  * Bounding box dimensions [width, height, depth]
5462
5582
  */
5463
- dimensions?: Array<unknown>;
5583
+ dimensions?: Array<number>;
5464
5584
 
5465
5585
  /**
5466
5586
  * Duration of the media in seconds
@@ -5755,8 +5875,10 @@ export namespace AssetLockResponse {
5755
5875
  | 'upscale-texture'
5756
5876
  | 'upscale-video'
5757
5877
  | 'vectorization'
5878
+ | 'video23d'
5758
5879
  | 'video2img'
5759
- | 'video2video';
5880
+ | 'video2video'
5881
+ | 'voice-clone';
5760
5882
 
5761
5883
  /**
5762
5884
  * The actual status
@@ -5936,8 +6058,10 @@ export namespace AssetLockResponse {
5936
6058
  | 'upscale-texture'
5937
6059
  | 'upscale-video'
5938
6060
  | 'vectorization'
6061
+ | 'video23d'
5939
6062
  | 'video2img'
5940
- | 'video2video';
6063
+ | 'video2video'
6064
+ | 'voice-clone';
5941
6065
 
5942
6066
  /**
5943
6067
  * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
@@ -5964,7 +6088,7 @@ export namespace AssetLockResponse {
5964
6088
  /**
5965
6089
  * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
5966
6090
  */
5967
- bbox?: Array<unknown>;
6091
+ bbox?: Array<number>;
5968
6092
 
5969
6093
  /**
5970
6094
  * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
@@ -6206,6 +6330,7 @@ export namespace AssetLockResponse {
6206
6330
  */
6207
6331
  modelType?:
6208
6332
  | 'custom'
6333
+ | 'elevenlabs-voice'
6209
6334
  | 'flux.1'
6210
6335
  | 'flux.1-composition'
6211
6336
  | 'flux.1-kontext-dev'
@@ -6215,14 +6340,32 @@ export namespace AssetLockResponse {
6215
6340
  | 'flux.1-lora'
6216
6341
  | 'flux.1-pro'
6217
6342
  | 'flux.1.1-pro-ultra'
6343
+ | 'flux.2-dev-edit-lora'
6344
+ | 'flux.2-dev-lora'
6345
+ | 'flux.2-klein-4b-edit-lora'
6346
+ | 'flux.2-klein-4b-lora'
6347
+ | 'flux.2-klein-9b-edit-lora'
6348
+ | 'flux.2-klein-9b-lora'
6349
+ | 'flux.2-klein-base-4b-edit-lora'
6350
+ | 'flux.2-klein-base-4b-lora'
6351
+ | 'flux.2-klein-base-9b-edit-lora'
6352
+ | 'flux.2-klein-base-9b-lora'
6218
6353
  | 'flux1.1-pro'
6219
6354
  | 'gpt-image-1'
6355
+ | 'qwen-image-2512-lora'
6356
+ | 'qwen-image-edit-2509-lora'
6357
+ | 'qwen-image-edit-2511-lora'
6358
+ | 'qwen-image-edit-lora'
6359
+ | 'qwen-image-lora'
6220
6360
  | 'sd-1_5'
6221
6361
  | 'sd-1_5-composition'
6222
6362
  | 'sd-1_5-lora'
6223
6363
  | 'sd-xl'
6224
6364
  | 'sd-xl-composition'
6225
- | 'sd-xl-lora';
6365
+ | 'sd-xl-lora'
6366
+ | 'zimage-de-turbo-lora'
6367
+ | 'zimage-lora'
6368
+ | 'zimage-turbo-lora';
6226
6369
 
6227
6370
  name?: string;
6228
6371
 
@@ -6275,7 +6418,7 @@ export namespace AssetLockResponse {
6275
6418
  * List of points (label, x, y) in the image where label = 0 for background and 1
6276
6419
  * for object.
6277
6420
  */
6278
- points?: Array<Array<unknown>>;
6421
+ points?: Array<Array<number>>;
6279
6422
 
6280
6423
  /**
6281
6424
  * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
@@ -6360,7 +6503,8 @@ export namespace AssetLockResponse {
6360
6503
  scheduler?: string;
6361
6504
 
6362
6505
  /**
6363
- * The seed used to generate this asset
6506
+ * The seed used to generate this asset. <!> Can be a string or a number in some
6507
+ * cases <!>.
6364
6508
  */
6365
6509
  seed?: string;
6366
6510
 
@@ -6574,7 +6718,7 @@ export namespace AssetLockResponse {
6574
6718
  /**
6575
6719
  * Bounding box dimensions [width, height, depth]
6576
6720
  */
6577
- dimensions?: Array<unknown>;
6721
+ dimensions?: Array<number>;
6578
6722
 
6579
6723
  /**
6580
6724
  * Duration of the media in seconds
@@ -6843,8 +6987,10 @@ export namespace AssetUnlockResponse {
6843
6987
  | 'upscale-texture'
6844
6988
  | 'upscale-video'
6845
6989
  | 'vectorization'
6990
+ | 'video23d'
6846
6991
  | 'video2img'
6847
- | 'video2video';
6992
+ | 'video2video'
6993
+ | 'voice-clone';
6848
6994
 
6849
6995
  /**
6850
6996
  * The actual status
@@ -7024,8 +7170,10 @@ export namespace AssetUnlockResponse {
7024
7170
  | 'upscale-texture'
7025
7171
  | 'upscale-video'
7026
7172
  | 'vectorization'
7173
+ | 'video23d'
7027
7174
  | 'video2img'
7028
- | 'video2video';
7175
+ | 'video2video'
7176
+ | 'voice-clone';
7029
7177
 
7030
7178
  /**
7031
7179
  * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
@@ -7052,7 +7200,7 @@ export namespace AssetUnlockResponse {
7052
7200
  /**
7053
7201
  * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
7054
7202
  */
7055
- bbox?: Array<unknown>;
7203
+ bbox?: Array<number>;
7056
7204
 
7057
7205
  /**
7058
7206
  * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
@@ -7294,6 +7442,7 @@ export namespace AssetUnlockResponse {
7294
7442
  */
7295
7443
  modelType?:
7296
7444
  | 'custom'
7445
+ | 'elevenlabs-voice'
7297
7446
  | 'flux.1'
7298
7447
  | 'flux.1-composition'
7299
7448
  | 'flux.1-kontext-dev'
@@ -7303,14 +7452,32 @@ export namespace AssetUnlockResponse {
7303
7452
  | 'flux.1-lora'
7304
7453
  | 'flux.1-pro'
7305
7454
  | 'flux.1.1-pro-ultra'
7455
+ | 'flux.2-dev-edit-lora'
7456
+ | 'flux.2-dev-lora'
7457
+ | 'flux.2-klein-4b-edit-lora'
7458
+ | 'flux.2-klein-4b-lora'
7459
+ | 'flux.2-klein-9b-edit-lora'
7460
+ | 'flux.2-klein-9b-lora'
7461
+ | 'flux.2-klein-base-4b-edit-lora'
7462
+ | 'flux.2-klein-base-4b-lora'
7463
+ | 'flux.2-klein-base-9b-edit-lora'
7464
+ | 'flux.2-klein-base-9b-lora'
7306
7465
  | 'flux1.1-pro'
7307
7466
  | 'gpt-image-1'
7467
+ | 'qwen-image-2512-lora'
7468
+ | 'qwen-image-edit-2509-lora'
7469
+ | 'qwen-image-edit-2511-lora'
7470
+ | 'qwen-image-edit-lora'
7471
+ | 'qwen-image-lora'
7308
7472
  | 'sd-1_5'
7309
7473
  | 'sd-1_5-composition'
7310
7474
  | 'sd-1_5-lora'
7311
7475
  | 'sd-xl'
7312
7476
  | 'sd-xl-composition'
7313
- | 'sd-xl-lora';
7477
+ | 'sd-xl-lora'
7478
+ | 'zimage-de-turbo-lora'
7479
+ | 'zimage-lora'
7480
+ | 'zimage-turbo-lora';
7314
7481
 
7315
7482
  name?: string;
7316
7483
 
@@ -7363,7 +7530,7 @@ export namespace AssetUnlockResponse {
7363
7530
  * List of points (label, x, y) in the image where label = 0 for background and 1
7364
7531
  * for object.
7365
7532
  */
7366
- points?: Array<Array<unknown>>;
7533
+ points?: Array<Array<number>>;
7367
7534
 
7368
7535
  /**
7369
7536
  * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
@@ -7448,7 +7615,8 @@ export namespace AssetUnlockResponse {
7448
7615
  scheduler?: string;
7449
7616
 
7450
7617
  /**
7451
- * The seed used to generate this asset
7618
+ * The seed used to generate this asset. <!> Can be a string or a number in some
7619
+ * cases <!>.
7452
7620
  */
7453
7621
  seed?: string;
7454
7622
 
@@ -7662,7 +7830,7 @@ export namespace AssetUnlockResponse {
7662
7830
  /**
7663
7831
  * Bounding box dimensions [width, height, depth]
7664
7832
  */
7665
- dimensions?: Array<unknown>;
7833
+ dimensions?: Array<number>;
7666
7834
 
7667
7835
  /**
7668
7836
  * Duration of the media in seconds
@@ -7945,8 +8113,10 @@ export namespace AssetUploadResponse {
7945
8113
  | 'upscale-texture'
7946
8114
  | 'upscale-video'
7947
8115
  | 'vectorization'
8116
+ | 'video23d'
7948
8117
  | 'video2img'
7949
- | 'video2video';
8118
+ | 'video2video'
8119
+ | 'voice-clone';
7950
8120
 
7951
8121
  /**
7952
8122
  * The actual status
@@ -8126,8 +8296,10 @@ export namespace AssetUploadResponse {
8126
8296
  | 'upscale-texture'
8127
8297
  | 'upscale-video'
8128
8298
  | 'vectorization'
8299
+ | 'video23d'
8129
8300
  | 'video2img'
8130
- | 'video2video';
8301
+ | 'video2video'
8302
+ | 'voice-clone';
8131
8303
 
8132
8304
  /**
8133
8305
  * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
@@ -8154,7 +8326,7 @@ export namespace AssetUploadResponse {
8154
8326
  /**
8155
8327
  * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
8156
8328
  */
8157
- bbox?: Array<unknown>;
8329
+ bbox?: Array<number>;
8158
8330
 
8159
8331
  /**
8160
8332
  * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
@@ -8396,6 +8568,7 @@ export namespace AssetUploadResponse {
8396
8568
  */
8397
8569
  modelType?:
8398
8570
  | 'custom'
8571
+ | 'elevenlabs-voice'
8399
8572
  | 'flux.1'
8400
8573
  | 'flux.1-composition'
8401
8574
  | 'flux.1-kontext-dev'
@@ -8405,14 +8578,32 @@ export namespace AssetUploadResponse {
8405
8578
  | 'flux.1-lora'
8406
8579
  | 'flux.1-pro'
8407
8580
  | 'flux.1.1-pro-ultra'
8581
+ | 'flux.2-dev-edit-lora'
8582
+ | 'flux.2-dev-lora'
8583
+ | 'flux.2-klein-4b-edit-lora'
8584
+ | 'flux.2-klein-4b-lora'
8585
+ | 'flux.2-klein-9b-edit-lora'
8586
+ | 'flux.2-klein-9b-lora'
8587
+ | 'flux.2-klein-base-4b-edit-lora'
8588
+ | 'flux.2-klein-base-4b-lora'
8589
+ | 'flux.2-klein-base-9b-edit-lora'
8590
+ | 'flux.2-klein-base-9b-lora'
8408
8591
  | 'flux1.1-pro'
8409
8592
  | 'gpt-image-1'
8593
+ | 'qwen-image-2512-lora'
8594
+ | 'qwen-image-edit-2509-lora'
8595
+ | 'qwen-image-edit-2511-lora'
8596
+ | 'qwen-image-edit-lora'
8597
+ | 'qwen-image-lora'
8410
8598
  | 'sd-1_5'
8411
8599
  | 'sd-1_5-composition'
8412
8600
  | 'sd-1_5-lora'
8413
8601
  | 'sd-xl'
8414
8602
  | 'sd-xl-composition'
8415
- | 'sd-xl-lora';
8603
+ | 'sd-xl-lora'
8604
+ | 'zimage-de-turbo-lora'
8605
+ | 'zimage-lora'
8606
+ | 'zimage-turbo-lora';
8416
8607
 
8417
8608
  name?: string;
8418
8609
 
@@ -8465,7 +8656,7 @@ export namespace AssetUploadResponse {
8465
8656
  * List of points (label, x, y) in the image where label = 0 for background and 1
8466
8657
  * for object.
8467
8658
  */
8468
- points?: Array<Array<unknown>>;
8659
+ points?: Array<Array<number>>;
8469
8660
 
8470
8661
  /**
8471
8662
  * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
@@ -8550,7 +8741,8 @@ export namespace AssetUploadResponse {
8550
8741
  scheduler?: string;
8551
8742
 
8552
8743
  /**
8553
- * The seed used to generate this asset
8744
+ * The seed used to generate this asset. <!> Can be a string or a number in some
8745
+ * cases <!>.
8554
8746
  */
8555
8747
  seed?: string;
8556
8748
 
@@ -8764,7 +8956,7 @@ export namespace AssetUploadResponse {
8764
8956
  /**
8765
8957
  * Bounding box dimensions [width, height, depth]
8766
8958
  */
8767
- dimensions?: Array<unknown>;
8959
+ dimensions?: Array<number>;
8768
8960
 
8769
8961
  /**
8770
8962
  * Duration of the media in seconds
@@ -8918,6 +9110,7 @@ export namespace AssetUploadResponse {
8918
9110
  | 'model-download'
8919
9111
  | 'model-import'
8920
9112
  | 'model-training'
9113
+ | 'musubi-model-training'
8921
9114
  | 'openai-image-generation'
8922
9115
  | 'patch-image'
8923
9116
  | 'pixelate'
@@ -8999,20 +9192,37 @@ export namespace AssetUploadResponse {
8999
9192
  */
9000
9193
  assetIds?: Array<string>;
9001
9194
 
9195
+ /**
9196
+ * Eventual error for the job
9197
+ */
9198
+ error?: string | null;
9199
+
9002
9200
  /**
9003
9201
  * The flow of the job. Only available for workflow jobs.
9004
9202
  */
9005
9203
  flow?: Array<Metadata.Flow>;
9006
9204
 
9205
+ /**
9206
+ * Actionable hint for the user explaining what went wrong and how to resolve it.
9207
+ */
9208
+ hint?: string;
9209
+
9007
9210
  /**
9008
9211
  * The inputs for the job
9009
9212
  */
9010
- input?: unknown;
9213
+ input?: { [key: string]: unknown };
9011
9214
 
9012
9215
  /**
9013
- * The output of the job
9216
+ * May contain the output of the job for specific custom models jobs. Only
9217
+ * available for custom models which generate non-assets outputs. Example: LLM text
9218
+ * results.
9014
9219
  */
9015
- output?: unknown;
9220
+ output?: { [key: string]: unknown };
9221
+
9222
+ /**
9223
+ * For voice-clone jobs: the ID of the model being trained.
9224
+ */
9225
+ outputModelId?: string;
9016
9226
 
9017
9227
  /**
9018
9228
  * The workflow ID of the job if job is part of a workflow.
@@ -9042,8 +9252,11 @@ export namespace AssetUploadResponse {
9042
9252
  */
9043
9253
  type:
9044
9254
  | 'custom-model'
9255
+ | 'for-each'
9045
9256
  | 'generate-prompt'
9257
+ | 'list'
9046
9258
  | 'logic'
9259
+ | 'model'
9047
9260
  | 'remove-background'
9048
9261
  | 'transform'
9049
9262
  | 'user-approval'
@@ -9054,17 +9267,46 @@ export namespace AssetUploadResponse {
9054
9267
  */
9055
9268
  assets?: Array<Flow.Asset>;
9056
9269
 
9270
+ /**
9271
+ * Fixed number of iterations for a ForEach node. When set, the loop runs exactly
9272
+ * `count` times regardless of array input. When not set, the loop iterates over
9273
+ * the resolved array input. Only available for ForEach nodes.
9274
+ */
9275
+ count?: number;
9276
+
9057
9277
  /**
9058
9278
  * The nodes that this node depends on. Only available for nodes that have
9059
9279
  * dependencies. Mainly used for user approval nodes.
9060
9280
  */
9061
9281
  dependsOn?: Array<string>;
9062
9282
 
9283
+ /**
9284
+ * If true, the outputs of this node will be included in the workflow job's final
9285
+ * output. Only applicable to producing nodes (custom-model, inference, etc.). By
9286
+ * default, only last nodes (nodes not referenced by other nodes) contribute to
9287
+ * outputs. Set this to true to also include intermediate nodes in the final
9288
+ * output. Note: This should only be set to `true` or left undefined.
9289
+ */
9290
+ includeOutputsInWorkflowJob?: true;
9291
+
9063
9292
  /**
9064
9293
  * The inputs of the node.
9065
9294
  */
9066
9295
  inputs?: Array<Flow.Input>;
9067
9296
 
9297
+ /**
9298
+ * Statically-configured items for a List node. The node outputs this array as-is
9299
+ * when executed. Only available for List nodes. The values can be strings,
9300
+ * numbers, or asset IDs.
9301
+ */
9302
+ items?: Array<string>;
9303
+
9304
+ /**
9305
+ * Zero-based index of the iteration this node copy belongs to. Set on
9306
+ * dynamically-created copies of loop body nodes.
9307
+ */
9308
+ iterationIndex?: number;
9309
+
9068
9310
  /**
9069
9311
  * If the flow is part of a WorkflowJob, this is the jobId for the node. jobId is
9070
9312
  * only available for nodes started. A node "Pending" for a running workflow job is
@@ -9082,11 +9324,29 @@ export namespace AssetUploadResponse {
9082
9324
  */
9083
9325
  logicType?: 'if-else';
9084
9326
 
9327
+ /**
9328
+ * IDs of the body template nodes that belong to this ForEach loop. At runtime
9329
+ * these templates are cloned once per iteration and marked Skipped. Only available
9330
+ * for ForEach nodes.
9331
+ */
9332
+ loopBodyNodeIds?: Array<string>;
9333
+
9334
+ /**
9335
+ * ID of the ForEach node that spawned this iteration copy. Set on
9336
+ * dynamically-created copies of loop body nodes.
9337
+ */
9338
+ loopNodeId?: string;
9339
+
9085
9340
  /**
9086
9341
  * The model id for the node. Mainly used for custom model tasks.
9087
9342
  */
9088
9343
  modelId?: string;
9089
9344
 
9345
+ /**
9346
+ * The output of the node. Only available for logic nodes.
9347
+ */
9348
+ output?: unknown;
9349
+
9090
9350
  /**
9091
9351
  * The workflow id for the node. Mainly used for workflow tasks.
9092
9352
  */
@@ -9147,6 +9407,11 @@ export namespace AssetUploadResponse {
9147
9407
  */
9148
9408
  costImpact?: boolean;
9149
9409
 
9410
+ /**
9411
+ * The default value for the input
9412
+ */
9413
+ default?: unknown;
9414
+
9150
9415
  /**
9151
9416
  * Help text displayed in the UI to provide additional information about the input
9152
9417
  */
@@ -9168,11 +9433,20 @@ export namespace AssetUploadResponse {
9168
9433
  * the same as the current object. This is only available for type inputs_array
9169
9434
  * inputs.
9170
9435
  */
9171
- inputs?: Array<unknown>;
9436
+ inputs?: Array<{ [key: string]: unknown }>;
9437
+
9438
+ /**
9439
+ * The configured items for inputs_array type inputs. Each item is an array of
9440
+ * SubNodeInput that need ref/value resolution. Only available for inputs_array
9441
+ * type.
9442
+ */
9443
+ items?: Array<Array<Input.Item>>;
9172
9444
 
9173
9445
  /**
9174
9446
  * The asset kind of the input. Only taken into account for \`file\` and
9175
- * \`file_array\` input types.
9447
+ * \`file_array\` input types. If model provides multiple kinds, the input will be
9448
+ * not able to create the asset on the flight on API side with dataurl without
9449
+ * data:kind, prefix
9176
9450
  */
9177
9451
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
9178
9452
 
@@ -9198,6 +9472,13 @@ export namespace AssetUploadResponse {
9198
9472
  */
9199
9473
  maxLength?: number;
9200
9474
 
9475
+ /**
9476
+ * The maximum allowed file size in bytes. Only applies to \`file\` and
9477
+ * \`file_array\` input types. Validated against \`asset.properties.size\` at job
9478
+ * creation time.
9479
+ */
9480
+ maxSize?: number;
9481
+
9201
9482
  /**
9202
9483
  * The minimum allowed value. Only available for \`number\` and array input types.
9203
9484
  */
@@ -9215,6 +9496,7 @@ export namespace AssetUploadResponse {
9215
9496
  */
9216
9497
  modelTypes?: Array<
9217
9498
  | 'custom'
9499
+ | 'elevenlabs-voice'
9218
9500
  | 'flux.1'
9219
9501
  | 'flux.1-composition'
9220
9502
  | 'flux.1-kontext-dev'
@@ -9224,14 +9506,32 @@ export namespace AssetUploadResponse {
9224
9506
  | 'flux.1-lora'
9225
9507
  | 'flux.1-pro'
9226
9508
  | 'flux.1.1-pro-ultra'
9509
+ | 'flux.2-dev-edit-lora'
9510
+ | 'flux.2-dev-lora'
9511
+ | 'flux.2-klein-4b-edit-lora'
9512
+ | 'flux.2-klein-4b-lora'
9513
+ | 'flux.2-klein-9b-edit-lora'
9514
+ | 'flux.2-klein-9b-lora'
9515
+ | 'flux.2-klein-base-4b-edit-lora'
9516
+ | 'flux.2-klein-base-4b-lora'
9517
+ | 'flux.2-klein-base-9b-edit-lora'
9518
+ | 'flux.2-klein-base-9b-lora'
9227
9519
  | 'flux1.1-pro'
9228
9520
  | 'gpt-image-1'
9521
+ | 'qwen-image-2512-lora'
9522
+ | 'qwen-image-edit-2509-lora'
9523
+ | 'qwen-image-edit-2511-lora'
9524
+ | 'qwen-image-edit-lora'
9525
+ | 'qwen-image-lora'
9229
9526
  | 'sd-1_5'
9230
9527
  | 'sd-1_5-composition'
9231
9528
  | 'sd-1_5-lora'
9232
9529
  | 'sd-xl'
9233
9530
  | 'sd-xl-composition'
9234
9531
  | 'sd-xl-lora'
9532
+ | 'zimage-de-turbo-lora'
9533
+ | 'zimage-lora'
9534
+ | 'zimage-turbo-lora'
9235
9535
  >;
9236
9536
 
9237
9537
  /**
@@ -9283,9 +9583,316 @@ export namespace AssetUploadResponse {
9283
9583
  * The step increment for numeric inputs. Only available for \`number\` input type.
9284
9584
  */
9285
9585
  step?: number;
9586
+
9587
+ /**
9588
+ * The value of the input. This is the value of the input that will be used to run
9589
+ * the node. Only available for flows managed by a WorkflowJob.
9590
+ */
9591
+ value?: unknown;
9286
9592
  }
9287
9593
 
9288
9594
  export namespace Input {
9595
+ /**
9596
+ * A sub-input within an inputs_array item. Same as NodeInput but without the
9597
+ * recursive items field.
9598
+ */
9599
+ export interface Item {
9600
+ /**
9601
+ * The name that must be user to call the model through the API
9602
+ */
9603
+ name: string;
9604
+
9605
+ /**
9606
+ * The data type of the input
9607
+ */
9608
+ type:
9609
+ | 'boolean'
9610
+ | 'file'
9611
+ | 'file_array'
9612
+ | 'inputs_array'
9613
+ | 'model'
9614
+ | 'model_array'
9615
+ | 'number'
9616
+ | 'number_array'
9617
+ | 'string'
9618
+ | 'string_array';
9619
+
9620
+ /**
9621
+ * The allowed values for the input. For \`string\` or \`number\` types, creates a
9622
+ * single-select dropdown. For \`string_array\` type, creates a multi-select
9623
+ * dropdown.
9624
+ */
9625
+ allowedValues?: Array<unknown>;
9626
+
9627
+ /**
9628
+ * Specifies the background behavior for the input. Only available for \`file\` and
9629
+ * \`file_array\` input types with kind \`image\`.
9630
+ */
9631
+ backgroundBehavior?: 'opaque' | 'transparent';
9632
+
9633
+ /**
9634
+ * Whether the input is a color or not. Only available for \`string\` input type.
9635
+ */
9636
+ color?: boolean;
9637
+
9638
+ /**
9639
+ * Whether this input affects the model's cost calculation
9640
+ */
9641
+ costImpact?: boolean;
9642
+
9643
+ /**
9644
+ * The default value for the input
9645
+ */
9646
+ default?: unknown;
9647
+
9648
+ /**
9649
+ * Help text displayed in the UI to provide additional information about the input
9650
+ */
9651
+ description?: string;
9652
+
9653
+ /**
9654
+ * Used to visually group inputs together in the UI. Inputs with the same group
9655
+ * value appear consecutively in the UI.
9656
+ */
9657
+ group?: string;
9658
+
9659
+ /**
9660
+ * Hint text displayed in the UI as a tooltip to guide the user
9661
+ */
9662
+ hint?: string;
9663
+
9664
+ /**
9665
+ * The list of inputs which form an object within a container array. All inputs are
9666
+ * the same as the current object. This is only available for type inputs_array
9667
+ * inputs.
9668
+ */
9669
+ inputs?: Array<{ [key: string]: unknown }>;
9670
+
9671
+ /**
9672
+ * The asset kind of the input. Only taken into account for \`file\` and
9673
+ * \`file_array\` input types. If model provides multiple kinds, the input will be
9674
+ * not able to create the asset on the flight on API side with dataurl without
9675
+ * data:kind, prefix
9676
+ */
9677
+ kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
9678
+
9679
+ /**
9680
+ * The label displayed in the UI for this input
9681
+ */
9682
+ label?: string;
9683
+
9684
+ /**
9685
+ * The name of the file input field to use as the mask source
9686
+ */
9687
+ maskFrom?: string;
9688
+
9689
+ /**
9690
+ * The maximum allowed value. Only available for \`number\` and \`array\` input
9691
+ * types.
9692
+ */
9693
+ max?: number;
9694
+
9695
+ /**
9696
+ * The maximum allowed length for \`string\` inputs. Also applies to each item in
9697
+ * \`string_array\`.
9698
+ */
9699
+ maxLength?: number;
9700
+
9701
+ /**
9702
+ * The maximum allowed file size in bytes. Only applies to \`file\` and
9703
+ * \`file_array\` input types. Validated against \`asset.properties.size\` at job
9704
+ * creation time.
9705
+ */
9706
+ maxSize?: number;
9707
+
9708
+ /**
9709
+ * The minimum allowed value. Only available for \`number\` and array input types.
9710
+ */
9711
+ min?: number;
9712
+
9713
+ /**
9714
+ * The minimum allowed length for string inputs. Also applies to each item in
9715
+ * \`string_array\`.
9716
+ */
9717
+ minLength?: number;
9718
+
9719
+ /**
9720
+ * The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
9721
+ * available for \`model_array\` input type.
9722
+ */
9723
+ modelTypes?: Array<
9724
+ | 'custom'
9725
+ | 'elevenlabs-voice'
9726
+ | 'flux.1'
9727
+ | 'flux.1-composition'
9728
+ | 'flux.1-kontext-dev'
9729
+ | 'flux.1-kontext-lora'
9730
+ | 'flux.1-krea-dev'
9731
+ | 'flux.1-krea-lora'
9732
+ | 'flux.1-lora'
9733
+ | 'flux.1-pro'
9734
+ | 'flux.1.1-pro-ultra'
9735
+ | 'flux.2-dev-edit-lora'
9736
+ | 'flux.2-dev-lora'
9737
+ | 'flux.2-klein-4b-edit-lora'
9738
+ | 'flux.2-klein-4b-lora'
9739
+ | 'flux.2-klein-9b-edit-lora'
9740
+ | 'flux.2-klein-9b-lora'
9741
+ | 'flux.2-klein-base-4b-edit-lora'
9742
+ | 'flux.2-klein-base-4b-lora'
9743
+ | 'flux.2-klein-base-9b-edit-lora'
9744
+ | 'flux.2-klein-base-9b-lora'
9745
+ | 'flux1.1-pro'
9746
+ | 'gpt-image-1'
9747
+ | 'qwen-image-2512-lora'
9748
+ | 'qwen-image-edit-2509-lora'
9749
+ | 'qwen-image-edit-2511-lora'
9750
+ | 'qwen-image-edit-lora'
9751
+ | 'qwen-image-lora'
9752
+ | 'sd-1_5'
9753
+ | 'sd-1_5-composition'
9754
+ | 'sd-1_5-lora'
9755
+ | 'sd-xl'
9756
+ | 'sd-xl-composition'
9757
+ | 'sd-xl-lora'
9758
+ | 'zimage-de-turbo-lora'
9759
+ | 'zimage-lora'
9760
+ | 'zimage-turbo-lora'
9761
+ >;
9762
+
9763
+ /**
9764
+ * Whether this input represents a parent asset to assign to the produced assets.
9765
+ * Only available for \`file\` and \`file_array\` input types.
9766
+ *
9767
+ * For \`file_array\`, the parent asset is the first item in the array.
9768
+ */
9769
+ parent?: boolean;
9770
+
9771
+ /**
9772
+ * Placeholder text for the input. Only available for 'string' input type.
9773
+ */
9774
+ placeholder?: string;
9775
+
9776
+ /**
9777
+ * Whether the input is a prompt. When true, displays as a text area with prompt
9778
+ * spark feature. Only available for \`string\` input type.
9779
+ */
9780
+ prompt?: boolean;
9781
+
9782
+ /**
9783
+ * Whether the input is used with prompt spark. Only available for \`string\` input
9784
+ * type.
9785
+ */
9786
+ promptSpark?: boolean;
9787
+
9788
+ /**
9789
+ * The reference to another input or output of the same workflow. Must have at
9790
+ * least one of node or conditional.
9791
+ */
9792
+ ref?: Item.Ref;
9793
+
9794
+ /**
9795
+ * Set of rules that describes when this input is required:
9796
+ *
9797
+ * - \`always\`: Input is always required
9798
+ * - \`ifNotDefined\`: Input is required when another specified input is not
9799
+ * defined
9800
+ * - \`ifDefined\`: Input is required when another specified input is defined
9801
+ * - \`conditionalValues\`: Input is required when another input has a specific
9802
+ * value
9803
+ *
9804
+ * By default, the input is not required.
9805
+ */
9806
+ required?: Item.Required;
9807
+
9808
+ /**
9809
+ * The step increment for numeric inputs. Only available for \`number\` input type.
9810
+ */
9811
+ step?: number;
9812
+
9813
+ /**
9814
+ * The value of the input. This is the value of the input that will be used to run
9815
+ * the node. Only available for flows managed by a WorkflowJob.
9816
+ */
9817
+ value?: unknown;
9818
+ }
9819
+
9820
+ export namespace Item {
9821
+ /**
9822
+ * The reference to another input or output of the same workflow. Must have at
9823
+ * least one of node or conditional.
9824
+ */
9825
+ export interface Ref {
9826
+ /**
9827
+ * The conditional nodes to reference. If the conditional nodes are successful, the
9828
+ * node will be successful. If the conditional nodes are skipped, the node will be
9829
+ * skipped. Contains an array of node ids used to check the status of the nodes.
9830
+ */
9831
+ conditional?: Array<string>;
9832
+
9833
+ /**
9834
+ * This is the desired node output value if ref is an if/else node.
9835
+ */
9836
+ equal?: string;
9837
+
9838
+ /**
9839
+ * The name of the input or output to reference. If the type is 'workflow', the
9840
+ * name is the name of the input of the workflow is required If the type is 'node',
9841
+ * the name is not mandatory, except if you want all outputs of the node. To get
9842
+ * all outputs of a node, you can use the name 'all'.
9843
+ */
9844
+ name?: string;
9845
+
9846
+ /**
9847
+ * The node id or 'workflow' if the source is a workflow input.
9848
+ */
9849
+ node?: string;
9850
+ }
9851
+
9852
+ /**
9853
+ * Set of rules that describes when this input is required:
9854
+ *
9855
+ * - \`always\`: Input is always required
9856
+ * - \`ifNotDefined\`: Input is required when another specified input is not
9857
+ * defined
9858
+ * - \`ifDefined\`: Input is required when another specified input is defined
9859
+ * - \`conditionalValues\`: Input is required when another input has a specific
9860
+ * value
9861
+ *
9862
+ * By default, the input is not required.
9863
+ */
9864
+ export interface Required {
9865
+ /**
9866
+ * Whether the input is always required
9867
+ */
9868
+ always?: boolean;
9869
+
9870
+ /**
9871
+ * Makes this input required when another input has a specific value:
9872
+ *
9873
+ * - Key: name of the input to check
9874
+ * - Value: operation and allowed values that trigger the requirement
9875
+ */
9876
+ conditionalValues?: unknown;
9877
+
9878
+ /**
9879
+ * Makes this input required when another input is defined:
9880
+ *
9881
+ * - Key: name of the input that must be defined
9882
+ * - Value: message to display when this input is required
9883
+ */
9884
+ ifDefined?: unknown;
9885
+
9886
+ /**
9887
+ * Makes this input required when another input is not defined:
9888
+ *
9889
+ * - Key: name of the input that must be undefined
9890
+ * - Value: message to display when this input is required
9891
+ */
9892
+ ifNotDefined?: unknown;
9893
+ }
9894
+ }
9895
+
9289
9896
  /**
9290
9897
  * The reference to another input or output of the same workflow. Must have at
9291
9898
  * least one of node or conditional.
@@ -9421,19 +10028,19 @@ export interface AssetRetrieveParams {
9421
10028
  /**
9422
10029
  * If set to true, returns the original asset without transformation
9423
10030
  */
9424
- originalAssets?: string;
10031
+ originalAssets?: boolean;
9425
10032
 
9426
10033
  /**
9427
10034
  * Include the embedding in the response
9428
10035
  */
9429
- withEmbedding?: string;
10036
+ withEmbedding?: boolean;
9430
10037
  }
9431
10038
 
9432
10039
  export interface AssetUpdateParams {
9433
10040
  /**
9434
10041
  * Query param: If set to true, returns the original asset without transformation
9435
10042
  */
9436
- originalAssets?: string;
10043
+ originalAssets?: boolean;
9437
10044
 
9438
10045
  /**
9439
10046
  * Body param: The new value for the canvas as a stringified JSON.
@@ -9477,7 +10084,7 @@ export interface AssetListParams {
9477
10084
  */
9478
10085
  authorId?: string;
9479
10086
 
9480
- collectionId?: string;
10087
+ collectionId?: unknown;
9481
10088
 
9482
10089
  /**
9483
10090
  * Filter results to only return assets created after the specified ISO string date
@@ -9505,13 +10112,13 @@ export interface AssetListParams {
9505
10112
  /**
9506
10113
  * If set to true, returns the original asset without transformation
9507
10114
  */
9508
- originalAssets?: string;
10115
+ originalAssets?: boolean;
9509
10116
 
9510
10117
  /**
9511
10118
  * The number of items to return in the response. The default value is 50, maximum
9512
10119
  * value is 100, minimum value is 1
9513
10120
  */
9514
- pageSize?: string;
10121
+ pageSize?: number;
9515
10122
 
9516
10123
  /**
9517
10124
  * A token you received in a previous request to query the next page of items
@@ -9564,39 +10171,17 @@ export interface AssetListParams {
9564
10171
  * skybox-base-360, skybox-hdri, skybox-3d, restyle, reframe, generative-fill,
9565
10172
  * texture, texture-height, texture-normal, texture-smoothness, texture-metallic,
9566
10173
  * texture-edge, texture-ao, texture-albedo, image-prompt-editing, unknown, img23d,
9567
- * txt23d, 3d23d, 3d23d-texture, 3d-texture, 3d-texture-mtl, 3d-texture-albedo,
9568
- * 3d-texture-normal, 3d-texture-roughness, 3d-texture-metallic, img2video,
9569
- * txt2audio, audio2audio, video2video, video2img, txt2img, img2img, txt2video,
9570
- * uploaded, uploaded-video, uploaded-audio, uploaded-3d, uploaded-avatar,
9571
- * upscale-video, assets with a type starting with "inference-" will be returned
10174
+ * txt23d, video23d, 3d23d, 3d23d-texture, 3d-texture, 3d-texture-mtl,
10175
+ * 3d-texture-albedo, 3d-texture-normal, 3d-texture-roughness, 3d-texture-metallic,
10176
+ * img2video, txt2audio, audio2audio, voice-clone, video2video, video2img, txt2img,
10177
+ * img2img, txt2video, uploaded, uploaded-video, uploaded-audio, uploaded-3d,
10178
+ * uploaded-avatar, upscale-video, assets with a type starting with "inference-"
10179
+ * will be returned
9572
10180
  */
9573
10181
  type?:
9574
- | '3d-texture'
9575
- | '3d-texture-albedo'
9576
- | '3d-texture-metallic'
9577
- | '3d-texture-mtl'
9578
- | '3d-texture-normal'
9579
- | '3d-texture-roughness'
9580
- | '3d23d'
9581
- | '3d23d-texture'
9582
- | 'audio2audio'
9583
- | 'background-removal'
9584
- | 'canvas'
9585
- | 'canvas-drawing'
9586
- | 'canvas-export'
9587
- | 'detection'
9588
- | 'generative-fill'
9589
- | 'image-prompt-editing'
9590
- | 'img23d'
9591
- | 'img2img'
9592
- | 'img2video'
9593
- | 'inference-controlnet'
9594
- | 'inference-controlnet-img2img'
9595
- | 'inference-controlnet-inpaint'
9596
- | 'inference-controlnet-inpaint-ip-adapter'
9597
- | 'inference-controlnet-ip-adapter'
9598
- | 'inference-controlnet-reference'
9599
- | 'inference-controlnet-texture'
10182
+ | 'inference-txt2img'
10183
+ | 'inference-txt2img-ip-adapter'
10184
+ | 'inference-txt2img-texture'
9600
10185
  | 'inference-img2img'
9601
10186
  | 'inference-img2img-ip-adapter'
9602
10187
  | 'inference-img2img-texture'
@@ -9604,44 +10189,69 @@ export interface AssetListParams {
9604
10189
  | 'inference-inpaint-ip-adapter'
9605
10190
  | 'inference-reference'
9606
10191
  | 'inference-reference-texture'
9607
- | 'inference-txt2img'
9608
- | 'inference-txt2img-ip-adapter'
9609
- | 'inference-txt2img-texture'
10192
+ | 'inference-controlnet'
10193
+ | 'inference-controlnet-ip-adapter'
10194
+ | 'inference-controlnet-img2img'
10195
+ | 'inference-controlnet-reference'
10196
+ | 'inference-controlnet-inpaint'
10197
+ | 'inference-controlnet-inpaint-ip-adapter'
10198
+ | 'inference-controlnet-texture'
10199
+ | 'background-removal'
10200
+ | 'canvas'
10201
+ | 'canvas-export'
10202
+ | 'canvas-drawing'
10203
+ | 'detection'
9610
10204
  | 'patch'
9611
10205
  | 'pixelization'
9612
- | 'reframe'
9613
- | 'restyle'
10206
+ | 'upscale'
10207
+ | 'upscale-texture'
10208
+ | 'upscale-skybox'
10209
+ | 'vectorization'
9614
10210
  | 'segment'
9615
10211
  | 'segmentation-image'
9616
10212
  | 'segmentation-mask'
9617
- | 'skybox-3d'
9618
10213
  | 'skybox-base-360'
9619
10214
  | 'skybox-hdri'
10215
+ | 'skybox-3d'
10216
+ | 'restyle'
10217
+ | 'reframe'
10218
+ | 'generative-fill'
9620
10219
  | 'texture'
9621
- | 'texture-albedo'
9622
- | 'texture-ao'
9623
- | 'texture-edge'
9624
10220
  | 'texture-height'
9625
- | 'texture-metallic'
9626
10221
  | 'texture-normal'
9627
10222
  | 'texture-smoothness'
10223
+ | 'texture-metallic'
10224
+ | 'texture-edge'
10225
+ | 'texture-ao'
10226
+ | 'texture-albedo'
10227
+ | 'image-prompt-editing'
10228
+ | 'unknown'
10229
+ | 'img23d'
9628
10230
  | 'txt23d'
10231
+ | 'video23d'
10232
+ | '3d23d'
10233
+ | '3d23d-texture'
10234
+ | '3d-texture'
10235
+ | '3d-texture-mtl'
10236
+ | '3d-texture-albedo'
10237
+ | '3d-texture-normal'
10238
+ | '3d-texture-roughness'
10239
+ | '3d-texture-metallic'
10240
+ | 'img2video'
9629
10241
  | 'txt2audio'
10242
+ | 'audio2audio'
10243
+ | 'voice-clone'
10244
+ | 'video2video'
10245
+ | 'video2img'
9630
10246
  | 'txt2img'
10247
+ | 'img2img'
9631
10248
  | 'txt2video'
9632
- | 'unknown'
9633
10249
  | 'uploaded'
9634
- | 'uploaded-3d'
10250
+ | 'uploaded-video'
9635
10251
  | 'uploaded-audio'
10252
+ | 'uploaded-3d'
9636
10253
  | 'uploaded-avatar'
9637
- | 'uploaded-video'
9638
- | 'upscale'
9639
- | 'upscale-skybox'
9640
- | 'upscale-texture'
9641
- | 'upscale-video'
9642
- | 'vectorization'
9643
- | 'video2img'
9644
- | 'video2video';
10254
+ | 'upscale-video';
9645
10255
 
9646
10256
  /**
9647
10257
  * List of the asset types to request. The parameter "type" and "types" cannot be
@@ -9658,39 +10268,16 @@ export interface AssetListParams {
9658
10268
  * skybox-base-360, skybox-hdri, skybox-3d, restyle, reframe, generative-fill,
9659
10269
  * texture, texture-height, texture-normal, texture-smoothness, texture-metallic,
9660
10270
  * texture-edge, texture-ao, texture-albedo, image-prompt-editing, unknown, img23d,
9661
- * txt23d, 3d23d, 3d23d-texture, 3d-texture, 3d-texture-mtl, 3d-texture-albedo,
9662
- * 3d-texture-normal, 3d-texture-roughness, 3d-texture-metallic, img2video,
9663
- * txt2audio, audio2audio, video2video, video2img, txt2img, img2img, txt2video,
9664
- * uploaded, uploaded-video, uploaded-audio, uploaded-3d, uploaded-avatar,
9665
- * upscale-video
10271
+ * txt23d, video23d, 3d23d, 3d23d-texture, 3d-texture, 3d-texture-mtl,
10272
+ * 3d-texture-albedo, 3d-texture-normal, 3d-texture-roughness, 3d-texture-metallic,
10273
+ * img2video, txt2audio, audio2audio, voice-clone, video2video, video2img, txt2img,
10274
+ * img2img, txt2video, uploaded, uploaded-video, uploaded-audio, uploaded-3d,
10275
+ * uploaded-avatar, upscale-video
9666
10276
  */
9667
- types?: Array<
9668
- | '3d-texture'
9669
- | '3d-texture-albedo'
9670
- | '3d-texture-metallic'
9671
- | '3d-texture-mtl'
9672
- | '3d-texture-normal'
9673
- | '3d-texture-roughness'
9674
- | '3d23d'
9675
- | '3d23d-texture'
9676
- | 'audio2audio'
9677
- | 'background-removal'
9678
- | 'canvas'
9679
- | 'canvas-drawing'
9680
- | 'canvas-export'
9681
- | 'detection'
9682
- | 'generative-fill'
9683
- | 'image-prompt-editing'
9684
- | 'img23d'
9685
- | 'img2img'
9686
- | 'img2video'
9687
- | 'inference-controlnet'
9688
- | 'inference-controlnet-img2img'
9689
- | 'inference-controlnet-inpaint'
9690
- | 'inference-controlnet-inpaint-ip-adapter'
9691
- | 'inference-controlnet-ip-adapter'
9692
- | 'inference-controlnet-reference'
9693
- | 'inference-controlnet-texture'
10277
+ types?:
10278
+ | 'inference-txt2img'
10279
+ | 'inference-txt2img-ip-adapter'
10280
+ | 'inference-txt2img-texture'
9694
10281
  | 'inference-img2img'
9695
10282
  | 'inference-img2img-ip-adapter'
9696
10283
  | 'inference-img2img-texture'
@@ -9698,45 +10285,69 @@ export interface AssetListParams {
9698
10285
  | 'inference-inpaint-ip-adapter'
9699
10286
  | 'inference-reference'
9700
10287
  | 'inference-reference-texture'
9701
- | 'inference-txt2img'
9702
- | 'inference-txt2img-ip-adapter'
9703
- | 'inference-txt2img-texture'
10288
+ | 'inference-controlnet'
10289
+ | 'inference-controlnet-ip-adapter'
10290
+ | 'inference-controlnet-img2img'
10291
+ | 'inference-controlnet-reference'
10292
+ | 'inference-controlnet-inpaint'
10293
+ | 'inference-controlnet-inpaint-ip-adapter'
10294
+ | 'inference-controlnet-texture'
10295
+ | 'background-removal'
10296
+ | 'canvas'
10297
+ | 'canvas-export'
10298
+ | 'canvas-drawing'
10299
+ | 'detection'
9704
10300
  | 'patch'
9705
10301
  | 'pixelization'
9706
- | 'reframe'
9707
- | 'restyle'
10302
+ | 'upscale'
10303
+ | 'upscale-texture'
10304
+ | 'upscale-skybox'
10305
+ | 'vectorization'
9708
10306
  | 'segment'
9709
10307
  | 'segmentation-image'
9710
10308
  | 'segmentation-mask'
9711
- | 'skybox-3d'
9712
10309
  | 'skybox-base-360'
9713
10310
  | 'skybox-hdri'
10311
+ | 'skybox-3d'
10312
+ | 'restyle'
10313
+ | 'reframe'
10314
+ | 'generative-fill'
9714
10315
  | 'texture'
9715
- | 'texture-albedo'
9716
- | 'texture-ao'
9717
- | 'texture-edge'
9718
10316
  | 'texture-height'
9719
- | 'texture-metallic'
9720
10317
  | 'texture-normal'
9721
10318
  | 'texture-smoothness'
10319
+ | 'texture-metallic'
10320
+ | 'texture-edge'
10321
+ | 'texture-ao'
10322
+ | 'texture-albedo'
10323
+ | 'image-prompt-editing'
10324
+ | 'unknown'
10325
+ | 'img23d'
9722
10326
  | 'txt23d'
10327
+ | 'video23d'
10328
+ | '3d23d'
10329
+ | '3d23d-texture'
10330
+ | '3d-texture'
10331
+ | '3d-texture-mtl'
10332
+ | '3d-texture-albedo'
10333
+ | '3d-texture-normal'
10334
+ | '3d-texture-roughness'
10335
+ | '3d-texture-metallic'
10336
+ | 'img2video'
9723
10337
  | 'txt2audio'
10338
+ | 'audio2audio'
10339
+ | 'voice-clone'
10340
+ | 'video2video'
10341
+ | 'video2img'
9724
10342
  | 'txt2img'
10343
+ | 'img2img'
9725
10344
  | 'txt2video'
9726
- | 'unknown'
9727
10345
  | 'uploaded'
9728
- | 'uploaded-3d'
10346
+ | 'uploaded-video'
9729
10347
  | 'uploaded-audio'
10348
+ | 'uploaded-3d'
9730
10349
  | 'uploaded-avatar'
9731
- | 'uploaded-video'
9732
- | 'upscale'
9733
- | 'upscale-skybox'
9734
- | 'upscale-texture'
9735
- | 'upscale-video'
9736
- | 'vectorization'
9737
- | 'video2img'
9738
- | 'video2video'
9739
- >;
10350
+ | 'upscale-video';
9740
10351
 
9741
10352
  /**
9742
10353
  * Filter results to only return assets updated after the specified ISO string date
@@ -9762,7 +10373,7 @@ export interface AssetDuplicateParams {
9762
10373
  /**
9763
10374
  * Query param: If set to true, returns the original asset without transformation
9764
10375
  */
9765
- originalAssets?: string;
10376
+ originalAssets?: boolean;
9766
10377
 
9767
10378
  /**
9768
10379
  * Body param: The id of the project to copy the asset to. If not provided, the
@@ -9775,7 +10386,7 @@ export interface AssetGetBulkParams {
9775
10386
  /**
9776
10387
  * Query param: If set to true, returns the original asset without transformation
9777
10388
  */
9778
- originalAssets?: string;
10389
+ originalAssets?: boolean;
9779
10390
 
9780
10391
  /**
9781
10392
  * Body param: The list of asset ids the team has read access to. Limit of 200
@@ -9789,7 +10400,7 @@ export interface AssetListSnapshotsParams {
9789
10400
  * The number of items to return in the response. The default value is 10, maximum
9790
10401
  * value is 100, minimum value is 10
9791
10402
  */
9792
- pageSize?: string;
10403
+ pageSize?: number;
9793
10404
 
9794
10405
  /**
9795
10406
  * A token you received in a previous request to query the next page of items
@@ -9806,14 +10417,14 @@ export interface AssetLockParams {
9806
10417
  /**
9807
10418
  * Query param: If set to true, returns the original asset without transformation
9808
10419
  */
9809
- originalAssets?: string;
10420
+ originalAssets?: boolean;
9810
10421
  }
9811
10422
 
9812
10423
  export interface AssetUnlockParams {
9813
10424
  /**
9814
10425
  * Query param: If set to true, returns the original asset without transformation
9815
10426
  */
9816
- originalAssets?: string;
10427
+ originalAssets?: boolean;
9817
10428
 
9818
10429
  /**
9819
10430
  * Body param: If true, no need to pass a lockId.
@@ -9856,7 +10467,7 @@ export interface AssetUploadParams {
9856
10467
  /**
9857
10468
  * Query param: If set to true, returns the original asset without transformation
9858
10469
  */
9859
- originalAssets?: string;
10470
+ originalAssets?: boolean;
9860
10471
 
9861
10472
  /**
9862
10473
  * Body param: The canvas to upload as a stringified JSON. Ignored if `image` is