@twin.org/dataspace-data-plane-service 0.0.3-next.28 → 0.0.3-next.30

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.
@@ -43,3 +43,60 @@ The number of times to retry failed tasks, defaults to forever.
43
43
  ```ts
44
44
  undefined.
45
45
  ```
46
+
47
+ ***
48
+
49
+ ### pushRetryCount? {#pushretrycount}
50
+
51
+ > `optional` **pushRetryCount?**: `number`
52
+
53
+ Max HTTP retry attempts per push delivery task execution.
54
+
55
+ #### Default
56
+
57
+ ```ts
58
+ 3
59
+ ```
60
+
61
+ ***
62
+
63
+ ### pushRetryBaseDelayMs? {#pushretrybasedelayms}
64
+
65
+ > `optional` **pushRetryBaseDelayMs?**: `number`
66
+
67
+ Base delay (ms) for exponential backoff between push HTTP retries.
68
+ Effective delay = baseDelayMs * 2^attempt.
69
+
70
+ #### Default
71
+
72
+ ```ts
73
+ 1000
74
+ ```
75
+
76
+ ***
77
+
78
+ ### pushTimeoutMs? {#pushtimeoutms}
79
+
80
+ > `optional` **pushTimeoutMs?**: `number`
81
+
82
+ Timeout (ms) for each push delivery HTTP POST request.
83
+
84
+ #### Default
85
+
86
+ ```ts
87
+ 30000
88
+ ```
89
+
90
+ ***
91
+
92
+ ### pushSubscriptionCleanupIntervalMs? {#pushsubscriptioncleanupintervalms}
93
+
94
+ > `optional` **pushSubscriptionCleanupIntervalMs?**: `number`
95
+
96
+ Interval (ms) between orphaned PushSubscription cleanup scans.
97
+
98
+ #### Default
99
+
100
+ ```ts
101
+ 3600000 (1 hour)
102
+ ```
@@ -89,6 +89,20 @@ transfer-process
89
89
 
90
90
  ***
91
91
 
92
+ ### pushSubscriptionEntityStorageType? {#pushsubscriptionentitystoragetype}
93
+
94
+ > `optional` **pushSubscriptionEntityStorageType?**: `string`
95
+
96
+ The entity storage type for PushSubscription entities.
97
+
98
+ #### Default
99
+
100
+ ```ts
101
+ push-subscription
102
+ ```
103
+
104
+ ***
105
+
92
106
  ### dataspaceAppDatasetEntityStorageType? {#dataspaceappdatasetentitystoragetype}
93
107
 
94
108
  > `optional` **dataspaceAppDatasetEntityStorageType?**: `string`
package/locales/en.json CHANGED
@@ -13,16 +13,34 @@
13
13
  "transferProcessNotFound": "Transfer Process not found for consumerPid \"{notFoundId}\"",
14
14
  "transferNotInStartedState": "Transfer Process is not in STARTED state. Current state: \"{currentState}\"",
15
15
  "transferMissingDatasetId": "Transfer Process is missing datasetId",
16
+ "transferMissingDataAddress": "Transfer Process is missing a valid push dataAddress endpoint (consumerPid: {consumerPid})",
17
+ "pushSubscriptionMissingTenantToken": "Push subscription setup rejected: consumer endpoint does not carry an `x-enc-tenant-token` query parameter (consumerPid: {consumerPid}, endpoint: {endpoint}). On multi-tenant publishers the consumer must bake its tenant token before sending the dataAddress.",
18
+ "pushSubscriptionStorageNotRegistered": "Push-mode transfer requires push-subscription storage to be registered (entity-storage key: \"push-subscription\"). This deployment was configured without it — register the storage to enable push, or use pull-mode transfers only.",
16
19
  "schemaNotFound": "Schema \"{schemaId}\" not found",
17
20
  "cleanupFailed": "Error occurred during cleanup of activity logs",
18
21
  "invalidProcessingGroupId": "Invalid processing group id \"{processingGroupId}\" specified in activity query",
