@redocly/config 0.16.0 → 0.17.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.
@@ -2,8 +2,15 @@ export declare const reuniteConfigSchema: {
2
2
  readonly type: "object";
3
3
  readonly properties: {
4
4
  readonly ignoreLint: {
5
- readonly type: "boolean";
6
- readonly default: false;
5
+ readonly oneOf: readonly [{
6
+ readonly type: "boolean";
7
+ readonly default: false;
8
+ }, {
9
+ readonly type: "object";
10
+ readonly additionalProperties: {
11
+ readonly type: "boolean";
12
+ };
13
+ }];
7
14
  };
8
15
  readonly ignoreLinkChecker: {
9
16
  readonly type: "boolean";
@@ -4,7 +4,15 @@ exports.reuniteConfigSchema = void 0;
4
4
  exports.reuniteConfigSchema = {
5
5
  type: 'object',
6
6
  properties: {
7
- ignoreLint: { type: 'boolean', default: false },
7
+ ignoreLint: {
8
+ oneOf: [
9
+ { type: 'boolean', default: false },
10
+ {
11
+ type: 'object',
12
+ additionalProperties: { type: 'boolean' },
13
+ },
14
+ ],
15
+ },
8
16
  ignoreLinkChecker: { type: 'boolean' },
9
17
  ignoreMarkdocErrors: { type: 'boolean' },
10
18
  },
@@ -14522,8 +14522,15 @@ export declare const redoclyConfigSchema: {
14522
14522
  readonly type: "object";
14523
14523
  readonly properties: {
14524
14524
  readonly ignoreLint: {
14525
- readonly type: "boolean";
14526
- readonly default: false;
14525
+ readonly oneOf: readonly [{
14526
+ readonly type: "boolean";
14527
+ readonly default: false;
14528
+ }, {
14529
+ readonly type: "object";
14530
+ readonly additionalProperties: {
14531
+ readonly type: "boolean";
14532
+ };
14533
+ }];
14527
14534
  };
14528
14535
  readonly ignoreLinkChecker: {
14529
14536
  readonly type: "boolean";
@@ -26118,7 +26125,14 @@ export declare const rootRedoclyConfigSchema: {
26118
26125
  reunite: {
26119
26126
  properties: {
26120
26127
  ignoreLint: {
26121
- type: "boolean";
26128
+ oneOf: ({
26129
+ type: "boolean";
26130
+ } | {
26131
+ additionalProperties: {
26132
+ type: "boolean";
26133
+ };
26134
+ type: "object";
26135
+ })[];
26122
26136
  };
26123
26137
  ignoreLinkChecker: {
26124
26138
  type: "boolean";
@@ -37891,8 +37905,15 @@ export declare const rootRedoclyConfigSchema: {
37891
37905
  readonly type: "object";
37892
37906
  readonly properties: {
37893
37907
  readonly ignoreLint: {
37894
- readonly type: "boolean";
37895
- readonly default: false;
37908
+ readonly oneOf: readonly [{
37909
+ readonly type: "boolean";
37910
+ readonly default: false;
37911
+ }, {
37912
+ readonly type: "object";
37913
+ readonly additionalProperties: {
37914
+ readonly type: "boolean";
37915
+ };
37916
+ }];
37896
37917
  };
37897
37918
  readonly ignoreLinkChecker: {
37898
37919
  readonly type: "boolean";
package/lib/types.d.ts CHANGED
@@ -6,6 +6,7 @@ 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';
8
8
  import type { reasonsSettingsSchema } from './feedback-config-schema';
9
+ import type { reuniteConfigSchema } from './reunite-config-schema';
9
10
  /**
10
11
  * @deprecated left for backwards compatibility. To be removed in Realm 1.0
11
12
  */
@@ -24,6 +25,7 @@ export type GtmAnalyticsConfig = FromSchema<typeof gtmAnalyticsConfigSchema>;
24
25
  export type GoogleAnalyticsConfig = FromSchema<typeof googleAnalyticsConfigSchema>;
25
26
  export type CatalogConfig = FromSchema<typeof catalogSchema>;
26
27
  export type CatalogFilterConfig = FromSchema<typeof catalogFilterSchema>;
28
+ export type ReuniteConfig = FromSchema<typeof reuniteConfigSchema>;
27
29
  export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
28
30
  export type SearchFacetsConfig = FromSchema<typeof searchFacetsConfigSchema>;
29
31
  export type RedoclyConfig = Omit<FromSchema<typeof rootRedoclyConfigSchema>, 'theme' | 'apis'> & {
@@ -2,8 +2,15 @@ export declare const reuniteConfigSchema: {
2
2
  readonly type: "object";
3
3
  readonly properties: {
4
4
  readonly ignoreLint: {
5
- readonly type: "boolean";
6
- readonly default: false;
5
+ readonly oneOf: readonly [{
6
+ readonly type: "boolean";
7
+ readonly default: false;
8
+ }, {
9
+ readonly type: "object";
10
+ readonly additionalProperties: {
11
+ readonly type: "boolean";
12
+ };
13
+ }];
7
14
  };
8
15
  readonly ignoreLinkChecker: {
9
16
  readonly type: "boolean";
@@ -1,7 +1,15 @@
1
1
  export const reuniteConfigSchema = {
2
2
  type: 'object',
3
3
  properties: {
4
- ignoreLint: { type: 'boolean', default: false },
4
+ ignoreLint: {
5
+ oneOf: [
6
+ { type: 'boolean', default: false },
7
+ {
8
+ type: 'object',
9
+ additionalProperties: { type: 'boolean' },
10
+ },
11
+ ],
12
+ },
5
13
  ignoreLinkChecker: { type: 'boolean' },
6
14
  ignoreMarkdocErrors: { type: 'boolean' },
7
15
  },
@@ -14522,8 +14522,15 @@ export declare const redoclyConfigSchema: {
14522
14522
  readonly type: "object";
14523
14523
  readonly properties: {
14524
14524
  readonly ignoreLint: {
14525
- readonly type: "boolean";
14526
- readonly default: false;
14525
+ readonly oneOf: readonly [{
14526
+ readonly type: "boolean";
14527
+ readonly default: false;
14528
+ }, {
14529
+ readonly type: "object";
14530
+ readonly additionalProperties: {
14531
+ readonly type: "boolean";
14532
+ };
14533
+ }];
14527
14534
  };
14528
14535
  readonly ignoreLinkChecker: {
14529
14536
  readonly type: "boolean";
@@ -18680,6 +18687,16 @@ export declare const rootRedoclyConfigSchema: {
18680
18687
  };
18681
18688
  settings: {
18682
18689
  properties: {
18690
+ label: {
18691
+ type: "string";
18692
+ };
18693
+ items: {
18694
+ items: {
18695
+ type: "string";
18696
+ };
18697
+ type: "array";
18698
+ minItems: 1;
18699
+ };
18683
18700
  comment: {
18684
18701
  properties: {
18685
18702
  label: {
@@ -18839,16 +18856,6 @@ export declare const rootRedoclyConfigSchema: {
18839
18856
  additionalProperties: false;
18840
18857
  type: "object";
18841
18858
  };
18842
- label: {
18843
- type: "string";
18844
- };
18845
- items: {
18846
- items: {
18847
- type: "string";
18848
- };
18849
- type: "array";
18850
- minItems: 1;
18851
- };
18852
18859
  submitText: {
18853
18860
  type: "string";
18854
18861
  };
@@ -19135,13 +19142,13 @@ export declare const rootRedoclyConfigSchema: {
19135
19142
  facets: {
19136
19143
  items: {
19137
19144
  properties: {
19138
- name: {
19139
- type: "string";
19140
- };
19141
19145
  type: {
19142
19146
  enum: ("multi-select" | "select" | "tags")[];
19143
19147
  type: "string";
19144
19148
  };
19149
+ name: {
19150
+ type: "string";
19151
+ };
19145
19152
  field: {
19146
19153
  type: "string";
19147
19154
  };
@@ -19151,7 +19158,7 @@ export declare const rootRedoclyConfigSchema: {
19151
19158
  };
19152
19159
  additionalProperties: false;
19153
19160
  type: "object";
19154
- required: ("name" | "type" | "field")[];
19161
+ required: ("type" | "name" | "field")[];
19155
19162
  };
19156
19163
  type: "array";
19157
19164
  };
@@ -19551,6 +19558,9 @@ export declare const rootRedoclyConfigSchema: {
19551
19558
  };
19552
19559
  layout: {
19553
19560
  properties: {
19561
+ showDarkRightPanel: {
19562
+ type: "boolean";
19563
+ };
19554
19564
  stacked: {
19555
19565
  properties: {
19556
19566
  maxWidth: {
@@ -19603,9 +19613,6 @@ export declare const rootRedoclyConfigSchema: {
19603
19613
  };
19604
19614
  type: "object";
19605
19615
  };
19606
- showDarkRightPanel: {
19607
- type: "boolean";
19608
- };
19609
19616
  };
19610
19617
  type: "object";
19611
19618
  };
@@ -20061,7 +20068,7 @@ export declare const rootRedoclyConfigSchema: {
20061
20068
  items: {
20062
20069
  properties: {
20063
20070
  lang: {
20064
- enum: ("curl" | "JavaScript" | "Node.js" | "Python" | "Java8+Apache" | "Java" | "C#" | "PHP" | "Go" | "Ruby" | "R")[];
20071
+ enum: ("curl" | "C#" | "Go" | "Java" | "Java8+Apache" | "JavaScript" | "Node.js" | "PHP" | "Python" | "R" | "Ruby")[];
20065
20072
  };
20066
20073
  label: {
20067
20074
  type: "string";
@@ -20377,6 +20384,16 @@ export declare const rootRedoclyConfigSchema: {
20377
20384
  };
20378
20385
  settings: {
20379
20386
  properties: {
20387
+ label: {
20388
+ type: "string";
20389
+ };
20390
+ items: {
20391
+ items: {
20392
+ type: "string";
20393
+ };
20394
+ type: "array";
20395
+ minItems: 1;
20396
+ };
20380
20397
  comment: {
20381
20398
  properties: {
20382
20399
  label: {
@@ -20536,16 +20553,6 @@ export declare const rootRedoclyConfigSchema: {
20536
20553
  additionalProperties: false;
20537
20554
  type: "object";
20538
20555
  };
20539
- label: {
20540
- type: "string";
20541
- };
20542
- items: {
20543
- items: {
20544
- type: "string";
20545
- };
20546
- type: "array";
20547
- minItems: 1;
20548
- };
20549
20556
  submitText: {
20550
20557
  type: "string";
20551
20558
  };
@@ -20572,10 +20579,10 @@ export declare const rootRedoclyConfigSchema: {
20572
20579
  };
20573
20580
  mockServer: {
20574
20581
  properties: {
20575
- url: {
20582
+ description: {
20576
20583
  type: "string";
20577
20584
  };
20578
- description: {
20585
+ url: {
20579
20586
  type: "string";
20580
20587
  };
20581
20588
  position: {
@@ -20616,10 +20623,10 @@ export declare const rootRedoclyConfigSchema: {
20616
20623
  downloadUrls: {
20617
20624
  items: {
20618
20625
  properties: {
20619
- url: {
20626
+ title: {
20620
20627
  type: "string";
20621
20628
  };
20622
- title: {
20629
+ url: {
20623
20630
  type: "string";
20624
20631
  };
20625
20632
  };
@@ -20692,7 +20699,7 @@ export declare const rootRedoclyConfigSchema: {
20692
20699
  items: {
20693
20700
  properties: {
20694
20701
  lang: {
20695
- enum: ("curl" | "JavaScript" | "Node.js" | "Python" | "Java8+Apache" | "Java" | "C#" | "C#+Newtonsoft" | "PHP" | "Go" | "Ruby" | "R" | "Payload")[];
20702
+ enum: ("curl" | "C#" | "Go" | "Java" | "Java8+Apache" | "JavaScript" | "Node.js" | "PHP" | "Python" | "R" | "Ruby" | "C#+Newtonsoft" | "Payload")[];
20696
20703
  type: "string";
20697
20704
  };
20698
20705
  label: {
@@ -20762,14 +20769,14 @@ export declare const rootRedoclyConfigSchema: {
20762
20769
  groups: {
20763
20770
  items: {
20764
20771
  properties: {
20765
- name: {
20766
- type: "string";
20767
- };
20768
20772
  items: {
20769
20773
  properties: any;
20770
20774
  additionalProperties: false;
20771
20775
  type: "object";
20772
20776
  };
20777
+ name: {
20778
+ type: "string";
20779
+ };
20773
20780
  queries: {
20774
20781
  properties: any;
20775
20782
  additionalProperties: false;
@@ -20852,6 +20859,16 @@ export declare const rootRedoclyConfigSchema: {
20852
20859
  };
20853
20860
  settings: {
20854
20861
  properties: {
20862
+ label: {
20863
+ type: "string";
20864
+ };
20865
+ items: {
20866
+ items: {
20867
+ type: "string";
20868
+ };
20869
+ type: "array";
20870
+ minItems: 1;
20871
+ };
20855
20872
  comment: {
20856
20873
  properties: {
20857
20874
  label: {
@@ -21011,16 +21028,6 @@ export declare const rootRedoclyConfigSchema: {
21011
21028
  additionalProperties: false;
21012
21029
  type: "object";
21013
21030
  };
21014
- label: {
21015
- type: "string";
21016
- };
21017
- items: {
21018
- items: {
21019
- type: "string";
21020
- };
21021
- type: "array";
21022
- minItems: 1;
21023
- };
21024
21031
  submitText: {
21025
21032
  type: "string";
21026
21033
  };
@@ -21564,10 +21571,10 @@ export declare const rootRedoclyConfigSchema: {
21564
21571
  levels: {
21565
21572
  items: {
21566
21573
  properties: {
21567
- name: {
21574
+ color: {
21568
21575
  type: "string";
21569
21576
  };
21570
- color: {
21577
+ name: {
21571
21578
  type: "string";
21572
21579
  };
21573
21580
  rules: {
@@ -21858,6 +21865,16 @@ export declare const rootRedoclyConfigSchema: {
21858
21865
  };
21859
21866
  settings: {
21860
21867
  properties: {
21868
+ label: {
21869
+ type: "string";
21870
+ };
21871
+ items: {
21872
+ items: {
21873
+ type: "string";
21874
+ };
21875
+ type: "array";
21876
+ minItems: 1;
21877
+ };
21861
21878
  comment: {
21862
21879
  properties: {
21863
21880
  label: {
@@ -22017,16 +22034,6 @@ export declare const rootRedoclyConfigSchema: {
22017
22034
  additionalProperties: false;
22018
22035
  type: "object";
22019
22036
  };
22020
- label: {
22021
- type: "string";
22022
- };
22023
- items: {
22024
- items: {
22025
- type: "string";
22026
- };
22027
- type: "array";
22028
- minItems: 1;
22029
- };
22030
22037
  submitText: {
22031
22038
  type: "string";
22032
22039
  };
@@ -22187,16 +22194,16 @@ export declare const rootRedoclyConfigSchema: {
22187
22194
  additionalProperties: {
22188
22195
  items: {
22189
22196
  properties: {
22190
- name: {
22197
+ value: {
22191
22198
  type: "string";
22192
22199
  };
22193
- value: {
22200
+ name: {
22194
22201
  type: "string";
22195
22202
  };
22196
22203
  };
22197
22204
  additionalProperties: false;
22198
22205
  type: "object";
22199
- required: ("name" | "value")[];
22206
+ required: ("value" | "name")[];
22200
22207
  };
22201
22208
  type: "array";
22202
22209
  };
@@ -22204,12 +22211,12 @@ export declare const rootRedoclyConfigSchema: {
22204
22211
  };
22205
22212
  mockServer: {
22206
22213
  properties: {
22207
- off: {
22208
- type: "boolean";
22209
- };
22210
22214
  description: {
22211
22215
  type: "string";
22212
22216
  };
22217
+ off: {
22218
+ type: "boolean";
22219
+ };
22213
22220
  position: {
22214
22221
  enum: ("first" | "last" | "replace" | "off")[];
22215
22222
  type: "string";
@@ -22432,6 +22439,9 @@ export declare const rootRedoclyConfigSchema: {
22432
22439
  };
22433
22440
  layout: {
22434
22441
  properties: {
22442
+ showDarkRightPanel: {
22443
+ type: "boolean";
22444
+ };
22435
22445
  stacked: {
22436
22446
  properties: {
22437
22447
  maxWidth: {
@@ -22484,9 +22494,6 @@ export declare const rootRedoclyConfigSchema: {
22484
22494
  };
22485
22495
  type: "object";
22486
22496
  };
22487
- showDarkRightPanel: {
22488
- type: "boolean";
22489
- };
22490
22497
  };
22491
22498
  type: "object";
22492
22499
  };
@@ -22942,7 +22949,7 @@ export declare const rootRedoclyConfigSchema: {
22942
22949
  items: {
22943
22950
  properties: {
22944
22951
  lang: {
22945
- enum: ("curl" | "JavaScript" | "Node.js" | "Python" | "Java8+Apache" | "Java" | "C#" | "PHP" | "Go" | "Ruby" | "R")[];
22952
+ enum: ("curl" | "C#" | "Go" | "Java" | "Java8+Apache" | "JavaScript" | "Node.js" | "PHP" | "Python" | "R" | "Ruby")[];
22946
22953
  };
22947
22954
  label: {
22948
22955
  type: "string";
@@ -23258,6 +23265,16 @@ export declare const rootRedoclyConfigSchema: {
23258
23265
  };
23259
23266
  settings: {
23260
23267
  properties: {
23268
+ label: {
23269
+ type: "string";
23270
+ };
23271
+ items: {
23272
+ items: {
23273
+ type: "string";
23274
+ };
23275
+ type: "array";
23276
+ minItems: 1;
23277
+ };
23261
23278
  comment: {
23262
23279
  properties: {
23263
23280
  label: {
@@ -23417,16 +23434,6 @@ export declare const rootRedoclyConfigSchema: {
23417
23434
  additionalProperties: false;
23418
23435
  type: "object";
23419
23436
  };
23420
- label: {
23421
- type: "string";
23422
- };
23423
- items: {
23424
- items: {
23425
- type: "string";
23426
- };
23427
- type: "array";
23428
- minItems: 1;
23429
- };
23430
23437
  submitText: {
23431
23438
  type: "string";
23432
23439
  };
@@ -23453,10 +23460,10 @@ export declare const rootRedoclyConfigSchema: {
23453
23460
  };
23454
23461
  mockServer: {
23455
23462
  properties: {
23456
- url: {
23463
+ description: {
23457
23464
  type: "string";
23458
23465
  };
23459
- description: {
23466
+ url: {
23460
23467
  type: "string";
23461
23468
  };
23462
23469
  position: {
@@ -23497,10 +23504,10 @@ export declare const rootRedoclyConfigSchema: {
23497
23504
  downloadUrls: {
23498
23505
  items: {
23499
23506
  properties: {
23500
- url: {
23507
+ title: {
23501
23508
  type: "string";
23502
23509
  };
23503
- title: {
23510
+ url: {
23504
23511
  type: "string";
23505
23512
  };
23506
23513
  };
@@ -23573,7 +23580,7 @@ export declare const rootRedoclyConfigSchema: {
23573
23580
  items: {
23574
23581
  properties: {
23575
23582
  lang: {
23576
- enum: ("curl" | "JavaScript" | "Node.js" | "Python" | "Java8+Apache" | "Java" | "C#" | "C#+Newtonsoft" | "PHP" | "Go" | "Ruby" | "R" | "Payload")[];
23583
+ enum: ("curl" | "C#" | "Go" | "Java" | "Java8+Apache" | "JavaScript" | "Node.js" | "PHP" | "Python" | "R" | "Ruby" | "C#+Newtonsoft" | "Payload")[];
23577
23584
  type: "string";
23578
23585
  };
23579
23586
  label: {
@@ -23643,14 +23650,14 @@ export declare const rootRedoclyConfigSchema: {
23643
23650
  groups: {
23644
23651
  items: {
23645
23652
  properties: {
23646
- name: {
23647
- type: "string";
23648
- };
23649
23653
  items: {
23650
23654
  properties: any;
23651
23655
  additionalProperties: false;
23652
23656
  type: "object";
23653
23657
  };
23658
+ name: {
23659
+ type: "string";
23660
+ };
23654
23661
  queries: {
23655
23662
  properties: any;
23656
23663
  additionalProperties: false;
@@ -23733,6 +23740,16 @@ export declare const rootRedoclyConfigSchema: {
23733
23740
  };
23734
23741
  settings: {
23735
23742
  properties: {
23743
+ label: {
23744
+ type: "string";
23745
+ };
23746
+ items: {
23747
+ items: {
23748
+ type: "string";
23749
+ };
23750
+ type: "array";
23751
+ minItems: 1;
23752
+ };
23736
23753
  comment: {
23737
23754
  properties: {
23738
23755
  label: {
@@ -23892,16 +23909,6 @@ export declare const rootRedoclyConfigSchema: {
23892
23909
  additionalProperties: false;
23893
23910
  type: "object";
23894
23911
  };
23895
- label: {
23896
- type: "string";
23897
- };
23898
- items: {
23899
- items: {
23900
- type: "string";
23901
- };
23902
- type: "array";
23903
- minItems: 1;
23904
- };
23905
23912
  submitText: {
23906
23913
  type: "string";
23907
23914
  };
@@ -24164,6 +24171,9 @@ export declare const rootRedoclyConfigSchema: {
24164
24171
  };
24165
24172
  layout: {
24166
24173
  properties: {
24174
+ showDarkRightPanel: {
24175
+ type: "boolean";
24176
+ };
24167
24177
  stacked: {
24168
24178
  properties: {
24169
24179
  maxWidth: {
@@ -24216,9 +24226,6 @@ export declare const rootRedoclyConfigSchema: {
24216
24226
  };
24217
24227
  type: "object";
24218
24228
  };
24219
- showDarkRightPanel: {
24220
- type: "boolean";
24221
- };
24222
24229
  };
24223
24230
  type: "object";
24224
24231
  };
@@ -24674,7 +24681,7 @@ export declare const rootRedoclyConfigSchema: {
24674
24681
  items: {
24675
24682
  properties: {
24676
24683
  lang: {
24677
- enum: ("curl" | "JavaScript" | "Node.js" | "Python" | "Java8+Apache" | "Java" | "C#" | "PHP" | "Go" | "Ruby" | "R")[];
24684
+ enum: ("curl" | "C#" | "Go" | "Java" | "Java8+Apache" | "JavaScript" | "Node.js" | "PHP" | "Python" | "R" | "Ruby")[];
24678
24685
  };
24679
24686
  label: {
24680
24687
  type: "string";
@@ -24990,6 +24997,16 @@ export declare const rootRedoclyConfigSchema: {
24990
24997
  };
24991
24998
  settings: {
24992
24999
  properties: {
25000
+ label: {
25001
+ type: "string";
25002
+ };
25003
+ items: {
25004
+ items: {
25005
+ type: "string";
25006
+ };
25007
+ type: "array";
25008
+ minItems: 1;
25009
+ };
24993
25010
  comment: {
24994
25011
  properties: {
24995
25012
  label: {
@@ -25149,16 +25166,6 @@ export declare const rootRedoclyConfigSchema: {
25149
25166
  additionalProperties: false;
25150
25167
  type: "object";
25151
25168
  };
25152
- label: {
25153
- type: "string";
25154
- };
25155
- items: {
25156
- items: {
25157
- type: "string";
25158
- };
25159
- type: "array";
25160
- minItems: 1;
25161
- };
25162
25169
  submitText: {
25163
25170
  type: "string";
25164
25171
  };
@@ -25185,10 +25192,10 @@ export declare const rootRedoclyConfigSchema: {
25185
25192
  };
25186
25193
  mockServer: {
25187
25194
  properties: {
25188
- url: {
25195
+ description: {
25189
25196
  type: "string";
25190
25197
  };
25191
- description: {
25198
+ url: {
25192
25199
  type: "string";
25193
25200
  };
25194
25201
  position: {
@@ -25229,10 +25236,10 @@ export declare const rootRedoclyConfigSchema: {
25229
25236
  downloadUrls: {
25230
25237
  items: {
25231
25238
  properties: {
25232
- url: {
25239
+ title: {
25233
25240
  type: "string";
25234
25241
  };
25235
- title: {
25242
+ url: {
25236
25243
  type: "string";
25237
25244
  };
25238
25245
  };
@@ -25305,7 +25312,7 @@ export declare const rootRedoclyConfigSchema: {
25305
25312
  items: {
25306
25313
  properties: {
25307
25314
  lang: {
25308
- enum: ("curl" | "JavaScript" | "Node.js" | "Python" | "Java8+Apache" | "Java" | "C#" | "C#+Newtonsoft" | "PHP" | "Go" | "Ruby" | "R" | "Payload")[];
25315
+ enum: ("curl" | "C#" | "Go" | "Java" | "Java8+Apache" | "JavaScript" | "Node.js" | "PHP" | "Python" | "R" | "Ruby" | "C#+Newtonsoft" | "Payload")[];
25309
25316
  type: "string";
25310
25317
  };
25311
25318
  label: {
@@ -25375,14 +25382,14 @@ export declare const rootRedoclyConfigSchema: {
25375
25382
  groups: {
25376
25383
  items: {
25377
25384
  properties: {
25378
- name: {
25379
- type: "string";
25380
- };
25381
25385
  items: {
25382
25386
  properties: any;
25383
25387
  additionalProperties: false;
25384
25388
  type: "object";
25385
25389
  };
25390
+ name: {
25391
+ type: "string";
25392
+ };
25386
25393
  queries: {
25387
25394
  properties: any;
25388
25395
  additionalProperties: false;
@@ -25465,6 +25472,16 @@ export declare const rootRedoclyConfigSchema: {
25465
25472
  };
25466
25473
  settings: {
25467
25474
  properties: {
25475
+ label: {
25476
+ type: "string";
25477
+ };
25478
+ items: {
25479
+ items: {
25480
+ type: "string";
25481
+ };
25482
+ type: "array";
25483
+ minItems: 1;
25484
+ };
25468
25485
  comment: {
25469
25486
  properties: {
25470
25487
  label: {
@@ -25624,16 +25641,6 @@ export declare const rootRedoclyConfigSchema: {
25624
25641
  additionalProperties: false;
25625
25642
  type: "object";
25626
25643
  };
25627
- label: {
25628
- type: "string";
25629
- };
25630
- items: {
25631
- items: {
25632
- type: "string";
25633
- };
25634
- type: "array";
25635
- minItems: 1;
25636
- };
25637
25644
  submitText: {
25638
25645
  type: "string";
25639
25646
  };
@@ -26060,10 +26067,10 @@ export declare const rootRedoclyConfigSchema: {
26060
26067
  locales: {
26061
26068
  items: {
26062
26069
  properties: {
26063
- name: {
26070
+ code: {
26064
26071
  type: "string";
26065
26072
  };
26066
- code: {
26073
+ name: {
26067
26074
  type: "string";
26068
26075
  };
26069
26076
  };
@@ -26085,10 +26092,10 @@ export declare const rootRedoclyConfigSchema: {
26085
26092
  locales: {
26086
26093
  items: {
26087
26094
  properties: {
26088
- name: {
26095
+ code: {
26089
26096
  type: "string";
26090
26097
  };
26091
- code: {
26098
+ name: {
26092
26099
  type: "string";
26093
26100
  };
26094
26101
  };
@@ -26118,7 +26125,14 @@ export declare const rootRedoclyConfigSchema: {
26118
26125
  reunite: {
26119
26126
  properties: {
26120
26127
  ignoreLint: {
26121
- type: "boolean";
26128
+ oneOf: ({
26129
+ type: "boolean";
26130
+ } | {
26131
+ additionalProperties: {
26132
+ type: "boolean";
26133
+ };
26134
+ type: "object";
26135
+ })[];
26122
26136
  };
26123
26137
  ignoreLinkChecker: {
26124
26138
  type: "boolean";
@@ -26386,13 +26400,13 @@ export declare const rootRedoclyConfigSchema: {
26386
26400
  facets: {
26387
26401
  items: {
26388
26402
  properties: {
26389
- name: {
26390
- type: "string";
26391
- };
26392
26403
  type: {
26393
26404
  enum: ("multi-select" | "select" | "tags")[];
26394
26405
  type: "string";
26395
26406
  };
26407
+ name: {
26408
+ type: "string";
26409
+ };
26396
26410
  field: {
26397
26411
  type: "string";
26398
26412
  };
@@ -26402,7 +26416,7 @@ export declare const rootRedoclyConfigSchema: {
26402
26416
  };
26403
26417
  additionalProperties: false;
26404
26418
  type: "object";
26405
- required: ("name" | "type" | "field")[];
26419
+ required: ("type" | "name" | "field")[];
26406
26420
  };
26407
26421
  type: "array";
26408
26422
  };
@@ -26802,6 +26816,9 @@ export declare const rootRedoclyConfigSchema: {
26802
26816
  };
26803
26817
  layout: {
26804
26818
  properties: {
26819
+ showDarkRightPanel: {
26820
+ type: "boolean";
26821
+ };
26805
26822
  stacked: {
26806
26823
  properties: {
26807
26824
  maxWidth: {
@@ -26854,9 +26871,6 @@ export declare const rootRedoclyConfigSchema: {
26854
26871
  };
26855
26872
  type: "object";
26856
26873
  };
26857
- showDarkRightPanel: {
26858
- type: "boolean";
26859
- };
26860
26874
  };
26861
26875
  type: "object";
26862
26876
  };
@@ -27312,7 +27326,7 @@ export declare const rootRedoclyConfigSchema: {
27312
27326
  items: {
27313
27327
  properties: {
27314
27328
  lang: {
27315
- enum: ("curl" | "JavaScript" | "Node.js" | "Python" | "Java8+Apache" | "Java" | "C#" | "PHP" | "Go" | "Ruby" | "R")[];
27329
+ enum: ("curl" | "C#" | "Go" | "Java" | "Java8+Apache" | "JavaScript" | "Node.js" | "PHP" | "Python" | "R" | "Ruby")[];
27316
27330
  };
27317
27331
  label: {
27318
27332
  type: "string";
@@ -27628,6 +27642,16 @@ export declare const rootRedoclyConfigSchema: {
27628
27642
  };
27629
27643
  settings: {
27630
27644
  properties: {
27645
+ label: {
27646
+ type: "string";
27647
+ };
27648
+ items: {
27649
+ items: {
27650
+ type: "string";
27651
+ };
27652
+ type: "array";
27653
+ minItems: 1;
27654
+ };
27631
27655
  comment: {
27632
27656
  properties: {
27633
27657
  label: {
@@ -27787,16 +27811,6 @@ export declare const rootRedoclyConfigSchema: {
27787
27811
  additionalProperties: false;
27788
27812
  type: "object";
27789
27813
  };
27790
- label: {
27791
- type: "string";
27792
- };
27793
- items: {
27794
- items: {
27795
- type: "string";
27796
- };
27797
- type: "array";
27798
- minItems: 1;
27799
- };
27800
27814
  submitText: {
27801
27815
  type: "string";
27802
27816
  };
@@ -27823,10 +27837,10 @@ export declare const rootRedoclyConfigSchema: {
27823
27837
  };
27824
27838
  mockServer: {
27825
27839
  properties: {
27826
- url: {
27840
+ description: {
27827
27841
  type: "string";
27828
27842
  };
27829
- description: {
27843
+ url: {
27830
27844
  type: "string";
27831
27845
  };
27832
27846
  position: {
@@ -27867,10 +27881,10 @@ export declare const rootRedoclyConfigSchema: {
27867
27881
  downloadUrls: {
27868
27882
  items: {
27869
27883
  properties: {
27870
- url: {
27884
+ title: {
27871
27885
  type: "string";
27872
27886
  };
27873
- title: {
27887
+ url: {
27874
27888
  type: "string";
27875
27889
  };
27876
27890
  };
@@ -27943,7 +27957,7 @@ export declare const rootRedoclyConfigSchema: {
27943
27957
  items: {
27944
27958
  properties: {
27945
27959
  lang: {
27946
- enum: ("curl" | "JavaScript" | "Node.js" | "Python" | "Java8+Apache" | "Java" | "C#" | "C#+Newtonsoft" | "PHP" | "Go" | "Ruby" | "R" | "Payload")[];
27960
+ enum: ("curl" | "C#" | "Go" | "Java" | "Java8+Apache" | "JavaScript" | "Node.js" | "PHP" | "Python" | "R" | "Ruby" | "C#+Newtonsoft" | "Payload")[];
27947
27961
  type: "string";
27948
27962
  };
27949
27963
  label: {
@@ -28013,14 +28027,14 @@ export declare const rootRedoclyConfigSchema: {
28013
28027
  groups: {
28014
28028
  items: {
28015
28029
  properties: {
28016
- name: {
28017
- type: "string";
28018
- };
28019
28030
  items: {
28020
28031
  properties: any;
28021
28032
  additionalProperties: false;
28022
28033
  type: "object";
28023
28034
  };
28035
+ name: {
28036
+ type: "string";
28037
+ };
28024
28038
  queries: {
28025
28039
  properties: any;
28026
28040
  additionalProperties: false;
@@ -28103,6 +28117,16 @@ export declare const rootRedoclyConfigSchema: {
28103
28117
  };
28104
28118
  settings: {
28105
28119
  properties: {
28120
+ label: {
28121
+ type: "string";
28122
+ };
28123
+ items: {
28124
+ items: {
28125
+ type: "string";
28126
+ };
28127
+ type: "array";
28128
+ minItems: 1;
28129
+ };
28106
28130
  comment: {
28107
28131
  properties: {
28108
28132
  label: {
@@ -28262,16 +28286,6 @@ export declare const rootRedoclyConfigSchema: {
28262
28286
  additionalProperties: false;
28263
28287
  type: "object";
28264
28288
  };
28265
- label: {
28266
- type: "string";
28267
- };
28268
- items: {
28269
- items: {
28270
- type: "string";
28271
- };
28272
- type: "array";
28273
- minItems: 1;
28274
- };
28275
28289
  submitText: {
28276
28290
  type: "string";
28277
28291
  };
@@ -28815,10 +28829,10 @@ export declare const rootRedoclyConfigSchema: {
28815
28829
  levels: {
28816
28830
  items: {
28817
28831
  properties: {
28818
- name: {
28832
+ color: {
28819
28833
  type: "string";
28820
28834
  };
28821
- color: {
28835
+ name: {
28822
28836
  type: "string";
28823
28837
  };
28824
28838
  rules: {
@@ -37891,8 +37905,15 @@ export declare const rootRedoclyConfigSchema: {
37891
37905
  readonly type: "object";
37892
37906
  readonly properties: {
37893
37907
  readonly ignoreLint: {
37894
- readonly type: "boolean";
37895
- readonly default: false;
37908
+ readonly oneOf: readonly [{
37909
+ readonly type: "boolean";
37910
+ readonly default: false;
37911
+ }, {
37912
+ readonly type: "object";
37913
+ readonly additionalProperties: {
37914
+ readonly type: "boolean";
37915
+ };
37916
+ }];
37896
37917
  };
37897
37918
  readonly ignoreLinkChecker: {
37898
37919
  readonly type: "boolean";
@@ -6,6 +6,7 @@ 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';
8
8
  import type { reasonsSettingsSchema } from './feedback-config-schema';
9
+ import type { reuniteConfigSchema } from './reunite-config-schema';
9
10
  /**
10
11
  * @deprecated left for backwards compatibility. To be removed in Realm 1.0
11
12
  */
@@ -24,6 +25,7 @@ export type GtmAnalyticsConfig = FromSchema<typeof gtmAnalyticsConfigSchema>;
24
25
  export type GoogleAnalyticsConfig = FromSchema<typeof googleAnalyticsConfigSchema>;
25
26
  export type CatalogConfig = FromSchema<typeof catalogSchema>;
26
27
  export type CatalogFilterConfig = FromSchema<typeof catalogFilterSchema>;
28
+ export type ReuniteConfig = FromSchema<typeof reuniteConfigSchema>;
27
29
  export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
28
30
  export type SearchFacetsConfig = FromSchema<typeof searchFacetsConfigSchema>;
29
31
  export type RedoclyConfig = Omit<FromSchema<typeof rootRedoclyConfigSchema>, 'theme' | 'apis'> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/config",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "license": "MIT",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",