@mintlify/validation 0.1.924 → 0.1.926
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 +8 -0
- package/dist/mint-config/schemas/v2/index.js +2 -1
- package/dist/mint-config/schemas/v2/properties/api.d.ts +3 -0
- package/dist/mint-config/schemas/v2/properties/api.js +4 -0
- package/dist/mint-config/schemas/v2/properties/theme-version.d.ts +5 -0
- package/dist/mint-config/schemas/v2/properties/theme-version.js +10 -0
- package/dist/mint-config/schemas/v2/themes/almond.d.ts +5 -0
- package/dist/mint-config/schemas/v2/themes/aspen.d.ts +5 -0
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +5 -0
- package/dist/mint-config/schemas/v2/themes/luma.d.ts +5 -0
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +5 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +8 -0
- package/dist/mint-config/schemas/v2/themes/mint.js +2 -1
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +5 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +3 -0
- package/dist/mint-config/schemas/v2/themes/sequoia.d.ts +5 -0
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +5 -0
- package/dist/mint-config/validateConfig.d.ts +20 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -109,6 +109,7 @@ export declare const docsConfigUnifiedSchema: z.ZodObject<{
|
|
|
109
109
|
expanded?: "all" | "closed" | undefined;
|
|
110
110
|
post?: string[] | undefined;
|
|
111
111
|
}>>;
|
|
112
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
112
113
|
playground: z.ZodOptional<z.ZodObject<{
|
|
113
114
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
114
115
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -188,6 +189,7 @@ export declare const docsConfigUnifiedSchema: z.ZodObject<{
|
|
|
188
189
|
source: string;
|
|
189
190
|
directory?: string | undefined;
|
|
190
191
|
} | undefined;
|
|
192
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
191
193
|
examples?: {
|
|
192
194
|
languages?: string[] | undefined;
|
|
193
195
|
defaults?: "all" | "required" | undefined;
|
|
@@ -225,6 +227,7 @@ export declare const docsConfigUnifiedSchema: z.ZodObject<{
|
|
|
225
227
|
source: string;
|
|
226
228
|
directory?: string | undefined;
|
|
227
229
|
} | undefined;
|
|
230
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
228
231
|
examples?: {
|
|
229
232
|
languages?: string[] | undefined;
|
|
230
233
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2013,6 +2016,7 @@ export declare const docsConfigUnifiedSchema: z.ZodObject<{
|
|
|
2013
2016
|
isolation?: "page" | "frame" | undefined;
|
|
2014
2017
|
}>>>;
|
|
2015
2018
|
theme: z.ZodEnum<["mint", "maple", "palm", "willow", "linden", "almond", "aspen", "luma", "sequoia"]>;
|
|
2019
|
+
themeVersion: z.ZodOptional<z.ZodNumber>;
|
|
2016
2020
|
}, "strip", z.ZodTypeAny, {
|
|
2017
2021
|
name: string;
|
|
2018
2022
|
$schema: string;
|
|
@@ -2200,6 +2204,7 @@ export declare const docsConfigUnifiedSchema: z.ZodObject<{
|
|
|
2200
2204
|
source: string;
|
|
2201
2205
|
directory?: string | undefined;
|
|
2202
2206
|
} | undefined;
|
|
2207
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2203
2208
|
examples?: {
|
|
2204
2209
|
languages?: string[] | undefined;
|
|
2205
2210
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2483,6 +2488,7 @@ export declare const docsConfigUnifiedSchema: z.ZodObject<{
|
|
|
2483
2488
|
ssr?: boolean | undefined;
|
|
2484
2489
|
isolation?: "page" | "frame" | undefined;
|
|
2485
2490
|
} | undefined;
|
|
2491
|
+
themeVersion?: number | undefined;
|
|
2486
2492
|
}, {
|
|
2487
2493
|
name: string;
|
|
2488
2494
|
theme: "mint" | "maple" | "palm" | "willow" | "linden" | "almond" | "aspen" | "luma" | "sequoia";
|
|
@@ -2670,6 +2676,7 @@ export declare const docsConfigUnifiedSchema: z.ZodObject<{
|
|
|
2670
2676
|
source: string;
|
|
2671
2677
|
directory?: string | undefined;
|
|
2672
2678
|
} | undefined;
|
|
2679
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2673
2680
|
examples?: {
|
|
2674
2681
|
languages?: string[] | undefined;
|
|
2675
2682
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2947,4 +2954,5 @@ export declare const docsConfigUnifiedSchema: z.ZodObject<{
|
|
|
2947
2954
|
instructions?: string | string[] | undefined;
|
|
2948
2955
|
} | undefined;
|
|
2949
2956
|
packages?: unknown;
|
|
2957
|
+
themeVersion?: number | undefined;
|
|
2950
2958
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { createThemeVersionSchema, latestThemeVersions } from './properties/theme-version.js';
|
|
2
3
|
import { almondConfigSchema } from './themes/almond.js';
|
|
3
4
|
import { aspenConfigSchema } from './themes/aspen.js';
|
|
4
5
|
import { lindenConfigSchema } from './themes/linden.js';
|
|
@@ -21,4 +22,4 @@ export const docsConfigSchema = z.discriminatedUnion('theme', [
|
|
|
21
22
|
lumaConfigSchema,
|
|
22
23
|
sequoiaConfigSchema,
|
|
23
24
|
]);
|
|
24
|
-
export const docsConfigUnifiedSchema = z.object(Object.assign({ theme: themeSchema }, standardConfigSchema));
|
|
25
|
+
export const docsConfigUnifiedSchema = z.object(Object.assign({ theme: themeSchema, themeVersion: createThemeVersionSchema(Math.max(...Object.values(latestThemeVersions))).optional() }, standardConfigSchema));
|
|
@@ -45,6 +45,7 @@ export declare const apiSchema: z.ZodObject<{
|
|
|
45
45
|
expanded?: "all" | "closed" | undefined;
|
|
46
46
|
post?: string[] | undefined;
|
|
47
47
|
}>>;
|
|
48
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
48
49
|
playground: z.ZodOptional<z.ZodObject<{
|
|
49
50
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
50
51
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -124,6 +125,7 @@ export declare const apiSchema: z.ZodObject<{
|
|
|
124
125
|
source: string;
|
|
125
126
|
directory?: string | undefined;
|
|
126
127
|
} | undefined;
|
|
128
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
127
129
|
examples?: {
|
|
128
130
|
languages?: string[] | undefined;
|
|
129
131
|
defaults?: "all" | "required" | undefined;
|
|
@@ -161,6 +163,7 @@ export declare const apiSchema: z.ZodObject<{
|
|
|
161
163
|
source: string;
|
|
162
164
|
directory?: string | undefined;
|
|
163
165
|
} | undefined;
|
|
166
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
164
167
|
examples?: {
|
|
165
168
|
languages?: string[] | undefined;
|
|
166
169
|
defaults?: "all" | "required" | undefined;
|
|
@@ -18,6 +18,10 @@ export const apiSchema = z
|
|
|
18
18
|
})
|
|
19
19
|
.optional()
|
|
20
20
|
.describe('Configurations for the API parameters'),
|
|
21
|
+
optional: z
|
|
22
|
+
.enum(['static', 'expanded', 'collapsed'])
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('How optional request fields display in the API playground. `collapsed` hides them behind an expand control, `expanded` shows them with the control available, and `static` always shows them after required fields with no control. Defaults to `collapsed`.'),
|
|
21
25
|
playground: z
|
|
22
26
|
.object({
|
|
23
27
|
display: z
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const latestThemeVersions = {
|
|
3
|
+
mint: 2,
|
|
4
|
+
};
|
|
5
|
+
export const createThemeVersionSchema = (latestVersion) => z
|
|
6
|
+
.number()
|
|
7
|
+
.int()
|
|
8
|
+
.min(1)
|
|
9
|
+
.max(latestVersion)
|
|
10
|
+
.describe(`The version of the theme to use, from 1 to ${latestVersion}. Defaults to 1, the original version.`);
|
|
@@ -86,6 +86,7 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
86
86
|
expanded?: "all" | "closed" | undefined;
|
|
87
87
|
post?: string[] | undefined;
|
|
88
88
|
}>>;
|
|
89
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
89
90
|
playground: z.ZodOptional<z.ZodObject<{
|
|
90
91
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
91
92
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -165,6 +166,7 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
165
166
|
source: string;
|
|
166
167
|
directory?: string | undefined;
|
|
167
168
|
} | undefined;
|
|
169
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
168
170
|
examples?: {
|
|
169
171
|
languages?: string[] | undefined;
|
|
170
172
|
defaults?: "all" | "required" | undefined;
|
|
@@ -202,6 +204,7 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
202
204
|
source: string;
|
|
203
205
|
directory?: string | undefined;
|
|
204
206
|
} | undefined;
|
|
207
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
205
208
|
examples?: {
|
|
206
209
|
languages?: string[] | undefined;
|
|
207
210
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2177,6 +2180,7 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
2177
2180
|
source: string;
|
|
2178
2181
|
directory?: string | undefined;
|
|
2179
2182
|
} | undefined;
|
|
2183
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2180
2184
|
examples?: {
|
|
2181
2185
|
languages?: string[] | undefined;
|
|
2182
2186
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2647,6 +2651,7 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
2647
2651
|
source: string;
|
|
2648
2652
|
directory?: string | undefined;
|
|
2649
2653
|
} | undefined;
|
|
2654
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2650
2655
|
examples?: {
|
|
2651
2656
|
languages?: string[] | undefined;
|
|
2652
2657
|
defaults?: "all" | "required" | undefined;
|
|
@@ -86,6 +86,7 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
86
86
|
expanded?: "all" | "closed" | undefined;
|
|
87
87
|
post?: string[] | undefined;
|
|
88
88
|
}>>;
|
|
89
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
89
90
|
playground: z.ZodOptional<z.ZodObject<{
|
|
90
91
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
91
92
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -165,6 +166,7 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
165
166
|
source: string;
|
|
166
167
|
directory?: string | undefined;
|
|
167
168
|
} | undefined;
|
|
169
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
168
170
|
examples?: {
|
|
169
171
|
languages?: string[] | undefined;
|
|
170
172
|
defaults?: "all" | "required" | undefined;
|
|
@@ -202,6 +204,7 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
202
204
|
source: string;
|
|
203
205
|
directory?: string | undefined;
|
|
204
206
|
} | undefined;
|
|
207
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
205
208
|
examples?: {
|
|
206
209
|
languages?: string[] | undefined;
|
|
207
210
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2177,6 +2180,7 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
2177
2180
|
source: string;
|
|
2178
2181
|
directory?: string | undefined;
|
|
2179
2182
|
} | undefined;
|
|
2183
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2180
2184
|
examples?: {
|
|
2181
2185
|
languages?: string[] | undefined;
|
|
2182
2186
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2647,6 +2651,7 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
2647
2651
|
source: string;
|
|
2648
2652
|
directory?: string | undefined;
|
|
2649
2653
|
} | undefined;
|
|
2654
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2650
2655
|
examples?: {
|
|
2651
2656
|
languages?: string[] | undefined;
|
|
2652
2657
|
defaults?: "all" | "required" | undefined;
|
|
@@ -86,6 +86,7 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
86
86
|
expanded?: "all" | "closed" | undefined;
|
|
87
87
|
post?: string[] | undefined;
|
|
88
88
|
}>>;
|
|
89
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
89
90
|
playground: z.ZodOptional<z.ZodObject<{
|
|
90
91
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
91
92
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -165,6 +166,7 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
165
166
|
source: string;
|
|
166
167
|
directory?: string | undefined;
|
|
167
168
|
} | undefined;
|
|
169
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
168
170
|
examples?: {
|
|
169
171
|
languages?: string[] | undefined;
|
|
170
172
|
defaults?: "all" | "required" | undefined;
|
|
@@ -202,6 +204,7 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
202
204
|
source: string;
|
|
203
205
|
directory?: string | undefined;
|
|
204
206
|
} | undefined;
|
|
207
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
205
208
|
examples?: {
|
|
206
209
|
languages?: string[] | undefined;
|
|
207
210
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2177,6 +2180,7 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
2177
2180
|
source: string;
|
|
2178
2181
|
directory?: string | undefined;
|
|
2179
2182
|
} | undefined;
|
|
2183
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2180
2184
|
examples?: {
|
|
2181
2185
|
languages?: string[] | undefined;
|
|
2182
2186
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2647,6 +2651,7 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
2647
2651
|
source: string;
|
|
2648
2652
|
directory?: string | undefined;
|
|
2649
2653
|
} | undefined;
|
|
2654
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2650
2655
|
examples?: {
|
|
2651
2656
|
languages?: string[] | undefined;
|
|
2652
2657
|
defaults?: "all" | "required" | undefined;
|
|
@@ -86,6 +86,7 @@ export declare const lumaConfigSchema: z.ZodObject<{
|
|
|
86
86
|
expanded?: "all" | "closed" | undefined;
|
|
87
87
|
post?: string[] | undefined;
|
|
88
88
|
}>>;
|
|
89
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
89
90
|
playground: z.ZodOptional<z.ZodObject<{
|
|
90
91
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
91
92
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -165,6 +166,7 @@ export declare const lumaConfigSchema: z.ZodObject<{
|
|
|
165
166
|
source: string;
|
|
166
167
|
directory?: string | undefined;
|
|
167
168
|
} | undefined;
|
|
169
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
168
170
|
examples?: {
|
|
169
171
|
languages?: string[] | undefined;
|
|
170
172
|
defaults?: "all" | "required" | undefined;
|
|
@@ -202,6 +204,7 @@ export declare const lumaConfigSchema: z.ZodObject<{
|
|
|
202
204
|
source: string;
|
|
203
205
|
directory?: string | undefined;
|
|
204
206
|
} | undefined;
|
|
207
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
205
208
|
examples?: {
|
|
206
209
|
languages?: string[] | undefined;
|
|
207
210
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2177,6 +2180,7 @@ export declare const lumaConfigSchema: z.ZodObject<{
|
|
|
2177
2180
|
source: string;
|
|
2178
2181
|
directory?: string | undefined;
|
|
2179
2182
|
} | undefined;
|
|
2183
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2180
2184
|
examples?: {
|
|
2181
2185
|
languages?: string[] | undefined;
|
|
2182
2186
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2647,6 +2651,7 @@ export declare const lumaConfigSchema: z.ZodObject<{
|
|
|
2647
2651
|
source: string;
|
|
2648
2652
|
directory?: string | undefined;
|
|
2649
2653
|
} | undefined;
|
|
2654
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2650
2655
|
examples?: {
|
|
2651
2656
|
languages?: string[] | undefined;
|
|
2652
2657
|
defaults?: "all" | "required" | undefined;
|
|
@@ -86,6 +86,7 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
86
86
|
expanded?: "all" | "closed" | undefined;
|
|
87
87
|
post?: string[] | undefined;
|
|
88
88
|
}>>;
|
|
89
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
89
90
|
playground: z.ZodOptional<z.ZodObject<{
|
|
90
91
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
91
92
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -165,6 +166,7 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
165
166
|
source: string;
|
|
166
167
|
directory?: string | undefined;
|
|
167
168
|
} | undefined;
|
|
169
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
168
170
|
examples?: {
|
|
169
171
|
languages?: string[] | undefined;
|
|
170
172
|
defaults?: "all" | "required" | undefined;
|
|
@@ -202,6 +204,7 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
202
204
|
source: string;
|
|
203
205
|
directory?: string | undefined;
|
|
204
206
|
} | undefined;
|
|
207
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
205
208
|
examples?: {
|
|
206
209
|
languages?: string[] | undefined;
|
|
207
210
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2177,6 +2180,7 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
2177
2180
|
source: string;
|
|
2178
2181
|
directory?: string | undefined;
|
|
2179
2182
|
} | undefined;
|
|
2183
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2180
2184
|
examples?: {
|
|
2181
2185
|
languages?: string[] | undefined;
|
|
2182
2186
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2647,6 +2651,7 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
2647
2651
|
source: string;
|
|
2648
2652
|
directory?: string | undefined;
|
|
2649
2653
|
} | undefined;
|
|
2654
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2650
2655
|
examples?: {
|
|
2651
2656
|
languages?: string[] | undefined;
|
|
2652
2657
|
defaults?: "all" | "required" | undefined;
|
|
@@ -86,6 +86,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
86
86
|
expanded?: "all" | "closed" | undefined;
|
|
87
87
|
post?: string[] | undefined;
|
|
88
88
|
}>>;
|
|
89
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
89
90
|
playground: z.ZodOptional<z.ZodObject<{
|
|
90
91
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
91
92
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -165,6 +166,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
165
166
|
source: string;
|
|
166
167
|
directory?: string | undefined;
|
|
167
168
|
} | undefined;
|
|
169
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
168
170
|
examples?: {
|
|
169
171
|
languages?: string[] | undefined;
|
|
170
172
|
defaults?: "all" | "required" | undefined;
|
|
@@ -202,6 +204,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
202
204
|
source: string;
|
|
203
205
|
directory?: string | undefined;
|
|
204
206
|
} | undefined;
|
|
207
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
205
208
|
examples?: {
|
|
206
209
|
languages?: string[] | undefined;
|
|
207
210
|
defaults?: "all" | "required" | undefined;
|
|
@@ -1990,6 +1993,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1990
1993
|
isolation?: "page" | "frame" | undefined;
|
|
1991
1994
|
}>>>;
|
|
1992
1995
|
theme: z.ZodLiteral<"mint">;
|
|
1996
|
+
themeVersion: z.ZodOptional<z.ZodNumber>;
|
|
1993
1997
|
}, "strip", z.ZodTypeAny, {
|
|
1994
1998
|
name: string;
|
|
1995
1999
|
$schema: string;
|
|
@@ -2177,6 +2181,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
2177
2181
|
source: string;
|
|
2178
2182
|
directory?: string | undefined;
|
|
2179
2183
|
} | undefined;
|
|
2184
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2180
2185
|
examples?: {
|
|
2181
2186
|
languages?: string[] | undefined;
|
|
2182
2187
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2460,6 +2465,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
2460
2465
|
ssr?: boolean | undefined;
|
|
2461
2466
|
isolation?: "page" | "frame" | undefined;
|
|
2462
2467
|
} | undefined;
|
|
2468
|
+
themeVersion?: number | undefined;
|
|
2463
2469
|
}, {
|
|
2464
2470
|
name: string;
|
|
2465
2471
|
theme: "mint";
|
|
@@ -2647,6 +2653,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
2647
2653
|
source: string;
|
|
2648
2654
|
directory?: string | undefined;
|
|
2649
2655
|
} | undefined;
|
|
2656
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2650
2657
|
examples?: {
|
|
2651
2658
|
languages?: string[] | undefined;
|
|
2652
2659
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2924,4 +2931,5 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
2924
2931
|
instructions?: string | string[] | undefined;
|
|
2925
2932
|
} | undefined;
|
|
2926
2933
|
packages?: unknown;
|
|
2934
|
+
themeVersion?: number | undefined;
|
|
2927
2935
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { createThemeVersionSchema, latestThemeVersions } from '../properties/theme-version.js';
|
|
2
3
|
import { standardConfigSchema } from './reusable/index.js';
|
|
3
4
|
import { themeSchema } from './themes.js';
|
|
4
|
-
export const mintConfigSchema = z.object(Object.assign({ theme: z.literal(themeSchema.enum.mint) }, standardConfigSchema));
|
|
5
|
+
export const mintConfigSchema = z.object(Object.assign({ theme: z.literal(themeSchema.enum.mint), themeVersion: createThemeVersionSchema(latestThemeVersions.mint).optional() }, standardConfigSchema));
|
|
@@ -86,6 +86,7 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
86
86
|
expanded?: "all" | "closed" | undefined;
|
|
87
87
|
post?: string[] | undefined;
|
|
88
88
|
}>>;
|
|
89
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
89
90
|
playground: z.ZodOptional<z.ZodObject<{
|
|
90
91
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
91
92
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -165,6 +166,7 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
165
166
|
source: string;
|
|
166
167
|
directory?: string | undefined;
|
|
167
168
|
} | undefined;
|
|
169
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
168
170
|
examples?: {
|
|
169
171
|
languages?: string[] | undefined;
|
|
170
172
|
defaults?: "all" | "required" | undefined;
|
|
@@ -202,6 +204,7 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
202
204
|
source: string;
|
|
203
205
|
directory?: string | undefined;
|
|
204
206
|
} | undefined;
|
|
207
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
205
208
|
examples?: {
|
|
206
209
|
languages?: string[] | undefined;
|
|
207
210
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2177,6 +2180,7 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
2177
2180
|
source: string;
|
|
2178
2181
|
directory?: string | undefined;
|
|
2179
2182
|
} | undefined;
|
|
2183
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2180
2184
|
examples?: {
|
|
2181
2185
|
languages?: string[] | undefined;
|
|
2182
2186
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2647,6 +2651,7 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
2647
2651
|
source: string;
|
|
2648
2652
|
directory?: string | undefined;
|
|
2649
2653
|
} | undefined;
|
|
2654
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2650
2655
|
examples?: {
|
|
2651
2656
|
languages?: string[] | undefined;
|
|
2652
2657
|
defaults?: "all" | "required" | undefined;
|
|
@@ -85,6 +85,7 @@ export declare const standardConfigSchema: {
|
|
|
85
85
|
expanded?: "all" | "closed" | undefined;
|
|
86
86
|
post?: string[] | undefined;
|
|
87
87
|
}>>;
|
|
88
|
+
optional: import("zod").ZodOptional<import("zod").ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
88
89
|
playground: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
89
90
|
display: import("zod").ZodOptional<import("zod").ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
90
91
|
proxy: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -164,6 +165,7 @@ export declare const standardConfigSchema: {
|
|
|
164
165
|
source: string;
|
|
165
166
|
directory?: string | undefined;
|
|
166
167
|
} | undefined;
|
|
168
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
167
169
|
examples?: {
|
|
168
170
|
languages?: string[] | undefined;
|
|
169
171
|
defaults?: "all" | "required" | undefined;
|
|
@@ -201,6 +203,7 @@ export declare const standardConfigSchema: {
|
|
|
201
203
|
source: string;
|
|
202
204
|
directory?: string | undefined;
|
|
203
205
|
} | undefined;
|
|
206
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
204
207
|
examples?: {
|
|
205
208
|
languages?: string[] | undefined;
|
|
206
209
|
defaults?: "all" | "required" | undefined;
|
|
@@ -86,6 +86,7 @@ export declare const sequoiaConfigSchema: z.ZodObject<{
|
|
|
86
86
|
expanded?: "all" | "closed" | undefined;
|
|
87
87
|
post?: string[] | undefined;
|
|
88
88
|
}>>;
|
|
89
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
89
90
|
playground: z.ZodOptional<z.ZodObject<{
|
|
90
91
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
91
92
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -165,6 +166,7 @@ export declare const sequoiaConfigSchema: z.ZodObject<{
|
|
|
165
166
|
source: string;
|
|
166
167
|
directory?: string | undefined;
|
|
167
168
|
} | undefined;
|
|
169
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
168
170
|
examples?: {
|
|
169
171
|
languages?: string[] | undefined;
|
|
170
172
|
defaults?: "all" | "required" | undefined;
|
|
@@ -202,6 +204,7 @@ export declare const sequoiaConfigSchema: z.ZodObject<{
|
|
|
202
204
|
source: string;
|
|
203
205
|
directory?: string | undefined;
|
|
204
206
|
} | undefined;
|
|
207
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
205
208
|
examples?: {
|
|
206
209
|
languages?: string[] | undefined;
|
|
207
210
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2177,6 +2180,7 @@ export declare const sequoiaConfigSchema: z.ZodObject<{
|
|
|
2177
2180
|
source: string;
|
|
2178
2181
|
directory?: string | undefined;
|
|
2179
2182
|
} | undefined;
|
|
2183
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2180
2184
|
examples?: {
|
|
2181
2185
|
languages?: string[] | undefined;
|
|
2182
2186
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2647,6 +2651,7 @@ export declare const sequoiaConfigSchema: z.ZodObject<{
|
|
|
2647
2651
|
source: string;
|
|
2648
2652
|
directory?: string | undefined;
|
|
2649
2653
|
} | undefined;
|
|
2654
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2650
2655
|
examples?: {
|
|
2651
2656
|
languages?: string[] | undefined;
|
|
2652
2657
|
defaults?: "all" | "required" | undefined;
|
|
@@ -118,6 +118,7 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
118
118
|
expanded?: "all" | "closed" | undefined;
|
|
119
119
|
post?: string[] | undefined;
|
|
120
120
|
}>>;
|
|
121
|
+
optional: z.ZodOptional<z.ZodEnum<["static", "expanded", "collapsed"]>>;
|
|
121
122
|
playground: z.ZodOptional<z.ZodObject<{
|
|
122
123
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none", "auth"]>>;
|
|
123
124
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -197,6 +198,7 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
197
198
|
source: string;
|
|
198
199
|
directory?: string | undefined;
|
|
199
200
|
} | undefined;
|
|
201
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
200
202
|
examples?: {
|
|
201
203
|
languages?: string[] | undefined;
|
|
202
204
|
defaults?: "all" | "required" | undefined;
|
|
@@ -234,6 +236,7 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
234
236
|
source: string;
|
|
235
237
|
directory?: string | undefined;
|
|
236
238
|
} | undefined;
|
|
239
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
237
240
|
examples?: {
|
|
238
241
|
languages?: string[] | undefined;
|
|
239
242
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2209,6 +2212,7 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
2209
2212
|
source: string;
|
|
2210
2213
|
directory?: string | undefined;
|
|
2211
2214
|
} | undefined;
|
|
2215
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2212
2216
|
examples?: {
|
|
2213
2217
|
languages?: string[] | undefined;
|
|
2214
2218
|
defaults?: "all" | "required" | undefined;
|
|
@@ -2685,6 +2689,7 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
2685
2689
|
source: string;
|
|
2686
2690
|
directory?: string | undefined;
|
|
2687
2691
|
} | undefined;
|
|
2692
|
+
optional?: "expanded" | "static" | "collapsed" | undefined;
|
|
2688
2693
|
examples?: {
|
|
2689
2694
|
languages?: string[] | undefined;
|
|
2690
2695
|
defaults?: "all" | "required" | undefined;
|