@redocly/config 0.40.0 → 0.41.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/common.d.ts +3 -3
- package/lib/common.js +6 -0
- package/lib/default-theme-config-schema.d.ts +573 -7
- package/lib/default-theme-config-schema.js +2 -1
- package/lib/ex-theme-config-schemas.d.ts +18 -11
- package/lib/ex-theme-config-schemas.js +1 -9
- package/lib/product-override-schema.d.ts +18 -0
- package/lib/root-config-schema.d.ts +3854 -1003
- package/lib/root-config-schema.js +24 -2
- package/lib/scorecards-config-schema.d.ts +1079 -0
- package/lib/scorecards-config-schema.js +240 -0
- package/lib/types/api-functions-types.d.ts +12 -13
- package/lib/types/config-types.d.ts +5 -2
- package/lib/types/portal-shared-types.d.ts +1 -1
- package/lib-esm/common.d.ts +3 -3
- package/lib-esm/common.js +6 -0
- package/lib-esm/default-theme-config-schema.d.ts +573 -7
- package/lib-esm/default-theme-config-schema.js +2 -1
- package/lib-esm/ex-theme-config-schemas.d.ts +18 -11
- package/lib-esm/ex-theme-config-schemas.js +0 -8
- package/lib-esm/product-override-schema.d.ts +18 -0
- package/lib-esm/root-config-schema.d.ts +3854 -1003
- package/lib-esm/root-config-schema.js +24 -2
- package/lib-esm/scorecards-config-schema.d.ts +1079 -0
- package/lib-esm/scorecards-config-schema.js +237 -0
- package/lib-esm/types/api-functions-types.d.ts +12 -13
- package/lib-esm/types/config-types.d.ts +5 -2
- package/lib-esm/types/portal-shared-types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scorecardsConfigSchema = exports.scorecardSchema = void 0;
|
|
4
|
+
const operatorSchema = {
|
|
5
|
+
type: 'string',
|
|
6
|
+
enum: [
|
|
7
|
+
'eq',
|
|
8
|
+
'in',
|
|
9
|
+
'gt',
|
|
10
|
+
'gte',
|
|
11
|
+
'lt',
|
|
12
|
+
'lte',
|
|
13
|
+
'contains',
|
|
14
|
+
'startsWith',
|
|
15
|
+
'endsWith',
|
|
16
|
+
'exists',
|
|
17
|
+
'isEmpty',
|
|
18
|
+
'between',
|
|
19
|
+
'matches',
|
|
20
|
+
'some',
|
|
21
|
+
'every',
|
|
22
|
+
'none',
|
|
23
|
+
'and',
|
|
24
|
+
'or',
|
|
25
|
+
'not',
|
|
26
|
+
],
|
|
27
|
+
};
|
|
28
|
+
// Base condition schema with field, operator, value, and match properties
|
|
29
|
+
const conditionSchema = {
|
|
30
|
+
type: 'object',
|
|
31
|
+
properties: {
|
|
32
|
+
field: { type: 'string' },
|
|
33
|
+
operator: operatorSchema,
|
|
34
|
+
value: {
|
|
35
|
+
oneOf: [{ type: 'boolean' }, { type: 'string' }, { type: 'number' }],
|
|
36
|
+
},
|
|
37
|
+
match: {
|
|
38
|
+
type: 'array',
|
|
39
|
+
items: {
|
|
40
|
+
type: 'object',
|
|
41
|
+
properties: {
|
|
42
|
+
field: { type: 'string' },
|
|
43
|
+
operator: operatorSchema,
|
|
44
|
+
value: {
|
|
45
|
+
oneOf: [{ type: 'boolean' }, { type: 'string' }, { type: 'number' }],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
// Schema for a logical operator with conditions (used for nesting)
|
|
53
|
+
const logicalOperatorConditionSchema = {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
operator: operatorSchema,
|
|
57
|
+
conditions: {
|
|
58
|
+
type: 'array',
|
|
59
|
+
items: conditionSchema, // At the deepest level, only simple conditions
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
required: ['operator', 'conditions'],
|
|
63
|
+
additionalProperties: false,
|
|
64
|
+
};
|
|
65
|
+
// Conditions schema allowing nested conditions with up to 2 levels of recursion
|
|
66
|
+
const conditionsSchema = {
|
|
67
|
+
type: 'array',
|
|
68
|
+
items: {
|
|
69
|
+
oneOf: [
|
|
70
|
+
conditionSchema,
|
|
71
|
+
{
|
|
72
|
+
type: 'object',
|
|
73
|
+
properties: {
|
|
74
|
+
operator: operatorSchema,
|
|
75
|
+
conditions: {
|
|
76
|
+
type: 'array',
|
|
77
|
+
items: {
|
|
78
|
+
oneOf: [conditionSchema, logicalOperatorConditionSchema],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
required: ['operator', 'conditions'],
|
|
83
|
+
additionalProperties: false,
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
const entityRuleAssertionSchema = {
|
|
89
|
+
type: 'object',
|
|
90
|
+
properties: {
|
|
91
|
+
defined: { type: 'boolean' },
|
|
92
|
+
nonEmpty: { type: 'boolean' },
|
|
93
|
+
eq: {},
|
|
94
|
+
gt: { type: 'number' },
|
|
95
|
+
gte: { type: 'number' },
|
|
96
|
+
lt: { type: 'number' },
|
|
97
|
+
lte: { type: 'number' },
|
|
98
|
+
const: {},
|
|
99
|
+
},
|
|
100
|
+
additionalProperties: false,
|
|
101
|
+
};
|
|
102
|
+
const entityRuleWhereSchema = {
|
|
103
|
+
type: 'array',
|
|
104
|
+
items: {
|
|
105
|
+
type: 'object',
|
|
106
|
+
properties: {
|
|
107
|
+
subject: {
|
|
108
|
+
type: 'object',
|
|
109
|
+
properties: {
|
|
110
|
+
type: {
|
|
111
|
+
type: 'string',
|
|
112
|
+
enum: ['Entity', 'EntityMetadata', 'EntityRelations', 'EntityRelation'],
|
|
113
|
+
},
|
|
114
|
+
property: { type: 'string' },
|
|
115
|
+
},
|
|
116
|
+
required: ['type', 'property'],
|
|
117
|
+
additionalProperties: false,
|
|
118
|
+
},
|
|
119
|
+
assertions: entityRuleAssertionSchema,
|
|
120
|
+
},
|
|
121
|
+
required: ['subject', 'assertions'],
|
|
122
|
+
additionalProperties: false,
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
const entityRuleSchema = {
|
|
126
|
+
type: 'object',
|
|
127
|
+
properties: {
|
|
128
|
+
title: { type: 'string' },
|
|
129
|
+
subject: {
|
|
130
|
+
type: 'object',
|
|
131
|
+
properties: {
|
|
132
|
+
type: {
|
|
133
|
+
type: 'string',
|
|
134
|
+
enum: ['Entity', 'EntityMetadata', 'EntityRelations', 'EntityRelation'],
|
|
135
|
+
},
|
|
136
|
+
property: { type: 'string' },
|
|
137
|
+
},
|
|
138
|
+
required: ['type', 'property'],
|
|
139
|
+
additionalProperties: false,
|
|
140
|
+
},
|
|
141
|
+
severity: {
|
|
142
|
+
type: 'string',
|
|
143
|
+
enum: ['error', 'warn', 'off'],
|
|
144
|
+
},
|
|
145
|
+
message: { type: 'string' },
|
|
146
|
+
assertions: entityRuleAssertionSchema,
|
|
147
|
+
where: entityRuleWhereSchema,
|
|
148
|
+
weight: { type: 'number', default: 1 },
|
|
149
|
+
},
|
|
150
|
+
required: ['subject', 'assertions'],
|
|
151
|
+
additionalProperties: false,
|
|
152
|
+
};
|
|
153
|
+
// Supports both OpenAPI/AsyncAPI rules (backward compatibility) and entity rules
|
|
154
|
+
const levelRulesSchema = {
|
|
155
|
+
type: 'object',
|
|
156
|
+
additionalProperties: {
|
|
157
|
+
oneOf: [
|
|
158
|
+
{ type: 'string' },
|
|
159
|
+
{
|
|
160
|
+
type: 'object',
|
|
161
|
+
properties: {
|
|
162
|
+
severity: {
|
|
163
|
+
type: 'string',
|
|
164
|
+
enum: ['error', 'warn', 'off'],
|
|
165
|
+
},
|
|
166
|
+
weight: { type: 'number', default: 1 },
|
|
167
|
+
},
|
|
168
|
+
additionalProperties: true,
|
|
169
|
+
},
|
|
170
|
+
entityRuleSchema,
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
const levelSchema = {
|
|
175
|
+
type: 'object',
|
|
176
|
+
properties: {
|
|
177
|
+
name: { type: 'string' },
|
|
178
|
+
extends: {
|
|
179
|
+
type: 'array',
|
|
180
|
+
items: { type: 'string' },
|
|
181
|
+
},
|
|
182
|
+
rules: levelRulesSchema,
|
|
183
|
+
},
|
|
184
|
+
required: ['name'],
|
|
185
|
+
additionalProperties: false,
|
|
186
|
+
};
|
|
187
|
+
const triggerEventSchema = {
|
|
188
|
+
type: 'object',
|
|
189
|
+
properties: {
|
|
190
|
+
event: {
|
|
191
|
+
type: 'string',
|
|
192
|
+
enum: ['runtime', 'manual'],
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
required: ['event'],
|
|
196
|
+
additionalProperties: false,
|
|
197
|
+
};
|
|
198
|
+
const triggerSchema = {
|
|
199
|
+
oneOf: [
|
|
200
|
+
triggerEventSchema,
|
|
201
|
+
{
|
|
202
|
+
type: 'array',
|
|
203
|
+
items: triggerEventSchema,
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
};
|
|
207
|
+
exports.scorecardSchema = {
|
|
208
|
+
type: 'object',
|
|
209
|
+
properties: {
|
|
210
|
+
name: { type: 'string' },
|
|
211
|
+
description: { type: 'string' },
|
|
212
|
+
entities: {
|
|
213
|
+
oneOf: [
|
|
214
|
+
conditionsSchema,
|
|
215
|
+
{
|
|
216
|
+
type: 'object',
|
|
217
|
+
properties: {
|
|
218
|
+
operator: operatorSchema,
|
|
219
|
+
conditions: conditionsSchema,
|
|
220
|
+
},
|
|
221
|
+
required: ['operator', 'conditions'],
|
|
222
|
+
additionalProperties: false,
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
},
|
|
226
|
+
levels: {
|
|
227
|
+
type: 'array',
|
|
228
|
+
items: levelSchema,
|
|
229
|
+
minItems: 1,
|
|
230
|
+
},
|
|
231
|
+
trigger: triggerSchema,
|
|
232
|
+
},
|
|
233
|
+
required: ['name', 'entities', 'levels'],
|
|
234
|
+
additionalProperties: false,
|
|
235
|
+
};
|
|
236
|
+
exports.scorecardsConfigSchema = {
|
|
237
|
+
type: 'array',
|
|
238
|
+
items: exports.scorecardSchema,
|
|
239
|
+
};
|
|
240
|
+
//# sourceMappingURL=scorecards-config-schema.js.map
|
|
@@ -30,7 +30,7 @@ export type ApiFunctionsContext = {
|
|
|
30
30
|
params: Record<string, string | string[]>;
|
|
31
31
|
query: Record<string, string | string[]>;
|
|
32
32
|
cookies: Record<string, string>;
|
|
33
|
-
|
|
33
|
+
getKv: () => Promise<KvService>;
|
|
34
34
|
/**
|
|
35
35
|
* @deprecated `telemetry` is deprecated.
|
|
36
36
|
*/
|
|
@@ -41,12 +41,11 @@ export type ApiFunctionsContext = {
|
|
|
41
41
|
};
|
|
42
42
|
} & ApiFunctionsContextMethods;
|
|
43
43
|
export type KvService = {
|
|
44
|
-
get: <T extends KvValue = KvValue>(key: KvKey) => Promise<
|
|
45
|
-
getMany: <T extends KvValue = KvValue>(keys: KvKey[]) => Promise<(
|
|
44
|
+
get: <T extends KvValue = KvValue>(key: KvKey) => Promise<T | null>;
|
|
45
|
+
getMany: <T extends KvValue = KvValue>(keys: KvKey[]) => Promise<(KvListEntry<T> | null)[]>;
|
|
46
46
|
list: <T extends KvValue = KvValue>(selector: KvListSelector, options?: KvListOptions) => Promise<KvListResponse<T>>;
|
|
47
|
-
set: <T extends KvValue = KvValue>(key: KvKey, value: T, options?: KvSetOptions) => Promise<
|
|
48
|
-
delete: (key: KvKey) => Promise<
|
|
49
|
-
clearExpired: () => Promise<void>;
|
|
47
|
+
set: <T extends KvValue = KvValue>(key: KvKey, value: T, options?: KvSetOptions) => Promise<KvListEntry<T> | null>;
|
|
48
|
+
delete: (key: KvKey) => Promise<void>;
|
|
50
49
|
transaction: <T>(operation: (tx: KvTransaction) => Promise<T>) => Promise<T>;
|
|
51
50
|
};
|
|
52
51
|
export type KvValue = Record<string, unknown> | unknown[] | unknown;
|
|
@@ -55,7 +54,7 @@ export type KvKey = KvKeyPart[];
|
|
|
55
54
|
export type KvSetOptions = {
|
|
56
55
|
ttlInSeconds?: number;
|
|
57
56
|
};
|
|
58
|
-
export type
|
|
57
|
+
export type KvListEntry<T extends KvValue = KvValue> = {
|
|
59
58
|
key: KvKey;
|
|
60
59
|
value: T | null;
|
|
61
60
|
};
|
|
@@ -77,15 +76,15 @@ export type KvListOptions = {
|
|
|
77
76
|
cursor?: string;
|
|
78
77
|
};
|
|
79
78
|
export type KvListResponse<T extends KvValue = KvValue> = {
|
|
80
|
-
items:
|
|
79
|
+
items: KvListEntry<T>[];
|
|
81
80
|
total: number;
|
|
82
81
|
cursor: string | null;
|
|
83
82
|
};
|
|
84
83
|
export type KvTransaction = {
|
|
85
|
-
get: <T extends KvValue = KvValue>(key: KvKey) => Promise<
|
|
86
|
-
getMany: <T extends KvValue = KvValue>(keys: KvKey[]) => Promise<(
|
|
87
|
-
set: <T extends KvValue = KvValue>(key: KvKey, value: T, options?: KvSetOptions) => Promise<
|
|
88
|
-
delete: (key: KvKey) => Promise<
|
|
84
|
+
get: <T extends KvValue = KvValue>(key: KvKey) => Promise<T | null>;
|
|
85
|
+
getMany: <T extends KvValue = KvValue>(keys: KvKey[]) => Promise<(KvListEntry<T> | null)[]>;
|
|
86
|
+
set: <T extends KvValue = KvValue>(key: KvKey, value: T, options?: KvSetOptions) => Promise<KvListEntry<T> | null>;
|
|
87
|
+
delete: (key: KvKey) => Promise<void>;
|
|
89
88
|
};
|
|
90
89
|
export type ApiRoutesHandler = (request: Request, context: ApiFunctionsContext,
|
|
91
90
|
/**
|
|
@@ -102,4 +101,4 @@ export interface CookieOptions {
|
|
|
102
101
|
signed?: boolean;
|
|
103
102
|
sameSite?: 'Strict' | 'Lax' | 'None';
|
|
104
103
|
}
|
|
105
|
-
export type ServerPropsContext = Omit<ApiFunctionsContext, '
|
|
104
|
+
export type ServerPropsContext = Omit<ApiFunctionsContext, 'getKv'>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
2
|
import type { themeConfigSchema } from '../default-theme-config-schema';
|
|
3
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, saml2ProviderConfigSchema, seoConfigSchema, ssoDirectConfigSchema } from '../root-config-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
5
|
import type { RedocConfigTypes } from './redoc-types';
|
|
6
6
|
import type { GraphQLConfigTypes } from './graphql-types';
|
|
7
|
-
import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema,
|
|
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';
|
|
8
9
|
import type { reuniteConfigSchema } from '../reunite-config-schema';
|
|
9
10
|
import type { optionalEmailSettings, reasonsSettings } from '../feedback-config-schema';
|
|
10
11
|
/**
|
|
@@ -38,6 +39,8 @@ export type RedoclyConfig = Omit<FromSchema<typeof rootRedoclyConfigSchema>, 'th
|
|
|
38
39
|
};
|
|
39
40
|
export type RedirectConfig = FromSchema<typeof redirectConfigSchema>;
|
|
40
41
|
export type RedirectsConfig = FromSchema<typeof redirectsConfigSchema>;
|
|
42
|
+
export type BannerConfig = FromSchema<typeof bannerConfigSchema>;
|
|
43
|
+
export type BannersConfig = FromSchema<typeof bannersConfigSchema>;
|
|
41
44
|
export type AuthProviderConfig = FromSchema<typeof authProviderConfigSchema>;
|
|
42
45
|
export type OidcProviderConfig = FromSchema<typeof oidcProviderConfigSchema>;
|
|
43
46
|
export type Saml2ProviderConfig = FromSchema<typeof saml2ProviderConfigSchema>;
|
|
@@ -3,7 +3,7 @@ import type { LayoutVariant, REDOCLY_ROUTE_RBAC, REDOCLY_TEAMS_RBAC } from '../c
|
|
|
3
3
|
import type { ProductConfig, ProductGoogleAnalyticsConfig, RbacScopeItems, RedoclyConfig, SeoConfig } from './config-types';
|
|
4
4
|
import type { CatalogEntityConfig } from './catalog-entity-types';
|
|
5
5
|
export * from './code-walkthrough-types';
|
|
6
|
-
export type UiAccessibleConfig = Pick<RedoclyConfig, 'logo' | 'navbar' | 'products' | 'footer' | 'sidebar' | 'scripts' | 'links' | 'feedback' | 'search' | 'aiAssistant' | 'colorMode' | 'navigation' | 'codeSnippet' | 'markdown' | 'openapi' | 'graphql' | 'analytics' | 'userMenu' | 'versionPicker' | 'breadcrumbs' | 'catalog' | 'scorecard' | 'scorecards' | 'scorecardClassic' | 'entitiesCatalog' | 'mcp'> & {
|
|
6
|
+
export type UiAccessibleConfig = Pick<RedoclyConfig, 'logo' | 'navbar' | 'products' | 'footer' | 'sidebar' | 'scripts' | 'links' | 'feedback' | 'search' | 'aiAssistant' | 'colorMode' | 'navigation' | 'codeSnippet' | 'markdown' | 'openapi' | 'graphql' | 'analytics' | 'userMenu' | 'versionPicker' | 'breadcrumbs' | 'catalog' | 'scorecard' | 'scorecards' | 'scorecardClassic' | 'entitiesCatalog' | 'mcp' | 'banner'> & {
|
|
7
7
|
auth?: {
|
|
8
8
|
idpsInfo?: {
|
|
9
9
|
idpId: string;
|
package/lib-esm/common.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ export declare const rulesSchema: {
|
|
|
8
8
|
}];
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export declare const ruleTypes: readonly ["rules", "oas2Rules", "oas3_0Rules", "oas3_1Rules", "oas3_2Rules", "async2Rules", "async3Rules", "arazzo1Rules", "overlay1Rules"];
|
|
11
|
+
export declare const ruleTypes: readonly ["rules", "oas2Rules", "oas3_0Rules", "oas3_1Rules", "oas3_2Rules", "async2Rules", "async3Rules", "arazzo1Rules", "overlay1Rules", "openrpc1Rules"];
|
|
12
12
|
export type RuleTypes = (typeof ruleTypes)[number];
|
|
13
13
|
export declare const ruleSchemas: Record<RuleTypes, typeof rulesSchema>;
|
|
14
|
-
export declare const preprocessorTypes: readonly ["preprocessors", "oas2Preprocessors", "oas3_0Preprocessors", "oas3_1Preprocessors", "oas3_2Preprocessors", "async2Preprocessors", "async3Preprocessors", "arazzo1Preprocessors", "overlay1Preprocessors"];
|
|
14
|
+
export declare const preprocessorTypes: readonly ["preprocessors", "oas2Preprocessors", "oas3_0Preprocessors", "oas3_1Preprocessors", "oas3_2Preprocessors", "async2Preprocessors", "async3Preprocessors", "arazzo1Preprocessors", "overlay1Preprocessors", "openrpc1Preprocessors"];
|
|
15
15
|
export type PreprocessorTypes = (typeof preprocessorTypes)[number];
|
|
16
16
|
declare const preprocessorSchema: {
|
|
17
17
|
readonly type: "object";
|
|
@@ -22,7 +22,7 @@ export declare const decoratorsSchema: {
|
|
|
22
22
|
readonly type: "object";
|
|
23
23
|
readonly additionalProperties: true;
|
|
24
24
|
};
|
|
25
|
-
export declare const decoratorTypes: readonly ["decorators", "oas2Decorators", "oas3_0Decorators", "oas3_1Decorators", "oas3_2Decorators", "async2Decorators", "async3Decorators", "arazzo1Decorators", "overlay1Decorators"];
|
|
25
|
+
export declare const decoratorTypes: readonly ["decorators", "oas2Decorators", "oas3_0Decorators", "oas3_1Decorators", "oas3_2Decorators", "async2Decorators", "async3Decorators", "arazzo1Decorators", "overlay1Decorators", "openrpc1Decorators"];
|
|
26
26
|
export type DecoratorTypes = (typeof decoratorTypes)[number];
|
|
27
27
|
export declare const decoratorsSchemas: Record<DecoratorTypes, typeof decoratorsSchema>;
|
|
28
28
|
export {};
|
package/lib-esm/common.js
CHANGED
|
@@ -14,6 +14,7 @@ export const ruleTypes = [
|
|
|
14
14
|
'async3Rules',
|
|
15
15
|
'arazzo1Rules',
|
|
16
16
|
'overlay1Rules',
|
|
17
|
+
'openrpc1Rules',
|
|
17
18
|
];
|
|
18
19
|
export const ruleSchemas = {
|
|
19
20
|
rules: rulesSchema,
|
|
@@ -25,6 +26,7 @@ export const ruleSchemas = {
|
|
|
25
26
|
async3Rules: rulesSchema,
|
|
26
27
|
arazzo1Rules: rulesSchema,
|
|
27
28
|
overlay1Rules: rulesSchema,
|
|
29
|
+
openrpc1Rules: rulesSchema,
|
|
28
30
|
};
|
|
29
31
|
export const preprocessorTypes = [
|
|
30
32
|
'preprocessors',
|
|
@@ -36,6 +38,7 @@ export const preprocessorTypes = [
|
|
|
36
38
|
'async3Preprocessors',
|
|
37
39
|
'arazzo1Preprocessors',
|
|
38
40
|
'overlay1Preprocessors',
|
|
41
|
+
'openrpc1Preprocessors',
|
|
39
42
|
];
|
|
40
43
|
const preprocessorSchema = {
|
|
41
44
|
type: 'object',
|
|
@@ -51,6 +54,7 @@ export const preprocessorSchemas = {
|
|
|
51
54
|
async3Preprocessors: preprocessorSchema,
|
|
52
55
|
arazzo1Preprocessors: preprocessorSchema,
|
|
53
56
|
overlay1Preprocessors: preprocessorSchema,
|
|
57
|
+
openrpc1Preprocessors: preprocessorSchema,
|
|
54
58
|
};
|
|
55
59
|
export const decoratorsSchema = {
|
|
56
60
|
type: 'object',
|
|
@@ -66,6 +70,7 @@ export const decoratorTypes = [
|
|
|
66
70
|
'async3Decorators',
|
|
67
71
|
'arazzo1Decorators',
|
|
68
72
|
'overlay1Decorators',
|
|
73
|
+
'openrpc1Decorators',
|
|
69
74
|
];
|
|
70
75
|
export const decoratorsSchemas = {
|
|
71
76
|
decorators: decoratorsSchema,
|
|
@@ -77,5 +82,6 @@ export const decoratorsSchemas = {
|
|
|
77
82
|
async3Decorators: decoratorsSchema,
|
|
78
83
|
arazzo1Decorators: decoratorsSchema,
|
|
79
84
|
overlay1Decorators: decoratorsSchema,
|
|
85
|
+
openrpc1Decorators: decoratorsSchema,
|
|
80
86
|
};
|
|
81
87
|
//# sourceMappingURL=common.js.map
|