@clickraft/cli 0.10.0 → 0.10.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/dist/index.js CHANGED
@@ -134,7 +134,10 @@ var GenerateCreateRequestSchema = z6.object({
134
134
  referenceImageUrl: z6.string().url().optional(),
135
135
  referenceImages: z6.array(ReferenceImageSchema).max(8).optional(),
136
136
  aspectRatio: z6.string().regex(/^\d+:\d+$/).optional(),
137
- resolution: z6.string().regex(/^\d+x\d+$/).optional(),
137
+ resolution: z6.string().regex(
138
+ /^(\d+x\d+|\d{2,4}p|\d+[Kk])$/,
139
+ "resolution must match WxH (e.g. 1280x720), p-token (e.g. 720p), or K-token (e.g. 1K)"
140
+ ).optional(),
138
141
  durationSeconds: z6.number().int().min(1).max(60).optional(),
139
142
  providerParams: z6.record(z6.string(), z6.unknown()).optional()
140
143
  }).strict(),
@@ -188,7 +191,9 @@ var UploadRequestSchema = z7.object({
188
191
  }).strict();
189
192
  var UploadResponseSchema = z7.object({
190
193
  assetId: z7.string().uuid(),
191
- uploadUrl: z7.string().url(),
194
+ // `z.string()` (not `.url()`): the server emits `uploadUrl: ''` on the
195
+ // dedup branch (`deduplicated: true`) — see server `assets.ts` comment.
196
+ uploadUrl: z7.string(),
192
197
  publicUrl: z7.string().url(),
193
198
  deduplicated: z7.boolean()
194
199
  }).strict();
@@ -4281,7 +4286,7 @@ function renderCommandHelp(command) {
4281
4286
  " Server enforces reference cap per model",
4282
4287
  " --reference-image <v> URL or local path (repeatable, max 8)",
4283
4288
  " --aspect-ratio <a:b> e.g. 16:9",
4284
- " --resolution <WxH> e.g. 1024x768",
4289
+ " --resolution <size> e.g. 1024x768, 720p, 1K",
4285
4290
  " --duration-seconds <n> For video/audio models (1-60)",
4286
4291
  " --workflow-id <uuid> Attach to an existing workflow",
4287
4292
  " --node-id <id> Attach to a specific node",