@twin.org/standards-dataspace-protocol 0.0.3-next.13 → 0.0.3-next.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/es/dataTypes/catalogDataTypes.js +6 -6
  2. package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
  3. package/dist/es/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js.map +1 -1
  4. package/dist/es/models/transferProcess/dataspaceProtocolTransferProcessTypes.js.map +1 -1
  5. package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js.map +1 -1
  6. package/dist/es/utils/dataspaceProtocolHelper.js +5 -3
  7. package/dist/es/utils/dataspaceProtocolHelper.js.map +1 -1
  8. package/dist/types/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.d.ts +10 -10
  9. package/dist/types/models/transferProcess/dataspaceProtocolTransferProcessTypes.d.ts +9 -9
  10. package/dist/types/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.d.ts +5 -5
  11. package/docs/changelog.md +35 -0
  12. package/docs/reference/interfaces/IDataspaceProtocolContractAgreementMessage.md +1 -1
  13. package/docs/reference/interfaces/IDataspaceProtocolContractAgreementVerificationMessage.md +1 -1
  14. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiation.md +1 -1
  15. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationError.md +1 -1
  16. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationEventMessage.md +1 -1
  17. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationTerminationMessage.md +1 -1
  18. package/docs/reference/interfaces/IDataspaceProtocolContractOfferMessage.md +1 -1
  19. package/docs/reference/interfaces/IDataspaceProtocolContractRequestMessage.md +1 -1
  20. package/docs/reference/interfaces/IDataspaceProtocolDataAddress.md +1 -1
  21. package/docs/reference/interfaces/IDataspaceProtocolEndpointProperty.md +1 -1
  22. package/docs/reference/interfaces/IDataspaceProtocolTransferCompletionMessage.md +1 -1
  23. package/docs/reference/interfaces/IDataspaceProtocolTransferError.md +1 -1
  24. package/docs/reference/interfaces/IDataspaceProtocolTransferProcess.md +2 -2
  25. package/docs/reference/interfaces/IDataspaceProtocolTransferRequestMessage.md +1 -1
  26. package/docs/reference/interfaces/IDataspaceProtocolTransferStartMessage.md +1 -1
  27. package/docs/reference/interfaces/IDataspaceProtocolTransferSuspensionMessage.md +1 -1
  28. package/docs/reference/interfaces/IDataspaceProtocolTransferTerminationMessage.md +1 -1
  29. package/docs/reference/variables/DataspaceProtocolContractNegotiationTypes.md +10 -10
  30. package/docs/reference/variables/DataspaceProtocolTransferProcessStateType.md +5 -5
  31. package/docs/reference/variables/DataspaceProtocolTransferProcessTypes.md +9 -9
  32. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  // Copyright 2025 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  import { DataTypeHelper } from "@twin.org/data-core";
4
- import { DcatClasses, DcatContexts } from "@twin.org/standards-w3c-dcat";
4
+ import { DcatContexts } from "@twin.org/standards-w3c-dcat";
5
5
  import { DataspaceProtocolCatalogTypes } from "../models/catalog/dataspaceProtocolCatalogTypes.js";
6
6
  import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
7
7
  import DsProtocolCatalogSchema from "../schemas/DataspaceProtocolCatalog.json" with { type: "json" };
@@ -34,11 +34,11 @@ export class CatalogDataTypes {
34
34
  }
35
35
  ];
36
36
  DataTypeHelper.registerTypes(DataspaceProtocolContexts.Namespace, DataspaceProtocolContexts.JsonLdContext, types);
37
- // This is just for schema registration as Dataset is a DCAT type
38
- DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DcatClasses.Dataset, DcatContexts.JsonLdContext, DsProtocolDatasetSchema);
39
- DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DcatClasses.Catalog, DcatContexts.JsonLdContext, DsProtocolCatalogSchema);
40
- DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DcatClasses.Distribution, DcatContexts.JsonLdContext, DsProtocolDistributionSchema);
41
- DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DcatClasses.DataService, DcatContexts.JsonLdContext, DsProtocolDataServiceSchema);
37
+ // These are the custom version of the DCAT3 classes with DS Protocol constraints
38
+ DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.Dataset, DcatContexts.JsonLdContext, DsProtocolDatasetSchema);
39
+ DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.Catalog, DcatContexts.JsonLdContext, DsProtocolCatalogSchema);
40
+ DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.Distribution, DcatContexts.JsonLdContext, DsProtocolDistributionSchema);
41
+ DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.DataService, DcatContexts.JsonLdContext, DsProtocolDataServiceSchema);
42
42
  }
43
43
  }
