
    OjA                    P   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Zb G d de/      Zc G d de0      Zd G d d      Ze G d d      Zf G d d      Zg G d d      Zhy)     )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dd       Zedd       Zedd       Zedd       Zedd       Zedd       Z	edd       Z
edd       Zedd	       Zedd
       Zedd       Zedd       Zedd       Zedd       Zedd       Zy) rW   c                ,    t        | j                        S zEList user actions and configuration changes within this organization.)r   _clientselfs    /var/www/origus_pro_usr/data/www/origus.pro/core/.venv/lib/python3.12/site-packages/openai/resources/admin/organization/organization.py
audit_logszOrganization.audit_logst   s     &&    c                ,    t        | j                        S N)r?   r\   r]   s    r_   admin_api_keyszOrganization.admin_api_keysy       DLL))ra   c                ,    t        | j                        S rc   )r   r\   r]   s    r_   usagezOrganization.usage}       T\\""ra   c                ,    t        | j                        S rc   )r   r\   r]   s    r_   inviteszOrganization.invites   s    t||$$ra   c                ,    t        | j                        S rc   )r%   r\   r]   s    r_   userszOrganization.users   rh   ra   c                ,    t        | j                        S rc   )r9   r\   r]   s    r_   groupszOrganization.groups   s    dll##ra   c                ,    t        | j                        S rc   )r   r\   r]   s    r_   roleszOrganization.roles   rh   ra   c                ,    t        | j                        S rc   )rE   r\   r]   s    r_   data_retentionzOrganization.data_retention       T\\**ra   c                ,    t        | j                        S rc   )rK   r\   r]   s    r_   external_storagezOrganization.external_storage       t||,,ra   c                ,    t        | j                        S rc   )r   r\   r]   s    r_   spend_limitzOrganization.spend_limit       $,,''ra   c                ,    t        | j                        S rc   )r3   r\   r]   s    r_   spend_alertszOrganization.spend_alerts       4<<((ra   c                ,    t        | j                        S rc   )r-   r\   r]   s    r_   certificateszOrganization.certificates   re   ra   c                ,    t        | j                        S rc   )rQ   r\   r]   s    r_   projectszOrganization.projects   s    %%ra   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
        )OrganizationWithRawResponser]   s    r_   with_raw_responsezOrganization.with_raw_response   s     +400ra   c                    t        |       S 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
        )!OrganizationWithStreamingResponser]   s    r_   with_streaming_responsez$Organization.with_streaming_response   s     166ra   N)returnr   )r   r?   )r   r   )r   r   )r   r%   )r   r9   )r   r   )r   rE   )r   rK   )r   r   )r   r3   )r   r-   )r   rQ   )r   r   )r   r   __name__
__module____qualname__r   r`   rd   rg   rj   rl   rn   rp   rr   ru   rx   r{   r~   r   r   r    ra   r_   rW   rW   s   s,   ' ' * * # # % % # # $ $ # # + + - - ( ( ) ) * * & & 1 1 7 7ra   c                     e Zd Zedd       Zedd       Zedd       Zedd       Zedd       Zedd       Z	edd       Z
edd       Zedd	       Zedd
       Zedd       Zedd       Zedd       Zedd       Zedd       Zy) rX   c                ,    t        | j                        S r[   )r   r\   r]   s    r_   r`   zAsyncOrganization.audit_logs   s     dll++ra   c                ,    t        | j                        S rc   )r@   r\   r]   s    r_   rd   z AsyncOrganization.admin_api_keys        ..ra   c                ,    t        | j                        S rc   )r   r\   r]   s    r_   rg   zAsyncOrganization.usage   ry   ra   c                ,    t        | j                        S rc   )r   r\   r]   s    r_   rj   zAsyncOrganization.invites   re   ra   c                ,    t        | j                        S rc   )r&   r\   r]   s    r_   rl   zAsyncOrganization.users   ry   ra   c                ,    t        | j                        S rc   )r:   r\   r]   s    r_   rn   zAsyncOrganization.groups   r|   ra   c                ,    t        | j                        S rc   )r   r\   r]   s    r_   rp   zAsyncOrganization.roles   ry   ra   c                ,    t        | j                        S rc   )rF   r\   r]   s    r_   rr   z AsyncOrganization.data_retention   s    !$,,//ra   c                ,    t        | j                        S rc   )rL   r\   r]   s    r_   ru   z"AsyncOrganization.external_storage   s    #DLL11ra   c                ,    t        | j                        S rc   )r    r\   r]   s    r_   rx   zAsyncOrganization.spend_limit   rv   ra   c                ,    t        | j                        S rc   )r4   r\   r]   s    r_   r{   zAsyncOrganization.spend_alerts   s    --ra   c                ,    t        | j                        S rc   )r.   r\   r]   s    r_   r~   zAsyncOrganization.certificates   r   ra   c                ,    t        | j                        S rc   )rR   r\   r]   s    r_   r   zAsyncOrganization.projects   rs   ra   c                    t        |       S r   ) AsyncOrganizationWithRawResponser]   s    r_   r   z#AsyncOrganization.with_raw_response   s     055ra   c                    t        |       S r   )&AsyncOrganizationWithStreamingResponser]   s    r_   r   z)AsyncOrganization.with_streaming_response   s     6d;;ra   N)r   r   )r   r@   )r   r   )r   r   )r   r&   )r   r:   )r   r   )r   rF   )r   rL   )r   r    )r   r4   )r   r.   )r   rR   )r   r   )r   r   r   r   ra   r_   rX   rX      s,   , , / / ( ( * * ( ( ) ) ( ( 0 0 2 2 - - . . / / + + 6 6 < <ra   c                      e Zd ZddZedd       Zedd       Zedd       Zedd       Zedd       Z	edd       Z
