@twin.org/standards-dataspace-protocol 0.0.3-next.42 → 0.0.3-next.44

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 (30) hide show
  1. package/dist/es/models/catalog/IDataspaceProtocolCatalog.js.map +1 -1
  2. package/dist/es/models/catalog/IDataspaceProtocolDataService.js.map +1 -1
  3. package/dist/es/models/catalog/IDataspaceProtocolDataset.js.map +1 -1
  4. package/dist/es/models/catalog/IDataspaceProtocolDistribution.js.map +1 -1
  5. package/dist/es/schemas/DataspaceProtocolCatalogError.json +1 -2
  6. package/dist/es/schemas/DataspaceProtocolCatalogRequestMessage.json +1 -2
  7. package/dist/es/schemas/DataspaceProtocolContractAgreementMessage.json +1 -2
  8. package/dist/es/schemas/DataspaceProtocolContractAgreementVerificationMessage.json +1 -2
  9. package/dist/es/schemas/DataspaceProtocolContractNegotiation.json +1 -2
  10. package/dist/es/schemas/DataspaceProtocolContractNegotiationError.json +1 -2
  11. package/dist/es/schemas/DataspaceProtocolContractNegotiationEventMessage.json +1 -2
  12. package/dist/es/schemas/DataspaceProtocolContractNegotiationTerminationMessage.json +1 -2
  13. package/dist/es/schemas/DataspaceProtocolContractOfferMessage.json +1 -2
  14. package/dist/es/schemas/DataspaceProtocolContractRequestMessage.json +1 -2
  15. package/dist/es/schemas/DataspaceProtocolDataAddress.json +1 -2
  16. package/dist/es/schemas/DataspaceProtocolDatasetRequestMessage.json +1 -2
  17. package/dist/es/schemas/DataspaceProtocolEndpointProperty.json +1 -2
  18. package/dist/es/schemas/DataspaceProtocolTransferCompletionMessage.json +1 -2
  19. package/dist/es/schemas/DataspaceProtocolTransferError.json +1 -2
  20. package/dist/es/schemas/DataspaceProtocolTransferProcess.json +1 -2
  21. package/dist/es/schemas/DataspaceProtocolTransferRequestMessage.json +1 -2
  22. package/dist/es/schemas/DataspaceProtocolTransferStartMessage.json +1 -2
  23. package/dist/es/schemas/DataspaceProtocolTransferSuspensionMessage.json +1 -2
  24. package/dist/es/schemas/DataspaceProtocolTransferTerminationMessage.json +1 -2
  25. package/docs/changelog.md +34 -0
  26. package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +480 -0
  27. package/docs/reference/interfaces/IDataspaceProtocolDataService.md +321 -0
  28. package/docs/reference/interfaces/IDataspaceProtocolDataset.md +400 -0
  29. package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +288 -0
  30. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"IDataspaceProtocolCatalog.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolCatalog.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatCatalog } from \"@twin.org/standards-w3c-dcat\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataService } from \"./IDataspaceProtocolDataService.js\";\nimport type { IDataspaceProtocolDataset } from \"./IDataspaceProtocolDataset.js\";\nimport type { IDataspaceProtocolDistribution } from \"./IDataspaceProtocolDistribution.js\";\n\n/**\n * Catalog interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends ICatalog and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - participantId MUST be present (REQUIRED)\n *\n * **Type System Design:**\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n *\n */\nexport interface IDataspaceProtocolCatalog\n\textends Omit<\n\t\tIDcatCatalog,\n\t\t\"@type\" | \"@context\" | \"dcat:catalog\" | \"dcat:dataset\" | \"dcat:distribution\" | \"dcat:service\"\n\t> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the Catalog.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.Catalog;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Participant Id\n\t */\n\tparticipantId: string;\n\n\t/**\n\t * Other concerned catalogs\n\t */\n\tcatalog?: ObjectOrArray<Omit<IDataspaceProtocolCatalog, \"@context\">>;\n\n\t/**\n\t * Datasets registered\n\t */\n\tdataset?: ObjectOrArray<Omit<IDataspaceProtocolDataset, \"@context\">>;\n\n\t/**\n\t * Catalog's distributions\n\t */\n\tdistribution?: ObjectOrArray<Omit<IDataspaceProtocolDistribution, \"@context\">>;\n\n\t/**\n\t * Data services registered-\n\t */\n\tservice?: ObjectOrArray<Omit<IDataspaceProtocolDataService, \"@context\">>;\n}\n"]}
