@abgov/adsp-sdk-mcp-server 1.15.0 → 1.15.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.
@@ -22,76 +22,88 @@ client `urn:ads:platform:token-handler`
22
22
  ### Clients
23
23
  Clients correspond to OAuth clients (OIDC relying party) in [access service](access-service.md). The token handler requires configuration of clients to support client registration in access service. Registration creates confidential clients (with client ID and secret) which are used to authenticate users.
24
24
 
25
- Clients are configured in the [configuration service](configuration-service.md) under the `platform:token-handler` namespace and name. Note that the token handler client configuration controls how the token handler initiates the OIDC authorization request, but the overall behavior is also subject to access service configuration. For example, the `authCallbackUrl` of the token handler client determines the URL used when initiating the authorization flow, but whether the URL is permitted by access service as the OIDC provider is determined by its own *Valid Redirect URIs* configuration.
25
+ Clients are configured in the [configuration service](configuration-service.md) under the `platform:token-handler` namespace and name. The frontend application passes the OIDC callback URL at auth initiation time via the `?callbackUrl=` query parameter on the sign in endpoint (e.g. `https://myapp.example.ca/token-handler/clients/my-client/auth?callbackUrl=https://myapp.example.ca/token-handler/clients/my-client/callback`; see [Reverse proxy](#reverse-proxy)). This means no callback URL needs to be stored in the token handler configuration, and the same configuration works across all environments including local development. Redirect URI validation is handled by access service; the `callbackUrl` provided must be registered in the Keycloak client's *Valid Redirect URIs*.
26
+
27
+ > **Deprecated fallback:** Existing configurations with `authCallbackUrl` set will continue to work — the token handler extracts the path from `authCallbackUrl` and combines it with the incoming request's host and protocol when no `?callbackUrl=` query parameter is provided.
28
+
29
+ ### Core (platform) clients
30
+ Clients defined in the core configuration (the platform's own `platform:token-handler` configuration) are available to every tenant, in addition to the tenant's own clients. This allows a platform application, such as the preview in the builder app, to use the token handler without each tenant defining the client. Core clients can include `description` and `redirectUris`, and a tenant cannot change or replace them: when a tenant client has the same ID as a core client, the core client is used. The tenant administrator app prevents adding a client with the ID of a core client, so a collision can only occur for a tenant client that was added before the core client.
31
+
32
+ Each tenant still has its own registration of a core client, because registration creates a Keycloak client in the tenant's realm and the client secret is stored per tenant. A tenant administrator registers the client once from the token handler tab (core clients are listed there as platform clients, with their targets and registration status), or by calling the register endpoint. The `redirectUris` of the client configuration are applied as the *Valid Redirect URIs* of the Keycloak client at registration, together with the `callbackUrl` if one is passed. Changing `redirectUris` later does not change clients that are already registered; those are updated in the Keycloak admin console or with the update endpoint.
33
+
34
+ The builder app's preview uses a core client, `builder-preview`, that token handler registers in the core configuration on startup when the `BUILDER_APP_URL` environment variable (the public URL of the builder app) is set. Its redirect URI is on the builder app's origin (`<BUILDER_APP_URL>/token-handler/clients/builder-preview/callback`), so each environment sets its own value. The client is written on every startup, so changes to it are made in the token handler rather than in the core configuration.
35
+
36
+ Administrators can list the clients available to their tenant, core and tenant clients together with their registration status, with `GET /token-handler/v1/clients`. The `core` property of each client indicates whether it is from the core configuration, and `?core=true` returns only core clients.
26
37
 
27
38
  ### Targets
28
39
  Targets represent upstream services or APIs that the token handler can proxy requests to. For requests from the frontend to the configured targets, token handler will retrieve a valid access token based on the current user session and include it as a bearer token for the upstream request. Target upstream is configured as an ADSP service or API URN, and the URN must have an entry in the [directory service](directory-service.md). Targets are configured as part of clients in the configuration service under the `platform:token-handler` namespace and name.
29
40
 
41
+ The upstream request only carries the user's access token for authentication. Token handler does not pass on the session cookie, CSRF token or tenant headers of the incoming request, and cookies set by the upstream are not passed back to the frontend. Request paths must stay within the target's base path; paths with dot segments (`.` or `..`) or encoded path separators are rejected as invalid, and the query string is passed through unchanged.
42
+
43
+ Target upstreams are resolved from the directory, where tenant administrators can register entries for their own namespace. The operator of token handler can restrict the hosts that target upstreams may use by setting the `UPSTREAM_ALLOWED_DOMAINS` environment variable to a comma-separated list of host names (e.g. `form-service,api.example.ca`) and wildcards for subdomains (e.g. `*.apps.example.ca`, which does not include `apps.example.ca` itself). An entry can include a port (e.g. `form-service:3333`), in which case the upstream must use that port (the default port for the scheme if the URL has none); an entry without a port allows any port on the host, so list the ports of internal services. When it is set, requests to a target whose upstream does not resolve to an allowed host are rejected. Upstreams in the platform namespace (`urn:ads:platform:...`) are not checked, because only platform administrators can register entries in it, so platform services can use cluster internal URLs without listing them; every other namespace is checked, so tenant entries cannot target internal hosts. Only http and https URLs without credentials are accepted, the scheme is not otherwise restricted, and IPv4 addresses must be listed explicitly. Avoid wildcards for public suffixes (e.g. `*.co.uk`), which allow any domain under them. Host names are matched as they appear in the URL and are not resolved. A wildcard matches subdomains at any depth, so `*.example.ca` allows `www.example.ca` and `a.b.example.ca` but not `example.ca`. When the value is set in a YAML file, such as a ConfigMap, quote it if it starts with `*`, e.g. `'*.example.ca,*.example.org'`. When it is not set, upstreams are not restricted and token handler logs a warning on startup. The setting is not part of the tenant configuration, so tenant administrators cannot change it.
44
+
45
+ ### Builder app preview
46
+ The builder app uses the token handler so that the app in its preview can make platform API requests as the signed in user, without holding a token. This is the pattern for a dedicated deployment of an app as well: a static frontend, a `/token-handler` proxy on the app's own origin, a client and its targets.
47
+
48
+ - **Client:** token handler registers the `builder-preview` core client when `BUILDER_APP_URL` is set. Its targets are `form-service` and `file-service`, so those are the services that previewed apps can call. A tenant administrator registers the client once for the tenant in the token handler tab of the tenant management app; until then the builder shows a message that it is required.
49
+ - **Proxy:** the builder's web server proxies `/token-handler/` to the token handler on the builder's origin, so the session cookie is set for the builder's site and the preview, which is served from the builder's origin, gets it.
50
+ - **Sign in:** when the builder loads without a token handler session it redirects to the client's sign in, which returns straight back because the user is already signed in to access service. The preview code does not sign in or handle tokens.
51
+ - **Requests:** `/token-handler/targets/<target>/<service path>`, for example `/token-handler/targets/file-service/file/v1/files`. The React template's `apiFetch` adds the CSRF header that requests other than GET need.
52
+ - **Local development:** the builder's dev server proxies `/token-handler` to the dev token handler and removes the `Secure` flag from its cookies, because Safari does not store `Secure` cookies for `http://localhost`. `http://localhost:4200/token-handler/clients/builder-preview/callback` must be in the client's valid redirect URIs in the tenant's realm.
53
+ - **Limits:** the preview runs on the builder's origin, so the app code shares the origin, and the user's builder session, with the builder. Requests run as the builder's user, limited by the roles that user has. Adding a target to `builder-preview` makes that service available to every previewed app.
54
+
55
+ ### Logout
56
+ Frontend applications log users out by navigating the browser to `GET /token-handler/v1/clients/{clientId}/logout`, which can be a plain link. This ends the user's session in token handler, discarding the stored tokens, and redirects to the root of the site. By default this does not end the user's session in [access service](access-service.md), so signing in again from the same browser can complete without entering credentials.
57
+
58
+ Set `keycloakLogout` to `true` on the client to also end the user's single sign on session in access service, so that tokens issued for the session can no longer be refreshed. Logout then redirects the browser to the access service end session endpoint, which returns the browser to the root of the site that the user logged in from (the root of the host of the `callbackUrl` used at login). The client in access service must have that URL (e.g. `https://myapp.example.ca/`) in its *Valid post logout redirect URIs*; otherwise access service shows an error page and the user is not logged out of access service. For this reason it is off by default, and should be enabled once the post logout redirect URI is configured. Sessions that were started before the ID token and site were kept in the session are logged out of token handler only. Requests that another site caused the browser to make (`Sec-Fetch-Site: cross-site`) only end the token handler session, so another site cannot sign users out of access service.
59
+
30
60
  ### Cross-site request forgery (CSRF)
31
61
  The token handler uses sessions and cookies which can be vulnerable to CSRF attacks. A Cookie-to-header token is used as CSRF protection. Frontend applications need to read the value of the `XSRF-TOKEN` cookie and include it as the value of the `X-XSRF-TOKEN` header in requests to *targets*; this behavior is built into [Angular](https://angular.io/guide/http-security-xsrf-protection).
32
62
 
33
63
  ### Reverse proxy
34
64
  Frontend applications must use a reverse proxy to proxy requests to the token handler from the frontend site domain. The token handler sets a session cookie without the domain attribute, and browsers will associate the cookie with the domain of the authorization callback request. Consequently the cookie will only be included on subsequent requests to the site if that callback request is to the same domain as the rest of the site.
35
65
 
36
- The `/clients/${clientId}/auth` and `/clients/${clientId}/callback` endpoints require the tenant ID to be provided in the `X-ADSP-TENANT` header, which can also be addressed via reverse proxy configuration.
66
+ All routes of the token handler are under the `/token-handler/v1` path of its URL, so a single proxy location is enough. The frontend can use any path for it; the examples use `/token-handler`. The frontend then uses these paths:
37
67
 
38
- #### Nginx configuration example
68
+ - Sign in: `/token-handler/clients/${clientId}/auth?tenant=<tenant name>&callbackUrl=<callback URL>`
69
+ - Sign in callback: `/token-handler/clients/${clientId}/callback`; the callback URL passed when signing in is this path on the frontend site.
70
+ - Sign out: `/token-handler/clients/${clientId}/logout`
71
+ - Session information: `/token-handler/sessions`
72
+ - Targets: `/token-handler/targets/${targetId}/...`
39
73
 
40
- ```
41
- location /auth {
42
- proxy_pass <token handler URL>/token-handler/v1/clients/my-client;
43
- proxy_set_header Host $host;
44
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
45
- proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
46
- proxy_set_header X-Adsp-Tenant <Tenant URN e.g. urn:ads:platform:tenant-service:v2:/tenants/...>;
47
- }
74
+ The sign in endpoint needs to know the tenant, which is the `tenant` query parameter or the `X-ADSP-TENANT` header. The frontend can hardcode the name of its tenant for the parameter, since the name is the same in every environment (a tenant URN is not). The tenant is kept in the session, so the callback endpoint does not need it. The reverse proxy can set the header to restrict the frontend domain to one tenant, and the header is used instead of the query parameter if both are provided. The value is the name of the tenant (as it is, ignoring case, or in the kebab-case form that has hyphens in place of spaces, e.g. `my-tenant-name`) or a full tenant URN.
48
75
 
49
- location /sessions {
50
- proxy_pass <token handler URL>/token-handler/v1/sessions;
51
- proxy_set_header Host $host;
52
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
53
- proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
54
- }
76
+ The proxy should also set the `X-Forwarded-For` and `X-Forwarded-Proto` headers, which the token handler uses for rate limiting and to mark cookies as secure. The `Host` header of the original request is not needed (except by clients that still use the deprecated `authCallbackUrl` fallback).
55
77
 
56
- location /api {
57
- proxy_pass <token handler URL>/token-handler/v1/targets/my-upstream-api;
58
- proxy_set_header Host $host;
78
+ #### Nginx configuration example
79
+
80
+ ```
81
+ location /token-handler/ {
82
+ proxy_pass <token handler URL>/token-handler/v1/;
83
+ proxy_ssl_server_name on;
59
84
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
60
85
  proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
61
86
  }
62
87
  ```
63
88
 
89
+ `proxy_ssl_server_name` is needed when the token handler URL is HTTPS. Use `$scheme` for `X-Forwarded-Proto` if nginx terminates TLS itself. To restrict the frontend domain to one tenant, also add `proxy_set_header X-Adsp-Tenant "<tenant name>";` to the location. The client page in tenant management shows this configuration with the values of the client.
90
+
64
91
  ### Local development
65
92
  There are some special considerations for local development workflows when using the token handler.
66
93
 
67
- - Webpack DevServer proxy can be used to proxy requests to the token handler, but token handler will not trust the proxy for resolving the request host. In order to bypass host checking for the client, the `disableVerifyHost` property in the client configuration must be set to `true`; this configuration should **NOT** be used in production.
68
- - Token handler and access service client configuration must allow for the callback URL to localhost. So the `authCallbackUrl` must be set for local development.
69
- - The token handler can only proxy requests to upstream services and APIs that are registered in directory service and which it can reached; i.e. local running instances of backends cannot be used. In practice, this means that when working with full stack applications, local development of the frontend will require a deployed instance of the backend.
94
+ - Webpack DevServer proxy can be used to proxy requests to the token handler. The frontend passes the `tenant` query parameter when it signs in, or the proxy can inject the `X-ADSP-TENANT` header; the tenant name can be used instead of the full URN.
95
+ - The frontend passes `?callbackUrl=http://localhost:<port>/token-handler/clients/<clientId>/callback` when redirecting to the sign in path for local development. Add this URL to the Keycloak client's *Valid Redirect URIs* directly in the access service admin console — no token handler configuration change is required.
96
+ - The token handler can only proxy requests to upstream services and APIs that are registered in directory service; i.e. local running instances of backends cannot be used. In practice, this means that when working with full stack applications, local development of the frontend will require a deployed instance of the backend.
70
97
 
71
98
  #### Webpack DevServer proxy configuration example
72
99
 
73
100
  ```json
74
101
  {
75
- "/auth": {
76
- "target": "<token handler URL>/token-handler/v1/clients/my-client",
77
- "secure": true,
78
- "changeOrigin": true,
79
- "pathRewrite": { "^/auth": "" },
80
- "headers": {
81
- "X-ADSP-TENANT": "<Tenant URN e.g. urn:ads:platform:tenant-service:v2:/tenants/...>"
82
- }
83
- },
84
- "/sessions": {
85
- "target": "<token handler URL>/token-handler/v1/sessions",
86
- "secure": true,
87
- "changeOrigin": true,
88
- "pathRewrite": { "^/sessions": "" }
89
- },
90
- "/api": {
91
- "target": "<token handler URL>/token-handler/v1/targets/my-upstream-api",
102
+ "/token-handler": {
103
+ "target": "<token handler URL>",
92
104
  "secure": true,
93
105
  "changeOrigin": true,
94
- "pathRewrite": { "^/api": "" }
106
+ "pathRewrite": { "^/token-handler": "/token-handler/v1" }
95
107
  }
96
108
  }
97
109
  ```
@@ -99,7 +111,7 @@ There are some special considerations for local development workflows when using
99
111
  ## Code examples
100
112
 
101
113
  ### Register a client
102
- Registering a client creates a confidential client in access service and securely stores the associated client ID and secret in token handler. It is required before token handler can authenticate users using the client.
114
+ Registering a client creates a confidential client in access service and securely stores the associated client ID and secret in token handler. It is required before token handler can authenticate users using the client. The optional `authCallbackUrl` provided here is registered with access service as a valid redirect URI and is not stored in the token handler configuration. If it is not provided, the client is registered without redirect URIs, which must then be added to the client in access service (Keycloak) before users can sign in. Registering a client that is already registered replaces its registration: the previously registered client in access service is deleted, including any redirect URIs configured on it.
103
115
 
104
116
  ```typescript
105
117
  const response = await fetch(
@@ -108,10 +120,12 @@ Registering a client creates a confidential client in access service and securel
108
120
  method: 'POST',
109
121
  headers: {
110
122
  'Authorization': `Bearer ${accessToken}`,
123
+ 'Content-Type': 'application/json',
111
124
  },
112
- body: {
113
- registrationToken
114
- },
125
+ body: JSON.stringify({
126
+ registrationToken,
127
+ authCallbackUrl: 'https://myapp.example.ca/token-handler/clients/my-client/callback',
128
+ }),
115
129
  }
116
130
  );
117
131
 
@@ -120,6 +134,32 @@ Registering a client creates a confidential client in access service and securel
120
134
  } = await response.json();
121
135
  ```
122
136
 
137
+ ### Update client registration
138
+ Updating a client's registration allows changing the registered redirect URIs in access service without creating a new client or invalidating existing sessions. This uses the management token stored from the original registration, so no external token is required.
139
+
140
+ ```typescript
141
+ const response = await fetch(
142
+ `https://adsp.alberta.ca/api/token-handler/v1/clients/${clientId}`,
143
+ {
144
+ method: 'PUT',
145
+ headers: {
146
+ 'Authorization': `Bearer ${accessToken}`,
147
+ 'Content-Type': 'application/json',
148
+ },
149
+ body: JSON.stringify({
150
+ redirectUris: [
151
+ 'https://myapp.example.ca/token-handler/clients/my-client/callback',
152
+ 'http://localhost:4200/token-handler/clients/my-client/callback',
153
+ ],
154
+ }),
155
+ }
156
+ );
157
+
158
+ const {
159
+ updated
160
+ } = await response.json();
161
+ ```
162
+
123
163
  ### Retrieving session information
124
164
  Frontend application can determine if the user is logged in and access their session information via the sessions endpoint.
125
165
 
@@ -13,10 +13,13 @@ Value service provides an append only time series data store. It serves as the u
13
13
 
14
14
  client `urn:ads:platform:value-service`
15
15
 
16
- | name | description |
17
- | :----------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
18
- | value-reader | Reader role for value service. This role is used to allow users to read values and value definitions. It is part of the tenant-admin composite role and allows tenant administrators to read and search the event log. |
19
- | value-writer | Writer role for value service. This role is used to allow service accounts to write values to the value service. It also allows users to create, update and delete value definitions, and to read them, since a user with the writer role can also read. |
16
+ | name | description |
17
+ | :---------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
18
+ | value-reader | Reader role for value service. This role is used to allow users to read values and value definitions. It is part of the tenant-admin composite role and allows tenant administrators to read and search the event log. |
19
+ | value-writer | Writer role for value service. This role is used to allow service accounts to write values to the value service. It also allows users to create, update and delete value definitions, and to read them, since a user with the writer role can also read. |
20
+ | value-platform-metrics-reader | Reader role for platform-scoped metrics. Allows core users to read a value's metrics across all tenants. It is not part of the tenant-admin composite role. |
21
+
22
+ The export service's `urn:ads:platform:export-service:export-job` role can also read values, so that export jobs can read the event log.
20
23
 
21
24
  ## Concepts
22
25
 
@@ -32,13 +35,20 @@ Value definitions are managed through the value service definitions API (`/value
32
35
  - Creating a definition adds its namespace if it does not exist, and fails with a 409 if a tenant or core definition with the same namespace and name already exists.
33
36
  - Deleting the last definition in a namespace removes the namespace.
34
37
 
38
+ > Counting events in the event log is exposed by the [event service](event-service.md#count-events-in-the-event-log).
39
+ > Consumers of the event log count should use that API rather than calling value service directly.
40
+
35
41
  ### Value
36
42
 
37
43
  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.
38
44
 
39
45
  ### Metrics
40
46
 
41
- Metrics are numeric values that can be included in value writes. The are automatically included in time interval aggregations and can be used for basic KPIs.
47
+ Metrics are numeric values that can be included in value writes as a `metrics` object of metric name to number. They are aggregated into time intervals (`one_minute`, `five_minutes`, `hourly`, `daily`, `weekly` and `monthly`) with `sum`, `avg`, `min`, `max` and `count` for each interval, and can be used for basic KPIs.
48
+
49
+ Read a value's metrics from `/value/v1/{namespace}/values/{name}/metrics`, or a single metric from `/value/v1/{namespace}/values/{name}/metrics/{metric}`. The `interval` defaults to `daily`, and the JSON `criteria` accepts `intervalMin`, `intervalMax` and (for all metrics) `metricLike`. Without a range, the last month is read.
50
+
51
+ Core users with the `value-platform-metrics-reader` role can read a value's metrics across all tenants, labelled by tenant, from `/value/v1/{namespace}/values/{name}/platform-metrics`. This only reads the materialised rollups described below and is not paginated.
42
52
 
43
53
  ### Metric interval rollups
44
54
 
@@ -70,6 +80,14 @@ ORDER BY "interval";
70
80
 
71
81
  Rollups store `sum` and `count` rather than an average, because an average of averages is not the average; the read path divides the two.
72
82
 
83
+ ### Service metric rollups
84
+
85
+ A daily job summarises tenant activity for `pdf-service`, `form-service` and `notification-service` into the `service_metric_rollups` table: one row per day, tenant and service, with counts of initiated, succeeded and failed operations, duration totals, and the number of distinct resources (for example PDF templates or form definitions). The rows are derived from the event log and the services' metrics.
86
+
87
+ The job is off by default. Set `SERVICE_METRIC_ROLLUP_JOB_ENABLED=true` to run it daily at 02:00, recomputing the last `SERVICE_METRIC_ROLLUP_TRAILING_DAYS` completed days (default 3). Set `SERVICE_METRIC_ROLLUP_BACKFILL_ON_STARTUP=true` to roll up the full history once when the table is empty.
88
+
89
+ A rollup can also be run on demand with `POST /value/v1/service-metric-rollups/run` and the `value-writer` role. The body can set `start` and `end` dates, which default to the trailing days. Core users can set `tenantId` or leave it out to roll up all tenants; tenant users always roll up their own tenant. The current partial day and future days are rejected.
90
+
73
91
  ## Code examples
74
92
 
75
93
  ### Write a value
@@ -84,6 +102,9 @@ const value = {
84
102
  value: {
85
103
  property: 123,
86
104
  },
105
+ metrics: {
106
+ 'applications:count': 1,
107
+ },
87
108
  };
88
109
 
89
110
  const response = await fetch(`https://value-service.adsp.alberta.ca/value/v1/${namespace}/values/${name}`, {
@@ -100,6 +121,8 @@ const { correlationId, context, timestamp, value } = await response.json();
100
121
 
101
122
  ### Read a value
102
123
 
124
+ Records are returned newest first, `top` at a time (default 10, maximum 5000). Pass `page.next` back as `after` to read the next set. Set `order=asc` to read oldest first instead; this reaches the oldest end of a large result set without paging past all of the newer records.
125
+
103
126
  ```typescript
104
127
  const namespace = 'support';
105
128
  const name = 'application-stats';
@@ -108,7 +131,27 @@ const response = await fetch(`https://value-service.adsp.alberta.ca/value/v1/${n
108
131
  headers: { Authorization: `Bearer ${accessToken}` },
109
132
  });
110
133
 
111
- const { results, page } = await response.json();
134
+ // Records are keyed by namespace, then name.
135
+ const { page, ...result } = await response.json();
136
+ const records = result[namespace][name];
137
+ ```
138
+
139
+ ### Read metrics
140
+
141
+ ```typescript
142
+ const namespace = 'support';
143
+ const name = 'application-stats';
144
+ const criteria = { intervalMin: '2026-09-01T00:00:00Z', intervalMax: '2026-10-01T00:00:00Z' };
145
+ const response = await fetch(
146
+ `https://value-service.adsp.alberta.ca/value/v1/${namespace}/values/${name}/metrics?interval=daily&criteria=${encodeURIComponent(JSON.stringify(criteria))}`,
147
+ {
148
+ method: 'GET',
149
+ headers: { Authorization: `Bearer ${accessToken}` },
150
+ },
151
+ );
152
+
153
+ // Keyed by metric name; each has values of { interval, sum, avg, min, max, count }, newest first.
154
+ const { page, ...metrics } = await response.json();
112
155
  ```
113
156
 
114
157
  ### Create a value definition
@@ -14,73 +14,62 @@ achieve this.
14
14
 
15
15
  <h3 id="data-registers">Data registers</h3>
16
16
 
17
- When there is a need to retrieve a list of values that are needed to populate a drop down from an external data source.
18
- We have two options to accomplish this operation.
17
+ When a drop down needs a list of values, there are two options.
19
18
 
20
19
  <ol>
21
20
  <li>
22
- Using ADSP Configuration service by adding a configuration definition to retrieving the list of values.
21
+ Use an ADSP data register. You manage data registers in the tenant management webapp or through the form service API.
23
22
  </li>
24
23
  <li>
25
24
  Provide a URL REST API endpoint to retrieve the list of values.
26
25
  </li>
27
26
  </ol>
28
27
 
29
- ### Using Configuration service - defining the JSON payload schema
28
+ ### Using a data register
30
29
 
31
- #### Example 1:
30
+ A data register is a named list of values. Each value is either a string or an object, for example an object with `label` and `value` properties.
32
31
 
33
- In this example we are only accepting array of string values.
32
+ #### Managing data registers in the tenant management webapp
34
33
 
35
- ```
36
- {
37
- "type": "array",
38
- "items": {
39
- "type": "string"
40
- },
41
- "required": [],
42
- "additionalProperties": true
43
- }
44
- ```
34
+ Go to Form service &rarr; Register data tab.
45
35
 
46
- #### Example 2:
36
+ - Click **Add register data** and enter a name, an optional description and the values. Names can contain letters, numbers, spaces, hyphens and underscores, can't start or end with a space, can be up to 50 characters long, and must be unique within your tenant. Enter the values separated by commas, new lines or semicolons, or select **Use JSON format** and enter a JSON array.
37
+ - Click the eye icon on a register to view its values and copy its URN.
38
+ - Click the edit icon on a register to change its values as a JSON array.
39
+ - Click the delete icon on a register to delete it. Forms that reference a deleted register lose its options.
47
40
 
48
- In this example, we are defining a couple properties called "label" and "value" which is usually part of
49
- a drop down for array object.
41
+ #### Managing data registers through the API
50
42
 
51
- ```
52
- {
53
- "type": "array",
54
- "items": {
55
- "type": "object",
56
- "properties": {
57
- "value": {
58
- "type": "string"
59
- },
60
- "label": {
61
- "type": "string"
62
- }
63
- }
43
+ You can also manage data registers through the form service API at `/form/v1/registers`. This requires the `form-admin` role or the configuration service `configuration-admin` role. See [Form service](/adsp-monorepo/services/form-service.html#data-registers) for the full API.
44
+
45
+ ```typescript
46
+ const response = await fetch('https://form-service.adsp.alberta.ca/form/v1/registers', {
47
+ method: 'POST',
48
+ headers: {
49
+ Authorization: `Bearer ${token}`,
50
+ 'Content-Type': 'application/json',
64
51
  },
65
- "properties": {},
66
- "required": [],
67
- "additionalProperties": true
68
- }
52
+ body: JSON.stringify({
53
+ name: 'provinces',
54
+ description: 'Canadian provinces',
55
+ entries: ['Alberta', 'British Columbia', 'Saskatchewan'],
56
+ }),
57
+ });
69
58
  ```
70
59
 
71
- Once you have defined your schema you will go to the Configuration Service &rarr; Revisions tab and select the configuration definition from the drop down and click on the edit button and enter the data for the list of values.
60
+ #### Register values
72
61
 
73
- This example maps to example 1 from the schema above:
62
+ This register holds string values:
74
63
 
75
64
  ```
76
65
  [
77
66
  "value1",
78
67
  "value2",
79
- "value3",
68
+ "value3"
80
69
  ]
81
70
  ```
82
71
 
83
- This example maps to example 2 from the schema above that has "label" and "value" as a property.
72
+ This register holds objects with `label` and `value` properties:
84
73
 
85
74
  ```
86
75
  [
@@ -88,14 +77,16 @@ This example maps to example 2 from the schema above that has "label" and "value
88
77
  "label": "label 1",
89
78
  "value": "value 1"
90
79
  },
91
- {
80
+ {
92
81
  "label": "label 2",
93
82
  "value": "value 2"
94
83
  }
95
84
  ]
96
85
  ```
97
86
 
98
- Once you have configured the configuration service schema for your data registers you are ready to go to the form editor and make modifications to your UI and data schema to include your data registers on the file upload control.
87
+ Each data register has a URN in the form `urn:ads:platform:configuration:v2:/configuration/data-register/<name>`. You use it in the UI schema to reference the register. Names with spaces are not encoded, so the URN is exactly what the Register data tab shows.
88
+
89
+ Once your data register is set up, go to the form editor and add it to your data and UI schemas for the drop down.
99
90
 
100
91
  #### Data schema
101
92
 
@@ -117,9 +108,9 @@ Once you have configured the configuration service schema for your data register
117
108
 
118
109
  For the UI schema there are two methods that you use to populate your drop down.
119
110
 
120
- The first method is to use the Configuration service and use the data register configuration service using the URN.
111
+ The first method is to reference a data register by its URN.
121
112
 
122
- The example below shows what the UI schema you would need.
113
+ The example below shows the UI schema you would need.
123
114
 
124
115
  ```
125
116
  {
@@ -128,12 +119,16 @@ The example below shows what the UI schema you would need.
128
119
  "label": "Province",
129
120
  "options": {
130
121
  "register": {
131
- "urn": "urn:ads:platform:configuration:v2:/configuration/public-register/public-register-1"
122
+ "urn": "urn:ads:platform:configuration:v2:/configuration/data-register/provinces"
132
123
  }
133
124
  }
134
125
  }
135
126
  ```
136
127
 
128
+ You can also reference configuration in other namespaces, for example `urn:ads:platform:configuration:v2:/configuration/public-register/public-register-1`. Its configuration definition schema must be an array of strings or an array of objects. You set up these registers directly in configuration service. They aren't managed by the Register data tab or the form service API.
129
+
130
+ By default, only signed-in users can read a register. To use a register in a form that allows anonymous applicants, go to Configuration service &rarr; Definitions. Edit the register's definition, which has the namespace `data-register` and the register's name, and select **Allow anonymous access**. The Register data tab and the form service API keep this setting when they update a register, but they never set it.
131
+
137
132
  Please refer to [Configuration service](/adsp-monorepo/services/configuration-service.html) for more details.
138
133
 
139
134
  The second method is to use an external REST API endpoint to retrieve data to populate the drop down.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/adsp-sdk-mcp-server",
3
- "version": "1.15.0",
3
+ "version": "1.15.2",
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",
@@ -311,6 +311,94 @@ exports.SDK_REFERENCE = [
311
311
  'set by configurationHandler as convenience wrappers.',
312
312
  seeAlso: ['ServiceRegistration'],
313
313
  },
314
+ // audit
315
+ {
316
+ name: 'auditDefinitions',
317
+ kind: 'function',
318
+ module: 'audit',
319
+ summary: 'Converts named audit action constants into definitions keyed by action name for catalog registration.',
320
+ details: 'auditDefinitions(actions: Record<string, AuditAction>): Record<string, AuditActionDefinition>\n\n' +
321
+ 'Removes name from each definition and uses it as the catalog key. Throws for invalid or duplicate action names. ' +
322
+ 'Does not register the catalog or emit audit records; pass the result through ServiceRegistration.serviceConfigurations.',
323
+ example: "auditDefinitions({\n" +
324
+ " UPDATE_CASE: {\n" +
325
+ " name: 'case.update', version: 1, category: AuditCategories.Administrative,\n" +
326
+ " severity: AuditSeverities.Info, retentionClass: BuiltInRetentionClasses.Compliance,\n" +
327
+ " },\n" +
328
+ "});",
329
+ seeAlso: ['AuditAction', 'AuditActionDefinition', 'ServiceRegistration'],
330
+ },
331
+ {
332
+ name: 'AuditAction',
333
+ kind: 'interface',
334
+ module: 'audit',
335
+ summary: 'Named audit action constant accepted by auditDefinitions.',
336
+ details: 'interface AuditAction extends AuditActionDefinition { name: string; }',
337
+ seeAlso: ['AuditActionDefinition', 'auditDefinitions'],
338
+ },
339
+ {
340
+ name: 'AuditActionDefinition',
341
+ kind: 'interface',
342
+ module: 'audit',
343
+ summary: 'Classification and optional metadata schema for an action in an audit catalog.',
344
+ details: 'interface AuditActionDefinition {\n' +
345
+ ' version: number;\n' +
346
+ ' category: AuditCategory;\n' +
347
+ ' severity: AuditSeverity;\n' +
348
+ ' retentionClass: string; description?: string; resourceType?: string;\n' +
349
+ ' captureChangeSet?: boolean; forwardToSiem?: boolean;\n' +
350
+ ' metadataSchema?: Record<string, unknown>;\n' +
351
+ '}',
352
+ seeAlso: ['AuditAction', 'auditDefinitions', 'AuditCategory', 'AuditSeverity', 'BuiltInRetentionClasses'],
353
+ },
354
+ {
355
+ name: 'AuditCategories',
356
+ kind: 'const',
357
+ module: 'audit',
358
+ summary: 'Shared audit action categories used by TypeScript types and configuration validation.',
359
+ details: "const AuditCategories = { Administrative: 'administrative', Runtime: 'runtime', " +
360
+ "Security: 'security', DataAccess: 'data-access' } as const;",
361
+ example: 'category: AuditCategories.Administrative',
362
+ seeAlso: ['AuditCategory', 'AuditActionDefinition'],
363
+ },
364
+ {
365
+ name: 'AuditCategory',
366
+ kind: 'type',
367
+ module: 'audit',
368
+ summary: 'String union of supported audit action categories, derived from AuditCategories.',
369
+ details: 'type AuditCategory = (typeof AuditCategories)[keyof typeof AuditCategories];\n\n' +
370
+ "Equivalent to 'administrative' | 'runtime' | 'security' | 'data-access'.",
371
+ seeAlso: ['AuditCategories', 'AuditActionDefinition'],
372
+ },
373
+ {
374
+ name: 'AuditSeverities',
375
+ kind: 'const',
376
+ module: 'audit',
377
+ summary: 'Shared audit action severity values used by TypeScript types and configuration validation.',
378
+ details: "const AuditSeverities = { Info: 'info', Warning: 'warning', Critical: 'critical' } as const;",
379
+ example: 'severity: AuditSeverities.Info',
380
+ seeAlso: ['AuditSeverity', 'AuditActionDefinition'],
381
+ },
382
+ {
383
+ name: 'AuditSeverity',
384
+ kind: 'type',
385
+ module: 'audit',
386
+ summary: 'String union of supported audit action severities, derived from AuditSeverities.',
387
+ details: 'type AuditSeverity = (typeof AuditSeverities)[keyof typeof AuditSeverities];\n\n' +
388
+ "Equivalent to 'info' | 'warning' | 'critical'.",
389
+ seeAlso: ['AuditSeverities', 'AuditActionDefinition'],
390
+ },
391
+ {
392
+ name: 'BuiltInRetentionClasses',
393
+ kind: 'const',
394
+ module: 'audit',
395
+ summary: 'Names of built-in audit retention classes; custom class names remain supported.',
396
+ details: "const BuiltInRetentionClasses = { Standard: 'standard', Security: 'security', Compliance: 'compliance' } as const;\n\n" +
397
+ 'These constants define names, not retention periods. AuditActionDefinition.retentionClass remains a string ' +
398
+ 'so an application can use a custom class such as case-history with a configured retention period.',
399
+ example: 'retentionClass: BuiltInRetentionClasses.Compliance',
400
+ seeAlso: ['AuditActionDefinition', 'auditDefinitions'],
401
+ },
314
402
  // event
315
403
  {
316
404
  name: 'EventService',
@@ -1 +1 @@
1
- {"version":3,"file":"reference.js","sourceRoot":"","sources":["../../../../../libs/adsp-sdk-mcp-server/src/sdk-reference/reference.ts"],"names":[],"mappings":";;;AAaA;;;;GAIG;AACU,QAAA,aAAa,GAAmB;IAC3C,aAAa;IACb;QACE,IA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AAE,eAAe;QACrB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,yFAAyF;QAClG,OAAO,EACL,2GAA2G;YAC3G,yBAAyB;YACzB,4GAA4G;YAC5G,6GAA6G;YAC7G,+FAA+F;YAC/F,sGAAsG;YACtG,mGAAmG;QACrG,OAAO,EACL,4DAA4D;YAC5D,gDAAgD;YAChD,qFAAqF;QACvF,OAAO,EAAE,CAAC,sBAAsB,CAAC;KAClC;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,8EAA8E;QACvF,OAAO,EACL,uEAAuE;YACvE,wGAAwG;YACxG,2GAA2G;QAC7G,OAAO,EAAE,CAAC,eAAe,CAAC;KAC3B;IAED,QAAQ;IACR;QACE,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,sGAAsG;QAC/G,OAAO,EAAE,kDAAkD;KAC5D;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,2EAA2E;QACpF,OAAO,EAAE,6HAA6H;QACtI,OAAO,EAAE,0BAA0B;KACpC;CACF,CAAC"}
1
+ {"version":3,"file":"reference.js","sourceRoot":"","sources":["../../../../../libs/adsp-sdk-mcp-server/src/sdk-reference/reference.ts"],"names":[],"mappings":";;;AAaA;;;;GAIG;AACU,QAAA,aAAa,GAAmB;IAC3C,aAAa;IACb;QACE,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,YAAY;QACpB,OAAO,EACL,wGAAwG;YACxG,uGAAuG;QACzG,OAAO,EACL,gHAAgH;YAChH,2BAA2B;YAC3B,+GAA+G;YAC/G,8GAA8G;YAC9G,2GAA2G;YAC3G,+FAA+F;YAC/F,mDAAmD;QACrD,OAAO,E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