19
- "missingHandleActivity": "Handler App \"{dataspaceAppId}\" does not export a \"handleActivity\" function"
22
+ "missingHandleActivity": "Handler App \"{dataspaceAppId}\" does not export a \"handleActivity\" function",
23
+ "pushSubscriptionNotFound": "Push subscription not found for consumerPid \"{notFoundId}\"",
24
+ "pushActivityNotAuthorized": "Unauthorized push activity — no matching STARTED transfer found for the activity generator",
25
+ "processOutboxActivityMultipleTo": "processOutboxActivity does not support multiple recipients — activity.to contains {count} values, expected exactly one consumerPid",
26
+ "pushSubscriptionCompensationFailed": "Compensating unsubscribeToData failed after push-subscription storage write failed (consumerPid: {consumerPid}, providerPid: {providerPid}) — app may be left with a dangling Follow until orphan cleanup runs"
20
27
  }
21
28
  },
22
29
  "info": {
23
30
  "dataspaceDataPlaneService": {
24
31
  "scheduledTask": "\"{taskId}\": Task scheduled for Dataspace App \"{dataspaceAppId}\" (isRetry: {isRetry})",
25
- "policyObligationTriggered": "Policy obligation triggered for agreement \"{agreementId}\": action=\"{action}\", target=\"{target}\""
32
+ "policyObligationTriggered": "Policy obligation triggered for agreement \"{agreementId}\": action=\"{action}\", target=\"{target}\"",
33
+ "pushSubscriptionCreated": "Push subscription created (consumerPid: {consumerPid}, providerPid: {providerPid})",
34
+ "pushSubscriptionSuspended": "Push subscription suspended (consumerPid: {consumerPid})",
35
+ "pushSubscriptionResumed": "Push subscription resumed (consumerPid: {consumerPid})",
36
+ "pushSubscriptionTornDown": "Push subscription torn down (consumerPid: {consumerPid}, providerPid: {providerPid})",
37
+ "pushDeliveryTaskScheduled": "Push delivery task scheduled (taskId: {taskId}, consumerPid: {consumerPid})"
38
+ }
39
+ },
40
+ "warn": {
41
+ "dataspaceDataPlaneService": {
42
+ "pushSubscriptionNotFoundOnTeardown": "Push subscription not found for consumerPid \"{consumerPid}\" during teardown — treating as no-op",
43
+ "pushSubscriptionNotFoundForActivity": "Push subscription not found for outbound activity (consumerPid: {consumerPid})"
26
44
  }
27
45
  },
28
46
  "debug": {
@@ -33,7 +51,9 @@
33
51
  "engineCloneStart": "'start' method has been called from an engine clone. No task scheduler created",
34
52
  "cleanUpOngoing": "There is an ongoing clean up of activity logs. Skipping",
35
53
  "activityLogCleanedUp": "Activity Log has been cleaned up. \"{numRecordsDeleted}\" records deleted",
36
- "replacingFailedTasks": "Retrying apps \"{appsToRetry}\" (successful: \"{successfulApps}\") for activity \"{activityLogEntryId}\""
54
+ "pushSubscriptionsCleanedUp": "Orphaned push subscriptions cleaned up. \"{numDeleted}\" records deleted",
55
+ "replacingFailedTasks": "Retrying apps \"{appsToRetry}\" (successful: \"{successfulApps}\") for activity \"{activityLogEntryId}\"",
56
+ "pushDeliverySkippedPaused": "Push delivery skipped — subscription is paused (consumerPid: {consumerPid})"
37
57
  },
38
58
  "dataspaceDataPlaneSocketRoutes": {
39
59
  "activityLogStatusConnected": "Web Socket Connected: Socket Id: \"{socketId}\"",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/dataspace-data-plane-service",
3
- "version": "0.0.3-next.28",
3
+ "version": "0.0.3-next.30",
4
4
  "description": "Processes activities and data requests while enforcing transfer and policy constraints in the data plane.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "@twin.org/crypto": "next",
22
22
  "@twin.org/data-core": "next",
23
23
  "@twin.org/data-json-ld": "next",
24
- "@twin.org/dataspace-app-runner": "0.0.3-next.28",
25
- "@twin.org/dataspace-models": "0.0.3-next.28",
24
+ "@twin.org/dataspace-app-runner": "0.0.3-next.30",
25
+ "@twin.org/dataspace-models": "0.0.3-next.30",
26
26
  "@twin.org/engine-models": "next",
27
27
  "@twin.org/entity": "next",
28
28
  "@twin.org/entity-storage-models": "next",