@redocly/config 0.52.0 → 0.53.1
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/lib/asyncapi-config-schema.d.ts +3 -9
- package/lib/default-theme-config-schema.d.ts +6 -12
- package/lib/ex-theme-config-schemas.d.ts +0 -6
- package/lib/graphql-config-schema.d.ts +3 -0
- package/lib/index.js +1 -1
- package/lib/product-override-schema.d.ts +6 -15
- package/lib/redoc-config-schema.d.ts +0 -3
- package/lib/root-config-schema.d.ts +99 -114
- package/lib/types/graphql-types.d.ts +10 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/mock-server-types.d.ts +59 -0
- package/lib/types/portal-shared-types.d.ts +1 -0
- package/lib-esm/asyncapi-config-schema.d.ts +3 -9
- package/lib-esm/default-theme-config-schema.d.ts +6 -12
- package/lib-esm/ex-theme-config-schemas.d.ts +0 -6
- package/lib-esm/graphql-config-schema.d.ts +3 -0
- package/lib-esm/index.js +1 -1
- package/lib-esm/product-override-schema.d.ts +6 -15
- package/lib-esm/redoc-config-schema.d.ts +0 -3
- package/lib-esm/root-config-schema.d.ts +99 -114
- package/lib-esm/types/graphql-types.d.ts +10 -0
- package/lib-esm/types/index.d.ts +1 -0
- package/lib-esm/types/mock-server-types.d.ts +59 -0
- package/lib-esm/types/portal-shared-types.d.ts +1 -0
- package/package.json +5 -5
|
@@ -899,9 +899,6 @@ export declare const apiConfigSchema: {
|
|
|
899
899
|
readonly hideLoading: {
|
|
900
900
|
readonly type: 'boolean';
|
|
901
901
|
};
|
|
902
|
-
readonly disableRouter: {
|
|
903
|
-
readonly type: 'boolean';
|
|
904
|
-
};
|
|
905
902
|
readonly hideSidebar: {
|
|
906
903
|
readonly type: 'boolean';
|
|
907
904
|
};
|
|
@@ -3111,6 +3108,9 @@ export declare const apiConfigSchema: {
|
|
|
3111
3108
|
readonly showBuiltInDirectives: {
|
|
3112
3109
|
readonly type: 'boolean';
|
|
3113
3110
|
};
|
|
3111
|
+
readonly excludeFromSearch: {
|
|
3112
|
+
readonly type: 'boolean';
|
|
3113
|
+
};
|
|
3114
3114
|
readonly info: {
|
|
3115
3115
|
readonly type: 'object';
|
|
3116
3116
|
readonly properties: {
|
|
@@ -3182,9 +3182,6 @@ export declare const apiConfigSchema: {
|
|
|
3182
3182
|
readonly hideLoading: {
|
|
3183
3183
|
readonly type: 'boolean';
|
|
3184
3184
|
};
|
|
3185
|
-
readonly disableRouter: {
|
|
3186
|
-
readonly type: 'boolean';
|
|
3187
|
-
};
|
|
3188
3185
|
readonly hideSidebar: {
|
|
3189
3186
|
readonly type: 'boolean';
|
|
3190
3187
|
};
|
|
@@ -5394,6 +5391,9 @@ export declare const apiConfigSchema: {
|
|
|
5394
5391
|
readonly showBuiltInDirectives: {
|
|
5395
5392
|
readonly type: 'boolean';
|
|
5396
5393
|
};
|
|
5394
|
+
readonly excludeFromSearch: {
|
|
5395
|
+
readonly type: 'boolean';
|
|
5396
|
+
};
|
|
5397
5397
|
readonly info: {
|
|
5398
5398
|
readonly type: 'object';
|
|
5399
5399
|
readonly properties: {
|
|
@@ -5786,6 +5786,12 @@ export declare const rbacConfigSchema: {
|
|
|
5786
5786
|
readonly type: 'string';
|
|
5787
5787
|
};
|
|
5788
5788
|
};
|
|
5789
|
+
readonly mcp: {
|
|
5790
|
+
readonly type: 'object';
|
|
5791
|
+
readonly additionalProperties: {
|
|
5792
|
+
readonly type: 'string';
|
|
5793
|
+
};
|
|
5794
|
+
};
|
|
5789
5795
|
};
|
|
5790
5796
|
readonly additionalProperties: false;
|
|
5791
5797
|
};
|
|
@@ -6531,6 +6537,12 @@ export declare const accessConfigSchema: {
|
|
|
6531
6537
|
readonly type: 'string';
|
|
6532
6538
|
};
|
|
6533
6539
|
};
|
|
6540
|
+
readonly mcp: {
|
|
6541
|
+
readonly type: 'object';
|
|
6542
|
+
readonly additionalProperties: {
|
|
6543
|
+
readonly type: 'string';
|
|
6544
|
+
};
|
|
6545
|
+
};
|
|
6534
6546
|
};
|
|
6535
6547
|
readonly additionalProperties: false;
|
|
6536
6548
|
};
|
|
@@ -7192,6 +7204,12 @@ export declare const redoclyConfigSchema: {
|
|
|
7192
7204
|
readonly type: 'string';
|
|
7193
7205
|
};
|
|
7194
7206
|
};
|
|
7207
|
+
readonly mcp: {
|
|
7208
|
+
readonly type: 'object';
|
|
7209
|
+
readonly additionalProperties: {
|
|
7210
|
+
readonly type: 'string';
|
|
7211
|
+
};
|
|
7212
|
+
};
|
|
7195
7213
|
};
|
|
7196
7214
|
readonly additionalProperties: false;
|
|
7197
7215
|
};
|
|
@@ -7737,9 +7755,6 @@ export declare const redoclyConfigSchema: {
|
|
|
7737
7755
|
readonly hideLoading: {
|
|
7738
7756
|
readonly type: 'boolean';
|
|
7739
7757
|
};
|
|
7740
|
-
readonly disableRouter: {
|
|
7741
|
-
readonly type: 'boolean';
|
|
7742
|
-
};
|
|
7743
7758
|
readonly hideSidebar: {
|
|
7744
7759
|
readonly type: 'boolean';
|
|
7745
7760
|
};
|
|
@@ -9949,6 +9964,9 @@ export declare const redoclyConfigSchema: {
|
|
|
9949
9964
|
readonly showBuiltInDirectives: {
|
|
9950
9965
|
readonly type: 'boolean';
|
|
9951
9966
|
};
|
|
9967
|
+
readonly excludeFromSearch: {
|
|
9968
|
+
readonly type: 'boolean';
|
|
9969
|
+
};
|
|
9952
9970
|
readonly info: {
|
|
9953
9971
|
readonly type: 'object';
|
|
9954
9972
|
readonly properties: {
|
|
@@ -10020,9 +10038,6 @@ export declare const redoclyConfigSchema: {
|
|
|
10020
10038
|
readonly hideLoading: {
|
|
10021
10039
|
readonly type: 'boolean';
|
|
10022
10040
|
};
|
|
10023
|
-
readonly disableRouter: {
|
|
10024
|
-
readonly type: 'boolean';
|
|
10025
|
-
};
|
|
10026
10041
|
readonly hideSidebar: {
|
|
10027
10042
|
readonly type: 'boolean';
|
|
10028
10043
|
};
|
|
@@ -12232,6 +12247,9 @@ export declare const redoclyConfigSchema: {
|
|
|
12232
12247
|
readonly showBuiltInDirectives: {
|
|
12233
12248
|
readonly type: 'boolean';
|
|
12234
12249
|
};
|
|
12250
|
+
readonly excludeFromSearch: {
|
|
12251
|
+
readonly type: 'boolean';
|
|
12252
|
+
};
|
|
12235
12253
|
readonly info: {
|
|
12236
12254
|
readonly type: 'object';
|
|
12237
12255
|
readonly properties: {
|
|
@@ -12586,6 +12604,12 @@ export declare const redoclyConfigSchema: {
|
|
|
12586
12604
|
readonly type: 'string';
|
|
12587
12605
|
};
|
|
12588
12606
|
};
|
|
12607
|
+
readonly mcp: {
|
|
12608
|
+
readonly type: 'object';
|
|
12609
|
+
readonly additionalProperties: {
|
|
12610
|
+
readonly type: 'string';
|
|
12611
|
+
};
|
|
12612
|
+
};
|
|
12589
12613
|
};
|
|
12590
12614
|
readonly additionalProperties: false;
|
|
12591
12615
|
};
|
|
@@ -14211,9 +14235,6 @@ export declare const redoclyConfigSchema: {
|
|
|
14211
14235
|
readonly hideLoading: {
|
|
14212
14236
|
readonly type: 'boolean';
|
|
14213
14237
|
};
|
|
14214
|
-
readonly disableRouter: {
|
|
14215
|
-
readonly type: 'boolean';
|
|
14216
|
-
};
|
|
14217
14238
|
readonly hideSidebar: {
|
|
14218
14239
|
readonly type: 'boolean';
|
|
14219
14240
|
};
|
|
@@ -16032,6 +16053,9 @@ export declare const redoclyConfigSchema: {
|
|
|
16032
16053
|
readonly jsonSamplesDepth: {
|
|
16033
16054
|
readonly type: 'number';
|
|
16034
16055
|
};
|
|
16056
|
+
readonly excludeFromSearch: {
|
|
16057
|
+
readonly type: 'boolean';
|
|
16058
|
+
};
|
|
16035
16059
|
readonly samplesMaxInlineArgs: {
|
|
16036
16060
|
readonly type: 'number';
|
|
16037
16061
|
};
|
|
@@ -16041,15 +16065,6 @@ export declare const redoclyConfigSchema: {
|
|
|
16041
16065
|
readonly baseUrlPath: {
|
|
16042
16066
|
readonly type: 'string';
|
|
16043
16067
|
};
|
|
16044
|
-
readonly metadata: {
|
|
16045
|
-
readonly type: 'object';
|
|
16046
|
-
readonly properties: {
|
|
16047
|
-
readonly apiId: {
|
|
16048
|
-
readonly type: 'string';
|
|
16049
|
-
};
|
|
16050
|
-
};
|
|
16051
|
-
readonly additionalProperties: true;
|
|
16052
|
-
};
|
|
16053
16068
|
readonly feedback: {
|
|
16054
16069
|
readonly type: 'object';
|
|
16055
16070
|
readonly properties: {
|
|
@@ -16706,6 +16721,9 @@ export declare const redoclyConfigSchema: {
|
|
|
16706
16721
|
readonly showBuiltInDirectives: {
|
|
16707
16722
|
readonly type: 'boolean';
|
|
16708
16723
|
};
|
|
16724
|
+
readonly excludeFromSearch: {
|
|
16725
|
+
readonly type: 'boolean';
|
|
16726
|
+
};
|
|
16709
16727
|
readonly info: {
|
|
16710
16728
|
readonly type: 'object';
|
|
16711
16729
|
readonly properties: {
|
|
@@ -21208,9 +21226,6 @@ export declare const redoclyConfigSchema: {
|
|
|
21208
21226
|
readonly hideLoading: {
|
|
21209
21227
|
readonly type: 'boolean';
|
|
21210
21228
|
};
|
|
21211
|
-
readonly disableRouter: {
|
|
21212
|
-
readonly type: 'boolean';
|
|
21213
|
-
};
|
|
21214
21229
|
readonly hideSidebar: {
|
|
21215
21230
|
readonly type: 'boolean';
|
|
21216
21231
|
};
|
|
@@ -23420,6 +23435,9 @@ export declare const redoclyConfigSchema: {
|
|
|
23420
23435
|
readonly showBuiltInDirectives: {
|
|
23421
23436
|
readonly type: 'boolean';
|
|
23422
23437
|
};
|
|
23438
|
+
readonly excludeFromSearch: {
|
|
23439
|
+
readonly type: 'boolean';
|
|
23440
|
+
};
|
|
23423
23441
|
readonly info: {
|
|
23424
23442
|
readonly type: 'object';
|
|
23425
23443
|
readonly properties: {
|
|
@@ -26677,21 +26695,6 @@ export declare const redoclyConfigSchema: {
|
|
|
26677
26695
|
};
|
|
26678
26696
|
readonly additionalProperties: false;
|
|
26679
26697
|
};
|
|
26680
|
-
readonly gateway: {
|
|
26681
|
-
readonly type: 'object';
|
|
26682
|
-
readonly properties: {
|
|
26683
|
-
readonly hide: {
|
|
26684
|
-
readonly type: 'boolean';
|
|
26685
|
-
};
|
|
26686
|
-
readonly allowedHosts: {
|
|
26687
|
-
readonly type: 'array';
|
|
26688
|
-
readonly items: {
|
|
26689
|
-
readonly type: 'string';
|
|
26690
|
-
};
|
|
26691
|
-
};
|
|
26692
|
-
};
|
|
26693
|
-
readonly additionalProperties: false;
|
|
26694
|
-
};
|
|
26695
26698
|
};
|
|
26696
26699
|
readonly additionalProperties: false;
|
|
26697
26700
|
};
|
|
@@ -27242,6 +27245,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
27242
27245
|
readonly type: 'string';
|
|
27243
27246
|
};
|
|
27244
27247
|
};
|
|
27248
|
+
readonly mcp: {
|
|
27249
|
+
readonly type: 'object';
|
|
27250
|
+
readonly additionalProperties: {
|
|
27251
|
+
readonly type: 'string';
|
|
27252
|
+
};
|
|
27253
|
+
};
|
|
27245
27254
|
};
|
|
27246
27255
|
readonly additionalProperties: false;
|
|
27247
27256
|
};
|
|
@@ -27787,9 +27796,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
27787
27796
|
readonly hideLoading: {
|
|
27788
27797
|
readonly type: 'boolean';
|
|
27789
27798
|
};
|
|
27790
|
-
readonly disableRouter: {
|
|
27791
|
-
readonly type: 'boolean';
|
|
27792
|
-
};
|
|
27793
27799
|
readonly hideSidebar: {
|
|
27794
27800
|
readonly type: 'boolean';
|
|
27795
27801
|
};
|
|
@@ -29999,6 +30005,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
29999
30005
|
readonly showBuiltInDirectives: {
|
|
30000
30006
|
readonly type: 'boolean';
|
|
30001
30007
|
};
|
|
30008
|
+
readonly excludeFromSearch: {
|
|
30009
|
+
readonly type: 'boolean';
|
|
30010
|
+
};
|
|
30002
30011
|
readonly info: {
|
|
30003
30012
|
readonly type: 'object';
|
|
30004
30013
|
readonly properties: {
|
|
@@ -30070,9 +30079,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
30070
30079
|
readonly hideLoading: {
|
|
30071
30080
|
readonly type: 'boolean';
|
|
30072
30081
|
};
|
|
30073
|
-
readonly disableRouter: {
|
|
30074
|
-
readonly type: 'boolean';
|
|
30075
|
-
};
|
|
30076
30082
|
readonly hideSidebar: {
|
|
30077
30083
|
readonly type: 'boolean';
|
|
30078
30084
|
};
|
|
@@ -32282,6 +32288,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
32282
32288
|
readonly showBuiltInDirectives: {
|
|
32283
32289
|
readonly type: 'boolean';
|
|
32284
32290
|
};
|
|
32291
|
+
readonly excludeFromSearch: {
|
|
32292
|
+
readonly type: 'boolean';
|
|
32293
|
+
};
|
|
32285
32294
|
readonly info: {
|
|
32286
32295
|
readonly type: 'object';
|
|
32287
32296
|
readonly properties: {
|
|
@@ -32636,6 +32645,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
32636
32645
|
readonly type: 'string';
|
|
32637
32646
|
};
|
|
32638
32647
|
};
|
|
32648
|
+
readonly mcp: {
|
|
32649
|
+
readonly type: 'object';
|
|
32650
|
+
readonly additionalProperties: {
|
|
32651
|
+
readonly type: 'string';
|
|
32652
|
+
};
|
|
32653
|
+
};
|
|
32639
32654
|
};
|
|
32640
32655
|
readonly additionalProperties: false;
|
|
32641
32656
|
};
|
|
@@ -34261,9 +34276,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
34261
34276
|
readonly hideLoading: {
|
|
34262
34277
|
readonly type: 'boolean';
|
|
34263
34278
|
};
|
|
34264
|
-
readonly disableRouter: {
|
|
34265
|
-
readonly type: 'boolean';
|
|
34266
|
-
};
|
|
34267
34279
|
readonly hideSidebar: {
|
|
34268
34280
|
readonly type: 'boolean';
|
|
34269
34281
|
};
|
|
@@ -36082,6 +36094,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
36082
36094
|
readonly jsonSamplesDepth: {
|
|
36083
36095
|
readonly type: 'number';
|
|
36084
36096
|
};
|
|
36097
|
+
readonly excludeFromSearch: {
|
|
36098
|
+
readonly type: 'boolean';
|
|
36099
|
+
};
|
|
36085
36100
|
readonly samplesMaxInlineArgs: {
|
|
36086
36101
|
readonly type: 'number';
|
|
36087
36102
|
};
|
|
@@ -36091,15 +36106,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
36091
36106
|
readonly baseUrlPath: {
|
|
36092
36107
|
readonly type: 'string';
|
|
36093
36108
|
};
|
|
36094
|
-
readonly metadata: {
|
|
36095
|
-
readonly type: 'object';
|
|
36096
|
-
readonly properties: {
|
|
36097
|
-
readonly apiId: {
|
|
36098
|
-
readonly type: 'string';
|
|
36099
|
-
};
|
|
36100
|
-
};
|
|
36101
|
-
readonly additionalProperties: true;
|
|
36102
|
-
};
|
|
36103
36109
|
readonly feedback: {
|
|
36104
36110
|
readonly type: 'object';
|
|
36105
36111
|
readonly properties: {
|
|
@@ -36756,6 +36762,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
36756
36762
|
readonly showBuiltInDirectives: {
|
|
36757
36763
|
readonly type: 'boolean';
|
|
36758
36764
|
};
|
|
36765
|
+
readonly excludeFromSearch: {
|
|
36766
|
+
readonly type: 'boolean';
|
|
36767
|
+
};
|
|
36759
36768
|
readonly info: {
|
|
36760
36769
|
readonly type: 'object';
|
|
36761
36770
|
readonly properties: {
|
|
@@ -41258,9 +41267,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
41258
41267
|
readonly hideLoading: {
|
|
41259
41268
|
readonly type: 'boolean';
|
|
41260
41269
|
};
|
|
41261
|
-
readonly disableRouter: {
|
|
41262
|
-
readonly type: 'boolean';
|
|
41263
|
-
};
|
|
41264
41270
|
readonly hideSidebar: {
|
|
41265
41271
|
readonly type: 'boolean';
|
|
41266
41272
|
};
|
|
@@ -43470,6 +43476,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
43470
43476
|
readonly showBuiltInDirectives: {
|
|
43471
43477
|
readonly type: 'boolean';
|
|
43472
43478
|
};
|
|
43479
|
+
readonly excludeFromSearch: {
|
|
43480
|
+
readonly type: 'boolean';
|
|
43481
|
+
};
|
|
43473
43482
|
readonly info: {
|
|
43474
43483
|
readonly type: 'object';
|
|
43475
43484
|
readonly properties: {
|
|
@@ -46727,21 +46736,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
46727
46736
|
};
|
|
46728
46737
|
readonly additionalProperties: false;
|
|
46729
46738
|
};
|
|
46730
|
-
readonly gateway: {
|
|
46731
|
-
readonly type: 'object';
|
|
46732
|
-
readonly properties: {
|
|
46733
|
-
readonly hide: {
|
|
46734
|
-
readonly type: 'boolean';
|
|
46735
|
-
};
|
|
46736
|
-
readonly allowedHosts: {
|
|
46737
|
-
readonly type: 'array';
|
|
46738
|
-
readonly items: {
|
|
46739
|
-
readonly type: 'string';
|
|
46740
|
-
};
|
|
46741
|
-
};
|
|
46742
|
-
};
|
|
46743
|
-
readonly additionalProperties: false;
|
|
46744
|
-
};
|
|
46745
46739
|
};
|
|
46746
46740
|
readonly additionalProperties: false;
|
|
46747
46741
|
};
|
|
@@ -47290,6 +47284,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
47290
47284
|
readonly type: 'string';
|
|
47291
47285
|
};
|
|
47292
47286
|
};
|
|
47287
|
+
readonly mcp: {
|
|
47288
|
+
readonly type: 'object';
|
|
47289
|
+
readonly additionalProperties: {
|
|
47290
|
+
readonly type: 'string';
|
|
47291
|
+
};
|
|
47292
|
+
};
|
|
47293
47293
|
};
|
|
47294
47294
|
readonly additionalProperties: false;
|
|
47295
47295
|
};
|
|
@@ -47835,9 +47835,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
47835
47835
|
readonly hideLoading: {
|
|
47836
47836
|
readonly type: 'boolean';
|
|
47837
47837
|
};
|
|
47838
|
-
readonly disableRouter: {
|
|
47839
|
-
readonly type: 'boolean';
|
|
47840
|
-
};
|
|
47841
47838
|
readonly hideSidebar: {
|
|
47842
47839
|
readonly type: 'boolean';
|
|
47843
47840
|
};
|
|
@@ -50047,6 +50044,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
50047
50044
|
readonly showBuiltInDirectives: {
|
|
50048
50045
|
readonly type: 'boolean';
|
|
50049
50046
|
};
|
|
50047
|
+
readonly excludeFromSearch: {
|
|
50048
|
+
readonly type: 'boolean';
|
|
50049
|
+
};
|
|
50050
50050
|
readonly info: {
|
|
50051
50051
|
readonly type: 'object';
|
|
50052
50052
|
readonly properties: {
|
|
@@ -50118,9 +50118,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
50118
50118
|
readonly hideLoading: {
|
|
50119
50119
|
readonly type: 'boolean';
|
|
50120
50120
|
};
|
|
50121
|
-
readonly disableRouter: {
|
|
50122
|
-
readonly type: 'boolean';
|
|
50123
|
-
};
|
|
50124
50121
|
readonly hideSidebar: {
|
|
50125
50122
|
readonly type: 'boolean';
|
|
50126
50123
|
};
|
|
@@ -52330,6 +52327,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
52330
52327
|
readonly showBuiltInDirectives: {
|
|
52331
52328
|
readonly type: 'boolean';
|
|
52332
52329
|
};
|
|
52330
|
+
readonly excludeFromSearch: {
|
|
52331
|
+
readonly type: 'boolean';
|
|
52332
|
+
};
|
|
52333
52333
|
readonly info: {
|
|
52334
52334
|
readonly type: 'object';
|
|
52335
52335
|
readonly properties: {
|
|
@@ -52684,6 +52684,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
52684
52684
|
readonly type: 'string';
|
|
52685
52685
|
};
|
|
52686
52686
|
};
|
|
52687
|
+
readonly mcp: {
|
|
52688
|
+
readonly type: 'object';
|
|
52689
|
+
readonly additionalProperties: {
|
|
52690
|
+
readonly type: 'string';
|
|
52691
|
+
};
|
|
52692
|
+
};
|
|
52687
52693
|
};
|
|
52688
52694
|
readonly additionalProperties: false;
|
|
52689
52695
|
};
|
|
@@ -54309,9 +54315,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
54309
54315
|
readonly hideLoading: {
|
|
54310
54316
|
readonly type: 'boolean';
|
|
54311
54317
|
};
|
|
54312
|
-
readonly disableRouter: {
|
|
54313
|
-
readonly type: 'boolean';
|
|
54314
|
-
};
|
|
54315
54318
|
readonly hideSidebar: {
|
|
54316
54319
|
readonly type: 'boolean';
|
|
54317
54320
|
};
|
|
@@ -56130,6 +56133,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
56130
56133
|
readonly jsonSamplesDepth: {
|
|
56131
56134
|
readonly type: 'number';
|
|
56132
56135
|
};
|
|
56136
|
+
readonly excludeFromSearch: {
|
|
56137
|
+
readonly type: 'boolean';
|
|
56138
|
+
};
|
|
56133
56139
|
readonly samplesMaxInlineArgs: {
|
|
56134
56140
|
readonly type: 'number';
|
|
56135
56141
|
};
|
|
@@ -56139,15 +56145,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
56139
56145
|
readonly baseUrlPath: {
|
|
56140
56146
|
readonly type: 'string';
|
|
56141
56147
|
};
|
|
56142
|
-
readonly metadata: {
|
|
56143
|
-
readonly type: 'object';
|
|
56144
|
-
readonly properties: {
|
|
56145
|
-
readonly apiId: {
|
|
56146
|
-
readonly type: 'string';
|
|
56147
|
-
};
|
|
56148
|
-
};
|
|
56149
|
-
readonly additionalProperties: true;
|
|
56150
|
-
};
|
|
56151
56148
|
readonly feedback: {
|
|
56152
56149
|
readonly type: 'object';
|
|
56153
56150
|
readonly properties: {
|
|
@@ -56804,6 +56801,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
56804
56801
|
readonly showBuiltInDirectives: {
|
|
56805
56802
|
readonly type: 'boolean';
|
|
56806
56803
|
};
|
|
56804
|
+
readonly excludeFromSearch: {
|
|
56805
|
+
readonly type: 'boolean';
|
|
56806
|
+
};
|
|
56807
56807
|
readonly info: {
|
|
56808
56808
|
readonly type: 'object';
|
|
56809
56809
|
readonly properties: {
|
|
@@ -61306,9 +61306,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
61306
61306
|
readonly hideLoading: {
|
|
61307
61307
|
readonly type: 'boolean';
|
|
61308
61308
|
};
|
|
61309
|
-
readonly disableRouter: {
|
|
61310
|
-
readonly type: 'boolean';
|
|
61311
|
-
};
|
|
61312
61309
|
readonly hideSidebar: {
|
|
61313
61310
|
readonly type: 'boolean';
|
|
61314
61311
|
};
|
|
@@ -63518,6 +63515,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
63518
63515
|
readonly showBuiltInDirectives: {
|
|
63519
63516
|
readonly type: 'boolean';
|
|
63520
63517
|
};
|
|
63518
|
+
readonly excludeFromSearch: {
|
|
63519
|
+
readonly type: 'boolean';
|
|
63520
|
+
};
|
|
63521
63521
|
readonly info: {
|
|
63522
63522
|
readonly type: 'object';
|
|
63523
63523
|
readonly properties: {
|
|
@@ -66775,21 +66775,6 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
66775
66775
|
};
|
|
66776
66776
|
readonly additionalProperties: false;
|
|
66777
66777
|
};
|
|
66778
|
-
readonly gateway: {
|
|
66779
|
-
readonly type: 'object';
|
|
66780
|
-
readonly properties: {
|
|
66781
|
-
readonly hide: {
|
|
66782
|
-
readonly type: 'boolean';
|
|
66783
|
-
};
|
|
66784
|
-
readonly allowedHosts: {
|
|
66785
|
-
readonly type: 'array';
|
|
66786
|
-
readonly items: {
|
|
66787
|
-
readonly type: 'string';
|
|
66788
|
-
};
|
|
66789
|
-
};
|
|
66790
|
-
};
|
|
66791
|
-
readonly additionalProperties: false;
|
|
66792
|
-
};
|
|
66793
66778
|
};
|
|
66794
66779
|
readonly additionalProperties: false;
|
|
66795
66780
|
};
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
2
3
|
import type { graphqlConfigSchema } from '../graphql-config-schema.js';
|
|
4
|
+
import type { Schema, ConfigFunction } from '@markdoc/markdoc/dist/src/types.js';
|
|
3
5
|
export type GraphQLConfigTypes = FromSchema<typeof graphqlConfigSchema> & {
|
|
6
|
+
markdocOptions?: {
|
|
7
|
+
tags: Record<string, Schema>;
|
|
8
|
+
nodes: Record<string, Schema>;
|
|
9
|
+
components: Record<string, ComponentType>;
|
|
10
|
+
variables?: Record<string, any>;
|
|
11
|
+
partials?: Record<string, any>;
|
|
12
|
+
functions?: Record<string, ConfigFunction>;
|
|
13
|
+
};
|
|
4
14
|
markdown?: {
|
|
5
15
|
parser?: (md: string) => string;
|
|
6
16
|
highlight?: (code: string, lang: string, options?: Record<string, any>) => string;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { ApiFunctionsContext } from './api-functions-types.js';
|
|
2
|
+
export type HttpMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
|
|
3
|
+
export interface MockSnippetRequest {
|
|
4
|
+
readonly method: HttpMethod;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly params: Record<string, unknown>;
|
|
7
|
+
readonly query: Record<string, unknown>;
|
|
8
|
+
readonly headers: Record<string, string>;
|
|
9
|
+
readonly body?: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface MockSnippetState {
|
|
12
|
+
get<T>(resource: string, id: string | number): Promise<T | null>;
|
|
13
|
+
list<T>(resource: string): Promise<T[]>;
|
|
14
|
+
set<T>(resource: string, id: string | number, value: T): Promise<void>;
|
|
15
|
+
delete(resource: string, id: string | number): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
export interface MockSnippetContext {
|
|
18
|
+
request: MockSnippetRequest;
|
|
19
|
+
state: MockSnippetState;
|
|
20
|
+
}
|
|
21
|
+
export interface MockSnippetResult {
|
|
22
|
+
status: number;
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
body?: unknown;
|
|
25
|
+
}
|
|
26
|
+
export interface MockJsExecutorOptions {
|
|
27
|
+
timeoutMs?: number;
|
|
28
|
+
maxLifetimeMs?: number;
|
|
29
|
+
}
|
|
30
|
+
export interface MockJsExecutor {
|
|
31
|
+
run(snippet: string, context: MockSnippetContext, opts?: MockJsExecutorOptions): Promise<MockSnippetResult>;
|
|
32
|
+
}
|
|
33
|
+
export type MockKey = (string | number)[];
|
|
34
|
+
export interface MockStateSetOptions {
|
|
35
|
+
ttlSeconds?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface MockStateListOptions {
|
|
38
|
+
limit?: number;
|
|
39
|
+
cursor?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface MockStateListItem<T> {
|
|
42
|
+
key: MockKey;
|
|
43
|
+
value: T;
|
|
44
|
+
}
|
|
45
|
+
export interface MockStateListResult<T> {
|
|
46
|
+
items: MockStateListItem<T>[];
|
|
47
|
+
total?: number;
|
|
48
|
+
cursor: string | null;
|
|
49
|
+
}
|
|
50
|
+
export interface MockStateStore {
|
|
51
|
+
get<T>(key: MockKey): Promise<T | null>;
|
|
52
|
+
set<T>(key: MockKey, value: T, opts?: MockStateSetOptions): Promise<void>;
|
|
53
|
+
delete(key: MockKey): Promise<void>;
|
|
54
|
+
list<T>(prefix: MockKey, opts?: MockStateListOptions): Promise<MockStateListResult<T>>;
|
|
55
|
+
}
|
|
56
|
+
export type MockServerRouteContext = ApiFunctionsContext & {
|
|
57
|
+
executor?: MockJsExecutor;
|
|
58
|
+
store?: MockStateStore;
|
|
59
|
+
};
|
|
@@ -109,6 +109,7 @@ export type ResolvedNavItem = ResolvedNavLinkItem | ResolvedNavGroupItem | {
|
|
|
109
109
|
isDefault?: boolean;
|
|
110
110
|
versionFolderId?: string;
|
|
111
111
|
variant?: 'primary' | 'secondary';
|
|
112
|
+
hideWhenEmpty?: boolean;
|
|
112
113
|
separatorLine?: boolean;
|
|
113
114
|
linePosition?: 'top' | 'bottom';
|
|
114
115
|
link?: undefined;
|
|
@@ -37,6 +37,9 @@ export declare const asyncapiConfigSchema: {
|
|
|
37
37
|
readonly jsonSamplesDepth: {
|
|
38
38
|
readonly type: 'number';
|
|
39
39
|
};
|
|
40
|
+
readonly excludeFromSearch: {
|
|
41
|
+
readonly type: 'boolean';
|
|
42
|
+
};
|
|
40
43
|
readonly samplesMaxInlineArgs: {
|
|
41
44
|
readonly type: 'number';
|
|
42
45
|
};
|
|
@@ -46,15 +49,6 @@ export declare const asyncapiConfigSchema: {
|
|
|
46
49
|
readonly baseUrlPath: {
|
|
47
50
|
readonly type: 'string';
|
|
48
51
|
};
|
|
49
|
-
readonly metadata: {
|
|
50
|
-
readonly type: 'object';
|
|
51
|
-
readonly properties: {
|
|
52
|
-
readonly apiId: {
|
|
53
|
-
readonly type: 'string';
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
readonly additionalProperties: true;
|
|
57
|
-
};
|
|
58
52
|
readonly feedback: {
|
|
59
53
|
readonly type: 'object';
|
|
60
54
|
readonly properties: {
|
|
@@ -1162,9 +1162,6 @@ export declare const themeConfigSchema: {
|
|
|
1162
1162
|
readonly hideLoading: {
|
|
1163
1163
|
readonly type: 'boolean';
|
|
1164
1164
|
};
|
|
1165
|
-
readonly disableRouter: {
|
|
1166
|
-
readonly type: 'boolean';
|
|
1167
|
-
};
|
|
1168
1165
|
readonly hideSidebar: {
|
|
1169
1166
|
readonly type: 'boolean';
|
|
1170
1167
|
};
|
|
@@ -2983,6 +2980,9 @@ export declare const themeConfigSchema: {
|
|
|
2983
2980
|
readonly jsonSamplesDepth: {
|
|
2984
2981
|
readonly type: 'number';
|
|
2985
2982
|
};
|
|
2983
|
+
readonly excludeFromSearch: {
|
|
2984
|
+
readonly type: 'boolean';
|
|
2985
|
+
};
|
|
2986
2986
|
readonly samplesMaxInlineArgs: {
|
|
2987
2987
|
readonly type: 'number';
|
|
2988
2988
|
};
|
|
@@ -2992,15 +2992,6 @@ export declare const themeConfigSchema: {
|
|
|
2992
2992
|
readonly baseUrlPath: {
|
|
2993
2993
|
readonly type: 'string';
|
|
2994
2994
|
};
|
|
2995
|
-
readonly metadata: {
|
|
2996
|
-
readonly type: 'object';
|
|
2997
|
-
readonly properties: {
|
|
2998
|
-
readonly apiId: {
|
|
2999
|
-
readonly type: 'string';
|
|
3000
|
-
};
|
|
3001
|
-
};
|
|
3002
|
-
readonly additionalProperties: true;
|
|
3003
|
-
};
|
|
3004
2995
|
readonly feedback: {
|
|
3005
2996
|
readonly type: 'object';
|
|
3006
2997
|
readonly properties: {
|
|
@@ -3657,6 +3648,9 @@ export declare const themeConfigSchema: {
|
|
|
3657
3648
|
readonly showBuiltInDirectives: {
|
|
3658
3649
|
readonly type: 'boolean';
|
|
3659
3650
|
};
|
|
3651
|
+
readonly excludeFromSearch: {
|
|
3652
|
+
readonly type: 'boolean';
|
|
3653
|
+
};
|
|
3660
3654
|
readonly info: {
|
|
3661
3655
|
readonly type: 'object';
|
|
3662
3656
|
readonly properties: {
|