@shotstack/shotstack-studio 2.0.0-beta.6 → 2.0.0-beta.8

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,33 +17,33 @@ e.unknown();
17
17
  e.unknown();
18
18
  const L = e.object({
19
19
  color: e.optional(e.string()),
20
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
21
- padding: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
22
- borderRadius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()))
20
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
21
+ padding: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
22
+ borderRadius: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int()))
23
23
  }), G = e.object({
24
24
  family: e.optional(e.string()),
25
25
  color: e.optional(e.string()),
26
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
27
- size: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
28
- lineHeight: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
26
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
27
+ size: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
28
+ lineHeight: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
29
29
  stroke: e.optional(e.string()),
30
- strokeWidth: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
30
+ strokeWidth: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()))
31
31
  }), I = e.object({
32
- top: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
33
- left: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
34
- right: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
35
- }), a = e.object({
32
+ top: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
33
+ left: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
34
+ right: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()))
35
+ }), c = e.object({
36
36
  type: e.enum(["caption"]),
37
37
  src: e.string(),
38
38
  font: e.optional(G),
39
39
  background: e.optional(L),
40
40
  margin: e.optional(I),
41
- trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))),
42
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))))
43
- }), $t = a, C = e.object({
41
+ trim: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
42
+ speed: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(10)))
43
+ }), $t = c, C = e.object({
44
44
  color: e.optional(e.string()),
45
- threshold: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(0).lte(250))),
46
- halo: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(0).lte(250)))
45
+ threshold: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(0).lte(250))),
46
+ halo: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(0).lte(250)))
47
47
  }), z = e.object({
48
48
  type: e.enum(["text-to-avatar"]),
49
49
  text: e.string(),
@@ -235,16 +235,16 @@ e.object({
235
235
  const W = e.object({
236
236
  type: e.enum(["image-to-video"]),
237
237
  imageUrl: e.string(),
238
- guidanceScale: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(1.8),
239
- motion: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())).default(127)
238
+ guidanceScale: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())).default(1.8),
239
+ motion: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())).default(127)
240
240
  }), X = e.object({
241
241
  type: e.enum(["text-generator"]),
242
242
  prompt: e.string()
243
243
  }), Y = e.object({
244
244
  type: e.enum(["text-to-image"]),
245
245
  prompt: e.string(),
246
- width: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
247
- height: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())
246
+ width: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int()),
247
+ height: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())
248
248
  }), v = e.object({
249
249
  type: e.enum(["text-to-speech"]),
250
250
  text: e.string(),
@@ -365,11 +365,11 @@ const W = e.object({
365
365
  "stable-diffusion-512-v2-1",
366
366
  "stable-diffusion-xl-beta-v2-2-2"
367
367
  ])),
368
- width: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
369
- height: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
370
- steps: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())).default(30),
371
- seed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())).default(0),
372
- cfgScale: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(7),
368
+ width: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int()),
369
+ height: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int()),
370
+ steps: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())).default(30),
371
+ seed: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())).default(0),
372
+ cfgScale: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())).default(7),
373
373
  stylePreset: e.optional(e.enum([
374
374
  "3d-model",
375
375
  "analog-film",
@@ -389,12 +389,12 @@ const W = e.object({
389
389
  "pixel-art",
390
390
  "tile-texture"
391
391
  ]))
392
- }), se = e.object({
392
+ }), ae = e.object({
393
393
  type: e.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")
394
- }).and(oe), ne = e.object({
394
+ }).and(oe), re = e.object({
395
395
  provider: e.enum(["stability-ai"]),
396
- options: se
397
- }), re = e.union([
396
+ options: ae
397
+ }), ne = e.union([
398
398
  e.object({
399
399
  provider: e.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")
400
400
  }).and(te),
@@ -412,97 +412,97 @@ const W = e.object({
412
412
  }).and(H),
413
413
  e.object({
414
414
  provider: e.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")
415
- }).and(ne)
416
- ]), s = e.object({
417
- top: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))),
418
- bottom: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))),
419
- left: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))),
420
- right: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1)))
421
- }), Ut = s, ie = e.object({
415
+ }).and(re)
416
+ ]), a = e.object({
417
+ top: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))),
418
+ bottom: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))),
419
+ left: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))),
420
+ right: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1)))
421
+ }), Ut = a, se = e.object({
422
422
  bucket: e.string(),
423
423
  prefix: e.optional(e.string()),
424
424
  filename: e.optional(e.string())
425
- }), pe = e.object({
425
+ }), ie = e.object({
426
426
  provider: e.string().default("google-cloud-storage"),
427
- options: e.optional(ie)
428
- }), ae = e.object({
427
+ options: e.optional(se)
428
+ }), ce = e.object({
429
429
  folderId: e.string(),
430
430
  filename: e.optional(e.string())
431
- }), ce = e.object({
431
+ }), pe = e.object({
432
432
  provider: e.string().default("google-drive"),
433
- options: ae
434
- }), ue = e.object({
433
+ options: ce
434
+ }), le = e.object({
435
435
  playbackPolicy: e.optional(e.array(e.enum(["public", "signed"]))),
436
436
  passthrough: e.optional(e.string().max(255))
437
- }), me = e.object({
437
+ }), ue = e.object({
438
438
  provider: e.string().default("mux"),
439
- options: e.optional(ue)
440
- }), be = e.object({
439
+ options: e.optional(le)
440
+ }), me = e.object({
441
441
  region: e.string(),
442
442
  bucket: e.string(),
443
443
  prefix: e.optional(e.string()),
444
444
  filename: e.optional(e.string()),
445
445
  acl: e.optional(e.string())
446
- }), ge = e.object({
446
+ }), de = e.object({
447
447
  provider: e.string().default("s3"),
448
- options: e.optional(be)
449
- }), Ne = e.object({
448
+ options: e.optional(me)
449
+ }), he = e.object({
450
450
  provider: e.string().default("shotstack"),
451
451
  exclude: e.optional(e.boolean())
452
- }), fe = e.object({
452
+ }), ge = e.object({
453
453
  title: e.optional(e.string().max(150)),
454
454
  privacyLevel: e.optional(e.enum(["public", "friends", "private"])),
455
455
  disableDuet: e.optional(e.boolean()).default(!1),
456
456
  disableStitch: e.optional(e.boolean()).default(!1),
457
457
  disableComment: e.optional(e.boolean()).default(!1)
458
- }), de = e.object({
458
+ }), ye = e.object({
459
459
  provider: e.string().default("tiktok"),
460
- options: e.optional(fe)
461
- }), he = e.object({
460
+ options: e.optional(ge)
461
+ }), be = e.object({
462
462
  view: e.optional(e.enum(["anybody", "nobody", "contacts", "password", "unlisted"])),
463
463
  embed: e.optional(e.enum(["public", "private", "whitelist"])),
464
464
  comments: e.optional(e.enum(["anybody", "nobody", "contacts"]))
465
- }), le = e.object({
465
+ }), Ae = e.object({
466
466
  name: e.optional(e.string()),
467
467
  description: e.optional(e.string()),
468
- privacy: e.optional(he),
468
+ privacy: e.optional(be),
469
469
  folderUri: e.optional(e.string())
470
- }), ye = e.object({
470
+ }), fe = e.object({
471
471
  provider: e.string().default("vimeo"),
472
- options: e.optional(le)
473
- }), r = e.union([
472
+ options: e.optional(Ae)
473
+ }), n = e.union([
474
474
  e.object({
475
475
  destinations: e.optional(e.literal("shotstackDestination_ShotstackDestination"))
476
- }).and(Ne),
476
+ }).and(he),
477
477
  e.object({
478
478
  destinations: e.optional(e.literal("muxDestination_MuxDestination"))
479
- }).and(me),
479
+ }).and(ue),
480
480
  e.object({
481
481
  destinations: e.optional(e.literal("s3Destination_S3Destination"))
482
- }).and(ge),
482
+ }).and(de),
483
483
  e.object({
484
484
  destinations: e.optional(e.literal("googleCloudStorageDestination_GoogleCloudStorageDestination"))
485
- }).and(pe),
485
+ }).and(ie),
486
486
  e.object({
487
487
  destinations: e.optional(e.literal("googleDriveDestination_GoogleDriveDestination"))
488
- }).and(ce),
488
+ }).and(pe),
489
489
  e.object({
490
490
  destinations: e.optional(e.literal("vimeoDestination_VimeoDestination"))
491
- }).and(ye),
491
+ }).and(fe),
492
492
  e.object({
493
493
  destinations: e.optional(e.literal("tiktokDestination_TiktokDestination"))
494
- }).and(de)
495
- ]), Se = r, je = e.object({
494
+ }).and(ye)
495
+ ]), Ne = n, Se = e.object({
496
496
  horizontal: e.optional(e.boolean()),
497
497
  vertical: e.optional(e.boolean())
498
- }), Ae = e.object({
498
+ }), je = e.object({
499
499
  src: e.string()
500
- }), c = e.object({
500
+ }), p = e.object({
501
501
  type: e.enum(["html"]),
502
502
  html: e.string(),
503
503
  css: e.optional(e.string()),
504
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
505
- height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
504
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
505
+ height: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
506
506
  background: e.optional(e.string()),
507
507
  position: e.optional(e.enum([
508
508
  "top",
@@ -515,17 +515,17 @@ const W = e.object({
515
515
  "topLeft",
516
516
  "center"
517
517
  ]))
518
- }), Jt = c, u = e.object({
518
+ }), Jt = p, l = e.object({
519
519
  type: e.enum(["image"]),
520
520
  src: e.string(),
521
- crop: e.optional(s)
522
- }), Zt = u, we = e.object({
521
+ crop: e.optional(a)
522
+ }), Zt = l, we = e.object({
523
523
  type: e.optional(e.enum(["image-to-video"])),
524
524
  src: e.optional(e.string()),
525
525
  prompt: e.optional(e.string()),
526
526
  aspectRatio: e.optional(e.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
527
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10)))),
528
- crop: e.optional(s)
527
+ speed: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(10))),
528
+ crop: e.optional(a)
529
529
  }), xe = e.object({
530
530
  preset: e.enum([
531
531
  "conference",
@@ -573,22 +573,22 @@ e.object({
573
573
  data: Le
574
574
  });
575
575
  const Ge = e.object({
576
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10)))),
576
+ speed: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(10))),
577
577
  preservePitch: e.optional(e.boolean())
