@redocly/config 0.41.2 → 0.41.4

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.
@@ -14,3 +14,25 @@ export declare enum LayoutVariant {
14
14
  THREE_PANEL = "three-panel"
15
15
  }
16
16
  export declare const ENTITY_RELATION_TYPES: readonly ["partOf", "hasParts", "creates", "createdBy", "owns", "ownedBy", "implements", "implementedBy", "dependsOn", "dependencyOf", "uses", "usedBy", "produces", "consumes", "linksTo", "supersedes", "supersededBy", "compatibleWith", "extends", "extendedBy", "relatesTo", "hasMember", "memberOf", "triggers", "triggeredBy", "returns", "returnedBy"];
17
+ export declare const NODE_TYPE_NAMES: {
18
+ readonly USER_ENTITY: "UserEntity";
19
+ readonly USER_ENTITY_METADATA: "UserEntityMetadata";
20
+ readonly API_DESCRIPTION_ENTITY: "ApiDescriptionEntity";
21
+ readonly API_DESCRIPTION_METADATA: "ApiDescriptionEntityMetadata";
22
+ readonly API_OPERATION_ENTITY: "ApiOperationEntity";
23
+ readonly API_OPERATION_METADATA: "ApiOperationEntityMetadata";
24
+ readonly DATA_SCHEMA_ENTITY: "DataSchemaEntity";
25
+ readonly DATA_SCHEMA_METADATA: "DataSchemaEntityMetadata";
26
+ readonly SERVICE_ENTITY: "ServiceEntity";
27
+ readonly DOMAIN_ENTITY: "DomainEntity";
28
+ readonly TEAM_ENTITY: "TeamEntity";
29
+ readonly ENTITY: "Entity";
30
+ readonly ENTITY_METADATA: "EntityMetadata";
31
+ readonly ENTITY_LINK_LIST: "EntityLinkList";
32
+ readonly ENTITY_LINK: "EntityLink";
33
+ readonly ENTITY_RELATION: "EntityRelation";
34
+ readonly ENTITY_RELATION_LIST: "EntityRelationList";
35
+ readonly ENTITY_CONTACT: "EntityContact";
36
+ readonly SLACK_CONTACT: "EntitySlackContact";
37
+ readonly SLACK_CHANNEL: "EntitySlackChannel";
38
+ };
package/lib/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ENTITY_RELATION_TYPES = exports.LayoutVariant = exports.REDOCLY_ROUTE_RBAC = exports.REDOCLY_TEAMS_RBAC = exports.ApigeeDevOnboardingIntegrationAuthType = exports.AuthProviderType = exports.DEFAULT_TEAM_CLAIM_NAME = void 0;
3
+ exports.NODE_TYPE_NAMES = exports.ENTITY_RELATION_TYPES = exports.LayoutVariant = exports.REDOCLY_ROUTE_RBAC = exports.REDOCLY_TEAMS_RBAC = exports.ApigeeDevOnboardingIntegrationAuthType = exports.AuthProviderType = exports.DEFAULT_TEAM_CLAIM_NAME = void 0;
4
4
  exports.DEFAULT_TEAM_CLAIM_NAME = 'https://redocly.com/sso/teams';
5
5
  var AuthProviderType;
