@scenario-labs/sdk 0.3.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +40 -6
  3. package/client.d.mts +34 -14
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +34 -14
  6. package/client.d.ts.map +1 -1
  7. package/client.js +10 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +10 -0
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +153 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +153 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +276 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +263 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +2 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +2 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +7 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +2 -0
  26. package/index.mjs.map +1 -1
  27. package/lib/models.d.mts +34 -2
  28. package/lib/models.d.mts.map +1 -1
  29. package/lib/models.d.ts +34 -2
  30. package/lib/models.d.ts.map +1 -1
  31. package/lib/models.js +39 -2
  32. package/lib/models.js.map +1 -1
  33. package/lib/models.mjs +37 -1
  34. package/lib/models.mjs.map +1 -1
  35. package/lib/scenario.d.mts +2 -0
  36. package/lib/scenario.d.mts.map +1 -1
  37. package/lib/scenario.d.ts +2 -0
  38. package/lib/scenario.d.ts.map +1 -1
  39. package/lib/scenario.js +2 -0
  40. package/lib/scenario.js.map +1 -1
  41. package/lib/scenario.mjs +2 -0
  42. package/lib/scenario.mjs.map +1 -1
  43. package/lib/upload.d.mts +89 -0
  44. package/lib/upload.d.mts.map +1 -0
  45. package/lib/upload.d.ts +89 -0
  46. package/lib/upload.d.ts.map +1 -0
  47. package/lib/upload.js +193 -0
  48. package/lib/upload.js.map +1 -0
  49. package/lib/upload.mjs +156 -0
  50. package/lib/upload.mjs.map +1 -0
  51. package/lib/workflow.d.mts +13 -2
  52. package/lib/workflow.d.mts.map +1 -1
  53. package/lib/workflow.d.ts +13 -2
  54. package/lib/workflow.d.ts.map +1 -1
  55. package/lib/workflow.js +17 -4
  56. package/lib/workflow.js.map +1 -1
  57. package/lib/workflow.mjs +17 -4
  58. package/lib/workflow.mjs.map +1 -1
  59. package/lib/workflow_import_validator.d.mts +40 -0
  60. package/lib/workflow_import_validator.d.mts.map +1 -0
  61. package/lib/workflow_import_validator.d.ts +40 -0
  62. package/lib/workflow_import_validator.d.ts.map +1 -0
  63. package/lib/workflow_import_validator.js +69 -0
  64. package/lib/workflow_import_validator.js.map +1 -0
  65. package/lib/workflow_import_validator.mjs +64 -0
  66. package/lib/workflow_import_validator.mjs.map +1 -0
  67. package/package.json +11 -1
  68. package/pagination.d.mts +2 -0
  69. package/pagination.d.mts.map +1 -0
  70. package/pagination.d.ts +2 -0
  71. package/pagination.d.ts.map +1 -0
  72. package/pagination.js +6 -0
  73. package/pagination.js.map +1 -0
  74. package/pagination.mjs +2 -0
  75. package/pagination.mjs.map +1 -0
  76. package/resources/assets/assets.d.mts +623 -646
  77. package/resources/assets/assets.d.mts.map +1 -1
  78. package/resources/assets/assets.d.ts +623 -646
  79. package/resources/assets/assets.d.ts.map +1 -1
  80. package/resources/assets/assets.js +3 -2
  81. package/resources/assets/assets.js.map +1 -1
  82. package/resources/assets/assets.mjs +3 -2
  83. package/resources/assets/assets.mjs.map +1 -1
  84. package/resources/assets/index.d.mts +1 -1
  85. package/resources/assets/index.d.mts.map +1 -1
  86. package/resources/assets/index.d.ts +1 -1
  87. package/resources/assets/index.d.ts.map +1 -1
  88. package/resources/assets/index.js.map +1 -1
  89. package/resources/assets/index.mjs.map +1 -1
  90. package/resources/collections/collections.d.mts +38 -49
  91. package/resources/collections/collections.d.mts.map +1 -1
  92. package/resources/collections/collections.d.ts +38 -49
  93. package/resources/collections/collections.d.ts.map +1 -1
  94. package/resources/collections/collections.js +5 -1
  95. package/resources/collections/collections.js.map +1 -1
  96. package/resources/collections/collections.mjs +5 -1
  97. package/resources/collections/collections.mjs.map +1 -1
  98. package/resources/collections/index.d.mts +1 -1
  99. package/resources/collections/index.d.mts.map +1 -1
  100. package/resources/collections/index.d.ts +1 -1
  101. package/resources/collections/index.d.ts.map +1 -1
  102. package/resources/collections/index.js.map +1 -1
  103. package/resources/collections/index.mjs.map +1 -1
  104. package/resources/index.d.mts +7 -7
  105. package/resources/index.d.mts.map +1 -1
  106. package/resources/index.d.ts +7 -7
  107. package/resources/index.d.ts.map +1 -1
  108. package/resources/index.js.map +1 -1
  109. package/resources/index.mjs.map +1 -1
  110. package/resources/jobs.d.mts +369 -380
  111. package/resources/jobs.d.mts.map +1 -1
  112. package/resources/jobs.d.ts +369 -380
  113. package/resources/jobs.d.ts.map +1 -1
  114. package/resources/jobs.js +2 -1
  115. package/resources/jobs.js.map +1 -1
  116. package/resources/jobs.mjs +2 -1
  117. package/resources/jobs.mjs.map +1 -1
  118. package/resources/models/index.d.mts +1 -1
  119. package/resources/models/index.d.mts.map +1 -1
  120. package/resources/models/index.d.ts +1 -1
  121. package/resources/models/index.d.ts.map +1 -1
  122. package/resources/models/index.js.map +1 -1
  123. package/resources/models/index.mjs.map +1 -1
  124. package/resources/models/models.d.mts +839 -850
  125. package/resources/models/models.d.mts.map +1 -1
  126. package/resources/models/models.d.ts +839 -850
  127. package/resources/models/models.d.ts.map +1 -1
  128. package/resources/models/models.js +2 -1
  129. package/resources/models/models.js.map +1 -1
  130. package/resources/models/models.mjs +2 -1
  131. package/resources/models/models.mjs.map +1 -1
  132. package/resources/search.d.mts +215 -295
  133. package/resources/search.d.mts.map +1 -1
  134. package/resources/search.d.ts +215 -295
  135. package/resources/search.d.ts.map +1 -1
  136. package/resources/search.js +9 -2
  137. package/resources/search.js.map +1 -1
  138. package/resources/search.mjs +9 -2
  139. package/resources/search.mjs.map +1 -1
  140. package/resources/tags.d.mts +23 -35
  141. package/resources/tags.d.mts.map +1 -1
  142. package/resources/tags.d.ts +23 -35
  143. package/resources/tags.d.ts.map +1 -1
  144. package/resources/tags.js +2 -1
  145. package/resources/tags.js.map +1 -1
  146. package/resources/tags.mjs +2 -1
  147. package/resources/tags.mjs.map +1 -1
  148. package/resources/workflows.d.mts +688 -704
  149. package/resources/workflows.d.mts.map +1 -1
  150. package/resources/workflows.d.ts +688 -704
  151. package/resources/workflows.d.ts.map +1 -1
  152. package/resources/workflows.js +5 -1
  153. package/resources/workflows.js.map +1 -1
  154. package/resources/workflows.mjs +5 -1
  155. package/resources/workflows.mjs.map +1 -1
  156. package/src/client.ts +103 -2
  157. package/src/core/pagination.ts +497 -0
  158. package/src/index.ts +8 -0
  159. package/src/lib/models.ts +62 -2
  160. package/src/lib/scenario.ts +2 -0
  161. package/src/lib/upload.ts +250 -0
  162. package/src/lib/workflow.ts +29 -4
  163. package/src/lib/workflow_import_validator.ts +104 -0
  164. package/src/pagination.ts +2 -0
  165. package/src/resources/assets/assets.ts +887 -902
  166. package/src/resources/assets/index.ts +2 -0
  167. package/src/resources/collections/collections.ts +45 -54
  168. package/src/resources/collections/index.ts +1 -0
  169. package/src/resources/index.ts +9 -1
  170. package/src/resources/jobs.ts +613 -622
  171. package/src/resources/models/index.ts +1 -0
  172. package/src/resources/models/models.ts +1052 -1064
  173. package/src/resources/search.ts +239 -327
  174. package/src/resources/tags.ts +32 -39
  175. package/src/resources/workflows.ts +850 -864
  176. package/src/version.ts +1 -1
  177. package/version.d.mts +1 -1
  178. package/version.d.ts +1 -1
  179. package/version.js +1 -1
  180. package/version.mjs +1 -1
