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