@twin.org/standards-dataspace-protocol 0.0.3-next.4 → 0.0.3-next.6

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 (100) 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/{dataspaceProtolDataTypes.js → contractNegotiationDataTypes.js} +3 -29
  4. package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +1 -0
  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 +16 -1
  10. package/dist/es/index.js.map +1 -1
  11. package/dist/es/models/catalog/ICatalogError.js.map +1 -1
  12. package/dist/es/models/catalog/ICatalogRequestMessage.js.map +1 -1
  13. package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +1 -1
  14. package/dist/es/models/dataspaceProtocolContextType.js.map +1 -1
  15. package/dist/es/models/transferProcess/IDataAddress.js +2 -0
  16. package/dist/es/models/transferProcess/IDataAddress.js.map +1 -0
  17. package/dist/es/models/transferProcess/IEndpointProperty.js +2 -0
  18. package/dist/es/models/transferProcess/IEndpointProperty.js.map +1 -0
  19. package/dist/es/models/transferProcess/ITransferCompletionMessage.js +2 -0
  20. package/dist/es/models/transferProcess/ITransferCompletionMessage.js.map +1 -0
  21. package/dist/es/models/transferProcess/ITransferError.js +2 -0
  22. package/dist/es/models/transferProcess/ITransferError.js.map +1 -0
  23. package/dist/es/models/transferProcess/ITransferProcess.js +2 -0
  24. package/dist/es/models/transferProcess/ITransferProcess.js.map +1 -0
  25. package/dist/es/models/transferProcess/ITransferRequestMessage.js +2 -0
  26. package/dist/es/models/transferProcess/ITransferRequestMessage.js.map +1 -0
  27. package/dist/es/models/transferProcess/ITransferStartMessage.js +2 -0
  28. package/dist/es/models/transferProcess/ITransferStartMessage.js.map +1 -0
  29. package/dist/es/models/transferProcess/ITransferSuspensionMessage.js +4 -0
  30. package/dist/es/models/transferProcess/ITransferSuspensionMessage.js.map +1 -0
  31. package/dist/es/models/transferProcess/ITransferTerminationMessage.js +2 -0
  32. package/dist/es/models/transferProcess/ITransferTerminationMessage.js.map +1 -0
  33. package/dist/es/models/transferProcess/transferProcessTypes.js +46 -0
  34. package/dist/es/models/transferProcess/transferProcessTypes.js.map +1 -0
  35. package/dist/es/models/transferProcess/types/transferProcessStateType.js +30 -0
  36. package/dist/es/models/transferProcess/types/transferProcessStateType.js.map +1 -0
  37. package/dist/es/schemas/CatalogError.json +11 -8
  38. package/dist/es/schemas/CatalogRequestMessage.json +10 -3
  39. package/dist/es/schemas/ContractAgreementMessage.json +8 -3
  40. package/dist/es/schemas/ContractAgreementVerificationMessage.json +8 -3
  41. package/dist/es/schemas/ContractNegotiation.json +8 -3
  42. package/dist/es/schemas/ContractNegotiationError.json +9 -37
  43. package/dist/es/schemas/ContractNegotiationEventMessage.json +8 -3
  44. package/dist/es/schemas/ContractNegotiationTerminationMessage.json +8 -3
  45. package/dist/es/schemas/ContractOfferMessage.json +8 -3
  46. package/dist/es/schemas/ContractRequestMessage.json +8 -3
  47. package/dist/es/schemas/DataAddress.json +33 -0
  48. package/dist/es/schemas/DatasetRequestMessage.json +8 -3
  49. package/dist/es/schemas/EndpointProperty.json +27 -0
  50. package/dist/es/schemas/TransferCompletionMessage.json +74 -0
  51. package/dist/es/schemas/TransferError.json +83 -0
  52. package/dist/es/schemas/TransferProcess.json +109 -0
  53. package/dist/es/schemas/TransferRequestMessage.json +88 -0
  54. package/dist/es/schemas/TransferStartMessage.json +78 -0
  55. package/dist/es/schemas/TransferSuspensionMessage.json +83 -0
  56. package/dist/es/schemas/TransferTerminationMessage.json +83 -0
  57. package/dist/types/dataTypes/catalogDataTypes.d.ts +9 -0
  58. package/dist/types/dataTypes/contractNegotiationDataTypes.d.ts +9 -0
  59. package/dist/types/dataTypes/transferProcessDataTypes.d.ts +9 -0
  60. package/dist/types/index.d.ts +15 -1
  61. package/dist/types/models/catalog/ICatalogError.d.ts +2 -2
  62. package/dist/types/models/catalog/ICatalogRequestMessage.d.ts +1 -1
  63. package/dist/types/models/contractNegotiation/IContractNegotiationError.d.ts +1 -11
  64. package/dist/types/models/dataspaceProtocolContextType.d.ts +2 -2
  65. package/dist/types/models/transferProcess/IDataAddress.d.ts +24 -0
  66. package/dist/types/models/transferProcess/IEndpointProperty.d.ts +19 -0
  67. package/dist/types/models/transferProcess/ITransferCompletionMessage.d.ts +24 -0
  68. package/dist/types/models/transferProcess/ITransferError.d.ts +32 -0
  69. package/dist/types/models/transferProcess/ITransferProcess.d.ts +29 -0
  70. package/dist/types/models/transferProcess/ITransferRequestMessage.d.ts +39 -0
  71. package/dist/types/models/transferProcess/ITransferStartMessage.d.ts +30 -0
  72. package/dist/types/models/transferProcess/ITransferSuspensionMessage.d.ts +32 -0
  73. package/dist/types/models/transferProcess/ITransferTerminationMessage.d.ts +32 -0
  74. package/dist/types/models/transferProcess/transferProcessTypes.d.ts +46 -0
  75. package/dist/types/models/transferProcess/types/transferProcessStateType.d.ts +30 -0
  76. package/docs/changelog.md +35 -0
  77. package/docs/reference/classes/CatalogDataTypes.md +25 -0
  78. package/docs/reference/classes/ContractNegotiationDataTypes.md +25 -0
  79. package/docs/reference/classes/TransferProcessDataTypes.md +25 -0
  80. package/docs/reference/index.md +16 -0
  81. package/docs/reference/interfaces/ICatalogError.md +3 -3
  82. package/docs/reference/interfaces/ICatalogRequestMessage.md +1 -1
  83. package/docs/reference/interfaces/IContractNegotiationError.md +1 -25
  84. package/docs/reference/interfaces/IDataAddress.md +36 -0
  85. package/docs/reference/interfaces/IEndpointProperty.md +28 -0
  86. package/docs/reference/interfaces/ITransferCompletionMessage.md +36 -0
  87. package/docs/reference/interfaces/ITransferError.md +52 -0
  88. package/docs/reference/interfaces/ITransferProcess.md +74 -0
  89. package/docs/reference/interfaces/ITransferRequestMessage.md +62 -0
  90. package/docs/reference/interfaces/ITransferStartMessage.md +45 -0
  91. package/docs/reference/interfaces/ITransferSuspensionMessage.md +52 -0
  92. package/docs/reference/interfaces/ITransferTerminationMessage.md +52 -0
  93. package/docs/reference/type-aliases/DataspaceProtocolContextType.md +2 -2
  94. package/docs/reference/type-aliases/TransferProcessStateType.md +5 -0
  95. package/docs/reference/type-aliases/TransferProcessTypes.md +5 -0
  96. package/docs/reference/variables/TransferProcessStateType.md +38 -0
  97. package/docs/reference/variables/TransferProcessTypes.md +62 -0
  98. package/package.json +3 -3
  99. package/dist/es/dataTypes/dataspaceProtolDataTypes.js.map +0 -1
  100. /package/dist/types/dataTypes/{dataspaceProtolDataTypes.d.ts → dataspaceProtocolDataTypes.d.ts} +0 -0
