@shotstack/schemas 1.10.10 → 1.11.0-html5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.bundled.json +56 -0
- package/dist/schema.d.ts +45 -1
- package/dist/zod/zod.gen.cjs +23 -5
- package/dist/zod/zod.gen.d.ts +609 -0
- package/dist/zod/zod.gen.js +18 -0
- package/dist/zod/zod.gen.ts +20 -0
- package/package.json +21 -22
package/dist/api.bundled.json
CHANGED
|
@@ -1122,6 +1122,7 @@
|
|
|
1122
1122
|
"caption": "#/components/schemas/CaptionAsset",
|
|
1123
1123
|
"rich-caption": "#/components/schemas/RichCaptionAsset",
|
|
1124
1124
|
"html": "#/components/schemas/HtmlAsset",
|
|
1125
|
+
"html5": "#/components/schemas/Html5Asset",
|
|
1125
1126
|
"title": "#/components/schemas/TitleAsset",
|
|
1126
1127
|
"shape": "#/components/schemas/ShapeAsset",
|
|
1127
1128
|
"svg": "#/components/schemas/SvgAsset",
|
|
@@ -1158,6 +1159,9 @@
|
|
|
1158
1159
|
{
|
|
1159
1160
|
"$ref": "#/components/schemas/HtmlAsset"
|
|
1160
1161
|
},
|
|
1162
|
+
{
|
|
1163
|
+
"$ref": "#/components/schemas/Html5Asset"
|
|
1164
|
+
},
|
|
1161
1165
|
{
|
|
1162
1166
|
"$ref": "#/components/schemas/TitleAsset"
|
|
1163
1167
|
},
|
|
@@ -2334,6 +2338,58 @@
|
|
|
2334
2338
|
"html"
|
|
2335
2339
|
]
|
|
2336
2340
|
},
|
|
2341
|
+
"Html5Asset": {
|
|
2342
|
+
"description": "The Html5Asset renders full HTML5/CSS3/JS.\n",
|
|
2343
|
+
"type": "object",
|
|
2344
|
+
"properties": {
|
|
2345
|
+
"type": {
|
|
2346
|
+
"enum": [
|
|
2347
|
+
"html5"
|
|
2348
|
+
],
|
|
2349
|
+
"default": "html5",
|
|
2350
|
+
"description": "The type of asset - set to `html5` for HTML5/CSS3/JS.",
|
|
2351
|
+
"type": "string"
|
|
2352
|
+
},
|
|
2353
|
+
"html": {
|
|
2354
|
+
"description": "The HTML markup for the asset.",
|
|
2355
|
+
"type": "string",
|
|
2356
|
+
"example": "<div class='card'><h1>{{title}}</h1></div>"
|
|
2357
|
+
},
|
|
2358
|
+
"css": {
|
|
2359
|
+
"description": "The CSS string applied to the HTML.",
|
|
2360
|
+
"type": "string",
|
|
2361
|
+
"example": ".card { font-family: 'Inter'; padding: 32px; }"
|
|
2362
|
+
},
|
|
2363
|
+
"js": {
|
|
2364
|
+
"description": "Optional JavaScript. Use for chart libraries, animations, or DOM manipulation.",
|
|
2365
|
+
"type": "string",
|
|
2366
|
+
"example": "Chart.bar('#chart', { data: [1, 2, 3] });"
|
|
2367
|
+
},
|
|
2368
|
+
"libraries": {
|
|
2369
|
+
"description": "Optional list of approved libraries to auto-inject as `<script>` tags before the\nuser JS runs.\n\nSupported libraries (write your animations normally — no contract required):\n- `gsap` — GSAP timeline + tweens.\n- `d3` — D3.js for data-driven SVG generation. Combine with `gsap` for animation;\n D3's own transitions are not seekable and won't capture deterministically.\n- `anime` — anime.js v3.\n- `lottie` — Lottie SVG renderer for designer-exported Bodymovin JSON.\n\nCSS animations, transitions, and `Element.animate()` are also captured automatically.\n\nMost assets need nothing more than the library itself plus your animation code.\nFor custom hand-rolled animation engines (not in the list above), expose your own\nseek hook by setting `window.__shotstackSeek = (timeMs) => { ... }`.\n",
|
|
2370
|
+
"type": "array",
|
|
2371
|
+
"items": {
|
|
2372
|
+
"type": "string",
|
|
2373
|
+
"enum": [
|
|
2374
|
+
"gsap",
|
|
2375
|
+
"d3",
|
|
2376
|
+
"anime",
|
|
2377
|
+
"lottie"
|
|
2378
|
+
]
|
|
2379
|
+
},
|
|
2380
|
+
"uniqueItems": true,
|
|
2381
|
+
"maxItems": 4,
|
|
2382
|
+
"example": [
|
|
2383
|
+
"gsap"
|
|
2384
|
+
]
|
|
2385
|
+
}
|
|
2386
|
+
},
|
|
2387
|
+
"additionalProperties": false,
|
|
2388
|
+
"required": [
|
|
2389
|
+
"type",
|
|
2390
|
+
"html"
|
|
2391
|
+
]
|
|
2392
|
+
},
|
|
2337
2393
|
"TitleAsset": {
|
|
2338
2394
|
"deprecated": true,
|
|
2339
2395
|
"description": "**Notice: The TitleAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**\n\nThe TitleAsset clip type lets you create video titles from a text string and apply styling and positioning.\n",
|
package/dist/schema.d.ts
CHANGED
|
@@ -544,7 +544,7 @@ export interface components {
|
|
|
544
544
|
alias?: string;
|
|
545
545
|
};
|
|
546
546
|
/** @description 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. */
|
|
547
|
-
Asset: components["schemas"]["VideoAsset"] | components["schemas"]["ImageAsset"] | components["schemas"]["TextAsset"] | components["schemas"]["RichTextAsset"] | components["schemas"]["AudioAsset"] | components["schemas"]["LumaAsset"] | components["schemas"]["CaptionAsset"] | components["schemas"]["RichCaptionAsset"] | components["schemas"]["HtmlAsset"] | components["schemas"]["TitleAsset"] | components["schemas"]["ShapeAsset"] | components["schemas"]["SvgAsset"] | components["schemas"]["TextToImageAsset"] | components["schemas"]["ImageToVideoAsset"] | components["schemas"]["TextToSpeechAsset"];
|
|
547
|
+
Asset: components["schemas"]["VideoAsset"] | components["schemas"]["ImageAsset"] | components["schemas"]["TextAsset"] | components["schemas"]["RichTextAsset"] | components["schemas"]["AudioAsset"] | components["schemas"]["LumaAsset"] | components["schemas"]["CaptionAsset"] | components["schemas"]["RichCaptionAsset"] | components["schemas"]["HtmlAsset"] | components["schemas"]["Html5Asset"] | components["schemas"]["TitleAsset"] | components["schemas"]["ShapeAsset"] | components["schemas"]["SvgAsset"] | components["schemas"]["TextToImageAsset"] | components["schemas"]["ImageToVideoAsset"] | components["schemas"]["TextToSpeechAsset"];
|
|
548
548
|
/** @description 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. */
|
|
549
549
|
VideoAsset: {
|
|
550
550
|
/**
|
|
@@ -1266,6 +1266,50 @@ export interface components {
|
|
|
1266
1266
|
*/
|
|
1267
1267
|
position?: "top" | "topRight" | "right" | "bottomRight" | "bottom" | "bottomLeft" | "left" | "topLeft" | "center";
|
|
1268
1268
|
};
|
|
1269
|
+
/** @description The Html5Asset renders full HTML5/CSS3/JS. */
|
|
1270
|
+
Html5Asset: {
|
|
1271
|
+
/**
|
|
1272
|
+
* @description The type of asset - set to `html5` for HTML5/CSS3/JS. (enum property replaced by openapi-typescript)
|
|
1273
|
+
* @enum {string}
|
|
1274
|
+
*/
|
|
1275
|
+
type: "html5";
|
|
1276
|
+
/**
|
|
1277
|
+
* @description The HTML markup for the asset.
|
|
1278
|
+
* @example <div class='card'><h1>{{title}}</h1></div>
|
|
1279
|
+
*/
|
|
1280
|
+
html: string;
|
|
1281
|
+
/**
|
|
1282
|
+
* @description The CSS string applied to the HTML.
|
|
1283
|
+
* @example .card { font-family: 'Inter'; padding: 32px; }
|
|
1284
|
+
*/
|
|
1285
|
+
css?: string;
|
|
1286
|
+
/**
|
|
1287
|
+
* @description Optional JavaScript. Use for chart libraries, animations, or DOM manipulation.
|
|
1288
|
+
* @example Chart.bar('#chart', { data: [1, 2, 3] });
|
|
1289
|
+
*/
|
|
1290
|
+
js?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* @description Optional list of approved libraries to auto-inject as `<script>` tags before the
|
|
1293
|
+
* user JS runs.
|
|
1294
|
+
*
|
|
1295
|
+
* Supported libraries (write your animations normally — no contract required):
|
|
1296
|
+
* - `gsap` — GSAP timeline + tweens.
|
|
1297
|
+
* - `d3` — D3.js for data-driven SVG generation. Combine with `gsap` for animation;
|
|
1298
|
+
* D3's own transitions are not seekable and won't capture deterministically.
|
|
1299
|
+
* - `anime` — anime.js v3.
|
|
1300
|
+
* - `lottie` — Lottie SVG renderer for designer-exported Bodymovin JSON.
|
|
1301
|
+
*
|
|
1302
|
+
* CSS animations, transitions, and `Element.animate()` are also captured automatically.
|
|
1303
|
+
*
|
|
1304
|
+
* Most assets need nothing more than the library itself plus your animation code.
|
|
1305
|
+
* For custom hand-rolled animation engines (not in the list above), expose your own
|
|
1306
|
+
* seek hook by setting `window.__shotstackSeek = (timeMs) => { ... }`.
|
|
1307
|
+
* @example [
|
|
1308
|
+
* "gsap"
|
|
1309
|
+
* ]
|
|
1310
|
+
*/
|
|
1311
|
+
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
1312
|
+
};
|
|
1269
1313
|
/**
|
|
1270
1314
|
* @deprecated
|
|
1271
1315
|
* @description **Notice: The TitleAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
|
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.tiktokDestinationTiktokDestinationSchema = exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = 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.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.assetsrenderidRootSchema = exports.assetsidRootSchema = exports.assetsRootSchema = exports.sourceRootSchema = exports.editRootSchema = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
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 = 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 = void 0;
|
|
5
|
+
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.html5AssetSchema = exports.html5AssetHtml5AssetSchema = 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;
|
|
6
|
+
exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema = exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema = exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richcaptionpropertiesRichCaptionStyleSchema = 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.assetResponseSchema = exports.assetresponseAssetResponseSchema = exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema = exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema = exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema = exports.rangeSchema = exports.rangeRangeSchema = exports.posterSchema = exports.posterPosterSchema = void 0;
|
|
7
|
+
exports.textpropertiesTextFontSchema = exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema = exports.textpropertiesTextAnimationSchema = exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema = exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema = 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 = void 0;
|
|
8
|
+
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.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 = void 0;
|
|
9
|
+
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 = 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 = void 0;
|
|
10
10
|
const zod_1 = require("zod");
|
|
11
11
|
exports.editRootSchema = zod_1.z.unknown();
|
|
12
12
|
exports.sourceRootSchema = zod_1.z.unknown();
|
|
@@ -419,6 +419,23 @@ exports.fontFontSchema = zod_1.z.object({
|
|
|
419
419
|
src: zod_1.z.string()
|
|
420
420
|
}).strict();
|
|
421
421
|
exports.fontSchema = exports.fontFontSchema;
|
|
422
|
+
/**
|
|
423
|
+
* The Html5Asset renders full HTML5/CSS3/JS.
|
|
424
|
+
*
|
|
425
|
+
*/
|
|
426
|
+
exports.html5AssetHtml5AssetSchema = zod_1.z.object({
|
|
427
|
+
type: zod_1.z.enum(['html5']),
|
|
428
|
+
html: zod_1.z.string(),
|
|
429
|
+
css: zod_1.z.optional(zod_1.z.string()),
|
|
430
|
+
js: zod_1.z.optional(zod_1.z.string()),
|
|
431
|
+
libraries: zod_1.z.optional(zod_1.z.array(zod_1.z.enum([
|
|
432
|
+
'gsap',
|
|
433
|
+
'd3',
|
|
434
|
+
'anime',
|
|
435
|
+
'lottie'
|
|
436
|
+
])).max(4))
|
|
437
|
+
}).strict();
|
|
438
|
+
exports.html5AssetSchema = exports.html5AssetHtml5AssetSchema;
|
|
422
439
|
/**
|
|
423
440
|
* **Notice: The HtmlAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
|
|
424
441
|
*
|
|
@@ -2364,6 +2381,7 @@ exports.assetAssetSchema = zod_1.z.discriminatedUnion("type", [
|
|
|
2364
2381
|
exports.captionassetCaptionAssetSchema,
|
|
2365
2382
|
exports.richcaptionassetRichCaptionAssetSchema,
|
|
2366
2383
|
exports.htmlassetHtmlAssetSchema,
|
|
2384
|
+
exports.html5AssetHtml5AssetSchema,
|
|
2367
2385
|
exports.titleassetTitleAssetSchema,
|
|
2368
2386
|
exports.shapeassetShapeAssetSchema,
|
|
2369
2387
|
exports.svgassetSvgAssetSchema,
|