
    i/                        S SK r S SKrS SKJr  SSKJr  SSKJrJ	r	  SSK
Jr  SSKJr  SSKJr  SS	KJr  SS
KJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK J!r!  SSK"J#r#   S SK$r$\$RJ                  RM                  S5      (       a  \'eS SK(J)r$  \ RT                  " \ RV                  S5      r, " S S5      r- " S S5      r.g! \' a    S SK$r$ N>f = f)    N)JSONDecodeError   )ApiError)AsyncClientWrapperSyncClientWrapper)jsonable_encoder)remove_none_from_dict)UnprocessableEntityError)HttpValidationError)Organization)OrganizationCreate)Project)Role)UsageAndPlan)UserOrganization)UserOrganizationCreate)UserOrganizationDelete)UserOrganizationRolez1..c            
       `   \ rS rSrS\4S jrS\R                  \   4S jr	S\
S\4S jrS\
S\4S jrS\4S	 jrS
\S\4S jrS
\S\4S jrS
\S\S\4S jrS
\SS4S jrSS.S
\S\R&                  \   S\4S jjrS
\S\R                  \   4S jrS
\S\R                  \   S\R                  \   4S jrSS.S
\S\S\R&                  \R                  \      SS4S jjrS
\S\R                  \   SS4S jrS
\S\R                  \   4S jrSS.S
\S\R&                  \   S\R&                  \    4S jjr!S
\S\S\S \S\ 4
S! jr"S
\S\S\R                  \#   4S" jr$SS.S
\R&                  \   S\S\R&                  \   S\RJ                  4S# jjr&S
\S\S\S\RJ                  4S$ jr'S%r(g)&OrganizationsClient#   client_wrapperc                    Xl         g N_client_wrapperselfr   s     d/home/james-whalen/.local/lib/python3.13/site-packages/llama_cloud/resources/organizations/client.py__init__OrganizationsClient.__init__$       -    returnc                    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      U R                   R                  5       SS9nSUR                  s=::  a  S:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [         UR                  5       5      5      e UR                  5       n[%        UR                  US	9e! ["         a    [%        UR                  UR&                  S	9ef = f)
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_headersr1   pydanticparse_obj_astypingListr   jsonr
   r   r   r   textr   	_response_response_jsons      r   list_organizations&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   D3 3)Er5   c                   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        U5      U R                   R                  5       SS9nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US	9e! [          a    [#        UR                  UR$                  S	9ef = f)
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/   r0   r   r4   r5   r6   r7   r8   r9   r   r:   r1   r;   r<   r   r?   r
   r   r   r   r@   r   r5   rB   rC   s       r   create_organization'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                   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        U5      U R                   R                  5       SS9nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US	9e! [          a    [#        UR                  UR$                  S	9ef = f)
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)   rH   r-   r.   r/   r0   rI   rJ   s       r   upsert_organization'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rM   c                    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      U R                   R                  5       SS9nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[!        UR                  US	9e! [         a    [!        UR                  UR"                  S	9ef = f)
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/   r0   r   r4   r5   r6   r7   r8   r9   r:   r1   r;   r<   r   r?   r
   r   r   r   r@   rA   s      r   get_default_organization,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                   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        SU05      U R                   R                  5       SS9nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S	:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US
9e! [          a    [#        UR                  UR$                  S
9ef = f)a  
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",
)
rO   r'   rS   rW   r)   rH   r-   r.   r/   r0   rI   r   rW   rB   rC   s       r   set_default_organization,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                    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU 35      U R                   R                  5       SS9nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[!        UR                  US	9e! [         a    [!        UR                  UR"                  S	9ef = f)
z
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/   r0   rT   rY   s       r   get_organization$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                   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU 35      [        SU05      U R                   R                  5       SS9nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S	:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US
9e! [          a    [#        UR                  UR$                  S
9ef = f)a5  
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",
)
rO   r'   r]   r`   r)   rH   r-   r.   r/   r0   rI   r   rW   r`   rB   rC   s        r   update_organization'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   D1 1)ENc                 P   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU 35      U R                   R                  5       SS9nSUR                  s=::  a  S:  a   g  UR                  S	:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[        UR                  US
9e! [         a    [        UR                  UR                   S
9ef = f)z
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'   r]   r)   r*   r-   r.   Nr/   r0   r   r4   r5   r6   r7   r8   r9   r:   r1   r
   r;   r<   r   r?   r   r   r@   rY   s       r   delete_organization'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_totalrk   c          	         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        SU05      U R                   R                  5       SS9nSUR                  s=::  a  S	:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S
:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US9e! [          a    [#        UR                  UR$                  S9ef = f)a5  
Get usage for a specific organization.

Parameters:
    - organization_id: str.

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

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.organizations.get_organization_usage(
    organization_id="string",
)
r&   r'   r]   /usagerk   r)   paramsr+   r,   r-   r.   r/   r0   r   r4   r5   r6   r7   r8   r9   r	   r:   r1   r;   r<   r   r?   r
   r   r   r   r@   r   rW   rk   rB   rC   s        r   get_organization_usage*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   D2 2)Ec           	         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      U R                   R                  5       SS9nSUR                  s=::  a  S:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S	:X  a2  [        [        R                  " [         UR                  5       5      5      e UR                  5       n[%        UR                  US
9e! ["         a    [%        UR                  UR&                  S
9ef = f)z
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'   r]   /usersr)   r*   r-   r.   r/   r0   r   r4   r5   r6   r7   r8   r9   r:   r1   r;   r<   r=   r>   r   r?   r
   r   r   r   r@   rY   s       r   list_organization_users+OrganizationsClient.list_organization_usersS  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   D7 7)E c          	         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        U5      U R                   R                  5       SS9nSUR                  s=::  a  S:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S	:X  a2  [!        [        R                  " ["        UR                  5       5      5      e UR                  5       n['        UR                  US
9e! [$         a    ['        UR                  UR(                  S
9ef = f)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=[],
)
rO   r'   r]   ru   r)   rH   r-   r.   r/   r0   r   r4   r5   r6   r7   r8   r9   r   r:   r1   r;   r<   r=   r>   r   r?   r
   r   r   r   r@   r   rW   r5   rB   rC   s        r   add_users_to_organization-OrganizationsClient.add_users_to_organizationu  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*r5   member_user_idc          
      j   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU 35      [        U5      U R                   R                  5       SS9nSUR                  s=::  a  S:  a   g	  UR                  S
:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[!        UR                  US9e! [         a    [!        UR                  UR"                  S9ef = f)al  
Remove users from an organization.

Parameters:
    - organization_id: str.

    - member_user_id: str.

    - request: typing.Optional[typing.List[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",
)
rf   r'   r]   /users/r)   rH   r-   r.   Nr/   r0   r   r4   r5   r6   r7   r8   r9   r   r:   r1   r
   r;   r<   r   r?   r   r   r@   r   rW   r   r5   rB   rC   s         r   remove_users_from_organization2OrganizationsClient.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	 	)D2c          	      f   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        U5      U R                   R                  5       SS9nSUR                  s=::  a  S:  a   g	  UR                  S
:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[!        UR                  US9e! [         a    [!        UR                  UR"                  S9ef = f)aV  
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=[],
)
rO   r'   r]   /users/remover)   rH   r-   r.   Nr/   r0   r   r|   s        r   $batch_remove_users_from_organization8OrganizationsClient.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 )D0c           	         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      U R                   R                  5       SS9nSUR                  s=::  a  S:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S	:X  a2  [        [        R                  " [         UR                  5       5      5      e UR                  5       n[%        UR                  US
9e! ["         a    [%        UR                  UR&                  S
9ef = f)z
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'   r]   /rolesr)   r*   r-   r.   r/   r0   r   r4   r5   r6   r7   r8   r9   r:   r1   r;   r<   r=   r>   r   r?   r
   r   r   r   r@   rY   s       r   
list_roles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ry   
project_idr   c          	         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        SU05      U R                   R                  5       SS9nSUR                  s=::  a  S	:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S
:X  a2  [!        [        R                  " ["        UR                  5       5      5      e UR                  5       n['        UR                  US9e! [$         a    ['        UR                  UR(                  S9ef = f)a   
Get the role of a user in an organization.

Parameters:
    - organization_id: str.

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

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.organizations.get_user_role(
    organization_id="string",
)
r&   r'   r]   /users/rolesr   r)   rn   r-   r.   r/   r0   r   r4   r5   r6   r7   r8   r9   r	   r:   r1   r;   r<   r=   Optionalr   r?   r
   r   r   r   r@   r   rW   r   rB   rC   s        r   get_user_role!OrganizationsClient.get_user_role  sE   ( ((55==LL  ''4467q9=RSbRcco;p ),
)CD((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s   E )E,user_id-user_organization_role_create_organization_idrole_idc          
         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        UUUS.5      U R                   R                  5       SS9nSUR                  s=::  a  S	:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S
:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US9e! [          a    [#        UR                  UR$                  S9ef = f)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",
)
rO   r'   r]   r   r   rW   r   r)   rH   r-   r.   r/   r0   r   r4   r5   r6   r7   r8   r9   r   r:   r1   r;   r<   r   r?   r
   r   r   r   r@   r   rW   r   r   r   rB   rC   s          r   #assign_role_to_user_in_organization7OrganizationsClient.assign_role_to_user_in_organization9  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   D4 4)Ec                    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU S35      U R                   R                  5       SS9nSUR                  s=::  a  S	:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S
:X  a2  [        [        R                  " [         UR                  5       5      5      e UR                  5       n[%        UR                  US9e! ["         a    [%        UR                  UR&                  S9ef = f)a0  
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'   r]   r   	/projectsr)   r*   r-   r.   r/   r0   r   r4   r5   r6   r7   r8   r9   r:   r1   r;   r<   r=   r>   r   r?   r
   r   r   r   r@   r   rW   r   rB   rC   s        r   list_projects_by_user)OrganizationsClient.list_projects_by_userm  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#c                   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU S35      [        SU05      U R                   R                  5       SS9nS	UR                  s=::  a  S
:  a6  O  O3[        R                  " [        R                  UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [         UR                  5       5      5      e UR                  5       n[%        UR                  US9e! ["         a    [%        UR                  UR&                  S9ef = f)a2  
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",
)
rO   r'   r]   r   r   r   r)   rn   r-   r.   r/   r0   r   r4   r5   r6   r7   r8   r9   r	   r:   r1   r;   r<   r=   Anyr?   r
   r   r   r   r@   r   rW   r   r   rB   rC   s         r   add_user_to_project'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   D? ?)E(c                    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU SU 35      U R                   R                  5       SS9nSUR                  s=::  a  S	:  a6  O  O3[        R                  " [        R                  UR                  5       5      $ UR                  S
:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US9e! [          a    [#        UR                  UR$                  S9ef = f)aQ  
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",
)
rf   r'   r]   r   
/projects/r)   r*   r-   r.   r/   r0   r   r4   r5   r6   r7   r8   r9   r:   r1   r;   r<   r=   r   r?   r
   r   r   r   r@   r   s         r   remove_user_from_project,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   D5 5)Er   ))__name__
__module____qualname____firstlineno__r   r    r=   r>   r   rD   r   rK   rP   rU   strrZ   r^   rc   rh   r   boolr   rr   r   rw   r   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   __static_attributes__ 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 [_%O"%OBH//RVBW%O	%ON Os  Ov{{K[?\  OD&O"&O06<R0S&O	%	&&OR jn)O")O47)OEK__U[U`U`adUeEf)O	)OV&O"&O06<R0S&O	&OP O#  O&++d2C  OF KO%O"%O39??33G%O	-	.%ON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            
       `   \ rS rSrS\4S jrS\R                  \   4S jr	S\
