@shotstack/schemas 1.4.4 → 1.4.5
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/api.bundled.json +4 -2
- package/dist/schema.d.ts +2 -0
- package/dist/zod/zod.gen.cjs +907 -1042
- package/dist/zod/zod.gen.d.ts +1 -1
- package/dist/zod/zod.gen.js +908 -1043
- package/dist/zod/zod.gen.ts +1589 -1509
- package/package.json +1 -1
package/dist/zod/zod.gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { z } from
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
export const editRootSchema = z.unknown();
|
|
4
4
|
export const sourceRootSchema = z.unknown();
|
|
5
5
|
export const assetsRootSchema = z.unknown();
|
|
@@ -32,7 +32,7 @@ export const captionpropertiesCaptionBackgroundSchema = z.object({
|
|
|
32
32
|
borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
33
33
|
return undefined; if (Array.isArray(v))
|
|
34
34
|
return v; if (typeof v === 'string')
|
|
35
|
-
return Number(v); return v; }), z.number().int()))
|
|
35
|
+
return Number(v); return v; }), z.number().int())),
|
|
36
36
|
});
|
|
37
37
|
export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
|
|
38
38
|
/**
|
|
@@ -57,7 +57,7 @@ export const captionpropertiesCaptionFontSchema = z.object({
|
|
|
57
57
|
strokeWidth: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
58
58
|
return undefined; if (Array.isArray(v))
|
|
59
59
|
return v; if (typeof v === 'string')
|
|
60
|
-
return Number(v); return v; }), z.number()))
|
|
60
|
+
return Number(v); return v; }), z.number())),
|
|
61
61
|
});
|
|
62
62
|
export const captionFontSchema = captionpropertiesCaptionFontSchema;
|
|
63
63
|
/**
|
|
@@ -75,7 +75,7 @@ export const captionpropertiesCaptionMarginSchema = z.object({
|
|
|
75
75
|
right: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
76
76
|
return undefined; if (Array.isArray(v))
|
|
77
77
|
return v; if (typeof v === 'string')
|
|
78
|
-
return Number(v); return v; }), z.number()))
|
|
78
|
+
return Number(v); return v; }), z.number())),
|
|
79
79
|
});
|
|
80
80
|
export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
81
81
|
/**
|
|
@@ -91,7 +91,7 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
|
91
91
|
*
|
|
92
92
|
*/
|
|
93
93
|
export const captionassetCaptionAssetSchema = z.object({
|
|
94
|
-
type: z.enum([
|
|
94
|
+
type: z.enum(["caption"]),
|
|
95
95
|
src: z.string(),
|
|
96
96
|
font: z.optional(captionpropertiesCaptionFontSchema),
|
|
97
97
|
background: z.optional(captionpropertiesCaptionBackgroundSchema),
|
|
@@ -103,7 +103,7 @@ export const captionassetCaptionAssetSchema = z.object({
|
|
|
103
103
|
speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
104
104
|
return undefined; if (Array.isArray(v))
|
|
105
105
|
return v; if (typeof v === 'string')
|
|
106
|
-
return Number(v); return v; }), z.number().gte(0).lte(10)))
|
|
106
|
+
return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
107
107
|
});
|
|
108
108
|
export const captionAssetSchema = captionassetCaptionAssetSchema;
|
|
109
109
|
/**
|
|
@@ -118,23 +118,17 @@ export const chromakeyChromaKeySchema = z.object({
|
|
|
118
118
|
halo: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
119
119
|
return undefined; if (Array.isArray(v))
|
|
120
120
|
return v; if (typeof v === 'string')
|
|
121
|
-
return Number(v); return v; }), z.number().int().gte(0).lte(250)))
|
|
121
|
+
return Number(v); return v; }), z.number().int().gte(0).lte(250))),
|
|
122
122
|
});
|
|
123
123
|
export const chromaKeySchema = chromakeyChromaKeySchema;
|
|
124
124
|
/**
|
|
125
125
|
* Options for the D-ID text-to-avatar service. Set the text to be converted to an avatar and configure the avatar and background. The output will be generated as an MP4 video file.
|
|
126
126
|
*/
|
|
127
127
|
export const didTextToAvatarOptionsDidTextToAvatarOptionsSchema = z.object({
|
|
128
|
-
type: z.enum([
|
|
128
|
+
type: z.enum(["text-to-avatar"]),
|
|
129
129
|
text: z.string(),
|
|
130
|
-
avatar: z.enum([
|
|
131
|
-
|
|
132
|
-
'lana',
|
|
133
|
-
'lily',
|
|
134
|
-
'matt',
|
|
135
|
-
'rian'
|
|
136
|
-
]),
|
|
137
|
-
background: z.optional(z.string())
|
|
130
|
+
avatar: z.enum(["jack", "lana", "lily", "matt", "rian"]),
|
|
131
|
+
background: z.optional(z.string()),
|
|
138
132
|
});
|
|
139
133
|
export const didTextToAvatarOptionsSchema = didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
|
|
140
134
|
/**
|
|
@@ -144,35 +138,37 @@ export const didTextToAvatarOptionsSchema = didTextToAvatarOptionsDidTextToAvata
|
|
|
144
138
|
* <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
|
|
145
139
|
* </ul>
|
|
146
140
|
*/
|
|
147
|
-
export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = z
|
|
148
|
-
|
|
149
|
-
|
|
141
|
+
export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = z
|
|
142
|
+
.object({
|
|
143
|
+
type: z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions"),
|
|
144
|
+
})
|
|
145
|
+
.and(didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
|
|
150
146
|
export const didGeneratedAssetOptionsSchema = didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
|
|
151
147
|
/**
|
|
152
148
|
* Generate assets using D-ID. D-ID provide a text-to-avatar service. The D-ID provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/d-id), not in the request.
|
|
153
149
|
*/
|
|
154
150
|
export const didGeneratedAssetDidGeneratedAssetSchema = z.object({
|
|
155
|
-
provider: z.enum([
|
|
156
|
-
options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema
|
|
151
|
+
provider: z.enum(["d-id"]),
|
|
152
|
+
options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
|
|
157
153
|
});
|
|
158
154
|
export const didGeneratedAssetSchema = didGeneratedAssetDidGeneratedAssetSchema;
|
|
159
155
|
/**
|
|
160
156
|
* Options for the ElevenLabs text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
|
|
161
157
|
*/
|
|
162
158
|
export const elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = z.object({
|
|
163
|
-
type: z.enum([
|
|
159
|
+
type: z.enum(["text-to-speech"]),
|
|
164
160
|
text: z.string(),
|
|
165
161
|
voice: z.enum([
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
])
|
|
162
|
+
"Adam",
|
|
163
|
+
"Antoni",
|
|
164
|
+
"Arnold",
|
|
165
|
+
"Bella",
|
|
166
|
+
"Domi",
|
|
167
|
+
"Elli",
|
|
168
|
+
"Josh",
|
|
169
|
+
"Rachel",
|
|
170
|
+
"Sam",
|
|
171
|
+
]),
|
|
176
172
|
});
|
|
177
173
|
export const elevenLabsTextToSpeechOptionsSchema = elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
|
|
178
174
|
/**
|
|
@@ -182,141 +178,143 @@ export const elevenLabsTextToSpeechOptionsSchema = elevenlabsTextToSpeechOptions
|
|
|
182
178
|
* <li><a href="#tocs_elevenlabstexttospeechoptions">ElevenLabsTextToSpeechOptions</a></li>
|
|
183
179
|
* </ul>
|
|
184
180
|
*/
|
|
185
|
-
export const elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = z
|
|
186
|
-
|
|
187
|
-
|
|
181
|
+
export const elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = z
|
|
182
|
+
.object({
|
|
183
|
+
type: z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions"),
|
|
184
|
+
})
|
|
185
|
+
.and(elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
|
|
188
186
|
export const elevenLabsGeneratedAssetOptionsSchema = elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
|
|
189
187
|
/**
|
|
190
188
|
* Generate assets using ElevenLabs. ElevenLabs provide a text-to-speech service. The ElevenLabs provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/elevenlabs), not in the request.
|
|
191
189
|
*/
|
|
192
190
|
export const elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = z.object({
|
|
193
|
-
provider: z.enum([
|
|
194
|
-
options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema
|
|
191
|
+
provider: z.enum(["elevenlabs"]),
|
|
192
|
+
options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
|
|
195
193
|
});
|
|
196
194
|
export const elevenLabsGeneratedAssetSchema = elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
|
|
197
195
|
/**
|
|
198
196
|
* Options for the HeyGen text-to-avatar service. Set the text to be converted to an avatar and configure the avatars voice, speaking style, appearance and background. The output will be generated as an MP4 video file available at the URL returned in the response.
|
|
199
197
|
*/
|
|
200
198
|
export const heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = z.object({
|
|
201
|
-
type: z.enum([
|
|
199
|
+
type: z.enum(["text-to-avatar"]),
|
|
202
200
|
text: z.string(),
|
|
203
201
|
avatar: z.enum([
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
202
|
+
"Angela",
|
|
203
|
+
"Bill",
|
|
204
|
+
"Daisy",
|
|
205
|
+
"Derek",
|
|
206
|
+
"Eva",
|
|
207
|
+
"Jake",
|
|
208
|
+
"Jeff",
|
|
209
|
+
"Jerome",
|
|
210
|
+
"Joon",
|
|
211
|
+
"Kayla",
|
|
212
|
+
"Kent",
|
|
213
|
+
"Luna",
|
|
214
|
+
"Mark",
|
|
215
|
+
"Matthew",
|
|
216
|
+
"Monica",
|
|
217
|
+
"Peter",
|
|
218
|
+
"Selina",
|
|
219
|
+
"Tanya",
|
|
220
|
+
"Thomas",
|
|
221
|
+
"Tina",
|
|
222
|
+
"Tyler",
|
|
223
|
+
"Vanessa",
|
|
224
|
+
"Vera",
|
|
225
|
+
"Wilson",
|
|
226
|
+
"Zoey",
|
|
229
227
|
]),
|
|
230
228
|
voice: z.enum([
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
|
-
|
|
229
|
+
"Abbi - Natural",
|
|
230
|
+
"Adam - Natural",
|
|
231
|
+
"Aiston - Friendly",
|
|
232
|
+
"Alice - Newscaster",
|
|
233
|
+
"Alison - Cheerful",
|
|
234
|
+
"Amber - Friendly",
|
|
235
|
+
"Amy - Warm",
|
|
236
|
+
"Ana - Cheerful",
|
|
237
|
+
"Antoni - Friendly",
|
|
238
|
+
"Aria - Newscaster",
|
|
239
|
+
"Arnold - Cheerful",
|
|
240
|
+
"Arthur - Natural",
|
|
241
|
+
"Bella - Friendly",
|
|
242
|
+
"Belle - Natural",
|
|
243
|
+
"Brandon - Warm",
|
|
244
|
+
"Brian - Natural",
|
|
245
|
+
"Bruce - Natural",
|
|
246
|
+
"Cerise - Cheerful",
|
|
247
|
+
"Christopher - Calm",
|
|
248
|
+
"Clara - Professional",
|
|
249
|
+
"Connor - Natural",
|
|
250
|
+
"Dahlia - Friendly",
|
|
251
|
+
"Davis - Professional",
|
|
252
|
+
"Dean - Natural",
|
|
253
|
+
"Delbert - Cheerful",
|
|
254
|
+
"Edward - Friendly",
|
|
255
|
+
"Elaine - Calm",
|
|
256
|
+
"Emily - Natural",
|
|
257
|
+
"Emma - Newscaster",
|
|
258
|
+
"Eric - Newscaster",
|
|
259
|
+
"Grace - Natural",
|
|
260
|
+
"Hailey - Calm",
|
|
261
|
+
"Indira - Cheerful",
|
|
262
|
+
"Isabella - Cheerful",
|
|
263
|
+
"Jacob - Natural",
|
|
264
|
+
"Jahmai - Friendly",
|
|
265
|
+
"Jane - Serious",
|
|
266
|
+
"Jason - Serious",
|
|
267
|
+
"Jelle - Friendly",
|
|
268
|
+
"Jen - Natural",
|
|
269
|
+
"Jenny - Professional",
|
|
270
|
+
"Jodi - Cheerful",
|
|
271
|
+
"Joey - Calm",
|
|
272
|
+
"Johan - Friendly",
|
|
273
|
+
"Josie - Cheerful",
|
|
274
|
+
"Keanan - Natural",
|
|
275
|
+
"Keith - Cheerful",
|
|
276
|
+
"Kellie - Friendly",
|
|
277
|
+
"Lauren - Friendly",
|
|
278
|
+
"Leah - Natural",
|
|
279
|
+
"Liam - Professional",
|
|
280
|
+
"Libby - Natural",
|
|
281
|
+
"Lily - Professional",
|
|
282
|
+
"Lucas - Natural",
|
|
283
|
+
"Luke - Professional",
|
|
284
|
+
"Luna - Natural",
|
|
285
|
+
"Marieke - Natural",
|
|
286
|
+
"Matthew - Professional",
|
|
287
|
+
"Michelle - Natural",
|
|
288
|
+
"Mitchell - Natural",
|
|
289
|
+
"Molly - Newscaster",
|
|
290
|
+
"Monica - Calm",
|
|
291
|
+
"Natasha - Professional",
|
|
292
|
+
"Neerja - Newscaster",
|
|
293
|
+
"Noah - Serious",
|
|
294
|
+
"Oliver - Newscaster",
|
|
295
|
+
"Olivia - Calm",
|
|
296
|
+
"Paul - Natural",
|
|
297
|
+
"Prabhat - Natural",
|
|
298
|
+
"Raveena - Natural",
|
|
299
|
+
"Rudi - Friendly",
|
|
300
|
+
"Ryan - Professional",
|
|
301
|
+
"Sam - Natural",
|
|
302
|
+
"Sara - Cheerful",
|
|
303
|
+
"Sherry - Friendly",
|
|
304
|
+
"Sonia - Warm",
|
|
305
|
+
"Thomas - Natural",
|
|
306
|
+
"Todd - Professional",
|
|
307
|
+
"Tony - Professional",
|
|
308
|
+
"Tracy - Cheerful",
|
|
309
|
+
"Wayne - Natural",
|
|
310
|
+
"Wilder - Natural",
|
|
311
|
+
"Wille - Natural",
|
|
312
|
+
"William - Friendly",
|
|
315
313
|
]),
|
|
316
|
-
avatarStyle: z.optional(z.enum([
|
|
314
|
+
avatarStyle: z.optional(z.enum(["normal", "circle"])),
|
|
317
315
|
background: z.optional(z.string()),
|
|
318
|
-
ratio: z.optional(z.enum([
|
|
319
|
-
test: z.optional(z.boolean())
|
|
316
|
+
ratio: z.optional(z.enum(["16:9", "9:16"])),
|
|
317
|
+
test: z.optional(z.boolean()),
|
|
320
318
|
});
|
|
321
319
|
export const heyGenTextToAvatarOptionsSchema = heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
|
|
322
320
|
/**
|
|
@@ -326,26 +324,28 @@ export const heyGenTextToAvatarOptionsSchema = heygenTextToAvatarOptionsHeyGenTe
|
|
|
326
324
|
* <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
|
|
327
325
|
* </ul>
|
|
328
326
|
*/
|
|
329
|
-
export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = z
|
|
330
|
-
|
|
331
|
-
|
|
327
|
+
export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = z
|
|
328
|
+
.object({
|
|
329
|
+
type: z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions"),
|
|
330
|
+
})
|
|
331
|
+
.and(heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
|
|
332
332
|
export const heyGenGeneratedAssetOptionsSchema = heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
|
|
333
333
|
/**
|
|
334
334
|
* Generate assets using HeyGen. HeyGen provide a text-to-avatar service. The HeyGen provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/heygen), not in the request.
|
|
335
335
|
*/
|
|
336
336
|
export const heygenGeneratedAssetHeyGenGeneratedAssetSchema = z.object({
|
|
337
|
-
provider: z.enum([
|
|
338
|
-
options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema
|
|
337
|
+
provider: z.enum(["heygen"]),
|
|
338
|
+
options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
|
|
339
339
|
});
|
|
340
340
|
export const heyGenGeneratedAssetSchema = heygenGeneratedAssetHeyGenGeneratedAssetSchema;
|
|
341
341
|
/**
|
|
342
342
|
* Options for the OpenAI text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
|
|
343
343
|
*/
|
|
344
344
|
export const openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = z.object({
|
|
345
|
-
type: z.enum([
|
|
345
|
+
type: z.enum(["text-generator"]),
|
|
346
346
|
prompt: z.string(),
|
|
347
|
-
model: z.enum([
|
|
348
|
-
systemPrompt: z.optional(z.string())
|
|
347
|
+
model: z.enum(["gpt-3.5-turbo", "gpt-4"]),
|
|
348
|
+
systemPrompt: z.optional(z.string()),
|
|
349
349
|
});
|
|
350
350
|
export const openAiTextGeneratorOptionsSchema = openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
|
|
351
351
|
/**
|
|
@@ -355,16 +355,18 @@ export const openAiTextGeneratorOptionsSchema = openaiTextGeneratorOptionsOpenAi
|
|
|
355
355
|
* <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
|
|
356
356
|
* </ul>
|
|
357
357
|
*/
|
|
358
|
-
export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = z
|
|
359
|
-
|
|
360
|
-
|
|
358
|
+
export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = z
|
|
359
|
+
.object({
|
|
360
|
+
type: z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions"),
|
|
361
|
+
})
|
|
362
|
+
.and(openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
|
|
361
363
|
export const openAiGeneratedAssetOptionsSchema = openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
|
|
362
364
|
/**
|
|
363
365
|
* Generate assets using OpenAI. OpenAI provide a text generation service using ChatGPT 3.5 and 4. The OpenAI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/openai), not in the request.
|
|
364
366
|
*/
|
|
365
367
|
export const openaiGeneratedAssetOpenAiGeneratedAssetSchema = z.object({
|
|
366
|
-
provider: z.enum([
|
|
367
|
-
options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema
|
|
368
|
+
provider: z.enum(["openai"]),
|
|
369
|
+
options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
|
|
368
370
|
});
|
|
369
371
|
export const openAiGeneratedAssetSchema = openaiGeneratedAssetOpenAiGeneratedAssetSchema;
|
|
370
372
|
/**
|
|
@@ -373,14 +375,14 @@ export const openAiGeneratedAssetSchema = openaiGeneratedAssetOpenAiGeneratedAss
|
|
|
373
375
|
export const generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = z.object({
|
|
374
376
|
status: z.string(),
|
|
375
377
|
title: z.string(),
|
|
376
|
-
detail: z.string()
|
|
378
|
+
detail: z.string(),
|
|
377
379
|
});
|
|
378
380
|
export const generatedAssetErrorResponseDataSchema = generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
|
|
379
381
|
/**
|
|
380
382
|
* Error response data for validation and other errors returned by the Create API.
|
|
381
383
|
*/
|
|
382
384
|
export const generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = z.object({
|
|
383
|
-
errors: z.array(generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema)
|
|
385
|
+
errors: z.array(generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema),
|
|
384
386
|
});
|
|
385
387
|
export const generatedAssetErrorResponseSchema = generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
|
|
386
388
|
/**
|
|
@@ -388,23 +390,12 @@ export const generatedAssetErrorResponseSchema = generatedAssetErrorResponseGene
|
|
|
388
390
|
*/
|
|
389
391
|
export const generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = z.object({
|
|
390
392
|
owner: z.string(),
|
|
391
|
-
provider: z.enum([
|
|
392
|
-
|
|
393
|
-
'elevenlabs',
|
|
394
|
-
'heygen',
|
|
395
|
-
'd-id'
|
|
396
|
-
]),
|
|
397
|
-
type: z.enum(['text-to-speech', 'text-to-avatar']),
|
|
393
|
+
provider: z.enum(["shotstack", "elevenlabs", "heygen", "d-id"]),
|
|
394
|
+
type: z.enum(["text-to-speech", "text-to-avatar"]),
|
|
398
395
|
url: z.optional(z.string()),
|
|
399
|
-
status: z.enum([
|
|
400
|
-
'queued',
|
|
401
|
-
'processing',
|
|
402
|
-
'saving',
|
|
403
|
-
'done',
|
|
404
|
-
'failed'
|
|
405
|
-
]),
|
|
396
|
+
status: z.enum(["queued", "processing", "saving", "done", "failed"]),
|
|
406
397
|
created: z.string(),
|
|
407
|
-
updated: z.string()
|
|
398
|
+
updated: z.string(),
|
|
408
399
|
});
|
|
409
400
|
export const generatedAssetResponseAttributesSchema = generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
|
|
410
401
|
/**
|
|
@@ -413,21 +404,21 @@ export const generatedAssetResponseAttributesSchema = generatedAssetResponseAttr
|
|
|
413
404
|
export const generatedAssetResponseDataGeneratedAssetResponseDataSchema = z.object({
|
|
414
405
|
type: z.string(),
|
|
415
406
|
id: z.string(),
|
|
416
|
-
attributes: generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema
|
|
407
|
+
attributes: generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
|
|
417
408
|
});
|
|
418
409
|
export const generatedAssetResponseDataSchema = generatedAssetResponseDataGeneratedAssetResponseDataSchema;
|
|
419
410
|
/**
|
|
420
411
|
* The response returned by the Create API [generate asset](#generate-asset) and [get generated asset](#get-generated-asset) requests. Includes status and details of the generated asset. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
421
412
|
*/
|
|
422
413
|
export const generatedAssetResponseGeneratedAssetResponseSchema = z.object({
|
|
423
|
-
data: generatedAssetResponseDataGeneratedAssetResponseDataSchema
|
|
414
|
+
data: generatedAssetResponseDataGeneratedAssetResponseDataSchema,
|
|
424
415
|
});
|
|
425
416
|
export const generatedAssetResponseSchema = generatedAssetResponseGeneratedAssetResponseSchema;
|
|
426
417
|
/**
|
|
427
418
|
* Options for the Shotstack image-to-video service. Set the URL of an image to convert in to a video. The output will be generated as an MP4 file available at the URL returned in the response.
|
|
428
419
|
*/
|
|
429
420
|
export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = z.object({
|
|
430
|
-
type: z.enum([
|
|
421
|
+
type: z.enum(["image-to-video"]),
|
|
431
422
|
imageUrl: z.string(),
|
|
432
423
|
guidanceScale: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
433
424
|
return undefined; if (Array.isArray(v))
|
|
@@ -436,22 +427,22 @@ export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = z.
|
|
|
436
427
|
motion: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
437
428
|
return undefined; if (Array.isArray(v))
|
|
438
429
|
return v; if (typeof v === 'string')
|
|
439
|
-
return Number(v); return v; }), z.number().int())).default(127)
|
|
430
|
+
return Number(v); return v; }), z.number().int())).default(127),
|
|
440
431
|
});
|
|
441
432
|
export const shotstackImageToVideoOptionsSchema = shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
|
|
442
433
|
/**
|
|
443
434
|
* Options for the Shotstack text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
|
|
444
435
|
*/
|
|
445
436
|
export const shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = z.object({
|
|
446
|
-
type: z.enum([
|
|
447
|
-
prompt: z.string()
|
|
437
|
+
type: z.enum(["text-generator"]),
|
|
438
|
+
prompt: z.string(),
|
|
448
439
|
});
|
|
449
440
|
export const shotstackTextGeneratorOptionsSchema = shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
|
|
450
441
|
/**
|
|
451
442
|
* Options for the Shotstack text-to-image service. Set a text prompt to generate an image from. The output will be generated as a PNG file available at the URL returned in the response.
|
|
452
443
|
*/
|
|
453
444
|
export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = z.object({
|
|
454
|
-
type: z.enum([
|
|
445
|
+
type: z.enum(["text-to-image"]),
|
|
455
446
|
prompt: z.string(),
|
|
456
447
|
width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
457
448
|
return undefined; if (Array.isArray(v))
|
|
@@ -460,146 +451,154 @@ export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = z.ob
|
|
|
460
451
|
height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
461
452
|
return undefined; if (Array.isArray(v))
|
|
462
453
|
return v; if (typeof v === 'string')
|
|
463
|
-
return Number(v); return v; }), z.number().int())
|
|
454
|
+
return Number(v); return v; }), z.number().int()),
|
|
464
455
|
});
|
|
465
456
|
export const shotstackTextToImageOptionsSchema = shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
|
|
466
457
|
/**
|
|
467
458
|
* Options for the Shotstack text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
|
|
468
459
|
*/
|
|
469
460
|
export const shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = z.object({
|
|
470
|
-
type: z.enum([
|
|
461
|
+
type: z.enum(["text-to-speech"]),
|
|
471
462
|
text: z.string(),
|
|
472
463
|
voice: z.enum([
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
464
|
+
"Hala",
|
|
465
|
+
"Lisa",
|
|
466
|
+
"Arlet",
|
|
467
|
+
"Hiujin",
|
|
468
|
+
"Zhiyu",
|
|
469
|
+
"Sofie",
|
|
470
|
+
"Laura",
|
|
471
|
+
"Olivia",
|
|
472
|
+
"Amy",
|
|
473
|
+
"Emma",
|
|
474
|
+
"Brian",
|
|
475
|
+
"Arthur",
|
|
476
|
+
"Kajal",
|
|
477
|
+
"Niamh",
|
|
478
|
+
"Aria",
|
|
479
|
+
"Ayanda",
|
|
480
|
+
"Ivy",
|
|
481
|
+
"Joanna",
|
|
482
|
+
"Kendra",
|
|
483
|
+
"Kimberly",
|
|
484
|
+
"Salli",
|
|
485
|
+
"Joey",
|
|
486
|
+
"Justin",
|
|
487
|
+
"Kevin",
|
|
488
|
+
"Matthew",
|
|
489
|
+
"Ruth",
|
|
490
|
+
"Stephen",
|
|
491
|
+
"Suvi",
|
|
492
|
+
"Léa",
|
|
493
|
+
"Rémi",
|
|
494
|
+
"Gabrielle",
|
|
495
|
+
"Liam",
|
|
496
|
+
"Vicki",
|
|
497
|
+
"Daniel",
|
|
498
|
+
"Hannah",
|
|
499
|
+
"Kajal",
|
|
500
|
+
"Bianca",
|
|
501
|
+
"Adriano",
|
|
502
|
+
"Takumi",
|
|
503
|
+
"Kazuha",
|
|
504
|
+
"Tomoko",
|
|
505
|
+
"Seoyeon",
|
|
506
|
+
"Ida",
|
|
507
|
+
"Ola",
|
|
508
|
+
"Camila",
|
|
509
|
+
"Vitória",
|
|
510
|
+
"Vitoria",
|
|
511
|
+
"Thiago",
|
|
512
|
+
"Inês",
|
|
513
|
+
"Ines",
|
|
514
|
+
"Lucia",
|
|
515
|
+
"Sergio",
|
|
516
|
+
"Mia",
|
|
517
|
+
"Andrés",
|
|
518
|
+
"Lupe",
|
|
519
|
+
"Pedro",
|
|
520
|
+
"Elin",
|
|
530
521
|
]),
|
|
531
522
|
language: z.optional(z.enum([
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
523
|
+
"cmn-CN",
|
|
524
|
+
"da-DK",
|
|
525
|
+
"de-DE",
|
|
526
|
+
"en-AU",
|
|
527
|
+
"en-GB",
|
|
528
|
+
"en-IN",
|
|
529
|
+
"en-US",
|
|
530
|
+
"es-ES",
|
|
531
|
+
"es-MX",
|
|
532
|
+
"es-US",
|
|
533
|
+
"fr-CA",
|
|
534
|
+
"fr-FR",
|
|
535
|
+
"it-IT",
|
|
536
|
+
"ja-JP",
|
|
537
|
+
"hi-IN",
|
|
538
|
+
"ko-KR",
|
|
539
|
+
"nb-NO",
|
|
540
|
+
"nl-NL",
|
|
541
|
+
"pl-PL",
|
|
542
|
+
"pt-BR",
|
|
543
|
+
"pt-PT",
|
|
544
|
+
"sv-SE",
|
|
545
|
+
"en-NZ",
|
|
546
|
+
"en-ZA",
|
|
547
|
+
"ca-ES",
|
|
548
|
+
"de-AT",
|
|
549
|
+
"yue-CN",
|
|
550
|
+
"ar-AE",
|
|
551
|
+
"fi-FI",
|
|
561
552
|
])),
|
|
562
|
-
newscaster: z.optional(z.boolean()).default(false)
|
|
553
|
+
newscaster: z.optional(z.boolean()).default(false),
|
|
563
554
|
});
|
|
564
555
|
export const shotstackTextToSpeechOptionsSchema = shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
|
|
565
556
|
/**
|
|
566
557
|
* Generate assets using the native Shotstack provider AI services.
|
|
567
558
|
*/
|
|
568
559
|
export const shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = z.union([
|
|
569
|
-
z
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
type: z.literal(
|
|
577
|
-
})
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
560
|
+
z
|
|
561
|
+
.object({
|
|
562
|
+
type: z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions"),
|
|
563
|
+
})
|
|
564
|
+
.and(shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
|
|
565
|
+
z
|
|
566
|
+
.object({
|
|
567
|
+
type: z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions"),
|
|
568
|
+
})
|
|
569
|
+
.and(shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
|
|
570
|
+
z
|
|
571
|
+
.object({
|
|
572
|
+
type: z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions"),
|
|
573
|
+
})
|
|
574
|
+
.and(shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
|
|
575
|
+
z
|
|
576
|
+
.object({
|
|
577
|
+
type: z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions"),
|
|
578
|
+
})
|
|
579
|
+
.and(shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema),
|
|
581
580
|
]);
|
|
582
581
|
export const shotstackGeneratedAssetOptionsSchema = shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
|
|
583
582
|
/**
|
|
584
583
|
* Generate assets using the native Shotstack provider. Shotstack provides a text-to-speech and a text-to-image service. The Shotstack provider works natively with your existing API key, no additional credentials are required.
|
|
585
584
|
*/
|
|
586
585
|
export const shotstackGeneratedAssetShotstackGeneratedAssetSchema = z.object({
|
|
587
|
-
provider: z.enum([
|
|
588
|
-
options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema
|
|
586
|
+
provider: z.enum(["shotstack"]),
|
|
587
|
+
options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
|
|
589
588
|
});
|
|
590
589
|
export const shotstackGeneratedAssetSchema = shotstackGeneratedAssetShotstackGeneratedAssetSchema;
|
|
591
590
|
/**
|
|
592
591
|
* Options for the Stability AI text-to-image service. Set a text prompt to generate an image from plus other engine and configuration options. The output will be generated as a JPG file available at the URL returned in the response.
|
|
593
592
|
*/
|
|
594
593
|
export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = z.object({
|
|
595
|
-
type: z.enum([
|
|
594
|
+
type: z.enum(["text-to-image"]),
|
|
596
595
|
prompt: z.string(),
|
|
597
596
|
engine: z.optional(z.enum([
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
597
|
+
"stable-diffusion-xl-1024-v0-9",
|
|
598
|
+
"stable-diffusion-xl-1024-v1-0",
|
|
599
|
+
"stable-diffusion-v1-6",
|
|
600
|
+
"stable-diffusion-512-v2-1",
|
|
601
|
+
"stable-diffusion-xl-beta-v2-2-2",
|
|
603
602
|
])),
|
|
604
603
|
width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
605
604
|
return undefined; if (Array.isArray(v))
|
|
@@ -622,24 +621,24 @@ export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema =
|
|
|
622
621
|
return v; if (typeof v === 'string')
|
|
623
622
|
return Number(v); return v; }), z.number())).default(7),
|
|
624
623
|
stylePreset: z.optional(z.enum([
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
]))
|
|
624
|
+
"3d-model",
|
|
625
|
+
"analog-film",
|
|
626
|
+
"anime",
|
|
627
|
+
"cinematic",
|
|
628
|
+
"comic-book",
|
|
629
|
+
"digital-art",
|
|
630
|
+
"enhance",
|
|
631
|
+
"fantasy-art",
|
|
632
|
+
"isometric",
|
|
633
|
+
"line-art",
|
|
634
|
+
"low-poly",
|
|
635
|
+
"modeling-compound",
|
|
636
|
+
"neon-punk",
|
|
637
|
+
"origami",
|
|
638
|
+
"photographic",
|
|
639
|
+
"pixel-art",
|
|
640
|
+
"tile-texture",
|
|
641
|
+
])),
|
|
643
642
|
});
|
|
644
643
|
export const stabilityAiTextToImageOptionsSchema = stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
|
|
645
644
|
/**
|
|
@@ -649,40 +648,54 @@ export const stabilityAiTextToImageOptionsSchema = stabilityAiTextToImageOptions
|
|
|
649
648
|
* <li><a href="#tocs_stabilityaitexttoimageoptions">StabilityAiTextToImageOptions</a></li>
|
|
650
649
|
* </ul>
|
|
651
650
|
*/
|
|
652
|
-
export const stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = z
|
|
653
|
-
|
|
654
|
-
|
|
651
|
+
export const stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = z
|
|
652
|
+
.object({
|
|
653
|
+
type: z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions"),
|
|
654
|
+
})
|
|
655
|
+
.and(stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
|
|
655
656
|
export const stabilityAiGeneratedAssetOptionsSchema = stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
|
|
656
657
|
/**
|
|
657
658
|
* Generate assets using Stability AI. Stability AI provide a text-to-image service using Stable Diffusion. The Stability AI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/stability-ai), not in the request.
|
|
658
659
|
*/
|
|
659
660
|
export const stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = z.object({
|
|
660
|
-
provider: z.enum([
|
|
661
|
-
options: stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema
|
|
661
|
+
provider: z.enum(["stability-ai"]),
|
|
662
|
+
options: stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
|
|
662
663
|
});
|
|
663
664
|
export const stabilityAiGeneratedAssetSchema = stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
|
|
664
665
|
/**
|
|
665
666
|
* A generated asset is a media asset created by the Create API. You can use native or third party providers to generate video, audio and image files using Generative AI services like text-to-speech and text-to-avatar.
|
|
666
667
|
*/
|
|
667
668
|
export const generatedAssetGeneratedAssetSchema = z.union([
|
|
668
|
-
z
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
provider: z.literal(
|
|
676
|
-
})
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
z
|
|
684
|
-
|
|
685
|
-
|
|
669
|
+
z
|
|
670
|
+
.object({
|
|
671
|
+
provider: z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset"),
|
|
672
|
+
})
|
|
673
|
+
.and(shotstackGeneratedAssetShotstackGeneratedAssetSchema),
|
|
674
|
+
z
|
|
675
|
+
.object({
|
|
676
|
+
provider: z.literal("didGeneratedAsset_DIDGeneratedAsset"),
|
|
677
|
+
})
|
|
678
|
+
.and(didGeneratedAssetDidGeneratedAssetSchema),
|
|
679
|
+
z
|
|
680
|
+
.object({
|
|
681
|
+
provider: z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset"),
|
|
682
|
+
})
|
|
683
|
+
.and(elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
|
|
684
|
+
z
|
|
685
|
+
.object({
|
|
686
|
+
provider: z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset"),
|
|
687
|
+
})
|
|
688
|
+
.and(heygenGeneratedAssetHeyGenGeneratedAssetSchema),
|
|
689
|
+
z
|
|
690
|
+
.object({
|
|
691
|
+
provider: z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset"),
|
|
692
|
+
})
|
|
693
|
+
.and(openaiGeneratedAssetOpenAiGeneratedAssetSchema),
|
|
694
|
+
z
|
|
695
|
+
.object({
|
|
696
|
+
provider: z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset"),
|
|
697
|
+
})
|
|
698
|
+
.and(stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema),
|
|
686
699
|
]);
|
|
687
700
|
export const generatedAssetSchema = generatedAssetGeneratedAssetSchema;
|
|
688
701
|
/**
|
|
@@ -704,7 +717,7 @@ export const cropCropSchema = z.object({
|
|
|
704
717
|
right: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
705
718
|
return undefined; if (Array.isArray(v))
|
|
706
719
|
return v; if (typeof v === 'string')
|
|
707
|
-
return Number(v); return v; }), z.number().gte(0).lte(1)))
|
|
720
|
+
return Number(v); return v; }), z.number().gte(0).lte(1))),
|
|
708
721
|
});
|
|
709
722
|
export const cropSchema = cropCropSchema;
|
|
710
723
|
/**
|
|
@@ -713,15 +726,15 @@ export const cropSchema = cropCropSchema;
|
|
|
713
726
|
export const googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = z.object({
|
|
714
727
|
bucket: z.string(),
|
|
715
728
|
prefix: z.optional(z.string()),
|
|
716
|
-
filename: z.optional(z.string())
|
|
729
|
+
filename: z.optional(z.string()),
|
|
717
730
|
});
|
|
718
731
|
export const googleCloudStorageDestinationOptionsSchema = googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
|
|
719
732
|
/**
|
|
720
733
|
* Send videos and assets to a [Google Cloud Storage](https://cloud.google.com/storage) bucket. Send files with your own prefix and filename. Google Cloud credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/google-cloud-storage), not in the request.
|
|
721
734
|
*/
|
|
722
735
|
export const googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = z.object({
|
|
723
|
-
provider: z.literal(
|
|
724
|
-
options: z.optional(googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
|
|
736
|
+
provider: z.literal("google-cloud-storage"),
|
|
737
|
+
options: z.optional(googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema),
|
|
725
738
|
});
|
|
726
739
|
export const googleCloudStorageDestinationSchema = googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
|
|
727
740
|
/**
|
|
@@ -729,31 +742,31 @@ export const googleCloudStorageDestinationSchema = googleCloudStorageDestination
|
|
|
729
742
|
*/
|
|
730
743
|
export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = z.object({
|
|
731
744
|
folderId: z.string(),
|
|
732
|
-
filename: z.optional(z.string())
|
|
745
|
+
filename: z.optional(z.string()),
|
|
733
746
|
});
|
|
734
747
|
export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
|
|
735
748
|
/**
|
|
736
749
|
* Send rendered videos and assets to the [Google Drive](https://shotstack.io/docs/guide/serving-assets/destinations/google-drive/) cloud storage service. Google Drive uses OAuth and you must authenticate and link your Google account via [dashboard](https://dashboard.shotstack.io/integrations/google-drive), not in the request.
|
|
737
750
|
*/
|
|
738
751
|
export const googleDriveDestinationGoogleDriveDestinationSchema = z.object({
|
|
739
|
-
provider: z.literal(
|
|
740
|
-
options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
|
|
752
|
+
provider: z.literal("google-drive"),
|
|
753
|
+
options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
|
|
741
754
|
});
|
|
742
755
|
export const googleDriveDestinationSchema = googleDriveDestinationGoogleDriveDestinationSchema;
|
|
743
756
|
/**
|
|
744
757
|
* Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
|
|
745
758
|
*/
|
|
746
759
|
export const muxDestinationOptionsMuxDestinationOptionsSchema = z.object({
|
|
747
|
-
playbackPolicy: z.optional(z.array(z.enum([
|
|
748
|
-
passthrough: z.optional(z.string().max(255))
|
|
760
|
+
playbackPolicy: z.optional(z.array(z.enum(["public", "signed"]))),
|
|
761
|
+
passthrough: z.optional(z.string().max(255)),
|
|
749
762
|
});
|
|
750
763
|
export const muxDestinationOptionsSchema = muxDestinationOptionsMuxDestinationOptionsSchema;
|
|
751
764
|
/**
|
|
752
765
|
* Send videos to the [Mux](https://shotstack.io/docs/guide/serving-assets/destinations/mux/) video hosting and streaming service. Mux credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/mux), not in the request.
|
|
753
766
|
*/
|
|
754
767
|
export const muxDestinationMuxDestinationSchema = z.object({
|
|
755
|
-
provider: z.literal(
|
|
756
|
-
options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema)
|
|
768
|
+
provider: z.literal("mux"),
|
|
769
|
+
options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema),
|
|
757
770
|
});
|
|
758
771
|
export const muxDestinationSchema = muxDestinationMuxDestinationSchema;
|
|
759
772
|
/**
|
|
@@ -764,23 +777,23 @@ export const s3DestinationOptionsS3DestinationOptionsSchema = z.object({
|
|
|
764
777
|
bucket: z.string(),
|
|
765
778
|
prefix: z.optional(z.string()),
|
|
766
779
|
filename: z.optional(z.string()),
|
|
767
|
-
acl: z.optional(z.string())
|
|
780
|
+
acl: z.optional(z.string()),
|
|
768
781
|
});
|
|
769
782
|
export const s3DestinationOptionsSchema = s3DestinationOptionsS3DestinationOptionsSchema;
|
|
770
783
|
/**
|
|
771
784
|
* Send videos and assets to an [Amazon S3](https://shotstack.io/docs/guide/serving-assets/destinations/s3/) bucket. Send files to any region with your own prefix and filename. AWS credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/s3), not in the request.
|
|
772
785
|
*/
|
|
773
786
|
export const s3DestinationS3DestinationSchema = z.object({
|
|
774
|
-
provider: z.literal(
|
|
775
|
-
options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema)
|
|
787
|
+
provider: z.literal("s3"),
|
|
788
|
+
options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema),
|
|
776
789
|
});
|
|
777
790
|
export const s3DestinationSchema = s3DestinationS3DestinationSchema;
|
|
778
791
|
/**
|
|
779
792
|
* Send videos and assets to the [Shotstack hosting and CDN](https://shotstack.io/docs/guide/serving-assets/destinations/shotstack/) service. This destination is enabled by default.
|
|
780
793
|
*/
|
|
781
794
|
export const shotstackDestinationShotstackDestinationSchema = z.object({
|
|
782
|
-
provider: z.literal(
|
|
783
|
-
exclude: z.optional(z.boolean())
|
|
795
|
+
provider: z.literal("shotstack"),
|
|
796
|
+
exclude: z.optional(z.boolean()),
|
|
784
797
|
});
|
|
785
798
|
export const shotstackDestinationSchema = shotstackDestinationShotstackDestinationSchema;
|
|
786
799
|
/**
|
|
@@ -788,45 +801,27 @@ export const shotstackDestinationSchema = shotstackDestinationShotstackDestinati
|
|
|
788
801
|
*/
|
|
789
802
|
export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
|
|
790
803
|
title: z.optional(z.string().max(150)),
|
|
791
|
-
privacyLevel: z.optional(z.enum([
|
|
792
|
-
'public',
|
|
793
|
-
'friends',
|
|
794
|
-
'private'
|
|
795
|
-
])),
|
|
804
|
+
privacyLevel: z.optional(z.enum(["public", "friends", "private"])),
|
|
796
805
|
disableDuet: z.optional(z.boolean()).default(false),
|
|
797
806
|
disableStitch: z.optional(z.boolean()).default(false),
|
|
798
|
-
disableComment: z.optional(z.boolean()).default(false)
|
|
807
|
+
disableComment: z.optional(z.boolean()).default(false),
|
|
799
808
|
});
|
|
800
809
|
/**
|
|
801
810
|
* Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
|
|
802
811
|
*/
|
|
803
812
|
export const tiktokDestinationTiktokDestinationSchema = z.object({
|
|
804
|
-
provider: z.literal(
|
|
805
|
-
options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema)
|
|
813
|
+
provider: z.literal("tiktok"),
|
|
814
|
+
options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema),
|
|
806
815
|
});
|
|
807
816
|
/**
|
|
808
817
|
* Options to control the visibility of videos and privacy features.
|
|
809
818
|
*/
|
|
810
819
|
export const vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = z.object({
|
|
811
|
-
view: z.optional(z.enum([
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
'contacts',
|
|
815
|
-
'password',
|
|
816
|
-
'unlisted'
|
|
817
|
-
])),
|
|
818
|
-
embed: z.optional(z.enum([
|
|
819
|
-
'public',
|
|
820
|
-
'private',
|
|
821
|
-
'whitelist'
|
|
822
|
-
])),
|
|
823
|
-
comments: z.optional(z.enum([
|
|
824
|
-
'anybody',
|
|
825
|
-
'nobody',
|
|
826
|
-
'contacts'
|
|
827
|
-
])),
|
|
820
|
+
view: z.optional(z.enum(["anybody", "nobody", "contacts", "password", "unlisted"])),
|
|
821
|
+
embed: z.optional(z.enum(["public", "private", "whitelist"])),
|
|
822
|
+
comments: z.optional(z.enum(["anybody", "nobody", "contacts"])),
|
|
828
823
|
download: z.optional(z.boolean()),
|
|
829
|
-
add: z.optional(z.boolean())
|
|
824
|
+
add: z.optional(z.boolean()),
|
|
830
825
|
});
|
|
831
826
|
export const vimeoDestinationPrivacyOptionsSchema = vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
|
|
832
827
|
/**
|
|
@@ -836,15 +831,15 @@ export const vimeoDestinationOptionsVimeoDestinationOptionsSchema = z.object({
|
|
|
836
831
|
name: z.optional(z.string()),
|
|
837
832
|
description: z.optional(z.string()),
|
|
838
833
|
privacy: z.optional(vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
|
|
839
|
-
folderUri: z.optional(z.string())
|
|
834
|
+
folderUri: z.optional(z.string()),
|
|
840
835
|
});
|
|
841
836
|
export const vimeoDestinationOptionsSchema = vimeoDestinationOptionsVimeoDestinationOptionsSchema;
|
|
842
837
|
/**
|
|
843
838
|
* Send videos to [Vimeo](https://shotstack.io/docs/guide/serving-assets/destinations/vimeo/) video hosting and streaming service. Vimeo credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/vimeo), not in the request.
|
|
844
839
|
*/
|
|
845
840
|
export const vimeoDestinationVimeoDestinationSchema = z.object({
|
|
846
|
-
provider: z.literal(
|
|
847
|
-
options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema)
|
|
841
|
+
provider: z.literal("vimeo"),
|
|
842
|
+
options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema),
|
|
848
843
|
});
|
|
849
844
|
export const vimeoDestinationSchema = vimeoDestinationVimeoDestinationSchema;
|
|
850
845
|
/**
|
|
@@ -867,14 +862,14 @@ export const destinationsSchema = destinationsDestinationsSchema;
|
|
|
867
862
|
*/
|
|
868
863
|
export const fliptransformationFlipTransformationSchema = z.object({
|
|
869
864
|
horizontal: z.optional(z.boolean()),
|
|
870
|
-
vertical: z.optional(z.boolean())
|
|
865
|
+
vertical: z.optional(z.boolean()),
|
|
871
866
|
});
|
|
872
867
|
export const flipTransformationSchema = fliptransformationFlipTransformationSchema;
|
|
873
868
|
/**
|
|
874
869
|
* Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag. See our [custom fonts](https://shotstack.io/learn/html-custom-fonts/) getting started guide for more details.
|
|
875
870
|
*/
|
|
876
871
|
export const fontFontSchema = z.object({
|
|
877
|
-
src: z.string()
|
|
872
|
+
src: z.string(),
|
|
878
873
|
});
|
|
879
874
|
export const fontSchema = fontFontSchema;
|
|
880
875
|
/**
|
|
@@ -888,7 +883,7 @@ export const fontSchema = fontFontSchema;
|
|
|
888
883
|
* @deprecated
|
|
889
884
|
*/
|
|
890
885
|
export const htmlassetHtmlAssetSchema = z.object({
|
|
891
|
-
type: z.enum([
|
|
886
|
+
type: z.enum(["html"]),
|
|
892
887
|
html: z.string(),
|
|
893
888
|
css: z.optional(z.string()),
|
|
894
889
|
width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -901,48 +896,40 @@ export const htmlassetHtmlAssetSchema = z.object({
|
|
|
901
896
|
return Number(v); return v; }), z.number().int())),
|
|
902
897
|
background: z.optional(z.string()),
|
|
903
898
|
position: z.optional(z.enum([
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
]))
|
|
899
|
+
"top",
|
|
900
|
+
"topRight",
|
|
901
|
+
"right",
|
|
902
|
+
"bottomRight",
|
|
903
|
+
"bottom",
|
|
904
|
+
"bottomLeft",
|
|
905
|
+
"left",
|
|
906
|
+
"topLeft",
|
|
907
|
+
"center",
|
|
908
|
+
])),
|
|
914
909
|
});
|
|
915
910
|
export const htmlAssetSchema = htmlassetHtmlAssetSchema;
|
|
916
911
|
/**
|
|
917
912
|
* The ImageAsset is used to create video from images to compose an image. The src must be a publicly accessible URL to an image resource such as a jpg or png file.
|
|
918
913
|
*/
|
|
919
914
|
export const imageassetImageAssetSchema = z.object({
|
|
920
|
-
type: z.enum([
|
|
915
|
+
type: z.enum(["image"]),
|
|
921
916
|
src: z.string(),
|
|
922
|
-
crop: z.optional(cropCropSchema)
|
|
917
|
+
crop: z.optional(cropCropSchema),
|
|
923
918
|
});
|
|
924
919
|
export const imageAssetSchema = imageassetImageAssetSchema;
|
|
925
920
|
/**
|
|
926
921
|
* The ImageToVideoAsset lets you create a video from an image and a text prompt.
|
|
927
922
|
*/
|
|
928
923
|
export const imagetovideoassetImageToVideoAssetSchema = z.object({
|
|
929
|
-
type: z.optional(z.enum([
|
|
924
|
+
type: z.optional(z.enum(["image-to-video"])),
|
|
930
925
|
src: z.optional(z.string()),
|
|
931
926
|
prompt: z.optional(z.string()),
|
|
932
|
-
aspectRatio: z.optional(z.enum([
|
|
933
|
-
'1:1',
|
|
934
|
-
'4:3',
|
|
935
|
-
'16:9',
|
|
936
|
-
'9:16',
|
|
937
|
-
'3:4',
|
|
938
|
-
'21:9',
|
|
939
|
-
'9:21'
|
|
940
|
-
])),
|
|
927
|
+
aspectRatio: z.optional(z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
|
|
941
928
|
speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
942
929
|
return undefined; if (Array.isArray(v))
|
|
943
930
|
return v; if (typeof v === 'string')
|
|
944
931
|
return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
945
|
-
crop: z.optional(cropCropSchema)
|
|
932
|
+
crop: z.optional(cropCropSchema),
|
|
946
933
|
});
|
|
947
934
|
export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
|
|
948
935
|
/**
|
|
@@ -950,24 +937,24 @@ export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
|
|
|
950
937
|
*/
|
|
951
938
|
export const dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = z.object({
|
|
952
939
|
preset: z.enum([
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
])
|
|
940
|
+
"conference",
|
|
941
|
+
"interview",
|
|
942
|
+
"lecture",
|
|
943
|
+
"meeting",
|
|
944
|
+
"mobile_phone",
|
|
945
|
+
"music",
|
|
946
|
+
"podcast",
|
|
947
|
+
"studio",
|
|
948
|
+
"voice_over",
|
|
949
|
+
]),
|
|
963
950
|
});
|
|
964
951
|
export const dolbyEnhancementOptionsSchema = dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
|
|
965
952
|
/**
|
|
966
953
|
* Dolby.io audio enhancement provider. Credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/dolby), not in the request.
|
|
967
954
|
*/
|
|
968
955
|
export const dolbyEnhancementDolbyEnhancementSchema = z.object({
|
|
969
|
-
provider: z.string().default(
|
|
970
|
-
options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
|
|
956
|
+
provider: z.string().default("dolby"),
|
|
957
|
+
options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
|
|
971
958
|
});
|
|
972
959
|
export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
|
|
973
960
|
/**
|
|
@@ -976,15 +963,17 @@ export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
|
|
|
976
963
|
* <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
|
|
977
964
|
* </ul>
|
|
978
965
|
*/
|
|
979
|
-
export const audioEnhancementAudioEnhancementSchema = z
|
|
980
|
-
|
|
981
|
-
|
|
966
|
+
export const audioEnhancementAudioEnhancementSchema = z
|
|
967
|
+
.object({
|
|
968
|
+
enhancement: z.literal("dolbyEnhancement_DolbyEnhancement"),
|
|
969
|
+
})
|
|
970
|
+
.and(dolbyEnhancementDolbyEnhancementSchema);
|
|
982
971
|
export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
|
|
983
972
|
/**
|
|
984
973
|
* Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
|
|
985
974
|
*/
|
|
986
975
|
export const enhancementsEnhancementsSchema = z.object({
|
|
987
|
-
audio: z.optional(audioEnhancementAudioEnhancementSchema)
|
|
976
|
+
audio: z.optional(audioEnhancementAudioEnhancementSchema),
|
|
988
977
|
});
|
|
989
978
|
export const enhancementsSchema = enhancementsEnhancementsSchema;
|
|
990
979
|
/**
|
|
@@ -993,14 +982,14 @@ export const enhancementsSchema = enhancementsEnhancementsSchema;
|
|
|
993
982
|
export const ingesterrorresponsedataIngestErrorResponseDataSchema = z.object({
|
|
994
983
|
status: z.string(),
|
|
995
984
|
title: z.string(),
|
|
996
|
-
detail: z.string()
|
|
985
|
+
detail: z.string(),
|
|
997
986
|
});
|
|
998
987
|
export const ingestErrorResponseDataSchema = ingesterrorresponsedataIngestErrorResponseDataSchema;
|
|
999
988
|
/**
|
|
1000
989
|
* Error response data for validation and other errors returned by the Ingest API.
|
|
1001
990
|
*/
|
|
1002
991
|
export const ingesterrorresponseIngestErrorResponseSchema = z.object({
|
|
1003
|
-
errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema)
|
|
992
|
+
errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema),
|
|
1004
993
|
});
|
|
1005
994
|
export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseSchema;
|
|
1006
995
|
/**
|
|
@@ -1008,14 +997,14 @@ export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseS
|
|
|
1008
997
|
*/
|
|
1009
998
|
export const queuedsourceresponsedataQueuedSourceResponseDataSchema = z.object({
|
|
1010
999
|
type: z.string(),
|
|
1011
|
-
id: z.string()
|
|
1000
|
+
id: z.string(),
|
|
1012
1001
|
});
|
|
1013
1002
|
export const queuedSourceResponseDataSchema = queuedsourceresponsedataQueuedSourceResponseDataSchema;
|
|
1014
1003
|
/**
|
|
1015
1004
|
* The response returned by the Ingest API [fetch source](#fetch-source) request. Includes the id of the source file. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1016
1005
|
*/
|
|
1017
1006
|
export const queuedsourceresponseQueuedSourceResponseSchema = z.object({
|
|
1018
|
-
data: queuedsourceresponsedataQueuedSourceResponseDataSchema
|
|
1007
|
+
data: queuedsourceresponsedataQueuedSourceResponseDataSchema,
|
|
1019
1008
|
});
|
|
1020
1009
|
export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceResponseSchema;
|
|
1021
1010
|
/**
|
|
@@ -1024,7 +1013,7 @@ export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceRespon
|
|
|
1024
1013
|
export const uploadresponseattributesUploadResponseAttributesSchema = z.object({
|
|
1025
1014
|
id: z.string(),
|
|
1026
1015
|
url: z.string(),
|
|
1027
|
-
expires: z.string()
|
|
1016
|
+
expires: z.string(),
|
|
1028
1017
|
});
|
|
1029
1018
|
export const uploadResponseAttributesSchema = uploadresponseattributesUploadResponseAttributesSchema;
|
|
1030
1019
|
/**
|
|
@@ -1033,14 +1022,14 @@ export const uploadResponseAttributesSchema = uploadresponseattributesUploadResp
|
|
|
1033
1022
|
export const uploadresponsedataUploadResponseDataSchema = z.object({
|
|
1034
1023
|
type: z.string(),
|
|
1035
1024
|
id: z.string(),
|
|
1036
|
-
attributes: uploadresponseattributesUploadResponseAttributesSchema
|
|
1025
|
+
attributes: uploadresponseattributesUploadResponseAttributesSchema,
|
|
1037
1026
|
});
|
|
1038
1027
|
export const uploadResponseDataSchema = uploadresponsedataUploadResponseDataSchema;
|
|
1039
1028
|
/**
|
|
1040
1029
|
* The response returned by the Ingest API [direct upload](#direct-upload) request. Includes the id of the file and the signed url to send the binary file to. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1041
1030
|
*/
|
|
1042
1031
|
export const uploadresponseUploadResponseSchema = z.object({
|
|
1043
|
-
data: uploadresponsedataUploadResponseDataSchema
|
|
1032
|
+
data: uploadresponsedataUploadResponseDataSchema,
|
|
1044
1033
|
});
|
|
1045
1034
|
export const uploadResponseSchema = uploadresponseUploadResponseSchema;
|
|
1046
1035
|
/**
|
|
@@ -1051,26 +1040,26 @@ export const speedSpeedSchema = z.object({
|
|
|
1051
1040
|
return undefined; if (Array.isArray(v))
|
|
1052
1041
|
return v; if (typeof v === 'string')
|
|
1053
1042
|
return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
1054
|
-
preservePitch: z.optional(z.boolean())
|
|
1043
|
+
preservePitch: z.optional(z.boolean()),
|
|
1055
1044
|
});
|
|
1056
1045
|
export const speedSchema = speedSpeedSchema;
|
|
1057
1046
|
/**
|
|
1058
1047
|
* Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
|
|
1059
1048
|
*/
|
|
1060
1049
|
export const transcriptionTranscriptionSchema = z.object({
|
|
1061
|
-
format: z.optional(z.enum([
|
|
1050
|
+
format: z.optional(z.enum(["srt", "vtt"])),
|
|
1062
1051
|
});
|
|
1063
1052
|
export const transcriptionSchema = transcriptionTranscriptionSchema;
|
|
1064
1053
|
/**
|
|
1065
1054
|
* The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.
|
|
1066
1055
|
*/
|
|
1067
1056
|
export const lumaassetLumaAssetSchema = z.object({
|
|
1068
|
-
type: z.enum([
|
|
1057
|
+
type: z.enum(["luma"]),
|
|
1069
1058
|
src: z.string(),
|
|
1070
1059
|
trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1071
1060
|
return undefined; if (Array.isArray(v))
|
|
1072
1061
|
return v; if (typeof v === 'string')
|
|
1073
|
-
return Number(v); return v; }), z.number()))
|
|
1062
|
+
return Number(v); return v; }), z.number())),
|
|
1074
1063
|
});
|
|
1075
1064
|
export const lumaAssetSchema = lumaassetLumaAssetSchema;
|
|
1076
1065
|
/**
|
|
@@ -1078,7 +1067,7 @@ export const lumaAssetSchema = lumaassetLumaAssetSchema;
|
|
|
1078
1067
|
*/
|
|
1079
1068
|
export const mergefieldMergeFieldSchema = z.object({
|
|
1080
1069
|
find: z.string(),
|
|
1081
|
-
replace: z.unknown()
|
|
1070
|
+
replace: z.unknown(),
|
|
1082
1071
|
});
|
|
1083
1072
|
export const mergeFieldSchema = mergefieldMergeFieldSchema;
|
|
1084
1073
|
/**
|
|
@@ -1088,7 +1077,7 @@ export const posterPosterSchema = z.object({
|
|
|
1088
1077
|
capture: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1089
1078
|
return undefined; if (Array.isArray(v))
|
|
1090
1079
|
return v; if (typeof v === 'string')
|
|
1091
|
-
return Number(v); return v; }), z.number())
|
|
1080
|
+
return Number(v); return v; }), z.number()),
|
|
1092
1081
|
});
|
|
1093
1082
|
export const posterSchema = posterPosterSchema;
|
|
1094
1083
|
/**
|
|
@@ -1102,7 +1091,7 @@ export const rangeRangeSchema = z.object({
|
|
|
1102
1091
|
length: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1103
1092
|
return undefined; if (Array.isArray(v))
|
|
1104
1093
|
return v; if (typeof v === 'string')
|
|
1105
|
-
return Number(v); return v; }), z.number().gte(0)))
|
|
1094
|
+
return Number(v); return v; }), z.number().gte(0))),
|
|
1106
1095
|
});
|
|
1107
1096
|
export const rangeSchema = rangeRangeSchema;
|
|
1108
1097
|
/**
|
|
@@ -1116,14 +1105,9 @@ export const assetresponseattributesAssetResponseAttributesSchema = z.object({
|
|
|
1116
1105
|
providerId: z.optional(z.string()),
|
|
1117
1106
|
filename: z.optional(z.string()),
|
|
1118
1107
|
url: z.optional(z.string()),
|
|
1119
|
-
status: z.enum([
|
|
1120
|
-
'importing',
|
|
1121
|
-
'ready',
|
|
1122
|
-
'failed',
|
|
1123
|
-
'deleted'
|
|
1124
|
-
]),
|
|
1108
|
+
status: z.enum(["importing", "ready", "failed", "deleted"]),
|
|
1125
1109
|
created: z.optional(z.string()),
|
|
1126
|
-
updated: z.optional(z.string())
|
|
1110
|
+
updated: z.optional(z.string()),
|
|
1127
1111
|
});
|
|
1128
1112
|
export const assetResponseAttributesSchema = assetresponseattributesAssetResponseAttributesSchema;
|
|
1129
1113
|
/**
|
|
@@ -1131,21 +1115,21 @@ export const assetResponseAttributesSchema = assetresponseattributesAssetRespons
|
|
|
1131
1115
|
*/
|
|
1132
1116
|
export const assetresponsedataAssetResponseDataSchema = z.object({
|
|
1133
1117
|
type: z.string(),
|
|
1134
|
-
attributes: assetresponseattributesAssetResponseAttributesSchema
|
|
1118
|
+
attributes: assetresponseattributesAssetResponseAttributesSchema,
|
|
1135
1119
|
});
|
|
1136
1120
|
export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
|
|
1137
1121
|
/**
|
|
1138
1122
|
* The response returned by the Serve API [get asset by render id](#get-asset-by-render-id) request. The response is an array of asset resources, including video, image, audio, thumbnail and poster image. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1139
1123
|
*/
|
|
1140
1124
|
export const assetrenderresponseAssetRenderResponseSchema = z.object({
|
|
1141
|
-
data: z.array(assetresponsedataAssetResponseDataSchema)
|
|
1125
|
+
data: z.array(assetresponsedataAssetResponseDataSchema),
|
|
1142
1126
|
});
|
|
1143
1127
|
export const assetRenderResponseSchema = assetrenderresponseAssetRenderResponseSchema;
|
|
1144
1128
|
/**
|
|
1145
1129
|
* The response returned by the Serve API [get asset](#get-asset) request. Includes details of a hosted video, image, audio file, thumbnail or poster image. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1146
1130
|
*/
|
|
1147
1131
|
export const assetresponseAssetResponseSchema = z.object({
|
|
1148
|
-
data: assetresponsedataAssetResponseDataSchema
|
|
1132
|
+
data: assetresponsedataAssetResponseDataSchema,
|
|
1149
1133
|
});
|
|
1150
1134
|
export const assetResponseSchema = assetresponseAssetResponseSchema;
|
|
1151
1135
|
/**
|
|
@@ -1154,7 +1138,7 @@ export const assetResponseSchema = assetresponseAssetResponseSchema;
|
|
|
1154
1138
|
export const proberesponseProbeResponseSchema = z.object({
|
|
1155
1139
|
success: z.boolean(),
|
|
1156
1140
|
message: z.string(),
|
|
1157
|
-
response: z.record(z.string(), z.unknown())
|
|
1141
|
+
response: z.record(z.string(), z.unknown()),
|
|
1158
1142
|
});
|
|
1159
1143
|
export const probeResponseSchema = proberesponseProbeResponseSchema;
|
|
1160
1144
|
/**
|
|
@@ -1162,7 +1146,7 @@ export const probeResponseSchema = proberesponseProbeResponseSchema;
|
|
|
1162
1146
|
*/
|
|
1163
1147
|
export const queuedresponsedataQueuedResponseDataSchema = z.object({
|
|
1164
1148
|
message: z.string(),
|
|
1165
|
-
id: z.string()
|
|
1149
|
+
id: z.string(),
|
|
1166
1150
|
});
|
|
1167
1151
|
export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSchema;
|
|
1168
1152
|
/**
|
|
@@ -1171,7 +1155,7 @@ export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSche
|
|
|
1171
1155
|
export const queuedresponseQueuedResponseSchema = z.object({
|
|
1172
1156
|
success: z.boolean(),
|
|
1173
1157
|
message: z.string(),
|
|
1174
|
-
response: queuedresponsedataQueuedResponseDataSchema
|
|
1158
|
+
response: queuedresponsedataQueuedResponseDataSchema,
|
|
1175
1159
|
});
|
|
1176
1160
|
export const queuedResponseSchema = queuedresponseQueuedResponseSchema;
|
|
1177
1161
|
/**
|
|
@@ -1181,7 +1165,7 @@ export const templatelistresponseitemTemplateListResponseItemSchema = z.object({
|
|
|
1181
1165
|
id: z.string(),
|
|
1182
1166
|
name: z.string(),
|
|
1183
1167
|
created: z.optional(z.string()),
|
|
1184
|
-
updated: z.optional(z.string())
|
|
1168
|
+
updated: z.optional(z.string()),
|
|
1185
1169
|
});
|
|
1186
1170
|
export const templateListResponseItemSchema = templatelistresponseitemTemplateListResponseItemSchema;
|
|
1187
1171
|
/**
|
|
@@ -1189,7 +1173,7 @@ export const templateListResponseItemSchema = templatelistresponseitemTemplateLi
|
|
|
1189
1173
|
*/
|
|
1190
1174
|
export const templatelistresponsedataTemplateListResponseDataSchema = z.object({
|
|
1191
1175
|
owner: z.string(),
|
|
1192
|
-
templates: z.array(templatelistresponseitemTemplateListResponseItemSchema)
|
|
1176
|
+
templates: z.array(templatelistresponseitemTemplateListResponseItemSchema),
|
|
1193
1177
|
});
|
|
1194
1178
|
export const templateListResponseDataSchema = templatelistresponsedataTemplateListResponseDataSchema;
|
|
1195
1179
|
/**
|
|
@@ -1198,7 +1182,7 @@ export const templateListResponseDataSchema = templatelistresponsedataTemplateLi
|
|
|
1198
1182
|
export const templatelistresponseTemplateListResponseSchema = z.object({
|
|
1199
1183
|
success: z.boolean(),
|
|
1200
1184
|
message: z.string(),
|
|
1201
|
-
response: templatelistresponsedataTemplateListResponseDataSchema
|
|
1185
|
+
response: templatelistresponsedataTemplateListResponseDataSchema,
|
|
1202
1186
|
});
|
|
1203
1187
|
export const templateListResponseSchema = templatelistresponseTemplateListResponseSchema;
|
|
1204
1188
|
/**
|
|
@@ -1206,7 +1190,7 @@ export const templateListResponseSchema = templatelistresponseTemplateListRespon
|
|
|
1206
1190
|
*/
|
|
1207
1191
|
export const templateresponsedataTemplateResponseDataSchema = z.object({
|
|
1208
1192
|
message: z.string(),
|
|
1209
|
-
id: z.string()
|
|
1193
|
+
id: z.string(),
|
|
1210
1194
|
});
|
|
1211
1195
|
export const templateResponseDataSchema = templateresponsedataTemplateResponseDataSchema;
|
|
1212
1196
|
/**
|
|
@@ -1215,23 +1199,15 @@ export const templateResponseDataSchema = templateresponsedataTemplateResponseDa
|
|
|
1215
1199
|
export const templateresponseTemplateResponseSchema = z.object({
|
|
1216
1200
|
success: z.boolean(),
|
|
1217
1201
|
message: z.string(),
|
|
1218
|
-
response: templateresponsedataTemplateResponseDataSchema
|
|
1202
|
+
response: templateresponsedataTemplateResponseDataSchema,
|
|
1219
1203
|
});
|
|
1220
1204
|
export const templateResponseSchema = templateresponseTemplateResponseSchema;
|
|
1221
1205
|
/**
|
|
1222
1206
|
* Text alignment properties (horizontal and vertical).
|
|
1223
1207
|
*/
|
|
1224
1208
|
export const richtextpropertiesRichTextAlignmentSchema = z.object({
|
|
1225
|
-
horizontal: z.optional(z.enum([
|
|
1226
|
-
|
|
1227
|
-
'center',
|
|
1228
|
-
'right'
|
|
1229
|
-
])),
|
|
1230
|
-
vertical: z.optional(z.enum([
|
|
1231
|
-
'top',
|
|
1232
|
-
'middle',
|
|
1233
|
-
'bottom'
|
|
1234
|
-
]))
|
|
1209
|
+
horizontal: z.optional(z.enum(["left", "center", "right"])),
|
|
1210
|
+
vertical: z.optional(z.enum(["top", "middle", "bottom"])),
|
|
1235
1211
|
});
|
|
1236
1212
|
export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema;
|
|
1237
1213
|
/**
|
|
@@ -1239,12 +1215,12 @@ export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema
|
|
|
1239
1215
|
*/
|
|
1240
1216
|
export const richtextpropertiesRichTextAnimationSchema = z.object({
|
|
1241
1217
|
preset: z.enum([
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1218
|
+
"fadeIn",
|
|
1219
|
+
"slideIn",
|
|
1220
|
+
"typewriter",
|
|
1221
|
+
"ascend",
|
|
1222
|
+
"shift",
|
|
1223
|
+
"movingLetters",
|
|
1248
1224
|
]),
|
|
1249
1225
|
speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1250
1226
|
return undefined; if (Array.isArray(v))
|
|
@@ -1254,13 +1230,8 @@ export const richtextpropertiesRichTextAnimationSchema = z.object({
|
|
|
1254
1230
|
return undefined; if (Array.isArray(v))
|
|
1255
1231
|
return v; if (typeof v === 'string')
|
|
1256
1232
|
return Number(v); return v; }), z.number().gte(0.1).lte(30))),
|
|
1257
|
-
style: z.optional(z.enum([
|
|
1258
|
-
direction: z.optional(z.enum([
|
|
1259
|
-
'left',
|
|
1260
|
-
'right',
|
|
1261
|
-
'up',
|
|
1262
|
-
'down'
|
|
1263
|
-
]))
|
|
1233
|
+
style: z.optional(z.enum(["character", "word"])),
|
|
1234
|
+
direction: z.optional(z.enum(["left", "right", "up", "down"])),
|
|
1264
1235
|
});
|
|
1265
1236
|
export const richTextAnimationSchema = richtextpropertiesRichTextAnimationSchema;
|
|
1266
1237
|
/**
|
|
@@ -1275,7 +1246,7 @@ export const richtextpropertiesRichTextBackgroundSchema = z.object({
|
|
|
1275
1246
|
borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1276
1247
|
return undefined; if (Array.isArray(v))
|
|
1277
1248
|
return v; if (typeof v === 'string')
|
|
1278
|
-
return Number(v); return v; }), z.number().gte(0))).default(0)
|
|
1249
|
+
return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1279
1250
|
});
|
|
1280
1251
|
export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
|
|
1281
1252
|
/**
|
|
@@ -1286,7 +1257,7 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
|
|
|
1286
1257
|
return undefined; if (Array.isArray(v))
|
|
1287
1258
|
return v; if (typeof v === 'string')
|
|
1288
1259
|
return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1289
|
-
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default(
|
|
1260
|
+
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1290
1261
|
opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1291
1262
|
return undefined; if (Array.isArray(v))
|
|
1292
1263
|
return v; if (typeof v === 'string')
|
|
@@ -1294,24 +1265,26 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
|
|
|
1294
1265
|
radius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1295
1266
|
return undefined; if (Array.isArray(v))
|
|
1296
1267
|
return v; if (typeof v === 'string')
|
|
1297
|
-
return Number(v); return v; }), z.number().gte(0))).default(0)
|
|
1268
|
+
return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1298
1269
|
});
|
|
1299
1270
|
/**
|
|
1300
1271
|
* Gradient properties for text fill.
|
|
1301
1272
|
*/
|
|
1302
1273
|
export const richtextpropertiesRichTextGradientSchema = z.object({
|
|
1303
|
-
type: z.optional(z.enum([
|
|
1274
|
+
type: z.optional(z.enum(["linear", "radial"])),
|
|
1304
1275
|
angle: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1305
1276
|
return undefined; if (Array.isArray(v))
|
|
1306
1277
|
return v; if (typeof v === 'string')
|
|
1307
1278
|
return Number(v); return v; }), z.number().gte(0).lte(360))).default(0),
|
|
1308
|
-
stops: z
|
|
1279
|
+
stops: z
|
|
1280
|
+
.array(z.object({
|
|
1309
1281
|
offset: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1310
1282
|
return undefined; if (Array.isArray(v))
|
|
1311
1283
|
return v; if (typeof v === 'string')
|
|
1312
1284
|
return Number(v); return v; }), z.number().gte(0).lte(1)),
|
|
1313
|
-
color: z.string().regex(/^#[A-Fa-f0-9]{6}$/)
|
|
1314
|
-
}))
|
|
1285
|
+
color: z.string().regex(/^#[A-Fa-f0-9]{6}$/),
|
|
1286
|
+
}))
|
|
1287
|
+
.min(2),
|
|
1315
1288
|
});
|
|
1316
1289
|
export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
|
|
1317
1290
|
/**
|
|
@@ -1333,7 +1306,7 @@ export const richtextpropertiesRichTextPaddingSchema = z.object({
|
|
|
1333
1306
|
left: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1334
1307
|
return undefined; if (Array.isArray(v))
|
|
1335
1308
|
return v; if (typeof v === 'string')
|
|
1336
|
-
return Number(v); return v; }), z.number().gte(0))).default(0)
|
|
1309
|
+
return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1337
1310
|
});
|
|
1338
1311
|
/**
|
|
1339
1312
|
* Text shadow properties.
|
|
@@ -1351,11 +1324,11 @@ export const richtextpropertiesRichTextShadowSchema = z.object({
|
|
|
1351
1324
|
return undefined; if (Array.isArray(v))
|
|
1352
1325
|
return v; if (typeof v === 'string')
|
|
1353
1326
|
return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1354
|
-
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default(
|
|
1327
|
+
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1355
1328
|
opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1356
1329
|
return undefined; if (Array.isArray(v))
|
|
1357
1330
|
return v; if (typeof v === 'string')
|
|
1358
|
-
return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5)
|
|
1331
|
+
return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
|
|
1359
1332
|
});
|
|
1360
1333
|
export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
|
|
1361
1334
|
/**
|
|
@@ -1366,30 +1339,30 @@ export const richtextpropertiesRichTextStrokeSchema = z.object({
|
|
|
1366
1339
|
return undefined; if (Array.isArray(v))
|
|
1367
1340
|
return v; if (typeof v === 'string')
|
|
1368
1341
|
return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1369
|
-
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default(
|
|
1342
|
+
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1370
1343
|
opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1371
1344
|
return undefined; if (Array.isArray(v))
|
|
1372
1345
|
return v; if (typeof v === 'string')
|
|
1373
|
-
return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
|
|
1346
|
+
return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1374
1347
|
});
|
|
1375
1348
|
export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
|
|
1376
1349
|
/**
|
|
1377
1350
|
* Font properties for rich text.
|
|
1378
1351
|
*/
|
|
1379
1352
|
export const richtextpropertiesRichTextFontSchema = z.object({
|
|
1380
|
-
family: z.optional(z.string()).default(
|
|
1353
|
+
family: z.optional(z.string()).default("Open Sans"),
|
|
1381
1354
|
size: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1382
1355
|
return undefined; if (Array.isArray(v))
|
|
1383
1356
|
return v; if (typeof v === 'string')
|
|
1384
1357
|
return Number(v); return v; }), z.number().int().gte(1).lte(500))).default(24),
|
|
1385
|
-
weight: z.optional(z.unknown()).default(
|
|
1386
|
-
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default(
|
|
1358
|
+
weight: z.optional(z.unknown()).default("400"),
|
|
1359
|
+
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
|
|
1387
1360
|
opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1388
1361
|
return undefined; if (Array.isArray(v))
|
|
1389
1362
|
return v; if (typeof v === 'string')
|
|
1390
1363
|
return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1391
1364
|
background: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
1392
|
-
stroke: z.optional(richtextpropertiesRichTextStrokeSchema)
|
|
1365
|
+
stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
|
|
1393
1366
|
});
|
|
1394
1367
|
export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
|
|
1395
1368
|
/**
|
|
@@ -1404,18 +1377,9 @@ export const richtextpropertiesRichTextStyleSchema = z.object({
|
|
|
1404
1377
|
return undefined; if (Array.isArray(v))
|
|
1405
1378
|
return v; if (typeof v === 'string')
|
|
1406
1379
|
return Number(v); return v; }), z.number().gte(0).lte(10))).default(1.2),
|
|
1407
|
-
textTransform: z.optional(z.enum([
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
'lowercase',
|
|
1411
|
-
'capitalize'
|
|
1412
|
-
])),
|
|
1413
|
-
textDecoration: z.optional(z.enum([
|
|
1414
|
-
'none',
|
|
1415
|
-
'underline',
|
|
1416
|
-
'line-through'
|
|
1417
|
-
])),
|
|
1418
|
-
gradient: z.optional(richtextpropertiesRichTextGradientSchema)
|
|
1380
|
+
textTransform: z.optional(z.enum(["none", "uppercase", "lowercase", "capitalize"])),
|
|
1381
|
+
textDecoration: z.optional(z.enum(["none", "underline", "line-through"])),
|
|
1382
|
+
gradient: z.optional(richtextpropertiesRichTextGradientSchema),
|
|
1419
1383
|
});
|
|
1420
1384
|
export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
|
|
1421
1385
|
/**
|
|
@@ -1424,22 +1388,19 @@ export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
|
|
|
1424
1388
|
*
|
|
1425
1389
|
*/
|
|
1426
1390
|
export const richtextassetRichTextAssetSchema = z.object({
|
|
1427
|
-
type: z.enum([
|
|
1391
|
+
type: z.enum(["rich-text"]),
|
|
1428
1392
|
text: z.string().max(5000),
|
|
1429
1393
|
font: z.optional(richtextpropertiesRichTextFontSchema),
|
|
1430
1394
|
style: z.optional(richtextpropertiesRichTextStyleSchema),
|
|
1431
1395
|
shadow: z.optional(richtextpropertiesRichTextShadowSchema),
|
|
1432
1396
|
background: z.optional(richtextpropertiesRichTextBackgroundSchema),
|
|
1433
1397
|
border: z.optional(richtextpropertiesRichTextBorderSchema),
|
|
1434
|
-
padding: z.optional(z.union([
|
|
1435
|
-
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1398
|
+
padding: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1436
1399
|
return undefined; if (Array.isArray(v))
|
|
1437
1400
|
return v; if (typeof v === 'string')
|
|
1438
|
-
return Number(v); return v; }), z.number().gte(0)),
|
|
1439
|
-
richtextpropertiesRichTextPaddingSchema
|
|
1440
|
-
])),
|
|
1401
|
+
return Number(v); return v; }), z.number().gte(0)), richtextpropertiesRichTextPaddingSchema])),
|
|
1441
1402
|
align: z.optional(richtextpropertiesRichTextAlignmentSchema),
|
|
1442
|
-
animation: z.optional(richtextpropertiesRichTextAnimationSchema)
|
|
1403
|
+
animation: z.optional(richtextpropertiesRichTextAnimationSchema),
|
|
1443
1404
|
});
|
|
1444
1405
|
export const richTextAssetSchema = richtextassetRichTextAssetSchema;
|
|
1445
1406
|
/**
|
|
@@ -1448,8 +1409,8 @@ export const richTextAssetSchema = richtextassetRichTextAssetSchema;
|
|
|
1448
1409
|
export const transferresponseattributesTransferResponseAttributesSchema = z.object({
|
|
1449
1410
|
id: z.optional(z.string()),
|
|
1450
1411
|
owner: z.optional(z.string()),
|
|
1451
|
-
status: z.optional(z.enum([
|
|
1452
|
-
created: z.optional(z.string())
|
|
1412
|
+
status: z.optional(z.enum(["queued", "failed"])),
|
|
1413
|
+
created: z.optional(z.string()),
|
|
1453
1414
|
});
|
|
1454
1415
|
export const transferResponseAttributesSchema = transferresponseattributesTransferResponseAttributesSchema;
|
|
1455
1416
|
/**
|
|
@@ -1457,14 +1418,14 @@ export const transferResponseAttributesSchema = transferresponseattributesTransf
|
|
|
1457
1418
|
*/
|
|
1458
1419
|
export const transferresponsedataTransferResponseDataSchema = z.object({
|
|
1459
1420
|
type: z.optional(z.string()),
|
|
1460
|
-
attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema)
|
|
1421
|
+
attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema),
|
|
1461
1422
|
});
|
|
1462
1423
|
export const transferResponseDataSchema = transferresponsedataTransferResponseDataSchema;
|
|
1463
1424
|
/**
|
|
1464
1425
|
* The response returned by the Serve API [transfer asset](#transfer-asset) request. The response includes the ID and transfer status. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1465
1426
|
*/
|
|
1466
1427
|
export const transferresponseTransferResponseSchema = z.object({
|
|
1467
|
-
data: transferresponsedataTransferResponseDataSchema
|
|
1428
|
+
data: transferresponsedataTransferResponseDataSchema,
|
|
1468
1429
|
});
|
|
1469
1430
|
export const transferResponseSchema = transferresponseTransferResponseSchema;
|
|
1470
1431
|
/**
|
|
@@ -1473,7 +1434,7 @@ export const transferResponseSchema = transferresponseTransferResponseSchema;
|
|
|
1473
1434
|
export const transferTransferSchema = z.object({
|
|
1474
1435
|
url: z.string(),
|
|
1475
1436
|
id: z.string(),
|
|
1476
|
-
destinations: z.array(destinationsDestinationsSchema)
|
|
1437
|
+
destinations: z.array(destinationsDestinationsSchema),
|
|
1477
1438
|
});
|
|
1478
1439
|
export const transferSchema = transferTransferSchema;
|
|
1479
1440
|
/**
|
|
@@ -1482,12 +1443,8 @@ export const transferSchema = transferTransferSchema;
|
|
|
1482
1443
|
*
|
|
1483
1444
|
*/
|
|
1484
1445
|
export const shapeassetShapeAssetSchema = z.object({
|
|
1485
|
-
type: z.enum([
|
|
1486
|
-
shape: z.enum([
|
|
1487
|
-
'rectangle',
|
|
1488
|
-
'circle',
|
|
1489
|
-
'line'
|
|
1490
|
-
]),
|
|
1446
|
+
type: z.enum(["shape"]),
|
|
1447
|
+
shape: z.enum(["rectangle", "circle", "line"]),
|
|
1491
1448
|
width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1492
1449
|
return undefined; if (Array.isArray(v))
|
|
1493
1450
|
return v; if (typeof v === 'string')
|
|
@@ -1501,14 +1458,14 @@ export const shapeassetShapeAssetSchema = z.object({
|
|
|
1501
1458
|
opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1502
1459
|
return undefined; if (Array.isArray(v))
|
|
1503
1460
|
return v; if (typeof v === 'string')
|
|
1504
|
-
return Number(v); return v; }), z.number()))
|
|
1461
|
+
return Number(v); return v; }), z.number())),
|
|
1505
1462
|
})),
|
|
1506
1463
|
stroke: z.optional(z.object({
|
|
1507
1464
|
color: z.optional(z.string()),
|
|
1508
1465
|
width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1509
1466
|
return undefined; if (Array.isArray(v))
|
|
1510
1467
|
return v; if (typeof v === 'string')
|
|
1511
|
-
return Number(v); return v; }), z.number()))
|
|
1468
|
+
return Number(v); return v; }), z.number())),
|
|
1512
1469
|
})),
|
|
1513
1470
|
rectangle: z.optional(z.object({
|
|
1514
1471
|
width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1522,13 +1479,13 @@ export const shapeassetShapeAssetSchema = z.object({
|
|
|
1522
1479
|
cornerRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1523
1480
|
return undefined; if (Array.isArray(v))
|
|
1524
1481
|
return v; if (typeof v === 'string')
|
|
1525
|
-
return Number(v); return v; }), z.number().int()))
|
|
1482
|
+
return Number(v); return v; }), z.number().int())),
|
|
1526
1483
|
})),
|
|
1527
1484
|
circle: z.optional(z.object({
|
|
1528
1485
|
radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1529
1486
|
return undefined; if (Array.isArray(v))
|
|
1530
1487
|
return v; if (typeof v === 'string')
|
|
1531
|
-
return Number(v); return v; }), z.number().int())
|
|
1488
|
+
return Number(v); return v; }), z.number().int()),
|
|
1532
1489
|
})),
|
|
1533
1490
|
line: z.optional(z.object({
|
|
1534
1491
|
length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1538,8 +1495,8 @@ export const shapeassetShapeAssetSchema = z.object({
|
|
|
1538
1495
|
thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1539
1496
|
return undefined; if (Array.isArray(v))
|
|
1540
1497
|
return v; if (typeof v === 'string')
|
|
1541
|
-
return Number(v); return v; }), z.number().int())
|
|
1542
|
-
}))
|
|
1498
|
+
return Number(v); return v; }), z.number().int()),
|
|
1499
|
+
})),
|
|
1543
1500
|
});
|
|
1544
1501
|
export const shapeAssetSchema = shapeassetShapeAssetSchema;
|
|
1545
1502
|
/**
|
|
@@ -1553,7 +1510,7 @@ export const sizeSizeSchema = z.object({
|
|
|
1553
1510
|
height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1554
1511
|
return undefined; if (Array.isArray(v))
|
|
1555
1512
|
return v; if (typeof v === 'string')
|
|
1556
|
-
return Number(v); return v; }), z.number().int().gte(1).lte(4096)))
|
|
1513
|
+
return Number(v); return v; }), z.number().int().gte(1).lte(4096))),
|
|
1557
1514
|
});
|
|
1558
1515
|
export const sizeSchema = sizeSizeSchema;
|
|
1559
1516
|
/**
|
|
@@ -1561,35 +1518,25 @@ export const sizeSchema = sizeSizeSchema;
|
|
|
1561
1518
|
*/
|
|
1562
1519
|
export const renditionRenditionSchema = z.object({
|
|
1563
1520
|
format: z.optional(z.enum([
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1521
|
+
"mp4",
|
|
1522
|
+
"webm",
|
|
1523
|
+
"mov",
|
|
1524
|
+
"avi",
|
|
1525
|
+
"mkv",
|
|
1526
|
+
"ogv",
|
|
1527
|
+
"wmv",
|
|
1528
|
+
"avif",
|
|
1529
|
+
"gif",
|
|
1530
|
+
"mp3",
|
|
1531
|
+
"wav",
|
|
1532
|
+
"jpg",
|
|
1533
|
+
"png",
|
|
1534
|
+
"webp",
|
|
1535
|
+
"tif",
|
|
1579
1536
|
])),
|
|
1580
1537
|
size: z.optional(sizeSizeSchema),
|
|
1581
|
-
fit: z.optional(z.enum([
|
|
1582
|
-
|
|
1583
|
-
'contain',
|
|
1584
|
-
'crop'
|
|
1585
|
-
])),
|
|
1586
|
-
resolution: z.optional(z.enum([
|
|
1587
|
-
'preview',
|
|
1588
|
-
'mobile',
|
|
1589
|
-
'sd',
|
|
1590
|
-
'hd',
|
|
1591
|
-
'fhd'
|
|
1592
|
-
])),
|
|
1538
|
+
fit: z.optional(z.enum(["cover", "contain", "crop"])),
|
|
1539
|
+
resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
|
|
1593
1540
|
quality: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1594
1541
|
return undefined; if (Array.isArray(v))
|
|
1595
1542
|
return v; if (typeof v === 'string')
|
|
@@ -1605,7 +1552,7 @@ export const renditionRenditionSchema = z.object({
|
|
|
1605
1552
|
z.literal(48),
|
|
1606
1553
|
z.literal(50),
|
|
1607
1554
|
z.literal(59.94),
|
|
1608
|
-
z.literal(60)
|
|
1555
|
+
z.literal(60),
|
|
1609
1556
|
])),
|
|
1610
1557
|
speed: z.optional(speedSpeedSchema),
|
|
1611
1558
|
keyframeInterval: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1615,7 +1562,7 @@ export const renditionRenditionSchema = z.object({
|
|
|
1615
1562
|
fixOffset: z.optional(z.boolean()),
|
|
1616
1563
|
fixRotation: z.optional(z.boolean()),
|
|
1617
1564
|
enhance: z.optional(enhancementsEnhancementsSchema),
|
|
1618
|
-
filename: z.optional(z.string())
|
|
1565
|
+
filename: z.optional(z.string()),
|
|
1619
1566
|
});
|
|
1620
1567
|
export const renditionSchema = renditionRenditionSchema;
|
|
1621
1568
|
/**
|
|
@@ -1623,7 +1570,7 @@ export const renditionSchema = renditionRenditionSchema;
|
|
|
1623
1570
|
*/
|
|
1624
1571
|
export const outputsOutputsSchema = z.object({
|
|
1625
1572
|
renditions: z.optional(z.array(renditionRenditionSchema)),
|
|
1626
|
-
transcription: z.optional(transcriptionTranscriptionSchema)
|
|
1573
|
+
transcription: z.optional(transcriptionTranscriptionSchema),
|
|
1627
1574
|
});
|
|
1628
1575
|
export const outputsSchema = outputsOutputsSchema;
|
|
1629
1576
|
/**
|
|
@@ -1632,12 +1579,12 @@ export const outputsSchema = outputsOutputsSchema;
|
|
|
1632
1579
|
export const renditionresponseattributesRenditionResponseAttributesSchema = z.object({
|
|
1633
1580
|
id: z.string(),
|
|
1634
1581
|
status: z.optional(z.enum([
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1582
|
+
"queued",
|
|
1583
|
+
"importing",
|
|
1584
|
+
"ready",
|
|
1585
|
+
"failed",
|
|
1586
|
+
"deleted",
|
|
1587
|
+
"overwritten",
|
|
1641
1588
|
])),
|
|
1642
1589
|
url: z.optional(z.string()),
|
|
1643
1590
|
executionTime: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1660,14 +1607,14 @@ export const renditionresponseattributesRenditionResponseAttributesSchema = z.ob
|
|
|
1660
1607
|
fps: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1661
1608
|
return undefined; if (Array.isArray(v))
|
|
1662
1609
|
return v; if (typeof v === 'string')
|
|
1663
|
-
return Number(v); return v; }), z.number()))
|
|
1610
|
+
return Number(v); return v; }), z.number())),
|
|
1664
1611
|
});
|
|
1665
1612
|
export const renditionResponseAttributesSchema = renditionresponseattributesRenditionResponseAttributesSchema;
|
|
1666
1613
|
/**
|
|
1667
1614
|
* The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
|
|
1668
1615
|
*/
|
|
1669
1616
|
export const outputsresponseOutputsResponseSchema = z.object({
|
|
1670
|
-
renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema))
|
|
1617
|
+
renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema)),
|
|
1671
1618
|
});
|
|
1672
1619
|
export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
|
|
1673
1620
|
/**
|
|
@@ -1679,12 +1626,12 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
|
|
|
1679
1626
|
input: z.optional(z.string()),
|
|
1680
1627
|
source: z.optional(z.string()),
|
|
1681
1628
|
status: z.optional(z.enum([
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1629
|
+
"queued",
|
|
1630
|
+
"importing",
|
|
1631
|
+
"ready",
|
|
1632
|
+
"failed",
|
|
1633
|
+
"deleted",
|
|
1634
|
+
"overwritten",
|
|
1688
1635
|
])),
|
|
1689
1636
|
outputs: z.optional(outputsresponseOutputsResponseSchema),
|
|
1690
1637
|
width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1704,7 +1651,7 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
|
|
|
1704
1651
|
return v; if (typeof v === 'string')
|
|
1705
1652
|
return Number(v); return v; }), z.number())),
|
|
1706
1653
|
created: z.optional(z.string()),
|
|
1707
|
-
updated: z.optional(z.string())
|
|
1654
|
+
updated: z.optional(z.string()),
|
|
1708
1655
|
});
|
|
1709
1656
|
export const sourceResponseAttributesSchema = sourceresponseattributesSourceResponseAttributesSchema;
|
|
1710
1657
|
/**
|
|
@@ -1713,21 +1660,21 @@ export const sourceResponseAttributesSchema = sourceresponseattributesSourceResp
|
|
|
1713
1660
|
export const sourceresponsedataSourceResponseDataSchema = z.object({
|
|
1714
1661
|
type: z.string(),
|
|
1715
1662
|
id: z.string(),
|
|
1716
|
-
attributes: sourceresponseattributesSourceResponseAttributesSchema
|
|
1663
|
+
attributes: sourceresponseattributesSourceResponseAttributesSchema,
|
|
1717
1664
|
});
|
|
1718
1665
|
export const sourceResponseDataSchema = sourceresponsedataSourceResponseDataSchema;
|
|
1719
1666
|
/**
|
|
1720
1667
|
* A list of all ingested source files fetched or uploaded to a users account.
|
|
1721
1668
|
*/
|
|
1722
1669
|
export const sourcelistresponseSourceListResponseSchema = z.object({
|
|
1723
|
-
data: z.array(sourceresponsedataSourceResponseDataSchema)
|
|
1670
|
+
data: z.array(sourceresponsedataSourceResponseDataSchema),
|
|
1724
1671
|
});
|
|
1725
1672
|
export const sourceListResponseSchema = sourcelistresponseSourceListResponseSchema;
|
|
1726
1673
|
/**
|
|
1727
1674
|
* The response returned by the Ingest API [get source](#get-source) request. Includes details of the ingested source file. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1728
1675
|
*/
|
|
1729
1676
|
export const sourceresponseSourceResponseSchema = z.object({
|
|
1730
|
-
data: sourceresponsedataSourceResponseDataSchema
|
|
1677
|
+
data: sourceresponsedataSourceResponseDataSchema,
|
|
1731
1678
|
});
|
|
1732
1679
|
export const sourceResponseSchema = sourceresponseSourceResponseSchema;
|
|
1733
1680
|
/**
|
|
@@ -1738,7 +1685,7 @@ export const sourceSourceSchema = z.object({
|
|
|
1738
1685
|
url: z.optional(z.string()),
|
|
1739
1686
|
outputs: z.optional(outputsOutputsSchema),
|
|
1740
1687
|
destinations: z.optional(destinationsDestinationsSchema),
|
|
1741
|
-
callback: z.optional(z.string())
|
|
1688
|
+
callback: z.optional(z.string()),
|
|
1742
1689
|
});
|
|
1743
1690
|
export const sourceSchema = sourceSourceSchema;
|
|
1744
1691
|
/**
|
|
@@ -1746,15 +1693,11 @@ export const sourceSchema = sourceSourceSchema;
|
|
|
1746
1693
|
*/
|
|
1747
1694
|
export const soundtrackSoundtrackSchema = z.object({
|
|
1748
1695
|
src: z.string(),
|
|
1749
|
-
effect: z.optional(z.enum([
|
|
1750
|
-
'fadeIn',
|
|
1751
|
-
'fadeOut',
|
|
1752
|
-
'fadeInFadeOut'
|
|
1753
|
-
])),
|
|
1696
|
+
effect: z.optional(z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
1754
1697
|
volume: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1755
1698
|
return undefined; if (Array.isArray(v))
|
|
1756
1699
|
return v; if (typeof v === 'string')
|
|
1757
|
-
return Number(v); return v; }), z.number()))
|
|
1700
|
+
return Number(v); return v; }), z.number())),
|
|
1758
1701
|
});
|
|
1759
1702
|
export const soundtrackSchema = soundtrackSoundtrackSchema;
|
|
1760
1703
|
/**
|
|
@@ -1767,7 +1710,7 @@ export const svgpropertiesSvgGradientStopSchema = z.object({
|
|
|
1767
1710
|
return undefined; if (Array.isArray(v))
|
|
1768
1711
|
return v; if (typeof v === 'string')
|
|
1769
1712
|
return Number(v); return v; }), z.number().gte(0).lte(1)),
|
|
1770
|
-
color: z.string().regex(/^#[A-Fa-f0-9]{6}$/)
|
|
1713
|
+
color: z.string().regex(/^#[A-Fa-f0-9]{6}$/),
|
|
1771
1714
|
});
|
|
1772
1715
|
export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
|
|
1773
1716
|
/**
|
|
@@ -1776,7 +1719,7 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
|
|
|
1776
1719
|
*
|
|
1777
1720
|
*/
|
|
1778
1721
|
export const svgpropertiesSvgLinearGradientFillSchema = z.object({
|
|
1779
|
-
type: z.enum([
|
|
1722
|
+
type: z.enum(["linear"]),
|
|
1780
1723
|
angle: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1781
1724
|
return undefined; if (Array.isArray(v))
|
|
1782
1725
|
return v; if (typeof v === 'string')
|
|
@@ -1785,7 +1728,7 @@ export const svgpropertiesSvgLinearGradientFillSchema = z.object({
|
|
|
1785
1728
|
opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1786
1729
|
return undefined; if (Array.isArray(v))
|
|
1787
1730
|
return v; if (typeof v === 'string')
|
|
1788
|
-
return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
|
|
1731
|
+
return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1789
1732
|
});
|
|
1790
1733
|
export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSchema;
|
|
1791
1734
|
/**
|
|
@@ -1794,12 +1737,12 @@ export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSch
|
|
|
1794
1737
|
*
|
|
1795
1738
|
*/
|
|
1796
1739
|
export const svgpropertiesSvgRadialGradientFillSchema = z.object({
|
|
1797
|
-
type: z.enum([
|
|
1740
|
+
type: z.enum(["radial"]),
|
|
1798
1741
|
stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
|
|
1799
1742
|
opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1800
1743
|
return undefined; if (Array.isArray(v))
|
|
1801
1744
|
return v; if (typeof v === 'string')
|
|
1802
|
-
return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
|
|
1745
|
+
return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1803
1746
|
});
|
|
1804
1747
|
export const svgRadialGradientFillSchema = svgpropertiesSvgRadialGradientFillSchema;
|
|
1805
1748
|
/**
|
|
@@ -1819,23 +1762,26 @@ export const svgpropertiesSvgShadowSchema = z.object({
|
|
|
1819
1762
|
return undefined; if (Array.isArray(v))
|
|
1820
1763
|
return v; if (typeof v === 'string')
|
|
1821
1764
|
return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1822
|
-
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default(
|
|
1765
|
+
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1823
1766
|
opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1824
1767
|
return undefined; if (Array.isArray(v))
|
|
1825
1768
|
return v; if (typeof v === 'string')
|
|
1826
|
-
return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5)
|
|
1769
|
+
return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
|
|
1827
1770
|
});
|
|
1828
1771
|
export const svgShadowSchema = svgpropertiesSvgShadowSchema;
|
|
1829
1772
|
/**
|
|
1830
1773
|
* A solid color fill for SVG shapes.
|
|
1831
1774
|
*/
|
|
1832
1775
|
export const svgpropertiesSvgSolidFillSchema = z.object({
|
|
1833
|
-
type: z.enum([
|
|
1834
|
-
color: z
|
|
1776
|
+
type: z.enum(["solid"]),
|
|
1777
|
+
color: z
|
|
1778
|
+
.string()
|
|
1779
|
+
.regex(/^#[A-Fa-f0-9]{6}$/)
|
|
1780
|
+
.default("#000000"),
|
|
1835
1781
|
opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1836
1782
|
return undefined; if (Array.isArray(v))
|
|
1837
1783
|
return v; if (typeof v === 'string')
|
|
1838
|
-
return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
|
|
1784
|
+
return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1839
1785
|
});
|
|
1840
1786
|
export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
|
|
1841
1787
|
/**
|
|
@@ -1855,7 +1801,7 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
|
|
|
1855
1801
|
*
|
|
1856
1802
|
*/
|
|
1857
1803
|
export const svgpropertiesSvgStrokeSchema = z.object({
|
|
1858
|
-
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default(
|
|
1804
|
+
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1859
1805
|
width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1860
1806
|
return undefined; if (Array.isArray(v))
|
|
1861
1807
|
return v; if (typeof v === 'string')
|
|
@@ -1864,16 +1810,8 @@ export const svgpropertiesSvgStrokeSchema = z.object({
|
|
|
1864
1810
|
return undefined; if (Array.isArray(v))
|
|
1865
1811
|
return v; if (typeof v === 'string')
|
|
1866
1812
|
return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1867
|
-
lineCap: z.optional(z.enum([
|
|
1868
|
-
|
|
1869
|
-
'round',
|
|
1870
|
-
'square'
|
|
1871
|
-
])),
|
|
1872
|
-
lineJoin: z.optional(z.enum([
|
|
1873
|
-
'miter',
|
|
1874
|
-
'round',
|
|
1875
|
-
'bevel'
|
|
1876
|
-
])),
|
|
1813
|
+
lineCap: z.optional(z.enum(["butt", "round", "square"])),
|
|
1814
|
+
lineJoin: z.optional(z.enum(["miter", "round", "bevel"])),
|
|
1877
1815
|
dashArray: z.optional(z.array(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1878
1816
|
return undefined; if (Array.isArray(v))
|
|
1879
1817
|
return v; if (typeof v === 'string')
|
|
@@ -1881,7 +1819,7 @@ export const svgpropertiesSvgStrokeSchema = z.object({
|
|
|
1881
1819
|
dashOffset: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1882
1820
|
return undefined; if (Array.isArray(v))
|
|
1883
1821
|
return v; if (typeof v === 'string')
|
|
1884
|
-
return Number(v); return v; }), z.number())).default(0)
|
|
1822
|
+
return Number(v); return v; }), z.number())).default(0),
|
|
1885
1823
|
});
|
|
1886
1824
|
export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
|
|
1887
1825
|
/**
|
|
@@ -1912,7 +1850,7 @@ export const svgpropertiesSvgTransformSchema = z.object({
|
|
|
1912
1850
|
originY: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1913
1851
|
return undefined; if (Array.isArray(v))
|
|
1914
1852
|
return v; if (typeof v === 'string')
|
|
1915
|
-
return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5)
|
|
1853
|
+
return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
|
|
1916
1854
|
});
|
|
1917
1855
|
export const svgTransformSchema = svgpropertiesSvgTransformSchema;
|
|
1918
1856
|
/**
|
|
@@ -1921,7 +1859,7 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
|
|
|
1921
1859
|
*
|
|
1922
1860
|
*/
|
|
1923
1861
|
export const svgshapesSvgArrowShapeSchema = z.object({
|
|
1924
|
-
type: z.enum([
|
|
1862
|
+
type: z.enum(["arrow"]),
|
|
1925
1863
|
length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1926
1864
|
return undefined; if (Array.isArray(v))
|
|
1927
1865
|
return v; if (typeof v === 'string')
|
|
@@ -1937,7 +1875,7 @@ export const svgshapesSvgArrowShapeSchema = z.object({
|
|
|
1937
1875
|
shaftWidth: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1938
1876
|
return undefined; if (Array.isArray(v))
|
|
1939
1877
|
return v; if (typeof v === 'string')
|
|
1940
|
-
return Number(v); return v; }), z.number().gte(1).lte(1000))
|
|
1878
|
+
return Number(v); return v; }), z.number().gte(1).lte(1000)),
|
|
1941
1879
|
});
|
|
1942
1880
|
export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
|
|
1943
1881
|
/**
|
|
@@ -1946,11 +1884,11 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
|
|
|
1946
1884
|
*
|
|
1947
1885
|
*/
|
|
1948
1886
|
export const svgshapesSvgCircleShapeSchema = z.object({
|
|
1949
|
-
type: z.enum([
|
|
1887
|
+
type: z.enum(["circle"]),
|
|
1950
1888
|
radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1951
1889
|
return undefined; if (Array.isArray(v))
|
|
1952
1890
|
return v; if (typeof v === 'string')
|
|
1953
|
-
return Number(v); return v; }), z.number().gte(1).lte(2048))
|
|
1891
|
+
return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
1954
1892
|
});
|
|
1955
1893
|
export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
|
|
1956
1894
|
/**
|
|
@@ -1959,7 +1897,7 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
|
|
|
1959
1897
|
*
|
|
1960
1898
|
*/
|
|
1961
1899
|
export const svgshapesSvgCrossShapeSchema = z.object({
|
|
1962
|
-
type: z.enum([
|
|
1900
|
+
type: z.enum(["cross"]),
|
|
1963
1901
|
width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1964
1902
|
return undefined; if (Array.isArray(v))
|
|
1965
1903
|
return v; if (typeof v === 'string')
|
|
@@ -1971,7 +1909,7 @@ export const svgshapesSvgCrossShapeSchema = z.object({
|
|
|
1971
1909
|
thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1972
1910
|
return undefined; if (Array.isArray(v))
|
|
1973
1911
|
return v; if (typeof v === 'string')
|
|
1974
|
-
return Number(v); return v; }), z.number().gte(1).lte(500))
|
|
1912
|
+
return Number(v); return v; }), z.number().gte(1).lte(500)),
|
|
1975
1913
|
});
|
|
1976
1914
|
export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
|
|
1977
1915
|
/**
|
|
@@ -1980,7 +1918,7 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
|
|
|
1980
1918
|
*
|
|
1981
1919
|
*/
|
|
1982
1920
|
export const svgshapesSvgEllipseShapeSchema = z.object({
|
|
1983
|
-
type: z.enum([
|
|
1921
|
+
type: z.enum(["ellipse"]),
|
|
1984
1922
|
radiusX: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1985
1923
|
return undefined; if (Array.isArray(v))
|
|
1986
1924
|
return v; if (typeof v === 'string')
|
|
@@ -1988,7 +1926,7 @@ export const svgshapesSvgEllipseShapeSchema = z.object({
|
|
|
1988
1926
|
radiusY: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1989
1927
|
return undefined; if (Array.isArray(v))
|
|
1990
1928
|
return v; if (typeof v === 'string')
|
|
1991
|
-
return Number(v); return v; }), z.number().gte(1).lte(2048))
|
|
1929
|
+
return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
1992
1930
|
});
|
|
1993
1931
|
export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
|
|
1994
1932
|
/**
|
|
@@ -1997,11 +1935,11 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
|
|
|
1997
1935
|
*
|
|
1998
1936
|
*/
|
|
1999
1937
|
export const svgshapesSvgHeartShapeSchema = z.object({
|
|
2000
|
-
type: z.enum([
|
|
1938
|
+
type: z.enum(["heart"]),
|
|
2001
1939
|
size: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2002
1940
|
return undefined; if (Array.isArray(v))
|
|
2003
1941
|
return v; if (typeof v === 'string')
|
|
2004
|
-
return Number(v); return v; }), z.number().gte(1).lte(4096))
|
|
1942
|
+
return Number(v); return v; }), z.number().gte(1).lte(4096)),
|
|
2005
1943
|
});
|
|
2006
1944
|
export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
|
|
2007
1945
|
/**
|
|
@@ -2010,7 +1948,7 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
|
|
|
2010
1948
|
*
|
|
2011
1949
|
*/
|
|
2012
1950
|
export const svgshapesSvgLineShapeSchema = z.object({
|
|
2013
|
-
type: z.enum([
|
|
1951
|
+
type: z.enum(["line"]),
|
|
2014
1952
|
length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2015
1953
|
return undefined; if (Array.isArray(v))
|
|
2016
1954
|
return v; if (typeof v === 'string')
|
|
@@ -2018,7 +1956,7 @@ export const svgshapesSvgLineShapeSchema = z.object({
|
|
|
2018
1956
|
thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2019
1957
|
return undefined; if (Array.isArray(v))
|
|
2020
1958
|
return v; if (typeof v === 'string')
|
|
2021
|
-
return Number(v); return v; }), z.number().gte(1).lte(500))
|
|
1959
|
+
return Number(v); return v; }), z.number().gte(1).lte(500)),
|
|
2022
1960
|
});
|
|
2023
1961
|
export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
|
|
2024
1962
|
/**
|
|
@@ -2039,8 +1977,8 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
|
|
|
2039
1977
|
*
|
|
2040
1978
|
*/
|
|
2041
1979
|
export const svgshapesSvgPathShapeSchema = z.object({
|
|
2042
|
-
type: z.enum([
|
|
2043
|
-
d: z.string().min(1).max(100000)
|
|
1980
|
+
type: z.enum(["path"]),
|
|
1981
|
+
d: z.string().min(1).max(100000),
|
|
2044
1982
|
});
|
|
2045
1983
|
export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
|
|
2046
1984
|
/**
|
|
@@ -2050,7 +1988,7 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
|
|
|
2050
1988
|
*
|
|
2051
1989
|
*/
|
|
2052
1990
|
export const svgshapesSvgPolygonShapeSchema = z.object({
|
|
2053
|
-
type: z.enum([
|
|
1991
|
+
type: z.enum(["polygon"]),
|
|
2054
1992
|
sides: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2055
1993
|
return undefined; if (Array.isArray(v))
|
|
2056
1994
|
return v; if (typeof v === 'string')
|
|
@@ -2058,7 +1996,7 @@ export const svgshapesSvgPolygonShapeSchema = z.object({
|
|
|
2058
1996
|
radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2059
1997
|
return undefined; if (Array.isArray(v))
|
|
2060
1998
|
return v; if (typeof v === 'string')
|
|
2061
|
-
return Number(v); return v; }), z.number().gte(1).lte(2048))
|
|
1999
|
+
return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
2062
2000
|
});
|
|
2063
2001
|
export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
|
|
2064
2002
|
/**
|
|
@@ -2067,7 +2005,7 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
|
|
|
2067
2005
|
*
|
|
2068
2006
|
*/
|
|
2069
2007
|
export const svgshapesSvgRectangleShapeSchema = z.object({
|
|
2070
|
-
type: z.enum([
|
|
2008
|
+
type: z.enum(["rectangle"]),
|
|
2071
2009
|
width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2072
2010
|
return undefined; if (Array.isArray(v))
|
|
2073
2011
|
return v; if (typeof v === 'string')
|
|
@@ -2079,7 +2017,7 @@ export const svgshapesSvgRectangleShapeSchema = z.object({
|
|
|
2079
2017
|
cornerRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2080
2018
|
return undefined; if (Array.isArray(v))
|
|
2081
2019
|
return v; if (typeof v === 'string')
|
|
2082
|
-
return Number(v); return v; }), z.number().gte(0).lte(2048))).default(0)
|
|
2020
|
+
return Number(v); return v; }), z.number().gte(0).lte(2048))).default(0),
|
|
2083
2021
|
});
|
|
2084
2022
|
export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
|
|
2085
2023
|
/**
|
|
@@ -2088,7 +2026,7 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
|
|
|
2088
2026
|
*
|
|
2089
2027
|
*/
|
|
2090
2028
|
export const svgshapesSvgRingShapeSchema = z.object({
|
|
2091
|
-
type: z.enum([
|
|
2029
|
+
type: z.enum(["ring"]),
|
|
2092
2030
|
outerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2093
2031
|
return undefined; if (Array.isArray(v))
|
|
2094
2032
|
return v; if (typeof v === 'string')
|
|
@@ -2096,7 +2034,7 @@ export const svgshapesSvgRingShapeSchema = z.object({
|
|
|
2096
2034
|
innerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2097
2035
|
return undefined; if (Array.isArray(v))
|
|
2098
2036
|
return v; if (typeof v === 'string')
|
|
2099
|
-
return Number(v); return v; }), z.number().gte(0).lte(2048))
|
|
2037
|
+
return Number(v); return v; }), z.number().gte(0).lte(2048)),
|
|
2100
2038
|
});
|
|
2101
2039
|
export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
|
|
2102
2040
|
/**
|
|
@@ -2106,7 +2044,7 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
|
|
|
2106
2044
|
*
|
|
2107
2045
|
*/
|
|
2108
2046
|
export const svgshapesSvgStarShapeSchema = z.object({
|
|
2109
|
-
type: z.enum([
|
|
2047
|
+
type: z.enum(["star"]),
|
|
2110
2048
|
points: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2111
2049
|
return undefined; if (Array.isArray(v))
|
|
2112
2050
|
return v; if (typeof v === 'string')
|
|
@@ -2118,7 +2056,7 @@ export const svgshapesSvgStarShapeSchema = z.object({
|
|
|
2118
2056
|
innerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2119
2057
|
return undefined; if (Array.isArray(v))
|
|
2120
2058
|
return v; if (typeof v === 'string')
|
|
2121
|
-
return Number(v); return v; }), z.number().gte(1).lte(2048))
|
|
2059
|
+
return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
2122
2060
|
});
|
|
2123
2061
|
export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
|
|
2124
2062
|
/**
|
|
@@ -2249,34 +2187,26 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
|
|
|
2249
2187
|
*/
|
|
2250
2188
|
export const templaterenderTemplateRenderSchema = z.object({
|
|
2251
2189
|
id: z.string(),
|
|
2252
|
-
merge: z.optional(z.array(mergefieldMergeFieldSchema))
|
|
2190
|
+
merge: z.optional(z.array(mergefieldMergeFieldSchema)),
|
|
2253
2191
|
});
|
|
2254
2192
|
export const templateRenderSchema = templaterenderTemplateRenderSchema;
|
|
2255
2193
|
/**
|
|
2256
2194
|
* Horizontal and vertical alignment properties for text.
|
|
2257
2195
|
*/
|
|
2258
2196
|
export const textpropertiesTextAlignmentSchema = z.object({
|
|
2259
|
-
horizontal: z.optional(z.enum([
|
|
2260
|
-
|
|
2261
|
-
'center',
|
|
2262
|
-
'right'
|
|
2263
|
-
])),
|
|
2264
|
-
vertical: z.optional(z.enum([
|
|
2265
|
-
'top',
|
|
2266
|
-
'center',
|
|
2267
|
-
'bottom'
|
|
2268
|
-
]))
|
|
2197
|
+
horizontal: z.optional(z.enum(["left", "center", "right"])),
|
|
2198
|
+
vertical: z.optional(z.enum(["top", "center", "bottom"])),
|
|
2269
2199
|
});
|
|
2270
2200
|
export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
|
|
2271
2201
|
/**
|
|
2272
2202
|
* Animation properties for text entrance effects.
|
|
2273
2203
|
*/
|
|
2274
2204
|
export const textpropertiesTextAnimationSchema = z.object({
|
|
2275
|
-
preset: z.enum([
|
|
2205
|
+
preset: z.enum(["typewriter"]),
|
|
2276
2206
|
duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2277
2207
|
return undefined; if (Array.isArray(v))
|
|
2278
2208
|
return v; if (typeof v === 'string')
|
|
2279
|
-
return Number(v); return v; }), z.number().gte(0.1).lte(30)))
|
|
2209
|
+
return Number(v); return v; }), z.number().gte(0.1).lte(30))),
|
|
2280
2210
|
});
|
|
2281
2211
|
/**
|
|
2282
2212
|
* Displays a background box behind the text.
|
|
@@ -2294,7 +2224,7 @@ export const textpropertiesTextBackgroundSchema = z.object({
|
|
|
2294
2224
|
borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2295
2225
|
return undefined; if (Array.isArray(v))
|
|
2296
2226
|
return v; if (typeof v === 'string')
|
|
2297
|
-
return Number(v); return v; }), z.number().gte(0)))
|
|
2227
|
+
return Number(v); return v; }), z.number().gte(0))),
|
|
2298
2228
|
});
|
|
2299
2229
|
export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
|
|
2300
2230
|
/**
|
|
@@ -2318,7 +2248,7 @@ export const textpropertiesTextFontSchema = z.object({
|
|
|
2318
2248
|
lineHeight: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2319
2249
|
return undefined; if (Array.isArray(v))
|
|
2320
2250
|
return v; if (typeof v === 'string')
|
|
2321
|
-
return Number(v); return v; }), z.number()))
|
|
2251
|
+
return Number(v); return v; }), z.number())),
|
|
2322
2252
|
});
|
|
2323
2253
|
export const textFontSchema = textpropertiesTextFontSchema;
|
|
2324
2254
|
/**
|
|
@@ -2329,7 +2259,7 @@ export const textpropertiesTextStrokeSchema = z.object({
|
|
|
2329
2259
|
return undefined; if (Array.isArray(v))
|
|
2330
2260
|
return v; if (typeof v === 'string')
|
|
2331
2261
|
return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
2332
|
-
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/))
|
|
2262
|
+
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
2333
2263
|
});
|
|
2334
2264
|
/**
|
|
2335
2265
|
* The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
|
|
@@ -2337,7 +2267,7 @@ export const textpropertiesTextStrokeSchema = z.object({
|
|
|
2337
2267
|
*
|
|
2338
2268
|
*/
|
|
2339
2269
|
export const textassetTextAssetSchema = z.object({
|
|
2340
|
-
type: z.enum([
|
|
2270
|
+
type: z.enum(["text"]),
|
|
2341
2271
|
text: z.string(),
|
|
2342
2272
|
width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2343
2273
|
return undefined; if (Array.isArray(v))
|
|
@@ -2352,14 +2282,14 @@ export const textassetTextAssetSchema = z.object({
|
|
|
2352
2282
|
alignment: z.optional(textpropertiesTextAlignmentSchema),
|
|
2353
2283
|
stroke: z.optional(textpropertiesTextStrokeSchema),
|
|
2354
2284
|
animation: z.optional(textpropertiesTextAnimationSchema),
|
|
2355
|
-
ellipsis: z.optional(z.string())
|
|
2285
|
+
ellipsis: z.optional(z.string()),
|
|
2356
2286
|
});
|
|
2357
2287
|
export const textAssetSchema = textassetTextAssetSchema;
|
|
2358
2288
|
/**
|
|
2359
2289
|
* The TextToImageAsset lets you create a dynamic image from a text prompt.
|
|
2360
2290
|
*/
|
|
2361
2291
|
export const texttoimageassetTextToImageAssetSchema = z.object({
|
|
2362
|
-
type: z.enum([
|
|
2292
|
+
type: z.enum(["text-to-image"]),
|
|
2363
2293
|
prompt: z.string(),
|
|
2364
2294
|
width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2365
2295
|
return undefined; if (Array.isArray(v))
|
|
@@ -2369,7 +2299,7 @@ export const texttoimageassetTextToImageAssetSchema = z.object({
|
|
|
2369
2299
|
return undefined; if (Array.isArray(v))
|
|
2370
2300
|
return v; if (typeof v === 'string')
|
|
2371
2301
|
return Number(v); return v; }), z.number().int())),
|
|
2372
|
-
crop: z.optional(cropCropSchema)
|
|
2302
|
+
crop: z.optional(cropCropSchema),
|
|
2373
2303
|
});
|
|
2374
2304
|
export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
|
|
2375
2305
|
/**
|
|
@@ -2383,36 +2313,16 @@ export const thumbnailThumbnailSchema = z.object({
|
|
|
2383
2313
|
scale: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2384
2314
|
return undefined; if (Array.isArray(v))
|
|
2385
2315
|
return v; if (typeof v === 'string')
|
|
2386
|
-
return Number(v); return v; }), z.number().gte(0).lte(1))
|
|
2316
|
+
return Number(v); return v; }), z.number().gte(0).lte(1)),
|
|
2387
2317
|
});
|
|
2388
2318
|
export const thumbnailSchema = thumbnailThumbnailSchema;
|
|
2389
2319
|
/**
|
|
2390
2320
|
* The output format, render range and type of media to generate.
|
|
2391
2321
|
*/
|
|
2392
2322
|
export const outputOutputSchema = z.object({
|
|
2393
|
-
format: z.enum([
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
'mp3',
|
|
2397
|
-
'jpg',
|
|
2398
|
-
'png',
|
|
2399
|
-
'bmp'
|
|
2400
|
-
]),
|
|
2401
|
-
resolution: z.optional(z.enum([
|
|
2402
|
-
'preview',
|
|
2403
|
-
'mobile',
|
|
2404
|
-
'sd',
|
|
2405
|
-
'hd',
|
|
2406
|
-
'1080',
|
|
2407
|
-
'4k'
|
|
2408
|
-
])),
|
|
2409
|
-
aspectRatio: z.optional(z.enum([
|
|
2410
|
-
'16:9',
|
|
2411
|
-
'9:16',
|
|
2412
|
-
'1:1',
|
|
2413
|
-
'4:5',
|
|
2414
|
-
'4:3'
|
|
2415
|
-
])),
|
|
2323
|
+
format: z.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
|
|
2324
|
+
resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
|
|
2325
|
+
aspectRatio: z.optional(z.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
|
|
2416
2326
|
size: z.optional(sizeSizeSchema),
|
|
2417
2327
|
fps: z.optional(z.union([
|
|
2418
2328
|
z.literal(12),
|
|
@@ -2425,29 +2335,16 @@ export const outputOutputSchema = z.object({
|
|
|
2425
2335
|
z.literal(48),
|
|
2426
2336
|
z.literal(50),
|
|
2427
2337
|
z.literal(59.94),
|
|
2428
|
-
z.literal(60)
|
|
2429
|
-
])),
|
|
2430
|
-
scaleTo: z.optional(z.enum([
|
|
2431
|
-
'preview',
|
|
2432
|
-
'mobile',
|
|
2433
|
-
'sd',
|
|
2434
|
-
'hd',
|
|
2435
|
-
'1080',
|
|
2436
|
-
'4k'
|
|
2437
|
-
])),
|
|
2438
|
-
quality: z.optional(z.enum([
|
|
2439
|
-
'verylow',
|
|
2440
|
-
'low',
|
|
2441
|
-
'medium',
|
|
2442
|
-
'high',
|
|
2443
|
-
'veryhigh'
|
|
2338
|
+
z.literal(60),
|
|
2444
2339
|
])),
|
|
2340
|
+
scaleTo: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
|
|
2341
|
+
quality: z.optional(z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
|
|
2445
2342
|
repeat: z.optional(z.boolean()),
|
|
2446
2343
|
mute: z.optional(z.boolean()),
|
|
2447
2344
|
range: z.optional(rangeRangeSchema),
|
|
2448
2345
|
poster: z.optional(posterPosterSchema),
|
|
2449
2346
|
thumbnail: z.optional(thumbnailThumbnailSchema),
|
|
2450
|
-
destinations: z.optional(z.array(destinationsDestinationsSchema))
|
|
2347
|
+
destinations: z.optional(z.array(destinationsDestinationsSchema)),
|
|
2451
2348
|
});
|
|
2452
2349
|
export const outputSchema = outputOutputSchema;
|
|
2453
2350
|
/**
|
|
@@ -2455,133 +2352,133 @@ export const outputSchema = outputOutputSchema;
|
|
|
2455
2352
|
*/
|
|
2456
2353
|
export const transitionTransitionSchema = z.object({
|
|
2457
2354
|
in: z.optional(z.enum([
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2355
|
+
"none",
|
|
2356
|
+
"fade",
|
|
2357
|
+
"fadeSlow",
|
|
2358
|
+
"fadeFast",
|
|
2359
|
+
"reveal",
|
|
2360
|
+
"revealSlow",
|
|
2361
|
+
"revealFast",
|
|
2362
|
+
"wipeLeft",
|
|
2363
|
+
"wipeLeftSlow",
|
|
2364
|
+
"wipeLeftFast",
|
|
2365
|
+
"wipeRight",
|
|
2366
|
+
"wipeRightSlow",
|
|
2367
|
+
"wipeRightFast",
|
|
2368
|
+
"slideLeft",
|
|
2369
|
+
"slideLeftSlow",
|
|
2370
|
+
"slideLeftFast",
|
|
2371
|
+
"slideRight",
|
|
2372
|
+
"slideRightSlow",
|
|
2373
|
+
"slideRightFast",
|
|
2374
|
+
"slideUp",
|
|
2375
|
+
"slideUpSlow",
|
|
2376
|
+
"slideUpFast",
|
|
2377
|
+
"slideDown",
|
|
2378
|
+
"slideDownSlow",
|
|
2379
|
+
"slideDownFast",
|
|
2380
|
+
"carouselLeft",
|
|
2381
|
+
"carouselLeftSlow",
|
|
2382
|
+
"carouselLeftFast",
|
|
2383
|
+
"carouselRight",
|
|
2384
|
+
"carouselRightSlow",
|
|
2385
|
+
"carouselRightFast",
|
|
2386
|
+
"carouselUp",
|
|
2387
|
+
"carouselUpSlow",
|
|
2388
|
+
"carouselUpFast",
|
|
2389
|
+
"carouselDown",
|
|
2390
|
+
"carouselDownSlow",
|
|
2391
|
+
"carouselDownFast",
|
|
2392
|
+
"shuffleTopRight",
|
|
2393
|
+
"shuffleTopRightSlow",
|
|
2394
|
+
"shuffleTopRightFast",
|
|
2395
|
+
"shuffleRightTop",
|
|
2396
|
+
"shuffleRightTopSlow",
|
|
2397
|
+
"shuffleRightTopFast",
|
|
2398
|
+
"shuffleRightBottom",
|
|
2399
|
+
"shuffleRightBottomSlow",
|
|
2400
|
+
"shuffleRightBottomFast",
|
|
2401
|
+
"shuffleBottomRight",
|
|
2402
|
+
"shuffleBottomRightSlow",
|
|
2403
|
+
"shuffleBottomRightFast",
|
|
2404
|
+
"shuffleBottomLeft",
|
|
2405
|
+
"shuffleBottomLeftSlow",
|
|
2406
|
+
"shuffleBottomLeftFast",
|
|
2407
|
+
"shuffleLeftBottom",
|
|
2408
|
+
"shuffleLeftBottomSlow",
|
|
2409
|
+
"shuffleLeftBottomFast",
|
|
2410
|
+
"shuffleLeftTop",
|
|
2411
|
+
"shuffleLeftTopSlow",
|
|
2412
|
+
"shuffleLeftTopFast",
|
|
2413
|
+
"shuffleTopLeft",
|
|
2414
|
+
"shuffleTopLeftSlow",
|
|
2415
|
+
"shuffleTopLeftFast",
|
|
2416
|
+
"zoom",
|
|
2520
2417
|
])),
|
|
2521
2418
|
out: z.optional(z.enum([
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
]))
|
|
2419
|
+
"none",
|
|
2420
|
+
"fade",
|
|
2421
|
+
"fadeSlow",
|
|
2422
|
+
"fadeFast",
|
|
2423
|
+
"reveal",
|
|
2424
|
+
"revealSlow",
|
|
2425
|
+
"revealFast",
|
|
2426
|
+
"wipeLeft",
|
|
2427
|
+
"wipeLeftSlow",
|
|
2428
|
+
"wipeLeftFast",
|
|
2429
|
+
"wipeRight",
|
|
2430
|
+
"wipeRightSlow",
|
|
2431
|
+
"wipeRightFast",
|
|
2432
|
+
"slideLeft",
|
|
2433
|
+
"slideLeftSlow",
|
|
2434
|
+
"slideLeftFast",
|
|
2435
|
+
"slideRight",
|
|
2436
|
+
"slideRightSlow",
|
|
2437
|
+
"slideRightFast",
|
|
2438
|
+
"slideUp",
|
|
2439
|
+
"slideUpSlow",
|
|
2440
|
+
"slideUpFast",
|
|
2441
|
+
"slideDown",
|
|
2442
|
+
"slideDownSlow",
|
|
2443
|
+
"slideDownFast",
|
|
2444
|
+
"carouselLeft",
|
|
2445
|
+
"carouselLeftSlow",
|
|
2446
|
+
"carouselLeftFast",
|
|
2447
|
+
"carouselRight",
|
|
2448
|
+
"carouselRightSlow",
|
|
2449
|
+
"carouselRightFast",
|
|
2450
|
+
"carouselUp",
|
|
2451
|
+
"carouselUpSlow",
|
|
2452
|
+
"carouselUpFast",
|
|
2453
|
+
"carouselDown",
|
|
2454
|
+
"carouselDownSlow",
|
|
2455
|
+
"carouselDownFast",
|
|
2456
|
+
"shuffleTopRight",
|
|
2457
|
+
"shuffleTopRightSlow",
|
|
2458
|
+
"shuffleTopRightFast",
|
|
2459
|
+
"shuffleRightTop",
|
|
2460
|
+
"shuffleRightTopSlow",
|
|
2461
|
+
"shuffleRightTopFast",
|
|
2462
|
+
"shuffleRightBottom",
|
|
2463
|
+
"shuffleRightBottomSlow",
|
|
2464
|
+
"shuffleRightBottomFast",
|
|
2465
|
+
"shuffleBottomRight",
|
|
2466
|
+
"shuffleBottomRightSlow",
|
|
2467
|
+
"shuffleBottomRightFast",
|
|
2468
|
+
"shuffleBottomLeft",
|
|
2469
|
+
"shuffleBottomLeftSlow",
|
|
2470
|
+
"shuffleBottomLeftFast",
|
|
2471
|
+
"shuffleLeftBottom",
|
|
2472
|
+
"shuffleLeftBottomSlow",
|
|
2473
|
+
"shuffleLeftBottomFast",
|
|
2474
|
+
"shuffleLeftTop",
|
|
2475
|
+
"shuffleLeftTopSlow",
|
|
2476
|
+
"shuffleLeftTopFast",
|
|
2477
|
+
"shuffleTopLeft",
|
|
2478
|
+
"shuffleTopLeftSlow",
|
|
2479
|
+
"shuffleTopLeftFast",
|
|
2480
|
+
"zoom",
|
|
2481
|
+
])),
|
|
2585
2482
|
});
|
|
2586
2483
|
export const transitionSchema = transitionTransitionSchema;
|
|
2587
2484
|
/**
|
|
@@ -2605,123 +2502,96 @@ export const tweenTweenSchema = z.object({
|
|
|
2605
2502
|
return undefined; if (Array.isArray(v))
|
|
2606
2503
|
return v; if (typeof v === 'string')
|
|
2607
2504
|
return Number(v); return v; }), z.number())),
|
|
2608
|
-
interpolation: z.optional(z.enum([
|
|
2609
|
-
'linear',
|
|
2610
|
-
'bezier',
|
|
2611
|
-
'constant'
|
|
2612
|
-
])),
|
|
2505
|
+
interpolation: z.optional(z.enum(["linear", "bezier", "constant"])),
|
|
2613
2506
|
easing: z.optional(z.enum([
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
]))
|
|
2507
|
+
"ease",
|
|
2508
|
+
"easeIn",
|
|
2509
|
+
"easeOut",
|
|
2510
|
+
"easeInOut",
|
|
2511
|
+
"easeInQuad",
|
|
2512
|
+
"easeInCubic",
|
|
2513
|
+
"easeInQuart",
|
|
2514
|
+
"easeInQuint",
|
|
2515
|
+
"easeInSine",
|
|
2516
|
+
"easeInExpo",
|
|
2517
|
+
"easeInCirc",
|
|
2518
|
+
"easeInBack",
|
|
2519
|
+
"easeOutQuad",
|
|
2520
|
+
"easeOutCubic",
|
|
2521
|
+
"easeOutQuart",
|
|
2522
|
+
"easeOutQuint",
|
|
2523
|
+
"easeOutSine",
|
|
2524
|
+
"easeOutExpo",
|
|
2525
|
+
"easeOutCirc",
|
|
2526
|
+
"easeOutBack",
|
|
2527
|
+
"easeInOutQuad",
|
|
2528
|
+
"easeInOutCubic",
|
|
2529
|
+
"easeInOutQuart",
|
|
2530
|
+
"easeInOutQuint",
|
|
2531
|
+
"easeInOutSine",
|
|
2532
|
+
"easeInOutExpo",
|
|
2533
|
+
"easeInOutCirc",
|
|
2534
|
+
"easeInOutBack",
|
|
2535
|
+
])),
|
|
2643
2536
|
});
|
|
2644
2537
|
export const tweenSchema = tweenTweenSchema;
|
|
2645
2538
|
/**
|
|
2646
2539
|
* The AudioAsset is used to add sound effects and audio at specific intervals on the timeline. The src must be a publicly accessible URL to an audio resource such as an mp3 file.
|
|
2647
2540
|
*/
|
|
2648
2541
|
export const audioassetAudioAssetSchema = z.object({
|
|
2649
|
-
type: z.enum([
|
|
2542
|
+
type: z.enum(["audio"]),
|
|
2650
2543
|
src: z.string(),
|
|
2651
2544
|
trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2652
2545
|
return undefined; if (Array.isArray(v))
|
|
2653
2546
|
return v; if (typeof v === 'string')
|
|
2654
2547
|
return Number(v); return v; }), z.number())),
|
|
2655
|
-
volume: z.optional(z.union([
|
|
2656
|
-
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2548
|
+
volume: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2657
2549
|
return undefined; if (Array.isArray(v))
|
|
2658
2550
|
return v; if (typeof v === 'string')
|
|
2659
|
-
return Number(v); return v; }), z.number().gte(0).lte(1)),
|
|
2660
|
-
z.array(tweenTweenSchema)
|
|
2661
|
-
])),
|
|
2551
|
+
return Number(v); return v; }), z.number().gte(0).lte(1)), z.array(tweenTweenSchema)])),
|
|
2662
2552
|
speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2663
2553
|
return undefined; if (Array.isArray(v))
|
|
2664
2554
|
return v; if (typeof v === 'string')
|
|
2665
2555
|
return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
2666
|
-
effect: z.optional(z.enum([
|
|
2667
|
-
'none',
|
|
2668
|
-
'fadeIn',
|
|
2669
|
-
'fadeOut',
|
|
2670
|
-
'fadeInFadeOut'
|
|
2671
|
-
]))
|
|
2556
|
+
effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
2672
2557
|
});
|
|
2673
2558
|
export const audioAssetSchema = audioassetAudioAssetSchema;
|
|
2674
2559
|
/**
|
|
2675
2560
|
* Offsets the position of an asset horizontally or vertically by a relative distance.
|
|
2676
2561
|
*/
|
|
2677
2562
|
export const offsetOffsetSchema = z.object({
|
|
2678
|
-
x: z.optional(z.union([
|
|
2679
|
-
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2563
|
+
x: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2680
2564
|
return undefined; if (Array.isArray(v))
|
|
2681
2565
|
return v; if (typeof v === 'string')
|
|
2682
|
-
return Number(v); return v; }), z.number().gte(-10).lte(10)),
|
|
2683
|
-
|
|
2684
|
-
])),
|
|
2685
|
-
y: z.optional(z.union([
|
|
2686
|
-
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2566
|
+
return Number(v); return v; }), z.number().gte(-10).lte(10)), z.array(tweenTweenSchema)])),
|
|
2567
|
+
y: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2687
2568
|
return undefined; if (Array.isArray(v))
|
|
2688
2569
|
return v; if (typeof v === 'string')
|
|
2689
|
-
return Number(v); return v; }), z.number().gte(-10).lte(10)),
|
|
2690
|
-
z.array(tweenTweenSchema)
|
|
2691
|
-
]))
|
|
2570
|
+
return Number(v); return v; }), z.number().gte(-10).lte(10)), z.array(tweenTweenSchema)])),
|
|
2692
2571
|
});
|
|
2693
2572
|
export const offsetSchema = offsetOffsetSchema;
|
|
2694
2573
|
/**
|
|
2695
2574
|
* Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
|
|
2696
2575
|
*/
|
|
2697
2576
|
export const rotatetransformationRotateTransformationSchema = z.object({
|
|
2698
|
-
angle: z.optional(z.union([
|
|
2699
|
-
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2577
|
+
angle: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2700
2578
|
return undefined; if (Array.isArray(v))
|
|
2701
2579
|
return v; if (typeof v === 'string')
|
|
2702
|
-
return Number(v); return v; }), z.number().gte(-360).lte(360)),
|
|
2703
|
-
z.array(tweenTweenSchema)
|
|
2704
|
-
]))
|
|
2580
|
+
return Number(v); return v; }), z.number().gte(-360).lte(360)), z.array(tweenTweenSchema)])),
|
|
2705
2581
|
});
|
|
2706
2582
|
export const rotateTransformationSchema = rotatetransformationRotateTransformationSchema;
|
|
2707
2583
|
/**
|
|
2708
2584
|
* Skew a clip so its edges are sheared at an angle. Use values between -100 and 100. Values over 3 or under -3 will skew the clip almost flat.
|
|
2709
2585
|
*/
|
|
2710
2586
|
export const skewtransformationSkewTransformationSchema = z.object({
|
|
2711
|
-
x: z.optional(z.union([
|
|
2712
|
-
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2587
|
+
x: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2713
2588
|
return undefined; if (Array.isArray(v))
|
|
2714
2589
|
return v; if (typeof v === 'string')
|
|
2715
|
-
return Number(v); return v; }), z.number().gte(-100).lte(100)),
|
|
2716
|
-
|
|
2717
|
-
])),
|
|
2718
|
-
y: z.optional(z.union([
|
|
2719
|
-
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2590
|
+
return Number(v); return v; }), z.number().gte(-100).lte(100)), z.array(tweenTweenSchema)])),
|
|
2591
|
+
y: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2720
2592
|
return undefined; if (Array.isArray(v))
|
|
2721
2593
|
return v; if (typeof v === 'string')
|
|
2722
|
-
return Number(v); return v; }), z.number().gte(-100).lte(100)),
|
|
2723
|
-
z.array(tweenTweenSchema)
|
|
2724
|
-
]))
|
|
2594
|
+
return Number(v); return v; }), z.number().gte(-100).lte(100)), z.array(tweenTweenSchema)])),
|
|
2725
2595
|
});
|
|
2726
2596
|
export const skewTransformationSchema = skewtransformationSkewTransformationSchema;
|
|
2727
2597
|
/**
|
|
@@ -2733,43 +2603,43 @@ export const skewTransformationSchema = skewtransformationSkewTransformationSche
|
|
|
2733
2603
|
* @deprecated
|
|
2734
2604
|
*/
|
|
2735
2605
|
export const titleassetTitleAssetSchema = z.object({
|
|
2736
|
-
type: z.enum([
|
|
2606
|
+
type: z.enum(["title"]),
|
|
2737
2607
|
text: z.string(),
|
|
2738
2608
|
style: z.optional(z.enum([
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2609
|
+
"minimal",
|
|
2610
|
+
"blockbuster",
|
|
2611
|
+
"vogue",
|
|
2612
|
+
"sketchy",
|
|
2613
|
+
"skinny",
|
|
2614
|
+
"chunk",
|
|
2615
|
+
"chunkLight",
|
|
2616
|
+
"marker",
|
|
2617
|
+
"future",
|
|
2618
|
+
"subtitle",
|
|
2749
2619
|
])),
|
|
2750
2620
|
color: z.optional(z.string()),
|
|
2751
2621
|
size: z.optional(z.enum([
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2622
|
+
"xx-small",
|
|
2623
|
+
"x-small",
|
|
2624
|
+
"small",
|
|
2625
|
+
"medium",
|
|
2626
|
+
"large",
|
|
2627
|
+
"x-large",
|
|
2628
|
+
"xx-large",
|
|
2759
2629
|
])),
|
|
2760
2630
|
background: z.optional(z.string()),
|
|
2761
2631
|
position: z.optional(z.enum([
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2632
|
+
"top",
|
|
2633
|
+
"topRight",
|
|
2634
|
+
"right",
|
|
2635
|
+
"bottomRight",
|
|
2636
|
+
"bottom",
|
|
2637
|
+
"bottomLeft",
|
|
2638
|
+
"left",
|
|
2639
|
+
"topLeft",
|
|
2640
|
+
"center",
|
|
2771
2641
|
])),
|
|
2772
|
-
offset: z.optional(offsetOffsetSchema)
|
|
2642
|
+
offset: z.optional(offsetOffsetSchema),
|
|
2773
2643
|
});
|
|
2774
2644
|
export const titleAssetSchema = titleassetTitleAssetSchema;
|
|
2775
2645
|
/**
|
|
@@ -2778,39 +2648,31 @@ export const titleAssetSchema = titleassetTitleAssetSchema;
|
|
|
2778
2648
|
export const transformationTransformationSchema = z.object({
|
|
2779
2649
|
rotate: z.optional(rotatetransformationRotateTransformationSchema),
|
|
2780
2650
|
skew: z.optional(skewtransformationSkewTransformationSchema),
|
|
2781
|
-
flip: z.optional(fliptransformationFlipTransformationSchema)
|
|
2651
|
+
flip: z.optional(fliptransformationFlipTransformationSchema),
|
|
2782
2652
|
});
|
|
2783
2653
|
export const transformationSchema = transformationTransformationSchema;
|
|
2784
2654
|
/**
|
|
2785
2655
|
* The VideoAsset is used to create video sequences from video files. The src must be a publicly accessible URL to a video resource such as an mp4 file.
|
|
2786
2656
|
*/
|
|
2787
2657
|
export const videoassetVideoAssetSchema = z.object({
|
|
2788
|
-
type: z.enum([
|
|
2658
|
+
type: z.enum(["video"]),
|
|
2789
2659
|
src: z.string(),
|
|
2790
2660
|
transcode: z.optional(z.boolean()),
|
|
2791
2661
|
trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2792
2662
|
return undefined; if (Array.isArray(v))
|
|
2793
2663
|
return v; if (typeof v === 'string')
|
|
2794
2664
|
return Number(v); return v; }), z.number())),
|
|
2795
|
-
volume: z.optional(z.union([
|
|
2796
|
-
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2665
|
+
volume: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2797
2666
|
return undefined; if (Array.isArray(v))
|
|
2798
2667
|
return v; if (typeof v === 'string')
|
|
2799
|
-
return Number(v); return v; }), z.number().gte(0).lte(1)),
|
|
2800
|
-
|
|
2801
|
-
])),
|
|
2802
|
-
volumeEffect: z.optional(z.enum([
|
|
2803
|
-
'none',
|
|
2804
|
-
'fadeIn',
|
|
2805
|
-
'fadeOut',
|
|
2806
|
-
'fadeInFadeOut'
|
|
2807
|
-
])),
|
|
2668
|
+
return Number(v); return v; }), z.number().gte(0).lte(1)), z.array(tweenTweenSchema)])),
|
|
2669
|
+
volumeEffect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
2808
2670
|
speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2809
2671
|
return undefined; if (Array.isArray(v))
|
|
2810
2672
|
return v; if (typeof v === 'string')
|
|
2811
2673
|
return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
2812
2674
|
crop: z.optional(cropCropSchema),
|
|
2813
|
-
chromaKey: z.optional(chromakeyChromaKeySchema)
|
|
2675
|
+
chromaKey: z.optional(chromakeyChromaKeySchema),
|
|
2814
2676
|
});
|
|
2815
2677
|
export const videoAssetSchema = videoassetVideoAssetSchema;
|
|
2816
2678
|
/**
|
|
@@ -2842,96 +2704,85 @@ export const clipClipSchema = z.object({
|
|
|
2842
2704
|
return undefined; if (Array.isArray(v))
|
|
2843
2705
|
return v; if (typeof v === 'string')
|
|
2844
2706
|
return Number(v); return v; }), z.number()),
|
|
2845
|
-
z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/)
|
|
2707
|
+
z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/),
|
|
2846
2708
|
]),
|
|
2847
2709
|
length: z.union([
|
|
2848
2710
|
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2849
2711
|
return undefined; if (Array.isArray(v))
|
|
2850
2712
|
return v; if (typeof v === 'string')
|
|
2851
2713
|
return Number(v); return v; }), z.number()),
|
|
2852
|
-
z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/)
|
|
2714
|
+
z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/),
|
|
2853
2715
|
]),
|
|
2854
|
-
fit: z.optional(z.enum([
|
|
2855
|
-
|
|
2856
|
-
'contain',
|
|
2857
|
-
'crop',
|
|
2858
|
-
'none'
|
|
2859
|
-
])),
|
|
2860
|
-
scale: z.optional(z.union([
|
|
2861
|
-
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2716
|
+
fit: z.optional(z.enum(["cover", "contain", "crop", "none"])),
|
|
2717
|
+
scale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2862
2718
|
return undefined; if (Array.isArray(v))
|
|
2863
2719
|
return v; if (typeof v === 'string')
|
|
2864
|
-
return Number(v); return v; }), z.number()),
|
|
2865
|
-
z.array(tweenTweenSchema)
|
|
2866
|
-
])),
|
|
2720
|
+
return Number(v); return v; }), z.number()), z.array(tweenTweenSchema)])),
|
|
2867
2721
|
width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2868
2722
|
return undefined; if (Array.isArray(v))
|
|
2869
2723
|
return v; if (typeof v === 'string')
|
|
2870
|
-
return Number(v); return v; }), z.number().
|
|
2724
|
+
return Number(v); return v; }), z.number().gte(1).lte(3840))),
|
|
2871
2725
|
height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2872
2726
|
return undefined; if (Array.isArray(v))
|
|
2873
2727
|
return v; if (typeof v === 'string')
|
|
2874
|
-
return Number(v); return v; }), z.number().
|
|
2728
|
+
return Number(v); return v; }), z.number().gte(1).lte(2160))),
|
|
2875
2729
|
position: z.optional(z.enum([
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2730
|
+
"top",
|
|
2731
|
+
"topRight",
|
|
2732
|
+
"right",
|
|
2733
|
+
"bottomRight",
|
|
2734
|
+
"bottom",
|
|
2735
|
+
"bottomLeft",
|
|
2736
|
+
"left",
|
|
2737
|
+
"topLeft",
|
|
2738
|
+
"center",
|
|
2885
2739
|
])),
|
|
2886
2740
|
offset: z.optional(offsetOffsetSchema),
|
|
2887
2741
|
transition: z.optional(transitionTransitionSchema),
|
|
2888
2742
|
effect: z.optional(z.enum([
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2743
|
+
"zoomIn",
|
|
2744
|
+
"zoomInSlow",
|
|
2745
|
+
"zoomInFast",
|
|
2746
|
+
"zoomOut",
|
|
2747
|
+
"zoomOutSlow",
|
|
2748
|
+
"zoomOutFast",
|
|
2749
|
+
"slideLeft",
|
|
2750
|
+
"slideLeftSlow",
|
|
2751
|
+
"slideLeftFast",
|
|
2752
|
+
"slideRight",
|
|
2753
|
+
"slideRightSlow",
|
|
2754
|
+
"slideRightFast",
|
|
2755
|
+
"slideUp",
|
|
2756
|
+
"slideUpSlow",
|
|
2757
|
+
"slideUpFast",
|
|
2758
|
+
"slideDown",
|
|
2759
|
+
"slideDownSlow",
|
|
2760
|
+
"slideDownFast",
|
|
2907
2761
|
])),
|
|
2908
2762
|
filter: z.optional(z.enum([
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2763
|
+
"none",
|
|
2764
|
+
"blur",
|
|
2765
|
+
"boost",
|
|
2766
|
+
"contrast",
|
|
2767
|
+
"darken",
|
|
2768
|
+
"greyscale",
|
|
2769
|
+
"lighten",
|
|
2770
|
+
"muted",
|
|
2771
|
+
"negative",
|
|
2918
2772
|
])),
|
|
2919
|
-
opacity: z.optional(z.union([
|
|
2920
|
-
z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2773
|
+
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2921
2774
|
return undefined; if (Array.isArray(v))
|
|
2922
2775
|
return v; if (typeof v === 'string')
|
|
2923
|
-
return Number(v); return v; }), z.number()),
|
|
2924
|
-
z.array(tweenTweenSchema)
|
|
2925
|
-
])),
|
|
2776
|
+
return Number(v); return v; }), z.number()), z.array(tweenTweenSchema)])),
|
|
2926
2777
|
transform: z.optional(transformationTransformationSchema),
|
|
2927
|
-
alias: z.optional(z.string().regex(/^[A-Za-z0-9_-]+$/))
|
|
2778
|
+
alias: z.optional(z.string().regex(/^[A-Za-z0-9_-]+$/)),
|
|
2928
2779
|
});
|
|
2929
2780
|
export const clipSchema = clipClipSchema;
|
|
2930
2781
|
/**
|
|
2931
2782
|
* A track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.
|
|
2932
2783
|
*/
|
|
2933
2784
|
export const trackTrackSchema = z.object({
|
|
2934
|
-
clips: z.array(clipClipSchema)
|
|
2785
|
+
clips: z.array(clipClipSchema),
|
|
2935
2786
|
});
|
|
2936
2787
|
export const trackSchema = trackTrackSchema;
|
|
2937
2788
|
/**
|
|
@@ -2942,7 +2793,7 @@ export const timelineTimelineSchema = z.object({
|
|
|
2942
2793
|
background: z.optional(z.string()),
|
|
2943
2794
|
fonts: z.optional(z.array(fontFontSchema)),
|
|
2944
2795
|
tracks: z.array(trackTrackSchema),
|
|
2945
|
-
cache: z.optional(z.boolean())
|
|
2796
|
+
cache: z.optional(z.boolean()),
|
|
2946
2797
|
});
|
|
2947
2798
|
export const timelineSchema = timelineTimelineSchema;
|
|
2948
2799
|
/**
|
|
@@ -2953,7 +2804,7 @@ export const editEditSchema = z.object({
|
|
|
2953
2804
|
output: outputOutputSchema,
|
|
2954
2805
|
merge: z.optional(z.array(mergefieldMergeFieldSchema)),
|
|
2955
2806
|
callback: z.optional(z.string()),
|
|
2956
|
-
disk: z.optional(z.enum([
|
|
2807
|
+
disk: z.optional(z.enum(["local", "mount"])),
|
|
2957
2808
|
});
|
|
2958
2809
|
export const editSchema = editEditSchema;
|
|
2959
2810
|
/**
|
|
@@ -2964,13 +2815,13 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
|
|
|
2964
2815
|
owner: z.string(),
|
|
2965
2816
|
plan: z.optional(z.string()),
|
|
2966
2817
|
status: z.enum([
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2818
|
+
"queued",
|
|
2819
|
+
"fetching",
|
|
2820
|
+
"preprocessing",
|
|
2821
|
+
"rendering",
|
|
2822
|
+
"saving",
|
|
2823
|
+
"done",
|
|
2824
|
+
"failed",
|
|
2974
2825
|
]),
|
|
2975
2826
|
error: z.optional(z.string()),
|
|
2976
2827
|
duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -2982,17 +2833,11 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
|
|
|
2982
2833
|
return v; if (typeof v === 'string')
|
|
2983
2834
|
return Number(v); return v; }), z.number())),
|
|
2984
2835
|
url: z.optional(z.string()),
|
|
2985
|
-
poster: z.optional(z.union([
|
|
2986
|
-
|
|
2987
|
-
z.null()
|
|
2988
|
-
])),
|
|
2989
|
-
thumbnail: z.optional(z.union([
|
|
2990
|
-
z.string(),
|
|
2991
|
-
z.null()
|
|
2992
|
-
])),
|
|
2836
|
+
poster: z.optional(z.union([z.string(), z.null()])),
|
|
2837
|
+
thumbnail: z.optional(z.union([z.string(), z.null()])),
|
|
2993
2838
|
data: z.optional(editEditSchema),
|
|
2994
2839
|
created: z.optional(z.string()),
|
|
2995
|
-
updated: z.optional(z.string())
|
|
2840
|
+
updated: z.optional(z.string()),
|
|
2996
2841
|
});
|
|
2997
2842
|
export const renderResponseDataSchema = renderresponsedataRenderResponseDataSchema;
|
|
2998
2843
|
/**
|
|
@@ -3001,7 +2846,7 @@ export const renderResponseDataSchema = renderresponsedataRenderResponseDataSche
|
|
|
3001
2846
|
export const renderresponseRenderResponseSchema = z.object({
|
|
3002
2847
|
success: z.boolean(),
|
|
3003
2848
|
message: z.string(),
|
|
3004
|
-
response: renderresponsedataRenderResponseDataSchema
|
|
2849
|
+
response: renderresponsedataRenderResponseDataSchema,
|
|
3005
2850
|
});
|
|
3006
2851
|
export const renderResponseSchema = renderresponseRenderResponseSchema;
|
|
3007
2852
|
/**
|
|
@@ -3011,7 +2856,7 @@ export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
|
|
|
3011
2856
|
id: z.string(),
|
|
3012
2857
|
name: z.string(),
|
|
3013
2858
|
owner: z.string(),
|
|
3014
|
-
template: editEditSchema
|
|
2859
|
+
template: editEditSchema,
|
|
3015
2860
|
});
|
|
3016
2861
|
export const templateDataResponseDataSchema = templatedataresponsedataTemplateDataResponseDataSchema;
|
|
3017
2862
|
/**
|
|
@@ -3020,7 +2865,7 @@ export const templateDataResponseDataSchema = templatedataresponsedataTemplateDa
|
|
|
3020
2865
|
export const templatedataresponseTemplateDataResponseSchema = z.object({
|
|
3021
2866
|
success: z.boolean(),
|
|
3022
2867
|
message: z.string(),
|
|
3023
|
-
response: templatedataresponsedataTemplateDataResponseDataSchema
|
|
2868
|
+
response: templatedataresponsedataTemplateDataResponseDataSchema,
|
|
3024
2869
|
});
|
|
3025
2870
|
export const templateDataResponseSchema = templatedataresponseTemplateDataResponseSchema;
|
|
3026
2871
|
/**
|
|
@@ -3028,13 +2873,13 @@ export const templateDataResponseSchema = templatedataresponseTemplateDataRespon
|
|
|
3028
2873
|
*/
|
|
3029
2874
|
export const templateTemplateSchema = z.object({
|
|
3030
2875
|
name: z.string(),
|
|
3031
|
-
template: z.optional(editEditSchema)
|
|
2876
|
+
template: z.optional(editEditSchema),
|
|
3032
2877
|
});
|
|
3033
2878
|
export const templateSchema = templateTemplateSchema;
|
|
3034
2879
|
export const postRenderRequest = z.object({
|
|
3035
2880
|
body: editEditSchema,
|
|
3036
2881
|
path: z.optional(z.never()),
|
|
3037
|
-
query: z.optional(z.never())
|
|
2882
|
+
query: z.optional(z.never()),
|
|
3038
2883
|
});
|
|
3039
2884
|
/**
|
|
3040
2885
|
* The queued render details
|
|
@@ -3043,12 +2888,14 @@ export const postRenderResponse = queuedresponseQueuedResponseSchema;
|
|
|
3043
2888
|
export const getRenderRequest = z.object({
|
|
3044
2889
|
body: z.optional(z.never()),
|
|
3045
2890
|
path: z.object({
|
|
3046
|
-
id: z
|
|
2891
|
+
id: z
|
|
2892
|
+
.string()
|
|
2893
|
+
.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}$/),
|
|
3047
2894
|
}),
|
|
3048
2895
|
query: z.optional(z.object({
|
|
3049
2896
|
data: z.optional(z.boolean()),
|
|
3050
|
-
merged: z.optional(z.boolean())
|
|
3051
|
-
}))
|
|
2897
|
+
merged: z.optional(z.boolean()),
|
|
2898
|
+
})),
|
|
3052
2899
|
});
|
|
3053
2900
|
/**
|
|
3054
2901
|
* The render status details
|
|
@@ -3057,7 +2904,7 @@ export const getRenderResponse = renderresponseRenderResponseSchema;
|
|
|
3057
2904
|
export const getTemplatesRequest = z.object({
|
|
3058
2905
|
body: z.optional(z.never()),
|
|
3059
2906
|
path: z.optional(z.never()),
|
|
3060
|
-
query: z.optional(z.never())
|
|
2907
|
+
query: z.optional(z.never()),
|
|
3061
2908
|
});
|
|
3062
2909
|
/**
|
|
3063
2910
|
* The list of templates stored against a users account
|
|
@@ -3066,7 +2913,7 @@ export const getTemplatesResponse = templatelistresponseTemplateListResponseSche
|
|
|
3066
2913
|
export const postTemplateRequest = z.object({
|
|
3067
2914
|
body: templateTemplateSchema,
|
|
3068
2915
|
path: z.optional(z.never()),
|
|
3069
|
-
query: z.optional(z.never())
|
|
2916
|
+
query: z.optional(z.never()),
|
|
3070
2917
|
});
|
|
3071
2918
|
/**
|
|
3072
2919
|
* The saved template status including the id
|
|
@@ -3075,9 +2922,11 @@ export const postTemplateResponse = templateresponseTemplateResponseSchema;
|
|
|
3075
2922
|
export const deleteTemplateRequest = z.object({
|
|
3076
2923
|
body: z.optional(z.never()),
|
|
3077
2924
|
path: z.object({
|
|
3078
|
-
id: z
|
|
2925
|
+
id: z
|
|
2926
|
+
.string()
|
|
2927
|
+
.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}$/),
|
|
3079
2928
|
}),
|
|
3080
|
-
query: z.optional(z.never())
|
|
2929
|
+
query: z.optional(z.never()),
|
|
3081
2930
|
});
|
|
3082
2931
|
/**
|
|
3083
2932
|
* An empty response signifying the template has been deleted
|
|
@@ -3086,9 +2935,11 @@ export const deleteTemplateResponse = z.void();
|
|
|
3086
2935
|
export const getTemplateRequest = z.object({
|
|
3087
2936
|
body: z.optional(z.never()),
|
|
3088
2937
|
path: z.object({
|
|
3089
|
-
id: z
|
|
2938
|
+
id: z
|
|
2939
|
+
.string()
|
|
2940
|
+
.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}$/),
|
|
3090
2941
|
}),
|
|
3091
|
-
query: z.optional(z.never())
|
|
2942
|
+
query: z.optional(z.never()),
|
|
3092
2943
|
});
|
|
3093
2944
|
/**
|
|
3094
2945
|
* The template details including the [Edit](#tocs_edit)
|
|
@@ -3097,9 +2948,11 @@ export const getTemplateResponse = templatedataresponseTemplateDataResponseSchem
|
|
|
3097
2948
|
export const putTemplateRequest = z.object({
|
|
3098
2949
|
body: templateTemplateSchema,
|
|
3099
2950
|
path: z.object({
|
|
3100
|
-
id: z
|
|
2951
|
+
id: z
|
|
2952
|
+
.string()
|
|
2953
|
+
.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}$/),
|
|
3101
2954
|
}),
|
|
3102
|
-
query: z.optional(z.never())
|
|
2955
|
+
query: z.optional(z.never()),
|
|
3103
2956
|
});
|
|
3104
2957
|
/**
|
|
3105
2958
|
* Update a templates name and [Edit](#tocs_edit)
|
|
@@ -3108,7 +2961,7 @@ export const putTemplateResponse = templateresponseTemplateResponseSchema;
|
|
|
3108
2961
|
export const postTemplateRenderRequest = z.object({
|
|
3109
2962
|
body: templaterenderTemplateRenderSchema,
|
|
3110
2963
|
path: z.optional(z.never()),
|
|
3111
|
-
query: z.optional(z.never())
|
|
2964
|
+
query: z.optional(z.never()),
|
|
3112
2965
|
});
|
|
3113
2966
|
/**
|
|
3114
2967
|
* The queued status including the render id. Check the status of the render using the id and the [render status](#get-render-status) endpoint.
|
|
@@ -3117,9 +2970,9 @@ export const postTemplateRenderResponse = queuedresponseQueuedResponseSchema;
|
|
|
3117
2970
|
export const probeRequest = z.object({
|
|
3118
2971
|
body: z.optional(z.never()),
|
|
3119
2972
|
path: z.object({
|
|
3120
|
-
url: z.string()
|
|
2973
|
+
url: z.string(),
|
|
3121
2974
|
}),
|
|
3122
|
-
query: z.optional(z.never())
|
|
2975
|
+
query: z.optional(z.never()),
|
|
3123
2976
|
});
|
|
3124
2977
|
/**
|
|
3125
2978
|
* FFprobe response formatted as JSON.
|
|
@@ -3128,9 +2981,11 @@ export const probeResponse = proberesponseProbeResponseSchema;
|
|
|
3128
2981
|
export const deleteAssetRequest = z.object({
|
|
3129
2982
|
body: z.optional(z.never()),
|
|
3130
2983
|
path: z.object({
|
|
3131
|
-
id: z
|
|
2984
|
+
id: z
|
|
2985
|
+
.string()
|
|
2986
|
+
.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}$/),
|
|
3132
2987
|
}),
|
|
3133
|
-
query: z.optional(z.never())
|
|
2988
|
+
query: z.optional(z.never()),
|
|
3134
2989
|
});
|
|
3135
2990
|
/**
|
|
3136
2991
|
* An empty response signifying the asset has been deleted
|
|
@@ -3139,9 +2994,11 @@ export const deleteAssetResponse = z.void();
|
|
|
3139
2994
|
export const getAssetRequest = z.object({
|
|
3140
2995
|
body: z.optional(z.never()),
|
|
3141
2996
|
path: z.object({
|
|
3142
|
-
id: z
|
|
2997
|
+
id: z
|
|
2998
|
+
.string()
|
|
2999
|
+
.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}$/),
|
|
3143
3000
|
}),
|
|
3144
|
-
query: z.optional(z.never())
|
|
3001
|
+
query: z.optional(z.never()),
|
|
3145
3002
|
});
|
|
3146
3003
|
/**
|
|
3147
3004
|
* Get asset by asset id
|
|
@@ -3150,9 +3007,11 @@ export const getAssetResponse = assetresponseAssetResponseSchema;
|
|
|
3150
3007
|
export const getAssetByRenderIdRequest = z.object({
|
|
3151
3008
|
body: z.optional(z.never()),
|
|
3152
3009
|
path: z.object({
|
|
3153
|
-
id: z
|
|
3010
|
+
id: z
|
|
3011
|
+
.string()
|
|
3012
|
+
.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}$/),
|
|
3154
3013
|
}),
|
|
3155
|
-
query: z.optional(z.never())
|
|
3014
|
+
query: z.optional(z.never()),
|
|
3156
3015
|
});
|
|
3157
3016
|
/**
|
|
3158
3017
|
* Get one or more assets by render id
|
|
@@ -3161,7 +3020,7 @@ export const getAssetByRenderIdResponse = assetrenderresponseAssetRenderResponse
|
|
|
3161
3020
|
export const postServeAssetRequest = z.object({
|
|
3162
3021
|
body: transferTransferSchema,
|
|
3163
3022
|
path: z.optional(z.never()),
|
|
3164
|
-
query: z.optional(z.never())
|
|
3023
|
+
query: z.optional(z.never()),
|
|
3165
3024
|
});
|
|
3166
3025
|
/**
|
|
3167
3026
|
* The transfer request details and status
|
|
@@ -3170,7 +3029,7 @@ export const postServeAssetResponse = transferresponseTransferResponseSchema;
|
|
|
3170
3029
|
export const getSourcesRequest = z.object({
|
|
3171
3030
|
body: z.optional(z.never()),
|
|
3172
3031
|
path: z.optional(z.never()),
|
|
3173
|
-
query: z.optional(z.never())
|
|
3032
|
+
query: z.optional(z.never()),
|
|
3174
3033
|
});
|
|
3175
3034
|
/**
|
|
3176
3035
|
* The list of ingested source files stored against a users account
|
|
@@ -3179,7 +3038,7 @@ export const getSourcesResponse = sourcelistresponseSourceListResponseSchema;
|
|
|
3179
3038
|
export const postSourceRequest = z.object({
|
|
3180
3039
|
body: sourceSourceSchema,
|
|
3181
3040
|
path: z.optional(z.never()),
|
|
3182
|
-
query: z.optional(z.never())
|
|
3041
|
+
query: z.optional(z.never()),
|
|
3183
3042
|
});
|
|
3184
3043
|
/**
|
|
3185
3044
|
* The queued source file details
|
|
@@ -3188,9 +3047,11 @@ export const postSourceResponse = queuedsourceresponseQueuedSourceResponseSchema
|
|
|
3188
3047
|
export const deleteSourceRequest = z.object({
|
|
3189
3048
|
body: z.optional(z.never()),
|
|
3190
3049
|
path: z.object({
|
|
3191
|
-
id: z
|
|
3050
|
+
id: z
|
|
3051
|
+
.string()
|
|
3052
|
+
.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}$/),
|
|
3192
3053
|
}),
|
|
3193
|
-
query: z.optional(z.never())
|
|
3054
|
+
query: z.optional(z.never()),
|
|
3194
3055
|
});
|
|
3195
3056
|
/**
|
|
3196
3057
|
* An empty response signifying the ingested source file has been deleted.
|
|
@@ -3199,9 +3060,11 @@ export const deleteSourceResponse = z.void();
|
|
|
3199
3060
|
export const getSourceRequest = z.object({
|
|
3200
3061
|
body: z.optional(z.never()),
|
|
3201
3062
|
path: z.object({
|
|
3202
|
-
id: z
|
|
3063
|
+
id: z
|
|
3064
|
+
.string()
|
|
3065
|
+
.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}$/),
|
|
3203
3066
|
}),
|
|
3204
|
-
query: z.optional(z.never())
|
|
3067
|
+
query: z.optional(z.never()),
|
|
3205
3068
|
});
|
|
3206
3069
|
/**
|
|
3207
3070
|
* Get source file details by id
|
|
@@ -3210,7 +3073,7 @@ export const getSourceResponse = sourceresponseSourceResponseSchema;
|
|
|
3210
3073
|
export const getUploadSignedUrlRequest = z.object({
|
|
3211
3074
|
body: z.optional(z.never()),
|
|
3212
3075
|
path: z.optional(z.never()),
|
|
3213
|
-
query: z.optional(z.never())
|
|
3076
|
+
query: z.optional(z.never()),
|
|
3214
3077
|
});
|
|
3215
3078
|
/**
|
|
3216
3079
|
* The id and signed URL to upload to.
|
|
@@ -3219,7 +3082,7 @@ export const getUploadSignedUrlResponse = uploadresponseUploadResponseSchema;
|
|
|
3219
3082
|
export const postGenerateAssetRequest = z.object({
|
|
3220
3083
|
body: generatedAssetGeneratedAssetSchema,
|
|
3221
3084
|
path: z.optional(z.never()),
|
|
3222
|
-
query: z.optional(z.never())
|
|
3085
|
+
query: z.optional(z.never()),
|
|
3223
3086
|
});
|
|
3224
3087
|
/**
|
|
3225
3088
|
* The generated asset details
|
|
@@ -3228,9 +3091,11 @@ export const postGenerateAssetResponse = generatedAssetResponseGeneratedAssetRes
|
|
|
3228
3091
|
export const getGeneratedAssetRequest = z.object({
|
|
3229
3092
|
body: z.optional(z.never()),
|
|
3230
3093
|
path: z.object({
|
|
3231
|
-
id: z
|
|
3094
|
+
id: z
|
|
3095
|
+
.string()
|
|
3096
|
+
.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}$/),
|
|
3232
3097
|
}),
|
|
3233
|
-
query: z.optional(z.never())
|
|
3098
|
+
query: z.optional(z.never()),
|
|
3234
3099
|
});
|
|
3235
3100
|
/**
|
|
3236
3101
|
* The generated asset details
|