@redocly/config 0.6.3 → 0.7.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.
@@ -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/constants.js CHANGED
@@ -6,7 +6,6 @@ var AuthProviderType;
6
6
  (function (AuthProviderType) {
7
7
  AuthProviderType["OIDC"] = "OIDC";
8
8
  AuthProviderType["SAML2"] = "SAML2";
9
- AuthProviderType["BASIC"] = "BASIC";
10
9
  })(AuthProviderType || (exports.AuthProviderType = AuthProviderType = {}));
11
10
  var ApigeeDevOnboardingIntegrationAuthType;
12
11
  (function (ApigeeDevOnboardingIntegrationAuthType) {
@@ -156,45 +156,6 @@ export declare const saml2ProviderConfigSchema: {
156
156
  readonly additionalProperties: false;
157
157
  readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
158
158
  };
159
- export declare const basicAuthProviderConfigSchema: {
160
- readonly type: "object";
161
- readonly properties: {
162
- readonly type: {
163
- readonly type: "string";
164
- readonly const: AuthProviderType.BASIC;
165
- };
166
- readonly title: {
167
- readonly type: "string";
168
- };
169
- readonly credentials: {
170
- readonly type: "array";
171
- readonly items: {
172
- readonly type: "object";
173
- readonly properties: {
174
- readonly username: {
175
- readonly type: "string";
176
- };
177
- readonly password: {
178
- readonly type: "string";
179
- };
180
- readonly passwordHash: {
181
- readonly type: "string";
182
- };
183
- readonly teams: {
184
- readonly type: "array";
185
- readonly items: {
186
- readonly type: "string";
187
- };
188
- };
189
- };
190
- readonly required: readonly ["username"];
191
- readonly additionalProperties: false;
192
- };
193
- };
194
- };
195
- readonly required: readonly ["type", "credentials"];
196
- readonly additionalProperties: false;
197
- };
198
159
  export declare const authProviderConfigSchema: {
199
160
  readonly oneOf: readonly [{
200
161
  readonly type: "object";
@@ -332,44 +293,6 @@ export declare const authProviderConfigSchema: {
332
293
  };
333
294
  readonly additionalProperties: false;
334
295
  readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
335
- }, {
336
- readonly type: "object";
337
- readonly properties: {
338
- readonly type: {
339
- readonly type: "string";
340
- readonly const: AuthProviderType.BASIC;
341
- };
342
- readonly title: {
343
- readonly type: "string";
344
- };
345
- readonly credentials: {
346
- readonly type: "array";
347
- readonly items: {
348
- readonly type: "object";
349
- readonly properties: {
350
- readonly username: {
351
- readonly type: "string";
352
- };
353
- readonly password: {
354
- readonly type: "string";
355
- };
356
- readonly passwordHash: {
357
- readonly type: "string";
358
- };
359
- readonly teams: {
360
- readonly type: "array";
361
- readonly items: {
362
- readonly type: "string";
363
- };
364
- };
365
- };
366
- readonly required: readonly ["username"];
367
- readonly additionalProperties: false;
368
- };
369
- };
370
- };
371
- readonly required: readonly ["type", "credentials"];
372
- readonly additionalProperties: false;
373
296
  }];
374
297
  readonly discriminator: {
375
298
  readonly propertyName: "type";
@@ -514,44 +437,6 @@ export declare const ssoOnPremConfigSchema: {
514
437
  };
515
438
  readonly additionalProperties: false;
516
439
  readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
517
- }, {
518
- readonly type: "object";
519
- readonly properties: {
520
- readonly type: {
521
- readonly type: "string";
522
- readonly const: AuthProviderType.BASIC;
523
- };
524
- readonly title: {
525
- readonly type: "string";
526
- };
527
- readonly credentials: {
528
- readonly type: "array";
529
- readonly items: {
530
- readonly type: "object";
531
- readonly properties: {
532
- readonly username: {
533
- readonly type: "string";
534
- };
535
- readonly password: {
536
- readonly type: "string";
537
- };
538
- readonly passwordHash: {
539
- readonly type: "string";
540
- };
541
- readonly teams: {
542
- readonly type: "array";
543
- readonly items: {
544
- readonly type: "string";
545
- };
546
- };
547
- };
548
- readonly required: readonly ["username"];
549
- readonly additionalProperties: false;
550
- };
551
- };
552
- };
553
- readonly required: readonly ["type", "credentials"];
554
- readonly additionalProperties: false;
555
440
  }];
556
441
  readonly discriminator: {
557
442
  readonly propertyName: "type";
@@ -5527,44 +5412,6 @@ export declare const redoclyConfigSchema: {
5527
5412
  };
5528
5413
  readonly additionalProperties: false;
5529
5414
  readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
5530
- }, {
5531
- readonly type: "object";
5532
- readonly properties: {
5533
- readonly type: {
5534
- readonly type: "string";
5535
- readonly const: AuthProviderType.BASIC;
5536
- };
5537
- readonly title: {
5538
- readonly type: "string";
5539
- };
5540
- readonly credentials: {
5541
- readonly type: "array";
5542
- readonly items: {
5543
- readonly type: "object";
5544
- readonly properties: {
5545
- readonly username: {
5546
- readonly type: "string";
5547
- };
5548
- readonly password: {
5549
- readonly type: "string";
5550
- };
5551
- readonly passwordHash: {
5552
- readonly type: "string";
5553
- };
5554
- readonly teams: {
5555
- readonly type: "array";
5556
- readonly items: {
5557
- readonly type: "string";
5558
- };
5559
- };
5560
- };
5561
- readonly required: readonly ["username"];
5562
- readonly additionalProperties: false;
5563
- };
5564
- };
5565
- };
5566
- readonly required: readonly ["type", "credentials"];
5567
- readonly additionalProperties: false;
5568
5415
  }];
5569
5416
  readonly discriminator: {
5570
5417
  readonly propertyName: "type";
@@ -14016,44 +13863,6 @@ export declare const rootRedoclyConfigSchema: {
14016
13863
  additionalProperties: false;
14017
13864
  type: "object";
14018
13865
  required: ("type" | "issuerId" | "ssoUrl" | "x509PublicCert")[];
14019
- } | {
14020
- properties: {
14021
- type: {
14022
- const: AuthProviderType.BASIC;
14023
- type: "string";
14024
- };
14025
- title: {
14026
- type: "string";
14027
- };
14028
- credentials: {
14029
- items: {
14030
- properties: {
14031
- username: {
14032
- type: "string";
14033
- };
14034
- password: {
14035
- type: "string";
14036
- };
14037
- passwordHash: {
14038
- type: "string";
14039
- };
14040
- teams: {
14041
- items: {
14042
- type: "string";
14043
- };
14044
- type: "array";
14045
- };
14046
- };
14047
- additionalProperties: false;
14048
- type: "object";
14049
- required: "username"[];
14050
- };
14051
- type: "array";
14052
- };
14053
- };
14054
- additionalProperties: false;
14055
- type: "object";
14056
- required: ("type" | "credentials")[];
14057
13866
  })[];
14058
13867
  discriminator: {
14059
13868
  propertyName: "type";
@@ -16671,44 +16480,6 @@ export declare const rootRedoclyConfigSchema: {
16671
16480
  };
16672
16481
  readonly additionalProperties: false;
16673
16482
  readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
16674
- }, {
16675
- readonly type: "object";
16676
- readonly properties: {
16677
- readonly type: {
16678
- readonly type: "string";
16679
- readonly const: AuthProviderType.BASIC;
16680
- };
16681
- readonly title: {
16682
- readonly type: "string";
16683
- };
16684
- readonly credentials: {
16685
- readonly type: "array";
16686
- readonly items: {
16687
- readonly type: "object";
16688
- readonly properties: {
16689
- readonly username: {
16690
- readonly type: "string";
16691
- };
16692
- readonly password: {
16693
- readonly type: "string";
16694
- };
16695
- readonly passwordHash: {
16696
- readonly type: "string";
16697
- };
16698
- readonly teams: {
16699
- readonly type: "array";
16700
- readonly items: {
16701
- readonly type: "string";
16702
- };
16703
- };
16704
- };
16705
- readonly required: readonly ["username"];
16706
- readonly additionalProperties: false;
16707
- };
16708
- };
16709
- };
16710
- readonly required: readonly ["type", "credentials"];
16711
- readonly additionalProperties: false;
16712
16483
  }];