44
44
  //# sourceMappingURL=catalogDataTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalogDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/catalogDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,uBAAuB,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrG,OAAO,kBAAkB,MAAM,+CAA+C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrG,OAAO,2BAA2B,MAAM,wDAAwD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE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C,WAAW,EACvB,YAAY,CAAC,aAAa,EAC1B,2BAA2B,CAC3B,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { DcatClasses, DcatContexts } from \"@twin.org/standards-w3c-dcat\";\nimport { DataspaceProtocolCatalogTypes } from \"../models/catalog/dataspaceProtocolCatalogTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport DsProtocolCatalogSchema from \"../schemas/DataspaceProtocolCatalog.json\" with { type: \"json\" };\nimport CatalogErrorSchema from \"../schemas/DataspaceProtocolCatalogError.json\" with { type: \"json\" };\nimport CatalogRequestMessageSchema from \"../schemas/DataspaceProtocolCatalogRequestMessage.json\" with { type: \"json\" };\nimport DsProtocolDatasetSchema from \"../schemas/DataspaceProtocolDataset.json\" with { type: \"json\" };\nimport DatasetRequestMessageSchema from \"../schemas/DataspaceProtocolDatasetRequestMessage.json\" with { type: \"json\" };\nimport DsProtocolDataServiceSchema from \"../schemas-src/DataspaceProtocolDataService.json\" with { type: \"json\" };\nimport DsProtocolDistributionSchema from \"../schemas-src/DataspaceProtocolDistribution.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\tconst types = [\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.CatalogRequestMessage,\n\t\t\t\tschema: CatalogRequestMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.DatasetRequestMessage,\n\t\t\t\tschema: DatasetRequestMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.CatalogError,\n\t\t\t\tschema: CatalogErrorSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolContexts.JsonLdContext,\n\t\t\ttypes\n\t\t);\n\n\t\t// This is just for schema registration as Dataset is a DCAT type\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDcatClasses.Dataset,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDatasetSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDcatClasses.Catalog,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolCatalogSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDcatClasses.Distribution,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDistributionSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDcatClasses.DataService,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDataServiceSchema\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"catalogDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/catalogDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,uBAAuB,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrG,OAAO,kBAAkB,MAAM,+CAA+C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrG,OAAO,2BAA2B,MAAM,wDAAwD,CAAC,OAA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AAyB,CAAC,SAAS,EACnC,6BAA6B,CAAC,WAAW,EACzC,YAAY,CAAC,aAAa,EAC1B,2BAA2B,CAC3B,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { DcatContexts } from \"@twin.org/standards-w3c-dcat\";\nimport { DataspaceProtocolCatalogTypes } from \"../models/catalog/dataspaceProtocolCatalogTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport DsProtocolCatalogSchema from \"../schemas/DataspaceProtocolCatalog.json\" with { type: \"json\" };\nimport CatalogErrorSchema from \"../schemas/DataspaceProtocolCatalogError.json\" with { type: \"json\" };\nimport CatalogRequestMessageSchema from \"../schemas/DataspaceProtocolCatalogRequestMessage.json\" with { type: \"json\" };\nimport DsProtocolDatasetSchema from \"../schemas/DataspaceProtocolDataset.json\" with { type: \"json\" };\nimport DatasetRequestMessageSchema from \"../schemas/DataspaceProtocolDatasetRequestMessage.json\" with { type: \"json\" };\nimport DsProtocolDataServiceSchema from \"../schemas-src/DataspaceProtocolDataService.json\" with { type: \"json\" };\nimport DsProtocolDistributionSchema from \"../schemas-src/DataspaceProtocolDistribution.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\tconst types = [\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.CatalogRequestMessage,\n\t\t\t\tschema: CatalogRequestMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.DatasetRequestMessage,\n\t\t\t\tschema: DatasetRequestMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.CatalogError,\n\t\t\t\tschema: CatalogErrorSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolContexts.JsonLdContext,\n\t\t\ttypes\n\t\t);\n\n\t\t// These are the custom version of the DCAT3 classes with DS Protocol constraints\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.Dataset,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDatasetSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.Catalog,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolCatalogSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.Distribution,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDistributionSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.DataService,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDataServiceSchema\n\t\t);\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dataspaceProtocolContractNegotiationTypes.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACxD;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,oCAAoC,EAAE,sCAAsC;IAE5E;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,qCAAqC,EAAE,uCAAuC;IAE9E;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;CAC5D,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#message-types-0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceProtocolContractNegotiationTypes = {\n\t/**\n\t * Contract Negotiation.\n\t */\n\tContractNegotiation: \"ContractNegotiation\",\n\n\t/**\n\t * Contract Request Message.\n\t */\n\tContractRequestMessage: \"ContractRequestMessage\",\n\n\t/**\n\t * Contract Offer Message.\n\t */\n\tContractOfferMessage: \"ContractOfferMessage\",\n\n\t/**\n\t * Contract Agreement Message.\n\t */\n\tContractAgreementMessage: \"ContractAgreementMessage\",\n\n\t/**\n\t * Contract Agreement Verification Message.\n\t */\n\tContractAgreementVerificationMessage: \"ContractAgreementVerificationMessage\",\n\n\t/**\n\t * Contract Negotiation Event Message.\n\t */\n\tContractNegotiationEventMessage: \"ContractNegotiationEventMessage\",\n\n\t/**\n\t * Contract Negotiation Termination Message.\n\t */\n\tContractNegotiationTerminationMessage: \"ContractNegotiationTerminationMessage\",\n\n\t/**\n\t * Contract Negotiation Error.\n\t */\n\tContractNegotiationError: \"ContractNegotiationError\",\n\n\t/**\n\t * Contract Negotiation Event Type.\n\t */\n\tContractNegotiationEventType: \"ContractNegotiationEventType\",\n\n\t/**\n\t * Contract Negotiation State Type.\n\t */\n\tContractNegotiationStateType: \"ContractNegotiationStateType\"\n};\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n */\nexport type DataspaceProtocolContractNegotiationTypes =\n\t(typeof DataspaceProtocolContractNegotiationTypes)[keyof typeof DataspaceProtocolContractNegotiationTypes];\n"]}
