@redocly/openapi-core 1.9.0 → 1.9.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/bundle.d.ts +1 -1
  3. package/lib/lint.d.ts +1 -0
  4. package/lib/lint.js +1 -1
  5. package/lib/oas-types.d.ts +1 -1
  6. package/lib/ref-utils.js +2 -2
  7. package/lib/resolve.js +9 -1
  8. package/lib/types/index.d.ts +7 -7
  9. package/lib/types/json-schema-adapter.d.ts +3 -0
  10. package/lib/types/json-schema-adapter.js +173 -0
  11. package/lib/types/oas2.d.ts +3 -2
  12. package/lib/types/oas3.d.ts +3 -2
  13. package/lib/types/oas3_1.d.ts +3 -2
  14. package/lib/types/portal-config-schema.d.ts +5261 -52
  15. package/lib/types/portal-config-schema.js +71 -55
  16. package/lib/types/redocly-yaml.d.ts +13 -1
  17. package/lib/types/redocly-yaml.js +101 -39
  18. package/lib/types/theme-config.d.ts +819 -36
  19. package/lib/types/theme-config.js +67 -29
  20. package/lib/utils.d.ts +2 -2
  21. package/lib/visitors.js +1 -1
  22. package/lib/walk.js +7 -1
  23. package/package.json +1 -1
  24. package/src/__tests__/lint.test.ts +1218 -36
  25. package/src/__tests__/ref-utils.test.ts +22 -0
  26. package/src/config/__tests__/load.test.ts +13 -13
  27. package/src/decorators/oas2/remove-unused-components.ts +3 -2
  28. package/src/decorators/oas3/remove-unused-components.ts +3 -2
  29. package/src/lint.ts +2 -1
  30. package/src/ref-utils.ts +2 -2
  31. package/src/resolve.ts +13 -1
  32. package/src/types/index.ts +7 -12
  33. package/src/types/json-schema-adapter.ts +217 -0
  34. package/src/types/oas2.ts +5 -2
  35. package/src/types/oas3.ts +6 -2
  36. package/src/types/oas3_1.ts +5 -2
  37. package/src/types/portal-config-schema.ts +111 -61
  38. package/src/types/redocly-yaml.ts +118 -43
  39. package/src/types/theme-config.ts +125 -27
  40. package/src/utils.ts +2 -2
  41. package/src/visitors.ts +1 -1
  42. package/src/walk.ts +7 -1
  43. package/tsconfig.tsbuildinfo +1 -1
