@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,242 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.scorecardsConfigSchema = exports.scorecardSchema = void 0;
|
|
4
|
-
const common_1 = require("./common");
|
|
5
|
-
const comparisonOperatorSchema = {
|
|
6
|
-
type: 'string',
|
|
7
|
-
enum: [
|
|
8
|
-
'eq',
|
|
9
|
-
'in',
|
|
10
|
-
'gt',
|
|
11
|
-
'gte',
|
|
12
|
-
'lt',
|
|
13
|
-
'lte',
|
|
14
|
-
'contains',
|
|
15
|
-
'startsWith',
|
|
16
|
-
'endsWith',
|
|
17
|
-
'exists',
|
|
18
|
-
'isEmpty',
|
|
19
|
-
'between',
|
|
20
|
-
'matches',
|
|
21
|
-
'some',
|
|
22
|
-
'every',
|
|
23
|
-
'none',
|
|
24
|
-
],
|
|
25
|
-
};
|
|
26
|
-
const logicalOperatorSchema = {
|
|
27
|
-
type: 'string',
|
|
28
|
-
enum: ['and', 'or'],
|
|
29
|
-
};
|
|
30
|
-
// Base condition schema with field, operator, value, modifier, and match properties
|
|
31
|
-
const conditionSchema = {
|
|
32
|
-
type: 'object',
|
|
33
|
-
properties: {
|
|
34
|
-
field: { type: 'string' },
|
|
35
|
-
operator: comparisonOperatorSchema,
|
|
36
|
-
value: {
|
|
37
|
-
oneOf: [{ type: 'boolean' }, { type: 'string' }, { type: 'number' }],
|
|
38
|
-
},
|
|
39
|
-
modifier: { type: 'string', enum: ['not'] },
|
|
40
|
-
match: {
|
|
41
|
-
type: 'array',
|
|
42
|
-
items: {
|
|
43
|
-
type: 'object',
|
|
44
|
-
properties: {
|
|
45
|
-
field: { type: 'string' },
|
|
46
|
-
operator: comparisonOperatorSchema,
|
|
47
|
-
value: {
|
|
48
|
-
oneOf: [{ type: 'boolean' }, { type: 'string' }, { type: 'number' }],
|
|
49
|
-
},
|
|
50
|
-
modifier: { type: 'string', enum: ['not'] },
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
// Schema for a logical operator with conditions (used for nesting)
|
|
57
|
-
const logicalOperatorConditionSchema = {
|
|
58
|
-
type: 'object',
|
|
59
|
-
properties: {
|
|
60
|
-
operator: logicalOperatorSchema,
|
|
61
|
-
conditions: {
|
|
62
|
-
type: 'array',
|
|
63
|
-
items: conditionSchema, // At the deepest level, only simple conditions
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
required: ['operator', 'conditions'],
|
|
67
|
-
additionalProperties: false,
|
|
68
|
-
};
|
|
69
|
-
// Conditions schema allowing nested conditions with up to 2 levels of recursion
|
|
70
|
-
const conditionsSchema = {
|
|
71
|
-
type: 'array',
|
|
72
|
-
items: {
|
|
73
|
-
oneOf: [
|
|
74
|
-
conditionSchema,
|
|
75
|
-
{
|
|
76
|
-
type: 'object',
|
|
77
|
-
properties: {
|
|
78
|
-
operator: logicalOperatorSchema,
|
|
79
|
-
conditions: {
|
|
80
|
-
type: 'array',
|
|
81
|
-
items: {
|
|
82
|
-
oneOf: [conditionSchema, logicalOperatorConditionSchema],
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
required: ['operator', 'conditions'],
|
|
87
|
-
additionalProperties: false,
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
const entityRuleAssertionSchema = {
|
|
93
|
-
type: 'object',
|
|
94
|
-
properties: {
|
|
95
|
-
defined: { type: 'boolean' },
|
|
96
|
-
nonEmpty: { type: 'boolean' },
|
|
97
|
-
eq: {},
|
|
98
|
-
gt: { type: 'number' },
|
|
99
|
-
gte: { type: 'number' },
|
|
100
|
-
lt: { type: 'number' },
|
|
101
|
-
lte: { type: 'number' },
|
|
102
|
-
const: {},
|
|
103
|
-
},
|
|
104
|
-
additionalProperties: false,
|
|
105
|
-
};
|
|
106
|
-
const entityRuleWhereSchema = {
|
|
107
|
-
type: 'array',
|
|
108
|
-
items: {
|
|
109
|
-
type: 'object',
|
|
110
|
-
properties: {
|
|
111
|
-
subject: {
|
|
112
|
-
type: 'object',
|
|
113
|
-
properties: {
|
|
114
|
-
type: {
|
|
115
|
-
type: 'string',
|
|
116
|
-
enum: ['Entity', 'EntityMetadata', 'EntityRelations', 'EntityRelation'],
|
|
117
|
-
},
|
|
118
|
-
property: { type: 'string' },
|
|
119
|
-
},
|
|
120
|
-
required: ['type', 'property'],
|
|
121
|
-
additionalProperties: false,
|
|
122
|
-
},
|
|
123
|
-
assertions: entityRuleAssertionSchema,
|
|
124
|
-
},
|
|
125
|
-
required: ['subject', 'assertions'],
|
|
126
|
-
additionalProperties: false,
|
|
127
|
-
},
|
|
128
|
-
};
|
|
129
|
-
const entityRuleSchema = {
|
|
130
|
-
type: 'object',
|
|
131
|
-
properties: {
|
|
132
|
-
title: { type: 'string' },
|
|
133
|
-
subject: {
|
|
134
|
-
type: 'object',
|
|
135
|
-
properties: {
|
|
136
|
-
type: {
|
|
137
|
-
type: 'string',
|
|
138
|
-
enum: ['Entity', 'EntityMetadata', 'EntityRelations', 'EntityRelation'],
|
|
139
|
-
},
|
|
140
|
-
property: { type: 'string' },
|
|
141
|
-
},
|
|
142
|
-
required: ['type', 'property'],
|
|
143
|
-
additionalProperties: false,
|
|
144
|
-
},
|
|
145
|
-
severity: {
|
|
146
|
-
type: 'string',
|
|
147
|
-
enum: ['error', 'warn', 'off'],
|
|
148
|
-
},
|
|
149
|
-
message: { type: 'string' },
|
|
150
|
-
assertions: entityRuleAssertionSchema,
|
|
151
|
-
where: entityRuleWhereSchema,
|
|
152
|
-
weight: { type: 'number', default: 1 },
|
|
153
|
-
},
|
|
154
|
-
required: ['subject', 'assertions'],
|
|
155
|
-
additionalProperties: false,
|
|
156
|
-
};
|
|
157
|
-
// Supports both OpenAPI/AsyncAPI rules (backward compatibility) and entity rules
|
|
158
|
-
const levelRulesSchema = {
|
|
159
|
-
type: 'object',
|
|
160
|
-
additionalProperties: {
|
|
161
|
-
oneOf: [
|
|
162
|
-
{ type: 'string' },
|
|
163
|
-
{
|
|
164
|
-
type: 'object',
|
|
165
|
-
properties: {
|
|
166
|
-
severity: {
|
|
167
|
-
type: 'string',
|
|
168
|
-
enum: ['error', 'warn', 'off'],
|
|
169
|
-
},
|
|
170
|
-
weight: { type: 'number', default: 1 },
|
|
171
|
-
},
|
|
172
|
-
additionalProperties: true,
|
|
173
|
-
},
|
|
174
|
-
entityRuleSchema,
|
|
175
|
-
],
|
|
176
|
-
},
|
|
177
|
-
};
|
|
178
|
-
const levelSchema = {
|
|
179
|
-
type: 'object',
|
|
180
|
-
properties: {
|
|
181
|
-
name: { type: 'string' },
|
|
182
|
-
extends: common_1.configGovernanceSchema.extends,
|
|
183
|
-
rules: levelRulesSchema,
|
|
184
|
-
},
|
|
185
|
-
required: ['name'],
|
|
186
|
-
additionalProperties: false,
|
|
187
|
-
};
|
|
188
|
-
const triggerEventSchema = {
|
|
189
|
-
type: 'object',
|
|
190
|
-
properties: {
|
|
191
|
-
event: {
|
|
192
|
-
type: 'string',
|
|
193
|
-
enum: ['runtime', 'manual'],
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
required: ['event'],
|
|
197
|
-
additionalProperties: false,
|
|
198
|
-
};
|
|
199
|
-
const triggerSchema = {
|
|
200
|
-
oneOf: [
|
|
201
|
-
triggerEventSchema,
|
|
202
|
-
{
|
|
203
|
-
type: 'array',
|
|
204
|
-
items: triggerEventSchema,
|
|
205
|
-
},
|
|
206
|
-
],
|
|
207
|
-
};
|
|
208
|
-
exports.scorecardSchema = {
|
|
209
|
-
type: 'object',
|
|
210
|
-
properties: {
|
|
211
|
-
name: { type: 'string' },
|
|
212
|
-
key: { type: 'string' },
|
|
213
|
-
description: { type: 'string' },
|
|
214
|
-
entities: {
|
|
215
|
-
oneOf: [
|
|
216
|
-
conditionsSchema,
|
|
217
|
-
{
|
|
218
|
-
type: 'object',
|
|
219
|
-
properties: {
|
|
220
|
-
operator: logicalOperatorSchema,
|
|
221
|
-
conditions: conditionsSchema,
|
|
222
|
-
},
|
|
223
|
-
required: ['operator', 'conditions'],
|
|
224
|
-
additionalProperties: false,
|
|
225
|
-
},
|
|
226
|
-
],
|
|
227
|
-
},
|
|
228
|
-
levels: {
|
|
229
|
-
type: 'array',
|
|
230
|
-
items: levelSchema,
|
|
231
|
-
minItems: 1,
|
|
232
|
-
},
|
|
233
|
-
trigger: triggerSchema,
|
|
234
|
-
},
|
|
235
|
-
required: ['name', 'key', 'entities', 'levels'],
|
|
236
|
-
additionalProperties: false,
|
|
237
|
-
};
|
|
238
|
-
exports.scorecardsConfigSchema = {
|
|
239
|
-
type: 'array',
|
|
240
|
-
items: exports.scorecardSchema,
|
|
241
|
-
};
|
|
242
|
-
//# sourceMappingURL=scorecards-config-schema.js.map
|
package/lib/types/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./api-functions-types"), exports);
|
|
18
|
-
__exportStar(require("./config-types"), exports);
|
|
19
|
-
__exportStar(require("./portal-shared-types"), exports);
|
|
20
|
-
__exportStar(require("./catalog-entity-types"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./code-walkthrough-types"), exports);
|
|
18
|
-
//# sourceMappingURL=portal-shared-types.js.map
|
package/lib/types/redoc-types.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { feedbackConfigSchema } from './feedback-config-schema';
|
|
2
|
-
import { downloadUrlsSchema } from './redoc-config-schema';
|
|
3
|
-
export const asyncapiConfigSchema = {
|
|
4
|
-
type: 'object',
|
|
5
|
-
properties: {
|
|
6
|
-
downloadUrls: downloadUrlsSchema,
|
|
7
|
-
apiLogo: {
|
|
8
|
-
type: 'object',
|
|
9
|
-
properties: {
|
|
10
|
-
imageUrl: {
|
|
11
|
-
type: 'string',
|
|
12
|
-
},
|
|
13
|
-
href: {
|
|
14
|
-
type: 'string',
|
|
15
|
-
},
|
|
16
|
-
altText: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
},
|
|
19
|
-
backgroundColor: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
jsonSamplesDepth: {
|
|
25
|
-
type: 'number',
|
|
26
|
-
},
|
|
27
|
-
samplesMaxInlineArgs: {
|
|
28
|
-
type: 'number',
|
|
29
|
-
},
|
|
30
|
-
fieldExpandLevel: {
|
|
31
|
-
type: 'number',
|
|
32
|
-
},
|
|
33
|
-
baseUrlPath: {
|
|
34
|
-
type: 'string',
|
|
35
|
-
},
|
|
36
|
-
metadata: {
|
|
37
|
-
type: 'object',
|
|
38
|
-
properties: {
|
|
39
|
-
apiId: {
|
|
40
|
-
type: 'string',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
additionalProperties: true,
|
|
44
|
-
},
|
|
45
|
-
feedback: feedbackConfigSchema,
|
|
46
|
-
layout: { type: 'string', enum: ['stacked', 'three-panel'] },
|
|
47
|
-
},
|
|
48
|
-
additionalProperties: false,
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=asyncapi-config-schema.js.map
|
package/lib-esm/common.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
const rulesSchema = {
|
|
2
|
-
nodeTypeName: undefined,
|
|
3
|
-
type: 'object',
|
|
4
|
-
additionalProperties: {
|
|
5
|
-
oneOf: [{ type: 'string' }, { type: 'object' }],
|
|
6
|
-
},
|
|
7
|
-
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.',
|
|
8
|
-
documentationLink: 'https://redocly.com/docs/cli/configuration/reference/rules#rules',
|
|
9
|
-
};
|
|
10
|
-
export const ruleTypes = [
|
|
11
|
-
'rules',
|
|
12
|
-
'oas2Rules',
|
|
13
|
-
'oas3_0Rules',
|
|
14
|
-
'oas3_1Rules',
|
|
15
|
-
'oas3_2Rules',
|
|
16
|
-
'async2Rules',
|
|
17
|
-
'async3Rules',
|
|
18
|
-
'arazzo1Rules',
|
|
19
|
-
'overlay1Rules',
|
|
20
|
-
'openrpc1Rules',
|
|
21
|
-
];
|
|
22
|
-
const ruleSchemas = {
|
|
23
|
-
rules: rulesSchema,
|
|
24
|
-
oas2Rules: rulesSchema,
|
|
25
|
-
oas3_0Rules: rulesSchema,
|
|
26
|
-
oas3_1Rules: rulesSchema,
|
|
27
|
-
oas3_2Rules: rulesSchema,
|
|
28
|
-
async2Rules: rulesSchema,
|
|
29
|
-
async3Rules: rulesSchema,
|
|
30
|
-
arazzo1Rules: rulesSchema,
|
|
31
|
-
overlay1Rules: rulesSchema,
|
|
32
|
-
openrpc1Rules: rulesSchema,
|
|
33
|
-
};
|
|
34
|
-
export const preprocessorTypes = [
|
|
35
|
-
'preprocessors',
|
|
36
|
-
'oas2Preprocessors',
|
|
37
|
-
'oas3_0Preprocessors',
|
|
38
|
-
'oas3_1Preprocessors',
|
|
39
|
-
'oas3_2Preprocessors',
|
|
40
|
-
'async2Preprocessors',
|
|
41
|
-
'async3Preprocessors',
|
|
42
|
-
'arazzo1Preprocessors',
|
|
43
|
-
'overlay1Preprocessors',
|
|
44
|
-
'openrpc1Preprocessors',
|
|
45
|
-
];
|
|
46
|
-
const preprocessorsSchema = {
|
|
47
|
-
nodeTypeName: undefined,
|
|
48
|
-
type: 'object',
|
|
49
|
-
additionalProperties: true,
|
|
50
|
-
};
|
|
51
|
-
const preprocessorSchemas = {
|
|
52
|
-
preprocessors: preprocessorsSchema,
|
|
53
|
-
oas2Preprocessors: preprocessorsSchema,
|
|
54
|
-
oas3_0Preprocessors: preprocessorsSchema,
|
|
55
|
-
oas3_1Preprocessors: preprocessorsSchema,
|
|
56
|
-
oas3_2Preprocessors: preprocessorsSchema,
|
|
57
|
-
async2Preprocessors: preprocessorsSchema,
|
|
58
|
-
async3Preprocessors: preprocessorsSchema,
|
|
59
|
-
arazzo1Preprocessors: preprocessorsSchema,
|
|
60
|
-
overlay1Preprocessors: preprocessorsSchema,
|
|
61
|
-
openrpc1Preprocessors: preprocessorsSchema,
|
|
62
|
-
};
|
|
63
|
-
const decoratorsSchema = {
|
|
64
|
-
nodeTypeName: undefined,
|
|
65
|
-
type: 'object',
|
|
66
|
-
additionalProperties: true,
|
|
67
|
-
};
|
|
68
|
-
export const decoratorTypes = [
|
|
69
|
-
'decorators',
|
|
70
|
-
'oas2Decorators',
|
|
71
|
-
'oas3_0Decorators',
|
|
72
|
-
'oas3_1Decorators',
|
|
73
|
-
'oas3_2Decorators',
|
|
74
|
-
'async2Decorators',
|
|
75
|
-
'async3Decorators',
|
|
76
|
-
'arazzo1Decorators',
|
|
77
|
-
'overlay1Decorators',
|
|
78
|
-
'openrpc1Decorators',
|
|
79
|
-
];
|
|
80
|
-
const decoratorSchemas = {
|
|
81
|
-
decorators: decoratorsSchema,
|
|
82
|
-
oas2Decorators: decoratorsSchema,
|
|
83
|
-
oas3_0Decorators: decoratorsSchema,
|
|
84
|
-
oas3_1Decorators: decoratorsSchema,
|
|
85
|
-
oas3_2Decorators: decoratorsSchema,
|
|
86
|
-
async2Decorators: decoratorsSchema,
|
|
87
|
-
async3Decorators: decoratorsSchema,
|
|
88
|
-
arazzo1Decorators: decoratorsSchema,
|
|
89
|
-
overlay1Decorators: decoratorsSchema,
|
|
90
|
-
openrpc1Decorators: decoratorsSchema,
|
|
91
|
-
};
|
|
92
|
-
const extendsSchema = {
|
|
93
|
-
nodeTypeName: undefined,
|
|
94
|
-
type: 'array',
|
|
95
|
-
items: { type: 'string' },
|
|
96
|
-
description: 'Use extends to inherit rules and their configurations from other rulesets.',
|
|
97
|
-
documentationLink: 'https://redocly.com/docs/cli/configuration/reference/extends',
|
|
98
|
-
};
|
|
99
|
-
export const configGovernanceSchema = Object.assign(Object.assign(Object.assign(Object.assign({}, ruleSchemas), decoratorSchemas), preprocessorSchemas), { extends: extendsSchema });
|
|
100
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createEnum } from './enum';
|
|
2
|
-
export const CONFIG_NODE_TYPE_NAMES = createEnum({
|
|
3
|
-
RedirectSource: 'RedirectSource',
|
|
4
|
-
Redirects: 'Redirects',
|
|
5
|
-
ScorecardClassic: 'ScorecardClassic',
|
|
6
|
-
ScorecardClassicLevelList: 'ScorecardClassicLevelList',
|
|
7
|
-
ScorecardClassicLevel: 'ScorecardClassicLevel',
|
|
8
|
-
ScorecardClassicTargetList: 'ScorecardClassicTargetList',
|
|
9
|
-
ScorecardClassicTarget: 'ScorecardClassicTarget',
|
|
10
|
-
ScorecardClassicTargetWhere: 'ScorecardClassicTargetWhere',
|
|
11
|
-
ScorecardClassicTargetWhereMetadata: 'ScorecardClassicTargetWhereMetadata',
|
|
12
|
-
ScorecardClassicTeamMetadataProperty: 'ScorecardClassicTeamMetadataProperty',
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { createEnum } from './enum';
|
|
2
|
-
export const ENTITY_RELATION_TYPES = [
|
|
3
|
-
'partOf',
|
|
4
|
-
'hasParts',
|
|
5
|
-
'creates',
|
|
6
|
-
'createdBy',
|
|
7
|
-
'owns',
|
|
8
|
-
'ownedBy',
|
|
9
|
-
'implements',
|
|
10
|
-
'implementedBy',
|
|
11
|
-
'dependsOn',
|
|
12
|
-
'dependencyOf',
|
|
13
|
-
'uses',
|
|
14
|
-
'usedBy',
|
|
15
|
-
'produces',
|
|
16
|
-
'consumes',
|
|
17
|
-
'linksTo',
|
|
18
|
-
'supersedes',
|
|
19
|
-
'supersededBy',
|
|
20
|
-
'compatibleWith',
|
|
21
|
-
'extends',
|
|
22
|
-
'extendedBy',
|
|
23
|
-
'relatesTo',
|
|
24
|
-
'hasMember',
|
|
25
|
-
'memberOf',
|
|
26
|
-
'triggers',
|
|
27
|
-
'triggeredBy',
|
|
28
|
-
'returns',
|
|
29
|
-
'returnedBy',
|
|
30
|
-
];
|
|
31
|
-
export const ENTITY_NODE_TYPE_NAMES = createEnum({
|
|
32
|
-
UserEntity: 'UserEntity',
|
|
33
|
-
UserEntityMetadata: 'UserEntityMetadata',
|
|
34
|
-
ApiDescriptionEntity: 'ApiDescriptionEntity',
|
|
35
|
-
ApiDescriptionEntityMetadata: 'ApiDescriptionEntityMetadata',
|
|
36
|
-
ApiOperationEntity: 'ApiOperationEntity',
|
|
37
|
-
ApiOperationEntityMetadata: 'ApiOperationEntityMetadata',
|
|
38
|
-
DataSchemaEntity: 'DataSchemaEntity',
|
|
39
|
-
DataSchemaEntityMetadata: 'DataSchemaEntityMetadata',
|
|
40
|
-
ServiceEntity: 'ServiceEntity',
|
|
41
|
-
DomainEntity: 'DomainEntity',
|
|
42
|
-
TeamEntity: 'TeamEntity',
|
|
43
|
-
Entity: 'Entity',
|
|
44
|
-
EntityMetadata: 'EntityMetadata',
|
|
45
|
-
EntityLinkList: 'EntityLinkList',
|
|
46
|
-
EntityLink: 'EntityLink',
|
|
47
|
-
EntityRelation: 'EntityRelation',
|
|
48
|
-
EntityRelationList: 'EntityRelationList',
|
|
49
|
-
EntityContact: 'EntityContact',
|
|
50
|
-
EntitySlackContact: 'EntitySlackContact',
|
|
51
|
-
EntitySlackChannel: 'EntitySlackChannel',
|
|
52
|
-
});
|
|
53
|
-
// 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)
|
|
54
|
-
export const NODE_TYPE_NAMES = ENTITY_NODE_TYPE_NAMES;
|
|
55
|
-
//# sourceMappingURL=entities.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_TEAM_CLAIM_NAME = 'https://redocly.com/sso/teams';
|
|
2
|
-
export var AuthProviderType;
|
|
3
|
-
(function (AuthProviderType) {
|
|
4
|
-
AuthProviderType["OIDC"] = "OIDC";
|
|
5
|
-
AuthProviderType["SAML2"] = "SAML2";
|
|
6
|
-
})(AuthProviderType || (AuthProviderType = {}));
|
|
7
|
-
export var ApigeeDevOnboardingIntegrationAuthType;
|
|
8
|
-
(function (ApigeeDevOnboardingIntegrationAuthType) {
|
|
9
|
-
ApigeeDevOnboardingIntegrationAuthType["SERVICE_ACCOUNT"] = "SERVICE_ACCOUNT";
|
|
10
|
-
ApigeeDevOnboardingIntegrationAuthType["OAUTH2"] = "OAUTH2";
|
|
11
|
-
})(ApigeeDevOnboardingIntegrationAuthType || (ApigeeDevOnboardingIntegrationAuthType = {}));
|
|
12
|
-
export const REDOCLY_TEAMS_RBAC = 'redocly::teams-rbac';
|
|
13
|
-
export const REDOCLY_ROUTE_RBAC = 'redocly::route-rbac';
|
|
14
|
-
export var LayoutVariant;
|
|
15
|
-
(function (LayoutVariant) {
|
|
16
|
-
LayoutVariant["STACKED"] = "stacked";
|
|
17
|
-
LayoutVariant["THREE_PANEL"] = "three-panel";
|
|
18
|
-
})(LayoutVariant || (LayoutVariant = {}));
|
|
19
|
-
//# sourceMappingURL=shared.js.map
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { graphqlConfigSchema } from './graphql-config-schema';
|
|
2
|
-
import { asyncapiConfigSchema } from './asyncapi-config-schema';
|
|
3
|
-
import { feedbackConfigSchema } from './feedback-config-schema';
|
|
4
|
-
import { logoConfigSchema, analyticsConfigSchema, breadcrumbsConfigSchema, catalogsConfigSchema, codeSnippetConfigSchema, colorModeConfigSchema, paletteConfigSchema, footerConfigSchema, linksConfigSchema, markdownConfigSchema, navbarConfigSchema, navigationConfigSchema, openapiConfigSchema, productsConfigSchema, scorecardConfigSchema, scriptsConfigSchema, searchConfigSchema, aiAssistantSchema, sidebarConfigSchema, userMenuConfigSchema, versionPickerConfigSchema, } from './ex-theme-config-schemas';
|
|
5
|
-
import { entitiesCatalogConfigSchema } from './entities-catalog-config-schema';
|
|
6
|
-
import { scorecardsConfigSchema } from './scorecards-config-schema';
|
|
7
|
-
export const themeConfigSchema = {
|
|
8
|
-
type: 'object',
|
|
9
|
-
properties: {
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Should use `plugins` instead
|
|
12
|
-
*/
|
|
13
|
-
imports: {
|
|
14
|
-
type: 'array',
|
|
15
|
-
items: { type: 'string' },
|
|
16
|
-
},
|
|
17
|
-
logo: logoConfigSchema,
|
|
18
|
-
navbar: navbarConfigSchema,
|
|
19
|
-
products: productsConfigSchema,
|
|
20
|
-
footer: footerConfigSchema,
|
|
21
|
-
sidebar: sidebarConfigSchema,
|
|
22
|
-
scripts: scriptsConfigSchema,
|
|
23
|
-
links: linksConfigSchema,
|
|
24
|
-
feedback: feedbackConfigSchema,
|
|
25
|
-
search: searchConfigSchema,
|
|
26
|
-
aiAssistant: aiAssistantSchema,
|
|
27
|
-
colorMode: colorModeConfigSchema,
|
|
28
|
-
palette: paletteConfigSchema,
|
|
29
|
-
navigation: navigationConfigSchema,
|
|
30
|
-
codeSnippet: codeSnippetConfigSchema,
|
|
31
|
-
markdown: markdownConfigSchema,
|
|
32
|
-
openapi: openapiConfigSchema,
|
|
33
|
-
asyncapi: asyncapiConfigSchema,
|
|
34
|
-
graphql: graphqlConfigSchema,
|
|
35
|
-
analytics: analyticsConfigSchema,
|
|
36
|
-
userMenu: userMenuConfigSchema,
|
|
37
|
-
versionPicker: versionPickerConfigSchema,
|
|
38
|
-
breadcrumbs: breadcrumbsConfigSchema,
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Should use `catalogClassic` instead
|
|
41
|
-
*/
|
|
42
|
-
catalog: catalogsConfigSchema,
|
|
43
|
-
entitiesCatalog: entitiesCatalogConfigSchema,
|
|
44
|
-
catalogClassic: catalogsConfigSchema,
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Should use `scorecardClassic` instead
|
|
47
|
-
*/
|
|
48
|
-
scorecard: scorecardConfigSchema,
|
|
49
|
-
scorecardClassic: scorecardConfigSchema,
|
|
50
|
-
scorecards: scorecardsConfigSchema,
|
|
51
|
-
},
|
|
52
|
-
additionalProperties: true,
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=default-theme-config-schema.js.map
|