o
    łT·jA  ć                   @  s,  d dl mZ ddlmZmZmZmZmZmZ ddl	m
Z
mZmZmZmZmZ ddlmZmZmZmZmZmZ ddlmZ ddlmZmZmZmZmZmZ dd	l m!Z!m"Z"m#Z#m$Z$m%Z%m&Z& dd
l'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z- ddl.m/Z/m0Z0 ddl1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7 ddl8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z> ddl?m@Z@mAZAmBZBmCZCmDZDmEZE ddlFmGZGmHZHmIZImJZJmKZKmLZL ddlMmNZNmOZOmPZPmQZQmRZRmSZS ddlTmUZUmVZVmWZWmXZXmYZYmZZZ ddl[m\Z\m]Z]m^Z^m_Z_m`Z`maZa ddgZbG dd de/ZcG dd de0ZdG dd dZeG dd dZfG dd dZgG dd dZhdS ) é    )Śannotationsé   )ŚRolesŚ
AsyncRolesŚRolesWithRawResponseŚAsyncRolesWithRawResponseŚRolesWithStreamingResponseŚAsyncRolesWithStreamingResponse)ŚUsageŚ
AsyncUsageŚUsageWithRawResponseŚAsyncUsageWithRawResponseŚUsageWithStreamingResponseŚAsyncUsageWithStreamingResponse)ŚInvitesŚAsyncInvitesŚInvitesWithRawResponseŚAsyncInvitesWithRawResponseŚInvitesWithStreamingResponseŚ!AsyncInvitesWithStreamingResponseé   )Ścached_property)Ś	AuditLogsŚAsyncAuditLogsŚAuditLogsWithRawResponseŚAsyncAuditLogsWithRawResponseŚAuditLogsWithStreamingResponseŚ#AsyncAuditLogsWithStreamingResponse)Ś
SpendLimitŚAsyncSpendLimitŚSpendLimitWithRawResponseŚAsyncSpendLimitWithRawResponseŚSpendLimitWithStreamingResponseŚ$AsyncSpendLimitWithStreamingResponse)ŚUsersŚ
AsyncUsersŚUsersWithRawResponseŚAsyncUsersWithRawResponseŚUsersWithStreamingResponseŚAsyncUsersWithStreamingResponse)ŚSyncAPIResourceŚAsyncAPIResource)ŚCertificatesŚAsyncCertificatesŚCertificatesWithRawResponseŚ AsyncCertificatesWithRawResponseŚ!CertificatesWithStreamingResponseŚ&AsyncCertificatesWithStreamingResponse)ŚSpendAlertsŚAsyncSpendAlertsŚSpendAlertsWithRawResponseŚAsyncSpendAlertsWithRawResponseŚ SpendAlertsWithStreamingResponseŚ%AsyncSpendAlertsWithStreamingResponse)ŚGroupsŚAsyncGroupsŚGroupsWithRawResponseŚAsyncGroupsWithRawResponseŚGroupsWithStreamingResponseŚ AsyncGroupsWithStreamingResponse)ŚAdminAPIKeysŚAsyncAdminAPIKeysŚAdminAPIKeysWithRawResponseŚ AsyncAdminAPIKeysWithRawResponseŚ!AdminAPIKeysWithStreamingResponseŚ&AsyncAdminAPIKeysWithStreamingResponse)ŚDataRetentionŚAsyncDataRetentionŚDataRetentionWithRawResponseŚ!AsyncDataRetentionWithRawResponseŚ"DataRetentionWithStreamingResponseŚ'AsyncDataRetentionWithStreamingResponse)ŚExternalStorageŚAsyncExternalStorageŚExternalStorageWithRawResponseŚ#AsyncExternalStorageWithRawResponseŚ$ExternalStorageWithStreamingResponseŚ)AsyncExternalStorageWithStreamingResponse)ŚProjectsŚAsyncProjectsŚProjectsWithRawResponseŚAsyncProjectsWithRawResponseŚProjectsWithStreamingResponseŚ"AsyncProjectsWithStreamingResponseŚOrganizationŚAsyncOrganizationc                   @  óŽ   e Zd Zed0ddZed1ddZed2d	d
Zed3ddZed4ddZed5ddZ	ed6ddZ
ed7ddZed8ddZed9ddZed:d!d"Zed;d$d%Zed<d'd(Zed=d*d+Zed>d-d.Zd/S )?rV   Śreturnr   c                 C  ó
   t | jS ©zEList user actions and configuration changes within this organization.)r   Ś_client©Śself© r_   śs/home/dinkstrade/pdmp-scanner/venv/lib/python3.10/site-packages/openai/resources/admin/organization/organization.pyŚ
