@shotstack/shotstack-studio 2.0.0-beta.34 → 2.0.0-beta.36

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 q = r.object({
18
+ const K = 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 q = 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
- }), P = r.object({
32
+ }).strict(), M = 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 q = 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
- }), U = r.object({
52
+ }).strict(), W = 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;
@@ -62,12 +62,12 @@ const q = r.object({
62
62
  if (!(e === "" || e === null || e === void 0))
63
63
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
64
64
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
65
- }), c = r.object({
65
+ }).strict(), g = r.object({
66
66
  type: r.enum(["caption"]),
67
67
  src: r.string().min(1).regex(/\S/),
68
- font: r.optional(P),
69
- background: r.optional(q),
70
- margin: r.optional(U),
68
+ font: r.optional(M),
69
+ background: r.optional(K),
70
+ margin: r.optional(W),
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 q = 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
- }), Mr = c, J = r.object({
79
+ }).strict(), st = g, Q = 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 q = 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
- }), V = r.object({
89
+ }).strict(), X = 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
- }), H = r.object({
94
+ }).strict(), Y = r.object({
95
95
  type: r.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")
96
- }).and(V), K = r.object({
96
+ }).and(X), v = r.object({
97
97
  provider: r.enum(["d-id"]),
98
- options: H
99
- }), M = r.object({
98
+ options: Y
99
+ }).strict(), ee = 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 q = r.object({
110
110
  "Rachel",
111
111
  "Sam"
112
112
  ])
113
- }), W = r.object({
113
+ }).strict(), re = r.object({
114
114
  type: r.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")
115
- }).and(M), Q = r.object({
115
+ }).and(ee), te = r.object({
116
116
  provider: r.enum(["elevenlabs"]),
117
- options: W
118
- }), X = r.object({
117
+ options: re
118
+ }).strict(), ne = 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 q = 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
- }), Y = r.object({
238
+ }).strict(), ie = r.object({
239
239
  type: r.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")
240
- }).and(X), v = r.object({
240
+ }).and(ne), se = r.object({
241
241
  provider: r.enum(["heygen"]),
242
- options: Y
243
- }), ee = r.object({
242
+ options: ie
243
+ }).strict(), oe = 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
- }), re = r.object({
248
+ }).strict(), ae = r.object({
249
249
  type: r.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")
250
- }).and(ee), te = r.object({
250
+ }).and(oe), ue = r.object({
251
251
  provider: r.enum(["openai"]),
252
- options: re
253
- }), ne = r.object({
252
+ options: ae
253
+ }).strict(), fe = r.object({
254
254
  status: r.string(),
255
255
  title: r.string(),
256
256
  detail: r.string()
257
- });
257
+ }).strict();
258
258
  r.object({
259
- errors: r.array(ne)
260
- });
261
- const ie = r.object({
259
+ errors: r.array(fe)
260
+ }).strict();
261
+ const le = 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 ie = r.object({
266
266
  status: r.enum(["queued", "processing", "saving", "done", "failed"]),
267
267
  created: r.string(),
268
268
  updated: r.string()
269
- }), se = r.object({
269
+ }).strict(), pe = r.object({
270
270
  type: r.string(),
271
271
  id: r.string(),
272
- attributes: ie
273
- });
272
+ attributes: le
273
+ }).strict();
274
274
  r.object({
275
- data: se
276
- });
277
- const oe = r.object({
275
+ data: pe
276
+ }).strict();
277
+ const ce = 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 oe = 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
- }), ae = r.object({
288
+ }).strict(), de = r.object({
289
289
  type: r.enum(["text-generator"]),
290
290
  prompt: r.string()
291
- }), ue = r.object({
291
+ }).strict(), ge = 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 oe = 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
- }), fe = r.object({
302
+ }).strict(), me = 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 oe = r.object({
393
393
  "fi-FI"
394
394
  ])),
395
395
  newscaster: r.optional(r.boolean()).default(!1)
