@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,83 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/TransferSuspensionMessage",
4
+ "description": "Interface for Dataspace Protocol Transfer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-suspension-message",
5
+ "type": "object",
6
+ "properties": {
7
+ "@context": {
8
+ "description": "The Dataspace Protocol Protocol JSON-LD context type.",
9
+ "anyOf": [
10
+ {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "string",
14
+ "const": "https://w3id.org/dspace/2025/1/context.json"
15
+ },
16
+ "minItems": 1,
17
+ "maxItems": 1
18
+ },
19
+ {
20
+ "type": "array",
21
+ "minItems": 2,
22
+ "prefixItems": [
23
+ {
24
+ "type": "string",
25
+ "const": "https://w3id.org/dspace/2025/1/context.json"
26
+ },
27
+ {
28
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
29
+ }
30
+ ],
31
+ "items": {
32
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
33
+ }
34
+ },
35
+ {
36
+ "type": "array",
37
+ "minItems": 2,
38
+ "prefixItems": [
39
+ {
40
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
41
+ },
42
+ {
43
+ "type": "string",
44
+ "const": "https://w3id.org/dspace/2025/1/context.json"
45
+ }
46
+ ],
47
+ "items": {
48
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
49
+ }
50
+ }
51
+ ]
52
+ },
53
+ "@type": {
54
+ "type": "string",
55
+ "const": "TransferSuspensionMessage",
56
+ "description": "LD Type"
57
+ },
58
+ "consumerPid": {
59
+ "type": "string",
60
+ "description": "MUST refer to the transfer identifier of the Consumer side."
61
+ },
62
+ "providerPid": {
63
+ "type": "string",
64
+ "description": "MUST refer to the transfer identifier of the Provider side."
65
+ },
66
+ "code": {
67
+ "type": "string",
68
+ "description": "The suspension code."
69
+ },
70
+ "reason": {
71
+ "type": "array",
72
+ "items": {},
73
+ "description": "The suspension reason(s)."
74
+ }
75
+ },
76
+ "required": [
77
+ "@context",
78
+ "@type",
79
+ "consumerPid",
80
+ "providerPid"
81
+ ],
82
+ "additionalProperties": false
83
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/TransferTerminationMessage",
4
+ "description": "Interface for Dataspace Protocol Transfer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-termination-message",
5
+ "type": "object",
6
+ "properties": {
7
+ "@context": {
8
+ "description": "The Dataspace Protocol Protocol JSON-LD context type.",
9
+ "anyOf": [
10
+ {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "string",
14
+ "const": "https://w3id.org/dspace/2025/1/context.json"
15
+ },
16
+ "minItems": 1,
17
+ "maxItems": 1
18
+ },
19
+ {
20
+ "type": "array",
21
+ "minItems": 2,
22
+ "prefixItems": [
23
+ {
24
+ "type": "string",
25
+ "const": "https://w3id.org/dspace/2025/1/context.json"
26
+ },
27
+ {
28
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
29
+ }
30
+ ],
31
+ "items": {
32
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
33
+ }
34
+ },
35
+ {
36
+ "type": "array",
37
+ "minItems": 2,
38
+ "prefixItems": [
39
+ {
40
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
41
+ },
42
+ {
43
+ "type": "string",
44
+ "const": "https://w3id.org/dspace/2025/1/context.json"
45
+ }
46
+ ],
47
+ "items": {
48
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
49
+ }
50
+ }
51
+ ]
52
+ },
53
+ "@type": {
54
+ "type": "string",
55
+ "const": "TransferTerminationMessage",
56
+ "description": "LD Type"
57
+ },
58
+ "consumerPid": {
59
+ "type": "string",
60
+ "description": "MUST refer to the transfer identifier of the Consumer side."
61
+ },
62
+ "providerPid": {
63
+ "type": "string",
64
+ "description": "MUST refer to the transfer identifier of the Provider side."
65
+ },
66
+ "code": {
67
+ "type": "string",
68
+ "description": "The termination code."
69
+ },
70
+ "reason": {
71
+ "type": "array",
72
+ "items": {},
73
+ "description": "The termination reason(s)."
74
+ }
75
+ },
76
+ "required": [
77
+ "@context",
78
+ "@type",
79
+ "consumerPid",
80
+ "providerPid"
81
+ ],
82
+ "additionalProperties": false
83
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Handle all the catalog data types for Dataspace Protocol.
3
+ */
4
+ export declare class CatalogDataTypes {
5
+ /**
6
+ * Register all the data types.
7
+ */
8
+ static registerTypes(): void;
9
+ }
@@ -1,11 +1,7 @@
1
1
  /**
2
- * Handle all the data types for Dataspace Protocol Contract Negotiation.
2
+ * Handle all the contract negotiation data types for Dataspace Protocol.
3
3
  */
