@twin.org/standards-dataspace-protocol 0.0.3-next.46 → 0.0.3-next.48

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 (55) hide show
  1. package/dist/es/dataTypes/catalogDataTypes.js +15 -0
  2. package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
  3. package/dist/es/index.js +9 -6
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js +9 -1
  6. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js.map +1 -1
  7. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js.map +1 -1
  8. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js.map +1 -1
  9. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js.map +1 -1
  10. package/dist/es/models/dcat3/IDataspaceProtocolCatalog.js.map +1 -0
  11. package/dist/es/models/dcat3/IDataspaceProtocolDataService.js.map +1 -0
  12. package/dist/es/models/dcat3/IDataspaceProtocolDataset.js.map +1 -0
  13. package/dist/es/models/dcat3/IDataspaceProtocolDistribution.js.map +1 -0
  14. package/dist/es/models/odrl/IDataspaceProtocolAgreement.js +2 -0
  15. package/dist/es/models/odrl/IDataspaceProtocolAgreement.js.map +1 -0
  16. package/dist/es/models/odrl/IDataspaceProtocolOffer.js.map +1 -0
  17. package/dist/es/schemas/DataspaceProtocolAgreement.json +179 -0
  18. package/dist/es/schemas/DataspaceProtocolContractAgreementMessage.json +1 -1
  19. package/dist/es/schemas/DataspaceProtocolContractOfferMessage.json +1 -1
  20. package/dist/es/schemas/DataspaceProtocolContractRequestMessage.json +1 -1
  21. package/dist/es/schemas/DataspaceProtocolOffer.json +197 -0
  22. package/dist/types/index.d.ts +7 -6
  23. package/dist/types/models/catalog/dataspaceProtocolCatalogTypes.d.ts +8 -0
  24. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.d.ts +3 -3
  25. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.d.ts +2 -2
  26. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.d.ts +2 -2
  27. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolCatalog.d.ts +6 -5
  28. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolDataService.d.ts +3 -2
  29. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolDataset.d.ts +4 -3
  30. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolDistribution.d.ts +4 -3
  31. package/dist/types/models/odrl/IDataspaceProtocolAgreement.d.ts +17 -0
  32. package/dist/types/models/{catalog → odrl}/IDataspaceProtocolOffer.d.ts +0 -5
  33. package/docs/changelog.md +34 -0
  34. package/docs/reference/index.md +6 -5
  35. package/docs/reference/interfaces/IDataspaceProtocolAgreement.md +166 -0
  36. package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +4 -4
  37. package/docs/reference/interfaces/IDataspaceProtocolContractAgreementMessage.md +1 -1
  38. package/docs/reference/interfaces/IDataspaceProtocolContractOfferMessage.md +1 -1
  39. package/docs/reference/interfaces/IDataspaceProtocolContractRequestMessage.md +1 -1
  40. package/docs/reference/interfaces/IDataspaceProtocolDataService.md +1 -1
  41. package/docs/reference/interfaces/IDataspaceProtocolDataset.md +1 -1
  42. package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +1 -1
  43. package/docs/reference/interfaces/IDataspaceProtocolOffer.md +0 -9
  44. package/docs/reference/variables/DataspaceProtocolCatalogTypes.md +12 -0
  45. package/package.json +3 -3
  46. package/dist/es/models/catalog/IDataspaceProtocolCatalog.js.map +0 -1
  47. package/dist/es/models/catalog/IDataspaceProtocolDataService.js.map +0 -1
  48. package/dist/es/models/catalog/IDataspaceProtocolDataset.js.map +0 -1
  49. package/dist/es/models/catalog/IDataspaceProtocolDistribution.js.map +0 -1
  50. package/dist/es/models/catalog/IDataspaceProtocolOffer.js.map +0 -1
  51. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolCatalog.js +0 -0
  52. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolDataService.js +0 -0
  53. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolDataset.js +0 -0
  54. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolDistribution.js +0 -0
  55. /package/dist/es/models/{catalog → odrl}/IDataspaceProtocolOffer.js +0 -0
@@ -65,7 +65,7 @@ Participant Id
65
65
 
66
66
  ### catalog?
