@scenario-labs/sdk 2.4.0-alpha.1 → 2.5.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 (141) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +26 -0
  3. package/client.d.mts +1 -1
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +1 -1
  6. package/client.d.ts.map +1 -1
  7. package/lib/cel/environment.d.mts +38 -0
  8. package/lib/cel/environment.d.mts.map +1 -0
  9. package/lib/cel/environment.d.ts +38 -0
  10. package/lib/cel/environment.d.ts.map +1 -0
  11. package/lib/cel/environment.js +52 -0
  12. package/lib/cel/environment.js.map +1 -0
  13. package/lib/cel/environment.mjs +48 -0
  14. package/lib/cel/environment.mjs.map +1 -0
  15. package/lib/cel/functions.d.mts +4 -0
  16. package/lib/cel/functions.d.mts.map +1 -0
  17. package/lib/cel/functions.d.ts +4 -0
  18. package/lib/cel/functions.d.ts.map +1 -0
  19. package/lib/cel/functions.js +67 -0
  20. package/lib/cel/functions.js.map +1 -0
  21. package/lib/cel/functions.mjs +64 -0
  22. package/lib/cel/functions.mjs.map +1 -0
  23. package/lib/cel/index.d.mts +3 -0
  24. package/lib/cel/index.d.mts.map +1 -0
  25. package/lib/cel/index.d.ts +3 -0
  26. package/lib/cel/index.d.ts.map +1 -0
  27. package/lib/cel/index.js +9 -0
  28. package/lib/cel/index.js.map +1 -0
  29. package/lib/cel/index.mjs +3 -0
  30. package/lib/cel/index.mjs.map +1 -0
  31. package/lib/cel/prng.d.mts +28 -0
  32. package/lib/cel/prng.d.mts.map +1 -0
  33. package/lib/cel/prng.d.ts +28 -0
  34. package/lib/cel/prng.d.ts.map +1 -0
  35. package/lib/cel/prng.js +64 -0
  36. package/lib/cel/prng.js.map +1 -0
  37. package/lib/cel/prng.mjs +58 -0
  38. package/lib/cel/prng.mjs.map +1 -0
  39. package/lib/workflow_converter.d.mts +3 -0
  40. package/lib/workflow_converter.d.mts.map +1 -1
  41. package/lib/workflow_converter.d.ts +3 -0
  42. package/lib/workflow_converter.d.ts.map +1 -1
  43. package/lib/workflow_converter.js +62 -34
  44. package/lib/workflow_converter.js.map +1 -1
  45. package/lib/workflow_converter.mjs +62 -34
  46. package/lib/workflow_converter.mjs.map +1 -1
  47. package/package.json +17 -2
  48. package/resources/assets/assets.d.mts +269 -31
  49. package/resources/assets/assets.d.mts.map +1 -1
  50. package/resources/assets/assets.d.ts +269 -31
  51. package/resources/assets/assets.d.ts.map +1 -1
  52. package/resources/assets/assets.js.map +1 -1
  53. package/resources/assets/assets.mjs.map +1 -1
  54. package/resources/generate.d.mts +157 -51
  55. package/resources/generate.d.mts.map +1 -1
  56. package/resources/generate.d.ts +157 -51
  57. package/resources/generate.d.ts.map +1 -1
  58. package/resources/generate.js +1 -5
  59. package/resources/generate.js.map +1 -1
  60. package/resources/generate.mjs +1 -5
  61. package/resources/generate.mjs.map +1 -1
  62. package/resources/index.d.mts +1 -1
  63. package/resources/index.d.mts.map +1 -1
  64. package/resources/index.d.ts +1 -1
  65. package/resources/index.d.ts.map +1 -1
  66. package/resources/jobs.d.mts +30 -12
  67. package/resources/jobs.d.mts.map +1 -1
  68. package/resources/jobs.d.ts +30 -12
  69. package/resources/jobs.d.ts.map +1 -1
  70. package/resources/models/description.d.mts +62 -4
  71. package/resources/models/description.d.mts.map +1 -1
  72. package/resources/models/description.d.ts +62 -4
  73. package/resources/models/description.d.ts.map +1 -1
  74. package/resources/models/examples.d.mts +94 -64
  75. package/resources/models/examples.d.mts.map +1 -1
  76. package/resources/models/examples.d.ts +94 -64
  77. package/resources/models/examples.d.ts.map +1 -1
  78. package/resources/models/models.d.mts +239 -295
  79. package/resources/models/models.d.mts.map +1 -1
  80. package/resources/models/models.d.ts +239 -295
  81. package/resources/models/models.d.ts.map +1 -1
  82. package/resources/models/models.js.map +1 -1
  83. package/resources/models/models.mjs.map +1 -1
  84. package/resources/models/train.d.mts +92 -110
  85. package/resources/models/train.d.mts.map +1 -1
  86. package/resources/models/train.d.ts +92 -110
  87. package/resources/models/train.d.ts.map +1 -1
  88. package/resources/search.d.mts +2 -2
  89. package/resources/search.d.ts +2 -2
  90. package/resources/uploads.d.mts +2 -3
  91. package/resources/uploads.d.mts.map +1 -1
  92. package/resources/uploads.d.ts +2 -3
  93. package/resources/uploads.d.ts.map +1 -1
  94. package/resources/usages.d.mts +44 -15
  95. package/resources/usages.d.mts.map +1 -1
  96. package/resources/usages.d.ts +44 -15
  97. package/resources/usages.d.ts.map +1 -1
  98. package/resources/workflows.d.mts +63 -45
  99. package/resources/workflows.d.mts.map +1 -1
  100. package/resources/workflows.d.ts +63 -45
  101. package/resources/workflows.d.ts.map +1 -1
  102. package/resources/workflows.js +4 -4
  103. package/resources/workflows.js.map +1 -1
  104. package/resources/workflows.mjs +4 -4
  105. package/resources/workflows.mjs.map +1 -1
  106. package/src/client.ts +1 -1
  107. package/src/lib/cel/environment.ts +81 -0
  108. package/src/lib/cel/functions.ts +109 -0
  109. package/src/lib/cel/index.ts +8 -0
  110. package/src/lib/cel/prng.ts +62 -0
  111. package/src/lib/workflow_converter.ts +91 -35
  112. package/src/resources/assets/assets.ts +300 -62
  113. package/src/resources/generate.ts +157 -129
  114. package/src/resources/index.ts +1 -1
  115. package/src/resources/jobs.ts +27 -37
  116. package/src/resources/models/description.ts +70 -12
  117. package/src/resources/models/examples.ts +100 -88
  118. package/src/resources/models/models.ts +228 -385
  119. package/src/resources/models/train.ts +89 -139
  120. package/src/resources/search.ts +2 -2
  121. package/src/resources/uploads.ts +2 -3
  122. package/src/resources/usages.ts +47 -20
  123. package/src/resources/workflows.ts +48 -157
  124. package/src/tools/cel.ts +4 -0
  125. package/src/version.ts +1 -1
  126. package/tools/cel.d.mts +2 -0
  127. package/tools/cel.d.mts.map +1 -0
  128. package/tools/cel.d.ts +2 -0
  129. package/tools/cel.d.ts.map +1 -0
  130. package/tools/cel.js +8 -0
  131. package/tools/cel.js.map +1 -0
  132. package/tools/cel.mjs +5 -0
  133. package/tools/cel.mjs.map +1 -0
  134. package/version.d.mts +1 -1
  135. package/version.d.mts.map +1 -1
  136. package/version.d.ts +1 -1
  137. package/version.d.ts.map +1 -1
  138. package/version.js +1 -1
  139. package/version.js.map +1 -1
  140. package/version.mjs +1 -1
  141. package/version.mjs.map +1 -1
