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