@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.cjs +110 -12
- package/dist/index.d.cts +1548 -57
- package/dist/index.d.ts +1548 -57
- package/dist/index.js +101 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -34,21 +34,30 @@ __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,
|
|
55
|
+
VideoFrameImageSchema: () => VideoFrameImageSchema,
|
|
49
56
|
VideoGenerationSchema: () => VideoGenerationSchema,
|
|
50
57
|
VideoOverlayStyleSchema: () => VideoOverlayStyleSchema,
|
|
58
|
+
VideoResolutionSchema: () => VideoResolutionSchema,
|
|
51
59
|
VideoTextOverlaySchema: () => VideoTextOverlaySchema,
|
|
60
|
+
VideoUpscaleSchema: () => VideoUpscaleSchema,
|
|
52
61
|
VideoWatermarkSchema: () => VideoWatermarkSchema,
|
|
53
62
|
WatermarkPositionSchema: () => WatermarkPositionSchema
|
|
54
63
|
});
|
|
@@ -68,47 +77,116 @@ var AspectRatioSchema = import_zod.z.enum([
|
|
|
68
77
|
"21:9"
|
|
69
78
|
]);
|
|
70
79
|
var VideoAspectRatioSchema = import_zod.z.enum(["9:16", "16:9"]);
|
|
80
|
+
var VideoResolutionSchema = import_zod.z.enum(["720p", "1080p", "4k", "720P", "1080P", "4K"]);
|
|
81
|
+
var VideoFrameImageSchema = import_zod.z.union([
|
|
82
|
+
import_zod.z.string(),
|
|
83
|
+
import_zod.z.object({
|
|
84
|
+
bytesBase64Encoded: import_zod.z.string().optional(),
|
|
85
|
+
data: import_zod.z.string().optional(),
|
|
86
|
+
mimeType: import_zod.z.string().optional()
|
|
87
|
+
})
|
|
88
|
+
]);
|
|
71
89
|
var VideoGenerationSchema = import_zod.z.object({
|
|
72
90
|
prompt: import_zod.z.string(),
|
|
73
91
|
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
74
92
|
durationSeconds: import_zod.z.number().int().optional(),
|
|
75
93
|
generateAudio: import_zod.z.boolean().optional(),
|
|
76
94
|
modelName: import_zod.z.string().optional(),
|
|
77
|
-
resolution:
|
|
95
|
+
resolution: VideoResolutionSchema.optional(),
|
|
96
|
+
fps: import_zod.z.number().optional(),
|
|
97
|
+
isMultimedia: import_zod.z.boolean().optional(),
|
|
98
|
+
multimedia: import_zod.z.boolean().optional(),
|
|
99
|
+
firstFrame: VideoFrameImageSchema.optional(),
|
|
100
|
+
lastFrame: VideoFrameImageSchema.optional()
|
|
101
|
+
});
|
|
102
|
+
var VideoUpscaleSchema = import_zod.z.object({
|
|
103
|
+
video: import_zod.z.string().optional(),
|
|
104
|
+
mimeType: import_zod.z.string().optional(),
|
|
105
|
+
prompt: import_zod.z.string().optional(),
|
|
106
|
+
targetResolution: import_zod.z.enum(["1080p", "4k", "1080P", "4K"]).default("1080p"),
|
|
107
|
+
modelName: import_zod.z.string().optional()
|
|
78
108
|
});
|
|
79
109
|
var VideoOverlayStyleSchema = import_zod.z.enum([
|
|
80
110
|
"neubrutalist",
|
|
81
111
|
"neubrutalist-dark",
|
|
82
112
|
"badge",
|
|
83
113
|
"meme",
|
|
114
|
+
"custom",
|
|
84
115
|
"none"
|
|
85
116
|
]);
|
|
86
|
-
var WatermarkPositionSchema = import_zod.z.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
117
|
+
var WatermarkPositionSchema = import_zod.z.union([
|
|
118
|
+
import_zod.z.enum([
|
|
119
|
+
"bottom-right",
|
|
120
|
+
"bottom-left",
|
|
121
|
+
"top-right",
|
|
122
|
+
"top-left",
|
|
123
|
+
"center"
|
|
124
|
+
]),
|
|
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
|
+
})
|
|
92
129
|
]);
|
|
93
130
|
var VideoWatermarkSchema = import_zod.z.object({
|
|
94
131
|
text: import_zod.z.string().optional(),
|
|
95
132
|
imagePath: import_zod.z.string().optional(),
|
|
96
133
|
font: import_zod.z.string().optional(),
|
|
134
|
+
fontPath: import_zod.z.string().optional(),
|
|
97
135
|
position: WatermarkPositionSchema.optional(),
|
|
98
136
|
color: import_zod.z.string().optional(),
|
|
137
|
+
strokeColor: import_zod.z.string().optional(),
|
|
99
138
|
strokeWidth: import_zod.z.number().optional(),
|
|
100
139
|
fontSize: import_zod.z.number().optional(),
|
|
101
140
|
transparentBg: import_zod.z.boolean().optional(),
|
|
141
|
+
opacity: import_zod.z.number().optional(),
|
|
142
|
+
marginRight: import_zod.z.number().optional(),
|
|
143
|
+
marginBottom: import_zod.z.number().optional(),
|
|
144
|
+
marginLeft: import_zod.z.number().optional(),
|
|
145
|
+
marginTop: import_zod.z.number().optional()
|
|
146
|
+
});
|
|
147
|
+
var TextOverlayPositionSchema = import_zod.z.union([
|
|
148
|
+
import_zod.z.enum(["top", "center", "bottom"]),
|
|
149
|
+
import_zod.z.object({
|
|
150
|
+
x: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
151
|
+
y: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional()
|
|
152
|
+
})
|
|
153
|
+
]);
|
|
154
|
+
var TextAlignmentSchema = import_zod.z.enum(["left", "center", "right"]);
|
|
155
|
+
var DropShadowSchema = import_zod.z.object({
|
|
156
|
+
dx: import_zod.z.number().optional(),
|
|
157
|
+
dy: import_zod.z.number().optional(),
|
|
158
|
+
blur: import_zod.z.number().optional(),
|
|
159
|
+
color: import_zod.z.string().optional(),
|
|
102
160
|
opacity: import_zod.z.number().optional()
|
|
103
161
|
});
|
|
104
162
|
var VideoTextOverlaySchema = import_zod.z.object({
|
|
105
163
|
text: import_zod.z.string(),
|
|
106
164
|
style: VideoOverlayStyleSchema.optional(),
|
|
107
|
-
|
|
108
|
-
|
|
165
|
+
font: import_zod.z.string().optional(),
|
|
166
|
+
fontPath: import_zod.z.string().optional(),
|
|
167
|
+
position: TextOverlayPositionSchema.optional(),
|
|
168
|
+
alignment: TextAlignmentSchema.optional(),
|
|
109
169
|
fontSize: import_zod.z.number().optional(),
|
|
110
|
-
|
|
111
|
-
|
|
170
|
+
lineHeight: import_zod.z.number().optional(),
|
|
171
|
+
letterSpacing: import_zod.z.number().optional(),
|
|
172
|
+
textColor: import_zod.z.string().optional(),
|
|
173
|
+
textTransform: import_zod.z.enum(["uppercase", "lowercase", "capitalize", "none"]).optional(),
|
|
174
|
+
strokeColor: import_zod.z.string().optional(),
|
|
175
|
+
strokeWidth: import_zod.z.number().optional(),
|
|
176
|
+
shadow: import_zod.z.union([import_zod.z.boolean(), DropShadowSchema]).optional(),
|
|
177
|
+
containerBgColor: import_zod.z.string().optional(),
|
|
178
|
+
containerBorderColor: import_zod.z.string().optional(),
|
|
179
|
+
containerBorderWidth: import_zod.z.number().optional(),
|
|
180
|
+
containerBorderRadius: import_zod.z.number().optional(),
|
|
181
|
+
paddingX: import_zod.z.number().optional(),
|
|
182
|
+
paddingY: import_zod.z.number().optional(),
|
|
183
|
+
maxCharsPerLine: import_zod.z.number().optional(),
|
|
184
|
+
badgeTag: import_zod.z.string().optional(),
|
|
185
|
+
badgeBgColor: import_zod.z.string().optional(),
|
|
186
|
+
badgeTextColor: import_zod.z.string().optional(),
|
|
187
|
+
badgeFont: import_zod.z.string().optional(),
|
|
188
|
+
badgePosition: import_zod.z.enum(["top-left", "top-right", "top-center", "bottom-left", "bottom-right", "bottom-center"]).optional(),
|
|
189
|
+
watermark: import_zod.z.union([import_zod.z.string(), VideoWatermarkSchema]).optional()
|
|
112
190
|
});
|
|
113
191
|
var SocialVideoGenerationSchema = import_zod.z.object({
|
|
114
192
|
prompt: import_zod.z.string(),
|
|
@@ -130,6 +208,17 @@ var ImageTransformationSchema = import_zod.z.object({
|
|
|
130
208
|
aspectRatio: AspectRatioSchema.optional(),
|
|
131
209
|
seed: import_zod.z.number().int().optional()
|
|
132
210
|
});
|
|
211
|
+
var ImageTextOverlaySchema = VideoTextOverlaySchema;
|
|
212
|
+
var ImageWatermarkSchema = VideoWatermarkSchema;
|
|
213
|
+
var ImageCompositingSchema = import_zod.z.object({
|
|
214
|
+
textOverlay: ImageTextOverlaySchema.optional(),
|
|
215
|
+
watermark: ImageWatermarkSchema.optional(),
|
|
216
|
+
fit: import_zod.z.enum(["cover", "contain", "fill", "inside", "outside"]).optional(),
|
|
217
|
+
targetWidth: import_zod.z.number().int().optional(),
|
|
218
|
+
targetHeight: import_zod.z.number().int().optional(),
|
|
219
|
+
format: import_zod.z.enum(["png", "jpeg", "webp", "avif"]).optional(),
|
|
220
|
+
quality: import_zod.z.number().int().min(1).max(100).optional()
|
|
221
|
+
});
|
|
133
222
|
var VideoAnalysisCategorySchema = import_zod.z.enum([
|
|
134
223
|
"Scenes",
|
|
135
224
|
"Environments",
|
|
@@ -230,7 +319,7 @@ var AgentInteractionResultSchema = import_zod.z.object({
|
|
|
230
319
|
createdAt: import_zod.z.string().optional(),
|
|
231
320
|
updatedAt: import_zod.z.string().optional()
|
|
232
321
|
});
|
|
233
|
-
var QueueJobTypeSchema = import_zod.z.enum(["text", "image", "video", "analysis", "audio", "agent", "code", "component"]);
|
|
322
|
+
var QueueJobTypeSchema = import_zod.z.enum(["text", "image", "video", "analysis", "audio", "agent", "code", "component", "upscale"]);
|
|
234
323
|
var QueueJobStatusSchema = import_zod.z.enum(["queued", "processing", "completed", "failed"]);
|
|
235
324
|
var QueueJobSchema = import_zod.z.object({
|
|
236
325
|
id: import_zod.z.string(),
|
|
@@ -257,21 +346,30 @@ var QueueJobSchema = import_zod.z.object({
|
|
|
257
346
|
CodeGenerationSchema,
|
|
258
347
|
ComponentPropDefinitionSchema,
|
|
259
348
|
ComponentSynthesisSchema,
|
|
349
|
+
DropShadowSchema,
|
|
260
350
|
FidelitySchema,
|
|
351
|
+
ImageCompositingSchema,
|
|
261
352
|
ImageGenerationSchema,
|
|
353
|
+
ImageTextOverlaySchema,
|
|
262
354
|
ImageTransformationSchema,
|
|
355
|
+
ImageWatermarkSchema,
|
|
263
356
|
JsonGenerationSchema,
|
|
264
357
|
QueueJobSchema,
|
|
265
358
|
QueueJobStatusSchema,
|
|
266
359
|
QueueJobTypeSchema,
|
|
267
360
|
ServiceClientSchema,
|
|
268
361
|
SocialVideoGenerationSchema,
|
|
362
|
+
TextAlignmentSchema,
|
|
363
|
+
TextOverlayPositionSchema,
|
|
269
364
|
VideoAnalysisCategorySchema,
|
|
270
365
|
VideoAnalysisSchema,
|
|
271
366
|
VideoAspectRatioSchema,
|
|
367
|
+
VideoFrameImageSchema,
|
|
272
368
|
VideoGenerationSchema,
|
|
273
369
|
VideoOverlayStyleSchema,
|
|
370
|
+
VideoResolutionSchema,
|
|
274
371
|
VideoTextOverlaySchema,
|
|
372
|
+
VideoUpscaleSchema,
|
|
275
373
|
VideoWatermarkSchema,
|
|
276
374
|
WatermarkPositionSchema
|
|
277
375
|
});
|