@twin.org/standards-dataspace-protocol 0.0.3-next.3 → 0.0.3-next.5

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 (153) hide show
  1. package/dist/es/dataTypes/catalogDataTypes.js +32 -0
  2. package/dist/es/dataTypes/catalogDataTypes.js.map +1 -0
  3. package/dist/es/dataTypes/contractNegotiationDataTypes.js +22 -29
  4. package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +1 -1
  5. package/dist/es/dataTypes/dataspaceProtocolDataTypes.js +27 -0
  6. package/dist/es/dataTypes/dataspaceProtocolDataTypes.js.map +1 -0
  7. package/dist/es/dataTypes/transferProcessDataTypes.js +68 -0
  8. package/dist/es/dataTypes/transferProcessDataTypes.js.map +1 -0
  9. package/dist/es/index.js +25 -4
  10. package/dist/es/index.js.map +1 -1
  11. package/dist/es/models/catalog/ICatalogError.js +2 -0
  12. package/dist/es/models/catalog/ICatalogError.js.map +1 -0
  13. package/dist/es/models/catalog/ICatalogRequestMessage.js +2 -0
  14. package/dist/es/models/catalog/ICatalogRequestMessage.js.map +1 -0
  15. package/dist/es/models/catalog/IDatasetRequestMessage.js +2 -0
  16. package/dist/es/models/catalog/IDatasetRequestMessage.js.map +1 -0
  17. package/dist/es/models/catalog/catalogTypes.js +22 -0
  18. package/dist/es/models/catalog/catalogTypes.js.map +1 -0
  19. package/dist/es/models/contractNegotiation/IContractAgreementMessage.js.map +1 -1
  20. package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js.map +1 -1
  21. package/dist/es/models/contractNegotiation/IContractNegotiation.js.map +1 -1
  22. package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +1 -1
  23. package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js.map +1 -1
  24. package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js.map +1 -1
  25. package/dist/es/models/contractNegotiation/IContractOfferMessage.js.map +1 -1
  26. package/dist/es/models/contractNegotiation/IContractRequestMessage.js.map +1 -1
  27. package/dist/es/models/contractNegotiation/contractNegotiationTypes.js +1 -1
  28. package/dist/es/models/contractNegotiation/contractNegotiationTypes.js.map +1 -1
  29. package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js +1 -1
  30. package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js.map +1 -1
  31. package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js +1 -1
  32. package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js.map +1 -1
  33. package/dist/es/models/dataspaceProtocolContextType.js +2 -0
  34. package/dist/es/models/dataspaceProtocolContextType.js.map +1 -0
  35. package/dist/es/models/dataspaceProtocolContexts.js +17 -0
  36. package/dist/es/models/dataspaceProtocolContexts.js.map +1 -0
  37. package/dist/es/models/transferProcess/IDataAddress.js +2 -0
  38. package/dist/es/models/transferProcess/IDataAddress.js.map +1 -0
  39. package/dist/es/models/transferProcess/IEndpointProperty.js +2 -0
  40. package/dist/es/models/transferProcess/IEndpointProperty.js.map +1 -0
  41. package/dist/es/models/transferProcess/ITransferCompletionMessage.js +2 -0
  42. package/dist/es/models/transferProcess/ITransferCompletionMessage.js.map +1 -0
  43. package/dist/es/models/transferProcess/ITransferError.js +2 -0
  44. package/dist/es/models/transferProcess/ITransferError.js.map +1 -0
  45. package/dist/es/models/transferProcess/ITransferProcess.js +2 -0
  46. package/dist/es/models/transferProcess/ITransferProcess.js.map +1 -0
  47. package/dist/es/models/transferProcess/ITransferRequestMessage.js +2 -0
  48. package/dist/es/models/transferProcess/ITransferRequestMessage.js.map +1 -0
  49. package/dist/es/models/transferProcess/ITransferStartMessage.js +2 -0
  50. package/dist/es/models/transferProcess/ITransferStartMessage.js.map +1 -0
  51. package/dist/es/models/transferProcess/ITransferSuspensionMessage.js +4 -0
  52. package/dist/es/models/transferProcess/ITransferSuspensionMessage.js.map +1 -0
  53. package/dist/es/models/transferProcess/ITransferTerminationMessage.js +2 -0
  54. package/dist/es/models/transferProcess/ITransferTerminationMessage.js.map +1 -0
  55. package/dist/es/models/transferProcess/transferProcessTypes.js +46 -0
  56. package/dist/es/models/transferProcess/transferProcessTypes.js.map +1 -0
  57. package/dist/es/models/transferProcess/types/transferProcessStateType.js +30 -0
  58. package/dist/es/models/transferProcess/types/transferProcessStateType.js.map +1 -0
  59. package/dist/es/schemas/CatalogError.json +74 -0
  60. package/dist/es/schemas/CatalogRequestMessage.json +69 -0
  61. package/dist/es/schemas/ContractAgreementMessage.json +10 -5
  62. package/dist/es/schemas/ContractAgreementVerificationMessage.json +10 -5
  63. package/dist/es/schemas/ContractNegotiation.json +10 -5
  64. package/dist/es/schemas/ContractNegotiationError.json +11 -39
  65. package/dist/es/schemas/ContractNegotiationEventMessage.json +10 -5
  66. package/dist/es/schemas/ContractNegotiationTerminationMessage.json +10 -5
  67. package/dist/es/schemas/ContractOfferMessage.json +10 -5
  68. package/dist/es/schemas/ContractRequestMessage.json +10 -5
  69. package/dist/es/schemas/DataAddress.json +33 -0
  70. package/dist/es/schemas/DatasetRequestMessage.json +69 -0
  71. package/dist/es/schemas/EndpointProperty.json +27 -0
  72. package/dist/es/schemas/TransferCompletionMessage.json +74 -0
  73. package/dist/es/schemas/TransferError.json +83 -0
  74. package/dist/es/schemas/TransferProcess.json +109 -0
  75. package/dist/es/schemas/TransferRequestMessage.json +88 -0
  76. package/dist/es/schemas/TransferStartMessage.json +78 -0
  77. package/dist/es/schemas/TransferSuspensionMessage.json +83 -0
  78. package/dist/es/schemas/TransferTerminationMessage.json +83 -0
  79. package/dist/types/dataTypes/catalogDataTypes.d.ts +9 -0
  80. package/dist/types/dataTypes/contractNegotiationDataTypes.d.ts +1 -5
  81. package/dist/types/dataTypes/dataspaceProtocolDataTypes.d.ts +13 -0
  82. package/dist/types/dataTypes/transferProcessDataTypes.d.ts +9 -0
  83. package/dist/types/index.d.ts +21 -3
  84. package/dist/types/models/catalog/ICatalogError.d.ts +24 -0
  85. package/dist/types/models/catalog/ICatalogRequestMessage.d.ts +20 -0
  86. package/dist/types/models/catalog/IDatasetRequestMessage.d.ts +20 -0
  87. package/dist/types/models/catalog/catalogTypes.d.ts +22 -0
  88. package/dist/types/models/contractNegotiation/IContractAgreementMessage.d.ts +2 -2
  89. package/dist/types/models/contractNegotiation/IContractAgreementVerificationMessage.d.ts +2 -2
  90. package/dist/types/models/contractNegotiation/IContractNegotiation.d.ts +2 -2
  91. package/dist/types/models/contractNegotiation/IContractNegotiationError.d.ts +3 -13
  92. package/dist/types/models/contractNegotiation/IContractNegotiationEventMessage.d.ts +2 -2
  93. package/dist/types/models/contractNegotiation/IContractNegotiationTerminationMessage.d.ts +2 -2
  94. package/dist/types/models/contractNegotiation/IContractOfferMessage.d.ts +2 -2
  95. package/dist/types/models/contractNegotiation/IContractRequestMessage.d.ts +2 -2
  96. package/dist/types/models/dataspaceProtocolContextType.d.ts +14 -0
  97. package/dist/types/models/dataspaceProtocolContexts.d.ts +17 -0
  98. package/dist/types/models/transferProcess/IDataAddress.d.ts +24 -0
  99. package/dist/types/models/transferProcess/IEndpointProperty.d.ts +19 -0
  100. package/dist/types/models/transferProcess/ITransferCompletionMessage.d.ts +24 -0
  101. package/dist/types/models/transferProcess/ITransferError.d.ts +32 -0
  102. package/dist/types/models/transferProcess/ITransferProcess.d.ts +29 -0
  103. package/dist/types/models/transferProcess/ITransferRequestMessage.d.ts +39 -0
  104. package/dist/types/models/transferProcess/ITransferStartMessage.d.ts +30 -0
  105. package/dist/types/models/transferProcess/ITransferSuspensionMessage.d.ts +32 -0
  106. package/dist/types/models/transferProcess/ITransferTerminationMessage.d.ts +32 -0
  107. package/dist/types/models/transferProcess/transferProcessTypes.d.ts +46 -0
  108. package/dist/types/models/transferProcess/types/transferProcessStateType.d.ts +30 -0
  109. package/docs/changelog.md +35 -0
  110. package/docs/reference/classes/CatalogDataTypes.md +25 -0
  111. package/docs/reference/classes/ContractNegotiationDataTypes.md +1 -13
  112. package/docs/reference/classes/DataspaceProtocolDataTypes.md +37 -0
  113. package/docs/reference/classes/TransferProcessDataTypes.md +25 -0
  114. package/docs/reference/index.md +24 -3
  115. package/docs/reference/interfaces/ICatalogError.md +36 -0
  116. package/docs/reference/interfaces/ICatalogRequestMessage.md +28 -0
  117. package/docs/reference/interfaces/IContractAgreementMessage.md +1 -1
  118. package/docs/reference/interfaces/IContractAgreementVerificationMessage.md +1 -1
  119. package/docs/reference/interfaces/IContractNegotiation.md +1 -1
  120. package/docs/reference/interfaces/IContractNegotiationError.md +2 -26
  121. package/docs/reference/interfaces/IContractNegotiationEventMessage.md +1 -1
  122. package/docs/reference/interfaces/IContractNegotiationTerminationMessage.md +1 -1
  123. package/docs/reference/interfaces/IContractOfferMessage.md +1 -1
  124. package/docs/reference/interfaces/IContractRequestMessage.md +1 -1
  125. package/docs/reference/interfaces/IDataAddress.md +36 -0
  126. package/docs/reference/interfaces/IDatasetRequestMessage.md +28 -0
  127. package/docs/reference/interfaces/IEndpointProperty.md +28 -0
  128. package/docs/reference/interfaces/ITransferCompletionMessage.md +36 -0
  129. package/docs/reference/interfaces/ITransferError.md +52 -0
  130. package/docs/reference/interfaces/ITransferProcess.md +74 -0
  131. package/docs/reference/interfaces/ITransferRequestMessage.md +62 -0
  132. package/docs/reference/interfaces/ITransferStartMessage.md +45 -0
  133. package/docs/reference/interfaces/ITransferSuspensionMessage.md +52 -0
  134. package/docs/reference/interfaces/ITransferTerminationMessage.md +52 -0
  135. package/docs/reference/type-aliases/CatalogTypes.md +5 -0
  136. package/docs/reference/type-aliases/DataspaceProtocolContextType.md +5 -0
  137. package/docs/reference/type-aliases/DataspaceProtocolContexts.md +5 -0
  138. package/docs/reference/type-aliases/TransferProcessStateType.md +5 -0
  139. package/docs/reference/type-aliases/TransferProcessTypes.md +5 -0
  140. package/docs/reference/variables/CatalogTypes.md +26 -0
  141. package/docs/reference/variables/DataspaceProtocolContexts.md +19 -0
  142. package/docs/reference/variables/TransferProcessStateType.md +38 -0
  143. package/docs/reference/variables/TransferProcessTypes.md +62 -0
  144. package/package.json +3 -2
  145. package/dist/es/models/contractNegotiation/contractNegotiationContextType.js +0 -2
  146. package/dist/es/models/contractNegotiation/contractNegotiationContextType.js.map +0 -1
  147. package/dist/es/models/contractNegotiation/contractNegotiationContexts.js +0 -17
  148. package/dist/es/models/contractNegotiation/contractNegotiationContexts.js.map +0 -1
  149. package/dist/types/models/contractNegotiation/contractNegotiationContextType.d.ts +0 -14
  150. package/dist/types/models/contractNegotiation/contractNegotiationContexts.d.ts +0 -17
  151. package/docs/reference/type-aliases/ContractNegotiationContextType.md +0 -5
  152. package/docs/reference/type-aliases/ContractNegotiationContexts.md +0 -5
  153. package/docs/reference/variables/ContractNegotiationContexts.md +0 -19
