@shotstack/schemas 1.8.7 → 1.9.0

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.
@@ -1,6 +1,6 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- import { z } from "zod";
3
+ import { z } from 'zod';
4
4
 
5
5
  export const editRootSchema = z.unknown();
6
6
 
@@ -38,10 +38,10 @@ export const uploadRootSchema = z.unknown();
38
38
  * Displays a background box behind the caption text.
39
39
  */
40
40
  export const captionpropertiesCaptionBackgroundSchema = z.object({
41
- color: z.optional(z.string()),
42
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
43
- padding: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
44
- borderRadius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
41
+ color: z.optional(z.string()),
42
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
43
+ padding: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
44
+ borderRadius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
45
45
  }).strict();
46
46
 
47
47
  export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
@@ -50,13 +50,13 @@ export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
50
50
  * Font properties for captions text.
51
51
  */
52
52
  export const captionpropertiesCaptionFontSchema = z.object({
53
- family: z.optional(z.string()),
54
- color: z.optional(z.string()),
55
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
56
- size: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
57
- lineHeight: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
58
- stroke: z.optional(z.string()),
59
- strokeWidth: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
53
+ family: z.optional(z.string()),
54
+ color: z.optional(z.string()),
55
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
56
+ size: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
57
+ lineHeight: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
58
+ stroke: z.optional(z.string()),
59
+ strokeWidth: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
60
60
  }).strict();
61
61
 
62
62
  export const captionFontSchema = captionpropertiesCaptionFontSchema;
@@ -65,9 +65,9 @@ export const captionFontSchema = captionpropertiesCaptionFontSchema;
65
65
  * The margin properties for captions. Margins are used to position the caption text and background on the screen.
66
66
  */
67
67
  export const captionpropertiesCaptionMarginSchema = z.object({
68
- top: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
69
- left: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
70
- right: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
68
+ top: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
69
+ left: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
70
+ right: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
71
71
  }).strict();
72
72
 
73
73
  export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
@@ -85,13 +85,13 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
85
85
  *
86
86
  */
87
87
  export const captionassetCaptionAssetSchema = z.object({
88
- type: z.enum(["caption"]),
89
- src: z.string().min(1).regex(/\S/),
90
- font: z.optional(captionpropertiesCaptionFontSchema),
91
- background: z.optional(captionpropertiesCaptionBackgroundSchema),
92
- margin: z.optional(captionpropertiesCaptionMarginSchema),
93
- trim: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
94
- speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
88
+ type: z.enum(['caption']),
89
+ src: z.string().min(1).regex(/\S/),
90
+ font: z.optional(captionpropertiesCaptionFontSchema),
91
+ background: z.optional(captionpropertiesCaptionBackgroundSchema),
92
+ margin: z.optional(captionpropertiesCaptionMarginSchema),
93
+ trim: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
94
+ speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
95
95
  }).strict();
96
96
 
97
97
  export const captionAssetSchema = captionassetCaptionAssetSchema;
@@ -100,9 +100,9 @@ export const captionAssetSchema = captionassetCaptionAssetSchema;
100
100
  * Chroma key is a technique that replaces a specific color in a video with a different background image or video, enabling seamless integration of diverse environments. Commonly used for green screen and blue screen effects.
101
101
  */
