@shotstack/schemas 1.4.0 → 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
  /**
@@ -1784,9 +2089,21 @@ exports.svgassetSvgAssetSchema = zod_1.z.object({
1784
2089
  stroke: zod_1.z.optional(exports.svgpropertiesSvgStrokeSchema),
1785
2090
  shadow: zod_1.z.optional(exports.svgpropertiesSvgShadowSchema),
1786
2091
  transform: zod_1.z.optional(exports.svgpropertiesSvgTransformSchema),
1787
- 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),
1788
- 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))),
1789
- 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)))),
1790
2107
  }).superRefine((data, ctx) => {
1791
2108
  const hasShape = data.shape !== undefined;
1792
2109
  const hasSrc = data.src !== undefined && data.src.trim() !== "";
@@ -1823,32 +2140,48 @@ exports.svgAssetSchema = exports.svgassetSvgAssetSchema;
1823
2140
  */
1824
2141
  exports.templaterenderTemplateRenderSchema = zod_1.z.object({
1825
2142
  id: zod_1.z.string(),
1826
- merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
2143
+ merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema))
1827
2144
  });
1828
2145
  exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
1829
2146
  /**
1830
2147
  * Horizontal and vertical alignment properties for text.
1831
2148
  */
1832
2149
  exports.textpropertiesTextAlignmentSchema = zod_1.z.object({
1833
- horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
1834
- 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
+ ]))
1835
2160
  });
1836
2161
  exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema;
1837
2162
  /**
1838
2163
  * Animation properties for text entrance effects.
1839
2164
  */
1840
2165
  exports.textpropertiesTextAnimationSchema = zod_1.z.object({
1841
- preset: zod_1.z.enum(["typewriter"]),
1842
- 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)))
1843
2170
  });
1844
2171
  /**
1845
2172
  * Displays a background box behind the text.
1846
2173
  */
1847
2174
  exports.textpropertiesTextBackgroundSchema = zod_1.z.object({
1848
2175
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1849
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number().gte(0).lte(1))),
1850
- 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))),
1851
- 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)))
1852
2185
  });
1853
2186
  exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
1854
2187
  /**
@@ -1857,18 +2190,28 @@ exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
1857
2190
  exports.textpropertiesTextFontSchema = zod_1.z.object({
1858
2191
  family: zod_1.z.optional(zod_1.z.string()),
1859
2192
  color: zod_1.z.optional(zod_1.z.string()),
1860
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number())),
1861
- size: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number().int())),
1862
- weight: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number().int())),
1863
- 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()))
1864
2205
  });
1865
2206
  exports.textFontSchema = exports.textpropertiesTextFontSchema;
1866
2207
  /**
1867
2208
  * Text stroke (outline) properties.
1868
2209
  */
1869
2210
  exports.textpropertiesTextStrokeSchema = zod_1.z.object({
1870
- 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))),
1871
- 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}$/))
1872
2215
  });
1873
2216
  /**
1874
2217
  * The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
@@ -1876,44 +2219,76 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
1876
2219
  *
1877
2220
  */
1878
2221
  exports.textassetTextAssetSchema = zod_1.z.object({
1879
- type: zod_1.z.enum(["text"]),
2222
+ type: zod_1.z.enum(['text']),
1880
2223
  text: zod_1.z.string(),
1881
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number().int())),
1882
- 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())),
1883
2230
  font: zod_1.z.optional(exports.textpropertiesTextFontSchema),
1884
2231
  background: zod_1.z.optional(exports.textpropertiesTextBackgroundSchema),
1885
2232
  alignment: zod_1.z.optional(exports.textpropertiesTextAlignmentSchema),
1886
2233
  stroke: zod_1.z.optional(exports.textpropertiesTextStrokeSchema),
1887
2234
  animation: zod_1.z.optional(exports.textpropertiesTextAnimationSchema),
1888
- ellipsis: zod_1.z.optional(zod_1.z.string()),
2235
+ ellipsis: zod_1.z.optional(zod_1.z.string())
1889
2236
  });
1890
2237
  exports.textAssetSchema = exports.textassetTextAssetSchema;
1891
2238
  /**
1892
2239
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
1893
2240
  */
1894
2241
  exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
1895
- type: zod_1.z.enum(["text-to-image"]),
2242
+ type: zod_1.z.enum(['text-to-image']),
1896
2243
  prompt: zod_1.z.string(),
1897
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number().int())),
1898
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number().int())),
1899
- 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)
1900
2251
  });
1901
2252
  exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema;
1902
2253
  /**
1903
2254
  * Generate a thumbnail image for the video or image at a specific point from the timeline.
1904
2255
  */
1905
2256
  exports.thumbnailThumbnailSchema = zod_1.z.object({
1906
- capture: zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number()),
1907
- 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))
1908
2263
  });
