mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add ai_providers table, queries, dbauthz, audit, RBAC (#24892)
This commit is contained in:
@@ -23,6 +23,16 @@ var (
|
||||
Type: "ai_model_price",
|
||||
}
|
||||
|
||||
// ResourceAIProvider
|
||||
// Valid Actions
|
||||
// - "ActionCreate" :: create an AI provider
|
||||
// - "ActionDelete" :: delete an AI provider
|
||||
// - "ActionRead" :: read AI provider configuration
|
||||
// - "ActionUpdate" :: update an AI provider
|
||||
ResourceAIProvider = Object{
|
||||
Type: "ai_provider",
|
||||
}
|
||||
|
||||
// ResourceAiSeat
|
||||
// Valid Actions
|
||||
// - "ActionCreate" :: record AI seat usage
|
||||
@@ -450,6 +460,7 @@ func AllResources() []Objecter {
|
||||
return []Objecter{
|
||||
ResourceWildcard,
|
||||
ResourceAiModelPrice,
|
||||
ResourceAIProvider,
|
||||
ResourceAiSeat,
|
||||
ResourceAibridgeInterception,
|
||||
ResourceApiKey,
|
||||
|
||||
Reference in New Issue
Block a user