@redocly/config 0.41.4 → 0.43.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.
- package/lib/root-config-schema.d.ts +1433 -3
- package/lib/root-config-schema.js +56 -3
- package/lib/types/catalog-entity-types.d.ts +1 -2
- package/lib/types/portal-shared-types.d.ts +3 -0
- package/lib-esm/root-config-schema.d.ts +1433 -3
- package/lib-esm/root-config-schema.js +55 -2
- package/lib-esm/types/catalog-entity-types.d.ts +1 -2
- package/lib-esm/types/portal-shared-types.d.ts +3 -0
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.accessConfigSchema = exports.l10nConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.graviteeAdapterAuthIdpSchema = exports.graviteeAdapterAuthStaticSchema = exports.rbacConfigSchema = exports.
|
|
3
|
+
exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.accessConfigSchema = exports.l10nConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.graviteeAdapterAuthIdpSchema = exports.graviteeAdapterAuthStaticSchema = exports.rbacConfigSchema = exports.rbacEntitiesCatalogConfigSchema = exports.apiFunctionsConfigSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.bannersConfigSchema = exports.bannerConfigSchema = exports.rbacScopeItemsSchema = exports.bannerColorSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.ssoDirectConfigSchema = exports.authProviderConfigSchema = exports.saml2ProviderConfigSchema = exports.oidcProviderConfigSchema = exports.oidcIssuerMetadataSchema = void 0;
|
|
4
4
|
const constants_1 = require("./constants");
|
|
5
5
|
const default_theme_config_schema_1 = require("./default-theme-config-schema");
|
|
6
6
|
const feedback_config_schema_1 = require("./feedback-config-schema");
|
|
@@ -107,6 +107,10 @@ exports.bannerColorSchema = {
|
|
|
107
107
|
enum: ['info', 'success', 'warning', 'error'],
|
|
108
108
|
default: 'info',
|
|
109
109
|
};
|
|
110
|
+
exports.rbacScopeItemsSchema = {
|
|
111
|
+
type: 'object',
|
|
112
|
+
additionalProperties: { type: 'string' },
|
|
113
|
+
};
|
|
110
114
|
exports.bannerConfigSchema = {
|
|
111
115
|
type: 'object',
|
|
112
116
|
properties: {
|
|
@@ -114,6 +118,7 @@ exports.bannerConfigSchema = {
|
|
|
114
118
|
dismissible: { type: 'boolean', default: false },
|
|
115
119
|
target: { type: 'string' },
|
|
116
120
|
color: exports.bannerColorSchema,
|
|
121
|
+
rbac: exports.rbacScopeItemsSchema,
|
|
117
122
|
},
|
|
118
123
|
required: ['content'],
|
|
119
124
|
additionalProperties: false,
|
|
@@ -257,9 +262,56 @@ exports.apiFunctionsConfigSchema = {
|
|
|
257
262
|
},
|
|
258
263
|
additionalProperties: false,
|
|
259
264
|
};
|
|
260
|
-
exports.
|
|
265
|
+
exports.rbacEntitiesCatalogConfigSchema = {
|
|
261
266
|
type: 'object',
|
|
262
|
-
|
|
267
|
+
properties: {
|
|
268
|
+
catalogs: {
|
|
269
|
+
type: 'object',
|
|
270
|
+
properties: {
|
|
271
|
+
all: exports.rbacScopeItemsSchema,
|
|
272
|
+
services: exports.rbacScopeItemsSchema,
|
|
273
|
+
domains: exports.rbacScopeItemsSchema,
|
|
274
|
+
teams: exports.rbacScopeItemsSchema,
|
|
275
|
+
users: exports.rbacScopeItemsSchema,
|
|
276
|
+
apiDescriptions: exports.rbacScopeItemsSchema,
|
|
277
|
+
dataSchemas: exports.rbacScopeItemsSchema,
|
|
278
|
+
apiOperations: exports.rbacScopeItemsSchema,
|
|
279
|
+
},
|
|
280
|
+
additionalProperties: exports.rbacScopeItemsSchema,
|
|
281
|
+
},
|
|
282
|
+
entitiesTypes: {
|
|
283
|
+
type: 'object',
|
|
284
|
+
properties: {
|
|
285
|
+
service: exports.rbacScopeItemsSchema,
|
|
286
|
+
domain: exports.rbacScopeItemsSchema,
|
|
287
|
+
team: exports.rbacScopeItemsSchema,
|
|
288
|
+
user: exports.rbacScopeItemsSchema,
|
|
289
|
+
apiDescription: exports.rbacScopeItemsSchema,
|
|
290
|
+
apiOperation: exports.rbacScopeItemsSchema,
|
|
291
|
+
dataSchema: exports.rbacScopeItemsSchema,
|
|
292
|
+
},
|
|
293
|
+
additionalProperties: exports.rbacScopeItemsSchema,
|
|
294
|
+
},
|
|
295
|
+
entitiesGroups: {
|
|
296
|
+
type: 'array',
|
|
297
|
+
items: {
|
|
298
|
+
type: 'object',
|
|
299
|
+
properties: {
|
|
300
|
+
entities: { type: 'array', items: { type: 'string' } },
|
|
301
|
+
config: exports.rbacScopeItemsSchema,
|
|
302
|
+
},
|
|
303
|
+
additionalProperties: false,
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
entities: {
|
|
307
|
+
type: 'object',
|
|
308
|
+
properties: {
|
|
309
|
+
'**': exports.rbacScopeItemsSchema,
|
|
310
|
+
},
|
|
311
|
+
additionalProperties: exports.rbacScopeItemsSchema,
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
additionalProperties: false,
|
|
263
315
|
};
|
|
264
316
|
exports.rbacConfigSchema = {
|
|
265
317
|
type: 'object',
|
|
@@ -283,6 +335,7 @@ exports.rbacConfigSchema = {
|
|
|
283
335
|
},
|
|
284
336
|
additionalProperties: exports.rbacScopeItemsSchema,
|
|
285
337
|
},
|
|
338
|
+
entitiesCatalog: exports.rbacEntitiesCatalogConfigSchema,
|
|
286
339
|
},
|
|
287
340
|
additionalProperties: exports.rbacScopeItemsSchema,
|
|
288
341
|
};
|
|
@@ -53,8 +53,8 @@ export type EntityContactFileSchema = FromSchema<typeof entityContactFileSchema>
|
|
|
53
53
|
export type EntityLinkFileSchema = FromSchema<typeof entityLinkFileSchema>;
|
|
54
54
|
export type EntityRelationFileSchema = FromSchema<typeof entityRelationFileSchema>;
|
|
55
55
|
export type EntityBaseFileSchema = {
|
|
56
|
+
type: string;
|
|
56
57
|
version?: string | null;
|
|
57
|
-
revision?: string;
|
|
58
58
|
key: string;
|
|
59
59
|
title: string;
|
|
60
60
|
summary?: string | null;
|
|
@@ -63,7 +63,6 @@ export type EntityBaseFileSchema = {
|
|
|
63
63
|
contact?: EntityContactFileSchema | null;
|
|
64
64
|
links?: EntityLinkFileSchema[] | null;
|
|
65
65
|
relations?: EntityRelationFileSchema[] | null;
|
|
66
|
-
type: string;
|
|
67
66
|
metadata?: DefaultMetadataSchema | null;
|
|
68
67
|
};
|
|
69
68
|
export type EntityFileSchema = (Omit<EntityBaseFileSchema, 'type'> & {
|
|
@@ -60,6 +60,7 @@ export type ItemBadge = {
|
|
|
60
60
|
name: string;
|
|
61
61
|
color?: string;
|
|
62
62
|
position?: 'before' | 'after';
|
|
63
|
+
icon?: string;
|
|
63
64
|
};
|
|
64
65
|
export type ResolvedNavGroupItem = {
|
|
65
66
|
type: 'group';
|
|
@@ -81,6 +82,7 @@ export type ResolvedNavGroupItem = {
|
|
|
81
82
|
separatorLine?: boolean;
|
|
82
83
|
linePosition?: 'top' | 'bottom';
|
|
83
84
|
routeSlug?: string;
|
|
85
|
+
badges?: ItemBadge[];
|
|
84
86
|
active?: boolean;
|
|
85
87
|
icon?: string;
|
|
86
88
|
srcSet?: string;
|
|
@@ -258,6 +260,7 @@ export type NavItem = {
|
|
|
258
260
|
$ref?: string;
|
|
259
261
|
disconnect?: boolean;
|
|
260
262
|
additionalProps?: Record<string, unknown>;
|
|
263
|
+
badges?: ItemBadge[];
|
|
261
264
|
};
|
|
262
265
|
export interface LogoConfig {
|
|
263
266
|
image?: string;
|