@shotstack/shotstack-studio 2.0.0-beta.5 → 2.0.0-beta.7

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,46 +15,46 @@ e.unknown();
15
15
  e.unknown();
16
16
  e.unknown();
17
17
  e.unknown();
18
- const D = e.object({
18
+ const L = e.object({
19
19
  color: e.optional(e.string()),
20
- opacity: e.optional(e.number()),
21
- padding: e.optional(e.int()),
22
- borderRadius: e.optional(e.int())
23
- }), N = e.object({
20
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
21
+ padding: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
22
+ borderRadius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()))
23
+ }), G = e.object({
24
24
  family: e.optional(e.string()),
25
25
  color: e.optional(e.string()),
26
- opacity: e.optional(e.number()),
27
- size: e.optional(e.int()),
28
- lineHeight: e.optional(e.number()),
26
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
27
+ size: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
28
+ lineHeight: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
29
29
  stroke: e.optional(e.string()),
30
- strokeWidth: e.optional(e.number())
31
- }), L = e.object({
32
- top: e.optional(e.number()),
33
- left: e.optional(e.number()),
34
- right: e.optional(e.number())
35
- }), l = e.object({
30
+ strokeWidth: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
31
+ }), I = e.object({
32
+ top: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
33
+ left: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
34
+ right: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
35
+ }), a = e.object({
36
36
  type: e.enum(["caption"]),
37
37
  src: e.string(),
38
- font: e.optional(N),
39
- background: e.optional(D),
40
- margin: e.optional(L),
41
- trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
42
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10)))
43
- }), At = l, G = e.object({
38
+ font: e.optional(G),
39
+ background: e.optional(L),
40
+ margin: e.optional(I),
41
+ trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))),
42
+ speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))))
43
+ }), $t = a, C = e.object({
44
44
  color: e.optional(e.string()),
45
- threshold: e.optional(e.int().gte(0).lte(250)),
46
- halo: e.optional(e.int().gte(0).lte(250))
47
- }), I = e.object({
45
+ threshold: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(0).lte(250))),
46
+ halo: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(0).lte(250)))
47
+ }), z = e.object({
48
48
  type: e.enum(["text-to-avatar"]),
49
49
  text: e.string(),
50
50
  avatar: e.enum(["jack", "lana", "lily", "matt", "rian"]),
51
51
  background: e.optional(e.string())
52
- }), C = e.object({
52
+ }), B = e.object({
53
53
  type: e.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")
54
- }).and(I), B = e.object({
54
+ }).and(z), E = e.object({
55
55
  provider: e.enum(["d-id"]),
56
- options: C
57
- }), z = e.object({
56
+ options: B
57
+ }), q = e.object({
58
58
  type: e.enum(["text-to-speech"]),
59
59
  text: e.string(),
60
60
  voice: e.enum([
@@ -68,12 +68,12 @@ const D = e.object({
68
68
  "Rachel",
69
69
  "Sam"
70
70
  ])
71
- }), E = e.object({
71
+ }), P = e.object({
72
72
  type: e.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")
73
- }).and(z), q = e.object({
73
+ }).and(q), _ = e.object({
74
74
  provider: e.enum(["elevenlabs"]),
75
- options: E
76
- }), P = e.object({
75
+ options: P
76
+ }), $ = e.object({
77
77
  type: e.enum(["text-to-avatar"]),
78
78
  text: e.string(),
79
79
  avatar: e.enum([
@@ -193,30 +193,30 @@ const D = e.object({
193
193
  background: e.optional(e.string()),
194
194
  ratio: e.optional(e.enum(["16:9", "9:16"])),
195
195
  test: e.optional(e.boolean())
196
- }), _ = e.object({
196
+ }), U = e.object({
197
197
  type: e.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")
198
- }).and(P), U = e.object({
198
+ }).and($), J = e.object({
199
199
  provider: e.enum(["heygen"]),
200
- options: _
201
- }), $ = e.object({
200
+ options: U
201
+ }), Z = e.object({
202
202
  type: e.enum(["text-generator"]),
203
203
  prompt: e.string(),
204
204
  model: e.enum(["gpt-3.5-turbo", "gpt-4"]),
205
205
  systemPrompt: e.optional(e.string())
206
- }), J = e.object({
206
+ }), M = e.object({
207
207
  type: e.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")
208
- }).and($), Z = e.object({
208
+ }).and(Z), H = e.object({
209
209
  provider: e.enum(["openai"]),
210
- options: J
211
- }), M = e.object({
210
+ options: M
211
+ }), K = e.object({
212
212
  status: e.string(),
213
213
  title: e.string(),
214
214
  detail: e.string()
215
215
  });
216
216
  e.object({
217
- errors: e.array(M)
217
+ errors: e.array(K)
218
218
  });
219
- const K = e.object({
219
+ const V = e.object({
220
220
  owner: e.string(),
221
221
  provider: e.enum(["shotstack", "elevenlabs", "heygen", "d-id"]),
222
222
  type: e.enum(["text-to-speech", "text-to-avatar"]),
@@ -224,28 +224,28 @@ const K = e.object({
224
224
  status: e.enum(["queued", "processing", "saving", "done", "failed"]),
225
225
  created: e.string(),
226
226
  updated: e.string()
227
- }), V = e.object({
227
+ }), Q = e.object({
228
228
  type: e.string(),
229
229
  id: e.string(),
230
- attributes: K
230
+ attributes: V
231
231
  });
232
232
  e.object({
233
- data: V
233
+ data: Q
234
234
  });
235
- const H = e.object({
235
+ const W = e.object({
236
236
  type: e.enum(["image-to-video"]),
237
237
  imageUrl: e.string(),
238
- guidanceScale: e.optional(e.number()).default(1.8),
239
- motion: e.optional(e.int()).default(127)
240
- }), Q = e.object({
238
+ guidanceScale: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(1.8),
239
+ motion: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())).default(127)
240
+ }), X = e.object({
241
241
  type: e.enum(["text-generator"]),
242
242
  prompt: e.string()
243
- }), W = e.object({
243
+ }), Y = e.object({
244
244
  type: e.enum(["text-to-image"]),
245
245
  prompt: e.string(),
246
- width: e.int(),
247
- height: e.int()
248
- }), X = e.object({
246
+ width: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
247
+ height: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())
248
+ }), v = e.object({
249
249
  type: e.enum(["text-to-speech"]),
250
250
  text: e.string(),
251
251
  voice: e.enum([
@@ -339,23 +339,23 @@ const H = e.object({
339
339
  "fi-FI"
340
340
  ])),
341
341
  newscaster: e.optional(e.boolean()).default(!1)
342
- }), Y = e.union([
342
+ }), ee = e.union([
343
343
  e.object({
344
344
  type: e.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")
345
- }).and(X),
345
+ }).and(v),
346
346
  e.object({
347
347
  type: e.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")
348
- }).and(W),
348
+ }).and(Y),
349
349
  e.object({
350
350
  type: e.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")
351
- }).and(Q),
351
+ }).and(X),
352
352
  e.object({
353
353
  type: e.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")
354
- }).and(H)
355
- ]), ee = e.object({
354
+ }).and(W)
355
+ ]), te = e.object({
356
356
  provider: e.enum(["shotstack"]),
357
- options: Y
358
- }), te = e.object({
357
+ options: ee
358
+ }), oe = e.object({
359
359
  type: e.enum(["text-to-image"]),
360
360
  prompt: e.string(),
361
361
  engine: e.optional(e.enum([
@@ -365,11 +365,11 @@ const H = e.object({
365
365
  "stable-diffusion-512-v2-1",
366
366
  "stable-diffusion-xl-beta-v2-2-2"
367
367
  ])),
368
- width: e.int(),
369
- height: e.int(),
370
- steps: e.optional(e.int()).default(30),
371
- seed: e.optional(e.int()).default(0),
372
- cfgScale: e.optional(e.number()).default(7),
368
+ width: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
369
+ height: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
370
+ steps: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())).default(30),
371
+ seed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())).default(0),
372
+ cfgScale: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(7),
373
373
  stylePreset: e.optional(e.enum([
374
374
  "3d-model",
375
375
  "analog-film",
@@ -389,120 +389,120 @@ const H = e.object({
389
389
  "pixel-art",
390
390
  "tile-texture"
391
391
  ]))
392
- }), oe = e.object({
392
+ }), se = e.object({
393
393
  type: e.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")
394
- }).and(te), ne = e.object({
394
+ }).and(oe), ne = e.object({
395
395
  provider: e.enum(["stability-ai"]),
396
- options: oe
397
- }), ae = e.union([
396
+ options: se
397
+ }), re = e.union([
398
398
  e.object({
399
399
  provider: e.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")
400
- }).and(ee),
400
+ }).and(te),
401
401
  e.object({
402
402
  provider: e.literal("didGeneratedAsset_DIDGeneratedAsset")
403
- }).and(B),
403
+ }).and(E),
404
404
  e.object({
405
405
  provider: e.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")
406
- }).and(q),
406
+ }).and(_),
407
407
  e.object({
408
408
  provider: e.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")
409
- }).and(U),
409
+ }).and(J),
410
410
  e.object({
411
411
  provider: e.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")
412
- }).and(Z),
412
+ }).and(H),
413
413
  e.object({
414
414
  provider: e.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")
415
415
  }).and(ne)
