@shotstack/schemas 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/zod/zod.gen.cjs +2266 -0
- package/dist/zod/zod.gen.d.ts +35822 -0
- package/dist/zod/zod.gen.js +2257 -0
- package/package.json +8 -4
|
@@ -0,0 +1,2266 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema = exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = exports.heyGenGeneratedAssetSchema = exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema = exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = exports.elevenLabsGeneratedAssetSchema = exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = exports.didGeneratedAssetSchema = exports.didGeneratedAssetDidGeneratedAssetSchema = exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema = exports.chromaKeySchema = exports.chromakeyChromaKeySchema = exports.captionAssetSchema = exports.captionassetCaptionAssetSchema = exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema = exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema = exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema = exports.uploadRootSchema = exports.templatesrenderRootSchema = exports.templatesidRootSchema = exports.templatesRootSchema = exports.sourcesidRootSchema = exports.sourcesRootSchema = exports.renderidRootSchema = exports.renderRootSchema = exports.probeRootSchema = exports.generateassetidRootSchema = exports.generateassetRootSchema = exports.assetsrenderidRootSchema = exports.assetsidRootSchema = exports.assetsRootSchema = exports.sourceRootSchema = exports.editRootSchema = void 0;
|
|
5
|
+
exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema = exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema = exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOptionsSchema = exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema = exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinationOptionsSchema = exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema = exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = exports.cropSchema = exports.cropCropSchema = exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema = exports.stabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = exports.shotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = exports.shotstackTextToSpeechOptionsSchema = exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAssetResponseSchema = exports.generatedAssetResponseDataSchema = exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema = exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = exports.generatedAssetErrorResponseDataSchema = exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = void 0;
|
|
6
|
+
exports.posterSchema = exports.posterPosterSchema = exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema = exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema = exports.transcriptionSchema = exports.transcriptionTranscriptionSchema = exports.speedSchema = exports.speedSpeedSchema = exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema = exports.uploadResponseDataSchema = exports.uploadresponsedataUploadResponseDataSchema = exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadResponseAttributesSchema = exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceResponseSchema = exports.queuedSourceResponseDataSchema = exports.queuedsourceresponsedataQueuedSourceResponseDataSchema = exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorResponseSchema = exports.ingestErrorResponseDataSchema = exports.ingesterrorresponsedataIngestErrorResponseDataSchema = exports.enhancementsSchema = exports.enhancementsEnhancementsSchema = exports.audioEnhancementSchema = exports.audioEnhancementAudioEnhancementSchema = exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema = exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSchema = exports.imageAssetSchema = exports.imageassetImageAssetSchema = exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema = exports.fontSchema = exports.fontFontSchema = exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema = exports.destinationsSchema = exports.destinationsDestinationsSchema = exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema = exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = void 0;
|
|
7
|
+
exports.transferResponseSchema = exports.transferresponseTransferResponseSchema = exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema = exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema = exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema = exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema = exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema = exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema = exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema = exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema = exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema = exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema = exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema = exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema = exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema = exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema = exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema = exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema = exports.probeResponseSchema = exports.proberesponseProbeResponseSchema = exports.assetResponseSchema = exports.assetresponseAssetResponseSchema = exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema = exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema = exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema = exports.rangeSchema = exports.rangeRangeSchema = void 0;
|
|
8
|
+
exports.offsetSchema = exports.offsetOffsetSchema = exports.audioAssetSchema = exports.audioassetAudioAssetSchema = exports.tweenSchema = exports.tweenTweenSchema = exports.transitionSchema = exports.transitionTransitionSchema = exports.outputSchema = exports.outputOutputSchema = exports.thumbnailSchema = exports.thumbnailThumbnailSchema = exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema = exports.textAssetSchema = exports.textassetTextAssetSchema = exports.textFontSchema = exports.textpropertiesTextFontSchema = exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema = exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema = exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema = exports.soundtrackSchema = exports.soundtrackSoundtrackSchema = exports.sourceSchema = exports.sourceSourceSchema = exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema = exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema = exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema = exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema = exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema = exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema = exports.outputsSchema = exports.outputsOutputsSchema = exports.renditionSchema = exports.renditionRenditionSchema = exports.sizeSchema = exports.sizeSizeSchema = exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema = exports.transferSchema = exports.transferTransferSchema = void 0;
|
|
9
|
+
exports.deleteAssetResponse = exports.deleteAssetRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse = exports.postTemplateRequest = exports.getTemplatesResponse = exports.getTemplatesRequest = exports.getRenderResponse = exports.getRenderRequest = exports.postRenderResponse = exports.postRenderRequest = exports.templateSchema = exports.templateTemplateSchema = exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema = exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema = exports.renderResponseSchema = exports.renderresponseRenderResponseSchema = exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema = exports.editSchema = exports.editEditSchema = exports.timelineSchema = exports.timelineTimelineSchema = exports.trackSchema = exports.trackTrackSchema = exports.clipSchema = exports.clipClipSchema = exports.assetSchema = exports.assetAssetSchema = exports.videoAssetSchema = exports.videoassetVideoAssetSchema = exports.transformationSchema = exports.transformationTransformationSchema = exports.titleAssetSchema = exports.titleassetTitleAssetSchema = exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = void 0;
|
|
10
|
+
exports.getGeneratedAssetResponse = exports.getGeneratedAssetRequest = exports.postGenerateAssetResponse = exports.postGenerateAssetRequest = exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = exports.getSourceResponse = exports.getSourceRequest = exports.deleteSourceResponse = exports.deleteSourceRequest = exports.postSourceResponse = exports.postSourceRequest = exports.getSourcesResponse = exports.getSourcesRequest = exports.postServeAssetResponse = exports.postServeAssetRequest = exports.getAssetByRenderIdResponse = exports.getAssetByRenderIdRequest = exports.getAssetResponse = exports.getAssetRequest = void 0;
|
|
11
|
+
const zod_1 = require("zod");
|
|
12
|
+
exports.editRootSchema = zod_1.z.unknown();
|
|
13
|
+
exports.sourceRootSchema = zod_1.z.unknown();
|
|
14
|
+
exports.assetsRootSchema = zod_1.z.unknown();
|
|
15
|
+
exports.assetsidRootSchema = zod_1.z.unknown();
|
|
16
|
+
exports.assetsrenderidRootSchema = zod_1.z.unknown();
|
|
17
|
+
exports.generateassetRootSchema = zod_1.z.unknown();
|
|
18
|
+
exports.generateassetidRootSchema = zod_1.z.unknown();
|
|
19
|
+
exports.probeRootSchema = zod_1.z.unknown();
|
|
20
|
+
exports.renderRootSchema = zod_1.z.unknown();
|
|
21
|
+
exports.renderidRootSchema = zod_1.z.unknown();
|
|
22
|
+
exports.sourcesRootSchema = zod_1.z.unknown();
|
|
23
|
+
exports.sourcesidRootSchema = zod_1.z.unknown();
|
|
24
|
+
exports.templatesRootSchema = zod_1.z.unknown();
|
|
25
|
+
exports.templatesidRootSchema = zod_1.z.unknown();
|
|
26
|
+
exports.templatesrenderRootSchema = zod_1.z.unknown();
|
|
27
|
+
exports.uploadRootSchema = zod_1.z.unknown();
|
|
28
|
+
/**
|
|
29
|
+
* Displays a background box behind the caption text.
|
|
30
|
+
*/
|
|
31
|
+
exports.captionpropertiesCaptionBackgroundSchema = zod_1.z.object({
|
|
32
|
+
color: zod_1.z.optional(zod_1.z.string()),
|
|
33
|
+
opacity: zod_1.z.optional(zod_1.z.number()),
|
|
34
|
+
padding: zod_1.z.optional(zod_1.z.int()),
|
|
35
|
+
borderRadius: zod_1.z.optional(zod_1.z.int()),
|
|
36
|
+
});
|
|
37
|
+
exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema;
|
|
38
|
+
/**
|
|
39
|
+
* Font properties for captions text.
|
|
40
|
+
*/
|
|
41
|
+
exports.captionpropertiesCaptionFontSchema = zod_1.z.object({
|
|
42
|
+
family: zod_1.z.optional(zod_1.z.string()),
|
|
43
|
+
color: zod_1.z.optional(zod_1.z.string()),
|
|
44
|
+
opacity: zod_1.z.optional(zod_1.z.number()),
|
|
45
|
+
size: zod_1.z.optional(zod_1.z.int()),
|
|
46
|
+
lineHeight: zod_1.z.optional(zod_1.z.number()),
|
|
47
|
+
stroke: zod_1.z.optional(zod_1.z.string()),
|
|
48
|
+
strokeWidth: zod_1.z.optional(zod_1.z.number()),
|
|
49
|
+
});
|
|
50
|
+
exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema;
|
|
51
|
+
/**
|
|
52
|
+
* The margin properties for captions. Margins are used to position the caption text and background on the screen.
|
|
53
|
+
*/
|
|
54
|
+
exports.captionpropertiesCaptionMarginSchema = zod_1.z.object({
|
|
55
|
+
top: zod_1.z.optional(zod_1.z.number()),
|
|
56
|
+
left: zod_1.z.optional(zod_1.z.number()),
|
|
57
|
+
right: zod_1.z.optional(zod_1.z.number()),
|
|
58
|
+
});
|
|
59
|
+
exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
|
|
60
|
+
/**
|
|
61
|
+
* The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will
|
|
62
|
+
* be read and burnt to the video.
|
|
63
|
+
*
|
|
64
|
+
* Captions can be applied independently from a video or audio file for greater
|
|
65
|
+
* flexibility with styling and layout. For example you can scale, position or crop a video without modifying the
|
|
66
|
+
* captions.
|
|
67
|
+
*
|
|
68
|
+
* To sync captions with a video or audio file use a [Video](#tocs_videoasset") or [Audio](#tocs_audioasset") with
|
|
69
|
+
* matching start and end time.
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
exports.captionassetCaptionAssetSchema = zod_1.z.object({
|
|
73
|
+
type: zod_1.z.string().default("caption"),
|
|
74
|
+
src: zod_1.z.string(),
|
|
75
|
+
font: zod_1.z.optional(exports.captionpropertiesCaptionFontSchema),
|
|
76
|
+
background: zod_1.z.optional(exports.captionpropertiesCaptionBackgroundSchema),
|
|
77
|
+
margin: zod_1.z.optional(exports.captionpropertiesCaptionMarginSchema),
|
|
78
|
+
trim: zod_1.z.optional(zod_1.z.number()),
|
|
79
|
+
speed: zod_1.z.optional(zod_1.z.number().gte(0).lte(10)),
|
|
80
|
+
});
|
|
81
|
+
exports.captionAssetSchema = exports.captionassetCaptionAssetSchema;
|
|
82
|
+
/**
|
|
83
|
+
* Chroma key, commonly known as green screen, is a technique that replaces a specific color in a video with a different background image or video, enabling seamless integration of diverse environments.
|
|
84
|
+
*/
|
|
85
|
+
exports.chromakeyChromaKeySchema = zod_1.z.object({
|
|
86
|
+
color: zod_1.z.optional(zod_1.z.string()),
|
|
87
|
+
threshold: zod_1.z.optional(zod_1.z.int().gte(0).lte(250)),
|
|
88
|
+
halo: zod_1.z.optional(zod_1.z.int().gte(0).lte(250)),
|
|
89
|
+
});
|
|
90
|
+
exports.chromaKeySchema = exports.chromakeyChromaKeySchema;
|
|
91
|
+
/**
|
|
92
|
+
* Options for the D-ID text-to-avatar service. Set the text to be converted to an avatar and configure the avatar and background. The output will be generated as an MP4 video file.
|
|
93
|
+
*/
|
|
94
|
+
exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema = zod_1.z.object({
|
|
95
|
+
type: zod_1.z.enum(["text-to-avatar"]),
|
|
96
|
+
text: zod_1.z.string(),
|
|
97
|
+
avatar: zod_1.z.enum(["jack", "lana", "lily", "matt", "rian"]),
|
|
98
|
+
background: zod_1.z.optional(zod_1.z.string()),
|
|
99
|
+
});
|
|
100
|
+
exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
|
|
101
|
+
/**
|
|
102
|
+
* Generate assets using the third party D-ID provider AI services.
|
|
103
|
+
*
|
|
104
|
+
* The following AI generation services are available: <ul>
|
|
105
|
+
* <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
|
|
106
|
+
* </ul>
|
|
107
|
+
*/
|
|
108
|
+
exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = zod_1.z
|
|
109
|
+
.object({
|
|
110
|
+
type: zod_1.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions"),
|
|
111
|
+
})
|
|
112
|
+
.and(exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
|
|
113
|
+
exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
|
|
114
|
+
/**
|
|
115
|
+
* Generate assets using D-ID. D-ID provide a text-to-avatar service. The D-ID provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/d-id), not in the request.
|
|
116
|
+
*/
|
|
117
|
+
exports.didGeneratedAssetDidGeneratedAssetSchema = zod_1.z.object({
|
|
118
|
+
provider: zod_1.z.enum(["d-id"]),
|
|
119
|
+
options: exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
|
|
120
|
+
});
|
|
121
|
+
exports.didGeneratedAssetSchema = exports.didGeneratedAssetDidGeneratedAssetSchema;
|
|
122
|
+
/**
|
|
123
|
+
* Options for the ElevenLabs text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
|
|
124
|
+
*/
|
|
125
|
+
exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = zod_1.z.object({
|
|
126
|
+
type: zod_1.z.enum(["text-to-speech"]),
|
|
127
|
+
text: zod_1.z.string(),
|
|
128
|
+
voice: zod_1.z.enum([
|
|
129
|
+
"Adam",
|
|
130
|
+
"Antoni",
|
|
131
|
+
"Arnold",
|
|
132
|
+
"Bella",
|
|
133
|
+
"Domi",
|
|
134
|
+
"Elli",
|
|
135
|
+
"Josh",
|
|
136
|
+
"Rachel",
|
|
137
|
+
"Sam",
|
|
138
|
+
]),
|
|
139
|
+
});
|
|
140
|
+
exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
|
|
141
|
+
/**
|
|
142
|
+
* Generate assets using the third party ElevenLabs provider AI services.
|
|
143
|
+
*
|
|
144
|
+
* The following AI generation services are available: <ul>
|
|
145
|
+
* <li><a href="#tocs_elevenlabstexttospeechoptions">ElevenLabsTextToSpeechOptions</a></li>
|
|
146
|
+
* </ul>
|
|
147
|
+
*/
|
|
148
|
+
exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = zod_1.z
|
|
149
|
+
.object({
|
|
150
|
+
type: zod_1.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions"),
|
|
151
|
+
})
|
|
152
|
+
.and(exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
|
|
153
|
+
exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
|
|
154
|
+
/**
|
|
155
|
+
* Generate assets using ElevenLabs. ElevenLabs provide a text-to-speech service. The ElevenLabs provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/elevenlabs), not in the request.
|
|
156
|
+
*/
|
|
157
|
+
exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = zod_1.z.object({
|
|
158
|
+
provider: zod_1.z.enum(["elevenlabs"]),
|
|
159
|
+
options: exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
|
|
160
|
+
});
|
|
161
|
+
exports.elevenLabsGeneratedAssetSchema = exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
|
|
162
|
+
/**
|
|
163
|
+
* Options for the HeyGen text-to-avatar service. Set the text to be converted to an avatar and configure the avatars voice, speaking style, appearance and background. The output will be generated as an MP4 video file available at the URL returned in the response.
|
|
164
|
+
*/
|
|
165
|
+
exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = zod_1.z.object({
|
|
166
|
+
type: zod_1.z.enum(["text-to-avatar"]),
|
|
167
|
+
text: zod_1.z.string(),
|
|
168
|
+
avatar: zod_1.z.enum([
|
|
169
|
+
"Angela",
|
|
170
|
+
"Bill",
|
|
171
|
+
"Daisy",
|
|
172
|
+
"Derek",
|
|
173
|
+
"Eva",
|
|
174
|
+
"Jake",
|
|
175
|
+
"Jeff",
|
|
176
|
+
"Jerome",
|
|
177
|
+
"Joon",
|
|
178
|
+
"Kayla",
|
|
179
|
+
"Kent",
|
|
180
|
+
"Luna",
|
|
181
|
+
"Mark",
|
|
182
|
+
"Matthew",
|
|
183
|
+
"Monica",
|
|
184
|
+
"Peter",
|
|
185
|
+
"Selina",
|
|
186
|
+
"Tanya",
|
|
187
|
+
"Thomas",
|
|
188
|
+
"Tina",
|
|
189
|
+
"Tyler",
|
|
190
|
+
"Vanessa",
|
|
191
|
+
"Vera",
|
|
192
|
+
"Wilson",
|
|
193
|
+
"Zoey",
|
|
194
|
+
]),
|
|
195
|
+
voice: zod_1.z.enum([
|
|
196
|
+
"Abbi - Natural",
|
|
197
|
+
"Adam - Natural",
|
|
198
|
+
"Aiston - Friendly",
|
|
199
|
+
"Alice - Newscaster",
|
|
200
|
+
"Alison - Cheerful",
|
|
201
|
+
"Amber - Friendly",
|
|
202
|
+
"Amy - Warm",
|
|
203
|
+
"Ana - Cheerful",
|
|
204
|
+
"Antoni - Friendly",
|
|
205
|
+
"Aria - Newscaster",
|
|
206
|
+
"Arnold - Cheerful",
|
|
207
|
+
"Arthur - Natural",
|
|
208
|
+
"Bella - Friendly",
|
|
209
|
+
"Belle - Natural",
|
|
210
|
+
"Brandon - Warm",
|
|
211
|
+
"Brian - Natural",
|
|
212
|
+
"Bruce - Natural",
|
|
213
|
+
"Cerise - Cheerful",
|
|
214
|
+
"Christopher - Calm",
|
|
215
|
+
"Clara - Professional",
|
|
216
|
+
"Connor - Natural",
|
|
217
|
+
"Dahlia - Friendly",
|
|
218
|
+
"Davis - Professional",
|
|
219
|
+
"Dean - Natural",
|
|
220
|
+
"Delbert - Cheerful",
|
|
221
|
+
"Edward - Friendly",
|
|
222
|
+
"Elaine - Calm",
|
|
223
|
+
"Emily - Natural",
|
|
224
|
+
"Emma - Newscaster",
|
|
225
|
+
"Eric - Newscaster",
|
|
226
|
+
"Grace - Natural",
|
|
227
|
+
"Hailey - Calm",
|
|
228
|
+
"Indira - Cheerful",
|
|
229
|
+
"Isabella - Cheerful",
|
|
230
|
+
"Jacob - Natural",
|
|
231
|
+
"Jahmai - Friendly",
|
|
232
|
+
"Jane - Serious",
|
|
233
|
+
"Jason - Serious",
|
|
234
|
+
"Jelle - Friendly",
|
|
235
|
+
"Jen - Natural",
|
|
236
|
+
"Jenny - Professional",
|
|
237
|
+
"Jodi - Cheerful",
|
|
238
|
+
"Joey - Calm",
|
|
239
|
+
"Johan - Friendly",
|
|
240
|
+
"Josie - Cheerful",
|
|
241
|
+
"Keanan - Natural",
|
|
242
|
+
"Keith - Cheerful",
|
|
243
|
+
"Kellie - Friendly",
|
|
244
|
+
"Lauren - Friendly",
|
|
245
|
+
"Leah - Natural",
|
|
246
|
+
"Liam - Professional",
|
|
247
|
+
"Libby - Natural",
|
|
248
|
+
"Lily - Professional",
|
|
249
|
+
"Lucas - Natural",
|
|
250
|
+
"Luke - Professional",
|
|
251
|
+
"Luna - Natural",
|
|
252
|
+
"Marieke - Natural",
|
|
253
|
+
"Matthew - Professional",
|
|
254
|
+
"Michelle - Natural",
|
|
255
|
+
"Mitchell - Natural",
|
|
256
|
+
"Molly - Newscaster",
|
|
257
|
+
"Monica - Calm",
|
|
258
|
+
"Natasha - Professional",
|
|
259
|
+
"Neerja - Newscaster",
|
|
260
|
+
"Noah - Serious",
|
|
261
|
+
"Oliver - Newscaster",
|
|
262
|
+
"Olivia - Calm",
|
|
263
|
+
"Paul - Natural",
|
|
264
|
+
"Prabhat - Natural",
|
|
265
|
+
"Raveena - Natural",
|
|
266
|
+
"Rudi - Friendly",
|
|
267
|
+
"Ryan - Professional",
|
|
268
|
+
"Sam - Natural",
|
|
269
|
+
"Sara - Cheerful",
|
|
270
|
+
"Sherry - Friendly",
|
|
271
|
+
"Sonia - Warm",
|
|
272
|
+
"Thomas - Natural",
|
|
273
|
+
"Todd - Professional",
|
|
274
|
+
"Tony - Professional",
|
|
275
|
+
"Tracy - Cheerful",
|
|
276
|
+
"Wayne - Natural",
|
|
277
|
+
"Wilder - Natural",
|
|
278
|
+
"Wille - Natural",
|
|
279
|
+
"William - Friendly",
|
|
280
|
+
]),
|
|
281
|
+
avatarStyle: zod_1.z.optional(zod_1.z.enum(["normal", "circle"])),
|
|
282
|
+
background: zod_1.z.optional(zod_1.z.string()),
|
|
283
|
+
ratio: zod_1.z.optional(zod_1.z.enum(["16:9", "9:16"])),
|
|
284
|
+
test: zod_1.z.optional(zod_1.z.boolean()),
|
|
285
|
+
});
|
|
286
|
+
exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
|
|
287
|
+
/**
|
|
288
|
+
* Generate assets using the third party HeyGen provider AI services.
|
|
289
|
+
*
|
|
290
|
+
* The following AI generation services are available: <ul>
|
|
291
|
+
* <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
|
|
292
|
+
* </ul>
|
|
293
|
+
*/
|
|
294
|
+
exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = zod_1.z
|
|
295
|
+
.object({
|
|
296
|
+
type: zod_1.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions"),
|
|
297
|
+
})
|
|
298
|
+
.and(exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
|
|
299
|
+
exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
|
|
300
|
+
/**
|
|
301
|
+
* Generate assets using HeyGen. HeyGen provide a text-to-avatar service. The HeyGen provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/heygen), not in the request.
|
|
302
|
+
*/
|
|
303
|
+
exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema = zod_1.z.object({
|
|
304
|
+
provider: zod_1.z.enum(["heygen"]),
|
|
305
|
+
options: exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
|
|
306
|
+
});
|
|
307
|
+
exports.heyGenGeneratedAssetSchema = exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema;
|
|
308
|
+
/**
|
|
309
|
+
* Options for the OpenAI text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
|
|
310
|
+
*/
|
|
311
|
+
exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = zod_1.z.object({
|
|
312
|
+
type: zod_1.z.enum(["text-generator"]),
|
|
313
|
+
prompt: zod_1.z.string(),
|
|
314
|
+
model: zod_1.z.enum(["gpt-3.5-turbo", "gpt-4"]),
|
|
315
|
+
systemPrompt: zod_1.z.optional(zod_1.z.string()),
|
|
316
|
+
});
|
|
317
|
+
exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
|
|
318
|
+
/**
|
|
319
|
+
* Generate assets using OpenAI provider AI services.
|
|
320
|
+
*
|
|
321
|
+
* The following AI generation services are available: <ul>
|
|
322
|
+
* <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
|
|
323
|
+
* </ul>
|
|
324
|
+
*/
|
|
325
|
+
exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = zod_1.z
|
|
326
|
+
.object({
|
|
327
|
+
type: zod_1.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions"),
|
|
328
|
+
})
|
|
329
|
+
.and(exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
|
|
330
|
+
exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
|
|
331
|
+
/**
|
|
332
|
+
* Generate assets using OpenAI. OpenAI provide a text generation service using ChatGPT 3.5 and 4. The OpenAI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/openai), not in the request.
|
|
333
|
+
*/
|
|
334
|
+
exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema = zod_1.z.object({
|
|
335
|
+
provider: zod_1.z.enum(["openai"]),
|
|
336
|
+
options: exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
|
|
337
|
+
});
|
|
338
|
+
exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema;
|
|
339
|
+
/**
|
|
340
|
+
* Individual errors returned by the Create API.
|
|
341
|
+
*/
|
|
342
|
+
exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = zod_1.z.object({
|
|
343
|
+
status: zod_1.z.string(),
|
|
344
|
+
title: zod_1.z.string(),
|
|
345
|
+
detail: zod_1.z.string(),
|
|
346
|
+
});
|
|
347
|
+
exports.generatedAssetErrorResponseDataSchema = exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
|
|
348
|
+
/**
|
|
349
|
+
* Error response data for validation and other errors returned by the Create API.
|
|
350
|
+
*/
|
|
351
|
+
exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = zod_1.z.object({
|
|
352
|
+
errors: zod_1.z.array(exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema),
|
|
353
|
+
});
|
|
354
|
+
exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
|
|
355
|
+
/**
|
|
356
|
+
* The id and attributes of the generated asset.
|
|
357
|
+
*/
|
|
358
|
+
exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = zod_1.z.object({
|
|
359
|
+
owner: zod_1.z.string(),
|
|
360
|
+
provider: zod_1.z.enum(["shotstack", "elevenlabs", "heygen", "d-id"]),
|
|
361
|
+
type: zod_1.z.enum(["text-to-speech", "text-to-avatar"]),
|
|
362
|
+
url: zod_1.z.optional(zod_1.z.string()),
|
|
363
|
+
status: zod_1.z.enum(["queued", "processing", "saving", "done", "failed"]),
|
|
364
|
+
created: zod_1.z.string(),
|
|
365
|
+
updated: zod_1.z.string(),
|
|
366
|
+
});
|
|
367
|
+
exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
|
|
368
|
+
/**
|
|
369
|
+
* The type of resource (an asset), it's id and attributes of the generated file.
|
|
370
|
+
*/
|
|
371
|
+
exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema = zod_1.z.object({
|
|
372
|
+
type: zod_1.z.string(),
|
|
373
|
+
id: zod_1.z.string(),
|
|
374
|
+
attributes: exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
|
|
375
|
+
});
|
|
376
|
+
exports.generatedAssetResponseDataSchema = exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema;
|
|
377
|
+
/**
|
|
378
|
+
* The response returned by the Create API [generate asset](#generate-asset) and [get generated asset](#get-generated-asset) requests. Includes status and details of the generated asset. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
379
|
+
*/
|
|
380
|
+
exports.generatedAssetResponseGeneratedAssetResponseSchema = zod_1.z.object({
|
|
381
|
+
data: exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema,
|
|
382
|
+
});
|
|
383
|
+
exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAssetResponseSchema;
|
|
384
|
+
/**
|
|
385
|
+
* Options for the Shotstack image-to-video service. Set the URL of an image to convert in to a video. The output will be generated as an MP4 file available at the URL returned in the response.
|
|
386
|
+
*/
|
|
387
|
+
exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = zod_1.z.object({
|
|
388
|
+
type: zod_1.z.enum(["image-to-video"]),
|
|
389
|
+
imageUrl: zod_1.z.string(),
|
|
390
|
+
guidanceScale: zod_1.z.optional(zod_1.z.number()).default(1.8),
|
|
391
|
+
motion: zod_1.z.optional(zod_1.z.int()).default(127),
|
|
392
|
+
});
|
|
393
|
+
exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
|
|
394
|
+
/**
|
|
395
|
+
* Options for the Shotstack text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
|
|
396
|
+
*/
|
|
397
|
+
exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = zod_1.z.object({
|
|
398
|
+
type: zod_1.z.enum(["text-generator"]),
|
|
399
|
+
prompt: zod_1.z.string(),
|
|
400
|
+
});
|
|
401
|
+
exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
|
|
402
|
+
/**
|
|
403
|
+
* Options for the Shotstack text-to-image service. Set a text prompt to generate an image from. The output will be generated as a PNG file available at the URL returned in the response.
|
|
404
|
+
*/
|
|
405
|
+
exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = zod_1.z.object({
|
|
406
|
+
type: zod_1.z.enum(["text-to-image"]),
|
|
407
|
+
prompt: zod_1.z.string(),
|
|
408
|
+
width: zod_1.z.int(),
|
|
409
|
+
height: zod_1.z.int(),
|
|
410
|
+
});
|
|
411
|
+
exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
|
|
412
|
+
/**
|
|
413
|
+
* Options for the Shotstack text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
|
|
414
|
+
*/
|
|
415
|
+
exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = zod_1.z.object({
|
|
416
|
+
type: zod_1.z.enum(["text-to-speech"]),
|
|
417
|
+
text: zod_1.z.string(),
|
|
418
|
+
voice: zod_1.z.enum([
|
|
419
|
+
"Hala",
|
|
420
|
+
"Lisa",
|
|
421
|
+
"Arlet",
|
|
422
|
+
"Hiujin",
|
|
423
|
+
"Zhiyu",
|
|
424
|
+
"Sofie",
|
|
425
|
+
"Laura",
|
|
426
|
+
"Olivia",
|
|
427
|
+
"Amy",
|
|
428
|
+
"Emma",
|
|
429
|
+
"Brian",
|
|
430
|
+
"Arthur",
|
|
431
|
+
"Kajal",
|
|
432
|
+
"Niamh",
|
|
433
|
+
"Aria",
|
|
434
|
+
"Ayanda",
|
|
435
|
+
"Ivy",
|
|
436
|
+
"Joanna",
|
|
437
|
+
"Kendra",
|
|
438
|
+
"Kimberly",
|
|
439
|
+
"Salli",
|
|
440
|
+
"Joey",
|
|
441
|
+
"Justin",
|
|
442
|
+
"Kevin",
|
|
443
|
+
"Matthew",
|
|
444
|
+
"Ruth",
|
|
445
|
+
"Stephen",
|
|
446
|
+
"Suvi",
|
|
447
|
+
"Léa",
|
|
448
|
+
"Rémi",
|
|
449
|
+
"Gabrielle",
|
|
450
|
+
"Liam",
|
|
451
|
+
"Vicki",
|
|
452
|
+
"Daniel",
|
|
453
|
+
"Hannah",
|
|
454
|
+
"Kajal",
|
|
455
|
+
"Bianca",
|
|
456
|
+
"Adriano",
|
|
457
|
+
"Takumi",
|
|
458
|
+
"Kazuha",
|
|
459
|
+
"Tomoko",
|
|
460
|
+
"Seoyeon",
|
|
461
|
+
"Ida",
|
|
462
|
+
"Ola",
|
|
463
|
+
"Camila",
|
|
464
|
+
"Vitória",
|
|
465
|
+
"Vitoria",
|
|
466
|
+
"Thiago",
|
|
467
|
+
"Inês",
|
|
468
|
+
"Ines",
|
|
469
|
+
"Lucia",
|
|
470
|
+
"Sergio",
|
|
471
|
+
"Mia",
|
|
472
|
+
"Andrés",
|
|
473
|
+
"Lupe",
|
|
474
|
+
"Pedro",
|
|
475
|
+
"Elin",
|
|
476
|
+
]),
|
|
477
|
+
language: zod_1.z.optional(zod_1.z.enum([
|
|
478
|
+
"cmn-CN",
|
|
479
|
+
"da-DK",
|
|
480
|
+
"de-DE",
|
|
481
|
+
"en-AU",
|
|
482
|
+
"en-GB",
|
|
483
|
+
"en-IN",
|
|
484
|
+
"en-US",
|
|
485
|
+
"es-ES",
|
|
486
|
+
"es-MX",
|
|
487
|
+
"es-US",
|
|
488
|
+
"fr-CA",
|
|
489
|
+
"fr-FR",
|
|
490
|
+
"it-IT",
|
|
491
|
+
"ja-JP",
|
|
492
|
+
"hi-IN",
|
|
493
|
+
"ko-KR",
|
|
494
|
+
"nb-NO",
|
|
495
|
+
"nl-NL",
|
|
496
|
+
"pl-PL",
|
|
497
|
+
"pt-BR",
|
|
498
|
+
"pt-PT",
|
|
499
|
+
"sv-SE",
|
|
500
|
+
"en-NZ",
|
|
501
|
+
"en-ZA",
|
|
502
|
+
"ca-ES",
|
|
503
|
+
"de-AT",
|
|
504
|
+
"yue-CN",
|
|
505
|
+
"ar-AE",
|
|
506
|
+
"fi-FI",
|
|
507
|
+
])),
|
|
508
|
+
newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
509
|
+
});
|
|
510
|
+
exports.shotstackTextToSpeechOptionsSchema = exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
|
|
511
|
+
/**
|
|
512
|
+
* Generate assets using the native Shotstack provider AI services.
|
|
513
|
+
*/
|
|
514
|
+
exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = zod_1.z.union([
|
|
515
|
+
zod_1.z
|
|
516
|
+
.object({
|
|
517
|
+
type: zod_1.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions"),
|
|
518
|
+
})
|
|
519
|
+
.and(exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
|
|
520
|
+
zod_1.z
|
|
521
|
+
.object({
|
|
522
|
+
type: zod_1.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions"),
|
|
523
|
+
})
|
|
524
|
+
.and(exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
|
|
525
|
+
zod_1.z
|
|
526
|
+
.object({
|
|
527
|
+
type: zod_1.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions"),
|
|
528
|
+
})
|
|
529
|
+
.and(exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
|
|
530
|
+
zod_1.z
|
|
531
|
+
.object({
|
|
532
|
+
type: zod_1.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions"),
|
|
533
|
+
})
|
|
534
|
+
.and(exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema),
|
|
535
|
+
]);
|
|
536
|
+
exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
|
|
537
|
+
/**
|
|
538
|
+
* Generate assets using the native Shotstack provider. Shotstack provides a text-to-speech and a text-to-image service. The Shotstack provider works natively with your existing API key, no additional credentials are required.
|
|
539
|
+
*/
|
|
540
|
+
exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema = zod_1.z.object({
|
|
541
|
+
provider: zod_1.z.enum(["shotstack"]),
|
|
542
|
+
options: exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
|
|
543
|
+
});
|
|
544
|
+
exports.shotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema;
|
|
545
|
+
/**
|
|
546
|
+
* Options for the Stability AI text-to-image service. Set a text prompt to generate an image from plus other engine and configuration options. The output will be generated as a JPG file available at the URL returned in the response.
|
|
547
|
+
*/
|
|
548
|
+
exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1.z.object({
|
|
549
|
+
type: zod_1.z.enum(["text-to-image"]),
|
|
550
|
+
prompt: zod_1.z.string(),
|
|
551
|
+
engine: zod_1.z.optional(zod_1.z.enum([
|
|
552
|
+
"stable-diffusion-xl-1024-v0-9",
|
|
553
|
+
"stable-diffusion-xl-1024-v1-0",
|
|
554
|
+
"stable-diffusion-v1-6",
|
|
555
|
+
"stable-diffusion-512-v2-1",
|
|
556
|
+
"stable-diffusion-xl-beta-v2-2-2",
|
|
557
|
+
])),
|
|
558
|
+
width: zod_1.z.int(),
|
|
559
|
+
height: zod_1.z.int(),
|
|
560
|
+
steps: zod_1.z.optional(zod_1.z.int()).default(30),
|
|
561
|
+
seed: zod_1.z.optional(zod_1.z.int()).default(0),
|
|
562
|
+
cfgScale: zod_1.z.optional(zod_1.z.number()).default(7),
|
|
563
|
+
stylePreset: zod_1.z.optional(zod_1.z.enum([
|
|
564
|
+
"3d-model",
|
|
565
|
+
"analog-film",
|
|
566
|
+
"anime",
|
|
567
|
+
"cinematic",
|
|
568
|
+
"comic-book",
|
|
569
|
+
"digital-art",
|
|
570
|
+
"enhance",
|
|
571
|
+
"fantasy-art",
|
|
572
|
+
"isometric",
|
|
573
|
+
"line-art",
|
|
574
|
+
"low-poly",
|
|
575
|
+
"modeling-compound",
|
|
576
|
+
"neon-punk",
|
|
577
|
+
"origami",
|
|
578
|
+
"photographic",
|
|
579
|
+
"pixel-art",
|
|
580
|
+
"tile-texture",
|
|
581
|
+
])),
|
|
582
|
+
});
|
|
583
|
+
exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
|
|
584
|
+
/**
|
|
585
|
+
* Generate assets using Stability AI provider AI services.
|
|
586
|
+
*
|
|
587
|
+
* The following AI generation services are available: <ul>
|
|
588
|
+
* <li><a href="#tocs_stabilityaitexttoimageoptions">StabilityAiTextToImageOptions</a></li>
|
|
589
|
+
* </ul>
|
|
590
|
+
*/
|
|
591
|
+
exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = zod_1.z
|
|
592
|
+
.object({
|
|
593
|
+
type: zod_1.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions"),
|
|
594
|
+
})
|
|
595
|
+
.and(exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
|
|
596
|
+
exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
|
|
597
|
+
/**
|
|
598
|
+
* Generate assets using Stability AI. Stability AI provide a text-to-image service using Stable Diffusion. The Stability AI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/stability-ai), not in the request.
|
|
599
|
+
*/
|
|
600
|
+
exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = zod_1.z.object({
|
|
601
|
+
provider: zod_1.z.enum(["stability-ai"]),
|
|
602
|
+
options: exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
|
|
603
|
+
});
|
|
604
|
+
exports.stabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
|
|
605
|
+
/**
|
|
606
|
+
* 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.
|
|
607
|
+
*/
|
|
608
|
+
exports.generatedAssetGeneratedAssetSchema = zod_1.z.union([
|
|
609
|
+
zod_1.z
|
|
610
|
+
.object({
|
|
611
|
+
provider: zod_1.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset"),
|
|
612
|
+
})
|
|
613
|
+
.and(exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema),
|
|
614
|
+
zod_1.z
|
|
615
|
+
.object({
|
|
616
|
+
provider: zod_1.z.literal("didGeneratedAsset_DIDGeneratedAsset"),
|
|
617
|
+
})
|
|
618
|
+
.and(exports.didGeneratedAssetDidGeneratedAssetSchema),
|
|
619
|
+
zod_1.z
|
|
620
|
+
.object({
|
|
621
|
+
provider: zod_1.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset"),
|
|
622
|
+
})
|
|
623
|
+
.and(exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
|
|
624
|
+
zod_1.z
|
|
625
|
+
.object({
|
|
626
|
+
provider: zod_1.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset"),
|
|
627
|
+
})
|
|
628
|
+
.and(exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema),
|
|
629
|
+
zod_1.z
|
|
630
|
+
.object({
|
|
631
|
+
provider: zod_1.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset"),
|
|
632
|
+
})
|
|
633
|
+
.and(exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema),
|
|
634
|
+
zod_1.z
|
|
635
|
+
.object({
|
|
636
|
+
provider: zod_1.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset"),
|
|
637
|
+
})
|
|
638
|
+
.and(exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema),
|
|
639
|
+
]);
|
|
640
|
+
exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema;
|
|
641
|
+
/**
|
|
642
|
+
* 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.
|
|
643
|
+
*/
|
|
644
|
+
exports.cropCropSchema = zod_1.z.object({
|
|
645
|
+
top: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)),
|
|
646
|
+
bottom: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)),
|
|
647
|
+
left: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)),
|
|
648
|
+
right: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)),
|
|
649
|
+
});
|
|
650
|
+
exports.cropSchema = exports.cropCropSchema;
|
|
651
|
+
/**
|
|
652
|
+
* Pass additional options to control how files are stored in Google Cloud Storage.
|
|
653
|
+
*/
|
|
654
|
+
exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = zod_1.z.object({
|
|
655
|
+
bucket: zod_1.z.string(),
|
|
656
|
+
prefix: zod_1.z.optional(zod_1.z.string()),
|
|
657
|
+
filename: zod_1.z.optional(zod_1.z.string()),
|
|
658
|
+
});
|
|
659
|
+
exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
|
|
660
|
+
/**
|
|
661
|
+
* Send videos and assets to a [Google Cloud Storage](https://cloud.google.com/storage) bucket. Send files with your own prefix and filename. Google Cloud credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/google-cloud-storage), not in the request.
|
|
662
|
+
*/
|
|
663
|
+
exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = zod_1.z.object({
|
|
664
|
+
provider: zod_1.z.string().default("google-cloud-storage"),
|
|
665
|
+
options: zod_1.z.optional(exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema),
|
|
666
|
+
});
|
|
667
|
+
exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
|
|
668
|
+
/**
|
|
669
|
+
* Pass the folder ID and options to configure how assets are stored in Google Drive.
|
|
670
|
+
*/
|
|
671
|
+
exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = zod_1.z.object({
|
|
672
|
+
folderId: zod_1.z.string(),
|
|
673
|
+
filename: zod_1.z.optional(zod_1.z.string()),
|
|
674
|
+
});
|
|
675
|
+
exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
|
|
676
|
+
/**
|
|
677
|
+
* Send rendered videos and assets to the [Google Drive](https://shotstack.io/docs/guide/serving-assets/destinations/google-drive/) cloud storage service. Google Drive uses OAuth and you must authenticate and link your Google account via [dashboard](https://dashboard.shotstack.io/integrations/google-drive), not in the request.
|
|
678
|
+
*/
|
|
679
|
+
exports.googleDriveDestinationGoogleDriveDestinationSchema = zod_1.z.object({
|
|
680
|
+
provider: zod_1.z.string().default("google-drive"),
|
|
681
|
+
options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
|
|
682
|
+
});
|
|
683
|
+
exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema;
|
|
684
|
+
/**
|
|
685
|
+
* Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
|
|
686
|
+
*/
|
|
687
|
+
exports.muxDestinationOptionsMuxDestinationOptionsSchema = zod_1.z.object({
|
|
688
|
+
playbackPolicy: zod_1.z.optional(zod_1.z.array(zod_1.z.enum(["public", "signed"]))),
|
|
689
|
+
passthrough: zod_1.z.optional(zod_1.z.string().max(255)),
|
|
690
|
+
});
|
|
691
|
+
exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinationOptionsSchema;
|
|
692
|
+
/**
|
|
693
|
+
* Send videos to the [Mux](https://shotstack.io/docs/guide/serving-assets/destinations/mux/) video hosting and streaming service. Mux credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/mux), not in the request.
|
|
694
|
+
*/
|
|
695
|
+
exports.muxDestinationMuxDestinationSchema = zod_1.z.object({
|
|
696
|
+
provider: zod_1.z.string().default("mux"),
|
|
697
|
+
options: zod_1.z.optional(exports.muxDestinationOptionsMuxDestinationOptionsSchema),
|
|
698
|
+
});
|
|
699
|
+
exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema;
|
|
700
|
+
/**
|
|
701
|
+
* Pass additional options to control how files are stored in S3.
|
|
702
|
+
*/
|
|
703
|
+
exports.s3DestinationOptionsS3DestinationOptionsSchema = zod_1.z.object({
|
|
704
|
+
region: zod_1.z.string(),
|
|
705
|
+
bucket: zod_1.z.string(),
|
|
706
|
+
prefix: zod_1.z.optional(zod_1.z.string()),
|
|
707
|
+
filename: zod_1.z.optional(zod_1.z.string()),
|
|
708
|
+
acl: zod_1.z.optional(zod_1.z.string()),
|
|
709
|
+
});
|
|
710
|
+
exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOptionsSchema;
|
|
711
|
+
/**
|
|
712
|
+
* Send videos and assets to an [Amazon S3](https://shotstack.io/docs/guide/serving-assets/destinations/s3/) bucket. Send files to any region with your own prefix and filename. AWS credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/s3), not in the request.
|
|
713
|
+
*/
|
|
714
|
+
exports.s3DestinationS3DestinationSchema = zod_1.z.object({
|
|
715
|
+
provider: zod_1.z.string().default("s3"),
|
|
716
|
+
options: zod_1.z.optional(exports.s3DestinationOptionsS3DestinationOptionsSchema),
|
|
717
|
+
});
|
|
718
|
+
exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
|
|
719
|
+
/**
|
|
720
|
+
* Send videos and assets to the [Shotstack hosting and CDN](https://shotstack.io/docs/guide/serving-assets/destinations/shotstack/) service. This destination is enabled by default.
|
|
721
|
+
*/
|
|
722
|
+
exports.shotstackDestinationShotstackDestinationSchema = zod_1.z.object({
|
|
723
|
+
provider: zod_1.z.string().default("shotstack"),
|
|
724
|
+
exclude: zod_1.z.optional(zod_1.z.boolean()),
|
|
725
|
+
});
|
|
726
|
+
exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema;
|
|
727
|
+
/**
|
|
728
|
+
* Options to control the visibility of videos and privacy features.
|
|
729
|
+
*/
|
|
730
|
+
exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = zod_1.z.object({
|
|
731
|
+
view: zod_1.z.optional(zod_1.z.enum(["anybody", "nobody", "contacts", "password", "unlisted"])),
|
|
732
|
+
embed: zod_1.z.optional(zod_1.z.enum(["public", "private", "whitelist"])),
|
|
733
|
+
comments: zod_1.z.optional(zod_1.z.enum(["anybody", "nobody", "contacts"])),
|
|
734
|
+
});
|
|
735
|
+
exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
|
|
736
|
+
/**
|
|
737
|
+
* Pass additional options to control how Vimeo publishes video, including name, description and privacy settings.
|
|
738
|
+
*/
|
|
739
|
+
exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = zod_1.z.object({
|
|
740
|
+
name: zod_1.z.optional(zod_1.z.string()),
|
|
741
|
+
description: zod_1.z.optional(zod_1.z.string()),
|
|
742
|
+
privacy: zod_1.z.optional(exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
|
|
743
|
+
});
|
|
744
|
+
exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema;
|
|
745
|
+
/**
|
|
746
|
+
* Send videos to [Vimeo](https://shotstack.io/docs/guide/serving-assets/destinations/vimeo/) video hosting and streaming service. Vimeo credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/vimeo), not in the request.
|
|
747
|
+
*/
|
|
748
|
+
exports.vimeoDestinationVimeoDestinationSchema = zod_1.z.object({
|
|
749
|
+
provider: zod_1.z.string().default("vimeo"),
|
|
750
|
+
options: zod_1.z.optional(exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema),
|
|
751
|
+
});
|
|
752
|
+
exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema;
|
|
753
|
+
/**
|
|
754
|
+
* A destination is a location where assets can be sent to for serving or hosting. Videos, images and audio files that are rendered by the [Edit API](#shotstack-edit) and [source](#tocs_source) and [rendition](#tocs_rendition) files generated by the [Ingest API](#shotstack-ingest) can be sent to destinations. You can also fetch a file from any public URL and [transfer](#transfer-asset) it to a destination. A file can be sent to one or more destinations including 3rd party destinations.
|
|
755
|
+
*
|
|
756
|
+
* By default all ingested and generated assets are automatically sent to the [Shotstack hosting destination](https://shotstack.io/docs/guide/serving-assets/hosting/). You can [opt-out](https://shotstack.io/docs/guide/serving-assets/self-host/) from by setting the Shotstack destination **exclude** property to **true**.
|
|
757
|
+
*/
|
|
758
|
+
exports.destinationsDestinationsSchema = zod_1.z.union([
|
|
759
|
+
zod_1.z
|
|
760
|
+
.object({
|
|
761
|
+
destinations: zod_1.z.optional(zod_1.z.literal("shotstackDestination_ShotstackDestination")),
|
|
762
|
+
})
|
|
763
|
+
.and(exports.shotstackDestinationShotstackDestinationSchema),
|
|
764
|
+
zod_1.z
|
|
765
|
+
.object({
|
|
766
|
+
destinations: zod_1.z.optional(zod_1.z.literal("muxDestination_MuxDestination")),
|
|
767
|
+
})
|
|
768
|
+
.and(exports.muxDestinationMuxDestinationSchema),
|
|
769
|
+
zod_1.z
|
|
770
|
+
.object({
|
|
771
|
+
destinations: zod_1.z.optional(zod_1.z.literal("s3Destination_S3Destination")),
|
|
772
|
+
})
|
|
773
|
+
.and(exports.s3DestinationS3DestinationSchema),
|
|
774
|
+
zod_1.z
|
|
775
|
+
.object({
|
|
776
|
+
destinations: zod_1.z.optional(zod_1.z.literal("googleCloudStorageDestination_GoogleCloudStorageDestination")),
|
|
777
|
+
})
|
|
778
|
+
.and(exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema),
|
|
779
|
+
zod_1.z
|
|
780
|
+
.object({
|
|
781
|
+
destinations: zod_1.z.optional(zod_1.z.literal("googleDriveDestination_GoogleDriveDestination")),
|
|
782
|
+
})
|
|
783
|
+
.and(exports.googleDriveDestinationGoogleDriveDestinationSchema),
|
|
784
|
+
zod_1.z
|
|
785
|
+
.object({
|
|
786
|
+
destinations: zod_1.z.optional(zod_1.z.literal("vimeoDestination_VimeoDestination")),
|
|
787
|
+
})
|
|
788
|
+
.and(exports.vimeoDestinationVimeoDestinationSchema),
|
|
789
|
+
]);
|
|
790
|
+
exports.destinationsSchema = exports.destinationsDestinationsSchema;
|
|
791
|
+
/**
|
|
792
|
+
* Flip a clip vertically or horizontally. Acts as a mirror effect of the clip along the selected plane.
|
|
793
|
+
*/
|
|
794
|
+
exports.fliptransformationFlipTransformationSchema = zod_1.z.object({
|
|
795
|
+
horizontal: zod_1.z.optional(zod_1.z.boolean()),
|
|
796
|
+
vertical: zod_1.z.optional(zod_1.z.boolean()),
|
|
797
|
+
});
|
|
798
|
+
exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema;
|
|
799
|
+
/**
|
|
800
|
+
* Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag. See our [custom fonts](https://shotstack.io/learn/html-custom-fonts/) getting started guide for more details.
|
|
801
|
+
*/
|
|
802
|
+
exports.fontFontSchema = zod_1.z.object({
|
|
803
|
+
src: zod_1.z.string(),
|
|
804
|
+
});
|
|
805
|
+
exports.fontSchema = exports.fontFontSchema;
|
|
806
|
+
/**
|
|
807
|
+
* **Notice: The HtmlAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
|
|
808
|
+
*
|
|
809
|
+
* The HtmlAsset clip type lets you create text based layout and formatting using
|
|
810
|
+
* HTML and CSS. You can also set the height and width of a bounding box for the HTML
|
|
811
|
+
* content to sit within. Text and elements will wrap within the bounding box.
|
|
812
|
+
*
|
|
813
|
+
*
|
|
814
|
+
* @deprecated
|
|
815
|
+
*/
|
|
816
|
+
exports.htmlassetHtmlAssetSchema = zod_1.z.object({
|
|
817
|
+
type: zod_1.z.string().default("html"),
|
|
818
|
+
html: zod_1.z.string(),
|
|
819
|
+
css: zod_1.z.optional(zod_1.z.string()),
|
|
820
|
+
width: zod_1.z.optional(zod_1.z.int()),
|
|
821
|
+
height: zod_1.z.optional(zod_1.z.int()),
|
|
822
|
+
background: zod_1.z.optional(zod_1.z.string()),
|
|
823
|
+
position: zod_1.z.optional(zod_1.z.enum([
|
|
824
|
+
"top",
|
|
825
|
+
"topRight",
|
|
826
|
+
"right",
|
|
827
|
+
"bottomRight",
|
|
828
|
+
"bottom",
|
|
829
|
+
"bottomLeft",
|
|
830
|
+
"left",
|
|
831
|
+
"topLeft",
|
|
832
|
+
"center",
|
|
833
|
+
])),
|
|
834
|
+
});
|
|
835
|
+
exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema;
|
|
836
|
+
/**
|
|
837
|
+
* The ImageAsset is used to create video from images to compose an image. The src must be a publicly accessible URL to an image resource such as a jpg or png file.
|
|
838
|
+
*/
|
|
839
|
+
exports.imageassetImageAssetSchema = zod_1.z.object({
|
|
840
|
+
type: zod_1.z.string().default("image"),
|
|
841
|
+
src: zod_1.z.string(),
|
|
842
|
+
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
843
|
+
});
|
|
844
|
+
exports.imageAssetSchema = exports.imageassetImageAssetSchema;
|
|
845
|
+
/**
|
|
846
|
+
* The ImageToVideoAsset lets you create a video from an image and a text prompt.
|
|
847
|
+
*/
|
|
848
|
+
exports.imagetovideoassetImageToVideoAssetSchema = zod_1.z.object({
|
|
849
|
+
type: zod_1.z.optional(zod_1.z.enum(["image-to-video"])),
|
|
850
|
+
src: zod_1.z.optional(zod_1.z.string()),
|
|
851
|
+
prompt: zod_1.z.optional(zod_1.z.string()),
|
|
852
|
+
aspectRatio: zod_1.z.optional(zod_1.z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
|
|
853
|
+
speed: zod_1.z.optional(zod_1.z.number().gte(0).lte(10)),
|
|
854
|
+
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
855
|
+
});
|
|
856
|
+
exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSchema;
|
|
857
|
+
/**
|
|
858
|
+
* Options for the Dolby.io audio enhancement provider.
|
|
859
|
+
*/
|
|
860
|
+
exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = zod_1.z.object({
|
|
861
|
+
preset: zod_1.z.enum([
|
|
862
|
+
"conference",
|
|
863
|
+
"interview",
|
|
864
|
+
"lecture",
|
|
865
|
+
"meeting",
|
|
866
|
+
"mobile_phone",
|
|
867
|
+
"music",
|
|
868
|
+
"podcast",
|
|
869
|
+
"studio",
|
|
870
|
+
"voice_over",
|
|
871
|
+
]),
|
|
872
|
+
});
|
|
873
|
+
exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
|
|
874
|
+
/**
|
|
875
|
+
* Dolby.io audio enhancement provider. Credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/dolby), not in the request.
|
|
876
|
+
*/
|
|
877
|
+
exports.dolbyEnhancementDolbyEnhancementSchema = zod_1.z.object({
|
|
878
|
+
provider: zod_1.z.string().default("dolby"),
|
|
879
|
+
options: exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
|
|
880
|
+
});
|
|
881
|
+
exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
|
|
882
|
+
/**
|
|
883
|
+
* An audio enhancement that can be applied to the audio content of a rendition.
|
|
884
|
+
* The following providers are available: <ul>
|
|
885
|
+
* <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
|
|
886
|
+
* </ul>
|
|
887
|
+
*/
|
|
888
|
+
exports.audioEnhancementAudioEnhancementSchema = zod_1.z
|
|
889
|
+
.object({
|
|
890
|
+
enhancement: zod_1.z.literal("dolbyEnhancement_DolbyEnhancement"),
|
|
891
|
+
})
|
|
892
|
+
.and(exports.dolbyEnhancementDolbyEnhancementSchema);
|
|
893
|
+
exports.audioEnhancementSchema = exports.audioEnhancementAudioEnhancementSchema;
|
|
894
|
+
/**
|
|
895
|
+
* Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
|
|
896
|
+
*/
|
|
897
|
+
exports.enhancementsEnhancementsSchema = zod_1.z.object({
|
|
898
|
+
audio: zod_1.z.optional(exports.audioEnhancementAudioEnhancementSchema),
|
|
899
|
+
});
|
|
900
|
+
exports.enhancementsSchema = exports.enhancementsEnhancementsSchema;
|
|
901
|
+
/**
|
|
902
|
+
* Individual errors returned by the Ingest API.
|
|
903
|
+
*/
|
|
904
|
+
exports.ingesterrorresponsedataIngestErrorResponseDataSchema = zod_1.z.object({
|
|
905
|
+
status: zod_1.z.string(),
|
|
906
|
+
title: zod_1.z.string(),
|
|
907
|
+
detail: zod_1.z.string(),
|
|
908
|
+
});
|
|
909
|
+
exports.ingestErrorResponseDataSchema = exports.ingesterrorresponsedataIngestErrorResponseDataSchema;
|
|
910
|
+
/**
|
|
911
|
+
* Error response data for validation and other errors returned by the Ingest API.
|
|
912
|
+
*/
|
|
913
|
+
exports.ingesterrorresponseIngestErrorResponseSchema = zod_1.z.object({
|
|
914
|
+
errors: zod_1.z.array(exports.ingesterrorresponsedataIngestErrorResponseDataSchema),
|
|
915
|
+
});
|
|
916
|
+
exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorResponseSchema;
|
|
917
|
+
/**
|
|
918
|
+
* The type of resource (a source) and the newly created source id. Returned with [QueuedSourceResponse](#tocs_queuedsourceresponse).
|
|
919
|
+
*/
|
|
920
|
+
exports.queuedsourceresponsedataQueuedSourceResponseDataSchema = zod_1.z.object({
|
|
921
|
+
type: zod_1.z.string(),
|
|
922
|
+
id: zod_1.z.string(),
|
|
923
|
+
});
|
|
924
|
+
exports.queuedSourceResponseDataSchema = exports.queuedsourceresponsedataQueuedSourceResponseDataSchema;
|
|
925
|
+
/**
|
|
926
|
+
* The response returned by the Ingest API [fetch source](#fetch-source) request. Includes the id of the source file. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
927
|
+
*/
|
|
928
|
+
exports.queuedsourceresponseQueuedSourceResponseSchema = zod_1.z.object({
|
|
929
|
+
data: exports.queuedsourceresponsedataQueuedSourceResponseDataSchema,
|
|
930
|
+
});
|
|
931
|
+
exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceResponseSchema;
|
|
932
|
+
/**
|
|
933
|
+
* The id and attributes of the upload file including the signed URL to send the binary file data to.
|
|
934
|
+
*/
|
|
935
|
+
exports.uploadresponseattributesUploadResponseAttributesSchema = zod_1.z.object({
|
|
936
|
+
id: zod_1.z.string(),
|
|
937
|
+
url: zod_1.z.string(),
|
|
938
|
+
expires: zod_1.z.string(),
|
|
939
|
+
});
|
|
940
|
+
exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadResponseAttributesSchema;
|
|
941
|
+
/**
|
|
942
|
+
* The type of resource (an upload), it's id and attributes of the upload request.
|
|
943
|
+
*/
|
|
944
|
+
exports.uploadresponsedataUploadResponseDataSchema = zod_1.z.object({
|
|
945
|
+
type: zod_1.z.string(),
|
|
946
|
+
id: zod_1.z.string(),
|
|
947
|
+
attributes: exports.uploadresponseattributesUploadResponseAttributesSchema,
|
|
948
|
+
});
|
|
949
|
+
exports.uploadResponseDataSchema = exports.uploadresponsedataUploadResponseDataSchema;
|
|
950
|
+
/**
|
|
951
|
+
* The response returned by the Ingest API [direct upload](#direct-upload) request. Includes the id of the file and the signed url to send the binary file to. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
952
|
+
*/
|
|
953
|
+
exports.uploadresponseUploadResponseSchema = zod_1.z.object({
|
|
954
|
+
data: exports.uploadresponsedataUploadResponseDataSchema,
|
|
955
|
+
});
|
|
956
|
+
exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema;
|
|
957
|
+
/**
|
|
958
|
+
* 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.
|
|
959
|
+
*/
|
|
960
|
+
exports.speedSpeedSchema = zod_1.z.object({
|
|
961
|
+
speed: zod_1.z.optional(zod_1.z.number().gte(0).lte(10)),
|
|
962
|
+
preservePitch: zod_1.z.optional(zod_1.z.boolean()),
|
|
963
|
+
});
|
|
964
|
+
exports.speedSchema = exports.speedSpeedSchema;
|
|
965
|
+
/**
|
|
966
|
+
* Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
|
|
967
|
+
*/
|
|
968
|
+
exports.transcriptionTranscriptionSchema = zod_1.z.object({
|
|
969
|
+
format: zod_1.z.optional(zod_1.z.enum(["srt", "vtt"])),
|
|
970
|
+
});
|
|
971
|
+
exports.transcriptionSchema = exports.transcriptionTranscriptionSchema;
|
|
972
|
+
/**
|
|
973
|
+
* The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.
|
|
974
|
+
*/
|
|
975
|
+
exports.lumaassetLumaAssetSchema = zod_1.z.object({
|
|
976
|
+
type: zod_1.z.string().default("luma"),
|
|
977
|
+
src: zod_1.z.string(),
|
|
978
|
+
trim: zod_1.z.optional(zod_1.z.number()),
|
|
979
|
+
});
|
|
980
|
+
exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema;
|
|
981
|
+
/**
|
|
982
|
+
* A merge field consists of a key; `find`, and a value; `replace`. Merge fields can be used to replace placeholders within the JSON edit to create re-usable templates. Placeholders should be a string with double brace delimiters, i.e. `"{{NAME}}"`. A placeholder can be used for any value within the JSON edit.
|
|
983
|
+
*/
|
|
984
|
+
exports.mergefieldMergeFieldSchema = zod_1.z.object({
|
|
985
|
+
find: zod_1.z.string(),
|
|
986
|
+
replace: zod_1.z.unknown(),
|
|
987
|
+
});
|
|
988
|
+
exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema;
|
|
989
|
+
/**
|
|
990
|
+
* 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.
|
|
991
|
+
*/
|
|
992
|
+
exports.posterPosterSchema = zod_1.z.object({
|
|
993
|
+
capture: zod_1.z.number(),
|
|
994
|
+
});
|
|
995
|
+
exports.posterSchema = exports.posterPosterSchema;
|
|
996
|
+
/**
|
|
997
|
+
* 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.
|
|
998
|
+
*/
|
|
999
|
+
exports.rangeRangeSchema = zod_1.z.object({
|
|
1000
|
+
start: zod_1.z.optional(zod_1.z.number().gte(0)),
|
|
1001
|
+
length: zod_1.z.optional(zod_1.z.number().gte(0)),
|
|
1002
|
+
});
|
|
1003
|
+
exports.rangeSchema = exports.rangeRangeSchema;
|
|
1004
|
+
/**
|
|
1005
|
+
* The list of asset attributes and their values.
|
|
1006
|
+
*/
|
|
1007
|
+
exports.assetresponseattributesAssetResponseAttributesSchema = zod_1.z.object({
|
|
1008
|
+
id: zod_1.z.string(),
|
|
1009
|
+
owner: zod_1.z.string(),
|
|
1010
|
+
region: zod_1.z.optional(zod_1.z.string()),
|
|
1011
|
+
renderId: zod_1.z.optional(zod_1.z.string()),
|
|
1012
|
+
providerId: zod_1.z.optional(zod_1.z.string()),
|
|
1013
|
+
filename: zod_1.z.optional(zod_1.z.string()),
|
|
1014
|
+
url: zod_1.z.optional(zod_1.z.string()),
|
|
1015
|
+
status: zod_1.z.enum(["importing", "ready", "failed", "deleted"]),
|
|
1016
|
+
created: zod_1.z.optional(zod_1.z.string()),
|
|
1017
|
+
updated: zod_1.z.optional(zod_1.z.string()),
|
|
1018
|
+
});
|
|
1019
|
+
exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema;
|
|
1020
|
+
/**
|
|
1021
|
+
* The type of resource (an asset) and attributes of the asset.
|
|
1022
|
+
*/
|
|
1023
|
+
exports.assetresponsedataAssetResponseDataSchema = zod_1.z.object({
|
|
1024
|
+
type: zod_1.z.string(),
|
|
1025
|
+
attributes: exports.assetresponseattributesAssetResponseAttributesSchema,
|
|
1026
|
+
});
|
|
1027
|
+
exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema;
|
|
1028
|
+
/**
|
|
1029
|
+
* The response returned by the Serve API [get asset by render id](#get-asset-by-render-id) request. The response is an array of asset resources, including video, image, audio, thumbnail and poster image. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1030
|
+
*/
|
|
1031
|
+
exports.assetrenderresponseAssetRenderResponseSchema = zod_1.z.object({
|
|
1032
|
+
data: zod_1.z.array(exports.assetresponsedataAssetResponseDataSchema),
|
|
1033
|
+
});
|
|
1034
|
+
exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema;
|
|
1035
|
+
/**
|
|
1036
|
+
* The response returned by the Serve API [get asset](#get-asset) request. Includes details of a hosted video, image, audio file, thumbnail or poster image. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1037
|
+
*/
|
|
1038
|
+
exports.assetresponseAssetResponseSchema = zod_1.z.object({
|
|
1039
|
+
data: exports.assetresponsedataAssetResponseDataSchema,
|
|
1040
|
+
});
|
|
1041
|
+
exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
|
|
1042
|
+
/**
|
|
1043
|
+
* The response received after a [probe request](#inspect-media) is submitted. The probe requests returns data from FFprobe formatted as JSON.
|
|
1044
|
+
*/
|
|
1045
|
+
exports.proberesponseProbeResponseSchema = zod_1.z.object({
|
|
1046
|
+
success: zod_1.z.boolean(),
|
|
1047
|
+
message: zod_1.z.string(),
|
|
1048
|
+
response: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
1049
|
+
});
|
|
1050
|
+
exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
|
|
1051
|
+
/**
|
|
1052
|
+
* The response data returned with the [QueuedResponse](#tocs_queuedresponse).
|
|
1053
|
+
*/
|
|
1054
|
+
exports.queuedresponsedataQueuedResponseDataSchema = zod_1.z.object({
|
|
1055
|
+
message: zod_1.z.string(),
|
|
1056
|
+
id: zod_1.z.string(),
|
|
1057
|
+
});
|
|
1058
|
+
exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema;
|
|
1059
|
+
/**
|
|
1060
|
+
* The response received after a [render request](#render-asset) or [template render](#render-template) is submitted. The render task is queued for rendering and a unique render id is returned.
|
|
1061
|
+
*/
|
|
1062
|
+
exports.queuedresponseQueuedResponseSchema = zod_1.z.object({
|
|
1063
|
+
success: zod_1.z.boolean(),
|
|
1064
|
+
message: zod_1.z.string(),
|
|
1065
|
+
response: exports.queuedresponsedataQueuedResponseDataSchema,
|
|
1066
|
+
});
|
|
1067
|
+
exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema;
|
|
1068
|
+
/**
|
|
1069
|
+
* The individual template item returned with the [TemplateListResponseData](#tocs_templatelistresponsedata) templates list.
|
|
1070
|
+
*/
|
|
1071
|
+
exports.templatelistresponseitemTemplateListResponseItemSchema = zod_1.z.object({
|
|
1072
|
+
id: zod_1.z.string(),
|
|
1073
|
+
name: zod_1.z.string(),
|
|
1074
|
+
created: zod_1.z.optional(zod_1.z.string()),
|
|
1075
|
+
updated: zod_1.z.optional(zod_1.z.string()),
|
|
1076
|
+
});
|
|
1077
|
+
exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema;
|
|
1078
|
+
/**
|
|
1079
|
+
* The response data returned with the [TemplateListResponse](#tocs_templatelistresponse).
|
|
1080
|
+
*/
|
|
1081
|
+
exports.templatelistresponsedataTemplateListResponseDataSchema = zod_1.z.object({
|
|
1082
|
+
owner: zod_1.z.string(),
|
|
1083
|
+
templates: zod_1.z.array(exports.templatelistresponseitemTemplateListResponseItemSchema),
|
|
1084
|
+
});
|
|
1085
|
+
exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema;
|
|
1086
|
+
/**
|
|
1087
|
+
* A list of previously saved templates.
|
|
1088
|
+
*/
|
|
1089
|
+
exports.templatelistresponseTemplateListResponseSchema = zod_1.z.object({
|
|
1090
|
+
success: zod_1.z.boolean(),
|
|
1091
|
+
message: zod_1.z.string(),
|
|
1092
|
+
response: exports.templatelistresponsedataTemplateListResponseDataSchema,
|
|
1093
|
+
});
|
|
1094
|
+
exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema;
|
|
1095
|
+
/**
|
|
1096
|
+
* The response data returned with the [TemplateResponse](#tocs_templateresponse).
|
|
1097
|
+
*/
|
|
1098
|
+
exports.templateresponsedataTemplateResponseDataSchema = zod_1.z.object({
|
|
1099
|
+
message: zod_1.z.string(),
|
|
1100
|
+
id: zod_1.z.string(),
|
|
1101
|
+
});
|
|
1102
|
+
exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema;
|
|
1103
|
+
/**
|
|
1104
|
+
* The response received after a [template](#create-template) is submitted. The template is saved and a unique template id is returned.
|
|
1105
|
+
*/
|
|
1106
|
+
exports.templateresponseTemplateResponseSchema = zod_1.z.object({
|
|
1107
|
+
success: zod_1.z.boolean(),
|
|
1108
|
+
message: zod_1.z.string(),
|
|
1109
|
+
response: exports.templateresponsedataTemplateResponseDataSchema,
|
|
1110
|
+
});
|
|
1111
|
+
exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema;
|
|
1112
|
+
/**
|
|
1113
|
+
* Text alignment properties (horizontal and vertical).
|
|
1114
|
+
*/
|
|
1115
|
+
exports.richtextpropertiesRichTextAlignmentSchema = zod_1.z.object({
|
|
1116
|
+
horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
|
|
1117
|
+
vertical: zod_1.z.optional(zod_1.z.enum(["top", "middle", "bottom"])),
|
|
1118
|
+
});
|
|
1119
|
+
exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema;
|
|
1120
|
+
/**
|
|
1121
|
+
* Animation properties for text entrance effects.
|
|
1122
|
+
*/
|
|
1123
|
+
exports.richtextpropertiesRichTextAnimationSchema = zod_1.z.object({
|
|
1124
|
+
preset: zod_1.z.enum([
|
|
1125
|
+
"fadeIn",
|
|
1126
|
+
"slideIn",
|
|
1127
|
+
"typewriter",
|
|
1128
|
+
"ascend",
|
|
1129
|
+
"shift",
|
|
1130
|
+
"movingLetters",
|
|
1131
|
+
]),
|
|
1132
|
+
speed: zod_1.z.optional(zod_1.z.number().gte(0.1).lte(10)).default(1),
|
|
1133
|
+
duration: zod_1.z.optional(zod_1.z.number().gte(0.1).lte(30)),
|
|
1134
|
+
style: zod_1.z.optional(zod_1.z.enum(["character", "word"])),
|
|
1135
|
+
direction: zod_1.z.optional(zod_1.z.enum(["left", "right", "up", "down"])),
|
|
1136
|
+
});
|
|
1137
|
+
exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema;
|
|
1138
|
+
/**
|
|
1139
|
+
* Background styling properties for the text bounding box.
|
|
1140
|
+
*/
|
|
1141
|
+
exports.richtextpropertiesRichTextBackgroundSchema = zod_1.z.object({
|
|
1142
|
+
color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
|
|
1143
|
+
opacity: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)).default(1),
|
|
1144
|
+
borderRadius: zod_1.z.optional(zod_1.z.number().gte(0)).default(0),
|
|
1145
|
+
});
|
|
1146
|
+
exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema;
|
|
1147
|
+
/**
|
|
1148
|
+
* Font properties for rich text.
|
|
1149
|
+
*/
|
|
1150
|
+
exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
1151
|
+
family: zod_1.z.optional(zod_1.z.string()).default("Open Sans"),
|
|
1152
|
+
size: zod_1.z.optional(zod_1.z.int().gte(1).lte(500)).default(24),
|
|
1153
|
+
weight: zod_1.z.optional(zod_1.z.unknown()).default("400"),
|
|
1154
|
+
style: zod_1.z.optional(zod_1.z.enum(["normal", "italic", "oblique"])),
|
|
1155
|
+
color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
|
|
1156
|
+
opacity: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)).default(1),
|
|
1157
|
+
});
|
|
1158
|
+
exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema;
|
|
1159
|
+
/**
|
|
1160
|
+
* Gradient properties for text fill.
|
|
1161
|
+
*/
|
|
1162
|
+
exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
|
|
1163
|
+
type: zod_1.z.optional(zod_1.z.enum(["linear", "radial"])),
|
|
1164
|
+
angle: zod_1.z.optional(zod_1.z.number().gte(0).lte(360)).default(0),
|
|
1165
|
+
stops: zod_1.z
|
|
1166
|
+
.array(zod_1.z.object({
|
|
1167
|
+
offset: zod_1.z.number().gte(0).lte(1),
|
|
1168
|
+
color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/),
|
|
1169
|
+
}))
|
|
1170
|
+
.min(2),
|
|
1171
|
+
});
|
|
1172
|
+
exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema;
|
|
1173
|
+
/**
|
|
1174
|
+
* Text shadow properties.
|
|
1175
|
+
*/
|
|
1176
|
+
exports.richtextpropertiesRichTextShadowSchema = zod_1.z.object({
|
|
1177
|
+
offsetX: zod_1.z.optional(zod_1.z.number()).default(0),
|
|
1178
|
+
offsetY: zod_1.z.optional(zod_1.z.number()).default(0),
|
|
1179
|
+
blur: zod_1.z.optional(zod_1.z.number().gte(0)).default(0),
|
|
1180
|
+
color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1181
|
+
opacity: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)).default(0.5),
|
|
1182
|
+
});
|
|
1183
|
+
exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema;
|
|
1184
|
+
/**
|
|
1185
|
+
* Text stroke (outline) properties.
|
|
1186
|
+
*/
|
|
1187
|
+
exports.richtextpropertiesRichTextStrokeSchema = zod_1.z.object({
|
|
1188
|
+
width: zod_1.z.optional(zod_1.z.number().gte(0)).default(0),
|
|
1189
|
+
color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
|
|
1190
|
+
opacity: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)).default(1),
|
|
1191
|
+
});
|
|
1192
|
+
exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
|
|
1193
|
+
/**
|
|
1194
|
+
* Text style properties including spacing, line height, and transformations.
|
|
1195
|
+
*/
|
|
1196
|
+
exports.richtextpropertiesRichTextStyleSchema = zod_1.z.object({
|
|
1197
|
+
letterSpacing: zod_1.z.optional(zod_1.z.number()).default(0),
|
|
1198
|
+
lineHeight: zod_1.z.optional(zod_1.z.number().gte(0).lte(10)).default(1.2),
|
|
1199
|
+
textTransform: zod_1.z.optional(zod_1.z.enum(["none", "uppercase", "lowercase", "capitalize"])),
|
|
1200
|
+
textDecoration: zod_1.z.optional(zod_1.z.enum(["none", "underline", "line-through"])),
|
|
1201
|
+
gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema),
|
|
1202
|
+
});
|
|
1203
|
+
exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
|
|
1204
|
+
/**
|
|
1205
|
+
* The RichTextAsset provides advanced text rendering with support for custom fonts, gradients, shadows, strokes,
|
|
1206
|
+
* animations, and styling options. It offers more flexibility and visual effects than the basic TextAsset.
|
|
1207
|
+
*
|
|
1208
|
+
*/
|
|
1209
|
+
exports.richtextassetRichTextAssetSchema = zod_1.z.object({
|
|
1210
|
+
type: zod_1.z.string().default("rich-text"),
|
|
1211
|
+
text: zod_1.z.string().max(5000),
|
|
1212
|
+
width: zod_1.z.optional(zod_1.z.int().gte(1).lte(4096)),
|
|
1213
|
+
height: zod_1.z.optional(zod_1.z.int().gte(1).lte(4096)),
|
|
1214
|
+
font: zod_1.z.optional(exports.richtextpropertiesRichTextFontSchema),
|
|
1215
|
+
style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
|
|
1216
|
+
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1217
|
+
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1218
|
+
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1219
|
+
align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
|
|
1220
|
+
animation: zod_1.z.optional(exports.richtextpropertiesRichTextAnimationSchema),
|
|
1221
|
+
});
|
|
1222
|
+
exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema;
|
|
1223
|
+
/**
|
|
1224
|
+
* The transfer request attributes inlcudling the user specified ID and status. Returned with [TransferResponseData](#tocs_transferresponsedata).
|
|
1225
|
+
*/
|
|
1226
|
+
exports.transferresponseattributesTransferResponseAttributesSchema = zod_1.z.object({
|
|
1227
|
+
id: zod_1.z.optional(zod_1.z.string()),
|
|
1228
|
+
owner: zod_1.z.optional(zod_1.z.string()),
|
|
1229
|
+
status: zod_1.z.optional(zod_1.z.enum(["queued", "failed"])),
|
|
1230
|
+
created: zod_1.z.optional(zod_1.z.string()),
|
|
1231
|
+
});
|
|
1232
|
+
exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema;
|
|
1233
|
+
/**
|
|
1234
|
+
* The type of resource (an asset) and the transfer attributes. Returned with [TransferResponse](#tocs_transferresponse).
|
|
1235
|
+
*/
|
|
1236
|
+
exports.transferresponsedataTransferResponseDataSchema = zod_1.z.object({
|
|
1237
|
+
type: zod_1.z.optional(zod_1.z.string()),
|
|
1238
|
+
attributes: zod_1.z.optional(exports.transferresponseattributesTransferResponseAttributesSchema),
|
|
1239
|
+
});
|
|
1240
|
+
exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema;
|
|
1241
|
+
/**
|
|
1242
|
+
* The response returned by the Serve API [transfer asset](#transfer-asset) request. The response includes the ID and transfer status. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1243
|
+
*/
|
|
1244
|
+
exports.transferresponseTransferResponseSchema = zod_1.z.object({
|
|
1245
|
+
data: exports.transferresponsedataTransferResponseDataSchema,
|
|
1246
|
+
});
|
|
1247
|
+
exports.transferResponseSchema = exports.transferresponseTransferResponseSchema;
|
|
1248
|
+
/**
|
|
1249
|
+
* The asset URL to fetch and transfer to a destination.
|
|
1250
|
+
*/
|
|
1251
|
+
exports.transferTransferSchema = zod_1.z.object({
|
|
1252
|
+
url: zod_1.z.string(),
|
|
1253
|
+
id: zod_1.z.string(),
|
|
1254
|
+
destinations: zod_1.z.array(exports.destinationsDestinationsSchema),
|
|
1255
|
+
});
|
|
1256
|
+
exports.transferSchema = exports.transferTransferSchema;
|
|
1257
|
+
/**
|
|
1258
|
+
* The ShapeAsset is used to add shapes to a video. The shape can be styled with a fill and a stroke.
|
|
1259
|
+
* You can manipulate properties such as rotation to create dynamic effects like a diamond shape or stripes.
|
|
1260
|
+
*
|
|
1261
|
+
*/
|
|
1262
|
+
exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
1263
|
+
type: zod_1.z.string().default("shape"),
|
|
1264
|
+
shape: zod_1.z.enum(["rectangle", "circle", "line"]),
|
|
1265
|
+
width: zod_1.z.optional(zod_1.z.int()),
|
|
1266
|
+
height: zod_1.z.optional(zod_1.z.int()),
|
|
1267
|
+
fill: zod_1.z.optional(zod_1.z.object({
|
|
1268
|
+
color: zod_1.z.optional(zod_1.z.string()),
|
|
1269
|
+
opacity: zod_1.z.optional(zod_1.z.number()),
|
|
1270
|
+
})),
|
|
1271
|
+
stroke: zod_1.z.optional(zod_1.z.object({
|
|
1272
|
+
color: zod_1.z.optional(zod_1.z.string()),
|
|
1273
|
+
width: zod_1.z.optional(zod_1.z.number()),
|
|
1274
|
+
})),
|
|
1275
|
+
rectangle: zod_1.z.optional(zod_1.z.object({
|
|
1276
|
+
width: zod_1.z.int(),
|
|
1277
|
+
height: zod_1.z.int(),
|
|
1278
|
+
cornerRadius: zod_1.z.optional(zod_1.z.int()),
|
|
1279
|
+
})),
|
|
1280
|
+
circle: zod_1.z.optional(zod_1.z.object({
|
|
1281
|
+
radius: zod_1.z.int(),
|
|
1282
|
+
})),
|
|
1283
|
+
line: zod_1.z.optional(zod_1.z.object({
|
|
1284
|
+
length: zod_1.z.int(),
|
|
1285
|
+
thickness: zod_1.z.int(),
|
|
1286
|
+
})),
|
|
1287
|
+
});
|
|
1288
|
+
exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema;
|
|
1289
|
+
/**
|
|
1290
|
+
* 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.
|
|
1291
|
+
*/
|
|
1292
|
+
exports.sizeSizeSchema = zod_1.z.object({
|
|
1293
|
+
width: zod_1.z.optional(zod_1.z.int().gte(1).lte(4096)),
|
|
1294
|
+
height: zod_1.z.optional(zod_1.z.int().gte(1).lte(4096)),
|
|
1295
|
+
});
|
|
1296
|
+
exports.sizeSchema = exports.sizeSizeSchema;
|
|
1297
|
+
/**
|
|
1298
|
+
* A rendition is a new output file that is generated from the source. The rendition can be encoded to a different format and have transformations applied to it such as resizing, cropping, etc...
|
|
1299
|
+
*/
|
|
1300
|
+
exports.renditionRenditionSchema = zod_1.z.object({
|
|
1301
|
+
format: zod_1.z.optional(zod_1.z.enum([
|
|
1302
|
+
"mp4",
|
|
1303
|
+
"webm",
|
|
1304
|
+
"mov",
|
|
1305
|
+
"avi",
|
|
1306
|
+
"mkv",
|
|
1307
|
+
"ogv",
|
|
1308
|
+
"wmv",
|
|
1309
|
+
"avif",
|
|
1310
|
+
"gif",
|
|
1311
|
+
"mp3",
|
|
1312
|
+
"wav",
|
|
1313
|
+
"jpg",
|
|
1314
|
+
"png",
|
|
1315
|
+
"webp",
|
|
1316
|
+
"tif",
|
|
1317
|
+
])),
|
|
1318
|
+
size: zod_1.z.optional(exports.sizeSizeSchema),
|
|
1319
|
+
fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop"])),
|
|
1320
|
+
resolution: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
|
|
1321
|
+
quality: zod_1.z.optional(zod_1.z.int().gte(1).lte(100)),
|
|
1322
|
+
fps: zod_1.z.optional(zod_1.z.union([
|
|
1323
|
+
zod_1.z.literal(12),
|
|
1324
|
+
zod_1.z.literal(15),
|
|
1325
|
+
zod_1.z.literal(23.976),
|
|
1326
|
+
zod_1.z.literal(24),
|
|
1327
|
+
zod_1.z.literal(25),
|
|
1328
|
+
zod_1.z.literal(29.97),
|
|
1329
|
+
zod_1.z.literal(30),
|
|
1330
|
+
zod_1.z.literal(48),
|
|
1331
|
+
zod_1.z.literal(50),
|
|
1332
|
+
zod_1.z.literal(59.94),
|
|
1333
|
+
zod_1.z.literal(60),
|
|
1334
|
+
])),
|
|
1335
|
+
speed: zod_1.z.optional(exports.speedSpeedSchema),
|
|
1336
|
+
keyframeInterval: zod_1.z.optional(zod_1.z.int().gte(1).lte(300)),
|
|
1337
|
+
fixOffset: zod_1.z.optional(zod_1.z.boolean()),
|
|
1338
|
+
fixRotation: zod_1.z.optional(zod_1.z.boolean()),
|
|
1339
|
+
enhance: zod_1.z.optional(exports.enhancementsEnhancementsSchema),
|
|
1340
|
+
filename: zod_1.z.optional(zod_1.z.string()),
|
|
1341
|
+
});
|
|
1342
|
+
exports.renditionSchema = exports.renditionRenditionSchema;
|
|
1343
|
+
/**
|
|
1344
|
+
* The output renditions and transformations that should be generated from the source file.
|
|
1345
|
+
*/
|
|
1346
|
+
exports.outputsOutputsSchema = zod_1.z.object({
|
|
1347
|
+
renditions: zod_1.z.optional(zod_1.z.array(exports.renditionRenditionSchema)),
|
|
1348
|
+
transcription: zod_1.z.optional(exports.transcriptionTranscriptionSchema),
|
|
1349
|
+
});
|
|
1350
|
+
exports.outputsSchema = exports.outputsOutputsSchema;
|
|
1351
|
+
/**
|
|
1352
|
+
* The id and attributes of the generated rendition file.
|
|
1353
|
+
*/
|
|
1354
|
+
exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.object({
|
|
1355
|
+
id: zod_1.z.string(),
|
|
1356
|
+
status: zod_1.z.optional(zod_1.z.enum([
|
|
1357
|
+
"queued",
|
|
1358
|
+
"importing",
|
|
1359
|
+
"ready",
|
|
1360
|
+
"failed",
|
|
1361
|
+
"deleted",
|
|
1362
|
+
"overwritten",
|
|
1363
|
+
])),
|
|
1364
|
+
url: zod_1.z.optional(zod_1.z.string()),
|
|
1365
|
+
executionTime: zod_1.z.optional(zod_1.z.number()),
|
|
1366
|
+
transformation: zod_1.z.optional(exports.renditionRenditionSchema),
|
|
1367
|
+
width: zod_1.z.optional(zod_1.z.int()),
|
|
1368
|
+
height: zod_1.z.optional(zod_1.z.int()),
|
|
1369
|
+
duration: zod_1.z.optional(zod_1.z.number()),
|
|
1370
|
+
fps: zod_1.z.optional(zod_1.z.number()),
|
|
1371
|
+
});
|
|
1372
|
+
exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema;
|
|
1373
|
+
/**
|
|
1374
|
+
* The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
|
|
1375
|
+
*/
|
|
1376
|
+
exports.outputsresponseOutputsResponseSchema = zod_1.z.object({
|
|
1377
|
+
renditions: zod_1.z.optional(zod_1.z.array(exports.renditionresponseattributesRenditionResponseAttributesSchema)),
|
|
1378
|
+
});
|
|
1379
|
+
exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema;
|
|
1380
|
+
/**
|
|
1381
|
+
* The id and attributes of the source file.
|
|
1382
|
+
*/
|
|
1383
|
+
exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object({
|
|
1384
|
+
id: zod_1.z.string(),
|
|
1385
|
+
owner: zod_1.z.string(),
|
|
1386
|
+
input: zod_1.z.optional(zod_1.z.string()),
|
|
1387
|
+
source: zod_1.z.optional(zod_1.z.string()),
|
|
1388
|
+
status: zod_1.z.optional(zod_1.z.enum(["queued", "importing", "ready", "failed", "deleted", "overwritten"])),
|
|
1389
|
+
outputs: zod_1.z.optional(exports.outputsresponseOutputsResponseSchema),
|
|
1390
|
+
width: zod_1.z.optional(zod_1.z.int()),
|
|
1391
|
+
height: zod_1.z.optional(zod_1.z.string()),
|
|
1392
|
+
duration: zod_1.z.optional(zod_1.z.number()),
|
|
1393
|
+
fps: zod_1.z.optional(zod_1.z.number()),
|
|
1394
|
+
created: zod_1.z.optional(zod_1.z.string()),
|
|
1395
|
+
updated: zod_1.z.optional(zod_1.z.string()),
|
|
1396
|
+
});
|
|
1397
|
+
exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema;
|
|
1398
|
+
/**
|
|
1399
|
+
* The type of resource (a source), it's id and attributes of the source file.
|
|
1400
|
+
*/
|
|
1401
|
+
exports.sourceresponsedataSourceResponseDataSchema = zod_1.z.object({
|
|
1402
|
+
type: zod_1.z.string(),
|
|
1403
|
+
id: zod_1.z.string(),
|
|
1404
|
+
attributes: exports.sourceresponseattributesSourceResponseAttributesSchema,
|
|
1405
|
+
});
|
|
1406
|
+
exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema;
|
|
1407
|
+
/**
|
|
1408
|
+
* A list of all ingested source files fetched or uploaded to a users account.
|
|
1409
|
+
*/
|
|
1410
|
+
exports.sourcelistresponseSourceListResponseSchema = zod_1.z.object({
|
|
1411
|
+
data: zod_1.z.array(exports.sourceresponsedataSourceResponseDataSchema),
|
|
1412
|
+
});
|
|
1413
|
+
exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema;
|
|
1414
|
+
/**
|
|
1415
|
+
* The response returned by the Ingest API [get source](#get-source) request. Includes details of the ingested source file. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1416
|
+
*/
|
|
1417
|
+
exports.sourceresponseSourceResponseSchema = zod_1.z.object({
|
|
1418
|
+
data: exports.sourceresponsedataSourceResponseDataSchema,
|
|
1419
|
+
});
|
|
1420
|
+
exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema;
|
|
1421
|
+
/**
|
|
1422
|
+
* The details of the file to be ingested and any transformations to be applied. Once the source file has been ingested, new renditions can be created from it. The renditions are specified in the **outputs** property.
|
|
1423
|
+
* A rendition is a new version, generated from the source. This can be used to create new sizes and aspect ratios tht serve different purposes within an application.
|
|
1424
|
+
*/
|
|
1425
|
+
exports.sourceSourceSchema = zod_1.z.object({
|
|
1426
|
+
url: zod_1.z.optional(zod_1.z.string()),
|
|
1427
|
+
outputs: zod_1.z.optional(exports.outputsOutputsSchema),
|
|
1428
|
+
destinations: zod_1.z.optional(exports.destinationsDestinationsSchema),
|
|
1429
|
+
callback: zod_1.z.optional(zod_1.z.string()),
|
|
1430
|
+
});
|
|
1431
|
+
exports.sourceSchema = exports.sourceSourceSchema;
|
|
1432
|
+
/**
|
|
1433
|
+
* A music or audio file in mp3 format that plays for the duration of the rendered video or the length of the audio file, which ever is shortest.
|
|
1434
|
+
*/
|
|
1435
|
+
exports.soundtrackSoundtrackSchema = zod_1.z.object({
|
|
1436
|
+
src: zod_1.z.string(),
|
|
1437
|
+
effect: zod_1.z.optional(zod_1.z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
1438
|
+
volume: zod_1.z.optional(zod_1.z.number()),
|
|
1439
|
+
});
|
|
1440
|
+
exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
|
|
1441
|
+
/**
|
|
1442
|
+
* Configure the id and optional merge fields to render a template by id.
|
|
1443
|
+
*/
|
|
1444
|
+
exports.templaterenderTemplateRenderSchema = zod_1.z.object({
|
|
1445
|
+
id: zod_1.z.string(),
|
|
1446
|
+
merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
|
|
1447
|
+
});
|
|
1448
|
+
exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
|
|
1449
|
+
/**
|
|
1450
|
+
* Horizontal and vertical alignment properties for text.
|
|
1451
|
+
*/
|
|
1452
|
+
exports.textpropertiesTextAlignmentSchema = zod_1.z.object({
|
|
1453
|
+
horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
|
|
1454
|
+
vertical: zod_1.z.optional(zod_1.z.enum(["top", "center", "bottom"])),
|
|
1455
|
+
});
|
|
1456
|
+
exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema;
|
|
1457
|
+
/**
|
|
1458
|
+
* Displays a background box behind the text.
|
|
1459
|
+
*/
|
|
1460
|
+
exports.textpropertiesTextBackgroundSchema = zod_1.z.object({
|
|
1461
|
+
color: zod_1.z.optional(zod_1.z.string()),
|
|
1462
|
+
});
|
|
1463
|
+
exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
|
|
1464
|
+
/**
|
|
1465
|
+
* Font properties for text.
|
|
1466
|
+
*/
|
|
1467
|
+
exports.textpropertiesTextFontSchema = zod_1.z.object({
|
|
1468
|
+
family: zod_1.z.optional(zod_1.z.string()),
|
|
1469
|
+
color: zod_1.z.optional(zod_1.z.string()),
|
|
1470
|
+
opacity: zod_1.z.optional(zod_1.z.number()),
|
|
1471
|
+
size: zod_1.z.optional(zod_1.z.int()),
|
|
1472
|
+
weight: zod_1.z.optional(zod_1.z.int()),
|
|
1473
|
+
lineHeight: zod_1.z.optional(zod_1.z.number()),
|
|
1474
|
+
});
|
|
1475
|
+
exports.textFontSchema = exports.textpropertiesTextFontSchema;
|
|
1476
|
+
/**
|
|
1477
|
+
* The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
|
|
1478
|
+
* [Fonts](#tocs_font). You can also add a background bounding box used to control wrapping and overflow. Emoticons are also supported.
|
|
1479
|
+
*
|
|
1480
|
+
*/
|
|
1481
|
+
exports.textassetTextAssetSchema = zod_1.z.object({
|
|
1482
|
+
type: zod_1.z.string().default("text"),
|
|
1483
|
+
text: zod_1.z.string(),
|
|
1484
|
+
width: zod_1.z.optional(zod_1.z.int()),
|
|
1485
|
+
height: zod_1.z.optional(zod_1.z.int()),
|
|
1486
|
+
font: zod_1.z.optional(exports.textpropertiesTextFontSchema),
|
|
1487
|
+
background: zod_1.z.optional(exports.textpropertiesTextBackgroundSchema),
|
|
1488
|
+
alignment: zod_1.z.optional(exports.textpropertiesTextAlignmentSchema),
|
|
1489
|
+
});
|
|
1490
|
+
exports.textAssetSchema = exports.textassetTextAssetSchema;
|
|
1491
|
+
/**
|
|
1492
|
+
* The TextToImageAsset lets you create a dynamic image from a text prompt.
|
|
1493
|
+
*/
|
|
1494
|
+
exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
|
|
1495
|
+
type: zod_1.z.enum(["text-to-image"]),
|
|
1496
|
+
prompt: zod_1.z.string(),
|
|
1497
|
+
width: zod_1.z.int(),
|
|
1498
|
+
height: zod_1.z.int(),
|
|
1499
|
+
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
1500
|
+
});
|
|
1501
|
+
exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema;
|
|
1502
|
+
/**
|
|
1503
|
+
* Generate a thumbnail image for the video or image at a specific point from the timeline.
|
|
1504
|
+
*/
|
|
1505
|
+
exports.thumbnailThumbnailSchema = zod_1.z.object({
|
|
1506
|
+
capture: zod_1.z.number(),
|
|
1507
|
+
scale: zod_1.z.number().gte(0).lte(1),
|
|
1508
|
+
});
|
|
1509
|
+
exports.thumbnailSchema = exports.thumbnailThumbnailSchema;
|
|
1510
|
+
/**
|
|
1511
|
+
* The output format, render range and type of media to generate.
|
|
1512
|
+
*/
|
|
1513
|
+
exports.outputOutputSchema = zod_1.z.object({
|
|
1514
|
+
format: zod_1.z.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
|
|
1515
|
+
resolution: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
|
|
1516
|
+
aspectRatio: zod_1.z.optional(zod_1.z.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
|
|
1517
|
+
size: zod_1.z.optional(exports.sizeSizeSchema),
|
|
1518
|
+
fps: zod_1.z.optional(zod_1.z.union([
|
|
1519
|
+
zod_1.z.literal(12),
|
|
1520
|
+
zod_1.z.literal(15),
|
|
1521
|
+
zod_1.z.literal(23.976),
|
|
1522
|
+
zod_1.z.literal(24),
|
|
1523
|
+
zod_1.z.literal(25),
|
|
1524
|
+
zod_1.z.literal(29.97),
|
|
1525
|
+
zod_1.z.literal(30),
|
|
1526
|
+
zod_1.z.literal(48),
|
|
1527
|
+
zod_1.z.literal(50),
|
|
1528
|
+
zod_1.z.literal(59.94),
|
|
1529
|
+
zod_1.z.literal(60),
|
|
1530
|
+
])),
|
|
1531
|
+
scaleTo: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "1080"])),
|
|
1532
|
+
quality: zod_1.z.optional(zod_1.z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
|
|
1533
|
+
repeat: zod_1.z.optional(zod_1.z.boolean()),
|
|
1534
|
+
mute: zod_1.z.optional(zod_1.z.boolean()),
|
|
1535
|
+
range: zod_1.z.optional(exports.rangeRangeSchema),
|
|
1536
|
+
poster: zod_1.z.optional(exports.posterPosterSchema),
|
|
1537
|
+
thumbnail: zod_1.z.optional(exports.thumbnailThumbnailSchema),
|
|
1538
|
+
destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema)),
|
|
1539
|
+
});
|
|
1540
|
+
exports.outputSchema = exports.outputOutputSchema;
|
|
1541
|
+
/**
|
|
1542
|
+
* In and out transitions for a clip - i.e. fade in and fade out
|
|
1543
|
+
*/
|
|
1544
|
+
exports.transitionTransitionSchema = zod_1.z.object({
|
|
1545
|
+
in: zod_1.z.optional(zod_1.z.enum([
|
|
1546
|
+
"fade",
|
|
1547
|
+
"fadeSlow",
|
|
1548
|
+
"fadeFast",
|
|
1549
|
+
"reveal",
|
|
1550
|
+
"revealSlow",
|
|
1551
|
+
"revealFast",
|
|
1552
|
+
"wipeLeft",
|
|
1553
|
+
"wipeLeftSlow",
|
|
1554
|
+
"wipeLeftFast",
|
|
1555
|
+
"wipeRight",
|
|
1556
|
+
"wipeRightSlow",
|
|
1557
|
+
"wipeRightFast",
|
|
1558
|
+
"slideLeft",
|
|
1559
|
+
"slideLeftSlow",
|
|
1560
|
+
"slideLeftFast",
|
|
1561
|
+
"slideRight",
|
|
1562
|
+
"slideRightSlow",
|
|
1563
|
+
"slideRightFast",
|
|
1564
|
+
"slideUp",
|
|
1565
|
+
"slideUpSlow",
|
|
1566
|
+
"slideUpFast",
|
|
1567
|
+
"slideDown",
|
|
1568
|
+
"slideDownSlow",
|
|
1569
|
+
"slideDownFast",
|
|
1570
|
+
"carouselLeft",
|
|
1571
|
+
"carouselLeftSlow",
|
|
1572
|
+
"carouselLeftFast",
|
|
1573
|
+
"carouselRight",
|
|
1574
|
+
"carouselRightSlow",
|
|
1575
|
+
"carouselRightFast",
|
|
1576
|
+
"carouselUp",
|
|
1577
|
+
"carouselUpSlow",
|
|
1578
|
+
"carouselUpFast",
|
|
1579
|
+
"carouselDown",
|
|
1580
|
+
"carouselDownSlow",
|
|
1581
|
+
"carouselDownFast",
|
|
1582
|
+
"shuffleTopRight",
|
|
1583
|
+
"shuffleTopRightSlow",
|
|
1584
|
+
"shuffleTopRightFast",
|
|
1585
|
+
"shuffleRightTop",
|
|
1586
|
+
"shuffleRightTopSlow",
|
|
1587
|
+
"shuffleRightTopFast",
|
|
1588
|
+
"shuffleRightBottom",
|
|
1589
|
+
"shuffleRightBottomSlow",
|
|
1590
|
+
"shuffleRightBottomFast",
|
|
1591
|
+
"shuffleBottomRight",
|
|
1592
|
+
"shuffleBottomRightSlow",
|
|
1593
|
+
"shuffleBottomRightFast",
|
|
1594
|
+
"shuffleBottomLeft",
|
|
1595
|
+
"shuffleBottomLeftSlow",
|
|
1596
|
+
"shuffleBottomLeftFast",
|
|
1597
|
+
"shuffleLeftBottom",
|
|
1598
|
+
"shuffleLeftBottomSlow",
|
|
1599
|
+
"shuffleLeftBottomFast",
|
|
1600
|
+
"shuffleLeftTop",
|
|
1601
|
+
"shuffleLeftTopSlow",
|
|
1602
|
+
"shuffleLeftTopFast",
|
|
1603
|
+
"shuffleTopLeft",
|
|
1604
|
+
"shuffleTopLeftSlow",
|
|
1605
|
+
"shuffleTopLeftFast",
|
|
1606
|
+
"zoom",
|
|
1607
|
+
])),
|
|
1608
|
+
out: zod_1.z.optional(zod_1.z.enum([
|
|
1609
|
+
"fade",
|
|
1610
|
+
"fadeSlow",
|
|
1611
|
+
"fadeFast",
|
|
1612
|
+
"reveal",
|
|
1613
|
+
"revealSlow",
|
|
1614
|
+
"revealFast",
|
|
1615
|
+
"wipeLeft",
|
|
1616
|
+
"wipeLeftSlow",
|
|
1617
|
+
"wipeLeftFast",
|
|
1618
|
+
"wipeRight",
|
|
1619
|
+
"wipeRightSlow",
|
|
1620
|
+
"wipeRightFast",
|
|
1621
|
+
"slideLeft",
|
|
1622
|
+
"slideLeftSlow",
|
|
1623
|
+
"slideLeftFast",
|
|
1624
|
+
"slideRight",
|
|
1625
|
+
"slideRightSlow",
|
|
1626
|
+
"slideRightFast",
|
|
1627
|
+
"slideUp",
|
|
1628
|
+
"slideUpSlow",
|
|
1629
|
+
"slideUpFast",
|
|
1630
|
+
"slideDown",
|
|
1631
|
+
"slideDownSlow",
|
|
1632
|
+
"slideDownFast",
|
|
1633
|
+
"carouselLeft",
|
|
1634
|
+
"carouselLeftSlow",
|
|
1635
|
+
"carouselLeftFast",
|
|
1636
|
+
"carouselRight",
|
|
1637
|
+
"carouselRightSlow",
|
|
1638
|
+
"carouselRightFast",
|
|
1639
|
+
"carouselUp",
|
|
1640
|
+
"carouselUpSlow",
|
|
1641
|
+
"carouselUpFast",
|
|
1642
|
+
"carouselDown",
|
|
1643
|
+
"carouselDownSlow",
|
|
1644
|
+
"carouselDownFast",
|
|
1645
|
+
"shuffleTopRight",
|
|
1646
|
+
"shuffleTopRightSlow",
|
|
1647
|
+
"shuffleTopRightFast",
|
|
1648
|
+
"shuffleRightTop",
|
|
1649
|
+
"shuffleRightTopSlow",
|
|
1650
|
+
"shuffleRightTopFast",
|
|
1651
|
+
"shuffleRightBottom",
|
|
1652
|
+
"shuffleRightBottomSlow",
|
|
1653
|
+
"shuffleRightBottomFast",
|
|
1654
|
+
"shuffleBottomRight",
|
|
1655
|
+
"shuffleBottomRightSlow",
|
|
1656
|
+
"shuffleBottomRightFast",
|
|
1657
|
+
"shuffleBottomLeft",
|
|
1658
|
+
"shuffleBottomLeftSlow",
|
|
1659
|
+
"shuffleBottomLeftFast",
|
|
1660
|
+
"shuffleLeftBottom",
|
|
1661
|
+
"shuffleLeftBottomSlow",
|
|
1662
|
+
"shuffleLeftBottomFast",
|
|
1663
|
+
"shuffleLeftTop",
|
|
1664
|
+
"shuffleLeftTopSlow",
|
|
1665
|
+
"shuffleLeftTopFast",
|
|
1666
|
+
"shuffleTopLeft",
|
|
1667
|
+
"shuffleTopLeftSlow",
|
|
1668
|
+
"shuffleTopLeftFast",
|
|
1669
|
+
"zoom",
|
|
1670
|
+
])),
|
|
1671
|
+
});
|
|
1672
|
+
exports.transitionSchema = exports.transitionTransitionSchema;
|
|
1673
|
+
/**
|
|
1674
|
+
* Use a Tween to [animate properties over time](/docs/guide/architecting-an-application/animations/). The following properties are currently supported and can be animated:
|
|
1675
|
+
* <ul>
|
|
1676
|
+
* <li>Opacity - animate the transparency of a clip.</li>
|
|
1677
|
+
* <li>Offset - animate the x and y position of a clip.</li>
|
|
1678
|
+
* <li>Rotation - animate the rotation of a clip.</li>
|
|
1679
|
+
* <li>Skew - animate the horizontal and vertical shearing effect.</li>
|
|
1680
|
+
* <li>Volume - animate the audio volume of a clip.</li>
|
|
1681
|
+
* </ul>
|
|
1682
|
+
*/
|
|
1683
|
+
exports.tweenTweenSchema = zod_1.z.object({
|
|
1684
|
+
from: zod_1.z.optional(zod_1.z.unknown()),
|
|
1685
|
+
to: zod_1.z.optional(zod_1.z.unknown()),
|
|
1686
|
+
start: zod_1.z.optional(zod_1.z.number()),
|
|
1687
|
+
length: zod_1.z.optional(zod_1.z.number()),
|
|
1688
|
+
interpolation: zod_1.z.optional(zod_1.z.enum(["linear", "bezier", "constant"])),
|
|
1689
|
+
easing: zod_1.z.optional(zod_1.z.enum([
|
|
1690
|
+
"ease",
|
|
1691
|
+
"easeIn",
|
|
1692
|
+
"easeOut",
|
|
1693
|
+
"easeInOut",
|
|
1694
|
+
"easeInQuad",
|
|
1695
|
+
"easeInCubic",
|
|
1696
|
+
"easeInQuart",
|
|
1697
|
+
"easeInQuint",
|
|
1698
|
+
"easeInSine",
|
|
1699
|
+
"easeInExpo",
|
|
1700
|
+
"easeInCirc",
|
|
1701
|
+
"easeInBack",
|
|
1702
|
+
"easeOutQuad",
|
|
1703
|
+
"easeOutCubic",
|
|
1704
|
+
"easeOutQuart",
|
|
1705
|
+
"easeOutQuint",
|
|
1706
|
+
"easeOutSine",
|
|
1707
|
+
"easeOutExpo",
|
|
1708
|
+
"easeOutCirc",
|
|
1709
|
+
"easeOutBack",
|
|
1710
|
+
"easeInOutQuad",
|
|
1711
|
+
"easeInOutCubic",
|
|
1712
|
+
"easeInOutQuart",
|
|
1713
|
+
"easeInOutQuint",
|
|
1714
|
+
"easeInOutSine",
|
|
1715
|
+
"easeInOutExpo",
|
|
1716
|
+
"easeInOutCirc",
|
|
1717
|
+
"easeInOutBack",
|
|
1718
|
+
])),
|
|
1719
|
+
});
|
|
1720
|
+
exports.tweenSchema = exports.tweenTweenSchema;
|
|
1721
|
+
/**
|
|
1722
|
+
* The AudioAsset is used to add sound effects and audio at specific intervals on the timeline. The src must be a publicly accessible URL to an audio resource such as an mp3 file.
|
|
1723
|
+
*/
|
|
1724
|
+
exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
1725
|
+
type: zod_1.z.string().default("audio"),
|
|
1726
|
+
src: zod_1.z.string(),
|
|
1727
|
+
trim: zod_1.z.optional(zod_1.z.number()),
|
|
1728
|
+
volume: zod_1.z.optional(zod_1.z.union([zod_1.z.number().gte(0).lte(1), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
1729
|
+
speed: zod_1.z.optional(zod_1.z.number().gte(0).lte(10)),
|
|
1730
|
+
effect: zod_1.z.optional(zod_1.z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
1731
|
+
});
|
|
1732
|
+
exports.audioAssetSchema = exports.audioassetAudioAssetSchema;
|
|
1733
|
+
/**
|
|
1734
|
+
* Offsets the position of an asset horizontally or vertically by a relative distance.
|
|
1735
|
+
*/
|
|
1736
|
+
exports.offsetOffsetSchema = zod_1.z.object({
|
|
1737
|
+
x: zod_1.z.optional(zod_1.z.union([zod_1.z.number().gte(-10).lte(10), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
1738
|
+
y: zod_1.z.optional(zod_1.z.union([zod_1.z.number().gte(-10).lte(10), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
1739
|
+
});
|
|
1740
|
+
exports.offsetSchema = exports.offsetOffsetSchema;
|
|
1741
|
+
/**
|
|
1742
|
+
* Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
|
|
1743
|
+
*/
|
|
1744
|
+
exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
|
|
1745
|
+
angle: zod_1.z.optional(zod_1.z.union([zod_1.z.int().gte(-360).lte(360), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
1746
|
+
});
|
|
1747
|
+
exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema;
|
|
1748
|
+
/**
|
|
1749
|
+
* Skew a clip so its edges are sheared at an angle. Use values between 0 and 3. Over 3 the clip will be skewed almost flat.
|
|
1750
|
+
*/
|
|
1751
|
+
exports.skewtransformationSkewTransformationSchema = zod_1.z.object({
|
|
1752
|
+
x: zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
1753
|
+
y: zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
1754
|
+
});
|
|
1755
|
+
exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema;
|
|
1756
|
+
/**
|
|
1757
|
+
* **Notice: The TitleAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
|
|
1758
|
+
*
|
|
1759
|
+
* The TitleAsset clip type lets you create video titles from a text string and apply styling and positioning.
|
|
1760
|
+
*
|
|
1761
|
+
*
|
|
1762
|
+
* @deprecated
|
|
1763
|
+
*/
|
|
1764
|
+
exports.titleassetTitleAssetSchema = zod_1.z.object({
|
|
1765
|
+
type: zod_1.z.string().default("title"),
|
|
1766
|
+
text: zod_1.z.string(),
|
|
1767
|
+
style: zod_1.z.optional(zod_1.z.enum([
|
|
1768
|
+
"minimal",
|
|
1769
|
+
"blockbuster",
|
|
1770
|
+
"vogue",
|
|
1771
|
+
"sketchy",
|
|
1772
|
+
"skinny",
|
|
1773
|
+
"chunk",
|
|
1774
|
+
"chunkLight",
|
|
1775
|
+
"marker",
|
|
1776
|
+
"future",
|
|
1777
|
+
"subtitle",
|
|
1778
|
+
])),
|
|
1779
|
+
color: zod_1.z.optional(zod_1.z.string()),
|
|
1780
|
+
size: zod_1.z.optional(zod_1.z.enum([
|
|
1781
|
+
"xx-small",
|
|
1782
|
+
"x-small",
|
|
1783
|
+
"small",
|
|
1784
|
+
"medium",
|
|
1785
|
+
"large",
|
|
1786
|
+
"x-large",
|
|
1787
|
+
"xx-large",
|
|
1788
|
+
])),
|
|
1789
|
+
background: zod_1.z.optional(zod_1.z.string()),
|
|
1790
|
+
position: zod_1.z.optional(zod_1.z.enum([
|
|
1791
|
+
"top",
|
|
1792
|
+
"topRight",
|
|
1793
|
+
"right",
|
|
1794
|
+
"bottomRight",
|
|
1795
|
+
"bottom",
|
|
1796
|
+
"bottomLeft",
|
|
1797
|
+
"left",
|
|
1798
|
+
"topLeft",
|
|
1799
|
+
"center",
|
|
1800
|
+
])),
|
|
1801
|
+
offset: zod_1.z.optional(exports.offsetOffsetSchema),
|
|
1802
|
+
});
|
|
1803
|
+
exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
|
|
1804
|
+
/**
|
|
1805
|
+
* Apply one or more transformations to a clip. Transformations alter the visual properties of a clip and can be combined to create new shapes and effects.
|
|
1806
|
+
*/
|
|
1807
|
+
exports.transformationTransformationSchema = zod_1.z.object({
|
|
1808
|
+
rotate: zod_1.z.optional(exports.rotatetransformationRotateTransformationSchema),
|
|
1809
|
+
skew: zod_1.z.optional(exports.skewtransformationSkewTransformationSchema),
|
|
1810
|
+
flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema),
|
|
1811
|
+
});
|
|
1812
|
+
exports.transformationSchema = exports.transformationTransformationSchema;
|
|
1813
|
+
/**
|
|
1814
|
+
* The VideoAsset is used to create video sequences from video files. The src must be a publicly accessible URL to a video resource such as an mp4 file.
|
|
1815
|
+
*/
|
|
1816
|
+
exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
1817
|
+
type: zod_1.z.string().default("video"),
|
|
1818
|
+
src: zod_1.z.string(),
|
|
1819
|
+
transcode: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
1820
|
+
trim: zod_1.z.optional(zod_1.z.number()),
|
|
1821
|
+
volume: zod_1.z.optional(zod_1.z.union([zod_1.z.number().gte(0).lte(1), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
1822
|
+
volumeEffect: zod_1.z.optional(zod_1.z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
1823
|
+
speed: zod_1.z.optional(zod_1.z.number().gte(0).lte(10)),
|
|
1824
|
+
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
1825
|
+
chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema),
|
|
1826
|
+
});
|
|
1827
|
+
exports.videoAssetSchema = exports.videoassetVideoAssetSchema;
|
|
1828
|
+
/**
|
|
1829
|
+
* The type of asset to display for the duration of the Clip, i.e. a video clip or an image. Choose from one of the available asset types below.
|
|
1830
|
+
*/
|
|
1831
|
+
exports.assetAssetSchema = zod_1.z.union([
|
|
1832
|
+
zod_1.z
|
|
1833
|
+
.object({
|
|
1834
|
+
asset: zod_1.z.literal("videoasset_VideoAsset"),
|
|
1835
|
+
})
|
|
1836
|
+
.and(exports.videoassetVideoAssetSchema),
|
|
1837
|
+
zod_1.z
|
|
1838
|
+
.object({
|
|
1839
|
+
asset: zod_1.z.literal("imageasset_ImageAsset"),
|
|
1840
|
+
})
|
|
1841
|
+
.and(exports.imageassetImageAssetSchema),
|
|
1842
|
+
zod_1.z
|
|
1843
|
+
.object({
|
|
1844
|
+
asset: zod_1.z.literal("textasset_TextAsset"),
|
|
1845
|
+
})
|
|
1846
|
+
.and(exports.textassetTextAssetSchema),
|
|
1847
|
+
zod_1.z
|
|
1848
|
+
.object({
|
|
1849
|
+
asset: zod_1.z.literal("richtextasset_RichTextAsset"),
|
|
1850
|
+
})
|
|
1851
|
+
.and(exports.richtextassetRichTextAssetSchema),
|
|
1852
|
+
zod_1.z
|
|
1853
|
+
.object({
|
|
1854
|
+
asset: zod_1.z.literal("audioasset_AudioAsset"),
|
|
1855
|
+
})
|
|
1856
|
+
.and(exports.audioassetAudioAssetSchema),
|
|
1857
|
+
zod_1.z
|
|
1858
|
+
.object({
|
|
1859
|
+
asset: zod_1.z.literal("lumaasset_LumaAsset"),
|
|
1860
|
+
})
|
|
1861
|
+
.and(exports.lumaassetLumaAssetSchema),
|
|
1862
|
+
zod_1.z
|
|
1863
|
+
.object({
|
|
1864
|
+
asset: zod_1.z.literal("captionasset_CaptionAsset"),
|
|
1865
|
+
})
|
|
1866
|
+
.and(exports.captionassetCaptionAssetSchema),
|
|
1867
|
+
zod_1.z
|
|
1868
|
+
.object({
|
|
1869
|
+
asset: zod_1.z.literal("htmlasset_HtmlAsset"),
|
|
1870
|
+
})
|
|
1871
|
+
.and(exports.htmlassetHtmlAssetSchema),
|
|
1872
|
+
zod_1.z
|
|
1873
|
+
.object({
|
|
1874
|
+
asset: zod_1.z.literal("titleasset_TitleAsset"),
|
|
1875
|
+
})
|
|
1876
|
+
.and(exports.titleassetTitleAssetSchema),
|
|
1877
|
+
zod_1.z
|
|
1878
|
+
.object({
|
|
1879
|
+
asset: zod_1.z.literal("shapeasset_ShapeAsset"),
|
|
1880
|
+
})
|
|
1881
|
+
.and(exports.shapeassetShapeAssetSchema),
|
|
1882
|
+
zod_1.z
|
|
1883
|
+
.object({
|
|
1884
|
+
asset: zod_1.z.literal("texttoimageasset_TextToImageAsset"),
|
|
1885
|
+
})
|
|
1886
|
+
.and(exports.texttoimageassetTextToImageAssetSchema),
|
|
1887
|
+
zod_1.z
|
|
1888
|
+
.object({
|
|
1889
|
+
asset: zod_1.z.literal("imagetovideoasset_ImageToVideoAsset"),
|
|
1890
|
+
})
|
|
1891
|
+
.and(exports.imagetovideoassetImageToVideoAssetSchema),
|
|
1892
|
+
]);
|
|
1893
|
+
exports.assetSchema = exports.assetAssetSchema;
|
|
1894
|
+
/**
|
|
1895
|
+
* A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.
|
|
1896
|
+
*/
|
|
1897
|
+
exports.clipClipSchema = zod_1.z.object({
|
|
1898
|
+
asset: exports.assetAssetSchema,
|
|
1899
|
+
start: zod_1.z.union([zod_1.z.number(), zod_1.z.enum(["auto"])]),
|
|
1900
|
+
length: zod_1.z.union([zod_1.z.number(), zod_1.z.literal("auto"), zod_1.z.literal("end")]),
|
|
1901
|
+
fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop", "none"])),
|
|
1902
|
+
scale: zod_1.z.optional(zod_1.z.number()),
|
|
1903
|
+
position: zod_1.z.optional(zod_1.z.enum([
|
|
1904
|
+
"top",
|
|
1905
|
+
"topRight",
|
|
1906
|
+
"right",
|
|
1907
|
+
"bottomRight",
|
|
1908
|
+
"bottom",
|
|
1909
|
+
"bottomLeft",
|
|
1910
|
+
"left",
|
|
1911
|
+
"topLeft",
|
|
1912
|
+
"center",
|
|
1913
|
+
])),
|
|
1914
|
+
offset: zod_1.z.optional(exports.offsetOffsetSchema),
|
|
1915
|
+
transition: zod_1.z.optional(exports.transitionTransitionSchema),
|
|
1916
|
+
effect: zod_1.z.optional(zod_1.z.enum([
|
|
1917
|
+
"zoomIn",
|
|
1918
|
+
"zoomInSlow",
|
|
1919
|
+
"zoomInFast",
|
|
1920
|
+
"zoomOut",
|
|
1921
|
+
"zoomOutSlow",
|
|
1922
|
+
"zoomOutFast",
|
|
1923
|
+
"slideLeft",
|
|
1924
|
+
"slideLeftSlow",
|
|
1925
|
+
"slideLeftFast",
|
|
1926
|
+
"slideRight",
|
|
1927
|
+
"slideRightSlow",
|
|
1928
|
+
"slideRightFast",
|
|
1929
|
+
"slideUp",
|
|
1930
|
+
"slideUpSlow",
|
|
1931
|
+
"slideUpFast",
|
|
1932
|
+
"slideDown",
|
|
1933
|
+
"slideDownSlow",
|
|
1934
|
+
"slideDownFast",
|
|
1935
|
+
])),
|
|
1936
|
+
filter: zod_1.z.optional(zod_1.z.enum([
|
|
1937
|
+
"blur",
|
|
1938
|
+
"boost",
|
|
1939
|
+
"contrast",
|
|
1940
|
+
"darken",
|
|
1941
|
+
"greyscale",
|
|
1942
|
+
"lighten",
|
|
1943
|
+
"muted",
|
|
1944
|
+
"negative",
|
|
1945
|
+
])),
|
|
1946
|
+
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
1947
|
+
transform: zod_1.z.optional(exports.transformationTransformationSchema),
|
|
1948
|
+
});
|
|
1949
|
+
exports.clipSchema = exports.clipClipSchema;
|
|
1950
|
+
/**
|
|
1951
|
+
* A track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.
|
|
1952
|
+
*/
|
|
1953
|
+
exports.trackTrackSchema = zod_1.z.object({
|
|
1954
|
+
clips: zod_1.z.array(exports.clipClipSchema),
|
|
1955
|
+
});
|
|
1956
|
+
exports.trackSchema = exports.trackTrackSchema;
|
|
1957
|
+
/**
|
|
1958
|
+
* A timeline represents the contents of a video edit over time, an audio edit over time, in seconds, or an image layout. A timeline consists of layers called tracks. Tracks are composed of titles, images, audio, html or video segments referred to as clips which are placed along the track at specific starting point and lasting for a specific amount of time.
|
|
1959
|
+
*/
|
|
1960
|
+
exports.timelineTimelineSchema = zod_1.z.object({
|
|
1961
|
+
soundtrack: zod_1.z.optional(exports.soundtrackSoundtrackSchema),
|
|
1962
|
+
background: zod_1.z.optional(zod_1.z.string()),
|
|
1963
|
+
fonts: zod_1.z.optional(zod_1.z.array(exports.fontFontSchema)),
|
|
1964
|
+
tracks: zod_1.z.array(exports.trackTrackSchema),
|
|
1965
|
+
cache: zod_1.z.optional(zod_1.z.boolean()),
|
|
1966
|
+
});
|
|
1967
|
+
exports.timelineSchema = exports.timelineTimelineSchema;
|
|
1968
|
+
/**
|
|
1969
|
+
* An edit defines the arrangement of a video on a timeline, an audio edit or an image design and the output format. Video assets are automatically preprocessed to fix common compatibility issues before rendering. You can control preprocessing behavior using the `transcode` flag on video assets.
|
|
1970
|
+
*/
|
|
1971
|
+
exports.editEditSchema = zod_1.z.object({
|
|
1972
|
+
timeline: exports.timelineTimelineSchema,
|
|
1973
|
+
output: exports.outputOutputSchema,
|
|
1974
|
+
merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
|
|
1975
|
+
callback: zod_1.z.optional(zod_1.z.string()),
|
|
1976
|
+
disk: zod_1.z.optional(zod_1.z.enum(["local", "mount"])),
|
|
1977
|
+
});
|
|
1978
|
+
exports.editSchema = exports.editEditSchema;
|
|
1979
|
+
/**
|
|
1980
|
+
* The response data returned with the [RenderResponse](#tocs_renderresponse) including status and URL.
|
|
1981
|
+
*/
|
|
1982
|
+
exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
|
|
1983
|
+
id: zod_1.z.string(),
|
|
1984
|
+
owner: zod_1.z.string(),
|
|
1985
|
+
plan: zod_1.z.optional(zod_1.z.string()),
|
|
1986
|
+
status: zod_1.z.enum([
|
|
1987
|
+
"queued",
|
|
1988
|
+
"fetching",
|
|
1989
|
+
"preprocessing",
|
|
1990
|
+
"rendering",
|
|
1991
|
+
"saving",
|
|
1992
|
+
"done",
|
|
1993
|
+
"failed",
|
|
1994
|
+
]),
|
|
1995
|
+
error: zod_1.z.optional(zod_1.z.string()),
|
|
1996
|
+
duration: zod_1.z.optional(zod_1.z.number()),
|
|
1997
|
+
renderTime: zod_1.z.optional(zod_1.z.number()),
|
|
1998
|
+
url: zod_1.z.optional(zod_1.z.string()),
|
|
1999
|
+
poster: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
2000
|
+
thumbnail: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
2001
|
+
data: zod_1.z.optional(exports.editEditSchema),
|
|
2002
|
+
created: zod_1.z.optional(zod_1.z.string()),
|
|
2003
|
+
updated: zod_1.z.optional(zod_1.z.string()),
|
|
2004
|
+
});
|
|
2005
|
+
exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema;
|
|
2006
|
+
/**
|
|
2007
|
+
* The response received after a [render status request](#get-render-status) is submitted. The response includes details about status of a render and the output URL.
|
|
2008
|
+
*/
|
|
2009
|
+
exports.renderresponseRenderResponseSchema = zod_1.z.object({
|
|
2010
|
+
success: zod_1.z.boolean(),
|
|
2011
|
+
message: zod_1.z.string(),
|
|
2012
|
+
response: exports.renderresponsedataRenderResponseDataSchema,
|
|
2013
|
+
});
|
|
2014
|
+
exports.renderResponseSchema = exports.renderresponseRenderResponseSchema;
|
|
2015
|
+
/**
|
|
2016
|
+
* The response data returned with the [TemplateDataResponse](#tocs_templatedataresponse).
|
|
2017
|
+
*/
|
|
2018
|
+
exports.templatedataresponsedataTemplateDataResponseDataSchema = zod_1.z.object({
|
|
2019
|
+
id: zod_1.z.string(),
|
|
2020
|
+
name: zod_1.z.string(),
|
|
2021
|
+
owner: zod_1.z.string(),
|
|
2022
|
+
template: exports.editEditSchema,
|
|
2023
|
+
});
|
|
2024
|
+
exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema;
|
|
2025
|
+
/**
|
|
2026
|
+
* The template data including the template name and [Edit](#tocs_edit).
|
|
2027
|
+
*/
|
|
2028
|
+
exports.templatedataresponseTemplateDataResponseSchema = zod_1.z.object({
|
|
2029
|
+
success: zod_1.z.boolean(),
|
|
2030
|
+
message: zod_1.z.string(),
|
|
2031
|
+
response: exports.templatedataresponsedataTemplateDataResponseDataSchema,
|
|
2032
|
+
});
|
|
2033
|
+
exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema;
|
|
2034
|
+
/**
|
|
2035
|
+
* A template is a saved [Edit](#tocs_edit) than can be loaded and re-used.
|
|
2036
|
+
*/
|
|
2037
|
+
exports.templateTemplateSchema = zod_1.z.object({
|
|
2038
|
+
name: zod_1.z.string(),
|
|
2039
|
+
template: zod_1.z.optional(exports.editEditSchema),
|
|
2040
|
+
});
|
|
2041
|
+
exports.templateSchema = exports.templateTemplateSchema;
|
|
2042
|
+
exports.postRenderRequest = zod_1.z.object({
|
|
2043
|
+
body: exports.editEditSchema,
|
|
2044
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2045
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2046
|
+
});
|
|
2047
|
+
/**
|
|
2048
|
+
* The queued render details
|
|
2049
|
+
*/
|
|
2050
|
+
exports.postRenderResponse = exports.queuedresponseQueuedResponseSchema;
|
|
2051
|
+
exports.getRenderRequest = zod_1.z.object({
|
|
2052
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2053
|
+
path: zod_1.z.object({
|
|
2054
|
+
id: zod_1.z
|
|
2055
|
+
.string()
|
|
2056
|
+
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
2057
|
+
}),
|
|
2058
|
+
query: zod_1.z.optional(zod_1.z.object({
|
|
2059
|
+
data: zod_1.z.optional(zod_1.z.boolean()),
|
|
2060
|
+
merged: zod_1.z.optional(zod_1.z.boolean()),
|
|
2061
|
+
})),
|
|
2062
|
+
});
|
|
2063
|
+
/**
|
|
2064
|
+
* The render status details
|
|
2065
|
+
*/
|
|
2066
|
+
exports.getRenderResponse = exports.renderresponseRenderResponseSchema;
|
|
2067
|
+
exports.getTemplatesRequest = zod_1.z.object({
|
|
2068
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2069
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2070
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2071
|
+
});
|
|
2072
|
+
/**
|
|
2073
|
+
* The list of templates stored against a users account
|
|
2074
|
+
*/
|
|
2075
|
+
exports.getTemplatesResponse = exports.templatelistresponseTemplateListResponseSchema;
|
|
2076
|
+
exports.postTemplateRequest = zod_1.z.object({
|
|
2077
|
+
body: exports.templateTemplateSchema,
|
|
2078
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2079
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2080
|
+
});
|
|
2081
|
+
/**
|
|
2082
|
+
* The saved template status including the id
|
|
2083
|
+
*/
|
|
2084
|
+
exports.postTemplateResponse = exports.templateresponseTemplateResponseSchema;
|
|
2085
|
+
exports.deleteTemplateRequest = zod_1.z.object({
|
|
2086
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2087
|
+
path: zod_1.z.object({
|
|
2088
|
+
id: zod_1.z
|
|
2089
|
+
.string()
|
|
2090
|
+
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
2091
|
+
}),
|
|
2092
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2093
|
+
});
|
|
2094
|
+
/**
|
|
2095
|
+
* An empty response signifying the template has been deleted
|
|
2096
|
+
*/
|
|
2097
|
+
exports.deleteTemplateResponse = zod_1.z.void();
|
|
2098
|
+
exports.getTemplateRequest = zod_1.z.object({
|
|
2099
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2100
|
+
path: zod_1.z.object({
|
|
2101
|
+
id: zod_1.z
|
|
2102
|
+
.string()
|
|
2103
|
+
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
2104
|
+
}),
|
|
2105
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2106
|
+
});
|
|
2107
|
+
/**
|
|
2108
|
+
* The template details including the [Edit](#tocs_edit)
|
|
2109
|
+
*/
|
|
2110
|
+
exports.getTemplateResponse = exports.templatedataresponseTemplateDataResponseSchema;
|
|
2111
|
+
exports.putTemplateRequest = zod_1.z.object({
|
|
2112
|
+
body: exports.templateTemplateSchema,
|
|
2113
|
+
path: zod_1.z.object({
|
|
2114
|
+
id: zod_1.z
|
|
2115
|
+
.string()
|
|
2116
|
+
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
2117
|
+
}),
|
|
2118
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2119
|
+
});
|
|
2120
|
+
/**
|
|
2121
|
+
* Update a templates name and [Edit](#tocs_edit)
|
|
2122
|
+
*/
|
|
2123
|
+
exports.putTemplateResponse = exports.templateresponseTemplateResponseSchema;
|
|
2124
|
+
exports.postTemplateRenderRequest = zod_1.z.object({
|
|
2125
|
+
body: exports.templaterenderTemplateRenderSchema,
|
|
2126
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2127
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2128
|
+
});
|
|
2129
|
+
/**
|
|
2130
|
+
* The queued status including the render id. Check the status of the render using the id and the [render status](#get-render-status) endpoint.
|
|
2131
|
+
*/
|
|
2132
|
+
exports.postTemplateRenderResponse = exports.queuedresponseQueuedResponseSchema;
|
|
2133
|
+
exports.probeRequest = zod_1.z.object({
|
|
2134
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2135
|
+
path: zod_1.z.object({
|
|
2136
|
+
url: zod_1.z.string(),
|
|
2137
|
+
}),
|
|
2138
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2139
|
+
});
|
|
2140
|
+
/**
|
|
2141
|
+
* FFprobe response formatted as JSON.
|
|
2142
|
+
*/
|
|
2143
|
+
exports.probeResponse = exports.proberesponseProbeResponseSchema;
|
|
2144
|
+
exports.deleteAssetRequest = zod_1.z.object({
|
|
2145
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2146
|
+
path: zod_1.z.object({
|
|
2147
|
+
id: zod_1.z
|
|
2148
|
+
.string()
|
|
2149
|
+
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
2150
|
+
}),
|
|
2151
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2152
|
+
});
|
|
2153
|
+
/**
|
|
2154
|
+
* An empty response signifying the asset has been deleted
|
|
2155
|
+
*/
|
|
2156
|
+
exports.deleteAssetResponse = zod_1.z.void();
|
|
2157
|
+
exports.getAssetRequest = zod_1.z.object({
|
|
2158
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2159
|
+
path: zod_1.z.object({
|
|
2160
|
+
id: zod_1.z
|
|
2161
|
+
.string()
|
|
2162
|
+
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
2163
|
+
}),
|
|
2164
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2165
|
+
});
|
|
2166
|
+
/**
|
|
2167
|
+
* Get asset by asset id
|
|
2168
|
+
*/
|
|
2169
|
+
exports.getAssetResponse = exports.assetresponseAssetResponseSchema;
|
|
2170
|
+
exports.getAssetByRenderIdRequest = zod_1.z.object({
|
|
2171
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2172
|
+
path: zod_1.z.object({
|
|
2173
|
+
id: zod_1.z
|
|
2174
|
+
.string()
|
|
2175
|
+
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
2176
|
+
}),
|
|
2177
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2178
|
+
});
|
|
2179
|
+
/**
|
|
2180
|
+
* Get one or more assets by render id
|
|
2181
|
+
*/
|
|
2182
|
+
exports.getAssetByRenderIdResponse = exports.assetrenderresponseAssetRenderResponseSchema;
|
|
2183
|
+
exports.postServeAssetRequest = zod_1.z.object({
|
|
2184
|
+
body: exports.transferTransferSchema,
|
|
2185
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2186
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2187
|
+
});
|
|
2188
|
+
/**
|
|
2189
|
+
* The transfer request details and status
|
|
2190
|
+
*/
|
|
2191
|
+
exports.postServeAssetResponse = exports.transferresponseTransferResponseSchema;
|
|
2192
|
+
exports.getSourcesRequest = zod_1.z.object({
|
|
2193
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2194
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2195
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2196
|
+
});
|
|
2197
|
+
/**
|
|
2198
|
+
* The list of ingested source files stored against a users account
|
|
2199
|
+
*/
|
|
2200
|
+
exports.getSourcesResponse = exports.sourcelistresponseSourceListResponseSchema;
|
|
2201
|
+
exports.postSourceRequest = zod_1.z.object({
|
|
2202
|
+
body: exports.sourceSourceSchema,
|
|
2203
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2204
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2205
|
+
});
|
|
2206
|
+
/**
|
|
2207
|
+
* The queued source file details
|
|
2208
|
+
*/
|
|
2209
|
+
exports.postSourceResponse = exports.queuedsourceresponseQueuedSourceResponseSchema;
|
|
2210
|
+
exports.deleteSourceRequest = zod_1.z.object({
|
|
2211
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2212
|
+
path: zod_1.z.object({
|
|
2213
|
+
id: zod_1.z
|
|
2214
|
+
.string()
|
|
2215
|
+
.regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
|
|
2216
|
+
}),
|
|
2217
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2218
|
+
});
|
|
2219
|
+
/**
|
|
2220
|
+
* An empty response signifying the ingested source file has been deleted.
|
|
2221
|
+
*/
|
|
2222
|
+
exports.deleteSourceResponse = zod_1.z.void();
|
|
2223
|
+
exports.getSourceRequest = zod_1.z.object({
|
|
2224
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2225
|
+
path: zod_1.z.object({
|
|
2226
|
+
id: zod_1.z
|
|
2227
|
+
.string()
|
|
2228
|
+
.regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
|
|
2229
|
+
}),
|
|
2230
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2231
|
+
});
|
|
2232
|
+
/**
|
|
2233
|
+
* Get source file details by id
|
|
2234
|
+
*/
|
|
2235
|
+
exports.getSourceResponse = exports.sourceresponseSourceResponseSchema;
|
|
2236
|
+
exports.getUploadSignedUrlRequest = zod_1.z.object({
|
|
2237
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2238
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2239
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2240
|
+
});
|
|
2241
|
+
/**
|
|
2242
|
+
* The id and signed URL to upload to.
|
|
2243
|
+
*/
|
|
2244
|
+
exports.getUploadSignedUrlResponse = exports.uploadresponseUploadResponseSchema;
|
|
2245
|
+
exports.postGenerateAssetRequest = zod_1.z.object({
|
|
2246
|
+
body: exports.generatedAssetGeneratedAssetSchema,
|
|
2247
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2248
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2249
|
+
});
|
|
2250
|
+
/**
|
|
2251
|
+
* The generated asset details
|
|
2252
|
+
*/
|
|
2253
|
+
exports.postGenerateAssetResponse = exports.generatedAssetResponseGeneratedAssetResponseSchema;
|
|
2254
|
+
exports.getGeneratedAssetRequest = zod_1.z.object({
|
|
2255
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2256
|
+
path: zod_1.z.object({
|
|
2257
|
+
id: zod_1.z
|
|
2258
|
+
.string()
|
|
2259
|
+
.regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
|
|
2260
|
+
}),
|
|
2261
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
2262
|
+
});
|
|
2263
|
+
/**
|
|
2264
|
+
* The generated asset details
|
|
2265
|
+
*/
|
|
2266
|
+
exports.getGeneratedAssetResponse = exports.generatedAssetResponseGeneratedAssetResponseSchema;
|