@abgov/adsp-sdk-mcp-server 1.39.0 → 1.39.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"openapi":"3.0.0","info":{"title":"Export service","version":"0.0.0","description":"Export service provides exports of resources to files using jobs."},"paths":{"/export/v1/jobs":{"post":{"tags":["Export"],"description":"Queue a new, asynchronous job to export an API resource to a file. The response is the queued job; poll `GET /export/v1/jobs/{jobId}`, or subscribe to the `export-updates` push service stream, for the result.\n\nRequires the exporter role, or one of the exporter roles configured for the resource's service or API in the `sources` of the export service configuration. The role is checked in the tenant of the request; core users with the role must set `tenantId`. The job is created in that tenant and the export file is uploaded to it.\n","parameters":[{"$ref":"#/components/parameters/ExportTenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CsvExportRequest"},{"$ref":"#/components/schemas/JsonExportRequest"}],"discriminator":{"propertyName":"format","mapping":{"csv":"#/components/schemas/CsvExportRequest","json":"#/components/schemas/JsonExportRequest"}}},"examples":{"csv":{"summary":"Export forms to CSV","value":{"resourceId":"urn:ads:platform:form-service:v1:/forms","format":"csv","filename":"Forms-2026-10-01","fileType":"form-export","params":{"includeData":true,"criteria":"{\"definitionIdEquals\":\"income-support-application\"}"},"resultsPath":"results","formatOptions":{"columns":["id","status",{"key":"data.firstName","header":"First name"}]}}},"json":{"summary":"Export tasks to JSON","value":{"resourceId":"urn:ads:platform:task-service:v1:/queues/benefits/intake/tasks","format":"json","filename":"Tasks-2026-10-01","formatOptions":{"pretty":true,"fields":["id","name","status"]}}}}}}},"responses":{"200":{"description":"Job successfully created and queued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"},"example":{"urn":"urn:ads:platform:export-service:v1:/jobs/a66ccc16-28fc-44fb-a499-d12df0262b8b","id":"a66ccc16-28fc-44fb-a499-d12df0262b8b","status":"queued","result":null}}}},"400":{"description":"Request is invalid. For example, `format` is not csv or json, `resourceId` is not an ADSP URN, or the `fileType` does not exist in the tenant.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportError"},"examples":{"validation":{"summary":"Body parameter failed validation","value":{"errorMessage":"Validation failed with error(s): format (body) - Invalid value"}},"fileType":{"summary":"File type does not exist","value":{"errorMessage":"Specified target file type 'task-export-file' cannot be found."}}}}}},"401":{"$ref":"#/components/responses/ExportUnauthorized"},"403":{"$ref":"#/components/responses/ExportForbidden"}}}},"/export/v1/jobs/{jobId}":{"get":{"tags":["Export"],"description":"Retrieve the status of an export job and, once it is completed, the export file. Jobs are kept for 24 hours after they are created or last updated.\n\nThe user who created the job can always retrieve it. Other users require the exporter role in the tenant of their token. Core users can retrieve only the jobs they created.\n","operationId":"getJob","parameters":[{"name":"jobId","description":"ID of job to retrieve.","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"example":"a66ccc16-28fc-44fb-a499-d12df0262b8b"}],"responses":{"200":{"description":"Job successfully retrieved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"$ref":"#/components/responses/ExportBadRequest"},"401":{"$ref":"#/components/responses/ExportUnauthorized"},"403":{"description":"The user did not create the job and does not have the exporter role.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportError"},"example":{"errorMessage":"User Test User (ID: 3f1b2c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d) not permitted to get export job."}}}},"404":{"$ref":"#/components/responses/ExportNotFound"}}}}},"components":{"securitySchemes":{"accessToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"parameters":{"ExportTenantId":{"name":"tenantId","description":"ID of the tenant to act on. Required for core (platform) users and service accounts; tenant users and service accounts always act on the tenant of their token and this parameter is ignored.\n","in":"query","required":false,"schema":{"type":"string"},"example":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7"}},"responses":{"ExportBadRequest":{"description":"Request is invalid, for example a path or body parameter failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportError"},"example":{"errorMessage":"Validation failed with error(s): format (body) - Invalid value"}}}},"ExportForbidden":{"description":"The user does not have a role permitted to perform the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportError"},"example":{"errorMessage":"User Test User (ID: 3f1b2c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d) not permitted to create export job."}}}},"ExportNotFound":{"description":"The export job does not exist, or it has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportError"},"example":{"errorMessage":"export job with ID 'a66ccc16-28fc-44fb-a499-d12df0262b8b' could not be found."}}}},"ExportUnauthorized":{"description":"Request does not include a valid bearer token.","content":{"text/plain":{"schema":{"type":"string"},"example":"Unauthorized"}}}},"schemas":{"CsvExportRequest":{"allOf":[{"$ref":"#/components/schemas/ExportRequest"},{"type":"object","properties":{"formatOptions":{"description":"CSV Export format options. Records are flattened, so nested properties are referenced with dot notation (for example `data.firstName`). If columns are not set, the columns are taken from the first record.\n","type":"object","properties":{"columns":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"}},"required":["key"]}]},"example":["id","name",{"key":"data.firstName","header":"First name"}]}}}}}]},"ExportError":{"type":"object","properties":{"errorMessage":{"type":"string"}}},"ExportRequest":{"type":"object","properties":{"resourceId":{"type":"string","description":"URN of the API resource to export, for example a collection endpoint of another ADSP service. The export service resolves the URN to a URL using the directory service, and reads it with its own service account (the export-job role).\n","example":"urn:ads:platform:task-service:v1:/tasks"},"params":{"type":"object","description":"Query parameters for the API request of results to export. The export service also sets `tenantId`, `top` (200) and `after` to read each page.\n","example":{"criteria":"{\"statusEquals\":\"Pending\"}"}},"resultsPath":{"type":"string","minLength":1,"maxLength":150,"default":"results","description":"Path (lodash path syntax) to the array of results in the API response. If the path doesn't resolve to an array, an array response is exported as is, and any other response is exported as a single record.\n","example":"results"},"fileType":{"type":"string","nullable":true,"minLength":1,"maxLength":50,"default":"export-file","description":"ID of the [file service](https://api.adsp.alberta.ca/platform/?urls.primaryName=File%20service) file type to which the export file is uploaded. The file type must exist in the tenant. Defaults to the export service `export-file` type, which can be read by users with the exporter role.\n","example":"task-export-file"},"format":{"description":"Export format for the data.","type":"string","enum":["csv","json"],"example":"csv"},"filename":{"description":"Name of the export file. Any file extension is replaced with the extension of the format.\n","type":"string","nullable":true,"minLength":1,"maxLength":100,"default":"exported","example":"Exports-2022-02-19"}},"required":["resourceId","format"]},"Job":{"type":"object","properties":{"id":{"description":"Id of the Job spawned to export. Required when polling to get the status of the Job.","type":"string","format":"uuid","readOnly":true,"example":"a66ccc16-28fc-44fb-a499-d12df0262b8b"},"status":{"type":"string","enum":["queued","completed","failed"],"readOnly":true,"description":"Indicates the status of the export Job."},"urn":{"type":"string","readOnly":true,"description":"Logical URN to use for querying the job status. You can map the URN to a URL using the [ADSP Service SDK's](https://github.com/GovAlta/adsp-monorepo/blob/main/libs/adsp-service-sdk/src/directory/serviceDirectory.ts) getResourceUrl(AdspId\\`urn\\`)","example":"urn:ads:platform:export-service:v1:/jobs/a66ccc16-28fc-44fb-a499-d12df0262b8b"},"result":{"type":"object","nullable":true,"readOnly":true,"description":"The export file. Null until the job is completed.","properties":{"urn":{"type":"string","description":"Logical URN to use for downloading the export file. You can map the URN to a URL using the [ADSP Service SDK's](https://github.com/GovAlta/adsp-monorepo/blob/main/libs/adsp-service-sdk/src/directory/serviceDirectory.ts) getResourceUrl(AdspId\\`urn\\`)","example":"urn:ads:platform:file-service:v1:/files/51091c0d-15ce-4e93-81ab-1c6e546c667c"},"id":{"description":"A `fileId` to be used with the [File Service](https://api.adsp.alberta.ca/platform/?urls.primaryName=File%20service) for downloading the export file.","type":"string","example":"51091c0d-15ce-4e93-81ab-1c6e546c667c"},"filename":{"type":"string","description":"The name of the export file.","example":"Exports-2022-02-19.csv"}}}},"example":{"urn":"urn:ads:platform:export-service:v1:/jobs/a66ccc16-28fc-44fb-a499-d12df0262b8b","id":"a66ccc16-28fc-44fb-a499-d12df0262b8b","status":"completed","result":{"urn":"urn:ads:platform:file-service:v1:/files/51091c0d-15ce-4e93-81ab-1c6e546c667c","id":"51091c0d-15ce-4e93-81ab-1c6e546c667c","filename":"Exports-2022-02-19.csv"}}},"JsonExportRequest":{"allOf":[{"$ref":"#/components/schemas/ExportRequest"},{"type":"object","properties":{"formatOptions":{"description":"JSON Export format options.","type":"object","properties":{"pretty":{"description":"Flag indicating if the output json should be formatted to be easier to read.","type":"boolean"},"fields":{"description":"Properties (lodash path syntax) of each record to include. All properties are included if not set.","type":"array","items":{"type":"string"},"example":["id","name","data.firstName"]}}}}}]}}},"security":[{"accessToken":[]}],"tags":[{"name":"Export","description":"APIs for managing export jobs."}]}
|
|
1
|
+
{"openapi":"3.0.0","info":{"title":"Export service","version":"0.0.0","description":"Export service provides exports of resources to files using jobs."},"paths":{"/export/v1/jobs":{"post":{"tags":["Export"],"description":"Queue a new, asynchronous job to export an API resource to a file. The response is the queued job; poll `GET /export/v1/jobs/{jobId}`, or subscribe to the `export-updates` push service stream, for the result.\n\nRequires the exporter role, or one of the exporter roles configured for the resource's service or API in the `sources` of the export service configuration. The role is checked in the tenant of the request; core users with the role must set `tenantId`. The job is created in that tenant and the export file is uploaded to it.\n","parameters":[{"$ref":"#/components/parameters/ExportTenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CsvExportRequest"},{"$ref":"#/components/schemas/JsonExportRequest"}],"discriminator":{"propertyName":"format","mapping":{"csv":"#/components/schemas/CsvExportRequest","json":"#/components/schemas/JsonExportRequest"}}},"examples":{"csv":{"summary":"Export forms to CSV","value":{"resourceId":"urn:ads:platform:form-service:v1:/forms","format":"csv","filename":"Forms-2026-10-01","fileType":"form-export","params":{"includeData":true,"criteria":"{\"definitionIdEquals\":\"income-support-application\"}"},"resultsPath":"results","formatOptions":{"columns":["id","status",{"key":"data.firstName","header":"First name"}]}}},"json":{"summary":"Export tasks to JSON","value":{"resourceId":"urn:ads:platform:task-service:v1:/queues/benefits/intake/tasks","format":"json","filename":"Tasks-2026-10-01","formatOptions":{"pretty":true,"fields":["id","name","status"]}}}}}}},"responses":{"200":{"description":"Job successfully created and queued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"},"example":{"urn":"urn:ads:platform:export-service:v1:/jobs/a66ccc16-28fc-44fb-a499-d12df0262b8b","id":"a66ccc16-28fc-44fb-a499-d12df0262b8b","status":"queued","result":null}}}},"400":{"description":"Request is invalid. For example, `format` is not csv or json, `resourceId` is not an ADSP URN, or the `fileType` does not exist in the tenant.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportError"},"examples":{"validation":{"summary":"Body parameter failed validation","value":{"errorMessage":"Validation failed with error(s): format (body) - Invalid value"}},"fileType":{"summary":"File type does not exist","value":{"errorMessage":"Specified target file type 'task-export-file' cannot be found."}}}}}},"401":{"$ref":"#/components/responses/ExportUnauthorized"},"403":{"$ref":"#/components/responses/ExportForbidden"}}}},"/export/v1/jobs/{jobId}":{"get":{"tags":["Export"],"description":"Retrieve the status of an export job and, once it is completed, the export file. Jobs are kept for 24 hours after they are created or last updated.\n\nJobs of another tenant respond 404. In the job's tenant, the user who created it can retrieve it, and other users require the exporter role in the tenant of their token. Core users can retrieve only the jobs they created.\n","operationId":"getJob","parameters":[{"name":"jobId","description":"ID of job to retrieve.","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"example":"a66ccc16-28fc-44fb-a499-d12df0262b8b"}],"responses":{"200":{"description":"Job successfully retrieved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"$ref":"#/components/responses/ExportBadRequest"},"401":{"$ref":"#/components/responses/ExportUnauthorized"},"403":{"description":"The user did not create the job and does not have the exporter role.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportError"},"example":{"errorMessage":"User Test User (ID: 3f1b2c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d) not permitted to get export job."}}}},"404":{"$ref":"#/components/responses/ExportNotFound"}}}}},"components":{"securitySchemes":{"accessToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"parameters":{"ExportTenantId":{"name":"tenantId","description":"ID of the tenant to act on. Required for core (platform) users and service accounts; tenant users and service accounts always act on the tenant of their token and this parameter is ignored.\n","in":"query","required":false,"schema":{"type":"string"},"example":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7"}},"responses":{"ExportBadRequest":{"description":"Request is invalid, for example a path or body parameter failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportError"},"example":{"errorMessage":"Validation failed with error(s): format (body) - Invalid value"}}}},"ExportForbidden":{"description":"The user does not have a role permitted to perform the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportError"},"example":{"errorMessage":"User Test User (ID: 3f1b2c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d) not permitted to create export job."}}}},"ExportNotFound":{"description":"The export job does not exist, has expired, or belongs to another tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportError"},"example":{"errorMessage":"export job with ID 'a66ccc16-28fc-44fb-a499-d12df0262b8b' could not be found."}}}},"ExportUnauthorized":{"description":"Request does not include a valid bearer token.","content":{"text/plain":{"schema":{"type":"string"},"example":"Unauthorized"}}}},"schemas":{"CsvExportRequest":{"allOf":[{"$ref":"#/components/schemas/ExportRequest"},{"type":"object","properties":{"formatOptions":{"description":"CSV Export format options. Records are flattened, so nested properties are referenced with dot notation (for example `data.firstName`). If columns are not set, the columns are taken from the first record.\n","type":"object","properties":{"columns":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"}},"required":["key"]}]},"example":["id","name",{"key":"data.firstName","header":"First name"}]}}}}}]},"ExportError":{"type":"object","properties":{"errorMessage":{"type":"string"}}},"ExportRequest":{"type":"object","properties":{"resourceId":{"type":"string","description":"URN of the API resource to export, for example a collection endpoint of another ADSP service. The export service resolves the URN to a URL using the directory service, and reads it with its own service account (the export-job role).\n","example":"urn:ads:platform:task-service:v1:/tasks"},"params":{"type":"object","description":"Query parameters for the API request of results to export. The export service also sets `tenantId`, `top` (200) and `after` to read each page.\n","example":{"criteria":"{\"statusEquals\":\"Pending\"}"}},"resultsPath":{"type":"string","minLength":1,"maxLength":150,"default":"results","description":"Path (lodash path syntax) to the array of results in the API response. If the path doesn't resolve to an array, an array response is exported as is, and any other response is exported as a single record.\n","example":"results"},"fileType":{"type":"string","nullable":true,"minLength":1,"maxLength":50,"default":"export-file","description":"ID of the [file service](https://api.adsp.alberta.ca/platform/?urls.primaryName=File%20service) file type to which the export file is uploaded. The file type must exist in the tenant. Defaults to the export service `export-file` type, which can be read by users with the exporter role.\n","example":"task-export-file"},"format":{"description":"Export format for the data.","type":"string","enum":["csv","json"],"example":"csv"},"filename":{"description":"Name of the export file. Any file extension is replaced with the extension of the format.\n","type":"string","nullable":true,"minLength":1,"maxLength":100,"default":"exported","example":"Exports-2022-02-19"}},"required":["resourceId","format"]},"Job":{"type":"object","properties":{"id":{"description":"Id of the Job spawned to export. Required when polling to get the status of the Job.","type":"string","format":"uuid","readOnly":true,"example":"a66ccc16-28fc-44fb-a499-d12df0262b8b"},"status":{"type":"string","enum":["queued","completed","failed"],"readOnly":true,"description":"Indicates the status of the export Job."},"urn":{"type":"string","readOnly":true,"description":"Logical URN to use for querying the job status. You can map the URN to a URL using the [ADSP Service SDK's](https://github.com/GovAlta/adsp-monorepo/blob/main/libs/adsp-service-sdk/src/directory/serviceDirectory.ts) getResourceUrl(AdspId\\`urn\\`)","example":"urn:ads:platform:export-service:v1:/jobs/a66ccc16-28fc-44fb-a499-d12df0262b8b"},"result":{"type":"object","nullable":true,"readOnly":true,"description":"The export file. Null until the job is completed.","properties":{"urn":{"type":"string","description":"Logical URN to use for downloading the export file. You can map the URN to a URL using the [ADSP Service SDK's](https://github.com/GovAlta/adsp-monorepo/blob/main/libs/adsp-service-sdk/src/directory/serviceDirectory.ts) getResourceUrl(AdspId\\`urn\\`)","example":"urn:ads:platform:file-service:v1:/files/51091c0d-15ce-4e93-81ab-1c6e546c667c"},"id":{"description":"A `fileId` to be used with the [File Service](https://api.adsp.alberta.ca/platform/?urls.primaryName=File%20service) for downloading the export file.","type":"string","example":"51091c0d-15ce-4e93-81ab-1c6e546c667c"},"filename":{"type":"string","description":"The name of the export file.","example":"Exports-2022-02-19.csv"}}}},"example":{"urn":"urn:ads:platform:export-service:v1:/jobs/a66ccc16-28fc-44fb-a499-d12df0262b8b","id":"a66ccc16-28fc-44fb-a499-d12df0262b8b","status":"completed","result":{"urn":"urn:ads:platform:file-service:v1:/files/51091c0d-15ce-4e93-81ab-1c6e546c667c","id":"51091c0d-15ce-4e93-81ab-1c6e546c667c","filename":"Exports-2022-02-19.csv"}}},"JsonExportRequest":{"allOf":[{"$ref":"#/components/schemas/ExportRequest"},{"type":"object","properties":{"formatOptions":{"description":"JSON Export format options.","type":"object","properties":{"pretty":{"description":"Flag indicating if the output json should be formatted to be easier to read.","type":"boolean"},"fields":{"description":"Properties (lodash path syntax) of each record to include. All properties are included if not set.","type":"array","items":{"type":"string"},"example":["id","name","data.firstName"]}}}}}]}}},"security":[{"accessToken":[]}],"tags":[{"name":"Export","description":"APIs for managing export jobs."}]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/adsp-sdk-mcp-server",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.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",
|
package/provenance.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"kind": "release",
|
|
3
|
-
"builtAt": "2026-11-
|
|
4
|
-
"sourceCommit": "
|
|
5
|
-
"latestRelease": "1.
|
|
3
|
+
"builtAt": "2026-11-18T22:40:55.667Z",
|
|
4
|
+
"sourceCommit": "17b5dfae4cf138e35a9396c92729b69ed8872121",
|
|
5
|
+
"latestRelease": "1.39.1",
|
|
6
6
|
"docsCommit": "1dd532f1f2692b5648143264734a12cd254e19a6",
|
|
7
7
|
"sdk": {
|
|
8
8
|
"version": "2.36.1",
|