416
- ]), n = e.object({
417
- top: e.optional(e.number().gte(0).lte(1)),
418
- bottom: e.optional(e.number().gte(0).lte(1)),
419
- left: e.optional(e.number().gte(0).lte(1)),
420
- right: e.optional(e.number().gte(0).lte(1))
421
- }), jt = n, ie = e.object({
416
+ ]), s = e.object({
417
+ top: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))),
418
+ bottom: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))),
419
+ left: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))),
420
+ right: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1)))
421
+ }), Ut = s, ie = e.object({
422
422
  bucket: e.string(),
423
423
  prefix: e.optional(e.string()),
424
424
  filename: e.optional(e.string())
425
- }), se = e.object({
425
+ }), pe = e.object({
426
426
  provider: e.string().default("google-cloud-storage"),
427
427
  options: e.optional(ie)
428
- }), re = e.object({
428
+ }), ae = e.object({
429
429
  folderId: e.string(),
430
430
  filename: e.optional(e.string())
431
- }), le = e.object({
431
+ }), ce = e.object({
432
432
  provider: e.string().default("google-drive"),
433
- options: re
434
- }), pe = e.object({
433
+ options: ae
434
+ }), ue = e.object({
435
435
  playbackPolicy: e.optional(e.array(e.enum(["public", "signed"]))),
436
436
  passthrough: e.optional(e.string().max(255))
437
- }), ce = e.object({
437
+ }), me = e.object({
438
438
  provider: e.string().default("mux"),
439
- options: e.optional(pe)
440
- }), ue = e.object({
439
+ options: e.optional(ue)
440
+ }), be = e.object({
441
441
  region: e.string(),
442
442
  bucket: e.string(),
443
443
  prefix: e.optional(e.string()),
444
444
  filename: e.optional(e.string()),
445
445
  acl: e.optional(e.string())
446
- }), me = e.object({
446
+ }), ge = e.object({
447
447
  provider: e.string().default("s3"),
448
- options: e.optional(ue)
449
- }), de = e.object({
448
+ options: e.optional(be)
449
+ }), Ne = e.object({
450
450
  provider: e.string().default("shotstack"),
451
451
  exclude: e.optional(e.boolean())
452
- }), he = e.object({
452
+ }), fe = e.object({
453
453
  title: e.optional(e.string().max(150)),
454
454
  privacyLevel: e.optional(e.enum(["public", "friends", "private"])),
455
455
  disableDuet: e.optional(e.boolean()).default(!1),
456
456
  disableStitch: e.optional(e.boolean()).default(!1),
457
457
  disableComment: e.optional(e.boolean()).default(!1)
458
- }), ge = e.object({
458
+ }), de = e.object({
459
459
  provider: e.string().default("tiktok"),
460
- options: e.optional(he)
461
- }), be = e.object({
460
+ options: e.optional(fe)
461
+ }), he = e.object({
462
462
  view: e.optional(e.enum(["anybody", "nobody", "contacts", "password", "unlisted"])),
463
463
  embed: e.optional(e.enum(["public", "private", "whitelist"])),
464
464
  comments: e.optional(e.enum(["anybody", "nobody", "contacts"]))
465
- }), fe = e.object({
465
+ }), le = e.object({
466
466
  name: e.optional(e.string()),
467
467
  description: e.optional(e.string()),
468
- privacy: e.optional(be),
468
+ privacy: e.optional(he),
469
469
  folderUri: e.optional(e.string())
470
- }), Se = e.object({
470
+ }), ye = e.object({
471
471
  provider: e.string().default("vimeo"),
472
- options: e.optional(fe)
473
- }), i = e.union([
472
+ options: e.optional(le)
473
+ }), r = e.union([
474
474
  e.object({
475
475
  destinations: e.optional(e.literal("shotstackDestination_ShotstackDestination"))
476
- }).and(de),
476
+ }).and(Ne),
477
477
  e.object({
478
478
  destinations: e.optional(e.literal("muxDestination_MuxDestination"))
479
- }).and(ce),
479
+ }).and(me),
480
480
  e.object({
481
481
  destinations: e.optional(e.literal("s3Destination_S3Destination"))
482
- }).and(me),
482
+ }).and(ge),
483
483
  e.object({
484
484
  destinations: e.optional(e.literal("googleCloudStorageDestination_GoogleCloudStorageDestination"))
485
- }).and(se),
485
+ }).and(pe),
486
486
  e.object({
487
487
  destinations: e.optional(e.literal("googleDriveDestination_GoogleDriveDestination"))
488
- }).and(le),
488
+ }).and(ce),
489
489
  e.object({
490
490
  destinations: e.optional(e.literal("vimeoDestination_VimeoDestination"))
491
- }).and(Se),
491
+ }).and(ye),
492
492
  e.object({
493
493
  destinations: e.optional(e.literal("tiktokDestination_TiktokDestination"))
494
- }).and(ge)
495
- ]), ye = i, Ae = e.object({
494
+ }).and(de)
495
+ ]), Se = r, je = e.object({
496
496
  horizontal: e.optional(e.boolean()),
497
497
  vertical: e.optional(e.boolean())
498
- }), je = e.object({
498
+ }), Ae = e.object({
499
499
  src: e.string()
500
- }), p = e.object({
500
+ }), c = e.object({
501
501
  type: e.enum(["html"]),
502
502
  html: e.string(),
503
503
  css: e.optional(e.string()),
504
- width: e.optional(e.int()),
505
- height: e.optional(e.int()),
504
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
505
+ height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
506
506
  background: e.optional(e.string()),
507
507
  position: e.optional(e.enum([
508
508
  "top",
@@ -515,18 +515,18 @@ const H = e.object({
515
515
  "topLeft",
516
516
  "center"
517
517
  ]))
518
- }), wt = p, c = e.object({
518
+ }), Jt = c, u = e.object({
519
519
  type: e.enum(["image"]),
520
520
  src: e.string(),
521
- crop: e.optional(n)
522
- }), Tt = c, we = e.object({
521
+ crop: e.optional(s)
522
+ }), Zt = u, we = e.object({
523
523
  type: e.optional(e.enum(["image-to-video"])),
524
524
  src: e.optional(e.string()),
525
525
  prompt: e.optional(e.string()),
526
526
  aspectRatio: e.optional(e.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
527
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))),
528
- crop: e.optional(n)
529
- }), Te = e.object({
527
+ speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10)))),
528
+ crop: e.optional(s)
529
+ }), xe = e.object({
530
530
  preset: e.enum([
531
531
  "conference",
532
532
  "interview",
@@ -538,20 +538,20 @@ const H = e.object({
538
538
  "studio",
539
539
  "voice_over"
540
540
  ])
541
- }), xe = e.object({
541
+ }), Te = e.object({
542
542
  provider: e.string().default("dolby"),
543
- options: Te
543
+ options: xe
544
544
  }), ke = e.object({
545
545
  enhancement: e.literal("dolbyEnhancement_DolbyEnhancement")
546
- }).and(xe), ve = e.object({
546
+ }).and(Te), Fe = e.object({
547
547
  audio: e.optional(ke)
548
- }), Fe = e.object({
548
+ }), Re = e.object({
549
549
  status: e.string(),
550
550
  title: e.string(),
551
551
  detail: e.string()
552
552
  });
553
553
  e.object({
554
- errors: e.array(Fe)
554
+ errors: e.array(Re)
555
555
  });
556
556
  const Oe = e.object({
557
557
  type: e.string(),
@@ -560,36 +560,36 @@ const Oe = e.object({
560
560
  e.object({
561
561
  data: Oe
562
562
  });
563
- const Re = e.object({
563
+ const De = e.object({
564
564
  id: e.string(),
565
565
  url: e.string(),
566
566
  expires: e.string()
567
- }), De = e.object({
567
+ }), Le = e.object({
568
568
  type: e.string(),
569
569
  id: e.string(),
570
- attributes: Re
570
+ attributes: De
571
571
  });
572
572
  e.object({
573
- data: De
573
+ data: Le
574
574
  });
575
- const Ne = e.object({
576
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))),
575
+ const Ge = e.object({
576
+ speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10)))),
577
577
  preservePitch: e.optional(e.boolean())
578
- }), Le = e.object({
578
+ }), Ie = e.object({
579
579
  format: e.optional(e.enum(["srt", "vtt"]))
580
- }), u = e.object({
580
+ }), m = e.object({
581
581
  type: e.enum(["luma"]),
582
582
  src: e.string(),
583
- trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
584
- }), xt = u, m = e.object({
583
+ trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())))
584
+ }), Mt = m, b = e.object({
585
585
  find: e.string(),
586
586
  replace: e.unknown()
587
- }), Ge = e.object({
588
- capture: e.number()
589
- }), Ie = e.object({
590
- start: e.optional(e.number().gte(0)),
591
- length: e.optional(e.number().gte(0))
592
587
  }), Ce = e.object({
588
+ capture: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())
589
+ }), ze = e.object({
590
+ start: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))),
591
+ length: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0)))
592
+ }), Be = e.object({
593
593
  id: e.string(),
594
594
  owner: e.string(),
595
595
  region: e.optional(e.string()),
@@ -600,57 +600,57 @@ const Ne = e.object({
600
600
  status: e.enum(["importing", "ready", "failed", "deleted"]),
601
601
  created: e.optional(e.string()),
602
602
  updated: e.optional(e.string())
603
- }), d = e.object({
603
+ }), g = e.object({
604
604
  type: e.string(),
605
- attributes: Ce
605
+ attributes: Be
606
606
  });
607
607
  e.object({
608
- data: e.array(d)
608
+ data: e.array(g)
609
609
  });
610
610
  e.object({
611
- data: d
611
+ data: g
612
612
  });
613
613
  e.object({
614
614
  success: e.boolean(),
615
615
  message: e.string(),
616
616
  response: e.record(e.string(), e.unknown())
617
617
  });
618
- const Be = e.object({
618
+ const Ee = e.object({
619
619
  message: e.string(),
620
620
  id: e.string()
621
621
  });
622
622
  e.object({
623
623
  success: e.boolean(),
624
624
  message: e.string(),
625
- response: Be
625
+ response: Ee
626
626
  });
627
- const ze = e.object({
627
+ const qe = e.object({
628
628
  id: e.string(),
629
629
  name: e.string(),
630
630
  created: e.optional(e.string()),
631
631
  updated: e.optional(e.string())
632
- }), Ee = e.object({
632
+ }), Pe = e.object({
633
633
  owner: e.string(),
634
- templates: e.array(ze)
634
+ templates: e.array(qe)
635
635
  });
636
636
  e.object({
637
637
  success: e.boolean(),
638
638
  message: e.string(),
639
- response: Ee
639
+ response: Pe
640
640
  });
641
- const qe = e.object({
641
+ const _e = e.object({
642
642
  message: e.string(),
643
643
  id: e.string()
644
644
  });
645
645
  e.object({
646
646
  success: e.boolean(),
647
647
  message: e.string(),
648
- response: qe
648
+ response: _e
649
649
  });
650
- const Pe = e.object({
650
+ const $e = e.object({
651
651
  horizontal: e.optional(e.enum(["left", "center", "right"])),
652
652
  vertical: e.optional(e.enum(["top", "middle", "bottom"]))
653
- }), _e = e.object({
653
+ }), Ue = e.object({
654
654
  preset: e.enum([
655
655
  "fadeIn",
656
656
  "slideIn",
@@ -659,111 +659,111 @@ const Pe = e.object({
659
659
  "shift",
660
660
  "movingLetters"
661
661
  ]),
662
- speed: e.optional(e.number().gte(0.1).lte(10)).default(1),
663
- duration: e.optional(e.number().gte(0.1).lte(30)),
662
+ speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0.1).lte(10))).default(1),
663
+ duration: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0.1).lte(30))),
664
664
  style: e.optional(e.enum(["character", "word"])),
665
665
  direction: e.optional(e.enum(["left", "right", "up", "down"]))
666
- }), Ue = e.object({
666
+ }), Je = e.object({
667
667
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
668
- opacity: e.optional(e.number().gte(0).lte(1)).default(1),
669
- borderRadius: e.optional(e.number().gte(0)).default(0)
670
- }), $e = e.object({
671
- width: e.optional(e.number().gte(0)).default(0),
668
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1),
669
+ borderRadius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0)
670
+ }), Ze = e.object({
671
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
672
672
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
673
- opacity: e.optional(e.number().gte(0).lte(1)).default(1),
674
- radius: e.optional(e.number().gte(0)).default(0)
675
- }), Je = e.object({
673
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1),
674
+ radius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0)
675
+ }), Me = e.object({
676
676
  type: e.optional(e.enum(["linear", "radial"])),
677
- angle: e.optional(e.number().gte(0).lte(360)).default(0),
677
+ angle: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(360))).default(0),
678
678
  stops: e.array(e.object({
679
- offset: e.number().gte(0).lte(1),
679
+ offset: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1)),
680
680
  color: e.string().regex(/^#[A-Fa-f0-9]{6}$/)
681
681
  })).min(2)
682
- }), Ze = e.object({
683
- top: e.optional(e.number().gte(0)).default(0),
684
- right: e.optional(e.number().gte(0)).default(0),
685
- bottom: e.optional(e.number().gte(0)).default(0),
686
- left: e.optional(e.number().gte(0)).default(0)
687
- }), Me = e.object({
688
- offsetX: e.optional(e.number()).default(0),
689
- offsetY: e.optional(e.number()).default(0),
690
- blur: e.optional(e.number().gte(0)).default(0),
691
- color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
692
- opacity: e.optional(e.number().gte(0).lte(1)).default(0.5)
682
+ }), He = e.object({
683
+ top: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
684
+ right: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
685
+ bottom: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
686
+ left: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0)
693
687
  }), Ke = e.object({
694
- width: e.optional(e.number().gte(0)).default(0),
688
+ offsetX: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
689
+ offsetY: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
690
+ blur: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
695
691
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
696
- opacity: e.optional(e.number().gte(0).lte(1)).default(1)
692
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(0.5)
697
693
  }), Ve = e.object({
694
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
695
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
696
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1)
697
+ }), Qe = e.object({
698
698
  family: e.optional(e.string()).default("Open Sans"),
699
- size: e.optional(e.int().gte(1).lte(500)).default(24),
699
+ size: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(500))).default(24),
700
700
  weight: e.optional(e.unknown()).default("400"),
