mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: add support for multiple banners (#13081)
This commit is contained in:
committed by
GitHub
parent
a4bd50c985
commit
d8e0be6ee6
54
coderd/apidoc/docs.go
generated
54
coderd/apidoc/docs.go
generated
@ -8272,8 +8272,19 @@ const docTemplate = `{
|
||||
"logo_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"notification_banners": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.BannerConfig"
|
||||
}
|
||||
},
|
||||
"service_banner": {
|
||||
"$ref": "#/definitions/codersdk.ServiceBannerConfig"
|
||||
"description": "Deprecated: ServiceBanner has been replaced by NotificationBanners.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/codersdk.BannerConfig"
|
||||
}
|
||||
]
|
||||
},
|
||||
"support_links": {
|
||||
"type": "array",
|
||||
@ -8530,6 +8541,20 @@ const docTemplate = `{
|
||||
"AutomaticUpdatesNever"
|
||||
]
|
||||
},
|
||||
"codersdk.BannerConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"background_color": {
|
||||
"type": "string"
|
||||
},
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.BuildInfoResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -11060,20 +11085,6 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.ServiceBannerConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"background_color": {
|
||||
"type": "string"
|
||||
},
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.SessionCountDeploymentStats": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -11906,8 +11917,19 @@ const docTemplate = `{
|
||||
"logo_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"notification_banners": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.BannerConfig"
|
||||
}
|
||||
},
|
||||
"service_banner": {
|
||||
"$ref": "#/definitions/codersdk.ServiceBannerConfig"
|
||||
"description": "Deprecated: ServiceBanner has been replaced by NotificationBanners.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/codersdk.BannerConfig"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user