Skip to content

Open-source status page, incident response and uptime monitoring

feat: add custom_domain to StatusPageSummary proto message (#2007)

Thibault Le Ouayc3d087f85c2a
diff --git a/apps/server/src/routes/rpc/services/status-page/converters.ts b/apps/server/src/routes/rpc/services/status-page/converters.ts
index c359d893f..a61c3de34 100644
--- a/apps/server/src/routes/rpc/services/status-page/converters.ts
+++ b/apps/server/src/routes/rpc/services/status-page/converters.ts
@@ -235,6 +235,7 @@ export function dbPageToProtoSummary(page: DBPage): StatusPageSummary {
published: page.published ?? false,
createdAt: page.createdAt?.toISOString() ?? "",
updatedAt: page.updatedAt?.toISOString() ?? "",
+ customDomain: page.customDomain ?? "",
};
}
diff --git a/apps/server/static/openapi.yaml b/apps/server/static/openapi.yaml
index 57b058435..3c3aa327c 100644
--- a/apps/server/static/openapi.yaml
+++ b/apps/server/static/openapi.yaml
@@ -2181,6 +2181,18 @@ components:
- "null"
title: contact_url
description: URL to the contact page (optional).
+ defaultLocale:
+ oneOf:
+ - $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ - type: "null"
+ title: default_locale
+ description: Default locale for the status page (optional, defaults to EN).
+ locales:
+ type: array
+ items:
+ $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ title: locales
+ description: Enabled locales for the status page (optional).
title: CreateStatusPageRequest
additionalProperties: false
description: CreateStatusPageRequest is the request to create a new status page.
@@ -2442,6 +2454,15 @@ components:
title: ListSubscribersResponse
additionalProperties: false
description: ListSubscribersResponse is the response containing status page subscribers.
+ openstatus.status_page.v1.Locale:
+ type: string
+ title: Locale
+ enum:
+ - LOCALE_UNSPECIFIED
+ - LOCALE_EN
+ - LOCALE_FR
+ - LOCALE_DE
+ description: Locale defines the supported languages for a status page.
openstatus.status_page.v1.OverallStatus:
type: string
title: OverallStatus
@@ -2676,6 +2697,16 @@ components:
- "2024-06-20T14:30:00Z"
title: updated_at
description: Timestamp when the page was last updated (RFC 3339 format).
+ defaultLocale:
+ title: default_locale
+ description: Default locale for the status page.
+ $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ locales:
+ type: array
+ items:
+ $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ title: locales
+ description: Enabled locales for the status page.
title: StatusPage
additionalProperties: false
description: StatusPage represents a full status page with all details.
@@ -2706,6 +2737,12 @@ components:
type: string
title: updated_at
description: Timestamp when the page was last updated (RFC 3339 format).
+ customDomain:
+ type: string
+ examples:
+ - status.example.com
+ title: custom_domain
+ description: Custom domain for the status page (optional).
title: StatusPageSummary
additionalProperties: false
description: StatusPageSummary represents metadata for a status page (used in list responses).
@@ -2904,6 +2941,18 @@ components:
- "null"
title: contact_url
description: New contact URL (optional).
+ defaultLocale:
+ oneOf:
+ - $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ - type: "null"
+ title: default_locale
+ description: New default locale for the status page (optional).
+ locales:
+ type: array
+ items:
+ $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ title: locales
+ description: New enabled locales for the status page (optional).
title: UpdateStatusPageRequest
additionalProperties: false
description: UpdateStatusPageRequest is the request to update a status page.
diff --git a/packages/proto/api/openstatus/status_page/v1/status_page.proto b/packages/proto/api/openstatus/status_page/v1/status_page.proto
index 6b5753b5b..997749fbb 100644
--- a/packages/proto/api/openstatus/status_page/v1/status_page.proto
+++ b/packages/proto/api/openstatus/status_page/v1/status_page.proto
@@ -117,4 +117,9 @@ message StatusPageSummary {
// Timestamp when the page was last updated (RFC 3339 format).
string updated_at = 6;
+
+ // Custom domain for the status page (optional).
+ string custom_domain = 7 [
+ (gnostic.openapi.v3.property) = {example: {yaml: "status.example.com"}}
+ ];
}
diff --git a/packages/proto/gen/openapi.yaml b/packages/proto/gen/openapi.yaml
index 57b058435..3c3aa327c 100644
--- a/packages/proto/gen/openapi.yaml
+++ b/packages/proto/gen/openapi.yaml
@@ -2181,6 +2181,18 @@ components:
- "null"
title: contact_url
description: URL to the contact page (optional).
+ defaultLocale:
+ oneOf:
+ - $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ - type: "null"
+ title: default_locale
+ description: Default locale for the status page (optional, defaults to EN).
+ locales:
+ type: array
+ items:
+ $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ title: locales
+ description: Enabled locales for the status page (optional).
title: CreateStatusPageRequest
additionalProperties: false
description: CreateStatusPageRequest is the request to create a new status page.
@@ -2442,6 +2454,15 @@ components:
title: ListSubscribersResponse
additionalProperties: false
description: ListSubscribersResponse is the response containing status page subscribers.
+ openstatus.status_page.v1.Locale:
+ type: string
+ title: Locale
+ enum:
+ - LOCALE_UNSPECIFIED
+ - LOCALE_EN
+ - LOCALE_FR
+ - LOCALE_DE
+ description: Locale defines the supported languages for a status page.
openstatus.status_page.v1.OverallStatus:
type: string
title: OverallStatus
@@ -2676,6 +2697,16 @@ components:
- "2024-06-20T14:30:00Z"
title: updated_at
description: Timestamp when the page was last updated (RFC 3339 format).
+ defaultLocale:
+ title: default_locale
+ description: Default locale for the status page.
+ $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ locales:
+ type: array
+ items:
+ $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ title: locales
+ description: Enabled locales for the status page.
title: StatusPage
additionalProperties: false
description: StatusPage represents a full status page with all details.
@@ -2706,6 +2737,12 @@ components:
type: string
title: updated_at
description: Timestamp when the page was last updated (RFC 3339 format).
+ customDomain:
+ type: string
+ examples:
+ - status.example.com
+ title: custom_domain
+ description: Custom domain for the status page (optional).
title: StatusPageSummary
additionalProperties: false
description: StatusPageSummary represents metadata for a status page (used in list responses).
@@ -2904,6 +2941,18 @@ components:
- "null"
title: contact_url
description: New contact URL (optional).
+ defaultLocale:
+ oneOf:
+ - $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ - type: "null"
+ title: default_locale
+ description: New default locale for the status page (optional).
+ locales:
+ type: array
+ items:
+ $ref: '#/components/schemas/openstatus.status_page.v1.Locale'
+ title: locales
+ description: New enabled locales for the status page (optional).
title: UpdateStatusPageRequest
additionalProperties: false
description: UpdateStatusPageRequest is the request to update a status page.
diff --git a/packages/proto/gen/ts/openstatus/status_page/v1/status_page_pb.ts b/packages/proto/gen/ts/openstatus/status_page/v1/status_page_pb.ts
index efb00b6ee..66db9c289 100644
--- a/packages/proto/gen/ts/openstatus/status_page/v1/status_page_pb.ts
+++ b/packages/proto/gen/ts/openstatus/status_page/v1/status_page_pb.ts
@@ -11,7 +11,7 @@ import type { Message } from "@bufbuild/protobuf";
* Describes the file openstatus/status_page/v1/status_page.proto.
*/
export const file_openstatus_status_page_v1_status_page: GenFile = /*@__PURE__*/
- fileDesc("CitvcGVuc3RhdHVzL3N0YXR1c19wYWdlL3YxL3N0YXR1c19wYWdlLnByb3RvEhlvcGVuc3RhdHVzLnN0YXR1c19wYWdlLnYxIqAECgpTdGF0dXNQYWdlEgoKAmlkGAEgASgJEg0KBXRpdGxlGAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEh4KBHNsdWcYBCABKAlCELpHDToLEglhY21lLWNvcnASMAoNY3VzdG9tX2RvbWFpbhgFIAEoCUIZukcWOhQSEnN0YXR1cy5leGFtcGxlLmNvbRIRCglwdWJsaXNoZWQYBiABKAgSPgoLYWNjZXNzX3R5cGUYByABKA4yKS5vcGVuc3RhdHVzLnN0YXR1c19wYWdlLnYxLlBhZ2VBY2Nlc3NUeXBlEjMKBXRoZW1lGAggASgOMiQub3BlbnN0YXR1cy5zdGF0dXNfcGFnZS52MS5QYWdlVGhlbWUSFAoMaG9tZXBhZ2VfdXJsGAkgASgJEhMKC2NvbnRhY3RfdXJsGAogASgJEgwKBGljb24YCyABKAkSLwoKY3JlYXRlZF9hdBgMIAEoCUIbukcYOhYSFDIwMjQtMDEtMTVUMDk6MDA6MDBaEi8KCnVwZGF0ZWRfYXQYDSABKAlCG7pHGDoWEhQyMDI0LTA2LTIwVDE0OjMwOjAwWhI5Cg5kZWZhdWx0X2xvY2FsZRgOIAEoDjIhLm9wZW5zdGF0dXMuc3RhdHVzX3BhZ2UudjEuTG9jYWxlEjI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ZF9hdBgFIAEoCRISCgp1cGRhdGVkX2F0GAYgASgJEjAKDWN1c3RvbV9kb21haW4YByABKAlCGbpHFjoUEhJzdGF0dXMuZXhhbXBsZS5jb20qnAEKDlBhZ2VBY2Nlc3NUeXBlEiAKHFBBR0VfQUNDRVNTX1RZUEVfVU5TUEVDSUZJRUQQABIbChdQQUdFX0FDQ0VTU19UWVBFX1BVQkxJQxABEicKI1BBR0VfQUNDRVNTX1RZUEVfUEFTU1dPUkRfUFJPVEVDVEVEEAISIgoeUEFHRV9BQ0NFU1NfVFlQRV9BVVRIRU5USUNBVEVEEAMqaQoJUGFnZVRoZW1lEhoKFlBBR0VfVEhFTUVfVU5TUEVDSUZJRUQQABIVChFQQUdFX1RIRU1FX1NZU1RFTRABEhQKEFBBR0VfVEhFTUVfTElHSFQQAhITCg9QQUdFX1RIRU1FX0RBUksQAypNCgZMb2NhbGUSFgoSTE9DQUxFX1VOU1BFQ0lGSUVEEAASDQoJTE9DQUxFX0VOEAESDQoJTE9DQUxFX0ZSEAISDQoJTE9DQUxFX0RFEAMq7AEKDU92ZXJhbGxTdGF0dXMSHgoaT1ZFUkFMTF9TVEFUVVNfVU5TUEVDSUZJRUQQABIeChpPVkVSQUxMX1NUQVRVU19PUEVSQVRJT05BTBABEhsKF09WRVJBTExfU1RBVFVTX0RFR1JBREVEEAISIQodT1ZFUkFMTF9TVEFUVVNfUEFSVElBTF9PVVRBR0UQAxIfChtPVkVSQUxMX1NUQVRVU19NQUpPUl9PVVRBR0UQBBIeChpPVkVSQUxMX1NUQVRVU19NQUlOVEVOQU5DRRAFEhoKFk9WRVJBTExfU1RBVFVTX1VOS05PV04QBkJaWlhnaXRodWIuY29tL29wZW5zdGF0dXNocS9vcGVuc3RhdHVzL3BhY2thZ2VzL3Byb3RvL29wZW5zdGF0dXMvc3RhdHVzX3BhZ2UvdjE7c3RhdHVzcGFnZXYxYgZwcm90bzM", [file_gnostic_openapi_v3_annotations]);
/**
* StatusPage represents a full status page with all details.
@@ -179,6 +179,13 @@ export type StatusPageSummary = Message<"openstatus.status_page.v1.StatusPageSum
* @generated from field: string updated_at = 6;
*/
updatedAt: string;
+
+ /**
+ * Custom domain for the status page (optional).
+ *
+ * @generated from field: string custom_domain = 7;
+ */
+ customDomain: string;
};
/**