701
701
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
702
- opacity: e.optional(e.number().gte(0).lte(1)).default(1),
702
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1),
703
703
  background: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
704
- stroke: e.optional(Ke)
705
- }), He = e.object({
706
- letterSpacing: e.optional(e.number()).default(0),
707
- lineHeight: e.optional(e.number().gte(0).lte(10)).default(1.2),
704
+ stroke: e.optional(Ve)
705
+ }), We = e.object({
706
+ letterSpacing: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
707
+ lineHeight: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))).default(1.2),
708
708
  textTransform: e.optional(e.enum(["none", "uppercase", "lowercase", "capitalize"])),
709
709
  textDecoration: e.optional(e.enum(["none", "underline", "line-through"])),
710
- gradient: e.optional(Je)
711
- }), h = e.object({
710
+ gradient: e.optional(Me)
711
+ }), N = e.object({
712
712
  type: e.enum(["rich-text"]),
713
713
  text: e.string().max(5e3),
714
- font: e.optional(Ve),
715
- style: e.optional(He),
716
- shadow: e.optional(Me),
717
- background: e.optional(Ue),
718
- border: e.optional($e),
719
- padding: e.optional(e.union([e.number().gte(0), Ze])),
720
- align: e.optional(Pe),
721
- animation: e.optional(_e)
722
- }), kt = h, Qe = e.object({
714
+ font: e.optional(Qe),
715
+ style: e.optional(We),
716
+ shadow: e.optional(Ke),
717
+ background: e.optional(Je),
718
+ border: e.optional(Ze),
719
+ padding: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0)), He])),
720
+ align: e.optional($e),
721
+ animation: e.optional(Ue)
722
+ }), Ht = N, Xe = e.object({
723
723
  id: e.optional(e.string()),
724
724
  owner: e.optional(e.string()),
725
725
  status: e.optional(e.enum(["queued", "failed"])),
726
726
  created: e.optional(e.string())
727
- }), We = e.object({
727
+ }), Ye = e.object({
728
728
  type: e.optional(e.string()),
729
- attributes: e.optional(Qe)
729
+ attributes: e.optional(Xe)
730
730
  });
