@mintlify/validation 0.1.448 → 0.1.449
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 +91 -0
- package/dist/mint-config/schemas/v2/properties/interaction.d.ts +8 -0
- package/dist/mint-config/schemas/v2/properties/interaction.js +9 -0
- package/dist/mint-config/schemas/v2/themes/almond.d.ts +13 -0
- package/dist/mint-config/schemas/v2/themes/aspen.d.ts +13 -0
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +13 -0
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +13 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +13 -0
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +13 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +7 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.js +2 -0
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +13 -0
- package/dist/mint-config/validateConfig.d.ts +42 -0
- package/dist/openapi/IncrementalEvaluator.js +3 -1
- package/dist/openapi/SchemaConverter.js +7 -1
- package/dist/openapi/generateExampleFromSchema.d.ts +2 -1
- package/dist/openapi/generateExampleFromSchema.js +47 -7
- package/dist/openapi/types/endpoint.d.ts +8 -0
- package/dist/openapi/types/schema.d.ts +4 -0
- package/dist/openapi/utils.js +2 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1366,6 +1366,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
1366
1366
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1367
1367
|
background?: string | undefined;
|
|
1368
1368
|
}>>;
|
|
1369
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
1370
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
1371
|
+
}, "strip", z.ZodTypeAny, {
|
|
1372
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1373
|
+
}, {
|
|
1374
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1375
|
+
}>>;
|
|
1369
1376
|
theme: z.ZodLiteral<"mint">;
|
|
1370
1377
|
}, "strip", z.ZodTypeAny, {
|
|
1371
1378
|
name: string;
|
|
@@ -1743,6 +1750,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
1743
1750
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1744
1751
|
background?: string | undefined;
|
|
1745
1752
|
} | undefined;
|
|
1753
|
+
interaction?: {
|
|
1754
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1755
|
+
} | undefined;
|
|
1746
1756
|
}, {
|
|
1747
1757
|
name: string;
|
|
1748
1758
|
theme: "mint";
|
|
@@ -2119,6 +2129,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
2119
2129
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
2120
2130
|
background?: string | undefined;
|
|
2121
2131
|
} | undefined;
|
|
2132
|
+
interaction?: {
|
|
2133
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2134
|
+
} | undefined;
|
|
2122
2135
|
}>, z.ZodObject<{
|
|
2123
2136
|
$schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2124
2137
|
name: z.ZodString;
|
|
@@ -3483,6 +3496,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
3483
3496
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
3484
3497
|
background?: string | undefined;
|
|
3485
3498
|
}>>;
|
|
3499
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
3500
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
3501
|
+
}, "strip", z.ZodTypeAny, {
|
|
3502
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
3503
|
+
}, {
|
|
3504
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
3505
|
+
}>>;
|
|
3486
3506
|
theme: z.ZodLiteral<"maple">;
|
|
3487
3507
|
}, "strip", z.ZodTypeAny, {
|
|
3488
3508
|
name: string;
|
|
@@ -3860,6 +3880,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
3860
3880
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
3861
3881
|
background?: string | undefined;
|
|
3862
3882
|
} | undefined;
|
|
3883
|
+
interaction?: {
|
|
3884
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
3885
|
+
} | undefined;
|
|
3863
3886
|
}, {
|
|
3864
3887
|
name: string;
|
|
3865
3888
|
theme: "maple";
|
|
@@ -4236,6 +4259,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
4236
4259
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
4237
4260
|
background?: string | undefined;
|
|
4238
4261
|
} | undefined;
|
|
4262
|
+
interaction?: {
|
|
4263
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
4264
|
+
} | undefined;
|
|
4239
4265
|
}>, z.ZodObject<{
|
|
4240
4266
|
$schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
4241
4267
|
name: z.ZodString;
|
|
@@ -5600,6 +5626,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5600
5626
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
5601
5627
|
background?: string | undefined;
|
|
5602
5628
|
}>>;
|
|
5629
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
5630
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
5631
|
+
}, "strip", z.ZodTypeAny, {
|
|
5632
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
5633
|
+
}, {
|
|
5634
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
5635
|
+
}>>;
|
|
5603
5636
|
theme: z.ZodLiteral<"palm">;
|
|
5604
5637
|
}, "strip", z.ZodTypeAny, {
|
|
5605
5638
|
name: string;
|
|
@@ -5977,6 +6010,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5977
6010
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
5978
6011
|
background?: string | undefined;
|
|
5979
6012
|
} | undefined;
|
|
6013
|
+
interaction?: {
|
|
6014
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
6015
|
+
} | undefined;
|
|
5980
6016
|
}, {
|
|
5981
6017
|
name: string;
|
|
5982
6018
|
theme: "palm";
|
|
@@ -6353,6 +6389,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
6353
6389
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
6354
6390
|
background?: string | undefined;
|
|
6355
6391
|
} | undefined;
|
|
6392
|
+
interaction?: {
|
|
6393
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
6394
|
+
} | undefined;
|
|
6356
6395
|
}>, z.ZodObject<{
|
|
6357
6396
|
$schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
6358
6397
|
name: z.ZodString;
|
|
@@ -7717,6 +7756,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
7717
7756
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
7718
7757
|
background?: string | undefined;
|
|
7719
7758
|
}>>;
|
|
7759
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
7760
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
7761
|
+
}, "strip", z.ZodTypeAny, {
|
|
7762
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
7763
|
+
}, {
|
|
7764
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
7765
|
+
}>>;
|
|
7720
7766
|
theme: z.ZodLiteral<"willow">;
|
|
7721
7767
|
}, "strip", z.ZodTypeAny, {
|
|
7722
7768
|
name: string;
|
|
@@ -8094,6 +8140,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
8094
8140
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
8095
8141
|
background?: string | undefined;
|
|
8096
8142
|
} | undefined;
|
|
8143
|
+
interaction?: {
|
|
8144
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
8145
|
+
} | undefined;
|
|
8097
8146
|
}, {
|
|
8098
8147
|
name: string;
|
|
8099
8148
|
theme: "willow";
|
|
@@ -8470,6 +8519,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
8470
8519
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
8471
8520
|
background?: string | undefined;
|
|
8472
8521
|
} | undefined;
|
|
8522
|
+
interaction?: {
|
|
8523
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
8524
|
+
} | undefined;
|
|
8473
8525
|
}>, z.ZodObject<{
|
|
8474
8526
|
$schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8475
8527
|
name: z.ZodString;
|
|
@@ -9834,6 +9886,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
9834
9886
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
9835
9887
|
background?: string | undefined;
|
|
9836
9888
|
}>>;
|
|
9889
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
9890
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
9891
|
+
}, "strip", z.ZodTypeAny, {
|
|
9892
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
9893
|
+
}, {
|
|
9894
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
9895
|
+
}>>;
|
|
9837
9896
|
theme: z.ZodLiteral<"linden">;
|
|
9838
9897
|
}, "strip", z.ZodTypeAny, {
|
|
9839
9898
|
name: string;
|
|
@@ -10211,6 +10270,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
10211
10270
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
10212
10271
|
background?: string | undefined;
|
|
10213
10272
|
} | undefined;
|
|
10273
|
+
interaction?: {
|
|
10274
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
10275
|
+
} | undefined;
|
|
10214
10276
|
}, {
|
|
10215
10277
|
name: string;
|
|
10216
10278
|
theme: "linden";
|
|
@@ -10587,6 +10649,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
10587
10649
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
10588
10650
|
background?: string | undefined;
|
|
10589
10651
|
} | undefined;
|
|
10652
|
+
interaction?: {
|
|
10653
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
10654
|
+
} | undefined;
|
|
10590
10655
|
}>, z.ZodObject<{
|
|
10591
10656
|
$schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
10592
10657
|
name: z.ZodString;
|
|
@@ -11951,6 +12016,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
11951
12016
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
11952
12017
|
background?: string | undefined;
|
|
11953
12018
|
}>>;
|
|
12019
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
12020
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
12021
|
+
}, "strip", z.ZodTypeAny, {
|
|
12022
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
12023
|
+
}, {
|
|
12024
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
12025
|
+
}>>;
|
|
11954
12026
|
theme: z.ZodLiteral<"almond">;
|
|
11955
12027
|
}, "strip", z.ZodTypeAny, {
|
|
11956
12028
|
name: string;
|
|
@@ -12328,6 +12400,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
12328
12400
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
12329
12401
|
background?: string | undefined;
|
|
12330
12402
|
} | undefined;
|
|
12403
|
+
interaction?: {
|
|
12404
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
12405
|
+
} | undefined;
|
|
12331
12406
|
}, {
|
|
12332
12407
|
name: string;
|
|
12333
12408
|
theme: "almond";
|
|
@@ -12704,6 +12779,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
12704
12779
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
12705
12780
|
background?: string | undefined;
|
|
12706
12781
|
} | undefined;
|
|
12782
|
+
interaction?: {
|
|
12783
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
12784
|
+
} | undefined;
|
|
12707
12785
|
}>, z.ZodObject<{
|
|
12708
12786
|
$schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
12709
12787
|
name: z.ZodString;
|
|
@@ -14068,6 +14146,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
14068
14146
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
14069
14147
|
background?: string | undefined;
|
|
14070
14148
|
}>>;
|
|
14149
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
14150
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
14151
|
+
}, "strip", z.ZodTypeAny, {
|
|
14152
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
14153
|
+
}, {
|
|
14154
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
14155
|
+
}>>;
|
|
14071
14156
|
theme: z.ZodLiteral<"aspen">;
|
|
14072
14157
|
}, "strip", z.ZodTypeAny, {
|
|
14073
14158
|
name: string;
|
|
@@ -14445,6 +14530,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
14445
14530
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
14446
14531
|
background?: string | undefined;
|
|
14447
14532
|
} | undefined;
|
|
14533
|
+
interaction?: {
|
|
14534
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
14535
|
+
} | undefined;
|
|
14448
14536
|
}, {
|
|
14449
14537
|
name: string;
|
|
14450
14538
|
theme: "aspen";
|
|
@@ -14821,4 +14909,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
14821
14909
|
appearance?: import("./properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
14822
14910
|
background?: string | undefined;
|
|
14823
14911
|
} | undefined;
|
|
14912
|
+
interaction?: {
|
|
14913
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
14914
|
+
} | undefined;
|
|
14824
14915
|
}>]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const interactionSchema: z.ZodObject<{
|
|
3
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const interactionSchema = z
|
|
3
|
+
.object({
|
|
4
|
+
autoNavigateOnExpand: z
|
|
5
|
+
.boolean()
|
|
6
|
+
.optional()
|
|
7
|
+
.describe('Whether to automatically navigate to the first page when navigation groups are expanded'),
|
|
8
|
+
})
|
|
9
|
+
.describe('Options for how users interact with links in the documentation');
|
|
@@ -1363,6 +1363,13 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
1363
1363
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1364
1364
|
background?: string | undefined;
|
|
1365
1365
|
}>>;
|
|
1366
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
1367
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1369
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1370
|
+
}, {
|
|
1371
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1372
|
+
}>>;
|
|
1366
1373
|
theme: z.ZodLiteral<"almond">;
|
|
1367
1374
|
}, "strip", z.ZodTypeAny, {
|
|
1368
1375
|
name: string;
|
|
@@ -1740,6 +1747,9 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
1740
1747
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1741
1748
|
background?: string | undefined;
|
|
1742
1749
|
} | undefined;
|
|
1750
|
+
interaction?: {
|
|
1751
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1752
|
+
} | undefined;
|
|
1743
1753
|
}, {
|
|
1744
1754
|
name: string;
|
|
1745
1755
|
theme: "almond";
|
|
@@ -2116,4 +2126,7 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
2116
2126
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
2117
2127
|
background?: string | undefined;
|
|
2118
2128
|
} | undefined;
|
|
2129
|
+
interaction?: {
|
|
2130
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2131
|
+
} | undefined;
|
|
2119
2132
|
}>;
|
|
@@ -1363,6 +1363,13 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
1363
1363
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1364
1364
|
background?: string | undefined;
|
|
1365
1365
|
}>>;
|
|
1366
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
1367
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1369
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1370
|
+
}, {
|
|
1371
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1372
|
+
}>>;
|
|
1366
1373
|
theme: z.ZodLiteral<"aspen">;
|
|
1367
1374
|
}, "strip", z.ZodTypeAny, {
|
|
1368
1375
|
name: string;
|
|
@@ -1740,6 +1747,9 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
1740
1747
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1741
1748
|
background?: string | undefined;
|
|
1742
1749
|
} | undefined;
|
|
1750
|
+
interaction?: {
|
|
1751
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1752
|
+
} | undefined;
|
|
1743
1753
|
}, {
|
|
1744
1754
|
name: string;
|
|
1745
1755
|
theme: "aspen";
|
|
@@ -2116,4 +2126,7 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
2116
2126
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
2117
2127
|
background?: string | undefined;
|
|
2118
2128
|
} | undefined;
|
|
2129
|
+
interaction?: {
|
|
2130
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2131
|
+
} | undefined;
|
|
2119
2132
|
}>;
|
|
@@ -1363,6 +1363,13 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
1363
1363
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1364
1364
|
background?: string | undefined;
|
|
1365
1365
|
}>>;
|
|
1366
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
1367
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1369
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1370
|
+
}, {
|
|
1371
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1372
|
+
}>>;
|
|
1366
1373
|
theme: z.ZodLiteral<"linden">;
|
|
1367
1374
|
}, "strip", z.ZodTypeAny, {
|
|
1368
1375
|
name: string;
|
|
@@ -1740,6 +1747,9 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
1740
1747
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1741
1748
|
background?: string | undefined;
|
|
1742
1749
|
} | undefined;
|
|
1750
|
+
interaction?: {
|
|
1751
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1752
|
+
} | undefined;
|
|
1743
1753
|
}, {
|
|
1744
1754
|
name: string;
|
|
1745
1755
|
theme: "linden";
|
|
@@ -2116,4 +2126,7 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
2116
2126
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
2117
2127
|
background?: string | undefined;
|
|
2118
2128
|
} | undefined;
|
|
2129
|
+
interaction?: {
|
|
2130
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2131
|
+
} | undefined;
|
|
2119
2132
|
}>;
|
|
@@ -1363,6 +1363,13 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
1363
1363
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1364
1364
|
background?: string | undefined;
|
|
1365
1365
|
}>>;
|
|
1366
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
1367
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1369
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1370
|
+
}, {
|
|
1371
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1372
|
+
}>>;
|
|
1366
1373
|
theme: z.ZodLiteral<"maple">;
|
|
1367
1374
|
}, "strip", z.ZodTypeAny, {
|
|
1368
1375
|
name: string;
|
|
@@ -1740,6 +1747,9 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
1740
1747
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1741
1748
|
background?: string | undefined;
|
|
1742
1749
|
} | undefined;
|
|
1750
|
+
interaction?: {
|
|
1751
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1752
|
+
} | undefined;
|
|
1743
1753
|
}, {
|
|
1744
1754
|
name: string;
|
|
1745
1755
|
theme: "maple";
|
|
@@ -2116,4 +2126,7 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
2116
2126
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
2117
2127
|
background?: string | undefined;
|
|
2118
2128
|
} | undefined;
|
|
2129
|
+
interaction?: {
|
|
2130
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2131
|
+
} | undefined;
|
|
2119
2132
|
}>;
|
|
@@ -1363,6 +1363,13 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1363
1363
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1364
1364
|
background?: string | undefined;
|
|
1365
1365
|
}>>;
|
|
1366
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
1367
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1369
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1370
|
+
}, {
|
|
1371
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1372
|
+
}>>;
|
|
1366
1373
|
theme: z.ZodLiteral<"mint">;
|
|
1367
1374
|
}, "strip", z.ZodTypeAny, {
|
|
1368
1375
|
name: string;
|
|
@@ -1740,6 +1747,9 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1740
1747
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1741
1748
|
background?: string | undefined;
|
|
1742
1749
|
} | undefined;
|
|
1750
|
+
interaction?: {
|
|
1751
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1752
|
+
} | undefined;
|
|
1743
1753
|
}, {
|
|
1744
1754
|
name: string;
|
|
1745
1755
|
theme: "mint";
|
|
@@ -2116,4 +2126,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
2116
2126
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
2117
2127
|
background?: string | undefined;
|
|
2118
2128
|
} | undefined;
|
|
2129
|
+
interaction?: {
|
|
2130
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2131
|
+
} | undefined;
|
|
2119
2132
|
}>;
|
|
@@ -1363,6 +1363,13 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
1363
1363
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1364
1364
|
background?: string | undefined;
|
|
1365
1365
|
}>>;
|
|
1366
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
1367
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1369
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1370
|
+
}, {
|
|
1371
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1372
|
+
}>>;
|
|
1366
1373
|
theme: z.ZodLiteral<"palm">;
|
|
1367
1374
|
}, "strip", z.ZodTypeAny, {
|
|
1368
1375
|
name: string;
|
|
@@ -1740,6 +1747,9 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
1740
1747
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1741
1748
|
background?: string | undefined;
|
|
1742
1749
|
} | undefined;
|
|
1750
|
+
interaction?: {
|
|
1751
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1752
|
+
} | undefined;
|
|
1743
1753
|
}, {
|
|
1744
1754
|
name: string;
|
|
1745
1755
|
theme: "palm";
|
|
@@ -2116,4 +2126,7 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
2116
2126
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
2117
2127
|
background?: string | undefined;
|
|
2118
2128
|
} | undefined;
|
|
2129
|
+
interaction?: {
|
|
2130
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2131
|
+
} | undefined;
|
|
2119
2132
|
}>;
|
|
@@ -1362,4 +1362,11 @@ export declare const standardConfigSchema: {
|
|
|
1362
1362
|
appearance?: import("../../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1363
1363
|
background?: string | undefined;
|
|
1364
1364
|
}>>;
|
|
1365
|
+
interaction: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1366
|
+
autoNavigateOnExpand: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1367
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1368
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1369
|
+
}, {
|
|
1370
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1371
|
+
}>>;
|
|
1365
1372
|
};
|
|
@@ -13,6 +13,7 @@ import { fontsSchema } from '../../properties/font.js';
|
|
|
13
13
|
import { footerSchema } from '../../properties/footer.js';
|
|
14
14
|
import { iconsSchema } from '../../properties/icons.js';
|
|
15
15
|
import { integrationsSchema } from '../../properties/integrations.js';
|
|
16
|
+
import { interactionSchema } from '../../properties/interaction.js';
|
|
16
17
|
import { logoSchema } from '../../properties/logo.js';
|
|
17
18
|
import { nameSchema } from '../../properties/name.js';
|
|
18
19
|
import { navbarSchema } from '../../properties/navbar.js';
|
|
@@ -45,4 +46,5 @@ export const standardConfigSchema = {
|
|
|
45
46
|
errors: errorsSchema.optional(),
|
|
46
47
|
contextual: contextualSchema.optional(),
|
|
47
48
|
thumbnails: thumbnailsSchema.optional(),
|
|
49
|
+
interaction: interactionSchema.optional(),
|
|
48
50
|
};
|
|
@@ -1363,6 +1363,13 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
1363
1363
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1364
1364
|
background?: string | undefined;
|
|
1365
1365
|
}>>;
|
|
1366
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
1367
|
+
autoNavigateOnExpand: z.ZodOptional<z.ZodBoolean>;
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1369
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1370
|
+
}, {
|
|
1371
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1372
|
+
}>>;
|
|
1366
1373
|
theme: z.ZodLiteral<"willow">;
|
|
1367
1374
|
}, "strip", z.ZodTypeAny, {
|
|
1368
1375
|
name: string;
|
|
@@ -1740,6 +1747,9 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
1740
1747
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
1741
1748
|
background?: string | undefined;
|
|
1742
1749
|
} | undefined;
|
|
1750
|
+
interaction?: {
|
|
1751
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1752
|
+
} | undefined;
|
|
1743
1753
|
}, {
|
|
1744
1754
|
name: string;
|
|
1745
1755
|
theme: "willow";
|
|
@@ -2116,4 +2126,7 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
2116
2126
|
appearance?: import("../properties/thumbnails.js").ThumbnailAppearance | undefined;
|
|
2117
2127
|
background?: string | undefined;
|
|
2118
2128
|
} | undefined;
|
|
2129
|
+
interaction?: {
|
|
2130
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2131
|
+
} | undefined;
|
|
2119
2132
|
}>;
|
|
@@ -860,6 +860,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
860
860
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
861
861
|
background?: string | undefined;
|
|
862
862
|
} | undefined;
|
|
863
|
+
interaction?: {
|
|
864
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
865
|
+
} | undefined;
|
|
863
866
|
} | {
|
|
864
867
|
name: string;
|
|
865
868
|
theme: "aspen";
|
|
@@ -1236,6 +1239,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1236
1239
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
1237
1240
|
background?: string | undefined;
|
|
1238
1241
|
} | undefined;
|
|
1242
|
+
interaction?: {
|
|
1243
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1244
|
+
} | undefined;
|
|
1239
1245
|
} | {
|
|
1240
1246
|
name: string;
|
|
1241
1247
|
theme: "linden";
|
|
@@ -1612,6 +1618,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1612
1618
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
1613
1619
|
background?: string | undefined;
|
|
1614
1620
|
} | undefined;
|
|
1621
|
+
interaction?: {
|
|
1622
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
1623
|
+
} | undefined;
|
|
1615
1624
|
} | {
|
|
1616
1625
|
name: string;
|
|
1617
1626
|
theme: "maple";
|
|
@@ -1988,6 +1997,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1988
1997
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
1989
1998
|
background?: string | undefined;
|
|
1990
1999
|
} | undefined;
|
|
2000
|
+
interaction?: {
|
|
2001
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2002
|
+
} | undefined;
|
|
1991
2003
|
} | {
|
|
1992
2004
|
name: string;
|
|
1993
2005
|
theme: "mint";
|
|
@@ -2364,6 +2376,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2364
2376
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
2365
2377
|
background?: string | undefined;
|
|
2366
2378
|
} | undefined;
|
|
2379
|
+
interaction?: {
|
|
2380
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2381
|
+
} | undefined;
|
|
2367
2382
|
} | {
|
|
2368
2383
|
name: string;
|
|
2369
2384
|
theme: "palm";
|
|
@@ -2740,6 +2755,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2740
2755
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
2741
2756
|
background?: string | undefined;
|
|
2742
2757
|
} | undefined;
|
|
2758
|
+
interaction?: {
|
|
2759
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
2760
|
+
} | undefined;
|
|
2743
2761
|
} | {
|
|
2744
2762
|
name: string;
|
|
2745
2763
|
theme: "willow";
|
|
@@ -3116,6 +3134,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
3116
3134
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
3117
3135
|
background?: string | undefined;
|
|
3118
3136
|
} | undefined;
|
|
3137
|
+
interaction?: {
|
|
3138
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
3139
|
+
} | undefined;
|
|
3119
3140
|
}> | {
|
|
3120
3141
|
warnings: z.ZodIssue[];
|
|
3121
3142
|
success: true;
|
|
@@ -3495,6 +3516,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
3495
3516
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
3496
3517
|
background?: string | undefined;
|
|
3497
3518
|
} | undefined;
|
|
3519
|
+
interaction?: {
|
|
3520
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
3521
|
+
} | undefined;
|
|
3498
3522
|
} | {
|
|
3499
3523
|
name: string;
|
|
3500
3524
|
$schema: string;
|
|
@@ -3871,6 +3895,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
3871
3895
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
3872
3896
|
background?: string | undefined;
|
|
3873
3897
|
} | undefined;
|
|
3898
|
+
interaction?: {
|
|
3899
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
3900
|
+
} | undefined;
|
|
3874
3901
|
} | {
|
|
3875
3902
|
name: string;
|
|
3876
3903
|
$schema: string;
|
|
@@ -4247,6 +4274,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
4247
4274
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
4248
4275
|
background?: string | undefined;
|
|
4249
4276
|
} | undefined;
|
|
4277
|
+
interaction?: {
|
|
4278
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
4279
|
+
} | undefined;
|
|
4250
4280
|
} | {
|
|
4251
4281
|
name: string;
|
|
4252
4282
|
$schema: string;
|
|
@@ -4623,6 +4653,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
4623
4653
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
4624
4654
|
background?: string | undefined;
|
|
4625
4655
|
} | undefined;
|
|
4656
|
+
interaction?: {
|
|
4657
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
4658
|
+
} | undefined;
|
|
4626
4659
|
} | {
|
|
4627
4660
|
name: string;
|
|
4628
4661
|
$schema: string;
|
|
@@ -4999,6 +5032,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
4999
5032
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
5000
5033
|
background?: string | undefined;
|
|
5001
5034
|
} | undefined;
|
|
5035
|
+
interaction?: {
|
|
5036
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
5037
|
+
} | undefined;
|
|
5002
5038
|
} | {
|
|
5003
5039
|
name: string;
|
|
5004
5040
|
$schema: string;
|
|
@@ -5375,6 +5411,9 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
5375
5411
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
5376
5412
|
background?: string | undefined;
|
|
5377
5413
|
} | undefined;
|
|
5414
|
+
interaction?: {
|
|
5415
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
5416
|
+
} | undefined;
|
|
5378
5417
|
} | {
|
|
5379
5418
|
name: string;
|
|
5380
5419
|
$schema: string;
|
|
@@ -5751,5 +5790,8 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
5751
5790
|
appearance?: import("../index.js").ThumbnailAppearance | undefined;
|
|
5752
5791
|
background?: string | undefined;
|
|
5753
5792
|
} | undefined;
|
|
5793
|
+
interaction?: {
|
|
5794
|
+
autoNavigateOnExpand?: boolean | undefined;
|
|
5795
|
+
} | undefined;
|
|
5754
5796
|
};
|
|
5755
5797
|
};
|
|
@@ -54,7 +54,7 @@ export function reduceToSumOfProducts(schemaOrRef, componentSchemas, opts) {
|
|
|
54
54
|
}
|
|
55
55
|
// @ts-expect-error some customers use title even though it's not part of the spec
|
|
56
56
|
const dereferencedSchemaTitle = (_d = schemaOrRef.title) !== null && _d !== void 0 ? _d : dereferencedSchema.title;
|
|
57
|
-
schema = Object.assign(Object.assign({}, dereferencedSchema), { title: dereferencedSchemaTitle, refIdentifier: refIdentifier, description: (_e = schemaOrRef.description) !== null && _e !== void 0 ? _e : dereferencedSchema.description, isOneOf: schemaOrRef.isOneOf, isAnyOf: schemaOrRef.isAnyOf, isAllOf: schemaOrRef.isAllOf });
|
|
57
|
+
schema = Object.assign(Object.assign({}, dereferencedSchema), { title: dereferencedSchemaTitle, refIdentifier: refIdentifier, description: (_e = schemaOrRef.description) !== null && _e !== void 0 ? _e : dereferencedSchema.description, isOneOf: schemaOrRef.isOneOf, isAnyOf: schemaOrRef.isAnyOf, isAllOf: schemaOrRef.isAllOf, 'x-for-clients': schemaOrRef['x-for-clients'], 'x-for-feature-flags': schemaOrRef['x-for-feature-flags'] });
|
|
58
58
|
opts = Object.assign(Object.assign({}, opts), { _visited: nextVisited });
|
|
59
59
|
}
|
|
60
60
|
else {
|
|
@@ -284,6 +284,8 @@ function convertCombinedSchema(schema, required) {
|
|
|
284
284
|
copyKeyIfDefined('examples', schema, sharedProps);
|
|
285
285
|
copyKeyIfDefined('x-enum-for-clients', schema, sharedProps);
|
|
286
286
|
copyKeyIfDefined('x-enum-for-feature-flags', schema, sharedProps);
|
|
287
|
+
copyKeyIfDefined('x-for-feature-flags', schema, sharedProps);
|
|
288
|
+
copyKeyIfDefined('x-for-clients', schema, sharedProps);
|
|
287
289
|
if (schema.type === undefined) {
|
|
288
290
|
const inferredType = inferType(schema);
|
|
289
291
|
if (inferredType === undefined) {
|