@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,14 +1,14 @@
1
1
  import type { FromSchema } from 'json-schema-to-ts';
2
- import type { themeConfigSchema } from '../default-theme-config-schema';
3
- import type { productConfigOverrideSchema } from '../product-override-schema';
4
- import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, l10nConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, bannerConfigSchema, bannersConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoDirectConfigSchema } from '../root-config-schema';
5
- import type { RedocConfigTypes } from './redoc-types';
6
- import type { GraphQLConfigTypes } from './graphql-types';
7
- import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from '../ex-theme-config-schemas';
8
- import type { scorecardsConfigSchema } from '../scorecards-config-schema';
9
- import type { reuniteConfigSchema } from '../reunite-config-schema';
10
- import type { optionalEmailSettings, reasonsSettings } from '../feedback-config-schema';
11
- import type { AsyncApiConfigTypes } from './asyncapi-types';
2
+ import type { themeConfigSchema } from '../default-theme-config-schema.js';
3
+ import type { productConfigOverrideSchema } from '../product-override-schema.js';
4
+ import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, l10nConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, bannerConfigSchema, bannersConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoDirectConfigSchema } from '../root-config-schema.js';
5
+ import type { RedocConfigTypes } from './redoc-types.js';
6
+ import type { GraphQLConfigTypes } from './graphql-types.js';
7
+ import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from '../ex-theme-config-schemas.js';
8
+ import type { scorecardsConfigSchema } from '../scorecards-config-schema.js';
9
+ import type { reuniteConfigSchema } from '../reunite-config-schema.js';
10
+ import type { optionalEmailSettings, reasonsSettings } from '../feedback-config-schema.js';
11
+ import type { AsyncApiConfigTypes } from './asyncapi-types.js';
12
12
  /**
13
13
  * @deprecated left for backwards compatibility. To be removed in Realm 1.0
14
14
  */
@@ -1,5 +1,5 @@
1
1
  import type { FromSchema } from 'json-schema-to-ts';