16713
16484
  readonly discriminator: {
16714
16485
  readonly propertyName: "type";
@@ -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.basicAuthProviderConfigSchema = 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.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, exports.basicAuthProviderConfigSchema],
59
+ oneOf: [exports.oidcProviderConfigSchema, exports.saml2ProviderConfigSchema],
83
60
  discriminator: { propertyName: 'type' },
84
61
  };
85
62
  exports.ssoOnPremConfigSchema = {
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, basicAuthProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, i18ConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoOnPremConfigSchema } from './root-config-schema';
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>;
@@ -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",
@@ -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) {
@@ -156,45 +156,6 @@ export declare const saml2ProviderConfigSchema: {
156
156
  readonly additionalProperties: false;
157
157
  readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
158
158
  };
159
- export declare const basicAuthProviderConfigSchema: {
160
- readonly type: "object";
161
- readonly properties: {
162
- readonly type: {
163
- readonly type: "string";
164
- readonly const: AuthProviderType.BASIC;
165
- };
166
- readonly title: {
167
- readonly type: "string";
168
- };
169
- readonly credentials: {
170
- readonly type: "array";
171
- readonly items: {
172
- readonly type: "object";
173
- readonly properties: {
174
- readonly username: {
175
- readonly type: "string";
176
- };
177
- readonly password: {
178
- readonly type: "string";
179
- };
180
- readonly passwordHash: {
181
- readonly type: "string";
182
- };
183
- readonly teams: {
184
- readonly type: "array";
185
- readonly items: {
186
- readonly type: "string";
187
- };
188
- };
189
- };
190
- readonly required: readonly ["username"];
191
- readonly additionalProperties: false;
192
- };
193
- };
194
- };
195
- readonly required: readonly ["type", "credentials"];
196
- readonly additionalProperties: false;
197
- };
198
159
  export declare const authProviderConfigSchema: {
199
160
  readonly oneOf: readonly [{
200
161
  readonly type: "object";
@@ -332,44 +293,6 @@ export declare const authProviderConfigSchema: {
332
293
  };
333
294
  readonly additionalProperties: false;
334
295
  readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
335
- }, {
336
- readonly type: "object";
337
- readonly properties: {
338
- readonly type: {
339
- readonly type: "string";
340
- readonly const: AuthProviderType.BASIC;
341
- };
342
- readonly title: {
343
- readonly type: "string";
344
- };
345
- readonly credentials: {
346
- readonly type: "array";
347
- readonly items: {
348
- readonly type: "object";
349
- readonly properties: {
350
- readonly username: {
351
- readonly type: "string";
352
- };
353
- readonly password: {
354
- readonly type: "string";
355
- };
356
- readonly passwordHash: {
357
- readonly type: "string";
358
- };
359
- readonly teams: {
360
- readonly type: "array";
361
- readonly items: {
362
- readonly type: "string";
363
- };
364
- };
365
- };
366
- readonly required: readonly ["username"];
367
- readonly additionalProperties: false;
368
- };
369
- };
370
- };
371
- readonly required: readonly ["type", "credentials"];
372
- readonly additionalProperties: false;
373
296
  }];
374
297
  readonly discriminator: {
375
298
  readonly propertyName: "type";
@@ -514,44 +437,6 @@ export declare const ssoOnPremConfigSchema: {
514
437
  };
515
438
  readonly additionalProperties: false;
516
439
  readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
517
- }, {
518
- readonly type: "object";
519
- readonly properties: {
520
- readonly type: {
521
- readonly type: "string";
522
- readonly const: AuthProviderType.BASIC;
523
- };
524
- readonly title: {
525
- readonly type: "string";
526
- };
527
- readonly credentials: {
528
- readonly type: "array";
529
- readonly items: {
530
- readonly type: "object";
531
- readonly properties: {
532
- readonly username: {
533
- readonly type: "string";
534
- };
535
- readonly password: {
536
- readonly type: "string";
537
- };
538
- readonly passwordHash: {
539
- readonly type: "string";
540
- };
541
- readonly teams: {
542
- readonly type: "array";
543
- readonly items: {
544
- readonly type: "string";
545
- };
546
- };
547
- };
548
- readonly required: readonly ["username"];
549
- readonly additionalProperties: false;
550
- };
551
- };
552
- };
553
- readonly required: readonly ["type", "credentials"];
554
- readonly additionalProperties: false;
555
440
  }];
556
441
  readonly discriminator: {
557
442
  readonly propertyName: "type";
@@ -5527,44 +5412,6 @@ export declare const redoclyConfigSchema: {
5527
5412
  };
5528
5413
  readonly additionalProperties: false;
5529
5414
  readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
5530
- }, {
5531
- readonly type: "object";
5532
- readonly properties: {
5533
- readonly type: {
5534
- readonly type: "string";
5535
- readonly const: AuthProviderType.BASIC;
5536
- };
5537
- readonly title: {
5538
- readonly type: "string";
5539
- };
5540
- readonly credentials: {
5541
- readonly type: "array";
5542
- readonly items: {
5543
- readonly type: "object";
5544
- readonly properties: {
5545
- readonly username: {
5546
- readonly type: "string";
5547
- };
5548
- readonly password: {
5549
- readonly type: "string";
5550
- };
5551
- readonly passwordHash: {
5552
- readonly type: "string";
5553
- };
5554
- readonly teams: {
5555
- readonly type: "array";
5556
- readonly items: {
5557
- readonly type: "string";
5558
- };
5559
- };
5560
- };
5561
- readonly required: readonly ["username"];
5562
- readonly additionalProperties: false;
5563
- };
5564
- };
5565
- };
5566
- readonly required: readonly ["type", "credentials"];
5567
- readonly additionalProperties: false;
5568
5415
  }];