edd       Zedd	       Zedd
       Zedd       Zedd       Zedd       Zedd       Zy)r   c                    || _         y rc   _organizationr^   organizations     r_   __init__z$OrganizationWithRawResponse.__init__  
    )ra   c                @    t        | j                  j                        S r[   )r   r   r`   r]   s    r_   r`   z&OrganizationWithRawResponse.audit_logs  s     ((:(:(E(EFFra   c                @    t        | j                  j                        S rc   )rA   r   rd   r]   s    r_   rd   z*OrganizationWithRawResponse.admin_api_keys  s    *4+=+=+L+LMMra   c                @    t        | j                  j                        S rc   )r   r   rg   r]   s    r_   rg   z!OrganizationWithRawResponse.usage      #D$6$6$<$<==ra   c                @    t        | j                  j                        S rc   )r   r   rj   r]   s    r_   rj   z#OrganizationWithRawResponse.invites  s    %d&8&8&@&@AAra   c                @    t        | j                  j                        S rc   )r'   r   rl   r]   s    r_   rl   z!OrganizationWithRawResponse.users  r   ra   c                @    t        | j                  j                        S rc   )r;   r   rn   r]   s    r_   rn   z"OrganizationWithRawResponse.groups   s    $T%7%7%>%>??ra   c                @    t        | j                  j                        S rc   )r   r   rp   r]   s    r_   rp   z!OrganizationWithRawResponse.roles$  r   ra   c                @    t        | j                  j                        S rc   )rG   r   rr   r]   s    r_   rr   z*OrganizationWithRawResponse.data_retention(  s    +D,>,>,M,MNNra   c                @    t        | j                  j                        S rc   )rM   r   ru   r]   s    r_   ru   z,OrganizationWithRawResponse.external_storage,  s    -d.@.@.Q.QRRra   c                @    t        | j                  j                        S rc   )r!   r   rx   r]   s    r_   rx   z'OrganizationWithRawResponse.spend_limit0  s    (););)G)GHHra   c                @    t        | j                  j                        S rc   )r5   r   r{   r]   s    r_   r{   z(OrganizationWithRawResponse.spend_alerts4  s    )$*<*<*I*IJJra   c                @    t        | j                  j                        S rc   )r/   r   r~   r]   s    r_   r~   z(OrganizationWithRawResponse.certificates8  s    *4+=+=+J+JKKra   c                @    t        | j                  j                        S rc   )rS   r   r   r]   s    r_   r   z$OrganizationWithRawResponse.projects<  s    &t'9'9'B'BCCra   Nr   rW   r   None)r   r   )r   rA   )r   r   )r   r   )r   r'   )r   r;   )r   r   )r   rG   )r   rM   )r   r!   )r   r5   )r   r/   )r   rS   r   r   r   r   r   r`   rd   rg   rj   rl   rn   rp   rr   ru   rx   r{   r~   r   r   ra   r_   r   r     s   * G G N N > > B B > > @ @ > > O O S S I I K K L L D Dra   r   c                      e Zd ZddZedd       Zedd       Zedd       Zedd       Zedd       Z	edd       Z
edd       Zedd	       Zedd
       Zedd       Zedd       Zedd       Zedd       Zy)r   c                    || _         y rc   r   r   s     r_   r   z)AsyncOrganizationWithRawResponse.__init__B  r   ra   c                @    t        | j                  j                        S r[   )r   r   r`   r]   s    r_   r`   z+AsyncOrganizationWithRawResponse.audit_logsE  s     -T-?-?-J-JKKra   c                @    t        | j                  j                        S rc   )rB   r   rd   r]   s    r_   rd   z/AsyncOrganizationWithRawResponse.admin_api_keysJ  s    /0B0B0Q0QRRra   c                @    t        | j                  j                        S rc   )r   r   rg   r]   s    r_   rg   z&AsyncOrganizationWithRawResponse.usageN      (););)A)ABBra   c                @    t        | j                  j                        S rc   )r   r   rj   r]   s    r_   rj   z(AsyncOrganizationWithRawResponse.invitesR  s    *4+=+=+E+EFFra   c                @    t        | j                  j                        S rc   )r(   r   rl   r]   s    r_   rl   z&AsyncOrganizationWithRawResponse.usersV  r   ra   c                @    t        | j                  j                        S rc   )r<   r   rn   r]   s    r_   rn   z'AsyncOrganizationWithRawResponse.groupsZ  s    )$*<*<*C*CDDra   c                @    t        | j                  j                        S rc   )r   r   rp   r]   s    r_   rp   z&AsyncOrganizationWithRawResponse.roles^  r   ra   c                @    t        | j                  j                        S rc   )rH   r   rr   r]   s    r_   rr   z/AsyncOrganizationWithRawResponse.data_retentionb      01C1C1R1RSSra   c                @    t        | j                  j                        S rc   )rN   r   ru   r]   s    r_   ru   z1AsyncOrganizationWithRawResponse.external_storagef  s    243E3E3V3VWWra   c                @    t        | j                  j                        S rc   )r"   r   rx   r]   s    r_   rx   z,AsyncOrganizationWithRawResponse.spend_limitj  s    -d.@.@.L.LMMra   c                @    t        | j                  j                        S rc   )r6   r   r{   r]   s    r_   r{   z-AsyncOrganizationWithRawResponse.spend_alertsn  s    .t/A/A/N/NOOra   c                @    t        | j                  j                        S rc   )r0   r   r~   r]   s    r_   r~   z-AsyncOrganizationWithRawResponse.certificatesr      /0B0B0O0OPPra   c                @    t        | j                  j                        S rc   )rT   r   r   r]   s    r_   r   z)AsyncOrganizationWithRawResponse.projectsv  s    +D,>,>,G,GHHra   Nr   rX   r   r   )r   r   )r   rB   )r   r   )r   r   )r   r(   )r   r<   )r   r   )r   rH   )r   rN   )r   r"   )r   r6   )r   r0   )r   rT   r   r   ra   r_   r   r   A  s%   * L L S S C C G G C C E E C C T T X X N N P P Q Q I Ira   r   c                      e Zd ZddZedd       Zedd       Zedd       Zedd       Zedd       Z	edd       Z
