@twin.org/dataspace-models 0.0.3-next.30 → 0.0.3-next.32

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/index.js CHANGED
@@ -31,6 +31,7 @@ export * from "./models/api/IActivityLogEntryGetRequest.js";
31
31
  export * from "./models/api/IActivityLogEntryGetResponse.js";
32
32
  export * from "./models/api/IActivityLogStatusNotificationPayload.js";
33
33
  export * from "./models/api/IActivityLogStatusRequest.js";
34
+ export * from "./models/api/IActivityLogEntryWithError.js";
34
35
  export * from "./models/api/IActivityStreamNotifyRequest.js";
35
36
  export * from "./models/api/IActivityStreamNotifyResponse.js";
36
37
  export * from "./models/api/IDataAssetEntitiesResponse.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC,iBAAiB;AACjB,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAE9C,wBAAwB;AACxB,cAAc,uDAAuD,CAAC;AACtE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AACzE,cAAc,kEAAkE,CAAC;AACjF,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAE7D,qBAAqB;AACrB,cAAc,oDAAoD,CAAC;AAEnE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAE/C,cAAc,mCAAmC,CAAC;AAElD,cAAc;AACd,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AAExD,gBAAgB;AAChB,cAAc,sCAAsC,CAAC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C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AAEjD,kBAAkB;AAClB,cAAc,wBAAwB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n// Entity exports\nexport * from \"./entities/dataspaceAppDataset.js\";\nexport * from \"./entities/transferProcess.js\";\n\n// Control Plane exports\nexport * from \"./models/controlPlane/api/ITransferContextResponse.js\";\nexport * from \"./models/controlPlane/IDataspaceAppDataset.js\";\nexport * from \"./models/controlPlane/IDataspaceControlPlaneComponent.js\";\nexport * from \"./models/controlPlane/IDataspaceControlPlaneResolverComponent.js\";\nexport * from \"./models/controlPlane/INegotiationCallback.js\";\nexport * from \"./models/controlPlane/ITransferContext.js\";\nexport * from \"./models/controlPlane/ITransferProcess.js\";\nexport * from \"./models/controlPlane/transferProcessRole.js\";\n\n// Data Plane exports\nexport * from \"./models/dataPlane/IDataspaceDataPlaneComponent.js\";\n\nexport * from \"./models/dataspaceContexts.js\";\nexport * from \"./models/dataspaceTransferFormat.js\";\nexport * from \"./models/dataspaceTypes.js\";\nexport * from \"./models/IDataspaceActivity.js\";\n\nexport * from \"./dataTypes/dataspaceDataTypes.js\";\n\n// App exports\nexport * from \"./factories/dataspaceAppFactory.js\";\nexport * from \"./models/app/IDataspaceApp.js\";\nexport * from \"./models/app/IFollowActivity.js\";\nexport * from \"./models/app/IUndoActivity.js\";\nexport * from \"./models/app/IProcessingGroupOptions.js\";\n\n// Other exports\nexport * from \"./models/activityProcessingStatus.js\";\nexport * from \"./models/api/IActivityLogEntryGetRequest.js\";\nexport * from \"./models/api/IActivityLogEntryGetResponse.js\";\nexport * from \"./models/api/IActivityLogStatusNotificationPayload.js\";\nexport * from \"./models/api/IActivityLogStatusRequest.js\";\nexport * from \"./models/api/IActivityStreamNotifyRequest.js\";\nexport * from \"./models/api/IActivityStreamNotifyResponse.js\";\nexport * from \"./models/api/IDataAssetEntitiesResponse.js\";\nexport * from \"./models/api/IDataAssetGetEntitiesRequest.js\";\nexport * from \"./models/api/IDataAssetQueryRequest.js\";\n\n// Control Plane API exports - Transfer Process Protocol\nexport * from \"./models/api/controlPlane/IAppDatasetCreateRequest.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetCreateResponse.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetDeleteRequest.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetGetRequest.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetGetResponse.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetListRequest.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetListResponse.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetUpdateRequest.js\";\nexport * from \"./models/api/controlPlane/ICompleteTransferRequest.js\";\nexport * from \"./models/api/controlPlane/ICompleteTransferResponse.js\";\nexport * from \"./models/api/controlPlane/IGetTransferProcessRequest.js\";\nexport * from \"./models/api/controlPlane/IGetTransferProcessResponse.js\";\nexport * from \"./models/api/controlPlane/IRequestTransferRequest.js\";\nexport * from \"./models/api/controlPlane/IRequestTransferResponse.js\";\nexport * from \"./models/api/controlPlane/IStartTransferRequest.js\";\nexport * from \"./models/api/controlPlane/IStartTransferResponse.js\";\nexport * from \"./models/api/controlPlane/ISuspendTransferRequest.js\";\nexport * from \"./models/api/controlPlane/ISuspendTransferResponse.js\";\nexport * from \"./models/api/controlPlane/ITerminateTransferRequest.js\";\nexport * from \"./models/api/controlPlane/ITerminateTransferResponse.js\";\n\nexport * from \"./models/activityTaskStatus.js\";\nexport * from \"./models/app/dataRequestType.js\";\nexport * from \"./models/app/IActivityQuery.js\";\nexport * from \"./models/app/IDataAssetEntitiesRequest.js\";\nexport * from \"./models/app/IDataAssetQuery.js\";\nexport * from \"./models/app/IDataRequest.js\";\nexport * from \"./models/app/IQueryDataAssetRequest.js\";\nexport * from \"./models/IActivityLogDetails.js\";\nexport * from \"./models/IActivityLogEntry.js\";\nexport * from \"./models/IActivityLogStatusNotification.js\";\nexport * from \"./models/IActivityTask.js\";\nexport * from \"./models/IActivityTaskEntry.js\";\nexport * from \"./models/IDataAssetItemList.js\";\nexport * from \"./models/IDataAssetItemListResult.js\";\nexport * from \"./models/IEntitySet.js\";\nexport * from \"./models/IExecutionPayload.js\";\nexport * from \"./models/IFilteringQuery.js\";\nexport * from \"./models/IPushDeliveryPayload.js\";\n\n// Utility exports\nexport * from \"./utils/jsonLdUtils.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC,iBAAiB;AACjB,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAE9C,wBAAwB;AACxB,cAAc,uDAAuD,CAAC;AACtE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AACzE,cAAc,kEAAkE,CAAC;AACjF,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAE7D,qBAAqB;AACrB,cAAc,oDAAoD,CAAC;AAEnE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAE/C,cAAc,mCAAmC,CAAC;AAElD,cAAc;AACd,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AAExD,gBAAgB;AAChB,cAAc,sCAAsC,CAAC;AACrD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,4CAA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aceAppDataset.js\";\nexport * from \"./entities/transferProcess.js\";\n\n// Control Plane exports\nexport * from \"./models/controlPlane/api/ITransferContextResponse.js\";\nexport * from \"./models/controlPlane/IDataspaceAppDataset.js\";\nexport * from \"./models/controlPlane/IDataspaceControlPlaneComponent.js\";\nexport * from \"./models/controlPlane/IDataspaceControlPlaneResolverComponent.js\";\nexport * from \"./models/controlPlane/INegotiationCallback.js\";\nexport * from \"./models/controlPlane/ITransferContext.js\";\nexport * from \"./models/controlPlane/ITransferProcess.js\";\nexport * from \"./models/controlPlane/transferProcessRole.js\";\n\n// Data Plane exports\nexport * from \"./models/dataPlane/IDataspaceDataPlaneComponent.js\";\n\nexport * from \"./models/dataspaceContexts.js\";\nexport * from \"./models/dataspaceTransferFormat.js\";\nexport * from \"./models/dataspaceTypes.js\";\nexport * from \"./models/IDataspaceActivity.js\";\n\nexport * from \"./dataTypes/dataspaceDataTypes.js\";\n\n// App exports\nexport * from \"./factories/dataspaceAppFactory.js\";\nexport * from \"./models/app/IDataspaceApp.js\";\nexport * from \"./models/app/IFollowActivity.js\";\nexport * from \"./models/app/IUndoActivity.js\";\nexport * from \"./models/app/IProcessingGroupOptions.js\";\n\n// Other exports\nexport * from \"./models/activityProcessingStatus.js\";\nexport * from \"./models/api/IActivityLogEntryGetRequest.js\";\nexport * from \"./models/api/IActivityLogEntryGetResponse.js\";\nexport * from \"./models/api/IActivityLogStatusNotificationPayload.js\";\nexport * from \"./models/api/IActivityLogStatusRequest.js\";\nexport * from \"./models/api/IActivityLogEntryWithError.js\";\nexport * from \"./models/api/IActivityStreamNotifyRequest.js\";\nexport * from \"./models/api/IActivityStreamNotifyResponse.js\";\nexport * from \"./models/api/IDataAssetEntitiesResponse.js\";\nexport * from \"./models/api/IDataAssetGetEntitiesRequest.js\";\nexport * from \"./models/api/IDataAssetQueryRequest.js\";\n\n// Control Plane API exports - Transfer Process Protocol\nexport * from \"./models/api/controlPlane/IAppDatasetCreateRequest.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetCreateResponse.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetDeleteRequest.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetGetRequest.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetGetResponse.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetListRequest.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetListResponse.js\";\nexport * from \"./models/api/controlPlane/IAppDatasetUpdateRequest.js\";\nexport * from \"./models/api/controlPlane/ICompleteTransferRequest.js\";\nexport * from \"./models/api/controlPlane/ICompleteTransferResponse.js\";\nexport * from \"./models/api/controlPlane/IGetTransferProcessRequest.js\";\nexport * from \"./models/api/controlPlane/IGetTransferProcessResponse.js\";\nexport * from \"./models/api/controlPlane/IRequestTransferRequest.js\";\nexport * from \"./models/api/controlPlane/IRequestTransferResponse.js\";\nexport * from \"./models/api/controlPlane/IStartTransferRequest.js\";\nexport * from \"./models/api/controlPlane/IStartTransferResponse.js\";\nexport * from \"./models/api/controlPlane/ISuspendTransferRequest.js\";\nexport * from \"./models/api/controlPlane/ISuspendTransferResponse.js\";\nexport * from \"./models/api/controlPlane/ITerminateTransferRequest.js\";\nexport * from \"./models/api/controlPlane/ITerminateTransferResponse.js\";\n\nexport * from \"./models/activityTaskStatus.js\";\nexport * from \"./models/app/dataRequestType.js\";\nexport * from \"./models/app/IActivityQuery.js\";\nexport * from \"./models/app/IDataAssetEntitiesRequest.js\";\nexport * from \"./models/app/IDataAssetQuery.js\";\nexport * from \"./models/app/IDataRequest.js\";\nexport * from \"./models/app/IQueryDataAssetRequest.js\";\nexport * from \"./models/IActivityLogDetails.js\";\nexport * from \"./models/IActivityLogEntry.js\";\nexport * from \"./models/IActivityLogStatusNotification.js\";\nexport * from \"./models/IActivityTask.js\";\nexport * from \"./models/IActivityTaskEntry.js\";\nexport * from \"./models/IDataAssetItemList.js\";\nexport * from \"./models/IDataAssetItemListResult.js\";\nexport * from \"./models/IEntitySet.js\";\nexport * from \"./models/IExecutionPayload.js\";\nexport * from \"./models/IFilteringQuery.js\";\nexport * from \"./models/IPushDeliveryPayload.js\";\n\n// Utility exports\nexport * from \"./utils/jsonLdUtils.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IActivityLogEntryWithError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IActivityLogEntryWithError.js","sourceRoot":"","sources":["../../../../src/models/api/IActivityLogEntryWithError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IError } from \"@twin.org/core\";\nimport type { IActivityLogEntry } from \"../IActivityLogEntry.js\";\n\n/**\n * Activity log entry extended with a top-level RFC 9457 error field.\n * Returned as the response body for 422/500 inline-processing failures.\n */\nexport interface IActivityLogEntryWithError extends IActivityLogEntry {\n\t/**\n\t * Top-level RFC 9457-formatted error describing the processing failure.\n\t * Present only for 422 and 500 responses.\n\t */\n\terror?: IError;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IActivityStreamNotifyResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IActivityStreamNotifyResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, HttpStatusCode } from \"@twin.org/web\";\nimport type { IActivityLogEntry } from \"../IActivityLogEntry.js\";\n\n/**\n * Activity Stream Notify Response.\n */\nexport interface IActivityStreamNotifyResponse {\n\t/**\n\t * The status code indicating the result of the notification processing. It can be either:\n\t * - `201 Created` if the notification was processed inline and a new activity log entry was created.\n\t * - `202 Accepted` if the notification was accepted for async processing but has not been completed yet.\n\t */\n\tstatusCode: typeof HttpStatusCode.created | typeof HttpStatusCode.accepted;\n\n\t/**\n\t * Optional headers.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Location]?: string;\n\t};\n\n\t/**\n\t * The Activity log entry if the notification was processed inline.\n\t */\n\tbody?: IActivityLogEntry;\n}\n"]}
