@redocly/config 0.17.0 → 0.18.0
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/default-theme-config-schema.d.ts +36 -4
- package/lib/ex-theme-config-schemas.d.ts +31 -2
- package/lib/ex-theme-config-schemas.js +19 -4
- package/lib/product-override-schema.d.ts +36 -6
- package/lib/root-config-schema.d.ts +110 -16
- package/lib/root-config-schema.js +3 -3
- package/lib/types.d.ts +2 -2
- package/lib-esm/default-theme-config-schema.d.ts +36 -4
- package/lib-esm/ex-theme-config-schemas.d.ts +31 -2
- package/lib-esm/ex-theme-config-schemas.js +18 -3
- package/lib-esm/product-override-schema.d.ts +36 -6
- package/lib-esm/root-config-schema.d.ts +280 -186
- package/lib-esm/root-config-schema.js +2 -2
- package/lib-esm/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -821,8 +821,18 @@ export declare const themeConfigSchema: {
|
|
|
821
821
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
822
822
|
readonly default: "flexsearch";
|
|
823
823
|
};
|
|
824
|
-
readonly
|
|
825
|
-
readonly type: "
|
|
824
|
+
readonly ai: {
|
|
825
|
+
readonly type: "object";
|
|
826
|
+
readonly properties: {
|
|
827
|
+
readonly hide: {
|
|
828
|
+
readonly type: "boolean";
|
|
829
|
+
readonly default: false;
|
|
830
|
+
};
|
|
831
|
+
readonly prompt: {
|
|
832
|
+
readonly type: "string";
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
readonly additionalProperties: false;
|
|
826
836
|
};
|
|
827
837
|
readonly facets: {
|
|
828
838
|
readonly type: "array";
|
|
@@ -3918,6 +3928,12 @@ export declare const themeConfigSchema: {
|
|
|
3918
3928
|
readonly additionalProperties: false;
|
|
3919
3929
|
};
|
|
3920
3930
|
};
|
|
3931
|
+
readonly ignore: {
|
|
3932
|
+
readonly type: "array";
|
|
3933
|
+
readonly items: {
|
|
3934
|
+
readonly type: "string";
|
|
3935
|
+
};
|
|
3936
|
+
};
|
|
3921
3937
|
};
|
|
3922
3938
|
};
|
|
3923
3939
|
};
|
|
@@ -4747,8 +4763,18 @@ export declare const closedThemeConfigSchema: {
|
|
|
4747
4763
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
4748
4764
|
readonly default: "flexsearch";
|
|
4749
4765
|
};
|
|
4750
|
-
readonly
|
|
4751
|
-
readonly type: "
|
|
4766
|
+
readonly ai: {
|
|
4767
|
+
readonly type: "object";
|
|
4768
|
+
readonly properties: {
|
|
4769
|
+
readonly hide: {
|
|
4770
|
+
readonly type: "boolean";
|
|
4771
|
+
readonly default: false;
|
|
4772
|
+
};
|
|
4773
|
+
readonly prompt: {
|
|
4774
|
+
readonly type: "string";
|
|
4775
|
+
};
|
|
4776
|
+
};
|
|
4777
|
+
readonly additionalProperties: false;
|
|
4752
4778
|
};
|
|
4753
4779
|
readonly facets: {
|
|
4754
4780
|
readonly type: "array";
|
|
@@ -7844,6 +7870,12 @@ export declare const closedThemeConfigSchema: {
|
|
|
7844
7870
|
readonly additionalProperties: false;
|
|
7845
7871
|
};
|
|
7846
7872
|
};
|
|
7873
|
+
readonly ignore: {
|
|
7874
|
+
readonly type: "array";
|
|
7875
|
+
readonly items: {
|
|
7876
|
+
readonly type: "string";
|
|
7877
|
+
};
|
|
7878
|
+
};
|
|
7847
7879
|
};
|
|
7848
7880
|
};
|
|
7849
7881
|
};
|
|
@@ -187,6 +187,19 @@ export declare const productConfigSchema: {
|
|
|
187
187
|
readonly additionalProperties: false;
|
|
188
188
|
readonly required: readonly ["name", "folder"];
|
|
189
189
|
};
|
|
190
|
+
export declare const aiSearchConfigSchema: {
|
|
191
|
+
readonly type: "object";
|
|
192
|
+
readonly properties: {
|
|
193
|
+
readonly hide: {
|
|
194
|
+
readonly type: "boolean";
|
|
195
|
+
readonly default: false;
|
|
196
|
+
};
|
|
197
|
+
readonly prompt: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly additionalProperties: false;
|
|
202
|
+
};
|
|
190
203
|
export declare const searchFacetsConfigSchema: {
|
|
191
204
|
readonly type: "array";
|
|
192
205
|
readonly items: {
|
|
@@ -801,8 +814,18 @@ export declare const searchConfigSchema: {
|
|
|
801
814
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
802
815
|
readonly default: "flexsearch";
|
|
803
816
|
};
|
|
804
|
-
readonly
|
|
805
|
-
readonly type: "
|
|
817
|
+
readonly ai: {
|
|
818
|
+
readonly type: "object";
|
|
819
|
+
readonly properties: {
|
|
820
|
+
readonly hide: {
|
|
821
|
+
readonly type: "boolean";
|
|
822
|
+
readonly default: false;
|
|
823
|
+
};
|
|
824
|
+
readonly prompt: {
|
|
825
|
+
readonly type: "string";
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
readonly additionalProperties: false;
|
|
806
829
|
};
|
|
807
830
|
readonly facets: {
|
|
808
831
|
readonly type: "array";
|
|
@@ -4039,5 +4062,11 @@ export declare const scorecardConfigSchema: {
|
|
|
4039
4062
|
readonly additionalProperties: false;
|
|
4040
4063
|
};
|
|
4041
4064
|
};
|
|
4065
|
+
readonly ignore: {
|
|
4066
|
+
readonly type: "array";
|
|
4067
|
+
readonly items: {
|
|
4068
|
+
readonly type: "string";
|
|
4069
|
+
};
|
|
4070
|
+
};
|
|
4042
4071
|
};
|
|
4043
4072
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.scorecardConfigSchema = exports.catalogsConfigSchema = exports.catalogSchema = exports.catalogFilterSchema = exports.breadcrumbsConfigSchema = exports.versionPickerConfigSchema = exports.userMenuConfigSchema = exports.analyticsConfigSchema = exports.googleAnalyticsConfigSchema = exports.productGoogleAnalyticsConfigSchema = exports.gtmAnalyticsConfigSchema = exports.segmentAnalyticsConfigSchema = exports.rudderstackAnalyticsConfigSchema = exports.heapAnalyticsConfigSchema = exports.fullstoryAnalyticsConfigSchema = exports.amplitudeAnalyticsConfigSchema = exports.openapiConfigSchema = exports.markdownConfigSchema = exports.codeSnippetConfigSchema = exports.navigationConfigSchema = exports.colorModeConfigSchema = exports.searchConfigSchema = exports.linksConfigSchema = exports.scriptsConfigSchema = exports.sidebarConfigSchema = exports.footerConfigSchema = exports.productsConfigSchema = exports.navbarConfigSchema = exports.logoConfigSchema = exports.searchFacetsConfigSchema = exports.productConfigSchema = exports.navItemsSchema = void 0;
|
|
3
|
+
exports.scorecardConfigSchema = exports.catalogsConfigSchema = exports.catalogSchema = exports.catalogFilterSchema = exports.breadcrumbsConfigSchema = exports.versionPickerConfigSchema = exports.userMenuConfigSchema = exports.analyticsConfigSchema = exports.googleAnalyticsConfigSchema = exports.productGoogleAnalyticsConfigSchema = exports.gtmAnalyticsConfigSchema = exports.segmentAnalyticsConfigSchema = exports.rudderstackAnalyticsConfigSchema = exports.heapAnalyticsConfigSchema = exports.fullstoryAnalyticsConfigSchema = exports.amplitudeAnalyticsConfigSchema = exports.openapiConfigSchema = exports.markdownConfigSchema = exports.codeSnippetConfigSchema = exports.navigationConfigSchema = exports.colorModeConfigSchema = exports.searchConfigSchema = exports.linksConfigSchema = exports.scriptsConfigSchema = exports.sidebarConfigSchema = exports.footerConfigSchema = exports.productsConfigSchema = exports.navbarConfigSchema = exports.logoConfigSchema = exports.searchFacetsConfigSchema = exports.aiSearchConfigSchema = exports.productConfigSchema = exports.navItemsSchema = void 0;
|
|
4
4
|
const redoc_config_schema_1 = require("./redoc-config-schema");
|
|
5
5
|
const reference_docs_config_schema_1 = require("./reference-docs-config-schema");
|
|
6
6
|
const hideConfigSchema = {
|
|
@@ -80,6 +80,19 @@ exports.productConfigSchema = {
|
|
|
80
80
|
additionalProperties: false,
|
|
81
81
|
required: ['name', 'folder'],
|
|
82
82
|
};
|
|
83
|
+
exports.aiSearchConfigSchema = {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
hide: {
|
|
87
|
+
type: 'boolean',
|
|
88
|
+
default: false,
|
|
89
|
+
},
|
|
90
|
+
prompt: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
additionalProperties: false,
|
|
95
|
+
};
|
|
83
96
|
exports.searchFacetsConfigSchema = {
|
|
84
97
|
type: 'array',
|
|
85
98
|
items: {
|
|
@@ -179,9 +192,7 @@ exports.searchConfigSchema = {
|
|
|
179
192
|
type: 'string',
|
|
180
193
|
enum: ['flexsearch', 'typesense'],
|
|
181
194
|
default: 'flexsearch',
|
|
182
|
-
},
|
|
183
|
-
type: 'boolean',
|
|
184
|
-
}, facets: exports.searchFacetsConfigSchema, placement: {
|
|
195
|
+
}, ai: exports.aiSearchConfigSchema, facets: exports.searchFacetsConfigSchema, placement: {
|
|
185
196
|
type: 'string',
|
|
186
197
|
default: 'navbar',
|
|
187
198
|
}, shortcuts: {
|
|
@@ -575,6 +586,10 @@ exports.scorecardConfigSchema = {
|
|
|
575
586
|
additionalProperties: false,
|
|
576
587
|
},
|
|
577
588
|
},
|
|
589
|
+
ignore: {
|
|
590
|
+
type: 'array',
|
|
591
|
+
items: { type: 'string' },
|
|
592
|
+
},
|
|
578
593
|
},
|
|
579
594
|
};
|
|
580
595
|
//# sourceMappingURL=ex-theme-config-schemas.js.map
|
|
@@ -426,8 +426,18 @@ export declare const productThemeOverrideSchema: {
|
|
|
426
426
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
427
427
|
readonly default: "flexsearch";
|
|
428
428
|
};
|
|
429
|
-
readonly
|
|
430
|
-
readonly type: "
|
|
429
|
+
readonly ai: {
|
|
430
|
+
readonly type: "object";
|
|
431
|
+
readonly properties: {
|
|
432
|
+
readonly hide: {
|
|
433
|
+
readonly type: "boolean";
|
|
434
|
+
readonly default: false;
|
|
435
|
+
};
|
|
436
|
+
readonly prompt: {
|
|
437
|
+
readonly type: "string";
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
readonly additionalProperties: false;
|
|
431
441
|
};
|
|
432
442
|
readonly facets: {
|
|
433
443
|
readonly type: "array";
|
|
@@ -7502,8 +7512,18 @@ export declare const productConfigOverrideSchema: {
|
|
|
7502
7512
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
7503
7513
|
readonly default: "flexsearch";
|
|
7504
7514
|
};
|
|
7505
|
-
readonly
|
|
7506
|
-
readonly type: "
|
|
7515
|
+
readonly ai: {
|
|
7516
|
+
readonly type: "object";
|
|
7517
|
+
readonly properties: {
|
|
7518
|
+
readonly hide: {
|
|
7519
|
+
readonly type: "boolean";
|
|
7520
|
+
readonly default: false;
|
|
7521
|
+
};
|
|
7522
|
+
readonly prompt: {
|
|
7523
|
+
readonly type: "string";
|
|
7524
|
+
};
|
|
7525
|
+
};
|
|
7526
|
+
readonly additionalProperties: false;
|
|
7507
7527
|
};
|
|
7508
7528
|
readonly facets: {
|
|
7509
7529
|
readonly type: "array";
|
|
@@ -10129,8 +10149,18 @@ export declare const productConfigOverrideSchema: {
|
|
|
10129
10149
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
10130
10150
|
readonly default: "flexsearch";
|
|
10131
10151
|
};
|
|
10132
|
-
readonly
|
|
10133
|
-
readonly type: "
|
|
10152
|
+
readonly ai: {
|
|
10153
|
+
readonly type: "object";
|
|
10154
|
+
readonly properties: {
|
|
10155
|
+
readonly hide: {
|
|
10156
|
+
readonly type: "boolean";
|
|
10157
|
+
readonly default: false;
|
|
10158
|
+
};
|
|
10159
|
+
readonly prompt: {
|
|
10160
|
+
readonly type: "string";
|
|
10161
|
+
};
|
|
10162
|
+
};
|
|
10163
|
+
readonly additionalProperties: false;
|
|
10134
10164
|
};
|
|
10135
10165
|
readonly facets: {
|
|
10136
10166
|
readonly type: "array";
|
|
@@ -298,7 +298,7 @@ export declare const authProviderConfigSchema: {
|
|
|
298
298
|
readonly propertyName: "type";
|
|
299
299
|
};
|
|
300
300
|
};
|
|
301
|
-
export declare const
|
|
301
|
+
export declare const ssoDirectConfigSchema: {
|
|
302
302
|
readonly type: "object";
|
|
303
303
|
readonly additionalProperties: {
|
|
304
304
|
readonly oneOf: readonly [{
|
|
@@ -10156,7 +10156,7 @@ export declare const redoclyConfigSchema: {
|
|
|
10156
10156
|
readonly type: "object";
|
|
10157
10157
|
readonly additionalProperties: true;
|
|
10158
10158
|
};
|
|
10159
|
-
readonly
|
|
10159
|
+
readonly ssoDirect: {
|
|
10160
10160
|
readonly type: "object";
|
|
10161
10161
|
readonly additionalProperties: {
|
|
10162
10162
|
readonly oneOf: readonly [{
|
|
@@ -11416,8 +11416,18 @@ export declare const redoclyConfigSchema: {
|
|
|
11416
11416
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
11417
11417
|
readonly default: "flexsearch";
|
|
11418
11418
|
};
|
|
11419
|
-
readonly
|
|
11420
|
-
readonly type: "
|
|
11419
|
+
readonly ai: {
|
|
11420
|
+
readonly type: "object";
|
|
11421
|
+
readonly properties: {
|
|
11422
|
+
readonly hide: {
|
|
11423
|
+
readonly type: "boolean";
|
|
11424
|
+
readonly default: false;
|
|
11425
|
+
};
|
|
11426
|
+
readonly prompt: {
|
|
11427
|
+
readonly type: "string";
|
|
11428
|
+
};
|
|
11429
|
+
};
|
|
11430
|
+
readonly additionalProperties: false;
|
|
11421
11431
|
};
|
|
11422
11432
|
readonly facets: {
|
|
11423
11433
|
readonly type: "array";
|
|
@@ -14513,6 +14523,12 @@ export declare const redoclyConfigSchema: {
|
|
|
14513
14523
|
readonly additionalProperties: false;
|
|
14514
14524
|
};
|
|
14515
14525
|
};
|
|
14526
|
+
readonly ignore: {
|
|
14527
|
+
readonly type: "array";
|
|
14528
|
+
readonly items: {
|
|
14529
|
+
readonly type: "string";
|
|
14530
|
+
};
|
|
14531
|
+
};
|
|
14516
14532
|
};
|
|
14517
14533
|
};
|
|
14518
14534
|
};
|
|
@@ -15352,8 +15368,18 @@ export declare const redoclyConfigSchema: {
|
|
|
15352
15368
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
15353
15369
|
readonly default: "flexsearch";
|
|
15354
15370
|
};
|
|
15355
|
-
readonly
|
|
15356
|
-
readonly type: "
|
|
15371
|
+
readonly ai: {
|
|
15372
|
+
readonly type: "object";
|
|
15373
|
+
readonly properties: {
|
|
15374
|
+
readonly hide: {
|
|
15375
|
+
readonly type: "boolean";
|
|
15376
|
+
readonly default: false;
|
|
15377
|
+
};
|
|
15378
|
+
readonly prompt: {
|
|
15379
|
+
readonly type: "string";
|
|
15380
|
+
};
|
|
15381
|
+
};
|
|
15382
|
+
readonly additionalProperties: false;
|
|
15357
15383
|
};
|
|
15358
15384
|
readonly facets: {
|
|
15359
15385
|
readonly type: "array";
|
|
@@ -18449,6 +18475,12 @@ export declare const redoclyConfigSchema: {
|
|
|
18449
18475
|
readonly additionalProperties: false;
|
|
18450
18476
|
};
|
|
18451
18477
|
};
|
|
18478
|
+
readonly ignore: {
|
|
18479
|
+
readonly type: "array";
|
|
18480
|
+
readonly items: {
|
|
18481
|
+
readonly type: "string";
|
|
18482
|
+
};
|
|
18483
|
+
};
|
|
18452
18484
|
};
|
|
18453
18485
|
};
|
|
18454
18486
|
};
|
|
@@ -19136,8 +19168,17 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
19136
19168
|
enum: ("flexsearch" | "typesense")[];
|
|
19137
19169
|
type: "string";
|
|
19138
19170
|
};
|
|
19139
|
-
|
|
19140
|
-
|
|
19171
|
+
ai: {
|
|
19172
|
+
properties: {
|
|
19173
|
+
hide: {
|
|
19174
|
+
type: "boolean";
|
|
19175
|
+
};
|
|
19176
|
+
prompt: {
|
|
19177
|
+
type: "string";
|
|
19178
|
+
};
|
|
19179
|
+
};
|
|
19180
|
+
additionalProperties: false;
|
|
19181
|
+
type: "object";
|
|
19141
19182
|
};
|
|
19142
19183
|
facets: {
|
|
19143
19184
|
items: {
|
|
@@ -21554,6 +21595,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
21554
21595
|
};
|
|
21555
21596
|
scorecard: {
|
|
21556
21597
|
properties: {
|
|
21598
|
+
ignore: {
|
|
21599
|
+
items: {
|
|
21600
|
+
type: "string";
|
|
21601
|
+
};
|
|
21602
|
+
type: "array";
|
|
21603
|
+
};
|
|
21557
21604
|
ignoreNonCompliant: {
|
|
21558
21605
|
type: "boolean";
|
|
21559
21606
|
};
|
|
@@ -25697,7 +25744,7 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
25697
25744
|
additionalProperties: true;
|
|
25698
25745
|
type: "object";
|
|
25699
25746
|
};
|
|
25700
|
-
|
|
25747
|
+
ssoDirect: {
|
|
25701
25748
|
additionalProperties: {
|
|
25702
25749
|
oneOf: ({
|
|
25703
25750
|
properties: {
|
|
@@ -26394,8 +26441,17 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
26394
26441
|
enum: ("flexsearch" | "typesense")[];
|
|
26395
26442
|
type: "string";
|
|
26396
26443
|
};
|
|
26397
|
-
|
|
26398
|
-
|
|
26444
|
+
ai: {
|
|
26445
|
+
properties: {
|
|
26446
|
+
hide: {
|
|
26447
|
+
type: "boolean";
|
|
26448
|
+
};
|
|
26449
|
+
prompt: {
|
|
26450
|
+
type: "string";
|
|
26451
|
+
};
|
|
26452
|
+
};
|
|
26453
|
+
additionalProperties: false;
|
|
26454
|
+
type: "object";
|
|
26399
26455
|
};
|
|
26400
26456
|
facets: {
|
|
26401
26457
|
items: {
|
|
@@ -28812,6 +28868,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
28812
28868
|
};
|
|
28813
28869
|
scorecard: {
|
|
28814
28870
|
properties: {
|
|
28871
|
+
ignore: {
|
|
28872
|
+
items: {
|
|
28873
|
+
type: "string";
|
|
28874
|
+
};
|
|
28875
|
+
type: "array";
|
|
28876
|
+
};
|
|
28815
28877
|
ignoreNonCompliant: {
|
|
28816
28878
|
type: "boolean";
|
|
28817
28879
|
};
|
|
@@ -33539,7 +33601,7 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
33539
33601
|
readonly type: "object";
|
|
33540
33602
|
readonly additionalProperties: true;
|
|
33541
33603
|
};
|
|
33542
|
-
readonly
|
|
33604
|
+
readonly ssoDirect: {
|
|
33543
33605
|
readonly type: "object";
|
|
33544
33606
|
readonly additionalProperties: {
|
|
33545
33607
|
readonly oneOf: readonly [{
|
|
@@ -34799,8 +34861,18 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
34799
34861
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
34800
34862
|
readonly default: "flexsearch";
|
|
34801
34863
|
};
|
|
34802
|
-
readonly
|
|
34803
|
-
readonly type: "
|
|
34864
|
+
readonly ai: {
|
|
34865
|
+
readonly type: "object";
|
|
34866
|
+
readonly properties: {
|
|
34867
|
+
readonly hide: {
|
|
34868
|
+
readonly type: "boolean";
|
|
34869
|
+
readonly default: false;
|
|
34870
|
+
};
|
|
34871
|
+
readonly prompt: {
|
|
34872
|
+
readonly type: "string";
|
|
34873
|
+
};
|
|
34874
|
+
};
|
|
34875
|
+
readonly additionalProperties: false;
|
|
34804
34876
|
};
|
|
34805
34877
|
readonly facets: {
|
|
34806
34878
|
readonly type: "array";
|
|
@@ -37896,6 +37968,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
37896
37968
|
readonly additionalProperties: false;
|
|
37897
37969
|
};
|
|
37898
37970
|
};
|
|
37971
|
+
readonly ignore: {
|
|
37972
|
+
readonly type: "array";
|
|
37973
|
+
readonly items: {
|
|
37974
|
+
readonly type: "string";
|
|
37975
|
+
};
|
|
37976
|
+
};
|
|
37899
37977
|
};
|
|
37900
37978
|
};
|
|
37901
37979
|
};
|
|
@@ -38735,8 +38813,18 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
38735
38813
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
38736
38814
|
readonly default: "flexsearch";
|
|
38737
38815
|
};
|
|
38738
|
-
readonly
|
|
38739
|
-
readonly type: "
|
|
38816
|
+
readonly ai: {
|
|
38817
|
+
readonly type: "object";
|
|
38818
|
+
readonly properties: {
|
|
38819
|
+
readonly hide: {
|
|
38820
|
+
readonly type: "boolean";
|
|
38821
|
+
readonly default: false;
|
|
38822
|
+
};
|
|
38823
|
+
readonly prompt: {
|
|
38824
|
+
readonly type: "string";
|
|
38825
|
+
};
|
|
38826
|
+
};
|
|
38827
|
+
readonly additionalProperties: false;
|
|
38740
38828
|
};
|
|
38741
38829
|
readonly facets: {
|
|
38742
38830
|
readonly type: "array";
|
|
@@ -41832,6 +41920,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
41832
41920
|
readonly additionalProperties: false;
|
|
41833
41921
|
};
|
|
41834
41922
|
};
|
|
41923
|
+
readonly ignore: {
|
|
41924
|
+
readonly type: "array";
|
|
41925
|
+
readonly items: {
|
|
41926
|
+
readonly type: "string";
|
|
41927
|
+
};
|
|
41928
|
+
};
|
|
41835
41929
|
};
|
|
41836
41930
|
};
|
|
41837
41931
|
readonly plugins: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.l10nConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.graviteeAdapterAuthIdpSchema = exports.graviteeAdapterAuthStaticSchema = exports.rbacConfigSchema = exports.rbacScopeItemsSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.
|
|
3
|
+
exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.l10nConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.graviteeAdapterAuthIdpSchema = exports.graviteeAdapterAuthStaticSchema = exports.rbacConfigSchema = exports.rbacScopeItemsSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.ssoDirectConfigSchema = exports.authProviderConfigSchema = exports.saml2ProviderConfigSchema = exports.oidcProviderConfigSchema = exports.oidcIssuerMetadataSchema = void 0;
|
|
4
4
|
const constants_1 = require("./constants");
|
|
5
5
|
const default_theme_config_schema_1 = require("./default-theme-config-schema");
|
|
6
6
|
const feedback_config_schema_1 = require("./feedback-config-schema");
|
|
@@ -62,7 +62,7 @@ exports.authProviderConfigSchema = {
|
|
|
62
62
|
oneOf: [exports.oidcProviderConfigSchema, exports.saml2ProviderConfigSchema],
|
|
63
63
|
discriminator: { propertyName: 'type' },
|
|
64
64
|
};
|
|
65
|
-
exports.
|
|
65
|
+
exports.ssoDirectConfigSchema = {
|
|
66
66
|
type: 'object',
|
|
67
67
|
additionalProperties: exports.authProviderConfigSchema,
|
|
68
68
|
};
|
|
@@ -344,7 +344,7 @@ exports.redoclyConfigSchema = {
|
|
|
344
344
|
rules: rulesSchema,
|
|
345
345
|
decorators: { type: 'object', additionalProperties: true },
|
|
346
346
|
preprocessors: { type: 'object', additionalProperties: true },
|
|
347
|
-
|
|
347
|
+
ssoDirect: exports.ssoDirectConfigSchema,
|
|
348
348
|
sso: exports.ssoConfigSchema,
|
|
349
349
|
residency: { type: 'string' },
|
|
350
350
|
developerOnboarding: devOnboardingConfigSchema,
|
package/lib/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
2
|
import type { themeConfigSchema } from './default-theme-config-schema';
|
|
3
3
|
import type { productConfigOverrideSchema } from './product-override-schema';
|
|
4
|
-
import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, l10nConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, saml2ProviderConfigSchema, seoConfigSchema,
|
|
4
|
+
import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, l10nConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoDirectConfigSchema } from './root-config-schema';
|
|
5
5
|
import type { RedocConfigTypes } from './redoc-types';
|
|
6
6
|
import type { GraphQLConfigTypes } from './graphql-types';
|
|
7
7
|
import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from './ex-theme-config-schemas';
|
|
@@ -49,7 +49,7 @@ export type GraviteeAdapterConfig = FromSchema<typeof graviteeAdapterConfigSchem
|
|
|
49
49
|
export type ApigeeAdapterConfig = FromSchema<typeof apigeeXAdapterConfigSchema | typeof apigeeEdgeAdapterConfigSchema>;
|
|
50
50
|
export type ApigeeAdapterAuthOauth2 = FromSchema<typeof apigeeAdapterAuthOauth2Schema>;
|
|
51
51
|
export type ApigeeAdapterAuthServiceAccount = FromSchema<typeof apigeeAdapterAuthServiceAccountSchema>;
|
|
52
|
-
export type SsoConfig = FromSchema<typeof
|
|
52
|
+
export type SsoConfig = FromSchema<typeof ssoDirectConfigSchema>;
|
|
53
53
|
export type L10nConfig = FromSchema<typeof l10nConfigSchema>;
|
|
54
54
|
type BasicApiConfig = FromSchema<typeof apiConfigSchema>;
|
|
55
55
|
export type ApiConfig = BasicApiConfig & {
|
|
@@ -821,8 +821,18 @@ export declare const themeConfigSchema: {
|
|
|
821
821
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
822
822
|
readonly default: "flexsearch";
|
|
823
823
|
};
|
|
824
|
-
readonly
|
|
825
|
-
readonly type: "
|
|
824
|
+
readonly ai: {
|
|
825
|
+
readonly type: "object";
|
|
826
|
+
readonly properties: {
|
|
827
|
+
readonly hide: {
|
|
828
|
+
readonly type: "boolean";
|
|
829
|
+
readonly default: false;
|
|
830
|
+
};
|
|
831
|
+
readonly prompt: {
|
|
832
|
+
readonly type: "string";
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
readonly additionalProperties: false;
|
|
826
836
|
};
|
|
827
837
|
readonly facets: {
|
|
828
838
|
readonly type: "array";
|
|
@@ -3918,6 +3928,12 @@ export declare const themeConfigSchema: {
|
|
|
3918
3928
|
readonly additionalProperties: false;
|
|
3919
3929
|
};
|
|
3920
3930
|
};
|
|
3931
|
+
readonly ignore: {
|
|
3932
|
+
readonly type: "array";
|
|
3933
|
+
readonly items: {
|
|
3934
|
+
readonly type: "string";
|
|
3935
|
+
};
|
|
3936
|
+
};
|
|
3921
3937
|
};
|
|
3922
3938
|
};
|
|
3923
3939
|
};
|
|
@@ -4747,8 +4763,18 @@ export declare const closedThemeConfigSchema: {
|
|
|
4747
4763
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
4748
4764
|
readonly default: "flexsearch";
|
|
4749
4765
|
};
|
|
4750
|
-
readonly
|
|
4751
|
-
readonly type: "
|
|
4766
|
+
readonly ai: {
|
|
4767
|
+
readonly type: "object";
|
|
4768
|
+
readonly properties: {
|
|
4769
|
+
readonly hide: {
|
|
4770
|
+
readonly type: "boolean";
|
|
4771
|
+
readonly default: false;
|
|
4772
|
+
};
|
|
4773
|
+
readonly prompt: {
|
|
4774
|
+
readonly type: "string";
|
|
4775
|
+
};
|
|
4776
|
+
};
|
|
4777
|
+
readonly additionalProperties: false;
|
|
4752
4778
|
};
|
|
4753
4779
|
readonly facets: {
|
|
4754
4780
|
readonly type: "array";
|
|
@@ -7844,6 +7870,12 @@ export declare const closedThemeConfigSchema: {
|
|
|
7844
7870
|
readonly additionalProperties: false;
|
|
7845
7871
|
};
|
|
7846
7872
|
};
|
|
7873
|
+
readonly ignore: {
|
|
7874
|
+
readonly type: "array";
|
|
7875
|
+
readonly items: {
|
|
7876
|
+
readonly type: "string";
|
|
7877
|
+
};
|
|
7878
|
+
};
|
|
7847
7879
|
};
|
|
7848
7880
|
};
|
|
7849
7881
|
};
|
|
@@ -187,6 +187,19 @@ export declare const productConfigSchema: {
|
|
|
187
187
|
readonly additionalProperties: false;
|
|
188
188
|
readonly required: readonly ["name", "folder"];
|
|
189
189
|
};
|
|
190
|
+
export declare const aiSearchConfigSchema: {
|
|
191
|
+
readonly type: "object";
|
|
192
|
+
readonly properties: {
|
|
193
|
+
readonly hide: {
|
|
194
|
+
readonly type: "boolean";
|
|
195
|
+
readonly default: false;
|
|
196
|
+
};
|
|
197
|
+
readonly prompt: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly additionalProperties: false;
|
|
202
|
+
};
|
|
190
203
|
export declare const searchFacetsConfigSchema: {
|
|
191
204
|
readonly type: "array";
|
|
192
205
|
readonly items: {
|
|
@@ -801,8 +814,18 @@ export declare const searchConfigSchema: {
|
|
|
801
814
|
readonly enum: readonly ["flexsearch", "typesense"];
|
|
802
815
|
readonly default: "flexsearch";
|
|
803
816
|
};
|
|
804
|
-
readonly
|
|
805
|
-
readonly type: "
|
|
817
|
+
readonly ai: {
|
|
818
|
+
readonly type: "object";
|
|
819
|
+
readonly properties: {
|
|
820
|
+
readonly hide: {
|
|
821
|
+
readonly type: "boolean";
|
|
822
|
+
readonly default: false;
|
|
823
|
+
};
|
|
824
|
+
readonly prompt: {
|
|
825
|
+
readonly type: "string";
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
readonly additionalProperties: false;
|
|
806
829
|
};
|
|
807
830
|
readonly facets: {
|
|
808
831
|
readonly type: "array";
|
|
@@ -4039,5 +4062,11 @@ export declare const scorecardConfigSchema: {
|
|
|
4039
4062
|
readonly additionalProperties: false;
|
|
4040
4063
|
};
|
|
4041
4064
|
};
|
|
4065
|
+
readonly ignore: {
|
|
4066
|
+
readonly type: "array";
|
|
4067
|
+
readonly items: {
|
|
4068
|
+
readonly type: "string";
|
|
4069
|
+
};
|
|
4070
|
+
};
|
|
4042
4071
|
};
|
|
4043
4072
|
};
|