@redocly/config 0.49.1 → 0.50.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/identity-provider-slug.d.ts +8 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/root-config-schema.d.ts +195 -12
- package/lib/types/config-types.d.ts +5 -1
- package/lib-esm/constants/identity-provider-slug.d.ts +8 -0
- package/lib-esm/index.d.ts +1 -0
- package/lib-esm/index.js +1 -1
- package/lib-esm/root-config-schema.d.ts +195 -12
- package/lib-esm/types/config-types.d.ts +5 -1
- package/package.json +1 -1
|
@@ -457,12 +457,31 @@ export declare const ssoConfigSchema: {
|
|
|
457
457
|
readonly type: 'array';
|
|
458
458
|
readonly items: {
|
|
459
459
|
readonly type: 'string';
|
|
460
|
-
readonly enum: readonly [
|
|
460
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
461
461
|
};
|
|
462
462
|
readonly uniqueItems: true;
|
|
463
463
|
}, {
|
|
464
464
|
readonly type: 'string';
|
|
465
|
-
readonly enum: readonly [
|
|
465
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
466
|
+
}];
|
|
467
|
+
};
|
|
468
|
+
export declare const idpsConfigSchema: {
|
|
469
|
+
readonly oneOf: readonly [{
|
|
470
|
+
readonly type: 'array';
|
|
471
|
+
readonly items: {
|
|
472
|
+
readonly type: 'string';
|
|
473
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
474
|
+
readonly not: {
|
|
475
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
readonly uniqueItems: true;
|
|
479
|
+
}, {
|
|
480
|
+
readonly type: 'string';
|
|
481
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
482
|
+
readonly not: {
|
|
483
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
484
|
+
};
|
|
466
485
|
}];
|
|
467
486
|
};
|
|
468
487
|
export declare const redirectConfigSchema: {
|
|
@@ -6537,12 +6556,31 @@ export declare const accessConfigSchema: {
|
|
|
6537
6556
|
readonly type: 'array';
|
|
6538
6557
|
readonly items: {
|
|
6539
6558
|
readonly type: 'string';
|
|
6540
|
-
readonly enum: readonly [
|
|
6559
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
6541
6560
|
};
|
|
6542
6561
|
readonly uniqueItems: true;
|
|
6543
6562
|
}, {
|
|
6544
6563
|
readonly type: 'string';
|
|
6545
|
-
readonly enum: readonly [
|
|
6564
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
6565
|
+
}];
|
|
6566
|
+
};
|
|
6567
|
+
readonly idps: {
|
|
6568
|
+
readonly oneOf: readonly [{
|
|
6569
|
+
readonly type: 'array';
|
|
6570
|
+
readonly items: {
|
|
6571
|
+
readonly type: 'string';
|
|
6572
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
6573
|
+
readonly not: {
|
|
6574
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
6575
|
+
};
|
|
6576
|
+
};
|
|
6577
|
+
readonly uniqueItems: true;
|
|
6578
|
+
}, {
|
|
6579
|
+
readonly type: 'string';
|
|
6580
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
6581
|
+
readonly not: {
|
|
6582
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
6583
|
+
};
|
|
6546
6584
|
}];
|
|
6547
6585
|
};
|
|
6548
6586
|
readonly rbac: {
|
|
@@ -6773,6 +6811,10 @@ export declare const accessConfigSchema: {
|
|
|
6773
6811
|
};
|
|
6774
6812
|
};
|
|
6775
6813
|
readonly additionalProperties: false;
|
|
6814
|
+
readonly not: {
|
|
6815
|
+
readonly required: readonly ['sso', 'idps'];
|
|
6816
|
+
};
|
|
6817
|
+
readonly description: 'Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both.';
|
|
6776
6818
|
};
|
|
6777
6819
|
export declare const redoclyConfigSchema: {
|
|
6778
6820
|
readonly type: 'object';
|
|
@@ -12328,12 +12370,34 @@ export declare const redoclyConfigSchema: {
|
|
|
12328
12370
|
readonly type: 'array';
|
|
12329
12371
|
readonly items: {
|
|
12330
12372
|
readonly type: 'string';
|
|
12331
|
-
readonly enum: readonly [
|
|
12373
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
12374
|
+
};
|
|
12375
|
+
readonly uniqueItems: true;
|
|
12376
|
+
}, {
|
|
12377
|
+
readonly type: 'string';
|
|
12378
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
12379
|
+
}];
|
|
12380
|
+
};
|
|
12381
|
+
/**
|
|
12382
|
+
* @deprecated Should use `access.idps` instead
|
|
12383
|
+
*/
|
|
12384
|
+
readonly idps: {
|
|
12385
|
+
readonly oneOf: readonly [{
|
|
12386
|
+
readonly type: 'array';
|
|
12387
|
+
readonly items: {
|
|
12388
|
+
readonly type: 'string';
|
|
12389
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
12390
|
+
readonly not: {
|
|
12391
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
12392
|
+
};
|
|
12332
12393
|
};
|
|
12333
12394
|
readonly uniqueItems: true;
|
|
12334
12395
|
}, {
|
|
12335
12396
|
readonly type: 'string';
|
|
12336
|
-
readonly
|
|
12397
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
12398
|
+
readonly not: {
|
|
12399
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
12400
|
+
};
|
|
12337
12401
|
}];
|
|
12338
12402
|
};
|
|
12339
12403
|
/**
|
|
@@ -12369,12 +12433,31 @@ export declare const redoclyConfigSchema: {
|
|
|
12369
12433
|
readonly type: 'array';
|
|
12370
12434
|
readonly items: {
|
|
12371
12435
|
readonly type: 'string';
|
|
12372
|
-
readonly enum: readonly [
|
|
12436
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
12373
12437
|
};
|
|
12374
12438
|
readonly uniqueItems: true;
|
|
12375
12439
|
}, {
|
|
12376
12440
|
readonly type: 'string';
|
|
12377
|
-
readonly enum: readonly [
|
|
12441
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
12442
|
+
}];
|
|
12443
|
+
};
|
|
12444
|
+
readonly idps: {
|
|
12445
|
+
readonly oneOf: readonly [{
|
|
12446
|
+
readonly type: 'array';
|
|
12447
|
+
readonly items: {
|
|
12448
|
+
readonly type: 'string';
|
|
12449
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
12450
|
+
readonly not: {
|
|
12451
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
12452
|
+
};
|
|
12453
|
+
};
|
|
12454
|
+
readonly uniqueItems: true;
|
|
12455
|
+
}, {
|
|
12456
|
+
readonly type: 'string';
|
|
12457
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
12458
|
+
readonly not: {
|
|
12459
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
12460
|
+
};
|
|
12378
12461
|
}];
|
|
12379
12462
|
};
|
|
12380
12463
|
readonly rbac: {
|
|
@@ -12605,6 +12688,10 @@ export declare const redoclyConfigSchema: {
|
|
|
12605
12688
|
};
|
|
12606
12689
|
};
|
|
12607
12690
|
readonly additionalProperties: false;
|
|
12691
|
+
readonly not: {
|
|
12692
|
+
readonly required: readonly ['sso', 'idps'];
|
|
12693
|
+
};
|
|
12694
|
+
readonly description: 'Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both.';
|
|
12608
12695
|
};
|
|
12609
12696
|
readonly developerOnboarding: {
|
|
12610
12697
|
readonly type: 'object';
|
|
@@ -26970,6 +27057,9 @@ export declare const redoclyConfigSchema: {
|
|
|
26970
27057
|
readonly documentationLink: 'https://redocly.com/docs/cli/configuration/reference/rules#rules';
|
|
26971
27058
|
};
|
|
26972
27059
|
};
|
|
27060
|
+
readonly not: {
|
|
27061
|
+
readonly required: readonly ['sso', 'idps'];
|
|
27062
|
+
};
|
|
26973
27063
|
readonly default: {
|
|
26974
27064
|
readonly redirects: {};
|
|
26975
27065
|
readonly seo: {
|
|
@@ -26990,6 +27080,9 @@ export declare const redoclyConfigSchema: {
|
|
|
26990
27080
|
};
|
|
26991
27081
|
export declare const rootRedoclyConfigSchema: {
|
|
26992
27082
|
readonly type: 'object';
|
|
27083
|
+
readonly not: {
|
|
27084
|
+
readonly required: readonly ['sso', 'idps'];
|
|
27085
|
+
};
|
|
26993
27086
|
readonly $id: 'root-redocly-config';
|
|
26994
27087
|
readonly properties: {
|
|
26995
27088
|
readonly extends: {
|
|
@@ -32543,12 +32636,34 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
32543
32636
|
readonly type: 'array';
|
|
32544
32637
|
readonly items: {
|
|
32545
32638
|
readonly type: 'string';
|
|
32546
|
-
readonly enum: readonly [
|
|
32639
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
32547
32640
|
};
|
|
32548
32641
|
readonly uniqueItems: true;
|
|
32549
32642
|
}, {
|
|
32550
32643
|
readonly type: 'string';
|
|
32551
|
-
readonly enum: readonly [
|
|
32644
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
32645
|
+
}];
|
|
32646
|
+
};
|
|
32647
|
+
/**
|
|
32648
|
+
* @deprecated Should use `access.idps` instead
|
|
32649
|
+
*/
|
|
32650
|
+
readonly idps: {
|
|
32651
|
+
readonly oneOf: readonly [{
|
|
32652
|
+
readonly type: 'array';
|
|
32653
|
+
readonly items: {
|
|
32654
|
+
readonly type: 'string';
|
|
32655
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
32656
|
+
readonly not: {
|
|
32657
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
32658
|
+
};
|
|
32659
|
+
};
|
|
32660
|
+
readonly uniqueItems: true;
|
|
32661
|
+
}, {
|
|
32662
|
+
readonly type: 'string';
|
|
32663
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
32664
|
+
readonly not: {
|
|
32665
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
32666
|
+
};
|
|
32552
32667
|
}];
|
|
32553
32668
|
};
|
|
32554
32669
|
/**
|
|
@@ -32584,12 +32699,31 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
32584
32699
|
readonly type: 'array';
|
|
32585
32700
|
readonly items: {
|
|
32586
32701
|
readonly type: 'string';
|
|
32587
|
-
readonly enum: readonly [
|
|
32702
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
32588
32703
|
};
|
|
32589
32704
|
readonly uniqueItems: true;
|
|
32590
32705
|
}, {
|
|
32591
32706
|
readonly type: 'string';
|
|
32592
|
-
readonly enum: readonly [
|
|
32707
|
+
readonly enum: readonly ["REDOCLY", "CORPORATE", "GUEST"];
|
|
32708
|
+
}];
|
|
32709
|
+
};
|
|
32710
|
+
readonly idps: {
|
|
32711
|
+
readonly oneOf: readonly [{
|
|
32712
|
+
readonly type: 'array';
|
|
32713
|
+
readonly items: {
|
|
32714
|
+
readonly type: 'string';
|
|
32715
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
32716
|
+
readonly not: {
|
|
32717
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
32718
|
+
};
|
|
32719
|
+
};
|
|
32720
|
+
readonly uniqueItems: true;
|
|
32721
|
+
}, {
|
|
32722
|
+
readonly type: 'string';
|
|
32723
|
+
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
32724
|
+
readonly not: {
|
|
32725
|
+
readonly enum: readonly ["redocly", "corporate", "guest"];
|
|
32726
|
+
};
|
|
32593
32727
|
}];
|
|
32594
32728
|
};
|
|
32595
32729
|
readonly rbac: {
|
|
@@ -32820,6 +32954,10 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
32820
32954
|
};
|
|
32821
32955
|
};
|
|
32822
32956
|
readonly additionalProperties: false;
|
|
32957
|
+
readonly not: {
|
|
32958
|
+
readonly required: readonly ['sso', 'idps'];
|
|
32959
|
+
};
|
|
32960
|
+
readonly description: 'Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both.';
|
|
32823
32961
|
};
|
|
32824
32962
|
readonly developerOnboarding: {
|
|
32825
32963
|
readonly type: 'object';
|
|
@@ -46941,10 +47079,36 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
46941
47079
|
readonly type: 'object';
|
|
46942
47080
|
readonly additionalProperties: {
|
|
46943
47081
|
readonly additionalProperties: false;
|
|
47082
|
+
readonly not: {
|
|
47083
|
+
required: ("idps" | "sso")[];
|
|
47084
|
+
};
|
|
46944
47085
|
readonly properties: {
|
|
46945
47086
|
access: {
|
|
46946
47087
|
additionalProperties: false;
|
|
47088
|
+
description: "Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both.";
|
|
47089
|
+
not: {
|
|
47090
|
+
required: ("idps" | "sso")[];
|
|
47091
|
+
};
|
|
46947
47092
|
properties: {
|
|
47093
|
+
idps: {
|
|
47094
|
+
oneOf: ({
|
|
47095
|
+
not: {
|
|
47096
|
+
enum: ("corporate" | "guest" | "redocly")[];
|
|
47097
|
+
};
|
|
47098
|
+
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
47099
|
+
type: "string";
|
|
47100
|
+
} | {
|
|
47101
|
+
items: {
|
|
47102
|
+
not: {
|
|
47103
|
+
enum: ("corporate" | "guest" | "redocly")[];
|
|
47104
|
+
};
|
|
47105
|
+
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
47106
|
+
type: "string";
|
|
47107
|
+
};
|
|
47108
|
+
type: "array";
|
|
47109
|
+
uniqueItems: true;
|
|
47110
|
+
})[];
|
|
47111
|
+
};
|
|
46948
47112
|
logoutReturnUrl: {
|
|
46949
47113
|
pattern: "^https?://.*";
|
|
46950
47114
|
type: "string";
|
|
@@ -52431,6 +52595,25 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
52431
52595
|
required: "defaultLocale"[];
|
|
52432
52596
|
type: "object";
|
|
52433
52597
|
};
|
|
52598
|
+
idps: {
|
|
52599
|
+
oneOf: ({
|
|
52600
|
+
not: {
|
|
52601
|
+
enum: ("corporate" | "guest" | "redocly")[];
|
|
52602
|
+
};
|
|
52603
|
+
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
52604
|
+
type: "string";
|
|
52605
|
+
} | {
|
|
52606
|
+
items: {
|
|
52607
|
+
not: {
|
|
52608
|
+
enum: ("corporate" | "guest" | "redocly")[];
|
|
52609
|
+
};
|
|
52610
|
+
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
52611
|
+
type: "string";
|
|
52612
|
+
};
|
|
52613
|
+
type: "array";
|
|
52614
|
+
uniqueItems: true;
|
|
52615
|
+
})[];
|
|
52616
|
+
};
|
|
52434
52617
|
ignore: {
|
|
52435
52618
|
items: {
|
|
52436
52619
|
type: "string";
|
|
@@ -33,7 +33,7 @@ export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
|
|
|
33
33
|
export type ScorecardsConfig = FromSchema<typeof scorecardsConfigSchema>;
|
|
34
34
|
export type SearchFacetsConfig = FromSchema<typeof searchFacetsConfigSchema>;
|
|
35
35
|
type RootRedoclyConfig = FromSchema<typeof rootRedoclyConfigSchema>;
|
|
36
|
-
export type RedoclyConfig = Omit<RootRedoclyConfig, 'theme' | 'apis' | 'rbac' | 'requiresLogin' | 'sso' | 'residency' | 'logoutReturnUrl'> & {
|
|
36
|
+
export type RedoclyConfig = Omit<RootRedoclyConfig, 'theme' | 'apis' | 'rbac' | 'requiresLogin' | 'sso' | 'idps' | 'residency' | 'logoutReturnUrl'> & {
|
|
37
37
|
/**
|
|
38
38
|
* @deprecated Should use `access.rbac` instead
|
|
39
39
|
*/
|
|
@@ -46,6 +46,10 @@ export type RedoclyConfig = Omit<RootRedoclyConfig, 'theme' | 'apis' | 'rbac' |
|
|
|
46
46
|
* @deprecated Should use `access.sso` instead
|
|
47
47
|
*/
|
|
48
48
|
sso?: RootRedoclyConfig['sso'];
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Should use `access.idps` instead
|
|
51
|
+
*/
|
|
52
|
+
idps?: RootRedoclyConfig['idps'];
|
|
49
53
|
/**
|
|
50
54
|
* @deprecated Should use `access.residency` instead
|
|
51
55
|
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const IDENTITY_PROVIDER_SLUG_PATTERN = "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
2
|
+
export declare const IDENTITY_PROVIDER_SLUG_REGEX: RegExp;
|
|
3
|
+
export declare const IDENTITY_PROVIDER_SLUG_MESSAGE = "Unique ID must be lowercase letters, numbers, and hyphens only";
|
|
4
|
+
export declare const IDENTITY_PROVIDER_SLUG_MAX_LENGTH = 63;
|
|
5
|
+
export declare const IDENTITY_PROVIDER_SLUG_MAX_LENGTH_MESSAGE = "Unique ID cannot exceed 63 characters";
|
|
6
|
+
export declare const IDENTITY_PROVIDER_RESERVED_SLUGS: readonly ['redocly', 'corporate', 'guest'];
|
|
7
|
+
export declare const IDENTITY_PROVIDER_RESERVED_MESSAGE: string;
|
|
8
|
+
export declare const SSO_LOGIN_TYPES: readonly ['REDOCLY', 'CORPORATE', 'GUEST'];
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ export * from './common.js';
|
|
|
6
6
|
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, DEFAULT_TEAM_CLAIM_NAME, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants/shared.js';
|
|
7
7
|
export { CONFIG_NODE_TYPE_NAMES } from './constants/config.js';
|
|
8
8
|
export { ENTITY_RELATION_TYPES, ENTITY_NODE_TYPE_NAMES } from './constants/entities.js';
|
|
9
|
+
export { IDENTITY_PROVIDER_RESERVED_MESSAGE, IDENTITY_PROVIDER_RESERVED_SLUGS, IDENTITY_PROVIDER_SLUG_MAX_LENGTH, IDENTITY_PROVIDER_SLUG_MAX_LENGTH_MESSAGE, IDENTITY_PROVIDER_SLUG_MESSAGE, IDENTITY_PROVIDER_SLUG_PATTERN, IDENTITY_PROVIDER_SLUG_REGEX, } from './constants/identity-provider-slug.js';
|
|
9
10
|
export * from './entities-catalog-entity-file-schema.js';
|