578
578
  }), Ie = e.object({
579
579
  format: e.optional(e.enum(["srt", "vtt"]))
580
- }), m = e.object({
580
+ }), u = e.object({
581
581
  type: e.enum(["luma"]),
582
582
  src: e.string(),
583
- trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())))
584
- }), Mt = m, b = e.object({
583
+ trim: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()))
584
+ }), Mt = u, m = e.object({
585
585
  find: e.string(),
586
586
  replace: e.unknown()
587
587
  }), Ce = e.object({
588
- capture: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())
588
+ capture: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())
589
589
  }), ze = e.object({
590
- start: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))),
591
- length: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0)))
590
+ start: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))),
591
+ length: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0)))
592
592
  }), Be = e.object({
593
593
  id: e.string(),
594
594
  owner: e.string(),
@@ -600,15 +600,15 @@ const Ge = e.object({
600
600
  status: e.enum(["importing", "ready", "failed", "deleted"]),
601
601
  created: e.optional(e.string()),
602
602
  updated: e.optional(e.string())
603
- }), g = e.object({
603
+ }), d = e.object({
604
604
  type: e.string(),
605
605
  attributes: Be
606
606
  });
607
607
  e.object({
608
- data: e.array(g)
608
+ data: e.array(d)
609
609
  });
610
610
  e.object({
611
- data: g
611
+ data: d
612
612
  });
613
613
  e.object({
614
614
  success: e.boolean(),
@@ -659,56 +659,56 @@ const $e = e.object({
659
659
  "shift",
660
660
  "movingLetters"
661
661
  ]),
662
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0.1).lte(10))).default(1),
663
- duration: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0.1).lte(30))),
662
+ speed: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0.1).lte(10))).default(1),
663
+ duration: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0.1).lte(30))),
664
664
  style: e.optional(e.enum(["character", "word"])),
