@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.cjs +81 -10
- package/dist/index.d.cts +1450 -50
- package/dist/index.d.ts +1450 -50
- package/dist/index.js +75 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -34,15 +34,21 @@ __export(index_exports, {
|
|
|
34
34
|
CodeGenerationSchema: () => CodeGenerationSchema,
|
|
35
35
|
ComponentPropDefinitionSchema: () => ComponentPropDefinitionSchema,
|
|
36
36
|
ComponentSynthesisSchema: () => ComponentSynthesisSchema,
|
|
37
|
+
DropShadowSchema: () => DropShadowSchema,
|
|
37
38
|
FidelitySchema: () => FidelitySchema,
|
|
39
|
+
ImageCompositingSchema: () => ImageCompositingSchema,
|
|
38
40
|
ImageGenerationSchema: () => ImageGenerationSchema,
|
|
41
|
+
ImageTextOverlaySchema: () => ImageTextOverlaySchema,
|
|
39
42
|
ImageTransformationSchema: () => ImageTransformationSchema,
|
|
43
|
+
ImageWatermarkSchema: () => ImageWatermarkSchema,
|
|
40
44
|
JsonGenerationSchema: () => JsonGenerationSchema,
|
|
41
45
|
QueueJobSchema: () => QueueJobSchema,
|
|
42
46
|
QueueJobStatusSchema: () => QueueJobStatusSchema,
|
|
43
47
|
QueueJobTypeSchema: () => QueueJobTypeSchema,
|
|
44
48
|
ServiceClientSchema: () => ServiceClientSchema,
|
|
45
49
|
SocialVideoGenerationSchema: () => SocialVideoGenerationSchema,
|
|
50
|
+
TextAlignmentSchema: () => TextAlignmentSchema,
|
|
51
|
+
TextOverlayPositionSchema: () => TextOverlayPositionSchema,
|
|
46
52
|
VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
|
|
47
53
|
VideoAnalysisSchema: () => VideoAnalysisSchema,
|
|
48
54
|
VideoAspectRatioSchema: () => VideoAspectRatioSchema,
|
|
@@ -81,34 +87,82 @@ var VideoOverlayStyleSchema = import_zod.z.enum([
|
|
|
81
87
|
"neubrutalist-dark",
|
|
82
88
|
"badge",
|
|
83
89
|
"meme",
|
|
90
|
+
"custom",
|
|
84
91
|
"none"
|
|
85
92
|
]);
|
|
86
|
-
var WatermarkPositionSchema = import_zod.z.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
var WatermarkPositionSchema = import_zod.z.union([
|
|
94
|
+
import_zod.z.enum([
|
|
95
|
+
"bottom-right",
|
|
96
|
+
"bottom-left",
|
|
97
|
+
"top-right",
|
|
98
|
+
"top-left",
|
|
99
|
+
"center"
|
|
100
|
+
]),
|
|
101
|
+
import_zod.z.object({
|
|
102
|
+
x: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
103
|
+
y: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional()
|
|
104
|
+
})
|
|
92
105
|
]);
|
|
93
106
|
var VideoWatermarkSchema = import_zod.z.object({
|
|
94
107
|
text: import_zod.z.string().optional(),
|
|
95
108
|
imagePath: import_zod.z.string().optional(),
|
|
96
109
|
font: import_zod.z.string().optional(),
|
|
110
|
+
fontPath: import_zod.z.string().optional(),
|
|
97
111
|
position: WatermarkPositionSchema.optional(),
|
|
98
112
|
color: import_zod.z.string().optional(),
|
|
113
|
+
strokeColor: import_zod.z.string().optional(),
|
|
99
114
|
strokeWidth: import_zod.z.number().optional(),
|
|
100
115
|
fontSize: import_zod.z.number().optional(),
|
|
101
116
|
transparentBg: import_zod.z.boolean().optional(),
|
|
117
|
+
opacity: import_zod.z.number().optional(),
|
|
118
|
+
marginRight: import_zod.z.number().optional(),
|
|
119
|
+
marginBottom: import_zod.z.number().optional(),
|
|
120
|
+
marginLeft: import_zod.z.number().optional(),
|
|
121
|
+
marginTop: import_zod.z.number().optional()
|
|
122
|
+
});
|
|
123
|
+
var TextOverlayPositionSchema = import_zod.z.union([
|
|
124
|
+
import_zod.z.enum(["top", "center", "bottom"]),
|
|
125
|
+
import_zod.z.object({
|
|
126
|
+
x: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
127
|
+
y: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional()
|
|
128
|
+
})
|
|
129
|
+
]);
|
|
130
|
+
var TextAlignmentSchema = import_zod.z.enum(["left", "center", "right"]);
|
|
131
|
+
var DropShadowSchema = import_zod.z.object({
|
|
132
|
+
dx: import_zod.z.number().optional(),
|
|
133
|
+
dy: import_zod.z.number().optional(),
|
|
134
|
+
blur: import_zod.z.number().optional(),
|
|
135
|
+
color: import_zod.z.string().optional(),
|
|
102
136
|
opacity: import_zod.z.number().optional()
|
|
103
137
|
});
|
|
104
138
|
var VideoTextOverlaySchema = import_zod.z.object({
|
|
105
139
|
text: import_zod.z.string(),
|
|
106
140
|
style: VideoOverlayStyleSchema.optional(),
|
|
107
|
-
|
|
108
|
-
|
|
141
|
+
font: import_zod.z.string().optional(),
|
|
142
|
+
fontPath: import_zod.z.string().optional(),
|
|
143
|
+
position: TextOverlayPositionSchema.optional(),
|
|
144
|
+
alignment: TextAlignmentSchema.optional(),
|
|
109
145
|
fontSize: import_zod.z.number().optional(),
|
|
110
|
-
|
|
111
|
-
|
|
146
|
+
lineHeight: import_zod.z.number().optional(),
|
|
147
|
+
letterSpacing: import_zod.z.number().optional(),
|
|
148
|
+
textColor: import_zod.z.string().optional(),
|
|
149
|
+
textTransform: import_zod.z.enum(["uppercase", "lowercase", "capitalize", "none"]).optional(),
|
|
150
|
+
strokeColor: import_zod.z.string().optional(),
|
|
151
|
+
strokeWidth: import_zod.z.number().optional(),
|
|
152
|
+
shadow: import_zod.z.union([import_zod.z.boolean(), DropShadowSchema]).optional(),
|
|
153
|
+
containerBgColor: import_zod.z.string().optional(),
|
|
154
|
+
containerBorderColor: import_zod.z.string().optional(),
|
|
155
|
+
containerBorderWidth: import_zod.z.number().optional(),
|
|
156
|
+
containerBorderRadius: import_zod.z.number().optional(),
|
|
157
|
+
paddingX: import_zod.z.number().optional(),
|
|
158
|
+
paddingY: import_zod.z.number().optional(),
|
|
159
|
+
maxCharsPerLine: import_zod.z.number().optional(),
|
|
160
|
+
badgeTag: import_zod.z.string().optional(),
|
|
161
|
+
badgeBgColor: import_zod.z.string().optional(),
|
|
162
|
+
badgeTextColor: import_zod.z.string().optional(),
|
|
163
|
+
badgeFont: import_zod.z.string().optional(),
|
|
164
|
+
badgePosition: import_zod.z.enum(["top-left", "top-right", "top-center", "bottom-left", "bottom-right", "bottom-center"]).optional(),
|
|
165
|
+
watermark: import_zod.z.union([import_zod.z.string(), VideoWatermarkSchema]).optional()
|
|
112
166
|
});
|
|
113
167
|
var SocialVideoGenerationSchema = import_zod.z.object({
|
|
114
168
|
prompt: import_zod.z.string(),
|
|
@@ -130,6 +184,17 @@ var ImageTransformationSchema = import_zod.z.object({
|
|
|
130
184
|
aspectRatio: AspectRatioSchema.optional(),
|
|
131
185
|
seed: import_zod.z.number().int().optional()
|
|
132
186
|
});
|
|
187
|
+
var ImageTextOverlaySchema = VideoTextOverlaySchema;
|
|
188
|
+
var ImageWatermarkSchema = VideoWatermarkSchema;
|
|
189
|
+
var ImageCompositingSchema = import_zod.z.object({
|
|
190
|
+
textOverlay: ImageTextOverlaySchema.optional(),
|
|
191
|
+
watermark: ImageWatermarkSchema.optional(),
|
|
192
|
+
fit: import_zod.z.enum(["cover", "contain", "fill", "inside", "outside"]).optional(),
|
|
193
|
+
targetWidth: import_zod.z.number().int().optional(),
|
|
194
|
+
targetHeight: import_zod.z.number().int().optional(),
|
|
195
|
+
format: import_zod.z.enum(["png", "jpeg", "webp", "avif"]).optional(),
|
|
196
|
+
quality: import_zod.z.number().int().min(1).max(100).optional()
|
|
197
|
+
});
|
|
133
198
|
var VideoAnalysisCategorySchema = import_zod.z.enum([
|
|
134
199
|
"Scenes",
|
|
135
200
|
"Environments",
|
|
@@ -257,15 +322,21 @@ var QueueJobSchema = import_zod.z.object({
|
|
|
257
322
|
CodeGenerationSchema,
|
|
258
323
|
ComponentPropDefinitionSchema,
|
|
259
324
|
ComponentSynthesisSchema,
|
|
325
|
+
DropShadowSchema,
|
|
260
326
|
FidelitySchema,
|
|
327
|
+
ImageCompositingSchema,
|
|
261
328
|
ImageGenerationSchema,
|
|
329
|
+
ImageTextOverlaySchema,
|
|
262
330
|
ImageTransformationSchema,
|
|
331
|
+
ImageWatermarkSchema,
|
|
263
332
|
JsonGenerationSchema,
|
|
264
333
|
QueueJobSchema,
|
|
265
334
|
QueueJobStatusSchema,
|
|
266
335
|
QueueJobTypeSchema,
|
|
267
336
|
ServiceClientSchema,
|
|
268
337
|
SocialVideoGenerationSchema,
|
|
338
|
+
TextAlignmentSchema,
|
|
339
|
+
TextOverlayPositionSchema,
|
|
269
340
|
VideoAnalysisCategorySchema,
|
|
270
341
|
VideoAnalysisSchema,
|
|
271
342
|
VideoAspectRatioSchema,
|