@redocly/config 0.31.0 → 0.33.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.
Files changed (43) hide show
  1. package/lib/constants.d.ts +1 -0
  2. package/lib/constants.js +28 -1
  3. package/lib/default-theme-config-schema.d.ts +106 -0
  4. package/lib/entities-catalog-config-schema.d.ts +426 -0
  5. package/lib/entities-catalog-config-schema.js +100 -1
  6. package/lib/entities-catalog-entity-file-schema.d.ts +964 -0
  7. package/lib/entities-catalog-entity-file-schema.js +273 -0
  8. package/lib/ex-theme-config-schemas.d.ts +3 -0
  9. package/lib/index.d.ts +2 -1
  10. package/lib/index.js +3 -1
  11. package/lib/product-override-schema.d.ts +15 -0
  12. package/lib/redoc-config-schema.d.ts +3 -0
  13. package/lib/redoc-config-schema.js +1 -0
  14. package/lib/reunite-config-schema.d.ts +1 -1
  15. package/lib/reunite-config-schema.js +1 -1
  16. package/lib/root-config-schema.d.ts +4325 -5128
  17. package/lib/root-config-schema.js +1 -1
  18. package/lib/types/api-functions-types.d.ts +1 -1
  19. package/lib/types/catalog-entity-types.d.ts +42 -2
  20. package/lib/types/config-types.d.ts +0 -2
  21. package/lib/types/portal-shared-types.d.ts +1 -1
  22. package/lib-esm/constants.d.ts +1 -0
  23. package/lib-esm/constants.js +27 -0
  24. package/lib-esm/default-theme-config-schema.d.ts +106 -0
  25. package/lib-esm/entities-catalog-config-schema.d.ts +426 -0
  26. package/lib-esm/entities-catalog-config-schema.js +99 -0
  27. package/lib-esm/entities-catalog-entity-file-schema.d.ts +964 -0
  28. package/lib-esm/entities-catalog-entity-file-schema.js +270 -0
  29. package/lib-esm/ex-theme-config-schemas.d.ts +3 -0
  30. package/lib-esm/index.d.ts +2 -1
  31. package/lib-esm/index.js +2 -1
  32. package/lib-esm/product-override-schema.d.ts +15 -0
  33. package/lib-esm/redoc-config-schema.d.ts +3 -0
  34. package/lib-esm/redoc-config-schema.js +1 -0
  35. package/lib-esm/reunite-config-schema.d.ts +1 -1
  36. package/lib-esm/reunite-config-schema.js +1 -1
  37. package/lib-esm/root-config-schema.d.ts +4325 -5128
  38. package/lib-esm/root-config-schema.js +1 -1
  39. package/lib-esm/types/api-functions-types.d.ts +1 -1
  40. package/lib-esm/types/catalog-entity-types.d.ts +42 -2
  41. package/lib-esm/types/config-types.d.ts +0 -2
  42. package/lib-esm/types/portal-shared-types.d.ts +1 -1
  43. package/package.json +1 -1
@@ -13,3 +13,4 @@ export declare enum LayoutVariant {
13
13
  STACKED = "stacked",
14
14
  THREE_PANEL = "three-panel"
15
15
  }
16
+ export declare const ENTITY_RELATION_TYPES: readonly ["partOf", "hasParts", "creates", "createdBy", "owns", "ownedBy", "implements", "implementedBy", "dependsOn", "dependencyOf", "uses", "usedBy", "produces", "consumes", "linksTo", "supersedes", "supersededBy", "compatibleWith", "extends", "extendedBy", "relatesTo", "hasMember", "memberOf", "triggers", "triggeredBy"];
package/lib/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LayoutVariant = exports.REDOCLY_ROUTE_RBAC = exports.REDOCLY_TEAMS_RBAC = exports.ApigeeDevOnboardingIntegrationAuthType = exports.AuthProviderType = exports.DEFAULT_TEAM_CLAIM_NAME = void 0;
3
+ exports.ENTITY_RELATION_TYPES = exports.LayoutVariant = exports.REDOCLY_ROUTE_RBAC = exports.REDOCLY_TEAMS_RBAC = exports.ApigeeDevOnboardingIntegrationAuthType = exports.AuthProviderType = exports.DEFAULT_TEAM_CLAIM_NAME = void 0;
4
4
  exports.DEFAULT_TEAM_CLAIM_NAME = 'https://redocly.com/sso/teams';
5
5
  var AuthProviderType;
6
6
  (function (AuthProviderType) {
@@ -19,4 +19,31 @@ var LayoutVariant;
19
19
  LayoutVariant["STACKED"] = "stacked";
20
20
  LayoutVariant["THREE_PANEL"] = "three-panel";
21
21
  })(LayoutVariant || (exports.LayoutVariant = LayoutVariant = {}));