102
102
  export const chromakeyChromaKeySchema = z.object({
103
- color: z.union([z.string().regex(/^#[0-9a-fA-F]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
104
- threshold: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(0).lte(250)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
105
- halo: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(0).lte(250)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
103
+ color: z.union([z.string().regex(/^#[0-9a-fA-F]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
104
+ threshold: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(0).lte(250)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
105
+ halo: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(0).lte(250)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
106
106
  }).strict();
107
107
 
108
108
  export const chromaKeySchema = chromakeyChromaKeySchema;
@@ -111,14 +111,19 @@ export const chromaKeySchema = chromakeyChromaKeySchema;
111
111
  * 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.
112
112
  */
113
113
  export const didTextToAvatarOptionsDidTextToAvatarOptionsSchema = z.object({
114
- type: z.enum(["text-to-avatar"]),
115
- text: z.string(),
116
- avatar: z.enum(["jack", "lana", "lily", "matt", "rian"]),
117
- background: z.optional(z.string()),
114
+ type: z.enum(['text-to-avatar']),
115
+ text: z.string(),
116
+ avatar: z.enum([
117
+ 'jack',
118
+ 'lana',
119
+ 'lily',
120
+ 'matt',
121
+ 'rian'
122
+ ]),
123
+ background: z.optional(z.string())
118
124
  }).strict();
119
125
 
120
- export const didTextToAvatarOptionsSchema =
121
- didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
126
+ export const didTextToAvatarOptionsSchema = didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
122
127
 
123
128
  /**
124
129
  * Generate assets using the third party D-ID provider AI services.
@@ -127,21 +132,18 @@ export const didTextToAvatarOptionsSchema =
127
132
  * <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
128
133
  * </ul>
129
134
  */
130
- export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = z
131
- .object({
132
- type: z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions"),
133
- })
134
- .and(didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
135
+ export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = z.object({
136
+ type: z.literal('didTextToAvatarOptions_DIDTextToAvatarOptions')
137
+ }).strict().and(didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
135
138
 
136
- export const didGeneratedAssetOptionsSchema =
137
- didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
139
+ export const didGeneratedAssetOptionsSchema = didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
138
140
 
139
141
  /**
140
142
  * 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.
141
143
  */
142
144
  export const didGeneratedAssetDidGeneratedAssetSchema = z.object({
143
- provider: z.enum(["d-id"]),
144
- options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
145
+ provider: z.enum(['d-id']),
146
+ options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema
145
147
  }).strict();
146
148
 
147
149
  export const didGeneratedAssetSchema = didGeneratedAssetDidGeneratedAssetSchema;
@@ -149,25 +151,23 @@ export const didGeneratedAssetSchema = didGeneratedAssetDidGeneratedAssetSchema;
149
151
  /**
150
152
  * 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.
151
153
  */
152
- export const elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema =
153
- z.object({
154
- type: z.enum(["text-to-speech"]),
154
+ export const elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = z.object({
155
+ type: z.enum(['text-to-speech']),
155
156
  text: z.string(),
156
157
  voice: z.enum([
157
- "Adam",
158
- "Antoni",
159
- "Arnold",
160
- "Bella",
161
- "Domi",
162
- "Elli",
163
- "Josh",
164
- "Rachel",
165
- "Sam",
166
- ]),
167
- }).strict();
158
+ 'Adam',
159
+ 'Antoni',
160
+ 'Arnold',
161
+ 'Bella',
162
+ 'Domi',
163
+ 'Elli',
164
+ 'Josh',
165
+ 'Rachel',
166
+ 'Sam'
167
+ ])
168
+ }).strict();
168
169
 
169
- export const elevenLabsTextToSpeechOptionsSchema =
170
- elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
170
+ export const elevenLabsTextToSpeechOptionsSchema = elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
171
171
 
172
172
  /**
173
173
  * Generate assets using the third party ElevenLabs provider AI services.
@@ -176,157 +176,148 @@ export const elevenLabsTextToSpeechOptionsSchema =
176
176
  * <li><a href="#tocs_elevenlabstexttospeechoptions">ElevenLabsTextToSpeechOptions</a></li>
177
177
  * </ul>
178
178
  */
179
- export const elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema =
180
- z
181
- .object({
182
- type: z.literal(
183
- "elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions",
184
- ),
185
- })
186
- .and(elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
179
+ export const elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = z.object({
180
+ type: z.literal('elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions')
181
+ }).strict().and(elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
187
182
 
188
- export const elevenLabsGeneratedAssetOptionsSchema =
189
- elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
183
+ export const elevenLabsGeneratedAssetOptionsSchema = elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
190
184
 
191
185
  /**
192
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.
193
187
  */
194
188
  export const elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = z.object({
195
- provider: z.enum(["elevenlabs"]),
196
- options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
189
+ provider: z.enum(['elevenlabs']),
190
+ options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema
197
191
  }).strict();
198
192
 
199
- export const elevenLabsGeneratedAssetSchema =
200
- elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
193
+ export const elevenLabsGeneratedAssetSchema = elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
201
194
 
202
195
  /**
203
196
  * Options for the HeyGen text-to-avatar service. Set the text to be converted to an avatar and configure the avatars voice, speaking style, appearance and background. The output will be generated as an MP4 video file available at the URL returned in the response.
204
197
  */
205
- export const heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema =
206
- z.object({
207
- type: z.enum(["text-to-avatar"]),
198
+ export const heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = z.object({
199
+ type: z.enum(['text-to-avatar']),
208
200
  text: z.string(),
209
201
  avatar: z.enum([
210
- "Angela",
211
- "Bill",
212
- "Daisy",
213
- "Derek",
214
- "Eva",
215
- "Jake",
216
- "Jeff",
217
- "Jerome",
218
- "Joon",
219
- "Kayla",
220
- "Kent",
221
- "Luna",
222
- "Mark",
223
- "Matthew",
224
- "Monica",
225
- "Peter",
226
- "Selina",
227
- "Tanya",
228
- "Thomas",
229
- "Tina",
230
- "Tyler",
231
- "Vanessa",
232
- "Vera",
233
- "Wilson",
234
- "Zoey",
202
+ 'Angela',
203
+ 'Bill',
204
+ 'Daisy',
205
+ 'Derek',
206
+ 'Eva',
207
+ 'Jake',
208
+ 'Jeff',
209
+ 'Jerome',
210
+ 'Joon',
211
+ 'Kayla',
212
+ 'Kent',
213
+ 'Luna',
214
+ 'Mark',
215
+ 'Matthew',
216
+ 'Monica',
217
+ 'Peter',
218
+ 'Selina',
219
+ 'Tanya',
220
+ 'Thomas',
221
+ 'Tina',
222
+ 'Tyler',
223
+ 'Vanessa',
224
+ 'Vera',
225
+ 'Wilson',
226
+ 'Zoey'
235
227
  ]),
236
228
  voice: z.enum([
237
- "Abbi - Natural",
238
- "Adam - Natural",
239
- "Aiston - Friendly",
240
- "Alice - Newscaster",
241
- "Alison - Cheerful",
242
- "Amber - Friendly",
243
- "Amy - Warm",
244
- "Ana - Cheerful",
245
- "Antoni - Friendly",
246
- "Aria - Newscaster",
247
- "Arnold - Cheerful",
248
- "Arthur - Natural",
249
- "Bella - Friendly",
250
- "Belle - Natural",
251
- "Brandon - Warm",
252
- "Brian - Natural",
253
- "Bruce - Natural",
254
- "Cerise - Cheerful",
255
- "Christopher - Calm",
256
- "Clara - Professional",
257
- "Connor - Natural",
258
- "Dahlia - Friendly",
259
- "Davis - Professional",
260
- "Dean - Natural",
261
- "Delbert - Cheerful",
262
- "Edward - Friendly",
263
- "Elaine - Calm",
264
- "Emily - Natural",
265
- "Emma - Newscaster",
266
- "Eric - Newscaster",
267
- "Grace - Natural",
268
- "Hailey - Calm",
269
- "Indira - Cheerful",
270
- "Isabella - Cheerful",
271
- "Jacob - Natural",
272
- "Jahmai - Friendly",
273
- "Jane - Serious",
274
- "Jason - Serious",
275
- "Jelle - Friendly",
276
- "Jen - Natural",
277
- "Jenny - Professional",
278
- "Jodi - Cheerful",
279
- "Joey - Calm",
280
- "Johan - Friendly",
281
- "Josie - Cheerful",
282
- "Keanan - Natural",
283
- "Keith - Cheerful",
284
- "Kellie - Friendly",
285
- "Lauren - Friendly",
286
- "Leah - Natural",
287
- "Liam - Professional",
288
- "Libby - Natural",
289
- "Lily - Professional",
290
- "Lucas - Natural",
291
- "Luke - Professional",
292
- "Luna - Natural",
293
- "Marieke - Natural",
294
- "Matthew - Professional",
295
- "Michelle - Natural",
296
- "Mitchell - Natural",
297
- "Molly - Newscaster",
298
- "Monica - Calm",
299
- "Natasha - Professional",
300
- "Neerja - Newscaster",
301
- "Noah - Serious",
302
- "Oliver - Newscaster",
303
- "Olivia - Calm",
304
- "Paul - Natural",
305
- "Prabhat - Natural",
306
- "Raveena - Natural",
307
- "Rudi - Friendly",
308
- "Ryan - Professional",
309
- "Sam - Natural",
310
- "Sara - Cheerful",
311
- "Sherry - Friendly",
312
- "Sonia - Warm",
313
- "Thomas - Natural",
314
- "Todd - Professional",
315
- "Tony - Professional",
316
- "Tracy - Cheerful",
317
- "Wayne - Natural",
318
- "Wilder - Natural",
319
- "Wille - Natural",
320
- "William - Friendly",
229
+ 'Abbi - Natural',
230
+ 'Adam - Natural',
231
+ 'Aiston - Friendly',
232
+ 'Alice - Newscaster',
233
+ 'Alison - Cheerful',
234
+ 'Amber - Friendly',
235
+ 'Amy - Warm',
236
+ 'Ana - Cheerful',
237
+ 'Antoni - Friendly',
238
+ 'Aria - Newscaster',
239
+ 'Arnold - Cheerful',
240
+ 'Arthur - Natural',
241
+ 'Bella - Friendly',
242
+ 'Belle - Natural',
243
+ 'Brandon - Warm',
244
+ 'Brian - Natural',
245
+ 'Bruce - Natural',
246
+ 'Cerise - Cheerful',
247
+ 'Christopher - Calm',
248
+ 'Clara - Professional',
249
+ 'Connor - Natural',
250
+ 'Dahlia - Friendly',
251
+ 'Davis - Professional',
252
+ 'Dean - Natural',
253
+ 'Delbert - Cheerful',
254
+ 'Edward - Friendly',
255
+ 'Elaine - Calm',
256
+ 'Emily - Natural',
257
+ 'Emma - Newscaster',
258
+ 'Eric - Newscaster',
259
+ 'Grace - Natural',
260
+ 'Hailey - Calm',
261
+ 'Indira - Cheerful',
262
+ 'Isabella - Cheerful',
263
+ 'Jacob - Natural',
264
+ 'Jahmai - Friendly',
265
+ 'Jane - Serious',
266
+ 'Jason - Serious',
267
+ 'Jelle - Friendly',
268
+ 'Jen - Natural',
269
+ 'Jenny - Professional',
270
+ 'Jodi - Cheerful',
271
+ 'Joey - Calm',
272
+ 'Johan - Friendly',
273
+ 'Josie - Cheerful',
274
+ 'Keanan - Natural',
275
+ 'Keith - Cheerful',
276
+ 'Kellie - Friendly',
277
+ 'Lauren - Friendly',
278
+ 'Leah - Natural',
279
+ 'Liam - Professional',
280
+ 'Libby - Natural',
281
+ 'Lily - Professional',
282
+ 'Lucas - Natural',
283
+ 'Luke - Professional',
284
+ 'Luna - Natural',
285
+ 'Marieke - Natural',
286
+ 'Matthew - Professional',
287
+ 'Michelle - Natural',
288
+ 'Mitchell - Natural',
289
+ 'Molly - Newscaster',
290
+ 'Monica - Calm',
291
+ 'Natasha - Professional',
292
+ 'Neerja - Newscaster',
293
+ 'Noah - Serious',
294
+ 'Oliver - Newscaster',
295
+ 'Olivia - Calm',
296
+ 'Paul - Natural',
297
+ 'Prabhat - Natural',
298
+ 'Raveena - Natural',
299
+ 'Rudi - Friendly',
300
+ 'Ryan - Professional',
301
+ 'Sam - Natural',
302
+ 'Sara - Cheerful',
303
+ 'Sherry - Friendly',
304
+ 'Sonia - Warm',
305
+ 'Thomas - Natural',
306
+ 'Todd - Professional',
307
+ 'Tony - Professional',
308
+ 'Tracy - Cheerful',
309
+ 'Wayne - Natural',
310
+ 'Wilder - Natural',
311
+ 'Wille - Natural',
312
+ 'William - Friendly'
321
313
  ]),
322
- avatarStyle: z.optional(z.enum(["normal", "circle"])),
314
+ avatarStyle: z.optional(z.enum(['normal', 'circle'])),
323
315
  background: z.optional(z.string()),
324
- ratio: z.optional(z.enum(["16:9", "9:16"])),
325
- test: z.optional(z.boolean()),
326
- }).strict();
316
+ ratio: z.optional(z.enum(['16:9', '9:16'])),
317
+ test: z.optional(z.boolean())
318
+ }).strict();
327
319
 
328
- export const heyGenTextToAvatarOptionsSchema =
329
- heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
320
+ export const heyGenTextToAvatarOptionsSchema = heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
330
321
 
331
322
  /**
332
323
  * Generate assets using the third party HeyGen provider AI services.
@@ -335,39 +326,33 @@ export const heyGenTextToAvatarOptionsSchema =
335
326
  * <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
336
327
  * </ul>
337
328
  */
338
- export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = z
339
- .object({
340
- type: z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions"),
341
- })
342
- .and(heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
329
+ export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = z.object({
330
+ type: z.literal('heygenTextToAvatarOptions_HeyGenTextToAvatarOptions')
331
+ }).strict().and(heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
343
332
 
344
- export const heyGenGeneratedAssetOptionsSchema =
345
- heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
333
+ export const heyGenGeneratedAssetOptionsSchema = heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
346
334
 
347
335
  /**
348
336
  * 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.
349
337
  */
350
338
  export const heygenGeneratedAssetHeyGenGeneratedAssetSchema = z.object({
351
- provider: z.enum(["heygen"]),
352
- options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
339
+ provider: z.enum(['heygen']),
340
+ options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema
353
341
  }).strict();
354
342
 
355
- export const heyGenGeneratedAssetSchema =
356
- heygenGeneratedAssetHeyGenGeneratedAssetSchema;
343
+ export const heyGenGeneratedAssetSchema = heygenGeneratedAssetHeyGenGeneratedAssetSchema;
357
344
 
358
345
  /**
359
346
  * 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.
360
347
  */
361
- export const openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema =
362
- z.object({
363
- type: z.enum(["text-generator"]),
348
+ export const openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = z.object({
349
+ type: z.enum(['text-generator']),
364
350
  prompt: z.string(),
365
- model: z.enum(["gpt-3.5-turbo", "gpt-4"]),
366
- systemPrompt: z.optional(z.string()),
367
- }).strict();
351
+ model: z.enum(['gpt-3.5-turbo', 'gpt-4']),
352
+ systemPrompt: z.optional(z.string())
353
+ }).strict();
368
354
 
369
- export const openAiTextGeneratorOptionsSchema =
370
- openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
355
+ export const openAiTextGeneratorOptionsSchema = openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
371
356
 
372
357
  /**
373
358
  * Generate assets using OpenAI provider AI services.
@@ -376,333 +361,293 @@ export const openAiTextGeneratorOptionsSchema =
376
361
  * <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
377
362
  * </ul>
378
363
  */
379
- export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = z
380
- .object({
381
- type: z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions"),
382
- })
383
- .and(openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
364
+ export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = z.object({
365
+ type: z.literal('openaiTextGeneratorOptions_OpenAiTextGeneratorOptions')
366
+ }).strict().and(openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
384
367
 
385
- export const openAiGeneratedAssetOptionsSchema =
386
- openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
368
+ export const openAiGeneratedAssetOptionsSchema = openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
387
369
 
388
370
  /**
389
371
  * 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.
390
372
  */
391
373
  export const openaiGeneratedAssetOpenAiGeneratedAssetSchema = z.object({
392
- provider: z.enum(["openai"]),
393
- options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
374
+ provider: z.enum(['openai']),
375
+ options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema
394
376
  }).strict();
395
377
 
396
- export const openAiGeneratedAssetSchema =
397
- openaiGeneratedAssetOpenAiGeneratedAssetSchema;
378
+ export const openAiGeneratedAssetSchema = openaiGeneratedAssetOpenAiGeneratedAssetSchema;
398
379
 
399
380
  /**
400
381
  * Individual errors returned by the Create API.
401
382
  */
402
- export const generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema =
403
- z.object({
383
+ export const generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = z.object({
404
384
  status: z.string(),
405
385
  title: z.string(),
406
- detail: z.string(),
407
- }).strict();
386
+ detail: z.string()
387
+ }).strict();
408
388
 
409
- export const generatedAssetErrorResponseDataSchema =
410
- generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
389
+ export const generatedAssetErrorResponseDataSchema = generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
411
390
 
412
391
  /**
413
392
  * Error response data for validation and other errors returned by the Create API.
414
393
  */
415
- export const generatedAssetErrorResponseGeneratedAssetErrorResponseSchema =
416
- z.object({
417
- errors: z.array(
418
- generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema,
419
- ),
420
- }).strict();
394
+ export const generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = z.object({
395
+ errors: z.array(generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema)
396
+ }).strict();
421
397
 
422
- export const generatedAssetErrorResponseSchema =
423
- generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
398
+ export const generatedAssetErrorResponseSchema = generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
424
399
 
425
400
  /**
426
401
  * The id and attributes of the generated asset.
427
402
  */
428
- export const generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema =
429
- z.object({
403
+ export const generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = z.object({
430
404
  owner: z.string(),
431
- provider: z.enum(["shotstack", "elevenlabs", "heygen", "d-id"]),
432
- type: z.enum(["text-to-speech", "text-to-avatar"]),
405
+ provider: z.enum([
406
+ 'shotstack',
407
+ 'elevenlabs',
408
+ 'heygen',
409
+ 'd-id'
410
+ ]),
411
+ type: z.enum(['text-to-speech', 'text-to-avatar']),
433
412
  url: z.optional(z.string()),
434
- status: z.enum(["queued", "processing", "saving", "done", "failed"]),
413
+ status: z.enum([
414
+ 'queued',
415
+ 'processing',
416
+ 'saving',
417
+ 'done',
418
+ 'failed'
419
+ ]),
435
420
  created: z.string(),
436
- updated: z.string(),
437
- }).strict();
421
+ updated: z.string()
422
+ }).strict();
438
423
 
439
- export const generatedAssetResponseAttributesSchema =
440
- generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
424
+ export const generatedAssetResponseAttributesSchema = generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
441
425
 
442
426
  /**
443
427
  * The type of resource (an asset), it's id and attributes of the generated file.
444
428
  */
445
- export const generatedAssetResponseDataGeneratedAssetResponseDataSchema =
446
- z.object({
429
+ export const generatedAssetResponseDataGeneratedAssetResponseDataSchema = z.object({
447
430
  type: z.string(),
448
431
  id: z.string(),
449
- attributes:
450
- generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
451
- }).strict();
432
+ attributes: generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema
433
+ }).strict();
452
434
 
453
- export const generatedAssetResponseDataSchema =
454
- generatedAssetResponseDataGeneratedAssetResponseDataSchema;
435
+ export const generatedAssetResponseDataSchema = generatedAssetResponseDataGeneratedAssetResponseDataSchema;
455
436
 
456
437
  /**
457
438
  * 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.
458
439
  */
459
440
  export const generatedAssetResponseGeneratedAssetResponseSchema = z.object({
460
- data: generatedAssetResponseDataGeneratedAssetResponseDataSchema,
441
+ data: generatedAssetResponseDataGeneratedAssetResponseDataSchema
461
442
  }).strict();
462
443
 
463
- export const generatedAssetResponseSchema =
464
- generatedAssetResponseGeneratedAssetResponseSchema;
444
+ export const generatedAssetResponseSchema = generatedAssetResponseGeneratedAssetResponseSchema;
465
445
 
466
446
  /**
467
447
  * 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.
468
448
  */
469
- export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema =
470
- z.object({
471
- type: z.enum(["image-to-video"]),
449
+ export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = z.object({
450
+ type: z.enum(['image-to-video']),
472
451
  imageUrl: z.string(),
473
452
  guidanceScale: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.8),
474
- motion: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127),
475
- }).strict();
453
+ motion: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127)
454
+ }).strict();
476
455
 
477
- export const shotstackImageToVideoOptionsSchema =
478
- shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
456
+ export const shotstackImageToVideoOptionsSchema = shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
479
457
 
480
458
  /**
481
459
  * 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.
482
460
  */
483
- export const shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema =
484
- z.object({
485
- type: z.enum(["text-generator"]),
486
- prompt: z.string(),
487
- }).strict();
461
+ export const shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = z.object({
462
+ type: z.enum(['text-generator']),
463
+ prompt: z.string()
464
+ }).strict();
488
465
 
489
- export const shotstackTextGeneratorOptionsSchema =
490
- shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
466
+ export const shotstackTextGeneratorOptionsSchema = shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
491
467
 
492
468
  /**
493
469
  * 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.
494
470
  */
495
- export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema =
496
- z.object({
497
- type: z.enum(["text-to-image"]),
471
+ export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = z.object({
472
+ type: z.enum(['text-to-image']),
498
473
  prompt: z.string(),
499
474
  width: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
500
- height: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
501
- }).strict();
475
+ height: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
476
+ }).strict();
502
477
 
503
- export const shotstackTextToImageOptionsSchema =
504
- shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
478
+ export const shotstackTextToImageOptionsSchema = shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
505
479
 
506
480
  /**
507
481
  * 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.
508
482
  */
509
- export const shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema =
510
- z.object({
511
- type: z.enum(["text-to-speech"]),
483
+ export const shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = z.object({
484
+ type: z.enum(['text-to-speech']),
512
485
  text: z.string(),
513
486
  voice: z.enum([
514
- "Hala",
515
- "Lisa",
516
- "Arlet",
517
- "Hiujin",
518
- "Zhiyu",
519
- "Sofie",
520
- "Laura",
521
- "Olivia",
522
- "Amy",
523
- "Emma",
524
- "Brian",
525
- "Arthur",
526
- "Kajal",
527
- "Niamh",
528
- "Aria",
529
- "Ayanda",
530
- "Ivy",
531
- "Joanna",
532
- "Kendra",
533
- "Kimberly",
534
- "Salli",
535
- "Joey",
536
- "Justin",
537
- "Kevin",
538
- "Matthew",
539
- "Ruth",
540
- "Stephen",
541
- "Suvi",
542
- "Léa",
543
- "Rémi",
544
- "Gabrielle",
545
- "Liam",
546
- "Vicki",
547
- "Daniel",
548
- "Hannah",
549
- "Kajal",
550
- "Bianca",
551
- "Adriano",
552
- "Takumi",
553
- "Kazuha",
554
- "Tomoko",
555
- "Seoyeon",
556
- "Ida",
557
- "Ola",
558
- "Camila",
559
- "Vitória",
560
- "Vitoria",
561
- "Thiago",
562
- "Inês",
563
- "Ines",
564
- "Lucia",
565
- "Sergio",
566
- "Mia",
567
- "Andrés",
568
- "Lupe",
569
- "Pedro",
570
- "Elin",
487
+ 'Hala',
488
+ 'Lisa',
489
+ 'Arlet',
490
+ 'Hiujin',
491
+ 'Zhiyu',
492
+ 'Sofie',
493
+ 'Laura',
494
+ 'Olivia',
495
+ 'Amy',
496
+ 'Emma',
497
+ 'Brian',
498
+ 'Arthur',
499
+ 'Kajal',
500
+ 'Niamh',
501
+ 'Aria',
502
+ 'Ayanda',
503
+ 'Ivy',
504
+ 'Joanna',
505
+ 'Kendra',
506
+ 'Kimberly',
507
+ 'Salli',
508
+ 'Joey',
509
+ 'Justin',
510
+ 'Kevin',
511
+ 'Matthew',
512
+ 'Ruth',
513
+ 'Stephen',
514
+ 'Suvi',
515
+ 'Léa',
516
+ 'Rémi',
517
+ 'Gabrielle',
518
+ 'Liam',
519
+ 'Vicki',
520
+ 'Daniel',
521
+ 'Hannah',
522
+ 'Kajal',
523
+ 'Bianca',
524
+ 'Adriano',
525
+ 'Takumi',
526
+ 'Kazuha',
527
+ 'Tomoko',
528
+ 'Seoyeon',
529
+ 'Ida',
530
+ 'Ola',
531
+ 'Camila',
532
+ 'Vitória',
533
+ 'Vitoria',
534
+ 'Thiago',
535
+ 'Inês',
536
+ 'Ines',
537
+ 'Lucia',
538
+ 'Sergio',
539
+ 'Mia',
540
+ 'Andrés',
541
+ 'Lupe',
542
+ 'Pedro',
543
+ 'Elin'
571
544
  ]),
572
- language: z.optional(
573
- z.enum([
574
- "cmn-CN",
575
- "da-DK",
576
- "de-DE",
577
- "en-AU",
578
- "en-GB",
579
- "en-IN",
580
- "en-US",
581
- "es-ES",
582
- "es-MX",
583
- "es-US",
584
- "fr-CA",
585
- "fr-FR",
586
- "it-IT",
587
- "ja-JP",
588
- "hi-IN",
589
- "ko-KR",
590
- "nb-NO",
591
- "nl-NL",
592
- "pl-PL",
593
- "pt-BR",
594
- "pt-PT",
595
- "sv-SE",
596
- "en-NZ",
597
- "en-ZA",
598
- "ca-ES",
599
- "de-AT",
600
- "yue-CN",
601
- "ar-AE",
602
- "fi-FI",
603
- ]),
604
- ),
605
- newscaster: z.optional(z.boolean()).default(false),
606
- }).strict();
607
-
608
- export const shotstackTextToSpeechOptionsSchema =
609
- shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
545
+ language: z.optional(z.enum([
546
+ 'cmn-CN',
547
+ 'da-DK',
548
+ 'de-DE',
549
+ 'en-AU',
550
+ 'en-GB',
551
+ 'en-IN',
552
+ 'en-US',
553
+ 'es-ES',
554
+ 'es-MX',
555
+ 'es-US',
556
+ 'fr-CA',
557
+ 'fr-FR',
558
+ 'it-IT',
559
+ 'ja-JP',
560
+ 'hi-IN',
561
+ 'ko-KR',
562
+ 'nb-NO',
563
+ 'nl-NL',
564
+ 'pl-PL',
565
+ 'pt-BR',
566
+ 'pt-PT',
567
+ 'sv-SE',
568
+ 'en-NZ',
569
+ 'en-ZA',
570
+ 'ca-ES',
571
+ 'de-AT',
572
+ 'yue-CN',
573
+ 'ar-AE',
574
+ 'fi-FI'
575
+ ])),
576
+ newscaster: z.optional(z.boolean()).default(false)
577
+ }).strict();
578
+
579
+ export const shotstackTextToSpeechOptionsSchema = shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
610
580
 
611
581
  /**
612
582
  * Generate assets using the native Shotstack provider AI services.
613
583
  */
614
- export const shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema =
615
- z.union([
616
- z
617
- .object({
618
- type: z.literal(
619
- "shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions",
620
- ),
621
- })
622
- .and(shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
623
- z
624
- .object({
625
- type: z.literal(
626
- "shotstackTextToImageOptions_ShotstackTextToImageOptions",
627
- ),
628
- })
629
- .and(shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
630
- z
631
- .object({
632
- type: z.literal(
633
- "shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions",
634
- ),
635
- })
636
- .and(shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
637
- z
638
- .object({
639
- type: z.literal(
640
- "shotstackImageToVideoOptions_ShotstackImageToVideoOptions",
641
- ),
642
- })
643
- .and(shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema),
644
- ]);
645
-
646
- export const shotstackGeneratedAssetOptionsSchema =
647
- shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
584
+ export const shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = z.union([
585
+ z.object({
586
+ type: z.literal('shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions')
587
+ }).strict().and(shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
588
+ z.object({
589
+ type: z.literal('shotstackTextToImageOptions_ShotstackTextToImageOptions')
590
+ }).strict().and(shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
591
+ z.object({
592
+ type: z.literal('shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions')
593
+ }).strict().and(shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
594
+ z.object({
595
+ type: z.literal('shotstackImageToVideoOptions_ShotstackImageToVideoOptions')
596
+ }).strict().and(shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema)
597
+ ]);
598
+
599
+ export const shotstackGeneratedAssetOptionsSchema = shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
648
600
 
649
601
  /**
650
602
  * 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.
651
603
  */
652
604
  export const shotstackGeneratedAssetShotstackGeneratedAssetSchema = z.object({
653
- provider: z.enum(["shotstack"]),
654
- options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
605
+ provider: z.enum(['shotstack']),
606
+ options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema
655
607
  }).strict();
656
608
 
657
- export const shotstackGeneratedAssetSchema =
658
- shotstackGeneratedAssetShotstackGeneratedAssetSchema;
609
+ export const shotstackGeneratedAssetSchema = shotstackGeneratedAssetShotstackGeneratedAssetSchema;
659
610
 
660
611
  /**
661
612
  * 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.
662
613
  */
663
- export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema =
664
- z.object({
665
- type: z.enum(["text-to-image"]),
614
+ export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = z.object({
615
+ type: z.enum(['text-to-image']),
666
616
  prompt: z.string(),
667
- engine: z.optional(
668
- z.enum([
669
- "stable-diffusion-xl-1024-v0-9",
670
- "stable-diffusion-xl-1024-v1-0",
671
- "stable-diffusion-v1-6",
672
- "stable-diffusion-512-v2-1",
673
- "stable-diffusion-xl-beta-v2-2-2",
674
- ]),
675
- ),
617
+ engine: z.optional(z.enum([
618
+ 'stable-diffusion-xl-1024-v0-9',
619
+ 'stable-diffusion-xl-1024-v1-0',
620
+ 'stable-diffusion-v1-6',
621
+ 'stable-diffusion-512-v2-1',
622
+ 'stable-diffusion-xl-beta-v2-2-2'
623
+ ])),
676
624
  width: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
677
625
  height: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
678
626
  steps: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(30),
679
627
  seed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
680
628
  cfgScale: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(7),
681
- stylePreset: z.optional(
682
- z.enum([
683
- "3d-model",
684
- "analog-film",
685
- "anime",
686
- "cinematic",
687
- "comic-book",
688
- "digital-art",
689
- "enhance",
690
- "fantasy-art",
691
- "isometric",
692
- "line-art",
693
- "low-poly",
694
- "modeling-compound",
695
- "neon-punk",
696
- "origami",
697
- "photographic",
698
- "pixel-art",
699
- "tile-texture",
700
- ]),
701
- ),
702
- }).strict();
703
-
704
- export const stabilityAiTextToImageOptionsSchema =
705
- stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
629
+ stylePreset: z.optional(z.enum([
630
+ '3d-model',
631
+ 'analog-film',
632
+ 'anime',
633
+ 'cinematic',
634
+ 'comic-book',
635
+ 'digital-art',
636
+ 'enhance',
637
+ 'fantasy-art',
638
+ 'isometric',
639
+ 'line-art',
640
+ 'low-poly',
641
+ 'modeling-compound',
642
+ 'neon-punk',
643
+ 'origami',
644
+ 'photographic',
645
+ 'pixel-art',
646
+ 'tile-texture'
647
+ ]))
648
+ }).strict();
649
+
650
+ export const stabilityAiTextToImageOptionsSchema = stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
706
651
 
707
652
  /**
708
653
  * Generate assets using Stability AI provider AI services.
@@ -711,67 +656,44 @@ export const stabilityAiTextToImageOptionsSchema =
711
656
  * <li><a href="#tocs_stabilityaitexttoimageoptions">StabilityAiTextToImageOptions</a></li>
712
657
  * </ul>
713
658
  */
714
- export const stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema =
715
- z
716
- .object({
717
- type: z.literal(
718
- "stabilityAiTextToImageOptions_StabilityAiTextToImageOptions",
719
- ),
720
- })
721
- .and(stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
659
+ export const stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = z.object({
660
+ type: z.literal('stabilityAiTextToImageOptions_StabilityAiTextToImageOptions')
661
+ }).strict().and(stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
722
662
 
723
- export const stabilityAiGeneratedAssetOptionsSchema =
724
- stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
663
+ export const stabilityAiGeneratedAssetOptionsSchema = stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
725
664
 
726
665
  /**
727
666
  * 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.
728
667
  */
729
- export const stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema =
730
- z.object({
731
- provider: z.enum(["stability-ai"]),
732
- options:
733
- stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
734
- }).strict();
668
+ export const stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = z.object({
669
+ provider: z.enum(['stability-ai']),
670
+ options: stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema
671
+ }).strict();
735
672
 
736
- export const stabilityAiGeneratedAssetSchema =
737
- stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
673
+ export const stabilityAiGeneratedAssetSchema = stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
738
674
 
739
675
  /**
740
676
  * 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.
741
677
  */
742
678
  export const generatedAssetGeneratedAssetSchema = z.union([
743
- z
744
- .object({
745
- provider: z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset"),
746
- })
747
- .and(shotstackGeneratedAssetShotstackGeneratedAssetSchema),
748
- z
749
- .object({
750
- provider: z.literal("didGeneratedAsset_DIDGeneratedAsset"),
751
- })
752
- .and(didGeneratedAssetDidGeneratedAssetSchema),
753
- z
754
- .object({
755
- provider: z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset"),
756
- })
757
- .and(elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
758
- z
759
- .object({
760
- provider: z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset"),
761
- })
762
- .and(heygenGeneratedAssetHeyGenGeneratedAssetSchema),
763
- z
764
- .object({
765
- provider: z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset"),
766
- })
767
- .and(openaiGeneratedAssetOpenAiGeneratedAssetSchema),
768
- z
769
- .object({
770
- provider: z.literal(
771
- "stabilityAiGeneratedAsset_StabilityAiGeneratedAsset",
772
- ),
773
- })
774
- .and(stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema),
679
+ z.object({
680
+ provider: z.literal('shotstackGeneratedAsset_ShotstackGeneratedAsset')
681
+ }).strict().and(shotstackGeneratedAssetShotstackGeneratedAssetSchema),
682
+ z.object({
683
+ provider: z.literal('didGeneratedAsset_DIDGeneratedAsset')
684
+ }).strict().and(didGeneratedAssetDidGeneratedAssetSchema),
685
+ z.object({
686
+ provider: z.literal('elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset')
687
+ }).strict().and(elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
688
+ z.object({
689
+ provider: z.literal('heygenGeneratedAsset_HeyGenGeneratedAsset')
690
+ }).strict().and(heygenGeneratedAssetHeyGenGeneratedAssetSchema),
691
+ z.object({
692
+ provider: z.literal('openaiGeneratedAsset_OpenAiGeneratedAsset')
693
+ }).strict().and(openaiGeneratedAssetOpenAiGeneratedAssetSchema),
694
+ z.object({
695
+ provider: z.literal('stabilityAiGeneratedAsset_StabilityAiGeneratedAsset')
696
+ }).strict().and(stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema)
775
697
  ]);
776
698
 
777
699
  export const generatedAssetSchema = generatedAssetGeneratedAssetSchema;
@@ -780,10 +702,10 @@ export const generatedAssetSchema = generatedAssetGeneratedAssetSchema;
780
702
  * 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.
781
703
  */
782
704
  export const cropCropSchema = z.object({
783
- top: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
784
- bottom: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
785
- left: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
786
- right: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
705
+ top: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
706
+ bottom: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
707
+ left: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
708
+ right: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
787
709
  }).strict();
788
710
 
789
711
  export const cropSchema = cropCropSchema;
@@ -791,114 +713,96 @@ export const cropSchema = cropCropSchema;
791
713
  /**
792
714
  * Pass additional options to control how files are stored in Akamai NetStorage.
793
715
  */
794
- export const akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema =
795
- z.object({
716
+ export const akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema = z.object({
796
717
  host: z.string(),
797
718
  cpCode: z.string(),
798
719
  path: z.optional(z.unknown()),
799
- filename: z.optional(z.unknown()),
800
- }).strict();
720
+ filename: z.optional(z.unknown())
721
+ }).strict();
801
722
 
802
723
  /**
803
724
  * Send videos and assets to [Akamai NetStorage](https://techdocs.akamai.com/netstorage-usage/docs). Send files to your NetStorage upload directory with a custom path and filename. Akamai credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/akamai-netstorage), not in the request.
804
725
  */
805
- export const akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema =
806
- z.object({
726
+ export const akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema = z.object({
807
727
  provider: z.literal("akamai-netstorage"),
808
- options: z.optional(
809
- akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema,
810
- ),
811
- }).strict();
728
+ options: z.optional(akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema)
729
+ }).strict();
812
730
 
813
731
  /**
814
732
  * Pass additional options to control how files are stored in Azure Blob Storage.
815
733
  */
816
- export const azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema =
817
- z.object({
734
+ export const azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema = z.object({
818
735
  accountName: z.string(),
819
736
  container: z.string(),
820
737
  prefix: z.optional(z.unknown()),
821
- filename: z.optional(z.unknown()),
822
- }).strict();
738
+ filename: z.optional(z.unknown())
739
+ }).strict();
823
740
 
824
741
  /**
825
742
  * Send videos and assets to [Azure Blob Storage](https://learn.microsoft.com/en-us/azure/storage/blobs/). Send files to any container with a custom prefix and filename. Azure credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/azure-blob-storage), not in the request.
826
743
  */
827
- export const azureBlobStorageDestinationAzureBlobStorageDestinationSchema =
828
- z.object({
744
+ export const azureBlobStorageDestinationAzureBlobStorageDestinationSchema = z.object({
829
745
  provider: z.literal("azure-blob-storage"),
830
- options: z.optional(
831
- azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema,
832
- ),
833
- }).strict();
746
+ options: z.optional(azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema)
747
+ }).strict();
834
748
 
835
749
  /**
836
750
  * Pass additional options to control how files are stored in Google Cloud Storage.
837
751
  */
838
- export const googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema =
839
- z.object({
752
+ export const googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = z.object({
840
753
  bucket: z.string(),
841
754
  prefix: z.optional(z.string()),
842
- filename: z.optional(z.string()),
843
- }).strict();
755
+ filename: z.optional(z.string())
756
+ }).strict();
844
757
 
845
- export const googleCloudStorageDestinationOptionsSchema =
846
- googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
758
+ export const googleCloudStorageDestinationOptionsSchema = googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
847
759
 
848
760
  /**
849
761
  * 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.
850
762
  */
851
- export const googleCloudStorageDestinationGoogleCloudStorageDestinationSchema =
852
- z.object({
763
+ export const googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = z.object({
853
764
  provider: z.literal("google-cloud-storage"),
854
- options: z.optional(
855
- googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema,
856
- ),
857
- }).strict();
765
+ options: z.optional(googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
766
+ }).strict();
858
767
 
859
- export const googleCloudStorageDestinationSchema =
860
- googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
768
+ export const googleCloudStorageDestinationSchema = googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
861
769
 
862
770
  /**
863
771
  * Pass the folder ID and options to configure how assets are stored in Google Drive.
864
772
  */
865
- export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema =
866
- z.object({
773
+ export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = z.object({
867
774
  folderId: z.string(),
868
- filename: z.optional(z.string()),
869
- }).strict();
775
+ filename: z.optional(z.string())
776
+ }).strict();
870
777
 
871
- export const googleDriveDestinationOptionsSchema =
872
- googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
778
+ export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
873
779
 
874
780
  /**
875
781
  * 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.
876
782
  */
877
783
  export const googleDriveDestinationGoogleDriveDestinationSchema = z.object({
878
- provider: z.literal("google-drive"),
879
- options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
784
+ provider: z.literal("google-drive"),
785
+ options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
880
786
  }).strict();
881
787
 
882
- export const googleDriveDestinationSchema =
883
- googleDriveDestinationGoogleDriveDestinationSchema;
788
+ export const googleDriveDestinationSchema = googleDriveDestinationGoogleDriveDestinationSchema;
884
789
 
885
790
  /**
886
791
  * Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
887
792
  */
888
793
  export const muxDestinationOptionsMuxDestinationOptionsSchema = z.object({
889
- playbackPolicy: z.optional(z.array(z.enum(["public", "signed"]))),
890
- passthrough: z.optional(z.string().max(255)),
794
+ playbackPolicy: z.optional(z.array(z.enum(['public', 'signed']))),
795
+ passthrough: z.optional(z.string().max(255))
891
796
  }).strict();
892
797
 
893
- export const muxDestinationOptionsSchema =
894
- muxDestinationOptionsMuxDestinationOptionsSchema;
798
+ export const muxDestinationOptionsSchema = muxDestinationOptionsMuxDestinationOptionsSchema;
895
799
 
896
800
  /**
897
801
  * 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.
898
802
  */
899
803
  export const muxDestinationMuxDestinationSchema = z.object({
900
- provider: z.literal("mux"),
901
- options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema),
804
+ provider: z.literal("mux"),
805
+ options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema)
902
806
  }).strict();
903
807
 
904
808
  export const muxDestinationSchema = muxDestinationMuxDestinationSchema;
@@ -907,22 +811,21 @@ export const muxDestinationSchema = muxDestinationMuxDestinationSchema;
907
811
  * Pass additional options to control how files are stored in S3.
908
812
  */
909
813
  export const s3DestinationOptionsS3DestinationOptionsSchema = z.object({
910
- region: z.string(),
911
- bucket: z.string(),
912
- prefix: z.optional(z.string()),
913
- filename: z.optional(z.string()),
914
- acl: z.optional(z.string()),
814
+ region: z.string(),
815
+ bucket: z.string(),
816
+ prefix: z.optional(z.string()),
817
+ filename: z.optional(z.string()),
818
+ acl: z.optional(z.string())
915
819
  }).strict();
916
820
 
917
- export const s3DestinationOptionsSchema =
918
- s3DestinationOptionsS3DestinationOptionsSchema;
821
+ export const s3DestinationOptionsSchema = s3DestinationOptionsS3DestinationOptionsSchema;
919
822
 
920
823
  /**
921
824
  * 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.
922
825
  */
923
826
  export const s3DestinationS3DestinationSchema = z.object({
924
- provider: z.literal("s3"),
925
- options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema),
827
+ provider: z.literal("s3"),
828
+ options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema)
926
829
  }).strict();
927
830
 
928
831
  export const s3DestinationSchema = s3DestinationS3DestinationSchema;
@@ -931,70 +834,80 @@ export const s3DestinationSchema = s3DestinationS3DestinationSchema;
931
834
  * 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.
932
835
  */
933
836
  export const shotstackDestinationShotstackDestinationSchema = z.object({
934
- provider: z.literal("shotstack"),
935
- exclude: z.optional(z.boolean()),
837
+ provider: z.literal("shotstack"),
838
+ exclude: z.optional(z.boolean())
936
839
  }).strict();
937
840
 
938
- export const shotstackDestinationSchema =
939
- shotstackDestinationShotstackDestinationSchema;
841
+ export const shotstackDestinationSchema = shotstackDestinationShotstackDestinationSchema;
940
842
 
941
843
  /**
942
844
  * Pass additional options to control how TikTok publishes video.
943
845
  */
944
846
  export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
945
- title: z.optional(z.string().max(150)),
946
- privacyLevel: z.optional(z.enum(["public", "friends", "private"])),
947
- disableDuet: z.optional(z.boolean()).default(false),
948
- disableStitch: z.optional(z.boolean()).default(false),
949
- disableComment: z.optional(z.boolean()).default(false),
847
+ title: z.optional(z.string().max(150)),
848
+ privacyLevel: z.optional(z.enum([
849
+ 'public',
850
+ 'friends',
851
+ 'private'
852
+ ])),
853
+ disableDuet: z.optional(z.boolean()).default(false),
854
+ disableStitch: z.optional(z.boolean()).default(false),
855
+ disableComment: z.optional(z.boolean()).default(false)
950
856
  }).strict();
951
857
 
952
858
  /**
953
859
  * Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
954
860
  */
955
861
  export const tiktokDestinationTiktokDestinationSchema = z.object({
956
- provider: z.literal("tiktok"),
957
- options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema),
862
+ provider: z.literal("tiktok"),
863
+ options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema)
958
864
  }).strict();
959
865
 
960
866
  /**
961
867
  * Options to control the visibility of videos and privacy features.
962
868
  */
963
- export const vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema =
964
- z.object({
965
- view: z.optional(
966
- z.enum(["anybody", "nobody", "contacts", "password", "unlisted"]),
967
- ),
968
- embed: z.optional(z.enum(["public", "private", "whitelist"])),
969
- comments: z.optional(z.enum(["anybody", "nobody", "contacts"])),
869
+ export const vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = z.object({
870
+ view: z.optional(z.enum([
871
+ 'anybody',
872
+ 'nobody',
873
+ 'contacts',
874
+ 'password',
875
+ 'unlisted'
876
+ ])),
877
+ embed: z.optional(z.enum([
878
+ 'public',
879
+ 'private',
880
+ 'whitelist'
881
+ ])),
882
+ comments: z.optional(z.enum([
883
+ 'anybody',
884
+ 'nobody',
885
+ 'contacts'
886
+ ])),
970
887
  download: z.optional(z.boolean()),
971
- add: z.optional(z.boolean()),
972
- }).strict();
888
+ add: z.optional(z.boolean())
889
+ }).strict();
973
890
 
974
- export const vimeoDestinationPrivacyOptionsSchema =
975
- vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
891
+ export const vimeoDestinationPrivacyOptionsSchema = vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
976
892
 
977
893
  /**
978
894
  * Pass additional options to control how Vimeo publishes video, including name, description and privacy settings.
979
895
  */
980
896
  export const vimeoDestinationOptionsVimeoDestinationOptionsSchema = z.object({
981
- name: z.optional(z.string()),
982
- description: z.optional(z.string()),
983
- privacy: z.optional(
984
- vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema,
985
- ),
986
- folderUri: z.optional(z.string()),
897
+ name: z.optional(z.string()),
898
+ description: z.optional(z.string()),
899
+ privacy: z.optional(vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
900
+ folderUri: z.optional(z.string())
987
901
  }).strict();
988
902
 
989
- export const vimeoDestinationOptionsSchema =
990
- vimeoDestinationOptionsVimeoDestinationOptionsSchema;
903
+ export const vimeoDestinationOptionsSchema = vimeoDestinationOptionsVimeoDestinationOptionsSchema;
991
904
 
992
905
  /**
993
906
  * 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.
994
907
  */
995
908
  export const vimeoDestinationVimeoDestinationSchema = z.object({
996
- provider: z.literal("vimeo"),
997
- options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema),
909
+ provider: z.literal("vimeo"),
910
+ options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema)
998
911
  }).strict();
999
912
 
1000
913
  export const vimeoDestinationSchema = vimeoDestinationVimeoDestinationSchema;
@@ -1022,18 +935,17 @@ export const destinationsSchema = destinationsDestinationsSchema;
1022
935
  * Flip a clip vertically or horizontally. Acts as a mirror effect of the clip along the selected plane.
1023
936
  */
1024
937
  export const fliptransformationFlipTransformationSchema = z.object({
1025
- horizontal: z.optional(z.boolean()),
1026
- vertical: z.optional(z.boolean()),
938
+ horizontal: z.optional(z.boolean()),
939
+ vertical: z.optional(z.boolean())
1027
940
  }).strict();
1028
941
 
1029
- export const flipTransformationSchema =
1030
- fliptransformationFlipTransformationSchema;
942
+ export const flipTransformationSchema = fliptransformationFlipTransformationSchema;
1031
943
 
1032
944
  /**
1033
945
  * 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.
1034
946
  */
1035
947
  export const fontFontSchema = z.object({
1036
- src: z.string(),
948
+ src: z.string()
1037
949
  }).strict();
1038
950
 
1039
951
  export const fontSchema = fontFontSchema;
@@ -1049,25 +961,23 @@ export const fontSchema = fontFontSchema;
1049
961
  * @deprecated
1050
962
  */
1051
963
  export const htmlassetHtmlAssetSchema = z.object({
1052
- type: z.enum(["html"]),
1053
- html: z.string(),
1054
- css: z.optional(z.string()),
1055
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1056
- height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1057
- background: z.optional(z.string()),
1058
- position: z.optional(
1059
- z.enum([
1060
- "top",
1061
- "topRight",
1062
- "right",
1063
- "bottomRight",
1064
- "bottom",
1065
- "bottomLeft",
1066
- "left",
1067
- "topLeft",
1068
- "center",
1069
- ]),
1070
- ),
964
+ type: z.enum(['html']),
965
+ html: z.string(),
966
+ css: z.optional(z.string()),
967
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
968
+ height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
969
+ background: z.optional(z.string()),
970
+ position: z.optional(z.enum([
971
+ 'top',
972
+ 'topRight',
973
+ 'right',
974
+ 'bottomRight',
975
+ 'bottom',
976
+ 'bottomLeft',
977
+ 'left',
978
+ 'topLeft',
979
+ 'center'
980
+ ]))
1071
981
  }).strict();
1072
982
 
1073
983
  export const htmlAssetSchema = htmlassetHtmlAssetSchema;
@@ -1076,9 +986,9 @@ export const htmlAssetSchema = htmlassetHtmlAssetSchema;
1076
986
  * 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.
1077
987
  */
1078
988
  export const imageassetImageAssetSchema = z.object({
1079
- type: z.enum(["image"]),
1080
- src: z.string().min(1).regex(/\S/),
1081
- crop: z.optional(cropCropSchema),
989
+ type: z.enum(['image']),
990
+ src: z.string().min(1).regex(/\S/),
991
+ crop: z.optional(cropCropSchema)
1082
992
  }).strict();
1083
993
 
1084
994
  export const imageAssetSchema = imageassetImageAssetSchema;
@@ -1087,14 +997,20 @@ export const imageAssetSchema = imageassetImageAssetSchema;
1087
997
  * The ImageToVideoAsset lets you create a video from an image and a text prompt.
1088
998
  */
1089
999
  export const imagetovideoassetImageToVideoAssetSchema = z.object({
1090
- type: z.enum(["image-to-video"]),
1091
- src: z.string().min(1),
1092
- prompt: z.optional(z.string()),
1093
- aspectRatio: z.optional(
1094
- z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"]),
1095
- ),
1096
- speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1097
- crop: z.optional(cropCropSchema),
1000
+ type: z.enum(['image-to-video']),
1001
+ src: z.string().min(1),
1002
+ prompt: z.optional(z.string()),
1003
+ aspectRatio: z.optional(z.enum([
1004
+ '1:1',
1005
+ '4:3',
1006
+ '16:9',
1007
+ '9:16',
1008
+ '3:4',
1009
+ '21:9',
1010
+ '9:21'
1011
+ ])),
1012
+ speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1013
+ crop: z.optional(cropCropSchema)
1098
1014
  }).strict();
1099
1015
 
1100
1016
  export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
@@ -1103,28 +1019,27 @@ export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
1103
1019
  * Options for the Dolby.io audio enhancement provider.
1104
1020
  */
1105
1021
  export const dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = z.object({
1106
- preset: z.enum([
1107
- "conference",
1108
- "interview",
1109
- "lecture",
1110
- "meeting",
1111
- "mobile_phone",
1112
- "music",
1113
- "podcast",
1114
- "studio",
1115
- "voice_over",
1116
- ]),
1022
+ preset: z.enum([
1023
+ 'conference',
1024
+ 'interview',
1025
+ 'lecture',
1026
+ 'meeting',
1027
+ 'mobile_phone',
1028
+ 'music',
1029
+ 'podcast',
1030
+ 'studio',
1031
+ 'voice_over'
1032
+ ])
1117
1033
  }).strict();
1118
1034
 
1119
- export const dolbyEnhancementOptionsSchema =
1120
- dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
1035
+ export const dolbyEnhancementOptionsSchema = dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
1121
1036
 
1122
1037
  /**
1123
1038
  * 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.
1124
1039
  */
1125
1040
  export const dolbyEnhancementDolbyEnhancementSchema = z.object({
1126
- provider: z.string().default("dolby"),
1127
- options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
1041
+ provider: z.string().default('dolby'),
1042
+ options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
1128
1043
  }).strict();
1129
1044
 
1130
1045
  export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
@@ -1135,11 +1050,9 @@ export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
1135
1050
  * <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
1136
1051
  * </ul>
1137
1052
  */
1138
- export const audioEnhancementAudioEnhancementSchema = z
1139
- .object({
1140
- enhancement: z.literal("dolbyEnhancement_DolbyEnhancement"),
1141
- })
1142
- .and(dolbyEnhancementDolbyEnhancementSchema);
1053
+ export const audioEnhancementAudioEnhancementSchema = z.object({
1054
+ enhancement: z.literal('dolbyEnhancement_DolbyEnhancement')
1055
+ }).strict().and(dolbyEnhancementDolbyEnhancementSchema);
1143
1056
 
1144
1057
  export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
1145
1058
 
@@ -1147,7 +1060,7 @@ export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
1147
1060
  * Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
1148
1061
  */
1149
1062
  export const enhancementsEnhancementsSchema = z.object({
1150
- audio: z.optional(audioEnhancementAudioEnhancementSchema),
1063
+ audio: z.optional(audioEnhancementAudioEnhancementSchema)
1151
1064
  }).strict();
1152
1065
 
1153
1066
  export const enhancementsSchema = enhancementsEnhancementsSchema;
@@ -1156,74 +1069,68 @@ export const enhancementsSchema = enhancementsEnhancementsSchema;
1156
1069
  * Individual errors returned by the Ingest API.
1157
1070
  */
1158
1071
  export const ingesterrorresponsedataIngestErrorResponseDataSchema = z.object({
1159
- status: z.string(),
1160
- title: z.string(),
1161
- detail: z.string(),
1072
+ status: z.string(),
1073
+ title: z.string(),
1074
+ detail: z.string()
1162
1075
  }).strict();
1163
1076
 
1164
- export const ingestErrorResponseDataSchema =
1165
- ingesterrorresponsedataIngestErrorResponseDataSchema;
1077
+ export const ingestErrorResponseDataSchema = ingesterrorresponsedataIngestErrorResponseDataSchema;
1166
1078
 
1167
1079
  /**
1168
1080
  * Error response data for validation and other errors returned by the Ingest API.
1169
1081
  */
1170
1082
  export const ingesterrorresponseIngestErrorResponseSchema = z.object({
1171
- errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema),
1083
+ errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema)
1172
1084
  }).strict();
1173
1085
 
1174
- export const ingestErrorResponseSchema =
1175
- ingesterrorresponseIngestErrorResponseSchema;
1086
+ export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseSchema;
1176
1087
 
1177
1088
  /**
1178
1089
  * The type of resource (a source) and the newly created source id. Returned with [QueuedSourceResponse](#tocs_queuedsourceresponse).
1179
1090
  */
1180
1091
  export const queuedsourceresponsedataQueuedSourceResponseDataSchema = z.object({
1181
- type: z.string(),
1182
- id: z.string(),
1092
+ type: z.string(),
1093
+ id: z.string()
1183
1094
  }).strict();
1184
1095
 
1185
- export const queuedSourceResponseDataSchema =
1186
- queuedsourceresponsedataQueuedSourceResponseDataSchema;
1096
+ export const queuedSourceResponseDataSchema = queuedsourceresponsedataQueuedSourceResponseDataSchema;
1187
1097
 
1188
1098
  /**
1189
1099
  * 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.
1190
1100
  */
1191
1101
  export const queuedsourceresponseQueuedSourceResponseSchema = z.object({
1192
- data: queuedsourceresponsedataQueuedSourceResponseDataSchema,
1102
+ data: queuedsourceresponsedataQueuedSourceResponseDataSchema
1193
1103
  }).strict();
1194
1104
 
1195
- export const queuedSourceResponseSchema =
1196
- queuedsourceresponseQueuedSourceResponseSchema;
1105
+ export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceResponseSchema;
1197
1106
 
1198
1107
  /**
1199
1108
  * The id and attributes of the upload file including the signed URL to send the binary file data to.
1200
1109
  */
1201
1110
  export const uploadresponseattributesUploadResponseAttributesSchema = z.object({
1202
- id: z.string(),
1203
- url: z.string(),
1204
- expires: z.string(),
1111
+ id: z.string(),
1112
+ url: z.string(),
1113
+ expires: z.string()
1205
1114
  }).strict();
1206
1115
 
1207
- export const uploadResponseAttributesSchema =
1208
- uploadresponseattributesUploadResponseAttributesSchema;
1116
+ export const uploadResponseAttributesSchema = uploadresponseattributesUploadResponseAttributesSchema;
1209
1117
 
1210
1118
  /**
1211
1119
  * The type of resource (an upload), it's id and attributes of the upload request.
1212
1120
  */
1213
1121
  export const uploadresponsedataUploadResponseDataSchema = z.object({
1214
- type: z.string(),
1215
- id: z.string(),
1216
- attributes: uploadresponseattributesUploadResponseAttributesSchema,
1122
+ type: z.string(),
1123
+ id: z.string(),
1124
+ attributes: uploadresponseattributesUploadResponseAttributesSchema
1217
1125
  }).strict();
1218
1126
 
1219
- export const uploadResponseDataSchema =
1220
- uploadresponsedataUploadResponseDataSchema;
1127
+ export const uploadResponseDataSchema = uploadresponsedataUploadResponseDataSchema;
1221
1128
 
1222
1129
  /**
1223
1130
  * 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.
1224
1131
  */
1225
1132
  export const uploadresponseUploadResponseSchema = z.object({
1226
- data: uploadresponsedataUploadResponseDataSchema,
1133
+ data: uploadresponsedataUploadResponseDataSchema
1227
1134
  }).strict();
1228
1135
 
1229
1136
  export const uploadResponseSchema = uploadresponseUploadResponseSchema;
@@ -1232,8 +1139,8 @@ export const uploadResponseSchema = uploadresponseUploadResponseSchema;
1232
1139
  * 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.
1233
1140
  */
1234
1141
  export const speedSpeedSchema = z.object({
1235
- speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1236
- preservePitch: z.optional(z.boolean()),
1142
+ speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1143
+ preservePitch: z.optional(z.boolean())
1237
1144
  }).strict();
1238
1145
 
1239
1146
  export const speedSchema = speedSpeedSchema;
@@ -1242,7 +1149,7 @@ export const speedSchema = speedSpeedSchema;
1242
1149
  * Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
1243
1150
  */
1244
1151
  export const transcriptionTranscriptionSchema = z.object({
1245
- format: z.optional(z.enum(["srt", "vtt"])),
1152
+ format: z.optional(z.enum(['srt', 'vtt']))
1246
1153
  }).strict();
1247
1154
 
1248
1155
  export const transcriptionSchema = transcriptionTranscriptionSchema;
@@ -1251,9 +1158,9 @@ export const transcriptionSchema = transcriptionTranscriptionSchema;
1251
1158
  * 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.
1252
1159
  */
1253
1160
  export const lumaassetLumaAssetSchema = z.object({
1254
- type: z.enum(["luma"]),
1255
- src: z.string().min(1).regex(/\S/),
1256
- trim: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1161
+ type: z.enum(['luma']),
1162
+ src: z.string().min(1).regex(/\S/),
1163
+ trim: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1257
1164
  }).strict();
1258
1165
 
1259
1166
  export const lumaAssetSchema = lumaassetLumaAssetSchema;
@@ -1262,8 +1169,8 @@ export const lumaAssetSchema = lumaassetLumaAssetSchema;
1262
1169
  * A merge field consists of a key; `find`, and a value; `replace`. Merge fields can be used to replace placeholders within the JSON edit to create re-usable templates. Placeholders should be a string with double brace delimiters, i.e. `"{{NAME}}"`. A placeholder can be used for any value within the JSON edit.
1263
1170
  */
1264
1171
  export const mergefieldMergeFieldSchema = z.object({
1265
- find: z.string(),
1266
- replace: z.union([z.string(), z.number(), z.boolean(), z.null(), z.record(z.string(), z.unknown()), z.array(z.unknown())]),
1172
+ find: z.string(),
1173
+ replace: z.unknown()
1267
1174
  }).strict();
1268
1175
 
1269
1176
  export const mergeFieldSchema = mergefieldMergeFieldSchema;
@@ -1272,7 +1179,7 @@ export const mergeFieldSchema = mergefieldMergeFieldSchema;
1272
1179
  * 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.
1273
1180
  */
1274
1181
  export const posterPosterSchema = z.object({
1275
- capture: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1182
+ capture: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1276
1183
  }).strict();
1277
1184
 
1278
1185
  export const posterSchema = posterPosterSchema;
@@ -1281,8 +1188,8 @@ export const posterSchema = posterPosterSchema;
1281
1188
  * 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.
1282
1189
  */
1283
1190
  export const rangeRangeSchema = z.object({
1284
- start: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1285
- length: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1191
+ start: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1192
+ length: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1286
1193
  }).strict();
1287
1194
 
1288
1195
  export const rangeSchema = rangeRangeSchema;
@@ -1291,27 +1198,31 @@ export const rangeSchema = rangeRangeSchema;
1291
1198
  * The list of asset attributes and their values.
1292
1199
  */
1293
1200
  export const assetresponseattributesAssetResponseAttributesSchema = z.object({
1294
- id: z.string(),
1295
- owner: z.string(),
1296
- region: z.optional(z.string()),
1297
- renderId: z.optional(z.string()),
1298
- providerId: z.optional(z.string()),
1299
- filename: z.optional(z.string()),
1300
- url: z.optional(z.string()),
1301
- status: z.enum(["importing", "ready", "failed", "deleted"]),
1302
- created: z.optional(z.string()),
1303
- updated: z.optional(z.string()),
1201
+ id: z.string(),
1202
+ owner: z.string(),
1203
+ region: z.optional(z.string()),
1204
+ renderId: z.optional(z.string()),
1205
+ providerId: z.optional(z.string()),
1206
+ filename: z.optional(z.string()),
1207
+ url: z.optional(z.string()),
1208
+ status: z.enum([
1209
+ 'importing',
1210
+ 'ready',
1211
+ 'failed',
1212
+ 'deleted'
1213
+ ]),
1214
+ created: z.optional(z.string()),
1215
+ updated: z.optional(z.string())
1304
1216
  }).strict();
1305
1217
 
1306
- export const assetResponseAttributesSchema =
1307
- assetresponseattributesAssetResponseAttributesSchema;
1218
+ export const assetResponseAttributesSchema = assetresponseattributesAssetResponseAttributesSchema;
1308
1219
 
1309
1220
  /**
1310
1221
  * The type of resource (an asset) and attributes of the asset.
1311
1222
  */
1312
1223
  export const assetresponsedataAssetResponseDataSchema = z.object({
1313
- type: z.string(),
1314
- attributes: assetresponseattributesAssetResponseAttributesSchema,
1224
+ type: z.string(),
1225
+ attributes: assetresponseattributesAssetResponseAttributesSchema
1315
1226
  }).strict();
1316
1227
 
1317
1228
  export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
@@ -1320,17 +1231,16 @@ export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
1320
1231
  * 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.
1321
1232
  */
1322
1233
  export const assetrenderresponseAssetRenderResponseSchema = z.object({
1323
- data: z.array(assetresponsedataAssetResponseDataSchema),
1234
+ data: z.array(assetresponsedataAssetResponseDataSchema)
1324
1235
  }).strict();
1325
1236
 
1326
- export const assetRenderResponseSchema =
1327
- assetrenderresponseAssetRenderResponseSchema;
1237
+ export const assetRenderResponseSchema = assetrenderresponseAssetRenderResponseSchema;
1328
1238
 
1329
1239
  /**
1330
1240
  * 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.
1331
1241
  */
1332
1242
  export const assetresponseAssetResponseSchema = z.object({
1333
- data: assetresponsedataAssetResponseDataSchema,
1243
+ data: assetresponsedataAssetResponseDataSchema
1334
1244
  }).strict();
1335
1245
 
1336
1246
  export const assetResponseSchema = assetresponseAssetResponseSchema;
@@ -1339,9 +1249,9 @@ export const assetResponseSchema = assetresponseAssetResponseSchema;
1339
1249
  * The response received after a [probe request](#inspect-media) is submitted. The probe requests returns data from FFprobe formatted as JSON.
1340
1250
  */
1341
1251
  export const proberesponseProbeResponseSchema = z.object({
1342
- success: z.boolean(),
1343
- message: z.string(),
1344
- response: z.record(z.string(), z.unknown()),
1252
+ success: z.boolean(),
1253
+ message: z.string(),
1254
+ response: z.record(z.string(), z.unknown())
1345
1255
  }).strict();
1346
1256
 
1347
1257
  export const probeResponseSchema = proberesponseProbeResponseSchema;
@@ -1350,20 +1260,19 @@ export const probeResponseSchema = proberesponseProbeResponseSchema;
1350
1260
  * The response data returned with the [QueuedResponse](#tocs_queuedresponse).
1351
1261
  */
1352
1262
  export const queuedresponsedataQueuedResponseDataSchema = z.object({
1353
- message: z.string(),
1354
- id: z.string(),
1263
+ message: z.string(),
1264
+ id: z.string()
1355
1265
  }).strict();
1356
1266
 
1357
- export const queuedResponseDataSchema =
1358
- queuedresponsedataQueuedResponseDataSchema;
1267
+ export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSchema;
1359
1268
 
1360
1269
  /**
1361
1270
  * The response received after a [render request](#render-asset) or [template render](#render-template) is submitted. The render task is queued for rendering and a unique render id is returned.
1362
1271
  */
1363
1272
  export const queuedresponseQueuedResponseSchema = z.object({
1364
- success: z.boolean(),
1365
- message: z.string(),
1366
- response: queuedresponsedataQueuedResponseDataSchema,
1273
+ success: z.boolean(),
1274
+ message: z.string(),
1275
+ response: queuedresponsedataQueuedResponseDataSchema
1367
1276
  }).strict();
1368
1277
 
1369
1278
  export const queuedResponseSchema = queuedresponseQueuedResponseSchema;
@@ -1372,56 +1281,52 @@ export const queuedResponseSchema = queuedresponseQueuedResponseSchema;
1372
1281
  * The individual template item returned with the [TemplateListResponseData](#tocs_templatelistresponsedata) templates list.
1373
1282
  */
1374
1283
  export const templatelistresponseitemTemplateListResponseItemSchema = z.object({
1375
- id: z.string(),
1376
- name: z.string(),
1377
- created: z.optional(z.string()),
1378
- updated: z.optional(z.string()),
1284
+ id: z.string(),
1285
+ name: z.string(),
1286
+ created: z.optional(z.string()),
1287
+ updated: z.optional(z.string())
1379
1288
  }).strict();
1380
1289
 
1381
- export const templateListResponseItemSchema =
1382
- templatelistresponseitemTemplateListResponseItemSchema;
1290
+ export const templateListResponseItemSchema = templatelistresponseitemTemplateListResponseItemSchema;
1383
1291
 
1384
1292
  /**
1385
1293
  * The response data returned with the [TemplateListResponse](#tocs_templatelistresponse).
1386
1294
  */
1387
1295
  export const templatelistresponsedataTemplateListResponseDataSchema = z.object({
1388
- owner: z.string(),
1389
- templates: z.array(templatelistresponseitemTemplateListResponseItemSchema),
1296
+ owner: z.string(),
1297
+ templates: z.array(templatelistresponseitemTemplateListResponseItemSchema)
1390
1298
  }).strict();
1391
1299
 
1392
- export const templateListResponseDataSchema =
1393
- templatelistresponsedataTemplateListResponseDataSchema;
1300
+ export const templateListResponseDataSchema = templatelistresponsedataTemplateListResponseDataSchema;
1394
1301
 
1395
1302
  /**
1396
1303
  * A list of previously saved templates.
1397
1304
  */
1398
1305
  export const templatelistresponseTemplateListResponseSchema = z.object({
1399
- success: z.boolean(),
1400
- message: z.string(),
1401
- response: templatelistresponsedataTemplateListResponseDataSchema,
1306
+ success: z.boolean(),
1307
+ message: z.string(),
1308
+ response: templatelistresponsedataTemplateListResponseDataSchema
1402
1309
  }).strict();
1403
1310
 
1404
- export const templateListResponseSchema =
1405
- templatelistresponseTemplateListResponseSchema;
1311
+ export const templateListResponseSchema = templatelistresponseTemplateListResponseSchema;
1406
1312
 
1407
1313
  /**
1408
1314
  * The response data returned with the [TemplateResponse](#tocs_templateresponse).
1409
1315
  */
1410
1316
  export const templateresponsedataTemplateResponseDataSchema = z.object({
1411
- message: z.string(),
1412
- id: z.string(),
1317
+ message: z.string(),
1318
+ id: z.string()
1413
1319
  }).strict();
1414
1320
 
1415
- export const templateResponseDataSchema =
1416
- templateresponsedataTemplateResponseDataSchema;
1321
+ export const templateResponseDataSchema = templateresponsedataTemplateResponseDataSchema;
1417
1322
 
1418
1323
  /**
1419
1324
  * The response received after a [template](#create-template) is submitted. The template is saved and a unique template id is returned.
1420
1325
  */
1421
1326
  export const templateresponseTemplateResponseSchema = z.object({
1422
- success: z.boolean(),
1423
- message: z.string(),
1424
- response: templateresponsedataTemplateResponseDataSchema,
1327
+ success: z.boolean(),
1328
+ message: z.string(),
1329
+ response: templateresponsedataTemplateResponseDataSchema
1425
1330
  }).strict();
1426
1331
 
1427
1332
  export const templateResponseSchema = templateresponseTemplateResponseSchema;
@@ -1430,114 +1335,133 @@ export const templateResponseSchema = templateresponseTemplateResponseSchema;
1430
1335
  * Font properties for the active/highlighted word.
1431
1336
  */
1432
1337
  export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
1433
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffff00"),
1434
- background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1435
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1338
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffff00'),
1339
+ background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1340
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1341
+ textDecoration: z.optional(z.enum([
1342
+ 'none',
1343
+ 'underline',
1344
+ 'line-through'
1345
+ ]))
1436
1346
  }).strict();
1437
1347
 
1438
- export const richCaptionActiveFontSchema =
1439
- richcaptionpropertiesRichCaptionActiveFontSchema;
1348
+ export const richCaptionActiveFontSchema = richcaptionpropertiesRichCaptionActiveFontSchema;
1440
1349
 
1441
1350
  /**
1442
1351
  * Font properties for rich captions. Defaults to Roboto.
1443
1352
  */
1444
1353
  export const richcaptionpropertiesRichCaptionFontSchema = z.object({
1445
- family: z.optional(z.string()).default("Roboto"),
1446
- size: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
1447
- weight: z.optional(z.unknown()).default("400"),
1448
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
1449
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1450
- background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1354
+ family: z.optional(z.string()).default('Roboto'),
1355
+ size: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
1356
+ weight: z.optional(z.unknown()).default('400'),
1357
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffffff'),
1358
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1359
+ background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1360
+ textDecoration: z.optional(z.enum([
1361
+ 'none',
1362
+ 'underline',
1363
+ 'line-through'
1364
+ ]))
1451
1365
  }).strict();
1452
1366
 
1453
1367
  /**
1454
1368
  * Word-level animation properties for caption effects.
1455
1369
  */
1456
1370
  export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
1457
- style: z.enum([
1458
- "karaoke",
1459
- "highlight",
1460
- "pop",
1461
- "fade",
1462
- "slide",
1463
- "bounce",
1464
- "typewriter",
1465
- "none",
1466
- ]),
1467
- speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1468
- direction: z.optional(z.enum(["left", "right", "up", "down"])),
1371
+ style: z.enum([
1372
+ 'karaoke',
1373
+ 'highlight',
1374
+ 'pop',
1375
+ 'fade',
1376
+ 'slide',
1377
+ 'bounce',
1378
+ 'typewriter',
1379
+ 'none'
1380
+ ]),
1381
+ speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1382
+ direction: z.optional(z.enum([
1383
+ 'left',
1384
+ 'right',
1385
+ 'up',
1386
+ 'down'
1387
+ ]))
1469
1388
  }).strict();
1470
1389
 
1471
- export const richCaptionWordAnimationSchema =
1472
- richcaptionpropertiesRichCaptionWordAnimationSchema;
1390
+ export const richCaptionWordAnimationSchema = richcaptionpropertiesRichCaptionWordAnimationSchema;
1473
1391
 
1474
1392
  /**
1475
1393
  * Text alignment properties (horizontal and vertical).
1476
1394
  */
1477
1395
  export const richtextpropertiesRichTextAlignmentSchema = z.object({
1478
- horizontal: z.optional(z.enum(["left", "center", "right"])),
1479
- vertical: z.optional(z.enum(["top", "middle", "bottom"])),
1396
+ horizontal: z.optional(z.enum([
1397
+ 'left',
1398
+ 'center',
1399
+ 'right'
1400
+ ])),
1401
+ vertical: z.optional(z.enum([
1402
+ 'top',
1403
+ 'middle',
1404
+ 'bottom'
1405
+ ]))
1480
1406
  }).strict();
1481
1407
 
1482
- export const richTextAlignmentSchema =
1483
- richtextpropertiesRichTextAlignmentSchema;
1408
+ export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema;
1484
1409
 
1485
1410
  /**
1486
1411
  * Animation properties for text entrance effects.
1487
1412
  */
1488
1413
  export const richtextpropertiesRichTextAnimationSchema = z.object({
1489
- preset: z.enum([
1490
- "fadeIn",
1491
- "slideIn",
1492
- "typewriter",
1493
- "ascend",
1494
- "shift",
1495
- "movingLetters",
1496
- ]),
1497
- duration: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1498
- style: z.optional(z.enum(["character", "word"])),
1499
- direction: z.optional(z.enum(["left", "right", "up", "down"])),
1414
+ preset: z.enum([
1415
+ 'fadeIn',
1416
+ 'slideIn',
1417
+ 'typewriter',
1418
+ 'ascend',
1419
+ 'shift',
1420
+ 'movingLetters'
1421
+ ]),
1422
+ duration: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1423
+ style: z.optional(z.enum(['character', 'word'])),
1424
+ direction: z.optional(z.enum([
1425
+ 'left',
1426
+ 'right',
1427
+ 'up',
1428
+ 'down'
1429
+ ]))
1500
1430
  }).strict();
1501
1431
 
1502
- export const richTextAnimationSchema =
1503
- richtextpropertiesRichTextAnimationSchema;
1432
+ export const richTextAnimationSchema = richtextpropertiesRichTextAnimationSchema;
1504
1433
 
1505
1434
  /**
1506
1435
  * Background styling properties for the text bounding box.
1507
1436
  */
1508
1437
  export const richtextpropertiesRichTextBackgroundSchema = z.object({
1509
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1510
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1511
- borderRadius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1438
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1439
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1440
+ borderRadius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1512
1441
  }).strict();
1513
1442
 
1514
- export const richTextBackgroundSchema =
1515
- richtextpropertiesRichTextBackgroundSchema;
1443
+ export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
1516
1444
 
1517
1445
  /**
1518
1446
  * Border styling properties for the text bounding box.
1519
1447
  */
1520
1448
  export const richtextpropertiesRichTextBorderSchema = z.object({
1521
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1522
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1523
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1524
- radius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1449
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1450
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1451
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1452
+ radius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1525
1453
  }).strict();
1526
1454
 
1527
1455
  /**
1528
1456
  * Gradient properties for text fill.
1529
1457
  */
1530
1458
  export const richtextpropertiesRichTextGradientSchema = z.object({
1531
- type: z.optional(z.enum(["linear", "radial"])),
1532
- angle: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1533
- stops: z
1534
- .array(
1535
- z.object({
1459
+ type: z.optional(z.enum(['linear', 'radial'])),
1460
+ angle: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1461
+ stops: z.array(z.object({
1536
1462
  offset: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1537
- color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1538
- }),
1539
- )
1540
- .min(2),
1463
+ color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1464
+ })).min(2)
1541
1465
  }).strict();
1542
1466
 
1543
1467
  export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
@@ -1546,21 +1470,21 @@ export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
1546
1470
  * Padding properties for individual sides of the text bounding box.
1547
1471
  */
1548
1472
  export const richtextpropertiesRichTextPaddingSchema = z.object({
1549
- top: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1550
- right: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1551
- bottom: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1552
- left: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1473
+ top: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1474
+ right: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1475
+ bottom: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1476
+ left: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1553
1477
  }).strict();
1554
1478
 
1555
1479
  /**
1556
1480
  * Text shadow properties.
1557
1481
  */
1558
1482
  export const richtextpropertiesRichTextShadowSchema = z.object({
1559
- offsetX: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1560
- offsetY: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1561
- blur: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1562
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1563
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
1483
+ offsetX: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1484
+ offsetY: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1485
+ blur: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1486
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1487
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
1564
1488
  }).strict();
1565
1489
 
1566
1490
  export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
@@ -1569,9 +1493,9 @@ export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
1569
1493
  * Text stroke (outline) properties.
1570
1494
  */
1571
1495
  export const richtextpropertiesRichTextStrokeSchema = z.object({
1572
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1573
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1574
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1496
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1497
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1498
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1575
1499
  }).strict();
1576
1500
 
1577
1501
  export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
@@ -1580,25 +1504,25 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1580
1504
  * Styling properties for the active/highlighted word.
1581
1505
  */
1582
1506
  export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
1583
- font: z.optional(richcaptionpropertiesRichCaptionActiveFontSchema),
1584
- stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1585
- scale: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1507
+ font: z.optional(richcaptionpropertiesRichCaptionActiveFontSchema),
1508
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1509
+ shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1510
+ scale: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1586
1511
  }).strict();
1587
1512
 
1588
- export const richCaptionActiveSchema =
1589
- richcaptionpropertiesRichCaptionActiveSchema;
1513
+ export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
1590
1514
 
1591
1515
  /**
1592
1516
  * Font properties for rich text.
1593
1517
  */
1594
1518
  export const richtextpropertiesRichTextFontSchema = z.object({
1595
- family: z.optional(z.string()).default("Open Sans"),
1596
- size: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
1597
- weight: z.optional(z.unknown()).default("400"),
1598
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1599
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1600
- background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1601
- stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1519
+ family: z.optional(z.string()).default('Open Sans'),
1520
+ size: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
1521
+ weight: z.optional(z.unknown()).default('400'),
1522
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1523
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1524
+ background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1525
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema)
1602
1526
  }).strict();
1603
1527
 
1604
1528
  export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
@@ -1607,14 +1531,21 @@ export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
1607
1531
  * Text style properties including spacing, line height, and transformations.
1608
1532
  */
1609
1533
  export const richtextpropertiesRichTextStyleSchema = z.object({
1610
- letterSpacing: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1611
- wordSpacing: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1612
- lineHeight: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
1613
- textTransform: z.optional(
1614
- z.enum(["none", "uppercase", "lowercase", "capitalize"]),
1615
- ),
1616
- textDecoration: z.optional(z.enum(["none", "underline", "line-through"])),
1617
- gradient: z.optional(richtextpropertiesRichTextGradientSchema),
1534
+ letterSpacing: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1535
+ wordSpacing: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1536
+ lineHeight: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
1537
+ textTransform: z.optional(z.enum([
1538
+ 'none',
1539
+ 'uppercase',
1540
+ 'lowercase',
1541
+ 'capitalize'
1542
+ ])),
1543
+ textDecoration: z.optional(z.enum([
1544
+ 'none',
1545
+ 'underline',
1546
+ 'line-through'
1547
+ ])),
1548
+ gradient: z.optional(richtextpropertiesRichTextGradientSchema)
1618
1549
  }).strict();
1619
1550
 
1620
1551
  export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
@@ -1626,22 +1557,21 @@ export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1626
1557
  *
1627
1558
  */
1628
1559
  export const richcaptionassetRichCaptionAssetSchema = z.object({
1629
- type: z.enum(["rich-caption"]),
1630
- src: z.string().min(1),
1631
- font: z.optional(richcaptionpropertiesRichCaptionFontSchema),
1632
- style: z.optional(richtextpropertiesRichTextStyleSchema),
1633
- stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1634
- shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1635
- background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1636
- border: z.optional(richtextpropertiesRichTextBorderSchema),
1637
- padding: z.optional(
1638
- z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), richtextpropertiesRichTextPaddingSchema]),
1639
- ),
1640
- align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1641
- active: z.optional(richcaptionpropertiesRichCaptionActiveSchema),
1642
- wordAnimation: z.optional(
1643
- richcaptionpropertiesRichCaptionWordAnimationSchema,
1644
- ),
1560
+ type: z.enum(['rich-caption']),
1561
+ src: z.string().min(1),
1562
+ font: z.optional(richcaptionpropertiesRichCaptionFontSchema),
1563
+ style: z.optional(richtextpropertiesRichTextStyleSchema),
1564
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1565
+ shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1566
+ background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1567
+ border: z.optional(richtextpropertiesRichTextBorderSchema),
1568
+ padding: z.optional(z.union([
1569
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1570
+ richtextpropertiesRichTextPaddingSchema
1571
+ ])),
1572
+ align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1573
+ active: z.optional(richcaptionpropertiesRichCaptionActiveSchema),
1574
+ wordAnimation: z.optional(richcaptionpropertiesRichCaptionWordAnimationSchema)
1645
1575
  }).strict();
1646
1576
 
1647
1577
  export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
@@ -1652,19 +1582,20 @@ export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
1652
1582
  *
1653
1583
  */
1654
1584
  export const richtextassetRichTextAssetSchema = z.object({
1655
- type: z.enum(["rich-text"]),
1656
- text: z.string().max(5000),
1657
- font: z.optional(richtextpropertiesRichTextFontSchema),
1658
- style: z.optional(richtextpropertiesRichTextStyleSchema),
1659
- stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1660
- shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1661
- background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1662
- border: z.optional(richtextpropertiesRichTextBorderSchema),
1663
- padding: z.optional(
1664
- z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), richtextpropertiesRichTextPaddingSchema]),
1665
- ),
1666
- align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1667
- animation: z.optional(richtextpropertiesRichTextAnimationSchema),
1585
+ type: z.enum(['rich-text']),
1586
+ text: z.string().max(5000),
1587
+ font: z.optional(richtextpropertiesRichTextFontSchema),
1588
+ style: z.optional(richtextpropertiesRichTextStyleSchema),
1589
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1590
+ shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1591
+ background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1592
+ border: z.optional(richtextpropertiesRichTextBorderSchema),
1593
+ padding: z.optional(z.union([
1594
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1595
+ richtextpropertiesRichTextPaddingSchema
1596
+ ])),
1597
+ align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1598
+ animation: z.optional(richtextpropertiesRichTextAnimationSchema)
1668
1599
  }).strict();
