Ë
    tPêj&	  ã                  ó  — d dl mZ d dlmZ d dlmZmZmZ d dlm	Z	 d dl
mZ d dlmZ d dlmZmZ  G d„ d	ee«      Z G d
„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy)é    )Úannotations)ÚEnum)Ú	BaseModelÚ
ConfigDictÚField)ÚUserAPIKeyAuth)Ú
AuthMethod)ÚNetworkContext)ÚRoleÚTeamRolec                  ó   — e Zd ZdZdZy)ÚPrincipalTypeÚhumanÚservice_accountN)Ú__name__Ú
__module__Ú__qualname__ÚHUMANÚSERVICE_ACCOUNT© ó    úh/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/proxy/auth/resolvers/models.pyr   r      s   „ Ø€EØ'�Or   r   c                  óP   — e Zd ZU ded<   dZded<   dZded<   dZded<   dZded<   y)	ÚUserIdentityÚstrÚidNú
str | NoneÚexternal_idÚ	user_nameÚemailÚdisplay_name)r   r   r   Ú__annotations__r   r   r    r!   r   r   r   r   r      s/   … ØƒGØ"€K�Ó"Ø €IˆzÓ Ø€Eˆ:ÓØ#€L�*Ô#r   r   c                  ó&   — e Zd ZU ded<   dZded<   y)ÚOrganizationIdentityr   r   Nr   Úname©r   r   r   r"   r%   r   r   r   r$   r$      ó   … ØƒGØ€Dˆ*Ôr   r$   c                  óH   — e Zd ZU ded<   dZded<   ej                  Zded<   y)ÚTeamIdentityr   r   Nr   r%   r   Úrole)r   r   r   r"   r%   r   ÚMEMBERr*   r   r   r   r)   r)      s   … ØƒGØ€Dˆ*ÓØ—_‘_€Dˆ(Ô$r   r)   c                  ó&   — e Zd ZU ded<   dZded<   y)ÚProjectIdentityr   r   Nr   r%   r&   r   r   r   r-   r-   %   r'   r   r-   c                  ó   — e Zd ZU ded<   y)ÚEndUserIdentityr   r   N)r   r   r   r"   r   r   r   r/   r/   *   s   … Ø„Gr   r/   c                  ó*   — e Zd ZU dZded<   dZded<   y)ÚCredentialRefNr   Úkey_idÚtoken_id)r   r   r   r2   r"   r3   r   r   r   r1   r1   .   s   … Ø€FˆJÓØ€HˆjÔr   r1   c                  óP  — e Zd ZU dZ ed¬«      Zded<   ded<   dZd	ed
<    ee	¬«      Z
ded<   dZded<   dZded<    ee	¬«      Zded<   dZded<   dZded<    ee	¬«      Zded<    ee	¬«      Zded<   ded<    ee¬«      Zded<    ee¬«      Zded <    eddd!¬"«      Zd#ed$<   y)%Ú	Principala  Normalized caller identity, resolved once per request at the auth seam.

    Frozen and constructed fresh per request, never cached or shared. The identity
    fields carry no policy, budget, or rate-limit state. ``source_key`` is a
    transitional carrier for the resolved key object so ``key_from_principal`` can
    hand it to the request flow that still consumes ``UserAPIKeyAuth``; it is
    excluded from serialization and repr and goes away once those consumers read
    identity off the Principal directly.
    T)Úfrozenr   Úprincipal_typer   ÚsubjectNr   Úissuer)Údefault_factoryz	list[str]ÚaudiencezUserIdentity | NoneÚuserzOrganizationIdentity | NoneÚorganizationzlist[TeamIdentity]ÚteamszProjectIdentity | NoneÚprojectzEndUserIdentity | NoneÚend_userz
list[Role]ÚrolesÚscopesr	   Úauth_methodr1   Úcredential_refr
   ÚnetworkF)ÚdefaultÚexcludeÚreprzUserAPIKeyAuth | NoneÚ
source_key)r   r   r   Ú__doc__r   Úmodel_configr"   r9   r   Úlistr;   r<   r=   r>   r?   r@   rA   rB   r1   rD   r
   rE   rI   r   r   r   r5   r5   3   sÉ   … ññ  TÔ*€Là!Ó!ØƒLØ€FˆJÓÙ°Ô5€HˆiÓ5à $€DÐ
Ó$Ø04€LÐ-Ó4Ù %°dÔ ;€EÐÓ;Ø&*€GÐ#Ó*Ø'+€HÐ$Ó+á¨dÔ3€Eˆ:Ó3Ù¨dÔ3€FˆIÓ3àÓÙ$)¸-Ô$H€N�MÓHÙ#°NÔC€Gˆ^ÓCá(-°dÀDÈuÔ(U€JÐ%ÔUr   r5   N)Ú
__future__r   Úenumr   Úpydanticr   r   r   Úlitellm.proxy._typesr   Úlitellm.proxy.auth.auth_methodr	   Úlitellm.proxy.auth.networkr
   Úlitellm.proxy.auth.rolesr   r   r   r   r   r$   r)   r-   r/   r1   r5   r   r   r   ú<module>rT      s�   ðÝ "å ç 1Ñ 1å /Ý 5Ý 5ß 3ô(�C˜ô (ô
$�9ô $ô˜9ô ô
%�9ô %ô�iô ô
�iô ô �Iô  ô
V�	õ Vr   