@shotstack/shotstack-studio 2.0.0-beta.17 → 2.0.0-beta.18
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 +11 -23
- package/dist/internal.es.js +7057 -6955
- package/dist/internal.umd.js +44 -27
- package/dist/schema/index.cjs +1 -1
- package/dist/schema/index.d.ts +11 -23
- package/dist/schema/index.mjs +1465 -1475
- package/dist/shotstack-studio.es.js +7156 -6843
- package/dist/shotstack-studio.umd.js +113 -96
- package/package.json +1 -1
package/dist/schema/index.mjs
CHANGED
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
import { z as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const E =
|
|
19
|
-
color:
|
|
20
|
-
opacity:
|
|
21
|
-
if (!(
|
|
22
|
-
return typeof
|
|
23
|
-
},
|
|
24
|
-
padding:
|
|
25
|
-
if (!(
|
|
26
|
-
return typeof
|
|
27
|
-
},
|
|
28
|
-
borderRadius:
|
|
29
|
-
if (!(
|
|
30
|
-
return typeof
|
|
31
|
-
},
|
|
32
|
-
}), q =
|
|
33
|
-
family:
|
|
34
|
-
color:
|
|
35
|
-
opacity:
|
|
36
|
-
if (!(
|
|
37
|
-
return typeof
|
|
38
|
-
},
|
|
39
|
-
size:
|
|
40
|
-
if (!(
|
|
41
|
-
return typeof
|
|
42
|
-
},
|
|
43
|
-
lineHeight:
|
|
44
|
-
if (!(
|
|
45
|
-
return typeof
|
|
46
|
-
},
|
|
47
|
-
stroke:
|
|
48
|
-
strokeWidth:
|
|
49
|
-
if (!(
|
|
50
|
-
return typeof
|
|
51
|
-
},
|
|
52
|
-
}), P =
|
|
53
|
-
top:
|
|
54
|
-
if (!(
|
|
55
|
-
return typeof
|
|
56
|
-
},
|
|
57
|
-
left:
|
|
58
|
-
if (!(
|
|
59
|
-
return typeof
|
|
60
|
-
},
|
|
61
|
-
right:
|
|
62
|
-
if (!(
|
|
63
|
-
return typeof
|
|
64
|
-
},
|
|
65
|
-
}), c =
|
|
66
|
-
type:
|
|
67
|
-
src:
|
|
68
|
-
font:
|
|
69
|
-
background:
|
|
70
|
-
margin:
|
|
71
|
-
trim:
|
|
72
|
-
if (!(
|
|
73
|
-
return typeof
|
|
74
|
-
},
|
|
75
|
-
speed:
|
|
76
|
-
if (!(
|
|
77
|
-
return typeof
|
|
78
|
-
},
|
|
79
|
-
}),
|
|
80
|
-
color:
|
|
81
|
-
threshold:
|
|
82
|
-
if (!(
|
|
83
|
-
return typeof
|
|
84
|
-
},
|
|
85
|
-
halo:
|
|
86
|
-
if (!(
|
|
87
|
-
return typeof
|
|
88
|
-
},
|
|
89
|
-
}),
|
|
90
|
-
type:
|
|
91
|
-
text:
|
|
92
|
-
avatar:
|
|
1
|
+
import { z as r } from "zod";
|
|
2
|
+
r.unknown();
|
|
3
|
+
r.unknown();
|
|
4
|
+
r.unknown();
|
|
5
|
+
r.unknown();
|
|
6
|
+
r.unknown();
|
|
7
|
+
r.unknown();
|
|
8
|
+
r.unknown();
|
|
9
|
+
r.unknown();
|
|
10
|
+
r.unknown();
|
|
11
|
+
r.unknown();
|
|
12
|
+
r.unknown();
|
|
13
|
+
r.unknown();
|
|
14
|
+
r.unknown();
|
|
15
|
+
r.unknown();
|
|
16
|
+
r.unknown();
|
|
17
|
+
r.unknown();
|
|
18
|
+
const E = r.object({
|
|
19
|
+
color: r.optional(r.string()),
|
|
20
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
21
|
+
if (!(e === "" || e === null || e === void 0))
|
|
22
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
23
|
+
}, r.number())),
|
|
24
|
+
padding: r.optional(r.preprocess((e) => {
|
|
25
|
+
if (!(e === "" || e === null || e === void 0))
|
|
26
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
27
|
+
}, r.number().int())),
|
|
28
|
+
borderRadius: r.optional(r.preprocess((e) => {
|
|
29
|
+
if (!(e === "" || e === null || e === void 0))
|
|
30
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
31
|
+
}, r.number().int()))
|
|
32
|
+
}), q = r.object({
|
|
33
|
+
family: r.optional(r.string()),
|
|
34
|
+
color: r.optional(r.string()),
|
|
35
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
36
|
+
if (!(e === "" || e === null || e === void 0))
|
|
37
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
38
|
+
}, r.number())),
|
|
39
|
+
size: r.optional(r.preprocess((e) => {
|
|
40
|
+
if (!(e === "" || e === null || e === void 0))
|
|
41
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
42
|
+
}, r.number().int())),
|
|
43
|
+
lineHeight: r.optional(r.preprocess((e) => {
|
|
44
|
+
if (!(e === "" || e === null || e === void 0))
|
|
45
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
46
|
+
}, r.number())),
|
|
47
|
+
stroke: r.optional(r.string()),
|
|
48
|
+
strokeWidth: r.optional(r.preprocess((e) => {
|
|
49
|
+
if (!(e === "" || e === null || e === void 0))
|
|
50
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
51
|
+
}, r.number()))
|
|
52
|
+
}), P = r.object({
|
|
53
|
+
top: r.optional(r.preprocess((e) => {
|
|
54
|
+
if (!(e === "" || e === null || e === void 0))
|
|
55
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
56
|
+
}, r.number())),
|
|
57
|
+
left: r.optional(r.preprocess((e) => {
|
|
58
|
+
if (!(e === "" || e === null || e === void 0))
|
|
59
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
60
|
+
}, r.number())),
|
|
61
|
+
right: r.optional(r.preprocess((e) => {
|
|
62
|
+
if (!(e === "" || e === null || e === void 0))
|
|
63
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
64
|
+
}, r.number()))
|
|
65
|
+
}), c = r.object({
|
|
66
|
+
type: r.enum(["caption"]),
|
|
67
|
+
src: r.string(),
|
|
68
|
+
font: r.optional(q),
|
|
69
|
+
background: r.optional(E),
|
|
70
|
+
margin: r.optional(P),
|
|
71
|
+
trim: r.optional(r.preprocess((e) => {
|
|
72
|
+
if (!(e === "" || e === null || e === void 0))
|
|
73
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
74
|
+
}, r.number())),
|
|
75
|
+
speed: r.optional(r.preprocess((e) => {
|
|
76
|
+
if (!(e === "" || e === null || e === void 0))
|
|
77
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
78
|
+
}, r.number().gte(0).lte(10)))
|
|
79
|
+
}), Kr = c, $ = r.object({
|
|
80
|
+
color: r.string().regex(/^#[0-9a-fA-F]{6}$/),
|
|
81
|
+
threshold: r.optional(r.preprocess((e) => {
|
|
82
|
+
if (!(e === "" || e === null || e === void 0))
|
|
83
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
84
|
+
}, r.number().int().gte(0).lte(250))),
|
|
85
|
+
halo: r.optional(r.preprocess((e) => {
|
|
86
|
+
if (!(e === "" || e === null || e === void 0))
|
|
87
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
88
|
+
}, r.number().int().gte(0).lte(250)))
|
|
89
|
+
}), U = r.object({
|
|
90
|
+
type: r.enum(["text-to-avatar"]),
|
|
91
|
+
text: r.string(),
|
|
92
|
+
avatar: r.enum([
|
|
93
93
|
"jack",
|
|
94
94
|
"lana",
|
|
95
95
|
"lily",
|
|
96
96
|
"matt",
|
|
97
97
|
"rian"
|
|
98
98
|
]),
|
|
99
|
-
background:
|
|
100
|
-
}),
|
|
101
|
-
type:
|
|
102
|
-
}).and(
|
|
103
|
-
provider:
|
|
104
|
-
options:
|
|
105
|
-
}),
|
|
106
|
-
type:
|
|
107
|
-
text:
|
|
108
|
-
voice:
|
|
99
|
+
background: r.optional(r.string())
|
|
100
|
+
}), Z = r.object({
|
|
101
|
+
type: r.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")
|
|
102
|
+
}).and(U), J = r.object({
|
|
103
|
+
provider: r.enum(["d-id"]),
|
|
104
|
+
options: Z
|
|
105
|
+
}), _ = r.object({
|
|
106
|
+
type: r.enum(["text-to-speech"]),
|
|
107
|
+
text: r.string(),
|
|
108
|
+
voice: r.enum([
|
|
109
109
|
"Adam",
|
|
110
110
|
"Antoni",
|
|
111
111
|
"Arnold",
|
|
@@ -116,15 +116,15 @@ const E = e.object({
|
|
|
116
116
|
"Rachel",
|
|
117
117
|
"Sam"
|
|
118
118
|
])
|
|
119
|
-
}),
|
|
120
|
-
type:
|
|
121
|
-
}).and(
|
|
122
|
-
provider:
|
|
123
|
-
options:
|
|
124
|
-
}),
|
|
125
|
-
type:
|
|
126
|
-
text:
|
|
127
|
-
avatar:
|
|
119
|
+
}), H = r.object({
|
|
120
|
+
type: r.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")
|
|
121
|
+
}).and(_), K = r.object({
|
|
122
|
+
provider: r.enum(["elevenlabs"]),
|
|
123
|
+
options: H
|
|
124
|
+
}), M = r.object({
|
|
125
|
+
type: r.enum(["text-to-avatar"]),
|
|
126
|
+
text: r.string(),
|
|
127
|
+
avatar: r.enum([
|
|
128
128
|
"Angela",
|
|
129
129
|
"Bill",
|
|
130
130
|
"Daisy",
|
|
@@ -151,7 +151,7 @@ const E = e.object({
|
|
|
151
151
|
"Wilson",
|
|
152
152
|
"Zoey"
|
|
153
153
|
]),
|
|
154
|
-
voice:
|
|
154
|
+
voice: r.enum([
|
|
155
155
|
"Abbi - Natural",
|
|
156
156
|
"Adam - Natural",
|
|
157
157
|
"Aiston - Friendly",
|
|
@@ -237,89 +237,89 @@ const E = e.object({
|
|
|
237
237
|
"Wille - Natural",
|
|
238
238
|
"William - Friendly"
|
|
239
239
|
]),
|
|
240
|
-
avatarStyle:
|
|
241
|
-
background:
|
|
242
|
-
ratio:
|
|
243
|
-
test:
|
|
244
|
-
}), V =
|
|
245
|
-
type:
|
|
246
|
-
}).and(
|
|
247
|
-
provider:
|
|
240
|
+
avatarStyle: r.optional(r.enum(["normal", "circle"])),
|
|
241
|
+
background: r.optional(r.string()),
|
|
242
|
+
ratio: r.optional(r.enum(["16:9", "9:16"])),
|
|
243
|
+
test: r.optional(r.boolean())
|
|
244
|
+
}), V = r.object({
|
|
245
|
+
type: r.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")
|
|
246
|
+
}).and(M), Q = r.object({
|
|
247
|
+
provider: r.enum(["heygen"]),
|
|
248
248
|
options: V
|
|
249
|
-
}), W =
|
|
250
|
-
type:
|
|
251
|
-
prompt:
|
|
252
|
-
model:
|
|
253
|
-
systemPrompt:
|
|
254
|
-
}), X =
|
|
255
|
-
type:
|
|
256
|
-
}).and(W), Y =
|
|
257
|
-
provider:
|
|
249
|
+
}), W = r.object({
|
|
250
|
+
type: r.enum(["text-generator"]),
|
|
251
|
+
prompt: r.string(),
|
|
252
|
+
model: r.enum(["gpt-3.5-turbo", "gpt-4"]),
|
|
253
|
+
systemPrompt: r.optional(r.string())
|
|
254
|
+
}), X = r.object({
|
|
255
|
+
type: r.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")
|
|
256
|
+
}).and(W), Y = r.object({
|
|
257
|
+
provider: r.enum(["openai"]),
|
|
258
258
|
options: X
|
|
259
|
-
}), v =
|
|
260
|
-
status:
|
|
261
|
-
title:
|
|
262
|
-
detail:
|
|
259
|
+
}), v = r.object({
|
|
260
|
+
status: r.string(),
|
|
261
|
+
title: r.string(),
|
|
262
|
+
detail: r.string()
|
|
263
263
|
});
|
|
264
|
-
|
|
265
|
-
errors:
|
|
264
|
+
r.object({
|
|
265
|
+
errors: r.array(v)
|
|
266
266
|
});
|
|
267
|
-
const ee =
|
|
268
|
-
owner:
|
|
269
|
-
provider:
|
|
267
|
+
const ee = r.object({
|
|
268
|
+
owner: r.string(),
|
|
269
|
+
provider: r.enum([
|
|
270
270
|
"shotstack",
|
|
271
271
|
"elevenlabs",
|
|
272
272
|
"heygen",
|
|
273
273
|
"d-id"
|
|
274
274
|
]),
|
|
275
|
-
type:
|
|
276
|
-
url:
|
|
277
|
-
status:
|
|
275
|
+
type: r.enum(["text-to-speech", "text-to-avatar"]),
|
|
276
|
+
url: r.optional(r.string()),
|
|
277
|
+
status: r.enum([
|
|
278
278
|
"queued",
|
|
279
279
|
"processing",
|
|
280
280
|
"saving",
|
|
281
281
|
"done",
|
|
282
282
|
"failed"
|
|
283
283
|
]),
|
|
284
|
-
created:
|
|
285
|
-
updated:
|
|
286
|
-
}),
|
|
287
|
-
type:
|
|
288
|
-
id:
|
|
284
|
+
created: r.string(),
|
|
285
|
+
updated: r.string()
|
|
286
|
+
}), re = r.object({
|
|
287
|
+
type: r.string(),
|
|
288
|
+
id: r.string(),
|
|
289
289
|
attributes: ee
|
|
290
290
|
});
|
|
291
|
-
|
|
292
|
-
data:
|
|
291
|
+
r.object({
|
|
292
|
+
data: re
|
|
293
293
|
});
|
|
294
|
-
const
|
|
295
|
-
type:
|
|
296
|
-
imageUrl:
|
|
297
|
-
guidanceScale:
|
|
298
|
-
if (!(
|
|
299
|
-
return typeof
|
|
300
|
-
},
|
|
301
|
-
motion:
|
|
302
|
-
if (!(
|
|
303
|
-
return typeof
|
|
304
|
-
},
|
|
305
|
-
}), ne =
|
|
306
|
-
type:
|
|
307
|
-
prompt:
|
|
308
|
-
}), ie =
|
|
309
|
-
type:
|
|
310
|
-
prompt:
|
|
311
|
-
width:
|
|
312
|
-
if (!(
|
|
313
|
-
return typeof
|
|
314
|
-
},
|
|
315
|
-
height:
|
|
316
|
-
if (!(
|
|
317
|
-
return typeof
|
|
318
|
-
},
|
|
319
|
-
}), oe =
|
|
320
|
-
type:
|
|
321
|
-
text:
|
|
322
|
-
voice:
|
|
294
|
+
const te = r.object({
|
|
295
|
+
type: r.enum(["image-to-video"]),
|
|
296
|
+
imageUrl: r.string(),
|
|
297
|
+
guidanceScale: r.optional(r.preprocess((e) => {
|
|
298
|
+
if (!(e === "" || e === null || e === void 0))
|
|
299
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
300
|
+
}, r.number())).default(1.8),
|
|
301
|
+
motion: r.optional(r.preprocess((e) => {
|
|
302
|
+
if (!(e === "" || e === null || e === void 0))
|
|
303
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
304
|
+
}, r.number().int())).default(127)
|
|
305
|
+
}), ne = r.object({
|
|
306
|
+
type: r.enum(["text-generator"]),
|
|
307
|
+
prompt: r.string()
|
|
308
|
+
}), ie = r.object({
|
|
309
|
+
type: r.enum(["text-to-image"]),
|
|
310
|
+
prompt: r.string(),
|
|
311
|
+
width: r.preprocess((e) => {
|
|
312
|
+
if (!(e === "" || e === null || e === void 0))
|
|
313
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
314
|
+
}, r.number().int()),
|
|
315
|
+
height: r.preprocess((e) => {
|
|
316
|
+
if (!(e === "" || e === null || e === void 0))
|
|
317
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
318
|
+
}, r.number().int())
|
|
319
|
+
}), oe = r.object({
|
|
320
|
+
type: r.enum(["text-to-speech"]),
|
|
321
|
+
text: r.string(),
|
|
322
|
+
voice: r.enum([
|
|
323
323
|
"Hala",
|
|
324
324
|
"Lisa",
|
|
325
325
|
"Arlet",
|
|
@@ -378,7 +378,7 @@ const re = e.object({
|
|
|
378
378
|
"Pedro",
|
|
379
379
|
"Elin"
|
|
380
380
|
]),
|
|
381
|
-
language:
|
|
381
|
+
language: r.optional(r.enum([
|
|
382
382
|
"cmn-CN",
|
|
383
383
|
"da-DK",
|
|
384
384
|
"de-DE",
|
|
@@ -409,54 +409,54 @@ const re = e.object({
|
|
|
409
409
|
"ar-AE",
|
|
410
410
|
"fi-FI"
|
|
411
411
|
])),
|
|
412
|
-
newscaster:
|
|
413
|
-
}), ae =
|
|
414
|
-
|
|
415
|
-
type:
|
|
412
|
+
newscaster: r.optional(r.boolean()).default(!1)
|
|
413
|
+
}), ae = r.union([
|
|
414
|
+
r.object({
|
|
415
|
+
type: r.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")
|
|
416
416
|
}).and(oe),
|
|
417
|
-
|
|
418
|
-
type:
|
|
417
|
+
r.object({
|
|
418
|
+
type: r.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")
|
|
419
419
|
}).and(ie),
|
|
420
|
-
|
|
421
|
-
type:
|
|
420
|
+
r.object({
|
|
421
|
+
type: r.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")
|
|
422
422
|
}).and(ne),
|
|
423
|
-
|
|
424
|
-
type:
|
|
425
|
-
}).and(
|
|
426
|
-
]), se =
|
|
427
|
-
provider:
|
|
423
|
+
r.object({
|
|
424
|
+
type: r.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")
|
|
425
|
+
}).and(te)
|
|
426
|
+
]), se = r.object({
|
|
427
|
+
provider: r.enum(["shotstack"]),
|
|
428
428
|
options: ae
|
|
429
|
-
}), ue =
|
|
430
|
-
type:
|
|
431
|
-
prompt:
|
|
432
|
-
engine:
|
|
429
|
+
}), ue = r.object({
|
|
430
|
+
type: r.enum(["text-to-image"]),
|
|
431
|
+
prompt: r.string(),
|
|
432
|
+
engine: r.optional(r.enum([
|
|
433
433
|
"stable-diffusion-xl-1024-v0-9",
|
|
434
434
|
"stable-diffusion-xl-1024-v1-0",
|
|
435
435
|
"stable-diffusion-v1-6",
|
|
436
436
|
"stable-diffusion-512-v2-1",
|
|
437
437
|
"stable-diffusion-xl-beta-v2-2-2"
|
|
438
438
|
])),
|
|
439
|
-
width:
|
|
440
|
-
if (!(
|
|
441
|
-
return typeof
|
|
442
|
-
},
|
|
443
|
-
height:
|
|
444
|
-
if (!(
|
|
445
|
-
return typeof
|
|
446
|
-
},
|
|
447
|
-
steps:
|
|
448
|
-
if (!(
|
|
449
|
-
return typeof
|
|
450
|
-
},
|
|
451
|
-
seed:
|
|
452
|
-
if (!(
|
|
453
|
-
return typeof
|
|
454
|
-
},
|
|
455
|
-
cfgScale:
|
|
456
|
-
if (!(
|
|
457
|
-
return typeof
|
|
458
|
-
},
|
|
459
|
-
stylePreset:
|
|
439
|
+
width: r.preprocess((e) => {
|
|
440
|
+
if (!(e === "" || e === null || e === void 0))
|
|
441
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
442
|
+
}, r.number().int()),
|
|
443
|
+
height: r.preprocess((e) => {
|
|
444
|
+
if (!(e === "" || e === null || e === void 0))
|
|
445
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
446
|
+
}, r.number().int()),
|
|
447
|
+
steps: r.optional(r.preprocess((e) => {
|
|
448
|
+
if (!(e === "" || e === null || e === void 0))
|
|
449
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
450
|
+
}, r.number().int())).default(30),
|
|
451
|
+
seed: r.optional(r.preprocess((e) => {
|
|
452
|
+
if (!(e === "" || e === null || e === void 0))
|
|
453
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
454
|
+
}, r.number().int())).default(0),
|
|
455
|
+
cfgScale: r.optional(r.preprocess((e) => {
|
|
456
|
+
if (!(e === "" || e === null || e === void 0))
|
|
457
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
458
|
+
}, r.number())).default(7),
|
|
459
|
+
stylePreset: r.optional(r.enum([
|
|
460
460
|
"3d-model",
|
|
461
461
|
"analog-film",
|
|
462
462
|
"anime",
|
|
@@ -475,158 +475,146 @@ const re = e.object({
|
|
|
475
475
|
"pixel-art",
|
|
476
476
|
"tile-texture"
|
|
477
477
|
]))
|
|
478
|
-
}), le =
|
|
479
|
-
type:
|
|
480
|
-
}).and(ue), pe =
|
|
481
|
-
provider:
|
|
478
|
+
}), le = r.object({
|
|
479
|
+
type: r.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")
|
|
480
|
+
}).and(ue), pe = r.object({
|
|
481
|
+
provider: r.enum(["stability-ai"]),
|
|
482
482
|
options: le
|
|
483
|
-
}),
|
|
484
|
-
|
|
485
|
-
provider:
|
|
483
|
+
}), fe = r.union([
|
|
484
|
+
r.object({
|
|
485
|
+
provider: r.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")
|
|
486
486
|
}).and(se),
|
|
487
|
-
|
|
488
|
-
provider:
|
|
489
|
-
}).and(
|
|
490
|
-
|
|
491
|
-
provider:
|
|
492
|
-
}).and(
|
|
493
|
-
|
|
494
|
-
provider:
|
|
487
|
+
r.object({
|
|
488
|
+
provider: r.literal("didGeneratedAsset_DIDGeneratedAsset")
|
|
489
|
+
}).and(J),
|
|
490
|
+
r.object({
|
|
491
|
+
provider: r.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")
|
|
492
|
+
}).and(K),
|
|
493
|
+
r.object({
|
|
494
|
+
provider: r.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")
|
|
495
495
|
}).and(Q),
|
|
496
|
-
|
|
497
|
-
provider:
|
|
496
|
+
r.object({
|
|
497
|
+
provider: r.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")
|
|
498
498
|
}).and(Y),
|
|
499
|
-
|
|
500
|
-
provider:
|
|
499
|
+
r.object({
|
|
500
|
+
provider: r.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")
|
|
501
501
|
}).and(pe)
|
|
502
|
-
]), n =
|
|
503
|
-
top:
|
|
504
|
-
if (!(
|
|
505
|
-
return typeof
|
|
506
|
-
},
|
|
507
|
-
bottom:
|
|
508
|
-
if (!(
|
|
509
|
-
return typeof
|
|
510
|
-
},
|
|
511
|
-
left:
|
|
512
|
-
if (!(
|
|
513
|
-
return typeof
|
|
514
|
-
},
|
|
515
|
-
right:
|
|
516
|
-
if (!(
|
|
517
|
-
return typeof
|
|
518
|
-
},
|
|
519
|
-
}),
|
|
520
|
-
bucket:
|
|
521
|
-
prefix:
|
|
522
|
-
filename:
|
|
523
|
-
}), ce =
|
|
524
|
-
provider:
|
|
525
|
-
options:
|
|
526
|
-
}), me =
|
|
527
|
-
folderId:
|
|
528
|
-
filename:
|
|
529
|
-
}),
|
|
530
|
-
provider:
|
|
502
|
+
]), n = r.object({
|
|
503
|
+
top: r.optional(r.preprocess((e) => {
|
|
504
|
+
if (!(e === "" || e === null || e === void 0))
|
|
505
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
506
|
+
}, r.number().gte(0).lte(1))),
|
|
507
|
+
bottom: r.optional(r.preprocess((e) => {
|
|
508
|
+
if (!(e === "" || e === null || e === void 0))
|
|
509
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
510
|
+
}, r.number().gte(0).lte(1))),
|
|
511
|
+
left: r.optional(r.preprocess((e) => {
|
|
512
|
+
if (!(e === "" || e === null || e === void 0))
|
|
513
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
514
|
+
}, r.number().gte(0).lte(1))),
|
|
515
|
+
right: r.optional(r.preprocess((e) => {
|
|
516
|
+
if (!(e === "" || e === null || e === void 0))
|
|
517
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
518
|
+
}, r.number().gte(0).lte(1)))
|
|
519
|
+
}), Mr = n, de = r.object({
|
|
520
|
+
bucket: r.string(),
|
|
521
|
+
prefix: r.optional(r.string()),
|
|
522
|
+
filename: r.optional(r.string())
|
|
523
|
+
}), ce = r.object({
|
|
524
|
+
provider: r.literal("google-cloud-storage"),
|
|
525
|
+
options: r.optional(de)
|
|
526
|
+
}), me = r.object({
|
|
527
|
+
folderId: r.string(),
|
|
528
|
+
filename: r.optional(r.string())
|
|
529
|
+
}), ye = r.object({
|
|
530
|
+
provider: r.literal("google-drive"),
|
|
531
531
|
options: me
|
|
532
|
-
}),
|
|
533
|
-
playbackPolicy:
|
|
534
|
-
passthrough:
|
|
535
|
-
}), be =
|
|
536
|
-
provider:
|
|
537
|
-
options:
|
|
538
|
-
}), he =
|
|
539
|
-
region:
|
|
540
|
-
bucket:
|
|
541
|
-
prefix:
|
|
542
|
-
filename:
|
|
543
|
-
acl:
|
|
544
|
-
}), Ae =
|
|
545
|
-
provider:
|
|
546
|
-
options:
|
|
547
|
-
}), Se =
|
|
548
|
-
provider:
|
|
549
|
-
exclude:
|
|
550
|
-
}),
|
|
551
|
-
title:
|
|
552
|
-
privacyLevel:
|
|
532
|
+
}), ge = r.object({
|
|
533
|
+
playbackPolicy: r.optional(r.array(r.enum(["public", "signed"]))),
|
|
534
|
+
passthrough: r.optional(r.string().max(255))
|
|
535
|
+
}), be = r.object({
|
|
536
|
+
provider: r.literal("mux"),
|
|
537
|
+
options: r.optional(ge)
|
|
538
|
+
}), he = r.object({
|
|
539
|
+
region: r.string(),
|
|
540
|
+
bucket: r.string(),
|
|
541
|
+
prefix: r.optional(r.string()),
|
|
542
|
+
filename: r.optional(r.string()),
|
|
543
|
+
acl: r.optional(r.string())
|
|
544
|
+
}), Ae = r.object({
|
|
545
|
+
provider: r.literal("s3"),
|
|
546
|
+
options: r.optional(he)
|
|
547
|
+
}), Se = r.object({
|
|
548
|
+
provider: r.literal("shotstack"),
|
|
549
|
+
exclude: r.optional(r.boolean())
|
|
550
|
+
}), Ne = r.object({
|
|
551
|
+
title: r.optional(r.string().max(150)),
|
|
552
|
+
privacyLevel: r.optional(r.enum([
|
|
553
553
|
"public",
|
|
554
554
|
"friends",
|
|
555
555
|
"private"
|
|
556
556
|
])),
|
|
557
|
-
disableDuet:
|
|
558
|
-
disableStitch:
|
|
559
|
-
disableComment:
|
|
560
|
-
}),
|
|
561
|
-
provider:
|
|
562
|
-
options:
|
|
563
|
-
}), we =
|
|
564
|
-
view:
|
|
557
|
+
disableDuet: r.optional(r.boolean()).default(!1),
|
|
558
|
+
disableStitch: r.optional(r.boolean()).default(!1),
|
|
559
|
+
disableComment: r.optional(r.boolean()).default(!1)
|
|
560
|
+
}), je = r.object({
|
|
561
|
+
provider: r.literal("tiktok"),
|
|
562
|
+
options: r.optional(Ne)
|
|
563
|
+
}), we = r.object({
|
|
564
|
+
view: r.optional(r.enum([
|
|
565
565
|
"anybody",
|
|
566
566
|
"nobody",
|
|
567
567
|
"contacts",
|
|
568
568
|
"password",
|
|
569
569
|
"unlisted"
|
|
570
570
|
])),
|
|
571
|
-
embed:
|
|
571
|
+
embed: r.optional(r.enum([
|
|
572
572
|
"public",
|
|
573
573
|
"private",
|
|
574
574
|
"whitelist"
|
|
575
575
|
])),
|
|
576
|
-
comments:
|
|
576
|
+
comments: r.optional(r.enum([
|
|
577
577
|
"anybody",
|
|
578
578
|
"nobody",
|
|
579
579
|
"contacts"
|
|
580
|
-
]))
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
html: e.string(),
|
|
619
|
-
css: e.optional(e.string()),
|
|
620
|
-
width: e.optional(e.preprocess((t) => {
|
|
621
|
-
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
622
|
-
return typeof t == "string" ? Number(t) : t;
|
|
623
|
-
}, e.number().int())),
|
|
624
|
-
height: e.optional(e.preprocess((t) => {
|
|
625
|
-
if (!(t === "" || t === null || t === void 0 || Array.isArray(t)))
|
|
626
|
-
return typeof t == "string" ? Number(t) : t;
|
|
627
|
-
}, e.number().int())),
|
|
628
|
-
background: e.optional(e.string()),
|
|
629
|
-
position: e.optional(e.enum([
|
|
580
|
+
])),
|
|
581
|
+
download: r.optional(r.boolean()),
|
|
582
|
+
add: r.optional(r.boolean())
|
|
583
|
+
}), xe = r.object({
|
|
584
|
+
name: r.optional(r.string()),
|
|
585
|
+
description: r.optional(r.string()),
|
|
586
|
+
privacy: r.optional(we),
|
|
587
|
+
folderUri: r.optional(r.string())
|
|
588
|
+
}), Te = r.object({
|
|
589
|
+
provider: r.literal("vimeo"),
|
|
590
|
+
options: r.optional(xe)
|
|
591
|
+
}), o = r.discriminatedUnion("provider", [
|
|
592
|
+
Se,
|
|
593
|
+
be,
|
|
594
|
+
Ae,
|
|
595
|
+
ce,
|
|
596
|
+
ye,
|
|
597
|
+
Te,
|
|
598
|
+
je
|
|
599
|
+
]), Fe = o, ke = r.object({
|
|
600
|
+
horizontal: r.optional(r.boolean()),
|
|
601
|
+
vertical: r.optional(r.boolean())
|
|
602
|
+
}), Re = r.object({
|
|
603
|
+
src: r.string()
|
|
604
|
+
}), m = r.object({
|
|
605
|
+
type: r.enum(["html"]),
|
|
606
|
+
html: r.string(),
|
|
607
|
+
css: r.optional(r.string()),
|
|
608
|
+
width: r.optional(r.preprocess((e) => {
|
|
609
|
+
if (!(e === "" || e === null || e === void 0))
|
|
610
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
611
|
+
}, r.number().int())),
|
|
612
|
+
height: r.optional(r.preprocess((e) => {
|
|
613
|
+
if (!(e === "" || e === null || e === void 0))
|
|
614
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
615
|
+
}, r.number().int())),
|
|
616
|
+
background: r.optional(r.string()),
|
|
617
|
+
position: r.optional(r.enum([
|
|
630
618
|
"top",
|
|
631
619
|
"topRight",
|
|
632
620
|
"right",
|
|
@@ -637,15 +625,15 @@ const re = e.object({
|
|
|
637
625
|
"topLeft",
|
|
638
626
|
"center"
|
|
639
627
|
]))
|
|
640
|
-
}),
|
|
641
|
-
type:
|
|
642
|
-
src:
|
|
643
|
-
crop:
|
|
644
|
-
}),
|
|
645
|
-
type:
|
|
646
|
-
src:
|
|
647
|
-
prompt:
|
|
648
|
-
aspectRatio:
|
|
628
|
+
}), Vr = m, y = r.object({
|
|
629
|
+
type: r.enum(["image"]),
|
|
630
|
+
src: r.string(),
|
|
631
|
+
crop: r.optional(n)
|
|
632
|
+
}), Qr = y, Oe = r.object({
|
|
633
|
+
type: r.optional(r.enum(["image-to-video"])),
|
|
634
|
+
src: r.optional(r.string()),
|
|
635
|
+
prompt: r.optional(r.string()),
|
|
636
|
+
aspectRatio: r.optional(r.enum([
|
|
649
637
|
"1:1",
|
|
650
638
|
"4:3",
|
|
651
639
|
"16:9",
|
|
@@ -654,13 +642,13 @@ const re = e.object({
|
|
|
654
642
|
"21:9",
|
|
655
643
|
"9:21"
|
|
656
644
|
])),
|
|
657
|
-
speed:
|
|
658
|
-
if (!(
|
|
659
|
-
return typeof
|
|
660
|
-
},
|
|
661
|
-
crop:
|
|
662
|
-
}), De =
|
|
663
|
-
preset:
|
|
645
|
+
speed: r.optional(r.preprocess((e) => {
|
|
646
|
+
if (!(e === "" || e === null || e === void 0))
|
|
647
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
648
|
+
}, r.number().gte(0).lte(10))),
|
|
649
|
+
crop: r.optional(n)
|
|
650
|
+
}), De = r.object({
|
|
651
|
+
preset: r.enum([
|
|
664
652
|
"conference",
|
|
665
653
|
"interview",
|
|
666
654
|
"lecture",
|
|
@@ -671,148 +659,148 @@ const re = e.object({
|
|
|
671
659
|
"studio",
|
|
672
660
|
"voice_over"
|
|
673
661
|
])
|
|
674
|
-
}), Le =
|
|
675
|
-
provider:
|
|
662
|
+
}), Le = r.object({
|
|
663
|
+
provider: r.string().default("dolby"),
|
|
676
664
|
options: De
|
|
677
|
-
}), Ie =
|
|
678
|
-
enhancement:
|
|
679
|
-
}).and(Le), Ge =
|
|
680
|
-
audio:
|
|
681
|
-
}), Ce =
|
|
682
|
-
status:
|
|
683
|
-
title:
|
|
684
|
-
detail:
|
|
665
|
+
}), Ie = r.object({
|
|
666
|
+
enhancement: r.literal("dolbyEnhancement_DolbyEnhancement")
|
|
667
|
+
}).and(Le), Ge = r.object({
|
|
668
|
+
audio: r.optional(Ie)
|
|
669
|
+
}), Ce = r.object({
|
|
670
|
+
status: r.string(),
|
|
671
|
+
title: r.string(),
|
|
672
|
+
detail: r.string()
|
|
685
673
|
});
|
|
686
|
-
|
|
687
|
-
errors:
|
|
674
|
+
r.object({
|
|
675
|
+
errors: r.array(Ce)
|
|
688
676
|
});
|
|
689
|
-
const ze =
|
|
690
|
-
type:
|
|
691
|
-
id:
|
|
677
|
+
const ze = r.object({
|
|
678
|
+
type: r.string(),
|
|
679
|
+
id: r.string()
|
|
692
680
|
});
|
|
693
|
-
|
|
681
|
+
r.object({
|
|
694
682
|
data: ze
|
|
695
683
|
});
|
|
696
|
-
const Be =
|
|
697
|
-
id:
|
|
698
|
-
url:
|
|
699
|
-
expires:
|
|
700
|
-
}), Ee =
|
|
701
|
-
type:
|
|
702
|
-
id:
|
|
684
|
+
const Be = r.object({
|
|
685
|
+
id: r.string(),
|
|
686
|
+
url: r.string(),
|
|
687
|
+
expires: r.string()
|
|
688
|
+
}), Ee = r.object({
|
|
689
|
+
type: r.string(),
|
|
690
|
+
id: r.string(),
|
|
703
691
|
attributes: Be
|
|
704
692
|
});
|
|
705
|
-
|
|
693
|
+
r.object({
|
|
706
694
|
data: Ee
|
|
707
695
|
});
|
|
708
|
-
const qe =
|
|
709
|
-
speed:
|
|
710
|
-
if (!(
|
|
711
|
-
return typeof
|
|
712
|
-
},
|
|
713
|
-
preservePitch:
|
|
714
|
-
}), Pe =
|
|
715
|
-
format:
|
|
716
|
-
}),
|
|
717
|
-
type:
|
|
718
|
-
src:
|
|
719
|
-
trim:
|
|
720
|
-
if (!(
|
|
721
|
-
return typeof
|
|
722
|
-
},
|
|
723
|
-
}),
|
|
724
|
-
find:
|
|
725
|
-
replace:
|
|
726
|
-
}), $e =
|
|
727
|
-
capture:
|
|
728
|
-
if (!(
|
|
729
|
-
return typeof
|
|
730
|
-
},
|
|
731
|
-
}),
|
|
732
|
-
start:
|
|
733
|
-
if (!(
|
|
734
|
-
return typeof
|
|
735
|
-
},
|
|
736
|
-
length:
|
|
737
|
-
if (!(
|
|
738
|
-
return typeof
|
|
739
|
-
},
|
|
740
|
-
}),
|
|
741
|
-
id:
|
|
742
|
-
owner:
|
|
743
|
-
region:
|
|
744
|
-
renderId:
|
|
745
|
-
providerId:
|
|
746
|
-
filename:
|
|
747
|
-
url:
|
|
748
|
-
status:
|
|
696
|
+
const qe = r.object({
|
|
697
|
+
speed: r.optional(r.preprocess((e) => {
|
|
698
|
+
if (!(e === "" || e === null || e === void 0))
|
|
699
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
700
|
+
}, r.number().gte(0).lte(10))),
|
|
701
|
+
preservePitch: r.optional(r.boolean())
|
|
702
|
+
}), Pe = r.object({
|
|
703
|
+
format: r.optional(r.enum(["srt", "vtt"]))
|
|
704
|
+
}), g = r.object({
|
|
705
|
+
type: r.enum(["luma"]),
|
|
706
|
+
src: r.string(),
|
|
707
|
+
trim: r.optional(r.preprocess((e) => {
|
|
708
|
+
if (!(e === "" || e === null || e === void 0))
|
|
709
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
710
|
+
}, r.number()))
|
|
711
|
+
}), Wr = g, b = r.object({
|
|
712
|
+
find: r.string(),
|
|
713
|
+
replace: r.unknown()
|
|
714
|
+
}), $e = r.object({
|
|
715
|
+
capture: r.preprocess((e) => {
|
|
716
|
+
if (!(e === "" || e === null || e === void 0))
|
|
717
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
718
|
+
}, r.number())
|
|
719
|
+
}), Ue = r.object({
|
|
720
|
+
start: r.optional(r.preprocess((e) => {
|
|
721
|
+
if (!(e === "" || e === null || e === void 0))
|
|
722
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
723
|
+
}, r.number().gte(0))),
|
|
724
|
+
length: r.optional(r.preprocess((e) => {
|
|
725
|
+
if (!(e === "" || e === null || e === void 0))
|
|
726
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
727
|
+
}, r.number().gte(0)))
|
|
728
|
+
}), Ze = r.object({
|
|
729
|
+
id: r.string(),
|
|
730
|
+
owner: r.string(),
|
|
731
|
+
region: r.optional(r.string()),
|
|
732
|
+
renderId: r.optional(r.string()),
|
|
733
|
+
providerId: r.optional(r.string()),
|
|
734
|
+
filename: r.optional(r.string()),
|
|
735
|
+
url: r.optional(r.string()),
|
|
736
|
+
status: r.enum([
|
|
749
737
|
"importing",
|
|
750
738
|
"ready",
|
|
751
739
|
"failed",
|
|
752
740
|
"deleted"
|
|
753
741
|
]),
|
|
754
|
-
created:
|
|
755
|
-
updated:
|
|
756
|
-
}), h =
|
|
757
|
-
type:
|
|
758
|
-
attributes:
|
|
742
|
+
created: r.optional(r.string()),
|
|
743
|
+
updated: r.optional(r.string())
|
|
744
|
+
}), h = r.object({
|
|
745
|
+
type: r.string(),
|
|
746
|
+
attributes: Ze
|
|
759
747
|
});
|
|
760
|
-
|
|
761
|
-
data:
|
|
748
|
+
r.object({
|
|
749
|
+
data: r.array(h)
|
|
762
750
|
});
|
|
763
|
-
|
|
751
|
+
r.object({
|
|
764
752
|
data: h
|
|
765
753
|
});
|
|
766
|
-
|
|
767
|
-
success:
|
|
768
|
-
message:
|
|
769
|
-
response:
|
|
754
|
+
r.object({
|
|
755
|
+
success: r.boolean(),
|
|
756
|
+
message: r.string(),
|
|
757
|
+
response: r.record(r.string(), r.unknown())
|
|
770
758
|
});
|
|
771
|
-
const
|
|
772
|
-
message:
|
|
773
|
-
id:
|
|
759
|
+
const Je = r.object({
|
|
760
|
+
message: r.string(),
|
|
761
|
+
id: r.string()
|
|
774
762
|
});
|
|
775
|
-
|
|
776
|
-
success:
|
|
777
|
-
message:
|
|
778
|
-
response:
|
|
763
|
+
r.object({
|
|
764
|
+
success: r.boolean(),
|
|
765
|
+
message: r.string(),
|
|
766
|
+
response: Je
|
|
779
767
|
});
|
|
780
|
-
const
|
|
781
|
-
id:
|
|
782
|
-
name:
|
|
783
|
-
created:
|
|
784
|
-
updated:
|
|
785
|
-
}),
|
|
786
|
-
owner:
|
|
787
|
-
templates:
|
|
768
|
+
const _e = r.object({
|
|
769
|
+
id: r.string(),
|
|
770
|
+
name: r.string(),
|
|
771
|
+
created: r.optional(r.string()),
|
|
772
|
+
updated: r.optional(r.string())
|
|
773
|
+
}), He = r.object({
|
|
774
|
+
owner: r.string(),
|
|
775
|
+
templates: r.array(_e)
|
|
788
776
|
});
|
|
789
|
-
|
|
790
|
-
success:
|
|
791
|
-
message:
|
|
792
|
-
response:
|
|
777
|
+
r.object({
|
|
778
|
+
success: r.boolean(),
|
|
779
|
+
message: r.string(),
|
|
780
|
+
response: He
|
|
793
781
|
});
|
|
794
|
-
const
|
|
795
|
-
message:
|
|
796
|
-
id:
|
|
782
|
+
const Ke = r.object({
|
|
783
|
+
message: r.string(),
|
|
784
|
+
id: r.string()
|
|
797
785
|
});
|
|
798
|
-
|
|
799
|
-
success:
|
|
800
|
-
message:
|
|
801
|
-
response:
|
|
786
|
+
r.object({
|
|
787
|
+
success: r.boolean(),
|
|
788
|
+
message: r.string(),
|
|
789
|
+
response: Ke
|
|
802
790
|
});
|
|
803
|
-
const
|
|
804
|
-
horizontal:
|
|
791
|
+
const Me = r.object({
|
|
792
|
+
horizontal: r.optional(r.enum([
|
|
805
793
|
"left",
|
|
806
794
|
"center",
|
|
807
795
|
"right"
|
|
808
796
|
])),
|
|
809
|
-
vertical:
|
|
797
|
+
vertical: r.optional(r.enum([
|
|
810
798
|
"top",
|
|
811
799
|
"middle",
|
|
812
800
|
"bottom"
|
|
813
801
|
]))
|
|
814
|
-
}), Ve =
|
|
815
|
-
preset:
|
|
802
|
+
}), Ve = r.object({
|
|
803
|
+
preset: r.enum([
|
|
816
804
|
"fadeIn",
|
|
817
805
|
"slideIn",
|
|
818
806
|
"typewriter",
|
|
@@ -820,241 +808,241 @@ const Ke = e.object({
|
|
|
820
808
|
"shift",
|
|
821
809
|
"movingLetters"
|
|
822
810
|
]),
|
|
823
|
-
speed:
|
|
824
|
-
if (!(
|
|
825
|
-
return typeof
|
|
826
|
-
},
|
|
827
|
-
duration:
|
|
828
|
-
if (!(
|
|
829
|
-
return typeof
|
|
830
|
-
},
|
|
831
|
-
style:
|
|
832
|
-
direction:
|
|
811
|
+
speed: r.optional(r.preprocess((e) => {
|
|
812
|
+
if (!(e === "" || e === null || e === void 0))
|
|
813
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
814
|
+
}, r.number().gte(0.1).lte(10))).default(1),
|
|
815
|
+
duration: r.optional(r.preprocess((e) => {
|
|
816
|
+
if (!(e === "" || e === null || e === void 0))
|
|
817
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
818
|
+
}, r.number().gte(0.1).lte(30))),
|
|
819
|
+
style: r.optional(r.enum(["character", "word"])),
|
|
820
|
+
direction: r.optional(r.enum([
|
|
833
821
|
"left",
|
|
834
822
|
"right",
|
|
835
823
|
"up",
|
|
836
824
|
"down"
|
|
837
825
|
]))
|
|
838
|
-
}), Qe =
|
|
839
|
-
color:
|
|
840
|
-
opacity:
|
|
841
|
-
if (!(
|
|
842
|
-
return typeof
|
|
843
|
-
},
|
|
844
|
-
borderRadius:
|
|
845
|
-
if (!(
|
|
846
|
-
return typeof
|
|
847
|
-
},
|
|
848
|
-
}), We =
|
|
849
|
-
width:
|
|
850
|
-
if (!(
|
|
851
|
-
return typeof
|
|
852
|
-
},
|
|
853
|
-
color:
|
|
854
|
-
opacity:
|
|
855
|
-
if (!(
|
|
856
|
-
return typeof
|
|
857
|
-
},
|
|
858
|
-
radius:
|
|
859
|
-
if (!(
|
|
860
|
-
return typeof
|
|
861
|
-
},
|
|
862
|
-
}), Xe =
|
|
863
|
-
type:
|
|
864
|
-
angle:
|
|
865
|
-
if (!(
|
|
866
|
-
return typeof
|
|
867
|
-
},
|
|
868
|
-
stops:
|
|
869
|
-
offset:
|
|
870
|
-
if (!(
|
|
871
|
-
return typeof
|
|
872
|
-
},
|
|
873
|
-
color:
|
|
826
|
+
}), Qe = r.object({
|
|
827
|
+
color: r.optional(r.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
828
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
829
|
+
if (!(e === "" || e === null || e === void 0))
|
|
830
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
831
|
+
}, r.number().gte(0).lte(1))).default(1),
|
|
832
|
+
borderRadius: r.optional(r.preprocess((e) => {
|
|
833
|
+
if (!(e === "" || e === null || e === void 0))
|
|
834
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
835
|
+
}, r.number().gte(0))).default(0)
|
|
836
|
+
}), We = r.object({
|
|
837
|
+
width: r.optional(r.preprocess((e) => {
|
|
838
|
+
if (!(e === "" || e === null || e === void 0))
|
|
839
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
840
|
+
}, r.number().gte(0))).default(0),
|
|
841
|
+
color: r.optional(r.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
842
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
843
|
+
if (!(e === "" || e === null || e === void 0))
|
|
844
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
845
|
+
}, r.number().gte(0).lte(1))).default(1),
|
|
846
|
+
radius: r.optional(r.preprocess((e) => {
|
|
847
|
+
if (!(e === "" || e === null || e === void 0))
|
|
848
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
849
|
+
}, r.number().gte(0))).default(0)
|
|
850
|
+
}), Xe = r.object({
|
|
851
|
+
type: r.optional(r.enum(["linear", "radial"])),
|
|
852
|
+
angle: r.optional(r.preprocess((e) => {
|
|
853
|
+
if (!(e === "" || e === null || e === void 0))
|
|
854
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
855
|
+
}, r.number().gte(0).lte(360))).default(0),
|
|
856
|
+
stops: r.array(r.object({
|
|
857
|
+
offset: r.preprocess((e) => {
|
|
858
|
+
if (!(e === "" || e === null || e === void 0))
|
|
859
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
860
|
+
}, r.number().gte(0).lte(1)),
|
|
861
|
+
color: r.string().regex(/^#[A-Fa-f0-9]{6}$/)
|
|
874
862
|
})).min(2)
|
|
875
|
-
}), Ye =
|
|
876
|
-
top:
|
|
877
|
-
if (!(
|
|
878
|
-
return typeof
|
|
879
|
-
},
|
|
880
|
-
right:
|
|
881
|
-
if (!(
|
|
882
|
-
return typeof
|
|
883
|
-
},
|
|
884
|
-
bottom:
|
|
885
|
-
if (!(
|
|
886
|
-
return typeof
|
|
887
|
-
},
|
|
888
|
-
left:
|
|
889
|
-
if (!(
|
|
890
|
-
return typeof
|
|
891
|
-
},
|
|
892
|
-
}), ve =
|
|
893
|
-
offsetX:
|
|
894
|
-
if (!(
|
|
895
|
-
return typeof
|
|
896
|
-
},
|
|
897
|
-
offsetY:
|
|
898
|
-
if (!(
|
|
899
|
-
return typeof
|
|
900
|
-
},
|
|
901
|
-
blur:
|
|
902
|
-
if (!(
|
|
903
|
-
return typeof
|
|
904
|
-
},
|
|
905
|
-
color:
|
|
906
|
-
opacity:
|
|
907
|
-
if (!(
|
|
908
|
-
return typeof
|
|
909
|
-
},
|
|
910
|
-
}),
|
|
911
|
-
width:
|
|
912
|
-
if (!(
|
|
913
|
-
return typeof
|
|
914
|
-
},
|
|
915
|
-
color:
|
|
916
|
-
opacity:
|
|
917
|
-
if (!(
|
|
918
|
-
return typeof
|
|
919
|
-
},
|
|
920
|
-
}),
|
|
921
|
-
family:
|
|
922
|
-
size:
|
|
923
|
-
if (!(
|
|
924
|
-
return typeof
|
|
925
|
-
},
|
|
926
|
-
weight:
|
|
927
|
-
color:
|
|
928
|
-
opacity:
|
|
929
|
-
if (!(
|
|
930
|
-
return typeof
|
|
931
|
-
},
|
|
932
|
-
background:
|
|
933
|
-
stroke:
|
|
934
|
-
}),
|
|
935
|
-
letterSpacing:
|
|
936
|
-
if (!(
|
|
937
|
-
return typeof
|
|
938
|
-
},
|
|
939
|
-
lineHeight:
|
|
940
|
-
if (!(
|
|
941
|
-
return typeof
|
|
942
|
-
},
|
|
943
|
-
textTransform:
|
|
863
|
+
}), Ye = r.object({
|
|
864
|
+
top: r.optional(r.preprocess((e) => {
|
|
865
|
+
if (!(e === "" || e === null || e === void 0))
|
|
866
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
867
|
+
}, r.number().gte(0))).default(0),
|
|
868
|
+
right: r.optional(r.preprocess((e) => {
|
|
869
|
+
if (!(e === "" || e === null || e === void 0))
|
|
870
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
871
|
+
}, r.number().gte(0))).default(0),
|
|
872
|
+
bottom: r.optional(r.preprocess((e) => {
|
|
873
|
+
if (!(e === "" || e === null || e === void 0))
|
|
874
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
875
|
+
}, r.number().gte(0))).default(0),
|
|
876
|
+
left: r.optional(r.preprocess((e) => {
|
|
877
|
+
if (!(e === "" || e === null || e === void 0))
|
|
878
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
879
|
+
}, r.number().gte(0))).default(0)
|
|
880
|
+
}), ve = r.object({
|
|
881
|
+
offsetX: r.optional(r.preprocess((e) => {
|
|
882
|
+
if (!(e === "" || e === null || e === void 0))
|
|
883
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
884
|
+
}, r.number())).default(0),
|
|
885
|
+
offsetY: r.optional(r.preprocess((e) => {
|
|
886
|
+
if (!(e === "" || e === null || e === void 0))
|
|
887
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
888
|
+
}, r.number())).default(0),
|
|
889
|
+
blur: r.optional(r.preprocess((e) => {
|
|
890
|
+
if (!(e === "" || e === null || e === void 0))
|
|
891
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
892
|
+
}, r.number().gte(0))).default(0),
|
|
893
|
+
color: r.optional(r.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
894
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
895
|
+
if (!(e === "" || e === null || e === void 0))
|
|
896
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
897
|
+
}, r.number().gte(0).lte(1))).default(0.5)
|
|
898
|
+
}), er = r.object({
|
|
899
|
+
width: r.optional(r.preprocess((e) => {
|
|
900
|
+
if (!(e === "" || e === null || e === void 0))
|
|
901
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
902
|
+
}, r.number().gte(0))).default(0),
|
|
903
|
+
color: r.optional(r.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
904
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
905
|
+
if (!(e === "" || e === null || e === void 0))
|
|
906
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
907
|
+
}, r.number().gte(0).lte(1))).default(1)
|
|
908
|
+
}), rr = r.object({
|
|
909
|
+
family: r.optional(r.string()).default("Open Sans"),
|
|
910
|
+
size: r.optional(r.preprocess((e) => {
|
|
911
|
+
if (!(e === "" || e === null || e === void 0))
|
|
912
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
913
|
+
}, r.number().int().gte(1).lte(500))).default(24),
|
|
914
|
+
weight: r.optional(r.unknown()).default("400"),
|
|
915
|
+
color: r.optional(r.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
|
|
916
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
917
|
+
if (!(e === "" || e === null || e === void 0))
|
|
918
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
919
|
+
}, r.number().gte(0).lte(1))).default(1),
|
|
920
|
+
background: r.optional(r.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
921
|
+
stroke: r.optional(er)
|
|
922
|
+
}), tr = r.object({
|
|
923
|
+
letterSpacing: r.optional(r.preprocess((e) => {
|
|
924
|
+
if (!(e === "" || e === null || e === void 0))
|
|
925
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
926
|
+
}, r.number())).default(0),
|
|
927
|
+
lineHeight: r.optional(r.preprocess((e) => {
|
|
928
|
+
if (!(e === "" || e === null || e === void 0))
|
|
929
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
930
|
+
}, r.number().gte(0).lte(10))).default(1.2),
|
|
931
|
+
textTransform: r.optional(r.enum([
|
|
944
932
|
"none",
|
|
945
933
|
"uppercase",
|
|
946
934
|
"lowercase",
|
|
947
935
|
"capitalize"
|
|
948
936
|
])),
|
|
949
|
-
textDecoration:
|
|
937
|
+
textDecoration: r.optional(r.enum([
|
|
950
938
|
"none",
|
|
951
939
|
"underline",
|
|
952
940
|
"line-through"
|
|
953
941
|
])),
|
|
954
|
-
gradient:
|
|
955
|
-
}), A =
|
|
956
|
-
type:
|
|
957
|
-
text:
|
|
958
|
-
font:
|
|
959
|
-
style:
|
|
960
|
-
shadow:
|
|
961
|
-
background:
|
|
962
|
-
border:
|
|
963
|
-
padding:
|
|
964
|
-
|
|
965
|
-
if (!(
|
|
966
|
-
return typeof
|
|
967
|
-
},
|
|
942
|
+
gradient: r.optional(Xe)
|
|
943
|
+
}), A = r.object({
|
|
944
|
+
type: r.enum(["rich-text"]),
|
|
945
|
+
text: r.string().max(5e3),
|
|
946
|
+
font: r.optional(rr),
|
|
947
|
+
style: r.optional(tr),
|
|
948
|
+
shadow: r.optional(ve),
|
|
949
|
+
background: r.optional(Qe),
|
|
950
|
+
border: r.optional(We),
|
|
951
|
+
padding: r.optional(r.union([
|
|
952
|
+
r.preprocess((e) => {
|
|
953
|
+
if (!(e === "" || e === null || e === void 0))
|
|
954
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
955
|
+
}, r.number().gte(0)),
|
|
968
956
|
Ye
|
|
969
957
|
])),
|
|
970
|
-
align:
|
|
971
|
-
animation:
|
|
972
|
-
}),
|
|
973
|
-
id:
|
|
974
|
-
owner:
|
|
975
|
-
status:
|
|
976
|
-
created:
|
|
977
|
-
}),
|
|
978
|
-
type:
|
|
979
|
-
attributes:
|
|
958
|
+
align: r.optional(Me),
|
|
959
|
+
animation: r.optional(Ve)
|
|
960
|
+
}), Xr = A, nr = r.object({
|
|
961
|
+
id: r.optional(r.string()),
|
|
962
|
+
owner: r.optional(r.string()),
|
|
963
|
+
status: r.optional(r.enum(["queued", "failed"])),
|
|
964
|
+
created: r.optional(r.string())
|
|
965
|
+
}), ir = r.object({
|
|
966
|
+
type: r.optional(r.string()),
|
|
967
|
+
attributes: r.optional(nr)
|
|
980
968
|
});
|
|
981
|
-
|
|
982
|
-
data:
|
|
969
|
+
r.object({
|
|
970
|
+
data: ir
|
|
983
971
|
});
|
|
984
|
-
const
|
|
985
|
-
url:
|
|
986
|
-
id:
|
|
987
|
-
destinations:
|
|
988
|
-
}), S =
|
|
989
|
-
type:
|
|
990
|
-
shape:
|
|
972
|
+
const or = r.object({
|
|
973
|
+
url: r.string(),
|
|
974
|
+
id: r.string(),
|
|
975
|
+
destinations: r.array(o)
|
|
976
|
+
}), S = r.object({
|
|
977
|
+
type: r.enum(["shape"]),
|
|
978
|
+
shape: r.enum([
|
|
991
979
|
"rectangle",
|
|
992
980
|
"circle",
|
|
993
981
|
"line"
|
|
994
982
|
]),
|
|
995
|
-
width:
|
|
996
|
-
if (!(
|
|
997
|
-
return typeof
|
|
998
|
-
},
|
|
999
|
-
height:
|
|
1000
|
-
if (!(
|
|
1001
|
-
return typeof
|
|
1002
|
-
},
|
|
1003
|
-
fill:
|
|
1004
|
-
color:
|
|
1005
|
-
opacity:
|
|
1006
|
-
if (!(
|
|
1007
|
-
return typeof
|
|
1008
|
-
},
|
|
983
|
+
width: r.optional(r.preprocess((e) => {
|
|
984
|
+
if (!(e === "" || e === null || e === void 0))
|
|
985
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
986
|
+
}, r.number().int())),
|
|
987
|
+
height: r.optional(r.preprocess((e) => {
|
|
988
|
+
if (!(e === "" || e === null || e === void 0))
|
|
989
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
990
|
+
}, r.number().int())),
|
|
991
|
+
fill: r.optional(r.object({
|
|
992
|
+
color: r.optional(r.string()),
|
|
993
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
994
|
+
if (!(e === "" || e === null || e === void 0))
|
|
995
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
996
|
+
}, r.number()))
|
|
1009
997
|
})),
|
|
1010
|
-
stroke:
|
|
1011
|
-
color:
|
|
1012
|
-
width:
|
|
1013
|
-
if (!(
|
|
1014
|
-
return typeof
|
|
1015
|
-
},
|
|
998
|
+
stroke: r.optional(r.object({
|
|
999
|
+
color: r.optional(r.string()),
|
|
1000
|
+
width: r.optional(r.preprocess((e) => {
|
|
1001
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1002
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1003
|
+
}, r.number()))
|
|
1016
1004
|
})),
|
|
1017
|
-
rectangle:
|
|
1018
|
-
width:
|
|
1019
|
-
if (!(
|
|
1020
|
-
return typeof
|
|
1021
|
-
},
|
|
1022
|
-
height:
|
|
1023
|
-
if (!(
|
|
1024
|
-
return typeof
|
|
1025
|
-
},
|
|
1026
|
-
cornerRadius:
|
|
1027
|
-
if (!(
|
|
1028
|
-
return typeof
|
|
1029
|
-
},
|
|
1005
|
+
rectangle: r.optional(r.object({
|
|
1006
|
+
width: r.preprocess((e) => {
|
|
1007
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1008
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1009
|
+
}, r.number().int()),
|
|
1010
|
+
height: r.preprocess((e) => {
|
|
1011
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1012
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1013
|
+
}, r.number().int()),
|
|
1014
|
+
cornerRadius: r.optional(r.preprocess((e) => {
|
|
1015
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1016
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1017
|
+
}, r.number().int()))
|
|
1030
1018
|
})),
|
|
1031
|
-
circle:
|
|
1032
|
-
radius:
|
|
1033
|
-
if (!(
|
|
1034
|
-
return typeof
|
|
1035
|
-
},
|
|
1019
|
+
circle: r.optional(r.object({
|
|
1020
|
+
radius: r.preprocess((e) => {
|
|
1021
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1022
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1023
|
+
}, r.number().int())
|
|
1036
1024
|
})),
|
|
1037
|
-
line:
|
|
1038
|
-
length:
|
|
1039
|
-
if (!(
|
|
1040
|
-
return typeof
|
|
1041
|
-
},
|
|
1042
|
-
thickness:
|
|
1043
|
-
if (!(
|
|
1044
|
-
return typeof
|
|
1045
|
-
},
|
|
1025
|
+
line: r.optional(r.object({
|
|
1026
|
+
length: r.preprocess((e) => {
|
|
1027
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1028
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1029
|
+
}, r.number().int()),
|
|
1030
|
+
thickness: r.preprocess((e) => {
|
|
1031
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1032
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1033
|
+
}, r.number().int())
|
|
1046
1034
|
}))
|
|
1047
|
-
}),
|
|
1048
|
-
width:
|
|
1049
|
-
if (!(
|
|
1050
|
-
return typeof
|
|
1051
|
-
},
|
|
1052
|
-
height:
|
|
1053
|
-
if (!(
|
|
1054
|
-
return typeof
|
|
1055
|
-
},
|
|
1056
|
-
}),
|
|
1057
|
-
format:
|
|
1035
|
+
}), Yr = S, p = r.object({
|
|
1036
|
+
width: r.optional(r.preprocess((e) => {
|
|
1037
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1038
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1039
|
+
}, r.number().int().gte(1).lte(4096))),
|
|
1040
|
+
height: r.optional(r.preprocess((e) => {
|
|
1041
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1042
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1043
|
+
}, r.number().int().gte(1).lte(4096)))
|
|
1044
|
+
}), ar = p, N = r.object({
|
|
1045
|
+
format: r.optional(r.enum([
|
|
1058
1046
|
"mp4",
|
|
1059
1047
|
"webm",
|
|
1060
1048
|
"mov",
|
|
@@ -1071,51 +1059,51 @@ const ot = e.object({
|
|
|
1071
1059
|
"webp",
|
|
1072
1060
|
"tif"
|
|
1073
1061
|
])),
|
|
1074
|
-
size:
|
|
1075
|
-
fit:
|
|
1062
|
+
size: r.optional(p),
|
|
1063
|
+
fit: r.optional(r.enum([
|
|
1076
1064
|
"cover",
|
|
1077
1065
|
"contain",
|
|
1078
1066
|
"crop"
|
|
1079
1067
|
])),
|
|
1080
|
-
resolution:
|
|
1068
|
+
resolution: r.optional(r.enum([
|
|
1081
1069
|
"preview",
|
|
1082
1070
|
"mobile",
|
|
1083
1071
|
"sd",
|
|
1084
1072
|
"hd",
|
|
1085
1073
|
"fhd"
|
|
1086
1074
|
])),
|
|
1087
|
-
quality:
|
|
1088
|
-
if (!(
|
|
1089
|
-
return typeof
|
|
1090
|
-
},
|
|
1091
|
-
fps:
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1075
|
+
quality: r.optional(r.preprocess((e) => {
|
|
1076
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1077
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1078
|
+
}, r.number().int().gte(1).lte(100))),
|
|
1079
|
+
fps: r.optional(r.union([
|
|
1080
|
+
r.literal(12),
|
|
1081
|
+
r.literal(15),
|
|
1082
|
+
r.literal(23.976),
|
|
1083
|
+
r.literal(24),
|
|
1084
|
+
r.literal(25),
|
|
1085
|
+
r.literal(29.97),
|
|
1086
|
+
r.literal(30),
|
|
1087
|
+
r.literal(48),
|
|
1088
|
+
r.literal(50),
|
|
1089
|
+
r.literal(59.94),
|
|
1090
|
+
r.literal(60)
|
|
1103
1091
|
])),
|
|
1104
|
-
speed:
|
|
1105
|
-
keyframeInterval:
|
|
1106
|
-
if (!(
|
|
1107
|
-
return typeof
|
|
1108
|
-
},
|
|
1109
|
-
fixOffset:
|
|
1110
|
-
fixRotation:
|
|
1111
|
-
enhance:
|
|
1112
|
-
filename:
|
|
1113
|
-
}),
|
|
1114
|
-
renditions:
|
|
1115
|
-
transcription:
|
|
1116
|
-
}),
|
|
1117
|
-
id:
|
|
1118
|
-
status:
|
|
1092
|
+
speed: r.optional(qe),
|
|
1093
|
+
keyframeInterval: r.optional(r.preprocess((e) => {
|
|
1094
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1095
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1096
|
+
}, r.number().int().gte(1).lte(300))),
|
|
1097
|
+
fixOffset: r.optional(r.boolean()),
|
|
1098
|
+
fixRotation: r.optional(r.boolean()),
|
|
1099
|
+
enhance: r.optional(Ge),
|
|
1100
|
+
filename: r.optional(r.string())
|
|
1101
|
+
}), sr = r.object({
|
|
1102
|
+
renditions: r.optional(r.array(N)),
|
|
1103
|
+
transcription: r.optional(Pe)
|
|
1104
|
+
}), ur = r.object({
|
|
1105
|
+
id: r.string(),
|
|
1106
|
+
status: r.optional(r.enum([
|
|
1119
1107
|
"queued",
|
|
1120
1108
|
"importing",
|
|
1121
1109
|
"ready",
|
|
@@ -1123,36 +1111,36 @@ const ot = e.object({
|
|
|
1123
1111
|
"deleted",
|
|
1124
1112
|
"overwritten"
|
|
1125
1113
|
])),
|
|
1126
|
-
url:
|
|
1127
|
-
executionTime:
|
|
1128
|
-
if (!(
|
|
1129
|
-
return typeof
|
|
1130
|
-
},
|
|
1131
|
-
transformation:
|
|
1132
|
-
width:
|
|
1133
|
-
if (!(
|
|
1134
|
-
return typeof
|
|
1135
|
-
},
|
|
1136
|
-
height:
|
|
1137
|
-
if (!(
|
|
1138
|
-
return typeof
|
|
1139
|
-
},
|
|
1140
|
-
duration:
|
|
1141
|
-
if (!(
|
|
1142
|
-
return typeof
|
|
1143
|
-
},
|
|
1144
|
-
fps:
|
|
1145
|
-
if (!(
|
|
1146
|
-
return typeof
|
|
1147
|
-
},
|
|
1148
|
-
}),
|
|
1149
|
-
renditions:
|
|
1150
|
-
}),
|
|
1151
|
-
id:
|
|
1152
|
-
owner:
|
|
1153
|
-
input:
|
|
1154
|
-
source:
|
|
1155
|
-
status:
|
|
1114
|
+
url: r.optional(r.string()),
|
|
1115
|
+
executionTime: r.optional(r.preprocess((e) => {
|
|
1116
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1117
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1118
|
+
}, r.number())),
|
|
1119
|
+
transformation: r.optional(N),
|
|
1120
|
+
width: r.optional(r.preprocess((e) => {
|
|
1121
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1122
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1123
|
+
}, r.number().int())),
|
|
1124
|
+
height: r.optional(r.preprocess((e) => {
|
|
1125
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1126
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1127
|
+
}, r.number().int())),
|
|
1128
|
+
duration: r.optional(r.preprocess((e) => {
|
|
1129
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1130
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1131
|
+
}, r.number())),
|
|
1132
|
+
fps: r.optional(r.preprocess((e) => {
|
|
1133
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1134
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1135
|
+
}, r.number()))
|
|
1136
|
+
}), lr = r.object({
|
|
1137
|
+
renditions: r.optional(r.array(ur))
|
|
1138
|
+
}), pr = r.object({
|
|
1139
|
+
id: r.string(),
|
|
1140
|
+
owner: r.string(),
|
|
1141
|
+
input: r.optional(r.string()),
|
|
1142
|
+
source: r.optional(r.string()),
|
|
1143
|
+
status: r.optional(r.enum([
|
|
1156
1144
|
"queued",
|
|
1157
1145
|
"importing",
|
|
1158
1146
|
"ready",
|
|
@@ -1160,432 +1148,432 @@ const ot = e.object({
|
|
|
1160
1148
|
"deleted",
|
|
1161
1149
|
"overwritten"
|
|
1162
1150
|
])),
|
|
1163
|
-
outputs:
|
|
1164
|
-
width:
|
|
1165
|
-
if (!(
|
|
1166
|
-
return typeof
|
|
1167
|
-
},
|
|
1168
|
-
height:
|
|
1169
|
-
if (!(
|
|
1170
|
-
return typeof
|
|
1171
|
-
},
|
|
1172
|
-
duration:
|
|
1173
|
-
if (!(
|
|
1174
|
-
return typeof
|
|
1175
|
-
},
|
|
1176
|
-
fps:
|
|
1177
|
-
if (!(
|
|
1178
|
-
return typeof
|
|
1179
|
-
},
|
|
1180
|
-
created:
|
|
1181
|
-
updated:
|
|
1182
|
-
}),
|
|
1183
|
-
type:
|
|
1184
|
-
id:
|
|
1185
|
-
attributes:
|
|
1151
|
+
outputs: r.optional(lr),
|
|
1152
|
+
width: r.optional(r.preprocess((e) => {
|
|
1153
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1154
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1155
|
+
}, r.number().int())),
|
|
1156
|
+
height: r.optional(r.preprocess((e) => {
|
|
1157
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1158
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1159
|
+
}, r.number().int())),
|
|
1160
|
+
duration: r.optional(r.preprocess((e) => {
|
|
1161
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1162
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1163
|
+
}, r.number())),
|
|
1164
|
+
fps: r.optional(r.preprocess((e) => {
|
|
1165
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1166
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1167
|
+
}, r.number())),
|
|
1168
|
+
created: r.optional(r.string()),
|
|
1169
|
+
updated: r.optional(r.string())
|
|
1170
|
+
}), j = r.object({
|
|
1171
|
+
type: r.string(),
|
|
1172
|
+
id: r.string(),
|
|
1173
|
+
attributes: pr
|
|
1186
1174
|
});
|
|
1187
|
-
|
|
1188
|
-
data:
|
|
1175
|
+
r.object({
|
|
1176
|
+
data: r.array(j)
|
|
1189
1177
|
});
|
|
1190
|
-
|
|
1191
|
-
data:
|
|
1178
|
+
r.object({
|
|
1179
|
+
data: j
|
|
1192
1180
|
});
|
|
1193
|
-
const
|
|
1194
|
-
url:
|
|
1195
|
-
outputs:
|
|
1196
|
-
destinations:
|
|
1197
|
-
callback:
|
|
1198
|
-
}),
|
|
1199
|
-
src:
|
|
1200
|
-
effect:
|
|
1181
|
+
const fr = r.object({
|
|
1182
|
+
url: r.optional(r.string()),
|
|
1183
|
+
outputs: r.optional(sr),
|
|
1184
|
+
destinations: r.optional(o),
|
|
1185
|
+
callback: r.optional(r.string())
|
|
1186
|
+
}), dr = r.object({
|
|
1187
|
+
src: r.string(),
|
|
1188
|
+
effect: r.optional(r.enum([
|
|
1201
1189
|
"fadeIn",
|
|
1202
1190
|
"fadeOut",
|
|
1203
1191
|
"fadeInFadeOut"
|
|
1204
1192
|
])),
|
|
1205
|
-
volume:
|
|
1206
|
-
if (!(
|
|
1207
|
-
return typeof
|
|
1208
|
-
},
|
|
1209
|
-
}), w =
|
|
1210
|
-
offset:
|
|
1211
|
-
if (!(
|
|
1212
|
-
return typeof
|
|
1213
|
-
},
|
|
1214
|
-
color:
|
|
1215
|
-
}),
|
|
1216
|
-
type:
|
|
1217
|
-
angle:
|
|
1218
|
-
if (!(
|
|
1219
|
-
return typeof
|
|
1220
|
-
},
|
|
1221
|
-
stops:
|
|
1222
|
-
opacity:
|
|
1223
|
-
if (!(
|
|
1224
|
-
return typeof
|
|
1225
|
-
},
|
|
1226
|
-
}),
|
|
1227
|
-
type:
|
|
1228
|
-
stops:
|
|
1229
|
-
opacity:
|
|
1230
|
-
if (!(
|
|
1231
|
-
return typeof
|
|
1232
|
-
},
|
|
1233
|
-
}),
|
|
1234
|
-
offsetX:
|
|
1235
|
-
if (!(
|
|
1236
|
-
return typeof
|
|
1237
|
-
},
|
|
1238
|
-
offsetY:
|
|
1239
|
-
if (!(
|
|
1240
|
-
return typeof
|
|
1241
|
-
},
|
|
1242
|
-
blur:
|
|
1243
|
-
if (!(
|
|
1244
|
-
return typeof
|
|
1245
|
-
},
|
|
1246
|
-
color:
|
|
1247
|
-
opacity:
|
|
1248
|
-
if (!(
|
|
1249
|
-
return typeof
|
|
1250
|
-
},
|
|
1251
|
-
}),
|
|
1252
|
-
type:
|
|
1253
|
-
color:
|
|
1254
|
-
opacity:
|
|
1255
|
-
if (!(
|
|
1256
|
-
return typeof
|
|
1257
|
-
},
|
|
1258
|
-
}),
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
]),
|
|
1263
|
-
color:
|
|
1264
|
-
width:
|
|
1265
|
-
if (!(
|
|
1266
|
-
return typeof
|
|
1267
|
-
},
|
|
1268
|
-
opacity:
|
|
1269
|
-
if (!(
|
|
1270
|
-
return typeof
|
|
1271
|
-
},
|
|
1272
|
-
lineCap:
|
|
1193
|
+
volume: r.optional(r.preprocess((e) => {
|
|
1194
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1195
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1196
|
+
}, r.number()))
|
|
1197
|
+
}), w = r.object({
|
|
1198
|
+
offset: r.preprocess((e) => {
|
|
1199
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1200
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1201
|
+
}, r.number().gte(0).lte(1)),
|
|
1202
|
+
color: r.string().regex(/^#[A-Fa-f0-9]{6}$/)
|
|
1203
|
+
}), cr = r.object({
|
|
1204
|
+
type: r.enum(["linear"]),
|
|
1205
|
+
angle: r.optional(r.preprocess((e) => {
|
|
1206
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1207
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1208
|
+
}, r.number().gte(0).lte(360))).default(0),
|
|
1209
|
+
stops: r.array(w).min(2),
|
|
1210
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
1211
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1212
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1213
|
+
}, r.number().gte(0).lte(1))).default(1)
|
|
1214
|
+
}), mr = r.object({
|
|
1215
|
+
type: r.enum(["radial"]),
|
|
1216
|
+
stops: r.array(w).min(2),
|
|
1217
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
1218
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1219
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1220
|
+
}, r.number().gte(0).lte(1))).default(1)
|
|
1221
|
+
}), yr = r.object({
|
|
1222
|
+
offsetX: r.optional(r.preprocess((e) => {
|
|
1223
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1224
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1225
|
+
}, r.number())).default(0),
|
|
1226
|
+
offsetY: r.optional(r.preprocess((e) => {
|
|
1227
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1228
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1229
|
+
}, r.number())).default(0),
|
|
1230
|
+
blur: r.optional(r.preprocess((e) => {
|
|
1231
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1232
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1233
|
+
}, r.number().gte(0))).default(0),
|
|
1234
|
+
color: r.optional(r.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1235
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
1236
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1237
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1238
|
+
}, r.number().gte(0).lte(1))).default(0.5)
|
|
1239
|
+
}), gr = r.object({
|
|
1240
|
+
type: r.enum(["solid"]),
|
|
1241
|
+
color: r.string().regex(/^#[A-Fa-f0-9]{6}$/).default("#000000"),
|
|
1242
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
1243
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1244
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1245
|
+
}, r.number().gte(0).lte(1))).default(1)
|
|
1246
|
+
}), br = r.discriminatedUnion("type", [
|
|
1247
|
+
gr,
|
|
1248
|
+
cr,
|
|
1249
|
+
mr
|
|
1250
|
+
]), hr = r.object({
|
|
1251
|
+
color: r.optional(r.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1252
|
+
width: r.optional(r.preprocess((e) => {
|
|
1253
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1254
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1255
|
+
}, r.number().gte(0).lte(100))).default(1),
|
|
1256
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
1257
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1258
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1259
|
+
}, r.number().gte(0).lte(1))).default(1),
|
|
1260
|
+
lineCap: r.optional(r.enum([
|
|
1273
1261
|
"butt",
|
|
1274
1262
|
"round",
|
|
1275
1263
|
"square"
|
|
1276
1264
|
])),
|
|
1277
|
-
lineJoin:
|
|
1265
|
+
lineJoin: r.optional(r.enum([
|
|
1278
1266
|
"miter",
|
|
1279
1267
|
"round",
|
|
1280
1268
|
"bevel"
|
|
1281
1269
|
])),
|
|
1282
|
-
dashArray:
|
|
1283
|
-
if (!(
|
|
1284
|
-
return typeof
|
|
1285
|
-
},
|
|
1286
|
-
dashOffset:
|
|
1287
|
-
if (!(
|
|
1288
|
-
return typeof
|
|
1289
|
-
},
|
|
1290
|
-
}),
|
|
1291
|
-
x:
|
|
1292
|
-
if (!(
|
|
1293
|
-
return typeof
|
|
1294
|
-
},
|
|
1295
|
-
y:
|
|
1296
|
-
if (!(
|
|
1297
|
-
return typeof
|
|
1298
|
-
},
|
|
1299
|
-
rotation:
|
|
1300
|
-
if (!(
|
|
1301
|
-
return typeof
|
|
1302
|
-
},
|
|
1303
|
-
scale:
|
|
1304
|
-
if (!(
|
|
1305
|
-
return typeof
|
|
1306
|
-
},
|
|
1307
|
-
originX:
|
|
1308
|
-
if (!(
|
|
1309
|
-
return typeof
|
|
1310
|
-
},
|
|
1311
|
-
originY:
|
|
1312
|
-
if (!(
|
|
1313
|
-
return typeof
|
|
1314
|
-
},
|
|
1315
|
-
}),
|
|
1316
|
-
type:
|
|
1317
|
-
length:
|
|
1318
|
-
if (!(
|
|
1319
|
-
return typeof
|
|
1320
|
-
},
|
|
1321
|
-
headWidth:
|
|
1322
|
-
if (!(
|
|
1323
|
-
return typeof
|
|
1324
|
-
},
|
|
1325
|
-
headLength:
|
|
1326
|
-
if (!(
|
|
1327
|
-
return typeof
|
|
1328
|
-
},
|
|
1329
|
-
shaftWidth:
|
|
1330
|
-
if (!(
|
|
1331
|
-
return typeof
|
|
1332
|
-
},
|
|
1333
|
-
}),
|
|
1334
|
-
type:
|
|
1335
|
-
radius:
|
|
1336
|
-
if (!(
|
|
1337
|
-
return typeof
|
|
1338
|
-
},
|
|
1339
|
-
}),
|
|
1340
|
-
type:
|
|
1341
|
-
width:
|
|
1342
|
-
if (!(
|
|
1343
|
-
return typeof
|
|
1344
|
-
},
|
|
1345
|
-
height:
|
|
1346
|
-
if (!(
|
|
1347
|
-
return typeof
|
|
1348
|
-
},
|
|
1349
|
-
thickness:
|
|
1350
|
-
if (!(
|
|
1351
|
-
return typeof
|
|
1352
|
-
},
|
|
1353
|
-
}),
|
|
1354
|
-
type:
|
|
1355
|
-
radiusX:
|
|
1356
|
-
if (!(
|
|
1357
|
-
return typeof
|
|
1358
|
-
},
|
|
1359
|
-
radiusY:
|
|
1360
|
-
if (!(
|
|
1361
|
-
return typeof
|
|
1362
|
-
},
|
|
1363
|
-
}),
|
|
1364
|
-
type:
|
|
1365
|
-
size:
|
|
1366
|
-
if (!(
|
|
1367
|
-
return typeof
|
|
1368
|
-
},
|
|
1369
|
-
}),
|
|
1370
|
-
type:
|
|
1371
|
-
length:
|
|
1372
|
-
if (!(
|
|
1373
|
-
return typeof
|
|
1374
|
-
},
|
|
1375
|
-
thickness:
|
|
1376
|
-
if (!(
|
|
1377
|
-
return typeof
|
|
1378
|
-
},
|
|
1379
|
-
}),
|
|
1380
|
-
type:
|
|
1381
|
-
d:
|
|
1382
|
-
}),
|
|
1383
|
-
type:
|
|
1384
|
-
sides:
|
|
1385
|
-
if (!(
|
|
1386
|
-
return typeof
|
|
1387
|
-
},
|
|
1388
|
-
radius:
|
|
1389
|
-
if (!(
|
|
1390
|
-
return typeof
|
|
1391
|
-
},
|
|
1392
|
-
}),
|
|
1393
|
-
type:
|
|
1394
|
-
width:
|
|
1395
|
-
if (!(
|
|
1396
|
-
return typeof
|
|
1397
|
-
},
|
|
1398
|
-
height:
|
|
1399
|
-
if (!(
|
|
1400
|
-
return typeof
|
|
1401
|
-
},
|
|
1402
|
-
cornerRadius:
|
|
1403
|
-
if (!(
|
|
1404
|
-
return typeof
|
|
1405
|
-
},
|
|
1406
|
-
}),
|
|
1407
|
-
type:
|
|
1408
|
-
outerRadius:
|
|
1409
|
-
if (!(
|
|
1410
|
-
return typeof
|
|
1411
|
-
},
|
|
1412
|
-
innerRadius:
|
|
1413
|
-
if (!(
|
|
1414
|
-
return typeof
|
|
1415
|
-
},
|
|
1416
|
-
}),
|
|
1417
|
-
type:
|
|
1418
|
-
points:
|
|
1419
|
-
if (!(
|
|
1420
|
-
return typeof
|
|
1421
|
-
},
|
|
1422
|
-
outerRadius:
|
|
1423
|
-
if (!(
|
|
1424
|
-
return typeof
|
|
1425
|
-
},
|
|
1426
|
-
innerRadius:
|
|
1427
|
-
if (!(
|
|
1428
|
-
return typeof
|
|
1429
|
-
},
|
|
1430
|
-
}),
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
]), x =
|
|
1443
|
-
type:
|
|
1444
|
-
src:
|
|
1445
|
-
shape:
|
|
1446
|
-
fill:
|
|
1447
|
-
stroke:
|
|
1448
|
-
shadow:
|
|
1449
|
-
transform:
|
|
1450
|
-
opacity:
|
|
1451
|
-
if (!(
|
|
1452
|
-
return typeof
|
|
1453
|
-
},
|
|
1454
|
-
if (!(
|
|
1455
|
-
return typeof
|
|
1456
|
-
},
|
|
1457
|
-
width:
|
|
1458
|
-
if (!(
|
|
1459
|
-
return typeof
|
|
1460
|
-
},
|
|
1461
|
-
if (!(
|
|
1462
|
-
return typeof
|
|
1463
|
-
},
|
|
1464
|
-
height:
|
|
1465
|
-
if (!(
|
|
1466
|
-
return typeof
|
|
1467
|
-
},
|
|
1468
|
-
if (!(
|
|
1469
|
-
return typeof
|
|
1470
|
-
},
|
|
1471
|
-
}).superRefine((
|
|
1472
|
-
const
|
|
1473
|
-
if (!
|
|
1474
|
-
code:
|
|
1270
|
+
dashArray: r.optional(r.array(r.preprocess((e) => {
|
|
1271
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1272
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1273
|
+
}, r.number().gte(0)))),
|
|
1274
|
+
dashOffset: r.optional(r.preprocess((e) => {
|
|
1275
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1276
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1277
|
+
}, r.number())).default(0)
|
|
1278
|
+
}), Ar = r.object({
|
|
1279
|
+
x: r.optional(r.preprocess((e) => {
|
|
1280
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1281
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1282
|
+
}, r.number())).default(0),
|
|
1283
|
+
y: r.optional(r.preprocess((e) => {
|
|
1284
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1285
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1286
|
+
}, r.number())).default(0),
|
|
1287
|
+
rotation: r.optional(r.preprocess((e) => {
|
|
1288
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1289
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1290
|
+
}, r.number().gte(-360).lte(360))).default(0),
|
|
1291
|
+
scale: r.optional(r.preprocess((e) => {
|
|
1292
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1293
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1294
|
+
}, r.number().gte(0.01).lte(100))).default(1),
|
|
1295
|
+
originX: r.optional(r.preprocess((e) => {
|
|
1296
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1297
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1298
|
+
}, r.number().gte(0).lte(1))).default(0.5),
|
|
1299
|
+
originY: r.optional(r.preprocess((e) => {
|
|
1300
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1301
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1302
|
+
}, r.number().gte(0).lte(1))).default(0.5)
|
|
1303
|
+
}), Sr = r.object({
|
|
1304
|
+
type: r.enum(["arrow"]),
|
|
1305
|
+
length: r.preprocess((e) => {
|
|
1306
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1307
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1308
|
+
}, r.number().gte(1).lte(4096)),
|
|
1309
|
+
headWidth: r.preprocess((e) => {
|
|
1310
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1311
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1312
|
+
}, r.number().gte(1).lte(1e3)),
|
|
1313
|
+
headLength: r.preprocess((e) => {
|
|
1314
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1315
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1316
|
+
}, r.number().gte(1).lte(1e3)),
|
|
1317
|
+
shaftWidth: r.preprocess((e) => {
|
|
1318
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1319
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1320
|
+
}, r.number().gte(1).lte(1e3))
|
|
1321
|
+
}), Nr = r.object({
|
|
1322
|
+
type: r.enum(["circle"]),
|
|
1323
|
+
radius: r.preprocess((e) => {
|
|
1324
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1325
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1326
|
+
}, r.number().gte(1).lte(2048))
|
|
1327
|
+
}), jr = r.object({
|
|
1328
|
+
type: r.enum(["cross"]),
|
|
1329
|
+
width: r.preprocess((e) => {
|
|
1330
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1331
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1332
|
+
}, r.number().gte(1).lte(4096)),
|
|
1333
|
+
height: r.preprocess((e) => {
|
|
1334
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1335
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1336
|
+
}, r.number().gte(1).lte(4096)),
|
|
1337
|
+
thickness: r.preprocess((e) => {
|
|
1338
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1339
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1340
|
+
}, r.number().gte(1).lte(500))
|
|
1341
|
+
}), wr = r.object({
|
|
1342
|
+
type: r.enum(["ellipse"]),
|
|
1343
|
+
radiusX: r.preprocess((e) => {
|
|
1344
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1345
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1346
|
+
}, r.number().gte(1).lte(2048)),
|
|
1347
|
+
radiusY: r.preprocess((e) => {
|
|
1348
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1349
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1350
|
+
}, r.number().gte(1).lte(2048))
|
|
1351
|
+
}), xr = r.object({
|
|
1352
|
+
type: r.enum(["heart"]),
|
|
1353
|
+
size: r.preprocess((e) => {
|
|
1354
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1355
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1356
|
+
}, r.number().gte(1).lte(4096))
|
|
1357
|
+
}), Tr = r.object({
|
|
1358
|
+
type: r.enum(["line"]),
|
|
1359
|
+
length: r.preprocess((e) => {
|
|
1360
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1361
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1362
|
+
}, r.number().gte(1).lte(4096)),
|
|
1363
|
+
thickness: r.preprocess((e) => {
|
|
1364
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1365
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1366
|
+
}, r.number().gte(1).lte(500))
|
|
1367
|
+
}), Fr = r.object({
|
|
1368
|
+
type: r.enum(["path"]),
|
|
1369
|
+
d: r.string().min(1).max(1e5)
|
|
1370
|
+
}), kr = r.object({
|
|
1371
|
+
type: r.enum(["polygon"]),
|
|
1372
|
+
sides: r.preprocess((e) => {
|
|
1373
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1374
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1375
|
+
}, r.number().int().gte(3).lte(100)),
|
|
1376
|
+
radius: r.preprocess((e) => {
|
|
1377
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1378
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1379
|
+
}, r.number().gte(1).lte(2048))
|
|
1380
|
+
}), Rr = r.object({
|
|
1381
|
+
type: r.enum(["rectangle"]),
|
|
1382
|
+
width: r.preprocess((e) => {
|
|
1383
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1384
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1385
|
+
}, r.number().gte(1).lte(4096)),
|
|
1386
|
+
height: r.preprocess((e) => {
|
|
1387
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1388
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1389
|
+
}, r.number().gte(1).lte(4096)),
|
|
1390
|
+
cornerRadius: r.optional(r.preprocess((e) => {
|
|
1391
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1392
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1393
|
+
}, r.number().gte(0).lte(2048))).default(0)
|
|
1394
|
+
}), Or = r.object({
|
|
1395
|
+
type: r.enum(["ring"]),
|
|
1396
|
+
outerRadius: r.preprocess((e) => {
|
|
1397
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1398
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1399
|
+
}, r.number().gte(1).lte(2048)),
|
|
1400
|
+
innerRadius: r.preprocess((e) => {
|
|
1401
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1402
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1403
|
+
}, r.number().gte(0).lte(2048))
|
|
1404
|
+
}), Dr = r.object({
|
|
1405
|
+
type: r.enum(["star"]),
|
|
1406
|
+
points: r.preprocess((e) => {
|
|
1407
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1408
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1409
|
+
}, r.number().int().gte(3).lte(100)),
|
|
1410
|
+
outerRadius: r.preprocess((e) => {
|
|
1411
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1412
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1413
|
+
}, r.number().gte(1).lte(2048)),
|
|
1414
|
+
innerRadius: r.preprocess((e) => {
|
|
1415
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1416
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1417
|
+
}, r.number().gte(1).lte(2048))
|
|
1418
|
+
}), Lr = r.discriminatedUnion("type", [
|
|
1419
|
+
Rr,
|
|
1420
|
+
Nr,
|
|
1421
|
+
wr,
|
|
1422
|
+
Tr,
|
|
1423
|
+
kr,
|
|
1424
|
+
Dr,
|
|
1425
|
+
Sr,
|
|
1426
|
+
xr,
|
|
1427
|
+
jr,
|
|
1428
|
+
Or,
|
|
1429
|
+
Fr
|
|
1430
|
+
]), x = r.object({
|
|
1431
|
+
type: r.enum(["svg"]),
|
|
1432
|
+
src: r.optional(r.string().min(1).max(5e5)),
|
|
1433
|
+
shape: r.optional(Lr),
|
|
1434
|
+
fill: r.optional(br),
|
|
1435
|
+
stroke: r.optional(hr),
|
|
1436
|
+
shadow: r.optional(yr),
|
|
1437
|
+
transform: r.optional(Ar),
|
|
1438
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
1439
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1440
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1441
|
+
}, r.preprocess((e) => {
|
|
1442
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1443
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1444
|
+
}, r.number().gte(0).lte(1)))).default(1),
|
|
1445
|
+
width: r.optional(r.preprocess((e) => {
|
|
1446
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1447
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1448
|
+
}, r.preprocess((e) => {
|
|
1449
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1450
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1451
|
+
}, r.number().int().gte(1).lte(4096)))),
|
|
1452
|
+
height: r.optional(r.preprocess((e) => {
|
|
1453
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1454
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1455
|
+
}, r.preprocess((e) => {
|
|
1456
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1457
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1458
|
+
}, r.number().int().gte(1).lte(4096))))
|
|
1459
|
+
}).superRefine((e, s) => {
|
|
1460
|
+
const d = e.shape !== void 0, u = e.src !== void 0 && e.src.trim() !== "";
|
|
1461
|
+
if (!d && !u && s.addIssue({
|
|
1462
|
+
code: r.ZodIssueCode.custom,
|
|
1475
1463
|
message: "Either 'src' or 'shape' must be provided",
|
|
1476
1464
|
path: []
|
|
1477
|
-
}),
|
|
1478
|
-
code:
|
|
1465
|
+
}), d && u && s.addIssue({
|
|
1466
|
+
code: r.ZodIssueCode.custom,
|
|
1479
1467
|
message: "Provide either 'src' or 'shape', not both",
|
|
1480
1468
|
path: ["src"]
|
|
1481
1469
|
}), u) {
|
|
1482
1470
|
const B = ["shape", "fill", "stroke", "shadow", "transform", "width", "height"];
|
|
1483
1471
|
for (const l of B)
|
|
1484
|
-
|
|
1485
|
-
code:
|
|
1472
|
+
e[l] !== void 0 && s.addIssue({
|
|
1473
|
+
code: r.ZodIssueCode.custom,
|
|
1486
1474
|
message: `'${l}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,
|
|
1487
1475
|
path: [l]
|
|
1488
1476
|
});
|
|
1489
1477
|
}
|
|
1490
|
-
}),
|
|
1491
|
-
id:
|
|
1492
|
-
merge:
|
|
1493
|
-
}),
|
|
1494
|
-
horizontal:
|
|
1478
|
+
}), vr = x, Ir = r.object({
|
|
1479
|
+
id: r.string(),
|
|
1480
|
+
merge: r.optional(r.array(b))
|
|
1481
|
+
}), Gr = r.object({
|
|
1482
|
+
horizontal: r.optional(r.enum([
|
|
1495
1483
|
"left",
|
|
1496
1484
|
"center",
|
|
1497
1485
|
"right"
|
|
1498
1486
|
])),
|
|
1499
|
-
vertical:
|
|
1487
|
+
vertical: r.optional(r.enum([
|
|
1500
1488
|
"top",
|
|
1501
1489
|
"center",
|
|
1502
1490
|
"bottom"
|
|
1503
1491
|
]))
|
|
1504
|
-
}),
|
|
1505
|
-
preset:
|
|
1506
|
-
duration:
|
|
1507
|
-
if (!(
|
|
1508
|
-
return typeof
|
|
1509
|
-
},
|
|
1510
|
-
}),
|
|
1511
|
-
color:
|
|
1512
|
-
opacity:
|
|
1513
|
-
if (!(
|
|
1514
|
-
return typeof
|
|
1515
|
-
},
|
|
1516
|
-
padding:
|
|
1517
|
-
if (!(
|
|
1518
|
-
return typeof
|
|
1519
|
-
},
|
|
1520
|
-
borderRadius:
|
|
1521
|
-
if (!(
|
|
1522
|
-
return typeof
|
|
1523
|
-
},
|
|
1524
|
-
}),
|
|
1525
|
-
family:
|
|
1526
|
-
color:
|
|
1527
|
-
opacity:
|
|
1528
|
-
if (!(
|
|
1529
|
-
return typeof
|
|
1530
|
-
},
|
|
1531
|
-
size:
|
|
1532
|
-
if (!(
|
|
1533
|
-
return typeof
|
|
1534
|
-
},
|
|
1535
|
-
weight:
|
|
1536
|
-
if (!(
|
|
1537
|
-
return typeof
|
|
1538
|
-
},
|
|
1539
|
-
lineHeight:
|
|
1540
|
-
if (!(
|
|
1541
|
-
return typeof
|
|
1542
|
-
},
|
|
1543
|
-
}),
|
|
1544
|
-
width:
|
|
1545
|
-
if (!(
|
|
1546
|
-
return typeof
|
|
1547
|
-
},
|
|
1548
|
-
color:
|
|
1549
|
-
}), T =
|
|
1550
|
-
type:
|
|
1551
|
-
text:
|
|
1552
|
-
width:
|
|
1553
|
-
if (!(
|
|
1554
|
-
return typeof
|
|
1555
|
-
},
|
|
1556
|
-
height:
|
|
1557
|
-
if (!(
|
|
1558
|
-
return typeof
|
|
1559
|
-
},
|
|
1560
|
-
font:
|
|
1561
|
-
background:
|
|
1562
|
-
alignment:
|
|
1563
|
-
stroke:
|
|
1564
|
-
animation:
|
|
1565
|
-
ellipsis:
|
|
1566
|
-
}),
|
|
1567
|
-
type:
|
|
1568
|
-
prompt:
|
|
1569
|
-
width:
|
|
1570
|
-
if (!(
|
|
1571
|
-
return typeof
|
|
1572
|
-
},
|
|
1573
|
-
height:
|
|
1574
|
-
if (!(
|
|
1575
|
-
return typeof
|
|
1576
|
-
},
|
|
1577
|
-
crop:
|
|
1578
|
-
}),
|
|
1579
|
-
capture:
|
|
1580
|
-
if (!(
|
|
1581
|
-
return typeof
|
|
1582
|
-
},
|
|
1583
|
-
scale:
|
|
1584
|
-
if (!(
|
|
1585
|
-
return typeof
|
|
1586
|
-
},
|
|
1587
|
-
}),
|
|
1588
|
-
format:
|
|
1492
|
+
}), Cr = r.object({
|
|
1493
|
+
preset: r.enum(["typewriter"]),
|
|
1494
|
+
duration: r.optional(r.preprocess((e) => {
|
|
1495
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1496
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1497
|
+
}, r.number().gte(0.1).lte(30)))
|
|
1498
|
+
}), zr = r.object({
|
|
1499
|
+
color: r.optional(r.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
1500
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
1501
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1502
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1503
|
+
}, r.number().gte(0).lte(1))),
|
|
1504
|
+
padding: r.optional(r.preprocess((e) => {
|
|
1505
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1506
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1507
|
+
}, r.number().gte(0).lte(100))),
|
|
1508
|
+
borderRadius: r.optional(r.preprocess((e) => {
|
|
1509
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1510
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1511
|
+
}, r.number().gte(0)))
|
|
1512
|
+
}), Br = r.object({
|
|
1513
|
+
family: r.optional(r.string()),
|
|
1514
|
+
color: r.optional(r.string()),
|
|
1515
|
+
opacity: r.optional(r.preprocess((e) => {
|
|
1516
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1517
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1518
|
+
}, r.number())),
|
|
1519
|
+
size: r.optional(r.preprocess((e) => {
|
|
1520
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1521
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1522
|
+
}, r.number().int())),
|
|
1523
|
+
weight: r.optional(r.preprocess((e) => {
|
|
1524
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1525
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1526
|
+
}, r.number().int())),
|
|
1527
|
+
lineHeight: r.optional(r.preprocess((e) => {
|
|
1528
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1529
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1530
|
+
}, r.number()))
|
|
1531
|
+
}), Er = r.object({
|
|
1532
|
+
width: r.optional(r.preprocess((e) => {
|
|
1533
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1534
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1535
|
+
}, r.number().gte(0).lte(10))),
|
|
1536
|
+
color: r.optional(r.string().regex(/^#[A-Fa-f0-9]{6}$/))
|
|
1537
|
+
}), T = r.object({
|
|
1538
|
+
type: r.enum(["text"]),
|
|
1539
|
+
text: r.string(),
|
|
1540
|
+
width: r.optional(r.preprocess((e) => {
|
|
1541
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1542
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1543
|
+
}, r.number().int())),
|
|
1544
|
+
height: r.optional(r.preprocess((e) => {
|
|
1545
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1546
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1547
|
+
}, r.number().int())),
|
|
1548
|
+
font: r.optional(Br),
|
|
1549
|
+
background: r.optional(zr),
|
|
1550
|
+
alignment: r.optional(Gr),
|
|
1551
|
+
stroke: r.optional(Er),
|
|
1552
|
+
animation: r.optional(Cr),
|
|
1553
|
+
ellipsis: r.optional(r.string())
|
|
1554
|
+
}), et = T, qr = r.object({
|
|
1555
|
+
type: r.enum(["text-to-image"]),
|
|
1556
|
+
prompt: r.string(),
|
|
1557
|
+
width: r.optional(r.preprocess((e) => {
|
|
1558
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1559
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1560
|
+
}, r.number().int())),
|
|
1561
|
+
height: r.optional(r.preprocess((e) => {
|
|
1562
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1563
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1564
|
+
}, r.number().int())),
|
|
1565
|
+
crop: r.optional(n)
|
|
1566
|
+
}), Pr = r.object({
|
|
1567
|
+
capture: r.preprocess((e) => {
|
|
1568
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1569
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1570
|
+
}, r.number()),
|
|
1571
|
+
scale: r.preprocess((e) => {
|
|
1572
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1573
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1574
|
+
}, r.number().gte(0).lte(1))
|
|
1575
|
+
}), F = r.object({
|
|
1576
|
+
format: r.enum([
|
|
1589
1577
|
"mp4",
|
|
1590
1578
|
"gif",
|
|
1591
1579
|
"mp3",
|
|
@@ -1593,7 +1581,7 @@ const dt = e.object({
|
|
|
1593
1581
|
"png",
|
|
1594
1582
|
"bmp"
|
|
1595
1583
|
]),
|
|
1596
|
-
resolution:
|
|
1584
|
+
resolution: r.optional(r.enum([
|
|
1597
1585
|
"preview",
|
|
1598
1586
|
"mobile",
|
|
1599
1587
|
"sd",
|
|
@@ -1601,28 +1589,28 @@ const dt = e.object({
|
|
|
1601
1589
|
"1080",
|
|
1602
1590
|
"4k"
|
|
1603
1591
|
])),
|
|
1604
|
-
aspectRatio:
|
|
1592
|
+
aspectRatio: r.optional(r.enum([
|
|
1605
1593
|
"16:9",
|
|
1606
1594
|
"9:16",
|
|
1607
1595
|
"1:1",
|
|
1608
1596
|
"4:5",
|
|
1609
1597
|
"4:3"
|
|
1610
1598
|
])),
|
|
1611
|
-
size:
|
|
1612
|
-
fps:
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1599
|
+
size: r.optional(p),
|
|
1600
|
+
fps: r.optional(r.union([
|
|
1601
|
+
r.literal(12),
|
|
1602
|
+
r.literal(15),
|
|
1603
|
+
r.literal(23.976),
|
|
1604
|
+
r.literal(24),
|
|
1605
|
+
r.literal(25),
|
|
1606
|
+
r.literal(29.97),
|
|
1607
|
+
r.literal(30),
|
|
1608
|
+
r.literal(48),
|
|
1609
|
+
r.literal(50),
|
|
1610
|
+
r.literal(59.94),
|
|
1611
|
+
r.literal(60)
|
|
1624
1612
|
])),
|
|
1625
|
-
scaleTo:
|
|
1613
|
+
scaleTo: r.optional(r.enum([
|
|
1626
1614
|
"preview",
|
|
1627
1615
|
"mobile",
|
|
1628
1616
|
"sd",
|
|
@@ -1630,21 +1618,21 @@ const dt = e.object({
|
|
|
1630
1618
|
"1080",
|
|
1631
1619
|
"4k"
|
|
1632
1620
|
])),
|
|
1633
|
-
quality:
|
|
1621
|
+
quality: r.optional(r.enum([
|
|
1634
1622
|
"verylow",
|
|
1635
1623
|
"low",
|
|
1636
1624
|
"medium",
|
|
1637
1625
|
"high",
|
|
1638
1626
|
"veryhigh"
|
|
1639
1627
|
])),
|
|
1640
|
-
repeat:
|
|
1641
|
-
mute:
|
|
1642
|
-
range:
|
|
1643
|
-
poster:
|
|
1644
|
-
thumbnail:
|
|
1645
|
-
destinations:
|
|
1646
|
-
}), a =
|
|
1647
|
-
in:
|
|
1628
|
+
repeat: r.optional(r.boolean()),
|
|
1629
|
+
mute: r.optional(r.boolean()),
|
|
1630
|
+
range: r.optional(Ue),
|
|
1631
|
+
poster: r.optional($e),
|
|
1632
|
+
thumbnail: r.optional(Pr),
|
|
1633
|
+
destinations: r.optional(r.array(o))
|
|
1634
|
+
}), a = F, k = r.object({
|
|
1635
|
+
in: r.optional(r.enum([
|
|
1648
1636
|
"none",
|
|
1649
1637
|
"fade",
|
|
1650
1638
|
"fadeSlow",
|
|
@@ -1708,7 +1696,7 @@ const dt = e.object({
|
|
|
1708
1696
|
"shuffleTopLeftFast",
|
|
1709
1697
|
"zoom"
|
|
1710
1698
|
])),
|
|
1711
|
-
out:
|
|
1699
|
+
out: r.optional(r.enum([
|
|
1712
1700
|
"none",
|
|
1713
1701
|
"fade",
|
|
1714
1702
|
"fadeSlow",
|
|
@@ -1772,23 +1760,23 @@ const dt = e.object({
|
|
|
1772
1760
|
"shuffleTopLeftFast",
|
|
1773
1761
|
"zoom"
|
|
1774
1762
|
]))
|
|
1775
|
-
}),
|
|
1776
|
-
from:
|
|
1777
|
-
to:
|
|
1778
|
-
start:
|
|
1779
|
-
if (!(
|
|
1780
|
-
return typeof
|
|
1781
|
-
},
|
|
1782
|
-
length:
|
|
1783
|
-
if (!(
|
|
1784
|
-
return typeof
|
|
1785
|
-
},
|
|
1786
|
-
interpolation:
|
|
1763
|
+
}), rt = k, t = r.object({
|
|
1764
|
+
from: r.optional(r.unknown()),
|
|
1765
|
+
to: r.optional(r.unknown()),
|
|
1766
|
+
start: r.optional(r.preprocess((e) => {
|
|
1767
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1768
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1769
|
+
}, r.number())),
|
|
1770
|
+
length: r.optional(r.preprocess((e) => {
|
|
1771
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1772
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1773
|
+
}, r.number())),
|
|
1774
|
+
interpolation: r.optional(r.enum([
|
|
1787
1775
|
"linear",
|
|
1788
1776
|
"bezier",
|
|
1789
1777
|
"constant"
|
|
1790
1778
|
])),
|
|
1791
|
-
easing:
|
|
1779
|
+
easing: r.optional(r.enum([
|
|
1792
1780
|
"ease",
|
|
1793
1781
|
"easeIn",
|
|
1794
1782
|
"easeOut",
|
|
@@ -1818,72 +1806,72 @@ const dt = e.object({
|
|
|
1818
1806
|
"easeInOutCirc",
|
|
1819
1807
|
"easeInOutBack"
|
|
1820
1808
|
]))
|
|
1821
|
-
}),
|
|
1822
|
-
type:
|
|
1823
|
-
src:
|
|
1824
|
-
trim:
|
|
1825
|
-
if (!(
|
|
1826
|
-
return typeof
|
|
1827
|
-
},
|
|
1828
|
-
volume:
|
|
1829
|
-
|
|
1830
|
-
if (!(
|
|
1831
|
-
return typeof
|
|
1832
|
-
},
|
|
1833
|
-
|
|
1809
|
+
}), tt = t, R = r.object({
|
|
1810
|
+
type: r.enum(["audio"]),
|
|
1811
|
+
src: r.string(),
|
|
1812
|
+
trim: r.optional(r.preprocess((e) => {
|
|
1813
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1814
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1815
|
+
}, r.number())),
|
|
1816
|
+
volume: r.optional(r.union([
|
|
1817
|
+
r.preprocess((e) => {
|
|
1818
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1819
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1820
|
+
}, r.number().gte(0).lte(1)),
|
|
1821
|
+
r.array(t)
|
|
1834
1822
|
])),
|
|
1835
|
-
speed:
|
|
1836
|
-
if (!(
|
|
1837
|
-
return typeof
|
|
1838
|
-
},
|
|
1839
|
-
effect:
|
|
1823
|
+
speed: r.optional(r.preprocess((e) => {
|
|
1824
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1825
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1826
|
+
}, r.number().gte(0).lte(10))),
|
|
1827
|
+
effect: r.optional(r.enum([
|
|
1840
1828
|
"none",
|
|
1841
1829
|
"fadeIn",
|
|
1842
1830
|
"fadeOut",
|
|
1843
1831
|
"fadeInFadeOut"
|
|
1844
1832
|
]))
|
|
1845
|
-
}),
|
|
1846
|
-
x:
|
|
1847
|
-
|
|
1848
|
-
if (!(
|
|
1849
|
-
return typeof
|
|
1850
|
-
},
|
|
1851
|
-
|
|
1833
|
+
}), nt = R, f = r.object({
|
|
1834
|
+
x: r.optional(r.union([
|
|
1835
|
+
r.preprocess((e) => {
|
|
1836
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1837
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1838
|
+
}, r.number().gte(-10).lte(10)),
|
|
1839
|
+
r.array(t)
|
|
1852
1840
|
])),
|
|
1853
|
-
y:
|
|
1854
|
-
|
|
1855
|
-
if (!(
|
|
1856
|
-
return typeof
|
|
1857
|
-
},
|
|
1858
|
-
|
|
1841
|
+
y: r.optional(r.union([
|
|
1842
|
+
r.preprocess((e) => {
|
|
1843
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1844
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1845
|
+
}, r.number().gte(-10).lte(10)),
|
|
1846
|
+
r.array(t)
|
|
1859
1847
|
]))
|
|
1860
|
-
}),
|
|
1861
|
-
angle:
|
|
1862
|
-
|
|
1863
|
-
if (!(
|
|
1864
|
-
return typeof
|
|
1865
|
-
},
|
|
1866
|
-
|
|
1848
|
+
}), it = f, $r = r.object({
|
|
1849
|
+
angle: r.optional(r.union([
|
|
1850
|
+
r.preprocess((e) => {
|
|
1851
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1852
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1853
|
+
}, r.number().gte(-360).lte(360)),
|
|
1854
|
+
r.array(t)
|
|
1867
1855
|
]))
|
|
1868
|
-
}),
|
|
1869
|
-
x:
|
|
1870
|
-
|
|
1871
|
-
if (!(
|
|
1872
|
-
return typeof
|
|
1873
|
-
},
|
|
1874
|
-
|
|
1856
|
+
}), Ur = r.object({
|
|
1857
|
+
x: r.optional(r.union([
|
|
1858
|
+
r.preprocess((e) => {
|
|
1859
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1860
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1861
|
+
}, r.number().gte(-100).lte(100)),
|
|
1862
|
+
r.array(t)
|
|
1875
1863
|
])),
|
|
1876
|
-
y:
|
|
1877
|
-
|
|
1878
|
-
if (!(
|
|
1879
|
-
return typeof
|
|
1880
|
-
},
|
|
1881
|
-
|
|
1864
|
+
y: r.optional(r.union([
|
|
1865
|
+
r.preprocess((e) => {
|
|
1866
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1867
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1868
|
+
}, r.number().gte(-100).lte(100)),
|
|
1869
|
+
r.array(t)
|
|
1882
1870
|
]))
|
|
1883
|
-
}),
|
|
1884
|
-
type:
|
|
1885
|
-
text:
|
|
1886
|
-
style:
|
|
1871
|
+
}), Zr = r.object({
|
|
1872
|
+
type: r.enum(["title"]),
|
|
1873
|
+
text: r.string(),
|
|
1874
|
+
style: r.optional(r.enum([
|
|
1887
1875
|
"minimal",
|
|
1888
1876
|
"blockbuster",
|
|
1889
1877
|
"vogue",
|
|
@@ -1895,8 +1883,8 @@ const dt = e.object({
|
|
|
1895
1883
|
"future",
|
|
1896
1884
|
"subtitle"
|
|
1897
1885
|
])),
|
|
1898
|
-
color:
|
|
1899
|
-
size:
|
|
1886
|
+
color: r.optional(r.string()),
|
|
1887
|
+
size: r.optional(r.enum([
|
|
1900
1888
|
"xx-small",
|
|
1901
1889
|
"x-small",
|
|
1902
1890
|
"small",
|
|
@@ -1905,8 +1893,8 @@ const dt = e.object({
|
|
|
1905
1893
|
"x-large",
|
|
1906
1894
|
"xx-large"
|
|
1907
1895
|
])),
|
|
1908
|
-
background:
|
|
1909
|
-
position:
|
|
1896
|
+
background: r.optional(r.string()),
|
|
1897
|
+
position: r.optional(r.enum([
|
|
1910
1898
|
"top",
|
|
1911
1899
|
"topRight",
|
|
1912
1900
|
"right",
|
|
@@ -1917,88 +1905,90 @@ const dt = e.object({
|
|
|
1917
1905
|
"topLeft",
|
|
1918
1906
|
"center"
|
|
1919
1907
|
])),
|
|
1920
|
-
offset:
|
|
1921
|
-
}), O =
|
|
1922
|
-
rotate:
|
|
1923
|
-
skew:
|
|
1924
|
-
flip:
|
|
1925
|
-
}),
|
|
1926
|
-
type:
|
|
1927
|
-
src:
|
|
1928
|
-
transcode:
|
|
1929
|
-
trim:
|
|
1930
|
-
if (!(
|
|
1931
|
-
return typeof
|
|
1932
|
-
},
|
|
1933
|
-
volume:
|
|
1934
|
-
|
|
1935
|
-
if (!(
|
|
1936
|
-
return typeof
|
|
1937
|
-
},
|
|
1938
|
-
|
|
1908
|
+
offset: r.optional(f)
|
|
1909
|
+
}), O = r.object({
|
|
1910
|
+
rotate: r.optional($r),
|
|
1911
|
+
skew: r.optional(Ur),
|
|
1912
|
+
flip: r.optional(ke)
|
|
1913
|
+
}), ot = O, D = r.object({
|
|
1914
|
+
type: r.enum(["video"]),
|
|
1915
|
+
src: r.string(),
|
|
1916
|
+
transcode: r.optional(r.boolean()),
|
|
1917
|
+
trim: r.optional(r.preprocess((e) => {
|
|
1918
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1919
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1920
|
+
}, r.number())),
|
|
1921
|
+
volume: r.optional(r.union([
|
|
1922
|
+
r.preprocess((e) => {
|
|
1923
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1924
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1925
|
+
}, r.number().gte(0).lte(1)),
|
|
1926
|
+
r.array(t)
|
|
1939
1927
|
])),
|
|
1940
|
-
volumeEffect:
|
|
1928
|
+
volumeEffect: r.optional(r.enum([
|
|
1941
1929
|
"none",
|
|
1942
1930
|
"fadeIn",
|
|
1943
1931
|
"fadeOut",
|
|
1944
1932
|
"fadeInFadeOut"
|
|
1945
1933
|
])),
|
|
1946
|
-
speed:
|
|
1947
|
-
if (!(
|
|
1948
|
-
return typeof
|
|
1949
|
-
},
|
|
1950
|
-
crop:
|
|
1951
|
-
chromaKey:
|
|
1952
|
-
}),
|
|
1934
|
+
speed: r.optional(r.preprocess((e) => {
|
|
1935
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1936
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1937
|
+
}, r.number().gte(0).lte(10))),
|
|
1938
|
+
crop: r.optional(n),
|
|
1939
|
+
chromaKey: r.optional($)
|
|
1940
|
+
}), at = D, L = r.discriminatedUnion("type", [
|
|
1953
1941
|
D,
|
|
1954
|
-
|
|
1942
|
+
y,
|
|
1955
1943
|
T,
|
|
1956
1944
|
A,
|
|
1957
1945
|
R,
|
|
1958
|
-
|
|
1946
|
+
g,
|
|
1959
1947
|
c,
|
|
1960
1948
|
m,
|
|
1961
|
-
|
|
1949
|
+
Zr,
|
|
1962
1950
|
S,
|
|
1963
1951
|
x,
|
|
1964
|
-
|
|
1952
|
+
qr,
|
|
1965
1953
|
Oe
|
|
1966
|
-
]),
|
|
1954
|
+
]), st = L, I = r.object({
|
|
1967
1955
|
asset: L,
|
|
1968
|
-
start:
|
|
1969
|
-
|
|
1970
|
-
if (!(
|
|
1971
|
-
return typeof
|
|
1972
|
-
},
|
|
1973
|
-
|
|
1956
|
+
start: r.union([
|
|
1957
|
+
r.preprocess((e) => {
|
|
1958
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1959
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1960
|
+
}, r.number()),
|
|
1961
|
+
r.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/)
|
|
1974
1962
|
]),
|
|
1975
|
-
length:
|
|
1976
|
-
|
|
1977
|
-
if (!(
|
|
1978
|
-
return typeof
|
|
1979
|
-
},
|
|
1980
|
-
|
|
1981
|
-
e.literal("end")
|
|
1963
|
+
length: r.union([
|
|
1964
|
+
r.preprocess((e) => {
|
|
1965
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1966
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1967
|
+
}, r.number()),
|
|
1968
|
+
r.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/)
|
|
1982
1969
|
]),
|
|
1983
|
-
fit:
|
|
1970
|
+
fit: r.optional(r.enum([
|
|
1984
1971
|
"cover",
|
|
1985
1972
|
"contain",
|
|
1986
1973
|
"crop",
|
|
1987
1974
|
"none"
|
|
1988
1975
|
])),
|
|
1989
|
-
scale:
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1976
|
+
scale: r.optional(r.union([
|
|
1977
|
+
r.preprocess((e) => {
|
|
1978
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1979
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1980
|
+
}, r.number()),
|
|
1981
|
+
r.array(t)
|
|
1982
|
+
])),
|
|
1983
|
+
width: r.optional(r.preprocess((e) => {
|
|
1984
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1985
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1986
|
+
}, r.number().int().gte(1).lte(3840))),
|
|
1987
|
+
height: r.optional(r.preprocess((e) => {
|
|
1988
|
+
if (!(e === "" || e === null || e === void 0))
|
|
1989
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
1990
|
+
}, r.number().int().gte(1).lte(2160))),
|
|
1991
|
+
position: r.optional(r.enum([
|
|
2002
1992
|
"top",
|
|
2003
1993
|
"topRight",
|
|
2004
1994
|
"right",
|
|
@@ -2009,9 +1999,9 @@ const dt = e.object({
|
|
|
2009
1999
|
"topLeft",
|
|
2010
2000
|
"center"
|
|
2011
2001
|
])),
|
|
2012
|
-
offset:
|
|
2013
|
-
transition:
|
|
2014
|
-
effect:
|
|
2002
|
+
offset: r.optional(f),
|
|
2003
|
+
transition: r.optional(k),
|
|
2004
|
+
effect: r.optional(r.enum([
|
|
2015
2005
|
"zoomIn",
|
|
2016
2006
|
"zoomInSlow",
|
|
2017
2007
|
"zoomInFast",
|
|
@@ -2031,7 +2021,7 @@ const dt = e.object({
|
|
|
2031
2021
|
"slideDownSlow",
|
|
2032
2022
|
"slideDownFast"
|
|
2033
2023
|
])),
|
|
2034
|
-
filter:
|
|
2024
|
+
filter: r.optional(r.enum([
|
|
2035
2025
|
"none",
|
|
2036
2026
|
"blur",
|
|
2037
2027
|
"boost",
|
|
@@ -2042,34 +2032,34 @@ const dt = e.object({
|
|
|
2042
2032
|
"muted",
|
|
2043
2033
|
"negative"
|
|
2044
2034
|
])),
|
|
2045
|
-
opacity:
|
|
2046
|
-
|
|
2047
|
-
if (!(
|
|
2048
|
-
return typeof
|
|
2049
|
-
},
|
|
2050
|
-
|
|
2035
|
+
opacity: r.optional(r.union([
|
|
2036
|
+
r.preprocess((e) => {
|
|
2037
|
+
if (!(e === "" || e === null || e === void 0))
|
|
2038
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
2039
|
+
}, r.number()),
|
|
2040
|
+
r.array(t)
|
|
2051
2041
|
])),
|
|
2052
|
-
transform:
|
|
2053
|
-
alias:
|
|
2054
|
-
}),
|
|
2055
|
-
clips:
|
|
2056
|
-
}),
|
|
2057
|
-
soundtrack:
|
|
2058
|
-
background:
|
|
2059
|
-
fonts:
|
|
2060
|
-
tracks:
|
|
2061
|
-
cache:
|
|
2062
|
-
}),
|
|
2042
|
+
transform: r.optional(O),
|
|
2043
|
+
alias: r.optional(r.string().regex(/^[A-Za-z0-9_-]+$/))
|
|
2044
|
+
}), ut = I, G = r.object({
|
|
2045
|
+
clips: r.array(I)
|
|
2046
|
+
}), lt = G, C = r.object({
|
|
2047
|
+
soundtrack: r.optional(dr),
|
|
2048
|
+
background: r.optional(r.string()),
|
|
2049
|
+
fonts: r.optional(r.array(Re)),
|
|
2050
|
+
tracks: r.array(G),
|
|
2051
|
+
cache: r.optional(r.boolean())
|
|
2052
|
+
}), pt = C, i = r.object({
|
|
2063
2053
|
timeline: C,
|
|
2064
|
-
output:
|
|
2065
|
-
merge:
|
|
2066
|
-
callback:
|
|
2067
|
-
disk:
|
|
2068
|
-
}),
|
|
2069
|
-
id:
|
|
2070
|
-
owner:
|
|
2071
|
-
plan:
|
|
2072
|
-
status:
|
|
2054
|
+
output: F,
|
|
2055
|
+
merge: r.optional(r.array(b)),
|
|
2056
|
+
callback: r.optional(r.string()),
|
|
2057
|
+
disk: r.optional(r.enum(["local", "mount"]))
|
|
2058
|
+
}), ft = i, Jr = r.object({
|
|
2059
|
+
id: r.string(),
|
|
2060
|
+
owner: r.string(),
|
|
2061
|
+
plan: r.optional(r.string()),
|
|
2062
|
+
status: r.enum([
|
|
2073
2063
|
"queued",
|
|
2074
2064
|
"fetching",
|
|
2075
2065
|
"preprocessing",
|
|
@@ -2078,205 +2068,205 @@ const dt = e.object({
|
|
|
2078
2068
|
"done",
|
|
2079
2069
|
"failed"
|
|
2080
2070
|
]),
|
|
2081
|
-
error:
|
|
2082
|
-
duration:
|
|
2083
|
-
if (!(
|
|
2084
|
-
return typeof
|
|
2085
|
-
},
|
|
2086
|
-
renderTime:
|
|
2087
|
-
if (!(
|
|
2088
|
-
return typeof
|
|
2089
|
-
},
|
|
2090
|
-
url:
|
|
2091
|
-
poster:
|
|
2092
|
-
|
|
2093
|
-
|
|
2071
|
+
error: r.optional(r.string()),
|
|
2072
|
+
duration: r.optional(r.preprocess((e) => {
|
|
2073
|
+
if (!(e === "" || e === null || e === void 0))
|
|
2074
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
2075
|
+
}, r.number())),
|
|
2076
|
+
renderTime: r.optional(r.preprocess((e) => {
|
|
2077
|
+
if (!(e === "" || e === null || e === void 0))
|
|
2078
|
+
return Array.isArray(e) ? e : typeof e == "string" ? Number(e) : e;
|
|
2079
|
+
}, r.number())),
|
|
2080
|
+
url: r.optional(r.string()),
|
|
2081
|
+
poster: r.optional(r.union([
|
|
2082
|
+
r.string(),
|
|
2083
|
+
r.null()
|
|
2094
2084
|
])),
|
|
2095
|
-
thumbnail:
|
|
2096
|
-
|
|
2097
|
-
|
|
2085
|
+
thumbnail: r.optional(r.union([
|
|
2086
|
+
r.string(),
|
|
2087
|
+
r.null()
|
|
2098
2088
|
])),
|
|
2099
|
-
data:
|
|
2100
|
-
created:
|
|
2101
|
-
updated:
|
|
2089
|
+
data: r.optional(i),
|
|
2090
|
+
created: r.optional(r.string()),
|
|
2091
|
+
updated: r.optional(r.string())
|
|
2102
2092
|
});
|
|
2103
|
-
|
|
2104
|
-
success:
|
|
2105
|
-
message:
|
|
2106
|
-
response:
|
|
2093
|
+
r.object({
|
|
2094
|
+
success: r.boolean(),
|
|
2095
|
+
message: r.string(),
|
|
2096
|
+
response: Jr
|
|
2107
2097
|
});
|
|
2108
|
-
const
|
|
2109
|
-
id:
|
|
2110
|
-
name:
|
|
2111
|
-
owner:
|
|
2098
|
+
const _r = r.object({
|
|
2099
|
+
id: r.string(),
|
|
2100
|
+
name: r.string(),
|
|
2101
|
+
owner: r.string(),
|
|
2112
2102
|
template: i
|
|
2113
2103
|
});
|
|
2114
|
-
|
|
2115
|
-
success:
|
|
2116
|
-
message:
|
|
2117
|
-
response:
|
|
2104
|
+
r.object({
|
|
2105
|
+
success: r.boolean(),
|
|
2106
|
+
message: r.string(),
|
|
2107
|
+
response: _r
|
|
2118
2108
|
});
|
|
2119
|
-
const z =
|
|
2120
|
-
name:
|
|
2121
|
-
template:
|
|
2109
|
+
const z = r.object({
|
|
2110
|
+
name: r.string(),
|
|
2111
|
+
template: r.optional(i)
|
|
2122
2112
|
});
|
|
2123
|
-
|
|
2113
|
+
r.object({
|
|
2124
2114
|
body: i,
|
|
2125
|
-
path:
|
|
2126
|
-
query:
|
|
2115
|
+
path: r.optional(r.never()),
|
|
2116
|
+
query: r.optional(r.never())
|
|
2127
2117
|
});
|
|
2128
|
-
|
|
2129
|
-
body:
|
|
2130
|
-
path:
|
|
2131
|
-
id:
|
|
2118
|
+
r.object({
|
|
2119
|
+
body: r.optional(r.never()),
|
|
2120
|
+
path: r.object({
|
|
2121
|
+
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}$/)
|
|
2132
2122
|
}),
|
|
2133
|
-
query:
|
|
2134
|
-
data:
|
|
2135
|
-
merged:
|
|
2123
|
+
query: r.optional(r.object({
|
|
2124
|
+
data: r.optional(r.boolean()),
|
|
2125
|
+
merged: r.optional(r.boolean())
|
|
2136
2126
|
}))
|
|
2137
2127
|
});
|
|
2138
|
-
|
|
2139
|
-
body:
|
|
2140
|
-
path:
|
|
2141
|
-
query:
|
|
2128
|
+
r.object({
|
|
2129
|
+
body: r.optional(r.never()),
|
|
2130
|
+
path: r.optional(r.never()),
|
|
2131
|
+
query: r.optional(r.never())
|
|
2142
2132
|
});
|
|
2143
|
-
|
|
2133
|
+
r.object({
|
|
2144
2134
|
body: z,
|
|
2145
|
-
path:
|
|
2146
|
-
query:
|
|
2135
|
+
path: r.optional(r.never()),
|
|
2136
|
+
query: r.optional(r.never())
|
|
2147
2137
|
});
|
|
2148
|
-
|
|
2149
|
-
body:
|
|
2150
|
-
path:
|
|
2151
|
-
id:
|
|
2138
|
+
r.object({
|
|
2139
|
+
body: r.optional(r.never()),
|
|
2140
|
+
path: r.object({
|
|
2141
|
+
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}$/)
|
|
2152
2142
|
}),
|
|
2153
|
-
query:
|
|
2143
|
+
query: r.optional(r.never())
|
|
2154
2144
|
});
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
body:
|
|
2158
|
-
path:
|
|
2159
|
-
id:
|
|
2145
|
+
r.void();
|
|
2146
|
+
r.object({
|
|
2147
|
+
body: r.optional(r.never()),
|
|
2148
|
+
path: r.object({
|
|
2149
|
+
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}$/)
|
|
2160
2150
|
}),
|
|
2161
|
-
query:
|
|
2151
|
+
query: r.optional(r.never())
|
|
2162
2152
|
});
|
|
2163
|
-
|
|
2153
|
+
r.object({
|
|
2164
2154
|
body: z,
|
|
2165
|
-
path:
|
|
2166
|
-
id:
|
|
2155
|
+
path: r.object({
|
|
2156
|
+
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}$/)
|
|
2167
2157
|
}),
|
|
2168
|
-
query:
|
|
2158
|
+
query: r.optional(r.never())
|
|
2169
2159
|
});
|
|
2170
|
-
|
|
2171
|
-
body:
|
|
2172
|
-
path:
|
|
2173
|
-
query:
|
|
2160
|
+
r.object({
|
|
2161
|
+
body: Ir,
|
|
2162
|
+
path: r.optional(r.never()),
|
|
2163
|
+
query: r.optional(r.never())
|
|
2174
2164
|
});
|
|
2175
|
-
|
|
2176
|
-
body:
|
|
2177
|
-
path:
|
|
2178
|
-
url:
|
|
2165
|
+
r.object({
|
|
2166
|
+
body: r.optional(r.never()),
|
|
2167
|
+
path: r.object({
|
|
2168
|
+
url: r.string()
|
|
2179
2169
|
}),
|
|
2180
|
-
query:
|
|
2170
|
+
query: r.optional(r.never())
|
|
2181
2171
|
});
|
|
2182
|
-
|
|
2183
|
-
body:
|
|
2184
|
-
path:
|
|
2185
|
-
id:
|
|
2172
|
+
r.object({
|
|
2173
|
+
body: r.optional(r.never()),
|
|
2174
|
+
path: r.object({
|
|
2175
|
+
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}$/)
|
|
2186
2176
|
}),
|
|
2187
|
-
query:
|
|
2177
|
+
query: r.optional(r.never())
|
|
2188
2178
|
});
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
body:
|
|
2192
|
-
path:
|
|
2193
|
-
id:
|
|
2179
|
+
r.void();
|
|
2180
|
+
r.object({
|
|
2181
|
+
body: r.optional(r.never()),
|
|
2182
|
+
path: r.object({
|
|
2183
|
+
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}$/)
|
|
2194
2184
|
}),
|
|
2195
|
-
query:
|
|
2185
|
+
query: r.optional(r.never())
|
|
2196
2186
|
});
|
|
2197
|
-
|
|
2198
|
-
body:
|
|
2199
|
-
path:
|
|
2200
|
-
id:
|
|
2187
|
+
r.object({
|
|
2188
|
+
body: r.optional(r.never()),
|
|
2189
|
+
path: r.object({
|
|
2190
|
+
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}$/)
|
|
2201
2191
|
}),
|
|
2202
|
-
query:
|
|
2192
|
+
query: r.optional(r.never())
|
|
2203
2193
|
});
|
|
2204
|
-
|
|
2205
|
-
body:
|
|
2206
|
-
path:
|
|
2207
|
-
query:
|
|
2194
|
+
r.object({
|
|
2195
|
+
body: or,
|
|
2196
|
+
path: r.optional(r.never()),
|
|
2197
|
+
query: r.optional(r.never())
|
|
2208
2198
|
});
|
|
2209
|
-
|
|
2210
|
-
body:
|
|
2211
|
-
path:
|
|
2212
|
-
query:
|
|
2199
|
+
r.object({
|
|
2200
|
+
body: r.optional(r.never()),
|
|
2201
|
+
path: r.optional(r.never()),
|
|
2202
|
+
query: r.optional(r.never())
|
|
2213
2203
|
});
|
|
2214
|
-
|
|
2215
|
-
body:
|
|
2216
|
-
path:
|
|
2217
|
-
query:
|
|
2204
|
+
r.object({
|
|
2205
|
+
body: fr,
|
|
2206
|
+
path: r.optional(r.never()),
|
|
2207
|
+
query: r.optional(r.never())
|
|
2218
2208
|
});
|
|
2219
|
-
|
|
2220
|
-
body:
|
|
2221
|
-
path:
|
|
2222
|
-
id:
|
|
2209
|
+
r.object({
|
|
2210
|
+
body: r.optional(r.never()),
|
|
2211
|
+
path: r.object({
|
|
2212
|
+
id: r.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
|
|
2223
2213
|
}),
|
|
2224
|
-
query:
|
|
2214
|
+
query: r.optional(r.never())
|
|
2225
2215
|
});
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
body:
|
|
2229
|
-
path:
|
|
2230
|
-
id:
|
|
2216
|
+
r.void();
|
|
2217
|
+
r.object({
|
|
2218
|
+
body: r.optional(r.never()),
|
|
2219
|
+
path: r.object({
|
|
2220
|
+
id: r.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
|
|
2231
2221
|
}),
|
|
2232
|
-
query:
|
|
2222
|
+
query: r.optional(r.never())
|
|
2233
2223
|
});
|
|
2234
|
-
|
|
2235
|
-
body:
|
|
2236
|
-
path:
|
|
2237
|
-
query:
|
|
2224
|
+
r.object({
|
|
2225
|
+
body: r.optional(r.never()),
|
|
2226
|
+
path: r.optional(r.never()),
|
|
2227
|
+
query: r.optional(r.never())
|
|
2238
2228
|
});
|
|
2239
|
-
|
|
2240
|
-
body:
|
|
2241
|
-
path:
|
|
2242
|
-
query:
|
|
2229
|
+
r.object({
|
|
2230
|
+
body: fe,
|
|
2231
|
+
path: r.optional(r.never()),
|
|
2232
|
+
query: r.optional(r.never())
|
|
2243
2233
|
});
|
|
2244
|
-
|
|
2245
|
-
body:
|
|
2246
|
-
path:
|
|
2247
|
-
id:
|
|
2234
|
+
r.object({
|
|
2235
|
+
body: r.optional(r.never()),
|
|
2236
|
+
path: r.object({
|
|
2237
|
+
id: r.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
|
|
2248
2238
|
}),
|
|
2249
|
-
query:
|
|
2239
|
+
query: r.optional(r.never())
|
|
2250
2240
|
});
|
|
2251
|
-
const
|
|
2241
|
+
const dt = Fe, ct = ar, mt = a.shape.format, yt = a.shape.fps.unwrap(), gt = a.shape.resolution, bt = a.shape.aspectRatio, ht = r.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);
|
|
2252
2242
|
export {
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2243
|
+
st as AssetSchema,
|
|
2244
|
+
nt as AudioAssetSchema,
|
|
2245
|
+
Kr as CaptionAssetSchema,
|
|
2246
|
+
ut as ClipSchema,
|
|
2247
|
+
Mr as CropSchema,
|
|
2248
|
+
dt as DestinationSchema,
|
|
2249
|
+
ft as EditSchema,
|
|
2250
|
+
ht as HexColorSchema,
|
|
2251
|
+
Vr as HtmlAssetSchema,
|
|
2252
|
+
Qr as ImageAssetSchema,
|
|
2253
|
+
tt as KeyframeSchema,
|
|
2254
|
+
Wr as LumaAssetSchema,
|
|
2255
|
+
it as OffsetSchema,
|
|
2256
|
+
bt as OutputAspectRatioSchema,
|
|
2257
|
+
mt as OutputFormatSchema,
|
|
2258
|
+
yt as OutputFpsSchema,
|
|
2259
|
+
gt as OutputResolutionSchema,
|
|
2270
2260
|
a as OutputSchema,
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2261
|
+
ct as OutputSizeSchema,
|
|
2262
|
+
Xr as RichTextAssetSchema,
|
|
2263
|
+
Yr as ShapeAssetSchema,
|
|
2264
|
+
vr as SvgAssetSchema,
|
|
2265
|
+
et as TextAssetSchema,
|
|
2266
|
+
pt as TimelineSchema,
|
|
2267
|
+
lt as TrackSchema,
|
|
2268
|
+
ot as TransformationSchema,
|
|
2269
|
+
rt as TransitionSchema,
|
|
2270
|
+
tt as TweenSchema,
|
|
2271
|
+
at as VideoAssetSchema
|
|
2282
2272
|
};
|