@twin.org/dataspace-control-plane-service 0.0.3-next.48 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"IDataspaceControlPlaneServiceConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IDataspaceControlPlaneServiceConstructorOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceControlPlaneServiceConfig } from \"./IDataspaceControlPlaneServiceConfig.js\";\n\n/**\n * Dataspace Control Plane service constructor options.\n */\nexport interface IDataspaceControlPlaneServiceConstructorOptions {\n\t/**\n\t * Policy Administration Point component type.\n\t * Used for Agreement lookup and validation during Transfer Process initiation.\n\t * @default policy-administration-point\n\t */\n\tpolicyAdministrationPointComponentType?: string;\n\n\t/**\n\t * Policy Negotiation Point component type.\n\t * Used for contract negotiation to create agreements before transfer processes.\n\t * @default policy-negotiation-point\n\t */\n\tpolicyNegotiationPointComponentType?: string;\n\n\t/**\n\t * Policy Negotiation Admin Point component type.\n\t * Used for querying negotiation history.\n\t * @default policy-negotiation-admin-point\n\t */\n\tpolicyNegotiationAdminPointComponentType?: string;\n\n\t/**\n\t * Federated Catalogue component type.\n\t * Used for dataset validation during Transfer Process initiation.\n\t * Validates that Agreements reference valid catalog datasets.\n\t * @default federated-catalogue\n\t */\n\tfederatedCatalogueComponentType?: string;\n\n\t/**\n\t * Logging component type.\n\t */\n\tloggingComponentType?: string;\n\n\t/**\n\t * Identity component type (for token signing/verification).\n\t * @default identity\n\t */\n\tidentityComponentType?: string;\n\n\t/**\n\t * Identity Authentication component type (for token validation).\n\t * @default identity-authentication\n\t */\n\tidentityAuthenticationComponentType?: string;\n\n\t/**\n\t * Trust component type for trust verification.\n\t * Used to verify JWT/VC tokens and extract identity information.\n\t * @default trust\n\t */\n\ttrustComponentType?: string;\n\n\t/**\n\t * Entity storage type for Transfer Process entities.\n\t * Used to persist transfer state for the consumerPid flow.\n\t * Must match the Data Plane's transferProcessEntityStorageType for shared storage.\n\t * @default transfer-process\n\t */\n\ttransferProcessEntityStorageType?: string;\n\n\t/**\n\t * Entity storage type for Dataspace App Dataset entities.\n\t * @default dataspace-app-dataset\n\t */\n\tdataspaceAppDatasetEntityStorageType?: string;\n\n\t/**\n\t * Task scheduler component type for periodic cleanup of stalled negotiations.\n\t * @default task-scheduler\n\t */\n\ttaskSchedulerComponentType?: string;\n\n\t/**\n\t * Data Plane component type, used to invoke push subscription lifecycle methods.\n\t * @default dataspace-data-plane\n\t */\n\tdataPlaneComponentType?: string;\n\n\t/**\n\t * Remote control plane component type used to make outbound DSP transfer requests.\n\t * Created dynamically via ComponentFactory.create() with the provider endpoint as config.\n\t * @default dataspace-control-plane-rest-client\n\t */\n\tremoteControlPlaneComponentType?: string;\n\n\t/**\n\t * Platform component type, used to retrieve public origin for constructing data plane URLs.\n\t * @default platform\n\t */\n\tplatformComponentType?: string;\n\n\t/**\n\t * The configuration of the Dataspace Control Plane Service.\n\t */\n\tconfig?: IDataspaceControlPlaneServiceConfig;\n}\n"]}
1
+ {"version":3,"file":"IDataspaceControlPlaneServiceConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IDataspaceControlPlaneServiceConstructorOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceControlPlaneServiceConfig } from \"./IDataspaceControlPlaneServiceConfig.js\";\n\n/**\n * Dataspace Control Plane service constructor options.\n */\nexport interface IDataspaceControlPlaneServiceConstructorOptions {\n\t/**\n\t * Policy Administration Point component type.\n\t * Used for Agreement lookup and validation during Transfer Process initiation.\n\t * @default policy-administration-point\n\t */\n\tpolicyAdministrationPointComponentType?: string;\n\n\t/**\n\t * Policy Negotiation Point component type.\n\t * Used for contract negotiation to create agreements before transfer processes.\n\t * @default policy-negotiation-point\n\t */\n\tpolicyNegotiationPointComponentType?: string;\n\n\t/**\n\t * Policy Negotiation Admin Point component type.\n\t * Used for querying negotiation history.\n\t * @default policy-negotiation-admin-point\n\t */\n\tpolicyNegotiationAdminPointComponentType?: string;\n\n\t/**\n\t * Federated Catalogue component type.\n\t * Used for dataset validation during Transfer Process initiation.\n\t * Validates that Agreements reference valid catalog datasets.\n\t * @default federated-catalogue\n\t */\n\tfederatedCatalogueComponentType?: string;\n\n\t/**\n\t * Logging component type.\n\t */\n\tloggingComponentType?: string;\n\n\t/**\n\t * Identity component type (for token signing/verification).\n\t * @default identity\n\t */\n\tidentityComponentType?: string;\n\n\t/**\n\t * Identity Authentication component type (for token validation).\n\t * @default identity-authentication\n\t */\n\tidentityAuthenticationComponentType?: string;\n\n\t/**\n\t * Trust component type for trust verification.\n\t * Used to verify JWT/VC tokens and extract identity information.\n\t * @default trust\n\t */\n\ttrustComponentType?: string;\n\n\t/**\n\t * Entity storage type for Transfer Process entities.\n\t * Used to persist transfer state for the consumerPid flow.\n\t * Must match the Data Plane's transferProcessEntityStorageType for shared storage.\n\t * @default transfer-process\n\t */\n\ttransferProcessEntityStorageType?: string;\n\n\t/**\n\t * Entity storage type for Dataspace App Dataset entities.\n\t * @default dataspace-app-dataset\n\t */\n\tdataspaceAppDatasetEntityStorageType?: string;\n\n\t/**\n\t * Task scheduler component type for periodic cleanup of stalled negotiations.\n\t * @default task-scheduler\n\t */\n\ttaskSchedulerComponentType?: string;\n\n\t/**\n\t * Data Plane component type, used to invoke push subscription lifecycle methods.\n\t * @default dataspace-data-plane\n\t */\n\tdataPlaneComponentType?: string;\n\n\t/**\n\t * Remote control plane component type used to make outbound DSP transfer requests.\n\t * Created dynamically via ComponentFactory.create() with the provider endpoint as config.\n\t * @default dataspace-control-plane-rest-client\n\t */\n\tremoteControlPlaneComponentType?: string;\n\n\t/**\n\t * Platform component type, used to retrieve public origin for constructing data plane URLs.\n\t * @default platform\n\t */\n\tplatformComponentType?: string;\n\n\t/**\n\t * The component type for the optional telemetry component used for metrics, defaults to no telemetry.\n\t */\n\ttelemetryComponentType?: string;\n\n\t/**\n\t * The configuration of the Dataspace Control Plane Service.\n\t */\n\tconfig?: IDataspaceControlPlaneServiceConfig;\n}\n"]}
@@ -66,7 +66,7 @@ export declare class DataspaceControlPlaneService implements IDataspaceControlPl
66
66
  * @param options Request options.
