@anuragpal02/zcl-contracts 0.11.0 → 0.12.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 +13 -0
- package/dist/generation.d.ts.map +1 -1
- package/dist/generation.js +7 -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>;
|
|
@@ -91,6 +99,10 @@ export declare const createGenerationJobRequestSchema: z.ZodObject<{
|
|
|
91
99
|
sourceAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
100
|
ledMapVersion: z.ZodOptional<z.ZodNumber>;
|
|
93
101
|
size: z.ZodOptional<z.ZodString>;
|
|
102
|
+
aspect: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
"16:9": "16:9";
|
|
104
|
+
"9:16": "9:16";
|
|
105
|
+
}>>;
|
|
94
106
|
enhance: z.ZodOptional<z.ZodBoolean>;
|
|
95
107
|
count: z.ZodDefault<z.ZodNumber>;
|
|
96
108
|
}, z.core.$strip>;
|
|
@@ -261,6 +273,7 @@ export declare const listGenerationJobsResponseSchema: z.ZodObject<{
|
|
|
261
273
|
}, z.core.$strip>;
|
|
262
274
|
export type GenerationJobStatus = z.infer<typeof generationJobStatusSchema>;
|
|
263
275
|
export type GenerationJobType = z.infer<typeof generationJobTypeSchema>;
|
|
276
|
+
export type ImageAspect = z.infer<typeof imageAspectSchema>;
|
|
264
277
|
export type ImageGenerateParams = z.infer<typeof imageGenerateParamsSchema>;
|
|
265
278
|
export type EditGenerationJobRequest = z.input<typeof editGenerationJobRequestSchema>;
|
|
266
279
|
export type CreatePanelSetRequest = z.input<typeof createPanelSetRequestSchema>;
|
package/dist/generation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../src/generation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,yBAAyB;;;;;;EAAmE,CAAA;AAEzG,eAAO,MAAM,uBAAuB;;;;;;;;;EASlC,CAAA;
|
|
1
|
+
{"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../src/generation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,yBAAyB;;;;;;EAAmE,CAAA;AAEzG,eAAO,MAAM,uBAAuB;;;;;;;;;EASlC,CAAA;AAKF,eAAO,MAAM,iBAAiB;;;EAA2B,CAAA;AAEzD,eAAO,MAAM,yBAAyB;;;;;;;;;;;iBAUpC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;iBAIzC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;iBAMv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C,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC/D,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACzF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACnF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC/E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACzF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,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
|
});
|