731
731
  e.object({
732
- data: We
732
+ data: Ye
733
733
  });
734
- const Xe = e.object({
734
+ const ve = e.object({
735
735
  url: e.string(),
736
736
  id: e.string(),
737
- destinations: e.array(i)
738
- }), g = e.object({
737
+ destinations: e.array(r)
738
+ }), f = e.object({
739
739
  type: e.enum(["shape"]),
740
740
  shape: e.enum(["rectangle", "circle", "line"]),
741
- width: e.optional(e.int()),
742
- height: e.optional(e.int()),
741
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
742
+ height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
743
743
  fill: e.optional(e.object({
744
744
  color: e.optional(e.string()),
745
- opacity: e.optional(e.number())
745
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
746
746
  })),
747
747
  stroke: e.optional(e.object({
748
748
  color: e.optional(e.string()),
749
- width: e.optional(e.number())
749
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
750
750
  })),
751
751
  rectangle: e.optional(e.object({
752
- width: e.int(),
753
- height: e.int(),
754
- cornerRadius: e.optional(e.int())
752
+ width: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
753
+ height: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
754
+ cornerRadius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()))
755
755
  })),
756
756
  circle: e.optional(e.object({
757
- radius: e.int()
757
+ radius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())
758
758
  })),
759
759
  line: e.optional(e.object({
760
- length: e.int(),
761
- thickness: e.int()
760
+ length: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int()),
761
+ thickness: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())
762
762
  }))
