@pixerate/schemas 1.1.12 → 1.2.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
@@ -14,47 +14,116 @@ var AspectRatioSchema = z.enum([
14
14
  "21:9"
15
15
  ]);
16
16
  var VideoAspectRatioSchema = z.enum(["9:16", "16:9"]);
17
+ var VideoResolutionSchema = z.enum(["720p", "1080p", "4k", "720P", "1080P", "4K"]);
18
+ var VideoFrameImageSchema = z.union([
19
+ z.string(),
20
+ z.object({
21
+ bytesBase64Encoded: z.string().optional(),
22
+ data: z.string().optional(),
23
+ mimeType: z.string().optional()
24
+ })
25
+ ]);
17
26
  var VideoGenerationSchema = z.object({
18
27
  prompt: z.string(),
19
28
  aspectRatio: VideoAspectRatioSchema.optional(),
20
29
  durationSeconds: z.number().int().optional(),
21
30
  generateAudio: z.boolean().optional(),
22
31
  modelName: z.string().optional(),
23
- resolution: z.string().optional()
32
+ resolution: VideoResolutionSchema.optional(),
33
+ fps: z.number().optional(),
34
+ isMultimedia: z.boolean().optional(),
35
+ multimedia: z.boolean().optional(),
36
+ firstFrame: VideoFrameImageSchema.optional(),
37
+ lastFrame: VideoFrameImageSchema.optional()
38
+ });
39
+ var VideoUpscaleSchema = z.object({
40
+ video: z.string().optional(),
41
+ mimeType: z.string().optional(),
42
+ prompt: z.string().optional(),
43
+ targetResolution: z.enum(["1080p", "4k", "1080P", "4K"]).default("1080p"),
44
+ modelName: z.string().optional()
24
45
  });
25
46
  var VideoOverlayStyleSchema = z.enum([
26
47
  "neubrutalist",
27
48
  "neubrutalist-dark",
28
49
  "badge",
29
50
  "meme",
51
+ "custom",
30
52
  "none"
31
53
  ]);
