@redocly/config 0.41.3 → 0.42.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.
@@ -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.rbacScopeItemsSchema = exports.apiFunctionsConfigSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.bannersConfigSchema = exports.bannerConfigSchema = exports.bannerColorSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.ssoDirectConfigSchema = exports.authProviderConfigSchema = exports.saml2ProviderConfigSchema = exports.oidcProviderConfigSchema = exports.oidcIssuerMetadataSchema = void 0;
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.rbacScopeItemsSchema = {
265
+ exports.rbacEntitiesCatalogConfigSchema = {
261
266
  type: 'object',
262
- additionalProperties: { type: 'string' },
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
  };