@clickraft/cli 0.13.0 → 0.14.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 +4 -10
- package/README.md +10 -0
- package/dist/cli.js +8 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -235,6 +235,10 @@ var GenerateCreateRequestSchema = z6.object({
|
|
|
235
235
|
"resolution must match WxH (e.g. 1280x720), p-token (e.g. 720p), or K-token (e.g. 1K)"
|
|
236
236
|
).optional(),
|
|
237
237
|
durationSeconds: z6.number().int().min(1).max(60).optional(),
|
|
238
|
+
// The model's quality tier (e.g. 'low' | 'medium' | 'high'). The valid set is
|
|
239
|
+
// per model, so it is checked server-side: an unoffered value returns 400
|
|
240
|
+
// INPUT_INVALID_FORMAT with the supported options in `details.allowed`.
|
|
241
|
+
quality: z6.string().min(1).max(40).optional(),
|
|
238
242
|
width: z6.number().int().min(64).max(8192).optional(),
|
|
239
243
|
height: z6.number().int().min(64).max(8192).optional(),
|
|
240
244
|
providerParams: z6.record(z6.string(), z6.unknown()).optional()
|
|
@@ -2245,6 +2249,7 @@ function buildRequestBody(args) {
|
|
|
2245
2249
|
if (args.aspectRatio !== void 0) input.aspectRatio = args.aspectRatio;
|
|
2246
2250
|
if (args.resolution !== void 0) input.resolution = args.resolution;
|
|
2247
2251
|
if (args.durationSeconds !== void 0) input.durationSeconds = args.durationSeconds;
|
|
2252
|
+
if (args.quality !== void 0) input.quality = args.quality;
|
|
2248
2253
|
if (args.brandModels !== void 0 && args.brandModels.length > 0) {
|
|
2249
2254
|
input.providerParams = {
|
|
2250
2255
|
brandModels: args.brandModels.map((spec) => {
|
|
@@ -4627,6 +4632,7 @@ function renderCommandHelp(command) {
|
|
|
4627
4632
|
" --aspect-ratio <a:b> e.g. 16:9",
|
|
4628
4633
|
" --resolution <size> e.g. 1024x768, 720p, 1K",
|
|
4629
4634
|
" --duration-seconds <n> For video/audio models (1-60)",
|
|
4635
|
+
" --quality <tier> e.g. low, medium, high (valid values depend on the model)",
|
|
4630
4636
|
" --workflow-id <uuid> Attach to an existing workflow",
|
|
4631
4637
|
" --node-id <id> Attach to a specific node",
|
|
4632
4638
|
" --no-wait, --async Return immediately with the jobId",
|
|
@@ -4945,6 +4951,7 @@ async function runGenerateCreate(argv, ctx, rc) {
|
|
|
4945
4951
|
"aspect-ratio",
|
|
4946
4952
|
"resolution",
|
|
4947
4953
|
"duration-seconds",
|
|
4954
|
+
"quality",
|
|
4948
4955
|
"workflow-id",
|
|
4949
4956
|
"node-id",
|
|
4950
4957
|
"timeout"
|
|
@@ -4968,6 +4975,7 @@ async function runGenerateCreate(argv, ctx, rc) {
|
|
|
4968
4975
|
aspectRatio: parsed.string["aspect-ratio"],
|
|
4969
4976
|
resolution: parsed.string.resolution,
|
|
4970
4977
|
durationSeconds: optionalInt(parsed.string["duration-seconds"], "duration-seconds"),
|
|
4978
|
+
quality: parsed.string.quality,
|
|
4971
4979
|
brandModels,
|
|
4972
4980
|
products,
|
|
4973
4981
|
workflowId: parsed.string["workflow-id"],
|