@twin.org/standards-dataspace-protocol 0.0.3-next.47 → 0.0.3-next.49

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 (105) hide show
  1. package/dist/es/dataTypes/catalogDataTypes.js +65 -0
  2. package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
  3. package/dist/es/index.js +19 -6
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js +49 -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/IDataspaceProtocolCatalogNoContext.js +2 -0
  12. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js.map +1 -0
  13. package/dist/es/models/dcat3/IDataspaceProtocolDataService.js.map +1 -0
  14. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js +2 -0
  15. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js.map +1 -0
  16. package/dist/es/models/dcat3/IDataspaceProtocolDataset.js.map +1 -0
  17. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js +2 -0
  18. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js.map +1 -0
  19. package/dist/es/models/dcat3/IDataspaceProtocolDistribution.js.map +1 -0
  20. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js +2 -0
  21. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js.map +1 -0
  22. package/dist/es/models/odrl/IDataspaceProtocolAgreement.js +2 -0
  23. package/dist/es/models/odrl/IDataspaceProtocolAgreement.js.map +1 -0
  24. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js +2 -0
  25. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js.map +1 -0
  26. package/dist/es/models/odrl/IDataspaceProtocolOffer.js.map +1 -0
  27. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js +2 -0
  28. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js.map +1 -0
  29. package/dist/es/models/odrl/IDataspaceProtocolPolicy.js +2 -0
  30. package/dist/es/models/odrl/IDataspaceProtocolPolicy.js.map +1 -0
  31. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js +2 -0
  32. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js.map +1 -0
  33. package/dist/es/models/odrl/IDataspaceProtocolSet.js +2 -0
  34. package/dist/es/models/odrl/IDataspaceProtocolSet.js.map +1 -0
  35. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js +2 -0
  36. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js.map +1 -0
  37. package/dist/es/schemas/DataspaceProtocolAgreement.json +184 -0
  38. package/dist/es/schemas/DataspaceProtocolAgreementNoContext.json +6 -0
  39. package/dist/es/schemas/DataspaceProtocolCatalogNoContext.json +6 -0
  40. package/dist/es/schemas/DataspaceProtocolContractAgreementMessage.json +1 -1
  41. package/dist/es/schemas/DataspaceProtocolContractOfferMessage.json +1 -1
  42. package/dist/es/schemas/DataspaceProtocolContractRequestMessage.json +1 -1
  43. package/dist/es/schemas/DataspaceProtocolDataServiceNoContext.json +6 -0
  44. package/dist/es/schemas/DataspaceProtocolDatasetNoContext.json +6 -0
  45. package/dist/es/schemas/DataspaceProtocolDistributionNoContext.json +6 -0
  46. package/dist/es/schemas/DataspaceProtocolOffer.json +202 -0
  47. package/dist/es/schemas/DataspaceProtocolOfferNoContext.json +6 -0
  48. package/dist/es/schemas/DataspaceProtocolPolicy.json +219 -0
  49. package/dist/es/schemas/DataspaceProtocolPolicyNoContext.json +6 -0
  50. package/dist/es/schemas/DataspaceProtocolSet.json +220 -0
  51. package/dist/es/schemas/DataspaceProtocolSetNoContext.json +6 -0
  52. package/dist/types/index.d.ts +17 -6
  53. package/dist/types/models/catalog/dataspaceProtocolCatalogTypes.d.ts +48 -0
  54. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.d.ts +3 -3
  55. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.d.ts +2 -2
  56. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.d.ts +2 -2
  57. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolCatalog.d.ts +9 -9
  58. package/dist/types/models/dcat3/IDataspaceProtocolCatalogNoContext.d.ts +5 -0
  59. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolDataService.d.ts +3 -4
  60. package/dist/types/models/dcat3/IDataspaceProtocolDataServiceNoContext.d.ts +5 -0
  61. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolDataset.d.ts +6 -7
  62. package/dist/types/models/dcat3/IDataspaceProtocolDatasetNoContext.d.ts +5 -0
  63. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolDistribution.d.ts +5 -6
  64. package/dist/types/models/dcat3/IDataspaceProtocolDistributionNoContext.d.ts +5 -0
  65. package/dist/types/models/odrl/IDataspaceProtocolAgreement.d.ts +17 -0
  66. package/dist/types/models/odrl/IDataspaceProtocolAgreementNoContext.d.ts +5 -0
  67. package/dist/types/models/{catalog → odrl}/IDataspaceProtocolOffer.d.ts +1 -2
  68. package/dist/types/models/odrl/IDataspaceProtocolOfferNoContext.d.ts +5 -0
  69. package/dist/types/models/odrl/IDataspaceProtocolPolicy.d.ts +17 -0
  70. package/dist/types/models/odrl/IDataspaceProtocolPolicyNoContext.d.ts +5 -0
  71. package/dist/types/models/odrl/IDataspaceProtocolSet.d.ts +17 -0
  72. package/dist/types/models/odrl/IDataspaceProtocolSetNoContext.d.ts +5 -0
  73. package/docs/changelog.md +34 -0
  74. package/docs/reference/index.md +16 -5
  75. package/docs/reference/interfaces/IDataspaceProtocolAgreement.md +179 -0
  76. package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +4 -4
  77. package/docs/reference/interfaces/IDataspaceProtocolContractAgreementMessage.md +1 -1
  78. package/docs/reference/interfaces/IDataspaceProtocolContractOfferMessage.md +1 -1
  79. package/docs/reference/interfaces/IDataspaceProtocolContractRequestMessage.md +1 -1
  80. package/docs/reference/interfaces/IDataspaceProtocolDataService.md +1 -1
  81. package/docs/reference/interfaces/IDataspaceProtocolDataset.md +3 -3
  82. package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +2 -2
  83. package/docs/reference/interfaces/IDataspaceProtocolOffer.md +14 -2
  84. package/docs/reference/interfaces/IDataspaceProtocolPolicy.md +180 -0
  85. package/docs/reference/interfaces/IDataspaceProtocolSet.md +179 -0
  86. package/docs/reference/type-aliases/IDataspaceProtocolAgreementNoContext.md +5 -0
  87. package/docs/reference/type-aliases/IDataspaceProtocolCatalogNoContext.md +5 -0
  88. package/docs/reference/type-aliases/IDataspaceProtocolDataServiceNoContext.md +5 -0
  89. package/docs/reference/type-aliases/IDataspaceProtocolDatasetNoContext.md +5 -0
  90. package/docs/reference/type-aliases/IDataspaceProtocolDistributionNoContext.md +5 -0
  91. package/docs/reference/type-aliases/IDataspaceProtocolOfferNoContext.md +5 -0
  92. package/docs/reference/type-aliases/IDataspaceProtocolPolicyNoContext.md +5 -0
  93. package/docs/reference/type-aliases/IDataspaceProtocolSetNoContext.md +5 -0
  94. package/docs/reference/variables/DataspaceProtocolCatalogTypes.md +72 -0
  95. package/package.json +3 -3
  96. package/dist/es/models/catalog/IDataspaceProtocolCatalog.js.map +0 -1
  97. package/dist/es/models/catalog/IDataspaceProtocolDataService.js.map +0 -1
  98. package/dist/es/models/catalog/IDataspaceProtocolDataset.js.map +0 -1
  99. package/dist/es/models/catalog/IDataspaceProtocolDistribution.js.map +0 -1
  100. package/dist/es/models/catalog/IDataspaceProtocolOffer.js.map +0 -1
  101. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolCatalog.js +0 -0
  102. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolDataService.js +0 -0
  103. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolDataset.js +0 -0
  104. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolDistribution.js +0 -0
  105. /package/dist/es/models/{catalog → odrl}/IDataspaceProtocolOffer.js +0 -0
