
    x
h                        d dl mZ d dlmZ d dlmZ  G d dej                        Z ej                  e      Z	 G d dej                        Z ej                  e      Z G d d	ej                        Z ej                  e      Z G d
 dej                        Z ej                  e      Z ej"                         e_         ej"                         e_        ej$                  ej&                  de_         ed      e_         ed      e_         eg       e_        g e_        e	e_         ej"                         e_        ej4                  ej&                  de_         ed      e_         ej6                   ej8                               ej:                  _         ej6                   ej8                               ej>                  _         ej6                   ej8                               ej@                  _         ej6                   ejB                               ejD                  _         ej8                         ejF                  _         ej8                         ejH                  _         eg d      e_        dej:                  j<                  fdej>                  j<                  fdej@                  j<                  fdejD                  j<                  fdejF                  j<                  fdejH                  j<                  fge_        dejF                  _%        dejH                  _%         ejL                  dddeeedddd      Z'de'iZ(y)     )unicode_literals)
stone_base)stone_validatorsc                   :     e Zd ZdZdZdZdZd Zd Z fdZ	 xZ
S )OpenIdErrora;  
    This class acts as a tagged union. Only one of the ``is_*`` methods will
    return true. To get the associated value of a tag (if one exists), use the
    corresponding ``get_*`` method.

    :ivar openid.OpenIdError.incorrect_openid_scopes: Missing openid claims for
        the associated access token.
    otherNc                      | j                   dk(  S )z^
        Check if the union tag is ``incorrect_openid_scopes``.

        :rtype: bool
        incorrect_openid_scopes_tagselfs    S/var/www/html/lionshead-backend/venv/lib/python3.12/site-packages/dropbox/openid.pyis_incorrect_openid_scopesz&OpenIdError.is_incorrect_openid_scopes   s     yy555    c                      | j                   dk(  S zL
        Check if the union tag is ``other``.

        :rtype: bool
        r   r   r   s    r   is_otherzOpenIdError.is_other"        yyG##r   c                 0    t         t        |   |||       y N)superr   _process_custom_annotationsr   annotation_type
field_path	processor	__class__s       r   r   z'OpenIdError._process_custom_annotations*   s    k4<_jZcdr   )__name__
__module____qualname____doc__
_catch_allr
   r   r   r   r   __classcell__r   s   @r   r   r   
   s0     J"E6$e er   r   c                   0     e Zd ZdZg ZdZd Z fdZ xZS )UserInfoArgsz
    No Parameters
    Fc                      y r    r   s    r   __init__zUserInfoArgs.__init__9   s    r   c                 0    t         t        |   |||       y r   )r   r'   r   r   s       r   r   z(UserInfoArgs._process_custom_annotations<   s    lD=oz[der   )	r   r    r!   r"   	__slots___has_required_fieldsr*   r   r$   r%   s   @r   r'   r'   /   s(    I !f fr   r'   c                   L     e Zd ZdZdZdZed        Zd Zd Z	d Z
 fdZ xZS )	UserInfoErrorz
    This class acts as a tagged union. Only one of the ``is_*`` methods will
    return true. To get the associated value of a tag (if one exists), use the
    corresponding ``get_*`` method.
    r   Nc                      | d|      S )z
        Create an instance of this class set to the ``openid_error`` tag with
        value ``val``.

        :param OpenIdError val:
        :rtype: UserInfoError
        openid_errorr)   )clsvals     r   r1   zUserInfoError.openid_errorL   s     >3''r   c                      | j                   dk(  S )zS
        Check if the union tag is ``openid_error``.

        :rtype: bool
        r1   r   r   s    r   is_openid_errorzUserInfoError.is_openid_errorW   s     yyN**r   c                      | j                   dk(  S r   r   r   s    r   r   zUserInfoError.is_other_   r   r   c                 P    | j                         st        d      | j                  S )za
        Only call this if :meth:`is_openid_error` is true.

        :rtype: OpenIdError
        ztag 'openid_error' not set)r5   AttributeError_valuer   s    r   get_openid_errorzUserInfoError.get_openid_errorg   s&     ##% !=>>{{r   c                 0    t         t        |   |||       y r   )r   r/   r   r   s       r   r   z)UserInfoError._process_custom_annotationsq   s    mT>PZ\efr   )r   r    r!   r"   r#   r   classmethodr1   r5   r   r:   r   r$   r%   s   @r   r/   r/   A   sA     JE( (+$g gr   r/   c                   *    e Zd ZdZg dZdZ	 	 	 	 	 	 ddZ ej                  dd      Z	 ej                  dd      Z
 ej                  d	d      Z ej                  d
d      Z ej                  d      Z ej                  d      Z fdZ xZS )UserInfoResulta  
    :ivar openid.UserInfoResult.family_name: Last name of user.
    :ivar openid.UserInfoResult.given_name: First name of user.
    :ivar openid.UserInfoResult.email: Email address of user.
    :ivar openid.UserInfoResult.email_verified: If user is email verified.
    :ivar openid.UserInfoResult.iss: Issuer of token (in this case Dropbox).
    :ivar openid.UserInfoResult.sub: An identifier for the user. This is the
        Dropbox account_id, a string value such as
        dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc.
    )_family_name_value_given_name_value_email_value_email_verified_value
_iss_value
_sub_valueFc                 n   t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        ||| _        ||| _	        ||| _
        ||| _        ||| _        ||| _        y y r   )bbNOT_SETr?   r@   rA   rB   rC   rD   family_name
given_nameemailemail_verifiedisssub)r   rH   rI   rJ   rK   rL   rM   s          r   r*   zUserInfoResult.__init__   s     #%**!#JJ%'ZZ"****"*D!(DODJ%"0D?DH?DH r   rH   T)nullablerI   rJ   rK   rL   rM   c                 0    t         t        |   |||       y r   )r   r>   r   r   s       r   r   z*UserInfoResult._process_custom_annotations   s    nd?Q[]fgr   )NNNNNN)r   r    r!   r"   r,   r-   r*   rF   	AttributerH   rI   rJ   rK   rL   rM   r   r$   r%   s   @r   r>   r>   v   s    	I ! "  $6 ",,}t<K lT:J BLL40E "R\\"2TBN ",,u
C ",,u
Ch hr   r>   )r
   r   r
   r   )r1   r   )rH   rI   rJ   rK   rL   rM   rH   rI   rJ   rK   rL   rM    userinfo   Fuserapirpc)authhoststyleN))
__future__r   stone.backends.python_rsrcr   rF   r   bvUnionr   OpenIdError_validatorStructr'   UserInfoArgs_validatorr/   UserInfoError_validatorr>   UserInfoResult_validatorVoid"_incorrect_openid_scopes_validator_other_validator_tagmapr
   r   set_all_field_names__all_fields__openid_error_validatorNullableStringrH   	validatorrI   rJ   BooleanrK   rL   rM   defaultRouterR   ROUTESr)   r   r   <module>rr      s   ( 7 =!e"(( !eF !- f299 f  #<0 1gBHH 1gf #"((=1 DhRYY DhL %299^4 18 .&rwwy *MM)) 
 '22K&L #( !$R  (= %!( !99++ 
 $G, '2r{{9299;'?   $&1bkk)"))+&>   #!,YRYY[!9   *5"++jbjjl*C   '(ryy{   (ryy{   #& ( $   N..889>,,667n"",,-~44>>?
N(()
N(()         288	
 
r   