@twin.org/hierarchies-models 0.9.0-next.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.
Files changed (148) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/dist/es/factories/hierarchiesConnectorFactory.js +9 -0
  4. package/dist/es/factories/hierarchiesConnectorFactory.js.map +1 -0
  5. package/dist/es/index.js +37 -0
  6. package/dist/es/index.js.map +1 -0
  7. package/dist/es/models/IAccreditation.js +2 -0
  8. package/dist/es/models/IAccreditation.js.map +1 -0
  9. package/dist/es/models/IFederation.js +2 -0
  10. package/dist/es/models/IFederation.js.map +1 -0
  11. package/dist/es/models/IGovernance.js +2 -0
  12. package/dist/es/models/IGovernance.js.map +1 -0
  13. package/dist/es/models/IHierarchiesComponent.js +2 -0
  14. package/dist/es/models/IHierarchiesComponent.js.map +1 -0
  15. package/dist/es/models/IHierarchiesConnector.js +2 -0
  16. package/dist/es/models/IHierarchiesConnector.js.map +1 -0
  17. package/dist/es/models/IProperty.js +2 -0
  18. package/dist/es/models/IProperty.js.map +1 -0
  19. package/dist/es/models/IPropertyCondition.js +2 -0
  20. package/dist/es/models/IPropertyCondition.js.map +1 -0
  21. package/dist/es/models/IPropertyValue.js +2 -0
  22. package/dist/es/models/IPropertyValue.js.map +1 -0
  23. package/dist/es/models/IRootAuthority.js +4 -0
  24. package/dist/es/models/IRootAuthority.js.map +1 -0
  25. package/dist/es/models/ITimespan.js +4 -0
  26. package/dist/es/models/ITimespan.js.map +1 -0
  27. package/dist/es/models/api/IHierarchiesAccreditationAddRequest.js +2 -0
  28. package/dist/es/models/api/IHierarchiesAccreditationAddRequest.js.map +1 -0
  29. package/dist/es/models/api/IHierarchiesAccreditationGetRequest.js +4 -0
  30. package/dist/es/models/api/IHierarchiesAccreditationGetRequest.js.map +1 -0
  31. package/dist/es/models/api/IHierarchiesAccreditationGetResponse.js +2 -0
  32. package/dist/es/models/api/IHierarchiesAccreditationGetResponse.js.map +1 -0
  33. package/dist/es/models/api/IHierarchiesAccreditationRemoveRequest.js +4 -0
  34. package/dist/es/models/api/IHierarchiesAccreditationRemoveRequest.js.map +1 -0
  35. package/dist/es/models/api/IHierarchiesAccreditationsGetRequest.js +4 -0
  36. package/dist/es/models/api/IHierarchiesAccreditationsGetRequest.js.map +1 -0
  37. package/dist/es/models/api/IHierarchiesAccreditationsGetResponse.js +2 -0
  38. package/dist/es/models/api/IHierarchiesAccreditationsGetResponse.js.map +1 -0
  39. package/dist/es/models/api/IHierarchiesAuthorityAddRequest.js +4 -0
  40. package/dist/es/models/api/IHierarchiesAuthorityAddRequest.js.map +1 -0
  41. package/dist/es/models/api/IHierarchiesAuthorityRemoveRequest.js +4 -0
  42. package/dist/es/models/api/IHierarchiesAuthorityRemoveRequest.js.map +1 -0
  43. package/dist/es/models/api/IHierarchiesFederationCreateRequest.js +4 -0
  44. package/dist/es/models/api/IHierarchiesFederationCreateRequest.js.map +1 -0
  45. package/dist/es/models/api/IHierarchiesFederationGetRequest.js +4 -0
  46. package/dist/es/models/api/IHierarchiesFederationGetRequest.js.map +1 -0
  47. package/dist/es/models/api/IHierarchiesFederationGetResponse.js +2 -0
  48. package/dist/es/models/api/IHierarchiesFederationGetResponse.js.map +1 -0
  49. package/dist/es/models/api/IHierarchiesPropertiesGetRequest.js +4 -0
  50. package/dist/es/models/api/IHierarchiesPropertiesGetRequest.js.map +1 -0
  51. package/dist/es/models/api/IHierarchiesPropertiesGetResponse.js +2 -0
  52. package/dist/es/models/api/IHierarchiesPropertiesGetResponse.js.map +1 -0
  53. package/dist/es/models/api/IHierarchiesPropertiesValidateRequest.js +2 -0
  54. package/dist/es/models/api/IHierarchiesPropertiesValidateRequest.js.map +1 -0
  55. package/dist/es/models/api/IHierarchiesPropertiesValidateResponse.js +4 -0
  56. package/dist/es/models/api/IHierarchiesPropertiesValidateResponse.js.map +1 -0
  57. package/dist/es/models/api/IHierarchiesPropertyAddRequest.js +2 -0
  58. package/dist/es/models/api/IHierarchiesPropertyAddRequest.js.map +1 -0
  59. package/dist/es/models/api/IHierarchiesPropertyGetRequest.js +4 -0
  60. package/dist/es/models/api/IHierarchiesPropertyGetRequest.js.map +1 -0
  61. package/dist/es/models/api/IHierarchiesPropertyGetResponse.js +2 -0
  62. package/dist/es/models/api/IHierarchiesPropertyGetResponse.js.map +1 -0
  63. package/dist/es/models/api/IHierarchiesPropertyRemoveRequest.js +4 -0
  64. package/dist/es/models/api/IHierarchiesPropertyRemoveRequest.js.map +1 -0
  65. package/dist/es/models/api/IHierarchiesPropertyValidateRequest.js +2 -0
  66. package/dist/es/models/api/IHierarchiesPropertyValidateRequest.js.map +1 -0
  67. package/dist/es/models/api/IHierarchiesPropertyValidateResponse.js +4 -0
  68. package/dist/es/models/api/IHierarchiesPropertyValidateResponse.js.map +1 -0
  69. package/dist/es/models/propertyConstraintType.js +29 -0
  70. package/dist/es/models/propertyConstraintType.js.map +1 -0
  71. package/dist/es/models/propertyType.js +17 -0
  72. package/dist/es/models/propertyType.js.map +1 -0
  73. package/dist/types/factories/hierarchiesConnectorFactory.d.ts +6 -0
  74. package/dist/types/index.d.ts +34 -0
  75. package/dist/types/models/IAccreditation.d.ts +18 -0
  76. package/dist/types/models/IFederation.d.ts +24 -0
  77. package/dist/types/models/IGovernance.d.ts +28 -0
  78. package/dist/types/models/IHierarchiesComponent.d.ts +160 -0
  79. package/dist/types/models/IHierarchiesConnector.d.ts +159 -0
  80. package/dist/types/models/IProperty.d.ts +24 -0
  81. package/dist/types/models/IPropertyCondition.d.ts +19 -0
  82. package/dist/types/models/IPropertyValue.d.ts +14 -0
  83. package/dist/types/models/IRootAuthority.d.ts +13 -0
  84. package/dist/types/models/ITimespan.d.ts +13 -0
  85. package/dist/types/models/api/IHierarchiesAccreditationAddRequest.d.ts +19 -0
  86. package/dist/types/models/api/IHierarchiesAccreditationGetRequest.d.ts +22 -0
  87. package/dist/types/models/api/IHierarchiesAccreditationGetResponse.d.ts +10 -0
  88. package/dist/types/models/api/IHierarchiesAccreditationRemoveRequest.d.ts +22 -0
  89. package/dist/types/models/api/IHierarchiesAccreditationsGetRequest.d.ts +18 -0
  90. package/dist/types/models/api/IHierarchiesAccreditationsGetResponse.d.ts +10 -0
  91. package/dist/types/models/api/IHierarchiesAuthorityAddRequest.d.ts +23 -0
  92. package/dist/types/models/api/IHierarchiesAuthorityRemoveRequest.d.ts +18 -0
  93. package/dist/types/models/api/IHierarchiesFederationCreateRequest.d.ts +18 -0
  94. package/dist/types/models/api/IHierarchiesFederationGetRequest.d.ts +23 -0
  95. package/dist/types/models/api/IHierarchiesFederationGetResponse.d.ts +10 -0
  96. package/dist/types/models/api/IHierarchiesPropertiesGetRequest.d.ts +23 -0
  97. package/dist/types/models/api/IHierarchiesPropertiesGetResponse.d.ts +10 -0
  98. package/dist/types/models/api/IHierarchiesPropertiesValidateRequest.d.ts +30 -0
  99. package/dist/types/models/api/IHierarchiesPropertiesValidateResponse.d.ts +14 -0
  100. package/dist/types/models/api/IHierarchiesPropertyAddRequest.d.ts +19 -0
  101. package/dist/types/models/api/IHierarchiesPropertyGetRequest.d.ts +18 -0
  102. package/dist/types/models/api/IHierarchiesPropertyGetResponse.d.ts +10 -0
  103. package/dist/types/models/api/IHierarchiesPropertyRemoveRequest.d.ts +18 -0
  104. package/dist/types/models/api/IHierarchiesPropertyValidateRequest.d.ts +32 -0
  105. package/dist/types/models/api/IHierarchiesPropertyValidateResponse.d.ts +14 -0
  106. package/dist/types/models/propertyConstraintType.d.ts +29 -0
  107. package/dist/types/models/propertyType.d.ts +17 -0
  108. package/docs/changelog.md +11 -0
  109. package/docs/examples.md +74 -0
  110. package/docs/reference/index.md +46 -0
  111. package/docs/reference/interfaces/IAccreditation.md +27 -0
  112. package/docs/reference/interfaces/IFederation.md +36 -0
  113. package/docs/reference/interfaces/IGovernance.md +44 -0
  114. package/docs/reference/interfaces/IHierarchiesAccreditationAddRequest.md +25 -0
  115. package/docs/reference/interfaces/IHierarchiesAccreditationGetRequest.md +29 -0
  116. package/docs/reference/interfaces/IHierarchiesAccreditationGetResponse.md +11 -0
  117. package/docs/reference/interfaces/IHierarchiesAccreditationRemoveRequest.md +29 -0
  118. package/docs/reference/interfaces/IHierarchiesAccreditationsGetRequest.md +23 -0
  119. package/docs/reference/interfaces/IHierarchiesAccreditationsGetResponse.md +11 -0
  120. package/docs/reference/interfaces/IHierarchiesAuthorityAddRequest.md +31 -0
  121. package/docs/reference/interfaces/IHierarchiesAuthorityRemoveRequest.md +23 -0
  122. package/docs/reference/interfaces/IHierarchiesComponent.md +613 -0
  123. package/docs/reference/interfaces/IHierarchiesConnector.md +607 -0
  124. package/docs/reference/interfaces/IHierarchiesFederationCreateRequest.md +23 -0
  125. package/docs/reference/interfaces/IHierarchiesFederationGetRequest.md +31 -0
  126. package/docs/reference/interfaces/IHierarchiesFederationGetResponse.md +11 -0
  127. package/docs/reference/interfaces/IHierarchiesPropertiesGetRequest.md +31 -0
  128. package/docs/reference/interfaces/IHierarchiesPropertiesGetResponse.md +11 -0
  129. package/docs/reference/interfaces/IHierarchiesPropertiesValidateRequest.md +41 -0
  130. package/docs/reference/interfaces/IHierarchiesPropertiesValidateResponse.md +17 -0
  131. package/docs/reference/interfaces/IHierarchiesPropertyAddRequest.md +25 -0
  132. package/docs/reference/interfaces/IHierarchiesPropertyGetRequest.md +23 -0
  133. package/docs/reference/interfaces/IHierarchiesPropertyGetResponse.md +11 -0
  134. package/docs/reference/interfaces/IHierarchiesPropertyRemoveRequest.md +23 -0
  135. package/docs/reference/interfaces/IHierarchiesPropertyValidateRequest.md +43 -0
  136. package/docs/reference/interfaces/IHierarchiesPropertyValidateResponse.md +17 -0
  137. package/docs/reference/interfaces/IProperty.md +35 -0
  138. package/docs/reference/interfaces/IPropertyCondition.md +27 -0
  139. package/docs/reference/interfaces/IPropertyValue.md +19 -0
  140. package/docs/reference/interfaces/IRootAuthority.md +19 -0
  141. package/docs/reference/interfaces/ITimespan.md +19 -0
  142. package/docs/reference/type-aliases/PropertyConstraintType.md +5 -0
  143. package/docs/reference/type-aliases/PropertyType.md +5 -0
  144. package/docs/reference/variables/HierarchiesConnectorFactory.md +5 -0
  145. package/docs/reference/variables/PropertyConstraintType.md +37 -0
  146. package/docs/reference/variables/PropertyType.md +19 -0
  147. package/locales/en.json +3 -0
  148. package/package.json +53 -0