763
- }), vt = g, s = e.object({
764
- width: e.optional(e.int().gte(1).lte(4096)),
765
- height: e.optional(e.int().gte(1).lte(4096))
766
- }), Ye = s, b = e.object({
763
+ }), Kt = f, i = e.object({
764
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(4096))),
765
+ height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(4096)))
766
+ }), et = i, d = e.object({
767
767
  format: e.optional(e.enum([
768
768
  "mp4",
769
769
  "webm",
@@ -781,10 +781,10 @@ const Xe = e.object({
781
781
  "webp",
782
782
  "tif"
783
783
  ])),
784
- size: e.optional(s),
784
+ size: e.optional(i),
785
785
  fit: e.optional(e.enum(["cover", "contain", "crop"])),
786
786
  resolution: e.optional(e.enum(["preview", "mobile", "sd", "hd", "fhd"])),
787
- quality: e.optional(e.int().gte(1).lte(100)),
787
+ quality: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(100))),
788
788
  fps: e.optional(e.union([
789
789
  e.literal(12),
790
790
  e.literal(15),
@@ -798,16 +798,16 @@ const Xe = e.object({
798
798
  e.literal(59.94),
799
799
  e.literal(60)
800
800
  ])),
801
- speed: e.optional(Ne),
802
- keyframeInterval: e.optional(e.int().gte(1).lte(300)),
801
+ speed: e.optional(Ge),
802
+ keyframeInterval: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(300))),
803
803
  fixOffset: e.optional(e.boolean()),
804
804
  fixRotation: e.optional(e.boolean()),
805
- enhance: e.optional(ve),
805
+ enhance: e.optional(Fe),
806
806
  filename: e.optional(e.string())
807
- }), et = e.object({
808
- renditions: e.optional(e.array(b)),
809
- transcription: e.optional(Le)
810
807
  }), tt = e.object({
808
+ renditions: e.optional(e.array(d)),
809
+ transcription: e.optional(Ie)
810
+ }), ot = e.object({
811
811
  id: e.string(),
812
812
  status: e.optional(e.enum([
813
813
  "queued",
@@ -818,96 +818,205 @@ const Xe = e.object({
818
818
  "overwritten"
819
819
  ])),
820
820
  url: e.optional(e.string()),
821
- executionTime: e.optional(e.number()),
822
- transformation: e.optional(b),
823
- width: e.optional(e.int()),
824
- height: e.optional(e.int()),
825
- duration: e.optional(e.number()),
826
- fps: e.optional(e.number())
827
- }), ot = e.object({
828
- renditions: e.optional(e.array(tt))
821
+ executionTime: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
822
+ transformation: e.optional(d),
823
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
824
+ height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
825
+ duration: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
826
+ fps: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
827
+ }), st = e.object({
828
+ renditions: e.optional(e.array(ot))
829
829
  }), nt = e.object({
830
830
  id: e.string(),
831
831
  owner: e.string(),
832
832
  input: e.optional(e.string()),
833
833
  source: e.optional(e.string()),
834
834
  status: e.optional(e.enum(["queued", "importing", "ready", "failed", "deleted", "overwritten"])),
835
- outputs: e.optional(ot),
836
- width: e.optional(e.int()),
835
+ outputs: e.optional(st),
836
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
837
837
  height: e.optional(e.string()),
838
- duration: e.optional(e.number()),
839
- fps: e.optional(e.number()),
838
+ duration: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
839
+ fps: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
840
840
  created: e.optional(e.string()),
841
841
  updated: e.optional(e.string())
842
- }), f = e.object({
842
+ }), h = e.object({
843
843
  type: e.string(),
844
844
  id: e.string(),
845
845
  attributes: nt
846
846
  });
847
847
  e.object({
848
- data: e.array(f)
848
+ data: e.array(h)
849
849
  });
850
850
  e.object({
851
- data: f
851
+ data: h
852
852
  });
853
- const at = e.object({
853
+ const rt = e.object({
854
854
  url: e.optional(e.string()),
855
- outputs: e.optional(et),
856
- destinations: e.optional(i),
855
+ outputs: e.optional(tt),
856
+ destinations: e.optional(r),
857
857
  callback: e.optional(e.string())
858
858
  }), it = e.object({
859
859
  src: e.string(),
860
860
  effect: e.optional(e.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
861
- volume: e.optional(e.number())
862
- }), st = e.object({
861
+ volume: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
862
+ }), l = e.object({
863
+ offset: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1)),
864
+ color: e.string().regex(/^#[A-Fa-f0-9]{6}$/)
865
+ }), pt = e.object({
866
+ type: e.enum(["linear"]),
867
+ angle: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(360))).default(0),
868
+ stops: e.array(l).min(2),
869
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1)
870
+ }), at = e.object({
871
+ type: e.enum(["radial"]),
872
+ stops: e.array(l).min(2),
873
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1)
874
+ }), ct = e.object({
875
+ offsetX: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
876
+ offsetY: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
877
+ blur: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0))).default(0),
878
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
879
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(0.5)
880
+ }), ut = e.object({
881
+ type: e.enum(["solid"]),
882
+ color: e.string().regex(/^#[A-Fa-f0-9]{6}$/).default("#000000"),
883
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1)
884
+ }), mt = e.discriminatedUnion("type", [
885
+ ut,
886
+ pt,
887
+ at
888
+ ]), bt = e.object({
889
+ color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
890
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(100))).default(1),
891
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1),
892
+ lineCap: e.optional(e.enum(["butt", "round", "square"])),
893
+ lineJoin: e.optional(e.enum(["miter", "round", "bevel"])),
894
+ dashArray: e.optional(e.array(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0)))),
895
+ dashOffset: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0)
896
+ }), gt = e.object({
897
+ x: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
898
+ y: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())).default(0),
899
+ rotation: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(-360).lte(360))).default(0),
900
+ scale: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0.01).lte(100))).default(1),
901
+ originX: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(0.5),
902
+ originY: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(0.5)
903
+ }), Nt = e.object({
904
+ type: e.enum(["arrow"]),
905
+ length: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
906
+ headWidth: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(1e3)),
907
+ headLength: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(1e3)),
908
+ shaftWidth: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(1e3))
909
+ }), ft = e.object({
910
+ type: e.enum(["circle"]),
911
+ radius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048))
912
+ }), dt = e.object({
913
+ type: e.enum(["cross"]),
914
+ width: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
915
+ height: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
916
+ thickness: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(500))
917
+ }), ht = e.object({
918
+ type: e.enum(["ellipse"]),
919
+ radiusX: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048)),
920
+ radiusY: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048))
921
+ }), lt = e.object({
922
+ type: e.enum(["heart"]),
923
+ size: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096))
924
+ }), yt = e.object({
925
+ type: e.enum(["line"]),
926
+ length: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
927
+ thickness: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(500))
928
+ }), St = e.object({
929
+ type: e.enum(["path"]),
930
+ d: e.string().min(1).max(1e5)
931
+ }), jt = e.object({
932
+ type: e.enum(["polygon"]),
933
+ sides: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(3).lte(100)),
934
+ radius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048))
935
+ }), At = e.object({
936
+ type: e.enum(["rectangle"]),
937
+ width: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
938
+ height: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(4096)),
939
+ cornerRadius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(2048))).default(0)
940
+ }), wt = e.object({
941
+ type: e.enum(["ring"]),
942
+ outerRadius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048)),
943
+ innerRadius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(2048))
944
+ }), xt = e.object({
945
+ type: e.enum(["star"]),
946
+ points: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(3).lte(100)),
947
+ outerRadius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048)),
948
+ innerRadius: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(1).lte(2048))
949
+ }), Tt = e.discriminatedUnion("type", [
950
+ At,
951
+ ft,
952
+ ht,
953
+ yt,
954
+ jt,
955
+ xt,
956
+ Nt,
957
+ lt,
958
+ dt,
959
+ wt,
960
+ St
961
+ ]), kt = e.object({
962
+ type: e.enum(["svg"]),
963
+ shape: Tt,
964
+ fill: e.optional(mt),
965
+ stroke: e.optional(bt),
966
+ shadow: e.optional(ct),
967
+ transform: e.optional(gt),
968
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))).default(1),
969
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(4096))),
970
+ height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(4096)))
971
+ }), Ft = e.object({
863
972
  id: e.string(),
864
- merge: e.optional(e.array(m))
865
- }), rt = e.object({
973
+ merge: e.optional(e.array(b))
974
+ }), Rt = e.object({
866
975
  horizontal: e.optional(e.enum(["left", "center", "right"])),
867
976
  vertical: e.optional(e.enum(["top", "center", "bottom"]))
868
- }), lt = e.object({
977
+ }), Ot = e.object({
869
978
  preset: e.enum(["typewriter"]),
870
- duration: e.optional(e.number().gte(0.1).lte(30))
871
- }), pt = e.object({
979
+ duration: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0.1).lte(30)))
980
+ }), Dt = e.object({
872
981
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
873
- opacity: e.optional(e.number().gte(0).lte(1)),
874
- padding: e.optional(e.number().gte(0).lte(100)),
875
- borderRadius: e.optional(e.number().gte(0))
876
- }), ct = e.object({
982
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))),
983
+ padding: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(100))),
984
+ borderRadius: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0)))
985
+ }), Lt = e.object({
877
986
  family: e.optional(e.string()),
878
987
  color: e.optional(e.string()),
879
- opacity: e.optional(e.number()),
880
- size: e.optional(e.int()),
881
- weight: e.optional(e.int()),
882
- lineHeight: e.optional(e.number())
883
- }), ut = e.object({
884
- width: e.optional(e.number().gte(0).lte(10)),
988
+ opacity: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
989
+ size: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
990
+ weight: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
991
+ lineHeight: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
992
+ }), Gt = e.object({
993
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))),
885
994
  color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/))
