@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.
- package/CHANGELOG.md +92 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/lib/workflow_converter.d.mts +6 -0
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts +6 -0
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +99 -12
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +99 -12
- package/lib/workflow_converter.mjs.map +1 -1
- package/lib/workflow_validator.d.mts +3 -1
- package/lib/workflow_validator.d.mts.map +1 -1
- package/lib/workflow_validator.d.ts +3 -1
- package/lib/workflow_validator.d.ts.map +1 -1
- package/lib/workflow_validator.js +41 -1
- package/lib/workflow_validator.js.map +1 -1
- package/lib/workflow_validator.mjs +41 -1
- package/lib/workflow_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +182 -99
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +182 -99
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/download.d.mts +15 -0
- package/resources/assets/download.d.mts.map +1 -1
- package/resources/assets/download.d.ts +15 -0
- package/resources/assets/download.d.ts.map +1 -1
- package/resources/assets/download.js +2 -2
- package/resources/assets/download.js.map +1 -1
- package/resources/assets/download.mjs +2 -2
- package/resources/assets/download.mjs.map +1 -1
- package/resources/generate.d.mts +379 -221
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +379 -221
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.js +2 -6
- package/resources/generate.js.map +1 -1
- package/resources/generate.mjs +2 -6
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/jobs.d.mts +77 -46
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +77 -46
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +2 -6
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +2 -6
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +18 -0
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +18 -0
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/examples.d.mts +80 -46
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +80 -46
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/models.d.mts +131 -35
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +131 -35
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +6 -2
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +6 -2
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/train.d.mts +78 -38
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +78 -38
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.js +2 -2
- package/resources/models/train.js.map +1 -1
- package/resources/models/train.mjs +2 -2
- package/resources/models/train.mjs.map +1 -1
- package/resources/search.d.mts +168 -5
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +168 -5
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +15 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +15 -2
- package/resources/search.mjs.map +1 -1
- package/resources/uploads.d.mts +13 -3
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +13 -3
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +2 -2
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +2 -2
- package/resources/uploads.mjs.map +1 -1
- package/resources/usages.d.mts +34 -27
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +34 -27
- package/resources/usages.d.ts.map +1 -1
- package/resources/workflows.d.mts +283 -130
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +283 -130
- package/resources/workflows.d.ts.map +1 -1
- package/src/client.ts +6 -0
- package/src/lib/workflow_converter.ts +126 -12
- package/src/lib/workflow_validator.ts +68 -1
- package/src/resources/assets/assets.ts +574 -99
- package/src/resources/assets/download.ts +19 -2
- package/src/resources/generate.ts +495 -236
- package/src/resources/index.ts +3 -0
- package/src/resources/jobs.ts +79 -53
- package/src/resources/models/description.ts +116 -0
- package/src/resources/models/examples.ts +178 -46
- package/src/resources/models/models.ts +138 -37
- package/src/resources/models/train.ts +82 -42
- package/src/resources/search.ts +218 -7
- package/src/resources/uploads.ts +16 -5
- package/src/resources/usages.ts +40 -27
- package/src/resources/workflows.ts +283 -130
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -299,6 +299,64 @@ export namespace ExampleUpdateResponse {
|
|
|
299
299
|
*/
|
|
300
300
|
originalFileUrl?: string;
|
|
301
301
|
|
|
302
|
+
/**
|
|
303
|
+
* The mime type of the original file url.
|
|
304
|
+
*
|
|
305
|
+
* The original file is stored under a key that carries no extension, so this is
|
|
306
|
+
* the only way to know which format `originalFileUrl` serves (e.g. an HDRi skybox
|
|
307
|
+
* exposes a JPEG preview as `url` and its `.exr` or `.hdr` file as the original).
|
|
308
|
+
* Omitted when the stored format could not be determined.
|
|
309
|
+
*/
|
|
310
|
+
originalMimeType?:
|
|
311
|
+
| 'application/gzip'
|
|
312
|
+
| 'application/json'
|
|
313
|
+
| 'application/octet-stream'
|
|
314
|
+
| 'application/pdf'
|
|
315
|
+
| 'application/safetensors'
|
|
316
|
+
| 'application/vnd.autodesk.fbx'
|
|
317
|
+
| 'application/x-authorware-bin'
|
|
318
|
+
| 'application/x-zip-compressed'
|
|
319
|
+
| 'application/x.autodesk.fbx'
|
|
320
|
+
| 'application/zip'
|
|
321
|
+
| 'audio/m4a'
|
|
322
|
+
| 'audio/mpeg'
|
|
323
|
+
| 'audio/ogg'
|
|
324
|
+
| 'audio/wav'
|
|
325
|
+
| 'image/aces'
|
|
326
|
+
| 'image/avif'
|
|
327
|
+
| 'image/bmp'
|
|
328
|
+
| 'image/gif'
|
|
329
|
+
| 'image/heic'
|
|
330
|
+
| 'image/jpeg'
|
|
331
|
+
| 'image/png'
|
|
332
|
+
| 'image/svg+xml'
|
|
333
|
+
| 'image/tiff'
|
|
334
|
+
| 'image/vnd.radiance'
|
|
335
|
+
| 'image/webp'
|
|
336
|
+
| 'image/x-exr'
|
|
337
|
+
| 'model/glb'
|
|
338
|
+
| 'model/gltf+json'
|
|
339
|
+
| 'model/gltf-binary'
|
|
340
|
+
| 'model/ksplat'
|
|
341
|
+
| 'model/mtl'
|
|
342
|
+
| 'model/obj'
|
|
343
|
+
| 'model/ply'
|
|
344
|
+
| 'model/sog'
|
|
345
|
+
| 'model/splat'
|
|
346
|
+
| 'model/spz'
|
|
347
|
+
| 'model/stl'
|
|
348
|
+
| 'model/vnd.collada+xml'
|
|
349
|
+
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
350
|
+
| 'model/x-3d-vox'
|
|
351
|
+
| 'model/x-fbx'
|
|
352
|
+
| 'model/x-maya-ascii'
|
|
353
|
+
| 'model/x-maya-binary'
|
|
354
|
+
| 'model/x3d+xml'
|
|
355
|
+
| 'text/plain'
|
|
356
|
+
| 'video/mp4'
|
|
357
|
+
| 'video/quicktime'
|
|
358
|
+
| 'video/webm';
|
|
359
|
+
|
|
302
360
|
/**
|
|
303
361
|
* The output index of the asset within a job This index is an positive integer
|
|
304
362
|
* that starts at 0 It is used to differentiate between multiple outputs of the
|
|
@@ -314,12 +372,12 @@ export namespace ExampleUpdateResponse {
|
|
|
314
372
|
preview?: Asset.Preview;
|
|
315
373
|
|
|
316
374
|
/**
|
|
317
|
-
*
|
|
375
|
+
* Quality Gate result, computed asynchronously after generation.
|
|
318
376
|
*
|
|
319
377
|
* `details` (the per-dimension reasons and suggestions) is returned only when the
|
|
320
|
-
* asset is read with `
|
|
378
|
+
* asset is read with `withQualityGateDetails=true`.
|
|
321
379
|
*/
|
|
322
|
-
|
|
380
|
+
qualityGate?: Asset.QualityGate;
|
|
323
381
|
|
|
324
382
|
/**
|
|
325
383
|
* The asset's thumbnail.
|
|
@@ -1238,12 +1296,12 @@ export namespace ExampleUpdateResponse {
|
|
|
1238
1296
|
}
|
|
1239
1297
|
|
|
1240
1298
|
/**
|
|
1241
|
-
*
|
|
1299
|
+
* Quality Gate result, computed asynchronously after generation.
|
|
1242
1300
|
*
|
|
1243
1301
|
* `details` (the per-dimension reasons and suggestions) is returned only when the
|
|
1244
|
-
* asset is read with `
|
|
1302
|
+
* asset is read with `withQualityGateDetails=true`.
|
|
1245
1303
|
*/
|
|
1246
|
-
export interface
|
|
1304
|
+
export interface QualityGate {
|
|
1247
1305
|
/**
|
|
1248
1306
|
* ISO-8601 timestamp of when scoring ran
|
|
1249
1307
|
*/
|
|
@@ -1277,13 +1335,13 @@ export namespace ExampleUpdateResponse {
|
|
|
1277
1335
|
/**
|
|
1278
1336
|
* Per-dimension reasons and suggestions, as produced by the detector.
|
|
1279
1337
|
*
|
|
1280
|
-
* Returned only when the asset is read with `
|
|
1338
|
+
* Returned only when the asset is read with `withQualityGateDetails=true` by the
|
|
1281
1339
|
* project that owns it — the brief-compliance text paraphrases that project's
|
|
1282
1340
|
* brief, so a cross-project read of a public asset gets the summary alone. Also
|
|
1283
1341
|
* omitted when the archived verdict is unavailable (asset scored by an older
|
|
1284
1342
|
* version, or an unreadable archive).
|
|
1285
1343
|
*/
|
|
1286
|
-
details?:
|
|
1344
|
+
details?: QualityGate.Details;
|
|
1287
1345
|
|
|
1288
1346
|
/**
|
|
1289
1347
|
* Error message when status is 'error' (truncated)
|
|
@@ -1306,11 +1364,11 @@ export namespace ExampleUpdateResponse {
|
|
|
1306
1364
|
verdict?: 'fail' | 'pass' | 'warn';
|
|
1307
1365
|
}
|
|
1308
1366
|
|
|
1309
|
-
export namespace
|
|
1367
|
+
export namespace QualityGate {
|
|
1310
1368
|
/**
|
|
1311
1369
|
* Per-dimension reasons and suggestions, as produced by the detector.
|
|
1312
1370
|
*
|
|
1313
|
-
* Returned only when the asset is read with `
|
|
1371
|
+
* Returned only when the asset is read with `withQualityGateDetails=true` by the
|
|
1314
1372
|
* project that owns it — the brief-compliance text paraphrases that project's
|
|
1315
1373
|
* brief, so a cross-project read of a public asset gets the summary alone. Also
|
|
1316
1374
|
* omitted when the archived verdict is unavailable (asset scored by an older
|
|
@@ -2099,7 +2157,9 @@ export namespace ExampleUpdateResponse {
|
|
|
2099
2157
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2100
2158
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2101
2159
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2102
|
-
* data:kind, prefix
|
|
2160
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2161
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2162
|
+
* generation time.
|
|
2103
2163
|
*/
|
|
2104
2164
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2105
2165
|
|
|
@@ -2127,8 +2187,9 @@ export namespace ExampleUpdateResponse {
|
|
|
2127
2187
|
maxDuration?: number;
|
|
2128
2188
|
|
|
2129
2189
|
/**
|
|
2130
|
-
* The maximum allowed length for \`string\`
|
|
2131
|
-
* \`string_array
|
|
2190
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2191
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2192
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2132
2193
|
*/
|
|
2133
2194
|
maxLength?: number;
|
|
2134
2195
|
|
|
@@ -2145,8 +2206,9 @@ export namespace ExampleUpdateResponse {
|
|
|
2145
2206
|
min?: number;
|
|
2146
2207
|
|
|
2147
2208
|
/**
|
|
2148
|
-
* The minimum allowed length for string
|
|
2149
|
-
* \`string_array
|
|
2209
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2210
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2211
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2150
2212
|
*/
|
|
2151
2213
|
minLength?: number;
|
|
2152
2214
|
|
|
@@ -2326,7 +2388,9 @@ export namespace ExampleUpdateResponse {
|
|
|
2326
2388
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2327
2389
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2328
2390
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2329
|
-
* data:kind, prefix
|
|
2391
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2392
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2393
|
+
* generation time.
|
|
2330
2394
|
*/
|
|
2331
2395
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2332
2396
|
|
|
@@ -2354,8 +2418,9 @@ export namespace ExampleUpdateResponse {
|
|
|
2354
2418
|
maxDuration?: number;
|
|
2355
2419
|
|
|
2356
2420
|
/**
|
|
2357
|
-
* The maximum allowed length for \`string\`
|
|
2358
|
-
* \`string_array
|
|
2421
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2422
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2423
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2359
2424
|
*/
|
|
2360
2425
|
maxLength?: number;
|
|
2361
2426
|
|
|
@@ -2372,8 +2437,9 @@ export namespace ExampleUpdateResponse {
|
|
|
2372
2437
|
min?: number;
|
|
2373
2438
|
|
|
2374
2439
|
/**
|
|
2375
|
-
* The minimum allowed length for string
|
|
2376
|
-
* \`string_array
|
|
2440
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2441
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2442
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2377
2443
|
*/
|
|
2378
2444
|
minLength?: number;
|
|
2379
2445
|
|
|
@@ -2678,7 +2744,7 @@ export namespace ExampleUpdateResponse {
|
|
|
2678
2744
|
|
|
2679
2745
|
/**
|
|
2680
2746
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2681
|
-
* top of the generation itself, such as `
|
|
2747
|
+
* top of the generation itself, such as `quality-gate`.
|
|
2682
2748
|
*
|
|
2683
2749
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2684
2750
|
* values here.
|
|
@@ -2708,7 +2774,7 @@ export namespace ExampleUpdateResponse {
|
|
|
2708
2774
|
export namespace Billing {
|
|
2709
2775
|
/**
|
|
2710
2776
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2711
|
-
* top of the generation itself, such as `
|
|
2777
|
+
* top of the generation itself, such as `quality-gate`.
|
|
2712
2778
|
*
|
|
2713
2779
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2714
2780
|
* values here.
|
|
@@ -2728,7 +2794,7 @@ export namespace ExampleUpdateResponse {
|
|
|
2728
2794
|
export interface CuCostDetails {
|
|
2729
2795
|
'ip-detection'?: number;
|
|
2730
2796
|
|
|
2731
|
-
'
|
|
2797
|
+
'quality-gate'?: number;
|
|
2732
2798
|
}
|
|
2733
2799
|
}
|
|
2734
2800
|
}
|
|
@@ -3000,6 +3066,64 @@ export namespace ExampleListResponse {
|
|
|
3000
3066
|
*/
|
|
3001
3067
|
originalFileUrl?: string;
|
|
3002
3068
|
|
|
3069
|
+
/**
|
|
3070
|
+
* The mime type of the original file url.
|
|
3071
|
+
*
|
|
3072
|
+
* The original file is stored under a key that carries no extension, so this is
|
|
3073
|
+
* the only way to know which format `originalFileUrl` serves (e.g. an HDRi skybox
|
|
3074
|
+
* exposes a JPEG preview as `url` and its `.exr` or `.hdr` file as the original).
|
|
3075
|
+
* Omitted when the stored format could not be determined.
|
|
3076
|
+
*/
|
|
3077
|
+
originalMimeType?:
|
|
3078
|
+
| 'application/gzip'
|
|
3079
|
+
| 'application/json'
|
|
3080
|
+
| 'application/octet-stream'
|
|
3081
|
+
| 'application/pdf'
|
|
3082
|
+
| 'application/safetensors'
|
|
3083
|
+
| 'application/vnd.autodesk.fbx'
|
|
3084
|
+
| 'application/x-authorware-bin'
|
|
3085
|
+
| 'application/x-zip-compressed'
|
|
3086
|
+
| 'application/x.autodesk.fbx'
|
|
3087
|
+
| 'application/zip'
|
|
3088
|
+
| 'audio/m4a'
|
|
3089
|
+
| 'audio/mpeg'
|
|
3090
|
+
| 'audio/ogg'
|
|
3091
|
+
| 'audio/wav'
|
|
3092
|
+
| 'image/aces'
|
|
3093
|
+
| 'image/avif'
|
|
3094
|
+
| 'image/bmp'
|
|
3095
|
+
| 'image/gif'
|
|
3096
|
+
| 'image/heic'
|
|
3097
|
+
| 'image/jpeg'
|
|
3098
|
+
| 'image/png'
|
|
3099
|
+
| 'image/svg+xml'
|
|
3100
|
+
| 'image/tiff'
|
|
3101
|
+
| 'image/vnd.radiance'
|
|
3102
|
+
| 'image/webp'
|
|
3103
|
+
| 'image/x-exr'
|
|
3104
|
+
| 'model/glb'
|
|
3105
|
+
| 'model/gltf+json'
|
|
3106
|
+
| 'model/gltf-binary'
|
|
3107
|
+
| 'model/ksplat'
|
|
3108
|
+
| 'model/mtl'
|
|
3109
|
+
| 'model/obj'
|
|
3110
|
+
| 'model/ply'
|
|
3111
|
+
| 'model/sog'
|
|
3112
|
+
| 'model/splat'
|
|
3113
|
+
| 'model/spz'
|
|
3114
|
+
| 'model/stl'
|
|
3115
|
+
| 'model/vnd.collada+xml'
|
|
3116
|
+
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
3117
|
+
| 'model/x-3d-vox'
|
|
3118
|
+
| 'model/x-fbx'
|
|
3119
|
+
| 'model/x-maya-ascii'
|
|
3120
|
+
| 'model/x-maya-binary'
|
|
3121
|
+
| 'model/x3d+xml'
|
|
3122
|
+
| 'text/plain'
|
|
3123
|
+
| 'video/mp4'
|
|
3124
|
+
| 'video/quicktime'
|
|
3125
|
+
| 'video/webm';
|
|
3126
|
+
|
|
3003
3127
|
/**
|
|
3004
3128
|
* The output index of the asset within a job This index is an positive integer
|
|
3005
3129
|
* that starts at 0 It is used to differentiate between multiple outputs of the
|
|
@@ -3015,12 +3139,12 @@ export namespace ExampleListResponse {
|
|
|
3015
3139
|
preview?: Asset.Preview;
|
|
3016
3140
|
|
|
3017
3141
|
/**
|
|
3018
|
-
*
|
|
3142
|
+
* Quality Gate result, computed asynchronously after generation.
|
|
3019
3143
|
*
|
|
3020
3144
|
* `details` (the per-dimension reasons and suggestions) is returned only when the
|
|
3021
|
-
* asset is read with `
|
|
3145
|
+
* asset is read with `withQualityGateDetails=true`.
|
|
3022
3146
|
*/
|
|
3023
|
-
|
|
3147
|
+
qualityGate?: Asset.QualityGate;
|
|
3024
3148
|
|
|
3025
3149
|
/**
|
|
3026
3150
|
* The asset's thumbnail.
|
|
@@ -3939,12 +4063,12 @@ export namespace ExampleListResponse {
|
|
|
3939
4063
|
}
|
|
3940
4064
|
|
|
3941
4065
|
/**
|
|
3942
|
-
*
|
|
4066
|
+
* Quality Gate result, computed asynchronously after generation.
|
|
3943
4067
|
*
|
|
3944
4068
|
* `details` (the per-dimension reasons and suggestions) is returned only when the
|
|
3945
|
-
* asset is read with `
|
|
4069
|
+
* asset is read with `withQualityGateDetails=true`.
|
|
3946
4070
|
*/
|
|
3947
|
-
export interface
|
|
4071
|
+
export interface QualityGate {
|
|
3948
4072
|
/**
|
|
3949
4073
|
* ISO-8601 timestamp of when scoring ran
|
|
3950
4074
|
*/
|
|
@@ -3978,13 +4102,13 @@ export namespace ExampleListResponse {
|
|
|
3978
4102
|
/**
|
|
3979
4103
|
* Per-dimension reasons and suggestions, as produced by the detector.
|
|
3980
4104
|
*
|
|
3981
|
-
* Returned only when the asset is read with `
|
|
4105
|
+
* Returned only when the asset is read with `withQualityGateDetails=true` by the
|
|
3982
4106
|
* project that owns it — the brief-compliance text paraphrases that project's
|
|
3983
4107
|
* brief, so a cross-project read of a public asset gets the summary alone. Also
|
|
3984
4108
|
* omitted when the archived verdict is unavailable (asset scored by an older
|
|
3985
4109
|
* version, or an unreadable archive).
|
|
3986
4110
|
*/
|
|
3987
|
-
details?:
|
|
4111
|
+
details?: QualityGate.Details;
|
|
3988
4112
|
|
|
3989
4113
|
/**
|
|
3990
4114
|
* Error message when status is 'error' (truncated)
|
|
@@ -4007,11 +4131,11 @@ export namespace ExampleListResponse {
|
|
|
4007
4131
|
verdict?: 'fail' | 'pass' | 'warn';
|
|
4008
4132
|
}
|
|
4009
4133
|
|
|
4010
|
-
export namespace
|
|
4134
|
+
export namespace QualityGate {
|
|
4011
4135
|
/**
|
|
4012
4136
|
* Per-dimension reasons and suggestions, as produced by the detector.
|
|
4013
4137
|
*
|
|
4014
|
-
* Returned only when the asset is read with `
|
|
4138
|
+
* Returned only when the asset is read with `withQualityGateDetails=true` by the
|
|
4015
4139
|
* project that owns it — the brief-compliance text paraphrases that project's
|
|
4016
4140
|
* brief, so a cross-project read of a public asset gets the summary alone. Also
|
|
4017
4141
|
* omitted when the archived verdict is unavailable (asset scored by an older
|
|
@@ -4800,7 +4924,9 @@ export namespace ExampleListResponse {
|
|
|
4800
4924
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
4801
4925
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
4802
4926
|
* not able to create the asset on the flight on API side with dataurl without
|
|
4803
|
-
* data:kind, prefix
|
|
4927
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
4928
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
4929
|
+
* generation time.
|
|
4804
4930
|
*/
|
|
4805
4931
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
4806
4932
|
|
|
@@ -4828,8 +4954,9 @@ export namespace ExampleListResponse {
|
|
|
4828
4954
|
maxDuration?: number;
|
|
4829
4955
|
|
|
4830
4956
|
/**
|
|
4831
|
-
* The maximum allowed length for \`string\`
|
|
4832
|
-
* \`string_array
|
|
4957
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4958
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4959
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4833
4960
|
*/
|
|
4834
4961
|
maxLength?: number;
|
|
4835
4962
|
|
|
@@ -4846,8 +4973,9 @@ export namespace ExampleListResponse {
|
|
|
4846
4973
|
min?: number;
|
|
4847
4974
|
|
|
4848
4975
|
/**
|
|
4849
|
-
* The minimum allowed length for string
|
|
4850
|
-
* \`string_array
|
|
4976
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4977
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4978
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4851
4979
|
*/
|
|
4852
4980
|
minLength?: number;
|
|
4853
4981
|
|
|
@@ -5027,7 +5155,9 @@ export namespace ExampleListResponse {
|
|
|
5027
5155
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
5028
5156
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
5029
5157
|
* not able to create the asset on the flight on API side with dataurl without
|
|
5030
|
-
* data:kind, prefix
|
|
5158
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
5159
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
5160
|
+
* generation time.
|
|
5031
5161
|
*/
|
|
5032
5162
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
5033
5163
|
|
|
@@ -5055,8 +5185,9 @@ export namespace ExampleListResponse {
|
|
|
5055
5185
|
maxDuration?: number;
|
|
5056
5186
|
|
|
5057
5187
|
/**
|
|
5058
|
-
* The maximum allowed length for \`string\`
|
|
5059
|
-
* \`string_array
|
|
5188
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5189
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5190
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5060
5191
|
*/
|
|
5061
5192
|
maxLength?: number;
|
|
5062
5193
|
|
|
@@ -5073,8 +5204,9 @@ export namespace ExampleListResponse {
|
|
|
5073
5204
|
min?: number;
|
|
5074
5205
|
|
|
5075
5206
|
/**
|
|
5076
|
-
* The minimum allowed length for string
|
|
5077
|
-
* \`string_array
|
|
5207
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5208
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5209
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5078
5210
|
*/
|
|
5079
5211
|
minLength?: number;
|
|
5080
5212
|
|
|
@@ -5379,7 +5511,7 @@ export namespace ExampleListResponse {
|
|
|
5379
5511
|
|
|
5380
5512
|
/**
|
|
5381
5513
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
5382
|
-
* top of the generation itself, such as `
|
|
5514
|
+
* top of the generation itself, such as `quality-gate`.
|
|
5383
5515
|
*
|
|
5384
5516
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
5385
5517
|
* values here.
|
|
@@ -5409,7 +5541,7 @@ export namespace ExampleListResponse {
|
|
|
5409
5541
|
export namespace Billing {
|
|
5410
5542
|
/**
|
|
5411
5543
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
5412
|
-
* top of the generation itself, such as `
|
|
5544
|
+
* top of the generation itself, such as `quality-gate`.
|
|
5413
5545
|
*
|
|
5414
5546
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
5415
5547
|
* values here.
|
|
@@ -5429,7 +5561,7 @@ export namespace ExampleListResponse {
|
|
|
5429
5561
|
export interface CuCostDetails {
|
|
5430
5562
|
'ip-detection'?: number;
|
|
5431
5563
|
|
|
5432
|
-
'
|
|
5564
|
+
'quality-gate'?: number;
|
|
5433
5565
|
}
|
|
5434
5566
|
}
|
|
5435
5567
|
}
|