@@ -0,0 +1,52 @@
1
+ # Interface: ITransferTerminationMessage
2
+
3
+ Interface for Dataspace Protocol Transfer Messages.
4
+ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-termination-message
5
+
6
+ ## Properties
7
+
8
+ ### @context
9
+
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
+
12
+ LD Context
13
+
14
+ ***
15
+
16
+ ### @type
17
+
18
+ > **@type**: `string`
19
+
20
+ LD Type
21
+
22
+ ***
23
+
24
+ ### consumerPid
25
+
26
+ > **consumerPid**: `string`
27
+
28
+ MUST refer to the transfer identifier of the Consumer side.
29
+
30
+ ***
31
+
32
+ ### providerPid
33
+
34
+ > **providerPid**: `string`
35
+
36
+ MUST refer to the transfer identifier of the Provider side.
37
+
38
+ ***
39
+
40
+ ### code?
41
+
42
+ > `optional` **code**: `string`
43
+
44
+ The termination code.
45
+
46
+ ***
47
+
48
+ ### reason?
49
+
50
+ > `optional` **reason**: `any`[]
51
+
52
+ The termination reason(s).
@@ -1,5 +1,5 @@
1
1
  # Type Alias: DataspaceProtocolContextType
2
2
 
3
- > **DataspaceProtocolContextType** = *typeof* [`ContextRoot`](../variables/DataspaceProtocolContexts.md#contextroot) \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`ContextRoot`](../variables/DataspaceProtocolContexts.md#contextroot), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`ContextRoot`](../variables/DataspaceProtocolContexts.md#contextroot), `...IJsonLdContextDefinitionElement[]`\]
3
+ > **DataspaceProtocolContextType** = \[*typeof* [`ContextRoot`](../variables/DataspaceProtocolContexts.md#contextroot)\] \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`ContextRoot`](../variables/DataspaceProtocolContexts.md#contextroot), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`ContextRoot`](../variables/DataspaceProtocolContexts.md#contextroot), `...IJsonLdContextDefinitionElement[]`\]
4
4
 
5
- The Dataspace Protocol Protocol JSON-LD context type.
5
+ The Dataspace Protocol JSON-LD context type.
@@ -0,0 +1,5 @@
1
+ # Type Alias: TransferProcessStateType
2
+
3
+ > **TransferProcessStateType** = *typeof* [`TransferProcessStateType`](../variables/TransferProcessStateType.md)\[keyof *typeof* [`TransferProcessStateType`](../variables/TransferProcessStateType.md)\]
4
+
5
+ The types for Dataspace Protocol Transfer.
@@ -0,0 +1,5 @@
1
+ # Type Alias: TransferProcessTypes
2
+
3
+ > **TransferProcessTypes** = *typeof* [`TransferProcessTypes`](../variables/TransferProcessTypes.md)\[keyof *typeof* [`TransferProcessTypes`](../variables/TransferProcessTypes.md)\]
4
+
5
+ The types for Dataspace Protocol Transfer.
@@ -0,0 +1,38 @@
1
+ # Variable: TransferProcessStateType
2
+
3
+ > `const` **TransferProcessStateType**: `object`
4
+
5
+ The states for Dataspace Protocol Transfer Process.
6
+ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#ack-transfer-process
7
+
8
+ ## Type Declaration
9
+
10
+ ### COMPLETED
11
+
12
+ > **COMPLETED**: `string` = `"COMPLETED"`
13
+
14
+ Completed
15
+
16
+ ### REQUESTED
17
+
18
+ > **REQUESTED**: `string` = `"REQUESTED"`
19
+
20
+ Requested
21
+
22
+ ### STARTED
23
+
24
+ > **STARTED**: `string` = `"STARTED"`
25
+
26
+ Started
27
+
28
+ ### SUSPENDED
29
+
30
+ > **SUSPENDED**: `string` = `"SUSPENDED"`
31
+
32
+ Suspended
33
+
34
+ ### TERMINATED
35
+
36
+ > **TERMINATED**: `string` = `"TERMINATED"`
37
+
38
+ Terminated
@@ -0,0 +1,62 @@
1
+ # Variable: TransferProcessTypes
2
+
3
+ > `const` **TransferProcessTypes**: `object`
4
+
5
+ The types for Dataspace Protocol Transfer Process.
6
+ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#message-types-1
7
+
8
+ ## Type Declaration
9
+
10
+ ### TransferRequestMessage
11
+
12
+ > **TransferRequestMessage**: `string` = `"TransferRequestMessage"`
13
+
14
+ Transfer Request Message.
15
+
16
+ ### TransferStartMessage
17
+
18
+ > **TransferStartMessage**: `string` = `"TransferStartMessage"`
19
+
20
+ Transfer Start Message.
21
+
22
+ ### TransferSuspensionMessage
23
+
24
+ > **TransferSuspensionMessage**: `string` = `"TransferSuspensionMessage"`
25
+
26
+ Transfer Suspension Message.
27
+
28
+ ### TransferCompletionMessage
29
+
30
+ > **TransferCompletionMessage**: `string` = `"TransferCompletionMessage"`
31
+
32
+ Transfer Completion Message.
33
+
34
+ ### TransferTerminationMessage
35
+
36
+ > **TransferTerminationMessage**: `string` = `"TransferTerminationMessage"`
37
+
38
+ Transfer Termination Message.
39
+
40
+ ### DataAddress
41
+
42
+ > **DataAddress**: `string` = `"DataAddress"`
43
+
44
+ Data Address
45
+
46
+ ### EndpointProperty
47
+
48
+ > **EndpointProperty**: `string` = `"EndpointProperty"`
49
+
50
+ Endpoint property.
51
+
52
+ ### TransferProcess
53
+
54
+ > **TransferProcess**: `string` = `"TransferProcess"`
55
+
56
+ Transfer Process
57
+
58
+ ### TransferError
59
+
60
+ > **TransferError**: `string` = `"TransferError"`
61
+
62
+ Transfer Error.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-dataspace-protocol",
3
- "version": "0.0.3-next.4",
3
+ "version": "0.0.3-next.6",
4
4
  "description": "Models which define the structure of Dataspace Protocol",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,8 +17,8 @@
17
17
  "@twin.org/core": "next",
18
18
  "@twin.org/data-core": "next",
19
19
  "@twin.org/data-json-ld": "next",
20
- "@twin.org/standards-w3c-dcat": "0.0.3-next.4",
21
- "@twin.org/standards-w3c-odrl": "0.0.3-next.4",
20
+ "@twin.org/standards-w3c-dcat": "0.0.3-next.6",
21
+ "@twin.org/standards-w3c-odrl": "0.0.3-next.6",
22
22
  "@twin.org/web": "next"
23
23
  },
24
24
  "main": "./dist/es/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataspaceProtolDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/dataspaceProtolDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAC;AACrG,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,wBAAwB,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACtG,OAAO,oCAAoC,MAAM,sDAAsD,CAA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wB,CAAC,4BAA4B;YAC3D,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,4BAA2C;SACnE,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,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 { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { CatalogTypes } from \"../models/catalog/catalogTypes.js\";\nimport { ContractNegotiationTypes } from \"../models/contractNegotiation/contractNegotiationTypes.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 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\" };\nimport DatasetRequestMessage from \"../schemas/DatasetRequestMessage.json\" with { type: \"json\" };\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\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\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"]}