@pixerate/schemas 1.1.13 → 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 +29 -2
- package/dist/index.d.cts +111 -20
- package/dist/index.d.ts +111 -20
- package/dist/index.js +26 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -52,9 +52,12 @@ __export(index_exports, {
|
|
|
52
52
|
VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
|
|
53
53
|
VideoAnalysisSchema: () => VideoAnalysisSchema,
|
|
54
54
|
VideoAspectRatioSchema: () => VideoAspectRatioSchema,
|
|
55
|
+
VideoFrameImageSchema: () => VideoFrameImageSchema,
|
|
55
56
|
VideoGenerationSchema: () => VideoGenerationSchema,
|
|
56
57
|
VideoOverlayStyleSchema: () => VideoOverlayStyleSchema,
|
|
58
|
+
VideoResolutionSchema: () => VideoResolutionSchema,
|
|
57
59
|
VideoTextOverlaySchema: () => VideoTextOverlaySchema,
|
|
60
|
+
VideoUpscaleSchema: () => VideoUpscaleSchema,
|
|
58
61
|
VideoWatermarkSchema: () => VideoWatermarkSchema,
|
|
59
62
|
WatermarkPositionSchema: () => WatermarkPositionSchema
|
|
60
63
|
});
|
|
@@ -74,13 +77,34 @@ var AspectRatioSchema = import_zod.z.enum([
|
|
|
74
77
|
"21:9"
|
|
75
78
|
]);
|
|
76
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
|
+
]);
|
|
77
89
|
var VideoGenerationSchema = import_zod.z.object({
|
|
78
90
|
prompt: import_zod.z.string(),
|
|
79
91
|
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
80
92
|
durationSeconds: import_zod.z.number().int().optional(),
|
|
81
93
|
generateAudio: import_zod.z.boolean().optional(),
|
|
82
94
|
modelName: import_zod.z.string().optional(),
|
|
83
|
-
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()
|
|
84
108
|
});
|
|
85
109
|
var VideoOverlayStyleSchema = import_zod.z.enum([
|
|
86
110
|
"neubrutalist",
|
|
@@ -295,7 +319,7 @@ var AgentInteractionResultSchema = import_zod.z.object({
|
|
|
295
319
|
createdAt: import_zod.z.string().optional(),
|
|
296
320
|
updatedAt: import_zod.z.string().optional()
|
|
297
321
|
});
|
|
298
|
-
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"]);
|
|
299
323
|
var QueueJobStatusSchema = import_zod.z.enum(["queued", "processing", "completed", "failed"]);
|
|
300
324
|
var QueueJobSchema = import_zod.z.object({
|
|
301
325
|
id: import_zod.z.string(),
|
|
@@ -340,9 +364,12 @@ var QueueJobSchema = import_zod.z.object({
|
|
|
340
364
|
VideoAnalysisCategorySchema,
|
|
341
365
|
VideoAnalysisSchema,
|
|
342
366
|
VideoAspectRatioSchema,
|
|
367
|
+
VideoFrameImageSchema,
|
|
343
368
|
VideoGenerationSchema,
|
|
344
369
|
VideoOverlayStyleSchema,
|
|
370
|
+
VideoResolutionSchema,
|
|
345
371
|
VideoTextOverlaySchema,
|
|
372
|
+
VideoUpscaleSchema,
|
|
346
373
|
VideoWatermarkSchema,
|
|
347
374
|
WatermarkPositionSchema
|
|
348
375
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -6,29 +6,120 @@ declare const AspectRatioSchema: z.ZodEnum<["1:1", "2:3", "3:2", "3:4", "4:3", "
|
|
|
6
6
|
type AspectRatio = z.infer<typeof AspectRatioSchema>;
|
|
7
7
|
declare const VideoAspectRatioSchema: z.ZodEnum<["9:16", "16:9"]>;
|
|
8
8
|
type VideoAspectRatio = z.infer<typeof VideoAspectRatioSchema>;
|
|
9
|
+
declare const VideoResolutionSchema: z.ZodEnum<["720p", "1080p", "4k", "720P", "1080P", "4K"]>;
|
|
10
|
+
type VideoResolution = z.infer<typeof VideoResolutionSchema>;
|
|
11
|
+
declare const VideoFrameImageSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
12
|
+
bytesBase64Encoded: z.ZodOptional<z.ZodString>;
|
|
13
|
+
data: z.ZodOptional<z.ZodString>;
|
|
14
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
bytesBase64Encoded?: string | undefined;
|
|
17
|
+
data?: string | undefined;
|
|
18
|
+
mimeType?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
bytesBase64Encoded?: string | undefined;
|
|
21
|
+
data?: string | undefined;
|
|
22
|
+
mimeType?: string | undefined;
|
|
23
|
+
}>]>;
|
|
24
|
+
type VideoFrameImage = z.infer<typeof VideoFrameImageSchema>;
|
|
9
25
|
declare const VideoGenerationSchema: z.ZodObject<{
|
|
10
26
|
prompt: z.ZodString;
|
|
11
27
|
aspectRatio: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
|
|
12
28
|
durationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
13
29
|
generateAudio: z.ZodOptional<z.ZodBoolean>;
|
|
14
30
|
modelName: z.ZodOptional<z.ZodString>;
|
|
15
|
-
resolution: z.ZodOptional<z.
|
|
31
|
+
resolution: z.ZodOptional<z.ZodEnum<["720p", "1080p", "4k", "720P", "1080P", "4K"]>>;
|
|
32
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
isMultimedia: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
multimedia: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
firstFrame: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
36
|
+
bytesBase64Encoded: z.ZodOptional<z.ZodString>;
|
|
37
|
+
data: z.ZodOptional<z.ZodString>;
|
|
38
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
bytesBase64Encoded?: string | undefined;
|
|
41
|
+
data?: string | undefined;
|
|
42
|
+
mimeType?: string | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
bytesBase64Encoded?: string | undefined;
|
|
45
|
+
data?: string | undefined;
|
|
46
|
+
mimeType?: string | undefined;
|
|
47
|
+
}>]>>;
|
|
48
|
+
lastFrame: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
49
|
+
bytesBase64Encoded: z.ZodOptional<z.ZodString>;
|
|
50
|
+
data: z.ZodOptional<z.ZodString>;
|
|
51
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
bytesBase64Encoded?: string | undefined;
|
|
54
|
+
data?: string | undefined;
|
|
55
|
+
mimeType?: string | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
bytesBase64Encoded?: string | undefined;
|
|
58
|
+
data?: string | undefined;
|
|
59
|
+
mimeType?: string | undefined;
|
|
60
|
+
}>]>>;
|
|
16
61
|
}, "strip", z.ZodTypeAny, {
|
|
17
62
|
prompt: string;
|
|
18
63
|
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
19
64
|
durationSeconds?: number | undefined;
|
|
20
65
|
generateAudio?: boolean | undefined;
|
|
21
66
|
modelName?: string | undefined;
|
|
22
|
-
resolution?:
|
|
67
|
+
resolution?: "720p" | "1080p" | "4k" | "720P" | "1080P" | "4K" | undefined;
|
|
68
|
+
fps?: number | undefined;
|
|
69
|
+
isMultimedia?: boolean | undefined;
|
|
70
|
+
multimedia?: boolean | undefined;
|
|
71
|
+
firstFrame?: string | {
|
|
72
|
+
bytesBase64Encoded?: string | undefined;
|
|
73
|
+
data?: string | undefined;
|
|
74
|
+
mimeType?: string | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
lastFrame?: string | {
|
|
77
|
+
bytesBase64Encoded?: string | undefined;
|
|
78
|
+
data?: string | undefined;
|
|
79
|
+
mimeType?: string | undefined;
|
|
80
|
+
} | undefined;
|
|
23
81
|
}, {
|
|
24
82
|
prompt: string;
|
|
25
83
|
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
26
84
|
durationSeconds?: number | undefined;
|
|
27
85
|
generateAudio?: boolean | undefined;
|
|
28
86
|
modelName?: string | undefined;
|
|
29
|
-
resolution?:
|
|
87
|
+
resolution?: "720p" | "1080p" | "4k" | "720P" | "1080P" | "4K" | undefined;
|
|
88
|
+
fps?: number | undefined;
|
|
89
|
+
isMultimedia?: boolean | undefined;
|
|
90
|
+
multimedia?: boolean | undefined;
|
|
91
|
+
firstFrame?: string | {
|
|
92
|
+
bytesBase64Encoded?: string | undefined;
|
|
93
|
+
data?: string | undefined;
|
|
94
|
+
mimeType?: string | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
lastFrame?: string | {
|
|
97
|
+
bytesBase64Encoded?: string | undefined;
|
|
98
|
+
data?: string | undefined;
|
|
99
|
+
mimeType?: string | undefined;
|
|
100
|
+
} | undefined;
|
|
30
101
|
}>;
|
|
31
102
|
type VideoGenerationPayload = z.infer<typeof VideoGenerationSchema>;
|
|
103
|
+
declare const VideoUpscaleSchema: z.ZodObject<{
|
|
104
|
+
video: z.ZodOptional<z.ZodString>;
|
|
105
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
106
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
107
|
+
targetResolution: z.ZodDefault<z.ZodEnum<["1080p", "4k", "1080P", "4K"]>>;
|
|
108
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
targetResolution: "1080p" | "4k" | "1080P" | "4K";
|
|
111
|
+
mimeType?: string | undefined;
|
|
112
|
+
prompt?: string | undefined;
|
|
113
|
+
modelName?: string | undefined;
|
|
114
|
+
video?: string | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
mimeType?: string | undefined;
|
|
117
|
+
prompt?: string | undefined;
|
|
118
|
+
modelName?: string | undefined;
|
|
119
|
+
video?: string | undefined;
|
|
120
|
+
targetResolution?: "1080p" | "4k" | "1080P" | "4K" | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
type VideoUpscalePayload = z.infer<typeof VideoUpscaleSchema>;
|
|
32
123
|
declare const VideoOverlayStyleSchema: z.ZodEnum<["neubrutalist", "neubrutalist-dark", "badge", "meme", "custom", "none"]>;
|
|
33
124
|
type VideoOverlayStyle = z.infer<typeof VideoOverlayStyleSchema>;
|
|
34
125
|
declare const WatermarkPositionSchema: z.ZodUnion<[z.ZodEnum<["bottom-right", "bottom-left", "top-right", "top-left", "center"]>, z.ZodObject<{
|
|
@@ -269,7 +360,7 @@ declare const VideoTextOverlaySchema: z.ZodObject<{
|
|
|
269
360
|
strokeColor?: string | undefined;
|
|
270
361
|
strokeWidth?: number | undefined;
|
|
271
362
|
fontSize?: number | undefined;
|
|
272
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
363
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
273
364
|
alignment?: "center" | "left" | "right" | undefined;
|
|
274
365
|
lineHeight?: number | undefined;
|
|
275
366
|
letterSpacing?: number | undefined;
|
|
@@ -325,7 +416,7 @@ declare const VideoTextOverlaySchema: z.ZodObject<{
|
|
|
325
416
|
strokeColor?: string | undefined;
|
|
326
417
|
strokeWidth?: number | undefined;
|
|
327
418
|
fontSize?: number | undefined;
|
|
328
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
419
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
329
420
|
alignment?: "center" | "left" | "right" | undefined;
|
|
330
421
|
lineHeight?: number | undefined;
|
|
331
422
|
letterSpacing?: number | undefined;
|
|
@@ -506,7 +597,7 @@ declare const SocialVideoGenerationSchema: z.ZodObject<{
|
|
|
506
597
|
strokeColor?: string | undefined;
|
|
507
598
|
strokeWidth?: number | undefined;
|
|
508
599
|
fontSize?: number | undefined;
|
|
509
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
600
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
510
601
|
alignment?: "center" | "left" | "right" | undefined;
|
|
511
602
|
lineHeight?: number | undefined;
|
|
512
603
|
letterSpacing?: number | undefined;
|
|
@@ -562,7 +653,7 @@ declare const SocialVideoGenerationSchema: z.ZodObject<{
|
|
|
562
653
|
strokeColor?: string | undefined;
|
|
563
654
|
strokeWidth?: number | undefined;
|
|
564
655
|
fontSize?: number | undefined;
|
|
565
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
656
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
566
657
|
alignment?: "center" | "left" | "right" | undefined;
|
|
567
658
|
lineHeight?: number | undefined;
|
|
568
659
|
letterSpacing?: number | undefined;
|
|
@@ -708,7 +799,7 @@ declare const SocialVideoGenerationSchema: z.ZodObject<{
|
|
|
708
799
|
strokeColor?: string | undefined;
|
|
709
800
|
strokeWidth?: number | undefined;
|
|
710
801
|
fontSize?: number | undefined;
|
|
711
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
802
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
712
803
|
alignment?: "center" | "left" | "right" | undefined;
|
|
713
804
|
lineHeight?: number | undefined;
|
|
714
805
|
letterSpacing?: number | undefined;
|
|
@@ -790,7 +881,7 @@ declare const SocialVideoGenerationSchema: z.ZodObject<{
|
|
|
790
881
|
strokeColor?: string | undefined;
|
|
791
882
|
strokeWidth?: number | undefined;
|
|
792
883
|
fontSize?: number | undefined;
|
|
793
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
884
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
794
885
|
alignment?: "center" | "left" | "right" | undefined;
|
|
795
886
|
lineHeight?: number | undefined;
|
|
796
887
|
letterSpacing?: number | undefined;
|
|
@@ -1001,7 +1092,7 @@ declare const ImageTextOverlaySchema: z.ZodObject<{
|
|
|
1001
1092
|
strokeColor?: string | undefined;
|
|
1002
1093
|
strokeWidth?: number | undefined;
|
|
1003
1094
|
fontSize?: number | undefined;
|
|
1004
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1095
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1005
1096
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1006
1097
|
lineHeight?: number | undefined;
|
|
1007
1098
|
letterSpacing?: number | undefined;
|
|
@@ -1057,7 +1148,7 @@ declare const ImageTextOverlaySchema: z.ZodObject<{
|
|
|
1057
1148
|
strokeColor?: string | undefined;
|
|
1058
1149
|
strokeWidth?: number | undefined;
|
|
1059
1150
|
fontSize?: number | undefined;
|
|
1060
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1151
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1061
1152
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1062
1153
|
lineHeight?: number | undefined;
|
|
1063
1154
|
letterSpacing?: number | undefined;
|
|
@@ -1299,7 +1390,7 @@ declare const ImageCompositingSchema: z.ZodObject<{
|
|
|
1299
1390
|
strokeColor?: string | undefined;
|
|
1300
1391
|
strokeWidth?: number | undefined;
|
|
1301
1392
|
fontSize?: number | undefined;
|
|
1302
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1393
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1303
1394
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1304
1395
|
lineHeight?: number | undefined;
|
|
1305
1396
|
letterSpacing?: number | undefined;
|
|
@@ -1355,7 +1446,7 @@ declare const ImageCompositingSchema: z.ZodObject<{
|
|
|
1355
1446
|
strokeColor?: string | undefined;
|
|
1356
1447
|
strokeWidth?: number | undefined;
|
|
1357
1448
|
fontSize?: number | undefined;
|
|
1358
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1449
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1359
1450
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1360
1451
|
lineHeight?: number | undefined;
|
|
1361
1452
|
letterSpacing?: number | undefined;
|
|
@@ -1502,7 +1593,7 @@ declare const ImageCompositingSchema: z.ZodObject<{
|
|
|
1502
1593
|
strokeColor?: string | undefined;
|
|
1503
1594
|
strokeWidth?: number | undefined;
|
|
1504
1595
|
fontSize?: number | undefined;
|
|
1505
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1596
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1506
1597
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1507
1598
|
lineHeight?: number | undefined;
|
|
1508
1599
|
letterSpacing?: number | undefined;
|
|
@@ -1585,7 +1676,7 @@ declare const ImageCompositingSchema: z.ZodObject<{
|
|
|
1585
1676
|
strokeColor?: string | undefined;
|
|
1586
1677
|
strokeWidth?: number | undefined;
|
|
1587
1678
|
fontSize?: number | undefined;
|
|
1588
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1679
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1589
1680
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1590
1681
|
lineHeight?: number | undefined;
|
|
1591
1682
|
letterSpacing?: number | undefined;
|
|
@@ -2114,20 +2205,20 @@ declare const AgentInteractionResultSchema: z.ZodObject<{
|
|
|
2114
2205
|
updatedAt?: string | undefined;
|
|
2115
2206
|
}>;
|
|
2116
2207
|
type AgentInteractionResult = z.infer<typeof AgentInteractionResultSchema>;
|
|
2117
|
-
declare const QueueJobTypeSchema: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
|
|
2208
|
+
declare const QueueJobTypeSchema: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component", "upscale"]>;
|
|
2118
2209
|
type QueueJobType = z.infer<typeof QueueJobTypeSchema>;
|
|
2119
2210
|
declare const QueueJobStatusSchema: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
2120
2211
|
type QueueJobStatus = z.infer<typeof QueueJobStatusSchema>;
|
|
2121
2212
|
declare const QueueJobSchema: z.ZodObject<{
|
|
2122
2213
|
id: z.ZodString;
|
|
2123
|
-
type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
|
|
2214
|
+
type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component", "upscale"]>;
|
|
2124
2215
|
status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
2125
2216
|
client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "flair", "operative", "unknown"]>>;
|
|
2126
2217
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2127
2218
|
createdAt: z.ZodOptional<z.ZodAny>;
|
|
2128
2219
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
2129
2220
|
}, "strip", z.ZodTypeAny, {
|
|
2130
|
-
type: "code" | "
|
|
2221
|
+
type: "code" | "video" | "text" | "agent" | "image" | "analysis" | "audio" | "component" | "upscale";
|
|
2131
2222
|
status: "queued" | "completed" | "failed" | "processing";
|
|
2132
2223
|
id: string;
|
|
2133
2224
|
createdAt?: any;
|
|
@@ -2135,7 +2226,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
2135
2226
|
client?: "unknown" | "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | undefined;
|
|
2136
2227
|
payload?: Record<string, any> | undefined;
|
|
2137
2228
|
}, {
|
|
2138
|
-
type: "code" | "
|
|
2229
|
+
type: "code" | "video" | "text" | "agent" | "image" | "analysis" | "audio" | "component" | "upscale";
|
|
2139
2230
|
status: "queued" | "completed" | "failed" | "processing";
|
|
2140
2231
|
id: string;
|
|
2141
2232
|
createdAt?: any;
|
|
@@ -2145,4 +2236,4 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
2145
2236
|
}>;
|
|
2146
2237
|
type QueueJob = z.infer<typeof QueueJobSchema>;
|
|
2147
2238
|
|
|
2148
|
-
export { type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type ComponentPropDefinition, ComponentPropDefinitionSchema, type ComponentSynthesisPayload, ComponentSynthesisSchema, type DropShadow, DropShadowSchema, type Fidelity, FidelitySchema, type ImageCompositingPayload, ImageCompositingSchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTextOverlay, ImageTextOverlaySchema, type ImageTransformationPayload, ImageTransformationSchema, type ImageWatermark, ImageWatermarkSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type ServiceClient, ServiceClientSchema, type SocialVideoGenerationPayload, SocialVideoGenerationSchema, type TextAlignment, TextAlignmentSchema, type TextOverlayPosition, TextOverlayPositionSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema, type VideoGenerationPayload, VideoGenerationSchema, type VideoOverlayStyle, VideoOverlayStyleSchema, type VideoTextOverlay, VideoTextOverlaySchema, type VideoWatermark, VideoWatermarkSchema, type WatermarkPosition, WatermarkPositionSchema };
|
|
2239
|
+
export { type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type ComponentPropDefinition, ComponentPropDefinitionSchema, type ComponentSynthesisPayload, ComponentSynthesisSchema, type DropShadow, DropShadowSchema, type Fidelity, FidelitySchema, type ImageCompositingPayload, ImageCompositingSchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTextOverlay, ImageTextOverlaySchema, type ImageTransformationPayload, ImageTransformationSchema, type ImageWatermark, ImageWatermarkSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type ServiceClient, ServiceClientSchema, type SocialVideoGenerationPayload, SocialVideoGenerationSchema, type TextAlignment, TextAlignmentSchema, type TextOverlayPosition, TextOverlayPositionSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema, type VideoFrameImage, VideoFrameImageSchema, type VideoGenerationPayload, VideoGenerationSchema, type VideoOverlayStyle, VideoOverlayStyleSchema, type VideoResolution, VideoResolutionSchema, type VideoTextOverlay, VideoTextOverlaySchema, type VideoUpscalePayload, VideoUpscaleSchema, type VideoWatermark, VideoWatermarkSchema, type WatermarkPosition, WatermarkPositionSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,29 +6,120 @@ declare const AspectRatioSchema: z.ZodEnum<["1:1", "2:3", "3:2", "3:4", "4:3", "
|
|
|
6
6
|
type AspectRatio = z.infer<typeof AspectRatioSchema>;
|
|
7
7
|
declare const VideoAspectRatioSchema: z.ZodEnum<["9:16", "16:9"]>;
|
|
8
8
|
type VideoAspectRatio = z.infer<typeof VideoAspectRatioSchema>;
|
|
9
|
+
declare const VideoResolutionSchema: z.ZodEnum<["720p", "1080p", "4k", "720P", "1080P", "4K"]>;
|
|
10
|
+
type VideoResolution = z.infer<typeof VideoResolutionSchema>;
|
|
11
|
+
declare const VideoFrameImageSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
12
|
+
bytesBase64Encoded: z.ZodOptional<z.ZodString>;
|
|
13
|
+
data: z.ZodOptional<z.ZodString>;
|
|
14
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
bytesBase64Encoded?: string | undefined;
|
|
17
|
+
data?: string | undefined;
|
|
18
|
+
mimeType?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
bytesBase64Encoded?: string | undefined;
|
|
21
|
+
data?: string | undefined;
|
|
22
|
+
mimeType?: string | undefined;
|
|
23
|
+
}>]>;
|
|
24
|
+
type VideoFrameImage = z.infer<typeof VideoFrameImageSchema>;
|
|
9
25
|
declare const VideoGenerationSchema: z.ZodObject<{
|
|
10
26
|
prompt: z.ZodString;
|
|
11
27
|
aspectRatio: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
|
|
12
28
|
durationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
13
29
|
generateAudio: z.ZodOptional<z.ZodBoolean>;
|
|
14
30
|
modelName: z.ZodOptional<z.ZodString>;
|
|
15
|
-
resolution: z.ZodOptional<z.
|
|
31
|
+
resolution: z.ZodOptional<z.ZodEnum<["720p", "1080p", "4k", "720P", "1080P", "4K"]>>;
|
|
32
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
isMultimedia: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
multimedia: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
firstFrame: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
36
|
+
bytesBase64Encoded: z.ZodOptional<z.ZodString>;
|
|
37
|
+
data: z.ZodOptional<z.ZodString>;
|
|
38
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
bytesBase64Encoded?: string | undefined;
|
|
41
|
+
data?: string | undefined;
|
|
42
|
+
mimeType?: string | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
bytesBase64Encoded?: string | undefined;
|
|
45
|
+
data?: string | undefined;
|
|
46
|
+
mimeType?: string | undefined;
|
|
47
|
+
}>]>>;
|
|
48
|
+
lastFrame: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
49
|
+
bytesBase64Encoded: z.ZodOptional<z.ZodString>;
|
|
50
|
+
data: z.ZodOptional<z.ZodString>;
|
|
51
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
bytesBase64Encoded?: string | undefined;
|
|
54
|
+
data?: string | undefined;
|
|
55
|
+
mimeType?: string | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
bytesBase64Encoded?: string | undefined;
|
|
58
|
+
data?: string | undefined;
|
|
59
|
+
mimeType?: string | undefined;
|
|
60
|
+
}>]>>;
|
|
16
61
|
}, "strip", z.ZodTypeAny, {
|
|
17
62
|
prompt: string;
|
|
18
63
|
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
19
64
|
durationSeconds?: number | undefined;
|
|
20
65
|
generateAudio?: boolean | undefined;
|
|
21
66
|
modelName?: string | undefined;
|
|
22
|
-
resolution?:
|
|
67
|
+
resolution?: "720p" | "1080p" | "4k" | "720P" | "1080P" | "4K" | undefined;
|
|
68
|
+
fps?: number | undefined;
|
|
69
|
+
isMultimedia?: boolean | undefined;
|
|
70
|
+
multimedia?: boolean | undefined;
|
|
71
|
+
firstFrame?: string | {
|
|
72
|
+
bytesBase64Encoded?: string | undefined;
|
|
73
|
+
data?: string | undefined;
|
|
74
|
+
mimeType?: string | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
lastFrame?: string | {
|
|
77
|
+
bytesBase64Encoded?: string | undefined;
|
|
78
|
+
data?: string | undefined;
|
|
79
|
+
mimeType?: string | undefined;
|
|
80
|
+
} | undefined;
|
|
23
81
|
}, {
|
|
24
82
|
prompt: string;
|
|
25
83
|
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
26
84
|
durationSeconds?: number | undefined;
|
|
27
85
|
generateAudio?: boolean | undefined;
|
|
28
86
|
modelName?: string | undefined;
|
|
29
|
-
resolution?:
|
|
87
|
+
resolution?: "720p" | "1080p" | "4k" | "720P" | "1080P" | "4K" | undefined;
|
|
88
|
+
fps?: number | undefined;
|
|
89
|
+
isMultimedia?: boolean | undefined;
|
|
90
|
+
multimedia?: boolean | undefined;
|
|
91
|
+
firstFrame?: string | {
|
|
92
|
+
bytesBase64Encoded?: string | undefined;
|
|
93
|
+
data?: string | undefined;
|
|
94
|
+
mimeType?: string | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
lastFrame?: string | {
|
|
97
|
+
bytesBase64Encoded?: string | undefined;
|
|
98
|
+
data?: string | undefined;
|
|
99
|
+
mimeType?: string | undefined;
|
|
100
|
+
} | undefined;
|
|
30
101
|
}>;
|
|
31
102
|
type VideoGenerationPayload = z.infer<typeof VideoGenerationSchema>;
|
|
103
|
+
declare const VideoUpscaleSchema: z.ZodObject<{
|
|
104
|
+
video: z.ZodOptional<z.ZodString>;
|
|
105
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
106
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
107
|
+
targetResolution: z.ZodDefault<z.ZodEnum<["1080p", "4k", "1080P", "4K"]>>;
|
|
108
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
targetResolution: "1080p" | "4k" | "1080P" | "4K";
|
|
111
|
+
mimeType?: string | undefined;
|
|
112
|
+
prompt?: string | undefined;
|
|
113
|
+
modelName?: string | undefined;
|
|
114
|
+
video?: string | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
mimeType?: string | undefined;
|
|
117
|
+
prompt?: string | undefined;
|
|
118
|
+
modelName?: string | undefined;
|
|
119
|
+
video?: string | undefined;
|
|
120
|
+
targetResolution?: "1080p" | "4k" | "1080P" | "4K" | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
type VideoUpscalePayload = z.infer<typeof VideoUpscaleSchema>;
|
|
32
123
|
declare const VideoOverlayStyleSchema: z.ZodEnum<["neubrutalist", "neubrutalist-dark", "badge", "meme", "custom", "none"]>;
|
|
33
124
|
type VideoOverlayStyle = z.infer<typeof VideoOverlayStyleSchema>;
|
|
34
125
|
declare const WatermarkPositionSchema: z.ZodUnion<[z.ZodEnum<["bottom-right", "bottom-left", "top-right", "top-left", "center"]>, z.ZodObject<{
|
|
@@ -269,7 +360,7 @@ declare const VideoTextOverlaySchema: z.ZodObject<{
|
|
|
269
360
|
strokeColor?: string | undefined;
|
|
270
361
|
strokeWidth?: number | undefined;
|
|
271
362
|
fontSize?: number | undefined;
|
|
272
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
363
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
273
364
|
alignment?: "center" | "left" | "right" | undefined;
|
|
274
365
|
lineHeight?: number | undefined;
|
|
275
366
|
letterSpacing?: number | undefined;
|
|
@@ -325,7 +416,7 @@ declare const VideoTextOverlaySchema: z.ZodObject<{
|
|
|
325
416
|
strokeColor?: string | undefined;
|
|
326
417
|
strokeWidth?: number | undefined;
|
|
327
418
|
fontSize?: number | undefined;
|
|
328
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
419
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
329
420
|
alignment?: "center" | "left" | "right" | undefined;
|
|
330
421
|
lineHeight?: number | undefined;
|
|
331
422
|
letterSpacing?: number | undefined;
|
|
@@ -506,7 +597,7 @@ declare const SocialVideoGenerationSchema: z.ZodObject<{
|
|
|
506
597
|
strokeColor?: string | undefined;
|
|
507
598
|
strokeWidth?: number | undefined;
|
|
508
599
|
fontSize?: number | undefined;
|
|
509
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
600
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
510
601
|
alignment?: "center" | "left" | "right" | undefined;
|
|
511
602
|
lineHeight?: number | undefined;
|
|
512
603
|
letterSpacing?: number | undefined;
|
|
@@ -562,7 +653,7 @@ declare const SocialVideoGenerationSchema: z.ZodObject<{
|
|
|
562
653
|
strokeColor?: string | undefined;
|
|
563
654
|
strokeWidth?: number | undefined;
|
|
564
655
|
fontSize?: number | undefined;
|
|
565
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
656
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
566
657
|
alignment?: "center" | "left" | "right" | undefined;
|
|
567
658
|
lineHeight?: number | undefined;
|
|
568
659
|
letterSpacing?: number | undefined;
|
|
@@ -708,7 +799,7 @@ declare const SocialVideoGenerationSchema: z.ZodObject<{
|
|
|
708
799
|
strokeColor?: string | undefined;
|
|
709
800
|
strokeWidth?: number | undefined;
|
|
710
801
|
fontSize?: number | undefined;
|
|
711
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
802
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
712
803
|
alignment?: "center" | "left" | "right" | undefined;
|
|
713
804
|
lineHeight?: number | undefined;
|
|
714
805
|
letterSpacing?: number | undefined;
|
|
@@ -790,7 +881,7 @@ declare const SocialVideoGenerationSchema: z.ZodObject<{
|
|
|
790
881
|
strokeColor?: string | undefined;
|
|
791
882
|
strokeWidth?: number | undefined;
|
|
792
883
|
fontSize?: number | undefined;
|
|
793
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
884
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
794
885
|
alignment?: "center" | "left" | "right" | undefined;
|
|
795
886
|
lineHeight?: number | undefined;
|
|
796
887
|
letterSpacing?: number | undefined;
|
|
@@ -1001,7 +1092,7 @@ declare const ImageTextOverlaySchema: z.ZodObject<{
|
|
|
1001
1092
|
strokeColor?: string | undefined;
|
|
1002
1093
|
strokeWidth?: number | undefined;
|
|
1003
1094
|
fontSize?: number | undefined;
|
|
1004
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1095
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1005
1096
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1006
1097
|
lineHeight?: number | undefined;
|
|
1007
1098
|
letterSpacing?: number | undefined;
|
|
@@ -1057,7 +1148,7 @@ declare const ImageTextOverlaySchema: z.ZodObject<{
|
|
|
1057
1148
|
strokeColor?: string | undefined;
|
|
1058
1149
|
strokeWidth?: number | undefined;
|
|
1059
1150
|
fontSize?: number | undefined;
|
|
1060
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1151
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1061
1152
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1062
1153
|
lineHeight?: number | undefined;
|
|
1063
1154
|
letterSpacing?: number | undefined;
|
|
@@ -1299,7 +1390,7 @@ declare const ImageCompositingSchema: z.ZodObject<{
|
|
|
1299
1390
|
strokeColor?: string | undefined;
|
|
1300
1391
|
strokeWidth?: number | undefined;
|
|
1301
1392
|
fontSize?: number | undefined;
|
|
1302
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1393
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1303
1394
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1304
1395
|
lineHeight?: number | undefined;
|
|
1305
1396
|
letterSpacing?: number | undefined;
|
|
@@ -1355,7 +1446,7 @@ declare const ImageCompositingSchema: z.ZodObject<{
|
|
|
1355
1446
|
strokeColor?: string | undefined;
|
|
1356
1447
|
strokeWidth?: number | undefined;
|
|
1357
1448
|
fontSize?: number | undefined;
|
|
1358
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1449
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1359
1450
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1360
1451
|
lineHeight?: number | undefined;
|
|
1361
1452
|
letterSpacing?: number | undefined;
|
|
@@ -1502,7 +1593,7 @@ declare const ImageCompositingSchema: z.ZodObject<{
|
|
|
1502
1593
|
strokeColor?: string | undefined;
|
|
1503
1594
|
strokeWidth?: number | undefined;
|
|
1504
1595
|
fontSize?: number | undefined;
|
|
1505
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1596
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1506
1597
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1507
1598
|
lineHeight?: number | undefined;
|
|
1508
1599
|
letterSpacing?: number | undefined;
|
|
@@ -1585,7 +1676,7 @@ declare const ImageCompositingSchema: z.ZodObject<{
|
|
|
1585
1676
|
strokeColor?: string | undefined;
|
|
1586
1677
|
strokeWidth?: number | undefined;
|
|
1587
1678
|
fontSize?: number | undefined;
|
|
1588
|
-
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "
|
|
1679
|
+
style?: "custom" | "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
1589
1680
|
alignment?: "center" | "left" | "right" | undefined;
|
|
1590
1681
|
lineHeight?: number | undefined;
|
|
1591
1682
|
letterSpacing?: number | undefined;
|
|
@@ -2114,20 +2205,20 @@ declare const AgentInteractionResultSchema: z.ZodObject<{
|
|
|
2114
2205
|
updatedAt?: string | undefined;
|
|
2115
2206
|
}>;
|
|
2116
2207
|
type AgentInteractionResult = z.infer<typeof AgentInteractionResultSchema>;
|
|
2117
|
-
declare const QueueJobTypeSchema: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
|
|
2208
|
+
declare const QueueJobTypeSchema: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component", "upscale"]>;
|
|
2118
2209
|
type QueueJobType = z.infer<typeof QueueJobTypeSchema>;
|
|
2119
2210
|
declare const QueueJobStatusSchema: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
2120
2211
|
type QueueJobStatus = z.infer<typeof QueueJobStatusSchema>;
|
|
2121
2212
|
declare const QueueJobSchema: z.ZodObject<{
|
|
2122
2213
|
id: z.ZodString;
|
|
2123
|
-
type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
|
|
2214
|
+
type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component", "upscale"]>;
|
|
2124
2215
|
status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
2125
2216
|
client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "flair", "operative", "unknown"]>>;
|
|
2126
2217
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2127
2218
|
createdAt: z.ZodOptional<z.ZodAny>;
|
|
2128
2219
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
2129
2220
|
}, "strip", z.ZodTypeAny, {
|
|
2130
|
-
type: "code" | "
|
|
2221
|
+
type: "code" | "video" | "text" | "agent" | "image" | "analysis" | "audio" | "component" | "upscale";
|
|
2131
2222
|
status: "queued" | "completed" | "failed" | "processing";
|
|
2132
2223
|
id: string;
|
|
2133
2224
|
createdAt?: any;
|
|
@@ -2135,7 +2226,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
2135
2226
|
client?: "unknown" | "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | undefined;
|
|
2136
2227
|
payload?: Record<string, any> | undefined;
|
|
2137
2228
|
}, {
|
|
2138
|
-
type: "code" | "
|
|
2229
|
+
type: "code" | "video" | "text" | "agent" | "image" | "analysis" | "audio" | "component" | "upscale";
|
|
2139
2230
|
status: "queued" | "completed" | "failed" | "processing";
|
|
2140
2231
|
id: string;
|
|
2141
2232
|
createdAt?: any;
|
|
@@ -2145,4 +2236,4 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
2145
2236
|
}>;
|
|
2146
2237
|
type QueueJob = z.infer<typeof QueueJobSchema>;
|
|
2147
2238
|
|
|
2148
|
-
export { type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type ComponentPropDefinition, ComponentPropDefinitionSchema, type ComponentSynthesisPayload, ComponentSynthesisSchema, type DropShadow, DropShadowSchema, type Fidelity, FidelitySchema, type ImageCompositingPayload, ImageCompositingSchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTextOverlay, ImageTextOverlaySchema, type ImageTransformationPayload, ImageTransformationSchema, type ImageWatermark, ImageWatermarkSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type ServiceClient, ServiceClientSchema, type SocialVideoGenerationPayload, SocialVideoGenerationSchema, type TextAlignment, TextAlignmentSchema, type TextOverlayPosition, TextOverlayPositionSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema, type VideoGenerationPayload, VideoGenerationSchema, type VideoOverlayStyle, VideoOverlayStyleSchema, type VideoTextOverlay, VideoTextOverlaySchema, type VideoWatermark, VideoWatermarkSchema, type WatermarkPosition, WatermarkPositionSchema };
|
|
2239
|
+
export { type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type ComponentPropDefinition, ComponentPropDefinitionSchema, type ComponentSynthesisPayload, ComponentSynthesisSchema, type DropShadow, DropShadowSchema, type Fidelity, FidelitySchema, type ImageCompositingPayload, ImageCompositingSchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTextOverlay, ImageTextOverlaySchema, type ImageTransformationPayload, ImageTransformationSchema, type ImageWatermark, ImageWatermarkSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type ServiceClient, ServiceClientSchema, type SocialVideoGenerationPayload, SocialVideoGenerationSchema, type TextAlignment, TextAlignmentSchema, type TextOverlayPosition, TextOverlayPositionSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema, type VideoFrameImage, VideoFrameImageSchema, type VideoGenerationPayload, VideoGenerationSchema, type VideoOverlayStyle, VideoOverlayStyleSchema, type VideoResolution, VideoResolutionSchema, type VideoTextOverlay, VideoTextOverlaySchema, type VideoUpscalePayload, VideoUpscaleSchema, type VideoWatermark, VideoWatermarkSchema, type WatermarkPosition, WatermarkPositionSchema };
|
package/dist/index.js
CHANGED
|
@@ -14,13 +14,34 @@ var AspectRatioSchema = z.enum([
|
|
|
14
14
|
"21:9"
|
|
15
15
|
]);
|
|
16
16
|
var VideoAspectRatioSchema = z.enum(["9:16", "16:9"]);
|
|
17
|
+
var VideoResolutionSchema = z.enum(["720p", "1080p", "4k", "720P", "1080P", "4K"]);
|
|
18
|
+
var VideoFrameImageSchema = z.union([
|
|
19
|
+
z.string(),
|
|
20
|
+
z.object({
|
|
21
|
+
bytesBase64Encoded: z.string().optional(),
|
|
22
|
+
data: z.string().optional(),
|
|
23
|
+
mimeType: z.string().optional()
|
|
24
|
+
})
|
|
25
|
+
]);
|
|
17
26
|
var VideoGenerationSchema = z.object({
|
|
18
27
|
prompt: z.string(),
|
|
19
28
|
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
20
29
|
durationSeconds: z.number().int().optional(),
|
|
21
30
|
generateAudio: z.boolean().optional(),
|
|
22
31
|
modelName: z.string().optional(),
|
|
23
|
-
resolution:
|
|
32
|
+
resolution: VideoResolutionSchema.optional(),
|
|
33
|
+
fps: z.number().optional(),
|
|
34
|
+
isMultimedia: z.boolean().optional(),
|
|
35
|
+
multimedia: z.boolean().optional(),
|
|
36
|
+
firstFrame: VideoFrameImageSchema.optional(),
|
|
37
|
+
lastFrame: VideoFrameImageSchema.optional()
|
|
38
|
+
});
|
|
39
|
+
var VideoUpscaleSchema = z.object({
|
|
40
|
+
video: z.string().optional(),
|
|
41
|
+
mimeType: z.string().optional(),
|
|
42
|
+
prompt: z.string().optional(),
|
|
43
|
+
targetResolution: z.enum(["1080p", "4k", "1080P", "4K"]).default("1080p"),
|
|
44
|
+
modelName: z.string().optional()
|
|
24
45
|
});
|
|
25
46
|
var VideoOverlayStyleSchema = z.enum([
|
|
26
47
|
"neubrutalist",
|
|
@@ -235,7 +256,7 @@ var AgentInteractionResultSchema = z.object({
|
|
|
235
256
|
createdAt: z.string().optional(),
|
|
236
257
|
updatedAt: z.string().optional()
|
|
237
258
|
});
|
|
238
|
-
var QueueJobTypeSchema = z.enum(["text", "image", "video", "analysis", "audio", "agent", "code", "component"]);
|
|
259
|
+
var QueueJobTypeSchema = z.enum(["text", "image", "video", "analysis", "audio", "agent", "code", "component", "upscale"]);
|
|
239
260
|
var QueueJobStatusSchema = z.enum(["queued", "processing", "completed", "failed"]);
|
|
240
261
|
var QueueJobSchema = z.object({
|
|
241
262
|
id: z.string(),
|
|
@@ -279,9 +300,12 @@ export {
|
|
|
279
300
|
VideoAnalysisCategorySchema,
|
|
280
301
|
VideoAnalysisSchema,
|
|
281
302
|
VideoAspectRatioSchema,
|
|
303
|
+
VideoFrameImageSchema,
|
|
282
304
|
VideoGenerationSchema,
|
|
283
305
|
VideoOverlayStyleSchema,
|
|
306
|
+
VideoResolutionSchema,
|
|
284
307
|
VideoTextOverlaySchema,
|
|
308
|
+
VideoUpscaleSchema,
|
|
285
309
|
VideoWatermarkSchema,
|
|
286
310
|
WatermarkPositionSchema
|
|
287
311
|
};
|