Ë
    tPêj  ã                  óœ   — d dl mZ d dlmZ d dlmZmZ  G d„ de«      Z G d„ de«      Z	 G d„ d	e«      Z
 G d
„ dee«      Z G d„ de«      Zy)é    )Úannotations)Ústatus)ÚProxyErrorTypesÚProxyExceptionc                  ó   — e Zd ZdZy)ÚIdentityResolutionErrorzBBase for every failure raised while resolving a caller's identity.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úl/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/proxy/auth/resolvers/exceptions.pyr   r      s   „ ÚLr   r   c                  ó    ‡ — e Zd Zdˆ fd„Zˆ xZS )ÚNoDatabaseConnectionErrorc                ó$   •— t         ‰| �  d«       y )NzFNo DB Connected. See - https://docs.litellm.ai/docs/proxy/virtual_keys©ÚsuperÚ__init__©ÚselfÚ	__class__s    €r   r   z"NoDatabaseConnectionError.__init__   s   ø€ Ü‰ÑÐaÕbr   ©ÚreturnÚNone©r	   r
   r   r   Ú__classcell__©r   s   @r   r   r      s   ø„ ÷cñ cr   r   c                  ó    ‡ — e Zd Zdˆ fd„Zˆ xZS )ÚKeyNotInCacheErrorc                ó,   •— t         ‰| �  d|› d�«       y )Nz8Key doesn't exist in cache + check_cache_only=True. key=ú.r   )r   Úhashed_tokenr   s     €r   r   zKeyNotInCacheError.__init__   s   ø€ Ü‰ÑÐSÐT`ÐSaÐabÐcÕdr   ©r#   Ústrr   r   r   r   s   @r   r    r       s   ø„ ÷eñ er   r    c                  ó   — e Zd ZdZdd„Zy)ÚKeyNotFoundErrorzñThe token matched nothing in the cache or the verification token table.

    Also a ``ProxyException`` so the auth flow keeps mapping a missing key to the
    OpenAI 401 contract unchanged while callers migrate onto the typed hierarchy.
    c                óx   — t        j                  | d|› d�t        j                  dt        j
                  ¬«       y )Nz=Authentication Error, Invalid proxy server token passed. key=z7, not found in db. Create key via `/key/generate` call.Úkey)ÚmessageÚtypeÚparamÚcode)r   r   r   Útoken_not_found_in_dbr   ÚHTTP_401_UNAUTHORIZED)r   r#   s     r   r   zKeyNotFoundError.__init__   s>   € Ü×ÑØØSÐT`ÐSað  bYð  ZÜ ×6Ñ6ØÜ×-Ñ-ö	
r   Nr$   )r	   r
   r   r   r   r   r   r   r'   r'      s   „ ñô
r   r'   c                  ó    ‡ — e Zd Zdˆ fd„Zˆ xZS )ÚPrincipalMissingSourceKeyErrorc                ó$   •— t         ‰| �  d«       y )NzMPrincipal carries no source key; it was not produced by IdentityStore.resolver   r   s    €r   r   z'PrincipalMissingSourceKeyError.__init__(   s   ø€ Ü‰ÑÐhÕir   r   r   r   s   @r   r1   r1   '   s   ø„ ÷jñ jr   r1   N)Ú
__future__r   Úfastapir   Úlitellm.proxy._typesr   r   Ú	Exceptionr   r   r    r'   r1   r   r   r   ú<module>r7      sX   ðÝ "å ç @ôM˜iô MôcÐ 7ô cô
eÐ0ô eô

Ð.°ô 
ô"jÐ%<õ jr   