@redocly/config 0.31.0 → 0.32.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.
@@ -3982,6 +3982,109 @@ export declare const themeConfigSchema: {
3982
3982
  readonly entitiesCatalog: {
3983
3983
  readonly type: "object";
3984
3984
  readonly properties: {
3985
+ readonly entityTypes: {
3986
+ readonly type: "object";
3987
+ readonly additionalProperties: {
3988
+ readonly type: "object";
3989
+ readonly required: readonly ["name", "description", "metadataSchema"];
3990
+ readonly properties: {
3991
+ readonly name: {
3992
+ readonly type: "string";
3993
+ readonly description: "Display name of the entity type";
3994
+ };
3995
+ readonly description: {
3996
+ readonly type: "string";
3997
+ readonly description: "Description of the entity type";
3998
+ };
3999
+ readonly metadataSchema: {
4000
+ readonly type: "object";
4001
+ readonly required: readonly ["type", "properties"];
4002
+ readonly properties: {
4003
+ readonly type: {
4004
+ readonly type: "string";
4005
+ readonly enum: readonly ["object"];
4006
+ };
4007
+ readonly description: {
4008
+ readonly type: "string";
4009
+ };
4010
+ readonly properties: {
4011
+ readonly type: "object";
4012
+ readonly additionalProperties: {
4013
+ readonly type: "object";
4014
+ readonly properties: {
4015
+ readonly type: {
4016
+ readonly type: "string";
4017
+ readonly enum: readonly ["string", "number", "boolean", "array", "object"];
4018
+ };
4019
+ readonly description: {
4020
+ readonly type: "string";
4021
+ };
4022
+ readonly example: {
4023
+ readonly oneOf: readonly [{
4024
+ readonly type: "string";
4025
+ }, {
4026
+ readonly type: "number";
4027
+ }, {
4028
+ readonly type: "boolean";
4029
+ }, {
4030
+ readonly type: "array";
4031
+ }, {
4032
+ readonly type: "object";
4033
+ }];
4034
+ };
4035
+ readonly enum: {
4036
+ readonly type: "array";
4037
+ readonly items: {
4038
+ readonly type: "string";
4039
+ };
4040
+ };
4041
+ readonly pattern: {
4042
+ readonly type: "string";
4043
+ };
4044
+ readonly format: {
4045
+ readonly type: "string";
4046
+ };
4047
+ readonly minimum: {
4048
+ readonly type: "number";
4049
+ };
4050
+ readonly maximum: {
4051
+ readonly type: "number";
4052
+ };
4053
+ readonly items: {
4054
+ readonly type: "object";
4055
+ };
4056
+ };
4057
+ readonly additionalProperties: true;
4058
+ };
4059
+ };
4060
+ readonly required: {
4061
+ readonly type: "array";
4062
+ readonly items: {
4063
+ readonly type: "string";
4064
+ };
4065
+ };
4066
+ readonly additionalProperties: {
4067
+ readonly type: "boolean";
4068
+ };
4069
+ };
4070
+ readonly additionalProperties: true;
4071
+ };
4072
+ readonly icon: {
4073
+ readonly type: "object";
4074
+ readonly properties: {
4075
+ readonly src: {
4076
+ readonly type: "string";
4077
+ };
4078
+ readonly srcSet: {
4079
+ readonly type: "string";
4080
+ };
4081
+ };
4082
+ readonly additionalProperties: false;
4083
+ };
4084
+ };
4085
+ readonly additionalProperties: false;
4086
+ };
4087
+ };
3985
4088
  readonly catalogs: {
3986
4089
  readonly type: "object";
3987
4090
  readonly properties: {
@@ -152,9 +152,435 @@ export declare const entityCatalogSpecificCatalogSchema: {
152
152
  };
153
153
  readonly additionalProperties: false;
154
154
  };
155
+ export declare const entityCatalogMetadataSchemaPropertySchema: {
156
+ readonly type: "object";
157
+ readonly properties: {
158
+ readonly type: {
159
+ readonly type: "string";
160
+ readonly enum: readonly ["string", "number", "boolean", "array", "object"];
161
+ };
162
+ readonly description: {
163
+ readonly type: "string";
164
+ };
165
+ readonly example: {
166
+ readonly oneOf: readonly [{
167
+ readonly type: "string";
168
+ }, {
169
+ readonly type: "number";
170
+ }, {
171
+ readonly type: "boolean";
172
+ }, {
173
+ readonly type: "array";
174
+ }, {
175
+ readonly type: "object";
176
+ }];
177
+ };
178
+ readonly enum: {
179
+ readonly type: "array";
180
+ readonly items: {
181
+ readonly type: "string";
182
+ };
183
+ };
184
+ readonly pattern: {
185
+ readonly type: "string";
186
+ };
187
+ readonly format: {
188
+ readonly type: "string";
189
+ };
190
+ readonly minimum: {
191
+ readonly type: "number";
192
+ };
193
+ readonly maximum: {
194
+ readonly type: "number";
195
+ };
196
+ readonly items: {
197
+ readonly type: "object";
198
+ };
199
+ };
200
+ readonly additionalProperties: true;
201
+ };
202
+ export declare const entityCatalogMetadataSchema: {
203
+ readonly type: "object";
204
+ readonly required: readonly ["type", "properties"];
205
+ readonly properties: {
206
+ readonly type: {
207
+ readonly type: "string";
208
+ readonly enum: readonly ["object"];
209
+ };
210
+ readonly description: {
211
+ readonly type: "string";
212
+ };
213
+ readonly properties: {
214
+ readonly type: "object";
215
+ readonly additionalProperties: {
216
+ readonly type: "object";
217
+ readonly properties: {
218
+ readonly type: {
219
+ readonly type: "string";
220
+ readonly enum: readonly ["string", "number", "boolean", "array", "object"];
221
+ };
222
+ readonly description: {
223
+ readonly type: "string";
224
+ };
225
+ readonly example: {
226
+ readonly oneOf: readonly [{
227
+ readonly type: "string";
228
+ }, {
229
+ readonly type: "number";
230
+ }, {
231
+ readonly type: "boolean";
232
+ }, {
233
+ readonly type: "array";
234
+ }, {
235
+ readonly type: "object";
236
+ }];
237
+ };
238
+ readonly enum: {
239
+ readonly type: "array";
240
+ readonly items: {
241
+ readonly type: "string";
242
+ };
243
+ };
244
+ readonly pattern: {
245
+ readonly type: "string";
246
+ };
247
+ readonly format: {
248
+ readonly type: "string";
249
+ };
250
+ readonly minimum: {
251
+ readonly type: "number";
252
+ };
253
+ readonly maximum: {
254
+ readonly type: "number";
255
+ };
256
+ readonly items: {
257
+ readonly type: "object";
258
+ };
259
+ };
260
+ readonly additionalProperties: true;
261
+ };
262
+ };
263
+ readonly required: {
264
+ readonly type: "array";
265
+ readonly items: {
266
+ readonly type: "string";
267
+ };
268
+ };
269
+ readonly additionalProperties: {
270
+ readonly type: "boolean";
271
+ };
272
+ };
273
+ readonly additionalProperties: true;
274
+ };
275
+ export declare const entityCatalogEntityTypeSchema: {
276
+ readonly type: "object";
277
+ readonly required: readonly ["name", "description", "metadataSchema"];
278
+ readonly properties: {
279
+ readonly name: {
280
+ readonly type: "string";
281
+ readonly description: "Display name of the entity type";
282
+ };
283
+ readonly description: {
284
+ readonly type: "string";
285
+ readonly description: "Description of the entity type";
286
+ };
287
+ readonly metadataSchema: {
288
+ readonly type: "object";
289
+ readonly required: readonly ["type", "properties"];
290
+ readonly properties: {
291
+ readonly type: {
292
+ readonly type: "string";
293
+ readonly enum: readonly ["object"];
294
+ };
295
+ readonly description: {
296
+ readonly type: "string";
297
+ };
298
+ readonly properties: {
299
+ readonly type: "object";
300
+ readonly additionalProperties: {
301
+ readonly type: "object";
302
+ readonly properties: {
303
+ readonly type: {
304
+ readonly type: "string";
305
+ readonly enum: readonly ["string", "number", "boolean", "array", "object"];
306
+ };
307
+ readonly description: {
308
+ readonly type: "string";
309
+ };
310
+ readonly example: {
311
+ readonly oneOf: readonly [{
312
+ readonly type: "string";
313
+ }, {
314
+ readonly type: "number";
315
+ }, {
316
+ readonly type: "boolean";
317
+ }, {
318
+ readonly type: "array";
319
+ }, {
320
+ readonly type: "object";
321
+ }];
322
+ };
323
+ readonly enum: {
324
+ readonly type: "array";
325
+ readonly items: {
326
+ readonly type: "string";
327
+ };
328
+ };
329
+ readonly pattern: {
330
+ readonly type: "string";
331
+ };
332
+ readonly format: {
333
+ readonly type: "string";
334
+ };
335
+ readonly minimum: {
336
+ readonly type: "number";
337
+ };
338
+ readonly maximum: {
339
+ readonly type: "number";
340
+ };
341
+ readonly items: {
342
+ readonly type: "object";
343
+ };
344
+ };
345
+ readonly additionalProperties: true;
346
+ };
347
+ };
348
+ readonly required: {
349
+ readonly type: "array";
350
+ readonly items: {
351
+ readonly type: "string";
352
+ };
353
+ };
354
+ readonly additionalProperties: {
355
+ readonly type: "boolean";
356
+ };
357
+ };
358
+ readonly additionalProperties: true;
359
+ };
360
+ readonly icon: {
361
+ readonly type: "object";
362
+ readonly properties: {
363
+ readonly src: {
364
+ readonly type: "string";
365
+ };
366
+ readonly srcSet: {
367
+ readonly type: "string";
368
+ };
369
+ };
370
+ readonly additionalProperties: false;
371
+ };
372
+ };
373
+ readonly additionalProperties: false;
374
+ };
375
+ export declare const entityCatalogEntityTypesSchema: {
376
+ readonly type: "object";
377
+ readonly additionalProperties: {
378
+ readonly type: "object";
379
+ readonly required: readonly ["name", "description", "metadataSchema"];
380
+ readonly properties: {
381
+ readonly name: {
382
+ readonly type: "string";
383
+ readonly description: "Display name of the entity type";
384
+ };
385
+ readonly description: {
386
+ readonly type: "string";
387
+ readonly description: "Description of the entity type";
388
+ };
389
+ readonly metadataSchema: {
390
+ readonly type: "object";
391
+ readonly required: readonly ["type", "properties"];
392
+ readonly properties: {
393
+ readonly type: {
394
+ readonly type: "string";
395
+ readonly enum: readonly ["object"];
396
+ };
397
+ readonly description: {
398
+ readonly type: "string";
399
+ };
400
+ readonly properties: {
401
+ readonly type: "object";
402
+ readonly additionalProperties: {
403
+ readonly type: "object";
404
+ readonly properties: {
405
+ readonly type: {
406
+ readonly type: "string";
407
+ readonly enum: readonly ["string", "number", "boolean", "array", "object"];
408
+ };
409
+ readonly description: {
410
+ readonly type: "string";
411
+ };
412
+ readonly example: {
413
+ readonly oneOf: readonly [{
414
+ readonly type: "string";
415
+ }, {
416
+ readonly type: "number";
417
+ }, {
418
+ readonly type: "boolean";
419
+ }, {
420
+ readonly type: "array";
421
+ }, {
422
+ readonly type: "object";
423
+ }];
424
+ };
425
+ readonly enum: {
426
+ readonly type: "array";
427
+ readonly items: {
428
+ readonly type: "string";
429
+ };
430
+ };
431
+ readonly pattern: {
432
+ readonly type: "string";
433
+ };
434
+ readonly format: {
435
+ readonly type: "string";
436
+ };
437
+ readonly minimum: {
438
+ readonly type: "number";
439
+ };
440
+ readonly maximum: {
441
+ readonly type: "number";
442
+ };
443
+ readonly items: {
444
+ readonly type: "object";
445
+ };
446
+ };
447
+ readonly additionalProperties: true;
448
+ };
449
+ };
450
+ readonly required: {
451
+ readonly type: "array";
452
+ readonly items: {
453
+ readonly type: "string";
454
+ };
455
+ };
456
+ readonly additionalProperties: {
457
+ readonly type: "boolean";
458
+ };
459
+ };
460
+ readonly additionalProperties: true;
461
+ };
462
+ readonly icon: {
463
+ readonly type: "object";
464
+ readonly properties: {
465
+ readonly src: {
466
+ readonly type: "string";
467
+ };
468
+ readonly srcSet: {
469
+ readonly type: "string";
470
+ };
471
+ };
472
+ readonly additionalProperties: false;
473
+ };
474
+ };
475
+ readonly additionalProperties: false;
476
+ };
477
+ };
155
478
  export declare const entitiesCatalogConfigSchema: {
156
479
  readonly type: "object";
157
480
  readonly properties: {
481
+ readonly entityTypes: {
482
+ readonly type: "object";
483
+ readonly additionalProperties: {
484
+ readonly type: "object";
485
+ readonly required: readonly ["name", "description", "metadataSchema"];
486
+ readonly properties: {
487
+ readonly name: {
488
+ readonly type: "string";
489
+ readonly description: "Display name of the entity type";
490
+ };
491
+ readonly description: {
492
+ readonly type: "string";
493
+ readonly description: "Description of the entity type";
494
+ };
495
+ readonly metadataSchema: {
496
+ readonly type: "object";
497
+ readonly required: readonly ["type", "properties"];
498
+ readonly properties: {
499
+ readonly type: {
500
+ readonly type: "string";
501
+ readonly enum: readonly ["object"];
502
+ };
503
+ readonly description: {
504
+ readonly type: "string";
505
+ };
506
+ readonly properties: {
507
+ readonly type: "object";
508
+ readonly additionalProperties: {
509
+ readonly type: "object";
510
+ readonly properties: {
511
+ readonly type: {
512
+ readonly type: "string";
513
+ readonly enum: readonly ["string", "number", "boolean", "array", "object"];
514
+ };
515
+ readonly description: {
516
+ readonly type: "string";
517
+ };
518
+ readonly example: {
519
+ readonly oneOf: readonly [{
520
+ readonly type: "string";
521
+ }, {
522
+ readonly type: "number";
523
+ }, {
524
+ readonly type: "boolean";
525
+ }, {
526
+ readonly type: "array";
527
+ }, {
528
+ readonly type: "object";
529
+ }];
530
+ };
531
+ readonly enum: {
532
+ readonly type: "array";
533
+ readonly items: {
534
+ readonly type: "string";
535
+ };
536
+ };
537
+ readonly pattern: {
538
+ readonly type: "string";
539
+ };
540
+ readonly format: {
541
+ readonly type: "string";
542
+ };
543
+ readonly minimum: {
544
+ readonly type: "number";
545
+ };
546
+ readonly maximum: {
547
+ readonly type: "number";
548
+ };
549
+ readonly items: {
550
+ readonly type: "object";
551
+ };
552
+ };
553
+ readonly additionalProperties: true;
554
+ };
555
+ };
556
+ readonly required: {
557
+ readonly type: "array";
558
+ readonly items: {
559
+ readonly type: "string";
560
+ };
561
+ };
562
+ readonly additionalProperties: {
563
+ readonly type: "boolean";
564
+ };
565
+ };
566
+ readonly additionalProperties: true;
567
+ };
568
+ readonly icon: {
569
+ readonly type: "object";
570
+ readonly properties: {
571
+ readonly src: {
572
+ readonly type: "string";
573
+ };
574
+ readonly srcSet: {
575
+ readonly type: "string";
576
+ };
577
+ };
578
+ readonly additionalProperties: false;
579
+ };
580
+ };
581
+ readonly additionalProperties: false;
582
+ };
583
+ };
158
584
  readonly catalogs: {
159
585
  readonly type: "object";
160
586
  readonly properties: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.entitiesCatalogConfigSchema = exports.entityCatalogSpecificCatalogSchema = exports.entityCatalogFilterSchema = exports.entityCatalogIncludeSchema = exports.entityCatalogExcludeSchema = void 0;
3
+ exports.entitiesCatalogConfigSchema = exports.entityCatalogEntityTypesSchema = exports.entityCatalogEntityTypeSchema = exports.entityCatalogMetadataSchema = exports.entityCatalogMetadataSchemaPropertySchema = exports.entityCatalogSpecificCatalogSchema = exports.entityCatalogFilterSchema = exports.entityCatalogIncludeSchema = exports.entityCatalogExcludeSchema = void 0;
4
4
  exports.entityCatalogExcludeSchema = {
5
5
  type: 'object',
6
6
  required: ['key'],
@@ -63,9 +63,108 @@ exports.entityCatalogSpecificCatalogSchema = {
63
63
  },
64
64
  additionalProperties: false,
65
65
  };
66
+ exports.entityCatalogMetadataSchemaPropertySchema = {
67
+ type: 'object',
68
+ properties: {
69
+ type: {
70
+ type: 'string',
71
+ enum: ['string', 'number', 'boolean', 'array', 'object'],
72
+ },
73
+ description: {
74
+ type: 'string',
75
+ },
76
+ example: {
77
+ oneOf: [
78
+ { type: 'string' },
79
+ { type: 'number' },
80
+ { type: 'boolean' },
81
+ { type: 'array' },
82
+ { type: 'object' },
83
+ ],
84
+ },
85
+ enum: {
86
+ type: 'array',
87
+ items: { type: 'string' },
88
+ },
89
+ pattern: {
90
+ type: 'string',
91
+ },
92
+ format: {
93
+ type: 'string',
94
+ },
95
+ minimum: {
96
+ type: 'number',
97
+ },
98
+ maximum: {
99
+ type: 'number',
100
+ },
101
+ items: {
102
+ type: 'object',
103
+ },
104
+ },
105
+ additionalProperties: true,
106
+ };
107
+ exports.entityCatalogMetadataSchema = {
108
+ type: 'object',
109
+ required: ['type', 'properties'],
110
+ properties: {
111
+ type: {
112
+ type: 'string',
113
+ enum: ['object'],
114
+ },
115
+ description: {
116
+ type: 'string',
117
+ },
118
+ properties: {
119
+ type: 'object',
120
+ additionalProperties: exports.entityCatalogMetadataSchemaPropertySchema,
121
+ },
122
+ required: {
123
+ type: 'array',
124
+ items: { type: 'string' },
125
+ },
126
+ additionalProperties: {
127
+ type: 'boolean',
128
+ },
129
+ },
130
+ additionalProperties: true,
131
+ };
132
+ exports.entityCatalogEntityTypeSchema = {
133
+ type: 'object',
134
+ required: ['name', 'description', 'metadataSchema'],
135
+ properties: {
136
+ name: {
137
+ type: 'string',
138
+ description: 'Display name of the entity type',
139
+ },
140
+ description: {
141
+ type: 'string',
142
+ description: 'Description of the entity type',
143
+ },
144
+ metadataSchema: exports.entityCatalogMetadataSchema,
145
+ icon: {
146
+ type: 'object',
147
+ properties: {
148
+ src: {
149
+ type: 'string',
150
+ },
151
+ srcSet: {
152
+ type: 'string',
153
+ },
154
+ },
155
+ additionalProperties: false,
156
+ },
157
+ },
158
+ additionalProperties: false,
159
+ };
160
+ exports.entityCatalogEntityTypesSchema = {
161
+ type: 'object',
162
+ additionalProperties: exports.entityCatalogEntityTypeSchema,
163
+ };
66
164
  exports.entitiesCatalogConfigSchema = {
67
165
  type: 'object',
68
166
  properties: {
167
+ entityTypes: exports.entityCatalogEntityTypesSchema,
69
168
  catalogs: {
70
169
  type: 'object',
71
170
  properties: {