@twin.org/dataspace-control-plane-service 0.0.3-next.16 → 0.0.3-next.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/dataspaceControlPlanePolicyRequester.js +4 -3
- package/dist/es/dataspaceControlPlanePolicyRequester.js.map +1 -1
- package/dist/es/dataspaceControlPlaneRoutes.js +6 -0
- package/dist/es/dataspaceControlPlaneRoutes.js.map +1 -1
- package/dist/es/dataspaceControlPlaneService.js +115 -40
- package/dist/es/dataspaceControlPlaneService.js.map +1 -1
- package/dist/es/models/INegotiationState.js +0 -2
- package/dist/es/models/INegotiationState.js.map +1 -1
- package/dist/types/dataspaceControlPlanePolicyRequester.d.ts +4 -4
- package/dist/types/dataspaceControlPlaneService.d.ts +2 -1
- package/dist/types/models/INegotiationState.d.ts +2 -3
- package/docs/changelog.md +34 -0
- package/docs/reference/classes/DataspaceControlPlanePolicyRequester.md +2 -2
- package/docs/reference/classes/DataspaceControlPlaneService.md +7 -1
- package/docs/reference/interfaces/INegotiationState.md +1 -1
- package/locales/en.json +8 -1
- package/package.json +2 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { DataspaceProtocolContractNegotiationStateType } from "@twin.org/standards-dataspace-protocol";
|
|
2
|
-
import type { IOdrlAgreement } from "@twin.org/standards-w3c-odrl";
|
|
1
|
+
import type { DataspaceProtocolContractNegotiationStateType, IDataspaceProtocolAgreement } from "@twin.org/standards-dataspace-protocol";
|
|
3
2
|
/**
|
|
4
3
|
* Negotiation state tracked internally for callback routing.
|
|
5
4
|
*/
|
|
@@ -15,7 +14,7 @@ export interface INegotiationState {
|
|
|
15
14
|
/**
|
|
16
15
|
* Agreement received from provider (stored until finalized).
|
|
17
16
|
*/
|
|
18
|
-
agreement?:
|
|
17
|
+
agreement?: IDataspaceProtocolAgreement;
|
|
19
18
|
/**
|
|
20
19
|
* Timestamp when negotiation started.
|
|
21
20
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.18](https://github.com/twinfoundation/dataspace/compare/dataspace-control-plane-service-v0.0.3-next.17...dataspace-control-plane-service-v0.0.3-next.18) (2026-03-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* resolve DSP transfer flow bugs for cross-node communication ([#76](https://github.com/twinfoundation/dataspace/issues/76)) ([506a45c](https://github.com/twinfoundation/dataspace/commit/506a45c94e63d5f958b1fc7131adfe452c3e2974))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.17 to 0.0.3-next.18
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.17](https://github.com/twinfoundation/dataspace/compare/dataspace-control-plane-service-v0.0.3-next.16...dataspace-control-plane-service-v0.0.3-next.17) (2026-03-06)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* docs update ([8b44c7a](https://github.com/twinfoundation/dataspace/commit/8b44c7a75afb8d377a6f606616f8a78d58439ab4))
|
|
23
|
+
* types update ([77c338e](https://github.com/twinfoundation/dataspace/commit/77c338e9244dcc7e3d597fdb06229513b1f13eac))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* avoid compaction of incoming activities ([#77](https://github.com/twinfoundation/dataspace/issues/77)) ([ff43d6a](https://github.com/twinfoundation/dataspace/commit/ff43d6a3e1563eb9cb185501134b2a53ae88787c))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Dependencies
|
|
32
|
+
|
|
33
|
+
* The following workspace dependencies were updated
|
|
34
|
+
* dependencies
|
|
35
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
36
|
+
|
|
3
37
|
## [0.0.3-next.16](https://github.com/twinfoundation/dataspace/compare/dataspace-control-plane-service-v0.0.3-next.15...dataspace-control-plane-service-v0.0.3-next.16) (2026-03-02)
|
|
4
38
|
|
|
5
39
|
|
|
@@ -142,7 +142,7 @@ The id of the negotiation.
|
|
|
142
142
|
|
|
143
143
|
##### offer
|
|
144
144
|
|
|
145
|
-
`
|
|
145
|
+
`IDataspaceProtocolOffer`
|
|
146
146
|
|
|
147
147
|
The offer sent by the provider.
|
|
148
148
|
|
|
@@ -175,7 +175,7 @@ The id of the negotiation.
|
|
|
175
175
|
|
|
176
176
|
##### agreement
|
|
177
177
|
|
|
178
|
-
`
|
|
178
|
+
`IDataspaceProtocolAgreement`
|
|
179
179
|
|
|
180
180
|
The agreement sent by the provider.
|
|
181
181
|
|
|
@@ -372,7 +372,7 @@ Transfer Process (DSP compliant) with current state, or TransferError if the ope
|
|
|
372
372
|
|
|
373
373
|
### negotiateAgreement()
|
|
374
374
|
|
|
375
|
-
> **negotiateAgreement**(`offerId`, `providerEndpoint`, `publicOrigin`, `trustPayload`): `Promise`\<\{ `negotiationId`: `string`; \}\>
|
|
375
|
+
> **negotiateAgreement**(`datasetId`, `offerId`, `providerEndpoint`, `publicOrigin`, `trustPayload`): `Promise`\<\{ `negotiationId`: `string`; \}\>
|
|
376
376
|
|
|
377
377
|
Negotiate a contract agreement with a provider.
|
|
378
378
|
Returns immediately with a negotiationId. The caller is notified
|
|
@@ -380,6 +380,12 @@ via the registered INegotiationCallback when the negotiation completes.
|
|
|
380
380
|
|
|
381
381
|
#### Parameters
|
|
382
382
|
|
|
383
|
+
##### datasetId
|
|
384
|
+
|
|
385
|
+
`string`
|
|
386
|
+
|
|
387
|
+
The dataset ID from the provider's catalog.
|
|
388
|
+
|
|
383
389
|
##### offerId
|
|
384
390
|
|
|
385
391
|
`string`
|
package/locales/en.json
CHANGED
|
@@ -86,7 +86,14 @@
|
|
|
86
86
|
"datasetHasNoValidOffers": "Dataset \"{datasetId}\" has no valid ODRL offer objects. Cannot negotiate without a valid offer.",
|
|
87
87
|
"offerNotFoundInDataset": "Offer \"{offerId}\" not found in dataset \"{datasetId}\". Available offers: {availableOffers}",
|
|
88
88
|
"pnapNotConfigured": "Policy Negotiation Admin Point not configured. Cannot retrieve negotiation history without PNAP.",
|
|
89
|
-
"negotiationCallbackError": "Negotiation callback \"{key}\" threw an error during {method} for negotiation {negotiationId}"
|
|
89
|
+
"negotiationCallbackError": "Negotiation callback \"{key}\" threw an error during {method} for negotiation {negotiationId}",
|
|
90
|
+
"catalogDatasetMissingId": "Catalog dataset is missing a required @id identifier",
|
|
91
|
+
"providerIdentityMissing": "Provider identity (DID) is required to sign data access tokens but was not set on the Transfer Process",
|
|
92
|
+
"callerNotAuthorizedForAgreement": "The caller's verified identity does not match the agreement assignee (consumer)",
|
|
93
|
+
"callerNotAuthorizedAsConsumer": "The caller's verified identity does not match the consumer for this transfer process",
|
|
94
|
+
"callerNotAuthorizedAsProvider": "The caller's verified identity does not match the provider for this transfer process",
|
|
95
|
+
"callerNotAuthorizedForTransfer": "The caller's verified identity does not match the consumer or provider for this transfer process",
|
|
96
|
+
"multipleAssignersNotSupported": "Multiple assigners found in agreement, which is not supported. Only single assigner agreements are supported."
|
|
90
97
|
},
|
|
91
98
|
"dataspaceControlPlanePolicyRequester": {}
|
|
92
99
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/dataspace-control-plane-service",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.18",
|
|
4
4
|
"description": "Dataspace Control Plane service implementation for Eclipse Dataspace Protocol Transfer Process Protocol",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@twin.org/api-models": "next",
|
|
18
18
|
"@twin.org/context": "next",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
|
-
"@twin.org/dataspace-models": "0.0.3-next.
|
|
20
|
+
"@twin.org/dataspace-models": "0.0.3-next.18",
|
|
21
21
|
"@twin.org/entity": "next",
|
|
22
22
|
"@twin.org/entity-storage-models": "next",
|
|
23
23
|
"@twin.org/federated-catalogue-models": "next",
|