665
665
  direction: e.optional(e.enum(["left", "right", "up", "down"]))
666
666
  }), Je = e.object({
667
667
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
668
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1),
669
- borderRadius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0)
668
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(1),
669
+ borderRadius: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))).default(0)
670
670
  }), Ze = e.object({
671
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
671
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))).default(0),
672
672
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
673
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1),
674
- radius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0)
673
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(1),
674
+ radius: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))).default(0)
675
675
  }), Me = e.object({
676
676
  type: e.optional(e.enum(["linear", "radial"])),
677
- angle: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(360))).default(0),
677
+ angle: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(360))).default(0),
678
678
  stops: e.array(e.object({
679
- offset: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1)),
679
+ offset: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1)),
680
680
  color: e.string().regex(/^#[A-Fa-f0-9]{6}$/)
681
681
  })).min(2)
682
682
  }), He = e.object({
683
- top: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
684
- right: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
685
- bottom: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
686
- left: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0)
683
+ top: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))).default(0),
684
+ right: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))).default(0),
685
+ bottom: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))).default(0),
686
+ left: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))).default(0)
687
687
  }), Ke = e.object({
688
- offsetX: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
689
- offsetY: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
690
- blur: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
688
+ offsetX: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())).default(0),
689
+ offsetY: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())).default(0),
690
+ blur: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))).default(0),
691
691
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
692
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(0.5)
692
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(0.5)
693
693
  }), Ve = e.object({
694
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
694
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))).default(0),
695
695
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
696
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1)
696
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(1)
697
697
  }), Qe = e.object({
698
698
  family: e.optional(e.string()).default("Open Sans"),
699
- size: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(500))).default(24),
699
+ size: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(1).lte(500))).default(24),
700
700
  weight: e.optional(e.unknown()).default("400"),
701
701
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
702
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1),
702
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(1),
703
703
  background: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
704
704
  stroke: e.optional(Ve)
705
705
  }), We = e.object({
706
- letterSpacing: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
707
- lineHeight: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))).default(1.2),
706
+ letterSpacing: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())).default(0),
707
+ lineHeight: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(10))).default(1.2),
708
708
  textTransform: e.optional(e.enum(["none", "uppercase", "lowercase", "capitalize"])),
709
709
  textDecoration: e.optional(e.enum(["none", "underline", "line-through"])),
710
710
  gradient: e.optional(Me)
711
- }), N = e.object({
711
+ }), h = e.object({
712
712
  type: e.enum(["rich-text"]),
713
713
  text: e.string().max(5e3),
714
714
  font: e.optional(Qe),
@@ -716,10 +716,10 @@ const $e = e.object({
716
716
  shadow: e.optional(Ke),
717
717
  background: e.optional(Je),
718
718
  border: e.optional(Ze),
719
- padding: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0)), He])),
719
+ padding: e.optional(e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0)), He])),
720
720
  align: e.optional($e),
721
721
  animation: e.optional(Ue)
