@shotstack/shotstack-studio 2.0.0-beta.2 → 2.0.0-beta.21

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