@shotstack/schemas 1.11.0-html5.0 → 1.11.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.
@@ -2361,28 +2361,9 @@
2361
2361
  "example": ".card { font-family: 'Inter'; padding: 32px; }"
2362
2362
  },
2363
2363
  "js": {
2364
- "description": "Optional JavaScript. Use for chart libraries, animations, or DOM manipulation.",
2364
+ "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",
2365
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\nthe user JS runs.\n\nSupported libraries:\n- `gsap` — GSAP timeline + tweens (recommended for animation timing).\n- `d3` — D3.js for data-driven SVG generation (combine with gsap for animation).\n- `anime` — anime.js v3 with native paused/seek timeline.\n- `motion` — Motion One declarative animations.\n- `lottie` — Lottie SVG renderer (for designer-exported Bodymovin JSON).\n\nAnimations should expose a paused, seekable timeline at `window.__shotstackTimeline`\nwith `.seek(seconds)` and `.totalDuration()`. CSS animations and Element.animate() are\ncaptured automatically.\n",
2370
- "type": "array",
2371
- "items": {
2372
- "type": "string",
2373
- "enum": [
2374
- "gsap",
2375
- "d3",
2376
- "anime",
2377
- "motion",
2378
- "lottie"
2379
- ]
2380
- },
2381
- "uniqueItems": true,
2382
- "maxItems": 5,
2383
- "example": [
2384
- "gsap"
2385
- ]
2366
+ "example": "gsap.to('.card', { x: 200, duration: 1 });"
2386
2367
  }
2387
2368
  },
2388
2369
  "additionalProperties": false,
package/dist/schema.d.ts CHANGED
@@ -1284,29 +1284,10 @@ export interface components {
1284
1284
  */
1285
1285
  css?: string;
1286
1286
  /**
1287
- * @description Optional JavaScript. Use for chart libraries, animations, or DOM manipulation.
1288
- * @example Chart.bar('#chart', { data: [1, 2, 3] });
1287
+ * @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.
1288
+ * @example gsap.to('.card', { x: 200, duration: 1 });
1289
1289
  */
1290
1290
  js?: string;
1291
- /**
1292
- * @description Optional list of approved libraries to auto-inject as `<script>` tags before
1293
- * the user JS runs.
1294
- *
1295
- * Supported libraries:
1296
- * - `gsap` — GSAP timeline + tweens (recommended for animation timing).
1297
- * - `d3` — D3.js for data-driven SVG generation (combine with gsap for animation).
1298
- * - `anime` — anime.js v3 with native paused/seek timeline.
1299
- * - `motion` — Motion One declarative animations.
1300
- * - `lottie` — Lottie SVG renderer (for designer-exported Bodymovin JSON).
1301
- *
1302
- * Animations should expose a paused, seekable timeline at `window.__shotstackTimeline`
1303
- * with `.seek(seconds)` and `.totalDuration()`. CSS animations and Element.animate() are
1304
- * captured automatically.
1305
- * @example [
1306
- * "gsap"
1307
- * ]
1308
- */
1309
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
1310
1291
  };
