
    _j>=                    X   S SK Jr  S SKJr  S SKJr  S SKrSSKJr  SSK	J
r
JrJrJrJrJrJrJr  SSKJr  SS	KJr  SS
KJrJr  SSKJrJr  SSKJrJr  SSKJ r J!r!  SSK"J#r#  SSK$J%r%  SS/r& " S S\5      r' " S S\5      r( " S S5      r) " S S5      r* " S S5      r+ " S S5      r,g)    )annotations)List)LiteralN   )_legacy_response)BodyOmitQueryHeadersNotGivenSequenceNotStromit	not_given)maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncConversationCursorPageAsyncConversationCursorPage)AsyncPaginatormake_request_options)audit_log_list_params)AuditLogListResponse	AuditLogsAsyncAuditLogsc                      \ rS rSrSr\S	S j5       r\S
S j5       r\\\\\\\\\SSS\	S.                           SS jjr
Srg)r      EList user actions and configuration changes within this organization.c                    [        U 5      $ z
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
)AuditLogsWithRawResponseselfs    c/home/rurouni/.local/lib/python3.13/site-packages/openai/resources/admin/organization/audit_logs.pywith_raw_responseAuditLogs.with_raw_response   s     (--    c                    [        U 5      $ 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
)AuditLogsWithStreamingResponser$   s    r&   with_streaming_response!AuditLogs.with_streaming_response%   s     .d33r)   Nactor_emails	actor_idsafterbeforeeffective_atevent_typeslimitproject_idsresource_idsextra_headersextra_query
extra_bodytimeoutc                   U R                  S[        [           [        U
UUU[	        UUUUUUUUU	S.	[
        R                  5      SS0S9[        S9$ a  
List user actions and configuration changes within this organization.

Args:
  actor_emails: Return only events performed by users with these emails.

  actor_ids: Return only events performed by these actors. Can be a user ID, a service
      account ID, or an api key tracking ID.

  after: A cursor for use in pagination. `after` is an object ID that defines your place
      in the list. For instance, if you make a list request and receive 100 objects,
      ending with obj_foo, your subsequent call can include after=obj_foo in order to
      fetch the next page of the list.

  before: A cursor for use in pagination. `before` is an object ID that defines your place
      in the list. For instance, if you make a list request and receive 100 objects,
      starting with obj_foo, your subsequent call can include before=obj_foo in order
      to fetch the previous page of the list.

  effective_at: Return only events whose `effective_at` (Unix seconds) is in this range.

  event_types: Return only events with a `type` in one of these values. For example,
      `project.created`. For all options, see the documentation for the
      [audit log object](https://platform.openai.com/docs/api-reference/audit-logs/object).

  limit: A limit on the number of objects to be returned. Limit can range between 1 and
      100, and the default is 20.

  project_ids: Return only events for these projects.

  resource_ids: Return only events performed on these targets. For example, a project ID
      updated.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
z/organization/audit_logs)	r0   r1   r2   r3   r4   r5   r6   r7   r8   admin_api_key_authT)r9   r:   r;   r<   querysecurity)pageoptionsmodel)_get_api_listr   r   r   r   r   AuditLogListParamsr%   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   s                 r&   listAuditLogs.list.   s    f !!&+,@A(+'%%(4%.!&"((4'2!&'2(4
 *<< /5'* '1 " 
 	
r)    )returnr#   )rK   r,   )r0   SequenceNotStr[str] | Omitr1   rL   r2   
str | Omitr3   rM   r4   (audit_log_list_params.EffectiveAt | Omitr5   Y  List[Literal['api_key.created', 'api_key.updated', 'api_key.deleted', 'certificate.created', 'certificate.updated', 'certificate.deleted', 'certificates.activated', 'certificates.deactivated', 'checkpoint.permission.created', 'checkpoint.permission.deleted', 'external_key.registered', 'external_key.removed', 'group.created', 'group.updated', 'group.deleted', 'invite.sent', 'invite.accepted', 'invite.deleted', 'ip_allowlist.created', 'ip_allowlist.updated', 'ip_allowlist.deleted', 'ip_allowlist.config.activated', 'ip_allowlist.config.deactivated', 'login.succeeded', 'login.failed', 'logout.succeeded', 'logout.failed', 'organization.updated', 'project.created', 'project.updated', 'project.archived', 'project.deleted', 'rate_limit.updated', 'rate_limit.deleted', 'resource.deleted', 'tunnel.created', 'tunnel.updated', 'tunnel.deleted', 'role.created', 'role.updated', 'role.deleted', 'role.assignment.created', 'role.assignment.deleted', 'scim.enabled', 'scim.disabled', 'service_account.created', 'service_account.updated', 'service_account.deleted', 'user.added', 'user.updated', 'user.deleted']] | Omitr6   
int | Omitr7   rL   r8   rL   r9   Headers | Noner:   Query | Noner;   Body | Noner<   'float | httpx.Timeout | None | NotGivenrK   z0SyncConversationCursorPage[AuditLogListResponse]__name__
__module____qualname____firstlineno____doc__r   r'   r-   r   r   rH   __static_attributes__rJ   r)   r&   r   r      s   O. . 4 4 4804 !AEp  2637 )-$("&;DQL
 1L
 .	L

 L
 L
 ?L
7L
@ AL
B 0CL
D 1EL
J &KL
L "ML
N  OL
P 9QL
R 
:SL
 L
r)   c                      \ rS rSrSr\S	S j5       r\S
S j5       r\\\\\\\\\SSS\	S.                           SS jjr
Srg)r      r    c                    [        U 5      $ r"   )AsyncAuditLogsWithRawResponser$   s    r&   r'    AsyncAuditLogs.with_raw_response   s     -T22r)   c                    [        U 5      $ r+   )#AsyncAuditLogsWithStreamingResponser$   s    r&   r-   &AsyncAuditLogs.with_streaming_response   s     3488r)   Nr/   c                   U R                  S[        [           [        U
UUU[	        UUUUUUUUU	S.	[
        R                  5      SS0S9[        S9$ r>   )rE   r   r   r   r   r   rF   rG   s                 r&   rH   AsyncAuditLogs.list   s    f !!&,-AB(+'%%(4%.!&"((4'2!&'2(4
 *<< /5'* '1 " 
 	
r)   rJ   )rK   r_   )rK   rb   )r0   rL   r1   rL   r2   rM   r3   rM   r4   rN   r5   rO   r6   rP   r7   rL   r8   rL   r9   rQ   r:   rR   r;   rS   r<   rT   rK   zWAsyncPaginator[AuditLogListResponse, AsyncConversationCursorPage[AuditLogListResponse]]rU   rJ   r)   r&   r   r      s   O3 3 9 9 4804 !AEp  2637 )-$("&;DQL
 1L
 .	L

 L
 L
 ?L
7L
@ AL
B 0CL
D 1EL
J &KL
L "ML
N  OL
P 9QL
R 
aSL
 L
r)   c                      \ rS rSrSS jrSrg)r#   ib  c                Z    Xl         [        R                  " UR                  5      U l        g N)_audit_logsr   to_raw_response_wrapperrH   r%   
audit_logss     r&   __init__!AuditLogsWithRawResponse.__init__c  s!    %$<<OO
	r)   ri   rH   Nrl   r   rK   NonerV   rW   rX   rY   rm   r[   rJ   r)   r&   r#   r#   b      