1909
2264
  exports.thumbnailSchema = exports.thumbnailThumbnailSchema;
1910
2265
  /**
1911
2266
  * The output format, render range and type of media to generate.
1912
2267
  */
1913
2268
  exports.outputOutputSchema = zod_1.z.object({
1914
- format: zod_1.z.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
1915
- resolution: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
1916
- 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
+ ])),
1917
2292
  size: zod_1.z.optional(exports.sizeSizeSchema),
1918
2293
  fps: zod_1.z.optional(zod_1.z.union([
1919
2294
  zod_1.z.literal(12),
@@ -1926,16 +2301,29 @@ exports.outputOutputSchema = zod_1.z.object({
1926
2301
  zod_1.z.literal(48),
1927
2302
  zod_1.z.literal(50),
1928
2303
  zod_1.z.literal(59.94),
1929
- 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'
1930
2320
  ])),
1931
- scaleTo: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
1932
- quality: zod_1.z.optional(zod_1.z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
1933
2321
  repeat: zod_1.z.optional(zod_1.z.boolean()),
1934
2322
  mute: zod_1.z.optional(zod_1.z.boolean()),
1935
2323
  range: zod_1.z.optional(exports.rangeRangeSchema),
1936
2324
  poster: zod_1.z.optional(exports.posterPosterSchema),
1937
2325
  thumbnail: zod_1.z.optional(exports.thumbnailThumbnailSchema),
1938
- destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema)),
2326
+ destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema))
1939
2327
  });
1940
2328
  exports.outputSchema = exports.outputOutputSchema;
1941
2329
  /**
@@ -1943,133 +2331,133 @@ exports.outputSchema = exports.outputOutputSchema;
1943
2331
  */
1944
2332
  exports.transitionTransitionSchema = zod_1.z.object({
1945
2333
  in: zod_1.z.optional(zod_1.z.enum([
1946
- "none",
1947
- "fade",
1948
- "fadeSlow",
1949
- "fadeFast",
1950
- "reveal",
1951
- "revealSlow",
1952
- "revealFast",
1953
- "wipeLeft",
1954
- "wipeLeftSlow",
1955
- "wipeLeftFast",
1956
- "wipeRight",
1957
- "wipeRightSlow",
1958
- "wipeRightFast",
1959
- "slideLeft",
1960
- "slideLeftSlow",
1961
- "slideLeftFast",
1962
- "slideRight",
1963
- "slideRightSlow",
1964
- "slideRightFast",
1965
- "slideUp",
1966
- "slideUpSlow",
1967
- "slideUpFast",
1968
- "slideDown",
1969
- "slideDownSlow",
1970
- "slideDownFast",
1971
- "carouselLeft",
1972
- "carouselLeftSlow",
1973
- "carouselLeftFast",
1974
- "carouselRight",
1975
- "carouselRightSlow",
1976
- "carouselRightFast",
1977
- "carouselUp",
1978
- "carouselUpSlow",
1979
- "carouselUpFast",
1980
- "carouselDown",
1981
- "carouselDownSlow",
1982
- "carouselDownFast",
1983
- "shuffleTopRight",
1984
- "shuffleTopRightSlow",
1985
- "shuffleTopRightFast",
1986
- "shuffleRightTop",
1987
- "shuffleRightTopSlow",
1988
- "shuffleRightTopFast",
1989
- "shuffleRightBottom",
1990
- "shuffleRightBottomSlow",
1991
- "shuffleRightBottomFast",
1992
- "shuffleBottomRight",
1993
- "shuffleBottomRightSlow",
1994
- "shuffleBottomRightFast",
1995
- "shuffleBottomLeft",
1996
- "shuffleBottomLeftSlow",
1997
- "shuffleBottomLeftFast",
1998
- "shuffleLeftBottom",
1999
- "shuffleLeftBottomSlow",
2000
- "shuffleLeftBottomFast",
2001
- "shuffleLeftTop",
2002
- "shuffleLeftTopSlow",
2003
- "shuffleLeftTopFast",
2004
- "shuffleTopLeft",
2005
- "shuffleTopLeftSlow",
2006
- "shuffleTopLeftFast",
2007
- "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'
2008
2396
  ])),
2009
2397
  out: zod_1.z.optional(zod_1.z.enum([
2010
- "none",
2011
- "fade",
2012
- "fadeSlow",
2013
- "fadeFast",
2014
- "reveal",
2015
- "revealSlow",
2016
- "revealFast",
2017
- "wipeLeft",
2018
- "wipeLeftSlow",
2019
- "wipeLeftFast",
2020
- "wipeRight",
2021
- "wipeRightSlow",
2022
- "wipeRightFast",
2023
- "slideLeft",
2024
- "slideLeftSlow",
2025
- "slideLeftFast",
2026
- "slideRight",
2027
- "slideRightSlow",
2028
- "slideRightFast",
2029
- "slideUp",
2030
- "slideUpSlow",
2031
- "slideUpFast",
2032
- "slideDown",
2033
- "slideDownSlow",
2034
- "slideDownFast",
2035
- "carouselLeft",
2036
- "carouselLeftSlow",
2037
- "carouselLeftFast",
2038
- "carouselRight",
2039
- "carouselRightSlow",
2040
- "carouselRightFast",
2041
- "carouselUp",
2042
- "carouselUpSlow",
2043
- "carouselUpFast",
2044
- "carouselDown",
2045
- "carouselDownSlow",
2046
- "carouselDownFast",
2047
- "shuffleTopRight",
2048
- "shuffleTopRightSlow",
2049
- "shuffleTopRightFast",
2050
- "shuffleRightTop",
2051
- "shuffleRightTopSlow",
2052
- "shuffleRightTopFast",
2053
- "shuffleRightBottom",
2054
- "shuffleRightBottomSlow",
2055
- "shuffleRightBottomFast",
2056
- "shuffleBottomRight",
2057
- "shuffleBottomRightSlow",
2058
- "shuffleBottomRightFast",
2059
- "shuffleBottomLeft",
2060
- "shuffleBottomLeftSlow",
2061
- "shuffleBottomLeftFast",
2062
- "shuffleLeftBottom",
2063
- "shuffleLeftBottomSlow",
2064
- "shuffleLeftBottomFast",
2065
- "shuffleLeftTop",
2066
- "shuffleLeftTopSlow",
2067
- "shuffleLeftTopFast",
2068
- "shuffleTopLeft",
2069
- "shuffleTopLeftSlow",
2070
- "shuffleTopLeftFast",
2071
- "zoom",
2072
- ])),
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
+ ]))
2073
2461
  });