886
- }), S = e.object({
995
+ }), y = e.object({
887
996
  type: e.enum(["text"]),
888
997
  text: e.string(),
889
- width: e.optional(e.int()),
890
- height: e.optional(e.int()),
891
- font: e.optional(ct),
892
- background: e.optional(pt),
893
- alignment: e.optional(rt),
894
- stroke: e.optional(ut),
895
- animation: e.optional(lt),
998
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
999
+ height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
1000
+ font: e.optional(Lt),
1001
+ background: e.optional(Dt),
1002
+ alignment: e.optional(Rt),
1003
+ stroke: e.optional(Gt),
1004
+ animation: e.optional(Ot),
896
1005
  ellipsis: e.optional(e.string())
897
- }), Ft = S, mt = e.object({
1006
+ }), Vt = y, It = e.object({
898
1007
  type: e.enum(["text-to-image"]),
899
1008
  prompt: e.string(),
900
- width: e.optional(e.int()),
901
- height: e.optional(e.int()),
902
- crop: e.optional(n)
903
- }), dt = e.object({
904
- capture: e.number(),
905
- scale: e.number().gte(0).lte(1)
906
- }), y = e.object({
1009
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
1010
+ height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int())),
1011
+ crop: e.optional(s)
1012
+ }), Ct = e.object({
1013
+ capture: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()),
1014
+ scale: e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1))
1015
+ }), S = e.object({
907
1016
  format: e.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
908
1017
  resolution: e.optional(e.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
909
1018
  aspectRatio: e.optional(e.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
910
- size: e.optional(s),
1019
+ size: e.optional(i),
911
1020
  fps: e.optional(e.union([
912
1021
  e.literal(12),
913
1022
  e.literal(15),
@@ -925,11 +1034,11 @@ const at = e.object({
925
1034
  quality: e.optional(e.enum(["verylow", "low", "medium", "high", "veryhigh"])),
926
1035
  repeat: e.optional(e.boolean()),
927
1036
  mute: e.optional(e.boolean()),
928
- range: e.optional(Ie),
929
- poster: e.optional(Ge),
930
- thumbnail: e.optional(dt),
931
- destinations: e.optional(e.array(i))
932
- }), A = y, j = e.object({
1037
+ range: e.optional(ze),
1038
+ poster: e.optional(Ce),
1039
+ thumbnail: e.optional(Ct),
1040
+ destinations: e.optional(e.array(r))
1041
+ }), j = S, A = e.object({
933
1042
  in: e.optional(e.enum([
934
1043
  "none",
935
1044
  "fade",
@@ -1058,11 +1167,11 @@ const at = e.object({
1058
1167
  "shuffleTopLeftFast",
1059
1168
  "zoom"
1060
1169
  ]))
1061
- }), Ot = j, o = e.object({
1170
+ }), Qt = A, o = e.object({
1062
1171
  from: e.optional(e.unknown()),
1063
1172
  to: e.optional(e.unknown()),
1064
- start: e.optional(e.number()),
1065
- length: e.optional(e.number()),
1173
+ start: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1174
+ length: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1066
1175
  interpolation: e.optional(e.enum(["linear", "bezier", "constant"])),
1067
1176
  easing: e.optional(e.enum([
1068
1177
  "ease",
@@ -1094,22 +1203,22 @@ const at = e.object({
1094
1203
  "easeInOutCirc",
1095
1204
  "easeInOutBack"
1096
1205
  ]))
1097
- }), Rt = o, w = e.object({
1206
+ }), Wt = o, w = e.object({
1098
1207
  type: e.enum(["audio"]),
1099
1208
  src: e.string(),
1100
- trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1101
- volume: e.optional(e.union([e.number().gte(0).lte(1), e.array(o)])),
1102
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))),
1209
+ trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))),
1210
+ volume: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1)), e.array(o)])),
1211
+ speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10)))),
1103
1212
  effect: e.optional(e.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]))