722
- }), Ht = N, Xe = e.object({
722
+ }), Ht = h, Xe = e.object({
723
723
  id: e.optional(e.string()),
724
724
  owner: e.optional(e.string()),
725
725
  status: e.optional(e.enum(["queued", "failed"])),
@@ -734,36 +734,36 @@ e.object({
734
734
  const ve = e.object({
735
735
  url: e.string(),
736
736
  id: e.string(),
737
- destinations: e.array(r)
738
- }), f = e.object({
737
+ destinations: e.array(n)
738
+ }), g = e.object({
739
739
  type: e.enum(["shape"]),
740
740
  shape: e.enum(["rectangle", "circle", "line"]),
741
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
742
- height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
741
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
742
+ height: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
743
743
  fill: e.optional(e.object({
744
744
  color: e.optional(e.string()),
745
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
745
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()))
746
746
  })),
747
747
  stroke: e.optional(e.object({
748
748
  color: e.optional(e.string()),
749
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
749
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()))
750
750
  })),
751
751
  rectangle: e.optional(e.object({
752
- width: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
753
- height: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
754
- cornerRadius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()))
752
+ width: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int()),
753
+ height: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int()),
754
+ cornerRadius: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int()))
755
755
  })),
756
756
  circle: e.optional(e.object({
757
- radius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())
757
+ radius: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())
758
758
  })),
759
759
  line: e.optional(e.object({
760
- length: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
761
- thickness: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())
760
+ length: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int()),
761
+ thickness: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())
762
762
  }))
763
- }), Kt = f, i = e.object({
764
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(4096))),
765
- height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(4096)))
766
- }), et = i, d = e.object({
763
+ }), Kt = g, s = e.object({
764
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(1).lte(4096))),
765
+ height: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(1).lte(4096)))
766
+ }), et = s, y = e.object({
767
767
  format: e.optional(e.enum([
768
768
  "mp4",
769
769
  "webm",
@@ -781,10 +781,10 @@ const ve = e.object({
781
781
  "webp",
782
782
  "tif"
783
783
  ])),
784
- size: e.optional(i),
784
+ size: e.optional(s),
785
785
  fit: e.optional(e.enum(["cover", "contain", "crop"])),
786
786
  resolution: e.optional(e.enum(["preview", "mobile", "sd", "hd", "fhd"])),
787
- quality: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(100))),
787
+ quality: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(1).lte(100))),
788
788
  fps: e.optional(e.union([
789
789
  e.literal(12),
790
790
  e.literal(15),
@@ -799,13 +799,13 @@ const ve = e.object({
799
799
  e.literal(60)
800
800
  ])),
801
801
  speed: e.optional(Ge),
802
- keyframeInterval: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(300))),
802
+ keyframeInterval: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(1).lte(300))),
803
803
  fixOffset: e.optional(e.boolean()),
804
804
  fixRotation: e.optional(e.boolean()),
805
805
  enhance: e.optional(Fe),
806
806
  filename: e.optional(e.string())
807
807
  }), tt = e.object({
808
- renditions: e.optional(e.array(d)),
808
+ renditions: e.optional(e.array(y)),
809
809
  transcription: e.optional(Ie)
810
810
  }), ot = e.object({
811
811
  id: e.string(),
@@ -818,205 +818,205 @@ const ve = e.object({
818
818
  "overwritten"
819
819
  ])),
820
820
  url: e.optional(e.string()),
821
- executionTime: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
822
- transformation: e.optional(d),
823
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
824
- height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
825
- duration: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
826
- fps: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
827
- }), st = e.object({
821
+ executionTime: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
822
+ transformation: e.optional(y),
823
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
824
+ height: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
825
+ duration: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
826
+ fps: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()))
827
+ }), at = e.object({
828
828
  renditions: e.optional(e.array(ot))
829
- }), nt = e.object({
829
+ }), rt = e.object({
830
830
  id: e.string(),
831
831
  owner: e.string(),
832
832
  input: e.optional(e.string()),
833
833
  source: e.optional(e.string()),
834
834
  status: e.optional(e.enum(["queued", "importing", "ready", "failed", "deleted", "overwritten"])),
835
- outputs: e.optional(st),
836
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
837
- height: e.optional(e.string()),
838
- duration: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
839
- fps: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
835
+ outputs: e.optional(at),
836
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
837
+ height: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
838
+ duration: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
839
+ fps: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
840
840
  created: e.optional(e.string()),
841
841
  updated: e.optional(e.string())
842
- }), h = e.object({
842
+ }), b = e.object({
843
843
  type: e.string(),
844
844
  id: e.string(),
845
- attributes: nt
845
+ attributes: rt
846
846
  });
847
847
  e.object({
848
- data: e.array(h)
848
+ data: e.array(b)
849
849
  });
850
850
  e.object({
851
- data: h
851
+ data: b
852
852
  });
