(ctx context.Context, arg database.InsertAIBridgeToolUsageParams)
| 5406 | } |
| 5407 | |
| 5408 | func (q *querier) InsertAIBridgeToolUsage(ctx context.Context, arg database.InsertAIBridgeToolUsageParams) (database.AIBridgeToolUsage, error) { |
| 5409 | // All aibridge_tool_usages records belong to the initiator of their associated interception. |
| 5410 | if err := q.authorizeAIBridgeInterceptionAction(ctx, policy.ActionUpdate, arg.InterceptionID); err != nil { |
| 5411 | return database.AIBridgeToolUsage{}, err |
| 5412 | } |
| 5413 | return q.db.InsertAIBridgeToolUsage(ctx, arg) |
| 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. |
nothing calls this directly
no test coverage detected