@shotstack/schemas 1.11.0-html5.1 → 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.
- package/dist/api.bundled.json +2 -20
- package/dist/schema.d.ts +2 -23
- package/dist/zod/zod.gen.cjs +1 -7
- package/dist/zod/zod.gen.d.ts +0 -204
- package/dist/zod/zod.gen.js +1 -7
- package/dist/zod/zod.gen.ts +1 -7
- package/package.json +22 -21
package/dist/api.bundled.json
CHANGED
|
@@ -2361,27 +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": "
|
|
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
|
-
]
|
|
2366
|
+
"example": "gsap.to('.card', { x: 200, duration: 1 });"
|
|
2385
2367
|
}
|
|
2386
2368
|
},
|
|
2387
2369
|
"additionalProperties": false,
|
package/dist/schema.d.ts
CHANGED
|
@@ -1284,31 +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
|
|
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 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
1291
|
};
|
|
1313
1292
|
/**
|
|
1314
1293
|
* @deprecated
|
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -427,13 +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
|
-
'lottie'
|
|
436
|
-
])).max(4))
|
|
430
|
+
js: zod_1.z.optional(zod_1.z.string())
|
|
437
431
|
}).strict();
|
|
438
432
|
exports.html5AssetSchema = exports.html5AssetHtml5AssetSchema;
|
|
439
433
|
/**
|
package/dist/zod/zod.gen.d.ts
CHANGED
|
@@ -763,12 +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
|
-
lottie: "lottie";
|
|
771
|
-
}>>>;
|
|
772
766
|
}, z.core.$strict>;
|
|
773
767
|
export declare const html5AssetSchema: z.ZodObject<{
|
|
774
768
|
type: z.ZodEnum<{
|
|
@@ -777,12 +771,6 @@ export declare const html5AssetSchema: z.ZodObject<{
|
|
|
777
771
|
html: z.ZodString;
|
|
778
772
|
css: z.ZodOptional<z.ZodString>;
|
|
779
773
|
js: z.ZodOptional<z.ZodString>;
|
|
780
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
781
|
-
gsap: "gsap";
|
|
782
|
-
d3: "d3";
|
|
783
|
-
anime: "anime";
|
|
784
|
-
lottie: "lottie";
|
|
785
|
-
}>>>;
|
|
786
774
|
}, z.core.$strict>;
|
|
787
775
|
/**
|
|
788
776
|
* **Notice: The HtmlAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
|
|
@@ -7413,12 +7401,6 @@ export declare const assetAssetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7413
7401
|
html: z.ZodString;
|
|
7414
7402
|
css: z.ZodOptional<z.ZodString>;
|
|
7415
7403
|
js: z.ZodOptional<z.ZodString>;
|
|
7416
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
7417
|
-
gsap: "gsap";
|
|
7418
|
-
d3: "d3";
|
|
7419
|
-
anime: "anime";
|
|
7420
|
-
lottie: "lottie";
|
|
7421
|
-
}>>>;
|
|
7422
7404
|
}, z.core.$strict>, z.ZodObject<{
|
|
7423
7405
|
type: z.ZodEnum<{
|
|
7424
7406
|
title: "title";
|
|
@@ -8146,12 +8128,6 @@ export declare const assetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8146
8128
|
html: z.ZodString;
|
|
8147
8129
|
css: z.ZodOptional<z.ZodString>;
|
|
8148
8130
|
js: z.ZodOptional<z.ZodString>;
|
|
8149
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8150
|
-
gsap: "gsap";
|
|
8151
|
-
d3: "d3";
|
|
8152
|
-
anime: "anime";
|
|
8153
|
-
lottie: "lottie";
|
|
8154
|
-
}>>>;
|
|
8155
8131
|
}, z.core.$strict>, z.ZodObject<{
|
|
8156
8132
|
type: z.ZodEnum<{
|
|
8157
8133
|
title: "title";
|
|
@@ -8883,12 +8859,6 @@ export declare const clipClipSchema: z.ZodObject<{
|
|
|
8883
8859
|
html: z.ZodString;
|
|
8884
8860
|
css: z.ZodOptional<z.ZodString>;
|
|
8885
8861
|
js: z.ZodOptional<z.ZodString>;
|
|
8886
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8887
|
-
gsap: "gsap";
|
|
8888
|
-
d3: "d3";
|
|
8889
|
-
anime: "anime";
|
|
8890
|
-
lottie: "lottie";
|
|
8891
|
-
}>>>;
|
|
8892
8862
|
}, z.core.$strict>, z.ZodObject<{
|
|
8893
8863
|
type: z.ZodEnum<{
|
|
8894
8864
|
title: "title";
|
|
@@ -10100,12 +10070,6 @@ export declare const clipSchema: z.ZodObject<{
|
|
|
10100
10070
|
html: z.ZodString;
|
|
10101
10071
|
css: z.ZodOptional<z.ZodString>;
|
|
10102
10072
|
js: z.ZodOptional<z.ZodString>;
|
|
10103
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
10104
|
-
gsap: "gsap";
|
|
10105
|
-
d3: "d3";
|
|
10106
|
-
anime: "anime";
|
|
10107
|
-
lottie: "lottie";
|
|
10108
|
-
}>>>;
|
|
10109
10073
|
}, z.core.$strict>, z.ZodObject<{
|
|
10110
10074
|
type: z.ZodEnum<{
|
|
10111
10075
|
title: "title";
|
|
@@ -11321,12 +11285,6 @@ export declare const trackTrackSchema: z.ZodObject<{
|
|
|
11321
11285
|
html: z.ZodString;
|
|
11322
11286
|
css: z.ZodOptional<z.ZodString>;
|
|
11323
11287
|
js: z.ZodOptional<z.ZodString>;
|
|
11324
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
11325
|
-
gsap: "gsap";
|
|
11326
|
-
d3: "d3";
|
|
11327
|
-
anime: "anime";
|
|
11328
|
-
lottie: "lottie";
|
|
11329
|
-
}>>>;
|
|
11330
11288
|
}, z.core.$strict>, z.ZodObject<{
|
|
11331
11289
|
type: z.ZodEnum<{
|
|
11332
11290
|
title: "title";
|
|
@@ -12344,7 +12302,6 @@ export declare const trackTrackSchema: z.ZodObject<{
|
|
|
12344
12302
|
html: string;
|
|
12345
12303
|
css?: string;
|
|
12346
12304
|
js?: string;
|
|
12347
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
12348
12305
|
} | {
|
|
12349
12306
|
type: "title";
|
|
12350
12307
|
text: string;
|
|
@@ -12803,7 +12760,6 @@ export declare const trackTrackSchema: z.ZodObject<{
|
|
|
12803
12760
|
html: string;
|
|
12804
12761
|
css?: string;
|
|
12805
12762
|
js?: string;
|
|
12806
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
12807
12763
|
} | {
|
|
12808
12764
|
type: "title";
|
|
12809
12765
|
text: string;
|
|
@@ -13459,12 +13415,6 @@ export declare const trackSchema: z.ZodObject<{
|
|
|
13459
13415
|
html: z.ZodString;
|
|
13460
13416
|
css: z.ZodOptional<z.ZodString>;
|
|
13461
13417
|
js: z.ZodOptional<z.ZodString>;
|
|
13462
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
13463
|
-
gsap: "gsap";
|
|
13464
|
-
d3: "d3";
|
|
13465
|
-
anime: "anime";
|
|
13466
|
-
lottie: "lottie";
|
|
13467
|
-
}>>>;
|
|
13468
13418
|
}, z.core.$strict>, z.ZodObject<{
|
|
13469
13419
|
type: z.ZodEnum<{
|
|
13470
13420
|
title: "title";
|
|
@@ -14482,7 +14432,6 @@ export declare const trackSchema: z.ZodObject<{
|
|
|
14482
14432
|
html: string;
|
|
14483
14433
|
css?: string;
|
|
14484
14434
|
js?: string;
|
|
14485
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
14486
14435
|
} | {
|
|
14487
14436
|
type: "title";
|
|
14488
14437
|
text: string;
|
|
@@ -14941,7 +14890,6 @@ export declare const trackSchema: z.ZodObject<{
|
|
|
14941
14890
|
html: string;
|
|
14942
14891
|
css?: string;
|
|
14943
14892
|
js?: string;
|
|
14944
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
14945
14893
|
} | {
|
|
14946
14894
|
type: "title";
|
|
14947
14895
|
text: string;
|
|
@@ -15614,12 +15562,6 @@ export declare const timelineTimelineSchema: z.ZodObject<{
|
|
|
15614
15562
|
html: z.ZodString;
|
|
15615
15563
|
css: z.ZodOptional<z.ZodString>;
|
|
15616
15564
|
js: z.ZodOptional<z.ZodString>;
|
|
15617
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
15618
|
-
gsap: "gsap";
|
|
15619
|
-
d3: "d3";
|
|
15620
|
-
anime: "anime";
|
|
15621
|
-
lottie: "lottie";
|
|
15622
|
-
}>>>;
|
|
15623
15565
|
}, z.core.$strict>, z.ZodObject<{
|
|
15624
15566
|
type: z.ZodEnum<{
|
|
15625
15567
|
title: "title";
|
|
@@ -16637,7 +16579,6 @@ export declare const timelineTimelineSchema: z.ZodObject<{
|
|
|
16637
16579
|
html: string;
|
|
16638
16580
|
css?: string;
|
|
16639
16581
|
js?: string;
|
|
16640
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
16641
16582
|
} | {
|
|
16642
16583
|
type: "title";
|
|
16643
16584
|
text: string;
|
|
@@ -17096,7 +17037,6 @@ export declare const timelineTimelineSchema: z.ZodObject<{
|
|
|
17096
17037
|
html: string;
|
|
17097
17038
|
css?: string;
|
|
17098
17039
|
js?: string;
|
|
17099
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
17100
17040
|
} | {
|
|
17101
17041
|
type: "title";
|
|
17102
17042
|
text: string;
|
|
@@ -17768,12 +17708,6 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
17768
17708
|
html: z.ZodString;
|
|
17769
17709
|
css: z.ZodOptional<z.ZodString>;
|
|
17770
17710
|
js: z.ZodOptional<z.ZodString>;
|
|
17771
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
17772
|
-
gsap: "gsap";
|
|
17773
|
-
d3: "d3";
|
|
17774
|
-
anime: "anime";
|
|
17775
|
-
lottie: "lottie";
|
|
17776
|
-
}>>>;
|
|
17777
17711
|
}, z.core.$strict>, z.ZodObject<{
|
|
17778
17712
|
type: z.ZodEnum<{
|
|
17779
17713
|
title: "title";
|
|
@@ -18791,7 +18725,6 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
18791
18725
|
html: string;
|
|
18792
18726
|
css?: string;
|
|
18793
18727
|
js?: string;
|
|
18794
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
18795
18728
|
} | {
|
|
18796
18729
|
type: "title";
|
|
18797
18730
|
text: string;
|
|
@@ -19250,7 +19183,6 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
19250
19183
|
html: string;
|
|
19251
19184
|
css?: string;
|
|
19252
19185
|
js?: string;
|
|
19253
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
19254
19186
|
} | {
|
|
19255
19187
|
type: "title";
|
|
19256
19188
|
text: string;
|
|
@@ -19926,12 +19858,6 @@ export declare const editEditSchema: z.ZodObject<{
|
|
|
19926
19858
|
html: z.ZodString;
|
|
19927
19859
|
css: z.ZodOptional<z.ZodString>;
|
|
19928
19860
|
js: z.ZodOptional<z.ZodString>;
|
|
19929
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
19930
|
-
gsap: "gsap";
|
|
19931
|
-
d3: "d3";
|
|
19932
|
-
anime: "anime";
|
|
19933
|
-
lottie: "lottie";
|
|
19934
|
-
}>>>;
|
|
19935
19861
|
}, z.core.$strict>, z.ZodObject<{
|
|
19936
19862
|
type: z.ZodEnum<{
|
|
19937
19863
|
title: "title";
|
|
@@ -20949,7 +20875,6 @@ export declare const editEditSchema: z.ZodObject<{
|
|
|
20949
20875
|
html: string;
|
|
20950
20876
|
css?: string;
|
|
20951
20877
|
js?: string;
|
|
20952
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
20953
20878
|
} | {
|
|
20954
20879
|
type: "title";
|
|
20955
20880
|
text: string;
|
|
@@ -21408,7 +21333,6 @@ export declare const editEditSchema: z.ZodObject<{
|
|
|
21408
21333
|
html: string;
|
|
21409
21334
|
css?: string;
|
|
21410
21335
|
js?: string;
|
|
21411
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
21412
21336
|
} | {
|
|
21413
21337
|
type: "title";
|
|
21414
21338
|
text: string;
|
|
@@ -22246,12 +22170,6 @@ export declare const editSchema: z.ZodObject<{
|
|
|
22246
22170
|
html: z.ZodString;
|
|
22247
22171
|
css: z.ZodOptional<z.ZodString>;
|
|
22248
22172
|
js: z.ZodOptional<z.ZodString>;
|
|
22249
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
22250
|
-
gsap: "gsap";
|
|
22251
|
-
d3: "d3";
|
|
22252
|
-
anime: "anime";
|
|
22253
|
-
lottie: "lottie";
|
|
22254
|
-
}>>>;
|
|
22255
22173
|
}, z.core.$strict>, z.ZodObject<{
|
|
22256
22174
|
type: z.ZodEnum<{
|
|
22257
22175
|
title: "title";
|
|
@@ -23269,7 +23187,6 @@ export declare const editSchema: z.ZodObject<{
|
|
|
23269
23187
|
html: string;
|
|
23270
23188
|
css?: string;
|
|
23271
23189
|
js?: string;
|
|
23272
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
23273
23190
|
} | {
|
|
23274
23191
|
type: "title";
|
|
23275
23192
|
text: string;
|
|
@@ -23728,7 +23645,6 @@ export declare const editSchema: z.ZodObject<{
|
|
|
23728
23645
|
html: string;
|
|
23729
23646
|
css?: string;
|
|
23730
23647
|
js?: string;
|
|
23731
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
23732
23648
|
} | {
|
|
23733
23649
|
type: "title";
|
|
23734
23650
|
text: string;
|
|
@@ -24588,12 +24504,6 @@ export declare const renderresponsedataRenderResponseDataSchema: z.ZodObject<{
|
|
|
24588
24504
|
html: z.ZodString;
|
|
24589
24505
|
css: z.ZodOptional<z.ZodString>;
|
|
24590
24506
|
js: z.ZodOptional<z.ZodString>;
|
|
24591
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
24592
|
-
gsap: "gsap";
|
|
24593
|
-
d3: "d3";
|
|
24594
|
-
anime: "anime";
|
|
24595
|
-
lottie: "lottie";
|
|
24596
|
-
}>>>;
|
|
24597
24507
|
}, z.core.$strict>, z.ZodObject<{
|
|
24598
24508
|
type: z.ZodEnum<{
|
|
24599
24509
|
title: "title";
|
|
@@ -25611,7 +25521,6 @@ export declare const renderresponsedataRenderResponseDataSchema: z.ZodObject<{
|
|
|
25611
25521
|
html: string;
|
|
25612
25522
|
css?: string;
|
|
25613
25523
|
js?: string;
|
|
25614
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
25615
25524
|
} | {
|
|
25616
25525
|
type: "title";
|
|
25617
25526
|
text: string;
|
|
@@ -26070,7 +25979,6 @@ export declare const renderresponsedataRenderResponseDataSchema: z.ZodObject<{
|
|
|
26070
25979
|
html: string;
|
|
26071
25980
|
css?: string;
|
|
26072
25981
|
js?: string;
|
|
26073
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
26074
25982
|
} | {
|
|
26075
25983
|
type: "title";
|
|
26076
25984
|
text: string;
|
|
@@ -26930,12 +26838,6 @@ export declare const renderResponseDataSchema: z.ZodObject<{
|
|
|
26930
26838
|
html: z.ZodString;
|
|
26931
26839
|
css: z.ZodOptional<z.ZodString>;
|
|
26932
26840
|
js: z.ZodOptional<z.ZodString>;
|
|
26933
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
26934
|
-
gsap: "gsap";
|
|
26935
|
-
d3: "d3";
|
|
26936
|
-
anime: "anime";
|
|
26937
|
-
lottie: "lottie";
|
|
26938
|
-
}>>>;
|
|
26939
26841
|
}, z.core.$strict>, z.ZodObject<{
|
|
26940
26842
|
type: z.ZodEnum<{
|
|
26941
26843
|
title: "title";
|
|
@@ -27953,7 +27855,6 @@ export declare const renderResponseDataSchema: z.ZodObject<{
|
|
|
27953
27855
|
html: string;
|
|
27954
27856
|
css?: string;
|
|
27955
27857
|
js?: string;
|
|
27956
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
27957
27858
|
} | {
|
|
27958
27859
|
type: "title";
|
|
27959
27860
|
text: string;
|
|
@@ -28412,7 +28313,6 @@ export declare const renderResponseDataSchema: z.ZodObject<{
|
|
|
28412
28313
|
html: string;
|
|
28413
28314
|
css?: string;
|
|
28414
28315
|
js?: string;
|
|
28415
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
28416
28316
|
} | {
|
|
28417
28317
|
type: "title";
|
|
28418
28318
|
text: string;
|
|
@@ -29278,12 +29178,6 @@ export declare const renderresponseRenderResponseSchema: z.ZodObject<{
|
|
|
29278
29178
|
html: z.ZodString;
|
|
29279
29179
|
css: z.ZodOptional<z.ZodString>;
|
|
29280
29180
|
js: z.ZodOptional<z.ZodString>;
|
|
29281
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
29282
|
-
gsap: "gsap";
|
|
29283
|
-
d3: "d3";
|
|
29284
|
-
anime: "anime";
|
|
29285
|
-
lottie: "lottie";
|
|
29286
|
-
}>>>;
|
|
29287
29181
|
}, z.core.$strict>, z.ZodObject<{
|
|
29288
29182
|
type: z.ZodEnum<{
|
|
29289
29183
|
title: "title";
|
|
@@ -30301,7 +30195,6 @@ export declare const renderresponseRenderResponseSchema: z.ZodObject<{
|
|
|
30301
30195
|
html: string;
|
|
30302
30196
|
css?: string;
|
|
30303
30197
|
js?: string;
|
|
30304
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
30305
30198
|
} | {
|
|
30306
30199
|
type: "title";
|
|
30307
30200
|
text: string;
|
|
@@ -30760,7 +30653,6 @@ export declare const renderresponseRenderResponseSchema: z.ZodObject<{
|
|
|
30760
30653
|
html: string;
|
|
30761
30654
|
css?: string;
|
|
30762
30655
|
js?: string;
|
|
30763
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
30764
30656
|
} | {
|
|
30765
30657
|
type: "title";
|
|
30766
30658
|
text: string;
|
|
@@ -31624,12 +31516,6 @@ export declare const renderResponseSchema: z.ZodObject<{
|
|
|
31624
31516
|
html: z.ZodString;
|
|
31625
31517
|
css: z.ZodOptional<z.ZodString>;
|
|
31626
31518
|
js: z.ZodOptional<z.ZodString>;
|
|
31627
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
31628
|
-
gsap: "gsap";
|
|
31629
|
-
d3: "d3";
|
|
31630
|
-
anime: "anime";
|
|
31631
|
-
lottie: "lottie";
|
|
31632
|
-
}>>>;
|
|
31633
31519
|
}, z.core.$strict>, z.ZodObject<{
|
|
31634
31520
|
type: z.ZodEnum<{
|
|
31635
31521
|
title: "title";
|
|
@@ -32647,7 +32533,6 @@ export declare const renderResponseSchema: z.ZodObject<{
|
|
|
32647
32533
|
html: string;
|
|
32648
32534
|
css?: string;
|
|
32649
32535
|
js?: string;
|
|
32650
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
32651
32536
|
} | {
|
|
32652
32537
|
type: "title";
|
|
32653
32538
|
text: string;
|
|
@@ -33106,7 +32991,6 @@ export declare const renderResponseSchema: z.ZodObject<{
|
|
|
33106
32991
|
html: string;
|
|
33107
32992
|
css?: string;
|
|
33108
32993
|
js?: string;
|
|
33109
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
33110
32994
|
} | {
|
|
33111
32995
|
type: "title";
|
|
33112
32996
|
text: string;
|
|
@@ -33955,12 +33839,6 @@ export declare const templatedataresponsedataTemplateDataResponseDataSchema: z.Z
|
|
|
33955
33839
|
html: z.ZodString;
|
|
33956
33840
|
css: z.ZodOptional<z.ZodString>;
|
|
33957
33841
|
js: z.ZodOptional<z.ZodString>;
|
|
33958
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
33959
|
-
gsap: "gsap";
|
|
33960
|
-
d3: "d3";
|
|
33961
|
-
anime: "anime";
|
|
33962
|
-
lottie: "lottie";
|
|
33963
|
-
}>>>;
|
|
33964
33842
|
}, z.core.$strict>, z.ZodObject<{
|
|
33965
33843
|
type: z.ZodEnum<{
|
|
33966
33844
|
title: "title";
|
|
@@ -34978,7 +34856,6 @@ export declare const templatedataresponsedataTemplateDataResponseDataSchema: z.Z
|
|
|
34978
34856
|
html: string;
|
|
34979
34857
|
css?: string;
|
|
34980
34858
|
js?: string;
|
|
34981
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
34982
34859
|
} | {
|
|
34983
34860
|
type: "title";
|
|
34984
34861
|
text: string;
|
|
@@ -35437,7 +35314,6 @@ export declare const templatedataresponsedataTemplateDataResponseDataSchema: z.Z
|
|
|
35437
35314
|
html: string;
|
|
35438
35315
|
css?: string;
|
|
35439
35316
|
js?: string;
|
|
35440
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
35441
35317
|
} | {
|
|
35442
35318
|
type: "title";
|
|
35443
35319
|
text: string;
|
|
@@ -36280,12 +36156,6 @@ export declare const templateDataResponseDataSchema: z.ZodObject<{
|
|
|
36280
36156
|
html: z.ZodString;
|
|
36281
36157
|
css: z.ZodOptional<z.ZodString>;
|
|
36282
36158
|
js: z.ZodOptional<z.ZodString>;
|
|
36283
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
36284
|
-
gsap: "gsap";
|
|
36285
|
-
d3: "d3";
|
|
36286
|
-
anime: "anime";
|
|
36287
|
-
lottie: "lottie";
|
|
36288
|
-
}>>>;
|
|
36289
36159
|
}, z.core.$strict>, z.ZodObject<{
|
|
36290
36160
|
type: z.ZodEnum<{
|
|
36291
36161
|
title: "title";
|
|
@@ -37303,7 +37173,6 @@ export declare const templateDataResponseDataSchema: z.ZodObject<{
|
|
|
37303
37173
|
html: string;
|
|
37304
37174
|
css?: string;
|
|
37305
37175
|
js?: string;
|
|
37306
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
37307
37176
|
} | {
|
|
37308
37177
|
type: "title";
|
|
37309
37178
|
text: string;
|
|
@@ -37762,7 +37631,6 @@ export declare const templateDataResponseDataSchema: z.ZodObject<{
|
|
|
37762
37631
|
html: string;
|
|
37763
37632
|
css?: string;
|
|
37764
37633
|
js?: string;
|
|
37765
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
37766
37634
|
} | {
|
|
37767
37635
|
type: "title";
|
|
37768
37636
|
text: string;
|
|
@@ -38611,12 +38479,6 @@ export declare const templatedataresponseTemplateDataResponseSchema: z.ZodObject
|
|
|
38611
38479
|
html: z.ZodString;
|
|
38612
38480
|
css: z.ZodOptional<z.ZodString>;
|
|
38613
38481
|
js: z.ZodOptional<z.ZodString>;
|
|
38614
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
38615
|
-
gsap: "gsap";
|
|
38616
|
-
d3: "d3";
|
|
38617
|
-
anime: "anime";
|
|
38618
|
-
lottie: "lottie";
|
|
38619
|
-
}>>>;
|
|
38620
38482
|
}, z.core.$strict>, z.ZodObject<{
|
|
38621
38483
|
type: z.ZodEnum<{
|
|
38622
38484
|
title: "title";
|
|
@@ -39634,7 +39496,6 @@ export declare const templatedataresponseTemplateDataResponseSchema: z.ZodObject
|
|
|
39634
39496
|
html: string;
|
|
39635
39497
|
css?: string;
|
|
39636
39498
|
js?: string;
|
|
39637
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
39638
39499
|
} | {
|
|
39639
39500
|
type: "title";
|
|
39640
39501
|
text: string;
|
|
@@ -40093,7 +39954,6 @@ export declare const templatedataresponseTemplateDataResponseSchema: z.ZodObject
|
|
|
40093
39954
|
html: string;
|
|
40094
39955
|
css?: string;
|
|
40095
39956
|
js?: string;
|
|
40096
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
40097
39957
|
} | {
|
|
40098
39958
|
type: "title";
|
|
40099
39959
|
text: string;
|
|
@@ -40940,12 +40800,6 @@ export declare const templateDataResponseSchema: z.ZodObject<{
|
|
|
40940
40800
|
html: z.ZodString;
|
|
40941
40801
|
css: z.ZodOptional<z.ZodString>;
|
|
40942
40802
|
js: z.ZodOptional<z.ZodString>;
|
|
40943
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
40944
|
-
gsap: "gsap";
|
|
40945
|
-
d3: "d3";
|
|
40946
|
-
anime: "anime";
|
|
40947
|
-
lottie: "lottie";
|
|
40948
|
-
}>>>;
|
|
40949
40803
|
}, z.core.$strict>, z.ZodObject<{
|
|
40950
40804
|
type: z.ZodEnum<{
|
|
40951
40805
|
title: "title";
|
|
@@ -41963,7 +41817,6 @@ export declare const templateDataResponseSchema: z.ZodObject<{
|
|
|
41963
41817
|
html: string;
|
|
41964
41818
|
css?: string;
|
|
41965
41819
|
js?: string;
|
|
41966
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
41967
41820
|
} | {
|
|
41968
41821
|
type: "title";
|
|
41969
41822
|
text: string;
|
|
@@ -42422,7 +42275,6 @@ export declare const templateDataResponseSchema: z.ZodObject<{
|
|
|
42422
42275
|
html: string;
|
|
42423
42276
|
css?: string;
|
|
42424
42277
|
js?: string;
|
|
42425
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
42426
42278
|
} | {
|
|
42427
42279
|
type: "title";
|
|
42428
42280
|
text: string;
|
|
@@ -43267,12 +43119,6 @@ export declare const templateTemplateSchema: z.ZodObject<{
|
|
|
43267
43119
|
html: z.ZodString;
|
|
43268
43120
|
css: z.ZodOptional<z.ZodString>;
|
|
43269
43121
|
js: z.ZodOptional<z.ZodString>;
|
|
43270
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
43271
|
-
gsap: "gsap";
|
|
43272
|
-
d3: "d3";
|
|
43273
|
-
anime: "anime";
|
|
43274
|
-
lottie: "lottie";
|
|
43275
|
-
}>>>;
|
|
43276
43122
|
}, z.core.$strict>, z.ZodObject<{
|
|
43277
43123
|
type: z.ZodEnum<{
|
|
43278
43124
|
title: "title";
|
|
@@ -44290,7 +44136,6 @@ export declare const templateTemplateSchema: z.ZodObject<{
|
|
|
44290
44136
|
html: string;
|
|
44291
44137
|
css?: string;
|
|
44292
44138
|
js?: string;
|
|
44293
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
44294
44139
|
} | {
|
|
44295
44140
|
type: "title";
|
|
44296
44141
|
text: string;
|
|
@@ -44749,7 +44594,6 @@ export declare const templateTemplateSchema: z.ZodObject<{
|
|
|
44749
44594
|
html: string;
|
|
44750
44595
|
css?: string;
|
|
44751
44596
|
js?: string;
|
|
44752
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
44753
44597
|
} | {
|
|
44754
44598
|
type: "title";
|
|
44755
44599
|
text: string;
|
|
@@ -45590,12 +45434,6 @@ export declare const templateSchema: z.ZodObject<{
|
|
|
45590
45434
|
html: z.ZodString;
|
|
45591
45435
|
css: z.ZodOptional<z.ZodString>;
|
|
45592
45436
|
js: z.ZodOptional<z.ZodString>;
|
|
45593
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
45594
|
-
gsap: "gsap";
|
|
45595
|
-
d3: "d3";
|
|
45596
|
-
anime: "anime";
|
|
45597
|
-
lottie: "lottie";
|
|
45598
|
-
}>>>;
|
|
45599
45437
|
}, z.core.$strict>, z.ZodObject<{
|
|
45600
45438
|
type: z.ZodEnum<{
|
|
45601
45439
|
title: "title";
|
|
@@ -46613,7 +46451,6 @@ export declare const templateSchema: z.ZodObject<{
|
|
|
46613
46451
|
html: string;
|
|
46614
46452
|
css?: string;
|
|
46615
46453
|
js?: string;
|
|
46616
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
46617
46454
|
} | {
|
|
46618
46455
|
type: "title";
|
|
46619
46456
|
text: string;
|
|
@@ -47072,7 +46909,6 @@ export declare const templateSchema: z.ZodObject<{
|
|
|
47072
46909
|
html: string;
|
|
47073
46910
|
css?: string;
|
|
47074
46911
|
js?: string;
|
|
47075
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
47076
46912
|
} | {
|
|
47077
46913
|
type: "title";
|
|
47078
46914
|
text: string;
|
|
@@ -47912,12 +47748,6 @@ export declare const postRenderRequest: z.ZodObject<{
|
|
|
47912
47748
|
html: z.ZodString;
|
|
47913
47749
|
css: z.ZodOptional<z.ZodString>;
|
|
47914
47750
|
js: z.ZodOptional<z.ZodString>;
|
|
47915
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
47916
|
-
gsap: "gsap";
|
|
47917
|
-
d3: "d3";
|
|
47918
|
-
anime: "anime";
|
|
47919
|
-
lottie: "lottie";
|
|
47920
|
-
}>>>;
|
|
47921
47751
|
}, z.core.$strict>, z.ZodObject<{
|
|
47922
47752
|
type: z.ZodEnum<{
|
|
47923
47753
|
title: "title";
|
|
@@ -48935,7 +48765,6 @@ export declare const postRenderRequest: z.ZodObject<{
|
|
|
48935
48765
|
html: string;
|
|
48936
48766
|
css?: string;
|
|
48937
48767
|
js?: string;
|
|
48938
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
48939
48768
|
} | {
|
|
48940
48769
|
type: "title";
|
|
48941
48770
|
text: string;
|
|
@@ -49394,7 +49223,6 @@ export declare const postRenderRequest: z.ZodObject<{
|
|
|
49394
49223
|
html: string;
|
|
49395
49224
|
css?: string;
|
|
49396
49225
|
js?: string;
|
|
49397
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
49398
49226
|
} | {
|
|
49399
49227
|
type: "title";
|
|
49400
49228
|
text: string;
|
|
@@ -50281,12 +50109,6 @@ export declare const getRenderResponse: z.ZodObject<{
|
|
|
50281
50109
|
html: z.ZodString;
|
|
50282
50110
|
css: z.ZodOptional<z.ZodString>;
|
|
50283
50111
|
js: z.ZodOptional<z.ZodString>;
|
|
50284
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
50285
|
-
gsap: "gsap";
|
|
50286
|
-
d3: "d3";
|
|
50287
|
-
anime: "anime";
|
|
50288
|
-
lottie: "lottie";
|
|
50289
|
-
}>>>;
|
|
50290
50112
|
}, z.core.$strict>, z.ZodObject<{
|
|
50291
50113
|
type: z.ZodEnum<{
|
|
50292
50114
|
title: "title";
|
|
@@ -51304,7 +51126,6 @@ export declare const getRenderResponse: z.ZodObject<{
|
|
|
51304
51126
|
html: string;
|
|
51305
51127
|
css?: string;
|
|
51306
51128
|
js?: string;
|
|
51307
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
51308
51129
|
} | {
|
|
51309
51130
|
type: "title";
|
|
51310
51131
|
text: string;
|
|
@@ -51763,7 +51584,6 @@ export declare const getRenderResponse: z.ZodObject<{
|
|
|
51763
51584
|
html: string;
|
|
51764
51585
|
css?: string;
|
|
51765
51586
|
js?: string;
|
|
51766
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
51767
51587
|
} | {
|
|
51768
51588
|
type: "title";
|
|
51769
51589
|
text: string;
|
|
@@ -52629,12 +52449,6 @@ export declare const postTemplateRequest: z.ZodObject<{
|
|
|
52629
52449
|
html: z.ZodString;
|
|
52630
52450
|
css: z.ZodOptional<z.ZodString>;
|
|
52631
52451
|
js: z.ZodOptional<z.ZodString>;
|
|
52632
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
52633
|
-
gsap: "gsap";
|
|
52634
|
-
d3: "d3";
|
|
52635
|
-
anime: "anime";
|
|
52636
|
-
lottie: "lottie";
|
|
52637
|
-
}>>>;
|
|
52638
52452
|
}, z.core.$strict>, z.ZodObject<{
|
|
52639
52453
|
type: z.ZodEnum<{
|
|
52640
52454
|
title: "title";
|
|
@@ -53652,7 +53466,6 @@ export declare const postTemplateRequest: z.ZodObject<{
|
|
|
53652
53466
|
html: string;
|
|
53653
53467
|
css?: string;
|
|
53654
53468
|
js?: string;
|
|
53655
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
53656
53469
|
} | {
|
|
53657
53470
|
type: "title";
|
|
53658
53471
|
text: string;
|
|
@@ -54111,7 +53924,6 @@ export declare const postTemplateRequest: z.ZodObject<{
|
|
|
54111
53924
|
html: string;
|
|
54112
53925
|
css?: string;
|
|
54113
53926
|
js?: string;
|
|
54114
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
54115
53927
|
} | {
|
|
54116
53928
|
type: "title";
|
|
54117
53929
|
text: string;
|
|
@@ -54992,12 +54804,6 @@ export declare const getTemplateResponse: z.ZodObject<{
|
|
|
54992
54804
|
html: z.ZodString;
|
|
54993
54805
|
css: z.ZodOptional<z.ZodString>;
|
|
54994
54806
|
js: z.ZodOptional<z.ZodString>;
|
|
54995
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
54996
|
-
gsap: "gsap";
|
|
54997
|
-
d3: "d3";
|
|
54998
|
-
anime: "anime";
|
|
54999
|
-
lottie: "lottie";
|
|
55000
|
-
}>>>;
|
|
55001
54807
|
}, z.core.$strict>, z.ZodObject<{
|
|
55002
54808
|
type: z.ZodEnum<{
|
|
55003
54809
|
title: "title";
|
|
@@ -56015,7 +55821,6 @@ export declare const getTemplateResponse: z.ZodObject<{
|
|
|
56015
55821
|
html: string;
|
|
56016
55822
|
css?: string;
|
|
56017
55823
|
js?: string;
|
|
56018
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
56019
55824
|
} | {
|
|
56020
55825
|
type: "title";
|
|
56021
55826
|
text: string;
|
|
@@ -56474,7 +56279,6 @@ export declare const getTemplateResponse: z.ZodObject<{
|
|
|
56474
56279
|
html: string;
|
|
56475
56280
|
css?: string;
|
|
56476
56281
|
js?: string;
|
|
56477
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
56478
56282
|
} | {
|
|
56479
56283
|
type: "title";
|
|
56480
56284
|
text: string;
|
|
@@ -57317,12 +57121,6 @@ export declare const putTemplateRequest: z.ZodObject<{
|
|
|
57317
57121
|
html: z.ZodString;
|
|
57318
57122
|
css: z.ZodOptional<z.ZodString>;
|
|
57319
57123
|
js: z.ZodOptional<z.ZodString>;
|
|
57320
|
-
libraries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
57321
|
-
gsap: "gsap";
|
|
57322
|
-
d3: "d3";
|
|
57323
|
-
anime: "anime";
|
|
57324
|
-
lottie: "lottie";
|
|
57325
|
-
}>>>;
|
|
57326
57124
|
}, z.core.$strict>, z.ZodObject<{
|
|
57327
57125
|
type: z.ZodEnum<{
|
|
57328
57126
|
title: "title";
|
|
@@ -58340,7 +58138,6 @@ export declare const putTemplateRequest: z.ZodObject<{
|
|
|
58340
58138
|
html: string;
|
|
58341
58139
|
css?: string;
|
|
58342
58140
|
js?: string;
|
|
58343
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
58344
58141
|
} | {
|
|
58345
58142
|
type: "title";
|
|
58346
58143
|
text: string;
|
|
@@ -58799,7 +58596,6 @@ export declare const putTemplateRequest: z.ZodObject<{
|
|
|
58799
58596
|
html: string;
|
|
58800
58597
|
css?: string;
|
|
58801
58598
|
js?: string;
|
|
58802
|
-
libraries?: ("gsap" | "d3" | "anime" | "lottie")[];
|
|
58803
58599
|
} | {
|
|
58804
58600
|
type: "title";
|
|
58805
58601
|
text: string;
|
package/dist/zod/zod.gen.js
CHANGED
|
@@ -419,13 +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
|
-
'lottie'
|
|
428
|
-
])).max(4))
|
|
422
|
+
js: z.optional(z.string())
|
|
429
423
|
}).strict();
|
|
430
424
|
export const html5AssetSchema = html5AssetHtml5AssetSchema;
|
|
431
425
|
/**
|
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -375,13 +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
|
-
'lottie'
|
|
384
|
-
])).max(4))
|
|
378
|
+
js: z.optional(z.string())
|
|
385
379
|
}).strict();
|
|
386
380
|
|
|
387
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
|
|
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
|
+
}
|