@@ -1,3 +1,629 @@
1
+ import type { FromSchema } from 'json-schema-to-ts';
2
+ declare const markdownConfigSchema: {
3
+ readonly type: "object";
4
+ readonly properties: {
5
+ readonly frontMatterKeysToResolve: {
6
+ readonly type: "array";
7
+ readonly items: {
8
+ readonly type: "string";
9
+ };
10
+ readonly default: readonly ["image", "links"];
11
+ };
12
+ readonly partialsFolders: {
13
+ readonly type: "array";
14
+ readonly items: {
15
+ readonly type: "string";
16
+ };
17
+ readonly default: readonly ["_partials"];
18
+ };
19
+ readonly lastUpdatedBlock: {
20
+ readonly type: "object";
21
+ readonly properties: {
22
+ readonly hide: {
23
+ readonly type: "boolean";
24
+ };
25
+ readonly format: {
26
+ readonly type: "string";
27
+ readonly enum: readonly ["timeago", "iso", "long", "short"];
28
+ readonly default: "timeago";
29
+ };
30
+ readonly locale: {
31
+ readonly type: "string";
32
+ };
33
+ };
34
+ readonly additionalProperties: false;
35
+ readonly default: {};
36
+ };
37
+ readonly toc: {
38
+ readonly type: "object";
39
+ readonly properties: {
40
+ readonly hide: {
41
+ readonly type: "boolean";
42
+ };
43
+ readonly header: {
44
+ readonly type: "string";
45
+ readonly default: "On this page";
46
+ };
47
+ readonly depth: {
48
+ readonly type: "integer";
49
+ readonly default: 3;
50
+ readonly minimum: 1;
51
+ };
52
+ };
53
+ readonly additionalProperties: false;
54
+ readonly default: {};
55
+ };
56
+ readonly editPage: {
57
+ readonly type: "object";
58
+ readonly properties: {
59
+ readonly hide: {
60
+ readonly type: "boolean";
61
+ };
62
+ readonly baseUrl: {
63
+ readonly type: "string";
64
+ };
65
+ };
66
+ readonly additionalProperties: false;
67
+ readonly default: {};
68
+ };
69
+ };
70
+ readonly additionalProperties: false;
71
+ readonly default: {};
72
+ };
73
+ declare const amplitudeAnalyticsConfigSchema: {
74
+ readonly type: "object";
75
+ readonly properties: {
76
+ readonly includeInDevelopment: {
77
+ readonly type: "boolean";
78
+ };
79
+ readonly apiKey: {
80
+ readonly type: "string";
81
+ };
82
+ readonly head: {
83
+ readonly type: "boolean";
84
+ };
85
+ readonly respectDNT: {
86
+ readonly type: "boolean";
87
+ };
88
+ readonly exclude: {
89
+ readonly type: "array";
90
+ readonly items: {
91
+ readonly type: "string";
92
+ };
93
+ };
94
+ readonly outboundClickEventName: {
95
+ readonly type: "string";
96
+ };
97
+ readonly pageViewEventName: {
98
+ readonly type: "string";
99
+ };
100
+ readonly amplitudeConfig: {
101
+ readonly type: "object";
102
+ readonly additionalProperties: true;
103
+ };
104
+ };
105
+ readonly additionalProperties: false;
106
+ readonly required: readonly ["apiKey"];
107
+ };
108
+ declare const rudderstackAnalyticsConfigSchema: {
109
+ readonly type: "object";
110
+ readonly properties: {
111
+ readonly includeInDevelopment: {
112
+ readonly type: "boolean";
113
+ };
114
+ readonly writeKey: {
115
+ readonly type: "string";
116
+ readonly minLength: 10;
117
+ };
118
+ readonly trackPage: {
119
+ readonly type: "boolean";
120
+ };
121
+ readonly dataPlaneUrl: {
122
+ readonly type: "string";
123
+ };
124
+ readonly controlPlaneUrl: {
125
+ readonly type: "string";
126
+ };
127
+ readonly sdkUrl: {
128
+ readonly type: "string";
129
+ };
130
+ readonly loadOptions: {
131
+ readonly type: "object";
132
+ readonly additionalProperties: true;
133
+ };
134
+ };
135
+ readonly additionalProperties: false;
136
+ readonly required: readonly ["writeKey"];
137
+ };
138
+ declare const segmentAnalyticsConfigSchema: {
139
+ readonly type: "object";
140
+ readonly properties: {
141
+ readonly includeInDevelopment: {
142
+ readonly type: "boolean";
143
+ };
144
+ readonly writeKey: {
145
+ readonly type: "string";
146
+ readonly minLength: 10;
147
+ };
148
+ readonly trackPage: {
149
+ readonly type: "boolean";
150
+ };
151
+ readonly includeTitleInPageCall: {
152
+ readonly type: "boolean";
153
+ };
154
+ readonly host: {
155
+ readonly type: "string";
156
+ };
157
+ };
158
+ readonly additionalProperties: false;
159
+ readonly required: readonly ["writeKey"];
160
+ };
161
+ declare const gtmAnalyticsConfigSchema: {
162
+ readonly type: "object";
163
+ readonly properties: {
164
+ readonly includeInDevelopment: {
165
+ readonly type: "boolean";
166
+ };
167
+ readonly trackingId: {
168
+ readonly type: "string";
169
+ };
170
+ readonly gtmAuth: {
171
+ readonly type: "string";
172
+ };
173
+ readonly gtmPreview: {
174
+ readonly type: "string";
175
+ };
176
+ readonly defaultDataLayer: {};
177
+ readonly dataLayerName: {
178
+ readonly type: "string";
179
+ };
180
+ readonly enableWebVitalsTracking: {
181
+ readonly type: "boolean";
182
+ };
183
+ readonly selfHostedOrigin: {
184
+ readonly type: "string";
185
+ };
186
+ readonly pageViewEventName: {
187
+ readonly type: "string";
188
+ };
189
+ };
190
+ readonly additionalProperties: false;
191
+ readonly required: readonly ["trackingId"];
192
+ };
193
+ declare const productGoogleAnalyticsConfigSchema: {
194
+ readonly type: "object";
195
+ readonly properties: {
196
+ readonly includeInDevelopment: {
197
+ readonly type: "boolean";
198
+ };
199
+ readonly trackingId: {
200
+ readonly type: "string";
201
+ };
202
+ readonly conversionId: {
203
+ readonly type: "string";
204
+ };
205
+ readonly floodlightId: {
206
+ readonly type: "string";
207
+ };
208
+ readonly optimizeId: {
209
+ readonly type: "string";
210
+ };
211
+ readonly exclude: {
212
+ readonly type: "array";
213
+ readonly items: {
214
+ readonly type: "string";
215
+ };
216
+ };
217
+ };
218
+ readonly additionalProperties: false;
219
+ readonly required: readonly ["trackingId"];
220
+ };
221
+ declare const googleAnalyticsConfigSchema: {
222
+ readonly type: "object";
223
+ readonly properties: {
224
+ readonly includeInDevelopment: {
225
+ readonly type: "boolean";
226
+ };
227
+ readonly trackingId: {
228
+ readonly type: "string";
229
+ };
230
+ readonly conversionId: {
231
+ readonly type: "string";
232
+ };
233
+ readonly floodlightId: {
234
+ readonly type: "string";
235
+ };
236
+ readonly head: {
237
+ readonly type: "boolean";
238
+ };
239
+ readonly respectDNT: {
240
+ readonly type: "boolean";
241
+ };
242
+ readonly exclude: {
243
+ readonly type: "array";
244
+ readonly items: {
245
+ readonly type: "string";
246
+ };
247
+ };
248
+ readonly optimizeId: {
249
+ readonly type: "string";
250
+ };
251
+ readonly anonymizeIp: {
252
+ readonly type: "boolean";
253
+ };
254
+ readonly cookieExpires: {
255
+ readonly type: "number";
256
+ };
257
+ readonly trackers: {
258
+ readonly type: "object";
259
+ readonly additionalProperties: {
260
+ readonly type: "object";
261
+ readonly properties: {
262
+ readonly includeInDevelopment: {
263
+ readonly type: "boolean";
264
+ };
265
+ readonly trackingId: {
266
+ readonly type: "string";
267
+ };
268
+ readonly conversionId: {
269
+ readonly type: "string";
270
+ };
271
+ readonly floodlightId: {
272
+ readonly type: "string";
273
+ };
274
+ readonly optimizeId: {
275
+ readonly type: "string";
276
+ };
277
+ readonly exclude: {
278
+ readonly type: "array";
279
+ readonly items: {
280
+ readonly type: "string";
281
+ };
282
+ };
283
+ };
284
+ readonly additionalProperties: false;
285
+ readonly required: readonly ["trackingId"];
286
+ };
287
+ };
288
+ };
289
+ readonly additionalProperties: false;
290
+ readonly required: readonly ["trackingId"];
291
+ };
292
+ declare const productConfigSchema: {
293
+ readonly type: "object";
294
+ readonly properties: {
295
+ readonly name: {
296
+ readonly type: "string";
297
+ };
298
+ readonly icon: {
299
+ readonly type: "string";
300
+ };
301
+ readonly folder: {
302
+ readonly type: "string";
303
+ };
304
+ };
305
+ readonly additionalProperties: false;
306
+ readonly required: readonly ["name", "folder"];
307
+ };
308
+ declare const catalogFilterSchema: {
309
+ readonly type: "object";
310
+ readonly additionalProperties: false;
311
+ readonly required: readonly ["title", "property"];
312
+ readonly properties: {
313
+ readonly type: {
314
+ readonly type: "string";
315
+ readonly enum: readonly ["select", "checkboxes", "date-range"];
316
+ };
317
+ readonly title: {
318
+ readonly type: "string";
319
+ };
320
+ readonly titleTranslationKey: {
321
+ readonly type: "string";
322
+ };
323
+ readonly property: {
324
+ readonly type: "string";
325
+ };
326
+ readonly parentFilter: {
327
+ readonly type: "string";
328
+ };
329
+ readonly valuesMapping: {
330
+ readonly type: "object";
331
+ readonly additionalProperties: {
332
+ readonly type: "string";
333
+ };
334
+ };
335
+ readonly missingCategoryName: {
336
+ readonly type: "string";
337
+ };
338
+ readonly missingCategoryNameTranslationKey: {
339
+ readonly type: "string";
340
+ };
341
+ readonly options: {
342
+ readonly type: "array";
343
+ readonly items: {
344
+ readonly type: "string";
345
+ };
346
+ };
347
+ };
348
+ };
349
+ declare const scorecardConfigSchema: {
350
+ readonly type: "object";
351
+ readonly additionalProperties: true;
352
+ readonly required: readonly [];
353
+ readonly properties: {
354
+ readonly ignoreNonCompliant: {
355
+ readonly type: "boolean";
356
+ readonly default: false;
357
+ };
358
+ readonly teamMetadataProperty: {
359
+ readonly type: "object";
360
+ readonly properties: {
361
+ readonly property: {
362
+ readonly type: "string";
363
+ };
364
+ readonly label: {
365
+ readonly type: "string";
366
+ };
367
+ readonly default: {
368
+ readonly type: "string";
369
+ };
370
+ };
371
+ };
372
+ readonly levels: {
373
+ readonly type: "array";
374
+ readonly items: {
375
+ readonly type: "object";
376
+ readonly required: readonly ["name"];
377
+ readonly properties: {
378
+ readonly name: {
379
+ readonly type: "string";
380
+ };
381
+ readonly color: {
382
+ readonly type: "string";
383
+ };
384
+ readonly extends: {
385
+ readonly type: "array";
386
+ readonly items: {
387
+ readonly type: "string";
388
+ };
389
+ };
390
+ readonly rules: {
391
+ readonly type: "object";
392
+ readonly additionalProperties: {
393
+ readonly oneOf: readonly [{
394
+ readonly type: "string";
395
+ }, {
396
+ readonly type: "object";
397
+ }];
398
+ };
399
+ };
400
+ };
401
+ readonly additionalProperties: false;
402
+ };
403
+ };
404
+ readonly targets: {
405
+ readonly type: "array";
406
+ readonly items: {
407
+ readonly type: "object";
408
+ readonly required: readonly ["where"];
409
+ readonly properties: {
410
+ readonly minimumLevel: {
411
+ readonly type: "string";
412
+ };
413
+ readonly where: {
414
+ readonly type: "object";
415
+ readonly required: readonly ["metadata"];
416
+ readonly properties: {
417
+ readonly metadata: {
418
+ readonly type: "object";
419
+ readonly additionalProperties: {
420
+ readonly type: "string";
421
+ };
422
+ };
423
+ };
424
+ readonly additionalProperties: false;
425
+ };
426
+ };
427
+ readonly additionalProperties: false;
428
+ };
429
+ };
430
+ };
431
+ };
432
+ declare const catalogSchema: {
433
+ readonly type: "object";
434
+ readonly additionalProperties: true;
435
+ readonly required: readonly ["slug", "items"];
436
+ readonly properties: {
437
+ readonly slug: {
438
+ readonly type: "string";
439
+ };
440
+ readonly filters: {
441
+ readonly type: "array";
442
+ readonly items: {
443
+ readonly type: "object";
444
+ readonly additionalProperties: false;
445
+ readonly required: readonly ["title", "property"];
446
+ readonly properties: {
447
+ readonly type: {
448
+ readonly type: "string";
449
+ readonly enum: readonly ["select", "checkboxes", "date-range"];
450
+ };
451
+ readonly title: {
452
+ readonly type: "string";
453
+ };
454
+ readonly titleTranslationKey: {
455
+ readonly type: "string";
456
+ };
457
+ readonly property: {
458
+ readonly type: "string";
459
+ };
460
+ readonly parentFilter: {
461
+ readonly type: "string";
462
+ };
463
+ readonly valuesMapping: {
464
+ readonly type: "object";
465
+ readonly additionalProperties: {
466
+ readonly type: "string";
467
+ };
468
+ };
469
+ readonly missingCategoryName: {
470
+ readonly type: "string";
471
+ };
472
+ readonly missingCategoryNameTranslationKey: {
473
+ readonly type: "string";
474
+ };
475
+ readonly options: {
476
+ readonly type: "array";
477
+ readonly items: {
478
+ readonly type: "string";
479
+ };
480
+ };
481
+ };
482
+ };
483
+ };
484
+ readonly groupByFirstFilter: {
485
+ readonly type: "boolean";
486
+ };
487
+ readonly filterValuesCasing: {
488
+ readonly type: "string";
489
+ readonly enum: readonly ["sentence", "original", "lowercase", "uppercase"];
490
+ };
491
+ readonly items: {
492
+ readonly type: "array";
493
+ readonly items: {
494
+ readonly properties: {
495
+ readonly items: {
496
+ readonly type: "array";
497
+ readonly items: {
498
+ readonly type: "object";
499
+ readonly properties: {
500
+ readonly page: {
501
+ readonly type: "string";
502
+ };
503
+ readonly directory: {
504
+ readonly type: "string";
505
+ };
506
+ readonly disconnect: {
507
+ readonly type: "boolean";
508
+ readonly default: false;
509
+ };
510
+ readonly group: {
511
+ readonly type: "string";
512
+ };
513
+ readonly label: {
514
+ readonly type: "string";
515
+ };
516
+ readonly separator: {
517
+ readonly type: "string";
518
+ };
519
+ readonly separatorLine: {
520
+ readonly type: "boolean";
521
+ };
522
+ readonly linePosition: {
523
+ readonly type: "string";
524
+ readonly enum: readonly ["top", "bottom"];
525
+ readonly default: "top";
526
+ };
527
+ readonly version: {
528
+ readonly type: "string";
529
+ };
530
+ readonly menuStyle: {
531
+ readonly type: "string";
532
+ readonly enum: readonly ["drilldown"];
533
+ };
534
+ readonly expanded: {
535
+ readonly type: "string";
536
+ readonly const: "always";
537
+ };
538
+ readonly selectFirstItemOnExpand: {
539
+ readonly type: "boolean";
540
+ };
541
+ readonly flatten: {
542
+ readonly type: "boolean";
543
+ };
544
+ readonly linkedSidebars: {
545
+ readonly type: "array";
546
+ readonly items: {
547
+ readonly type: "string";
548
+ };
549
+ };
550
+ };
551
+ };
552
+ };
553
+ readonly page: {
554
+ readonly type: "string";
555
+ };
556
+ readonly directory: {
557
+ readonly type: "string";
558
+ };
559
+ readonly disconnect: {
560
+ readonly type: "boolean";
561
+ readonly default: false;
562
+ };
563
+ readonly group: {
564
+ readonly type: "string";
565
+ };
566
+ readonly label: {
567
+ readonly type: "string";
568
+ };
569
+ readonly separator: {
570
+ readonly type: "string";
571
+ };
572
+ readonly separatorLine: {
573
+ readonly type: "boolean";
574
+ };
575
+ readonly linePosition: {
576
+ readonly type: "string";
577
+ readonly enum: readonly ["top", "bottom"];
578
+ readonly default: "top";
579
+ };
580
+ readonly version: {
581
+ readonly type: "string";
582
+ };
583
+ readonly menuStyle: {
584
+ readonly type: "string";
585
+ readonly enum: readonly ["drilldown"];
586
+ };
587
+ readonly expanded: {
588
+ readonly type: "string";
589
+ readonly const: "always";
590
+ };
591
+ readonly selectFirstItemOnExpand: {
592
+ readonly type: "boolean";
593
+ };
594
+ readonly flatten: {
595
+ readonly type: "boolean";
596
+ };
597
+ readonly linkedSidebars: {
598
+ readonly type: "array";
599
+ readonly items: {
600
+ readonly type: "string";
601
+ };
602
+ };
603
+ };
604
+ readonly type: "object";
605
+ };
606
+ };
607
+ readonly requiredPermission: {
608
+ readonly type: "string";
609
+ };
610
+ readonly separateVersions: {
611
+ readonly type: "boolean";
612
+ };
613
+ readonly title: {
614
+ readonly type: "string";
615
+ };
616
+ readonly titleTranslationKey: {
617
+ readonly type: "string";
618
+ };
619
+ readonly description: {
620
+ readonly type: "string";
621
+ };
622
+ readonly descriptionTranslationKey: {
623
+ readonly type: "string";
624
+ };
625
+ };
626
+ };
1
627
  export declare const themeConfigSchema: {
2
628
  readonly type: "object";
3
629
  readonly properties: {
@@ -50,6 +676,10 @@ export declare const themeConfigSchema: {
50
676
  readonly directory: {
51
677
  readonly type: "string";
52
678
  };
679
+ readonly disconnect: {
680
+ readonly type: "boolean";
681
+ readonly default: false;
682
+ };
53
683
  readonly group: {
54
684
  readonly type: "string";
55
685
  };
@@ -99,6 +729,10 @@ export declare const themeConfigSchema: {
99
729
  readonly directory: {
100
730
  readonly type: "string";
101
731
  };
732
+ readonly disconnect: {
733
+ readonly type: "boolean";
734
+ readonly default: false;
735
+ };
102
736
  readonly group: {
103
737
  readonly type: "string";
104
738
  };
@@ -162,7 +796,7 @@ export declare const themeConfigSchema: {
162
796
  };
163
797
  };
164
798
  readonly additionalProperties: false;
165
- readonly required: readonly ["name", "icon", "folder"];
799
+ readonly required: readonly ["name", "folder"];
166
800
  };
167
801
  };
168
802
  readonly footer: {
@@ -186,6 +820,10 @@ export declare const themeConfigSchema: {
186
820
  readonly directory: {
187
821
  readonly type: "string";
188
822
  };
823
+ readonly disconnect: {
824
+ readonly type: "boolean";
825
+ readonly default: false;
826
+ };
189
827
  readonly group: {
190
828
  readonly type: "string";
191
829
  };
@@ -235,6 +873,10 @@ export declare const themeConfigSchema: {
235
873
  readonly directory: {
236
874
  readonly type: "string";
237
875
  };
876
+ readonly disconnect: {
877
+ readonly type: "boolean";
878
+ readonly default: false;
879
+ };
238
880
  readonly group: {
239
881
  readonly type: "string";
240
882
  };
@@ -311,14 +953,6 @@ export declare const themeConfigSchema: {
311
953
  };
312
954
  readonly additionalProperties: false;
313
955
  };
314
- readonly seo: {
315
- readonly type: "object";
316
- readonly properties: {
317
- readonly title: {
318
- readonly type: "string";
319
- };
320
- };
321
- };
322
956
  readonly scripts: {
323
957
  readonly type: "object";
324
958
  readonly properties: {
@@ -475,7 +1109,7 @@ export declare const themeConfigSchema: {
475
1109
  };
476
1110
  readonly type: {
477
1111
  readonly type: "string";
478
- readonly enum: readonly ["rating", "sentiment", "comment", "reasons"];
1112
+ readonly enum: readonly ["rating", "sentiment", "comment", "reasons", "mood", "scale"];
479
1113
  readonly default: "sentiment";
480
1114
  };
481
1115
  readonly settings: {
@@ -490,14 +1124,13 @@ export declare const themeConfigSchema: {
490
1124
  readonly submitText: {
491
1125
  readonly type: "string";
492
1126
  };
493
- readonly max: {
494
- readonly type: "number";
495
- };
496
1127
  readonly buttonText: {
497
1128
  readonly type: "string";
498
1129
  };
499
- readonly multi: {
500
- readonly type: "boolean";
1130
+ readonly component: {
1131
+ readonly type: "string";
1132
+ readonly enum: readonly ["radio", "checkbox"];
1133
+ readonly default: "checkbox";
501
1134
  };
502
1135
  readonly items: {
503
1136
  readonly type: "array";
@@ -506,15 +1139,23 @@ export declare const themeConfigSchema: {
506
1139
  };
507
1140
  readonly minItems: 1;
508
1141
  };
1142
+ readonly leftScaleLabel: {
1143
+ readonly type: "string";
1144
+ };
1145
+ readonly rightScaleLabel: {
1146
+ readonly type: "string";
1147
+ };
509
1148
  readonly reasons: {
510
1149
  readonly type: "object";
511
1150
  readonly properties: {
512
- readonly enable: {
1151
+ readonly hide: {
513
1152
  readonly type: "boolean";
514
- readonly default: true;
1153
+ readonly default: false;
515
1154
  };
516
- readonly multi: {
517
- readonly type: "boolean";
1155
+ readonly component: {
1156
+ readonly type: "string";
1157
+ readonly enum: readonly ["radio", "checkbox"];
1158
+ readonly default: "checkbox";
518
1159
  };
519
1160
  readonly label: {
520
1161
  readonly type: "string";
@@ -531,9 +1172,9 @@ export declare const themeConfigSchema: {
531
1172
  readonly comment: {
532
1173
  readonly type: "object";
533
1174
  readonly properties: {
534
- readonly enable: {
1175
+ readonly hide: {
535
1176
  readonly type: "boolean";
536
- readonly default: true;
1177
+ readonly default: false;
537
1178
  };
538
1179
  readonly label: {
539
1180
  readonly type: "string";
@@ -544,6 +1185,15 @@ export declare const themeConfigSchema: {
544
1185
  readonly dislikeLabel: {
545
1186
  readonly type: "string";
546
1187
  };
1188
+ readonly satisfiedLabel: {
1189
+ readonly type: "string";
1190
+ };
1191
+ readonly neutralLabel: {
1192
+ readonly type: "string";
1193
+ };
1194
+ readonly dissatisfiedLabel: {
1195
+ readonly type: "string";
1196
+ };
547
1197
  };
548
1198
  readonly additionalProperties: false;
549
1199
  };
@@ -624,7 +1274,7 @@ export declare const themeConfigSchema: {
624
1274
  };
625
1275
  readonly text: {
626
1276
  readonly type: "string";
627
- readonly default: "Next to {label}";
1277
+ readonly default: "Next to {{label}}";
628
1278
  };
629
1279
  };
630
1280
  readonly additionalProperties: false;
@@ -638,7 +1288,7 @@ export declare const themeConfigSchema: {
638
1288
  };
639
1289
  readonly text: {
640
1290
  readonly type: "string";
641
- readonly default: "Back to {label}";
1291
+ readonly default: "Back to {{label}}";
642
1292
  };
643
1293
  };
644
1294
  readonly additionalProperties: false;
@@ -651,7 +1301,7 @@ export declare const themeConfigSchema: {
651
1301
  readonly codeSnippet: {
652
1302
  readonly type: "object";
653
1303
  readonly properties: {
654
- readonly controlsStyle: {
1304
+ readonly elementFormat: {
655
1305
  readonly type: "string";
656
1306
  readonly default: "icon";
657
1307
  };
@@ -673,10 +1323,19 @@ export declare const themeConfigSchema: {
673
1323
  readonly hide: {
674
1324
  readonly type: "boolean";
675
1325
  };
1326
+ readonly tooltipText: {
1327
+ readonly type: "string";
1328
+ };
1329
+ readonly buttonText: {
1330
+ readonly type: "string";
1331
+ };
1332
+ readonly label: {
1333
+ readonly type: "string";
1334
+ };
676
1335
  };
677
1336
  readonly additionalProperties: false;
678
1337
  readonly default: {
679
- readonly hide: true;
1338
+ readonly hide: false;
680
1339
  };
681
1340
  };
682
1341
  readonly expand: {
@@ -717,6 +1376,13 @@ export declare const themeConfigSchema: {
717
1376
  };
718
1377
  readonly default: readonly ["image", "links"];
719
1378
  };
1379
+ readonly partialsFolders: {
1380
+ readonly type: "array";
1381
+ readonly items: {
1382
+ readonly type: "string";
1383
+ };
1384
+ readonly default: readonly ["_partials"];
1385
+ };
720
1386
  readonly lastUpdatedBlock: {
721
1387
  readonly type: "object";
722
1388
  readonly properties: {
@@ -730,7 +1396,6 @@ export declare const themeConfigSchema: {
730
1396
  };
731
1397
  readonly locale: {
732
1398
  readonly type: "string";
733
- readonly default: "en-US";
734
1399
  };
735
1400
  };
736
1401
  readonly additionalProperties: false;
@@ -981,6 +1646,37 @@ export declare const themeConfigSchema: {
981
1646
  readonly cookieExpires: {
982
1647
  readonly type: "number";
983
1648
  };
1649
+ readonly trackers: {
1650
+ readonly type: "object";
1651
+ readonly additionalProperties: {
1652
+ readonly type: "object";
1653
+ readonly properties: {
1654
+ readonly includeInDevelopment: {
1655
+ readonly type: "boolean";
1656
+ };
1657
+ readonly trackingId: {
1658
+ readonly type: "string";
1659
+ };
1660
+ readonly conversionId: {
1661
+ readonly type: "string";
1662
+ };
1663
+ readonly floodlightId: {
1664
+ readonly type: "string";
1665
+ };
1666
+ readonly optimizeId: {
1667
+ readonly type: "string";
1668
+ };
1669
+ readonly exclude: {
1670
+ readonly type: "array";
1671
+ readonly items: {
1672
+ readonly type: "string";
1673
+ };
1674
+ };
1675
+ };
1676
+ readonly additionalProperties: false;
1677
+ readonly required: readonly ["trackingId"];
1678
+ };
1679
+ };
984
1680
  };
985
1681
  readonly additionalProperties: false;
986
1682
  readonly required: readonly ["trackingId"];
@@ -1101,6 +1797,12 @@ export declare const themeConfigSchema: {
1101
1797
  readonly parentFilter: {
1102
1798
  readonly type: "string";
1103
1799
  };
1800
+ readonly valuesMapping: {
1801
+ readonly type: "object";
1802
+ readonly additionalProperties: {
1803
+ readonly type: "string";
1804
+ };
1805
+ };
1104
1806
  readonly missingCategoryName: {
1105
1807
  readonly type: "string";
1106
1808
  };
@@ -1138,6 +1840,10 @@ export declare const themeConfigSchema: {
1138
1840
  readonly directory: {
1139
1841
  readonly type: "string";
1140
1842
  };
1843
+ readonly disconnect: {
1844
+ readonly type: "boolean";
1845
+ readonly default: false;
1846
+ };
1141
1847
  readonly group: {
1142
1848
  readonly type: "string";
1143
1849
  };
@@ -1187,6 +1893,10 @@ export declare const themeConfigSchema: {
1187
1893
  readonly directory: {
1188
1894
  readonly type: "string";
1189
1895
  };
1896
+ readonly disconnect: {
1897
+ readonly type: "boolean";
1898
+ readonly default: false;
1899
+ };
1190
1900
  readonly group: {
1191
1901
  readonly type: "string";
1192
1902
  };
@@ -1256,9 +1966,9 @@ export declare const themeConfigSchema: {
1256
1966
  readonly scorecard: {
1257
1967
  readonly type: "object";
1258
1968
  readonly additionalProperties: true;
1259
- readonly required: readonly ["levels"];
1969
+ readonly required: readonly [];
1260
1970
  readonly properties: {
1261
- readonly failBuildIfBelowMinimum: {
1971
+ readonly ignoreNonCompliant: {
1262
1972
  readonly type: "boolean";
1263
1973
  readonly default: false;
1264
1974
  };
@@ -1285,6 +1995,9 @@ export declare const themeConfigSchema: {
1285
1995
  readonly name: {
1286
1996
  readonly type: "string";
1287
1997
  };
1998
+ readonly color: {
1999
+ readonly type: "string";
2000
+ };
1288
2001
  readonly extends: {
1289
2002
  readonly type: "array";
1290
2003
  readonly items: {
@@ -1294,7 +2007,11 @@ export declare const themeConfigSchema: {
1294
2007
  readonly rules: {
1295
2008
  readonly type: "object";
1296
2009
  readonly additionalProperties: {
1297
- readonly type: readonly ["object", "string"];
2010
+ readonly oneOf: readonly [{
2011
+ readonly type: "string";
2012
+ }, {
2013
+ readonly type: "object";
2014
+ }];
1298
2015
  };
1299
2016
  };
1300
2017
  };
@@ -1378,6 +2095,10 @@ export declare const productThemeOverrideSchema: {
1378
2095
  readonly directory: {
1379
2096
  readonly type: "string";
1380
2097
  };
2098
+ readonly disconnect: {
2099
+ readonly type: "boolean";
2100
+ readonly default: false;
2101
+ };
1381
2102
  readonly group: {
1382
2103
  readonly type: "string";
1383
2104
  };
@@ -1427,6 +2148,10 @@ export declare const productThemeOverrideSchema: {
1427
2148
  readonly directory: {
1428
2149
  readonly type: "string";
1429
2150
  };
2151
+ readonly disconnect: {
2152
+ readonly type: "boolean";
2153
+ readonly default: false;
2154
+ };
1430
2155
  readonly group: {
1431
2156
  readonly type: "string";
1432
2157
  };
@@ -1495,6 +2220,10 @@ export declare const productThemeOverrideSchema: {
1495
2220
  readonly directory: {
1496
2221
  readonly type: "string";
1497
2222
  };
2223
+ readonly disconnect: {
2224
+ readonly type: "boolean";
2225
+ readonly default: false;
2226
+ };
1498
2227
  readonly group: {
1499
2228
  readonly type: "string";
1500
2229
  };
@@ -1544,6 +2273,10 @@ export declare const productThemeOverrideSchema: {
1544
2273
  readonly directory: {
1545
2274
  readonly type: "string";
1546
2275
  };
2276
+ readonly disconnect: {
2277
+ readonly type: "boolean";
2278
+ readonly default: false;
2279
+ };
1547
2280
  readonly group: {
1548
2281
  readonly type: "string";
1549
2282
  };
@@ -1662,7 +2395,7 @@ export declare const productThemeOverrideSchema: {
1662
2395
  readonly codeSnippet: {
1663
2396
  readonly type: "object";
1664
2397
  readonly properties: {
1665
- readonly controlsStyle: {
2398
+ readonly elementFormat: {
1666
2399
  readonly type: "string";
1667
2400
  readonly default: "icon";
1668
2401
  };
@@ -1684,10 +2417,19 @@ export declare const productThemeOverrideSchema: {
1684
2417
  readonly hide: {
1685
2418
  readonly type: "boolean";
1686
2419
  };
2420
+ readonly tooltipText: {
2421
+ readonly type: "string";
2422
+ };
2423
+ readonly buttonText: {
2424
+ readonly type: "string";
2425
+ };
2426
+ readonly label: {
2427
+ readonly type: "string";
2428
+ };
1687
2429
  };
1688
2430
  readonly additionalProperties: false;
1689
2431
  readonly default: {
1690
- readonly hide: true;
2432
+ readonly hide: false;
1691
2433
  };
1692
2434
  };
1693
2435
  readonly expand: {
@@ -1747,12 +2489,53 @@ export declare const productThemeOverrideSchema: {
1747
2489
  readonly additionalProperties: false;
1748
2490
  readonly default: {};
1749
2491
  };
2492
+ readonly analytics: {
2493
+ readonly type: "object";
2494
+ readonly properties: {
2495
+ readonly ga: {
2496
+ readonly type: "object";
2497
+ readonly properties: {
2498
+ readonly includeInDevelopment: {
2499
+ readonly type: "boolean";
2500
+ };
2501
+ readonly trackingId: {
2502
+ readonly type: "string";
2503
+ };
2504
+ readonly conversionId: {
2505
+ readonly type: "string";
2506
+ };
2507
+ readonly floodlightId: {
2508
+ readonly type: "string";
2509
+ };
2510
+ readonly optimizeId: {
2511
+ readonly type: "string";
2512
+ };
2513
+ readonly exclude: {
2514
+ readonly type: "array";
2515
+ readonly items: {
2516
+ readonly type: "string";
2517
+ };
2518
+ };
2519
+ };
2520
+ readonly additionalProperties: false;
2521
+ readonly required: readonly ["trackingId"];
2522
+ };
2523
+ };
2524
+ };
1750
2525
  };
1751
2526
  readonly additionalProperties: true;
1752
2527
  readonly default: {};
1753
2528
  };
1754
- export declare enum ScorecardStatus {
1755
- BelowMinimum = "Below minimum",
1756
- Highest = "Highest",
1757
- Minimum = "Minimum"
1758
- }
2529
+ export type ThemeConfig = FromSchema<typeof themeConfigSchema>;
2530
+ export type ProductConfig = FromSchema<typeof productConfigSchema>;
2531
+ export type ProductGoogleAnalyticsConfig = FromSchema<typeof productGoogleAnalyticsConfigSchema>;
2532
+ export type MarkdownConfig = FromSchema<typeof markdownConfigSchema>;
2533
+ export type AmplitudeAnalyticsConfig = FromSchema<typeof amplitudeAnalyticsConfigSchema>;
2534
+ export type RudderstackAnalyticsConfig = FromSchema<typeof rudderstackAnalyticsConfigSchema>;
2535
+ export type SegmentAnalyticsConfig = FromSchema<typeof segmentAnalyticsConfigSchema>;
2536
+ export type GtmAnalyticsConfig = FromSchema<typeof gtmAnalyticsConfigSchema>;
2537
+ export type GoogleAnalyticsConfig = FromSchema<typeof googleAnalyticsConfigSchema>;
2538
+ export type CatalogConfig = FromSchema<typeof catalogSchema>;
2539
+ export type CatalogFilterConfig = FromSchema<typeof catalogFilterSchema>;
2540
+ export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
2541
+ export {};