
    >'hQ                        d dl Z d dlZd dlmZ ddlmZ ddlmZm	Z	 ddl
mZ ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m!Z! ddl"m#Z# 	 d dl$Z$e$jJ                  jM                  d      re'd dl(m)Z$  e jT                  e jV                  d      Z, G d d      Z- G d d      Z.y# e'$ r d dl$Z$Y =w xY w)    N)JSONDecodeError   )ApiError)AsyncClientWrapperSyncClientWrapper)jsonable_encoder)remove_none_from_dict)UnprocessableEntityError)HttpValidationError)Organization)OrganizationCreate)Project)Role)UsageAndPlan)UserOrganization)UserOrganizationCreate)UserOrganizationDelete)UserOrganizationRolez1..c            
          e Zd ZdefdZdej                  e   fdZde	defdZ
de	defdZdefdZd	edefd
Zd	edefdZd	ededefdZd	eddfdZddd	ej$                  e   dej$                  e   defdZd	edej                  e   fdZd	edej                  e   dej                  e   fdZd	ededdfdZd	edej                  e   ddfdZd	edej                  e   fdZd	edej$                  e   fdZ d	ededededef
dZ!d	ededej                  e"   fdZ#ddd	ej$                  e   ded ej$                  e   dejH                  fd!Z%d	eded edejH                  fd"Z&y)#OrganizationsClientclient_wrapperc                    || _         y N_client_wrapperselfr   s     q/home/kushmeetdev/Regenta/Chatbot/venv/lib/python3.12/site-packages/llama_cloud/resources/organizations/client.py__init__zOrganizationsClient.__init__$   
    -    returnc                    | j                   j                  j                  dt        j                  j                  | j                   j                          dd      | j                   j                         d      }d|j                  cxk  rdk  r<n n9t        j                  t        j                  t           |j                               S |j                  dk(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |	      # t"        $ r" t%        |j                  |j&                  	      w xY w)
z
        List organizations for a user.

        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.list_organizations()
        GET/api/v1/organizations<   headerstimeout   ,    status_codebodyr   httpx_clientrequesturllibparseurljoinget_base_urlget_headersr/   pydanticparse_obj_astypingListr   jsonr
   r   r   r   textr   	_response_response_jsons      r   list_organizationsz&OrganizationsClient.list_organizations'   s#    ((55==LL  D$8$8$E$E$G#H!JLbc((446	 > 
	 )''-#-((\)BINNDTUU  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D4 4+Er3   c                   | j                   j                  j                  dt        j                  j                  | j                   j                          dd      t        |      | j                   j                         d      }d|j                  cxk  rdk  r+n n(t        j                  t        |j                               S |j                  dk(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |	      # t         $ r" t#        |j                  |j$                  	      w xY w)
