@mintlify/validation 0.1.306 → 0.1.308
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 +130 -0
- package/dist/mint-config/schemas/v2/properties/integrations.d.ts +18 -0
- package/dist/mint-config/schemas/v2/properties/integrations.js +5 -0
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +26 -0
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +26 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +26 -0
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +26 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +18 -0
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +26 -0
- package/dist/mint-config/validateConfig.d.ts +40 -0
- package/dist/openapi/IncrementalEvaluator.js +13 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -741,6 +741,10 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
741
741
|
telemetry?: {
|
|
742
742
|
enabled?: boolean | undefined;
|
|
743
743
|
} | undefined;
|
|
744
|
+
cookieConsent?: {
|
|
745
|
+
enabledKey?: string | undefined;
|
|
746
|
+
enabledValue?: string | undefined;
|
|
747
|
+
} | undefined;
|
|
744
748
|
} | undefined;
|
|
745
749
|
banner?: {
|
|
746
750
|
content: string;
|
|
@@ -1011,6 +1015,10 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1011
1015
|
telemetry?: {
|
|
1012
1016
|
enabled?: boolean | undefined;
|
|
1013
1017
|
} | undefined;
|
|
1018
|
+
cookieConsent?: {
|
|
1019
|
+
enabledKey?: string | undefined;
|
|
1020
|
+
enabledValue?: string | undefined;
|
|
1021
|
+
} | undefined;
|
|
1014
1022
|
} | undefined;
|
|
1015
1023
|
banner?: {
|
|
1016
1024
|
content: string;
|
|
@@ -1281,6 +1289,10 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1281
1289
|
telemetry?: {
|
|
1282
1290
|
enabled?: boolean | undefined;
|
|
1283
1291
|
} | undefined;
|
|
1292
|
+
cookieConsent?: {
|
|
1293
|
+
enabledKey?: string | undefined;
|
|
1294
|
+
enabledValue?: string | undefined;
|
|
1295
|
+
} | undefined;
|
|
1284
1296
|
} | undefined;
|
|
1285
1297
|
banner?: {
|
|
1286
1298
|
content: string;
|
|
@@ -1551,6 +1563,10 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1551
1563
|
telemetry?: {
|
|
1552
1564
|
enabled?: boolean | undefined;
|
|
1553
1565
|
} | undefined;
|
|
1566
|
+
cookieConsent?: {
|
|
1567
|
+
enabledKey?: string | undefined;
|
|
1568
|
+
enabledValue?: string | undefined;
|
|
1569
|
+
} | undefined;
|
|
1554
1570
|
} | undefined;
|
|
1555
1571
|
banner?: {
|
|
1556
1572
|
content: string;
|
|
@@ -1821,6 +1837,10 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1821
1837
|
telemetry?: {
|
|
1822
1838
|
enabled?: boolean | undefined;
|
|
1823
1839
|
} | undefined;
|
|
1840
|
+
cookieConsent?: {
|
|
1841
|
+
enabledKey?: string | undefined;
|
|
1842
|
+
enabledValue?: string | undefined;
|
|
1843
|
+
} | undefined;
|
|
1824
1844
|
} | undefined;
|
|
1825
1845
|
banner?: {
|
|
1826
1846
|
content: string;
|
|
@@ -2094,6 +2114,10 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2094
2114
|
telemetry?: {
|
|
2095
2115
|
enabled?: boolean | undefined;
|
|
2096
2116
|
} | undefined;
|
|
2117
|
+
cookieConsent?: {
|
|
2118
|
+
enabledKey?: string | undefined;
|
|
2119
|
+
enabledValue?: string | undefined;
|
|
2120
|
+
} | undefined;
|
|
2097
2121
|
} | undefined;
|
|
2098
2122
|
banner?: {
|
|
2099
2123
|
content: string;
|
|
@@ -2364,6 +2388,10 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2364
2388
|
telemetry?: {
|
|
2365
2389
|
enabled?: boolean | undefined;
|
|
2366
2390
|
} | undefined;
|
|
2391
|
+
cookieConsent?: {
|
|
2392
|
+
enabledKey?: string | undefined;
|
|
2393
|
+
enabledValue?: string | undefined;
|
|
2394
|
+
} | undefined;
|
|
2367
2395
|
} | undefined;
|
|
2368
2396
|
banner?: {
|
|
2369
2397
|
content: string;
|
|
@@ -2634,6 +2662,10 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2634
2662
|
telemetry?: {
|
|
2635
2663
|
enabled?: boolean | undefined;
|
|
2636
2664
|
} | undefined;
|
|
2665
|
+
cookieConsent?: {
|
|
2666
|
+
enabledKey?: string | undefined;
|
|
2667
|
+
enabledValue?: string | undefined;
|
|
2668
|
+
} | undefined;
|
|
2637
2669
|
} | undefined;
|
|
2638
2670
|
banner?: {
|
|
2639
2671
|
content: string;
|
|
@@ -2904,6 +2936,10 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2904
2936
|
telemetry?: {
|
|
2905
2937
|
enabled?: boolean | undefined;
|
|
2906
2938
|
} | undefined;
|
|
2939
|
+
cookieConsent?: {
|
|
2940
|
+
enabledKey?: string | undefined;
|
|
2941
|
+
enabledValue?: string | undefined;
|
|
2942
|
+
} | undefined;
|
|
2907
2943
|
} | undefined;
|
|
2908
2944
|
banner?: {
|
|
2909
2945
|
content: string;
|
|
@@ -3174,6 +3210,10 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
3174
3210
|
telemetry?: {
|
|
3175
3211
|
enabled?: boolean | undefined;
|
|
3176
3212
|
} | undefined;
|
|
3213
|
+
cookieConsent?: {
|
|
3214
|
+
enabledKey?: string | undefined;
|
|
3215
|
+
enabledValue?: string | undefined;
|
|
3216
|
+
} | undefined;
|
|
3177
3217
|
} | undefined;
|
|
3178
3218
|
banner?: {
|
|
3179
3219
|
content: string;
|
|
@@ -120,6 +120,16 @@ function multiplyIncrementalSchemas(schemas) {
|
|
|
120
120
|
* @returns A single simple schema that satisfies all the input schemas
|
|
121
121
|
*/
|
|
122
122
|
export function combineSimpleSchemas(schemas, componentSchemas, location) {
|
|
123
|
+
// all schemas with no `type` field go at the end of the array to avoid
|
|
124
|
+
// caling `copyKeyIfDefined` for discriminators with empty types unless
|
|
125
|
+
// we're certain the schema's title is the last possible option
|
|
126
|
+
schemas.sort((a, b) => {
|
|
127
|
+
if (a.type && !b.type)
|
|
128
|
+
return -1;
|
|
129
|
+
if (!a.type && b.type)
|
|
130
|
+
return 1;
|
|
131
|
+
return 0;
|
|
132
|
+
});
|
|
123
133
|
return schemas.reduce((acc, curr) => {
|
|
124
134
|
var _a, _b, _c, _d, _e, _f;
|
|
125
135
|
// schemas are meant to be immutable, so copy the type
|
|
@@ -163,7 +173,9 @@ export function combineSimpleSchemas(schemas, componentSchemas, location) {
|
|
|
163
173
|
}
|
|
164
174
|
}
|
|
165
175
|
}
|
|
166
|
-
|
|
176
|
+
if (curr.discriminator == undefined && (curr.type != undefined || acc.title == undefined)) {
|
|
177
|
+
copyKeyIfDefined('title', curr, acc);
|
|
178
|
+
}
|
|
167
179
|
copyKeyIfDefined('description', curr, acc);
|
|
168
180
|
copyKeyIfDefined('format', curr, acc);
|
|
169
181
|
copyKeyIfDefined('default', curr, acc);
|