From 91a657718293bfc5d03001962156e9224c9a29b2 Mon Sep 17 00:00:00 2001 From: bcmmbaga Date: Mon, 13 Apr 2026 17:39:32 +0300 Subject: [PATCH] Add support for Slack as a notification channel type Signed-off-by: bcmmbaga --- shared/management/http/api/openapi.yml | 3 +++ shared/management/http/api/types.gen.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/shared/management/http/api/openapi.yml b/shared/management/http/api/openapi.yml index 766fdf0de..cd2f02315 100644 --- a/shared/management/http/api/openapi.yml +++ b/shared/management/http/api/openapi.yml @@ -4751,6 +4751,7 @@ components: enum: - email - webhook + - slack example: "email" NotificationEventType: type: string @@ -4804,6 +4805,7 @@ components: Channel-specific target configuration. The shape depends on the `type` field: - `email`: requires an `EmailTarget` object - `webhook`: requires a `WebhookTarget` object + - `slack`: requires a `WebhookTarget` object oneOf: - $ref: '#/components/schemas/EmailTarget' - $ref: '#/components/schemas/WebhookTarget' @@ -4837,6 +4839,7 @@ components: Channel-specific target configuration. The shape depends on the `type` field: - `email`: an `EmailTarget` object - `webhook`: a `WebhookTarget` object + - `slack`: a `WebhookTarget` object oneOf: - $ref: '#/components/schemas/EmailTarget' - $ref: '#/components/schemas/WebhookTarget' diff --git a/shared/management/http/api/types.gen.go b/shared/management/http/api/types.gen.go index 14bb6ee03..2d1a6f45a 100644 --- a/shared/management/http/api/types.gen.go +++ b/shared/management/http/api/types.gen.go @@ -686,6 +686,7 @@ func (e NetworkResourceType) Valid() bool { // Defines values for NotificationChannelType. const ( NotificationChannelTypeEmail NotificationChannelType = "email" + NotificationChannelTypeSlack NotificationChannelType = "slack" NotificationChannelTypeWebhook NotificationChannelType = "webhook" ) @@ -694,6 +695,8 @@ func (e NotificationChannelType) Valid() bool { switch e { case NotificationChannelTypeEmail: return true + case NotificationChannelTypeSlack: + return true case NotificationChannelTypeWebhook: return true default: