@twin.org/dataspace-control-plane-service 0.0.3-next.49 → 0.0.3-next.50
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/dataspaceControlPlaneService.js +67 -1
- package/dist/es/dataspaceControlPlaneService.js.map +1 -1
- package/dist/types/dataspaceControlPlaneService.d.ts +3 -2
- package/docs/changelog.md +19 -0
- package/docs/reference/classes/DataspaceControlPlaneService.md +11 -11
- package/locales/en.json +2 -0
- package/package.json +2 -2
|
@@ -156,10 +156,11 @@ export declare class DataspaceControlPlaneService implements IDataspaceControlPl
|
|
|
156
156
|
* @param offerId The offer ID from the provider's catalog.
|
|
157
157
|
* @param providerEndpoint The provider's contract negotiation endpoint URL.
|
|
158
158
|
* @param trustPayload The trust payload for authentication.
|
|
159
|
-
* @returns
|
|
159
|
+
* @returns For implicit trust: `{ agreementId }`. For external negotiation: `{ negotiationId }`.
|
|
160
160
|
*/
|
|
161
161
|
negotiateAgreement(datasetId: string, offerId: string, providerEndpoint: string, trustPayload: unknown): Promise<{
|
|
162
|
-
negotiationId
|
|
162
|
+
negotiationId?: string;
|
|
163
|
+
agreementId?: string;
|
|
163
164
|
}>;
|
|
164
165
|
/**
|
|
165
166
|
* Get the current state of a contract negotiation.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.50](https://github.com/iotaledger/twin-dataspace/compare/dataspace-control-plane-service-v0.0.3-next.49...dataspace-control-plane-service-v0.0.3-next.50) (2026-06-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* shortcut implicit trust ([#215](https://github.com/iotaledger/twin-dataspace/issues/215)) ([f9bcfea](https://github.com/iotaledger/twin-dataspace/commit/f9bcfeab8f069b62017502833c108b4ee3791414))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* remove inline i18n ([edde37e](https://github.com/iotaledger/twin-dataspace/commit/edde37e90ac397f253f57bc0d306b4bd0c797920))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* The following workspace dependencies were updated
|
|
19
|
+
* dependencies
|
|
20
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.49 to 0.0.3-next.50
|
|
21
|
+
|
|
3
22
|
## [0.0.3-next.49](https://github.com/iotaledger/twin-dataspace/compare/dataspace-control-plane-service-v0.0.3-next.48...dataspace-control-plane-service-v0.0.3-next.49) (2026-06-19)
|
|
4
23
|
|
|
5
24
|
|
|
@@ -263,7 +263,7 @@ on the next tick); when omitted/false the provider start must be triggered expli
|
|
|
263
263
|
|
|
264
264
|
`unknown`
|
|
265
265
|
|
|
266
|
-
Trust payload containing authorization information
|
|
266
|
+
Trust payload containing authorization information.
|
|
267
267
|
|
|
268
268
|
#### Returns
|
|
269
269
|
|
|
@@ -353,7 +353,7 @@ Transfer start message (DSP compliant).
|
|
|
353
353
|
|
|
354
354
|
`unknown`
|
|
355
355
|
|
|
356
|
-
Trust payload containing authorization information
|
|
356
|
+
Trust payload containing authorization information.
|
|
357
357
|
|
|
358
358
|
#### Returns
|
|
359
359
|
|
|
@@ -425,7 +425,7 @@ Transfer completion message (DSP compliant).
|
|
|
425
425
|
|
|
426
426
|
`unknown`
|
|
427
427
|
|
|
428
|
-
Trust payload containing authorization information
|
|
428
|
+
Trust payload containing authorization information.
|
|
429
429
|
|
|
430
430
|
#### Returns
|
|
431
431
|
|
|
@@ -457,7 +457,7 @@ Transfer suspension message (DSP compliant).
|
|
|
457
457
|
|
|
458
458
|
`unknown`
|
|
459
459
|
|
|
460
|
-
Trust payload containing authorization information
|
|
460
|
+
Trust payload containing authorization information.
|
|
461
461
|
|
|
462
462
|
#### Returns
|
|
463
463
|
|
|
@@ -489,7 +489,7 @@ Transfer termination message (DSP compliant).
|
|
|
489
489
|
|
|
490
490
|
`unknown`
|
|
491
491
|
|
|
492
|
-
Trust payload containing authorization information
|
|
492
|
+
Trust payload containing authorization information.
|
|
493
493
|
|
|
494
494
|
#### Returns
|
|
495
495
|
|
|
@@ -521,7 +521,7 @@ Process ID (consumerPid or providerPid).
|
|
|
521
521
|
|
|
522
522
|
`unknown`
|
|
523
523
|
|
|
524
|
-
Trust payload containing authorization information
|
|
524
|
+
Trust payload containing authorization information.
|
|
525
525
|
|
|
526
526
|
#### Returns
|
|
527
527
|
|
|
@@ -537,7 +537,7 @@ Transfer Process (DSP compliant) with current state, or TransferError if the ope
|
|
|
537
537
|
|
|
538
538
|
### negotiateAgreement() {#negotiateagreement}
|
|
539
539
|
|
|
540
|
-
> **negotiateAgreement**(`datasetId`, `offerId`, `providerEndpoint`, `trustPayload`): `Promise`\<\{ `negotiationId
|
|
540
|
+
> **negotiateAgreement**(`datasetId`, `offerId`, `providerEndpoint`, `trustPayload`): `Promise`\<\{ `negotiationId?`: `string`; `agreementId?`: `string`; \}\>
|
|
541
541
|
|
|
542
542
|
Negotiate a contract agreement with a provider.
|
|
543
543
|
Returns immediately with a negotiationId. The caller is notified
|
|
@@ -571,9 +571,9 @@ The trust payload for authentication.
|
|
|
571
571
|
|
|
572
572
|
#### Returns
|
|
573
573
|
|
|
574
|
-
`Promise`\<\{ `negotiationId
|
|
574
|
+
`Promise`\<\{ `negotiationId?`: `string`; `agreementId?`: `string`; \}\>
|
|
575
575
|
|
|
576
|
-
|
|
576
|
+
For implicit trust: `{ agreementId }`. For external negotiation: `{ negotiationId }`.
|
|
577
577
|
|
|
578
578
|
#### Implementation of
|
|
579
579
|
|
|
@@ -669,7 +669,7 @@ Consumer Process ID.
|
|
|
669
669
|
|
|
670
670
|
`unknown`
|
|
671
671
|
|
|
672
|
-
Trust payload containing authorization information
|
|
672
|
+
Trust payload containing authorization information.
|
|
673
673
|
|
|
674
674
|
#### Returns
|
|
675
675
|
|
|
@@ -701,7 +701,7 @@ Provider Process ID.
|
|
|
701
701
|
|
|
702
702
|
`unknown`
|
|
703
703
|
|
|
704
|
-
Trust payload containing authorization information
|
|
704
|
+
Trust payload containing authorization information.
|
|
705
705
|
|
|
706
706
|
#### Returns
|
|
707
707
|
|
package/locales/en.json
CHANGED
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"startingContractNegotiation": "Starting contract negotiation with provider",
|
|
18
18
|
"offerFoundInCatalog": "Offer found in Federated Catalogue and validated",
|
|
19
19
|
"negotiationInitiated": "Contract negotiation initiated successfully",
|
|
20
|
+
"implicitTrustAgreementCreated": "Implicit trust agreement created (agreementId: {agreementId}, datasetId: {datasetId}, organizationId: {organizationId})",
|
|
21
|
+
"implicitTrustAgreementReused": "Existing implicit trust agreement reused (agreementId: {agreementId}, datasetId: {datasetId}, organizationId: {organizationId})",
|
|
20
22
|
"getNegotiation": "Retrieving negotiation status",
|
|
21
23
|
"negotiationStateRetrieved": "Negotiation state retrieved successfully",
|
|
22
24
|
"getNegotiationHistory": "Retrieving negotiation history",
|
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.50",
|
|
4
4
|
"description": "Implements agreement negotiation and transfer process lifecycle management for control plane operations.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@twin.org/context": "next",
|
|
20
20
|
"@twin.org/core": "next",
|
|
21
21
|
"@twin.org/crypto": "next",
|
|
22
|
-
"@twin.org/dataspace-models": "0.0.3-next.
|
|
22
|
+
"@twin.org/dataspace-models": "0.0.3-next.50",
|
|
23
23
|
"@twin.org/entity": "next",
|
|
24
24
|
"@twin.org/entity-storage-models": "next",
|
|
25
25
|
"@twin.org/federated-catalogue-models": "next",
|