67
67
  * @param options.autoStart When true, the provider immediately starts the requested transfer (scheduled
68
68
  * on the next tick); when omitted/false the provider start must be triggered explicitly.
69
- * @param trustPayload Trust payload containing authorization information (Base64-encoded token).
69
+ * @param trustPayload Trust payload containing authorization information.
70
70
  * @returns Transfer Process (DSP compliant) with state REQUESTED, or TransferError if the operation fails.
71
71
  *
72
72
  * Role Performed: Provider
@@ -100,7 +100,7 @@ export declare class DataspaceControlPlaneService implements IDataspaceControlPl
100
100
  * Start a Transfer Process.
101
101
  * Transitions Transfer Process from REQUESTED to STARTED state or resumes from SUSPENDED state.
102
102
  * @param message Transfer start message (DSP compliant).
103
- * @param trustPayload Trust payload containing authorization information (Base64-encoded token).
103
+ * @param trustPayload Trust payload containing authorization information.
104
104
  * @returns Transfer Start Message (DSP compliant) with dataAddress for PULL transfers, or TransferError if the operation fails.
105
105
  *
106
106
  * Role Performed: Provider / Consumer
@@ -122,28 +122,28 @@ export declare class DataspaceControlPlaneService implements IDataspaceControlPl
122
122
  /**
123
123
  * Complete a Transfer Process.
124
124
  * @param message Transfer completion message (DSP compliant).
125
- * @param trustPayload Trust payload containing authorization information (Base64-encoded token).
125
+ * @param trustPayload Trust payload containing authorization information.
126
126
  * @returns Transfer Process (DSP compliant) with state COMPLETED, or TransferError if the operation fails.
127
127
  */
