Resolves the effective spend limit for a user using the hierarchy: 1. Individual user override (highest priority, applies globally across all organizations since it lives on the users table) 2. Minimum group limit across the user's groups 3. Global default from config Returns -1 if limits are not en
(ctx context.Context, arg ResolveUserChatSpendLimitParams)
| 1113 | // limit_source indicates which tier won: 'user', 'group', 'default', |
| 1114 | // or 'disabled'. |
| 1115 | ResolveUserChatSpendLimit(ctx context.Context, arg ResolveUserChatSpendLimitParams) (ResolveUserChatSpendLimitRow, error) |
| 1116 | RevokeDBCryptKey(ctx context.Context, activeKeyDigest string) error |
| 1117 | // Note that this selects from the CTE, not the original table. The CTE is named |
| 1118 | // the same as the original table to trick sqlc into reusing the existing struct |
no outgoing calls