@abgov/adsp-sdk-mcp-server 1.28.0 → 1.29.0
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.
|
@@ -89,6 +89,25 @@ The comment service sends the following domain events under the `comment-service
|
|
|
89
89
|
|
|
90
90
|
The service doesn't consume events from other services. Changes to topic types are configuration updates, recorded by the [configuration service](configuration-service.md).
|
|
91
91
|
|
|
92
|
+
## Audit
|
|
93
|
+
Comment service records audit events in the `comment-service` namespace of the [audit service](/adsp-monorepo/services/audit-service.html). Records are written to the tenant of the topic or topic type, with the user or service account making the request as the actor. All actions are version 1, and their retention class is derived from the category.
|
|
94
|
+
|
|
95
|
+
| Action | Category | Severity | Retention class | Recorded when |
|
|
96
|
+
|:-|:-|:-|:-|:-|
|
|
97
|
+
| `topic.created` | administrative | info | compliance | A topic is created. |
|
|
98
|
+
| `topic.updated` | administrative | warning | compliance | The name, description or commenters of a topic are changed. |
|
|
99
|
+
| `topic.deleted` | administrative | warning | compliance | A topic is deleted. One record is written for the topic; its comments are deleted with it and are not recorded individually. |
|
|
100
|
+
| `comment.created` | data-access | info | compliance | A comment is posted to a topic. |
|
|
101
|
+
| `comment.updated` | data-access | info | compliance | A comment is edited. |
|
|
102
|
+
| `comment.deleted` | data-access | warning | compliance | A comment is deleted. |
|
|
103
|
+
| `topic-type.created` | administrative | info | compliance | A topic type is created through the comment API. |
|
|
104
|
+
| `topic-type.updated` | administrative | warning | compliance | The name, roles or security classification of a topic type are changed through the comment API. |
|
|
105
|
+
| `topic-type.deleted` | administrative | warning | compliance | A topic type is deleted through the comment API. |
|
|
106
|
+
|
|
107
|
+
Topic and comment records include the `topicId`, the topic type `typeId` and the topic `resourceId` in the metadata, and use the `resourceId` as the correlation ID so they can be matched with the audit records of the domain entity. Comment records use the comment ID as the resource and add `commentAction` (`created`, `updated` or `deleted`); updates list the edited field names in `updatedFields`, and updates and deletes include the `authorId` of the comment. Comment title, content and context are user generated and may be sensitive, so they are never recorded. `topic.updated` lists the changed fields in `updatedFields` and records the changed name and commenter user IDs as the change set; the description is not recorded. `topic-type.updated` records the topic type before and after the change as the change set, with `rolesChanged` in the metadata.
|
|
108
|
+
|
|
109
|
+
Reading topics and comments is not audited. Topic type changes made directly in the configuration service are recorded by the configuration service as `configuration.updated`, not by comment service. Audit failures are logged and do not fail the operation. The service account of comment service needs the `audit-writer` role of `urn:ads:platform:audit-service`. Set `COMMENT_AUDIT_ENABLED` to `false` to disable recording; when unset it follows the SDK `AUDIT_ENABLED` variable (on by default). The action catalog is registered on startup either way.
|
|
110
|
+
|
|
92
111
|
## Code examples
|
|
93
112
|
### Create a topic type
|
|
94
113
|
Users or service accounts with the comment-admin or topic-setter role can create topic types for their tenant. The new type's commenter roles are set with `writeRoles`, and it has no admin roles until you update it. The service responds `409` if a type with the ID or name already exists.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/adsp-sdk-mcp-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - MCP server for ADSP documentation and Node SDK reference lookup.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|
package/provenance.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"kind": "release",
|
|
3
|
-
"builtAt": "2026-11-
|
|
4
|
-
"sourceCommit": "
|
|
5
|
-
"latestRelease": "1.
|
|
6
|
-
"docsCommit": "
|
|
3
|
+
"builtAt": "2026-11-16T16:48:22.256Z",
|
|
4
|
+
"sourceCommit": "94d8504d0533ed47d963e13cd7184e7504c038af",
|
|
5
|
+
"latestRelease": "1.28.0",
|
|
6
|
+
"docsCommit": "fda85a9bbcbcfd0e1b787e64c45f7f37fdcf7482",
|
|
7
7
|
"sdk": {
|
|
8
8
|
"version": "2.36.1",
|
|
9
9
|
"commit": "dd58a2b854c4406b42c0604dba3fa4b941038d6c",
|