@shotstack/shotstack-studio 2.0.0-beta.3 → 2.0.0-beta.31

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