@redocly/config 0.1.0 → 0.1.2
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/CHANGELOG.md +12 -0
- package/lib/.tsbuildinfo +1 -1
- package/lib/default-theme-config-schema.d.ts +104 -0
- package/lib/default-theme-config-schema.js +3 -0
- package/lib/default-theme-config-schema.js.map +1 -1
- package/lib/root-config-schema.d.ts +117 -0
- package/lib-esm/.tsbuildinfo +1 -0
- package/lib-esm/constants.d.ts +15 -0
- package/lib-esm/constants.js +19 -0
- package/lib-esm/constants.js.map +1 -0
- package/lib-esm/default-theme-config-schema.d.ts +3331 -0
- package/lib-esm/default-theme-config-schema.js +649 -0
- package/lib-esm/default-theme-config-schema.js.map +1 -0
- package/lib-esm/index.d.ts +5 -0
- package/lib-esm/index.js +6 -0
- package/lib-esm/index.js.map +1 -0
- package/lib-esm/portal-shared-types.d.ts +250 -0
- package/lib-esm/portal-shared-types.js +2 -0
- package/lib-esm/portal-shared-types.js.map +1 -0
- package/lib-esm/root-config-schema.d.ts +7720 -0
- package/lib-esm/root-config-schema.js +341 -0
- package/lib-esm/root-config-schema.js.map +1 -0
- package/lib-esm/types.d.ts +42 -0
- package/lib-esm/types.js +2 -0
- package/lib-esm/types.js.map +1 -0
- package/package.json +2 -2
- package/src/default-theme-config-schema.ts +3 -0
- package/tsconfig.build.json +1 -1
- package/tsconfig.lib-esm.json +15 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import { DEFAULT_TEAM_CLAIM_NAME, AuthProviderType, ApigeeDevOnboardingIntegrationAuthType, } from './constants';
|
|
2
|
+
import { themeConfigSchema } from './default-theme-config-schema';
|
|
3
|
+
export const oidcIssuerMetadataSchema = {
|
|
4
|
+
type: 'object',
|
|
5
|
+
properties: {
|
|
6
|
+
end_session_endpoint: { type: 'string' },
|
|
7
|
+
token_endpoint: { type: 'string' },
|
|
8
|
+
authorization_endpoint: { type: 'string' },
|
|
9
|
+
jwks_uri: { type: 'string' },
|
|
10
|
+
},
|
|
11
|
+
required: ['token_endpoint', 'authorization_endpoint'],
|
|
12
|
+
additionalProperties: true,
|
|
13
|
+
};
|
|
14
|
+
export const oidcProviderConfigSchema = {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
type: { type: 'string', const: AuthProviderType.OIDC },
|
|
18
|
+
title: { type: 'string' },
|
|
19
|
+
pkce: { type: 'boolean', default: false },
|
|
20
|
+
configurationUrl: { type: 'string', minLength: 1 },
|
|
21
|
+
configuration: oidcIssuerMetadataSchema,
|
|
22
|
+
clientId: { type: 'string', minLength: 1 },
|
|
23
|
+
clientSecret: { type: 'string', minLength: 0 },
|
|
24
|
+
teamsClaimName: { type: 'string' },
|
|
25
|
+
teamsClaimMap: { type: 'object', additionalProperties: { type: 'string' } },
|
|
26
|
+
defaultTeams: { type: 'array', items: { type: 'string' } },
|
|
27
|
+
scopes: { type: 'array', items: { type: 'string' } },
|
|
28
|
+
tokenExpirationTime: { type: 'number' },
|
|
29
|
+
authorizationRequestCustomParams: { type: 'object', additionalProperties: { type: 'string' } },
|
|
30
|
+
tokenRequestCustomParams: { type: 'object', additionalProperties: { type: 'string' } },
|
|
31
|
+
audience: { type: 'array', items: { type: 'string' } },
|
|
32
|
+
},
|
|
33
|
+
required: ['type', 'clientId'],
|
|
34
|
+
oneOf: [{ required: ['configurationUrl'] }, { required: ['configuration'] }],
|
|
35
|
+
additionalProperties: false,
|
|
36
|
+
};
|
|
37
|
+
export const saml2ProviderConfigSchema = {
|
|
38
|
+
type: 'object',
|
|
39
|
+
properties: {
|
|
40
|
+
type: { type: 'string', const: AuthProviderType.SAML2 },
|
|
41
|
+
title: { type: 'string' },
|
|
42
|
+
issuerId: { type: 'string' },
|
|
43
|
+
entityId: { type: 'string' },
|
|
44
|
+
ssoUrl: { type: 'string' },
|
|
45
|
+
x509PublicCert: { type: 'string' },
|
|
46
|
+
teamsAttributeName: { type: 'string', default: DEFAULT_TEAM_CLAIM_NAME },
|
|
47
|
+
teamsAttributeMap: { type: 'object', additionalProperties: { type: 'string' } },
|
|
48
|
+
defaultTeams: { type: 'array', items: { type: 'string' } },
|
|
49
|
+
},
|
|
50
|
+
additionalProperties: false,
|
|
51
|
+
required: ['type', 'issuerId', 'ssoUrl', 'x509PublicCert'],
|
|
52
|
+
};
|
|
53
|
+
export const basicAuthProviderConfigSchema = {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
type: { type: 'string', const: AuthProviderType.BASIC },
|
|
57
|
+
title: { type: 'string' },
|
|
58
|
+
credentials: {
|
|
59
|
+
type: 'array',
|
|
60
|
+
items: {
|
|
61
|
+
type: 'object',
|
|
62
|
+
properties: {
|
|
63
|
+
username: { type: 'string' },
|
|
64
|
+
password: { type: 'string' },
|
|
65
|
+
passwordHash: { type: 'string' },
|
|
66
|
+
teams: { type: 'array', items: { type: 'string' } },
|
|
67
|
+
},
|
|
68
|
+
required: ['username'],
|
|
69
|
+
additionalProperties: false,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
required: ['type', 'credentials'],
|
|
74
|
+
additionalProperties: false,
|
|
75
|
+
};
|
|
76
|
+
export const authProviderConfigSchema = {
|
|
77
|
+
oneOf: [oidcProviderConfigSchema, saml2ProviderConfigSchema, basicAuthProviderConfigSchema],
|
|
78
|
+
discriminator: { propertyName: 'type' },
|
|
79
|
+
};
|
|
80
|
+
export const ssoOnPremConfigSchema = {
|
|
81
|
+
type: 'object',
|
|
82
|
+
additionalProperties: authProviderConfigSchema,
|
|
83
|
+
};
|
|
84
|
+
export const ssoConfigSchema = {
|
|
85
|
+
oneOf: [
|
|
86
|
+
{
|
|
87
|
+
type: 'array',
|
|
88
|
+
items: {
|
|
89
|
+
type: 'string',
|
|
90
|
+
enum: ['REDOCLY', 'CORPORATE', 'GUEST'],
|
|
91
|
+
},
|
|
92
|
+
uniqueItems: true,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
type: 'string',
|
|
96
|
+
enum: ['REDOCLY', 'CORPORATE', 'GUEST'],
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
};
|
|
100
|
+
export const redirectConfigSchema = {
|
|
101
|
+
type: 'object',
|
|
102
|
+
properties: {
|
|
103
|
+
to: { type: 'string' },
|
|
104
|
+
type: { type: 'number', default: 301 },
|
|
105
|
+
},
|
|
106
|
+
additionalProperties: false,
|
|
107
|
+
};
|
|
108
|
+
export const redirectsConfigSchema = {
|
|
109
|
+
type: 'object',
|
|
110
|
+
additionalProperties: redirectConfigSchema,
|
|
111
|
+
default: {},
|
|
112
|
+
};
|
|
113
|
+
export const apiConfigSchema = {
|
|
114
|
+
type: 'object',
|
|
115
|
+
properties: {
|
|
116
|
+
root: { type: 'string' },
|
|
117
|
+
output: { type: 'string', pattern: '(.ya?ml|.json)$' },
|
|
118
|
+
rbac: { type: 'object', additionalProperties: true },
|
|
119
|
+
theme: {
|
|
120
|
+
type: 'object',
|
|
121
|
+
properties: {
|
|
122
|
+
openapi: themeConfigSchema.properties.openapi,
|
|
123
|
+
graphql: themeConfigSchema.properties.graphql,
|
|
124
|
+
},
|
|
125
|
+
additionalProperties: false,
|
|
126
|
+
},
|
|
127
|
+
title: { type: 'string' },
|
|
128
|
+
metadata: { type: 'object', additionalProperties: true },
|
|
129
|
+
rules: { type: 'object', additionalProperties: true },
|
|
130
|
+
decorators: { type: 'object', additionalProperties: true },
|
|
131
|
+
preprocessors: { type: 'object', additionalProperties: true },
|
|
132
|
+
},
|
|
133
|
+
required: ['root'],
|
|
134
|
+
};
|
|
135
|
+
const metadataConfigSchema = {
|
|
136
|
+
type: 'object',
|
|
137
|
+
additionalProperties: true,
|
|
138
|
+
};
|
|
139
|
+
export const seoConfigSchema = {
|
|
140
|
+
type: 'object',
|
|
141
|
+
properties: {
|
|
142
|
+
title: { type: 'string' },
|
|
143
|
+
description: { type: 'string' },
|
|
144
|
+
siteUrl: { type: 'string' },
|
|
145
|
+
image: { type: 'string' },
|
|
146
|
+
keywords: {
|
|
147
|
+
oneOf: [{ type: 'array', items: { type: 'string' } }, { type: 'string' }],
|
|
148
|
+
},
|
|
149
|
+
lang: { type: 'string' },
|
|
150
|
+
jsonLd: { type: 'object' },
|
|
151
|
+
meta: {
|
|
152
|
+
type: 'array',
|
|
153
|
+
items: {
|
|
154
|
+
type: 'object',
|
|
155
|
+
properties: {
|
|
156
|
+
name: { type: 'string' },
|
|
157
|
+
content: { type: 'string' },
|
|
158
|
+
},
|
|
159
|
+
required: ['name', 'content'],
|
|
160
|
+
additionalProperties: false,
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
additionalProperties: false,
|
|
165
|
+
};
|
|
166
|
+
export const rbacScopeItemsSchema = {
|
|
167
|
+
type: 'object',
|
|
168
|
+
additionalProperties: { type: 'string' },
|
|
169
|
+
};
|
|
170
|
+
export const rbacConfigSchema = {
|
|
171
|
+
type: 'object',
|
|
172
|
+
properties: {
|
|
173
|
+
cms: rbacScopeItemsSchema,
|
|
174
|
+
reunite: rbacScopeItemsSchema,
|
|
175
|
+
content: {
|
|
176
|
+
type: 'object',
|
|
177
|
+
properties: {
|
|
178
|
+
'**': rbacScopeItemsSchema,
|
|
179
|
+
},
|
|
180
|
+
additionalProperties: rbacScopeItemsSchema,
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
additionalProperties: rbacScopeItemsSchema,
|
|
184
|
+
};
|
|
185
|
+
export const graviteeAdapterConfigSchema = {
|
|
186
|
+
type: 'object',
|
|
187
|
+
properties: {
|
|
188
|
+
type: { type: 'string', const: 'GRAVITEE' },
|
|
189
|
+
apiBaseUrl: { type: 'string' },
|
|
190
|
+
env: { type: 'string' },
|
|
191
|
+
allowApiProductsOutsideCatalog: { type: 'boolean', default: false },
|
|
192
|
+
stage: { type: 'string', default: 'non-production' },
|
|
193
|
+
auth: { type: 'object', properties: { static: { type: 'string' } } },
|
|
194
|
+
},
|
|
195
|
+
additionalProperties: false,
|
|
196
|
+
required: ['type', 'apiBaseUrl'],
|
|
197
|
+
};
|
|
198
|
+
export const apigeeAdapterAuthOauth2Schema = {
|
|
199
|
+
type: 'object',
|
|
200
|
+
properties: {
|
|
201
|
+
type: { type: 'string', const: ApigeeDevOnboardingIntegrationAuthType.OAUTH2 },
|
|
202
|
+
tokenEndpoint: { type: 'string' },
|
|
203
|
+
clientId: { type: 'string' },
|
|
204
|
+
clientSecret: { type: 'string' },
|
|
205
|
+
},
|
|
206
|
+
additionalProperties: false,
|
|
207
|
+
required: ['type', 'tokenEndpoint', 'clientId', 'clientSecret'],
|
|
208
|
+
};
|
|
209
|
+
export const apigeeAdapterAuthServiceAccountSchema = {
|
|
210
|
+
type: 'object',
|
|
211
|
+
properties: {
|
|
212
|
+
type: { type: 'string', const: ApigeeDevOnboardingIntegrationAuthType.SERVICE_ACCOUNT },
|
|
213
|
+
serviceAccountEmail: { type: 'string' },
|
|
214
|
+
serviceAccountPrivateKey: { type: 'string' },
|
|
215
|
+
},
|
|
216
|
+
additionalProperties: false,
|
|
217
|
+
required: ['type', 'serviceAccountEmail', 'serviceAccountPrivateKey'],
|
|
218
|
+
};
|
|
219
|
+
export const apigeeXAdapterConfigSchema = {
|
|
220
|
+
type: 'object',
|
|
221
|
+
properties: {
|
|
222
|
+
type: { type: 'string', const: 'APIGEE_X' },
|
|
223
|
+
apiUrl: { type: 'string' },
|
|
224
|
+
stage: { type: 'string', default: 'non-production' },
|
|
225
|
+
organizationName: { type: 'string' },
|
|
226
|
+
ignoreApiProducts: { type: 'array', items: { type: 'string' } },
|
|
227
|
+
allowApiProductsOutsideCatalog: { type: 'boolean', default: false },
|
|
228
|
+
auth: {
|
|
229
|
+
type: 'object',
|
|
230
|
+
oneOf: [apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema],
|
|
231
|
+
discriminator: { propertyName: 'type' },
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
additionalProperties: false,
|
|
235
|
+
required: ['type', 'organizationName', 'auth'],
|
|
236
|
+
};
|
|
237
|
+
export const apigeeEdgeAdapterConfigSchema = Object.assign(Object.assign({}, apigeeXAdapterConfigSchema), { properties: Object.assign(Object.assign({}, apigeeXAdapterConfigSchema.properties), { type: { type: 'string', const: 'APIGEE_EDGE' } }) });
|
|
238
|
+
export const devOnboardingAdapterConfigSchema = {
|
|
239
|
+
type: 'object',
|
|
240
|
+
oneOf: [apigeeXAdapterConfigSchema, apigeeEdgeAdapterConfigSchema, graviteeAdapterConfigSchema],
|
|
241
|
+
discriminator: { propertyName: 'type' },
|
|
242
|
+
};
|
|
243
|
+
const devOnboardingConfigSchema = {
|
|
244
|
+
type: 'object',
|
|
245
|
+
required: ['adapters'],
|
|
246
|
+
additionalProperties: false,
|
|
247
|
+
properties: {
|
|
248
|
+
adapters: {
|
|
249
|
+
type: 'array',
|
|
250
|
+
items: devOnboardingAdapterConfigSchema,
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
};
|
|
254
|
+
export const i18ConfigSchema = {
|
|
255
|
+
type: 'object',
|
|
256
|
+
properties: {
|
|
257
|
+
defaultLocale: {
|
|
258
|
+
type: 'string',
|
|
259
|
+
},
|
|
260
|
+
locales: {
|
|
261
|
+
type: 'array',
|
|
262
|
+
items: {
|
|
263
|
+
type: 'object',
|
|
264
|
+
properties: {
|
|
265
|
+
code: {
|
|
266
|
+
type: 'string',
|
|
267
|
+
},
|
|
268
|
+
name: {
|
|
269
|
+
type: 'string',
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
required: ['code'],
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
additionalProperties: false,
|
|
277
|
+
required: ['defaultLocale'],
|
|
278
|
+
};
|
|
279
|
+
const responseHeaderSchema = {
|
|
280
|
+
type: 'object',
|
|
281
|
+
properties: {
|
|
282
|
+
name: { type: 'string' },
|
|
283
|
+
value: { type: 'string' },
|
|
284
|
+
},
|
|
285
|
+
additionalProperties: false,
|
|
286
|
+
required: ['name', 'value'],
|
|
287
|
+
};
|
|
288
|
+
export const redoclyConfigSchema = {
|
|
289
|
+
type: 'object',
|
|
290
|
+
properties: {
|
|
291
|
+
licenseKey: { type: 'string' },
|
|
292
|
+
redirects: redirectsConfigSchema,
|
|
293
|
+
seo: seoConfigSchema,
|
|
294
|
+
rbac: rbacConfigSchema,
|
|
295
|
+
responseHeaders: {
|
|
296
|
+
type: 'object',
|
|
297
|
+
additionalProperties: {
|
|
298
|
+
type: 'array',
|
|
299
|
+
items: responseHeaderSchema,
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
mockServer: {
|
|
303
|
+
type: 'object',
|
|
304
|
+
properties: {
|
|
305
|
+
off: { type: 'boolean', default: false },
|
|
306
|
+
position: { type: 'string', enum: ['first', 'last', 'replace', 'off'], default: 'first' },
|
|
307
|
+
strictExamples: { type: 'boolean', default: false },
|
|
308
|
+
errorIfForcedExampleNotFound: { type: 'boolean', default: false },
|
|
309
|
+
description: { type: 'string' },
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
apis: {
|
|
313
|
+
type: 'object',
|
|
314
|
+
additionalProperties: apiConfigSchema,
|
|
315
|
+
},
|
|
316
|
+
ssoOnPrem: ssoOnPremConfigSchema,
|
|
317
|
+
sso: ssoConfigSchema,
|
|
318
|
+
residency: { type: 'string' },
|
|
319
|
+
developerOnboarding: devOnboardingConfigSchema,
|
|
320
|
+
i18n: i18ConfigSchema,
|
|
321
|
+
metadata: metadataConfigSchema,
|
|
322
|
+
ignore: {
|
|
323
|
+
type: 'array',
|
|
324
|
+
items: {
|
|
325
|
+
type: 'string',
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
theme: themeConfigSchema,
|
|
329
|
+
},
|
|
330
|
+
default: { redirects: {} },
|
|
331
|
+
additionalProperties: true,
|
|
332
|
+
};
|
|
333
|
+
const environmentSchema = Object.assign(Object.assign({}, redoclyConfigSchema), { additionalProperties: false });
|
|
334
|
+
export const rootRedoclyConfigSchema = Object.assign(Object.assign({}, redoclyConfigSchema), { properties: Object.assign(Object.assign({ plugins: {
|
|
335
|
+
type: 'array',
|
|
336
|
+
items: { type: 'string' },
|
|
337
|
+
} }, redoclyConfigSchema.properties), { env: {
|
|
338
|
+
type: 'object',
|
|
339
|
+
additionalProperties: environmentSchema, // TODO: if we want full validation we need to override apis, theme and the root
|
|
340
|
+
} }), default: {}, additionalProperties: false });
|
|
341
|
+
//# sourceMappingURL=root-config-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-config-schema.js","sourceRoot":"","sources":["../src/root-config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAChB,sCAAsC,GACvC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,oBAAoB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxC,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,sBAAsB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1C,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC7B;IACD,QAAQ,EAAE,CAAC,gBAAgB,EAAE,wBAAwB,CAAC;IACtD,oBAAoB,EAAE,IAAI;CAClB,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,CAAC,IAAI,EAAE;QACtD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE;QACzC,gBAAg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AAC,UAAU,KACjC,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,iBAAiB,EAAE,gFAAgF;SAC1H,KAEH,OAAO,EAAE,EAAE,EACX,oBAAoB,EAAE,KAAK,GACnB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
import type { amplitudeAnalyticsConfigSchema, catalogFilterSchema, catalogSchema, googleAnalyticsConfigSchema, gtmAnalyticsConfigSchema, markdownConfigSchema, productConfigSchema, productGoogleAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, scorecardConfigSchema, segmentAnalyticsConfigSchema, themeConfigSchema } from './default-theme-config-schema';
|
|
3
|
+
import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, basicAuthProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, i18ConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoOnPremConfigSchema } from './root-config-schema';
|
|
4
|
+
/**
|
|
5
|
+
* Theme
|
|
6
|
+
*/
|
|
7
|
+
export type ThemeConfig = FromSchema<typeof themeConfigSchema>;
|
|
8
|
+
export type ProductConfig = FromSchema<typeof productConfigSchema>;
|
|
9
|
+
export type ProductGoogleAnalyticsConfig = FromSchema<typeof productGoogleAnalyticsConfigSchema>;
|
|
10
|
+
export type MarkdownConfig = FromSchema<typeof markdownConfigSchema>;
|
|
11
|
+
export type AmplitudeAnalyticsConfig = FromSchema<typeof amplitudeAnalyticsConfigSchema>;
|
|
12
|
+
export type RudderstackAnalyticsConfig = FromSchema<typeof rudderstackAnalyticsConfigSchema>;
|
|
13
|
+
export type SegmentAnalyticsConfig = FromSchema<typeof segmentAnalyticsConfigSchema>;
|
|
14
|
+
export type GtmAnalyticsConfig = FromSchema<typeof gtmAnalyticsConfigSchema>;
|
|
15
|
+
export type GoogleAnalyticsConfig = FromSchema<typeof googleAnalyticsConfigSchema>;
|
|
16
|
+
export type CatalogConfig = FromSchema<typeof catalogSchema>;
|
|
17
|
+
export type CatalogFilterConfig = FromSchema<typeof catalogFilterSchema>;
|
|
18
|
+
export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
|
|
19
|
+
/**
|
|
20
|
+
* Root
|
|
21
|
+
*/
|
|
22
|
+
export type RedoclyConfig<T = ThemeConfig> = FromSchema<typeof rootRedoclyConfigSchema> & {
|
|
23
|
+
theme?: T;
|
|
24
|
+
};
|
|
25
|
+
export type RedirectConfig = FromSchema<typeof redirectConfigSchema>;
|
|
26
|
+
export type RedirectsConfig = FromSchema<typeof redirectsConfigSchema>;
|
|
27
|
+
export type AuthProviderConfig = FromSchema<typeof authProviderConfigSchema>;
|
|
28
|
+
export type BasicAuthProviderConfig = FromSchema<typeof basicAuthProviderConfigSchema>;
|
|
29
|
+
export type OidcProviderConfig = FromSchema<typeof oidcProviderConfigSchema>;
|
|
30
|
+
export type Saml2ProviderConfig = FromSchema<typeof saml2ProviderConfigSchema>;
|
|
31
|
+
export type SeoConfig = FromSchema<typeof seoConfigSchema>;
|
|
32
|
+
export type RbacConfig = FromSchema<typeof rbacConfigSchema>;
|
|
33
|
+
export type RbacScopeItems = FromSchema<typeof rbacScopeItemsSchema>;
|
|
34
|
+
export type OidcIssuerMetadata = FromSchema<typeof oidcIssuerMetadataSchema>;
|
|
35
|
+
export type DevOnboardingAdapterConfig = FromSchema<typeof devOnboardingAdapterConfigSchema>;
|
|
36
|
+
export type GraviteeAdapterConfig = FromSchema<typeof graviteeAdapterConfigSchema>;
|
|
37
|
+
export type ApigeeAdapterConfig = FromSchema<typeof apigeeXAdapterConfigSchema | typeof apigeeEdgeAdapterConfigSchema>;
|
|
38
|
+
export type ApigeeAdapterAuthOauth2 = FromSchema<typeof apigeeAdapterAuthOauth2Schema>;
|
|
39
|
+
export type ApigeeAdapterAuthServiceAccount = FromSchema<typeof apigeeAdapterAuthServiceAccountSchema>;
|
|
40
|
+
export type SsoConfig = FromSchema<typeof ssoOnPremConfigSchema>;
|
|
41
|
+
export type I18nConfig = FromSchema<typeof i18ConfigSchema>;
|
|
42
|
+
export type ApiConfig = FromSchema<typeof apiConfigSchema>;
|
package/lib-esm/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./lib-esm/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"clean": "rimraf lib",
|
|
16
|
-
"compile": "tsc -p tsconfig.build.json",
|
|
16
|
+
"compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.lib-esm.json",
|
|
17
17
|
"build": "npm run clean && npm run compile"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -254,6 +254,7 @@ const navItemSchema = {
|
|
|
254
254
|
group: { type: 'string' },
|
|
255
255
|
label: { type: 'string' },
|
|
256
256
|
href: { type: 'string' },
|
|
257
|
+
external: { type: 'boolean' },
|
|
257
258
|
labelTranslationKey: { type: 'string' },
|
|
258
259
|
groupTranslationKey: { type: 'string' },
|
|
259
260
|
icon: { type: 'string' },
|
|
@@ -273,6 +274,8 @@ const navItemSchema = {
|
|
|
273
274
|
type: 'array',
|
|
274
275
|
items: { type: 'string' },
|
|
275
276
|
},
|
|
277
|
+
// Allow users to eject the navbar and implement additional levels of nesting
|
|
278
|
+
items: { type: 'array', items: { type: 'object', additionalProperties: true } },
|
|
276
279
|
},
|
|
277
280
|
} as const;
|
|
278
281
|
|
package/tsconfig.build.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": ".",
|
|
5
|
+
"rootDir": "src",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"noEmit": false,
|
|
8
|
+
"module": "ESNext",
|
|
9
|
+
"outDir": "lib-esm",
|
|
10
|
+
"composite": true,
|
|
11
|
+
"tsBuildInfoFile": "lib-esm/.tsbuildinfo",
|
|
12
|
+
"moduleResolution": "node"
|
|
13
|
+
},
|
|
14
|
+
"include": ["src"]
|
|
15
|
+
}
|