1669
1600
 
1670
1601
  export const richTextAssetSchema = richtextassetRichTextAssetSchema;
@@ -1672,35 +1603,30 @@ export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1672
1603
  /**
1673
1604
  * The transfer request attributes inlcudling the user specified ID and status. Returned with [TransferResponseData](#tocs_transferresponsedata).
1674
1605
  */
1675
- export const transferresponseattributesTransferResponseAttributesSchema =
1676
- z.object({
1606
+ export const transferresponseattributesTransferResponseAttributesSchema = z.object({
1677
1607
  id: z.optional(z.string()),
1678
1608
  owner: z.optional(z.string()),
1679
- status: z.optional(z.enum(["queued", "failed"])),
1680
- created: z.optional(z.string()),
1681
- }).strict();
1609
+ status: z.optional(z.enum(['queued', 'failed'])),
1610
+ created: z.optional(z.string())
1611
+ }).strict();
1682
1612
 
1683
- export const transferResponseAttributesSchema =
1684
- transferresponseattributesTransferResponseAttributesSchema;
1613
+ export const transferResponseAttributesSchema = transferresponseattributesTransferResponseAttributesSchema;
1685
1614
 
1686
1615
  /**
1687
1616
  * The type of resource (an asset) and the transfer attributes. Returned with [TransferResponse](#tocs_transferresponse).
1688
1617
  */
