@pixerate/schemas 1.21.0 → 1.23.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 +98 -4
- package/dist/index.d.cts +1175 -409
- package/dist/index.d.ts +1175 -409
- package/dist/index.js +87 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -48,11 +48,15 @@ __export(index_exports, {
|
|
|
48
48
|
AudioDiarizationSegmentSchema: () => AudioDiarizationSegmentSchema,
|
|
49
49
|
AudioDiarizationWordSchema: () => AudioDiarizationWordSchema,
|
|
50
50
|
AudioDuckingOptionsSchema: () => AudioDuckingOptionsSchema,
|
|
51
|
+
AudioDuckingSchema: () => AudioDuckingSchema,
|
|
51
52
|
AudioMixOptionsSchema: () => AudioMixOptionsSchema,
|
|
53
|
+
AudioMixSchema: () => AudioMixSchema,
|
|
52
54
|
AudioMixTrackSchema: () => AudioMixTrackSchema,
|
|
53
55
|
AudioNormalizationOptionsSchema: () => AudioNormalizationOptionsSchema,
|
|
56
|
+
AudioNormalizationSchema: () => AudioNormalizationSchema,
|
|
54
57
|
AudioSilenceTrimOptionsSchema: () => AudioSilenceTrimOptionsSchema,
|
|
55
58
|
AudioVisualizerOptionsSchema: () => AudioVisualizerOptionsSchema,
|
|
59
|
+
AudioVisualizerSchema: () => AudioVisualizerSchema,
|
|
56
60
|
AudioVisualizerTypeSchema: () => AudioVisualizerTypeSchema,
|
|
57
61
|
AuthUserSchema: () => AuthUserSchema,
|
|
58
62
|
AutoFitCaptionSchema: () => AutoFitCaptionSchema,
|
|
@@ -93,10 +97,12 @@ __export(index_exports, {
|
|
|
93
97
|
FORM_SCHEMA_JSON_SCHEMA: () => FORM_SCHEMA_JSON_SCHEMA,
|
|
94
98
|
FidelitySchema: () => FidelitySchema,
|
|
95
99
|
FieldPresenceSchema: () => FieldPresenceSchema,
|
|
100
|
+
FormBlockSchema: () => FormBlockSchema,
|
|
96
101
|
FormControlSchema: () => FormControlSchema,
|
|
97
102
|
FormControlTypeSchema: () => FormControlTypeSchema,
|
|
98
103
|
FormHandoffActionSchema: () => FormHandoffActionSchema,
|
|
99
104
|
FormOptionSchema: () => FormOptionSchema,
|
|
105
|
+
FormQuestionSchema: () => FormQuestionSchema,
|
|
100
106
|
FormReviewMetaSchema: () => FormReviewMetaSchema,
|
|
101
107
|
FormSectionSchema: () => FormSectionSchema,
|
|
102
108
|
FormStageSchema: () => FormStageSchema,
|
|
@@ -227,16 +233,21 @@ __export(index_exports, {
|
|
|
227
233
|
VideoAnalysisSchema: () => VideoAnalysisSchema,
|
|
228
234
|
VideoAspectRatioSchema: () => VideoAspectRatioSchema,
|
|
229
235
|
VideoAttachmentSchema: () => VideoAttachmentSchema,
|
|
236
|
+
VideoCompositingLayerTypeSchema: () => VideoCompositingLayerTypeSchema,
|
|
230
237
|
VideoCompositingSchema: () => VideoCompositingSchema,
|
|
231
238
|
VideoCompressionSchema: () => VideoCompressionSchema,
|
|
232
239
|
VideoFrameImageSchema: () => VideoFrameImageSchema,
|
|
233
240
|
VideoGenerationSchema: () => VideoGenerationSchema,
|
|
241
|
+
VideoGraphicOverlaySchema: () => VideoGraphicOverlaySchema,
|
|
242
|
+
VideoImageCompositeSchema: () => VideoImageCompositeSchema,
|
|
243
|
+
VideoImageOverlaySchema: () => VideoImageOverlaySchema,
|
|
234
244
|
VideoModificationSchema: () => VideoModificationSchema,
|
|
235
245
|
VideoOverlayOptionsSchema: () => VideoOverlayOptionsSchema,
|
|
236
246
|
VideoOverlayStyleSchema: () => VideoOverlayStyleSchema,
|
|
237
247
|
VideoPipelineSchema: () => VideoPipelineSchema,
|
|
238
248
|
VideoResolutionSchema: () => VideoResolutionSchema,
|
|
239
249
|
VideoScaleAndPadSchema: () => VideoScaleAndPadSchema,
|
|
250
|
+
VideoTextCompositeSchema: () => VideoTextCompositeSchema,
|
|
240
251
|
VideoTextOverlaySchema: () => VideoTextOverlaySchema,
|
|
241
252
|
VideoTranscodeSchema: () => VideoTranscodeSchema,
|
|
242
253
|
VideoUpscaleSchema: () => VideoUpscaleSchema,
|
|
@@ -449,6 +460,44 @@ var AudioMixOptionsSchema = import_zod.z.object({
|
|
|
449
460
|
videoCodec: import_zod.z.string().optional(),
|
|
450
461
|
audioCodec: import_zod.z.string().optional()
|
|
451
462
|
});
|
|
463
|
+
var AudioMixSchema = import_zod.z.object({
|
|
464
|
+
inputPath: import_zod.z.string(),
|
|
465
|
+
tracks: import_zod.z.array(AudioMixTrackSchema),
|
|
466
|
+
videoVolume: import_zod.z.number().optional(),
|
|
467
|
+
outputPath: import_zod.z.string().optional(),
|
|
468
|
+
crf: import_zod.z.number().optional(),
|
|
469
|
+
preset: import_zod.z.string().optional(),
|
|
470
|
+
videoCodec: import_zod.z.string().optional(),
|
|
471
|
+
audioCodec: import_zod.z.string().optional()
|
|
472
|
+
});
|
|
473
|
+
var VideoImageOverlaySchema = import_zod.z.object({
|
|
474
|
+
imagePath: import_zod.z.string().optional(),
|
|
475
|
+
allowRuntimeAttachments: import_zod.z.boolean().optional(),
|
|
476
|
+
position: TextOverlayPositionSchema.optional(),
|
|
477
|
+
x: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
478
|
+
y: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
479
|
+
width: import_zod.z.number().optional(),
|
|
480
|
+
height: import_zod.z.number().optional(),
|
|
481
|
+
opacity: import_zod.z.number().min(0).max(1).optional(),
|
|
482
|
+
options: VideoOverlayOptionsSchema.optional()
|
|
483
|
+
});
|
|
484
|
+
var VideoGraphicOverlaySchema = VideoImageOverlaySchema;
|
|
485
|
+
var VideoTextCompositeSchema = import_zod.z.object({
|
|
486
|
+
inputVideoPath: import_zod.z.string(),
|
|
487
|
+
outputPath: import_zod.z.string().optional(),
|
|
488
|
+
textOverlay: TextOverlaySchema,
|
|
489
|
+
crf: import_zod.z.number().optional(),
|
|
490
|
+
preset: import_zod.z.string().optional(),
|
|
491
|
+
videoCodec: import_zod.z.string().optional(),
|
|
492
|
+
audioCodec: import_zod.z.string().optional()
|
|
493
|
+
});
|
|
494
|
+
var VideoImageCompositeSchema = import_zod.z.object({
|
|
495
|
+
inputVideoPath: import_zod.z.string(),
|
|
496
|
+
overlayImagePath: import_zod.z.string(),
|
|
497
|
+
outputPath: import_zod.z.string().optional(),
|
|
498
|
+
options: VideoOverlayOptionsSchema.optional()
|
|
499
|
+
});
|
|
500
|
+
var VideoCompositingLayerTypeSchema = import_zod.z.enum(["text", "graphic"]);
|
|
452
501
|
var VideoPipelineSchema = import_zod.z.object({
|
|
453
502
|
scaleAndPad: VideoScaleAndPadSchema.optional(),
|
|
454
503
|
textOverlay: TextOverlaySchema.optional(),
|
|
@@ -457,11 +506,8 @@ var VideoPipelineSchema = import_zod.z.object({
|
|
|
457
506
|
imagePath: import_zod.z.string(),
|
|
458
507
|
options: VideoOverlayOptionsSchema.optional()
|
|
459
508
|
})).optional(),
|
|
460
|
-
audioMix: AudioMixOptionsSchema.optional(),
|
|
461
509
|
subtitles: import_zod.z.lazy(() => SubtitleBurnOptionsSchema).optional(),
|
|
462
|
-
visualizer: import_zod.z.lazy(() => AudioVisualizerOptionsSchema).optional(),
|
|
463
510
|
kenBurns: import_zod.z.lazy(() => KenBurnsOptionsSchema).optional(),
|
|
464
|
-
ducking: import_zod.z.lazy(() => AudioDuckingOptionsSchema).optional(),
|
|
465
511
|
compress: VideoTranscodeSchema.optional()
|
|
466
512
|
});
|
|
467
513
|
var VideoCompositingSchema = VideoPipelineSchema;
|
|
@@ -1421,6 +1467,11 @@ var AudioVisualizerOptionsSchema = import_zod.z.object({
|
|
|
1421
1467
|
crf: import_zod.z.number().optional(),
|
|
1422
1468
|
preset: import_zod.z.string().optional()
|
|
1423
1469
|
});
|
|
1470
|
+
var AudioVisualizerSchema = import_zod.z.object({
|
|
1471
|
+
audioPath: import_zod.z.string(),
|
|
1472
|
+
outputPath: import_zod.z.string().optional(),
|
|
1473
|
+
options: AudioVisualizerOptionsSchema.optional()
|
|
1474
|
+
});
|
|
1424
1475
|
var KenBurnsOptionsSchema = import_zod.z.object({
|
|
1425
1476
|
durationSeconds: import_zod.z.number().positive().optional().default(5),
|
|
1426
1477
|
fps: import_zod.z.number().int().positive().optional().default(30),
|
|
@@ -1443,6 +1494,12 @@ var AudioDuckingOptionsSchema = import_zod.z.object({
|
|
|
1443
1494
|
videoCodec: import_zod.z.string().optional(),
|
|
1444
1495
|
audioCodec: import_zod.z.string().optional()
|
|
1445
1496
|
});
|
|
1497
|
+
var AudioDuckingSchema = import_zod.z.object({
|
|
1498
|
+
voicePath: import_zod.z.string(),
|
|
1499
|
+
musicPath: import_zod.z.string(),
|
|
1500
|
+
outputPath: import_zod.z.string().optional(),
|
|
1501
|
+
options: AudioDuckingOptionsSchema.optional()
|
|
1502
|
+
});
|
|
1446
1503
|
var AudioNormalizationOptionsSchema = import_zod.z.object({
|
|
1447
1504
|
targetLufs: import_zod.z.number().optional().default(-14),
|
|
1448
1505
|
truePeak: import_zod.z.number().optional().default(-1.5),
|
|
@@ -1450,6 +1507,11 @@ var AudioNormalizationOptionsSchema = import_zod.z.object({
|
|
|
1450
1507
|
audioCodec: import_zod.z.string().optional().default("aac"),
|
|
1451
1508
|
bitrate: import_zod.z.string().optional()
|
|
1452
1509
|
});
|
|
1510
|
+
var AudioNormalizationSchema = import_zod.z.object({
|
|
1511
|
+
inputPath: import_zod.z.string(),
|
|
1512
|
+
outputPath: import_zod.z.string().optional(),
|
|
1513
|
+
options: AudioNormalizationOptionsSchema.optional()
|
|
1514
|
+
});
|
|
1453
1515
|
var AudioSilenceTrimOptionsSchema = import_zod.z.object({
|
|
1454
1516
|
silenceThresholdDb: import_zod.z.number().optional().default(-50),
|
|
1455
1517
|
minSilenceDuration: import_zod.z.number().optional().default(0.5),
|
|
@@ -2126,6 +2188,24 @@ var ProposalsBlockSchema = import_zod.z.object({
|
|
|
2126
2188
|
description: import_zod.z.string().optional(),
|
|
2127
2189
|
items: import_zod.z.array(ProposalItemSchema).min(1)
|
|
2128
2190
|
});
|
|
2191
|
+
var FormQuestionSchema = import_zod.z.object({
|
|
2192
|
+
id: import_zod.z.string().optional(),
|
|
2193
|
+
label: import_zod.z.string().optional(),
|
|
2194
|
+
question: import_zod.z.string().optional(),
|
|
2195
|
+
type: import_zod.z.enum(["text", "textarea", "radio", "select", "checkbox"]).optional(),
|
|
2196
|
+
options: import_zod.z.array(import_zod.z.string()).optional(),
|
|
2197
|
+
placeholder: import_zod.z.string().optional(),
|
|
2198
|
+
required: import_zod.z.boolean().optional(),
|
|
2199
|
+
defaultValue: import_zod.z.any().optional()
|
|
2200
|
+
});
|
|
2201
|
+
var FormBlockSchema = import_zod.z.object({
|
|
2202
|
+
kind: import_zod.z.enum(["form", "clarification", "question"]).default("form"),
|
|
2203
|
+
title: import_zod.z.string().optional(),
|
|
2204
|
+
description: import_zod.z.string().optional(),
|
|
2205
|
+
questions: import_zod.z.array(FormQuestionSchema).optional(),
|
|
2206
|
+
fields: import_zod.z.array(FormQuestionSchema).optional(),
|
|
2207
|
+
submitLabel: import_zod.z.string().optional()
|
|
2208
|
+
});
|
|
2129
2209
|
var BUILT_IN_EPHEMERAL_LANGS = [
|
|
2130
2210
|
"stats",
|
|
2131
2211
|
"callout",
|
|
@@ -2134,7 +2214,10 @@ var BUILT_IN_EPHEMERAL_LANGS = [
|
|
|
2134
2214
|
"tree",
|
|
2135
2215
|
"node-diagram",
|
|
2136
2216
|
"proposals",
|
|
2137
|
-
"followup"
|
|
2217
|
+
"followup",
|
|
2218
|
+
"form",
|
|
2219
|
+
"clarification",
|
|
2220
|
+
"question"
|
|
2138
2221
|
];
|
|
2139
2222
|
var AudioDiarizationWordSchema = import_zod.z.object({
|
|
2140
2223
|
word: import_zod.z.string(),
|
|
@@ -2323,11 +2406,15 @@ var LlmsFullTxtConfigSchema = import_zod.z.object({
|
|
|
2323
2406
|
AudioDiarizationSegmentSchema,
|
|
2324
2407
|
AudioDiarizationWordSchema,
|
|
2325
2408
|
AudioDuckingOptionsSchema,
|
|
2409
|
+
AudioDuckingSchema,
|
|
2326
2410
|
AudioMixOptionsSchema,
|
|
2411
|
+
AudioMixSchema,
|
|
2327
2412
|
AudioMixTrackSchema,
|
|
2328
2413
|
AudioNormalizationOptionsSchema,
|
|
2414
|
+
AudioNormalizationSchema,
|
|
2329
2415
|
AudioSilenceTrimOptionsSchema,
|
|
2330
2416
|
AudioVisualizerOptionsSchema,
|
|
2417
|
+
AudioVisualizerSchema,
|
|
2331
2418
|
AudioVisualizerTypeSchema,
|
|
2332
2419
|
AuthUserSchema,
|
|
2333
2420
|
AutoFitCaptionSchema,
|
|
@@ -2368,10 +2455,12 @@ var LlmsFullTxtConfigSchema = import_zod.z.object({
|
|
|
2368
2455
|
FORM_SCHEMA_JSON_SCHEMA,
|
|
2369
2456
|
FidelitySchema,
|
|
2370
2457
|
FieldPresenceSchema,
|
|
2458
|
+
FormBlockSchema,
|
|
2371
2459
|
FormControlSchema,
|
|
2372
2460
|
FormControlTypeSchema,
|
|
2373
2461
|
FormHandoffActionSchema,
|
|
2374
2462
|
FormOptionSchema,
|
|
2463
|
+
FormQuestionSchema,
|
|
2375
2464
|
FormReviewMetaSchema,
|
|
2376
2465
|
FormSectionSchema,
|
|
2377
2466
|
FormStageSchema,
|
|
@@ -2502,16 +2591,21 @@ var LlmsFullTxtConfigSchema = import_zod.z.object({
|
|
|
2502
2591
|
VideoAnalysisSchema,
|
|
2503
2592
|
VideoAspectRatioSchema,
|
|
2504
2593
|
VideoAttachmentSchema,
|
|
2594
|
+
VideoCompositingLayerTypeSchema,
|
|
2505
2595
|
VideoCompositingSchema,
|
|
2506
2596
|
VideoCompressionSchema,
|
|
2507
2597
|
VideoFrameImageSchema,
|
|
2508
2598
|
VideoGenerationSchema,
|
|
2599
|
+
VideoGraphicOverlaySchema,
|
|
2600
|
+
VideoImageCompositeSchema,
|
|
2601
|
+
VideoImageOverlaySchema,
|
|
2509
2602
|
VideoModificationSchema,
|
|
2510
2603
|
VideoOverlayOptionsSchema,
|
|
2511
2604
|
VideoOverlayStyleSchema,
|
|
2512
2605
|
VideoPipelineSchema,
|
|
2513
2606
|
VideoResolutionSchema,
|
|
2514
2607
|
VideoScaleAndPadSchema,
|
|
2608
|
+
VideoTextCompositeSchema,
|
|
2515
2609
|
VideoTextOverlaySchema,
|
|
2516
2610
|
VideoTranscodeSchema,
|
|
2517
2611
|
VideoUpscaleSchema,
|