@@ -0,0 +1,41 @@
1
+ # Interface: IHierarchiesPropertiesValidateRequest
2
+
3
+ Request to validate properties for a federation.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The request path parameters.
12
+
13
+ #### federationId
14
+
15
+ > **federationId**: `string`
16
+
17
+ The id of the federation.
18
+
19
+ ***
20
+
21
+ ### body {#body}
22
+
23
+ > **body**: `object`
24
+
25
+ The request data.
26
+
27
+ #### accreditedById
28
+
29
+ > **accreditedById**: `string`
30
+
31
+ The accredited by id.
32
+
33
+ #### propertiesToValidate
34
+
35
+ > **propertiesToValidate**: `object`
36
+
37
+ The properties to validate.
38
+
39
+ ##### Index Signature
40
+
41
+ \[`propertyName`: `string`\]: [`IPropertyValue`](IPropertyValue.md)
@@ -0,0 +1,17 @@
1
+ # Interface: IHierarchiesPropertiesValidateResponse
2
+
3
+ Response for properties validation.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: `object`
10
+
11
+ The response body.
12
+
13
+ #### valid
14
+
15
+ > **valid**: `boolean`
16
+
17
+ Whether all provided properties are valid.
@@ -0,0 +1,25 @@
1
+ # Interface: IHierarchiesPropertyAddRequest
2
+
3
+ Request to add a property to a federation.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The request path parameters.
12
+
13
+ #### federationId
14
+
15
+ > **federationId**: `string`
16
+
17
+ The id of the federation.
18
+
19
+ ***
20
+
21
+ ### body {#body}
22
+
23
+ > **body**: [`IProperty`](IProperty.md)
24
+
25
+ The request data.
@@ -0,0 +1,23 @@
1
+ # Interface: IHierarchiesPropertyGetRequest
2
+
3
+ Request to get a property from a federation.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The request path parameters.
12
+
13
+ #### federationId
14
+
15
+ > **federationId**: `string`
16
+
17
+ The id of the federation.
18
+
19
+ #### propertyName
20
+
21
+ > **propertyName**: `string`
22
+
23
+ The property name to get.
@@ -0,0 +1,11 @@
1
+ # Interface: IHierarchiesPropertyGetResponse
2
+
3
+ Response for getting a property.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: [`IProperty`](IProperty.md)
10
+
11
+ The response body.
@@ -0,0 +1,23 @@
1
+ # Interface: IHierarchiesPropertyRemoveRequest
2
+
3
+ Request to remove a property from a federation.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The request path parameters.
12
+
13
+ #### federationId
14
+
15
+ > **federationId**: `string`
16
+
17
+ The id of the federation.
18
+
19
+ #### propertyName
20
+
21
+ > **propertyName**: `string`
22
+
23
+ The property name to remove.
@@ -0,0 +1,43 @@
1
+ # Interface: IHierarchiesPropertyValidateRequest
2
+
3
+ Request to validate a property for a federation.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The request path parameters.
12
+
13
+ #### federationId
14
+
15
+ > **federationId**: `string`
16
+
17
+ The id of the federation.
18
+
19
+ ***
20
+
21
+ ### body {#body}
22
+
23
+ > **body**: `object`
24
+
25
+ The request data.
26
+
27
+ #### accreditedById
28
+
29
+ > **accreditedById**: `string`
30
+
31
+ The accredited by id.
32
+
33
+ #### propertyName
34
+
35
+ > **propertyName**: `string`
36
+
37
+ The property name to validate.
38
+
39
+ #### propertyValue
40
+
41
+ > **propertyValue**: [`IPropertyValue`](IPropertyValue.md)
42
+
43
+ The property value to validate.
@@ -0,0 +1,17 @@
1
+ # Interface: IHierarchiesPropertyValidateResponse
2
+
3
+ Response for property validation.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: `object`
10
+
11
+ The response body.
12
+
13
+ #### valid
14
+
15
+ > **valid**: `boolean`
16
+
17
+ Whether the provided property is valid.
@@ -0,0 +1,35 @@
1
+ # Interface: IProperty
2
+
3
+ Represents a named property with optional allowed values, a condition, and a validity timespan.
4
+
5
+ ## Properties
6
+
7
+ ### name {#name}
8
+
9
+ > **name**: `string`
10
+
11
+ The property name, can be dotted form.
12
+
13
+ ***
14
+
15
+ ### allowedValues? {#allowedvalues}
16
+
17
+ > `optional` **allowedValues?**: [`IPropertyValue`](IPropertyValue.md)[]
18
+
19
+ The allowed values for this property, if empty, any value is allowed.
20
+
21
+ ***
22
+
23
+ ### condition? {#condition}
24
+
25
+ > `optional` **condition?**: [`IPropertyCondition`](IPropertyCondition.md)
26
+
27
+ The condition for this property.
28
+
29
+ ***
30
+
31
+ ### timespan? {#timespan}
32
+
33
+ > `optional` **timespan?**: [`ITimespan`](ITimespan.md)
34
+
35
+ The timespan for this property.
@@ -0,0 +1,27 @@
1
+ # Interface: IPropertyCondition
2
+
3
+ Describes the condition and constraints of a property within a hierarchy.
4
+
5
+ ## Properties
6
+
7
+ ### type {#type}
8
+
9
+ > **type**: [`PropertyType`](../type-aliases/PropertyType.md)
10
+
11
+ The property type.
12
+
13
+ ***
14
+
15
+ ### value {#value}
16
+
17
+ > **value**: `string`
18
+
19
+ The property value.
20
+
21
+ ***
22
+
23
+ ### constraint? {#constraint}
24
+
25
+ > `optional` **constraint?**: [`PropertyConstraintType`](../type-aliases/PropertyConstraintType.md)
26
+
27
+ The constraint for this property.
@@ -0,0 +1,19 @@
1
+ # Interface: IPropertyValue
2
+
3
+ Describes the value of a property.
4
+
5
+ ## Properties
6
+
7
+ ### type {#type}
8
+
9
+ > **type**: [`PropertyType`](../type-aliases/PropertyType.md)
10
+
11
+ The property type.
12
+
13
+ ***
14
+
15
+ ### value {#value}
16
+
17
+ > **value**: `string`
18
+
19
+ The property value.
@@ -0,0 +1,19 @@
1
+ # Interface: IRootAuthority
2
+
3
+ Represents a root authority in a federation hierarchy.
4
+
5
+ ## Properties
6
+
7
+ ### id {#id}
8
+
9
+ > **id**: `string`
10
+
11
+ The ID of the root authority.
12
+
13
+ ***
14
+
15
+ ### accountId {#accountid}
16
+
17
+ > **accountId**: `string`
18
+
19
+ The account ID of the root authority.
@@ -0,0 +1,19 @@
1
+ # Interface: ITimespan
2
+
3
+ Represents a timespan in a federation hierarchy.
4
+
5
+ ## Properties
6
+
7
+ ### validFrom? {#validfrom}
8
+
9
+ > `optional` **validFrom?**: `string`
10
+
11
+ Valid from as bigint string so it can be serialized accurately.
12
+
13
+ ***
14
+
15
+ ### validTo? {#validto}
16
+
17
+ > `optional` **validTo?**: `string`
18
+
19
+ Valid to as bigint string so it can be serialized accurately.
@@ -0,0 +1,5 @@
1
+ # Type Alias: PropertyConstraintType
2
+
3
+ > **PropertyConstraintType** = *typeof* [`PropertyConstraintType`](../variables/PropertyConstraintType.md)\[keyof *typeof* [`PropertyConstraintType`](../variables/PropertyConstraintType.md)\]
4
+
5
+ Type representing the possible condition types.
@@ -0,0 +1,5 @@
1
+ # Type Alias: PropertyType
2
+
3
+ > **PropertyType** = *typeof* [`PropertyType`](../variables/PropertyType.md)\[keyof *typeof* [`PropertyType`](../variables/PropertyType.md)\]
4
+
5
+ Type representing the possible property types.
@@ -0,0 +1,5 @@
1
+ # Variable: HierarchiesConnectorFactory
2
+
3
+ > `const` **HierarchiesConnectorFactory**: `Factory`\<[`IHierarchiesConnector`](../interfaces/IHierarchiesConnector.md)\>
4
+
5
+ Factory for creating hierarchies connectors.
@@ -0,0 +1,37 @@
1
+ # Variable: PropertyConstraintType
2
+
3
+ > `const` **PropertyConstraintType**: `object`
4
+
5
+ Defines the types of constraints that can be applied to federation properties.
6
+
7
+ ## Type Declaration
8
+
9
+ ### Contains {#contains}
10
+
11
+ > `readonly` **Contains**: `"Contains"` = `"Contains"`
12
+
13
+ Value must contain a specific substring.
14
+
15
+ ### StartsWith {#startswith}
16
+
17
+ > `readonly` **StartsWith**: `"StartsWith"` = `"StartsWith"`
18
+
19
+ Value must start with a specific substring.
20
+
21
+ ### EndsWith {#endswith}
22
+
23
+ > `readonly` **EndsWith**: `"EndsWith"` = `"EndsWith"`
24
+
25
+ Value must end with a specific substring.
26
+
27
+ ### GreaterThan {#greaterthan}
28
+
29
+ > `readonly` **GreaterThan**: `"GreaterThan"` = `"GreaterThan"`
30
+
31
+ Value must be greater than a specific value.
32
+
33
+ ### LessThan {#lessthan}
34
+
35
+ > `readonly` **LessThan**: `"LessThan"` = `"LessThan"`
36
+
37
+ Value must be less than a specific value.
@@ -0,0 +1,19 @@
1
+ # Variable: PropertyType
2
+
3
+ > `const` **PropertyType**: `object`
4
+
5
+ Defines the supported data types for property values.
6
+
7
+ ## Type Declaration
8
+
9
+ ### String {#string}
10
+
11
+ > `readonly` **String**: `"String"` = `"String"`
12
+
13
+ Value is a string.
14
+
15
+ ### BigInt {#bigint}
16
+
17
+ > `readonly` **BigInt**: `"BigInt"` = `"BigInt"`
18
+
19
+ Value is a bigint.
@@ -0,0 +1,3 @@
1
+ {
2
+ "error": {}
3
+ }
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@twin.org/hierarchies-models",
3
+ "version": "0.9.0-next.1",
4
+ "description": "Shared interfaces, request and response models, and connector contracts.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/iotaledger/twin-hierarchies.git",
8
+ "directory": "packages/hierarchies-models"
9
+ },
10
+ "author": "martyn.janes@iota.org",
11
+ "license": "Apache-2.0",
12
+ "type": "module",
13
+ "engines": {
14
+ "node": ">=20.0.0"
15
+ },
16
+ "dependencies": {
17
+ "@twin.org/core": "0.9.0-next.1",
18
+ "@twin.org/nameof": "0.9.0-next.1",
19
+ "@twin.org/web": "0.9.0-next.1"
20
+ },
21
+ "main": "./dist/es/index.js",
22
+ "types": "./dist/types/index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/types/index.d.ts",
26
+ "import": "./dist/es/index.js",
27
+ "default": "./dist/es/index.js"
28
+ }
29
+ },
30
+ "files": [
31
+ "dist/es",
32
+ "dist/types",
33
+ "locales",
34
+ "docs"
35
+ ],
36
+ "keywords": [
37
+ "twin",
38
+ "trade",
39
+ "iota",
40
+ "framework",
41
+ "blockchain",
42
+ "hierarchies",
43
+ "tokens",
44
+ "assets",
45
+ "models",
46
+ "types",
47
+ "schemas"
48
+ ],
49
+ "bugs": {
50
+ "url": "git+https://github.com/iotaledger/twin-hierarchies/issues"
51
+ },
52
+ "homepage": "https://twindev.org"
53
+ }