@anuragpal02/zcl-contracts 0.11.0 → 0.13.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/dist/generation.d.ts +17 -0
- package/dist/generation.d.ts.map +1 -1
- package/dist/generation.js +13 -0
- package/package.json +1 -1
package/dist/generation.d.ts
CHANGED
|
@@ -16,11 +16,19 @@ export declare const generationJobTypeSchema: z.ZodEnum<{
|
|
|
16
16
|
"video.loop": "video.loop";
|
|
17
17
|
"video.upscale": "video.upscale";
|
|
18
18
|
}>;
|
|
19
|
+
export declare const imageAspectSchema: z.ZodEnum<{
|
|
20
|
+
"16:9": "16:9";
|
|
21
|
+
"9:16": "9:16";
|
|
22
|
+
}>;
|
|
19
23
|
export declare const imageGenerateParamsSchema: z.ZodObject<{
|
|
20
24
|
prompt: z.ZodString;
|
|
21
25
|
sourceAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
26
|
ledMapVersion: z.ZodOptional<z.ZodNumber>;
|
|
23
27
|
size: z.ZodOptional<z.ZodString>;
|
|
28
|
+
aspect: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
"16:9": "16:9";
|
|
30
|
+
"9:16": "9:16";
|
|
31
|
+
}>>;
|
|
24
32
|
enhance: z.ZodOptional<z.ZodBoolean>;
|
|
25
33
|
count: z.ZodDefault<z.ZodNumber>;
|
|
26
34
|
}, z.core.$strip>;
|
|
@@ -53,6 +61,9 @@ export declare const createVideoLoopRequestSchema: z.ZodObject<{
|
|
|
53
61
|
dynamic: "dynamic";
|
|
54
62
|
}>>;
|
|
55
63
|
}, z.core.$strip>;
|
|
64
|
+
export declare const createVideoUpscaleRequestSchema: z.ZodObject<{
|
|
65
|
+
sourceJobId: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
56
67
|
export declare const generationJobSchema: z.ZodObject<{
|
|
57
68
|
id: z.ZodString;
|
|
58
69
|
workspaceId: z.ZodString;
|
|
@@ -91,6 +102,10 @@ export declare const createGenerationJobRequestSchema: z.ZodObject<{
|
|
|
91
102
|
sourceAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
103
|
ledMapVersion: z.ZodOptional<z.ZodNumber>;
|
|
93
104
|
size: z.ZodOptional<z.ZodString>;
|
|
105
|
+
aspect: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
"16:9": "16:9";
|
|
107
|
+
"9:16": "9:16";
|
|
108
|
+
}>>;
|
|
94
109
|
enhance: z.ZodOptional<z.ZodBoolean>;
|
|
95
110
|
count: z.ZodDefault<z.ZodNumber>;
|
|
96
111
|
}, z.core.$strip>;
|
|
@@ -261,11 +276,13 @@ export declare const listGenerationJobsResponseSchema: z.ZodObject<{
|
|
|
261
276
|
}, z.core.$strip>;
|
|
262
277
|
export type GenerationJobStatus = z.infer<typeof generationJobStatusSchema>;
|
|
263
278
|
export type GenerationJobType = z.infer<typeof generationJobTypeSchema>;
|
|
279
|
+
export type ImageAspect = z.infer<typeof imageAspectSchema>;
|
|
264
280
|
export type ImageGenerateParams = z.infer<typeof imageGenerateParamsSchema>;
|
|
265
281
|
export type EditGenerationJobRequest = z.input<typeof editGenerationJobRequestSchema>;
|
|
266
282
|
export type CreatePanelSetRequest = z.input<typeof createPanelSetRequestSchema>;
|
|
267
283
|
export type CropFractions = z.infer<typeof cropFractionsSchema>;
|
|
268
284
|
export type CreateVideoLoopRequest = z.input<typeof createVideoLoopRequestSchema>;
|
|
285
|
+
export type CreateVideoUpscaleRequest = z.input<typeof createVideoUpscaleRequestSchema>;
|
|
269
286
|
export type GenerationJob = z.infer<typeof generationJobSchema>;
|
|
270
287
|
export type CreateGenerationJobRequest = z.input<typeof createGenerationJobRequestSchema>;
|
|
271
288
|
export type ListGenerationJobsQuery = z.input<typeof listGenerationJobsQuerySchema>;
|
package/dist/generation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../src/generation.ts"],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AC,CAAA;AACnE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
|
package/dist/generation.js
CHANGED
|
@@ -12,11 +12,18 @@ export const generationJobTypeSchema = z.enum([
|
|
|
12
12
|
'video.loop',
|
|
13
13
|
'video.upscale'
|
|
14
14
|
]);
|
|
15
|
+
// Explicit output aspect for the concept-first "master" generation. The two ratios the
|
|
16
|
+
// image model supports for a free concept; the LED MAP step later fits the chosen master
|
|
17
|
+
// onto panels (per-panel companion generation), so a master is generated map-independently.
|
|
18
|
+
export const imageAspectSchema = z.enum(['16:9', '9:16']);
|
|
15
19
|
export const imageGenerateParamsSchema = z.object({
|
|
16
20
|
prompt: z.string().trim().min(1).max(4000),
|
|
17
21
|
sourceAssetIds: z.array(idSchema).max(16).optional(),
|
|
18
22
|
ledMapVersion: z.number().int().nonnegative().optional(),
|
|
19
23
|
size: z.string().trim().min(1).max(32).optional(), // server may override from the LED map
|
|
24
|
+
// Concept-first master aspect. When set, the server uses THIS instead of deriving the
|
|
25
|
+
// aspect from the LED map; omitted = LED-derived (the existing whole-wall generate path).
|
|
26
|
+
aspect: imageAspectSchema.optional(),
|
|
20
27
|
enhance: z.boolean().optional(),
|
|
21
28
|
count: z.number().int().min(1).max(4).default(1)
|
|
22
29
|
});
|
|
@@ -42,6 +49,12 @@ export const createVideoLoopRequestSchema = z.object({
|
|
|
42
49
|
cropFractions: cropFractionsSchema.optional(),
|
|
43
50
|
intensity: z.enum(['subtle', 'medium', 'dynamic']).default('medium')
|
|
44
51
|
});
|
|
52
|
+
// 4K upscale (Topaz Video API) of a FINISHED video.loop. The user picks a succeeded loop;
|
|
53
|
+
// the server resolves its `video_final` + the LED-map width and targets the map width
|
|
54
|
+
// (4K floor, capped at Topaz's 8192px limit), preserving the clip's aspect.
|
|
55
|
+
export const createVideoUpscaleRequestSchema = z.object({
|
|
56
|
+
sourceJobId: idSchema
|
|
57
|
+
});
|
|
45
58
|
export const generationJobSchema = z.object({
|
|
46
59
|
id: idSchema,
|
|
47
60
|
workspaceId: idSchema,
|