@redocly/config 0.6.3 → 0.8.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/constants.d.ts +1 -2
- package/lib/constants.js +0 -1
- package/lib/default-theme-config-schema.d.ts +1880 -1879
- package/lib/default-theme-config-schema.js +3 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/portal-shared-types.d.ts +0 -1
- package/lib/redoc-config-schema.d.ts +0 -1375
- package/lib/redoc-config-schema.js +35 -5
- package/lib/redoc-types.d.ts +2 -2
- package/lib/root-config-schema.d.ts +12482 -12710
- package/lib/root-config-schema.js +3 -26
- package/lib/types.d.ts +1 -2
- package/lib-esm/constants.d.ts +1 -2
- package/lib-esm/constants.js +0 -1
- package/lib-esm/default-theme-config-schema.d.ts +1880 -1879
- package/lib-esm/default-theme-config-schema.js +3 -1
- package/lib-esm/index.d.ts +1 -0
- package/lib-esm/index.js +1 -0
- package/lib-esm/portal-shared-types.d.ts +0 -1
- package/lib-esm/redoc-config-schema.d.ts +0 -1375
- package/lib-esm/redoc-config-schema.js +35 -5
- package/lib-esm/redoc-types.d.ts +2 -2
- package/lib-esm/root-config-schema.d.ts +12482 -12710
- package/lib-esm/root-config-schema.js +2 -25
- package/lib-esm/types.d.ts +1 -2
- package/package.json +1 -1
|
@@ -52,31 +52,8 @@ export const saml2ProviderConfigSchema = {
|
|
|
52
52
|
additionalProperties: false,
|
|
53
53
|
required: ['type', 'issuerId', 'ssoUrl', 'x509PublicCert'],
|
|
54
54
|
};
|
|
55
|
-
export const basicAuthProviderConfigSchema = {
|
|
56
|
-
type: 'object',
|
|
57
|
-
properties: {
|
|
58
|
-
type: { type: 'string', const: AuthProviderType.BASIC },
|
|
59
|
-
title: { type: 'string' },
|
|
60
|
-
credentials: {
|
|
61
|
-
type: 'array',
|
|
62
|
-
items: {
|
|
63
|
-
type: 'object',
|
|
64
|
-
properties: {
|
|
65
|
-
username: { type: 'string' },
|
|
66
|
-
password: { type: 'string' },
|
|
67
|
-
passwordHash: { type: 'string' },
|
|
68
|
-
teams: { type: 'array', items: { type: 'string' } },
|
|
69
|
-
},
|
|
70
|
-
required: ['username'],
|
|
71
|
-
additionalProperties: false,
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
required: ['type', 'credentials'],
|
|
76
|
-
additionalProperties: false,
|
|
77
|
-
};
|
|
78
55
|
export const authProviderConfigSchema = {
|
|
79
|
-
oneOf: [oidcProviderConfigSchema, saml2ProviderConfigSchema
|
|
56
|
+
oneOf: [oidcProviderConfigSchema, saml2ProviderConfigSchema],
|
|
80
57
|
discriminator: { propertyName: 'type' },
|
|
81
58
|
};
|
|
82
59
|
export const ssoOnPremConfigSchema = {
|
|
@@ -348,7 +325,7 @@ export const redoclyConfigSchema = {
|
|
|
348
325
|
additionalProperties: true,
|
|
349
326
|
};
|
|
350
327
|
const environmentSchema = Object.assign(Object.assign({}, removePropertyRecursively(redoclyConfigSchema, 'default')), { additionalProperties: false });
|
|
351
|
-
export const rootRedoclyConfigSchema = Object.assign(Object.assign({}, redoclyConfigSchema), { properties: Object.assign(Object.assign({ plugins: {
|
|
328
|
+
export const rootRedoclyConfigSchema = Object.assign(Object.assign({ $id: 'root-redocly-config' }, redoclyConfigSchema), { properties: Object.assign(Object.assign({ plugins: {
|
|
352
329
|
type: 'array',
|
|
353
330
|
items: { type: 'string' },
|
|
354
331
|
} }, redoclyConfigSchema.properties), { env: {
|
package/lib-esm/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
2
|
import type { amplitudeAnalyticsConfigSchema, catalogFilterSchema, catalogSchema, googleAnalyticsConfigSchema, gtmAnalyticsConfigSchema, markdownConfigSchema, productConfigSchema, productGoogleAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, scorecardConfigSchema, segmentAnalyticsConfigSchema, closedThemeConfigSchema as themeConfigSchema } from './default-theme-config-schema';
|
|
3
|
-
import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema,
|
|
3
|
+
import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, i18ConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoOnPremConfigSchema } from './root-config-schema';
|
|
4
4
|
import type { RedocConfigTypes } from './redoc-types';
|
|
5
5
|
import type { GraphQLConfigTypes } from './graphql-types';
|
|
6
6
|
/**
|
|
@@ -32,7 +32,6 @@ export type RedoclyConfig<T = ThemeConfig> = Omit<FromSchema<typeof rootRedoclyC
|
|
|
32
32
|
export type RedirectConfig = FromSchema<typeof redirectConfigSchema>;
|
|
33
33
|
export type RedirectsConfig = FromSchema<typeof redirectsConfigSchema>;
|
|
34
34
|
export type AuthProviderConfig = FromSchema<typeof authProviderConfigSchema>;
|
|
35
|
-
export type BasicAuthProviderConfig = FromSchema<typeof basicAuthProviderConfigSchema>;
|
|
36
35
|
export type OidcProviderConfig = FromSchema<typeof oidcProviderConfigSchema>;
|
|
37
36
|
export type Saml2ProviderConfig = FromSchema<typeof saml2ProviderConfigSchema>;
|
|
38
37
|
export type SeoConfig = FromSchema<typeof seoConfigSchema>;
|