a  
        Create a new organization.

        Parameters:
            - request: OrganizationCreate.
        ---
        from llama_cloud import OrganizationCreate
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.create_organization(
            request=OrganizationCreate(
                name="string",
            ),
        )
        POSTr%   r&   r'   r=   r)   r*   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r   r8   r/   r9   r:   r   r=   r
   r   r   r   r>   r   r3   r@   rA   s       r   create_organizationz'OrganizationsClient.create_organizationC   s"   & ((55==LL  D$8$8$E$E$G#H!JLbc!'*((446 > 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	S   D- -+Ec                   | j                   j                  j                  dt        j                  j                  | j                   j                          dd      t        |      | j                   j                         d      }d|j                  cxk  rdk  r+n n(t        j                  t        |j                               S |j                  dk(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |	      # t         $ r" t#        |j                  |j$                  	      w xY w)
a  
        Upsert a new organization.

        Parameters:
            - request: OrganizationCreate.
        ---
        from llama_cloud import OrganizationCreate
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.upsert_organization(
            request=OrganizationCreate(
                name="string",
            ),
        )
        PUTr%   r&   r'   rE   r+   r,   r-   r.   rF   rG   s       r   upsert_organizationz'OrganizationsClient.upsert_organizationg   s"   & ((55==LL  D$8$8$E$E$G#H!JLbc!'*((446 > 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	SrI   c                    | j                   j                  j                  dt        j                  j                  | j                   j                          dd      | j                   j                         d      }d|j                  cxk  rdk  r+n n(t        j                  t        |j                               S |j                  dk(  r1t        t        j                  t        |j                                     	 |j                         }t!        |j                  |	      # t        $ r" t!        |j                  |j"                  	      w xY w)
z
        Get the default organization for the user.

        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.get_default_organization()
        r$   r%   api/v1/organizations/defaultr'   r(   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r8   r/   r9   r:   r   r=   r
   r   r   r   r>   r?   s      r   get_default_organizationz,OrganizationsClient.get_default_organization   s    ((55==LL  D$8$8$E$E$G#H!JLjk((446	 > 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   <D# #+Eorganization_idc                   | j                   j                  j                  dt        j                  j                  | j                   j                          dd      t        d|i      | j                   j                         d      }d|j                  cxk  rdk  r+n n(t        j                  t        |j                               S |j                  d	k(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |
      # t         $ r" t#        |j                  |j$                  
      w xY w)ay  
        Set the default organization for the user.

        Parameters:
            - organization_id: str. The organization's ID.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.set_default_organization(
            organization_id="string",
        )
        rK   r%   rN   rQ   r'   rE   r+   r,   r-   r.   rF   r   rQ   r@   rA   s       r   set_default_organizationz,OrganizationsClient.set_default_organization   s(     ((55==LL  D$8$8$E$E$G#H!JLjk!#4o"FG((446 > 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D/ /+Ec                    | j                   j                  j                  dt        j                  j                  | j                   j                          dd|       | j                   j                         d      }d|j                  cxk  rdk  r+n n(t        j                  t        |j                               S |j                  dk(  r1t        t        j                  t        |j                                     	 |j                         }t!        |j                  |	      # t        $ r" t!        |j                  |j"                  	      w xY w)
aJ  
        Get an organization by ID.

        Parameters:
            - organization_id: str.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.get_organization(
            organization_id="string",
        )
        r$   r%   api/v1/organizations/r'   r(   r+   r,   r-   r.   rO   rS   s       r   get_organizationz$OrganizationsClient.get_organization   s#     ((55==LL  D$8$8$E$E$G#H!JNcdsctLuv((446	 > 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   ?D& &+Enamec                   | j                   j                  j                  dt        j                  j                  | j                   j                          dd|       t        d|i      | j                   j                         d      }d|j                  cxk  rdk  r+n n(t        j                  t        |j                               S |j                  d	k(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |
      # t         $ r" t#        |j                  |j$                  
      w xY w)a  
        Update an existing organization.

        Parameters:
            - organization_id: str.

            - name: str. A name for the organization.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.update_organization(
            organization_id="string",
            name="string",
        )
        rK   r%   rV   rX   r'   rE   r+   r,   r-   r.   rF   r   rQ   rX   r@   rA   s        r   update_organizationz'OrganizationsClient.update_organization   s/   & ((55==LL  D$8$8$E$E$G#H!JNcdsctLuv!64.1((446 > 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D2 2+ENc                 V   | j                   j                  j                  dt        j                  j                  | j                   j                          dd|       | j                   j                         d      }d|j                  cxk  rdk  ry |j                  d	k(  r1t        t        j                  t        |j                                     	 |j                         }t        |j                  |
      # t        $ r" t        |j                  |j                   
      w xY w)aP  
        Delete an organization by ID.

        Parameters:
            - organization_id: str.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.delete_organization(
            organization_id="string",
        )
        DELETEr%   rV   r'   r(   r+   r,   Nr-   r.   r   r2   r3   r4   r5   r6   r7   r8   r/   r
   r9   r:   r   r=   r   r   r>   rS   s       r   delete_organizationz'OrganizationsClient.delete_organization  s     ((55==LL  D$8$8$E$E$G#H!JNcdsctLuv((446	 > 
	 )''-#- .  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   C= =+D(get_current_invoice_totalra   c          	         | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      t        d|i      | j                   j                         d      }d|j                  cxk  rd	k  r+n n(t        j                  t        |j                               S |j                  d
k(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |      # t         $ r" t#        |j                  |j$                        w xY w)ap  
        Get usage for a project

        Parameters:
            - organization_id: typing.Optional[str].

            - get_current_invoice_total: typing.Optional[bool].
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.get_organization_usage()
        r$   r%   rV   /usagera   r'   paramsr)   r*   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r	   r8   r/   r9   r:   r   r=   r
   r   r   r   r>   r   rQ   ra   r@   rA   s        r   get_organization_usagez*OrganizationsClient.get_organization_usage,  s:   $ ((55==LL  ''4467q9=RSbRcci;j )*EG`)ab((446 > 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D3 3+Ec           	         | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      | j                   j                         d      }d|j                  cxk  rdk  r<n n9t        j                  t        j                  t           |j                               S |j                  d	k(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |
      # t"        $ r" t%        |j                  |j&                  
      w xY w)aX  
        Get all users in an organization.

        Parameters:
            - organization_id: str.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.list_organization_users(
            organization_id="string",
        )
        r$   r%   rV   /usersr'   r(   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r8   r/   r9   r:   r;   r<   r   r=   r
   r   r   r   r>   rS   s       r   list_organization_usersz+OrganizationsClient.list_organization_usersQ  s5     ((55==LL  ''4467q9=RSbRcci;j ((446 > 
	 )''-#-((5E)F	HXYY  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	S   D8 8+E#c          	         | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      t        |      | j                   j                         d      }d|j                  cxk  rdk  r<n n9t        j                  t        j                  t           |j                               S |j                  d	k(  r1t!        t        j                  t"        |j                                     	 |j                         }t'        |j                  |
      # t$        $ r" t'        |j                  |j(                  
      w xY w)a  
        Add a user to an organization.

        Parameters:
            - organization_id: str.

            - request: typing.List[UserOrganizationCreate].
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.add_users_to_organization(
            organization_id="string",
            request=[],
        )
        rK   r%   rV   rj   r'   rE   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r   r8   r/   r9   r:   r;   r<   r   r=   r
   r   r   r   r>   r   rQ   r3   r@   rA   s        r   add_users_to_organizationz-OrganizationsClient.add_users_to_organizations  s=   * ((55==LL  ''4467q9=RSbRcci;j "'*((446 > 
	 )''-#-((5E)F	HXYY  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   E +E-member_user_idc           
      \   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d|       | j                   j                         d      }d|j                  cxk  rdk  ry	 |j                  d
k(  r1t        t        j                  t        |j                                     	 |j                         }t        |j                  |      # t        $ r" t        |j                  |j                         w xY w)a  
        Remove users from an organization by email.

        Parameters:
            - organization_id: str.

            - member_user_id: str.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.remove_users_from_organization(
            organization_id="string",
            member_user_id="string",
        )
        r]   r%   rV   /users/r'   r(   r+   r,   Nr-   r.   r^   r   rQ   rr   r@   rA   s        r   remove_users_from_organizationz2OrganizationsClient.remove_users_from_organization  s   & ((55==LL  ''4467q9''8?OP ((446 > 
	 )''-#- .  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D   +D+c          	      l   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      t        |      | j                   j                         d      }d|j                  cxk  rdk  ry	 |j                  d
k(  r1t        t        j                  t        |j                                     	 |j                         }t!        |j                  |      # t        $ r" t!        |j                  |j"                        w xY w)a  
        Remove a batch of users from an organization.

        Parameters:
            - organization_id: str.

            - request: typing.List[UserOrganizationDelete].
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.batch_remove_users_from_organization(
            organization_id="string",
            request=[],
        )
        rK   r%   rV   /users/remover'   rE   r+   r,   Nr-   r.   r   r2   r3   r4   r5   r6   r7   r   r8   r/   r
   r9   r:   r   r=   r   r   r>   rp   s        r   $batch_remove_users_from_organizationz8OrganizationsClient.batch_remove_users_from_organization  s!   * ((55==LL  ''4467q9=RSbRccp;q "'*((446 > 
	 )''-#- .  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   !D +D3c           	         | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      | j                   j                         d      }d|j                  cxk  rdk  r<n n9t        j                  t        j                  t           |j                               S |j                  d	k(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |
      # t"        $ r" t%        |j                  |j&                  
      w xY w)aL  
        List all roles in an organization.

        Parameters:
            - organization_id: str.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.list_roles(
            organization_id="string",
        )
        r$   r%   rV   /rolesr'   r(   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r8   r/   r9   r:   r;   r<   r   r=   r
   r   r   r   r>   rS   s       r   
list_roleszOrganizationsClient.list_roles  s4     ((55==LL  ''4467q9=RSbRcci;j ((446 > 
	 )''-#-((T):INN<LMM  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Srm   c           	         | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      | j                   j                         d      }d|j                  cxk  rdk  r<n n9t        j                  t        j                  t           |j                               S |j                  d	k(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |
      # t"        $ r" t%        |j                  |j&                  
      w xY w)aW  
        Get the role of a user in an organization.

        Parameters:
            - organization_id: str.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.get_user_role(
            organization_id="string",
        )
        r$   r%   rV   /users/rolesr'   r(   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r8   r/   r9   r:   r;   Optionalr   r=   r
   r   r   r   r>   rS   s       r   get_user_rolez!OrganizationsClient.get_user_role  s8     ((55==LL  ''4467q9=RSbRcco;p ((446 > 
	 )''-#-((9M)NPYP^P^P`aa  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Srm   user_id-user_organization_role_create_organization_idrole_idc          
         | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      t        |||d      | j                   j                         d      }d|j                  cxk  rd	k  r+n n(t        j                  t        |j                               S |j                  d
k(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |      # t         $ r" t#        |j                  |j$                        w xY w)a  
        Assign a role to a user in an organization.

        Parameters:
            - organization_id: str.

            - user_id: str. The user's ID.

            - user_organization_role_create_organization_id: str. The organization's ID.

            - role_id: str. The role's ID.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.assign_role_to_user_in_organization(
            organization_id="string",
            user_id="string",
            user_organization_role_create_organization_id="string",
            role_id="string",
        )
        rK   r%   rV   r   r   rQ   r   r'   rE   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r   r8   r/   r9   r:   r   r=   r
   r   r   r   r>   r   rQ   r   r   r   r@   rA   s          r   #assign_role_to_user_in_organizationz7OrganizationsClient.assign_role_to_user_in_organization-  sD   6 ((55==LL  ''4467q9=RSbRcco;p "&'T& ((446 > 
	 )''-#-(()=y~~?OPP  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D5 5+E c                    | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d| d      | j                   j                         d      }d|j                  cxk  rd	k  r<n n9t        j                  t        j                  t           |j                               S |j                  d
k(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |      # t"        $ r" t%        |j                  |j&                        w xY w)a  
        List all projects for a user in an organization.

        Parameters:
            - organization_id: str.

            - user_id: str.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.list_projects_by_user(
            organization_id="string",
            user_id="string",
        )
        r$   r%   rV   rt   	/projectsr'   r(   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r8   r/   r9   r:   r;   r<   r   r=   r
   r   r   r   r>   r   rQ   r   r@   rA   s        r   list_projects_by_userz)OrganizationsClient.list_projects_by_usera  s8   & ((55==LL  ''4467q9''8y	R ((446 > 
	 )''-#-((W)=y~~?OPP  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D; ;+E&
project_idr   c                   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d| d      t        d|i      | j                   j                         d      }d	|j                  cxk  rd
k  r5n n2t        j                  t        j                  |j                               S |j                  dk(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |      # t"        $ r" t%        |j                  |j&                        w xY w)a  
        Add a user to a project.

        Parameters:
            - organization_id: typing.Optional[str].

            - user_id: str.

            - project_id: typing.Optional[str].
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.add_user_to_project(
            user_id="string",
        )
        rK   r%   rV   rt   r   r   r'   rd   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r	   r8   r/   r9   r:   r;   Anyr=   r
   r   r   r   r>   r   rQ   r   r   r@   rA   s         r   add_user_to_projectz'OrganizationsClient.add_user_to_project  s@   , ((55==LL  ''4467q9''8y	R ),
)CD((446 > 	
	 )''-#-((Y^^5EFF  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   E   +E+c                    | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d| d|       | j                   j                         d      }d|j                  cxk  rd	k  r5n n2t        j                  t        j                  |j                               S |j                  d
k(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |      # t         $ r" t#        |j                  |j$                        w xY w)a  
        Remove a user from a project.

        Parameters:
            - organization_id: str.

            - user_id: str.

            - project_id: str.
        ---
        from llama_cloud.client import LlamaCloud

        client = LlamaCloud(
            token="YOUR_TOKEN",
        )
        client.organizations.remove_user_from_project(
            organization_id="string",
            user_id="string",
            project_id="string",
        )
        r]   r%   rV   rt   
/projects/r'   r(   r+   r,   r-   r.   r   r2   r3   r4   r5   r6   r7   r8   r/   r9   r:   r;   r   r=   r
   r   r   r   r>   r   s         r   remove_user_from_projectz,OrganizationsClient.remove_user_from_project  s9   , ((55==LL  ''4467q9''8y
S]R^_ ((446 > 
	 )''-#-((Y^^5EFF  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D6 6+E!)'__name__
__module____qualname__r   r   r;   r<   r   rB   r   rH   rL   rP   strrT   rW   r[   r_   r   boolr   rh   r   rl   r   rq   rv   r   rz   r   r~   r   r   r   r   r   r   r   r    r!   r   r   r   #   s   .*; .OFKK$= O8"O.@ "O\ "OH"O.@ "O\ "OHO, O8O3 O< OBO O O@"O3 "O "O "OHO3 O4 OB lp#O%s3#OSYSbSbcgSh#O	#OJ Os  Ov{{K[?\  OD&O"&O06<R0S&O	%	&&OP$Oc $OSV $O[_ $OL&O"&O06<R0S&O	&OP O#  O&++d2C  OD OS  OV__EY5Z  OD2O"2O032Odg2Oru2O	2Oh$OS $O3 $O6;;W^K_ $ON jn(O%s3(O>A(ORXRaRabeRf(O	(OT'O 'Oc 'OWZ 'O_e_i_i 'Or!   r   c            
          e Zd ZdefdZdej                  e   fdZde	defdZ
de	defdZdefdZd	edefd
Zd	edefdZd	ededefdZd	eddfdZddd	ej$                  e   dej$                  e   defdZd	edej                  e   fdZd	edej                  e   dej                  e   fdZd	ededdfdZd	edej                  e   ddfdZd	edej                  e   fdZd	edej$                  e   fdZ d	ededededef
dZ!d	ededej                  e"   fdZ#ddd	ej$                  e   ded ej$                  e   dejH                  fd!Z%d	eded edejH                  fd"Z&y)#AsyncOrganizationsClientr   c                    || _         y r   r   r   s     r   r   z!AsyncOrganizationsClient.__init__  r    r!   r"   c                   K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd      | j                   j                         d       d{   }d|j                  cxk  rdk  r<n n9t        j                  t        j                  t           |j                               S |j                  d	k(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |
      7 # t"        $ r" t%        |j                  |j&                  
      w xY ww)z
        List organizations for a user.

        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.list_organizations()
        r$   r%   r&   r'   r(   Nr+   r,   r-   r.   r1   r?   s      r   rB   z+AsyncOrganizationsClient.list_organizations  s1     ..;;CCLL  D$8$8$E$E$G#H!JLbc((446	 D 
 
	 )''-#-((\)BINNDTUU  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Ss+   A>E. D>BE.E  'E. +E++E.r3   c                  K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd      t        |      | j                   j                         d       d{   }d|j                  cxk  rdk  r+n n(t        j                  t        |j                               S |j                  d	k(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |
      7 # t         $ r" t#        |j                  |j$                  
      w xY ww)a  
        Create a new organization.

        Parameters:
            - request: OrganizationCreate.
        ---
        from llama_cloud import OrganizationCreate
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.create_organization(
            request=OrganizationCreate(
                name="string",
            ),
        )
        rD   r%   r&   r'   rE   Nr+   r,   r-   r.   rF   rG   s       r   rH   z,AsyncOrganizationsClient.create_organization  s0    & ..;;CCLL  D$8$8$E$E$G#H!JLbc!'*((446 D 
 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	S+   BE'
D7BE'D9  E'9+E$$E'c                  K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd      t        |      | j                   j                         d       d{   }d|j                  cxk  rdk  r+n n(t        j                  t        |j                               S |j                  d	k(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |
      7 # t         $ r" t#        |j                  |j$                  
      w xY ww)a  
        Upsert a new organization.

        Parameters:
            - request: OrganizationCreate.
        ---
        from llama_cloud import OrganizationCreate
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.upsert_organization(
            request=OrganizationCreate(
                name="string",
            ),
        )
        rK   r%   r&   r'   rE   Nr+   r,   r-   r.   rF   rG   s       r   rL   z,AsyncOrganizationsClient.upsert_organization  s0    & ..;;CCLL  D$8$8$E$E$G#H!JLbc!'*((446 D 
 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Sr   c                   K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd      | j                   j                         d       d{   }d|j                  cxk  rdk  r+n n(t        j                  t        |j                               S |j                  d	k(  r1t        t        j                  t        |j                                     	 |j                         }t!        |j                  |
      7 # t        $ r" t!        |j                  |j"                  
      w xY ww)a  
        Get the default organization for the user.

        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.get_default_organization()
        r$   r%   rN   r'   r(   Nr+   r,   r-   r.   rO   r?   s      r   rP   z1AsyncOrganizationsClient.get_default_organizationC  s(     ..;;CCLL  D$8$8$E$E$G#H!JLjk((446	 D 
 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Ss+   A>E D-BED/ E/+EErQ   c                  K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd      t        d|i      | j                   j                         d       d{   }d|j                  cxk  rd	k  r+n n(t        j                  t        |j                               S |j                  d
k(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |      7 # t         $ r" t#        |j                  |j$                        w xY ww)a  
        Set the default organization for the user.

        Parameters:
            - organization_id: str. The organization's ID.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.set_default_organization(
            organization_id="string",
        )
        rK   r%   rN   rQ   r'   rE   Nr+   r,   r-   r.   rF   rS   s       r   rT   z1AsyncOrganizationsClient.set_default_organization_  s6      ..;;CCLL  D$8$8$E$E$G#H!JLjk!#4o"FG((446 D 
 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Ss+   B
E)D9BE)D; "E);+E&&E)c                   K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd|       | j                   j                         d       d{   }d|j                  cxk  rdk  r+n n(t        j                  t        |j                               S |j                  d	k(  r1t        t        j                  t        |j                                     	 |j                         }t!        |j                  |
      7 # t        $ r" t!        |j                  |j"                  
      w xY ww)aZ  
        Get an organization by ID.

        Parameters:
            - organization_id: str.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.get_organization(
            organization_id="string",
        )
        r$   r%   rV   r'   r(   Nr+   r,   r-   r.   rO   rS   s       r   rW   z)AsyncOrganizationsClient.get_organization  s1      ..;;CCLL  D$8$8$E$E$G#H!JNcdsctLuv((446	 D 
 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Ss+   BE D0BE 	D2 E 2+EE rX   c                  K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd|       t        d|i      | j                   j                         d       d{   }d|j                  cxk  rd	k  r+n n(t        j                  t        |j                               S |j                  d
k(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |      7 # t         $ r" t#        |j                  |j$                        w xY ww)a  
        Update an existing organization.

        Parameters:
            - organization_id: str.

            - name: str. A name for the organization.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.update_organization(
            organization_id="string",
            name="string",
        )
        rK   r%   rV   rX   r'   rE   Nr+   r,   r-   r.   rF   rZ   s        r   r[   z,AsyncOrganizationsClient.update_organization  s=    & ..;;CCLL  D$8$8$E$E$G#H!JNcdsctLuv!64.1((446 D 
 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Ss+   BE,D<BE,D> %E,>+E))E,Nc                 r  K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd|       | j                   j                         d       d{   }d|j                  cxk  rdk  ry |j                  d	k(  r1t        t        j                  t        |j                                     	 |j                         }t        |j                  |
      7 # t        $ r" t        |j                  |j                   
      w xY ww)a`  
        Delete an organization by ID.

        Parameters:
            - organization_id: str.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.delete_organization(
            organization_id="string",
        )
        r]   r%   rV   r'   r(   Nr+   r,   r-   r.   r^   rS   s       r   r_   z,AsyncOrganizationsClient.delete_organization  s      ..;;CCLL  D$8$8$E$E$G#H!JNcdsctLuv((446	 D 
 
	 )''-#- .  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Ss+   BD7DAD7 D	 0D7	+D44D7r`   ra   c          	        K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      t        d|i      | j                   j                         d       d{   }d	|j                  cxk  rd
k  r+n n(t        j                  t        |j                               S |j                  dk(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |      7 # t         $ r" t#        |j                  |j$                        w xY ww)a  
        Get usage for a project

        Parameters:
            - organization_id: typing.Optional[str].

            - get_current_invoice_total: typing.Optional[bool].
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.get_organization_usage()
        r$   r%   rV   rc   ra   r'   rd   Nr+   r,   r-   r.   rf   rg   s        r   rh   z/AsyncOrganizationsClient.get_organization_usage  sH    $ ..;;CCLL  ''4467q9=RSbRcci;j )*EG`)ab((446 D 
 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN#
  	Sy'<'<9>>RR	Ss+   BE-D=BE-D? &E-?+E**E-c           	        K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      | j                   j                         d       d{   }d|j                  cxk  rd	k  r<n n9t        j                  t        j                  t           |j                               S |j                  d
k(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |      7 # t"        $ r" t%        |j                  |j&                        w xY ww)ah  
        Get all users in an organization.

        Parameters:
            - organization_id: str.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.list_organization_users(
            organization_id="string",
        )
        r$   r%   rV   rj   r'   r(   Nr+   r,   r-   r.   rk   rS   s       r   rl   z0AsyncOrganizationsClient.list_organization_users	  sC      ..;;CCLL  ''4467q9=RSbRcci;j ((446 D 
 
	 )''-#-((5E)F	HXYY  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN!
  	Sy'<'<9>>RR	S+   BE2EBE2E +E2+E//E2c          	        K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      t        |      | j                   j                         d       d{   }d|j                  cxk  rd	k  r<n n9t        j                  t        j                  t           |j                               S |j                  d
k(  r1t!        t        j                  t"        |j                                     	 |j                         }t'        |j                  |      7 # t$        $ r" t'        |j                  |j(                        w xY ww)a  
        Add a user to an organization.

        Parameters:
            - organization_id: str.

            - request: typing.List[UserOrganizationCreate].
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.add_users_to_organization(
            organization_id="string",
            request=[],
        )
        rK   r%   rV   rj   r'   rE   Nr+   r,   r-   r.   ro   rp   s        r   rq   z2AsyncOrganizationsClient.add_users_to_organization+  sK    * ..;;CCLL  ''4467q9=RSbRcci;j "'*((446 D 
 
	 )''-#-((5E)F	HXYY  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN#
  	Sy'<'<9>>RR	Ss+   BE<EBE<%E 5E<+E99E<rr   c           
      x  K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d|       | j                   j                         d       d{   }d|j                  cxk  rd	k  ry |j                  d
k(  r1t        t        j                  t        |j                                     	 |j                         }t        |j                  |      7 # t        $ r" t        |j                  |j                         w xY ww)a  
        Remove users from an organization by email.

        Parameters:
            - organization_id: str.

            - member_user_id: str.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.remove_users_from_organization(
            organization_id="string",
            member_user_id="string",
        )
        r]   r%   rV   rt   r'   r(   Nr+   r,   r-   r.   r^   ru   s        r   rv   z7AsyncOrganizationsClient.remove_users_from_organizationS  s*    & ..;;CCLL  ''4467q9''8?OP ((446 D 
 
	 )''-#- .  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN#
  	Sy'<'<9>>RR	Ss+   BD:D
AD:#D 3D:+D77D:c          	        K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      t        |      | j                   j                         d       d{   }d|j                  cxk  rd	k  ry |j                  d
k(  r1t        t        j                  t        |j                                     	 |j                         }t!        |j                  |      7 # t        $ r" t!        |j                  |j"                        w xY ww)a  
        Remove a batch of users from an organization.

        Parameters:
            - organization_id: str.

            - request: typing.List[UserOrganizationDelete].
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.batch_remove_users_from_organization(
            organization_id="string",
            request=[],
        )
        rK   r%   rV   rx   r'   rE   Nr+   r,   r-   r.   ry   rp   s        r   rz   z=AsyncOrganizationsClient.batch_remove_users_from_organizationy  s/    * ..;;CCLL  ''4467q9=RSbRccp;q "'*((446 D 
 
	 )''-#- .  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN#
  	Sy'<'<9>>RR	Ss+   BEDAE+D ;E+D??Ec           	        K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      | j                   j                         d       d{   }d|j                  cxk  rd	k  r<n n9t        j                  t        j                  t           |j                               S |j                  d
k(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |      7 # t"        $ r" t%        |j                  |j&                        w xY ww)a\  
        List all roles in an organization.

        Parameters:
            - organization_id: str.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.list_roles(
            organization_id="string",
        )
        r$   r%   rV   r|   r'   r(   Nr+   r,   r-   r.   r}   rS   s       r   r~   z#AsyncOrganizationsClient.list_roles  sB      ..;;CCLL  ''4467q9=RSbRcci;j ((446 D 
 
	 )''-#-((T):INN<LMM  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN!
  	Sy'<'<9>>RR	Sr   c           	        K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      | j                   j                         d       d{   }d|j                  cxk  rd	k  r<n n9t        j                  t        j                  t           |j                               S |j                  d
k(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |      7 # t"        $ r" t%        |j                  |j&                        w xY ww)ag  
        Get the role of a user in an organization.

        Parameters:
            - organization_id: str.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.get_user_role(
            organization_id="string",
        )
        r$   r%   rV   r   r'   r(   Nr+   r,   r-   r.   r   rS   s       r   r   z&AsyncOrganizationsClient.get_user_role  sF      ..;;CCLL  ''4467q9=RSbRcco;p ((446 D 
 
	 )''-#-((9M)NPYP^P^P`aa  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN!
  	Sy'<'<9>>RR	Sr   r   r   r   c          
        K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d      t        |||d      | j                   j                         d       d{   }d	|j                  cxk  rd
k  r+n n(t        j                  t        |j                               S |j                  dk(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |      7 # t         $ r" t#        |j                  |j$                        w xY ww)a  
        Assign a role to a user in an organization.

        Parameters:
            - organization_id: str.

            - user_id: str. The user's ID.

            - user_organization_role_create_organization_id: str. The organization's ID.

            - role_id: str. The role's ID.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.assign_role_to_user_in_organization(
            organization_id="string",
            user_id="string",
            user_organization_role_create_organization_id="string",
            role_id="string",
        )
        rK   r%   rV   r   r   r'   rE   Nr+   r,   r-   r.   r   r   s          r   r   z<AsyncOrganizationsClient.assign_role_to_user_in_organization  sR    6 ..;;CCLL  ''4467q9=RSbRcco;p "&'T& ((446 D 
 
	 )''-#-(()=y~~?OPP  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN/
*  	Sy'<'<9>>RR	Ss+   BE/D?BE/E (E/+E,,E/c                   K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d| d      | j                   j                         d       d{   }d	|j                  cxk  rd
k  r<n n9t        j                  t        j                  t           |j                               S |j                  dk(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |      7 # t"        $ r" t%        |j                  |j&                        w xY ww)a  
        List all projects for a user in an organization.

        Parameters:
            - organization_id: str.

            - user_id: str.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.list_projects_by_user(
            organization_id="string",
            user_id="string",
        )
        r$   r%   rV   rt   r   r'   r(   Nr+   r,   r-   r.   r   r   s        r   r   z.AsyncOrganizationsClient.list_projects_by_user  sF    & ..;;CCLL  ''4467q9''8y	R ((446 D 
 
	 )''-#-((W)=y~~?OPP  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN#
  	Sy'<'<9>>RR	Ss+   BE5EBE5E .E5+E22E5r   r   c                  K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d| d      t        d|i      | j                   j                         d       d	{   }d
|j                  cxk  rdk  r5n n2t        j                  t        j                  |j                               S |j                  dk(  r1t        t        j                  t         |j                                     	 |j                         }t%        |j                  |      7 # t"        $ r" t%        |j                  |j&                        w xY ww)a  
        Add a user to a project.

        Parameters:
            - organization_id: typing.Optional[str].

            - user_id: str.

            - project_id: typing.Optional[str].
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.add_user_to_project(
            user_id="string",
        )
        rK   r%   rV   rt   r   r   r'   rd   Nr+   r,   r-   r.   r   r   s         r   r   z,AsyncOrganizationsClient.add_user_to_project?  sN    , ..;;CCLL  ''4467q9''8y	R ),
)CD((446 D 	
 	
	 )''-#-((Y^^5EFF  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN%	
   	Sy'<'<9>>RR	Ss+   BE:E
BE:#E 3E:+E77E:c                   K   | j                   j                  j                  dt        j                  j                  | j                   j                          dd| d| d|       | j                   j                         d       d{   }d	|j                  cxk  rd
k  r5n n2t        j                  t        j                  |j                               S |j                  dk(  r1t        t        j                  t        |j                                     	 |j                         }t#        |j                  |      7 # t         $ r" t#        |j                  |j$                        w xY ww)a  
        Remove a user from a project.

        Parameters:
            - organization_id: str.

            - user_id: str.

            - project_id: str.
        ---
        from llama_cloud.client import AsyncLlamaCloud

        client = AsyncLlamaCloud(
            token="YOUR_TOKEN",
        )
        await client.organizations.remove_user_from_project(
            organization_id="string",
            user_id="string",
            project_id="string",
        )
        r]   r%   rV   rt   r   r'   r(   Nr+   r,   r-   r.   r   r   s         r   r   z1AsyncOrganizationsClient.remove_user_from_projecti  sG    , ..;;CCLL  ''4467q9''8y
S]R^_ ((446 D 
 
	 )''-#-((Y^^5EFF  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN#
  	Sy'<'<9>>RR	Ss+   BE0	E 
BE0E )E0+E--E0)'r   r   r   r   r   r;   r<   r   rB   r   rH   rL   rP   r   rT   rW   r[   r_   r   r   r   rh   r   rl   r   rq   rv   r   rz   r   r~   r   r   r   r   r   r   r   r   r   r!   r   r   r     s   .*< .O&++l*C O8"O4F "O< "OH"O4F "O< "OHO O8O O OBOc Ol O@"O "Os "O| "OHO O OB lp#O%s3#OSYSbSbcgSh#O	#OJ OS  OV[[QaEb  OD&O"&O06<R0S&O	%	&&OP$OC $OY\ $Oae $OL&O"&O06<R0S&O	&OP O  OD8I  OD O3  O6??K_;`  OD2O"2O032Odg2Oru2O	2Oh$O3 $O $OQWQ\Q\]dQe $ON jn(O%s3(O>A(ORXRaRabeRf(O	(OT'Oc 'OC 'O]` 'Oekeoeo 'Or!   r   )/r;   urllib.parser4   json.decoderr   core.api_errorr   core.client_wrapperr   r   core.jsonable_encoderr   core.remove_none_from_dictr	   !errors.unprocessable_entity_errorr
   types.http_validation_errorr   types.organizationr   types.organization_creater   types.projectr   
types.roler   types.usage_and_planr   types.user_organizationr   types.user_organization_creater   types.user_organization_deleter   types.user_organization_roler   r9   __version__
startswithImportErrorpydantic.v1v1castr   OMITr   r   r   r!   r   <module>r      s      ( & H 5 ? I > . ; $  0 7 D D @&&t,"
 v{{6::s#u
O u
Opu
O u
O  s   ,'C 	CC