2
- import type { graphqlConfigSchema } from '../graphql-config-schema';
2
+ import type { graphqlConfigSchema } from '../graphql-config-schema.js';
3
3
  export type GraphQLConfigTypes = FromSchema<typeof graphqlConfigSchema> & {
4
4
  markdown?: {
5
5
  parser?: (md: string) => string;
@@ -1,4 +1,4 @@
1
- export * from './api-functions-types';
2
- export * from './config-types';
3
- export * from './portal-shared-types';
4
- export * from './catalog-entity-types';
1
+ export * from './api-functions-types.js';
2
+ export * from './config-types.js';
3
+ export * from './portal-shared-types.js';
4
+ export * from './catalog-entity-types.js';
@@ -1,8 +1,8 @@
1
1
  import type { Node } from '@markdoc/markdoc/dist/src/types';
2
- import type { LayoutVariant, REDOCLY_ROUTE_RBAC, REDOCLY_TEAMS_RBAC } from '../constants/shared';
3
- import type { ProductConfig, ProductGoogleAnalyticsConfig, RbacScopeItems, RedoclyConfig, SeoConfig, BannerConfig } from './config-types';
4
- import type { CatalogEntityConfig } from './catalog-entity-types';
5
- export * from './code-walkthrough-types';
2
+ import type { LayoutVariant, REDOCLY_ROUTE_RBAC, REDOCLY_TEAMS_RBAC } from '../constants/shared.js';
3
+ import type { ProductConfig, ProductGoogleAnalyticsConfig, RbacScopeItems, RedoclyConfig, SeoConfig, BannerConfig } from './config-types.js';
4
+ import type { CatalogEntityConfig } from './catalog-entity-types.js';
5
+ export * from './code-walkthrough-types.js';
6
6
  export type UiAccessibleConfig = Pick<RedoclyConfig, 'logo' | 'navbar' | 'products' | 'footer' | 'sidebar' | 'scripts' | 'links' | 'feedback' | 'search' | 'aiAssistant' | 'colorMode' | 'palette' | 'navigation' | 'codeSnippet' | 'markdown' | 'openapi' | 'graphql' | 'analytics' | 'userMenu' | 'versionPicker' | 'breadcrumbs' | 'catalog' | 'scorecard' | 'scorecards' | 'scorecardClassic' | 'entitiesCatalog' | 'mcp'> & {
7
7
  auth?: {
8
8
  idpsInfo?: {
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement, ComponentType } from 'react';
2
2
  import type { FromSchema } from 'json-schema-to-ts';
3
3
  import type { Schema, ConfigFunction } from '@markdoc/markdoc/dist/src/types';
4
- import type { redocConfigSchema } from '../redoc-config-schema';
4
+ import type { redocConfigSchema } from '../redoc-config-schema.js';
5
5
  export type RedocConfigTypes = FromSchema<typeof redocConfigSchema> & {
6
6
  markdocOptions?: {
7
7
  tags: Record<string, Schema>;
package/package.json CHANGED
@@ -1,13 +1,27 @@
1
1
  {
2
2
  "name": "@redocly/config",
3
- "version": "0.48.0",
3
+ "version": "0.48.1",
4
4
  "license": "MIT",
5
+ "type": "module",
5
6
  "main": "./lib/index.js",
6
7
  "module": "./lib-esm/index.js",
7
8
  "types": "./lib/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./lib-esm/index.d.ts",
13
+ "default": "./lib-esm/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./lib/index.d.ts",
17
+ "default": "./lib/index.js"
18
+ }
19
+ }
20
+ },
8
21
  "devDependencies": {
9
22
  "@markdoc/markdoc": "0.5.2",
10
- "@redocly/openapi-core": "2.25.2",
23
+ "esbuild": "0.27.0",
24
+ "@redocly/openapi-core": "2.29.0",
11
25
  "@types/node": "22.18.13",
12
26
  "@types/react": "^19.2.7",
13
27
  "@vitest/coverage-v8": "4.0.10",
@@ -20,8 +34,9 @@
20
34
  "json-schema-to-ts": "2.7.2"
21
35
  },
22
36
  "scripts": {
23
- "clean": "rimraf lib",
24
- "compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.lib-esm.json",
37
+ "clean": "rimraf lib lib-esm",
38
+ "ts:check": "tsc --noEmit",
39
+ "compile": "pnpm run ts:check && node build.mjs && tsc -p tsconfig.build.json && tsc -p tsconfig.build-esm.json",
25
40
  "build": "pnpm run clean && pnpm run compile",
26
41
  "test": "vitest run src"
27
42
  }
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.asyncapiConfigSchema = void 0;
4
- const feedback_config_schema_1 = require("./feedback-config-schema");
5
- const redoc_config_schema_1 = require("./redoc-config-schema");
6
- exports.asyncapiConfigSchema = {
7
- type: 'object',
8
- properties: {
9
- downloadUrls: redoc_config_schema_1.downloadUrlsSchema,
10
- apiLogo: {
11
- type: 'object',
12
- properties: {
13
- imageUrl: {
14
- type: 'string',
15
- },
16
- href: {
17
- type: 'string',
18
- },
19
- altText: {
20
- type: 'string',
21
- },
22
- backgroundColor: {
23
- type: 'string',
24
- },
25
- },
26
- },
27
- jsonSamplesDepth: {
28
- type: 'number',
29
- },
30
- samplesMaxInlineArgs: {
31
- type: 'number',
32
- },
33
- fieldExpandLevel: {
34
- type: 'number',
35
- },
36
- baseUrlPath: {
37
- type: 'string',
38
- },
39
- metadata: {
40
- type: 'object',
41
- properties: {
42
- apiId: {
43
- type: 'string',
44
- },
45
- },
46
- additionalProperties: true,
47
- },
48
- feedback: feedback_config_schema_1.feedbackConfigSchema,
49
- layout: { type: 'string', enum: ['stacked', 'three-panel'] },
50
- },
51
- additionalProperties: false,
52
- };
53
- //# sourceMappingURL=asyncapi-config-schema.js.map
package/lib/common.js DELETED
@@ -1,103 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.configGovernanceSchema = exports.decoratorTypes = exports.preprocessorTypes = exports.ruleTypes = void 0;
4
- const rulesSchema = {
5
- nodeTypeName: undefined,
6
- type: 'object',
7
- additionalProperties: {
8
- oneOf: [{ type: 'string' }, { type: 'object' }],
9
- },
10
- description: 'The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.',
11
- documentationLink: 'https://redocly.com/docs/cli/configuration/reference/rules#rules',
12
- };
13
- exports.ruleTypes = [
14
- 'rules',
15
- 'oas2Rules',
16
- 'oas3_0Rules',
17
- 'oas3_1Rules',
18
- 'oas3_2Rules',
19
- 'async2Rules',
20
- 'async3Rules',
21
- 'arazzo1Rules',
22
- 'overlay1Rules',
23
- 'openrpc1Rules',
24
- ];
25
- const ruleSchemas = {
26
- rules: rulesSchema,
27
- oas2Rules: rulesSchema,
28
- oas3_0Rules: rulesSchema,
29
- oas3_1Rules: rulesSchema,
30
- oas3_2Rules: rulesSchema,
31
- async2Rules: rulesSchema,
32
- async3Rules: rulesSchema,
33
- arazzo1Rules: rulesSchema,
34
- overlay1Rules: rulesSchema,
35
- openrpc1Rules: rulesSchema,
36
- };
37
- exports.preprocessorTypes = [
38
- 'preprocessors',
39
- 'oas2Preprocessors',
40
- 'oas3_0Preprocessors',
41
- 'oas3_1Preprocessors',
42
- 'oas3_2Preprocessors',
43
- 'async2Preprocessors',
44
- 'async3Preprocessors',
45
- 'arazzo1Preprocessors',
46
- 'overlay1Preprocessors',
47
- 'openrpc1Preprocessors',
48
- ];
49
- const preprocessorsSchema = {
50
- nodeTypeName: undefined,
51
- type: 'object',
52
- additionalProperties: true,
53
- };
54
- const preprocessorSchemas = {
55
- preprocessors: preprocessorsSchema,
56
- oas2Preprocessors: preprocessorsSchema,
57
- oas3_0Preprocessors: preprocessorsSchema,
58
- oas3_1Preprocessors: preprocessorsSchema,
59
- oas3_2Preprocessors: preprocessorsSchema,
60
- async2Preprocessors: preprocessorsSchema,
61
- async3Preprocessors: preprocessorsSchema,
62
- arazzo1Preprocessors: preprocessorsSchema,
63
- overlay1Preprocessors: preprocessorsSchema,
64
- openrpc1Preprocessors: preprocessorsSchema,
65
- };
66
- const decoratorsSchema = {
67
- nodeTypeName: undefined,
68
- type: 'object',
69
- additionalProperties: true,
70
- };
71
- exports.decoratorTypes = [
72
- 'decorators',
73
- 'oas2Decorators',
74
- 'oas3_0Decorators',
75
- 'oas3_1Decorators',
76
- 'oas3_2Decorators',
77
- 'async2Decorators',
78
- 'async3Decorators',
79
- 'arazzo1Decorators',
80
- 'overlay1Decorators',
81
- 'openrpc1Decorators',
82
- ];
83
- const decoratorSchemas = {
84
- decorators: decoratorsSchema,
85
- oas2Decorators: decoratorsSchema,
86
- oas3_0Decorators: decoratorsSchema,
87
- oas3_1Decorators: decoratorsSchema,
88
- oas3_2Decorators: decoratorsSchema,
89
- async2Decorators: decoratorsSchema,
90
- async3Decorators: decoratorsSchema,
91
- arazzo1Decorators: decoratorsSchema,
92
- overlay1Decorators: decoratorsSchema,
93
- openrpc1Decorators: decoratorsSchema,
94
- };
95
- const extendsSchema = {
96
- nodeTypeName: undefined,
97
- type: 'array',
98
- items: { type: 'string' },
99
- description: 'Use extends to inherit rules and their configurations from other rulesets.',
100
- documentationLink: 'https://redocly.com/docs/cli/configuration/reference/extends',
101
- };
102
- exports.configGovernanceSchema = Object.assign(Object.assign(Object.assign(Object.assign({}, ruleSchemas), decoratorSchemas), preprocessorSchemas), { extends: extendsSchema });
103
- //# sourceMappingURL=common.js.map
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONFIG_NODE_TYPE_NAMES = void 0;
4
- const enum_1 = require("./enum");
5
- exports.CONFIG_NODE_TYPE_NAMES = (0, enum_1.createEnum)({
6
- RedirectSource: 'RedirectSource',
7
- Redirects: 'Redirects',
8
- ScorecardClassic: 'ScorecardClassic',
9
- ScorecardClassicLevelList: 'ScorecardClassicLevelList',
10
- ScorecardClassicLevel: 'ScorecardClassicLevel',
11
- ScorecardClassicTargetList: 'ScorecardClassicTargetList',
12
- ScorecardClassicTarget: 'ScorecardClassicTarget',
13
- ScorecardClassicTargetWhere: 'ScorecardClassicTargetWhere',
14
- ScorecardClassicTargetWhereMetadata: 'ScorecardClassicTargetWhereMetadata',
15
- ScorecardClassicTeamMetadataProperty: 'ScorecardClassicTeamMetadataProperty',
16
- });
17
- //# sourceMappingURL=config.js.map
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NODE_TYPE_NAMES = exports.ENTITY_NODE_TYPE_NAMES = exports.ENTITY_RELATION_TYPES = void 0;
4
- const enum_1 = require("./enum");
5
- exports.ENTITY_RELATION_TYPES = [
6
- 'partOf',
7
- 'hasParts',
8
- 'creates',
9
- 'createdBy',
10
- 'owns',
11
- 'ownedBy',
12
- 'implements',
13
- 'implementedBy',
14
- 'dependsOn',
15
- 'dependencyOf',
16
- 'uses',
17
- 'usedBy',
18
- 'produces',
19
- 'consumes',
20
- 'linksTo',
21
- 'supersedes',
22
- 'supersededBy',
23
- 'compatibleWith',
24
- 'extends',
25
- 'extendedBy',
26
- 'relatesTo',
27
- 'hasMember',
28
- 'memberOf',
29
- 'triggers',
30
- 'triggeredBy',
31
- 'returns',
32
- 'returnedBy',
33
- ];
34
- exports.ENTITY_NODE_TYPE_NAMES = (0, enum_1.createEnum)({
35
- UserEntity: 'UserEntity',
36
- UserEntityMetadata: 'UserEntityMetadata',
37
- ApiDescriptionEntity: 'ApiDescriptionEntity',
38
- ApiDescriptionEntityMetadata: 'ApiDescriptionEntityMetadata',
39
- ApiOperationEntity: 'ApiOperationEntity',
40
- ApiOperationEntityMetadata: 'ApiOperationEntityMetadata',
41
- DataSchemaEntity: 'DataSchemaEntity',
42
- DataSchemaEntityMetadata: 'DataSchemaEntityMetadata',
43
- ServiceEntity: 'ServiceEntity',
44
- DomainEntity: 'DomainEntity',
45
- TeamEntity: 'TeamEntity',
46
- Entity: 'Entity',
47
- EntityMetadata: 'EntityMetadata',
48
- EntityLinkList: 'EntityLinkList',
49
- EntityLink: 'EntityLink',
50
- EntityRelation: 'EntityRelation',
51
- EntityRelationList: 'EntityRelationList',
52
- EntityContact: 'EntityContact',
53
- EntitySlackContact: 'EntitySlackContact',
54
- EntitySlackChannel: 'EntitySlackChannel',
55
- });
56
- // FIXME: remove this once the config is updated in openapi-core and it's updated in the monorepo (https://github.com/Redocly/redocly-cli/pull/2604)
57
- exports.NODE_TYPE_NAMES = exports.ENTITY_NODE_TYPE_NAMES;
58
- //# sourceMappingURL=entities.js.map
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createEnum = void 0;
4
- const createEnum = (obj) => obj;
5
- exports.createEnum = createEnum;
6
- //# sourceMappingURL=enum.js.map
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LayoutVariant = exports.REDOCLY_ROUTE_RBAC = exports.REDOCLY_TEAMS_RBAC = exports.ApigeeDevOnboardingIntegrationAuthType = exports.AuthProviderType = exports.DEFAULT_TEAM_CLAIM_NAME = void 0;
4
- exports.DEFAULT_TEAM_CLAIM_NAME = 'https://redocly.com/sso/teams';
5
- var AuthProviderType;
6
- (function (AuthProviderType) {
7
- AuthProviderType["OIDC"] = "OIDC";
8
- AuthProviderType["SAML2"] = "SAML2";
9
- })(AuthProviderType || (exports.AuthProviderType = AuthProviderType = {}));
10
- var ApigeeDevOnboardingIntegrationAuthType;
11
- (function (ApigeeDevOnboardingIntegrationAuthType) {
12
- ApigeeDevOnboardingIntegrationAuthType["SERVICE_ACCOUNT"] = "SERVICE_ACCOUNT";
13
- ApigeeDevOnboardingIntegrationAuthType["OAUTH2"] = "OAUTH2";
14
- })(ApigeeDevOnboardingIntegrationAuthType || (exports.ApigeeDevOnboardingIntegrationAuthType = ApigeeDevOnboardingIntegrationAuthType = {}));
15
- exports.REDOCLY_TEAMS_RBAC = 'redocly::teams-rbac';
16
- exports.REDOCLY_ROUTE_RBAC = 'redocly::route-rbac';
17
- var LayoutVariant;
18
- (function (LayoutVariant) {
19
- LayoutVariant["STACKED"] = "stacked";
20
- LayoutVariant["THREE_PANEL"] = "three-panel";
21
- })(LayoutVariant || (exports.LayoutVariant = LayoutVariant = {}));
22
- //# sourceMappingURL=shared.js.map
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.themeConfigSchema = void 0;
4
- const graphql_config_schema_1 = require("./graphql-config-schema");
5
- const asyncapi_config_schema_1 = require("./asyncapi-config-schema");
6
- const feedback_config_schema_1 = require("./feedback-config-schema");
7
- const ex_theme_config_schemas_1 = require("./ex-theme-config-schemas");
8
- const entities_catalog_config_schema_1 = require("./entities-catalog-config-schema");
9
- const scorecards_config_schema_1 = require("./scorecards-config-schema");
10
- exports.themeConfigSchema = {
11
- type: 'object',
12
- properties: {
13
- /**
14
- * @deprecated Should use `plugins` instead
15
- */
16
- imports: {
17
- type: 'array',
18
- items: { type: 'string' },
19
- },
20
- logo: ex_theme_config_schemas_1.logoConfigSchema,
21
- navbar: ex_theme_config_schemas_1.navbarConfigSchema,
22
- products: ex_theme_config_schemas_1.productsConfigSchema,
23
- footer: ex_theme_config_schemas_1.footerConfigSchema,
24
- sidebar: ex_theme_config_schemas_1.sidebarConfigSchema,
25
- scripts: ex_theme_config_schemas_1.scriptsConfigSchema,
26
- links: ex_theme_config_schemas_1.linksConfigSchema,
27
- feedback: feedback_config_schema_1.feedbackConfigSchema,
28
- search: ex_theme_config_schemas_1.searchConfigSchema,
29
- aiAssistant: ex_theme_config_schemas_1.aiAssistantSchema,
30
- colorMode: ex_theme_config_schemas_1.colorModeConfigSchema,
31
- palette: ex_theme_config_schemas_1.paletteConfigSchema,
32
- navigation: ex_theme_config_schemas_1.navigationConfigSchema,
33
- codeSnippet: ex_theme_config_schemas_1.codeSnippetConfigSchema,
34
- markdown: ex_theme_config_schemas_1.markdownConfigSchema,
35
- openapi: ex_theme_config_schemas_1.openapiConfigSchema,
36
- asyncapi: asyncapi_config_schema_1.asyncapiConfigSchema,
37
- graphql: graphql_config_schema_1.graphqlConfigSchema,
38
- analytics: ex_theme_config_schemas_1.analyticsConfigSchema,
39
- userMenu: ex_theme_config_schemas_1.userMenuConfigSchema,
40
- versionPicker: ex_theme_config_schemas_1.versionPickerConfigSchema,
41
- breadcrumbs: ex_theme_config_schemas_1.breadcrumbsConfigSchema,
42
- /**
43
- * @deprecated Should use `catalogClassic` instead
44
- */
45
- catalog: ex_theme_config_schemas_1.catalogsConfigSchema,
46
- entitiesCatalog: entities_catalog_config_schema_1.entitiesCatalogConfigSchema,
47
- catalogClassic: ex_theme_config_schemas_1.catalogsConfigSchema,
48
- /**
49
- * @deprecated Should use `scorecardClassic` instead
50
- */
51
- scorecard: ex_theme_config_schemas_1.scorecardConfigSchema,
52
- scorecardClassic: ex_theme_config_schemas_1.scorecardConfigSchema,
53
- scorecards: scorecards_config_schema_1.scorecardsConfigSchema,
54
- },
55
- additionalProperties: true,
56
- };
57
- //# sourceMappingURL=default-theme-config-schema.js.map
@@ -1,186 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.entitiesCatalogConfigSchema = exports.entityCatalogEntityTypesSchema = exports.entityCatalogEntityTypeSchema = exports.entityCatalogMetadataSchema = exports.entityCatalogMetadataSchemaPropertySchema = exports.entityCatalogSpecificCatalogSchema = exports.entityCatalogFilterSchema = exports.entityCatalogIncludeSchema = exports.entityCatalogExcludeSchema = void 0;
4
- exports.entityCatalogExcludeSchema = {
5
- type: 'object',
6
- required: ['key'],
7
- properties: {
8
- key: { type: 'string' },
9
- },
10
- additionalProperties: false,
11
- };
12
- exports.entityCatalogIncludeSchema = {
13
- type: 'object',
14
- required: ['type'],
15
- properties: {
16
- type: { type: 'string' },
17
- },
18
- additionalProperties: false,
19
- };
20
- exports.entityCatalogFilterSchema = {
21
- type: 'object',
22
- required: ['property', 'title'],
23
- properties: {
24
- property: { type: 'string' },
25
- hide: { type: 'boolean' },
26
- label: { type: 'string' },
27
- options: {
28
- type: 'array',
29
- items: { type: 'string' },
30
- },
31
- type: {
32
- type: 'string',
33
- enum: ['select', 'checkboxes', 'date-range'],
34
- default: 'checkboxes',
35
- },
36
- title: { type: 'string' },
37
- titleTranslationKey: { type: 'string' },
38
- parentFilter: { type: 'string' },
39
- valuesMapping: { type: 'object', additionalProperties: { type: 'string' } },
40
- },
41
- additionalProperties: false,
42
- };
43
- exports.entityCatalogSpecificCatalogSchema = {
44
- type: 'object',
45
- properties: {
46
- slug: { type: 'string' },
47
- hide: { type: 'boolean' },
48
- includes: {
49
- type: 'array',
50
- items: exports.entityCatalogIncludeSchema,
51
- },
52
- excludes: {
53
- type: 'array',
54
- items: exports.entityCatalogExcludeSchema,
55
- },
56
- filters: {
57
- type: 'array',
58
- items: exports.entityCatalogFilterSchema,
59
- },
60
- titleTranslationKey: { type: 'string' },
61
- descriptionTranslationKey: { type: 'string' },
62
- catalogSwitcherLabelTranslationKey: { type: 'string' },
63
- },
64
- additionalProperties: false,
65
- };
66
- exports.entityCatalogMetadataSchemaPropertySchema = {
67
- type: 'object',
68
- properties: {
69
- type: {
70
- type: 'string',
71
- enum: ['string', 'number', 'boolean', 'array', 'object'],
72
- },
73
- description: {
74
- type: 'string',
75
- },
76
- example: {
77
- oneOf: [
78
- { type: 'string' },
79
- { type: 'number' },
80
- { type: 'boolean' },
81
- { type: 'array' },
82
- { type: 'object' },
83
- ],
84
- },
85
- enum: {
86
- type: 'array',
87
- items: { type: 'string' },
88
- },
89
- pattern: {
90
- type: 'string',
91
- },
92
- format: {
93
- type: 'string',
94
- },
95
- minimum: {
96
- type: 'number',
97
- },
98
- maximum: {
99
- type: 'number',
100
- },
101
- items: {
102
- type: 'object',
103
- },
104
- },
105
- additionalProperties: true,
106
- };
107
- exports.entityCatalogMetadataSchema = {
108
- type: 'object',
109
- required: ['type', 'properties'],
110
- properties: {
111
- type: {
112
- type: 'string',
113
- enum: ['object'],
114
- },
115
- description: {
116
- type: 'string',
117
- },
118
- properties: {
119
- type: 'object',
120
- additionalProperties: exports.entityCatalogMetadataSchemaPropertySchema,
121
- },
122
- required: {
123
- type: 'array',
124
- items: { type: 'string' },
125
- },
126
- additionalProperties: {
127
- type: 'boolean',
128
- },
129
- },
130
- additionalProperties: true,
131
- };
132
- exports.entityCatalogEntityTypeSchema = {
133
- type: 'object',
134
- required: ['name', 'description', 'metadataSchema'],
135
- properties: {
136
- name: {
137
- type: 'string',
138
- description: 'Display name of the entity type',
139
- },
140
- description: {
141
- type: 'string',
142
- description: 'Description of the entity type',
143
- },
144
- metadataSchema: exports.entityCatalogMetadataSchema,
145
- icon: {
146
- type: 'object',
147
- properties: {
148
- src: {
149
- type: 'string',
150
- },
151
- srcSet: {
152
- type: 'string',
153
- },
154
- },
155
- additionalProperties: false,
156
- },
157
- },
158
- additionalProperties: false,
159
- };
160
- exports.entityCatalogEntityTypesSchema = {
161
- type: 'object',
162
- additionalProperties: exports.entityCatalogEntityTypeSchema,
163
- };
164
- exports.entitiesCatalogConfigSchema = {
165
- type: 'object',
166
- properties: {
167
- show: { type: 'boolean', default: false },
168
- entityTypes: exports.entityCatalogEntityTypesSchema,
169
- catalogs: {
170
- type: 'object',
171
- properties: {
172
- all: exports.entityCatalogSpecificCatalogSchema,
173
- services: exports.entityCatalogSpecificCatalogSchema,
174
- domains: exports.entityCatalogSpecificCatalogSchema,
175
- teams: exports.entityCatalogSpecificCatalogSchema,
176
- users: exports.entityCatalogSpecificCatalogSchema,
177
- apiDescriptions: exports.entityCatalogSpecificCatalogSchema,
178
- dataSchemas: exports.entityCatalogSpecificCatalogSchema,
179
- apiOperations: exports.entityCatalogSpecificCatalogSchema,
180
- },
181
- additionalProperties: exports.entityCatalogSpecificCatalogSchema,
182
- },
183
- },
184
- additionalProperties: false,
185
- };
186
- //# sourceMappingURL=entities-catalog-config-schema.js.map