@shotstack/schemas 1.3.9 → 1.4.1

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