67
67
 
68
- > `optional` **catalog**: `ObjectOrArray`\<`Omit`\<`IDataspaceProtocolCatalog`, `"@context"`\>\>
68
+ > `optional` **catalog**: `ObjectOrArray`\<`JsonLdObjectWithNoContext`\<`IDataspaceProtocolCatalog`\>\>
69
69
 
70
70
  Other concerned catalogs
71
71
 
@@ -73,7 +73,7 @@ Other concerned catalogs
73
73
 
74
74
  ### dataset?
75
75
 
76
- > `optional` **dataset**: `ObjectOrArray`\<`Omit`\<[`IDataspaceProtocolDataset`](IDataspaceProtocolDataset.md), `"@context"`\>\>
76
+ > `optional` **dataset**: `ObjectOrArray`\<`JsonLdObjectWithNoContext`\<[`IDataspaceProtocolDataset`](IDataspaceProtocolDataset.md)\>\>
77
77
 
78
78
  Datasets registered
79
79
 
@@ -81,7 +81,7 @@ Datasets registered
81
81
 
82
82
  ### distribution?
83
83
 
84
- > `optional` **distribution**: `ObjectOrArray`\<`Omit`\<[`IDataspaceProtocolDistribution`](IDataspaceProtocolDistribution.md), `"@context"`\>\>
84
+ > `optional` **distribution**: `ObjectOrArray`\<`JsonLdObjectWithNoContext`\<[`IDataspaceProtocolDistribution`](IDataspaceProtocolDistribution.md)\>\>
85
85
 
86
86
  Catalog's distributions
87
87
 
@@ -89,7 +89,7 @@ Catalog's distributions
89
89
 
90
90
  ### service?
91
91
 
92
- > `optional` **service**: `ObjectOrArray`\<`Omit`\<[`IDataspaceProtocolDataService`](IDataspaceProtocolDataService.md), `"@context"`\>\>
92
+ > `optional` **service**: `ObjectOrArray`\<`JsonLdObjectWithNoContext`\<[`IDataspaceProtocolDataService`](IDataspaceProtocolDataService.md)\>\>
93
93
 
94
94
  Data services registered-
95
95
 
@@ -39,7 +39,7 @@ The consumer id for the contract.
39
39
 
40
40
  ### agreement
41
41
 
42
- > **agreement**: `IOdrlAgreement`
42
+ > **agreement**: [`IDataspaceProtocolAgreement`](IDataspaceProtocolAgreement.md)
43
43
 
44
44
  The agreement being sent.
45
45
 
@@ -39,7 +39,7 @@ The consumer id for the contract.
39
39
 
40
40
  ### offer
41
41
 
42
- > **offer**: `IOdrlOffer`
42
+ > **offer**: [`IDataspaceProtocolOffer`](IDataspaceProtocolOffer.md)
43
43
 
44
44
  The offer being requested.
45
45
 
@@ -39,7 +39,7 @@ The consumer id for the contract.
39
39
 
40
40
  ### offer
41
41
 
42
- > **offer**: `IOdrlOffer`
42
+ > **offer**: [`IDataspaceProtocolOffer`](IDataspaceProtocolOffer.md)
43
43
 
44
44
  The offer being requested.
45
45
 
@@ -65,7 +65,7 @@ Endpoint URL
65
65
 
66
66
  ### servesDataset?
67
67
 
68
- > `optional` **servesDataset**: `ObjectOrArray`\<`Omit`\<[`IDataspaceProtocolDataset`](IDataspaceProtocolDataset.md), `"@context"`\>\>
68
+ > `optional` **servesDataset**: `ObjectOrArray`\<`JsonLdObjectWithNoContext`\<[`IDataspaceProtocolDataset`](IDataspaceProtocolDataset.md)\>\>
69
69
 
70
70
  Datasets served.
71
71
 
@@ -82,7 +82,7 @@ allows for future multi-offer support.
82
82
 
83
83
  ### distribution
84
84
 