@@ -187,7 +187,7 @@ export namespace SearchAssetSearchResponse {
187
187
  modelId?: string;
188
188
 
189
189
  /**
190
- * Type of model used for generation (e.g., "sd-1_5", "flux.1")
190
+ * Type of model used for generation (e.g., "flux.1", "flux.1-lora")
191
191
  */
192
192
  modelType?: string;
193
193
 
@@ -363,7 +363,7 @@ export interface SearchModelSearchResponse {
363
363
  trainingImagesNumber: number;
364
364
 
365
365
  /**
366
- * Type of the model (e.g., "sd-1_5", "flux.1")
366
+ * Type of the model (e.g., "flux.1", "flux.1-lora")
367
367
  */
368
368
  type: string;
369
369
 
@@ -303,9 +303,8 @@ export interface UploadCreateParams {
303
303
  fileSize?: number;
304
304
 
305
305
  /**
306
- * The huggingface.co modelName (example:
307
- * "stabilityai/stable-diffusion-xl-base-1.0"). No need to setup other fields if
308
- * you setup huggingFaceModelName
306
+ * The huggingface.co modelName (example: "black-forest-labs/FLUX.1-dev"). No need
307
+ * to setup other fields if you setup huggingFaceModelName
309
308
  */
310
309
  huggingFaceModelName?: string;
311
310
 
@@ -103,6 +103,7 @@ export namespace UsageListResponse {
103
103
  | 'inference'
104
104
  | 'inpaint'
105
105
  | 'inpaint-ip-adapter'
106
+ | 'ip-detection'
106
107
  | 'model'
107
108
  | 'model-preset'
108
109
  | 'models-training'
@@ -258,7 +259,7 @@ export namespace UsageListResponse {
258
259
  */
259
260
  export interface Consumption {
260
261
  /**
261
- * The Creative Units discount for the user
262
+ * The Compute Units discount for the user
262
263
  */
263
264
  discount: number;
264
265
 
@@ -336,6 +337,7 @@ export namespace UsageListResponse {
336
337
  | 'image-prompt-editing'
337
338
  | 'img23d'
338
339
  | 'img2img'
340
+ | 'img2splat'
339
341
  | 'img2txt'
340
342
  | 'img2video'
341
343
  | 'inference-control-net'
@@ -426,6 +428,7 @@ export namespace UsageListResponse {
426
428
  | 'image-prompt-editing'
427
429
  | 'img23d'
428
430
  | 'img2img'
431
+ | 'img2splat'
429
432
  | 'img2txt'
430
433
  | 'img2video'
431
434
  | 'inference-controlnet'
@@ -508,6 +511,18 @@ export namespace UsageListResponse {
508
511
  */
509
512
  boneCount?: number;
510
513
 
514
+ /**
515
+ * Recommended preview camera mode emitted by the generator (gsplat route); passed
516
+ * through to mesh-rendering verbatim.
517
+ */
518
+ cameraMode?: 'aerial' | 'interior' | 'turntable';
519
+
520
+ /**
521
+ * Recommended preview camera path emitted by the generator (gsplat route); passed
522
+ * through to mesh-rendering verbatim.
523
+ */
524
+ cameraTrajectory?: Array<Properties.CameraTrajectory>;
525
+
511
526
  /**
512
527
  * Number of channels of the audio
513
528
  */
@@ -628,6 +643,28 @@ export namespace UsageListResponse {
628
643
  }
629
644
 
630
645
  export namespace Properties {
646
+ /**
647
+ * One explicit camera keyframe for the splat route. Several are interpolated over
648
+ * the requested frames into an orbit/fly-through; a single keyframe renders a
649
+ * static view. Overrides {@link SplatCameraMode} when provided.
650
+ */
651
+ export interface CameraTrajectory {
652
+ /**
653
+ * Camera eye position in the splat's world frame.
654
+ */
655
+ position: Array<unknown>;
656
+
657
+ /**
658
+ * Look-at point in the splat's world frame.
659
+ */
660
+ target: Array<unknown>;
661
+
662
+ /**
663
+ * Vertical field of view in degrees (defaults to 50 in the renderer).
664
+ */
665
+ fov?: number;
666
+ }
667
+
631
668
  /**
632
669
  * Transcription of the audio
633
670
  */
@@ -690,6 +727,7 @@ export namespace UsageListResponse {
690
727
  | 'skybox-base-360'
691
728
  | 'skybox-hdri'
692
729
  | 'skybox-upscale-360'
730
+ | 'splat'
693
731
  | 'texture'
694
732
  | 'translate'
695
733
  | 'upload'
@@ -1066,12 +1104,6 @@ export namespace UsageListResponse {
1066
1104
  | 'qwen-image-edit-2511-lora'
1067
1105
  | 'qwen-image-edit-lora'
1068
1106
  | 'qwen-image-lora'
1069
- | 'sd-1_5'
1070
- | 'sd-1_5-composition'
1071
- | 'sd-1_5-lora'
1072
- | 'sd-xl'
1073
- | 'sd-xl-composition'
1074
- | 'sd-xl-lora'
1075
1107
  | 'zimage-de-turbo-lora'
1076
1108
  | 'zimage-lora'
1077
1109
  | 'zimage-turbo-lora'
@@ -1299,12 +1331,6 @@ export namespace UsageListResponse {
1299
1331
  | 'qwen-image-edit-2511-lora'
1300
1332
  | 'qwen-image-edit-lora'
1301
1333
  | 'qwen-image-lora'
1302
- | 'sd-1_5'
1303
- | 'sd-1_5-composition'
1304
- | 'sd-1_5-lora'
1305
- | 'sd-xl'
1306
- | 'sd-xl-composition'
1307
- | 'sd-xl-lora'
1308
1334
  | 'zimage-de-turbo-lora'
1309
1335
  | 'zimage-lora'
1310
1336
  | 'zimage-turbo-lora'
@@ -1746,6 +1772,7 @@ export namespace UsageListResponse {
1746
1772
  | 'detection'
1747
1773
  | 'image-prompt-editing'
1748
1774
  | 'images-generation'
1775
+ | 'ip-detection'
1749
1776
  | 'models-training'
1750
1777
  | 'patch'
1751
1778
  | 'pixelate'
@@ -1778,26 +1805,26 @@ export namespace UsageListResponse {
1778
1805
  value: string;
1779
1806
 
1780
1807
  /**
1781
- * Cost in Creative Units for the point restricted to API-key calls (mirrors the
1808
+ * Cost in Compute Units for the point restricted to API-key calls (mirrors the
1782
1809
  * `apiKey` value field but on the cost axis).
1783
1810
  */
1784
1811
  apiKeyCost?: number;
1785
1812
 
1786
1813
  /**
1787
- * Discount in Creative Units for the point restricted to API-key calls.
1814
+ * Discount in Compute Units for the point restricted to API-key calls.
1788
1815
  */
1789
1816
  apiKeyDiscount?: number;
1790
1817
 
1791
1818
  /**
1792
- * Cost in Creative Units (sum of `creativeUnitsCost`) for the point. Only
1793
- * populated for usage actions that carry a CU cost (generations, trainings, etc.).
1794
- * Free actions like `delete-asset` or `tag-asset` will report `0`.
1819
+ * Cost in Compute Units for the point. Only populated for usage actions that carry
1820
+ * a CU cost (generations, trainings, etc.). Free actions like `delete-asset` or
1821
+ * `tag-asset` will report `0`.
1795
1822
  */
1796
1823
  cost?: number;
1797
1824
 
1798
1825
  /**
1799
- * Discount applied in Creative Units (sum of `creativeUnitsDiscount`) for the
1800
- * point. Only populated for usage actions that carry a CU discount.
1826
+ * Discount applied in Compute Units for the point. Only populated for usage
1827
+ * actions that carry a CU discount.
1801
1828
  */
1802
1829
  discount?: number;
1803
1830
  }
@@ -52,11 +52,6 @@ export class Workflows extends APIResource {
52
52
  return this._client.delete(path`/workflows/${workflowID}`, options);
53
53
  }
54
54
 
55
- /**
56
- * @deprecated Use `userApproval()` instead
57
- */
58
- approveUser = this.userApproval;
59
-
60
55
  /**
61
56
  * Get all unique tags from workflows in a project (all privacy levels). Optionally
62
57
  * filter by status.
@@ -97,6 +92,11 @@ export class Workflows extends APIResource {
97
92
  ): APIPromise<WorkflowUserApprovalResponse> {
98
93
  return this._client.put(path`/workflows/${workflowID}/user-approval`, { body, ...options });
99
94
  }
95
+
96
+ /**
97
+ * @deprecated Use `userApproval()` instead
98
+ */
99
+ approveUser = this.userApproval;
100
100
  }
101
101
 
102
102
  export type WorkflowListResponsesWorkflowsCursor = WorkflowsCursor<WorkflowListResponse>;
@@ -505,12 +505,6 @@ export namespace WorkflowCreateResponse {
505
505
  | 'qwen-image-edit-2511-lora'
506
506
  | 'qwen-image-edit-lora'
507
507
  | 'qwen-image-lora'
508
- | 'sd-1_5'
509
- | 'sd-1_5-composition'
510
- | 'sd-1_5-lora'
511
- | 'sd-xl'
512
- | 'sd-xl-composition'
513
- | 'sd-xl-lora'
514
508
  | 'zimage-de-turbo-lora'
515
509
  | 'zimage-lora'
516
510
  | 'zimage-turbo-lora'
@@ -738,12 +732,6 @@ export namespace WorkflowCreateResponse {
738
732
  | 'qwen-image-edit-2511-lora'
739
733
  | 'qwen-image-edit-lora'
740
734
  | 'qwen-image-lora'
741
- | 'sd-1_5'
742
- | 'sd-1_5-composition'
743
- | 'sd-1_5-lora'
744
- | 'sd-xl'
745
- | 'sd-xl-composition'
746
- | 'sd-xl-lora'
747
735
  | 'zimage-de-turbo-lora'
748
736
  | 'zimage-lora'
749
737
  | 'zimage-turbo-lora'
@@ -1153,12 +1141,6 @@ export namespace WorkflowCreateResponse {
1153
1141
  | 'qwen-image-edit-2511-lora'
1154
1142
  | 'qwen-image-edit-lora'
1155
1143
  | 'qwen-image-lora'
1156
- | 'sd-1_5'
1157
- | 'sd-1_5-composition'
1158
- | 'sd-1_5-lora'
1159
- | 'sd-xl'
1160
- | 'sd-xl-composition'
1161
- | 'sd-xl-lora'
1162
1144
  | 'zimage-de-turbo-lora'
1163
1145
  | 'zimage-lora'
1164
1146
  | 'zimage-turbo-lora'
@@ -1831,12 +1813,6 @@ export namespace WorkflowRetrieveResponse {
1831
1813
  | 'qwen-image-edit-2511-lora'
1832
1814
  | 'qwen-image-edit-lora'
1833
1815
  | 'qwen-image-lora'
1834
- | 'sd-1_5'
1835
- | 'sd-1_5-composition'
1836
- | 'sd-1_5-lora'
1837
- | 'sd-xl'
1838
- | 'sd-xl-composition'
1839
- | 'sd-xl-lora'
1840
1816
  | 'zimage-de-turbo-lora'
1841
1817
  | 'zimage-lora'
1842
1818
  | 'zimage-turbo-lora'
@@ -2064,12 +2040,6 @@ export namespace WorkflowRetrieveResponse {
2064
2040
  | 'qwen-image-edit-2511-lora'
2065
2041
  | 'qwen-image-edit-lora'
2066
2042
  | 'qwen-image-lora'
2067
- | 'sd-1_5'
2068
- | 'sd-1_5-composition'
2069
- | 'sd-1_5-lora'
2070
- | 'sd-xl'
2071
- | 'sd-xl-composition'
2072
- | 'sd-xl-lora'
2073
2043
  | 'zimage-de-turbo-lora'
2074
2044
  | 'zimage-lora'
2075
2045
  | 'zimage-turbo-lora'
@@ -2479,12 +2449,6 @@ export namespace WorkflowRetrieveResponse {
2479
2449
  | 'qwen-image-edit-2511-lora'
2480
2450
  | 'qwen-image-edit-lora'
2481
2451
  | 'qwen-image-lora'
2482
- | 'sd-1_5'
2483
- | 'sd-1_5-composition'
2484
- | 'sd-1_5-lora'
2485
- | 'sd-xl'
2486
- | 'sd-xl-composition'
2487
- | 'sd-xl-lora'
2488
2452
  | 'zimage-de-turbo-lora'
2489
2453
  | 'zimage-lora'
2490
2454
  | 'zimage-turbo-lora'
@@ -3157,12 +3121,6 @@ export namespace WorkflowUpdateResponse {
3157
3121
  | 'qwen-image-edit-2511-lora'
3158
3122
  | 'qwen-image-edit-lora'
3159
3123
  | 'qwen-image-lora'
3160
- | 'sd-1_5'
3161
- | 'sd-1_5-composition'
3162
- | 'sd-1_5-lora'
3163
- | 'sd-xl'
3164
- | 'sd-xl-composition'
3165
- | 'sd-xl-lora'
3166
3124
  | 'zimage-de-turbo-lora'
3167
3125
  | 'zimage-lora'
3168
3126
  | 'zimage-turbo-lora'
@@ -3390,12 +3348,6 @@ export namespace WorkflowUpdateResponse {
3390
3348
  | 'qwen-image-edit-2511-lora'
3391
3349
  | 'qwen-image-edit-lora'
3392
3350
  | 'qwen-image-lora'
3393
- | 'sd-1_5'
3394
- | 'sd-1_5-composition'
3395
- | 'sd-1_5-lora'
3396
- | 'sd-xl'
3397
- | 'sd-xl-composition'
3398
- | 'sd-xl-lora'
3399
3351
  | 'zimage-de-turbo-lora'
3400
3352
  | 'zimage-lora'
3401
3353
  | 'zimage-turbo-lora'
@@ -3805,12 +3757,6 @@ export namespace WorkflowUpdateResponse {
3805
3757
  | 'qwen-image-edit-2511-lora'
3806
3758
  | 'qwen-image-edit-lora'
3807
3759
  | 'qwen-image-lora'
3808
- | 'sd-1_5'
3809
- | 'sd-1_5-composition'
3810
- | 'sd-1_5-lora'
3811
- | 'sd-xl'
3812
- | 'sd-xl-composition'
3813
- | 'sd-xl-lora'
3814
3760
  | 'zimage-de-turbo-lora'
3815
3761
  | 'zimage-lora'
3816
3762
  | 'zimage-turbo-lora'
@@ -4478,12 +4424,6 @@ export namespace WorkflowListResponse {
4478
4424
  | 'qwen-image-edit-2511-lora'
4479
4425
  | 'qwen-image-edit-lora'
4480
4426
  | 'qwen-image-lora'
4481
- | 'sd-1_5'
4482
- | 'sd-1_5-composition'
4483
- | 'sd-1_5-lora'
4484
- | 'sd-xl'
4485
- | 'sd-xl-composition'
4486
- | 'sd-xl-lora'
4487
4427
  | 'zimage-de-turbo-lora'
4488
4428
  | 'zimage-lora'
4489
4429
  | 'zimage-turbo-lora'
@@ -4711,12 +4651,6 @@ export namespace WorkflowListResponse {
4711
4651
  | 'qwen-image-edit-2511-lora'
4712
4652
  | 'qwen-image-edit-lora'
4713
4653
  | 'qwen-image-lora'
4714
- | 'sd-1_5'
4715
- | 'sd-1_5-composition'
4716
- | 'sd-1_5-lora'
4717
- | 'sd-xl'
4718
- | 'sd-xl-composition'
4719
- | 'sd-xl-lora'
4720
4654
  | 'zimage-de-turbo-lora'
4721
4655
  | 'zimage-lora'
4722
4656
  | 'zimage-turbo-lora'
@@ -5126,12 +5060,6 @@ export namespace WorkflowListResponse {
5126
5060
  | 'qwen-image-edit-2511-lora'
5127
5061
  | 'qwen-image-edit-lora'
5128
5062
  | 'qwen-image-lora'
5129
- | 'sd-1_5'
5130
- | 'sd-1_5-composition'
5131
- | 'sd-1_5-lora'
5132
- | 'sd-xl'
5133
- | 'sd-xl-composition'
5134
- | 'sd-xl-lora'
5135
5063
  | 'zimage-de-turbo-lora'
5136
5064
  | 'zimage-lora'
5137
5065
  | 'zimage-turbo-lora'
@@ -5461,6 +5389,7 @@ export namespace WorkflowRunResponse {
5461
5389
  | 'skybox-base-360'
5462
5390
  | 'skybox-hdri'
5463
5391
  | 'skybox-upscale-360'
5392
+ | 'splat'
5464
5393
  | 'texture'
5465
5394
  | 'translate'
5466
5395
  | 'upload'
@@ -5868,12 +5797,6 @@ export namespace WorkflowRunResponse {
5868
5797
  | 'qwen-image-edit-2511-lora'
5869
5798
  | 'qwen-image-edit-lora'
5870
5799
  | 'qwen-image-lora'
5871
- | 'sd-1_5'
5872
- | 'sd-1_5-composition'
5873
- | 'sd-1_5-lora'
5874
- | 'sd-xl'
5875
- | 'sd-xl-composition'
5876
- | 'sd-xl-lora'
5877
5800
  | 'zimage-de-turbo-lora'
5878
5801
  | 'zimage-lora'
5879
5802
  | 'zimage-turbo-lora'
@@ -6101,12 +6024,6 @@ export namespace WorkflowRunResponse {
6101
6024
  | 'qwen-image-edit-2511-lora'
6102
6025
  | 'qwen-image-edit-lora'
6103
6026
  | 'qwen-image-lora'
6104
- | 'sd-1_5'
6105
- | 'sd-1_5-composition'
6106
- | 'sd-1_5-lora'
6107
- | 'sd-xl'
6108
- | 'sd-xl-composition'
6109
- | 'sd-xl-lora'
6110
6027
  | 'zimage-de-turbo-lora'
6111
6028
  | 'zimage-lora'
6112
6029
  | 'zimage-turbo-lora'
@@ -6372,6 +6289,13 @@ export namespace WorkflowRunResponse {
6372
6289
  cuCost: number;
6373
6290
 
6374
6291
  cuDiscount: number;
6292
+
6293
+ /**
6294
+ * When true, the credits charged for this job are not automatically refunded if
6295
+ * the generation fails, because the model used does not support refund-on-failure.
6296
+ * Absent or false means a failed generation is refunded as usual.
6297
+ */
6298
+ disableRefund?: boolean;
6375
6299
  }
6376
6300
  }
6377
6301
 
@@ -6774,12 +6698,6 @@ export namespace WorkflowRunResponse {
6774
6698
  | 'qwen-image-edit-2511-lora'
6775
6699
  | 'qwen-image-edit-lora'
6776
6700
  | 'qwen-image-lora'
6777
- | 'sd-1_5'
6778
- | 'sd-1_5-composition'
6779
- | 'sd-1_5-lora'
6780
- | 'sd-xl'
6781
- | 'sd-xl-composition'
6782
- | 'sd-xl-lora'
6783
6701
  | 'zimage-de-turbo-lora'
6784
6702
  | 'zimage-lora'
6785
6703
  | 'zimage-turbo-lora'
@@ -7007,12 +6925,6 @@ export namespace WorkflowRunResponse {
7007
6925
  | 'qwen-image-edit-2511-lora'
7008
6926
  | 'qwen-image-edit-lora'
7009
6927
  | 'qwen-image-lora'
7010
- | 'sd-1_5'
7011
- | 'sd-1_5-composition'
7012
- | 'sd-1_5-lora'
7013
- | 'sd-xl'
7014
- | 'sd-xl-composition'
7015
- | 'sd-xl-lora'
7016
6928
  | 'zimage-de-turbo-lora'
7017
6929
  | 'zimage-lora'
7018
6930
  | 'zimage-turbo-lora'
@@ -7422,12 +7334,6 @@ export namespace WorkflowRunResponse {
7422
7334
  | 'qwen-image-edit-2511-lora'
7423
7335
  | 'qwen-image-edit-lora'
7424
7336
  | 'qwen-image-lora'
7425
- | 'sd-1_5'
7426
- | 'sd-1_5-composition'
7427
- | 'sd-1_5-lora'
7428
- | 'sd-xl'
7429
- | 'sd-xl-composition'
7430
- | 'sd-xl-lora'
7431
7337
  | 'zimage-de-turbo-lora'
7432
7338
  | 'zimage-lora'
7433
7339
  | 'zimage-turbo-lora'
@@ -7747,6 +7653,7 @@ export namespace WorkflowUserApprovalResponse {
7747
7653
  | 'skybox-base-360'
7748
7654
  | 'skybox-hdri'
7749
7655
  | 'skybox-upscale-360'
7656
+ | 'splat'
7750
7657
  | 'texture'
7751
7658
  | 'translate'
7752
7659
  | 'upload'
@@ -8154,12 +8061,6 @@ export namespace WorkflowUserApprovalResponse {
8154
8061
  | 'qwen-image-edit-2511-lora'
8155
8062
  | 'qwen-image-edit-lora'
8156
8063
  | 'qwen-image-lora'
8157
- | 'sd-1_5'
8158
- | 'sd-1_5-composition'
8159
- | 'sd-1_5-lora'
8160
- | 'sd-xl'
8161
- | 'sd-xl-composition'
8162
- | 'sd-xl-lora'
8163
8064
  | 'zimage-de-turbo-lora'
8164
8065
  | 'zimage-lora'
8165
8066
  | 'zimage-turbo-lora'
@@ -8387,12 +8288,6 @@ export namespace WorkflowUserApprovalResponse {
8387
8288
  | 'qwen-image-edit-2511-lora'
8388
8289
  | 'qwen-image-edit-lora'
8389
8290
  | 'qwen-image-lora'
8390
- | 'sd-1_5'
8391
- | 'sd-1_5-composition'
8392
- | 'sd-1_5-lora'
8393
- | 'sd-xl'
8394
- | 'sd-xl-composition'
8395
- | 'sd-xl-lora'
8396
8291
  | 'zimage-de-turbo-lora'
8397
8292
  | 'zimage-lora'
8398
8293
  | 'zimage-turbo-lora'
@@ -8658,6 +8553,13 @@ export namespace WorkflowUserApprovalResponse {
8658
8553
  cuCost: number;
8659
8554
 
8660
8555
  cuDiscount: number;
8556
+
8557
+ /**
8558
+ * When true, the credits charged for this job are not automatically refunded if
8559
+ * the generation fails, because the model used does not support refund-on-failure.
8560
+ * Absent or false means a failed generation is refunded as usual.
8561
+ */
8562
+ disableRefund?: boolean;
8661
8563
  }
8662
8564
  }
8663
8565
  }
@@ -9016,12 +8918,6 @@ export namespace WorkflowUpdateParams {
9016
8918
  | 'qwen-image-edit-2511-lora'
9017
8919
  | 'qwen-image-edit-lora'
9018
8920
  | 'qwen-image-lora'
9019
- | 'sd-1_5'
9020
- | 'sd-1_5-composition'
9021
- | 'sd-1_5-lora'
9022
- | 'sd-xl'
9023
- | 'sd-xl-composition'
9024
- | 'sd-xl-lora'
9025
8921
  | 'zimage-de-turbo-lora'
9026
8922
  | 'zimage-lora'
9027
8923
  | 'zimage-turbo-lora'
@@ -9249,12 +9145,6 @@ export namespace WorkflowUpdateParams {
9249
9145
  | 'qwen-image-edit-2511-lora'
9250
9146
  | 'qwen-image-edit-lora'
9251
9147
  | 'qwen-image-lora'
9252
- | 'sd-1_5'
9253
- | 'sd-1_5-composition'
9254
- | 'sd-1_5-lora'
9255
- | 'sd-xl'
9256
- | 'sd-xl-composition'
9257
- | 'sd-xl-lora'
9258
9148
  | 'zimage-de-turbo-lora'
9259
9149
  | 'zimage-lora'
9260
9150
  | 'zimage-turbo-lora'
@@ -9664,12 +9554,6 @@ export namespace WorkflowUpdateParams {
9664
9554
  | 'qwen-image-edit-2511-lora'
9665
9555
  | 'qwen-image-edit-lora'
9666
9556
  | 'qwen-image-lora'
9667
- | 'sd-1_5'
9668
- | 'sd-1_5-composition'
9669
- | 'sd-1_5-lora'
9670
- | 'sd-xl'
9671
- | 'sd-xl-composition'
9672
- | 'sd-xl-lora'
9673
9557
  | 'zimage-de-turbo-lora'
9674
9558
  | 'zimage-lora'
9675
9559
  | 'zimage-turbo-lora'
@@ -9779,6 +9663,13 @@ export interface WorkflowListParams extends WorkflowsCursorParams {
9779
9663
  */
9780
9664
  privacy?: 'public' | 'private' | 'unlisted';
9781
9665
 
9666
+ /**
9667
+ * Sort direction applied to `updatedAt`: `asc` or `desc` (default `desc`). Public
9668
+ * listings are always ordered by `updatedAt`. Private listings honor it only when
9669
+ * a `status` is provided; without a `status` this parameter is ignored.
9670
+ */
9671
+ sortDirection?: 'asc' | 'desc';
9672
+
9782
9673
  /**
9783
9674
  * The status of the workflows to return. Only available when
9784
9675
  * privacy=private/unlisted. Default undefined value returns all statuses for
@@ -9789,7 +9680,24 @@ export interface WorkflowListParams extends WorkflowsCursorParams {
9789
9680
  tags?: unknown;
9790
9681
  }
9791
9682
 
9792
- export interface WorkflowApproveUserParams {
9683
+ export interface WorkflowGetTagsParams {
9684
+ status?: unknown;
9685
+ }
9686
+
9687
+ export interface WorkflowRunParams {
9688
+ /**
9689
+ * Body param: The request body for the workflow run must be retrieve from GET
9690
+ * /workflows/{workflowId} inputs fields
9691
+ */
9692
+ body: unknown;
9693
+
9694
+ /**
9695
+ * Query param
9696
+ */
9697
+ dryRun?: unknown;
9698
+ }
9699
+
9700
+ export interface WorkflowUserApprovalParams {
9793
9701
  /**
9794
9702
  * The ID of the user approval node to act on in the workflow
9795
9703
  */
@@ -9809,24 +9717,7 @@ export interface WorkflowApproveUserParams {
9809
9717
  action?: 'approve' | 'reject';
9810
9718
  }
9811
9719
 
9812
- export interface WorkflowGetTagsParams {
9813
- status?: unknown;
9814
- }
9815
-
9816
- export interface WorkflowRunParams {
9817
- /**
9818
- * Body param: The request body for the workflow run must be retrieve from GET
9819
- * /workflows/{workflowId} inputs fields
9820
- */
9821
- body: unknown;
9822
-
9823
- /**
9824
- * Query param
9825
- */
9826
- dryRun?: unknown;
9827
- }
9828
-
9829
- export interface WorkflowUserApprovalParams {
9720
+ export interface WorkflowApproveUserParams {
9830
9721
  /**
9831
9722
  * The ID of the user approval node to act on in the workflow
9832
9723
  */
@@ -9860,9 +9751,9 @@ export declare namespace Workflows {
9860
9751
  type WorkflowCreateParams as WorkflowCreateParams,
9861
9752
  type WorkflowUpdateParams as WorkflowUpdateParams,
9862
9753
  type WorkflowListParams as WorkflowListParams,
9863
- type WorkflowApproveUserParams as WorkflowApproveUserParams,
9864
9754
  type WorkflowGetTagsParams as WorkflowGetTagsParams,
9865
9755
  type WorkflowRunParams as WorkflowRunParams,
9866
9756
  type WorkflowUserApprovalParams as WorkflowUserApprovalParams,
9757
+ type WorkflowApproveUserParams as WorkflowApproveUserParams,
9867
9758
  };
9868
9759
  }
@@ -0,0 +1,4 @@
1
+ // Public "tools" namespace: import from '@scenario-labs/sdk/tools/cel'.
2
+ // Implementation lives in src/lib/cel/ (the Stainless generator never
3
+ // modifies src/lib/); this shim only defines the public import path.
4
+ export * from '../lib/cel/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '2.4.0-alpha.1'; // x-release-please-version
1
+ export const VERSION = '2.5.0'; // x-release-please-version
@@ -0,0 +1,2 @@
1
+ export * from "../lib/cel/index.mjs";
2
+ //# sourceMappingURL=cel.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cel.d.mts","sourceRoot":"","sources":["../src/tools/cel.ts"],"names":[],"mappings":"AAGA,qCAAiC"}
package/tools/cel.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "../lib/cel/index.js";
2
+ //# sourceMappingURL=cel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cel.d.ts","sourceRoot":"","sources":["../src/tools/cel.ts"],"names":[],"mappings":"AAGA,oCAAiC"}
package/tools/cel.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("../internal/tslib.js");
4
+ // Public "tools" namespace: import from '@scenario-labs/sdk/tools/cel'.
5
+ // Implementation lives in src/lib/cel/ (the Stainless generator never
6
+ // modifies src/lib/); this shim only defines the public import path.
7
+ tslib_1.__exportStar(require("../lib/cel/index.js"), exports);
8
+ //# sourceMappingURL=cel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cel.js","sourceRoot":"","sources":["../src/tools/cel.ts"],"names":[],"mappings":";;;AAAA,wEAAwE;AACxE,sEAAsE;AACtE,qEAAqE;AACrE,8DAAiC"}
package/tools/cel.mjs ADDED
@@ -0,0 +1,5 @@
1
+ // Public "tools" namespace: import from '@scenario-labs/sdk/tools/cel'.
2
+ // Implementation lives in src/lib/cel/ (the Stainless generator never
3
+ // modifies src/lib/); this shim only defines the public import path.
4
+ export * from "../lib/cel/index.mjs";
5
+ //# sourceMappingURL=cel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cel.mjs","sourceRoot":"","sources":["../src/tools/cel.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,sEAAsE;AACtE,qEAAqE;AACrE,qCAAiC"}
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.4.0-alpha.1";
1
+ export declare const VERSION = "2.5.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.4.0-alpha.1";
1
+ export declare const VERSION = "2.5.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '2.4.0-alpha.1'; // x-release-please-version
4
+ exports.VERSION = '2.5.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map