1104
- }), Dt = w, r = e.object({
1105
- x: e.optional(e.union([e.number().gte(-10).lte(10), e.array(o)])),
1106
- y: e.optional(e.union([e.number().gte(-10).lte(10), e.array(o)]))
1107
- }), Nt = r, ht = e.object({
1108
- angle: e.optional(e.union([e.int().gte(-360).lte(360), e.array(o)]))
1109
- }), gt = e.object({
1110
- x: e.optional(e.union([e.number().gte(-100).lte(100), e.array(o)])),
1111
- y: e.optional(e.union([e.number().gte(-100).lte(100), e.array(o)]))
1112
- }), bt = e.object({
1213
+ }), Xt = w, p = e.object({
1214
+ x: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(-10).lte(10)), e.array(o)])),
1215
+ y: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(-10).lte(10)), e.array(o)]))
1216
+ }), Yt = p, zt = e.object({
1217
+ angle: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(-360).lte(360)), e.array(o)]))
1218
+ }), Bt = e.object({
1219
+ x: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(-100).lte(100)), e.array(o)])),
1220
+ y: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(-100).lte(100)), e.array(o)]))
1221
+ }), Et = e.object({
1113
1222
  type: e.enum(["title"]),
1114
1223
  text: e.string(),
1115
1224
  style: e.optional(e.enum([
@@ -1146,42 +1255,43 @@ const at = e.object({
1146
1255
  "topLeft",
1147
1256
  "center"
1148
1257
  ])),
1149
- offset: e.optional(r)
1150
- }), T = e.object({
1151
- rotate: e.optional(ht),
1152
- skew: e.optional(gt),
1153
- flip: e.optional(Ae)
1154
- }), Lt = T, x = e.object({
1258
+ offset: e.optional(p)
1259
+ }), x = e.object({
1260
+ rotate: e.optional(zt),
1261
+ skew: e.optional(Bt),
1262
+ flip: e.optional(je)
1263
+ }), vt = x, T = e.object({
1155
1264
  type: e.enum(["video"]),
1156
1265
  src: e.string(),
1157
1266
  transcode: e.optional(e.boolean()),
1158
- trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1159
- volume: e.optional(e.union([e.number().gte(0).lte(1), e.array(o)])),
1267
+ trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))),
1268
+ volume: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(1)), e.array(o)])),
1160
1269
  volumeEffect: e.optional(e.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
1161
- speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))),
1162
- crop: e.optional(n),
1163
- chromaKey: e.optional(G)
1164
- }), Gt = x, k = e.discriminatedUnion("type", [
1165
- x,
1166
- c,
1167
- S,
1168
- h,
1169
- w,
1270
+ speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10)))),
1271
+ crop: e.optional(s),
1272
+ chromaKey: e.optional(C)
1273
+ }), eo = T, k = e.discriminatedUnion("type", [
1274
+ T,
1170
1275
  u,
1171
- l,
1172
- p,
1173
- bt,
1174
- g,
1175
- mt,
1276
+ y,
1277
+ N,
1278
+ w,
1279
+ m,
1280
+ a,
1281
+ c,
1282
+ Et,
1283
+ f,
1284
+ kt,
1285
+ It,
1176
1286
  we
1177
- ]), It = k, v = e.object({
1287
+ ]), to = k, F = e.object({
1178
1288
  asset: k,
1179
- start: e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()), e.enum(["auto"])]),
1180
- length: e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()), e.literal("auto"), e.literal("end")]),
1289
+ start: e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())), e.enum(["auto"])]),
1290
+ length: e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())), e.literal("auto"), e.literal("end")]),
1181
1291
  fit: e.optional(e.enum(["cover", "contain", "crop", "none"])),
1182
- scale: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1183
- width: e.optional(e.int().gte(1).lte(3840)),
1184
- height: e.optional(e.int().gte(1).lte(2160)),
1292
+ scale: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))),
1293
+ width: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(3840))),
1294
+ height: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.int().gte(1).lte(2160))),
1185
1295
  position: e.optional(e.enum([
1186
1296
  "top",
1187
1297
  "topRight",
@@ -1193,8 +1303,8 @@ const at = e.object({
1193
1303
  "topLeft",
1194
1304
  "center"
1195
1305
  ])),
1196
- offset: e.optional(r),
1197
- transition: e.optional(j),
1306
+ offset: e.optional(p),
1307
+ transition: e.optional(A),
1198
1308
  effect: e.optional(e.enum([
1199
1309
  "zoomIn",
1200
1310
  "zoomInSlow",
@@ -1226,24 +1336,24 @@ const at = e.object({
1226
1336
  "muted",
1227
1337
  "negative"
1228
1338
  ])),
1229
- opacity: e.optional(e.union([e.number(), e.array(o)])),
1230
- transform: e.optional(T),
1339
+ opacity: e.optional(e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()), e.array(o)])),
1340
+ transform: e.optional(x),
1231
1341
  alias: e.optional(e.string().regex(/^[A-Za-z0-9_-]+$/))
1232
- }), Ct = v, F = e.object({
1233
- clips: e.array(v)
1234
- }), Bt = F, O = e.object({
1342
+ }), oo = F, R = e.object({
1343
+ clips: e.array(F)
1344
+ }), so = R, O = e.object({
1235
1345
  soundtrack: e.optional(it),
1236
1346
  background: e.optional(e.string()),
1237
- fonts: e.optional(e.array(je)),
1238
- tracks: e.array(F),
1347
+ fonts: e.optional(e.array(Ae)),
1348
+ tracks: e.array(R),
1239
1349
  cache: e.optional(e.boolean())
1240
- }), zt = O, a = e.object({
1350
+ }), no = O, n = e.object({
1241
1351
  timeline: O,
1242
- output: y,
1243
- merge: e.optional(e.array(m)),
1352
+ output: S,
1353
+ merge: e.optional(e.array(b)),
1244
1354
  callback: e.optional(e.string()),
1245
1355
  disk: e.optional(e.enum(["local", "mount"]))
1246
- }), Et = a, ft = e.object({
1356
+ }), ro = n, qt = e.object({
1247
1357
  id: e.string(),
1248
1358
  owner: e.string(),
1249
1359
  plan: e.optional(e.string()),
@@ -1257,37 +1367,37 @@ const at = e.object({
1257
1367
  "failed"
1258
1368
  ]),
1259
1369
  error: e.optional(e.string()),
1260
- duration: e.optional(e.number()),
1261
- renderTime: e.optional(e.number()),
1370
+ duration: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1371
+ renderTime: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
1262
1372
  url: e.optional(e.string()),
1263
1373
  poster: e.optional(e.union([e.string(), e.null()])),
1264
1374
  thumbnail: e.optional(e.union([e.string(), e.null()])),
1265
- data: e.optional(a),
1375
+ data: e.optional(n),
1266
1376
  created: e.optional(e.string()),
1267
1377
  updated: e.optional(e.string())
1268
1378
  });
