@scenario-labs/sdk 3.1.0 → 3.2.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 (129) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/lib/workflow_converter.d.mts +6 -0
  9. package/lib/workflow_converter.d.mts.map +1 -1
  10. package/lib/workflow_converter.d.ts +6 -0
  11. package/lib/workflow_converter.d.ts.map +1 -1
  12. package/lib/workflow_converter.js +99 -12
  13. package/lib/workflow_converter.js.map +1 -1
  14. package/lib/workflow_converter.mjs +99 -12
  15. package/lib/workflow_converter.mjs.map +1 -1
  16. package/lib/workflow_validator.d.mts +3 -1
  17. package/lib/workflow_validator.d.mts.map +1 -1
  18. package/lib/workflow_validator.d.ts +3 -1
  19. package/lib/workflow_validator.d.ts.map +1 -1
  20. package/lib/workflow_validator.js +41 -1
  21. package/lib/workflow_validator.js.map +1 -1
  22. package/lib/workflow_validator.mjs +41 -1
  23. package/lib/workflow_validator.mjs.map +1 -1
  24. package/package.json +1 -1
  25. package/resources/assets/assets.d.mts +182 -99
  26. package/resources/assets/assets.d.mts.map +1 -1
  27. package/resources/assets/assets.d.ts +182 -99
  28. package/resources/assets/assets.d.ts.map +1 -1
  29. package/resources/assets/assets.js.map +1 -1
  30. package/resources/assets/assets.mjs.map +1 -1
  31. package/resources/assets/download.d.mts +15 -0
  32. package/resources/assets/download.d.mts.map +1 -1
  33. package/resources/assets/download.d.ts +15 -0
  34. package/resources/assets/download.d.ts.map +1 -1
  35. package/resources/assets/download.js +2 -2
  36. package/resources/assets/download.js.map +1 -1
  37. package/resources/assets/download.mjs +2 -2
  38. package/resources/assets/download.mjs.map +1 -1
  39. package/resources/generate.d.mts +379 -221
  40. package/resources/generate.d.mts.map +1 -1
  41. package/resources/generate.d.ts +379 -221
  42. package/resources/generate.d.ts.map +1 -1
  43. package/resources/generate.js +2 -6
  44. package/resources/generate.js.map +1 -1
  45. package/resources/generate.mjs +2 -6
  46. package/resources/generate.mjs.map +1 -1
  47. package/resources/index.d.mts +1 -1
  48. package/resources/index.d.mts.map +1 -1
  49. package/resources/index.d.ts +1 -1
  50. package/resources/index.d.ts.map +1 -1
  51. package/resources/index.js.map +1 -1
  52. package/resources/index.mjs.map +1 -1
  53. package/resources/jobs.d.mts +77 -46
  54. package/resources/jobs.d.mts.map +1 -1
  55. package/resources/jobs.d.ts +77 -46
  56. package/resources/jobs.d.ts.map +1 -1
  57. package/resources/jobs.js +2 -6
  58. package/resources/jobs.js.map +1 -1
  59. package/resources/jobs.mjs +2 -6
  60. package/resources/jobs.mjs.map +1 -1
  61. package/resources/models/description.d.mts +18 -0
  62. package/resources/models/description.d.mts.map +1 -1
  63. package/resources/models/description.d.ts +18 -0
  64. package/resources/models/description.d.ts.map +1 -1
  65. package/resources/models/examples.d.mts +80 -46
  66. package/resources/models/examples.d.mts.map +1 -1
  67. package/resources/models/examples.d.ts +80 -46
  68. package/resources/models/examples.d.ts.map +1 -1
  69. package/resources/models/models.d.mts +131 -35
  70. package/resources/models/models.d.mts.map +1 -1
  71. package/resources/models/models.d.ts +131 -35
  72. package/resources/models/models.d.ts.map +1 -1
  73. package/resources/models/models.js +6 -2
  74. package/resources/models/models.js.map +1 -1
  75. package/resources/models/models.mjs +6 -2
  76. package/resources/models/models.mjs.map +1 -1
  77. package/resources/models/train.d.mts +78 -38
  78. package/resources/models/train.d.mts.map +1 -1
  79. package/resources/models/train.d.ts +78 -38
  80. package/resources/models/train.d.ts.map +1 -1
  81. package/resources/models/train.js +2 -2
  82. package/resources/models/train.js.map +1 -1
  83. package/resources/models/train.mjs +2 -2
  84. package/resources/models/train.mjs.map +1 -1
  85. package/resources/search.d.mts +168 -5
  86. package/resources/search.d.mts.map +1 -1
  87. package/resources/search.d.ts +168 -5
  88. package/resources/search.d.ts.map +1 -1
  89. package/resources/search.js +15 -2
  90. package/resources/search.js.map +1 -1
  91. package/resources/search.mjs +15 -2
  92. package/resources/search.mjs.map +1 -1
  93. package/resources/uploads.d.mts +13 -3
  94. package/resources/uploads.d.mts.map +1 -1
  95. package/resources/uploads.d.ts +13 -3
  96. package/resources/uploads.d.ts.map +1 -1
  97. package/resources/uploads.js +2 -2
  98. package/resources/uploads.js.map +1 -1
  99. package/resources/uploads.mjs +2 -2
  100. package/resources/uploads.mjs.map +1 -1
  101. package/resources/usages.d.mts +34 -27
  102. package/resources/usages.d.mts.map +1 -1
  103. package/resources/usages.d.ts +34 -27
  104. package/resources/usages.d.ts.map +1 -1
  105. package/resources/workflows.d.mts +283 -130
  106. package/resources/workflows.d.mts.map +1 -1
  107. package/resources/workflows.d.ts +283 -130
  108. package/resources/workflows.d.ts.map +1 -1
  109. package/src/client.ts +6 -0
  110. package/src/lib/workflow_converter.ts +126 -12
  111. package/src/lib/workflow_validator.ts +68 -1
  112. package/src/resources/assets/assets.ts +574 -99
  113. package/src/resources/assets/download.ts +19 -2
  114. package/src/resources/generate.ts +495 -236
  115. package/src/resources/index.ts +3 -0
  116. package/src/resources/jobs.ts +79 -53
  117. package/src/resources/models/description.ts +116 -0
  118. package/src/resources/models/examples.ts +178 -46
  119. package/src/resources/models/models.ts +138 -37
  120. package/src/resources/models/train.ts +82 -42
  121. package/src/resources/search.ts +218 -7
  122. package/src/resources/uploads.ts +16 -5
  123. package/src/resources/usages.ts +40 -27
  124. package/src/resources/workflows.ts +283 -130
  125. package/src/version.ts +1 -1
  126. package/version.d.mts +1 -1
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
  129. package/version.mjs +1 -1