audit_logst   ó   
zOrganization.audit_logsr>   c                 C  rZ   ©N)r>   r\   r]   r_   r_   r`   Śadmin_api_keysy   ó   
zOrganization.admin_api_keysr
   c                 C  rZ   rc   )r
   r\   r]   r_   r_   r`   Śusage}   re   zOrganization.usager   c                 C  rZ   rc   )r   r\   r]   r_   r_   r`   Śinvites   re   zOrganization.invitesr$   c                 C  rZ   rc   )r$   r\   r]   r_   r_   r`   Śusers   re   zOrganization.usersr8   c                 C  rZ   rc   )r8   r\   r]   r_   r_   r`   Śgroups   re   zOrganization.groupsr   c                 C  rZ   rc   )r   r\   r]   r_   r_   r`   Śroles   re   zOrganization.rolesrD   c                 C  rZ   rc   )rD   r\   r]   r_   r_   r`   Śdata_retention   re   zOrganization.data_retentionrJ   c                 C  rZ   rc   )rJ   r\   r]   r_   r_   r`   Śexternal_storage   re   zOrganization.external_storager   c                 C  rZ   rc   )r   r\   r]   r_   r_   r`   Śspend_limit   re   zOrganization.spend_limitr2   c                 C  rZ   rc   )r2   r\   r]   r_   r_   r`   Śspend_alerts   re   zOrganization.spend_alertsr,   c                 C  rZ   rc   )r,   r\   r]   r_   r_   r`   Ścertificates”   re   zOrganization.certificatesrP   c                 C  rZ   rc   )rP   r\   r]   r_   r_   r`   Śprojects„   re   zOrganization.projectsŚOrganizationWithRawResponsec                 C  ó   t | S ©a  
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers
        )rq   r]   r_   r_   r`   Świth_raw_response©   ó   zOrganization.with_raw_responseŚ!OrganizationWithStreamingResponsec                 C  rr   ©zĢ
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/openai/openai-python#with_streaming_response
        )rv   r]   r_   r_   r`   Świth_streaming_response³   ó   z$Organization.with_streaming_responseN)rY   r   )rY   r>   )rY   r
   )rY   r   )rY   r$   )rY   r8   )rY   r   )rY   rD   )rY   rJ   )rY   r   )rY   r2   )rY   r,   )rY   rP   )rY   rq   )rY   rv   ©Ś__name__Ś