1
+ {"version":3,"file":"IDataspaceProtocolCatalog.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolCatalog.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatCatalog } from \"@twin.org/standards-w3c-dcat\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataService } from \"./IDataspaceProtocolDataService.js\";\nimport type { IDataspaceProtocolDataset } from \"./IDataspaceProtocolDataset.js\";\nimport type { IDataspaceProtocolDistribution } from \"./IDataspaceProtocolDistribution.js\";\n\n/**\n * Catalog interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends ICatalog and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - participantId MUST be present (REQUIRED)\n *\n * **Type System Design:**\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n *\n */\nexport interface IDataspaceProtocolCatalog extends Omit<\n\tIDcatCatalog,\n\t\"@type\" | \"@context\" | \"dcat:catalog\" | \"dcat:dataset\" | \"dcat:distribution\" | \"dcat:service\"\n> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the Catalog.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.Catalog;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Participant Id\n\t */\n\tparticipantId: string;\n\n\t/**\n\t * Other concerned catalogs\n\t */\n\tcatalog?: ObjectOrArray<Omit<IDataspaceProtocolCatalog, \"@context\">>;\n\n\t/**\n\t * Datasets registered\n\t */\n\tdataset?: ObjectOrArray<Omit<IDataspaceProtocolDataset, \"@context\">>;\n\n\t/**\n\t * Catalog's distributions\n\t */\n\tdistribution?: ObjectOrArray<Omit<IDataspaceProtocolDistribution, \"@context\">>;\n\n\t/**\n\t * Data services registered-\n\t */\n\tservice?: ObjectOrArray<Omit<IDataspaceProtocolDataService, \"@context\">>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IDataspaceProtocolDataService.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDataService.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatDataService } from \"@twin.org/standards-w3c-dcat\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataset } from \"./IDataspaceProtocolDataset.js\";\n\n/**\n * Data Service interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends IDataService and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - endpointURL MUST be present (REQUIRED)\n *\n * **Type System Design:**\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n *\n */\nexport interface IDataspaceProtocolDataService\n\textends Omit<IDcatDataService, \"@type\" | \"@context\" | \"dcat:servesDataset\" | \"dcat:endpointURL\"> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the Data Service.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.DataService;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Endpoint URL\n\t */\n\tendpointURL: string;\n\n\t/**\n\t * Datasets served.\n\t */\n\tservesDataset?: ObjectOrArray<Omit<IDataspaceProtocolDataset, \"@context\">>;\n}\n"]}
1
+ {"version":3,"file":"IDataspaceProtocolDataService.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDataService.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatDataService } from \"@twin.org/standards-w3c-dcat\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataset } from \"./IDataspaceProtocolDataset.js\";\n\n/**\n * Data Service interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends IDataService and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - endpointURL MUST be present (REQUIRED)\n *\n * **Type System Design:**\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n *\n */\nexport interface IDataspaceProtocolDataService extends Omit<\n\tIDcatDataService,\n\t\"@type\" | \"@context\" | \"dcat:servesDataset\" | \"dcat:endpointURL\"\n> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the Data Service.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.DataService;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Endpoint URL\n\t */\n\tendpointURL: string;\n\n\t/**\n\t * Datasets served.\n\t */\n\tservesDataset?: ObjectOrArray<Omit<IDataspaceProtocolDataset, \"@context\">>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IDataspaceProtocolDataset.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDataset.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatDataset } from \"@twin.org/standards-w3c-dcat\";\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDistribution } from \"./IDataspaceProtocolDistribution.js\";\n\n/**\n * Dataset interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends IDataset and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - `odrl:hasPolicy` MUST be present as an array of ODRL Offers (REQUIRED)\n * - Array MUST contain at least one IOdrlOffer\n * - Each Offer MUST have `@type`: \"Offer\"\n * - Each Offer MUST have `@id` or `uid` for identification\n * - `dcat:distribution` MUST be present (REQUIRED)\n *\n * **Type System Design:**\n * - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`\n * - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n * **Future Compatibility:**\n * - Currently only one Offer per dataset is supported\n * - Array structure allows future support for multiple offers\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n * @see IOdrlOffer from @twin.org/standards-w3c-odrl\n * @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat\n */\nexport interface IDataspaceProtocolDataset\n\textends Omit<IDcatDataset, \"odrl:hasPolicy\" | \"dcat:distribution\" | \"@type\" | \"@context\"> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.Dataset;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Array of ODRL policies (Offers) as required by DS Protocol.\n\t *\n\t * REQUIRED per Eclipse Data Space Protocol spec.\n\t * Must contain at least one IOdrlOffer.\n\t * Currently only single offer is supported, but array structure\n\t * allows for future multi-offer support.\n\t */\n\thasPolicy: ObjectOrArray<Omit<IOdrlOffer, \"@context\">>;\n\n\t/**\n\t * Distribution of the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\tdistribution: ObjectOrArray<Omit<IDataspaceProtocolDistribution, \"@context\">>;\n}\n"]}
1
+ {"version":3,"file":"IDataspaceProtocolDataset.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDataset.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatDataset } from \"@twin.org/standards-w3c-dcat\";\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDistribution } from \"./IDataspaceProtocolDistribution.js\";\n\n/**\n * Dataset interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends IDataset and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - `odrl:hasPolicy` MUST be present as an array of ODRL Offers (REQUIRED)\n * - Array MUST contain at least one IOdrlOffer\n * - Each Offer MUST have `@type`: \"Offer\"\n * - Each Offer MUST have `@id` or `uid` for identification\n * - `dcat:distribution` MUST be present (REQUIRED)\n *\n * **Type System Design:**\n * - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`\n * - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n * **Future Compatibility:**\n * - Currently only one Offer per dataset is supported\n * - Array structure allows future support for multiple offers\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n * @see IOdrlOffer from @twin.org/standards-w3c-odrl\n * @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat\n */\nexport interface IDataspaceProtocolDataset extends Omit<\n\tIDcatDataset,\n\t\"odrl:hasPolicy\" | \"dcat:distribution\" | \"@type\" | \"@context\"\n> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.Dataset;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Array of ODRL policies (Offers) as required by DS Protocol.\n\t *\n\t * REQUIRED per Eclipse Data Space Protocol spec.\n\t * Must contain at least one IOdrlOffer.\n\t * Currently only single offer is supported, but array structure\n\t * allows for future multi-offer support.\n\t */\n\thasPolicy: ObjectOrArray<Omit<IOdrlOffer, \"@context\">>;\n\n\t/**\n\t * Distribution of the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\tdistribution: ObjectOrArray<Omit<IDataspaceProtocolDistribution, \"@context\">>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IDataspaceProtocolDistribution.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDistribution.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatDistribution } from \"@twin.org/standards-w3c-dcat\";\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataService } from \"./IDataspaceProtocolDataService.js\";\n\n/**\n * Distribution interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends IDistribution and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - `odrl:hasPolicy` MIGHT be present as an array of ODRL Offers (OPTIONAL)\n * - Array MUST contain at least one IOdrlOffer\n * - Each Offer MUST have `@type`: \"Offer\"\n * - `format` is REQUIRED.\n *\n * **Type System Design:**\n * - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`\n * - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n * **Future Compatibility:**\n * - Currently only one Offer per dataset is supported\n * - Array structure allows future support for multiple offers\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n * @see IOdrlOffer from @twin.org/standards-w3c-odrl\n * @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat\n */\nexport interface IDataspaceProtocolDistribution\n\textends Omit<IDcatDistribution, \"odrl:hasPolicy\" | \"@type\" | \"@context\" | \"dcterms:format\"> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the Distribution.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.Distribution;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Array of ODRL policies (Offers) as required by DS Protocol.\n\t *\n\t * REQUIRED per Eclipse Data Space Protocol spec.\n\t * Must contain at least one IOdrlOffer.\n\t * Currently only single offer is supported, but array structure\n\t * allows for future multi-offer support.\n\t */\n\thasPolicy?: ObjectOrArray<Omit<IOdrlOffer, \"@context\">>;\n\n\t/**\n\t * Access service.\n\t * It can be a URI pointing to an access service or inline the access service itself\n\t */\n\taccessService: string | Omit<IDataspaceProtocolDataService, \"@context\">;\n\n\t/**\n\t * Distribution format.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\tformat: string;\n}\n"]}
1
+ {"version":3,"file":"IDataspaceProtocolDistribution.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDistribution.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatDistribution } from \"@twin.org/standards-w3c-dcat\";\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataService } from \"./IDataspaceProtocolDataService.js\";\n\n/**\n * Distribution interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends IDistribution and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - `odrl:hasPolicy` MIGHT be present as an array of ODRL Offers (OPTIONAL)\n * - Array MUST contain at least one IOdrlOffer\n * - Each Offer MUST have `@type`: \"Offer\"\n * - `format` is REQUIRED.\n *\n * **Type System Design:**\n * - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`\n * - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n * **Future Compatibility:**\n * - Currently only one Offer per dataset is supported\n * - Array structure allows future support for multiple offers\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n * @see IOdrlOffer from @twin.org/standards-w3c-odrl\n * @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat\n */\nexport interface IDataspaceProtocolDistribution extends Omit<\n\tIDcatDistribution,\n\t\"odrl:hasPolicy\" | \"@type\" | \"@context\" | \"dcterms:format\"\n> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the Distribution.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.Distribution;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Array of ODRL policies (Offers) as required by DS Protocol.\n\t *\n\t * REQUIRED per Eclipse Data Space Protocol spec.\n\t * Must contain at least one IOdrlOffer.\n\t * Currently only single offer is supported, but array structure\n\t * allows for future multi-offer support.\n\t */\n\thasPolicy?: ObjectOrArray<Omit<IOdrlOffer, \"@context\">>;\n\n\t/**\n\t * Access service.\n\t * It can be a URI pointing to an access service or inline the access service itself\n\t */\n\taccessService: string | Omit<IDataspaceProtocolDataService, \"@context\">;\n\n\t/**\n\t * Distribution format.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\tformat: string;\n}\n"]}
@@ -73,6 +73,5 @@
73
73
  "@context",