@@ -13,6 +13,13 @@ import {
13
13
  import * as PublicAPI from './public';
14
14
  import { Public, PublicListParams, PublicListResponse, PublicRetrieveResponse } from './public';
15
15
  import { APIPromise } from '../../core/api-promise';
16
+ import {
17
+ AssetsCursor,
18
+ type AssetsCursorParams,
19
+ PagePromise,
20
+ SnapshotsCursor,
21
+ type SnapshotsCursorParams,
22
+ } from '../../core/pagination';
16
23
  import { RequestOptions } from '../../internal/request-options';
17
24
  import { path } from '../../internal/utils/path';
18
25
 
@@ -53,8 +60,8 @@ export class Assets extends APIResource {
53
60
  list(
54
61
  query: AssetListParams | null | undefined = {},
55
62
  options?: RequestOptions,
56
- ): APIPromise<AssetListResponse> {
57
- return this._client.get('/assets', { query, ...options });
63
+ ): PagePromise<AssetListResponsesAssetsCursor, AssetListResponse> {
64
+ return this._client.getAPIList('/assets', AssetsCursor<AssetListResponse>, { query, ...options });
58
65
  }
59
66
 
60
67
  /**
@@ -91,8 +98,12 @@ export class Assets extends APIResource {
91
98
  assetID: string,
92
99
  query: AssetListSnapshotsParams | null | undefined = {},
93
100
  options?: RequestOptions,
94
- ): APIPromise<AssetListSnapshotsResponse> {
95
- return this._client.get(path`/assets/${assetID}/snapshots`, { query, ...options });
101
+ ): PagePromise<AssetListSnapshotsResponsesSnapshotsCursor, AssetListSnapshotsResponse> {
102
+ return this._client.getAPIList(
103
+ path`/assets/${assetID}/snapshots`,
104
+ SnapshotsCursor<AssetListSnapshotsResponse>,
105
+ { query, ...options },
106
+ );
96
107
  }
97
108
 
98
109
  /**
@@ -135,6 +146,10 @@ export class Assets extends APIResource {
135
146
  }
136
147
  }
137
148
 
149
+ export type AssetListResponsesAssetsCursor = AssetsCursor<AssetListResponse>;
150
+
151
+ export type AssetListSnapshotsResponsesSnapshotsCursor = SnapshotsCursor<AssetListSnapshotsResponse>;
152
+
138
153
  export interface AssetRetrieveResponse {
139
154
  asset: AssetRetrieveResponse.Asset;
140
155
  }
@@ -2360,96 +2375,269 @@ export namespace AssetUpdateResponse {
2360
2375
  }
2361
2376
 
2362
2377
  export interface AssetListResponse {
2363
- assets: Array<AssetListResponse.Asset>;
2378
+ /**
2379
+ * The asset ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw")
2380
+ */
2381
+ id: string;
2364
2382
 
2365
2383
  /**
2366
- * A token to query the next page of assets
2384
+ * The author user ID (example: "dcf121faaa1a0a0bbbd9ca1b73d62aea")
2367
2385
  */
2368
- nextPaginationToken?: string;
2369
- }
2386
+ authorId: string;
2370
2387
 
2371
- export namespace AssetListResponse {
2372
- export interface Asset {
2373
- /**
2374
- * The asset ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw")
2375
- */
2376
- id: string;
2388
+ /**
2389
+ * A list of CollectionId this asset belongs to
2390
+ */
2391
+ collectionIds: Array<string>;
2377
2392
 
2378
- /**
2379
- * The author user ID (example: "dcf121faaa1a0a0bbbd9ca1b73d62aea")
2380
- */
2381
- authorId: string;
2393
+ /**
2394
+ * The asset creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
2395
+ */
2396
+ createdAt: string;
2382
2397
 
2383
- /**
2384
- * A list of CollectionId this asset belongs to
2385
- */
2386
- collectionIds: Array<string>;
2398
+ /**
2399
+ * List of edit capabilities
2400
+ */
2401
+ editCapabilities: Array<
2402
+ | 'DETECTION'
2403
+ | 'GENERATIVE_FILL'
2404
+ | 'PIXELATE'
2405
+ | 'PROMPT_EDITING'
2406
+ | 'REFINE'
2407
+ | 'REFRAME'
2408
+ | 'REMOVE_BACKGROUND'
2409
+ | 'SEGMENTATION'
2410
+ | 'UPSCALE'
2411
+ | 'UPSCALE_360'
2412
+ | 'VECTORIZATION'
2413
+ >;
2387
2414
 
2388
- /**
2389
- * The asset creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
2390
- */
2391
- createdAt: string;
2415
+ /**
2416
+ * The kind of asset
2417
+ */
2418
+ kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
2392
2419
 
2393
- /**
2394
- * List of edit capabilities
2395
- */
2396
- editCapabilities: Array<
2397
- | 'DETECTION'
2398
- | 'GENERATIVE_FILL'
2399
- | 'PIXELATE'
2400
- | 'PROMPT_EDITING'
2401
- | 'REFINE'
2402
- | 'REFRAME'
2403
- | 'REMOVE_BACKGROUND'
2404
- | 'SEGMENTATION'
2405
- | 'UPSCALE'
2406
- | 'UPSCALE_360'
2407
- | 'VECTORIZATION'
2408
- >;
2420
+ /**
2421
+ * Metadata of the asset with some additional information
2422
+ */
2423
+ metadata: AssetListResponse.Metadata;
2409
2424
 
2410
- /**
2411
- * The kind of asset
2412
- */
2413
- kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
2425
+ /**
2426
+ * The mime type of the asset (example: "image/png")
2427
+ */
2428
+ mimeType: string;
2414
2429
 
2415
- /**
2416
- * Metadata of the asset with some additional information
2417
- */
2418
- metadata: Asset.Metadata;
2430
+ /**
2431
+ * The owner (project) ID (example: "proj_23tlk332lkht3kl2" or
2432
+ * "team_dlkhgs23tlk3hlkth32lkht3kl2" for old teams)
2433
+ */
2434
+ ownerId: string;
2419
2435
 
2420
- /**
2421
- * The mime type of the asset (example: "image/png")
2422
- */
2423
- mimeType: string;
2436
+ /**
2437
+ * The privacy of the asset
2438
+ */
2439
+ privacy: 'private' | 'public' | 'unlisted';
2424
2440
 
2425
- /**
2426
- * The owner (project) ID (example: "proj_23tlk332lkht3kl2" or
2427
- * "team_dlkhgs23tlk3hlkth32lkht3kl2" for old teams)
2428
- */
2429
- ownerId: string;
2441
+ /**
2442
+ * The properties of the asset, content may depend on the kind of asset returned
2443
+ */
2444
+ properties: AssetListResponse.Properties;
2430
2445
 
2431
- /**
2432
- * The privacy of the asset
2433
- */
2434
- privacy: 'private' | 'public' | 'unlisted';
2446
+ /**
2447
+ * source of the asset
2448
+ */
2449
+ source:
2450
+ | '3d23d'
2451
+ | '3d23d:texture'
2452
+ | '3d:texture'
2453
+ | '3d:texture:albedo'
2454
+ | '3d:texture:metallic'
2455
+ | '3d:texture:mtl'
2456
+ | '3d:texture:normal'
2457
+ | '3d:texture:roughness'
2458
+ | 'audio2audio'
2459
+ | 'background-removal'
2460
+ | 'canvas'
2461
+ | 'canvas-drawing'
2462
+ | 'canvas-export'
2463
+ | 'detection'
2464
+ | 'generative-fill'
2465
+ | 'image-prompt-editing'
2466
+ | 'img23d'
2467
+ | 'img2img'
2468
+ | 'img2video'
2469
+ | 'inference-control-net'
2470
+ | 'inference-control-net-img'
2471
+ | 'inference-control-net-inpainting'
2472
+ | 'inference-control-net-inpainting-ip-adapter'
2473
+ | 'inference-control-net-ip-adapter'
2474
+ | 'inference-control-net-reference'
2475
+ | 'inference-control-net-texture'
2476
+ | 'inference-img'
2477
+ | 'inference-img-ip-adapter'
2478
+ | 'inference-img-texture'
2479
+ | 'inference-in-paint'
2480
+ | 'inference-in-paint-ip-adapter'
2481
+ | 'inference-reference'
2482
+ | 'inference-reference-texture'
2483
+ | 'inference-txt'
2484
+ | 'inference-txt-ip-adapter'
2485
+ | 'inference-txt-texture'
2486
+ | 'patch'
2487
+ | 'pixelization'
2488
+ | 'reframe'
2489
+ | 'restyle'
2490
+ | 'segment'
2491
+ | 'segmentation-image'
2492
+ | 'segmentation-mask'
2493
+ | 'skybox-3d'
2494
+ | 'skybox-base-360'
2495
+ | 'skybox-hdri'
2496
+ | 'texture'
2497
+ | 'texture:albedo'
2498
+ | 'texture:ao'
2499
+ | 'texture:edge'
2500
+ | 'texture:height'
2501
+ | 'texture:metallic'
2502
+ | 'texture:normal'
2503
+ | 'texture:smoothness'
2504
+ | 'txt23d'
2505
+ | 'txt2audio'
2506
+ | 'txt2img'
2507
+ | 'txt2video'
2508
+ | 'unknown'
2509
+ | 'uploaded'
2510
+ | 'uploaded-3d'
2511
+ | 'uploaded-audio'
2512
+ | 'uploaded-avatar'
2513
+ | 'uploaded-video'
2514
+ | 'upscale'
2515
+ | 'upscale-skybox'
2516
+ | 'upscale-texture'
2517
+ | 'upscale-video'
2518
+ | 'vectorization'
2519
+ | 'video23d'
2520
+ | 'video2img'
2521
+ | 'video2video'
2522
+ | 'voice-clone';
2435
2523
 
2436
- /**
2437
- * The properties of the asset, content may depend on the kind of asset returned
2438
- */
2439
- properties: Asset.Properties;
2524
+ /**
2525
+ * The actual status
2526
+ */
2527
+ status: 'error' | 'pending' | 'success';
2528
+
2529
+ /**
2530
+ * The associated tags (example: ["sci-fi", "landscape"])
2531
+ */
2532
+ tags: Array<string>;
2533
+
2534
+ /**
2535
+ * The asset last update date as an ISO string (example:
2536
+ * "2023-02-03T11:19:41.579Z")
2537
+ */
2538
+ updatedAt: string;
2539
+
2540
+ /**
2541
+ * Signed URL to get the asset content
2542
+ */
2543
+ url: string;
2544
+
2545
+ /**
2546
+ * Automatic captioning of the asset
2547
+ */
2548
+ automaticCaptioning?: string;
2549
+
2550
+ /**
2551
+ * The description, it will contain in priority:
2552
+ *
2553
+ * - the manual description
2554
+ * - the advanced captioning when the asset is used in training flow
2555
+ * - the automatic captioning
2556
+ */
2557
+ description?: string;
2558
+
2559
+ /**
2560
+ * The embedding of the asset when requested.
2561
+ *
2562
+ * Only available when an asset can be embedded (ie: not Detection maps)
2563
+ */
2564
+ embedding?: Array<number>;
2565
+
2566
+ /**
2567
+ * The video asset's first frame.
2568
+ *
2569
+ * Contains the assetId and the url of the first frame.
2570
+ */
2571
+ firstFrame?: AssetListResponse.FirstFrame;
2572
+
2573
+ /**
2574
+ * Whether the asset is hidden.
2575
+ */
2576
+ isHidden?: boolean;
2577
+
2578
+ /**
2579
+ * The video asset's last frame.
2580
+ *
2581
+ * Contains the assetId and the url of the last frame.
2582
+ */
2583
+ lastFrame?: AssetListResponse.LastFrame;
2584
+
2585
+ /**
2586
+ * The NSFW labels
2587
+ */
2588
+ nsfw?: Array<string>;
2589
+
2590
+ /**
2591
+ * The original file url.
2592
+ *
2593
+ * Contains the url of the original file. without any conversion. Only available
2594
+ * for some specific video, audio and threeD assets. Is only specified if the given
2595
+ * asset data has been replaced with a new file during the creation of the asset.
2596
+ */
2597
+ originalFileUrl?: string;
2598
+
2599
+ /**
2600
+ * The output index of the asset within a job This index is an positive integer
2601
+ * that starts at 0 It is used to differentiate between multiple outputs of the
2602
+ * same job If the job has only one output, this index is 0
2603
+ */
2604
+ outputIndex?: number;
2605
+
2606
+ /**
2607
+ * The asset's preview.
2608
+ *
2609
+ * Contains the assetId and the url of the preview.
2610
+ */
2611
+ preview?: AssetListResponse.Preview;
2612
+
2613
+ /**
2614
+ * The asset's thumbnail.
2615
+ *
2616
+ * Contains the assetId and the url of the thumbnail.
2617
+ */
2618
+ thumbnail?: AssetListResponse.Thumbnail;
2619
+ }
2620
+
2621
+ export namespace AssetListResponse {
2622
+ /**
2623
+ * Metadata of the asset with some additional information
2624
+ */
2625
+ export interface Metadata {
2626
+ kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
2440
2627
 
2441
2628
  /**
2442
- * source of the asset
2629
+ * The type of the asset. Ex: 'inference-txt2img' will represent an asset generated
2630
+ * from a text to image model
2443
2631
  */
2444
- source:
2632
+ type:
2633
+ | '3d-texture'
2634
+ | '3d-texture-albedo'
2635
+ | '3d-texture-metallic'
2636
+ | '3d-texture-mtl'
2637
+ | '3d-texture-normal'
2638
+ | '3d-texture-roughness'
2445
2639
  | '3d23d'
2446
- | '3d23d:texture'
2447
- | '3d:texture'
2448
- | '3d:texture:albedo'
2449
- | '3d:texture:metallic'
2450
- | '3d:texture:mtl'
2451
- | '3d:texture:normal'
2452
- | '3d:texture:roughness'
2640
+ | '3d23d-texture'
2453
2641
  | 'audio2audio'
2454
2642
  | 'background-removal'
2455
2643
  | 'canvas'
@@ -2461,23 +2649,23 @@ export namespace AssetListResponse {
2461
2649
  | 'img23d'
2462
2650
  | 'img2img'
2463
2651
  | 'img2video'
2464
- | 'inference-control-net'
2465
- | 'inference-control-net-img'
2466
- | 'inference-control-net-inpainting'
2467
- | 'inference-control-net-inpainting-ip-adapter'
2468
- | 'inference-control-net-ip-adapter'
2469
- | 'inference-control-net-reference'
2470
- | 'inference-control-net-texture'
2471
- | 'inference-img'
2472
- | 'inference-img-ip-adapter'
2473
- | 'inference-img-texture'
2474
- | 'inference-in-paint'
2475
- | 'inference-in-paint-ip-adapter'
2652
+ | 'inference-controlnet'
2653
+ | 'inference-controlnet-img2img'
2654
+ | 'inference-controlnet-inpaint'
2655
+ | 'inference-controlnet-inpaint-ip-adapter'
2656
+ | 'inference-controlnet-ip-adapter'
2657
+ | 'inference-controlnet-reference'
2658
+ | 'inference-controlnet-texture'
2659
+ | 'inference-img2img'
2660
+ | 'inference-img2img-ip-adapter'
2661
+ | 'inference-img2img-texture'
2662
+ | 'inference-inpaint'
2663
+ | 'inference-inpaint-ip-adapter'
2476
2664
  | 'inference-reference'
2477
2665
  | 'inference-reference-texture'
2478
- | 'inference-txt'
2479
- | 'inference-txt-ip-adapter'
2480
- | 'inference-txt-texture'
2666
+ | 'inference-txt2img'
2667
+ | 'inference-txt2img-ip-adapter'
2668
+ | 'inference-txt2img-texture'
2481
2669
  | 'patch'
2482
2670
  | 'pixelization'
2483
2671
  | 'reframe'
@@ -2489,13 +2677,13 @@ export namespace AssetListResponse {
2489
2677
  | 'skybox-base-360'
2490
2678
  | 'skybox-hdri'
2491
2679
  | 'texture'
2492
- | 'texture:albedo'
2493
- | 'texture:ao'
2494
- | 'texture:edge'
2495
- | 'texture:height'
2496
- | 'texture:metallic'
2497
- | 'texture:normal'
2498
- | 'texture:smoothness'
2680
+ | 'texture-albedo'
2681
+ | 'texture-ao'
2682
+ | 'texture-edge'
2683
+ | 'texture-height'
2684
+ | 'texture-metallic'
2685
+ | 'texture-normal'
2686
+ | 'texture-smoothness'
2499
2687
  | 'txt23d'
2500
2688
  | 'txt2audio'
2501
2689
  | 'txt2img'
@@ -2517,963 +2705,779 @@ export namespace AssetListResponse {
2517
2705
  | 'voice-clone';
2518
2706
 
2519
2707
  /**
2520
- * The actual status
2708
+ * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
2521
2709
  */
2522
- status: 'error' | 'pending' | 'success';
2710
+ angular?: number;
2523
2711
 
2524
2712
  /**
2525
- * The associated tags (example: ["sci-fi", "landscape"])
2713
+ * The optional aspect ratio given for the generation, only applicable for some
2714
+ * models
2526
2715
  */
2527
- tags: Array<string>;
2716
+ aspectRatio?: string;
2528
2717
 
2529
2718
  /**
2530
- * The asset last update date as an ISO string (example:
2531
- * "2023-02-03T11:19:41.579Z")
2719
+ * Int to set between 0 and 255 for the opacity of the background in the result
2720
+ * images.
2532
2721
  */
2533
- updatedAt: string;
2722
+ backgroundOpacity?: number;
2534
2723
 
2535
2724
  /**
2536
- * Signed URL to get the asset content
2725
+ * The baseModelId that maybe changed at inference time
2537
2726
  */
2538
- url: string;
2727
+ baseModelId?: string;
2539
2728
 
2540
2729
  /**
2541
- * Automatic captioning of the asset
2730
+ * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
2542
2731
  */
2543
- automaticCaptioning?: string;
2732
+ bbox?: Array<number>;
2544
2733
 
2545
2734
  /**
2546
- * The description, it will contain in priority:
2547
- *
2548
- * - the manual description
2549
- * - the advanced captioning when the asset is used in training flow
2550
- * - the automatic captioning
2735
+ * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
2551
2736
  */
2552
- description?: string;
2737
+ betterQuality?: boolean;
2553
2738
 
2554
2739
  /**
2555
- * The embedding of the asset when requested.
2556
- *
2557
- * Only available when an asset can be embedded (ie: not Detection maps)
2740
+ * The control image already processed by canny detector. Must reference an
2741
+ * existing AssetId.
2558
2742
  */
2559
- embedding?: Array<number>;
2743
+ cannyStructureImage?: string;
2560
2744
 
2561
2745
  /**
2562
- * The video asset's first frame.
2563
- *
2564
- * Contains the assetId and the url of the first frame.
2746
+ * Activate clustering.
2565
2747
  */
2566
- firstFrame?: Asset.FirstFrame;
2748
+ clustering?: boolean;
2567
2749
 
2568
2750
  /**
2569
- * Whether the asset is hidden.
2751
+ * Ensure upscaled tile have the same color histogram as original tile.
2570
2752
  */
2571
- isHidden?: boolean;
2753
+ colorCorrection?: boolean;
2754
+
2755
+ colorMode?: string;
2756
+
2757
+ colorPrecision?: number;
2572
2758
 
2573
2759
  /**
2574
- * The video asset's last frame.
2575
- *
2576
- * Contains the assetId and the url of the last frame.
2760
+ * Flux Kontext LoRA to style the image. For Flux Kontext Prompt Editing.
2577
2761
  */
2578
- lastFrame?: Asset.LastFrame;
2762
+ concepts?: Array<Metadata.Concept>;
2763
+
2764
+ contours?: Array<Array<Array<Array<number>>>>;
2579
2765
 
2580
2766
  /**
2581
- * The NSFW labels
2767
+ * End step for control.
2582
2768
  */
2583
- nsfw?: Array<string>;
2769
+ controlEnd?: number;
2584
2770
 
2585
2771
  /**
2586
- * The original file url.
2587
- *
2588
- * Contains the url of the original file. without any conversion. Only available
2589
- * for some specific video, audio and threeD assets. Is only specified if the given
2590
- * asset data has been replaced with a new file during the creation of the asset.
2772
+ * The date when the asset was copied to a project
2591
2773
  */
2592
- originalFileUrl?: string;
2774
+ copiedAt?: string;
2775
+
2776
+ cornerThreshold?: number;
2593
2777
 
2594
2778
  /**
2595
- * The output index of the asset within a job This index is an positive integer
2596
- * that starts at 0 It is used to differentiate between multiple outputs of the
2597
- * same job If the job has only one output, this index is 0
2779
+ * Allow the generation of "hallucinations" during the upscale process, which adds
2780
+ * additional details and deviates from the original image. Default: optimized for
2781
+ * your preset and style.
2598
2782
  */
2599
- outputIndex?: number;
2783
+ creativity?: number;
2600
2784
 
2601
2785
  /**
2602
- * The asset's preview.
2603
- *
2604
- * Contains the assetId and the url of the preview.
2786
+ * Amount of decay in creativity over the upscale process. The lowest the value,
2787
+ * the less the creativity will be preserved over the upscale process.
2605
2788
  */
2606
- preview?: Asset.Preview;
2789
+ creativityDecay?: number;
2607
2790
 
2608
2791
  /**
2609
- * The asset's thumbnail.
2610
- *
2611
- * Contains the assetId and the url of the thumbnail.
2792
+ * If true, use the default parameters
2612
2793
  */
2613
- thumbnail?: Asset.Thumbnail;
2614
- }
2794
+ defaultParameters?: boolean;
2615
2795
 
2616
- export namespace Asset {
2617
2796
  /**
2618
- * Metadata of the asset with some additional information
2797
+ * The depth fidelity if a depth image provided
2619
2798
  */
2620
- export interface Metadata {
2621
- kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
2799
+ depthFidelity?: number;
2622
2800
 
2623
- /**
2624
- * The type of the asset. Ex: 'inference-txt2img' will represent an asset generated
2625
- * from a text to image model
2626
- */
2627
- type:
2628
- | '3d-texture'
2629
- | '3d-texture-albedo'
2630
- | '3d-texture-metallic'
2631
- | '3d-texture-mtl'
2632
- | '3d-texture-normal'
2633
- | '3d-texture-roughness'
2634
- | '3d23d'
2635
- | '3d23d-texture'
2636
- | 'audio2audio'
2637
- | 'background-removal'
2638
- | 'canvas'
2639
- | 'canvas-drawing'
2640
- | 'canvas-export'
2641
- | 'detection'
2642
- | 'generative-fill'
2643
- | 'image-prompt-editing'
2644
- | 'img23d'
2645
- | 'img2img'
2646
- | 'img2video'
2647
- | 'inference-controlnet'
2648
- | 'inference-controlnet-img2img'
2649
- | 'inference-controlnet-inpaint'
2650
- | 'inference-controlnet-inpaint-ip-adapter'
2651
- | 'inference-controlnet-ip-adapter'
2652
- | 'inference-controlnet-reference'
2653
- | 'inference-controlnet-texture'
2654
- | 'inference-img2img'
2655
- | 'inference-img2img-ip-adapter'
2656
- | 'inference-img2img-texture'
2657
- | 'inference-inpaint'
2658
- | 'inference-inpaint-ip-adapter'
2659
- | 'inference-reference'
2660
- | 'inference-reference-texture'
2661
- | 'inference-txt2img'
2662
- | 'inference-txt2img-ip-adapter'
2663
- | 'inference-txt2img-texture'
2664
- | 'patch'
2665
- | 'pixelization'
2666
- | 'reframe'
2667
- | 'restyle'
2668
- | 'segment'
2669
- | 'segmentation-image'
2670
- | 'segmentation-mask'
2671
- | 'skybox-3d'
2672
- | 'skybox-base-360'
2673
- | 'skybox-hdri'
2674
- | 'texture'
2675
- | 'texture-albedo'
2676
- | 'texture-ao'
2677
- | 'texture-edge'
2678
- | 'texture-height'
2679
- | 'texture-metallic'
2680
- | 'texture-normal'
2681
- | 'texture-smoothness'
2682
- | 'txt23d'
2683
- | 'txt2audio'
2684
- | 'txt2img'
2685
- | 'txt2video'
2686
- | 'unknown'
2687
- | 'uploaded'
2688
- | 'uploaded-3d'
2689
- | 'uploaded-audio'
2690
- | 'uploaded-avatar'
2691
- | 'uploaded-video'
2692
- | 'upscale'
2693
- | 'upscale-skybox'
2694
- | 'upscale-texture'
2695
- | 'upscale-video'
2696
- | 'vectorization'
2697
- | 'video23d'
2698
- | 'video2img'
2699
- | 'video2video'
2700
- | 'voice-clone';
2701
-
2702
- /**
2703
- * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
2704
- */
2705
- angular?: number;
2706
-
2707
- /**
2708
- * The optional aspect ratio given for the generation, only applicable for some
2709
- * models
2710
- */
2711
- aspectRatio?: string;
2712
-
2713
- /**
2714
- * Int to set between 0 and 255 for the opacity of the background in the result
2715
- * images.
2716
- */
2717
- backgroundOpacity?: number;
2718
-
2719
- /**
2720
- * The baseModelId that maybe changed at inference time
2721
- */
2722
- baseModelId?: string;
2723
-
2724
- /**
2725
- * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
2726
- */
2727
- bbox?: Array<number>;
2728
-
2729
- /**
2730
- * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
2731
- */
2732
- betterQuality?: boolean;
2733
-
2734
- /**
2735
- * The control image already processed by canny detector. Must reference an
2736
- * existing AssetId.
2737
- */
2738
- cannyStructureImage?: string;
2739
-
2740
- /**
2741
- * Activate clustering.
2742
- */
2743
- clustering?: boolean;
2744
-
2745
- /**
2746
- * Ensure upscaled tile have the same color histogram as original tile.
2747
- */
2748
- colorCorrection?: boolean;
2749
-
2750
- colorMode?: string;
2751
-
2752
- colorPrecision?: number;
2753
-
2754
- /**
2755
- * Flux Kontext LoRA to style the image. For Flux Kontext Prompt Editing.
2756
- */
2757
- concepts?: Array<Metadata.Concept>;
2758
-
2759
- contours?: Array<Array<Array<Array<number>>>>;
2760
-
2761
- /**
2762
- * End step for control.
2763
- */
2764
- controlEnd?: number;
2765
-
2766
- /**
2767
- * The date when the asset was copied to a project
2768
- */
2769
- copiedAt?: string;
2770
-
2771
- cornerThreshold?: number;
2772
-
2773
- /**
2774
- * Allow the generation of "hallucinations" during the upscale process, which adds
2775
- * additional details and deviates from the original image. Default: optimized for
2776
- * your preset and style.
2777
- */
2778
- creativity?: number;
2779
-
2780
- /**
2781
- * Amount of decay in creativity over the upscale process. The lowest the value,
2782
- * the less the creativity will be preserved over the upscale process.
2783
- */
2784
- creativityDecay?: number;
2785
-
2786
- /**
2787
- * If true, use the default parameters
2788
- */
2789
- defaultParameters?: boolean;
2790
-
2791
- /**
2792
- * The depth fidelity if a depth image provided
2793
- */
2794
- depthFidelity?: number;
2795
-
2796
- /**
2797
- * The control image processed by depth estimator. Must reference an existing
2798
- * AssetId.
2799
- */
2800
- depthImage?: string;
2801
-
2802
- /**
2803
- * Amount of details to remove or add
2804
- */
2805
- detailsLevel?: number;
2806
-
2807
- /**
2808
- * The number of pixels to dilate the result masks.
2809
- */
2810
- dilate?: number;
2811
-
2812
- /**
2813
- * Contrast factor for Grayscale detector
2814
- */
2815
- factor?: number;
2816
-
2817
- filterSpeckle?: number;
2818
-
2819
- /**
2820
- * Determine the scale at which the upscale process works.
2821
- *
2822
- * - With a small value, the upscale works at the largest scale, resulting in fewer
2823
- * added details and more coherent images. Ideal for portraits, for example.
2824
- * - With a large value, the upscale works at the smallest scale, resulting in more
2825
- * added details and more hallucinations. Ideal for landscapes, for example.
2826
- *
2827
- * (info): A small value is slower and more expensive to run.
2828
- */
2829
- fractality?: number;
2830
-
2831
- /**
2832
- * Apply extra control to the Skybox 360 geometry. The higher the value, the more
2833
- * the 360 geometry will influence the generated skybox image.
2834
- *
2835
- * Use with caution. Default is adapted to the other parameters.
2836
- */
2837
- geometryEnforcement?: number;
2838
-
2839
- /**
2840
- * The guidance used to generate this asset
2841
- */
2842
- guidance?: number;
2843
-
2844
- halfMode?: boolean;
2845
-
2846
- hdr?: number;
2847
-
2848
- height?: number;
2849
-
2850
- /**
2851
- * High threshold for Canny detector
2852
- */
2853
- highThreshold?: number;
2854
-
2855
- /**
2856
- * (deprecated) Horizontal expansion ratio.
2857
- */
2858
- horizontalExpansionRatio?: number;
2801
+ /**
2802
+ * The control image processed by depth estimator. Must reference an existing
2803
+ * AssetId.
2804
+ */
2805
+ depthImage?: string;
2859
2806
 
2860
- /**
2861
- * The input image to process. Must reference an existing AssetId or be a data URL.
2862
- */
2863
- image?: string;
2807
+ /**
2808
+ * Amount of details to remove or add
2809
+ */
2810
+ detailsLevel?: number;
2864
2811
 
2865
- /**
2866
- * Strengthen the similarity to the original image during the upscale. Default:
2867
- * optimized for your preset and style.
2868
- */
2869
- imageFidelity?: number;
2812
+ /**
2813
+ * The number of pixels to dilate the result masks.
2814
+ */
2815
+ dilate?: number;
2870
2816
 
2871
- /**
2872
- * Preserve the seamless properties of skybox or texture images. Input has to be of
2873
- * same type (seamless).
2874
- */
2875
- imageType?: 'seamfull' | 'skybox' | 'texture';
2817
+ /**
2818
+ * Contrast factor for Grayscale detector
2819
+ */
2820
+ factor?: number;
2876
2821
 
2877
- /**
2878
- * The id of the Inference describing how this image was generated
2879
- */
2880
- inferenceId?: string;
2822
+ filterSpeckle?: number;
2881
2823
 
2882
- /**
2883
- * When set to `high`, allows to better preserve details from the input images in
2884
- * the output. This is especially useful when using images that contain elements
2885
- * like faces or logos that require accurate preservation in the generated image.
2886
- *
2887
- * You can provide multiple input images that will all be preserved with high
2888
- * fidelity, but keep in mind that the first image will be preserved with richer
2889
- * textures and finer details, so if you include elements such as faces, consider
2890
- * placing them in the first image.
2891
- *
2892
- * Only available for the `gpt-image-1` model.
2893
- */
2894
- inputFidelity?: 'high' | 'low';
2824
+ /**
2825
+ * Determine the scale at which the upscale process works.
2826
+ *
2827
+ * - With a small value, the upscale works at the largest scale, resulting in fewer
2828
+ * added details and more coherent images. Ideal for portraits, for example.
2829
+ * - With a large value, the upscale works at the smallest scale, resulting in more
2830
+ * added details and more hallucinations. Ideal for landscapes, for example.
2831
+ *
2832
+ * (info): A small value is slower and more expensive to run.
2833
+ */
2834
+ fractality?: number;
2895
2835
 
2896
- /**
2897
- * Location of the input image in the output.
2898
- */
2899
- inputLocation?: 'bottom' | 'left' | 'middle' | 'right' | 'top';
2836
+ /**
2837
+ * Apply extra control to the Skybox 360 geometry. The higher the value, the more
2838
+ * the 360 geometry will influence the generated skybox image.
2839
+ *
2840
+ * Use with caution. Default is adapted to the other parameters.
2841
+ */
2842
+ geometryEnforcement?: number;
2900
2843
 
2901
- /**
2902
- * To invert the relief
2903
- */
2904
- invert?: boolean;
2844
+ /**
2845
+ * The guidance used to generate this asset
2846
+ */
2847
+ guidance?: number;
2905
2848
 
2906
- /**
2907
- * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
2908
- */
2909
- keypointThreshold?: number;
2849
+ halfMode?: boolean;
2910
2850
 
2911
- layerDifference?: number;
2851
+ hdr?: number;
2912
2852
 
2913
- lengthThreshold?: number;
2853
+ height?: number;
2914
2854
 
2915
- /**
2916
- * The ISO timestamp when the lock on the canvas will expire
2917
- */
2918
- lockExpiresAt?: string;
2855
+ /**
2856
+ * High threshold for Canny detector
2857
+ */
2858
+ highThreshold?: number;
2919
2859
 
2920
- /**
2921
- * Low threshold for Canny detector
2922
- */
2923
- lowThreshold?: number;
2860
+ /**
2861
+ * (deprecated) Horizontal expansion ratio.
2862
+ */
2863
+ horizontalExpansionRatio?: number;
2924
2864
 
2925
- /**
2926
- * The mask used for the asset generation or editing
2927
- */
2928
- mask?: string;
2865
+ /**
2866
+ * The input image to process. Must reference an existing AssetId or be a data URL.
2867
+ */
2868
+ image?: string;
2929
2869
 
2930
- maxIterations?: number;
2870
+ /**
2871
+ * Strengthen the similarity to the original image during the upscale. Default:
2872
+ * optimized for your preset and style.
2873
+ */
2874
+ imageFidelity?: number;
2931
2875
 
2932
- /**
2933
- * Maximum threshold for Grayscale conversion
2934
- */
2935
- maxThreshold?: number;
2876
+ /**
2877
+ * Preserve the seamless properties of skybox or texture images. Input has to be of
2878
+ * same type (seamless).
2879
+ */
2880
+ imageType?: 'seamfull' | 'skybox' | 'texture';
2936
2881
 
2937
- /**
2938
- * Minimum threshold for Grayscale conversion
2939
- */
2940
- minThreshold?: number;
2882
+ /**
2883
+ * The id of the Inference describing how this image was generated
2884
+ */
2885
+ inferenceId?: string;
2941
2886
 
2942
- /**
2943
- * Modality to detect
2944
- */
2945
- modality?:
2946
- | 'canny'
2947
- | 'depth'
2948
- | 'grayscale'
2949
- | 'lineart_anime'
2950
- | 'mlsd'
2951
- | 'normal'
2952
- | 'pose'
2953
- | 'scribble'
2954
- | 'segmentation'
2955
- | 'sketch';
2887
+ /**
2888
+ * When set to `high`, allows to better preserve details from the input images in
2889
+ * the output. This is especially useful when using images that contain elements
2890
+ * like faces or logos that require accurate preservation in the generated image.
2891
+ *
2892
+ * You can provide multiple input images that will all be preserved with high
2893
+ * fidelity, but keep in mind that the first image will be preserved with richer
2894
+ * textures and finer details, so if you include elements such as faces, consider
2895
+ * placing them in the first image.
2896
+ *
2897
+ * Only available for the `gpt-image-1` model.
2898
+ */
2899
+ inputFidelity?: 'high' | 'low';
2956
2900
 
2957
- mode?: string;
2901
+ /**
2902
+ * Location of the input image in the output.
2903
+ */
2904
+ inputLocation?: 'bottom' | 'left' | 'middle' | 'right' | 'top';
2958
2905
 
2959
- /**
2960
- * The modelId used to generate this asset
2961
- */
2962
- modelId?: string;
2906
+ /**
2907
+ * To invert the relief
2908
+ */
2909
+ invert?: boolean;
2963
2910
 
2964
- /**
2965
- * The type of the generator used
2966
- */
2967
- modelType?:
2968
- | 'custom'
2969
- | 'elevenlabs-voice'
2970
- | 'flux.1'
2971
- | 'flux.1-composition'
2972
- | 'flux.1-kontext-dev'
2973
- | 'flux.1-kontext-lora'
2974
- | 'flux.1-krea-dev'
2975
- | 'flux.1-krea-lora'
2976
- | 'flux.1-lora'
2977
- | 'flux.1-pro'
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'
2989
- | 'flux1.1-pro'
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'
2996
- | 'sd-1_5'
2997
- | 'sd-1_5-composition'
2998
- | 'sd-1_5-lora'
2999
- | 'sd-xl'
3000
- | 'sd-xl-composition'
3001
- | 'sd-xl-lora'
3002
- | 'zimage-de-turbo-lora'
3003
- | 'zimage-lora'
3004
- | 'zimage-turbo-lora';
2911
+ /**
2912
+ * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
2913
+ */
2914
+ keypointThreshold?: number;
3005
2915
 
3006
- name?: string;
2916
+ layerDifference?: number;
3007
2917
 
3008
- nbMasks?: number;
2918
+ lengthThreshold?: number;
3009
2919
 
3010
- /**
3011
- * The negative prompt used to generate this asset
3012
- */
3013
- negativePrompt?: string;
2920
+ /**
2921
+ * The ISO timestamp when the lock on the canvas will expire
2922
+ */
2923
+ lockExpiresAt?: string;
3014
2924
 
3015
- /**
3016
- * Controls the influence of the negative prompt. Default 0 means the negative
3017
- * prompt has no effect. Higher values increase negative prompt influence. Must
3018
- * be > 0 if negativePrompt is provided.
3019
- */
3020
- negativePromptStrength?: number;
2925
+ /**
2926
+ * Low threshold for Canny detector
2927
+ */
2928
+ lowThreshold?: number;
3021
2929
 
3022
- /**
3023
- * The number of denoising steps for each image generation.
3024
- */
3025
- numInferenceSteps?: number;
2930
+ /**
2931
+ * The mask used for the asset generation or editing
2932
+ */
2933
+ mask?: string;
3026
2934
 
3027
- /**
3028
- * The number of outputs to generate.
3029
- */
3030
- numOutputs?: number;
2935
+ maxIterations?: number;
3031
2936
 
3032
- originalAssetId?: string;
2937
+ /**
2938
+ * Maximum threshold for Grayscale conversion
2939
+ */
2940
+ maxThreshold?: number;
3033
2941
 
3034
- outputIndex?: number;
2942
+ /**
2943
+ * Minimum threshold for Grayscale conversion
2944
+ */
2945
+ minThreshold?: number;
3035
2946
 
3036
- /**
3037
- * Overlap percentage for the output image.
3038
- */
3039
- overlapPercentage?: number;
2947
+ /**
2948
+ * Modality to detect
2949
+ */
2950
+ modality?:
2951
+ | 'canny'
2952
+ | 'depth'
2953
+ | 'grayscale'
2954
+ | 'lineart_anime'
2955
+ | 'mlsd'
2956
+ | 'normal'
2957
+ | 'pose'
2958
+ | 'scribble'
2959
+ | 'segmentation'
2960
+ | 'sketch';
3040
2961
 
3041
- /**
3042
- * Override the embeddings of the model. Only your prompt and negativePrompt will
3043
- * be used. Use with caution.
3044
- */
3045
- overrideEmbeddings?: boolean;
2962
+ mode?: string;
3046
2963
 
3047
- parentId?: string;
2964
+ /**
2965
+ * The modelId used to generate this asset
2966
+ */
2967
+ modelId?: string;
3048
2968
 
3049
- parentJobId?: string;
2969
+ /**
2970
+ * The type of the generator used
2971
+ */
2972
+ modelType?:
2973
+ | 'custom'
2974
+ | 'elevenlabs-voice'
2975
+ | 'flux.1'
2976
+ | 'flux.1-composition'
2977
+ | 'flux.1-kontext-dev'
2978
+ | 'flux.1-kontext-lora'
2979
+ | 'flux.1-krea-dev'
2980
+ | 'flux.1-krea-lora'
2981
+ | 'flux.1-lora'
2982
+ | 'flux.1-pro'
2983
+ | 'flux.1.1-pro-ultra'
2984
+ | 'flux.2-dev-edit-lora'
2985
+ | 'flux.2-dev-lora'
2986
+ | 'flux.2-klein-4b-edit-lora'
2987
+ | 'flux.2-klein-4b-lora'
2988
+ | 'flux.2-klein-9b-edit-lora'
2989
+ | 'flux.2-klein-9b-lora'
2990
+ | 'flux.2-klein-base-4b-edit-lora'
2991
+ | 'flux.2-klein-base-4b-lora'
2992
+ | 'flux.2-klein-base-9b-edit-lora'
2993
+ | 'flux.2-klein-base-9b-lora'
2994
+ | 'flux1.1-pro'
2995
+ | 'gpt-image-1'
2996
+ | 'qwen-image-2512-lora'
2997
+ | 'qwen-image-edit-2509-lora'
2998
+ | 'qwen-image-edit-2511-lora'
2999
+ | 'qwen-image-edit-lora'
3000
+ | 'qwen-image-lora'
3001
+ | 'sd-1_5'
3002
+ | 'sd-1_5-composition'
3003
+ | 'sd-1_5-lora'
3004
+ | 'sd-xl'
3005
+ | 'sd-xl-composition'
3006
+ | 'sd-xl-lora'
3007
+ | 'zimage-de-turbo-lora'
3008
+ | 'zimage-lora'
3009
+ | 'zimage-turbo-lora';
3050
3010
 
3051
- pathPrecision?: number;
3011
+ name?: string;
3052
3012
 
3053
- /**
3054
- * List of points (label, x, y) in the image where label = 0 for background and 1
3055
- * for object.
3056
- */
3057
- points?: Array<Array<number>>;
3013
+ nbMasks?: number;
3058
3014
 
3059
- /**
3060
- * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
3061
- */
3062
- polished?: number;
3015
+ /**
3016
+ * The negative prompt used to generate this asset
3017
+ */
3018
+ negativePrompt?: string;
3063
3019
 
3064
- preset?: string;
3020
+ /**
3021
+ * Controls the influence of the negative prompt. Default 0 means the negative
3022
+ * prompt has no effect. Higher values increase negative prompt influence. Must
3023
+ * be > 0 if negativePrompt is provided.
3024
+ */
3025
+ negativePromptStrength?: number;
3065
3026
 
3066
- progressPercent?: number;
3027
+ /**
3028
+ * The number of denoising steps for each image generation.
3029
+ */
3030
+ numInferenceSteps?: number;
3067
3031
 
3068
- /**
3069
- * The prompt that guided the asset generation or editing
3070
- */
3071
- prompt?: string;
3032
+ /**
3033
+ * The number of outputs to generate.
3034
+ */
3035
+ numOutputs?: number;
3072
3036
 
3073
- /**
3074
- * Increase the fidelity to the prompt during upscale. Default: optimized for your
3075
- * preset and style.
3076
- */
3077
- promptFidelity?: number;
3037
+ originalAssetId?: string;
3078
3038
 
3079
- /**
3080
- * How raised is the surface? 0 is flat like water, 1 is like a very rough rock
3081
- */
3082
- raised?: number;
3039
+ outputIndex?: number;
3083
3040
 
3084
- /**
3085
- * The reference images used for the asset generation or editing
3086
- */
3087
- referenceImages?: Array<string>;
3041
+ /**
3042
+ * Overlap percentage for the output image.
3043
+ */
3044
+ overlapPercentage?: number;
3088
3045
 
3089
- /**
3090
- * Additional refinement steps before scaling.
3091
- *
3092
- * If scalingFactor == 1, the refinement process will be applied (1 +
3093
- * refinementSteps) times. If scalingFactor > 1, the refinement process will be
3094
- * applied refinementSteps times.
3095
- */
3096
- refinementSteps?: number;
3046
+ /**
3047
+ * Override the embeddings of the model. Only your prompt and negativePrompt will
3048
+ * be used. Use with caution.
3049
+ */
3050
+ overrideEmbeddings?: boolean;
3097
3051
 
3098
- /**
3099
- * Remove background for Grayscale detector
3100
- */
3101
- removeBackground?: boolean;
3052
+ parentId?: string;
3102
3053
 
3103
- /**
3104
- * Size proportion of the input image in the output.
3105
- */
3106
- resizeOption?: number;
3054
+ parentJobId?: string;
3107
3055
 
3108
- /**
3109
- * Boolean to output the contours.
3110
- */
3111
- resultContours?: boolean;
3056
+ pathPrecision?: number;
3112
3057
 
3113
- /**
3114
- * Boolean to able output the cut out object.
3115
- */
3116
- resultImage?: boolean;
3058
+ /**
3059
+ * List of points (label, x, y) in the image where label = 0 for background and 1
3060
+ * for object.
3061
+ */
3062
+ points?: Array<Array<number>>;
3117
3063
 
3118
- /**
3119
- * Boolean to able return the masks (binary image) in the response.
3120
- */
3121
- resultMask?: boolean;
3064
+ /**
3065
+ * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
3066
+ */
3067
+ polished?: number;
3122
3068
 
3123
- rootParentId?: string;
3069
+ preset?: string;
3124
3070
 
3125
- /**
3126
- * Save a flipbook of the texture. Deactivated when the input texture is larger
3127
- * than 2048x2048px
3128
- */
3129
- saveFlipbook?: boolean;
3071
+ progressPercent?: number;
3130
3072
 
3131
- /**
3132
- * Scaling factor (when `targetWidth` not specified)
3133
- */
3134
- scalingFactor?: number;
3073
+ /**
3074
+ * The prompt that guided the asset generation or editing
3075
+ */
3076
+ prompt?: string;
3135
3077
 
3136
- /**
3137
- * The scheduler used to generate this asset
3138
- */
3139
- scheduler?: string;
3078
+ /**
3079
+ * Increase the fidelity to the prompt during upscale. Default: optimized for your
3080
+ * preset and style.
3081
+ */
3082
+ promptFidelity?: number;
3140
3083
 
3141
- /**
3142
- * The seed used to generate this asset. <!> Can be a string or a number in some
3143
- * cases <!>.
3144
- */
3145
- seed?: string;
3084
+ /**
3085
+ * How raised is the surface? 0 is flat like water, 1 is like a very rough rock
3086
+ */
3087
+ raised?: number;
3146
3088
 
3147
- /**
3148
- * Sharpen tiles.
3149
- */
3150
- sharpen?: boolean;
3089
+ /**
3090
+ * The reference images used for the asset generation or editing
3091
+ */
3092
+ referenceImages?: Array<string>;
3151
3093
 
3152
- /**
3153
- * How shiny is the surface? 0 is like a matte surface, 1 is like a diamond
3154
- */
3155
- shiny?: number;
3094
+ /**
3095
+ * Additional refinement steps before scaling.
3096
+ *
3097
+ * If scalingFactor == 1, the refinement process will be applied (1 +
3098
+ * refinementSteps) times. If scalingFactor > 1, the refinement process will be
3099
+ * applied refinementSteps times.
3100
+ */
3101
+ refinementSteps?: number;
3156
3102
 
3157
- size?: number;
3103
+ /**
3104
+ * Remove background for Grayscale detector
3105
+ */
3106
+ removeBackground?: boolean;
3158
3107
 
3159
- /**
3160
- * Activate sketch detection instead of canny.
3161
- */
3162
- sketch?: boolean;
3108
+ /**
3109
+ * Size proportion of the input image in the output.
3110
+ */
3111
+ resizeOption?: number;
3163
3112
 
3164
- sourceProjectId?: string;
3113
+ /**
3114
+ * Boolean to output the contours.
3115
+ */
3116
+ resultContours?: boolean;
3165
3117
 
3166
- spliceThreshold?: number;
3118
+ /**
3119
+ * Boolean to able output the cut out object.
3120
+ */
3121
+ resultImage?: boolean;
3167
3122
 
3168
- /**
3169
- * The strength
3170
- *
3171
- * Only available for the `flux-kontext` LoRA model.
3172
- */
3173
- strength?: number;
3123
+ /**
3124
+ * Boolean to able return the masks (binary image) in the response.
3125
+ */
3126
+ resultMask?: boolean;
3174
3127
 
3175
- /**
3176
- * Strength for the input image structure preservation
3177
- */
3178
- structureFidelity?: number;
3128
+ rootParentId?: string;
3179
3129
 
3180
- /**
3181
- * The control image for structure. A canny detector will be applied to this image.
3182
- * Must reference an existing AssetId.
3183
- */
3184
- structureImage?: string;
3130
+ /**
3131
+ * Save a flipbook of the texture. Deactivated when the input texture is larger
3132
+ * than 2048x2048px
3133
+ */
3134
+ saveFlipbook?: boolean;
3185
3135
 
3186
- style?:
3187
- | '3d-cartoon'
3188
- | '3d-rendered'
3189
- | 'anime'
3190
- | 'cartoon'
3191
- | 'cinematic'
3192
- | 'claymation'
3193
- | 'cloud-skydome'
3194
- | 'comic'
3195
- | 'cyberpunk'
3196
- | 'enchanted'
3197
- | 'fantasy'
3198
- | 'ink'
3199
- | 'manga'
3200
- | 'manga-color'
3201
- | 'minimalist'
3202
- | 'neon-tron'
3203
- | 'oil-painting'
3204
- | 'pastel'
3205
- | 'photo'
3206
- | 'photography'
3207
- | 'psychedelic'
3208
- | 'retro-fantasy'
3209
- | 'scifi-concept-art'
3210
- | 'space'
3211
- | 'standard'
3212
- | 'whimsical';
3136
+ /**
3137
+ * Scaling factor (when `targetWidth` not specified)
3138
+ */
3139
+ scalingFactor?: number;
3213
3140
 
3214
- /**
3215
- * The higher the value the more it will look like the style image(s)
3216
- */
3217
- styleFidelity?: number;
3141
+ /**
3142
+ * The scheduler used to generate this asset
3143
+ */
3144
+ scheduler?: string;
3218
3145
 
3219
- /**
3220
- * List of style images. Most of the time, only one image is enough. It must be
3221
- * existing AssetIds.
3222
- */
3223
- styleImages?: Array<string>;
3146
+ /**
3147
+ * The seed used to generate this asset. <!> Can be a string or a number in some
3148
+ * cases <!>.
3149
+ */
3150
+ seed?: string;
3224
3151
 
3225
- /**
3226
- * Condition the influence of the style image(s). The higher the value, the more
3227
- * the style images will influence the upscaled image.
3228
- */
3229
- styleImagesFidelity?: number;
3152
+ /**
3153
+ * Sharpen tiles.
3154
+ */
3155
+ sharpen?: boolean;
3230
3156
 
3231
- /**
3232
- * The target height of the output image.
3233
- */
3234
- targetHeight?: number;
3157
+ /**
3158
+ * How shiny is the surface? 0 is like a matte surface, 1 is like a diamond
3159
+ */
3160
+ shiny?: number;
3235
3161
 
3236
- /**
3237
- * Target width for the upscaled image, take priority over scaling factor
3238
- */
3239
- targetWidth?: number;
3162
+ size?: number;
3240
3163
 
3241
- /**
3242
- * A textual description / keywords describing the object of interest.
3243
- */
3244
- text?: string;
3164
+ /**
3165
+ * Activate sketch detection instead of canny.
3166
+ */
3167
+ sketch?: boolean;
3245
3168
 
3246
- /**
3247
- * The asset to convert in texture maps. Must reference an existing AssetId.
3248
- */
3249
- texture?: string;
3169
+ sourceProjectId?: string;
3250
3170
 
3251
- /**
3252
- * The thumbnail of the canvas
3253
- */
3254
- thumbnail?: Metadata.Thumbnail;
3171
+ spliceThreshold?: number;
3255
3172
 
3256
- /**
3257
- * If set to true, during the upscaling process, the model will match tiles of the
3258
- * source image with tiles of the style image(s). This will result in a more
3259
- * coherent restyle. Works best with style images that have a similar composition.
3260
- */
3261
- tileStyle?: boolean;
3173
+ /**
3174
+ * The strength
3175
+ *
3176
+ * Only available for the `flux-kontext` LoRA model.
3177
+ */
3178
+ strength?: number;
3262
3179
 
3263
- trainingImage?: boolean;
3180
+ /**
3181
+ * Strength for the input image structure preservation
3182
+ */
3183
+ structureFidelity?: number;
3264
3184
 
3265
- /**
3266
- * (deprecated) Vertical expansion ratio.
3267
- */
3268
- verticalExpansionRatio?: number;
3185
+ /**
3186
+ * The control image for structure. A canny detector will be applied to this image.
3187
+ * Must reference an existing AssetId.
3188
+ */
3189
+ structureImage?: string;
3269
3190
 
3270
- /**
3271
- * The width of the rendered image.
3272
- */
3273
- width?: number;
3274
- }
3191
+ style?:
3192
+ | '3d-cartoon'
3193
+ | '3d-rendered'
3194
+ | 'anime'
3195
+ | 'cartoon'
3196
+ | 'cinematic'
3197
+ | 'claymation'
3198
+ | 'cloud-skydome'
3199
+ | 'comic'
3200
+ | 'cyberpunk'
3201
+ | 'enchanted'
3202
+ | 'fantasy'
3203
+ | 'ink'
3204
+ | 'manga'
3205
+ | 'manga-color'
3206
+ | 'minimalist'
3207
+ | 'neon-tron'
3208
+ | 'oil-painting'
3209
+ | 'pastel'
3210
+ | 'photo'
3211
+ | 'photography'
3212
+ | 'psychedelic'
3213
+ | 'retro-fantasy'
3214
+ | 'scifi-concept-art'
3215
+ | 'space'
3216
+ | 'standard'
3217
+ | 'whimsical';
3275
3218
 
3276
- export namespace Metadata {
3277
- export interface Concept {
3278
- /**
3279
- * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
3280
- */
3281
- modelId: string;
3219
+ /**
3220
+ * The higher the value the more it will look like the style image(s)
3221
+ */
3222
+ styleFidelity?: number;
3282
3223
 
3283
- /**
3284
- * The scale of the model (example: 1.0) For Flux Kontext Prompt Editing, the scale
3285
- * is between 0 and 2.
3286
- */
3287
- scale: number;
3224
+ /**
3225
+ * List of style images. Most of the time, only one image is enough. It must be
3226
+ * existing AssetIds.
3227
+ */
3228
+ styleImages?: Array<string>;
3288
3229
 
3289
- /**
3290
- * The epoch of the model (example: "000001") Only available for Flux Lora Trained
3291
- * models
3292
- */
3293
- modelEpoch?: string;
3294
- }
3230
+ /**
3231
+ * Condition the influence of the style image(s). The higher the value, the more
3232
+ * the style images will influence the upscaled image.
3233
+ */
3234
+ styleImagesFidelity?: number;
3295
3235
 
3296
- /**
3297
- * The thumbnail of the canvas
3298
- */
3299
- export interface Thumbnail {
3300
- /**
3301
- * The AssetId of the image used as a thumbnail for the canvas (example:
3302
- * "asset_GTrL3mq4SXWyMxkOHRxlpw")
3303
- */
3304
- assetId: string;
3236
+ /**
3237
+ * The target height of the output image.
3238
+ */
3239
+ targetHeight?: number;
3305
3240
 
3306
- /**
3307
- * The url of the image used as a thumbnail for the canvas
3308
- */
3309
- url: string;
3310
- }
3311
- }
3241
+ /**
3242
+ * Target width for the upscaled image, take priority over scaling factor
3243
+ */
3244
+ targetWidth?: number;
3312
3245
 
3313
3246
  /**
3314
- * The properties of the asset, content may depend on the kind of asset returned
3247
+ * A textual description / keywords describing the object of interest.
3315
3248
  */
3316
- export interface Properties {
3317
- size: number;
3249
+ text?: string;
3318
3250
 
3319
- /**
3320
- * Number of animation frames if animations exist
3321
- */
3322
- animationFrameCount?: number;
3251
+ /**
3252
+ * The asset to convert in texture maps. Must reference an existing AssetId.
3253
+ */
3254
+ texture?: string;
3323
3255
 
3324
- /**
3325
- * Bitrate of the media in bits per second
3326
- */
3327
- bitrate?: number;
3256
+ /**
3257
+ * The thumbnail of the canvas
3258
+ */
3259
+ thumbnail?: Metadata.Thumbnail;
3328
3260
 
3329
- /**
3330
- * Number of bones if skeleton exists
3331
- */
3332
- boneCount?: number;
3261
+ /**
3262
+ * If set to true, during the upscaling process, the model will match tiles of the
3263
+ * source image with tiles of the style image(s). This will result in a more
3264
+ * coherent restyle. Works best with style images that have a similar composition.
3265
+ */
3266
+ tileStyle?: boolean;
3333
3267
 
3334
- /**
3335
- * Number of channels of the audio
3336
- */
3337
- channels?: number;
3268
+ trainingImage?: boolean;
3338
3269
 
3339
- /**
3340
- * Classification of the audio
3341
- */
3342
- classification?: 'effect' | 'interview' | 'music' | 'other' | 'sound' | 'speech' | 'text' | 'unknown';
3270
+ /**
3271
+ * (deprecated) Vertical expansion ratio.
3272
+ */
3273
+ verticalExpansionRatio?: number;
3343
3274
 
3344
- /**
3345
- * Codec name of the media
3346
- */
3347
- codecName?: string;
3275
+ /**
3276
+ * The width of the rendered image.
3277
+ */
3278
+ width?: number;
3279
+ }
3348
3280
 
3281
+ export namespace Metadata {
3282
+ export interface Concept {
3349
3283
  /**
3350
- * Description of the audio
3284
+ * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
3351
3285
  */
3352
- description?: string;
3286
+ modelId: string;
3353
3287
 
3354
3288
  /**
3355
- * Bounding box dimensions [width, height, depth]
3289
+ * The scale of the model (example: 1.0) For Flux Kontext Prompt Editing, the scale
3290
+ * is between 0 and 2.
3356
3291
  */
3357
- dimensions?: Array<number>;
3292
+ scale: number;
3358
3293
 
3359
3294
  /**
3360
- * Duration of the media in seconds
3295
+ * The epoch of the model (example: "000001") Only available for Flux Lora Trained
3296
+ * models
3361
3297
  */
3362
- duration?: number;
3298
+ modelEpoch?: string;
3299
+ }
3363
3300
 
3301
+ /**
3302
+ * The thumbnail of the canvas
3303
+ */
3304
+ export interface Thumbnail {
3364
3305
  /**
3365
- * Number of faces/triangles in the mesh
3306
+ * The AssetId of the image used as a thumbnail for the canvas (example:
3307
+ * "asset_GTrL3mq4SXWyMxkOHRxlpw")
3366
3308
  */
3367
- faceCount?: number;
3309
+ assetId: string;
3368
3310
 
3369
3311
  /**
3370
- * Format of the mesh file (e.g. 'glb', etc.)
3312
+ * The url of the image used as a thumbnail for the canvas
3371
3313
  */
3372
- format?: string;
3314
+ url: string;
3315
+ }
3316
+ }
3373
3317
 
3374
- /**
3375
- * Frame rate of the video in frames per second
3376
- */
3377
- frameRate?: number;
3318
+ /**
3319
+ * The properties of the asset, content may depend on the kind of asset returned
3320
+ */
3321
+ export interface Properties {
3322
+ size: number;
3378
3323
 
3379
- /**
3380
- * Whether the mesh has animations
3381
- */
3382
- hasAnimations?: boolean;
3324
+ /**
3325
+ * Number of animation frames if animations exist
3326
+ */
3327
+ animationFrameCount?: number;
3383
3328
 
3384
- /**
3385
- * Whether the mesh has normal vectors
3386
- */
3387
- hasNormals?: boolean;
3329
+ /**
3330
+ * Bitrate of the media in bits per second
3331
+ */
3332
+ bitrate?: number;
3388
3333
 
3389
- /**
3390
- * Whether the mesh has bones/skeleton
3391
- */
3392
- hasSkeleton?: boolean;
3334
+ /**
3335
+ * Number of bones if skeleton exists
3336
+ */
3337
+ boneCount?: number;
3393
3338
 
3394
- /**
3395
- * Whether the mesh has UV coordinates
3396
- */
3397
- hasUVs?: boolean;
3339
+ /**
3340
+ * Number of channels of the audio
3341
+ */
3342
+ channels?: number;
3398
3343
 
3399
- height?: number;
3344
+ /**
3345
+ * Classification of the audio
3346
+ */
3347
+ classification?: 'effect' | 'interview' | 'music' | 'other' | 'sound' | 'speech' | 'text' | 'unknown';
3400
3348
 
3401
- /**
3402
- * Number of frames in the video
3403
- */
3404
- nbFrames?: number;
3349
+ /**
3350
+ * Codec name of the media
3351
+ */
3352
+ codecName?: string;
3405
3353
 
3406
- /**
3407
- * Sample rate of the media in Hz
3408
- */
3409
- sampleRate?: number;
3354
+ /**
3355
+ * Description of the audio
3356
+ */
3357
+ description?: string;
3410
3358
 
3411
- /**
3412
- * Transcription of the audio
3413
- */
3414
- transcription?: Properties.Transcription;
3359
+ /**
3360
+ * Bounding box dimensions [width, height, depth]
3361
+ */
3362
+ dimensions?: Array<number>;
3415
3363
 
3416
- /**
3417
- * Number of vertices in the mesh
3418
- */
3419
- vertexCount?: number;
3364
+ /**
3365
+ * Duration of the media in seconds
3366
+ */
3367
+ duration?: number;
3420
3368
 
3421
- width?: number;
3422
- }
3369
+ /**
3370
+ * Number of faces/triangles in the mesh
3371
+ */
3372
+ faceCount?: number;
3423
3373
 
3424
- export namespace Properties {
3425
- /**
3426
- * Transcription of the audio
3427
- */
3428
- export interface Transcription {
3429
- text: string;
3430
- }
3431
- }
3374
+ /**
3375
+ * Format of the mesh file (e.g. 'glb', etc.)
3376
+ */
3377
+ format?: string;
3432
3378
 
3433
3379
  /**
3434
- * The video asset's first frame.
3435
- *
3436
- * Contains the assetId and the url of the first frame.
3380
+ * Frame rate of the video in frames per second
3437
3381
  */
3438
- export interface FirstFrame {
3439
- assetId: string;
3382
+ frameRate?: number;
3440
3383
 
3441
- url: string;
3442
- }
3384
+ /**
3385
+ * Whether the mesh has animations
3386
+ */
3387
+ hasAnimations?: boolean;
3443
3388
 
3444
3389
  /**
3445
- * The video asset's last frame.
3446
- *
3447
- * Contains the assetId and the url of the last frame.
3390
+ * Whether the mesh has normal vectors
3448
3391
  */
3449
- export interface LastFrame {
3450
- assetId: string;
3392
+ hasNormals?: boolean;
3451
3393
 
3452
- url: string;
3453
- }
3394
+ /**
3395
+ * Whether the mesh has bones/skeleton
3396
+ */
3397
+ hasSkeleton?: boolean;
3454
3398
 
3455
3399
  /**
3456
- * The asset's preview.
3457
- *
3458
- * Contains the assetId and the url of the preview.
3400
+ * Whether the mesh has UV coordinates
3459
3401
  */
3460
- export interface Preview {
3461
- assetId: string;
3402
+ hasUVs?: boolean;
3462
3403
 
3463
- url: string;
3464
- }
3404
+ height?: number;
3465
3405
 
3466
3406
  /**
3467
- * The asset's thumbnail.
3468
- *
3469
- * Contains the assetId and the url of the thumbnail.
3407
+ * Number of frames in the video
3470
3408
  */
3471
- export interface Thumbnail {
3472
- assetId: string;
3409
+ nbFrames?: number;
3473
3410
 
3474
- url: string;
3411
+ /**
3412
+ * Sample rate of the media in Hz
3413
+ */
3414
+ sampleRate?: number;
3415
+
3416
+ /**
3417
+ * Transcription of the audio
3418
+ */
3419
+ transcription?: Properties.Transcription;
3420
+
3421
+ /**
3422
+ * Number of vertices in the mesh
3423
+ */
3424
+ vertexCount?: number;
3425
+
3426
+ width?: number;
3427
+ }
3428
+
3429
+ export namespace Properties {
3430
+ /**
3431
+ * Transcription of the audio
3432
+ */
3433
+ export interface Transcription {
3434
+ text: string;
3475
3435
  }
3476
3436
  }
3437
+
3438
+ /**
3439
+ * The video asset's first frame.
3440
+ *
3441
+ * Contains the assetId and the url of the first frame.
3442
+ */
3443
+ export interface FirstFrame {
3444
+ assetId: string;
3445
+
3446
+ url: string;
3447
+ }
3448
+
3449
+ /**
3450
+ * The video asset's last frame.
3451
+ *
3452
+ * Contains the assetId and the url of the last frame.
3453
+ */
3454
+ export interface LastFrame {
3455
+ assetId: string;
3456
+
3457
+ url: string;
3458
+ }
3459
+
3460
+ /**
3461
+ * The asset's preview.
3462
+ *
3463
+ * Contains the assetId and the url of the preview.
3464
+ */
3465
+ export interface Preview {
3466
+ assetId: string;
3467
+
3468
+ url: string;
3469
+ }
3470
+
3471
+ /**
3472
+ * The asset's thumbnail.
3473
+ *
3474
+ * Contains the assetId and the url of the thumbnail.
3475
+ */
3476
+ export interface Thumbnail {
3477
+ assetId: string;
3478
+
3479
+ url: string;
3480
+ }
3477
3481
  }
3478
3482
 
3479
3483
  export type AssetDeleteMultipleResponse = unknown;
@@ -5703,24 +5707,13 @@ export namespace AssetGetBulkResponse {
5703
5707
  }
5704
5708
 
5705
5709
  export interface AssetListSnapshotsResponse {
5706
- snapshots: Array<AssetListSnapshotsResponse.Snapshot>;
5707
-
5708
- /**
5709
- * A token to query the next page of snapshots
5710
- */
5711
- nextPaginationToken?: string;
5712
- }
5713
-
5714
- export namespace AssetListSnapshotsResponse {
5715
- export interface Snapshot {
5716
- authorId: string;
5710
+ authorId: string;
5717
5711
 
5718
- hash: string;
5712
+ hash: string;
5719
5713
 
5720
- rawData: string;
5714
+ rawData: string;
5721
5715
 
5722
- takenAt: number;
5723
- }
5716
+ takenAt: number;
5724
5717
  }
5725
5718
 
5726
5719
  export interface AssetLockResponse {
@@ -10078,7 +10071,7 @@ export interface AssetUpdateParams {
10078
10071
  thumbnail?: string;
10079
10072
  }
10080
10073
 
10081
- export interface AssetListParams {
10074
+ export interface AssetListParams extends AssetsCursorParams {
10082
10075
  /**
10083
10076
  * List assets generated by a specific author (the user that created the asset)
10084
10077
  */
@@ -10120,11 +10113,6 @@ export interface AssetListParams {
10120
10113
  */
10121
10114
  pageSize?: number;
10122
10115
 
10123
- /**
10124
- * A token you received in a previous request to query the next page of items
10125
- */
10126
- paginationToken?: string;
10127
-
10128
10116
  /**
10129
10117
  * List all the children assets that were generated from a specific parent asset
10130
10118
  */
@@ -10395,17 +10383,12 @@ export interface AssetGetBulkParams {
10395
10383
  assetIds?: Array<string>;
10396
10384
  }
10397
10385
 
10398
- export interface AssetListSnapshotsParams {
10386
+ export interface AssetListSnapshotsParams extends SnapshotsCursorParams {
10399
10387
  /**
10400
10388
  * The number of items to return in the response. The default value is 10, maximum
10401
10389
  * value is 100, minimum value is 10
10402
10390
  */
10403
10391
  pageSize?: number;
10404
-
10405
- /**
10406
- * A token you received in a previous request to query the next page of items
10407
- */
10408
- paginationToken?: string;
10409
10392
  }
10410
10393
 
10411
10394
  export interface AssetLockParams {
@@ -10519,6 +10502,8 @@ export declare namespace Assets {
10519
10502
  type AssetUnlockResponse as AssetUnlockResponse,
10520
10503
  type AssetUpdateTagsResponse as AssetUpdateTagsResponse,
10521
10504
  type AssetUploadResponse as AssetUploadResponse,
10505
+ type AssetListResponsesAssetsCursor as AssetListResponsesAssetsCursor,
10506
+ type AssetListSnapshotsResponsesSnapshotsCursor as AssetListSnapshotsResponsesSnapshotsCursor,
10522
10507
  type AssetRetrieveParams as AssetRetrieveParams,
10523
10508
  type AssetUpdateParams as AssetUpdateParams,
10524
10509
  type AssetListParams as AssetListParams,