S\4S jrS\
S\4S jrS\4S	 jrS
\S\4S jrS
\S\4S jrS
\S\S\4S jrS
\SS4S jrSS.S
\S\R&                  \   S\4S jjrS
\S\R                  \   4S jrS
\S\R                  \   S\R                  \   4S jrSS.S
\S\S\R&                  \R                  \      SS4S jjrS
\S\R                  \   SS4S jrS
\S\R                  \   4S jrSS.S
\S\R&                  \   S\R&                  \    4S jjr!S
\S\S\S \S\ 4
S! jr"S
\S\S\R                  \#   4S" jr$SS.S
\R&                  \   S\S\R&                  \   S\RJ                  4S# jjr&S
\S\S\S\RJ                  4S$ jr'S%r(g)&AsyncOrganizationsClienti  r   c                    Xl         g r   r   r   s     r   r    !AsyncOrganizationsClient.__init__  r"   r#   r$   c                   #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S	:X  a2  [        [        R                  " [         UR                  5       5      5      e UR                  5       n[%        UR                  US
9e N! ["         a    [%        UR                  UR&                  S
9ef = f7f)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/   r0   r3   rA   s      r   rD   +AsyncOrganizationsClient.list_organizations  s0     ..;;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+D? )E+?)E((E+r5   c                  #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        U5      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S	:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US
9e N! [          a    [#        UR                  UR$                  S
9ef = f7f)aO  
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",
    ),
)
rG   r'   r(   r)   rH   Nr-   r.   r/   r0   rI   rJ   s       r   rK   ,AsyncOrganizationsClient.create_organization  s/    & ..;;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$D6B	E$D8 "E$8)E!!E$c                  #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        U5      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S	:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US
9e N! [          a    [#        UR                  UR$                  S
9ef = f7f)aO  
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",
    ),
)
rO   r'   r(   r)   rH   Nr-   r.   r/   r0   rI   rJ   s       r   rP   ,AsyncOrganizationsClient.upsert_organization+  s/    & ..;;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                   #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S	:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[!        UR                  US
9e N! [         a    [!        UR                  UR"                  S
9ef = f7f)z
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'   rS   r)   r*   Nr-   r.   r/   r0   rT   rA   s      r   rU   1AsyncOrganizationsClient.get_default_organizationO  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rW   c                  #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        SU05      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S
:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US9e N! [          a    [#        UR                  UR$                  S9ef = f7f)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",
)
rO   r'   rS   rW   r)   rH   Nr-   r.   r/   r0   rI   rY   s       r   rZ   1AsyncOrganizationsClient.set_default_organizationk  s5      ..;;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&	D8
B	E&D: $E&:)E##E&c                   #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU 35      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S	:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[!        UR                  US
9e N! [         a    [!        UR                  UR"                  S
9ef = f7f)z
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'   r]   r)   r*   Nr-   r.   r/   r0   rT   rY   s       r   r^   )AsyncOrganizationsClient.get_organization  s0      ..;;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+   A>E D/B	ED1 E1)EEr`   c                  #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU 35      [        SU05      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S
:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US9e N! [          a    [#        UR                  UR$                  S9ef = f7f)aE  
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",
)
rO   r'   r]   r`   r)   rH   Nr-   r.   r/   r0   rI   rb   s        r   rc   ,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                 l  #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU 35      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S:  a   g  UR                  S	:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[        UR                  US
9e N! [         a    [        UR                  UR                   S
9ef = f7f)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",
)
rf   r'   r]   r)   r*   Nr-   r.   r/   r0   rg   rY   s       r   rh   ,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+   A>D4 DA D4"D 2D4)D11D4rj   rk   c          	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        SU05      U R                   R                  5       SS9I Sh  vN nS	UR                  s=::  a  S
:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US9e N! [          a    [#        UR                  UR$                  S9ef = f7f)aE  
Get usage for a specific organization.

Parameters:
    - organization_id: 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(
    organization_id="string",
)
r&   r'   r]   rm   rk   r)   rn   Nr-   r.   r/   r0   rp   rq   s        r   rr   /AsyncOrganizationsClient.get_organization_usage  sG    ( ..;;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           	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S
:X  a2  [        [        R                  " [         UR                  5       5      5      e UR                  5       n[%        UR                  US9e N! ["         a    [%        UR                  UR&                  S9ef = f7f)a  
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'   r]   ru   r)   r*   Nr-   r.   r/   r0   rv   rY   s       r   rw   0AsyncOrganizationsClient.list_organization_users  sB      ..;;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+   A?E/EBE/E -E/)E,,E/c          	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        U5      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S
:X  a2  [!        [        R                  " ["        UR                  5       5      5      e UR                  5       n['        UR                  US9e N! [$         a    ['        UR                  UR(                  S9ef = f7f)aL  
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=[],
)
rO   r'   r]   ru   r)   rH   Nr-   r.   r/   r0   r{   r|   s        r   r}   2AsyncOrganizationsClient.add_users_to_organization9  sJ    * ..;;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	E9EBE9'E 7E9)E66E9r   r   c          
        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU 35      [        U5      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a   g  UR                  S
:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[!        UR                  US9e N! [         a    [!        UR                  UR"                  S9ef = f7f)a|  
Remove users from an organization.

Parameters:
    - organization_id: str.

    - member_user_id: str.

    - request: typing.Optional[typing.List[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",
)
rf   r'   r]   r   r)   rH   Nr-   r.   r/   r0   r   r   s         r   r   7AsyncOrganizationsClient.remove_users_from_organizationa  s1    . ..;;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EDA E/D ?E)D>>Ec          	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        U5      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a   g  UR                  S
:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[!        UR                  US9e N! [         a    [!        UR                  UR"                  S9ef = f7f)af  
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=[],
)
rO   r'   r]   r   r)   rH   Nr-   r.   r/   r0   r   r|   s        r   r   =AsyncOrganizationsClient.batch_remove_users_from_organization  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	D?DA D?-D =D?)D<<D?c           	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S
:X  a2  [        [        R                  " [         UR                  5       5      5      e UR                  5       n[%        UR                  US9e N! ["         a    [%        UR                  UR&                  S9ef = f7f)z
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'   r]   r   r)   r*   Nr-   r.   r/   r0   r   rY   s       r   r   #AsyncOrganizationsClient.list_roles  sA      ..;;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   r   r   c          	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        SU05      U R                   R                  5       SS9I Sh  vN nS	UR                  s=::  a  S
:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S:X  a2  [!        [        R                  " ["        UR                  5       5      5      e UR                  5       n['        UR                  US9e N! [$         a    ['        UR                  UR(                  S9ef = f7f)a0  
Get the role of a user in an organization.

Parameters:
    - organization_id: str.

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

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.organizations.get_user_role(
    organization_id="string",
)
r&   r'   r]   r   r   r)   rn   Nr-   r.   r/   r0   r   r   s        r   r   &AsyncOrganizationsClient.get_user_role  sR    ( ..;;CCLL  ''4467q9=RSbRcco;p ),
)CD((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s+   BE;EBE;)E 9E;)E88E;r   r   r   c          
        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        UUUS.5      U R                   R                  5       SS9I Sh  vN nS	UR                  s=::  a  S
:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US9e N! [          a    [#        UR                  UR$                  S9ef = f7f)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",
)
rO   r'   r]   r   r   r)   rH   Nr-   r.   r/   r0   r   r   s          r   r   <AsyncOrganizationsClient.assign_role_to_user_in_organization  sQ    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                   #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU S35      U R                   R                  5       SS9I Sh  vN nS	UR                  s=::  a  S
:  a=  O  O:[        R                  " [        R                  [           UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [         UR                  5       5      5      e UR                  5       n[%        UR                  US9e N! ["         a    [%        UR                  UR&                  S9ef = f7f)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'   r]   r   r   r)   r*   Nr-   r.   r/   r0   r   r   s        r   r   .AsyncOrganizationsClient.list_projects_by_user1  sE    & ..;;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E2EBE2 E 0E2)E//E2c                  #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU S35      [        SU05      U R                   R                  5       SS9I S	h  vN nS
UR                  s=::  a  S:  a6  O  O3[        R                  " [        R                  UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [         UR                  5       5      5      e UR                  5       n[%        UR                  US9e N! ["         a    [%        UR                  UR&                  S9ef = f7f)aB  
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",
)
rO   r'   r]   r   r   r   r)   rn   Nr-   r.   r/   r0   r   r   s         r   r   ,AsyncOrganizationsClient.add_user_to_projectW  sM    , ..;;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E7E	BE7%E 5E7)E44E7c                   #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU SU 35      U R                   R                  5       SS9I Sh  vN nS	UR                  s=::  a  S
:  a6  O  O3[        R                  " [        R                  UR                  5       5      $ UR                  S:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US9e N! [          a    [#        UR                  UR$                  S9ef = f7f)aa  
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",
)
rf   r'   r]   r   r   r)   r*   Nr-   r.   r/   r0   r   r   s         r   r   1AsyncOrganizationsClient.remove_user_from_project  sF    , ..;;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E-D?BE-E +E-)E**E-r   ))r   r   r   r   r   r    r=   r>   r   rD   r   rK   rP   rU   r   rZ   r^   rc   rh   r   r   r   rr   r   rw   r   r}   r   r   r   r   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 [_%O"%OBH//RVBW%O	%ON OS  OV[[QaEb  OD&O"&O06<R0S&O	%	&&OR jn)O")O47)OEK__U[U`U`adUeEf)O	)OV&O"&O06<R0S&O	&OP O  OD8I  OF KO%O"%O39??33G%O	-	.%ON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.parser6   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   r;   __version__
startswithImportErrorpydantic.v1v1castr   OMITr   r   r   r#   r   <module>r      s      ( & H 5 ? I > . ; $  0 7 D D @&&t,,"
 {{6::s#AO AOHAO AOW  s   ,,C
 

CC