@pixerate/schemas 1.7.0 → 1.8.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/README.md +23 -0
- package/dist/index.cjs +108 -2
- package/dist/index.d.cts +1085 -10
- package/dist/index.d.ts +1085 -10
- package/dist/index.js +98 -2
- package/package.json +10 -5
package/README.md
CHANGED
|
@@ -69,3 +69,26 @@ npm run build
|
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
The compiled bundles and types will reside in the `dist/` directory.
|
|
72
|
+
|
|
73
|
+
## Contributing & Releases
|
|
74
|
+
|
|
75
|
+
This repository mandates [Changesets](https://github.com/changesets/changesets) for tracking versioning and generating changelogs.
|
|
76
|
+
|
|
77
|
+
### Creating a Changeset
|
|
78
|
+
|
|
79
|
+
When submitting a pull request that introduces changes, generate a changeset:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
npm run changeset
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
1. Select the bump type (`patch`, `minor`, or `major`).
|
|
86
|
+
2. Provide a summary message describing the changes.
|
|
87
|
+
3. Commit the generated `.changeset/*.md` file with your pull request.
|
|
88
|
+
|
|
89
|
+
If a PR does not require a release bump (e.g. CI adjustments or documentation fixes), generate an empty changeset:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npx changeset --empty
|
|
93
|
+
```
|
|
94
|
+
|
package/dist/index.cjs
CHANGED
|
@@ -33,9 +33,12 @@ __export(index_exports, {
|
|
|
33
33
|
AgentNetworkTransformRuleSchema: () => AgentNetworkTransformRuleSchema,
|
|
34
34
|
AgentToolSchema: () => AgentToolSchema,
|
|
35
35
|
AgentToolTypeSchema: () => AgentToolTypeSchema,
|
|
36
|
+
AnimatedGifCompositeSchema: () => AnimatedGifCompositeSchema,
|
|
37
|
+
ArcDistortSchema: () => ArcDistortSchema,
|
|
36
38
|
AspectRatioSchema: () => AspectRatioSchema,
|
|
37
39
|
AudioMixOptionsSchema: () => AudioMixOptionsSchema,
|
|
38
40
|
AudioMixTrackSchema: () => AudioMixTrackSchema,
|
|
41
|
+
AutoFitCaptionSchema: () => AutoFitCaptionSchema,
|
|
39
42
|
CodeGenerationSchema: () => CodeGenerationSchema,
|
|
40
43
|
ComponentDocsSchema: () => ComponentDocsSchema,
|
|
41
44
|
ComponentPackageSchema: () => ComponentPackageSchema,
|
|
@@ -51,6 +54,7 @@ __export(index_exports, {
|
|
|
51
54
|
DecisionGateKindSchema: () => DecisionGateKindSchema,
|
|
52
55
|
DecisionGateSchema: () => DecisionGateSchema,
|
|
53
56
|
DimensionScoreSchema: () => DimensionScoreSchema,
|
|
57
|
+
DisplacementMapSchema: () => DisplacementMapSchema,
|
|
54
58
|
DropShadowSchema: () => DropShadowSchema,
|
|
55
59
|
FORM_SCHEMA_JSON_SCHEMA: () => FORM_SCHEMA_JSON_SCHEMA,
|
|
56
60
|
FidelitySchema: () => FidelitySchema,
|
|
@@ -66,12 +70,17 @@ __export(index_exports, {
|
|
|
66
70
|
GenerateHarnessOptionsSchema: () => GenerateHarnessOptionsSchema,
|
|
67
71
|
ImageCompositingSchema: () => ImageCompositingSchema,
|
|
68
72
|
ImageGenerationSchema: () => ImageGenerationSchema,
|
|
73
|
+
ImageOverlayOptionsSchema: () => ImageOverlayOptionsSchema,
|
|
74
|
+
ImagePipelineSchema: () => ImagePipelineSchema,
|
|
69
75
|
ImageTextOverlaySchema: () => ImageTextOverlaySchema,
|
|
70
76
|
ImageTransformationSchema: () => ImageTransformationSchema,
|
|
71
77
|
ImageWatermarkSchema: () => ImageWatermarkSchema,
|
|
72
78
|
IngestionInputSchema: () => IngestionInputSchema,
|
|
73
79
|
JsonGenerationSchema: () => JsonGenerationSchema,
|
|
80
|
+
PerspectiveQuadSchema: () => PerspectiveQuadSchema,
|
|
81
|
+
PerspectiveWarpSchema: () => PerspectiveWarpSchema,
|
|
74
82
|
PlatformLanguageSchema: () => PlatformLanguageSchema,
|
|
83
|
+
Point2DSchema: () => Point2DSchema,
|
|
75
84
|
PreviewHarnessSchema: () => PreviewHarnessSchema,
|
|
76
85
|
QueueJobSchema: () => QueueJobSchema,
|
|
77
86
|
QueueJobStatusSchema: () => QueueJobStatusSchema,
|
|
@@ -110,6 +119,7 @@ __export(index_exports, {
|
|
|
110
119
|
VideoCompressionSchema: () => VideoCompressionSchema,
|
|
111
120
|
VideoFrameImageSchema: () => VideoFrameImageSchema,
|
|
112
121
|
VideoGenerationSchema: () => VideoGenerationSchema,
|
|
122
|
+
VideoModificationSchema: () => VideoModificationSchema,
|
|
113
123
|
VideoOverlayOptionsSchema: () => VideoOverlayOptionsSchema,
|
|
114
124
|
VideoOverlayStyleSchema: () => VideoOverlayStyleSchema,
|
|
115
125
|
VideoPipelineSchema: () => VideoPipelineSchema,
|
|
@@ -325,14 +335,93 @@ var ImageTransformationSchema = import_zod.z.object({
|
|
|
325
335
|
aspectRatio: AspectRatioSchema.optional(),
|
|
326
336
|
seed: import_zod.z.number().int().optional()
|
|
327
337
|
});
|
|
338
|
+
var Point2DSchema = import_zod.z.tuple([import_zod.z.number(), import_zod.z.number()]);
|
|
339
|
+
var PerspectiveQuadSchema = import_zod.z.tuple([
|
|
340
|
+
Point2DSchema,
|
|
341
|
+
Point2DSchema,
|
|
342
|
+
Point2DSchema,
|
|
343
|
+
Point2DSchema
|
|
344
|
+
]);
|
|
345
|
+
var PerspectiveWarpSchema = import_zod.z.object({
|
|
346
|
+
srcQuad: PerspectiveQuadSchema.optional(),
|
|
347
|
+
dstQuad: PerspectiveQuadSchema,
|
|
348
|
+
resample: import_zod.z.enum(["ewa", "bicubic", "bilinear", "point"]).optional().default("ewa"),
|
|
349
|
+
background: import_zod.z.string().optional()
|
|
350
|
+
});
|
|
351
|
+
var DisplacementMapSchema = import_zod.z.object({
|
|
352
|
+
mapImage: import_zod.z.string().describe("Path, URL, or base64 data URI of the displacement map image"),
|
|
353
|
+
xScale: import_zod.z.number().describe("Horizontal displacement scale in pixels"),
|
|
354
|
+
yScale: import_zod.z.number().describe("Vertical displacement scale in pixels")
|
|
355
|
+
});
|
|
356
|
+
var ArcDistortSchema = import_zod.z.object({
|
|
357
|
+
angle: import_zod.z.number().describe("Arc angle in degrees (e.g. 60, 180, 360)"),
|
|
358
|
+
rotation: import_zod.z.number().optional().default(0).describe("Starting angle rotation in degrees"),
|
|
359
|
+
radius: import_zod.z.number().optional().describe("Top radius in pixels"),
|
|
360
|
+
background: import_zod.z.string().optional()
|
|
361
|
+
});
|
|
362
|
+
var AutoFitCaptionSchema = import_zod.z.object({
|
|
363
|
+
text: import_zod.z.string(),
|
|
364
|
+
width: import_zod.z.number().int().positive(),
|
|
365
|
+
height: import_zod.z.number().int().positive(),
|
|
366
|
+
font: import_zod.z.string().optional(),
|
|
367
|
+
textColor: import_zod.z.string().optional(),
|
|
368
|
+
backgroundColor: import_zod.z.string().optional(),
|
|
369
|
+
gravity: import_zod.z.enum(["NorthWest", "North", "NorthEast", "West", "Center", "East", "SouthWest", "South", "SouthEast"]).optional().default("Center"),
|
|
370
|
+
position: import_zod.z.object({
|
|
371
|
+
x: import_zod.z.number().optional(),
|
|
372
|
+
y: import_zod.z.number().optional()
|
|
373
|
+
}).optional()
|
|
374
|
+
});
|
|
375
|
+
var AnimatedGifCompositeSchema = import_zod.z.object({
|
|
376
|
+
delayMs: import_zod.z.number().int().positive().optional(),
|
|
377
|
+
loop: import_zod.z.number().int().min(0).optional().default(0),
|
|
378
|
+
dither: import_zod.z.enum(["FloydSteinberg", "Riemersma", "None"]).optional().default("FloydSteinberg"),
|
|
379
|
+
coalesce: import_zod.z.boolean().optional().default(true)
|
|
380
|
+
});
|
|
381
|
+
var ImageOverlayOptionsSchema = import_zod.z.object({
|
|
382
|
+
x: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
383
|
+
y: import_zod.z.union([import_zod.z.number(), import_zod.z.string()]).optional(),
|
|
384
|
+
gravity: import_zod.z.enum(["northwest", "north", "northeast", "west", "center", "east", "southwest", "south", "southeast"]).optional(),
|
|
385
|
+
blend: import_zod.z.enum(["over", "in", "out", "atop", "xor", "multiply", "screen", "overlay", "darken", "lighten"]).optional(),
|
|
386
|
+
opacity: import_zod.z.number().min(0).max(1).optional()
|
|
387
|
+
});
|
|
388
|
+
var ImagePipelineSchema = import_zod.z.object({
|
|
389
|
+
fit: import_zod.z.object({
|
|
390
|
+
width: import_zod.z.number().int().positive().optional(),
|
|
391
|
+
height: import_zod.z.number().int().positive().optional(),
|
|
392
|
+
aspectRatio: AspectRatioSchema.optional(),
|
|
393
|
+
fit: import_zod.z.enum(["cover", "contain", "fill", "inside", "outside"]).optional(),
|
|
394
|
+
background: import_zod.z.string().optional()
|
|
395
|
+
}).optional(),
|
|
396
|
+
textOverlay: TextOverlaySchema.optional(),
|
|
397
|
+
watermark: import_zod.z.union([WatermarkSchema, import_zod.z.string()]).optional(),
|
|
398
|
+
imageOverlays: import_zod.z.array(import_zod.z.object({
|
|
399
|
+
image: import_zod.z.string(),
|
|
400
|
+
options: ImageOverlayOptionsSchema.optional()
|
|
401
|
+
})).optional(),
|
|
402
|
+
perspectiveWarp: PerspectiveWarpSchema.optional(),
|
|
403
|
+
displacementMap: DisplacementMapSchema.optional(),
|
|
404
|
+
arcDistort: ArcDistortSchema.optional(),
|
|
405
|
+
autoFitCaption: AutoFitCaptionSchema.optional(),
|
|
406
|
+
animatedGif: AnimatedGifCompositeSchema.optional(),
|
|
407
|
+
output: import_zod.z.object({
|
|
408
|
+
format: import_zod.z.enum(["png", "jpeg", "webp", "avif", "gif"]).optional(),
|
|
409
|
+
quality: import_zod.z.number().int().min(1).max(100).optional()
|
|
410
|
+
}).optional()
|
|
411
|
+
});
|
|
328
412
|
var ImageCompositingSchema = import_zod.z.object({
|
|
329
413
|
textOverlay: TextOverlaySchema.optional(),
|
|
330
414
|
watermark: WatermarkSchema.optional(),
|
|
331
415
|
fit: import_zod.z.enum(["cover", "contain", "fill", "inside", "outside"]).optional(),
|
|
332
416
|
targetWidth: import_zod.z.number().int().optional(),
|
|
333
417
|
targetHeight: import_zod.z.number().int().optional(),
|
|
334
|
-
format: import_zod.z.enum(["png", "jpeg", "webp", "avif"]).optional(),
|
|
335
|
-
quality: import_zod.z.number().int().min(1).max(100).optional()
|
|
418
|
+
format: import_zod.z.enum(["png", "jpeg", "webp", "avif", "gif"]).optional(),
|
|
419
|
+
quality: import_zod.z.number().int().min(1).max(100).optional(),
|
|
420
|
+
perspectiveWarp: PerspectiveWarpSchema.optional(),
|
|
421
|
+
displacementMap: DisplacementMapSchema.optional(),
|
|
422
|
+
arcDistort: ArcDistortSchema.optional(),
|
|
423
|
+
autoFitCaption: AutoFitCaptionSchema.optional(),
|
|
424
|
+
animatedGif: AnimatedGifCompositeSchema.optional()
|
|
336
425
|
});
|
|
337
426
|
var VideoAnalysisCategorySchema = import_zod.z.enum([
|
|
338
427
|
"Scenes",
|
|
@@ -351,6 +440,13 @@ var VideoAnalysisSchema = import_zod.z.object({
|
|
|
351
440
|
category: VideoAnalysisCategorySchema,
|
|
352
441
|
fidelity: FidelitySchema
|
|
353
442
|
});
|
|
443
|
+
var VideoModificationSchema = import_zod.z.object({
|
|
444
|
+
prompt: import_zod.z.string(),
|
|
445
|
+
changes: import_zod.z.string().optional(),
|
|
446
|
+
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
447
|
+
durationSeconds: import_zod.z.number().optional(),
|
|
448
|
+
seed: import_zod.z.number().int().optional()
|
|
449
|
+
});
|
|
354
450
|
var CodeGenerationSchema = import_zod.z.object({
|
|
355
451
|
prompt: import_zod.z.string(),
|
|
356
452
|
language: import_zod.z.string()
|
|
@@ -1128,9 +1224,12 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
1128
1224
|
AgentNetworkTransformRuleSchema,
|
|
1129
1225
|
AgentToolSchema,
|
|
1130
1226
|
AgentToolTypeSchema,
|
|
1227
|
+
AnimatedGifCompositeSchema,
|
|
1228
|
+
ArcDistortSchema,
|
|
1131
1229
|
AspectRatioSchema,
|
|
1132
1230
|
AudioMixOptionsSchema,
|
|
1133
1231
|
AudioMixTrackSchema,
|
|
1232
|
+
AutoFitCaptionSchema,
|
|
1134
1233
|
CodeGenerationSchema,
|
|
1135
1234
|
ComponentDocsSchema,
|
|
1136
1235
|
ComponentPackageSchema,
|
|
@@ -1146,6 +1245,7 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
1146
1245
|
DecisionGateKindSchema,
|
|
1147
1246
|
DecisionGateSchema,
|
|
1148
1247
|
DimensionScoreSchema,
|
|
1248
|
+
DisplacementMapSchema,
|
|
1149
1249
|
DropShadowSchema,
|
|
1150
1250
|
FORM_SCHEMA_JSON_SCHEMA,
|
|
1151
1251
|
FidelitySchema,
|
|
@@ -1161,12 +1261,17 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
1161
1261
|
GenerateHarnessOptionsSchema,
|
|
1162
1262
|
ImageCompositingSchema,
|
|
1163
1263
|
ImageGenerationSchema,
|
|
1264
|
+
ImageOverlayOptionsSchema,
|
|
1265
|
+
ImagePipelineSchema,
|
|
1164
1266
|
ImageTextOverlaySchema,
|
|
1165
1267
|
ImageTransformationSchema,
|
|
1166
1268
|
ImageWatermarkSchema,
|
|
1167
1269
|
IngestionInputSchema,
|
|
1168
1270
|
JsonGenerationSchema,
|
|
1271
|
+
PerspectiveQuadSchema,
|
|
1272
|
+
PerspectiveWarpSchema,
|
|
1169
1273
|
PlatformLanguageSchema,
|
|
1274
|
+
Point2DSchema,
|
|
1170
1275
|
PreviewHarnessSchema,
|
|
1171
1276
|
QueueJobSchema,
|
|
1172
1277
|
QueueJobStatusSchema,
|
|
@@ -1205,6 +1310,7 @@ var FORM_SCHEMA_JSON_SCHEMA = {
|
|
|
1205
1310
|
VideoCompressionSchema,
|
|
1206
1311
|
VideoFrameImageSchema,
|
|
1207
1312
|
VideoGenerationSchema,
|
|
1313
|
+
VideoModificationSchema,
|
|
1208
1314
|
VideoOverlayOptionsSchema,
|
|
1209
1315
|
VideoOverlayStyleSchema,
|
|
1210
1316
|
VideoPipelineSchema,
|