1
+ {"version":3,"file":"dataspaceProtocolContractNegotiationTypes.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACxD;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,oCAAoC,EAAE,sCAAsC;IAE5E;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,qCAAqC,EAAE,uCAAuC;IAE9E;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;CACnD,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#message-types-0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceProtocolContractNegotiationTypes = {\n\t/**\n\t * Contract Negotiation.\n\t */\n\tContractNegotiation: \"ContractNegotiation\",\n\n\t/**\n\t * Contract Request Message.\n\t */\n\tContractRequestMessage: \"ContractRequestMessage\",\n\n\t/**\n\t * Contract Offer Message.\n\t */\n\tContractOfferMessage: \"ContractOfferMessage\",\n\n\t/**\n\t * Contract Agreement Message.\n\t */\n\tContractAgreementMessage: \"ContractAgreementMessage\",\n\n\t/**\n\t * Contract Agreement Verification Message.\n\t */\n\tContractAgreementVerificationMessage: \"ContractAgreementVerificationMessage\",\n\n\t/**\n\t * Contract Negotiation Event Message.\n\t */\n\tContractNegotiationEventMessage: \"ContractNegotiationEventMessage\",\n\n\t/**\n\t * Contract Negotiation Termination Message.\n\t */\n\tContractNegotiationTerminationMessage: \"ContractNegotiationTerminationMessage\",\n\n\t/**\n\t * Contract Negotiation Error.\n\t */\n\tContractNegotiationError: \"ContractNegotiationError\",\n\n\t/**\n\t * Contract Negotiation Event Type.\n\t */\n\tContractNegotiationEventType: \"ContractNegotiationEventType\",\n\n\t/**\n\t * Contract Negotiation State Type.\n\t */\n\tContractNegotiationStateType: \"ContractNegotiationStateType\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n */\nexport type DataspaceProtocolContractNegotiationTypes =\n\t(typeof DataspaceProtocolContractNegotiationTypes)[keyof typeof DataspaceProtocolContractNegotiationTypes];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dataspaceProtocolTransferProcessTypes.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/dataspaceProtocolTransferProcessTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACpD;;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 DataspaceProtocolTransferProcessTypes = {\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 DataspaceProtocolTransferProcessTypes =\n\t(typeof DataspaceProtocolTransferProcessTypes)[keyof typeof DataspaceProtocolTransferProcessTypes];\n"]}
1
+ {"version":3,"file":"dataspaceProtocolTransferProcessTypes.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/dataspaceProtocolTransferProcessTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACpD;;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;CACrB,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 DataspaceProtocolTransferProcessTypes = {\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} as const;\n\n/**\n * The types for Dataspace Protocol Transfer.\n */\nexport type DataspaceProtocolTransferProcessTypes =\n\t(typeof DataspaceProtocolTransferProcessTypes)[keyof typeof DataspaceProtocolTransferProcessTypes];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dataspaceProtocolTransferProcessStateType.js","sourceRoot":"","sources":["../../../../../src/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACxD;;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 DataspaceProtocolTransferProcessStateType = {\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 DataspaceProtocolTransferProcessStateType =\n\t(typeof DataspaceProtocolTransferProcessStateType)[keyof typeof DataspaceProtocolTransferProcessStateType];\n"]}
1
+ {"version":3,"file":"dataspaceProtocolTransferProcessStateType.js","sourceRoot":"","sources":["../../../../../src/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACxD;;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;CACf,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 DataspaceProtocolTransferProcessStateType = {\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} as const;\n\n/**\n * The types for Dataspace Protocol Transfer.\n */\nexport type DataspaceProtocolTransferProcessStateType =\n\t(typeof DataspaceProtocolTransferProcessStateType)[keyof typeof DataspaceProtocolTransferProcessStateType];\n"]}
@@ -22,12 +22,14 @@ export class DataspaceProtocolHelper {
22
22
  */
23
23
  static async checkConformance(object, validationFailures) {
24
24
  let result = false;
25
- const dcatPrefix = DcatContexts.Namespace;
25
+ const dcatNamespace = DcatContexts.Namespace;
26
26
  const objectTypes = await JsonLdHelper.getType(object);
27
27
  for (const type of objectTypes) {
28
28
  let dataTypeIdentifier = type;
29
- if (type.startsWith(dcatPrefix)) {
30
- const nonQualifiedType = `dcat:${type.replace(dcatPrefix, "")}`;
29
+ // If the DCAT3 types are used, convert to the DS Protocol equivalent
30
+ // which have the enhancements and constraints defined by the DS Protocol
31
+ if (type.startsWith(dcatNamespace)) {
32
+ const nonQualifiedType = type.replace(dcatNamespace, "");
31
33
  dataTypeIdentifier = `${DataspaceProtocolContexts.Namespace}${nonQualifiedType}`;
32
34
  }
33
35
  const schema = await DataTypeHelper.getSchemaForType(dataTyp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,CAAC,0BAA0B,CAAC,MAAyB;QAClE,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAoB,MAAM,CAAC,CAAC;QAE7D,kGAAkG;QAClG,kCAAkC;QAClC,MAAM,gBAAgB,GAAG;YACxB,gBAAgB,EAAE;gBACjB,KAAK,EAAE,gBAAgB;gBACvB,OAAO,EAAE,QAAQ;aACjB;SACD,CAAC;QACF,MAAM,SAAS,GAAG,YAAY,CAAC,WAAW,CAA+B,MAAM,EAAE,UAAU,CAAC,CAAC;QAC7F,IAAI,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;YACzB,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAClC,CAAC;aAAM,IAAI,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,YAAY,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,GAAG,SAAS,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC;QACrF,CAAC;aAAM,IAAI,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,YAAY,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC;QAC7E,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nimport { GeneralError, Is, ObjectHelper, type IValidationFailure } from \"@twin.org/core\";\nimport { DataTypeHelper, JsonSchemaHelper } from \"@twin.org/data-core\";\nimport {\n\tJsonLdHelper,\n\tJsonLdProcessor,\n\ttype IJsonLdContextDefinitionRoot,\n\ttype IJsonLdNodeObject\n} from \"@twin.org/data-json-ld\";\nimport { nameof } from \"@twin.org/nameof\";\nimport { DcatContexts } from \"@twin.org/standards-w3c-dcat\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\n\n/**\n * Dataspace protocol helper.\n */\nexport abstract class DataspaceProtocolHelper {\n\t/**\n\t * The class name.\n\t * @internal\n\t */\n\tpublic static readonly CLASS_NAME = nameof<DataspaceProtocolHelper>();\n\n\t/**\n\t * Checks whether the object passed as parameter is conformant to the DS Protocol definitions.\n\t * @param object The object to check\n\t * @param validationFailures the Validation failures obtained during the conformance checking.\n\t * @returns true or false depending whether the object is conformant or not\n\t */\n\tpublic static async checkConformance(\n\t\tobject: IJsonLdNodeObject,\n\t\tvalidationFailures: IValidationFailure[]\n\t): Promise<boolean> {\n\t\tlet result = false;\n\n\t\tconst dcatPrefix = DcatContexts.Namespace;\n\n\t\tconst objectTypes = await JsonLdHelper.getType(object);\n\n\t\tfor (const type of objectTypes) {\n\t\t\tlet dataTypeIdentifier = type;\n\t\t\tif (type.startsWith(dcatPrefix)) {\n\t\t\t\tconst nonQualifiedType = `dcat:${type.replace(dcatPrefix, \"\")}`;\n\t\t\t\tdataTypeIdentifier = `${DataspaceProtocolContexts.Namespace}${nonQualifiedType}`;\n\t\t\t}\n\n\t\t\tconst schema = await DataTypeHelper.getSchemaForType(dataTypeIdentifier);\n\t\t\tif (!schema) {\n\t\t\t\tthrow new GeneralError(DataspaceProtocolHelper.CLASS_NAME, \"schemaNotRegistered\", {\n\t\t\t\t\tschemaId: dataTypeIdentifier\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst validationResult = await JsonSchemaHelper.validate(\n\t\t\t\tschema,\n\t\t\t\tawait DataspaceProtocolHelper.normalize(object)\n\t\t\t);\n\t\t\tresult = validationResult.result;\n\n\t\t\tif (!result && Is.array(validationResult.error)) {\n\t\t\t\tfor (const aError of validationResult.error) {\n\t\t\t\t\tconst validationFailure: IValidationFailure = {\n\t\t\t\t\t\tproperty: aError.instancePath,\n\t\t\t\t\t\treason: aError.message as string\n\t\t\t\t\t};\n\t\t\t\t\tvalidationFailures.push(validationFailure);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * Normalizes the input object making it compliant with the DS Protocol specifications.\n\t * @param object The input object.\n\t * @returns The input object normalized.\n\t */\n\tpublic static async normalize(object: IJsonLdNodeObject): Promise<IJsonLdNodeObject> {\n\t\tconst annotatedObject = DataspaceProtocolHelper.annotateLDContextForFormat(object);\n\n\t\tconst compactedObject = await JsonLdProcessor.compact(annotatedObject, [\n\t\t\tDataspaceProtocolContexts.JsonLdContext\n\t\t]);\n\n\t\tif (!Is.array(compactedObject[\"@context\"])) {\n\t\t\tObjectHelper.propertySet(compactedObject, \"@context\", [\n\t\t\t\tObjectHelper.propertyGet(compactedObject, \"@context\")\n\t\t\t]);\n\t\t}\n\n\t\treturn compactedObject;\n\t}\n\n\t/**\n\t * Ensures format property has a proper LD Context.\n\t * @param object The object.\n\t * @returns a copy of the object annotated with the proper LD Context.\n\t * @internal\n\t */\n\tprivate static annotateLDContextForFormat(object: IJsonLdNodeObject): IJsonLdNodeObject {\n\t\tconst result = ObjectHelper.clone<IJsonLdNodeObject>(object);\n\n\t\t// This step is needed before compaction as 'dcterms:format' is not defined originally as '@vocab'\n\t\t// but it is in the DSP LD Context\n\t\tconst EXTRA_ANNOTATION = {\n\t\t\t\"dcterms:format\": {\n\t\t\t\t\"@id\": \"dcterms:format\",\n\t\t\t\t\"@type\": \"@vocab\"\n\t\t\t}\n\t\t};\n\t\tconst ldContext = ObjectHelper.propertyGet<IJsonLdContextDefinitionRoot>(result, \"@context\");\n\t\tif (Is.array(ldContext)) {\n\t\t\tldContext.push(EXTRA_ANNOTATION);\n\t\t} else if (Is.object(ldContext)) {\n\t\t\tObjectHelper.propertySet(result, \"@context\", { ...ldContext, ...EXTRA_ANNOTATION });\n\t\t} else if (Is.string(ldContext)) {\n\t\t\tObjectHelper.propertySet(result, \"@context\", [ldContext, EXTRA_ANNOTATION]);\n\t\t}\n\n\t\treturn result;\n\t}\n}\n"]}
1
+ {"version":3,"file":"dataspaceProtocolHelper.js","sourceRoot":"","sources":["../../../src/utils/dataspacePro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oB,MAAM,CAAC,CAAC;QAE7D,kGAAkG;QAClG,kCAAkC;QAClC,MAAM,gBAAgB,GAAG;YACxB,gBAAgB,EAAE;gBACjB,KAAK,EAAE,gBAAgB;gBACvB,OAAO,EAAE,QAAQ;aACjB;SACD,CAAC;QACF,MAAM,SAAS,GAAG,YAAY,CAAC,WAAW,CAA+B,MAAM,EAAE,UAAU,CAAC,CAAC;QAC7F,IAAI,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;YACzB,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAClC,CAAC;aAAM,IAAI,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,YAAY,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,GAAG,SAAS,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC;QACrF,CAAC;aAAM,IAAI,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,YAAY,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC;QAC7E,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nimport { GeneralError, Is, ObjectHelper, type IValidationFailure } from \"@twin.org/core\";\nimport { DataTypeHelper, JsonSchemaHelper } from \"@twin.org/data-core\";\nimport {\n\tJsonLdHelper,\n\tJsonLdProcessor,\n\ttype IJsonLdContextDefinitionRoot,\n\ttype IJsonLdNodeObject\n} from \"@twin.org/data-json-ld\";\nimport { nameof } from \"@twin.org/nameof\";\nimport { DcatContexts } from \"@twin.org/standards-w3c-dcat\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\n\n/**\n * Dataspace protocol helper.\n */\nexport abstract class DataspaceProtocolHelper {\n\t/**\n\t * The class name.\n\t * @internal\n\t */\n\tpublic static readonly CLASS_NAME = nameof<DataspaceProtocolHelper>();\n\n\t/**\n\t * Checks whether the object passed as parameter is conformant to the DS Protocol definitions.\n\t * @param object The object to check\n\t * @param validationFailures the Validation failures obtained during the conformance checking.\n\t * @returns true or false depending whether the object is conformant or not\n\t */\n\tpublic static async checkConformance(\n\t\tobject: IJsonLdNodeObject,\n\t\tvalidationFailures: IValidationFailure[]\n\t): Promise<boolean> {\n\t\tlet result = false;\n\n\t\tconst dcatNamespace = DcatContexts.Namespace;\n\n\t\tconst objectTypes = await JsonLdHelper.getType(object);\n\n\t\tfor (const type of objectTypes) {\n\t\t\tlet dataTypeIdentifier = type;\n\n\t\t\t// If the DCAT3 types are used, convert to the DS Protocol equivalent\n\t\t\t// which have the enhancements and constraints defined by the DS Protocol\n\t\t\tif (type.startsWith(dcatNamespace)) {\n\t\t\t\tconst nonQualifiedType = type.replace(dcatNamespace, \"\");\n\t\t\t\tdataTypeIdentifier = `${DataspaceProtocolContexts.Namespace}${nonQualifiedType}`;\n\t\t\t}\n\n\t\t\tconst schema = await DataTypeHelper.getSchemaForType(dataTypeIdentifier);\n\t\t\tif (!schema) {\n\t\t\t\tthrow new GeneralError(DataspaceProtocolHelper.CLASS_NAME, \"schemaNotRegistered\", {\n\t\t\t\t\tschemaId: dataTypeIdentifier\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst validationResult = await JsonSchemaHelper.validate(\n\t\t\t\tschema,\n\t\t\t\tawait DataspaceProtocolHelper.normalize(object)\n\t\t\t);\n\t\t\tresult = validationResult.result;\n\n\t\t\tif (!result && Is.array(validationResult.error)) {\n\t\t\t\tfor (const aError of validationResult.error) {\n\t\t\t\t\tconst validationFailure: IValidationFailure = {\n\t\t\t\t\t\tproperty: aError.instancePath,\n\t\t\t\t\t\treason: aError.message as string\n\t\t\t\t\t};\n\t\t\t\t\tvalidationFailures.push(validationFailure);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * Normalizes the input object making it compliant with the DS Protocol specifications.\n\t * @param object The input object.\n\t * @returns The input object normalized.\n\t */\n\tpublic static async normalize(object: IJsonLdNodeObject): Promise<IJsonLdNodeObject> {\n\t\tconst annotatedObject = DataspaceProtocolHelper.annotateLDContextForFormat(object);\n\n\t\tconst compactedObject = await JsonLdProcessor.compact(annotatedObject, [\n\t\t\tDataspaceProtocolContexts.JsonLdContext\n\t\t]);\n\n\t\tif (!Is.array(compactedObject[\"@context\"])) {\n\t\t\tObjectHelper.propertySet(compactedObject, \"@context\", [\n\t\t\t\tObjectHelper.propertyGet(compactedObject, \"@context\")\n\t\t\t]);\n\t\t}\n\n\t\treturn compactedObject;\n\t}\n\n\t/**\n\t * Ensures format property has a proper LD Context.\n\t * @param object The object.\n\t * @returns a copy of the object annotated with the proper LD Context.\n\t * @internal\n\t */\n\tprivate static annotateLDContextForFormat(object: IJsonLdNodeObject): IJsonLdNodeObject {\n\t\tconst result = ObjectHelper.clone<IJsonLdNodeObject>(object);\n\n\t\t// This step is needed before compaction as 'dcterms:format' is not defined originally as '@vocab'\n\t\t// but it is in the DSP LD Context\n\t\tconst EXTRA_ANNOTATION = {\n\t\t\t\"dcterms:format\": {\n\t\t\t\t\"@id\": \"dcterms:format\",\n\t\t\t\t\"@type\": \"@vocab\"\n\t\t\t}\n\t\t};\n\t\tconst ldContext = ObjectHelper.propertyGet<IJsonLdContextDefinitionRoot>(result, \"@context\");\n\t\tif (Is.array(ldContext)) {\n\t\t\tldContext.push(EXTRA_ANNOTATION);\n\t\t} else if (Is.object(ldContext)) {\n\t\t\tObjectHelper.propertySet(result, \"@context\", { ...ldContext, ...EXTRA_ANNOTATION });\n\t\t} else if (Is.string(ldContext)) {\n\t\t\tObjectHelper.propertySet(result, \"@context\", [ldContext, EXTRA_ANNOTATION]);\n\t\t}\n\n\t\treturn result;\n\t}\n}\n"]}
@@ -6,43 +6,43 @@ export declare const DataspaceProtocolContractNegotiationTypes: {
6
6
  /**
7
7
  * Contract Negotiation.
8
8
  */
9
- ContractNegotiation: string;
9
+ readonly ContractNegotiation: "ContractNegotiation";
10
10
  /**
11
11
  * Contract Request Message.
12
12
  */
13
- ContractRequestMessage: string;
13
+ readonly ContractRequestMessage: "ContractRequestMessage";
14
14
  /**
15
15
  * Contract Offer Message.
16
16
  */
17
- ContractOfferMessage: string;
17
+ readonly ContractOfferMessage: "ContractOfferMessage";
18
18
  /**
19
19
  * Contract Agreement Message.
20
20
  */
21
- ContractAgreementMessage: string;
21
+ readonly ContractAgreementMessage: "ContractAgreementMessage";
22
22
  /**
23
23
  * Contract Agreement Verification Message.
24
24
  */
25
- ContractAgreementVerificationMessage: string;
25
+ readonly ContractAgreementVerificationMessage: "ContractAgreementVerificationMessage";
26
26
  /**
27
27
  * Contract Negotiation Event Message.
28
28
  */
29
- ContractNegotiationEventMessage: string;
29
+ readonly ContractNegotiationEventMessage: "ContractNegotiationEventMessage";
30
30
  /**
31
31
  * Contract Negotiation Termination Message.
32
32
  */
33
- ContractNegotiationTerminationMessage: string;
33
+ readonly ContractNegotiationTerminationMessage: "ContractNegotiationTerminationMessage";
34
34
  /**
35
35
  * Contract Negotiation Error.
36
36
  */
37
- ContractNegotiationError: string;
37
+ readonly ContractNegotiationError: "ContractNegotiationError";
38
38
  /**
39
39
  * Contract Negotiation Event Type.
40
40
  */
41
- ContractNegotiationEventType: string;
41
+ readonly ContractNegotiationEventType: "ContractNegotiationEventType";
42
42
  /**
43
43
  * Contract Negotiation State Type.
44
44
  */
45
- ContractNegotiationStateType: string;
45
+ readonly ContractNegotiationStateType: "ContractNegotiationStateType";
46
46
  };
47
47
  /**
48
48
  * The types for Dataspace Protocol Contract Negotiation.
@@ -6,39 +6,39 @@ export declare const DataspaceProtocolTransferProcessTypes: {
6
6
  /**
7
7
  * Transfer Request Message.
8
8
  */
9
- TransferRequestMessage: string;
9
+ readonly TransferRequestMessage: "TransferRequestMessage";
10
10
  /**
11
11
  * Transfer Start Message.
12
12
  */
13
- TransferStartMessage: string;
13
+ readonly TransferStartMessage: "TransferStartMessage";
14
14
  /**
15
15
  * Transfer Suspension Message.
16
16
  */
17
- TransferSuspensionMessage: string;
17
+ readonly TransferSuspensionMessage: "TransferSuspensionMessage";
18
18
  /**
19
19
  * Transfer Completion Message.
20
20
  */
21
- TransferCompletionMessage: string;
21
+ readonly TransferCompletionMessage: "TransferCompletionMessage";
22
22
  /**
23
23
  * Transfer Termination Message.
24
24
  */
25
- TransferTerminationMessage: string;
25
+ readonly TransferTerminationMessage: "TransferTerminationMessage";
26
26
  /**
27
27
  * Data Address
28
28
  */
29
- DataAddress: string;
29
+ readonly DataAddress: "DataAddress";
30
30
  /**
31
31
  * Endpoint property.
32
32
  */
33
- EndpointProperty: string;
33
+ readonly EndpointProperty: "EndpointProperty";
34
34
  /**
35
35
  * Transfer Process
36
36
  */
37
- TransferProcess: string;
37
+ readonly TransferProcess: "TransferProcess";
38
38
  /**
39
39
  * Transfer Error.
40
40
  */
41
- TransferError: string;
41
+ readonly TransferError: "TransferError";
42
42
  };
43
43
  /**
44
44
  * The types for Dataspace Protocol Transfer.
@@ -6,23 +6,23 @@ export declare const DataspaceProtocolTransferProcessStateType: {
6
6
  /**
7
7
  * Completed
8
8
  */
9
- COMPLETED: string;
9
+ readonly COMPLETED: "COMPLETED";
10
10
  /**
11
11
  * Requested
12
12
  */
13
- REQUESTED: string;
13
+ readonly REQUESTED: "REQUESTED";
14
14
  /**
15
15
  * Started
16
16
  */
17
- STARTED: string;
17
+ readonly STARTED: "STARTED";
18
18
  /**
19
19
  * Suspended
20
20
  */
21
- SUSPENDED: string;
21
+ readonly SUSPENDED: "SUSPENDED";
22
22
  /**
23
23
  * Terminated
24
24
  */
25
- TERMINATED: string;
25
+ readonly TERMINATED: "TERMINATED";
26
26
  };
27
27
  /**
28
28
  * The types for Dataspace Protocol Transfer.
package/docs/changelog.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.15](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.14...standards-dataspace-protocol-v0.0.3-next.15) (2026-01-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * add missing const modifiers for enum const ([0f40483](https://github.com/twinfoundation/standards/commit/0f40483395b5d214ae7a80ff0f17991ee11acdea))
9
+ * add missing const modifiers for enum const ([7e66eaf](https://github.com/twinfoundation/standards/commit/7e66eaff416654c6f71efd86c65557f7dcb55de1))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * The following workspace dependencies were updated
15
+ * dependencies
16
+ * @twin.org/standards-w3c-dcat bumped from 0.0.3-next.14 to 0.0.3-next.15
17
+ * @twin.org/standards-w3c-odrl bumped from 0.0.3-next.14 to 0.0.3-next.15
18
+ * devDependencies
19
+ * @twin.org/standards-ld-contexts bumped from 0.0.3-next.14 to 0.0.3-next.15
20
+
21
+ ## [0.0.3-next.14](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.13...standards-dataspace-protocol-v0.0.3-next.14) (2026-01-15)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * correct registration type for DS DCAT3 type ([04703df](https://github.com/twinfoundation/standards/commit/04703df048f56f6315bbd0bb73b7b6b62eb858a1))
27
+
28
+
29
+ ### Dependencies
30
+
31
+ * The following workspace dependencies were updated
32
+ * dependencies
33
+ * @twin.org/standards-w3c-dcat bumped from 0.0.3-next.13 to 0.0.3-next.14
34
+ * @twin.org/standards-w3c-odrl bumped from 0.0.3-next.13 to 0.0.3-next.14
35
+ * devDependencies
36
+ * @twin.org/standards-ld-contexts bumped from 0.0.3-next.13 to 0.0.3-next.14
37
+
3
38
  ## [0.0.3-next.13](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.12...standards-dataspace-protocol-v0.0.3-next.13) (2026-01-14)
4
39
 
5
40
 
@@ -15,7 +15,7 @@ The JSON-LD context.
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"ContractAgreementMessage"`
19
19
 
20
20
  The type of the message.
21
21
 
@@ -15,7 +15,7 @@ The JSON-LD context.
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"ContractAgreementVerificationMessage"`
19
19
 
20
20
  The type of the message.
21
21
 
@@ -15,7 +15,7 @@ The JSON-LD context.
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"ContractNegotiation"`
19
19
 
20
20
  The type of the message.
21
21
 
@@ -15,7 +15,7 @@ The JSON-LD context.
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"ContractNegotiationError"`
19
19
 
20
20
  The type of the message.
21
21
 
@@ -15,7 +15,7 @@ The JSON-LD context.
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"ContractNegotiationEventMessage"`
19
19
 
20
20
  The type of the message.
21
21
 
@@ -15,7 +15,7 @@ The JSON-LD context.
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"ContractNegotiationTerminationMessage"`
19
19
 
20
20
  The type of the message.
21
21
 
@@ -15,7 +15,7 @@ The JSON-LD context.
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"ContractOfferMessage"`
19
19
 
20
20
  The type of the message.
21
21
 
@@ -15,7 +15,7 @@ The JSON-LD context.
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"ContractRequestMessage"`
19
19
 
20
20
  The type of the message.
21
21
 
@@ -7,7 +7,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level
7
7
 
8
8
  ### @type
9
9
 
10
- > **@type**: `string`
10
+ > **@type**: `"DataAddress"`
11
11
 
12
12
  LD Type
13
13
 
@@ -7,7 +7,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level
7
7
 
8
8
  ### @type
9
9
 
10
- > **@type**: `string`
10
+ > **@type**: `"EndpointProperty"`
11
11
 
12
12
  LD Type.
13
13
 
@@ -15,7 +15,7 @@ LD Context
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"TransferCompletionMessage"`
19
19
 
20
20
  LD Type
21
21
 
@@ -15,7 +15,7 @@ LD Context
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"TransferError"`
19
19
 
20
20
  LD Type
21
21
 
@@ -15,7 +15,7 @@ LD Context
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"TransferProcess"`
19
19
 
20
20
  LD Type
21
21
 
@@ -39,6 +39,6 @@ MUST refer to the transfer identifier of the Provider side.
39
39
 
40
40
  ### state
41
41
 
42
- > **state**: `string`
42
+ > **state**: [`DataspaceProtocolTransferProcessStateType`](../type-aliases/DataspaceProtocolTransferProcessStateType.md)
43
43
 
44
44
  The transfer process state.
@@ -15,7 +15,7 @@ LD Context
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"TransferRequestMessage"`
19
19
 
20
20
  LD Type
21
21
 
@@ -15,7 +15,7 @@ LD Context
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"TransferStartMessage"`
19
19
 
20
20
  LD Type
21
21
 
@@ -15,7 +15,7 @@ LD Context
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"TransferSuspensionMessage"`
19
19
 
20
20
  LD Type
21
21
 
@@ -15,7 +15,7 @@ LD Context
15
15
 
16
16
  ### @type
17
17
 
18
- > **@type**: `string`
18
+ > **@type**: `"TransferTerminationMessage"`
19
19
 
20
20
  LD Type
21
21
 
@@ -9,60 +9,60 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#mess
9
9
 
10
10
  ### ContractNegotiation
11
11
 
12
- > **ContractNegotiation**: `string` = `"ContractNegotiation"`
12
+ > `readonly` **ContractNegotiation**: `"ContractNegotiation"` = `"ContractNegotiation"`
13
13
 
14
14
  Contract Negotiation.
15
15
 
16
16
  ### ContractRequestMessage
17
17
 
18
- > **ContractRequestMessage**: `string` = `"ContractRequestMessage"`
18
+ > `readonly` **ContractRequestMessage**: `"ContractRequestMessage"` = `"ContractRequestMessage"`
19
19
 
20
20
  Contract Request Message.
21
21
 
22
22
  ### ContractOfferMessage
23
23
 
24
- > **ContractOfferMessage**: `string` = `"ContractOfferMessage"`
24
+ > `readonly` **ContractOfferMessage**: `"ContractOfferMessage"` = `"ContractOfferMessage"`
25
25
 
26
26
  Contract Offer Message.
27
27
 
28
28
  ### ContractAgreementMessage
29
29
 
30
- > **ContractAgreementMessage**: `string` = `"ContractAgreementMessage"`
30
+ > `readonly` **ContractAgreementMessage**: `"ContractAgreementMessage"` = `"ContractAgreementMessage"`
31
31
 
32
32
  Contract Agreement Message.
33
33
 
34
34
  ### ContractAgreementVerificationMessage
35
35
 
36
- > **ContractAgreementVerificationMessage**: `string` = `"ContractAgreementVerificationMessage"`
36
+ > `readonly` **ContractAgreementVerificationMessage**: `"ContractAgreementVerificationMessage"` = `"ContractAgreementVerificationMessage"`
37
37
 
38
38
  Contract Agreement Verification Message.
39
39
 
40
40
  ### ContractNegotiationEventMessage
41
41
 
42
- > **ContractNegotiationEventMessage**: `string` = `"ContractNegotiationEventMessage"`
42
+ > `readonly` **ContractNegotiationEventMessage**: `"ContractNegotiationEventMessage"` = `"ContractNegotiationEventMessage"`
43
43
 
44
44
  Contract Negotiation Event Message.
45
45
 
46
46
  ### ContractNegotiationTerminationMessage
47
47
 
48
- > **ContractNegotiationTerminationMessage**: `string` = `"ContractNegotiationTerminationMessage"`
48
+ > `readonly` **ContractNegotiationTerminationMessage**: `"ContractNegotiationTerminationMessage"` = `"ContractNegotiationTerminationMessage"`
49
49
 
50
50
  Contract Negotiation Termination Message.
51
51
 
52
52
  ### ContractNegotiationError
53
53
 
54
- > **ContractNegotiationError**: `string` = `"ContractNegotiationError"`
54
+ > `readonly` **ContractNegotiationError**: `"ContractNegotiationError"` = `"ContractNegotiationError"`
55
55
 
56
56
  Contract Negotiation Error.
57
57
 
58
58
  ### ContractNegotiationEventType
59
59
 
60
- > **ContractNegotiationEventType**: `string` = `"ContractNegotiationEventType"`
60
+ > `readonly` **ContractNegotiationEventType**: `"ContractNegotiationEventType"` = `"ContractNegotiationEventType"`
61
61
 
62
62
  Contract Negotiation Event Type.
63
63
 
64
64
  ### ContractNegotiationStateType
65
65
 
66
- > **ContractNegotiationStateType**: `string` = `"ContractNegotiationStateType"`
66
+ > `readonly` **ContractNegotiationStateType**: `"ContractNegotiationStateType"` = `"ContractNegotiationStateType"`
67
67
 
68
68
  Contract Negotiation State Type.
@@ -9,30 +9,30 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/
9
9
 
10
10
  ### COMPLETED
11
11
 
12
- > **COMPLETED**: `string` = `"COMPLETED"`
12
+ > `readonly` **COMPLETED**: `"COMPLETED"` = `"COMPLETED"`
13
13
 
14
14
  Completed
15
15
 
16
16
  ### REQUESTED
17
17
 
18
- > **REQUESTED**: `string` = `"REQUESTED"`
18
+ > `readonly` **REQUESTED**: `"REQUESTED"` = `"REQUESTED"`
19
19
 
20
20
  Requested
21
21
 
22
22
  ### STARTED
23
23
 
24
- > **STARTED**: `string` = `"STARTED"`
24
+ > `readonly` **STARTED**: `"STARTED"` = `"STARTED"`
25
25
 
26
26
  Started
27
27
 
28
28
  ### SUSPENDED
29
29
 
30
- > **SUSPENDED**: `string` = `"SUSPENDED"`
30
+ > `readonly` **SUSPENDED**: `"SUSPENDED"` = `"SUSPENDED"`
31
31
 
32
32
  Suspended
33
33
 
34
34
  ### TERMINATED
35
35
 
36
- > **TERMINATED**: `string` = `"TERMINATED"`
36
+ > `readonly` **TERMINATED**: `"TERMINATED"` = `"TERMINATED"`
37
37
 
38
38
  Terminated
@@ -9,54 +9,54 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/
9
9
 
10
10
  ### TransferRequestMessage
11
11
 
12
- > **TransferRequestMessage**: `string` = `"TransferRequestMessage"`
12
+ > `readonly` **TransferRequestMessage**: `"TransferRequestMessage"` = `"TransferRequestMessage"`
13
13
 
14
14
  Transfer Request Message.
15
15
 
16
16
  ### TransferStartMessage
17
17
 
18
- > **TransferStartMessage**: `string` = `"TransferStartMessage"`
18
+ > `readonly` **TransferStartMessage**: `"TransferStartMessage"` = `"TransferStartMessage"`
19
19
 
20
20
  Transfer Start Message.
21
21
 
22
22
  ### TransferSuspensionMessage
23
23
 
24
- > **TransferSuspensionMessage**: `string` = `"TransferSuspensionMessage"`
24
+ > `readonly` **TransferSuspensionMessage**: `"TransferSuspensionMessage"` = `"TransferSuspensionMessage"`
25
25
 
26
26
  Transfer Suspension Message.
27
27
 
28
28
  ### TransferCompletionMessage
29
29
 
30
- > **TransferCompletionMessage**: `string` = `"TransferCompletionMessage"`
30
+ > `readonly` **TransferCompletionMessage**: `"TransferCompletionMessage"` = `"TransferCompletionMessage"`
31
31
 
32
32
  Transfer Completion Message.
33
33
 
34
34
  ### TransferTerminationMessage
35
35
 
36
- > **TransferTerminationMessage**: `string` = `"TransferTerminationMessage"`
36
+ > `readonly` **TransferTerminationMessage**: `"TransferTerminationMessage"` = `"TransferTerminationMessage"`
37
37
 
38
38
  Transfer Termination Message.
39
39
 
40
40
  ### DataAddress
41
41
 
42
- > **DataAddress**: `string` = `"DataAddress"`
42
+ > `readonly` **DataAddress**: `"DataAddress"` = `"DataAddress"`
43
43
 
44
44
  Data Address
45
45
 
46
46
  ### EndpointProperty
47
47
 
48
- > **EndpointProperty**: `string` = `"EndpointProperty"`
48
+ > `readonly` **EndpointProperty**: `"EndpointProperty"` = `"EndpointProperty"`
49
49
 
50
50
  Endpoint property.
51
51
 
52
52
  ### TransferProcess
53
53
 
54
- > **TransferProcess**: `string` = `"TransferProcess"`
54
+ > `readonly` **TransferProcess**: `"TransferProcess"` = `"TransferProcess"`
55
55
 
56
56
  Transfer Process
57
57
 
58
58
  ### TransferError
59
59
 
60
- > **TransferError**: `string` = `"TransferError"`
60
+ > `readonly` **TransferError**: `"TransferError"` = `"TransferError"`
61
61
 
62
62
  Transfer Error.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-dataspace-protocol",
3
- "version": "0.0.3-next.13",
3
+ "version": "0.0.3-next.15",
4
4
  "description": "Models which define the structure of Dataspace Protocol",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,8 +17,8 @@
17
17
  "@twin.org/core": "next",
18
18
  "@twin.org/data-core": "next",
19
19
  "@twin.org/data-json-ld": "next",
20
- "@twin.org/standards-w3c-dcat": "0.0.3-next.13",
21
- "@twin.org/standards-w3c-odrl": "0.0.3-next.13",
20
+ "@twin.org/standards-w3c-dcat": "0.0.3-next.15",
21
+ "@twin.org/standards-w3c-odrl": "0.0.3-next.15",
22
22
  "@twin.org/web": "next"
23
23
  },
24
24
  "main": "./dist/es/index.js",