+
    Pj                     f   R t ^ RIHt ^ RIt^ RIHt ^ RIHt ^RIH	t	H
t
HtHtHt ^RIHt ^RIHtHtHtHt ^RIHtHt ^R	IHtHt ^R
IHt ^RIHtHt ]P@                  ! ]!4      t"]! RR7      t#]#PI                  R. R,OR7      R-R R ll4       t%]#PI                  RRR.R7      R.R R ll4       t&R R lt']#PI                  RRR.R7      R/R R ll4       t(]#PI                  RR.R7      R  R! l4       t)]#PI                  R"R#R$.R7      R% R& l4       t*]#PI                  R'R(R).R7      R* R+ l4       t+R# )0z^Contains commands to authenticate to the Hugging Face Hub and interact with your repositories.)	AnnotatedN)ENDPOINT)whoami)_save_oauth_token	auth_listauth_switchloginlogout)CLIError)get_stored_tokens	get_tokenloggingselect_choice)poll_device_tokenrequest_device_code)TokenOpttyper_factory)Option)OutputFormatoutz,Manage authentication (login, logout, etc.).helpr   )examplesc                    V ^8  d   QhR\         R\        \        \        RR7      3,          R\        \        \        RR7      3,          RR/# )	   tokenadd_to_git_credentialTSave to git credential helper. Useful only if you plan to run git commands directly.r   forcez)Force re-login even if already logged in.returnN)r   r   boolr   )formats   "q/Users/ahmed/devFolder/Ultron/claude-voice/gateway/.venv/lib/python3.14/site-packages/huggingface_hub/cli/auth.py__annotate__r#   /   sf     *b *b*b$g	
	*b <	
	*b 
*b    c           	        V f$   \         P                  \        P                  8X  d   \	        WV'       * R7       R# \         P                  \        P
                  8w  d   \        R4      hV'       g&   \        4       e   \         P                  ! RR7       R# \        4       p\         P                  ! RVR,           RVR	,           R
VR,           R2R7       \        V4      p\        V4      w  rV\         P                  ! RV RV R2R7       R# )zNLogin from your browser, or using a token from huggingface.co/settings/tokens.N)r   r   skip_if_logged_inzr`hf auth login` is interactive and does not support --format json/quiet. Pass --token for a non-interactive login.z;Already logged in. Use `hf auth login --force` to re-login.)agentzAsk the user to open verification_uri_completez! in a browser and enter the code 	user_codez. The code expires in 
expires_inz& seconds. Waiting for authorization...zLogin successful: logged in as z (token saved as 'z').)r   moder   humanr   r'   r
   r   textr   r   r   )r   r   r   device_inforesponse
token_nameusernames   &&&    r"   
auth_loginr2   &   s    2 CHH(:(::E^cZcd xx<%%%8
 	
 Y[,TU%'KHH#K0K$L#MMn;'((>{<?X>Y Z++ !-H,X6JHH4XJ>PQ[P\\_`ar$   r	   zhf auth logoutz$hf auth logout --token-name my-tokenc                d    V ^8  d   QhR\         \        R,          \        RR7      3,          RR/# )r   r0   NzName of token to logoutr   r   )r   strr   )r!   s   "r"   r#   r#   `   s8     " "d
-.	0"
 
"r$   c                    \        V R7       R# )zLogout from a specific token.r0   N)r	   r6   s   &r"   auth_logoutr7   \   s     j!r$   c                2    V ^8  d   QhR\         R,          /# r   r   N)r4   )r!   s   "r"   r#   r#   j   s     	S 	SC$J 	Sr$   c                     \        \        4       P                  4       4      p V '       g   \        P	                  R 4       R# \
        P                  \        P                  8w  d   \        R4      hV \        RV 4      ,          # )z+No stored tokens found. Please login first.Nz;Use --token-name to select a token in non-interactive mode.zSelect a token to switch to:)listr   keysloggererrorr   r+   r   r,   r
   r   )token_namess    r"   _select_token_namer@   j   s]    (*//12KBC
xx<%%%TUU}%C[QRRr$   switchzhf auth switchz$hf auth switch --token-name my-tokenc          	          V ^8  d   QhR\         \        R,          \        RR7      3,          R\         \        \        RR7      3,          RR/# )r   r0   NzName of the token to switch tor   r   r   r   )r   r4   r   r    )r!   s   "r"   r#   r#   z   sa     I Id
1	
	I %g	
	I 
Ir$   c                    V f   \        4       p V f*   \        R4       \        P                  P	                  4       h\        WR7       R# )zSwitch between access tokens.Nz!No token name provided. Aborting.)r   )r@   printclick
exceptionsExitr   )r0   r   s   &&r"   auth_switch_cmdrH   v   s>    & ')
12##%%
Hr$   z	list | lszhf auth listc                    V ^8  d   QhRR/# r9    )r!   s   "r"   r#   r#      s      t r$   c                     \        4        R# )zList all stored access tokens.N)r   rJ   r$   r"   auth_list_cmdrL      s	     Kr$   r   zhf auth tokenz8hf auth token | xargs curl -H 'Authorization: Bearer {}'c                    V ^8  d   QhRR/# r9   rJ   )r!   s   "r"   r#   r#      s     Q QD Qr$   c                     \        4       p V f7   \        P                  ! R4       \        P                  P                  ^R7      h\        V 4       \        P                  ! R4       R# )z)Print the current access token to stdout.Nz)Not logged in. Run `hf auth login` first.codez@Run `hf auth whoami` to see which account this token belongs to.)r   r   r>   rE   rF   rG   rD   hint)r   s    r"   
auth_tokenrR      sK     KE}		=>###++	%LHHOPr$   r   zhf auth whoamizhf auth whoami --format jsonc                    V ^8  d   QhRR/# r9   rJ   )r!   s   "r"   r#   r#      s     M MT Mr$   c                 \   \        4       p V f7   \        P                  ! R4       \        P                  P                  ^R7      h\        V 4      pRP                  R VR,           4       4      ;'       g    Rp\        R8w  d   \        MRp\        P                  ! RVR	,          W#R
7       R# )z;Find out which huggingface.co account you are logged in as.NzNot logged inrO   ,c              3   2   "   T F  qR ,          x  K  	  R# 5i)nameNrJ   ).0orgs   & r"   	<genexpr>auth_whoami.<locals>.<genexpr>   s     8<CKK<s   orgszhttps://huggingface.coz	Logged inrW   )userr\   endpoint)
r   r   r>   rE   rF   rG   r   joinr   result)r   infor\   r^   s       r"   auth_whoamirb      s     KE}		/"###++%=D8884<88@@DD#'??xTHJJ{fDLr$   )zhf auth loginzhf auth login --token $HF_TOKENz7hf auth login --token $HF_TOKEN --add-to-git-credentialzhf auth login --force)NFF)N)NF),__doc__typingr   rE   huggingface_hub.constantsr   huggingface_hub.hf_apir   _loginr   r   r   r   r	   errorsr
   utilsr   r   r   r   utils._oauth_devicer   r   
_cli_utilsr   r   
_frameworkr   _outputr   r   
get_logger__name__r=   auth_clicommandr2   r7   r@   rH   rL   rR   rb   rJ   r$   r"   <module>rr      sj   e   . ) M M  H H H /  & 
		H	% LM 
  *b*bZ 
 FG  "	"	S 
 FG  I	I. 
+(89 :
 
'_6p$qrQ sQ 
(&68V%WXM YMr$   