@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.cjs +135 -2
- package/dist/index.d.cts +1603 -5
- package/dist/index.d.ts +1603 -5
- package/dist/index.js +122 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -34,17 +34,29 @@ __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,
|
|
49
|
+
SocialVideoGenerationSchema: () => SocialVideoGenerationSchema,
|
|
50
|
+
TextAlignmentSchema: () => TextAlignmentSchema,
|
|
51
|
+
TextOverlayPositionSchema: () => TextOverlayPositionSchema,
|
|
45
52
|
VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
|
|
46
53
|
VideoAnalysisSchema: () => VideoAnalysisSchema,
|
|
47
|
-
VideoAspectRatioSchema: () => VideoAspectRatioSchema
|
|
54
|
+
VideoAspectRatioSchema: () => VideoAspectRatioSchema,
|
|
55
|
+
VideoGenerationSchema: () => VideoGenerationSchema,
|
|
56
|
+
VideoOverlayStyleSchema: () => VideoOverlayStyleSchema,
|
|
57
|
+
VideoTextOverlaySchema: () => VideoTextOverlaySchema,
|
|
58
|
+
VideoWatermarkSchema: () => VideoWatermarkSchema,
|
|
59
|
+
WatermarkPositionSchema: () => WatermarkPositionSchema
|
|
48
60
|
});
|
|
49
61
|
module.exports = __toCommonJS(index_exports);
|
|
50
62
|
var import_zod = require("zod");
|
|
@@ -62,6 +74,104 @@ var AspectRatioSchema = import_zod.z.enum([
|
|
|
62
74
|
"21:9"
|
|
63
75
|
]);
|
|
64
76
|
var VideoAspectRatioSchema = import_zod.z.enum(["9:16", "16:9"]);
|
|
77
|
+
var VideoGenerationSchema = import_zod.z.object({
|
|
78
|
+
prompt: import_zod.z.string(),
|
|
79
|
+
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
80
|
+
durationSeconds: import_zod.z.number().int().optional(),
|
|
81
|
+
generateAudio: import_zod.z.boolean().optional(),
|
|
82
|
+
modelName: import_zod.z.string().optional(),
|
|
83
|
+
resolution: import_zod.z.string().optional()
|
|
84
|
+
});
|
|
85
|
+
var VideoOverlayStyleSchema = import_zod.z.enum([
|
|
86
|
+
"neubrutalist",
|
|
87
|
+
"neubrutalist-dark",
|
|
88
|
+
"badge",
|
|
89
|
+
"meme",
|
|
90
|
+
"custom",
|
|
91
|
+
"none"
|
|
92
|
+
]);
|
|
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
|
+
})
|
|
105
|
+
]);
|
|
106
|
+
var VideoWatermarkSchema = import_zod.z.object({
|
|
107
|
+
text: import_zod.z.string().optional(),
|
|
108
|
+
imagePath: import_zod.z.string().optional(),
|
|
109
|
+
font: import_zod.z.string().optional(),
|
|
110
|
+
fontPath: import_zod.z.string().optional(),
|
|
111
|
+
position: WatermarkPositionSchema.optional(),
|
|
112
|
+
color: import_zod.z.string().optional(),
|
|
113
|
+
strokeColor: import_zod.z.string().optional(),
|
|
114
|
+
strokeWidth: import_zod.z.number().optional(),
|
|
115
|
+
fontSize: import_zod.z.number().optional(),
|
|
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(),
|
|
136
|
+
opacity: import_zod.z.number().optional()
|
|
137
|
+
});
|
|
138
|
+
var VideoTextOverlaySchema = import_zod.z.object({
|
|
139
|
+
text: import_zod.z.string(),
|
|
140
|
+
style: VideoOverlayStyleSchema.optional(),
|
|
141
|
+
font: import_zod.z.string().optional(),
|
|
142
|
+
fontPath: import_zod.z.string().optional(),
|
|
143
|
+
position: TextOverlayPositionSchema.optional(),
|
|
144
|
+
alignment: TextAlignmentSchema.optional(),
|
|
145
|
+
fontSize: import_zod.z.number().optional(),
|
|
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()
|
|
166
|
+
});
|
|
167
|
+
var SocialVideoGenerationSchema = import_zod.z.object({
|
|
168
|
+
prompt: import_zod.z.string(),
|
|
169
|
+
audioPrompt: import_zod.z.string().optional(),
|
|
170
|
+
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
171
|
+
durationSeconds: import_zod.z.number().int().optional(),
|
|
172
|
+
hook: import_zod.z.union([import_zod.z.string(), VideoTextOverlaySchema]).optional(),
|
|
173
|
+
watermark: import_zod.z.union([import_zod.z.string(), VideoWatermarkSchema]).optional()
|
|
174
|
+
});
|
|
65
175
|
var ImageGenerationSchema = import_zod.z.object({
|
|
66
176
|
prompt: import_zod.z.string(),
|
|
67
177
|
aspectRatio: AspectRatioSchema.optional(),
|
|
@@ -74,6 +184,17 @@ var ImageTransformationSchema = import_zod.z.object({
|
|
|
74
184
|
aspectRatio: AspectRatioSchema.optional(),
|
|
75
185
|
seed: import_zod.z.number().int().optional()
|
|
76
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
|
+
});
|
|
77
198
|
var VideoAnalysisCategorySchema = import_zod.z.enum([
|
|
78
199
|
"Scenes",
|
|
79
200
|
"Environments",
|
|
@@ -201,15 +322,27 @@ var QueueJobSchema = import_zod.z.object({
|
|
|
201
322
|
CodeGenerationSchema,
|
|
202
323
|
ComponentPropDefinitionSchema,
|
|
203
324
|
ComponentSynthesisSchema,
|
|
325
|
+
DropShadowSchema,
|
|
204
326
|
FidelitySchema,
|
|
327
|
+
ImageCompositingSchema,
|
|
205
328
|
ImageGenerationSchema,
|
|
329
|
+
ImageTextOverlaySchema,
|
|
206
330
|
ImageTransformationSchema,
|
|
331
|
+
ImageWatermarkSchema,
|
|
207
332
|
JsonGenerationSchema,
|
|
208
333
|
QueueJobSchema,
|
|
209
334
|
QueueJobStatusSchema,
|
|
210
335
|
QueueJobTypeSchema,
|
|
211
336
|
ServiceClientSchema,
|
|
337
|
+
SocialVideoGenerationSchema,
|
|
338
|
+
TextAlignmentSchema,
|
|
339
|
+
TextOverlayPositionSchema,
|
|
212
340
|
VideoAnalysisCategorySchema,
|
|
213
341
|
VideoAnalysisSchema,
|
|
214
|
-
VideoAspectRatioSchema
|
|
342
|
+
VideoAspectRatioSchema,
|
|
343
|
+
VideoGenerationSchema,
|
|
344
|
+
VideoOverlayStyleSchema,
|
|
345
|
+
VideoTextOverlaySchema,
|
|
346
|
+
VideoWatermarkSchema,
|
|
347
|
+
WatermarkPositionSchema
|
|
215
348
|
});
|