2074
2462
  exports.transitionSchema = exports.transitionTransitionSchema;
2075
2463
  /**
@@ -2085,74 +2473,121 @@ exports.transitionSchema = exports.transitionTransitionSchema;
2085
2473
  exports.tweenTweenSchema = zod_1.z.object({
2086
2474
  from: zod_1.z.optional(zod_1.z.unknown()),
2087
2475
  to: zod_1.z.optional(zod_1.z.unknown()),
2088
- start: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number())),
2089
- length: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number())),
2090
- interpolation: zod_1.z.optional(zod_1.z.enum(["linear", "bezier", "constant"])),
2091
- easing: zod_1.z.optional(zod_1.z.enum([
2092
- "ease",
2093
- "easeIn",
2094
- "easeOut",
2095
- "easeInOut",
2096
- "easeInQuad",
2097
- "easeInCubic",
2098
- "easeInQuart",
2099
- "easeInQuint",
2100
- "easeInSine",
2101
- "easeInExpo",
2102
- "easeInCirc",
2103
- "easeInBack",
2104
- "easeOutQuad",
2105
- "easeOutCubic",
2106
- "easeOutQuart",
2107
- "easeOutQuint",
2108
- "easeOutSine",
2109
- "easeOutExpo",
2110
- "easeOutCirc",
2111
- "easeOutBack",
2112
- "easeInOutQuad",
2113
- "easeInOutCubic",
2114
- "easeInOutQuart",
2115
- "easeInOutQuint",
2116
- "easeInOutSine",
2117
- "easeInOutExpo",
2118
- "easeInOutCirc",
2119
- "easeInOutBack",
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'
2120
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
+ ]))
2121
2517
  });
2122
2518
  exports.tweenSchema = exports.tweenTweenSchema;
2123
2519
  /**
2124
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.
2125
2521
  */
2126
2522
  exports.audioassetAudioAssetSchema = zod_1.z.object({
2127
- type: zod_1.z.enum(["audio"]),
2523
+ type: zod_1.z.enum(['audio']),
2128
2524
  src: zod_1.z.string(),
2129
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number())),
2130
- 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)])),
2131
- 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))),
2132
- 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
+ ]))
2133
2543
  });
2134
2544
  exports.audioAssetSchema = exports.audioassetAudioAssetSchema;
2135
2545
  /**
2136
2546
  * Offsets the position of an asset horizontally or vertically by a relative distance.
2137
2547
  */
2138
2548
  exports.offsetOffsetSchema = zod_1.z.object({
2139
- 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)])),
2140
- 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
+ ]))
2141
2561
  });
2142
2562
  exports.offsetSchema = exports.offsetOffsetSchema;
2143
2563
  /**
2144
2564
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
2145
2565
  */
2146
2566
  exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
2147
- 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
+ ]))
2148
2573
  });
2149
2574
  exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema;
2150
2575
  /**
2151
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.
2152
2577
  */
