@pixerate/schemas 1.5.0 → 1.7.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 +125 -13
- package/dist/index.d.cts +2379 -502
- package/dist/index.d.ts +2379 -502
- package/dist/index.js +109 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,8 @@ __export(index_exports, {
|
|
|
34
34
|
AgentToolSchema: () => AgentToolSchema,
|
|
35
35
|
AgentToolTypeSchema: () => AgentToolTypeSchema,
|
|
36
36
|
AspectRatioSchema: () => AspectRatioSchema,
|
|
37
|
+
AudioMixOptionsSchema: () => AudioMixOptionsSchema,
|
|
38
|
+
AudioMixTrackSchema: () => AudioMixTrackSchema,
|
|
37
39
|
CodeGenerationSchema: () => CodeGenerationSchema,
|
|
38
40
|
ComponentDocsSchema: () => ComponentDocsSchema,
|
|
39
41
|
ComponentPackageSchema: () => ComponentPackageSchema,
|
|
@@ -88,6 +90,8 @@ __export(index_exports, {
|
|
|
88
90
|
TechnicalFormSchema: () => TechnicalFormSchema,
|
|
89
91
|
TextAlignmentSchema: () => TextAlignmentSchema,
|
|
90
92
|
TextOverlayPositionSchema: () => TextOverlayPositionSchema,
|
|
93
|
+
TextOverlaySchema: () => TextOverlaySchema,
|
|
94
|
+
TextOverlayStyleSchema: () => TextOverlayStyleSchema,
|
|
91
95
|
ThemeColorsSchema: () => ThemeColorsSchema,
|
|
92
96
|
ThemeIngestionInputSchema: () => ThemeIngestionInputSchema,
|
|
93
97
|
ThemeSchema: () => ThemeSchema,
|
|
@@ -95,17 +99,28 @@ __export(index_exports, {
|
|
|
95
99
|
ThemeTokensSchema: () => ThemeTokensSchema,
|
|
96
100
|
ThemeTypographyTokensSchema: () => ThemeTypographyTokensSchema,
|
|
97
101
|
UIComponentTypeSchema: () => UIComponentTypeSchema,
|
|
102
|
+
UIExtractionResultSchema: () => UIExtractionResultSchema,
|
|
103
|
+
UIGenerationOptionsSchema: () => UIGenerationOptionsSchema,
|
|
104
|
+
UIGenerationResultSchema: () => UIGenerationResultSchema,
|
|
105
|
+
UIValidationResultSchema: () => UIValidationResultSchema,
|
|
98
106
|
VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
|
|
99
107
|
VideoAnalysisSchema: () => VideoAnalysisSchema,
|
|
100
108
|
VideoAspectRatioSchema: () => VideoAspectRatioSchema,
|
|
109
|
+
VideoCompositingSchema: () => VideoCompositingSchema,
|
|
110
|
+
VideoCompressionSchema: () => VideoCompressionSchema,
|
|
101
111
|
VideoFrameImageSchema: () => VideoFrameImageSchema,
|
|
102
112
|
VideoGenerationSchema: () => VideoGenerationSchema,
|
|
113
|
+
VideoOverlayOptionsSchema: () => VideoOverlayOptionsSchema,
|
|
103
114
|
VideoOverlayStyleSchema: () => VideoOverlayStyleSchema,
|
|
115
|
+
VideoPipelineSchema: () => VideoPipelineSchema,
|
|
104
116
|
VideoResolutionSchema: () => VideoResolutionSchema,
|
|
117
|
+
VideoScaleAndPadSchema: () => VideoScaleAndPadSchema,
|
|
105
118
|
VideoTextOverlaySchema: () => VideoTextOverlaySchema,
|
|
119
|
+
VideoTranscodeSchema: () => VideoTranscodeSchema,
|
|
106
120
|
VideoUpscaleSchema: () => VideoUpscaleSchema,
|
|
107
121
|
VideoWatermarkSchema: () => VideoWatermarkSchema,
|
|
108
|
-
WatermarkPositionSchema: () => WatermarkPositionSchema
|
|
122
|
+
WatermarkPositionSchema: () => WatermarkPositionSchema,
|
|
123
|
+
WatermarkSchema: () => WatermarkSchema
|
|
109
124
|
});
|
|
110
125
|
module.exports = __toCommonJS(index_exports);
|
|
111
126
|
var import_zod = require("zod");
|
|
@@ -152,7 +167,7 @@ var VideoUpscaleSchema = import_zod.z.object({
|
|
|
152
167
|
targetResolution: import_zod.z.enum(["1080p", "4k", "1080P", "4K"]).default("1080p"),
|
|
153
168
|
modelName: import_zod.z.string().optional()
|
|
154
169
|
});
|
|
155
|
-
var
|
|
170
|
+
var TextOverlayStyleSchema = import_zod.z.enum([
|
|
156
171
|
"neubrutalist",
|
|
157
172
|
"neubrutalist-dark",
|
|
158
173
|
"badge",
|
|
@@ -160,6 +175,7 @@ var VideoOverlayStyleSchema = import_zod.z.enum([
|
|
|
160
175
|
"custom",
|
|
161
176
|
"none"
|
|
162
177
|
]);
|
|
178
|
+
var VideoOverlayStyleSchema = TextOverlayStyleSchema;
|
|
163
179
|
var WatermarkPositionSchema = import_zod.z.union([
|
|
164
180
|
import_zod.z.enum([
|
|
165
181
|
"bottom-right",
|
|
@@ -173,7 +189,7 @@ var WatermarkPositionSchema = import_zod.z.union([
|
|
|
173
189
|
y: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional()
|
|
174
190
|
})
|
|
175
191
|
]);
|
|
176
|
-
var
|
|
192
|
+
var WatermarkSchema = import_zod.z.object({
|
|
177
193
|
text: import_zod.z.string().optional(),
|
|
178
194
|
imagePath: import_zod.z.string().optional(),
|
|
179
195
|
font: import_zod.z.string().optional(),
|
|
@@ -190,6 +206,8 @@ var VideoWatermarkSchema = import_zod.z.object({
|
|
|
190
206
|
marginLeft: import_zod.z.number().optional(),
|
|
191
207
|
marginTop: import_zod.z.number().optional()
|
|
192
208
|
});
|
|
209
|
+
var VideoWatermarkSchema = WatermarkSchema;
|
|
210
|
+
var ImageWatermarkSchema = WatermarkSchema;
|
|
193
211
|
var TextOverlayPositionSchema = import_zod.z.union([
|
|
194
212
|
import_zod.z.enum(["top", "center", "bottom"]),
|
|
195
213
|
import_zod.z.object({
|
|
@@ -205,9 +223,9 @@ var DropShadowSchema = import_zod.z.object({
|
|
|
205
223
|
color: import_zod.z.string().optional(),
|
|
206
224
|
opacity: import_zod.z.number().optional()
|
|
207
225
|
});
|
|
208
|
-
var
|
|
226
|
+
var TextOverlaySchema = import_zod.z.object({
|
|
209
227
|
text: import_zod.z.string(),
|
|
210
|
-
style:
|
|
228
|
+
style: TextOverlayStyleSchema.optional(),
|
|
211
229
|
font: import_zod.z.string().optional(),
|
|
212
230
|
fontPath: import_zod.z.string().optional(),
|
|
213
231
|
position: TextOverlayPositionSchema.optional(),
|
|
@@ -231,17 +249,70 @@ var VideoTextOverlaySchema = import_zod.z.object({
|
|
|
231
249
|
badgeBgColor: import_zod.z.string().optional(),
|
|
232
250
|
badgeTextColor: import_zod.z.string().optional(),
|
|
233
251
|
badgeFont: import_zod.z.string().optional(),
|
|
252
|
+
badgeFontSize: import_zod.z.number().optional(),
|
|
234
253
|
badgePosition: import_zod.z.enum(["top-left", "top-right", "top-center", "bottom-left", "bottom-right", "bottom-center"]).optional(),
|
|
235
|
-
watermark: import_zod.z.union([import_zod.z.string(),
|
|
254
|
+
watermark: import_zod.z.union([import_zod.z.string(), WatermarkSchema]).optional()
|
|
236
255
|
});
|
|
256
|
+
var VideoTextOverlaySchema = TextOverlaySchema;
|
|
257
|
+
var ImageTextOverlaySchema = TextOverlaySchema;
|
|
237
258
|
var SocialVideoGenerationSchema = import_zod.z.object({
|
|
238
259
|
prompt: import_zod.z.string(),
|
|
239
260
|
audioPrompt: import_zod.z.string().optional(),
|
|
240
261
|
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
241
262
|
durationSeconds: import_zod.z.number().int().optional(),
|
|
242
|
-
hook: import_zod.z.union([import_zod.z.string(),
|
|
243
|
-
watermark: import_zod.z.union([import_zod.z.string(),
|
|
263
|
+
hook: import_zod.z.union([import_zod.z.string(), TextOverlaySchema]).optional(),
|
|
264
|
+
watermark: import_zod.z.union([import_zod.z.string(), WatermarkSchema]).optional()
|
|
244
265
|
});
|
|
266
|
+
var VideoTranscodeSchema = import_zod.z.object({
|
|
267
|
+
crf: import_zod.z.number().min(0).max(51).optional(),
|
|
268
|
+
preset: import_zod.z.string().optional(),
|
|
269
|
+
videoCodec: import_zod.z.string().optional(),
|
|
270
|
+
audioCodec: import_zod.z.string().optional()
|
|
271
|
+
});
|
|
272
|
+
var VideoCompressionSchema = VideoTranscodeSchema;
|
|
273
|
+
var VideoOverlayOptionsSchema = import_zod.z.object({
|
|
274
|
+
x: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
275
|
+
y: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
276
|
+
crf: import_zod.z.number().optional(),
|
|
277
|
+
preset: import_zod.z.string().optional(),
|
|
278
|
+
videoCodec: import_zod.z.string().optional(),
|
|
279
|
+
audioCodec: import_zod.z.string().optional()
|
|
280
|
+
});
|
|
281
|
+
var VideoScaleAndPadSchema = import_zod.z.object({
|
|
282
|
+
width: import_zod.z.number().int().positive(),
|
|
283
|
+
height: import_zod.z.number().int().positive(),
|
|
284
|
+
fit: import_zod.z.enum(["contain", "cover", "fill"]).optional(),
|
|
285
|
+
background: import_zod.z.string().optional(),
|
|
286
|
+
crf: import_zod.z.number().optional(),
|
|
287
|
+
preset: import_zod.z.string().optional(),
|
|
288
|
+
videoCodec: import_zod.z.string().optional(),
|
|
289
|
+
audioCodec: import_zod.z.string().optional()
|
|
290
|
+
});
|
|
291
|
+
var AudioMixTrackSchema = import_zod.z.object({
|
|
292
|
+
path: import_zod.z.string(),
|
|
293
|
+
volume: import_zod.z.number().min(0).max(1).optional(),
|
|
294
|
+
delayMs: import_zod.z.number().optional()
|
|
295
|
+
});
|
|
296
|
+
var AudioMixOptionsSchema = import_zod.z.object({
|
|
297
|
+
tracks: import_zod.z.array(AudioMixTrackSchema),
|
|
298
|
+
videoVolume: import_zod.z.number().optional(),
|
|
299
|
+
crf: import_zod.z.number().optional(),
|
|
300
|
+
preset: import_zod.z.string().optional(),
|
|
301
|
+
videoCodec: import_zod.z.string().optional(),
|
|
302
|
+
audioCodec: import_zod.z.string().optional()
|
|
303
|
+
});
|
|
304
|
+
var VideoPipelineSchema = import_zod.z.object({
|
|
305
|
+
scaleAndPad: VideoScaleAndPadSchema.optional(),
|
|
306
|
+
textOverlay: TextOverlaySchema.optional(),
|
|
307
|
+
watermark: import_zod.z.union([WatermarkSchema, import_zod.z.string()]).optional(),
|
|
308
|
+
imageOverlays: import_zod.z.array(import_zod.z.object({
|
|
309
|
+
imagePath: import_zod.z.string(),
|
|
310
|
+
options: VideoOverlayOptionsSchema.optional()
|
|
311
|
+
})).optional(),
|
|
312
|
+
audioMix: AudioMixOptionsSchema.optional(),
|
|
313
|
+
compress: VideoTranscodeSchema.optional()
|
|
314
|
+
});
|
|
315
|
+
var VideoCompositingSchema = VideoPipelineSchema;
|
|
245
316
|
var ImageGenerationSchema = import_zod.z.object({
|
|
246
317
|
prompt: import_zod.z.string(),
|
|
247
318
|
aspectRatio: AspectRatioSchema.optional(),
|
|
@@ -254,11 +325,9 @@ var ImageTransformationSchema = import_zod.z.object({
|
|
|
254
325
|
aspectRatio: AspectRatioSchema.optional(),
|
|
255
326
|
seed: import_zod.z.number().int().optional()
|
|
256
327
|
});
|
|
257
|
-
var ImageTextOverlaySchema = VideoTextOverlaySchema;
|
|
258
|
-
var ImageWatermarkSchema = VideoWatermarkSchema;
|
|
259
328
|
var ImageCompositingSchema = import_zod.z.object({
|
|
260
|
-
textOverlay:
|
|
261
|
-
watermark:
|
|
329
|
+
textOverlay: TextOverlaySchema.optional(),
|
|
330
|
+
watermark: WatermarkSchema.optional(),
|
|
262
331
|
fit: import_zod.z.enum(["cover", "contain", "fill", "inside", "outside"]).optional(),
|
|
263
332
|
targetWidth: import_zod.z.number().int().optional(),
|
|
264
333
|
targetHeight: import_zod.z.number().int().optional(),
|
|
@@ -474,6 +543,34 @@ var ThemeIngestionInputSchema = import_zod.z.object({
|
|
|
474
543
|
supportsDarkMode: import_zod.z.boolean().optional(),
|
|
475
544
|
isSystem: import_zod.z.boolean().optional()
|
|
476
545
|
});
|
|
546
|
+
var UIGenerationOptionsSchema = import_zod.z.object({
|
|
547
|
+
prompt: import_zod.z.string().describe("User prompt or instruction for component generation/modification"),
|
|
548
|
+
currentCode: import_zod.z.string().optional().describe("Existing component code for iterative modification"),
|
|
549
|
+
platform: PlatformLanguageSchema.optional().default("svelte").describe("Target component platform language"),
|
|
550
|
+
theme: import_zod.z.string().optional().describe("Theme identifier or token reference"),
|
|
551
|
+
systemPrompt: import_zod.z.string().optional().describe("Custom or override system prompt"),
|
|
552
|
+
maxRetries: import_zod.z.number().int().nonnegative().optional().default(3).describe("Maximum retry attempts for iterative auto-repair validation"),
|
|
553
|
+
temperature: import_zod.z.number().optional().describe("Model temperature")
|
|
554
|
+
});
|
|
555
|
+
var UIExtractionResultSchema = import_zod.z.object({
|
|
556
|
+
code: import_zod.z.string().describe("Clean extracted component code without markdown fences"),
|
|
557
|
+
postamble: import_zod.z.string().optional().describe("Conversational explanation or summary after the code block"),
|
|
558
|
+
rawText: import_zod.z.string().optional().describe("Complete raw output from the model")
|
|
559
|
+
});
|
|
560
|
+
var UIValidationResultSchema = import_zod.z.object({
|
|
561
|
+
valid: import_zod.z.boolean().describe("Whether the component passed syntax and linter validation"),
|
|
562
|
+
error: import_zod.z.string().optional().describe("Error output from validation if failed"),
|
|
563
|
+
errors: import_zod.z.array(import_zod.z.string()).optional().describe("List of parsed validation errors"),
|
|
564
|
+
formattedCode: import_zod.z.string().optional().describe("Prettier-formatted component code if available")
|
|
565
|
+
});
|
|
566
|
+
var UIGenerationResultSchema = import_zod.z.object({
|
|
567
|
+
code: import_zod.z.string().describe("Final validated component code"),
|
|
568
|
+
postamble: import_zod.z.string().optional().describe("Conversational explanation or summary"),
|
|
569
|
+
rawText: import_zod.z.string().optional().describe("Complete raw model output"),
|
|
570
|
+
isValid: import_zod.z.boolean().optional().describe("Whether the final code passed validation"),
|
|
571
|
+
validationAttempts: import_zod.z.number().int().optional().describe("Total number of generation/repair attempts"),
|
|
572
|
+
validationError: import_zod.z.string().optional().describe("Validation error if still failing after max retries")
|
|
573
|
+
});
|
|
477
574
|
var JsonGenerationSchema = import_zod.z.object({
|
|
478
575
|
prompt: import_zod.z.string(),
|
|
479
576
|
schema: import_zod.z.record(import_zod.z.any()).optional()
|
|
@@ -1032,6 +1129,8 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
1032
1129
|
AgentToolSchema,
|
|
1033
1130
|
AgentToolTypeSchema,
|
|
1034
1131
|
AspectRatioSchema,
|
|
1132
|
+
AudioMixOptionsSchema,
|
|
1133
|
+
AudioMixTrackSchema,
|
|
1035
1134
|
CodeGenerationSchema,
|
|
1036
1135
|
ComponentDocsSchema,
|
|
1037
1136
|
ComponentPackageSchema,
|
|
@@ -1086,6 +1185,8 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
1086
1185
|
TechnicalFormSchema,
|
|
1087
1186
|
TextAlignmentSchema,
|
|
1088
1187
|
TextOverlayPositionSchema,
|
|
1188
|
+
TextOverlaySchema,
|
|
1189
|
+
TextOverlayStyleSchema,
|
|
1089
1190
|
ThemeColorsSchema,
|
|
1090
1191
|
ThemeIngestionInputSchema,
|
|
1091
1192
|
ThemeSchema,
|
|
@@ -1093,15 +1194,26 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
1093
1194
|
ThemeTokensSchema,
|
|
1094
1195
|
ThemeTypographyTokensSchema,
|
|
1095
1196
|
UIComponentTypeSchema,
|
|
1197
|
+
UIExtractionResultSchema,
|
|
1198
|
+
UIGenerationOptionsSchema,
|
|
1199
|
+
UIGenerationResultSchema,
|
|
1200
|
+
UIValidationResultSchema,
|
|
1096
1201
|
VideoAnalysisCategorySchema,
|
|
1097
1202
|
VideoAnalysisSchema,
|
|
1098
1203
|
VideoAspectRatioSchema,
|
|
1204
|
+
VideoCompositingSchema,
|
|
1205
|
+
VideoCompressionSchema,
|
|
1099
1206
|
VideoFrameImageSchema,
|
|
1100
1207
|
VideoGenerationSchema,
|
|
1208
|
+
VideoOverlayOptionsSchema,
|
|
1101
1209
|
VideoOverlayStyleSchema,
|
|
1210
|
+
VideoPipelineSchema,
|
|
1102
1211
|
VideoResolutionSchema,
|
|
1212
|
+
VideoScaleAndPadSchema,
|
|
1103
1213
|
VideoTextOverlaySchema,
|
|
1214
|
+
VideoTranscodeSchema,
|
|
1104
1215
|
VideoUpscaleSchema,
|
|
1105
1216
|
VideoWatermarkSchema,
|
|
1106
|
-
WatermarkPositionSchema
|
|
1217
|
+
WatermarkPositionSchema,
|
|
1218
|
+
WatermarkSchema
|
|
1107
1219
|
});
|