@pixerate/schemas 1.1.11 → 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
@@ -14,6 +14,104 @@ var AspectRatioSchema = z.enum([
14
14
  "21:9"
15
15
  ]);
16
16
  var VideoAspectRatioSchema = z.enum(["9:16", "16:9"]);
17
+ var VideoGenerationSchema = z.object({
18
+ prompt: z.string(),
19
+ aspectRatio: VideoAspectRatioSchema.optional(),
20
+ durationSeconds: z.number().int().optional(),
21
+ generateAudio: z.boolean().optional(),
22
+ modelName: z.string().optional(),
23
+ resolution: z.string().optional()
24
+ });
25
+ var VideoOverlayStyleSchema = z.enum([
26
+ "neubrutalist",
27
+ "neubrutalist-dark",
28
+ "badge",
29
+ "meme",
30
+ "custom",
31
+ "none"
32
+ ]);
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
+ })
45
+ ]);
46
+ var VideoWatermarkSchema = z.object({
47
+ text: z.string().optional(),
48
+ imagePath: z.string().optional(),
49
+ font: z.string().optional(),
50
+ fontPath: z.string().optional(),
51
+ position: WatermarkPositionSchema.optional(),
52
+ color: z.string().optional(),
53
+ strokeColor: z.string().optional(),
54
+ strokeWidth: z.number().optional(),
55
+ fontSize: z.number().optional(),
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(),
76
+ opacity: z.number().optional()
77
+ });
78
+ var VideoTextOverlaySchema = z.object({
79
+ text: z.string(),
80
+ style: VideoOverlayStyleSchema.optional(),
81
+ font: z.string().optional(),
82
+ fontPath: z.string().optional(),
83
+ position: TextOverlayPositionSchema.optional(),
84
+ alignment: TextAlignmentSchema.optional(),
85
+ fontSize: z.number().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()
106
+ });
107
+ var SocialVideoGenerationSchema = z.object({
108
+ prompt: z.string(),
109
+ audioPrompt: z.string().optional(),
110
+ aspectRatio: VideoAspectRatioSchema.optional(),
111
+ durationSeconds: z.number().int().optional(),
112
+ hook: z.union([z.string(), VideoTextOverlaySchema]).optional(),
113
+ watermark: z.union([z.string(), VideoWatermarkSchema]).optional()
114
+ });
17
115
  var ImageGenerationSchema = z.object({
18
116
  prompt: z.string(),
19
117
  aspectRatio: AspectRatioSchema.optional(),
@@ -26,6 +124,17 @@ var ImageTransformationSchema = z.object({
26
124
  aspectRatio: AspectRatioSchema.optional(),
27
125
  seed: z.number().int().optional()
28
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
+ });
29
138
  var VideoAnalysisCategorySchema = z.enum([
30
139
  "Scenes",
31
140
  "Environments",
@@ -152,15 +261,27 @@ export {
152
261
  CodeGenerationSchema,
153
262
  ComponentPropDefinitionSchema,
154
263
  ComponentSynthesisSchema,
264
+ DropShadowSchema,
155
265
  FidelitySchema,
266
+ ImageCompositingSchema,
156
267
  ImageGenerationSchema,
268
+ ImageTextOverlaySchema,
157
269
  ImageTransformationSchema,
270
+ ImageWatermarkSchema,
158
271
  JsonGenerationSchema,
159
272
  QueueJobSchema,
160
273
  QueueJobStatusSchema,
161
274
  QueueJobTypeSchema,
162
275
  ServiceClientSchema,
276
+ SocialVideoGenerationSchema,
277
+ TextAlignmentSchema,
278
+ TextOverlayPositionSchema,
163
279
  VideoAnalysisCategorySchema,
164
280
  VideoAnalysisSchema,
165
- VideoAspectRatioSchema
281
+ VideoAspectRatioSchema,
282
+ VideoGenerationSchema,
283
+ VideoOverlayStyleSchema,
284
+ VideoTextOverlaySchema,
285
+ VideoWatermarkSchema,
286
+ WatermarkPositionSchema
166
287
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/schemas",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",