@pixerate/schemas 1.8.0 → 1.9.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.js CHANGED
@@ -186,6 +186,10 @@ var VideoPipelineSchema = z.object({
186
186
  options: VideoOverlayOptionsSchema.optional()
187
187
  })).optional(),
188
188
  audioMix: AudioMixOptionsSchema.optional(),
189
+ subtitles: z.lazy(() => SubtitleBurnOptionsSchema).optional(),
190
+ visualizer: z.lazy(() => AudioVisualizerOptionsSchema).optional(),
191
+ kenBurns: z.lazy(() => KenBurnsOptionsSchema).optional(),
192
+ ducking: z.lazy(() => AudioDuckingOptionsSchema).optional(),
189
193
  compress: VideoTranscodeSchema.optional()
190
194
  });
191
195
  var VideoCompositingSchema = VideoPipelineSchema;
@@ -270,8 +274,9 @@ var ImagePipelineSchema = z.object({
270
274
  arcDistort: ArcDistortSchema.optional(),
271
275
  autoFitCaption: AutoFitCaptionSchema.optional(),
272
276
  animatedGif: AnimatedGifCompositeSchema.optional(),
277
+ traceVector: z.lazy(() => VectorTraceOptionsSchema).optional(),
273
278
  output: z.object({
274
- format: z.enum(["png", "jpeg", "webp", "avif", "gif"]).optional(),
279
+ format: z.enum(["png", "jpeg", "webp", "avif", "gif", "svg"]).optional(),
275
280
  quality: z.number().int().min(1).max(100).optional()
276
281
  }).optional()
277
282
  });
@@ -281,13 +286,14 @@ var ImageCompositingSchema = z.object({
281
286
  fit: z.enum(["cover", "contain", "fill", "inside", "outside"]).optional(),
282
287
  targetWidth: z.number().int().optional(),
283
288
  targetHeight: z.number().int().optional(),
284
- format: z.enum(["png", "jpeg", "webp", "avif", "gif"]).optional(),
289
+ format: z.enum(["png", "jpeg", "webp", "avif", "gif", "svg"]).optional(),
285
290
  quality: z.number().int().min(1).max(100).optional(),
286
291
  perspectiveWarp: PerspectiveWarpSchema.optional(),
287
292
  displacementMap: DisplacementMapSchema.optional(),
288
293
  arcDistort: ArcDistortSchema.optional(),
289
294
  autoFitCaption: AutoFitCaptionSchema.optional(),
290
- animatedGif: AnimatedGifCompositeSchema.optional()
295
+ animatedGif: AnimatedGifCompositeSchema.optional(),
296
+ traceVector: z.lazy(() => VectorTraceOptionsSchema).optional()
291
297
  });
