@shotstack/shotstack-studio 2.0.0-beta.3 → 2.0.0-beta.4
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 +264 -5616
- package/dist/schema/index.cjs +1 -1
- package/dist/schema/index.d.ts +264 -5616
- package/dist/schema/index.mjs +1440 -408
- package/dist/shotstack-studio.es.js +9334 -11180
- package/dist/shotstack-studio.umd.js +110 -110
- package/package.json +3 -2
package/dist/schema/index.mjs
CHANGED
|
@@ -1,413 +1,1445 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
e.unknown();
|
|
3
|
+
e.unknown();
|
|
4
|
+
e.unknown();
|
|
5
|
+
e.unknown();
|
|
6
|
+
e.unknown();
|
|
7
|
+
e.unknown();
|
|
8
|
+
e.unknown();
|
|
9
|
+
e.unknown();
|
|
10
|
+
e.unknown();
|
|
11
|
+
e.unknown();
|
|
12
|
+
e.unknown();
|
|
13
|
+
e.unknown();
|
|
14
|
+
e.unknown();
|
|
15
|
+
e.unknown();
|
|
16
|
+
e.unknown();
|
|
17
|
+
e.unknown();
|
|
18
|
+
const D = e.object({
|
|
19
|
+
color: e.optional(e.string()),
|
|
20
|
+
opacity: e.optional(e.number()),
|
|
21
|
+
padding: e.optional(e.int()),
|
|
22
|
+
borderRadius: e.optional(e.int())
|
|
23
|
+
}), N = e.object({
|
|
24
|
+
family: e.optional(e.string()),
|
|
25
|
+
color: e.optional(e.string()),
|
|
26
|
+
opacity: e.optional(e.number()),
|
|
27
|
+
size: e.optional(e.int()),
|
|
28
|
+
lineHeight: e.optional(e.number()),
|
|
29
|
+
stroke: e.optional(e.string()),
|
|
30
|
+
strokeWidth: e.optional(e.number())
|
|
31
|
+
}), L = e.object({
|
|
32
|
+
top: e.optional(e.number()),
|
|
33
|
+
left: e.optional(e.number()),
|
|
34
|
+
right: e.optional(e.number())
|
|
35
|
+
}), l = e.object({
|
|
36
|
+
type: e.enum(["caption"]),
|
|
37
|
+
src: e.string(),
|
|
38
|
+
font: e.optional(N),
|
|
39
|
+
background: e.optional(D),
|
|
40
|
+
margin: e.optional(L),
|
|
41
|
+
trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
|
|
42
|
+
speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10)))
|
|
43
|
+
}), At = l, G = e.object({
|
|
44
|
+
color: e.optional(e.string()),
|
|
45
|
+
threshold: e.optional(e.int().gte(0).lte(250)),
|
|
46
|
+
halo: e.optional(e.int().gte(0).lte(250))
|
|
47
|
+
}), I = e.object({
|
|
48
|
+
type: e.enum(["text-to-avatar"]),
|
|
49
|
+
text: e.string(),
|
|
50
|
+
avatar: e.enum(["jack", "lana", "lily", "matt", "rian"]),
|
|
51
|
+
background: e.optional(e.string())
|
|
52
|
+
}), C = e.object({
|
|
53
|
+
type: e.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")
|
|
54
|
+
}).and(I), B = e.object({
|
|
55
|
+
provider: e.enum(["d-id"]),
|
|
56
|
+
options: C
|
|
57
|
+
}), z = e.object({
|
|
58
|
+
type: e.enum(["text-to-speech"]),
|
|
59
|
+
text: e.string(),
|
|
60
|
+
voice: e.enum([
|
|
61
|
+
"Adam",
|
|
62
|
+
"Antoni",
|
|
63
|
+
"Arnold",
|
|
64
|
+
"Bella",
|
|
65
|
+
"Domi",
|
|
66
|
+
"Elli",
|
|
67
|
+
"Josh",
|
|
68
|
+
"Rachel",
|
|
69
|
+
"Sam"
|
|
70
|
+
])
|
|
71
|
+
}), E = e.object({
|
|
72
|
+
type: e.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")
|
|
73
|
+
}).and(z), q = e.object({
|
|
74
|
+
provider: e.enum(["elevenlabs"]),
|
|
75
|
+
options: E
|
|
76
|
+
}), P = e.object({
|
|
77
|
+
type: e.enum(["text-to-avatar"]),
|
|
78
|
+
text: e.string(),
|
|
79
|
+
avatar: e.enum([
|
|
80
|
+
"Angela",
|
|
81
|
+
"Bill",
|
|
82
|
+
"Daisy",
|
|
83
|
+
"Derek",
|
|
84
|
+
"Eva",
|
|
85
|
+
"Jake",
|
|
86
|
+
"Jeff",
|
|
87
|
+
"Jerome",
|
|
88
|
+
"Joon",
|
|
89
|
+
"Kayla",
|
|
90
|
+
"Kent",
|
|
91
|
+
"Luna",
|
|
92
|
+
"Mark",
|
|
93
|
+
"Matthew",
|
|
94
|
+
"Monica",
|
|
95
|
+
"Peter",
|
|
96
|
+
"Selina",
|
|
97
|
+
"Tanya",
|
|
98
|
+
"Thomas",
|
|
99
|
+
"Tina",
|
|
100
|
+
"Tyler",
|
|
101
|
+
"Vanessa",
|
|
102
|
+
"Vera",
|
|
103
|
+
"Wilson",
|
|
104
|
+
"Zoey"
|
|
71
105
|
]),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
background:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}).
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
})
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
})
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
})
|
|
207
|
-
type:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
106
|
+
voice: e.enum([
|
|
107
|
+
"Abbi - Natural",
|
|
108
|
+
"Adam - Natural",
|
|
109
|
+
"Aiston - Friendly",
|
|
110
|
+
"Alice - Newscaster",
|
|
111
|
+
"Alison - Cheerful",
|
|
112
|
+
"Amber - Friendly",
|
|
113
|
+
"Amy - Warm",
|
|
114
|
+
"Ana - Cheerful",
|
|
115
|
+
"Antoni - Friendly",
|
|
116
|
+
"Aria - Newscaster",
|
|
117
|
+
"Arnold - Cheerful",
|
|
118
|
+
"Arthur - Natural",
|
|
119
|
+
"Bella - Friendly",
|
|
120
|
+
"Belle - Natural",
|
|
121
|
+
"Brandon - Warm",
|
|
122
|
+
"Brian - Natural",
|
|
123
|
+
"Bruce - Natural",
|
|
124
|
+
"Cerise - Cheerful",
|
|
125
|
+
"Christopher - Calm",
|
|
126
|
+
"Clara - Professional",
|
|
127
|
+
"Connor - Natural",
|
|
128
|
+
"Dahlia - Friendly",
|
|
129
|
+
"Davis - Professional",
|
|
130
|
+
"Dean - Natural",
|
|
131
|
+
"Delbert - Cheerful",
|
|
132
|
+
"Edward - Friendly",
|
|
133
|
+
"Elaine - Calm",
|
|
134
|
+
"Emily - Natural",
|
|
135
|
+
"Emma - Newscaster",
|
|
136
|
+
"Eric - Newscaster",
|
|
137
|
+
"Grace - Natural",
|
|
138
|
+
"Hailey - Calm",
|
|
139
|
+
"Indira - Cheerful",
|
|
140
|
+
"Isabella - Cheerful",
|
|
141
|
+
"Jacob - Natural",
|
|
142
|
+
"Jahmai - Friendly",
|
|
143
|
+
"Jane - Serious",
|
|
144
|
+
"Jason - Serious",
|
|
145
|
+
"Jelle - Friendly",
|
|
146
|
+
"Jen - Natural",
|
|
147
|
+
"Jenny - Professional",
|
|
148
|
+
"Jodi - Cheerful",
|
|
149
|
+
"Joey - Calm",
|
|
150
|
+
"Johan - Friendly",
|
|
151
|
+
"Josie - Cheerful",
|
|
152
|
+
"Keanan - Natural",
|
|
153
|
+
"Keith - Cheerful",
|
|
154
|
+
"Kellie - Friendly",
|
|
155
|
+
"Lauren - Friendly",
|
|
156
|
+
"Leah - Natural",
|
|
157
|
+
"Liam - Professional",
|
|
158
|
+
"Libby - Natural",
|
|
159
|
+
"Lily - Professional",
|
|
160
|
+
"Lucas - Natural",
|
|
161
|
+
"Luke - Professional",
|
|
162
|
+
"Luna - Natural",
|
|
163
|
+
"Marieke - Natural",
|
|
164
|
+
"Matthew - Professional",
|
|
165
|
+
"Michelle - Natural",
|
|
166
|
+
"Mitchell - Natural",
|
|
167
|
+
"Molly - Newscaster",
|
|
168
|
+
"Monica - Calm",
|
|
169
|
+
"Natasha - Professional",
|
|
170
|
+
"Neerja - Newscaster",
|
|
171
|
+
"Noah - Serious",
|
|
172
|
+
"Oliver - Newscaster",
|
|
173
|
+
"Olivia - Calm",
|
|
174
|
+
"Paul - Natural",
|
|
175
|
+
"Prabhat - Natural",
|
|
176
|
+
"Raveena - Natural",
|
|
177
|
+
"Rudi - Friendly",
|
|
178
|
+
"Ryan - Professional",
|
|
179
|
+
"Sam - Natural",
|
|
180
|
+
"Sara - Cheerful",
|
|
181
|
+
"Sherry - Friendly",
|
|
182
|
+
"Sonia - Warm",
|
|
183
|
+
"Thomas - Natural",
|
|
184
|
+
"Todd - Professional",
|
|
185
|
+
"Tony - Professional",
|
|
186
|
+
"Tracy - Cheerful",
|
|
187
|
+
"Wayne - Natural",
|
|
188
|
+
"Wilder - Natural",
|
|
189
|
+
"Wille - Natural",
|
|
190
|
+
"William - Friendly"
|
|
191
|
+
]),
|
|
192
|
+
avatarStyle: e.optional(e.enum(["normal", "circle"])),
|
|
193
|
+
background: e.optional(e.string()),
|
|
194
|
+
ratio: e.optional(e.enum(["16:9", "9:16"])),
|
|
195
|
+
test: e.optional(e.boolean())
|
|
196
|
+
}), _ = e.object({
|
|
197
|
+
type: e.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")
|
|
198
|
+
}).and(P), U = e.object({
|
|
199
|
+
provider: e.enum(["heygen"]),
|
|
200
|
+
options: _
|
|
201
|
+
}), $ = e.object({
|
|
202
|
+
type: e.enum(["text-generator"]),
|
|
203
|
+
prompt: e.string(),
|
|
204
|
+
model: e.enum(["gpt-3.5-turbo", "gpt-4"]),
|
|
205
|
+
systemPrompt: e.optional(e.string())
|
|
206
|
+
}), J = e.object({
|
|
207
|
+
type: e.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")
|
|
208
|
+
}).and($), Z = e.object({
|
|
209
|
+
provider: e.enum(["openai"]),
|
|
210
|
+
options: J
|
|
211
|
+
}), M = e.object({
|
|
212
|
+
status: e.string(),
|
|
213
|
+
title: e.string(),
|
|
214
|
+
detail: e.string()
|
|
215
|
+
});
|
|
216
|
+
e.object({
|
|
217
|
+
errors: e.array(M)
|
|
218
|
+
});
|
|
219
|
+
const K = e.object({
|
|
220
|
+
owner: e.string(),
|
|
221
|
+
provider: e.enum(["shotstack", "elevenlabs", "heygen", "d-id"]),
|
|
222
|
+
type: e.enum(["text-to-speech", "text-to-avatar"]),
|
|
223
|
+
url: e.optional(e.string()),
|
|
224
|
+
status: e.enum(["queued", "processing", "saving", "done", "failed"]),
|
|
225
|
+
created: e.string(),
|
|
226
|
+
updated: e.string()
|
|
227
|
+
}), V = e.object({
|
|
228
|
+
type: e.string(),
|
|
229
|
+
id: e.string(),
|
|
230
|
+
attributes: K
|
|
231
|
+
});
|
|
232
|
+
e.object({
|
|
233
|
+
data: V
|
|
234
|
+
});
|
|
235
|
+
const H = e.object({
|
|
236
|
+
type: e.enum(["image-to-video"]),
|
|
237
|
+
imageUrl: e.string(),
|
|
238
|
+
guidanceScale: e.optional(e.number()).default(1.8),
|
|
239
|
+
motion: e.optional(e.int()).default(127)
|
|
240
|
+
}), Q = e.object({
|
|
241
|
+
type: e.enum(["text-generator"]),
|
|
242
|
+
prompt: e.string()
|
|
243
|
+
}), W = e.object({
|
|
244
|
+
type: e.enum(["text-to-image"]),
|
|
245
|
+
prompt: e.string(),
|
|
246
|
+
width: e.int(),
|
|
247
|
+
height: e.int()
|
|
248
|
+
}), X = e.object({
|
|
249
|
+
type: e.enum(["text-to-speech"]),
|
|
250
|
+
text: e.string(),
|
|
251
|
+
voice: e.enum([
|
|
252
|
+
"Hala",
|
|
253
|
+
"Lisa",
|
|
254
|
+
"Arlet",
|
|
255
|
+
"Hiujin",
|
|
256
|
+
"Zhiyu",
|
|
257
|
+
"Sofie",
|
|
258
|
+
"Laura",
|
|
259
|
+
"Olivia",
|
|
260
|
+
"Amy",
|
|
261
|
+
"Emma",
|
|
262
|
+
"Brian",
|
|
263
|
+
"Arthur",
|
|
264
|
+
"Kajal",
|
|
265
|
+
"Niamh",
|
|
266
|
+
"Aria",
|
|
267
|
+
"Ayanda",
|
|
268
|
+
"Ivy",
|
|
269
|
+
"Joanna",
|
|
270
|
+
"Kendra",
|
|
271
|
+
"Kimberly",
|
|
272
|
+
"Salli",
|
|
273
|
+
"Joey",
|
|
274
|
+
"Justin",
|
|
275
|
+
"Kevin",
|
|
276
|
+
"Matthew",
|
|
277
|
+
"Ruth",
|
|
278
|
+
"Stephen",
|
|
279
|
+
"Suvi",
|
|
280
|
+
"Léa",
|
|
281
|
+
"Rémi",
|
|
282
|
+
"Gabrielle",
|
|
283
|
+
"Liam",
|
|
284
|
+
"Vicki",
|
|
285
|
+
"Daniel",
|
|
286
|
+
"Hannah",
|
|
287
|
+
"Kajal",
|
|
288
|
+
"Bianca",
|
|
289
|
+
"Adriano",
|
|
290
|
+
"Takumi",
|
|
291
|
+
"Kazuha",
|
|
292
|
+
"Tomoko",
|
|
293
|
+
"Seoyeon",
|
|
294
|
+
"Ida",
|
|
295
|
+
"Ola",
|
|
296
|
+
"Camila",
|
|
297
|
+
"Vitória",
|
|
298
|
+
"Vitoria",
|
|
299
|
+
"Thiago",
|
|
300
|
+
"Inês",
|
|
301
|
+
"Ines",
|
|
302
|
+
"Lucia",
|
|
303
|
+
"Sergio",
|
|
304
|
+
"Mia",
|
|
305
|
+
"Andrés",
|
|
306
|
+
"Lupe",
|
|
307
|
+
"Pedro",
|
|
308
|
+
"Elin"
|
|
309
|
+
]),
|
|
310
|
+
language: e.optional(e.enum([
|
|
311
|
+
"cmn-CN",
|
|
312
|
+
"da-DK",
|
|
313
|
+
"de-DE",
|
|
314
|
+
"en-AU",
|
|
315
|
+
"en-GB",
|
|
316
|
+
"en-IN",
|
|
317
|
+
"en-US",
|
|
318
|
+
"es-ES",
|
|
319
|
+
"es-MX",
|
|
320
|
+
"es-US",
|
|
321
|
+
"fr-CA",
|
|
322
|
+
"fr-FR",
|
|
323
|
+
"it-IT",
|
|
324
|
+
"ja-JP",
|
|
325
|
+
"hi-IN",
|
|
326
|
+
"ko-KR",
|
|
327
|
+
"nb-NO",
|
|
328
|
+
"nl-NL",
|
|
329
|
+
"pl-PL",
|
|
330
|
+
"pt-BR",
|
|
331
|
+
"pt-PT",
|
|
332
|
+
"sv-SE",
|
|
333
|
+
"en-NZ",
|
|
334
|
+
"en-ZA",
|
|
335
|
+
"ca-ES",
|
|
336
|
+
"de-AT",
|
|
337
|
+
"yue-CN",
|
|
338
|
+
"ar-AE",
|
|
339
|
+
"fi-FI"
|
|
340
|
+
])),
|
|
341
|
+
newscaster: e.optional(e.boolean()).default(!1)
|
|
342
|
+
}), Y = e.union([
|
|
343
|
+
e.object({
|
|
344
|
+
type: e.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")
|
|
345
|
+
}).and(X),
|
|
346
|
+
e.object({
|
|
347
|
+
type: e.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")
|
|
348
|
+
}).and(W),
|
|
349
|
+
e.object({
|
|
350
|
+
type: e.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")
|
|
351
|
+
}).and(Q),
|
|
352
|
+
e.object({
|
|
353
|
+
type: e.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")
|
|
354
|
+
}).and(H)
|
|
355
|
+
]), ee = e.object({
|
|
356
|
+
provider: e.enum(["shotstack"]),
|
|
357
|
+
options: Y
|
|
358
|
+
}), te = e.object({
|
|
359
|
+
type: e.enum(["text-to-image"]),
|
|
360
|
+
prompt: e.string(),
|
|
361
|
+
engine: e.optional(e.enum([
|
|
362
|
+
"stable-diffusion-xl-1024-v0-9",
|
|
363
|
+
"stable-diffusion-xl-1024-v1-0",
|
|
364
|
+
"stable-diffusion-v1-6",
|
|
365
|
+
"stable-diffusion-512-v2-1",
|
|
366
|
+
"stable-diffusion-xl-beta-v2-2-2"
|
|
367
|
+
])),
|
|
368
|
+
width: e.int(),
|
|
369
|
+
height: e.int(),
|
|
370
|
+
steps: e.optional(e.int()).default(30),
|
|
371
|
+
seed: e.optional(e.int()).default(0),
|
|
372
|
+
cfgScale: e.optional(e.number()).default(7),
|
|
373
|
+
stylePreset: e.optional(e.enum([
|
|
374
|
+
"3d-model",
|
|
375
|
+
"analog-film",
|
|
376
|
+
"anime",
|
|
377
|
+
"cinematic",
|
|
378
|
+
"comic-book",
|
|
379
|
+
"digital-art",
|
|
380
|
+
"enhance",
|
|
381
|
+
"fantasy-art",
|
|
382
|
+
"isometric",
|
|
383
|
+
"line-art",
|
|
384
|
+
"low-poly",
|
|
385
|
+
"modeling-compound",
|
|
386
|
+
"neon-punk",
|
|
387
|
+
"origami",
|
|
388
|
+
"photographic",
|
|
389
|
+
"pixel-art",
|
|
390
|
+
"tile-texture"
|
|
391
|
+
]))
|
|
392
|
+
}), oe = e.object({
|
|
393
|
+
type: e.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")
|
|
394
|
+
}).and(te), ne = e.object({
|
|
395
|
+
provider: e.enum(["stability-ai"]),
|
|
396
|
+
options: oe
|
|
397
|
+
}), ae = e.union([
|
|
398
|
+
e.object({
|
|
399
|
+
provider: e.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")
|
|
400
|
+
}).and(ee),
|
|
401
|
+
e.object({
|
|
402
|
+
provider: e.literal("didGeneratedAsset_DIDGeneratedAsset")
|
|
403
|
+
}).and(B),
|
|
404
|
+
e.object({
|
|
405
|
+
provider: e.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")
|
|
406
|
+
}).and(q),
|
|
407
|
+
e.object({
|
|
408
|
+
provider: e.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")
|
|
409
|
+
}).and(U),
|
|
410
|
+
e.object({
|
|
411
|
+
provider: e.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")
|
|
412
|
+
}).and(Z),
|
|
413
|
+
e.object({
|
|
414
|
+
provider: e.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")
|
|
415
|
+
}).and(ne)
|
|
416
|
+
]), n = e.object({
|
|
417
|
+
top: e.optional(e.number().gte(0).lte(1)),
|
|
418
|
+
bottom: e.optional(e.number().gte(0).lte(1)),
|
|
419
|
+
left: e.optional(e.number().gte(0).lte(1)),
|
|
420
|
+
right: e.optional(e.number().gte(0).lte(1))
|
|
421
|
+
}), jt = n, ie = e.object({
|
|
422
|
+
bucket: e.string(),
|
|
423
|
+
prefix: e.optional(e.string()),
|
|
424
|
+
filename: e.optional(e.string())
|
|
425
|
+
}), se = e.object({
|
|
426
|
+
provider: e.string().default("google-cloud-storage"),
|
|
427
|
+
options: e.optional(ie)
|
|
428
|
+
}), re = e.object({
|
|
429
|
+
folderId: e.string(),
|
|
430
|
+
filename: e.optional(e.string())
|
|
431
|
+
}), le = e.object({
|
|
432
|
+
provider: e.string().default("google-drive"),
|
|
433
|
+
options: re
|
|
434
|
+
}), pe = e.object({
|
|
435
|
+
playbackPolicy: e.optional(e.array(e.enum(["public", "signed"]))),
|
|
436
|
+
passthrough: e.optional(e.string().max(255))
|
|
437
|
+
}), ce = e.object({
|
|
438
|
+
provider: e.string().default("mux"),
|
|
439
|
+
options: e.optional(pe)
|
|
440
|
+
}), ue = e.object({
|
|
441
|
+
region: e.string(),
|
|
442
|
+
bucket: e.string(),
|
|
443
|
+
prefix: e.optional(e.string()),
|
|
444
|
+
filename: e.optional(e.string()),
|
|
445
|
+
acl: e.optional(e.string())
|
|
446
|
+
}), me = e.object({
|
|
447
|
+
provider: e.string().default("s3"),
|
|
448
|
+
options: e.optional(ue)
|
|
449
|
+
}), de = e.object({
|
|
450
|
+
provider: e.string().default("shotstack"),
|
|
451
|
+
exclude: e.optional(e.boolean())
|
|
452
|
+
}), he = e.object({
|
|
453
|
+
title: e.optional(e.string().max(150)),
|
|
454
|
+
privacyLevel: e.optional(e.enum(["public", "friends", "private"])),
|
|
455
|
+
disableDuet: e.optional(e.boolean()).default(!1),
|
|
456
|
+
disableStitch: e.optional(e.boolean()).default(!1),
|
|
457
|
+
disableComment: e.optional(e.boolean()).default(!1)
|
|
458
|
+
}), ge = e.object({
|
|
459
|
+
provider: e.string().default("tiktok"),
|
|
460
|
+
options: e.optional(he)
|
|
461
|
+
}), be = e.object({
|
|
462
|
+
view: e.optional(e.enum(["anybody", "nobody", "contacts", "password", "unlisted"])),
|
|
463
|
+
embed: e.optional(e.enum(["public", "private", "whitelist"])),
|
|
464
|
+
comments: e.optional(e.enum(["anybody", "nobody", "contacts"]))
|
|
465
|
+
}), fe = e.object({
|
|
466
|
+
name: e.optional(e.string()),
|
|
467
|
+
description: e.optional(e.string()),
|
|
468
|
+
privacy: e.optional(be),
|
|
469
|
+
folderUri: e.optional(e.string())
|
|
470
|
+
}), Se = e.object({
|
|
471
|
+
provider: e.string().default("vimeo"),
|
|
472
|
+
options: e.optional(fe)
|
|
473
|
+
}), i = e.union([
|
|
474
|
+
e.object({
|
|
475
|
+
destinations: e.optional(e.literal("shotstackDestination_ShotstackDestination"))
|
|
476
|
+
}).and(de),
|
|
477
|
+
e.object({
|
|
478
|
+
destinations: e.optional(e.literal("muxDestination_MuxDestination"))
|
|
479
|
+
}).and(ce),
|
|
480
|
+
e.object({
|
|
481
|
+
destinations: e.optional(e.literal("s3Destination_S3Destination"))
|
|
482
|
+
}).and(me),
|
|
483
|
+
e.object({
|
|
484
|
+
destinations: e.optional(e.literal("googleCloudStorageDestination_GoogleCloudStorageDestination"))
|
|
485
|
+
}).and(se),
|
|
486
|
+
e.object({
|
|
487
|
+
destinations: e.optional(e.literal("googleDriveDestination_GoogleDriveDestination"))
|
|
488
|
+
}).and(le),
|
|
489
|
+
e.object({
|
|
490
|
+
destinations: e.optional(e.literal("vimeoDestination_VimeoDestination"))
|
|
491
|
+
}).and(Se),
|
|
492
|
+
e.object({
|
|
493
|
+
destinations: e.optional(e.literal("tiktokDestination_TiktokDestination"))
|
|
494
|
+
}).and(ge)
|
|
495
|
+
]), ye = i, Ae = e.object({
|
|
496
|
+
horizontal: e.optional(e.boolean()),
|
|
497
|
+
vertical: e.optional(e.boolean())
|
|
498
|
+
}), je = e.object({
|
|
499
|
+
src: e.string()
|
|
500
|
+
}), p = e.object({
|
|
501
|
+
type: e.enum(["html"]),
|
|
502
|
+
html: e.string(),
|
|
503
|
+
css: e.optional(e.string()),
|
|
504
|
+
width: e.optional(e.int()),
|
|
505
|
+
height: e.optional(e.int()),
|
|
506
|
+
background: e.optional(e.string()),
|
|
507
|
+
position: e.optional(e.enum([
|
|
508
|
+
"top",
|
|
509
|
+
"topRight",
|
|
510
|
+
"right",
|
|
511
|
+
"bottomRight",
|
|
512
|
+
"bottom",
|
|
513
|
+
"bottomLeft",
|
|
514
|
+
"left",
|
|
515
|
+
"topLeft",
|
|
516
|
+
"center"
|
|
517
|
+
]))
|
|
518
|
+
}), wt = p, c = e.object({
|
|
519
|
+
type: e.enum(["image"]),
|
|
520
|
+
src: e.string(),
|
|
521
|
+
crop: e.optional(n)
|
|
522
|
+
}), Tt = c, we = e.object({
|
|
523
|
+
type: e.optional(e.enum(["image-to-video"])),
|
|
524
|
+
src: e.optional(e.string()),
|
|
525
|
+
prompt: e.optional(e.string()),
|
|
526
|
+
aspectRatio: e.optional(e.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
|
|
527
|
+
speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))),
|
|
528
|
+
crop: e.optional(n)
|
|
529
|
+
}), Te = e.object({
|
|
530
|
+
preset: e.enum([
|
|
531
|
+
"conference",
|
|
532
|
+
"interview",
|
|
533
|
+
"lecture",
|
|
534
|
+
"meeting",
|
|
535
|
+
"mobile_phone",
|
|
536
|
+
"music",
|
|
537
|
+
"podcast",
|
|
538
|
+
"studio",
|
|
539
|
+
"voice_over"
|
|
540
|
+
])
|
|
541
|
+
}), xe = e.object({
|
|
542
|
+
provider: e.string().default("dolby"),
|
|
543
|
+
options: Te
|
|
544
|
+
}), ke = e.object({
|
|
545
|
+
enhancement: e.literal("dolbyEnhancement_DolbyEnhancement")
|
|
546
|
+
}).and(xe), ve = e.object({
|
|
547
|
+
audio: e.optional(ke)
|
|
548
|
+
}), Fe = e.object({
|
|
549
|
+
status: e.string(),
|
|
550
|
+
title: e.string(),
|
|
551
|
+
detail: e.string()
|
|
552
|
+
});
|
|
553
|
+
e.object({
|
|
554
|
+
errors: e.array(Fe)
|
|
555
|
+
});
|
|
556
|
+
const Oe = e.object({
|
|
557
|
+
type: e.string(),
|
|
558
|
+
id: e.string()
|
|
559
|
+
});
|
|
560
|
+
e.object({
|
|
561
|
+
data: Oe
|
|
562
|
+
});
|
|
563
|
+
const Re = e.object({
|
|
564
|
+
id: e.string(),
|
|
565
|
+
url: e.string(),
|
|
566
|
+
expires: e.string()
|
|
567
|
+
}), De = e.object({
|
|
568
|
+
type: e.string(),
|
|
569
|
+
id: e.string(),
|
|
570
|
+
attributes: Re
|
|
571
|
+
});
|
|
572
|
+
e.object({
|
|
573
|
+
data: De
|
|
574
|
+
});
|
|
575
|
+
const Ne = e.object({
|
|
576
|
+
speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))),
|
|
577
|
+
preservePitch: e.optional(e.boolean())
|
|
578
|
+
}), Le = e.object({
|
|
579
|
+
format: e.optional(e.enum(["srt", "vtt"]))
|
|
580
|
+
}), u = e.object({
|
|
581
|
+
type: e.enum(["luma"]),
|
|
582
|
+
src: e.string(),
|
|
583
|
+
trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()))
|
|
584
|
+
}), xt = u, m = e.object({
|
|
585
|
+
find: e.string(),
|
|
586
|
+
replace: e.unknown()
|
|
587
|
+
}), Ge = e.object({
|
|
588
|
+
capture: e.number()
|
|
589
|
+
}), Ie = e.object({
|
|
590
|
+
start: e.optional(e.number().gte(0)),
|
|
591
|
+
length: e.optional(e.number().gte(0))
|
|
592
|
+
}), Ce = e.object({
|
|
593
|
+
id: e.string(),
|
|
594
|
+
owner: e.string(),
|
|
595
|
+
region: e.optional(e.string()),
|
|
596
|
+
renderId: e.optional(e.string()),
|
|
597
|
+
providerId: e.optional(e.string()),
|
|
598
|
+
filename: e.optional(e.string()),
|
|
599
|
+
url: e.optional(e.string()),
|
|
600
|
+
status: e.enum(["importing", "ready", "failed", "deleted"]),
|
|
601
|
+
created: e.optional(e.string()),
|
|
602
|
+
updated: e.optional(e.string())
|
|
603
|
+
}), d = e.object({
|
|
604
|
+
type: e.string(),
|
|
605
|
+
attributes: Ce
|
|
606
|
+
});
|
|
607
|
+
e.object({
|
|
608
|
+
data: e.array(d)
|
|
609
|
+
});
|
|
610
|
+
e.object({
|
|
611
|
+
data: d
|
|
612
|
+
});
|
|
613
|
+
e.object({
|
|
614
|
+
success: e.boolean(),
|
|
615
|
+
message: e.string(),
|
|
616
|
+
response: e.record(e.string(), e.unknown())
|
|
617
|
+
});
|
|
618
|
+
const Be = e.object({
|
|
619
|
+
message: e.string(),
|
|
620
|
+
id: e.string()
|
|
621
|
+
});
|
|
622
|
+
e.object({
|
|
623
|
+
success: e.boolean(),
|
|
624
|
+
message: e.string(),
|
|
625
|
+
response: Be
|
|
626
|
+
});
|
|
627
|
+
const ze = e.object({
|
|
628
|
+
id: e.string(),
|
|
629
|
+
name: e.string(),
|
|
630
|
+
created: e.optional(e.string()),
|
|
631
|
+
updated: e.optional(e.string())
|
|
632
|
+
}), Ee = e.object({
|
|
633
|
+
owner: e.string(),
|
|
634
|
+
templates: e.array(ze)
|
|
635
|
+
});
|
|
636
|
+
e.object({
|
|
637
|
+
success: e.boolean(),
|
|
638
|
+
message: e.string(),
|
|
639
|
+
response: Ee
|
|
640
|
+
});
|
|
641
|
+
const qe = e.object({
|
|
642
|
+
message: e.string(),
|
|
643
|
+
id: e.string()
|
|
644
|
+
});
|
|
645
|
+
e.object({
|
|
646
|
+
success: e.boolean(),
|
|
647
|
+
message: e.string(),
|
|
648
|
+
response: qe
|
|
649
|
+
});
|
|
650
|
+
const Pe = e.object({
|
|
651
|
+
horizontal: e.optional(e.enum(["left", "center", "right"])),
|
|
652
|
+
vertical: e.optional(e.enum(["top", "middle", "bottom"]))
|
|
653
|
+
}), _e = e.object({
|
|
654
|
+
preset: e.enum([
|
|
655
|
+
"fadeIn",
|
|
656
|
+
"slideIn",
|
|
657
|
+
"typewriter",
|
|
658
|
+
"ascend",
|
|
659
|
+
"shift",
|
|
660
|
+
"movingLetters"
|
|
661
|
+
]),
|
|
662
|
+
speed: e.optional(e.number().gte(0.1).lte(10)).default(1),
|
|
663
|
+
duration: e.optional(e.number().gte(0.1).lte(30)),
|
|
664
|
+
style: e.optional(e.enum(["character", "word"])),
|
|
665
|
+
direction: e.optional(e.enum(["left", "right", "up", "down"]))
|
|
666
|
+
}), Ue = e.object({
|
|
667
|
+
color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
668
|
+
opacity: e.optional(e.number().gte(0).lte(1)).default(1),
|
|
669
|
+
borderRadius: e.optional(e.number().gte(0)).default(0)
|
|
670
|
+
}), $e = e.object({
|
|
671
|
+
width: e.optional(e.number().gte(0)).default(0),
|
|
672
|
+
color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
673
|
+
opacity: e.optional(e.number().gte(0).lte(1)).default(1),
|
|
674
|
+
radius: e.optional(e.number().gte(0)).default(0)
|
|
675
|
+
}), Je = e.object({
|
|
676
|
+
type: e.optional(e.enum(["linear", "radial"])),
|
|
677
|
+
angle: e.optional(e.number().gte(0).lte(360)).default(0),
|
|
678
|
+
stops: e.array(e.object({
|
|
679
|
+
offset: e.number().gte(0).lte(1),
|
|
680
|
+
color: e.string().regex(/^#[A-Fa-f0-9]{6}$/)
|
|
681
|
+
})).min(2)
|
|
682
|
+
}), Ze = e.object({
|
|
683
|
+
top: e.optional(e.number().gte(0)).default(0),
|
|
684
|
+
right: e.optional(e.number().gte(0)).default(0),
|
|
685
|
+
bottom: e.optional(e.number().gte(0)).default(0),
|
|
686
|
+
left: e.optional(e.number().gte(0)).default(0)
|
|
687
|
+
}), Me = e.object({
|
|
688
|
+
offsetX: e.optional(e.number()).default(0),
|
|
689
|
+
offsetY: e.optional(e.number()).default(0),
|
|
690
|
+
blur: e.optional(e.number().gte(0)).default(0),
|
|
691
|
+
color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
692
|
+
opacity: e.optional(e.number().gte(0).lte(1)).default(0.5)
|
|
693
|
+
}), Ke = e.object({
|
|
694
|
+
width: e.optional(e.number().gte(0)).default(0),
|
|
695
|
+
color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
696
|
+
opacity: e.optional(e.number().gte(0).lte(1)).default(1)
|
|
697
|
+
}), Ve = e.object({
|
|
698
|
+
family: e.optional(e.string()).default("Open Sans"),
|
|
699
|
+
size: e.optional(e.int().gte(1).lte(500)).default(24),
|
|
700
|
+
weight: e.optional(e.unknown()).default("400"),
|
|
701
|
+
color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
|
|
702
|
+
opacity: e.optional(e.number().gte(0).lte(1)).default(1),
|
|
703
|
+
background: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
704
|
+
stroke: e.optional(Ke)
|
|
705
|
+
}), He = e.object({
|
|
706
|
+
letterSpacing: e.optional(e.number()).default(0),
|
|
707
|
+
lineHeight: e.optional(e.number().gte(0).lte(10)).default(1.2),
|
|
708
|
+
textTransform: e.optional(e.enum(["none", "uppercase", "lowercase", "capitalize"])),
|
|
709
|
+
textDecoration: e.optional(e.enum(["none", "underline", "line-through"])),
|
|
710
|
+
gradient: e.optional(Je)
|
|
711
|
+
}), h = e.object({
|
|
712
|
+
type: e.enum(["rich-text"]),
|
|
713
|
+
text: e.string().max(5e3),
|
|
714
|
+
font: e.optional(Ve),
|
|
715
|
+
style: e.optional(He),
|
|
716
|
+
shadow: e.optional(Me),
|
|
717
|
+
background: e.optional(Ue),
|
|
718
|
+
border: e.optional($e),
|
|
719
|
+
padding: e.optional(e.union([e.number().gte(0), Ze])),
|
|
720
|
+
align: e.optional(Pe),
|
|
721
|
+
animation: e.optional(_e)
|
|
722
|
+
}), kt = h, Qe = e.object({
|
|
723
|
+
id: e.optional(e.string()),
|
|
724
|
+
owner: e.optional(e.string()),
|
|
725
|
+
status: e.optional(e.enum(["queued", "failed"])),
|
|
726
|
+
created: e.optional(e.string())
|
|
727
|
+
}), We = e.object({
|
|
728
|
+
type: e.optional(e.string()),
|
|
729
|
+
attributes: e.optional(Qe)
|
|
730
|
+
});
|
|
731
|
+
e.object({
|
|
732
|
+
data: We
|
|
733
|
+
});
|
|
734
|
+
const Xe = e.object({
|
|
735
|
+
url: e.string(),
|
|
736
|
+
id: e.string(),
|
|
737
|
+
destinations: e.array(i)
|
|
738
|
+
}), g = e.object({
|
|
739
|
+
type: e.enum(["shape"]),
|
|
740
|
+
shape: e.enum(["rectangle", "circle", "line"]),
|
|
741
|
+
width: e.optional(e.int()),
|
|
742
|
+
height: e.optional(e.int()),
|
|
743
|
+
fill: e.optional(e.object({
|
|
744
|
+
color: e.optional(e.string()),
|
|
745
|
+
opacity: e.optional(e.number())
|
|
746
|
+
})),
|
|
747
|
+
stroke: e.optional(e.object({
|
|
748
|
+
color: e.optional(e.string()),
|
|
749
|
+
width: e.optional(e.number())
|
|
750
|
+
})),
|
|
751
|
+
rectangle: e.optional(e.object({
|
|
752
|
+
width: e.int(),
|
|
753
|
+
height: e.int(),
|
|
754
|
+
cornerRadius: e.optional(e.int())
|
|
755
|
+
})),
|
|
756
|
+
circle: e.optional(e.object({
|
|
757
|
+
radius: e.int()
|
|
758
|
+
})),
|
|
759
|
+
line: e.optional(e.object({
|
|
760
|
+
length: e.int(),
|
|
761
|
+
thickness: e.int()
|
|
762
|
+
}))
|
|
763
|
+
}), vt = g, s = e.object({
|
|
764
|
+
width: e.optional(e.int().gte(1).lte(4096)),
|
|
765
|
+
height: e.optional(e.int().gte(1).lte(4096))
|
|
766
|
+
}), Ye = s, b = e.object({
|
|
767
|
+
format: e.optional(e.enum([
|
|
768
|
+
"mp4",
|
|
769
|
+
"webm",
|
|
770
|
+
"mov",
|
|
771
|
+
"avi",
|
|
772
|
+
"mkv",
|
|
773
|
+
"ogv",
|
|
774
|
+
"wmv",
|
|
775
|
+
"avif",
|
|
776
|
+
"gif",
|
|
777
|
+
"mp3",
|
|
778
|
+
"wav",
|
|
779
|
+
"jpg",
|
|
780
|
+
"png",
|
|
781
|
+
"webp",
|
|
782
|
+
"tif"
|
|
783
|
+
])),
|
|
784
|
+
size: e.optional(s),
|
|
785
|
+
fit: e.optional(e.enum(["cover", "contain", "crop"])),
|
|
786
|
+
resolution: e.optional(e.enum(["preview", "mobile", "sd", "hd", "fhd"])),
|
|
787
|
+
quality: e.optional(e.int().gte(1).lte(100)),
|
|
788
|
+
fps: e.optional(e.union([
|
|
789
|
+
e.literal(12),
|
|
790
|
+
e.literal(15),
|
|
791
|
+
e.literal(23.976),
|
|
792
|
+
e.literal(24),
|
|
793
|
+
e.literal(25),
|
|
794
|
+
e.literal(29.97),
|
|
795
|
+
e.literal(30),
|
|
796
|
+
e.literal(48),
|
|
797
|
+
e.literal(50),
|
|
798
|
+
e.literal(59.94),
|
|
799
|
+
e.literal(60)
|
|
800
|
+
])),
|
|
801
|
+
speed: e.optional(Ne),
|
|
802
|
+
keyframeInterval: e.optional(e.int().gte(1).lte(300)),
|
|
803
|
+
fixOffset: e.optional(e.boolean()),
|
|
804
|
+
fixRotation: e.optional(e.boolean()),
|
|
805
|
+
enhance: e.optional(ve),
|
|
806
|
+
filename: e.optional(e.string())
|
|
807
|
+
}), et = e.object({
|
|
808
|
+
renditions: e.optional(e.array(b)),
|
|
809
|
+
transcription: e.optional(Le)
|
|
810
|
+
}), tt = e.object({
|
|
811
|
+
id: e.string(),
|
|
812
|
+
status: e.optional(e.enum([
|
|
813
|
+
"queued",
|
|
814
|
+
"importing",
|
|
815
|
+
"ready",
|
|
816
|
+
"failed",
|
|
817
|
+
"deleted",
|
|
818
|
+
"overwritten"
|
|
819
|
+
])),
|
|
820
|
+
url: e.optional(e.string()),
|
|
821
|
+
executionTime: e.optional(e.number()),
|
|
822
|
+
transformation: e.optional(b),
|
|
823
|
+
width: e.optional(e.int()),
|
|
824
|
+
height: e.optional(e.int()),
|
|
825
|
+
duration: e.optional(e.number()),
|
|
826
|
+
fps: e.optional(e.number())
|
|
827
|
+
}), ot = e.object({
|
|
828
|
+
renditions: e.optional(e.array(tt))
|
|
829
|
+
}), nt = e.object({
|
|
830
|
+
id: e.string(),
|
|
831
|
+
owner: e.string(),
|
|
832
|
+
input: e.optional(e.string()),
|
|
833
|
+
source: e.optional(e.string()),
|
|
834
|
+
status: e.optional(e.enum(["queued", "importing", "ready", "failed", "deleted", "overwritten"])),
|
|
835
|
+
outputs: e.optional(ot),
|
|
836
|
+
width: e.optional(e.int()),
|
|
837
|
+
height: e.optional(e.string()),
|
|
838
|
+
duration: e.optional(e.number()),
|
|
839
|
+
fps: e.optional(e.number()),
|
|
840
|
+
created: e.optional(e.string()),
|
|
841
|
+
updated: e.optional(e.string())
|
|
842
|
+
}), f = e.object({
|
|
843
|
+
type: e.string(),
|
|
844
|
+
id: e.string(),
|
|
845
|
+
attributes: nt
|
|
846
|
+
});
|
|
847
|
+
e.object({
|
|
848
|
+
data: e.array(f)
|
|
849
|
+
});
|
|
850
|
+
e.object({
|
|
851
|
+
data: f
|
|
852
|
+
});
|
|
853
|
+
const at = e.object({
|
|
854
|
+
url: e.optional(e.string()),
|
|
855
|
+
outputs: e.optional(et),
|
|
856
|
+
destinations: e.optional(i),
|
|
857
|
+
callback: e.optional(e.string())
|
|
858
|
+
}), it = e.object({
|
|
859
|
+
src: e.string(),
|
|
860
|
+
effect: e.optional(e.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
861
|
+
volume: e.optional(e.number())
|
|
862
|
+
}), st = e.object({
|
|
863
|
+
id: e.string(),
|
|
864
|
+
merge: e.optional(e.array(m))
|
|
865
|
+
}), rt = e.object({
|
|
866
|
+
horizontal: e.optional(e.enum(["left", "center", "right"])),
|
|
867
|
+
vertical: e.optional(e.enum(["top", "center", "bottom"]))
|
|
868
|
+
}), lt = e.object({
|
|
869
|
+
preset: e.enum(["typewriter"]),
|
|
870
|
+
duration: e.optional(e.number().gte(0.1).lte(30))
|
|
871
|
+
}), pt = e.object({
|
|
872
|
+
color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
873
|
+
opacity: e.optional(e.number().gte(0).lte(1)),
|
|
874
|
+
padding: e.optional(e.number().gte(0).lte(100)),
|
|
875
|
+
borderRadius: e.optional(e.number().gte(0))
|
|
876
|
+
}), ct = e.object({
|
|
877
|
+
family: e.optional(e.string()),
|
|
878
|
+
color: e.optional(e.string()),
|
|
879
|
+
opacity: e.optional(e.number()),
|
|
880
|
+
size: e.optional(e.int()),
|
|
881
|
+
weight: e.optional(e.int()),
|
|
882
|
+
lineHeight: e.optional(e.number())
|
|
883
|
+
}), ut = e.object({
|
|
884
|
+
width: e.optional(e.number().gte(0).lte(10)),
|
|
885
|
+
color: e.optional(e.string().regex(/^#[A-Fa-f0-9]{6}$/))
|
|
886
|
+
}), S = e.object({
|
|
887
|
+
type: e.enum(["text"]),
|
|
888
|
+
text: e.string(),
|
|
889
|
+
width: e.optional(e.int()),
|
|
890
|
+
height: e.optional(e.int()),
|
|
891
|
+
font: e.optional(ct),
|
|
892
|
+
background: e.optional(pt),
|
|
893
|
+
alignment: e.optional(rt),
|
|
894
|
+
stroke: e.optional(ut),
|
|
895
|
+
animation: e.optional(lt),
|
|
896
|
+
ellipsis: e.optional(e.string())
|
|
897
|
+
}), Ft = S, mt = e.object({
|
|
898
|
+
type: e.enum(["text-to-image"]),
|
|
899
|
+
prompt: e.string(),
|
|
900
|
+
width: e.optional(e.int()),
|
|
901
|
+
height: e.optional(e.int()),
|
|
902
|
+
crop: e.optional(n)
|
|
903
|
+
}), dt = e.object({
|
|
904
|
+
capture: e.number(),
|
|
905
|
+
scale: e.number().gte(0).lte(1)
|
|
906
|
+
}), y = e.object({
|
|
907
|
+
format: e.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
|
|
908
|
+
resolution: e.optional(e.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
|
|
909
|
+
aspectRatio: e.optional(e.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
|
|
910
|
+
size: e.optional(s),
|
|
911
|
+
fps: e.optional(e.union([
|
|
912
|
+
e.literal(12),
|
|
913
|
+
e.literal(15),
|
|
914
|
+
e.literal(23.976),
|
|
915
|
+
e.literal(24),
|
|
916
|
+
e.literal(25),
|
|
917
|
+
e.literal(29.97),
|
|
918
|
+
e.literal(30),
|
|
919
|
+
e.literal(48),
|
|
920
|
+
e.literal(50),
|
|
921
|
+
e.literal(59.94),
|
|
922
|
+
e.literal(60)
|
|
923
|
+
])),
|
|
924
|
+
scaleTo: e.optional(e.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
|
|
925
|
+
quality: e.optional(e.enum(["verylow", "low", "medium", "high", "veryhigh"])),
|
|
926
|
+
repeat: e.optional(e.boolean()),
|
|
927
|
+
mute: e.optional(e.boolean()),
|
|
928
|
+
range: e.optional(Ie),
|
|
929
|
+
poster: e.optional(Ge),
|
|
930
|
+
thumbnail: e.optional(dt),
|
|
931
|
+
destinations: e.optional(e.array(i))
|
|
932
|
+
}), A = y, j = e.object({
|
|
933
|
+
in: e.optional(e.enum([
|
|
934
|
+
"none",
|
|
935
|
+
"fade",
|
|
936
|
+
"fadeSlow",
|
|
937
|
+
"fadeFast",
|
|
938
|
+
"reveal",
|
|
939
|
+
"revealSlow",
|
|
940
|
+
"revealFast",
|
|
941
|
+
"wipeLeft",
|
|
942
|
+
"wipeLeftSlow",
|
|
943
|
+
"wipeLeftFast",
|
|
944
|
+
"wipeRight",
|
|
945
|
+
"wipeRightSlow",
|
|
946
|
+
"wipeRightFast",
|
|
947
|
+
"slideLeft",
|
|
948
|
+
"slideLeftSlow",
|
|
949
|
+
"slideLeftFast",
|
|
950
|
+
"slideRight",
|
|
951
|
+
"slideRightSlow",
|
|
952
|
+
"slideRightFast",
|
|
953
|
+
"slideUp",
|
|
954
|
+
"slideUpSlow",
|
|
955
|
+
"slideUpFast",
|
|
956
|
+
"slideDown",
|
|
957
|
+
"slideDownSlow",
|
|
958
|
+
"slideDownFast",
|
|
959
|
+
"carouselLeft",
|
|
960
|
+
"carouselLeftSlow",
|
|
961
|
+
"carouselLeftFast",
|
|
962
|
+
"carouselRight",
|
|
963
|
+
"carouselRightSlow",
|
|
964
|
+
"carouselRightFast",
|
|
965
|
+
"carouselUp",
|
|
966
|
+
"carouselUpSlow",
|
|
967
|
+
"carouselUpFast",
|
|
968
|
+
"carouselDown",
|
|
969
|
+
"carouselDownSlow",
|
|
970
|
+
"carouselDownFast",
|
|
971
|
+
"shuffleTopRight",
|
|
972
|
+
"shuffleTopRightSlow",
|
|
973
|
+
"shuffleTopRightFast",
|
|
974
|
+
"shuffleRightTop",
|
|
975
|
+
"shuffleRightTopSlow",
|
|
976
|
+
"shuffleRightTopFast",
|
|
977
|
+
"shuffleRightBottom",
|
|
978
|
+
"shuffleRightBottomSlow",
|
|
979
|
+
"shuffleRightBottomFast",
|
|
980
|
+
"shuffleBottomRight",
|
|
981
|
+
"shuffleBottomRightSlow",
|
|
982
|
+
"shuffleBottomRightFast",
|
|
983
|
+
"shuffleBottomLeft",
|
|
984
|
+
"shuffleBottomLeftSlow",
|
|
985
|
+
"shuffleBottomLeftFast",
|
|
986
|
+
"shuffleLeftBottom",
|
|
987
|
+
"shuffleLeftBottomSlow",
|
|
988
|
+
"shuffleLeftBottomFast",
|
|
989
|
+
"shuffleLeftTop",
|
|
990
|
+
"shuffleLeftTopSlow",
|
|
991
|
+
"shuffleLeftTopFast",
|
|
992
|
+
"shuffleTopLeft",
|
|
993
|
+
"shuffleTopLeftSlow",
|
|
994
|
+
"shuffleTopLeftFast",
|
|
995
|
+
"zoom"
|
|
996
|
+
])),
|
|
997
|
+
out: e.optional(e.enum([
|
|
998
|
+
"none",
|
|
999
|
+
"fade",
|
|
1000
|
+
"fadeSlow",
|
|
1001
|
+
"fadeFast",
|
|
1002
|
+
"reveal",
|
|
1003
|
+
"revealSlow",
|
|
1004
|
+
"revealFast",
|
|
1005
|
+
"wipeLeft",
|
|
1006
|
+
"wipeLeftSlow",
|
|
1007
|
+
"wipeLeftFast",
|
|
1008
|
+
"wipeRight",
|
|
1009
|
+
"wipeRightSlow",
|
|
1010
|
+
"wipeRightFast",
|
|
1011
|
+
"slideLeft",
|
|
1012
|
+
"slideLeftSlow",
|
|
1013
|
+
"slideLeftFast",
|
|
1014
|
+
"slideRight",
|
|
1015
|
+
"slideRightSlow",
|
|
1016
|
+
"slideRightFast",
|
|
1017
|
+
"slideUp",
|
|
1018
|
+
"slideUpSlow",
|
|
1019
|
+
"slideUpFast",
|
|
1020
|
+
"slideDown",
|
|
1021
|
+
"slideDownSlow",
|
|
1022
|
+
"slideDownFast",
|
|
1023
|
+
"carouselLeft",
|
|
1024
|
+
"carouselLeftSlow",
|
|
1025
|
+
"carouselLeftFast",
|
|
1026
|
+
"carouselRight",
|
|
1027
|
+
"carouselRightSlow",
|
|
1028
|
+
"carouselRightFast",
|
|
1029
|
+
"carouselUp",
|
|
1030
|
+
"carouselUpSlow",
|
|
1031
|
+
"carouselUpFast",
|
|
1032
|
+
"carouselDown",
|
|
1033
|
+
"carouselDownSlow",
|
|
1034
|
+
"carouselDownFast",
|
|
1035
|
+
"shuffleTopRight",
|
|
1036
|
+
"shuffleTopRightSlow",
|
|
1037
|
+
"shuffleTopRightFast",
|
|
1038
|
+
"shuffleRightTop",
|
|
1039
|
+
"shuffleRightTopSlow",
|
|
1040
|
+
"shuffleRightTopFast",
|
|
1041
|
+
"shuffleRightBottom",
|
|
1042
|
+
"shuffleRightBottomSlow",
|
|
1043
|
+
"shuffleRightBottomFast",
|
|
1044
|
+
"shuffleBottomRight",
|
|
1045
|
+
"shuffleBottomRightSlow",
|
|
1046
|
+
"shuffleBottomRightFast",
|
|
1047
|
+
"shuffleBottomLeft",
|
|
1048
|
+
"shuffleBottomLeftSlow",
|
|
1049
|
+
"shuffleBottomLeftFast",
|
|
1050
|
+
"shuffleLeftBottom",
|
|
1051
|
+
"shuffleLeftBottomSlow",
|
|
1052
|
+
"shuffleLeftBottomFast",
|
|
1053
|
+
"shuffleLeftTop",
|
|
1054
|
+
"shuffleLeftTopSlow",
|
|
1055
|
+
"shuffleLeftTopFast",
|
|
1056
|
+
"shuffleTopLeft",
|
|
1057
|
+
"shuffleTopLeftSlow",
|
|
1058
|
+
"shuffleTopLeftFast",
|
|
1059
|
+
"zoom"
|
|
1060
|
+
]))
|
|
1061
|
+
}), Ot = j, o = e.object({
|
|
1062
|
+
from: e.optional(e.unknown()),
|
|
1063
|
+
to: e.optional(e.unknown()),
|
|
1064
|
+
start: e.optional(e.number()),
|
|
1065
|
+
length: e.optional(e.number()),
|
|
1066
|
+
interpolation: e.optional(e.enum(["linear", "bezier", "constant"])),
|
|
1067
|
+
easing: e.optional(e.enum([
|
|
1068
|
+
"ease",
|
|
1069
|
+
"easeIn",
|
|
1070
|
+
"easeOut",
|
|
1071
|
+
"easeInOut",
|
|
1072
|
+
"easeInQuad",
|
|
1073
|
+
"easeInCubic",
|
|
1074
|
+
"easeInQuart",
|
|
1075
|
+
"easeInQuint",
|
|
1076
|
+
"easeInSine",
|
|
1077
|
+
"easeInExpo",
|
|
1078
|
+
"easeInCirc",
|
|
1079
|
+
"easeInBack",
|
|
1080
|
+
"easeOutQuad",
|
|
1081
|
+
"easeOutCubic",
|
|
1082
|
+
"easeOutQuart",
|
|
1083
|
+
"easeOutQuint",
|
|
1084
|
+
"easeOutSine",
|
|
1085
|
+
"easeOutExpo",
|
|
1086
|
+
"easeOutCirc",
|
|
1087
|
+
"easeOutBack",
|
|
1088
|
+
"easeInOutQuad",
|
|
1089
|
+
"easeInOutCubic",
|
|
1090
|
+
"easeInOutQuart",
|
|
1091
|
+
"easeInOutQuint",
|
|
1092
|
+
"easeInOutSine",
|
|
1093
|
+
"easeInOutExpo",
|
|
1094
|
+
"easeInOutCirc",
|
|
1095
|
+
"easeInOutBack"
|
|
1096
|
+
]))
|
|
1097
|
+
}), Rt = o, w = e.object({
|
|
1098
|
+
type: e.enum(["audio"]),
|
|
1099
|
+
src: e.string(),
|
|
1100
|
+
trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
|
|
1101
|
+
volume: e.optional(e.union([e.number().gte(0).lte(1), e.array(o)])),
|
|
1102
|
+
speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))),
|
|
1103
|
+
effect: e.optional(e.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]))
|
|
1104
|
+
}), Dt = w, r = e.object({
|
|
1105
|
+
x: e.optional(e.union([e.number().gte(-10).lte(10), e.array(o)])),
|
|
1106
|
+
y: e.optional(e.union([e.number().gte(-10).lte(10), e.array(o)]))
|
|
1107
|
+
}), Nt = r, ht = e.object({
|
|
1108
|
+
angle: e.optional(e.union([e.int().gte(-360).lte(360), e.array(o)]))
|
|
1109
|
+
}), gt = e.object({
|
|
1110
|
+
x: e.optional(e.union([e.number().gte(-100).lte(100), e.array(o)])),
|
|
1111
|
+
y: e.optional(e.union([e.number().gte(-100).lte(100), e.array(o)]))
|
|
1112
|
+
}), bt = e.object({
|
|
1113
|
+
type: e.enum(["title"]),
|
|
1114
|
+
text: e.string(),
|
|
1115
|
+
style: e.optional(e.enum([
|
|
1116
|
+
"minimal",
|
|
1117
|
+
"blockbuster",
|
|
1118
|
+
"vogue",
|
|
1119
|
+
"sketchy",
|
|
1120
|
+
"skinny",
|
|
1121
|
+
"chunk",
|
|
1122
|
+
"chunkLight",
|
|
1123
|
+
"marker",
|
|
1124
|
+
"future",
|
|
1125
|
+
"subtitle"
|
|
1126
|
+
])),
|
|
1127
|
+
color: e.optional(e.string()),
|
|
1128
|
+
size: e.optional(e.enum([
|
|
1129
|
+
"xx-small",
|
|
1130
|
+
"x-small",
|
|
1131
|
+
"small",
|
|
1132
|
+
"medium",
|
|
1133
|
+
"large",
|
|
1134
|
+
"x-large",
|
|
1135
|
+
"xx-large"
|
|
1136
|
+
])),
|
|
1137
|
+
background: e.optional(e.string()),
|
|
1138
|
+
position: e.optional(e.enum([
|
|
1139
|
+
"top",
|
|
1140
|
+
"topRight",
|
|
1141
|
+
"right",
|
|
1142
|
+
"bottomRight",
|
|
1143
|
+
"bottom",
|
|
1144
|
+
"bottomLeft",
|
|
1145
|
+
"left",
|
|
1146
|
+
"topLeft",
|
|
1147
|
+
"center"
|
|
1148
|
+
])),
|
|
1149
|
+
offset: e.optional(r)
|
|
1150
|
+
}), T = e.object({
|
|
1151
|
+
rotate: e.optional(ht),
|
|
1152
|
+
skew: e.optional(gt),
|
|
1153
|
+
flip: e.optional(Ae)
|
|
1154
|
+
}), Lt = T, x = e.object({
|
|
1155
|
+
type: e.enum(["video"]),
|
|
1156
|
+
src: e.string(),
|
|
1157
|
+
transcode: e.optional(e.boolean()),
|
|
1158
|
+
trim: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
|
|
1159
|
+
volume: e.optional(e.union([e.number().gte(0).lte(1), e.array(o)])),
|
|
1160
|
+
volumeEffect: e.optional(e.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
1161
|
+
speed: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number().gte(0).lte(10))),
|
|
1162
|
+
crop: e.optional(n),
|
|
1163
|
+
chromaKey: e.optional(G)
|
|
1164
|
+
}), Gt = x, k = e.discriminatedUnion("type", [
|
|
1165
|
+
x,
|
|
1166
|
+
c,
|
|
235
1167
|
S,
|
|
1168
|
+
h,
|
|
1169
|
+
w,
|
|
236
1170
|
u,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
})
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
})
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
1171
|
+
l,
|
|
1172
|
+
p,
|
|
1173
|
+
bt,
|
|
1174
|
+
g,
|
|
1175
|
+
mt,
|
|
1176
|
+
we
|
|
1177
|
+
]), It = k, v = e.object({
|
|
1178
|
+
asset: k,
|
|
1179
|
+
start: e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()), e.enum(["auto"])]),
|
|
1180
|
+
length: e.union([e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number()), e.literal("auto"), e.literal("end")]),
|
|
1181
|
+
fit: e.optional(e.enum(["cover", "contain", "crop", "none"])),
|
|
1182
|
+
scale: e.optional(e.preprocess((t) => typeof t == "string" && t !== "" && !isNaN(Number(t)) ? Number(t) : t, e.number())),
|
|
1183
|
+
width: e.optional(e.int().gte(1).lte(3840)),
|
|
1184
|
+
height: e.optional(e.int().gte(1).lte(2160)),
|
|
1185
|
+
position: e.optional(e.enum([
|
|
1186
|
+
"top",
|
|
1187
|
+
"topRight",
|
|
1188
|
+
"right",
|
|
1189
|
+
"bottomRight",
|
|
1190
|
+
"bottom",
|
|
1191
|
+
"bottomLeft",
|
|
1192
|
+
"left",
|
|
1193
|
+
"topLeft",
|
|
1194
|
+
"center"
|
|
1195
|
+
])),
|
|
1196
|
+
offset: e.optional(r),
|
|
1197
|
+
transition: e.optional(j),
|
|
1198
|
+
effect: e.optional(e.enum([
|
|
1199
|
+
"zoomIn",
|
|
1200
|
+
"zoomInSlow",
|
|
1201
|
+
"zoomInFast",
|
|
1202
|
+
"zoomOut",
|
|
1203
|
+
"zoomOutSlow",
|
|
1204
|
+
"zoomOutFast",
|
|
1205
|
+
"slideLeft",
|
|
1206
|
+
"slideLeftSlow",
|
|
1207
|
+
"slideLeftFast",
|
|
1208
|
+
"slideRight",
|
|
1209
|
+
"slideRightSlow",
|
|
1210
|
+
"slideRightFast",
|
|
1211
|
+
"slideUp",
|
|
1212
|
+
"slideUpSlow",
|
|
1213
|
+
"slideUpFast",
|
|
1214
|
+
"slideDown",
|
|
1215
|
+
"slideDownSlow",
|
|
1216
|
+
"slideDownFast"
|
|
1217
|
+
])),
|
|
1218
|
+
filter: e.optional(e.enum([
|
|
1219
|
+
"none",
|
|
1220
|
+
"blur",
|
|
1221
|
+
"boost",
|
|
1222
|
+
"contrast",
|
|
1223
|
+
"darken",
|
|
1224
|
+
"greyscale",
|
|
1225
|
+
"lighten",
|
|
1226
|
+
"muted",
|
|
1227
|
+
"negative"
|
|
1228
|
+
])),
|
|
1229
|
+
opacity: e.optional(e.union([e.number(), e.array(o)])),
|
|
1230
|
+
transform: e.optional(T),
|
|
1231
|
+
alias: e.optional(e.string().regex(/^[A-Za-z0-9_-]+$/))
|
|
1232
|
+
}), Ct = v, F = e.object({
|
|
1233
|
+
clips: e.array(v)
|
|
1234
|
+
}), Bt = F, O = e.object({
|
|
1235
|
+
soundtrack: e.optional(it),
|
|
1236
|
+
background: e.optional(e.string()),
|
|
1237
|
+
fonts: e.optional(e.array(je)),
|
|
1238
|
+
tracks: e.array(F),
|
|
1239
|
+
cache: e.optional(e.boolean())
|
|
1240
|
+
}), zt = O, a = e.object({
|
|
1241
|
+
timeline: O,
|
|
1242
|
+
output: y,
|
|
1243
|
+
merge: e.optional(e.array(m)),
|
|
1244
|
+
callback: e.optional(e.string()),
|
|
1245
|
+
disk: e.optional(e.enum(["local", "mount"]))
|
|
1246
|
+
}), Et = a, ft = e.object({
|
|
1247
|
+
id: e.string(),
|
|
1248
|
+
owner: e.string(),
|
|
1249
|
+
plan: e.optional(e.string()),
|
|
1250
|
+
status: e.enum([
|
|
1251
|
+
"queued",
|
|
1252
|
+
"fetching",
|
|
1253
|
+
"preprocessing",
|
|
1254
|
+
"rendering",
|
|
1255
|
+
"saving",
|
|
1256
|
+
"done",
|
|
1257
|
+
"failed"
|
|
1258
|
+
]),
|
|
1259
|
+
error: e.optional(e.string()),
|
|
1260
|
+
duration: e.optional(e.number()),
|
|
1261
|
+
renderTime: e.optional(e.number()),
|
|
1262
|
+
url: e.optional(e.string()),
|
|
1263
|
+
poster: e.optional(e.union([e.string(), e.null()])),
|
|
1264
|
+
thumbnail: e.optional(e.union([e.string(), e.null()])),
|
|
1265
|
+
data: e.optional(a),
|
|
1266
|
+
created: e.optional(e.string()),
|
|
1267
|
+
updated: e.optional(e.string())
|
|
1268
|
+
});
|
|
1269
|
+
e.object({
|
|
1270
|
+
success: e.boolean(),
|
|
1271
|
+
message: e.string(),
|
|
1272
|
+
response: ft
|
|
1273
|
+
});
|
|
1274
|
+
const St = e.object({
|
|
1275
|
+
id: e.string(),
|
|
1276
|
+
name: e.string(),
|
|
1277
|
+
owner: e.string(),
|
|
1278
|
+
template: a
|
|
1279
|
+
});
|
|
1280
|
+
e.object({
|
|
1281
|
+
success: e.boolean(),
|
|
1282
|
+
message: e.string(),
|
|
1283
|
+
response: St
|
|
1284
|
+
});
|
|
1285
|
+
const R = e.object({
|
|
1286
|
+
name: e.string(),
|
|
1287
|
+
template: e.optional(a)
|
|
1288
|
+
});
|
|
1289
|
+
e.object({
|
|
1290
|
+
body: a,
|
|
1291
|
+
path: e.optional(e.never()),
|
|
1292
|
+
query: e.optional(e.never())
|
|
1293
|
+
});
|
|
1294
|
+
e.object({
|
|
1295
|
+
body: e.optional(e.never()),
|
|
1296
|
+
path: e.object({
|
|
1297
|
+
id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
1298
|
+
}),
|
|
1299
|
+
query: e.optional(e.object({
|
|
1300
|
+
data: e.optional(e.boolean()),
|
|
1301
|
+
merged: e.optional(e.boolean())
|
|
1302
|
+
}))
|
|
1303
|
+
});
|
|
1304
|
+
e.object({
|
|
1305
|
+
body: e.optional(e.never()),
|
|
1306
|
+
path: e.optional(e.never()),
|
|
1307
|
+
query: e.optional(e.never())
|
|
1308
|
+
});
|
|
1309
|
+
e.object({
|
|
1310
|
+
body: R,
|
|
1311
|
+
path: e.optional(e.never()),
|
|
1312
|
+
query: e.optional(e.never())
|
|
1313
|
+
});
|
|
1314
|
+
e.object({
|
|
1315
|
+
body: e.optional(e.never()),
|
|
1316
|
+
path: e.object({
|
|
1317
|
+
id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
1318
|
+
}),
|
|
1319
|
+
query: e.optional(e.never())
|
|
1320
|
+
});
|
|
1321
|
+
e.void();
|
|
1322
|
+
e.object({
|
|
1323
|
+
body: e.optional(e.never()),
|
|
1324
|
+
path: e.object({
|
|
1325
|
+
id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
1326
|
+
}),
|
|
1327
|
+
query: e.optional(e.never())
|
|
1328
|
+
});
|
|
1329
|
+
e.object({
|
|
1330
|
+
body: R,
|
|
1331
|
+
path: e.object({
|
|
1332
|
+
id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
1333
|
+
}),
|
|
1334
|
+
query: e.optional(e.never())
|
|
1335
|
+
});
|
|
1336
|
+
e.object({
|
|
1337
|
+
body: st,
|
|
1338
|
+
path: e.optional(e.never()),
|
|
1339
|
+
query: e.optional(e.never())
|
|
1340
|
+
});
|
|
1341
|
+
e.object({
|
|
1342
|
+
body: e.optional(e.never()),
|
|
1343
|
+
path: e.object({
|
|
1344
|
+
url: e.string()
|
|
1345
|
+
}),
|
|
1346
|
+
query: e.optional(e.never())
|
|
1347
|
+
});
|
|
1348
|
+
e.object({
|
|
1349
|
+
body: e.optional(e.never()),
|
|
1350
|
+
path: e.object({
|
|
1351
|
+
id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
1352
|
+
}),
|
|
1353
|
+
query: e.optional(e.never())
|
|
1354
|
+
});
|
|
1355
|
+
e.void();
|
|
1356
|
+
e.object({
|
|
1357
|
+
body: e.optional(e.never()),
|
|
1358
|
+
path: e.object({
|
|
1359
|
+
id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
1360
|
+
}),
|
|
1361
|
+
query: e.optional(e.never())
|
|
1362
|
+
});
|
|
1363
|
+
e.object({
|
|
1364
|
+
body: e.optional(e.never()),
|
|
1365
|
+
path: e.object({
|
|
1366
|
+
id: e.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
1367
|
+
}),
|
|
1368
|
+
query: e.optional(e.never())
|
|
1369
|
+
});
|
|
1370
|
+
e.object({
|
|
1371
|
+
body: Xe,
|
|
1372
|
+
path: e.optional(e.never()),
|
|
1373
|
+
query: e.optional(e.never())
|
|
1374
|
+
});
|
|
1375
|
+
e.object({
|
|
1376
|
+
body: e.optional(e.never()),
|
|
1377
|
+
path: e.optional(e.never()),
|
|
1378
|
+
query: e.optional(e.never())
|
|
1379
|
+
});
|
|
1380
|
+
e.object({
|
|
1381
|
+
body: at,
|
|
1382
|
+
path: e.optional(e.never()),
|
|
1383
|
+
query: e.optional(e.never())
|
|
1384
|
+
});
|
|
1385
|
+
e.object({
|
|
1386
|
+
body: e.optional(e.never()),
|
|
1387
|
+
path: e.object({
|
|
1388
|
+
id: e.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}$/)
|
|
1389
|
+
}),
|
|
1390
|
+
query: e.optional(e.never())
|
|
1391
|
+
});
|
|
1392
|
+
e.void();
|
|
1393
|
+
e.object({
|
|
1394
|
+
body: e.optional(e.never()),
|
|
1395
|
+
path: e.object({
|
|
1396
|
+
id: e.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}$/)
|
|
1397
|
+
}),
|
|
1398
|
+
query: e.optional(e.never())
|
|
1399
|
+
});
|
|
1400
|
+
e.object({
|
|
1401
|
+
body: e.optional(e.never()),
|
|
1402
|
+
path: e.optional(e.never()),
|
|
1403
|
+
query: e.optional(e.never())
|
|
1404
|
+
});
|
|
1405
|
+
e.object({
|
|
1406
|
+
body: ae,
|
|
1407
|
+
path: e.optional(e.never()),
|
|
1408
|
+
query: e.optional(e.never())
|
|
1409
|
+
});
|
|
1410
|
+
e.object({
|
|
1411
|
+
body: e.optional(e.never()),
|
|
1412
|
+
path: e.object({
|
|
1413
|
+
id: e.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}$/)
|
|
1414
|
+
}),
|
|
1415
|
+
query: e.optional(e.never())
|
|
1416
|
+
});
|
|
1417
|
+
const qt = ye, Pt = Ye, _t = A.shape.format, Ut = A.shape.fps.unwrap(), $t = e.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);
|
|
368
1418
|
export {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
A as ShapeAssetColorSchema,
|
|
396
|
-
W as ShapeAssetFillSchema,
|
|
397
|
-
d as ShapeAssetLineSchema,
|
|
398
|
-
b as ShapeAssetRectangleSchema,
|
|
399
|
-
h as ShapeAssetSchema,
|
|
400
|
-
K as ShapeAssetStrokeSchema,
|
|
401
|
-
Y as TextAssetAlignmentSchema,
|
|
402
|
-
Z as TextAssetBackgroundSchema,
|
|
403
|
-
r as TextAssetColorSchema,
|
|
404
|
-
X as TextAssetFontSchema,
|
|
405
|
-
g as TextAssetSchema,
|
|
406
|
-
q as TextAssetStrokeSchema,
|
|
407
|
-
At as TimelineSchema,
|
|
408
|
-
dt as TrackSchema,
|
|
409
|
-
tt as VideoAssetCropSchema,
|
|
410
|
-
S as VideoAssetSchema,
|
|
411
|
-
J as VideoAssetUrlSchema,
|
|
412
|
-
et as VideoAssetVolumeSchema
|
|
1419
|
+
It as AssetSchema,
|
|
1420
|
+
Dt as AudioAssetSchema,
|
|
1421
|
+
At as CaptionAssetSchema,
|
|
1422
|
+
Ct as ClipSchema,
|
|
1423
|
+
jt as CropSchema,
|
|
1424
|
+
qt as DestinationSchema,
|
|
1425
|
+
Et as EditSchema,
|
|
1426
|
+
$t as HexColorSchema,
|
|
1427
|
+
wt as HtmlAssetSchema,
|
|
1428
|
+
Tt as ImageAssetSchema,
|
|
1429
|
+
Rt as KeyframeSchema,
|
|
1430
|
+
xt as LumaAssetSchema,
|
|
1431
|
+
Nt as OffsetSchema,
|
|
1432
|
+
_t as OutputFormatSchema,
|
|
1433
|
+
Ut as OutputFpsSchema,
|
|
1434
|
+
A as OutputSchema,
|
|
1435
|
+
Pt as OutputSizeSchema,
|
|
1436
|
+
kt as RichTextAssetSchema,
|
|
1437
|
+
vt as ShapeAssetSchema,
|
|
1438
|
+
Ft as TextAssetSchema,
|
|
1439
|
+
zt as TimelineSchema,
|
|
1440
|
+
Bt as TrackSchema,
|
|
1441
|
+
Lt as TransformationSchema,
|
|
1442
|
+
Ot as TransitionSchema,
|
|
1443
|
+
Rt as TweenSchema,
|
|
1444
|
+
Gt as VideoAssetSchema
|
|
413
1445
|
};
|