128
128
  completeTransfer(message: IDataspaceProtocolTransferCompletionMessage, trustPayload: unknown): Promise<IDataspaceProtocolTransferProcess | IDataspaceProtocolTransferError>;
129
129
  /**
130
130
  * Suspend a Transfer Process.
131
131
  * @param message Transfer suspension message (DSP compliant).
132
- * @param trustPayload Trust payload containing authorization information (Base64-encoded token).
132
+ * @param trustPayload Trust payload containing authorization information.
133
133
  * @returns Transfer Process (DSP compliant) with state SUSPENDED, or TransferError if the operation fails.
134
134
  */
135
135
  suspendTransfer(message: IDataspaceProtocolTransferSuspensionMessage, trustPayload: unknown): Promise<IDataspaceProtocolTransferProcess | IDataspaceProtocolTransferError>;
136
136
  /**
137
137
  * Terminate a Transfer Process.
138
138
  * @param message Transfer termination message (DSP compliant).
139
- * @param trustPayload Trust payload containing authorization information (Base64-encoded token).
139
+ * @param trustPayload Trust payload containing authorization information.
140
140
  * @returns Transfer Process (DSP compliant) with state TERMINATED, or TransferError if the operation fails.
141
141
  */
142
142
  terminateTransfer(message: IDataspaceProtocolTransferTerminationMessage, trustPayload: unknown): Promise<IDataspaceProtocolTransferProcess | IDataspaceProtocolTransferError>;
143
143
  /**
144
144
  * Get Transfer Process state.
145
145
  * @param pid Process ID (consumerPid or providerPid).
146
- * @param trustPayload Trust payload containing authorization information (Base64-encoded token).
146
+ * @param trustPayload Trust payload containing authorization information.
147
147
  * @returns Transfer Process (DSP compliant) with current state, or TransferError if the operation fails.
148
148
  */
149
149
  getTransferProcess(pid: string, trustPayload: unknown): Promise<IDataspaceProtocolTransferProcess | IDataspaceProtocolTransferError>;
@@ -188,14 +188,14 @@ export declare class DataspaceControlPlaneService implements IDataspaceControlPl
188
188
  /**
189
189
  * Resolve consumerPid to Transfer Context.
190
190
  * @param consumerPid Consumer Process ID.
191
- * @param trustPayload Trust payload containing authorization information (Base64-encoded token).
191
+ * @param trustPayload Trust payload containing authorization information.
192
192
  * @returns Transfer Context with Agreement, datasetId, and Transfer Process metadata.
193
193
  */
194
194
  resolveConsumerPid(consumerPid: string, trustPayload: unknown): Promise<ITransferContext>;
195
195
  /**
196
196
  * Resolve providerPid to Transfer Context.
197
197
  * @param providerPid Provider Process ID.
198
- * @param trustPayload Trust payload containing authorization information (Base64-encoded token).
198
+ * @param trustPayload Trust payload containing authorization information.
199
199
  * @returns Transfer Context with Agreement, datasetId, and Transfer Process metadata.
200
200
  */