1689
1618
  export const transferresponsedataTransferResponseDataSchema = z.object({
1690
- type: z.optional(z.string()),
1691
- attributes: z.optional(
1692
- transferresponseattributesTransferResponseAttributesSchema,
1693
- ),
1619
+ type: z.optional(z.string()),
1620
+ attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema)
1694
1621
  }).strict();
1695
1622
 
1696
- export const transferResponseDataSchema =
1697
- transferresponsedataTransferResponseDataSchema;
1623
+ export const transferResponseDataSchema = transferresponsedataTransferResponseDataSchema;
1698
1624
 
1699
1625
  /**
1700
1626
  * 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.
1701
1627
  */
1702
1628
  export const transferresponseTransferResponseSchema = z.object({
1703
- data: transferresponsedataTransferResponseDataSchema,
1629
+ data: transferresponsedataTransferResponseDataSchema
1704
1630
  }).strict();
1705
1631
 
1706
1632
  export const transferResponseSchema = transferresponseTransferResponseSchema;
@@ -1709,9 +1635,9 @@ export const transferResponseSchema = transferresponseTransferResponseSchema;
1709
1635
  * The asset URL to fetch and transfer to a destination.
1710
1636
  */
1711
1637
  export const transferTransferSchema = z.object({
1712
- url: z.string(),
1713
- id: z.string(),
1714
- destinations: z.array(destinationsDestinationsSchema),
1638
+ url: z.string(),
1639
+ id: z.string(),
1640
+ destinations: z.array(destinationsDestinationsSchema)
1715
1641
  }).strict();
