@pixerate/schemas 1.4.0 → 1.6.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/index.cjs +311 -22
- package/dist/index.d.cts +4552 -588
- package/dist/index.d.ts +4552 -588
- package/dist/index.js +279 -21
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -20,6 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
ActivityActionSchema: () => ActivityActionSchema,
|
|
24
|
+
ActivityLogSchema: () => ActivityLogSchema,
|
|
25
|
+
AestheticSchema: () => AestheticSchema,
|
|
23
26
|
AgentConfigSchema: () => AgentConfigSchema,
|
|
24
27
|
AgentDocumentAttachmentSchema: () => AgentDocumentAttachmentSchema,
|
|
25
28
|
AgentEnvironmentSchema: () => AgentEnvironmentSchema,
|
|
@@ -31,9 +34,17 @@ __export(index_exports, {
|
|
|
31
34
|
AgentToolSchema: () => AgentToolSchema,
|
|
32
35
|
AgentToolTypeSchema: () => AgentToolTypeSchema,
|
|
33
36
|
AspectRatioSchema: () => AspectRatioSchema,
|
|
37
|
+
AudioMixOptionsSchema: () => AudioMixOptionsSchema,
|
|
38
|
+
AudioMixTrackSchema: () => AudioMixTrackSchema,
|
|
34
39
|
CodeGenerationSchema: () => CodeGenerationSchema,
|
|
40
|
+
ComponentDocsSchema: () => ComponentDocsSchema,
|
|
41
|
+
ComponentPackageSchema: () => ComponentPackageSchema,
|
|
35
42
|
ComponentPropDefinitionSchema: () => ComponentPropDefinitionSchema,
|
|
43
|
+
ComponentPropDocSchema: () => ComponentPropDocSchema,
|
|
36
44
|
ComponentSynthesisSchema: () => ComponentSynthesisSchema,
|
|
45
|
+
ComponentTransformationResultSchema: () => ComponentTransformationResultSchema,
|
|
46
|
+
ComponentVariantSchema: () => ComponentVariantSchema,
|
|
47
|
+
ComponentVersionSchema: () => ComponentVersionSchema,
|
|
37
48
|
ConditionOperatorSchema: () => ConditionOperatorSchema,
|
|
38
49
|
ConditionSchema: () => ConditionSchema,
|
|
39
50
|
ControlValidationSchema: () => ControlValidationSchema,
|
|
@@ -52,12 +63,16 @@ __export(index_exports, {
|
|
|
52
63
|
FormStageSchema: () => FormStageSchema,
|
|
53
64
|
FormSubmissionPayloadSchema: () => FormSubmissionPayloadSchema,
|
|
54
65
|
FormValidatorSchema: () => FormValidatorSchema,
|
|
66
|
+
GenerateHarnessOptionsSchema: () => GenerateHarnessOptionsSchema,
|
|
55
67
|
ImageCompositingSchema: () => ImageCompositingSchema,
|
|
56
68
|
ImageGenerationSchema: () => ImageGenerationSchema,
|
|
57
69
|
ImageTextOverlaySchema: () => ImageTextOverlaySchema,
|
|
58
70
|
ImageTransformationSchema: () => ImageTransformationSchema,
|
|
59
71
|
ImageWatermarkSchema: () => ImageWatermarkSchema,
|
|
72
|
+
IngestionInputSchema: () => IngestionInputSchema,
|
|
60
73
|
JsonGenerationSchema: () => JsonGenerationSchema,
|
|
74
|
+
PlatformLanguageSchema: () => PlatformLanguageSchema,
|
|
75
|
+
PreviewHarnessSchema: () => PreviewHarnessSchema,
|
|
61
76
|
QueueJobSchema: () => QueueJobSchema,
|
|
62
77
|
QueueJobStatusSchema: () => QueueJobStatusSchema,
|
|
63
78
|
QueueJobTypeSchema: () => QueueJobTypeSchema,
|
|
@@ -75,17 +90,33 @@ __export(index_exports, {
|
|
|
75
90
|
TechnicalFormSchema: () => TechnicalFormSchema,
|
|
76
91
|
TextAlignmentSchema: () => TextAlignmentSchema,
|
|
77
92
|
TextOverlayPositionSchema: () => TextOverlayPositionSchema,
|
|
93
|
+
TextOverlaySchema: () => TextOverlaySchema,
|
|
94
|
+
TextOverlayStyleSchema: () => TextOverlayStyleSchema,
|
|
95
|
+
ThemeColorsSchema: () => ThemeColorsSchema,
|
|
96
|
+
ThemeIngestionInputSchema: () => ThemeIngestionInputSchema,
|
|
97
|
+
ThemeSchema: () => ThemeSchema,
|
|
98
|
+
ThemeSupportSchema: () => ThemeSupportSchema,
|
|
99
|
+
ThemeTokensSchema: () => ThemeTokensSchema,
|
|
100
|
+
ThemeTypographyTokensSchema: () => ThemeTypographyTokensSchema,
|
|
101
|
+
UIComponentTypeSchema: () => UIComponentTypeSchema,
|
|
78
102
|
VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
|
|
79
103
|
VideoAnalysisSchema: () => VideoAnalysisSchema,
|
|
80
104
|
VideoAspectRatioSchema: () => VideoAspectRatioSchema,
|
|
105
|
+
VideoCompositingSchema: () => VideoCompositingSchema,
|
|
106
|
+
VideoCompressionSchema: () => VideoCompressionSchema,
|
|
81
107
|
VideoFrameImageSchema: () => VideoFrameImageSchema,
|
|
82
108
|
VideoGenerationSchema: () => VideoGenerationSchema,
|
|
109
|
+
VideoOverlayOptionsSchema: () => VideoOverlayOptionsSchema,
|
|
83
110
|
VideoOverlayStyleSchema: () => VideoOverlayStyleSchema,
|
|
111
|
+
VideoPipelineSchema: () => VideoPipelineSchema,
|
|
84
112
|
VideoResolutionSchema: () => VideoResolutionSchema,
|
|
113
|
+
VideoScaleAndPadSchema: () => VideoScaleAndPadSchema,
|
|
85
114
|
VideoTextOverlaySchema: () => VideoTextOverlaySchema,
|
|
115
|
+
VideoTranscodeSchema: () => VideoTranscodeSchema,
|
|
86
116
|
VideoUpscaleSchema: () => VideoUpscaleSchema,
|
|
87
117
|
VideoWatermarkSchema: () => VideoWatermarkSchema,
|
|
88
|
-
WatermarkPositionSchema: () => WatermarkPositionSchema
|
|
118
|
+
WatermarkPositionSchema: () => WatermarkPositionSchema,
|
|
119
|
+
WatermarkSchema: () => WatermarkSchema
|
|
89
120
|
});
|
|
90
121
|
module.exports = __toCommonJS(index_exports);
|
|
91
122
|
var import_zod = require("zod");
|
|
@@ -132,7 +163,7 @@ var VideoUpscaleSchema = import_zod.z.object({
|
|
|
132
163
|
targetResolution: import_zod.z.enum(["1080p", "4k", "1080P", "4K"]).default("1080p"),
|
|
133
164
|
modelName: import_zod.z.string().optional()
|
|
134
165
|
});
|
|
135
|
-
var
|
|
166
|
+
var TextOverlayStyleSchema = import_zod.z.enum([
|
|
136
167
|
"neubrutalist",
|
|
137
168
|
"neubrutalist-dark",
|
|
138
169
|
"badge",
|
|
@@ -140,6 +171,7 @@ var VideoOverlayStyleSchema = import_zod.z.enum([
|
|
|
140
171
|
"custom",
|
|
141
172
|
"none"
|
|
142
173
|
]);
|
|
174
|
+
var VideoOverlayStyleSchema = TextOverlayStyleSchema;
|
|
143
175
|
var WatermarkPositionSchema = import_zod.z.union([
|
|
144
176
|
import_zod.z.enum([
|
|
145
177
|
"bottom-right",
|
|
@@ -153,7 +185,7 @@ var WatermarkPositionSchema = import_zod.z.union([
|
|
|
153
185
|
y: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional()
|
|
154
186
|
})
|
|
155
187
|
]);
|
|
156
|
-
var
|
|
188
|
+
var WatermarkSchema = import_zod.z.object({
|
|
157
189
|
text: import_zod.z.string().optional(),
|
|
158
190
|
imagePath: import_zod.z.string().optional(),
|
|
159
191
|
font: import_zod.z.string().optional(),
|
|
@@ -170,6 +202,8 @@ var VideoWatermarkSchema = import_zod.z.object({
|
|
|
170
202
|
marginLeft: import_zod.z.number().optional(),
|
|
171
203
|
marginTop: import_zod.z.number().optional()
|
|
172
204
|
});
|
|
205
|
+
var VideoWatermarkSchema = WatermarkSchema;
|
|
206
|
+
var ImageWatermarkSchema = WatermarkSchema;
|
|
173
207
|
var TextOverlayPositionSchema = import_zod.z.union([
|
|
174
208
|
import_zod.z.enum(["top", "center", "bottom"]),
|
|
175
209
|
import_zod.z.object({
|
|
@@ -185,9 +219,9 @@ var DropShadowSchema = import_zod.z.object({
|
|
|
185
219
|
color: import_zod.z.string().optional(),
|
|
186
220
|
opacity: import_zod.z.number().optional()
|
|
187
221
|
});
|
|
188
|
-
var
|
|
222
|
+
var TextOverlaySchema = import_zod.z.object({
|
|
189
223
|
text: import_zod.z.string(),
|
|
190
|
-
style:
|
|
224
|
+
style: TextOverlayStyleSchema.optional(),
|
|
191
225
|
font: import_zod.z.string().optional(),
|
|
192
226
|
fontPath: import_zod.z.string().optional(),
|
|
193
227
|
position: TextOverlayPositionSchema.optional(),
|
|
@@ -211,17 +245,70 @@ var VideoTextOverlaySchema = import_zod.z.object({
|
|
|
211
245
|
badgeBgColor: import_zod.z.string().optional(),
|
|
212
246
|
badgeTextColor: import_zod.z.string().optional(),
|
|
213
247
|
badgeFont: import_zod.z.string().optional(),
|
|
248
|
+
badgeFontSize: import_zod.z.number().optional(),
|
|
214
249
|
badgePosition: import_zod.z.enum(["top-left", "top-right", "top-center", "bottom-left", "bottom-right", "bottom-center"]).optional(),
|
|
215
|
-
watermark: import_zod.z.union([import_zod.z.string(),
|
|
250
|
+
watermark: import_zod.z.union([import_zod.z.string(), WatermarkSchema]).optional()
|
|
216
251
|
});
|
|
252
|
+
var VideoTextOverlaySchema = TextOverlaySchema;
|
|
253
|
+
var ImageTextOverlaySchema = TextOverlaySchema;
|
|
217
254
|
var SocialVideoGenerationSchema = import_zod.z.object({
|
|
218
255
|
prompt: import_zod.z.string(),
|
|
219
256
|
audioPrompt: import_zod.z.string().optional(),
|
|
220
257
|
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
221
258
|
durationSeconds: import_zod.z.number().int().optional(),
|
|
222
|
-
hook: import_zod.z.union([import_zod.z.string(),
|
|
223
|
-
watermark: import_zod.z.union([import_zod.z.string(),
|
|
259
|
+
hook: import_zod.z.union([import_zod.z.string(), TextOverlaySchema]).optional(),
|
|
260
|
+
watermark: import_zod.z.union([import_zod.z.string(), WatermarkSchema]).optional()
|
|
224
261
|
});
|
|
262
|
+
var VideoTranscodeSchema = import_zod.z.object({
|
|
263
|
+
crf: import_zod.z.number().min(0).max(51).optional(),
|
|
264
|
+
preset: import_zod.z.string().optional(),
|
|
265
|
+
videoCodec: import_zod.z.string().optional(),
|
|
266
|
+
audioCodec: import_zod.z.string().optional()
|
|
267
|
+
});
|
|
268
|
+
var VideoCompressionSchema = VideoTranscodeSchema;
|
|
269
|
+
var VideoOverlayOptionsSchema = import_zod.z.object({
|
|
270
|
+
x: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
271
|
+
y: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
272
|
+
crf: import_zod.z.number().optional(),
|
|
273
|
+
preset: import_zod.z.string().optional(),
|
|
274
|
+
videoCodec: import_zod.z.string().optional(),
|
|
275
|
+
audioCodec: import_zod.z.string().optional()
|
|
276
|
+
});
|
|
277
|
+
var VideoScaleAndPadSchema = import_zod.z.object({
|
|
278
|
+
width: import_zod.z.number().int().positive(),
|
|
279
|
+
height: import_zod.z.number().int().positive(),
|
|
280
|
+
fit: import_zod.z.enum(["contain", "cover", "fill"]).optional(),
|
|
281
|
+
background: import_zod.z.string().optional(),
|
|
282
|
+
crf: import_zod.z.number().optional(),
|
|
283
|
+
preset: import_zod.z.string().optional(),
|
|
284
|
+
videoCodec: import_zod.z.string().optional(),
|
|
285
|
+
audioCodec: import_zod.z.string().optional()
|
|
286
|
+
});
|
|
287
|
+
var AudioMixTrackSchema = import_zod.z.object({
|
|
288
|
+
path: import_zod.z.string(),
|
|
289
|
+
volume: import_zod.z.number().min(0).max(1).optional(),
|
|
290
|
+
delayMs: import_zod.z.number().optional()
|
|
291
|
+
});
|
|
292
|
+
var AudioMixOptionsSchema = import_zod.z.object({
|
|
293
|
+
tracks: import_zod.z.array(AudioMixTrackSchema),
|
|
294
|
+
videoVolume: import_zod.z.number().optional(),
|
|
295
|
+
crf: import_zod.z.number().optional(),
|
|
296
|
+
preset: import_zod.z.string().optional(),
|
|
297
|
+
videoCodec: import_zod.z.string().optional(),
|
|
298
|
+
audioCodec: import_zod.z.string().optional()
|
|
299
|
+
});
|
|
300
|
+
var VideoPipelineSchema = import_zod.z.object({
|
|
301
|
+
scaleAndPad: VideoScaleAndPadSchema.optional(),
|
|
302
|
+
textOverlay: TextOverlaySchema.optional(),
|
|
303
|
+
watermark: import_zod.z.union([WatermarkSchema, import_zod.z.string()]).optional(),
|
|
304
|
+
imageOverlays: import_zod.z.array(import_zod.z.object({
|
|
305
|
+
imagePath: import_zod.z.string(),
|
|
306
|
+
options: VideoOverlayOptionsSchema.optional()
|
|
307
|
+
})).optional(),
|
|
308
|
+
audioMix: AudioMixOptionsSchema.optional(),
|
|
309
|
+
compress: VideoTranscodeSchema.optional()
|
|
310
|
+
});
|
|
311
|
+
var VideoCompositingSchema = VideoPipelineSchema;
|
|
225
312
|
var ImageGenerationSchema = import_zod.z.object({
|
|
226
313
|
prompt: import_zod.z.string(),
|
|
227
314
|
aspectRatio: AspectRatioSchema.optional(),
|
|
@@ -234,11 +321,9 @@ var ImageTransformationSchema = import_zod.z.object({
|
|
|
234
321
|
aspectRatio: AspectRatioSchema.optional(),
|
|
235
322
|
seed: import_zod.z.number().int().optional()
|
|
236
323
|
});
|
|
237
|
-
var ImageTextOverlaySchema = VideoTextOverlaySchema;
|
|
238
|
-
var ImageWatermarkSchema = VideoWatermarkSchema;
|
|
239
324
|
var ImageCompositingSchema = import_zod.z.object({
|
|
240
|
-
textOverlay:
|
|
241
|
-
watermark:
|
|
325
|
+
textOverlay: TextOverlaySchema.optional(),
|
|
326
|
+
watermark: WatermarkSchema.optional(),
|
|
242
327
|
fit: import_zod.z.enum(["cover", "contain", "fill", "inside", "outside"]).optional(),
|
|
243
328
|
targetWidth: import_zod.z.number().int().optional(),
|
|
244
329
|
targetHeight: import_zod.z.number().int().optional(),
|
|
@@ -266,20 +351,193 @@ var CodeGenerationSchema = import_zod.z.object({
|
|
|
266
351
|
prompt: import_zod.z.string(),
|
|
267
352
|
language: import_zod.z.string()
|
|
268
353
|
});
|
|
269
|
-
var
|
|
354
|
+
var PlatformLanguageSchema = import_zod.z.enum(["svelte", "react", "webcomponent"]);
|
|
355
|
+
var ThemeSupportSchema = import_zod.z.enum(["default", "light-and-dark"]);
|
|
356
|
+
var ComponentPropDocSchema = import_zod.z.object({
|
|
270
357
|
name: import_zod.z.string(),
|
|
271
358
|
type: import_zod.z.string(),
|
|
272
359
|
default: import_zod.z.string().optional(),
|
|
273
|
-
description: import_zod.z.string()
|
|
360
|
+
description: import_zod.z.string()
|
|
361
|
+
});
|
|
362
|
+
var ComponentPropDefinitionSchema = ComponentPropDocSchema;
|
|
363
|
+
var ComponentDocsSchema = import_zod.z.object({
|
|
364
|
+
usage: import_zod.z.string().describe("Usage instructions and import examples"),
|
|
365
|
+
props: import_zod.z.array(ComponentPropDocSchema).describe("List of prop definitions and types"),
|
|
366
|
+
notes: import_zod.z.string().optional().describe("Additional usage or architectural notes")
|
|
367
|
+
});
|
|
368
|
+
var PreviewHarnessSchema = import_zod.z.object({
|
|
369
|
+
driverCode: import_zod.z.string().describe(
|
|
370
|
+
"Complete, runnable preview driver code harness demonstrating usage of the component with snippets/children or mock props"
|
|
371
|
+
),
|
|
372
|
+
mockProps: import_zod.z.record(import_zod.z.any()).describe("JSON map of realistic mock prop values passed to the component"),
|
|
373
|
+
wrapperClass: import_zod.z.string().optional().describe("Tailwind CSS class string for wrapping the preview container")
|
|
374
|
+
});
|
|
375
|
+
var GenerateHarnessOptionsSchema = import_zod.z.object({
|
|
376
|
+
code: import_zod.z.string(),
|
|
377
|
+
language: PlatformLanguageSchema,
|
|
378
|
+
componentName: import_zod.z.string(),
|
|
379
|
+
docsProps: import_zod.z.array(ComponentPropDocSchema).optional()
|
|
274
380
|
});
|
|
275
381
|
var ComponentSynthesisSchema = import_zod.z.object({
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
382
|
+
title: import_zod.z.string().describe("Title of the synthesized component"),
|
|
383
|
+
description: import_zod.z.string().describe("Detailed description of the component"),
|
|
384
|
+
tags: import_zod.z.array(import_zod.z.string()).describe("Keywords and categorization tags"),
|
|
385
|
+
platforms: import_zod.z.object({
|
|
386
|
+
svelte: import_zod.z.string().describe("Self-contained Svelte 5 component with runes ($props, $state, onclick, snippets, etc.)"),
|
|
387
|
+
react: import_zod.z.string().describe("Self-contained React 19 TSX component with all subcomponents defined and exported"),
|
|
388
|
+
webcomponent: import_zod.z.string().describe("Self-contained WebComponent custom element extending HTMLElement")
|
|
389
|
+
}),
|
|
390
|
+
harnesses: import_zod.z.object({
|
|
391
|
+
svelte: PreviewHarnessSchema,
|
|
392
|
+
react: PreviewHarnessSchema,
|
|
393
|
+
webcomponent: PreviewHarnessSchema
|
|
394
|
+
}).optional(),
|
|
395
|
+
docs: ComponentDocsSchema
|
|
396
|
+
});
|
|
397
|
+
var ComponentTransformationResultSchema = import_zod.z.object({
|
|
398
|
+
title: import_zod.z.string(),
|
|
399
|
+
description: import_zod.z.string(),
|
|
400
|
+
tags: import_zod.z.array(import_zod.z.string()),
|
|
401
|
+
platforms: import_zod.z.record(PlatformLanguageSchema, import_zod.z.string()),
|
|
402
|
+
harnesses: import_zod.z.record(PlatformLanguageSchema, PreviewHarnessSchema),
|
|
403
|
+
docs: ComponentDocsSchema,
|
|
404
|
+
detectedLanguage: PlatformLanguageSchema,
|
|
405
|
+
themeSupport: ThemeSupportSchema
|
|
406
|
+
});
|
|
407
|
+
var ComponentPackageSchema = import_zod.z.object({
|
|
408
|
+
language: PlatformLanguageSchema,
|
|
409
|
+
code: import_zod.z.string().describe("Formatted code bundle with trimmed leading whitespace"),
|
|
410
|
+
docs: ComponentDocsSchema,
|
|
411
|
+
screenshot: import_zod.z.string().describe("Data URI or URL of actual rendered component"),
|
|
412
|
+
themeSupport: ThemeSupportSchema,
|
|
413
|
+
tags: import_zod.z.array(import_zod.z.string()),
|
|
414
|
+
previewHarness: PreviewHarnessSchema.optional()
|
|
415
|
+
});
|
|
416
|
+
var UIComponentTypeSchema = import_zod.z.object({
|
|
417
|
+
id: import_zod.z.string().describe("Slug, e.g., 'button'"),
|
|
418
|
+
name: import_zod.z.string().describe("e.g. 'Button'"),
|
|
419
|
+
description: import_zod.z.string().describe("Official description e.g. from Shadcn documentation"),
|
|
420
|
+
tags: import_zod.z.array(import_zod.z.string()).describe("Freeform tags e.g. ['form', 'action']"),
|
|
421
|
+
createdAt: import_zod.z.string().describe("ISO timestamp"),
|
|
422
|
+
updatedAt: import_zod.z.string().describe("ISO timestamp")
|
|
423
|
+
});
|
|
424
|
+
var ComponentVariantSchema = import_zod.z.object({
|
|
425
|
+
id: import_zod.z.string().describe("Slug, e.g., 'glass-card' or 'glassmorphism'"),
|
|
426
|
+
componentTypeId: import_zod.z.string().describe("References UIComponentType.id"),
|
|
427
|
+
name: import_zod.z.string().describe("e.g. 'Glass Action Button'"),
|
|
428
|
+
aestheticId: import_zod.z.string().describe("Style aesthetic, e.g. 'glassmorphism', 'neubrutalism', 'minimalist', 'modern', 'shadcn'"),
|
|
429
|
+
recommendedThemeId: import_zod.z.string().optional().describe("Optional recommended theme ID (e.g., 'shadcn-zinc', 'tokyo-night')"),
|
|
430
|
+
description: import_zod.z.string().optional().describe("Style & business logic description"),
|
|
431
|
+
imageUrl: import_zod.z.string().optional().describe("Optional image URL"),
|
|
432
|
+
image: import_zod.z.string().optional(),
|
|
433
|
+
screenshot: import_zod.z.string().optional(),
|
|
434
|
+
createdAt: import_zod.z.string().describe("ISO timestamp"),
|
|
435
|
+
updatedAt: import_zod.z.string().describe("ISO timestamp")
|
|
436
|
+
});
|
|
437
|
+
var AestheticSchema = ComponentVariantSchema;
|
|
438
|
+
var ComponentVersionSchema = import_zod.z.object({
|
|
439
|
+
id: import_zod.z.string().describe("Unique version ID e.g. 'button-glass-action-button-v1.0.0'"),
|
|
440
|
+
componentTypeId: import_zod.z.string().describe("References UIComponentType.id"),
|
|
441
|
+
variantId: import_zod.z.string().describe("References ComponentVariant.id"),
|
|
442
|
+
aestheticId: import_zod.z.string().describe("References Aesthetic style e.g. 'glassmorphism'"),
|
|
443
|
+
version: import_zod.z.string().describe("Semver e.g. '1.0.0'"),
|
|
444
|
+
changelogNote: import_zod.z.string(),
|
|
445
|
+
createdBy: import_zod.z.string(),
|
|
446
|
+
createdAt: import_zod.z.string().describe("ISO timestamp"),
|
|
447
|
+
packages: import_zod.z.record(PlatformLanguageSchema, ComponentPackageSchema)
|
|
448
|
+
});
|
|
449
|
+
var ActivityActionSchema = import_zod.z.enum([
|
|
450
|
+
"CREATED",
|
|
451
|
+
"UPDATED",
|
|
452
|
+
"REVERTED",
|
|
453
|
+
"PACKAGE_GENERATED",
|
|
454
|
+
"DELETED"
|
|
455
|
+
]);
|
|
456
|
+
var ActivityLogSchema = import_zod.z.object({
|
|
457
|
+
id: import_zod.z.string(),
|
|
458
|
+
componentTypeId: import_zod.z.string(),
|
|
459
|
+
componentTypeName: import_zod.z.string(),
|
|
460
|
+
variantId: import_zod.z.string().optional(),
|
|
461
|
+
aestheticId: import_zod.z.string(),
|
|
462
|
+
action: ActivityActionSchema,
|
|
463
|
+
version: import_zod.z.string(),
|
|
464
|
+
details: import_zod.z.string(),
|
|
465
|
+
timestamp: import_zod.z.string()
|
|
466
|
+
});
|
|
467
|
+
var IngestionInputSchema = import_zod.z.object({
|
|
468
|
+
codeBundle: import_zod.z.string().describe("Raw code bundle provided"),
|
|
469
|
+
css: import_zod.z.string().optional().describe("Optional raw CSS or CSS bundle to extract and inline"),
|
|
470
|
+
componentTypeId: import_zod.z.string().describe("Slug or Name of UI Component Type (e.g., 'button')"),
|
|
471
|
+
variantName: import_zod.z.string().describe("Mandatory Variant Name text input (e.g., 'Glass Action Button')"),
|
|
472
|
+
variantId: import_zod.z.string().optional().describe("Optional custom slug or ID for variant"),
|
|
473
|
+
aestheticId: import_zod.z.string().optional().describe("Dropdown value for aesthetic style (e.g., 'glassmorphism', 'neubrutalism', 'minimalist', 'modern', 'shadcn')"),
|
|
474
|
+
recommendedThemeId: import_zod.z.string().optional().describe("Optional recommended theme ID"),
|
|
475
|
+
componentTypeName: import_zod.z.string().optional().describe("Optional display name if creating new component type"),
|
|
476
|
+
componentTypeDescription: import_zod.z.string().optional().describe("Optional description if creating new component type"),
|
|
477
|
+
variantDescription: import_zod.z.string().optional().describe("Optional description if creating new variant"),
|
|
478
|
+
aestheticName: import_zod.z.string().optional().describe("Optional display name for aesthetic"),
|
|
479
|
+
aestheticDescription: import_zod.z.string().optional().describe("Optional description if creating new aesthetic"),
|
|
480
|
+
sourcePlatform: PlatformLanguageSchema.optional().describe("Optional source platform - detected automatically if omitted"),
|
|
481
|
+
changelogNote: import_zod.z.string().optional(),
|
|
482
|
+
tags: import_zod.z.array(import_zod.z.string()).optional()
|
|
483
|
+
});
|
|
484
|
+
var ThemeColorsSchema = import_zod.z.object({
|
|
485
|
+
primary: import_zod.z.string(),
|
|
486
|
+
primaryForeground: import_zod.z.string().optional(),
|
|
487
|
+
secondary: import_zod.z.string().optional(),
|
|
488
|
+
secondaryForeground: import_zod.z.string().optional(),
|
|
489
|
+
accent: import_zod.z.string().optional(),
|
|
490
|
+
accentForeground: import_zod.z.string().optional(),
|
|
491
|
+
background: import_zod.z.string(),
|
|
492
|
+
foreground: import_zod.z.string(),
|
|
493
|
+
surface: import_zod.z.string().optional(),
|
|
494
|
+
surfaceForeground: import_zod.z.string().optional(),
|
|
495
|
+
muted: import_zod.z.string().optional(),
|
|
496
|
+
mutedForeground: import_zod.z.string().optional(),
|
|
497
|
+
destructive: import_zod.z.string().optional(),
|
|
498
|
+
destructiveForeground: import_zod.z.string().optional(),
|
|
499
|
+
border: import_zod.z.string().optional(),
|
|
500
|
+
ring: import_zod.z.string().optional(),
|
|
501
|
+
customProperties: import_zod.z.record(import_zod.z.string()).optional()
|
|
502
|
+
});
|
|
503
|
+
var ThemeTypographyTokensSchema = import_zod.z.object({
|
|
504
|
+
fontSans: import_zod.z.string().optional(),
|
|
505
|
+
fontMono: import_zod.z.string().optional(),
|
|
506
|
+
fontHeading: import_zod.z.string().optional(),
|
|
507
|
+
fontImports: import_zod.z.array(import_zod.z.string()).optional(),
|
|
508
|
+
fontCss: import_zod.z.string().optional(),
|
|
509
|
+
fontSize: import_zod.z.record(import_zod.z.string()).optional(),
|
|
510
|
+
fontWeight: import_zod.z.record(import_zod.z.string()).optional()
|
|
511
|
+
});
|
|
512
|
+
var ThemeTokensSchema = import_zod.z.object({
|
|
513
|
+
colors: import_zod.z.object({
|
|
514
|
+
light: ThemeColorsSchema,
|
|
515
|
+
dark: ThemeColorsSchema.partial().optional()
|
|
516
|
+
}),
|
|
517
|
+
typography: ThemeTypographyTokensSchema.optional(),
|
|
518
|
+
radii: import_zod.z.record(import_zod.z.string().optional()).optional(),
|
|
519
|
+
spacing: import_zod.z.record(import_zod.z.string()).optional(),
|
|
520
|
+
paddings: import_zod.z.record(import_zod.z.string()).optional(),
|
|
521
|
+
shadows: import_zod.z.record(import_zod.z.string()).optional()
|
|
522
|
+
});
|
|
523
|
+
var ThemeSchema = import_zod.z.object({
|
|
524
|
+
id: import_zod.z.string().describe("e.g. 'shadcn-zinc', 'tokyo-night', 'glassmorphism-cyber'"),
|
|
525
|
+
name: import_zod.z.string().describe("e.g. 'Shadcn Zinc Modern'"),
|
|
526
|
+
description: import_zod.z.string().optional(),
|
|
527
|
+
tokens: ThemeTokensSchema,
|
|
528
|
+
supportsDarkMode: import_zod.z.boolean().optional(),
|
|
529
|
+
isSystem: import_zod.z.boolean().optional(),
|
|
530
|
+
createdAt: import_zod.z.string().describe("ISO timestamp"),
|
|
531
|
+
updatedAt: import_zod.z.string().describe("ISO timestamp")
|
|
532
|
+
});
|
|
533
|
+
var ThemeIngestionInputSchema = import_zod.z.object({
|
|
534
|
+
id: import_zod.z.string().optional(),
|
|
535
|
+
name: import_zod.z.string(),
|
|
536
|
+
description: import_zod.z.string().optional(),
|
|
537
|
+
tokens: ThemeTokensSchema.optional(),
|
|
538
|
+
rawCss: import_zod.z.string().optional(),
|
|
539
|
+
supportsDarkMode: import_zod.z.boolean().optional(),
|
|
540
|
+
isSystem: import_zod.z.boolean().optional()
|
|
283
541
|
});
|
|
284
542
|
var JsonGenerationSchema = import_zod.z.object({
|
|
285
543
|
prompt: import_zod.z.string(),
|
|
@@ -825,6 +1083,9 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
825
1083
|
};
|
|
826
1084
|
// Annotate the CommonJS export names for ESM import in node:
|
|
827
1085
|
0 && (module.exports = {
|
|
1086
|
+
ActivityActionSchema,
|
|
1087
|
+
ActivityLogSchema,
|
|
1088
|
+
AestheticSchema,
|
|
828
1089
|
AgentConfigSchema,
|
|
829
1090
|
AgentDocumentAttachmentSchema,
|
|
830
1091
|
AgentEnvironmentSchema,
|
|
@@ -836,9 +1097,17 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
836
1097
|
AgentToolSchema,
|
|
837
1098
|
AgentToolTypeSchema,
|
|
838
1099
|
AspectRatioSchema,
|
|
1100
|
+
AudioMixOptionsSchema,
|
|
1101
|
+
AudioMixTrackSchema,
|
|
839
1102
|
CodeGenerationSchema,
|
|
1103
|
+
ComponentDocsSchema,
|
|
1104
|
+
ComponentPackageSchema,
|
|
840
1105
|
ComponentPropDefinitionSchema,
|
|
1106
|
+
ComponentPropDocSchema,
|
|
841
1107
|
ComponentSynthesisSchema,
|
|
1108
|
+
ComponentTransformationResultSchema,
|
|
1109
|
+
ComponentVariantSchema,
|
|
1110
|
+
ComponentVersionSchema,
|
|
842
1111
|
ConditionOperatorSchema,
|
|
843
1112
|
ConditionSchema,
|
|
844
1113
|
ControlValidationSchema,
|
|
@@ -857,12 +1126,16 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
857
1126
|
FormStageSchema,
|
|
858
1127
|
FormSubmissionPayloadSchema,
|
|
859
1128
|
FormValidatorSchema,
|
|
1129
|
+
GenerateHarnessOptionsSchema,
|
|
860
1130
|
ImageCompositingSchema,
|
|
861
1131
|
ImageGenerationSchema,
|
|
862
1132
|
ImageTextOverlaySchema,
|
|
863
1133
|
ImageTransformationSchema,
|
|
864
1134
|
ImageWatermarkSchema,
|
|
1135
|
+
IngestionInputSchema,
|
|
865
1136
|
JsonGenerationSchema,
|
|
1137
|
+
PlatformLanguageSchema,
|
|
1138
|
+
PreviewHarnessSchema,
|
|
866
1139
|
QueueJobSchema,
|
|
867
1140
|
QueueJobStatusSchema,
|
|
868
1141
|
QueueJobTypeSchema,
|
|
@@ -880,15 +1153,31 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
880
1153
|
TechnicalFormSchema,
|
|
881
1154
|
TextAlignmentSchema,
|
|
882
1155
|
TextOverlayPositionSchema,
|
|
1156
|
+
TextOverlaySchema,
|
|
1157
|
+
TextOverlayStyleSchema,
|
|
1158
|
+
ThemeColorsSchema,
|
|
1159
|
+
ThemeIngestionInputSchema,
|
|
1160
|
+
ThemeSchema,
|
|
1161
|
+
ThemeSupportSchema,
|
|
1162
|
+
ThemeTokensSchema,
|
|
1163
|
+
ThemeTypographyTokensSchema,
|
|
1164
|
+
UIComponentTypeSchema,
|
|
883
1165
|
VideoAnalysisCategorySchema,
|
|
884
1166
|
VideoAnalysisSchema,
|
|
885
1167
|
VideoAspectRatioSchema,
|
|
1168
|
+
VideoCompositingSchema,
|
|
1169
|
+
VideoCompressionSchema,
|
|
886
1170
|
VideoFrameImageSchema,
|
|
887
1171
|
VideoGenerationSchema,
|
|
1172
|
+
VideoOverlayOptionsSchema,
|
|
888
1173
|
VideoOverlayStyleSchema,
|
|
1174
|
+
VideoPipelineSchema,
|
|
889
1175
|
VideoResolutionSchema,
|
|
1176
|
+
VideoScaleAndPadSchema,
|
|
890
1177
|
VideoTextOverlaySchema,
|
|
1178
|
+
VideoTranscodeSchema,
|
|
891
1179
|
VideoUpscaleSchema,
|
|
892
1180
|
VideoWatermarkSchema,
|
|
893
|
-
WatermarkPositionSchema
|
|
1181
|
+
WatermarkPositionSchema,
|
|
1182
|
+
WatermarkSchema
|
|
894
1183
|
});
|