@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
@@ -5,11 +5,16 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "@context": {
8
- "description": "The Dataspace Protocol Contract Negotiation JSON-LD context type.",
8
+ "description": "The Dataspace Protocol Protocol JSON-LD context type.",
9
9
  "anyOf": [
10
10
  {
11
- "type": "string",
12
- "const": "https://w3id.org/dspace/2024/1/context.json"
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
13
18
  },
14
19
  {
15
20
  "type": "array",
@@ -17,7 +22,7 @@
17
22
  "prefixItems": [
18
23
  {
19
24
  "type": "string",
20
- "const": "https://w3id.org/dspace/2024/1/context.json"
25
+ "const": "https://w3id.org/dspace/2025/1/context.json"
21
26
  },
22
27
  {
23
28
  "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
@@ -36,7 +41,7 @@
36
41
  },
37
42
  {
38
43
  "type": "string",
39
- "const": "https://w3id.org/dspace/2024/1/context.json"
44
+ "const": "https://w3id.org/dspace/2025/1/context.json"
40
45
  }
41
46
  ],
42
47
  "items": {
@@ -5,11 +5,16 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "@context": {
8
- "description": "The Dataspace Protocol Contract Negotiation JSON-LD context type.",
8
+ "description": "The Dataspace Protocol Protocol JSON-LD context type.",
9
9
  "anyOf": [
10
10
  {
11
- "type": "string",
12
- "const": "https://w3id.org/dspace/2024/1/context.json"
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
13
18
  },
14
19
  {
15
20
  "type": "array",
@@ -17,7 +22,7 @@
17
22
  "prefixItems": [
18
23
  {
19
24
  "type": "string",
20
- "const": "https://w3id.org/dspace/2024/1/context.json"
25
+ "const": "https://w3id.org/dspace/2025/1/context.json"
21
26
  },
22
27
  {
23
28
  "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
@@ -36,7 +41,7 @@
36
41
  },
37
42
  {
38
43
  "type": "string",
39
- "const": "https://w3id.org/dspace/2024/1/context.json"
44
+ "const": "https://w3id.org/dspace/2025/1/context.json"
40
45
  }
41
46
  ],
42
47
  "items": {
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataAddress",
4
+ "description": "Interface for Dataspace Protocol Transfer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types",
5
+ "type": "object",
6
+ "properties": {
7
+ "@type": {
8
+ "type": "string",
9
+ "const": "DataAddress",
10
+ "description": "LD Type"
11
+ },
12
+ "endpointType": {
13
+ "type": "string",
14
+ "description": "The type of endpoint of this data address."
15
+ },
16
+ "endpoint": {
17
+ "type": "string",
18
+ "description": "The endpoint of the data address"
19
+ },
20
+ "endpointProperties": {
21
+ "type": "array",
22
+ "items": {
23
+ "$ref": "https://schema.twindev.org/dataspace-protocol/EndpointProperty"
24
+ },
25
+ "description": "Properties associated to the endpoint which might depend on the endpoint type."
26
+ }
27
+ },
28
+ "required": [
29
+ "@type",
30
+ "endpointType"
31
+ ],
32
+ "additionalProperties": false
33
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DatasetRequestMessage",
4
+ "description": "Interface for Dataspace Protocol Dataset Request Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#dataset-request-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": "DatasetRequestMessage",
56
+ "description": "The type of the message."
57
+ },
58
+ "dataset": {
59
+ "type": "string",
60
+ "description": "The identifier of the dataset."
61
+ }
62
+ },
63
+ "required": [
64
+ "@context",
65
+ "@type",
66
+ "dataset"
67
+ ],
68
+ "additionalProperties": false
69
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/EndpointProperty",
4
+ "description": "Interface for Dataspace Protocol Transfer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types",
5
+ "type": "object",
6
+ "properties": {
7
+ "@type": {
8
+ "type": "string",
9
+ "const": "EndpointProperty",
10
+ "description": "LD Type."
11
+ },
12
+ "name": {
13
+ "type": "string",
14
+ "description": "Property name."
15
+ },
16
+ "value": {
17
+ "type": "string",
18
+ "description": "Property value."
19
+ }
20
+ },
21
+ "required": [
22
+ "@type",
23
+ "name",
24
+ "value"
25
+ ],
26
+ "additionalProperties": false
27
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/TransferCompletionMessage",
4
+ "description": "Interface for Dataspace Protocol Transfer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-completion-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": "TransferCompletionMessage",
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
+ },
67
+ "required": [
68
+ "@context",
69
+ "@type",
70
+ "consumerPid",
71
+ "providerPid"
72
+ ],
73
+ "additionalProperties": false
74
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/TransferError",
4
+ "description": "Interface for Dataspace Protocol Transfer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol#error-transfer-error",
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": "TransferError",
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 error code."
69
+ },
70
+ "reason": {
71
+ "type": "array",
72
+ "items": {},
73
+ "description": "The error reason(s)."
74
+ }
75
+ },
76
+ "required": [
77
+ "@context",
78
+ "@type",
79
+ "consumerPid",
80
+ "providerPid"
81
+ ],
82
+ "additionalProperties": false
83
+ }
@@ -0,0 +1,109 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/TransferProcess",
4
+ "description": "Interface for Dataspace Protocol Transfer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#ack-transfer-process",
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": "TransferProcess",
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
+ "state": {
67
+ "type": "object",
68
+ "properties": {
69
+ "COMPLETED": {
70
+ "type": "string",
71
+ "const": "COMPLETED"
72
+ },
73
+ "REQUESTED": {
74
+ "type": "string",
75
+ "const": "REQUESTED"
76
+ },
77
+ "STARTED": {
78
+ "type": "string",
79
+ "const": "STARTED"
80
+ },
81
+ "SUSPENDED": {
82
+ "type": "string",
83
+ "const": "SUSPENDED"
84
+ },
85
+ "TERMINATED": {
86
+ "type": "string",
87
+ "const": "TERMINATED"
88
+ }
89
+ },
90
+ "required": [
91
+ "COMPLETED",
92
+ "REQUESTED",
93
+ "STARTED",
94
+ "SUSPENDED",
95
+ "TERMINATED"
96
+ ],
97
+ "additionalProperties": false,
98
+ "description": "The transfer process state."
99
+ }
100
+ },
101
+ "required": [
102
+ "@context",
103
+ "@type",
104
+ "consumerPid",
105
+ "providerPid",
106
+ "state"
107
+ ],
108
+ "additionalProperties": false
109
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/TransferRequestMessage",
4
+ "description": "Interface for Dataspace Protocol Transfer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-request-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": "TransferRequestMessage",
56
+ "description": "LD Type"
57
+ },
58
+ "agreementId": {
59
+ "type": "string",
60
+ "description": "MUST refer to an existing Agreement between the Consumer and Provider."
61
+ },
62
+ "callbackAddress": {
63
+ "type": "string",
64
+ "description": "MUST be a URI indicating where messages to the Consumer SHOULD be sent."
65
+ },
66
+ "consumerPid": {
67
+ "type": "string",
68
+ "description": "MUST refer to the transfer identifier of the Consumer side."
69
+ },
70
+ "format": {
71
+ "type": "string",
72
+ "description": "The format property is a format specified by a Distribution for the Dataset associated with the Agreement. This is generally obtained from the Provider's Catalog."
73
+ },
74
+ "dataAddress": {
75
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataAddress",
76
+ "description": "If defined MUST contain a transport-specific set of properties for pushing the data. It MAY include an endpoint, a temporary authorization via the endpointProperties property - depending on the endpointType."
77
+ }
78
+ },
79
+ "required": [
80
+ "@context",
81
+ "@type",
82
+ "agreementId",
83
+ "callbackAddress",
84
+ "consumerPid",
85
+ "format"
86
+ ],
87
+ "additionalProperties": false
88
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/TransferStartMessage",
4
+ "description": "Interface for Dataspace Protocol Transfer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-start-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": "TransferStartMessage",
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
+ "dataAddress": {
67
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataAddress",
68
+ "description": "MUST be provided if the current transfer is a pull transfer and contains a transport-specific endpoint address for obtaining the data."
69
+ }
70
+ },
71
+ "required": [
72
+ "@context",
73
+ "@type",
74
+ "consumerPid",
75
+ "providerPid"
76
+ ],
77
+ "additionalProperties": false
78
+ }