edd       Zedd	       Zedd
       Zedd       Zedd       Zedd       Zedd       Zy)r   c                    || _         y rc   r   r   s     r_   r   z*OrganizationWithStreamingResponse.__init__|  r   ra   c                @    t        | j                  j                        S r[   )r   r   r`   r]   s    r_   r`   z,OrganizationWithStreamingResponse.audit_logs  s     .d.@.@.K.KLLra   c                @    t        | j                  j                        S rc   )rC   r   rd   r]   s    r_   rd   z0OrganizationWithStreamingResponse.admin_api_keys  r   ra   c                @    t        | j                  j                        S rc   )r   r   rg   r]   s    r_   rg   z'OrganizationWithStreamingResponse.usage      )$*<*<*B*BCCra   c                @    t        | j                  j                        S rc   )r   r   rj   r]   s    r_   rj   z)OrganizationWithStreamingResponse.invites  s    +D,>,>,F,FGGra   c                @    t        | j                  j                        S rc   )r)   r   rl   r]   s    r_   rl   z'OrganizationWithStreamingResponse.users  r   ra   c                @    t        | j                  j                        S rc   )r=   r   rn   r]   s    r_   rn   z(OrganizationWithStreamingResponse.groups  s    *4+=+=+D+DEEra   c                @    t        | j                  j                        S rc   )r	   r   rp   r]   s    r_   rp   z'OrganizationWithStreamingResponse.roles  r   ra   c                @    t        | j                  j                        S rc   )rI   r   rr   r]   s    r_   rr   z0OrganizationWithStreamingResponse.data_retention  s    1$2D2D2S2STTra   c                @    t        | j                  j                        S rc   )rO   r   ru   r]   s    r_   ru   z2OrganizationWithStreamingResponse.external_storage  s    3D4F4F4W4WXXra   c                @    t        | j                  j                        S rc   )r#   r   rx   r]   s    r_   rx   z-OrganizationWithStreamingResponse.spend_limit  s    .t/A/A/M/MNNra   c                @    t        | j                  j                        S rc   )r7   r   r{   r]   s    r_   r{   z.OrganizationWithStreamingResponse.spend_alerts  r   ra   c                @    t        | j                  j                        S rc   )r1   r   r~   r]   s    r_   r~   z.OrganizationWithStreamingResponse.certificates  s    01C1C1P1PQQra   c                @    t        | j                  j                        S rc   )rU   r   r   r]   s    r_   r   z*OrganizationWithStreamingResponse.projects  s    ,T-?-?-H-HIIra   Nr   )r   r   )r   rC   )r   r   )r   r   )r   r)   )r   r=   )r   r	   )r   rI   )r   rO   )r   r#   )r   r7   )r   r1   )r   rU   r   r   ra   r_   r   r   {  s%   * M M T T D D H H D D F F D D U U Y Y O O Q Q R R J Jra   r   c                      e Zd ZddZedd       Zedd       Zedd       Zedd       Zedd       Z	edd       Z