1716
1642
 
1717
1643
  export const transferSchema = transferTransferSchema;
@@ -1722,40 +1648,34 @@ export const transferSchema = transferTransferSchema;
1722
1648
  *
1723
1649
  */
1724
1650
  export const shapeassetShapeAssetSchema = z.object({
1725
- type: z.enum(["shape"]),
1726
- shape: z.enum(["rectangle", "circle", "line"]),
1727
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1728
- height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1729
- fill: z.optional(
1730
- z.object({
1731
- color: z.optional(z.string()),
1732
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1733
- }),
1734
- ),
1735
- stroke: z.optional(
1736
- z.object({
1737
- color: z.optional(z.string()),
1738
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1739
- }),
1740
- ),
1741
- rectangle: z.optional(
1742
- z.object({
1743
- width: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1744
- height: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1745
- cornerRadius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1746
- }),
1747
- ),
1748
- circle: z.optional(
1749
- z.object({
1750
- radius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1751
- }),
1752
- ),
1753
- line: z.optional(
1754
- z.object({
1755
- length: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1756
- thickness: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1757
- }),
1758
- ),
1651
+ type: z.enum(['shape']),
1652
+ shape: z.enum([
1653
+ 'rectangle',
1654
+ 'circle',
1655
+ 'line'
1656
+ ]),
1657
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1658
+ height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1659
+ fill: z.optional(z.object({
1660
+ color: z.optional(z.string()),
1661
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1662
+ })),
1663
+ stroke: z.optional(z.object({
1664
+ color: z.optional(z.string()),
1665
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1666
+ })),
1667
+ rectangle: z.optional(z.object({
1668
+ width: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1669
+ height: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1670
+ cornerRadius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1671
+ })),
1672
+ circle: z.optional(z.object({
1673
+ radius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1674
+ })),
1675
+ line: z.optional(z.object({
1676
+ length: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1677
+ thickness: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1678
+ }))
1759
1679
  }).strict();
1760
1680
 
1761
1681
  export const shapeAssetSchema = shapeassetShapeAssetSchema;
@@ -1764,8 +1684,8 @@ export const shapeAssetSchema = shapeassetShapeAssetSchema;
1764
1684
  * 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.
1765
1685
  */
1766
1686
  export const sizeSizeSchema = z.object({
1767
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1768
- height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1687
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1688
+ height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1769
1689
  }).strict();
1770
1690
 
1771
1691
  export const sizeSchema = sizeSizeSchema;
@@ -1774,50 +1694,56 @@ export const sizeSchema = sizeSizeSchema;
1774
1694
  * A rendition is a new output file that is generated from the source. The rendition can be encoded to a different format and have transformations applied to it such as resizing, cropping, etc...
1775
1695
  */
1776
1696
  export const renditionRenditionSchema = z.object({
1777
- format: z.optional(
1778
- z.enum([
1779
- "mp4",
1780
- "webm",
1781
- "mov",
1782
- "avi",
1783
- "mkv",
1784
- "ogv",
1785
- "wmv",
1786
- "avif",
1787
- "gif",
1788
- "mp3",
1789
- "wav",
1790
- "jpg",
1791
- "png",
1792
- "webp",
1793
- "tif",
1794
- ]),
1795
- ),
1796
- size: z.optional(sizeSizeSchema),
1797
- fit: z.optional(z.enum(["cover", "contain", "crop"])),
1798
- resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
1799
- quality: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1800
- fps: z.optional(
1801
- z.union([
1802
- z.literal(12),
1803
- z.literal(15),
1804
- z.literal(23.976),
1805
- z.literal(24),
1806
- z.literal(25),
1807
- z.literal(29.97),
1808
- z.literal(30),
1809
- z.literal(48),
1810
- z.literal(50),
1811
- z.literal(59.94),
1812
- z.literal(60),
1813
- ]),
1814
- ),
1815
- speed: z.optional(speedSpeedSchema),
1816
- keyframeInterval: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(300)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1817
- fixOffset: z.optional(z.boolean()),
1818
- fixRotation: z.optional(z.boolean()),
1819
- enhance: z.optional(enhancementsEnhancementsSchema),
1820
- filename: z.optional(z.string()),
1697
+ format: z.optional(z.enum([
1698
+ 'mp4',
1699
+ 'webm',
1700
+ 'mov',
1701
+ 'avi',
1702
+ 'mkv',
1703
+ 'ogv',
1704
+ 'wmv',
1705
+ 'avif',
1706
+ 'gif',
1707
+ 'mp3',
1708
+ 'wav',
1709
+ 'jpg',
1710
+ 'png',
1711
+ 'webp',
1712
+ 'tif'
1713
+ ])),
1714
+ size: z.optional(sizeSizeSchema),
1715
+ fit: z.optional(z.enum([
1716
+ 'cover',
1717
+ 'contain',
1718
+ 'crop'
1719
+ ])),
1720
+ resolution: z.optional(z.enum([
1721
+ 'preview',
1722
+ 'mobile',
1723
+ 'sd',
1724
+ 'hd',
1725
+ 'fhd'
1726
+ ])),
1727
+ quality: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1728
+ fps: z.optional(z.union([
1729
+ z.literal(12),
1730
+ z.literal(15),
1731
+ z.literal(23.976),
1732
+ z.literal(24),
1733
+ z.literal(25),
1734
+ z.literal(29.97),
1735
+ z.literal(30),
1736
+ z.literal(48),
1737
+ z.literal(50),
1738
+ z.literal(59.94),
1739
+ z.literal(60)
1740
+ ])),
1741
+ speed: z.optional(speedSpeedSchema),
1742
+ keyframeInterval: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(300)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1743
+ fixOffset: z.optional(z.boolean()),
1744
+ fixRotation: z.optional(z.boolean()),
1745
+ enhance: z.optional(enhancementsEnhancementsSchema),
1746
+ filename: z.optional(z.string())
1821
1747
  }).strict();
1822
1748
 
1823
1749
  export const renditionSchema = renditionRenditionSchema;
@@ -1826,8 +1752,8 @@ export const renditionSchema = renditionRenditionSchema;
1826
1752
  * The output renditions and transformations that should be generated from the source file.
1827
1753
  */
1828
1754
  export const outputsOutputsSchema = z.object({
1829
- renditions: z.optional(z.array(renditionRenditionSchema)),
1830
- transcription: z.optional(transcriptionTranscriptionSchema),
1755
+ renditions: z.optional(z.array(renditionRenditionSchema)),
1756
+ transcription: z.optional(transcriptionTranscriptionSchema)
1831
1757
  }).strict();
1832
1758
 
1833
1759
  export const outputsSchema = outputsOutputsSchema;
@@ -1835,38 +1761,32 @@ export const outputsSchema = outputsOutputsSchema;
1835
1761
  /**
1836
1762
  * The id and attributes of the generated rendition file.
1837
1763
  */
1838
- export const renditionresponseattributesRenditionResponseAttributesSchema =
1839
- z.object({
1764
+ export const renditionresponseattributesRenditionResponseAttributesSchema = z.object({
1840
1765
  id: z.string(),
1841
- status: z.optional(
1842
- z.enum([
1843
- "queued",
1844
- "importing",
1845
- "ready",
1846
- "failed",
1847
- "deleted",
1848
- "overwritten",
1849
- ]),
1850
- ),
1766
+ status: z.optional(z.enum([
1767
+ 'queued',
1768
+ 'importing',
1769
+ 'ready',
1770
+ 'failed',
1771
+ 'deleted',
1772
+ 'overwritten'
1773
+ ])),
1851
1774
  url: z.optional(z.string()),
1852
1775
  executionTime: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1853
1776
  transformation: z.optional(renditionRenditionSchema),
1854
1777
  width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1855
1778
  height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1856
1779
  duration: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1857
- fps: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1858
- }).strict();
1780
+ fps: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1781
+ }).strict();
1859
1782
 
1860
- export const renditionResponseAttributesSchema =
1861
- renditionresponseattributesRenditionResponseAttributesSchema;
1783
+ export const renditionResponseAttributesSchema = renditionresponseattributesRenditionResponseAttributesSchema;
1862
1784
 
1863
1785
  /**
1864
1786
  * The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
1865
1787
  */
1866
1788
  export const outputsresponseOutputsResponseSchema = z.object({
1867
- renditions: z.optional(
1868
- z.array(renditionresponseattributesRenditionResponseAttributesSchema),
1869
- ),
1789
+ renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema))
1870
1790
  }).strict();
1871
1791
 
1872
1792
  export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
@@ -1875,59 +1795,54 @@ export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
1875
1795
  * The id and attributes of the source file.
1876
1796
  */
1877
1797
  export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
1878
- id: z.string(),
1879
- owner: z.string(),
1880
- input: z.optional(z.string()),
1881
- source: z.optional(z.string()),
1882
- status: z.optional(
1883
- z.enum([
1884
- "queued",
1885
- "importing",
1886
- "ready",
1887
- "failed",
1888
- "deleted",
1889
- "overwritten",
1890
- ]),
1891
- ),
1892
- outputs: z.optional(outputsresponseOutputsResponseSchema),
1893
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1894
- height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1895
- duration: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1896
- fps: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1897
- created: z.optional(z.string()),
1898
- updated: z.optional(z.string()),
1798
+ id: z.string(),
1799
+ owner: z.string(),
1800
+ input: z.optional(z.string()),
1801
+ source: z.optional(z.string()),
1802
+ status: z.optional(z.enum([
1803
+ 'queued',
1804
+ 'importing',
1805
+ 'ready',
1806
+ 'failed',
1807
+ 'deleted',
1808
+ 'overwritten'
1809
+ ])),
1810
+ outputs: z.optional(outputsresponseOutputsResponseSchema),
1811
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1812
+ height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1813
+ duration: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1814
+ fps: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1815
+ created: z.optional(z.string()),
1816
+ updated: z.optional(z.string())
1899
1817
  }).strict();
1900
1818
 
1901
- export const sourceResponseAttributesSchema =
1902
- sourceresponseattributesSourceResponseAttributesSchema;
1819
+ export const sourceResponseAttributesSchema = sourceresponseattributesSourceResponseAttributesSchema;
1903
1820
 
1904
1821
  /**
1905
1822
  * The type of resource (a source), it's id and attributes of the source file.
1906
1823
  */
1907
1824
  export const sourceresponsedataSourceResponseDataSchema = z.object({
1908
- type: z.string(),
1909
- id: z.string(),
1910
- attributes: sourceresponseattributesSourceResponseAttributesSchema,
1825
+ type: z.string(),
1826
+ id: z.string(),
1827
+ attributes: sourceresponseattributesSourceResponseAttributesSchema
1911
1828
  }).strict();
1912
1829
 
1913
- export const sourceResponseDataSchema =
1914
- sourceresponsedataSourceResponseDataSchema;
1830
+ export const sourceResponseDataSchema = sourceresponsedataSourceResponseDataSchema;
1915
1831
 
1916
1832
  /**
1917
1833
  * A list of all ingested source files fetched or uploaded to a users account.
1918
1834
  */
1919
1835
  export const sourcelistresponseSourceListResponseSchema = z.object({
1920
- data: z.array(sourceresponsedataSourceResponseDataSchema),
1836
+ data: z.array(sourceresponsedataSourceResponseDataSchema)
1921
1837
  }).strict();
1922
1838
 
1923
- export const sourceListResponseSchema =
1924
- sourcelistresponseSourceListResponseSchema;
1839
+ export const sourceListResponseSchema = sourcelistresponseSourceListResponseSchema;
1925
1840
 
1926
1841
  /**
1927
1842
  * 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.
1928
1843
  */
1929
1844
  export const sourceresponseSourceResponseSchema = z.object({
1930
- data: sourceresponsedataSourceResponseDataSchema,
1845
+ data: sourceresponsedataSourceResponseDataSchema
1931
1846
  }).strict();
1932
1847
 
1933
1848
  export const sourceResponseSchema = sourceresponseSourceResponseSchema;
@@ -1937,10 +1852,10 @@ export const sourceResponseSchema = sourceresponseSourceResponseSchema;
1937
1852
  * A rendition is a new version, generated from the source. This can be used to create new sizes and aspect ratios tht serve different purposes within an application.
1938
1853
  */
1939
1854
  export const sourceSourceSchema = z.object({
1940
- url: z.optional(z.string()),
1941
- outputs: z.optional(outputsOutputsSchema),
1942
- destinations: z.optional(destinationsDestinationsSchema),
1943
- callback: z.optional(z.string()),
1855
+ url: z.optional(z.string()),
1856
+ outputs: z.optional(outputsOutputsSchema),
1857
+ destinations: z.optional(destinationsDestinationsSchema),
1858
+ callback: z.optional(z.string())
1944
1859
  }).strict();
1945
1860
 
1946
1861
  export const sourceSchema = sourceSourceSchema;
@@ -1949,9 +1864,13 @@ export const sourceSchema = sourceSourceSchema;
1949
1864
  * A music or audio file in mp3 format that plays for the duration of the rendered video or the length of the audio file, which ever is shortest.
1950
1865
  */
1951
1866
  export const soundtrackSoundtrackSchema = z.object({
1952
- src: z.string().min(1).regex(/\S/),
1953
- effect: z.optional(z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
1954
- volume: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1867
+ src: z.string().min(1).regex(/\S/),
1868
+ effect: z.optional(z.enum([
1869
+ 'fadeIn',
1870
+ 'fadeOut',
1871
+ 'fadeInFadeOut'
1872
+ ])),
1873
+ volume: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1955
1874
  }).strict();
1956
1875
 
1957
1876
  export const soundtrackSchema = soundtrackSoundtrackSchema;
@@ -1962,8 +1881,8 @@ export const soundtrackSchema = soundtrackSoundtrackSchema;
1962
1881
  *
1963
1882
  */
1964
1883
  export const svgpropertiesSvgGradientStopSchema = z.object({
1965
- offset: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1966
- color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1884
+ offset: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1885
+ color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1967
1886
  }).strict();
1968
1887
 
1969
1888
  export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
@@ -1974,14 +1893,13 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
1974
1893
  *
1975
1894
  */
1976
1895
  export const svgpropertiesSvgLinearGradientFillSchema = z.object({
1977
- type: z.enum(["linear"]),
1978
- angle: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1979
- stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1980
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1896
+ type: z.enum(['linear']),
1897
+ angle: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1898
+ stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1899
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1981
1900
  }).strict();
1982
1901
 
1983
- export const svgLinearGradientFillSchema =
1984
- svgpropertiesSvgLinearGradientFillSchema;
1902
+ export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSchema;
1985
1903
 
1986
1904
  /**
1987
1905
  * A radial gradient fill that transitions colors radiating outward from a center point.
@@ -1989,24 +1907,23 @@ export const svgLinearGradientFillSchema =
1989
1907
  *
1990
1908
  */
1991
1909
  export const svgpropertiesSvgRadialGradientFillSchema = z.object({
1992
- type: z.enum(["radial"]),
1993
- stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1994
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1910
+ type: z.enum(['radial']),
1911
+ stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1912
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1995
1913
  }).strict();
1996
1914
 
1997
- export const svgRadialGradientFillSchema =
1998
- svgpropertiesSvgRadialGradientFillSchema;
1915
+ export const svgRadialGradientFillSchema = svgpropertiesSvgRadialGradientFillSchema;
1999
1916
 
2000
1917
  /**
2001
1918
  * Drop shadow properties for SVG shapes. Creates a shadow effect behind the shape.
2002
1919
  *
2003
1920
  */
2004
1921
  export const svgpropertiesSvgShadowSchema = z.object({
2005
- offsetX: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2006
- offsetY: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2007
- blur: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2008
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
2009
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
1922
+ offsetX: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1923
+ offsetY: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1924
+ blur: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1925
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1926
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
2010
1927
  }).strict();
2011
1928
 
2012
1929
  export const svgShadowSchema = svgpropertiesSvgShadowSchema;
@@ -2015,12 +1932,9 @@ export const svgShadowSchema = svgpropertiesSvgShadowSchema;
2015
1932
  * A solid color fill for SVG shapes.
2016
1933
  */
2017
1934
  export const svgpropertiesSvgSolidFillSchema = z.object({
2018
- type: z.enum(["solid"]),
2019
- color: z
2020
- .string()
2021
- .regex(/^#[A-Fa-f0-9]{6}$/)
2022
- .default("#000000"),
2023
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1935
+ type: z.enum(['solid']),
1936
+ color: z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
1937
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
2024
1938
  }).strict();
2025
1939
 
2026
1940
  export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
@@ -2044,13 +1958,21 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
2044
1958
  *
2045
1959
  */
2046
1960
  export const svgpropertiesSvgStrokeSchema = z.object({
2047
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
2048
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2049
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2050
- lineCap: z.optional(z.enum(["butt", "round", "square"])),
2051
- lineJoin: z.optional(z.enum(["miter", "round", "bevel"])),
2052
- dashArray: z.optional(z.array(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))),
2053
- dashOffset: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1961
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1962
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1963
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1964
+ lineCap: z.optional(z.enum([
1965
+ 'butt',
1966
+ 'round',
1967
+ 'square'
1968
+ ])),
1969
+ lineJoin: z.optional(z.enum([
1970
+ 'miter',
1971
+ 'round',
1972
+ 'bevel'
1973
+ ])),
1974
+ dashArray: z.optional(z.array(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))),
1975
+ dashOffset: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
2054
1976
  }).strict();