396
- }), le = r.union([
396
+ }).strict(), Ae = r.union([
397
397
  r.object({
398
398
  type: r.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")
399
- }).and(fe),
399
+ }).and(me),
400
400
  r.object({
401
401
  type: r.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")
402
- }).and(ue),
402
+ }).and(ge),
403
403
  r.object({
404
404
  type: r.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")
405
- }).and(ae),
405
+ }).and(de),
406
406
  r.object({
407
407
  type: r.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")
408
- }).and(oe)
409
- ]), pe = r.object({
408
+ }).and(ce)
409
+ ]), ye = r.object({
410
410
  provider: r.enum(["shotstack"]),
411
- options: le
412
- }), de = r.object({
411
+ options: Ae
412
+ }).strict(), be = r.object({
413
413
  type: r.enum(["text-to-image"]),
414
414
  prompt: r.string(),
415
415
  engine: r.optional(r.enum([
@@ -458,30 +458,30 @@ const oe = r.object({
458
458
  "pixel-art",
459
459
  "tile-texture"
460
460
  ]))
461
- }), ce = r.object({
461
+ }).strict(), he = r.object({
462
462
  type: r.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")
463
- }).and(de), ge = r.object({
463
+ }).and(be), ze = r.object({
464
464
  provider: r.enum(["stability-ai"]),
465
- options: ce
466
- }), me = r.union([
465
+ options: he
466
+ }).strict(), $e = r.union([
467
467
  r.object({
468
468
  provider: r.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")
469
- }).and(pe),
469
+ }).and(ye),
470
470
  r.object({
471
471
  provider: r.literal("didGeneratedAsset_DIDGeneratedAsset")
472
- }).and(K),
472
+ }).and(v),
473
473
  r.object({
474
474
  provider: r.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")
475
- }).and(Q),
475
+ }).and(te),
476
476
  r.object({
477
477
  provider: r.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")
478
- }).and(v),
478
+ }).and(se),
479
479
  r.object({
480
480
  provider: r.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")
481
- }).and(te),
481
+ }).and(ue),
482
482
  r.object({
483
483
  provider: r.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")
484
- }).and(ge)
484
+ }).and(ze)
485
485
  ]), i = r.object({
486
486
  top: r.optional(r.union([r.preprocess((e) => {
487
487
  if (!(e === "" || e === null || e === void 0))
@@ -499,74 +499,74 @@ const oe = 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
- }), Wr = i, Ae = r.object({
502
+ }).strict(), ot = i, Ze = r.object({
503
503
  bucket: r.string(),
504
504
  prefix: r.optional(r.string()),
505
505
  filename: r.optional(r.string())
506
- }), ye = r.object({
506
+ }).strict(), _e = r.object({
507
507
  provider: r.literal("google-cloud-storage"),
508
- options: r.optional(Ae)
509
- }), be = r.object({
508
+ options: r.optional(Ze)
509
+ }).strict(), Se = r.object({
510
510
  folderId: r.string(),
511
511
  filename: r.optional(r.string())
512
- }), he = r.object({
512
+ }).strict(), xe = r.object({
513
513
  provider: r.literal("google-drive"),
514
- options: be
515
- }), ze = r.object({
514
+ options: Se
515
+ }).strict(), Ne = r.object({
516
516
  playbackPolicy: r.optional(r.array(r.enum(["public", "signed"]))),
517
517
  passthrough: r.optional(r.string().max(255))
518
- }), $e = r.object({
518
+ }).strict(), je = r.object({
519
519
  provider: r.literal("mux"),
520
- options: r.optional(ze)
521
- }), Se = r.object({
520
+ options: r.optional(Ne)
521
+ }).strict(), we = 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
- }), Ze = r.object({
527
+ }).strict(), Te = r.object({
528
528
  provider: r.literal("s3"),
529
- options: r.optional(Se)
530
- }), _e = r.object({
529
+ options: r.optional(we)
530
+ }).strict(), ke = r.object({
531
531
  provider: r.literal("shotstack"),
532
532
  exclude: r.optional(r.boolean())
533
- }), xe = r.object({
533
+ }).strict(), Fe = 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
- }), Ne = r.object({
539
+ }).strict(), Re = r.object({
540
540
  provider: r.literal("tiktok"),
541
- options: r.optional(xe)
542
- }), je = r.object({
541
+ options: r.optional(Fe)
542
+ }).strict(), Oe = 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
- }), we = r.object({
548
+ }).strict(), De = r.object({
549
549
  name: r.optional(r.string()),
550
550
  description: r.optional(r.string()),
551
- privacy: r.optional(je),
551
+ privacy: r.optional(Oe),
552
552
  folderUri: r.optional(r.string())
553
- }), Te = r.object({
553
+ }).strict(), Le = r.object({
554
554
  provider: r.literal("vimeo"),
555
- options: r.optional(we)
556
- }), a = r.discriminatedUnion("provider", [
557
- _e,
558
- $e,
559
- Ze,
560
- ye,
561
- he,
555
+ options: r.optional(De)
556
+ }).strict(), a = r.discriminatedUnion("provider", [
557
+ ke,
558
+ je,
562
559
  Te,
563
- Ne
564
- ]), Fe = a, ke = r.object({
560
+ _e,
561
+ xe,
562
+ Le,
563
+ Re
564
+ ]), Ie = a, Ge = r.object({
565
565
  horizontal: r.optional(r.boolean()),
566
566
  vertical: r.optional(r.boolean())
567
- }), Re = r.object({
567
+ }).strict(), Ce = r.object({
568
568
  src: r.string()
569
- }), g = r.object({
569
+ }).strict(), m = r.object({
570
570
  type: r.enum(["html"]),
571
571
  html: r.string(),
572
572
  css: r.optional(r.string()),
@@ -590,11 +590,11 @@ const oe = r.object({
590
590
  "topLeft",
591
591
  "center"
592
592
  ]))
593
- }), Qr = g, m = r.object({
593
+ }).strict(), at = m, A = r.object({
594
594
  type: r.enum(["image"]),
595
595
  src: r.string().min(1).regex(/\S/),
596
596
  crop: r.optional(i)
597
- }), Xr = m, A = r.object({
597
+ }).strict(), ut = A, y = r.object({
598
598
  type: r.enum(["image-to-video"]),
599
599
  src: r.string().min(1),
600
600
  prompt: r.optional(r.string()),
@@ -604,7 +604,7 @@ const oe = r.object({
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
606
  crop: r.optional(i)
607
- }), Yr = A, Oe = r.object({
607
+ }).strict(), ft = y, Be = r.object({
608
608
  preset: r.enum([
609
609
  "conference",
610
610
  "interview",
@@ -616,64 +616,64 @@ const oe = r.object({
616
616
  "studio",
617
617
  "voice_over"
618
618
  ])
619
- }), De = r.object({
619
+ }).strict(), Ee = r.object({
620
620
  provider: r.string().default("dolby"),
621
- options: Oe
622
- }), Le = r.object({
621
+ options: Be
622
+ }).strict(), qe = r.object({
623
623
  enhancement: r.literal("dolbyEnhancement_DolbyEnhancement")
624
- }).and(De), Ie = r.object({
625
- audio: r.optional(Le)
626
- }), Ge = r.object({
624
+ }).and(Ee), Pe = r.object({
625
+ audio: r.optional(qe)
626
+ }).strict(), Ue = r.object({
627
627
  status: r.string(),
628
628
  title: r.string(),
629
629
  detail: r.string()
630
- });
630
+ }).strict();
631
631
  r.object({
632
- errors: r.array(Ge)
633
- });
634
- const Ce = r.object({
632
+ errors: r.array(Ue)
633
+ }).strict();
634
+ const Je = r.object({
635
635
  type: r.string(),
636
636
  id: r.string()
637
- });
637
+ }).strict();
638
638
  r.object({
639
- data: Ce
640
- });
641
- const Be = r.object({
639
+ data: Je
640
+ }).strict();
641
+ const Ve = r.object({
642
642
  id: r.string(),
643
643
  url: r.string(),
644
644
  expires: r.string()
645
- }), Ee = r.object({
645
+ }).strict(), He = r.object({
646
646
  type: r.string(),
647
647
  id: r.string(),
648
- attributes: Be
649
- });
648
+ attributes: Ve
649
+ }).strict();
650
650
  r.object({
651
- data: Ee
652
- });
653
- const qe = r.object({
651
+ data: He
652
+ }).strict();
653
+ const Ke = 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
- }), Pe = r.object({
659
+ }).strict(), Me = r.object({
660
660
  format: r.optional(r.enum(["srt", "vtt"]))
661
- }), y = r.object({
661
+ }).strict(), b = r.object({
662
662
  type: r.enum(["luma"]),
663
663
  src: r.string().min(1).regex(/\S/),
664
664
  trim: r.optional(r.union([r.preprocess((e) => {
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
- }), vr = y, b = r.object({
668
+ }).strict(), lt = b, h = 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
- }), Ue = r.object({
671
+ }).strict(), We = 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
- }), Je = r.object({
676
+ }).strict(), Qe = 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 qe = 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
- }), Ve = r.object({
685
+ }).strict(), Xe = r.object({
686
686
  id: r.string(),
687
687
  owner: r.string(),
688
688
  region: r.optional(r.string()),
@@ -693,57 +693,94 @@ const qe = r.object({
693
693
  status: r.enum(["importing", "ready", "failed", "deleted"]),
694
694
  created: r.optional(r.string()),
695
695
  updated: r.optional(r.string())
696
- }), h = r.object({
696
+ }).strict(), z = r.object({
697
697
  type: r.string(),
698
- attributes: Ve
699
- });
698
+ attributes: Xe
699
+ }).strict();
700
700
  r.object({
701
- data: r.array(h)
702
- });
701
+ data: r.array(z)
702
+ }).strict();
703
703
  r.object({
704
- data: h
705
- });
704
+ data: z
705
+ }).strict();
706
706
  r.object({
707
707
  success: r.boolean(),
708
708
  message: r.string(),
709
709
  response: r.record(r.string(), r.unknown())
710
- });
711
- const He = r.object({
710
+ }).strict();
711
+ const Ye = r.object({
712
712
  message: r.string(),
713
713
  id: r.string()
714
- });
714
+ }).strict();
715
715
  r.object({
716
716
  success: r.boolean(),
717
717
  message: r.string(),
718
- response: He
719
- });
720
- const Ke = r.object({
718
+ response: Ye
719
+ }).strict();
720
+ const ve = 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
- }), Me = r.object({
725
+ }).strict(), er = r.object({
726
726
  owner: r.string(),
727
- templates: r.array(Ke)
728
- });
727
+ templates: r.array(ve)
728
+ }).strict();
729
729
  r.object({
730
730
  success: r.boolean(),
731
731
  message: r.string(),
732
- response: Me
733
- });
734
- const We = r.object({
732
+ response: er
733
+ }).strict();
734
+ const rr = r.object({
735
735
  message: r.string(),
736
736
  id: r.string()
737
- });
737
+ }).strict();
738
738
  r.object({
739
739
  success: r.boolean(),
740
740
  message: r.string(),
741
- response: We
742
- });
743
- const Qe = r.object({
741
+ response: rr
742
+ }).strict();
743
+ const tr = r.object({
744
+ color: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffff00"),
745
+ background: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
746
+ opacity: r.optional(r.union([r.preprocess((e) => {
747
+ if (!(e === "" || e === null || e === void 0))
748
+ return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
749
+ }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
750
+ }).strict(), nr = r.object({
751
+ style: r.enum([
752
+ "karaoke",
753
+ "highlight",
754
+ "pop",
755
+ "fade",
756
+ "slide",
757
+ "bounce",
758
+ "typewriter",
759
+ "none"
760
+ ]),
761
+ speed: r.optional(r.union([r.preprocess((e) => {
762
+ if (!(e === "" || e === null || e === void 0))
763
+ return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
764
+ }, r.number().gte(0.5).lte(2)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
765
+ direction: r.optional(r.enum(["left", "right", "up", "down"]))
766
+ }).strict(), ir = r.object({
767
+ text: r.string().min(1),
768
+ start: r.union([r.preprocess((e) => {
769
+ if (!(e === "" || e === null || e === void 0))
770
+ return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
771
+ }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
772
+ end: r.union([r.preprocess((e) => {
773
+ if (!(e === "" || e === null || e === void 0))
774
+ return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
775
+ }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
776
+ confidence: r.optional(r.union([r.preprocess((e) => {
777
+ if (!(e === "" || e === null || e === void 0))
778
+ return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
779
+ }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
780
+ }).strict(), $ = r.object({
744
781
  horizontal: r.optional(r.enum(["left", "center", "right"])),
745
782
  vertical: r.optional(r.enum(["top", "middle", "bottom"]))
746
- }), Xe = r.object({
783
+ }).strict(), sr = r.object({
747
784
  preset: r.enum([
748
785
  "fadeIn",
749
786
  "slideIn",
@@ -758,7 +795,7 @@ const Qe = r.object({
758
795
  }, r.number().gte(0.1).lte(30)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
759
796
  style: r.optional(r.enum(["character", "word"])),
760
797
  direction: r.optional(r.enum(["left", "right", "up", "down"]))
761
- }), Ye = r.object({
798
+ }).strict(), Z = r.object({
762
799
  color: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
763
800
  opacity: r.optional(r.union([r.preprocess((e) => {
764
801
  if (!(e === "" || e === null || e === void 0))
@@ -768,7 +805,7 @@ const Qe = r.object({
768
805
  if (!(e === "" || e === null || e === void 0))
769
806
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
770
807
  }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
771
- }), ve = r.object({
808
+ }).strict(), or = r.object({
772
809
  width: r.optional(r.union([r.preprocess((e) => {
773
810
  if (!(e === "" || e === null || e === void 0))
774
811
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -782,7 +819,7 @@ const Qe = r.object({
782
819
  if (!(e === "" || e === null || e === void 0))
783
820
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
784
821
  }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
785
- }), er = r.object({
822
+ }).strict(), ar = r.object({
786
823
  type: r.optional(r.enum(["linear", "radial"])),
787
824
  angle: r.optional(r.union([r.preprocess((e) => {
788
825
  if (!(e === "" || e === null || e === void 0))
@@ -795,7 +832,7 @@ const Qe = r.object({
795
832
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
796
833
  color: r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
797
834
  })).min(2)
798
- }), rr = r.object({
835
+ }).strict(), _ = r.object({
799
836
  top: r.optional(r.union([r.preprocess((e) => {
800
837
  if (!(e === "" || e === null || e === void 0))
801
838
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -812,7 +849,7 @@ const Qe = r.object({
812
849
  if (!(e === "" || e === null || e === void 0))
813
850
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
814
851
  }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
815
- }), tr = r.object({
852
+ }).strict(), S = r.object({
816
853
  offsetX: r.optional(r.union([r.preprocess((e) => {
817
854
  if (!(e === "" || e === null || e === void 0))
818
855
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -830,7 +867,7 @@ const Qe = r.object({
830
867
  if (!(e === "" || e === null || e === void 0))
831
868
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
832
869
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
833
- }), z = r.object({
870
+ }).strict(), u = r.object({
834
871
  width: r.optional(r.union([r.preprocess((e) => {
835
872
  if (!(e === "" || e === null || e === void 0))
836
873
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -840,64 +877,100 @@ const Qe = r.object({
840
877
  if (!(e === "" || e === null || e === void 0))
841
878
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
842
879
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
843
- }), nr = r.object({
880
+ }).strict(), ur = r.object({
881
+ font: r.optional(tr),
882
+ stroke: r.optional(u),
883
+ scale: r.optional(r.union([r.preprocess((e) => {
884
+ if (!(e === "" || e === null || e === void 0))
885
+ return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
886
+ }, r.number().gte(0.5).lte(2)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
887
+ }).strict(), x = r.object({
844
888
  family: r.optional(r.string()).default("Open Sans"),
845
889
  size: r.optional(r.union([r.preprocess((e) => {
846
890
  if (!(e === "" || e === null || e === void 0))
847
891
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
848
892
  }, r.number().int().gte(1).lte(500)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
849
893
  weight: r.optional(r.unknown()).default("400"),
850
- color: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
894
+ color: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
851
895
  opacity: r.optional(r.union([r.preprocess((e) => {
852
896
  if (!(e === "" || e === null || e === void 0))
853
897
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
854
898
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
855
899
  background: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
856
- stroke: r.optional(z)
857
- }), ir = r.object({
900
+ stroke: r.optional(u)
901
+ }).strict(), N = r.object({
858
902
  letterSpacing: r.optional(r.union([r.preprocess((e) => {
859
903
  if (!(e === "" || e === null || e === void 0))
860
904
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
861
905
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
906
+ wordSpacing: r.optional(r.union([r.preprocess((e) => {
907
+ if (!(e === "" || e === null || e === void 0))
908
+ return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
909
+ }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
862
910
  lineHeight: r.optional(r.union([r.preprocess((e) => {
863
911
  if (!(e === "" || e === null || e === void 0))
864
912
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
865
913
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
866
914
  textTransform: r.optional(r.enum(["none", "uppercase", "lowercase", "capitalize"])),
867
915
  textDecoration: r.optional(r.enum(["none", "underline", "line-through"])),
868
- gradient: r.optional(er)
869
- }), $ = r.object({
916
+ gradient: r.optional(ar)
917
+ }).strict(), fr = r.object({
918
+ type: r.enum(["rich-caption"]),
919
+ src: r.optional(r.string().min(1)),
920
+ words: r.optional(r.array(ir).max(1e5)),
921
+ font: r.optional(x),
922
+ style: r.optional(N),
923
+ stroke: r.optional(u),
924
+ shadow: r.optional(S),
925
+ background: r.optional(Z),
926
+ padding: r.optional(r.union([r.union([r.preprocess((e) => {
927
+ if (!(e === "" || e === null || e === void 0))
928
+ return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
929
+ }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), _])),
930
+ align: r.optional($),
931
+ active: r.optional(ur),
932
+ wordAnimation: r.optional(nr),
933
+ position: r.optional(r.enum(["top", "center", "bottom"])),
934
+ maxWidth: r.optional(r.union([r.preprocess((e) => {
935
+ if (!(e === "" || e === null || e === void 0))
936
+ return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
937
+ }, r.number().gte(0.1).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.9),
938
+ maxLines: r.optional(r.union([r.preprocess((e) => {
939
+ if (!(e === "" || e === null || e === void 0))
940
+ return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
941
+ }, r.number().int().gte(1).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(2)
942
+ }).strict(), j = r.object({
870
943
  type: r.enum(["rich-text"]),
871
944
  text: r.string().max(5e3),
872
- font: r.optional(nr),
873
- style: r.optional(ir),
874
- stroke: r.optional(z),
875
- shadow: r.optional(tr),
876
- background: r.optional(Ye),
877
- border: r.optional(ve),
945
+ font: r.optional(x),
946
+ style: r.optional(N),
947
+ stroke: r.optional(u),
948
+ shadow: r.optional(S),
949
+ background: r.optional(Z),
950
+ border: r.optional(or),
878
951
  padding: r.optional(r.union([r.union([r.preprocess((e) => {
879
952
  if (!(e === "" || e === null || e === void 0))
880
953
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
881
- }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), rr])),
882
- align: r.optional(Qe),
883
- animation: r.optional(Xe)
884
- }), et = $, sr = r.object({
954
+ }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), _])),
955
+ align: r.optional($),
956
+ animation: r.optional(sr)
957
+ }).strict(), pt = j, lr = r.object({
885
958
  id: r.optional(r.string()),
886
959
  owner: r.optional(r.string()),
887
960
  status: r.optional(r.enum(["queued", "failed"])),
888
961
  created: r.optional(r.string())
889
- }), or = r.object({
962
+ }).strict(), pr = r.object({
890
963
  type: r.optional(r.string()),
891
- attributes: r.optional(sr)
892
- });
964
+ attributes: r.optional(lr)
965
+ }).strict();
893
966
  r.object({
894
- data: or
895
- });
896
- const ar = r.object({
967
+ data: pr
968
+ }).strict();
969
+ const cr = r.object({
897
970
  url: r.string(),
898
971
  id: r.string(),
899
972
  destinations: r.array(a)
900
- }), S = r.object({
973
+ }).strict(), w = r.object({
901
974
  type: r.enum(["shape"]),
902
975
  shape: r.enum(["rectangle", "circle", "line"]),
903
976
  width: r.optional(r.union([r.preprocess((e) => {
@@ -952,7 +1025,7 @@ const ar = r.object({
952
1025
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
953
1026
  }, r.number().int()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
954
1027
  }))
955
- }), rt = S, p = r.object({
1028
+ }).strict(), ct = w, c = r.object({
956
1029
  width: r.optional(r.union([r.preprocess((e) => {
957
1030
  if (!(e === "" || e === null || e === void 0))
958
1031
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -961,7 +1034,7 @@ const ar = r.object({
961
1034
  if (!(e === "" || e === null || e === void 0))
962
1035
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
963
1036
  }, r.number().int().gte(1).lte(4096)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
964
- }), ur = p, Z = r.object({
1037
+ }).strict(), dr = c, T = r.object({
965
1038
  format: r.optional(r.enum([
966
1039
  "mp4",
967
1040
  "webm",
@@ -979,7 +1052,7 @@ const ar = r.object({
979
1052
  "webp",
980
1053
  "tif"
981
1054
  ])),
982
- size: r.optional(p),
1055
+ size: r.optional(c),
983
1056
  fit: r.optional(r.enum(["cover", "contain", "crop"])),
984
1057
  resolution: r.optional(r.enum(["preview", "mobile", "sd", "hd", "fhd"])),
985
1058
  quality: r.optional(r.union([r.preprocess((e) => {
@@ -999,19 +1072,19 @@ const ar = r.object({
999
1072
  r.literal(59.94),
1000
1073
  r.literal(60)
1001
1074
  ])),
1002
- speed: r.optional(qe),
1075
+ speed: r.optional(Ke),
1003
1076
  keyframeInterval: r.optional(r.union([r.preprocess((e) => {
1004
1077
  if (!(e === "" || e === null || e === void 0))
1005
1078
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1006
1079
  }, r.number().int().gte(1).lte(300)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1007
1080
  fixOffset: r.optional(r.boolean()),
1008
1081
  fixRotation: r.optional(r.boolean()),
1009
- enhance: r.optional(Ie),
1082
+ enhance: r.optional(Pe),
1010
1083
  filename: r.optional(r.string())
1011
- }), fr = r.object({
1012
- renditions: r.optional(r.array(Z)),
1013
- transcription: r.optional(Pe)
1014
- }), lr = r.object({
1084
+ }).strict(), gr = r.object({
1085
+ renditions: r.optional(r.array(T)),
1086
+ transcription: r.optional(Me)
1087
+ }).strict(), mr = r.object({
1015
1088
  id: r.string(),
1016
1089
  status: r.optional(r.enum([
1017
1090
  "queued",
@@ -1026,7 +1099,7 @@ const ar = r.object({
1026
1099
  if (!(e === "" || e === null || e === void 0))
1027
1100
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1028
1101
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1029
- transformation: r.optional(Z),
1102
+ transformation: r.optional(T),
1030
1103
  width: r.optional(r.union([r.preprocess((e) => {
1031
1104
  if (!(e === "" || e === null || e === void 0))
1032
1105
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1043,9 +1116,9 @@ const ar = r.object({
1043
1116
  if (!(e === "" || e === null || e === void 0))
1044
1117
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1045
1118
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1046
- }), pr = r.object({
1047
- renditions: r.optional(r.array(lr))
1048
- }), dr = r.object({
1119
+ }).strict(), Ar = r.object({
1120
+ renditions: r.optional(r.array(mr))
1121
+ }).strict(), yr = r.object({
1049
1122
  id: r.string(),
1050
1123
  owner: r.string(),
1051
1124
  input: r.optional(r.string()),
@@ -1058,7 +1131,7 @@ const ar = r.object({
1058
1131
  "deleted",
1059
1132
  "overwritten"
1060
1133
  ])),
1061
- outputs: r.optional(pr),
1134
+ outputs: r.optional(Ar),
1062
1135
  width: r.optional(r.union([r.preprocess((e) => {
1063
1136
  if (!(e === "" || e === null || e === void 0))
1064
1137
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1077,54 +1150,54 @@ const ar = r.object({
1077
1150
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1078
1151
  created: r.optional(r.string()),
1079
1152
  updated: r.optional(r.string())
1080
- }), _ = r.object({
1153
+ }).strict(), k = r.object({
1081
1154
  type: r.string(),
1082
1155
  id: r.string(),
1083
- attributes: dr
1084
- });
1156
+ attributes: yr
1157
+ }).strict();
1085
1158
  r.object({
1086
- data: r.array(_)
1087
- });
1159
+ data: r.array(k)
1160
+ }).strict();
1088
1161
  r.object({
1089
- data: _
1090
- });
1091
- const cr = r.object({
1162
+ data: k
1163
+ }).strict();
1164
+ const br = r.object({
1092
1165
  url: r.optional(r.string()),
1093
- outputs: r.optional(fr),
1166
+ outputs: r.optional(gr),
1094
1167
  destinations: r.optional(a),
1095
1168
  callback: r.optional(r.string())
1096
- }), gr = r.object({
1169
+ }).strict(), hr = r.object({
1097
1170
  src: r.string().min(1).regex(/\S/),
1098
1171
  effect: r.optional(r.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
1099
1172
  volume: r.optional(r.union([r.preprocess((e) => {
1100
1173
  if (!(e === "" || e === null || e === void 0))
1101
1174
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1102
1175
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1103
- }), x = r.object({
1176
+ }).strict(), F = r.object({
1104
1177
  offset: r.union([r.preprocess((e) => {
1105
1178
  if (!(e === "" || e === null || e === void 0))
1106
1179
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1107
1180
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1108
1181
  color: r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1109
- }), mr = r.object({
1182
+ }).strict(), zr = r.object({
1110
1183
  type: r.enum(["linear"]),
1111
1184
  angle: r.optional(r.union([r.preprocess((e) => {
1112
1185
  if (!(e === "" || e === null || e === void 0))
1113
1186
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1114
1187
  }, r.number().gte(0).lte(360)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1115
- stops: r.array(x).min(2),
1188
+ stops: r.array(F).min(2),
1116
1189
  opacity: r.optional(r.union([r.preprocess((e) => {
1117
1190
  if (!(e === "" || e === null || e === void 0))
1118
1191
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1119
1192
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1120
- }), Ar = r.object({
1193
+ }).strict(), $r = r.object({
1121
1194
  type: r.enum(["radial"]),
1122
- stops: r.array(x).min(2),
1195
+ stops: r.array(F).min(2),
1123
1196
  opacity: r.optional(r.union([r.preprocess((e) => {
1124
1197
  if (!(e === "" || e === null || e === void 0))
1125
1198
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1126
1199
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1127
- }), yr = r.object({
1200
+ }).strict(), Zr = r.object({
1128
1201
  offsetX: r.optional(r.union([r.preprocess((e) => {
1129
1202
  if (!(e === "" || e === null || e === void 0))
1130
1203
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1142,18 +1215,18 @@ const cr = r.object({
1142
1215
  if (!(e === "" || e === null || e === void 0))
1143
1216
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1144
1217
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
1145
- }), br = r.object({
1218
+ }).strict(), _r = r.object({
1146
1219
  type: r.enum(["solid"]),
1147
1220
  color: r.string().regex(/^#[A-Fa-f0-9]{6}$/).default("#000000"),
1148
1221
  opacity: r.optional(r.union([r.preprocess((e) => {
1149
1222
  if (!(e === "" || e === null || e === void 0))
1150
1223
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1151
1224
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1152
- }), hr = r.discriminatedUnion("type", [
1153
- br,
1154
- mr,
1155
- Ar
1156
- ]), zr = r.object({
1225
+ }).strict(), Sr = r.discriminatedUnion("type", [
1226
+ _r,
1227
+ zr,
1228
+ $r
1229
+ ]), xr = r.object({
1157
1230
  color: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1158
1231
  width: r.optional(r.union([r.preprocess((e) => {
1159
1232
  if (!(e === "" || e === null || e === void 0))
@@ -1173,7 +1246,7 @@ const cr = r.object({
1173
1246
  if (!(e === "" || e === null || e === void 0))
1174
1247
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1175
1248
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1176
- }), $r = r.object({
1249
+ }).strict(), Nr = r.object({
1177
1250
  x: r.optional(r.union([r.preprocess((e) => {
1178
1251
  if (!(e === "" || e === null || e === void 0))
1179
1252
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1198,7 +1271,7 @@ const cr = r.object({
1198
1271
  if (!(e === "" || e === null || e === void 0))
1199
1272
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1200
1273
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
1201
- }), Sr = r.object({
1274
+ }).strict(), jr = r.object({
1202
1275
  type: r.enum(["arrow"]),
1203
1276
  length: r.union([r.preprocess((e) => {
1204
1277
  if (!(e === "" || e === null || e === void 0))
@@ -1216,13 +1289,13 @@ const cr = r.object({
1216
1289
  if (!(e === "" || e === null || e === void 0))
1217
1290
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1218
1291
  }, r.number().gte(1).lte(1e3)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1219
- }), Zr = r.object({
1292
+ }).strict(), wr = r.object({
1220
1293
  type: r.enum(["circle"]),
1221
1294
  radius: r.union([r.preprocess((e) => {
1222
1295
  if (!(e === "" || e === null || e === void 0))
1223
1296
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1224
1297
  }, r.number().gte(1).lte(2048)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1225
- }), _r = r.object({
1298
+ }).strict(), Tr = r.object({
1226
1299
  type: r.enum(["cross"]),
1227
1300
  width: r.union([r.preprocess((e) => {
1228
1301
  if (!(e === "" || e === null || e === void 0))
@@ -1236,7 +1309,7 @@ const cr = r.object({
1236
1309
  if (!(e === "" || e === null || e === void 0))
1237
1310
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1238
1311
  }, r.number().gte(1).lte(500)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1239
- }), xr = r.object({
1312
+ }).strict(), kr = r.object({
1240
1313
  type: r.enum(["ellipse"]),
1241
1314
  radiusX: r.union([r.preprocess((e) => {
1242
1315
  if (!(e === "" || e === null || e === void 0))
@@ -1246,13 +1319,13 @@ const cr = r.object({
1246
1319
  if (!(e === "" || e === null || e === void 0))
1247
1320
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1248
1321
  }, r.number().gte(1).lte(2048)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1249
- }), Nr = r.object({
1322
+ }).strict(), Fr = r.object({
1250
1323
  type: r.enum(["heart"]),
1251
1324
  size: r.union([r.preprocess((e) => {
1252
1325
  if (!(e === "" || e === null || e === void 0))
1253
1326
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1254
1327
  }, r.number().gte(1).lte(4096)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1255
- }), jr = r.object({
1328
+ }).strict(), Rr = r.object({
1256
1329
  type: r.enum(["line"]),
1257
1330
  length: r.union([r.preprocess((e) => {
1258
1331
  if (!(e === "" || e === null || e === void 0))
@@ -1262,10 +1335,10 @@ const cr = r.object({
1262
1335
  if (!(e === "" || e === null || e === void 0))
1263
1336
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1264
1337
  }, r.number().gte(1).lte(500)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1265
- }), wr = r.object({
1338
+ }).strict(), Or = r.object({
1266
1339
  type: r.enum(["path"]),
1267
1340
  d: r.string().min(1).max(1e5)
1268
- }), Tr = r.object({
1341
+ }).strict(), Dr = r.object({
1269
1342
  type: r.enum(["polygon"]),
1270
1343
  sides: r.union([r.preprocess((e) => {
1271
1344
  if (!(e === "" || e === null || e === void 0))
@@ -1275,7 +1348,7 @@ const cr = r.object({
1275
1348
  if (!(e === "" || e === null || e === void 0))
1276
1349
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1277
1350
  }, r.number().gte(1).lte(2048)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1278
- }), Fr = r.object({
1351
+ }).strict(), Lr = r.object({
1279
1352
  type: r.enum(["rectangle"]),
1280
1353
  width: r.union([r.preprocess((e) => {
1281
1354
  if (!(e === "" || e === null || e === void 0))
@@ -1289,7 +1362,7 @@ const cr = r.object({
1289
1362
  if (!(e === "" || e === null || e === void 0))
1290
1363
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1291
1364
  }, r.number().gte(0).lte(2048)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1292
- }), kr = r.object({
1365
+ }).strict(), Ir = r.object({
1293
1366
  type: r.enum(["ring"]),
1294
1367
  outerRadius: r.union([r.preprocess((e) => {
1295
1368
  if (!(e === "" || e === null || e === void 0))
@@ -1299,7 +1372,7 @@ const cr = r.object({
1299
1372
  if (!(e === "" || e === null || e === void 0))
1300
1373
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1301
1374
  }, r.number().gte(0).lte(2048)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1302
- }), Rr = r.object({
1375
+ }).strict(), Gr = r.object({
1303
1376
  type: r.enum(["star"]),
1304
1377
  points: r.union([r.preprocess((e) => {
1305
1378
  if (!(e === "" || e === null || e === void 0))
@@ -1313,26 +1386,26 @@ const cr = r.object({
1313
1386
  if (!(e === "" || e === null || e === void 0))
1314
1387
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1315
1388
  }, r.number().gte(1).lte(2048)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1316
- }), Or = r.discriminatedUnion("type", [
1317
- Fr,
1318
- Zr,
1319
- xr,
1389
+ }).strict(), Cr = r.discriminatedUnion("type", [
1390
+ Lr,
1391
+ wr,
1392
+ kr,
1393
+ Rr,
1394
+ Dr,
1395
+ Gr,
1320
1396
  jr,
1397
+ Fr,
1321
1398
  Tr,
1322
- Rr,
1323
- Sr,
1324
- Nr,
1325
- _r,
1326
- kr,
1327
- wr
1328
- ]), N = r.object({
1399
+ Ir,
1400
+ Or
1401
+ ]), R = r.object({
1329
1402
  type: r.enum(["svg"]),
1330
1403
  src: r.optional(r.string().min(1).max(5e5)),
1331
- shape: r.optional(Or),
1332
- fill: r.optional(hr),
1333
- stroke: r.optional(zr),
1334
- shadow: r.optional(yr),
1335
- transform: r.optional($r),
1404
+ shape: r.optional(Cr),
1405
+ fill: r.optional(Sr),
1406
+ stroke: r.optional(xr),
1407
+ shadow: r.optional(Zr),
1408
+ transform: r.optional(Nr),
1336
1409
  opacity: r.optional(r.union([r.preprocess((e) => {
1337
1410
  if (!(e === "" || e === null || e === void 0))
1338
1411
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1345,38 +1418,38 @@ const cr = r.object({
1345
1418
  if (!(e === "" || e === null || e === void 0))
1346
1419
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1347
1420
  }, r.number().int().gte(1).lte(4096)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1348
- }).superRefine((e, o) => {
1349
- const f = e.shape !== void 0, n = e.src !== void 0 && e.src.trim() !== "";
1350
- if (!f && !n && o.addIssue({
1421
+ }).strict().superRefine((e, o) => {
1422
+ const l = e.shape !== void 0, n = e.src !== void 0 && e.src.trim() !== "";
1423
+ if (!l && !n && o.addIssue({
1351
1424
  code: r.ZodIssueCode.custom,
1352
1425
  message: "Either 'src' or 'shape' must be provided",
1353
1426
  path: []
1354
- }), f && n && o.addIssue({
1427
+ }), l && n && o.addIssue({
1355
1428
  code: r.ZodIssueCode.custom,
1356
1429
  message: "Provide either 'src' or 'shape', not both",
1357
1430
  path: ["src"]
1358
1431
  }), n) {
1359
- const E = ["shape", "fill", "stroke", "shadow", "transform", "width", "height"];
1360
- for (const l of E)
1361
- e[l] !== void 0 && o.addIssue({
1432
+ const H = ["shape", "fill", "stroke", "shadow", "transform", "width", "height"];
1433
+ for (const p of H)
1434
+ e[p] !== void 0 && o.addIssue({
1362
1435
  code: r.ZodIssueCode.custom,
1363
- message: `'${l}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,
1364
- path: [l]
1436
+ message: `'${p}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,
1437
+ path: [p]
1365
1438
  });
1366
1439
  }
1367
- }), tt = N, Dr = r.object({
1440
+ }), dt = R, Br = r.object({
1368
1441
  id: r.string(),
1369
- merge: r.optional(r.array(b))
1370
- }), Lr = r.object({
1442
+ merge: r.optional(r.array(h))
1443
+ }).strict(), Er = r.object({
1371
1444
  horizontal: r.optional(r.enum(["left", "center", "right"])),
1372
1445
  vertical: r.optional(r.enum(["top", "center", "bottom"]))
1373
- }), Ir = r.object({
1446
+ }).strict(), qr = r.object({
1374
1447
  preset: r.enum(["typewriter"]),
1375
1448
  duration: r.optional(r.union([r.preprocess((e) => {
1376
1449
  if (!(e === "" || e === null || e === void 0))
1377
1450
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1378
1451
  }, r.number().gte(0.1).lte(30)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1379
- }), Gr = r.object({
1452
+ }).strict(), Pr = r.object({
1380
1453
  color: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1381
1454
  opacity: r.optional(r.union([r.preprocess((e) => {
1382
1455
  if (!(e === "" || e === null || e === void 0))
@@ -1390,7 +1463,7 @@ const cr = r.object({
1390
1463
  if (!(e === "" || e === null || e === void 0))
1391
1464
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1392
1465
  }, r.number().gte(0)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1393
- }), Cr = r.object({
1466
+ }).strict(), Ur = r.object({
1394
1467
  family: r.optional(r.string()),
1395
1468
  color: r.optional(r.string()),
1396
1469
  opacity: r.optional(r.union([r.preprocess((e) => {
@@ -1409,13 +1482,13 @@ const cr = r.object({
1409
1482
  if (!(e === "" || e === null || e === void 0))
1410
1483
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1411
1484
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1412
- }), Br = r.object({
1485
+ }).strict(), Jr = r.object({
1413
1486
  width: r.optional(r.union([r.preprocess((e) => {
1414
1487
  if (!(e === "" || e === null || e === void 0))
1415
1488
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1416
1489
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1417
1490
  color: r.optional(r.union([r.string().regex(/^#[A-Fa-f0-9]{6}$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1418
- }), j = r.object({
1491
+ }).strict(), O = r.object({
1419
1492
  type: r.enum(["text"]),
1420
1493
  text: r.string(),
1421
1494
  width: r.optional(r.union([r.preprocess((e) => {
@@ -1426,13 +1499,13 @@ const cr = r.object({
1426
1499
  if (!(e === "" || e === null || e === void 0))
1427
1500
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1428
1501
  }, r.number().int()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1429
- font: r.optional(Cr),
1430
- background: r.optional(Gr),
1431
- alignment: r.optional(Lr),
1432
- stroke: r.optional(Br),
1433
- animation: r.optional(Ir),
1502
+ font: r.optional(Ur),
1503
+ background: r.optional(Pr),
1504
+ alignment: r.optional(Er),
1505
+ stroke: r.optional(Jr),
1506
+ animation: r.optional(qr),
1434
1507
  ellipsis: r.optional(r.string())
1435
- }), nt = j, w = r.object({
1508
+ }).strict(), gt = O, D = r.object({
1436
1509
  type: r.enum(["text-to-image"]),
1437
1510
  prompt: r.string(),
1438
1511
  width: r.optional(r.union([r.preprocess((e) => {
@@ -1444,7 +1517,7 @@ const cr = r.object({
1444
1517
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1445
1518
  }, r.number().int()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1446
1519
  crop: r.optional(i)
1447
- }), it = w, Er = r.object({
1520
+ }).strict(), mt = D, Vr = r.object({
1448
1521
  capture: r.union([r.preprocess((e) => {
1449
1522
  if (!(e === "" || e === null || e === void 0))
1450
1523
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1453,11 +1526,11 @@ const cr = r.object({
1453
1526
  if (!(e === "" || e === null || e === void 0))
1454
1527
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1455
1528
  }, r.number().gte(0).lte(1)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1456
- }), T = r.object({
1529
+ }).strict(), L = r.object({
1457
1530
  format: r.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
1458
1531
  resolution: r.optional(r.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
1459
1532
  aspectRatio: r.optional(r.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
1460
- size: r.optional(p),
1533
+ size: r.optional(c),
1461
1534
  fps: r.optional(r.union([
1462
1535
  r.literal(12),
1463
1536
  r.literal(15),
@@ -1475,11 +1548,11 @@ const cr = r.object({
1475
1548
  quality: r.optional(r.enum(["verylow", "low", "medium", "high", "veryhigh"])),
1476
1549
  repeat: r.optional(r.boolean()),
1477
1550
  mute: r.optional(r.boolean()),
1478
- range: r.optional(Je),
1479
- poster: r.optional(Ue),
1480
- thumbnail: r.optional(Er),
1551
+ range: r.optional(Qe),
1552
+ poster: r.optional(We),
1553
+ thumbnail: r.optional(Vr),
1481
1554
  destinations: r.optional(r.array(a))
1482
- }), u = T, F = r.object({
1555
+ }).strict(), f = L, I = r.object({
1483
1556
  in: r.optional(r.enum([
1484
1557
  "none",
1485
1558
  "fade",
@@ -1608,7 +1681,7 @@ const cr = r.object({
1608
1681
  "shuffleTopLeftFast",
1609
1682
  "zoom"
1610
1683
  ]))
1611
- }), st = F, t = r.object({
1684
+ }).strict(), At = I, t = r.object({
1612
1685
  from: r.optional(r.unknown()),
1613
1686
  to: r.optional(r.unknown()),
1614
1687
  start: r.optional(r.union([r.preprocess((e) => {
@@ -1650,7 +1723,7 @@ const cr = r.object({
1650
1723
  "easeInOutCirc",
1651
1724
  "easeInOutBack"
1652
1725
  ]))
1653
- }), ot = t, k = r.object({
1726
+ }).strict(), yt = t, G = r.object({
1654
1727
  type: r.enum(["audio"]),
1655
1728
  src: r.string().min(1).regex(/\S/),
1656
1729
  trim: r.optional(r.union([r.preprocess((e) => {
@@ -1666,7 +1739,7 @@ const cr = r.object({
1666
1739
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1667
1740
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1668
1741
  effect: r.optional(r.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]))
1669
- }), at = k, d = r.object({
1742
+ }).strict(), bt = G, d = r.object({
1670
1743
  x: r.optional(r.union([r.union([r.preprocess((e) => {
1671
1744
  if (!(e === "" || e === null || e === void 0))
1672
1745
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1675,12 +1748,12 @@ const cr = r.object({
1675
1748
  if (!(e === "" || e === null || e === void 0))
1676
1749
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1677
1750
  }, r.number().gte(-10).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), r.array(t)]))
1678
- }), ut = d, qr = r.object({
1751
+ }).strict(), ht = d, Hr = r.object({
1679
1752
  angle: r.optional(r.union([r.union([r.preprocess((e) => {
1680
1753
  if (!(e === "" || e === null || e === void 0))
1681
1754
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1682
1755
  }, r.number().gte(-360).lte(360)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), r.array(t)]))
1683
- }), Pr = r.object({
1756
+ }).strict(), Kr = r.object({
1684
1757
  x: r.optional(r.union([r.union([r.preprocess((e) => {
1685
1758
  if (!(e === "" || e === null || e === void 0))
1686
1759
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
@@ -1689,7 +1762,7 @@ const cr = r.object({
1689
1762
  if (!(e === "" || e === null || e === void 0))
1690
1763
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1691
1764
  }, r.number().gte(-100).lte(100)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), r.array(t)]))
1692
- }), R = r.object({
1765
+ }).strict(), C = r.object({
1693
1766
  type: r.enum(["text-to-speech"]),
1694
1767
  text: r.string(),
1695
1768
  voice: r.string(),
@@ -1708,7 +1781,7 @@ const cr = r.object({
1708
1781
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1709
1782
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1710
1783
  effect: r.optional(r.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]))
1711
- }), ft = R, Ur = r.object({
1784
+ }).strict(), zt = C, Mr = r.object({
1712
1785
  type: r.enum(["title"]),
1713
1786
  text: r.string(),
1714
1787
  style: r.optional(r.enum([
@@ -1746,11 +1819,11 @@ const cr = r.object({
1746
1819
  "center"
1747
1820
  ])),
1748
1821
  offset: r.optional(d)
1749
- }), O = r.object({
1750
- rotate: r.optional(qr),
1751
- skew: r.optional(Pr),
1752
- flip: r.optional(ke)
1753
- }), lt = O, D = r.object({
1822
+ }).strict(), B = r.object({
1823
+ rotate: r.optional(Hr),
1824
+ skew: r.optional(Kr),
1825
+ flip: r.optional(Ge)
1826
+ }).strict(), $t = B, E = r.object({
1754
1827
  type: r.enum(["video"]),
1755
1828
  src: r.string().min(1).regex(/\S/),
1756
1829
  transcode: r.optional(r.boolean()),
@@ -1768,24 +1841,25 @@ const cr = r.object({
1768
1841
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1769
1842
  }, r.number().gte(0).lte(10)), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1770
1843
  crop: r.optional(i),
1771
- chromaKey: r.optional(J)
1772
- }), pt = D, L = r.discriminatedUnion("type", [
1773
- D,
1774
- m,
1844
+ chromaKey: r.optional(Q)
1845
+ }).strict(), Zt = E, q = r.discriminatedUnion("type", [
1846
+ E,
1847
+ A,
1848
+ O,
1775
1849
  j,
1776
- $,
1777
- k,
1778
- y,
1779
- c,
1850
+ G,
1851
+ b,
1780
1852
  g,
1781
- Ur,
1782
- S,
1783
- N,
1853
+ fr,
1854
+ m,
1855
+ Mr,
1784
1856
  w,
1785
- A,
1786
- R
1787
- ]), dt = L, I = r.object({
1788
- asset: L,
1857
+ R,
1858
+ D,
1859
+ y,
1860
+ C
1861
+ ]), _t = q, P = r.object({
1862
+ asset: q,
1789
1863
  start: r.union([
1790
1864
  r.union([r.preprocess((e) => {
1791
1865
  if (!(e === "" || e === null || e === void 0))
@@ -1825,7 +1899,7 @@ const cr = r.object({
1825
1899
  "center"
1826
1900
  ])),
1827
1901
  offset: r.optional(d),
1828
- transition: r.optional(F),
1902
+ transition: r.optional(I),
1829
1903
  effect: r.optional(r.enum([
1830
1904
  "zoomIn",
1831
1905
  "zoomInSlow",
@@ -1861,29 +1935,30 @@ const cr = r.object({
1861
1935
  if (!(e === "" || e === null || e === void 0))
1862
1936
  return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
1863
1937
  }, r.number()), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), r.array(t)])),
1864
- transform: r.optional(O),
1938
+ transform: r.optional(B),
1865
1939
  alias: r.optional(r.union([r.string().regex(/^[A-Za-z0-9_-]+$/), r.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1866
- }), ct = I, Jr = I.transform((e) => {
1940
+ }).strict(), Wr = P, Qr = P.transform((e) => {
1867
1941
  if (e.asset && typeof e.asset == "object" && "type" in e.asset && e.asset.type === "rich-text") {
1868
- const { fit: f, ...n } = e;
1942
+ const { fit: l, ...n } = e;
1869
1943
  return n;
1870
1944
  }
1871
1945
  return e;
1872
- }), G = r.object({
1873
- clips: r.array(Jr).min(1)
1874
- }), gt = G, C = r.object({
1875
- soundtrack: r.optional(gr),
1946
+ }), U = r.object({
1947
+ clips: r.array(Qr).min(1)
1948
+ }).strict(), Xr = U, J = r.object({
1949
+ soundtrack: r.optional(hr),
1876
1950
  background: r.optional(r.string()),
1877
- fonts: r.optional(r.array(Re)),
1878
- tracks: r.array(G).min(1),
1951
+ fonts: r.optional(r.array(Ce)),
1952
+ tracks: r.array(U).min(1),
1879
1953
  cache: r.optional(r.boolean())
1880
- }), mt = C, s = r.object({
1881
- timeline: C,
1882
- output: T,
1883
- merge: r.optional(r.array(b)),
1954
+ }).strict(), Yr = J, s = r.object({
1955
+ timeline: J,
1956
+ output: L,
1957
+ merge: r.optional(r.array(h)),
1884
1958
  callback: r.optional(r.string()),
1885
- disk: r.optional(r.enum(["local", "mount"]))
1886
- }), At = s, Vr = r.object({
1959
+ disk: r.optional(r.enum(["local", "mount"])),
1960
+ instance: r.optional(r.enum(["s1", "s2", "a1"]))
1961
+ }).strict(), vr = s, et = r.object({
1887
1962
  id: r.string(),
1888
1963
  owner: r.string(),
1889
1964
  plan: r.optional(r.string()),
@@ -1911,32 +1986,32 @@ const cr = r.object({
1911
1986
  data: r.optional(s),
1912
1987
  created: r.optional(r.string()),
1913
1988
  updated: r.optional(r.string())
1914
- });
1989
+ }).strict();
1915
1990
  r.object({
1916
1991
  success: r.boolean(),
1917
1992
  message: r.string(),
1918
- response: Vr
1919
- });
1920
- const Hr = r.object({
1993
+ response: et
1994
+ }).strict();
1995
+ const rt = r.object({
1921
1996
  id: r.string(),
1922
1997
  name: r.string(),
1923
1998
  owner: r.string(),
1924
1999
  template: s
1925
- });
2000
+ }).strict();
1926
2001
  r.object({
1927
2002
  success: r.boolean(),
1928
2003
  message: r.string(),
1929
- response: Hr
1930
- });
1931
- const B = r.object({
2004
+ response: rt
2005
+ }).strict();
2006
+ const V = r.object({
1932
2007
  name: r.string(),
1933
2008
  template: r.optional(s)
1934
- });
2009
+ }).strict();
1935
2010
  r.object({
1936
2011
  body: s,
1937
2012
  path: r.optional(r.never()),
1938
2013
  query: r.optional(r.never())
1939
- });
2014
+ }).strict();
1940
2015
  r.object({
1941
2016
  body: r.optional(r.never()),
1942
2017
  path: r.object({
@@ -1946,24 +2021,24 @@ r.object({
1946
2021
  data: r.optional(r.boolean()),
1947
2022
  merged: r.optional(r.boolean())
1948
2023
  }))
1949
- });
2024
+ }).strict();
1950
2025
  r.object({
1951
2026
  body: r.optional(r.never()),
1952
2027
  path: r.optional(r.never()),
1953
2028
  query: r.optional(r.never())
1954
- });
2029
+ }).strict();
1955
2030
  r.object({
1956
- body: B,
2031
+ body: V,
1957
2032
  path: r.optional(r.never()),
1958
2033
  query: r.optional(r.never())
1959
- });
2034
+ }).strict();
1960
2035
  r.object({
1961
2036
  body: r.optional(r.never()),
1962
2037
  path: r.object({
1963
2038
  id: r.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
1964
2039
  }),
1965
2040
  query: r.optional(r.never())
1966
- });
2041
+ }).strict();
1967
2042
  r.void();
1968
2043
  r.object({
1969
2044
  body: r.optional(r.never()),
@@ -1971,33 +2046,33 @@ r.object({
1971
2046
  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
2047
  }),
1973
2048
  query: r.optional(r.never())
1974
- });
2049
+ }).strict();
1975
2050
  r.object({
1976
- body: B,
2051
+ body: V,
1977
2052
  path: r.object({
1978
2053
  id: r.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
1979
2054
  }),
1980
2055
  query: r.optional(r.never())
1981
- });
2056
+ }).strict();
1982
2057
  r.object({
1983
- body: Dr,
2058
+ body: Br,
1984
2059
  path: r.optional(r.never()),
1985
2060
  query: r.optional(r.never())
1986
- });
2061
+ }).strict();
1987
2062
  r.object({
1988
2063
  body: r.optional(r.never()),
1989
2064
  path: r.object({
1990
2065
  url: r.string()
1991
2066
  }),
1992
2067
  query: r.optional(r.never())
1993
- });
2068
+ }).strict();
1994
2069
  r.object({
1995
2070
  body: r.optional(r.never()),
1996
2071
  path: r.object({
1997
2072
  id: r.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
1998
2073
  }),
1999
2074
  query: r.optional(r.never())
2000
- });
2075
+ }).strict();
2001
2076
  r.void();
2002
2077
  r.object({
2003
2078
  body: r.optional(r.never()),
@@ -2005,36 +2080,36 @@ r.object({
2005
2080
  id: r.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2006
2081
  }),
2007
2082
  query: r.optional(r.never())
2008
- });
2083
+ }).strict();
2009
2084
  r.object({
2010
2085
  body: r.optional(r.never()),
2011
2086
  path: r.object({
2012
2087
  id: r.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2013
2088
  }),
2014
2089
  query: r.optional(r.never())
2015
- });
2090
+ }).strict();
2016
2091
  r.object({
2017
- body: ar,
2092
+ body: cr,
2018
2093
  path: r.optional(r.never()),
2019
2094
  query: r.optional(r.never())
2020
- });
2095
+ }).strict();
2021
2096
  r.object({
2022
2097
  body: r.optional(r.never()),
2023
2098
  path: r.optional(r.never()),
2024
2099
  query: r.optional(r.never())
2025
- });
2100
+ }).strict();
2026
2101
  r.object({
2027
- body: cr,
2102
+ body: br,
2028
2103
  path: r.optional(r.never()),
2029
2104
  query: r.optional(r.never())
2030
- });
2105
+ }).strict();
2031
2106
  r.object({
2032
2107
  body: r.optional(r.never()),
2033
2108
  path: r.object({
2034
2109
  id: r.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
2035
2110
  }),
2036
2111
  query: r.optional(r.never())
2037
- });
2112
+ }).strict();
2038
2113
  r.void();
2039
2114
  r.object({
2040
2115
  body: r.optional(r.never()),
@@ -2042,56 +2117,65 @@ r.object({
2042
2117
  id: r.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
2043
2118
  }),
2044
2119
  query: r.optional(r.never())
2045
- });
2120
+ }).strict();
2046
2121
  r.object({
2047
2122
  body: r.optional(r.never()),
2048
2123
  path: r.optional(r.never()),
2049
2124
  query: r.optional(r.never())
2050
- });
2125
+ }).strict();
2051
2126
  r.object({
2052
- body: me,
2127
+ body: $e,
2053
2128
  path: r.optional(r.never()),
2054
2129
  query: r.optional(r.never())
2055
- });
2130
+ }).strict();
2056
2131
  r.object({
2057
2132
  body: r.optional(r.never()),
2058
2133
  path: r.object({
2059
2134
  id: r.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
2060
2135
  }),
2061
2136
  query: r.optional(r.never())
2137
+ }).strict();
2138
+ const St = Ie, xt = dr, Nt = f.shape.format, jt = f.shape.fps.unwrap(), wt = f.shape.resolution, Tt = f.shape.aspectRatio, kt = r.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/), tt = Wr.extend({ id: r.string() }), nt = Xr.extend({
2139
+ clips: r.array(tt).min(1)
2140
+ }), Ft = vr.extend({
2141
+ timeline: Yr.extend({
2142
+ tracks: r.array(nt).min(1)
2143
+ })
2062
2144
  });
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}$/);
2064
2145
  export {
2065
- dt as AssetSchema,
2066
- at as AudioAssetSchema,
2067
- Mr as CaptionAssetSchema,
2068
- ct as ClipSchema,
2069
- Wr as CropSchema,
2070
- yt as DestinationSchema,
2071
- At as EditSchema,
2072
- Zt as HexColorSchema,
2073
- Qr as HtmlAssetSchema,
2074
- Xr as ImageAssetSchema,
2075
- Yr as ImageToVideoAssetSchema,
2076
- ot as KeyframeSchema,
2077
- vr as LumaAssetSchema,
2078
- ut as OffsetSchema,
2079
- St as OutputAspectRatioSchema,
2080
- ht as OutputFormatSchema,
2081
- zt as OutputFpsSchema,
2082
- $t as OutputResolutionSchema,
2083
- u as OutputSchema,
2084
- bt as OutputSizeSchema,
2085
- et as RichTextAssetSchema,
2086
- rt as ShapeAssetSchema,
2087
- tt as SvgAssetSchema,
2088
- nt as TextAssetSchema,
2089
- it as TextToImageAssetSchema,
2090
- ft as TextToSpeechAssetSchema,
2091
- mt as TimelineSchema,
2092
- gt as TrackSchema,
2093
- lt as TransformationSchema,
2094
- st as TransitionSchema,
2095
- ot as TweenSchema,
2096
- pt as VideoAssetSchema
2146
+ _t as AssetSchema,
2147
+ bt as AudioAssetSchema,
2148
+ st as CaptionAssetSchema,
2149
+ Wr as ClipSchema,
2150
+ ot as CropSchema,
2151
+ St as DestinationSchema,
2152
+ vr as EditSchema,
2153
+ kt as HexColorSchema,
2154
+ at as HtmlAssetSchema,
2155
+ ut as ImageAssetSchema,
2156
+ ft as ImageToVideoAssetSchema,
2157
+ yt as KeyframeSchema,
2158
+ lt as LumaAssetSchema,
2159
+ ht as OffsetSchema,
2160
+ Tt as OutputAspectRatioSchema,
2161
+ Nt as OutputFormatSchema,
2162
+ jt as OutputFpsSchema,
2163
+ wt as OutputResolutionSchema,
2164
+ f as OutputSchema,
2165
+ xt as OutputSizeSchema,
2166
+ tt as ResolvedClipSchema,
2167
+ Ft as ResolvedEditSchema,
2168
+ nt as ResolvedTrackSchema,
2169
+ pt as RichTextAssetSchema,
2170
+ ct as ShapeAssetSchema,
2171
+ dt as SvgAssetSchema,
2172
+ gt as TextAssetSchema,
2173
+ mt as TextToImageAssetSchema,
2174
+ zt as TextToSpeechAssetSchema,
2175
+ Yr as TimelineSchema,
2176
+ Xr as TrackSchema,
2177
+ $t as TransformationSchema,
2178
+ At as TransitionSchema,
2179
+ yt as TweenSchema,
2180
+ Zt as VideoAssetSchema
2097
2181
  };