1
+ {"version":3,"file":"IActivityStreamNotifyResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IActivityStreamNotifyResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, HttpStatusCode } from \"@twin.org/web\";\nimport type { IActivityLogEntryWithError } from \"./IActivityLogEntryWithError.js\";\n\n/**\n * Activity Stream Notify Response.\n */\nexport interface IActivityStreamNotifyResponse {\n\t/**\n\t * The status code indicating the result of the notification processing. It can be either:\n\t * - `201 Created` if the notification was processed inline and a new activity log entry was created.\n\t * - `202 Accepted` if the notification was accepted for async processing but has not been completed yet.\n\t * - `422 Unprocessable Entity` if inline processing failed due to a semantic problem in the Activity.\n\t * - `500 Internal Server Error` if inline processing failed due to a server-side processing error.\n\t */\n\tstatusCode:\n\t\t| typeof HttpStatusCode.created\n\t\t| typeof HttpStatusCode.accepted\n\t\t| typeof HttpStatusCode.unprocessableEntity\n\t\t| typeof HttpStatusCode.internalServerError;\n\n\t/**\n\t * Optional headers.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Location]?: string;\n\t};\n\n\t/**\n\t * The Activity log entry if the notification was processed inline.\n\t * For 422/500 responses, also includes a top-level `error` field per IETF RFC 9457.\n\t */\n\tbody?: IActivityLogEntryWithError;\n}\n"]}
@@ -24,6 +24,7 @@ export * from "./models/api/IActivityLogEntryGetRequest.js";
24
24
  export * from "./models/api/IActivityLogEntryGetResponse.js";
