Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
fix: openapi spec (#2066)
Maximilian Kaske64104c42b125
diff --git a/.github/workflows/proto-check.yml b/.github/workflows/proto-check.ymlnew file mode 100644index 000000000..76e45b64a--- /dev/null+++ b/.github/workflows/proto-check.yml@@ -0,0 +1,66 @@+name: Proto Generated Files Check+on:+ push:+ branches:+ - "main"+ paths:+ - "packages/proto/**"+ pull_request:+ branches: [main]+ paths:+ - "packages/proto/**"++permissions:+ contents: read++jobs:+ proto-check:+ name: π Proto generated files up to date+ runs-on: ubuntu-latest+ timeout-minutes: 5+ steps:+ - name: β¬οΈ Checkout repo+ uses: actions/checkout@v6++ - name: Set up pnpm+ uses: pnpm/action-setup@v4+ with:+ version: 10.26.0++ - name: β Setup node+ uses: actions/setup-node@v6+ with:+ node-version: 24+ cache: "pnpm"++ - name: π₯ Install bun+ uses: oven-sh/setup-bun@v2+ with:+ bun-version: latest++ - name: πΉ Setup Go+ uses: actions/setup-go@v5+ with:+ go-version: "stable"++ - name: π₯ Install protoc-gen-connect-openapi+ run: go install github.com/sudorandom/protoc-gen-connect-openapi@latest++ - name: π₯ Download deps+ run: pnpm install++ - name: π Regenerate proto files+ working-directory: ./packages/proto+ run: |+ pnpm buf:ts+ pnpm buf:openapi++ - name: π Check for uncommitted changes+ run: |+ if [ -n "$(git status --porcelain packages/proto/gen/)" ]; then+ echo "::error::Proto generated files are out of date. Run 'pnpm buf:ts && pnpm buf:openapi' in packages/proto and commit the changes."+ git diff --stat packages/proto/gen/+ git diff packages/proto/gen/+ exit 1+ fi+ echo "Proto generated files are up to date."diff --git a/apps/server/static/openapi.yaml b/apps/server/static/openapi.yamlindex 3c3aa327c..f8c13226c 100644--- a/apps/server/static/openapi.yaml+++ b/apps/server/static/openapi.yaml@@ -379,13 +379,23 @@ components:- string- "null"title: page_id- description: New page ID (optional).+ description: 'Deprecated: page_id is now derived from page_component_ids.'+ deprecated: truepageComponentIds:type: arrayitems:type: stringtitle: page_component_idsdescription: New list of page component IDs (optional, replaces existing list).+ updatePageComponentIds:+ type:+ - boolean+ - "null"+ title: update_page_component_ids+ description: |-+ Set to true to update page component associations.+ When true, page_component_ids replaces the existing list (empty clears all).+ When false or unset, page_component_ids is ignored and existing associations are preserved.title: UpdateMaintenanceRequestadditionalProperties: falsedescription: UpdateMaintenanceRequest is the request to update a maintenance window.@@ -997,7 +1007,8 @@ components:openstatus.monitor.v1.MonitorConfig:type: objectoneOf:- - properties:+ - type: object+ properties:dns:title: dnsdescription: DNS monitor configuration.@@ -1005,7 +1016,8 @@ components:title: dnsrequired:- dns- - properties:+ - type: object+ properties:http:title: httpdescription: HTTP monitor configuration.@@ -1013,7 +1025,8 @@ components:title: httprequired:- http- - properties:+ - type: object+ properties:tcp:title: tcpdescription: TCP monitor configuration.@@ -1634,7 +1647,8 @@ components:openstatus.notification.v1.NotificationData:type: objectoneOf:- - properties:+ - type: object+ properties:discord:title: discorddescription: Discord configuration.@@ -1642,7 +1656,8 @@ components:title: discordrequired:- discord- - properties:+ - type: object+ properties:email:title: emaildescription: Email configuration.@@ -1650,7 +1665,8 @@ components:title: emailrequired:- - properties:+ - type: object+ properties:googleChat:title: google_chatdescription: Google Chat configuration.@@ -1658,7 +1674,8 @@ components:title: google_chatrequired:- googleChat- - properties:+ - type: object+ properties:grafanaOncall:title: grafana_oncalldescription: Grafana OnCall configuration.@@ -1666,7 +1683,8 @@ components:title: grafana_oncallrequired:- grafanaOncall- - properties:+ - type: object+ properties:ntfy:title: ntfydescription: Ntfy configuration.@@ -1674,7 +1692,8 @@ components:title: ntfyrequired:- ntfy- - properties:+ - type: object+ properties:opsgenie:title: opsgeniedescription: Opsgenie configuration.@@ -1682,7 +1701,8 @@ components:title: opsgenierequired:- opsgenie- - properties:+ - type: object+ properties:pagerduty:title: pagerdutydescription: PagerDuty configuration.@@ -1690,7 +1710,8 @@ components:title: pagerdutyrequired:- pagerduty- - properties:+ - type: object+ properties:slack:title: slackdescription: Slack configuration.@@ -1698,7 +1719,8 @@ components:title: slackrequired:- slack- - properties:+ - type: object+ properties:sms:title: smsdescription: SMS configuration.@@ -1706,7 +1728,8 @@ components:title: smsrequired:- sms- - properties:+ - type: object+ properties:telegram:title: telegramdescription: Telegram configuration.@@ -1714,7 +1737,8 @@ components:title: telegramrequired:- telegram- - properties:+ - type: object+ properties:webhook:title: webhookdescription: Webhook configuration.@@ -1722,7 +1746,8 @@ components:title: webhookrequired:- webhook- - properties:+ - type: object+ properties:whatsapp:title: whatsappdescription: WhatsApp configuration.@@ -1941,6 +1966,15 @@ components:type: stringtitle: monitor_idsdescription: Updated monitor IDs to associate.+ updateMonitorIds:+ type:+ - boolean+ - "null"+ title: update_monitor_ids+ description: |-+ Set to true to update monitor associations.+ When true, monitor_ids replaces the existing list (empty clears all).+ When false or unset, monitor_ids is ignored and existing associations are preserved.title: UpdateNotificationRequestadditionalProperties: falsedescription: UpdateNotificationRequest is the request to update a notification channel.@@ -2127,6 +2161,12 @@ components:maxLength: 256minLength: 1description: Display name for the group (required).+ defaultOpen:+ type:+ - boolean+ - "null"+ title: default_open+ description: Whether the group should be expanded by default on the status page (optional, defaults to false).title: CreateComponentGroupRequestadditionalProperties: falsedescription: CreateComponentGroupRequest is the request to create a new component group.@@ -2193,6 +2233,46 @@ components:$ref: '#/components/schemas/openstatus.status_page.v1.Locale'title: localesdescription: Enabled locales for the status page (optional).+ icon:+ type:+ - string+ - "null"+ title: icon+ maxLength: 1024+ description: Icon URL for the status page (optional).+ customDomain:+ type:+ - string+ - "null"+ title: custom_domain+ maxLength: 256+ description: Custom domain for the status page (optional).+ theme:+ oneOf:+ - $ref: '#/components/schemas/openstatus.status_page.v1.PageTheme'+ - type: "null"+ title: theme+ description: Visual theme for the status page (optional, defaults to SYSTEM).+ accessType:+ oneOf:+ - $ref: '#/components/schemas/openstatus.status_page.v1.PageAccessType'+ - type: "null"+ title: access_type+ description: Access type for the status page (optional, defaults to PUBLIC).+ password:+ type:+ - string+ - "null"+ title: password+ maxLength: 256+ minLength: 1+ description: Password for the status page (required when access_type is PASSWORD_PROTECTED).+ authEmailDomains:+ type: array+ items:+ type: string+ title: auth_email_domains+ description: Email domains allowed to access the page (used when access_type is AUTHENTICATED).title: CreateStatusPageRequestadditionalProperties: falsedescription: CreateStatusPageRequest is the request to create a new status page.@@ -2251,7 +2331,8 @@ components:openstatus.status_page.v1.GetOverallStatusRequest:type: objectoneOf:- - properties:+ - type: object+ properties:id:type: stringtitle: id@@ -2259,7 +2340,8 @@ components:title: idrequired:- id- - properties:+ - type: object+ properties:slug:type: stringtitle: slug@@ -2289,7 +2371,8 @@ components:openstatus.status_page.v1.GetStatusPageContentRequest:type: objectoneOf:- - properties:+ - type: object+ properties:id:type: stringtitle: id@@ -2297,7 +2380,8 @@ components:title: idrequired:- id- - properties:+ - type: object+ properties:slug:type: stringtitle: slug@@ -2559,6 +2643,10 @@ components:type: stringtitle: updated_atdescription: Timestamp when the group was last updated (RFC 3339 format).+ defaultOpen:+ type: boolean+ title: default_open+ description: Whether the group should be expanded by default on the status page.title: PageComponentGroupadditionalProperties: falsedescription: PageComponentGroup represents a group of components on a status page.@@ -2707,6 +2795,16 @@ components:$ref: '#/components/schemas/openstatus.status_page.v1.Locale'title: localesdescription: Enabled locales for the status page.+ password:+ type: string+ title: password+ description: Password for the status page (only set when access_type is PASSWORD_PROTECTED).+ authEmailDomains:+ type: array+ items:+ type: string+ title: auth_email_domains+ description: Email domains allowed to access the page (only set when access_type is AUTHENTICATED).title: StatusPageadditionalProperties: falsedescription: StatusPage represents a full status page with all details.@@ -2784,7 +2882,8 @@ components:minLength: 1description: ID of the status page to unsubscribe from (required).- oneOf:- - properties:+ - type: object+ properties:email:type: stringtitle: email@@ -2792,7 +2891,8 @@ components:title: emailrequired:- - properties:+ - type: object+ properties:id:type: stringtitle: id@@ -2829,6 +2929,12 @@ components:maxLength: 256minLength: 1description: New display name for the group (optional).+ defaultOpen:+ type:+ - boolean+ - "null"+ title: default_open+ description: Whether the group should be expanded by default on the status page (optional).title: UpdateComponentGroupRequestadditionalProperties: falsedescription: UpdateComponentGroupRequest is the request to update a component group.@@ -2953,6 +3059,46 @@ components:$ref: '#/components/schemas/openstatus.status_page.v1.Locale'title: localesdescription: New enabled locales for the status page (optional).+ icon:+ type:+ - string+ - "null"+ title: icon+ maxLength: 1024+ description: New icon URL for the status page (optional).+ customDomain:+ type:+ - string+ - "null"+ title: custom_domain+ maxLength: 256+ description: New custom domain (optional).+ theme:+ oneOf:+ - $ref: '#/components/schemas/openstatus.status_page.v1.PageTheme'+ - type: "null"+ title: theme+ description: New visual theme (optional).+ accessType:+ oneOf:+ - $ref: '#/components/schemas/openstatus.status_page.v1.PageAccessType'+ - type: "null"+ title: access_type+ description: New access type (optional).+ password:+ type:+ - string+ - "null"+ title: password+ maxLength: 256+ minLength: 1+ description: New password (optional, required when access_type is PASSWORD_PROTECTED).+ authEmailDomains:+ type: array+ items:+ type: string+ title: auth_email_domains+ description: New email domains (optional, required when access_type is AUTHENTICATED).title: UpdateStatusPageRequestadditionalProperties: falsedescription: UpdateStatusPageRequest is the request to update a status page.@@ -3281,6 +3427,15 @@ components:type: stringtitle: page_component_idsdescription: New list of page component IDs (optional, replaces existing list).+ updatePageComponentIds:+ type:+ - boolean+ - "null"+ title: update_page_component_ids+ description: |-+ Set to true to update page component associations.+ When true, page_component_ids replaces the existing list (empty clears all).+ When false or unset, page_component_ids is ignored and existing associations are preserved.title: UpdateStatusReportRequestadditionalProperties: falsedescription: UpdateStatusReportRequest is the request to update a status report's metadata.diff --git a/packages/proto/gen/openapi.yaml b/packages/proto/gen/openapi.yamlindex 3c3aa327c..f8c13226c 100644--- a/packages/proto/gen/openapi.yaml+++ b/packages/proto/gen/openapi.yaml@@ -379,13 +379,23 @@ components:- string- "null"title: page_id- description: New page ID (optional).+ description: 'Deprecated: page_id is now derived from page_component_ids.'+ deprecated: truepageComponentIds:type: arrayitems:type: stringtitle: page_component_idsdescription: New list of page component IDs (optional, replaces existing list).+ updatePageComponentIds:+ type:+ - boolean+ - "null"+ title: update_page_component_ids+ description: |-+ Set to true to update page component associations.+ When true, page_component_ids replaces the existing list (empty clears all).+ When false or unset, page_component_ids is ignored and existing associations are preserved.title: UpdateMaintenanceRequestadditionalProperties: falsedescription: UpdateMaintenanceRequest is the request to update a maintenance window.@@ -997,7 +1007,8 @@ components:openstatus.monitor.v1.MonitorConfig:type: objectoneOf:- - properties:+ - type: object+ properties:dns:title: dnsdescription: DNS monitor configuration.@@ -1005,7 +1016,8 @@ components:title: dnsrequired:- dns- - properties:+ - type: object+ properties:http:title: httpdescription: HTTP monitor configuration.@@ -1013,7 +1025,8 @@ components:title: httprequired:- http- - properties:+ - type: object+ properties:tcp:title: tcpdescription: TCP monitor configuration.@@ -1634,7 +1647,8 @@ components:openstatus.notification.v1.NotificationData:type: objectoneOf:- - properties:+ - type: object+ properties:discord:title: discorddescription: Discord configuration.@@ -1642,7 +1656,8 @@ components:title: discordrequired:- discord- - properties:+ - type: object+ properties:email:title: emaildescription: Email configuration.@@ -1650,7 +1665,8 @@ components:title: emailrequired:- - properties:+ - type: object+ properties:googleChat:title: google_chatdescription: Google Chat configuration.@@ -1658,7 +1674,8 @@ components:title: google_chatrequired:- googleChat- - properties:+ - type: object+ properties:grafanaOncall:title: grafana_oncalldescription: Grafana OnCall configuration.@@ -1666,7 +1683,8 @@ components:title: grafana_oncallrequired:- grafanaOncall- - properties:+ - type: object+ properties:ntfy:title: ntfydescription: Ntfy configuration.@@ -1674,7 +1692,8 @@ components:title: ntfyrequired:- ntfy- - properties:+ - type: object+ properties:opsgenie:title: opsgeniedescription: Opsgenie configuration.@@ -1682,7 +1701,8 @@ components:title: opsgenierequired:- opsgenie- - properties:+ - type: object+ properties:pagerduty:title: pagerdutydescription: PagerDuty configuration.@@ -1690,7 +1710,8 @@ components:title: pagerdutyrequired:- pagerduty- - properties:+ - type: object+ properties:slack:title: slackdescription: Slack configuration.@@ -1698,7 +1719,8 @@ components:title: slackrequired:- slack- - properties:+ - type: object+ properties:sms:title: smsdescription: SMS configuration.@@ -1706,7 +1728,8 @@ components:title: smsrequired:- sms- - properties:+ - type: object+ properties:telegram:title: telegramdescription: Telegram configuration.@@ -1714,7 +1737,8 @@ components:title: telegramrequired:- telegram- - properties:+ - type: object+ properties:webhook:title: webhookdescription: Webhook configuration.@@ -1722,7 +1746,8 @@ components:title: webhookrequired:- webhook- - properties:+ - type: object+ properties:whatsapp:title: whatsappdescription: WhatsApp configuration.@@ -1941,6 +1966,15 @@ components:type: stringtitle: monitor_idsdescription: Updated monitor IDs to associate.+ updateMonitorIds:+ type:+ - boolean+ - "null"+ title: update_monitor_ids+ description: |-+ Set to true to update monitor associations.+ When true, monitor_ids replaces the existing list (empty clears all).+ When false or unset, monitor_ids is ignored and existing associations are preserved.title: UpdateNotificationRequestadditionalProperties: falsedescription: UpdateNotificationRequest is the request to update a notification channel.@@ -2127,6 +2161,12 @@ components:maxLength: 256minLength: 1description: Display name for the group (required).+ defaultOpen:+ type:+ - boolean+ - "null"+ title: default_open+ description: Whether the group should be expanded by default on the status page (optional, defaults to false).title: CreateComponentGroupRequestadditionalProperties: falsedescription: CreateComponentGroupRequest is the request to create a new component group.@@ -2193,6 +2233,46 @@ components:$ref: '#/components/schemas/openstatus.status_page.v1.Locale'title: localesdescription: Enabled locales for the status page (optional).+ icon:+ type:+ - string+ - "null"+ title: icon+ maxLength: 1024+ description: Icon URL for the status page (optional).+ customDomain:+ type:+ - string+ - "null"+ title: custom_domain+ maxLength: 256+ description: Custom domain for the status page (optional).+ theme:+ oneOf:+ - $ref: '#/components/schemas/openstatus.status_page.v1.PageTheme'+ - type: "null"+ title: theme+ description: Visual theme for the status page (optional, defaults to SYSTEM).+ accessType:+ oneOf:+ - $ref: '#/components/schemas/openstatus.status_page.v1.PageAccessType'+ - type: "null"+ title: access_type+ description: Access type for the status page (optional, defaults to PUBLIC).+ password:+ type:+ - string+ - "null"+ title: password+ maxLength: 256+ minLength: 1+ description: Password for the status page (required when access_type is PASSWORD_PROTECTED).+ authEmailDomains:+ type: array+ items:+ type: string+ title: auth_email_domains+ description: Email domains allowed to access the page (used when access_type is AUTHENTICATED).title: CreateStatusPageRequestadditionalProperties: falsedescription: CreateStatusPageRequest is the request to create a new status page.@@ -2251,7 +2331,8 @@ components:openstatus.status_page.v1.GetOverallStatusRequest:type: objectoneOf:- - properties:+ - type: object+ properties:id:type: stringtitle: id@@ -2259,7 +2340,8 @@ components:title: idrequired:- id- - properties:+ - type: object+ properties:slug:type: stringtitle: slug@@ -2289,7 +2371,8 @@ components:openstatus.status_page.v1.GetStatusPageContentRequest:type: objectoneOf:- - properties:+ - type: object+ properties:id:type: stringtitle: id@@ -2297,7 +2380,8 @@ components:title: idrequired:- id- - properties:+ - type: object+ properties:slug:type: stringtitle: slug@@ -2559,6 +2643,10 @@ components:type: stringtitle: updated_atdescription: Timestamp when the group was last updated (RFC 3339 format).+ defaultOpen:+ type: boolean+ title: default_open+ description: Whether the group should be expanded by default on the status page.title: PageComponentGroupadditionalProperties: falsedescription: PageComponentGroup represents a group of components on a status page.@@ -2707,6 +2795,16 @@ components:$ref: '#/components/schemas/openstatus.status_page.v1.Locale'title: localesdescription: Enabled locales for the status page.+ password:+ type: string+ title: password+ description: Password for the status page (only set when access_type is PASSWORD_PROTECTED).+ authEmailDomains:+ type: array+ items:+ type: string+ title: auth_email_domains+ description: Email domains allowed to access the page (only set when access_type is AUTHENTICATED).title: StatusPageadditionalProperties: falsedescription: StatusPage represents a full status page with all details.@@ -2784,7 +2882,8 @@ components:minLength: 1description: ID of the status page to unsubscribe from (required).- oneOf:- - properties:+ - type: object+ properties:email:type: stringtitle: email@@ -2792,7 +2891,8 @@ components:title: emailrequired:- - properties:+ - type: object+ properties:id:type: stringtitle: id@@ -2829,6 +2929,12 @@ components:maxLength: 256minLength: 1description: New display name for the group (optional).+ defaultOpen:+ type:+ - boolean+ - "null"+ title: default_open+ description: Whether the group should be expanded by default on the status page (optional).title: UpdateComponentGroupRequestadditionalProperties: falsedescription: UpdateComponentGroupRequest is the request to update a component group.@@ -2953,6 +3059,46 @@ components:$ref: '#/components/schemas/openstatus.status_page.v1.Locale'title: localesdescription: New enabled locales for the status page (optional).+ icon:+ type:+ - string+ - "null"+ title: icon+ maxLength: 1024+ description: New icon URL for the status page (optional).+ customDomain:+ type:+ - string+ - "null"+ title: custom_domain+ maxLength: 256+ description: New custom domain (optional).+ theme:+ oneOf:+ - $ref: '#/components/schemas/openstatus.status_page.v1.PageTheme'+ - type: "null"+ title: theme+ description: New visual theme (optional).+ accessType:+ oneOf:+ - $ref: '#/components/schemas/openstatus.status_page.v1.PageAccessType'+ - type: "null"+ title: access_type+ description: New access type (optional).+ password:+ type:+ - string+ - "null"+ title: password+ maxLength: 256+ minLength: 1+ description: New password (optional, required when access_type is PASSWORD_PROTECTED).+ authEmailDomains:+ type: array+ items:+ type: string+ title: auth_email_domains+ description: New email domains (optional, required when access_type is AUTHENTICATED).title: UpdateStatusPageRequestadditionalProperties: falsedescription: UpdateStatusPageRequest is the request to update a status page.@@ -3281,6 +3427,15 @@ components:type: stringtitle: page_component_idsdescription: New list of page component IDs (optional, replaces existing list).+ updatePageComponentIds:+ type:+ - boolean+ - "null"+ title: update_page_component_ids+ description: |-+ Set to true to update page component associations.+ When true, page_component_ids replaces the existing list (empty clears all).+ When false or unset, page_component_ids is ignored and existing associations are preserved.title: UpdateStatusReportRequestadditionalProperties: falsedescription: UpdateStatusReportRequest is the request to update a status report's metadata.diff --git a/packages/proto/scripts/clean-openapi.ts b/packages/proto/scripts/clean-openapi.tsindex 4f89e9a98..df054fde5 100644--- a/packages/proto/scripts/clean-openapi.ts+++ b/packages/proto/scripts/clean-openapi.ts@@ -93,4 +93,18 @@ for (let j = 0; j < out.length; j++) {final.push(out[j]);}-writeFileSync(OPENAPI_PATH, final.join("\n"));+const cleaned = final.join("\n");+writeFileSync(OPENAPI_PATH, cleaned);++// Copy cleaned spec to server static directory+const serverOpenAPIPath = join(+ // biome-ignore lint/style/noNonNullAssertion: <explanation>+ dirname(import.meta.dirname!),+ "..",+ "..",+ "apps",+ "server",+ "static",+ "openapi.yaml",+);+writeFileSync(serverOpenAPIPath, cleaned);