@shotstack/shotstack-studio 2.0.0-beta.19 → 2.0.0-beta.20

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