292
298
  var VideoAnalysisCategorySchema = z.enum([
293
299
  "Scenes",
@@ -1075,6 +1081,96 @@ var FORM_SCHEMA_JSON_SCHEMA = {
1075
1081
  },
1076
1082
  required: ["version", "stages"]
1077
1083
  };
1084
+ var SubtitleFormatSchema = z.enum(["srt", "vtt", "ass"]);
1085
+ var SubtitleBurnOptionsSchema = z.object({
1086
+ subtitlePath: z.string().optional(),
1087
+ subtitleContent: z.string().optional(),
1088
+ format: SubtitleFormatSchema.optional(),
1089
+ fontSize: z.number().optional(),
1090
+ fontName: z.string().optional(),
1091
+ primaryColor: z.string().optional(),
1092
+ outlineColor: z.string().optional(),
1093
+ outlineWidth: z.number().optional(),
1094
+ alignment: z.number().int().optional(),
1095
+ marginV: z.number().int().optional(),
1096
+ karaoke: z.boolean().optional()
1097
+ });
1098
+ var AudioVisualizerTypeSchema = z.enum(["waves", "spectrum", "bars"]);
1099
+ var AudioVisualizerOptionsSchema = z.object({
1100
+ type: AudioVisualizerTypeSchema.optional().default("waves"),
1101
+ width: z.number().int().positive().optional().default(1280),
1102
+ height: z.number().int().positive().optional().default(720),
1103
+ fps: z.number().int().positive().optional().default(30),
1104
+ colors: z.string().optional(),
1105
+ mode: z.enum(["point", "line", "p2p", "cline"]).optional(),
1106
+ scale: z.enum(["lin", "sqrt", "cbrt", "log"]).optional(),
1107
+ background: z.string().optional()
1108
+ });
1109
+ var KenBurnsOptionsSchema = z.object({
1110
+ durationSeconds: z.number().positive().optional().default(5),
1111
+ fps: z.number().int().positive().optional().default(30),
1112
+ width: z.number().int().positive().optional().default(1920),
1113
+ height: z.number().int().positive().optional().default(1080),
1114
+ zoomDirection: z.enum(["in", "out", "none"]).optional().default("in"),
1115
+ panDirection: z.enum(["top-to-bottom", "bottom-to-top", "left-to-right", "right-to-left", "center", "none"]).optional().default("center"),
1116
+ maxZoom: z.number().min(1).max(3).optional().default(1.2)
1117
+ });
1118
+ var AudioDuckingOptionsSchema = z.object({
1119
+ duckingDb: z.number().optional().default(14),
1120
+ attackMs: z.number().optional().default(20),
1121
+ releaseMs: z.number().optional().default(250),
1122
+ threshold: z.number().optional().default(0.125)
1123
+ });
1124
+ var AudioNormalizationOptionsSchema = z.object({
1125
+ targetLufs: z.number().optional().default(-14),
1126
+ truePeak: z.number().optional().default(-1.5),
1127
+ loudnessRange: z.number().optional().default(11),
1128
+ audioCodec: z.string().optional().default("aac")
1129
+ });
1130
+ var AudioSilenceTrimOptionsSchema = z.object({
1131
+ silenceThresholdDb: z.number().optional().default(-50),
1132
+ minSilenceDuration: z.number().optional().default(0.5)
1133
+ });
1134
+ var MediaProbeResultSchema = z.object({
1135
+ format: z.string().optional(),
1136
+ durationSeconds: z.number().optional(),
1137
+ width: z.number().int().optional(),
1138
+ height: z.number().int().optional(),
1139
+ fps: z.number().optional(),
1140
+ bitrate: z.number().optional(),
1141
+ videoCodec: z.string().optional(),
1142
+ audioCodec: z.string().optional(),
1143
+ audioChannels: z.number().int().optional(),
1144
+ sampleRate: z.number().int().optional(),
1145
+ sizeBytes: z.number().int().optional()
1146
+ });
1147
+ var VectorTraceOptionsSchema = z.object({
1148
+ colorMode: z.enum(["color", "binary"]).optional().default("color"),
1149
+ hierarchical: z.enum(["stacked", "cutout"]).optional().default("stacked"),
1150
+ filterSpeckle: z.number().int().min(0).optional().default(4),
1151
+ cornerThreshold: z.number().int().min(0).max(180).optional().default(60),
1152
+ segmentLength: z.number().min(0).optional().default(4),
1153
+ spliceThreshold: z.number().int().min(0).max(180).optional().default(45),
1154
+ scale: z.number().positive().optional().default(1)
1155
+ });
1156
+ var PerceptualHashAlgorithmSchema = z.enum(["ahash", "dhash"]);
1157
+ var PerceptualHashOptionsSchema = z.object({
1158
+ algorithm: PerceptualHashAlgorithmSchema.optional().default("dhash"),
1159
+ hashSize: z.number().int().min(8).max(64).optional().default(8)
1160
+ });
1161
+ var DocumentGenerationOptionsSchema = z.object({
1162
+ title: z.string().optional(),
1163
+ author: z.string().optional(),
1164
+ pageSize: z.enum(["A4", "A3", "A5", "LETTER", "LEGAL"]).optional().default("A4"),
1165
+ margins: z.object({
1166
+ top: z.number(),
1167
+ bottom: z.number(),
1168
+ left: z.number(),
1169
+ right: z.number()
1170
+ }).optional(),
1171
+ enableSyntaxHighlighting: z.boolean().optional().default(true),
1172
+ theme: z.enum(["light", "dark", "corporate", "minimal"]).optional().default("light")
1173
+ });
1078
1174
  export {
1079
1175
  ActivityActionSchema,
1080
1176
  ActivityLogSchema,
@@ -1092,8 +1188,13 @@ export {
1092
1188
  AnimatedGifCompositeSchema,
1093
1189
  ArcDistortSchema,
1094
1190
  AspectRatioSchema,
1191
+ AudioDuckingOptionsSchema,
1095
1192
  AudioMixOptionsSchema,
1096
1193
  AudioMixTrackSchema,
1194
+ AudioNormalizationOptionsSchema,
1195
+ AudioSilenceTrimOptionsSchema,
1196
+ AudioVisualizerOptionsSchema,
1197
+ AudioVisualizerTypeSchema,
1097
1198
  AutoFitCaptionSchema,
1098
1199
  CodeGenerationSchema,
1099
1200
  ComponentDocsSchema,
@@ -1111,6 +1212,7 @@ export {
1111
1212
  DecisionGateSchema,
1112
1213
  DimensionScoreSchema,
1113
1214
  DisplacementMapSchema,
1215
+ DocumentGenerationOptionsSchema,
1114
1216
  DropShadowSchema,
1115
1217
  FORM_SCHEMA_JSON_SCHEMA,
1116
1218
  FidelitySchema,
@@ -1133,6 +1235,10 @@ export {
1133
1235
  ImageWatermarkSchema,
1134
1236
  IngestionInputSchema,
1135
1237
  JsonGenerationSchema,
1238
+ KenBurnsOptionsSchema,
1239
+ MediaProbeResultSchema,
1240
+ PerceptualHashAlgorithmSchema,
1241
+ PerceptualHashOptionsSchema,
1136
1242
  PerspectiveQuadSchema,
1137
1243
  PerspectiveWarpSchema,
1138
1244
  PlatformLanguageSchema,
@@ -1152,6 +1258,8 @@ export {
1152
1258
  ServiceClientSchema,
1153
1259
  SocialVideoGenerationSchema,
1154
1260
  SubmissionScoreSchema,
1261
+ SubtitleBurnOptionsSchema,
1262
+ SubtitleFormatSchema,
1155
1263
  TechnicalFormSchema,
1156
1264
  TextAlignmentSchema,
1157
1265
  TextOverlayPositionSchema,
@@ -1168,6 +1276,7 @@ export {
1168
1276
  UIGenerationOptionsSchema,
1169
1277
  UIGenerationResultSchema,
1170
1278
  UIValidationResultSchema,
1279
+ VectorTraceOptionsSchema,
1171
1280
  VideoAnalysisCategorySchema,
1172
1281
  VideoAnalysisSchema,
1173
1282
  VideoAspectRatioSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/schemas",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",