@@ -0,0 +1,184 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolAgreement",
4
+ "description": "Agreement interface compliant with Eclipse Data Space Protocol.\n\nExtends IOdrlAgreement with DS Protocol-specific constraints:\n- `@id` is REQUIRED (used as the primary agreement identifier in DS Protocol)\n- `@context` is omitted (inherited from the parent Dataset/Distribution)",
5
+ "type": "object",
6
+ "properties": {
7
+ "@type": {
8
+ "type": "string",
9
+ "const": "Agreement",
10
+ "description": "The type must be \"Agreement\"."
11
+ },
12
+ "assigner": {
13
+ "anyOf": [
14
+ {
15
+ "type": "string"
16
+ },
17
+ {
18
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
19
+ }
20
+ ],
21
+ "description": "The assigner of the agreement. Required for Agreement policies."
22
+ },
23
+ "assignee": {
24
+ "anyOf": [
25
+ {
26
+ "type": "string"
27
+ },
28
+ {
29
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
30
+ }
31
+ ],
32
+ "description": "The assignee of the agreement. Required for Agreement policies."
33
+ },
34
+ "@context": {
35
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType",
36
+ "description": "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
37
+ },
38
+ "profile": {
39
+ "anyOf": [
40
+ {
41
+ "type": "string"
42
+ },
43
+ {
44
+ "type": "array",
45
+ "items": {
46
+ "type": "string"
47
+ }
48
+ }
49
+ ],
50
+ "description": "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
51
+ },
52
+ "target": {
53
+ "anyOf": [
54
+ {
55
+ "type": "string"
56
+ },
57
+ {
58
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
59
+ },
60
+ {
61
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
62
+ },
63
+ {
64
+ "type": "array",
65
+ "items": {
66
+ "anyOf": [
67
+ {
68
+ "type": "string"
69
+ },
70
+ {
71
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
72
+ },
73
+ {
74
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
75
+ }
76
+ ]
77
+ }
78
+ }
79
+ ],
80
+ "description": "The target asset for the rule."
81
+ },
82
+ "action": {
83
+ "anyOf": [
84
+ {
85
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
86
+ },
87
+ {
88
+ "type": "string"
89
+ },
90
+ {
91
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
92
+ },
93
+ {
94
+ "type": "array",
95
+ "items": {
96
+ "anyOf": [
97
+ {
98
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
99
+ },
100
+ {
101
+ "type": "string"
102
+ },
103
+ {
104
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
105
+ }
106
+ ]
107
+ }
108
+ }
109
+ ],
110
+ "description": "The action associated with the rule."
111
+ },
112
+ "inheritFrom": {
113
+ "anyOf": [
114
+ {
115
+ "type": "string"
116
+ },
117
+ {
118
+ "type": "array",
119
+ "items": {
120
+ "type": "string"
121
+ }
122
+ }
123
+ ],
124
+ "description": "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
125
+ },
126
+ "conflict": {
127
+ "$ref": "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
128
+ "description": "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
129
+ },
130
+ "permission": {
131
+ "anyOf": [
132
+ {
133
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
134
+ },
135
+ {
136
+ "type": "array",
137
+ "items": {
138
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
139
+ }
140
+ }
141
+ ],
142
+ "description": "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
143
+ },
144
+ "prohibition": {
145
+ "anyOf": [
146
+ {
147
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
148
+ },
149
+ {
150
+ "type": "array",
151
+ "items": {
152
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
153
+ }
154
+ }
155
+ ],
156
+ "description": "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
157
+ },
158
+ "obligation": {
159
+ "anyOf": [
160
+ {
161
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
162
+ },
163
+ {
164
+ "type": "array",
165
+ "items": {
166
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
167
+ }
168
+ }
169
+ ],
170
+ "description": "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
171
+ },
172
+ "@id": {
173
+ "type": "string",
174
+ "description": "Unique identifier for the agreement."
175
+ }
176
+ },
177
+ "required": [
178
+ "@context",
179
+ "@id",
180
+ "@type",
181
+ "assignee",
182
+ "assigner"
183
+ ]
184
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolAgreementNoContext",
4
+ "description": "Agreement interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolAgreement"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolCatalogNoContext",
4
+ "description": "Catalog interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolCatalog"
6
+ }
@@ -68,7 +68,7 @@
68
68
  "description": "The consumer id for the contract."
