
    _j                      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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  SSKJ r 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.  SSK/J0r0  SSK1J2r2  SSK3J4r4  SSK5J6r6  SSK7J8r8  SSK9J: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      rAg)#    )annotations)List)LiteralN   )_legacy_response)BodyOmitQueryHeadersNotGivenSequenceNotStromit	not_given)maybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)make_request_options)	usage_costs_paramsusage_images_paramsusage_embeddings_paramsusage_completions_paramsusage_moderations_paramsusage_vector_stores_paramsusage_audio_speeches_params!usage_audio_transcriptions_params&usage_code_interpreter_sessions_params)UsageCostsResponse)UsageImagesResponse)UsageEmbeddingsResponse)UsageCompletionsResponse)UsageModerationsResponse)UsageVectorStoresResponse)UsageAudioSpeechesResponse) UsageAudioTranscriptionsResponse)$UsageCodeInterpreterSessionsResponseUsage
AsyncUsagec                     \ 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SS\S.                             SS jjr
\\\\\\SSS\S.
                       SS	 jjr\\\\\\\\\\SSS\S
.                               SS jjr\\\\\\\SSS\S.                         SS jjr\\\\\\\\\SSS\S.                             SS jjr\\\\\\\\\\\SSS\S.                                 SS jjr\\\\\\\\\SSS\S.                             SS jjr\\\\\\SSS\S.
                       SS jjrSrg)r*   )   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
)UsageWithRawResponseselfs    ^/home/rurouni/.local/lib/python3.13/site-packages/openai/resources/admin/organization/usage.pywith_raw_responseUsage.with_raw_response*   s     $D))    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
)UsageWithStreamingResponser1   s    r3   with_streaming_responseUsage.with_streaming_response4   s     *$//r6   Napi_key_idsbucket_widthend_timegroup_bylimitmodelspageproject_idsuser_idsextra_headersextra_query
extra_bodytimeoutc                   U R                  S[        UUUU[        UUUUUUUUU	U
S.
[        R                  5      SS0S9[
        S9$ )  
Get audio speeches usage details for the organization.

Args:
  start_time: Start time (Unix seconds) of the query time range, inclusive.

  api_key_ids: Return only usage for these API keys.

  bucket_width: Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
      supported, default to `1d`.

  end_time: End time (Unix seconds) of the query time range, exclusive.

  group_by: Group the usage data by the specified fields. Support fields include
      `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.

  limit: Specifies the number of buckets to return.

      - `bucket_width=1d`: default: 7, max: 31
      - `bucket_width=1h`: default: 24, max: 168
      - `bucket_width=1m`: default: 60, max: 1440

  models: Return only usage for these models.

  page: A cursor for use in pagination. Corresponding to the `next_page` field from the
      previous response.

  project_ids: Return only usage for these projects.

  user_ids: Return only usage for these users.

  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
"/organization/usage/audio_speeches

start_timer=   r>   r?   r@   rA   rB   rC   rD   rE   admin_api_key_authTrF   rG   rH   rI   querysecurityoptionscast_to)_getr   r   r   UsageAudioSpeechesParamsr'   r2   rN   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   s                  r3   audio_speechesUsage.audio_speeches=   sw    v yy0(+'%%&0'2(4$,$,!&"( $'2$, 0HH /5), /1  
 	
r6   c                   U R                  S[        UUUU[        UUUUUUUUU	U
S.
[        R                  5      SS0S9[
        S9$ )  
Get audio transcriptions usage details for the organization.

Args:
  start_time: Start time (Unix seconds) of the query time range, inclusive.

  api_key_ids: Return only usage for these API keys.

  bucket_width: Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
      supported, default to `1d`.

  end_time: End time (Unix seconds) of the query time range, exclusive.

  group_by: Group the usage data by the specified fields. Support fields include
      `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.

  limit: Specifies the number of buckets to return.

      - `bucket_width=1d`: default: 7, max: 31
      - `bucket_width=1h`: default: 24, max: 168
      - `bucket_width=1m`: default: 60, max: 1440

  models: Return only usage for these models.

  page: A cursor for use in pagination. Corresponding to the `next_page` field from the
      previous response.

  project_ids: Return only usage for these projects.

  user_ids: Return only usage for these users.

  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
(/organization/usage/audio_transcriptionsrM   rO   TrP   rS   )rV   r   r   r   UsageAudioTranscriptionsParamsr(   rX   s                  r3   audio_transcriptionsUsage.audio_transcriptions   sw    v yy6(+'%%&0'2(4$,$,!&"( $'2$, 6TT /5), 51  
 	
r6   
r>   r?   r@   rA   rC   rD   rF   rG   rH   rI   c                   U R                  S[        UU	U
U[        UUUUUUUS.[        R                  5      SS0S9[
        S9$ )%  
Get code interpreter sessions usage details for the organization.

Args:
  start_time: Start time (Unix seconds) of the query time range, inclusive.

  bucket_width: Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
      supported, default to `1d`.

  end_time: End time (Unix seconds) of the query time range, exclusive.

  group_by: Group the usage data by the specified fields. Support fields include
      `project_id`.

  limit: Specifies the number of buckets to return.

      - `bucket_width=1d`: default: 7, max: 31
      - `bucket_width=1h`: default: 24, max: 168
      - `bucket_width=1m`: default: 60, max: 1440

  page: A cursor for use in pagination. Corresponding to the `next_page` field from the
      previous response.

  project_ids: Return only usage for these projects.

  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
-/organization/usage/code_interpreter_sessionsrN   r>   r?   r@   rA   rC   rD   rO   TrP   rS   )rV   r   r   r    "UsageCodeInterpreterSessionsParamsr)   r2   rN   r>   r?   r@   rA   rC   rD   rF   rG   rH   rI   s               r3   code_interpreter_sessionsUsage.code_interpreter_sessions   sn    d yy;(+'%%&0(4$,$,!& $'2 ;]] /5#& 9+  
 	
r6   r=   batchr>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   c                   U R                  S[        UUUU[        UUUUUUUUU	U
US.[        R                  5      SS0S9[
        S9$ )|  
Get completions usage details for the organization.

Args:
  start_time: Start time (Unix seconds) of the query time range, inclusive.

  api_key_ids: Return only usage for these API keys.

  batch: If `true`, return batch jobs only. If `false`, return non-batch jobs only. By
      default, return both.

  bucket_width: Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
      supported, default to `1d`.

  end_time: End time (Unix seconds) of the query time range, exclusive.

  group_by: Group the usage data by the specified fields. Support fields include
      `project_id`, `user_id`, `api_key_id`, `model`, `batch`, `service_tier` or any
      combination of them.

  limit: Specifies the number of buckets to return.

      - `bucket_width=1d`: default: 7, max: 31
      - `bucket_width=1h`: default: 24, max: 168
      - `bucket_width=1m`: default: 60, max: 1440

  models: Return only usage for these models.

  page: A cursor for use in pagination. Corresponding to the `next_page` field from the
      previous response.

  project_ids: Return only usage for these projects.

  user_ids: Return only usage for these users.

  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
/organization/usage/completionsrN   r=   rk   r>   r?   r@   rA   rB   rC   rD   rE   rO   TrP   rS   )rV   r   r   r   UsageCompletionsParamsr$   r2   rN   r=   rk   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   s                   r3   completionsUsage.completions3  sz    @ yy-(+'%%&0'2!&(4$,$,!&"( $'2$, -CC  /5+. -3  
 	
r6   r=   r>   r?   r@   rA   rC   rD   rF   rG   rH   rI   c                   U R                  S[        U	U
UU[        UUUUUUUUS.[        R                  5      SS0S9[
        S9$ )  
Get costs details for the organization.

Args:
  start_time: Start time (Unix seconds) of the query time range, inclusive.

  api_key_ids: Return only costs for these API keys.

  bucket_width: Width of each time bucket in response. Currently only `1d` is supported, default
      to `1d`.

  end_time: End time (Unix seconds) of the query time range, exclusive.

  group_by: Group the costs by the specified fields. Support fields include `project_id`,
      `line_item`, `api_key_id` and any combination of them.

  limit: A limit on the number of buckets to be returned. Limit can range between 1 and
      180, and the default is 7.

  page: A cursor for use in pagination. Corresponding to the `next_page` field from the
      previous response.

  project_ids: Return only costs for these projects.

  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
/organization/costsrN   r=   r>   r?   r@   rA   rC   rD   rO   TrP   rS   )rV   r   r   r   UsageCostsParamsr!   r2   rN   r=   r>   r?   r@   rA   rC   rD   rF   rG   rH   rI   s                r3   costsUsage.costs  sq    d yy!(+'%%&0'2(4$,$,!& $'2	 '77 /5%( '-  
 	
r6   c                   U R                  S[        UUUU[        UUUUUUUUU	U
S.
[        R                  5      SS0S9[
        S9$ )  
Get embeddings usage details for the organization.

Args:
  start_time: Start time (Unix seconds) of the query time range, inclusive.

  api_key_ids: Return only usage for these API keys.

  bucket_width: Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
      supported, default to `1d`.

  end_time: End time (Unix seconds) of the query time range, exclusive.

  group_by: Group the usage data by the specified fields. Support fields include
      `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.

  limit: Specifies the number of buckets to return.

      - `bucket_width=1d`: default: 7, max: 31
      - `bucket_width=1h`: default: 24, max: 168
      - `bucket_width=1m`: default: 60, max: 1440

  models: Return only usage for these models.

  page: A cursor for use in pagination. Corresponding to the `next_page` field from the
      previous response.

  project_ids: Return only usage for these projects.

  user_ids: Return only usage for these users.

  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
/organization/usage/embeddingsrM   rO   TrP   rS   )rV   r   r   r   UsageEmbeddingsParamsr#   rX   s                  r3   
embeddingsUsage.embeddings  sw    v yy,(+'%%&0'2(4$,$,!&"( $'2$, ,AA /5), ,1  
 	
r6   r=   r>   r?   r@   rA   rB   rC   rD   sizessourcesrE   rF   rG   rH   rI   c                   U R                  S[        UUUU[        UUUUUUUUU	U
UUS.[        R                  5      SS0S9[
        S9$ )>  
Get images usage details for the organization.

Args:
  start_time: Start time (Unix seconds) of the query time range, inclusive.

  api_key_ids: Return only usage for these API keys.

  bucket_width: Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
      supported, default to `1d`.

  end_time: End time (Unix seconds) of the query time range, exclusive.

  group_by: Group the usage data by the specified fields. Support fields include
      `project_id`, `user_id`, `api_key_id`, `model`, `size`, `source` or any
      combination of them.

  limit: Specifies the number of buckets to return.

      - `bucket_width=1d`: default: 7, max: 31
      - `bucket_width=1h`: default: 24, max: 168
      - `bucket_width=1m`: default: 60, max: 1440

  models: Return only usage for these models.

  page: A cursor for use in pagination. Corresponding to the `next_page` field from the
      previous response.

  project_ids: Return only usage for these projects.

  sizes: Return only usages for these image sizes. Possible values are `256x256`,
      `512x512`, `1024x1024`, `1792x1792`, `1024x1792` or any combination of them.

  sources: Return only usages for these sources. Possible values are `image.generation`,
      `image.edit`, `image.variation` or any combination of them.

  user_ids: Return only usage for these users.

  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
/organization/usage/imagesrN   r=   r>   r?   r@   rA   rB   rC   rD   r   r   rE   rO   TrP   rS   )rV   r   r   r   UsageImagesParamsr"   r2   rN   r=   r>   r?   r@   rA   rB   rC   rD   r   r   rE   rF   rG   rH   rI   s                    r3   imagesUsage.images0  s}    H yy((+'%%&0'2(4$,$,!&"( $'2!&#*$, (99" /5-0 (5  
 	
r6   c                   U R                  S[        UUUU[        UUUUUUUUU	U
S.
[        R                  5      SS0S9[
        S9$ )  
Get moderations usage details for the organization.

Args:
  start_time: Start time (Unix seconds) of the query time range, inclusive.

  api_key_ids: Return only usage for these API keys.

  bucket_width: Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
      supported, default to `1d`.

  end_time: End time (Unix seconds) of the query time range, exclusive.

  group_by: Group the usage data by the specified fields. Support fields include
      `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.

  limit: Specifies the number of buckets to return.

      - `bucket_width=1d`: default: 7, max: 31
      - `bucket_width=1h`: default: 24, max: 168
      - `bucket_width=1m`: default: 60, max: 1440

  models: Return only usage for these models.

  page: A cursor for use in pagination. Corresponding to the `next_page` field from the
      previous response.

  project_ids: Return only usage for these projects.

  user_ids: Return only usage for these users.

  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
/organization/usage/moderationsrM   rO   TrP   rS   )rV   r   r   r   UsageModerationsParamsr%   rX   s                  r3   moderationsUsage.moderations  sw    v yy-(+'%%&0'2(4$,$,!&"( $'2$, -CC /5), -1  
 	
r6   c                   U R                  S[        UU	U
U[        UUUUUUUS.[        R                  5      SS0S9[
        S9$ )  
Get vector stores usage details for the organization.

Args:
  start_time: Start time (Unix seconds) of the query time range, inclusive.

  bucket_width: Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
      supported, default to `1d`.

  end_time: End time (Unix seconds) of the query time range, exclusive.

  group_by: Group the usage data by the specified fields. Support fields include
      `project_id`.

  limit: Specifies the number of buckets to return.

      - `bucket_width=1d`: default: 7, max: 31
      - `bucket_width=1h`: default: 24, max: 168
      - `bucket_width=1m`: default: 60, max: 1440

  page: A cursor for use in pagination. Corresponding to the `next_page` field from the
      previous response.

  project_ids: Return only usage for these projects.

  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
!/organization/usage/vector_storesre   rO   TrP   rS   )rV   r   r   r   UsageVectorStoresParamsr&   rg   s               r3   vector_storesUsage.vector_stores  sn    d yy/(+'%%&0(4$,$,!& $'2 /FF /5#& .+  
 	
r6    )returnr0   )r   r9   rN   intr=   SequenceNotStr[str] | Omitr>    Literal['1m', '1h', '1d'] | Omitr?   
int | Omitr@   DList[Literal['project_id', 'user_id', 'api_key_id', 'model']] | OmitrA   r   rB   r   rC   
str | OmitrD   r   rE   r   rF   Headers | NonerG   Query | NonerH   Body | NonerI   'float | httpx.Timeout | None | NotGivenr   r'   rN   r   r=   r   r>   r   r?   r   r@   r   rA   r   rB   r   rC   r   rD   r   rE   r   rF   r   rG   r   rH   r   rI   r   r   r(   rN   r   r>   r   r?   r   r@   "List[Literal['project_id']] | OmitrA   r   rC   r   rD   r   rF   r   rG   r   rH   r   rI   r   r   r)    rN   r   r=   r   rk   zbool | Omitr>   r   r?   r   r@   z]List[Literal['project_id', 'user_id', 'api_key_id', 'model', 'batch', 'service_tier']] | OmitrA   r   rB   r   rC   r   rD   r   rE   r   rF   r   rG   r   rH   r   rI   r   r   r$   rN   r   r=   r   r>   zLiteral['1d'] | Omitr?   r   r@   z=List[Literal['project_id', 'line_item', 'api_key_id']] | OmitrA   r   rC   r   rD   r   rF   r   rG   r   rH   r   rI   r   r   r!   rN   r   r=   r   r>   r   r?   r   r@   r   rA   r   rB   r   rC   r   rD   r   rE   r   rF   r   rG   r   rH   r   rI   r   r   r#   "rN   r   r=   r   r>   r   r?   r   r@   zVList[Literal['project_id', 'user_id', 'api_key_id', 'model', 'size', 'source']] | OmitrA   r   rB   r   rC   r   rD   r   r   zQList[Literal['256x256', '512x512', '1024x1024', '1792x1792', '1024x1792']] | Omitr   zIList[Literal['image.generation', 'image.edit', 'image.variation']] | OmitrE   r   rF   r   rG   r   rH   r   rI   r   r   r"   rN   r   r=   r   r>   r   r?   r   r@   r   rA   r   rB   r   rC   r   rD   r   rE   r   rF   r   rG   r   rH   r   rI   r   r   r%   rN   r   r>   r   r?   r   r@   r   rA   r   rC   r   rD   r   rF   r   rG   r   rH   r   rI   r   r   r&   __name__
__module____qualname____firstlineno__r   r4   r:   r   r   rY   r_   rh   rr   r{   r   r   r   r   __static_attributes__r   r6   r3   r*   r*   )   s   * * 0 0 379=#Y] -126/3 )-$("&;D%T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
$'T
t 379=#Y] -126/3 )-$("&;D%T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
*'T
t :>#7; 26 )-$("&;DH
 H
 7	H

 H
 5H
 H
 H
 0H
 &H
 "H
  H
 9H
  
.!H
\ 37!9=#rv -126/3 )-$("&;D'Z
 Z
 0	Z

 Z
 7Z
 Z
 pZ
 Z
 +Z
 Z
 0Z
 -Z
  &!Z
" "#Z
$  %Z
& 9'Z
( 
")Z
@ 37-1#RV 26 )-$("&;D!I
 I
 0	I

 +I
 I
 PI
 I
 I
 0I
 &I
 "I
  I
  9!I
" 
#I
^ 379=#Y] -126/3 )-$("&;D%T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
!'T
t 379=#ko -126cg]a/3 )-$("&;D)_
 _
 0	_

 7_
 _
 i_
 _
 +_
 _
 0_
 a_
 [_
 -_
" &#_
$ "%_
&  '_
( 9)_
* 
+_
J 379=#Y] -126/3 )-$("&;D%T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
"'T
t :>#7; 26 )-$("&;DH
 H
 7	H

 H
 5H
 H
 H
 0H
 &H
 "H
  H
 9H
  
#!H
 H
r6   c                     \ 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SS\S.                             SS jjr
\\\\\\SSS\S.
                       SS	 jjr\\\\\\\\\\SSS\S
.                               SS jjr\\\\\\\SSS\S.                         SS jjr\\\\\\\\\SSS\S.                             SS jjr\\\\\\\\\\\SSS\S.                                 SS jjr\\\\\\\\\SSS\S.                             SS jjr\\\\\\SSS\S.
                       SS jjrSrg)r+   i2  c                    [        U 5      $ r/   )AsyncUsageWithRawResponser1   s    r3   r4   AsyncUsage.with_raw_response3  s     )..r6   c                    [        U 5      $ r8   )AsyncUsageWithStreamingResponser1   s    r3   r:   "AsyncUsage.with_streaming_response=  s     /t44r6   Nr<   c                  #    U R                  S[        UUUU[        UUUUUUUUU	U
S.
[        R                  5      I Sh  vN SS0S9[
        S9I Sh  vN $  N N7f)rK   rL   rM   NrO   TrP   rS   )rV   r   r   r   rW   r'   rX   s                  r3   rY   AsyncUsage.audio_speechesF  s     v YY0(+'%1&0'2(4$,$,!&"( $'2$, 0HH  /5), /1  
 
 	

#   >A AAAAAc                  #    U R                  S[        UUUU[        UUUUUUUUU	U
S.
[        R                  5      I Sh  vN SS0S9[
        S9I Sh  vN $  N N7f)r\   r]   rM   NrO   TrP   rS   )rV   r   r   r   r^   r(   rX   s                  r3   r_   AsyncUsage.audio_transcriptions  s     v YY6(+'%1&0'2(4$,$,!&"( $'2$, 6TT  /5), 51  
 
 	

r   ra   c                  #    U R                  S[        UU	U
U[        UUUUUUUS.[        R                  5      I Sh  vN SS0S9[
        S9I Sh  vN $  N N7f)rc   rd   re   NrO   TrP   rS   )rV   r   r   r    rf   r)   rg   s               r3   rh   $AsyncUsage.code_interpreter_sessions  s     d YY;(+'%1&0(4$,$,!& $'2 ;]]  /5#& 9+  
 
 	

!   ;AAAAAArj   c                  #    U R                  S[        UUUU[        UUUUUUUUU	U
US.[        R                  5      I Sh  vN SS0S9[
        S9I Sh  vN $  N N7f)rm   rn   ro   NrO   TrP   rS   )rV   r   r   r   rp   r$   rq   s                   r3   rr   AsyncUsage.completions<  s     @ YY-(+'%1&0'2!&(4$,$,!&"( $'2$, -CC   /5+. -3  
 
 	

s#   ?AAAAAArt   c                  #    U R                  S[        U	U
UU[        UUUUUUUUS.[        R                  5      I Sh  vN SS0S9[
        S9I Sh  vN $  N N7f)rv   rw   rx   NrO   TrP   rS   )rV   r   r   r   ry   r!   rz   s                r3   r{   AsyncUsage.costs  s     d YY!(+'%1&0'2(4$,$,!& $'2	 '77  /5%( '-  
 
 	

s!   <AAAAAAc                  #    U R                  S[        UUUU[        UUUUUUUUU	U
S.
[        R                  5      I Sh  vN SS0S9[
        S9I Sh  vN $  N N7f)r~   r   rM   NrO   TrP   rS   )rV   r   r   r   r   r#   rX   s                  r3   r   AsyncUsage.embeddings  s     v YY,(+'%1&0'2(4$,$,!&"( $'2$, ,AA  /5), ,1  
 
 	

r   r   c                  #    U R                  S[        UUUU[        UUUUUUUUU	U
UUS.[        R                  5      I Sh  vN SS0S9[
        S9I Sh  vN $  N N7f)r   r   r   NrO   TrP   rS   )rV   r   r   r   r   r"   r   s                    r3   r   AsyncUsage.images9  s     H YY((+'%1&0'2(4$,$,!&"( $'2!&#*$, (99 " /5-0 (5  
 
 	

s$   A AAAAAAc                  #    U R                  S[        UUUU[        UUUUUUUUU	U
S.
[        R                  5      I Sh  vN SS0S9[
        S9I Sh  vN $  N N7f)r   r   rM   NrO   TrP   rS   )rV   r   r   r   r   r%   rX   s                  r3   r   AsyncUsage.moderations  s     v YY-(+'%1&0'2(4$,$,!&"( $'2$, -CC  /5), -1  
 
 	

r   c                  #    U R                  S[        UU	U
U[        UUUUUUUS.[        R                  5      I Sh  vN SS0S9[
        S9I Sh  vN $  N N7f)r   r   re   NrO   TrP   rS   )rV   r   r   r   r   r&   rg   s               r3   r   AsyncUsage.vector_stores  s     d YY/(+'%1&0(4$,$,!& $'2 /FF  /5#& .+  
 
 	

r   r   )r   r   )r   r   r   r   r   r   r   r   r   r   r   r   r   r6   r3   r+   r+   2  s   / / 5 5 379=#Y] -126/3 )-$("&;D%T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
$'T
t 379=#Y] -126/3 )-$("&;D%T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
*'T
t :>#7; 26 )-$("&;DH
 H
 7	H

 H
 5H
 H
 H
 0H
 &H
 "H
  H
 9H
  
.!H
\ 37!9=#rv -126/3 )-$("&;D'Z
 Z
 0	Z

 Z
 7Z
 Z
 pZ
 Z
 +Z
 Z
 0Z
 -Z
  &!Z
" "#Z
$  %Z
& 9'Z
( 
")Z
@ 37-1#RV 26 )-$("&;D!I
 I
 0	I

 +I
 I
 PI
 I
 I
 0I
 &I
 "I
  I
  9!I
" 
#I
^ 379=#Y] -126/3 )-$("&;D%T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
!'T
t 379=#ko -126cg]a/3 )-$("&;D)_
 _
 0	_

 7_
 _
 i_
 _
 +_
 _
 0_
 a_
 [_
 -_
" &#_
$ "%_
&  '_
( 9)_
* 
+_
J 379=#Y] -126/3 )-$("&;D%T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
"'T
t :>#7; 26 )-$("&;DH
 H
 7	H

 H
 5H
 H
 H
 0H
 &H
 "H
  H
 9H
  
#!H
 H
r6   c                      \ rS rSrSS jrSrg)r0   i;  c                   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l	        [        R                  " UR                  5      U l
        [        R                  " UR                  5      U l        g N)_usager   to_raw_response_wrapperrY   r_   rh   rr   r{   r   r   r   r   r2   usages     r3   __init__UsageWithRawResponse.__init__<  s   .FF  
 %5$L$L&&%
! *:)Q)Q++*
& ,CC
 &==KK

 +BB
 '>>LL
 ,CC
 .EE
r6   
r   rY   r_   rh   rr   r{   r   r   r   r   Nr   r*   r   Noner   r   r   r   r   r   r   r6   r3   r0   r0   ;      
r6   r0   c                      \ rS rSrSS jrSrg)r   i\  c                   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l	        [        R                  " UR                  5      U l
        [        R                  " UR                  5      U l        g r   )r   r   async_to_raw_response_wrapperrY   r_   rh   rr   r{   r   r   r   r   r   s     r3   r   "AsyncUsageWithRawResponse.__init__]  s   .LL  
 %5$R$R&&%
! *:)W)W++*
& ,II
 &CCKK

 +HH
 'DDLL
 ,II
 .KK
r6   r   Nr   r+   r   r   r   r   r6   r3   r   r   \  r   r6   r   c                      \ rS rSrSS jrSrg)r9   i}  c                   Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l	        [        UR                  5      U l
        g r   )r   r   rY   r_   rh   rr   r{   r   r   r   r   r   s     r3   r   #UsageWithStreamingResponse.__init__~  s    :  
 %A&&%
! *F++*
& 8
 2KK

 7
 3LL
 8
 :
r6   r   Nr   r   r   r6   r3   r9   r9   }  r   r6   r9   c                      \ rS rSrSS jrSrg)r   i  c                   Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l	        [        UR                  5      U l
        g r   )r   r   rY   r_   rh   rr   r{   r   r   r   r   r   s     r3   r   (AsyncUsageWithStreamingResponse.__init__  s    @  
 %G&&%
! *L++*
& >
 8KK

 =
 9LL
 >
 @
r6   r   Nr   r   r   r6   r3   r   r     r   r6   r   )B
__future__r   typingr   typing_extensionsr   httpx r   _typesr   r	   r
   r   r   r   r   r   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   _base_clientr   types.admin.organizationr   r   r   r   r   r   r   r   r    -types.admin.organization.usage_costs_responser!   .types.admin.organization.usage_images_responser"   2types.admin.organization.usage_embeddings_responser#   3types.admin.organization.usage_completions_responser$   3types.admin.organization.usage_moderations_responser%   5types.admin.organization.usage_vector_stores_responser&   6types.admin.organization.usage_audio_speeches_responser'   <types.admin.organization.usage_audio_transcriptions_responser(   Atypes.admin.organization.usage_code_interpreter_sessions_responser)   __all__r*   r+   r0   r   r9   r   r   r6   r3   <module>r      s    #  %  ! \ \ \ = ' ; Z 1
 
 
 Q R Z \ \ _ a m vL
!F
O F
RF
! F
R
 
B
 
B
 
B
 
r6   