853
- const rt = e.object({
853
+ const nt = e.object({
854
854
  url: e.optional(e.string()),
855
855
  outputs: e.optional(tt),
856
- destinations: e.optional(r),
856
+ destinations: e.optional(n),
857
857
  callback: e.optional(e.string())
858
- }), it = e.object({
858
+ }), st = e.object({
859
859
  src: e.string(),
860
860
  effect: e.optional(e.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
861
- volume: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
862
- }), l = e.object({
863
- offset: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1)),
861
+ volume: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()))
862
+ }), A = e.object({
863
+ offset: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1)),
864
864
  color: e.string().regex(/^#[A-Fa-f0-9]{6}$/)
865
- }), pt = e.object({
865
+ }), it = e.object({
866
866
  type: e.enum(["linear"]),
867
- angle: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(360))).default(0),
868
- stops: e.array(l).min(2),
869
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1)
870
- }), at = e.object({
871
- type: e.enum(["radial"]),
872
- stops: e.array(l).min(2),
873
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1)
867
+ angle: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(360))).default(0),
868
+ stops: e.array(A).min(2),
869
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(1)
874
870
  }), ct = e.object({
875
- offsetX: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
876
- offsetY: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
877
- blur: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
871
+ type: e.enum(["radial"]),
872
+ stops: e.array(A).min(2),
873
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(1)
874
+ }), pt = e.object({
875
+ offsetX: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())).default(0),
876
+ offsetY: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())).default(0),
877
+ blur: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0))).default(0),
878
878
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
879
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(0.5)
880
- }), ut = e.object({
879
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(0.5)
880
+ }), lt = e.object({
881
881
  type: e.enum(["solid"]),
882
882
  color: e.string().regex(/^#[A-Fa-f0-9]{6}$/).default("#000000"),
883
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1)
884
- }), mt = e.discriminatedUnion("type", [
885
- ut,
886
- pt,
887
- at
888
- ]), bt = e.object({
883
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(1)
884
+ }), ut = e.discriminatedUnion("type", [
885
+ lt,
886
+ it,
887
+ ct
888
+ ]), mt = e.object({
889
889
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
890
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(100))).default(1),
891
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1),
890
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(100))).default(1),
891
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(1),
892
892
  lineCap: e.optional(e.enum(["butt", "round", "square"])),
893
893
  lineJoin: e.optional(e.enum(["miter", "round", "bevel"])),
