@abgov/adsp-sdk-mcp-server 1.15.4 → 1.16.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.
|
@@ -130,6 +130,38 @@ const response = await fetch(
|
|
|
130
130
|
const { results, page } = await response.json();
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
+
Event payloads can be searched within a bounded timestamp range. Use `payloadPath` with `payloadValue` for an
|
|
134
|
+
exact scalar match at a dot-separated path:
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
const parameters = new URLSearchParams({
|
|
138
|
+
timestampMin: '2026-10-01T00:00:00Z',
|
|
139
|
+
timestampMax: '2026-10-02T00:00:00Z',
|
|
140
|
+
payloadPath: 'applicant.contact.email',
|
|
141
|
+
payloadValue: 'jane@example.gov.ab.ca',
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
const response = await fetch(`${valueServiceUrl}/value/v1/event-service/values/event?${parameters}`, {
|
|
145
|
+
headers: { Authorization: `Bearer ${accessToken}` },
|
|
146
|
+
});
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Unquoted values that are valid JSON scalars are matched using their JSON type, so `123`, `true`, and `null` match
|
|
150
|
+
a number, boolean, and null respectively. JSON-quote a string that would otherwise parse as another scalar type.
|
|
151
|
+
|
|
152
|
+
Use `payload` for JSON containment. The event payload may have additional properties beyond those supplied:
|
|
153
|
+
|
|
154
|
+
```typescript
|
|
155
|
+
const parameters = new URLSearchParams({
|
|
156
|
+
timestampMin: '2026-10-01T00:00:00Z',
|
|
157
|
+
timestampMax: '2026-10-02T00:00:00Z',
|
|
158
|
+
payload: JSON.stringify({ applicationId: '12345', status: 'submitted' }),
|
|
159
|
+
});
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
The two payload search forms cannot be combined. They can be combined with the existing tenant, event context,
|
|
163
|
+
correlation ID, and timestamp filters. Payload searches use JSONB containment without an additional payload index.
|
|
164
|
+
|
|
133
165
|
### Count events in the event log
|
|
134
166
|
|
|
135
167
|
The count of events matching the event log search criteria is available directly from the event service, so
|
|
@@ -38,6 +38,11 @@ Value definitions are managed through the value service definitions API (`/value
|
|
|
38
38
|
> Counting events in the event log is exposed by the [event service](event-service.md#count-events-in-the-event-log).
|
|
39
39
|
> Consumers of the event log count should use that API rather than calling value service directly.
|
|
40
40
|
|
|
41
|
+
Event log reads support exact payload searching with either `payloadPath` and `payloadValue`, or a JSON object in
|
|
42
|
+
`payload`. Both `timestampMin` and `timestampMax` are required for payload searches, and the two search forms are
|
|
43
|
+
mutually exclusive. See [Search the event log](event-service.md#search-the-event-log) for examples and scalar type
|
|
44
|
+
handling.
|
|
45
|
+
|
|
41
46
|
### Value
|
|
42
47
|
|
|
43
48
|
A value represents a particular time series stream. Each write results in a new record with a timestamp. It differs from a typical transactional record in that the record has no unique identity; instead it represents another entry in the set of entries for the value. Consumers can write scalars or json objects to values.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/adsp-sdk-mcp-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.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",
|