201
201
  resolveProviderPid(providerPid: string, trustPayload: unknown): Promise<ITransferContext>;
@@ -81,6 +81,10 @@ export interface IDataspaceControlPlaneServiceConstructorOptions {
81
81
  * @default platform
82
82
  */
83
83
  platformComponentType?: string;
84
+ /**
85
+ * The component type for the optional telemetry component used for metrics, defaults to no telemetry.
86
+ */
87
+ telemetryComponentType?: string;
84
88
  /**
85
89
  * The configuration of the Dataspace Control Plane Service.
86
90
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [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
+
5
+
6
+ ### Features
7
+
8
+ * add telemetry metrics to dataspace control and data plane services ([#212](https://github.com/iotaledger/twin-dataspace/issues/212)) ([b5b0248](https://github.com/iotaledger/twin-dataspace/commit/b5b024899ed12c0f639c5d51aefa3e509753eac6))
9
+ * remove datasetsHandled method from apps ([9fdc950](https://github.com/iotaledger/twin-dataspace/commit/9fdc95018d38ab49c4a1094642be2ee83ee0e4cd))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * The following workspace dependencies were updated
15
+ * dependencies
16
+ * @twin.org/dataspace-models bumped from 0.0.3-next.48 to 0.0.3-next.49
17
+
3
18
  ## [0.0.3-next.48](https://github.com/iotaledger/twin-dataspace/compare/dataspace-control-plane-service-v0.0.3-next.47...dataspace-control-plane-service-v0.0.3-next.48) (2026-06-18)
4
19
 
5
20
 
@@ -203,6 +203,14 @@ platform
203
203
 
204
204
  ***
205
205
 
206
+ ### telemetryComponentType? {#telemetrycomponenttype}
207
+
208
+ > `optional` **telemetryComponentType?**: `string`
209
+
210
+ The component type for the optional telemetry component used for metrics, defaults to no telemetry.
211
+
212
+ ***
213
+
206
214
  ### config? {#config}
207
215
 
208
216
  > `optional` **config?**: [`IDataspaceControlPlaneServiceConfig`](IDataspaceControlPlaneServiceConfig.md)
package/locales/en.json CHANGED
@@ -71,7 +71,7 @@
71
71
  "invalidTransferSuspensionMessage": "Transfer Suspension Message does not conform to Dataspace Protocol specification",
72
72
  "invalidTransferTerminationMessage": "Transfer Termination Message does not conform to Dataspace Protocol specification",
73
73
  "agreementLookupFailed": "Failed to lookup Agreement: {agreementId}",
74
- "agreementNotFound": "Agreement not found",
74
+ "agreementNotFound": "Agreement not found \"{notFoundId}\"",
75
75
  "agreementMissingTarget": "Agreement is missing target (dataset): {agreementId}",
76
76
  "agreementMultipleTargetsNotSupported": "Agreement has multiple targets which is not supported. Only single target Agreements are allowed: {agreementId}, target count: {targetCount}",
77
77
  "agreementTargetMissingUid": "Agreement target object is missing required \"uid\" property: {agreementId}",
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.48",
3
+ "version": "0.0.3-next.49",
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.48",
22
+ "@twin.org/dataspace-models": "0.0.3-next.49",
23
23
  "@twin.org/entity": "next",
24
24
  "@twin.org/entity-storage-models": "next",
25
25
  "@twin.org/federated-catalogue-models": "next",
@@ -28,6 +28,7 @@
28
28
  "@twin.org/rights-management-models": "next",
29
29
  "@twin.org/standards-dataspace-protocol": "next",
30
30
  "@twin.org/standards-w3c-odrl": "next",
31
+ "@twin.org/telemetry-models": "next",
31
32
  "@twin.org/trust-models": "next",
32
33
  "@twin.org/vault-models": "next"
33
34
  },