@@ -0,0 +1,32 @@
1
+ import { DataTypeHandlerFactory } from "@twin.org/data-core";
2
+ import { CatalogTypes } from "../models/catalog/catalogTypes.js";
3
+ import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
4
+ import CatalogError from "../schemas/CatalogError.json" with { type: "json" };
5
+ import CatalogRequestMessage from "../schemas/CatalogRequestMessage.json" with { type: "json" };
6
+ import DatasetRequestMessage from "../schemas/DatasetRequestMessage.json" with { type: "json" };
7
+ /**
8
+ * Handle all the catalog data types for Dataspace Protocol.
9
+ */
10
+ export class CatalogDataTypes {
11
+ /**
12
+ * Register all the data types.
13
+ */
14
+ static registerTypes() {
15
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogRequestMessage}`, () => ({
16
+ context: DataspaceProtocolContexts.ContextRoot,
17
+ type: CatalogTypes.CatalogRequestMessage,
18
+ jsonSchema: async () => CatalogRequestMessage
19
+ }));
20
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.DatasetRequestMessage}`, () => ({
21
+ context: DataspaceProtocolContexts.ContextRoot,
22
+ type: CatalogTypes.DatasetRequestMessage,
23
+ jsonSchema: async () => DatasetRequestMessage
24
+ }));
25
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogError}`, () => ({
26
+ context: DataspaceProtocolContexts.ContextRoot,
27
+ type: CatalogTypes.CatalogError,
28
+ jsonSchema: async () => CatalogError
29
+ }));
30
+ }
31
+ }
32
+ //# sourceMappingURL=catalogDataTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/catalogDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,YAAY,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC9E,OAAO,qBAAqB,MAAM,uCAAuC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChG,OAAO,qBAAqB,MAAM,uCAAuC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEhG;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAC5B;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,YAAY,CAAC,qBAAqB,EAAE,EAC/E,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,YAAY,CAAC,qBAAqB;YACxC,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,qBAAoC;SAC5D,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,YAAY,CAAC,qBAAqB,EAAE,EAC/E,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,YAAY,CAAC,qBAAqB;YACxC,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,qBAAoC;SAC5D,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,YAAY,CAAC,YAAY,EAAE,EACtE,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,YAAY,CAAC,YAAY;YAC/B,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,YAA2B;SACnD,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { CatalogTypes } from \"../models/catalog/catalogTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport CatalogError from \"../schemas/CatalogError.json\" with { type: \"json\" };\nimport CatalogRequestMessage from \"../schemas/CatalogRequestMessage.json\" with { type: \"json\" };\nimport DatasetRequestMessage from \"../schemas/DatasetRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the catalog data types for Dataspace Protocol.\n */\nexport class CatalogDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.CatalogRequestMessage,\n\t\t\t\tjsonSchema: async () => CatalogRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.DatasetRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.DatasetRequestMessage,\n\t\t\t\tjsonSchema: async () => DatasetRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.CatalogError,\n\t\t\t\tjsonSchema: async () => CatalogError as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
@@ -1,7 +1,6 @@
1
1
  import { DataTypeHandlerFactory } from "@twin.org/data-core";
2
- import { JsonLdProcessor } from "@twin.org/data-json-ld";
3
- import { ContractNegotiationContexts } from "../models/contractNegotiation/contractNegotiationContexts.js";
4
2
  import { ContractNegotiationTypes } from "../models/contractNegotiation/contractNegotiationTypes.js";
3
+ import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
5
4
  import ContractAgreementMessage from "../schemas/ContractAgreementMessage.json" with { type: "json" };
6
5
  import ContractAgreementVerificationMessage from "../schemas/ContractAgreementVerificationMessage.json" with { type: "json" };
7
6
  import ContractNegotiation from "../schemas/ContractNegotiation.json" with { type: "json" };
@@ -13,66 +12,60 @@ import ContractNegotiationTerminationMessage from "../schemas/ContractNegotiatio
13
12
  import ContractOfferMessage from "../schemas/ContractOfferMessage.json" with { type: "json" };
14
13
  import ContractRequestMessage from "../schemas/ContractRequestMessage.json" with { type: "json" };
15
14
  /**
16
- * Handle all the data types for Dataspace Protocol Contract Negotiation.
15
+ * Handle all the contract negotiation data types for Dataspace Protocol.
17
16
  */
18
17
  export class ContractNegotiationDataTypes {
19
- /**
20
- * Register the JSON-LD Redirects.
21
- */
22
- static registerRedirects() {
23
- JsonLdProcessor.addRedirect(new RegExp(ContractNegotiationContexts.ContextRoot), ContractNegotiationContexts.ContextRedirect);
24
- }
25
18
  /**
26
19
  * Register all the data types.
27
20
  */
28
21
  static registerTypes() {
29
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`, () => ({
30
- context: ContractNegotiationContexts.ContextRoot,
22
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`, () => ({
23
+ context: DataspaceProtocolContexts.ContextRoot,
31
24
  type: ContractNegotiationTypes.ContractAgreementMessage,
32
25
  jsonSchema: async () => ContractAgreementMessage
33
26
  }));
34
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`, () => ({
35
- context: ContractNegotiationContexts.ContextRoot,
27
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`, () => ({
28
+ context: DataspaceProtocolContexts.ContextRoot,
36
29
  type: ContractNegotiationTypes.ContractAgreementVerificationMessage,
37
30
  jsonSchema: async () => ContractAgreementVerificationMessage
38
31
  }));
39
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`, () => ({
40
- context: ContractNegotiationContexts.ContextRoot,
32
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`, () => ({
33
+ context: DataspaceProtocolContexts.ContextRoot,
41
34
  type: ContractNegotiationTypes.ContractNegotiation,
42
35
  jsonSchema: async () => ContractNegotiation
43
36
  }));
44
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`, () => ({
45
- context: ContractNegotiationContexts.ContextRoot,
37
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`, () => ({
38
+ context: DataspaceProtocolContexts.ContextRoot,
46
39
  type: ContractNegotiationTypes.ContractNegotiationError,
47
40
  jsonSchema: async () => ContractNegotiationError
48
41
  }));
49
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`, () => ({
50
- context: ContractNegotiationContexts.ContextRoot,
42
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`, () => ({
43
+ context: DataspaceProtocolContexts.ContextRoot,
51
44
  type: ContractNegotiationTypes.ContractNegotiationEventMessage,
52
45
  jsonSchema: async () => ContractNegotiationEventMessage
53
46
  }));
54
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`, () => ({
55
- context: ContractNegotiationContexts.ContextRoot,
47
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`, () => ({
48
+ context: DataspaceProtocolContexts.ContextRoot,
56
49
  type: ContractNegotiationTypes.ContractNegotiationTerminationMessage,
57
50
  jsonSchema: async () => ContractNegotiationTerminationMessage
58
51
  }));
59
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`, () => ({
60
- context: ContractNegotiationContexts.ContextRoot,
52
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`, () => ({
53
+ context: DataspaceProtocolContexts.ContextRoot,
61
54
  type: ContractNegotiationTypes.ContractOfferMessage,
62
55
  jsonSchema: async () => ContractOfferMessage
63
56
  }));
64
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`, () => ({
65
- context: ContractNegotiationContexts.ContextRoot,
57
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`, () => ({
58
+ context: DataspaceProtocolContexts.ContextRoot,
66
59
  type: ContractNegotiationTypes.ContractRequestMessage,
67
60
  jsonSchema: async () => ContractRequestMessage
68
61
  }));
69
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`, () => ({
70
- context: ContractNegotiationContexts.ContextRoot,
62
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`, () => ({
63
+ context: DataspaceProtocolContexts.ContextRoot,
71
64
  type: ContractNegotiationTypes.ContractNegotiationEventType,
72
65
  jsonSchema: async () => ContractNegotiationEventType
73
66
  }));
74
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`, () => ({
75
- context: ContractNegotiationContexts.ContextRoot,
67
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`, () => ({
68
+ context: DataspaceProtocolContexts.ContextRoot,
76
69
  type: ContractNegotiationTypes.ContractNegotiationStateType,
77
70
  jsonSchema: async () => ContractNegotiationStateType
78
71
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"contractNegotiationDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/contractNegotiationDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,8DAA8D,CAAC;AAC3G,OAAO,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAC;AACrG,OAAO,wBAAwB,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACtG,OAAO,oCAAoC,MAAM,sDAAsD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC9H,OAAO,mBAAmB,MAAM,qCAAqC,CAAC,OAAO,IAAI,EAAE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"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { ContractNegotiationContexts } from \"../models/contractNegotiation/contractNegotiationContexts.js\";\nimport { ContractNegotiationTypes } from \"../models/contractNegotiation/contractNegotiationTypes.js\";\nimport ContractAgreementMessage from \"../schemas/ContractAgreementMessage.json\" with { type: \"json\" };\nimport ContractAgreementVerificationMessage from \"../schemas/ContractAgreementVerificationMessage.json\" with { type: \"json\" };\nimport ContractNegotiation from \"../schemas/ContractNegotiation.json\" with { type: \"json\" };\nimport ContractNegotiationError from \"../schemas/ContractNegotiationError.json\" with { type: \"json\" };\nimport ContractNegotiationEventMessage from \"../schemas/ContractNegotiationEventMessage.json\" with { type: \"json\" };\nimport ContractNegotiationEventType from \"../schemas/ContractNegotiationEventType.json\" with { type: \"json\" };\nimport ContractNegotiationStateType from \"../schemas/ContractNegotiationStateType.json\" with { type: \"json\" };\nimport ContractNegotiationTerminationMessage from \"../schemas/ContractNegotiationTerminationMessage.json\" with { type: \"json\" };\nimport ContractOfferMessage from \"../schemas/ContractOfferMessage.json\" with { type: \"json\" };\nimport ContractRequestMessage from \"../schemas/ContractRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for Dataspace Protocol Contract Negotiation.\n */\nexport class ContractNegotiationDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(\n\t\t\tnew RegExp(ContractNegotiationContexts.ContextRoot),\n\t\t\tContractNegotiationContexts.ContextRedirect\n\t\t);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementVerificationMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementVerificationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiation,\n\t\t\t\tjsonSchema: async () => ContractNegotiation as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationError,\n\t\t\t\tjsonSchema: async () => ContractNegotiationError as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationTerminationMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationTerminationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractOfferMessage,\n\t\t\t\tjsonSchema: async () => ContractOfferMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractRequestMessage,\n\t\t\t\tjsonSchema: async () => ContractRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventType as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationStateType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationStateType as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"contractNeg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AC,4BAA4B,EAAE,EAClG,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,wBAAwB,CAAC,4BAA4B;YAC3D,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,4BAA2C;SACnE,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { ContractNegotiationTypes } from \"../models/contractNegotiation/contractNegotiationTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport ContractAgreementMessage from \"../schemas/ContractAgreementMessage.json\" with { type: \"json\" };\nimport ContractAgreementVerificationMessage from \"../schemas/ContractAgreementVerificationMessage.json\" with { type: \"json\" };\nimport ContractNegotiation from \"../schemas/ContractNegotiation.json\" with { type: \"json\" };\nimport ContractNegotiationError from \"../schemas/ContractNegotiationError.json\" with { type: \"json\" };\nimport ContractNegotiationEventMessage from \"../schemas/ContractNegotiationEventMessage.json\" with { type: \"json\" };\nimport ContractNegotiationEventType from \"../schemas/ContractNegotiationEventType.json\" with { type: \"json\" };\nimport ContractNegotiationStateType from \"../schemas/ContractNegotiationStateType.json\" with { type: \"json\" };\nimport ContractNegotiationTerminationMessage from \"../schemas/ContractNegotiationTerminationMessage.json\" with { type: \"json\" };\nimport ContractOfferMessage from \"../schemas/ContractOfferMessage.json\" with { type: \"json\" };\nimport ContractRequestMessage from \"../schemas/ContractRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the contract negotiation data types for Dataspace Protocol.\n */\nexport class ContractNegotiationDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementVerificationMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementVerificationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiation,\n\t\t\t\tjsonSchema: async () => ContractNegotiation as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationError,\n\t\t\t\tjsonSchema: async () => ContractNegotiationError as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationTerminationMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationTerminationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractOfferMessage,\n\t\t\t\tjsonSchema: async () => ContractOfferMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractRequestMessage,\n\t\t\t\tjsonSchema: async () => ContractRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventType as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationStateType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationStateType as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
@@ -0,0 +1,27 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { JsonLdProcessor } from "@twin.org/data-json-ld";
4
+ import { CatalogDataTypes } from "./catalogDataTypes.js";
5
+ import { ContractNegotiationDataTypes } from "./contractNegotiationDataTypes.js";
6
+ import { TransferProcessDataTypes } from "./transferProcessDataTypes.js";
7
+ import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
8
+ /**
9
+ * Handle all the data types for Dataspace Protocol.
10
+ */
11
+ export class DataspaceProtocolDataTypes {
12
+ /**
13
+ * Register the JSON-LD Redirects.
14
+ */
15
+ static registerRedirects() {
16
+ JsonLdProcessor.addRedirect(new RegExp(DataspaceProtocolContexts.ContextRoot), DataspaceProtocolContexts.ContextRedirect);
17
+ }
18
+ /**
19
+ * Register all the data types.
20
+ */
21
+ static registerTypes() {
22
+ ContractNegotiationDataTypes.registerTypes();
23
+ CatalogDataTypes.registerTypes();
24
+ TransferProcessDataTypes.registerTypes();
25
+ }
26
+ }
27
+ //# sourceMappingURL=dataspaceProtocolDataTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataspaceProtocolDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/dataspaceProtocolDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF;;GAEG;AACH,MAAM,OAAO,0BAA0B;IACtC;;OAEG;IACI,MAAM,CAAC,iBAAiB;QAC9B,eAAe,CAAC,WAAW,CAC1B,IAAI,MAAM,CAAC,yBAAyB,CAAC,WAAW,CAAC,EACjD,yBAAyB,CAAC,eAAe,CACzC,CAAC;IACH,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,4BAA4B,CAAC,aAAa,EAAE,CAAC;QAC7C,gBAAgB,CAAC,aAAa,EAAE,CAAC;QACjC,wBAAwB,CAAC,aAAa,EAAE,CAAC;IAC1C,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { CatalogDataTypes } from \"./catalogDataTypes.js\";\nimport { ContractNegotiationDataTypes } from \"./contractNegotiationDataTypes.js\";\nimport { TransferProcessDataTypes } from \"./transferProcessDataTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\n\n/**\n * Handle all the data types for Dataspace Protocol.\n */\nexport class DataspaceProtocolDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(\n\t\t\tnew RegExp(DataspaceProtocolContexts.ContextRoot),\n\t\t\tDataspaceProtocolContexts.ContextRedirect\n\t\t);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tContractNegotiationDataTypes.registerTypes();\n\t\tCatalogDataTypes.registerTypes();\n\t\tTransferProcessDataTypes.registerTypes();\n\t}\n}\n"]}
@@ -0,0 +1,68 @@
1
+ import { DataTypeHandlerFactory } from "@twin.org/data-core";
2
+ import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
3
+ import { TransferProcessTypes } from "../models/transferProcess/transferProcessTypes.js";
4
+ import DataAddress from "../schemas/DataAddress.json" with { type: "json" };
5
+ import EndpointProperty from "../schemas/EndpointProperty.json" with { type: "json" };
6
+ import TransferCompletionMessage from "../schemas/TransferCompletionMessage.json" with { type: "json" };
7
+ import TransferError from "../schemas/TransferError.json" with { type: "json" };
8
+ import TransferProcess from "../schemas/TransferProcess.json" with { type: "json" };
9
+ import TransferRequestMessage from "../schemas/TransferRequestMessage.json" with { type: "json" };
10
+ import TransferStartMessage from "../schemas/TransferStartMessage.json" with { type: "json" };
11
+ import TransferSuspensionMessage from "../schemas/TransferSuspensionMessage.json" with { type: "json" };
12
+ import TransferTerminationMessage from "../schemas/TransferTerminationMessage.json" with { type: "json" };
13
+ /**
14
+ * Handle all the transfer process data types for Dataspace Protocol.
15
+ */
16
+ export class TransferProcessDataTypes {
17
+ /**
18
+ * Register all the data types.
19
+ */
20
+ static registerTypes() {
21
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.DataAddress}`, () => ({
22
+ context: DataspaceProtocolContexts.ContextRoot,
23
+ type: TransferProcessTypes.DataAddress,
24
+ jsonSchema: async () => DataAddress
25
+ }));
26
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.EndpointProperty}`, () => ({
27
+ context: DataspaceProtocolContexts.ContextRoot,
28
+ type: TransferProcessTypes.EndpointProperty,
29
+ jsonSchema: async () => EndpointProperty
30
+ }));
31
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferCompletionMessage}`, () => ({
32
+ context: DataspaceProtocolContexts.ContextRoot,
33
+ type: TransferProcessTypes.TransferCompletionMessage,
34
+ jsonSchema: async () => TransferCompletionMessage
35
+ }));
36
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferError}`, () => ({
37
+ context: DataspaceProtocolContexts.ContextRoot,
38
+ type: TransferProcessTypes.TransferError,
39
+ jsonSchema: async () => TransferError
40
+ }));
41
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferProcess}`, () => ({
42
+ context: DataspaceProtocolContexts.ContextRoot,
43
+ type: TransferProcessTypes.TransferProcess,
44
+ jsonSchema: async () => TransferProcess
45
+ }));
46
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferRequestMessage}`, () => ({
47
+ context: DataspaceProtocolContexts.ContextRoot,
48
+ type: TransferProcessTypes.TransferRequestMessage,
49
+ jsonSchema: async () => TransferRequestMessage
50
+ }));
51
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferStartMessage}`, () => ({
52
+ context: DataspaceProtocolContexts.ContextRoot,
53
+ type: TransferProcessTypes.TransferStartMessage,
54
+ jsonSchema: async () => TransferStartMessage
55
+ }));
56
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferSuspensionMessage}`, () => ({
57
+ context: DataspaceProtocolContexts.ContextRoot,
58
+ type: TransferProcessTypes.TransferSuspensionMessage,
59
+ jsonSchema: async () => TransferSuspensionMessage
60
+ }));
61
+ DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferTerminationMessage}`, () => ({
62
+ context: DataspaceProtocolContexts.ContextRoot,
63
+ type: TransferProcessTypes.TransferTerminationMessage,
64
+ jsonSchema: async () => TransferTerminationMessage
65
+ }));
66
+ }
67
+ }
68
+ //# sourceMappingURL=transferProcessDataTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transferProcessDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/transferProcessDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,WAAW,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MAA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,EACtF,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,oBAAoB,CAAC,oBAAoB;YAC/C,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,oBAAmC;SAC3D,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,oBAAoB,CAAC,yBAAyB,EAAE,EAC3F,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,oBAAoB,CAAC,yBAAyB;YACpD,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,yBAAwC;SAChE,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,oBAAoB,CAAC,0BAA0B,EAAE,EAC5F,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,oBAAoB,CAAC,0BAA0B;YACrD,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,0BAAyC;SACjE,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport { TransferProcessTypes } from \"../models/transferProcess/transferProcessTypes.js\";\nimport DataAddress from \"../schemas/DataAddress.json\" with { type: \"json\" };\nimport EndpointProperty from \"../schemas/EndpointProperty.json\" with { type: \"json\" };\nimport TransferCompletionMessage from \"../schemas/TransferCompletionMessage.json\" with { type: \"json\" };\nimport TransferError from \"../schemas/TransferError.json\" with { type: \"json\" };\nimport TransferProcess from \"../schemas/TransferProcess.json\" with { type: \"json\" };\nimport TransferRequestMessage from \"../schemas/TransferRequestMessage.json\" with { type: \"json\" };\nimport TransferStartMessage from \"../schemas/TransferStartMessage.json\" with { type: \"json\" };\nimport TransferSuspensionMessage from \"../schemas/TransferSuspensionMessage.json\" with { type: \"json\" };\nimport TransferTerminationMessage from \"../schemas/TransferTerminationMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the transfer process data types for Dataspace Protocol.\n */\nexport class TransferProcessDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.DataAddress}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.DataAddress,\n\t\t\t\tjsonSchema: async () => DataAddress as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.EndpointProperty}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.EndpointProperty,\n\t\t\t\tjsonSchema: async () => EndpointProperty as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferCompletionMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferCompletionMessage,\n\t\t\t\tjsonSchema: async () => TransferCompletionMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferError,\n\t\t\t\tjsonSchema: async () => TransferError as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferProcess}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferProcess,\n\t\t\t\tjsonSchema: async () => TransferProcess as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferRequestMessage,\n\t\t\t\tjsonSchema: async () => TransferRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferStartMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferStartMessage,\n\t\t\t\tjsonSchema: async () => TransferStartMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferSuspensionMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferSuspensionMessage,\n\t\t\t\tjsonSchema: async () => TransferSuspensionMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferTerminationMessage,\n\t\t\t\tjsonSchema: async () => TransferTerminationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
package/dist/es/index.js CHANGED
@@ -1,8 +1,15 @@
1
- // Copyright 2024 IOTA Stiftung.
1
+ // Copyright 2025 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
- export * from "./dataTypes/contractNegotiationDataTypes.js";
4
- export * from "./models/contractNegotiation/contractNegotiationContexts.js";
5
- export * from "./models/contractNegotiation/contractNegotiationContextType.js";
3
+ export * from "./models/dataspaceProtocolContexts.js";
4
+ export * from "./models/dataspaceProtocolContextType.js";
5
+ export * from "./dataTypes/dataspaceProtocolDataTypes.js";
6
+ // Catalog Protocol
7
+ export * from "./models/catalog/catalogTypes.js";
8
+ export * from "./models/catalog/ICatalogError.js";
9
+ export * from "./models/catalog/ICatalogRequestMessage.js";
10
+ export * from "./models/catalog/IDatasetRequestMessage.js";
11
+ export * from "./dataTypes/catalogDataTypes.js";
12
+ // Contract Negotiation Protocol
6
13
  export * from "./models/contractNegotiation/contractNegotiationTypes.js";
7
14
  export * from "./models/contractNegotiation/IContractAgreementMessage.js";
8
15
  export * from "./models/contractNegotiation/IContractAgreementVerificationMessage.js";
@@ -14,4 +21,18 @@ export * from "./models/contractNegotiation/IContractOfferMessage.js";
14
21
  export * from "./models/contractNegotiation/IContractRequestMessage.js";
15
22
  export * from "./models/contractNegotiation/types/contractNegotiationEventType.js";
16
23
  export * from "./models/contractNegotiation/types/contractNegotiationStateType.js";
24
+ export * from "./dataTypes/contractNegotiationDataTypes.js";
25
+ // Transfer Process Protocol
26
+ export * from "./models/transferProcess/transferProcessTypes.js";
27
+ export * from "./models/transferProcess/IDataAddress.js";
28
+ export * from "./models/transferProcess/IEndpointProperty.js";
29
+ export * from "./models/transferProcess/ITransferCompletionMessage.js";
30
+ export * from "./models/transferProcess/ITransferError.js";
31
+ export * from "./models/transferProcess/ITransferProcess.js";
32
+ export * from "./models/transferProcess/ITransferRequestMessage.js";
33
+ export * from "./models/transferProcess/ITransferStartMessage.js";
34
+ export * from "./models/transferProcess/ITransferSuspensionMessage.js";
35
+ export * from "./models/transferProcess/ITransferTerminationMessage.js";
36
+ export * from "./models/transferProcess/types/transferProcessStateType.js";
37
+ export * from "./dataTypes/transferProcessDataTypes.js";
17
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uEAAuE,CAAC;AACtF,cAAc,sDAAsD,CAAC;AACrE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kEAAkE,CAAC;AACjF,cAAc,wEAAwE,CAAC;AACvF,cAAc,uDAAuD,CAAC;AACtE,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,oEAAoE,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/contractNegotiationDataTypes.js\";\nexport * from \"./models/contractNegotiation/contractNegotiationContexts.js\";\nexport * from \"./models/contractNegotiation/contractNegotiationContextType.js\";\nexport * from \"./models/contractNegotiation/contractNegotiationTypes.js\";\nexport * from \"./models/contractNegotiation/IContractAgreementMessage.js\";\nexport * from \"./models/contractNegotiation/IContractAgreementVerificationMessage.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiation.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationError.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationEventMessage.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationTerminationMessage.js\";\nexport * from \"./models/contractNegotiation/IContractOfferMessage.js\";\nexport * from \"./models/contractNegotiation/IContractRequestMessage.js\";\nexport * from \"./models/contractNegotiation/types/contractNegotiationEventType.js\";\nexport * from \"./models/contractNegotiation/types/contractNegotiationStateType.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAE1D,mBAAmB;AACnB,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAE3D,cAAc,iCAAiC,CAAC;AAEhD,gCAAgC;AAChC,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uEAAuE,CAAC;AACtF,cAAc,sDAAsD,CAAC;AACrE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kEAAkE,CAAC;AACjF,cAAc,wEAAwE,CAAC;AACvF,cAAc,uDAAuD,CAAC;AACtE,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,oEAAoE,CAAC;AAEnF,cAAc,6CAA6C,CAAC;AAE5D,4BAA4B;AAC5B,cAAc,kDAAkD,CAAC;AACjE,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,wDAAwD,CAAC;AACvE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wDAAwD,CAAC;AACvE,cAAc,yDAAyD,CAAC;AACxE,cAAc,4DAA4D,CAAC;AAE3E,cAAc,yCAAyC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/dataspaceProtocolContexts.js\";\nexport * from \"./models/dataspaceProtocolContextType.js\";\nexport * from \"./dataTypes/dataspaceProtocolDataTypes.js\";\n\n// Catalog Protocol\nexport * from \"./models/catalog/catalogTypes.js\";\nexport * from \"./models/catalog/ICatalogError.js\";\nexport * from \"./models/catalog/ICatalogRequestMessage.js\";\nexport * from \"./models/catalog/IDatasetRequestMessage.js\";\n\nexport * from \"./dataTypes/catalogDataTypes.js\";\n\n// Contract Negotiation Protocol\nexport * from \"./models/contractNegotiation/contractNegotiationTypes.js\";\nexport * from \"./models/contractNegotiation/IContractAgreementMessage.js\";\nexport * from \"./models/contractNegotiation/IContractAgreementVerificationMessage.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiation.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationError.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationEventMessage.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationTerminationMessage.js\";\nexport * from \"./models/contractNegotiation/IContractOfferMessage.js\";\nexport * from \"./models/contractNegotiation/IContractRequestMessage.js\";\nexport * from \"./models/contractNegotiation/types/contractNegotiationEventType.js\";\nexport * from \"./models/contractNegotiation/types/contractNegotiationStateType.js\";\n\nexport * from \"./dataTypes/contractNegotiationDataTypes.js\";\n\n// Transfer Process Protocol\nexport * from \"./models/transferProcess/transferProcessTypes.js\";\nexport * from \"./models/transferProcess/IDataAddress.js\";\nexport * from \"./models/transferProcess/IEndpointProperty.js\";\nexport * from \"./models/transferProcess/ITransferCompletionMessage.js\";\nexport * from \"./models/transferProcess/ITransferError.js\";\nexport * from \"./models/transferProcess/ITransferProcess.js\";\nexport * from \"./models/transferProcess/ITransferRequestMessage.js\";\nexport * from \"./models/transferProcess/ITransferStartMessage.js\";\nexport * from \"./models/transferProcess/ITransferSuspensionMessage.js\";\nexport * from \"./models/transferProcess/ITransferTerminationMessage.js\";\nexport * from \"./models/transferProcess/types/transferProcessStateType.js\";\n\nexport * from \"./dataTypes/transferProcessDataTypes.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ICatalogError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICatalogError.js","sourceRoot":"","sources":["../../../../src/models/catalog/ICatalogError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Error.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error\n */\nexport interface ICatalogError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.CatalogError;\n\n\t/**\n\t * The error code.\n\t */\n\tcode: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ICatalogRequestMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICatalogRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/ICatalogRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message\n */\nexport interface ICatalogRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.CatalogRequestMessage;\n\n\t/**\n\t * An implementation-specific query or filter expression.\n\t */\n\tfilter?: unknown[];\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDatasetRequestMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDatasetRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDatasetRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Dataset Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#dataset-request-message\n */\nexport interface IDatasetRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.DatasetRequestMessage;\n\n\t/**\n\t * The identifier of the dataset.\n\t */\n\tdataset: string;\n}\n"]}
@@ -0,0 +1,22 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ /**
4
+ * The types for Dataspace Protocol Catalog Protocol.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const CatalogTypes = {
9
+ /**
10
+ * Catalog Request Message.
11
+ */
12
+ CatalogRequestMessage: "CatalogRequestMessage",
13
+ /**
14
+ * Dataset Request Message.
15
+ */
16
+ DatasetRequestMessage: "DatasetRequestMessage",
17
+ /**
18
+ * Catalog Error.
19
+ */
20
+ CatalogError: "CatalogError"
21
+ };
22
+ //# sourceMappingURL=catalogTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogTypes.js","sourceRoot":"","sources":["../../../../src/models/catalog/catalogTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;OAEG;IACH,YAAY,EAAE,cAAc;CACnB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Catalog Protocol.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const CatalogTypes = {\n\t/**\n\t * Catalog Request Message.\n\t */\n\tCatalogRequestMessage: \"CatalogRequestMessage\",\n\n\t/**\n\t * Dataset Request Message.\n\t */\n\tDatasetRequestMessage: \"DatasetRequestMessage\",\n\n\t/**\n\t * Catalog Error.\n\t */\n\tCatalogError: \"CatalogError\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Catalog Protocol.\n */\nexport type CatalogTypes = (typeof CatalogTypes)[keyof typeof CatalogTypes];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IContractAgreementMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractAgreementMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlAgreement } from \"@twin.org/standards-w3c-odrl\";\nimport type { ContractNegotiationContextType } from \"./contractNegotiationContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message\n */\nexport interface IContractAgreementMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": ContractNegotiationContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractAgreementMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The agreement being sent.\n\t */\n\tagreement: IOdrlAgreement;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
1
+ {"version":3,"file":"IContractAgreementMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractAgreementMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlAgreement } from \"@twin.org/standards-w3c-odrl\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message\n */\nexport interface IContractAgreementMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractAgreementMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The agreement being sent.\n\t */\n\tagreement: IOdrlAgreement;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IContractAgreementVerificationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractAgreementVerificationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ContractNegotiationContextType } from \"./contractNegotiationContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Verification Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-verification-message\n */\nexport interface IContractAgreementVerificationMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": ContractNegotiationContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractAgreementVerificationMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n}\n"]}
1
+ {"version":3,"file":"IContractAgreementVerificationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractAgreementVerificationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Verification Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-verification-message\n */\nexport interface IContractAgreementVerificationMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractAgreementVerificationMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IContractNegotiation.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ContractNegotiationContextType } from \"./contractNegotiationContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { ContractNegotiationStateType } from \"./types/contractNegotiationStateType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-contract-negotiation\n */\nexport interface IContractNegotiation {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": ContractNegotiationContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiation;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\tstate: ContractNegotiationStateType;\n}\n"]}
1
+ {"version":3,"file":"IContractNegotiation.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { ContractNegotiationStateType } from \"./types/contractNegotiationStateType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-contract-negotiation\n */\nexport interface IContractNegotiation {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiation;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\tstate: ContractNegotiationStateType;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IContractNegotiationError.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ContractNegotiationContextType } from \"./contractNegotiationContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Error Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error\n */\nexport interface IContractNegotiationError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": ContractNegotiationContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationError;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The error code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\treason?: {\n\t\t\"@value\": string;\n\t\t\"@language\"?: string;\n\t}[];\n\n\t/**\n\t * The error description(s).\n\t */\n\tdescription?: {\n\t\t\"@value\": string;\n\t\t\"@language\"?: string;\n\t}[];\n}\n"]}
1
+ {"version":3,"file":"IContractNegotiationError.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Error Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error\n */\nexport interface IContractNegotiationError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationError;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The error code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IContractNegotiationEventMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationEventMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ContractNegotiationContextType } from \"./contractNegotiationContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { ContractNegotiationEventType } from \"./types/contractNegotiationEventType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Event Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message\n */\nexport interface IContractNegotiationEventMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": ContractNegotiationContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationEventMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The event type.\n\t */\n\tevent: ContractNegotiationEventType;\n}\n"]}
1
+ {"version":3,"file":"IContractNegotiationEventMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationEventMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\nimport type { ContractNegotiationEventType } from \"./types/contractNegotiationEventType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Event Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message\n */\nexport interface IContractNegotiationEventMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationEventMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The event type.\n\t */\n\tevent: ContractNegotiationEventType;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IContractNegotiationTerminationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationTerminationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ContractNegotiationContextType } from \"./contractNegotiationContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Termination Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-termination-message\n */\nexport interface IContractNegotiationTerminationMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": ContractNegotiationContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationTerminationMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The termination code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The termination reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
1
+ {"version":3,"file":"IContractNegotiationTerminationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationTerminationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Termination Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-termination-message\n */\nexport interface IContractNegotiationTerminationMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationTerminationMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The termination code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The termination reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IContractOfferMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractOfferMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { ContractNegotiationContextType } from \"./contractNegotiationContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Offer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-message\n */\nexport interface IContractOfferMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": ContractNegotiationContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractOfferMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid?: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\toffer: IOdrlOffer;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
1
+ {"version":3,"file":"IContractOfferMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractOfferMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Offer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-message\n */\nexport interface IContractOfferMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractOfferMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid?: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\toffer: IOdrlOffer;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IContractRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { ContractNegotiationContextType } from \"./contractNegotiationContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-message\n */\nexport interface IContractRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": ContractNegotiationContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractRequestMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid?: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\toffer: IOdrlOffer;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
1
+ {"version":3,"file":"IContractRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-message\n */\nexport interface IContractRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractRequestMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid?: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\toffer: IOdrlOffer;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
@@ -1,4 +1,4 @@
1
- // Copyright 2024 IOTA Stiftung.
1
+ // Copyright 2025 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  /**
4
4
  * The types for Dataspace Protocol Contract Negotiation.
@@ -1 +1 @@
1
- {"version":3,"file":"contractNegotiationTypes.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/contractNegotiationTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,oCAAoC,EAAE,sCAAsC;IAE5E;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,qCAAqC,EAAE,uCAAuC;IAE9E;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;CAC5D,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#message-types-0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationTypes = {\n\t/**\n\t * Contract Negotiation.\n\t */\n\tContractNegotiation: \"ContractNegotiation\",\n\n\t/**\n\t * Contract Request Message.\n\t */\n\tContractRequestMessage: \"ContractRequestMessage\",\n\n\t/**\n\t * Contract Offer Message.\n\t */\n\tContractOfferMessage: \"ContractOfferMessage\",\n\n\t/**\n\t * Contract Agreement Message.\n\t */\n\tContractAgreementMessage: \"ContractAgreementMessage\",\n\n\t/**\n\t * Contract Agreement Verification Message.\n\t */\n\tContractAgreementVerificationMessage: \"ContractAgreementVerificationMessage\",\n\n\t/**\n\t * Contract Negotiation Event Message.\n\t */\n\tContractNegotiationEventMessage: \"ContractNegotiationEventMessage\",\n\n\t/**\n\t * Contract Negotiation Termination Message.\n\t */\n\tContractNegotiationTerminationMessage: \"ContractNegotiationTerminationMessage\",\n\n\t/**\n\t * Contract Negotiation Error.\n\t */\n\tContractNegotiationError: \"ContractNegotiationError\",\n\n\t/**\n\t * Contract Negotiation Event Type.\n\t */\n\tContractNegotiationEventType: \"ContractNegotiationEventType\",\n\n\t/**\n\t * Contract Negotiation State Type.\n\t */\n\tContractNegotiationStateType: \"ContractNegotiationStateType\"\n};\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n */\nexport type ContractNegotiationTypes =\n\t(typeof ContractNegotiationTypes)[keyof typeof ContractNegotiationTypes];\n"]}
1
+ {"version":3,"file":"contractNegotiationTypes.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/contractNegotiationTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,oCAAoC,EAAE,sCAAsC;IAE5E;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,qCAAqC,EAAE,uCAAuC;IAE9E;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;CAC5D,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#message-types-0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationTypes = {\n\t/**\n\t * Contract Negotiation.\n\t */\n\tContractNegotiation: \"ContractNegotiation\",\n\n\t/**\n\t * Contract Request Message.\n\t */\n\tContractRequestMessage: \"ContractRequestMessage\",\n\n\t/**\n\t * Contract Offer Message.\n\t */\n\tContractOfferMessage: \"ContractOfferMessage\",\n\n\t/**\n\t * Contract Agreement Message.\n\t */\n\tContractAgreementMessage: \"ContractAgreementMessage\",\n\n\t/**\n\t * Contract Agreement Verification Message.\n\t */\n\tContractAgreementVerificationMessage: \"ContractAgreementVerificationMessage\",\n\n\t/**\n\t * Contract Negotiation Event Message.\n\t */\n\tContractNegotiationEventMessage: \"ContractNegotiationEventMessage\",\n\n\t/**\n\t * Contract Negotiation Termination Message.\n\t */\n\tContractNegotiationTerminationMessage: \"ContractNegotiationTerminationMessage\",\n\n\t/**\n\t * Contract Negotiation Error.\n\t */\n\tContractNegotiationError: \"ContractNegotiationError\",\n\n\t/**\n\t * Contract Negotiation Event Type.\n\t */\n\tContractNegotiationEventType: \"ContractNegotiationEventType\",\n\n\t/**\n\t * Contract Negotiation State Type.\n\t */\n\tContractNegotiationStateType: \"ContractNegotiationStateType\"\n};\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n */\nexport type ContractNegotiationTypes =\n\t(typeof ContractNegotiationTypes)[keyof typeof ContractNegotiationTypes];\n"]}
@@ -1,4 +1,4 @@
1
- // Copyright 2024 IOTA Stiftung.
1
+ // Copyright 2025 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  /**
4
4
  * The types for Dataspace Protocol Contract Negotiation Events.
@@ -1 +1 @@
1
- {"version":3,"file":"contractNegotiationEventType.js","sourceRoot":"","sources":["../../../../../src/models/contractNegotiation/types/contractNegotiationEventType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;CACb,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation Events.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationEventType = {\n\t/**\n\t * Accepted.\n\t */\n\tACCEPTED: \"ACCEPTED\",\n\n\t/**\n\t * Finalized.\n\t */\n\tFINALIZED: \"FINALIZED\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Contract Negotiation Events.\n */\nexport type ContractNegotiationEventType =\n\t(typeof ContractNegotiationEventType)[keyof typeof ContractNegotiationEventType];\n"]}
1
+ {"version":3,"file":"contractNegotiationEventType.js","sourceRoot":"","sources":["../../../../../src/models/contractNegotiation/types/contractNegotiationEventType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;CACb,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation Events.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationEventType = {\n\t/**\n\t * Accepted.\n\t */\n\tACCEPTED: \"ACCEPTED\",\n\n\t/**\n\t * Finalized.\n\t */\n\tFINALIZED: \"FINALIZED\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Contract Negotiation Events.\n */\nexport type ContractNegotiationEventType =\n\t(typeof ContractNegotiationEventType)[keyof typeof ContractNegotiationEventType];\n"]}
@@ -1,4 +1,4 @@
1
- // Copyright 2024 IOTA Stiftung.
1
+ // Copyright 2025 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  /**
4
4
  * The types for Dataspace Protocol Contract Negotiation States.
@@ -1 +1 @@
1
- {"version":3,"file":"contractNegotiationStateType.js","sourceRoot":"","sources":["../../../../../src/models/contractNegotiation/types/contractNegotiationStateType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,UAAU,EAAE,YAAY;CACf,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation States.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-states\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationStateType = {\n\t/**\n\t * Requested.\n\t */\n\tREQUESTED: \"REQUESTED\",\n\n\t/**\n\t * Offered.\n\t */\n\tOFFERED: \"OFFERED\",\n\n\t/**\n\t * Accepted.\n\t */\n\tACCEPTED: \"ACCEPTED\",\n\n\t/**\n\t * Agreed.\n\t */\n\tAGREED: \"AGREED\",\n\n\t/**\n\t * Verified.\n\t */\n\tVERIFIED: \"VERIFIED\",\n\n\t/**\n\t * Finalized.\n\t */\n\tFINALIZED: \"FINALIZED\",\n\n\t/**\n\t * Terminated.\n\t */\n\tTERMINATED: \"TERMINATED\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Contract Negotiation States.\n */\nexport type ContractNegotiationStateType =\n\t(typeof ContractNegotiationStateType)[keyof typeof ContractNegotiationStateType];\n"]}
1
+ {"version":3,"file":"contractNegotiationStateType.js","sourceRoot":"","sources":["../../../../../src/models/contractNegotiation/types/contractNegotiationStateType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,UAAU,EAAE,YAAY;CACf,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation States.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-states\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationStateType = {\n\t/**\n\t * Requested.\n\t */\n\tREQUESTED: \"REQUESTED\",\n\n\t/**\n\t * Offered.\n\t */\n\tOFFERED: \"OFFERED\",\n\n\t/**\n\t * Accepted.\n\t */\n\tACCEPTED: \"ACCEPTED\",\n\n\t/**\n\t * Agreed.\n\t */\n\tAGREED: \"AGREED\",\n\n\t/**\n\t * Verified.\n\t */\n\tVERIFIED: \"VERIFIED\",\n\n\t/**\n\t * Finalized.\n\t */\n\tFINALIZED: \"FINALIZED\",\n\n\t/**\n\t * Terminated.\n\t */\n\tTERMINATED: \"TERMINATED\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Contract Negotiation States.\n */\nexport type ContractNegotiationStateType =\n\t(typeof ContractNegotiationStateType)[keyof typeof ContractNegotiationStateType];\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataspaceProtocolContextType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataspaceProtocolContextType.js","sourceRoot":"","sources":["../../../src/models/dataspaceProtocolContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { DataspaceProtocolContexts } from \"./dataspaceProtocolContexts.js\";\n\n/**\n * The Dataspace Protocol Protocol JSON-LD context type.\n */\nexport type DataspaceProtocolContextType =\n\t| [typeof DataspaceProtocolContexts.ContextRoot]\n\t| [\n\t\t\t...IJsonLdContextDefinitionElement[],\n\t\t\ttypeof DataspaceProtocolContexts.ContextRoot,\n\t\t\tIJsonLdContextDefinitionElement\n\t ]\n\t| [\n\t\t\tIJsonLdContextDefinitionElement,\n\t\t\ttypeof DataspaceProtocolContexts.ContextRoot,\n\t\t\t...IJsonLdContextDefinitionElement[]\n\t ];\n"]}