5569
5416
  readonly discriminator: {
5570
5417
  readonly propertyName: "type";
@@ -14016,44 +13863,6 @@ export declare const rootRedoclyConfigSchema: {
14016
13863
  additionalProperties: false;
14017
13864
  type: "object";
14018
13865
  required: ("type" | "issuerId" | "ssoUrl" | "x509PublicCert")[];
14019
- } | {
14020
- properties: {
14021
- type: {
14022
- const: AuthProviderType.BASIC;
14023
- type: "string";
14024
- };
14025
- title: {
14026
- type: "string";
14027
- };
14028
- credentials: {
14029
- items: {
14030
- properties: {
14031
- username: {
14032
- type: "string";
14033
- };
14034
- password: {
14035
- type: "string";
14036
- };
14037
- passwordHash: {
14038
- type: "string";
14039
- };
14040
- teams: {
14041
- items: {
14042
- type: "string";
14043
- };
14044
- type: "array";
14045
- };
14046
- };
14047
- additionalProperties: false;
14048
- type: "object";
14049
- required: "username"[];
14050
- };
14051
- type: "array";
14052
- };
14053
- };
14054
- additionalProperties: false;
14055
- type: "object";
14056
- required: ("type" | "credentials")[];
14057
13866
  })[];
14058
13867
  discriminator: {
14059
13868
  propertyName: "type";
@@ -16671,44 +16480,6 @@ export declare const rootRedoclyConfigSchema: {
16671
16480
  };
16672
16481
  readonly additionalProperties: false;
16673
16482
  readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
16674
- }, {
16675
- readonly type: "object";
16676
- readonly properties: {
16677
- readonly type: {
16678
- readonly type: "string";
16679
- readonly const: AuthProviderType.BASIC;
16680
- };
16681
- readonly title: {
16682
- readonly type: "string";
16683
- };
16684
- readonly credentials: {
16685
- readonly type: "array";
16686
- readonly items: {
16687
- readonly type: "object";
16688
- readonly properties: {
16689
- readonly username: {
16690
- readonly type: "string";
16691
- };
16692
- readonly password: {
16693
- readonly type: "string";
16694
- };
16695
- readonly passwordHash: {
16696
- readonly type: "string";
16697
- };
16698
- readonly teams: {
16699
- readonly type: "array";
16700
- readonly items: {
16701
- readonly type: "string";
16702
- };
16703
- };
16704
- };
16705
- readonly required: readonly ["username"];
16706
- readonly additionalProperties: false;
16707
- };
16708
- };
16709
- };
16710
- readonly required: readonly ["type", "credentials"];
16711
- readonly additionalProperties: false;
16712
16483
  }];
16713
16484
  readonly discriminator: {
16714
16485
  readonly propertyName: "type";
@@ -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, basicAuthProviderConfigSchema],
56
+ oneOf: [oidcProviderConfigSchema, saml2ProviderConfigSchema],
80
57
  discriminator: { propertyName: 'type' },
81
58
  };
82
59
  export const ssoOnPremConfigSchema = {
@@ -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, basicAuthProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, i18ConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoOnPremConfigSchema } from './root-config-schema';
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/config",
3
- "version": "0.6.3",
3
+ "version": "0.7.0",
4
4
  "license": "MIT",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",