6
6
  (function (AuthProviderType) {
@@ -48,4 +48,26 @@ exports.ENTITY_RELATION_TYPES = [
48
48
  'returns',
49
49
  'returnedBy',
50
50
  ];
51
+ exports.NODE_TYPE_NAMES = {
52
+ USER_ENTITY: 'UserEntity',
53
+ USER_ENTITY_METADATA: 'UserEntityMetadata',
54
+ API_DESCRIPTION_ENTITY: 'ApiDescriptionEntity',
55
+ API_DESCRIPTION_METADATA: 'ApiDescriptionEntityMetadata',
56
+ API_OPERATION_ENTITY: 'ApiOperationEntity',
57
+ API_OPERATION_METADATA: 'ApiOperationEntityMetadata',
58
+ DATA_SCHEMA_ENTITY: 'DataSchemaEntity',
59
+ DATA_SCHEMA_METADATA: 'DataSchemaEntityMetadata',
60
+ SERVICE_ENTITY: 'ServiceEntity',
61
+ DOMAIN_ENTITY: 'DomainEntity',
62
+ TEAM_ENTITY: 'TeamEntity',
63
+ ENTITY: 'Entity',
64
+ ENTITY_METADATA: 'EntityMetadata',
65
+ ENTITY_LINK_LIST: 'EntityLinkList',
66
+ ENTITY_LINK: 'EntityLink',
67
+ ENTITY_RELATION: 'EntityRelation',
68
+ ENTITY_RELATION_LIST: 'EntityRelationList',
69
+ ENTITY_CONTACT: 'EntityContact',
70
+ SLACK_CONTACT: 'EntitySlackContact',
71
+ SLACK_CHANNEL: 'EntitySlackChannel',
72
+ };
51
73
  //# sourceMappingURL=constants.js.map
@@ -5615,6 +5615,9 @@ export declare const themeConfigSchema: {
5615
5615
  readonly name: {
5616
5616
  readonly type: "string";
5617
5617
  };
5618
+ readonly key: {
5619
+ readonly type: "string";
5620
+ };
5618
5621
  readonly description: {
5619
5622
  readonly type: "string";
5620
5623
  };
@@ -5630,7 +5633,7 @@ export declare const themeConfigSchema: {
5630
5633
  };
5631
5634
  readonly operator: {
5632
5635
  readonly type: "string";
5633
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5636
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5634
5637
  };
5635
5638
  readonly value: {
5636
5639
  readonly oneOf: readonly [{
@@ -5641,6 +5644,10 @@ export declare const themeConfigSchema: {
5641
5644
  readonly type: "number";
5642
5645
  }];
5643
5646
  };
5647
+ readonly modifier: {
5648
+ readonly type: "string";
5649
+ readonly enum: readonly ["not"];
5650
+ };
5644
5651
  readonly match: {
5645
5652
  readonly type: "array";
5646
5653
  readonly items: {
@@ -5651,7 +5658,7 @@ export declare const themeConfigSchema: {
5651
5658
  };
5652
5659
  readonly operator: {
5653
5660
  readonly type: "string";
5654
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5661
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5655
5662
  };
5656
5663
  readonly value: {
5657
5664
  readonly oneOf: readonly [{
@@ -5662,6 +5669,10 @@ export declare const themeConfigSchema: {
5662
5669
  readonly type: "number";
5663
5670
  }];
5664
5671
  };
5672
+ readonly modifier: {
5673
+ readonly type: "string";
5674
+ readonly enum: readonly ["not"];
5675
+ };
5665
5676
  };
5666
5677
  };
5667
5678
  };
@@ -5671,7 +5682,7 @@ export declare const themeConfigSchema: {
5671
5682
  readonly properties: {
5672
5683
  readonly operator: {
5673
5684
  readonly type: "string";
5674
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5685
+ readonly enum: readonly ["and", "or"];
5675
5686
  };
5676
5687
  readonly conditions: {
5677
5688
  readonly type: "array";
@@ -5684,7 +5695,7 @@ export declare const themeConfigSchema: {
5684
5695
  };
5685
5696
  readonly operator: {
5686
5697
  readonly type: "string";
5687
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5698
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5688
5699
  };
5689
5700
  readonly value: {
5690
5701
  readonly oneOf: readonly [{
@@ -5695,6 +5706,10 @@ export declare const themeConfigSchema: {
5695
5706
  readonly type: "number";
5696
5707
  }];
5697
5708
  };
5709
+ readonly modifier: {
5710
+ readonly type: "string";
5711
+ readonly enum: readonly ["not"];
5712
+ };
5698
5713
  readonly match: {
5699
5714
  readonly type: "array";
5700
5715
  readonly items: {
@@ -5705,7 +5720,7 @@ export declare const themeConfigSchema: {
5705
5720
  };
5706
5721
  readonly operator: {
5707
5722
  readonly type: "string";
5708
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5723
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5709
5724
  };
5710
5725
  readonly value: {
5711
5726
  readonly oneOf: readonly [{
@@ -5716,6 +5731,10 @@ export declare const themeConfigSchema: {
5716
5731
  readonly type: "number";
5717
5732
  }];
5718
5733
  };
5734
+ readonly modifier: {
5735
+ readonly type: "string";
5736
+ readonly enum: readonly ["not"];
5737
+ };
5719
5738
  };
5720
5739
  };
5721
5740
  };
@@ -5725,7 +5744,7 @@ export declare const themeConfigSchema: {
5725
5744
  readonly properties: {
5726
5745
  readonly operator: {
5727
5746
  readonly type: "string";
5728
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5747
+ readonly enum: readonly ["and", "or"];
5729
5748
  };
5730
5749
  readonly conditions: {
5731
5750
  readonly type: "array";
@@ -5737,7 +5756,7 @@ export declare const themeConfigSchema: {
5737
5756
  };
5738
5757
  readonly operator: {
5739
5758
  readonly type: "string";
5740
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5759
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5741
5760
  };
5742
5761
  readonly value: {
5743
5762
  readonly oneOf: readonly [{
@@ -5748,6 +5767,10 @@ export declare const themeConfigSchema: {
5748
5767
  readonly type: "number";
5749
5768
  }];
5750
5769
  };
5770
+ readonly modifier: {
5771
+ readonly type: "string";
5772
+ readonly enum: readonly ["not"];
5773
+ };
5751
5774
  readonly match: {
5752
5775
  readonly type: "array";
5753
5776
  readonly items: {
@@ -5758,7 +5781,7 @@ export declare const themeConfigSchema: {
5758
5781
  };
5759
5782
  readonly operator: {
5760
5783
  readonly type: "string";
5761
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5784
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5762
5785
  };
5763
5786
  readonly value: {
5764
5787
  readonly oneOf: readonly [{
@@ -5769,6 +5792,10 @@ export declare const themeConfigSchema: {
5769
5792
  readonly type: "number";
5770
5793
  }];
5771
5794
  };
5795
+ readonly modifier: {
5796
+ readonly type: "string";
5797
+ readonly enum: readonly ["not"];
5798
+ };
5772
5799
  };
5773
5800
  };
5774
5801
  };
@@ -5791,7 +5818,7 @@ export declare const themeConfigSchema: {
5791
5818
  readonly properties: {
5792
5819
  readonly operator: {
5793
5820
  readonly type: "string";
5794
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5821
+ readonly enum: readonly ["and", "or"];
5795
5822
  };
5796
5823
  readonly conditions: {
5797
5824
  readonly type: "array";
@@ -5804,7 +5831,7 @@ export declare const themeConfigSchema: {
5804
5831
  };
5805
5832
  readonly operator: {
5806
5833
  readonly type: "string";
5807
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5834
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5808
5835
  };
5809
5836
  readonly value: {
5810
5837
  readonly oneOf: readonly [{
@@ -5815,6 +5842,10 @@ export declare const themeConfigSchema: {
5815
5842
  readonly type: "number";
5816
5843
  }];
5817
5844
  };
5845
+ readonly modifier: {
5846
+ readonly type: "string";
5847
+ readonly enum: readonly ["not"];
5848
+ };
5818
5849
  readonly match: {
5819
5850
  readonly type: "array";
5820
5851
  readonly items: {
@@ -5825,7 +5856,7 @@ export declare const themeConfigSchema: {
5825
5856
  };
5826
5857
  readonly operator: {
5827
5858
  readonly type: "string";
5828
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5859
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5829
5860
  };
5830
5861
  readonly value: {
5831
5862
  readonly oneOf: readonly [{
@@ -5836,6 +5867,10 @@ export declare const themeConfigSchema: {
5836
5867
  readonly type: "number";
5837
5868
  }];
5838
5869
  };
5870
+ readonly modifier: {
5871
+ readonly type: "string";
5872
+ readonly enum: readonly ["not"];
5873
+ };
5839
5874
  };
5840
5875
  };
5841
5876
  };
@@ -5845,7 +5880,7 @@ export declare const themeConfigSchema: {
5845
5880
  readonly properties: {
5846
5881
  readonly operator: {
5847
5882
  readonly type: "string";
5848
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5883
+ readonly enum: readonly ["and", "or"];
5849
5884
  };
5850
5885
  readonly conditions: {
5851
5886
  readonly type: "array";
@@ -5858,7 +5893,7 @@ export declare const themeConfigSchema: {
5858
5893
  };
5859
5894
  readonly operator: {
5860
5895
  readonly type: "string";
5861
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5896
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5862
5897
  };
5863
5898
  readonly value: {
5864
5899
  readonly oneOf: readonly [{
@@ -5869,6 +5904,10 @@ export declare const themeConfigSchema: {
5869
5904
  readonly type: "number";
5870
5905
  }];
5871
5906
  };
5907
+ readonly modifier: {
5908
+ readonly type: "string";
5909
+ readonly enum: readonly ["not"];
5910
+ };
5872
5911
  readonly match: {
5873
5912
  readonly type: "array";
5874
5913
  readonly items: {
@@ -5879,7 +5918,7 @@ export declare const themeConfigSchema: {
5879
5918
  };
5880
5919
  readonly operator: {
5881
5920
  readonly type: "string";
5882
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5921
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5883
5922
  };
5884
5923
  readonly value: {
5885
5924
  readonly oneOf: readonly [{
@@ -5890,6 +5929,10 @@ export declare const themeConfigSchema: {
5890
5929
  readonly type: "number";
5891
5930
  }];
5892
5931
  };
5932
+ readonly modifier: {
5933
+ readonly type: "string";
5934
+ readonly enum: readonly ["not"];
5935
+ };
5893
5936
  };
5894
5937
  };
5895
5938
  };
@@ -5899,7 +5942,7 @@ export declare const themeConfigSchema: {
5899
5942
  readonly properties: {
5900
5943
  readonly operator: {
5901
5944
  readonly type: "string";
5902
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5945
+ readonly enum: readonly ["and", "or"];
5903
5946
  };
5904
5947
  readonly conditions: {
5905
5948
  readonly type: "array";
@@ -5911,7 +5954,7 @@ export declare const themeConfigSchema: {
5911
5954
  };
5912
5955
  readonly operator: {
5913
5956
  readonly type: "string";
5914
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5957
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5915
5958
  };
5916
5959
  readonly value: {
5917
5960
  readonly oneOf: readonly [{
@@ -5922,6 +5965,10 @@ export declare const themeConfigSchema: {
5922
5965
  readonly type: "number";
5923
5966
  }];
5924
5967
  };
5968
+ readonly modifier: {
5969
+ readonly type: "string";
5970
+ readonly enum: readonly ["not"];
5971
+ };
5925
5972
  readonly match: {
5926
5973
  readonly type: "array";
5927
5974
  readonly items: {
@@ -5932,7 +5979,7 @@ export declare const themeConfigSchema: {
5932
5979
  };
5933
5980
  readonly operator: {
5934
5981
  readonly type: "string";
5935
- readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none", "and", "or", "not"];
5982
+ readonly enum: readonly ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"];
5936
5983
  };
5937
5984
  readonly value: {
5938
5985
  readonly oneOf: readonly [{
@@ -5943,6 +5990,10 @@ export declare const themeConfigSchema: {
5943
5990
  readonly type: "number";
5944
5991
  }];
5945
5992
  };
5993
+ readonly modifier: {
5994
+ readonly type: "string";
5995
+ readonly enum: readonly ["not"];
5996
+ };
5946
5997
  };
5947
5998
  };
5948
5999
  };
@@ -6144,7 +6195,7 @@ export declare const themeConfigSchema: {
6144
6195
  }];
6145
6196
  };
6146
6197
  };
6147
- readonly required: readonly ["name", "entities", "levels"];
6198
+ readonly required: readonly ["name", "key", "entities", "levels"];
6148
6199
  readonly additionalProperties: false;
6149
6200
  };
6150
6201
  };