894
- dashArray: e.optional(e.array(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0)))),
895
- dashOffset: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0)
896
- }), gt = e.object({
897
- x: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
898
- y: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
899
- rotation: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(-360).lte(360))).default(0),
900
- scale: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0.01).lte(100))).default(1),
901
- originX: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(0.5),
902
- originY: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(0.5)
903
- }), Nt = e.object({
894
+ dashArray: e.optional(e.array(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0)))),
895
+ dashOffset: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())).default(0)
896
+ }), dt = e.object({
897
+ x: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())).default(0),
898
+ y: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())).default(0),
899
+ rotation: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(-360).lte(360))).default(0),
900
+ scale: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0.01).lte(100))).default(1),
901
+ originX: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(0.5),
902
+ originY: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(0.5)
903
+ }), ht = e.object({
904
904
  type: e.enum(["arrow"]),
905
- length: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
906
- headWidth: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(1e3)),
907
- headLength: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(1e3)),
908
- shaftWidth: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(1e3))
909
- }), ft = e.object({
905
+ length: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(4096)),
906
+ headWidth: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(1e3)),
907
+ headLength: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(1e3)),
908
+ shaftWidth: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(1e3))
909
+ }), gt = e.object({
910
910
  type: e.enum(["circle"]),
911
- radius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048))
912
- }), dt = e.object({
911
+ radius: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(2048))
912
+ }), yt = e.object({
913
913
  type: e.enum(["cross"]),
914
- width: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
915
- height: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
916
- thickness: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(500))
917
- }), ht = e.object({
914
+ width: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(4096)),
915
+ height: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(4096)),
916
+ thickness: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(500))
917
+ }), bt = e.object({
918
918
  type: e.enum(["ellipse"]),
919
- radiusX: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048)),
920
- radiusY: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048))
921
- }), lt = e.object({
919
+ radiusX: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(2048)),
920
+ radiusY: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(2048))
921
+ }), At = e.object({
922
922
  type: e.enum(["heart"]),
923
- size: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096))
924
- }), yt = e.object({
923
+ size: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(4096))
924
+ }), ft = e.object({
925
925
  type: e.enum(["line"]),
926
- length: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
927
- thickness: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(500))
928
- }), St = e.object({
926
+ length: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(4096)),
927
+ thickness: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(500))
928
+ }), Nt = e.object({
929
929
  type: e.enum(["path"]),
930
930
  d: e.string().min(1).max(1e5)
931
- }), jt = e.object({
931
+ }), St = e.object({
932
932
  type: e.enum(["polygon"]),
933
- sides: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(3).lte(100)),
934
- radius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048))
935
- }), At = e.object({
933
+ sides: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(3).lte(100)),
934
+ radius: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(2048))
935
+ }), jt = e.object({
936
936
  type: e.enum(["rectangle"]),
937
- width: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
938
- height: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
939
- cornerRadius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(2048))).default(0)
937
+ width: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(4096)),
938
+ height: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(4096)),
939
+ cornerRadius: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(2048))).default(0)
940
940
  }), wt = e.object({
941
941
  type: e.enum(["ring"]),
942
- outerRadius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048)),
943
- innerRadius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(2048))
942
+ outerRadius: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(2048)),
943
+ innerRadius: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(2048))
944
944
  }), xt = e.object({
945
945
  type: e.enum(["star"]),
946
- points: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(3).lte(100)),
947
- outerRadius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048)),
948
- innerRadius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048))
946
+ points: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(3).lte(100)),
947
+ outerRadius: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(2048)),
948
+ innerRadius: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(1).lte(2048))
949
949
  }), Tt = e.discriminatedUnion("type", [
950
- At,
950
+ jt,
951
+ gt,
952
+ bt,
951
953
  ft,
954
+ St,
955
+ xt,
952
956
  ht,
957
+ At,
953
958
  yt,
954
- jt,
955
- xt,
956
- Nt,
957
- lt,
958
- dt,
959
959
  wt,
960
- St
960
+ Nt
961
961
  ]), kt = e.object({
962
962
  type: e.enum(["svg"]),
963
963
  shape: Tt,
964
- fill: e.optional(mt),
965
- stroke: e.optional(bt),
966
- shadow: e.optional(ct),
967
- transform: e.optional(gt),
968
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1),
969
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(4096))),
970
- height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(4096)))
964
+ fill: e.optional(ut),
965
+ stroke: e.optional(mt),
966
+ shadow: e.optional(pt),
967
+ transform: e.optional(dt),
968
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))).default(1),
969
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(1).lte(4096))),
970
+ height: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(1).lte(4096)))
971
971
  }), Ft = e.object({
972
972
  id: e.string(),
973
- merge: e.optional(e.array(b))
973
+ merge: e.optional(e.array(m))
974
974
  }), Rt = e.object({
975
975
  horizontal: e.optional(e.enum(["left", "center", "right"])),
976
976
  vertical: e.optional(e.enum(["top", "center", "bottom"]))
977
977
  }), Ot = e.object({
978
978
  preset: e.enum(["typewriter"]),
979
- duration: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0.1).lte(30)))
979
+ duration: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0.1).lte(30)))
980
980
  }), Dt = e.object({
981
981
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
982
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))),
983
- padding: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(100))),
984
- borderRadius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0)))
982
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))),
983
+ padding: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(100))),
984
+ borderRadius: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0)))
985
985
  }), Lt = e.object({
986
986
  family: e.optional(e.string()),
987
987
  color: e.optional(e.string()),
988
- opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
989
- size: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
990
- weight: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
991
- lineHeight: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
988
+ opacity: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
989
+ size: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
990
+ weight: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
991
+ lineHeight: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()))
992
992
  }), Gt = e.object({
993
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))),
993
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(10))),
994
994
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/))
995
- }), y = e.object({
995
+ }), f = e.object({
996
996
  type: e.enum(["text"]),
997
997
  text: e.string(),
998
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
999
- height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
998
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
999
+ height: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
1000
1000
  font: e.optional(Lt),
1001
1001
  background: e.optional(Dt),
1002
1002
  alignment: e.optional(Rt),
1003
1003
  stroke: e.optional(Gt),
1004
1004
  animation: e.optional(Ot),
1005
1005
  ellipsis: e.optional(e.string())
1006
- }), Vt = y, It = e.object({
1006
+ }), Vt = f, It = e.object({
1007
1007
  type: e.enum(["text-to-image"]),
1008
1008
  prompt: e.string(),
1009
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
1010
- height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
1011
- crop: e.optional(s)
1009
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
1010
+ height: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int())),
1011
+ crop: e.optional(a)
1012
1012
  }), Ct = e.object({
1013
- capture: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()),
1014
- scale: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))
1015
- }), S = e.object({
1013
+ capture: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()),
1014
+ scale: e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1))
1015
+ }), N = e.object({
1016
1016
  format: e.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
1017
1017
  resolution: e.optional(e.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
1018
1018
  aspectRatio: e.optional(e.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
1019
- size: e.optional(i),
1019
+ size: e.optional(s),
1020
1020
  fps: e.optional(e.union([
1021
1021
  e.literal(12),
1022
1022
  e.literal(15),
@@ -1037,8 +1037,8 @@ const rt = e.object({
1037
1037
  range: e.optional(ze),
1038
1038
  poster: e.optional(Ce),
1039
1039
  thumbnail: e.optional(Ct),
1040
- destinations: e.optional(e.array(r))
1041
- }), j = S, A = e.object({
1040
+ destinations: e.optional(e.array(n))
1041
+ }), S = N, j = e.object({
1042
1042
  in: e.optional(e.enum([
1043
1043
  "none",
1044
1044
  "fade",
@@ -1167,11 +1167,11 @@ const rt = e.object({
1167
1167
  "shuffleTopLeftFast",
1168
1168
  "zoom"
1169
1169
  ]))
1170
- }), Qt = A, o = e.object({
1170
+ }), Qt = j, o = e.object({
1171
1171
  from: e.optional(e.unknown()),
1172
1172
  to: e.optional(e.unknown()),
1173
- start: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1174
- length: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1173
+ start: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
1174
+ length: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
1175
1175
  interpolation: e.optional(e.enum(["linear", "bezier", "constant"])),
1176
1176
  easing: e.optional(e.enum([
1177
1177
  "ease",
@@ -1206,18 +1206,18 @@ const rt = e.object({
1206
1206
  }), Wt = o, w = e.object({
1207
1207
  type: e.enum(["audio"]),
1208
1208
  src: e.string(),
1209
- trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))),
1210
- volume: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1)), e.array(o)])),
1211
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10)))),
1209
+ trim: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
1210
+ volume: e.optional(e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1)), e.array(o)])),
1211
+ speed: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(10))),
1212
1212
  effect: e.optional(e.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]))