2055
1977
 
2056
1978
  export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
@@ -2060,12 +1982,12 @@ export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
2060
1982
  *
2061
1983
  */
2062
1984
  export const svgpropertiesSvgTransformSchema = z.object({
2063
- x: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2064
- y: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2065
- rotation: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2066
- scale: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.01).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2067
- originX: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2068
- originY: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
1985
+ x: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1986
+ y: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1987
+ rotation: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1988
+ scale: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.01).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1989
+ originX: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
1990
+ originY: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
2069
1991
  }).strict();
2070
1992
 
2071
1993
  export const svgTransformSchema = svgpropertiesSvgTransformSchema;
@@ -2076,11 +1998,11 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
2076
1998
  *
2077
1999
  */
2078
2000
  export const svgshapesSvgArrowShapeSchema = z.object({
2079
- type: z.enum(["arrow"]),
2080
- length: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2081
- headWidth: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2082
- headLength: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2083
- shaftWidth: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2001
+ type: z.enum(['arrow']),
2002
+ length: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2003
+ headWidth: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2004
+ headLength: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2005
+ shaftWidth: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2084
2006
  }).strict();
2085
2007
 
2086
2008
  export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
@@ -2091,8 +2013,8 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
2091
2013
  *
2092
2014
  */
2093
2015
  export const svgshapesSvgCircleShapeSchema = z.object({
2094
- type: z.enum(["circle"]),
2095
- radius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2016
+ type: z.enum(['circle']),
2017
+ radius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2096
2018
  }).strict();
2097
2019
 
2098
2020
  export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
@@ -2103,10 +2025,10 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
2103
2025
  *
2104
2026
  */
2105
2027
  export const svgshapesSvgCrossShapeSchema = z.object({
2106
- type: z.enum(["cross"]),
2107
- width: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2108
- height: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2109
- thickness: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2028
+ type: z.enum(['cross']),
2029
+ width: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2030
+ height: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2031
+ thickness: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2110
2032
  }).strict();
2111
2033
 
2112
2034
  export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
@@ -2117,9 +2039,9 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
2117
2039
  *
2118
2040
  */
2119
2041
  export const svgshapesSvgEllipseShapeSchema = z.object({
2120
- type: z.enum(["ellipse"]),
2121
- radiusX: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2122
- radiusY: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2042
+ type: z.enum(['ellipse']),
2043
+ radiusX: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2044
+ radiusY: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2123
2045
  }).strict();
2124
2046
 
2125
2047
  export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
@@ -2130,8 +2052,8 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
2130
2052
  *
2131
2053
  */
2132
2054
  export const svgshapesSvgHeartShapeSchema = z.object({
2133
- type: z.enum(["heart"]),
2134
- size: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2055
+ type: z.enum(['heart']),
2056
+ size: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2135
2057
  }).strict();
2136
2058
 
2137
2059
  export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
@@ -2142,9 +2064,9 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2142
2064
  *
2143
2065
  */
2144
2066
  export const svgshapesSvgLineShapeSchema = z.object({
2145
- type: z.enum(["line"]),
2146
- length: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2147
- thickness: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2067
+ type: z.enum(['line']),
2068
+ length: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2069
+ thickness: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2148
2070
  }).strict();
2149
2071
 
2150
2072
  export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
@@ -2167,8 +2089,8 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2167
2089
  *
2168
2090
  */
2169
2091
  export const svgshapesSvgPathShapeSchema = z.object({
2170
- type: z.enum(["path"]),
2171
- d: z.string().min(1).max(100000),
2092
+ type: z.enum(['path']),
2093
+ d: z.string().min(1).max(100000)
2172
2094
  }).strict();
2173
2095
 
2174
2096
  export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
@@ -2180,9 +2102,9 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2180
2102
  *
2181
2103
  */
2182
2104
  export const svgshapesSvgPolygonShapeSchema = z.object({
2183
- type: z.enum(["polygon"]),
2184
- sides: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(3).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2185
- radius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2105
+ type: z.enum(['polygon']),
2106
+ sides: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(3).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2107
+ radius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2186
2108
  }).strict();
2187
2109
 
2188
2110
  export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
@@ -2193,10 +2115,10 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2193
2115
  *
2194
2116
  */
2195
2117
  export const svgshapesSvgRectangleShapeSchema = z.object({
2196
- type: z.enum(["rectangle"]),
2197
- width: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2198
- height: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2199
- cornerRadius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2118
+ type: z.enum(['rectangle']),
2119
+ width: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2120
+ height: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2121
+ cornerRadius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
2200
2122
  }).strict();
2201
2123
 
2202
2124
  export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
@@ -2207,9 +2129,9 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2207
2129
  *
2208
2130
  */
2209
2131
  export const svgshapesSvgRingShapeSchema = z.object({
2210
- type: z.enum(["ring"]),
2211
- outerRadius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2212
- innerRadius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2132
+ type: z.enum(['ring']),
2133
+ outerRadius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2134
+ innerRadius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2213
2135
  }).strict();
2214
2136
 
2215
2137
  export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
@@ -2221,10 +2143,10 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2221
2143
  *
2222
2144
  */
2223
2145
  export const svgshapesSvgStarShapeSchema = z.object({
2224
- type: z.enum(["star"]),
2225
- points: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(3).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2226
- outerRadius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2227
- innerRadius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2146
+ type: z.enum(['star']),
2147
+ points: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(3).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2148
+ outerRadius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2149
+ innerRadius: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2228
2150
  }).strict();
2229
2151
 
2230
2152
  export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
@@ -2345,8 +2267,8 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
2345
2267
  * Configure the id and optional merge fields to render a template by id.
2346
2268
  */
2347
2269
  export const templaterenderTemplateRenderSchema = z.object({
2348
- id: z.string(),
2349
- merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2270
+ id: z.string(),
2271
+ merge: z.optional(z.array(mergefieldMergeFieldSchema))
2350
2272
  }).strict();
2351
2273
 
2352
2274
  export const templateRenderSchema = templaterenderTemplateRenderSchema;
@@ -2355,8 +2277,16 @@ export const templateRenderSchema = templaterenderTemplateRenderSchema;
2355
2277
  * Horizontal and vertical alignment properties for text.
2356
2278
  */
2357
2279
  export const textpropertiesTextAlignmentSchema = z.object({
2358
- horizontal: z.optional(z.enum(["left", "center", "right"])),
2359
- vertical: z.optional(z.enum(["top", "center", "bottom"])),
2280
+ horizontal: z.optional(z.enum([
2281
+ 'left',
2282
+ 'center',
2283
+ 'right'
2284
+ ])),
2285
+ vertical: z.optional(z.enum([
2286
+ 'top',
2287
+ 'center',
2288
+ 'bottom'
2289
+ ]))
2360
2290
  }).strict();
2361
2291
 
2362
2292
  export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
@@ -2365,18 +2295,18 @@ export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
2365
2295
  * Animation properties for text entrance effects.
2366
2296
  */
2367
2297
  export const textpropertiesTextAnimationSchema = z.object({
2368
- preset: z.enum(["typewriter"]),
2369
- duration: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2298
+ preset: z.enum(['typewriter']),
2299
+ duration: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2370
2300
  }).strict();
2371
2301
 
2372
2302
  /**
2373
2303
  * Displays a background box behind the text.
2374
2304
  */
2375
2305
  export const textpropertiesTextBackgroundSchema = z.object({
2376
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2377
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2378
- padding: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2379
- borderRadius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2306
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2307
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2308
+ padding: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2309
+ borderRadius: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2380
2310
  }).strict();
2381
2311
 
2382
2312
  export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
@@ -2385,12 +2315,12 @@ export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
2385
2315
  * Font properties for text.
2386
2316
  */
2387
2317
  export const textpropertiesTextFontSchema = z.object({
2388
- family: z.optional(z.string()),
2389
- color: z.optional(z.string()),
2390
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2391
- size: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2392
- weight: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2393
- lineHeight: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2318
+ family: z.optional(z.string()),
2319
+ color: z.optional(z.string()),
2320
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2321
+ size: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2322
+ weight: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2323
+ lineHeight: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2394
2324
  }).strict();
2395
2325
 
2396
2326
  export const textFontSchema = textpropertiesTextFontSchema;
@@ -2399,8 +2329,8 @@ export const textFontSchema = textpropertiesTextFontSchema;
2399
2329
  * Text stroke (outline) properties.
2400
2330
  */
2401
2331
  export const textpropertiesTextStrokeSchema = z.object({
2402
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2403
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2332
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2333
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2404
2334
  }).strict();
2405
2335
 
2406
2336
  /**
@@ -2409,16 +2339,16 @@ export const textpropertiesTextStrokeSchema = z.object({
2409
2339
  *
2410
2340
  */
2411
2341
  export const textassetTextAssetSchema = z.object({
2412
- type: z.enum(["text"]),
2413
- text: z.string(),
2414
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2415
- height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2416
- font: z.optional(textpropertiesTextFontSchema),
2417
- background: z.optional(textpropertiesTextBackgroundSchema),
2418
- alignment: z.optional(textpropertiesTextAlignmentSchema),
2419
- stroke: z.optional(textpropertiesTextStrokeSchema),
2420
- animation: z.optional(textpropertiesTextAnimationSchema),
2421
- ellipsis: z.optional(z.string()),
2342
+ type: z.enum(['text']),
2343
+ text: z.string(),
2344
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2345
+ height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2346
+ font: z.optional(textpropertiesTextFontSchema),
2347
+ background: z.optional(textpropertiesTextBackgroundSchema),
2348
+ alignment: z.optional(textpropertiesTextAlignmentSchema),
2349
+ stroke: z.optional(textpropertiesTextStrokeSchema),
2350
+ animation: z.optional(textpropertiesTextAnimationSchema),
2351
+ ellipsis: z.optional(z.string())
2422
2352
  }).strict();
2423
2353
 
2424
2354
  export const textAssetSchema = textassetTextAssetSchema;
@@ -2427,11 +2357,11 @@ export const textAssetSchema = textassetTextAssetSchema;
2427
2357
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
2428
2358
  */
2429
2359
  export const texttoimageassetTextToImageAssetSchema = z.object({
2430
- type: z.enum(["text-to-image"]),
2431
- prompt: z.string(),
2432
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2433
- height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2434
- crop: z.optional(cropCropSchema),
2360
+ type: z.enum(['text-to-image']),
2361
+ prompt: z.string(),
2362
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2363
+ height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2364
+ crop: z.optional(cropCropSchema)
2435
2365
  }).strict();
2436
2366
 
2437
2367
  export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
@@ -2440,8 +2370,8 @@ export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
2440
2370
  * Generate a thumbnail image for the video or image at a specific point from the timeline.
2441
2371
  */
2442
2372
  export const thumbnailThumbnailSchema = z.object({
2443
- capture: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2444
- scale: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2373
+ capture: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2374
+ scale: z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2445
2375
  }).strict();
2446
2376
 
2447
2377
  export const thumbnailSchema = thumbnailThumbnailSchema;
@@ -2450,35 +2380,64 @@ export const thumbnailSchema = thumbnailThumbnailSchema;
2450
2380
  * The output format, render range and type of media to generate.
2451
2381
  */