25
25
  export * from "./models/api/IActivityLogStatusNotificationPayload.js";
26
26
  export * from "./models/api/IActivityLogStatusRequest.js";
27
+ export * from "./models/api/IActivityLogEntryWithError.js";
27
28
  export * from "./models/api/IActivityStreamNotifyRequest.js";
28
29
  export * from "./models/api/IActivityStreamNotifyResponse.js";
29
30
  export * from "./models/api/IDataAssetEntitiesResponse.js";
@@ -0,0 +1,13 @@
1
+ import type { IError } from "@twin.org/core";
2
+ import type { IActivityLogEntry } from "../IActivityLogEntry.js";
3
+ /**
4
+ * Activity log entry extended with a top-level RFC 9457 error field.
5
+ * Returned as the response body for 422/500 inline-processing failures.
6
+ */
7
+ export interface IActivityLogEntryWithError extends IActivityLogEntry {
8
+ /**
9
+ * Top-level RFC 9457-formatted error describing the processing failure.
10
+ * Present only for 422 and 500 responses.
11
+ */
12
+ error?: IError;
13
+ }
@@ -1,5 +1,5 @@
1
1
  import type { HeaderTypes, HttpStatusCode } from "@twin.org/web";
2
- import type { IActivityLogEntry } from "../IActivityLogEntry.js";
2
+ import type { IActivityLogEntryWithError } from "./IActivityLogEntryWithError.js";
3
3
  /**
4
4
  * Activity Stream Notify Response.
5
5
  */
