@shotstack/schemas 1.16.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.bundled.json +203 -0
- package/dist/json-schema/edit.json +24 -0
- package/dist/json-schema/index.cjs +1 -1
- package/dist/json-schema/index.js +1 -1
- package/dist/schema.d.ts +194 -0
- package/dist/zod/zod.gen.cjs +82 -6
- package/dist/zod/zod.gen.d.ts +445 -0
- package/dist/zod/zod.gen.js +75 -0
- package/dist/zod/zod.gen.ts +72 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -246,6 +246,71 @@ export interface paths {
|
|
|
246
246
|
patch?: never;
|
|
247
247
|
trace?: never;
|
|
248
248
|
};
|
|
249
|
+
"/models": {
|
|
250
|
+
parameters: {
|
|
251
|
+
query?: {
|
|
252
|
+
/**
|
|
253
|
+
* @description Set to `options` to include each model's option schema in the list. Omitted by default to keep the response small.
|
|
254
|
+
* @example options
|
|
255
|
+
*/
|
|
256
|
+
expand?: "options";
|
|
257
|
+
};
|
|
258
|
+
header?: never;
|
|
259
|
+
path?: never;
|
|
260
|
+
cookie?: never;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* List Generation Models
|
|
264
|
+
* @description List the generation models available for `prompt`-bearing image, video and audio
|
|
265
|
+
* assets, with the options each accepts and what it costs in credits.
|
|
266
|
+
*
|
|
267
|
+
* Use this to populate a model picker and render its option fields, rather than
|
|
268
|
+
* hard coding a model list. A newly launched model appears here without any change
|
|
269
|
+
* on your side. Each entry carries the asset type it generates, so filter the list
|
|
270
|
+
* client side when a picker only needs one kind.
|
|
271
|
+
*
|
|
272
|
+
* Option schemas are omitted by default. Request them with `expand=options`.
|
|
273
|
+
*
|
|
274
|
+
* **Base URL:** <a href="#">https://api.shotstack.io/edit/{version}</a>
|
|
275
|
+
*/
|
|
276
|
+
get: operations["getModels"];
|
|
277
|
+
put?: never;
|
|
278
|
+
post?: never;
|
|
279
|
+
delete?: never;
|
|
280
|
+
options?: never;
|
|
281
|
+
head?: never;
|
|
282
|
+
patch?: never;
|
|
283
|
+
trace?: never;
|
|
284
|
+
};
|
|
285
|
+
"/models/{id}": {
|
|
286
|
+
parameters: {
|
|
287
|
+
query?: never;
|
|
288
|
+
header?: never;
|
|
289
|
+
path: {
|
|
290
|
+
/**
|
|
291
|
+
* @description The model identifier, as returned by the list endpoint.
|
|
292
|
+
* @example seedance-2.0
|
|
293
|
+
*/
|
|
294
|
+
id: string;
|
|
295
|
+
};
|
|
296
|
+
cookie?: never;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Get Generation Model
|
|
300
|
+
* @description Get one generation model, including the JSON Schema for the options it accepts and
|
|
301
|
+
* what it costs in credits.
|
|
302
|
+
*
|
|
303
|
+
* **Base URL:** <a href="#">https://api.shotstack.io/edit/{version}</a>
|
|
304
|
+
*/
|
|
305
|
+
get: operations["getModel"];
|
|
306
|
+
put?: never;
|
|
307
|
+
post?: never;
|
|
308
|
+
delete?: never;
|
|
309
|
+
options?: never;
|
|
310
|
+
head?: never;
|
|
311
|
+
patch?: never;
|
|
312
|
+
trace?: never;
|
|
313
|
+
};
|
|
249
314
|
"/assets/{id}": {
|
|
250
315
|
parameters: {
|
|
251
316
|
query?: never;
|
|
@@ -1137,6 +1202,13 @@ export interface components {
|
|
|
1137
1202
|
* @default 400
|
|
1138
1203
|
*/
|
|
1139
1204
|
weight?: unknown;
|
|
1205
|
+
/**
|
|
1206
|
+
* @description The font style.
|
|
1207
|
+
* @default normal
|
|
1208
|
+
* @example italic
|
|
1209
|
+
* @enum {string}
|
|
1210
|
+
*/
|
|
1211
|
+
style?: "normal" | "italic";
|
|
1140
1212
|
/**
|
|
1141
1213
|
* @description The text color using hexadecimal color notation.
|
|
1142
1214
|
* @default #ffffff
|
|
@@ -1817,6 +1889,13 @@ export interface components {
|
|
|
1817
1889
|
* @default 400
|
|
1818
1890
|
*/
|
|
1819
1891
|
weight?: unknown;
|
|
1892
|
+
/**
|
|
1893
|
+
* @description The font style.
|
|
1894
|
+
* @default normal
|
|
1895
|
+
* @example italic
|
|
1896
|
+
* @enum {string}
|
|
1897
|
+
*/
|
|
1898
|
+
style?: "normal" | "italic";
|
|
1820
1899
|
/**
|
|
1821
1900
|
* @description The text color using hexadecimal color notation.
|
|
1822
1901
|
* @default #000000
|
|
@@ -3898,6 +3977,121 @@ export interface operations {
|
|
|
3898
3977
|
};
|
|
3899
3978
|
};
|
|
3900
3979
|
};
|
|
3980
|
+
getModels: {
|
|
3981
|
+
parameters: {
|
|
3982
|
+
query?: {
|
|
3983
|
+
/**
|
|
3984
|
+
* @description Set to `options` to include each model's option schema in the list. Omitted by default to keep the response small.
|
|
3985
|
+
* @example options
|
|
3986
|
+
*/
|
|
3987
|
+
expand?: "options";
|
|
3988
|
+
};
|
|
3989
|
+
header?: never;
|
|
3990
|
+
path?: never;
|
|
3991
|
+
cookie?: never;
|
|
3992
|
+
};
|
|
3993
|
+
requestBody?: never;
|
|
3994
|
+
responses: {
|
|
3995
|
+
/** @description The available generation models. */
|
|
3996
|
+
200: {
|
|
3997
|
+
headers: {
|
|
3998
|
+
[name: string]: unknown;
|
|
3999
|
+
};
|
|
4000
|
+
content: {
|
|
4001
|
+
"application/json": {
|
|
4002
|
+
/** @description The available models. */
|
|
4003
|
+
models: paths["/models/{id}"]["get"]["responses"]["200"]["content"]["application/json"]["schema"][];
|
|
4004
|
+
};
|
|
4005
|
+
};
|
|
4006
|
+
};
|
|
4007
|
+
};
|
|
4008
|
+
};
|
|
4009
|
+
getModel: {
|
|
4010
|
+
parameters: {
|
|
4011
|
+
query?: never;
|
|
4012
|
+
header?: never;
|
|
4013
|
+
path: {
|
|
4014
|
+
/**
|
|
4015
|
+
* @description The model identifier, as returned by the list endpoint.
|
|
4016
|
+
* @example seedance-2.0
|
|
4017
|
+
*/
|
|
4018
|
+
id: string;
|
|
4019
|
+
};
|
|
4020
|
+
cookie?: never;
|
|
4021
|
+
};
|
|
4022
|
+
requestBody?: never;
|
|
4023
|
+
responses: {
|
|
4024
|
+
/** @description The generation model, with its option schema. */
|
|
4025
|
+
200: {
|
|
4026
|
+
headers: {
|
|
4027
|
+
[name: string]: unknown;
|
|
4028
|
+
};
|
|
4029
|
+
content: {
|
|
4030
|
+
"application/json": {
|
|
4031
|
+
/**
|
|
4032
|
+
* @description The identifier to set as the asset `model`. Carries no provider name, so routing can change without a public rename.
|
|
4033
|
+
* @example seedance-2.0
|
|
4034
|
+
*/
|
|
4035
|
+
model: string;
|
|
4036
|
+
/**
|
|
4037
|
+
* @description The asset type this model generates.
|
|
4038
|
+
* @example video
|
|
4039
|
+
* @enum {string}
|
|
4040
|
+
*/
|
|
4041
|
+
type: "image" | "video" | "audio";
|
|
4042
|
+
/** @description What one generation with this model costs. */
|
|
4043
|
+
pricing?: {
|
|
4044
|
+
/**
|
|
4045
|
+
* @description What one unit is. `render` means the whole generation counts as one unit, whatever its size.
|
|
4046
|
+
* @example second
|
|
4047
|
+
* @enum {string}
|
|
4048
|
+
*/
|
|
4049
|
+
unit: "render" | "second" | "minute" | "thousandCharacters";
|
|
4050
|
+
/**
|
|
4051
|
+
* @description Credits per unit. A number when the rate is flat, or an object keyed by the values of the options named in `tieredBy`.
|
|
4052
|
+
* @example {
|
|
4053
|
+
* "480p": 0.9375,
|
|
4054
|
+
* "720p": 1.8962,
|
|
4055
|
+
* "1080p": 4.2625
|
|
4056
|
+
* }
|
|
4057
|
+
*/
|
|
4058
|
+
credits: number | {
|
|
4059
|
+
[key: string]: unknown;
|
|
4060
|
+
};
|
|
4061
|
+
/**
|
|
4062
|
+
* @description The options whose values select the rate, outermost first. Absent when `credits` is a single number.
|
|
4063
|
+
* @example [
|
|
4064
|
+
* "resolution"
|
|
4065
|
+
* ]
|
|
4066
|
+
*/
|
|
4067
|
+
tieredBy?: string[];
|
|
4068
|
+
/**
|
|
4069
|
+
* @description The fewest units a generation is charged for, when a model has a minimum charge.
|
|
4070
|
+
* @example 0.1
|
|
4071
|
+
*/
|
|
4072
|
+
minUnits?: number;
|
|
4073
|
+
/**
|
|
4074
|
+
* @description The date this rate took effect, or `legacy` for a rate that predates dated pricing.
|
|
4075
|
+
* @example 2026-08-13
|
|
4076
|
+
*/
|
|
4077
|
+
effectiveFrom: string;
|
|
4078
|
+
};
|
|
4079
|
+
/** @description JSON Schema for the model's `options` object. Only returned for a single model, or for a list requested with `expand=options`. Values outside this schema are rejected. */
|
|
4080
|
+
options?: {
|
|
4081
|
+
[key: string]: unknown;
|
|
4082
|
+
};
|
|
4083
|
+
};
|
|
4084
|
+
};
|
|
4085
|
+
};
|
|
4086
|
+
/** @description No model exists with that identifier. */
|
|
4087
|
+
404: {
|
|
4088
|
+
headers: {
|
|
4089
|
+
[name: string]: unknown;
|
|
4090
|
+
};
|
|
4091
|
+
content?: never;
|
|
4092
|
+
};
|
|
4093
|
+
};
|
|
4094
|
+
};
|
|
3901
4095
|
getAsset: {
|
|
3902
4096
|
parameters: {
|
|
3903
4097
|
query?: never;
|
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
4
|
+
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.azureBlobStorageDestinationAzureBlobStorageDestinationSchema = exports.azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema = exports.akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema = exports.akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema = exports.cropSchema = exports.cropCropSchema = 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.modelsidRootSchema = exports.modelsRootSchema = exports.generateidRootSchema = exports.generateRootSchema = exports.assetsrenderidRootSchema = exports.assetsidRootSchema = exports.assetsRootSchema = exports.sourceRootSchema = exports.editRootSchema = void 0;
|
|
5
|
+
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.html5AssetSchema = exports.html5AssetHtml5AssetSchema = exports.generationmodelGenerationModelSchema = exports.generationmodelpricingGenerationModelPricingSchema = exports.fontSchema = exports.fontFontSchema = exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema = exports.destinationsSchema = exports.destinationsDestinationsSchema = exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema = exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = exports.tiktokDestinationTiktokDestinationSchema = exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema = void 0;
|
|
6
|
+
exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema = exports.richtextpropertiesRichTextBorderSchema = exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema = exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema = exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema = exports.richcaptionpropertiesRichCaptionFontSchema = exports.richCaptionAnimationSchema = exports.richcaptionpropertiesRichCaptionAnimationSchema = exports.richCaptionActiveFontSchema = exports.richcaptionpropertiesRichCaptionActiveFontSchema = 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.generationresponseGenerationResponseSchema = exports.generationmodellistresponseGenerationModelListResponseSchema = exports.assetResponseSchema = exports.assetresponseAssetResponseSchema = exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema = exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema = exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema = exports.rangeSchema = exports.rangeRangeSchema = exports.posterSchema = exports.posterPosterSchema = exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema = exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema = exports.transcriptionSchema = exports.transcriptionTranscriptionSchema = void 0;
|
|
7
|
+
exports.svgAssetSchema = exports.svgassetSvgAssetSchema = 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 = exports.transferResponseSchema = exports.transferresponseTransferResponseSchema = exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema = exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema = exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema = exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema = exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema = exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema = exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema = exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richcaptionpropertiesRichCaptionStyleSchema = void 0;
|
|
8
|
+
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.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema = exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = 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.textpropertiesTextStrokeSchema = exports.textFontSchema = exports.textpropertiesTextFontSchema = exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema = exports.textpropertiesTextAnimationSchema = exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema = exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema = void 0;
|
|
9
|
+
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 = exports.deleteAssetResponse = exports.deleteAssetRequest = exports.getModelResponse = exports.getModelRequest = exports.getModelsResponse = exports.getModelsRequest = exports.getGenerateResponse = exports.getGenerateRequest = exports.postGenerateResponse = exports.postGenerateRequest = 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 = void 0;
|
|
10
|
+
exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = void 0;
|
|
10
11
|
const zod_1 = require("zod");
|
|
11
12
|
exports.editRootSchema = zod_1.z.unknown();
|
|
12
13
|
exports.sourceRootSchema = zod_1.z.unknown();
|
|
@@ -15,6 +16,8 @@ exports.assetsidRootSchema = zod_1.z.unknown();
|
|
|
15
16
|
exports.assetsrenderidRootSchema = zod_1.z.unknown();
|
|
16
17
|
exports.generateRootSchema = zod_1.z.unknown();
|
|
17
18
|
exports.generateidRootSchema = zod_1.z.unknown();
|
|
19
|
+
exports.modelsRootSchema = zod_1.z.unknown();
|
|
20
|
+
exports.modelsidRootSchema = zod_1.z.unknown();
|
|
18
21
|
exports.probeRootSchema = zod_1.z.unknown();
|
|
19
22
|
exports.renderRootSchema = zod_1.z.unknown();
|
|
20
23
|
exports.renderidRootSchema = zod_1.z.unknown();
|
|
@@ -421,6 +424,49 @@ exports.fontFontSchema = zod_1.z.object({
|
|
|
421
424
|
src: zod_1.z.string()
|
|
422
425
|
}).strict();
|
|
423
426
|
exports.fontSchema = exports.fontFontSchema;
|
|
427
|
+
/**
|
|
428
|
+
* What one generation costs, in credits. There is no formula to evaluate: multiply the rate by the number of units the generation consumes. Where a model charges differently per option value, `credits` is an object keyed by that value and `tieredBy` names the option that selects it.
|
|
429
|
+
*/
|
|
430
|
+
exports.generationmodelpricingGenerationModelPricingSchema = zod_1.z.object({
|
|
431
|
+
unit: zod_1.z.enum([
|
|
432
|
+
'render',
|
|
433
|
+
'second',
|
|
434
|
+
'minute',
|
|
435
|
+
'thousandCharacters'
|
|
436
|
+
]),
|
|
437
|
+
credits: zod_1.z.union([
|
|
438
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
439
|
+
return undefined; if (Array.isArray(v))
|
|
440
|
+
return v; if (typeof v === 'string') {
|
|
441
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
442
|
+
return v;
|
|
443
|
+
return Number(v);
|
|
444
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
445
|
+
zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())
|
|
446
|
+
]),
|
|
447
|
+
tieredBy: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
|
|
448
|
+
minUnits: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
449
|
+
return undefined; if (Array.isArray(v))
|
|
450
|
+
return v; if (typeof v === 'string') {
|
|
451
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
452
|
+
return v;
|
|
453
|
+
return Number(v);
|
|
454
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
455
|
+
effectiveFrom: zod_1.z.string()
|
|
456
|
+
}).strict();
|
|
457
|
+
/**
|
|
458
|
+
* A generation model available to `prompt`-bearing image, video and audio assets, with the options it accepts and what it costs. Render a model picker and its option fields from this rather than hard coding a model list, so a newly launched model is available without a client release.
|
|
459
|
+
*/
|
|
460
|
+
exports.generationmodelGenerationModelSchema = zod_1.z.object({
|
|
461
|
+
model: zod_1.z.string(),
|
|
462
|
+
type: zod_1.z.enum([
|
|
463
|
+
'image',
|
|
464
|
+
'video',
|
|
465
|
+
'audio'
|
|
466
|
+
]),
|
|
467
|
+
pricing: zod_1.z.optional(exports.generationmodelpricingGenerationModelPricingSchema),
|
|
468
|
+
options: zod_1.z.optional(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()))
|
|
469
|
+
}).strict();
|
|
424
470
|
/**
|
|
425
471
|
* The Html5Asset renders full HTML5/CSS3/JS.
|
|
426
472
|
*
|
|
@@ -759,6 +805,12 @@ exports.assetresponseAssetResponseSchema = zod_1.z.object({
|
|
|
759
805
|
data: exports.assetresponsedataAssetResponseDataSchema
|
|
760
806
|
}).strict();
|
|
761
807
|
exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
|
|
808
|
+
/**
|
|
809
|
+
* The generation models available to this account.
|
|
810
|
+
*/
|
|
811
|
+
exports.generationmodellistresponseGenerationModelListResponseSchema = zod_1.z.object({
|
|
812
|
+
models: zod_1.z.array(exports.generationmodelGenerationModelSchema)
|
|
813
|
+
}).strict();
|
|
762
814
|
/**
|
|
763
815
|
* The status of an on-demand asset generation job. Completed jobs include the public URL of the generated asset.
|
|
764
816
|
*/
|
|
@@ -907,6 +959,7 @@ exports.richcaptionpropertiesRichCaptionFontSchema = zod_1.z.object({
|
|
|
907
959
|
return Number(v);
|
|
908
960
|
} return v; }), zod_1.z.number().int().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
909
961
|
weight: zod_1.z.optional(zod_1.z.unknown()).default('400'),
|
|
962
|
+
style: zod_1.z.optional(zod_1.z.enum(['normal', 'italic'])),
|
|
910
963
|
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffffff'),
|
|
911
964
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
912
965
|
return undefined; if (Array.isArray(v))
|
|
@@ -1227,6 +1280,7 @@ exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
|
1227
1280
|
return Number(v);
|
|
1228
1281
|
} return v; }), zod_1.z.number().int().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1229
1282
|
weight: zod_1.z.optional(zod_1.z.unknown()).default('400'),
|
|
1283
|
+
style: zod_1.z.optional(zod_1.z.enum(['normal', 'italic'])),
|
|
1230
1284
|
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
1231
1285
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1232
1286
|
return undefined; if (Array.isArray(v))
|
|
@@ -2888,6 +2942,28 @@ exports.getGenerateRequest = zod_1.z.object({
|
|
|
2888
2942
|
* The generation job has finished (done or failed).
|
|
2889
2943
|
*/
|
|
2890
2944
|
exports.getGenerateResponse = exports.generationresponseGenerationResponseSchema;
|
|
2945
|
+
exports.getModelsRequest = zod_1.z.object({
|
|
2946
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2947
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2948
|
+
query: zod_1.z.optional(zod_1.z.object({
|
|
2949
|
+
expand: zod_1.z.optional(zod_1.z.enum(['options']))
|
|
2950
|
+
}))
|
|
2951
|
+
}).strict();
|
|
2952
|
+
/**
|
|
2953
|
+
* The available generation models.
|
|
2954
|
+
*/
|
|
2955
|
+
exports.getModelsResponse = exports.generationmodellistresponseGenerationModelListResponseSchema;
|
|
2956
|
+
exports.getModelRequest = zod_1.z.object({
|
|
2957
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2958
|
+
path: zod_1.z.object({
|
|
2959
|
+
id: zod_1.z.string()
|
|
2960
|
+
}),
|
|
2961
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
2962
|
+
}).strict();
|
|
2963
|
+
/**
|
|
2964
|
+
* The generation model, with its option schema.
|
|
2965
|
+
*/
|
|
2966
|
+
exports.getModelResponse = exports.generationmodelGenerationModelSchema;
|
|
2891
2967
|
exports.deleteAssetRequest = zod_1.z.object({
|
|
2892
2968
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
2893
2969
|
path: zod_1.z.object({
|