@scenario-labs/sdk 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/lib/auth-refresh.d.mts +52 -0
- package/lib/auth-refresh.d.mts.map +1 -0
- package/lib/auth-refresh.d.ts +52 -0
- package/lib/auth-refresh.d.ts.map +1 -0
- package/lib/auth-refresh.js +81 -0
- package/lib/auth-refresh.js.map +1 -0
- package/lib/auth-refresh.mjs +78 -0
- package/lib/auth-refresh.mjs.map +1 -0
- package/lib/generate.js +7 -7
- package/lib/generate.js.map +1 -1
- package/lib/generate.mjs +7 -7
- package/lib/generate.mjs.map +1 -1
- package/lib/job.d.mts +15 -3
- package/lib/job.d.mts.map +1 -1
- package/lib/job.d.ts +15 -3
- package/lib/job.d.ts.map +1 -1
- package/lib/job.js +22 -8
- package/lib/job.js.map +1 -1
- package/lib/job.mjs +22 -8
- package/lib/job.mjs.map +1 -1
- package/lib/models.d.mts +8 -2
- package/lib/models.d.mts.map +1 -1
- package/lib/models.d.ts +8 -2
- package/lib/models.d.ts.map +1 -1
- package/lib/models.js +13 -5
- package/lib/models.js.map +1 -1
- package/lib/models.mjs +13 -5
- package/lib/models.mjs.map +1 -1
- package/lib/scenario.d.mts +28 -13
- package/lib/scenario.d.mts.map +1 -1
- package/lib/scenario.d.ts +28 -13
- package/lib/scenario.d.ts.map +1 -1
- package/lib/scenario.js +31 -12
- package/lib/scenario.js.map +1 -1
- package/lib/scenario.mjs +31 -12
- package/lib/scenario.mjs.map +1 -1
- package/lib/scope.d.mts +41 -0
- package/lib/scope.d.mts.map +1 -0
- package/lib/scope.d.ts +41 -0
- package/lib/scope.d.ts.map +1 -0
- package/lib/scope.js +55 -0
- package/lib/scope.js.map +1 -0
- package/lib/scope.mjs +49 -0
- package/lib/scope.mjs.map +1 -0
- package/lib/upload.d.mts +15 -3
- package/lib/upload.d.mts.map +1 -1
- package/lib/upload.d.ts +15 -3
- package/lib/upload.d.ts.map +1 -1
- package/lib/upload.js +29 -12
- package/lib/upload.js.map +1 -1
- package/lib/upload.mjs +29 -12
- package/lib/upload.mjs.map +1 -1
- package/lib/workflow.d.mts +8 -2
- package/lib/workflow.d.mts.map +1 -1
- package/lib/workflow.d.ts +8 -2
- package/lib/workflow.d.ts.map +1 -1
- package/lib/workflow.js +14 -6
- package/lib/workflow.js.map +1 -1
- package/lib/workflow.mjs +14 -6
- package/lib/workflow.mjs.map +1 -1
- package/lib/workflow_converter.d.mts +2 -5
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts +2 -5
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +38 -3
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +38 -3
- package/lib/workflow_converter.mjs.map +1 -1
- package/lib/workflow_import_validator.d.mts +1 -1
- package/lib/workflow_import_validator.d.mts.map +1 -1
- package/lib/workflow_import_validator.d.ts +1 -1
- package/lib/workflow_import_validator.d.ts.map +1 -1
- package/lib/workflow_import_validator.js +1 -0
- package/lib/workflow_import_validator.js.map +1 -1
- package/lib/workflow_import_validator.mjs +1 -0
- package/lib/workflow_import_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +1 -1
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +1 -1
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/generate.d.mts +8 -8
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +8 -8
- package/resources/generate.d.ts.map +1 -1
- package/resources/jobs.d.mts +3 -3
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +3 -3
- package/resources/jobs.d.ts.map +1 -1
- package/resources/models/examples.d.mts +2 -2
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +2 -2
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/models.d.mts +126 -7
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +126 -7
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/train.d.mts +37 -3
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +37 -3
- package/resources/models/train.d.ts.map +1 -1
- package/resources/usages.d.mts +1 -1
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +1 -1
- package/resources/usages.d.ts.map +1 -1
- package/resources/workflows.d.mts +22 -5
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +22 -5
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +4 -1
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +4 -1
- package/resources/workflows.mjs.map +1 -1
- package/src/index.ts +1 -0
- package/src/lib/auth-refresh.ts +98 -0
- package/src/lib/generate.ts +7 -7
- package/src/lib/job.ts +29 -7
- package/src/lib/models.ts +14 -4
- package/src/lib/scenario.ts +51 -13
- package/src/lib/scope.ts +68 -0
- package/src/lib/upload.ts +36 -11
- package/src/lib/workflow.ts +15 -5
- package/src/lib/workflow_converter.ts +47 -6
- package/src/lib/workflow_import_validator.ts +3 -1
- package/src/resources/assets/assets.ts +1 -1
- package/src/resources/generate.ts +8 -8
- package/src/resources/jobs.ts +3 -3
- package/src/resources/models/examples.ts +2 -2
- package/src/resources/models/models.ts +189 -7
- package/src/resources/models/train.ts +55 -3
- package/src/resources/usages.ts +1 -1
- package/src/resources/workflows.ts +24 -5
- 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
|
@@ -9515,7 +9515,7 @@ export namespace AssetUploadResponse {
|
|
|
9515
9515
|
/**
|
|
9516
9516
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
9517
9517
|
*/
|
|
9518
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
9518
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
9519
9519
|
|
|
9520
9520
|
/**
|
|
9521
9521
|
* The type of the job for the node.
|
|
@@ -288,7 +288,7 @@ export namespace GenerateCaptionResponse {
|
|
|
288
288
|
/**
|
|
289
289
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
290
290
|
*/
|
|
291
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
291
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
292
292
|
|
|
293
293
|
/**
|
|
294
294
|
* The type of the job for the node.
|
|
@@ -1274,7 +1274,7 @@ export namespace GenerateDescribeStyleResponse {
|
|
|
1274
1274
|
/**
|
|
1275
1275
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
1276
1276
|
*/
|
|
1277
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
1277
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
1278
1278
|
|
|
1279
1279
|
/**
|
|
1280
1280
|
* The type of the job for the node.
|
|
@@ -2252,7 +2252,7 @@ export namespace GenerateDetectResponse {
|
|
|
2252
2252
|
/**
|
|
2253
2253
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
2254
2254
|
*/
|
|
2255
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
2255
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
2256
2256
|
|
|
2257
2257
|
/**
|
|
2258
2258
|
* The type of the job for the node.
|
|
@@ -4376,7 +4376,7 @@ export namespace GenerateEmbedResponse {
|
|
|
4376
4376
|
/**
|
|
4377
4377
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
4378
4378
|
*/
|
|
4379
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
4379
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
4380
4380
|
|
|
4381
4381
|
/**
|
|
4382
4382
|
* The type of the job for the node.
|
|
@@ -5354,7 +5354,7 @@ export namespace GeneratePatchResponse {
|
|
|
5354
5354
|
/**
|
|
5355
5355
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
5356
5356
|
*/
|
|
5357
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
5357
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
5358
5358
|
|
|
5359
5359
|
/**
|
|
5360
5360
|
* The type of the job for the node.
|
|
@@ -7481,7 +7481,7 @@ export namespace GeneratePromptResponse {
|
|
|
7481
7481
|
/**
|
|
7482
7482
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
7483
7483
|
*/
|
|
7484
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
7484
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
7485
7485
|
|
|
7486
7486
|
/**
|
|
7487
7487
|
* The type of the job for the node.
|
|
@@ -8457,7 +8457,7 @@ export namespace GenerateRunModelResponse {
|
|
|
8457
8457
|
/**
|
|
8458
8458
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
8459
8459
|
*/
|
|
8460
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
8460
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
8461
8461
|
|
|
8462
8462
|
/**
|
|
8463
8463
|
* The type of the job for the node.
|
|
@@ -9443,7 +9443,7 @@ export namespace GenerateTranslateResponse {
|
|
|
9443
9443
|
/**
|
|
9444
9444
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
9445
9445
|
*/
|
|
9446
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
9446
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
9447
9447
|
|
|
9448
9448
|
/**
|
|
9449
9449
|
* The type of the job for the node.
|
package/src/resources/jobs.ts
CHANGED
|
@@ -215,7 +215,7 @@ export namespace JobRetrieveResponse {
|
|
|
215
215
|
/**
|
|
216
216
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
217
217
|
*/
|
|
218
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
218
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* The type of the job for the node.
|
|
@@ -1176,7 +1176,7 @@ export namespace JobListResponse {
|
|
|
1176
1176
|
/**
|
|
1177
1177
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
1178
1178
|
*/
|
|
1179
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
1179
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
1180
1180
|
|
|
1181
1181
|
/**
|
|
1182
1182
|
* The type of the job for the node.
|
|
@@ -2141,7 +2141,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2141
2141
|
/**
|
|
2142
2142
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
2143
2143
|
*/
|
|
2144
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
2144
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
2145
2145
|
|
|
2146
2146
|
/**
|
|
2147
2147
|
* The type of the job for the node.
|
|
@@ -1745,7 +1745,7 @@ export namespace ExampleUpdateResponse {
|
|
|
1745
1745
|
/**
|
|
1746
1746
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
1747
1747
|
*/
|
|
1748
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
1748
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
1749
1749
|
|
|
1750
1750
|
/**
|
|
1751
1751
|
* The type of the job for the node.
|
|
@@ -4250,7 +4250,7 @@ export namespace ExampleListResponse {
|
|
|
4250
4250
|
/**
|
|
4251
4251
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
4252
4252
|
*/
|
|
4253
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
4253
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
4254
4254
|
|
|
4255
4255
|
/**
|
|
4256
4256
|
* The type of the job for the node.
|
|
@@ -1286,13 +1286,25 @@ export namespace ModelCreateResponse {
|
|
|
1286
1286
|
/**
|
|
1287
1287
|
* The stage of the request
|
|
1288
1288
|
*/
|
|
1289
|
-
stage:
|
|
1289
|
+
stage:
|
|
1290
|
+
| 'pending'
|
|
1291
|
+
| 'pending-captcha'
|
|
1292
|
+
| 'queued-for-train'
|
|
1293
|
+
| 'ready-for-captcha'
|
|
1294
|
+
| 'running-train'
|
|
1295
|
+
| 'starting-train';
|
|
1290
1296
|
|
|
1291
1297
|
/**
|
|
1292
1298
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
1293
1299
|
*/
|
|
1294
1300
|
updatedAt: number;
|
|
1295
1301
|
|
|
1302
|
+
/**
|
|
1303
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
1304
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
1305
|
+
*/
|
|
1306
|
+
captchaImageUrl?: string;
|
|
1307
|
+
|
|
1296
1308
|
/**
|
|
1297
1309
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
1298
1310
|
* one)
|
|
@@ -1309,6 +1321,20 @@ export namespace ModelCreateResponse {
|
|
|
1309
1321
|
*/
|
|
1310
1322
|
remainingTimeMs?: number;
|
|
1311
1323
|
|
|
1324
|
+
/**
|
|
1325
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
1326
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
1327
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
1328
|
+
* user understands why they're back here.
|
|
1329
|
+
*/
|
|
1330
|
+
retryableError?: string;
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
1334
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
1335
|
+
*/
|
|
1336
|
+
retryCount?: number;
|
|
1337
|
+
|
|
1312
1338
|
/**
|
|
1313
1339
|
* The timestamp in millisecond marking the start of the process
|
|
1314
1340
|
*/
|
|
@@ -2592,13 +2618,25 @@ export namespace ModelRetrieveResponse {
|
|
|
2592
2618
|
/**
|
|
2593
2619
|
* The stage of the request
|
|
2594
2620
|
*/
|
|
2595
|
-
stage:
|
|
2621
|
+
stage:
|
|
2622
|
+
| 'pending'
|
|
2623
|
+
| 'pending-captcha'
|
|
2624
|
+
| 'queued-for-train'
|
|
2625
|
+
| 'ready-for-captcha'
|
|
2626
|
+
| 'running-train'
|
|
2627
|
+
| 'starting-train';
|
|
2596
2628
|
|
|
2597
2629
|
/**
|
|
2598
2630
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
2599
2631
|
*/
|
|
2600
2632
|
updatedAt: number;
|
|
2601
2633
|
|
|
2634
|
+
/**
|
|
2635
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
2636
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
2637
|
+
*/
|
|
2638
|
+
captchaImageUrl?: string;
|
|
2639
|
+
|
|
2602
2640
|
/**
|
|
2603
2641
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
2604
2642
|
* one)
|
|
@@ -2615,6 +2653,20 @@ export namespace ModelRetrieveResponse {
|
|
|
2615
2653
|
*/
|
|
2616
2654
|
remainingTimeMs?: number;
|
|
2617
2655
|
|
|
2656
|
+
/**
|
|
2657
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
2658
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
2659
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
2660
|
+
* user understands why they're back here.
|
|
2661
|
+
*/
|
|
2662
|
+
retryableError?: string;
|
|
2663
|
+
|
|
2664
|
+
/**
|
|
2665
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
2666
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
2667
|
+
*/
|
|
2668
|
+
retryCount?: number;
|
|
2669
|
+
|
|
2618
2670
|
/**
|
|
2619
2671
|
* The timestamp in millisecond marking the start of the process
|
|
2620
2672
|
*/
|
|
@@ -3898,13 +3950,25 @@ export namespace ModelUpdateResponse {
|
|
|
3898
3950
|
/**
|
|
3899
3951
|
* The stage of the request
|
|
3900
3952
|
*/
|
|
3901
|
-
stage:
|
|
3953
|
+
stage:
|
|
3954
|
+
| 'pending'
|
|
3955
|
+
| 'pending-captcha'
|
|
3956
|
+
| 'queued-for-train'
|
|
3957
|
+
| 'ready-for-captcha'
|
|
3958
|
+
| 'running-train'
|
|
3959
|
+
| 'starting-train';
|
|
3902
3960
|
|
|
3903
3961
|
/**
|
|
3904
3962
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
3905
3963
|
*/
|
|
3906
3964
|
updatedAt: number;
|
|
3907
3965
|
|
|
3966
|
+
/**
|
|
3967
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
3968
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
3969
|
+
*/
|
|
3970
|
+
captchaImageUrl?: string;
|
|
3971
|
+
|
|
3908
3972
|
/**
|
|
3909
3973
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
3910
3974
|
* one)
|
|
@@ -3921,6 +3985,20 @@ export namespace ModelUpdateResponse {
|
|
|
3921
3985
|
*/
|
|
3922
3986
|
remainingTimeMs?: number;
|
|
3923
3987
|
|
|
3988
|
+
/**
|
|
3989
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
3990
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
3991
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
3992
|
+
* user understands why they're back here.
|
|
3993
|
+
*/
|
|
3994
|
+
retryableError?: string;
|
|
3995
|
+
|
|
3996
|
+
/**
|
|
3997
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
3998
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
3999
|
+
*/
|
|
4000
|
+
retryCount?: number;
|
|
4001
|
+
|
|
3924
4002
|
/**
|
|
3925
4003
|
* The timestamp in millisecond marking the start of the process
|
|
3926
4004
|
*/
|
|
@@ -5199,13 +5277,25 @@ export namespace ModelListResponse {
|
|
|
5199
5277
|
/**
|
|
5200
5278
|
* The stage of the request
|
|
5201
5279
|
*/
|
|
5202
|
-
stage:
|
|
5280
|
+
stage:
|
|
5281
|
+
| 'pending'
|
|
5282
|
+
| 'pending-captcha'
|
|
5283
|
+
| 'queued-for-train'
|
|
5284
|
+
| 'ready-for-captcha'
|
|
5285
|
+
| 'running-train'
|
|
5286
|
+
| 'starting-train';
|
|
5203
5287
|
|
|
5204
5288
|
/**
|
|
5205
5289
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
5206
5290
|
*/
|
|
5207
5291
|
updatedAt: number;
|
|
5208
5292
|
|
|
5293
|
+
/**
|
|
5294
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
5295
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
5296
|
+
*/
|
|
5297
|
+
captchaImageUrl?: string;
|
|
5298
|
+
|
|
5209
5299
|
/**
|
|
5210
5300
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
5211
5301
|
* one)
|
|
@@ -5222,6 +5312,20 @@ export namespace ModelListResponse {
|
|
|
5222
5312
|
*/
|
|
5223
5313
|
remainingTimeMs?: number;
|
|
5224
5314
|
|
|
5315
|
+
/**
|
|
5316
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
5317
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
5318
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
5319
|
+
* user understands why they're back here.
|
|
5320
|
+
*/
|
|
5321
|
+
retryableError?: string;
|
|
5322
|
+
|
|
5323
|
+
/**
|
|
5324
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
5325
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
5326
|
+
*/
|
|
5327
|
+
retryCount?: number;
|
|
5328
|
+
|
|
5225
5329
|
/**
|
|
5226
5330
|
* The timestamp in millisecond marking the start of the process
|
|
5227
5331
|
*/
|
|
@@ -6506,13 +6610,25 @@ export namespace ModelCopyResponse {
|
|
|
6506
6610
|
/**
|
|
6507
6611
|
* The stage of the request
|
|
6508
6612
|
*/
|
|
6509
|
-
stage:
|
|
6613
|
+
stage:
|
|
6614
|
+
| 'pending'
|
|
6615
|
+
| 'pending-captcha'
|
|
6616
|
+
| 'queued-for-train'
|
|
6617
|
+
| 'ready-for-captcha'
|
|
6618
|
+
| 'running-train'
|
|
6619
|
+
| 'starting-train';
|
|
6510
6620
|
|
|
6511
6621
|
/**
|
|
6512
6622
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
6513
6623
|
*/
|
|
6514
6624
|
updatedAt: number;
|
|
6515
6625
|
|
|
6626
|
+
/**
|
|
6627
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
6628
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
6629
|
+
*/
|
|
6630
|
+
captchaImageUrl?: string;
|
|
6631
|
+
|
|
6516
6632
|
/**
|
|
6517
6633
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
6518
6634
|
* one)
|
|
@@ -6529,6 +6645,20 @@ export namespace ModelCopyResponse {
|
|
|
6529
6645
|
*/
|
|
6530
6646
|
remainingTimeMs?: number;
|
|
6531
6647
|
|
|
6648
|
+
/**
|
|
6649
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
6650
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
6651
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
6652
|
+
* user understands why they're back here.
|
|
6653
|
+
*/
|
|
6654
|
+
retryableError?: string;
|
|
6655
|
+
|
|
6656
|
+
/**
|
|
6657
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
6658
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
6659
|
+
*/
|
|
6660
|
+
retryCount?: number;
|
|
6661
|
+
|
|
6532
6662
|
/**
|
|
6533
6663
|
* The timestamp in millisecond marking the start of the process
|
|
6534
6664
|
*/
|
|
@@ -7821,13 +7951,25 @@ export namespace ModelGetBulkResponse {
|
|
|
7821
7951
|
/**
|
|
7822
7952
|
* The stage of the request
|
|
7823
7953
|
*/
|
|
7824
|
-
stage:
|
|
7954
|
+
stage:
|
|
7955
|
+
| 'pending'
|
|
7956
|
+
| 'pending-captcha'
|
|
7957
|
+
| 'queued-for-train'
|
|
7958
|
+
| 'ready-for-captcha'
|
|
7959
|
+
| 'running-train'
|
|
7960
|
+
| 'starting-train';
|
|
7825
7961
|
|
|
7826
7962
|
/**
|
|
7827
7963
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
7828
7964
|
*/
|
|
7829
7965
|
updatedAt: number;
|
|
7830
7966
|
|
|
7967
|
+
/**
|
|
7968
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
7969
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
7970
|
+
*/
|
|
7971
|
+
captchaImageUrl?: string;
|
|
7972
|
+
|
|
7831
7973
|
/**
|
|
7832
7974
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
7833
7975
|
* one)
|
|
@@ -7844,6 +7986,20 @@ export namespace ModelGetBulkResponse {
|
|
|
7844
7986
|
*/
|
|
7845
7987
|
remainingTimeMs?: number;
|
|
7846
7988
|
|
|
7989
|
+
/**
|
|
7990
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
7991
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
7992
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
7993
|
+
* user understands why they're back here.
|
|
7994
|
+
*/
|
|
7995
|
+
retryableError?: string;
|
|
7996
|
+
|
|
7997
|
+
/**
|
|
7998
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
7999
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
8000
|
+
*/
|
|
8001
|
+
retryCount?: number;
|
|
8002
|
+
|
|
7847
8003
|
/**
|
|
7848
8004
|
* The timestamp in millisecond marking the start of the process
|
|
7849
8005
|
*/
|
|
@@ -9127,13 +9283,25 @@ export namespace ModelTransferResponse {
|
|
|
9127
9283
|
/**
|
|
9128
9284
|
* The stage of the request
|
|
9129
9285
|
*/
|
|
9130
|
-
stage:
|
|
9286
|
+
stage:
|
|
9287
|
+
| 'pending'
|
|
9288
|
+
| 'pending-captcha'
|
|
9289
|
+
| 'queued-for-train'
|
|
9290
|
+
| 'ready-for-captcha'
|
|
9291
|
+
| 'running-train'
|
|
9292
|
+
| 'starting-train';
|
|
9131
9293
|
|
|
9132
9294
|
/**
|
|
9133
9295
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
9134
9296
|
*/
|
|
9135
9297
|
updatedAt: number;
|
|
9136
9298
|
|
|
9299
|
+
/**
|
|
9300
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
9301
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
9302
|
+
*/
|
|
9303
|
+
captchaImageUrl?: string;
|
|
9304
|
+
|
|
9137
9305
|
/**
|
|
9138
9306
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
9139
9307
|
* one)
|
|
@@ -9150,6 +9318,20 @@ export namespace ModelTransferResponse {
|
|
|
9150
9318
|
*/
|
|
9151
9319
|
remainingTimeMs?: number;
|
|
9152
9320
|
|
|
9321
|
+
/**
|
|
9322
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
9323
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
9324
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
9325
|
+
* user understands why they're back here.
|
|
9326
|
+
*/
|
|
9327
|
+
retryableError?: string;
|
|
9328
|
+
|
|
9329
|
+
/**
|
|
9330
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
9331
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
9332
|
+
*/
|
|
9333
|
+
retryCount?: number;
|
|
9334
|
+
|
|
9153
9335
|
/**
|
|
9154
9336
|
* The timestamp in millisecond marking the start of the process
|
|
9155
9337
|
*/
|
|
@@ -1159,13 +1159,25 @@ export namespace TrainActionResponse {
|
|
|
1159
1159
|
/**
|
|
1160
1160
|
* The stage of the request
|
|
1161
1161
|
*/
|
|
1162
|
-
stage:
|
|
1162
|
+
stage:
|
|
1163
|
+
| 'pending'
|
|
1164
|
+
| 'pending-captcha'
|
|
1165
|
+
| 'queued-for-train'
|
|
1166
|
+
| 'ready-for-captcha'
|
|
1167
|
+
| 'running-train'
|
|
1168
|
+
| 'starting-train';
|
|
1163
1169
|
|
|
1164
1170
|
/**
|
|
1165
1171
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
1166
1172
|
*/
|
|
1167
1173
|
updatedAt: number;
|
|
1168
1174
|
|
|
1175
|
+
/**
|
|
1176
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
1177
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
1178
|
+
*/
|
|
1179
|
+
captchaImageUrl?: string;
|
|
1180
|
+
|
|
1169
1181
|
/**
|
|
1170
1182
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
1171
1183
|
* one)
|
|
@@ -1182,6 +1194,20 @@ export namespace TrainActionResponse {
|
|
|
1182
1194
|
*/
|
|
1183
1195
|
remainingTimeMs?: number;
|
|
1184
1196
|
|
|
1197
|
+
/**
|
|
1198
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
1199
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
1200
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
1201
|
+
* user understands why they're back here.
|
|
1202
|
+
*/
|
|
1203
|
+
retryableError?: string;
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
1207
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
1208
|
+
*/
|
|
1209
|
+
retryCount?: number;
|
|
1210
|
+
|
|
1185
1211
|
/**
|
|
1186
1212
|
* The timestamp in millisecond marking the start of the process
|
|
1187
1213
|
*/
|
|
@@ -1530,7 +1556,7 @@ export namespace TrainTriggerResponse {
|
|
|
1530
1556
|
/**
|
|
1531
1557
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
1532
1558
|
*/
|
|
1533
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
1559
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
1534
1560
|
|
|
1535
1561
|
/**
|
|
1536
1562
|
* The type of the job for the node.
|
|
@@ -3437,13 +3463,25 @@ export namespace TrainTriggerResponse {
|
|
|
3437
3463
|
/**
|
|
3438
3464
|
* The stage of the request
|
|
3439
3465
|
*/
|
|
3440
|
-
stage:
|
|
3466
|
+
stage:
|
|
3467
|
+
| 'pending'
|
|
3468
|
+
| 'pending-captcha'
|
|
3469
|
+
| 'queued-for-train'
|
|
3470
|
+
| 'ready-for-captcha'
|
|
3471
|
+
| 'running-train'
|
|
3472
|
+
| 'starting-train';
|
|
3441
3473
|
|
|
3442
3474
|
/**
|
|
3443
3475
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
3444
3476
|
*/
|
|
3445
3477
|
updatedAt: number;
|
|
3446
3478
|
|
|
3479
|
+
/**
|
|
3480
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
3481
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
3482
|
+
*/
|
|
3483
|
+
captchaImageUrl?: string;
|
|
3484
|
+
|
|
3447
3485
|
/**
|
|
3448
3486
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
3449
3487
|
* one)
|
|
@@ -3460,6 +3498,20 @@ export namespace TrainTriggerResponse {
|
|
|
3460
3498
|
*/
|
|
3461
3499
|
remainingTimeMs?: number;
|
|
3462
3500
|
|
|
3501
|
+
/**
|
|
3502
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
3503
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
3504
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
3505
|
+
* user understands why they're back here.
|
|
3506
|
+
*/
|
|
3507
|
+
retryableError?: string;
|
|
3508
|
+
|
|
3509
|
+
/**
|
|
3510
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
3511
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
3512
|
+
*/
|
|
3513
|
+
retryCount?: number;
|
|
3514
|
+
|
|
3463
3515
|
/**
|
|
3464
3516
|
* The timestamp in millisecond marking the start of the process
|
|
3465
3517
|
*/
|
package/src/resources/usages.ts
CHANGED
|
@@ -780,7 +780,7 @@ export namespace UsageListResponse {
|
|
|
780
780
|
/**
|
|
781
781
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
782
782
|
*/
|
|
783
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
783
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
784
784
|
|
|
785
785
|
/**
|
|
786
786
|
* The type of the job for the node.
|
|
@@ -85,7 +85,10 @@ export class Workflows extends APIResource {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Respond to a user-approval node in a workflow. Pass action="approve" (default)
|
|
89
|
+
* to advance the workflow, or action="reject" to mark the node Rejected. A
|
|
90
|
+
* rejected stand-alone node cancels the workflow; a rejected ForEach iteration
|
|
91
|
+
* cascades to the surrounding loop.
|
|
89
92
|
*/
|
|
90
93
|
userApproval(
|
|
91
94
|
workflowID: string,
|
|
@@ -5580,7 +5583,7 @@ export namespace WorkflowRunResponse {
|
|
|
5580
5583
|
/**
|
|
5581
5584
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
5582
5585
|
*/
|
|
5583
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
5586
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
5584
5587
|
|
|
5585
5588
|
/**
|
|
5586
5589
|
* The type of the job for the node.
|
|
@@ -7866,7 +7869,7 @@ export namespace WorkflowUserApprovalResponse {
|
|
|
7866
7869
|
/**
|
|
7867
7870
|
* The status of the node. Only available for WorkflowJob nodes.
|
|
7868
7871
|
*/
|
|
7869
|
-
status: 'failure' | 'pending' | 'processing' | 'skipped' | 'success';
|
|
7872
|
+
status: 'failure' | 'pending' | 'processing' | 'rejected' | 'skipped' | 'success';
|
|
7870
7873
|
|
|
7871
7874
|
/**
|
|
7872
7875
|
* The type of the job for the node.
|
|
@@ -9788,7 +9791,7 @@ export interface WorkflowListParams extends WorkflowsCursorParams {
|
|
|
9788
9791
|
|
|
9789
9792
|
export interface WorkflowApproveUserParams {
|
|
9790
9793
|
/**
|
|
9791
|
-
* The ID of the user approval node to
|
|
9794
|
+
* The ID of the user approval node to act on in the workflow
|
|
9792
9795
|
*/
|
|
9793
9796
|
nodeId: string;
|
|
9794
9797
|
|
|
@@ -9796,6 +9799,14 @@ export interface WorkflowApproveUserParams {
|
|
|
9796
9799
|
* The ID of the workflow job that contains the user approval node
|
|
9797
9800
|
*/
|
|
9798
9801
|
workflowJobId: string;
|
|
9802
|
+
|
|
9803
|
+
/**
|
|
9804
|
+
* Decision taken on the approval node. "approve" marks it Success and advances the
|
|
9805
|
+
* workflow; "reject" marks it Rejected and either cancels the workflow or — if the
|
|
9806
|
+
* node is inside a ForEach iteration — cascades to the loop. Defaults to "approve"
|
|
9807
|
+
* for backward compatibility.
|
|
9808
|
+
*/
|
|
9809
|
+
action?: 'approve' | 'reject';
|
|
9799
9810
|
}
|
|
9800
9811
|
|
|
9801
9812
|
export interface WorkflowGetTagsParams {
|
|
@@ -9817,7 +9828,7 @@ export interface WorkflowRunParams {
|
|
|
9817
9828
|
|
|
9818
9829
|
export interface WorkflowUserApprovalParams {
|
|
9819
9830
|
/**
|
|
9820
|
-
* The ID of the user approval node to
|
|
9831
|
+
* The ID of the user approval node to act on in the workflow
|
|
9821
9832
|
*/
|
|
9822
9833
|
nodeId: string;
|
|
9823
9834
|
|
|
@@ -9825,6 +9836,14 @@ export interface WorkflowUserApprovalParams {
|
|
|
9825
9836
|
* The ID of the workflow job that contains the user approval node
|
|
9826
9837
|
*/
|
|
9827
9838
|
workflowJobId: string;
|
|
9839
|
+
|
|
9840
|
+
/**
|
|
9841
|
+
* Decision taken on the approval node. "approve" marks it Success and advances the
|
|
9842
|
+
* workflow; "reject" marks it Rejected and either cancels the workflow or — if the
|
|
9843
|
+
* node is inside a ForEach iteration — cascades to the loop. Defaults to "approve"
|
|
9844
|
+
* for backward compatibility.
|
|
9845
|
+
*/
|
|
9846
|
+
action?: 'approve' | 'reject';
|
|
9828
9847
|
}
|
|
9829
9848
|
|
|
9830
9849
|
export declare namespace Workflows {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.3.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.3.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|