@pixerate/schemas 1.1.10 → 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 +91 -4
- package/dist/index.d.cts +274 -4
- package/dist/index.d.ts +274 -4
- package/dist/index.js +80 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -32,15 +32,25 @@ __export(index_exports, {
|
|
|
32
32
|
AgentToolTypeSchema: () => AgentToolTypeSchema,
|
|
33
33
|
AspectRatioSchema: () => AspectRatioSchema,
|
|
34
34
|
CodeGenerationSchema: () => CodeGenerationSchema,
|
|
35
|
+
ComponentPropDefinitionSchema: () => ComponentPropDefinitionSchema,
|
|
36
|
+
ComponentSynthesisSchema: () => ComponentSynthesisSchema,
|
|
35
37
|
FidelitySchema: () => FidelitySchema,
|
|
36
38
|
ImageGenerationSchema: () => ImageGenerationSchema,
|
|
37
39
|
ImageTransformationSchema: () => ImageTransformationSchema,
|
|
38
40
|
JsonGenerationSchema: () => JsonGenerationSchema,
|
|
39
41
|
QueueJobSchema: () => QueueJobSchema,
|
|
42
|
+
QueueJobStatusSchema: () => QueueJobStatusSchema,
|
|
43
|
+
QueueJobTypeSchema: () => QueueJobTypeSchema,
|
|
40
44
|
ServiceClientSchema: () => ServiceClientSchema,
|
|
45
|
+
SocialVideoGenerationSchema: () => SocialVideoGenerationSchema,
|
|
41
46
|
VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
|
|
42
47
|
VideoAnalysisSchema: () => VideoAnalysisSchema,
|
|
43
|
-
VideoAspectRatioSchema: () => VideoAspectRatioSchema
|
|
48
|
+
VideoAspectRatioSchema: () => VideoAspectRatioSchema,
|
|
49
|
+
VideoGenerationSchema: () => VideoGenerationSchema,
|
|
50
|
+
VideoOverlayStyleSchema: () => VideoOverlayStyleSchema,
|
|
51
|
+
VideoTextOverlaySchema: () => VideoTextOverlaySchema,
|
|
52
|
+
VideoWatermarkSchema: () => VideoWatermarkSchema,
|
|
53
|
+
WatermarkPositionSchema: () => WatermarkPositionSchema
|
|
44
54
|
});
|
|
45
55
|
module.exports = __toCommonJS(index_exports);
|
|
46
56
|
var import_zod = require("zod");
|
|
@@ -58,6 +68,56 @@ var AspectRatioSchema = import_zod.z.enum([
|
|
|
58
68
|
"21:9"
|
|
59
69
|
]);
|
|
60
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
|
+
});
|
|
61
121
|
var ImageGenerationSchema = import_zod.z.object({
|
|
62
122
|
prompt: import_zod.z.string(),
|
|
63
123
|
aspectRatio: AspectRatioSchema.optional(),
|
|
@@ -91,6 +151,21 @@ var CodeGenerationSchema = import_zod.z.object({
|
|
|
91
151
|
prompt: import_zod.z.string(),
|
|
92
152
|
language: import_zod.z.string()
|
|
93
153
|
});
|
|
154
|
+
var ComponentPropDefinitionSchema = import_zod.z.object({
|
|
155
|
+
name: import_zod.z.string(),
|
|
156
|
+
type: import_zod.z.string(),
|
|
157
|
+
default: import_zod.z.string().optional(),
|
|
158
|
+
description: import_zod.z.string().optional()
|
|
159
|
+
});
|
|
160
|
+
var ComponentSynthesisSchema = import_zod.z.object({
|
|
161
|
+
svelte5: import_zod.z.string().describe("Synthesized Svelte 5 component implementation using runes"),
|
|
162
|
+
reactTsx: import_zod.z.string().describe("Synthesized React 19 TSX component implementation"),
|
|
163
|
+
webComponent: import_zod.z.string().describe("Synthesized WebComponent custom element implementation"),
|
|
164
|
+
usageDocs: import_zod.z.string().describe("Markdown documentation detailing props and usage patterns"),
|
|
165
|
+
propsSummary: import_zod.z.array(ComponentPropDefinitionSchema).describe("List of prop definitions and types"),
|
|
166
|
+
supportedThemes: import_zod.z.enum(["default", "light-and-dark"]).describe("Color theme support classification"),
|
|
167
|
+
previewHtml: import_zod.z.string().optional().describe("Self-contained interactive preview HTML harness")
|
|
168
|
+
});
|
|
94
169
|
var JsonGenerationSchema = import_zod.z.object({
|
|
95
170
|
prompt: import_zod.z.string(),
|
|
96
171
|
schema: import_zod.z.record(import_zod.z.any()).optional()
|
|
@@ -155,10 +230,12 @@ var AgentInteractionResultSchema = import_zod.z.object({
|
|
|
155
230
|
createdAt: import_zod.z.string().optional(),
|
|
156
231
|
updatedAt: import_zod.z.string().optional()
|
|
157
232
|
});
|
|
233
|
+
var QueueJobTypeSchema = import_zod.z.enum(["text", "image", "video", "analysis", "audio", "agent", "code", "component"]);
|
|
234
|
+
var QueueJobStatusSchema = import_zod.z.enum(["queued", "processing", "completed", "failed"]);
|
|
158
235
|
var QueueJobSchema = import_zod.z.object({
|
|
159
236
|
id: import_zod.z.string(),
|
|
160
|
-
type:
|
|
161
|
-
status:
|
|
237
|
+
type: QueueJobTypeSchema,
|
|
238
|
+
status: QueueJobStatusSchema,
|
|
162
239
|
client: ServiceClientSchema.optional(),
|
|
163
240
|
payload: import_zod.z.record(import_zod.z.any()).optional(),
|
|
164
241
|
createdAt: import_zod.z.any().optional(),
|
|
@@ -178,13 +255,23 @@ var QueueJobSchema = import_zod.z.object({
|
|
|
178
255
|
AgentToolTypeSchema,
|
|
179
256
|
AspectRatioSchema,
|
|
180
257
|
CodeGenerationSchema,
|
|
258
|
+
ComponentPropDefinitionSchema,
|
|
259
|
+
ComponentSynthesisSchema,
|
|
181
260
|
FidelitySchema,
|
|
182
261
|
ImageGenerationSchema,
|
|
183
262
|
ImageTransformationSchema,
|
|
184
263
|
JsonGenerationSchema,
|
|
185
264
|
QueueJobSchema,
|
|
265
|
+
QueueJobStatusSchema,
|
|
266
|
+
QueueJobTypeSchema,
|
|
186
267
|
ServiceClientSchema,
|
|
268
|
+
SocialVideoGenerationSchema,
|
|
187
269
|
VideoAnalysisCategorySchema,
|
|
188
270
|
VideoAnalysisSchema,
|
|
189
|
-
VideoAspectRatioSchema
|
|
271
|
+
VideoAspectRatioSchema,
|
|
272
|
+
VideoGenerationSchema,
|
|
273
|
+
VideoOverlayStyleSchema,
|
|
274
|
+
VideoTextOverlaySchema,
|
|
275
|
+
VideoWatermarkSchema,
|
|
276
|
+
WatermarkPositionSchema
|
|
190
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"]>>;
|
|
@@ -70,6 +268,74 @@ declare const CodeGenerationSchema: z.ZodObject<{
|
|
|
70
268
|
language: string;
|
|
71
269
|
}>;
|
|
72
270
|
type CodeGenerationPayload = z.infer<typeof CodeGenerationSchema>;
|
|
271
|
+
declare const ComponentPropDefinitionSchema: z.ZodObject<{
|
|
272
|
+
name: z.ZodString;
|
|
273
|
+
type: z.ZodString;
|
|
274
|
+
default: z.ZodOptional<z.ZodString>;
|
|
275
|
+
description: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
type: string;
|
|
278
|
+
name: string;
|
|
279
|
+
default?: string | undefined;
|
|
280
|
+
description?: string | undefined;
|
|
281
|
+
}, {
|
|
282
|
+
type: string;
|
|
283
|
+
name: string;
|
|
284
|
+
default?: string | undefined;
|
|
285
|
+
description?: string | undefined;
|
|
286
|
+
}>;
|
|
287
|
+
type ComponentPropDefinition = z.infer<typeof ComponentPropDefinitionSchema>;
|
|
288
|
+
declare const ComponentSynthesisSchema: z.ZodObject<{
|
|
289
|
+
svelte5: z.ZodString;
|
|
290
|
+
reactTsx: z.ZodString;
|
|
291
|
+
webComponent: z.ZodString;
|
|
292
|
+
usageDocs: z.ZodString;
|
|
293
|
+
propsSummary: z.ZodArray<z.ZodObject<{
|
|
294
|
+
name: z.ZodString;
|
|
295
|
+
type: z.ZodString;
|
|
296
|
+
default: z.ZodOptional<z.ZodString>;
|
|
297
|
+
description: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
type: string;
|
|
300
|
+
name: string;
|
|
301
|
+
default?: string | undefined;
|
|
302
|
+
description?: string | undefined;
|
|
303
|
+
}, {
|
|
304
|
+
type: string;
|
|
305
|
+
name: string;
|
|
306
|
+
default?: string | undefined;
|
|
307
|
+
description?: string | undefined;
|
|
308
|
+
}>, "many">;
|
|
309
|
+
supportedThemes: z.ZodEnum<["default", "light-and-dark"]>;
|
|
310
|
+
previewHtml: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
svelte5: string;
|
|
313
|
+
reactTsx: string;
|
|
314
|
+
webComponent: string;
|
|
315
|
+
usageDocs: string;
|
|
316
|
+
propsSummary: {
|
|
317
|
+
type: string;
|
|
318
|
+
name: string;
|
|
319
|
+
default?: string | undefined;
|
|
320
|
+
description?: string | undefined;
|
|
321
|
+
}[];
|
|
322
|
+
supportedThemes: "default" | "light-and-dark";
|
|
323
|
+
previewHtml?: string | undefined;
|
|
324
|
+
}, {
|
|
325
|
+
svelte5: string;
|
|
326
|
+
reactTsx: string;
|
|
327
|
+
webComponent: string;
|
|
328
|
+
usageDocs: string;
|
|
329
|
+
propsSummary: {
|
|
330
|
+
type: string;
|
|
331
|
+
name: string;
|
|
332
|
+
default?: string | undefined;
|
|
333
|
+
description?: string | undefined;
|
|
334
|
+
}[];
|
|
335
|
+
supportedThemes: "default" | "light-and-dark";
|
|
336
|
+
previewHtml?: string | undefined;
|
|
337
|
+
}>;
|
|
338
|
+
type ComponentSynthesisPayload = z.infer<typeof ComponentSynthesisSchema>;
|
|
73
339
|
declare const JsonGenerationSchema: z.ZodObject<{
|
|
74
340
|
prompt: z.ZodString;
|
|
75
341
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -448,16 +714,20 @@ declare const AgentInteractionResultSchema: z.ZodObject<{
|
|
|
448
714
|
updatedAt?: string | undefined;
|
|
449
715
|
}>;
|
|
450
716
|
type AgentInteractionResult = z.infer<typeof AgentInteractionResultSchema>;
|
|
717
|
+
declare const QueueJobTypeSchema: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
|
|
718
|
+
type QueueJobType = z.infer<typeof QueueJobTypeSchema>;
|
|
719
|
+
declare const QueueJobStatusSchema: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
720
|
+
type QueueJobStatus = z.infer<typeof QueueJobStatusSchema>;
|
|
451
721
|
declare const QueueJobSchema: z.ZodObject<{
|
|
452
722
|
id: z.ZodString;
|
|
453
|
-
type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent"]>;
|
|
723
|
+
type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
|
|
454
724
|
status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
455
725
|
client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "flair", "operative", "unknown"]>>;
|
|
456
726
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
457
727
|
createdAt: z.ZodOptional<z.ZodAny>;
|
|
458
728
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
459
729
|
}, "strip", z.ZodTypeAny, {
|
|
460
|
-
type: "
|
|
730
|
+
type: "code" | "text" | "agent" | "image" | "video" | "analysis" | "audio" | "component";
|
|
461
731
|
status: "queued" | "completed" | "failed" | "processing";
|
|
462
732
|
id: string;
|
|
463
733
|
createdAt?: any;
|
|
@@ -465,7 +735,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
465
735
|
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
|
|
466
736
|
payload?: Record<string, any> | undefined;
|
|
467
737
|
}, {
|
|
468
|
-
type: "
|
|
738
|
+
type: "code" | "text" | "agent" | "image" | "video" | "analysis" | "audio" | "component";
|
|
469
739
|
status: "queued" | "completed" | "failed" | "processing";
|
|
470
740
|
id: string;
|
|
471
741
|
createdAt?: any;
|
|
@@ -475,4 +745,4 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
475
745
|
}>;
|
|
476
746
|
type QueueJob = z.infer<typeof QueueJobSchema>;
|
|
477
747
|
|
|
478
|
-
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 Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, 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"]>>;
|
|
@@ -70,6 +268,74 @@ declare const CodeGenerationSchema: z.ZodObject<{
|
|
|
70
268
|
language: string;
|
|
71
269
|
}>;
|
|
72
270
|
type CodeGenerationPayload = z.infer<typeof CodeGenerationSchema>;
|
|
271
|
+
declare const ComponentPropDefinitionSchema: z.ZodObject<{
|
|
272
|
+
name: z.ZodString;
|
|
273
|
+
type: z.ZodString;
|
|
274
|
+
default: z.ZodOptional<z.ZodString>;
|
|
275
|
+
description: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
type: string;
|
|
278
|
+
name: string;
|
|
279
|
+
default?: string | undefined;
|
|
280
|
+
description?: string | undefined;
|
|
281
|
+
}, {
|
|
282
|
+
type: string;
|
|
283
|
+
name: string;
|
|
284
|
+
default?: string | undefined;
|
|
285
|
+
description?: string | undefined;
|
|
286
|
+
}>;
|
|
287
|
+
type ComponentPropDefinition = z.infer<typeof ComponentPropDefinitionSchema>;
|
|
288
|
+
declare const ComponentSynthesisSchema: z.ZodObject<{
|
|
289
|
+
svelte5: z.ZodString;
|
|
290
|
+
reactTsx: z.ZodString;
|
|
291
|
+
webComponent: z.ZodString;
|
|
292
|
+
usageDocs: z.ZodString;
|
|
293
|
+
propsSummary: z.ZodArray<z.ZodObject<{
|
|
294
|
+
name: z.ZodString;
|
|
295
|
+
type: z.ZodString;
|
|
296
|
+
default: z.ZodOptional<z.ZodString>;
|
|
297
|
+
description: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
type: string;
|
|
300
|
+
name: string;
|
|
301
|
+
default?: string | undefined;
|
|
302
|
+
description?: string | undefined;
|
|
303
|
+
}, {
|
|
304
|
+
type: string;
|
|
305
|
+
name: string;
|
|
306
|
+
default?: string | undefined;
|
|
307
|
+
description?: string | undefined;
|
|
308
|
+
}>, "many">;
|
|
309
|
+
supportedThemes: z.ZodEnum<["default", "light-and-dark"]>;
|
|
310
|
+
previewHtml: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
svelte5: string;
|
|
313
|
+
reactTsx: string;
|
|
314
|
+
webComponent: string;
|
|
315
|
+
usageDocs: string;
|
|
316
|
+
propsSummary: {
|
|
317
|
+
type: string;
|
|
318
|
+
name: string;
|
|
319
|
+
default?: string | undefined;
|
|
320
|
+
description?: string | undefined;
|
|
321
|
+
}[];
|
|
322
|
+
supportedThemes: "default" | "light-and-dark";
|
|
323
|
+
previewHtml?: string | undefined;
|
|
324
|
+
}, {
|
|
325
|
+
svelte5: string;
|
|
326
|
+
reactTsx: string;
|
|
327
|
+
webComponent: string;
|
|
328
|
+
usageDocs: string;
|
|
329
|
+
propsSummary: {
|
|
330
|
+
type: string;
|
|
331
|
+
name: string;
|
|
332
|
+
default?: string | undefined;
|
|
333
|
+
description?: string | undefined;
|
|
334
|
+
}[];
|
|
335
|
+
supportedThemes: "default" | "light-and-dark";
|
|
336
|
+
previewHtml?: string | undefined;
|
|
337
|
+
}>;
|
|
338
|
+
type ComponentSynthesisPayload = z.infer<typeof ComponentSynthesisSchema>;
|
|
73
339
|
declare const JsonGenerationSchema: z.ZodObject<{
|
|
74
340
|
prompt: z.ZodString;
|
|
75
341
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -448,16 +714,20 @@ declare const AgentInteractionResultSchema: z.ZodObject<{
|
|
|
448
714
|
updatedAt?: string | undefined;
|
|
449
715
|
}>;
|
|
450
716
|
type AgentInteractionResult = z.infer<typeof AgentInteractionResultSchema>;
|
|
717
|
+
declare const QueueJobTypeSchema: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
|
|
718
|
+
type QueueJobType = z.infer<typeof QueueJobTypeSchema>;
|
|
719
|
+
declare const QueueJobStatusSchema: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
720
|
+
type QueueJobStatus = z.infer<typeof QueueJobStatusSchema>;
|
|
451
721
|
declare const QueueJobSchema: z.ZodObject<{
|
|
452
722
|
id: z.ZodString;
|
|
453
|
-
type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent"]>;
|
|
723
|
+
type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
|
|
454
724
|
status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
455
725
|
client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "flair", "operative", "unknown"]>>;
|
|
456
726
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
457
727
|
createdAt: z.ZodOptional<z.ZodAny>;
|
|
458
728
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
459
729
|
}, "strip", z.ZodTypeAny, {
|
|
460
|
-
type: "
|
|
730
|
+
type: "code" | "text" | "agent" | "image" | "video" | "analysis" | "audio" | "component";
|
|
461
731
|
status: "queued" | "completed" | "failed" | "processing";
|
|
462
732
|
id: string;
|
|
463
733
|
createdAt?: any;
|
|
@@ -465,7 +735,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
465
735
|
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
|
|
466
736
|
payload?: Record<string, any> | undefined;
|
|
467
737
|
}, {
|
|
468
|
-
type: "
|
|
738
|
+
type: "code" | "text" | "agent" | "image" | "video" | "analysis" | "audio" | "component";
|
|
469
739
|
status: "queued" | "completed" | "failed" | "processing";
|
|
470
740
|
id: string;
|
|
471
741
|
createdAt?: any;
|
|
@@ -475,4 +745,4 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
475
745
|
}>;
|
|
476
746
|
type QueueJob = z.infer<typeof QueueJobSchema>;
|
|
477
747
|
|
|
478
|
-
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 Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, 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(),
|
|
@@ -47,6 +97,21 @@ var CodeGenerationSchema = z.object({
|
|
|
47
97
|
prompt: z.string(),
|
|
48
98
|
language: z.string()
|
|
49
99
|
});
|
|
100
|
+
var ComponentPropDefinitionSchema = z.object({
|
|
101
|
+
name: z.string(),
|
|
102
|
+
type: z.string(),
|
|
103
|
+
default: z.string().optional(),
|
|
104
|
+
description: z.string().optional()
|
|
105
|
+
});
|
|
106
|
+
var ComponentSynthesisSchema = z.object({
|
|
107
|
+
svelte5: z.string().describe("Synthesized Svelte 5 component implementation using runes"),
|
|
108
|
+
reactTsx: z.string().describe("Synthesized React 19 TSX component implementation"),
|
|
109
|
+
webComponent: z.string().describe("Synthesized WebComponent custom element implementation"),
|
|
110
|
+
usageDocs: z.string().describe("Markdown documentation detailing props and usage patterns"),
|
|
111
|
+
propsSummary: z.array(ComponentPropDefinitionSchema).describe("List of prop definitions and types"),
|
|
112
|
+
supportedThemes: z.enum(["default", "light-and-dark"]).describe("Color theme support classification"),
|
|
113
|
+
previewHtml: z.string().optional().describe("Self-contained interactive preview HTML harness")
|
|
114
|
+
});
|
|
50
115
|
var JsonGenerationSchema = z.object({
|
|
51
116
|
prompt: z.string(),
|
|
52
117
|
schema: z.record(z.any()).optional()
|
|
@@ -111,10 +176,12 @@ var AgentInteractionResultSchema = z.object({
|
|
|
111
176
|
createdAt: z.string().optional(),
|
|
112
177
|
updatedAt: z.string().optional()
|
|
113
178
|
});
|
|
179
|
+
var QueueJobTypeSchema = z.enum(["text", "image", "video", "analysis", "audio", "agent", "code", "component"]);
|
|
180
|
+
var QueueJobStatusSchema = z.enum(["queued", "processing", "completed", "failed"]);
|
|
114
181
|
var QueueJobSchema = z.object({
|
|
115
182
|
id: z.string(),
|
|
116
|
-
type:
|
|
117
|
-
status:
|
|
183
|
+
type: QueueJobTypeSchema,
|
|
184
|
+
status: QueueJobStatusSchema,
|
|
118
185
|
client: ServiceClientSchema.optional(),
|
|
119
186
|
payload: z.record(z.any()).optional(),
|
|
120
187
|
createdAt: z.any().optional(),
|
|
@@ -133,13 +200,23 @@ export {
|
|
|
133
200
|
AgentToolTypeSchema,
|
|
134
201
|
AspectRatioSchema,
|
|
135
202
|
CodeGenerationSchema,
|
|
203
|
+
ComponentPropDefinitionSchema,
|
|
204
|
+
ComponentSynthesisSchema,
|
|
136
205
|
FidelitySchema,
|
|
137
206
|
ImageGenerationSchema,
|
|
138
207
|
ImageTransformationSchema,
|
|
139
208
|
JsonGenerationSchema,
|
|
140
209
|
QueueJobSchema,
|
|
210
|
+
QueueJobStatusSchema,
|
|
211
|
+
QueueJobTypeSchema,
|
|
141
212
|
ServiceClientSchema,
|
|
213
|
+
SocialVideoGenerationSchema,
|
|
142
214
|
VideoAnalysisCategorySchema,
|
|
143
215
|
VideoAnalysisSchema,
|
|
144
|
-
VideoAspectRatioSchema
|
|
216
|
+
VideoAspectRatioSchema,
|
|
217
|
+
VideoGenerationSchema,
|
|
218
|
+
VideoOverlayStyleSchema,
|
|
219
|
+
VideoTextOverlaySchema,
|
|
220
|
+
VideoWatermarkSchema,
|
|
221
|
+
WatermarkPositionSchema
|
|
145
222
|
};
|