74
74
  "@type",
75
75
  "code"
76
- ],
77
- "additionalProperties": false
76
+ ]
78
77
  }
@@ -68,6 +68,5 @@
68
68
  "required": [
69
69
  "@context",
70
70
  "@type"
71
- ],
72
- "additionalProperties": false
71
+ ]
73
72
  }
@@ -82,6 +82,5 @@
82
82
  "providerPid",
83
83
  "consumerPid",
84
84
  "agreement"
85
- ],
86
- "additionalProperties": false
85
+ ]
87
86
  }
@@ -73,6 +73,5 @@
73
73
  "@type",
74
74
  "providerPid",
75
75
  "consumerPid"
76
- ],
77
- "additionalProperties": false
76
+ ]
78
77
  }
@@ -78,6 +78,5 @@
78
78
  "providerPid",
79
79
  "consumerPid",
80
80
  "state"
81
- ],
82
- "additionalProperties": false
81
+ ]
83
82
  }
@@ -82,6 +82,5 @@
82
82
  "@type",
83
83
  "providerPid",
84
84
  "consumerPid"
85
- ],
86
- "additionalProperties": false
85
+ ]
87
86
  }
@@ -78,6 +78,5 @@
78
78
  "providerPid",
79
79
  "consumerPid",
80
80
  "event"
