@redocly/config 0.51.0 → 0.53.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 +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/root-config-schema.d.ts +118 -55
- package/lib/types/config-types.d.ts +2 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/mock-server-types.d.ts +59 -0
- package/lib/types/portal-shared-types.d.ts +1 -0
- package/lib-esm/constants/identity-provider-slug.d.ts +2 -1
- package/lib-esm/index.d.ts +1 -1
- package/lib-esm/index.js +1 -1
- package/lib-esm/root-config-schema.d.ts +118 -55
- package/lib-esm/types/config-types.d.ts +2 -1
- package/lib-esm/types/index.d.ts +1 -0
- package/lib-esm/types/mock-server-types.d.ts +59 -0
- package/lib-esm/types/portal-shared-types.d.ts +1 -0
- package/package.json +5 -5
|
@@ -463,7 +463,7 @@ export declare const idpsConfigSchema: {
|
|
|
463
463
|
readonly type: 'string';
|
|
464
464
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
465
465
|
readonly not: {
|
|
466
|
-
readonly enum:
|
|
466
|
+
readonly enum: ("corporate" | "guest")[];
|
|
467
467
|
};
|
|
468
468
|
};
|
|
469
469
|
readonly uniqueItems: true;
|
|
@@ -471,7 +471,7 @@ export declare const idpsConfigSchema: {
|
|
|
471
471
|
readonly type: 'string';
|
|
472
472
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
473
473
|
readonly not: {
|
|
474
|
-
readonly enum:
|
|
474
|
+
readonly enum: ("corporate" | "guest")[];
|
|
475
475
|
};
|
|
476
476
|
}];
|
|
477
477
|
};
|
|
@@ -5786,6 +5786,12 @@ export declare const rbacConfigSchema: {
|
|
|
5786
5786
|
readonly type: 'string';
|
|
5787
5787
|
};
|
|
5788
5788
|
};
|
|
5789
|
+
readonly mcp: {
|
|
5790
|
+
readonly type: 'object';
|
|
5791
|
+
readonly additionalProperties: {
|
|
5792
|
+
readonly type: 'string';
|
|
5793
|
+
};
|
|
5794
|
+
};
|
|
5789
5795
|
};
|
|
5790
5796
|
readonly additionalProperties: false;
|
|
5791
5797
|
};
|
|
@@ -6428,6 +6434,21 @@ export declare const l10nConfigSchema: {
|
|
|
6428
6434
|
readonly additionalProperties: false;
|
|
6429
6435
|
readonly required: readonly ["defaultLocale"];
|
|
6430
6436
|
};
|
|
6437
|
+
export declare const skillsConfigSchema: {
|
|
6438
|
+
readonly type: 'object';
|
|
6439
|
+
readonly properties: {
|
|
6440
|
+
readonly hide: {
|
|
6441
|
+
readonly type: 'boolean';
|
|
6442
|
+
};
|
|
6443
|
+
readonly excludeFiles: {
|
|
6444
|
+
readonly type: 'array';
|
|
6445
|
+
readonly items: {
|
|
6446
|
+
readonly type: 'string';
|
|
6447
|
+
};
|
|
6448
|
+
};
|
|
6449
|
+
};
|
|
6450
|
+
readonly additionalProperties: false;
|
|
6451
|
+
};
|
|
6431
6452
|
export declare const accessConfigSchema: {
|
|
6432
6453
|
readonly type: 'object';
|
|
6433
6454
|
readonly properties: {
|
|
@@ -6462,7 +6483,7 @@ export declare const accessConfigSchema: {
|
|
|
6462
6483
|
readonly type: 'string';
|
|
6463
6484
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
6464
6485
|
readonly not: {
|
|
6465
|
-
readonly enum:
|
|
6486
|
+
readonly enum: ("corporate" | "guest")[];
|
|
6466
6487
|
};
|
|
6467
6488
|
};
|
|
6468
6489
|
readonly uniqueItems: true;
|
|
@@ -6470,7 +6491,7 @@ export declare const accessConfigSchema: {
|
|
|
6470
6491
|
readonly type: 'string';
|
|
6471
6492
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
6472
6493
|
readonly not: {
|
|
6473
|
-
readonly enum:
|
|
6494
|
+
readonly enum: ("corporate" | "guest")[];
|
|
6474
6495
|
};
|
|
6475
6496
|
}];
|
|
6476
6497
|
};
|
|
@@ -6516,6 +6537,12 @@ export declare const accessConfigSchema: {
|
|
|
6516
6537
|
readonly type: 'string';
|
|
6517
6538
|
};
|
|
6518
6539
|
};
|
|
6540
|
+
readonly mcp: {
|
|
6541
|
+
readonly type: 'object';
|
|
6542
|
+
readonly additionalProperties: {
|
|
6543
|
+
readonly type: 'string';
|
|
6544
|
+
};
|
|
6545
|
+
};
|
|
6519
6546
|
};
|
|
6520
6547
|
readonly additionalProperties: false;
|
|
6521
6548
|
};
|
|
@@ -7177,6 +7204,12 @@ export declare const redoclyConfigSchema: {
|
|
|
7177
7204
|
readonly type: 'string';
|
|
7178
7205
|
};
|
|
7179
7206
|
};
|
|
7207
|
+
readonly mcp: {
|
|
7208
|
+
readonly type: 'object';
|
|
7209
|
+
readonly additionalProperties: {
|
|
7210
|
+
readonly type: 'string';
|
|
7211
|
+
};
|
|
7212
|
+
};
|
|
7180
7213
|
};
|
|
7181
7214
|
readonly additionalProperties: false;
|
|
7182
7215
|
};
|
|
@@ -12457,7 +12490,7 @@ export declare const redoclyConfigSchema: {
|
|
|
12457
12490
|
readonly type: 'string';
|
|
12458
12491
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
12459
12492
|
readonly not: {
|
|
12460
|
-
readonly enum:
|
|
12493
|
+
readonly enum: ("corporate" | "guest")[];
|
|
12461
12494
|
};
|
|
12462
12495
|
};
|
|
12463
12496
|
readonly uniqueItems: true;
|
|
@@ -12465,7 +12498,7 @@ export declare const redoclyConfigSchema: {
|
|
|
12465
12498
|
readonly type: 'string';
|
|
12466
12499
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
12467
12500
|
readonly not: {
|
|
12468
|
-
readonly enum:
|
|
12501
|
+
readonly enum: ("corporate" | "guest")[];
|
|
12469
12502
|
};
|
|
12470
12503
|
}];
|
|
12471
12504
|
};
|
|
@@ -12517,7 +12550,7 @@ export declare const redoclyConfigSchema: {
|
|
|
12517
12550
|
readonly type: 'string';
|
|
12518
12551
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
12519
12552
|
readonly not: {
|
|
12520
|
-
readonly enum:
|
|
12553
|
+
readonly enum: ("corporate" | "guest")[];
|
|
12521
12554
|
};
|
|
12522
12555
|
};
|
|
12523
12556
|
readonly uniqueItems: true;
|
|
@@ -12525,7 +12558,7 @@ export declare const redoclyConfigSchema: {
|
|
|
12525
12558
|
readonly type: 'string';
|
|
12526
12559
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
12527
12560
|
readonly not: {
|
|
12528
|
-
readonly enum:
|
|
12561
|
+
readonly enum: ("corporate" | "guest")[];
|
|
12529
12562
|
};
|
|
12530
12563
|
}];
|
|
12531
12564
|
};
|
|
@@ -12571,6 +12604,12 @@ export declare const redoclyConfigSchema: {
|
|
|
12571
12604
|
readonly type: 'string';
|
|
12572
12605
|
};
|
|
12573
12606
|
};
|
|
12607
|
+
readonly mcp: {
|
|
12608
|
+
readonly type: 'object';
|
|
12609
|
+
readonly additionalProperties: {
|
|
12610
|
+
readonly type: 'string';
|
|
12611
|
+
};
|
|
12612
|
+
};
|
|
12574
12613
|
};
|
|
12575
12614
|
readonly additionalProperties: false;
|
|
12576
12615
|
};
|
|
@@ -26662,20 +26701,20 @@ export declare const redoclyConfigSchema: {
|
|
|
26662
26701
|
};
|
|
26663
26702
|
readonly additionalProperties: false;
|
|
26664
26703
|
};
|
|
26665
|
-
|
|
26666
|
-
|
|
26667
|
-
|
|
26668
|
-
|
|
26669
|
-
|
|
26670
|
-
|
|
26671
|
-
|
|
26672
|
-
|
|
26673
|
-
|
|
26674
|
-
|
|
26675
|
-
|
|
26676
|
-
|
|
26704
|
+
};
|
|
26705
|
+
readonly additionalProperties: false;
|
|
26706
|
+
};
|
|
26707
|
+
readonly skills: {
|
|
26708
|
+
readonly type: 'object';
|
|
26709
|
+
readonly properties: {
|
|
26710
|
+
readonly hide: {
|
|
26711
|
+
readonly type: 'boolean';
|
|
26712
|
+
};
|
|
26713
|
+
readonly excludeFiles: {
|
|
26714
|
+
readonly type: 'array';
|
|
26715
|
+
readonly items: {
|
|
26716
|
+
readonly type: 'string';
|
|
26677
26717
|
};
|
|
26678
|
-
readonly additionalProperties: false;
|
|
26679
26718
|
};
|
|
26680
26719
|
};
|
|
26681
26720
|
readonly additionalProperties: false;
|
|
@@ -27212,6 +27251,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
27212
27251
|
readonly type: 'string';
|
|
27213
27252
|
};
|
|
27214
27253
|
};
|
|
27254
|
+
readonly mcp: {
|
|
27255
|
+
readonly type: 'object';
|
|
27256
|
+
readonly additionalProperties: {
|
|
27257
|
+
readonly type: 'string';
|
|
27258
|
+
};
|
|
27259
|
+
};
|
|
27215
27260
|
};
|
|
27216
27261
|
readonly additionalProperties: false;
|
|
27217
27262
|
};
|
|
@@ -32492,7 +32537,7 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
32492
32537
|
readonly type: 'string';
|
|
32493
32538
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
32494
32539
|
readonly not: {
|
|
32495
|
-
readonly enum:
|
|
32540
|
+
readonly enum: ("corporate" | "guest")[];
|
|
32496
32541
|
};
|
|
32497
32542
|
};
|
|
32498
32543
|
readonly uniqueItems: true;
|
|
@@ -32500,7 +32545,7 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
32500
32545
|
readonly type: 'string';
|
|
32501
32546
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
32502
32547
|
readonly not: {
|
|
32503
|
-
readonly enum:
|
|
32548
|
+
readonly enum: ("corporate" | "guest")[];
|
|
32504
32549
|
};
|
|
32505
32550
|
}];
|
|
32506
32551
|
};
|
|
@@ -32552,7 +32597,7 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
32552
32597
|
readonly type: 'string';
|
|
32553
32598
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
32554
32599
|
readonly not: {
|
|
32555
|
-
readonly enum:
|
|
32600
|
+
readonly enum: ("corporate" | "guest")[];
|
|
32556
32601
|
};
|
|
32557
32602
|
};
|
|
32558
32603
|
readonly uniqueItems: true;
|
|
@@ -32560,7 +32605,7 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
32560
32605
|
readonly type: 'string';
|
|
32561
32606
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
32562
32607
|
readonly not: {
|
|
32563
|
-
readonly enum:
|
|
32608
|
+
readonly enum: ("corporate" | "guest")[];
|
|
32564
32609
|
};
|
|
32565
32610
|
}];
|
|
32566
32611
|
};
|
|
@@ -32606,6 +32651,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
32606
32651
|
readonly type: 'string';
|
|
32607
32652
|
};
|
|
32608
32653
|
};
|
|
32654
|
+
readonly mcp: {
|
|
32655
|
+
readonly type: 'object';
|
|
32656
|
+
readonly additionalProperties: {
|
|
32657
|
+
readonly type: 'string';
|
|
32658
|
+
};
|
|
32659
|
+
};
|
|
32609
32660
|
};
|
|
32610
32661
|
readonly additionalProperties: false;
|
|
32611
32662
|
};
|
|
@@ -46697,20 +46748,20 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
46697
46748
|
};
|
|
46698
46749
|
readonly additionalProperties: false;
|
|
46699
46750
|
};
|
|
46700
|
-
|
|
46701
|
-
|
|
46702
|
-
|
|
46703
|
-
|
|
46704
|
-
|
|
46705
|
-
|
|
46706
|
-
|
|
46707
|
-
|
|
46708
|
-
|
|
46709
|
-
|
|
46710
|
-
|
|
46711
|
-
|
|
46751
|
+
};
|
|
46752
|
+
readonly additionalProperties: false;
|
|
46753
|
+
};
|
|
46754
|
+
readonly skills: {
|
|
46755
|
+
readonly type: 'object';
|
|
46756
|
+
readonly properties: {
|
|
46757
|
+
readonly hide: {
|
|
46758
|
+
readonly type: 'boolean';
|
|
46759
|
+
};
|
|
46760
|
+
readonly excludeFiles: {
|
|
46761
|
+
readonly type: 'array';
|
|
46762
|
+
readonly items: {
|
|
46763
|
+
readonly type: 'string';
|
|
46712
46764
|
};
|
|
46713
|
-
readonly additionalProperties: false;
|
|
46714
46765
|
};
|
|
46715
46766
|
};
|
|
46716
46767
|
readonly additionalProperties: false;
|
|
@@ -47245,6 +47296,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
47245
47296
|
readonly type: 'string';
|
|
47246
47297
|
};
|
|
47247
47298
|
};
|
|
47299
|
+
readonly mcp: {
|
|
47300
|
+
readonly type: 'object';
|
|
47301
|
+
readonly additionalProperties: {
|
|
47302
|
+
readonly type: 'string';
|
|
47303
|
+
};
|
|
47304
|
+
};
|
|
47248
47305
|
};
|
|
47249
47306
|
readonly additionalProperties: false;
|
|
47250
47307
|
};
|
|
@@ -52525,7 +52582,7 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
52525
52582
|
readonly type: 'string';
|
|
52526
52583
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
52527
52584
|
readonly not: {
|
|
52528
|
-
readonly enum:
|
|
52585
|
+
readonly enum: ("corporate" | "guest")[];
|
|
52529
52586
|
};
|
|
52530
52587
|
};
|
|
52531
52588
|
readonly uniqueItems: true;
|
|
@@ -52533,7 +52590,7 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
52533
52590
|
readonly type: 'string';
|
|
52534
52591
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
52535
52592
|
readonly not: {
|
|
52536
|
-
readonly enum:
|
|
52593
|
+
readonly enum: ("corporate" | "guest")[];
|
|
52537
52594
|
};
|
|
52538
52595
|
}];
|
|
52539
52596
|
};
|
|
@@ -52585,7 +52642,7 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
52585
52642
|
readonly type: 'string';
|
|
52586
52643
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
52587
52644
|
readonly not: {
|
|
52588
|
-
readonly enum:
|
|
52645
|
+
readonly enum: ("corporate" | "guest")[];
|
|
52589
52646
|
};
|
|
52590
52647
|
};
|
|
52591
52648
|
readonly uniqueItems: true;
|
|
@@ -52593,7 +52650,7 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
52593
52650
|
readonly type: 'string';
|
|
52594
52651
|
readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
52595
52652
|
readonly not: {
|
|
52596
|
-
readonly enum:
|
|
52653
|
+
readonly enum: ("corporate" | "guest")[];
|
|
52597
52654
|
};
|
|
52598
52655
|
}];
|
|
52599
52656
|
};
|
|
@@ -52639,6 +52696,12 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
52639
52696
|
readonly type: 'string';
|
|
52640
52697
|
};
|
|
52641
52698
|
};
|
|
52699
|
+
readonly mcp: {
|
|
52700
|
+
readonly type: 'object';
|
|
52701
|
+
readonly additionalProperties: {
|
|
52702
|
+
readonly type: 'string';
|
|
52703
|
+
};
|
|
52704
|
+
};
|
|
52642
52705
|
};
|
|
52643
52706
|
readonly additionalProperties: false;
|
|
52644
52707
|
};
|
|
@@ -66730,20 +66793,20 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
66730
66793
|
};
|
|
66731
66794
|
readonly additionalProperties: false;
|
|
66732
66795
|
};
|
|
66733
|
-
|
|
66734
|
-
|
|
66735
|
-
|
|
66736
|
-
|
|
66737
|
-
|
|
66738
|
-
|
|
66739
|
-
|
|
66740
|
-
|
|
66741
|
-
|
|
66742
|
-
|
|
66743
|
-
|
|
66744
|
-
|
|
66796
|
+
};
|
|
66797
|
+
readonly additionalProperties: false;
|
|
66798
|
+
};
|
|
66799
|
+
readonly skills: {
|
|
66800
|
+
readonly type: 'object';
|
|
66801
|
+
readonly properties: {
|
|
66802
|
+
readonly hide: {
|
|
66803
|
+
readonly type: 'boolean';
|
|
66804
|
+
};
|
|
66805
|
+
readonly excludeFiles: {
|
|
66806
|
+
readonly type: 'array';
|
|
66807
|
+
readonly items: {
|
|
66808
|
+
readonly type: 'string';
|
|
66745
66809
|
};
|
|
66746
|
-
readonly additionalProperties: false;
|
|
66747
66810
|
};
|
|
66748
66811
|
};
|
|
66749
66812
|
readonly additionalProperties: false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
2
|
import type { themeConfigSchema } from '../default-theme-config-schema.js';
|
|
3
3
|
import type { productConfigOverrideSchema } from '../product-override-schema.js';
|
|
4
|
-
import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, l10nConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, bannerConfigSchema, bannersConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoDirectConfigSchema } from '../root-config-schema.js';
|
|
4
|
+
import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, l10nConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, skillsConfigSchema, bannerConfigSchema, bannersConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoDirectConfigSchema } from '../root-config-schema.js';
|
|
5
5
|
import type { RedocConfigTypes } from './redoc-types.js';
|
|
6
6
|
import type { GraphQLConfigTypes } from './graphql-types.js';
|
|
7
7
|
import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from '../ex-theme-config-schemas.js';
|
|
@@ -32,6 +32,7 @@ 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 SkillsConfig = FromSchema<typeof skillsConfigSchema>;
|
|
35
36
|
type RootRedoclyConfig = FromSchema<typeof rootRedoclyConfigSchema>;
|
|
36
37
|
export type RedoclyConfig = Omit<RootRedoclyConfig, 'theme' | 'apis' | 'rbac' | 'requiresLogin' | 'sso' | 'idps' | 'residency' | 'logoutReturnUrl'> & {
|
|
37
38
|
/**
|
package/lib/types/index.d.ts
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { ApiFunctionsContext } from './api-functions-types.js';
|
|
2
|
+
export type HttpMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
|
|
3
|
+
export interface MockSnippetRequest {
|
|
4
|
+
readonly method: HttpMethod;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly params: Record<string, unknown>;
|
|
7
|
+
readonly query: Record<string, unknown>;
|
|
8
|
+
readonly headers: Record<string, string>;
|
|
9
|
+
readonly body?: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface MockSnippetState {
|
|
12
|
+
get<T>(resource: string, id: string | number): Promise<T | null>;
|
|
13
|
+
list<T>(resource: string): Promise<T[]>;
|
|
14
|
+
set<T>(resource: string, id: string | number, value: T): Promise<void>;
|
|
15
|
+
delete(resource: string, id: string | number): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
export interface MockSnippetContext {
|
|
18
|
+
request: MockSnippetRequest;
|
|
19
|
+
state: MockSnippetState;
|
|
20
|
+
}
|
|
21
|
+
export interface MockSnippetResult {
|
|
22
|
+
status: number;
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
body?: unknown;
|
|
25
|
+
}
|
|
26
|
+
export interface MockJsExecutorOptions {
|
|
27
|
+
timeoutMs?: number;
|
|
28
|
+
maxLifetimeMs?: number;
|
|
29
|
+
}
|
|
30
|
+
export interface MockJsExecutor {
|
|
31
|
+
run(snippet: string, context: MockSnippetContext, opts?: MockJsExecutorOptions): Promise<MockSnippetResult>;
|
|
32
|
+
}
|
|
33
|
+
export type MockKey = (string | number)[];
|
|
34
|
+
export interface MockStateSetOptions {
|
|
35
|
+
ttlSeconds?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface MockStateListOptions {
|
|
38
|
+
limit?: number;
|
|
39
|
+
cursor?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface MockStateListItem<T> {
|
|
42
|
+
key: MockKey;
|
|
43
|
+
value: T;
|
|
44
|
+
}
|
|
45
|
+
export interface MockStateListResult<T> {
|
|
46
|
+
items: MockStateListItem<T>[];
|
|
47
|
+
total?: number;
|
|
48
|
+
cursor: string | null;
|
|
49
|
+
}
|
|
50
|
+
export interface MockStateStore {
|
|
51
|
+
get<T>(key: MockKey): Promise<T | null>;
|
|
52
|
+
set<T>(key: MockKey, value: T, opts?: MockStateSetOptions): Promise<void>;
|
|
53
|
+
delete(key: MockKey): Promise<void>;
|
|
54
|
+
list<T>(prefix: MockKey, opts?: MockStateListOptions): Promise<MockStateListResult<T>>;
|
|
55
|
+
}
|
|
56
|
+
export type MockServerRouteContext = ApiFunctionsContext & {
|
|
57
|
+
executor?: MockJsExecutor;
|
|
58
|
+
store?: MockStateStore;
|
|
59
|
+
};
|
|
@@ -109,6 +109,7 @@ export type ResolvedNavItem = ResolvedNavLinkItem | ResolvedNavGroupItem | {
|
|
|
109
109
|
isDefault?: boolean;
|
|
110
110
|
versionFolderId?: string;
|
|
111
111
|
variant?: 'primary' | 'secondary';
|
|
112
|
+
hideWhenEmpty?: boolean;
|
|
112
113
|
separatorLine?: boolean;
|
|
113
114
|
linePosition?: 'top' | 'bottom';
|
|
114
115
|
link?: undefined;
|
|
@@ -3,6 +3,7 @@ export declare const IDENTITY_PROVIDER_SLUG_REGEX: RegExp;
|
|
|
3
3
|
export declare const IDENTITY_PROVIDER_SLUG_MESSAGE = "Unique ID must be lowercase letters, numbers, and hyphens only";
|
|
4
4
|
export declare const IDENTITY_PROVIDER_SLUG_MAX_LENGTH = 63;
|
|
5
5
|
export declare const IDENTITY_PROVIDER_SLUG_MAX_LENGTH_MESSAGE = "Unique ID cannot exceed 63 characters";
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const REDOCLY_IDP_SLUG = "redocly";
|
|
7
|
+
export declare const IDENTITY_PROVIDER_RESERVED_SLUGS: readonly ["redocly", 'corporate', 'guest'];
|
|
7
8
|
export declare const IDENTITY_PROVIDER_RESERVED_MESSAGE: string;
|
|
8
9
|
export declare const SSO_LOGIN_TYPES: readonly ['REDOCLY', 'CORPORATE', 'GUEST'];
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export * from './common.js';
|
|
|
6
6
|
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, DEFAULT_TEAM_CLAIM_NAME, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, DEFAULT_SEARCH_ENGINE, } 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
|
+
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, REDOCLY_IDP_SLUG, } from './constants/identity-provider-slug.js';
|
|
10
10
|
export * from './entities-catalog-entity-file-schema.js';
|