MCPcopy Index your code
hub / github.com/coder/coder / InsertAIBridgeUserPrompt

Method InsertAIBridgeUserPrompt

coderd/database/dbauthz/dbauthz.go:5416–5422  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertAIBridgeUserPromptParams)

Source from the content-addressed store, hash-verified

5414}
5415
5416func (q *querier) InsertAIBridgeUserPrompt(ctx context.Context, arg database.InsertAIBridgeUserPromptParams) (database.AIBridgeUserPrompt, error) {
5417 // All aibridge_user_prompts records belong to the initiator of their associated interception.
5418 if err := q.authorizeAIBridgeInterceptionAction(ctx, policy.ActionUpdate, arg.InterceptionID); err != nil {
5419 return database.AIBridgeUserPrompt{}, err
5420 }
5421 return q.db.InsertAIBridgeUserPrompt(ctx, arg)
5422}
5423
5424func (q *querier) InsertAIProvider(ctx context.Context, arg database.InsertAIProviderParams) (database.AIProvider, error) {
5425 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceAIProvider); err != nil {

Callers

nothing calls this directly

Tested by

no test coverage detected