@mintlify/validation 0.1.244 → 0.1.246
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/mint-config/schemas/v2/index.d.ts +124 -12
- package/dist/mint-config/schemas/v2/properties/api.d.ts +21 -0
- package/dist/mint-config/schemas/v2/properties/api.js +15 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +31 -3
- package/dist/mint-config/schemas/v2/themes/prism.d.ts +31 -3
- package/dist/mint-config/schemas/v2/themes/quill.d.ts +31 -3
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +21 -1
- package/dist/mint-config/schemas/v2/themes/reusable/index.js +0 -2
- package/dist/mint-config/schemas/v2/themes/venus.d.ts +31 -3
- package/dist/mint-config/upgrades/upgradeToDocsConfig.js +53 -36
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -40,8 +40,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
40
40
|
light: string;
|
|
41
41
|
dark: string;
|
|
42
42
|
}>]>>;
|
|
43
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
44
43
|
api: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
45
45
|
playground: z.ZodOptional<z.ZodObject<{
|
|
46
46
|
display: z.ZodDefault<z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>>;
|
|
47
47
|
proxy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -59,7 +59,18 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
59
59
|
}, {
|
|
60
60
|
languages?: string[] | undefined;
|
|
61
61
|
}>>;
|
|
62
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
auth: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
64
|
+
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
67
|
+
base?: string | string[] | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
70
|
+
base?: string | string[] | undefined;
|
|
71
|
+
}>>;
|
|
62
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
openapi?: string | string[] | undefined;
|
|
63
74
|
playground?: {
|
|
64
75
|
display: "simple" | "none" | "interactive";
|
|
65
76
|
proxy: boolean;
|
|
@@ -67,7 +78,12 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
67
78
|
examples?: {
|
|
68
79
|
languages?: string[] | undefined;
|
|
69
80
|
} | undefined;
|
|
81
|
+
mdx?: {
|
|
82
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
83
|
+
base?: string | string[] | undefined;
|
|
84
|
+
} | undefined;
|
|
70
85
|
}, {
|
|
86
|
+
openapi?: string | string[] | undefined;
|
|
71
87
|
playground?: {
|
|
72
88
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
73
89
|
proxy?: boolean | undefined;
|
|
@@ -75,6 +91,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
75
91
|
examples?: {
|
|
76
92
|
languages?: string[] | undefined;
|
|
77
93
|
} | undefined;
|
|
94
|
+
mdx?: {
|
|
95
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
96
|
+
base?: string | string[] | undefined;
|
|
97
|
+
} | undefined;
|
|
78
98
|
}>>;
|
|
79
99
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
80
100
|
default: z.ZodDefault<z.ZodEnum<["system", "light", "dark"]>>;
|
|
@@ -1512,8 +1532,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
1512
1532
|
light: string;
|
|
1513
1533
|
dark: string;
|
|
1514
1534
|
} | undefined;
|
|
1515
|
-
openapi?: string | string[] | undefined;
|
|
1516
1535
|
api?: {
|
|
1536
|
+
openapi?: string | string[] | undefined;
|
|
1517
1537
|
playground?: {
|
|
1518
1538
|
display: "simple" | "none" | "interactive";
|
|
1519
1539
|
proxy: boolean;
|
|
@@ -1521,6 +1541,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
1521
1541
|
examples?: {
|
|
1522
1542
|
languages?: string[] | undefined;
|
|
1523
1543
|
} | undefined;
|
|
1544
|
+
mdx?: {
|
|
1545
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1546
|
+
base?: string | string[] | undefined;
|
|
1547
|
+
} | undefined;
|
|
1524
1548
|
} | undefined;
|
|
1525
1549
|
appearance?: {
|
|
1526
1550
|
strict: boolean;
|
|
@@ -1888,8 +1912,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
1888
1912
|
light: string;
|
|
1889
1913
|
dark: string;
|
|
1890
1914
|
} | undefined;
|
|
1891
|
-
openapi?: string | string[] | undefined;
|
|
1892
1915
|
api?: {
|
|
1916
|
+
openapi?: string | string[] | undefined;
|
|
1893
1917
|
playground?: {
|
|
1894
1918
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
1895
1919
|
proxy?: boolean | undefined;
|
|
@@ -1897,6 +1921,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
1897
1921
|
examples?: {
|
|
1898
1922
|
languages?: string[] | undefined;
|
|
1899
1923
|
} | undefined;
|
|
1924
|
+
mdx?: {
|
|
1925
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1926
|
+
base?: string | string[] | undefined;
|
|
1927
|
+
} | undefined;
|
|
1900
1928
|
} | undefined;
|
|
1901
1929
|
appearance?: {
|
|
1902
1930
|
default?: "light" | "dark" | "system" | undefined;
|
|
@@ -2072,8 +2100,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
2072
2100
|
light: string;
|
|
2073
2101
|
dark: string;
|
|
2074
2102
|
}>]>>;
|
|
2075
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
2076
2103
|
api: z.ZodOptional<z.ZodObject<{
|
|
2104
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
2077
2105
|
playground: z.ZodOptional<z.ZodObject<{
|
|
2078
2106
|
display: z.ZodDefault<z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>>;
|
|
2079
2107
|
proxy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -2091,7 +2119,18 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
2091
2119
|
}, {
|
|
2092
2120
|
languages?: string[] | undefined;
|
|
2093
2121
|
}>>;
|
|
2122
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
2123
|
+
auth: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
2124
|
+
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2125
|
+
}, "strip", z.ZodTypeAny, {
|
|
2126
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
2127
|
+
base?: string | string[] | undefined;
|
|
2128
|
+
}, {
|
|
2129
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
2130
|
+
base?: string | string[] | undefined;
|
|
2131
|
+
}>>;
|
|
2094
2132
|
}, "strip", z.ZodTypeAny, {
|
|
2133
|
+
openapi?: string | string[] | undefined;
|
|
2095
2134
|
playground?: {
|
|
2096
2135
|
display: "simple" | "none" | "interactive";
|
|
2097
2136
|
proxy: boolean;
|
|
@@ -2099,7 +2138,12 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
2099
2138
|
examples?: {
|
|
2100
2139
|
languages?: string[] | undefined;
|
|
2101
2140
|
} | undefined;
|
|
2141
|
+
mdx?: {
|
|
2142
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
2143
|
+
base?: string | string[] | undefined;
|
|
2144
|
+
} | undefined;
|
|
2102
2145
|
}, {
|
|
2146
|
+
openapi?: string | string[] | undefined;
|
|
2103
2147
|
playground?: {
|
|
2104
2148
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
2105
2149
|
proxy?: boolean | undefined;
|
|
@@ -2107,6 +2151,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
2107
2151
|
examples?: {
|
|
2108
2152
|
languages?: string[] | undefined;
|
|
2109
2153
|
} | undefined;
|
|
2154
|
+
mdx?: {
|
|
2155
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
2156
|
+
base?: string | string[] | undefined;
|
|
2157
|
+
} | undefined;
|
|
2110
2158
|
}>>;
|
|
2111
2159
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
2112
2160
|
default: z.ZodDefault<z.ZodEnum<["system", "light", "dark"]>>;
|
|
@@ -3544,8 +3592,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
3544
3592
|
light: string;
|
|
3545
3593
|
dark: string;
|
|
3546
3594
|
} | undefined;
|
|
3547
|
-
openapi?: string | string[] | undefined;
|
|
3548
3595
|
api?: {
|
|
3596
|
+
openapi?: string | string[] | undefined;
|
|
3549
3597
|
playground?: {
|
|
3550
3598
|
display: "simple" | "none" | "interactive";
|
|
3551
3599
|
proxy: boolean;
|
|
@@ -3553,6 +3601,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
3553
3601
|
examples?: {
|
|
3554
3602
|
languages?: string[] | undefined;
|
|
3555
3603
|
} | undefined;
|
|
3604
|
+
mdx?: {
|
|
3605
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
3606
|
+
base?: string | string[] | undefined;
|
|
3607
|
+
} | undefined;
|
|
3556
3608
|
} | undefined;
|
|
3557
3609
|
appearance?: {
|
|
3558
3610
|
strict: boolean;
|
|
@@ -3920,8 +3972,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
3920
3972
|
light: string;
|
|
3921
3973
|
dark: string;
|
|
3922
3974
|
} | undefined;
|
|
3923
|
-
openapi?: string | string[] | undefined;
|
|
3924
3975
|
api?: {
|
|
3976
|
+
openapi?: string | string[] | undefined;
|
|
3925
3977
|
playground?: {
|
|
3926
3978
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
3927
3979
|
proxy?: boolean | undefined;
|
|
@@ -3929,6 +3981,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
3929
3981
|
examples?: {
|
|
3930
3982
|
languages?: string[] | undefined;
|
|
3931
3983
|
} | undefined;
|
|
3984
|
+
mdx?: {
|
|
3985
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
3986
|
+
base?: string | string[] | undefined;
|
|
3987
|
+
} | undefined;
|
|
3932
3988
|
} | undefined;
|
|
3933
3989
|
appearance?: {
|
|
3934
3990
|
default?: "light" | "dark" | "system" | undefined;
|
|
@@ -4104,8 +4160,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
4104
4160
|
light: string;
|
|
4105
4161
|
dark: string;
|
|
4106
4162
|
}>]>>;
|
|
4107
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
4108
4163
|
api: z.ZodOptional<z.ZodObject<{
|
|
4164
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
4109
4165
|
playground: z.ZodOptional<z.ZodObject<{
|
|
4110
4166
|
display: z.ZodDefault<z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>>;
|
|
4111
4167
|
proxy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -4123,7 +4179,18 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
4123
4179
|
}, {
|
|
4124
4180
|
languages?: string[] | undefined;
|
|
4125
4181
|
}>>;
|
|
4182
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
4183
|
+
auth: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
4184
|
+
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
4185
|
+
}, "strip", z.ZodTypeAny, {
|
|
4186
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
4187
|
+
base?: string | string[] | undefined;
|
|
4188
|
+
}, {
|
|
4189
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
4190
|
+
base?: string | string[] | undefined;
|
|
4191
|
+
}>>;
|
|
4126
4192
|
}, "strip", z.ZodTypeAny, {
|
|
4193
|
+
openapi?: string | string[] | undefined;
|
|
4127
4194
|
playground?: {
|
|
4128
4195
|
display: "simple" | "none" | "interactive";
|
|
4129
4196
|
proxy: boolean;
|
|
@@ -4131,7 +4198,12 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
4131
4198
|
examples?: {
|
|
4132
4199
|
languages?: string[] | undefined;
|
|
4133
4200
|
} | undefined;
|
|
4201
|
+
mdx?: {
|
|
4202
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
4203
|
+
base?: string | string[] | undefined;
|
|
4204
|
+
} | undefined;
|
|
4134
4205
|
}, {
|
|
4206
|
+
openapi?: string | string[] | undefined;
|
|
4135
4207
|
playground?: {
|
|
4136
4208
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
4137
4209
|
proxy?: boolean | undefined;
|
|
@@ -4139,6 +4211,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
4139
4211
|
examples?: {
|
|
4140
4212
|
languages?: string[] | undefined;
|
|
4141
4213
|
} | undefined;
|
|
4214
|
+
mdx?: {
|
|
4215
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
4216
|
+
base?: string | string[] | undefined;
|
|
4217
|
+
} | undefined;
|
|
4142
4218
|
}>>;
|
|
4143
4219
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
4144
4220
|
default: z.ZodDefault<z.ZodEnum<["system", "light", "dark"]>>;
|
|
@@ -5576,8 +5652,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5576
5652
|
light: string;
|
|
5577
5653
|
dark: string;
|
|
5578
5654
|
} | undefined;
|
|
5579
|
-
openapi?: string | string[] | undefined;
|
|
5580
5655
|
api?: {
|
|
5656
|
+
openapi?: string | string[] | undefined;
|
|
5581
5657
|
playground?: {
|
|
5582
5658
|
display: "simple" | "none" | "interactive";
|
|
5583
5659
|
proxy: boolean;
|
|
@@ -5585,6 +5661,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5585
5661
|
examples?: {
|
|
5586
5662
|
languages?: string[] | undefined;
|
|
5587
5663
|
} | undefined;
|
|
5664
|
+
mdx?: {
|
|
5665
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
5666
|
+
base?: string | string[] | undefined;
|
|
5667
|
+
} | undefined;
|
|
5588
5668
|
} | undefined;
|
|
5589
5669
|
appearance?: {
|
|
5590
5670
|
strict: boolean;
|
|
@@ -5952,8 +6032,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5952
6032
|
light: string;
|
|
5953
6033
|
dark: string;
|
|
5954
6034
|
} | undefined;
|
|
5955
|
-
openapi?: string | string[] | undefined;
|
|
5956
6035
|
api?: {
|
|
6036
|
+
openapi?: string | string[] | undefined;
|
|
5957
6037
|
playground?: {
|
|
5958
6038
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
5959
6039
|
proxy?: boolean | undefined;
|
|
@@ -5961,6 +6041,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5961
6041
|
examples?: {
|
|
5962
6042
|
languages?: string[] | undefined;
|
|
5963
6043
|
} | undefined;
|
|
6044
|
+
mdx?: {
|
|
6045
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
6046
|
+
base?: string | string[] | undefined;
|
|
6047
|
+
} | undefined;
|
|
5964
6048
|
} | undefined;
|
|
5965
6049
|
appearance?: {
|
|
5966
6050
|
default?: "light" | "dark" | "system" | undefined;
|
|
@@ -6136,8 +6220,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
6136
6220
|
light: string;
|
|
6137
6221
|
dark: string;
|
|
6138
6222
|
}>]>>;
|
|
6139
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
6140
6223
|
api: z.ZodOptional<z.ZodObject<{
|
|
6224
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
6141
6225
|
playground: z.ZodOptional<z.ZodObject<{
|
|
6142
6226
|
display: z.ZodDefault<z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>>;
|
|
6143
6227
|
proxy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -6155,7 +6239,18 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
6155
6239
|
}, {
|
|
6156
6240
|
languages?: string[] | undefined;
|
|
6157
6241
|
}>>;
|
|
6242
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
6243
|
+
auth: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
6244
|
+
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6245
|
+
}, "strip", z.ZodTypeAny, {
|
|
6246
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
6247
|
+
base?: string | string[] | undefined;
|
|
6248
|
+
}, {
|
|
6249
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
6250
|
+
base?: string | string[] | undefined;
|
|
6251
|
+
}>>;
|
|
6158
6252
|
}, "strip", z.ZodTypeAny, {
|
|
6253
|
+
openapi?: string | string[] | undefined;
|
|
6159
6254
|
playground?: {
|
|
6160
6255
|
display: "simple" | "none" | "interactive";
|
|
6161
6256
|
proxy: boolean;
|
|
@@ -6163,7 +6258,12 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
6163
6258
|
examples?: {
|
|
6164
6259
|
languages?: string[] | undefined;
|
|
6165
6260
|
} | undefined;
|
|
6261
|
+
mdx?: {
|
|
6262
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
6263
|
+
base?: string | string[] | undefined;
|
|
6264
|
+
} | undefined;
|
|
6166
6265
|
}, {
|
|
6266
|
+
openapi?: string | string[] | undefined;
|
|
6167
6267
|
playground?: {
|
|
6168
6268
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
6169
6269
|
proxy?: boolean | undefined;
|
|
@@ -6171,6 +6271,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
6171
6271
|
examples?: {
|
|
6172
6272
|
languages?: string[] | undefined;
|
|
6173
6273
|
} | undefined;
|
|
6274
|
+
mdx?: {
|
|
6275
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
6276
|
+
base?: string | string[] | undefined;
|
|
6277
|
+
} | undefined;
|
|
6174
6278
|
}>>;
|
|
6175
6279
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
6176
6280
|
default: z.ZodDefault<z.ZodEnum<["system", "light", "dark"]>>;
|
|
@@ -7608,8 +7712,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
7608
7712
|
light: string;
|
|
7609
7713
|
dark: string;
|
|
7610
7714
|
} | undefined;
|
|
7611
|
-
openapi?: string | string[] | undefined;
|
|
7612
7715
|
api?: {
|
|
7716
|
+
openapi?: string | string[] | undefined;
|
|
7613
7717
|
playground?: {
|
|
7614
7718
|
display: "simple" | "none" | "interactive";
|
|
7615
7719
|
proxy: boolean;
|
|
@@ -7617,6 +7721,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
7617
7721
|
examples?: {
|
|
7618
7722
|
languages?: string[] | undefined;
|
|
7619
7723
|
} | undefined;
|
|
7724
|
+
mdx?: {
|
|
7725
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
7726
|
+
base?: string | string[] | undefined;
|
|
7727
|
+
} | undefined;
|
|
7620
7728
|
} | undefined;
|
|
7621
7729
|
appearance?: {
|
|
7622
7730
|
strict: boolean;
|
|
@@ -7984,8 +8092,8 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
7984
8092
|
light: string;
|
|
7985
8093
|
dark: string;
|
|
7986
8094
|
} | undefined;
|
|
7987
|
-
openapi?: string | string[] | undefined;
|
|
7988
8095
|
api?: {
|
|
8096
|
+
openapi?: string | string[] | undefined;
|
|
7989
8097
|
playground?: {
|
|
7990
8098
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
7991
8099
|
proxy?: boolean | undefined;
|
|
@@ -7993,6 +8101,10 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
7993
8101
|
examples?: {
|
|
7994
8102
|
languages?: string[] | undefined;
|
|
7995
8103
|
} | undefined;
|
|
8104
|
+
mdx?: {
|
|
8105
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
8106
|
+
base?: string | string[] | undefined;
|
|
8107
|
+
} | undefined;
|
|
7996
8108
|
} | undefined;
|
|
7997
8109
|
appearance?: {
|
|
7998
8110
|
default?: "light" | "dark" | "system" | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const apiSchema: z.ZodObject<{
|
|
3
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
3
4
|
playground: z.ZodOptional<z.ZodObject<{
|
|
4
5
|
display: z.ZodDefault<z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>>;
|
|
5
6
|
proxy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -17,7 +18,18 @@ export declare const apiSchema: z.ZodObject<{
|
|
|
17
18
|
}, {
|
|
18
19
|
languages?: string[] | undefined;
|
|
19
20
|
}>>;
|
|
21
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
auth: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
23
|
+
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
26
|
+
base?: string | string[] | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
29
|
+
base?: string | string[] | undefined;
|
|
30
|
+
}>>;
|
|
20
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
openapi?: string | string[] | undefined;
|
|
21
33
|
playground?: {
|
|
22
34
|
display: "simple" | "none" | "interactive";
|
|
23
35
|
proxy: boolean;
|
|
@@ -25,7 +37,12 @@ export declare const apiSchema: z.ZodObject<{
|
|
|
25
37
|
examples?: {
|
|
26
38
|
languages?: string[] | undefined;
|
|
27
39
|
} | undefined;
|
|
40
|
+
mdx?: {
|
|
41
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
42
|
+
base?: string | string[] | undefined;
|
|
43
|
+
} | undefined;
|
|
28
44
|
}, {
|
|
45
|
+
openapi?: string | string[] | undefined;
|
|
29
46
|
playground?: {
|
|
30
47
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
31
48
|
proxy?: boolean | undefined;
|
|
@@ -33,4 +50,8 @@ export declare const apiSchema: z.ZodObject<{
|
|
|
33
50
|
examples?: {
|
|
34
51
|
languages?: string[] | undefined;
|
|
35
52
|
} | undefined;
|
|
53
|
+
mdx?: {
|
|
54
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
55
|
+
base?: string | string[] | undefined;
|
|
56
|
+
} | undefined;
|
|
36
57
|
}>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { openApiSchema } from './reusable/openapi.js';
|
|
2
3
|
export const apiSchema = z
|
|
3
4
|
.object({
|
|
5
|
+
openapi: openApiSchema.optional(),
|
|
4
6
|
playground: z
|
|
5
7
|
.object({
|
|
6
8
|
display: z
|
|
@@ -25,5 +27,18 @@ export const apiSchema = z
|
|
|
25
27
|
})
|
|
26
28
|
.optional()
|
|
27
29
|
.describe('Configurations for the autogenerated API examples'),
|
|
30
|
+
mdx: z
|
|
31
|
+
.object({
|
|
32
|
+
auth: z
|
|
33
|
+
.enum(['bearer', 'basic', 'key', 'cobo'])
|
|
34
|
+
.optional()
|
|
35
|
+
.describe('Authentication method for the API'),
|
|
36
|
+
base: z
|
|
37
|
+
.union([z.string().url(), z.array(z.string().url())])
|
|
38
|
+
.optional()
|
|
39
|
+
.describe('Base URL(s) for the API'),
|
|
40
|
+
})
|
|
41
|
+
.optional()
|
|
42
|
+
.describe('Configurations for API pages generated from MDX files'),
|
|
28
43
|
})
|
|
29
44
|
.describe('API reference configuration and playground settings');
|
|
@@ -39,8 +39,8 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
39
39
|
light: string;
|
|
40
40
|
dark: string;
|
|
41
41
|
}>]>>;
|
|
42
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
43
42
|
api: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
44
44
|
playground: z.ZodOptional<z.ZodObject<{
|
|
45
45
|
display: z.ZodDefault<z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>>;
|
|
46
46
|
proxy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -58,7 +58,18 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
58
58
|
}, {
|
|
59
59
|
languages?: string[] | undefined;
|
|
60
60
|
}>>;
|
|
61
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
auth: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
63
|
+
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
66
|
+
base?: string | string[] | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
69
|
+
base?: string | string[] | undefined;
|
|
70
|
+
}>>;
|
|
61
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
openapi?: string | string[] | undefined;
|
|
62
73
|
playground?: {
|
|
63
74
|
display: "simple" | "none" | "interactive";
|
|
64
75
|
proxy: boolean;
|
|
@@ -66,7 +77,12 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
66
77
|
examples?: {
|
|
67
78
|
languages?: string[] | undefined;
|
|
68
79
|
} | undefined;
|
|
80
|
+
mdx?: {
|
|
81
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
82
|
+
base?: string | string[] | undefined;
|
|
83
|
+
} | undefined;
|
|
69
84
|
}, {
|
|
85
|
+
openapi?: string | string[] | undefined;
|
|
70
86
|
playground?: {
|
|
71
87
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
72
88
|
proxy?: boolean | undefined;
|
|
@@ -74,6 +90,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
74
90
|
examples?: {
|
|
75
91
|
languages?: string[] | undefined;
|
|
76
92
|
} | undefined;
|
|
93
|
+
mdx?: {
|
|
94
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
95
|
+
base?: string | string[] | undefined;
|
|
96
|
+
} | undefined;
|
|
77
97
|
}>>;
|
|
78
98
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
79
99
|
default: z.ZodDefault<z.ZodEnum<["system", "light", "dark"]>>;
|
|
@@ -1511,8 +1531,8 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1511
1531
|
light: string;
|
|
1512
1532
|
dark: string;
|
|
1513
1533
|
} | undefined;
|
|
1514
|
-
openapi?: string | string[] | undefined;
|
|
1515
1534
|
api?: {
|
|
1535
|
+
openapi?: string | string[] | undefined;
|
|
1516
1536
|
playground?: {
|
|
1517
1537
|
display: "simple" | "none" | "interactive";
|
|
1518
1538
|
proxy: boolean;
|
|
@@ -1520,6 +1540,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1520
1540
|
examples?: {
|
|
1521
1541
|
languages?: string[] | undefined;
|
|
1522
1542
|
} | undefined;
|
|
1543
|
+
mdx?: {
|
|
1544
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1545
|
+
base?: string | string[] | undefined;
|
|
1546
|
+
} | undefined;
|
|
1523
1547
|
} | undefined;
|
|
1524
1548
|
appearance?: {
|
|
1525
1549
|
strict: boolean;
|
|
@@ -1887,8 +1911,8 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1887
1911
|
light: string;
|
|
1888
1912
|
dark: string;
|
|
1889
1913
|
} | undefined;
|
|
1890
|
-
openapi?: string | string[] | undefined;
|
|
1891
1914
|
api?: {
|
|
1915
|
+
openapi?: string | string[] | undefined;
|
|
1892
1916
|
playground?: {
|
|
1893
1917
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
1894
1918
|
proxy?: boolean | undefined;
|
|
@@ -1896,6 +1920,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1896
1920
|
examples?: {
|
|
1897
1921
|
languages?: string[] | undefined;
|
|
1898
1922
|
} | undefined;
|
|
1923
|
+
mdx?: {
|
|
1924
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1925
|
+
base?: string | string[] | undefined;
|
|
1926
|
+
} | undefined;
|
|
1899
1927
|
} | undefined;
|
|
1900
1928
|
appearance?: {
|
|
1901
1929
|
default?: "light" | "dark" | "system" | undefined;
|
|
@@ -39,8 +39,8 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
39
39
|
light: string;
|
|
40
40
|
dark: string;
|
|
41
41
|
}>]>>;
|
|
42
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
43
42
|
api: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
44
44
|
playground: z.ZodOptional<z.ZodObject<{
|
|
45
45
|
display: z.ZodDefault<z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>>;
|
|
46
46
|
proxy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -58,7 +58,18 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
58
58
|
}, {
|
|
59
59
|
languages?: string[] | undefined;
|
|
60
60
|
}>>;
|
|
61
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
auth: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
63
|
+
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
66
|
+
base?: string | string[] | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
69
|
+
base?: string | string[] | undefined;
|
|
70
|
+
}>>;
|
|
61
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
openapi?: string | string[] | undefined;
|
|
62
73
|
playground?: {
|
|
63
74
|
display: "simple" | "none" | "interactive";
|
|
64
75
|
proxy: boolean;
|
|
@@ -66,7 +77,12 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
66
77
|
examples?: {
|
|
67
78
|
languages?: string[] | undefined;
|
|
68
79
|
} | undefined;
|
|
80
|
+
mdx?: {
|
|
81
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
82
|
+
base?: string | string[] | undefined;
|
|
83
|
+
} | undefined;
|
|
69
84
|
}, {
|
|
85
|
+
openapi?: string | string[] | undefined;
|
|
70
86
|
playground?: {
|
|
71
87
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
72
88
|
proxy?: boolean | undefined;
|
|
@@ -74,6 +90,10 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
74
90
|
examples?: {
|
|
75
91
|
languages?: string[] | undefined;
|
|
76
92
|
} | undefined;
|
|
93
|
+
mdx?: {
|
|
94
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
95
|
+
base?: string | string[] | undefined;
|
|
96
|
+
} | undefined;
|
|
77
97
|
}>>;
|
|
78
98
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
79
99
|
default: z.ZodDefault<z.ZodEnum<["system", "light", "dark"]>>;
|
|
@@ -1511,8 +1531,8 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
1511
1531
|
light: string;
|
|
1512
1532
|
dark: string;
|
|
1513
1533
|
} | undefined;
|
|
1514
|
-
openapi?: string | string[] | undefined;
|
|
1515
1534
|
api?: {
|
|
1535
|
+
openapi?: string | string[] | undefined;
|
|
1516
1536
|
playground?: {
|
|
1517
1537
|
display: "simple" | "none" | "interactive";
|
|
1518
1538
|
proxy: boolean;
|
|
@@ -1520,6 +1540,10 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
1520
1540
|
examples?: {
|
|
1521
1541
|
languages?: string[] | undefined;
|
|
1522
1542
|
} | undefined;
|
|
1543
|
+
mdx?: {
|
|
1544
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1545
|
+
base?: string | string[] | undefined;
|
|
1546
|
+
} | undefined;
|
|
1523
1547
|
} | undefined;
|
|
1524
1548
|
appearance?: {
|
|
1525
1549
|
strict: boolean;
|
|
@@ -1887,8 +1911,8 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
1887
1911
|
light: string;
|
|
1888
1912
|
dark: string;
|
|
1889
1913
|
} | undefined;
|
|
1890
|
-
openapi?: string | string[] | undefined;
|
|
1891
1914
|
api?: {
|
|
1915
|
+
openapi?: string | string[] | undefined;
|
|
1892
1916
|
playground?: {
|
|
1893
1917
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
1894
1918
|
proxy?: boolean | undefined;
|
|
@@ -1896,6 +1920,10 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
1896
1920
|
examples?: {
|
|
1897
1921
|
languages?: string[] | undefined;
|
|
1898
1922
|
} | undefined;
|
|
1923
|
+
mdx?: {
|
|
1924
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1925
|
+
base?: string | string[] | undefined;
|
|
1926
|
+
} | undefined;
|
|
1899
1927
|
} | undefined;
|
|
1900
1928
|
appearance?: {
|
|
1901
1929
|
default?: "light" | "dark" | "system" | undefined;
|