@redocly/config 0.8.0 → 0.8.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.
@@ -4,6 +4,9 @@ export declare const reuniteConfigSchema: {
4
4
  readonly ignoreLinkChecker: {
5
5
  readonly type: "boolean";
6
6
  };
7
+ readonly ignoreMarkdocErrors: {
8
+ readonly type: "boolean";
9
+ };
7
10
  };
8
11
  readonly additionalProperties: false;
9
12
  };
@@ -5,6 +5,7 @@ exports.reuniteConfigSchema = {
5
5
  type: 'object',
6
6
  properties: {
7
7
  ignoreLinkChecker: { type: 'boolean' },
8
+ ignoreMarkdocErrors: { type: 'boolean' },
8
9
  },
9
10
  additionalProperties: false,
10
11
  };
@@ -2625,6 +2625,26 @@ export declare const rbacConfigSchema: {
2625
2625
  };
2626
2626
  };
2627
2627
  };
2628
+ export declare const graviteeAdapterAuthStaticSchema: {
2629
+ readonly type: "object";
2630
+ readonly properties: {
2631
+ readonly static: {
2632
+ readonly type: "string";
2633
+ };
2634
+ };
2635
+ readonly additionalProperties: false;
2636
+ readonly required: readonly ["static"];
2637
+ };
2638
+ export declare const graviteeAdapterAuthIdpSchema: {
2639
+ readonly type: "object";
2640
+ readonly properties: {
2641
+ readonly idp: {
2642
+ readonly type: "string";
2643
+ };
2644
+ };
2645
+ readonly additionalProperties: false;
2646
+ readonly required: readonly ["idp"];
2647
+ };
2628
2648
  export declare const graviteeAdapterConfigSchema: {
2629
2649
  readonly type: "object";
2630
2650
  readonly properties: {
@@ -2647,12 +2667,25 @@ export declare const graviteeAdapterConfigSchema: {
2647
2667
  readonly default: "non-production";
2648
2668
  };
2649
2669
  readonly auth: {
2650
- readonly type: "object";
2651
- readonly properties: {
2652
- readonly static: {
2653
- readonly type: "string";
2670
+ readonly oneOf: readonly [{
2671
+ readonly type: "object";
2672
+ readonly properties: {
2673
+ readonly static: {
2674
+ readonly type: "string";
2675
+ };
2654
2676
  };
2655
- };
2677
+ readonly additionalProperties: false;
2678
+ readonly required: readonly ["static"];
2679
+ }, {
2680
+ readonly type: "object";
2681
+ readonly properties: {
2682
+ readonly idp: {
2683
+ readonly type: "string";
2684
+ };
2685
+ };
2686
+ readonly additionalProperties: false;
2687
+ readonly required: readonly ["idp"];
2688
+ }];
2656
2689
  };
2657
2690
  };
2658
2691
  readonly additionalProperties: false;
@@ -3009,12 +3042,25 @@ export declare const devOnboardingAdapterConfigSchema: {
3009
3042
  readonly default: "non-production";
3010
3043
  };
3011
3044
  readonly auth: {
3012
- readonly type: "object";
3013
- readonly properties: {
3014
- readonly static: {
3015
- readonly type: "string";
3045
+ readonly oneOf: readonly [{
3046
+ readonly type: "object";
3047
+ readonly properties: {
3048
+ readonly static: {
3049
+ readonly type: "string";
3050
+ };
3016
3051
  };
3017
- };
3052
+ readonly additionalProperties: false;
3053
+ readonly required: readonly ["static"];
3054
+ }, {
3055
+ readonly type: "object";
3056
+ readonly properties: {
3057
+ readonly idp: {
3058
+ readonly type: "string";
3059
+ };
3060
+ };
3061
+ readonly additionalProperties: false;
3062
+ readonly required: readonly ["idp"];
3063
+ }];
3018
3064
  };
3019
3065
  };
3020
3066
  readonly additionalProperties: false;
@@ -5609,12 +5655,25 @@ export declare const redoclyConfigSchema: {
5609
5655
  readonly default: "non-production";
5610
5656
  };
5611
5657
  readonly auth: {
5612
- readonly type: "object";
5613
- readonly properties: {
5614
- readonly static: {
5615
- readonly type: "string";
5658
+ readonly oneOf: readonly [{
5659
+ readonly type: "object";
5660
+ readonly properties: {
5661
+ readonly static: {
5662
+ readonly type: "string";
5663
+ };
5616
5664
  };
5617
- };
5665
+ readonly additionalProperties: false;
5666
+ readonly required: readonly ["static"];
5667
+ }, {
5668
+ readonly type: "object";
5669
+ readonly properties: {
5670
+ readonly idp: {
5671
+ readonly type: "string";
5672
+ };
5673
+ };
5674
+ readonly additionalProperties: false;
5675
+ readonly required: readonly ["idp"];
5676
+ }];
5618
5677
  };
5619
5678
  };
5620
5679
  readonly additionalProperties: false;
@@ -9237,6 +9296,9 @@ export declare const redoclyConfigSchema: {
9237
9296
  readonly ignoreLinkChecker: {
9238
9297
  readonly type: "boolean";
9239
9298
  };
9299
+ readonly ignoreMarkdocErrors: {
9300
+ readonly type: "boolean";
9301
+ };
9240
9302
  };
9241
9303
  readonly additionalProperties: false;
9242
9304
  };
@@ -13900,12 +13962,25 @@ export declare const rootRedoclyConfigSchema: {
13900
13962
  type: "string";
13901
13963
  };
13902
13964
  auth: {
13903
- properties: {
13904
- static: {
13905
- type: "string";
13965
+ oneOf: ({
13966
+ properties: {
13967
+ static: {
13968
+ type: "string";
13969
+ };
13906
13970
  };
13907
- };
13908
- type: "object";
13971
+ additionalProperties: false;
13972
+ type: "object";
13973
+ required: "static"[];
13974
+ } | {
13975
+ properties: {
13976
+ idp: {
13977
+ type: "string";
13978
+ };
13979
+ };
13980
+ additionalProperties: false;
13981
+ type: "object";
13982
+ required: "idp"[];
13983
+ })[];
13909
13984
  };
13910
13985
  env: {
13911
13986
  type: "string";
@@ -14112,6 +14187,9 @@ export declare const rootRedoclyConfigSchema: {
14112
14187
  ignoreLinkChecker: {
14113
14188
  type: "boolean";
14114
14189
  };
14190
+ ignoreMarkdocErrors: {
14191
+ type: "boolean";
14192
+ };
14115
14193
  };
14116
14194
  additionalProperties: false;
14117
14195
  type: "object";
@@ -16677,12 +16755,25 @@ export declare const rootRedoclyConfigSchema: {
16677
16755
  readonly default: "non-production";
16678
16756
  };
16679
16757
  readonly auth: {
16680
- readonly type: "object";
16681
- readonly properties: {
16682
- readonly static: {
16683
- readonly type: "string";
16758
+ readonly oneOf: readonly [{
16759
+ readonly type: "object";
16760
+ readonly properties: {
16761
+ readonly static: {
16762
+ readonly type: "string";
16763
+ };
16684
16764
  };
16685
- };
16765
+ readonly additionalProperties: false;
16766
+ readonly required: readonly ["static"];
16767
+ }, {
16768
+ readonly type: "object";
16769
+ readonly properties: {
16770
+ readonly idp: {
16771
+ readonly type: "string";
16772
+ };
16773
+ };
16774
+ readonly additionalProperties: false;
16775
+ readonly required: readonly ["idp"];
16776
+ }];
16686
16777
  };
16687
16778
  };
16688
16779
  readonly additionalProperties: false;
@@ -20305,6 +20396,9 @@ export declare const rootRedoclyConfigSchema: {
20305
20396
  readonly ignoreLinkChecker: {
20306
20397
  readonly type: "boolean";
20307
20398
  };
20399
+ readonly ignoreMarkdocErrors: {
20400
+ readonly type: "boolean";
20401
+ };
20308
20402
  };
20309
20403
  readonly additionalProperties: false;
20310
20404
  };
@@ -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.saml2ProviderConfigSchema = exports.oidcProviderConfigSchema = exports.oidcIssuerMetadataSchema = void 0;
3
+ exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.i18ConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.graviteeAdapterAuthIdpSchema = exports.graviteeAdapterAuthStaticSchema = 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");
@@ -173,6 +173,18 @@ exports.rbacConfigSchema = {
173
173
  },
174
174
  additionalProperties: exports.rbacScopeItemsSchema,
175
175
  };
176
+ exports.graviteeAdapterAuthStaticSchema = {
177
+ type: 'object',
178
+ properties: { static: { type: 'string' } },
179
+ additionalProperties: false,
180
+ required: ['static'],
181
+ };
182
+ exports.graviteeAdapterAuthIdpSchema = {
183
+ type: 'object',
184
+ properties: { idp: { type: 'string' } },
185
+ additionalProperties: false,
186
+ required: ['idp'],
187
+ };
176
188
  exports.graviteeAdapterConfigSchema = {
177
189
  type: 'object',
178
190
  properties: {
@@ -181,7 +193,9 @@ exports.graviteeAdapterConfigSchema = {
181
193
  env: { type: 'string' },
182
194
  allowApiProductsOutsideCatalog: { type: 'boolean', default: false },
183
195
  stage: { type: 'string', default: 'non-production' },
184
- auth: { type: 'object', properties: { static: { type: 'string' } } },
196
+ auth: {
197
+ oneOf: [exports.graviteeAdapterAuthStaticSchema, exports.graviteeAdapterAuthIdpSchema],
198
+ },
185
199
  },
186
200
  additionalProperties: false,
187
201
  required: ['type', 'apiBaseUrl'],
@@ -4,6 +4,9 @@ export declare const reuniteConfigSchema: {
4
4
  readonly ignoreLinkChecker: {
5
5
  readonly type: "boolean";
6
6
  };
7
+ readonly ignoreMarkdocErrors: {
8
+ readonly type: "boolean";
9
+ };
7
10
  };
8
11
  readonly additionalProperties: false;
9
12
  };
@@ -2,6 +2,7 @@ export const reuniteConfigSchema = {
2
2
  type: 'object',
3
3
  properties: {
4
4
  ignoreLinkChecker: { type: 'boolean' },
5
+ ignoreMarkdocErrors: { type: 'boolean' },
5
6
  },
6
7
  additionalProperties: false,
7
8
  };
@@ -2625,6 +2625,26 @@ export declare const rbacConfigSchema: {
2625
2625
  };
2626
2626
  };
2627
2627
  };
