@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.
- package/lib/index.d.ts +9 -9
- package/lib/index.js +1 -41
- package/lib/package.json +3 -0
- package/lib/root-config-schema.d.ts +16 -1
- package/lib/types/api-functions-types.d.ts +2 -2
- package/lib/types/asyncapi-types.d.ts +1 -1
- package/lib/types/catalog-entity-types.d.ts +2 -2
- package/lib/types/config-types.d.ts +10 -10
- package/lib/types/graphql-types.d.ts +1 -1
- package/lib/types/index.d.ts +4 -4
- package/lib/types/portal-shared-types.d.ts +4 -4
- package/lib/types/redoc-types.d.ts +1 -1
- package/lib-esm/index.d.ts +9 -9
- package/lib-esm/index.js +1 -10
- package/lib-esm/root-config-schema.d.ts +16 -1
- package/lib-esm/types/api-functions-types.d.ts +2 -2
- package/lib-esm/types/asyncapi-types.d.ts +1 -1
- package/lib-esm/types/catalog-entity-types.d.ts +2 -2
- package/lib-esm/types/config-types.d.ts +10 -10
- package/lib-esm/types/graphql-types.d.ts +1 -1
- package/lib-esm/types/index.d.ts +4 -4
- package/lib-esm/types/portal-shared-types.d.ts +4 -4
- package/lib-esm/types/redoc-types.d.ts +1 -1
- package/package.json +19 -4
- package/lib/asyncapi-config-schema.js +0 -53
- package/lib/common.js +0 -103
- package/lib/constants/config.js +0 -17
- package/lib/constants/entities.js +0 -58
- package/lib/constants/enum.js +0 -6
- package/lib/constants/shared.js +0 -22
- package/lib/default-theme-config-schema.js +0 -57
- package/lib/entities-catalog-config-schema.js +0 -186
- package/lib/entities-catalog-entity-file-schema.js +0 -283
- package/lib/ex-theme-config-schemas.js +0 -687
- package/lib/feedback-config-schema.js +0 -88
- package/lib/graphql-config-schema.js +0 -157
- package/lib/product-override-schema.js +0 -44
- package/lib/redoc-config-schema.js +0 -120
- package/lib/reference-docs-config-schema.js +0 -518
- package/lib/remove-property-recursively.js +0 -28
- package/lib/reunite-config-schema.js +0 -103
- package/lib/root-config-schema.js +0 -587
- package/lib/scorecards-config-schema.js +0 -242
- package/lib/types/api-functions-types.js +0 -3
- package/lib/types/asyncapi-types.js +0 -3
- package/lib/types/catalog-entity-types.js +0 -3
- package/lib/types/code-walkthrough-types.js +0 -3
- package/lib/types/config-types.js +0 -3
- package/lib/types/graphql-types.js +0 -3
- package/lib/types/index.js +0 -21
- package/lib/types/portal-shared-types.js +0 -18
- package/lib/types/redoc-types.js +0 -3
- package/lib-esm/asyncapi-config-schema.js +0 -50
- package/lib-esm/common.js +0 -100
- package/lib-esm/constants/config.js +0 -14
- package/lib-esm/constants/entities.js +0 -55
- package/lib-esm/constants/enum.js +0 -2
- package/lib-esm/constants/shared.js +0 -19
- package/lib-esm/default-theme-config-schema.js +0 -54
- package/lib-esm/entities-catalog-config-schema.js +0 -183
- package/lib-esm/entities-catalog-entity-file-schema.js +0 -280
- package/lib-esm/ex-theme-config-schemas.js +0 -684
- package/lib-esm/feedback-config-schema.js +0 -85
- package/lib-esm/graphql-config-schema.js +0 -154
- package/lib-esm/product-override-schema.js +0 -41
- package/lib-esm/redoc-config-schema.js +0 -117
- package/lib-esm/reference-docs-config-schema.js +0 -515
- package/lib-esm/remove-property-recursively.js +0 -25
- package/lib-esm/reunite-config-schema.js +0 -100
- package/lib-esm/root-config-schema.js +0 -584
- package/lib-esm/scorecards-config-schema.js +0 -239
- package/lib-esm/types/api-functions-types.js +0 -2
- package/lib-esm/types/asyncapi-types.js +0 -2
- package/lib-esm/types/catalog-entity-types.js +0 -2
- package/lib-esm/types/code-walkthrough-types.js +0 -2
- package/lib-esm/types/config-types.js +0 -2
- package/lib-esm/types/graphql-types.js +0 -2
- package/lib-esm/types/index.js +0 -5
- package/lib-esm/types/portal-shared-types.js +0 -2
- package/lib-esm/types/redoc-types.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthProviderType, ApigeeDevOnboardingIntegrationAuthType } from './constants/shared';
|
|
1
|
+
import { AuthProviderType, ApigeeDevOnboardingIntegrationAuthType } from './constants/shared.js';
|
|
2
2
|
export declare const oidcIssuerMetadataSchema: {
|
|
3
3
|
readonly type: "object";
|
|
4
4
|
readonly properties: {
|
|
@@ -518,6 +518,9 @@ export declare const rbacScopeItemsSchema: {
|
|
|
518
518
|
export declare const bannerConfigSchema: {
|
|
519
519
|
readonly type: "object";
|
|
520
520
|
readonly properties: {
|
|
521
|
+
readonly trackingId: {
|
|
522
|
+
readonly type: "string";
|
|
523
|
+
};
|
|
521
524
|
readonly content: {
|
|
522
525
|
readonly type: "string";
|
|
523
526
|
};
|
|
@@ -548,6 +551,9 @@ export declare const bannersConfigSchema: {
|
|
|
548
551
|
readonly items: {
|
|
549
552
|
readonly type: "object";
|
|
550
553
|
readonly properties: {
|
|
554
|
+
readonly trackingId: {
|
|
555
|
+
readonly type: "string";
|
|
556
|
+
};
|
|
551
557
|
readonly content: {
|
|
552
558
|
readonly type: "string";
|
|
553
559
|
};
|
|
@@ -21134,6 +21140,9 @@ export declare const redoclyConfigSchema: {
|
|
|
21134
21140
|
readonly items: {
|
|
21135
21141
|
readonly type: "object";
|
|
21136
21142
|
readonly properties: {
|
|
21143
|
+
readonly trackingId: {
|
|
21144
|
+
readonly type: "string";
|
|
21145
|
+
};
|
|
21137
21146
|
readonly content: {
|
|
21138
21147
|
readonly type: "string";
|
|
21139
21148
|
};
|
|
@@ -37921,6 +37930,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
37921
37930
|
target: {
|
|
37922
37931
|
type: "string";
|
|
37923
37932
|
};
|
|
37933
|
+
trackingId: {
|
|
37934
|
+
type: "string";
|
|
37935
|
+
};
|
|
37924
37936
|
content: {
|
|
37925
37937
|
type: "string";
|
|
37926
37938
|
};
|
|
@@ -54900,6 +54912,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
54900
54912
|
readonly items: {
|
|
54901
54913
|
readonly type: "object";
|
|
54902
54914
|
readonly properties: {
|
|
54915
|
+
readonly trackingId: {
|
|
54916
|
+
readonly type: "string";
|
|
54917
|
+
};
|
|
54903
54918
|
readonly content: {
|
|
54904
54919
|
readonly type: "string";
|
|
54905
54920
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RedoclyConfig } from './config-types';
|
|
2
|
-
import type { PageStaticData } from './portal-shared-types';
|
|
1
|
+
import type { RedoclyConfig } from './config-types.js';
|
|
2
|
+
import type { PageStaticData } from './portal-shared-types.js';
|
|
3
3
|
export type ServerPropsRequest = {
|
|
4
4
|
raw: Request;
|
|
5
5
|
headers: Record<string, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { 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 { asyncapiConfigSchema } from '../asyncapi-config-schema';
|
|
4
|
+
import type { asyncapiConfigSchema } from '../asyncapi-config-schema.js';
|
|
5
5
|
export type AsyncApiConfigTypes = FromSchema<typeof asyncapiConfigSchema> & {
|
|
6
6
|
markdocOptions?: {
|
|
7
7
|
tags: Record<string, Schema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
|
-
import type { entityCatalogEntityTypeSchema, entityCatalogSpecificCatalogSchema } from '../entities-catalog-config-schema';
|
|
3
|
-
import type { apiDescriptionMetadataSchema, apiOperationMetadataSchema, dataSchemaMetadataSchema, defaultMetadataSchema, entityContactFileSchema, entityLinkFileSchema, entityRelationFileSchema, slackChannelFileSchema, slackContactFileSchema, userMetadataSchema } from '../entities-catalog-entity-file-schema';
|
|
2
|
+
import type { entityCatalogEntityTypeSchema, entityCatalogSpecificCatalogSchema } from '../entities-catalog-config-schema.js';
|
|
3
|
+
import type { apiDescriptionMetadataSchema, apiOperationMetadataSchema, dataSchemaMetadataSchema, defaultMetadataSchema, entityContactFileSchema, entityLinkFileSchema, entityRelationFileSchema, slackChannelFileSchema, slackContactFileSchema, userMetadataSchema } from '../entities-catalog-entity-file-schema.js';
|
|
4
4
|
export type EntityCatalogSpecificCatalogConfig = FromSchema<typeof entityCatalogSpecificCatalogSchema>;
|
|
5
5
|
export type EntityCatalogEntityTypeConfig = FromSchema<typeof entityCatalogEntityTypeSchema>;
|
|
6
6
|
export type CatalogConfigEntityExclude = {
|
|
@@ -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;
|
package/lib-esm/types/index.d.ts
CHANGED
|
@@ -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.
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
package/lib/constants/config.js
DELETED
|
@@ -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
|
package/lib/constants/enum.js
DELETED
package/lib/constants/shared.js
DELETED
|
@@ -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
|