1213
- }), Xt = w, p = e.object({
1214
- x: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(-10).lte(10)), e.array(o)])),
1215
- y: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(-10).lte(10)), e.array(o)]))
1216
- }), Yt = p, zt = e.object({
1217
- angle: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(-360).lte(360)), e.array(o)]))
1213
+ }), Xt = w, i = e.object({
1214
+ x: e.optional(e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(-10).lte(10)), e.array(o)])),
1215
+ y: e.optional(e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(-10).lte(10)), e.array(o)]))
1216
+ }), Yt = i, zt = e.object({
1217
+ angle: e.optional(e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(-360).lte(360)), e.array(o)]))
1218
1218
  }), Bt = e.object({
1219
- x: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(-100).lte(100)), e.array(o)])),
1220
- y: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(-100).lte(100)), e.array(o)]))
1219
+ x: e.optional(e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(-100).lte(100)), e.array(o)])),
1220
+ y: e.optional(e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(-100).lte(100)), e.array(o)]))
1221
1221
  }), Et = e.object({
1222
1222
  type: e.enum(["title"]),
1223
1223
  text: e.string(),
@@ -1255,43 +1255,43 @@ const rt = e.object({
1255
1255
  "topLeft",
1256
1256
  "center"
1257
1257
  ])),
1258
- offset: e.optional(p)
1258
+ offset: e.optional(i)
1259
1259
  }), x = e.object({
1260
1260
  rotate: e.optional(zt),
1261
1261
  skew: e.optional(Bt),
1262
- flip: e.optional(je)
1262
+ flip: e.optional(Se)
1263
1263
  }), vt = x, T = e.object({
1264
1264
  type: e.enum(["video"]),
1265
1265
  src: e.string(),
1266
1266
  transcode: e.optional(e.boolean()),
1267
- trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))),
1268
- volume: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1)), e.array(o)])),
1267
+ trim: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
1268
+ volume: e.optional(e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(1)), e.array(o)])),
1269
1269
  volumeEffect: e.optional(e.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
1270
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10)))),
1271
- crop: e.optional(s),
1270
+ speed: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().gte(0).lte(10))),
1271
+ crop: e.optional(a),
1272
1272
  chromaKey: e.optional(C)
1273
1273
  }), eo = T, k = e.discriminatedUnion("type", [
1274
1274
  T,
1275
- u,
1276
- y,
1277
- N,
1275
+ l,
1276
+ f,
1277
+ h,
1278
1278
  w,
1279
- m,
1280
- a,
1279
+ u,
1281
1280
  c,
1281
+ p,
1282
1282
  Et,
1283
- f,
1283
+ g,
1284
1284
  kt,
1285
1285
  It,
1286
1286
  we
1287
1287
  ]), to = k, F = e.object({
1288
1288
  asset: k,
1289
- start: e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())), e.enum(["auto"])]),
1290
- length: e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())), e.literal("auto"), e.literal("end")]),
1289
+ start: e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()), e.enum(["auto"])]),
1290
+ length: e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()), e.literal("auto"), e.literal("end")]),
1291
1291
  fit: e.optional(e.enum(["cover", "contain", "crop", "none"])),
1292
- scale: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))),
1293
- width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(3840))),
1294
- height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(2160))),
1292
+ scale: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
1293
+ width: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(1).lte(3840))),
1294
+ height: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number().int().gte(1).lte(2160))),
1295
1295
  position: e.optional(e.enum([
1296
1296
  "top",
1297
1297
  "topRight",
@@ -1303,8 +1303,8 @@ const rt = e.object({
1303
1303
  "topLeft",
1304
1304
  "center"
1305
1305
  ])),
1306
- offset: e.optional(p),
1307
- transition: e.optional(A),
1306
+ offset: e.optional(i),
1307
+ transition: e.optional(j),
1308
1308
  effect: e.optional(e.enum([
1309
1309
  "zoomIn",
1310
1310
  "zoomInSlow",
@@ -1336,24 +1336,24 @@ const rt = e.object({
1336
1336
  "muted",
1337
1337
  "negative"
1338
1338
  ])),
1339
- opacity: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()), e.array(o)])),
1339
+ opacity: e.optional(e.union([e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number()), e.array(o)])),
1340
1340
  transform: e.optional(x),
1341
1341
  alias: e.optional(e.string().regex(/^[A-Za-z0-9_-]+$/))
