@shotstack/shotstack-studio 2.0.0-beta.10 → 2.0.0-beta.12
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.
- package/dist/index.d.ts +16 -74
- package/dist/internal.es.js +49545 -0
- package/dist/internal.umd.js +298 -0
- package/dist/schema/index.cjs +1 -1
- package/dist/schema/index.d.ts +16 -74
- package/dist/schema/index.mjs +246 -245
- package/dist/shotstack-studio.es.js +33342 -27570
- package/dist/shotstack-studio.umd.js +194 -172
- package/package.json +13 -3
package/dist/schema/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ e.unknown();
|
|
|
15
15
|
e.unknown();
|
|
16
16
|
e.unknown();
|
|
17
17
|
e.unknown();
|
|
18
|
-
const
|
|
18
|
+
const E = e.object({
|
|
19
19
|
color: e.optional(e.string()),
|
|
20
20
|
opacity: e.optional(e.preprocess((t) => {
|
|
21
21
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -29,7 +29,7 @@ const B = e.object({
|
|
|
29
29
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
30
30
|
return typeof t == "string" ? Number(t) : t;
|
|
31
31
|
}, e.number().int()))
|
|
32
|
-
}),
|
|
32
|
+
}), q = e.object({
|
|
33
33
|
family: e.optional(e.string()),
|
|
34
34
|
color: e.optional(e.string()),
|
|
35
35
|
opacity: e.optional(e.preprocess((t) => {
|
|
@@ -49,7 +49,7 @@ const B = e.object({
|
|
|
49
49
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
50
50
|
return typeof t == "string" ? Number(t) : t;
|
|
51
51
|
}, e.number()))
|
|
52
|
-
}),
|
|
52
|
+
}), P = e.object({
|
|
53
53
|
top: e.optional(e.preprocess((t) => {
|
|
54
54
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
55
55
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -65,9 +65,9 @@ const B = e.object({
|
|
|
65
65
|
}), f = e.object({
|
|
66
66
|
type: e.enum(["caption"]),
|
|
67
67
|
src: e.string(),
|
|
68
|
-
font: e.optional(
|
|
69
|
-
background: e.optional(
|
|
70
|
-
margin: e.optional(
|
|
68
|
+
font: e.optional(q),
|
|
69
|
+
background: e.optional(E),
|
|
70
|
+
margin: e.optional(P),
|
|
71
71
|
trim: e.optional(e.preprocess((t) => {
|
|
72
72
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
73
73
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -76,7 +76,7 @@ const B = e.object({
|
|
|
76
76
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
77
77
|
return typeof t == "string" ? Number(t) : t;
|
|
78
78
|
}, e.number().gte(0).lte(10)))
|
|
79
|
-
}), Ht = f,
|
|
79
|
+
}), Ht = f, $ = e.object({
|
|
80
80
|
color: e.optional(e.string()),
|
|
81
81
|
threshold: e.optional(e.preprocess((t) => {
|
|
82
82
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -86,7 +86,7 @@ const B = e.object({
|
|
|
86
86
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
87
87
|
return typeof t == "string" ? Number(t) : t;
|
|
88
88
|
}, e.number().int().gte(0).lte(250)))
|
|
89
|
-
}),
|
|
89
|
+
}), _ = e.object({
|
|
90
90
|
type: e.enum(["text-to-avatar"]),
|
|
91
91
|
text: e.string(),
|
|
92
92
|
avatar: e.enum([
|
|
@@ -97,12 +97,12 @@ const B = e.object({
|
|
|
97
97
|
"rian"
|
|
98
98
|
]),
|
|
99
99
|
background: e.optional(e.string())
|
|
100
|
-
}),
|
|
100
|
+
}), U = e.object({
|
|
101
101
|
type: e.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")
|
|
102
|
-
}).and(
|
|
102
|
+
}).and(_), Z = e.object({
|
|
103
103
|
provider: e.enum(["d-id"]),
|
|
104
|
-
options:
|
|
105
|
-
}),
|
|
104
|
+
options: U
|
|
105
|
+
}), J = e.object({
|
|
106
106
|
type: e.enum(["text-to-speech"]),
|
|
107
107
|
text: e.string(),
|
|
108
108
|
voice: e.enum([
|
|
@@ -116,12 +116,12 @@ const B = e.object({
|
|
|
116
116
|
"Rachel",
|
|
117
117
|
"Sam"
|
|
118
118
|
])
|
|
119
|
-
}),
|
|
119
|
+
}), M = e.object({
|
|
120
120
|
type: e.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")
|
|
121
|
-
}).and(
|
|
121
|
+
}).and(J), H = e.object({
|
|
122
122
|
provider: e.enum(["elevenlabs"]),
|
|
123
|
-
options:
|
|
124
|
-
}),
|
|
123
|
+
options: M
|
|
124
|
+
}), K = e.object({
|
|
125
125
|
type: e.enum(["text-to-avatar"]),
|
|
126
126
|
text: e.string(),
|
|
127
127
|
avatar: e.enum([
|
|
@@ -241,30 +241,30 @@ const B = e.object({
|
|
|
241
241
|
background: e.optional(e.string()),
|
|
242
242
|
ratio: e.optional(e.enum(["16:9", "9:16"])),
|
|
243
243
|
test: e.optional(e.boolean())
|
|
244
|
-
}),
|
|
244
|
+
}), V = e.object({
|
|
245
245
|
type: e.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")
|
|
246
|
-
}).and(
|
|
246
|
+
}).and(K), Q = e.object({
|
|
247
247
|
provider: e.enum(["heygen"]),
|
|
248
|
-
options:
|
|
249
|
-
}),
|
|
248
|
+
options: V
|
|
249
|
+
}), W = e.object({
|
|
250
250
|
type: e.enum(["text-generator"]),
|
|
251
251
|
prompt: e.string(),
|
|
252
252
|
model: e.enum(["gpt-3.5-turbo", "gpt-4"]),
|
|
253
253
|
systemPrompt: e.optional(e.string())
|
|
254
|
-
}),
|
|
254
|
+
}), X = e.object({
|
|
255
255
|
type: e.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")
|
|
256
|
-
}).and(
|
|
256
|
+
}).and(W), Y = e.object({
|
|
257
257
|
provider: e.enum(["openai"]),
|
|
258
|
-
options:
|
|
259
|
-
}),
|
|
258
|
+
options: X
|
|
259
|
+
}), v = e.object({
|
|
260
260
|
status: e.string(),
|
|
261
261
|
title: e.string(),
|
|
262
262
|
detail: e.string()
|
|
263
263
|
});
|
|
264
264
|
e.object({
|
|
265
|
-
errors: e.array(
|
|
265
|
+
errors: e.array(v)
|
|
266
266
|
});
|
|
267
|
-
const
|
|
267
|
+
const ee = e.object({
|
|
268
268
|
owner: e.string(),
|
|
269
269
|
provider: e.enum([
|
|
270
270
|
"shotstack",
|
|
@@ -283,15 +283,15 @@ const v = e.object({
|
|
|
283
283
|
]),
|
|
284
284
|
created: e.string(),
|
|
285
285
|
updated: e.string()
|
|
286
|
-
}),
|
|
286
|
+
}), te = e.object({
|
|
287
287
|
type: e.string(),
|
|
288
288
|
id: e.string(),
|
|
289
|
-
attributes:
|
|
289
|
+
attributes: ee
|
|
290
290
|
});
|
|
291
291
|
e.object({
|
|
292
|
-
data:
|
|
292
|
+
data: te
|
|
293
293
|
});
|
|
294
|
-
const
|
|
294
|
+
const re = e.object({
|
|
295
295
|
type: e.enum(["image-to-video"]),
|
|
296
296
|
imageUrl: e.string(),
|
|
297
297
|
guidanceScale: e.optional(e.preprocess((t) => {
|
|
@@ -302,10 +302,10 @@ const te = e.object({
|
|
|
302
302
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
303
303
|
return typeof t == "string" ? Number(t) : t;
|
|
304
304
|
}, e.number().int())).default(127)
|
|
305
|
-
}),
|
|
305
|
+
}), ne = e.object({
|
|
306
306
|
type: e.enum(["text-generator"]),
|
|
307
307
|
prompt: e.string()
|
|
308
|
-
}),
|
|
308
|
+
}), ie = e.object({
|
|
309
309
|
type: e.enum(["text-to-image"]),
|
|
310
310
|
prompt: e.string(),
|
|
311
311
|
width: e.preprocess((t) => {
|
|
@@ -316,7 +316,7 @@ const te = e.object({
|
|
|
316
316
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
317
317
|
return typeof t == "string" ? Number(t) : t;
|
|
318
318
|
}, e.number().int())
|
|
319
|
-
}),
|
|
319
|
+
}), oe = e.object({
|
|
320
320
|
type: e.enum(["text-to-speech"]),
|
|
321
321
|
text: e.string(),
|
|
322
322
|
voice: e.enum([
|
|
@@ -410,23 +410,23 @@ const te = e.object({
|
|
|
410
410
|
"fi-FI"
|
|
411
411
|
])),
|
|
412
412
|
newscaster: e.optional(e.boolean()).default(!1)
|
|
413
|
-
}),
|
|
413
|
+
}), ae = e.union([
|
|
414
414
|
e.object({
|
|
415
415
|
type: e.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")
|
|
416
|
-
}).and(
|
|
416
|
+
}).and(oe),
|
|
417
417
|
e.object({
|
|
418
418
|
type: e.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")
|
|
419
|
-
}).and(
|
|
419
|
+
}).and(ie),
|
|
420
420
|
e.object({
|
|
421
421
|
type: e.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")
|
|
422
|
-
}).and(
|
|
422
|
+
}).and(ne),
|
|
423
423
|
e.object({
|
|
424
424
|
type: e.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")
|
|
425
|
-
}).and(
|
|
426
|
-
]),
|
|
425
|
+
}).and(re)
|
|
426
|
+
]), se = e.object({
|
|
427
427
|
provider: e.enum(["shotstack"]),
|
|
428
|
-
options:
|
|
429
|
-
}),
|
|
428
|
+
options: ae
|
|
429
|
+
}), ue = e.object({
|
|
430
430
|
type: e.enum(["text-to-image"]),
|
|
431
431
|
prompt: e.string(),
|
|
432
432
|
engine: e.optional(e.enum([
|
|
@@ -475,30 +475,30 @@ const te = e.object({
|
|
|
475
475
|
"pixel-art",
|
|
476
476
|
"tile-texture"
|
|
477
477
|
]))
|
|
478
|
-
}),
|
|
478
|
+
}), le = e.object({
|
|
479
479
|
type: e.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")
|
|
480
|
-
}).and(
|
|
480
|
+
}).and(ue), pe = e.object({
|
|
481
481
|
provider: e.enum(["stability-ai"]),
|
|
482
|
-
options:
|
|
483
|
-
}),
|
|
482
|
+
options: le
|
|
483
|
+
}), de = e.union([
|
|
484
484
|
e.object({
|
|
485
485
|
provider: e.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")
|
|
486
|
-
}).and(
|
|
486
|
+
}).and(se),
|
|
487
487
|
e.object({
|
|
488
488
|
provider: e.literal("didGeneratedAsset_DIDGeneratedAsset")
|
|
489
|
-
}).and(
|
|
489
|
+
}).and(Z),
|
|
490
490
|
e.object({
|
|
491
491
|
provider: e.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")
|
|
492
|
-
}).and(
|
|
492
|
+
}).and(H),
|
|
493
493
|
e.object({
|
|
494
494
|
provider: e.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")
|
|
495
|
-
}).and(
|
|
495
|
+
}).and(Q),
|
|
496
496
|
e.object({
|
|
497
497
|
provider: e.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")
|
|
498
|
-
}).and(
|
|
498
|
+
}).and(Y),
|
|
499
499
|
e.object({
|
|
500
500
|
provider: e.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")
|
|
501
|
-
}).and(
|
|
501
|
+
}).and(pe)
|
|
502
502
|
]), n = e.object({
|
|
503
503
|
top: e.optional(e.preprocess((t) => {
|
|
504
504
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -516,38 +516,38 @@ const te = e.object({
|
|
|
516
516
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
517
517
|
return typeof t == "string" ? Number(t) : t;
|
|
518
518
|
}, e.number().gte(0).lte(1)))
|
|
519
|
-
}), Kt = n,
|
|
519
|
+
}), Kt = n, fe = e.object({
|
|
520
520
|
bucket: e.string(),
|
|
521
521
|
prefix: e.optional(e.string()),
|
|
522
522
|
filename: e.optional(e.string())
|
|
523
|
-
}), fe = e.object({
|
|
524
|
-
provider: e.string().default("google-cloud-storage"),
|
|
525
|
-
options: e.optional(de)
|
|
526
523
|
}), ce = e.object({
|
|
524
|
+
provider: e.string().default("google-cloud-storage"),
|
|
525
|
+
options: e.optional(fe)
|
|
526
|
+
}), me = e.object({
|
|
527
527
|
folderId: e.string(),
|
|
528
528
|
filename: e.optional(e.string())
|
|
529
|
-
}), me = e.object({
|
|
530
|
-
provider: e.string().default("google-drive"),
|
|
531
|
-
options: ce
|
|
532
529
|
}), ge = e.object({
|
|
530
|
+
provider: e.string().default("google-drive"),
|
|
531
|
+
options: me
|
|
532
|
+
}), ye = e.object({
|
|
533
533
|
playbackPolicy: e.optional(e.array(e.enum(["public", "signed"]))),
|
|
534
534
|
passthrough: e.optional(e.string().max(255))
|
|
535
|
-
}), ye = e.object({
|
|
536
|
-
provider: e.string().default("mux"),
|
|
537
|
-
options: e.optional(ge)
|
|
538
535
|
}), be = e.object({
|
|
536
|
+
provider: e.string().default("mux"),
|
|
537
|
+
options: e.optional(ye)
|
|
538
|
+
}), he = e.object({
|
|
539
539
|
region: e.string(),
|
|
540
540
|
bucket: e.string(),
|
|
541
541
|
prefix: e.optional(e.string()),
|
|
542
542
|
filename: e.optional(e.string()),
|
|
543
543
|
acl: e.optional(e.string())
|
|
544
|
-
}), he = e.object({
|
|
545
|
-
provider: e.string().default("s3"),
|
|
546
|
-
options: e.optional(be)
|
|
547
544
|
}), Ae = e.object({
|
|
545
|
+
provider: e.string().default("s3"),
|
|
546
|
+
options: e.optional(he)
|
|
547
|
+
}), Se = e.object({
|
|
548
548
|
provider: e.string().default("shotstack"),
|
|
549
549
|
exclude: e.optional(e.boolean())
|
|
550
|
-
}),
|
|
550
|
+
}), je = e.object({
|
|
551
551
|
title: e.optional(e.string().max(150)),
|
|
552
552
|
privacyLevel: e.optional(e.enum([
|
|
553
553
|
"public",
|
|
@@ -557,10 +557,10 @@ const te = e.object({
|
|
|
557
557
|
disableDuet: e.optional(e.boolean()).default(!1),
|
|
558
558
|
disableStitch: e.optional(e.boolean()).default(!1),
|
|
559
559
|
disableComment: e.optional(e.boolean()).default(!1)
|
|
560
|
-
}), je = e.object({
|
|
561
|
-
provider: e.string().default("tiktok"),
|
|
562
|
-
options: e.optional(Se)
|
|
563
560
|
}), Ne = e.object({
|
|
561
|
+
provider: e.string().default("tiktok"),
|
|
562
|
+
options: e.optional(je)
|
|
563
|
+
}), we = e.object({
|
|
564
564
|
view: e.optional(e.enum([
|
|
565
565
|
"anybody",
|
|
566
566
|
"nobody",
|
|
@@ -578,40 +578,40 @@ const te = e.object({
|
|
|
578
578
|
"nobody",
|
|
579
579
|
"contacts"
|
|
580
580
|
]))
|
|
581
|
-
}),
|
|
581
|
+
}), xe = e.object({
|
|
582
582
|
name: e.optional(e.string()),
|
|
583
583
|
description: e.optional(e.string()),
|
|
584
|
-
privacy: e.optional(
|
|
584
|
+
privacy: e.optional(we),
|
|
585
585
|
folderUri: e.optional(e.string())
|
|
586
|
-
}),
|
|
586
|
+
}), Te = e.object({
|
|
587
587
|
provider: e.string().default("vimeo"),
|
|
588
|
-
options: e.optional(
|
|
588
|
+
options: e.optional(xe)
|
|
589
589
|
}), o = e.union([
|
|
590
590
|
e.object({
|
|
591
591
|
destinations: e.optional(e.literal("shotstackDestination_ShotstackDestination"))
|
|
592
|
-
}).and(
|
|
592
|
+
}).and(Se),
|
|
593
593
|
e.object({
|
|
594
594
|
destinations: e.optional(e.literal("muxDestination_MuxDestination"))
|
|
595
|
-
}).and(
|
|
595
|
+
}).and(be),
|
|
596
596
|
e.object({
|
|
597
597
|
destinations: e.optional(e.literal("s3Destination_S3Destination"))
|
|
598
|
-
}).and(
|
|
598
|
+
}).and(Ae),
|
|
599
599
|
e.object({
|
|
600
600
|
destinations: e.optional(e.literal("googleCloudStorageDestination_GoogleCloudStorageDestination"))
|
|
601
|
-
}).and(
|
|
601
|
+
}).and(ce),
|
|
602
602
|
e.object({
|
|
603
603
|
destinations: e.optional(e.literal("googleDriveDestination_GoogleDriveDestination"))
|
|
604
|
-
}).and(
|
|
604
|
+
}).and(ge),
|
|
605
605
|
e.object({
|
|
606
606
|
destinations: e.optional(e.literal("vimeoDestination_VimeoDestination"))
|
|
607
|
-
}).and(
|
|
607
|
+
}).and(Te),
|
|
608
608
|
e.object({
|
|
609
609
|
destinations: e.optional(e.literal("tiktokDestination_TiktokDestination"))
|
|
610
|
-
}).and(
|
|
611
|
-
]),
|
|
610
|
+
}).and(Ne)
|
|
611
|
+
]), ke = o, Fe = e.object({
|
|
612
612
|
horizontal: e.optional(e.boolean()),
|
|
613
613
|
vertical: e.optional(e.boolean())
|
|
614
|
-
}),
|
|
614
|
+
}), Re = e.object({
|
|
615
615
|
src: e.string()
|
|
616
616
|
}), c = e.object({
|
|
617
617
|
type: e.enum(["html"]),
|
|
@@ -641,7 +641,7 @@ const te = e.object({
|
|
|
641
641
|
type: e.enum(["image"]),
|
|
642
642
|
src: e.string(),
|
|
643
643
|
crop: e.optional(n)
|
|
644
|
-
}), Qt = m,
|
|
644
|
+
}), Qt = m, Oe = e.object({
|
|
645
645
|
type: e.optional(e.enum(["image-to-video"])),
|
|
646
646
|
src: e.optional(e.string()),
|
|
647
647
|
prompt: e.optional(e.string()),
|
|
@@ -659,7 +659,7 @@ const te = e.object({
|
|
|
659
659
|
return typeof t == "string" ? Number(t) : t;
|
|
660
660
|
}, e.number().gte(0).lte(10))),
|
|
661
661
|
crop: e.optional(n)
|
|
662
|
-
}),
|
|
662
|
+
}), De = e.object({
|
|
663
663
|
preset: e.enum([
|
|
664
664
|
"conference",
|
|
665
665
|
"interview",
|
|
@@ -671,47 +671,47 @@ const te = e.object({
|
|
|
671
671
|
"studio",
|
|
672
672
|
"voice_over"
|
|
673
673
|
])
|
|
674
|
-
}), De = e.object({
|
|
675
|
-
provider: e.string().default("dolby"),
|
|
676
|
-
options: Oe
|
|
677
674
|
}), Le = e.object({
|
|
675
|
+
provider: e.string().default("dolby"),
|
|
676
|
+
options: De
|
|
677
|
+
}), Ie = e.object({
|
|
678
678
|
enhancement: e.literal("dolbyEnhancement_DolbyEnhancement")
|
|
679
|
-
}).and(
|
|
680
|
-
audio: e.optional(
|
|
681
|
-
}),
|
|
679
|
+
}).and(Le), Ge = e.object({
|
|
680
|
+
audio: e.optional(Ie)
|
|
681
|
+
}), Ce = e.object({
|
|
682
682
|
status: e.string(),
|
|
683
683
|
title: e.string(),
|
|
684
684
|
detail: e.string()
|
|
685
685
|
});
|
|
686
686
|
e.object({
|
|
687
|
-
errors: e.array(
|
|
687
|
+
errors: e.array(Ce)
|
|
688
688
|
});
|
|
689
|
-
const
|
|
689
|
+
const ze = e.object({
|
|
690
690
|
type: e.string(),
|
|
691
691
|
id: e.string()
|
|
692
692
|
});
|
|
693
693
|
e.object({
|
|
694
|
-
data:
|
|
694
|
+
data: ze
|
|
695
695
|
});
|
|
696
|
-
const
|
|
696
|
+
const Be = e.object({
|
|
697
697
|
id: e.string(),
|
|
698
698
|
url: e.string(),
|
|
699
699
|
expires: e.string()
|
|
700
|
-
}),
|
|
700
|
+
}), Ee = e.object({
|
|
701
701
|
type: e.string(),
|
|
702
702
|
id: e.string(),
|
|
703
|
-
attributes:
|
|
703
|
+
attributes: Be
|
|
704
704
|
});
|
|
705
705
|
e.object({
|
|
706
|
-
data:
|
|
706
|
+
data: Ee
|
|
707
707
|
});
|
|
708
|
-
const
|
|
708
|
+
const qe = e.object({
|
|
709
709
|
speed: e.optional(e.preprocess((t) => {
|
|
710
710
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
711
711
|
return typeof t == "string" ? Number(t) : t;
|
|
712
712
|
}, e.number().gte(0).lte(10))),
|
|
713
713
|
preservePitch: e.optional(e.boolean())
|
|
714
|
-
}),
|
|
714
|
+
}), Pe = e.object({
|
|
715
715
|
format: e.optional(e.enum(["srt", "vtt"]))
|
|
716
716
|
}), g = e.object({
|
|
717
717
|
type: e.enum(["luma"]),
|
|
@@ -723,12 +723,12 @@ const Ee = e.object({
|
|
|
723
723
|
}), Wt = g, y = e.object({
|
|
724
724
|
find: e.string(),
|
|
725
725
|
replace: e.unknown()
|
|
726
|
-
}),
|
|
726
|
+
}), $e = e.object({
|
|
727
727
|
capture: e.preprocess((t) => {
|
|
728
728
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
729
729
|
return typeof t == "string" ? Number(t) : t;
|
|
730
730
|
}, e.number())
|
|
731
|
-
}),
|
|
731
|
+
}), _e = e.object({
|
|
732
732
|
start: e.optional(e.preprocess((t) => {
|
|
733
733
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
734
734
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -737,7 +737,7 @@ const Ee = e.object({
|
|
|
737
737
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
738
738
|
return typeof t == "string" ? Number(t) : t;
|
|
739
739
|
}, e.number().gte(0)))
|
|
740
|
-
}),
|
|
740
|
+
}), Ue = e.object({
|
|
741
741
|
id: e.string(),
|
|
742
742
|
owner: e.string(),
|
|
743
743
|
region: e.optional(e.string()),
|
|
@@ -755,7 +755,7 @@ const Ee = e.object({
|
|
|
755
755
|
updated: e.optional(e.string())
|
|
756
756
|
}), b = e.object({
|
|
757
757
|
type: e.string(),
|
|
758
|
-
attributes:
|
|
758
|
+
attributes: Ue
|
|
759
759
|
});
|
|
760
760
|
e.object({
|
|
761
761
|
data: e.array(b)
|
|
@@ -768,39 +768,39 @@ e.object({
|
|
|
768
768
|
message: e.string(),
|
|
769
769
|
response: e.record(e.string(), e.unknown())
|
|
770
770
|
});
|
|
771
|
-
const
|
|
771
|
+
const Ze = e.object({
|
|
772
772
|
message: e.string(),
|
|
773
773
|
id: e.string()
|
|
774
774
|
});
|
|
775
775
|
e.object({
|
|
776
776
|
success: e.boolean(),
|
|
777
777
|
message: e.string(),
|
|
778
|
-
response:
|
|
778
|
+
response: Ze
|
|
779
779
|
});
|
|
780
|
-
const
|
|
780
|
+
const Je = e.object({
|
|
781
781
|
id: e.string(),
|
|
782
782
|
name: e.string(),
|
|
783
783
|
created: e.optional(e.string()),
|
|
784
784
|
updated: e.optional(e.string())
|
|
785
|
-
}),
|
|
785
|
+
}), Me = e.object({
|
|
786
786
|
owner: e.string(),
|
|
787
|
-
templates: e.array(
|
|
787
|
+
templates: e.array(Je)
|
|
788
788
|
});
|
|
789
789
|
e.object({
|
|
790
790
|
success: e.boolean(),
|
|
791
791
|
message: e.string(),
|
|
792
|
-
response:
|
|
792
|
+
response: Me
|
|
793
793
|
});
|
|
794
|
-
const
|
|
794
|
+
const He = e.object({
|
|
795
795
|
message: e.string(),
|
|
796
796
|
id: e.string()
|
|
797
797
|
});
|
|
798
798
|
e.object({
|
|
799
799
|
success: e.boolean(),
|
|
800
800
|
message: e.string(),
|
|
801
|
-
response:
|
|
801
|
+
response: He
|
|
802
802
|
});
|
|
803
|
-
const
|
|
803
|
+
const Ke = e.object({
|
|
804
804
|
horizontal: e.optional(e.enum([
|
|
805
805
|
"left",
|
|
806
806
|
"center",
|
|
@@ -811,7 +811,7 @@ const He = e.object({
|
|
|
811
811
|
"middle",
|
|
812
812
|
"bottom"
|
|
813
813
|
]))
|
|
814
|
-
}),
|
|
814
|
+
}), Ve = e.object({
|
|
815
815
|
preset: e.enum([
|
|
816
816
|
"fadeIn",
|
|
817
817
|
"slideIn",
|
|
@@ -835,7 +835,7 @@ const He = e.object({
|
|
|
835
835
|
"up",
|
|
836
836
|
"down"
|
|
837
837
|
]))
|
|
838
|
-
}),
|
|
838
|
+
}), Qe = e.object({
|
|
839
839
|
color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
840
840
|
opacity: e.optional(e.preprocess((t) => {
|
|
841
841
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -845,7 +845,7 @@ const He = e.object({
|
|
|
845
845
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
846
846
|
return typeof t == "string" ? Number(t) : t;
|
|
847
847
|
}, e.number().gte(0))).default(0)
|
|
848
|
-
}),
|
|
848
|
+
}), We = e.object({
|
|
849
849
|
width: e.optional(e.preprocess((t) => {
|
|
850
850
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
851
851
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -859,7 +859,7 @@ const He = e.object({
|
|
|
859
859
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
860
860
|
return typeof t == "string" ? Number(t) : t;
|
|
861
861
|
}, e.number().gte(0))).default(0)
|
|
862
|
-
}),
|
|
862
|
+
}), Xe = e.object({
|
|
863
863
|
type: e.optional(e.enum(["linear", "radial"])),
|
|
864
864
|
angle: e.optional(e.preprocess((t) => {
|
|
865
865
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -872,7 +872,7 @@ const He = e.object({
|
|
|
872
872
|
}, e.number().gte(0).lte(1)),
|
|
873
873
|
color: e.string().regex(/^#[A-Fa-f0-9]{6}$/)
|
|
874
874
|
})).min(2)
|
|
875
|
-
}),
|
|
875
|
+
}), Ye = e.object({
|
|
876
876
|
top: e.optional(e.preprocess((t) => {
|
|
877
877
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
878
878
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -889,7 +889,7 @@ const He = e.object({
|
|
|
889
889
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
890
890
|
return typeof t == "string" ? Number(t) : t;
|
|
891
891
|
}, e.number().gte(0))).default(0)
|
|
892
|
-
}),
|
|
892
|
+
}), ve = e.object({
|
|
893
893
|
offsetX: e.optional(e.preprocess((t) => {
|
|
894
894
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
895
895
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -907,7 +907,7 @@ const He = e.object({
|
|
|
907
907
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
908
908
|
return typeof t == "string" ? Number(t) : t;
|
|
909
909
|
}, e.number().gte(0).lte(1))).default(0.5)
|
|
910
|
-
}),
|
|
910
|
+
}), et = e.object({
|
|
911
911
|
width: e.optional(e.preprocess((t) => {
|
|
912
912
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
913
913
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -917,7 +917,7 @@ const He = e.object({
|
|
|
917
917
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
918
918
|
return typeof t == "string" ? Number(t) : t;
|
|
919
919
|
}, e.number().gte(0).lte(1))).default(1)
|
|
920
|
-
}),
|
|
920
|
+
}), tt = e.object({
|
|
921
921
|
family: e.optional(e.string()).default("Open Sans"),
|
|
922
922
|
size: e.optional(e.preprocess((t) => {
|
|
923
923
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -930,8 +930,8 @@ const He = e.object({
|
|
|
930
930
|
return typeof t == "string" ? Number(t) : t;
|
|
931
931
|
}, e.number().gte(0).lte(1))).default(1),
|
|
932
932
|
background: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
933
|
-
stroke: e.optional(
|
|
934
|
-
}),
|
|
933
|
+
stroke: e.optional(et)
|
|
934
|
+
}), rt = e.object({
|
|
935
935
|
letterSpacing: e.optional(e.preprocess((t) => {
|
|
936
936
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
937
937
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -951,37 +951,37 @@ const He = e.object({
|
|
|
951
951
|
"underline",
|
|
952
952
|
"line-through"
|
|
953
953
|
])),
|
|
954
|
-
gradient: e.optional(
|
|
954
|
+
gradient: e.optional(Xe)
|
|
955
955
|
}), h = e.object({
|
|
956
956
|
type: e.enum(["rich-text"]),
|
|
957
957
|
text: e.string().max(5e3),
|
|
958
|
-
font: e.optional(
|
|
959
|
-
style: e.optional(
|
|
960
|
-
shadow: e.optional(
|
|
961
|
-
background: e.optional(
|
|
962
|
-
border: e.optional(
|
|
958
|
+
font: e.optional(tt),
|
|
959
|
+
style: e.optional(rt),
|
|
960
|
+
shadow: e.optional(ve),
|
|
961
|
+
background: e.optional(Qe),
|
|
962
|
+
border: e.optional(We),
|
|
963
963
|
padding: e.optional(e.union([
|
|
964
964
|
e.preprocess((t) => {
|
|
965
965
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
966
966
|
return typeof t == "string" ? Number(t) : t;
|
|
967
967
|
}, e.number().gte(0)),
|
|
968
|
-
|
|
968
|
+
Ye
|
|
969
969
|
])),
|
|
970
|
-
align: e.optional(
|
|
971
|
-
animation: e.optional(
|
|
972
|
-
}), Xt = h,
|
|
970
|
+
align: e.optional(Ke),
|
|
971
|
+
animation: e.optional(Ve)
|
|
972
|
+
}), Xt = h, nt = e.object({
|
|
973
973
|
id: e.optional(e.string()),
|
|
974
974
|
owner: e.optional(e.string()),
|
|
975
975
|
status: e.optional(e.enum(["queued", "failed"])),
|
|
976
976
|
created: e.optional(e.string())
|
|
977
|
-
}),
|
|
977
|
+
}), it = e.object({
|
|
978
978
|
type: e.optional(e.string()),
|
|
979
|
-
attributes: e.optional(
|
|
979
|
+
attributes: e.optional(nt)
|
|
980
980
|
});
|
|
981
981
|
e.object({
|
|
982
|
-
data:
|
|
982
|
+
data: it
|
|
983
983
|
});
|
|
984
|
-
const
|
|
984
|
+
const ot = e.object({
|
|
985
985
|
url: e.string(),
|
|
986
986
|
id: e.string(),
|
|
987
987
|
destinations: e.array(o)
|
|
@@ -1053,7 +1053,7 @@ const it = e.object({
|
|
|
1053
1053
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1054
1054
|
return typeof t == "string" ? Number(t) : t;
|
|
1055
1055
|
}, e.number().int().gte(1).lte(4096)))
|
|
1056
|
-
}),
|
|
1056
|
+
}), at = l, S = e.object({
|
|
1057
1057
|
format: e.optional(e.enum([
|
|
1058
1058
|
"mp4",
|
|
1059
1059
|
"webm",
|
|
@@ -1101,19 +1101,19 @@ const it = e.object({
|
|
|
1101
1101
|
e.literal(59.94),
|
|
1102
1102
|
e.literal(60)
|
|
1103
1103
|
])),
|
|
1104
|
-
speed: e.optional(
|
|
1104
|
+
speed: e.optional(qe),
|
|
1105
1105
|
keyframeInterval: e.optional(e.preprocess((t) => {
|
|
1106
1106
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1107
1107
|
return typeof t == "string" ? Number(t) : t;
|
|
1108
1108
|
}, e.number().int().gte(1).lte(300))),
|
|
1109
1109
|
fixOffset: e.optional(e.boolean()),
|
|
1110
1110
|
fixRotation: e.optional(e.boolean()),
|
|
1111
|
-
enhance: e.optional(
|
|
1111
|
+
enhance: e.optional(Ge),
|
|
1112
1112
|
filename: e.optional(e.string())
|
|
1113
|
-
}), at = e.object({
|
|
1114
|
-
renditions: e.optional(e.array(S)),
|
|
1115
|
-
transcription: e.optional(qe)
|
|
1116
1113
|
}), st = e.object({
|
|
1114
|
+
renditions: e.optional(e.array(S)),
|
|
1115
|
+
transcription: e.optional(Pe)
|
|
1116
|
+
}), ut = e.object({
|
|
1117
1117
|
id: e.string(),
|
|
1118
1118
|
status: e.optional(e.enum([
|
|
1119
1119
|
"queued",
|
|
@@ -1145,9 +1145,9 @@ const it = e.object({
|
|
|
1145
1145
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1146
1146
|
return typeof t == "string" ? Number(t) : t;
|
|
1147
1147
|
}, e.number()))
|
|
1148
|
-
}), ut = e.object({
|
|
1149
|
-
renditions: e.optional(e.array(st))
|
|
1150
1148
|
}), lt = e.object({
|
|
1149
|
+
renditions: e.optional(e.array(ut))
|
|
1150
|
+
}), pt = e.object({
|
|
1151
1151
|
id: e.string(),
|
|
1152
1152
|
owner: e.string(),
|
|
1153
1153
|
input: e.optional(e.string()),
|
|
@@ -1160,7 +1160,7 @@ const it = e.object({
|
|
|
1160
1160
|
"deleted",
|
|
1161
1161
|
"overwritten"
|
|
1162
1162
|
])),
|
|
1163
|
-
outputs: e.optional(
|
|
1163
|
+
outputs: e.optional(lt),
|
|
1164
1164
|
width: e.optional(e.preprocess((t) => {
|
|
1165
1165
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1166
1166
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -1182,7 +1182,7 @@ const it = e.object({
|
|
|
1182
1182
|
}), j = e.object({
|
|
1183
1183
|
type: e.string(),
|
|
1184
1184
|
id: e.string(),
|
|
1185
|
-
attributes:
|
|
1185
|
+
attributes: pt
|
|
1186
1186
|
});
|
|
1187
1187
|
e.object({
|
|
1188
1188
|
data: e.array(j)
|
|
@@ -1190,12 +1190,12 @@ e.object({
|
|
|
1190
1190
|
e.object({
|
|
1191
1191
|
data: j
|
|
1192
1192
|
});
|
|
1193
|
-
const
|
|
1193
|
+
const dt = e.object({
|
|
1194
1194
|
url: e.optional(e.string()),
|
|
1195
|
-
outputs: e.optional(
|
|
1195
|
+
outputs: e.optional(st),
|
|
1196
1196
|
destinations: e.optional(o),
|
|
1197
1197
|
callback: e.optional(e.string())
|
|
1198
|
-
}),
|
|
1198
|
+
}), ft = e.object({
|
|
1199
1199
|
src: e.string(),
|
|
1200
1200
|
effect: e.optional(e.enum([
|
|
1201
1201
|
"fadeIn",
|
|
@@ -1212,7 +1212,7 @@ const pt = e.object({
|
|
|
1212
1212
|
return typeof t == "string" ? Number(t) : t;
|
|
1213
1213
|
}, e.number().gte(0).lte(1)),
|
|
1214
1214
|
color: e.string().regex(/^#[A-Fa-f0-9]{6}$/)
|
|
1215
|
-
}),
|
|
1215
|
+
}), ct = e.object({
|
|
1216
1216
|
type: e.enum(["linear"]),
|
|
1217
1217
|
angle: e.optional(e.preprocess((t) => {
|
|
1218
1218
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1223,14 +1223,14 @@ const pt = e.object({
|
|
|
1223
1223
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1224
1224
|
return typeof t == "string" ? Number(t) : t;
|
|
1225
1225
|
}, e.number().gte(0).lte(1))).default(1)
|
|
1226
|
-
}),
|
|
1226
|
+
}), mt = e.object({
|
|
1227
1227
|
type: e.enum(["radial"]),
|
|
1228
1228
|
stops: e.array(N).min(2),
|
|
1229
1229
|
opacity: e.optional(e.preprocess((t) => {
|
|
1230
1230
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1231
1231
|
return typeof t == "string" ? Number(t) : t;
|
|
1232
1232
|
}, e.number().gte(0).lte(1))).default(1)
|
|
1233
|
-
}),
|
|
1233
|
+
}), gt = e.object({
|
|
1234
1234
|
offsetX: e.optional(e.preprocess((t) => {
|
|
1235
1235
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1236
1236
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -1248,18 +1248,18 @@ const pt = e.object({
|
|
|
1248
1248
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1249
1249
|
return typeof t == "string" ? Number(t) : t;
|
|
1250
1250
|
}, e.number().gte(0).lte(1))).default(0.5)
|
|
1251
|
-
}),
|
|
1251
|
+
}), yt = e.object({
|
|
1252
1252
|
type: e.enum(["solid"]),
|
|
1253
1253
|
color: e.string().regex(/^#[A-Fa-f0-9]{6}$/).default("#000000"),
|
|
1254
1254
|
opacity: e.optional(e.preprocess((t) => {
|
|
1255
1255
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1256
1256
|
return typeof t == "string" ? Number(t) : t;
|
|
1257
1257
|
}, e.number().gte(0).lte(1))).default(1)
|
|
1258
|
-
}),
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
]),
|
|
1258
|
+
}), bt = e.discriminatedUnion("type", [
|
|
1259
|
+
yt,
|
|
1260
|
+
ct,
|
|
1261
|
+
mt
|
|
1262
|
+
]), ht = e.object({
|
|
1263
1263
|
color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1264
1264
|
width: e.optional(e.preprocess((t) => {
|
|
1265
1265
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1287,7 +1287,7 @@ const pt = e.object({
|
|
|
1287
1287
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1288
1288
|
return typeof t == "string" ? Number(t) : t;
|
|
1289
1289
|
}, e.number())).default(0)
|
|
1290
|
-
}),
|
|
1290
|
+
}), At = e.object({
|
|
1291
1291
|
x: e.optional(e.preprocess((t) => {
|
|
1292
1292
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1293
1293
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -1312,7 +1312,7 @@ const pt = e.object({
|
|
|
1312
1312
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1313
1313
|
return typeof t == "string" ? Number(t) : t;
|
|
1314
1314
|
}, e.number().gte(0).lte(1))).default(0.5)
|
|
1315
|
-
}),
|
|
1315
|
+
}), St = e.object({
|
|
1316
1316
|
type: e.enum(["arrow"]),
|
|
1317
1317
|
length: e.preprocess((t) => {
|
|
1318
1318
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1330,13 +1330,13 @@ const pt = e.object({
|
|
|
1330
1330
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1331
1331
|
return typeof t == "string" ? Number(t) : t;
|
|
1332
1332
|
}, e.number().gte(1).lte(1e3))
|
|
1333
|
-
}),
|
|
1333
|
+
}), jt = e.object({
|
|
1334
1334
|
type: e.enum(["circle"]),
|
|
1335
1335
|
radius: e.preprocess((t) => {
|
|
1336
1336
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1337
1337
|
return typeof t == "string" ? Number(t) : t;
|
|
1338
1338
|
}, e.number().gte(1).lte(2048))
|
|
1339
|
-
}),
|
|
1339
|
+
}), Nt = e.object({
|
|
1340
1340
|
type: e.enum(["cross"]),
|
|
1341
1341
|
width: e.preprocess((t) => {
|
|
1342
1342
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1350,7 +1350,7 @@ const pt = e.object({
|
|
|
1350
1350
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1351
1351
|
return typeof t == "string" ? Number(t) : t;
|
|
1352
1352
|
}, e.number().gte(1).lte(500))
|
|
1353
|
-
}),
|
|
1353
|
+
}), wt = e.object({
|
|
1354
1354
|
type: e.enum(["ellipse"]),
|
|
1355
1355
|
radiusX: e.preprocess((t) => {
|
|
1356
1356
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1360,13 +1360,13 @@ const pt = e.object({
|
|
|
1360
1360
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1361
1361
|
return typeof t == "string" ? Number(t) : t;
|
|
1362
1362
|
}, e.number().gte(1).lte(2048))
|
|
1363
|
-
}),
|
|
1363
|
+
}), xt = e.object({
|
|
1364
1364
|
type: e.enum(["heart"]),
|
|
1365
1365
|
size: e.preprocess((t) => {
|
|
1366
1366
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1367
1367
|
return typeof t == "string" ? Number(t) : t;
|
|
1368
1368
|
}, e.number().gte(1).lte(4096))
|
|
1369
|
-
}),
|
|
1369
|
+
}), Tt = e.object({
|
|
1370
1370
|
type: e.enum(["line"]),
|
|
1371
1371
|
length: e.preprocess((t) => {
|
|
1372
1372
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1376,10 +1376,10 @@ const pt = e.object({
|
|
|
1376
1376
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1377
1377
|
return typeof t == "string" ? Number(t) : t;
|
|
1378
1378
|
}, e.number().gte(1).lte(500))
|
|
1379
|
-
}),
|
|
1379
|
+
}), kt = e.object({
|
|
1380
1380
|
type: e.enum(["path"]),
|
|
1381
1381
|
d: e.string().min(1).max(1e5)
|
|
1382
|
-
}),
|
|
1382
|
+
}), Ft = e.object({
|
|
1383
1383
|
type: e.enum(["polygon"]),
|
|
1384
1384
|
sides: e.preprocess((t) => {
|
|
1385
1385
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1389,7 +1389,7 @@ const pt = e.object({
|
|
|
1389
1389
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1390
1390
|
return typeof t == "string" ? Number(t) : t;
|
|
1391
1391
|
}, e.number().gte(1).lte(2048))
|
|
1392
|
-
}),
|
|
1392
|
+
}), Rt = e.object({
|
|
1393
1393
|
type: e.enum(["rectangle"]),
|
|
1394
1394
|
width: e.preprocess((t) => {
|
|
1395
1395
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1403,7 +1403,7 @@ const pt = e.object({
|
|
|
1403
1403
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1404
1404
|
return typeof t == "string" ? Number(t) : t;
|
|
1405
1405
|
}, e.number().gte(0).lte(2048))).default(0)
|
|
1406
|
-
}),
|
|
1406
|
+
}), Ot = e.object({
|
|
1407
1407
|
type: e.enum(["ring"]),
|
|
1408
1408
|
outerRadius: e.preprocess((t) => {
|
|
1409
1409
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1413,7 +1413,7 @@ const pt = e.object({
|
|
|
1413
1413
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1414
1414
|
return typeof t == "string" ? Number(t) : t;
|
|
1415
1415
|
}, e.number().gte(0).lte(2048))
|
|
1416
|
-
}),
|
|
1416
|
+
}), Dt = e.object({
|
|
1417
1417
|
type: e.enum(["star"]),
|
|
1418
1418
|
points: e.preprocess((t) => {
|
|
1419
1419
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1427,26 +1427,26 @@ const pt = e.object({
|
|
|
1427
1427
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1428
1428
|
return typeof t == "string" ? Number(t) : t;
|
|
1429
1429
|
}, e.number().gte(1).lte(2048))
|
|
1430
|
-
}),
|
|
1430
|
+
}), Lt = e.discriminatedUnion("type", [
|
|
1431
|
+
Rt,
|
|
1432
|
+
jt,
|
|
1433
|
+
wt,
|
|
1434
|
+
Tt,
|
|
1431
1435
|
Ft,
|
|
1436
|
+
Dt,
|
|
1432
1437
|
St,
|
|
1433
|
-
Nt,
|
|
1434
1438
|
xt,
|
|
1435
|
-
|
|
1439
|
+
Nt,
|
|
1436
1440
|
Ot,
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
jt,
|
|
1440
|
-
Rt,
|
|
1441
|
-
Tt
|
|
1442
|
-
]), Lt = e.object({
|
|
1441
|
+
kt
|
|
1442
|
+
]), w = e.object({
|
|
1443
1443
|
type: e.enum(["svg"]),
|
|
1444
1444
|
src: e.optional(e.string().min(1).max(5e5)),
|
|
1445
|
-
shape: e.optional(
|
|
1446
|
-
fill: e.optional(
|
|
1447
|
-
stroke: e.optional(
|
|
1448
|
-
shadow: e.optional(
|
|
1449
|
-
transform: e.optional(
|
|
1445
|
+
shape: e.optional(Lt),
|
|
1446
|
+
fill: e.optional(bt),
|
|
1447
|
+
stroke: e.optional(ht),
|
|
1448
|
+
shadow: e.optional(gt),
|
|
1449
|
+
transform: e.optional(At),
|
|
1450
1450
|
opacity: e.optional(e.preprocess((t) => {
|
|
1451
1451
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1452
1452
|
return typeof t == "string" ? Number(t) : t;
|
|
@@ -1479,15 +1479,15 @@ const pt = e.object({
|
|
|
1479
1479
|
message: "Provide either 'src' or 'shape', not both",
|
|
1480
1480
|
path: ["src"]
|
|
1481
1481
|
}), s) {
|
|
1482
|
-
const
|
|
1483
|
-
for (const u of
|
|
1482
|
+
const B = ["shape", "fill", "stroke", "shadow", "transform", "width", "height"];
|
|
1483
|
+
for (const u of B)
|
|
1484
1484
|
t[u] !== void 0 && a.addIssue({
|
|
1485
1485
|
code: e.ZodIssueCode.custom,
|
|
1486
1486
|
message: `'${u}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,
|
|
1487
1487
|
path: [u]
|
|
1488
1488
|
});
|
|
1489
1489
|
}
|
|
1490
|
-
}), It = e.object({
|
|
1490
|
+
}), vt = w, It = e.object({
|
|
1491
1491
|
id: e.string(),
|
|
1492
1492
|
merge: e.optional(e.array(y))
|
|
1493
1493
|
}), Gt = e.object({
|
|
@@ -1546,7 +1546,7 @@ const pt = e.object({
|
|
|
1546
1546
|
return typeof t == "string" ? Number(t) : t;
|
|
1547
1547
|
}, e.number().gte(0).lte(10))),
|
|
1548
1548
|
color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/))
|
|
1549
|
-
}),
|
|
1549
|
+
}), x = e.object({
|
|
1550
1550
|
type: e.enum(["text"]),
|
|
1551
1551
|
text: e.string(),
|
|
1552
1552
|
width: e.optional(e.preprocess((t) => {
|
|
@@ -1563,7 +1563,7 @@ const pt = e.object({
|
|
|
1563
1563
|
stroke: e.optional(Et),
|
|
1564
1564
|
animation: e.optional(Ct),
|
|
1565
1565
|
ellipsis: e.optional(e.string())
|
|
1566
|
-
}),
|
|
1566
|
+
}), er = x, qt = e.object({
|
|
1567
1567
|
type: e.enum(["text-to-image"]),
|
|
1568
1568
|
prompt: e.string(),
|
|
1569
1569
|
width: e.optional(e.preprocess((t) => {
|
|
@@ -1584,7 +1584,7 @@ const pt = e.object({
|
|
|
1584
1584
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
1585
1585
|
return typeof t == "string" ? Number(t) : t;
|
|
1586
1586
|
}, e.number().gte(0).lte(1))
|
|
1587
|
-
}),
|
|
1587
|
+
}), T = e.object({
|
|
1588
1588
|
format: e.enum([
|
|
1589
1589
|
"mp4",
|
|
1590
1590
|
"gif",
|
|
@@ -1639,11 +1639,11 @@ const pt = e.object({
|
|
|
1639
1639
|
])),
|
|
1640
1640
|
repeat: e.optional(e.boolean()),
|
|
1641
1641
|
mute: e.optional(e.boolean()),
|
|
1642
|
-
range: e.optional(
|
|
1643
|
-
poster: e.optional(
|
|
1642
|
+
range: e.optional(_e),
|
|
1643
|
+
poster: e.optional($e),
|
|
1644
1644
|
thumbnail: e.optional(Pt),
|
|
1645
1645
|
destinations: e.optional(e.array(o))
|
|
1646
|
-
}),
|
|
1646
|
+
}), k = T, F = e.object({
|
|
1647
1647
|
in: e.optional(e.enum([
|
|
1648
1648
|
"none",
|
|
1649
1649
|
"fade",
|
|
@@ -1772,7 +1772,7 @@ const pt = e.object({
|
|
|
1772
1772
|
"shuffleTopLeftFast",
|
|
1773
1773
|
"zoom"
|
|
1774
1774
|
]))
|
|
1775
|
-
}),
|
|
1775
|
+
}), tr = F, r = e.object({
|
|
1776
1776
|
from: e.optional(e.unknown()),
|
|
1777
1777
|
to: e.optional(e.unknown()),
|
|
1778
1778
|
start: e.optional(e.preprocess((t) => {
|
|
@@ -1818,7 +1818,7 @@ const pt = e.object({
|
|
|
1818
1818
|
"easeInOutCirc",
|
|
1819
1819
|
"easeInOutBack"
|
|
1820
1820
|
]))
|
|
1821
|
-
}),
|
|
1821
|
+
}), rr = r, R = e.object({
|
|
1822
1822
|
type: e.enum(["audio"]),
|
|
1823
1823
|
src: e.string(),
|
|
1824
1824
|
trim: e.optional(e.preprocess((t) => {
|
|
@@ -1842,7 +1842,7 @@ const pt = e.object({
|
|
|
1842
1842
|
"fadeOut",
|
|
1843
1843
|
"fadeInFadeOut"
|
|
1844
1844
|
]))
|
|
1845
|
-
}),
|
|
1845
|
+
}), nr = R, p = e.object({
|
|
1846
1846
|
x: e.optional(e.union([
|
|
1847
1847
|
e.preprocess((t) => {
|
|
1848
1848
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1857,7 +1857,7 @@ const pt = e.object({
|
|
|
1857
1857
|
}, e.number().gte(-10).lte(10)),
|
|
1858
1858
|
e.array(r)
|
|
1859
1859
|
]))
|
|
1860
|
-
}),
|
|
1860
|
+
}), ir = p, $t = e.object({
|
|
1861
1861
|
angle: e.optional(e.union([
|
|
1862
1862
|
e.preprocess((t) => {
|
|
1863
1863
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -1918,11 +1918,11 @@ const pt = e.object({
|
|
|
1918
1918
|
"center"
|
|
1919
1919
|
])),
|
|
1920
1920
|
offset: e.optional(p)
|
|
1921
|
-
}),
|
|
1921
|
+
}), O = e.object({
|
|
1922
1922
|
rotate: e.optional($t),
|
|
1923
1923
|
skew: e.optional(_t),
|
|
1924
|
-
flip: e.optional(
|
|
1925
|
-
}),
|
|
1924
|
+
flip: e.optional(Fe)
|
|
1925
|
+
}), or = O, D = e.object({
|
|
1926
1926
|
type: e.enum(["video"]),
|
|
1927
1927
|
src: e.string(),
|
|
1928
1928
|
transcode: e.optional(e.boolean()),
|
|
@@ -1948,23 +1948,23 @@ const pt = e.object({
|
|
|
1948
1948
|
return typeof t == "string" ? Number(t) : t;
|
|
1949
1949
|
}, e.number().gte(0).lte(10))),
|
|
1950
1950
|
crop: e.optional(n),
|
|
1951
|
-
chromaKey: e.optional(
|
|
1952
|
-
}),
|
|
1953
|
-
|
|
1951
|
+
chromaKey: e.optional($)
|
|
1952
|
+
}), ar = D, L = e.discriminatedUnion("type", [
|
|
1953
|
+
D,
|
|
1954
1954
|
m,
|
|
1955
|
-
|
|
1955
|
+
x,
|
|
1956
1956
|
h,
|
|
1957
|
-
|
|
1957
|
+
R,
|
|
1958
1958
|
g,
|
|
1959
1959
|
f,
|
|
1960
1960
|
c,
|
|
1961
1961
|
Ut,
|
|
1962
1962
|
A,
|
|
1963
|
-
|
|
1963
|
+
w,
|
|
1964
1964
|
qt,
|
|
1965
|
-
|
|
1966
|
-
]),
|
|
1967
|
-
asset:
|
|
1965
|
+
Oe
|
|
1966
|
+
]), sr = L, I = e.object({
|
|
1967
|
+
asset: L,
|
|
1968
1968
|
start: e.union([
|
|
1969
1969
|
e.preprocess((t) => {
|
|
1970
1970
|
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
@@ -2010,7 +2010,7 @@ const pt = e.object({
|
|
|
2010
2010
|
"center"
|
|
2011
2011
|
])),
|
|
2012
2012
|
offset: e.optional(p),
|
|
2013
|
-
transition: e.optional(
|
|
2013
|
+
transition: e.optional(F),
|
|
2014
2014
|
effect: e.optional(e.enum([
|
|
2015
2015
|
"zoomIn",
|
|
2016
2016
|
"zoomInSlow",
|
|
@@ -2049,23 +2049,23 @@ const pt = e.object({
|
|
|
2049
2049
|
}, e.number()),
|
|
2050
2050
|
e.array(r)
|
|
2051
2051
|
])),
|
|
2052
|
-
transform: e.optional(
|
|
2052
|
+
transform: e.optional(O),
|
|
2053
2053
|
alias: e.optional(e.string().regex(/^[A-Za-z0-9_-]+$/))
|
|
2054
|
-
}), sr = L, I = e.object({
|
|
2055
|
-
clips: e.array(L)
|
|
2056
2054
|
}), ur = I, G = e.object({
|
|
2057
|
-
|
|
2055
|
+
clips: e.array(I)
|
|
2056
|
+
}), lr = G, C = e.object({
|
|
2057
|
+
soundtrack: e.optional(ft),
|
|
2058
2058
|
background: e.optional(e.string()),
|
|
2059
|
-
fonts: e.optional(e.array(
|
|
2060
|
-
tracks: e.array(
|
|
2059
|
+
fonts: e.optional(e.array(Re)),
|
|
2060
|
+
tracks: e.array(G),
|
|
2061
2061
|
cache: e.optional(e.boolean())
|
|
2062
|
-
}),
|
|
2063
|
-
timeline:
|
|
2064
|
-
output:
|
|
2062
|
+
}), pr = C, i = e.object({
|
|
2063
|
+
timeline: C,
|
|
2064
|
+
output: T,
|
|
2065
2065
|
merge: e.optional(e.array(y)),
|
|
2066
2066
|
callback: e.optional(e.string()),
|
|
2067
2067
|
disk: e.optional(e.enum(["local", "mount"]))
|
|
2068
|
-
}),
|
|
2068
|
+
}), dr = i, Zt = e.object({
|
|
2069
2069
|
id: e.string(),
|
|
2070
2070
|
owner: e.string(),
|
|
2071
2071
|
plan: e.optional(e.string()),
|
|
@@ -2116,7 +2116,7 @@ e.object({
|
|
|
2116
2116
|
message: e.string(),
|
|
2117
2117
|
response: Jt
|
|
2118
2118
|
});
|
|
2119
|
-
const
|
|
2119
|
+
const z = e.object({
|
|
2120
2120
|
name: e.string(),
|
|
2121
2121
|
template: e.optional(i)
|
|
2122
2122
|
});
|
|
@@ -2141,7 +2141,7 @@ e.object({
|
|
|
2141
2141
|
query: e.optional(e.never())
|
|
2142
2142
|
});
|
|
2143
2143
|
e.object({
|
|
2144
|
-
body:
|
|
2144
|
+
body: z,
|
|
2145
2145
|
path: e.optional(e.never()),
|
|
2146
2146
|
query: e.optional(e.never())
|
|
2147
2147
|
});
|
|
@@ -2161,7 +2161,7 @@ e.object({
|
|
|
2161
2161
|
query: e.optional(e.never())
|
|
2162
2162
|
});
|
|
2163
2163
|
e.object({
|
|
2164
|
-
body:
|
|
2164
|
+
body: z,
|
|
2165
2165
|
path: e.object({
|
|
2166
2166
|
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}$/)
|
|
2167
2167
|
}),
|
|
@@ -2202,7 +2202,7 @@ e.object({
|
|
|
2202
2202
|
query: e.optional(e.never())
|
|
2203
2203
|
});
|
|
2204
2204
|
e.object({
|
|
2205
|
-
body:
|
|
2205
|
+
body: ot,
|
|
2206
2206
|
path: e.optional(e.never()),
|
|
2207
2207
|
query: e.optional(e.never())
|
|
2208
2208
|
});
|
|
@@ -2212,7 +2212,7 @@ e.object({
|
|
|
2212
2212
|
query: e.optional(e.never())
|
|
2213
2213
|
});
|
|
2214
2214
|
e.object({
|
|
2215
|
-
body:
|
|
2215
|
+
body: dt,
|
|
2216
2216
|
path: e.optional(e.never()),
|
|
2217
2217
|
query: e.optional(e.never())
|
|
2218
2218
|
});
|
|
@@ -2237,7 +2237,7 @@ e.object({
|
|
|
2237
2237
|
query: e.optional(e.never())
|
|
2238
2238
|
});
|
|
2239
2239
|
e.object({
|
|
2240
|
-
body:
|
|
2240
|
+
body: de,
|
|
2241
2241
|
path: e.optional(e.never()),
|
|
2242
2242
|
query: e.optional(e.never())
|
|
2243
2243
|
});
|
|
@@ -2248,32 +2248,33 @@ e.object({
|
|
|
2248
2248
|
}),
|
|
2249
2249
|
query: e.optional(e.never())
|
|
2250
2250
|
});
|
|
2251
|
-
const
|
|
2251
|
+
const fr = ke, cr = at, mr = k.shape.format, gr = k.shape.fps.unwrap(), yr = e.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);
|
|
2252
2252
|
export {
|
|
2253
|
-
|
|
2254
|
-
|
|
2253
|
+
sr as AssetSchema,
|
|
2254
|
+
nr as AudioAssetSchema,
|
|
2255
2255
|
Ht as CaptionAssetSchema,
|
|
2256
|
-
|
|
2256
|
+
ur as ClipSchema,
|
|
2257
2257
|
Kt as CropSchema,
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2258
|
+
fr as DestinationSchema,
|
|
2259
|
+
dr as EditSchema,
|
|
2260
|
+
yr as HexColorSchema,
|
|
2261
2261
|
Vt as HtmlAssetSchema,
|
|
2262
2262
|
Qt as ImageAssetSchema,
|
|
2263
|
-
|
|
2263
|
+
rr as KeyframeSchema,
|
|
2264
2264
|
Wt as LumaAssetSchema,
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2265
|
+
ir as OffsetSchema,
|
|
2266
|
+
mr as OutputFormatSchema,
|
|
2267
|
+
gr as OutputFpsSchema,
|
|
2268
|
+
k as OutputSchema,
|
|
2269
|
+
cr as OutputSizeSchema,
|
|
2270
2270
|
Xt as RichTextAssetSchema,
|
|
2271
2271
|
Yt as ShapeAssetSchema,
|
|
2272
|
-
vt as
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
tr as
|
|
2278
|
-
|
|
2272
|
+
vt as SvgAssetSchema,
|
|
2273
|
+
er as TextAssetSchema,
|
|
2274
|
+
pr as TimelineSchema,
|
|
2275
|
+
lr as TrackSchema,
|
|
2276
|
+
or as TransformationSchema,
|
|
2277
|
+
tr as TransitionSchema,
|
|
2278
|
+
rr as TweenSchema,
|
|
2279
|
+
ar as VideoAssetSchema
|
|
2279
2280
|
};
|