@redocly/config 0.44.1 → 0.44.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.
@@ -6878,6 +6878,9 @@ export declare const redoclyConfigSchema: {
6878
6878
  };
6879
6879
  };
6880
6880
  };
6881
+ /**
6882
+ * @deprecated Should use `access.sso` instead
6883
+ */
6881
6884
  readonly sso: {
6882
6885
  readonly oneOf: readonly [{
6883
6886
  readonly type: "array";
@@ -6891,10 +6894,16 @@ export declare const redoclyConfigSchema: {
6891
6894
  readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
6892
6895
  }];
6893
6896
  };
6897
+ /**
6898
+ * @deprecated Should use `access.residency` instead
6899
+ */
6894
6900
  readonly residency: {
6895
6901
  readonly type: "string";
6896
6902
  readonly pattern: "^https?://.*";
6897
6903
  };
6904
+ /**
6905
+ * @deprecated Should use `access.logoutReturnUrl` instead
6906
+ */
6898
6907
  readonly logoutReturnUrl: {
6899
6908
  readonly type: "string";
6900
6909
  readonly pattern: "^https?://.*";
@@ -21546,6 +21555,9 @@ export declare const redoclyConfigSchema: {
21546
21555
  };
21547
21556
  readonly additionalProperties: false;
21548
21557
  };
21558
+ /**
21559
+ * @deprecated Should use `access.rbac` instead
21560
+ */
21549
21561
  readonly rbac: {
21550
21562
  readonly type: "object";
21551
21563
  readonly properties: {
@@ -21784,6 +21796,9 @@ export declare const redoclyConfigSchema: {
21784
21796
  };
21785
21797
  readonly additionalProperties: false;
21786
21798
  };
21799
+ /**
21800
+ * @deprecated Should use `access.requiresLogin` instead
21801
+ */
21787
21802
  readonly requiresLogin: {
21788
21803
  readonly type: "boolean";
21789
21804
  };
@@ -40585,6 +40600,9 @@ export declare const rootRedoclyConfigSchema: {
40585
40600
  };
40586
40601
  };
40587
40602
  };
