mirror of
https://github.com/coder/coder.git
synced 2026-10-24 23:14:28 +08:00
feat: make database.Chat auditable (#24485)
Wire database.Chat into the audit system so chat lifecycle events
(creation, patches, etc.) produce audit log entries.
Part of CODAGT-200.
> 🤖
This commit is contained in:
@@ -46,6 +46,7 @@ const (
|
||||
ResourceTypeWorkspaceApp ResourceType = "workspace_app"
|
||||
ResourceTypeTask ResourceType = "task"
|
||||
ResourceTypeAISeat ResourceType = "ai_seat"
|
||||
ResourceTypeChat ResourceType = "chat"
|
||||
)
|
||||
|
||||
func (r ResourceType) FriendlyString() string {
|
||||
@@ -106,6 +107,8 @@ func (r ResourceType) FriendlyString() string {
|
||||
return "task"
|
||||
case ResourceTypeAISeat:
|
||||
return "ai seat"
|
||||
case ResourceTypeChat:
|
||||
return "chat"
|
||||
default:
|
||||
return "unknown"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user