feat: add killswitch for notifications (#13794)

This commit is contained in:
Marcin Tojek
2024-07-10 16:15:06 +02:00
committed by GitHub
parent 542fff7df0
commit bf392ffea4
31 changed files with 774 additions and 25 deletions

75
coderd/apidoc/docs.go generated
View File

@ -1547,6 +1547,71 @@ const docTemplate = `{
}
}
},
"/notifications/settings": {
"get": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": [
"application/json"
],
"tags": [
"General"
],
"summary": "Get notifications settings",
"operationId": "get-notifications-settings",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.NotificationsSettings"
}
}
}
},
"put": {
"security": [
{
"CoderSessionToken": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"General"
],
"summary": "Update notifications settings",
"operationId": "update-notifications-settings",
"parameters": [
{
"description": "Notifications settings request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/codersdk.NotificationsSettings"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.NotificationsSettings"
}
},
"304": {
"description": "Not Modified"
}
}
}
},
"/oauth2-provider/apps": {
"get": {
"security": [
@ -10009,6 +10074,14 @@ const docTemplate = `{
}
}
},
"codersdk.NotificationsSettings": {
"type": "object",
"properties": {
"notifier_paused": {
"type": "boolean"
}
}
},
"codersdk.NotificationsWebhookConfig": {
"type": "object",
"properties": {
@ -11036,6 +11109,7 @@ const docTemplate = `{
"license",
"convert_login",
"health_settings",
"notifications_settings",
"workspace_proxy",
"organization",
"oauth2_provider_app",
@ -11054,6 +11128,7 @@ const docTemplate = `{
"ResourceTypeLicense",
"ResourceTypeConvertLogin",
"ResourceTypeHealthSettings",
"ResourceTypeNotificationsSettings",
"ResourceTypeWorkspaceProxy",
"ResourceTypeOrganization",
"ResourceTypeOAuth2ProviderApp",