mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: add killswitch for notifications (#13794)
This commit is contained in:
75
coderd/apidoc/docs.go
generated
75
coderd/apidoc/docs.go
generated
@ -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",
|
||||
|
Reference in New Issue
Block a user