@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.
@@ -404,7 +404,7 @@ exports.redoclyConfigSchema = {
404
404
  }, apis: {
405
405
  type: 'object',
406
406
  additionalProperties: exports.apiConfigSchema,
407
- }, extends: { type: 'array', items: { type: 'string' } } }, common_1.ruleSchemas), common_1.decoratorsSchemas), common_1.preprocessorSchemas), { ssoDirect: exports.ssoDirectConfigSchema, sso: exports.ssoConfigSchema, residency: { type: 'string' }, developerOnboarding: devOnboardingConfigSchema, removeAttribution: { type: 'boolean' }, i18n: exports.l10nConfigSchema, l10n: exports.l10nConfigSchema, metadata: metadataConfigSchema, metadataGlobs: metadataGlobsConfigSchema, ignore: { type: 'array', items: { type: 'string' } },
407
+ }, extends: { type: 'array', items: { type: 'string' } } }, common_1.ruleSchemas), common_1.decoratorsSchemas), common_1.preprocessorSchemas), { ssoDirect: exports.ssoDirectConfigSchema, sso: exports.ssoConfigSchema, residency: { type: 'string', pattern: '^https?://.*' }, developerOnboarding: devOnboardingConfigSchema, removeAttribution: { type: 'boolean' }, i18n: exports.l10nConfigSchema, l10n: exports.l10nConfigSchema, metadata: metadataConfigSchema, metadataGlobs: metadataGlobsConfigSchema, ignore: { type: 'array', items: { type: 'string' } },
408
408
  /**
409
409
  * @deprecated properties moved to the root of the config
410
410
  */
@@ -30,7 +30,7 @@ export type ApiFunctionsContext = {
30
30
  query: Record<string, string | string[]>;
31
31
  cookies: Record<string, string>;
32
32
  } & ApiFunctionsContextMethods;
33
- export type ApiFunctionsHandler = (request: Request, context: ApiFunctionsContext,
33
+ export type ApiRoutesHandler = (request: Request, context: ApiFunctionsContext,
34
34
  /**
35
35
  * @deprecated `staticData` is deprecated.
36
36
  */
@@ -1,6 +1,7 @@
1
1
  import type { FromSchema } from 'json-schema-to-ts';
2
- import type { entityCatalogSpecificCatalogSchema } from '../entities-catalog-config-schema';
2
+ import type { entityCatalogEntityTypeSchema, entityCatalogSpecificCatalogSchema } from '../entities-catalog-config-schema';
3
3
  export type EntityCatalogSpecificCatalogConfig = FromSchema<typeof entityCatalogSpecificCatalogSchema>;
4
+ export type EntityCatalogEntityTypeConfig = FromSchema<typeof entityCatalogEntityTypeSchema>;
4
5
  export type CatalogConfigEntityExclude = {
5
6
  key: string;
6
7
  };
@@ -30,7 +31,7 @@ export type CatalogEntityConfig = {
30
31
  descriptionTranslationKey?: string;
31
32
  catalogSwitcherLabelTranslationKey?: string;
32
33
  };
33
- export type EntitiesCatalogConfigTypes = {
34
+ export type EntitiesCatalogConfig = {
34
35
  catalogs?: {
35
36
  all?: EntityCatalogSpecificCatalogConfig;
36
37
  services?: EntityCatalogSpecificCatalogConfig;
@@ -42,4 +43,5 @@ export type EntitiesCatalogConfigTypes = {
42
43
  apiOperations?: EntityCatalogSpecificCatalogConfig;
43
44
  [catalogName: string]: EntityCatalogSpecificCatalogConfig | undefined;
44
45
  };
46
+ entityTypes?: Record<string, EntityCatalogEntityTypeConfig>;
45
47
  };
@@ -7,7 +7,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 { reuniteConfigSchema } from '../reunite-config-schema';
9
9
  import type { optionalEmailSettings, reasonsSettings } from '../feedback-config-schema';
10
- import type { EntitiesCatalogConfigTypes } from './catalog-entity-types';
11
10
  /**
12
11
  * @deprecated left for backwards compatibility. To be removed in Realm 1.0
13
12
  */
@@ -25,7 +24,6 @@ export type SegmentAnalyticsConfig = FromSchema<typeof segmentAnalyticsConfigSch
25
24
  export type GtmAnalyticsConfig = FromSchema<typeof gtmAnalyticsConfigSchema>;
26
25
  export type GoogleAnalyticsConfig = FromSchema<typeof googleAnalyticsConfigSchema>;
27
26
  export type CatalogConfig = FromSchema<typeof catalogSchema>;
28
- export type EntitiesCatalogConfig = EntitiesCatalogConfigTypes;
29
27
  export type CatalogFilterConfig = FromSchema<typeof catalogFilterSchema>;
30
28
  export type ReuniteConfig = FromSchema<typeof reuniteConfigSchema>;
31
29
  export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
@@ -3,7 +3,7 @@ import type { LayoutVariant, REDOCLY_ROUTE_RBAC, REDOCLY_TEAMS_RBAC } from '../c
3
3
  import type { ProductConfig, ProductGoogleAnalyticsConfig, RbacScopeItems, RedoclyConfig, SeoConfig } from './config-types';
4
4
  import type { CatalogEntityConfig } from './catalog-entity-types';
5
5
  export * from './code-walkthrough-types';
6
- export type UiAccessibleConfig = Pick<RedoclyConfig, 'logo' | 'navbar' | 'products' | 'footer' | 'sidebar' | 'scripts' | 'links' | 'feedback' | 'search' | 'colorMode' | 'navigation' | 'codeSnippet' | 'markdown' | 'openapi' | 'graphql' | 'analytics' | 'userMenu' | 'versionPicker' | 'breadcrumbs' | 'catalog' | 'scorecard'> & {
6
+ export type UiAccessibleConfig = Pick<RedoclyConfig, 'logo' | 'navbar' | 'products' | 'footer' | 'sidebar' | 'scripts' | 'links' | 'feedback' | 'search' | 'colorMode' | 'navigation' | 'codeSnippet' | 'markdown' | 'openapi' | 'graphql' | 'analytics' | 'userMenu' | 'versionPicker' | 'breadcrumbs' | 'catalog' | 'scorecard' | 'entitiesCatalog'> & {
7
7
  auth?: {
8
8
  idpsInfo?: {
9
9
  idpId: string;
@@ -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: {