69
69
  },
70
70
  "agreement": {
71
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAgreement",
71
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolAgreementNoContext",
72
72
  "description": "The agreement being sent."
73
73
  },
74
74
  "callbackAddress": {
@@ -68,7 +68,7 @@
68
68
  "description": "The consumer id for the contract."
69
69
  },
70
70
  "offer": {
71
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlOffer",
71
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferNoContext",
72
72
  "description": "The offer being requested."
73
73
  },
74
74
  "callbackAddress": {
@@ -68,7 +68,7 @@
68
68
  "description": "The consumer id for the contract."
69
69
  },
70
70
  "offer": {
71
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlOffer",
71
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferNoContext",
72
72
  "description": "The offer being requested."
73
73
  },
74
74
  "callbackAddress": {
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataServiceNoContext",
4
+ "description": "Data Service interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataService"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDatasetNoContext",
4
+ "description": "Dataset interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataset"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDistributionNoContext",
4
+ "description": "Distribution interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDistribution"
6
+ }
@@ -0,0 +1,202 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOffer",
4
+ "description": "Offer interface compliant with Eclipse Data Space Protocol.\n\nExtends 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)",
5
+ "type": "object",
6
+ "properties": {
7
+ "@type": {
8
+ "type": "string",
9
+ "const": "Offer",
10
+ "description": "The type must be \"Offer\"."
11
+ },
12
+ "assigner": {
13
+ "anyOf": [
14
+ {
15
+ "type": "string"
16
+ },
17
+ {
18
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
19
+ }
20
+ ],
21
+ "description": "The assigner of the offer. Required for Offer policies."
22
+ },
23
+ "@context": {
24
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType",
25
+ "description": "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
26
+ },
27
+ "profile": {
28
+ "anyOf": [
29
+ {
30
+ "type": "string"
31
+ },
32
+ {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ }
38
+ ],
39
+ "description": "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
40
+ },
41
+ "assignee": {
42
+ "anyOf": [
43
+ {
44
+ "type": "string"
45
+ },
46
+ {
47
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
48
+ },
49
+ {
50
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
51
+ },
52
+ {
53
+ "type": "array",
54
+ "items": {
55
+ "anyOf": [
56
+ {
57
+ "type": "string"
58
+ },
59
+ {
60
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
61
+ },
62
+ {
63
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
64
+ }
65
+ ]
66
+ }
67
+ }
68
+ ],
69
+ "description": "The assignee of the policy. Applies to all rules unless overridden at rule level."
70
+ },
71
+ "target": {
72
+ "anyOf": [
73
+ {
74
+ "type": "string"
75
+ },
76
+ {
77
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
78
+ },
79
+ {
80
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
81
+ },
82
+ {
83
+ "type": "array",
84
+ "items": {
85
+ "anyOf": [
86
+ {
87
+ "type": "string"
88
+ },
89
+ {
90
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
91
+ },
92
+ {
93
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
94
+ }
95
+ ]
96
+ }
97
+ }
98
+ ],
99
+ "description": "The target asset for the rule."
100
+ },
101
+ "action": {
102
+ "anyOf": [
103
+ {
104
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
105
+ },
106
+ {
107
+ "type": "string"
108
+ },
109
+ {
110
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
111
+ },
112
+ {
113
+ "type": "array",
114
+ "items": {
115
+ "anyOf": [
116
+ {
117
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
118
+ },
119
+ {
120
+ "type": "string"
121
+ },
122
+ {
123
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
124
+ }
125
+ ]
126
+ }
127
+ }
128
+ ],
129
+ "description": "The action associated with the rule."
130
+ },
131
+ "inheritFrom": {
132
+ "anyOf": [
133
+ {
134
+ "type": "string"
135
+ },
136
+ {
137
+ "type": "array",
138
+ "items": {
139
+ "type": "string"
140
+ }
141
+ }
142
+ ],
143
+ "description": "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
144
+ },
145
+ "conflict": {
146
+ "$ref": "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
147
+ "description": "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
148
+ },
149
+ "permission": {
150
+ "anyOf": [
151
+ {
152
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
153
+ },
154
+ {
155
+ "type": "array",
156
+ "items": {
157
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
158
+ }
159
+ }
160
+ ],
161
+ "description": "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
162
+ },
163
+ "prohibition": {
164
+ "anyOf": [
165
+ {
166
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
167
+ },
168
+ {
169
+ "type": "array",
170
+ "items": {
171
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
172
+ }
173
+ }
174
+ ],
175
+ "description": "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
176
+ },
177
+ "obligation": {
178
+ "anyOf": [
179
+ {
180
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
181
+ },
182
+ {
183
+ "type": "array",
184
+ "items": {
185
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
186
+ }
187
+ }
188
+ ],
189
+ "description": "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
190
+ },
191
+ "@id": {
192
+ "type": "string",
193
+ "description": "Unique identifier for the offer."
194
+ }
195
+ },
196
+ "required": [
197
+ "@context",
198
+ "@id",
199
+ "@type",
200
+ "assigner"
201
+ ]
202
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferNoContext",
4
+ "description": "Offer interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOffer"
6
+ }