edd       Zedd	       Zedd
       Zedd       Zedd       Zedd       Zedd       Zy)r   c                    || _         y rc   r   r   s     r_   r   z/AsyncOrganizationWithStreamingResponse.__init__  r   ra   c                @    t        | j                  j                        S r[   )r   r   r`   r]   s    r_   r`   z1AsyncOrganizationWithStreamingResponse.audit_logs  s     343E3E3P3PQQra   c                @    t        | j                  j                        S rc   )rD   r   rd   r]   s    r_   rd   z5AsyncOrganizationWithStreamingResponse.admin_api_keys  s    5d6H6H6W6WXXra   c                @    t        | j                  j                        S rc   )r   r   rg   r]   s    r_   rg   z,AsyncOrganizationWithStreamingResponse.usage      .t/A/A/G/GHHra   c                @    t        | j                  j                        S rc   )r   r   rj   r]   s    r_   rj   z.AsyncOrganizationWithStreamingResponse.invites  s    01C1C1K1KLLra   c                @    t        | j                  j                        S rc   )r*   r   rl   r]   s    r_   rl   z,AsyncOrganizationWithStreamingResponse.users  r   ra   c                @    t        | j                  j                        S rc   )r>   r   rn   r]   s    r_   rn   z-AsyncOrganizationWithStreamingResponse.groups  s    /0B0B0I0IJJra   c                @    t        | j                  j                        S rc   )r
   r   rp   r]   s    r_   rp   z,AsyncOrganizationWithStreamingResponse.roles  r   ra   c                @    t        | j                  j                        S rc   )rJ   r   rr   r]   s    r_   rr   z5AsyncOrganizationWithStreamingResponse.data_retention  s    6t7I7I7X7XYYra   c                @    t        | j                  j                        S rc   )rP   r   ru   r]   s    r_   ru   z7AsyncOrganizationWithStreamingResponse.external_storage  s    89K9K9\9\]]ra   c                @    t        | j                  j                        S rc   )r$   r   rx   r]   s    r_   rx   z2AsyncOrganizationWithStreamingResponse.spend_limit  s    3D4F4F4R4RSSra   c                @    t        | j                  j                        S rc   )r8   r   r{   r]   s    r_   r{   z3AsyncOrganizationWithStreamingResponse.spend_alerts  s    4T5G5G5T5TUUra   c                @    t        | j                  j                        S rc   )r2   r   r~   r]   s    r_   r~   z3AsyncOrganizationWithStreamingResponse.certificates  s    5d6H6H6U6UVVra   c                @    t        | j                  j                        S rc   )rV   r   r   r]   s    r_   r   z/AsyncOrganizationWithStreamingResponse.projects  s    1$2D2D2M2MNNra   Nr   )r   r   )r   rD   )r   r   )r   r   )r   r*   )r   r>   )r   r
   )r   rJ   )r   rP   )r   r$   )r   r8   )r   r2   )r   rV   r   r   ra   r_   r   r     s%   * R R Y Y I I M M I I K K I I Z Z ^ ^ T T V V W W O Ora   r   N)i
__future__r   rp   r   r   r   r   r	   r
   rg   r   r   r   r   r   r   rj   r   r   r   r   r   r   _compatr   r`   r   r   r   r   r   r   rx   r   r    r!   r"   r#   r$   users.usersr%   r&   r'   r(   r)   r*   	_resourcer+   r,   r~   r-   r.   r/   r0   r1   r2   r{   r3   r4   r5   r6   r7   r8   groups.groupsr9   r:   r;   r<   r=   r>   rd   r?   r@   rA   rB   rC   rD   rr   rE   rF   rG   rH   rI   rJ   ru   rK   rL   rM   rN   rO   rP   projects.projectsrQ   rR   rS   rT   rU   rV   __all__rW   rX   r   r   r   r   r   ra   r_   <module>r      s    #    (    <        .
/G7? G7TG<( G<T7D 7Dt7I 7It7J 7Jt7O 7Ora   