@pixerate/schemas 1.5.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 +89 -13
- package/dist/index.d.cts +2295 -498
- package/dist/index.d.ts +2295 -498
- package/dist/index.js +77 -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,
|
|
@@ -98,14 +102,21 @@ __export(index_exports, {
|
|
|
98
102
|
VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
|
|
99
103
|
VideoAnalysisSchema: () => VideoAnalysisSchema,
|
|
100
104
|
VideoAspectRatioSchema: () => VideoAspectRatioSchema,
|
|
105
|
+
VideoCompositingSchema: () => VideoCompositingSchema,
|
|
106
|
+
VideoCompressionSchema: () => VideoCompressionSchema,
|
|
101
107
|
VideoFrameImageSchema: () => VideoFrameImageSchema,
|
|
102
108
|
VideoGenerationSchema: () => VideoGenerationSchema,
|
|
109
|
+
VideoOverlayOptionsSchema: () => VideoOverlayOptionsSchema,
|
|
103
110
|
VideoOverlayStyleSchema: () => VideoOverlayStyleSchema,
|
|
111
|
+
VideoPipelineSchema: () => VideoPipelineSchema,
|
|
104
112
|
VideoResolutionSchema: () => VideoResolutionSchema,
|
|
113
|
+
VideoScaleAndPadSchema: () => VideoScaleAndPadSchema,
|
|
105
114
|
VideoTextOverlaySchema: () => VideoTextOverlaySchema,
|
|
115
|
+
VideoTranscodeSchema: () => VideoTranscodeSchema,
|
|
106
116
|
VideoUpscaleSchema: () => VideoUpscaleSchema,
|
|
107
117
|
VideoWatermarkSchema: () => VideoWatermarkSchema,
|
|
108
|
-
WatermarkPositionSchema: () => WatermarkPositionSchema
|
|
118
|
+
WatermarkPositionSchema: () => WatermarkPositionSchema,
|
|
119
|
+
WatermarkSchema: () => WatermarkSchema
|
|
109
120
|
});
|
|
110
121
|
module.exports = __toCommonJS(index_exports);
|
|
111
122
|
var import_zod = require("zod");
|
|
@@ -152,7 +163,7 @@ var VideoUpscaleSchema = import_zod.z.object({
|
|
|
152
163
|
targetResolution: import_zod.z.enum(["1080p", "4k", "1080P", "4K"]).default("1080p"),
|
|
153
164
|
modelName: import_zod.z.string().optional()
|
|
154
165
|
});
|
|
155
|
-
var
|
|
166
|
+
var TextOverlayStyleSchema = import_zod.z.enum([
|
|
156
167
|
"neubrutalist",
|
|
157
168
|
"neubrutalist-dark",
|
|
158
169
|
"badge",
|
|
@@ -160,6 +171,7 @@ var VideoOverlayStyleSchema = import_zod.z.enum([
|
|
|
160
171
|
"custom",
|
|
161
172
|
"none"
|
|
162
173
|
]);
|
|
174
|
+
var VideoOverlayStyleSchema = TextOverlayStyleSchema;
|
|
163
175
|
var WatermarkPositionSchema = import_zod.z.union([
|
|
164
176
|
import_zod.z.enum([
|
|
165
177
|
"bottom-right",
|
|
@@ -173,7 +185,7 @@ var WatermarkPositionSchema = import_zod.z.union([
|
|
|
173
185
|
y: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional()
|
|
174
186
|
})
|
|
175
187
|
]);
|
|
176
|
-
var
|
|
188
|
+
var WatermarkSchema = import_zod.z.object({
|
|
177
189
|
text: import_zod.z.string().optional(),
|
|
178
190
|
imagePath: import_zod.z.string().optional(),
|
|
179
191
|
font: import_zod.z.string().optional(),
|
|
@@ -190,6 +202,8 @@ var VideoWatermarkSchema = import_zod.z.object({
|
|
|
190
202
|
marginLeft: import_zod.z.number().optional(),
|
|
191
203
|
marginTop: import_zod.z.number().optional()
|
|
192
204
|
});
|
|
205
|
+
var VideoWatermarkSchema = WatermarkSchema;
|
|
206
|
+
var ImageWatermarkSchema = WatermarkSchema;
|
|
193
207
|
var TextOverlayPositionSchema = import_zod.z.union([
|
|
194
208
|
import_zod.z.enum(["top", "center", "bottom"]),
|
|
195
209
|
import_zod.z.object({
|
|
@@ -205,9 +219,9 @@ var DropShadowSchema = import_zod.z.object({
|
|
|
205
219
|
color: import_zod.z.string().optional(),
|
|
206
220
|
opacity: import_zod.z.number().optional()
|
|
207
221
|
});
|
|
208
|
-
var
|
|
222
|
+
var TextOverlaySchema = import_zod.z.object({
|
|
209
223
|
text: import_zod.z.string(),
|
|
210
|
-
style:
|
|
224
|
+
style: TextOverlayStyleSchema.optional(),
|
|
211
225
|
font: import_zod.z.string().optional(),
|
|
212
226
|
fontPath: import_zod.z.string().optional(),
|
|
213
227
|
position: TextOverlayPositionSchema.optional(),
|
|
@@ -231,17 +245,70 @@ var VideoTextOverlaySchema = import_zod.z.object({
|
|
|
231
245
|
badgeBgColor: import_zod.z.string().optional(),
|
|
232
246
|
badgeTextColor: import_zod.z.string().optional(),
|
|
233
247
|
badgeFont: import_zod.z.string().optional(),
|
|
248
|
+
badgeFontSize: import_zod.z.number().optional(),
|
|
234
249
|
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(),
|
|
250
|
+
watermark: import_zod.z.union([import_zod.z.string(), WatermarkSchema]).optional()
|
|
236
251
|
});
|
|
252
|
+
var VideoTextOverlaySchema = TextOverlaySchema;
|
|
253
|
+
var ImageTextOverlaySchema = TextOverlaySchema;
|
|
237
254
|
var SocialVideoGenerationSchema = import_zod.z.object({
|
|
238
255
|
prompt: import_zod.z.string(),
|
|
239
256
|
audioPrompt: import_zod.z.string().optional(),
|
|
240
257
|
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
241
258
|
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(),
|
|
259
|
+
hook: import_zod.z.union([import_zod.z.string(), TextOverlaySchema]).optional(),
|
|
260
|
+
watermark: import_zod.z.union([import_zod.z.string(), WatermarkSchema]).optional()
|
|
244
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;
|
|
245
312
|
var ImageGenerationSchema = import_zod.z.object({
|
|
246
313
|
prompt: import_zod.z.string(),
|
|
247
314
|
aspectRatio: AspectRatioSchema.optional(),
|
|
@@ -254,11 +321,9 @@ var ImageTransformationSchema = import_zod.z.object({
|
|
|
254
321
|
aspectRatio: AspectRatioSchema.optional(),
|
|
255
322
|
seed: import_zod.z.number().int().optional()
|
|
256
323
|
});
|
|
257
|
-
var ImageTextOverlaySchema = VideoTextOverlaySchema;
|
|
258
|
-
var ImageWatermarkSchema = VideoWatermarkSchema;
|
|
259
324
|
var ImageCompositingSchema = import_zod.z.object({
|
|
260
|
-
textOverlay:
|
|
261
|
-
watermark:
|
|
325
|
+
textOverlay: TextOverlaySchema.optional(),
|
|
326
|
+
watermark: WatermarkSchema.optional(),
|
|
262
327
|
fit: import_zod.z.enum(["cover", "contain", "fill", "inside", "outside"]).optional(),
|
|
263
328
|
targetWidth: import_zod.z.number().int().optional(),
|
|
264
329
|
targetHeight: import_zod.z.number().int().optional(),
|
|
@@ -1032,6 +1097,8 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
1032
1097
|
AgentToolSchema,
|
|
1033
1098
|
AgentToolTypeSchema,
|
|
1034
1099
|
AspectRatioSchema,
|
|
1100
|
+
AudioMixOptionsSchema,
|
|
1101
|
+
AudioMixTrackSchema,
|
|
1035
1102
|
CodeGenerationSchema,
|
|
1036
1103
|
ComponentDocsSchema,
|
|
1037
1104
|
ComponentPackageSchema,
|
|
@@ -1086,6 +1153,8 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
1086
1153
|
TechnicalFormSchema,
|
|
1087
1154
|
TextAlignmentSchema,
|
|
1088
1155
|
TextOverlayPositionSchema,
|
|
1156
|
+
TextOverlaySchema,
|
|
1157
|
+
TextOverlayStyleSchema,
|
|
1089
1158
|
ThemeColorsSchema,
|
|
1090
1159
|
ThemeIngestionInputSchema,
|
|
1091
1160
|
ThemeSchema,
|
|
@@ -1096,12 +1165,19 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
1096
1165
|
VideoAnalysisCategorySchema,
|
|
1097
1166
|
VideoAnalysisSchema,
|
|
1098
1167
|
VideoAspectRatioSchema,
|
|
1168
|
+
VideoCompositingSchema,
|
|
1169
|
+
VideoCompressionSchema,
|
|
1099
1170
|
VideoFrameImageSchema,
|
|
1100
1171
|
VideoGenerationSchema,
|
|
1172
|
+
VideoOverlayOptionsSchema,
|
|
1101
1173
|
VideoOverlayStyleSchema,
|
|
1174
|
+
VideoPipelineSchema,
|
|
1102
1175
|
VideoResolutionSchema,
|
|
1176
|
+
VideoScaleAndPadSchema,
|
|
1103
1177
|
VideoTextOverlaySchema,
|
|
1178
|
+
VideoTranscodeSchema,
|
|
1104
1179
|
VideoUpscaleSchema,
|
|
1105
1180
|
VideoWatermarkSchema,
|
|
1106
|
-
WatermarkPositionSchema
|
|
1181
|
+
WatermarkPositionSchema,
|
|
1182
|
+
WatermarkSchema
|
|
1107
1183
|
});
|