@@ -8,8 +8,10 @@ export interface IActivityStreamNotifyResponse {
8
8
  * The status code indicating the result of the notification processing. It can be either:
9
9
  * - `201 Created` if the notification was processed inline and a new activity log entry was created.
10
10
  * - `202 Accepted` if the notification was accepted for async processing but has not been completed yet.
11
+ * - `422 Unprocessable Entity` if inline processing failed due to a semantic problem in the Activity.
12
+ * - `500 Internal Server Error` if inline processing failed due to a server-side processing error.
11
13
  */
12
- statusCode: typeof HttpStatusCode.created | typeof HttpStatusCode.accepted;
14
+ statusCode: typeof HttpStatusCode.created | typeof HttpStatusCode.accepted | typeof HttpStatusCode.unprocessableEntity | typeof HttpStatusCode.internalServerError;
13
15
  /**
14
16
  * Optional headers.
15
17
  */
@@ -18,6 +20,7 @@ export interface IActivityStreamNotifyResponse {
18
20
  };
19
21
  /**
20
22
  * The Activity log entry if the notification was processed inline.
23
+ * For 422/500 responses, also includes a top-level `error` field per IETF RFC 9457.
21
24
  */
22
- body?: IActivityLogEntry;
25
+ body?: IActivityLogEntryWithError;
23
26
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.32](https://github.com/iotaledger/twin-dataspace/compare/dataspace-models-v0.0.3-next.31...dataspace-models-v0.0.3-next.32) (2026-05-29)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * 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))
9
+
10
+ ## [0.0.3-next.31](https://github.com/iotaledger/twin-dataspace/compare/dataspace-models-v0.0.3-next.30...dataspace-models-v0.0.3-next.31) (2026-05-27)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * **dataspace-models:** Synchronize repo versions
16
+
3
17
  ## [0.0.3-next.30](https://github.com/iotaledger/twin-dataspace/compare/dataspace-models-v0.0.3-next.29...dataspace-models-v0.0.3-next.30) (2026-05-26)
4
18
 
5
19
 
@@ -22,6 +22,7 @@
22
22
  - [IPushDeliveryPayload](interfaces/IPushDeliveryPayload.md)
23
23
  - [IActivityLogEntryGetRequest](interfaces/IActivityLogEntryGetRequest.md)
24
24
  - [IActivityLogEntryGetResponse](interfaces/IActivityLogEntryGetResponse.md)
25
+ - [IActivityLogEntryWithError](interfaces/IActivityLogEntryWithError.md)
25
26
  - [IActivityLogStatusNotificationPayload](interfaces/IActivityLogStatusNotificationPayload.md)
26
27
  - [IActivityLogStatusRequest](interfaces/IActivityLogStatusRequest.md)
27
28
  - [IActivityStreamNotifyRequest](interfaces/IActivityStreamNotifyRequest.md)
@@ -6,6 +6,10 @@ The details related to the processing of an Activity
6
6
 
7
7
  - [`IActivityLogDetails`](IActivityLogDetails.md)
8
8
 
9
+ ## Extended by
10
+
11
+ - [`IActivityLogEntryWithError`](IActivityLogEntryWithError.md)
12
+
9
13
  ## Properties
10
14
 
11
15
  ### id {#id}
@@ -0,0 +1,101 @@
1
+ # Interface: IActivityLogEntryWithError
2
+
3
+ Activity log entry extended with a top-level RFC 9457 error field.
4
+ Returned as the response body for 422/500 inline-processing failures.
5
+
6
+ ## Extends
7
+
8
+ - [`IActivityLogEntry`](IActivityLogEntry.md)
9
+
10
+ ## Properties
11
+
12
+ ### id {#id}
13
+
14
+ > **id**: `string`
15
+
16
+ The Id of the Activity Log entry.
17
+
18
+ #### Inherited from
19
+
20
+ [`IActivityLogEntry`](IActivityLogEntry.md).[`id`](IActivityLogEntry.md#id)
21
+
22
+ ***
23
+
24
+ ### activityId? {#activityid}
25
+
26
+ > `optional` **activityId?**: `string`
27
+
28
+ The activity Id that this entry refers to.
29
+
30
+ #### Inherited from
31
+
32
+ [`IActivityLogEntry`](IActivityLogEntry.md).[`activityId`](IActivityLogEntry.md#activityid)
33
+
34
+ ***
35
+
36
+ ### generator {#generator}
37
+
38
+ > **generator**: `string`
39
+
40
+ The identity of the Activity's generator.
41
+
42
+ #### Inherited from
43
+
44
+ [`IActivityLogEntry`](IActivityLogEntry.md).[`generator`](IActivityLogEntry.md#generator)
45
+
46
+ ***
47
+
48
+ ### dateCreated {#datecreated}
49
+
50
+ > **dateCreated**: `string`
51
+
52
+ The creation date of this object.
53
+
54
+ #### Inherited from
55
+
56
+ [`IActivityLogEntry`](IActivityLogEntry.md).[`dateCreated`](IActivityLogEntry.md#datecreated)
57
+
58
+ ***
59
+
60
+ ### dateModified {#datemodified}
61
+
62
+ > **dateModified**: `string`
63
+
64
+ The last update date of this object.
65
+
66
+ #### Inherited from
67
+
68
+ [`IActivityLogEntry`](IActivityLogEntry.md).[`dateModified`](IActivityLogEntry.md#datemodified)
69
+
70
+ ***
71
+
72
+ ### status {#status}
73
+
74
+ > **status**: [`ActivityProcessingStatus`](../type-aliases/ActivityProcessingStatus.md)
75
+
76
+ Status of the Activity Processing.
77
+
78
+ #### Inherited from
79
+
80
+ [`IActivityLogEntry`](IActivityLogEntry.md).[`status`](IActivityLogEntry.md#status)
81
+
82
+ ***
83
+
84
+ ### tasks? {#tasks}
85
+
86
+ > `optional` **tasks?**: [`IActivityTaskEntry`](IActivityTaskEntry.md)[]
87
+
88
+ The tasks that have to be run to process the Activity.
89
+
90
+ #### Inherited from
91
+
92
+ [`IActivityLogEntry`](IActivityLogEntry.md).[`tasks`](IActivityLogEntry.md#tasks)
93
+
94
+ ***
95
+
96
+ ### error? {#error}
97
+
98
+ > `optional` **error?**: `IError`
99
+
100
+ Top-level RFC 9457-formatted error describing the processing failure.
101
+ Present only for 422 and 500 responses.
@@ -6,11 +6,13 @@ Activity Stream Notify Response.
6
6
 
7
7
  ### statusCode {#statuscode}
8
8
 
9
- > **statusCode**: `201` \| `202`
9
+ > **statusCode**: `201` \| `202` \| `422` \| `500`
10
10
 
11
11
  The status code indicating the result of the notification processing. It can be either:
12
12
  - `201 Created` if the notification was processed inline and a new activity log entry was created.
13
13
  - `202 Accepted` if the notification was accepted for async processing but has not been completed yet.
14
+ - `422 Unprocessable Entity` if inline processing failed due to a semantic problem in the Activity.
15
+ - `500 Internal Server Error` if inline processing failed due to a server-side processing error.
14
16
 
15
17
  ***
16
18
 
@@ -28,6 +30,7 @@ Optional headers.
28
30
 
29
31
  ### body? {#body}
30
32
 
31
- > `optional` **body?**: [`IActivityLogEntry`](IActivityLogEntry.md)
33
+ > `optional` **body?**: [`IActivityLogEntryWithError`](IActivityLogEntryWithError.md)
32
34
 
33
35
  The Activity log entry if the notification was processed inline.
36
+ For 422/500 responses, also includes a top-level `error` field per IETF RFC 9457.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/dataspace-models",
3
- "version": "0.0.3-next.30",
3
+ "version": "0.0.3-next.32",
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",