@twin.org/standards-dataspace-protocol 0.0.3-next.4 → 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.
- package/dist/es/dataTypes/catalogDataTypes.js +32 -0
- package/dist/es/dataTypes/catalogDataTypes.js.map +1 -0
- package/dist/es/dataTypes/{dataspaceProtolDataTypes.js → contractNegotiationDataTypes.js} +3 -29
- package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +1 -0
- package/dist/es/dataTypes/dataspaceProtocolDataTypes.js +27 -0
- package/dist/es/dataTypes/dataspaceProtocolDataTypes.js.map +1 -0
- package/dist/es/dataTypes/transferProcessDataTypes.js +68 -0
- package/dist/es/dataTypes/transferProcessDataTypes.js.map +1 -0
- package/dist/es/index.js +16 -1
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/catalog/ICatalogError.js.map +1 -1
- package/dist/es/models/catalog/ICatalogRequestMessage.js.map +1 -1
- package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +1 -1
- package/dist/es/models/dataspaceProtocolContextType.js.map +1 -1
- package/dist/es/models/transferProcess/IDataAddress.js +2 -0
- package/dist/es/models/transferProcess/IDataAddress.js.map +1 -0
- package/dist/es/models/transferProcess/IEndpointProperty.js +2 -0
- package/dist/es/models/transferProcess/IEndpointProperty.js.map +1 -0
- package/dist/es/models/transferProcess/ITransferCompletionMessage.js +2 -0
- package/dist/es/models/transferProcess/ITransferCompletionMessage.js.map +1 -0
- package/dist/es/models/transferProcess/ITransferError.js +2 -0
- package/dist/es/models/transferProcess/ITransferError.js.map +1 -0
- package/dist/es/models/transferProcess/ITransferProcess.js +2 -0
- package/dist/es/models/transferProcess/ITransferProcess.js.map +1 -0
- package/dist/es/models/transferProcess/ITransferRequestMessage.js +2 -0
- package/dist/es/models/transferProcess/ITransferRequestMessage.js.map +1 -0
- package/dist/es/models/transferProcess/ITransferStartMessage.js +2 -0
- package/dist/es/models/transferProcess/ITransferStartMessage.js.map +1 -0
- package/dist/es/models/transferProcess/ITransferSuspensionMessage.js +4 -0
- package/dist/es/models/transferProcess/ITransferSuspensionMessage.js.map +1 -0
- package/dist/es/models/transferProcess/ITransferTerminationMessage.js +2 -0
- package/dist/es/models/transferProcess/ITransferTerminationMessage.js.map +1 -0
- package/dist/es/models/transferProcess/transferProcessTypes.js +46 -0
- package/dist/es/models/transferProcess/transferProcessTypes.js.map +1 -0
- package/dist/es/models/transferProcess/types/transferProcessStateType.js +30 -0
- package/dist/es/models/transferProcess/types/transferProcessStateType.js.map +1 -0
- package/dist/es/schemas/CatalogError.json +10 -7
- package/dist/es/schemas/CatalogRequestMessage.json +9 -2
- package/dist/es/schemas/ContractAgreementMessage.json +7 -2
- package/dist/es/schemas/ContractAgreementVerificationMessage.json +7 -2
- package/dist/es/schemas/ContractNegotiation.json +7 -2
- package/dist/es/schemas/ContractNegotiationError.json +8 -36
- package/dist/es/schemas/ContractNegotiationEventMessage.json +7 -2
- package/dist/es/schemas/ContractNegotiationTerminationMessage.json +7 -2
- package/dist/es/schemas/ContractOfferMessage.json +7 -2
- package/dist/es/schemas/ContractRequestMessage.json +7 -2
- package/dist/es/schemas/DataAddress.json +33 -0
- package/dist/es/schemas/DatasetRequestMessage.json +7 -2
- package/dist/es/schemas/EndpointProperty.json +27 -0
- package/dist/es/schemas/TransferCompletionMessage.json +74 -0
- package/dist/es/schemas/TransferError.json +83 -0
- package/dist/es/schemas/TransferProcess.json +109 -0
- package/dist/es/schemas/TransferRequestMessage.json +88 -0
- package/dist/es/schemas/TransferStartMessage.json +78 -0
- package/dist/es/schemas/TransferSuspensionMessage.json +83 -0
- package/dist/es/schemas/TransferTerminationMessage.json +83 -0
- package/dist/types/dataTypes/catalogDataTypes.d.ts +9 -0
- package/dist/types/dataTypes/contractNegotiationDataTypes.d.ts +9 -0
- package/dist/types/dataTypes/transferProcessDataTypes.d.ts +9 -0
- package/dist/types/index.d.ts +15 -1
- package/dist/types/models/catalog/ICatalogError.d.ts +2 -2
- package/dist/types/models/catalog/ICatalogRequestMessage.d.ts +1 -1
- package/dist/types/models/contractNegotiation/IContractNegotiationError.d.ts +1 -11
- package/dist/types/models/dataspaceProtocolContextType.d.ts +1 -1
- package/dist/types/models/transferProcess/IDataAddress.d.ts +24 -0
- package/dist/types/models/transferProcess/IEndpointProperty.d.ts +19 -0
- package/dist/types/models/transferProcess/ITransferCompletionMessage.d.ts +24 -0
- package/dist/types/models/transferProcess/ITransferError.d.ts +32 -0
- package/dist/types/models/transferProcess/ITransferProcess.d.ts +29 -0
- package/dist/types/models/transferProcess/ITransferRequestMessage.d.ts +39 -0
- package/dist/types/models/transferProcess/ITransferStartMessage.d.ts +30 -0
- package/dist/types/models/transferProcess/ITransferSuspensionMessage.d.ts +32 -0
- package/dist/types/models/transferProcess/ITransferTerminationMessage.d.ts +32 -0
- package/dist/types/models/transferProcess/transferProcessTypes.d.ts +46 -0
- package/dist/types/models/transferProcess/types/transferProcessStateType.d.ts +30 -0
- package/docs/changelog.md +20 -0
- package/docs/reference/classes/CatalogDataTypes.md +25 -0
- package/docs/reference/classes/ContractNegotiationDataTypes.md +25 -0
- package/docs/reference/classes/TransferProcessDataTypes.md +25 -0
- package/docs/reference/index.md +16 -0
- package/docs/reference/interfaces/ICatalogError.md +3 -3
- package/docs/reference/interfaces/ICatalogRequestMessage.md +1 -1
- package/docs/reference/interfaces/IContractNegotiationError.md +1 -25
- package/docs/reference/interfaces/IDataAddress.md +36 -0
- package/docs/reference/interfaces/IEndpointProperty.md +28 -0
- package/docs/reference/interfaces/ITransferCompletionMessage.md +36 -0
- package/docs/reference/interfaces/ITransferError.md +52 -0
- package/docs/reference/interfaces/ITransferProcess.md +74 -0
- package/docs/reference/interfaces/ITransferRequestMessage.md +62 -0
- package/docs/reference/interfaces/ITransferStartMessage.md +45 -0
- package/docs/reference/interfaces/ITransferSuspensionMessage.md +52 -0
- package/docs/reference/interfaces/ITransferTerminationMessage.md +52 -0
- package/docs/reference/type-aliases/DataspaceProtocolContextType.md +1 -1
- package/docs/reference/type-aliases/TransferProcessStateType.md +5 -0
- package/docs/reference/type-aliases/TransferProcessTypes.md +5 -0
- package/docs/reference/variables/TransferProcessStateType.md +38 -0
- package/docs/reference/variables/TransferProcessTypes.md +62 -0
- package/package.json +3 -3
- package/dist/es/dataTypes/dataspaceProtolDataTypes.js.map +0 -1
- /package/dist/types/dataTypes/{dataspaceProtolDataTypes.d.ts → dataspaceProtocolDataTypes.d.ts} +0 -0
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export * from "./models/dataspaceProtocolContexts.js";
|
|
2
2
|
export * from "./models/dataspaceProtocolContextType.js";
|
|
3
|
-
export * from "./dataTypes/
|
|
3
|
+
export * from "./dataTypes/dataspaceProtocolDataTypes.js";
|
|
4
4
|
export * from "./models/catalog/catalogTypes.js";
|
|
5
5
|
export * from "./models/catalog/ICatalogError.js";
|
|
6
6
|
export * from "./models/catalog/ICatalogRequestMessage.js";
|
|
7
7
|
export * from "./models/catalog/IDatasetRequestMessage.js";
|
|
8
|
+
export * from "./dataTypes/catalogDataTypes.js";
|
|
8
9
|
export * from "./models/contractNegotiation/contractNegotiationTypes.js";
|
|
9
10
|
export * from "./models/contractNegotiation/IContractAgreementMessage.js";
|
|
10
11
|
export * from "./models/contractNegotiation/IContractAgreementVerificationMessage.js";
|
|
@@ -16,3 +17,16 @@ export * from "./models/contractNegotiation/IContractOfferMessage.js";
|
|
|
16
17
|
export * from "./models/contractNegotiation/IContractRequestMessage.js";
|
|
17
18
|
export * from "./models/contractNegotiation/types/contractNegotiationEventType.js";
|
|
18
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";
|
|
@@ -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
|
}
|
|
@@ -3,7 +3,7 @@ import type { DataspaceProtocolContexts } from "./dataspaceProtocolContexts.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* The Dataspace Protocol Protocol JSON-LD context type.
|
|
5
5
|
*/
|
|
6
|
-
export type DataspaceProtocolContextType = typeof DataspaceProtocolContexts.ContextRoot | [
|
|
6
|
+
export type DataspaceProtocolContextType = [typeof DataspaceProtocolContexts.ContextRoot] | [
|
|
7
7
|
...IJsonLdContextDefinitionElement[],
|
|
8
8
|
typeof DataspaceProtocolContexts.ContextRoot,
|
|
9
9
|
IJsonLdContextDefinitionElement
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
+
import type { IDataAddress } from "./IDataAddress.js";
|
|
3
|
+
import type { TransferProcessTypes } from "./transferProcessTypes.js";
|
|
4
|
+
/**
|
|
5
|
+
* Interface for Dataspace Protocol Transfer Messages.
|
|
6
|
+
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-request-message
|
|
7
|
+
*/
|
|
8
|
+
export interface ITransferRequestMessage {
|
|
9
|
+
/**
|
|
10
|
+
* LD Context
|
|
11
|
+
*/
|
|
12
|
+
"@context": DataspaceProtocolContextType;
|
|
13
|
+
/**
|
|
14
|
+
* LD Type
|
|
15
|
+
*/
|
|
16
|
+
"@type": typeof TransferProcessTypes.TransferRequestMessage;
|
|
17
|
+
/**
|
|
18
|
+
* MUST refer to an existing Agreement between the Consumer and Provider.
|
|
19
|
+
*/
|
|
20
|
+
agreementId: string;
|
|
21
|
+
/**
|
|
22
|
+
* MUST be a URI indicating where messages to the Consumer SHOULD be sent.
|
|
23
|
+
*/
|
|
24
|
+
callbackAddress: string;
|
|
25
|
+
/**
|
|
26
|
+
* MUST refer to the transfer identifier of the Consumer side.
|
|
27
|
+
*/
|
|
28
|
+
consumerPid: string;
|
|
29
|
+
/**
|
|
30
|
+
* The format property is a format specified by a Distribution for the Dataset associated with the Agreement.
|
|
31
|
+
* This is generally obtained from the Provider's Catalog.
|
|
32
|
+
*/
|
|
33
|
+
format: string;
|
|
34
|
+
/**
|
|
35
|
+
* If defined MUST contain a transport-specific set of properties for pushing the data.
|
|
36
|
+
* It MAY include an endpoint, a temporary authorization via the endpointProperties property - depending on the endpointType.
|
|
37
|
+
*/
|
|
38
|
+
dataAddress?: IDataAddress;
|
|
39
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
|
|
2
|
+
import type { IDataAddress } from "./IDataAddress.js";
|
|
3
|
+
import type { TransferProcessTypes } from "./transferProcessTypes.js";
|
|
4
|
+
/**
|
|
5
|
+
* Interface for Dataspace Protocol Transfer Messages.
|
|
6
|
+
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-start-message
|
|
7
|
+
*/
|
|
8
|
+
export interface ITransferStartMessage {
|
|
9
|
+
/**
|
|
10
|
+
* LD Context
|
|
11
|
+
*/
|
|
12
|
+
"@context": DataspaceProtocolContextType;
|
|
13
|
+
/**
|
|
14
|
+
* LD Type
|
|
15
|
+
*/
|
|
16
|
+
"@type": typeof TransferProcessTypes.TransferStartMessage;
|
|
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
|
+
* MUST be provided if the current transfer is a pull transfer and
|
|
27
|
+
* contains a transport-specific endpoint address for obtaining the data.
|
|
28
|
+
*/
|
|
29
|
+
dataAddress?: IDataAddress;
|
|
30
|
+
}
|
|
@@ -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/#transfer-suspension-message
|
|
6
|
+
*/
|
|
7
|
+
export interface ITransferSuspensionMessage {
|
|
8
|
+
/**
|
|
9
|
+
* LD Context
|
|
10
|
+
*/
|
|
11
|
+
"@context": DataspaceProtocolContextType;
|
|
12
|
+
/**
|
|
13
|
+
* LD Type
|
|
14
|
+
*/
|
|
15
|
+
"@type": typeof TransferProcessTypes.TransferSuspensionMessage;
|
|
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 suspension code.
|
|
26
|
+
*/
|
|
27
|
+
code?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The suspension reason(s).
|
|
30
|
+
*/
|
|
31
|
+
reason?: any[];
|
|
32
|
+
}
|
|
@@ -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/#transfer-termination-message
|
|
6
|
+
*/
|
|
7
|
+
export interface ITransferTerminationMessage {
|
|
8
|
+
/**
|
|
9
|
+
* LD Context
|
|
10
|
+
*/
|
|
11
|
+
"@context": DataspaceProtocolContextType;
|
|
12
|
+
/**
|
|
13
|
+
* LD Type
|
|
14
|
+
*/
|
|
15
|
+
"@type": typeof TransferProcessTypes.TransferTerminationMessage;
|
|
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 termination code.
|
|
26
|
+
*/
|
|
27
|
+
code?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The termination reason(s).
|
|
30
|
+
*/
|
|
31
|
+
reason?: any[];
|
|
32
|
+
}
|