2153
2578
  exports.skewtransformationSkewTransformationSchema = zod_1.z.object({
2154
- 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)])),
2155
- 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
+ ]))
2156
2591
  });
2157
2592
  exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema;
2158
2593
  /**
@@ -2164,43 +2599,43 @@ exports.skewTransformationSchema = exports.skewtransformationSkewTransformationS
2164
2599
  * @deprecated
2165
2600
  */
2166
2601
  exports.titleassetTitleAssetSchema = zod_1.z.object({
2167
- type: zod_1.z.enum(["title"]),
2602
+ type: zod_1.z.enum(['title']),
2168
2603
  text: zod_1.z.string(),
2169
2604
  style: zod_1.z.optional(zod_1.z.enum([
2170
- "minimal",
2171
- "blockbuster",
2172
- "vogue",
2173
- "sketchy",
2174
- "skinny",
2175
- "chunk",
2176
- "chunkLight",
2177
- "marker",
2178
- "future",
2179
- "subtitle",
2605
+ 'minimal',
2606
+ 'blockbuster',
2607
+ 'vogue',
2608
+ 'sketchy',
2609
+ 'skinny',
2610
+ 'chunk',
2611
+ 'chunkLight',
2612
+ 'marker',
2613
+ 'future',
2614
+ 'subtitle'
2180
2615
  ])),
2181
2616
  color: zod_1.z.optional(zod_1.z.string()),
2182
2617
  size: zod_1.z.optional(zod_1.z.enum([
2183
- "xx-small",
2184
- "x-small",
2185
- "small",
2186
- "medium",
2187
- "large",
2188
- "x-large",
2189
- "xx-large",
2618
+ 'xx-small',
2619
+ 'x-small',
2620
+ 'small',
2621
+ 'medium',
2622
+ 'large',
2623
+ 'x-large',
2624
+ 'xx-large'
2190
2625
  ])),
2191
2626
  background: zod_1.z.optional(zod_1.z.string()),
2192
2627
  position: zod_1.z.optional(zod_1.z.enum([
2193
- "top",
2194
- "topRight",
2195
- "right",
2196
- "bottomRight",
2197
- "bottom",
2198
- "bottomLeft",
2199
- "left",
2200
- "topLeft",
2201
- "center",
2628
+ 'top',
2629
+ 'topRight',
2630
+ 'right',
2631
+ 'bottomRight',
2632
+ 'bottom',
2633
+ 'bottomLeft',
2634
+ 'left',
2635
+ 'topLeft',
2636
+ 'center'
2202
2637
  ])),
2203
- offset: zod_1.z.optional(exports.offsetOffsetSchema),
2638
+ offset: zod_1.z.optional(exports.offsetOffsetSchema)
2204
2639
  });
2205
2640
  exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
2206
2641
  /**
@@ -2209,22 +2644,36 @@ exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
2209
2644
  exports.transformationTransformationSchema = zod_1.z.object({
2210
2645
  rotate: zod_1.z.optional(exports.rotatetransformationRotateTransformationSchema),
2211
2646
  skew: zod_1.z.optional(exports.skewtransformationSkewTransformationSchema),
2212
- flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema),
2647
+ flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema)
2213
2648
  });
2214
2649
  exports.transformationSchema = exports.transformationTransformationSchema;
2215
2650
  /**
2216
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.
2217
2652
  */
2218
2653
  exports.videoassetVideoAssetSchema = zod_1.z.object({
2219
- type: zod_1.z.enum(["video"]),
2654
+ type: zod_1.z.enum(['video']),
2220
2655
  src: zod_1.z.string(),
2221
2656
  transcode: zod_1.z.optional(zod_1.z.boolean()),
2222
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number())),
2223
- 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)])),
2224
- volumeEffect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2225
- 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))),
2226
2675
  crop: zod_1.z.optional(exports.cropCropSchema),
2227
- chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema),
2676
+ chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema)
2228
2677
  });
2229
2678
  exports.videoAssetSchema = exports.videoassetVideoAssetSchema;
2230
2679
  /**
@@ -2251,66 +2700,93 @@ exports.assetSchema = exports.assetAssetSchema;
2251
2700
  */
2252
2701
  exports.clipClipSchema = zod_1.z.object({
2253
2702
  asset: exports.assetAssetSchema,
2254
- 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"])]),
2255
- 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")]),
2256
- fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop", "none"])),
2257
- scale: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number())),
2258
- 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))),
2259
- 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))),
2260
2731
  position: zod_1.z.optional(zod_1.z.enum([
2261
- "top",
2262
- "topRight",
2263
- "right",
2264
- "bottomRight",
2265
- "bottom",
2266
- "bottomLeft",
2267
- "left",
2268
- "topLeft",
2269
- "center",
2732
+ 'top',
2733
+ 'topRight',
2734
+ 'right',
2735
+ 'bottomRight',
2736
+ 'bottom',
2737
+ 'bottomLeft',
2738
+ 'left',
2739
+ 'topLeft',
2740
+ 'center'
2270
2741
  ])),
