@shotstack/schemas 1.3.2 → 1.3.3
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 +48 -5
- package/dist/schema.d.ts +34 -83
- package/dist/zod/zod.gen.cjs +26 -73
- package/dist/zod/zod.gen.d.ts +937 -974
- package/dist/zod/zod.gen.js +26 -73
- package/dist/zod/zod.gen.ts +26 -73
- package/package.json +3 -2
package/dist/zod/zod.gen.js
CHANGED
|
@@ -61,7 +61,7 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
|
61
61
|
*
|
|
62
62
|
*/
|
|
63
63
|
export const captionassetCaptionAssetSchema = z.object({
|
|
64
|
-
type: z.
|
|
64
|
+
type: z.enum(["caption"]),
|
|
65
65
|
src: z.string(),
|
|
66
66
|
font: z.optional(captionpropertiesCaptionFontSchema),
|
|
67
67
|
background: z.optional(captionpropertiesCaptionBackgroundSchema),
|
|
@@ -828,7 +828,7 @@ export const fontSchema = fontFontSchema;
|
|
|
828
828
|
* @deprecated
|
|
829
829
|
*/
|
|
830
830
|
export const htmlassetHtmlAssetSchema = z.object({
|
|
831
|
-
type: z.
|
|
831
|
+
type: z.enum(["html"]),
|
|
832
832
|
html: z.string(),
|
|
833
833
|
css: z.optional(z.string()),
|
|
834
834
|
width: z.optional(z.int()),
|
|
@@ -851,7 +851,7 @@ export const htmlAssetSchema = htmlassetHtmlAssetSchema;
|
|
|
851
851
|
* The ImageAsset is used to create video from images to compose an image. The src must be a publicly accessible URL to an image resource such as a jpg or png file.
|
|
852
852
|
*/
|
|
853
853
|
export const imageassetImageAssetSchema = z.object({
|
|
854
|
-
type: z.
|
|
854
|
+
type: z.enum(["image"]),
|
|
855
855
|
src: z.string(),
|
|
856
856
|
crop: z.optional(cropCropSchema),
|
|
857
857
|
});
|
|
@@ -987,7 +987,7 @@ export const transcriptionSchema = transcriptionTranscriptionSchema;
|
|
|
987
987
|
* The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.
|
|
988
988
|
*/
|
|
989
989
|
export const lumaassetLumaAssetSchema = z.object({
|
|
990
|
-
type: z.
|
|
990
|
+
type: z.enum(["luma"]),
|
|
991
991
|
src: z.string(),
|
|
992
992
|
trim: z.optional(z.number()),
|
|
993
993
|
});
|
|
@@ -1240,7 +1240,7 @@ export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
|
|
|
1240
1240
|
*
|
|
1241
1241
|
*/
|
|
1242
1242
|
export const richtextassetRichTextAssetSchema = z.object({
|
|
1243
|
-
type: z.
|
|
1243
|
+
type: z.enum(["rich-text"]),
|
|
1244
1244
|
text: z.string().max(5000),
|
|
1245
1245
|
font: z.optional(richtextpropertiesRichTextFontSchema),
|
|
1246
1246
|
style: z.optional(richtextpropertiesRichTextStyleSchema),
|
|
@@ -1292,7 +1292,7 @@ export const transferSchema = transferTransferSchema;
|
|
|
1292
1292
|
*
|
|
1293
1293
|
*/
|
|
1294
1294
|
export const shapeassetShapeAssetSchema = z.object({
|
|
1295
|
-
type: z.
|
|
1295
|
+
type: z.enum(["shape"]),
|
|
1296
1296
|
shape: z.enum(["rectangle", "circle", "line"]),
|
|
1297
1297
|
width: z.optional(z.int()),
|
|
1298
1298
|
height: z.optional(z.int()),
|
|
@@ -1528,7 +1528,7 @@ export const textpropertiesTextStrokeSchema = z.object({
|
|
|
1528
1528
|
*
|
|
1529
1529
|
*/
|
|
1530
1530
|
export const textassetTextAssetSchema = z.object({
|
|
1531
|
-
type: z.
|
|
1531
|
+
type: z.enum(["text"]),
|
|
1532
1532
|
text: z.string(),
|
|
1533
1533
|
width: z.optional(z.int()),
|
|
1534
1534
|
height: z.optional(z.int()),
|
|
@@ -1546,8 +1546,8 @@ export const textAssetSchema = textassetTextAssetSchema;
|
|
|
1546
1546
|
export const texttoimageassetTextToImageAssetSchema = z.object({
|
|
1547
1547
|
type: z.enum(["text-to-image"]),
|
|
1548
1548
|
prompt: z.string(),
|
|
1549
|
-
width: z.int(),
|
|
1550
|
-
height: z.int(),
|
|
1549
|
+
width: z.optional(z.int()),
|
|
1550
|
+
height: z.optional(z.int()),
|
|
1551
1551
|
crop: z.optional(cropCropSchema),
|
|
1552
1552
|
});
|
|
1553
1553
|
export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
|
|
@@ -1776,7 +1776,7 @@ export const tweenSchema = tweenTweenSchema;
|
|
|
1776
1776
|
* The AudioAsset is used to add sound effects and audio at specific intervals on the timeline. The src must be a publicly accessible URL to an audio resource such as an mp3 file.
|
|
1777
1777
|
*/
|
|
1778
1778
|
export const audioassetAudioAssetSchema = z.object({
|
|
1779
|
-
type: z.
|
|
1779
|
+
type: z.enum(["audio"]),
|
|
1780
1780
|
src: z.string(),
|
|
1781
1781
|
trim: z.optional(z.number()),
|
|
1782
1782
|
volume: z.optional(z.union([z.number().gte(0).lte(1), z.array(tweenTweenSchema)])),
|
|
@@ -1816,7 +1816,7 @@ export const skewTransformationSchema = skewtransformationSkewTransformationSche
|
|
|
1816
1816
|
* @deprecated
|
|
1817
1817
|
*/
|
|
1818
1818
|
export const titleassetTitleAssetSchema = z.object({
|
|
1819
|
-
type: z.
|
|
1819
|
+
type: z.enum(["title"]),
|
|
1820
1820
|
text: z.string(),
|
|
1821
1821
|
style: z.optional(z.enum([
|
|
1822
1822
|
"minimal",
|
|
@@ -1868,7 +1868,7 @@ export const transformationSchema = transformationTransformationSchema;
|
|
|
1868
1868
|
* 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.
|
|
1869
1869
|
*/
|
|
1870
1870
|
export const videoassetVideoAssetSchema = z.object({
|
|
1871
|
-
type: z.
|
|
1871
|
+
type: z.enum(["video"]),
|
|
1872
1872
|
src: z.string(),
|
|
1873
1873
|
transcode: z.optional(z.boolean()).default(false),
|
|
1874
1874
|
trim: z.optional(z.number()),
|
|
@@ -1882,67 +1882,19 @@ export const videoAssetSchema = videoassetVideoAssetSchema;
|
|
|
1882
1882
|
/**
|
|
1883
1883
|
* 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.
|
|
1884
1884
|
*/
|
|
1885
|
-
export const assetAssetSchema = z.
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
asset: z.literal("textasset_TextAsset"),
|
|
1899
|
-
})
|
|
1900
|
-
.and(textassetTextAssetSchema),
|
|
1901
|
-
z
|
|
1902
|
-
.object({
|
|
1903
|
-
asset: z.literal("richtextasset_RichTextAsset"),
|
|
1904
|
-
})
|
|
1905
|
-
.and(richtextassetRichTextAssetSchema),
|
|
1906
|
-
z
|
|
1907
|
-
.object({
|
|
1908
|
-
asset: z.literal("audioasset_AudioAsset"),
|
|
1909
|
-
})
|
|
1910
|
-
.and(audioassetAudioAssetSchema),
|
|
1911
|
-
z
|
|
1912
|
-
.object({
|
|
1913
|
-
asset: z.literal("lumaasset_LumaAsset"),
|
|
1914
|
-
})
|
|
1915
|
-
.and(lumaassetLumaAssetSchema),
|
|
1916
|
-
z
|
|
1917
|
-
.object({
|
|
1918
|
-
asset: z.literal("captionasset_CaptionAsset"),
|
|
1919
|
-
})
|
|
1920
|
-
.and(captionassetCaptionAssetSchema),
|
|
1921
|
-
z
|
|
1922
|
-
.object({
|
|
1923
|
-
asset: z.literal("htmlasset_HtmlAsset"),
|
|
1924
|
-
})
|
|
1925
|
-
.and(htmlassetHtmlAssetSchema),
|
|
1926
|
-
z
|
|
1927
|
-
.object({
|
|
1928
|
-
asset: z.literal("titleasset_TitleAsset"),
|
|
1929
|
-
})
|
|
1930
|
-
.and(titleassetTitleAssetSchema),
|
|
1931
|
-
z
|
|
1932
|
-
.object({
|
|
1933
|
-
asset: z.literal("shapeasset_ShapeAsset"),
|
|
1934
|
-
})
|
|
1935
|
-
.and(shapeassetShapeAssetSchema),
|
|
1936
|
-
z
|
|
1937
|
-
.object({
|
|
1938
|
-
asset: z.literal("texttoimageasset_TextToImageAsset"),
|
|
1939
|
-
})
|
|
1940
|
-
.and(texttoimageassetTextToImageAssetSchema),
|
|
1941
|
-
z
|
|
1942
|
-
.object({
|
|
1943
|
-
asset: z.literal("imagetovideoasset_ImageToVideoAsset"),
|
|
1944
|
-
})
|
|
1945
|
-
.and(imagetovideoassetImageToVideoAssetSchema),
|
|
1885
|
+
export const assetAssetSchema = z.discriminatedUnion("type", [
|
|
1886
|
+
videoassetVideoAssetSchema,
|
|
1887
|
+
imageassetImageAssetSchema,
|
|
1888
|
+
textassetTextAssetSchema,
|
|
1889
|
+
richtextassetRichTextAssetSchema,
|
|
1890
|
+
audioassetAudioAssetSchema,
|
|
1891
|
+
lumaassetLumaAssetSchema,
|
|
1892
|
+
captionassetCaptionAssetSchema,
|
|
1893
|
+
htmlassetHtmlAssetSchema,
|
|
1894
|
+
titleassetTitleAssetSchema,
|
|
1895
|
+
shapeassetShapeAssetSchema,
|
|
1896
|
+
texttoimageassetTextToImageAssetSchema,
|
|
1897
|
+
imagetovideoassetImageToVideoAssetSchema,
|
|
1946
1898
|
]);
|
|
1947
1899
|
export const assetSchema = assetAssetSchema;
|
|
1948
1900
|
/**
|
|
@@ -1990,6 +1942,7 @@ export const clipClipSchema = z.object({
|
|
|
1990
1942
|
"slideDownFast",
|
|
1991
1943
|
])),
|
|
1992
1944
|
filter: z.optional(z.enum([
|
|
1945
|
+
"none",
|
|
1993
1946
|
"blur",
|
|
1994
1947
|
"boost",
|
|
1995
1948
|
"contrast",
|
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -85,7 +85,7 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
|
85
85
|
*
|
|
86
86
|
*/
|
|
87
87
|
export const captionassetCaptionAssetSchema = z.object({
|
|
88
|
-
type: z.
|
|
88
|
+
type: z.enum(["caption"]),
|
|
89
89
|
src: z.string(),
|
|
90
90
|
font: z.optional(captionpropertiesCaptionFontSchema),
|
|
91
91
|
background: z.optional(captionpropertiesCaptionBackgroundSchema),
|
|
@@ -1037,7 +1037,7 @@ export const fontSchema = fontFontSchema;
|
|
|
1037
1037
|
* @deprecated
|
|
1038
1038
|
*/
|
|
1039
1039
|
export const htmlassetHtmlAssetSchema = z.object({
|
|
1040
|
-
type: z.
|
|
1040
|
+
type: z.enum(["html"]),
|
|
1041
1041
|
html: z.string(),
|
|
1042
1042
|
css: z.optional(z.string()),
|
|
1043
1043
|
width: z.optional(z.int()),
|
|
@@ -1064,7 +1064,7 @@ export const htmlAssetSchema = htmlassetHtmlAssetSchema;
|
|
|
1064
1064
|
* The ImageAsset is used to create video from images to compose an image. The src must be a publicly accessible URL to an image resource such as a jpg or png file.
|
|
1065
1065
|
*/
|
|
1066
1066
|
export const imageassetImageAssetSchema = z.object({
|
|
1067
|
-
type: z.
|
|
1067
|
+
type: z.enum(["image"]),
|
|
1068
1068
|
src: z.string(),
|
|
1069
1069
|
crop: z.optional(cropCropSchema),
|
|
1070
1070
|
});
|
|
@@ -1239,7 +1239,7 @@ export const transcriptionSchema = transcriptionTranscriptionSchema;
|
|
|
1239
1239
|
* The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.
|
|
1240
1240
|
*/
|
|
1241
1241
|
export const lumaassetLumaAssetSchema = z.object({
|
|
1242
|
-
type: z.
|
|
1242
|
+
type: z.enum(["luma"]),
|
|
1243
1243
|
src: z.string(),
|
|
1244
1244
|
trim: z.optional(z.number()),
|
|
1245
1245
|
});
|
|
@@ -1556,7 +1556,7 @@ export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
|
|
|
1556
1556
|
*
|
|
1557
1557
|
*/
|
|
1558
1558
|
export const richtextassetRichTextAssetSchema = z.object({
|
|
1559
|
-
type: z.
|
|
1559
|
+
type: z.enum(["rich-text"]),
|
|
1560
1560
|
text: z.string().max(5000),
|
|
1561
1561
|
font: z.optional(richtextpropertiesRichTextFontSchema),
|
|
1562
1562
|
style: z.optional(richtextpropertiesRichTextStyleSchema),
|
|
@@ -1625,7 +1625,7 @@ export const transferSchema = transferTransferSchema;
|
|
|
1625
1625
|
*
|
|
1626
1626
|
*/
|
|
1627
1627
|
export const shapeassetShapeAssetSchema = z.object({
|
|
1628
|
-
type: z.
|
|
1628
|
+
type: z.enum(["shape"]),
|
|
1629
1629
|
shape: z.enum(["rectangle", "circle", "line"]),
|
|
1630
1630
|
width: z.optional(z.int()),
|
|
1631
1631
|
height: z.optional(z.int()),
|
|
@@ -1920,7 +1920,7 @@ export const textpropertiesTextStrokeSchema = z.object({
|
|
|
1920
1920
|
*
|
|
1921
1921
|
*/
|
|
1922
1922
|
export const textassetTextAssetSchema = z.object({
|
|
1923
|
-
type: z.
|
|
1923
|
+
type: z.enum(["text"]),
|
|
1924
1924
|
text: z.string(),
|
|
1925
1925
|
width: z.optional(z.int()),
|
|
1926
1926
|
height: z.optional(z.int()),
|
|
@@ -1940,8 +1940,8 @@ export const textAssetSchema = textassetTextAssetSchema;
|
|
|
1940
1940
|
export const texttoimageassetTextToImageAssetSchema = z.object({
|
|
1941
1941
|
type: z.enum(["text-to-image"]),
|
|
1942
1942
|
prompt: z.string(),
|
|
1943
|
-
width: z.int(),
|
|
1944
|
-
height: z.int(),
|
|
1943
|
+
width: z.optional(z.int()),
|
|
1944
|
+
height: z.optional(z.int()),
|
|
1945
1945
|
crop: z.optional(cropCropSchema),
|
|
1946
1946
|
});
|
|
1947
1947
|
|
|
@@ -2190,7 +2190,7 @@ export const tweenSchema = tweenTweenSchema;
|
|
|
2190
2190
|
* The AudioAsset is used to add sound effects and audio at specific intervals on the timeline. The src must be a publicly accessible URL to an audio resource such as an mp3 file.
|
|
2191
2191
|
*/
|
|
2192
2192
|
export const audioassetAudioAssetSchema = z.object({
|
|
2193
|
-
type: z.
|
|
2193
|
+
type: z.enum(["audio"]),
|
|
2194
2194
|
src: z.string(),
|
|
2195
2195
|
trim: z.optional(z.number()),
|
|
2196
2196
|
volume: z.optional(
|
|
@@ -2252,7 +2252,7 @@ export const skewTransformationSchema =
|
|
|
2252
2252
|
* @deprecated
|
|
2253
2253
|
*/
|
|
2254
2254
|
export const titleassetTitleAssetSchema = z.object({
|
|
2255
|
-
type: z.
|
|
2255
|
+
type: z.enum(["title"]),
|
|
2256
2256
|
text: z.string(),
|
|
2257
2257
|
style: z.optional(
|
|
2258
2258
|
z.enum([
|
|
@@ -2314,7 +2314,7 @@ export const transformationSchema = transformationTransformationSchema;
|
|
|
2314
2314
|
* 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.
|
|
2315
2315
|
*/
|
|
2316
2316
|
export const videoassetVideoAssetSchema = z.object({
|
|
2317
|
-
type: z.
|
|
2317
|
+
type: z.enum(["video"]),
|
|
2318
2318
|
src: z.string(),
|
|
2319
2319
|
transcode: z.optional(z.boolean()).default(false),
|
|
2320
2320
|
trim: z.optional(z.number()),
|
|
@@ -2334,67 +2334,19 @@ export const videoAssetSchema = videoassetVideoAssetSchema;
|
|
|
2334
2334
|
/**
|
|
2335
2335
|
* 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.
|
|
2336
2336
|
*/
|
|
2337
|
-
export const assetAssetSchema = z.
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
asset: z.literal("textasset_TextAsset"),
|
|
2351
|
-
})
|
|
2352
|
-
.and(textassetTextAssetSchema),
|
|
2353
|
-
z
|
|
2354
|
-
.object({
|
|
2355
|
-
asset: z.literal("richtextasset_RichTextAsset"),
|
|
2356
|
-
})
|
|
2357
|
-
.and(richtextassetRichTextAssetSchema),
|
|
2358
|
-
z
|
|
2359
|
-
.object({
|
|
2360
|
-
asset: z.literal("audioasset_AudioAsset"),
|
|
2361
|
-
})
|
|
2362
|
-
.and(audioassetAudioAssetSchema),
|
|
2363
|
-
z
|
|
2364
|
-
.object({
|
|
2365
|
-
asset: z.literal("lumaasset_LumaAsset"),
|
|
2366
|
-
})
|
|
2367
|
-
.and(lumaassetLumaAssetSchema),
|
|
2368
|
-
z
|
|
2369
|
-
.object({
|
|
2370
|
-
asset: z.literal("captionasset_CaptionAsset"),
|
|
2371
|
-
})
|
|
2372
|
-
.and(captionassetCaptionAssetSchema),
|
|
2373
|
-
z
|
|
2374
|
-
.object({
|
|
2375
|
-
asset: z.literal("htmlasset_HtmlAsset"),
|
|
2376
|
-
})
|
|
2377
|
-
.and(htmlassetHtmlAssetSchema),
|
|
2378
|
-
z
|
|
2379
|
-
.object({
|
|
2380
|
-
asset: z.literal("titleasset_TitleAsset"),
|
|
2381
|
-
})
|
|
2382
|
-
.and(titleassetTitleAssetSchema),
|
|
2383
|
-
z
|
|
2384
|
-
.object({
|
|
2385
|
-
asset: z.literal("shapeasset_ShapeAsset"),
|
|
2386
|
-
})
|
|
2387
|
-
.and(shapeassetShapeAssetSchema),
|
|
2388
|
-
z
|
|
2389
|
-
.object({
|
|
2390
|
-
asset: z.literal("texttoimageasset_TextToImageAsset"),
|
|
2391
|
-
})
|
|
2392
|
-
.and(texttoimageassetTextToImageAssetSchema),
|
|
2393
|
-
z
|
|
2394
|
-
.object({
|
|
2395
|
-
asset: z.literal("imagetovideoasset_ImageToVideoAsset"),
|
|
2396
|
-
})
|
|
2397
|
-
.and(imagetovideoassetImageToVideoAssetSchema),
|
|
2337
|
+
export const assetAssetSchema = z.discriminatedUnion("type", [
|
|
2338
|
+
videoassetVideoAssetSchema,
|
|
2339
|
+
imageassetImageAssetSchema,
|
|
2340
|
+
textassetTextAssetSchema,
|
|
2341
|
+
richtextassetRichTextAssetSchema,
|
|
2342
|
+
audioassetAudioAssetSchema,
|
|
2343
|
+
lumaassetLumaAssetSchema,
|
|
2344
|
+
captionassetCaptionAssetSchema,
|
|
2345
|
+
htmlassetHtmlAssetSchema,
|
|
2346
|
+
titleassetTitleAssetSchema,
|
|
2347
|
+
shapeassetShapeAssetSchema,
|
|
2348
|
+
texttoimageassetTextToImageAssetSchema,
|
|
2349
|
+
imagetovideoassetImageToVideoAssetSchema,
|
|
2398
2350
|
]);
|
|
2399
2351
|
|
|
2400
2352
|
export const assetSchema = assetAssetSchema;
|
|
@@ -2449,6 +2401,7 @@ export const clipClipSchema = z.object({
|
|
|
2449
2401
|
),
|
|
2450
2402
|
filter: z.optional(
|
|
2451
2403
|
z.enum([
|
|
2404
|
+
"none",
|
|
2452
2405
|
"blur",
|
|
2453
2406
|
"boost",
|
|
2454
2407
|
"contrast",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shotstack/schemas",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,8 +28,9 @@
|
|
|
28
28
|
"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')\"",
|
|
29
29
|
"compile:zod:esm": "tsc --declaration --module nodenext --moduleResolution nodenext --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts",
|
|
30
30
|
"compile:zod": "npm run compile:zod:cjs && npm run compile:zod:esm",
|
|
31
|
+
"fix:discriminator": "node scripts/fix-discriminator.cjs",
|
|
31
32
|
"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 {};');\"",
|
|
32
|
-
"build": "npm run clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && npm run bundle && npm run generate:types && npm run generate:zod && npm run compile:zod && npm run copy:index",
|
|
33
|
+
"build": "npm run clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && npm run bundle && npm run generate:types && npm run generate:zod && npm run fix:discriminator && npm run compile:zod && npm run copy:index",
|
|
33
34
|
"build:docs": "cross-env ./build-docs.sh",
|
|
34
35
|
"build:sdks": "cross-env ./build-sdks.sh",
|
|
35
36
|
"start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
|