@redocly/config 0.43.0-custom.1 → 0.44.0
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/common.d.ts +241 -22
- package/lib/common.js +50 -37
- package/lib/constants/config.d.ts +12 -0
- package/lib/constants/config.js +17 -0
- package/lib/constants/entities.d.ts +45 -0
- package/lib/constants/entities.js +58 -0
- package/lib/constants/enum.d.ts +1 -0
- package/lib/constants/enum.js +6 -0
- package/lib/constants/shared.d.ts +15 -0
- package/lib/constants/shared.js +22 -0
- package/lib/default-theme-config-schema.d.ts +869 -747
- package/lib/default-theme-config-schema.js +1 -1
- package/lib/entities-catalog-entity-file-schema.js +22 -22
- package/lib/ex-theme-config-schemas.d.ts +99 -30
- package/lib/ex-theme-config-schemas.js +23 -3
- package/lib/graphql-config-schema.d.ts +0 -19
- package/lib/graphql-config-schema.js +0 -19
- package/lib/index.d.ts +3 -1
- package/lib/index.js +13 -10
- package/lib/product-override-schema.d.ts +73 -58
- package/lib/root-config-schema.d.ts +2848 -1867
- package/lib/root-config-schema.js +18 -11
- package/lib/scorecards-config-schema.d.ts +6 -0
- package/lib/scorecards-config-schema.js +2 -4
- package/lib/types/portal-shared-types.d.ts +1 -1
- package/lib-esm/common.d.ts +241 -22
- package/lib-esm/common.js +29 -16
- package/lib-esm/constants/config.d.ts +12 -0
- package/lib-esm/constants/config.js +14 -0
- package/lib-esm/constants/entities.d.ts +45 -0
- package/lib-esm/constants/entities.js +55 -0
- package/lib-esm/constants/enum.d.ts +1 -0
- package/lib-esm/constants/enum.js +2 -0
- package/lib-esm/constants/shared.d.ts +15 -0
- package/lib-esm/constants/shared.js +19 -0
- package/lib-esm/default-theme-config-schema.d.ts +869 -747
- package/lib-esm/default-theme-config-schema.js +1 -1
- package/lib-esm/entities-catalog-entity-file-schema.js +21 -21
- package/lib-esm/ex-theme-config-schemas.d.ts +99 -30
- package/lib-esm/ex-theme-config-schemas.js +24 -4
- package/lib-esm/graphql-config-schema.d.ts +0 -19
- package/lib-esm/graphql-config-schema.js +0 -19
- package/lib-esm/index.d.ts +3 -1
- package/lib-esm/index.js +3 -1
- package/lib-esm/product-override-schema.d.ts +73 -58
- package/lib-esm/root-config-schema.d.ts +11074 -10093
- package/lib-esm/root-config-schema.js +14 -7
- package/lib-esm/scorecards-config-schema.d.ts +6 -0
- package/lib-esm/scorecards-config-schema.js +2 -4
- package/lib-esm/types/portal-shared-types.d.ts +1 -1
- package/package.json +2 -2
- package/lib/constants.d.ts +0 -38
- package/lib/constants.js +0 -73
- package/lib-esm/constants.d.ts +0 -38
- package/lib-esm/constants.js +0 -70
- package/lib-esm/types/scorecards-types.d.ts +0 -3
- package/lib-esm/types/scorecards-types.js +0 -2
package/lib/common.d.ts
CHANGED
|
@@ -1,28 +1,247 @@
|
|
|
1
|
-
export declare const rulesSchema: {
|
|
2
|
-
readonly type: "object";
|
|
3
|
-
readonly additionalProperties: {
|
|
4
|
-
readonly oneOf: readonly [{
|
|
5
|
-
readonly type: "string";
|
|
6
|
-
}, {
|
|
7
|
-
readonly type: "object";
|
|
8
|
-
}];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
1
|
export declare const ruleTypes: readonly ["rules", "oas2Rules", "oas3_0Rules", "oas3_1Rules", "oas3_2Rules", "async2Rules", "async3Rules", "arazzo1Rules", "overlay1Rules", "openrpc1Rules"];
|
|
12
2
|
export type RuleTypes = (typeof ruleTypes)[number];
|
|
13
|
-
export declare const ruleSchemas: Record<RuleTypes, typeof rulesSchema>;
|
|
14
3
|
export declare const preprocessorTypes: readonly ["preprocessors", "oas2Preprocessors", "oas3_0Preprocessors", "oas3_1Preprocessors", "oas3_2Preprocessors", "async2Preprocessors", "async3Preprocessors", "arazzo1Preprocessors", "overlay1Preprocessors", "openrpc1Preprocessors"];
|
|
15
4
|
export type PreprocessorTypes = (typeof preprocessorTypes)[number];
|
|
16
|
-
declare const preprocessorSchema: {
|
|
17
|
-
readonly type: "object";
|
|
18
|
-
readonly additionalProperties: true;
|
|
19
|
-
};
|
|
20
|
-
export declare const preprocessorSchemas: Record<PreprocessorTypes, typeof preprocessorSchema>;
|
|
21
|
-
export declare const decoratorsSchema: {
|
|
22
|
-
readonly type: "object";
|
|
23
|
-
readonly additionalProperties: true;
|
|
24
|
-
};
|
|
25
5
|
export declare const decoratorTypes: readonly ["decorators", "oas2Decorators", "oas3_0Decorators", "oas3_1Decorators", "oas3_2Decorators", "async2Decorators", "async3Decorators", "arazzo1Decorators", "overlay1Decorators", "openrpc1Decorators"];
|
|
26
6
|
export type DecoratorTypes = (typeof decoratorTypes)[number];
|
|
27
|
-
export declare const
|
|
28
|
-
|
|
7
|
+
export declare const configGovernanceSchema: {
|
|
8
|
+
extends: {
|
|
9
|
+
readonly nodeTypeName: undefined;
|
|
10
|
+
readonly type: "array";
|
|
11
|
+
readonly items: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
};
|
|
14
|
+
readonly description: "Use extends to inherit rules and their configurations from other rulesets.";
|
|
15
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/extends";
|
|
16
|
+
};
|
|
17
|
+
preprocessors: {
|
|
18
|
+
readonly nodeTypeName: undefined;
|
|
19
|
+
readonly type: "object";
|
|
20
|
+
readonly additionalProperties: true;
|
|
21
|
+
};
|
|
22
|
+
oas2Preprocessors: {
|
|
23
|
+
readonly nodeTypeName: undefined;
|
|
24
|
+
readonly type: "object";
|
|
25
|
+
readonly additionalProperties: true;
|
|
26
|
+
};
|
|
27
|
+
oas3_0Preprocessors: {
|
|
28
|
+
readonly nodeTypeName: undefined;
|
|
29
|
+
readonly type: "object";
|
|
30
|
+
readonly additionalProperties: true;
|
|
31
|
+
};
|
|
32
|
+
oas3_1Preprocessors: {
|
|
33
|
+
readonly nodeTypeName: undefined;
|
|
34
|
+
readonly type: "object";
|
|
35
|
+
readonly additionalProperties: true;
|
|
36
|
+
};
|
|
37
|
+
oas3_2Preprocessors: {
|
|
38
|
+
readonly nodeTypeName: undefined;
|
|
39
|
+
readonly type: "object";
|
|
40
|
+
readonly additionalProperties: true;
|
|
41
|
+
};
|
|
42
|
+
async2Preprocessors: {
|
|
43
|
+
readonly nodeTypeName: undefined;
|
|
44
|
+
readonly type: "object";
|
|
45
|
+
readonly additionalProperties: true;
|
|
46
|
+
};
|
|
47
|
+
async3Preprocessors: {
|
|
48
|
+
readonly nodeTypeName: undefined;
|
|
49
|
+
readonly type: "object";
|
|
50
|
+
readonly additionalProperties: true;
|
|
51
|
+
};
|
|
52
|
+
arazzo1Preprocessors: {
|
|
53
|
+
readonly nodeTypeName: undefined;
|
|
54
|
+
readonly type: "object";
|
|
55
|
+
readonly additionalProperties: true;
|
|
56
|
+
};
|
|
57
|
+
overlay1Preprocessors: {
|
|
58
|
+
readonly nodeTypeName: undefined;
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly additionalProperties: true;
|
|
61
|
+
};
|
|
62
|
+
openrpc1Preprocessors: {
|
|
63
|
+
readonly nodeTypeName: undefined;
|
|
64
|
+
readonly type: "object";
|
|
65
|
+
readonly additionalProperties: true;
|
|
66
|
+
};
|
|
67
|
+
decorators: {
|
|
68
|
+
readonly nodeTypeName: undefined;
|
|
69
|
+
readonly type: "object";
|
|
70
|
+
readonly additionalProperties: true;
|
|
71
|
+
};
|
|
72
|
+
oas2Decorators: {
|
|
73
|
+
readonly nodeTypeName: undefined;
|
|
74
|
+
readonly type: "object";
|
|
75
|
+
readonly additionalProperties: true;
|
|
76
|
+
};
|
|
77
|
+
oas3_0Decorators: {
|
|
78
|
+
readonly nodeTypeName: undefined;
|
|
79
|
+
readonly type: "object";
|
|
80
|
+
readonly additionalProperties: true;
|
|
81
|
+
};
|
|
82
|
+
oas3_1Decorators: {
|
|
83
|
+
readonly nodeTypeName: undefined;
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly additionalProperties: true;
|
|
86
|
+
};
|
|
87
|
+
oas3_2Decorators: {
|
|
88
|
+
readonly nodeTypeName: undefined;
|
|
89
|
+
readonly type: "object";
|
|
90
|
+
readonly additionalProperties: true;
|
|
91
|
+
};
|
|
92
|
+
async2Decorators: {
|
|
93
|
+
readonly nodeTypeName: undefined;
|
|
94
|
+
readonly type: "object";
|
|
95
|
+
readonly additionalProperties: true;
|
|
96
|
+
};
|
|
97
|
+
async3Decorators: {
|
|
98
|
+
readonly nodeTypeName: undefined;
|
|
99
|
+
readonly type: "object";
|
|
100
|
+
readonly additionalProperties: true;
|
|
101
|
+
};
|
|
102
|
+
arazzo1Decorators: {
|
|
103
|
+
readonly nodeTypeName: undefined;
|
|
104
|
+
readonly type: "object";
|
|
105
|
+
readonly additionalProperties: true;
|
|
106
|
+
};
|
|
107
|
+
overlay1Decorators: {
|
|
108
|
+
readonly nodeTypeName: undefined;
|
|
109
|
+
readonly type: "object";
|
|
110
|
+
readonly additionalProperties: true;
|
|
111
|
+
};
|
|
112
|
+
openrpc1Decorators: {
|
|
113
|
+
readonly nodeTypeName: undefined;
|
|
114
|
+
readonly type: "object";
|
|
115
|
+
readonly additionalProperties: true;
|
|
116
|
+
};
|
|
117
|
+
rules: {
|
|
118
|
+
readonly nodeTypeName: undefined;
|
|
119
|
+
readonly type: "object";
|
|
120
|
+
readonly additionalProperties: {
|
|
121
|
+
readonly oneOf: readonly [{
|
|
122
|
+
readonly type: "string";
|
|
123
|
+
}, {
|
|
124
|
+
readonly type: "object";
|
|
125
|
+
}];
|
|
126
|
+
};
|
|
127
|
+
readonly 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.";
|
|
128
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules";
|
|
129
|
+
};
|
|
130
|
+
oas2Rules: {
|
|
131
|
+
readonly nodeTypeName: undefined;
|
|
132
|
+
readonly type: "object";
|
|
133
|
+
readonly additionalProperties: {
|
|
134
|
+
readonly oneOf: readonly [{
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
}, {
|
|
137
|
+
readonly type: "object";
|
|
138
|
+
}];
|
|
139
|
+
};
|
|
140
|
+
readonly 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.";
|
|
141
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules";
|
|
142
|
+
};
|
|
143
|
+
oas3_0Rules: {
|
|
144
|
+
readonly nodeTypeName: undefined;
|
|
145
|
+
readonly type: "object";
|
|
146
|
+
readonly additionalProperties: {
|
|
147
|
+
readonly oneOf: readonly [{
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
}, {
|
|
150
|
+
readonly type: "object";
|
|
151
|
+
}];
|
|
152
|
+
};
|
|
153
|
+
readonly 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.";
|
|
154
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules";
|
|
155
|
+
};
|
|
156
|
+
oas3_1Rules: {
|
|
157
|
+
readonly nodeTypeName: undefined;
|
|
158
|
+
readonly type: "object";
|
|
159
|
+
readonly additionalProperties: {
|
|
160
|
+
readonly oneOf: readonly [{
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
}, {
|
|
163
|
+
readonly type: "object";
|
|
164
|
+
}];
|
|
165
|
+
};
|
|
166
|
+
readonly 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.";
|
|
167
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules";
|
|
168
|
+
};
|
|
169
|
+
oas3_2Rules: {
|
|
170
|
+
readonly nodeTypeName: undefined;
|
|
171
|
+
readonly type: "object";
|
|
172
|
+
readonly additionalProperties: {
|
|
173
|
+
readonly oneOf: readonly [{
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
}, {
|
|
176
|
+
readonly type: "object";
|
|
177
|
+
}];
|
|
178
|
+
};
|
|
179
|
+
readonly 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.";
|
|
180
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules";
|
|
181
|
+
};
|
|
182
|
+
async2Rules: {
|
|
183
|
+
readonly nodeTypeName: undefined;
|
|
184
|
+
readonly type: "object";
|
|
185
|
+
readonly additionalProperties: {
|
|
186
|
+
readonly oneOf: readonly [{
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
}, {
|
|
189
|
+
readonly type: "object";
|
|
190
|
+
}];
|
|
191
|
+
};
|
|
192
|
+
readonly 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.";
|
|
193
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules";
|
|
194
|
+
};
|
|
195
|
+
async3Rules: {
|
|
196
|
+
readonly nodeTypeName: undefined;
|
|
197
|
+
readonly type: "object";
|
|
198
|
+
readonly additionalProperties: {
|
|
199
|
+
readonly oneOf: readonly [{
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
}, {
|
|
202
|
+
readonly type: "object";
|
|
203
|
+
}];
|
|
204
|
+
};
|
|
205
|
+
readonly 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.";
|
|
206
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules";
|
|
207
|
+
};
|
|
208
|
+
arazzo1Rules: {
|
|
209
|
+
readonly nodeTypeName: undefined;
|
|
210
|
+
readonly type: "object";
|
|
211
|
+
readonly additionalProperties: {
|
|
212
|
+
readonly oneOf: readonly [{
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
}, {
|
|
215
|
+
readonly type: "object";
|
|
216
|
+
}];
|
|
217
|
+
};
|
|
218
|
+
readonly 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.";
|
|
219
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules";
|
|
220
|
+
};
|
|
221
|
+
overlay1Rules: {
|
|
222
|
+
readonly nodeTypeName: undefined;
|
|
223
|
+
readonly type: "object";
|
|
224
|
+
readonly additionalProperties: {
|
|
225
|
+
readonly oneOf: readonly [{
|
|
226
|
+
readonly type: "string";
|
|
227
|
+
}, {
|
|
228
|
+
readonly type: "object";
|
|
229
|
+
}];
|
|
230
|
+
};
|
|
231
|
+
readonly 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.";
|
|
232
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules";
|
|
233
|
+
};
|
|
234
|
+
openrpc1Rules: {
|
|
235
|
+
readonly nodeTypeName: undefined;
|
|
236
|
+
readonly type: "object";
|
|
237
|
+
readonly additionalProperties: {
|
|
238
|
+
readonly oneOf: readonly [{
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
}, {
|
|
241
|
+
readonly type: "object";
|
|
242
|
+
}];
|
|
243
|
+
};
|
|
244
|
+
readonly 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.";
|
|
245
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules";
|
|
246
|
+
};
|
|
247
|
+
};
|
package/lib/common.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
3
|
+
exports.configGovernanceSchema = exports.decoratorTypes = exports.preprocessorTypes = exports.ruleTypes = void 0;
|
|
4
|
+
const rulesSchema = {
|
|
5
|
+
nodeTypeName: undefined,
|
|
5
6
|
type: 'object',
|
|
6
7
|
additionalProperties: {
|
|
7
8
|
oneOf: [{ type: 'string' }, { type: 'object' }],
|
|
8
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',
|
|
9
12
|
};
|
|
10
13
|
exports.ruleTypes = [
|
|
11
14
|
'rules',
|
|
@@ -19,17 +22,17 @@ exports.ruleTypes = [
|
|
|
19
22
|
'overlay1Rules',
|
|
20
23
|
'openrpc1Rules',
|
|
21
24
|
];
|
|
22
|
-
|
|
23
|
-
rules:
|
|
24
|
-
oas2Rules:
|
|
25
|
-
oas3_0Rules:
|
|
26
|
-
oas3_1Rules:
|
|
27
|
-
oas3_2Rules:
|
|
28
|
-
async2Rules:
|
|
29
|
-
async3Rules:
|
|
30
|
-
arazzo1Rules:
|
|
31
|
-
overlay1Rules:
|
|
32
|
-
openrpc1Rules:
|
|
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,
|
|
33
36
|
};
|
|
34
37
|
exports.preprocessorTypes = [
|
|
35
38
|
'preprocessors',
|
|
@@ -43,23 +46,25 @@ exports.preprocessorTypes = [
|
|
|
43
46
|
'overlay1Preprocessors',
|
|
44
47
|
'openrpc1Preprocessors',
|
|
45
48
|
];
|
|
46
|
-
const
|
|
49
|
+
const preprocessorsSchema = {
|
|
50
|
+
nodeTypeName: undefined,
|
|
47
51
|
type: 'object',
|
|
48
52
|
additionalProperties: true,
|
|
49
53
|
};
|
|
50
|
-
|
|
51
|
-
preprocessors:
|
|
52
|
-
oas2Preprocessors:
|
|
53
|
-
oas3_0Preprocessors:
|
|
54
|
-
oas3_1Preprocessors:
|
|
55
|
-
oas3_2Preprocessors:
|
|
56
|
-
async2Preprocessors:
|
|
57
|
-
async3Preprocessors:
|
|
58
|
-
arazzo1Preprocessors:
|
|
59
|
-
overlay1Preprocessors:
|
|
60
|
-
openrpc1Preprocessors:
|
|
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,
|
|
61
65
|
};
|
|
62
|
-
|
|
66
|
+
const decoratorsSchema = {
|
|
67
|
+
nodeTypeName: undefined,
|
|
63
68
|
type: 'object',
|
|
64
69
|
additionalProperties: true,
|
|
65
70
|
};
|
|
@@ -75,16 +80,24 @@ exports.decoratorTypes = [
|
|
|
75
80
|
'overlay1Decorators',
|
|
76
81
|
'openrpc1Decorators',
|
|
77
82
|
];
|
|
78
|
-
|
|
79
|
-
decorators:
|
|
80
|
-
oas2Decorators:
|
|
81
|
-
oas3_0Decorators:
|
|
82
|
-
oas3_1Decorators:
|
|
83
|
-
oas3_2Decorators:
|
|
84
|
-
async2Decorators:
|
|
85
|
-
async3Decorators:
|
|
86
|
-
arazzo1Decorators:
|
|
87
|
-
overlay1Decorators:
|
|
88
|
-
openrpc1Decorators:
|
|
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,
|
|
89
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 });
|
|
90
103
|
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const CONFIG_NODE_TYPE_NAMES: {
|
|
2
|
+
readonly RedirectSource: "RedirectSource";
|
|
3
|
+
readonly Redirects: "Redirects";
|
|
4
|
+
readonly ScorecardClassic: "ScorecardClassic";
|
|
5
|
+
readonly ScorecardClassicLevelList: "ScorecardClassicLevelList";
|
|
6
|
+
readonly ScorecardClassicLevel: "ScorecardClassicLevel";
|
|
7
|
+
readonly ScorecardClassicTargetList: "ScorecardClassicTargetList";
|
|
8
|
+
readonly ScorecardClassicTarget: "ScorecardClassicTarget";
|
|
9
|
+
readonly ScorecardClassicTargetWhere: "ScorecardClassicTargetWhere";
|
|
10
|
+
readonly ScorecardClassicTargetWhereMetadata: "ScorecardClassicTargetWhereMetadata";
|
|
11
|
+
readonly ScorecardClassicTeamMetadataProperty: "ScorecardClassicTeamMetadataProperty";
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const ENTITY_RELATION_TYPES: readonly ["partOf", "hasParts", "creates", "createdBy", "owns", "ownedBy", "implements", "implementedBy", "dependsOn", "dependencyOf", "uses", "usedBy", "produces", "consumes", "linksTo", "supersedes", "supersededBy", "compatibleWith", "extends", "extendedBy", "relatesTo", "hasMember", "memberOf", "triggers", "triggeredBy", "returns", "returnedBy"];
|
|
2
|
+
export declare const ENTITY_NODE_TYPE_NAMES: {
|
|
3
|
+
readonly UserEntity: "UserEntity";
|
|
4
|
+
readonly UserEntityMetadata: "UserEntityMetadata";
|
|
5
|
+
readonly ApiDescriptionEntity: "ApiDescriptionEntity";
|
|
6
|
+
readonly ApiDescriptionEntityMetadata: "ApiDescriptionEntityMetadata";
|
|
7
|
+
readonly ApiOperationEntity: "ApiOperationEntity";
|
|
8
|
+
readonly ApiOperationEntityMetadata: "ApiOperationEntityMetadata";
|
|
9
|
+
readonly DataSchemaEntity: "DataSchemaEntity";
|
|
10
|
+
readonly DataSchemaEntityMetadata: "DataSchemaEntityMetadata";
|
|
11
|
+
readonly ServiceEntity: "ServiceEntity";
|
|
12
|
+
readonly DomainEntity: "DomainEntity";
|
|
13
|
+
readonly TeamEntity: "TeamEntity";
|
|
14
|
+
readonly Entity: "Entity";
|
|
15
|
+
readonly EntityMetadata: "EntityMetadata";
|
|
16
|
+
readonly EntityLinkList: "EntityLinkList";
|
|
17
|
+
readonly EntityLink: "EntityLink";
|
|
18
|
+
readonly EntityRelation: "EntityRelation";
|
|
19
|
+
readonly EntityRelationList: "EntityRelationList";
|
|
20
|
+
readonly EntityContact: "EntityContact";
|
|
21
|
+
readonly EntitySlackContact: "EntitySlackContact";
|
|
22
|
+
readonly EntitySlackChannel: "EntitySlackChannel";
|
|
23
|
+
};
|
|
24
|
+
export declare const NODE_TYPE_NAMES: {
|
|
25
|
+
readonly UserEntity: "UserEntity";
|
|
26
|
+
readonly UserEntityMetadata: "UserEntityMetadata";
|
|
27
|
+
readonly ApiDescriptionEntity: "ApiDescriptionEntity";
|
|
28
|
+
readonly ApiDescriptionEntityMetadata: "ApiDescriptionEntityMetadata";
|
|
29
|
+
readonly ApiOperationEntity: "ApiOperationEntity";
|
|
30
|
+
readonly ApiOperationEntityMetadata: "ApiOperationEntityMetadata";
|
|
31
|
+
readonly DataSchemaEntity: "DataSchemaEntity";
|
|
32
|
+
readonly DataSchemaEntityMetadata: "DataSchemaEntityMetadata";
|
|
33
|
+
readonly ServiceEntity: "ServiceEntity";
|
|
34
|
+
readonly DomainEntity: "DomainEntity";
|
|
35
|
+
readonly TeamEntity: "TeamEntity";
|
|
36
|
+
readonly Entity: "Entity";
|
|
37
|
+
readonly EntityMetadata: "EntityMetadata";
|
|
38
|
+
readonly EntityLinkList: "EntityLinkList";
|
|
39
|
+
readonly EntityLink: "EntityLink";
|
|
40
|
+
readonly EntityRelation: "EntityRelation";
|
|
41
|
+
readonly EntityRelationList: "EntityRelationList";
|
|
42
|
+
readonly EntityContact: "EntityContact";
|
|
43
|
+
readonly EntitySlackContact: "EntitySlackContact";
|
|
44
|
+
readonly EntitySlackChannel: "EntitySlackChannel";
|
|
45
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createEnum: <T extends { [K in keyof T]: K; }>(obj: T) => T;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const DEFAULT_TEAM_CLAIM_NAME = "https://redocly.com/sso/teams";
|
|
2
|
+
export declare enum AuthProviderType {
|
|
3
|
+
OIDC = "OIDC",
|
|
4
|
+
SAML2 = "SAML2"
|
|
5
|
+
}
|
|
6
|
+
export declare enum ApigeeDevOnboardingIntegrationAuthType {
|
|
7
|
+
SERVICE_ACCOUNT = "SERVICE_ACCOUNT",
|
|
8
|
+
OAUTH2 = "OAUTH2"
|
|
9
|
+
}
|
|
10
|
+
export declare const REDOCLY_TEAMS_RBAC = "redocly::teams-rbac";
|
|
11
|
+
export declare const REDOCLY_ROUTE_RBAC = "redocly::route-rbac";
|
|
12
|
+
export declare enum LayoutVariant {
|
|
13
|
+
STACKED = "stacked",
|
|
14
|
+
THREE_PANEL = "three-panel"
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|