@scenario-labs/sdk 2.2.1 → 2.4.0-alpha.1
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 +35 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +9 -1
- package/client.js.map +1 -1
- package/client.mjs +9 -1
- package/client.mjs.map +1 -1
- 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 +8 -2
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts +8 -2
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +83 -19
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +83 -19
- 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 +9 -3
- 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 +594 -10
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +594 -10
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.js +2 -2
- package/resources/generate.js.map +1 -1
- package/resources/generate.mjs +2 -2
- package/resources/generate.mjs.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 +106 -3
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +106 -3
- package/resources/models/train.d.ts.map +1 -1
- package/resources/usages.d.mts +23 -3
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +23 -3
- 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/client.ts +9 -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 +128 -19
- package/src/lib/workflow_import_validator.ts +3 -1
- package/src/resources/assets/assets.ts +1 -1
- package/src/resources/generate.ts +713 -12
- 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 +138 -3
- package/src/resources/usages.ts +27 -1
- package/src/resources/workflows.ts +24 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -914,11 +914,16 @@ export declare namespace ModelCreateResponse {
|
|
|
914
914
|
/**
|
|
915
915
|
* The stage of the request
|
|
916
916
|
*/
|
|
917
|
-
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
917
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'ready-for-captcha' | 'running-train' | 'starting-train';
|
|
918
918
|
/**
|
|
919
919
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
920
920
|
*/
|
|
921
921
|
updatedAt: number;
|
|
922
|
+
/**
|
|
923
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
924
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
925
|
+
*/
|
|
926
|
+
captchaImageUrl?: string;
|
|
922
927
|
/**
|
|
923
928
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
924
929
|
* one)
|
|
@@ -932,6 +937,18 @@ export declare namespace ModelCreateResponse {
|
|
|
932
937
|
* The remaining time in milliseconds
|
|
933
938
|
*/
|
|
934
939
|
remainingTimeMs?: number;
|
|
940
|
+
/**
|
|
941
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
942
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
943
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
944
|
+
* user understands why they're back here.
|
|
945
|
+
*/
|
|
946
|
+
retryableError?: string;
|
|
947
|
+
/**
|
|
948
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
949
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
950
|
+
*/
|
|
951
|
+
retryCount?: number;
|
|
935
952
|
/**
|
|
936
953
|
* The timestamp in millisecond marking the start of the process
|
|
937
954
|
*/
|
|
@@ -1918,11 +1935,16 @@ export declare namespace ModelRetrieveResponse {
|
|
|
1918
1935
|
/**
|
|
1919
1936
|
* The stage of the request
|
|
1920
1937
|
*/
|
|
1921
|
-
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
1938
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'ready-for-captcha' | 'running-train' | 'starting-train';
|
|
1922
1939
|
/**
|
|
1923
1940
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
1924
1941
|
*/
|
|
1925
1942
|
updatedAt: number;
|
|
1943
|
+
/**
|
|
1944
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
1945
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
1946
|
+
*/
|
|
1947
|
+
captchaImageUrl?: string;
|
|
1926
1948
|
/**
|
|
1927
1949
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
1928
1950
|
* one)
|
|
@@ -1936,6 +1958,18 @@ export declare namespace ModelRetrieveResponse {
|
|
|
1936
1958
|
* The remaining time in milliseconds
|
|
1937
1959
|
*/
|
|
1938
1960
|
remainingTimeMs?: number;
|
|
1961
|
+
/**
|
|
1962
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
1963
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
1964
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
1965
|
+
* user understands why they're back here.
|
|
1966
|
+
*/
|
|
1967
|
+
retryableError?: string;
|
|
1968
|
+
/**
|
|
1969
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
1970
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
1971
|
+
*/
|
|
1972
|
+
retryCount?: number;
|
|
1939
1973
|
/**
|
|
1940
1974
|
* The timestamp in millisecond marking the start of the process
|
|
1941
1975
|
*/
|
|
@@ -2922,11 +2956,16 @@ export declare namespace ModelUpdateResponse {
|
|
|
2922
2956
|
/**
|
|
2923
2957
|
* The stage of the request
|
|
2924
2958
|
*/
|
|
2925
|
-
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
2959
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'ready-for-captcha' | 'running-train' | 'starting-train';
|
|
2926
2960
|
/**
|
|
2927
2961
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
2928
2962
|
*/
|
|
2929
2963
|
updatedAt: number;
|
|
2964
|
+
/**
|
|
2965
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
2966
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
2967
|
+
*/
|
|
2968
|
+
captchaImageUrl?: string;
|
|
2930
2969
|
/**
|
|
2931
2970
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
2932
2971
|
* one)
|
|
@@ -2940,6 +2979,18 @@ export declare namespace ModelUpdateResponse {
|
|
|
2940
2979
|
* The remaining time in milliseconds
|
|
2941
2980
|
*/
|
|
2942
2981
|
remainingTimeMs?: number;
|
|
2982
|
+
/**
|
|
2983
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
2984
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
2985
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
2986
|
+
* user understands why they're back here.
|
|
2987
|
+
*/
|
|
2988
|
+
retryableError?: string;
|
|
2989
|
+
/**
|
|
2990
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
2991
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
2992
|
+
*/
|
|
2993
|
+
retryCount?: number;
|
|
2943
2994
|
/**
|
|
2944
2995
|
* The timestamp in millisecond marking the start of the process
|
|
2945
2996
|
*/
|
|
@@ -3922,11 +3973,16 @@ export declare namespace ModelListResponse {
|
|
|
3922
3973
|
/**
|
|
3923
3974
|
* The stage of the request
|
|
3924
3975
|
*/
|
|
3925
|
-
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
3976
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'ready-for-captcha' | 'running-train' | 'starting-train';
|
|
3926
3977
|
/**
|
|
3927
3978
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
3928
3979
|
*/
|
|
3929
3980
|
updatedAt: number;
|
|
3981
|
+
/**
|
|
3982
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
3983
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
3984
|
+
*/
|
|
3985
|
+
captchaImageUrl?: string;
|
|
3930
3986
|
/**
|
|
3931
3987
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
3932
3988
|
* one)
|
|
@@ -3940,6 +3996,18 @@ export declare namespace ModelListResponse {
|
|
|
3940
3996
|
* The remaining time in milliseconds
|
|
3941
3997
|
*/
|
|
3942
3998
|
remainingTimeMs?: number;
|
|
3999
|
+
/**
|
|
4000
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
4001
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
4002
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
4003
|
+
* user understands why they're back here.
|
|
4004
|
+
*/
|
|
4005
|
+
retryableError?: string;
|
|
4006
|
+
/**
|
|
4007
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
4008
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
4009
|
+
*/
|
|
4010
|
+
retryCount?: number;
|
|
3943
4011
|
/**
|
|
3944
4012
|
* The timestamp in millisecond marking the start of the process
|
|
3945
4013
|
*/
|
|
@@ -4926,11 +4994,16 @@ export declare namespace ModelCopyResponse {
|
|
|
4926
4994
|
/**
|
|
4927
4995
|
* The stage of the request
|
|
4928
4996
|
*/
|
|
4929
|
-
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
4997
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'ready-for-captcha' | 'running-train' | 'starting-train';
|
|
4930
4998
|
/**
|
|
4931
4999
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
4932
5000
|
*/
|
|
4933
5001
|
updatedAt: number;
|
|
5002
|
+
/**
|
|
5003
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
5004
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
5005
|
+
*/
|
|
5006
|
+
captchaImageUrl?: string;
|
|
4934
5007
|
/**
|
|
4935
5008
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
4936
5009
|
* one)
|
|
@@ -4944,6 +5017,18 @@ export declare namespace ModelCopyResponse {
|
|
|
4944
5017
|
* The remaining time in milliseconds
|
|
4945
5018
|
*/
|
|
4946
5019
|
remainingTimeMs?: number;
|
|
5020
|
+
/**
|
|
5021
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
5022
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
5023
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
5024
|
+
* user understands why they're back here.
|
|
5025
|
+
*/
|
|
5026
|
+
retryableError?: string;
|
|
5027
|
+
/**
|
|
5028
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
5029
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
5030
|
+
*/
|
|
5031
|
+
retryCount?: number;
|
|
4947
5032
|
/**
|
|
4948
5033
|
* The timestamp in millisecond marking the start of the process
|
|
4949
5034
|
*/
|
|
@@ -5937,11 +6022,16 @@ export declare namespace ModelGetBulkResponse {
|
|
|
5937
6022
|
/**
|
|
5938
6023
|
* The stage of the request
|
|
5939
6024
|
*/
|
|
5940
|
-
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
6025
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'ready-for-captcha' | 'running-train' | 'starting-train';
|
|
5941
6026
|
/**
|
|
5942
6027
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
5943
6028
|
*/
|
|
5944
6029
|
updatedAt: number;
|
|
6030
|
+
/**
|
|
6031
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
6032
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
6033
|
+
*/
|
|
6034
|
+
captchaImageUrl?: string;
|
|
5945
6035
|
/**
|
|
5946
6036
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
5947
6037
|
* one)
|
|
@@ -5955,6 +6045,18 @@ export declare namespace ModelGetBulkResponse {
|
|
|
5955
6045
|
* The remaining time in milliseconds
|
|
5956
6046
|
*/
|
|
5957
6047
|
remainingTimeMs?: number;
|
|
6048
|
+
/**
|
|
6049
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
6050
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
6051
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
6052
|
+
* user understands why they're back here.
|
|
6053
|
+
*/
|
|
6054
|
+
retryableError?: string;
|
|
6055
|
+
/**
|
|
6056
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
6057
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
6058
|
+
*/
|
|
6059
|
+
retryCount?: number;
|
|
5958
6060
|
/**
|
|
5959
6061
|
* The timestamp in millisecond marking the start of the process
|
|
5960
6062
|
*/
|
|
@@ -6941,11 +7043,16 @@ export declare namespace ModelTransferResponse {
|
|
|
6941
7043
|
/**
|
|
6942
7044
|
* The stage of the request
|
|
6943
7045
|
*/
|
|
6944
|
-
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
7046
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'ready-for-captcha' | 'running-train' | 'starting-train';
|
|
6945
7047
|
/**
|
|
6946
7048
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
6947
7049
|
*/
|
|
6948
7050
|
updatedAt: number;
|
|
7051
|
+
/**
|
|
7052
|
+
* Signed URL of the captcha image to read aloud during PVC voice cloning. Only
|
|
7053
|
+
* present when stage === 'pending-captcha'. Overwritten on each retry.
|
|
7054
|
+
*/
|
|
7055
|
+
captchaImageUrl?: string;
|
|
6949
7056
|
/**
|
|
6950
7057
|
* Position of the job in the queue (ie. the number of job in the queue before this
|
|
6951
7058
|
* one)
|
|
@@ -6959,6 +7066,18 @@ export declare namespace ModelTransferResponse {
|
|
|
6959
7066
|
* The remaining time in milliseconds
|
|
6960
7067
|
*/
|
|
6961
7068
|
remainingTimeMs?: number;
|
|
7069
|
+
/**
|
|
7070
|
+
* Last recoverable failure message during PVC. Present when the model has bounced
|
|
7071
|
+
* back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
|
|
7072
|
+
* captcha rejected, time limit exceeded). Surface above the retry button so the
|
|
7073
|
+
* user understands why they're back here.
|
|
7074
|
+
*/
|
|
7075
|
+
retryableError?: string;
|
|
7076
|
+
/**
|
|
7077
|
+
* Number of consecutive PVC step 2 / step 3 failures on this voice model. The
|
|
7078
|
+
* model is marked Failed when this reaches the platform's max retries.
|
|
7079
|
+
*/
|
|
7080
|
+
retryCount?: number;
|
|
6962
7081
|
/**
|
|
6963
7082
|
* The timestamp in millisecond marking the start of the process
|
|
6964
7083
|
*/
|