1269
1379
  e.object({
1270
1380
  success: e.boolean(),
1271
1381
  message: e.string(),
1272
- response: ft
1382
+ response: qt
1273
1383
  });
1274
- const St = e.object({
1384
+ const Pt = e.object({
1275
1385
  id: e.string(),
1276
1386
  name: e.string(),
1277
1387
  owner: e.string(),
1278
- template: a
1388
+ template: n
1279
1389
  });
1280
1390
  e.object({
1281
1391
  success: e.boolean(),
1282
1392
  message: e.string(),
1283
- response: St
1393
+ response: Pt
1284
1394
  });
1285
- const R = e.object({
1395
+ const D = e.object({
1286
1396
  name: e.string(),
1287
- template: e.optional(a)
1397
+ template: e.optional(n)
1288
1398
  });
1289
1399
  e.object({
1290
- body: a,
1400
+ body: n,
1291
1401
  path: e.optional(e.never()),
1292
1402
  query: e.optional(e.never())
1293
1403
  });
@@ -1307,7 +1417,7 @@ e.object({
1307
1417
  query: e.optional(e.never())
1308
1418
  });
1309
1419
  e.object({
1310
- body: R,
1420
+ body: D,
1311
1421
  path: e.optional(e.never()),
1312
1422
  query: e.optional(e.never())
1313
1423
  });
@@ -1327,14 +1437,14 @@ e.object({
1327
1437
  query: e.optional(e.never())
1328
1438
  });
1329
1439
  e.object({
1330
- body: R,
1440
+ body: D,
1331
1441
  path: e.object({
1332
1442
  id: e.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}$/)
1333
1443
  }),
1334
1444
  query: e.optional(e.never())
1335
1445
  });
1336
1446
  e.object({
1337
- body: st,
1447
+ body: Ft,
1338
1448
  path: e.optional(e.never()),
1339
1449
  query: e.optional(e.never())
1340
1450
  });
@@ -1368,7 +1478,7 @@ e.object({
1368
1478
  query: e.optional(e.never())
1369
1479
  });
1370
1480
  e.object({
1371
- body: Xe,
1481
+ body: ve,
1372
1482
  path: e.optional(e.never()),
1373
1483
  query: e.optional(e.never())
1374
1484
  });
@@ -1378,7 +1488,7 @@ e.object({
1378
1488
  query: e.optional(e.never())
1379
1489
  });
1380
1490
  e.object({
1381
- body: at,
1491
+ body: rt,
1382
1492
  path: e.optional(e.never()),
1383
1493
  query: e.optional(e.never())
1384
1494
  });
@@ -1403,7 +1513,7 @@ e.object({
1403
1513
  query: e.optional(e.never())
1404
1514
  });
1405
1515
  e.object({
1406
- body: ae,
1516
+ body: re,
1407
1517
  path: e.optional(e.never()),
1408
1518
  query: e.optional(e.never())
1409
1519
  });
@@ -1414,32 +1524,32 @@ e.object({
1414
1524
  }),
1415
1525
  query: e.optional(e.never())
1416
1526
  });
1417
- const qt = ye, Pt = Ye, _t = A.shape.format, Ut = A.shape.fps.unwrap(), $t = e.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);
1527
+ const io = Se, po = et, ao = j.shape.format, co = j.shape.fps.unwrap(), uo = e.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);
1418
1528
  export {
1419
- It as AssetSchema,
1420
- Dt as AudioAssetSchema,
1421
- At as CaptionAssetSchema,
1422
- Ct as ClipSchema,
1423
- jt as CropSchema,
1424
- qt as DestinationSchema,
1425
- Et as EditSchema,
1426
- $t as HexColorSchema,
1427
- wt as HtmlAssetSchema,
1428
- Tt as ImageAssetSchema,
1429
- Rt as KeyframeSchema,
1430
- xt as LumaAssetSchema,
1431
- Nt as OffsetSchema,
1432
- _t as OutputFormatSchema,
1433
- Ut as OutputFpsSchema,
1434
- A as OutputSchema,
1435
- Pt as OutputSizeSchema,
1436
- kt as RichTextAssetSchema,
1437
- vt as ShapeAssetSchema,
1438
- Ft as TextAssetSchema,
1439
- zt as TimelineSchema,
1440
- Bt as TrackSchema,
1441
- Lt as TransformationSchema,
1442
- Ot as TransitionSchema,
1443
- Rt as TweenSchema,
1444
- Gt as VideoAssetSchema
1529
+ to as AssetSchema,
1530
+ Xt as AudioAssetSchema,
1531
+ $t as CaptionAssetSchema,
1532
+ oo as ClipSchema,
1533
+ Ut as CropSchema,
1534
+ io as DestinationSchema,
1535
+ ro as EditSchema,
1536
+ uo as HexColorSchema,
1537
+ Jt as HtmlAssetSchema,
1538
+ Zt as ImageAssetSchema,
1539
+ Wt as KeyframeSchema,
1540
+ Mt as LumaAssetSchema,
1541
+ Yt as OffsetSchema,
1542
+ ao as OutputFormatSchema,
1543
+ co as OutputFpsSchema,
1544
+ j as OutputSchema,
1545
+ po as OutputSizeSchema,
1546
+ Ht as RichTextAssetSchema,
1547
+ Kt as ShapeAssetSchema,
1548
+ Vt as TextAssetSchema,
1549
+ no as TimelineSchema,
1550
+ so as TrackSchema,
1551
+ vt as TransformationSchema,
1552
+ Qt as TransitionSchema,
1553
+ Wt as TweenSchema,
1554
+ eo as VideoAssetSchema
1445
1555
  };