__module__Ś__qualname__r   ra   rd   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rt   rx   r_   r_   r_   r`   rV   s   ó>    	c                   @  rX   )?rW   rY   r   c                 C  rZ   r[   )r   r\   r]   r_   r_   r`   ra   ¾   rb   zAsyncOrganization.audit_logsr?   c                 C  rZ   rc   )r?   r\   r]   r_   r_   r`   rd   Ć   re   z AsyncOrganization.admin_api_keysr   c                 C  rZ   rc   )r   r\   r]   r_   r_   r`   rf   Ē   re   zAsyncOrganization.usager   c                 C  rZ   rc   )r   r\   r]   r_   r_   r`   rg   Ė   re   zAsyncOrganization.invitesr%   c                 C  rZ   rc   )r%   r\   r]   r_   r_   r`   rh   Ļ   re   zAsyncOrganization.usersr9   c                 C  rZ   rc   )r9   r\   r]   r_   r_   r`   ri   Ó   re   zAsyncOrganization.groupsr   c                 C  rZ   rc   )r   r\   r]   r_   r_   r`   rj   ×   re   zAsyncOrganization.rolesrE   c                 C  rZ   rc   )rE   r\   r]   r_   r_   r`   rk   Ū   re   z AsyncOrganization.data_retentionrK   c                 C  rZ   rc   )rK   r\   r]   r_   r_   r`   rl   ß   re   z"AsyncOrganization.external_storager   c                 C  rZ   rc   )r   r\   r]   r_   r_   r`   rm   ć   re   zAsyncOrganization.spend_limitr3   c                 C  rZ   rc   )r3   r\   r]   r_   r_   r`   rn   ē   re   zAsyncOrganization.spend_alertsr-   c                 C  rZ   rc   )r-   r\   r]   r_   r_   r`   ro   ė   re   zAsyncOrganization.certificatesrQ   c                 C  rZ   rc   )rQ   r\   r]   r_   r_   r`   rp   ļ   re   zAsyncOrganization.projectsŚ AsyncOrganizationWithRawResponsec                 C  rr   rs   )r   r]   r_   r_   r`   rt   ó   ru   z#AsyncOrganization.with_raw_responseŚ&AsyncOrganizationWithStreamingResponsec                 C  rr   rw   )r   r]   r_   r_   r`   rx   ż   ry   z)AsyncOrganization.with_streaming_responseN)rY   r   )rY   r?   )rY   r   )rY   r   )rY   r%   )rY   r9   )rY   r   )rY   rE   )rY   rK   )rY   r   )rY   r3   )rY   r-   )rY   rQ   )rY   r   )rY   r   rz   r_   r_   r_   r`   rW   ½   r~   c                   @  óĢ   e Zd Zd/ddZed0dd	Zed1ddZed2ddZed3ddZed4ddZ	ed5ddZ
ed6ddZed7ddZed8d d!Zed9d#d$Zed:d&d'Zed;d)d*Zed<d,d-Zd.S )=rq   ŚorganizationrV   rY   ŚNonec                 C  ó
   || _ d S rc   ©Ś_organization©r^   r   r_   r_   r`   Ś__init__  ó   
z$OrganizationWithRawResponse.__init__r   c                 C  ó   t | jjS r[   )r   r   ra   r]   r_   r_   r`   ra     ó   z&OrganizationWithRawResponse.audit_logsr@   c                 C  r   rc   )r@   r   rd   r]   r_   r_   r`   rd     ó   z*OrganizationWithRawResponse.admin_api_keysr   c                 C  r   rc   )r   r   rf   r]   r_   r_   r`   rf     r   z!OrganizationWithRawResponse.usager   c                 C  r   rc   )r   r   rg   r]   r_   r_   r`   rg     r   z#OrganizationWithRawResponse.invitesr&   c                 C  r   rc   )r&   r   rh   r]   r_   r_   r`   rh     r   z!OrganizationWithRawResponse.usersr:   c                 C  r   rc   )r:   r   ri   r]   r_   r_   r`   ri      r   z"OrganizationWithRawResponse.groupsr   c                 C  r   rc   )r   r   rj   r]   r_   r_   r`   rj   $  r   z!OrganizationWithRawResponse.rolesrF   c                 C  r   rc   )rF   r   rk   r]   r_   r_   r`   rk   (  r   z*OrganizationWithRawResponse.data_retentionrL   c                 C  r   rc   )rL   r   rl   r]   r_   r_   r`   rl   ,  r   z,OrganizationWithRawResponse.external_storager    c                 C  r   rc   )r    r   rm   r]   r_   r_   r`   rm   0  r   z'OrganizationWithRawResponse.spend_limitr4   c                 C  r   rc   )r4   r   rn   r]   r_   r_   r`   rn   4  r   z(OrganizationWithRawResponse.spend_alertsr.   c                 C  r   rc   )r.   r   ro   r]   r_   r_   r`   ro   8  r   z(OrganizationWithRawResponse.certificatesrR   c                 C  r   rc   )rR   r   rp   r]   r_   r_   r`   rp   <  r   z$OrganizationWithRawResponse.projectsN©r   rV   rY   r   )rY   r   )rY   r@   )rY   r   )rY   r   )rY   r&   )rY   r:   )rY   r   )rY   rF   )rY   rL   )rY   r    )rY   r4   )rY   r.   )rY   rR   ©r{   r|   r}   r   r   ra   rd   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   r_   r_   r_   r`   rq     ó8    
rq   c                   @  r   )=r   r   rW   rY   r   c                 C  r   rc   r   r   r_   r_   r`   r   B  r   z)AsyncOrganizationWithRawResponse.__init__r   c                 C  r   r[   )r   r   ra   r]   r_   r_   r`   ra   E  r   z+AsyncOrganizationWithRawResponse.audit_logsrA   c                 C  r   rc   )rA   r   rd   r]   r_   r_   r`   rd   J  r   z/AsyncOrganizationWithRawResponse.admin_api_keysr   c                 C  r   rc   )r   r   rf   r]   r_   r_   r`   rf   N  r   z&AsyncOrganizationWithRawResponse.usager   c                 C  r   rc   )r   r   rg   r]   r_   r_   r`   rg   R  r   z(AsyncOrganizationWithRawResponse.invitesr'   c                 C  r   rc   )r'   r   rh   r]   r_   r_   r`   rh   V  r   z&AsyncOrganizationWithRawResponse.usersr;   c                 C  r   rc   )r;   r   ri   r]   r_   r_   r`   ri   Z  r   z'AsyncOrganizationWithRawResponse.groupsr   c                 C  r   rc   )r   r   rj   r]   r_   r_   r`   rj   ^  r   z&AsyncOrganizationWithRawResponse.rolesrG   c                 C  r   rc   )rG   r   rk   r]   r_   r_   r`   rk   b  r   z/AsyncOrganizationWithRawResponse.data_retentionrM   c                 C  r   rc   )rM   r   rl   r]   r_   r_   r`   rl   f  r   z1AsyncOrganizationWithRawResponse.external_storager!   c                 C  r   rc   )r!   r   rm   r]   r_   r_   r`   rm   j  r   z,AsyncOrganizationWithRawResponse.spend_limitr5   c                 C  r   rc   )r5   r   rn   r]   r_   r_   r`   rn   n  r   z-AsyncOrganizationWithRawResponse.spend_alertsr/   c                 C  r   rc   )r/   r   ro   r]   r_   r_   r`   ro   r  r   z-AsyncOrganizationWithRawResponse.certificatesrS   c                 C  r   rc   )rS   r   rp   r]   r_   r_   r`   rp   v  r   z)AsyncOrganizationWithRawResponse.projectsN©r   rW   rY   r   )rY   r   )rY   rA   )rY   r   )rY   r   )rY   r'   )rY   r;   )rY   r   )rY   rG   )rY   rM   )rY   r!   )rY   r5   )rY   r/   )rY   rS   r   r_   r_   r_   r`   r   A  r   r   c                   @  r   )=rv   r   rV   rY   r   c                 C  r   rc   r   r   r_   r_   r`   r   |  r   z*OrganizationWithStreamingResponse.__init__r   c                 C  r   r[   )r   r   ra   r]   r_   r_   r`   ra     r   z,OrganizationWithStreamingResponse.audit_logsrB   c                 C  r   rc   )rB   r   rd   r]   r_   r_   r`   rd     r   z0OrganizationWithStreamingResponse.admin_api_keysr   c                 C  r   rc   )r   r   rf   r]   r_   r_   r`   rf     r   z'OrganizationWithStreamingResponse.usager   c                 C  r   rc   )r   r   rg   r]   r_   r_   r`   rg     r   z)OrganizationWithStreamingResponse.invitesr(   c                 C  r   rc   )r(   r   rh   r]   r_   r_   r`   rh     r   z'OrganizationWithStreamingResponse.usersr<   c                 C  r   rc   )r<   r   ri   r]   r_   r_   r`   ri     r   z(OrganizationWithStreamingResponse.groupsr   c                 C  r   rc   )r   r   rj   r]   r_   r_   r`   rj     r   z'OrganizationWithStreamingResponse.rolesrH   c                 C  r   rc   )rH   r   rk   r]   r_   r_   r`   rk     r   z0OrganizationWithStreamingResponse.data_retentionrN   c                 C  r   rc   )rN   r   rl   r]   r_   r_   r`   rl      r   z2OrganizationWithStreamingResponse.external_storager"   c                 C  r   rc   )r"   r   rm   r]   r_   r_   r`   rm   ¤  r   z-OrganizationWithStreamingResponse.spend_limitr6   c                 C  r   rc   )r6   r   rn   r]   r_   r_   r`   rn   Ø  r   z.OrganizationWithStreamingResponse.spend_alertsr0   c                 C  r   rc   )r0   r   ro   r]   r_   r_   r`   ro   ¬  r   z.OrganizationWithStreamingResponse.certificatesrT   c                 C  r   rc   )rT   r   rp   r]   r_   r_   r`   rp   °  r   z*OrganizationWithStreamingResponse.projectsNr   )rY   r   )rY   rB   )rY   r   )rY   r   )rY   r(   )rY   r<   )rY   r   )rY   rH   )rY   rN   )rY   r"   )rY   r6   )rY   r0   )rY   rT   r   r_   r_   r_   r`   rv   {  r   rv   c                   @  r   )=r   r   rW   rY   r   c                 C  r   rc   r   r   r_   r_   r`   r   ¶  r   z/AsyncOrganizationWithStreamingResponse.__init__r   c                 C  r   r[   )r   r   ra   r]   r_   r_   r`   ra   ¹  r   z1AsyncOrganizationWithStreamingResponse.audit_logsrC   c                 C  r   rc   )rC   r   rd   r]   r_   r_   r`   rd   ¾  r   z5AsyncOrganizationWithStreamingResponse.admin_api_keysr   c                 C  r   rc   )r   r   rf   r]   r_   r_   r`   rf   Ā  r   z,AsyncOrganizationWithStreamingResponse.usager   c                 C  r   rc   )r   r   rg   r]   r_   r_   r`   rg   Ę  r   z.AsyncOrganizationWithStreamingResponse.invitesr)   c                 C  r   rc   )r)   r   rh   r]   r_   r_   r`   rh   Ź  r   z,AsyncOrganizationWithStreamingResponse.usersr=   c                 C  r   rc   )r=   r   ri   r]   r_   r_   r`   ri   Ī  r   z-AsyncOrganizationWithStreamingResponse.groupsr	   c                 C  r   rc   )r	   r   rj   r]   r_   r_   r`   rj   Ņ  r   z,AsyncOrganizationWithStreamingResponse.rolesrI   c                 C  r   rc   )rI   r   rk   r]   r_   r_   r`   rk   Ö  r   z5AsyncOrganizationWithStreamingResponse.data_retentionrO   c                 C  r   rc   )rO   r   rl   r]   r_   r_   r`   rl   Ś  r   z7AsyncOrganizationWithStreamingResponse.external_storager#   c                 C  r   rc   )r#   r   rm   r]   r_   r_   r`   rm   Ž  r   z2AsyncOrganizationWithStreamingResponse.spend_limitr7   c                 C  r   rc   )r7   r   rn   r]   r_   r_   r`   rn   ā  r   z3AsyncOrganizationWithStreamingResponse.spend_alertsr1   c                 C  r   rc   )r1   r   ro   r]   r_   r_   r`   ro   ę  r   z3AsyncOrganizationWithStreamingResponse.certificatesrU   c                 C  r   rc   )rU   r   rp   r]   r_   r_   r`   rp   ź  r   z/AsyncOrganizationWithStreamingResponse.projectsNr   )rY   r   )rY   rC   )rY   r   )rY   r   )rY   r)   )rY   r=   )rY   r	   )rY   rI   )rY   rO   )rY   r#   )rY   r7   )rY   r1   )rY   rU   r   r_   r_   r_   r`   r   µ  r   r   N)iŚ
__future__r   rj   r   r   r   r   r   r	   rf   r
   r   r   r   r   r   rg   r   r   r   r   r   r   Ś_compatr   ra   r   r   r   r   r   r   rm   r   r   r    r!   r"   r#   Śusers.usersr$   r%   r&   r'   r(   r)   Ś	_resourcer*   r+   ro   r,   r-   r.   r/   r0   r1   rn   r2   r3   r4   r5   r6   r7   Śgroups.groupsr8   r9   r:   r;   r<   r=   rd   r>   r?   r@   rA   rB   rC   rk   rD   rE   rF   rG   rH   rI   rl   rJ   rK   rL   rM   rN   rO   Śprojects.projectsrP   rQ   rR   rS   rT   rU   Ś__all__rV   rW   rq   r   rv   r   r_   r_   r_   r`   Ś<module>   s.                	JJ:::