@scenario-labs/sdk 0.2.0 → 0.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 +26 -0
- package/README.md +4 -2
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js +11 -11
- package/client.js.map +1 -1
- package/client.mjs +11 -11
- 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/internal/request-options.d.mts +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/lib/workflow.d.mts +6 -1
- package/lib/workflow.d.mts.map +1 -1
- package/lib/workflow.d.ts +6 -1
- package/lib/workflow.d.ts.map +1 -1
- package/lib/workflow.js +9 -1
- package/lib/workflow.js.map +1 -1
- package/lib/workflow.mjs +9 -1
- package/lib/workflow.mjs.map +1 -1
- package/lib/workflow_validator.d.mts +22 -0
- package/lib/workflow_validator.d.mts.map +1 -0
- package/lib/workflow_validator.d.ts +22 -0
- package/lib/workflow_validator.d.ts.map +1 -0
- package/lib/workflow_validator.js +124 -0
- package/lib/workflow_validator.js.map +1 -0
- package/lib/workflow_validator.mjs +121 -0
- package/lib/workflow_validator.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +9 -3
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +9 -3
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js +2 -2
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs +2 -2
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/index.d.mts +1 -1
- package/resources/assets/index.d.mts.map +1 -1
- package/resources/assets/index.d.ts +1 -1
- package/resources/assets/index.d.ts.map +1 -1
- package/resources/assets/index.js.map +1 -1
- package/resources/assets/index.mjs.map +1 -1
- package/resources/collections/assets.d.mts +8 -2
- package/resources/collections/assets.d.mts.map +1 -1
- package/resources/collections/assets.d.ts +8 -2
- package/resources/collections/assets.d.ts.map +1 -1
- package/resources/collections/assets.js +2 -2
- package/resources/collections/assets.js.map +1 -1
- package/resources/collections/assets.mjs +2 -2
- package/resources/collections/assets.mjs.map +1 -1
- package/resources/collections/collections.d.mts +4 -4
- package/resources/collections/collections.d.mts.map +1 -1
- package/resources/collections/collections.d.ts +4 -4
- package/resources/collections/collections.d.ts.map +1 -1
- package/resources/collections/collections.js.map +1 -1
- package/resources/collections/collections.mjs.map +1 -1
- package/resources/collections/index.d.mts +2 -2
- package/resources/collections/index.d.mts.map +1 -1
- package/resources/collections/index.d.ts +2 -2
- package/resources/collections/index.d.ts.map +1 -1
- package/resources/collections/index.js.map +1 -1
- package/resources/collections/index.mjs +2 -2
- package/resources/collections/index.mjs.map +1 -1
- package/resources/collections/models.d.mts +8 -2
- package/resources/collections/models.d.mts.map +1 -1
- package/resources/collections/models.d.ts +8 -2
- package/resources/collections/models.d.ts.map +1 -1
- package/resources/collections/models.js +2 -2
- package/resources/collections/models.js.map +1 -1
- package/resources/collections/models.mjs +2 -2
- package/resources/collections/models.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/models/models.d.mts +133 -133
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +133 -133
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/train.d.mts +38 -38
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +38 -38
- package/resources/models/train.d.ts.map +1 -1
- package/src/client.ts +15 -13
- package/src/index.ts +1 -0
- package/src/internal/request-options.ts +1 -1
- package/src/lib/workflow.ts +10 -1
- package/src/lib/workflow_validator.ts +167 -0
- package/src/resources/assets/assets.ts +84 -3
- package/src/resources/assets/index.ts +1 -0
- package/src/resources/collections/assets.ts +14 -2
- package/src/resources/collections/collections.ts +4 -2
- package/src/resources/collections/index.ts +14 -2
- package/src/resources/collections/models.ts +14 -2
- package/src/resources/index.ts +1 -0
- package/src/resources/models/models.ts +140 -140
- package/src/resources/models/train.ts +40 -40
- 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
|
@@ -978,54 +978,54 @@ export namespace TrainActionResponse {
|
|
|
978
978
|
computedAt: string;
|
|
979
979
|
|
|
980
980
|
/**
|
|
981
|
-
*
|
|
981
|
+
* Unique variant identifier (example: "txt2img:1K", "img2video:2K", "txt2audio")
|
|
982
982
|
*/
|
|
983
|
-
|
|
983
|
+
variantKey: string;
|
|
984
984
|
|
|
985
985
|
/**
|
|
986
|
-
*
|
|
986
|
+
* External quality score from arena.ai leaderboard
|
|
987
987
|
*/
|
|
988
|
-
|
|
988
|
+
arenaScore?: Variant.ArenaScore;
|
|
989
989
|
|
|
990
990
|
/**
|
|
991
|
-
*
|
|
991
|
+
* Maximum cost per output asset (CU)
|
|
992
992
|
*/
|
|
993
|
-
|
|
993
|
+
costPerAssetMaxCU?: number;
|
|
994
994
|
|
|
995
995
|
/**
|
|
996
|
-
*
|
|
996
|
+
* Minimum cost per output asset (CU)
|
|
997
997
|
*/
|
|
998
|
-
|
|
998
|
+
costPerAssetMinCU?: number;
|
|
999
999
|
|
|
1000
1000
|
/**
|
|
1001
|
-
*
|
|
1001
|
+
* Median cost per output asset (CU)
|
|
1002
1002
|
*/
|
|
1003
|
-
|
|
1003
|
+
costPerAssetP50CU?: number;
|
|
1004
1004
|
|
|
1005
1005
|
/**
|
|
1006
|
-
*
|
|
1006
|
+
* Inference latency P50 per output asset (seconds)
|
|
1007
1007
|
*/
|
|
1008
|
-
|
|
1008
|
+
inferenceLatencyP50Sec?: number;
|
|
1009
1009
|
|
|
1010
1010
|
/**
|
|
1011
|
-
*
|
|
1011
|
+
* Inference latency P75 per output asset (seconds)
|
|
1012
1012
|
*/
|
|
1013
|
-
|
|
1013
|
+
inferenceLatencyP75Sec?: number;
|
|
1014
1014
|
|
|
1015
1015
|
/**
|
|
1016
|
-
*
|
|
1016
|
+
* The resolution bucket (example: "0.5K", "1K", "2K", "4K")
|
|
1017
1017
|
*/
|
|
1018
|
-
|
|
1018
|
+
resolution?: string;
|
|
1019
1019
|
|
|
1020
1020
|
/**
|
|
1021
|
-
*
|
|
1021
|
+
* Total latency P50 per output asset, including queue time (seconds)
|
|
1022
1022
|
*/
|
|
1023
|
-
|
|
1023
|
+
totalLatencyP50Sec?: number;
|
|
1024
1024
|
|
|
1025
1025
|
/**
|
|
1026
|
-
*
|
|
1026
|
+
* Total latency P75 per output asset, including queue time (seconds)
|
|
1027
1027
|
*/
|
|
1028
|
-
|
|
1028
|
+
totalLatencyP75Sec?: number;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
1031
|
export namespace Variant {
|
|
@@ -3232,54 +3232,54 @@ export namespace TrainTriggerResponse {
|
|
|
3232
3232
|
computedAt: string;
|
|
3233
3233
|
|
|
3234
3234
|
/**
|
|
3235
|
-
*
|
|
3235
|
+
* Unique variant identifier (example: "txt2img:1K", "img2video:2K", "txt2audio")
|
|
3236
3236
|
*/
|
|
3237
|
-
|
|
3237
|
+
variantKey: string;
|
|
3238
3238
|
|
|
3239
3239
|
/**
|
|
3240
|
-
*
|
|
3240
|
+
* External quality score from arena.ai leaderboard
|
|
3241
3241
|
*/
|
|
3242
|
-
|
|
3242
|
+
arenaScore?: Variant.ArenaScore;
|
|
3243
3243
|
|
|
3244
3244
|
/**
|
|
3245
|
-
*
|
|
3245
|
+
* Maximum cost per output asset (CU)
|
|
3246
3246
|
*/
|
|
3247
|
-
|
|
3247
|
+
costPerAssetMaxCU?: number;
|
|
3248
3248
|
|
|
3249
3249
|
/**
|
|
3250
|
-
*
|
|
3250
|
+
* Minimum cost per output asset (CU)
|
|
3251
3251
|
*/
|
|
3252
|
-
|
|
3252
|
+
costPerAssetMinCU?: number;
|
|
3253
3253
|
|
|
3254
3254
|
/**
|
|
3255
|
-
*
|
|
3255
|
+
* Median cost per output asset (CU)
|
|
3256
3256
|
*/
|
|
3257
|
-
|
|
3257
|
+
costPerAssetP50CU?: number;
|
|
3258
3258
|
|
|
3259
3259
|
/**
|
|
3260
|
-
*
|
|
3260
|
+
* Inference latency P50 per output asset (seconds)
|
|
3261
3261
|
*/
|
|
3262
|
-
|
|
3262
|
+
inferenceLatencyP50Sec?: number;
|
|
3263
3263
|
|
|
3264
3264
|
/**
|
|
3265
|
-
*
|
|
3265
|
+
* Inference latency P75 per output asset (seconds)
|
|
3266
3266
|
*/
|
|
3267
|
-
|
|
3267
|
+
inferenceLatencyP75Sec?: number;
|
|
3268
3268
|
|
|
3269
3269
|
/**
|
|
3270
|
-
*
|
|
3270
|
+
* The resolution bucket (example: "0.5K", "1K", "2K", "4K")
|
|
3271
3271
|
*/
|
|
3272
|
-
|
|
3272
|
+
resolution?: string;
|
|
3273
3273
|
|
|
3274
3274
|
/**
|
|
3275
|
-
*
|
|
3275
|
+
* Total latency P50 per output asset, including queue time (seconds)
|
|
3276
3276
|
*/
|
|
3277
|
-
|
|
3277
|
+
totalLatencyP50Sec?: number;
|
|
3278
3278
|
|
|
3279
3279
|
/**
|
|
3280
|
-
*
|
|
3280
|
+
* Total latency P75 per output asset, including queue time (seconds)
|
|
3281
3281
|
*/
|
|
3282
|
-
|
|
3282
|
+
totalLatencyP75Sec?: number;
|
|
3283
3283
|
}
|
|
3284
3284
|
|
|
3285
3285
|
export namespace Variant {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.3.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.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 = '0.
|
|
1
|
+
export const VERSION = '0.3.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|