@twin.org/dataspace-models 0.10.0 → 0.10.1-next.2
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/entities/dataspaceAppDataset.js +4 -4
- package/dist/es/entities/dataspaceAppDataset.js.map +1 -1
- package/dist/es/entities/transferProcess.js +13 -13
- package/dist/es/entities/transferProcess.js.map +1 -1
- package/dist/es/entities/transferRetrieval.js +1 -1
- package/dist/es/entities/transferRetrieval.js.map +1 -1
- package/dist/es/models/app/IProcessingGroupOptions.js.map +1 -1
- package/dist/types/models/app/IProcessingGroupOptions.d.ts +6 -0
- package/docs/changelog.md +61 -0
- package/docs/reference/interfaces/IProcessingGroupOptions.md +10 -0
- package/package.json +15 -15
|
@@ -44,19 +44,19 @@ let DataspaceAppDataset = class DataspaceAppDataset {
|
|
|
44
44
|
dateModified;
|
|
45
45
|
};
|
|
46
46
|
__decorate([
|
|
47
|
-
property({ type: "string", isPrimary: true }),
|
|
47
|
+
property({ type: "string", isPrimary: true, maxLength: 255 }),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
49
|
], DataspaceAppDataset.prototype, "id", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
property({ type: "string", isSecondary: true }),
|
|
51
|
+
property({ type: "string", maxLength: 255, isSecondary: true }),
|
|
52
52
|
__metadata("design:type", String)
|
|
53
53
|
], DataspaceAppDataset.prototype, "organizationIdentity", void 0);
|
|
54
54
|
__decorate([
|
|
55
|
-
property({ type: "string", optional: true }),
|
|
55
|
+
property({ type: "string", maxLength: 32, optional: true }),
|
|
56
56
|
__metadata("design:type", String)
|
|
57
57
|
], DataspaceAppDataset.prototype, "tenantId", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
property({ type: "string" }),
|
|
59
|
+
property({ type: "string", maxLength: 255 }),
|
|
60
60
|
__metadata("design:type", String)
|
|
61
61
|
], DataspaceAppDataset.prototype, "appId", void 0);
|
|
62
62
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataspaceAppDataset.js","sourceRoot":"","sources":["../../../src/entities/dataspaceAppDataset.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEnE;;GAEG;AAEI,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC/B;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAEI,oBAAoB,CAAU;IAErC;;;;OAIG;IAEI,QAAQ,CAAU;IAEzB;;;OAGG;IAEI,KAAK,CAAU;IAEtB;;;OAGG;IAEI,OAAO,CAA8B;IAE5C;;;OAGG;IAEI,qBAAqB,CAAU;IAEtC;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,YAAY,CAAU;CAC7B,CAAA;AAhDO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;+
|
|
1
|
+
{"version":3,"file":"dataspaceAppDataset.js","sourceRoot":"","sources":["../../../src/entities/dataspaceAppDataset.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEnE;;GAEG;AAEI,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC/B;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAEI,oBAAoB,CAAU;IAErC;;;;OAIG;IAEI,QAAQ,CAAU;IAEzB;;;OAGG;IAEI,KAAK,CAAU;IAEtB;;;OAGG;IAEI,OAAO,CAA8B;IAE5C;;;OAGG;IAEI,qBAAqB,CAAU;IAEtC;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,YAAY,CAAU;CAC7B,CAAA;AAhDO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;+CAC3C;AAMZ;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;;iEAC3B;AAQ9B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACnC;AAOlB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;kDACvB;AAOf;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;;oDACD;AAOrC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACP;AAM/B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,CAAC,UAAU,EAAE,CAAC;;wDAC/D;AAMrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;;yDACrB;AApDjB,mBAAmB;IAD/B,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;GACV,mBAAmB,CAqD/B","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { entity, property, SortDirection } from \"@twin.org/entity\";\n\n/**\n * Tenant-supplied Dataset shape persisted by the Control Plane.\n */\n@entity({ version: 1 })\nexport class DataspaceAppDataset {\n\t/**\n\t * The unique identifier for the dataset.\n\t */\n\t@property({ type: \"string\", isPrimary: true, maxLength: 255 })\n\tpublic id!: string;\n\n\t/**\n\t * The identity of the organization that owns this entity.\n\t */\n\t@property({ type: \"string\", maxLength: 255, isSecondary: true })\n\tpublic organizationIdentity!: string;\n\n\t/**\n\t * The tenant that owns this dataset, captured from the request context at\n\t * write time. Optional - single-tenant nodes (no `TWIN_TENANT_ENABLED`)\n\t * register datasets without a tenant context.\n\t */\n\t@property({ type: \"string\", maxLength: 32, optional: true })\n\tpublic tenantId?: string;\n\n\t/**\n\t * The dataspace app that this dataset belongs to. Matches the app's\n\t * registered name in `DataspaceAppFactory` (typically the app's URI).\n\t */\n\t@property({ type: \"string\", maxLength: 255 })\n\tpublic appId!: string;\n\n\t/**\n\t * The user-controlled JSON-LD dataset payload. Stored as an\n\t * opaque object and validated/populated at publish time.\n\t */\n\t@property({ type: \"object\", format: \"json\" })\n\tpublic dataset!: { [key: string]: unknown };\n\n\t/**\n\t * Idle window (ms) for this dataset's PULL transfers, overriding the node-level\n\t * providerTransferIdleTimeoutMs; 0 disables the idle policy for this dataset.\n\t */\n\t@property({ type: \"number\", optional: true })\n\tpublic transferIdleTimeoutMs?: number;\n\n\t/**\n\t * Creation timestamp (ISO string format).\n\t */\n\t@property({ type: \"string\", format: \"date-time\", sortDirection: SortDirection.Descending })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * Last update timestamp (ISO string format).\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic dateModified!: string;\n}\n"]}
|
|
@@ -79,55 +79,55 @@ let TransferProcess = class TransferProcess {
|
|
|
79
79
|
dataAddress;
|
|
80
80
|
};
|
|
81
81
|
__decorate([
|
|
82
|
-
property({ type: "string", isPrimary: true }),
|
|
82
|
+
property({ type: "string", isPrimary: true, maxLength: 255 }),
|
|
83
83
|
__metadata("design:type", String)
|
|
84
84
|
], TransferProcess.prototype, "id", void 0);
|
|
85
85
|
__decorate([
|
|
86
|
-
property({ type: "string", isSecondary: true }),
|
|
86
|
+
property({ type: "string", maxLength: 255, isSecondary: true }),
|
|
87
87
|
__metadata("design:type", String)
|
|
88
88
|
], TransferProcess.prototype, "consumerPid", void 0);
|
|
89
89
|
__decorate([
|
|
90
|
-
property({ type: "string", isSecondary: true }),
|
|
90
|
+
property({ type: "string", maxLength: 255, isSecondary: true }),
|
|
91
91
|
__metadata("design:type", String)
|
|
92
92
|
], TransferProcess.prototype, "providerPid", void 0);
|
|
93
93
|
__decorate([
|
|
94
|
-
property({ type: "string" }),
|
|
94
|
+
property({ type: "string", maxLength: 255 }),
|
|
95
95
|
__metadata("design:type", String)
|
|
96
96
|
], TransferProcess.prototype, "agreementId", void 0);
|
|
97
97
|
__decorate([
|
|
98
|
-
property({ type: "string" }),
|
|
98
|
+
property({ type: "string", maxLength: 16 }),
|
|
99
99
|
__metadata("design:type", String)
|
|
100
100
|
], TransferProcess.prototype, "state", void 0);
|
|
101
101
|
__decorate([
|
|
102
|
-
property({ type: "string" }),
|
|
102
|
+
property({ type: "string", maxLength: 255 }),
|
|
103
103
|
__metadata("design:type", String)
|
|
104
104
|
], TransferProcess.prototype, "datasetId", void 0);
|
|
105
105
|
__decorate([
|
|
106
|
-
property({ type: "string" }),
|
|
106
|
+
property({ type: "string", maxLength: 255 }),
|
|
107
107
|
__metadata("design:type", String)
|
|
108
108
|
], TransferProcess.prototype, "offerId", void 0);
|
|
109
109
|
__decorate([
|
|
110
|
-
property({ type: "string", optional: true }),
|
|
110
|
+
property({ type: "string", maxLength: 255, optional: true }),
|
|
111
111
|
__metadata("design:type", String)
|
|
112
112
|
], TransferProcess.prototype, "consumerIdentity", void 0);
|
|
113
113
|
__decorate([
|
|
114
|
-
property({ type: "string", optional: true }),
|
|
114
|
+
property({ type: "string", maxLength: 255, optional: true }),
|
|
115
115
|
__metadata("design:type", String)
|
|
116
116
|
], TransferProcess.prototype, "providerIdentity", void 0);
|
|
117
117
|
__decorate([
|
|
118
|
-
property({ type: "string", optional: true }),
|
|
118
|
+
property({ type: "string", maxLength: 128, optional: true }),
|
|
119
119
|
__metadata("design:type", String)
|
|
120
120
|
], TransferProcess.prototype, "localRole", void 0);
|
|
121
121
|
__decorate([
|
|
122
|
-
property({ type: "string", optional: true }),
|
|
122
|
+
property({ type: "string", maxLength: 128, optional: true }),
|
|
123
123
|
__metadata("design:type", String)
|
|
124
124
|
], TransferProcess.prototype, "format", void 0);
|
|
125
125
|
__decorate([
|
|
126
|
-
property({ type: "string", optional: true }),
|
|
126
|
+
property({ type: "string", format: "uri", optional: true }),
|
|
127
127
|
__metadata("design:type", String)
|
|
128
128
|
], TransferProcess.prototype, "callbackAddress", void 0);
|
|
129
129
|
__decorate([
|
|
130
|
-
property({ type: "string" }),
|
|
130
|
+
property({ type: "string", maxLength: 255 }),
|
|
131
131
|
__metadata("design:type", String)
|
|
132
132
|
], TransferProcess.prototype, "organizationIdentity", void 0);
|
|
133
133
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferProcess.js","sourceRoot":"","sources":["../../../src/entities/transferProcess.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOnE;;;GAGG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAe;IAC3B;;;OAGG;IAEI,EAAE,CAAU;IAEnB;;;OAGG;IAEI,WAAW,CAAU;IAE5B;;;OAGG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,WAAW,CAAU;IAE5B;;;OAGG;IAEI,KAAK,CAA6C;IAEzD;;OAEG;IAEI,SAAS,CAAU;IAE1B;;OAEG;IAEI,OAAO,CAAU;IAExB;;OAEG;IAEI,gBAAgB,CAAU;IAEjC;;OAEG;IAEI,gBAAgB,CAAU;IAEjC;;;;OAIG;IAEI,SAAS,CAAuB;IAEvC;;OAEG;IAEI,MAAM,CAAU;IAEvB;;OAEG;IAEI,eAAe,CAAU;IAEhC;;OAEG;IAEI,oBAAoB,CAAU;IAErC;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,YAAY,CAAU;IAE7B;;;OAGG;I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AAC;;oDAC/D;AAMrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;;qDACrB;AAOtB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACV;AAtGvC,eAAe;IAD3B,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;GACV,eAAe,CAuG3B","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { entity, property, SortDirection } from \"@twin.org/entity\";\nimport type {\n\tDataspaceProtocolTransferProcessStateType,\n\tIDataspaceProtocolDataAddress\n} from \"@twin.org/standards-dataspace-protocol\";\nimport type { TransferProcessRole } from \"../models/controlPlane/transferProcessRole.js\";\n\n/**\n * Transfer Process for shared storage between Control Plane and Data Plane.\n * This entity is the persistent representation of ITransferProcess.\n */\n@entity({ version: 1 })\nexport class TransferProcess {\n\t/**\n\t * Internal id, the primary key. Both role records of a self transfer share consumerPid and\n\t * providerPid, so only the internal id is collision-free within one partition.\n\t */\n\t@property({ type: \"string\", isPrimary: true, maxLength: 255 })\n\tpublic id!: string;\n\n\t/**\n\t * Consumer Process ID from the DSP protocol.\n\t * Indexed for lookup by consumerPid.\n\t */\n\t@property({ type: \"string\", maxLength: 255, isSecondary: true })\n\tpublic consumerPid!: string;\n\n\t/**\n\t * Provider Process ID from the DSP protocol.\n\t * Indexed for lookup by providerPid.\n\t */\n\t@property({ type: \"string\", maxLength: 255, isSecondary: true })\n\tpublic providerPid!: string;\n\n\t/**\n\t * Agreement ID linking to the rights-management Agreement.\n\t */\n\t@property({ type: \"string\", maxLength: 255 })\n\tpublic agreementId!: string;\n\n\t/**\n\t * Transfer Process state from the DSP protocol.\n\t * One of: REQUESTED, STARTED, COMPLETED, SUSPENDED, TERMINATED.\n\t */\n\t@property({ type: \"string\", maxLength: 16 })\n\tpublic state!: DataspaceProtocolTransferProcessStateType;\n\n\t/**\n\t * Dataset ID for DSC resolution.\n\t */\n\t@property({ type: \"string\", maxLength: 255 })\n\tpublic datasetId!: string;\n\n\t/**\n\t * Offer ID from the original Catalog offer.\n\t */\n\t@property({ type: \"string\", maxLength: 255 })\n\tpublic offerId!: string;\n\n\t/**\n\t * Consumer identity (DID or URI).\n\t */\n\t@property({ type: \"string\", maxLength: 255, optional: true })\n\tpublic consumerIdentity?: string;\n\n\t/**\n\t * Provider identity (DID or URI).\n\t */\n\t@property({ type: \"string\", maxLength: 255, optional: true })\n\tpublic providerIdentity?: string;\n\n\t/**\n\t * This node's role in the transfer, captured at write time so state transitions and async delivery\n\t * can tell which party we are without inferring it from the matched PID (a self transfer stores two\n\t * records sharing both pids). Optional for back-compat with records written before this field existed.\n\t */\n\t@property({ type: \"string\", maxLength: 128, optional: true })\n\tpublic localRole?: TransferProcessRole;\n\n\t/**\n\t * Data format from the Dataset Distribution.\n\t */\n\t@property({ type: \"string\", maxLength: 128, optional: true })\n\tpublic format?: string;\n\n\t/**\n\t * Callback address for Consumer notifications.\n\t */\n\t@property({ type: \"string\", format: \"uri\", optional: true })\n\tpublic callbackAddress?: string;\n\n\t/**\n\t * The organization that owns this transfer process, captured from the request context at write time.\n\t */\n\t@property({ type: \"string\", maxLength: 255 })\n\tpublic organizationIdentity!: string;\n\n\t/**\n\t * Creation timestamp (ISO string format).\n\t */\n\t@property({ type: \"string\", format: \"date-time\", sortDirection: SortDirection.Descending })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * Last update timestamp (ISO string format).\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic dateModified!: string;\n\n\t/**\n\t * Data address for the transfer (stored as JSON): the consumer's inbox for PUSH, or the\n\t * provider-built address persisted at start for PULL/POST; may expire while STARTED.\n\t */\n\t@property({ type: \"object\", format: \"json\", optional: true })\n\tpublic dataAddress?: IDataspaceProtocolDataAddress;\n}\n"]}
|
|
@@ -20,7 +20,7 @@ let TransferRetrieval = class TransferRetrieval {
|
|
|
20
20
|
dateLastRetrieved;
|
|
21
21
|
};
|
|
22
22
|
__decorate([
|
|
23
|
-
property({ type: "string", isPrimary: true }),
|
|
23
|
+
property({ type: "string", isPrimary: true, maxLength: 255 }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], TransferRetrieval.prototype, "consumerPid", void 0);
|
|
26
26
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferRetrieval.js","sourceRoot":"","sources":["../../../src/entities/transferRetrieval.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;GAGG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC7B;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,kBAAkB,CAAU;IAEnC;;OAEG;IAEI,iBAAiB,CAAU;CAClC,CAAA;AAbO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"transferRetrieval.js","sourceRoot":"","sources":["../../../src/entities/transferRetrieval.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;GAGG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC7B;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,kBAAkB,CAAU;IAEnC;;OAEG;IAEI,iBAAiB,CAAU;CAClC,CAAA;AAbO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;sDAClC;AAMrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;;6DACf;AAM5B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;;4DAChB;AAjBtB,iBAAiB;IAD7B,MAAM,EAAE;GACI,iBAAiB,CAkB7B","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { entity, property } from \"@twin.org/entity\";\n\n/**\n * Records the consumer's first successful retrieval for a transfer.\n * Written by the Data Plane, read by the Control Plane's one-shot policy sweep.\n */\n@entity()\nexport class TransferRetrieval {\n\t/**\n\t * The consumer PID of the transfer, primary key.\n\t */\n\t@property({ type: \"string\", isPrimary: true, maxLength: 255 })\n\tpublic consumerPid!: string;\n\n\t/**\n\t * When the first successful retrieval happened (ISO string format).\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic dateFirstRetrieved!: string;\n\n\t/**\n\t * When the most recent successful retrieval happened (ISO string format).\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic dateLastRetrieved!: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IProcessingGroupOptions.js","sourceRoot":"","sources":["../../../../src/models/app/IProcessingGroupOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Interface describes the options for a processing group, which determines how many tasks can be processed in parallel for a given group of activities.\n */\nexport interface IProcessingGroupOptions {\n\t/**\n\t * The number of concurrent tasks that can be processed for this processing group.\n\t */\n\tconcurrentTasks?: number;\n\n\t/**\n\t * Terminate the worker after it has been idle for the specified timeout in milliseconds,\n\t * defaults to 0 for immediate shutdown, set to -1 to keep workers alive.\n\t */\n\tidleShutdownTimeout?: number;\n\n\t/**\n\t * The number of times a task in this processing group should be retried in case of failure.\n\t */\n\tretryCount?: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IProcessingGroupOptions.js","sourceRoot":"","sources":["../../../../src/models/app/IProcessingGroupOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Interface describes the options for a processing group, which determines how many tasks can be processed in parallel for a given group of activities.\n */\nexport interface IProcessingGroupOptions {\n\t/**\n\t * The number of concurrent tasks that can be processed for this processing group.\n\t */\n\tconcurrentTasks?: number;\n\n\t/**\n\t * Terminate the worker after it has been idle for the specified timeout in milliseconds,\n\t * defaults to 0 for immediate shutdown, set to -1 to keep workers alive.\n\t */\n\tidleShutdownTimeout?: number;\n\n\t/**\n\t * The number of times a task in this processing group should be retried in case of failure.\n\t */\n\tretryCount?: number;\n\n\t/**\n\t * The component types to exclude from the engine clone used by the workers of this processing group.\n\t * Each entry is a regular expression matched against the engine config type keys, for example\n\t * \"^rightsManagement\"; entries the engine marks as always cloned are kept even when their key matches.\n\t */\n\texcludeCloneComponents?: string[];\n}\n"]}
|
|
@@ -15,4 +15,10 @@ export interface IProcessingGroupOptions {
|
|
|
15
15
|
* The number of times a task in this processing group should be retried in case of failure.
|
|
16
16
|
*/
|
|
17
17
|
retryCount?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The component types to exclude from the engine clone used by the workers of this processing group.
|
|
20
|
+
* Each entry is a regular expression matched against the engine config type keys, for example
|
|
21
|
+
* "^rightsManagement"; entries the engine marks as always cloned are kept even when their key matches.
|
|
22
|
+
*/
|
|
23
|
+
excludeCloneComponents?: string[];
|
|
18
24
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.1-next.2](https://github.com/iotaledger/twin-dataspace/compare/dataspace-models-v0.10.1-next.1...dataspace-models-v0.10.1-next.2) (2026-09-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* improve entity schemas ([#384](https://github.com/iotaledger/twin-dataspace/issues/384)) ([2ee1cd6](https://github.com/iotaledger/twin-dataspace/commit/2ee1cd65c0017d665c895449d8c3136c8726664a))
|
|
9
|
+
|
|
10
|
+
## [0.10.1-next.1](https://github.com/iotaledger/twin-dataspace/compare/dataspace-models-v0.10.1-next.0...dataspace-models-v0.10.1-next.1) (2026-09-17)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add consumer transfer callbacks and startDataTransfer convenience method ([#151](https://github.com/iotaledger/twin-dataspace/issues/151)) ([0ab66c3](https://github.com/iotaledger/twin-dataspace/commit/0ab66c3636fd1f98f89baca1e99764d77c6f91d9))
|
|
16
|
+
* add correlation callbacks ([#354](https://github.com/iotaledger/twin-dataspace/issues/354)) ([d362fb6](https://github.com/iotaledger/twin-dataspace/commit/d362fb6b0816a62f72a77478d78fb3959a437b3c))
|
|
17
|
+
* add dataspace transfer format ([#111](https://github.com/iotaledger/twin-dataspace/issues/111)) ([f59ff5e](https://github.com/iotaledger/twin-dataspace/commit/f59ff5ef10d261d1cebbf5c6bb0689e74a10738a))
|
|
18
|
+
* add inline tasks and concurrent options ([#104](https://github.com/iotaledger/twin-dataspace/issues/104)) ([2227a21](https://github.com/iotaledger/twin-dataspace/commit/2227a212d906f58ba77850c79bb20bf2cb7195a8))
|
|
19
|
+
* 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))
|
|
20
|
+
* add transferStarted provider method to start a data transfer ([#206](https://github.com/iotaledger/twin-dataspace/issues/206)) ([3ec2dc8](https://github.com/iotaledger/twin-dataspace/commit/3ec2dc8943c8531cd8d8e4ab07cb970ef7b11090))
|
|
21
|
+
* add unused agreement sweep to the control plane ([#344](https://github.com/iotaledger/twin-dataspace/issues/344)) ([8633642](https://github.com/iotaledger/twin-dataspace/commit/86336424ced7aeab3259c78373447074f4140e90))
|
|
22
|
+
* add well known versions endpoint ([#251](https://github.com/iotaledger/twin-dataspace/issues/251)) ([4b4cbe9](https://github.com/iotaledger/twin-dataspace/commit/4b4cbe91a40980481dad6e0650c1ee73c53ae360))
|
|
23
|
+
* align all config times to ms ([40238d5](https://github.com/iotaledger/twin-dataspace/commit/40238d59a2b45caedc01792b682ce7206815dfd1))
|
|
24
|
+
* cross-node transfer callbacks and DataTransferManager auto-start ([#199](https://github.com/iotaledger/twin-dataspace/issues/199)) ([1089aa3](https://github.com/iotaledger/twin-dataspace/commit/1089aa344e3598e382f37a82ca03230c5cf6cacd))
|
|
25
|
+
* docs update ([8b44c7a](https://github.com/iotaledger/twin-dataspace/commit/8b44c7a75afb8d377a6f606616f8a78d58439ab4))
|
|
26
|
+
* endpoint encryption + getDatasetTargets multi-target fix ([#112](https://github.com/iotaledger/twin-dataspace/issues/112)) ([3288941](https://github.com/iotaledger/twin-dataspace/commit/328894113c19c7402f7d00dfa77b6a97ae40ca91))
|
|
27
|
+
* get activity log add trust payload ([#201](https://github.com/iotaledger/twin-dataspace/issues/201)) ([cdb5486](https://github.com/iotaledger/twin-dataspace/commit/cdb5486942c1b94ddf6435236b9b9d190bea0407))
|
|
28
|
+
* implement DSP push transfer mode ([#109](https://github.com/iotaledger/twin-dataspace/issues/109)) ([71f5fee](https://github.com/iotaledger/twin-dataspace/commit/71f5feec1d92dfec8ed6899c951809818e1bf2a3))
|
|
29
|
+
* improve error handling and component usage ([544e20e](https://github.com/iotaledger/twin-dataspace/commit/544e20e640d6f09266942bfc698aead6227a7769))
|
|
30
|
+
* improve open-api examples ([1368dbe](https://github.com/iotaledger/twin-dataspace/commit/1368dbed5c36e074b4854942304a19b9ce51e088))
|
|
31
|
+
* improve validation ([#82](https://github.com/iotaledger/twin-dataspace/issues/82)) ([8bfaf7b](https://github.com/iotaledger/twin-dataspace/commit/8bfaf7b830f89b63575f8a51ee96bd8ac4da02f4))
|
|
32
|
+
* linting and dependency update ([adf8ee0](https://github.com/iotaledger/twin-dataspace/commit/adf8ee04f657f22fb051978591749a4cf19d67a1))
|
|
33
|
+
* organization identifiers ([#188](https://github.com/iotaledger/twin-dataspace/issues/188)) ([af643d3](https://github.com/iotaledger/twin-dataspace/commit/af643d3bb7f212d6cbb672e362a9e1bbe886d1a5))
|
|
34
|
+
* provider-side idle lifecycle policy for STARTED data transfers ([#284](https://github.com/iotaledger/twin-dataspace/issues/284)) ([a9312ef](https://github.com/iotaledger/twin-dataspace/commit/a9312ef7573a92805c99cb2a314e8b289a6ab195))
|
|
35
|
+
* provider-side transfer auto-start and negotiation/transfer timeout callbacks ([#227](https://github.com/iotaledger/twin-dataspace/issues/227)) ([619d858](https://github.com/iotaledger/twin-dataspace/commit/619d858e8d44e59744dc8a0f73e06be976932b53))
|
|
36
|
+
* query existing data transfers by agreement to avoid duplicate preparations ([#289](https://github.com/iotaledger/twin-dataspace/issues/289)) ([53fe251](https://github.com/iotaledger/twin-dataspace/commit/53fe2516b2287b6b6a7a6ca6fc6063ea4a446cf0))
|
|
37
|
+
* reduce engine clone overhead in app runner ([#381](https://github.com/iotaledger/twin-dataspace/issues/381)) ([87aacd4](https://github.com/iotaledger/twin-dataspace/commit/87aacd4d18c5d40b21810331212aa4aa598c185e))
|
|
38
|
+
* remove datasetsHandled method from apps ([9fdc950](https://github.com/iotaledger/twin-dataspace/commit/9fdc95018d38ab49c4a1094642be2ee83ee0e4cd))
|
|
39
|
+
* remove hosting component ([#209](https://github.com/iotaledger/twin-dataspace/issues/209)) ([5e19328](https://github.com/iotaledger/twin-dataspace/commit/5e1932823aa8a0f88f559f096610b9df1f3b8615))
|
|
40
|
+
* rename completed callback ([#147](https://github.com/iotaledger/twin-dataspace/issues/147)) ([f62baad](https://github.com/iotaledger/twin-dataspace/commit/f62baad0ff444e2913439b12dcd06d20c9a4f6a4))
|
|
41
|
+
* resolve DSP transfer flow bugs for cross-node communication ([#76](https://github.com/iotaledger/twin-dataspace/issues/76)) ([506a45c](https://github.com/iotaledger/twin-dataspace/commit/506a45c94e63d5f958b1fc7131adfe452c3e2974))
|
|
42
|
+
* shortcut implicit trust ([#215](https://github.com/iotaledger/twin-dataspace/issues/215)) ([f9bcfea](https://github.com/iotaledger/twin-dataspace/commit/f9bcfeab8f069b62017502833c108b4ee3791414))
|
|
43
|
+
* transfer process remove inline agreement ([#340](https://github.com/iotaledger/twin-dataspace/issues/340)) ([332eaf6](https://github.com/iotaledger/twin-dataspace/commit/332eaf67e5cf0b13545d013d107658b232ae32ff))
|
|
44
|
+
* types update ([77c338e](https://github.com/iotaledger/twin-dataspace/commit/77c338e9244dcc7e3d597fdb06229513b1f13eac))
|
|
45
|
+
* typescript 6 update ([340f10e](https://github.com/iotaledger/twin-dataspace/commit/340f10e4767f6285c694938944f7e044474f9aaa))
|
|
46
|
+
* unification of the data exchange and the data space connector ([#57](https://github.com/iotaledger/twin-dataspace/issues/57)) ([df2644d](https://github.com/iotaledger/twin-dataspace/commit/df2644d989471e07dadd83d27bef736179e31bf4))
|
|
47
|
+
* update DataspaceTransferFormat names ([2c9d424](https://github.com/iotaledger/twin-dataspace/commit/2c9d424a07b97346faa2124048c4675514d58109))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* always verify trust in notifyActivity, no internal by ([#192](https://github.com/iotaledger/twin-dataspace/issues/192)) ([2cfc160](https://github.com/iotaledger/twin-dataspace/commit/2cfc16082a7c9d417f0b05f90f123e40f47d1e05))
|
|
53
|
+
* avoid compaction of incoming activities ([#77](https://github.com/iotaledger/twin-dataspace/issues/77)) ([ff43d6a](https://github.com/iotaledger/twin-dataspace/commit/ff43d6a3e1563eb9cb185501134b2a53ae88787c))
|
|
54
|
+
* docs ([652f4f2](https://github.com/iotaledger/twin-dataspace/commit/652f4f2fec8601bb3772e054b2c823f599ef68dc))
|
|
55
|
+
* filtering query optional q ([#248](https://github.com/iotaledger/twin-dataspace/issues/248)) ([e9e8ff1](https://github.com/iotaledger/twin-dataspace/commit/e9e8ff1e1bb3b93f0960260c21a46d6f58dbfaa2))
|
|
56
|
+
* get activity log auth ([#343](https://github.com/iotaledger/twin-dataspace/issues/343)) ([9514679](https://github.com/iotaledger/twin-dataspace/commit/95146790ccf7b54fd5dce923af64fdaa607ca555))
|
|
57
|
+
* implement missing trust check on negotiateAgreement ([#136](https://github.com/iotaledger/twin-dataspace/issues/136)) ([a3589c2](https://github.com/iotaledger/twin-dataspace/commit/a3589c279476d5450b68ea7c2790be7e3125bfe2))
|
|
58
|
+
* keep one TransferProcess record per role in self transfers ([#321](https://github.com/iotaledger/twin-dataspace/issues/321)) ([91ccc87](https://github.com/iotaledger/twin-dataspace/commit/91ccc87e47d94c6a015e3f974f0dd4cf680c4603))
|
|
59
|
+
* missing dependencies ([54e9e9c](https://github.com/iotaledger/twin-dataspace/commit/54e9e9c474b61cce3b9a82f9ccec27c7f8133382))
|
|
60
|
+
* retain cursor after pep enforcement ([#296](https://github.com/iotaledger/twin-dataspace/issues/296)) ([5198cd2](https://github.com/iotaledger/twin-dataspace/commit/5198cd29505ceffa532fa4fa18c97a5c8e78f663))
|
|
61
|
+
* return 422/500 when inline activity processing fails ([#135](https://github.com/iotaledger/twin-dataspace/issues/135)) ([8635187](https://github.com/iotaledger/twin-dataspace/commit/863518724cb90af15edc5f456d9a93c6cad7d661))
|
|
62
|
+
* throw not supported error for in-process only control plane methods ([#185](https://github.com/iotaledger/twin-dataspace/issues/185)) ([130f00a](https://github.com/iotaledger/twin-dataspace/commit/130f00a87412b34defde891855bee7aa3ac34130))
|
|
63
|
+
|
|
3
64
|
## [0.10.0](https://github.com/iotaledger/twin-dataspace/compare/dataspace-models-v0.10.0...dataspace-models-v0.10.0) (2026-09-16)
|
|
4
65
|
|
|
5
66
|
|
|
@@ -26,3 +26,13 @@ defaults to 0 for immediate shutdown, set to -1 to keep workers alive.
|
|
|
26
26
|
> `optional` **retryCount?**: `number`
|
|
27
27
|
|
|
28
28
|
The number of times a task in this processing group should be retried in case of failure.
|
|
29
|
+
|
|
30
|
+
***
|
|
31
|
+
|
|
32
|
+
### excludeCloneComponents? {#excludeclonecomponents}
|
|
33
|
+
|
|
34
|
+
> `optional` **excludeCloneComponents?**: `string`[]
|
|
35
|
+
|
|
36
|
+
The component types to exclude from the engine clone used by the workers of this processing group.
|
|
37
|
+
Each entry is a regular expression matched against the engine config type keys, for example
|
|
38
|
+
"^rightsManagement"; entries the engine marks as always cloned are kept even when their key matches.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/dataspace-models",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1-next.2",
|
|
4
4
|
"description": "Defines shared entities, interfaces, and data types used by control plane and data plane components.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
"node": ">=24.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/background-task-models": "
|
|
18
|
-
"@twin.org/core": "
|
|
19
|
-
"@twin.org/data-core": "
|
|
20
|
-
"@twin.org/data-json-ld": "
|
|
21
|
-
"@twin.org/entity": "
|
|
22
|
-
"@twin.org/nameof": "
|
|
23
|
-
"@twin.org/rights-management-models": "
|
|
24
|
-
"@twin.org/standards-dataspace-protocol": "
|
|
25
|
-
"@twin.org/standards-schema-org": "
|
|
26
|
-
"@twin.org/standards-w3c-activity-streams": "
|
|
27
|
-
"@twin.org/standards-w3c-dcat": "
|
|
28
|
-
"@twin.org/standards-w3c-odrl": "
|
|
29
|
-
"@twin.org/telemetry-models": "
|
|
30
|
-
"@twin.org/web": "
|
|
17
|
+
"@twin.org/background-task-models": "next",
|
|
18
|
+
"@twin.org/core": "next",
|
|
19
|
+
"@twin.org/data-core": "next",
|
|
20
|
+
"@twin.org/data-json-ld": "next",
|
|
21
|
+
"@twin.org/entity": "next",
|
|
22
|
+
"@twin.org/nameof": "next",
|
|
23
|
+
"@twin.org/rights-management-models": "next",
|
|
24
|
+
"@twin.org/standards-dataspace-protocol": "next",
|
|
25
|
+
"@twin.org/standards-schema-org": "next",
|
|
26
|
+
"@twin.org/standards-w3c-activity-streams": "next",
|
|
27
|
+
"@twin.org/standards-w3c-dcat": "next",
|
|
28
|
+
"@twin.org/standards-w3c-odrl": "next",
|
|
29
|
+
"@twin.org/telemetry-models": "next",
|
|
30
|
+
"@twin.org/web": "next"
|
|
31
31
|
},
|
|
32
32
|
"main": "./dist/es/index.js",
|
|
33
33
|
"types": "./dist/types/index.d.ts",
|