2271
2742
  offset: zod_1.z.optional(exports.offsetOffsetSchema),
2272
2743
  transition: zod_1.z.optional(exports.transitionTransitionSchema),
2273
2744
  effect: zod_1.z.optional(zod_1.z.enum([
2274
- "zoomIn",
2275
- "zoomInSlow",
2276
- "zoomInFast",
2277
- "zoomOut",
2278
- "zoomOutSlow",
2279
- "zoomOutFast",
2280
- "slideLeft",
2281
- "slideLeftSlow",
2282
- "slideLeftFast",
2283
- "slideRight",
2284
- "slideRightSlow",
2285
- "slideRightFast",
2286
- "slideUp",
2287
- "slideUpSlow",
2288
- "slideUpFast",
2289
- "slideDown",
2290
- "slideDownSlow",
2291
- "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'
2292
2763
  ])),
2293
2764
  filter: zod_1.z.optional(zod_1.z.enum([
2294
- "none",
2295
- "blur",
2296
- "boost",
2297
- "contrast",
2298
- "darken",
2299
- "greyscale",
2300
- "lighten",
2301
- "muted",
2302
- "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)
2303
2780
  ])),
2304
- opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number()), zod_1.z.array(exports.tweenTweenSchema)])),
2305
2781
  transform: zod_1.z.optional(exports.transformationTransformationSchema),
2306
- 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_-]+$/))
2307
2783
  });
2308
2784
  exports.clipSchema = exports.clipClipSchema;
2309
2785
  /**
2310
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.
2311
2787
  */
2312
2788
  exports.trackTrackSchema = zod_1.z.object({
2313
- clips: zod_1.z.array(exports.clipClipSchema),
2789
+ clips: zod_1.z.array(exports.clipClipSchema)
2314
2790
  });
2315
2791
  exports.trackSchema = exports.trackTrackSchema;
2316
2792
  /**
@@ -2321,7 +2797,7 @@ exports.timelineTimelineSchema = zod_1.z.object({
2321
2797
  background: zod_1.z.optional(zod_1.z.string()),
2322
2798
  fonts: zod_1.z.optional(zod_1.z.array(exports.fontFontSchema)),
2323
2799
  tracks: zod_1.z.array(exports.trackTrackSchema),
2324
- cache: zod_1.z.optional(zod_1.z.boolean()),
2800
+ cache: zod_1.z.optional(zod_1.z.boolean())
2325
2801
  });
2326
2802
  exports.timelineSchema = exports.timelineTimelineSchema;
2327
2803
  /**
@@ -2332,7 +2808,7 @@ exports.editEditSchema = zod_1.z.object({
2332
2808
  output: exports.outputOutputSchema,
2333
2809
  merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
2334
2810
  callback: zod_1.z.optional(zod_1.z.string()),
2335
- disk: zod_1.z.optional(zod_1.z.enum(["local", "mount"])),
2811
+ disk: zod_1.z.optional(zod_1.z.enum(['local', 'mount']))
2336
2812
  });
2337
2813
  exports.editSchema = exports.editEditSchema;
2338
2814
  /**
@@ -2343,23 +2819,33 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
2343
2819
  owner: zod_1.z.string(),
2344
2820
  plan: zod_1.z.optional(zod_1.z.string()),
2345
2821
  status: zod_1.z.enum([
2346
- "queued",
2347
- "fetching",
2348
- "preprocessing",
2349
- "rendering",
2350
- "saving",
2351
- "done",
2352
- "failed",
2822
+ 'queued',
2823
+ 'fetching',
2824
+ 'preprocessing',
2825
+ 'rendering',
2826
+ 'saving',
2827
+ 'done',
2828
+ 'failed'
2353
2829
  ]),
2354
2830
  error: zod_1.z.optional(zod_1.z.string()),
2355
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => v === '' || Array.isArray(v) ? NaN : v), zod_1.z.coerce.number())),
2356
- 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())),
2357
2837
  url: zod_1.z.optional(zod_1.z.string()),
2358
- poster: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
2359
- 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
+ ])),
2360
2846
  data: zod_1.z.optional(exports.editEditSchema),
2361
2847
  created: zod_1.z.optional(zod_1.z.string()),
2362
- updated: zod_1.z.optional(zod_1.z.string()),
2848
+ updated: zod_1.z.optional(zod_1.z.string())
2363
2849
  });
2364
2850
  exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema;
2365
2851
  /**
@@ -2368,7 +2854,7 @@ exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataS
2368
2854
  exports.renderresponseRenderResponseSchema = zod_1.z.object({
2369
2855
  success: zod_1.z.boolean(),
2370
2856
  message: zod_1.z.string(),
2371
- response: exports.renderresponsedataRenderResponseDataSchema,
2857
+ response: exports.renderresponsedataRenderResponseDataSchema
2372
2858
  });
2373
2859
  exports.renderResponseSchema = exports.renderresponseRenderResponseSchema;
2374
2860
  /**
@@ -2378,7 +2864,7 @@ exports.templatedataresponsedataTemplateDataResponseDataSchema = zod_1.z.object(
2378
2864
  id: zod_1.z.string(),
2379
2865
  name: zod_1.z.string(),
2380
2866
  owner: zod_1.z.string(),
2381
- template: exports.editEditSchema,
2867
+ template: exports.editEditSchema
2382
2868
  });
2383
2869
  exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema;
2384
2870
  /**
@@ -2387,7 +2873,7 @@ exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplat
2387
2873
  exports.templatedataresponseTemplateDataResponseSchema = zod_1.z.object({
2388
2874
  success: zod_1.z.boolean(),
2389
2875
  message: zod_1.z.string(),
2390
- response: exports.templatedataresponsedataTemplateDataResponseDataSchema,
2876
+ response: exports.templatedataresponsedataTemplateDataResponseDataSchema
2391
2877
  });
2392
2878
  exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema;
2393
2879
  /**
@@ -2395,13 +2881,13 @@ exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataRes
2395
2881
  */
