@shotstack/schemas 1.12.0 → 1.12.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.
@@ -2356,18 +2356,21 @@
2356
2356
  "type": "string"
2357
2357
  },
2358
2358
  "html": {
2359
- "description": "The HTML markup for the asset.",
2359
+ "description": "The HTML markup for the asset. Max 1,000,000 characters.",
2360
2360
  "type": "string",
2361
+ "maxLength": 1000000,
2361
2362
  "example": "<div class='card'><h1>{{title}}</h1></div>"
2362
2363
  },
2363
2364
  "css": {
2364
- "description": "The CSS string applied to the HTML.",
2365
+ "description": "The CSS string applied to the HTML. Max 500,000 characters.",
2365
2366
  "type": "string",
2367
+ "maxLength": 500000,
2366
2368
  "example": ".card { font-family: 'Inter'; padding: 32px; }"
2367
2369
  },
2368
2370
  "js": {
2369
- "description": "Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically.\n",
2371
+ "description": "Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters.\n",
2370
2372
  "type": "string",
2373
+ "maxLength": 500000,
2371
2374
  "example": "gsap.to('.card', { x: 200, duration: 1 });"
2372
2375
  }
2373
2376
  },
package/dist/schema.d.ts CHANGED
@@ -1279,17 +1279,17 @@ export interface components {
1279
1279
  */
1280
1280
  type: "html5";
1281
1281
  /**
1282
- * @description The HTML markup for the asset.
1282
+ * @description The HTML markup for the asset. Max 1,000,000 characters.
1283
1283
  * @example <div class='card'><h1>{{title}}</h1></div>
1284
1284
  */
1285
1285
  html: string;
1286
1286
  /**
1287
- * @description The CSS string applied to the HTML.
1287
+ * @description The CSS string applied to the HTML. Max 500,000 characters.
1288
1288
  * @example .card { font-family: 'Inter'; padding: 32px; }
1289
1289
  */
1290
1290
  css?: string;
1291
1291
  /**
1292
- * @description Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically.
1292
+ * @description Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters.
1293
1293
  * @example gsap.to('.card', { x: 200, duration: 1 });
1294
1294
  */
1295
1295
  js?: string;
@@ -425,9 +425,9 @@ exports.fontSchema = exports.fontFontSchema;
425
425
  */
426
426
  exports.html5AssetHtml5AssetSchema = zod_1.z.object({
427
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())
428
+ html: zod_1.z.string().max(1000000),
429
+ css: zod_1.z.optional(zod_1.z.string().max(500000)),
430
+ js: zod_1.z.optional(zod_1.z.string().max(500000))
431
431
  }).strict();
432
432
  exports.html5AssetSchema = exports.html5AssetHtml5AssetSchema;
433
433
  /**
@@ -417,9 +417,9 @@ export const fontSchema = fontFontSchema;
417
417
  */
418
418
  export const html5AssetHtml5AssetSchema = z.object({
419
419
  type: z.enum(['html5']),
420
- html: z.string(),
421
- css: z.optional(z.string()),
422
- js: z.optional(z.string())
420
+ html: z.string().max(1000000),
421
+ css: z.optional(z.string().max(500000)),
422
+ js: z.optional(z.string().max(500000))
423
423
  }).strict();
424
424
  export const html5AssetSchema = html5AssetHtml5AssetSchema;
425
425
  /**
@@ -373,9 +373,9 @@ export const fontSchema = fontFontSchema;
373
373
  */
374
374
  export const html5AssetHtml5AssetSchema = z.object({
375
375
  type: z.enum(['html5']),
376
- html: z.string(),
377
- css: z.optional(z.string()),
378
- js: z.optional(z.string())
376
+ html: z.string().max(1000000),
377
+ css: z.optional(z.string().max(500000)),
378
+ js: z.optional(z.string().max(500000))
379
379
  }).strict();
380
380
 
381
381
  export const html5AssetSchema = html5AssetHtml5AssetSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",