4
4
  export declare class ContractNegotiationDataTypes {
5
- /**
6
- * Register the JSON-LD Redirects.
7
- */
8
- static registerRedirects(): void;
9
5
  /**
10
6
  * Register all the data types.
11
7
  */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Handle all the data types for Dataspace Protocol.
3
+ */
4
+ export declare class DataspaceProtocolDataTypes {
5
+ /**
6
+ * Register the JSON-LD Redirects.
7
+ */
8
+ static registerRedirects(): void;
9
+ /**
10
+ * Register all the data types.
11
+ */
12
+ static registerTypes(): void;
13
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Handle all the transfer process data types for Dataspace Protocol.
3
+ */
4
+ export declare class TransferProcessDataTypes {
5
+ /**
6
+ * Register all the data types.
7
+ */
8
+ static registerTypes(): void;
9
+ }
@@ -1,6 +1,11 @@
1
- export * from "./dataTypes/contractNegotiationDataTypes.js";
2
- export * from "./models/contractNegotiation/contractNegotiationContexts.js";
3
- export * from "./models/contractNegotiation/contractNegotiationContextType.js";
1
+ export * from "./models/dataspaceProtocolContexts.js";
2
+ export * from "./models/dataspaceProtocolContextType.js";
3
+ export * from "./dataTypes/dataspaceProtocolDataTypes.js";
4
+ export * from "./models/catalog/catalogTypes.js";
5
+ export * from "./models/catalog/ICatalogError.js";
6
+ export * from "./models/catalog/ICatalogRequestMessage.js";
7
+ export * from "./models/catalog/IDatasetRequestMessage.js";
8
+ export * from "./dataTypes/catalogDataTypes.js";
4
9
  export * from "./models/contractNegotiation/contractNegotiationTypes.js";
5
10
  export * from "./models/contractNegotiation/IContractAgreementMessage.js";
6
11
  export * from "./models/contractNegotiation/IContractAgreementVerificationMessage.js";
@@ -12,3 +17,16 @@ export * from "./models/contractNegotiation/IContractOfferMessage.js";
12
17
  export * from "./models/contractNegotiation/IContractRequestMessage.js";
13
18
  export * from "./models/contractNegotiation/types/contractNegotiationEventType.js";
14
19
  export * from "./models/contractNegotiation/types/contractNegotiationStateType.js";
20
+ export * from "./dataTypes/contractNegotiationDataTypes.js";
21
+ export * from "./models/transferProcess/transferProcessTypes.js";
22
+ export * from "./models/transferProcess/IDataAddress.js";
23
+ export * from "./models/transferProcess/IEndpointProperty.js";
24
+ export * from "./models/transferProcess/ITransferCompletionMessage.js";
25
+ export * from "./models/transferProcess/ITransferError.js";
26
+ export * from "./models/transferProcess/ITransferProcess.js";
27
+ export * from "./models/transferProcess/ITransferRequestMessage.js";
28
+ export * from "./models/transferProcess/ITransferStartMessage.js";
29
+ export * from "./models/transferProcess/ITransferSuspensionMessage.js";
30
+ export * from "./models/transferProcess/ITransferTerminationMessage.js";
31
+ export * from "./models/transferProcess/types/transferProcessStateType.js";
32
+ export * from "./dataTypes/transferProcessDataTypes.js";
@@ -0,0 +1,24 @@
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
+ import type { CatalogTypes } from "./catalogTypes.js";
3
+ /**
4
+ * Interface for Dataspace Protocol Catalog Error.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error
6
+ */
7
+ export interface ICatalogError {
8
+ /**
9
+ * The JSON-LD context.
10
+ */
11
+ "@context": DataspaceProtocolContextType;
12
+ /**
13
+ * The type of the message.
14
+ */
15
+ "@type": typeof CatalogTypes.CatalogError;
16
+ /**
17
+ * The error code.
18
+ */
19
+ code: string;
20
+ /**
21
+ * The error reason(s).
22
+ */
23
+ reason?: any[];
24
+ }
@@ -0,0 +1,20 @@
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
+ import type { CatalogTypes } from "./catalogTypes.js";
3
+ /**
4
+ * Interface for Dataspace Protocol Catalog Request Messages.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message
6
+ */
7
+ export interface ICatalogRequestMessage {
8
+ /**
9
+ * The JSON-LD context.
10
+ */
11
+ "@context": DataspaceProtocolContextType;
12
+ /**
13
+ * The type of the message.
14
+ */
15
+ "@type": typeof CatalogTypes.CatalogRequestMessage;
16
+ /**
17
+ * An implementation-specific query or filter expression.
18
+ */
19
+ filter?: unknown[];
20
+ }
@@ -0,0 +1,20 @@
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
+ import type { CatalogTypes } from "./catalogTypes.js";
3
+ /**
4
+ * Interface for Dataspace Protocol Dataset Request Messages.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#dataset-request-message
6
+ */
7
+ export interface IDatasetRequestMessage {
8
+ /**
9
+ * The JSON-LD context.
10
+ */
11
+ "@context": DataspaceProtocolContextType;
12
+ /**
13
+ * The type of the message.
14
+ */
15
+ "@type": typeof CatalogTypes.DatasetRequestMessage;
16
+ /**
17
+ * The identifier of the dataset.
18
+ */
19
+ dataset: string;
20
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * The types for Dataspace Protocol Catalog Protocol.
3
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol
4
+ */
5
+ export declare const CatalogTypes: {
6
+ /**
7
+ * Catalog Request Message.
8
+ */
9
+ readonly CatalogRequestMessage: "CatalogRequestMessage";
10
+ /**
11
+ * Dataset Request Message.
12
+ */
13
+ readonly DatasetRequestMessage: "DatasetRequestMessage";
14
+ /**
15
+ * Catalog Error.
16
+ */
17
+ readonly CatalogError: "CatalogError";
18
+ };
19
+ /**
20
+ * The types for Dataspace Protocol Catalog Protocol.
21
+ */
22
+ export type CatalogTypes = (typeof CatalogTypes)[keyof typeof CatalogTypes];
@@ -1,6 +1,6 @@
1
1
  import type { IOdrlAgreement } from "@twin.org/standards-w3c-odrl";
2
- import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
3
2
  import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
4
4
  /**
5
5
  * Interface for Dataspace Protocol Contract Agreement Messages.
6
6
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message
@@ -9,7 +9,7 @@ export interface IContractAgreementMessage {
9
9
  /**
10
10
  * The JSON-LD context.
11
11
  */
12
- "@context": ContractNegotiationContextType;
12
+ "@context": DataspaceProtocolContextType;
13
13
  /**
14
14
  * The type of the message.
15
15
  */
@@ -1,4 +1,4 @@
1
- import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
2
  import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
3
  /**
4
4
  * Interface for Dataspace Protocol Contract Agreement Verification Messages.
@@ -8,7 +8,7 @@ export interface IContractAgreementVerificationMessage {
8
8
  /**
9
9
  * The JSON-LD context.
10
10
  */
11
- "@context": ContractNegotiationContextType;
11
+ "@context": DataspaceProtocolContextType;
12
12
  /**
13
13
  * The type of the message.
14
14
  */
@@ -1,4 +1,4 @@
1
- import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
2
  import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
3
  import type { ContractNegotiationStateType } from "./types/contractNegotiationStateType.js";
4
4
  /**
@@ -9,7 +9,7 @@ export interface IContractNegotiation {
9
9
  /**
10
10
  * The JSON-LD context.
11
11
  */
12
- "@context": ContractNegotiationContextType;
12
+ "@context": DataspaceProtocolContextType;
13
13
  /**
14
14
  * The type of the message.
15
15
  */
@@ -1,4 +1,4 @@
1
- import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
2
  import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
3
  /**
4
4
  * Interface for Dataspace Protocol Contract Negotiation Error Messages.
@@ -8,7 +8,7 @@ export interface IContractNegotiationError {
8
8
  /**
9
9
  * The JSON-LD context.
10
10
  */
11
- "@context": ContractNegotiationContextType;
11
+ "@context": DataspaceProtocolContextType;
12
12
  /**
13
13
  * The type of the message.
14
14
  */
@@ -28,15 +28,5 @@ export interface IContractNegotiationError {
28
28
  /**
29
29
  * The error reason(s).
30
30
  */
31
- reason?: {
32
- "@value": string;
33
- "@language"?: string;
34
- }[];
35
- /**
36
- * The error description(s).
37
- */
38
- description?: {
39
- "@value": string;
40
- "@language"?: string;
41
- }[];
31
+ reason?: any[];
42
32
  }
@@ -1,4 +1,4 @@
1
- import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
2
  import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
3
  import type { ContractNegotiationEventType } from "./types/contractNegotiationEventType.js";
4
4
  /**
@@ -9,7 +9,7 @@ export interface IContractNegotiationEventMessage {
9
9
  /**
10
10
  * The JSON-LD context.
11
11
  */
12
- "@context": ContractNegotiationContextType;
12
+ "@context": DataspaceProtocolContextType;
13
13
  /**
14
14
  * The type of the message.
15
15
  */
@@ -1,4 +1,4 @@
1
- import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
2
  import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
3
3
  /**
4
4
  * Interface for Dataspace Protocol Contract Negotiation Termination Messages.
@@ -8,7 +8,7 @@ export interface IContractNegotiationTerminationMessage {
8
8
  /**
9
9
  * The JSON-LD context.
10
10
  */
11
- "@context": ContractNegotiationContextType;
11
+ "@context": DataspaceProtocolContextType;
12
12
  /**
13
13
  * The type of the message.
14
14
  */
@@ -1,5 +1,5 @@
1
1
  import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
2
- import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
2
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
3
3
  import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
4
4
  /**
5
5
  * Interface for Dataspace Protocol Contract Offer Messages.
@@ -9,7 +9,7 @@ export interface IContractOfferMessage {
9
9
  /**
10
10
  * The JSON-LD context.
11
11
  */
12
- "@context": ContractNegotiationContextType;
12
+ "@context": DataspaceProtocolContextType;
13
13
  /**
14
14
  * The type of the message.
15
15
  */
@@ -1,5 +1,5 @@
1
1
  import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
2
- import type { ContractNegotiationContextType } from "./contractNegotiationContextType.js";
2
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
3
3
  import type { ContractNegotiationTypes } from "./contractNegotiationTypes.js";
4
4
  /**
5
5
  * Interface for Dataspace Protocol Contract Request Messages.
@@ -9,7 +9,7 @@ export interface IContractRequestMessage {
9
9
  /**
10
10
  * The JSON-LD context.
11
11
  */
12
- "@context": ContractNegotiationContextType;
12
+ "@context": DataspaceProtocolContextType;
13
13
  /**
14
14
  * The type of the message.
15
15
  */
@@ -0,0 +1,14 @@
1
+ import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
2
+ import type { DataspaceProtocolContexts } from "./dataspaceProtocolContexts.js";
3
+ /**
4
+ * The Dataspace Protocol Protocol JSON-LD context type.
5
+ */
6
+ export type DataspaceProtocolContextType = [typeof DataspaceProtocolContexts.ContextRoot] | [
7
+ ...IJsonLdContextDefinitionElement[],
8
+ typeof DataspaceProtocolContexts.ContextRoot,
9
+ IJsonLdContextDefinitionElement
10
+ ] | [
11
+ IJsonLdContextDefinitionElement,
12
+ typeof DataspaceProtocolContexts.ContextRoot,
13
+ ...IJsonLdContextDefinitionElement[]
14
+ ];
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The contexts for Dataspace Protocol Protocol.
3
+ */
4
+ export declare const DataspaceProtocolContexts: {
5
+ /**
6
+ * The context root for Dataspace Protocol Protocol.
7
+ */
8
+ readonly ContextRoot: "https://w3id.org/dspace/2025/1/context.json";
9
+ /**
10
+ * The context redirect for Dataspace Protocol Protocol.
11
+ */
12
+ readonly ContextRedirect: "https://w3id.org/dspace/2025/1/context.jsonld";
13
+ };
14
+ /**
15
+ * The contexts for Dataspace Protocol Protocol.
16
+ */
17
+ export type DataspaceProtocolContexts = (typeof DataspaceProtocolContexts)[keyof typeof DataspaceProtocolContexts];
@@ -0,0 +1,24 @@
1
+ import type { IEndpointProperty } from "./IEndpointProperty.js";
2
+ import type { TransferProcessTypes } from "./transferProcessTypes.js";
3
+ /**
4
+ * Interface for Dataspace Protocol Transfer Messages.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types
6
+ */
7
+ export interface IDataAddress {
8
+ /**
9
+ * LD Type
10
+ */
11
+ "@type": typeof TransferProcessTypes.DataAddress;
12
+ /**
13
+ * The type of endpoint of this data address.
14
+ */
15
+ endpointType: string;
16
+ /**
17
+ * The endpoint of the data address
18
+ */
19
+ endpoint?: string;
20
+ /**
21
+ * Properties associated to the endpoint which might depend on the endpoint type.
22
+ */
23
+ endpointProperties?: IEndpointProperty[];
24
+ }
@@ -0,0 +1,19 @@
1
+ import type { TransferProcessTypes } from "./transferProcessTypes.js";
2
+ /**
3
+ * Interface for Dataspace Protocol Transfer Messages.
4
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types
5
+ */
6
+ export interface IEndpointProperty {
7
+ /**
8
+ * LD Type.
9
+ */
10
+ "@type": typeof TransferProcessTypes.EndpointProperty;
11
+ /**
12
+ * Property name.
13
+ */
14
+ name: string;
15
+ /**
16
+ * Property value.
17
+ */
18
+ value: string;
19
+ }
@@ -0,0 +1,24 @@
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
+ import type { TransferProcessTypes } from "./transferProcessTypes.js";
3
+ /**
4
+ * Interface for Dataspace Protocol Transfer Messages.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-completion-message
6
+ */
7
+ export interface ITransferCompletionMessage {
8
+ /**
9
+ * LD Context
10
+ */
11
+ "@context": DataspaceProtocolContextType;
12
+ /**
13
+ * LD Type
14
+ */
15
+ "@type": typeof TransferProcessTypes.TransferCompletionMessage;
16
+ /**
17
+ * MUST refer to the transfer identifier of the Consumer side.
18
+ */
19
+ consumerPid: string;
20
+ /**
21
+ * MUST refer to the transfer identifier of the Provider side.
22
+ */
23
+ providerPid: string;
24
+ }
@@ -0,0 +1,32 @@
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
+ import type { TransferProcessTypes } from "./transferProcessTypes.js";
3
+ /**
4
+ * Interface for Dataspace Protocol Transfer Messages.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol#error-transfer-error
6
+ */
7
+ export interface ITransferError {
8
+ /**
9
+ * LD Context
10
+ */
11
+ "@context": DataspaceProtocolContextType;
12
+ /**
13
+ * LD Type
14
+ */
15
+ "@type": typeof TransferProcessTypes.TransferError;
16
+ /**
17
+ * MUST refer to the transfer identifier of the Consumer side.
18
+ */
19
+ consumerPid: string;
20
+ /**
21
+ * MUST refer to the transfer identifier of the Provider side.
22
+ */
23
+ providerPid: string;
24
+ /**
25
+ * The error code.
26
+ */
27
+ code?: string;
28
+ /**
29
+ * The error reason(s).
30
+ */
31
+ reason?: any[];
32
+ }
@@ -0,0 +1,29 @@
1
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
+ import type { TransferProcessTypes } from "./transferProcessTypes.js";
3
+ import type { TransferProcessStateType } from "./types/transferProcessStateType.js";
4
+ /**
5
+ * Interface for Dataspace Protocol Transfer Messages.
6
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#ack-transfer-process
7
+ */
8
+ export interface ITransferProcess {
9
+ /**
10
+ * LD Context
11
+ */
12
+ "@context": DataspaceProtocolContextType;
13
+ /**
14
+ * LD Type
15
+ */
16
+ "@type": typeof TransferProcessTypes.TransferProcess;
17
+ /**
18
+ * MUST refer to the transfer identifier of the Consumer side.
19
+ */
20
+ consumerPid: string;
21
+ /**
22
+ * MUST refer to the transfer identifier of the Provider side.
23
+ */
24
+ providerPid: string;
25
+ /**
26
+ * The transfer process state.
27
+ */
28
+ state: typeof TransferProcessStateType;
29
+ }