2396
2882
  exports.templateTemplateSchema = zod_1.z.object({
2397
2883
  name: zod_1.z.string(),
2398
- template: zod_1.z.optional(exports.editEditSchema),
2884
+ template: zod_1.z.optional(exports.editEditSchema)
2399
2885
  });
2400
2886
  exports.templateSchema = exports.templateTemplateSchema;
2401
2887
  exports.postRenderRequest = zod_1.z.object({
2402
2888
  body: exports.editEditSchema,
2403
2889
  path: zod_1.z.optional(zod_1.z.never()),
2404
- query: zod_1.z.optional(zod_1.z.never()),
2890
+ query: zod_1.z.optional(zod_1.z.never())
2405
2891
  });
2406
2892
  /**
2407
2893
  * The queued render details
@@ -2410,14 +2896,12 @@ exports.postRenderResponse = exports.queuedresponseQueuedResponseSchema;
2410
2896
  exports.getRenderRequest = zod_1.z.object({
2411
2897
  body: zod_1.z.optional(zod_1.z.never()),
2412
2898
  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}$/),
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}$/)
2416
2900
  }),
2417
2901
  query: zod_1.z.optional(zod_1.z.object({
2418
2902
  data: zod_1.z.optional(zod_1.z.boolean()),
2419
- merged: zod_1.z.optional(zod_1.z.boolean()),
2420
- })),
2903
+ merged: zod_1.z.optional(zod_1.z.boolean())
2904
+ }))
2421
2905
  });
2422
2906
  /**
2423
2907
  * The render status details
@@ -2426,7 +2910,7 @@ exports.getRenderResponse = exports.renderresponseRenderResponseSchema;
2426
2910
  exports.getTemplatesRequest = zod_1.z.object({
2427
2911
  body: zod_1.z.optional(zod_1.z.never()),
2428
2912
  path: zod_1.z.optional(zod_1.z.never()),
2429
- query: zod_1.z.optional(zod_1.z.never()),
2913
+ query: zod_1.z.optional(zod_1.z.never())
2430
2914
  });
2431
2915
  /**
2432
2916
  * The list of templates stored against a users account
@@ -2435,7 +2919,7 @@ exports.getTemplatesResponse = exports.templatelistresponseTemplateListResponseS
2435
2919
  exports.postTemplateRequest = zod_1.z.object({
2436
2920
  body: exports.templateTemplateSchema,
2437
2921
  path: zod_1.z.optional(zod_1.z.never()),
2438
- query: zod_1.z.optional(zod_1.z.never()),
2922
+ query: zod_1.z.optional(zod_1.z.never())
2439
2923
  });
2440
2924
  /**
2441
2925
  * The saved template status including the id
@@ -2444,11 +2928,9 @@ exports.postTemplateResponse = exports.templateresponseTemplateResponseSchema;
2444
2928
  exports.deleteTemplateRequest = zod_1.z.object({
2445
2929
  body: zod_1.z.optional(zod_1.z.never()),
2446
2930
  path: zod_1.z.object({
2447
- id: zod_1.z
2448
- .string()
2449
- .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
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}$/)
2450
2932
  }),
2451
- query: zod_1.z.optional(zod_1.z.never()),
2933
+ query: zod_1.z.optional(zod_1.z.never())
2452
2934
  });
2453
2935
  /**
2454
2936
  * An empty response signifying the template has been deleted
@@ -2457,11 +2939,9 @@ exports.deleteTemplateResponse = zod_1.z.void();
2457
2939
  exports.getTemplateRequest = zod_1.z.object({
2458
2940
  body: zod_1.z.optional(zod_1.z.never()),
2459
2941
  path: zod_1.z.object({
2460
- id: zod_1.z
2461
- .string()
2462
- .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
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}$/)
2463
2943
  }),
2464
- query: zod_1.z.optional(zod_1.z.never()),
2944
+ query: zod_1.z.optional(zod_1.z.never())
2465
2945
  });
2466
2946
  /**
2467
2947
  * The template details including the [Edit](#tocs_edit)
@@ -2470,11 +2950,9 @@ exports.getTemplateResponse = exports.templatedataresponseTemplateDataResponseSc
2470
2950
  exports.putTemplateRequest = zod_1.z.object({
2471
2951
  body: exports.templateTemplateSchema,
2472
2952
  path: zod_1.z.object({
2473
- id: zod_1.z
2474
- .string()
2475
- .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
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}$/)
2476
2954
  }),
2477
- query: zod_1.z.optional(zod_1.z.never()),
2955
+ query: zod_1.z.optional(zod_1.z.never())
2478
2956
  });
2479
2957
  /**
2480
2958
  * Update a templates name and [Edit](#tocs_edit)
@@ -2483,7 +2961,7 @@ exports.putTemplateResponse = exports.templateresponseTemplateResponseSchema;
2483
2961
  exports.postTemplateRenderRequest = zod_1.z.object({
2484
2962
  body: exports.templaterenderTemplateRenderSchema,
2485
2963
  path: zod_1.z.optional(zod_1.z.never()),
2486
- query: zod_1.z.optional(zod_1.z.never()),
2964
+ query: zod_1.z.optional(zod_1.z.never())
2487
2965
  });
2488
2966
  /**
2489
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.
@@ -2492,9 +2970,9 @@ exports.postTemplateRenderResponse = exports.queuedresponseQueuedResponseSchema;
2492
2970
  exports.probeRequest = zod_1.z.object({
2493
2971
  body: zod_1.z.optional(zod_1.z.never()),
2494
2972
  path: zod_1.z.object({
2495
- url: zod_1.z.string(),
2973
+ url: zod_1.z.string()
2496
2974
  }),
2497
- query: zod_1.z.optional(zod_1.z.never()),
2975
+ query: zod_1.z.optional(zod_1.z.never())
2498
2976
  });
2499
2977
  /**
2500
2978
  * FFprobe response formatted as JSON.
@@ -2503,11 +2981,9 @@ exports.probeResponse = exports.proberesponseProbeResponseSchema;
2503
2981
  exports.deleteAssetRequest = zod_1.z.object({
2504
2982
  body: zod_1.z.optional(zod_1.z.never()),
2505
2983
  path: zod_1.z.object({
2506
- id: zod_1.z
2507
- .string()
2508
- .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
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}$/)
2509
2985
  }),
2510
- query: zod_1.z.optional(zod_1.z.never()),
2986
+ query: zod_1.z.optional(zod_1.z.never())
2511
2987
  });
2512
2988
  /**
2513
2989
  * An empty response signifying the asset has been deleted
@@ -2516,11 +2992,9 @@ exports.deleteAssetResponse = zod_1.z.void();
2516
2992
  exports.getAssetRequest = zod_1.z.object({
2517
2993
  body: zod_1.z.optional(zod_1.z.never()),
2518
2994
  path: zod_1.z.object({
2519
- id: zod_1.z
2520
- .string()
2521
- .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
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}$/)
2522
2996
  }),
2523
- query: zod_1.z.optional(zod_1.z.never()),
2997
+ query: zod_1.z.optional(zod_1.z.never())
2524
2998
  });
2525
2999
  /**
2526
3000
  * Get asset by asset id
@@ -2529,11 +3003,9 @@ exports.getAssetResponse = exports.assetresponseAssetResponseSchema;
2529
3003
  exports.getAssetByRenderIdRequest = zod_1.z.object({
2530
3004
  body: zod_1.z.optional(zod_1.z.never()),
2531
3005
  path: zod_1.z.object({
2532
- id: zod_1.z
2533
- .string()
2534
- .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
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}$/)
2535
3007
  }),
2536
- query: zod_1.z.optional(zod_1.z.never()),
3008
+ query: zod_1.z.optional(zod_1.z.never())
2537
3009
  });
2538
3010
  /**
2539
3011
  * Get one or more assets by render id
@@ -2542,7 +3014,7 @@ exports.getAssetByRenderIdResponse = exports.assetrenderresponseAssetRenderRespo
2542
3014
  exports.postServeAssetRequest = zod_1.z.object({
2543
3015
  body: exports.transferTransferSchema,
2544
3016
  path: zod_1.z.optional(zod_1.z.never()),
2545
- query: zod_1.z.optional(zod_1.z.never()),
3017
+ query: zod_1.z.optional(zod_1.z.never())
2546
3018
  });
2547
3019
  /**
2548
3020
  * The transfer request details and status
@@ -2551,7 +3023,7 @@ exports.postServeAssetResponse = exports.transferresponseTransferResponseSchema;
2551
3023
  exports.getSourcesRequest = zod_1.z.object({
2552
3024
  body: zod_1.z.optional(zod_1.z.never()),
2553
3025
  path: zod_1.z.optional(zod_1.z.never()),
2554
- query: zod_1.z.optional(zod_1.z.never()),
3026
+ query: zod_1.z.optional(zod_1.z.never())
2555
3027
  });
2556
3028
  /**
2557
3029
  * The list of ingested source files stored against a users account
@@ -2560,7 +3032,7 @@ exports.getSourcesResponse = exports.sourcelistresponseSourceListResponseSchema;
2560
3032
  exports.postSourceRequest = zod_1.z.object({
2561
3033
  body: exports.sourceSourceSchema,
2562
3034
  path: zod_1.z.optional(zod_1.z.never()),
2563
- query: zod_1.z.optional(zod_1.z.never()),
3035
+ query: zod_1.z.optional(zod_1.z.never())
2564
3036
  });
2565
3037
  /**
2566
3038
  * The queued source file details
@@ -2569,11 +3041,9 @@ exports.postSourceResponse = exports.queuedsourceresponseQueuedSourceResponseSch
2569
3041
  exports.deleteSourceRequest = zod_1.z.object({
2570
3042
  body: zod_1.z.optional(zod_1.z.never()),
2571
3043
  path: zod_1.z.object({
2572
- id: zod_1.z
2573
- .string()
2574
- .regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
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}$/)
2575
3045
  }),
2576
- query: zod_1.z.optional(zod_1.z.never()),
3046
+ query: zod_1.z.optional(zod_1.z.never())
2577
3047
  });
2578
3048
  /**
2579
3049
  * An empty response signifying the ingested source file has been deleted.
@@ -2582,11 +3052,9 @@ exports.deleteSourceResponse = zod_1.z.void();
2582
3052
  exports.getSourceRequest = zod_1.z.object({
2583
3053
  body: zod_1.z.optional(zod_1.z.never()),
2584
3054
  path: zod_1.z.object({
2585
- id: zod_1.z
2586
- .string()
2587
- .regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
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}$/)
2588
3056
  }),
2589
- query: zod_1.z.optional(zod_1.z.never()),
3057
+ query: zod_1.z.optional(zod_1.z.never())
2590
3058
  });
2591
3059
  /**
2592
3060
  * Get source file details by id
@@ -2595,7 +3063,7 @@ exports.getSourceResponse = exports.sourceresponseSourceResponseSchema;
2595
3063
  exports.getUploadSignedUrlRequest = zod_1.z.object({
2596
3064
  body: zod_1.z.optional(zod_1.z.never()),
2597
3065
  path: zod_1.z.optional(zod_1.z.never()),
2598
- query: zod_1.z.optional(zod_1.z.never()),
3066
+ query: zod_1.z.optional(zod_1.z.never())
2599
3067
  });
2600
3068
  /**
2601
3069
  * The id and signed URL to upload to.
@@ -2604,7 +3072,7 @@ exports.getUploadSignedUrlResponse = exports.uploadresponseUploadResponseSchema;
2604
3072
  exports.postGenerateAssetRequest = zod_1.z.object({
2605
3073
  body: exports.generatedAssetGeneratedAssetSchema,
2606
3074
  path: zod_1.z.optional(zod_1.z.never()),
2607
- query: zod_1.z.optional(zod_1.z.never()),
3075
+ query: zod_1.z.optional(zod_1.z.never())
2608
3076
  });
2609
3077
  /**
2610
3078
  * The generated asset details
@@ -2613,11 +3081,9 @@ exports.postGenerateAssetResponse = exports.generatedAssetResponseGeneratedAsset
2613
3081
  exports.getGeneratedAssetRequest = zod_1.z.object({
2614
3082
  body: zod_1.z.optional(zod_1.z.never()),
2615
3083
  path: zod_1.z.object({
2616
- id: zod_1.z
2617
- .string()
2618
- .regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
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}$/)
2619
3085
  }),
2620
- query: zod_1.z.optional(zod_1.z.never()),
3086
+ query: zod_1.z.optional(zod_1.z.never())
2621
3087
  });
2622
3088
  /**
2623
3089
  * The generated asset details