1342
1342
  }), oo = F, R = e.object({
1343
1343
  clips: e.array(F)
1344
- }), so = R, O = e.object({
1345
- soundtrack: e.optional(it),
1344
+ }), ao = R, O = e.object({
1345
+ soundtrack: e.optional(st),
1346
1346
  background: e.optional(e.string()),
1347
- fonts: e.optional(e.array(Ae)),
1347
+ fonts: e.optional(e.array(je)),
1348
1348
  tracks: e.array(R),
1349
1349
  cache: e.optional(e.boolean())
1350
- }), no = O, n = e.object({
1350
+ }), ro = O, r = e.object({
1351
1351
  timeline: O,
1352
- output: S,
1353
- merge: e.optional(e.array(b)),
1352
+ output: N,
1353
+ merge: e.optional(e.array(m)),
1354
1354
  callback: e.optional(e.string()),
1355
1355
  disk: e.optional(e.enum(["local", "mount"]))
1356
- }), ro = n, qt = e.object({
1356
+ }), no = r, qt = e.object({
1357
1357
  id: e.string(),
1358
1358
  owner: e.string(),
1359
1359
  plan: e.optional(e.string()),
@@ -1367,12 +1367,12 @@ const rt = e.object({
1367
1367
  "failed"
1368
1368
  ]),
1369
1369
  error: e.optional(e.string()),
1370
- duration: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1371
- renderTime: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1370
+ duration: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
1371
+ renderTime: e.optional(e.preprocess((t) => t === "" || Array.isArray(t) ? NaN : t, e.coerce.number())),
1372
1372
  url: e.optional(e.string()),
1373
1373
  poster: e.optional(e.union([e.string(), e.null()])),
1374
1374
  thumbnail: e.optional(e.union([e.string(), e.null()])),
1375
- data: e.optional(n),
1375
+ data: e.optional(r),
1376
1376
  created: e.optional(e.string()),
1377
1377
  updated: e.optional(e.string())
1378
1378
  });
@@ -1385,7 +1385,7 @@ const Pt = e.object({
1385
1385
  id: e.string(),
1386
1386
  name: e.string(),
1387
1387
  owner: e.string(),
1388
- template: n
1388
+ template: r
1389
1389
  });
1390
1390
  e.object({
1391
1391
  success: e.boolean(),
@@ -1394,10 +1394,10 @@ e.object({
1394
1394
  });
1395
1395
  const D = e.object({
1396
1396
  name: e.string(),
1397
- template: e.optional(n)
1397
+ template: e.optional(r)
1398
1398
  });
1399
1399
  e.object({
1400
- body: n,
1400
+ body: r,
1401
1401
  path: e.optional(e.never()),
1402
1402
  query: e.optional(e.never())
1403
1403
  });
@@ -1488,7 +1488,7 @@ e.object({
1488
1488
  query: e.optional(e.never())
1489
1489
  });
1490
1490
  e.object({
1491
- body: rt,
1491
+ body: nt,
1492
1492
  path: e.optional(e.never()),
1493
1493
  query: e.optional(e.never())
1494
1494
  });
@@ -1513,7 +1513,7 @@ e.object({
1513
1513
  query: e.optional(e.never())
1514
1514
  });
1515
1515
  e.object({
1516
- body: re,
1516
+ body: ne,
1517
1517
  path: e.optional(e.never()),
1518
1518
  query: e.optional(e.never())
1519
1519
  });
@@ -1524,30 +1524,30 @@ e.object({
1524
1524
  }),
1525
1525
  query: e.optional(e.never())
1526
1526
  });
1527
- const io = Se, po = et, ao = j.shape.format, co = j.shape.fps.unwrap(), uo = e.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);
1527
+ const so = Ne, io = et, co = S.shape.format, po = S.shape.fps.unwrap(), lo = e.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);
1528
1528
  export {
1529
1529
  to as AssetSchema,
1530
1530
  Xt as AudioAssetSchema,
1531
1531
  $t as CaptionAssetSchema,
1532
1532
  oo as ClipSchema,
1533
1533
  Ut as CropSchema,
1534
- io as DestinationSchema,
1535
- ro as EditSchema,
1536
- uo as HexColorSchema,
1534
+ so as DestinationSchema,
1535
+ no as EditSchema,
1536
+ lo as HexColorSchema,
1537
1537
  Jt as HtmlAssetSchema,
1538
1538
  Zt as ImageAssetSchema,
1539
1539
  Wt as KeyframeSchema,
1540
1540
  Mt as LumaAssetSchema,
1541
1541
  Yt as OffsetSchema,
1542
- ao as OutputFormatSchema,
1543
- co as OutputFpsSchema,
1544
- j as OutputSchema,
1545
- po as OutputSizeSchema,
1542
+ co as OutputFormatSchema,
1543
+ po as OutputFpsSchema,
1544
+ S as OutputSchema,
1545
+ io as OutputSizeSchema,
1546
1546
  Ht as RichTextAssetSchema,
1547
1547
  Kt as ShapeAssetSchema,
1548
1548
  Vt as TextAssetSchema,
1549
- no as TimelineSchema,
1550
- so as TrackSchema,
1549
+ ro as TimelineSchema,
1550
+ ao as TrackSchema,
1551
1551
  vt as TransformationSchema,
1552
1552
  Qt as TransitionSchema,
1553
1553
  Wt as TweenSchema,