2628
+ export declare const graviteeAdapterAuthStaticSchema: {
2629
+ readonly type: "object";
2630
+ readonly properties: {
2631
+ readonly static: {
2632
+ readonly type: "string";
2633
+ };
2634
+ };
2635
+ readonly additionalProperties: false;
2636
+ readonly required: readonly ["static"];
2637
+ };
2638
+ export declare const graviteeAdapterAuthIdpSchema: {
2639
+ readonly type: "object";
2640
+ readonly properties: {
2641
+ readonly idp: {
2642
+ readonly type: "string";
2643
+ };
2644
+ };
2645
+ readonly additionalProperties: false;
2646
+ readonly required: readonly ["idp"];
2647
+ };
2628
2648
  export declare const graviteeAdapterConfigSchema: {
2629
2649
  readonly type: "object";
2630
2650
  readonly properties: {
@@ -2647,12 +2667,25 @@ export declare const graviteeAdapterConfigSchema: {
2647
2667
  readonly default: "non-production";
2648
2668
  };
2649
2669
  readonly auth: {
2650
- readonly type: "object";
2651
- readonly properties: {
2652
- readonly static: {
2653
- readonly type: "string";
2670
+ readonly oneOf: readonly [{
2671
+ readonly type: "object";
2672
+ readonly properties: {
2673
+ readonly static: {
2674
+ readonly type: "string";
2675
+ };
2654
2676
  };
2655
- };
2677
+ readonly additionalProperties: false;
2678
+ readonly required: readonly ["static"];
2679
+ }, {
2680
+ readonly type: "object";
2681
+ readonly properties: {
2682
+ readonly idp: {
2683
+ readonly type: "string";
2684
+ };
2685
+ };
2686
+ readonly additionalProperties: false;
2687
+ readonly required: readonly ["idp"];
2688
+ }];
2656
2689
  };
2657
2690
  };
2658
2691
  readonly additionalProperties: false;
@@ -3009,12 +3042,25 @@ export declare const devOnboardingAdapterConfigSchema: {
3009
3042
  readonly default: "non-production";
3010
3043
  };
3011
3044
  readonly auth: {
3012
- readonly type: "object";
3013
- readonly properties: {
3014
- readonly static: {
3015
- readonly type: "string";
3045
+ readonly oneOf: readonly [{
3046
+ readonly type: "object";
3047
+ readonly properties: {
3048
+ readonly static: {
3049
+ readonly type: "string";
3050
+ };
3016
3051
  };
3017
- };
3052
+ readonly additionalProperties: false;
3053
+ readonly required: readonly ["static"];
3054
+ }, {
3055
+ readonly type: "object";
3056
+ readonly properties: {
3057
+ readonly idp: {
3058
+ readonly type: "string";
3059
+ };
3060
+ };
3061
+ readonly additionalProperties: false;
3062
+ readonly required: readonly ["idp"];
3063
+ }];
3018
3064
  };
3019
3065
  };
3020
3066
  readonly additionalProperties: false;
@@ -5609,12 +5655,25 @@ export declare const redoclyConfigSchema: {
5609
5655
  readonly default: "non-production";
5610
5656
  };
5611
5657
  readonly auth: {
5612
- readonly type: "object";
5613
- readonly properties: {
5614
- readonly static: {
5615
- readonly type: "string";
5658
+ readonly oneOf: readonly [{
5659
+ readonly type: "object";
5660
+ readonly properties: {
5661
+ readonly static: {
5662
+ readonly type: "string";
5663
+ };
5616
5664
  };
5617
- };
5665
+ readonly additionalProperties: false;
5666
+ readonly required: readonly ["static"];
5667
+ }, {
5668
+ readonly type: "object";
5669
+ readonly properties: {
5670
+ readonly idp: {
5671
+ readonly type: "string";
5672
+ };
5673
+ };
5674
+ readonly additionalProperties: false;
5675
+ readonly required: readonly ["idp"];
5676
+ }];
5618
5677
  };
5619
5678
  };
5620
5679
  readonly additionalProperties: false;
@@ -9237,6 +9296,9 @@ export declare const redoclyConfigSchema: {
9237
9296
  readonly ignoreLinkChecker: {
9238
9297
  readonly type: "boolean";
9239
9298
  };
9299
+ readonly ignoreMarkdocErrors: {
9300
+ readonly type: "boolean";
9301
+ };
9240
9302
  };
9241
9303
  readonly additionalProperties: false;
9242
9304
  };
@@ -13900,12 +13962,25 @@ export declare const rootRedoclyConfigSchema: {
13900
13962
  type: "string";
13901
13963
  };
13902
13964
  auth: {
13903
- properties: {
13904
- static: {
13905
- type: "string";
13965
+ oneOf: ({
13966
+ properties: {
13967
+ static: {
13968
+ type: "string";
13969
+ };
13906
13970
  };
13907
- };
13908
- type: "object";
13971
+ additionalProperties: false;
13972
+ type: "object";
13973
+ required: "static"[];
13974
+ } | {
13975
+ properties: {
13976
+ idp: {
13977
+ type: "string";
13978
+ };
13979
+ };
13980
+ additionalProperties: false;
13981
+ type: "object";
13982
+ required: "idp"[];
13983
+ })[];
13909
13984
  };
13910
13985
  env: {
13911
13986
  type: "string";
@@ -14112,6 +14187,9 @@ export declare const rootRedoclyConfigSchema: {
14112
14187
  ignoreLinkChecker: {
14113
14188
  type: "boolean";
14114
14189
  };
14190
+ ignoreMarkdocErrors: {
14191
+ type: "boolean";
14192
+ };
14115
14193
  };
14116
14194
  additionalProperties: false;
14117
14195
  type: "object";
@@ -16677,12 +16755,25 @@ export declare const rootRedoclyConfigSchema: {
16677
16755
  readonly default: "non-production";
16678
16756
  };
16679
16757
  readonly auth: {
16680
- readonly type: "object";
16681
- readonly properties: {
16682
- readonly static: {
16683
- readonly type: "string";
16758
+ readonly oneOf: readonly [{
16759
+ readonly type: "object";
16760
+ readonly properties: {
16761
+ readonly static: {
16762
+ readonly type: "string";
16763
+ };
16684
16764
  };
16685
- };
16765
+ readonly additionalProperties: false;
16766
+ readonly required: readonly ["static"];
16767
+ }, {
16768
+ readonly type: "object";
16769
+ readonly properties: {
16770
+ readonly idp: {
16771
+ readonly type: "string";
16772
+ };
16773
+ };
16774
+ readonly additionalProperties: false;
16775
+ readonly required: readonly ["idp"];
16776
+ }];
16686
16777
  };
16687
16778
  };
16688
16779
  readonly additionalProperties: false;
@@ -20305,6 +20396,9 @@ export declare const rootRedoclyConfigSchema: {
20305
20396
  readonly ignoreLinkChecker: {
20306
20397
  readonly type: "boolean";
20307
20398
  };
20399
+ readonly ignoreMarkdocErrors: {
20400
+ readonly type: "boolean";
20401
+ };
20308
20402
  };
20309
20403
  readonly additionalProperties: false;
20310
20404
  };
@@ -170,6 +170,18 @@ export const rbacConfigSchema = {
170
170
  },
171
171
  additionalProperties: rbacScopeItemsSchema,
172
172
  };
173
+ export const graviteeAdapterAuthStaticSchema = {
174
+ type: 'object',
175
+ properties: { static: { type: 'string' } },
176
+ additionalProperties: false,
177
+ required: ['static'],
178
+ };
179
+ export const graviteeAdapterAuthIdpSchema = {
180
+ type: 'object',
181
+ properties: { idp: { type: 'string' } },
182
+ additionalProperties: false,
183
+ required: ['idp'],
184
+ };
173
185
  export const graviteeAdapterConfigSchema = {
174
186
  type: 'object',
175
187
  properties: {
@@ -178,7 +190,9 @@ export const graviteeAdapterConfigSchema = {
178
190
  env: { type: 'string' },
179
191
  allowApiProductsOutsideCatalog: { type: 'boolean', default: false },
180
192
  stage: { type: 'string', default: 'non-production' },
181
- auth: { type: 'object', properties: { static: { type: 'string' } } },
193
+ auth: {
194
+ oneOf: [graviteeAdapterAuthStaticSchema, graviteeAdapterAuthIdpSchema],
195
+ },
182
196
  },
183
197
  additionalProperties: false,
184
198
  required: ['type', 'apiBaseUrl'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/config",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "license": "MIT",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -8,7 +8,7 @@
8
8
  "devDependencies": {
9
9
  "@markdoc/markdoc": "0.4.0",
10
10
  "@types/react": "18.3.2",
11
- "react-router-dom": "^6.21.1",
11
+ "react-router-dom": "6.21.1",
12
12
  "json-schema-to-ts": "2.7.2",
13
13
  "rimraf": "5.0.7",
14
14
  "typescript": "5.2.2"