81
- ],
82
- "additionalProperties": false
81
+ ]
83
82
  }
@@ -82,6 +82,5 @@
82
82
  "@type",
83
83
  "providerPid",
84
84
  "consumerPid"
85
- ],
86
- "additionalProperties": false
85
+ ]
87
86
  }
@@ -81,6 +81,5 @@
81
81
  "@type",
82
82
  "providerPid",
83
83
  "offer"
84
- ],
85
- "additionalProperties": false
84
+ ]
86
85
  }
@@ -81,6 +81,5 @@
81
81
  "@type",
82
82
  "consumerPid",
83
83
  "offer"
84
- ],
85
- "additionalProperties": false
84
+ ]
86
85
  }
@@ -28,6 +28,5 @@
28
28
  "required": [
29
29
  "@type",
30
30
  "endpointType"
31
- ],
32
- "additionalProperties": false
31
+ ]
33
32
  }
@@ -68,6 +68,5 @@
68
68
  "@context",
69
69
  "@type",
70
70
  "dataset"
71
- ],
72
- "additionalProperties": false
71
+ ]
73
72
  }
@@ -22,6 +22,5 @@
22
22
  "@type",
23
23
  "name",
24
24
  "value"
25
- ],
26
- "additionalProperties": false
25
+ ]
27
26
  }
