@abgov/adsp-sdk-mcp-server 1.42.0 → 1.42.1

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":"PDF Service","version":"0.0.0","description":"The **PDF Service** allows applications to create custom PDF documents for their end users to download and use. The service itself has two components:\n1. A template editor, and\n2. APIs to combine a template with data in order to generate a customized, downloadable PDF.\n\nAuthoring a template is done through the [PDF Service Webapp](https://adsp.alberta.ca/admin/services/pdf), which facilitates\na *change and test* type of development cycle. Once you are satisfied with a template you can use it's *template-id* in API calls to:\n* Initiate asynchronous *Jobs* to generate PDF documents, based on a template and data supplied by the application. Depending on the complexity, it can take seconds to generate one.\n* Poll the status of a PDF Generation Job, and\n* Get the file ID of the completed PDF for use with the [File Service APIs](https://api.adsp.alberta.ca/platform/?urls.primaryName=File%20service) for managing the PDF file.\n* Without specifying the file type id in the PDF generation API, the PDF files generated will be stored within a default file type. The default file type comes with a retention period of 30 days. This means the PDF file will be automatically deleted in 30 days. To overcome the default retention rule, we shall create our own file type in the file service and specify file type id in the PDF generation API.\n\nFor more, in-depth information on how to use the PDF Service please see the [tutorial](https://govalta.github.io/adsp-monorepo/tutorials/pdf-service/introduction.html).\n"},"paths":{"/pdf/v1/jobs":{"post":{"tags":["Generator"],"description":"Initiate a new, asynchronous Job to generate a PDF document from a tenant or platform template. Requires the `urn:ads:platform:pdf-service:pdf-generator` role, in the tenant or as a core user (for example a platform service account). Core callers must set tenantId. The job is queued and a `pdf-generation-queued` event is sent; the generated PDF is uploaded to the file service, and `pdf-generated` or `pdf-generation-failed` is sent when the job finishes. Job state is kept for about 24 hours after its last update, so your application must read the file ID of the new PDF document within that time, e.g. by polling GET /pdf/v1/jobs/{jobId} or by listening on the push service `pdf-generation-updates` stream.\n","parameters":[{"$ref":"#/components/parameters/PdfTenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/GenerateOperation"}],"discriminator":{"propertyName":"operation","mapping":{"generate":"#/components/schemas/GenerateOperation"}}},"example":{"operation":"generate","templateId":"submission-summary","filename":"submission-summary-1234.pdf","fileType":"submission-documents","data":{"applicant":{"name":"Test User"}}}}}},"responses":{"200":{"description":"Job successfully created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"},"example":{"urn":"urn:ads:platform:pdf-service:v1:/jobs/7696ed03-977e-4bde-af54-d823be00ffad","id":"7696ed03-977e-4bde-af54-d823be00ffad","status":"queued","result":null}}},"links":{"getJobById":{"description":"The `id` returned can be used as the `jobId` parameter in `GET /pdf/v1/jobs/{jobId}`","operationId":"getJob","parameters":{"jobId":"$response.body#/id"}}}},"400":{"description":"Request is invalid, for example the body failed validation, or the specified file type cannot be found in the tenant.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfError"},"example":{"errorMessage":"Specified target file type 'submission-documents' cannot be found."}}}},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"403":{"$ref":"#/components/responses/PdfForbidden"},"404":{"$ref":"#/components/responses/PdfTemplateNotFound"}}}},"/pdf/v1/jobs/{jobId}":{"get":{"tags":["Generator"],"description":"Retrieve the specified job's status and, once completed, the generated file. Requires the `urn:ads:platform:pdf-service:pdf-generator` role in the job's tenant. Core users and service accounts are not allowed (403), and a job of another tenant responds 403. Jobs expire about 24 hours after their last update and then respond 404.\n","operationId":"getJob","parameters":[{"name":"jobId","description":"ID of job to retrieve.","in":"path","required":true,"schema":{"type":"string","format":"uuid","example":"7696ed03-977e-4bde-af54-d823be00ffad"}}],"responses":{"200":{"description":"Job successfully retrieved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"$ref":"#/components/responses/PdfBadRequest"},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"403":{"$ref":"#/components/responses/PdfForbidden"},"404":{"description":"Job not found, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfError"},"example":{"errorMessage":"Generated PDF with ID '7696ed03-977e-4bde-af54-d823be00ffad' could not be found."}}}}}}},"/pdf/v1/templates":{"get":{"tags":["Templates"],"description":"Retrieves the PDF templates available to the tenant: the tenant's own templates combined with platform templates. A platform template replaces a tenant template with the same ID. Any authenticated user of the tenant can call it; no specific role is required. Core users without a tenantId get only the platform templates.\n","parameters":[{"$ref":"#/components/parameters/PdfTenantId"}],"responses":{"200":{"description":"A list of PDF templates successfully retrieved.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}}},"401":{"$ref":"#/components/responses/PdfUnauthorized"}}},"post":{"tags":["Templates"],"description":"Creates a new PDF template for the tenant. Requires the `urn:ads:platform:pdf-service:pdf-admin` role, in the tenant or as a core user. The template ID is derived from the name. Core callers must set tenantId.\n","parameters":[{"$ref":"#/components/parameters/PdfTenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the template. Can contain letters, numbers, spaces, and hyphens. Leading and trailing whitespace is removed.","minLength":1,"maxLength":50,"pattern":"^[a-zA-Z0-9 -]+$","example":"Submission summary"},"description":{"type":"string","description":"Description of the template's purpose. Defaults to an empty string.","example":"Provides a summary of the submission"},"template":{"type":"string","description":"Initial HTML body content for the template. Defaults to an empty string.","example":"<p>Submitted by {{data.applicant.name}}</p>"},"header":{"type":"string","description":"Initial HTML header content for the template.","example":"<h1>Submission summary</h1>"},"footer":{"type":"string","description":"Initial HTML footer content for the template.","example":"<p>Government of Alberta</p>"},"additionalStyles":{"type":"string","description":"Initial CSS styles shared across template, header, and footer.","example":".label { font-weight: bold; }"},"variables":{"type":"string","description":"Initial variable assignments for the template.","example":"{\"applicant\": {\"name\": \"Test User\"}}"}}},"example":{"name":"Submission summary","description":"Provides a summary of the submission","template":"<p>Submitted by {{data.applicant.name}}</p>"}}}},"responses":{"201":{"description":"PDF template successfully created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"$ref":"#/components/responses/PdfBadRequest"},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"403":{"$ref":"#/components/responses/PdfForbidden"},"409":{"description":"A tenant or platform template with the same ID already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateConflict"}}}}}}},"/pdf/v1/templates/{templateId}":{"get":{"tags":["Templates"],"description":"Retrieve the specified PDF template, from the tenant's templates or the platform templates. Any authenticated user of the tenant can call it; no specific role is required.\n","parameters":[{"$ref":"#/components/parameters/PdfTemplateId"},{"$ref":"#/components/parameters/PdfTenantId"}],"responses":{"200":{"description":"The PDF template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"$ref":"#/components/responses/PdfBadRequest"},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"404":{"$ref":"#/components/responses/PdfTemplateNotFound"}}},"patch":{"tags":["Templates"],"description":"Update an existing PDF template of the tenant. Only the fields included in the request body are updated; all other fields are left unchanged, and the ID does not change when the name does. Requires the `urn:ads:platform:pdf-service:pdf-admin` role, in the tenant or as a core user. The template is looked up before the role is checked, so an unknown ID responds 404 to any caller. Core callers must set tenantId. Responds 201, not 200, on success.\n","parameters":[{"$ref":"#/components/parameters/PdfTemplateId"},{"$ref":"#/components/parameters/PdfTenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the template.","minLength":1,"maxLength":50,"example":"Submission summary"},"description":{"type":"string","description":"Description of the template's purpose.","example":"Provides a summary of the submission"},"template":{"type":"string","description":"The template body, designed with HTML/CSS.","example":"<p>Submitted by {{data.applicant.name}}</p>"},"header":{"type":"string","description":"Page header, designed with HTML/CSS.","example":"<h1>Submission summary</h1>"},"footer":{"type":"string","description":"Page footer, designed with HTML/CSS.","example":"<p>Government of Alberta</p>"},"additionalStyles":{"type":"string","description":"CSS styles shared across the template, header, and footer.","example":".label { font-weight: bold; }"},"variables":{"type":"string","description":"Variable assignments available to the template.","example":"{\"applicant\": {\"name\": \"Test User\"}}"}}},"example":{"template":"<p>Submitted by {{data.applicant.name}} on {{formatDate data.submitted}}</p>","additionalStyles":".label { font-weight: bold; }"}}}},"responses":{"201":{"description":"The PDF template was successfully updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"$ref":"#/components/responses/PdfBadRequest"},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"403":{"$ref":"#/components/responses/PdfForbidden"},"404":{"$ref":"#/components/responses/PdfTemplateNotFound"}}},"delete":{"tags":["Templates"],"description":"Delete the specified PDF template of the tenant. Requires the `urn:ads:platform:pdf-service:pdf-admin` role, in the tenant or as a core user. The template is looked up before the role is checked, so an unknown ID responds 404 to any caller. Core callers must set tenantId.\n","parameters":[{"$ref":"#/components/parameters/PdfTemplateId"},{"$ref":"#/components/parameters/PdfTenantId"}],"responses":{"204":{"description":"The PDF template was successfully deleted."},"400":{"$ref":"#/components/responses/PdfBadRequest"},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"403":{"$ref":"#/components/responses/PdfForbidden"},"404":{"$ref":"#/components/responses/PdfTemplateNotFound"}}}}},"components":{"securitySchemes":{"accessToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"parameters":{"PdfTemplateId":{"name":"templateId","in":"path","required":true,"description":"ID of the template. The ID is derived from the template name when it is created (trimmed, lower case, with whitespace replaced by hyphens), and is shown in the template editor of the tenant admin app.\n","schema":{"type":"string","minLength":1,"maxLength":50,"example":"submission-summary"}},"PdfTenantId":{"name":"tenantId","in":"query","required":false,"description":"Tenant to act on, as a tenant URN. Only read 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 for them. Core callers must set it on every operation that acts on tenant templates or jobs.\n","schema":{"type":"string","example":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7"}}},"responses":{"PdfBadRequest":{"description":"Request is invalid, for example a parameter or the request body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfError"},"example":{"errorMessage":"Validation failed with error(s): name (body) - name is required"}}}},"PdfForbidden":{"description":"User does not have the role required for the operation, or the resource belongs to another tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfError"},"example":{"errorMessage":"User Test User (ID: 1234) not permitted to generate pdf."}}}},"PdfTemplateNotFound":{"description":"PDF template not found in the tenant or platform templates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfError"},"example":{"errorMessage":"PDF Template with ID 'submission-summary' could not be found."}}}},"PdfUnauthorized":{"description":"Request does not include a valid bearer token."}},"schemas":{"GenerateOperation":{"type":"object","properties":{"operation":{"type":"string","enum":["generate"],"description":"The operation will always be *generate*."},"fileType":{"type":"string","minLength":1,"maxLength":50,"example":"submission-documents","description":"ID of the file service file type that the generated PDF is uploaded as. It must exist in the tenant. Defaults to `generated-pdf`, which deletes files after 30 days.\n"},"templateId":{"description":"Identifies the template to use when generating the PDF document.","type":"string","minLength":1,"maxLength":50,"example":"submission-summary"},"recordId":{"description":"An arbitrary identifier that can be used by your application to cross reference the PDF document being generated. Set as the record ID of the uploaded file. Defaults to the job ID.\n","type":"string","example":"application-1234"},"context":{"description":"The context in which the PDF is being generated. This is an arbitrary JSON object that is included in the context of the job's domain events.\n","example":{"applicationId":"application-1234"},"type":"object"},"data":{"description":"The variable (Handlebars) assignments to be applied to the template when generating a PDF. This is an arbitrary JSON object, but its properties must match those expected by the template.","example":{"applicant":{"name":"Test User"}},"type":"object"},"filename":{"description":"The name given to the generated PDF document. Any extension is replaced with `.pdf`.\n","type":"string","minLength":1,"maxLength":60,"example":"submission-summary-1234.pdf"}},"required":["operation","templateId","filename"],"example":{"operation":"generate","templateId":"submission-summary","filename":"submission-summary-1234.pdf","fileType":"submission-documents","recordId":"application-1234","context":{"applicationId":"application-1234"},"data":{"applicant":{"name":"Test User"}}}},"Job":{"type":"object","properties":{"id":{"description":"Id of the Job spawned to generate a PDF. Required when polling to get the status of the Job.","type":"string","format":"uuid","readOnly":true,"example":"7696ed03-977e-4bde-af54-d823be00ffad"},"status":{"type":"string","enum":["queued","completed","failed"],"readOnly":true,"description":"Indicates the status of the PDF generation Job. A job is queued when it is created, and changes to completed when the PDF is uploaded to the file service, or to failed if generation fails.\n"},"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:pdf-service:v1:/jobs/7696ed03-977e-4bde-af54-d823be00ffad"},"result":{"type":"object","nullable":true,"readOnly":true,"description":"The generated file. Null until the job is completed.","properties":{"urn":{"type":"string","description":"Logical URN to use for downloading the PDF. 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/54e22556-d453-4626-ac6b-9bcadc577901"},"id":{"description":"A `fileId` to be used with the [File Service](https://api.adsp.alberta.ca/platform/?urls.primaryName=File%20service) for downloading the PDF.","type":"string","example":"54e22556-d453-4626-ac6b-9bcadc577901"},"filename":{"type":"string","description":"The name of the PDF file.","example":"submission-summary-1234.pdf"}}}},"example":{"urn":"urn:ads:platform:pdf-service:v1:/jobs/7696ed03-977e-4bde-af54-d823be00ffad","id":"7696ed03-977e-4bde-af54-d823be00ffad","status":"completed","result":{"urn":"urn:ads:platform:file-service:v1:/files/54e22556-d453-4626-ac6b-9bcadc577901","id":"54e22556-d453-4626-ac6b-9bcadc577901","filename":"submission-summary-1234.pdf"}}},"PdfError":{"type":"object","properties":{"errorMessage":{"type":"string","example":"PDF Template with ID 'submission-summary' could not be found."}}},"Template":{"type":"object","description":"A PDF template. Templates are stored in the configuration service under platform:pdf-service. Template content is HTML and CSS with Handlebars expressions, evaluated with a context of { data }.\n","properties":{"id":{"type":"string","description":"The template ID","readOnly":true,"example":"submission-summary"},"name":{"type":"string","description":"The name of the template","example":"Submission summary"},"description":{"type":"string","description":"The purpose of the template","example":"Provides a summary of the submission"},"template":{"type":"string","description":"The template body, designed with HTML/CSS","example":"<p>Submitted by {{data.applicant.name}}</p>"},"header":{"type":"string","description":"Page headers, designed with HTML/CSS","example":"<h1>Submission summary</h1>"},"footer":{"type":"string","description":"Page footers, designed with HTML/CSS","example":"<p>Government of Alberta</p>"},"additionalStyles":{"type":"string","description":"CSS styles shared across the template, header, and footer.","example":".label { font-weight: bold; }"},"variables":{"type":"string","description":"Variable assignments available to the template, as a JSON string.","example":"{\"applicant\": {\"name\": \"Test User\"}}"}},"example":{"id":"submission-summary","name":"Submission summary","description":"Provides a summary of the submission","template":"<p>Submitted by {{data.applicant.name}}</p>","header":"<h1>Submission summary</h1>","footer":"<p>Government of Alberta</p>","additionalStyles":".label { font-weight: bold; }","variables":"{\"applicant\": {\"name\": \"Test User\"}}"}},"TemplateConflict":{"type":"object","description":"Response body when a template with the same ID already exists. Note that the property is `error`.","properties":{"error":{"type":"string"}},"example":{"error":"PDF template 'Submission summary' already exists."}}}},"security":[{"accessToken":[]}],"tags":[{"name":"Templates","description":"APIs for managing PDF templates."},{"name":"Generator","description":"APIs to manage asynchronous jobs for generating PDF documents"}]}
1
+ {"openapi":"3.0.0","info":{"title":"PDF Service","version":"0.0.0","description":"The **PDF Service** allows applications to create custom PDF documents for their end users to download and use. The service itself has two components:\n1. A template editor, and\n2. APIs to combine a template with data in order to generate a customized, downloadable PDF.\n\nAuthoring a template is done through the [PDF Service Webapp](https://adsp.alberta.ca/admin/services/pdf), which facilitates\na *change and test* type of development cycle. Once you are satisfied with a template you can use it's *template-id* in API calls to:\n* Initiate asynchronous *Jobs* to generate PDF documents, based on a template and data supplied by the application. Depending on the complexity, it can take seconds to generate one.\n* Poll the status of a PDF Generation Job, and\n* Get the file ID of the completed PDF for use with the [File Service APIs](https://api.adsp.alberta.ca/platform/?urls.primaryName=File%20service) for managing the PDF file.\n* Without specifying the file type id in the PDF generation API, the PDF files generated will be stored within a default file type. The default file type comes with a retention period of 30 days. This means the PDF file will be automatically deleted in 30 days. To overcome the default retention rule, we shall create our own file type in the file service and specify file type id in the PDF generation API.\n\nFor more, in-depth information on how to use the PDF Service please see the [tutorial](https://govalta.github.io/adsp-monorepo/tutorials/pdf-service/introduction.html).\n"},"paths":{"/pdf/v1/jobs":{"post":{"tags":["Generator"],"description":"Initiate a new, asynchronous Job to generate a PDF document from a tenant or platform template. Requires the `urn:ads:platform:pdf-service:pdf-generator` role, in the tenant or as a core user (for example a platform service account). Core callers must set tenantId. The job is queued and a `pdf-generation-queued` event is sent; the generated PDF is uploaded to the file service, and `pdf-generated` or `pdf-generation-failed` is sent when the job finishes. Job state is kept for about 24 hours after its last update, so your application must read the file ID of the new PDF document within that time, e.g. by polling GET /pdf/v1/jobs/{jobId} or by listening on the push service `pdf-generation-updates` stream.\n","parameters":[{"$ref":"#/components/parameters/PdfTenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/GenerateOperation"}],"discriminator":{"propertyName":"operation","mapping":{"generate":"#/components/schemas/GenerateOperation"}}},"example":{"operation":"generate","templateId":"submission-summary","filename":"submission-summary-1234.pdf","fileType":"submission-documents","data":{"applicant":{"name":"Test User"}}}}}},"responses":{"200":{"description":"Job successfully created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"},"example":{"urn":"urn:ads:platform:pdf-service:v1:/jobs/7696ed03-977e-4bde-af54-d823be00ffad","id":"7696ed03-977e-4bde-af54-d823be00ffad","status":"queued","result":null}}},"links":{"getJobById":{"description":"The `id` returned can be used as the `jobId` parameter in `GET /pdf/v1/jobs/{jobId}`","operationId":"getJob","parameters":{"jobId":"$response.body#/id"}}}},"400":{"description":"Request is invalid, for example the body failed validation, or the specified file type cannot be found in the tenant.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfError"},"example":{"errorMessage":"Specified target file type 'submission-documents' cannot be found."}}}},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"403":{"$ref":"#/components/responses/PdfForbidden"},"404":{"$ref":"#/components/responses/PdfTemplateNotFound"}}}},"/pdf/v1/jobs/{jobId}":{"get":{"tags":["Generator"],"description":"Retrieve the specified job's status and, once completed, the generated file. Requires the `urn:ads:platform:pdf-service:pdf-generator` role, in the job's tenant or as a core user (for example a platform service account). Core callers must set tenantId. A job of another tenant responds 404, the same as an unknown job. Jobs expire about 24 hours after their last update and then respond 404.\n","operationId":"getJob","parameters":[{"$ref":"#/components/parameters/PdfTenantId"},{"name":"jobId","description":"ID of job to retrieve.","in":"path","required":true,"schema":{"type":"string","format":"uuid","example":"7696ed03-977e-4bde-af54-d823be00ffad"}}],"responses":{"200":{"description":"Job successfully retrieved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"$ref":"#/components/responses/PdfBadRequest"},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"403":{"$ref":"#/components/responses/PdfForbidden"},"404":{"description":"Job not found, expired, or belongs to another tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfError"},"example":{"errorMessage":"Generated PDF with ID '7696ed03-977e-4bde-af54-d823be00ffad' could not be found."}}}}}}},"/pdf/v1/templates":{"get":{"tags":["Templates"],"description":"Retrieves the PDF templates available to the tenant: the tenant's own templates combined with platform templates. A platform template replaces a tenant template with the same ID. Any authenticated user of the tenant can call it; no specific role is required. Core users without a tenantId get only the platform templates.\n","parameters":[{"$ref":"#/components/parameters/PdfTenantId"}],"responses":{"200":{"description":"A list of PDF templates successfully retrieved.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}}},"401":{"$ref":"#/components/responses/PdfUnauthorized"}}},"post":{"tags":["Templates"],"description":"Creates a new PDF template for the tenant. Requires the `urn:ads:platform:pdf-service:pdf-admin` role, in the tenant or as a core user. The template ID is derived from the name. Core callers must set tenantId.\n","parameters":[{"$ref":"#/components/parameters/PdfTenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the template. Can contain letters, numbers, spaces, and hyphens. Leading and trailing whitespace is removed.","minLength":1,"maxLength":50,"pattern":"^[a-zA-Z0-9 -]+$","example":"Submission summary"},"description":{"type":"string","description":"Description of the template's purpose. Defaults to an empty string.","example":"Provides a summary of the submission"},"template":{"type":"string","description":"Initial HTML body content for the template. Defaults to an empty string.","example":"<p>Submitted by {{data.applicant.name}}</p>"},"header":{"type":"string","description":"Initial HTML header content for the template.","example":"<h1>Submission summary</h1>"},"footer":{"type":"string","description":"Initial HTML footer content for the template.","example":"<p>Government of Alberta</p>"},"additionalStyles":{"type":"string","description":"Initial CSS styles shared across template, header, and footer.","example":".label { font-weight: bold; }"},"variables":{"type":"string","description":"Initial variable assignments for the template.","example":"{\"applicant\": {\"name\": \"Test User\"}}"}}},"example":{"name":"Submission summary","description":"Provides a summary of the submission","template":"<p>Submitted by {{data.applicant.name}}</p>"}}}},"responses":{"201":{"description":"PDF template successfully created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"$ref":"#/components/responses/PdfBadRequest"},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"403":{"$ref":"#/components/responses/PdfForbidden"},"409":{"description":"A tenant or platform template with the same ID already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateConflict"}}}}}}},"/pdf/v1/templates/{templateId}":{"get":{"tags":["Templates"],"description":"Retrieve the specified PDF template, from the tenant's templates or the platform templates. Any authenticated user of the tenant can call it; no specific role is required.\n","parameters":[{"$ref":"#/components/parameters/PdfTemplateId"},{"$ref":"#/components/parameters/PdfTenantId"}],"responses":{"200":{"description":"The PDF template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"$ref":"#/components/responses/PdfBadRequest"},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"404":{"$ref":"#/components/responses/PdfTemplateNotFound"}}},"patch":{"tags":["Templates"],"description":"Update an existing PDF template of the tenant. Only the fields included in the request body are updated; all other fields are left unchanged, and the ID does not change when the name does. Requires the `urn:ads:platform:pdf-service:pdf-admin` role, in the tenant or as a core user. The template is looked up before the role is checked, so an unknown ID responds 404 to any caller. Core callers must set tenantId. Responds 201, not 200, on success.\n","parameters":[{"$ref":"#/components/parameters/PdfTemplateId"},{"$ref":"#/components/parameters/PdfTenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the template.","minLength":1,"maxLength":50,"example":"Submission summary"},"description":{"type":"string","description":"Description of the template's purpose.","example":"Provides a summary of the submission"},"template":{"type":"string","description":"The template body, designed with HTML/CSS.","example":"<p>Submitted by {{data.applicant.name}}</p>"},"header":{"type":"string","description":"Page header, designed with HTML/CSS.","example":"<h1>Submission summary</h1>"},"footer":{"type":"string","description":"Page footer, designed with HTML/CSS.","example":"<p>Government of Alberta</p>"},"additionalStyles":{"type":"string","description":"CSS styles shared across the template, header, and footer.","example":".label { font-weight: bold; }"},"variables":{"type":"string","description":"Variable assignments available to the template.","example":"{\"applicant\": {\"name\": \"Test User\"}}"}}},"example":{"template":"<p>Submitted by {{data.applicant.name}} on {{formatDate data.submitted}}</p>","additionalStyles":".label { font-weight: bold; }"}}}},"responses":{"201":{"description":"The PDF template was successfully updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"$ref":"#/components/responses/PdfBadRequest"},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"403":{"$ref":"#/components/responses/PdfForbidden"},"404":{"$ref":"#/components/responses/PdfTemplateNotFound"}}},"delete":{"tags":["Templates"],"description":"Delete the specified PDF template of the tenant. Requires the `urn:ads:platform:pdf-service:pdf-admin` role, in the tenant or as a core user. The template is looked up before the role is checked, so an unknown ID responds 404 to any caller. Core callers must set tenantId.\n","parameters":[{"$ref":"#/components/parameters/PdfTemplateId"},{"$ref":"#/components/parameters/PdfTenantId"}],"responses":{"204":{"description":"The PDF template was successfully deleted."},"400":{"$ref":"#/components/responses/PdfBadRequest"},"401":{"$ref":"#/components/responses/PdfUnauthorized"},"403":{"$ref":"#/components/responses/PdfForbidden"},"404":{"$ref":"#/components/responses/PdfTemplateNotFound"}}}}},"components":{"securitySchemes":{"accessToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"parameters":{"PdfTemplateId":{"name":"templateId","in":"path","required":true,"description":"ID of the template. The ID is derived from the template name when it is created (trimmed, lower case, with whitespace replaced by hyphens), and is shown in the template editor of the tenant admin app.\n","schema":{"type":"string","minLength":1,"maxLength":50,"example":"submission-summary"}},"PdfTenantId":{"name":"tenantId","in":"query","required":false,"description":"Tenant to act on, as a tenant URN. Only read 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 for them. Core callers must set it on every operation that acts on tenant templates or jobs.\n","schema":{"type":"string","example":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7"}}},"responses":{"PdfBadRequest":{"description":"Request is invalid, for example a parameter or the request body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfError"},"example":{"errorMessage":"Validation failed with error(s): name (body) - name is required"}}}},"PdfForbidden":{"description":"User does not have the role required for the operation, or the resource belongs to another tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfError"},"example":{"errorMessage":"User Test User (ID: 1234) not permitted to generate pdf."}}}},"PdfTemplateNotFound":{"description":"PDF template not found in the tenant or platform templates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfError"},"example":{"errorMessage":"PDF Template with ID 'submission-summary' could not be found."}}}},"PdfUnauthorized":{"description":"Request does not include a valid bearer token."}},"schemas":{"GenerateOperation":{"type":"object","properties":{"operation":{"type":"string","enum":["generate"],"description":"The operation will always be *generate*."},"fileType":{"type":"string","minLength":1,"maxLength":50,"example":"submission-documents","description":"ID of the file service file type that the generated PDF is uploaded as. It must exist in the tenant. Defaults to `generated-pdf`, which deletes files after 30 days.\n"},"templateId":{"description":"Identifies the template to use when generating the PDF document.","type":"string","minLength":1,"maxLength":50,"example":"submission-summary"},"recordId":{"description":"An arbitrary identifier that can be used by your application to cross reference the PDF document being generated. Set as the record ID of the uploaded file. Defaults to the job ID.\n","type":"string","example":"application-1234"},"context":{"description":"The context in which the PDF is being generated. This is an arbitrary JSON object that is included in the context of the job's domain events.\n","example":{"applicationId":"application-1234"},"type":"object"},"data":{"description":"The variable (Handlebars) assignments to be applied to the template when generating a PDF. This is an arbitrary JSON object, but its properties must match those expected by the template.","example":{"applicant":{"name":"Test User"}},"type":"object"},"filename":{"description":"The name given to the generated PDF document. Any extension is replaced with `.pdf`.\n","type":"string","minLength":1,"maxLength":60,"example":"submission-summary-1234.pdf"}},"required":["operation","templateId","filename"],"example":{"operation":"generate","templateId":"submission-summary","filename":"submission-summary-1234.pdf","fileType":"submission-documents","recordId":"application-1234","context":{"applicationId":"application-1234"},"data":{"applicant":{"name":"Test User"}}}},"Job":{"type":"object","properties":{"id":{"description":"Id of the Job spawned to generate a PDF. Required when polling to get the status of the Job.","type":"string","format":"uuid","readOnly":true,"example":"7696ed03-977e-4bde-af54-d823be00ffad"},"status":{"type":"string","enum":["queued","completed","failed"],"readOnly":true,"description":"Indicates the status of the PDF generation Job. A job is queued when it is created, and changes to completed when the PDF is uploaded to the file service, or to failed if generation fails.\n"},"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:pdf-service:v1:/jobs/7696ed03-977e-4bde-af54-d823be00ffad"},"result":{"type":"object","nullable":true,"readOnly":true,"description":"The generated file. Null until the job is completed.","properties":{"urn":{"type":"string","description":"Logical URN to use for downloading the PDF. 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/54e22556-d453-4626-ac6b-9bcadc577901"},"id":{"description":"A `fileId` to be used with the [File Service](https://api.adsp.alberta.ca/platform/?urls.primaryName=File%20service) for downloading the PDF.","type":"string","example":"54e22556-d453-4626-ac6b-9bcadc577901"},"filename":{"type":"string","description":"The name of the PDF file.","example":"submission-summary-1234.pdf"}}}},"example":{"urn":"urn:ads:platform:pdf-service:v1:/jobs/7696ed03-977e-4bde-af54-d823be00ffad","id":"7696ed03-977e-4bde-af54-d823be00ffad","status":"completed","result":{"urn":"urn:ads:platform:file-service:v1:/files/54e22556-d453-4626-ac6b-9bcadc577901","id":"54e22556-d453-4626-ac6b-9bcadc577901","filename":"submission-summary-1234.pdf"}}},"PdfError":{"type":"object","properties":{"errorMessage":{"type":"string","example":"PDF Template with ID 'submission-summary' could not be found."}}},"Template":{"type":"object","description":"A PDF template. Templates are stored in the configuration service under platform:pdf-service. Template content is HTML and CSS with Handlebars expressions, evaluated with a context of { data }.\n","properties":{"id":{"type":"string","description":"The template ID","readOnly":true,"example":"submission-summary"},"name":{"type":"string","description":"The name of the template","example":"Submission summary"},"description":{"type":"string","description":"The purpose of the template","example":"Provides a summary of the submission"},"template":{"type":"string","description":"The template body, designed with HTML/CSS","example":"<p>Submitted by {{data.applicant.name}}</p>"},"header":{"type":"string","description":"Page headers, designed with HTML/CSS","example":"<h1>Submission summary</h1>"},"footer":{"type":"string","description":"Page footers, designed with HTML/CSS","example":"<p>Government of Alberta</p>"},"additionalStyles":{"type":"string","description":"CSS styles shared across the template, header, and footer.","example":".label { font-weight: bold; }"},"variables":{"type":"string","description":"Variable assignments available to the template, as a JSON string.","example":"{\"applicant\": {\"name\": \"Test User\"}}"}},"example":{"id":"submission-summary","name":"Submission summary","description":"Provides a summary of the submission","template":"<p>Submitted by {{data.applicant.name}}</p>","header":"<h1>Submission summary</h1>","footer":"<p>Government of Alberta</p>","additionalStyles":".label { font-weight: bold; }","variables":"{\"applicant\": {\"name\": \"Test User\"}}"}},"TemplateConflict":{"type":"object","description":"Response body when a template with the same ID already exists. Note that the property is `error`.","properties":{"error":{"type":"string"}},"example":{"error":"PDF template 'Submission summary' already exists."}}}},"security":[{"accessToken":[]}],"tags":[{"name":"Templates","description":"APIs for managing PDF templates."},{"name":"Generator","description":"APIs to manage asynchronous jobs for generating PDF documents"}]}
@@ -1 +1 @@
1
- {"openapi":"3.0.0","info":{"title":"Tenant management service","version":"0.0.0","description":"The tenant management service includes APIs for common platform capabilities like retrieving tenant information."},"paths":{"/api/tenant/v1":{"post":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use POST /api/tenant/v2/tenants, which shares this endpoint's implementation but also validates the name length and characters. Creates a tenant. Requires the core realm beta-tester or tenant-service-admin role; tenant users are rejected even with those roles.\n\nBy default a new realm is created for the tenant, with the current user as the administrator; the response is sent with status 202 while the realm is provisioned. Users with the tenant-service-admin role can instead set realm to associate the tenant with an existing realm, in which case adminEmail is required and the response is sent with status 200. Only tenant-service-admin users can set realm or adminEmail.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the tenant. Must be unique (ignoring case) and must not contain special characters such as ! & % - or /.\n"},"realm":{"type":"string","description":"Existing realm to associate with the tenant. Requires the tenant-service-admin role."},"adminEmail":{"type":"string","format":"email","description":"Email of the tenant administrator. Requires the tenant-service-admin role."}}},"examples":{"newRealm":{"summary":"Create a tenant with a new realm","value":{"name":"Test Tenant"}},"existingRealm":{"summary":"Associate an existing realm (tenant-service-admin only)","value":{"name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","adminEmail":"test.admin@gov.ab.ca"}}}}}},"responses":{"200":{"description":"Tenant is created with an existing realm.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"202":{"description":"Tenant is created and its realm is being provisioned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"},"example":{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"provisioning","adminEmail":"test.admin@gov.ab.ca"}}}},"400":{"description":"The name is missing, the name is invalid or already used, the administrator already has a tenant, or the realm is already associated with a tenant or set without adminEmail.\n","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TenantV1ValidationError"},{"$ref":"#/components/schemas/TenantError"}]},"examples":{"missingName":{"summary":"Name is missing","value":{"success":false,"errors":[{"property":"name","constraints":{"isDefined":"name should not be null or undefined"}}]}},"nameUsed":{"summary":"Name is already used","value":{"errorMessage":"Value not valid for Tenant name: This tenant name has already been used. Please enter a different tenant name."}}}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"}}},"delete":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use DELETE /api/tenant/v2/tenants/{id}, after looking up the tenant ID with GET /api/tenant/v2/tenants?realm={realm}. Archives the tenant with the given realm and disables the realm; the tenant is not deleted. Requires the core realm tenant-service-admin role.\n","parameters":[{"in":"query","name":"realm","required":true,"description":"Realm of the tenant to archive.","schema":{"type":"string"},"example":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"}],"responses":{"200":{"description":"The archived tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"400":{"$ref":"#/components/responses/TenantV1BadRequest"},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"description":"No tenant has the realm.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"tenant with ID 'realm: 2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f' could not be found."}}}}}}},"/api/tenant/v1/email":{"post":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use GET /api/tenant/v2/tenants?adminEmail={email}. Retrieves the tenant with the given administrator email. No role is required. Tenant users can only retrieve their own tenant, and get 404 for any other tenant; core users can retrieve any tenant.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"Email of the tenant administrator."}}},"example":{"email":"test.admin@gov.ab.ca"}}}},"responses":{"200":{"description":"Tenant information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"400":{"$ref":"#/components/responses/TenantV1BadRequest"},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}}},"/api/tenant/v1/name":{"post":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use GET /api/tenant/v2/tenants?name={name}. Retrieves the tenant with the given name, ignoring case. No role is required. Tenant users can only retrieve their own tenant, and get 404 for any other tenant; core users can retrieve any tenant.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the tenant."}}},"example":{"name":"Test Tenant"}}}},"responses":{"200":{"description":"Tenant information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"400":{"$ref":"#/components/responses/TenantV1BadRequest"},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}}},"/api/tenant/v1/realm/roles":{"get":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; there is no v2 replacement. Returns the Keycloak roles of the realm that issued the current user's token, which is the user's own tenant realm. Requires the tenant-admin role.\n","responses":{"200":{"description":"Roles of the realm.","content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"$ref":"#/components/schemas/TenantRealmRole"}}}},"example":{"roles":[{"id":"0b9a6c2e-7d4f-4e1a-9c3b-5a8d2f6e1c7b","name":"offline_access","description":"${role_offline-access}","composite":false,"clientRole":false,"containerId":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"}]}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"}}}},"/api/tenant/v1/realm/{realm}":{"get":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use GET /api/tenant/v2/tenants?realm={realm}. Retrieves a tenant by realm. No role is required. Tenant users can only retrieve their own tenant, and get 404 for any other realm; core users can retrieve any tenant.\n","parameters":[{"in":"path","name":"realm","required":true,"description":"Realm of the tenant.","schema":{"type":"string"},"example":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"}],"responses":{"200":{"description":"Tenant information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantResult"}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}}},"/api/tenant/v1/user/default-idp":{"get":{"tags":["Tenant service"],"description":"Internal endpoint used by the tenant admin webapp. Checks if the given user in the core realm is linked to the default ADSP identity provider. Requires the tenant-admin role and is rate limited.\n","parameters":[{"in":"query","name":"userId","required":true,"description":"ID of the user in the core realm.","schema":{"type":"string"},"example":"3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a"}],"responses":{"200":{"description":"Whether the user is linked to the default identity provider in the core realm.","content":{"application/json":{"schema":{"type":"object","properties":{"hasDefaultIdpInCore":{"type":"boolean"}}},"example":{"hasDefaultIdpInCore":true}}}},"400":{"description":"userId is missing, or the identity providers of the user could not be read.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TenantV1ValidationError"},{"$ref":"#/components/schemas/TenantError"}]},"examples":{"missingUserId":{"summary":"userId is missing","value":{"success":false,"errors":[{"property":"userId","constraints":{"isDefined":"userId should not be null or undefined"}}]}},"checkFailed":{"summary":"Identity providers could not be read","value":{"errorMessage":"Failed to check the goa-ad IdP in core for user 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a due to Request failed with status code 404"}}}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"429":{"$ref":"#/components/responses/TenantTooManyRequests"}}}},"/api/tenant/v1/user/id":{"get":{"tags":["Tenant service"],"description":"Internal endpoint used by the tenant admin webapp. Looks up the ID of the user with the given email in a realm, which defaults to the core realm. Requires the tenant-admin role and is rate limited. Tenant users can only look up users in their own realm or the core realm; core users can use any realm.\n","parameters":[{"in":"query","name":"email","required":true,"description":"Email of the user.","schema":{"type":"string"},"example":"test.user@gov.ab.ca"},{"in":"query","name":"realm","required":false,"description":"Realm to look up the user in. Defaults to core.","schema":{"type":"string"},"example":"core"}],"responses":{"200":{"description":"ID of the user, or null if there is no user with the email.","content":{"application/json":{"schema":{"type":"object","properties":{"userIdInCore":{"type":"string","nullable":true}}},"example":{"userIdInCore":"3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a"}}}},"400":{"$ref":"#/components/responses/TenantV1BadRequest"},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"403":{"description":"Tenant user is not permitted to use the realm of another tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"User Test User (ID: 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a) not permitted to find user."}}}},"429":{"$ref":"#/components/responses/TenantTooManyRequests"}}}},"/api/tenant/v1/user/idp":{"delete":{"tags":["Tenant service"],"description":"Internal endpoint used by the tenant admin webapp. Removes the link between a user and an identity provider in a realm. Requires the tenant-admin role and is rate limited. Tenant users can only act on their own realm or the core realm; core users can use any realm.\n","parameters":[{"in":"query","name":"userId","required":true,"description":"ID of the user in the realm.","schema":{"type":"string"},"example":"3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a"},{"in":"query","name":"realm","required":true,"description":"Realm of the user.","schema":{"type":"string"},"example":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"},{"in":"query","name":"idpName","required":false,"description":"Alias of the identity provider. Defaults to goa-ad.","schema":{"type":"string"},"example":"goa-ad"}],"responses":{"200":{"description":"Identity provider link removed.","content":{"text/plain":{"schema":{"type":"string"},"example":"OK"}}},"400":{"description":"A required parameter is missing, or the identity provider link could not be removed.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TenantV1ValidationError"},{"$ref":"#/components/schemas/TenantError"}]},"examples":{"missingRealm":{"summary":"realm is missing","value":{"success":false,"errors":[{"property":"realm","constraints":{"isDefined":"realm should not be null or undefined"}}]}},"removeFailed":{"summary":"Link could not be removed","value":{"errorMessage":"Failed to delete the IdP goa-ad from user 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a due to Request failed with status code 404"}}}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"403":{"description":"Tenant user is not permitted to use the realm of another tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"User Test User (ID: 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a) not permitted to delete user identity provider link."}}}},"429":{"$ref":"#/components/responses/TenantTooManyRequests"}}}},"/api/tenant/v1/{id}":{"get":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use GET /api/tenant/v2/tenants/{id}. Retrieves a tenant by ID. No role is required. Tenant users can only retrieve their own tenant, and get 404 for any other tenant; core users can retrieve any tenant.\n","parameters":[{"in":"path","name":"id","required":true,"description":"ID of the tenant, without the URN prefix.","schema":{"type":"string"},"example":"61f2e3a8c9b1d2e3f4a5b6c7"}],"responses":{"200":{"description":"Tenant information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantResult"}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}}},"/api/tenant/v2/tenants":{"get":{"tags":["Tenant service"],"description":"Search for active tenants; tenants that are still provisioning or archived are not included. No role is required. Authenticated tenant users only find their own tenant; authenticated core users, including service accounts, can find any tenant.\n\nArchived tenants are only returned when status is archived, which requires the core realm tenant-service-admin role.\n\nAnonymous requests (without a valid bearer token) are allowed if they include the name or realm criteria, and the results do not include the administrator email.\n","security":[{},{"accessToken":[]}],"parameters":[{"in":"query","name":"name","schema":{"type":"string","minLength":1,"maxLength":50},"description":"Name of the tenant, matched as a whole and ignoring case.","example":"Test Tenant"},{"in":"query","name":"realm","schema":{"type":"string","minLength":1,"maxLength":50},"description":"Realm of the tenant.","example":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"},{"in":"query","name":"adminEmail","schema":{"type":"string","format":"email"},"description":"Email of the tenant administrator. Anonymous requests must also include name or realm.","example":"test.admin@gov.ab.ca"},{"in":"query","name":"status","schema":{"type":"string","enum":["active","archived"]},"description":"Status of the tenants to find. Archived requires the core realm tenant-service-admin role."}],"responses":{"200":{"description":"Matching tenants.","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/Tenant"}},"page":{"type":"object","properties":{"size":{"type":"number"}}}}},"examples":{"authenticated":{"summary":"Authenticated request","value":{"results":[{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"active","adminEmail":"test.admin@gov.ab.ca"}],"page":{"size":1}}},"anonymous":{"summary":"Anonymous request, without the administrator email","value":{"results":[{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"active"}],"page":{"size":1}}}}}}},"400":{"$ref":"#/components/responses/TenantBadRequest"},"401":{"description":"Anonymous request does not include name or realm criteria, or the request for archived tenants is not from a core tenant-service-admin.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"Request must include realm id or name criteria."}}}}}},"post":{"tags":["Tenant service"],"description":"Create a tenant. Requires the core realm beta-tester or tenant-service-admin role; tenant users are rejected even with those roles.\n\nBy default a new realm is created for the tenant, with the current user as the administrator; the response is sent with status 202 while the realm is provisioned, and a beta-tester who is already the administrator of a tenant is rejected. Users with the tenant-service-admin role can instead set realm to associate the tenant with an existing realm, in which case adminEmail is required and the response is sent with status 200. Only tenant-service-admin users can set realm or adminEmail.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[0-9a-zA-Z _]{1,50}$","description":"Name of the tenant. Must be unique, ignoring case."},"realm":{"type":"string","nullable":true,"minLength":1,"maxLength":50,"description":"Existing realm to associate with the tenant. Requires the tenant-service-admin role."},"adminEmail":{"type":"string","nullable":true,"format":"email","description":"Email of the tenant administrator. Requires the tenant-service-admin role."}}},"examples":{"newRealm":{"summary":"Create a tenant with a new realm","value":{"name":"Test Tenant"}},"existingRealm":{"summary":"Associate an existing realm (tenant-service-admin only)","value":{"name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","adminEmail":"test.admin@gov.ab.ca"}}}}}},"responses":{"200":{"description":"Tenant created with an existing realm.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"202":{"description":"Tenant created and its realm is being provisioned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"},"example":{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"provisioning","adminEmail":"test.admin@gov.ab.ca"}}}},"400":{"description":"Request is invalid, for example the name is invalid or already used, the administrator already has a tenant, or the realm is already associated with a tenant or set without adminEmail.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"examples":{"invalidName":{"summary":"Name failed validation","value":{"errorMessage":"Validation failed with error(s): name (body) - Invalid value"}},"nameUsed":{"summary":"Name is already used","value":{"errorMessage":"Value not valid for Tenant name: This tenant name has already been used. Please enter a different tenant name."}},"adminHasTenant":{"summary":"Administrator already has a tenant","value":{"errorMessage":"test.admin@gov.ab.ca is the tenant admin in our record. One user can create only one realm."}}}}}},"401":{"description":"Request does not include a valid bearer token, the user does not have the required role, or a user without the tenant-service-admin role set realm or adminEmail.\n","content":{"text/plain":{"schema":{"type":"string"},"example":"Unauthorized"},"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"tenant-service-admin role needed!"}}}}}}},"/api/tenant/v2/tenants/{id}":{"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"ID of the tenant, without the URN prefix.","example":"61f2e3a8c9b1d2e3f4a5b6c7"}],"get":{"tags":["Tenant service"],"description":"Retrieves a tenant. No role is required, but the request must be authenticated. Tenant users can only retrieve their own tenant, and get 403 for any other tenant ID; core users can retrieve any tenant.\n","responses":{"200":{"description":"Tenant information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"403":{"description":"Tenant user is not permitted to retrieve another tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"User Test User (ID: 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a) not permitted to get tenant."}}}},"404":{"$ref":"#/components/responses/TenantNotFound"}}},"delete":{"tags":["Tenant service"],"description":"Archives a tenant: its realm is disabled, so users can no longer sign in, and the tenant and realm are retained. Archiving an archived tenant has no effect. Use the restore endpoint to recover an archived tenant. Requires the core realm tenant-service-admin role, which can archive any tenant; tenant users are rejected.\n\nSet purge to true to permanently delete an archived tenant and its realm. Purge also requires the core realm tenant-purge role and responds 400 if the tenant is not archived.\n","parameters":[{"in":"query","name":"purge","schema":{"type":"string","enum":["true","false"],"default":"false"},"description":"Permanently delete the archived tenant and its realm."}],"responses":{"200":{"description":"The archived tenant, or for purge the result of the deletion. success is false if the realm or the tenant record wasn't deleted.\n","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Tenant"},{"$ref":"#/components/schemas/TenantDeleteResult"}]}}}},"400":{"description":"Request is invalid, for example the tenant is not archived for purge, or is still provisioning.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"Tenant must be archived before it can be purged."}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"403":{"description":"Purge was requested without the core realm tenant-purge role.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"User Test User (ID: 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a) not permitted to purge tenant."}}}},"404":{"$ref":"#/components/responses/TenantNotFound"}}}},"/api/tenant/v2/tenants/{id}/name":{"parameters":[{"in":"path","name":"id","required":true,"description":"ID of the tenant, without the URN prefix.","schema":{"type":"string"},"example":"61f2e3a8c9b1d2e3f4a5b6c7"}],"patch":{"tags":["Tenant service"],"description":"Update the tenant name. Requires the core realm tenant-service-admin role, which can rename any tenant; tenant users, including tenant administrators, are rejected. Rate limited. The name must not be used by another tenant (compared ignoring case), so a duplicate responds 400; renaming a tenant to its own current name, or changing only its case, is allowed.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[0-9a-zA-Z _]{1,50}$"}}},"example":{"name":"Renamed Tenant"}}}},"responses":{"200":{"description":"Updated tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"},"example":{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Renamed Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"active","adminEmail":"test.admin@gov.ab.ca"}}}},"400":{"$ref":"#/components/responses/TenantBadRequest"},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"},"429":{"$ref":"#/components/responses/TenantTooManyRequests"}}}},"/api/tenant/v2/tenants/{id}/restore":{"parameters":[{"in":"path","name":"id","required":true,"description":"ID of the tenant, without the URN prefix.","schema":{"type":"string"},"example":"61f2e3a8c9b1d2e3f4a5b6c7"}],"post":{"tags":["Tenant service"],"description":"Restores an archived tenant: its realm is enabled again and its status is active. Requires the core realm tenant-service-admin role; tenant users are rejected.\n","responses":{"200":{"description":"The restored tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"400":{"description":"The tenant is not archived.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"Only an archived tenant can be restored."}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}}}},"components":{"securitySchemes":{"accessToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"TenantBadRequest":{"description":"Request is invalid, for example a parameter failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"Validation failed with error(s): name (body) - Invalid value"}}}},"TenantNotFound":{"description":"Tenant not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"Tenant with ID '61f2e3a8c9b1d2e3f4a5b6c7' could not be found."}}}},"TenantTooManyRequests":{"description":"Too many requests; limited to 200 requests per 5 minutes.","content":{"text/plain":{"schema":{"type":"string"},"example":"Too many requests, please try again later."}}},"TenantUnauthorized":{"description":"Request does not include a valid bearer token, or the user does not have the role required for the operation. Role checks in this API respond with 401 rather than 403.\n","content":{"text/plain":{"schema":{"type":"string"},"example":"Unauthorized"}}},"TenantV1BadRequest":{"description":"A required parameter is missing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantV1ValidationError"}}}}},"schemas":{"Tenant":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"URN of the tenant.","example":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7"},"name":{"type":"string","example":"Test Tenant"},"realm":{"type":"string","description":"Keycloak realm of the tenant, which is the issuer of the tenant's access tokens.","example":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"},"status":{"type":"string","readOnly":true,"enum":["provisioning","active","archived"],"description":"Status of the tenant; a new tenant is provisioning until its realm has been created. An archived tenant has its realm disabled.\n","example":"active"},"adminEmail":{"type":"string","description":"Email of the tenant administrator. Not included for anonymous requests.","example":"test.admin@gov.ab.ca"},"deletedAt":{"type":"string","format":"date-time","readOnly":true,"description":"Time the tenant was archived. Only included for an archived tenant."}},"example":{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"active","adminEmail":"test.admin@gov.ab.ca"}},"TenantDeleteResult":{"type":"object","properties":{"deletedRealm":{"type":"boolean"},"deletedTenant":{"type":"boolean"},"success":{"type":"boolean"}},"example":{"deletedRealm":true,"deletedTenant":true,"success":true}},"TenantError":{"type":"object","properties":{"errorMessage":{"type":"string"}},"example":{"errorMessage":"Tenant with ID '61f2e3a8c9b1d2e3f4a5b6c7' could not be found."}},"TenantRealmRole":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"composite":{"type":"boolean"},"clientRole":{"type":"boolean"},"containerId":{"type":"string"}},"example":{"id":"0b9a6c2e-7d4f-4e1a-9c3b-5a8d2f6e1c7b","name":"offline_access","description":"${role_offline-access}","composite":false,"clientRole":false,"containerId":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"}},"TenantResult":{"type":"object","properties":{"success":{"type":"boolean"},"tenant":{"$ref":"#/components/schemas/Tenant"}},"example":{"success":true,"tenant":{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"active","adminEmail":"test.admin@gov.ab.ca"}}},"TenantV1ValidationError":{"type":"object","properties":{"success":{"type":"boolean"},"errors":{"type":"array","items":{"type":"object","properties":{"property":{"type":"string"},"constraints":{"type":"object","additionalProperties":{"type":"string"}}}}}},"example":{"success":false,"errors":[{"property":"email","constraints":{"isDefined":"email should not be null or undefined"}}]}}}},"security":[{"accessToken":[]}],"tags":[{"name":"Tenant service","description":"Tenant API to store and read tenant information."}]}
1
+ {"openapi":"3.0.0","info":{"title":"Tenant management service","version":"0.0.0","description":"The tenant management service includes APIs for common platform capabilities like retrieving tenant information."},"paths":{"/api/tenant/v1":{"post":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use POST /api/tenant/v2/tenants, which shares this endpoint's implementation but also validates the name length and characters. Creates a tenant. Requires the core realm beta-tester or tenant-service-admin role; tenant users are rejected even with those roles.\n\nBy default a new realm is created for the tenant, with the current user as the administrator; the response is sent with status 202 while the realm is provisioned. Users with the tenant-service-admin role can instead set realm to associate the tenant with an existing realm, in which case adminEmail is required and the response is sent with status 200. Only tenant-service-admin users can set realm or adminEmail.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the tenant. Must be unique (ignoring case) and must not contain special characters such as ! & % - or /.\n"},"realm":{"type":"string","description":"Existing realm to associate with the tenant. Requires the tenant-service-admin role."},"adminEmail":{"type":"string","format":"email","description":"Email of the tenant administrator. Requires the tenant-service-admin role."}}},"examples":{"newRealm":{"summary":"Create a tenant with a new realm","value":{"name":"Test Tenant"}},"existingRealm":{"summary":"Associate an existing realm (tenant-service-admin only)","value":{"name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","adminEmail":"test.admin@gov.ab.ca"}}}}}},"responses":{"200":{"description":"Tenant is created with an existing realm.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"202":{"description":"Tenant is created and its realm is being provisioned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"},"example":{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"provisioning","adminEmail":"test.admin@gov.ab.ca"}}}},"400":{"description":"The name is missing, the name is invalid or already used, the administrator already has a tenant, or the realm is already associated with a tenant or set without adminEmail.\n","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TenantV1ValidationError"},{"$ref":"#/components/schemas/TenantError"}]},"examples":{"missingName":{"summary":"Name is missing","value":{"success":false,"errors":[{"property":"name","constraints":{"isDefined":"name should not be null or undefined"}}]}},"nameUsed":{"summary":"Name is already used","value":{"errorMessage":"Value not valid for Tenant name: This tenant name has already been used. Please enter a different tenant name."}}}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"}}},"delete":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use DELETE /api/tenant/v2/tenants/{id}, after looking up the tenant ID with GET /api/tenant/v2/tenants?realm={realm}. Archives the tenant with the given realm and disables the realm; the tenant is not deleted. Requires the core realm tenant-service-admin role.\n","parameters":[{"in":"query","name":"realm","required":true,"description":"Realm of the tenant to archive.","schema":{"type":"string"},"example":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"}],"responses":{"200":{"description":"The archived tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"400":{"$ref":"#/components/responses/TenantV1BadRequest"},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"description":"No tenant has the realm.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"tenant with ID 'realm: 2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f' could not be found."}}}}}}},"/api/tenant/v1/email":{"post":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use GET /api/tenant/v2/tenants?adminEmail={email}. Retrieves the tenant with the given administrator email. No role is required. Tenant users can only retrieve their own tenant, and get 404 for any other tenant; core users can retrieve any tenant.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"Email of the tenant administrator."}}},"example":{"email":"test.admin@gov.ab.ca"}}}},"responses":{"200":{"description":"Tenant information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"400":{"$ref":"#/components/responses/TenantV1BadRequest"},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}}},"/api/tenant/v1/name":{"post":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use GET /api/tenant/v2/tenants?name={name}. Retrieves the tenant with the given name, ignoring case. No role is required. Tenant users can only retrieve their own tenant, and get 404 for any other tenant; core users can retrieve any tenant.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the tenant."}}},"example":{"name":"Test Tenant"}}}},"responses":{"200":{"description":"Tenant information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"400":{"$ref":"#/components/responses/TenantV1BadRequest"},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}}},"/api/tenant/v1/realm/roles":{"get":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; there is no v2 replacement. Returns the Keycloak roles of the realm that issued the current user's token, which is the user's own tenant realm. Requires the tenant-admin role.\n","responses":{"200":{"description":"Roles of the realm.","content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"$ref":"#/components/schemas/TenantRealmRole"}}}},"example":{"roles":[{"id":"0b9a6c2e-7d4f-4e1a-9c3b-5a8d2f6e1c7b","name":"offline_access","description":"${role_offline-access}","composite":false,"clientRole":false,"containerId":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"}]}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"}}}},"/api/tenant/v1/realm/{realm}":{"get":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use GET /api/tenant/v2/tenants?realm={realm}. Retrieves a tenant by realm. No role is required. Tenant users can only retrieve their own tenant, and get 404 for any other realm; core users can retrieve any tenant.\n","parameters":[{"in":"path","name":"realm","required":true,"description":"Realm of the tenant.","schema":{"type":"string"},"example":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"}],"responses":{"200":{"description":"Tenant information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantResult"}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}}},"/api/tenant/v1/user/default-idp":{"get":{"tags":["Tenant service"],"description":"Internal endpoint used by the tenant admin webapp. Checks if the given user in the core realm is linked to the default ADSP identity provider. Requires the tenant-admin role and is rate limited.\n","parameters":[{"in":"query","name":"userId","required":true,"description":"ID of the user in the core realm.","schema":{"type":"string"},"example":"3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a"}],"responses":{"200":{"description":"Whether the user is linked to the default identity provider in the core realm.","content":{"application/json":{"schema":{"type":"object","properties":{"hasDefaultIdpInCore":{"type":"boolean"}}},"example":{"hasDefaultIdpInCore":true}}}},"400":{"description":"userId is missing, or the identity providers of the user could not be read.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TenantV1ValidationError"},{"$ref":"#/components/schemas/TenantError"}]},"examples":{"missingUserId":{"summary":"userId is missing","value":{"success":false,"errors":[{"property":"userId","constraints":{"isDefined":"userId should not be null or undefined"}}]}},"checkFailed":{"summary":"Identity providers could not be read","value":{"errorMessage":"Failed to check the goa-ad IdP in core for user 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a due to Request failed with status code 404"}}}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"429":{"$ref":"#/components/responses/TenantTooManyRequests"}}}},"/api/tenant/v1/user/id":{"get":{"tags":["Tenant service"],"description":"Internal endpoint used by the tenant admin webapp. Looks up the ID of the user with the given email in a realm, which defaults to the core realm. Requires the tenant-admin role and is rate limited. Tenant users can only look up users in their own realm or the core realm; core users can use any realm.\n","parameters":[{"in":"query","name":"email","required":true,"description":"Email of the user.","schema":{"type":"string"},"example":"test.user@gov.ab.ca"},{"in":"query","name":"realm","required":false,"description":"Realm to look up the user in. Defaults to core.","schema":{"type":"string"},"example":"core"}],"responses":{"200":{"description":"ID of the user, or null if there is no user with the email.","content":{"application/json":{"schema":{"type":"object","properties":{"userIdInCore":{"type":"string","nullable":true}}},"example":{"userIdInCore":"3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a"}}}},"400":{"$ref":"#/components/responses/TenantV1BadRequest"},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"403":{"description":"Tenant user is not permitted to use the realm of another tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"User Test User (ID: 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a) not permitted to find user."}}}},"429":{"$ref":"#/components/responses/TenantTooManyRequests"}}}},"/api/tenant/v1/user/idp":{"delete":{"tags":["Tenant service"],"description":"Internal endpoint used by the tenant admin webapp. Removes the link between a user and an identity provider in a realm. Requires the tenant-admin role and is rate limited. Tenant users can only act on their own realm or the core realm; core users can use any realm.\n","parameters":[{"in":"query","name":"userId","required":true,"description":"ID of the user in the realm.","schema":{"type":"string"},"example":"3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a"},{"in":"query","name":"realm","required":true,"description":"Realm of the user.","schema":{"type":"string"},"example":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"},{"in":"query","name":"idpName","required":false,"description":"Alias of the identity provider. Defaults to goa-ad.","schema":{"type":"string"},"example":"goa-ad"}],"responses":{"200":{"description":"Identity provider link removed.","content":{"text/plain":{"schema":{"type":"string"},"example":"OK"}}},"400":{"description":"A required parameter is missing, or the identity provider link could not be removed.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TenantV1ValidationError"},{"$ref":"#/components/schemas/TenantError"}]},"examples":{"missingRealm":{"summary":"realm is missing","value":{"success":false,"errors":[{"property":"realm","constraints":{"isDefined":"realm should not be null or undefined"}}]}},"removeFailed":{"summary":"Link could not be removed","value":{"errorMessage":"Failed to delete the IdP goa-ad from user 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a due to Request failed with status code 404"}}}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"403":{"description":"Tenant user is not permitted to use the realm of another tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"User Test User (ID: 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a) not permitted to delete user identity provider link."}}}},"429":{"$ref":"#/components/responses/TenantTooManyRequests"}}}},"/api/tenant/v1/{id}":{"get":{"deprecated":true,"tags":["Tenant service"],"description":"Deprecated; use GET /api/tenant/v2/tenants/{id}. Retrieves a tenant by ID. No role is required. Tenant users can only retrieve their own tenant, and get 404 for any other tenant; core users can retrieve any tenant.\n","parameters":[{"in":"path","name":"id","required":true,"description":"ID of the tenant, without the URN prefix.","schema":{"type":"string"},"example":"61f2e3a8c9b1d2e3f4a5b6c7"}],"responses":{"200":{"description":"Tenant information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantResult"}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}}},"/api/tenant/v2/tenants":{"get":{"tags":["Tenant service"],"description":"Search for active tenants; tenants that are still provisioning or archived are not included. No role is required. Authenticated tenant users only find their own tenant; authenticated core users, including service accounts, can find any tenant.\n\nArchived tenants are only returned when status is archived, which requires the core realm tenant-service-admin role.\n\nAnonymous requests (without a valid bearer token) are allowed if they include the name or realm criteria, and the results do not include the administrator email.\n","security":[{},{"accessToken":[]}],"parameters":[{"in":"query","name":"name","schema":{"type":"string","minLength":1,"maxLength":50},"description":"Name of the tenant, matched as a whole and ignoring case.","example":"Test Tenant"},{"in":"query","name":"realm","schema":{"type":"string","minLength":1,"maxLength":50},"description":"Realm of the tenant.","example":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"},{"in":"query","name":"adminEmail","schema":{"type":"string","format":"email"},"description":"Email of the tenant administrator. Anonymous requests must also include name or realm.","example":"test.admin@gov.ab.ca"},{"in":"query","name":"status","schema":{"type":"string","enum":["active","archived"]},"description":"Status of the tenants to find. Archived requires the core realm tenant-service-admin role."}],"responses":{"200":{"description":"Matching tenants.","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/Tenant"}},"page":{"type":"object","properties":{"size":{"type":"number"}}}}},"examples":{"authenticated":{"summary":"Authenticated request","value":{"results":[{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"active","adminEmail":"test.admin@gov.ab.ca"}],"page":{"size":1}}},"anonymous":{"summary":"Anonymous request, without the administrator email","value":{"results":[{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"active"}],"page":{"size":1}}}}}}},"400":{"$ref":"#/components/responses/TenantBadRequest"},"401":{"description":"Anonymous request does not include name or realm criteria, or the request for archived tenants is not from a core tenant-service-admin.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"Request must include realm id or name criteria."}}}}}},"post":{"tags":["Tenant service"],"description":"Create a tenant. Requires the core realm beta-tester or tenant-service-admin role; tenant users are rejected even with those roles.\n\nBy default a new realm is created for the tenant, with the current user as the administrator; the response is sent with status 202 while the realm is provisioned, and a beta-tester who is already the administrator of a tenant is rejected. Users with the tenant-service-admin role can instead set realm to associate the tenant with an existing realm, in which case adminEmail is required and the response is sent with status 200. Only tenant-service-admin users can set realm or adminEmail.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[0-9a-zA-Z _]{1,50}$","description":"Name of the tenant. Must be unique, ignoring case."},"realm":{"type":"string","nullable":true,"minLength":1,"maxLength":50,"description":"Existing realm to associate with the tenant. Requires the tenant-service-admin role."},"adminEmail":{"type":"string","nullable":true,"format":"email","description":"Email of the tenant administrator. Requires the tenant-service-admin role."}}},"examples":{"newRealm":{"summary":"Create a tenant with a new realm","value":{"name":"Test Tenant"}},"existingRealm":{"summary":"Associate an existing realm (tenant-service-admin only)","value":{"name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","adminEmail":"test.admin@gov.ab.ca"}}}}}},"responses":{"200":{"description":"Tenant created with an existing realm.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"202":{"description":"Tenant created and its realm is being provisioned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"},"example":{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"provisioning","adminEmail":"test.admin@gov.ab.ca"}}}},"400":{"description":"Request is invalid, for example the name is invalid or already used, the administrator already has a tenant, or the realm is already associated with a tenant or set without adminEmail.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"examples":{"invalidName":{"summary":"Name failed validation","value":{"errorMessage":"Validation failed with error(s): name (body) - Invalid value"}},"nameUsed":{"summary":"Name is already used","value":{"errorMessage":"Value not valid for Tenant name: This tenant name has already been used. Please enter a different tenant name."}},"adminHasTenant":{"summary":"Administrator already has a tenant","value":{"errorMessage":"test.admin@gov.ab.ca is the tenant admin in our record. One user can create only one realm."}}}}}},"401":{"description":"Request does not include a valid bearer token, the user does not have the required role, or a user without the tenant-service-admin role set realm or adminEmail.\n","content":{"text/plain":{"schema":{"type":"string"},"example":"Unauthorized"},"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"tenant-service-admin role needed!"}}}}}}},"/api/tenant/v2/tenants/{id}":{"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"ID of the tenant, without the URN prefix.","example":"61f2e3a8c9b1d2e3f4a5b6c7"}],"get":{"tags":["Tenant service"],"description":"Retrieves a tenant. No role is required, but the request must be authenticated. Tenant users can only retrieve their own tenant, and get 404 for any other tenant ID; core users can retrieve any tenant.\n","responses":{"200":{"description":"Tenant information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}},"delete":{"tags":["Tenant service"],"description":"Archives a tenant: its realm is disabled, so users can no longer sign in, and the tenant and realm are retained. Archiving an archived tenant has no effect. Use the restore endpoint to recover an archived tenant. Requires the core realm tenant-service-admin role, which can archive any tenant; tenant users are rejected.\n\nSet purge to true to permanently delete an archived tenant and its realm. Purge also requires the core realm tenant-purge role and responds 400 if the tenant is not archived.\n","parameters":[{"in":"query","name":"purge","schema":{"type":"string","enum":["true","false"],"default":"false"},"description":"Permanently delete the archived tenant and its realm."}],"responses":{"200":{"description":"The archived tenant, or for purge the result of the deletion. success is false if the realm or the tenant record wasn't deleted.\n","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Tenant"},{"$ref":"#/components/schemas/TenantDeleteResult"}]}}}},"400":{"description":"Request is invalid, for example the tenant is not archived for purge, or is still provisioning.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"Tenant must be archived before it can be purged."}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"403":{"description":"Purge was requested without the core realm tenant-purge role.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"User Test User (ID: 3d1c5e7a-9b2f-4c6d-8e0a-1f3b5d7c9e2a) not permitted to purge tenant."}}}},"404":{"$ref":"#/components/responses/TenantNotFound"}}}},"/api/tenant/v2/tenants/{id}/name":{"parameters":[{"in":"path","name":"id","required":true,"description":"ID of the tenant, without the URN prefix.","schema":{"type":"string"},"example":"61f2e3a8c9b1d2e3f4a5b6c7"}],"patch":{"tags":["Tenant service"],"description":"Update the tenant name. Requires the core realm tenant-service-admin role, which can rename any tenant; tenant users, including tenant administrators, are rejected. Rate limited. The name must not be used by another tenant (compared ignoring case), so a duplicate responds 400; renaming a tenant to its own current name, or changing only its case, is allowed.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[0-9a-zA-Z _]{1,50}$"}}},"example":{"name":"Renamed Tenant"}}}},"responses":{"200":{"description":"Updated tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"},"example":{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Renamed Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"active","adminEmail":"test.admin@gov.ab.ca"}}}},"400":{"$ref":"#/components/responses/TenantBadRequest"},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"},"429":{"$ref":"#/components/responses/TenantTooManyRequests"}}}},"/api/tenant/v2/tenants/{id}/restore":{"parameters":[{"in":"path","name":"id","required":true,"description":"ID of the tenant, without the URN prefix.","schema":{"type":"string"},"example":"61f2e3a8c9b1d2e3f4a5b6c7"}],"post":{"tags":["Tenant service"],"description":"Restores an archived tenant: its realm is enabled again and its status is active. Requires the core realm tenant-service-admin role; tenant users are rejected.\n","responses":{"200":{"description":"The restored tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"400":{"description":"The tenant is not archived.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"Only an archived tenant can be restored."}}}},"401":{"$ref":"#/components/responses/TenantUnauthorized"},"404":{"$ref":"#/components/responses/TenantNotFound"}}}}},"components":{"securitySchemes":{"accessToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"TenantBadRequest":{"description":"Request is invalid, for example a parameter failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"Validation failed with error(s): name (body) - Invalid value"}}}},"TenantNotFound":{"description":"Tenant not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantError"},"example":{"errorMessage":"Tenant with ID '61f2e3a8c9b1d2e3f4a5b6c7' could not be found."}}}},"TenantTooManyRequests":{"description":"Too many requests; limited to 200 requests per 5 minutes.","content":{"text/plain":{"schema":{"type":"string"},"example":"Too many requests, please try again later."}}},"TenantUnauthorized":{"description":"Request does not include a valid bearer token, or the user does not have the role required for the operation. Role checks in this API respond with 401 rather than 403.\n","content":{"text/plain":{"schema":{"type":"string"},"example":"Unauthorized"}}},"TenantV1BadRequest":{"description":"A required parameter is missing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantV1ValidationError"}}}}},"schemas":{"Tenant":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"URN of the tenant.","example":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7"},"name":{"type":"string","example":"Test Tenant"},"realm":{"type":"string","description":"Keycloak realm of the tenant, which is the issuer of the tenant's access tokens.","example":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"},"status":{"type":"string","readOnly":true,"enum":["provisioning","active","archived"],"description":"Status of the tenant; a new tenant is provisioning until its realm has been created. An archived tenant has its realm disabled.\n","example":"active"},"adminEmail":{"type":"string","description":"Email of the tenant administrator. Not included for anonymous requests.","example":"test.admin@gov.ab.ca"},"deletedAt":{"type":"string","format":"date-time","readOnly":true,"description":"Time the tenant was archived. Only included for an archived tenant."}},"example":{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"active","adminEmail":"test.admin@gov.ab.ca"}},"TenantDeleteResult":{"type":"object","properties":{"deletedRealm":{"type":"boolean"},"deletedTenant":{"type":"boolean"},"success":{"type":"boolean"}},"example":{"deletedRealm":true,"deletedTenant":true,"success":true}},"TenantError":{"type":"object","properties":{"errorMessage":{"type":"string"}},"example":{"errorMessage":"Tenant with ID '61f2e3a8c9b1d2e3f4a5b6c7' could not be found."}},"TenantRealmRole":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"composite":{"type":"boolean"},"clientRole":{"type":"boolean"},"containerId":{"type":"string"}},"example":{"id":"0b9a6c2e-7d4f-4e1a-9c3b-5a8d2f6e1c7b","name":"offline_access","description":"${role_offline-access}","composite":false,"clientRole":false,"containerId":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f"}},"TenantResult":{"type":"object","properties":{"success":{"type":"boolean"},"tenant":{"$ref":"#/components/schemas/Tenant"}},"example":{"success":true,"tenant":{"id":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","name":"Test Tenant","realm":"2f6c8f1e-3b7a-4d5c-9e8f-1a2b3c4d5e6f","status":"active","adminEmail":"test.admin@gov.ab.ca"}}},"TenantV1ValidationError":{"type":"object","properties":{"success":{"type":"boolean"},"errors":{"type":"array","items":{"type":"object","properties":{"property":{"type":"string"},"constraints":{"type":"object","additionalProperties":{"type":"string"}}}}}},"example":{"success":false,"errors":[{"property":"email","constraints":{"isDefined":"email should not be null or undefined"}}]}}}},"security":[{"accessToken":[]}],"tags":[{"name":"Tenant service","description":"Tenant API to store and read tenant information."}]}
@@ -26,8 +26,8 @@ Templates and jobs belong to a tenant.
26
26
  - **Tenant users and service accounts** always act on the tenant of their token. Any `tenantId` query parameter is ignored.
27
27
  - **Core (platform) users and service accounts** act on the tenant given by the `tenantId` query parameter (for example, `?tenantId=urn:ads:platform:tenant-service:v2:/tenants/{id}`). They must set it when creating, updating, or deleting templates, and when generating PDFs. Without it, listing and getting templates returns only platform templates.
28
28
  - **Platform versus tenant templates.** The templates available to a tenant combine the tenant's own templates with _platform_ templates configured by ADSP for all tenants. A platform template replaces a tenant template with the same ID, and creating a template with the ID of a platform template responds `409`.
29
- - **Isolation.** A template ID that exists only in another tenant responds `404`. A job of another tenant responds `403`.
30
- - **Role scope.** pdf-admin and pdf-generator can be held in the tenant, or by a core user, for template management and generation. Reading a job (`GET /jobs/{jobId}`) requires pdf-generator in the job's tenant; core users can't read jobs, and should use the job events instead.
29
+ - **Isolation.** A template ID that exists only in another tenant responds `404`. A job of another tenant also responds `404`.
30
+ - **Role scope.** pdf-admin and pdf-generator can be held in the tenant, or by a core user, for template management, generation and reading jobs (`GET /jobs/{jobId}`). Core users must set `tenantId`.
31
31
 
32
32
  ## API overview
33
33
 
@@ -38,7 +38,7 @@ All endpoints are under `https://pdf-service.adsp.alberta.ca/pdf/v1` and require
38
38
  | Templates | `GET /templates`, `GET /templates/{templateId}` | Any authenticated user |
39
39
  | | `POST /templates`, `PATCH /templates/{templateId}`, `DELETE /templates/{templateId}` | pdf-admin |
40
40
  | Jobs | `POST /jobs` | pdf-generator |
41
- | | `GET /jobs/{jobId}` | pdf-generator in the job's tenant |
41
+ | | `GET /jobs/{jobId}` | pdf-generator |
42
42
 
43
43
  Templates can also be managed directly in the [configuration service](configuration-service.md) under `platform:pdf-service`, or in the tenant admin app. Generated PDFs are downloaded through the [file service](file-service.md); the PDF service has no download endpoint.
44
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/adsp-sdk-mcp-server",
3
- "version": "1.42.0",
3
+ "version": "1.42.1",
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-23T17:37:01.307Z",
4
- "sourceCommit": "c27b1081812dfdb41c5c6cedc126c5763f348606",
5
- "latestRelease": "1.41.0",
6
- "docsCommit": "c27b1081812dfdb41c5c6cedc126c5763f348606",
3
+ "builtAt": "2026-11-23T19:33:47.283Z",
4
+ "sourceCommit": "53eec6242991820a227d4b9cf7efb51fe3cdd112",
5
+ "latestRelease": "1.42.0",
6
+ "docsCommit": "b5b613615b520a8ad3082841f6c7c8de1ab992dd",
7
7
  "sdk": {
8
8
  "version": "2.37.0",
9
9
  "commit": "4721e7cf9f8bd770e911058cb3a233be7ebc0923",