@shotstack/schemas 1.4.7 → 1.5.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.
- package/dist/zod/zod.gen.cjs +343 -403
- package/dist/zod/zod.gen.d.ts +3989 -4338
- package/dist/zod/zod.gen.js +343 -403
- package/dist/zod/zod.gen.ts +354 -409
- package/package.json +7 -2
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -39,10 +39,10 @@ export const uploadRootSchema = z.unknown();
|
|
|
39
39
|
*/
|
|
40
40
|
export const captionpropertiesCaptionBackgroundSchema = z.object({
|
|
41
41
|
color: z.optional(z.string()),
|
|
42
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
43
|
-
padding: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
44
|
-
borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
45
|
-
});
|
|
42
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
43
|
+
padding: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
44
|
+
borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
45
|
+
}).strict();
|
|
46
46
|
|
|
47
47
|
export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
|
|
48
48
|
|
|
@@ -52,12 +52,12 @@ export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
|
|
|
52
52
|
export const captionpropertiesCaptionFontSchema = z.object({
|
|
53
53
|
family: z.optional(z.string()),
|
|
54
54
|
color: z.optional(z.string()),
|
|
55
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
56
|
-
size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
57
|
-
lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
55
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
56
|
+
size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
57
|
+
lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
58
58
|
stroke: z.optional(z.string()),
|
|
59
|
-
strokeWidth: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
60
|
-
});
|
|
59
|
+
strokeWidth: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
60
|
+
}).strict();
|
|
61
61
|
|
|
62
62
|
export const captionFontSchema = captionpropertiesCaptionFontSchema;
|
|
63
63
|
|
|
@@ -65,10 +65,10 @@ 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.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
69
|
-
left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
70
|
-
right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
71
|
-
});
|
|
68
|
+
top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
69
|
+
left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
70
|
+
right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
71
|
+
}).strict();
|
|
72
72
|
|
|
73
73
|
export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
74
74
|
|
|
@@ -86,13 +86,13 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
|
86
86
|
*/
|
|
87
87
|
export const captionassetCaptionAssetSchema = z.object({
|
|
88
88
|
type: z.enum(["caption"]),
|
|
89
|
-
src: z.string().min(1).regex(/\S/),
|
|
89
|
+
src: z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
|
|
90
90
|
font: z.optional(captionpropertiesCaptionFontSchema),
|
|
91
91
|
background: z.optional(captionpropertiesCaptionBackgroundSchema),
|
|
92
92
|
margin: z.optional(captionpropertiesCaptionMarginSchema),
|
|
93
|
-
trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
94
|
-
speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
95
|
-
});
|
|
93
|
+
trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
94
|
+
speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
|
|
95
|
+
}).strict();
|
|
96
96
|
|
|
97
97
|
export const captionAssetSchema = captionassetCaptionAssetSchema;
|
|
98
98
|
|
|
@@ -101,9 +101,9 @@ export const captionAssetSchema = captionassetCaptionAssetSchema;
|
|
|
101
101
|
*/
|
|
102
102
|
export const chromakeyChromaKeySchema = z.object({
|
|
103
103
|
color: z.string().regex(/^#[0-9a-fA-F]{6}$/),
|
|
104
|
-
threshold: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(0).lte(250))),
|
|
105
|
-
halo: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(0).lte(250))),
|
|
106
|
-
});
|
|
104
|
+
threshold: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(0).lte(250)))),
|
|
105
|
+
halo: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(0).lte(250)))),
|
|
106
|
+
}).strict();
|
|
107
107
|
|
|
108
108
|
export const chromaKeySchema = chromakeyChromaKeySchema;
|
|
109
109
|
|
|
@@ -115,7 +115,7 @@ export const didTextToAvatarOptionsDidTextToAvatarOptionsSchema = z.object({
|
|
|
115
115
|
text: z.string(),
|
|
116
116
|
avatar: z.enum(["jack", "lana", "lily", "matt", "rian"]),
|
|
117
117
|
background: z.optional(z.string()),
|
|
118
|
-
});
|
|
118
|
+
}).strict();
|
|
119
119
|
|
|
120
120
|
export const didTextToAvatarOptionsSchema =
|
|
121
121
|
didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
|
|
@@ -127,11 +127,7 @@ export const didTextToAvatarOptionsSchema =
|
|
|
127
127
|
* <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
|
|
128
128
|
* </ul>
|
|
129
129
|
*/
|
|
130
|
-
export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = z
|
|
131
|
-
.object({
|
|
132
|
-
type: z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions"),
|
|
133
|
-
})
|
|
134
|
-
.and(didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
|
|
130
|
+
export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = didTextToAvatarOptionsDidTextToAvatarOptionsSchema.extend({ type: z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions") }).strict();
|
|
135
131
|
|
|
136
132
|
export const didGeneratedAssetOptionsSchema =
|
|
137
133
|
didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
|
|
@@ -142,7 +138,7 @@ export const didGeneratedAssetOptionsSchema =
|
|
|
142
138
|
export const didGeneratedAssetDidGeneratedAssetSchema = z.object({
|
|
143
139
|
provider: z.enum(["d-id"]),
|
|
144
140
|
options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
|
|
145
|
-
});
|
|
141
|
+
}).strict();
|
|
146
142
|
|
|
147
143
|
export const didGeneratedAssetSchema = didGeneratedAssetDidGeneratedAssetSchema;
|
|
148
144
|
|
|
@@ -164,7 +160,7 @@ export const elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema =
|
|
|
164
160
|
"Rachel",
|
|
165
161
|
"Sam",
|
|
166
162
|
]),
|
|
167
|
-
});
|
|
163
|
+
}).strict();
|
|
168
164
|
|
|
169
165
|
export const elevenLabsTextToSpeechOptionsSchema =
|
|
170
166
|
elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
|
|
@@ -177,13 +173,7 @@ export const elevenLabsTextToSpeechOptionsSchema =
|
|
|
177
173
|
* </ul>
|
|
178
174
|
*/
|
|
179
175
|
export const elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema =
|
|
180
|
-
z
|
|
181
|
-
.object({
|
|
182
|
-
type: z.literal(
|
|
183
|
-
"elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions",
|
|
184
|
-
),
|
|
185
|
-
})
|
|
186
|
-
.and(elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
|
|
176
|
+
elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema.extend({ type: z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions") }).strict();
|
|
187
177
|
|
|
188
178
|
export const elevenLabsGeneratedAssetOptionsSchema =
|
|
189
179
|
elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
|
|
@@ -194,7 +184,7 @@ export const elevenLabsGeneratedAssetOptionsSchema =
|
|
|
194
184
|
export const elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = z.object({
|
|
195
185
|
provider: z.enum(["elevenlabs"]),
|
|
196
186
|
options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
|
|
197
|
-
});
|
|
187
|
+
}).strict();
|
|
198
188
|
|
|
199
189
|
export const elevenLabsGeneratedAssetSchema =
|
|
200
190
|
elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
|
|
@@ -323,7 +313,7 @@ export const heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema =
|
|
|
323
313
|
background: z.optional(z.string()),
|
|
324
314
|
ratio: z.optional(z.enum(["16:9", "9:16"])),
|
|
325
315
|
test: z.optional(z.boolean()),
|
|
326
|
-
});
|
|
316
|
+
}).strict();
|
|
327
317
|
|
|
328
318
|
export const heyGenTextToAvatarOptionsSchema =
|
|
329
319
|
heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
|
|
@@ -335,11 +325,7 @@ export const heyGenTextToAvatarOptionsSchema =
|
|
|
335
325
|
* <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
|
|
336
326
|
* </ul>
|
|
337
327
|
*/
|
|
338
|
-
export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = z
|
|
339
|
-
.object({
|
|
340
|
-
type: z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions"),
|
|
341
|
-
})
|
|
342
|
-
.and(heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
|
|
328
|
+
export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema.extend({ type: z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions") }).strict();
|
|
343
329
|
|
|
344
330
|
export const heyGenGeneratedAssetOptionsSchema =
|
|
345
331
|
heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
|
|
@@ -350,7 +336,7 @@ export const heyGenGeneratedAssetOptionsSchema =
|
|
|
350
336
|
export const heygenGeneratedAssetHeyGenGeneratedAssetSchema = z.object({
|
|
351
337
|
provider: z.enum(["heygen"]),
|
|
352
338
|
options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
|
|
353
|
-
});
|
|
339
|
+
}).strict();
|
|
354
340
|
|
|
355
341
|
export const heyGenGeneratedAssetSchema =
|
|
356
342
|
heygenGeneratedAssetHeyGenGeneratedAssetSchema;
|
|
@@ -364,7 +350,7 @@ export const openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema =
|
|
|
364
350
|
prompt: z.string(),
|
|
365
351
|
model: z.enum(["gpt-3.5-turbo", "gpt-4"]),
|
|
366
352
|
systemPrompt: z.optional(z.string()),
|
|
367
|
-
});
|
|
353
|
+
}).strict();
|
|
368
354
|
|
|
369
355
|
export const openAiTextGeneratorOptionsSchema =
|
|
370
356
|
openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
|
|
@@ -376,11 +362,7 @@ export const openAiTextGeneratorOptionsSchema =
|
|
|
376
362
|
* <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
|
|
377
363
|
* </ul>
|
|
378
364
|
*/
|
|
379
|
-
export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = z
|
|
380
|
-
.object({
|
|
381
|
-
type: z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions"),
|
|
382
|
-
})
|
|
383
|
-
.and(openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
|
|
365
|
+
export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema.extend({ type: z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions") }).strict();
|
|
384
366
|
|
|
385
367
|
export const openAiGeneratedAssetOptionsSchema =
|
|
386
368
|
openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
|
|
@@ -391,7 +373,7 @@ export const openAiGeneratedAssetOptionsSchema =
|
|
|
391
373
|
export const openaiGeneratedAssetOpenAiGeneratedAssetSchema = z.object({
|
|
392
374
|
provider: z.enum(["openai"]),
|
|
393
375
|
options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
|
|
394
|
-
});
|
|
376
|
+
}).strict();
|
|
395
377
|
|
|
396
378
|
export const openAiGeneratedAssetSchema =
|
|
397
379
|
openaiGeneratedAssetOpenAiGeneratedAssetSchema;
|
|
@@ -404,7 +386,7 @@ export const generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchem
|
|
|
404
386
|
status: z.string(),
|
|
405
387
|
title: z.string(),
|
|
406
388
|
detail: z.string(),
|
|
407
|
-
});
|
|
389
|
+
}).strict();
|
|
408
390
|
|
|
409
391
|
export const generatedAssetErrorResponseDataSchema =
|
|
410
392
|
generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
|
|
@@ -417,7 +399,7 @@ export const generatedAssetErrorResponseGeneratedAssetErrorResponseSchema =
|
|
|
417
399
|
errors: z.array(
|
|
418
400
|
generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema,
|
|
419
401
|
),
|
|
420
|
-
});
|
|
402
|
+
}).strict();
|
|
421
403
|
|
|
422
404
|
export const generatedAssetErrorResponseSchema =
|
|
423
405
|
generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
|
|
@@ -434,7 +416,7 @@ export const generatedAssetResponseAttributesGeneratedAssetResponseAttributesSch
|
|
|
434
416
|
status: z.enum(["queued", "processing", "saving", "done", "failed"]),
|
|
435
417
|
created: z.string(),
|
|
436
418
|
updated: z.string(),
|
|
437
|
-
});
|
|
419
|
+
}).strict();
|
|
438
420
|
|
|
439
421
|
export const generatedAssetResponseAttributesSchema =
|
|
440
422
|
generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
|
|
@@ -448,7 +430,7 @@ export const generatedAssetResponseDataGeneratedAssetResponseDataSchema =
|
|
|
448
430
|
id: z.string(),
|
|
449
431
|
attributes:
|
|
450
432
|
generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
|
|
451
|
-
});
|
|
433
|
+
}).strict();
|
|
452
434
|
|
|
453
435
|
export const generatedAssetResponseDataSchema =
|
|
454
436
|
generatedAssetResponseDataGeneratedAssetResponseDataSchema;
|
|
@@ -458,7 +440,7 @@ export const generatedAssetResponseDataSchema =
|
|
|
458
440
|
*/
|
|
459
441
|
export const generatedAssetResponseGeneratedAssetResponseSchema = z.object({
|
|
460
442
|
data: generatedAssetResponseDataGeneratedAssetResponseDataSchema,
|
|
461
|
-
});
|
|
443
|
+
}).strict();
|
|
462
444
|
|
|
463
445
|
export const generatedAssetResponseSchema =
|
|
464
446
|
generatedAssetResponseGeneratedAssetResponseSchema;
|
|
@@ -470,9 +452,9 @@ export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema =
|
|
|
470
452
|
z.object({
|
|
471
453
|
type: z.enum(["image-to-video"]),
|
|
472
454
|
imageUrl: z.string(),
|
|
473
|
-
guidanceScale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(1.8),
|
|
474
|
-
motion: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())).default(127),
|
|
475
|
-
});
|
|
455
|
+
guidanceScale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(1.8),
|
|
456
|
+
motion: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))).default(127),
|
|
457
|
+
}).strict();
|
|
476
458
|
|
|
477
459
|
export const shotstackImageToVideoOptionsSchema =
|
|
478
460
|
shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
|
|
@@ -484,7 +466,7 @@ export const shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema =
|
|
|
484
466
|
z.object({
|
|
485
467
|
type: z.enum(["text-generator"]),
|
|
486
468
|
prompt: z.string(),
|
|
487
|
-
});
|
|
469
|
+
}).strict();
|
|
488
470
|
|
|
489
471
|
export const shotstackTextGeneratorOptionsSchema =
|
|
490
472
|
shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
|
|
@@ -496,9 +478,9 @@ export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema =
|
|
|
496
478
|
z.object({
|
|
497
479
|
type: z.enum(["text-to-image"]),
|
|
498
480
|
prompt: z.string(),
|
|
499
|
-
width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
|
|
500
|
-
height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
|
|
501
|
-
});
|
|
481
|
+
width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
482
|
+
height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
483
|
+
}).strict();
|
|
502
484
|
|
|
503
485
|
export const shotstackTextToImageOptionsSchema =
|
|
504
486
|
shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
|
|
@@ -603,7 +585,7 @@ export const shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema =
|
|
|
603
585
|
]),
|
|
604
586
|
),
|
|
605
587
|
newscaster: z.optional(z.boolean()).default(false),
|
|
606
|
-
});
|
|
588
|
+
}).strict();
|
|
607
589
|
|
|
608
590
|
export const shotstackTextToSpeechOptionsSchema =
|
|
609
591
|
shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
|
|
@@ -613,34 +595,10 @@ export const shotstackTextToSpeechOptionsSchema =
|
|
|
613
595
|
*/
|
|
614
596
|
export const shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema =
|
|
615
597
|
z.union([
|
|
616
|
-
z
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
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),
|
|
598
|
+
shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema.extend({ type: z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions") }).strict(),
|
|
599
|
+
shotstackTextToImageOptionsShotstackTextToImageOptionsSchema.extend({ type: z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions") }).strict(),
|
|
600
|
+
shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema.extend({ type: z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions") }).strict(),
|
|
601
|
+
shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema.extend({ type: z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions") }).strict(),
|
|
644
602
|
]);
|
|
645
603
|
|
|
646
604
|
export const shotstackGeneratedAssetOptionsSchema =
|
|
@@ -652,7 +610,7 @@ export const shotstackGeneratedAssetOptionsSchema =
|
|
|
652
610
|
export const shotstackGeneratedAssetShotstackGeneratedAssetSchema = z.object({
|
|
653
611
|
provider: z.enum(["shotstack"]),
|
|
654
612
|
options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
|
|
655
|
-
});
|
|
613
|
+
}).strict();
|
|
656
614
|
|
|
657
615
|
export const shotstackGeneratedAssetSchema =
|
|
658
616
|
shotstackGeneratedAssetShotstackGeneratedAssetSchema;
|
|
@@ -673,11 +631,11 @@ export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema =
|
|
|
673
631
|
"stable-diffusion-xl-beta-v2-2-2",
|
|
674
632
|
]),
|
|
675
633
|
),
|
|
676
|
-
width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
|
|
677
|
-
height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
|
|
678
|
-
steps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())).default(30),
|
|
679
|
-
seed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())).default(0),
|
|
680
|
-
cfgScale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(7),
|
|
634
|
+
width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
635
|
+
height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
636
|
+
steps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))).default(30),
|
|
637
|
+
seed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))).default(0),
|
|
638
|
+
cfgScale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(7),
|
|
681
639
|
stylePreset: z.optional(
|
|
682
640
|
z.enum([
|
|
683
641
|
"3d-model",
|
|
@@ -699,7 +657,7 @@ export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema =
|
|
|
699
657
|
"tile-texture",
|
|
700
658
|
]),
|
|
701
659
|
),
|
|
702
|
-
});
|
|
660
|
+
}).strict();
|
|
703
661
|
|
|
704
662
|
export const stabilityAiTextToImageOptionsSchema =
|
|
705
663
|
stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
|
|
@@ -712,13 +670,7 @@ export const stabilityAiTextToImageOptionsSchema =
|
|
|
712
670
|
* </ul>
|
|
713
671
|
*/
|
|
714
672
|
export const stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema =
|
|
715
|
-
z
|
|
716
|
-
.object({
|
|
717
|
-
type: z.literal(
|
|
718
|
-
"stabilityAiTextToImageOptions_StabilityAiTextToImageOptions",
|
|
719
|
-
),
|
|
720
|
-
})
|
|
721
|
-
.and(stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
|
|
673
|
+
stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema.extend({ type: z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions") }).strict();
|
|
722
674
|
|
|
723
675
|
export const stabilityAiGeneratedAssetOptionsSchema =
|
|
724
676
|
stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
|
|
@@ -731,7 +683,7 @@ export const stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema =
|
|
|
731
683
|
provider: z.enum(["stability-ai"]),
|
|
732
684
|
options:
|
|
733
685
|
stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
|
|
734
|
-
});
|
|
686
|
+
}).strict();
|
|
735
687
|
|
|
736
688
|
export const stabilityAiGeneratedAssetSchema =
|
|
737
689
|
stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
|
|
@@ -740,38 +692,12 @@ export const stabilityAiGeneratedAssetSchema =
|
|
|
740
692
|
* 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
693
|
*/
|
|
742
694
|
export const generatedAssetGeneratedAssetSchema = z.union([
|
|
743
|
-
z
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
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),
|
|
695
|
+
shotstackGeneratedAssetShotstackGeneratedAssetSchema.extend({ provider: z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset") }).strict(),
|
|
696
|
+
didGeneratedAssetDidGeneratedAssetSchema.extend({ provider: z.literal("didGeneratedAsset_DIDGeneratedAsset") }).strict(),
|
|
697
|
+
elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema.extend({ provider: z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset") }).strict(),
|
|
698
|
+
heygenGeneratedAssetHeyGenGeneratedAssetSchema.extend({ provider: z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset") }).strict(),
|
|
699
|
+
openaiGeneratedAssetOpenAiGeneratedAssetSchema.extend({ provider: z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset") }).strict(),
|
|
700
|
+
stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema.extend({ provider: z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset") }).strict(),
|
|
775
701
|
]);
|
|
776
702
|
|
|
777
703
|
export const generatedAssetSchema = generatedAssetGeneratedAssetSchema;
|
|
@@ -780,11 +706,11 @@ export const generatedAssetSchema = generatedAssetGeneratedAssetSchema;
|
|
|
780
706
|
* 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
707
|
*/
|
|
782
708
|
export const cropCropSchema = z.object({
|
|
783
|
-
top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
|
|
784
|
-
bottom: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
|
|
785
|
-
left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
|
|
786
|
-
right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
|
|
787
|
-
});
|
|
709
|
+
top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))),
|
|
710
|
+
bottom: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))),
|
|
711
|
+
left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))),
|
|
712
|
+
right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))),
|
|
713
|
+
}).strict();
|
|
788
714
|
|
|
789
715
|
export const cropSchema = cropCropSchema;
|
|
790
716
|
|
|
@@ -796,7 +722,7 @@ export const googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOp
|
|
|
796
722
|
bucket: z.string(),
|
|
797
723
|
prefix: z.optional(z.string()),
|
|
798
724
|
filename: z.optional(z.string()),
|
|
799
|
-
});
|
|
725
|
+
}).strict();
|
|
800
726
|
|
|
801
727
|
export const googleCloudStorageDestinationOptionsSchema =
|
|
802
728
|
googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
|
|
@@ -810,7 +736,7 @@ export const googleCloudStorageDestinationGoogleCloudStorageDestinationSchema =
|
|
|
810
736
|
options: z.optional(
|
|
811
737
|
googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema,
|
|
812
738
|
),
|
|
813
|
-
});
|
|
739
|
+
}).strict();
|
|
814
740
|
|
|
815
741
|
export const googleCloudStorageDestinationSchema =
|
|
816
742
|
googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
|
|
@@ -822,7 +748,7 @@ export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema =
|
|
|
822
748
|
z.object({
|
|
823
749
|
folderId: z.string(),
|
|
824
750
|
filename: z.optional(z.string()),
|
|
825
|
-
});
|
|
751
|
+
}).strict();
|
|
826
752
|
|
|
827
753
|
export const googleDriveDestinationOptionsSchema =
|
|
828
754
|
googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
|
|
@@ -833,7 +759,7 @@ export const googleDriveDestinationOptionsSchema =
|
|
|
833
759
|
export const googleDriveDestinationGoogleDriveDestinationSchema = z.object({
|
|
834
760
|
provider: z.literal("google-drive"),
|
|
835
761
|
options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
|
|
836
|
-
});
|
|
762
|
+
}).strict();
|
|
837
763
|
|
|
838
764
|
export const googleDriveDestinationSchema =
|
|
839
765
|
googleDriveDestinationGoogleDriveDestinationSchema;
|
|
@@ -844,7 +770,7 @@ export const googleDriveDestinationSchema =
|
|
|
844
770
|
export const muxDestinationOptionsMuxDestinationOptionsSchema = z.object({
|
|
845
771
|
playbackPolicy: z.optional(z.array(z.enum(["public", "signed"]))),
|
|
846
772
|
passthrough: z.optional(z.string().max(255)),
|
|
847
|
-
});
|
|
773
|
+
}).strict();
|
|
848
774
|
|
|
849
775
|
export const muxDestinationOptionsSchema =
|
|
850
776
|
muxDestinationOptionsMuxDestinationOptionsSchema;
|
|
@@ -855,7 +781,7 @@ export const muxDestinationOptionsSchema =
|
|
|
855
781
|
export const muxDestinationMuxDestinationSchema = z.object({
|
|
856
782
|
provider: z.literal("mux"),
|
|
857
783
|
options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema),
|
|
858
|
-
});
|
|
784
|
+
}).strict();
|
|
859
785
|
|
|
860
786
|
export const muxDestinationSchema = muxDestinationMuxDestinationSchema;
|
|
861
787
|
|
|
@@ -868,7 +794,7 @@ export const s3DestinationOptionsS3DestinationOptionsSchema = z.object({
|
|
|
868
794
|
prefix: z.optional(z.string()),
|
|
869
795
|
filename: z.optional(z.string()),
|
|
870
796
|
acl: z.optional(z.string()),
|
|
871
|
-
});
|
|
797
|
+
}).strict();
|
|
872
798
|
|
|
873
799
|
export const s3DestinationOptionsSchema =
|
|
874
800
|
s3DestinationOptionsS3DestinationOptionsSchema;
|
|
@@ -879,7 +805,7 @@ export const s3DestinationOptionsSchema =
|
|
|
879
805
|
export const s3DestinationS3DestinationSchema = z.object({
|
|
880
806
|
provider: z.literal("s3"),
|
|
881
807
|
options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema),
|
|
882
|
-
});
|
|
808
|
+
}).strict();
|
|
883
809
|
|
|
884
810
|
export const s3DestinationSchema = s3DestinationS3DestinationSchema;
|
|
885
811
|
|
|
@@ -889,7 +815,7 @@ export const s3DestinationSchema = s3DestinationS3DestinationSchema;
|
|
|
889
815
|
export const shotstackDestinationShotstackDestinationSchema = z.object({
|
|
890
816
|
provider: z.literal("shotstack"),
|
|
891
817
|
exclude: z.optional(z.boolean()),
|
|
892
|
-
});
|
|
818
|
+
}).strict();
|
|
893
819
|
|
|
894
820
|
export const shotstackDestinationSchema =
|
|
895
821
|
shotstackDestinationShotstackDestinationSchema;
|
|
@@ -903,7 +829,7 @@ export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
|
|
|
903
829
|
disableDuet: z.optional(z.boolean()).default(false),
|
|
904
830
|
disableStitch: z.optional(z.boolean()).default(false),
|
|
905
831
|
disableComment: z.optional(z.boolean()).default(false),
|
|
906
|
-
});
|
|
832
|
+
}).strict();
|
|
907
833
|
|
|
908
834
|
/**
|
|
909
835
|
* Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
|
|
@@ -911,7 +837,7 @@ export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
|
|
|
911
837
|
export const tiktokDestinationTiktokDestinationSchema = z.object({
|
|
912
838
|
provider: z.literal("tiktok"),
|
|
913
839
|
options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema),
|
|
914
|
-
});
|
|
840
|
+
}).strict();
|
|
915
841
|
|
|
916
842
|
/**
|
|
917
843
|
* Options to control the visibility of videos and privacy features.
|
|
@@ -925,7 +851,7 @@ export const vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema
|
|
|
925
851
|
comments: z.optional(z.enum(["anybody", "nobody", "contacts"])),
|
|
926
852
|
download: z.optional(z.boolean()),
|
|
927
853
|
add: z.optional(z.boolean()),
|
|
928
|
-
});
|
|
854
|
+
}).strict();
|
|
929
855
|
|
|
930
856
|
export const vimeoDestinationPrivacyOptionsSchema =
|
|
931
857
|
vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
|
|
@@ -940,7 +866,7 @@ export const vimeoDestinationOptionsVimeoDestinationOptionsSchema = z.object({
|
|
|
940
866
|
vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema,
|
|
941
867
|
),
|
|
942
868
|
folderUri: z.optional(z.string()),
|
|
943
|
-
});
|
|
869
|
+
}).strict();
|
|
944
870
|
|
|
945
871
|
export const vimeoDestinationOptionsSchema =
|
|
946
872
|
vimeoDestinationOptionsVimeoDestinationOptionsSchema;
|
|
@@ -951,7 +877,7 @@ export const vimeoDestinationOptionsSchema =
|
|
|
951
877
|
export const vimeoDestinationVimeoDestinationSchema = z.object({
|
|
952
878
|
provider: z.literal("vimeo"),
|
|
953
879
|
options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema),
|
|
954
|
-
});
|
|
880
|
+
}).strict();
|
|
955
881
|
|
|
956
882
|
export const vimeoDestinationSchema = vimeoDestinationVimeoDestinationSchema;
|
|
957
883
|
|
|
@@ -978,7 +904,7 @@ export const destinationsSchema = destinationsDestinationsSchema;
|
|
|
978
904
|
export const fliptransformationFlipTransformationSchema = z.object({
|
|
979
905
|
horizontal: z.optional(z.boolean()),
|
|
980
906
|
vertical: z.optional(z.boolean()),
|
|
981
|
-
});
|
|
907
|
+
}).strict();
|
|
982
908
|
|
|
983
909
|
export const flipTransformationSchema =
|
|
984
910
|
fliptransformationFlipTransformationSchema;
|
|
@@ -988,7 +914,7 @@ export const flipTransformationSchema =
|
|
|
988
914
|
*/
|
|
989
915
|
export const fontFontSchema = z.object({
|
|
990
916
|
src: z.string(),
|
|
991
|
-
});
|
|
917
|
+
}).strict();
|
|
992
918
|
|
|
993
919
|
export const fontSchema = fontFontSchema;
|
|
994
920
|
|
|
@@ -1006,8 +932,8 @@ export const htmlassetHtmlAssetSchema = z.object({
|
|
|
1006
932
|
type: z.enum(["html"]),
|
|
1007
933
|
html: z.string(),
|
|
1008
934
|
css: z.optional(z.string()),
|
|
1009
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1010
|
-
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
935
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
936
|
+
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
1011
937
|
background: z.optional(z.string()),
|
|
1012
938
|
position: z.optional(
|
|
1013
939
|
z.enum([
|
|
@@ -1022,7 +948,7 @@ export const htmlassetHtmlAssetSchema = z.object({
|
|
|
1022
948
|
"center",
|
|
1023
949
|
]),
|
|
1024
950
|
),
|
|
1025
|
-
});
|
|
951
|
+
}).strict();
|
|
1026
952
|
|
|
1027
953
|
export const htmlAssetSchema = htmlassetHtmlAssetSchema;
|
|
1028
954
|
|
|
@@ -1031,9 +957,9 @@ export const htmlAssetSchema = htmlassetHtmlAssetSchema;
|
|
|
1031
957
|
*/
|
|
1032
958
|
export const imageassetImageAssetSchema = z.object({
|
|
1033
959
|
type: z.enum(["image"]),
|
|
1034
|
-
src: z.string().min(1).regex(/\S/),
|
|
960
|
+
src: z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
|
|
1035
961
|
crop: z.optional(cropCropSchema),
|
|
1036
|
-
});
|
|
962
|
+
}).strict();
|
|
1037
963
|
|
|
1038
964
|
export const imageAssetSchema = imageassetImageAssetSchema;
|
|
1039
965
|
|
|
@@ -1047,9 +973,9 @@ export const imagetovideoassetImageToVideoAssetSchema = z.object({
|
|
|
1047
973
|
aspectRatio: z.optional(
|
|
1048
974
|
z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"]),
|
|
1049
975
|
),
|
|
1050
|
-
speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
976
|
+
speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
|
|
1051
977
|
crop: z.optional(cropCropSchema),
|
|
1052
|
-
});
|
|
978
|
+
}).strict();
|
|
1053
979
|
|
|
1054
980
|
export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
|
|
1055
981
|
|
|
@@ -1068,7 +994,7 @@ export const dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = z.object({
|
|
|
1068
994
|
"studio",
|
|
1069
995
|
"voice_over",
|
|
1070
996
|
]),
|
|
1071
|
-
});
|
|
997
|
+
}).strict();
|
|
1072
998
|
|
|
1073
999
|
export const dolbyEnhancementOptionsSchema =
|
|
1074
1000
|
dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
|
|
@@ -1079,7 +1005,7 @@ export const dolbyEnhancementOptionsSchema =
|
|
|
1079
1005
|
export const dolbyEnhancementDolbyEnhancementSchema = z.object({
|
|
1080
1006
|
provider: z.string().default("dolby"),
|
|
1081
1007
|
options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
|
|
1082
|
-
});
|
|
1008
|
+
}).strict();
|
|
1083
1009
|
|
|
1084
1010
|
export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
|
|
1085
1011
|
|
|
@@ -1089,11 +1015,7 @@ export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
|
|
|
1089
1015
|
* <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
|
|
1090
1016
|
* </ul>
|
|
1091
1017
|
*/
|
|
1092
|
-
export const audioEnhancementAudioEnhancementSchema = z
|
|
1093
|
-
.object({
|
|
1094
|
-
enhancement: z.literal("dolbyEnhancement_DolbyEnhancement"),
|
|
1095
|
-
})
|
|
1096
|
-
.and(dolbyEnhancementDolbyEnhancementSchema);
|
|
1018
|
+
export const audioEnhancementAudioEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema.extend({ enhancement: z.literal("dolbyEnhancement_DolbyEnhancement") }).strict();
|
|
1097
1019
|
|
|
1098
1020
|
export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
|
|
1099
1021
|
|
|
@@ -1102,7 +1024,7 @@ export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
|
|
|
1102
1024
|
*/
|
|
1103
1025
|
export const enhancementsEnhancementsSchema = z.object({
|
|
1104
1026
|
audio: z.optional(audioEnhancementAudioEnhancementSchema),
|
|
1105
|
-
});
|
|
1027
|
+
}).strict();
|
|
1106
1028
|
|
|
1107
1029
|
export const enhancementsSchema = enhancementsEnhancementsSchema;
|
|
1108
1030
|
|
|
@@ -1113,7 +1035,7 @@ export const ingesterrorresponsedataIngestErrorResponseDataSchema = z.object({
|
|
|
1113
1035
|
status: z.string(),
|
|
1114
1036
|
title: z.string(),
|
|
1115
1037
|
detail: z.string(),
|
|
1116
|
-
});
|
|
1038
|
+
}).strict();
|
|
1117
1039
|
|
|
1118
1040
|
export const ingestErrorResponseDataSchema =
|
|
1119
1041
|
ingesterrorresponsedataIngestErrorResponseDataSchema;
|
|
@@ -1123,7 +1045,7 @@ export const ingestErrorResponseDataSchema =
|
|
|
1123
1045
|
*/
|
|
1124
1046
|
export const ingesterrorresponseIngestErrorResponseSchema = z.object({
|
|
1125
1047
|
errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema),
|
|
1126
|
-
});
|
|
1048
|
+
}).strict();
|
|
1127
1049
|
|
|
1128
1050
|
export const ingestErrorResponseSchema =
|
|
1129
1051
|
ingesterrorresponseIngestErrorResponseSchema;
|
|
@@ -1134,7 +1056,7 @@ export const ingestErrorResponseSchema =
|
|
|
1134
1056
|
export const queuedsourceresponsedataQueuedSourceResponseDataSchema = z.object({
|
|
1135
1057
|
type: z.string(),
|
|
1136
1058
|
id: z.string(),
|
|
1137
|
-
});
|
|
1059
|
+
}).strict();
|
|
1138
1060
|
|
|
1139
1061
|
export const queuedSourceResponseDataSchema =
|
|
1140
1062
|
queuedsourceresponsedataQueuedSourceResponseDataSchema;
|
|
@@ -1144,7 +1066,7 @@ export const queuedSourceResponseDataSchema =
|
|
|
1144
1066
|
*/
|
|
1145
1067
|
export const queuedsourceresponseQueuedSourceResponseSchema = z.object({
|
|
1146
1068
|
data: queuedsourceresponsedataQueuedSourceResponseDataSchema,
|
|
1147
|
-
});
|
|
1069
|
+
}).strict();
|
|
1148
1070
|
|
|
1149
1071
|
export const queuedSourceResponseSchema =
|
|
1150
1072
|
queuedsourceresponseQueuedSourceResponseSchema;
|
|
@@ -1156,7 +1078,7 @@ export const uploadresponseattributesUploadResponseAttributesSchema = z.object({
|
|
|
1156
1078
|
id: z.string(),
|
|
1157
1079
|
url: z.string(),
|
|
1158
1080
|
expires: z.string(),
|
|
1159
|
-
});
|
|
1081
|
+
}).strict();
|
|
1160
1082
|
|
|
1161
1083
|
export const uploadResponseAttributesSchema =
|
|
1162
1084
|
uploadresponseattributesUploadResponseAttributesSchema;
|
|
@@ -1168,7 +1090,7 @@ export const uploadresponsedataUploadResponseDataSchema = z.object({
|
|
|
1168
1090
|
type: z.string(),
|
|
1169
1091
|
id: z.string(),
|
|
1170
1092
|
attributes: uploadresponseattributesUploadResponseAttributesSchema,
|
|
1171
|
-
});
|
|
1093
|
+
}).strict();
|
|
1172
1094
|
|
|
1173
1095
|
export const uploadResponseDataSchema =
|
|
1174
1096
|
uploadresponsedataUploadResponseDataSchema;
|
|
@@ -1178,7 +1100,7 @@ export const uploadResponseDataSchema =
|
|
|
1178
1100
|
*/
|
|
1179
1101
|
export const uploadresponseUploadResponseSchema = z.object({
|
|
1180
1102
|
data: uploadresponsedataUploadResponseDataSchema,
|
|
1181
|
-
});
|
|
1103
|
+
}).strict();
|
|
1182
1104
|
|
|
1183
1105
|
export const uploadResponseSchema = uploadresponseUploadResponseSchema;
|
|
1184
1106
|
|
|
@@ -1186,9 +1108,9 @@ export const uploadResponseSchema = uploadresponseUploadResponseSchema;
|
|
|
1186
1108
|
* 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.
|
|
1187
1109
|
*/
|
|
1188
1110
|
export const speedSpeedSchema = z.object({
|
|
1189
|
-
speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
1111
|
+
speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
|
|
1190
1112
|
preservePitch: z.optional(z.boolean()),
|
|
1191
|
-
});
|
|
1113
|
+
}).strict();
|
|
1192
1114
|
|
|
1193
1115
|
export const speedSchema = speedSpeedSchema;
|
|
1194
1116
|
|
|
@@ -1197,7 +1119,7 @@ export const speedSchema = speedSpeedSchema;
|
|
|
1197
1119
|
*/
|
|
1198
1120
|
export const transcriptionTranscriptionSchema = z.object({
|
|
1199
1121
|
format: z.optional(z.enum(["srt", "vtt"])),
|
|
1200
|
-
});
|
|
1122
|
+
}).strict();
|
|
1201
1123
|
|
|
1202
1124
|
export const transcriptionSchema = transcriptionTranscriptionSchema;
|
|
1203
1125
|
|
|
@@ -1206,9 +1128,9 @@ export const transcriptionSchema = transcriptionTranscriptionSchema;
|
|
|
1206
1128
|
*/
|
|
1207
1129
|
export const lumaassetLumaAssetSchema = z.object({
|
|
1208
1130
|
type: z.enum(["luma"]),
|
|
1209
|
-
src: z.string().min(1).regex(/\S/),
|
|
1210
|
-
trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
1211
|
-
});
|
|
1131
|
+
src: z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
|
|
1132
|
+
trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
1133
|
+
}).strict();
|
|
1212
1134
|
|
|
1213
1135
|
export const lumaAssetSchema = lumaassetLumaAssetSchema;
|
|
1214
1136
|
|
|
@@ -1217,8 +1139,8 @@ export const lumaAssetSchema = lumaassetLumaAssetSchema;
|
|
|
1217
1139
|
*/
|
|
1218
1140
|
export const mergefieldMergeFieldSchema = z.object({
|
|
1219
1141
|
find: z.string(),
|
|
1220
|
-
replace: z.union([z.string(), z.number(), z.boolean(), z.null(), z.record(z.string(), z.unknown()), z.array(z.unknown())]),
|
|
1221
|
-
});
|
|
1142
|
+
replace: z.union([z.string(), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()), z.boolean(), z.null(), z.record(z.string(), z.unknown()), z.array(z.unknown())]),
|
|
1143
|
+
}).strict();
|
|
1222
1144
|
|
|
1223
1145
|
export const mergeFieldSchema = mergefieldMergeFieldSchema;
|
|
1224
1146
|
|
|
@@ -1226,8 +1148,8 @@ export const mergeFieldSchema = mergefieldMergeFieldSchema;
|
|
|
1226
1148
|
* 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.
|
|
1227
1149
|
*/
|
|
1228
1150
|
export const posterPosterSchema = z.object({
|
|
1229
|
-
capture: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()),
|
|
1230
|
-
});
|
|
1151
|
+
capture: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
1152
|
+
}).strict();
|
|
1231
1153
|
|
|
1232
1154
|
export const posterSchema = posterPosterSchema;
|
|
1233
1155
|
|
|
@@ -1235,9 +1157,9 @@ export const posterSchema = posterPosterSchema;
|
|
|
1235
1157
|
* 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.
|
|
1236
1158
|
*/
|
|
1237
1159
|
export const rangeRangeSchema = z.object({
|
|
1238
|
-
start: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))),
|
|
1239
|
-
length: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))),
|
|
1240
|
-
});
|
|
1160
|
+
start: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))),
|
|
1161
|
+
length: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))),
|
|
1162
|
+
}).strict();
|
|
1241
1163
|
|
|
1242
1164
|
export const rangeSchema = rangeRangeSchema;
|
|
1243
1165
|
|
|
@@ -1255,7 +1177,7 @@ export const assetresponseattributesAssetResponseAttributesSchema = z.object({
|
|
|
1255
1177
|
status: z.enum(["importing", "ready", "failed", "deleted"]),
|
|
1256
1178
|
created: z.optional(z.string()),
|
|
1257
1179
|
updated: z.optional(z.string()),
|
|
1258
|
-
});
|
|
1180
|
+
}).strict();
|
|
1259
1181
|
|
|
1260
1182
|
export const assetResponseAttributesSchema =
|
|
1261
1183
|
assetresponseattributesAssetResponseAttributesSchema;
|
|
@@ -1266,7 +1188,7 @@ export const assetResponseAttributesSchema =
|
|
|
1266
1188
|
export const assetresponsedataAssetResponseDataSchema = z.object({
|
|
1267
1189
|
type: z.string(),
|
|
1268
1190
|
attributes: assetresponseattributesAssetResponseAttributesSchema,
|
|
1269
|
-
});
|
|
1191
|
+
}).strict();
|
|
1270
1192
|
|
|
1271
1193
|
export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
|
|
1272
1194
|
|
|
@@ -1275,7 +1197,7 @@ export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
|
|
|
1275
1197
|
*/
|
|
1276
1198
|
export const assetrenderresponseAssetRenderResponseSchema = z.object({
|
|
1277
1199
|
data: z.array(assetresponsedataAssetResponseDataSchema),
|
|
1278
|
-
});
|
|
1200
|
+
}).strict();
|
|
1279
1201
|
|
|
1280
1202
|
export const assetRenderResponseSchema =
|
|
1281
1203
|
assetrenderresponseAssetRenderResponseSchema;
|
|
@@ -1285,7 +1207,7 @@ export const assetRenderResponseSchema =
|
|
|
1285
1207
|
*/
|
|
1286
1208
|
export const assetresponseAssetResponseSchema = z.object({
|
|
1287
1209
|
data: assetresponsedataAssetResponseDataSchema,
|
|
1288
|
-
});
|
|
1210
|
+
}).strict();
|
|
1289
1211
|
|
|
1290
1212
|
export const assetResponseSchema = assetresponseAssetResponseSchema;
|
|
1291
1213
|
|
|
@@ -1296,7 +1218,7 @@ export const proberesponseProbeResponseSchema = z.object({
|
|
|
1296
1218
|
success: z.boolean(),
|
|
1297
1219
|
message: z.string(),
|
|
1298
1220
|
response: z.record(z.string(), z.unknown()),
|
|
1299
|
-
});
|
|
1221
|
+
}).strict();
|
|
1300
1222
|
|
|
1301
1223
|
export const probeResponseSchema = proberesponseProbeResponseSchema;
|
|
1302
1224
|
|
|
@@ -1306,7 +1228,7 @@ export const probeResponseSchema = proberesponseProbeResponseSchema;
|
|
|
1306
1228
|
export const queuedresponsedataQueuedResponseDataSchema = z.object({
|
|
1307
1229
|
message: z.string(),
|
|
1308
1230
|
id: z.string(),
|
|
1309
|
-
});
|
|
1231
|
+
}).strict();
|
|
1310
1232
|
|
|
1311
1233
|
export const queuedResponseDataSchema =
|
|
1312
1234
|
queuedresponsedataQueuedResponseDataSchema;
|
|
@@ -1318,7 +1240,7 @@ export const queuedresponseQueuedResponseSchema = z.object({
|
|
|
1318
1240
|
success: z.boolean(),
|
|
1319
1241
|
message: z.string(),
|
|
1320
1242
|
response: queuedresponsedataQueuedResponseDataSchema,
|
|
1321
|
-
});
|
|
1243
|
+
}).strict();
|
|
1322
1244
|
|
|
1323
1245
|
export const queuedResponseSchema = queuedresponseQueuedResponseSchema;
|
|
1324
1246
|
|
|
@@ -1330,7 +1252,7 @@ export const templatelistresponseitemTemplateListResponseItemSchema = z.object({
|
|
|
1330
1252
|
name: z.string(),
|
|
1331
1253
|
created: z.optional(z.string()),
|
|
1332
1254
|
updated: z.optional(z.string()),
|
|
1333
|
-
});
|
|
1255
|
+
}).strict();
|
|
1334
1256
|
|
|
1335
1257
|
export const templateListResponseItemSchema =
|
|
1336
1258
|
templatelistresponseitemTemplateListResponseItemSchema;
|
|
@@ -1341,7 +1263,7 @@ export const templateListResponseItemSchema =
|
|
|
1341
1263
|
export const templatelistresponsedataTemplateListResponseDataSchema = z.object({
|
|
1342
1264
|
owner: z.string(),
|
|
1343
1265
|
templates: z.array(templatelistresponseitemTemplateListResponseItemSchema),
|
|
1344
|
-
});
|
|
1266
|
+
}).strict();
|
|
1345
1267
|
|
|
1346
1268
|
export const templateListResponseDataSchema =
|
|
1347
1269
|
templatelistresponsedataTemplateListResponseDataSchema;
|
|
@@ -1353,7 +1275,7 @@ export const templatelistresponseTemplateListResponseSchema = z.object({
|
|
|
1353
1275
|
success: z.boolean(),
|
|
1354
1276
|
message: z.string(),
|
|
1355
1277
|
response: templatelistresponsedataTemplateListResponseDataSchema,
|
|
1356
|
-
});
|
|
1278
|
+
}).strict();
|
|
1357
1279
|
|
|
1358
1280
|
export const templateListResponseSchema =
|
|
1359
1281
|
templatelistresponseTemplateListResponseSchema;
|
|
@@ -1364,7 +1286,7 @@ export const templateListResponseSchema =
|
|
|
1364
1286
|
export const templateresponsedataTemplateResponseDataSchema = z.object({
|
|
1365
1287
|
message: z.string(),
|
|
1366
1288
|
id: z.string(),
|
|
1367
|
-
});
|
|
1289
|
+
}).strict();
|
|
1368
1290
|
|
|
1369
1291
|
export const templateResponseDataSchema =
|
|
1370
1292
|
templateresponsedataTemplateResponseDataSchema;
|
|
@@ -1376,7 +1298,7 @@ export const templateresponseTemplateResponseSchema = z.object({
|
|
|
1376
1298
|
success: z.boolean(),
|
|
1377
1299
|
message: z.string(),
|
|
1378
1300
|
response: templateresponsedataTemplateResponseDataSchema,
|
|
1379
|
-
});
|
|
1301
|
+
}).strict();
|
|
1380
1302
|
|
|
1381
1303
|
export const templateResponseSchema = templateresponseTemplateResponseSchema;
|
|
1382
1304
|
|
|
@@ -1386,7 +1308,7 @@ export const templateResponseSchema = templateresponseTemplateResponseSchema;
|
|
|
1386
1308
|
export const richtextpropertiesRichTextAlignmentSchema = z.object({
|
|
1387
1309
|
horizontal: z.optional(z.enum(["left", "center", "right"])),
|
|
1388
1310
|
vertical: z.optional(z.enum(["top", "middle", "bottom"])),
|
|
1389
|
-
});
|
|
1311
|
+
}).strict();
|
|
1390
1312
|
|
|
1391
1313
|
export const richTextAlignmentSchema =
|
|
1392
1314
|
richtextpropertiesRichTextAlignmentSchema;
|
|
@@ -1403,10 +1325,10 @@ export const richtextpropertiesRichTextAnimationSchema = z.object({
|
|
|
1403
1325
|
"shift",
|
|
1404
1326
|
"movingLetters",
|
|
1405
1327
|
]),
|
|
1406
|
-
duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.1).lte(30))),
|
|
1328
|
+
duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.1).lte(30)))),
|
|
1407
1329
|
style: z.optional(z.enum(["character", "word"])),
|
|
1408
1330
|
direction: z.optional(z.enum(["left", "right", "up", "down"])),
|
|
1409
|
-
});
|
|
1331
|
+
}).strict();
|
|
1410
1332
|
|
|
1411
1333
|
export const richTextAnimationSchema =
|
|
1412
1334
|
richtextpropertiesRichTextAnimationSchema;
|
|
@@ -1416,9 +1338,9 @@ export const richTextAnimationSchema =
|
|
|
1416
1338
|
*/
|
|
1417
1339
|
export const richtextpropertiesRichTextBackgroundSchema = z.object({
|
|
1418
1340
|
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
1419
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1420
|
-
borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1421
|
-
});
|
|
1341
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
|
|
1342
|
+
borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
|
|
1343
|
+
}).strict();
|
|
1422
1344
|
|
|
1423
1345
|
export const richTextBackgroundSchema =
|
|
1424
1346
|
richtextpropertiesRichTextBackgroundSchema;
|
|
@@ -1427,27 +1349,27 @@ export const richTextBackgroundSchema =
|
|
|
1427
1349
|
* Border styling properties for the text bounding box.
|
|
1428
1350
|
*/
|
|
1429
1351
|
export const richtextpropertiesRichTextBorderSchema = z.object({
|
|
1430
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1352
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
|
|
1431
1353
|
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1432
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1433
|
-
radius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1434
|
-
});
|
|
1354
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
|
|
1355
|
+
radius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
|
|
1356
|
+
}).strict();
|
|
1435
1357
|
|
|
1436
1358
|
/**
|
|
1437
1359
|
* Gradient properties for text fill.
|
|
1438
1360
|
*/
|
|
1439
1361
|
export const richtextpropertiesRichTextGradientSchema = z.object({
|
|
1440
1362
|
type: z.optional(z.enum(["linear", "radial"])),
|
|
1441
|
-
angle: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(360))).default(0),
|
|
1363
|
+
angle: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(360)))).default(0),
|
|
1442
1364
|
stops: z
|
|
1443
1365
|
.array(
|
|
1444
1366
|
z.object({
|
|
1445
|
-
offset: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)),
|
|
1367
|
+
offset: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
|
|
1446
1368
|
color: z.string().regex(/^#[A-Fa-f0-9]{6}$/),
|
|
1447
1369
|
}),
|
|
1448
1370
|
)
|
|
1449
1371
|
.min(2),
|
|
1450
|
-
});
|
|
1372
|
+
}).strict();
|
|
1451
1373
|
|
|
1452
1374
|
export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
|
|
1453
1375
|
|
|
@@ -1455,22 +1377,22 @@ export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
|
|
|
1455
1377
|
* Padding properties for individual sides of the text bounding box.
|
|
1456
1378
|
*/
|
|
1457
1379
|
export const richtextpropertiesRichTextPaddingSchema = z.object({
|
|
1458
|
-
top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1459
|
-
right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1460
|
-
bottom: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1461
|
-
left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1462
|
-
});
|
|
1380
|
+
top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
|
|
1381
|
+
right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
|
|
1382
|
+
bottom: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
|
|
1383
|
+
left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
|
|
1384
|
+
}).strict();
|
|
1463
1385
|
|
|
1464
1386
|
/**
|
|
1465
1387
|
* Text shadow properties.
|
|
1466
1388
|
*/
|
|
1467
1389
|
export const richtextpropertiesRichTextShadowSchema = z.object({
|
|
1468
|
-
offsetX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
|
|
1469
|
-
offsetY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
|
|
1470
|
-
blur: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1390
|
+
offsetX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
|
|
1391
|
+
offsetY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
|
|
1392
|
+
blur: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
|
|
1471
1393
|
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1472
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
|
|
1473
|
-
});
|
|
1394
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(0.5),
|
|
1395
|
+
}).strict();
|
|
1474
1396
|
|
|
1475
1397
|
export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
|
|
1476
1398
|
|
|
@@ -1478,10 +1400,10 @@ export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
|
|
|
1478
1400
|
* Text stroke (outline) properties.
|
|
1479
1401
|
*/
|
|
1480
1402
|
export const richtextpropertiesRichTextStrokeSchema = z.object({
|
|
1481
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1403
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
|
|
1482
1404
|
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1483
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1484
|
-
});
|
|
1405
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
|
|
1406
|
+
}).strict();
|
|
1485
1407
|
|
|
1486
1408
|
export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
|
|
1487
1409
|
|
|
@@ -1490,13 +1412,13 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
|
|
|
1490
1412
|
*/
|
|
1491
1413
|
export const richtextpropertiesRichTextFontSchema = z.object({
|
|
1492
1414
|
family: z.optional(z.string()).default("Open Sans"),
|
|
1493
|
-
size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(500))).default(24),
|
|
1415
|
+
size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(500)))).default(24),
|
|
1494
1416
|
weight: z.optional(z.unknown()).default("400"),
|
|
1495
1417
|
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
|
|
1496
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1418
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
|
|
1497
1419
|
background: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
1498
1420
|
stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
|
|
1499
|
-
});
|
|
1421
|
+
}).strict();
|
|
1500
1422
|
|
|
1501
1423
|
export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
|
|
1502
1424
|
|
|
@@ -1504,14 +1426,14 @@ export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
|
|
|
1504
1426
|
* Text style properties including spacing, line height, and transformations.
|
|
1505
1427
|
*/
|
|
1506
1428
|
export const richtextpropertiesRichTextStyleSchema = z.object({
|
|
1507
|
-
letterSpacing: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
|
|
1508
|
-
lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))).default(1.2),
|
|
1429
|
+
letterSpacing: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
|
|
1430
|
+
lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))).default(1.2),
|
|
1509
1431
|
textTransform: z.optional(
|
|
1510
1432
|
z.enum(["none", "uppercase", "lowercase", "capitalize"]),
|
|
1511
1433
|
),
|
|
1512
1434
|
textDecoration: z.optional(z.enum(["none", "underline", "line-through"])),
|
|
1513
1435
|
gradient: z.optional(richtextpropertiesRichTextGradientSchema),
|
|
1514
|
-
});
|
|
1436
|
+
}).strict();
|
|
1515
1437
|
|
|
1516
1438
|
export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
|
|
1517
1439
|
|
|
@@ -1529,11 +1451,11 @@ export const richtextassetRichTextAssetSchema = z.object({
|
|
|
1529
1451
|
background: z.optional(richtextpropertiesRichTextBackgroundSchema),
|
|
1530
1452
|
border: z.optional(richtextpropertiesRichTextBorderSchema),
|
|
1531
1453
|
padding: z.optional(
|
|
1532
|
-
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)), richtextpropertiesRichTextPaddingSchema]),
|
|
1454
|
+
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))), richtextpropertiesRichTextPaddingSchema]),
|
|
1533
1455
|
),
|
|
1534
1456
|
align: z.optional(richtextpropertiesRichTextAlignmentSchema),
|
|
1535
1457
|
animation: z.optional(richtextpropertiesRichTextAnimationSchema),
|
|
1536
|
-
});
|
|
1458
|
+
}).strict();
|
|
1537
1459
|
|
|
1538
1460
|
export const richTextAssetSchema = richtextassetRichTextAssetSchema;
|
|
1539
1461
|
|
|
@@ -1546,7 +1468,7 @@ export const transferresponseattributesTransferResponseAttributesSchema =
|
|
|
1546
1468
|
owner: z.optional(z.string()),
|
|
1547
1469
|
status: z.optional(z.enum(["queued", "failed"])),
|
|
1548
1470
|
created: z.optional(z.string()),
|
|
1549
|
-
});
|
|
1471
|
+
}).strict();
|
|
1550
1472
|
|
|
1551
1473
|
export const transferResponseAttributesSchema =
|
|
1552
1474
|
transferresponseattributesTransferResponseAttributesSchema;
|
|
@@ -1559,7 +1481,7 @@ export const transferresponsedataTransferResponseDataSchema = z.object({
|
|
|
1559
1481
|
attributes: z.optional(
|
|
1560
1482
|
transferresponseattributesTransferResponseAttributesSchema,
|
|
1561
1483
|
),
|
|
1562
|
-
});
|
|
1484
|
+
}).strict();
|
|
1563
1485
|
|
|
1564
1486
|
export const transferResponseDataSchema =
|
|
1565
1487
|
transferresponsedataTransferResponseDataSchema;
|
|
@@ -1569,7 +1491,7 @@ export const transferResponseDataSchema =
|
|
|
1569
1491
|
*/
|
|
1570
1492
|
export const transferresponseTransferResponseSchema = z.object({
|
|
1571
1493
|
data: transferresponsedataTransferResponseDataSchema,
|
|
1572
|
-
});
|
|
1494
|
+
}).strict();
|
|
1573
1495
|
|
|
1574
1496
|
export const transferResponseSchema = transferresponseTransferResponseSchema;
|
|
1575
1497
|
|
|
@@ -1580,7 +1502,7 @@ export const transferTransferSchema = z.object({
|
|
|
1580
1502
|
url: z.string(),
|
|
1581
1503
|
id: z.string(),
|
|
1582
1504
|
destinations: z.array(destinationsDestinationsSchema),
|
|
1583
|
-
});
|
|
1505
|
+
}).strict();
|
|
1584
1506
|
|
|
1585
1507
|
export const transferSchema = transferTransferSchema;
|
|
1586
1508
|
|
|
@@ -1592,39 +1514,39 @@ export const transferSchema = transferTransferSchema;
|
|
|
1592
1514
|
export const shapeassetShapeAssetSchema = z.object({
|
|
1593
1515
|
type: z.enum(["shape"]),
|
|
1594
1516
|
shape: z.enum(["rectangle", "circle", "line"]),
|
|
1595
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1596
|
-
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1517
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
1518
|
+
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
1597
1519
|
fill: z.optional(
|
|
1598
1520
|
z.object({
|
|
1599
1521
|
color: z.optional(z.string()),
|
|
1600
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
1522
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
1601
1523
|
}),
|
|
1602
1524
|
),
|
|
1603
1525
|
stroke: z.optional(
|
|
1604
1526
|
z.object({
|
|
1605
1527
|
color: z.optional(z.string()),
|
|
1606
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
1528
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
1607
1529
|
}),
|
|
1608
1530
|
),
|
|
1609
1531
|
rectangle: z.optional(
|
|
1610
1532
|
z.object({
|
|
1611
|
-
width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
|
|
1612
|
-
height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
|
|
1613
|
-
cornerRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1533
|
+
width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1534
|
+
height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1535
|
+
cornerRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
1614
1536
|
}),
|
|
1615
1537
|
),
|
|
1616
1538
|
circle: z.optional(
|
|
1617
1539
|
z.object({
|
|
1618
|
-
radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
|
|
1540
|
+
radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1619
1541
|
}),
|
|
1620
1542
|
),
|
|
1621
1543
|
line: z.optional(
|
|
1622
1544
|
z.object({
|
|
1623
|
-
length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
|
|
1624
|
-
thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
|
|
1545
|
+
length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1546
|
+
thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1625
1547
|
}),
|
|
1626
1548
|
),
|
|
1627
|
-
});
|
|
1549
|
+
}).strict();
|
|
1628
1550
|
|
|
1629
1551
|
export const shapeAssetSchema = shapeassetShapeAssetSchema;
|
|
1630
1552
|
|
|
@@ -1632,9 +1554,9 @@ export const shapeAssetSchema = shapeassetShapeAssetSchema;
|
|
|
1632
1554
|
* 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.
|
|
1633
1555
|
*/
|
|
1634
1556
|
export const sizeSizeSchema = z.object({
|
|
1635
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096))),
|
|
1636
|
-
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096))),
|
|
1637
|
-
});
|
|
1557
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096)))),
|
|
1558
|
+
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096)))),
|
|
1559
|
+
}).strict();
|
|
1638
1560
|
|
|
1639
1561
|
export const sizeSchema = sizeSizeSchema;
|
|
1640
1562
|
|
|
@@ -1664,7 +1586,7 @@ export const renditionRenditionSchema = z.object({
|
|
|
1664
1586
|
size: z.optional(sizeSizeSchema),
|
|
1665
1587
|
fit: z.optional(z.enum(["cover", "contain", "crop"])),
|
|
1666
1588
|
resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
|
|
1667
|
-
quality: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(100))),
|
|
1589
|
+
quality: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(100)))),
|
|
1668
1590
|
fps: z.optional(
|
|
1669
1591
|
z.union([
|
|
1670
1592
|
z.literal(12),
|
|
@@ -1681,12 +1603,12 @@ export const renditionRenditionSchema = z.object({
|
|
|
1681
1603
|
]),
|
|
1682
1604
|
),
|
|
1683
1605
|
speed: z.optional(speedSpeedSchema),
|
|
1684
|
-
keyframeInterval: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(300))),
|
|
1606
|
+
keyframeInterval: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(300)))),
|
|
1685
1607
|
fixOffset: z.optional(z.boolean()),
|
|
1686
1608
|
fixRotation: z.optional(z.boolean()),
|
|
1687
1609
|
enhance: z.optional(enhancementsEnhancementsSchema),
|
|
1688
1610
|
filename: z.optional(z.string()),
|
|
1689
|
-
});
|
|
1611
|
+
}).strict();
|
|
1690
1612
|
|
|
1691
1613
|
export const renditionSchema = renditionRenditionSchema;
|
|
1692
1614
|
|
|
@@ -1696,7 +1618,7 @@ export const renditionSchema = renditionRenditionSchema;
|
|
|
1696
1618
|
export const outputsOutputsSchema = z.object({
|
|
1697
1619
|
renditions: z.optional(z.array(renditionRenditionSchema)),
|
|
1698
1620
|
transcription: z.optional(transcriptionTranscriptionSchema),
|
|
1699
|
-
});
|
|
1621
|
+
}).strict();
|
|
1700
1622
|
|
|
1701
1623
|
export const outputsSchema = outputsOutputsSchema;
|
|
1702
1624
|
|
|
@@ -1717,13 +1639,13 @@ export const renditionresponseattributesRenditionResponseAttributesSchema =
|
|
|
1717
1639
|
]),
|
|
1718
1640
|
),
|
|
1719
1641
|
url: z.optional(z.string()),
|
|
1720
|
-
executionTime: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
1642
|
+
executionTime: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
1721
1643
|
transformation: z.optional(renditionRenditionSchema),
|
|
1722
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1723
|
-
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1724
|
-
duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
1725
|
-
fps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
1726
|
-
});
|
|
1644
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
1645
|
+
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
1646
|
+
duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
1647
|
+
fps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
1648
|
+
}).strict();
|
|
1727
1649
|
|
|
1728
1650
|
export const renditionResponseAttributesSchema =
|
|
1729
1651
|
renditionresponseattributesRenditionResponseAttributesSchema;
|
|
@@ -1735,7 +1657,7 @@ export const outputsresponseOutputsResponseSchema = z.object({
|
|
|
1735
1657
|
renditions: z.optional(
|
|
1736
1658
|
z.array(renditionresponseattributesRenditionResponseAttributesSchema),
|
|
1737
1659
|
),
|
|
1738
|
-
});
|
|
1660
|
+
}).strict();
|
|
1739
1661
|
|
|
1740
1662
|
export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
|
|
1741
1663
|
|
|
@@ -1758,13 +1680,13 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
|
|
|
1758
1680
|
]),
|
|
1759
1681
|
),
|
|
1760
1682
|
outputs: z.optional(outputsresponseOutputsResponseSchema),
|
|
1761
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1762
|
-
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
1763
|
-
duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
1764
|
-
fps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
1683
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
1684
|
+
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
1685
|
+
duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
1686
|
+
fps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
1765
1687
|
created: z.optional(z.string()),
|
|
1766
1688
|
updated: z.optional(z.string()),
|
|
1767
|
-
});
|
|
1689
|
+
}).strict();
|
|
1768
1690
|
|
|
1769
1691
|
export const sourceResponseAttributesSchema =
|
|
1770
1692
|
sourceresponseattributesSourceResponseAttributesSchema;
|
|
@@ -1776,7 +1698,7 @@ export const sourceresponsedataSourceResponseDataSchema = z.object({
|
|
|
1776
1698
|
type: z.string(),
|
|
1777
1699
|
id: z.string(),
|
|
1778
1700
|
attributes: sourceresponseattributesSourceResponseAttributesSchema,
|
|
1779
|
-
});
|
|
1701
|
+
}).strict();
|
|
1780
1702
|
|
|
1781
1703
|
export const sourceResponseDataSchema =
|
|
1782
1704
|
sourceresponsedataSourceResponseDataSchema;
|
|
@@ -1786,7 +1708,7 @@ export const sourceResponseDataSchema =
|
|
|
1786
1708
|
*/
|
|
1787
1709
|
export const sourcelistresponseSourceListResponseSchema = z.object({
|
|
1788
1710
|
data: z.array(sourceresponsedataSourceResponseDataSchema),
|
|
1789
|
-
});
|
|
1711
|
+
}).strict();
|
|
1790
1712
|
|
|
1791
1713
|
export const sourceListResponseSchema =
|
|
1792
1714
|
sourcelistresponseSourceListResponseSchema;
|
|
@@ -1796,7 +1718,7 @@ export const sourceListResponseSchema =
|
|
|
1796
1718
|
*/
|
|
1797
1719
|
export const sourceresponseSourceResponseSchema = z.object({
|
|
1798
1720
|
data: sourceresponsedataSourceResponseDataSchema,
|
|
1799
|
-
});
|
|
1721
|
+
}).strict();
|
|
1800
1722
|
|
|
1801
1723
|
export const sourceResponseSchema = sourceresponseSourceResponseSchema;
|
|
1802
1724
|
|
|
@@ -1809,7 +1731,7 @@ export const sourceSourceSchema = z.object({
|
|
|
1809
1731
|
outputs: z.optional(outputsOutputsSchema),
|
|
1810
1732
|
destinations: z.optional(destinationsDestinationsSchema),
|
|
1811
1733
|
callback: z.optional(z.string()),
|
|
1812
|
-
});
|
|
1734
|
+
}).strict();
|
|
1813
1735
|
|
|
1814
1736
|
export const sourceSchema = sourceSourceSchema;
|
|
1815
1737
|
|
|
@@ -1819,8 +1741,8 @@ export const sourceSchema = sourceSourceSchema;
|
|
|
1819
1741
|
export const soundtrackSoundtrackSchema = z.object({
|
|
1820
1742
|
src: z.string().min(1).regex(/\S/),
|
|
1821
1743
|
effect: z.optional(z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
1822
|
-
volume: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
1823
|
-
});
|
|
1744
|
+
volume: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
1745
|
+
}).strict();
|
|
1824
1746
|
|
|
1825
1747
|
export const soundtrackSchema = soundtrackSoundtrackSchema;
|
|
1826
1748
|
|
|
@@ -1830,9 +1752,9 @@ export const soundtrackSchema = soundtrackSoundtrackSchema;
|
|
|
1830
1752
|
*
|
|
1831
1753
|
*/
|
|
1832
1754
|
export const svgpropertiesSvgGradientStopSchema = z.object({
|
|
1833
|
-
offset: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)),
|
|
1755
|
+
offset: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
|
|
1834
1756
|
color: z.string().regex(/^#[A-Fa-f0-9]{6}$/),
|
|
1835
|
-
});
|
|
1757
|
+
}).strict();
|
|
1836
1758
|
|
|
1837
1759
|
export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
|
|
1838
1760
|
|
|
@@ -1843,10 +1765,10 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
|
|
|
1843
1765
|
*/
|
|
1844
1766
|
export const svgpropertiesSvgLinearGradientFillSchema = z.object({
|
|
1845
1767
|
type: z.enum(["linear"]),
|
|
1846
|
-
angle: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(360))).default(0),
|
|
1768
|
+
angle: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(360)))).default(0),
|
|
1847
1769
|
stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
|
|
1848
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1849
|
-
});
|
|
1770
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
|
|
1771
|
+
}).strict();
|
|
1850
1772
|
|
|
1851
1773
|
export const svgLinearGradientFillSchema =
|
|
1852
1774
|
svgpropertiesSvgLinearGradientFillSchema;
|
|
@@ -1859,8 +1781,8 @@ export const svgLinearGradientFillSchema =
|
|
|
1859
1781
|
export const svgpropertiesSvgRadialGradientFillSchema = z.object({
|
|
1860
1782
|
type: z.enum(["radial"]),
|
|
1861
1783
|
stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
|
|
1862
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1863
|
-
});
|
|
1784
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
|
|
1785
|
+
}).strict();
|
|
1864
1786
|
|
|
1865
1787
|
export const svgRadialGradientFillSchema =
|
|
1866
1788
|
svgpropertiesSvgRadialGradientFillSchema;
|
|
@@ -1870,12 +1792,12 @@ export const svgRadialGradientFillSchema =
|
|
|
1870
1792
|
*
|
|
1871
1793
|
*/
|
|
1872
1794
|
export const svgpropertiesSvgShadowSchema = z.object({
|
|
1873
|
-
offsetX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
|
|
1874
|
-
offsetY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
|
|
1875
|
-
blur: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
|
|
1795
|
+
offsetX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
|
|
1796
|
+
offsetY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
|
|
1797
|
+
blur: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
|
|
1876
1798
|
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1877
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
|
|
1878
|
-
});
|
|
1799
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(0.5),
|
|
1800
|
+
}).strict();
|
|
1879
1801
|
|
|
1880
1802
|
export const svgShadowSchema = svgpropertiesSvgShadowSchema;
|
|
1881
1803
|
|
|
@@ -1888,8 +1810,8 @@ export const svgpropertiesSvgSolidFillSchema = z.object({
|
|
|
1888
1810
|
.string()
|
|
1889
1811
|
.regex(/^#[A-Fa-f0-9]{6}$/)
|
|
1890
1812
|
.default("#000000"),
|
|
1891
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1892
|
-
});
|
|
1813
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
|
|
1814
|
+
}).strict();
|
|
1893
1815
|
|
|
1894
1816
|
export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
|
|
1895
1817
|
|
|
@@ -1913,13 +1835,13 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
|
|
|
1913
1835
|
*/
|
|
1914
1836
|
export const svgpropertiesSvgStrokeSchema = z.object({
|
|
1915
1837
|
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1916
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(100))).default(1),
|
|
1917
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
|
|
1838
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(100)))).default(1),
|
|
1839
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
|
|
1918
1840
|
lineCap: z.optional(z.enum(["butt", "round", "square"])),
|
|
1919
1841
|
lineJoin: z.optional(z.enum(["miter", "round", "bevel"])),
|
|
1920
|
-
dashArray: z.optional(z.array(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))),
|
|
1921
|
-
dashOffset: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
|
|
1922
|
-
});
|
|
1842
|
+
dashArray: z.optional(z.array(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))))),
|
|
1843
|
+
dashOffset: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
|
|
1844
|
+
}).strict();
|
|
1923
1845
|
|
|
1924
1846
|
export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
|
|
1925
1847
|
|
|
@@ -1928,13 +1850,13 @@ export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
|
|
|
1928
1850
|
*
|
|
1929
1851
|
*/
|
|
1930
1852
|
export const svgpropertiesSvgTransformSchema = z.object({
|
|
1931
|
-
x: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
|
|
1932
|
-
y: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
|
|
1933
|
-
rotation: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-360).lte(360))).default(0),
|
|
1934
|
-
scale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.01).lte(100))).default(1),
|
|
1935
|
-
originX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
|
|
1936
|
-
originY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
|
|
1937
|
-
});
|
|
1853
|
+
x: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
|
|
1854
|
+
y: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
|
|
1855
|
+
rotation: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-360).lte(360)))).default(0),
|
|
1856
|
+
scale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.01).lte(100)))).default(1),
|
|
1857
|
+
originX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(0.5),
|
|
1858
|
+
originY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(0.5),
|
|
1859
|
+
}).strict();
|
|
1938
1860
|
|
|
1939
1861
|
export const svgTransformSchema = svgpropertiesSvgTransformSchema;
|
|
1940
1862
|
|
|
@@ -1945,11 +1867,11 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
|
|
|
1945
1867
|
*/
|
|
1946
1868
|
export const svgshapesSvgArrowShapeSchema = z.object({
|
|
1947
1869
|
type: z.enum(["arrow"]),
|
|
1948
|
-
length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
|
|
1949
|
-
headWidth: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000)),
|
|
1950
|
-
headLength: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000)),
|
|
1951
|
-
shaftWidth: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000)),
|
|
1952
|
-
});
|
|
1870
|
+
length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
|
|
1871
|
+
headWidth: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000))),
|
|
1872
|
+
headLength: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000))),
|
|
1873
|
+
shaftWidth: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000))),
|
|
1874
|
+
}).strict();
|
|
1953
1875
|
|
|
1954
1876
|
export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
|
|
1955
1877
|
|
|
@@ -1960,8 +1882,8 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
|
|
|
1960
1882
|
*/
|
|
1961
1883
|
export const svgshapesSvgCircleShapeSchema = z.object({
|
|
1962
1884
|
type: z.enum(["circle"]),
|
|
1963
|
-
radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
1964
|
-
});
|
|
1885
|
+
radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
|
|
1886
|
+
}).strict();
|
|
1965
1887
|
|
|
1966
1888
|
export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
|
|
1967
1889
|
|
|
@@ -1972,10 +1894,10 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
|
|
|
1972
1894
|
*/
|
|
1973
1895
|
export const svgshapesSvgCrossShapeSchema = z.object({
|
|
1974
1896
|
type: z.enum(["cross"]),
|
|
1975
|
-
width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
|
|
1976
|
-
height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
|
|
1977
|
-
thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(500)),
|
|
1978
|
-
});
|
|
1897
|
+
width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
|
|
1898
|
+
height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
|
|
1899
|
+
thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(500))),
|
|
1900
|
+
}).strict();
|
|
1979
1901
|
|
|
1980
1902
|
export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
|
|
1981
1903
|
|
|
@@ -1986,9 +1908,9 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
|
|
|
1986
1908
|
*/
|
|
1987
1909
|
export const svgshapesSvgEllipseShapeSchema = z.object({
|
|
1988
1910
|
type: z.enum(["ellipse"]),
|
|
1989
|
-
radiusX: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
1990
|
-
radiusY: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
1991
|
-
});
|
|
1911
|
+
radiusX: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
|
|
1912
|
+
radiusY: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
|
|
1913
|
+
}).strict();
|
|
1992
1914
|
|
|
1993
1915
|
export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
|
|
1994
1916
|
|
|
@@ -1999,8 +1921,8 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
|
|
|
1999
1921
|
*/
|
|
2000
1922
|
export const svgshapesSvgHeartShapeSchema = z.object({
|
|
2001
1923
|
type: z.enum(["heart"]),
|
|
2002
|
-
size: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
|
|
2003
|
-
});
|
|
1924
|
+
size: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
|
|
1925
|
+
}).strict();
|
|
2004
1926
|
|
|
2005
1927
|
export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
|
|
2006
1928
|
|
|
@@ -2011,9 +1933,9 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
|
|
|
2011
1933
|
*/
|
|
2012
1934
|
export const svgshapesSvgLineShapeSchema = z.object({
|
|
2013
1935
|
type: z.enum(["line"]),
|
|
2014
|
-
length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
|
|
2015
|
-
thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(500)),
|
|
2016
|
-
});
|
|
1936
|
+
length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
|
|
1937
|
+
thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(500))),
|
|
1938
|
+
}).strict();
|
|
2017
1939
|
|
|
2018
1940
|
export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
|
|
2019
1941
|
|
|
@@ -2037,7 +1959,7 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
|
|
|
2037
1959
|
export const svgshapesSvgPathShapeSchema = z.object({
|
|
2038
1960
|
type: z.enum(["path"]),
|
|
2039
1961
|
d: z.string().min(1).max(100000),
|
|
2040
|
-
});
|
|
1962
|
+
}).strict();
|
|
2041
1963
|
|
|
2042
1964
|
export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
|
|
2043
1965
|
|
|
@@ -2049,9 +1971,9 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
|
|
|
2049
1971
|
*/
|
|
2050
1972
|
export const svgshapesSvgPolygonShapeSchema = z.object({
|
|
2051
1973
|
type: z.enum(["polygon"]),
|
|
2052
|
-
sides: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(3).lte(100)),
|
|
2053
|
-
radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
2054
|
-
});
|
|
1974
|
+
sides: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(3).lte(100))),
|
|
1975
|
+
radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
|
|
1976
|
+
}).strict();
|
|
2055
1977
|
|
|
2056
1978
|
export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
|
|
2057
1979
|
|
|
@@ -2062,10 +1984,10 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
|
|
|
2062
1984
|
*/
|
|
2063
1985
|
export const svgshapesSvgRectangleShapeSchema = z.object({
|
|
2064
1986
|
type: z.enum(["rectangle"]),
|
|
2065
|
-
width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
|
|
2066
|
-
height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
|
|
2067
|
-
cornerRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(2048))).default(0),
|
|
2068
|
-
});
|
|
1987
|
+
width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
|
|
1988
|
+
height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
|
|
1989
|
+
cornerRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(2048)))).default(0),
|
|
1990
|
+
}).strict();
|
|
2069
1991
|
|
|
2070
1992
|
export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
|
|
2071
1993
|
|
|
@@ -2076,9 +1998,9 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
|
|
|
2076
1998
|
*/
|
|
2077
1999
|
export const svgshapesSvgRingShapeSchema = z.object({
|
|
2078
2000
|
type: z.enum(["ring"]),
|
|
2079
|
-
outerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
2080
|
-
innerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(2048)),
|
|
2081
|
-
});
|
|
2001
|
+
outerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
|
|
2002
|
+
innerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(2048))),
|
|
2003
|
+
}).strict();
|
|
2082
2004
|
|
|
2083
2005
|
export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
|
|
2084
2006
|
|
|
@@ -2090,10 +2012,10 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
|
|
|
2090
2012
|
*/
|
|
2091
2013
|
export const svgshapesSvgStarShapeSchema = z.object({
|
|
2092
2014
|
type: z.enum(["star"]),
|
|
2093
|
-
points: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(3).lte(100)),
|
|
2094
|
-
outerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
2095
|
-
innerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
|
|
2096
|
-
});
|
|
2015
|
+
points: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(3).lte(100))),
|
|
2016
|
+
outerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
|
|
2017
|
+
innerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
|
|
2018
|
+
}).strict();
|
|
2097
2019
|
|
|
2098
2020
|
export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
|
|
2099
2021
|
|
|
@@ -2173,7 +2095,7 @@ export const svgassetSvgAssetSchema = z.object({
|
|
|
2173
2095
|
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
|
|
2174
2096
|
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096)))),
|
|
2175
2097
|
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096)))),
|
|
2176
|
-
}).superRefine((data, ctx) => {
|
|
2098
|
+
}).strict().superRefine((data, ctx) => {
|
|
2177
2099
|
const hasShape = data.shape !== undefined;
|
|
2178
2100
|
const hasSrc = data.src !== undefined && data.src.trim() !== "";
|
|
2179
2101
|
|
|
@@ -2206,6 +2128,29 @@ export const svgassetSvgAssetSchema = z.object({
|
|
|
2206
2128
|
}
|
|
2207
2129
|
}
|
|
2208
2130
|
});
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
if (hasShape && hasSrc) {
|
|
2134
|
+
ctx.addIssue({
|
|
2135
|
+
code: z.ZodIssueCode.custom,
|
|
2136
|
+
message: "Provide either 'src' or 'shape', not both",
|
|
2137
|
+
path: ["src"],
|
|
2138
|
+
});
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
if (hasSrc) {
|
|
2142
|
+
const disallowedProps = ["shape", "fill", "stroke", "shadow", "transform", "width", "height"];
|
|
2143
|
+
for (const prop of disallowedProps) {
|
|
2144
|
+
if (data[prop] !== undefined) {
|
|
2145
|
+
ctx.addIssue({
|
|
2146
|
+
code: z.ZodIssueCode.custom,
|
|
2147
|
+
message: `'${prop}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,
|
|
2148
|
+
path: [prop],
|
|
2149
|
+
});
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
});
|
|
2209
2154
|
|
|
2210
2155
|
export const svgAssetSchema = svgassetSvgAssetSchema;
|
|
2211
2156
|
|
|
@@ -2215,7 +2160,7 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
|
|
|
2215
2160
|
export const templaterenderTemplateRenderSchema = z.object({
|
|
2216
2161
|
id: z.string(),
|
|
2217
2162
|
merge: z.optional(z.array(mergefieldMergeFieldSchema)),
|
|
2218
|
-
});
|
|
2163
|
+
}).strict();
|
|
2219
2164
|
|
|
2220
2165
|
export const templateRenderSchema = templaterenderTemplateRenderSchema;
|
|
2221
2166
|
|
|
@@ -2225,7 +2170,7 @@ export const templateRenderSchema = templaterenderTemplateRenderSchema;
|
|
|
2225
2170
|
export const textpropertiesTextAlignmentSchema = z.object({
|
|
2226
2171
|
horizontal: z.optional(z.enum(["left", "center", "right"])),
|
|
2227
2172
|
vertical: z.optional(z.enum(["top", "center", "bottom"])),
|
|
2228
|
-
});
|
|
2173
|
+
}).strict();
|
|
2229
2174
|
|
|
2230
2175
|
export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
|
|
2231
2176
|
|
|
@@ -2234,18 +2179,18 @@ export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
|
|
|
2234
2179
|
*/
|
|
2235
2180
|
export const textpropertiesTextAnimationSchema = z.object({
|
|
2236
2181
|
preset: z.enum(["typewriter"]),
|
|
2237
|
-
duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.1).lte(30))),
|
|
2238
|
-
});
|
|
2182
|
+
duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.1).lte(30)))),
|
|
2183
|
+
}).strict();
|
|
2239
2184
|
|
|
2240
2185
|
/**
|
|
2241
2186
|
* Displays a background box behind the text.
|
|
2242
2187
|
*/
|
|
2243
2188
|
export const textpropertiesTextBackgroundSchema = z.object({
|
|
2244
2189
|
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
2245
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
|
|
2246
|
-
padding: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(100))),
|
|
2247
|
-
borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))),
|
|
2248
|
-
});
|
|
2190
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))),
|
|
2191
|
+
padding: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(100)))),
|
|
2192
|
+
borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))),
|
|
2193
|
+
}).strict();
|
|
2249
2194
|
|
|
2250
2195
|
export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
|
|
2251
2196
|
|
|
@@ -2255,11 +2200,11 @@ export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
|
|
|
2255
2200
|
export const textpropertiesTextFontSchema = z.object({
|
|
2256
2201
|
family: z.optional(z.string()),
|
|
2257
2202
|
color: z.optional(z.string()),
|
|
2258
|
-
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2259
|
-
size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
2260
|
-
weight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
2261
|
-
lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2262
|
-
});
|
|
2203
|
+
opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
2204
|
+
size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
2205
|
+
weight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
2206
|
+
lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
2207
|
+
}).strict();
|
|
2263
2208
|
|
|
2264
2209
|
export const textFontSchema = textpropertiesTextFontSchema;
|
|
2265
2210
|
|
|
@@ -2267,9 +2212,9 @@ export const textFontSchema = textpropertiesTextFontSchema;
|
|
|
2267
2212
|
* Text stroke (outline) properties.
|
|
2268
2213
|
*/
|
|
2269
2214
|
export const textpropertiesTextStrokeSchema = z.object({
|
|
2270
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
2215
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
|
|
2271
2216
|
color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
2272
|
-
});
|
|
2217
|
+
}).strict();
|
|
2273
2218
|
|
|
2274
2219
|
/**
|
|
2275
2220
|
* The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
|
|
@@ -2279,15 +2224,15 @@ export const textpropertiesTextStrokeSchema = z.object({
|
|
|
2279
2224
|
export const textassetTextAssetSchema = z.object({
|
|
2280
2225
|
type: z.enum(["text"]),
|
|
2281
2226
|
text: z.string(),
|
|
2282
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
2283
|
-
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
2227
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
2228
|
+
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
2284
2229
|
font: z.optional(textpropertiesTextFontSchema),
|
|
2285
2230
|
background: z.optional(textpropertiesTextBackgroundSchema),
|
|
2286
2231
|
alignment: z.optional(textpropertiesTextAlignmentSchema),
|
|
2287
2232
|
stroke: z.optional(textpropertiesTextStrokeSchema),
|
|
2288
2233
|
animation: z.optional(textpropertiesTextAnimationSchema),
|
|
2289
2234
|
ellipsis: z.optional(z.string()),
|
|
2290
|
-
});
|
|
2235
|
+
}).strict();
|
|
2291
2236
|
|
|
2292
2237
|
export const textAssetSchema = textassetTextAssetSchema;
|
|
2293
2238
|
|
|
@@ -2297,10 +2242,10 @@ export const textAssetSchema = textassetTextAssetSchema;
|
|
|
2297
2242
|
export const texttoimageassetTextToImageAssetSchema = z.object({
|
|
2298
2243
|
type: z.enum(["text-to-image"]),
|
|
2299
2244
|
prompt: z.string(),
|
|
2300
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
2301
|
-
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
|
|
2245
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
2246
|
+
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
|
|
2302
2247
|
crop: z.optional(cropCropSchema),
|
|
2303
|
-
});
|
|
2248
|
+
}).strict();
|
|
2304
2249
|
|
|
2305
2250
|
export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
|
|
2306
2251
|
|
|
@@ -2308,9 +2253,9 @@ export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
|
|
|
2308
2253
|
* Generate a thumbnail image for the video or image at a specific point from the timeline.
|
|
2309
2254
|
*/
|
|
2310
2255
|
export const thumbnailThumbnailSchema = z.object({
|
|
2311
|
-
capture: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()),
|
|
2312
|
-
scale: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)),
|
|
2313
|
-
});
|
|
2256
|
+
capture: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2257
|
+
scale: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
|
|
2258
|
+
}).strict();
|
|
2314
2259
|
|
|
2315
2260
|
export const thumbnailSchema = thumbnailThumbnailSchema;
|
|
2316
2261
|
|
|
@@ -2347,7 +2292,7 @@ export const outputOutputSchema = z.object({
|
|
|
2347
2292
|
poster: z.optional(posterPosterSchema),
|
|
2348
2293
|
thumbnail: z.optional(thumbnailThumbnailSchema),
|
|
2349
2294
|
destinations: z.optional(z.array(destinationsDestinationsSchema)),
|
|
2350
|
-
});
|
|
2295
|
+
}).strict();
|
|
2351
2296
|
|
|
2352
2297
|
export const outputSchema = outputOutputSchema;
|
|
2353
2298
|
|
|
@@ -2487,7 +2432,7 @@ export const transitionTransitionSchema = z.object({
|
|
|
2487
2432
|
"zoom",
|
|
2488
2433
|
]),
|
|
2489
2434
|
),
|
|
2490
|
-
});
|
|
2435
|
+
}).strict();
|
|
2491
2436
|
|
|
2492
2437
|
export const transitionSchema = transitionTransitionSchema;
|
|
2493
2438
|
|
|
@@ -2502,10 +2447,10 @@ export const transitionSchema = transitionTransitionSchema;
|
|
|
2502
2447
|
* </ul>
|
|
2503
2448
|
*/
|
|
2504
2449
|
export const tweenTweenSchema = z.object({
|
|
2505
|
-
from: z.
|
|
2506
|
-
to: z.
|
|
2507
|
-
start: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2508
|
-
length: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2450
|
+
from: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2451
|
+
to: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2452
|
+
start: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
2453
|
+
length: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
2509
2454
|
interpolation: z.optional(z.enum(["linear", "bezier", "constant"])),
|
|
2510
2455
|
easing: z.optional(
|
|
2511
2456
|
z.enum([
|
|
@@ -2539,7 +2484,7 @@ export const tweenTweenSchema = z.object({
|
|
|
2539
2484
|
"easeInOutBack",
|
|
2540
2485
|
]),
|
|
2541
2486
|
),
|
|
2542
|
-
});
|
|
2487
|
+
}).strict();
|
|
2543
2488
|
|
|
2544
2489
|
export const tweenSchema = tweenTweenSchema;
|
|
2545
2490
|
|
|
@@ -2548,14 +2493,14 @@ export const tweenSchema = tweenTweenSchema;
|
|
|
2548
2493
|
*/
|
|
2549
2494
|
export const audioassetAudioAssetSchema = z.object({
|
|
2550
2495
|
type: z.enum(["audio"]),
|
|
2551
|
-
src: z.string().min(1).regex(/\S/),
|
|
2552
|
-
trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2496
|
+
src: z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
|
|
2497
|
+
trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
2553
2498
|
volume: z.optional(
|
|
2554
|
-
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)), z.array(tweenTweenSchema)]),
|
|
2499
|
+
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))), z.array(tweenTweenSchema)]),
|
|
2555
2500
|
),
|
|
2556
|
-
speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
2501
|
+
speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
|
|
2557
2502
|
effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
2558
|
-
});
|
|
2503
|
+
}).strict();
|
|
2559
2504
|
|
|
2560
2505
|
export const audioAssetSchema = audioassetAudioAssetSchema;
|
|
2561
2506
|
|
|
@@ -2564,12 +2509,12 @@ export const audioAssetSchema = audioassetAudioAssetSchema;
|
|
|
2564
2509
|
*/
|
|
2565
2510
|
export const offsetOffsetSchema = z.object({
|
|
2566
2511
|
x: z.optional(
|
|
2567
|
-
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-10).lte(10)), z.array(tweenTweenSchema)]),
|
|
2512
|
+
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-10).lte(10))), z.array(tweenTweenSchema)]),
|
|
2568
2513
|
),
|
|
2569
2514
|
y: z.optional(
|
|
2570
|
-
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-10).lte(10)), z.array(tweenTweenSchema)]),
|
|
2515
|
+
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-10).lte(10))), z.array(tweenTweenSchema)]),
|
|
2571
2516
|
),
|
|
2572
|
-
});
|
|
2517
|
+
}).strict();
|
|
2573
2518
|
|
|
2574
2519
|
export const offsetSchema = offsetOffsetSchema;
|
|
2575
2520
|
|
|
@@ -2578,9 +2523,9 @@ export const offsetSchema = offsetOffsetSchema;
|
|
|
2578
2523
|
*/
|
|
2579
2524
|
export const rotatetransformationRotateTransformationSchema = z.object({
|
|
2580
2525
|
angle: z.optional(
|
|
2581
|
-
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-360).lte(360)), z.array(tweenTweenSchema)]),
|
|
2526
|
+
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-360).lte(360))), z.array(tweenTweenSchema)]),
|
|
2582
2527
|
),
|
|
2583
|
-
});
|
|
2528
|
+
}).strict();
|
|
2584
2529
|
|
|
2585
2530
|
export const rotateTransformationSchema =
|
|
2586
2531
|
rotatetransformationRotateTransformationSchema;
|
|
@@ -2590,12 +2535,12 @@ export const rotateTransformationSchema =
|
|
|
2590
2535
|
*/
|
|
2591
2536
|
export const skewtransformationSkewTransformationSchema = z.object({
|
|
2592
2537
|
x: z.optional(
|
|
2593
|
-
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-100).lte(100)), z.array(tweenTweenSchema)]),
|
|
2538
|
+
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-100).lte(100))), z.array(tweenTweenSchema)]),
|
|
2594
2539
|
),
|
|
2595
2540
|
y: z.optional(
|
|
2596
|
-
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-100).lte(100)), z.array(tweenTweenSchema)]),
|
|
2541
|
+
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-100).lte(100))), z.array(tweenTweenSchema)]),
|
|
2597
2542
|
),
|
|
2598
|
-
});
|
|
2543
|
+
}).strict();
|
|
2599
2544
|
|
|
2600
2545
|
export const skewTransformationSchema =
|
|
2601
2546
|
skewtransformationSkewTransformationSchema;
|
|
@@ -2652,7 +2597,7 @@ export const titleassetTitleAssetSchema = z.object({
|
|
|
2652
2597
|
]),
|
|
2653
2598
|
),
|
|
2654
2599
|
offset: z.optional(offsetOffsetSchema),
|
|
2655
|
-
});
|
|
2600
|
+
}).strict();
|
|
2656
2601
|
|
|
2657
2602
|
export const titleAssetSchema = titleassetTitleAssetSchema;
|
|
2658
2603
|
|
|
@@ -2663,7 +2608,7 @@ export const transformationTransformationSchema = z.object({
|
|
|
2663
2608
|
rotate: z.optional(rotatetransformationRotateTransformationSchema),
|
|
2664
2609
|
skew: z.optional(skewtransformationSkewTransformationSchema),
|
|
2665
2610
|
flip: z.optional(fliptransformationFlipTransformationSchema),
|
|
2666
|
-
});
|
|
2611
|
+
}).strict();
|
|
2667
2612
|
|
|
2668
2613
|
export const transformationSchema = transformationTransformationSchema;
|
|
2669
2614
|
|
|
@@ -2672,19 +2617,19 @@ export const transformationSchema = transformationTransformationSchema;
|
|
|
2672
2617
|
*/
|
|
2673
2618
|
export const videoassetVideoAssetSchema = z.object({
|
|
2674
2619
|
type: z.enum(["video"]),
|
|
2675
|
-
src: z.string().min(1).regex(/\S/),
|
|
2620
|
+
src: z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
|
|
2676
2621
|
transcode: z.optional(z.boolean()),
|
|
2677
|
-
trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2622
|
+
trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
2678
2623
|
volume: z.optional(
|
|
2679
|
-
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)), z.array(tweenTweenSchema)]),
|
|
2624
|
+
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))), z.array(tweenTweenSchema)]),
|
|
2680
2625
|
),
|
|
2681
2626
|
volumeEffect: z.optional(
|
|
2682
2627
|
z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]),
|
|
2683
2628
|
),
|
|
2684
|
-
speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
|
|
2629
|
+
speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
|
|
2685
2630
|
crop: z.optional(cropCropSchema),
|
|
2686
2631
|
chromaKey: z.optional(chromakeyChromaKeySchema),
|
|
2687
|
-
});
|
|
2632
|
+
}).strict();
|
|
2688
2633
|
|
|
2689
2634
|
export const videoAssetSchema = videoassetVideoAssetSchema;
|
|
2690
2635
|
|
|
@@ -2715,17 +2660,17 @@ export const assetSchema = assetAssetSchema;
|
|
|
2715
2660
|
export const clipClipSchema = z.object({
|
|
2716
2661
|
asset: assetAssetSchema,
|
|
2717
2662
|
start: z.union([
|
|
2718
|
-
z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)),
|
|
2663
|
+
z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v)) return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))),
|
|
2719
2664
|
z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/),
|
|
2720
2665
|
]),
|
|
2721
2666
|
length: z.union([
|
|
2722
|
-
z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)),
|
|
2667
|
+
z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v)) return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))),
|
|
2723
2668
|
z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/),
|
|
2724
2669
|
]),
|
|
2725
2670
|
fit: z.optional(z.enum(["cover", "contain", "crop", "none"])),
|
|
2726
|
-
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') return Number(v); return v; }), z.number()), z.array(tweenTweenSchema)])),
|
|
2727
|
-
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(3840))),
|
|
2728
|
-
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2160))),
|
|
2671
|
+
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') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())), z.array(tweenTweenSchema)])),
|
|
2672
|
+
width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(3840)))),
|
|
2673
|
+
height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2160)))),
|
|
2729
2674
|
position: z.optional(
|
|
2730
2675
|
z.enum([
|
|
2731
2676
|
"top",
|
|
@@ -2776,10 +2721,10 @@ export const clipClipSchema = z.object({
|
|
|
2776
2721
|
"negative",
|
|
2777
2722
|
]),
|
|
2778
2723
|
),
|
|
2779
|
-
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') return Number(v); return v; }), z.number()), z.array(tweenTweenSchema)])),
|
|
2724
|
+
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') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())), z.array(tweenTweenSchema)])),
|
|
2780
2725
|
transform: z.optional(transformationTransformationSchema),
|
|
2781
2726
|
alias: z.optional(z.string().regex(/^[A-Za-z0-9_-]+$/)),
|
|
2782
|
-
});
|
|
2727
|
+
}).strict();
|
|
2783
2728
|
|
|
2784
2729
|
export const clipSchema = clipClipSchema;
|
|
2785
2730
|
|
|
@@ -2788,7 +2733,7 @@ export const clipSchema = clipClipSchema;
|
|
|
2788
2733
|
*/
|
|
2789
2734
|
export const trackTrackSchema = z.object({
|
|
2790
2735
|
clips: z.array(clipClipSchema).min(1),
|
|
2791
|
-
});
|
|
2736
|
+
}).strict();
|
|
2792
2737
|
|
|
2793
2738
|
export const trackSchema = trackTrackSchema;
|
|
2794
2739
|
|
|
@@ -2801,7 +2746,7 @@ export const timelineTimelineSchema = z.object({
|
|
|
2801
2746
|
fonts: z.optional(z.array(fontFontSchema)),
|
|
2802
2747
|
tracks: z.array(trackTrackSchema).min(1),
|
|
2803
2748
|
cache: z.optional(z.boolean()),
|
|
2804
|
-
});
|
|
2749
|
+
}).strict();
|
|
2805
2750
|
|
|
2806
2751
|
export const timelineSchema = timelineTimelineSchema;
|
|
2807
2752
|
|
|
@@ -2814,7 +2759,7 @@ export const editEditSchema = z.object({
|
|
|
2814
2759
|
merge: z.optional(z.array(mergefieldMergeFieldSchema)),
|
|
2815
2760
|
callback: z.optional(z.string()),
|
|
2816
2761
|
disk: z.optional(z.enum(["local", "mount"])),
|
|
2817
|
-
});
|
|
2762
|
+
}).strict();
|
|
2818
2763
|
|
|
2819
2764
|
export const editSchema = editEditSchema;
|
|
2820
2765
|
|
|
@@ -2835,15 +2780,15 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
|
|
|
2835
2780
|
"failed",
|
|
2836
2781
|
]),
|
|
2837
2782
|
error: z.optional(z.string()),
|
|
2838
|
-
duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2839
|
-
renderTime: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
|
|
2783
|
+
duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
2784
|
+
renderTime: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
|
|
2840
2785
|
url: z.optional(z.string()),
|
|
2841
2786
|
poster: z.optional(z.union([z.string(), z.null()])),
|
|
2842
2787
|
thumbnail: z.optional(z.union([z.string(), z.null()])),
|
|
2843
2788
|
data: z.optional(editEditSchema),
|
|
2844
2789
|
created: z.optional(z.string()),
|
|
2845
2790
|
updated: z.optional(z.string()),
|
|
2846
|
-
});
|
|
2791
|
+
}).strict();
|
|
2847
2792
|
|
|
2848
2793
|
export const renderResponseDataSchema =
|
|
2849
2794
|
renderresponsedataRenderResponseDataSchema;
|
|
@@ -2855,7 +2800,7 @@ export const renderresponseRenderResponseSchema = z.object({
|
|
|
2855
2800
|
success: z.boolean(),
|
|
2856
2801
|
message: z.string(),
|
|
2857
2802
|
response: renderresponsedataRenderResponseDataSchema,
|
|
2858
|
-
});
|
|
2803
|
+
}).strict();
|
|
2859
2804
|
|
|
2860
2805
|
export const renderResponseSchema = renderresponseRenderResponseSchema;
|
|
2861
2806
|
|
|
@@ -2867,7 +2812,7 @@ export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
|
|
|
2867
2812
|
name: z.string(),
|
|
2868
2813
|
owner: z.string(),
|
|
2869
2814
|
template: editEditSchema,
|
|
2870
|
-
});
|
|
2815
|
+
}).strict();
|
|
2871
2816
|
|
|
2872
2817
|
export const templateDataResponseDataSchema =
|
|
2873
2818
|
templatedataresponsedataTemplateDataResponseDataSchema;
|
|
@@ -2879,7 +2824,7 @@ export const templatedataresponseTemplateDataResponseSchema = z.object({
|
|
|
2879
2824
|
success: z.boolean(),
|
|
2880
2825
|
message: z.string(),
|
|
2881
2826
|
response: templatedataresponsedataTemplateDataResponseDataSchema,
|
|
2882
|
-
});
|
|
2827
|
+
}).strict();
|
|
2883
2828
|
|
|
2884
2829
|
export const templateDataResponseSchema =
|
|
2885
2830
|
templatedataresponseTemplateDataResponseSchema;
|
|
@@ -2890,7 +2835,7 @@ export const templateDataResponseSchema =
|
|
|
2890
2835
|
export const templateTemplateSchema = z.object({
|
|
2891
2836
|
name: z.string(),
|
|
2892
2837
|
template: z.optional(editEditSchema),
|
|
2893
|
-
});
|
|
2838
|
+
}).strict();
|
|
2894
2839
|
|
|
2895
2840
|
export const templateSchema = templateTemplateSchema;
|
|
2896
2841
|
|