@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.i18ConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.rbacConfigSchema = exports.rbacScopeItemsSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.ssoOnPremConfigSchema = exports.authProviderConfigSchema = exports.
|
|
3
|
+
exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.i18ConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.rbacConfigSchema = exports.rbacScopeItemsSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.ssoOnPremConfigSchema = exports.authProviderConfigSchema = exports.saml2ProviderConfigSchema = exports.oidcProviderConfigSchema = exports.oidcIssuerMetadataSchema = void 0;
|
|
4
4
|
const constants_1 = require("./constants");
|
|
5
5
|
const default_theme_config_schema_1 = require("./default-theme-config-schema");
|
|
6
6
|
const remove_property_recursively_1 = require("./remove-property-recursively");
|
|
@@ -55,31 +55,8 @@ exports.saml2ProviderConfigSchema = {
|
|
|
55
55
|
additionalProperties: false,
|
|
56
56
|
required: ['type', 'issuerId', 'ssoUrl', 'x509PublicCert'],
|
|
57
57
|
};
|
|
58
|
-
exports.basicAuthProviderConfigSchema = {
|
|
59
|
-
type: 'object',
|
|
60
|
-
properties: {
|
|
61
|
-
type: { type: 'string', const: constants_1.AuthProviderType.BASIC },
|
|
62
|
-
title: { type: 'string' },
|
|
63
|
-
credentials: {
|
|
64
|
-
type: 'array',
|
|
65
|
-
items: {
|
|
66
|
-
type: 'object',
|
|
67
|
-
properties: {
|
|
68
|
-
username: { type: 'string' },
|
|
69
|
-
password: { type: 'string' },
|
|
70
|
-
passwordHash: { type: 'string' },
|
|
71
|
-
teams: { type: 'array', items: { type: 'string' } },
|
|
72
|
-
},
|
|
73
|
-
required: ['username'],
|
|
74
|
-
additionalProperties: false,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
required: ['type', 'credentials'],
|
|
79
|
-
additionalProperties: false,
|
|
80
|
-
};
|
|
81
58
|
exports.authProviderConfigSchema = {
|
|
82
|
-
oneOf: [exports.oidcProviderConfigSchema, exports.saml2ProviderConfigSchema
|
|
59
|
+
oneOf: [exports.oidcProviderConfigSchema, exports.saml2ProviderConfigSchema],
|
|
83
60
|
discriminator: { propertyName: 'type' },
|
|
84
61
|
};
|
|
85
62
|
exports.ssoOnPremConfigSchema = {
|
|
@@ -351,7 +328,7 @@ exports.redoclyConfigSchema = {
|
|
|
351
328
|
additionalProperties: true,
|
|
352
329
|
};
|
|
353
330
|
const environmentSchema = Object.assign(Object.assign({}, (0, remove_property_recursively_1.removePropertyRecursively)(exports.redoclyConfigSchema, 'default')), { additionalProperties: false });
|
|
354
|
-
exports.rootRedoclyConfigSchema = Object.assign(Object.assign({}, exports.redoclyConfigSchema), { properties: Object.assign(Object.assign({ plugins: {
|
|
331
|
+
exports.rootRedoclyConfigSchema = Object.assign(Object.assign({ $id: 'root-redocly-config' }, exports.redoclyConfigSchema), { properties: Object.assign(Object.assign({ plugins: {
|
|
355
332
|
type: 'array',
|
|
356
333
|
items: { type: 'string' },
|
|
357
334
|
} }, exports.redoclyConfigSchema.properties), { env: {
|
package/lib/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>;
|
package/lib-esm/constants.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export declare const DEFAULT_TEAM_CLAIM_NAME = "https://redocly.com/sso/teams";
|
|
2
2
|
export declare enum AuthProviderType {
|
|
3
3
|
OIDC = "OIDC",
|
|
4
|
-
SAML2 = "SAML2"
|
|
5
|
-
BASIC = "BASIC"
|
|
4
|
+
SAML2 = "SAML2"
|
|
6
5
|
}
|
|
7
6
|
export declare enum ApigeeDevOnboardingIntegrationAuthType {
|
|
8
7
|
SERVICE_ACCOUNT = "SERVICE_ACCOUNT",
|
package/lib-esm/constants.js
CHANGED
|
@@ -3,7 +3,6 @@ export var AuthProviderType;
|
|
|
3
3
|
(function (AuthProviderType) {
|
|
4
4
|
AuthProviderType["OIDC"] = "OIDC";
|
|
5
5
|
AuthProviderType["SAML2"] = "SAML2";
|
|
6
|
-
AuthProviderType["BASIC"] = "BASIC";
|
|
7
6
|
})(AuthProviderType || (AuthProviderType = {}));
|
|
8
7
|
export var ApigeeDevOnboardingIntegrationAuthType;
|
|
9
8
|
(function (ApigeeDevOnboardingIntegrationAuthType) {
|