@pixerate/schemas 1.1.12 → 1.1.13

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
@@ -27,34 +27,82 @@ var VideoOverlayStyleSchema = z.enum([
27
27
  "neubrutalist-dark",
28
28
  "badge",
29
29
  "meme",
30
+ "custom",
30
31
  "none"
31
32
  ]);
32
- var WatermarkPositionSchema = z.enum([
33
- "bottom-right",
34
- "bottom-left",
35
- "top-right",
36
- "top-left",
37
- "center"
33
+ var WatermarkPositionSchema = z.union([
34
+ z.enum([
35
+ "bottom-right",
36
+ "bottom-left",
37
+ "top-right",
38
+ "top-left",
39
+ "center"
40
+ ]),
41
+ z.object({
42
+ x: z.union([z.number(), z.string()]).optional(),
43
+ y: z.union([z.number(), z.string()]).optional()
44
+ })
38
45
  ]);
39
46
  var VideoWatermarkSchema = z.object({
40
47
  text: z.string().optional(),
41
48
  imagePath: z.string().optional(),
42
49
  font: z.string().optional(),
50
+ fontPath: z.string().optional(),
43
51
  position: WatermarkPositionSchema.optional(),
44
52
  color: z.string().optional(),
53
+ strokeColor: z.string().optional(),
45
54
  strokeWidth: z.number().optional(),
46
55
  fontSize: z.number().optional(),
47
56
  transparentBg: z.boolean().optional(),
57
+ opacity: z.number().optional(),
58
+ marginRight: z.number().optional(),
59
+ marginBottom: z.number().optional(),
60
+ marginLeft: z.number().optional(),
61
+ marginTop: z.number().optional()
62
+ });
63
+ var TextOverlayPositionSchema = z.union([
64
+ z.enum(["top", "center", "bottom"]),
65
+ z.object({
66
+ x: z.union([z.number(), z.string()]).optional(),
67
+ y: z.union([z.number(), z.string()]).optional()
68
+ })
69
+ ]);
70
+ var TextAlignmentSchema = z.enum(["left", "center", "right"]);
71
+ var DropShadowSchema = z.object({
72
+ dx: z.number().optional(),
73
+ dy: z.number().optional(),
74
+ blur: z.number().optional(),
75
+ color: z.string().optional(),
48
76
  opacity: z.number().optional()
49
77
  });
50
78
  var VideoTextOverlaySchema = z.object({
51
79
  text: z.string(),
52
80
  style: VideoOverlayStyleSchema.optional(),
53
- containerBgColor: z.string().optional(),
54
- textColor: z.string().optional(),
81
+ font: z.string().optional(),
82
+ fontPath: z.string().optional(),
83
+ position: TextOverlayPositionSchema.optional(),
84
+ alignment: TextAlignmentSchema.optional(),
55
85
  fontSize: z.number().optional(),
56
- topY: z.number().optional(),
57
- badgeTag: z.string().optional()
86
+ lineHeight: z.number().optional(),
87
+ letterSpacing: z.number().optional(),
88
+ textColor: z.string().optional(),
89
+ textTransform: z.enum(["uppercase", "lowercase", "capitalize", "none"]).optional(),
90
+ strokeColor: z.string().optional(),
91
+ strokeWidth: z.number().optional(),
92
+ shadow: z.union([z.boolean(), DropShadowSchema]).optional(),
93
+ containerBgColor: z.string().optional(),
94
+ containerBorderColor: z.string().optional(),
95
+ containerBorderWidth: z.number().optional(),
96
+ containerBorderRadius: z.number().optional(),
97
+ paddingX: z.number().optional(),
98
+ paddingY: z.number().optional(),
99
+ maxCharsPerLine: z.number().optional(),
100
+ badgeTag: z.string().optional(),
101
+ badgeBgColor: z.string().optional(),
102
+ badgeTextColor: z.string().optional(),
103
+ badgeFont: z.string().optional(),
104
+ badgePosition: z.enum(["top-left", "top-right", "top-center", "bottom-left", "bottom-right", "bottom-center"]).optional(),
105
+ watermark: z.union([z.string(), VideoWatermarkSchema]).optional()
58
106
  });
59
107
  var SocialVideoGenerationSchema = z.object({
60
108
  prompt: z.string(),
@@ -76,6 +124,17 @@ var ImageTransformationSchema = z.object({
76
124
  aspectRatio: AspectRatioSchema.optional(),
77
125
  seed: z.number().int().optional()
78
126
  });
127
+ var ImageTextOverlaySchema = VideoTextOverlaySchema;
128
+ var ImageWatermarkSchema = VideoWatermarkSchema;
129
+ var ImageCompositingSchema = z.object({
130
+ textOverlay: ImageTextOverlaySchema.optional(),
131
+ watermark: ImageWatermarkSchema.optional(),
132
+ fit: z.enum(["cover", "contain", "fill", "inside", "outside"]).optional(),
133
+ targetWidth: z.number().int().optional(),
134
+ targetHeight: z.number().int().optional(),
135
+ format: z.enum(["png", "jpeg", "webp", "avif"]).optional(),
136
+ quality: z.number().int().min(1).max(100).optional()
137
+ });
79
138
  var VideoAnalysisCategorySchema = z.enum([
80
139
  "Scenes",
81
140
  "Environments",
@@ -202,15 +261,21 @@ export {
202
261
  CodeGenerationSchema,
203
262
  ComponentPropDefinitionSchema,
204
263
  ComponentSynthesisSchema,
264
+ DropShadowSchema,
205
265
  FidelitySchema,
266
+ ImageCompositingSchema,
206
267
  ImageGenerationSchema,
268
+ ImageTextOverlaySchema,
207
269
  ImageTransformationSchema,
270
+ ImageWatermarkSchema,
208
271
  JsonGenerationSchema,
209
272
  QueueJobSchema,
210
273
  QueueJobStatusSchema,
211
274
  QueueJobTypeSchema,
212
275
  ServiceClientSchema,
213
276
  SocialVideoGenerationSchema,
277
+ TextAlignmentSchema,
278
+ TextOverlayPositionSchema,
214
279
  VideoAnalysisCategorySchema,
215
280
  VideoAnalysisSchema,
216
281
  VideoAspectRatioSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/schemas",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",