@redocly/config 0.47.0 → 0.48.1

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 (80) hide show
  1. package/lib/index.d.ts +9 -9
  2. package/lib/index.js +1 -41
  3. package/lib/package.json +3 -0
  4. package/lib/root-config-schema.d.ts +16 -1
  5. package/lib/types/api-functions-types.d.ts +2 -2
  6. package/lib/types/asyncapi-types.d.ts +1 -1
  7. package/lib/types/catalog-entity-types.d.ts +2 -2
  8. package/lib/types/config-types.d.ts +10 -10
  9. package/lib/types/graphql-types.d.ts +1 -1
  10. package/lib/types/index.d.ts +4 -4
  11. package/lib/types/portal-shared-types.d.ts +4 -4
  12. package/lib/types/redoc-types.d.ts +1 -1
  13. package/lib-esm/index.d.ts +9 -9
  14. package/lib-esm/index.js +1 -10
  15. package/lib-esm/root-config-schema.d.ts +16 -1
  16. package/lib-esm/types/api-functions-types.d.ts +2 -2
  17. package/lib-esm/types/asyncapi-types.d.ts +1 -1
  18. package/lib-esm/types/catalog-entity-types.d.ts +2 -2
  19. package/lib-esm/types/config-types.d.ts +10 -10
  20. package/lib-esm/types/graphql-types.d.ts +1 -1
  21. package/lib-esm/types/index.d.ts +4 -4
  22. package/lib-esm/types/portal-shared-types.d.ts +4 -4
  23. package/lib-esm/types/redoc-types.d.ts +1 -1
  24. package/package.json +19 -4
  25. package/lib/asyncapi-config-schema.js +0 -53
  26. package/lib/common.js +0 -103
  27. package/lib/constants/config.js +0 -17
  28. package/lib/constants/entities.js +0 -58
  29. package/lib/constants/enum.js +0 -6
  30. package/lib/constants/shared.js +0 -22
  31. package/lib/default-theme-config-schema.js +0 -57
  32. package/lib/entities-catalog-config-schema.js +0 -186
  33. package/lib/entities-catalog-entity-file-schema.js +0 -283
  34. package/lib/ex-theme-config-schemas.js +0 -687
  35. package/lib/feedback-config-schema.js +0 -88
  36. package/lib/graphql-config-schema.js +0 -157
  37. package/lib/product-override-schema.js +0 -44
  38. package/lib/redoc-config-schema.js +0 -120
  39. package/lib/reference-docs-config-schema.js +0 -518
  40. package/lib/remove-property-recursively.js +0 -28
  41. package/lib/reunite-config-schema.js +0 -103
  42. package/lib/root-config-schema.js +0 -587
  43. package/lib/scorecards-config-schema.js +0 -242
  44. package/lib/types/api-functions-types.js +0 -3
  45. package/lib/types/asyncapi-types.js +0 -3
  46. package/lib/types/catalog-entity-types.js +0 -3
  47. package/lib/types/code-walkthrough-types.js +0 -3
  48. package/lib/types/config-types.js +0 -3
  49. package/lib/types/graphql-types.js +0 -3
  50. package/lib/types/index.js +0 -21
  51. package/lib/types/portal-shared-types.js +0 -18
  52. package/lib/types/redoc-types.js +0 -3
  53. package/lib-esm/asyncapi-config-schema.js +0 -50
  54. package/lib-esm/common.js +0 -100
  55. package/lib-esm/constants/config.js +0 -14
  56. package/lib-esm/constants/entities.js +0 -55
  57. package/lib-esm/constants/enum.js +0 -2
  58. package/lib-esm/constants/shared.js +0 -19
  59. package/lib-esm/default-theme-config-schema.js +0 -54
  60. package/lib-esm/entities-catalog-config-schema.js +0 -183
  61. package/lib-esm/entities-catalog-entity-file-schema.js +0 -280
  62. package/lib-esm/ex-theme-config-schemas.js +0 -684
  63. package/lib-esm/feedback-config-schema.js +0 -85
  64. package/lib-esm/graphql-config-schema.js +0 -154
  65. package/lib-esm/product-override-schema.js +0 -41
  66. package/lib-esm/redoc-config-schema.js +0 -117
  67. package/lib-esm/reference-docs-config-schema.js +0 -515
  68. package/lib-esm/remove-property-recursively.js +0 -25
  69. package/lib-esm/reunite-config-schema.js +0 -100
  70. package/lib-esm/root-config-schema.js +0 -584
  71. package/lib-esm/scorecards-config-schema.js +0 -239
  72. package/lib-esm/types/api-functions-types.js +0 -2
  73. package/lib-esm/types/asyncapi-types.js +0 -2
  74. package/lib-esm/types/catalog-entity-types.js +0 -2
  75. package/lib-esm/types/code-walkthrough-types.js +0 -2
  76. package/lib-esm/types/config-types.js +0 -2
  77. package/lib-esm/types/graphql-types.js +0 -2
  78. package/lib-esm/types/index.js +0 -5
  79. package/lib-esm/types/portal-shared-types.js +0 -2
  80. package/lib-esm/types/redoc-types.js +0 -2