32
- var WatermarkPositionSchema = z.enum([
33
- "bottom-right",
34
- "bottom-left",
35
- "top-right",
36
- "top-left",
37
- "center"
54
+ var WatermarkPositionSchema = z.union([
55
+ z.enum([
56
+ "bottom-right",
57
+ "bottom-left",
58
+ "top-right",
59
+ "top-left",
60
+ "center"
61
+ ]),
62
+ z.object({
63
+ x: z.union([z.number(), z.string()]).optional(),
64
+ y: z.union([z.number(), z.string()]).optional()
65
+ })
38
66
  ]);
39
67
  var VideoWatermarkSchema = z.object({
40
68
  text: z.string().optional(),
41
69
  imagePath: z.string().optional(),
42
70
  font: z.string().optional(),
71
+ fontPath: z.string().optional(),
43
72
  position: WatermarkPositionSchema.optional(),
44
73
  color: z.string().optional(),
74
+ strokeColor: z.string().optional(),
45
75
  strokeWidth: z.number().optional(),
46
76
  fontSize: z.number().optional(),
47
77
  transparentBg: z.boolean().optional(),
78
+ opacity: z.number().optional(),
79
+ marginRight: z.number().optional(),
80
+ marginBottom: z.number().optional(),
81
+ marginLeft: z.number().optional(),
82
+ marginTop: z.number().optional()
83
+ });
84
+ var TextOverlayPositionSchema = z.union([
85
+ z.enum(["top", "center", "bottom"]),
86
+ z.object({
87
+ x: z.union([z.number(), z.string()]).optional(),
88
+ y: z.union([z.number(), z.string()]).optional()
89
+ })
90
+ ]);
91
+ var TextAlignmentSchema = z.enum(["left", "center", "right"]);
92
+ var DropShadowSchema = z.object({
93
+ dx: z.number().optional(),
94
+ dy: z.number().optional(),
95
+ blur: z.number().optional(),
96
+ color: z.string().optional(),
48
97
  opacity: z.number().optional()
49
98
  });
50
99
  var VideoTextOverlaySchema = z.object({
51
100
  text: z.string(),
52
101
  style: VideoOverlayStyleSchema.optional(),
53
- containerBgColor: z.string().optional(),
54
- textColor: z.string().optional(),
102
+ font: z.string().optional(),
103
+ fontPath: z.string().optional(),
104
+ position: TextOverlayPositionSchema.optional(),
105
+ alignment: TextAlignmentSchema.optional(),
55
106
  fontSize: z.number().optional(),
56
- topY: z.number().optional(),
57
- badgeTag: z.string().optional()
107
+ lineHeight: z.number().optional(),
108
+ letterSpacing: z.number().optional(),
109
+ textColor: z.string().optional(),
110
+ textTransform: z.enum(["uppercase", "lowercase", "capitalize", "none"]).optional(),
111
+ strokeColor: z.string().optional(),
112
+ strokeWidth: z.number().optional(),
113
+ shadow: z.union([z.boolean(), DropShadowSchema]).optional(),
114
+ containerBgColor: z.string().optional(),
115
+ containerBorderColor: z.string().optional(),
116
+ containerBorderWidth: z.number().optional(),
117
+ containerBorderRadius: z.number().optional(),
118
+ paddingX: z.number().optional(),
119
+ paddingY: z.number().optional(),
120
+ maxCharsPerLine: z.number().optional(),
121
+ badgeTag: z.string().optional(),
122
+ badgeBgColor: z.string().optional(),
123
+ badgeTextColor: z.string().optional(),
124
+ badgeFont: z.string().optional(),
125
+ badgePosition: z.enum(["top-left", "top-right", "top-center", "bottom-left", "bottom-right", "bottom-center"]).optional(),
126
+ watermark: z.union([z.string(), VideoWatermarkSchema]).optional()
58
127
  });
59
128
  var SocialVideoGenerationSchema = z.object({
60
129
  prompt: z.string(),
@@ -76,6 +145,17 @@ var ImageTransformationSchema = z.object({
76
145
  aspectRatio: AspectRatioSchema.optional(),
77
146
  seed: z.number().int().optional()
78
147
  });
148
+ var ImageTextOverlaySchema = VideoTextOverlaySchema;
149
+ var ImageWatermarkSchema = VideoWatermarkSchema;
150
+ var ImageCompositingSchema = z.object({
151
+ textOverlay: ImageTextOverlaySchema.optional(),
152
+ watermark: ImageWatermarkSchema.optional(),
153
+ fit: z.enum(["cover", "contain", "fill", "inside", "outside"]).optional(),
154
+ targetWidth: z.number().int().optional(),
155
+ targetHeight: z.number().int().optional(),
156
+ format: z.enum(["png", "jpeg", "webp", "avif"]).optional(),
157
+ quality: z.number().int().min(1).max(100).optional()
158
+ });
79
159
  var VideoAnalysisCategorySchema = z.enum([
80
160
  "Scenes",
81
161
  "Environments",
@@ -176,7 +256,7 @@ var AgentInteractionResultSchema = z.object({
176
256
  createdAt: z.string().optional(),
177
257
  updatedAt: z.string().optional()
178
258
  });
179
- var QueueJobTypeSchema = z.enum(["text", "image", "video", "analysis", "audio", "agent", "code", "component"]);
259
+ var QueueJobTypeSchema = z.enum(["text", "image", "video", "analysis", "audio", "agent", "code", "component", "upscale"]);
180
260
  var QueueJobStatusSchema = z.enum(["queued", "processing", "completed", "failed"]);
181
261
  var QueueJobSchema = z.object({
182
262
  id: z.string(),
@@ -202,21 +282,30 @@ export {
202
282
  CodeGenerationSchema,
203
283
  ComponentPropDefinitionSchema,
204
284
  ComponentSynthesisSchema,
285
+ DropShadowSchema,
205
286
  FidelitySchema,
287
+ ImageCompositingSchema,
206
288
  ImageGenerationSchema,
289
+ ImageTextOverlaySchema,
207
290
  ImageTransformationSchema,
291
+ ImageWatermarkSchema,
208
292
  JsonGenerationSchema,
209
293
  QueueJobSchema,
210
294
  QueueJobStatusSchema,
211
295
  QueueJobTypeSchema,
212
296
  ServiceClientSchema,
213
297
  SocialVideoGenerationSchema,
298
+ TextAlignmentSchema,
299
+ TextOverlayPositionSchema,
214
300
  VideoAnalysisCategorySchema,
215
301
  VideoAnalysisSchema,
216
302
  VideoAspectRatioSchema,
303
+ VideoFrameImageSchema,
217
304
  VideoGenerationSchema,
218
305
  VideoOverlayStyleSchema,
306
+ VideoResolutionSchema,
219
307
  VideoTextOverlaySchema,
308
+ VideoUpscaleSchema,
220
309
  VideoWatermarkSchema,
221
310
  WatermarkPositionSchema
222
311
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/schemas",
3
- "version": "1.1.12",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",