2452
2382
  export const outputOutputSchema = z.object({
2453
- format: z.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
2454
- resolution: z.optional(
2455
- z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"]),
2456
- ),
2457
- aspectRatio: z.optional(z.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
2458
- size: z.optional(sizeSizeSchema),
2459
- fps: z.optional(
2460
- z.union([
2461
- z.literal(12),
2462
- z.literal(15),
2463
- z.literal(23.976),
2464
- z.literal(24),
2465
- z.literal(25),
2466
- z.literal(29.97),
2467
- z.literal(30),
2468
- z.literal(48),
2469
- z.literal(50),
2470
- z.literal(59.94),
2471
- z.literal(60),
2383
+ format: z.enum([
2384
+ 'mp4',
2385
+ 'gif',
2386
+ 'mp3',
2387
+ 'jpg',
2388
+ 'png',
2389
+ 'bmp'
2472
2390
  ]),
2473
- ),
2474
- scaleTo: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2475
- quality: z.optional(z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
2476
- repeat: z.optional(z.boolean()),
2477
- mute: z.optional(z.boolean()),
2478
- range: z.optional(rangeRangeSchema),
2479
- poster: z.optional(posterPosterSchema),
2480
- thumbnail: z.optional(thumbnailThumbnailSchema),
2481
- destinations: z.optional(z.array(destinationsDestinationsSchema)),
2391
+ resolution: z.optional(z.enum([
2392
+ 'preview',
2393
+ 'mobile',
2394
+ 'sd',
2395
+ 'hd',
2396
+ '1080',
2397
+ '4k'
2398
+ ])),
2399
+ aspectRatio: z.optional(z.enum([
2400
+ '16:9',
2401
+ '9:16',
2402
+ '1:1',
2403
+ '4:5',
2404
+ '4:3'
2405
+ ])),
2406
+ size: z.optional(sizeSizeSchema),
2407
+ fps: z.optional(z.union([
2408
+ z.literal(12),
2409
+ z.literal(15),
2410
+ z.literal(23.976),
2411
+ z.literal(24),
2412
+ z.literal(25),
2413
+ z.literal(29.97),
2414
+ z.literal(30),
2415
+ z.literal(48),
2416
+ z.literal(50),
2417
+ z.literal(59.94),
2418
+ z.literal(60)
2419
+ ])),
2420
+ scaleTo: z.optional(z.enum([
2421
+ 'preview',
2422
+ 'mobile',
2423
+ 'sd',
2424
+ 'hd',
2425
+ '1080',
2426
+ '4k'
2427
+ ])),
2428
+ quality: z.optional(z.enum([
2429
+ 'verylow',
2430
+ 'low',
2431
+ 'medium',
2432
+ 'high',
2433
+ 'veryhigh'
2434
+ ])),
2435
+ repeat: z.optional(z.boolean()),
2436
+ mute: z.optional(z.boolean()),
2437
+ range: z.optional(rangeRangeSchema),
2438
+ poster: z.optional(posterPosterSchema),
2439
+ thumbnail: z.optional(thumbnailThumbnailSchema),
2440
+ destinations: z.optional(z.array(destinationsDestinationsSchema))
2482
2441
  }).strict();
2483
2442
 
2484
2443
  export const outputSchema = outputOutputSchema;
@@ -2487,138 +2446,134 @@ export const outputSchema = outputOutputSchema;
2487
2446
  * In and out transitions for a clip - i.e. fade in and fade out
2488
2447
  */
2489
2448
  export const transitionTransitionSchema = z.object({
2490
- in: z.optional(
2491
- z.enum([
2492
- "none",
2493
- "fade",
2494
- "fadeSlow",
2495
- "fadeFast",
2496
- "reveal",
2497
- "revealSlow",
2498
- "revealFast",
2499
- "wipeLeft",
2500
- "wipeLeftSlow",
2501
- "wipeLeftFast",
2502
- "wipeRight",
2503
- "wipeRightSlow",
2504
- "wipeRightFast",
2505
- "slideLeft",
2506
- "slideLeftSlow",
2507
- "slideLeftFast",
2508
- "slideRight",
2509
- "slideRightSlow",
2510
- "slideRightFast",
2511
- "slideUp",
2512
- "slideUpSlow",
2513
- "slideUpFast",
2514
- "slideDown",
2515
- "slideDownSlow",
2516
- "slideDownFast",
2517
- "carouselLeft",
2518
- "carouselLeftSlow",
2519
- "carouselLeftFast",
2520
- "carouselRight",
2521
- "carouselRightSlow",
2522
- "carouselRightFast",
2523
- "carouselUp",
2524
- "carouselUpSlow",
2525
- "carouselUpFast",
2526
- "carouselDown",
2527
- "carouselDownSlow",
2528
- "carouselDownFast",
2529
- "shuffleTopRight",
2530
- "shuffleTopRightSlow",
2531
- "shuffleTopRightFast",
2532
- "shuffleRightTop",
2533
- "shuffleRightTopSlow",
2534
- "shuffleRightTopFast",
2535
- "shuffleRightBottom",
2536
- "shuffleRightBottomSlow",
2537
- "shuffleRightBottomFast",
2538
- "shuffleBottomRight",
2539
- "shuffleBottomRightSlow",
2540
- "shuffleBottomRightFast",
2541
- "shuffleBottomLeft",
2542
- "shuffleBottomLeftSlow",
2543
- "shuffleBottomLeftFast",
2544
- "shuffleLeftBottom",
2545
- "shuffleLeftBottomSlow",
2546
- "shuffleLeftBottomFast",
2547
- "shuffleLeftTop",
2548
- "shuffleLeftTopSlow",
2549
- "shuffleLeftTopFast",
2550
- "shuffleTopLeft",
2551
- "shuffleTopLeftSlow",
2552
- "shuffleTopLeftFast",
2553
- "zoom",
2554
- ]),
2555
- ),
2556
- out: z.optional(
2557
- z.enum([
2558
- "none",
2559
- "fade",
2560
- "fadeSlow",
2561
- "fadeFast",
2562
- "reveal",
2563
- "revealSlow",
2564
- "revealFast",
2565
- "wipeLeft",
2566
- "wipeLeftSlow",
2567
- "wipeLeftFast",
2568
- "wipeRight",
2569
- "wipeRightSlow",
2570
- "wipeRightFast",
2571
- "slideLeft",
2572
- "slideLeftSlow",
2573
- "slideLeftFast",
2574
- "slideRight",
2575
- "slideRightSlow",
2576
- "slideRightFast",
2577
- "slideUp",
2578
- "slideUpSlow",
2579
- "slideUpFast",
2580
- "slideDown",
2581
- "slideDownSlow",
2582
- "slideDownFast",
2583
- "carouselLeft",
2584
- "carouselLeftSlow",
2585
- "carouselLeftFast",
2586
- "carouselRight",
2587
- "carouselRightSlow",
2588
- "carouselRightFast",
2589
- "carouselUp",
2590
- "carouselUpSlow",
2591
- "carouselUpFast",
2592
- "carouselDown",
2593
- "carouselDownSlow",
2594
- "carouselDownFast",
2595
- "shuffleTopRight",
2596
- "shuffleTopRightSlow",
2597
- "shuffleTopRightFast",
2598
- "shuffleRightTop",
2599
- "shuffleRightTopSlow",
2600
- "shuffleRightTopFast",
2601
- "shuffleRightBottom",
2602
- "shuffleRightBottomSlow",
2603
- "shuffleRightBottomFast",
2604
- "shuffleBottomRight",
2605
- "shuffleBottomRightSlow",
2606
- "shuffleBottomRightFast",
2607
- "shuffleBottomLeft",
2608
- "shuffleBottomLeftSlow",
2609
- "shuffleBottomLeftFast",
2610
- "shuffleLeftBottom",
2611
- "shuffleLeftBottomSlow",
2612
- "shuffleLeftBottomFast",
2613
- "shuffleLeftTop",
2614
- "shuffleLeftTopSlow",
2615
- "shuffleLeftTopFast",
2616
- "shuffleTopLeft",
2617
- "shuffleTopLeftSlow",
2618
- "shuffleTopLeftFast",
2619
- "zoom",
2620
- ]),
2621
- ),
2449
+ in: z.optional(z.enum([
2450
+ 'none',
2451
+ 'fade',
2452
+ 'fadeSlow',
2453
+ 'fadeFast',
2454
+ 'reveal',
2455
+ 'revealSlow',
2456
+ 'revealFast',
2457
+ 'wipeLeft',
2458
+ 'wipeLeftSlow',
2459
+ 'wipeLeftFast',
2460
+ 'wipeRight',
2461
+ 'wipeRightSlow',
2462
+ 'wipeRightFast',
2463
+ 'slideLeft',
2464
+ 'slideLeftSlow',
2465
+ 'slideLeftFast',
2466
+ 'slideRight',
2467
+ 'slideRightSlow',
2468
+ 'slideRightFast',
2469
+ 'slideUp',
2470
+ 'slideUpSlow',
2471
+ 'slideUpFast',
2472
+ 'slideDown',
2473
+ 'slideDownSlow',
2474
+ 'slideDownFast',
2475
+ 'carouselLeft',
2476
+ 'carouselLeftSlow',
2477
+ 'carouselLeftFast',
2478
+ 'carouselRight',
2479
+ 'carouselRightSlow',
2480
+ 'carouselRightFast',
2481
+ 'carouselUp',
2482
+ 'carouselUpSlow',
2483
+ 'carouselUpFast',
2484
+ 'carouselDown',
2485
+ 'carouselDownSlow',
2486
+ 'carouselDownFast',
2487
+ 'shuffleTopRight',
2488
+ 'shuffleTopRightSlow',
2489
+ 'shuffleTopRightFast',
2490
+ 'shuffleRightTop',
2491
+ 'shuffleRightTopSlow',
2492
+ 'shuffleRightTopFast',
2493
+ 'shuffleRightBottom',
2494
+ 'shuffleRightBottomSlow',
2495
+ 'shuffleRightBottomFast',
2496
+ 'shuffleBottomRight',
2497
+ 'shuffleBottomRightSlow',
2498
+ 'shuffleBottomRightFast',
2499
+ 'shuffleBottomLeft',
2500
+ 'shuffleBottomLeftSlow',
2501
+ 'shuffleBottomLeftFast',
2502
+ 'shuffleLeftBottom',
2503
+ 'shuffleLeftBottomSlow',
2504
+ 'shuffleLeftBottomFast',
2505
+ 'shuffleLeftTop',
2506
+ 'shuffleLeftTopSlow',
2507
+ 'shuffleLeftTopFast',
2508
+ 'shuffleTopLeft',
2509
+ 'shuffleTopLeftSlow',
2510
+ 'shuffleTopLeftFast',
2511
+ 'zoom'
2512
+ ])),
2513
+ out: z.optional(z.enum([
2514
+ 'none',
2515
+ 'fade',
2516
+ 'fadeSlow',
2517
+ 'fadeFast',
2518
+ 'reveal',
2519
+ 'revealSlow',
2520
+ 'revealFast',
2521
+ 'wipeLeft',
2522
+ 'wipeLeftSlow',
2523
+ 'wipeLeftFast',
2524
+ 'wipeRight',
2525
+ 'wipeRightSlow',
2526
+ 'wipeRightFast',
2527
+ 'slideLeft',
2528
+ 'slideLeftSlow',
2529
+ 'slideLeftFast',
2530
+ 'slideRight',
2531
+ 'slideRightSlow',
2532
+ 'slideRightFast',
2533
+ 'slideUp',
2534
+ 'slideUpSlow',
2535
+ 'slideUpFast',
2536
+ 'slideDown',
2537
+ 'slideDownSlow',
2538
+ 'slideDownFast',
2539
+ 'carouselLeft',
2540
+ 'carouselLeftSlow',
2541
+ 'carouselLeftFast',
2542
+ 'carouselRight',
2543
+ 'carouselRightSlow',
2544
+ 'carouselRightFast',
2545
+ 'carouselUp',
2546
+ 'carouselUpSlow',
2547
+ 'carouselUpFast',
2548
+ 'carouselDown',
2549
+ 'carouselDownSlow',
2550
+ 'carouselDownFast',
2551
+ 'shuffleTopRight',
2552
+ 'shuffleTopRightSlow',
2553
+ 'shuffleTopRightFast',
2554
+ 'shuffleRightTop',
2555
+ 'shuffleRightTopSlow',
2556
+ 'shuffleRightTopFast',
2557
+ 'shuffleRightBottom',
2558
+ 'shuffleRightBottomSlow',
2559
+ 'shuffleRightBottomFast',
2560
+ 'shuffleBottomRight',
2561
+ 'shuffleBottomRightSlow',
2562
+ 'shuffleBottomRightFast',
2563
+ 'shuffleBottomLeft',
2564
+ 'shuffleBottomLeftSlow',
2565
+ 'shuffleBottomLeftFast',
2566
+ 'shuffleLeftBottom',
2567
+ 'shuffleLeftBottomSlow',
2568
+ 'shuffleLeftBottomFast',
2569
+ 'shuffleLeftTop',
2570
+ 'shuffleLeftTopSlow',
2571
+ 'shuffleLeftTopFast',
2572
+ 'shuffleTopLeft',
2573
+ 'shuffleTopLeftSlow',
2574
+ 'shuffleTopLeftFast',
2575
+ 'zoom'
2576
+ ]))
2622
2577
  }).strict();
2623
2578
 
2624
2579
  export const transitionSchema = transitionTransitionSchema;
@@ -2634,43 +2589,45 @@ export const transitionSchema = transitionTransitionSchema;
2634
2589
  * </ul>
2635
2590
  */
2636
2591
  export const tweenTweenSchema = z.object({
2637
- from: z.optional(z.unknown()),
2638
- to: z.optional(z.unknown()),
2639
- start: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2640
- length: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2641
- interpolation: z.optional(z.enum(["linear", "bezier", "constant"])),
2642
- easing: z.optional(
2643
- z.enum([
2644
- "ease",
2645
- "easeIn",
2646
- "easeOut",
2647
- "easeInOut",
2648
- "easeInQuad",
2649
- "easeInCubic",
2650
- "easeInQuart",
2651
- "easeInQuint",
2652
- "easeInSine",
2653
- "easeInExpo",
2654
- "easeInCirc",
2655
- "easeInBack",
2656
- "easeOutQuad",
2657
- "easeOutCubic",
2658
- "easeOutQuart",
2659
- "easeOutQuint",
2660
- "easeOutSine",
2661
- "easeOutExpo",
2662
- "easeOutCirc",
2663
- "easeOutBack",
2664
- "easeInOutQuad",
2665
- "easeInOutCubic",
2666
- "easeInOutQuart",
2667
- "easeInOutQuint",
2668
- "easeInOutSine",
2669
- "easeInOutExpo",
2670
- "easeInOutCirc",
2671
- "easeInOutBack",
2672
- ]),
2673
- ),
2592
+ from: z.optional(z.unknown()),
2593
+ to: z.optional(z.unknown()),
2594
+ start: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2595
+ length: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2596
+ interpolation: z.optional(z.enum([
2597
+ 'linear',
2598
+ 'bezier',
2599
+ 'constant'
2600
+ ])),
2601
+ easing: z.optional(z.enum([
2602
+ 'ease',
2603
+ 'easeIn',
2604
+ 'easeOut',
2605
+ 'easeInOut',
2606
+ 'easeInQuad',
2607
+ 'easeInCubic',
2608
+ 'easeInQuart',
2609
+ 'easeInQuint',
2610
+ 'easeInSine',
2611
+ 'easeInExpo',
2612
+ 'easeInCirc',
2613
+ 'easeInBack',
2614
+ 'easeOutQuad',
2615
+ 'easeOutCubic',
2616
+ 'easeOutQuart',
2617
+ 'easeOutQuint',
2618
+ 'easeOutSine',
2619
+ 'easeOutExpo',
2620
+ 'easeOutCirc',
2621
+ 'easeOutBack',
2622
+ 'easeInOutQuad',
2623
+ 'easeInOutCubic',
2624
+ 'easeInOutQuart',
2625
+ 'easeInOutQuint',
2626
+ 'easeInOutSine',
2627
+ 'easeInOutExpo',
2628
+ 'easeInOutCirc',
2629
+ 'easeInOutBack'
2630
+ ]))
2674
2631
  }).strict();
2675
2632
 
2676
2633
  export const tweenSchema = tweenTweenSchema;
@@ -2679,14 +2636,20 @@ export const tweenSchema = tweenTweenSchema;
2679
2636
  * 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.
2680
2637
  */
2681
2638
  export const audioassetAudioAssetSchema = z.object({
2682
- type: z.enum(["audio"]),
2683
- src: z.string().min(1).regex(/\S/),
2684
- trim: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2685
- volume: z.optional(
2686
- z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
2687
- ),
2688
- speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2689
- effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2639
+ type: z.enum(['audio']),
2640
+ src: z.string().min(1).regex(/\S/),
2641
+ trim: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2642
+ volume: z.optional(z.union([
2643
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2644
+ z.array(tweenTweenSchema)
2645
+ ])),
2646
+ speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2647
+ effect: z.optional(z.enum([
2648
+ 'none',
2649
+ 'fadeIn',
2650
+ 'fadeOut',
2651
+ 'fadeInFadeOut'
2652
+ ]))
2690
2653
  }).strict();
2691
2654
 
2692
2655
  export const audioAssetSchema = audioassetAudioAssetSchema;
@@ -2695,12 +2658,14 @@ export const audioAssetSchema = audioassetAudioAssetSchema;
2695
2658
  * Offsets the position of an asset horizontally or vertically by a relative distance.
2696
2659
  */
2697
2660
  export const offsetOffsetSchema = z.object({
2698
- x: z.optional(
2699
- z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
2700
- ),
2701
- y: z.optional(
2702
- z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
2703
- ),
2661
+ x: z.optional(z.union([
2662
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2663
+ z.array(tweenTweenSchema)
2664
+ ])),
2665
+ y: z.optional(z.union([
2666
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2667
+ z.array(tweenTweenSchema)
2668
+ ]))
2704
2669
  }).strict();
2705
2670
 
2706
2671
  export const offsetSchema = offsetOffsetSchema;
@@ -2709,44 +2674,51 @@ export const offsetSchema = offsetOffsetSchema;
2709
2674
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
2710
2675
  */
2711
2676
  export const rotatetransformationRotateTransformationSchema = z.object({
2712
- angle: z.optional(
2713
- z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
2714
- ),
2677
+ angle: z.optional(z.union([
2678
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2679
+ z.array(tweenTweenSchema)
2680
+ ]))
2715
2681
  }).strict();
2716
2682
 
2717
- export const rotateTransformationSchema =
2718
- rotatetransformationRotateTransformationSchema;
2683
+ export const rotateTransformationSchema = rotatetransformationRotateTransformationSchema;
2719
2684
 
2720
2685
  /**
2721
2686
  * 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.
2722
2687
  */
2723
2688
  export const skewtransformationSkewTransformationSchema = z.object({
2724
- x: z.optional(
2725
- z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
2726
- ),
2727
- y: z.optional(
2728
- z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
2729
- ),
2689
+ x: z.optional(z.union([
2690
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2691
+ z.array(tweenTweenSchema)
2692
+ ])),
2693
+ y: z.optional(z.union([
2694
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2695
+ z.array(tweenTweenSchema)
2696
+ ]))
2730
2697
  }).strict();
2731
2698
 
2732
- export const skewTransformationSchema =
2733
- skewtransformationSkewTransformationSchema;
2699
+ export const skewTransformationSchema = skewtransformationSkewTransformationSchema;
2734
2700
 
2735
2701
  /**
2736
2702
  * The TextToSpeechAsset lets you generate a voice over from text using a text-to-speech service. The generated audio can be trimmed, faded and have its volume and speed adjusted using the same properties available on the AudioAsset.
2737
2703
  */
2738
2704
  export const texttospeechassetTextToSpeechAssetSchema = z.object({
2739
- type: z.enum(["text-to-speech"]),
2740
- text: z.string(),
2741
- voice: z.string(),
2742
- language: z.optional(z.string()),
2743
- newscaster: z.optional(z.boolean()).default(false),
2744
- trim: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2745
- volume: z.optional(
2746
- z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
2747
- ),
2748
- speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2749
- effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2705
+ type: z.enum(['text-to-speech']),
2706
+ text: z.string(),
2707
+ voice: z.string(),
2708
+ language: z.optional(z.string()),
2709
+ newscaster: z.optional(z.boolean()).default(false),
2710
+ trim: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2711
+ volume: z.optional(z.union([
2712
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2713
+ z.array(tweenTweenSchema)
2714
+ ])),
2715
+ speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2716
+ effect: z.optional(z.enum([
2717
+ 'none',
2718
+ 'fadeIn',
2719
+ 'fadeOut',
2720
+ 'fadeInFadeOut'
2721
+ ]))
2750
2722
  }).strict();
2751
2723
 
2752
2724
  export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
@@ -2760,49 +2732,43 @@ export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
2760
2732
  * @deprecated
2761
2733
  */
2762
2734
  export const titleassetTitleAssetSchema = z.object({
2763
- type: z.enum(["title"]),
2764
- text: z.string(),
2765
- style: z.optional(
2766
- z.enum([
2767
- "minimal",
2768
- "blockbuster",
2769
- "vogue",
2770
- "sketchy",
2771
- "skinny",
2772
- "chunk",
2773
- "chunkLight",
2774
- "marker",
2775
- "future",
2776
- "subtitle",
2777
- ]),
2778
- ),
2779
- color: z.optional(z.string()),
2780
- size: z.optional(
2781
- z.enum([
2782
- "xx-small",
2783
- "x-small",
2784
- "small",
2785
- "medium",
2786
- "large",
2787
- "x-large",
2788
- "xx-large",
2789
- ]),
2790
- ),
2791
- background: z.optional(z.string()),
2792
- position: z.optional(
2793
- z.enum([
2794
- "top",
2795
- "topRight",
2796
- "right",
2797
- "bottomRight",
2798
- "bottom",
2799
- "bottomLeft",
2800
- "left",
2801
- "topLeft",
2802
- "center",
2803
- ]),
2804
- ),
2805
- offset: z.optional(offsetOffsetSchema),
2735
+ type: z.enum(['title']),
2736
+ text: z.string(),
2737
+ style: z.optional(z.enum([
2738
+ 'minimal',
2739
+ 'blockbuster',
2740
+ 'vogue',
2741
+ 'sketchy',
2742
+ 'skinny',
2743
+ 'chunk',
2744
+ 'chunkLight',
2745
+ 'marker',
2746
+ 'future',
2747
+ 'subtitle'
2748
+ ])),
2749
+ color: z.optional(z.string()),
2750
+ size: z.optional(z.enum([
2751
+ 'xx-small',
2752
+ 'x-small',
2753
+ 'small',
2754
+ 'medium',
2755
+ 'large',
2756
+ 'x-large',
2757
+ 'xx-large'
2758
+ ])),
2759
+ background: z.optional(z.string()),
2760
+ position: z.optional(z.enum([
2761
+ 'top',
2762
+ 'topRight',
2763
+ 'right',
2764
+ 'bottomRight',
2765
+ 'bottom',
2766
+ 'bottomLeft',
2767
+ 'left',
2768
+ 'topLeft',
2769
+ 'center'
2770
+ ])),
2771
+ offset: z.optional(offsetOffsetSchema)
2806
2772
  }).strict();
2807
2773
 
2808
2774
  export const titleAssetSchema = titleassetTitleAssetSchema;
@@ -2811,9 +2777,9 @@ export const titleAssetSchema = titleassetTitleAssetSchema;
2811
2777
  * Apply one or more transformations to a clip. Transformations alter the visual properties of a clip and can be combined to create new shapes and effects.
2812
2778
  */
2813
2779
  export const transformationTransformationSchema = z.object({
2814
- rotate: z.optional(rotatetransformationRotateTransformationSchema),
2815
- skew: z.optional(skewtransformationSkewTransformationSchema),
2816
- flip: z.optional(fliptransformationFlipTransformationSchema),
2780
+ rotate: z.optional(rotatetransformationRotateTransformationSchema),
2781
+ skew: z.optional(skewtransformationSkewTransformationSchema),
2782
+ flip: z.optional(fliptransformationFlipTransformationSchema)
2817
2783
  }).strict();
2818
2784
 
2819
2785
  export const transformationSchema = transformationTransformationSchema;
@@ -2822,19 +2788,23 @@ export const transformationSchema = transformationTransformationSchema;
2822
2788
  * 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.
2823
2789
  */
2824
2790
  export const videoassetVideoAssetSchema = z.object({
2825
- type: z.enum(["video"]),
2826
- src: z.string().min(1).regex(/\S/),
2827
- transcode: z.optional(z.boolean()),
2828
- trim: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2829
- volume: z.optional(
2830
- z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
2831
- ),
2832
- volumeEffect: z.optional(
2833
- z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]),
2834
- ),
2835
- speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2836
- crop: z.optional(cropCropSchema),
2837
- chromaKey: z.optional(chromakeyChromaKeySchema),
2791
+ type: z.enum(['video']),
2792
+ src: z.string().min(1).regex(/\S/),
2793
+ transcode: z.optional(z.boolean()),
2794
+ trim: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2795
+ volume: z.optional(z.union([
2796
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2797
+ z.array(tweenTweenSchema)
2798
+ ])),
2799
+ volumeEffect: z.optional(z.enum([
2800
+ 'none',
2801
+ 'fadeIn',
2802
+ 'fadeOut',
2803
+ 'fadeInFadeOut'
2804
+ ])),
2805
+ speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2806
+ crop: z.optional(cropCropSchema),
2807
+ chromaKey: z.optional(chromakeyChromaKeySchema)
2838
2808
  }).strict();
2839
2809
 
2840
2810
  export const videoAssetSchema = videoassetVideoAssetSchema;
@@ -2866,72 +2836,77 @@ export const assetSchema = assetAssetSchema;
2866
2836
  * A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.
2867
2837
  */
2868
2838
  export const clipClipSchema = z.object({
2869
- asset: assetAssetSchema,
2870
- start: z.union([
2871
- z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2872
- z.union([z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2873
- ]),
2874
- length: z.union([
2875
- z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2876
- z.union([z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2877
- ]),
2878
- fit: z.optional(z.enum(["cover", "contain", "crop", "none"])),
2879
- scale: z.optional(z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
2880
- width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(3840)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2881
- height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2160)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2882
- position: z.optional(
2883
- z.enum([
2884
- "top",
2885
- "topRight",
2886
- "right",
2887
- "bottomRight",
2888
- "bottom",
2889
- "bottomLeft",
2890
- "left",
2891
- "topLeft",
2892
- "center",
2893
- ]),
2894
- ),
2895
- offset: z.optional(offsetOffsetSchema),
2896
- transition: z.optional(transitionTransitionSchema),
2897
- effect: z.optional(
2898
- z.enum([
2899
- "zoomIn",
2900
- "zoomInSlow",
2901
- "zoomInFast",
2902
- "zoomOut",
2903
- "zoomOutSlow",
2904
- "zoomOutFast",
2905
- "slideLeft",
2906
- "slideLeftSlow",
2907
- "slideLeftFast",
2908
- "slideRight",
2909
- "slideRightSlow",
2910
- "slideRightFast",
2911
- "slideUp",
2912
- "slideUpSlow",
2913
- "slideUpFast",
2914
- "slideDown",
2915
- "slideDownSlow",
2916
- "slideDownFast",
2839
+ asset: assetAssetSchema,
2840
+ start: z.union([
2841
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2842
+ z.union([z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2917
2843
  ]),
2918
- ),
2919
- filter: z.optional(
2920
- z.enum([
2921
- "none",
2922
- "blur",
2923
- "boost",
2924
- "contrast",
2925
- "darken",
2926
- "greyscale",
2927
- "lighten",
2928
- "muted",
2929
- "negative",
2844
+ length: z.union([
2845
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2846
+ z.union([z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2930
2847
  ]),
2931
- ),
2932
- opacity: z.optional(z.union([z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
2933
- transform: z.optional(transformationTransformationSchema),
2934
- alias: z.optional(z.union([z.string().regex(/^[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2848
+ fit: z.optional(z.enum([
2849
+ 'cover',
2850
+ 'contain',
2851
+ 'crop',
2852
+ 'none'
2853
+ ])),
2854
+ scale: z.optional(z.union([
2855
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2856
+ z.array(tweenTweenSchema)
2857
+ ])),
2858
+ width: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(3840)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2859
+ height: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(1).lte(2160)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2860
+ position: z.optional(z.enum([
2861
+ 'top',
2862
+ 'topRight',
2863
+ 'right',
2864
+ 'bottomRight',
2865
+ 'bottom',
2866
+ 'bottomLeft',
2867
+ 'left',
2868
+ 'topLeft',
2869
+ 'center'
2870
+ ])),
2871
+ offset: z.optional(offsetOffsetSchema),
2872
+ transition: z.optional(transitionTransitionSchema),
2873
+ effect: z.optional(z.enum([
2874
+ 'zoomIn',
2875
+ 'zoomInSlow',
2876
+ 'zoomInFast',
2877
+ 'zoomOut',
2878
+ 'zoomOutSlow',
2879
+ 'zoomOutFast',
2880
+ 'slideLeft',
2881
+ 'slideLeftSlow',
2882
+ 'slideLeftFast',
2883
+ 'slideRight',
2884
+ 'slideRightSlow',
2885
+ 'slideRightFast',
2886
+ 'slideUp',
2887
+ 'slideUpSlow',
2888
+ 'slideUpFast',
2889
+ 'slideDown',
2890
+ 'slideDownSlow',
2891
+ 'slideDownFast'
2892
+ ])),
2893
+ filter: z.optional(z.enum([
2894
+ 'none',
2895
+ 'blur',
2896
+ 'boost',
2897
+ 'contrast',
2898
+ 'darken',
2899
+ 'greyscale',
2900
+ 'lighten',
2901
+ 'muted',
2902
+ 'negative'
2903
+ ])),
2904
+ opacity: z.optional(z.union([
2905
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2906
+ z.array(tweenTweenSchema)
2907
+ ])),
2908
+ transform: z.optional(transformationTransformationSchema),
2909
+ alias: z.optional(z.union([z.string().regex(/^[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2935
2910
  }).strict();
2936
2911
 
2937
2912
  export const clipSchema = clipClipSchema;
@@ -2953,7 +2928,7 @@ const clipClipSchemaWithFitFilter = clipClipSchema.transform((clip) => {
2953
2928
  * 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.
2954
2929
  */
2955
2930
  export const trackTrackSchema = z.object({
2956
- clips: z.array(clipClipSchemaWithFitFilter).min(1),
2931
+ clips: z.array(clipClipSchemaWithFitFilter).min(1)
2957
2932
  }).strict();
2958
2933
 
2959
2934
  export const trackSchema = trackTrackSchema;
@@ -2962,11 +2937,11 @@ export const trackSchema = trackTrackSchema;
2962
2937
  * A timeline represents the contents of a video edit over time, an audio edit over time, in seconds, or an image layout. A timeline consists of layers called tracks. Tracks are composed of titles, images, audio, html or video segments referred to as clips which are placed along the track at specific starting point and lasting for a specific amount of time.
2963
2938
  */
2964
2939
  export const timelineTimelineSchema = z.object({
2965
- soundtrack: z.optional(soundtrackSoundtrackSchema),
2966
- background: z.optional(z.string()),
2967
- fonts: z.optional(z.array(fontFontSchema)),
2968
- tracks: z.array(trackTrackSchema).min(1),
2969
- cache: z.optional(z.boolean()),
2940
+ soundtrack: z.optional(soundtrackSoundtrackSchema),
2941
+ background: z.optional(z.string()),
2942
+ fonts: z.optional(z.array(fontFontSchema)),
2943
+ tracks: z.array(trackTrackSchema).min(1),
2944
+ cache: z.optional(z.boolean())
2970
2945
  }).strict();
2971
2946
 
2972
2947
  export const timelineSchema = timelineTimelineSchema;
@@ -2975,12 +2950,16 @@ export const timelineSchema = timelineTimelineSchema;
2975
2950
  * An edit defines the arrangement of a video on a timeline, an audio edit or an image design and the output format. Video assets are automatically preprocessed to fix common compatibility issues before rendering. You can control preprocessing behavior using the `transcode` flag on video assets.
2976
2951
  */
2977
2952
  export const editEditSchema = z.object({
2978
- timeline: timelineTimelineSchema,
2979
- output: outputOutputSchema,
2980
- merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2981
- callback: z.optional(z.string()),
2982
- disk: z.optional(z.enum(["local", "mount"])),
2983
- instance: z.optional(z.enum(["s1", "s2", "a1"])),
2953
+ timeline: timelineTimelineSchema,
2954
+ output: outputOutputSchema,
2955
+ merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2956
+ callback: z.optional(z.string()),
2957
+ disk: z.optional(z.enum(['local', 'mount'])),
2958
+ instance: z.optional(z.enum([
2959
+ 's1',
2960
+ 's2',
2961
+ 'a1'
2962
+ ]))
2984
2963
  }).strict();
2985
2964
 
2986
2965
  export const editSchema = editEditSchema;
@@ -2989,39 +2968,44 @@ export const editSchema = editEditSchema;
2989
2968
  * The response data returned with the [RenderResponse](#tocs_renderresponse) including status and URL.
2990
2969
  */
2991
2970
  export const renderresponsedataRenderResponseDataSchema = z.object({
2992
- id: z.string(),
2993
- owner: z.string(),
2994
- plan: z.optional(z.string()),
2995
- status: z.enum([
2996
- "queued",
2997
- "fetching",
2998
- "preprocessing",
2999
- "rendering",
3000
- "saving",
3001
- "done",
3002
- "failed",
3003
- ]),
3004
- error: z.optional(z.string()),
3005
- duration: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3006
- renderTime: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3007
- url: z.optional(z.string()),
3008
- poster: z.optional(z.union([z.string(), z.null()])),
3009
- thumbnail: z.optional(z.union([z.string(), z.null()])),
3010
- data: z.optional(editEditSchema),
3011
- created: z.optional(z.string()),
3012
- updated: z.optional(z.string()),
3013
- }).strict();
3014
-
3015
- export const renderResponseDataSchema =
3016
- renderresponsedataRenderResponseDataSchema;
2971
+ id: z.string(),
2972
+ owner: z.string(),
2973
+ plan: z.optional(z.string()),
2974
+ status: z.enum([
2975
+ 'queued',
2976
+ 'fetching',
2977
+ 'preprocessing',
2978
+ 'rendering',
2979
+ 'saving',
2980
+ 'done',
2981
+ 'failed'
2982
+ ]),
2983
+ error: z.optional(z.string()),
2984
+ duration: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2985
+ renderTime: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2986
+ url: z.optional(z.string()),
2987
+ poster: z.optional(z.union([
2988
+ z.string(),
2989
+ z.null()
2990
+ ])),
2991
+ thumbnail: z.optional(z.union([
2992
+ z.string(),
2993
+ z.null()
2994
+ ])),
2995
+ data: z.optional(editEditSchema),
2996
+ created: z.optional(z.string()),
2997
+ updated: z.optional(z.string())
2998
+ }).strict();
2999
+
3000
+ export const renderResponseDataSchema = renderresponsedataRenderResponseDataSchema;
3017
3001
 
3018
3002
  /**
3019
3003
  * The response received after a [render status request](#get-render-status) is submitted. The response includes details about status of a render and the output URL.
3020
3004
  */
3021
3005
  export const renderresponseRenderResponseSchema = z.object({
3022
- success: z.boolean(),
3023
- message: z.string(),
3024
- response: renderresponsedataRenderResponseDataSchema,
3006
+ success: z.boolean(),
3007
+ message: z.string(),
3008
+ response: renderresponsedataRenderResponseDataSchema
3025
3009
  }).strict();
3026
3010
 
3027
3011
  export const renderResponseSchema = renderresponseRenderResponseSchema;
@@ -3030,41 +3014,39 @@ export const renderResponseSchema = renderresponseRenderResponseSchema;
3030
3014
  * The response data returned with the [TemplateDataResponse](#tocs_templatedataresponse).
3031
3015
  */
3032
3016
  export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
3033
- id: z.string(),
3034
- name: z.string(),
3035
- owner: z.string(),
3036
- template: editEditSchema,
3017
+ id: z.string(),
3018
+ name: z.string(),
3019
+ owner: z.string(),
3020
+ template: editEditSchema
3037
3021
  }).strict();
3038
3022
 
3039
- export const templateDataResponseDataSchema =
3040
- templatedataresponsedataTemplateDataResponseDataSchema;
3023
+ export const templateDataResponseDataSchema = templatedataresponsedataTemplateDataResponseDataSchema;
3041
3024
 
3042
3025
  /**
3043
3026
  * The template data including the template name and [Edit](#tocs_edit).
3044
3027
  */
3045
3028
  export const templatedataresponseTemplateDataResponseSchema = z.object({
3046
- success: z.boolean(),
3047
- message: z.string(),
3048
- response: templatedataresponsedataTemplateDataResponseDataSchema,
3029
+ success: z.boolean(),
3030
+ message: z.string(),
3031
+ response: templatedataresponsedataTemplateDataResponseDataSchema
3049
3032
  }).strict();
3050
3033
 
3051
- export const templateDataResponseSchema =
3052
- templatedataresponseTemplateDataResponseSchema;
3034
+ export const templateDataResponseSchema = templatedataresponseTemplateDataResponseSchema;
3053
3035
 
3054
3036
  /**
3055
3037
  * A template is a saved [Edit](#tocs_edit) than can be loaded and re-used.
3056
3038
  */
3057
3039
  export const templateTemplateSchema = z.object({
3058
- name: z.string(),
3059
- template: z.optional(editEditSchema),
3040
+ name: z.string(),
3041
+ template: z.optional(editEditSchema)
3060
3042
  }).strict();
3061
3043
 
3062
3044
  export const templateSchema = templateTemplateSchema;
3063
3045
 
3064
3046
  export const postRenderRequest = z.object({
3065
- body: editEditSchema,
3066
- path: z.optional(z.never()),
3067
- query: z.optional(z.never()),
3047
+ body: editEditSchema,
3048
+ path: z.optional(z.never()),
3049
+ query: z.optional(z.never())
3068
3050
  }).strict();
3069
3051
 
3070
3052
  /**
@@ -3073,20 +3055,14 @@ export const postRenderRequest = z.object({
3073
3055
  export const postRenderResponse = queuedresponseQueuedResponseSchema;
3074
3056
 
3075
3057
  export const getRenderRequest = z.object({
3076
- body: z.optional(z.never()),
3077
- path: z.object({
3078
- id: z
3079
- .string()
3080
- .regex(
3081
- /^[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}$/,
3082
- ),
3083
- }),
3084
- query: z.optional(
3085
- z.object({
3086
- data: z.optional(z.boolean()),
3087
- merged: z.optional(z.boolean()),
3058
+ body: z.optional(z.never()),
3059
+ path: z.object({
3060
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3088
3061
  }),
3089
- ),
3062
+ query: z.optional(z.object({
3063
+ data: z.optional(z.boolean()),
3064
+ merged: z.optional(z.boolean())
3065
+ }))
3090
3066
  }).strict();
3091
3067
 
3092
3068
  /**
@@ -3095,21 +3071,20 @@ export const getRenderRequest = z.object({
3095
3071
  export const getRenderResponse = renderresponseRenderResponseSchema;
3096
3072
 
3097
3073
  export const getTemplatesRequest = z.object({
3098
- body: z.optional(z.never()),
3099
- path: z.optional(z.never()),
3100
- query: z.optional(z.never()),
3074
+ body: z.optional(z.never()),
3075
+ path: z.optional(z.never()),
3076
+ query: z.optional(z.never())
3101
3077
  }).strict();
3102
3078
 
3103
3079
  /**
3104
3080
  * The list of templates stored against a users account
3105
3081
  */
3106
- export const getTemplatesResponse =
3107
- templatelistresponseTemplateListResponseSchema;
3082
+ export const getTemplatesResponse = templatelistresponseTemplateListResponseSchema;
3108
3083
 
3109
3084
  export const postTemplateRequest = z.object({
3110
- body: templateTemplateSchema,
3111
- path: z.optional(z.never()),
3112
- query: z.optional(z.never()),
3085
+ body: templateTemplateSchema,
3086
+ path: z.optional(z.never()),
3087
+ query: z.optional(z.never())
3113
3088
  }).strict();
3114
3089
 
3115
3090
  /**
@@ -3118,15 +3093,11 @@ export const postTemplateRequest = z.object({
3118
3093
  export const postTemplateResponse = templateresponseTemplateResponseSchema;
3119
3094
 
3120
3095
  export const deleteTemplateRequest = z.object({
3121
- body: z.optional(z.never()),
3122
- path: z.object({
3123
- id: z
3124
- .string()
3125
- .regex(
3126
- /^[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}$/,
3127
- ),
3128
- }),
3129
- query: z.optional(z.never()),
3096
+ body: z.optional(z.never()),
3097
+ path: z.object({
3098
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3099
+ }),
3100
+ query: z.optional(z.never())
3130
3101
  }).strict();
3131
3102
 
3132
3103
  /**
@@ -3135,33 +3106,24 @@ export const deleteTemplateRequest = z.object({
3135
3106
  export const deleteTemplateResponse = z.void();
3136
3107
 
3137
3108
  export const getTemplateRequest = z.object({
3138
- body: z.optional(z.never()),
3139
- path: z.object({
3140
- id: z
3141
- .string()
3142
- .regex(
3143
- /^[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}$/,
3144
- ),
3145
- }),
3146
- query: z.optional(z.never()),
3109
+ body: z.optional(z.never()),
3110
+ path: z.object({
3111
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3112
+ }),
3113
+ query: z.optional(z.never())
3147
3114
  }).strict();
3148
3115
 
3149
3116
  /**
3150
3117
  * The template details including the [Edit](#tocs_edit)
3151
3118
  */
3152
- export const getTemplateResponse =
3153
- templatedataresponseTemplateDataResponseSchema;
3119
+ export const getTemplateResponse = templatedataresponseTemplateDataResponseSchema;
3154
3120
 
3155
3121
  export const putTemplateRequest = z.object({
3156
- body: templateTemplateSchema,
3157
- path: z.object({
3158
- id: z
3159
- .string()
3160
- .regex(
3161
- /^[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}$/,
3162
- ),
3163
- }),
3164
- query: z.optional(z.never()),
3122
+ body: templateTemplateSchema,
3123
+ path: z.object({
3124
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3125
+ }),
3126
+ query: z.optional(z.never())
3165
3127
  }).strict();
3166
3128
 
3167
3129
  /**
@@ -3170,9 +3132,9 @@ export const putTemplateRequest = z.object({
3170
3132
  export const putTemplateResponse = templateresponseTemplateResponseSchema;
3171
3133
 
3172
3134
  export const postTemplateRenderRequest = z.object({
3173
- body: templaterenderTemplateRenderSchema,
3174
- path: z.optional(z.never()),
3175
- query: z.optional(z.never()),
3135
+ body: templaterenderTemplateRenderSchema,
3136
+ path: z.optional(z.never()),
3137
+ query: z.optional(z.never())
3176
3138
  }).strict();
3177
3139
 
3178
3140
  /**
@@ -3181,11 +3143,11 @@ export const postTemplateRenderRequest = z.object({
3181
3143
  export const postTemplateRenderResponse = queuedresponseQueuedResponseSchema;
3182
3144
 
3183
3145
  export const probeRequest = z.object({
3184
- body: z.optional(z.never()),
3185
- path: z.object({
3186
- url: z.string(),
3187
- }),
3188
- query: z.optional(z.never()),
3146
+ body: z.optional(z.never()),
3147
+ path: z.object({
3148
+ url: z.string()
3149
+ }),
3150
+ query: z.optional(z.never())
3189
3151
  }).strict();
3190
3152
 
3191
3153
  /**
@@ -3194,15 +3156,11 @@ export const probeRequest = z.object({
3194
3156
  export const probeResponse = proberesponseProbeResponseSchema;
3195
3157
 
3196
3158
  export const deleteAssetRequest = z.object({
3197
- body: z.optional(z.never()),
3198
- path: z.object({
3199
- id: z
3200
- .string()
3201
- .regex(
3202
- /^[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}$/,
3203
- ),
3204
- }),
3205
- query: z.optional(z.never()),
3159
+ body: z.optional(z.never()),
3160
+ path: z.object({
3161
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3162
+ }),
3163
+ query: z.optional(z.never())
3206
3164
  }).strict();
3207
3165
 
3208
3166
  /**
@@ -3211,15 +3169,11 @@ export const deleteAssetRequest = z.object({
3211
3169
  export const deleteAssetResponse = z.void();
3212
3170
 
3213
3171
  export const getAssetRequest = z.object({
3214
- body: z.optional(z.never()),
3215
- path: z.object({
3216
- id: z
3217
- .string()
3218
- .regex(
3219
- /^[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}$/,
3220
- ),
3221
- }),
3222
- query: z.optional(z.never()),
3172
+ body: z.optional(z.never()),
3173
+ path: z.object({
3174
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3175
+ }),
3176
+ query: z.optional(z.never())
3223
3177
  }).strict();
3224
3178
 
3225
3179
  /**
@@ -3228,27 +3182,22 @@ export const getAssetRequest = z.object({
3228
3182
  export const getAssetResponse = assetresponseAssetResponseSchema;
3229
3183
 
3230
3184
  export const getAssetByRenderIdRequest = z.object({
3231
- body: z.optional(z.never()),
3232
- path: z.object({
3233
- id: z
3234
- .string()
3235
- .regex(
3236
- /^[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}$/,
3237
- ),
3238
- }),
3239
- query: z.optional(z.never()),
3185
+ body: z.optional(z.never()),
3186
+ path: z.object({
3187
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3188
+ }),
3189
+ query: z.optional(z.never())
3240
3190
  }).strict();
3241
3191
 
3242
3192
  /**
3243
3193
  * Get one or more assets by render id
3244
3194
  */
3245
- export const getAssetByRenderIdResponse =
3246
- assetrenderresponseAssetRenderResponseSchema;
3195
+ export const getAssetByRenderIdResponse = assetrenderresponseAssetRenderResponseSchema;
3247
3196
 
3248
3197
  export const postServeAssetRequest = z.object({
3249
- body: transferTransferSchema,
3250
- path: z.optional(z.never()),
3251
- query: z.optional(z.never()),
3198
+ body: transferTransferSchema,
3199
+ path: z.optional(z.never()),
3200
+ query: z.optional(z.never())
3252
3201
  }).strict();
3253
3202
 
3254
3203
  /**
@@ -3257,9 +3206,9 @@ export const postServeAssetRequest = z.object({
3257
3206
  export const postServeAssetResponse = transferresponseTransferResponseSchema;
3258
3207
 
3259
3208
  export const getSourcesRequest = z.object({
3260
- body: z.optional(z.never()),
3261
- path: z.optional(z.never()),
3262
- query: z.optional(z.never()),
3209
+ body: z.optional(z.never()),
3210
+ path: z.optional(z.never()),
3211
+ query: z.optional(z.never())
3263
3212
  }).strict();
3264
3213
 
3265
3214
  /**
@@ -3268,27 +3217,22 @@ export const getSourcesRequest = z.object({
3268
3217
  export const getSourcesResponse = sourcelistresponseSourceListResponseSchema;
3269
3218
 
3270
3219
  export const postSourceRequest = z.object({
3271
- body: sourceSourceSchema,
3272
- path: z.optional(z.never()),
3273
- query: z.optional(z.never()),
3220
+ body: sourceSourceSchema,
3221
+ path: z.optional(z.never()),
3222
+ query: z.optional(z.never())
3274
3223
  }).strict();
3275
3224
 
3276
3225
  /**
3277
3226
  * The queued source file details
3278
3227
  */
3279
- export const postSourceResponse =
3280
- queuedsourceresponseQueuedSourceResponseSchema;
3228
+ export const postSourceResponse = queuedsourceresponseQueuedSourceResponseSchema;
3281
3229
 
3282
3230
  export const deleteSourceRequest = z.object({
3283
- body: z.optional(z.never()),
3284
- path: z.object({
3285
- id: z
3286
- .string()
3287
- .regex(
3288
- /^[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}$/,
3289
- ),
3290
- }),
3291
- query: z.optional(z.never()),
3231
+ body: z.optional(z.never()),
3232
+ path: z.object({
3233
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3234
+ }),
3235
+ query: z.optional(z.never())
3292
3236
  }).strict();
3293
3237
 
3294
3238
  /**
@@ -3297,15 +3241,11 @@ export const deleteSourceRequest = z.object({
3297
3241
  export const deleteSourceResponse = z.void();
3298
3242
 
3299
3243
  export const getSourceRequest = z.object({
3300
- body: z.optional(z.never()),
3301
- path: z.object({
3302
- id: z
3303
- .string()
3304
- .regex(
3305
- /^[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}$/,
3306
- ),
3307
- }),
3308
- query: z.optional(z.never()),
3244
+ body: z.optional(z.never()),
3245
+ path: z.object({
3246
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3247
+ }),
3248
+ query: z.optional(z.never())
3309
3249
  }).strict();
3310
3250
 
3311
3251
  /**
@@ -3314,9 +3254,9 @@ export const getSourceRequest = z.object({
3314
3254
  export const getSourceResponse = sourceresponseSourceResponseSchema;
3315
3255
 
3316
3256
  export const getUploadSignedUrlRequest = z.object({
3317
- body: z.optional(z.never()),
3318
- path: z.optional(z.never()),
3319
- query: z.optional(z.never()),
3257
+ body: z.optional(z.never()),
3258
+ path: z.optional(z.never()),
3259
+ query: z.optional(z.never())
3320
3260
  }).strict();
3321
3261
 
3322
3262
  /**
@@ -3325,31 +3265,25 @@ export const getUploadSignedUrlRequest = z.object({
3325
3265
  export const getUploadSignedUrlResponse = uploadresponseUploadResponseSchema;
3326
3266
 
3327
3267
  export const postGenerateAssetRequest = z.object({
3328
- body: generatedAssetGeneratedAssetSchema,
3329
- path: z.optional(z.never()),
3330
- query: z.optional(z.never()),
3268
+ body: generatedAssetGeneratedAssetSchema,
3269
+ path: z.optional(z.never()),
3270
+ query: z.optional(z.never())
3331
3271
  }).strict();
3332
3272
 
3333
3273
  /**
3334
3274
  * The generated asset details
3335
3275
  */
3336
- export const postGenerateAssetResponse =
3337
- generatedAssetResponseGeneratedAssetResponseSchema;
3276
+ export const postGenerateAssetResponse = generatedAssetResponseGeneratedAssetResponseSchema;
3338
3277
 
3339
3278
  export const getGeneratedAssetRequest = z.object({
3340
- body: z.optional(z.never()),
3341
- path: z.object({
3342
- id: z
3343
- .string()
3344
- .regex(
3345
- /^[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}$/,
3346
- ),
3347
- }),
3348
- query: z.optional(z.never()),
3279
+ body: z.optional(z.never()),
3280
+ path: z.object({
3281
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3282
+ }),
3283
+ query: z.optional(z.never())
3349
3284
  }).strict();
3350
3285
 
3351
3286
  /**
3352
3287
  * The generated asset details
3353
3288
  */
3354
- export const getGeneratedAssetResponse =
3355
- generatedAssetResponseGeneratedAssetResponseSchema;
3289
+ export const getGeneratedAssetResponse = generatedAssetResponseGeneratedAssetResponseSchema;