@shotstack/shotstack-studio 2.0.0-beta.1 → 2.0.0-beta.10

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.
@@ -1,413 +1,2279 @@
1
- import * as t from "zod";
2
- const j = t.enum(["linear", "bezier", "constant"]), v = t.enum([
3
- "smooth",
4
- "ease",
5
- "easeIn",
6
- "easeOut",
7
- "easeInOut",
8
- "easeInQuad",
9
- "easeInCubic",
10
- "easeInQuart",
11
- "easeInQuint",
12
- "easeInSine",
13
- "easeInExpo",
14
- "easeInCirc",
15
- "easeInBack",
16
- "easeOutQuad",
17
- "easeOutCubic",
18
- "easeOutQuart",
19
- "easeOutQuint",
20
- "easeOutSine",
21
- "easeOutExpo",
22
- "easeOutCirc",
23
- "easeOutBack",
24
- "easeInOutQuad",
25
- "easeInOutCubic",
26
- "easeInOutQuart",
27
- "easeInOutQuint",
28
- "easeInOutSine",
29
- "easeInOutExpo",
30
- "easeInOutCirc",
31
- "easeInOutBack"
32
- ]), n = t.object({
33
- from: t.number(),
34
- to: t.number(),
35
- start: t.number().min(0),
36
- length: t.number().positive(),
37
- interpolation: j.optional(),
38
- easing: v.optional()
39
- }).strict(), I = t.string().url("Invalid audio url format."), C = n.extend({
40
- from: t.number().min(0).max(1),
41
- to: t.number().min(0).max(1)
42
- }).array().or(t.number().min(0).max(1)), k = t.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]), s = t.object({
43
- type: t.literal("audio"),
44
- src: I,
45
- trim: t.number().optional(),
46
- volume: C.optional(),
47
- effect: k.optional()
48
- }).strict(), a = t.string().regex(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})|transparent$/, "Invalid color format."), O = t.object({
49
- family: t.string().optional(),
50
- size: t.coerce.number().min(1).max(512).optional(),
51
- weight: t.number().optional(),
52
- color: a.optional(),
53
- lineHeight: t.number().min(0).max(10).optional(),
54
- opacity: t.number().min(0).max(1).optional()
55
- }).strict(), T = t.object({
56
- width: t.number().min(0).max(10).optional(),
57
- color: a.optional()
58
- }).strict(), F = t.object({
59
- color: a.optional(),
60
- opacity: t.number().min(0).max(1).optional(),
61
- padding: t.number().min(0).max(100).optional(),
62
- borderRadius: t.number().min(0).optional()
63
- }).strict(), R = t.object({
64
- horizontal: t.enum(["left", "center", "right"]).optional(),
65
- vertical: t.enum(["top", "center", "bottom"]).optional()
66
- }).strict(), w = /^alias:\/\/[a-zA-Z0-9_-]+$/, c = t.object({
67
- type: t.literal("caption"),
68
- src: t.union([
69
- t.string().url("Invalid subtitle URL format."),
70
- t.string().regex(w, "Invalid alias reference format.")
1
+ import { z as e } from "zod";
2
+ e.unknown();
3
+ e.unknown();
4
+ e.unknown();
5
+ e.unknown();
6
+ e.unknown();
7
+ e.unknown();
8
+ e.unknown();
9
+ e.unknown();
10
+ e.unknown();
11
+ e.unknown();
12
+ e.unknown();
13
+ e.unknown();
14
+ e.unknown();
15
+ e.unknown();
16
+ e.unknown();
17
+ e.unknown();
18
+ const B = e.object({
19
+ color: e.optional(e.string()),
20
+ opacity: e.optional(e.preprocess((t) => {
21
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
22
+ return typeof t == "string" ? Number(t) : t;
23
+ }, e.number())),
24
+ padding: e.optional(e.preprocess((t) => {
25
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
26
+ return typeof t == "string" ? Number(t) : t;
27
+ }, e.number().int())),
28
+ borderRadius: e.optional(e.preprocess((t) => {
29
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
30
+ return typeof t == "string" ? Number(t) : t;
31
+ }, e.number().int()))
32
+ }), E = e.object({
33
+ family: e.optional(e.string()),
34
+ color: e.optional(e.string()),
35
+ opacity: e.optional(e.preprocess((t) => {
36
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
37
+ return typeof t == "string" ? Number(t) : t;
38
+ }, e.number())),
39
+ size: e.optional(e.preprocess((t) => {
40
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
41
+ return typeof t == "string" ? Number(t) : t;
42
+ }, e.number().int())),
43
+ lineHeight: e.optional(e.preprocess((t) => {
44
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
45
+ return typeof t == "string" ? Number(t) : t;
46
+ }, e.number())),
47
+ stroke: e.optional(e.string()),
48
+ strokeWidth: e.optional(e.preprocess((t) => {
49
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
50
+ return typeof t == "string" ? Number(t) : t;
51
+ }, e.number()))
52
+ }), q = e.object({
53
+ top: e.optional(e.preprocess((t) => {
54
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
55
+ return typeof t == "string" ? Number(t) : t;
56
+ }, e.number())),
57
+ left: e.optional(e.preprocess((t) => {
58
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
59
+ return typeof t == "string" ? Number(t) : t;
60
+ }, e.number())),
61
+ right: e.optional(e.preprocess((t) => {
62
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
63
+ return typeof t == "string" ? Number(t) : t;
64
+ }, e.number()))
65
+ }), f = e.object({
66
+ type: e.enum(["caption"]),
67
+ src: e.string(),
68
+ font: e.optional(E),
69
+ background: e.optional(B),
70
+ margin: e.optional(q),
71
+ trim: e.optional(e.preprocess((t) => {
72
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
73
+ return typeof t == "string" ? Number(t) : t;
74
+ }, e.number())),
75
+ speed: e.optional(e.preprocess((t) => {
76
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
77
+ return typeof t == "string" ? Number(t) : t;
78
+ }, e.number().gte(0).lte(10)))
79
+ }), Ht = f, P = e.object({
80
+ color: e.optional(e.string()),
81
+ threshold: e.optional(e.preprocess((t) => {
82
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
83
+ return typeof t == "string" ? Number(t) : t;
84
+ }, e.number().int().gte(0).lte(250))),
85
+ halo: e.optional(e.preprocess((t) => {
86
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
87
+ return typeof t == "string" ? Number(t) : t;
88
+ }, e.number().int().gte(0).lte(250)))
89
+ }), $ = e.object({
90
+ type: e.enum(["text-to-avatar"]),
91
+ text: e.string(),
92
+ avatar: e.enum([
93
+ "jack",
94
+ "lana",
95
+ "lily",
96
+ "matt",
97
+ "rian"
71
98
  ]),
72
- font: O.optional(),
73
- stroke: T.optional(),
74
- background: F.optional(),
75
- alignment: R.optional(),
76
- width: t.number().min(1).optional(),
77
- height: t.number().min(1).optional(),
78
- trim: t.number().min(0).optional()
79
- }).strict(), E = t.enum(["top", "topRight", "right", "bottomRight", "bottom", "bottomLeft", "left", "topLeft", "center"]), m = t.object({
80
- type: t.literal("html"),
81
- html: t.string(),
82
- css: t.string(),
83
- width: t.number().positive().optional(),
84
- height: t.number().positive().optional(),
85
- position: E.optional()
86
- }).strict(), P = t.string().url("Invalid image url format."), z = t.object({
87
- top: t.number().min(0).optional(),
88
- right: t.number().min(0).optional(),
89
- bottom: t.number().min(0).optional(),
90
- left: t.number().min(0).optional()
91
- }).strict(), l = t.object({
92
- type: t.literal("image"),
93
- src: P,
94
- crop: z.optional()
95
- }).strict(), L = t.string().url("Invalid luma url format."), u = t.object({
96
- type: t.literal("luma"),
97
- src: L
98
- }).strict(), o = t.string().regex(/^#[A-Fa-f0-9]{6}$/, "Invalid hex color format"), D = t.object({
99
- offset: t.number().min(0).max(1),
100
- color: o
101
- }).strict(), H = t.object({
102
- type: t.enum(["linear", "radial"]).default("linear"),
103
- angle: t.number().min(0).max(360).default(0),
104
- stops: t.array(D).min(2)
105
- }).strict(), V = t.object({
106
- width: t.number().min(0).default(0),
107
- color: o.default("#000000"),
108
- opacity: t.number().min(0).max(1).default(1)
109
- }).strict(), Q = t.object({
110
- family: t.string().default("Roboto"),
111
- size: t.number().min(8).max(500).default(48),
112
- weight: t.union([t.string(), t.number()]).default("400"),
113
- color: o.default("#000000"),
114
- opacity: t.number().min(0).max(1).default(1),
115
- background: o.optional(),
116
- stroke: V.optional()
117
- }).strict(), $ = t.object({
118
- letterSpacing: t.number().default(0),
119
- lineHeight: t.number().min(0.1).max(10).default(1.2),
120
- textTransform: t.enum(["none", "uppercase", "lowercase", "capitalize"]).default("none"),
121
- textDecoration: t.enum(["none", "underline", "line-through"]).default("none"),
122
- gradient: H.optional()
123
- }).strict(), B = t.object({
124
- offsetX: t.number().default(0),
125
- offsetY: t.number().default(0),
126
- blur: t.number().min(0).default(0),
127
- color: o.default("#000000"),
128
- opacity: t.number().min(0).max(1).default(0.5)
129
- }).strict(), U = t.object({
130
- width: t.number().min(0).default(0),
131
- color: o.default("#000000"),
132
- opacity: t.number().min(0).max(1).default(1),
133
- radius: t.number().min(0).default(0)
134
- }).strict(), _ = t.object({
135
- color: o.optional(),
136
- opacity: t.number().min(0).max(1).default(1)
137
- }).strict(), M = t.union([
138
- t.number().min(0),
139
- t.object({
140
- top: t.number().min(0).default(0),
141
- right: t.number().min(0).default(0),
142
- bottom: t.number().min(0).default(0),
143
- left: t.number().min(0).default(0)
144
- }).strict()
145
- ]), G = t.object({
146
- horizontal: t.enum(["left", "center", "right"]).default("left"),
147
- vertical: t.enum(["top", "middle", "bottom"]).default("middle")
148
- }).strict(), N = t.object({
149
- preset: t.enum(["typewriter", "fadeIn", "slideIn", "ascend", "shift", "movingLetters"]),
150
- duration: t.number().min(0.1).max(60).optional(),
151
- style: t.enum(["character", "word"]).optional(),
152
- direction: t.enum(["left", "right", "up", "down"]).optional()
153
- }).strict(), p = t.object({
154
- type: t.literal("rich-text"),
155
- text: t.string().max(1e4).default(""),
156
- font: Q.optional(),
157
- style: $.optional(),
158
- shadow: B.optional(),
159
- background: _.optional(),
160
- border: U.optional(),
161
- padding: M.optional(),
162
- align: G.optional(),
163
- animation: N.optional()
164
- }).strict(), A = t.string().regex(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})|transparent$/, "Invalid color format."), b = t.object({
165
- width: t.number().positive(),
166
- height: t.number().positive()
167
- }).strict(), f = t.object({
168
- radius: t.number().positive()
169
- }).strict(), d = t.object({
170
- length: t.number().positive(),
171
- thickness: t.number().positive()
172
- }).strict(), W = t.object({
173
- color: A,
174
- opacity: t.number().min(0).max(1)
175
- }).strict(), K = t.object({
176
- color: A.optional(),
177
- width: t.number().min(0).optional()
178
- }).strict(), h = t.object({
179
- type: t.literal("shape"),
180
- width: t.number().positive().optional(),
181
- height: t.number().positive().optional(),
182
- shape: t.enum(["rectangle", "circle", "line"]),
183
- fill: W.optional(),
184
- stroke: K.optional(),
185
- rectangle: b.optional(),
186
- circle: f.optional(),
187
- line: d.optional()
188
- }).strict().refine((e) => e.shape === "rectangle" ? b.safeParse(e.rectangle) : e.shape === "circle" ? f.safeParse(e.circle) : e.shape === "line" ? d.safeParse(e.line) : !1), r = t.string().regex(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})|transparent$/, "Invalid color format."), X = t.object({
189
- color: r.optional(),
190
- family: t.string().optional(),
191
- size: t.coerce.number().positive().optional(),
192
- weight: t.number().optional(),
193
- lineHeight: t.number().optional(),
194
- opacity: t.number().min(0).max(1).optional()
195
- }).strict(), Y = t.object({
196
- horizontal: t.enum(["left", "center", "right"]).optional(),
197
- vertical: t.enum(["top", "center", "bottom"]).optional()
198
- }).strict(), Z = t.object({
199
- color: r.optional(),
200
- opacity: t.number().min(0).max(1).default(1),
201
- padding: t.number().min(0).max(100).optional(),
202
- borderRadius: t.number().min(0).optional()
203
- }).strict(), q = t.object({
204
- width: t.number().min(0).optional(),
205
- color: r.optional()
206
- }).strict(), g = t.object({
207
- type: t.literal("text"),
208
- text: t.string().optional(),
209
- width: t.number().positive().optional(),
210
- height: t.number().positive().optional(),
211
- font: X.optional(),
212
- alignment: Y.optional(),
213
- background: Z.optional(),
214
- stroke: q.optional()
215
- }).strict(), J = t.string().url("Invalid video url format."), tt = t.object({
216
- top: t.number().min(0).optional(),
217
- right: t.number().min(0).optional(),
218
- bottom: t.number().min(0).optional(),
219
- left: t.number().min(0).optional()
220
- }).strict(), et = n.extend({
221
- from: t.number().min(0).max(1),
222
- to: t.number().min(0).max(1)
223
- }).array().or(t.number().min(0).max(1)), S = t.object({
224
- type: t.literal("video"),
225
- src: J,
226
- trim: t.number().optional(),
227
- crop: tt.optional(),
228
- volume: et.optional()
229
- }).strict(), ot = t.union([
230
- g,
231
- p,
232
- h,
233
- m,
234
- l,
235
- S,
236
- u,
237
- s,
238
- c
239
- ]).refine((e) => e.type === "text" ? g.safeParse(e) : e.type === "rich-text" ? p.safeParse(e) : e.type === "shape" ? h.safeParse(e) : e.type === "html" ? m.safeParse(e) : e.type === "image" ? l.safeParse(e) : e.type === "video" ? S.safeParse(e) : e.type === "luma" ? u.safeParse(e) : e.type === "audio" ? s.safeParse(e) : e.type === "caption" ? c.safeParse(e) : !1), x = /^alias:\/\/[a-zA-Z0-9_-]+$/, nt = t.enum(["topLeft", "top", "topRight", "left", "center", "right", "bottomLeft", "bottom", "bottomRight"]), it = t.enum(["crop", "cover", "contain", "none"]), i = t.coerce.number().min(-10).max(10).default(0), at = n.extend({
240
- from: i,
241
- to: i
242
- }).array().or(i), rt = n.extend({
243
- from: i,
244
- to: i
245
- }).array().or(i), st = t.object({
246
- x: at.default(0),
247
- y: rt.default(0)
248
- }).strict(), ct = n.extend({
249
- from: t.number().min(0).max(1),
250
- to: t.number().min(0).max(1)
251
- }).array().or(t.number().min(0).max(1)), mt = n.extend({
252
- from: t.number().min(0),
253
- to: t.number().min(0)
254
- }).array().or(t.number().min(0)), lt = t.object({
255
- angle: n.extend({
256
- from: t.number(),
257
- to: t.number()
258
- }).array().or(t.number())
259
- }).strict(), ut = t.string(), y = t.string(), pt = t.object({
260
- in: y.optional(),
261
- out: y.optional()
262
- }).strict(), bt = t.object({
263
- rotate: lt.default({ angle: 0 })
264
- }).strict(), ft = t.object({
265
- asset: ot,
266
- start: t.union([t.number().min(0), t.literal("auto"), t.string().regex(x)]),
267
- length: t.union([t.number().positive(), t.literal("auto"), t.literal("end"), t.string().regex(x)]),
268
- alias: t.string().optional(),
269
- position: nt.default("center").optional(),
270
- fit: it.optional(),
271
- offset: st.default({ x: 0, y: 0 }).optional(),
272
- opacity: ct.default(1).optional(),
273
- scale: mt.default(1).optional(),
274
- transform: bt.default({ rotate: { angle: 0 } }).optional(),
275
- effect: ut.optional(),
276
- transition: pt.optional(),
277
- width: t.number().min(1).max(3840).optional(),
278
- height: t.number().min(1).max(2160).optional()
279
- }).strict().transform((e) => ({
280
- ...e,
281
- fit: e.fit ?? (e.asset.type === "rich-text" ? "cover" : "crop")
282
- })), dt = t.object({
283
- clips: ft.array()
284
- }).strict(), ht = t.string().url("Invalid image url format."), gt = t.object({
285
- src: ht
286
- }).strict(), St = t.enum(["fadeIn", "fadeOut", "fadeInFadeOut"]), xt = t.object({
287
- src: t.string().url(),
288
- effect: St.optional(),
289
- volume: t.number().min(0).max(1).optional()
290
- }).strict(), yt = t.string().regex(/^#[A-Fa-f0-9]{6}$/, "Must be a valid hex color (e.g., #000000)"), At = t.object({
291
- background: yt.optional(),
292
- fonts: gt.array().optional(),
293
- tracks: dt.array(),
294
- soundtrack: xt.optional()
295
- }).strict(), jt = t.object({
296
- provider: t.literal("shotstack"),
297
- exclude: t.boolean().optional()
298
- }).strict(), vt = t.object({
299
- provider: t.literal("s3"),
300
- options: t.object({
301
- region: t.string(),
302
- bucket: t.string().min(3).max(63),
303
- prefix: t.string().optional(),
304
- filename: t.string().optional(),
305
- acl: t.string().optional()
306
- }).strict()
307
- }).strict(), It = t.object({
308
- provider: t.literal("mux"),
309
- options: t.object({
310
- playbackPolicy: t.array(t.enum(["public", "signed"])).optional(),
311
- passthrough: t.string().max(255).optional()
312
- }).strict().optional()
313
- }).strict(), Ct = t.object({
314
- provider: t.literal("google-cloud-storage"),
315
- options: t.object({
316
- bucket: t.string().optional(),
317
- prefix: t.string().optional(),
318
- filename: t.string().optional()
319
- }).strict().optional()
320
- }).strict(), kt = t.object({
321
- provider: t.literal("google-drive"),
322
- options: t.object({
323
- filename: t.string().optional(),
324
- folderId: t.string().optional()
325
- }).strict().optional()
326
- }).strict(), Ot = t.object({
327
- provider: t.literal("vimeo"),
328
- options: t.object({
329
- name: t.string().optional(),
330
- description: t.string().optional(),
331
- privacy: t.object({
332
- view: t.enum(["anybody", "nobody", "contacts", "password", "unlisted"]).optional(),
333
- embed: t.enum(["public", "private", "whitelist"]).optional(),
334
- comments: t.enum(["anybody", "nobody", "contacts"]).optional()
335
- }).strict().optional(),
336
- folderUri: t.string().optional()
337
- }).strict().optional()
338
- }).strict(), Tt = t.object({
339
- provider: t.literal("tiktok")
340
- }).strict(), Ft = t.union([
341
- jt,
342
- vt,
343
- It,
344
- Ct,
99
+ background: e.optional(e.string())
100
+ }), _ = e.object({
101
+ type: e.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")
102
+ }).and($), U = e.object({
103
+ provider: e.enum(["d-id"]),
104
+ options: _
105
+ }), Z = e.object({
106
+ type: e.enum(["text-to-speech"]),
107
+ text: e.string(),
108
+ voice: e.enum([
109
+ "Adam",
110
+ "Antoni",
111
+ "Arnold",
112
+ "Bella",
113
+ "Domi",
114
+ "Elli",
115
+ "Josh",
116
+ "Rachel",
117
+ "Sam"
118
+ ])
119
+ }), J = e.object({
120
+ type: e.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")
121
+ }).and(Z), M = e.object({
122
+ provider: e.enum(["elevenlabs"]),
123
+ options: J
124
+ }), H = e.object({
125
+ type: e.enum(["text-to-avatar"]),
126
+ text: e.string(),
127
+ avatar: e.enum([
128
+ "Angela",
129
+ "Bill",
130
+ "Daisy",
131
+ "Derek",
132
+ "Eva",
133
+ "Jake",
134
+ "Jeff",
135
+ "Jerome",
136
+ "Joon",
137
+ "Kayla",
138
+ "Kent",
139
+ "Luna",
140
+ "Mark",
141
+ "Matthew",
142
+ "Monica",
143
+ "Peter",
144
+ "Selina",
145
+ "Tanya",
146
+ "Thomas",
147
+ "Tina",
148
+ "Tyler",
149
+ "Vanessa",
150
+ "Vera",
151
+ "Wilson",
152
+ "Zoey"
153
+ ]),
154
+ voice: e.enum([
155
+ "Abbi - Natural",
156
+ "Adam - Natural",
157
+ "Aiston - Friendly",
158
+ "Alice - Newscaster",
159
+ "Alison - Cheerful",
160
+ "Amber - Friendly",
161
+ "Amy - Warm",
162
+ "Ana - Cheerful",
163
+ "Antoni - Friendly",
164
+ "Aria - Newscaster",
165
+ "Arnold - Cheerful",
166
+ "Arthur - Natural",
167
+ "Bella - Friendly",
168
+ "Belle - Natural",
169
+ "Brandon - Warm",
170
+ "Brian - Natural",
171
+ "Bruce - Natural",
172
+ "Cerise - Cheerful",
173
+ "Christopher - Calm",
174
+ "Clara - Professional",
175
+ "Connor - Natural",
176
+ "Dahlia - Friendly",
177
+ "Davis - Professional",
178
+ "Dean - Natural",
179
+ "Delbert - Cheerful",
180
+ "Edward - Friendly",
181
+ "Elaine - Calm",
182
+ "Emily - Natural",
183
+ "Emma - Newscaster",
184
+ "Eric - Newscaster",
185
+ "Grace - Natural",
186
+ "Hailey - Calm",
187
+ "Indira - Cheerful",
188
+ "Isabella - Cheerful",
189
+ "Jacob - Natural",
190
+ "Jahmai - Friendly",
191
+ "Jane - Serious",
192
+ "Jason - Serious",
193
+ "Jelle - Friendly",
194
+ "Jen - Natural",
195
+ "Jenny - Professional",
196
+ "Jodi - Cheerful",
197
+ "Joey - Calm",
198
+ "Johan - Friendly",
199
+ "Josie - Cheerful",
200
+ "Keanan - Natural",
201
+ "Keith - Cheerful",
202
+ "Kellie - Friendly",
203
+ "Lauren - Friendly",
204
+ "Leah - Natural",
205
+ "Liam - Professional",
206
+ "Libby - Natural",
207
+ "Lily - Professional",
208
+ "Lucas - Natural",
209
+ "Luke - Professional",
210
+ "Luna - Natural",
211
+ "Marieke - Natural",
212
+ "Matthew - Professional",
213
+ "Michelle - Natural",
214
+ "Mitchell - Natural",
215
+ "Molly - Newscaster",
216
+ "Monica - Calm",
217
+ "Natasha - Professional",
218
+ "Neerja - Newscaster",
219
+ "Noah - Serious",
220
+ "Oliver - Newscaster",
221
+ "Olivia - Calm",
222
+ "Paul - Natural",
223
+ "Prabhat - Natural",
224
+ "Raveena - Natural",
225
+ "Rudi - Friendly",
226
+ "Ryan - Professional",
227
+ "Sam - Natural",
228
+ "Sara - Cheerful",
229
+ "Sherry - Friendly",
230
+ "Sonia - Warm",
231
+ "Thomas - Natural",
232
+ "Todd - Professional",
233
+ "Tony - Professional",
234
+ "Tracy - Cheerful",
235
+ "Wayne - Natural",
236
+ "Wilder - Natural",
237
+ "Wille - Natural",
238
+ "William - Friendly"
239
+ ]),
240
+ avatarStyle: e.optional(e.enum(["normal", "circle"])),
241
+ background: e.optional(e.string()),
242
+ ratio: e.optional(e.enum(["16:9", "9:16"])),
243
+ test: e.optional(e.boolean())
244
+ }), K = e.object({
245
+ type: e.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")
246
+ }).and(H), V = e.object({
247
+ provider: e.enum(["heygen"]),
248
+ options: K
249
+ }), Q = e.object({
250
+ type: e.enum(["text-generator"]),
251
+ prompt: e.string(),
252
+ model: e.enum(["gpt-3.5-turbo", "gpt-4"]),
253
+ systemPrompt: e.optional(e.string())
254
+ }), W = e.object({
255
+ type: e.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")
256
+ }).and(Q), X = e.object({
257
+ provider: e.enum(["openai"]),
258
+ options: W
259
+ }), Y = e.object({
260
+ status: e.string(),
261
+ title: e.string(),
262
+ detail: e.string()
263
+ });
264
+ e.object({
265
+ errors: e.array(Y)
266
+ });
267
+ const v = e.object({
268
+ owner: e.string(),
269
+ provider: e.enum([
270
+ "shotstack",
271
+ "elevenlabs",
272
+ "heygen",
273
+ "d-id"
274
+ ]),
275
+ type: e.enum(["text-to-speech", "text-to-avatar"]),
276
+ url: e.optional(e.string()),
277
+ status: e.enum([
278
+ "queued",
279
+ "processing",
280
+ "saving",
281
+ "done",
282
+ "failed"
283
+ ]),
284
+ created: e.string(),
285
+ updated: e.string()
286
+ }), ee = e.object({
287
+ type: e.string(),
288
+ id: e.string(),
289
+ attributes: v
290
+ });
291
+ e.object({
292
+ data: ee
293
+ });
294
+ const te = e.object({
295
+ type: e.enum(["image-to-video"]),
296
+ imageUrl: e.string(),
297
+ guidanceScale: e.optional(e.preprocess((t) => {
298
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
299
+ return typeof t == "string" ? Number(t) : t;
300
+ }, e.number())).default(1.8),
301
+ motion: e.optional(e.preprocess((t) => {
302
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
303
+ return typeof t == "string" ? Number(t) : t;
304
+ }, e.number().int())).default(127)
305
+ }), re = e.object({
306
+ type: e.enum(["text-generator"]),
307
+ prompt: e.string()
308
+ }), ne = e.object({
309
+ type: e.enum(["text-to-image"]),
310
+ prompt: e.string(),
311
+ width: e.preprocess((t) => {
312
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
313
+ return typeof t == "string" ? Number(t) : t;
314
+ }, e.number().int()),
315
+ height: e.preprocess((t) => {
316
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
317
+ return typeof t == "string" ? Number(t) : t;
318
+ }, e.number().int())
319
+ }), ie = e.object({
320
+ type: e.enum(["text-to-speech"]),
321
+ text: e.string(),
322
+ voice: e.enum([
323
+ "Hala",
324
+ "Lisa",
325
+ "Arlet",
326
+ "Hiujin",
327
+ "Zhiyu",
328
+ "Sofie",
329
+ "Laura",
330
+ "Olivia",
331
+ "Amy",
332
+ "Emma",
333
+ "Brian",
334
+ "Arthur",
335
+ "Kajal",
336
+ "Niamh",
337
+ "Aria",
338
+ "Ayanda",
339
+ "Ivy",
340
+ "Joanna",
341
+ "Kendra",
342
+ "Kimberly",
343
+ "Salli",
344
+ "Joey",
345
+ "Justin",
346
+ "Kevin",
347
+ "Matthew",
348
+ "Ruth",
349
+ "Stephen",
350
+ "Suvi",
351
+ "Léa",
352
+ "Rémi",
353
+ "Gabrielle",
354
+ "Liam",
355
+ "Vicki",
356
+ "Daniel",
357
+ "Hannah",
358
+ "Kajal",
359
+ "Bianca",
360
+ "Adriano",
361
+ "Takumi",
362
+ "Kazuha",
363
+ "Tomoko",
364
+ "Seoyeon",
365
+ "Ida",
366
+ "Ola",
367
+ "Camila",
368
+ "Vitória",
369
+ "Vitoria",
370
+ "Thiago",
371
+ "Inês",
372
+ "Ines",
373
+ "Lucia",
374
+ "Sergio",
375
+ "Mia",
376
+ "Andrés",
377
+ "Lupe",
378
+ "Pedro",
379
+ "Elin"
380
+ ]),
381
+ language: e.optional(e.enum([
382
+ "cmn-CN",
383
+ "da-DK",
384
+ "de-DE",
385
+ "en-AU",
386
+ "en-GB",
387
+ "en-IN",
388
+ "en-US",
389
+ "es-ES",
390
+ "es-MX",
391
+ "es-US",
392
+ "fr-CA",
393
+ "fr-FR",
394
+ "it-IT",
395
+ "ja-JP",
396
+ "hi-IN",
397
+ "ko-KR",
398
+ "nb-NO",
399
+ "nl-NL",
400
+ "pl-PL",
401
+ "pt-BR",
402
+ "pt-PT",
403
+ "sv-SE",
404
+ "en-NZ",
405
+ "en-ZA",
406
+ "ca-ES",
407
+ "de-AT",
408
+ "yue-CN",
409
+ "ar-AE",
410
+ "fi-FI"
411
+ ])),
412
+ newscaster: e.optional(e.boolean()).default(!1)
413
+ }), oe = e.union([
414
+ e.object({
415
+ type: e.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")
416
+ }).and(ie),
417
+ e.object({
418
+ type: e.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")
419
+ }).and(ne),
420
+ e.object({
421
+ type: e.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")
422
+ }).and(re),
423
+ e.object({
424
+ type: e.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")
425
+ }).and(te)
426
+ ]), ae = e.object({
427
+ provider: e.enum(["shotstack"]),
428
+ options: oe
429
+ }), se = e.object({
430
+ type: e.enum(["text-to-image"]),
431
+ prompt: e.string(),
432
+ engine: e.optional(e.enum([
433
+ "stable-diffusion-xl-1024-v0-9",
434
+ "stable-diffusion-xl-1024-v1-0",
435
+ "stable-diffusion-v1-6",
436
+ "stable-diffusion-512-v2-1",
437
+ "stable-diffusion-xl-beta-v2-2-2"
438
+ ])),
439
+ width: e.preprocess((t) => {
440
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
441
+ return typeof t == "string" ? Number(t) : t;
442
+ }, e.number().int()),
443
+ height: e.preprocess((t) => {
444
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
445
+ return typeof t == "string" ? Number(t) : t;
446
+ }, e.number().int()),
447
+ steps: e.optional(e.preprocess((t) => {
448
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
449
+ return typeof t == "string" ? Number(t) : t;
450
+ }, e.number().int())).default(30),
451
+ seed: e.optional(e.preprocess((t) => {
452
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
453
+ return typeof t == "string" ? Number(t) : t;
454
+ }, e.number().int())).default(0),
455
+ cfgScale: e.optional(e.preprocess((t) => {
456
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
457
+ return typeof t == "string" ? Number(t) : t;
458
+ }, e.number())).default(7),
459
+ stylePreset: e.optional(e.enum([
460
+ "3d-model",
461
+ "analog-film",
462
+ "anime",
463
+ "cinematic",
464
+ "comic-book",
465
+ "digital-art",
466
+ "enhance",
467
+ "fantasy-art",
468
+ "isometric",
469
+ "line-art",
470
+ "low-poly",
471
+ "modeling-compound",
472
+ "neon-punk",
473
+ "origami",
474
+ "photographic",
475
+ "pixel-art",
476
+ "tile-texture"
477
+ ]))
478
+ }), ue = e.object({
479
+ type: e.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")
480
+ }).and(se), le = e.object({
481
+ provider: e.enum(["stability-ai"]),
482
+ options: ue
483
+ }), pe = e.union([
484
+ e.object({
485
+ provider: e.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")
486
+ }).and(ae),
487
+ e.object({
488
+ provider: e.literal("didGeneratedAsset_DIDGeneratedAsset")
489
+ }).and(U),
490
+ e.object({
491
+ provider: e.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")
492
+ }).and(M),
493
+ e.object({
494
+ provider: e.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")
495
+ }).and(V),
496
+ e.object({
497
+ provider: e.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")
498
+ }).and(X),
499
+ e.object({
500
+ provider: e.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")
501
+ }).and(le)
502
+ ]), n = e.object({
503
+ top: e.optional(e.preprocess((t) => {
504
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
505
+ return typeof t == "string" ? Number(t) : t;
506
+ }, e.number().gte(0).lte(1))),
507
+ bottom: e.optional(e.preprocess((t) => {
508
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
509
+ return typeof t == "string" ? Number(t) : t;
510
+ }, e.number().gte(0).lte(1))),
511
+ left: e.optional(e.preprocess((t) => {
512
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
513
+ return typeof t == "string" ? Number(t) : t;
514
+ }, e.number().gte(0).lte(1))),
515
+ right: e.optional(e.preprocess((t) => {
516
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
517
+ return typeof t == "string" ? Number(t) : t;
518
+ }, e.number().gte(0).lte(1)))
519
+ }), Kt = n, de = e.object({
520
+ bucket: e.string(),
521
+ prefix: e.optional(e.string()),
522
+ filename: e.optional(e.string())
523
+ }), fe = e.object({
524
+ provider: e.string().default("google-cloud-storage"),
525
+ options: e.optional(de)
526
+ }), ce = e.object({
527
+ folderId: e.string(),
528
+ filename: e.optional(e.string())
529
+ }), me = e.object({
530
+ provider: e.string().default("google-drive"),
531
+ options: ce
532
+ }), ge = e.object({
533
+ playbackPolicy: e.optional(e.array(e.enum(["public", "signed"]))),
534
+ passthrough: e.optional(e.string().max(255))
535
+ }), ye = e.object({
536
+ provider: e.string().default("mux"),
537
+ options: e.optional(ge)
538
+ }), be = e.object({
539
+ region: e.string(),
540
+ bucket: e.string(),
541
+ prefix: e.optional(e.string()),
542
+ filename: e.optional(e.string()),
543
+ acl: e.optional(e.string())
544
+ }), he = e.object({
545
+ provider: e.string().default("s3"),
546
+ options: e.optional(be)
547
+ }), Ae = e.object({
548
+ provider: e.string().default("shotstack"),
549
+ exclude: e.optional(e.boolean())
550
+ }), Se = e.object({
551
+ title: e.optional(e.string().max(150)),
552
+ privacyLevel: e.optional(e.enum([
553
+ "public",
554
+ "friends",
555
+ "private"
556
+ ])),
557
+ disableDuet: e.optional(e.boolean()).default(!1),
558
+ disableStitch: e.optional(e.boolean()).default(!1),
559
+ disableComment: e.optional(e.boolean()).default(!1)
560
+ }), je = e.object({
561
+ provider: e.string().default("tiktok"),
562
+ options: e.optional(Se)
563
+ }), Ne = e.object({
564
+ view: e.optional(e.enum([
565
+ "anybody",
566
+ "nobody",
567
+ "contacts",
568
+ "password",
569
+ "unlisted"
570
+ ])),
571
+ embed: e.optional(e.enum([
572
+ "public",
573
+ "private",
574
+ "whitelist"
575
+ ])),
576
+ comments: e.optional(e.enum([
577
+ "anybody",
578
+ "nobody",
579
+ "contacts"
580
+ ]))
581
+ }), we = e.object({
582
+ name: e.optional(e.string()),
583
+ description: e.optional(e.string()),
584
+ privacy: e.optional(Ne),
585
+ folderUri: e.optional(e.string())
586
+ }), xe = e.object({
587
+ provider: e.string().default("vimeo"),
588
+ options: e.optional(we)
589
+ }), o = e.union([
590
+ e.object({
591
+ destinations: e.optional(e.literal("shotstackDestination_ShotstackDestination"))
592
+ }).and(Ae),
593
+ e.object({
594
+ destinations: e.optional(e.literal("muxDestination_MuxDestination"))
595
+ }).and(ye),
596
+ e.object({
597
+ destinations: e.optional(e.literal("s3Destination_S3Destination"))
598
+ }).and(he),
599
+ e.object({
600
+ destinations: e.optional(e.literal("googleCloudStorageDestination_GoogleCloudStorageDestination"))
601
+ }).and(fe),
602
+ e.object({
603
+ destinations: e.optional(e.literal("googleDriveDestination_GoogleDriveDestination"))
604
+ }).and(me),
605
+ e.object({
606
+ destinations: e.optional(e.literal("vimeoDestination_VimeoDestination"))
607
+ }).and(xe),
608
+ e.object({
609
+ destinations: e.optional(e.literal("tiktokDestination_TiktokDestination"))
610
+ }).and(je)
611
+ ]), Te = o, ke = e.object({
612
+ horizontal: e.optional(e.boolean()),
613
+ vertical: e.optional(e.boolean())
614
+ }), Fe = e.object({
615
+ src: e.string()
616
+ }), c = e.object({
617
+ type: e.enum(["html"]),
618
+ html: e.string(),
619
+ css: e.optional(e.string()),
620
+ width: e.optional(e.preprocess((t) => {
621
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
622
+ return typeof t == "string" ? Number(t) : t;
623
+ }, e.number().int())),
624
+ height: e.optional(e.preprocess((t) => {
625
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
626
+ return typeof t == "string" ? Number(t) : t;
627
+ }, e.number().int())),
628
+ background: e.optional(e.string()),
629
+ position: e.optional(e.enum([
630
+ "top",
631
+ "topRight",
632
+ "right",
633
+ "bottomRight",
634
+ "bottom",
635
+ "bottomLeft",
636
+ "left",
637
+ "topLeft",
638
+ "center"
639
+ ]))
640
+ }), Vt = c, m = e.object({
641
+ type: e.enum(["image"]),
642
+ src: e.string(),
643
+ crop: e.optional(n)
644
+ }), Qt = m, Re = e.object({
645
+ type: e.optional(e.enum(["image-to-video"])),
646
+ src: e.optional(e.string()),
647
+ prompt: e.optional(e.string()),
648
+ aspectRatio: e.optional(e.enum([
649
+ "1:1",
650
+ "4:3",
651
+ "16:9",
652
+ "9:16",
653
+ "3:4",
654
+ "21:9",
655
+ "9:21"
656
+ ])),
657
+ speed: e.optional(e.preprocess((t) => {
658
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
659
+ return typeof t == "string" ? Number(t) : t;
660
+ }, e.number().gte(0).lte(10))),
661
+ crop: e.optional(n)
662
+ }), Oe = e.object({
663
+ preset: e.enum([
664
+ "conference",
665
+ "interview",
666
+ "lecture",
667
+ "meeting",
668
+ "mobile_phone",
669
+ "music",
670
+ "podcast",
671
+ "studio",
672
+ "voice_over"
673
+ ])
674
+ }), De = e.object({
675
+ provider: e.string().default("dolby"),
676
+ options: Oe
677
+ }), Le = e.object({
678
+ enhancement: e.literal("dolbyEnhancement_DolbyEnhancement")
679
+ }).and(De), Ie = e.object({
680
+ audio: e.optional(Le)
681
+ }), Ge = e.object({
682
+ status: e.string(),
683
+ title: e.string(),
684
+ detail: e.string()
685
+ });
686
+ e.object({
687
+ errors: e.array(Ge)
688
+ });
689
+ const Ce = e.object({
690
+ type: e.string(),
691
+ id: e.string()
692
+ });
693
+ e.object({
694
+ data: Ce
695
+ });
696
+ const ze = e.object({
697
+ id: e.string(),
698
+ url: e.string(),
699
+ expires: e.string()
700
+ }), Be = e.object({
701
+ type: e.string(),
702
+ id: e.string(),
703
+ attributes: ze
704
+ });
705
+ e.object({
706
+ data: Be
707
+ });
708
+ const Ee = e.object({
709
+ speed: e.optional(e.preprocess((t) => {
710
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
711
+ return typeof t == "string" ? Number(t) : t;
712
+ }, e.number().gte(0).lte(10))),
713
+ preservePitch: e.optional(e.boolean())
714
+ }), qe = e.object({
715
+ format: e.optional(e.enum(["srt", "vtt"]))
716
+ }), g = e.object({
717
+ type: e.enum(["luma"]),
718
+ src: e.string(),
719
+ trim: e.optional(e.preprocess((t) => {
720
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
721
+ return typeof t == "string" ? Number(t) : t;
722
+ }, e.number()))
723
+ }), Wt = g, y = e.object({
724
+ find: e.string(),
725
+ replace: e.unknown()
726
+ }), Pe = e.object({
727
+ capture: e.preprocess((t) => {
728
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
729
+ return typeof t == "string" ? Number(t) : t;
730
+ }, e.number())
731
+ }), $e = e.object({
732
+ start: e.optional(e.preprocess((t) => {
733
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
734
+ return typeof t == "string" ? Number(t) : t;
735
+ }, e.number().gte(0))),
736
+ length: e.optional(e.preprocess((t) => {
737
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
738
+ return typeof t == "string" ? Number(t) : t;
739
+ }, e.number().gte(0)))
740
+ }), _e = e.object({
741
+ id: e.string(),
742
+ owner: e.string(),
743
+ region: e.optional(e.string()),
744
+ renderId: e.optional(e.string()),
745
+ providerId: e.optional(e.string()),
746
+ filename: e.optional(e.string()),
747
+ url: e.optional(e.string()),
748
+ status: e.enum([
749
+ "importing",
750
+ "ready",
751
+ "failed",
752
+ "deleted"
753
+ ]),
754
+ created: e.optional(e.string()),
755
+ updated: e.optional(e.string())
756
+ }), b = e.object({
757
+ type: e.string(),
758
+ attributes: _e
759
+ });
760
+ e.object({
761
+ data: e.array(b)
762
+ });
763
+ e.object({
764
+ data: b
765
+ });
766
+ e.object({
767
+ success: e.boolean(),
768
+ message: e.string(),
769
+ response: e.record(e.string(), e.unknown())
770
+ });
771
+ const Ue = e.object({
772
+ message: e.string(),
773
+ id: e.string()
774
+ });
775
+ e.object({
776
+ success: e.boolean(),
777
+ message: e.string(),
778
+ response: Ue
779
+ });
780
+ const Ze = e.object({
781
+ id: e.string(),
782
+ name: e.string(),
783
+ created: e.optional(e.string()),
784
+ updated: e.optional(e.string())
785
+ }), Je = e.object({
786
+ owner: e.string(),
787
+ templates: e.array(Ze)
788
+ });
789
+ e.object({
790
+ success: e.boolean(),
791
+ message: e.string(),
792
+ response: Je
793
+ });
794
+ const Me = e.object({
795
+ message: e.string(),
796
+ id: e.string()
797
+ });
798
+ e.object({
799
+ success: e.boolean(),
800
+ message: e.string(),
801
+ response: Me
802
+ });
803
+ const He = e.object({
804
+ horizontal: e.optional(e.enum([
805
+ "left",
806
+ "center",
807
+ "right"
808
+ ])),
809
+ vertical: e.optional(e.enum([
810
+ "top",
811
+ "middle",
812
+ "bottom"
813
+ ]))
814
+ }), Ke = e.object({
815
+ preset: e.enum([
816
+ "fadeIn",
817
+ "slideIn",
818
+ "typewriter",
819
+ "ascend",
820
+ "shift",
821
+ "movingLetters"
822
+ ]),
823
+ speed: e.optional(e.preprocess((t) => {
824
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
825
+ return typeof t == "string" ? Number(t) : t;
826
+ }, e.number().gte(0.1).lte(10))).default(1),
827
+ duration: e.optional(e.preprocess((t) => {
828
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
829
+ return typeof t == "string" ? Number(t) : t;
830
+ }, e.number().gte(0.1).lte(30))),
831
+ style: e.optional(e.enum(["character", "word"])),
832
+ direction: e.optional(e.enum([
833
+ "left",
834
+ "right",
835
+ "up",
836
+ "down"
837
+ ]))
838
+ }), Ve = e.object({
839
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
840
+ opacity: e.optional(e.preprocess((t) => {
841
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
842
+ return typeof t == "string" ? Number(t) : t;
843
+ }, e.number().gte(0).lte(1))).default(1),
844
+ borderRadius: e.optional(e.preprocess((t) => {
845
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
846
+ return typeof t == "string" ? Number(t) : t;
847
+ }, e.number().gte(0))).default(0)
848
+ }), Qe = e.object({
849
+ width: e.optional(e.preprocess((t) => {
850
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
851
+ return typeof t == "string" ? Number(t) : t;
852
+ }, e.number().gte(0))).default(0),
853
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
854
+ opacity: e.optional(e.preprocess((t) => {
855
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
856
+ return typeof t == "string" ? Number(t) : t;
857
+ }, e.number().gte(0).lte(1))).default(1),
858
+ radius: e.optional(e.preprocess((t) => {
859
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
860
+ return typeof t == "string" ? Number(t) : t;
861
+ }, e.number().gte(0))).default(0)
862
+ }), We = e.object({
863
+ type: e.optional(e.enum(["linear", "radial"])),
864
+ angle: e.optional(e.preprocess((t) => {
865
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
866
+ return typeof t == "string" ? Number(t) : t;
867
+ }, e.number().gte(0).lte(360))).default(0),
868
+ stops: e.array(e.object({
869
+ offset: e.preprocess((t) => {
870
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
871
+ return typeof t == "string" ? Number(t) : t;
872
+ }, e.number().gte(0).lte(1)),
873
+ color: e.string().regex(/^#[A-Fa-f0-9]{6}$/)
874
+ })).min(2)
875
+ }), Xe = e.object({
876
+ top: e.optional(e.preprocess((t) => {
877
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
878
+ return typeof t == "string" ? Number(t) : t;
879
+ }, e.number().gte(0))).default(0),
880
+ right: e.optional(e.preprocess((t) => {
881
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
882
+ return typeof t == "string" ? Number(t) : t;
883
+ }, e.number().gte(0))).default(0),
884
+ bottom: e.optional(e.preprocess((t) => {
885
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
886
+ return typeof t == "string" ? Number(t) : t;
887
+ }, e.number().gte(0))).default(0),
888
+ left: e.optional(e.preprocess((t) => {
889
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
890
+ return typeof t == "string" ? Number(t) : t;
891
+ }, e.number().gte(0))).default(0)
892
+ }), Ye = e.object({
893
+ offsetX: e.optional(e.preprocess((t) => {
894
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
895
+ return typeof t == "string" ? Number(t) : t;
896
+ }, e.number())).default(0),
897
+ offsetY: e.optional(e.preprocess((t) => {
898
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
899
+ return typeof t == "string" ? Number(t) : t;
900
+ }, e.number())).default(0),
901
+ blur: e.optional(e.preprocess((t) => {
902
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
903
+ return typeof t == "string" ? Number(t) : t;
904
+ }, e.number().gte(0))).default(0),
905
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
906
+ opacity: e.optional(e.preprocess((t) => {
907
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
908
+ return typeof t == "string" ? Number(t) : t;
909
+ }, e.number().gte(0).lte(1))).default(0.5)
910
+ }), ve = e.object({
911
+ width: e.optional(e.preprocess((t) => {
912
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
913
+ return typeof t == "string" ? Number(t) : t;
914
+ }, e.number().gte(0))).default(0),
915
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
916
+ opacity: e.optional(e.preprocess((t) => {
917
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
918
+ return typeof t == "string" ? Number(t) : t;
919
+ }, e.number().gte(0).lte(1))).default(1)
920
+ }), et = e.object({
921
+ family: e.optional(e.string()).default("Open Sans"),
922
+ size: e.optional(e.preprocess((t) => {
923
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
924
+ return typeof t == "string" ? Number(t) : t;
925
+ }, e.number().int().gte(1).lte(500))).default(24),
926
+ weight: e.optional(e.unknown()).default("400"),
927
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
928
+ opacity: e.optional(e.preprocess((t) => {
929
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
930
+ return typeof t == "string" ? Number(t) : t;
931
+ }, e.number().gte(0).lte(1))).default(1),
932
+ background: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
933
+ stroke: e.optional(ve)
934
+ }), tt = e.object({
935
+ letterSpacing: e.optional(e.preprocess((t) => {
936
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
937
+ return typeof t == "string" ? Number(t) : t;
938
+ }, e.number())).default(0),
939
+ lineHeight: e.optional(e.preprocess((t) => {
940
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
941
+ return typeof t == "string" ? Number(t) : t;
942
+ }, e.number().gte(0).lte(10))).default(1.2),
943
+ textTransform: e.optional(e.enum([
944
+ "none",
945
+ "uppercase",
946
+ "lowercase",
947
+ "capitalize"
948
+ ])),
949
+ textDecoration: e.optional(e.enum([
950
+ "none",
951
+ "underline",
952
+ "line-through"
953
+ ])),
954
+ gradient: e.optional(We)
955
+ }), h = e.object({
956
+ type: e.enum(["rich-text"]),
957
+ text: e.string().max(5e3),
958
+ font: e.optional(et),
959
+ style: e.optional(tt),
960
+ shadow: e.optional(Ye),
961
+ background: e.optional(Ve),
962
+ border: e.optional(Qe),
963
+ padding: e.optional(e.union([
964
+ e.preprocess((t) => {
965
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
966
+ return typeof t == "string" ? Number(t) : t;
967
+ }, e.number().gte(0)),
968
+ Xe
969
+ ])),
970
+ align: e.optional(He),
971
+ animation: e.optional(Ke)
972
+ }), Xt = h, rt = e.object({
973
+ id: e.optional(e.string()),
974
+ owner: e.optional(e.string()),
975
+ status: e.optional(e.enum(["queued", "failed"])),
976
+ created: e.optional(e.string())
977
+ }), nt = e.object({
978
+ type: e.optional(e.string()),
979
+ attributes: e.optional(rt)
980
+ });
981
+ e.object({
982
+ data: nt
983
+ });
984
+ const it = e.object({
985
+ url: e.string(),
986
+ id: e.string(),
987
+ destinations: e.array(o)
988
+ }), A = e.object({
989
+ type: e.enum(["shape"]),
990
+ shape: e.enum([
991
+ "rectangle",
992
+ "circle",
993
+ "line"
994
+ ]),
995
+ width: e.optional(e.preprocess((t) => {
996
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
997
+ return typeof t == "string" ? Number(t) : t;
998
+ }, e.number().int())),
999
+ height: e.optional(e.preprocess((t) => {
1000
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1001
+ return typeof t == "string" ? Number(t) : t;
1002
+ }, e.number().int())),
1003
+ fill: e.optional(e.object({
1004
+ color: e.optional(e.string()),
1005
+ opacity: e.optional(e.preprocess((t) => {
1006
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1007
+ return typeof t == "string" ? Number(t) : t;
1008
+ }, e.number()))
1009
+ })),
1010
+ stroke: e.optional(e.object({
1011
+ color: e.optional(e.string()),
1012
+ width: e.optional(e.preprocess((t) => {
1013
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1014
+ return typeof t == "string" ? Number(t) : t;
1015
+ }, e.number()))
1016
+ })),
1017
+ rectangle: e.optional(e.object({
1018
+ width: e.preprocess((t) => {
1019
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1020
+ return typeof t == "string" ? Number(t) : t;
1021
+ }, e.number().int()),
1022
+ height: e.preprocess((t) => {
1023
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1024
+ return typeof t == "string" ? Number(t) : t;
1025
+ }, e.number().int()),
1026
+ cornerRadius: e.optional(e.preprocess((t) => {
1027
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1028
+ return typeof t == "string" ? Number(t) : t;
1029
+ }, e.number().int()))
1030
+ })),
1031
+ circle: e.optional(e.object({
1032
+ radius: e.preprocess((t) => {
1033
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1034
+ return typeof t == "string" ? Number(t) : t;
1035
+ }, e.number().int())
1036
+ })),
1037
+ line: e.optional(e.object({
1038
+ length: e.preprocess((t) => {
1039
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1040
+ return typeof t == "string" ? Number(t) : t;
1041
+ }, e.number().int()),
1042
+ thickness: e.preprocess((t) => {
1043
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1044
+ return typeof t == "string" ? Number(t) : t;
1045
+ }, e.number().int())
1046
+ }))
1047
+ }), Yt = A, l = e.object({
1048
+ width: e.optional(e.preprocess((t) => {
1049
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1050
+ return typeof t == "string" ? Number(t) : t;
1051
+ }, e.number().int().gte(1).lte(4096))),
1052
+ height: e.optional(e.preprocess((t) => {
1053
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1054
+ return typeof t == "string" ? Number(t) : t;
1055
+ }, e.number().int().gte(1).lte(4096)))
1056
+ }), ot = l, S = e.object({
1057
+ format: e.optional(e.enum([
1058
+ "mp4",
1059
+ "webm",
1060
+ "mov",
1061
+ "avi",
1062
+ "mkv",
1063
+ "ogv",
1064
+ "wmv",
1065
+ "avif",
1066
+ "gif",
1067
+ "mp3",
1068
+ "wav",
1069
+ "jpg",
1070
+ "png",
1071
+ "webp",
1072
+ "tif"
1073
+ ])),
1074
+ size: e.optional(l),
1075
+ fit: e.optional(e.enum([
1076
+ "cover",
1077
+ "contain",
1078
+ "crop"
1079
+ ])),
1080
+ resolution: e.optional(e.enum([
1081
+ "preview",
1082
+ "mobile",
1083
+ "sd",
1084
+ "hd",
1085
+ "fhd"
1086
+ ])),
1087
+ quality: e.optional(e.preprocess((t) => {
1088
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1089
+ return typeof t == "string" ? Number(t) : t;
1090
+ }, e.number().int().gte(1).lte(100))),
1091
+ fps: e.optional(e.union([
1092
+ e.literal(12),
1093
+ e.literal(15),
1094
+ e.literal(23.976),
1095
+ e.literal(24),
1096
+ e.literal(25),
1097
+ e.literal(29.97),
1098
+ e.literal(30),
1099
+ e.literal(48),
1100
+ e.literal(50),
1101
+ e.literal(59.94),
1102
+ e.literal(60)
1103
+ ])),
1104
+ speed: e.optional(Ee),
1105
+ keyframeInterval: e.optional(e.preprocess((t) => {
1106
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1107
+ return typeof t == "string" ? Number(t) : t;
1108
+ }, e.number().int().gte(1).lte(300))),
1109
+ fixOffset: e.optional(e.boolean()),
1110
+ fixRotation: e.optional(e.boolean()),
1111
+ enhance: e.optional(Ie),
1112
+ filename: e.optional(e.string())
1113
+ }), at = e.object({
1114
+ renditions: e.optional(e.array(S)),
1115
+ transcription: e.optional(qe)
1116
+ }), st = e.object({
1117
+ id: e.string(),
1118
+ status: e.optional(e.enum([
1119
+ "queued",
1120
+ "importing",
1121
+ "ready",
1122
+ "failed",
1123
+ "deleted",
1124
+ "overwritten"
1125
+ ])),
1126
+ url: e.optional(e.string()),
1127
+ executionTime: e.optional(e.preprocess((t) => {
1128
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1129
+ return typeof t == "string" ? Number(t) : t;
1130
+ }, e.number())),
1131
+ transformation: e.optional(S),
1132
+ width: e.optional(e.preprocess((t) => {
1133
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1134
+ return typeof t == "string" ? Number(t) : t;
1135
+ }, e.number().int())),
1136
+ height: e.optional(e.preprocess((t) => {
1137
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1138
+ return typeof t == "string" ? Number(t) : t;
1139
+ }, e.number().int())),
1140
+ duration: e.optional(e.preprocess((t) => {
1141
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1142
+ return typeof t == "string" ? Number(t) : t;
1143
+ }, e.number())),
1144
+ fps: e.optional(e.preprocess((t) => {
1145
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1146
+ return typeof t == "string" ? Number(t) : t;
1147
+ }, e.number()))
1148
+ }), ut = e.object({
1149
+ renditions: e.optional(e.array(st))
1150
+ }), lt = e.object({
1151
+ id: e.string(),
1152
+ owner: e.string(),
1153
+ input: e.optional(e.string()),
1154
+ source: e.optional(e.string()),
1155
+ status: e.optional(e.enum([
1156
+ "queued",
1157
+ "importing",
1158
+ "ready",
1159
+ "failed",
1160
+ "deleted",
1161
+ "overwritten"
1162
+ ])),
1163
+ outputs: e.optional(ut),
1164
+ width: e.optional(e.preprocess((t) => {
1165
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1166
+ return typeof t == "string" ? Number(t) : t;
1167
+ }, e.number().int())),
1168
+ height: e.optional(e.preprocess((t) => {
1169
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1170
+ return typeof t == "string" ? Number(t) : t;
1171
+ }, e.number().int())),
1172
+ duration: e.optional(e.preprocess((t) => {
1173
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1174
+ return typeof t == "string" ? Number(t) : t;
1175
+ }, e.number())),
1176
+ fps: e.optional(e.preprocess((t) => {
1177
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1178
+ return typeof t == "string" ? Number(t) : t;
1179
+ }, e.number())),
1180
+ created: e.optional(e.string()),
1181
+ updated: e.optional(e.string())
1182
+ }), j = e.object({
1183
+ type: e.string(),
1184
+ id: e.string(),
1185
+ attributes: lt
1186
+ });
1187
+ e.object({
1188
+ data: e.array(j)
1189
+ });
1190
+ e.object({
1191
+ data: j
1192
+ });
1193
+ const pt = e.object({
1194
+ url: e.optional(e.string()),
1195
+ outputs: e.optional(at),
1196
+ destinations: e.optional(o),
1197
+ callback: e.optional(e.string())
1198
+ }), dt = e.object({
1199
+ src: e.string(),
1200
+ effect: e.optional(e.enum([
1201
+ "fadeIn",
1202
+ "fadeOut",
1203
+ "fadeInFadeOut"
1204
+ ])),
1205
+ volume: e.optional(e.preprocess((t) => {
1206
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1207
+ return typeof t == "string" ? Number(t) : t;
1208
+ }, e.number()))
1209
+ }), N = e.object({
1210
+ offset: e.preprocess((t) => {
1211
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1212
+ return typeof t == "string" ? Number(t) : t;
1213
+ }, e.number().gte(0).lte(1)),
1214
+ color: e.string().regex(/^#[A-Fa-f0-9]{6}$/)
1215
+ }), ft = e.object({
1216
+ type: e.enum(["linear"]),
1217
+ angle: e.optional(e.preprocess((t) => {
1218
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1219
+ return typeof t == "string" ? Number(t) : t;
1220
+ }, e.number().gte(0).lte(360))).default(0),
1221
+ stops: e.array(N).min(2),
1222
+ opacity: e.optional(e.preprocess((t) => {
1223
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1224
+ return typeof t == "string" ? Number(t) : t;
1225
+ }, e.number().gte(0).lte(1))).default(1)
1226
+ }), ct = e.object({
1227
+ type: e.enum(["radial"]),
1228
+ stops: e.array(N).min(2),
1229
+ opacity: e.optional(e.preprocess((t) => {
1230
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1231
+ return typeof t == "string" ? Number(t) : t;
1232
+ }, e.number().gte(0).lte(1))).default(1)
1233
+ }), mt = e.object({
1234
+ offsetX: e.optional(e.preprocess((t) => {
1235
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1236
+ return typeof t == "string" ? Number(t) : t;
1237
+ }, e.number())).default(0),
1238
+ offsetY: e.optional(e.preprocess((t) => {
1239
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1240
+ return typeof t == "string" ? Number(t) : t;
1241
+ }, e.number())).default(0),
1242
+ blur: e.optional(e.preprocess((t) => {
1243
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1244
+ return typeof t == "string" ? Number(t) : t;
1245
+ }, e.number().gte(0))).default(0),
1246
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1247
+ opacity: e.optional(e.preprocess((t) => {
1248
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1249
+ return typeof t == "string" ? Number(t) : t;
1250
+ }, e.number().gte(0).lte(1))).default(0.5)
1251
+ }), gt = e.object({
1252
+ type: e.enum(["solid"]),
1253
+ color: e.string().regex(/^#[A-Fa-f0-9]{6}$/).default("#000000"),
1254
+ opacity: e.optional(e.preprocess((t) => {
1255
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1256
+ return typeof t == "string" ? Number(t) : t;
1257
+ }, e.number().gte(0).lte(1))).default(1)
1258
+ }), yt = e.discriminatedUnion("type", [
1259
+ gt,
1260
+ ft,
1261
+ ct
1262
+ ]), bt = e.object({
1263
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1264
+ width: e.optional(e.preprocess((t) => {
1265
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1266
+ return typeof t == "string" ? Number(t) : t;
1267
+ }, e.number().gte(0).lte(100))).default(1),
1268
+ opacity: e.optional(e.preprocess((t) => {
1269
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1270
+ return typeof t == "string" ? Number(t) : t;
1271
+ }, e.number().gte(0).lte(1))).default(1),
1272
+ lineCap: e.optional(e.enum([
1273
+ "butt",
1274
+ "round",
1275
+ "square"
1276
+ ])),
1277
+ lineJoin: e.optional(e.enum([
1278
+ "miter",
1279
+ "round",
1280
+ "bevel"
1281
+ ])),
1282
+ dashArray: e.optional(e.array(e.preprocess((t) => {
1283
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1284
+ return typeof t == "string" ? Number(t) : t;
1285
+ }, e.number().gte(0)))),
1286
+ dashOffset: e.optional(e.preprocess((t) => {
1287
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1288
+ return typeof t == "string" ? Number(t) : t;
1289
+ }, e.number())).default(0)
1290
+ }), ht = e.object({
1291
+ x: e.optional(e.preprocess((t) => {
1292
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1293
+ return typeof t == "string" ? Number(t) : t;
1294
+ }, e.number())).default(0),
1295
+ y: e.optional(e.preprocess((t) => {
1296
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1297
+ return typeof t == "string" ? Number(t) : t;
1298
+ }, e.number())).default(0),
1299
+ rotation: e.optional(e.preprocess((t) => {
1300
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1301
+ return typeof t == "string" ? Number(t) : t;
1302
+ }, e.number().gte(-360).lte(360))).default(0),
1303
+ scale: e.optional(e.preprocess((t) => {
1304
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1305
+ return typeof t == "string" ? Number(t) : t;
1306
+ }, e.number().gte(0.01).lte(100))).default(1),
1307
+ originX: e.optional(e.preprocess((t) => {
1308
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1309
+ return typeof t == "string" ? Number(t) : t;
1310
+ }, e.number().gte(0).lte(1))).default(0.5),
1311
+ originY: e.optional(e.preprocess((t) => {
1312
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1313
+ return typeof t == "string" ? Number(t) : t;
1314
+ }, e.number().gte(0).lte(1))).default(0.5)
1315
+ }), At = e.object({
1316
+ type: e.enum(["arrow"]),
1317
+ length: e.preprocess((t) => {
1318
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1319
+ return typeof t == "string" ? Number(t) : t;
1320
+ }, e.number().gte(1).lte(4096)),
1321
+ headWidth: e.preprocess((t) => {
1322
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1323
+ return typeof t == "string" ? Number(t) : t;
1324
+ }, e.number().gte(1).lte(1e3)),
1325
+ headLength: e.preprocess((t) => {
1326
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1327
+ return typeof t == "string" ? Number(t) : t;
1328
+ }, e.number().gte(1).lte(1e3)),
1329
+ shaftWidth: e.preprocess((t) => {
1330
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1331
+ return typeof t == "string" ? Number(t) : t;
1332
+ }, e.number().gte(1).lte(1e3))
1333
+ }), St = e.object({
1334
+ type: e.enum(["circle"]),
1335
+ radius: e.preprocess((t) => {
1336
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1337
+ return typeof t == "string" ? Number(t) : t;
1338
+ }, e.number().gte(1).lte(2048))
1339
+ }), jt = e.object({
1340
+ type: e.enum(["cross"]),
1341
+ width: e.preprocess((t) => {
1342
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1343
+ return typeof t == "string" ? Number(t) : t;
1344
+ }, e.number().gte(1).lte(4096)),
1345
+ height: e.preprocess((t) => {
1346
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1347
+ return typeof t == "string" ? Number(t) : t;
1348
+ }, e.number().gte(1).lte(4096)),
1349
+ thickness: e.preprocess((t) => {
1350
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1351
+ return typeof t == "string" ? Number(t) : t;
1352
+ }, e.number().gte(1).lte(500))
1353
+ }), Nt = e.object({
1354
+ type: e.enum(["ellipse"]),
1355
+ radiusX: e.preprocess((t) => {
1356
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1357
+ return typeof t == "string" ? Number(t) : t;
1358
+ }, e.number().gte(1).lte(2048)),
1359
+ radiusY: e.preprocess((t) => {
1360
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1361
+ return typeof t == "string" ? Number(t) : t;
1362
+ }, e.number().gte(1).lte(2048))
1363
+ }), wt = e.object({
1364
+ type: e.enum(["heart"]),
1365
+ size: e.preprocess((t) => {
1366
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1367
+ return typeof t == "string" ? Number(t) : t;
1368
+ }, e.number().gte(1).lte(4096))
1369
+ }), xt = e.object({
1370
+ type: e.enum(["line"]),
1371
+ length: e.preprocess((t) => {
1372
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1373
+ return typeof t == "string" ? Number(t) : t;
1374
+ }, e.number().gte(1).lte(4096)),
1375
+ thickness: e.preprocess((t) => {
1376
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1377
+ return typeof t == "string" ? Number(t) : t;
1378
+ }, e.number().gte(1).lte(500))
1379
+ }), Tt = e.object({
1380
+ type: e.enum(["path"]),
1381
+ d: e.string().min(1).max(1e5)
1382
+ }), kt = e.object({
1383
+ type: e.enum(["polygon"]),
1384
+ sides: e.preprocess((t) => {
1385
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1386
+ return typeof t == "string" ? Number(t) : t;
1387
+ }, e.number().int().gte(3).lte(100)),
1388
+ radius: e.preprocess((t) => {
1389
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1390
+ return typeof t == "string" ? Number(t) : t;
1391
+ }, e.number().gte(1).lte(2048))
1392
+ }), Ft = e.object({
1393
+ type: e.enum(["rectangle"]),
1394
+ width: e.preprocess((t) => {
1395
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1396
+ return typeof t == "string" ? Number(t) : t;
1397
+ }, e.number().gte(1).lte(4096)),
1398
+ height: e.preprocess((t) => {
1399
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1400
+ return typeof t == "string" ? Number(t) : t;
1401
+ }, e.number().gte(1).lte(4096)),
1402
+ cornerRadius: e.optional(e.preprocess((t) => {
1403
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1404
+ return typeof t == "string" ? Number(t) : t;
1405
+ }, e.number().gte(0).lte(2048))).default(0)
1406
+ }), Rt = e.object({
1407
+ type: e.enum(["ring"]),
1408
+ outerRadius: e.preprocess((t) => {
1409
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1410
+ return typeof t == "string" ? Number(t) : t;
1411
+ }, e.number().gte(1).lte(2048)),
1412
+ innerRadius: e.preprocess((t) => {
1413
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1414
+ return typeof t == "string" ? Number(t) : t;
1415
+ }, e.number().gte(0).lte(2048))
1416
+ }), Ot = e.object({
1417
+ type: e.enum(["star"]),
1418
+ points: e.preprocess((t) => {
1419
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1420
+ return typeof t == "string" ? Number(t) : t;
1421
+ }, e.number().int().gte(3).lte(100)),
1422
+ outerRadius: e.preprocess((t) => {
1423
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1424
+ return typeof t == "string" ? Number(t) : t;
1425
+ }, e.number().gte(1).lte(2048)),
1426
+ innerRadius: e.preprocess((t) => {
1427
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1428
+ return typeof t == "string" ? Number(t) : t;
1429
+ }, e.number().gte(1).lte(2048))
1430
+ }), Dt = e.discriminatedUnion("type", [
1431
+ Ft,
1432
+ St,
1433
+ Nt,
1434
+ xt,
345
1435
  kt,
346
1436
  Ot,
1437
+ At,
1438
+ wt,
1439
+ jt,
1440
+ Rt,
347
1441
  Tt
348
- ]), Rt = t.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"], {
349
- errorMap: () => ({ message: "Must be one of mp4, gif, mp3, jpg, png, bmp" })
350
- }), wt = [12, 15, 23.976, 24, 25, 29.97, 30, 48, 50, 59.94, 60], Et = t.number().refine((e) => wt.includes(e), {
351
- message: "Must be one of 12, 15, 23.976, 24, 25, 29.97, 30, 48, 50, 59.94, 60"
352
- }), Pt = t.object({
353
- width: t.number({ message: "Width must be a number" }).int({ message: "Width must be an integer" }).min(1, { message: "Width must be at least 1" }).max(3840, { message: "Width must be at most 3840" }),
354
- height: t.number({ message: "Height must be a number" }).int({ message: "Height must be an integer" }).min(1, { message: "Height must be at least 1" }).max(3840, { message: "Height must be at most 3840" })
355
- }).strict(), zt = t.object({
356
- size: Pt,
357
- fps: Et.optional(),
358
- format: Rt,
359
- destinations: t.array(Ft).optional()
360
- }).strict(), Lt = t.object({
361
- find: t.string().min(1),
362
- replace: t.string()
363
- }), Dt = t.object({
364
- timeline: At,
365
- output: zt,
366
- merge: t.array(Lt).optional()
367
- }).strict();
1442
+ ]), Lt = e.object({
1443
+ type: e.enum(["svg"]),
1444
+ src: e.optional(e.string().min(1).max(5e5)),
1445
+ shape: e.optional(Dt),
1446
+ fill: e.optional(yt),
1447
+ stroke: e.optional(bt),
1448
+ shadow: e.optional(mt),
1449
+ transform: e.optional(ht),
1450
+ opacity: e.optional(e.preprocess((t) => {
1451
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1452
+ return typeof t == "string" ? Number(t) : t;
1453
+ }, e.preprocess((t) => {
1454
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1455
+ return typeof t == "string" ? Number(t) : t;
1456
+ }, e.number().gte(0).lte(1)))).default(1),
1457
+ width: e.optional(e.preprocess((t) => {
1458
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1459
+ return typeof t == "string" ? Number(t) : t;
1460
+ }, e.preprocess((t) => {
1461
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1462
+ return typeof t == "string" ? Number(t) : t;
1463
+ }, e.number().int().gte(1).lte(4096)))),
1464
+ height: e.optional(e.preprocess((t) => {
1465
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1466
+ return typeof t == "string" ? Number(t) : t;
1467
+ }, e.preprocess((t) => {
1468
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1469
+ return typeof t == "string" ? Number(t) : t;
1470
+ }, e.number().int().gte(1).lte(4096))))
1471
+ }).superRefine((t, a) => {
1472
+ const d = t.shape !== void 0, s = t.src !== void 0 && t.src.trim() !== "";
1473
+ if (!d && !s && a.addIssue({
1474
+ code: e.ZodIssueCode.custom,
1475
+ message: "Either 'src' or 'shape' must be provided",
1476
+ path: []
1477
+ }), d && s && a.addIssue({
1478
+ code: e.ZodIssueCode.custom,
1479
+ message: "Provide either 'src' or 'shape', not both",
1480
+ path: ["src"]
1481
+ }), s) {
1482
+ const z = ["shape", "fill", "stroke", "shadow", "transform", "width", "height"];
1483
+ for (const u of z)
1484
+ t[u] !== void 0 && a.addIssue({
1485
+ code: e.ZodIssueCode.custom,
1486
+ message: `'${u}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,
1487
+ path: [u]
1488
+ });
1489
+ }
1490
+ }), It = e.object({
1491
+ id: e.string(),
1492
+ merge: e.optional(e.array(y))
1493
+ }), Gt = e.object({
1494
+ horizontal: e.optional(e.enum([
1495
+ "left",
1496
+ "center",
1497
+ "right"
1498
+ ])),
1499
+ vertical: e.optional(e.enum([
1500
+ "top",
1501
+ "center",
1502
+ "bottom"
1503
+ ]))
1504
+ }), Ct = e.object({
1505
+ preset: e.enum(["typewriter"]),
1506
+ duration: e.optional(e.preprocess((t) => {
1507
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1508
+ return typeof t == "string" ? Number(t) : t;
1509
+ }, e.number().gte(0.1).lte(30)))
1510
+ }), zt = e.object({
1511
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1512
+ opacity: e.optional(e.preprocess((t) => {
1513
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1514
+ return typeof t == "string" ? Number(t) : t;
1515
+ }, e.number().gte(0).lte(1))),
1516
+ padding: e.optional(e.preprocess((t) => {
1517
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1518
+ return typeof t == "string" ? Number(t) : t;
1519
+ }, e.number().gte(0).lte(100))),
1520
+ borderRadius: e.optional(e.preprocess((t) => {
1521
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1522
+ return typeof t == "string" ? Number(t) : t;
1523
+ }, e.number().gte(0)))
1524
+ }), Bt = e.object({
1525
+ family: e.optional(e.string()),
1526
+ color: e.optional(e.string()),
1527
+ opacity: e.optional(e.preprocess((t) => {
1528
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1529
+ return typeof t == "string" ? Number(t) : t;
1530
+ }, e.number())),
1531
+ size: e.optional(e.preprocess((t) => {
1532
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1533
+ return typeof t == "string" ? Number(t) : t;
1534
+ }, e.number().int())),
1535
+ weight: e.optional(e.preprocess((t) => {
1536
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1537
+ return typeof t == "string" ? Number(t) : t;
1538
+ }, e.number().int())),
1539
+ lineHeight: e.optional(e.preprocess((t) => {
1540
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1541
+ return typeof t == "string" ? Number(t) : t;
1542
+ }, e.number()))
1543
+ }), Et = e.object({
1544
+ width: e.optional(e.preprocess((t) => {
1545
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1546
+ return typeof t == "string" ? Number(t) : t;
1547
+ }, e.number().gte(0).lte(10))),
1548
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/))
1549
+ }), w = e.object({
1550
+ type: e.enum(["text"]),
1551
+ text: e.string(),
1552
+ width: e.optional(e.preprocess((t) => {
1553
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1554
+ return typeof t == "string" ? Number(t) : t;
1555
+ }, e.number().int())),
1556
+ height: e.optional(e.preprocess((t) => {
1557
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1558
+ return typeof t == "string" ? Number(t) : t;
1559
+ }, e.number().int())),
1560
+ font: e.optional(Bt),
1561
+ background: e.optional(zt),
1562
+ alignment: e.optional(Gt),
1563
+ stroke: e.optional(Et),
1564
+ animation: e.optional(Ct),
1565
+ ellipsis: e.optional(e.string())
1566
+ }), vt = w, qt = e.object({
1567
+ type: e.enum(["text-to-image"]),
1568
+ prompt: e.string(),
1569
+ width: e.optional(e.preprocess((t) => {
1570
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1571
+ return typeof t == "string" ? Number(t) : t;
1572
+ }, e.number().int())),
1573
+ height: e.optional(e.preprocess((t) => {
1574
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1575
+ return typeof t == "string" ? Number(t) : t;
1576
+ }, e.number().int())),
1577
+ crop: e.optional(n)
1578
+ }), Pt = e.object({
1579
+ capture: e.preprocess((t) => {
1580
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1581
+ return typeof t == "string" ? Number(t) : t;
1582
+ }, e.number()),
1583
+ scale: e.preprocess((t) => {
1584
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1585
+ return typeof t == "string" ? Number(t) : t;
1586
+ }, e.number().gte(0).lte(1))
1587
+ }), x = e.object({
1588
+ format: e.enum([
1589
+ "mp4",
1590
+ "gif",
1591
+ "mp3",
1592
+ "jpg",
1593
+ "png",
1594
+ "bmp"
1595
+ ]),
1596
+ resolution: e.optional(e.enum([
1597
+ "preview",
1598
+ "mobile",
1599
+ "sd",
1600
+ "hd",
1601
+ "1080",
1602
+ "4k"
1603
+ ])),
1604
+ aspectRatio: e.optional(e.enum([
1605
+ "16:9",
1606
+ "9:16",
1607
+ "1:1",
1608
+ "4:5",
1609
+ "4:3"
1610
+ ])),
1611
+ size: e.optional(l),
1612
+ fps: e.optional(e.union([
1613
+ e.literal(12),
1614
+ e.literal(15),
1615
+ e.literal(23.976),
1616
+ e.literal(24),
1617
+ e.literal(25),
1618
+ e.literal(29.97),
1619
+ e.literal(30),
1620
+ e.literal(48),
1621
+ e.literal(50),
1622
+ e.literal(59.94),
1623
+ e.literal(60)
1624
+ ])),
1625
+ scaleTo: e.optional(e.enum([
1626
+ "preview",
1627
+ "mobile",
1628
+ "sd",
1629
+ "hd",
1630
+ "1080",
1631
+ "4k"
1632
+ ])),
1633
+ quality: e.optional(e.enum([
1634
+ "verylow",
1635
+ "low",
1636
+ "medium",
1637
+ "high",
1638
+ "veryhigh"
1639
+ ])),
1640
+ repeat: e.optional(e.boolean()),
1641
+ mute: e.optional(e.boolean()),
1642
+ range: e.optional($e),
1643
+ poster: e.optional(Pe),
1644
+ thumbnail: e.optional(Pt),
1645
+ destinations: e.optional(e.array(o))
1646
+ }), T = x, k = e.object({
1647
+ in: e.optional(e.enum([
1648
+ "none",
1649
+ "fade",
1650
+ "fadeSlow",
1651
+ "fadeFast",
1652
+ "reveal",
1653
+ "revealSlow",
1654
+ "revealFast",
1655
+ "wipeLeft",
1656
+ "wipeLeftSlow",
1657
+ "wipeLeftFast",
1658
+ "wipeRight",
1659
+ "wipeRightSlow",
1660
+ "wipeRightFast",
1661
+ "slideLeft",
1662
+ "slideLeftSlow",
1663
+ "slideLeftFast",
1664
+ "slideRight",
1665
+ "slideRightSlow",
1666
+ "slideRightFast",
1667
+ "slideUp",
1668
+ "slideUpSlow",
1669
+ "slideUpFast",
1670
+ "slideDown",
1671
+ "slideDownSlow",
1672
+ "slideDownFast",
1673
+ "carouselLeft",
1674
+ "carouselLeftSlow",
1675
+ "carouselLeftFast",
1676
+ "carouselRight",
1677
+ "carouselRightSlow",
1678
+ "carouselRightFast",
1679
+ "carouselUp",
1680
+ "carouselUpSlow",
1681
+ "carouselUpFast",
1682
+ "carouselDown",
1683
+ "carouselDownSlow",
1684
+ "carouselDownFast",
1685
+ "shuffleTopRight",
1686
+ "shuffleTopRightSlow",
1687
+ "shuffleTopRightFast",
1688
+ "shuffleRightTop",
1689
+ "shuffleRightTopSlow",
1690
+ "shuffleRightTopFast",
1691
+ "shuffleRightBottom",
1692
+ "shuffleRightBottomSlow",
1693
+ "shuffleRightBottomFast",
1694
+ "shuffleBottomRight",
1695
+ "shuffleBottomRightSlow",
1696
+ "shuffleBottomRightFast",
1697
+ "shuffleBottomLeft",
1698
+ "shuffleBottomLeftSlow",
1699
+ "shuffleBottomLeftFast",
1700
+ "shuffleLeftBottom",
1701
+ "shuffleLeftBottomSlow",
1702
+ "shuffleLeftBottomFast",
1703
+ "shuffleLeftTop",
1704
+ "shuffleLeftTopSlow",
1705
+ "shuffleLeftTopFast",
1706
+ "shuffleTopLeft",
1707
+ "shuffleTopLeftSlow",
1708
+ "shuffleTopLeftFast",
1709
+ "zoom"
1710
+ ])),
1711
+ out: e.optional(e.enum([
1712
+ "none",
1713
+ "fade",
1714
+ "fadeSlow",
1715
+ "fadeFast",
1716
+ "reveal",
1717
+ "revealSlow",
1718
+ "revealFast",
1719
+ "wipeLeft",
1720
+ "wipeLeftSlow",
1721
+ "wipeLeftFast",
1722
+ "wipeRight",
1723
+ "wipeRightSlow",
1724
+ "wipeRightFast",
1725
+ "slideLeft",
1726
+ "slideLeftSlow",
1727
+ "slideLeftFast",
1728
+ "slideRight",
1729
+ "slideRightSlow",
1730
+ "slideRightFast",
1731
+ "slideUp",
1732
+ "slideUpSlow",
1733
+ "slideUpFast",
1734
+ "slideDown",
1735
+ "slideDownSlow",
1736
+ "slideDownFast",
1737
+ "carouselLeft",
1738
+ "carouselLeftSlow",
1739
+ "carouselLeftFast",
1740
+ "carouselRight",
1741
+ "carouselRightSlow",
1742
+ "carouselRightFast",
1743
+ "carouselUp",
1744
+ "carouselUpSlow",
1745
+ "carouselUpFast",
1746
+ "carouselDown",
1747
+ "carouselDownSlow",
1748
+ "carouselDownFast",
1749
+ "shuffleTopRight",
1750
+ "shuffleTopRightSlow",
1751
+ "shuffleTopRightFast",
1752
+ "shuffleRightTop",
1753
+ "shuffleRightTopSlow",
1754
+ "shuffleRightTopFast",
1755
+ "shuffleRightBottom",
1756
+ "shuffleRightBottomSlow",
1757
+ "shuffleRightBottomFast",
1758
+ "shuffleBottomRight",
1759
+ "shuffleBottomRightSlow",
1760
+ "shuffleBottomRightFast",
1761
+ "shuffleBottomLeft",
1762
+ "shuffleBottomLeftSlow",
1763
+ "shuffleBottomLeftFast",
1764
+ "shuffleLeftBottom",
1765
+ "shuffleLeftBottomSlow",
1766
+ "shuffleLeftBottomFast",
1767
+ "shuffleLeftTop",
1768
+ "shuffleLeftTopSlow",
1769
+ "shuffleLeftTopFast",
1770
+ "shuffleTopLeft",
1771
+ "shuffleTopLeftSlow",
1772
+ "shuffleTopLeftFast",
1773
+ "zoom"
1774
+ ]))
1775
+ }), er = k, r = e.object({
1776
+ from: e.optional(e.unknown()),
1777
+ to: e.optional(e.unknown()),
1778
+ start: e.optional(e.preprocess((t) => {
1779
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1780
+ return typeof t == "string" ? Number(t) : t;
1781
+ }, e.number())),
1782
+ length: e.optional(e.preprocess((t) => {
1783
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1784
+ return typeof t == "string" ? Number(t) : t;
1785
+ }, e.number())),
1786
+ interpolation: e.optional(e.enum([
1787
+ "linear",
1788
+ "bezier",
1789
+ "constant"
1790
+ ])),
1791
+ easing: e.optional(e.enum([
1792
+ "ease",
1793
+ "easeIn",
1794
+ "easeOut",
1795
+ "easeInOut",
1796
+ "easeInQuad",
1797
+ "easeInCubic",
1798
+ "easeInQuart",
1799
+ "easeInQuint",
1800
+ "easeInSine",
1801
+ "easeInExpo",
1802
+ "easeInCirc",
1803
+ "easeInBack",
1804
+ "easeOutQuad",
1805
+ "easeOutCubic",
1806
+ "easeOutQuart",
1807
+ "easeOutQuint",
1808
+ "easeOutSine",
1809
+ "easeOutExpo",
1810
+ "easeOutCirc",
1811
+ "easeOutBack",
1812
+ "easeInOutQuad",
1813
+ "easeInOutCubic",
1814
+ "easeInOutQuart",
1815
+ "easeInOutQuint",
1816
+ "easeInOutSine",
1817
+ "easeInOutExpo",
1818
+ "easeInOutCirc",
1819
+ "easeInOutBack"
1820
+ ]))
1821
+ }), tr = r, F = e.object({
1822
+ type: e.enum(["audio"]),
1823
+ src: e.string(),
1824
+ trim: e.optional(e.preprocess((t) => {
1825
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1826
+ return typeof t == "string" ? Number(t) : t;
1827
+ }, e.number())),
1828
+ volume: e.optional(e.union([
1829
+ e.preprocess((t) => {
1830
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1831
+ return typeof t == "string" ? Number(t) : t;
1832
+ }, e.number().gte(0).lte(1)),
1833
+ e.array(r)
1834
+ ])),
1835
+ speed: e.optional(e.preprocess((t) => {
1836
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1837
+ return typeof t == "string" ? Number(t) : t;
1838
+ }, e.number().gte(0).lte(10))),
1839
+ effect: e.optional(e.enum([
1840
+ "none",
1841
+ "fadeIn",
1842
+ "fadeOut",
1843
+ "fadeInFadeOut"
1844
+ ]))
1845
+ }), rr = F, p = e.object({
1846
+ x: e.optional(e.union([
1847
+ e.preprocess((t) => {
1848
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1849
+ return typeof t == "string" ? Number(t) : t;
1850
+ }, e.number().gte(-10).lte(10)),
1851
+ e.array(r)
1852
+ ])),
1853
+ y: e.optional(e.union([
1854
+ e.preprocess((t) => {
1855
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1856
+ return typeof t == "string" ? Number(t) : t;
1857
+ }, e.number().gte(-10).lte(10)),
1858
+ e.array(r)
1859
+ ]))
1860
+ }), nr = p, $t = e.object({
1861
+ angle: e.optional(e.union([
1862
+ e.preprocess((t) => {
1863
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1864
+ return typeof t == "string" ? Number(t) : t;
1865
+ }, e.number().gte(-360).lte(360)),
1866
+ e.array(r)
1867
+ ]))
1868
+ }), _t = e.object({
1869
+ x: e.optional(e.union([
1870
+ e.preprocess((t) => {
1871
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1872
+ return typeof t == "string" ? Number(t) : t;
1873
+ }, e.number().gte(-100).lte(100)),
1874
+ e.array(r)
1875
+ ])),
1876
+ y: e.optional(e.union([
1877
+ e.preprocess((t) => {
1878
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1879
+ return typeof t == "string" ? Number(t) : t;
1880
+ }, e.number().gte(-100).lte(100)),
1881
+ e.array(r)
1882
+ ]))
1883
+ }), Ut = e.object({
1884
+ type: e.enum(["title"]),
1885
+ text: e.string(),
1886
+ style: e.optional(e.enum([
1887
+ "minimal",
1888
+ "blockbuster",
1889
+ "vogue",
1890
+ "sketchy",
1891
+ "skinny",
1892
+ "chunk",
1893
+ "chunkLight",
1894
+ "marker",
1895
+ "future",
1896
+ "subtitle"
1897
+ ])),
1898
+ color: e.optional(e.string()),
1899
+ size: e.optional(e.enum([
1900
+ "xx-small",
1901
+ "x-small",
1902
+ "small",
1903
+ "medium",
1904
+ "large",
1905
+ "x-large",
1906
+ "xx-large"
1907
+ ])),
1908
+ background: e.optional(e.string()),
1909
+ position: e.optional(e.enum([
1910
+ "top",
1911
+ "topRight",
1912
+ "right",
1913
+ "bottomRight",
1914
+ "bottom",
1915
+ "bottomLeft",
1916
+ "left",
1917
+ "topLeft",
1918
+ "center"
1919
+ ])),
1920
+ offset: e.optional(p)
1921
+ }), R = e.object({
1922
+ rotate: e.optional($t),
1923
+ skew: e.optional(_t),
1924
+ flip: e.optional(ke)
1925
+ }), ir = R, O = e.object({
1926
+ type: e.enum(["video"]),
1927
+ src: e.string(),
1928
+ transcode: e.optional(e.boolean()),
1929
+ trim: e.optional(e.preprocess((t) => {
1930
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1931
+ return typeof t == "string" ? Number(t) : t;
1932
+ }, e.number())),
1933
+ volume: e.optional(e.union([
1934
+ e.preprocess((t) => {
1935
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1936
+ return typeof t == "string" ? Number(t) : t;
1937
+ }, e.number().gte(0).lte(1)),
1938
+ e.array(r)
1939
+ ])),
1940
+ volumeEffect: e.optional(e.enum([
1941
+ "none",
1942
+ "fadeIn",
1943
+ "fadeOut",
1944
+ "fadeInFadeOut"
1945
+ ])),
1946
+ speed: e.optional(e.preprocess((t) => {
1947
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1948
+ return typeof t == "string" ? Number(t) : t;
1949
+ }, e.number().gte(0).lte(10))),
1950
+ crop: e.optional(n),
1951
+ chromaKey: e.optional(P)
1952
+ }), or = O, D = e.discriminatedUnion("type", [
1953
+ O,
1954
+ m,
1955
+ w,
1956
+ h,
1957
+ F,
1958
+ g,
1959
+ f,
1960
+ c,
1961
+ Ut,
1962
+ A,
1963
+ Lt,
1964
+ qt,
1965
+ Re
1966
+ ]), ar = D, L = e.object({
1967
+ asset: D,
1968
+ start: e.union([
1969
+ e.preprocess((t) => {
1970
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1971
+ return typeof t == "string" ? Number(t) : t;
1972
+ }, e.number()),
1973
+ e.enum(["auto"])
1974
+ ]),
1975
+ length: e.union([
1976
+ e.preprocess((t) => {
1977
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1978
+ return typeof t == "string" ? Number(t) : t;
1979
+ }, e.number()),
1980
+ e.literal("auto"),
1981
+ e.literal("end")
1982
+ ]),
1983
+ fit: e.optional(e.enum([
1984
+ "cover",
1985
+ "contain",
1986
+ "crop",
1987
+ "none"
1988
+ ])),
1989
+ scale: e.optional(e.preprocess((t) => {
1990
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1991
+ return typeof t == "string" ? Number(t) : t;
1992
+ }, e.number())),
1993
+ width: e.optional(e.preprocess((t) => {
1994
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1995
+ return typeof t == "string" ? Number(t) : t;
1996
+ }, e.number().int().gte(1).lte(3840))),
1997
+ height: e.optional(e.preprocess((t) => {
1998
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
1999
+ return typeof t == "string" ? Number(t) : t;
2000
+ }, e.number().int().gte(1).lte(2160))),
2001
+ position: e.optional(e.enum([
2002
+ "top",
2003
+ "topRight",
2004
+ "right",
2005
+ "bottomRight",
2006
+ "bottom",
2007
+ "bottomLeft",
2008
+ "left",
2009
+ "topLeft",
2010
+ "center"
2011
+ ])),
2012
+ offset: e.optional(p),
2013
+ transition: e.optional(k),
2014
+ effect: e.optional(e.enum([
2015
+ "zoomIn",
2016
+ "zoomInSlow",
2017
+ "zoomInFast",
2018
+ "zoomOut",
2019
+ "zoomOutSlow",
2020
+ "zoomOutFast",
2021
+ "slideLeft",
2022
+ "slideLeftSlow",
2023
+ "slideLeftFast",
2024
+ "slideRight",
2025
+ "slideRightSlow",
2026
+ "slideRightFast",
2027
+ "slideUp",
2028
+ "slideUpSlow",
2029
+ "slideUpFast",
2030
+ "slideDown",
2031
+ "slideDownSlow",
2032
+ "slideDownFast"
2033
+ ])),
2034
+ filter: e.optional(e.enum([
2035
+ "none",
2036
+ "blur",
2037
+ "boost",
2038
+ "contrast",
2039
+ "darken",
2040
+ "greyscale",
2041
+ "lighten",
2042
+ "muted",
2043
+ "negative"
2044
+ ])),
2045
+ opacity: e.optional(e.union([
2046
+ e.preprocess((t) => {
2047
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
2048
+ return typeof t == "string" ? Number(t) : t;
2049
+ }, e.number()),
2050
+ e.array(r)
2051
+ ])),
2052
+ transform: e.optional(R),
2053
+ alias: e.optional(e.string().regex(/^[A-Za-z0-9_-]+$/))
2054
+ }), sr = L, I = e.object({
2055
+ clips: e.array(L)
2056
+ }), ur = I, G = e.object({
2057
+ soundtrack: e.optional(dt),
2058
+ background: e.optional(e.string()),
2059
+ fonts: e.optional(e.array(Fe)),
2060
+ tracks: e.array(I),
2061
+ cache: e.optional(e.boolean())
2062
+ }), lr = G, i = e.object({
2063
+ timeline: G,
2064
+ output: x,
2065
+ merge: e.optional(e.array(y)),
2066
+ callback: e.optional(e.string()),
2067
+ disk: e.optional(e.enum(["local", "mount"]))
2068
+ }), pr = i, Zt = e.object({
2069
+ id: e.string(),
2070
+ owner: e.string(),
2071
+ plan: e.optional(e.string()),
2072
+ status: e.enum([
2073
+ "queued",
2074
+ "fetching",
2075
+ "preprocessing",
2076
+ "rendering",
2077
+ "saving",
2078
+ "done",
2079
+ "failed"
2080
+ ]),
2081
+ error: e.optional(e.string()),
2082
+ duration: e.optional(e.preprocess((t) => {
2083
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
2084
+ return typeof t == "string" ? Number(t) : t;
2085
+ }, e.number())),
2086
+ renderTime: e.optional(e.preprocess((t) => {
2087
+ if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
2088
+ return typeof t == "string" ? Number(t) : t;
2089
+ }, e.number())),
2090
+ url: e.optional(e.string()),
2091
+ poster: e.optional(e.union([
2092
+ e.string(),
2093
+ e.null()
2094
+ ])),
2095
+ thumbnail: e.optional(e.union([
2096
+ e.string(),
2097
+ e.null()
2098
+ ])),
2099
+ data: e.optional(i),
2100
+ created: e.optional(e.string()),
2101
+ updated: e.optional(e.string())
2102
+ });
2103
+ e.object({
2104
+ success: e.boolean(),
2105
+ message: e.string(),
2106
+ response: Zt
2107
+ });
2108
+ const Jt = e.object({
2109
+ id: e.string(),
2110
+ name: e.string(),
2111
+ owner: e.string(),
2112
+ template: i
2113
+ });
2114
+ e.object({
2115
+ success: e.boolean(),
2116
+ message: e.string(),
2117
+ response: Jt
2118
+ });
2119
+ const C = e.object({
2120
+ name: e.string(),
2121
+ template: e.optional(i)
2122
+ });
2123
+ e.object({
2124
+ body: i,
2125
+ path: e.optional(e.never()),
2126
+ query: e.optional(e.never())
2127
+ });
2128
+ e.object({
2129
+ body: e.optional(e.never()),
2130
+ path: e.object({
2131
+ id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2132
+ }),
2133
+ query: e.optional(e.object({
2134
+ data: e.optional(e.boolean()),
2135
+ merged: e.optional(e.boolean())
2136
+ }))
2137
+ });
2138
+ e.object({
2139
+ body: e.optional(e.never()),
2140
+ path: e.optional(e.never()),
2141
+ query: e.optional(e.never())
2142
+ });
2143
+ e.object({
2144
+ body: C,
2145
+ path: e.optional(e.never()),
2146
+ query: e.optional(e.never())
2147
+ });
2148
+ e.object({
2149
+ body: e.optional(e.never()),
2150
+ path: e.object({
2151
+ id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2152
+ }),
2153
+ query: e.optional(e.never())
2154
+ });
2155
+ e.void();
2156
+ e.object({
2157
+ body: e.optional(e.never()),
2158
+ path: e.object({
2159
+ id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2160
+ }),
2161
+ query: e.optional(e.never())
2162
+ });
2163
+ e.object({
2164
+ body: C,
2165
+ path: e.object({
2166
+ id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2167
+ }),
2168
+ query: e.optional(e.never())
2169
+ });
2170
+ e.object({
2171
+ body: It,
2172
+ path: e.optional(e.never()),
2173
+ query: e.optional(e.never())
2174
+ });
2175
+ e.object({
2176
+ body: e.optional(e.never()),
2177
+ path: e.object({
2178
+ url: e.string()
2179
+ }),
2180
+ query: e.optional(e.never())
2181
+ });
2182
+ e.object({
2183
+ body: e.optional(e.never()),
2184
+ path: e.object({
2185
+ id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2186
+ }),
2187
+ query: e.optional(e.never())
2188
+ });
2189
+ e.void();
2190
+ e.object({
2191
+ body: e.optional(e.never()),
2192
+ path: e.object({
2193
+ id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2194
+ }),
2195
+ query: e.optional(e.never())
2196
+ });
2197
+ e.object({
2198
+ body: e.optional(e.never()),
2199
+ path: e.object({
2200
+ id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2201
+ }),
2202
+ query: e.optional(e.never())
2203
+ });
2204
+ e.object({
2205
+ body: it,
2206
+ path: e.optional(e.never()),
2207
+ query: e.optional(e.never())
2208
+ });
2209
+ e.object({
2210
+ body: e.optional(e.never()),
2211
+ path: e.optional(e.never()),
2212
+ query: e.optional(e.never())
2213
+ });
2214
+ e.object({
2215
+ body: pt,
2216
+ path: e.optional(e.never()),
2217
+ query: e.optional(e.never())
2218
+ });
2219
+ e.object({
2220
+ body: e.optional(e.never()),
2221
+ path: e.object({
2222
+ id: e.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
2223
+ }),
2224
+ query: e.optional(e.never())
2225
+ });
2226
+ e.void();
2227
+ e.object({
2228
+ body: e.optional(e.never()),
2229
+ path: e.object({
2230
+ id: e.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
2231
+ }),
2232
+ query: e.optional(e.never())
2233
+ });
2234
+ e.object({
2235
+ body: e.optional(e.never()),
2236
+ path: e.optional(e.never()),
2237
+ query: e.optional(e.never())
2238
+ });
2239
+ e.object({
2240
+ body: pe,
2241
+ path: e.optional(e.never()),
2242
+ query: e.optional(e.never())
2243
+ });
2244
+ e.object({
2245
+ body: e.optional(e.never()),
2246
+ path: e.object({
2247
+ id: e.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
2248
+ }),
2249
+ query: e.optional(e.never())
2250
+ });
2251
+ const dr = Te, fr = ot, cr = T.shape.format, mr = T.shape.fps.unwrap(), gr = e.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);
368
2252
  export {
369
- ot as AssetSchema,
370
- s as AudioAssetSchema,
371
- I as AudioAssetUrlSchema,
372
- C as AudioAssetVolumeSchema,
373
- R as CaptionAssetAlignmentSchema,
374
- F as CaptionAssetBackgroundSchema,
375
- a as CaptionAssetColorSchema,
376
- O as CaptionAssetFontSchema,
377
- c as CaptionAssetSchema,
378
- T as CaptionAssetStrokeSchema,
379
- ft as ClipSchema,
380
- Dt as EditSchema,
381
- gt as FontSourceSchema,
382
- ht as FontSourceUrlSchema,
383
- m as HtmlAssetSchema,
384
- z as ImageAssetCropSchema,
385
- l as ImageAssetSchema,
386
- P as ImageAssetUrlSchema,
387
- v as KeyframeEasingSchema,
388
- j as KeyframeInterpolationSchema,
389
- n as KeyframeSchema,
390
- u as LumaAssetSchema,
391
- L as LumaAssetUrlSchema,
392
- zt as OutputSchema,
393
- p as RichTextAssetSchema,
394
- f as ShapeAssetCircleSchema,
395
- A as ShapeAssetColorSchema,
396
- W as ShapeAssetFillSchema,
397
- d as ShapeAssetLineSchema,
398
- b as ShapeAssetRectangleSchema,
399
- h as ShapeAssetSchema,
400
- K as ShapeAssetStrokeSchema,
401
- Y as TextAssetAlignmentSchema,
402
- Z as TextAssetBackgroundSchema,
403
- r as TextAssetColorSchema,
404
- X as TextAssetFontSchema,
405
- g as TextAssetSchema,
406
- q as TextAssetStrokeSchema,
407
- At as TimelineSchema,
408
- dt as TrackSchema,
409
- tt as VideoAssetCropSchema,
410
- S as VideoAssetSchema,
411
- J as VideoAssetUrlSchema,
412
- et as VideoAssetVolumeSchema
2253
+ ar as AssetSchema,
2254
+ rr as AudioAssetSchema,
2255
+ Ht as CaptionAssetSchema,
2256
+ sr as ClipSchema,
2257
+ Kt as CropSchema,
2258
+ dr as DestinationSchema,
2259
+ pr as EditSchema,
2260
+ gr as HexColorSchema,
2261
+ Vt as HtmlAssetSchema,
2262
+ Qt as ImageAssetSchema,
2263
+ tr as KeyframeSchema,
2264
+ Wt as LumaAssetSchema,
2265
+ nr as OffsetSchema,
2266
+ cr as OutputFormatSchema,
2267
+ mr as OutputFpsSchema,
2268
+ T as OutputSchema,
2269
+ fr as OutputSizeSchema,
2270
+ Xt as RichTextAssetSchema,
2271
+ Yt as ShapeAssetSchema,
2272
+ vt as TextAssetSchema,
2273
+ lr as TimelineSchema,
2274
+ ur as TrackSchema,
2275
+ ir as TransformationSchema,
2276
+ er as TransitionSchema,
2277
+ tr as TweenSchema,
2278
+ or as VideoAssetSchema
413
2279
  };