@shotstack/shotstack-studio 2.0.0-beta.26 → 2.0.0-beta.28

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.
@@ -15,7 +15,7 @@ r.unknown();
15
15
  r.unknown();
16
16
  r.unknown();
17
17
  r.unknown();
18
- const E = r.object({
18
+ const q = r.object({
19
19
  color: r.optional(r.string()),
20
20
  opacity: r.optional(r.union([r.preprocess((e) => {
21
21
  if (!(e === "" || e === null || e === void 0))
@@ -29,7 +29,7 @@ const E = r.object({
29
29
  if (!(e === "" || e === null || e === void 0))
30
30
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
31
31
  }, r.number().int()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
32
- }), q = r.object({
32
+ }), P = r.object({
33
33
  family: r.optional(r.string()),
34
34
  color: r.optional(r.string()),
35
35
  opacity: r.optional(r.union([r.preprocess((e) => {
@@ -49,7 +49,7 @@ const E = r.object({
49
49
  if (!(e === "" || e === null || e === void 0))
50
50
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
51
51
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
52
- }), P = r.object({
52
+ }), U = r.object({
53
53
  top: r.optional(r.union([r.preprocess((e) => {
54
54
  if (!(e === "" || e === null || e === void 0))
55
55
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -65,9 +65,9 @@ const E = r.object({
65
65
  }), c = r.object({
66
66
  type: r.enum(["caption"]),
67
67
  src: r.string().min(1).regex(/\S/),
68
- font: r.optional(q),
69
- background: r.optional(E),
70
- margin: r.optional(P),
68
+ font: r.optional(P),
69
+ background: r.optional(q),
70
+ margin: r.optional(U),
71
71
  trim: r.optional(r.union([r.preprocess((e) => {
72
72
  if (!(e === "" || e === null || e === void 0))
73
73
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -76,7 +76,7 @@ const E = r.object({
76
76
  if (!(e === "" || e === null || e === void 0))
77
77
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
78
78
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
79
- }), Kr = c, U = r.object({
79
+ }), Mr = c, J = r.object({
80
80
  color: r.union([r.string().regex(/^#[0-9a-fA-F]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
81
81
  threshold: r.optional(r.union([r.preprocess((e) => {
82
82
  if (!(e === "" || e === null || e === void 0))
@@ -86,17 +86,17 @@ const E = r.object({
86
86
  if (!(e === "" || e === null || e === void 0))
87
87
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
88
88
  }, r.number().int().gte(0).lte(250)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
89
- }), J = r.object({
89
+ }), V = r.object({
90
90
  type: r.enum(["text-to-avatar"]),
91
91
  text: r.string(),
92
92
  avatar: r.enum(["jack", "lana", "lily", "matt", "rian"]),
93
93
  background: r.optional(r.string())
94
- }), V = r.object({
94
+ }), H = r.object({
95
95
  type: r.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")
96
- }).and(J), H = r.object({
96
+ }).and(V), K = r.object({
97
97
  provider: r.enum(["d-id"]),
98
- options: V
99
- }), K = r.object({
98
+ options: H
99
+ }), M = r.object({
100
100
  type: r.enum(["text-to-speech"]),
101
101
  text: r.string(),
102
102
  voice: r.enum([
@@ -110,12 +110,12 @@ const E = r.object({
110
110
  "Rachel",
111
111
  "Sam"
112
112
  ])
113
- }), M = r.object({
113
+ }), W = r.object({
114
114
  type: r.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")
115
- }).and(K), Q = r.object({
115
+ }).and(M), Q = r.object({
116
116
  provider: r.enum(["elevenlabs"]),
117
- options: M
118
- }), W = r.object({
117
+ options: W
118
+ }), X = r.object({
119
119
  type: r.enum(["text-to-avatar"]),
120
120
  text: r.string(),
121
121
  avatar: r.enum([
@@ -235,30 +235,30 @@ const E = r.object({
235
235
  background: r.optional(r.string()),
236
236
  ratio: r.optional(r.enum(["16:9", "9:16"])),
237
237
  test: r.optional(r.boolean())
238
- }), X = r.object({
238
+ }), Y = r.object({
239
239
  type: r.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")
240
- }).and(W), Y = r.object({
240
+ }).and(X), v = r.object({
241
241
  provider: r.enum(["heygen"]),
242
- options: X
243
- }), v = r.object({
242
+ options: Y
243
+ }), ee = r.object({
244
244
  type: r.enum(["text-generator"]),
245
245
  prompt: r.string(),
246
246
  model: r.enum(["gpt-3.5-turbo", "gpt-4"]),
247
247
  systemPrompt: r.optional(r.string())
248
- }), ee = r.object({
248
+ }), re = r.object({
249
249
  type: r.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")
250
- }).and(v), re = r.object({
250
+ }).and(ee), te = r.object({
251
251
  provider: r.enum(["openai"]),
252
- options: ee
253
- }), te = r.object({
252
+ options: re
253
+ }), ne = r.object({
254
254
  status: r.string(),
255
255
  title: r.string(),
256
256
  detail: r.string()
257
257
  });
258
258
  r.object({
259
- errors: r.array(te)
259
+ errors: r.array(ne)
260
260
  });
261
- const ne = r.object({
261
+ const ie = r.object({
262
262
  owner: r.string(),
263
263
  provider: r.enum(["shotstack", "elevenlabs", "heygen", "d-id"]),
264
264
  type: r.enum(["text-to-speech", "text-to-avatar"]),
@@ -266,15 +266,15 @@ const ne = r.object({
266
266
  status: r.enum(["queued", "processing", "saving", "done", "failed"]),
267
267
  created: r.string(),
268
268
  updated: r.string()
269
- }), ie = r.object({
269
+ }), se = r.object({
270
270
  type: r.string(),
271
271
  id: r.string(),
272
- attributes: ne
272
+ attributes: ie
273
273
  });
274
274
  r.object({
275
- data: ie
275
+ data: se
276
276
  });
277
- const se = r.object({
277
+ const oe = r.object({
278
278
  type: r.enum(["image-to-video"]),
279
279
  imageUrl: r.string(),
280
280
  guidanceScale: r.optional(r.union([r.preprocess((e) => {
@@ -285,10 +285,10 @@ const se = r.object({
285
285
  if (!(e === "" || e === null || e === void 0))
286
286
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
287
287
  }, r.number().int()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127)
288
- }), oe = r.object({
288
+ }), ae = r.object({
289
289
  type: r.enum(["text-generator"]),
290
290
  prompt: r.string()
291
- }), ae = r.object({
291
+ }), ue = r.object({
292
292
  type: r.enum(["text-to-image"]),
293
293
  prompt: r.string(),
294
294
  width: r.union([r.preprocess((e) => {
@@ -299,7 +299,7 @@ const se = r.object({
299
299
  if (!(e === "" || e === null || e === void 0))
300
300
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
301
301
  }, r.number().int()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
302
- }), ue = r.object({
302
+ }), fe = r.object({
303
303
  type: r.enum(["text-to-speech"]),
304
304
  text: r.string(),
305
305
  voice: r.enum([
@@ -393,23 +393,23 @@ const se = r.object({
393
393
  "fi-FI"
394
394
  ])),
395
395
  newscaster: r.optional(r.boolean()).default(!1)
396
- }), fe = r.union([
396
+ }), le = r.union([
397
397
  r.object({
398
398
  type: r.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")
399
- }).and(ue),
399
+ }).and(fe),
400
400
  r.object({
401
401
  type: r.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")
402
- }).and(ae),
402
+ }).and(ue),
403
403
  r.object({
404
404
  type: r.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")
405
- }).and(oe),
405
+ }).and(ae),
406
406
  r.object({
407
407
  type: r.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")
408
- }).and(se)
409
- ]), le = r.object({
408
+ }).and(oe)
409
+ ]), pe = r.object({
410
410
  provider: r.enum(["shotstack"]),
411
- options: fe
412
- }), pe = r.object({
411
+ options: le
412
+ }), de = r.object({
413
413
  type: r.enum(["text-to-image"]),
414
414
  prompt: r.string(),
415
415
  engine: r.optional(r.enum([
@@ -458,31 +458,31 @@ const se = r.object({
458
458
  "pixel-art",
459
459
  "tile-texture"
460
460
  ]))
461
- }), de = r.object({
461
+ }), ce = r.object({
462
462
  type: r.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")
463
- }).and(pe), ce = r.object({
463
+ }).and(de), ge = r.object({
464
464
  provider: r.enum(["stability-ai"]),
465
- options: de
466
- }), ge = r.union([
465
+ options: ce
466
+ }), me = r.union([
467
467
  r.object({
468
468
  provider: r.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")
469
- }).and(le),
469
+ }).and(pe),
470
470
  r.object({
471
471
  provider: r.literal("didGeneratedAsset_DIDGeneratedAsset")
472
- }).and(H),
472
+ }).and(K),
473
473
  r.object({
474
474
  provider: r.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")
475
475
  }).and(Q),
476
476
  r.object({
477
477
  provider: r.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")
478
- }).and(Y),
478
+ }).and(v),
479
479
  r.object({
480
480
  provider: r.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")
481
- }).and(re),
481
+ }).and(te),
482
482
  r.object({
483
483
  provider: r.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")
484
- }).and(ce)
485
- ]), n = r.object({
484
+ }).and(ge)
485
+ ]), i = r.object({
486
486
  top: r.optional(r.union([r.preprocess((e) => {
487
487
  if (!(e === "" || e === null || e === void 0))
488
488
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -499,72 +499,72 @@ const se = r.object({
499
499
  if (!(e === "" || e === null || e === void 0))
500
500
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
501
501
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
502
- }), Mr = n, me = r.object({
502
+ }), Wr = i, Ae = r.object({
503
503
  bucket: r.string(),
504
504
  prefix: r.optional(r.string()),
505
505
  filename: r.optional(r.string())
506
- }), Ae = r.object({
507
- provider: r.literal("google-cloud-storage"),
508
- options: r.optional(me)
509
506
  }), ye = r.object({
507
+ provider: r.literal("google-cloud-storage"),
508
+ options: r.optional(Ae)
509
+ }), be = r.object({
510
510
  folderId: r.string(),
511
511
  filename: r.optional(r.string())
512
- }), be = r.object({
513
- provider: r.literal("google-drive"),
514
- options: ye
515
512
  }), he = r.object({
513
+ provider: r.literal("google-drive"),
514
+ options: be
515
+ }), ze = r.object({
516
516
  playbackPolicy: r.optional(r.array(r.enum(["public", "signed"]))),
517
517
  passthrough: r.optional(r.string().max(255))
518
- }), ze = r.object({
519
- provider: r.literal("mux"),
520
- options: r.optional(he)
521
518
  }), $e = r.object({
519
+ provider: r.literal("mux"),
520
+ options: r.optional(ze)
521
+ }), Se = r.object({
522
522
  region: r.string(),
523
523
  bucket: r.string(),
524
524
  prefix: r.optional(r.string()),
525
525
  filename: r.optional(r.string()),
526
526
  acl: r.optional(r.string())
527
- }), Se = r.object({
528
- provider: r.literal("s3"),
529
- options: r.optional($e)
530
527
  }), Ze = r.object({
528
+ provider: r.literal("s3"),
529
+ options: r.optional(Se)
530
+ }), _e = r.object({
531
531
  provider: r.literal("shotstack"),
532
532
  exclude: r.optional(r.boolean())
533
- }), _e = r.object({
533
+ }), xe = r.object({
534
534
  title: r.optional(r.string().max(150)),
535
535
  privacyLevel: r.optional(r.enum(["public", "friends", "private"])),
536
536
  disableDuet: r.optional(r.boolean()).default(!1),
537
537
  disableStitch: r.optional(r.boolean()).default(!1),
538
538
  disableComment: r.optional(r.boolean()).default(!1)
539
- }), xe = r.object({
540
- provider: r.literal("tiktok"),
541
- options: r.optional(_e)
542
539
  }), Ne = r.object({
540
+ provider: r.literal("tiktok"),
541
+ options: r.optional(xe)
542
+ }), je = r.object({
543
543
  view: r.optional(r.enum(["anybody", "nobody", "contacts", "password", "unlisted"])),
544
544
  embed: r.optional(r.enum(["public", "private", "whitelist"])),
545
545
  comments: r.optional(r.enum(["anybody", "nobody", "contacts"])),
546
546
  download: r.optional(r.boolean()),
547
547
  add: r.optional(r.boolean())
548
- }), je = r.object({
548
+ }), we = r.object({
549
549
  name: r.optional(r.string()),
550
550
  description: r.optional(r.string()),
551
- privacy: r.optional(Ne),
551
+ privacy: r.optional(je),
552
552
  folderUri: r.optional(r.string())
553
- }), we = r.object({
553
+ }), Te = r.object({
554
554
  provider: r.literal("vimeo"),
555
- options: r.optional(je)
556
- }), s = r.discriminatedUnion("provider", [
555
+ options: r.optional(we)
556
+ }), a = r.discriminatedUnion("provider", [
557
+ _e,
558
+ $e,
557
559
  Ze,
558
- ze,
559
- Se,
560
- Ae,
561
- be,
562
- we,
563
- xe
564
- ]), Te = s, Fe = r.object({
560
+ ye,
561
+ he,
562
+ Te,
563
+ Ne
564
+ ]), Fe = a, ke = r.object({
565
565
  horizontal: r.optional(r.boolean()),
566
566
  vertical: r.optional(r.boolean())
567
- }), ke = r.object({
567
+ }), Re = r.object({
568
568
  src: r.string()
569
569
  }), g = r.object({
570
570
  type: r.enum(["html"]),
@@ -593,8 +593,8 @@ const se = r.object({
593
593
  }), Qr = g, m = r.object({
594
594
  type: r.enum(["image"]),
595
595
  src: r.string().min(1).regex(/\S/),
596
- crop: r.optional(n)
597
- }), Wr = m, A = r.object({
596
+ crop: r.optional(i)
597
+ }), Xr = m, A = r.object({
598
598
  type: r.enum(["image-to-video"]),
599
599
  src: r.string().min(1),
600
600
  prompt: r.optional(r.string()),
@@ -603,8 +603,8 @@ const se = r.object({
603
603
  if (!(e === "" || e === null || e === void 0))
604
604
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
605
605
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
606
- crop: r.optional(n)
607
- }), Xr = A, Re = r.object({
606
+ crop: r.optional(i)
607
+ }), Yr = A, Oe = r.object({
608
608
  preset: r.enum([
609
609
  "conference",
610
610
  "interview",
@@ -616,47 +616,47 @@ const se = r.object({
616
616
  "studio",
617
617
  "voice_over"
618
618
  ])
619
- }), Oe = r.object({
620
- provider: r.string().default("dolby"),
621
- options: Re
622
619
  }), De = r.object({
620
+ provider: r.string().default("dolby"),
621
+ options: Oe
622
+ }), Le = r.object({
623
623
  enhancement: r.literal("dolbyEnhancement_DolbyEnhancement")
624
- }).and(Oe), Le = r.object({
625
- audio: r.optional(De)
626
- }), Ie = r.object({
624
+ }).and(De), Ie = r.object({
625
+ audio: r.optional(Le)
626
+ }), Ge = r.object({
627
627
  status: r.string(),
628
628
  title: r.string(),
629
629
  detail: r.string()
630
630
  });
631
631
  r.object({
632
- errors: r.array(Ie)
632
+ errors: r.array(Ge)
633
633
  });
634
- const Ge = r.object({
634
+ const Ce = r.object({
635
635
  type: r.string(),
636
636
  id: r.string()
637
637
  });
638
638
  r.object({
639
- data: Ge
639
+ data: Ce
640
640
  });
641
- const Ce = r.object({
641
+ const Be = r.object({
642
642
  id: r.string(),
643
643
  url: r.string(),
644
644
  expires: r.string()
645
- }), Be = r.object({
645
+ }), Ee = r.object({
646
646
  type: r.string(),
647
647
  id: r.string(),
648
- attributes: Ce
648
+ attributes: Be
649
649
  });
650
650
  r.object({
651
- data: Be
651
+ data: Ee
652
652
  });
653
- const Ee = r.object({
653
+ const qe = r.object({
654
654
  speed: r.optional(r.union([r.preprocess((e) => {
655
655
  if (!(e === "" || e === null || e === void 0))
656
656
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
657
657
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
658
658
  preservePitch: r.optional(r.boolean())
659
- }), qe = r.object({
659
+ }), Pe = r.object({
660
660
  format: r.optional(r.enum(["srt", "vtt"]))
661
661
  }), y = r.object({
662
662
  type: r.enum(["luma"]),
@@ -665,15 +665,15 @@ const Ee = r.object({
665
665
  if (!(e === "" || e === null || e === void 0))
666
666
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
667
667
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
668
- }), Yr = y, b = r.object({
668
+ }), vr = y, b = r.object({
669
669
  find: r.string(),
670
670
  replace: r.union([r.string(), r.number(), r.boolean(), r.null(), r.record(r.string(), r.unknown()), r.array(r.unknown())])
671
- }), Pe = r.object({
671
+ }), Ue = r.object({
672
672
  capture: r.union([r.preprocess((e) => {
673
673
  if (!(e === "" || e === null || e === void 0))
674
674
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
675
675
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
676
- }), Ue = r.object({
676
+ }), Je = r.object({
677
677
  start: r.optional(r.union([r.preprocess((e) => {
678
678
  if (!(e === "" || e === null || e === void 0))
679
679
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -682,7 +682,7 @@ const Ee = r.object({
682
682
  if (!(e === "" || e === null || e === void 0))
683
683
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
684
684
  }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
685
- }), Je = r.object({
685
+ }), Ve = r.object({
686
686
  id: r.string(),
687
687
  owner: r.string(),
688
688
  region: r.optional(r.string()),
@@ -695,7 +695,7 @@ const Ee = r.object({
695
695
  updated: r.optional(r.string())
696
696
  }), h = r.object({
697
697
  type: r.string(),
698
- attributes: Je
698
+ attributes: Ve
699
699
  });
700
700
  r.object({
701
701
  data: r.array(h)
@@ -708,42 +708,42 @@ r.object({
708
708
  message: r.string(),
709
709
  response: r.record(r.string(), r.unknown())
710
710
  });
711
- const Ve = r.object({
711
+ const He = r.object({
712
712
  message: r.string(),
713
713
  id: r.string()
714
714
  });
715
715
  r.object({
716
716
  success: r.boolean(),
717
717
  message: r.string(),
718
- response: Ve
718
+ response: He
719
719
  });
720
- const He = r.object({
720
+ const Ke = r.object({
721
721
  id: r.string(),
722
722
  name: r.string(),
723
723
  created: r.optional(r.string()),
724
724
  updated: r.optional(r.string())
725
- }), Ke = r.object({
725
+ }), Me = r.object({
726
726
  owner: r.string(),
727
- templates: r.array(He)
727
+ templates: r.array(Ke)
728
728
  });
729
729
  r.object({
730
730
  success: r.boolean(),
731
731
  message: r.string(),
732
- response: Ke
732
+ response: Me
733
733
  });
734
- const Me = r.object({
734
+ const We = r.object({
735
735
  message: r.string(),
736
736
  id: r.string()
737
737
  });
738
738
  r.object({
739
739
  success: r.boolean(),
740
740
  message: r.string(),
741
- response: Me
741
+ response: We
742
742
  });
743
743
  const Qe = r.object({
744
744
  horizontal: r.optional(r.enum(["left", "center", "right"])),
745
745
  vertical: r.optional(r.enum(["top", "middle", "bottom"]))
746
- }), We = r.object({
746
+ }), Xe = r.object({
747
747
  preset: r.enum([
748
748
  "fadeIn",
749
749
  "slideIn",
@@ -758,7 +758,7 @@ const Qe = r.object({
758
758
  }, r.number().gte(0.1).lte(30)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
759
759
  style: r.optional(r.enum(["character", "word"])),
760
760
  direction: r.optional(r.enum(["left", "right", "up", "down"]))
761
- }), Xe = r.object({
761
+ }), Ye = r.object({
762
762
  color: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
763
763
  opacity: r.optional(r.union([r.preprocess((e) => {
764
764
  if (!(e === "" || e === null || e === void 0))
@@ -768,7 +768,7 @@ const Qe = r.object({
768
768
  if (!(e === "" || e === null || e === void 0))
769
769
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
770
770
  }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
771
- }), Ye = r.object({
771
+ }), ve = r.object({
772
772
  width: r.optional(r.union([r.preprocess((e) => {
773
773
  if (!(e === "" || e === null || e === void 0))
774
774
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -782,7 +782,7 @@ const Qe = r.object({
782
782
  if (!(e === "" || e === null || e === void 0))
783
783
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
784
784
  }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
785
- }), ve = r.object({
785
+ }), er = r.object({
786
786
  type: r.optional(r.enum(["linear", "radial"])),
787
787
  angle: r.optional(r.union([r.preprocess((e) => {
788
788
  if (!(e === "" || e === null || e === void 0))
@@ -795,7 +795,7 @@ const Qe = r.object({
795
795
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
796
796
  color: r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
797
797
  })).min(2)
798
- }), er = r.object({
798
+ }), rr = r.object({
799
799
  top: r.optional(r.union([r.preprocess((e) => {
800
800
  if (!(e === "" || e === null || e === void 0))
801
801
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -812,7 +812,7 @@ const Qe = r.object({
812
812
  if (!(e === "" || e === null || e === void 0))
813
813
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
814
814
  }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
815
- }), rr = r.object({
815
+ }), tr = r.object({
816
816
  offsetX: r.optional(r.union([r.preprocess((e) => {
817
817
  if (!(e === "" || e === null || e === void 0))
818
818
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -830,7 +830,7 @@ const Qe = r.object({
830
830
  if (!(e === "" || e === null || e === void 0))
831
831
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
832
832
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
833
- }), tr = r.object({
833
+ }), z = r.object({
834
834
  width: r.optional(r.union([r.preprocess((e) => {
835
835
  if (!(e === "" || e === null || e === void 0))
836
836
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -853,7 +853,7 @@ const Qe = r.object({
853
853
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
854
854
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
855
855
  background: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
856
- stroke: r.optional(tr)
856
+ stroke: r.optional(z)
857
857
  }), ir = r.object({
858
858
  letterSpacing: r.optional(r.union([r.preprocess((e) => {
859
859
  if (!(e === "" || e === null || e === void 0))
@@ -865,22 +865,23 @@ const Qe = r.object({
865
865
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
866
866
  textTransform: r.optional(r.enum(["none", "uppercase", "lowercase", "capitalize"])),
867
867
  textDecoration: r.optional(r.enum(["none", "underline", "line-through"])),
868
- gradient: r.optional(ve)
869
- }), z = r.object({
868
+ gradient: r.optional(er)
869
+ }), $ = r.object({
870
870
  type: r.enum(["rich-text"]),
871
871
  text: r.string().max(5e3),
872
872
  font: r.optional(nr),
873
873
  style: r.optional(ir),
874
- shadow: r.optional(rr),
875
- background: r.optional(Xe),
876
- border: r.optional(Ye),
874
+ stroke: r.optional(z),
875
+ shadow: r.optional(tr),
876
+ background: r.optional(Ye),
877
+ border: r.optional(ve),
877
878
  padding: r.optional(r.union([r.union([r.preprocess((e) => {
878
879
  if (!(e === "" || e === null || e === void 0))
879
880
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
880
- }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), er])),
881
+ }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), rr])),
881
882
  align: r.optional(Qe),
882
- animation: r.optional(We)
883
- }), vr = z, sr = r.object({
883
+ animation: r.optional(Xe)
884
+ }), et = $, sr = r.object({
884
885
  id: r.optional(r.string()),
885
886
  owner: r.optional(r.string()),
886
887
  status: r.optional(r.enum(["queued", "failed"])),
@@ -895,8 +896,8 @@ r.object({
895
896
  const ar = r.object({
896
897
  url: r.string(),
897
898
  id: r.string(),
898
- destinations: r.array(s)
899
- }), $ = r.object({
899
+ destinations: r.array(a)
900
+ }), S = r.object({
900
901
  type: r.enum(["shape"]),
901
902
  shape: r.enum(["rectangle", "circle", "line"]),
902
903
  width: r.optional(r.union([r.preprocess((e) => {
@@ -951,7 +952,7 @@ const ar = r.object({
951
952
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
952
953
  }, r.number().int()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
953
954
  }))
954
- }), et = $, l = r.object({
955
+ }), rt = S, p = r.object({
955
956
  width: r.optional(r.union([r.preprocess((e) => {
956
957
  if (!(e === "" || e === null || e === void 0))
957
958
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -960,7 +961,7 @@ const ar = r.object({
960
961
  if (!(e === "" || e === null || e === void 0))
961
962
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
962
963
  }, r.number().int().gte(1).lte(4096)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
963
- }), ur = l, S = r.object({
964
+ }), ur = p, Z = r.object({
964
965
  format: r.optional(r.enum([
965
966
  "mp4",
966
967
  "webm",
@@ -978,7 +979,7 @@ const ar = r.object({
978
979
  "webp",
979
980
  "tif"
980
981
  ])),
981
- size: r.optional(l),
982
+ size: r.optional(p),
982
983
  fit: r.optional(r.enum(["cover", "contain", "crop"])),
983
984
  resolution: r.optional(r.enum(["preview", "mobile", "sd", "hd", "fhd"])),
984
985
  quality: r.optional(r.union([r.preprocess((e) => {
@@ -998,18 +999,18 @@ const ar = r.object({
998
999
  r.literal(59.94),
999
1000
  r.literal(60)
1000
1001
  ])),
1001
- speed: r.optional(Ee),
1002
+ speed: r.optional(qe),
1002
1003
  keyframeInterval: r.optional(r.union([r.preprocess((e) => {
1003
1004
  if (!(e === "" || e === null || e === void 0))
1004
1005
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1005
1006
  }, r.number().int().gte(1).lte(300)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1006
1007
  fixOffset: r.optional(r.boolean()),
1007
1008
  fixRotation: r.optional(r.boolean()),
1008
- enhance: r.optional(Le),
1009
+ enhance: r.optional(Ie),
1009
1010
  filename: r.optional(r.string())
1010
1011
  }), fr = r.object({
1011
- renditions: r.optional(r.array(S)),
1012
- transcription: r.optional(qe)
1012
+ renditions: r.optional(r.array(Z)),
1013
+ transcription: r.optional(Pe)
1013
1014
  }), lr = r.object({
1014
1015
  id: r.string(),
1015
1016
  status: r.optional(r.enum([
@@ -1025,7 +1026,7 @@ const ar = r.object({
1025
1026
  if (!(e === "" || e === null || e === void 0))
1026
1027
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1027
1028
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1028
- transformation: r.optional(S),
1029
+ transformation: r.optional(Z),
1029
1030
  width: r.optional(r.union([r.preprocess((e) => {
1030
1031
  if (!(e === "" || e === null || e === void 0))
1031
1032
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1076,21 +1077,21 @@ const ar = r.object({
1076
1077
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1077
1078
  created: r.optional(r.string()),
1078
1079
  updated: r.optional(r.string())
1079
- }), Z = r.object({
1080
+ }), _ = r.object({
1080
1081
  type: r.string(),
1081
1082
  id: r.string(),
1082
1083
  attributes: dr
1083
1084
  });
1084
1085
  r.object({
1085
- data: r.array(Z)
1086
+ data: r.array(_)
1086
1087
  });
1087
1088
  r.object({
1088
- data: Z
1089
+ data: _
1089
1090
  });
1090
1091
  const cr = r.object({
1091
1092
  url: r.optional(r.string()),
1092
1093
  outputs: r.optional(fr),
1093
- destinations: r.optional(s),
1094
+ destinations: r.optional(a),
1094
1095
  callback: r.optional(r.string())
1095
1096
  }), gr = r.object({
1096
1097
  src: r.string().min(1).regex(/\S/),
@@ -1099,7 +1100,7 @@ const cr = r.object({
1099
1100
  if (!(e === "" || e === null || e === void 0))
1100
1101
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1101
1102
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1102
- }), _ = r.object({
1103
+ }), x = r.object({
1103
1104
  offset: r.union([r.preprocess((e) => {
1104
1105
  if (!(e === "" || e === null || e === void 0))
1105
1106
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1111,14 +1112,14 @@ const cr = r.object({
1111
1112
  if (!(e === "" || e === null || e === void 0))
1112
1113
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1113
1114
  }, r.number().gte(0).lte(360)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1114
- stops: r.array(_).min(2),
1115
+ stops: r.array(x).min(2),
1115
1116
  opacity: r.optional(r.union([r.preprocess((e) => {
1116
1117
  if (!(e === "" || e === null || e === void 0))
1117
1118
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1118
1119
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1119
1120
  }), Ar = r.object({
1120
1121
  type: r.enum(["radial"]),
1121
- stops: r.array(_).min(2),
1122
+ stops: r.array(x).min(2),
1122
1123
  opacity: r.optional(r.union([r.preprocess((e) => {
1123
1124
  if (!(e === "" || e === null || e === void 0))
1124
1125
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1324,7 +1325,7 @@ const cr = r.object({
1324
1325
  _r,
1325
1326
  kr,
1326
1327
  wr
1327
- ]), x = r.object({
1328
+ ]), N = r.object({
1328
1329
  type: r.enum(["svg"]),
1329
1330
  src: r.optional(r.string().min(1).max(5e5)),
1330
1331
  shape: r.optional(Or),
@@ -1344,26 +1345,26 @@ const cr = r.object({
1344
1345
  if (!(e === "" || e === null || e === void 0))
1345
1346
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1346
1347
  }, r.number().int().gte(1).lte(4096)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1347
- }).superRefine((e, a) => {
1348
- const d = e.shape !== void 0, u = e.src !== void 0 && e.src.trim() !== "";
1349
- if (!d && !u && a.addIssue({
1348
+ }).superRefine((e, o) => {
1349
+ const f = e.shape !== void 0, n = e.src !== void 0 && e.src.trim() !== "";
1350
+ if (!f && !n && o.addIssue({
1350
1351
  code: r.ZodIssueCode.custom,
1351
1352
  message: "Either 'src' or 'shape' must be provided",
1352
1353
  path: []
1353
- }), d && u && a.addIssue({
1354
+ }), f && n && o.addIssue({
1354
1355
  code: r.ZodIssueCode.custom,
1355
1356
  message: "Provide either 'src' or 'shape', not both",
1356
1357
  path: ["src"]
1357
- }), u) {
1358
- const B = ["shape", "fill", "stroke", "shadow", "transform", "width", "height"];
1359
- for (const f of B)
1360
- e[f] !== void 0 && a.addIssue({
1358
+ }), n) {
1359
+ const E = ["shape", "fill", "stroke", "shadow", "transform", "width", "height"];
1360
+ for (const l of E)
1361
+ e[l] !== void 0 && o.addIssue({
1361
1362
  code: r.ZodIssueCode.custom,
1362
- message: `'${f}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,
1363
- path: [f]
1363
+ message: `'${l}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,
1364
+ path: [l]
1364
1365
  });
1365
1366
  }
1366
- }), rt = x, Dr = r.object({
1367
+ }), tt = N, Dr = r.object({
1367
1368
  id: r.string(),
1368
1369
  merge: r.optional(r.array(b))
1369
1370
  }), Lr = r.object({
@@ -1414,7 +1415,7 @@ const cr = r.object({
1414
1415
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1415
1416
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1416
1417
  color: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1417
- }), N = r.object({
1418
+ }), j = r.object({
1418
1419
  type: r.enum(["text"]),
1419
1420
  text: r.string(),
1420
1421
  width: r.optional(r.union([r.preprocess((e) => {
@@ -1431,7 +1432,7 @@ const cr = r.object({
1431
1432
  stroke: r.optional(Br),
1432
1433
  animation: r.optional(Ir),
1433
1434
  ellipsis: r.optional(r.string())
1434
- }), tt = N, j = r.object({
1435
+ }), nt = j, w = r.object({
1435
1436
  type: r.enum(["text-to-image"]),
1436
1437
  prompt: r.string(),
1437
1438
  width: r.optional(r.union([r.preprocess((e) => {
@@ -1442,8 +1443,8 @@ const cr = r.object({
1442
1443
  if (!(e === "" || e === null || e === void 0))
1443
1444
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1444
1445
  }, r.number().int()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1445
- crop: r.optional(n)
1446
- }), nt = j, Er = r.object({
1446
+ crop: r.optional(i)
1447
+ }), it = w, Er = r.object({
1447
1448
  capture: r.union([r.preprocess((e) => {
1448
1449
  if (!(e === "" || e === null || e === void 0))
1449
1450
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1452,11 +1453,11 @@ const cr = r.object({
1452
1453
  if (!(e === "" || e === null || e === void 0))
1453
1454
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1454
1455
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1455
- }), w = r.object({
1456
+ }), T = r.object({
1456
1457
  format: r.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
1457
1458
  resolution: r.optional(r.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
1458
1459
  aspectRatio: r.optional(r.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
1459
- size: r.optional(l),
1460
+ size: r.optional(p),
1460
1461
  fps: r.optional(r.union([
1461
1462
  r.literal(12),
1462
1463
  r.literal(15),
@@ -1474,11 +1475,11 @@ const cr = r.object({
1474
1475
  quality: r.optional(r.enum(["verylow", "low", "medium", "high", "veryhigh"])),
1475
1476
  repeat: r.optional(r.boolean()),
1476
1477
  mute: r.optional(r.boolean()),
1477
- range: r.optional(Ue),
1478
- poster: r.optional(Pe),
1478
+ range: r.optional(Je),
1479
+ poster: r.optional(Ue),
1479
1480
  thumbnail: r.optional(Er),
1480
- destinations: r.optional(r.array(s))
1481
- }), o = w, T = r.object({
1481
+ destinations: r.optional(r.array(a))
1482
+ }), u = T, F = r.object({
1482
1483
  in: r.optional(r.enum([
1483
1484
  "none",
1484
1485
  "fade",
@@ -1607,7 +1608,7 @@ const cr = r.object({
1607
1608
  "shuffleTopLeftFast",
1608
1609
  "zoom"
1609
1610
  ]))
1610
- }), it = T, t = r.object({
1611
+ }), st = F, t = r.object({
1611
1612
  from: r.optional(r.unknown()),
1612
1613
  to: r.optional(r.unknown()),
1613
1614
  start: r.optional(r.union([r.preprocess((e) => {
@@ -1649,7 +1650,7 @@ const cr = r.object({
1649
1650
  "easeInOutCirc",
1650
1651
  "easeInOutBack"
1651
1652
  ]))
1652
- }), st = t, F = r.object({
1653
+ }), ot = t, k = r.object({
1653
1654
  type: r.enum(["audio"]),
1654
1655
  src: r.string().min(1).regex(/\S/),
1655
1656
  trim: r.optional(r.union([r.preprocess((e) => {
@@ -1665,7 +1666,7 @@ const cr = r.object({
1665
1666
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1666
1667
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1667
1668
  effect: r.optional(r.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]))
1668
- }), ot = F, p = r.object({
1669
+ }), at = k, d = r.object({
1669
1670
  x: r.optional(r.union([r.union([r.preprocess((e) => {
1670
1671
  if (!(e === "" || e === null || e === void 0))
1671
1672
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1674,7 +1675,7 @@ const cr = r.object({
1674
1675
  if (!(e === "" || e === null || e === void 0))
1675
1676
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1676
1677
  }, r.number().gte(-10).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), r.array(t)]))
1677
- }), at = p, qr = r.object({
1678
+ }), ut = d, qr = r.object({
1678
1679
  angle: r.optional(r.union([r.union([r.preprocess((e) => {
1679
1680
  if (!(e === "" || e === null || e === void 0))
1680
1681
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1688,7 +1689,7 @@ const cr = r.object({
1688
1689
  if (!(e === "" || e === null || e === void 0))
1689
1690
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1690
1691
  }, r.number().gte(-100).lte(100)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), r.array(t)]))
1691
- }), k = r.object({
1692
+ }), R = r.object({
1692
1693
  type: r.enum(["text-to-speech"]),
1693
1694
  text: r.string(),
1694
1695
  voice: r.string(),
@@ -1707,7 +1708,7 @@ const cr = r.object({
1707
1708
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1708
1709
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1709
1710
  effect: r.optional(r.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]))
1710
- }), ut = k, Ur = r.object({
1711
+ }), ft = R, Ur = r.object({
1711
1712
  type: r.enum(["title"]),
1712
1713
  text: r.string(),
1713
1714
  style: r.optional(r.enum([
@@ -1744,12 +1745,12 @@ const cr = r.object({
1744
1745
  "topLeft",
1745
1746
  "center"
1746
1747
  ])),
1747
- offset: r.optional(p)
1748
- }), R = r.object({
1748
+ offset: r.optional(d)
1749
+ }), O = r.object({
1749
1750
  rotate: r.optional(qr),
1750
1751
  skew: r.optional(Pr),
1751
- flip: r.optional(Fe)
1752
- }), ft = R, O = r.object({
1752
+ flip: r.optional(ke)
1753
+ }), lt = O, D = r.object({
1753
1754
  type: r.enum(["video"]),
1754
1755
  src: r.string().min(1).regex(/\S/),
1755
1756
  transcode: r.optional(r.boolean()),
@@ -1766,25 +1767,25 @@ const cr = r.object({
1766
1767
  if (!(e === "" || e === null || e === void 0))
1767
1768
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1768
1769
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1769
- crop: r.optional(n),
1770
- chromaKey: r.optional(U)
1771
- }), lt = O, D = r.discriminatedUnion("type", [
1772
- O,
1770
+ crop: r.optional(i),
1771
+ chromaKey: r.optional(J)
1772
+ }), pt = D, L = r.discriminatedUnion("type", [
1773
+ D,
1773
1774
  m,
1774
- N,
1775
- z,
1776
- F,
1775
+ j,
1776
+ $,
1777
+ k,
1777
1778
  y,
1778
1779
  c,
1779
1780
  g,
1780
1781
  Ur,
1781
- $,
1782
- x,
1783
- j,
1782
+ S,
1783
+ N,
1784
+ w,
1784
1785
  A,
1785
- k
1786
- ]), pt = D, L = r.object({
1787
- asset: D,
1786
+ R
1787
+ ]), dt = L, I = r.object({
1788
+ asset: L,
1788
1789
  start: r.union([
1789
1790
  r.union([r.preprocess((e) => {
1790
1791
  if (!(e === "" || e === null || e === void 0))
@@ -1823,8 +1824,8 @@ const cr = r.object({
1823
1824
  "topLeft",
1824
1825
  "center"
1825
1826
  ])),
1826
- offset: r.optional(p),
1827
- transition: r.optional(T),
1827
+ offset: r.optional(d),
1828
+ transition: r.optional(F),
1828
1829
  effect: r.optional(r.enum([
1829
1830
  "zoomIn",
1830
1831
  "zoomInSlow",
@@ -1860,23 +1861,29 @@ const cr = r.object({
1860
1861
  if (!(e === "" || e === null || e === void 0))
1861
1862
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1862
1863
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), r.array(t)])),
1863
- transform: r.optional(R),
1864
+ transform: r.optional(O),
1864
1865
  alias: r.optional(r.union([r.string().regex(/^[A-Za-z0-9_-]+$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1865
- }), dt = L, I = r.object({
1866
- clips: r.array(L).min(1)
1867
- }), ct = I, G = r.object({
1866
+ }), ct = I, Jr = I.transform((e) => {
1867
+ if (e.asset && typeof e.asset == "object" && "type" in e.asset && e.asset.type === "rich-text") {
1868
+ const { fit: f, ...n } = e;
1869
+ return n;
1870
+ }
1871
+ return e;
1872
+ }), G = r.object({
1873
+ clips: r.array(Jr).min(1)
1874
+ }), gt = G, C = r.object({
1868
1875
  soundtrack: r.optional(gr),
1869
1876
  background: r.optional(r.string()),
1870
- fonts: r.optional(r.array(ke)),
1871
- tracks: r.array(I).min(1),
1877
+ fonts: r.optional(r.array(Re)),
1878
+ tracks: r.array(G).min(1),
1872
1879
  cache: r.optional(r.boolean())
1873
- }), gt = G, i = r.object({
1874
- timeline: G,
1875
- output: w,
1880
+ }), mt = C, s = r.object({
1881
+ timeline: C,
1882
+ output: T,
1876
1883
  merge: r.optional(r.array(b)),
1877
1884
  callback: r.optional(r.string()),
1878
1885
  disk: r.optional(r.enum(["local", "mount"]))
1879
- }), mt = i, Jr = r.object({
1886
+ }), At = s, Vr = r.object({
1880
1887
  id: r.string(),
1881
1888
  owner: r.string(),
1882
1889
  plan: r.optional(r.string()),
@@ -1901,32 +1908,32 @@ const cr = r.object({
1901
1908
  url: r.optional(r.string()),
1902
1909
  poster: r.optional(r.union([r.string(), r.null()])),
1903
1910
  thumbnail: r.optional(r.union([r.string(), r.null()])),
1904
- data: r.optional(i),
1911
+ data: r.optional(s),
1905
1912
  created: r.optional(r.string()),
1906
1913
  updated: r.optional(r.string())
1907
1914
  });
1908
1915
  r.object({
1909
1916
  success: r.boolean(),
1910
1917
  message: r.string(),
1911
- response: Jr
1918
+ response: Vr
1912
1919
  });
1913
- const Vr = r.object({
1920
+ const Hr = r.object({
1914
1921
  id: r.string(),
1915
1922
  name: r.string(),
1916
1923
  owner: r.string(),
1917
- template: i
1924
+ template: s
1918
1925
  });
1919
1926
  r.object({
1920
1927
  success: r.boolean(),
1921
1928
  message: r.string(),
1922
- response: Vr
1929
+ response: Hr
1923
1930
  });
1924
- const C = r.object({
1931
+ const B = r.object({
1925
1932
  name: r.string(),
1926
- template: r.optional(i)
1933
+ template: r.optional(s)
1927
1934
  });
1928
1935
  r.object({
1929
- body: i,
1936
+ body: s,
1930
1937
  path: r.optional(r.never()),
1931
1938
  query: r.optional(r.never())
1932
1939
  });
@@ -1946,7 +1953,7 @@ r.object({
1946
1953
  query: r.optional(r.never())
1947
1954
  });
1948
1955
  r.object({
1949
- body: C,
1956
+ body: B,
1950
1957
  path: r.optional(r.never()),
1951
1958
  query: r.optional(r.never())
1952
1959
  });
@@ -1966,7 +1973,7 @@ r.object({
1966
1973
  query: r.optional(r.never())
1967
1974
  });
1968
1975
  r.object({
1969
- body: C,
1976
+ body: B,
1970
1977
  path: r.object({
1971
1978
  id: r.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
1972
1979
  }),
@@ -2042,7 +2049,7 @@ r.object({
2042
2049
  query: r.optional(r.never())
2043
2050
  });
2044
2051
  r.object({
2045
- body: ge,
2052
+ body: me,
2046
2053
  path: r.optional(r.never()),
2047
2054
  query: r.optional(r.never())
2048
2055
  });
@@ -2053,38 +2060,38 @@ r.object({
2053
2060
  }),
2054
2061
  query: r.optional(r.never())
2055
2062
  });
2056
- const At = Te, yt = ur, bt = o.shape.format, ht = o.shape.fps.unwrap(), zt = o.shape.resolution, $t = o.shape.aspectRatio, St = r.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);
2063
+ const yt = Fe, bt = ur, ht = u.shape.format, zt = u.shape.fps.unwrap(), $t = u.shape.resolution, St = u.shape.aspectRatio, Zt = r.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);
2057
2064
  export {
2058
- pt as AssetSchema,
2059
- ot as AudioAssetSchema,
2060
- Kr as CaptionAssetSchema,
2061
- dt as ClipSchema,
2062
- Mr as CropSchema,
2063
- At as DestinationSchema,
2064
- mt as EditSchema,
2065
- St as HexColorSchema,
2065
+ dt as AssetSchema,
2066
+ at as AudioAssetSchema,
2067
+ Mr as CaptionAssetSchema,
2068
+ ct as ClipSchema,
2069
+ Wr as CropSchema,
2070
+ yt as DestinationSchema,
2071
+ At as EditSchema,
2072
+ Zt as HexColorSchema,
2066
2073
  Qr as HtmlAssetSchema,
2067
- Wr as ImageAssetSchema,
2068
- Xr as ImageToVideoAssetSchema,
2069
- st as KeyframeSchema,
2070
- Yr as LumaAssetSchema,
2071
- at as OffsetSchema,
2072
- $t as OutputAspectRatioSchema,
2073
- bt as OutputFormatSchema,
2074
- ht as OutputFpsSchema,
2075
- zt as OutputResolutionSchema,
2076
- o as OutputSchema,
2077
- yt as OutputSizeSchema,
2078
- vr as RichTextAssetSchema,
2079
- et as ShapeAssetSchema,
2080
- rt as SvgAssetSchema,
2081
- tt as TextAssetSchema,
2082
- nt as TextToImageAssetSchema,
2083
- ut as TextToSpeechAssetSchema,
2084
- gt as TimelineSchema,
2085
- ct as TrackSchema,
2086
- ft as TransformationSchema,
2087
- it as TransitionSchema,
2088
- st as TweenSchema,
2089
- lt as VideoAssetSchema
2074
+ Xr as ImageAssetSchema,
2075
+ Yr as ImageToVideoAssetSchema,
2076
+ ot as KeyframeSchema,
2077
+ vr as LumaAssetSchema,
2078
+ ut as OffsetSchema,
2079
+ St as OutputAspectRatioSchema,
2080
+ ht as OutputFormatSchema,
2081
+ zt as OutputFpsSchema,
2082
+ $t as OutputResolutionSchema,
2083
+ u as OutputSchema,
2084
+ bt as OutputSizeSchema,
2085
+ et as RichTextAssetSchema,
2086
+ rt as ShapeAssetSchema,
2087
+ tt as SvgAssetSchema,
2088
+ nt as TextAssetSchema,
2089
+ it as TextToImageAssetSchema,
2090
+ ft as TextToSpeechAssetSchema,
2091
+ mt as TimelineSchema,
2092
+ gt as TrackSchema,
2093
+ lt as TransformationSchema,
2094
+ st as TransitionSchema,
2095
+ ot as TweenSchema,
2096
+ pt as VideoAssetSchema
2090
2097
  };