1311
1292
  /**
1312
1293
  * @deprecated
@@ -427,14 +427,7 @@ exports.html5AssetHtml5AssetSchema = zod_1.z.object({
427
427
  type: zod_1.z.enum(['html5']),
428
428
  html: zod_1.z.string(),
429
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
- 'motion',
436
- 'lottie'
437
- ])).max(5))
430
+ js: zod_1.z.optional(zod_1.z.string())
438
431
  }).strict();
439
432
  exports.html5AssetSchema = exports.html5AssetHtml5AssetSchema;
440
433
  /**
@@ -763,13 +763,6 @@ export declare const html5AssetHtml5AssetSchema: z.ZodObject<{
763
763
  html: z.ZodString;
764
764
  css: z.ZodOptional<z.ZodString>;
765
765
  js: z.ZodOptional<z.ZodString>;
766
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
767
- gsap: "gsap";
768
- d3: "d3";
769
- anime: "anime";
770
- motion: "motion";
771
- lottie: "lottie";
772
- }>>>;
773
766
  }, z.core.$strict>;
774
767
  export declare const html5AssetSchema: z.ZodObject<{
775
768
  type: z.ZodEnum<{
@@ -778,13 +771,6 @@ export declare const html5AssetSchema: z.ZodObject<{
778
771
  html: z.ZodString;
779
772
  css: z.ZodOptional<z.ZodString>;
780
773
  js: z.ZodOptional<z.ZodString>;
781
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
782
- gsap: "gsap";
783
- d3: "d3";
784
- anime: "anime";
785
- motion: "motion";
786
- lottie: "lottie";
787
- }>>>;
788
774
  }, z.core.$strict>;
789
775
  /**
790
776
  * **Notice: The HtmlAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
@@ -7415,13 +7401,6 @@ export declare const assetAssetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7415
7401
  html: z.ZodString;
7416
7402
  css: z.ZodOptional<z.ZodString>;
7417
7403
  js: z.ZodOptional<z.ZodString>;
7418
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7419
- gsap: "gsap";
7420
- d3: "d3";
7421
- anime: "anime";
7422
- motion: "motion";
7423
- lottie: "lottie";
7424
- }>>>;
7425
7404
  }, z.core.$strict>, z.ZodObject<{
7426
7405
  type: z.ZodEnum<{
7427
7406
  title: "title";
@@ -8149,13 +8128,6 @@ export declare const assetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8149
8128
  html: z.ZodString;
8150
8129
  css: z.ZodOptional<z.ZodString>;
8151
8130
  js: z.ZodOptional<z.ZodString>;
8152
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8153
- gsap: "gsap";
8154
- d3: "d3";
8155
- anime: "anime";
8156
- motion: "motion";
8157
- lottie: "lottie";
8158
- }>>>;
8159
8131
  }, z.core.$strict>, z.ZodObject<{
8160
8132
  type: z.ZodEnum<{
8161
8133
  title: "title";
@@ -8887,13 +8859,6 @@ export declare const clipClipSchema: z.ZodObject<{
8887
8859
  html: z.ZodString;
8888
8860
  css: z.ZodOptional<z.ZodString>;
8889
8861
  js: z.ZodOptional<z.ZodString>;
8890
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8891
- gsap: "gsap";
8892
- d3: "d3";
8893
- anime: "anime";
8894
- motion: "motion";
8895
- lottie: "lottie";
8896
- }>>>;
8897
8862
  }, z.core.$strict>, z.ZodObject<{
8898
8863
  type: z.ZodEnum<{
8899
8864
  title: "title";
@@ -10105,13 +10070,6 @@ export declare const clipSchema: z.ZodObject<{
10105
10070
  html: z.ZodString;
10106
10071
  css: z.ZodOptional<z.ZodString>;
10107
10072
  js: z.ZodOptional<z.ZodString>;
10108
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
10109
- gsap: "gsap";
10110
- d3: "d3";
10111
- anime: "anime";
10112
- motion: "motion";
10113
- lottie: "lottie";
10114
- }>>>;
10115
10073
  }, z.core.$strict>, z.ZodObject<{
10116
10074
  type: z.ZodEnum<{
10117
10075
  title: "title";
@@ -11327,13 +11285,6 @@ export declare const trackTrackSchema: z.ZodObject<{
11327
11285
  html: z.ZodString;
11328
11286
  css: z.ZodOptional<z.ZodString>;
11329
11287
  js: z.ZodOptional<z.ZodString>;
11330
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11331
- gsap: "gsap";
11332
- d3: "d3";
11333
- anime: "anime";
11334
- motion: "motion";
11335
- lottie: "lottie";
11336
- }>>>;
11337
11288
  }, z.core.$strict>, z.ZodObject<{
11338
11289
  type: z.ZodEnum<{
11339
11290
  title: "title";
@@ -12351,7 +12302,6 @@ export declare const trackTrackSchema: z.ZodObject<{
12351
12302
  html: string;
12352
12303
  css?: string;
12353
12304
  js?: string;
12354
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
12355
12305
  } | {
12356
12306
  type: "title";
12357
12307
  text: string;
@@ -12810,7 +12760,6 @@ export declare const trackTrackSchema: z.ZodObject<{
12810
12760
  html: string;
12811
12761
  css?: string;
12812
12762
  js?: string;
12813
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
12814
12763
  } | {
12815
12764
  type: "title";
12816
12765
  text: string;
@@ -13466,13 +13415,6 @@ export declare const trackSchema: z.ZodObject<{
13466
13415
  html: z.ZodString;
13467
13416
  css: z.ZodOptional<z.ZodString>;
13468
13417
  js: z.ZodOptional<z.ZodString>;
13469
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
13470
- gsap: "gsap";
13471
- d3: "d3";
13472
- anime: "anime";
13473
- motion: "motion";
13474
- lottie: "lottie";
13475
- }>>>;
13476
13418
  }, z.core.$strict>, z.ZodObject<{
13477
13419
  type: z.ZodEnum<{
13478
13420
  title: "title";
@@ -14490,7 +14432,6 @@ export declare const trackSchema: z.ZodObject<{
14490
14432
  html: string;
14491
14433
  css?: string;
14492
14434
  js?: string;
14493
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
14494
14435
  } | {
14495
14436
  type: "title";
14496
14437
  text: string;
@@ -14949,7 +14890,6 @@ export declare const trackSchema: z.ZodObject<{
14949
14890
  html: string;
14950
14891
  css?: string;
14951
14892
  js?: string;
14952
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
14953
14893
  } | {
14954
14894
  type: "title";
14955
14895
  text: string;
@@ -15622,13 +15562,6 @@ export declare const timelineTimelineSchema: z.ZodObject<{
15622
15562
  html: z.ZodString;
15623
15563
  css: z.ZodOptional<z.ZodString>;
15624
15564
  js: z.ZodOptional<z.ZodString>;
15625
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15626
- gsap: "gsap";
15627
- d3: "d3";
15628
- anime: "anime";
15629
- motion: "motion";
15630
- lottie: "lottie";
15631
- }>>>;
15632
15565
  }, z.core.$strict>, z.ZodObject<{
15633
15566
  type: z.ZodEnum<{
15634
15567
  title: "title";
@@ -16646,7 +16579,6 @@ export declare const timelineTimelineSchema: z.ZodObject<{
16646
16579
  html: string;
16647
16580
  css?: string;
16648
16581
  js?: string;
16649
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
16650
16582
  } | {
16651
16583
  type: "title";
16652
16584
  text: string;
@@ -17105,7 +17037,6 @@ export declare const timelineTimelineSchema: z.ZodObject<{
17105
17037
  html: string;
17106
17038
  css?: string;
17107
17039
  js?: string;
17108
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
17109
17040
  } | {
17110
17041
  type: "title";
17111
17042
  text: string;
@@ -17777,13 +17708,6 @@ export declare const timelineSchema: z.ZodObject<{
17777
17708
  html: z.ZodString;
17778
17709
  css: z.ZodOptional<z.ZodString>;
17779
17710
  js: z.ZodOptional<z.ZodString>;
17780
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
17781
- gsap: "gsap";
17782
- d3: "d3";
17783
- anime: "anime";
17784
- motion: "motion";
17785
- lottie: "lottie";
17786
- }>>>;
17787
17711
  }, z.core.$strict>, z.ZodObject<{
17788
17712
  type: z.ZodEnum<{
17789
17713
  title: "title";
@@ -18801,7 +18725,6 @@ export declare const timelineSchema: z.ZodObject<{
18801
18725
  html: string;
18802
18726
  css?: string;
18803
18727
  js?: string;
18804
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
18805
18728
  } | {
18806
18729
  type: "title";
18807
18730
  text: string;
@@ -19260,7 +19183,6 @@ export declare const timelineSchema: z.ZodObject<{
19260
19183
  html: string;
19261
19184
  css?: string;
19262
19185
  js?: string;
19263
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
19264
19186
  } | {
19265
19187
  type: "title";
19266
19188
  text: string;
@@ -19936,13 +19858,6 @@ export declare const editEditSchema: z.ZodObject<{
19936
19858
  html: z.ZodString;
19937
19859
  css: z.ZodOptional<z.ZodString>;
19938
19860
  js: z.ZodOptional<z.ZodString>;
19939
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
19940
- gsap: "gsap";
19941
- d3: "d3";
19942
- anime: "anime";
19943
- motion: "motion";
19944
- lottie: "lottie";
19945
- }>>>;
19946
19861
  }, z.core.$strict>, z.ZodObject<{
19947
19862
  type: z.ZodEnum<{
19948
19863
  title: "title";
@@ -20960,7 +20875,6 @@ export declare const editEditSchema: z.ZodObject<{
20960
20875
  html: string;
20961
20876
  css?: string;
20962
20877
  js?: string;
20963
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
20964
20878
  } | {
20965
20879
  type: "title";
20966
20880
  text: string;
@@ -21419,7 +21333,6 @@ export declare const editEditSchema: z.ZodObject<{
21419
21333
  html: string;
21420
21334
  css?: string;
21421
21335
  js?: string;
21422
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
21423
21336
  } | {
21424
21337
  type: "title";
21425
21338
  text: string;
@@ -22257,13 +22170,6 @@ export declare const editSchema: z.ZodObject<{
22257
22170
  html: z.ZodString;
22258
22171
  css: z.ZodOptional<z.ZodString>;
22259
22172
  js: z.ZodOptional<z.ZodString>;
22260
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
22261
- gsap: "gsap";
22262
- d3: "d3";
22263
- anime: "anime";
22264
- motion: "motion";
22265
- lottie: "lottie";
22266
- }>>>;
22267
22173
  }, z.core.$strict>, z.ZodObject<{
22268
22174
  type: z.ZodEnum<{
22269
22175
  title: "title";
@@ -23281,7 +23187,6 @@ export declare const editSchema: z.ZodObject<{
23281
23187
  html: string;
23282
23188
  css?: string;
23283
23189
  js?: string;
23284
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
23285
23190
  } | {
23286
23191
  type: "title";
23287
23192
  text: string;
@@ -23740,7 +23645,6 @@ export declare const editSchema: z.ZodObject<{
23740
23645
  html: string;
23741
23646
  css?: string;
23742
23647
  js?: string;
23743
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
23744
23648
  } | {
23745
23649
  type: "title";
23746
23650
  text: string;
@@ -24600,13 +24504,6 @@ export declare const renderresponsedataRenderResponseDataSchema: z.ZodObject<{
24600
24504
  html: z.ZodString;
24601
24505
  css: z.ZodOptional<z.ZodString>;
24602
24506
  js: z.ZodOptional<z.ZodString>;
24603
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
24604
- gsap: "gsap";
24605
- d3: "d3";
24606
- anime: "anime";
24607
- motion: "motion";
24608
- lottie: "lottie";
24609
- }>>>;
24610
24507
  }, z.core.$strict>, z.ZodObject<{
24611
24508
  type: z.ZodEnum<{
24612
24509
  title: "title";
@@ -25624,7 +25521,6 @@ export declare const renderresponsedataRenderResponseDataSchema: z.ZodObject<{
25624
25521
  html: string;
25625
25522
  css?: string;
25626
25523
  js?: string;
25627
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
25628
25524
  } | {
25629
25525
  type: "title";
25630
25526
  text: string;
@@ -26083,7 +25979,6 @@ export declare const renderresponsedataRenderResponseDataSchema: z.ZodObject<{
26083
25979
  html: string;
26084
25980
  css?: string;
26085
25981
  js?: string;
26086
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
26087
25982
  } | {
26088
25983
  type: "title";
26089
25984
  text: string;
@@ -26943,13 +26838,6 @@ export declare const renderResponseDataSchema: z.ZodObject<{
26943
26838
  html: z.ZodString;
26944
26839
  css: z.ZodOptional<z.ZodString>;
26945
26840
  js: z.ZodOptional<z.ZodString>;
26946
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
26947
- gsap: "gsap";
26948
- d3: "d3";
26949
- anime: "anime";
26950
- motion: "motion";
26951
- lottie: "lottie";
26952
- }>>>;
26953
26841
  }, z.core.$strict>, z.ZodObject<{
26954
26842
  type: z.ZodEnum<{
26955
26843
  title: "title";
@@ -27967,7 +27855,6 @@ export declare const renderResponseDataSchema: z.ZodObject<{
27967
27855
  html: string;
27968
27856
  css?: string;
27969
27857
  js?: string;
27970
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
27971
27858
  } | {
27972
27859
  type: "title";
27973
27860
  text: string;
@@ -28426,7 +28313,6 @@ export declare const renderResponseDataSchema: z.ZodObject<{
28426
28313
  html: string;
28427
28314
  css?: string;
28428
28315
  js?: string;
28429
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
28430
28316
  } | {
28431
28317
  type: "title";
28432
28318
  text: string;
@@ -29292,13 +29178,6 @@ export declare const renderresponseRenderResponseSchema: z.ZodObject<{
29292
29178
  html: z.ZodString;
29293
29179
  css: z.ZodOptional<z.ZodString>;
29294
29180
  js: z.ZodOptional<z.ZodString>;
29295
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
29296
- gsap: "gsap";
29297
- d3: "d3";
29298
- anime: "anime";
29299
- motion: "motion";
29300
- lottie: "lottie";
29301
- }>>>;
29302
29181
  }, z.core.$strict>, z.ZodObject<{
29303
29182
  type: z.ZodEnum<{
29304
29183
  title: "title";
@@ -30316,7 +30195,6 @@ export declare const renderresponseRenderResponseSchema: z.ZodObject<{
30316
30195
  html: string;
30317
30196
  css?: string;
30318
30197
  js?: string;
30319
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
30320
30198
  } | {
30321
30199
  type: "title";
30322
30200
  text: string;
@@ -30775,7 +30653,6 @@ export declare const renderresponseRenderResponseSchema: z.ZodObject<{
30775
30653
  html: string;
30776
30654
  css?: string;
30777
30655
  js?: string;
30778
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
30779
30656
  } | {
30780
30657
  type: "title";
30781
30658
  text: string;
@@ -31639,13 +31516,6 @@ export declare const renderResponseSchema: z.ZodObject<{
31639
31516
  html: z.ZodString;
31640
31517
  css: z.ZodOptional<z.ZodString>;
31641
31518
  js: z.ZodOptional<z.ZodString>;
31642
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
31643
- gsap: "gsap";
31644
- d3: "d3";
31645
- anime: "anime";
31646
- motion: "motion";
31647
- lottie: "lottie";
31648
- }>>>;
31649
31519
  }, z.core.$strict>, z.ZodObject<{
31650
31520
  type: z.ZodEnum<{
31651
31521
  title: "title";
@@ -32663,7 +32533,6 @@ export declare const renderResponseSchema: z.ZodObject<{
32663
32533
  html: string;
32664
32534
  css?: string;
32665
32535
  js?: string;
32666
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
32667
32536
  } | {
32668
32537
  type: "title";
32669
32538
  text: string;
@@ -33122,7 +32991,6 @@ export declare const renderResponseSchema: z.ZodObject<{
33122
32991
  html: string;
33123
32992
  css?: string;
33124
32993
  js?: string;
33125
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
33126
32994
  } | {
33127
32995
  type: "title";
33128
32996
  text: string;
@@ -33971,13 +33839,6 @@ export declare const templatedataresponsedataTemplateDataResponseDataSchema: z.Z
33971
33839
  html: z.ZodString;
33972
33840
  css: z.ZodOptional<z.ZodString>;
33973
33841
  js: z.ZodOptional<z.ZodString>;
33974
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
33975
- gsap: "gsap";
33976
- d3: "d3";
33977
- anime: "anime";
33978
- motion: "motion";
33979
- lottie: "lottie";
33980
- }>>>;
33981
33842
  }, z.core.$strict>, z.ZodObject<{
33982
33843
  type: z.ZodEnum<{
33983
33844
  title: "title";
@@ -34995,7 +34856,6 @@ export declare const templatedataresponsedataTemplateDataResponseDataSchema: z.Z
34995
34856
  html: string;
34996
34857
  css?: string;
34997
34858
  js?: string;
34998
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
34999
34859
  } | {
35000
34860
  type: "title";
35001
34861
  text: string;
@@ -35454,7 +35314,6 @@ export declare const templatedataresponsedataTemplateDataResponseDataSchema: z.Z
35454
35314
  html: string;
35455
35315
  css?: string;
35456
35316
  js?: string;
35457
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
35458
35317
  } | {
35459
35318
  type: "title";
35460
35319
  text: string;
@@ -36297,13 +36156,6 @@ export declare const templateDataResponseDataSchema: z.ZodObject<{
36297
36156
  html: z.ZodString;
36298
36157
  css: z.ZodOptional<z.ZodString>;
36299
36158
  js: z.ZodOptional<z.ZodString>;
36300
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
36301
- gsap: "gsap";
36302
- d3: "d3";
36303
- anime: "anime";
36304
- motion: "motion";
36305
- lottie: "lottie";
36306
- }>>>;
36307
36159
  }, z.core.$strict>, z.ZodObject<{
36308
36160
  type: z.ZodEnum<{
36309
36161
  title: "title";
@@ -37321,7 +37173,6 @@ export declare const templateDataResponseDataSchema: z.ZodObject<{
37321
37173
  html: string;
37322
37174
  css?: string;
37323
37175
  js?: string;
37324
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
37325
37176
  } | {
37326
37177
  type: "title";
37327
37178
  text: string;
@@ -37780,7 +37631,6 @@ export declare const templateDataResponseDataSchema: z.ZodObject<{
37780
37631
  html: string;
37781
37632
  css?: string;
37782
37633
  js?: string;
37783
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
37784
37634
  } | {
37785
37635
  type: "title";
37786
37636
  text: string;
@@ -38629,13 +38479,6 @@ export declare const templatedataresponseTemplateDataResponseSchema: z.ZodObject
38629
38479
  html: z.ZodString;
38630
38480
  css: z.ZodOptional<z.ZodString>;
38631
38481
  js: z.ZodOptional<z.ZodString>;
38632
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
38633
- gsap: "gsap";
38634
- d3: "d3";
38635
- anime: "anime";
38636
- motion: "motion";
38637
- lottie: "lottie";
38638
- }>>>;
38639
38482
  }, z.core.$strict>, z.ZodObject<{
38640
38483
  type: z.ZodEnum<{
38641
38484
  title: "title";
@@ -39653,7 +39496,6 @@ export declare const templatedataresponseTemplateDataResponseSchema: z.ZodObject
39653
39496
  html: string;
39654
39497
  css?: string;
39655
39498
  js?: string;
39656
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
39657
39499
  } | {
39658
39500
  type: "title";
39659
39501
  text: string;
@@ -40112,7 +39954,6 @@ export declare const templatedataresponseTemplateDataResponseSchema: z.ZodObject
40112
39954
  html: string;
40113
39955
  css?: string;
40114
39956
  js?: string;
40115
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
40116
39957
  } | {
40117
39958
  type: "title";
40118
39959
  text: string;
@@ -40959,13 +40800,6 @@ export declare const templateDataResponseSchema: z.ZodObject<{
40959
40800
  html: z.ZodString;
40960
40801
  css: z.ZodOptional<z.ZodString>;
40961
40802
  js: z.ZodOptional<z.ZodString>;
40962
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
40963
- gsap: "gsap";
40964
- d3: "d3";
40965
- anime: "anime";
40966
- motion: "motion";
40967
- lottie: "lottie";
40968
- }>>>;
40969
40803
  }, z.core.$strict>, z.ZodObject<{
40970
40804
  type: z.ZodEnum<{
40971
40805
  title: "title";
@@ -41983,7 +41817,6 @@ export declare const templateDataResponseSchema: z.ZodObject<{
41983
41817
  html: string;
41984
41818
  css?: string;
41985
41819
  js?: string;
41986
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
41987
41820
  } | {
41988
41821
  type: "title";
41989
41822
  text: string;
@@ -42442,7 +42275,6 @@ export declare const templateDataResponseSchema: z.ZodObject<{
42442
42275
  html: string;
42443
42276
  css?: string;
42444
42277
  js?: string;
42445
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
42446
42278
  } | {
42447
42279
  type: "title";
42448
42280
  text: string;
@@ -43287,13 +43119,6 @@ export declare const templateTemplateSchema: z.ZodObject<{
43287
43119
  html: z.ZodString;
43288
43120
  css: z.ZodOptional<z.ZodString>;
43289
43121
  js: z.ZodOptional<z.ZodString>;
43290
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
43291
- gsap: "gsap";
43292
- d3: "d3";
43293
- anime: "anime";
43294
- motion: "motion";
43295
- lottie: "lottie";
43296
- }>>>;
43297
43122
  }, z.core.$strict>, z.ZodObject<{
43298
43123
  type: z.ZodEnum<{
43299
43124
  title: "title";
@@ -44311,7 +44136,6 @@ export declare const templateTemplateSchema: z.ZodObject<{
44311
44136
  html: string;
44312
44137
  css?: string;
44313
44138
  js?: string;
44314
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
44315
44139
  } | {
44316
44140
  type: "title";
44317
44141
  text: string;
@@ -44770,7 +44594,6 @@ export declare const templateTemplateSchema: z.ZodObject<{
44770
44594
  html: string;
44771
44595
  css?: string;
44772
44596
  js?: string;
44773
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
44774
44597
  } | {
44775
44598
  type: "title";
44776
44599
  text: string;
@@ -45611,13 +45434,6 @@ export declare const templateSchema: z.ZodObject<{
45611
45434
  html: z.ZodString;
45612
45435
  css: z.ZodOptional<z.ZodString>;
45613
45436
  js: z.ZodOptional<z.ZodString>;
45614
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
45615
- gsap: "gsap";
45616
- d3: "d3";
45617
- anime: "anime";
45618
- motion: "motion";
45619
- lottie: "lottie";
45620
- }>>>;
45621
45437
  }, z.core.$strict>, z.ZodObject<{
45622
45438
  type: z.ZodEnum<{
45623
45439
  title: "title";
@@ -46635,7 +46451,6 @@ export declare const templateSchema: z.ZodObject<{
46635
46451
  html: string;
46636
46452
  css?: string;
46637
46453
  js?: string;
46638
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
46639
46454
  } | {
46640
46455
  type: "title";
46641
46456
  text: string;
@@ -47094,7 +46909,6 @@ export declare const templateSchema: z.ZodObject<{
47094
46909
  html: string;
47095
46910
  css?: string;
47096
46911
  js?: string;
47097
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
47098
46912
  } | {
47099
46913
  type: "title";
47100
46914
  text: string;
@@ -47934,13 +47748,6 @@ export declare const postRenderRequest: z.ZodObject<{
47934
47748
  html: z.ZodString;
47935
47749
  css: z.ZodOptional<z.ZodString>;
47936
47750
  js: z.ZodOptional<z.ZodString>;
47937
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
47938
- gsap: "gsap";
47939
- d3: "d3";
47940
- anime: "anime";
47941
- motion: "motion";
47942
- lottie: "lottie";
47943
- }>>>;
47944
47751
  }, z.core.$strict>, z.ZodObject<{
47945
47752
  type: z.ZodEnum<{
47946
47753
  title: "title";
@@ -48958,7 +48765,6 @@ export declare const postRenderRequest: z.ZodObject<{
48958
48765
  html: string;
48959
48766
  css?: string;
48960
48767
  js?: string;
48961
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
48962
48768
  } | {
48963
48769
  type: "title";
48964
48770
  text: string;
@@ -49417,7 +49223,6 @@ export declare const postRenderRequest: z.ZodObject<{
49417
49223
  html: string;
49418
49224
  css?: string;
49419
49225
  js?: string;
49420
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
49421
49226
  } | {
49422
49227
  type: "title";
49423
49228
  text: string;
@@ -50304,13 +50109,6 @@ export declare const getRenderResponse: z.ZodObject<{
50304
50109
  html: z.ZodString;
50305
50110
  css: z.ZodOptional<z.ZodString>;
50306
50111
  js: z.ZodOptional<z.ZodString>;
50307
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
50308
- gsap: "gsap";
50309
- d3: "d3";
50310
- anime: "anime";
50311
- motion: "motion";
50312
- lottie: "lottie";
50313
- }>>>;
50314
50112
  }, z.core.$strict>, z.ZodObject<{
50315
50113
  type: z.ZodEnum<{
50316
50114
  title: "title";
@@ -51328,7 +51126,6 @@ export declare const getRenderResponse: z.ZodObject<{
51328
51126
  html: string;
51329
51127
  css?: string;
51330
51128
  js?: string;
51331
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
51332
51129
  } | {
51333
51130
  type: "title";
51334
51131
  text: string;
@@ -51787,7 +51584,6 @@ export declare const getRenderResponse: z.ZodObject<{
51787
51584
  html: string;
51788
51585
  css?: string;
51789
51586
  js?: string;
51790
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
51791
51587
  } | {
51792
51588
  type: "title";
51793
51589
  text: string;
@@ -52653,13 +52449,6 @@ export declare const postTemplateRequest: z.ZodObject<{
52653
52449
  html: z.ZodString;
52654
52450
  css: z.ZodOptional<z.ZodString>;
52655
52451
  js: z.ZodOptional<z.ZodString>;
52656
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
52657
- gsap: "gsap";
52658
- d3: "d3";
52659
- anime: "anime";
52660
- motion: "motion";
52661
- lottie: "lottie";
52662
- }>>>;
52663
52452
  }, z.core.$strict>, z.ZodObject<{
52664
52453
  type: z.ZodEnum<{
52665
52454
  title: "title";
@@ -53677,7 +53466,6 @@ export declare const postTemplateRequest: z.ZodObject<{
53677
53466
  html: string;
53678
53467
  css?: string;
53679
53468
  js?: string;
53680
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
53681
53469
  } | {
53682
53470
  type: "title";
53683
53471
  text: string;
@@ -54136,7 +53924,6 @@ export declare const postTemplateRequest: z.ZodObject<{
54136
53924
  html: string;
54137
53925
  css?: string;
54138
53926
  js?: string;
54139
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
54140
53927
  } | {
54141
53928
  type: "title";
54142
53929
  text: string;
@@ -55017,13 +54804,6 @@ export declare const getTemplateResponse: z.ZodObject<{
55017
54804
  html: z.ZodString;
55018
54805
  css: z.ZodOptional<z.ZodString>;
55019
54806
  js: z.ZodOptional<z.ZodString>;
55020
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
55021
- gsap: "gsap";
55022
- d3: "d3";
55023
- anime: "anime";
55024
- motion: "motion";
55025
- lottie: "lottie";
55026
- }>>>;
55027
54807
  }, z.core.$strict>, z.ZodObject<{
55028
54808
  type: z.ZodEnum<{
55029
54809
  title: "title";
@@ -56041,7 +55821,6 @@ export declare const getTemplateResponse: z.ZodObject<{
56041
55821
  html: string;
56042
55822
  css?: string;
56043
55823
  js?: string;
56044
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
56045
55824
  } | {
56046
55825
  type: "title";
56047
55826
  text: string;
@@ -56500,7 +56279,6 @@ export declare const getTemplateResponse: z.ZodObject<{
56500
56279
  html: string;
56501
56280
  css?: string;
56502
56281
  js?: string;
56503
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
56504
56282
  } | {
56505
56283
  type: "title";
56506
56284
  text: string;
@@ -57343,13 +57121,6 @@ export declare const putTemplateRequest: z.ZodObject<{
57343
57121
  html: z.ZodString;
57344
57122
  css: z.ZodOptional<z.ZodString>;
57345
57123
  js: z.ZodOptional<z.ZodString>;
57346
- libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
57347
- gsap: "gsap";
57348
- d3: "d3";
57349
- anime: "anime";
57350
- motion: "motion";
57351
- lottie: "lottie";
57352
- }>>>;
57353
57124
  }, z.core.$strict>, z.ZodObject<{
57354
57125
  type: z.ZodEnum<{
57355
57126
  title: "title";
@@ -58367,7 +58138,6 @@ export declare const putTemplateRequest: z.ZodObject<{
58367
58138
  html: string;
58368
58139
  css?: string;
58369
58140
  js?: string;
58370
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
58371
58141
  } | {
58372
58142
  type: "title";
58373
58143
  text: string;
@@ -58826,7 +58596,6 @@ export declare const putTemplateRequest: z.ZodObject<{
58826
58596
  html: string;
58827
58597
  css?: string;
58828
58598
  js?: string;
58829
- libraries?: ("gsap" | "d3" | "anime" | "motion" | "lottie")[];
58830
58599
  } | {
58831
58600
  type: "title";
58832
58601
  text: string;
@@ -419,14 +419,7 @@ export const html5AssetHtml5AssetSchema = z.object({
419
419
  type: z.enum(['html5']),
420
420
  html: z.string(),
421
421
  css: z.optional(z.string()),
422
- js: z.optional(z.string()),
423
- libraries: z.optional(z.array(z.enum([
424
- 'gsap',
425
- 'd3',
426
- 'anime',
427
- 'motion',
428
- 'lottie'
429
- ])).max(5))
422
+ js: z.optional(z.string())
430
423
  }).strict();
431
424
  export const html5AssetSchema = html5AssetHtml5AssetSchema;
432
425
  /**
@@ -375,14 +375,7 @@ export const html5AssetHtml5AssetSchema = z.object({
375
375
  type: z.enum(['html5']),
376
376
  html: z.string(),
377
377
  css: z.optional(z.string()),
378
- js: z.optional(z.string()),
379
- libraries: z.optional(z.array(z.enum([
380
- 'gsap',
381
- 'd3',
382
- 'anime',
383
- 'motion',
384
- 'lottie'
385
- ])).max(5))
378
+ js: z.optional(z.string())
386
379
  }).strict();
387
380
 
388
381
  export const html5AssetSchema = html5AssetHtml5AssetSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.11.0-html5.0",
3
+ "version": "1.11.0",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,6 +24,26 @@
24
24
  "files": [
25
25
  "dist"
26
26
  ],
27
+ "scripts": {
28
+ "test": "tsc --noEmit --skipLibCheck",
29
+ "clean": "node -e \"fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
30
+ "bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
31
+ "generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts --default-non-nullable=false",
32
+ "generate:zod": "openapi-ts",
33
+ "compile:zod:cjs": "tsc --declaration false --module commonjs --moduleResolution node --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts && node -e \"require('fs').renameSync('dist/zod/zod.gen.js','dist/zod/zod.gen.cjs')\"",
34
+ "compile:zod:esm": "tsc --declaration --module nodenext --moduleResolution nodenext --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts",
35
+ "compile:zod": "pnpm compile:zod:cjs && pnpm compile:zod:esm",
36
+ "generate:json-schema": "node scripts/generate-json-schema.cjs",
37
+ "fix:discriminator": "node scripts/fix-discriminator.cjs",
38
+ "copy:index": "node -e \"require('fs').writeFileSync('dist/index.d.ts','export type * from \\\"./schema\\\";');require('fs').writeFileSync('dist/index.js','// Type-only package\\nexport {};');\"",
39
+ "build": "pnpm clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && pnpm bundle && pnpm generate:types && pnpm generate:zod && pnpm fix:discriminator && pnpm compile:zod && pnpm generate:json-schema && pnpm copy:index",
40
+ "build:docs": "cross-env ./build-docs.sh",
41
+ "build:sdks": "cross-env ./build-sdks.sh",
42
+ "start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
43
+ "deploy:docs": "aws s3 sync build/docs/ s3://shotstack.io/docs/api",
44
+ "prepublishOnly": "node scripts/publish-guard.cjs && pnpm build && pnpm test",
45
+ "test:smoke": "node tests/smoke.cjs"
46
+ },
27
47
  "repository": {
28
48
  "type": "git",
29
49
  "url": "https://github.com/shotstack/oas-api-definition.git"
@@ -71,24 +91,5 @@
71
91
  },
72
92
  "engines": {
73
93
  "node": ">=20"
74
- },
75
- "scripts": {
76
- "test": "tsc --noEmit --skipLibCheck",
77
- "clean": "node -e \"fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
78
- "bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
79
- "generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts --default-non-nullable=false",
80
- "generate:zod": "openapi-ts",
81
- "compile:zod:cjs": "tsc --declaration false --module commonjs --moduleResolution node --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts && node -e \"require('fs').renameSync('dist/zod/zod.gen.js','dist/zod/zod.gen.cjs')\"",
82
- "compile:zod:esm": "tsc --declaration --module nodenext --moduleResolution nodenext --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts",
83
- "compile:zod": "pnpm compile:zod:cjs && pnpm compile:zod:esm",
84
- "generate:json-schema": "node scripts/generate-json-schema.cjs",
85
- "fix:discriminator": "node scripts/fix-discriminator.cjs",
86
- "copy:index": "node -e \"require('fs').writeFileSync('dist/index.d.ts','export type * from \\\"./schema\\\";');require('fs').writeFileSync('dist/index.js','// Type-only package\\nexport {};');\"",
87
- "build": "pnpm clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && pnpm bundle && pnpm generate:types && pnpm generate:zod && pnpm fix:discriminator && pnpm compile:zod && pnpm generate:json-schema && pnpm copy:index",
88
- "build:docs": "cross-env ./build-docs.sh",
89
- "build:sdks": "cross-env ./build-sdks.sh",
90
- "start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
91
- "deploy:docs": "aws s3 sync build/docs/ s3://shotstack.io/docs/api",
92
- "test:smoke": "node tests/smoke.cjs"
93
94
  }
94
- }
95
+ }