r)   r#   c                      \ rS rSrSS jrSrg)r_   ik  c                Z    Xl         [        R                  " UR                  5      U l        g rh   )ri   r   async_to_raw_response_wrapperrH   rk   s     r&   rm   &AsyncAuditLogsWithRawResponse.__init__l  s!    %$BBOO
	r)   ro   Nrl   r   rK   rq   rr   rJ   r)   r&   r_   r_   k  rs   r)   r_   c                      \ rS rSrSS jrSrg)r,   it  c                D    Xl         [        UR                  5      U l        g rh   )ri   r   rH   rk   s     r&   rm   'AuditLogsWithStreamingResponse.__init__u  s    %0OO
	r)   ro   Nrp   rr   rJ   r)   r&   r,   r,   t  rs   r)   r,   c                      \ rS rSrSS jrSrg)rb   i}  c                D    Xl         [        UR                  5      U l        g rh   )ri   r   rH   rk   s     r&   rm   ,AsyncAuditLogsWithStreamingResponse.__init__~  s    %6OO
	r)   ro   Nrx   rr   rJ   r)   r&   rb   rb   }  rs   r)   rb   )-
__future__r   typingr   typing_extensionsr   httpx r   _typesr   r	   r
   r   r   r   r   r   _utilsr   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   _base_clientr   r   types.admin.organizationr   0types.admin.organization.audit_log_list_responser   __all__r   r   r#   r_   r,   rb   rJ   r)   r&   <module>r      s    #  %  ! \ \ \ & ' ; Z R A > U(
)b
 b
Jb
% b
J
 

 

 

 
r)   