@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,32 @@
|
|
|
1
|
+
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
2
|
+
import { CatalogTypes } from "../models/catalog/catalogTypes.js";
|
|
3
|
+
import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
|
|
4
|
+
import CatalogError from "../schemas/CatalogError.json" with { type: "json" };
|
|
5
|
+
import CatalogRequestMessage from "../schemas/CatalogRequestMessage.json" with { type: "json" };
|
|
6
|
+
import DatasetRequestMessage from "../schemas/DatasetRequestMessage.json" with { type: "json" };
|
|
7
|
+
/**
|
|
8
|
+
* Handle all the catalog data types for Dataspace Protocol.
|
|
9
|
+
*/
|
|
10
|
+
export class CatalogDataTypes {
|
|
11
|
+
/**
|
|
12
|
+
* Register all the data types.
|
|
13
|
+
*/
|
|
14
|
+
static registerTypes() {
|
|
15
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogRequestMessage}`, () => ({
|
|
16
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
17
|
+
type: CatalogTypes.CatalogRequestMessage,
|
|
18
|
+
jsonSchema: async () => CatalogRequestMessage
|
|
19
|
+
}));
|
|
20
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.DatasetRequestMessage}`, () => ({
|
|
21
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
22
|
+
type: CatalogTypes.DatasetRequestMessage,
|
|
23
|
+
jsonSchema: async () => DatasetRequestMessage
|
|
24
|
+
}));
|
|
25
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogError}`, () => ({
|
|
26
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
27
|
+
type: CatalogTypes.CatalogError,
|
|
28
|
+
jsonSchema: async () => CatalogError
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=catalogDataTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/catalogDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,YAAY,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC9E,OAAO,qBAAqB,MAAM,uCAAuC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChG,OAAO,qBAAqB,MAAM,uCAAuC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEhG;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAC5B;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,YAAY,CAAC,qBAAqB,EAAE,EAC/E,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,YAAY,CAAC,qBAAqB;YACxC,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,qBAAoC;SAC5D,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,YAAY,CAAC,qBAAqB,EAAE,EAC/E,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,YAAY,CAAC,qBAAqB;YACxC,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,qBAAoC;SAC5D,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,YAAY,CAAC,YAAY,EAAE,EACtE,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,YAAY,CAAC,YAAY;YAC/B,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,YAA2B;SACnD,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { CatalogTypes } from \"../models/catalog/catalogTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport CatalogError from \"../schemas/CatalogError.json\" with { type: \"json\" };\nimport CatalogRequestMessage from \"../schemas/CatalogRequestMessage.json\" with { type: \"json\" };\nimport DatasetRequestMessage from \"../schemas/DatasetRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the catalog data types for Dataspace Protocol.\n */\nexport class CatalogDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.CatalogRequestMessage,\n\t\t\t\tjsonSchema: async () => CatalogRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.DatasetRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.DatasetRequestMessage,\n\t\t\t\tjsonSchema: async () => DatasetRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: CatalogTypes.CatalogError,\n\t\t\t\tjsonSchema: async () => CatalogError as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
2
|
-
import { JsonLdProcessor } from "@twin.org/data-json-ld";
|
|
3
|
-
import { CatalogTypes } from "../models/catalog/catalogTypes.js";
|
|
4
2
|
import { ContractNegotiationTypes } from "../models/contractNegotiation/contractNegotiationTypes.js";
|
|
5
3
|
import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
|
|
6
|
-
import CatalogError from "../schemas/CatalogError.json" with { type: "json" };
|
|
7
|
-
import CatalogRequestMessage from "../schemas/CatalogRequestMessage.json" with { type: "json" };
|
|
8
4
|
import ContractAgreementMessage from "../schemas/ContractAgreementMessage.json" with { type: "json" };
|
|
9
5
|
import ContractAgreementVerificationMessage from "../schemas/ContractAgreementVerificationMessage.json" with { type: "json" };
|
|
10
6
|
import ContractNegotiation from "../schemas/ContractNegotiation.json" with { type: "json" };
|
|
@@ -15,17 +11,10 @@ import ContractNegotiationStateType from "../schemas/ContractNegotiationStateTyp
|
|
|
15
11
|
import ContractNegotiationTerminationMessage from "../schemas/ContractNegotiationTerminationMessage.json" with { type: "json" };
|
|
16
12
|
import ContractOfferMessage from "../schemas/ContractOfferMessage.json" with { type: "json" };
|
|
17
13
|
import ContractRequestMessage from "../schemas/ContractRequestMessage.json" with { type: "json" };
|
|
18
|
-
import DatasetRequestMessage from "../schemas/DatasetRequestMessage.json" with { type: "json" };
|
|
19
14
|
/**
|
|
20
|
-
* Handle all the data types for Dataspace Protocol.
|
|
15
|
+
* Handle all the contract negotiation data types for Dataspace Protocol.
|
|
21
16
|
*/
|
|
22
|
-
export class
|
|
23
|
-
/**
|
|
24
|
-
* Register the JSON-LD Redirects.
|
|
25
|
-
*/
|
|
26
|
-
static registerRedirects() {
|
|
27
|
-
JsonLdProcessor.addRedirect(new RegExp(DataspaceProtocolContexts.ContextRoot), DataspaceProtocolContexts.ContextRedirect);
|
|
28
|
-
}
|
|
17
|
+
export class ContractNegotiationDataTypes {
|
|
29
18
|
/**
|
|
30
19
|
* Register all the data types.
|
|
31
20
|
*/
|
|
@@ -80,21 +69,6 @@ export class DataspaceProtocolDataTypes {
|
|
|
80
69
|
type: ContractNegotiationTypes.ContractNegotiationStateType,
|
|
81
70
|
jsonSchema: async () => ContractNegotiationStateType
|
|
82
71
|
}));
|
|
83
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogRequestMessage}`, () => ({
|
|
84
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
85
|
-
type: CatalogTypes.CatalogRequestMessage,
|
|
86
|
-
jsonSchema: async () => CatalogRequestMessage
|
|
87
|
-
}));
|
|
88
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.DatasetRequestMessage}`, () => ({
|
|
89
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
90
|
-
type: CatalogTypes.DatasetRequestMessage,
|
|
91
|
-
jsonSchema: async () => DatasetRequestMessage
|
|
92
|
-
}));
|
|
93
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${CatalogTypes.CatalogError}`, () => ({
|
|
94
|
-
context: DataspaceProtocolContexts.ContextRoot,
|
|
95
|
-
type: CatalogTypes.CatalogError,
|
|
96
|
-
jsonSchema: async () => CatalogError
|
|
97
|
-
}));
|
|
98
72
|
}
|
|
99
73
|
}
|
|
100
|
-
//# sourceMappingURL=
|
|
74
|
+
//# sourceMappingURL=contractNegotiationDataTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contractNegotiationDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/contractNegotiationDataTypes.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { ContractNegotiationTypes } from \"../models/contractNegotiation/contractNegotiationTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport ContractAgreementMessage from \"../schemas/ContractAgreementMessage.json\" with { type: \"json\" };\nimport ContractAgreementVerificationMessage from \"../schemas/ContractAgreementVerificationMessage.json\" with { type: \"json\" };\nimport ContractNegotiation from \"../schemas/ContractNegotiation.json\" with { type: \"json\" };\nimport ContractNegotiationError from \"../schemas/ContractNegotiationError.json\" with { type: \"json\" };\nimport ContractNegotiationEventMessage from \"../schemas/ContractNegotiationEventMessage.json\" with { type: \"json\" };\nimport ContractNegotiationEventType from \"../schemas/ContractNegotiationEventType.json\" with { type: \"json\" };\nimport ContractNegotiationStateType from \"../schemas/ContractNegotiationStateType.json\" with { type: \"json\" };\nimport ContractNegotiationTerminationMessage from \"../schemas/ContractNegotiationTerminationMessage.json\" with { type: \"json\" };\nimport ContractOfferMessage from \"../schemas/ContractOfferMessage.json\" with { type: \"json\" };\nimport ContractRequestMessage from \"../schemas/ContractRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the contract negotiation data types for Dataspace Protocol.\n */\nexport class ContractNegotiationDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementVerificationMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementVerificationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiation,\n\t\t\t\tjsonSchema: async () => ContractNegotiation as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationError,\n\t\t\t\tjsonSchema: async () => ContractNegotiationError as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationTerminationMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationTerminationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractOfferMessage,\n\t\t\t\tjsonSchema: async () => ContractOfferMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractRequestMessage,\n\t\t\t\tjsonSchema: async () => ContractRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventType as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationStateType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationStateType as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { JsonLdProcessor } from "@twin.org/data-json-ld";
|
|
4
|
+
import { CatalogDataTypes } from "./catalogDataTypes.js";
|
|
5
|
+
import { ContractNegotiationDataTypes } from "./contractNegotiationDataTypes.js";
|
|
6
|
+
import { TransferProcessDataTypes } from "./transferProcessDataTypes.js";
|
|
7
|
+
import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
|
|
8
|
+
/**
|
|
9
|
+
* Handle all the data types for Dataspace Protocol.
|
|
10
|
+
*/
|
|
11
|
+
export class DataspaceProtocolDataTypes {
|
|
12
|
+
/**
|
|
13
|
+
* Register the JSON-LD Redirects.
|
|
14
|
+
*/
|
|
15
|
+
static registerRedirects() {
|
|
16
|
+
JsonLdProcessor.addRedirect(new RegExp(DataspaceProtocolContexts.ContextRoot), DataspaceProtocolContexts.ContextRedirect);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Register all the data types.
|
|
20
|
+
*/
|
|
21
|
+
static registerTypes() {
|
|
22
|
+
ContractNegotiationDataTypes.registerTypes();
|
|
23
|
+
CatalogDataTypes.registerTypes();
|
|
24
|
+
TransferProcessDataTypes.registerTypes();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=dataspaceProtocolDataTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceProtocolDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/dataspaceProtocolDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF;;GAEG;AACH,MAAM,OAAO,0BAA0B;IACtC;;OAEG;IACI,MAAM,CAAC,iBAAiB;QAC9B,eAAe,CAAC,WAAW,CAC1B,IAAI,MAAM,CAAC,yBAAyB,CAAC,WAAW,CAAC,EACjD,yBAAyB,CAAC,eAAe,CACzC,CAAC;IACH,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,4BAA4B,CAAC,aAAa,EAAE,CAAC;QAC7C,gBAAgB,CAAC,aAAa,EAAE,CAAC;QACjC,wBAAwB,CAAC,aAAa,EAAE,CAAC;IAC1C,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { CatalogDataTypes } from \"./catalogDataTypes.js\";\nimport { ContractNegotiationDataTypes } from \"./contractNegotiationDataTypes.js\";\nimport { TransferProcessDataTypes } from \"./transferProcessDataTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\n\n/**\n * Handle all the data types for Dataspace Protocol.\n */\nexport class DataspaceProtocolDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(\n\t\t\tnew RegExp(DataspaceProtocolContexts.ContextRoot),\n\t\t\tDataspaceProtocolContexts.ContextRedirect\n\t\t);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tContractNegotiationDataTypes.registerTypes();\n\t\tCatalogDataTypes.registerTypes();\n\t\tTransferProcessDataTypes.registerTypes();\n\t}\n}\n"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
2
|
+
import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
|
|
3
|
+
import { TransferProcessTypes } from "../models/transferProcess/transferProcessTypes.js";
|
|
4
|
+
import DataAddress from "../schemas/DataAddress.json" with { type: "json" };
|
|
5
|
+
import EndpointProperty from "../schemas/EndpointProperty.json" with { type: "json" };
|
|
6
|
+
import TransferCompletionMessage from "../schemas/TransferCompletionMessage.json" with { type: "json" };
|
|
7
|
+
import TransferError from "../schemas/TransferError.json" with { type: "json" };
|
|
8
|
+
import TransferProcess from "../schemas/TransferProcess.json" with { type: "json" };
|
|
9
|
+
import TransferRequestMessage from "../schemas/TransferRequestMessage.json" with { type: "json" };
|
|
10
|
+
import TransferStartMessage from "../schemas/TransferStartMessage.json" with { type: "json" };
|
|
11
|
+
import TransferSuspensionMessage from "../schemas/TransferSuspensionMessage.json" with { type: "json" };
|
|
12
|
+
import TransferTerminationMessage from "../schemas/TransferTerminationMessage.json" with { type: "json" };
|
|
13
|
+
/**
|
|
14
|
+
* Handle all the transfer process data types for Dataspace Protocol.
|
|
15
|
+
*/
|
|
16
|
+
export class TransferProcessDataTypes {
|
|
17
|
+
/**
|
|
18
|
+
* Register all the data types.
|
|
19
|
+
*/
|
|
20
|
+
static registerTypes() {
|
|
21
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.DataAddress}`, () => ({
|
|
22
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
23
|
+
type: TransferProcessTypes.DataAddress,
|
|
24
|
+
jsonSchema: async () => DataAddress
|
|
25
|
+
}));
|
|
26
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.EndpointProperty}`, () => ({
|
|
27
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
28
|
+
type: TransferProcessTypes.EndpointProperty,
|
|
29
|
+
jsonSchema: async () => EndpointProperty
|
|
30
|
+
}));
|
|
31
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferCompletionMessage}`, () => ({
|
|
32
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
33
|
+
type: TransferProcessTypes.TransferCompletionMessage,
|
|
34
|
+
jsonSchema: async () => TransferCompletionMessage
|
|
35
|
+
}));
|
|
36
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferError}`, () => ({
|
|
37
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
38
|
+
type: TransferProcessTypes.TransferError,
|
|
39
|
+
jsonSchema: async () => TransferError
|
|
40
|
+
}));
|
|
41
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferProcess}`, () => ({
|
|
42
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
43
|
+
type: TransferProcessTypes.TransferProcess,
|
|
44
|
+
jsonSchema: async () => TransferProcess
|
|
45
|
+
}));
|
|
46
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferRequestMessage}`, () => ({
|
|
47
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
48
|
+
type: TransferProcessTypes.TransferRequestMessage,
|
|
49
|
+
jsonSchema: async () => TransferRequestMessage
|
|
50
|
+
}));
|
|
51
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferStartMessage}`, () => ({
|
|
52
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
53
|
+
type: TransferProcessTypes.TransferStartMessage,
|
|
54
|
+
jsonSchema: async () => TransferStartMessage
|
|
55
|
+
}));
|
|
56
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferSuspensionMessage}`, () => ({
|
|
57
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
58
|
+
type: TransferProcessTypes.TransferSuspensionMessage,
|
|
59
|
+
jsonSchema: async () => TransferSuspensionMessage
|
|
60
|
+
}));
|
|
61
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferTerminationMessage}`, () => ({
|
|
62
|
+
context: DataspaceProtocolContexts.ContextRoot,
|
|
63
|
+
type: TransferProcessTypes.TransferTerminationMessage,
|
|
64
|
+
jsonSchema: async () => TransferTerminationMessage
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=transferProcessDataTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transferProcessDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/transferProcessDataTypes.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport { TransferProcessTypes } from \"../models/transferProcess/transferProcessTypes.js\";\nimport DataAddress from \"../schemas/DataAddress.json\" with { type: \"json\" };\nimport EndpointProperty from \"../schemas/EndpointProperty.json\" with { type: \"json\" };\nimport TransferCompletionMessage from \"../schemas/TransferCompletionMessage.json\" with { type: \"json\" };\nimport TransferError from \"../schemas/TransferError.json\" with { type: \"json\" };\nimport TransferProcess from \"../schemas/TransferProcess.json\" with { type: \"json\" };\nimport TransferRequestMessage from \"../schemas/TransferRequestMessage.json\" with { type: \"json\" };\nimport TransferStartMessage from \"../schemas/TransferStartMessage.json\" with { type: \"json\" };\nimport TransferSuspensionMessage from \"../schemas/TransferSuspensionMessage.json\" with { type: \"json\" };\nimport TransferTerminationMessage from \"../schemas/TransferTerminationMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the transfer process data types for Dataspace Protocol.\n */\nexport class TransferProcessDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.DataAddress}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.DataAddress,\n\t\t\t\tjsonSchema: async () => DataAddress as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.EndpointProperty}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.EndpointProperty,\n\t\t\t\tjsonSchema: async () => EndpointProperty as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferCompletionMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferCompletionMessage,\n\t\t\t\tjsonSchema: async () => TransferCompletionMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferError,\n\t\t\t\tjsonSchema: async () => TransferError as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferProcess}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferProcess,\n\t\t\t\tjsonSchema: async () => TransferProcess as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferRequestMessage,\n\t\t\t\tjsonSchema: async () => TransferRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferStartMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferStartMessage,\n\t\t\t\tjsonSchema: async () => TransferStartMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferSuspensionMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferSuspensionMessage,\n\t\t\t\tjsonSchema: async () => TransferSuspensionMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${TransferProcessTypes.TransferTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: TransferProcessTypes.TransferTerminationMessage,\n\t\t\t\tjsonSchema: async () => TransferTerminationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
export * from "./models/dataspaceProtocolContexts.js";
|
|
4
4
|
export * from "./models/dataspaceProtocolContextType.js";
|
|
5
|
-
export * from "./dataTypes/
|
|
5
|
+
export * from "./dataTypes/dataspaceProtocolDataTypes.js";
|
|
6
6
|
// Catalog Protocol
|
|
7
7
|
export * from "./models/catalog/catalogTypes.js";
|
|
8
8
|
export * from "./models/catalog/ICatalogError.js";
|
|
9
9
|
export * from "./models/catalog/ICatalogRequestMessage.js";
|
|
10
10
|
export * from "./models/catalog/IDatasetRequestMessage.js";
|
|
11
|
+
export * from "./dataTypes/catalogDataTypes.js";
|
|
11
12
|
// Contract Negotiation Protocol
|
|
12
13
|
export * from "./models/contractNegotiation/contractNegotiationTypes.js";
|
|
13
14
|
export * from "./models/contractNegotiation/IContractAgreementMessage.js";
|
|
@@ -20,4 +21,18 @@ export * from "./models/contractNegotiation/IContractOfferMessage.js";
|
|
|
20
21
|
export * from "./models/contractNegotiation/IContractRequestMessage.js";
|
|
21
22
|
export * from "./models/contractNegotiation/types/contractNegotiationEventType.js";
|
|
22
23
|
export * from "./models/contractNegotiation/types/contractNegotiationStateType.js";
|
|
24
|
+
export * from "./dataTypes/contractNegotiationDataTypes.js";
|
|
25
|
+
// Transfer Process Protocol
|
|
26
|
+
export * from "./models/transferProcess/transferProcessTypes.js";
|
|
27
|
+
export * from "./models/transferProcess/IDataAddress.js";
|
|
28
|
+
export * from "./models/transferProcess/IEndpointProperty.js";
|
|
29
|
+
export * from "./models/transferProcess/ITransferCompletionMessage.js";
|
|
30
|
+
export * from "./models/transferProcess/ITransferError.js";
|
|
31
|
+
export * from "./models/transferProcess/ITransferProcess.js";
|
|
32
|
+
export * from "./models/transferProcess/ITransferRequestMessage.js";
|
|
33
|
+
export * from "./models/transferProcess/ITransferStartMessage.js";
|
|
34
|
+
export * from "./models/transferProcess/ITransferSuspensionMessage.js";
|
|
35
|
+
export * from "./models/transferProcess/ITransferTerminationMessage.js";
|
|
36
|
+
export * from "./models/transferProcess/types/transferProcessStateType.js";
|
|
37
|
+
export * from "./dataTypes/transferProcessDataTypes.js";
|
|
23
38
|
//# sourceMappingURL=index.js.map
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAE1D,mBAAmB;AACnB,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAE3D,cAAc,iCAAiC,CAAC;AAEhD,gCAAgC;AAChC,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uEAAuE,CAAC;AACtF,cAAc,sDAAsD,CAAC;AACrE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kEAAkE,CAAC;AACjF,cAAc,wEAAwE,CAAC;AACvF,cAAc,uDAAuD,CAAC;AACtE,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,oEAAoE,CAAC;AAEnF,cAAc,6CAA6C,CAAC;AAE5D,4BAA4B;AAC5B,cAAc,kDAAkD,CAAC;AACjE,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,wDAAwD,CAAC;AACvE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wDAAwD,CAAC;AACvE,cAAc,yDAAyD,CAAC;AACxE,cAAc,4DAA4D,CAAC;AAE3E,cAAc,yCAAyC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/dataspaceProtocolContexts.js\";\nexport * from \"./models/dataspaceProtocolContextType.js\";\nexport * from \"./dataTypes/dataspaceProtocolDataTypes.js\";\n\n// Catalog Protocol\nexport * from \"./models/catalog/catalogTypes.js\";\nexport * from \"./models/catalog/ICatalogError.js\";\nexport * from \"./models/catalog/ICatalogRequestMessage.js\";\nexport * from \"./models/catalog/IDatasetRequestMessage.js\";\n\nexport * from \"./dataTypes/catalogDataTypes.js\";\n\n// Contract Negotiation Protocol\nexport * from \"./models/contractNegotiation/contractNegotiationTypes.js\";\nexport * from \"./models/contractNegotiation/IContractAgreementMessage.js\";\nexport * from \"./models/contractNegotiation/IContractAgreementVerificationMessage.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiation.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationError.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationEventMessage.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationTerminationMessage.js\";\nexport * from \"./models/contractNegotiation/IContractOfferMessage.js\";\nexport * from \"./models/contractNegotiation/IContractRequestMessage.js\";\nexport * from \"./models/contractNegotiation/types/contractNegotiationEventType.js\";\nexport * from \"./models/contractNegotiation/types/contractNegotiationStateType.js\";\n\nexport * from \"./dataTypes/contractNegotiationDataTypes.js\";\n\n// Transfer Process Protocol\nexport * from \"./models/transferProcess/transferProcessTypes.js\";\nexport * from \"./models/transferProcess/IDataAddress.js\";\nexport * from \"./models/transferProcess/IEndpointProperty.js\";\nexport * from \"./models/transferProcess/ITransferCompletionMessage.js\";\nexport * from \"./models/transferProcess/ITransferError.js\";\nexport * from \"./models/transferProcess/ITransferProcess.js\";\nexport * from \"./models/transferProcess/ITransferRequestMessage.js\";\nexport * from \"./models/transferProcess/ITransferStartMessage.js\";\nexport * from \"./models/transferProcess/ITransferSuspensionMessage.js\";\nexport * from \"./models/transferProcess/ITransferTerminationMessage.js\";\nexport * from \"./models/transferProcess/types/transferProcessStateType.js\";\n\nexport * from \"./dataTypes/transferProcessDataTypes.js\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICatalogError.js","sourceRoot":"","sources":["../../../../src/models/catalog/ICatalogError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Error.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error\n */\nexport interface ICatalogError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.CatalogError;\n\n\t/**\n\t * The error code.\n\t */\n\tcode: string;\n\n\t/**\n\t *
|
|
1
|
+
{"version":3,"file":"ICatalogError.js","sourceRoot":"","sources":["../../../../src/models/catalog/ICatalogError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Error.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error\n */\nexport interface ICatalogError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.CatalogError;\n\n\t/**\n\t * The error code.\n\t */\n\tcode: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICatalogRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/ICatalogRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message\n */\nexport interface ICatalogRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.CatalogRequestMessage;\n\n\t/**\n\t * An implementation-specific query or filter expression.\n\t */\n\tfilter?: unknown;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ICatalogRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/ICatalogRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { CatalogTypes } from \"./catalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message\n */\nexport interface ICatalogRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof CatalogTypes.CatalogRequestMessage;\n\n\t/**\n\t * An implementation-specific query or filter expression.\n\t */\n\tfilter?: unknown[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContractNegotiationError.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Error Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error\n */\nexport interface IContractNegotiationError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationError;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The error code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\
|
|
1
|
+
{"version":3,"file":"IContractNegotiationError.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IContractNegotiationError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { ContractNegotiationTypes } from \"./contractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Error Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error\n */\nexport interface IContractNegotiationError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof ContractNegotiationTypes.ContractNegotiationError;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The error code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataspaceProtocolContextType.js","sourceRoot":"","sources":["../../../src/models/dataspaceProtocolContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { DataspaceProtocolContexts } from \"./dataspaceProtocolContexts.js\";\n\n/**\n * The Dataspace Protocol Protocol JSON-LD context type.\n */\nexport type DataspaceProtocolContextType =\n\t| typeof DataspaceProtocolContexts.ContextRoot\n\t| [\n\t\t\t...IJsonLdContextDefinitionElement[],\n\t\t\ttypeof DataspaceProtocolContexts.ContextRoot,\n\t\t\tIJsonLdContextDefinitionElement\n\t ]\n\t| [\n\t\t\tIJsonLdContextDefinitionElement,\n\t\t\ttypeof DataspaceProtocolContexts.ContextRoot,\n\t\t\t...IJsonLdContextDefinitionElement[]\n\t ];\n"]}
|
|
1
|
+
{"version":3,"file":"dataspaceProtocolContextType.js","sourceRoot":"","sources":["../../../src/models/dataspaceProtocolContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { DataspaceProtocolContexts } from \"./dataspaceProtocolContexts.js\";\n\n/**\n * The Dataspace Protocol Protocol JSON-LD context type.\n */\nexport type DataspaceProtocolContextType =\n\t| [typeof DataspaceProtocolContexts.ContextRoot]\n\t| [\n\t\t\t...IJsonLdContextDefinitionElement[],\n\t\t\ttypeof DataspaceProtocolContexts.ContextRoot,\n\t\t\tIJsonLdContextDefinitionElement\n\t ]\n\t| [\n\t\t\tIJsonLdContextDefinitionElement,\n\t\t\ttypeof DataspaceProtocolContexts.ContextRoot,\n\t\t\t...IJsonLdContextDefinitionElement[]\n\t ];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataAddress.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/IDataAddress.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IEndpointProperty } from \"./IEndpointProperty.js\";\nimport type { TransferProcessTypes } from \"./transferProcessTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types\n */\nexport interface IDataAddress {\n\t/**\n\t * LD Type\n\t */\n\t\"@type\": typeof TransferProcessTypes.DataAddress;\n\n\t/**\n\t * The type of endpoint of this data address.\n\t */\n\tendpointType: string;\n\n\t/**\n\t * The endpoint of the data address\n\t */\n\tendpoint?: string;\n\n\t/**\n\t * Properties associated to the endpoint which might depend on the endpoint type.\n\t */\n\tendpointProperties?: IEndpointProperty[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEndpointProperty.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/IEndpointProperty.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { TransferProcessTypes } from \"./transferProcessTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types\n */\nexport interface IEndpointProperty {\n\t/**\n\t * LD Type.\n\t */\n\t\"@type\": typeof TransferProcessTypes.EndpointProperty;\n\n\t/**\n\t * Property name.\n\t */\n\tname: string;\n\n\t/**\n\t * Property value.\n\t */\n\tvalue: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITransferCompletionMessage.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/ITransferCompletionMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { TransferProcessTypes } from \"./transferProcessTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-completion-message\n */\nexport interface ITransferCompletionMessage {\n\t/**\n\t * LD Context\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * LD Type\n\t */\n\t\"@type\": typeof TransferProcessTypes.TransferCompletionMessage;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Consumer side.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Provider side.\n\t */\n\tproviderPid: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITransferError.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/ITransferError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { TransferProcessTypes } from \"./transferProcessTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol#error-transfer-error\n */\nexport interface ITransferError {\n\t/**\n\t * LD Context\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * LD Type\n\t */\n\t\"@type\": typeof TransferProcessTypes.TransferError;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Consumer side.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Provider side.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The error code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITransferProcess.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/ITransferProcess.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { TransferProcessTypes } from \"./transferProcessTypes.js\";\nimport type { TransferProcessStateType } from \"./types/transferProcessStateType.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#ack-transfer-process\n */\nexport interface ITransferProcess {\n\t/**\n\t * LD Context\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * LD Type\n\t */\n\t\"@type\": typeof TransferProcessTypes.TransferProcess;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Consumer side.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Provider side.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The transfer process state.\n\t */\n\tstate: typeof TransferProcessStateType;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITransferRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/ITransferRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { IDataAddress } from \"./IDataAddress.js\";\nimport type { TransferProcessTypes } from \"./transferProcessTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-request-message\n */\nexport interface ITransferRequestMessage {\n\t/**\n\t * LD Context\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * LD Type\n\t */\n\t\"@type\": typeof TransferProcessTypes.TransferRequestMessage;\n\n\t/**\n\t * MUST refer to an existing Agreement between the Consumer and Provider.\n\t */\n\tagreementId: string;\n\n\t/**\n\t * MUST be a URI indicating where messages to the Consumer SHOULD be sent.\n\t */\n\tcallbackAddress: string;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Consumer side.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The format property is a format specified by a Distribution for the Dataset associated with the Agreement.\n\t * This is generally obtained from the Provider's Catalog.\n\t */\n\tformat: string;\n\n\t/**\n\t * If defined MUST contain a transport-specific set of properties for pushing the data.\n\t * It MAY include an endpoint, a temporary authorization via the endpointProperties property - depending on the endpointType.\n\t */\n\tdataAddress?: IDataAddress;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITransferStartMessage.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/ITransferStartMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { IDataAddress } from \"./IDataAddress.js\";\nimport type { TransferProcessTypes } from \"./transferProcessTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-start-message\n */\nexport interface ITransferStartMessage {\n\t/**\n\t * LD Context\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * LD Type\n\t */\n\t\"@type\": typeof TransferProcessTypes.TransferStartMessage;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Consumer side.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Provider side.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * MUST be provided if the current transfer is a pull transfer and\n\t * contains a transport-specific endpoint address for obtaining the data.\n\t */\n\tdataAddress?: IDataAddress;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITransferSuspensionMessage.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/ITransferSuspensionMessage.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { TransferProcessTypes } from \"./transferProcessTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-suspension-message\n */\nexport interface ITransferSuspensionMessage {\n\t/**\n\t * LD Context\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * LD Type\n\t */\n\t\"@type\": typeof TransferProcessTypes.TransferSuspensionMessage;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Consumer side.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Provider side.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The suspension code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The suspension reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITransferTerminationMessage.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/ITransferTerminationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { TransferProcessTypes } from \"./transferProcessTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-termination-message\n */\nexport interface ITransferTerminationMessage {\n\t/**\n\t * LD Context\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * LD Type\n\t */\n\t\"@type\": typeof TransferProcessTypes.TransferTerminationMessage;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Consumer side.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Provider side.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The termination code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The termination reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The types for Dataspace Protocol Transfer Process.
|
|
5
|
+
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#message-types-1
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const TransferProcessTypes = {
|
|
9
|
+
/**
|
|
10
|
+
* Transfer Request Message.
|
|
11
|
+
*/
|
|
12
|
+
TransferRequestMessage: "TransferRequestMessage",
|
|
13
|
+
/**
|
|
14
|
+
* Transfer Start Message.
|
|
15
|
+
*/
|
|
16
|
+
TransferStartMessage: "TransferStartMessage",
|
|
17
|
+
/**
|
|
18
|
+
* Transfer Suspension Message.
|
|
19
|
+
*/
|
|
20
|
+
TransferSuspensionMessage: "TransferSuspensionMessage",
|
|
21
|
+
/**
|
|
22
|
+
* Transfer Completion Message.
|
|
23
|
+
*/
|
|
24
|
+
TransferCompletionMessage: "TransferCompletionMessage",
|
|
25
|
+
/**
|
|
26
|
+
* Transfer Termination Message.
|
|
27
|
+
*/
|
|
28
|
+
TransferTerminationMessage: "TransferTerminationMessage",
|
|
29
|
+
/**
|
|
30
|
+
* Data Address
|
|
31
|
+
*/
|
|
32
|
+
DataAddress: "DataAddress",
|
|
33
|
+
/**
|
|
34
|
+
* Endpoint property.
|
|
35
|
+
*/
|
|
36
|
+
EndpointProperty: "EndpointProperty",
|
|
37
|
+
/**
|
|
38
|
+
* Transfer Process
|
|
39
|
+
*/
|
|
40
|
+
TransferProcess: "TransferProcess",
|
|
41
|
+
/**
|
|
42
|
+
* Transfer Error.
|
|
43
|
+
*/
|
|
44
|
+
TransferError: "TransferError"
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=transferProcessTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transferProcessTypes.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/transferProcessTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,yBAAyB,EAAE,2BAA2B;IAEtD;;OAEG;IACH,yBAAyB,EAAE,2BAA2B;IAEtD;;OAEG;IACH,0BAA0B,EAAE,4BAA4B;IAExD;;OAEG;IACH,WAAW,EAAE,aAAa;IAE1B;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;IAEpC;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,aAAa,EAAE,eAAe;CAC9B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Transfer Process.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#message-types-1\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const TransferProcessTypes = {\n\t/**\n\t * Transfer Request Message.\n\t */\n\tTransferRequestMessage: \"TransferRequestMessage\",\n\n\t/**\n\t * Transfer Start Message.\n\t */\n\tTransferStartMessage: \"TransferStartMessage\",\n\n\t/**\n\t * Transfer Suspension Message.\n\t */\n\tTransferSuspensionMessage: \"TransferSuspensionMessage\",\n\n\t/**\n\t * Transfer Completion Message.\n\t */\n\tTransferCompletionMessage: \"TransferCompletionMessage\",\n\n\t/**\n\t * Transfer Termination Message.\n\t */\n\tTransferTerminationMessage: \"TransferTerminationMessage\",\n\n\t/**\n\t * Data Address\n\t */\n\tDataAddress: \"DataAddress\",\n\n\t/**\n\t * Endpoint property.\n\t */\n\tEndpointProperty: \"EndpointProperty\",\n\n\t/**\n\t * Transfer Process\n\t */\n\tTransferProcess: \"TransferProcess\",\n\n\t/**\n\t * Transfer Error.\n\t */\n\tTransferError: \"TransferError\"\n};\n\n/**\n * The types for Dataspace Protocol Transfer.\n */\nexport type TransferProcessTypes = (typeof TransferProcessTypes)[keyof typeof TransferProcessTypes];\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The states for Dataspace Protocol Transfer Process.
|
|
5
|
+
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#ack-transfer-process
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const TransferProcessStateType = {
|
|
9
|
+
/**
|
|
10
|
+
* Completed
|
|
11
|
+
*/
|
|
12
|
+
COMPLETED: "COMPLETED",
|
|
13
|
+
/**
|
|
14
|
+
* Requested
|
|
15
|
+
*/
|
|
16
|
+
REQUESTED: "REQUESTED",
|
|
17
|
+
/**
|
|
18
|
+
* Started
|
|
19
|
+
*/
|
|
20
|
+
STARTED: "STARTED",
|
|
21
|
+
/**
|
|
22
|
+
* Suspended
|
|
23
|
+
*/
|
|
24
|
+
SUSPENDED: "SUSPENDED",
|
|
25
|
+
/**
|
|
26
|
+
* Terminated
|
|
27
|
+
*/
|
|
28
|
+
TERMINATED: "TERMINATED"
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=transferProcessStateType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transferProcessStateType.js","sourceRoot":"","sources":["../../../../../src/models/transferProcess/types/transferProcessStateType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,UAAU,EAAE,YAAY;CACxB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The states for Dataspace Protocol Transfer Process.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#ack-transfer-process\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const TransferProcessStateType = {\n\t/**\n\t * Completed\n\t */\n\tCOMPLETED: \"COMPLETED\",\n\n\t/**\n\t * Requested\n\t */\n\tREQUESTED: \"REQUESTED\",\n\n\t/**\n\t * Started\n\t */\n\tSTARTED: \"STARTED\",\n\n\t/**\n\t * Suspended\n\t */\n\tSUSPENDED: \"SUSPENDED\",\n\n\t/**\n\t * Terminated\n\t */\n\tTERMINATED: \"TERMINATED\"\n};\n\n/**\n * The types for Dataspace Protocol Transfer.\n */\nexport type TransferProcessStateType =\n\t(typeof TransferProcessStateType)[keyof typeof TransferProcessStateType];\n"]}
|
|
@@ -8,8 +8,13 @@
|
|
|
8
8
|
"description": "The Dataspace Protocol Protocol JSON-LD context type.",
|
|
9
9
|
"anyOf": [
|
|
10
10
|
{
|
|
11
|
-
"type": "
|
|
12
|
-
"
|
|
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",
|
|
@@ -54,12 +59,10 @@
|
|
|
54
59
|
"type": "string",
|
|
55
60
|
"description": "The error code."
|
|
56
61
|
},
|
|
57
|
-
"
|
|
62
|
+
"reason": {
|
|
58
63
|
"type": "array",
|
|
59
|
-
"items": {
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
"description": "An optional array of error reasons."
|
|
64
|
+
"items": {},
|
|
65
|
+
"description": "The error reason(s)."
|
|
63
66
|
}
|
|
64
67
|
},
|
|
65
68
|
"required": [
|
|
@@ -8,8 +8,13 @@
|
|
|
8
8
|
"description": "The Dataspace Protocol Protocol JSON-LD context type.",
|
|
9
9
|
"anyOf": [
|
|
10
10
|
{
|
|
11
|
-
"type": "
|
|
12
|
-
"
|
|
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",
|
|
@@ -51,6 +56,8 @@
|
|
|
51
56
|
"description": "The type of the message."
|
|
52
57
|
},
|
|
53
58
|
"filter": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {},
|
|
54
61
|
"description": "An implementation-specific query or filter expression."
|
|
55
62
|
}
|
|
56
63
|
},
|
|
@@ -8,8 +8,13 @@
|
|
|
8
8
|
"description": "The Dataspace Protocol Protocol JSON-LD context type.",
|
|
9
9
|
"anyOf": [
|
|
10
10
|
{
|
|
11
|
-
"type": "
|
|
12
|
-
"
|
|
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",
|