@@ -73,6 +73,5 @@
73
73
  "@type",
74
74
  "consumerPid",
75
75
  "providerPid"
76
- ],
77
- "additionalProperties": false
76
+ ]
78
77
  }
@@ -82,6 +82,5 @@
82
82
  "@type",
83
83
  "consumerPid",
84
84
  "providerPid"
85
- ],
86
- "additionalProperties": false
85
+ ]
87
86
  }
@@ -78,6 +78,5 @@
78
78
  "consumerPid",
79
79
  "providerPid",
80
80
  "state"
81
- ],
82
- "additionalProperties": false
81
+ ]
83
82
  }
@@ -87,6 +87,5 @@
87
87
  "callbackAddress",
88
88
  "consumerPid",
89
89
  "format"
90
- ],
91
- "additionalProperties": false
90
+ ]
92
91
  }
@@ -77,6 +77,5 @@
77
77
  "@type",
78
78
  "consumerPid",
79
79
  "providerPid"
80
- ],
81
- "additionalProperties": false
80
+ ]
82
81
  }
@@ -82,6 +82,5 @@
82
82
  "@type",
83
83
  "consumerPid",
84
84
  "providerPid"
85
- ],
86
- "additionalProperties": false
85
+ ]
87
86
  }
@@ -82,6 +82,5 @@
82
82
  "@type",
83
83
  "consumerPid",
84
84
  "providerPid"
85
- ],
86
- "additionalProperties": false
85
+ ]
87
86
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.44](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.43...standards-dataspace-protocol-v0.0.3-next.44) (2026-03-04)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **standards-dataspace-protocol:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/standards-w3c-dcat bumped from 0.0.3-next.43 to 0.0.3-next.44
16
+ * @twin.org/standards-w3c-odrl bumped from 0.0.3-next.43 to 0.0.3-next.44
17
+ * devDependencies
18
+ * @twin.org/standards-ld-contexts bumped from 0.0.3-next.43 to 0.0.3-next.44
19
+
20
+ ## [0.0.3-next.43](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.42...standards-dataspace-protocol-v0.0.3-next.43) (2026-02-25)
21
+
22
+
23
+ ### Features
24
+
25
+ * update schemas to support additional properties ([4679e21](https://github.com/twinfoundation/standards/commit/4679e21728a54cb587f120874841c3d1ed3771de))
26
+
27
+
28
+ ### Dependencies
29
+
30
+ * The following workspace dependencies were updated
31
+ * dependencies
32
+ * @twin.org/standards-w3c-dcat bumped from 0.0.3-next.42 to 0.0.3-next.43
33
+ * @twin.org/standards-w3c-odrl bumped from 0.0.3-next.42 to 0.0.3-next.43
34
+ * devDependencies
35
+ * @twin.org/standards-ld-contexts bumped from 0.0.3-next.42 to 0.0.3-next.43
36
+
3
37
  ## [0.0.3-next.42](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.41...standards-dataspace-protocol-v0.0.3-next.42) (2026-02-25)
4
38
 
5
39