85
- > **distribution**: `ObjectOrArray`\<`Omit`\<[`IDataspaceProtocolDistribution`](IDataspaceProtocolDistribution.md), `"@context"`\>\>
85
+ > **distribution**: `ObjectOrArray`\<`JsonLdObjectWithNoContext`\<[`IDataspaceProtocolDistribution`](IDataspaceProtocolDistribution.md)\>\>
86
86
 
87
87
  Distribution of the dataset.
88
88
  REQUIRED per Eclipse Data Space Protocol.
@@ -81,7 +81,7 @@ allows for future multi-offer support.
81
81
 
82
82
  ### accessService
83
83
 
84
- > **accessService**: `string` \| `Omit`\<[`IDataspaceProtocolDataService`](IDataspaceProtocolDataService.md), `"@context"`\>
84
+ > **accessService**: `string` \| `JsonLdObjectWithNoContext`\<[`IDataspaceProtocolDataService`](IDataspaceProtocolDataService.md)\>
85
85
 
86
86
  Access service.
87
87
  It can be a URI pointing to an access service or inline the access service itself
@@ -5,7 +5,6 @@ Offer interface compliant with Eclipse Data Space Protocol.
5
5
  Extends IOdrlOffer with DS Protocol-specific constraints:
6
6
  - `@id` is REQUIRED (used as the primary offer identifier in DS Protocol)
7
7
  - `@context` is omitted (inherited from the parent Dataset/Distribution)
8
- - `uid` is optional (DS Protocol uses `@id` instead of ODRL `uid`)
9
8
 
10
9
  ## See
11
10
 
@@ -26,14 +25,6 @@ Unique identifier for the offer.
26
25
 
27
26
  ***
28
27
 
29
- ### uid?
30
-
31
- > `optional` **uid**: `string`
32
-
33
- Unique identifier for the offer.
34
-
35
- ***
36
-
37
28
  ### @type
38
29
 
39
30
  > **@type**: `"Offer"`
@@ -48,3 +48,15 @@ Distribution.
48
48
  > `readonly` **Catalog**: `"Catalog"` = `"Catalog"`
49
49
 
50
50
  Catalog.
51
+
52
+ ### Offer
53
+
54
+ > `readonly` **Offer**: `"Offer"` = `"Offer"`
55
+
56
+ Offer.
57
+
58
+ ### Agreement
59
+
60
+ > `readonly` **Agreement**: `"Agreement"` = `"Agreement"`
61
+
62
+ Agreement.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-dataspace-protocol",
3
- "version": "0.0.3-next.46",
3
+ "version": "0.0.3-next.48",
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.46",
21
- "@twin.org/standards-w3c-odrl": "0.0.3-next.46",
20
+ "@twin.org/standards-w3c-dcat": "0.0.3-next.48",
21
+ "@twin.org/standards-w3c-odrl": "0.0.3-next.48",
22
22
  "@twin.org/web": "next"
23
23
  },
24
24
  "main": "./dist/es/index.js",
@@ -1 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDistribution } from \"./IDataspaceProtocolDistribution.js\";\nimport type { IDataspaceProtocolOffer } from \"./IDataspaceProtocolOffer.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<IDataspaceProtocolOffer>;\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 +0,0 @@
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 { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataService } from \"./IDataspaceProtocolDataService.js\";\nimport type { IDataspaceProtocolOffer } from \"./IDataspaceProtocolOffer.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<IDataspaceProtocolOffer>;\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 +0,0 @@
1
- {"version":3,"file":"IDataspaceProtocolOffer.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolOffer.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Offer interface compliant with Eclipse Data Space Protocol.\n *\n * Extends IOdrlOffer with DS Protocol-specific constraints:\n * - `@id` is REQUIRED (used as the primary offer identifier in DS Protocol)\n * - `@context` is omitted (inherited from the parent Dataset/Distribution)\n * - `uid` is optional (DS Protocol uses `@id` instead of ODRL `uid`)\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see IOdrlOffer from @twin.org/standards-w3c-odrl\n */\nexport interface IDataspaceProtocolOffer extends Omit<IOdrlOffer, \"@context\" | \"uid\"> {\n\t/**\n\t * Unique identifier for the offer.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Unique identifier for the offer.\n\t */\n\tuid?: string;\n}\n"]}