22
+ exports.ENTITY_RELATION_TYPES = [
23
+ 'partOf',
24
+ 'hasParts',
25
+ 'creates',
26
+ 'createdBy',
27
+ 'owns',
28
+ 'ownedBy',
29
+ 'implements',
30
+ 'implementedBy',
31
+ 'dependsOn',
32
+ 'dependencyOf',
33
+ 'uses',
34
+ 'usedBy',
35
+ 'produces',
36
+ 'consumes',
37
+ 'linksTo',
38
+ 'supersedes',
39
+ 'supersededBy',
40
+ 'compatibleWith',
41
+ 'extends',
42
+ 'extendedBy',
43
+ 'relatesTo',
44
+ 'hasMember',
45
+ 'memberOf',
46
+ 'triggers',
47
+ 'triggeredBy',
48
+ ];
22
49
  //# sourceMappingURL=constants.js.map
@@ -2948,6 +2948,9 @@ export declare const themeConfigSchema: {
2948
2948
  readonly excludeFromSearch: {
2949
2949
  readonly type: "boolean";
2950
2950
  };
2951
+ readonly showSchemaCatalogLinks: {
2952
+ readonly type: "boolean";
2953
+ };
2951
2954
  };
2952
2955
  readonly type: "object";
2953
2956
  readonly additionalProperties: false;
@@ -3982,6 +3985,109 @@ export declare const themeConfigSchema: {
3982
3985
  readonly entitiesCatalog: {
3983
3986
  readonly type: "object";
3984
3987
  readonly properties: {
3988
+ readonly entityTypes: {
3989
+ readonly type: "object";
3990
+ readonly additionalProperties: {
3991
+ readonly type: "object";
3992
+ readonly required: readonly ["name", "description", "metadataSchema"];
3993
+ readonly properties: {
3994
+ readonly name: {
3995
+ readonly type: "string";
3996
+ readonly description: "Display name of the entity type";
3997
+ };
3998
+ readonly description: {
3999
+ readonly type: "string";
4000
+ readonly description: "Description of the entity type";
4001
+ };
4002
+ readonly metadataSchema: {
4003
+ readonly type: "object";
4004
+ readonly required: readonly ["type", "properties"];
4005
+ readonly properties: {
4006
+ readonly type: {
4007
+ readonly type: "string";
4008
+ readonly enum: readonly ["object"];
4009
+ };
4010
+ readonly description: {
4011
+ readonly type: "string";
4012
+ };
4013
+ readonly properties: {
4014
+ readonly type: "object";
4015
+ readonly additionalProperties: {
4016
+ readonly type: "object";
4017
+ readonly properties: {
4018
+ readonly type: {
4019
+ readonly type: "string";
4020
+ readonly enum: readonly ["string", "number", "boolean", "array", "object"];
4021
+ };
4022
+ readonly description: {
4023
+ readonly type: "string";
4024
+ };
4025
+ readonly example: {
4026
+ readonly oneOf: readonly [{
4027
+ readonly type: "string";
4028
+ }, {
4029
+ readonly type: "number";
4030
+ }, {
4031
+ readonly type: "boolean";
4032
+ }, {
4033
+ readonly type: "array";
4034
+ }, {
4035
+ readonly type: "object";
4036
+ }];
4037
+ };
4038
+ readonly enum: {
4039
+ readonly type: "array";
4040
+ readonly items: {
4041
+ readonly type: "string";
4042
+ };
4043
+ };
4044
+ readonly pattern: {
4045
+ readonly type: "string";
4046
+ };
4047
+ readonly format: {
4048
+ readonly type: "string";
4049
+ };
4050
+ readonly minimum: {
4051
+ readonly type: "number";
4052
+ };
4053
+ readonly maximum: {
4054
+ readonly type: "number";
4055
+ };
4056
+ readonly items: {
4057
+ readonly type: "object";
4058
+ };
4059
+ };
4060
+ readonly additionalProperties: true;
4061
+ };
4062
+ };
4063
+ readonly required: {
4064
+ readonly type: "array";
4065
+ readonly items: {
4066
+ readonly type: "string";
4067
+ };
4068
+ };
4069
+ readonly additionalProperties: {
4070
+ readonly type: "boolean";
4071
+ };
4072
+ };
4073
+ readonly additionalProperties: true;
4074
+ };
4075
+ readonly icon: {
4076
+ readonly type: "object";
4077
+ readonly properties: {
4078
+ readonly src: {
4079
+ readonly type: "string";
4080
+ };
4081
+ readonly srcSet: {
4082
+ readonly type: "string";
4083
+ };
4084
+ };
4085
+ readonly additionalProperties: false;
4086
+ };
4087
+ };
4088
+ readonly additionalProperties: false;
4089
+ };
4090
+ };
3985
4091
  readonly catalogs: {
3986
4092
  readonly type: "object";
3987
4093
  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: {