@pixerate/schemas 1.1.11 → 1.1.12
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 +64 -2
- package/dist/index.d.cts +201 -3
- package/dist/index.d.ts +201 -3
- package/dist/index.js +57 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -42,9 +42,15 @@ __export(index_exports, {
|
|
|
42
42
|
QueueJobStatusSchema: () => QueueJobStatusSchema,
|
|
43
43
|
QueueJobTypeSchema: () => QueueJobTypeSchema,
|
|
44
44
|
ServiceClientSchema: () => ServiceClientSchema,
|
|
45
|
+
SocialVideoGenerationSchema: () => SocialVideoGenerationSchema,
|
|
45
46
|
VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
|
|
46
47
|
VideoAnalysisSchema: () => VideoAnalysisSchema,
|
|
47
|
-
VideoAspectRatioSchema: () => VideoAspectRatioSchema
|
|
48
|
+
VideoAspectRatioSchema: () => VideoAspectRatioSchema,
|
|
49
|
+
VideoGenerationSchema: () => VideoGenerationSchema,
|
|
50
|
+
VideoOverlayStyleSchema: () => VideoOverlayStyleSchema,
|
|
51
|
+
VideoTextOverlaySchema: () => VideoTextOverlaySchema,
|
|
52
|
+
VideoWatermarkSchema: () => VideoWatermarkSchema,
|
|
53
|
+
WatermarkPositionSchema: () => WatermarkPositionSchema
|
|
48
54
|
});
|
|
49
55
|
module.exports = __toCommonJS(index_exports);
|
|
50
56
|
var import_zod = require("zod");
|
|
@@ -62,6 +68,56 @@ var AspectRatioSchema = import_zod.z.enum([
|
|
|
62
68
|
"21:9"
|
|
63
69
|
]);
|
|
64
70
|
var VideoAspectRatioSchema = import_zod.z.enum(["9:16", "16:9"]);
|
|
71
|
+
var VideoGenerationSchema = import_zod.z.object({
|
|
72
|
+
prompt: import_zod.z.string(),
|
|
73
|
+
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
74
|
+
durationSeconds: import_zod.z.number().int().optional(),
|
|
75
|
+
generateAudio: import_zod.z.boolean().optional(),
|
|
76
|
+
modelName: import_zod.z.string().optional(),
|
|
77
|
+
resolution: import_zod.z.string().optional()
|
|
78
|
+
});
|
|
79
|
+
var VideoOverlayStyleSchema = import_zod.z.enum([
|
|
80
|
+
"neubrutalist",
|
|
81
|
+
"neubrutalist-dark",
|
|
82
|
+
"badge",
|
|
83
|
+
"meme",
|
|
84
|
+
"none"
|
|
85
|
+
]);
|
|
86
|
+
var WatermarkPositionSchema = import_zod.z.enum([
|
|
87
|
+
"bottom-right",
|
|
88
|
+
"bottom-left",
|
|
89
|
+
"top-right",
|
|
90
|
+
"top-left",
|
|
91
|
+
"center"
|
|
92
|
+
]);
|
|
93
|
+
var VideoWatermarkSchema = import_zod.z.object({
|
|
94
|
+
text: import_zod.z.string().optional(),
|
|
95
|
+
imagePath: import_zod.z.string().optional(),
|
|
96
|
+
font: import_zod.z.string().optional(),
|
|
97
|
+
position: WatermarkPositionSchema.optional(),
|
|
98
|
+
color: import_zod.z.string().optional(),
|
|
99
|
+
strokeWidth: import_zod.z.number().optional(),
|
|
100
|
+
fontSize: import_zod.z.number().optional(),
|
|
101
|
+
transparentBg: import_zod.z.boolean().optional(),
|
|
102
|
+
opacity: import_zod.z.number().optional()
|
|
103
|
+
});
|
|
104
|
+
var VideoTextOverlaySchema = import_zod.z.object({
|
|
105
|
+
text: import_zod.z.string(),
|
|
106
|
+
style: VideoOverlayStyleSchema.optional(),
|
|
107
|
+
containerBgColor: import_zod.z.string().optional(),
|
|
108
|
+
textColor: import_zod.z.string().optional(),
|
|
109
|
+
fontSize: import_zod.z.number().optional(),
|
|
110
|
+
topY: import_zod.z.number().optional(),
|
|
111
|
+
badgeTag: import_zod.z.string().optional()
|
|
112
|
+
});
|
|
113
|
+
var SocialVideoGenerationSchema = import_zod.z.object({
|
|
114
|
+
prompt: import_zod.z.string(),
|
|
115
|
+
audioPrompt: import_zod.z.string().optional(),
|
|
116
|
+
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
117
|
+
durationSeconds: import_zod.z.number().int().optional(),
|
|
118
|
+
hook: import_zod.z.union([import_zod.z.string(), VideoTextOverlaySchema]).optional(),
|
|
119
|
+
watermark: import_zod.z.union([import_zod.z.string(), VideoWatermarkSchema]).optional()
|
|
120
|
+
});
|
|
65
121
|
var ImageGenerationSchema = import_zod.z.object({
|
|
66
122
|
prompt: import_zod.z.string(),
|
|
67
123
|
aspectRatio: AspectRatioSchema.optional(),
|
|
@@ -209,7 +265,13 @@ var QueueJobSchema = import_zod.z.object({
|
|
|
209
265
|
QueueJobStatusSchema,
|
|
210
266
|
QueueJobTypeSchema,
|
|
211
267
|
ServiceClientSchema,
|
|
268
|
+
SocialVideoGenerationSchema,
|
|
212
269
|
VideoAnalysisCategorySchema,
|
|
213
270
|
VideoAnalysisSchema,
|
|
214
|
-
VideoAspectRatioSchema
|
|
271
|
+
VideoAspectRatioSchema,
|
|
272
|
+
VideoGenerationSchema,
|
|
273
|
+
VideoOverlayStyleSchema,
|
|
274
|
+
VideoTextOverlaySchema,
|
|
275
|
+
VideoWatermarkSchema,
|
|
276
|
+
WatermarkPositionSchema
|
|
215
277
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -6,6 +6,204 @@ 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 VideoGenerationSchema: z.ZodObject<{
|
|
10
|
+
prompt: z.ZodString;
|
|
11
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
|
|
12
|
+
durationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
generateAudio: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
prompt: string;
|
|
18
|
+
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
19
|
+
durationSeconds?: number | undefined;
|
|
20
|
+
generateAudio?: boolean | undefined;
|
|
21
|
+
modelName?: string | undefined;
|
|
22
|
+
resolution?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
prompt: string;
|
|
25
|
+
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
26
|
+
durationSeconds?: number | undefined;
|
|
27
|
+
generateAudio?: boolean | undefined;
|
|
28
|
+
modelName?: string | undefined;
|
|
29
|
+
resolution?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
type VideoGenerationPayload = z.infer<typeof VideoGenerationSchema>;
|
|
32
|
+
declare const VideoOverlayStyleSchema: z.ZodEnum<["neubrutalist", "neubrutalist-dark", "badge", "meme", "none"]>;
|
|
33
|
+
type VideoOverlayStyle = z.infer<typeof VideoOverlayStyleSchema>;
|
|
34
|
+
declare const WatermarkPositionSchema: z.ZodEnum<["bottom-right", "bottom-left", "top-right", "top-left", "center"]>;
|
|
35
|
+
type WatermarkPosition = z.infer<typeof WatermarkPositionSchema>;
|
|
36
|
+
declare const VideoWatermarkSchema: z.ZodObject<{
|
|
37
|
+
text: z.ZodOptional<z.ZodString>;
|
|
38
|
+
imagePath: z.ZodOptional<z.ZodString>;
|
|
39
|
+
font: z.ZodOptional<z.ZodString>;
|
|
40
|
+
position: z.ZodOptional<z.ZodEnum<["bottom-right", "bottom-left", "top-right", "top-left", "center"]>>;
|
|
41
|
+
color: z.ZodOptional<z.ZodString>;
|
|
42
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
transparentBg: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
text?: string | undefined;
|
|
48
|
+
imagePath?: string | undefined;
|
|
49
|
+
font?: string | undefined;
|
|
50
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
51
|
+
color?: string | undefined;
|
|
52
|
+
strokeWidth?: number | undefined;
|
|
53
|
+
fontSize?: number | undefined;
|
|
54
|
+
transparentBg?: boolean | undefined;
|
|
55
|
+
opacity?: number | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
text?: string | undefined;
|
|
58
|
+
imagePath?: string | undefined;
|
|
59
|
+
font?: string | undefined;
|
|
60
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
61
|
+
color?: string | undefined;
|
|
62
|
+
strokeWidth?: number | undefined;
|
|
63
|
+
fontSize?: number | undefined;
|
|
64
|
+
transparentBg?: boolean | undefined;
|
|
65
|
+
opacity?: number | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
type VideoWatermark = z.infer<typeof VideoWatermarkSchema>;
|
|
68
|
+
declare const VideoTextOverlaySchema: z.ZodObject<{
|
|
69
|
+
text: z.ZodString;
|
|
70
|
+
style: z.ZodOptional<z.ZodEnum<["neubrutalist", "neubrutalist-dark", "badge", "meme", "none"]>>;
|
|
71
|
+
containerBgColor: z.ZodOptional<z.ZodString>;
|
|
72
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
73
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
topY: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
badgeTag: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
text: string;
|
|
78
|
+
fontSize?: number | undefined;
|
|
79
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
80
|
+
containerBgColor?: string | undefined;
|
|
81
|
+
textColor?: string | undefined;
|
|
82
|
+
topY?: number | undefined;
|
|
83
|
+
badgeTag?: string | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
text: string;
|
|
86
|
+
fontSize?: number | undefined;
|
|
87
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
88
|
+
containerBgColor?: string | undefined;
|
|
89
|
+
textColor?: string | undefined;
|
|
90
|
+
topY?: number | undefined;
|
|
91
|
+
badgeTag?: string | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
type VideoTextOverlay = z.infer<typeof VideoTextOverlaySchema>;
|
|
94
|
+
declare const SocialVideoGenerationSchema: z.ZodObject<{
|
|
95
|
+
prompt: z.ZodString;
|
|
96
|
+
audioPrompt: z.ZodOptional<z.ZodString>;
|
|
97
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
|
|
98
|
+
durationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
hook: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
100
|
+
text: z.ZodString;
|
|
101
|
+
style: z.ZodOptional<z.ZodEnum<["neubrutalist", "neubrutalist-dark", "badge", "meme", "none"]>>;
|
|
102
|
+
containerBgColor: z.ZodOptional<z.ZodString>;
|
|
103
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
104
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
topY: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
badgeTag: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
text: string;
|
|
109
|
+
fontSize?: number | undefined;
|
|
110
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
111
|
+
containerBgColor?: string | undefined;
|
|
112
|
+
textColor?: string | undefined;
|
|
113
|
+
topY?: number | undefined;
|
|
114
|
+
badgeTag?: string | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
text: string;
|
|
117
|
+
fontSize?: number | undefined;
|
|
118
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
119
|
+
containerBgColor?: string | undefined;
|
|
120
|
+
textColor?: string | undefined;
|
|
121
|
+
topY?: number | undefined;
|
|
122
|
+
badgeTag?: string | undefined;
|
|
123
|
+
}>]>>;
|
|
124
|
+
watermark: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
125
|
+
text: z.ZodOptional<z.ZodString>;
|
|
126
|
+
imagePath: z.ZodOptional<z.ZodString>;
|
|
127
|
+
font: z.ZodOptional<z.ZodString>;
|
|
128
|
+
position: z.ZodOptional<z.ZodEnum<["bottom-right", "bottom-left", "top-right", "top-left", "center"]>>;
|
|
129
|
+
color: z.ZodOptional<z.ZodString>;
|
|
130
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
transparentBg: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
text?: string | undefined;
|
|
136
|
+
imagePath?: string | undefined;
|
|
137
|
+
font?: string | undefined;
|
|
138
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
139
|
+
color?: string | undefined;
|
|
140
|
+
strokeWidth?: number | undefined;
|
|
141
|
+
fontSize?: number | undefined;
|
|
142
|
+
transparentBg?: boolean | undefined;
|
|
143
|
+
opacity?: number | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
text?: string | undefined;
|
|
146
|
+
imagePath?: string | undefined;
|
|
147
|
+
font?: string | undefined;
|
|
148
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
149
|
+
color?: string | undefined;
|
|
150
|
+
strokeWidth?: number | undefined;
|
|
151
|
+
fontSize?: number | undefined;
|
|
152
|
+
transparentBg?: boolean | undefined;
|
|
153
|
+
opacity?: number | undefined;
|
|
154
|
+
}>]>>;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
prompt: string;
|
|
157
|
+
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
158
|
+
durationSeconds?: number | undefined;
|
|
159
|
+
audioPrompt?: string | undefined;
|
|
160
|
+
hook?: string | {
|
|
161
|
+
text: string;
|
|
162
|
+
fontSize?: number | undefined;
|
|
163
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
164
|
+
containerBgColor?: string | undefined;
|
|
165
|
+
textColor?: string | undefined;
|
|
166
|
+
topY?: number | undefined;
|
|
167
|
+
badgeTag?: string | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
watermark?: string | {
|
|
170
|
+
text?: string | undefined;
|
|
171
|
+
imagePath?: string | undefined;
|
|
172
|
+
font?: string | undefined;
|
|
173
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
174
|
+
color?: string | undefined;
|
|
175
|
+
strokeWidth?: number | undefined;
|
|
176
|
+
fontSize?: number | undefined;
|
|
177
|
+
transparentBg?: boolean | undefined;
|
|
178
|
+
opacity?: number | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
prompt: string;
|
|
182
|
+
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
183
|
+
durationSeconds?: number | undefined;
|
|
184
|
+
audioPrompt?: string | undefined;
|
|
185
|
+
hook?: string | {
|
|
186
|
+
text: string;
|
|
187
|
+
fontSize?: number | undefined;
|
|
188
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
189
|
+
containerBgColor?: string | undefined;
|
|
190
|
+
textColor?: string | undefined;
|
|
191
|
+
topY?: number | undefined;
|
|
192
|
+
badgeTag?: string | undefined;
|
|
193
|
+
} | undefined;
|
|
194
|
+
watermark?: string | {
|
|
195
|
+
text?: string | undefined;
|
|
196
|
+
imagePath?: string | undefined;
|
|
197
|
+
font?: string | undefined;
|
|
198
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
199
|
+
color?: string | undefined;
|
|
200
|
+
strokeWidth?: number | undefined;
|
|
201
|
+
fontSize?: number | undefined;
|
|
202
|
+
transparentBg?: boolean | undefined;
|
|
203
|
+
opacity?: number | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
}>;
|
|
206
|
+
type SocialVideoGenerationPayload = z.infer<typeof SocialVideoGenerationSchema>;
|
|
9
207
|
declare const ImageGenerationSchema: z.ZodObject<{
|
|
10
208
|
prompt: z.ZodString;
|
|
11
209
|
aspectRatio: z.ZodOptional<z.ZodEnum<["1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9"]>>;
|
|
@@ -529,7 +727,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
529
727
|
createdAt: z.ZodOptional<z.ZodAny>;
|
|
530
728
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
531
729
|
}, "strip", z.ZodTypeAny, {
|
|
532
|
-
type: "code" | "
|
|
730
|
+
type: "code" | "text" | "agent" | "image" | "video" | "analysis" | "audio" | "component";
|
|
533
731
|
status: "queued" | "completed" | "failed" | "processing";
|
|
534
732
|
id: string;
|
|
535
733
|
createdAt?: any;
|
|
@@ -537,7 +735,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
537
735
|
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
|
|
538
736
|
payload?: Record<string, any> | undefined;
|
|
539
737
|
}, {
|
|
540
|
-
type: "code" | "
|
|
738
|
+
type: "code" | "text" | "agent" | "image" | "video" | "analysis" | "audio" | "component";
|
|
541
739
|
status: "queued" | "completed" | "failed" | "processing";
|
|
542
740
|
id: string;
|
|
543
741
|
createdAt?: any;
|
|
@@ -547,4 +745,4 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
547
745
|
}>;
|
|
548
746
|
type QueueJob = z.infer<typeof QueueJobSchema>;
|
|
549
747
|
|
|
550
|
-
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 Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
|
|
748
|
+
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 Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type ServiceClient, ServiceClientSchema, type SocialVideoGenerationPayload, SocialVideoGenerationSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema, type VideoGenerationPayload, VideoGenerationSchema, type VideoOverlayStyle, VideoOverlayStyleSchema, type VideoTextOverlay, VideoTextOverlaySchema, type VideoWatermark, VideoWatermarkSchema, type WatermarkPosition, WatermarkPositionSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,204 @@ 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 VideoGenerationSchema: z.ZodObject<{
|
|
10
|
+
prompt: z.ZodString;
|
|
11
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
|
|
12
|
+
durationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
generateAudio: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
prompt: string;
|
|
18
|
+
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
19
|
+
durationSeconds?: number | undefined;
|
|
20
|
+
generateAudio?: boolean | undefined;
|
|
21
|
+
modelName?: string | undefined;
|
|
22
|
+
resolution?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
prompt: string;
|
|
25
|
+
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
26
|
+
durationSeconds?: number | undefined;
|
|
27
|
+
generateAudio?: boolean | undefined;
|
|
28
|
+
modelName?: string | undefined;
|
|
29
|
+
resolution?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
type VideoGenerationPayload = z.infer<typeof VideoGenerationSchema>;
|
|
32
|
+
declare const VideoOverlayStyleSchema: z.ZodEnum<["neubrutalist", "neubrutalist-dark", "badge", "meme", "none"]>;
|
|
33
|
+
type VideoOverlayStyle = z.infer<typeof VideoOverlayStyleSchema>;
|
|
34
|
+
declare const WatermarkPositionSchema: z.ZodEnum<["bottom-right", "bottom-left", "top-right", "top-left", "center"]>;
|
|
35
|
+
type WatermarkPosition = z.infer<typeof WatermarkPositionSchema>;
|
|
36
|
+
declare const VideoWatermarkSchema: z.ZodObject<{
|
|
37
|
+
text: z.ZodOptional<z.ZodString>;
|
|
38
|
+
imagePath: z.ZodOptional<z.ZodString>;
|
|
39
|
+
font: z.ZodOptional<z.ZodString>;
|
|
40
|
+
position: z.ZodOptional<z.ZodEnum<["bottom-right", "bottom-left", "top-right", "top-left", "center"]>>;
|
|
41
|
+
color: z.ZodOptional<z.ZodString>;
|
|
42
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
transparentBg: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
text?: string | undefined;
|
|
48
|
+
imagePath?: string | undefined;
|
|
49
|
+
font?: string | undefined;
|
|
50
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
51
|
+
color?: string | undefined;
|
|
52
|
+
strokeWidth?: number | undefined;
|
|
53
|
+
fontSize?: number | undefined;
|
|
54
|
+
transparentBg?: boolean | undefined;
|
|
55
|
+
opacity?: number | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
text?: string | undefined;
|
|
58
|
+
imagePath?: string | undefined;
|
|
59
|
+
font?: string | undefined;
|
|
60
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
61
|
+
color?: string | undefined;
|
|
62
|
+
strokeWidth?: number | undefined;
|
|
63
|
+
fontSize?: number | undefined;
|
|
64
|
+
transparentBg?: boolean | undefined;
|
|
65
|
+
opacity?: number | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
type VideoWatermark = z.infer<typeof VideoWatermarkSchema>;
|
|
68
|
+
declare const VideoTextOverlaySchema: z.ZodObject<{
|
|
69
|
+
text: z.ZodString;
|
|
70
|
+
style: z.ZodOptional<z.ZodEnum<["neubrutalist", "neubrutalist-dark", "badge", "meme", "none"]>>;
|
|
71
|
+
containerBgColor: z.ZodOptional<z.ZodString>;
|
|
72
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
73
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
topY: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
badgeTag: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
text: string;
|
|
78
|
+
fontSize?: number | undefined;
|
|
79
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
80
|
+
containerBgColor?: string | undefined;
|
|
81
|
+
textColor?: string | undefined;
|
|
82
|
+
topY?: number | undefined;
|
|
83
|
+
badgeTag?: string | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
text: string;
|
|
86
|
+
fontSize?: number | undefined;
|
|
87
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
88
|
+
containerBgColor?: string | undefined;
|
|
89
|
+
textColor?: string | undefined;
|
|
90
|
+
topY?: number | undefined;
|
|
91
|
+
badgeTag?: string | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
type VideoTextOverlay = z.infer<typeof VideoTextOverlaySchema>;
|
|
94
|
+
declare const SocialVideoGenerationSchema: z.ZodObject<{
|
|
95
|
+
prompt: z.ZodString;
|
|
96
|
+
audioPrompt: z.ZodOptional<z.ZodString>;
|
|
97
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
|
|
98
|
+
durationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
hook: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
100
|
+
text: z.ZodString;
|
|
101
|
+
style: z.ZodOptional<z.ZodEnum<["neubrutalist", "neubrutalist-dark", "badge", "meme", "none"]>>;
|
|
102
|
+
containerBgColor: z.ZodOptional<z.ZodString>;
|
|
103
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
104
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
topY: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
badgeTag: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
text: string;
|
|
109
|
+
fontSize?: number | undefined;
|
|
110
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
111
|
+
containerBgColor?: string | undefined;
|
|
112
|
+
textColor?: string | undefined;
|
|
113
|
+
topY?: number | undefined;
|
|
114
|
+
badgeTag?: string | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
text: string;
|
|
117
|
+
fontSize?: number | undefined;
|
|
118
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
119
|
+
containerBgColor?: string | undefined;
|
|
120
|
+
textColor?: string | undefined;
|
|
121
|
+
topY?: number | undefined;
|
|
122
|
+
badgeTag?: string | undefined;
|
|
123
|
+
}>]>>;
|
|
124
|
+
watermark: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
125
|
+
text: z.ZodOptional<z.ZodString>;
|
|
126
|
+
imagePath: z.ZodOptional<z.ZodString>;
|
|
127
|
+
font: z.ZodOptional<z.ZodString>;
|
|
128
|
+
position: z.ZodOptional<z.ZodEnum<["bottom-right", "bottom-left", "top-right", "top-left", "center"]>>;
|
|
129
|
+
color: z.ZodOptional<z.ZodString>;
|
|
130
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
transparentBg: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
text?: string | undefined;
|
|
136
|
+
imagePath?: string | undefined;
|
|
137
|
+
font?: string | undefined;
|
|
138
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
139
|
+
color?: string | undefined;
|
|
140
|
+
strokeWidth?: number | undefined;
|
|
141
|
+
fontSize?: number | undefined;
|
|
142
|
+
transparentBg?: boolean | undefined;
|
|
143
|
+
opacity?: number | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
text?: string | undefined;
|
|
146
|
+
imagePath?: string | undefined;
|
|
147
|
+
font?: string | undefined;
|
|
148
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
149
|
+
color?: string | undefined;
|
|
150
|
+
strokeWidth?: number | undefined;
|
|
151
|
+
fontSize?: number | undefined;
|
|
152
|
+
transparentBg?: boolean | undefined;
|
|
153
|
+
opacity?: number | undefined;
|
|
154
|
+
}>]>>;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
prompt: string;
|
|
157
|
+
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
158
|
+
durationSeconds?: number | undefined;
|
|
159
|
+
audioPrompt?: string | undefined;
|
|
160
|
+
hook?: string | {
|
|
161
|
+
text: string;
|
|
162
|
+
fontSize?: number | undefined;
|
|
163
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
164
|
+
containerBgColor?: string | undefined;
|
|
165
|
+
textColor?: string | undefined;
|
|
166
|
+
topY?: number | undefined;
|
|
167
|
+
badgeTag?: string | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
watermark?: string | {
|
|
170
|
+
text?: string | undefined;
|
|
171
|
+
imagePath?: string | undefined;
|
|
172
|
+
font?: string | undefined;
|
|
173
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
174
|
+
color?: string | undefined;
|
|
175
|
+
strokeWidth?: number | undefined;
|
|
176
|
+
fontSize?: number | undefined;
|
|
177
|
+
transparentBg?: boolean | undefined;
|
|
178
|
+
opacity?: number | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
prompt: string;
|
|
182
|
+
aspectRatio?: "9:16" | "16:9" | undefined;
|
|
183
|
+
durationSeconds?: number | undefined;
|
|
184
|
+
audioPrompt?: string | undefined;
|
|
185
|
+
hook?: string | {
|
|
186
|
+
text: string;
|
|
187
|
+
fontSize?: number | undefined;
|
|
188
|
+
style?: "neubrutalist" | "neubrutalist-dark" | "badge" | "meme" | "none" | undefined;
|
|
189
|
+
containerBgColor?: string | undefined;
|
|
190
|
+
textColor?: string | undefined;
|
|
191
|
+
topY?: number | undefined;
|
|
192
|
+
badgeTag?: string | undefined;
|
|
193
|
+
} | undefined;
|
|
194
|
+
watermark?: string | {
|
|
195
|
+
text?: string | undefined;
|
|
196
|
+
imagePath?: string | undefined;
|
|
197
|
+
font?: string | undefined;
|
|
198
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "center" | undefined;
|
|
199
|
+
color?: string | undefined;
|
|
200
|
+
strokeWidth?: number | undefined;
|
|
201
|
+
fontSize?: number | undefined;
|
|
202
|
+
transparentBg?: boolean | undefined;
|
|
203
|
+
opacity?: number | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
}>;
|
|
206
|
+
type SocialVideoGenerationPayload = z.infer<typeof SocialVideoGenerationSchema>;
|
|
9
207
|
declare const ImageGenerationSchema: z.ZodObject<{
|
|
10
208
|
prompt: z.ZodString;
|
|
11
209
|
aspectRatio: z.ZodOptional<z.ZodEnum<["1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9"]>>;
|
|
@@ -529,7 +727,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
529
727
|
createdAt: z.ZodOptional<z.ZodAny>;
|
|
530
728
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
531
729
|
}, "strip", z.ZodTypeAny, {
|
|
532
|
-
type: "code" | "
|
|
730
|
+
type: "code" | "text" | "agent" | "image" | "video" | "analysis" | "audio" | "component";
|
|
533
731
|
status: "queued" | "completed" | "failed" | "processing";
|
|
534
732
|
id: string;
|
|
535
733
|
createdAt?: any;
|
|
@@ -537,7 +735,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
537
735
|
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
|
|
538
736
|
payload?: Record<string, any> | undefined;
|
|
539
737
|
}, {
|
|
540
|
-
type: "code" | "
|
|
738
|
+
type: "code" | "text" | "agent" | "image" | "video" | "analysis" | "audio" | "component";
|
|
541
739
|
status: "queued" | "completed" | "failed" | "processing";
|
|
542
740
|
id: string;
|
|
543
741
|
createdAt?: any;
|
|
@@ -547,4 +745,4 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
547
745
|
}>;
|
|
548
746
|
type QueueJob = z.infer<typeof QueueJobSchema>;
|
|
549
747
|
|
|
550
|
-
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 Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
|
|
748
|
+
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 Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type ServiceClient, ServiceClientSchema, type SocialVideoGenerationPayload, SocialVideoGenerationSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema, type VideoGenerationPayload, VideoGenerationSchema, type VideoOverlayStyle, VideoOverlayStyleSchema, type VideoTextOverlay, VideoTextOverlaySchema, type VideoWatermark, VideoWatermarkSchema, type WatermarkPosition, WatermarkPositionSchema };
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,56 @@ var AspectRatioSchema = z.enum([
|
|
|
14
14
|
"21:9"
|
|
15
15
|
]);
|
|
16
16
|
var VideoAspectRatioSchema = z.enum(["9:16", "16:9"]);
|
|
17
|
+
var VideoGenerationSchema = z.object({
|
|
18
|
+
prompt: z.string(),
|
|
19
|
+
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
20
|
+
durationSeconds: z.number().int().optional(),
|
|
21
|
+
generateAudio: z.boolean().optional(),
|
|
22
|
+
modelName: z.string().optional(),
|
|
23
|
+
resolution: z.string().optional()
|
|
24
|
+
});
|
|
25
|
+
var VideoOverlayStyleSchema = z.enum([
|
|
26
|
+
"neubrutalist",
|
|
27
|
+
"neubrutalist-dark",
|
|
28
|
+
"badge",
|
|
29
|
+
"meme",
|
|
30
|
+
"none"
|
|
31
|
+
]);
|
|
32
|
+
var WatermarkPositionSchema = z.enum([
|
|
33
|
+
"bottom-right",
|
|
34
|
+
"bottom-left",
|
|
35
|
+
"top-right",
|
|
36
|
+
"top-left",
|
|
37
|
+
"center"
|
|
38
|
+
]);
|
|
39
|
+
var VideoWatermarkSchema = z.object({
|
|
40
|
+
text: z.string().optional(),
|
|
41
|
+
imagePath: z.string().optional(),
|
|
42
|
+
font: z.string().optional(),
|
|
43
|
+
position: WatermarkPositionSchema.optional(),
|
|
44
|
+
color: z.string().optional(),
|
|
45
|
+
strokeWidth: z.number().optional(),
|
|
46
|
+
fontSize: z.number().optional(),
|
|
47
|
+
transparentBg: z.boolean().optional(),
|
|
48
|
+
opacity: z.number().optional()
|
|
49
|
+
});
|
|
50
|
+
var VideoTextOverlaySchema = z.object({
|
|
51
|
+
text: z.string(),
|
|
52
|
+
style: VideoOverlayStyleSchema.optional(),
|
|
53
|
+
containerBgColor: z.string().optional(),
|
|
54
|
+
textColor: z.string().optional(),
|
|
55
|
+
fontSize: z.number().optional(),
|
|
56
|
+
topY: z.number().optional(),
|
|
57
|
+
badgeTag: z.string().optional()
|
|
58
|
+
});
|
|
59
|
+
var SocialVideoGenerationSchema = z.object({
|
|
60
|
+
prompt: z.string(),
|
|
61
|
+
audioPrompt: z.string().optional(),
|
|
62
|
+
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
63
|
+
durationSeconds: z.number().int().optional(),
|
|
64
|
+
hook: z.union([z.string(), VideoTextOverlaySchema]).optional(),
|
|
65
|
+
watermark: z.union([z.string(), VideoWatermarkSchema]).optional()
|
|
66
|
+
});
|
|
17
67
|
var ImageGenerationSchema = z.object({
|
|
18
68
|
prompt: z.string(),
|
|
19
69
|
aspectRatio: AspectRatioSchema.optional(),
|
|
@@ -160,7 +210,13 @@ export {
|
|
|
160
210
|
QueueJobStatusSchema,
|
|
161
211
|
QueueJobTypeSchema,
|
|
162
212
|
ServiceClientSchema,
|
|
213
|
+
SocialVideoGenerationSchema,
|
|
163
214
|
VideoAnalysisCategorySchema,
|
|
164
215
|
VideoAnalysisSchema,
|
|
165
|
-
VideoAspectRatioSchema
|
|
216
|
+
VideoAspectRatioSchema,
|
|
217
|
+
VideoGenerationSchema,
|
|
218
|
+
VideoOverlayStyleSchema,
|
|
219
|
+
VideoTextOverlaySchema,
|
|
220
|
+
VideoWatermarkSchema,
|
|
221
|
+
WatermarkPositionSchema
|
|
166
222
|
};
|