@redocly/config 0.43.0 → 0.44.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/asyncapi-config-schema.d.ts +300 -0
- package/lib/asyncapi-config-schema.js +53 -0
- 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 +3205 -2762
- package/lib/default-theme-config-schema.js +3 -1
- package/lib/entities-catalog-entity-file-schema.js +22 -22
- package/lib/ex-theme-config-schemas.d.ts +1903 -26
- package/lib/ex-theme-config-schemas.js +25 -3
- package/lib/index.d.ts +3 -1
- package/lib/index.js +13 -10
- package/lib/product-override-schema.d.ts +73 -20
- package/lib/remove-property-recursively.d.ts +1 -1
- package/lib/remove-property-recursively.js +7 -4
- package/lib/root-config-schema.d.ts +3715 -1713
- 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/asyncapi-types.d.ts +14 -0
- package/lib/types/asyncapi-types.js +3 -0
- package/lib/types/config-types.d.ts +2 -0
- package/lib/types/portal-shared-types.d.ts +1 -1
- package/lib-esm/asyncapi-config-schema.d.ts +300 -0
- package/lib-esm/asyncapi-config-schema.js +50 -0
- 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 +3205 -2762
- package/lib-esm/default-theme-config-schema.js +3 -1
- package/lib-esm/entities-catalog-entity-file-schema.js +21 -21
- package/lib-esm/ex-theme-config-schemas.d.ts +1903 -26
- package/lib-esm/ex-theme-config-schemas.js +25 -3
- package/lib-esm/index.d.ts +3 -1
- package/lib-esm/index.js +3 -1
- package/lib-esm/product-override-schema.d.ts +73 -20
- package/lib-esm/remove-property-recursively.d.ts +1 -1
- package/lib-esm/remove-property-recursively.js +7 -4
- package/lib-esm/root-config-schema.d.ts +3715 -1713
- 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/asyncapi-types.d.ts +14 -0
- package/lib-esm/types/asyncapi-types.js +2 -0
- package/lib-esm/types/config-types.d.ts +2 -0
- 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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.accessConfigSchema = exports.l10nConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.graviteeAdapterAuthIdpSchema = exports.graviteeAdapterAuthStaticSchema = exports.rbacConfigSchema = exports.rbacEntitiesCatalogConfigSchema = exports.apiFunctionsConfigSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.bannersConfigSchema = exports.bannerConfigSchema = exports.rbacScopeItemsSchema = exports.bannerColorSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.ssoDirectConfigSchema = exports.authProviderConfigSchema = exports.saml2ProviderConfigSchema = exports.oidcProviderConfigSchema = exports.oidcIssuerMetadataSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const shared_1 = require("./constants/shared");
|
|
5
|
+
const config_1 = require("./constants/config");
|
|
5
6
|
const default_theme_config_schema_1 = require("./default-theme-config-schema");
|
|
6
7
|
const feedback_config_schema_1 = require("./feedback-config-schema");
|
|
7
8
|
const graphql_config_schema_1 = require("./graphql-config-schema");
|
|
@@ -25,7 +26,7 @@ exports.oidcIssuerMetadataSchema = {
|
|
|
25
26
|
exports.oidcProviderConfigSchema = {
|
|
26
27
|
type: 'object',
|
|
27
28
|
properties: {
|
|
28
|
-
type: { type: 'string', const:
|
|
29
|
+
type: { type: 'string', const: shared_1.AuthProviderType.OIDC },
|
|
29
30
|
title: { type: 'string' },
|
|
30
31
|
pkce: { type: 'boolean', default: false },
|
|
31
32
|
configurationUrl: { type: 'string', minLength: 1 },
|
|
@@ -49,13 +50,13 @@ exports.oidcProviderConfigSchema = {
|
|
|
49
50
|
exports.saml2ProviderConfigSchema = {
|
|
50
51
|
type: 'object',
|
|
51
52
|
properties: {
|
|
52
|
-
type: { type: 'string', const:
|
|
53
|
+
type: { type: 'string', const: shared_1.AuthProviderType.SAML2 },
|
|
53
54
|
title: { type: 'string' },
|
|
54
55
|
issuerId: { type: 'string' },
|
|
55
56
|
entityId: { type: 'string' },
|
|
56
57
|
ssoUrl: { type: 'string' },
|
|
57
58
|
x509PublicCert: { type: 'string' },
|
|
58
|
-
teamsAttributeName: { type: 'string', default:
|
|
59
|
+
teamsAttributeName: { type: 'string', default: shared_1.DEFAULT_TEAM_CLAIM_NAME },
|
|
59
60
|
teamsAttributeMap: { type: 'object', additionalProperties: { type: 'string' } },
|
|
60
61
|
defaultTeams: { type: 'array', items: { type: 'string' } },
|
|
61
62
|
},
|
|
@@ -96,11 +97,17 @@ exports.redirectConfigSchema = {
|
|
|
96
97
|
type: { type: 'number', default: 301 },
|
|
97
98
|
},
|
|
98
99
|
additionalProperties: false,
|
|
100
|
+
nodeTypeName: config_1.CONFIG_NODE_TYPE_NAMES.RedirectSource,
|
|
101
|
+
description: 'Source is an absolute path that must start with a forward slash.',
|
|
102
|
+
documentationLink: 'https://redocly.com/docs/realm/config/redirects#sources-map',
|
|
99
103
|
};
|
|
100
104
|
exports.redirectsConfigSchema = {
|
|
101
105
|
type: 'object',
|
|
102
106
|
additionalProperties: exports.redirectConfigSchema,
|
|
103
107
|
default: {},
|
|
108
|
+
nodeTypeName: config_1.CONFIG_NODE_TYPE_NAMES.Redirects,
|
|
109
|
+
description: 'Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.',
|
|
110
|
+
documentationLink: 'https://redocly.com/docs/realm/config/redirects',
|
|
104
111
|
};
|
|
105
112
|
exports.bannerColorSchema = {
|
|
106
113
|
type: 'string',
|
|
@@ -130,7 +137,7 @@ exports.bannersConfigSchema = {
|
|
|
130
137
|
};
|
|
131
138
|
exports.apiConfigSchema = {
|
|
132
139
|
type: 'object',
|
|
133
|
-
properties: Object.assign(
|
|
140
|
+
properties: Object.assign({ root: { type: 'string' }, output: { type: 'string', pattern: '(.ya?ml|.json)$' }, rbac: { type: 'object', additionalProperties: true }, openapi: ex_theme_config_schemas_1.openapiConfigSchema, graphql: graphql_config_schema_1.graphqlConfigSchema,
|
|
134
141
|
/**
|
|
135
142
|
* @deprecated left for backwards compatibility
|
|
136
143
|
*/
|
|
@@ -141,7 +148,7 @@ exports.apiConfigSchema = {
|
|
|
141
148
|
graphql: graphql_config_schema_1.graphqlConfigSchema,
|
|
142
149
|
},
|
|
143
150
|
additionalProperties: false,
|
|
144
|
-
}, title: { type: 'string' }, metadata: { type: 'object', additionalProperties: true } }, common_1.
|
|
151
|
+
}, title: { type: 'string' }, metadata: { type: 'object', additionalProperties: true } }, common_1.configGovernanceSchema),
|
|
145
152
|
required: ['root'],
|
|
146
153
|
};
|
|
147
154
|
const metadataConfigSchema = {
|
|
@@ -369,7 +376,7 @@ exports.graviteeAdapterConfigSchema = {
|
|
|
369
376
|
exports.apigeeAdapterAuthOauth2Schema = {
|
|
370
377
|
type: 'object',
|
|
371
378
|
properties: {
|
|
372
|
-
type: { type: 'string', const:
|
|
379
|
+
type: { type: 'string', const: shared_1.ApigeeDevOnboardingIntegrationAuthType.OAUTH2 },
|
|
373
380
|
tokenEndpoint: { type: 'string' },
|
|
374
381
|
clientId: { type: 'string' },
|
|
375
382
|
clientSecret: { type: 'string' },
|
|
@@ -380,7 +387,7 @@ exports.apigeeAdapterAuthOauth2Schema = {
|
|
|
380
387
|
exports.apigeeAdapterAuthServiceAccountSchema = {
|
|
381
388
|
type: 'object',
|
|
382
389
|
properties: {
|
|
383
|
-
type: { type: 'string', const:
|
|
390
|
+
type: { type: 'string', const: shared_1.ApigeeDevOnboardingIntegrationAuthType.SERVICE_ACCOUNT },
|
|
384
391
|
serviceAccountEmail: { type: 'string' },
|
|
385
392
|
serviceAccountPrivateKey: { type: 'string' },
|
|
386
393
|
},
|
|
@@ -497,7 +504,7 @@ exports.accessConfigSchema = {
|
|
|
497
504
|
};
|
|
498
505
|
exports.redoclyConfigSchema = {
|
|
499
506
|
type: 'object',
|
|
500
|
-
properties: Object.assign(Object.assign(
|
|
507
|
+
properties: Object.assign(Object.assign({
|
|
501
508
|
/**
|
|
502
509
|
* @deprecated Should use `plugins` instead
|
|
503
510
|
*/
|
|
@@ -522,7 +529,7 @@ exports.redoclyConfigSchema = {
|
|
|
522
529
|
}, apis: {
|
|
523
530
|
type: 'object',
|
|
524
531
|
additionalProperties: exports.apiConfigSchema,
|
|
525
|
-
}
|
|
532
|
+
} }, common_1.configGovernanceSchema), { ssoDirect: exports.ssoDirectConfigSchema, sso: exports.ssoConfigSchema, residency: residencySchema, logoutReturnUrl: logoutReturnUrlSchema, access: exports.accessConfigSchema, developerOnboarding: devOnboardingConfigSchema, removeAttribution: { type: 'boolean' }, i18n: exports.l10nConfigSchema, l10n: exports.l10nConfigSchema, metadata: metadataConfigSchema, metadataGlobs: metadataGlobsConfigSchema, ignore: { type: 'array', items: { type: 'string' } },
|
|
526
533
|
/**
|
|
527
534
|
* @deprecated properties moved to the root of the config
|
|
528
535
|
*/
|
|
@@ -536,7 +543,7 @@ exports.redoclyConfigSchema = {
|
|
|
536
543
|
/**
|
|
537
544
|
* @deprecated Should use `scorecardClassic` instead
|
|
538
545
|
*/
|
|
539
|
-
scorecard: ex_theme_config_schemas_1.scorecardConfigSchema,
|
|
546
|
+
scorecard: ex_theme_config_schemas_1.scorecardConfigSchema, scorecardClassic: ex_theme_config_schemas_1.scorecardConfigSchema, scorecards: scorecards_config_schema_1.scorecardsConfigSchema, mcp: mcpConfigSchema, banner: exports.bannersConfigSchema }),
|
|
540
547
|
default: { redirects: {}, seo: exports.seoConfigSchema.default },
|
|
541
548
|
additionalProperties: true,
|
|
542
549
|
};
|
|
@@ -415,10 +415,13 @@ export declare const scorecardSchema: {
|
|
|
415
415
|
readonly type: "string";
|
|
416
416
|
};
|
|
417
417
|
readonly extends: {
|
|
418
|
+
readonly nodeTypeName: undefined;
|
|
418
419
|
readonly type: "array";
|
|
419
420
|
readonly items: {
|
|
420
421
|
readonly type: "string";
|
|
421
422
|
};
|
|
423
|
+
readonly description: "Use extends to inherit rules and their configurations from other rulesets.";
|
|
424
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/extends";
|
|
422
425
|
};
|
|
423
426
|
readonly rules: {
|
|
424
427
|
readonly type: "object";
|
|
@@ -1006,10 +1009,13 @@ export declare const scorecardsConfigSchema: {
|
|
|
1006
1009
|
readonly type: "string";
|
|
1007
1010
|
};
|
|
1008
1011
|
readonly extends: {
|
|
1012
|
+
readonly nodeTypeName: undefined;
|
|
1009
1013
|
readonly type: "array";
|
|
1010
1014
|
readonly items: {
|
|
1011
1015
|
readonly type: "string";
|
|
1012
1016
|
};
|
|
1017
|
+
readonly description: "Use extends to inherit rules and their configurations from other rulesets.";
|
|
1018
|
+
readonly documentationLink: "https://redocly.com/docs/cli/configuration/reference/extends";
|
|
1013
1019
|
};
|
|
1014
1020
|
readonly rules: {
|
|
1015
1021
|
readonly type: "object";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.scorecardsConfigSchema = exports.scorecardSchema = void 0;
|
|
4
|
+
const common_1 = require("./common");
|
|
4
5
|
const comparisonOperatorSchema = {
|
|
5
6
|
type: 'string',
|
|
6
7
|
enum: [
|
|
@@ -178,10 +179,7 @@ const levelSchema = {
|
|
|
178
179
|
type: 'object',
|
|
179
180
|
properties: {
|
|
180
181
|
name: { type: 'string' },
|
|
181
|
-
extends:
|
|
182
|
-
type: 'array',
|
|
183
|
-
items: { type: 'string' },
|
|
184
|
-
},
|
|
182
|
+
extends: common_1.configGovernanceSchema.extends,
|
|
185
183
|
rules: levelRulesSchema,
|
|
186
184
|
},
|
|
187
185
|
required: ['name'],
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { FromSchema } from 'json-schema-to-ts';
|
|
3
|
+
import type { Schema, ConfigFunction } from '@markdoc/markdoc/dist/src/types';
|
|
4
|
+
import type { asyncapiConfigSchema } from '../asyncapi-config-schema';
|
|
5
|
+
export type AsyncApiConfigTypes = FromSchema<typeof asyncapiConfigSchema> & {
|
|
6
|
+
markdocOptions?: {
|
|
7
|
+
tags: Record<string, Schema>;
|
|
8
|
+
nodes: Record<string, Schema>;
|
|
9
|
+
components: Record<string, ComponentType>;
|
|
10
|
+
variables?: Record<string, any>;
|
|
11
|
+
partials?: Record<string, any>;
|
|
12
|
+
functions?: Record<string, ConfigFunction>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -8,6 +8,7 @@ import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownC
|
|
|
8
8
|
import type { scorecardsConfigSchema } from '../scorecards-config-schema';
|
|
9
9
|
import type { reuniteConfigSchema } from '../reunite-config-schema';
|
|
10
10
|
import type { optionalEmailSettings, reasonsSettings } from '../feedback-config-schema';
|
|
11
|
+
import type { AsyncApiConfigTypes } from './asyncapi-types';
|
|
11
12
|
/**
|
|
12
13
|
* @deprecated left for backwards compatibility. To be removed in Realm 1.0
|
|
13
14
|
*/
|
|
@@ -16,6 +17,7 @@ export type ThemeConfig = Omit<FromSchema<typeof themeConfigSchema>, 'openapi'>
|
|
|
16
17
|
};
|
|
17
18
|
export type RedocConfig = RedocConfigTypes;
|
|
18
19
|
export type GraphQLConfig = GraphQLConfigTypes;
|
|
20
|
+
export type AsyncApiConfig = AsyncApiConfigTypes;
|
|
19
21
|
export type ProductConfig = FromSchema<typeof productConfigSchema>;
|
|
20
22
|
export type ProductGoogleAnalyticsConfig = FromSchema<typeof productGoogleAnalyticsConfigSchema>;
|
|
21
23
|
export type MarkdownConfig = FromSchema<typeof markdownConfigSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Node } from '@markdoc/markdoc/dist/src/types';
|
|
2
|
-
import type { LayoutVariant, REDOCLY_ROUTE_RBAC, REDOCLY_TEAMS_RBAC } from '../constants';
|
|
2
|
+
import type { LayoutVariant, REDOCLY_ROUTE_RBAC, REDOCLY_TEAMS_RBAC } from '../constants/shared';
|
|
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';
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
export declare const asyncapiConfigSchema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly properties: {
|
|
4
|
+
readonly downloadUrls: {
|
|
5
|
+
readonly type: "array";
|
|
6
|
+
readonly items: {
|
|
7
|
+
readonly type: "object";
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly title: {
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
};
|
|
12
|
+
readonly url: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
readonly required: readonly ["url"];
|
|
17
|
+
readonly additionalProperties: false;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly apiLogo: {
|
|
21
|
+
readonly type: "object";
|
|
22
|
+
readonly properties: {
|
|
23
|
+
readonly imageUrl: {
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
};
|
|
26
|
+
readonly href: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
};
|
|
29
|
+
readonly altText: {
|
|
30
|
+
readonly type: "string";
|
|
31
|
+
};
|
|
32
|
+
readonly backgroundColor: {
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly jsonSamplesDepth: {
|
|
38
|
+
readonly type: "number";
|
|
39
|
+
};
|
|
40
|
+
readonly samplesMaxInlineArgs: {
|
|
41
|
+
readonly type: "number";
|
|
42
|
+
};
|
|
43
|
+
readonly fieldExpandLevel: {
|
|
44
|
+
readonly type: "number";
|
|
45
|
+
};
|
|
46
|
+
readonly baseUrlPath: {
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
};
|
|
49
|
+
readonly metadata: {
|
|
50
|
+
readonly type: "object";
|
|
51
|
+
readonly properties: {
|
|
52
|
+
readonly apiId: {
|
|
53
|
+
readonly type: "string";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly additionalProperties: true;
|
|
57
|
+
};
|
|
58
|
+
readonly feedback: {
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly hide: {
|
|
62
|
+
readonly type: "boolean";
|
|
63
|
+
readonly default: false;
|
|
64
|
+
};
|
|
65
|
+
readonly type: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly enum: readonly ["rating", "sentiment", "comment", "reasons", "mood", "scale"];
|
|
68
|
+
readonly default: "sentiment";
|
|
69
|
+
};
|
|
70
|
+
readonly settings: {
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly properties: {
|
|
73
|
+
readonly label: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
};
|
|
76
|
+
readonly submitText: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
};
|
|
79
|
+
readonly buttonText: {
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
};
|
|
82
|
+
readonly component: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
85
|
+
readonly default: "checkbox";
|
|
86
|
+
};
|
|
87
|
+
readonly items: {
|
|
88
|
+
readonly type: "array";
|
|
89
|
+
readonly items: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
};
|
|
92
|
+
readonly minItems: 1;
|
|
93
|
+
};
|
|
94
|
+
readonly leftScaleLabel: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
};
|
|
97
|
+
readonly rightScaleLabel: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
};
|
|
100
|
+
readonly reasons: {
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly like: {
|
|
104
|
+
readonly type: "object";
|
|
105
|
+
readonly properties: {
|
|
106
|
+
readonly hide: {
|
|
107
|
+
readonly type: "boolean";
|
|
108
|
+
readonly default: false;
|
|
109
|
+
};
|
|
110
|
+
readonly component: {
|
|
111
|
+
readonly type: "string";
|
|
112
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
113
|
+
readonly default: "checkbox";
|
|
114
|
+
};
|
|
115
|
+
readonly label: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
};
|
|
118
|
+
readonly items: {
|
|
119
|
+
readonly type: "array";
|
|
120
|
+
readonly items: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly additionalProperties: false;
|
|
126
|
+
};
|
|
127
|
+
readonly dislike: {
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly properties: {
|
|
130
|
+
readonly hide: {
|
|
131
|
+
readonly type: "boolean";
|
|
132
|
+
readonly default: false;
|
|
133
|
+
};
|
|
134
|
+
readonly component: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
137
|
+
readonly default: "checkbox";
|
|
138
|
+
};
|
|
139
|
+
readonly label: {
|
|
140
|
+
readonly type: "string";
|
|
141
|
+
};
|
|
142
|
+
readonly items: {
|
|
143
|
+
readonly type: "array";
|
|
144
|
+
readonly items: {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly additionalProperties: false;
|
|
150
|
+
};
|
|
151
|
+
readonly satisfied: {
|
|
152
|
+
readonly type: "object";
|
|
153
|
+
readonly properties: {
|
|
154
|
+
readonly hide: {
|
|
155
|
+
readonly type: "boolean";
|
|
156
|
+
readonly default: false;
|
|
157
|
+
};
|
|
158
|
+
readonly component: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
161
|
+
readonly default: "checkbox";
|
|
162
|
+
};
|
|
163
|
+
readonly label: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
};
|
|
166
|
+
readonly items: {
|
|
167
|
+
readonly type: "array";
|
|
168
|
+
readonly items: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly additionalProperties: false;
|
|
174
|
+
};
|
|
175
|
+
readonly neutral: {
|
|
176
|
+
readonly type: "object";
|
|
177
|
+
readonly properties: {
|
|
178
|
+
readonly hide: {
|
|
179
|
+
readonly type: "boolean";
|
|
180
|
+
readonly default: false;
|
|
181
|
+
};
|
|
182
|
+
readonly component: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
185
|
+
readonly default: "checkbox";
|
|
186
|
+
};
|
|
187
|
+
readonly label: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
};
|
|
190
|
+
readonly items: {
|
|
191
|
+
readonly type: "array";
|
|
192
|
+
readonly items: {
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
readonly additionalProperties: false;
|
|
198
|
+
};
|
|
199
|
+
readonly dissatisfied: {
|
|
200
|
+
readonly type: "object";
|
|
201
|
+
readonly properties: {
|
|
202
|
+
readonly hide: {
|
|
203
|
+
readonly type: "boolean";
|
|
204
|
+
readonly default: false;
|
|
205
|
+
};
|
|
206
|
+
readonly component: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
209
|
+
readonly default: "checkbox";
|
|
210
|
+
};
|
|
211
|
+
readonly label: {
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
};
|
|
214
|
+
readonly items: {
|
|
215
|
+
readonly type: "array";
|
|
216
|
+
readonly items: {
|
|
217
|
+
readonly type: "string";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly additionalProperties: false;
|
|
222
|
+
};
|
|
223
|
+
readonly hide: {
|
|
224
|
+
readonly type: "boolean";
|
|
225
|
+
readonly default: false;
|
|
226
|
+
};
|
|
227
|
+
readonly component: {
|
|
228
|
+
readonly type: "string";
|
|
229
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
230
|
+
readonly default: "checkbox";
|
|
231
|
+
};
|
|
232
|
+
readonly label: {
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
};
|
|
235
|
+
readonly items: {
|
|
236
|
+
readonly type: "array";
|
|
237
|
+
readonly items: {
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
readonly additionalProperties: false;
|
|
243
|
+
};
|
|
244
|
+
readonly comment: {
|
|
245
|
+
readonly type: "object";
|
|
246
|
+
readonly properties: {
|
|
247
|
+
readonly hide: {
|
|
248
|
+
readonly type: "boolean";
|
|
249
|
+
readonly default: false;
|
|
250
|
+
};
|
|
251
|
+
readonly label: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
};
|
|
254
|
+
readonly likeLabel: {
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
};
|
|
257
|
+
readonly dislikeLabel: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
};
|
|
260
|
+
readonly satisfiedLabel: {
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
};
|
|
263
|
+
readonly neutralLabel: {
|
|
264
|
+
readonly type: "string";
|
|
265
|
+
};
|
|
266
|
+
readonly dissatisfiedLabel: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
readonly additionalProperties: false;
|
|
271
|
+
};
|
|
272
|
+
readonly optionalEmail: {
|
|
273
|
+
readonly type: "object";
|
|
274
|
+
readonly properties: {
|
|
275
|
+
readonly hide: {
|
|
276
|
+
readonly type: "boolean";
|
|
277
|
+
readonly default: false;
|
|
278
|
+
};
|
|
279
|
+
readonly label: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
};
|
|
282
|
+
readonly placeholder: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
readonly additionalProperties: false;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
readonly additionalProperties: false;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
readonly additionalProperties: false;
|
|
293
|
+
};
|
|
294
|
+
readonly layout: {
|
|
295
|
+
readonly type: "string";
|
|
296
|
+
readonly enum: readonly ["stacked", "three-panel"];
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
readonly additionalProperties: false;
|
|
300
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { feedbackConfigSchema } from './feedback-config-schema';
|
|
2
|
+
import { downloadUrlsSchema } from './redoc-config-schema';
|
|
3
|
+
export const asyncapiConfigSchema = {
|
|
4
|
+
type: 'object',
|
|
5
|
+
properties: {
|
|
6
|
+
downloadUrls: downloadUrlsSchema,
|
|
7
|
+
apiLogo: {
|
|
8
|
+
type: 'object',
|
|
9
|
+
properties: {
|
|
10
|
+
imageUrl: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
},
|
|
13
|
+
href: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
altText: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
},
|
|
19
|
+
backgroundColor: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
jsonSamplesDepth: {
|
|
25
|
+
type: 'number',
|
|
26
|
+
},
|
|
27
|
+
samplesMaxInlineArgs: {
|
|
28
|
+
type: 'number',
|
|
29
|
+
},
|
|
30
|
+
fieldExpandLevel: {
|
|
31
|
+
type: 'number',
|
|
32
|
+
},
|
|
33
|
+
baseUrlPath: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
},
|
|
36
|
+
metadata: {
|
|
37
|
+
type: 'object',
|
|
38
|
+
properties: {
|
|
39
|
+
apiId: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
additionalProperties: true,
|
|
44
|
+
},
|
|
45
|
+
feedback: feedbackConfigSchema,
|
|
46
|
+
layout: { type: 'string', enum: ['stacked', 'three-panel'] },
|
|
47
|
+
},
|
|
48
|
+
additionalProperties: false,
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=asyncapi-config-schema.js.map
|