@@ -1,587 +0,0 @@
1
- "use strict";
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.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
- const shared_1 = require("./constants/shared");
5
- const config_1 = require("./constants/config");
6
- const default_theme_config_schema_1 = require("./default-theme-config-schema");
7
- const feedback_config_schema_1 = require("./feedback-config-schema");
8
- const graphql_config_schema_1 = require("./graphql-config-schema");
9
- const remove_property_recursively_1 = require("./remove-property-recursively");
10
- const reunite_config_schema_1 = require("./reunite-config-schema");
11
- const ex_theme_config_schemas_1 = require("./ex-theme-config-schemas");
12
- const entities_catalog_config_schema_1 = require("./entities-catalog-config-schema");
13
- const scorecards_config_schema_1 = require("./scorecards-config-schema");
14
- const common_1 = require("./common");
15
- exports.oidcIssuerMetadataSchema = {
16
- type: 'object',
17
- properties: {
18
- end_session_endpoint: { type: 'string' },
19
- token_endpoint: { type: 'string' },
20
- authorization_endpoint: { type: 'string' },
21
- jwks_uri: { type: 'string' },
22
- },
23
- required: ['token_endpoint', 'authorization_endpoint'],
24
- additionalProperties: true,
25
- };
26
- exports.oidcProviderConfigSchema = {
27
- type: 'object',
28
- properties: {
29
- type: { type: 'string', const: shared_1.AuthProviderType.OIDC },
30
- title: { type: 'string' },
31
- pkce: { type: 'boolean', default: false },
32
- configurationUrl: { type: 'string', minLength: 1 },
33
- configuration: exports.oidcIssuerMetadataSchema,
34
- clientId: { type: 'string', minLength: 1 },
35
- clientSecret: { type: 'string', minLength: 0 },
36
- teamsClaimName: { type: 'string' },
37
- teamsClaimMap: { type: 'object', additionalProperties: { type: 'string' } },
38
- defaultTeams: { type: 'array', items: { type: 'string' } },
39
- scopes: { type: 'array', items: { type: 'string' } },
40
- tokenExpirationTime: { type: 'number' },
41
- authorizationRequestCustomParams: { type: 'object', additionalProperties: { type: 'string' } },
42
- introspectEndpoint: { type: 'string' },
43
- tokenRequestCustomParams: { type: 'object', additionalProperties: { type: 'string' } },
44
- audience: { type: 'array', items: { type: 'string' } },
45
- },
46
- required: ['type', 'clientId'],
47
- oneOf: [{ required: ['configurationUrl'] }, { required: ['configuration'] }],
48
- additionalProperties: false,
49
- };
50
- exports.saml2ProviderConfigSchema = {
51
- type: 'object',
52
- properties: {
53
- type: { type: 'string', const: shared_1.AuthProviderType.SAML2 },
54
- title: { type: 'string' },
55
- issuerId: { type: 'string' },
56
- entityId: { type: 'string' },
57
- ssoUrl: { type: 'string' },
58
- x509PublicCert: { type: 'string' },
59
- teamsAttributeName: { type: 'string', default: shared_1.DEFAULT_TEAM_CLAIM_NAME },
60
- teamsAttributeMap: { type: 'object', additionalProperties: { type: 'string' } },
61
- defaultTeams: { type: 'array', items: { type: 'string' } },
62
- },
63
- additionalProperties: false,
64
- required: ['type', 'issuerId', 'ssoUrl', 'x509PublicCert'],
65
- };
66
- exports.authProviderConfigSchema = {
67
- oneOf: [exports.oidcProviderConfigSchema, exports.saml2ProviderConfigSchema],
68
- discriminator: { propertyName: 'type' },
69
- };
70
- exports.ssoDirectConfigSchema = {
71
- type: 'object',
72
- additionalProperties: exports.authProviderConfigSchema,
73
- };
74
- exports.ssoConfigSchema = {
75
- oneOf: [
76
- {
77
- type: 'array',
78
- items: {
79
- type: 'string',
80
- enum: ['REDOCLY', 'CORPORATE', 'GUEST'],
81
- },
82
- uniqueItems: true,
83
- },
84
- {
85
- type: 'string',
86
- enum: ['REDOCLY', 'CORPORATE', 'GUEST'],
87
- },
88
- ],
89
- };
90
- const requiresLoginSchema = { type: 'boolean' };
91
- const logoutReturnUrlSchema = { type: 'string', pattern: '^https?://.*' };
92
- const residencySchema = { type: 'string', pattern: '^https?://.*' };
93
- exports.redirectConfigSchema = {
94
- type: 'object',
95
- properties: {
96
- to: { type: 'string' },
97
- type: { type: 'number', default: 301 },
98
- },
99
- additionalProperties: false,
100
- nodeTypeName: config_1.CONFIG_NODE_TYPE_NAMES.RedirectSource,
101
- description: 'Source is an absolute path that must start with a forward slash.',
102
- documentationLink: 'https://redocly.com/docs/realm/config/redirects#sources-map',
103
- };
104
- exports.redirectsConfigSchema = {
105
- type: 'object',
106
- additionalProperties: exports.redirectConfigSchema,
107
- default: {},
108
- nodeTypeName: config_1.CONFIG_NODE_TYPE_NAMES.Redirects,
109
- description: 'Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.',
110
- documentationLink: 'https://redocly.com/docs/realm/config/redirects',
111
- };
112
- exports.bannerColorSchema = {
113
- type: 'string',
114
- enum: ['info', 'success', 'warning', 'error'],
115
- default: 'info',
116
- };
117
- exports.rbacScopeItemsSchema = {
118
- type: 'object',
119
- additionalProperties: { type: 'string' },
120
- };
121
- exports.bannerConfigSchema = {
122
- type: 'object',
123
- properties: {
124
- content: { type: 'string' },
125
- dismissible: { type: 'boolean', default: false },
126
- target: { type: 'string' },
127
- color: exports.bannerColorSchema,
128
- rbac: exports.rbacScopeItemsSchema,
129
- },
130
- required: ['content'],
131
- additionalProperties: false,
132
- };
133
- exports.bannersConfigSchema = {
134
- type: 'array',
135
- items: exports.bannerConfigSchema,
136
- default: [],
137
- };
138
- exports.apiConfigSchema = {
139
- type: 'object',
140
- properties: Object.assign({ root: { type: 'string' }, output: { type: 'string', pattern: '(.ya?ml|.json)$' }, rbac: exports.rbacScopeItemsSchema, openapi: ex_theme_config_schemas_1.openapiConfigSchema, graphql: graphql_config_schema_1.graphqlConfigSchema,
141
- /**
142
- * @deprecated left for backwards compatibility
143
- */
144
- theme: {
145
- type: 'object',
146
- properties: {
147
- openapi: ex_theme_config_schemas_1.openapiConfigSchema,
148
- graphql: graphql_config_schema_1.graphqlConfigSchema,
149
- },
150
- additionalProperties: false,
151
- }, title: { type: 'string' }, metadata: { type: 'object', additionalProperties: true } }, common_1.configGovernanceSchema),
152
- required: ['root'],
153
- };
154
- const metadataConfigSchema = {
155
- type: 'object',
156
- additionalProperties: true,
157
- };
158
- const metadataGlobsConfigSchema = {
159
- type: 'object',
160
- additionalProperties: {
161
- type: 'object',
162
- additionalProperties: true,
163
- },
164
- };
165
- const llmstxtConfigSchema = {
166
- type: 'object',
167
- properties: {
168
- hide: {
169
- type: 'boolean',
170
- default: false,
171
- },
172
- title: {
173
- type: 'string',
174
- },
175
- description: {
176
- type: 'string',
177
- },
178
- details: {
179
- type: 'object',
180
- properties: {
181
- path: {
182
- type: 'string',
183
- },
184
- content: {
185
- type: 'string',
186
- },
187
- },
188
- additionalProperties: false,
189
- },
190
- excludeFiles: {
191
- type: 'array',
192
- items: { type: 'string' },
193
- default: [],
194
- },
195
- sections: {
196
- type: 'array',
197
- items: {
198
- type: 'object',
199
- properties: {
200
- title: { type: 'string' },
201
- description: { type: 'string' },
202
- includeFiles: {
203
- type: 'array',
204
- items: { type: 'string' },
205
- default: [],
206
- },
207
- excludeFiles: {
208
- type: 'array',
209
- items: { type: 'string' },
210
- default: [],
211
- },
212
- },
213
- required: ['title'],
214
- additionalProperties: false,
215
- },
216
- },
217
- },
218
- default: {
219
- hide: false,
220
- title: undefined,
221
- description: undefined,
222
- details: undefined,
223
- sections: [
224
- {
225
- title: 'Table of contents',
226
- includeFiles: ['**/*'],
227
- excludeFiles: [],
228
- },
229
- ],
230
- },
231
- additionalProperties: false,
232
- };
233
- exports.seoConfigSchema = {
234
- type: 'object',
235
- properties: {
236
- title: { type: 'string' },
237
- projectTitle: { type: 'string' },
238
- description: { type: 'string' },
239
- siteUrl: { type: 'string' },
240
- image: { type: 'string' },
241
- keywords: {
242
- oneOf: [{ type: 'array', items: { type: 'string' } }, { type: 'string' }],
243
- },
244
- lang: { type: 'string' },
245
- jsonLd: { type: 'object' },
246
- meta: {
247
- type: 'array',
248
- items: {
249
- type: 'object',
250
- properties: {
251
- name: { type: 'string' },
252
- content: { type: 'string' },
253
- },
254
- required: ['name', 'content'],
255
- additionalProperties: false,
256
- },
257
- },
258
- llmstxt: llmstxtConfigSchema,
259
- },
260
- default: {
261
- llmstxt: llmstxtConfigSchema.default,
262
- },
263
- additionalProperties: false,
264
- };
265
- exports.apiFunctionsConfigSchema = {
266
- type: 'object',
267
- properties: {
268
- folders: { type: 'array', items: { type: 'string' } },
269
- },
270
- additionalProperties: false,
271
- };
272
- exports.rbacEntitiesCatalogConfigSchema = {
273
- type: 'object',
274
- properties: {
275
- catalogs: {
276
- type: 'object',
277
- properties: {
278
- all: exports.rbacScopeItemsSchema,
279
- services: exports.rbacScopeItemsSchema,
280
- domains: exports.rbacScopeItemsSchema,
281
- teams: exports.rbacScopeItemsSchema,
282
- users: exports.rbacScopeItemsSchema,
283
- apiDescriptions: exports.rbacScopeItemsSchema,
284
- dataSchemas: exports.rbacScopeItemsSchema,
285
- apiOperations: exports.rbacScopeItemsSchema,
286
- },
287
- additionalProperties: exports.rbacScopeItemsSchema,
288
- },
289
- entitiesTypes: {
290
- type: 'object',
291
- properties: {
292
- service: exports.rbacScopeItemsSchema,
293
- domain: exports.rbacScopeItemsSchema,
294
- team: exports.rbacScopeItemsSchema,
295
- user: exports.rbacScopeItemsSchema,
296
- apiDescription: exports.rbacScopeItemsSchema,
297
- apiOperation: exports.rbacScopeItemsSchema,
298
- dataSchema: exports.rbacScopeItemsSchema,
299
- },
300
- additionalProperties: exports.rbacScopeItemsSchema,
301
- },
302
- entitiesGroups: {
303
- type: 'array',
304
- items: {
305
- type: 'object',
306
- properties: {
307
- entities: { type: 'array', items: { type: 'string' } },
308
- config: exports.rbacScopeItemsSchema,
309
- },
310
- additionalProperties: false,
311
- },
312
- },
313
- entities: {
314
- type: 'object',
315
- properties: {
316
- '**': exports.rbacScopeItemsSchema,
317
- },
318
- additionalProperties: exports.rbacScopeItemsSchema,
319
- },
320
- },
321
- additionalProperties: false,
322
- };
323
- exports.rbacConfigSchema = {
324
- type: 'object',
325
- properties: {
326
- teamNamePatterns: { type: 'array', items: { type: 'string' } },
327
- teamFolders: { type: 'array', items: { type: 'string' } },
328
- teamFoldersBaseRoles: exports.rbacScopeItemsSchema,
329
- cms: exports.rbacScopeItemsSchema, // deprecated in favor of reunite
330
- reunite: exports.rbacScopeItemsSchema,
331
- features: {
332
- type: 'object',
333
- properties: {
334
- aiSearch: exports.rbacScopeItemsSchema,
335
- },
336
- additionalProperties: false,
337
- },
338
- content: {
339
- type: 'object',
340
- properties: {
341
- '**': exports.rbacScopeItemsSchema,
342
- },
343
- additionalProperties: exports.rbacScopeItemsSchema,
344
- },
345
- entitiesCatalog: exports.rbacEntitiesCatalogConfigSchema,
346
- },
347
- additionalProperties: exports.rbacScopeItemsSchema,
348
- };
349
- exports.graviteeAdapterAuthStaticSchema = {
350
- type: 'object',
351
- properties: { static: { type: 'string' } },
352
- additionalProperties: false,
353
- required: ['static'],
354
- };
355
- exports.graviteeAdapterAuthIdpSchema = {
356
- type: 'object',
357
- properties: { idp: { type: 'string' } },
358
- additionalProperties: false,
359
- required: ['idp'],
360
- };
361
- exports.graviteeAdapterConfigSchema = {
362
- type: 'object',
363
- properties: {
364
- type: { type: 'string', const: 'GRAVITEE' },
365
- apiBaseUrl: { type: 'string' },
366
- env: { type: 'string' },
367
- allowApiProductsOutsideCatalog: { type: 'boolean', default: false },
368
- stage: { type: 'string', default: 'non-production' },
369
- auth: {
370
- oneOf: [exports.graviteeAdapterAuthStaticSchema, exports.graviteeAdapterAuthIdpSchema],
371
- },
372
- },
373
- additionalProperties: false,
374
- required: ['type', 'apiBaseUrl'],
375
- };
376
- exports.apigeeAdapterAuthOauth2Schema = {
377
- type: 'object',
378
- properties: {
379
- type: { type: 'string', const: shared_1.ApigeeDevOnboardingIntegrationAuthType.OAUTH2 },
380
- tokenEndpoint: { type: 'string' },
381
- clientId: { type: 'string' },
382
- clientSecret: { type: 'string' },
383
- },
384
- additionalProperties: false,
385
- required: ['type', 'tokenEndpoint', 'clientId', 'clientSecret'],
386
- };
387
- exports.apigeeAdapterAuthServiceAccountSchema = {
388
- type: 'object',
389
- properties: {
390
- type: { type: 'string', const: shared_1.ApigeeDevOnboardingIntegrationAuthType.SERVICE_ACCOUNT },
391
- serviceAccountEmail: { type: 'string' },
392
- serviceAccountPrivateKey: { type: 'string' },
393
- },
394
- additionalProperties: false,
395
- required: ['type', 'serviceAccountEmail', 'serviceAccountPrivateKey'],
396
- };
397
- exports.apigeeXAdapterConfigSchema = {
398
- type: 'object',
399
- properties: {
400
- type: { type: 'string', const: 'APIGEE_X' },
401
- apiUrl: { type: 'string' },
402
- stage: { type: 'string', default: 'non-production' },
403
- organizationName: { type: 'string' },
404
- ignoreApiProducts: { type: 'array', items: { type: 'string' } },
405
- allowApiProductsOutsideCatalog: { type: 'boolean', default: false },
406
- auth: {
407
- type: 'object',
408
- oneOf: [exports.apigeeAdapterAuthOauth2Schema, exports.apigeeAdapterAuthServiceAccountSchema],
409
- discriminator: { propertyName: 'type' },
410
- },
411
- },
412
- additionalProperties: false,
413
- required: ['type', 'organizationName', 'auth'],
414
- };
415
- exports.apigeeEdgeAdapterConfigSchema = Object.assign(Object.assign({}, exports.apigeeXAdapterConfigSchema), { properties: Object.assign(Object.assign({}, exports.apigeeXAdapterConfigSchema.properties), { type: { type: 'string', const: 'APIGEE_EDGE' } }) });
416
- exports.devOnboardingAdapterConfigSchema = {
417
- type: 'object',
418
- oneOf: [exports.apigeeXAdapterConfigSchema, exports.apigeeEdgeAdapterConfigSchema, exports.graviteeAdapterConfigSchema],
419
- discriminator: { propertyName: 'type' },
420
- };
421
- const devOnboardingConfigSchema = {
422
- type: 'object',
423
- required: ['adapters'],
424
- additionalProperties: false,
425
- properties: {
426
- adapters: {
427
- type: 'array',
428
- items: exports.devOnboardingAdapterConfigSchema,
429
- },
430
- },
431
- };
432
- exports.l10nConfigSchema = {
433
- type: 'object',
434
- properties: {
435
- defaultLocale: {
436
- type: 'string',
437
- },
438
- locales: {
439
- type: 'array',
440
- items: {
441
- type: 'object',
442
- properties: {
443
- code: {
444
- type: 'string',
445
- },
446
- name: {
447
- type: 'string',
448
- },
449
- },
450
- required: ['code'],
451
- },
452
- },
453
- },
454
- additionalProperties: false,
455
- required: ['defaultLocale'],
456
- };
457
- const responseHeaderSchema = {
458
- type: 'object',
459
- properties: {
460
- name: { type: 'string' },
461
- value: { type: 'string' },
462
- },
463
- additionalProperties: false,
464
- required: ['name', 'value'],
465
- };
466
- const mcpConfigSchema = {
467
- type: 'object',
468
- properties: {
469
- hide: { type: 'boolean', default: false },
470
- docs: {
471
- type: 'object',
472
- properties: {
473
- hide: { type: 'boolean', default: false },
474
- name: { type: 'string', default: 'Docs MCP server' },
475
- ignore: {
476
- type: 'array',
477
- items: { type: 'string' },
478
- default: [],
479
- },
480
- },
481
- additionalProperties: false,
482
- },
483
- },
484
- additionalProperties: false,
485
- default: {
486
- hide: false,
487
- docs: {
488
- hide: false,
489
- name: 'MCP server',
490
- ignore: [],
491
- },
492
- },
493
- };
494
- exports.accessConfigSchema = {
495
- type: 'object',
496
- properties: {
497
- requiresLogin: requiresLoginSchema,
498
- logoutReturnUrl: logoutReturnUrlSchema,
499
- residency: residencySchema,
500
- sso: exports.ssoConfigSchema,
501
- rbac: exports.rbacConfigSchema,
502
- },
503
- additionalProperties: false,
504
- };
505
- exports.redoclyConfigSchema = {
506
- type: 'object',
507
- properties: Object.assign(Object.assign({
508
- /**
509
- * @deprecated Should use `plugins` instead
510
- */
511
- imports: {
512
- type: 'array',
513
- items: { type: 'string' },
514
- }, licenseKey: { type: 'string' }, redirects: exports.redirectsConfigSchema, seo: exports.seoConfigSchema,
515
- /**
516
- * @deprecated Should use `access.rbac` instead
517
- */
518
- rbac: exports.rbacConfigSchema, apiFunctions: exports.apiFunctionsConfigSchema,
519
- /**
520
- * @deprecated Should use `access.requiresLogin` instead
521
- */
522
- requiresLogin: requiresLoginSchema, responseHeaders: {
523
- type: 'object',
524
- additionalProperties: {
525
- type: 'array',
526
- items: responseHeaderSchema,
527
- },
528
- }, mockServer: {
529
- type: 'object',
530
- properties: {
531
- off: { type: 'boolean', default: false },
532
- position: { type: 'string', enum: ['first', 'last', 'replace', 'off'], default: 'first' },
533
- strictExamples: { type: 'boolean', default: false },
534
- errorIfForcedExampleNotFound: { type: 'boolean', default: false },
535
- description: { type: 'string' },
536
- },
537
- }, apis: {
538
- type: 'object',
539
- additionalProperties: exports.apiConfigSchema,
540
- } }, common_1.configGovernanceSchema), { ssoDirect: exports.ssoDirectConfigSchema,
541
- /**
542
- * @deprecated Should use `access.sso` instead
543
- */
544
- sso: exports.ssoConfigSchema,
545
- /**
546
- * @deprecated Should use `access.residency` instead
547
- */
548
- residency: residencySchema,
549
- /**
550
- * @deprecated Should use `access.logoutReturnUrl` instead
551
- */
552
- logoutReturnUrl: logoutReturnUrlSchema, access: exports.accessConfigSchema, developerOnboarding: devOnboardingConfigSchema, removeAttribution: { type: 'boolean' }, i18n: exports.l10nConfigSchema, l10n: exports.l10nConfigSchema, metadata: metadataConfigSchema, metadataGlobs: metadataGlobsConfigSchema, ignore: { type: 'array', items: { type: 'string' } },
553
- /**
554
- * @deprecated properties moved to the root of the config
555
- */
556
- theme: default_theme_config_schema_1.themeConfigSchema, reunite: reunite_config_schema_1.reuniteConfigSchema,
557
- // Ex theme properties
558
- logo: ex_theme_config_schemas_1.logoConfigSchema, navbar: ex_theme_config_schemas_1.navbarConfigSchema, products: ex_theme_config_schemas_1.productsConfigSchema, footer: ex_theme_config_schemas_1.footerConfigSchema, sidebar: ex_theme_config_schemas_1.sidebarConfigSchema, scripts: ex_theme_config_schemas_1.scriptsConfigSchema, links: ex_theme_config_schemas_1.linksConfigSchema, feedback: feedback_config_schema_1.feedbackConfigSchema, search: ex_theme_config_schemas_1.searchConfigSchema, aiAssistant: ex_theme_config_schemas_1.aiAssistantSchema, colorMode: ex_theme_config_schemas_1.colorModeConfigSchema, palette: ex_theme_config_schemas_1.paletteConfigSchema, navigation: ex_theme_config_schemas_1.navigationConfigSchema, codeSnippet: ex_theme_config_schemas_1.codeSnippetConfigSchema, markdown: ex_theme_config_schemas_1.markdownConfigSchema, openapi: ex_theme_config_schemas_1.openapiConfigSchema, graphql: graphql_config_schema_1.graphqlConfigSchema, analytics: ex_theme_config_schemas_1.analyticsConfigSchema, userMenu: ex_theme_config_schemas_1.userMenuConfigSchema, versionPicker: ex_theme_config_schemas_1.versionPickerConfigSchema, breadcrumbs: ex_theme_config_schemas_1.breadcrumbsConfigSchema,
559
- /**
560
- * @deprecated Should use `catalogClassic` instead
561
- */
562
- catalog: ex_theme_config_schemas_1.catalogsConfigSchema, entitiesCatalog: entities_catalog_config_schema_1.entitiesCatalogConfigSchema, catalogClassic: ex_theme_config_schemas_1.catalogsConfigSchema,
563
- /**
564
- * @deprecated Should use `scorecardClassic` instead
565
- */
566
- scorecard: ex_theme_config_schemas_1.scorecardConfigSchema, scorecardClassic: ex_theme_config_schemas_1.scorecardConfigSchema, scorecards: scorecards_config_schema_1.scorecardsConfigSchema, mcp: mcpConfigSchema, corsProxy: {
567
- type: 'object',
568
- properties: {
569
- allowedTargets: {
570
- type: 'array',
571
- items: { type: 'string' },
572
- },
573
- },
574
- additionalProperties: false,
575
- }, banner: exports.bannersConfigSchema }),
576
- default: { redirects: {}, seo: exports.seoConfigSchema.default },
577
- additionalProperties: true,
578
- };
579
- const environmentSchema = Object.assign(Object.assign({}, (0, remove_property_recursively_1.removePropertyRecursively)(exports.redoclyConfigSchema, 'default')), { additionalProperties: false });
580
- exports.rootRedoclyConfigSchema = Object.assign(Object.assign({ $id: 'root-redocly-config' }, exports.redoclyConfigSchema), { properties: Object.assign(Object.assign({ plugins: {
581
- type: 'array',
582
- items: { type: 'string' },
583
- } }, exports.redoclyConfigSchema.properties), { env: {
584
- type: 'object',
585
- additionalProperties: environmentSchema, // TODO: if we want full validation we need to override apis, theme and the root
586
- } }), default: {}, additionalProperties: false });
587
- //# sourceMappingURL=root-config-schema.js.map