@twin.org/dataspace-models 0.0.3-next.25 → 0.0.3-next.27
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 +76 -0
- package/dist/es/entities/dataspaceAppDataset.js.map +1 -0
- package/dist/es/index.js +24 -11
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IActivityLogDetails.js.map +1 -1
- package/dist/es/models/IActivityLogEntry.js.map +1 -1
- package/dist/es/models/IActivityTask.js.map +1 -1
- package/dist/es/models/{IActivityLogDates.js → IActivityTaskEntry.js} +1 -1
- package/dist/es/models/IActivityTaskEntry.js.map +1 -0
- package/dist/es/models/IExecutionPayload.js.map +1 -1
- package/dist/es/models/activityTaskStatus.js +25 -0
- package/dist/es/models/activityTaskStatus.js.map +1 -0
- package/dist/es/models/api/IActivityStreamNotifyResponse.js +2 -0
- package/dist/es/models/api/IActivityStreamNotifyResponse.js.map +1 -0
- package/dist/es/models/api/controlPlane/IAppDatasetCreateRequest.js +2 -0
- package/dist/es/models/api/controlPlane/IAppDatasetCreateRequest.js.map +1 -0
- package/dist/es/models/api/controlPlane/IAppDatasetCreateResponse.js +2 -0
- package/dist/es/models/api/controlPlane/IAppDatasetCreateResponse.js.map +1 -0
- package/dist/es/models/api/controlPlane/IAppDatasetDeleteRequest.js +4 -0
- package/dist/es/models/api/controlPlane/IAppDatasetDeleteRequest.js.map +1 -0
- package/dist/es/models/{ITaskApp.js → api/controlPlane/IAppDatasetGetRequest.js} +1 -1
- package/dist/es/models/api/controlPlane/IAppDatasetGetRequest.js.map +1 -0
- package/dist/es/models/api/controlPlane/IAppDatasetGetResponse.js +2 -0
- package/dist/es/models/api/controlPlane/IAppDatasetGetResponse.js.map +1 -0
- package/dist/es/models/api/controlPlane/IAppDatasetListRequest.js +4 -0
- package/dist/es/models/api/controlPlane/IAppDatasetListRequest.js.map +1 -0
- package/dist/es/models/api/controlPlane/IAppDatasetListResponse.js +2 -0
- package/dist/es/models/api/controlPlane/IAppDatasetListResponse.js.map +1 -0
- package/dist/es/models/api/controlPlane/IAppDatasetUpdateRequest.js +2 -0
- package/dist/es/models/api/controlPlane/IAppDatasetUpdateRequest.js.map +1 -0
- package/dist/es/models/app/IActivityQuery.js.map +1 -1
- package/dist/es/models/app/IDataspaceApp.js.map +1 -1
- package/dist/es/models/app/IProcessingGroupOptions.js +4 -0
- package/dist/es/models/app/IProcessingGroupOptions.js.map +1 -0
- package/dist/es/models/controlPlane/IDataspaceAppDataset.js +2 -0
- package/dist/es/models/controlPlane/IDataspaceAppDataset.js.map +1 -0
- package/dist/es/models/controlPlane/IDataspaceControlPlaneComponent.js.map +1 -1
- package/dist/es/models/dataPlane/IDataspaceDataPlaneComponent.js.map +1 -1
- package/dist/es/models/dataspaceTransferFormat.js +28 -0
- package/dist/es/models/dataspaceTransferFormat.js.map +1 -0
- package/dist/es/models/dataspaceTypes.js +3 -0
- package/dist/es/models/dataspaceTypes.js.map +1 -1
- package/dist/types/entities/dataspaceAppDataset.d.ts +42 -0
- package/dist/types/index.d.ts +24 -11
- package/dist/types/models/IActivityLogDetails.d.ts +0 -4
- package/dist/types/models/IActivityLogEntry.d.ts +3 -27
- package/dist/types/models/IActivityTask.d.ts +2 -2
- package/dist/types/models/IActivityTaskEntry.d.ts +39 -0
- package/dist/types/models/IExecutionPayload.d.ts +2 -2
- package/dist/types/models/activityTaskStatus.d.ts +25 -0
- package/dist/types/models/api/IActivityStreamNotifyResponse.d.ts +23 -0
- package/dist/types/models/api/controlPlane/IAppDatasetCreateRequest.d.ts +31 -0
- package/dist/types/models/api/controlPlane/IAppDatasetCreateResponse.d.ts +16 -0
- package/dist/types/models/api/controlPlane/IAppDatasetDeleteRequest.d.ts +14 -0
- package/dist/types/models/api/controlPlane/IAppDatasetGetRequest.d.ts +14 -0
- package/dist/types/models/api/controlPlane/IAppDatasetGetResponse.d.ts +10 -0
- package/dist/types/models/api/controlPlane/IAppDatasetListRequest.d.ts +18 -0
- package/dist/types/models/api/controlPlane/IAppDatasetListResponse.d.ts +19 -0
- package/dist/types/models/api/controlPlane/IAppDatasetUpdateRequest.d.ts +29 -0
- package/dist/types/models/app/IActivityQuery.d.ts +4 -0
- package/dist/types/models/app/IDataspaceApp.d.ts +17 -3
- package/dist/types/models/app/IProcessingGroupOptions.d.ts +18 -0
- package/dist/types/models/controlPlane/IDataspaceAppDataset.d.ts +26 -0
- package/dist/types/models/controlPlane/IDataspaceControlPlaneComponent.d.ts +42 -1
- package/dist/types/models/dataPlane/IDataspaceDataPlaneComponent.d.ts +2 -2
- package/dist/types/models/dataspaceTransferFormat.d.ts +28 -0
- package/dist/types/models/dataspaceTypes.d.ts +3 -0
- package/docs/changelog.md +81 -66
- package/docs/reference/classes/DataspaceAppDataset.md +80 -0
- package/docs/reference/index.md +17 -2
- package/docs/reference/interfaces/IActivityLogDetails.md +0 -8
- package/docs/reference/interfaces/IActivityLogEntry.md +3 -39
- package/docs/reference/interfaces/IActivityQuery.md +8 -0
- package/docs/reference/interfaces/IActivityStreamNotifyResponse.md +33 -0
- package/docs/reference/interfaces/IActivityTask.md +1 -1
- package/docs/reference/interfaces/IActivityTaskEntry.md +67 -0
- package/docs/reference/interfaces/IAppDatasetCreateRequest.md +37 -0
- package/docs/reference/interfaces/IAppDatasetCreateResponse.md +23 -0
- package/docs/reference/interfaces/IAppDatasetDeleteRequest.md +17 -0
- package/docs/reference/interfaces/IAppDatasetGetRequest.md +17 -0
- package/docs/reference/interfaces/IAppDatasetGetResponse.md +11 -0
- package/docs/reference/interfaces/IAppDatasetListRequest.md +23 -0
- package/docs/reference/interfaces/IAppDatasetListResponse.md +23 -0
- package/docs/reference/interfaces/IAppDatasetUpdateRequest.md +38 -0
- package/docs/reference/interfaces/IDataspaceApp.md +36 -4
- package/docs/reference/interfaces/IDataspaceAppDataset.md +43 -0
- package/docs/reference/interfaces/IDataspaceControlPlaneComponent.md +142 -0
- package/docs/reference/interfaces/IDataspaceDataPlaneComponent.md +3 -3
- package/docs/reference/interfaces/IExecutionPayload.md +3 -3
- package/docs/reference/interfaces/IProcessingGroupOptions.md +28 -0
- package/docs/reference/type-aliases/ActivityTaskStatus.md +5 -0
- package/docs/reference/type-aliases/DataspaceTransferFormat.md +5 -0
- package/docs/reference/variables/ActivityTaskStatus.md +31 -0
- package/docs/reference/variables/DataspaceTransferFormat.md +32 -0
- package/docs/reference/variables/DataspaceTypes.md +2 -0
- package/package.json +3 -3
- package/dist/es/models/IActivityLogDates.js.map +0 -1
- package/dist/es/models/ITaskApp.js.map +0 -1
- package/dist/types/models/IActivityLogDates.d.ts +0 -13
- package/dist/types/models/ITaskApp.d.ts +0 -13
- package/docs/reference/interfaces/IActivityLogDates.md +0 -19
- package/docs/reference/interfaces/ITaskApp.md +0 -19
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Interface: IActivityTaskEntry
|
|
2
|
+
|
|
3
|
+
Denotes a task associated with a Dataspace App
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### taskId {#taskid}
|
|
8
|
+
|
|
9
|
+
> **taskId**: `string`
|
|
10
|
+
|
|
11
|
+
Task Id.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### dataspaceAppId {#dataspaceappid}
|
|
16
|
+
|
|
17
|
+
> **dataspaceAppId**: `string`
|
|
18
|
+
|
|
19
|
+
Dataspace App Id.
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### status {#status}
|
|
24
|
+
|
|
25
|
+
> **status**: [`ActivityTaskStatus`](../type-aliases/ActivityTaskStatus.md)
|
|
26
|
+
|
|
27
|
+
Task status.
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### processingGroupId? {#processinggroupid}
|
|
32
|
+
|
|
33
|
+
> `optional` **processingGroupId?**: `string`
|
|
34
|
+
|
|
35
|
+
Processing Group Id.
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### startDate? {#startdate}
|
|
40
|
+
|
|
41
|
+
> `optional` **startDate?**: `string`
|
|
42
|
+
|
|
43
|
+
Task processing start timestamp
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### endDate? {#enddate}
|
|
48
|
+
|
|
49
|
+
> `optional` **endDate?**: `string`
|
|
50
|
+
|
|
51
|
+
Task processing end timestamp
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### result? {#result}
|
|
56
|
+
|
|
57
|
+
> `optional` **result?**: `unknown`
|
|
58
|
+
|
|
59
|
+
The result of the task processing, if completed.
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### error? {#error}
|
|
64
|
+
|
|
65
|
+
> `optional` **error?**: `IError`
|
|
66
|
+
|
|
67
|
+
The error occurred during task processing, if any.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Interface: IAppDatasetCreateRequest
|
|
2
|
+
|
|
3
|
+
API request to register an app dataset.
|
|
4
|
+
|
|
5
|
+
The owning `tenantId` is captured automatically from the request's tenant
|
|
6
|
+
context — callers do not supply it.
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
### body {#body}
|
|
11
|
+
|
|
12
|
+
> **body**: `object`
|
|
13
|
+
|
|
14
|
+
The body of the request.
|
|
15
|
+
|
|
16
|
+
#### id?
|
|
17
|
+
|
|
18
|
+
> `optional` **id?**: `string`
|
|
19
|
+
|
|
20
|
+
Optional explicit id for the stored dataset record. If omitted, the
|
|
21
|
+
Control Plane derives the id from `dataset["@id"]` if present, or
|
|
22
|
+
generates a UUID otherwise. The resolved id is returned via the
|
|
23
|
+
`Location` response header.
|
|
24
|
+
|
|
25
|
+
#### appId
|
|
26
|
+
|
|
27
|
+
> **appId**: `string`
|
|
28
|
+
|
|
29
|
+
The dataspace app this dataset belongs to. Matches the app's
|
|
30
|
+
registered name in `DataspaceAppFactory` (typically the app's URI).
|
|
31
|
+
|
|
32
|
+
#### dataset
|
|
33
|
+
|
|
34
|
+
> **dataset**: `IDataspaceProtocolDataset`
|
|
35
|
+
|
|
36
|
+
The dataset payload. System-stamped fields like `dcterms:publisher`
|
|
37
|
+
may be omitted — the Control Plane fills them in at publish time.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IAppDatasetCreateResponse
|
|
2
|
+
|
|
3
|
+
API response from registering an app dataset.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers {#headers}
|
|
8
|
+
|
|
9
|
+
> **headers**: `object`
|
|
10
|
+
|
|
11
|
+
The headers of the response, including the location of the new app dataset.
|
|
12
|
+
|
|
13
|
+
#### location
|
|
14
|
+
|
|
15
|
+
> **location**: `string`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### statusCode {#statuscode}
|
|
20
|
+
|
|
21
|
+
> **statusCode**: `HttpStatusCode`
|
|
22
|
+
|
|
23
|
+
HTTP status code (201 on success).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Interface: IAppDatasetDeleteRequest
|
|
2
|
+
|
|
3
|
+
API request to delete a stored app dataset record.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
Path parameters containing the stored dataset id.
|
|
12
|
+
|
|
13
|
+
#### id
|
|
14
|
+
|
|
15
|
+
> **id**: `string`
|
|
16
|
+
|
|
17
|
+
The stored dataset id.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Interface: IAppDatasetGetRequest
|
|
2
|
+
|
|
3
|
+
API request to fetch a single app dataset record.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
Path parameters containing the stored app dataset id.
|
|
12
|
+
|
|
13
|
+
#### id
|
|
14
|
+
|
|
15
|
+
> **id**: `string`
|
|
16
|
+
|
|
17
|
+
The stored app dataset id (entity primary key).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IAppDatasetListRequest
|
|
2
|
+
|
|
3
|
+
API request to list the app datasets owned by the calling tenant.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### query? {#query}
|
|
8
|
+
|
|
9
|
+
> `optional` **query?**: `object`
|
|
10
|
+
|
|
11
|
+
Query parameters for paging. Always strings on the wire.
|
|
12
|
+
|
|
13
|
+
#### cursor?
|
|
14
|
+
|
|
15
|
+
> `optional` **cursor?**: `string`
|
|
16
|
+
|
|
17
|
+
Cursor returned from a previous list call to fetch the next page.
|
|
18
|
+
|
|
19
|
+
#### limit?
|
|
20
|
+
|
|
21
|
+
> `optional` **limit?**: `string`
|
|
22
|
+
|
|
23
|
+
Maximum number of entries to return (string-encoded; parsed on the server).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IAppDatasetListResponse
|
|
2
|
+
|
|
3
|
+
API response listing the app datasets owned by the calling tenant.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### body {#body}
|
|
8
|
+
|
|
9
|
+
> **body**: `object`
|
|
10
|
+
|
|
11
|
+
The body of the response.
|
|
12
|
+
|
|
13
|
+
#### entities
|
|
14
|
+
|
|
15
|
+
> **entities**: [`IDataspaceAppDataset`](IDataspaceAppDataset.md)[]
|
|
16
|
+
|
|
17
|
+
The stored datasets.
|
|
18
|
+
|
|
19
|
+
#### cursor?
|
|
20
|
+
|
|
21
|
+
> `optional` **cursor?**: `string`
|
|
22
|
+
|
|
23
|
+
Cursor to fetch the next page if more entries exist.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Interface: IAppDatasetUpdateRequest
|
|
2
|
+
|
|
3
|
+
API request to update an existing app dataset record.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
Path parameters containing the stored app dataset id.
|
|
12
|
+
|
|
13
|
+
#### id
|
|
14
|
+
|
|
15
|
+
> **id**: `string`
|
|
16
|
+
|
|
17
|
+
The stored app dataset id.
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### body {#body}
|
|
22
|
+
|
|
23
|
+
> **body**: `object`
|
|
24
|
+
|
|
25
|
+
The body of the request.
|
|
26
|
+
|
|
27
|
+
#### appId
|
|
28
|
+
|
|
29
|
+
> **appId**: `string`
|
|
30
|
+
|
|
31
|
+
The dataspace app this dataset belongs to. May change appId on
|
|
32
|
+
update if the tenant wants to retarget the dataset.
|
|
33
|
+
|
|
34
|
+
#### dataset
|
|
35
|
+
|
|
36
|
+
> **dataset**: `IDataspaceProtocolDataset`
|
|
37
|
+
|
|
38
|
+
The dataset payload.
|
|
@@ -8,6 +8,20 @@ Interface describes a Dataspace App.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
+
### processingGroups()? {#processinggroups}
|
|
12
|
+
|
|
13
|
+
> `optional` **processingGroups**(): `object`
|
|
14
|
+
|
|
15
|
+
The settings for the processing groups for tasks.
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`object`
|
|
20
|
+
|
|
21
|
+
The options for each process group.
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
11
25
|
### activitiesHandled() {#activitieshandled}
|
|
12
26
|
|
|
13
27
|
> **activitiesHandled**(): [`IActivityQuery`](IActivityQuery.md)[]
|
|
@@ -22,17 +36,35 @@ A query that describes the set of activities handled by the App.
|
|
|
22
36
|
|
|
23
37
|
***
|
|
24
38
|
|
|
25
|
-
### datasetsHandled() {#datasetshandled}
|
|
39
|
+
### datasetsHandled()? {#datasetshandled}
|
|
26
40
|
|
|
27
|
-
> **datasetsHandled**(): `Promise`\<`IDataspaceProtocolDataset`[]\>
|
|
41
|
+
> `optional` **datasetsHandled**(`payload`, `tenantId`): `Promise`\<`IDataspaceProtocolDataset`[]\>
|
|
42
|
+
|
|
43
|
+
Optional override called by the Control Plane when publishing a stored dataset for this app.
|
|
44
|
+
The Control Plane always calls `populateDefaults` (e.g. `dcterms:publisher`)
|
|
45
|
+
on every dataset returned here, so apps don't need to populate publisher themselves.
|
|
46
|
+
|
|
47
|
+
#### Parameters
|
|
48
|
+
|
|
49
|
+
##### payload
|
|
50
|
+
|
|
51
|
+
`IDataspaceProtocolDataset`
|
|
52
|
+
|
|
53
|
+
The user-stored dataset payload.
|
|
54
|
+
|
|
55
|
+
##### tenantId
|
|
56
|
+
|
|
57
|
+
`string`
|
|
28
58
|
|
|
29
|
-
The
|
|
59
|
+
The owning tenant for this dataset. Empty string on
|
|
60
|
+
single-tenant nodes (no `TWIN_TENANT_ENABLED`).
|
|
30
61
|
|
|
31
62
|
#### Returns
|
|
32
63
|
|
|
33
64
|
`Promise`\<`IDataspaceProtocolDataset`[]\>
|
|
34
65
|
|
|
35
|
-
|
|
66
|
+
One or more datasets to publish to the catalogue. System-stamped
|
|
67
|
+
fields like `dcterms:publisher` may be omitted — the Control Plane fills them in.
|
|
36
68
|
|
|
37
69
|
***
|
|
38
70
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Interface: IDataspaceAppDataset
|
|
2
|
+
|
|
3
|
+
Stored dataset record returned by the Control Plane's dataset CRUD surface.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### id {#id}
|
|
8
|
+
|
|
9
|
+
> **id**: `string`
|
|
10
|
+
|
|
11
|
+
The stored dataset id (matches the dataset's JSON-LD `@id`).
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### appId {#appid}
|
|
16
|
+
|
|
17
|
+
> **appId**: `string`
|
|
18
|
+
|
|
19
|
+
The dataspace app this dataset belongs to.
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### dataset {#dataset}
|
|
24
|
+
|
|
25
|
+
> **dataset**: `IDataspaceProtocolDataset`
|
|
26
|
+
|
|
27
|
+
The dataset payload.
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### dateCreated {#datecreated}
|
|
32
|
+
|
|
33
|
+
> **dateCreated**: `string`
|
|
34
|
+
|
|
35
|
+
Creation timestamp (ISO string).
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### dateModified {#datemodified}
|
|
40
|
+
|
|
41
|
+
> **dateModified**: `string`
|
|
42
|
+
|
|
43
|
+
Last-modified timestamp (ISO string).
|
|
@@ -406,3 +406,145 @@ Trust payload containing authorization information (JWT, VC, etc.).
|
|
|
406
406
|
`Promise`\<`IDataspaceProtocolTransferProcess` \| `IDataspaceProtocolTransferError`\>
|
|
407
407
|
|
|
408
408
|
Transfer Process (DSP compliant) with current state, or TransferError if the operation fails.
|
|
409
|
+
|
|
410
|
+
***
|
|
411
|
+
|
|
412
|
+
### createAppDataset() {#createappdataset}
|
|
413
|
+
|
|
414
|
+
> **createAppDataset**(`id`, `appId`, `dataset`): `Promise`\<`string`\>
|
|
415
|
+
|
|
416
|
+
Register an app dataset for a dataspace app, owned by the calling tenant.
|
|
417
|
+
|
|
418
|
+
#### Parameters
|
|
419
|
+
|
|
420
|
+
##### id
|
|
421
|
+
|
|
422
|
+
`string` \| `undefined`
|
|
423
|
+
|
|
424
|
+
Optional explicit id. If omitted, derived from `dataset["@id"]`
|
|
425
|
+
or generated.
|
|
426
|
+
|
|
427
|
+
##### appId
|
|
428
|
+
|
|
429
|
+
`string`
|
|
430
|
+
|
|
431
|
+
The dataspace app this dataset belongs to (matches
|
|
432
|
+
`DataspaceAppFactory` registration name).
|
|
433
|
+
|
|
434
|
+
##### dataset
|
|
435
|
+
|
|
436
|
+
`IDataspaceProtocolDataset`
|
|
437
|
+
|
|
438
|
+
The dataset payload (may omit system-stamped fields).
|
|
439
|
+
|
|
440
|
+
#### Returns
|
|
441
|
+
|
|
442
|
+
`Promise`\<`string`\>
|
|
443
|
+
|
|
444
|
+
The resolved dataset id.
|
|
445
|
+
|
|
446
|
+
***
|
|
447
|
+
|
|
448
|
+
### getAppDataset() {#getappdataset}
|
|
449
|
+
|
|
450
|
+
> **getAppDataset**(`id`): `Promise`\<[`IDataspaceAppDataset`](IDataspaceAppDataset.md)\>
|
|
451
|
+
|
|
452
|
+
Get an app dataset record owned by the calling tenant.
|
|
453
|
+
|
|
454
|
+
#### Parameters
|
|
455
|
+
|
|
456
|
+
##### id
|
|
457
|
+
|
|
458
|
+
`string`
|
|
459
|
+
|
|
460
|
+
The stored app dataset id.
|
|
461
|
+
|
|
462
|
+
#### Returns
|
|
463
|
+
|
|
464
|
+
`Promise`\<[`IDataspaceAppDataset`](IDataspaceAppDataset.md)\>
|
|
465
|
+
|
|
466
|
+
The stored app dataset record.
|
|
467
|
+
|
|
468
|
+
***
|
|
469
|
+
|
|
470
|
+
### listAppDatasets() {#listappdatasets}
|
|
471
|
+
|
|
472
|
+
> **listAppDatasets**(`cursor?`, `limit?`): `Promise`\<\{ `entities`: [`IDataspaceAppDataset`](IDataspaceAppDataset.md)[]; `cursor?`: `string`; \}\>
|
|
473
|
+
|
|
474
|
+
List the app datasets owned by the calling tenant.
|
|
475
|
+
|
|
476
|
+
#### Parameters
|
|
477
|
+
|
|
478
|
+
##### cursor?
|
|
479
|
+
|
|
480
|
+
`string`
|
|
481
|
+
|
|
482
|
+
Optional pagination cursor.
|
|
483
|
+
|
|
484
|
+
##### limit?
|
|
485
|
+
|
|
486
|
+
`number`
|
|
487
|
+
|
|
488
|
+
Optional maximum number of entries to return.
|
|
489
|
+
|
|
490
|
+
#### Returns
|
|
491
|
+
|
|
492
|
+
`Promise`\<\{ `entities`: [`IDataspaceAppDataset`](IDataspaceAppDataset.md)[]; `cursor?`: `string`; \}\>
|
|
493
|
+
|
|
494
|
+
The stored app datasets and the next-page cursor if more exist.
|
|
495
|
+
|
|
496
|
+
***
|
|
497
|
+
|
|
498
|
+
### updateAppDataset() {#updateappdataset}
|
|
499
|
+
|
|
500
|
+
> **updateAppDataset**(`id`, `appId`, `dataset`): `Promise`\<`void`\>
|
|
501
|
+
|
|
502
|
+
Update an app dataset record owned by the calling tenant.
|
|
503
|
+
|
|
504
|
+
#### Parameters
|
|
505
|
+
|
|
506
|
+
##### id
|
|
507
|
+
|
|
508
|
+
`string`
|
|
509
|
+
|
|
510
|
+
The stored app dataset id.
|
|
511
|
+
|
|
512
|
+
##### appId
|
|
513
|
+
|
|
514
|
+
`string`
|
|
515
|
+
|
|
516
|
+
The dataspace app this dataset belongs to.
|
|
517
|
+
|
|
518
|
+
##### dataset
|
|
519
|
+
|
|
520
|
+
`IDataspaceProtocolDataset`
|
|
521
|
+
|
|
522
|
+
The dataset payload.
|
|
523
|
+
|
|
524
|
+
#### Returns
|
|
525
|
+
|
|
526
|
+
`Promise`\<`void`\>
|
|
527
|
+
|
|
528
|
+
Nothing.
|
|
529
|
+
|
|
530
|
+
***
|
|
531
|
+
|
|
532
|
+
### deleteAppDataset() {#deleteappdataset}
|
|
533
|
+
|
|
534
|
+
> **deleteAppDataset**(`id`): `Promise`\<`void`\>
|
|
535
|
+
|
|
536
|
+
Delete an app dataset record owned by the calling tenant.
|
|
537
|
+
|
|
538
|
+
#### Parameters
|
|
539
|
+
|
|
540
|
+
##### id
|
|
541
|
+
|
|
542
|
+
`string`
|
|
543
|
+
|
|
544
|
+
The stored app dataset id.
|
|
545
|
+
|
|
546
|
+
#### Returns
|
|
547
|
+
|
|
548
|
+
`Promise`\<`void`\>
|
|
549
|
+
|
|
550
|
+
Nothing.
|
|
@@ -11,7 +11,7 @@ Implements the Data Plane functionality for the Eclipse Dataspace Protocol.
|
|
|
11
11
|
|
|
12
12
|
### notifyActivity() {#notifyactivity}
|
|
13
13
|
|
|
14
|
-
> **notifyActivity**(`activity`): `Promise`\<`string
|
|
14
|
+
> **notifyActivity**(`activity`): `Promise`\<`string` \| [`IActivityLogEntry`](IActivityLogEntry.md)\>
|
|
15
15
|
|
|
16
16
|
Notify an Activity to the Dataspace Data Plane Activity Stream.
|
|
17
17
|
|
|
@@ -25,9 +25,9 @@ The Activity notified.
|
|
|
25
25
|
|
|
26
26
|
#### Returns
|
|
27
27
|
|
|
28
|
-
`Promise`\<`string
|
|
28
|
+
`Promise`\<`string` \| [`IActivityLogEntry`](IActivityLogEntry.md)\>
|
|
29
29
|
|
|
30
|
-
The
|
|
30
|
+
The activity's entry.
|
|
31
31
|
|
|
32
32
|
***
|
|
33
33
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Interface: IProcessingGroupOptions
|
|
2
|
+
|
|
3
|
+
Interface describes the options for a processing group, which determines how many tasks can be processed in parallel for a given group of activities.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### concurrentTasks? {#concurrenttasks}
|
|
8
|
+
|
|
9
|
+
> `optional` **concurrentTasks?**: `number`
|
|
10
|
+
|
|
11
|
+
The number of concurrent tasks that can be processed for this processing group.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### idleShutdownTimeout? {#idleshutdowntimeout}
|
|
16
|
+
|
|
17
|
+
> `optional` **idleShutdownTimeout?**: `number`
|
|
18
|
+
|
|
19
|
+
Terminate the worker after it has been idle for the specified timeout in milliseconds,
|
|
20
|
+
defaults to 0 for immediate shutdown, set to -1 to keep workers alive.
|
|
21
|
+
|
|
22
|
+
***
|
|
23
|
+
|
|
24
|
+
### retryCount? {#retrycount}
|
|
25
|
+
|
|
26
|
+
> `optional` **retryCount?**: `number`
|
|
27
|
+
|
|
28
|
+
The number of times a task in this processing group should be retried in case of failure.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: DataspaceTransferFormat
|
|
2
|
+
|
|
3
|
+
> **DataspaceTransferFormat** = *typeof* [`DataspaceTransferFormat`](../variables/DataspaceTransferFormat.md)\[keyof *typeof* [`DataspaceTransferFormat`](../variables/DataspaceTransferFormat.md)\]
|
|
4
|
+
|
|
5
|
+
Type for the DataspaceTransferFormat const values.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Variable: ActivityTaskStatus
|
|
2
|
+
|
|
3
|
+
> `const` **ActivityTaskStatus**: `object`
|
|
4
|
+
|
|
5
|
+
Activity task statuses.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### Pending {#pending}
|
|
10
|
+
|
|
11
|
+
> `readonly` **Pending**: `"pending"` = `"pending"`
|
|
12
|
+
|
|
13
|
+
Pending.
|
|
14
|
+
|
|
15
|
+
### Processing {#processing}
|
|
16
|
+
|
|
17
|
+
> `readonly` **Processing**: `"processing"` = `"processing"`
|
|
18
|
+
|
|
19
|
+
Processing.
|
|
20
|
+
|
|
21
|
+
### Success {#success}
|
|
22
|
+
|
|
23
|
+
> `readonly` **Success**: `"success"` = `"success"`
|
|
24
|
+
|
|
25
|
+
Success.
|
|
26
|
+
|
|
27
|
+
### Failed {#failed}
|
|
28
|
+
|
|
29
|
+
> `readonly` **Failed**: `"failed"` = `"failed"`
|
|
30
|
+
|
|
31
|
+
Failed.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Variable: DataspaceTransferFormat
|
|
2
|
+
|
|
3
|
+
> `const` **DataspaceTransferFormat**: `object`
|
|
4
|
+
|
|
5
|
+
TWIN transfer format identifiers used in TransferRequestMessage.format.
|
|
6
|
+
Follows the Eclipse EDC canonical pattern: <DestinationType-FlowType>.
|
|
7
|
+
See RFC-007 Data Transfer Profile.
|
|
8
|
+
|
|
9
|
+
## Type Declaration
|
|
10
|
+
|
|
11
|
+
### HttpProxyPull {#httpproxypull}
|
|
12
|
+
|
|
13
|
+
> `readonly` **HttpProxyPull**: `"HttpProxy-PULL"` = `"HttpProxy-PULL"`
|
|
14
|
+
|
|
15
|
+
PULL mode: consumer queries data via a bearer-token-protected endpoint.
|
|
16
|
+
Data flows: Consumer GET provider endpoint (with token).
|
|
17
|
+
|
|
18
|
+
### HttpProxyPush {#httpproxypush}
|
|
19
|
+
|
|
20
|
+
> `readonly` **HttpProxyPush**: `"HttpProxy-PUSH"` = `"HttpProxy-PUSH"`
|
|
21
|
+
|
|
22
|
+
Consumer-initiated PUSH mode: consumer supplies their /inbox endpoint in the
|
|
23
|
+
TransferRequestMessage. Provider pushes ActivityStreams objects to that endpoint.
|
|
24
|
+
Data flows: Provider POST to consumer's /inbox.
|
|
25
|
+
|
|
26
|
+
### HttpProxyPost {#httpproxypost}
|
|
27
|
+
|
|
28
|
+
> `readonly` **HttpProxyPost**: `"HttpProxy-POST"` = `"HttpProxy-POST"`
|
|
29
|
+
|
|
30
|
+
Provider-initiated PUSH mode (inverted flow): consumer supplies no dataAddress.
|
|
31
|
+
Provider returns its own /inbox URL + signed JWT. Consumer then posts data there.
|
|
32
|
+
Data flows: Consumer POST to provider's /inbox.
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/dataspace-models",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.27",
|
|
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",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/dataspace.git",
|
|
8
8
|
"directory": "packages/dataspace-models"
|
|
9
9
|
},
|
|
10
10
|
"author": "jose.cantera@iota.org",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"schemas"
|
|
57
57
|
],
|
|
58
58
|
"bugs": {
|
|
59
|
-
"url": "git+https://github.com/
|
|
59
|
+
"url": "git+https://github.com/iotaledger/dataspace/issues"
|
|
60
60
|
},
|
|
61
61
|
"homepage": "https://twindev.org"
|
|
62
62
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IActivityLogDates.js","sourceRoot":"","sources":["../../../src/models/IActivityLogDates.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Activity log dates.\n */\nexport interface IActivityLogDates {\n\t/**\n\t * Task processing start timestamp\n\t */\n\tstartDate: string;\n\n\t/**\n\t * Task processing end timestamp\n\t */\n\tendDate?: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ITaskApp.js","sourceRoot":"","sources":["../../../src/models/ITaskApp.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Denotes a task associated with a Dataspace App\n */\nexport interface ITaskApp {\n\t/**\n\t * Task Id.\n\t */\n\ttaskId: string;\n\n\t/**\n\t * Dataspace App Id.\n\t */\n\tdataspaceAppId: string;\n}\n"]}
|