@redocly/config 0.48.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 +1 -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 +1 -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 -588
  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 -585
  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,588 +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
- trackingId: { type: 'string' },
125
- content: { type: 'string' },
126
- dismissible: { type: 'boolean', default: false },
127
- target: { type: 'string' },
128
- color: exports.bannerColorSchema,
129
- rbac: exports.rbacScopeItemsSchema,
130
- },
131
- required: ['content'],
132
- additionalProperties: false,
133
- };
134
- exports.bannersConfigSchema = {
135
- type: 'array',
136
- items: exports.bannerConfigSchema,
137
- default: [],
138
- };
139
- exports.apiConfigSchema = {
140
- type: 'object',
141
- 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,
142
- /**
143
- * @deprecated left for backwards compatibility
144
- */
145
- theme: {
146
- type: 'object',
147
- properties: {
148
- openapi: ex_theme_config_schemas_1.openapiConfigSchema,
149
- graphql: graphql_config_schema_1.graphqlConfigSchema,
150
- },
151
- additionalProperties: false,
152
- }, title: { type: 'string' }, metadata: { type: 'object', additionalProperties: true } }, common_1.configGovernanceSchema),
153
- required: ['root'],
154
- };
155
- const metadataConfigSchema = {
156
- type: 'object',
157
- additionalProperties: true,
158
- };
159
- const metadataGlobsConfigSchema = {
160
- type: 'object',
161
- additionalProperties: {
162
- type: 'object',
163
- additionalProperties: true,
164
- },
165
- };
166
- const llmstxtConfigSchema = {
167
- type: 'object',
168
- properties: {
169
- hide: {
170
- type: 'boolean',
171
- default: false,
172
- },
173
- title: {
174
- type: 'string',
175
- },
176
- description: {
177
- type: 'string',
178
- },
179
- details: {
180
- type: 'object',
181
- properties: {
182
- path: {
183
- type: 'string',
184
- },
185
- content: {
186
- type: 'string',
187
- },
188
- },
189
- additionalProperties: false,
190
- },
191
- excludeFiles: {
192
- type: 'array',
193
- items: { type: 'string' },
194
- default: [],
195
- },
196
- sections: {
197
- type: 'array',
198
- items: {
199
- type: 'object',
200
- properties: {
201
- title: { type: 'string' },
202
- description: { type: 'string' },
203
- includeFiles: {
204
- type: 'array',
205
- items: { type: 'string' },
206
- default: [],
207
- },
208
- excludeFiles: {
209
- type: 'array',
210
- items: { type: 'string' },
211
- default: [],
212
- },
213
- },
214
- required: ['title'],
215
- additionalProperties: false,
216
- },
217
- },
218
- },
219
- default: {
220
- hide: false,
221
- title: undefined,
222
- description: undefined,
223
- details: undefined,
224
- sections: [
225
- {
226
- title: 'Table of contents',
227
- includeFiles: ['**/*'],
228
- excludeFiles: [],
229
- },
230
- ],
231
- },
232
- additionalProperties: false,
233
- };
234
- exports.seoConfigSchema = {
235
- type: 'object',
236
- properties: {
237
- title: { type: 'string' },
238
- projectTitle: { type: 'string' },
239
- description: { type: 'string' },
240
- siteUrl: { type: 'string' },
241
- image: { type: 'string' },
242
- keywords: {
243
- oneOf: [{ type: 'array', items: { type: 'string' } }, { type: 'string' }],
244
- },
245
- lang: { type: 'string' },
246
- jsonLd: { type: 'object' },
247
- meta: {
248
- type: 'array',
249
- items: {
250
- type: 'object',
251
- properties: {
252
- name: { type: 'string' },
253
- content: { type: 'string' },
254
- },
255
- required: ['name', 'content'],
256
- additionalProperties: false,
257
- },
258
- },
259
- llmstxt: llmstxtConfigSchema,
260
- },
261
- default: {
262
- llmstxt: llmstxtConfigSchema.default,
263
- },
264
- additionalProperties: false,
265
- };
266
- exports.apiFunctionsConfigSchema = {
267
- type: 'object',
268
- properties: {
269
- folders: { type: 'array', items: { type: 'string' } },
270
- },
271
- additionalProperties: false,
272
- };
273
- exports.rbacEntitiesCatalogConfigSchema = {
274
- type: 'object',
275
- properties: {
276
- catalogs: {
277
- type: 'object',
278
- properties: {
279
- all: exports.rbacScopeItemsSchema,
280
- services: exports.rbacScopeItemsSchema,
281
- domains: exports.rbacScopeItemsSchema,
282
- teams: exports.rbacScopeItemsSchema,
283
- users: exports.rbacScopeItemsSchema,
284
- apiDescriptions: exports.rbacScopeItemsSchema,
285
- dataSchemas: exports.rbacScopeItemsSchema,
286
- apiOperations: exports.rbacScopeItemsSchema,
287
- },
288
- additionalProperties: exports.rbacScopeItemsSchema,
289
- },
290
- entitiesTypes: {
291
- type: 'object',
292
- properties: {
293
- service: exports.rbacScopeItemsSchema,
294
- domain: exports.rbacScopeItemsSchema,
295
- team: exports.rbacScopeItemsSchema,
296
- user: exports.rbacScopeItemsSchema,
297
- apiDescription: exports.rbacScopeItemsSchema,
298
- apiOperation: exports.rbacScopeItemsSchema,
299
- dataSchema: exports.rbacScopeItemsSchema,
300
- },
301
- additionalProperties: exports.rbacScopeItemsSchema,
302
- },
303
- entitiesGroups: {
304
- type: 'array',
305
- items: {
306
- type: 'object',
307
- properties: {
308
- entities: { type: 'array', items: { type: 'string' } },
309
- config: exports.rbacScopeItemsSchema,
310
- },
311
- additionalProperties: false,
312
- },
313
- },
314
- entities: {
315
- type: 'object',
316
- properties: {
317
- '**': exports.rbacScopeItemsSchema,
318
- },
319
- additionalProperties: exports.rbacScopeItemsSchema,
320
- },
321
- },
322
- additionalProperties: false,
323
- };
324
- exports.rbacConfigSchema = {
325
- type: 'object',
326
- properties: {
327
- teamNamePatterns: { type: 'array', items: { type: 'string' } },
328
- teamFolders: { type: 'array', items: { type: 'string' } },
329
- teamFoldersBaseRoles: exports.rbacScopeItemsSchema,
330
- cms: exports.rbacScopeItemsSchema, // deprecated in favor of reunite
331
- reunite: exports.rbacScopeItemsSchema,
332
- features: {
333
- type: 'object',
334
- properties: {
335
- aiSearch: exports.rbacScopeItemsSchema,
336
- },
337
- additionalProperties: false,
338
- },
339
- content: {
340
- type: 'object',
341
- properties: {
342
- '**': exports.rbacScopeItemsSchema,
343
- },
344
- additionalProperties: exports.rbacScopeItemsSchema,
345
- },
346
- entitiesCatalog: exports.rbacEntitiesCatalogConfigSchema,
347
- },
348
- additionalProperties: exports.rbacScopeItemsSchema,
349
- };
350
- exports.graviteeAdapterAuthStaticSchema = {
351
- type: 'object',
352
- properties: { static: { type: 'string' } },
353
- additionalProperties: false,
354
- required: ['static'],
355
- };
356
- exports.graviteeAdapterAuthIdpSchema = {
357
- type: 'object',
358
- properties: { idp: { type: 'string' } },
359
- additionalProperties: false,
360
- required: ['idp'],
361
- };
362
- exports.graviteeAdapterConfigSchema = {
363
- type: 'object',
364
- properties: {
365
- type: { type: 'string', const: 'GRAVITEE' },
366
- apiBaseUrl: { type: 'string' },
367
- env: { type: 'string' },
368
- allowApiProductsOutsideCatalog: { type: 'boolean', default: false },
369
- stage: { type: 'string', default: 'non-production' },
370
- auth: {
371
- oneOf: [exports.graviteeAdapterAuthStaticSchema, exports.graviteeAdapterAuthIdpSchema],
372
- },
373
- },
374
- additionalProperties: false,
375
- required: ['type', 'apiBaseUrl'],
376
- };
377
- exports.apigeeAdapterAuthOauth2Schema = {
378
- type: 'object',
379
- properties: {
380
- type: { type: 'string', const: shared_1.ApigeeDevOnboardingIntegrationAuthType.OAUTH2 },
381
- tokenEndpoint: { type: 'string' },
382
- clientId: { type: 'string' },
383
- clientSecret: { type: 'string' },
384
- },
385
- additionalProperties: false,
386
- required: ['type', 'tokenEndpoint', 'clientId', 'clientSecret'],
387
- };
388
- exports.apigeeAdapterAuthServiceAccountSchema = {
389
- type: 'object',
390
- properties: {
391
- type: { type: 'string', const: shared_1.ApigeeDevOnboardingIntegrationAuthType.SERVICE_ACCOUNT },
392
- serviceAccountEmail: { type: 'string' },
393
- serviceAccountPrivateKey: { type: 'string' },
394
- },
395
- additionalProperties: false,
396
- required: ['type', 'serviceAccountEmail', 'serviceAccountPrivateKey'],
397
- };
398
- exports.apigeeXAdapterConfigSchema = {
399
- type: 'object',
400
- properties: {
401
- type: { type: 'string', const: 'APIGEE_X' },
402
- apiUrl: { type: 'string' },
403
- stage: { type: 'string', default: 'non-production' },
404
- organizationName: { type: 'string' },
405
- ignoreApiProducts: { type: 'array', items: { type: 'string' } },
406
- allowApiProductsOutsideCatalog: { type: 'boolean', default: false },
407
- auth: {
408
- type: 'object',
409
- oneOf: [exports.apigeeAdapterAuthOauth2Schema, exports.apigeeAdapterAuthServiceAccountSchema],
410
- discriminator: { propertyName: 'type' },
411
- },
412
- },
413
- additionalProperties: false,
414
- required: ['type', 'organizationName', 'auth'],
415
- };
416
- exports.apigeeEdgeAdapterConfigSchema = Object.assign(Object.assign({}, exports.apigeeXAdapterConfigSchema), { properties: Object.assign(Object.assign({}, exports.apigeeXAdapterConfigSchema.properties), { type: { type: 'string', const: 'APIGEE_EDGE' } }) });
417
- exports.devOnboardingAdapterConfigSchema = {
418
- type: 'object',
419
- oneOf: [exports.apigeeXAdapterConfigSchema, exports.apigeeEdgeAdapterConfigSchema, exports.graviteeAdapterConfigSchema],
420
- discriminator: { propertyName: 'type' },
421
- };
422
- const devOnboardingConfigSchema = {
423
- type: 'object',
424
- required: ['adapters'],
425
- additionalProperties: false,
426
- properties: {
427
- adapters: {
428
- type: 'array',
429
- items: exports.devOnboardingAdapterConfigSchema,
430
- },
431
- },
432
- };
433
- exports.l10nConfigSchema = {
434
- type: 'object',
435
- properties: {
436
- defaultLocale: {
437
- type: 'string',
438
- },
439
- locales: {
440
- type: 'array',
441
- items: {
442
- type: 'object',
443
- properties: {
444
- code: {
445
- type: 'string',
446
- },
447
- name: {
448
- type: 'string',
449
- },
450
- },
451
- required: ['code'],
452
- },
453
- },
454
- },
455
- additionalProperties: false,
456
- required: ['defaultLocale'],
457
- };
458
- const responseHeaderSchema = {
459
- type: 'object',
460
- properties: {
461
- name: { type: 'string' },
462
- value: { type: 'string' },
463
- },
464
- additionalProperties: false,
465
- required: ['name', 'value'],
466
- };
467
- const mcpConfigSchema = {
468
- type: 'object',
469
- properties: {
470
- hide: { type: 'boolean', default: false },
471
- docs: {
472
- type: 'object',
473
- properties: {
474
- hide: { type: 'boolean', default: false },
475
- name: { type: 'string', default: 'Docs MCP server' },
476
- ignore: {
477
- type: 'array',
478
- items: { type: 'string' },
479
- default: [],
480
- },
481
- },
482
- additionalProperties: false,
483
- },
484
- },
485
- additionalProperties: false,
486
- default: {
487
- hide: false,
488
- docs: {
489
- hide: false,
490
- name: 'MCP server',
491
- ignore: [],
492
- },
493
- },
494
- };
495
- exports.accessConfigSchema = {
496
- type: 'object',
497
- properties: {
498
- requiresLogin: requiresLoginSchema,
499
- logoutReturnUrl: logoutReturnUrlSchema,
500
- residency: residencySchema,
501
- sso: exports.ssoConfigSchema,
502
- rbac: exports.rbacConfigSchema,
503
- },
504
- additionalProperties: false,
505
- };
506
- exports.redoclyConfigSchema = {
507
- type: 'object',
508
- properties: Object.assign(Object.assign({
509
- /**
510
- * @deprecated Should use `plugins` instead
511
- */
512
- imports: {
513
- type: 'array',
514
- items: { type: 'string' },
515
- }, licenseKey: { type: 'string' }, redirects: exports.redirectsConfigSchema, seo: exports.seoConfigSchema,
516
- /**
517
- * @deprecated Should use `access.rbac` instead
518
- */
519
- rbac: exports.rbacConfigSchema, apiFunctions: exports.apiFunctionsConfigSchema,
520
- /**
521
- * @deprecated Should use `access.requiresLogin` instead
522
- */
523
- requiresLogin: requiresLoginSchema, responseHeaders: {
524
- type: 'object',
525
- additionalProperties: {
526
- type: 'array',
527
- items: responseHeaderSchema,
528
- },
529
- }, mockServer: {
530
- type: 'object',
531
- properties: {
532
- off: { type: 'boolean', default: false },
533
- position: { type: 'string', enum: ['first', 'last', 'replace', 'off'], default: 'first' },
534
- strictExamples: { type: 'boolean', default: false },
535
- errorIfForcedExampleNotFound: { type: 'boolean', default: false },
536
- description: { type: 'string' },
537
- },
538
- }, apis: {
539
- type: 'object',
540
- additionalProperties: exports.apiConfigSchema,
541
- } }, common_1.configGovernanceSchema), { ssoDirect: exports.ssoDirectConfigSchema,
542
- /**
543
- * @deprecated Should use `access.sso` instead
544
- */
545
- sso: exports.ssoConfigSchema,
546
- /**
547
- * @deprecated Should use `access.residency` instead
548
- */
549
- residency: residencySchema,
550
- /**
551
- * @deprecated Should use `access.logoutReturnUrl` instead
552
- */
553
- 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' } },
554
- /**
555
- * @deprecated properties moved to the root of the config
556
- */
557
- theme: default_theme_config_schema_1.themeConfigSchema, reunite: reunite_config_schema_1.reuniteConfigSchema,
558
- // Ex theme properties
559
- 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,
560
- /**
561
- * @deprecated Should use `catalogClassic` instead
562
- */
563
- catalog: ex_theme_config_schemas_1.catalogsConfigSchema, entitiesCatalog: entities_catalog_config_schema_1.entitiesCatalogConfigSchema, catalogClassic: ex_theme_config_schemas_1.catalogsConfigSchema,
564
- /**
565
- * @deprecated Should use `scorecardClassic` instead
566
- */
567
- scorecard: ex_theme_config_schemas_1.scorecardConfigSchema, scorecardClassic: ex_theme_config_schemas_1.scorecardConfigSchema, scorecards: scorecards_config_schema_1.scorecardsConfigSchema, mcp: mcpConfigSchema, corsProxy: {
568
- type: 'object',
569
- properties: {
570
- allowedTargets: {
571
- type: 'array',
572
- items: { type: 'string' },
573
- },
574
- },
575
- additionalProperties: false,
576
- }, banner: exports.bannersConfigSchema }),
577
- default: { redirects: {}, seo: exports.seoConfigSchema.default },
578
- additionalProperties: true,
579
- };
580
- const environmentSchema = Object.assign(Object.assign({}, (0, remove_property_recursively_1.removePropertyRecursively)(exports.redoclyConfigSchema, 'default')), { additionalProperties: false });
581
- exports.rootRedoclyConfigSchema = Object.assign(Object.assign({ $id: 'root-redocly-config' }, exports.redoclyConfigSchema), { properties: Object.assign(Object.assign({ plugins: {
582
- type: 'array',
583
- items: { type: 'string' },
584
- } }, exports.redoclyConfigSchema.properties), { env: {
585
- type: 'object',
586
- additionalProperties: environmentSchema, // TODO: if we want full validation we need to override apis, theme and the root
587
- } }), default: {}, additionalProperties: false });
588
- //# sourceMappingURL=root-config-schema.js.map