@@ -142,8 +142,12 @@ export class Models extends APIResource {
142
142
  params: ModelDownloadParams,
143
143
  options?: RequestOptions,
144
144
  ): APIPromise<ModelDownloadResponse> {
145
- const { projectId, ...body } = params;
146
- return this._client.post(path`/models/${modelID}/download`, { query: { projectId }, body, ...options });
145
+ const { dryRun, projectId, ...body } = params;
146
+ return this._client.post(path`/models/${modelID}/download`, {
147
+ query: { dryRun, projectId },
148
+ body,
149
+ ...options,
150
+ });
147
151
  }
148
152
 
149
153
  /**
@@ -636,7 +640,9 @@ export namespace ModelCreateResponse {
636
640
  * The asset kind of the input. Only taken into account for \`file\` and
637
641
  * \`file_array\` input types. If model provides multiple kinds, the input will be
638
642
  * not able to create the asset on the flight on API side with dataurl without
639
- * data:kind, prefix
643
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
644
+ * a model does not declare one, \`image\` is returned, which is the kind used at
645
+ * generation time.
640
646
  */
641
647
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
642
648
 
@@ -664,8 +670,9 @@ export namespace ModelCreateResponse {
664
670
  maxDuration?: number;
665
671
 
666
672
  /**
667
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
668
- * \`string_array\`.
673
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
674
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
675
+ * ITEMS instead — the length of each item is not constrained.
669
676
  */
670
677
  maxLength?: number;
671
678
 
@@ -682,8 +689,9 @@ export namespace ModelCreateResponse {
682
689
  min?: number;
683
690
 
684
691
  /**
685
- * The minimum allowed length for string inputs. Also applies to each item in
686
- * \`string_array\`.
692
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
693
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
694
+ * ITEMS instead — the length of each item is not constrained.
687
695
  */
688
696
  minLength?: number;
689
697
 
@@ -1379,6 +1387,11 @@ export namespace ModelCreateResponse {
1379
1387
  */
1380
1388
  lorasComponent?: UiConfig.LorasComponent;
1381
1389
 
1390
+ /**
1391
+ * Configuration for the provider outputs exposed by `exposeOutput`
1392
+ */
1393
+ outputProperties?: { [key: string]: UiConfig.OutputProperties };
1394
+
1382
1395
  /**
1383
1396
  * Configuration for the presets
1384
1397
  */
@@ -1433,6 +1446,10 @@ export namespace ModelCreateResponse {
1433
1446
  modelIdInput?: string;
1434
1447
  }
1435
1448
 
1449
+ export interface OutputProperties {
1450
+ label: string;
1451
+ }
1452
+
1436
1453
  export interface Preset {
1437
1454
  fields: Array<string>;
1438
1455
 
@@ -1951,7 +1968,9 @@ export namespace ModelRetrieveResponse {
1951
1968
  * The asset kind of the input. Only taken into account for \`file\` and
1952
1969
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1953
1970
  * not able to create the asset on the flight on API side with dataurl without
1954
- * data:kind, prefix
1971
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1972
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1973
+ * generation time.
1955
1974
  */
1956
1975
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1957
1976
 
@@ -1979,8 +1998,9 @@ export namespace ModelRetrieveResponse {
1979
1998
  maxDuration?: number;
1980
1999
 
1981
2000
  /**
1982
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1983
- * \`string_array\`.
2001
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
2002
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2003
+ * ITEMS instead — the length of each item is not constrained.
1984
2004
  */
1985
2005
  maxLength?: number;
1986
2006
 
@@ -1997,8 +2017,9 @@ export namespace ModelRetrieveResponse {
1997
2017
  min?: number;
1998
2018
 
1999
2019
  /**
2000
- * The minimum allowed length for string inputs. Also applies to each item in
2001
- * \`string_array\`.
2020
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2021
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2022
+ * ITEMS instead — the length of each item is not constrained.
2002
2023
  */
2003
2024
  minLength?: number;
2004
2025
 
@@ -2694,6 +2715,11 @@ export namespace ModelRetrieveResponse {
2694
2715
  */
2695
2716
  lorasComponent?: UiConfig.LorasComponent;
2696
2717
 
2718
+ /**
2719
+ * Configuration for the provider outputs exposed by `exposeOutput`
2720
+ */
2721
+ outputProperties?: { [key: string]: UiConfig.OutputProperties };
2722
+
2697
2723
  /**
2698
2724
  * Configuration for the presets
2699
2725
  */
@@ -2748,6 +2774,10 @@ export namespace ModelRetrieveResponse {
2748
2774
  modelIdInput?: string;
2749
2775
  }
2750
2776
 
2777
+ export interface OutputProperties {
2778
+ label: string;
2779
+ }
2780
+
2751
2781
  export interface Preset {
2752
2782
  fields: Array<string>;
2753
2783
 
@@ -3266,7 +3296,9 @@ export namespace ModelUpdateResponse {
3266
3296
  * The asset kind of the input. Only taken into account for \`file\` and
3267
3297
  * \`file_array\` input types. If model provides multiple kinds, the input will be
3268
3298
  * not able to create the asset on the flight on API side with dataurl without
3269
- * data:kind, prefix
3299
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
3300
+ * a model does not declare one, \`image\` is returned, which is the kind used at
3301
+ * generation time.
3270
3302
  */
3271
3303
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
3272
3304
 
@@ -3294,8 +3326,9 @@ export namespace ModelUpdateResponse {
3294
3326
  maxDuration?: number;
3295
3327
 
3296
3328
  /**
3297
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
3298
- * \`string_array\`.
3329
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
3330
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
3331
+ * ITEMS instead — the length of each item is not constrained.
3299
3332
  */
3300
3333
  maxLength?: number;
3301
3334
 
@@ -3312,8 +3345,9 @@ export namespace ModelUpdateResponse {
3312
3345
  min?: number;
3313
3346
 
3314
3347
  /**
3315
- * The minimum allowed length for string inputs. Also applies to each item in
3316
- * \`string_array\`.
3348
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
3349
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
3350
+ * ITEMS instead — the length of each item is not constrained.
3317
3351
  */
3318
3352
  minLength?: number;
3319
3353
 
@@ -4009,6 +4043,11 @@ export namespace ModelUpdateResponse {
4009
4043
  */
4010
4044
  lorasComponent?: UiConfig.LorasComponent;
4011
4045
 
4046
+ /**
4047
+ * Configuration for the provider outputs exposed by `exposeOutput`
4048
+ */
4049
+ outputProperties?: { [key: string]: UiConfig.OutputProperties };
4050
+
4012
4051
  /**
4013
4052
  * Configuration for the presets
4014
4053
  */
@@ -4063,6 +4102,10 @@ export namespace ModelUpdateResponse {
4063
4102
  modelIdInput?: string;
4064
4103
  }
4065
4104
 
4105
+ export interface OutputProperties {
4106
+ label: string;
4107
+ }
4108
+
4066
4109
  export interface Preset {
4067
4110
  fields: Array<string>;
4068
4111
 
@@ -4576,7 +4619,9 @@ export namespace ModelListResponse {
4576
4619
  * The asset kind of the input. Only taken into account for \`file\` and
4577
4620
  * \`file_array\` input types. If model provides multiple kinds, the input will be
4578
4621
  * not able to create the asset on the flight on API side with dataurl without
4579
- * data:kind, prefix
4622
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
4623
+ * a model does not declare one, \`image\` is returned, which is the kind used at
4624
+ * generation time.
4580
4625
  */
4581
4626
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
4582
4627
 
@@ -4604,8 +4649,9 @@ export namespace ModelListResponse {
4604
4649
  maxDuration?: number;
4605
4650
 
4606
4651
  /**
4607
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
4608
- * \`string_array\`.
4652
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
4653
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
4654
+ * ITEMS instead — the length of each item is not constrained.
4609
4655
  */
4610
4656
  maxLength?: number;
4611
4657
 
@@ -4622,8 +4668,9 @@ export namespace ModelListResponse {
4622
4668
  min?: number;
4623
4669
 
4624
4670
  /**
4625
- * The minimum allowed length for string inputs. Also applies to each item in
4626
- * \`string_array\`.
4671
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
4672
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
4673
+ * ITEMS instead — the length of each item is not constrained.
4627
4674
  */
4628
4675
  minLength?: number;
4629
4676
 
@@ -5319,6 +5366,11 @@ export namespace ModelListResponse {
5319
5366
  */
5320
5367
  lorasComponent?: UiConfig.LorasComponent;
5321
5368
 
5369
+ /**
5370
+ * Configuration for the provider outputs exposed by `exposeOutput`
5371
+ */
5372
+ outputProperties?: { [key: string]: UiConfig.OutputProperties };
5373
+
5322
5374
  /**
5323
5375
  * Configuration for the presets
5324
5376
  */
@@ -5373,6 +5425,10 @@ export namespace ModelListResponse {
5373
5425
  modelIdInput?: string;
5374
5426
  }
5375
5427
 
5428
+ export interface OutputProperties {
5429
+ label: string;
5430
+ }
5431
+
5376
5432
  export interface Preset {
5377
5433
  fields: Array<string>;
5378
5434
 
@@ -5892,7 +5948,9 @@ export namespace ModelCopyResponse {
5892
5948
  * The asset kind of the input. Only taken into account for \`file\` and
5893
5949
  * \`file_array\` input types. If model provides multiple kinds, the input will be
5894
5950
  * not able to create the asset on the flight on API side with dataurl without
5895
- * data:kind, prefix
5951
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
5952
+ * a model does not declare one, \`image\` is returned, which is the kind used at
5953
+ * generation time.
5896
5954
  */
5897
5955
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
5898
5956
 
@@ -5920,8 +5978,9 @@ export namespace ModelCopyResponse {
5920
5978
  maxDuration?: number;
5921
5979
 
5922
5980
  /**
5923
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
5924
- * \`string_array\`.
5981
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
5982
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
5983
+ * ITEMS instead — the length of each item is not constrained.
5925
5984
  */
5926
5985
  maxLength?: number;
5927
5986
 
@@ -5938,8 +5997,9 @@ export namespace ModelCopyResponse {
5938
5997
  min?: number;
5939
5998
 
5940
5999
  /**
5941
- * The minimum allowed length for string inputs. Also applies to each item in
5942
- * \`string_array\`.
6000
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
6001
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
6002
+ * ITEMS instead — the length of each item is not constrained.
5943
6003
  */
5944
6004
  minLength?: number;
5945
6005
 
@@ -6635,6 +6695,11 @@ export namespace ModelCopyResponse {
6635
6695
  */
6636
6696
  lorasComponent?: UiConfig.LorasComponent;
6637
6697
 
6698
+ /**
6699
+ * Configuration for the provider outputs exposed by `exposeOutput`
6700
+ */
6701
+ outputProperties?: { [key: string]: UiConfig.OutputProperties };
6702
+
6638
6703
  /**
6639
6704
  * Configuration for the presets
6640
6705
  */
@@ -6689,6 +6754,10 @@ export namespace ModelCopyResponse {
6689
6754
  modelIdInput?: string;
6690
6755
  }
6691
6756
 
6757
+ export interface OutputProperties {
6758
+ label: string;
6759
+ }
6760
+
6692
6761
  export interface Preset {
6693
6762
  fields: Array<string>;
6694
6763
 
@@ -7216,7 +7285,9 @@ export namespace ModelGetBulkResponse {
7216
7285
  * The asset kind of the input. Only taken into account for \`file\` and
7217
7286
  * \`file_array\` input types. If model provides multiple kinds, the input will be
7218
7287
  * not able to create the asset on the flight on API side with dataurl without
7219
- * data:kind, prefix
7288
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
7289
+ * a model does not declare one, \`image\` is returned, which is the kind used at
7290
+ * generation time.
7220
7291
  */
7221
7292
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
7222
7293
 
@@ -7244,8 +7315,9 @@ export namespace ModelGetBulkResponse {
7244
7315
  maxDuration?: number;
7245
7316
 
7246
7317
  /**
7247
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
7248
- * \`string_array\`.
7318
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
7319
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
7320
+ * ITEMS instead — the length of each item is not constrained.
7249
7321
  */
7250
7322
  maxLength?: number;
7251
7323
 
@@ -7262,8 +7334,9 @@ export namespace ModelGetBulkResponse {
7262
7334
  min?: number;
7263
7335
 
7264
7336
  /**
7265
- * The minimum allowed length for string inputs. Also applies to each item in
7266
- * \`string_array\`.
7337
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
7338
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
7339
+ * ITEMS instead — the length of each item is not constrained.
7267
7340
  */
7268
7341
  minLength?: number;
7269
7342
 
@@ -7959,6 +8032,11 @@ export namespace ModelGetBulkResponse {
7959
8032
  */
7960
8033
  lorasComponent?: UiConfig.LorasComponent;
7961
8034
 
8035
+ /**
8036
+ * Configuration for the provider outputs exposed by `exposeOutput`
8037
+ */
8038
+ outputProperties?: { [key: string]: UiConfig.OutputProperties };
8039
+
7962
8040
  /**
7963
8041
  * Configuration for the presets
7964
8042
  */
@@ -8013,6 +8091,10 @@ export namespace ModelGetBulkResponse {
8013
8091
  modelIdInput?: string;
8014
8092
  }
8015
8093
 
8094
+ export interface OutputProperties {
8095
+ label: string;
8096
+ }
8097
+
8016
8098
  export interface Preset {
8017
8099
  fields: Array<string>;
8018
8100
 
@@ -8531,7 +8613,9 @@ export namespace ModelTransferResponse {
8531
8613
  * The asset kind of the input. Only taken into account for \`file\` and
8532
8614
  * \`file_array\` input types. If model provides multiple kinds, the input will be
8533
8615
  * not able to create the asset on the flight on API side with dataurl without
8534
- * data:kind, prefix
8616
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
8617
+ * a model does not declare one, \`image\` is returned, which is the kind used at
8618
+ * generation time.
8535
8619
  */
8536
8620
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
8537
8621
 
@@ -8559,8 +8643,9 @@ export namespace ModelTransferResponse {
8559
8643
  maxDuration?: number;
8560
8644
 
8561
8645
  /**
8562
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
8563
- * \`string_array\`.
8646
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
8647
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
8648
+ * ITEMS instead — the length of each item is not constrained.
8564
8649
  */
8565
8650
  maxLength?: number;
8566
8651
 
@@ -8577,8 +8662,9 @@ export namespace ModelTransferResponse {
8577
8662
  min?: number;
8578
8663
 
8579
8664
  /**
8580
- * The minimum allowed length for string inputs. Also applies to each item in
8581
- * \`string_array\`.
8665
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
8666
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
8667
+ * ITEMS instead — the length of each item is not constrained.
8582
8668
  */
8583
8669
  minLength?: number;
8584
8670
 
@@ -9274,6 +9360,11 @@ export namespace ModelTransferResponse {
9274
9360
  */
9275
9361
  lorasComponent?: UiConfig.LorasComponent;
9276
9362
 
9363
+ /**
9364
+ * Configuration for the provider outputs exposed by `exposeOutput`
9365
+ */
9366
+ outputProperties?: { [key: string]: UiConfig.OutputProperties };
9367
+
9277
9368
  /**
9278
9369
  * Configuration for the presets
9279
9370
  */
@@ -9328,6 +9419,10 @@ export namespace ModelTransferResponse {
9328
9419
  modelIdInput?: string;
9329
9420
  }
9330
9421
 
9422
+ export interface OutputProperties {
9423
+ label: string;
9424
+ }
9425
+
9331
9426
  export interface Preset {
9332
9427
  fields: Array<string>;
9333
9428
 
@@ -10181,6 +10276,12 @@ export interface ModelDeleteImagesParams {
10181
10276
  }
10182
10277
 
10183
10278
  export interface ModelDownloadParams {
10279
+ /**
10280
+ * Query param: Estimate the operation instead of running it: the call returns a
10281
+ * 269 response carrying the creative units cost. `api` estimates at the API tier.
10282
+ */
10283
+ dryRun?: 'true' | 'api';
10284
+
10184
10285
  /**
10185
10286
  * Query param: The projectId used for ownership resource management. Either to
10186
10287
  * assert ownership or to set the owner of the resource(s)