(ctx context.Context, arg database.InsertAIProviderKeyParams)
| 5429 | } |
| 5430 | |
| 5431 | func (q *querier) InsertAIProviderKey(ctx context.Context, arg database.InsertAIProviderKeyParams) (database.AIProviderKey, error) { |
| 5432 | if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceAIProvider); err != nil { |
| 5433 | return database.AIProviderKey{}, err |
| 5434 | } |
| 5435 | return q.db.InsertAIProviderKey(ctx, arg) |
| 5436 | } |
| 5437 | |
| 5438 | func (q *querier) InsertAPIKey(ctx context.Context, arg database.InsertAPIKeyParams) (database.APIKey, error) { |
| 5439 | // TODO(Cian): ideally this would be encoded in the policy, but system users are just members and we |
nothing calls this directly
no test coverage detected