(ctx context.Context, arg database.InsertAIBridgeUserPromptParams)
| 5414 | } |
| 5415 | |
| 5416 | func (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 | |
| 5424 | func (q *querier) InsertAIProvider(ctx context.Context, arg database.InsertAIProviderParams) (database.AIProvider, error) { |
| 5425 | if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceAIProvider); err != nil { |
nothing calls this directly
no test coverage detected