40603
+ /**
40604
+ * @deprecated Should use `access.sso` instead
40605
+ */
40588
40606
  readonly sso: {
40589
40607
  readonly oneOf: readonly [{
40590
40608
  readonly type: "array";
@@ -40598,10 +40616,16 @@ export declare const rootRedoclyConfigSchema: {
40598
40616
  readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
40599
40617
  }];
40600
40618
  };
40619
+ /**
40620
+ * @deprecated Should use `access.residency` instead
40621
+ */
40601
40622
  readonly residency: {
40602
40623
  readonly type: "string";
40603
40624
  readonly pattern: "^https?://.*";
40604
40625
  };
40626
+ /**
40627
+ * @deprecated Should use `access.logoutReturnUrl` instead
40628
+ */
40605
40629
  readonly logoutReturnUrl: {
40606
40630
  readonly type: "string";
40607
40631
  readonly pattern: "^https?://.*";
@@ -55253,6 +55277,9 @@ export declare const rootRedoclyConfigSchema: {
55253
55277
  };
55254
55278
  readonly additionalProperties: false;
55255
55279
  };
55280
+ /**
55281
+ * @deprecated Should use `access.rbac` instead
55282
+ */
55256
55283
  readonly rbac: {
55257
55284
  readonly type: "object";
55258
55285
  readonly properties: {
@@ -55491,6 +55518,9 @@ export declare const rootRedoclyConfigSchema: {
55491
55518
  };
55492
55519
  readonly additionalProperties: false;
55493
55520
  };
55521
+ /**
55522
+ * @deprecated Should use `access.requiresLogin` instead
55523
+ */
55494
55524
  readonly requiresLogin: {
55495
55525
  readonly type: "boolean";
55496
55526
  };
@@ -511,7 +511,15 @@ exports.redoclyConfigSchema = {
511
511
  imports: {
512
512
  type: 'array',
513
513
  items: { type: 'string' },
514
- }, licenseKey: { type: 'string' }, redirects: exports.redirectsConfigSchema, seo: exports.seoConfigSchema, rbac: exports.rbacConfigSchema, apiFunctions: exports.apiFunctionsConfigSchema, requiresLogin: requiresLoginSchema, responseHeaders: {
514
+ }, licenseKey: { type: 'string' }, redirects: exports.redirectsConfigSchema, seo: exports.seoConfigSchema,
515
+ /**
516
+ * @deprecated Should use `access.rbac` instead
517
+ */
518
+ rbac: exports.rbacConfigSchema, apiFunctions: exports.apiFunctionsConfigSchema,
519
+ /**
520
+ * @deprecated Should use `access.requiresLogin` instead
521
+ */
522
+ requiresLogin: requiresLoginSchema, responseHeaders: {
515
523
  type: 'object',
516
524
  additionalProperties: {
517
525
  type: 'array',
@@ -529,7 +537,19 @@ exports.redoclyConfigSchema = {
529
537
  }, apis: {
530
538
  type: 'object',
531
539
  additionalProperties: exports.apiConfigSchema,
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' } },
540
+ } }, common_1.configGovernanceSchema), { ssoDirect: exports.ssoDirectConfigSchema,
541
+ /**
542
+ * @deprecated Should use `access.sso` instead
543
+ */
544
+ sso: exports.ssoConfigSchema,
545
+ /**
546
+ * @deprecated Should use `access.residency` instead
547
+ */
548
+ residency: residencySchema,
549
+ /**
550
+ * @deprecated Should use `access.logoutReturnUrl` instead
551
+ */
552
+ 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' } },
533
553
  /**
534
554
  * @deprecated properties moved to the root of the config
535
555
  */
@@ -32,7 +32,28 @@ export type ReuniteConfig = FromSchema<typeof reuniteConfigSchema>;
32
32
  export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
33
33
  export type ScorecardsConfig = FromSchema<typeof scorecardsConfigSchema>;
34
34
  export type SearchFacetsConfig = FromSchema<typeof searchFacetsConfigSchema>;
35
- export type RedoclyConfig = Omit<FromSchema<typeof rootRedoclyConfigSchema>, 'theme' | 'apis'> & {
35
+ type RootRedoclyConfig = FromSchema<typeof rootRedoclyConfigSchema>;
36
+ export type RedoclyConfig = Omit<RootRedoclyConfig, 'theme' | 'apis' | 'rbac' | 'requiresLogin' | 'sso' | 'residency' | 'logoutReturnUrl'> & {
37
+ /**
38
+ * @deprecated Should use `access.rbac` instead
39
+ */
40
+ rbac?: RootRedoclyConfig['rbac'];
41
+ /**
42
+ * @deprecated Should use `access.requiresLogin` instead
43
+ */
44
+ requiresLogin?: RootRedoclyConfig['requiresLogin'];
45
+ /**
46
+ * @deprecated Should use `access.sso` instead
47
+ */
48
+ sso?: RootRedoclyConfig['sso'];
49
+ /**
50
+ * @deprecated Should use `access.residency` instead
51
+ */
52
+ residency?: RootRedoclyConfig['residency'];
53
+ /**
54
+ * @deprecated Should use `access.logoutReturnUrl` instead
55
+ */
56
+ logoutReturnUrl?: RootRedoclyConfig['logoutReturnUrl'];
36
57
  /**
37
58
  * @deprecated properties moved to the root of the config
38
59
  */
@@ -1,9 +1,9 @@
1
1
  import type { Node } from '@markdoc/markdoc/dist/src/types';
2
2
  import type { LayoutVariant, REDOCLY_ROUTE_RBAC, REDOCLY_TEAMS_RBAC } from '../constants/shared';
3
- import type { ProductConfig, ProductGoogleAnalyticsConfig, RbacScopeItems, RedoclyConfig, SeoConfig } from './config-types';
3
+ import type { ProductConfig, ProductGoogleAnalyticsConfig, RbacScopeItems, RedoclyConfig, SeoConfig, BannerConfig } 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' | 'banner'> & {
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'> & {
7
7
  auth?: {
8
8
  idpsInfo?: {
9
9
  idpId: string;
@@ -18,6 +18,7 @@ export type UiAccessibleConfig = Pick<RedoclyConfig, 'logo' | 'navbar' | 'produc
18
18
  products?: {
19
19
  [key: string]: ProductUiConfig;
20
20
  };
21
+ banner?: ResolvedBannerConfig[];
21
22
  };
22
23
  /**
23
24
  * @deprecated left for backwards compatibility. To be removed in Realm 1.0
@@ -157,6 +158,9 @@ export type ResolvedSidebar = {
157
158
  catalogConfig?: CatalogEntityConfig;
158
159
  };
159
160
  };
161
+ export type ResolvedBannerConfig = BannerConfig & {
162
+ ast: unknown;
163
+ };
160
164
  export type CompilationError = {
161
165
  message: string;
162
166
  sourceFileRelativePath: string;
@@ -6878,6 +6878,9 @@ export declare const redoclyConfigSchema: {
6878
6878
  };
6879
6879
  };
6880
6880
  };
6881
+ /**
6882
+ * @deprecated Should use `access.sso` instead
6883
+ */
6881
6884
  readonly sso: {
6882
6885
  readonly oneOf: readonly [{
6883
6886
  readonly type: "array";
@@ -6891,10 +6894,16 @@ export declare const redoclyConfigSchema: {
6891
6894
  readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
6892
6895
  }];
6893
6896
  };
6897
+ /**
6898
+ * @deprecated Should use `access.residency` instead
6899
+ */
6894
6900
  readonly residency: {
6895
6901
  readonly type: "string";
6896
6902
  readonly pattern: "^https?://.*";
6897
6903
  };
6904
+ /**
6905
+ * @deprecated Should use `access.logoutReturnUrl` instead
6906
+ */
6898
6907
  readonly logoutReturnUrl: {
6899
6908
  readonly type: "string";
6900
6909
  readonly pattern: "^https?://.*";
@@ -21546,6 +21555,9 @@ export declare const redoclyConfigSchema: {
21546
21555
  };
21547
21556
  readonly additionalProperties: false;
21548
21557
  };
21558
+ /**
21559
+ * @deprecated Should use `access.rbac` instead
21560
+ */
21549
21561
  readonly rbac: {
21550
21562
  readonly type: "object";
21551
21563
  readonly properties: {
@@ -21784,6 +21796,9 @@ export declare const redoclyConfigSchema: {
21784
21796
  };
21785
21797
  readonly additionalProperties: false;
21786
21798
  };
21799
+ /**
21800
+ * @deprecated Should use `access.requiresLogin` instead
21801
+ */
21787
21802
  readonly requiresLogin: {
21788
21803
  readonly type: "boolean";
21789
21804
  };
@@ -40585,6 +40600,9 @@ export declare const rootRedoclyConfigSchema: {
40585
40600
  };
40586
40601
  };
40587
40602
  };
40603
+ /**
40604
+ * @deprecated Should use `access.sso` instead
40605
+ */
40588
40606
  readonly sso: {
40589
40607
  readonly oneOf: readonly [{
40590
40608
  readonly type: "array";
@@ -40598,10 +40616,16 @@ export declare const rootRedoclyConfigSchema: {
40598
40616
  readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
40599
40617
  }];
40600
40618
  };
40619
+ /**
40620
+ * @deprecated Should use `access.residency` instead
40621
+ */
40601
40622
  readonly residency: {
40602
40623
  readonly type: "string";
40603
40624
  readonly pattern: "^https?://.*";
40604
40625
  };
40626
+ /**
40627
+ * @deprecated Should use `access.logoutReturnUrl` instead
40628
+ */
40605
40629
  readonly logoutReturnUrl: {
40606
40630
  readonly type: "string";
40607
40631
  readonly pattern: "^https?://.*";
@@ -55253,6 +55277,9 @@ export declare const rootRedoclyConfigSchema: {
55253
55277
  };
55254
55278
  readonly additionalProperties: false;
55255
55279
  };
55280
+ /**
55281
+ * @deprecated Should use `access.rbac` instead
55282
+ */
55256
55283
  readonly rbac: {
55257
55284
  readonly type: "object";
55258
55285
  readonly properties: {
@@ -55491,6 +55518,9 @@ export declare const rootRedoclyConfigSchema: {
55491
55518
  };
55492
55519
  readonly additionalProperties: false;
55493
55520
  };
55521
+ /**
55522
+ * @deprecated Should use `access.requiresLogin` instead
55523
+ */
55494
55524
  readonly requiresLogin: {
55495
55525
  readonly type: "boolean";
55496
55526
  };
@@ -508,7 +508,15 @@ export const redoclyConfigSchema = {
508
508
  imports: {
509
509
  type: 'array',
510
510
  items: { type: 'string' },
511
- }, licenseKey: { type: 'string' }, redirects: redirectsConfigSchema, seo: seoConfigSchema, rbac: rbacConfigSchema, apiFunctions: apiFunctionsConfigSchema, requiresLogin: requiresLoginSchema, responseHeaders: {
511
+ }, licenseKey: { type: 'string' }, redirects: redirectsConfigSchema, seo: seoConfigSchema,
512
+ /**
513
+ * @deprecated Should use `access.rbac` instead
514
+ */
515
+ rbac: rbacConfigSchema, apiFunctions: apiFunctionsConfigSchema,
516
+ /**
517
+ * @deprecated Should use `access.requiresLogin` instead
518
+ */
519
+ requiresLogin: requiresLoginSchema, responseHeaders: {
512
520
  type: 'object',
513
521
  additionalProperties: {
514
522
  type: 'array',
@@ -526,7 +534,19 @@ export const redoclyConfigSchema = {
526
534
  }, apis: {
527
535
  type: 'object',
528
536
  additionalProperties: apiConfigSchema,
529
- } }, configGovernanceSchema), { ssoDirect: ssoDirectConfigSchema, sso: ssoConfigSchema, residency: residencySchema, logoutReturnUrl: logoutReturnUrlSchema, access: accessConfigSchema, developerOnboarding: devOnboardingConfigSchema, removeAttribution: { type: 'boolean' }, i18n: l10nConfigSchema, l10n: l10nConfigSchema, metadata: metadataConfigSchema, metadataGlobs: metadataGlobsConfigSchema, ignore: { type: 'array', items: { type: 'string' } },
537
+ } }, configGovernanceSchema), { ssoDirect: ssoDirectConfigSchema,
538
+ /**
539
+ * @deprecated Should use `access.sso` instead
540
+ */
541
+ sso: ssoConfigSchema,
542
+ /**
543
+ * @deprecated Should use `access.residency` instead
544
+ */
545
+ residency: residencySchema,
546
+ /**
547
+ * @deprecated Should use `access.logoutReturnUrl` instead
548
+ */
549
+ logoutReturnUrl: logoutReturnUrlSchema, access: accessConfigSchema, developerOnboarding: devOnboardingConfigSchema, removeAttribution: { type: 'boolean' }, i18n: l10nConfigSchema, l10n: l10nConfigSchema, metadata: metadataConfigSchema, metadataGlobs: metadataGlobsConfigSchema, ignore: { type: 'array', items: { type: 'string' } },
530
550
  /**
531
551
  * @deprecated properties moved to the root of the config
532
552
  */
@@ -32,7 +32,28 @@ export type ReuniteConfig = FromSchema<typeof reuniteConfigSchema>;
32
32
  export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
33
33
  export type ScorecardsConfig = FromSchema<typeof scorecardsConfigSchema>;
34
34
  export type SearchFacetsConfig = FromSchema<typeof searchFacetsConfigSchema>;
35
- export type RedoclyConfig = Omit<FromSchema<typeof rootRedoclyConfigSchema>, 'theme' | 'apis'> & {
35
+ type RootRedoclyConfig = FromSchema<typeof rootRedoclyConfigSchema>;
36
+ export type RedoclyConfig = Omit<RootRedoclyConfig, 'theme' | 'apis' | 'rbac' | 'requiresLogin' | 'sso' | 'residency' | 'logoutReturnUrl'> & {
37
+ /**
38
+ * @deprecated Should use `access.rbac` instead
39
+ */
40
+ rbac?: RootRedoclyConfig['rbac'];
41
+ /**
42
+ * @deprecated Should use `access.requiresLogin` instead
43
+ */
44
+ requiresLogin?: RootRedoclyConfig['requiresLogin'];
45
+ /**
46
+ * @deprecated Should use `access.sso` instead
47
+ */
48
+ sso?: RootRedoclyConfig['sso'];
49
+ /**
50
+ * @deprecated Should use `access.residency` instead
51
+ */
52
+ residency?: RootRedoclyConfig['residency'];
53
+ /**
54
+ * @deprecated Should use `access.logoutReturnUrl` instead
55
+ */
56
+ logoutReturnUrl?: RootRedoclyConfig['logoutReturnUrl'];
36
57
  /**
37
58
  * @deprecated properties moved to the root of the config
38
59
  */
@@ -1,9 +1,9 @@
1
1
  import type { Node } from '@markdoc/markdoc/dist/src/types';
2
2
  import type { LayoutVariant, REDOCLY_ROUTE_RBAC, REDOCLY_TEAMS_RBAC } from '../constants/shared';
3
- import type { ProductConfig, ProductGoogleAnalyticsConfig, RbacScopeItems, RedoclyConfig, SeoConfig } from './config-types';
3
+ import type { ProductConfig, ProductGoogleAnalyticsConfig, RbacScopeItems, RedoclyConfig, SeoConfig, BannerConfig } 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' | 'banner'> & {
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'> & {
7
7
  auth?: {
8
8
  idpsInfo?: {
9
9
  idpId: string;
@@ -18,6 +18,7 @@ export type UiAccessibleConfig = Pick<RedoclyConfig, 'logo' | 'navbar' | 'produc
18
18
  products?: {
19
19
  [key: string]: ProductUiConfig;
20
20
  };
21
+ banner?: ResolvedBannerConfig[];
21
22
  };
22
23
  /**
23
24
  * @deprecated left for backwards compatibility. To be removed in Realm 1.0
@@ -157,6 +158,9 @@ export type ResolvedSidebar = {
157
158
  catalogConfig?: CatalogEntityConfig;
158
159
  };
159
160
  };
161
+ export type ResolvedBannerConfig = BannerConfig & {
162
+ ast: unknown;
163
+ };
160
164
  export type CompilationError = {
161
165
  message: string;
162
166
  sourceFileRelativePath: string;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@redocly/config",
3
- "version": "0.44.1",
3
+ "version": "0.44.2",
4
4
  "license": "MIT",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "devDependencies": {
9
9
  "@markdoc/markdoc": "0.5.2",
10
- "@redocly/openapi-core": "2.20.4",
10
+ "@redocly/openapi-core": "2.24.0",
11
11
  "@types/node": "22.18.13",
12
12
  "@types/react": "^19.2.7",
13
13
  "@vitest/coverage-v8": "4.0.10",