+
    ~jQ                      ^ RI Ht ^ RIHt ^ RIHt ^ RIt^RIHt ^RI	H
t
HtHtHtHtHtHtHt ^RIHtHt ^RIHt ^R	IHtHt ^R
IHtHt ^RIHt ^RIH t H!t!H"t"H#t#H$t$H%t%H&t&H't'H(t(H)t)H*t* ^RI+H,t, ^RI-H.t. ^RI/H0t0 ^RI1H2t2 ^RI3H4t4 ^RI5H6t6 ^RI7H8t8 ^RI9H:t: ^RI;H<t< ^RI=H>t> ^RI?H@t@ RR.tA ! R R]4      tB ! R R]4      tC ! R R4      tD ! R R4      tE ! R  R!4      tF ! R" R#4      tGR# )$    )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_web_search_calls_paramsusage_file_search_calls_params!usage_audio_transcriptions_params&usage_code_interpreter_sessions_params)UsageCostsResponse)UsageImagesResponse)UsageEmbeddingsResponse)UsageCompletionsResponse)UsageModerationsResponse)UsageVectorStoresResponse)UsageAudioSpeechesResponse)UsageWebSearchCallsResponse)UsageFileSearchCallsResponse) UsageAudioTranscriptionsResponse)$UsageCodeInterpreterSessionsResponseUsage
AsyncUsagec                     ] tR t^-t]R R l4       t]R R l4       tR]R]R]R]R	]R
]R]R]R]RRRRRRR]/R R llt	R]R]R]R]R	]R
]R]R]R]RRRRRRR]/R R llt
R]R]R]R	]R]R]RRRRRRR]/
R R lltR]R]R]R]R]R	]R
]R]R]R]RRRRRRR]/R R lltR]R]R]R]R	]R]R]RRRRRRR]/R R lltR]R]R]R]R	]R
]R]R]R]RRRRRRR]/R R lltR]R]R]R]R	]R]R]R]R ]RRRRRRR]/R! R" lltR]R]R]R]R	]R
]R]R]R#]R$]R]RRRRRRR]/R% R& lltR]R]R]R]R	]R
]R]R]R]RRRRRRR]/R' R( lltR]R]R]R	]R]R]RRRRRRR]/
R) R* lltR]R]R+]R]R]R	]R
]R]R]R]RRRRRRR]/R, R- lltR.tR# )/r-   c                   V ^8  d   QhRR/# )   returnUsageWithRawResponse )formats   "~/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/openai/resources/admin/organization/usage.py__annotate__Usage.__annotate__/   s     * *#7 *    c                    \        V 4      # 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
)r3   selfs   &r6   with_raw_responseUsage.with_raw_response.   s     $D))r9   c                   V ^8  d   QhRR/# )r1   r2   UsageWithStreamingResponser4   )r5   s   "r6   r7   r8   9   s     0 0)C 0r9   c                    \        V 4      # 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
)rA   r<   s   &r6   with_streaming_responseUsage.with_streaming_response8   s     *$//r9   api_key_idsbucket_widthend_timegroup_bylimitmodelspageproject_idsuser_idsextra_headersNextra_query
extra_bodytimeoutc               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# r1   
start_timeintrF   SequenceNotStr[str] | OmitrG    Literal['1m', '1h', '1d'] | OmitrH   
int | OmitrI   DList[Literal['project_id', 'user_id', 'api_key_id', 'model']] | OmitrJ   rK   rL   
str | OmitrM   rN   rO   Headers | NonerP   Query | NonerQ   Body | NonerR   'float | httpx.Timeout | None | NotGivenr2   r(   r4   )r5   s   "r6   r7   r8   A        T
 T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
$'T
r9   c                   V P                  R\        VVVV\        RVRVRVRVRVRVRVR	VR
V	RV
/
\        P                  4      RR/R7      \
        R7      # )  
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_speechesrU   rF   rG   rH   rI   rJ   rK   rL   rM   rN   admin_api_key_authTrO   rP   rQ   rR   querysecurityoptionscast_to)_getr   r   r   UsageAudioSpeechesParamsr(   r=   rU   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   s   &$$$$$$$$$$$$$$r6   audio_speechesUsage.audio_speechesA   s    v yy0(+'%%$j%{&"H"H &%{"H 0HH /5), /1  
 	
r9   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# r1   rU   rV   rF   rW   rG   rX   rH   rY   rI   rZ   rJ   rK   rL   r[   rM   rN   rO   r\   rP   r]   rQ   r^   rR   r_   r2   r+   r4   )r5   s   "r6   r7   r8           T
 T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
*'T
r9   c                   V P                  R\        VVVV\        RVRVRVRVRVRVRVR	VR
V	RV
/
\        P                  4      RR/R7      \
        R7      # )  
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_transcriptionsrU   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rd   Tre   rh   )rk   r   r   r    UsageAudioTranscriptionsParamsr+   rm   s   &$$$$$$$$$$$$$$r6   audio_transcriptionsUsage.audio_transcriptions   s    v yy6(+'%%$j%{&"H"H &%{"H 6TT /5), 51  
 	
r9   c               H    V ^8  d   QhRRRRRRRRR	RR
RRRRRRRRRRRRR/# r1   rU   rV   rG   rX   rH   rY   rI   "List[Literal['project_id']] | OmitrJ   rL   r[   rM   rW   rO   r\   rP   r]   rQ   r^   rR   r_   r2   r,   r4   )r5   s   "r6   r7   r8           H
 H
 H
 7	H

 H
 5H
 H
 H
 0H
 &H
 "H
  H
 9H
  
.!H
r9   c                   V P                  R\        VV	V
V\        RVRVRVRVRVRVRV/\        P                  4      R	R
/R7      \
        R7      # )%  
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_sessionsrU   rG   rH   rI   rJ   rL   rM   rd   Tre   rh   )rk   r   r   r!   "UsageCodeInterpreterSessionsParamsr,   r=   rU   rG   rH   rI   rJ   rL   rM   rO   rP   rQ   rR   s   &$$$$$$$$$$$r6   code_interpreter_sessionsUsage.code_interpreter_sessions   s|    d yy;(+'%%$j&"H"H%{ ;]] /5#& 9+  
 	
r9   batchc                X    V ^8  d   QhRRRRRRRRR	R
RRRR
RRRRRRRRRRRRRRRRRR/# r1   rU   rV   rF   rW   r   zbool | OmitrG   rX   rH   rY   rI   z]List[Literal['project_id', 'user_id', 'api_key_id', 'model', 'batch', 'service_tier']] | OmitrJ   rK   rL   r[   rM   rN   rO   r\   rP   r]   rQ   r^   rR   r_   r2   r%   r4   )r5   s   "r6   r7   r8   7       Z
 Z
 Z
 0	Z

 Z
 7Z
 Z
 pZ
 Z
 +Z
 Z
 0Z
 -Z
  &!Z
" "#Z
$  %Z
& 9'Z
( 
")Z
r9   c          !         V P                  R\        VVVV\        RVRVRVRVRVRVRVR	VR
V	RV
RV/\        P                  4      RR/R7      \
        R7      # )|  
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/completionsrU   rF   r   rG   rH   rI   rJ   rK   rL   rM   rN   rd   Tre   rh   )rk   r   r   r   UsageCompletionsParamsr%   r=   rU   rF   r   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   s   &$$$$$$$$$$$$$$$r6   completionsUsage.completions7  s    @ yy-(+'%%$j%{&"H"H &%{"H -CC  /5+. -3  
 	
r9   c               L    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRR/# r1   rU   rV   rF   rW   rG   zLiteral['1d'] | OmitrH   rY   rI   z=List[Literal['project_id', 'line_item', 'api_key_id']] | OmitrJ   rL   r[   rM   rO   r\   rP   r]   rQ   r^   rR   r_   r2   r"   r4   )r5   s   "r6   r7   r8          I
 I
 I
 0	I

 +I
 I
 PI
 I
 I
 0I
 &I
 "I
  I
  9!I
" 
#I
r9   c                   V P                  R\        V	V
VV\        RVRVRVRVRVRVRVR	V/\        P                  4      R
R/R7      \
        R7      # )  
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/costsrU   rF   rG   rH   rI   rJ   rL   rM   rd   Tre   rh   )rk   r   r   r   UsageCostsParamsr"   r=   rU   rF   rG   rH   rI   rJ   rL   rM   rO   rP   rQ   rR   s   &$$$$$$$$$$$$r6   costsUsage.costs  s    d yy!(+'%%$j%{&"H"H%{	 '77 /5%( '-  
 	
r9   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# r1   rU   rV   rF   rW   rG   rX   rH   rY   rI   rZ   rJ   rK   rL   r[   rM   rN   rO   r\   rP   r]   rQ   r^   rR   r_   r2   r$   r4   )r5   s   "r6   r7   r8          T
 T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
!'T
r9   c                   V P                  R\        VVVV\        RVRVRVRVRVRVRVR	VR
V	RV
/
\        P                  4      RR/R7      \
        R7      # )  
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/embeddingsrU   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rd   Tre   rh   )rk   r   r   r   UsageEmbeddingsParamsr$   rm   s   &$$$$$$$$$$$$$$r6   
embeddingsUsage.embeddings  s    v yy,(+'%%$j%{&"H"H &%{"H ,AA /5), ,1  
 	
r9   vector_store_idsc               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# r1   rU   rV   rF   rW   rG   rX   rH   rY   rI   zNList[Literal['project_id', 'user_id', 'api_key_id', 'vector_store_id']] | OmitrJ   rL   r[   rM   rN   r   rO   r\   rP   r]   rQ   r^   rR   r_   r2   r*   r4   )r5   s   "r6   r7   r8   4       U
 U
 U
 0	U

 7U
 U
 aU
 U
 U
 0U
 -U
 5U
 &U
  "!U
"  #U
$ 9%U
& 
&'U
r9   c                   V P                  R\        VVVV\        RVRVRVRVRVRVRVR	VR
V	RV
/
\        P                  4      RR/R7      \
        R7      # )  
Get file search calls 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`, `vector_store_id` 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

  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.

  vector_store_ids: Return only usage for these vector stores.

  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/file_search_callsrU   rF   rG   rH   rI   rJ   rL   rM   rN   r   rd   Tre   rh   )rk   r   r   r   UsageFileSearchCallsParamsr*   r=   rU   rF   rG   rH   rI   rJ   rL   rM   rN   r   rO   rP   rQ   rR   s   &$$$$$$$$$$$$$$r6   file_search_callsUsage.file_search_calls4  s    x yy3(+'%%$j%{&"H"H%{"H*,< 3MM /5), 11  
 	
r9   sizessourcesc          "     \    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRRRRRR/# r1   rU   rV   rF   rW   rG   rX   rH   rY   rI   zVList[Literal['project_id', 'user_id', 'api_key_id', 'model', 'size', 'source']] | OmitrJ   rK   rL   r[   rM   r   zQList[Literal['256x256', '512x512', '1024x1024', '1792x1792', '1024x1792']] | Omitr   zIList[Literal['image.generation', 'image.edit', 'image.variation']] | OmitrN   rO   r\   rP   r]   rQ   r^   rR   r_   r2   r#   r4   )r5   s   "r6   r7   r8          _
 _
 _
 0	_

 7_
 _
 i_
 _
 +_
 _
 0_
 a_
 [_
 -_
" &#_
$ "%_
&  '_
( 9)_
* 
+_
r9   c          #         V P                  R\        VVVV\        RVRVRVRVRVRVRVR	VR
V	RV
RVRV/\        P                  4      RR/R7      \
        R7      # )>  
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/imagesrU   rF   rG   rH   rI   rJ   rK   rL   rM   r   r   rN   rd   Tre   rh   )rk   r   r   r   UsageImagesParamsr#   r=   rU   rF   rG   rH   rI   rJ   rK   rL   rM   r   r   rN   rO   rP   rQ   rR   s   &$$$$$$$$$$$$$$$$r6   imagesUsage.images  s    H yy((+'%%$j%{&"H"H &%{!7"H (99" /5-0 (5  
 	
r9   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# r1   rU   rV   rF   rW   rG   rX   rH   rY   rI   rZ   rJ   rK   rL   r[   rM   rN   rO   r\   rP   r]   rQ   r^   rR   r_   r2   r&   r4   )r5   s   "r6   r7   r8          T
 T
 T
 0	T

 7T
 T
 WT
 T
 +T
 T
 0T
 -T
 &T
  "!T
"  #T
$ 9%T
& 
"'T
r9   c                   V P                  R\        VVVV\        RVRVRVRVRVRVRVR	VR
V	RV
/
\        P                  4      RR/R7      \
        R7      # )  
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/moderationsrU   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rd   Tre   rh   )rk   r   r   r   UsageModerationsParamsr&   rm   s   &$$$$$$$$$$$$$$r6   moderationsUsage.moderations  s    v yy-(+'%%$j%{&"H"H &%{"H -CC /5), -1  
 	
r9   c               H    V ^8  d   QhRRRRRRRRR	RR
RRRRRRRRRRRRR/# r1   rU   rV   rG   rX   rH   rY   rI   r{   rJ   rL   r[   rM   rW   rO   r\   rP   r]   rQ   r^   rR   r_   r2   r'   r4   )r5   s   "r6   r7   r8   B       H
 H
 H
 7	H

 H
 5H
 H
 H
 0H
 &H
 "H
  H
 9H
  
#!H
r9   c                   V P                  R\        VV	V
V\        RVRVRVRVRVRVRV/\        P                  4      R	R
/R7      \
        R7      # )  
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_storesrU   rG   rH   rI   rJ   rL   rM   rd   Tre   rh   )rk   r   r   r   UsageVectorStoresParamsr'   r   s   &$$$$$$$$$$$r6   vector_storesUsage.vector_storesB  s|    d yy/(+'%%$j&"H"H%{ /FF /5#& .+  
 	
r9   context_levelsc                X    V ^8  d   QhRRRRRRRRR	R
RRRR
RRRRRRRRRRRRRRRRRR/# r1   rU   rV   rF   rW   rG   rX   r   z-List[Literal['low', 'medium', 'high']] | OmitrH   rY   rI   zUList[Literal['project_id', 'user_id', 'api_key_id', 'model', 'context_level']] | OmitrJ   rK   rL   r[   rM   rN   rO   r\   rP   r]   rQ   r^   rR   r_   r2   r)   r4   )r5   s   "r6   r7   r8          Y
 Y
 Y
 0	Y

 7Y
 FY
 Y
 hY
 Y
 +Y
 Y
 0Y
 -Y
  &!Y
" "#Y
$  %Y
& 9'Y
( 
%)Y
r9   c          !         V P                  R\        VVVV\        RVRVRVRVRVRVRVR	VR
V	RV
RV/\        P                  4      RR/R7      \
        R7      # )O  
Get web search calls 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`.

  context_levels: Return only web search usage for these context levels.

  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`, `context_level` 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/web_search_callsrU   rF   rG   r   rH   rI   rJ   rK   rL   rM   rN   rd   Tre   rh   )rk   r   r   r   UsageWebSearchCallsParamsr)   r=   rU   rF   rG   r   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   s   &$$$$$$$$$$$$$$$r6   web_search_callsUsage.web_search_calls  s    ~ yy2(+'%%$j%{&(."H"H &%{"H 2KK  /5+. 03  
 	
r9   r4   __name__
__module____qualname____firstlineno__r   r>   rD   r   r   rn   rw   r   r   r   r   r   r   r   r   r   __static_attributes__r4   r9   r6   r-   r-   -   s   * * 0 0T
 37	T

 :>T
  $T
 Z^T
 !T
 .2T
  T
 37T
 04T
 )-T
  %)!T
" #'#T
$ <E%T
lT
 37	T

 :>T
  $T
 Z^T
 !T
 .2T
  T
 37T
 04T
 )-T
  %)!T
" #'#T
$ <E%T
lH
 :>	H

  $H
 8<H
 !H
  H
 37H
 )-H
 %)H
 #'H
 <EH
TZ
 37	Z

 "Z
 :>Z
  $Z
 swZ
 !Z
 .2Z
  Z
 37Z
 04Z
  )-!Z
" %)#Z
$ #'%Z
& <E'Z
xI
 37	I

 .2I
  $I
 SWI
 !I
  I
 37I
 )-I
 %)I
 #'I
  <E!I
VT
 37	T

 :>T
  $T
 Z^T
 !T
 .2T
  T
 37T
 04T
 )-T
  %)!T
" #'#T
$ <E%T
lU
 37	U

 :>U
  $U
 dhU
 !U
  U
 37U
 04U
 8<U
 )-U
  %)!U
" #'#U
$ <E%U
n_
 37	_

 :>_
  $_
 lp_
 !_
 .2_
  _
 37_
 dh_
 ^b_
 04_
" )-#_
$ %)%_
& #''_
( <E)_
BT
 37	T

 :>T
  $T
 Z^T
 !T
 .2T
  T
 37T
 04T
 )-T
  %)!T
" #'#T
$ <E%T
lH
 :>	H

  $H
 8<H
 !H
  H
 37H
 )-H
 %)H
 #'H
 <EH
TY
 37	Y

 :>Y
 IMY
  $Y
 koY
 !Y
 .2Y
  Y
 37Y
 04Y
  )-!Y
" %)#Y
$ #'%Y
& <E'Y
 Y
r9   c                     ] tR tRt]R R l4       t]R R l4       tR]R]R]R	]R
]R]R]R]R]RRRRRRR]/R R llt	R]R]R]R	]R
]R]R]R]R]RRRRRRR]/R R llt
R]R]R	]R
]R]R]RRRRRRR]/
R R lltR]R]R]R]R	]R
]R]R]R]R]RRRRRRR]/R R lltR]R]R]R	]R
]R]R]RRRRRRR]/R R lltR]R]R]R	]R
]R]R]R]R]RRRRRRR]/R R  lltR]R]R]R	]R
]R]R]R]R!]RRRRRRR]/R" R# lltR]R]R]R	]R
]R]R]R]R$]R%]R]RRRRRRR]/R& R' lltR]R]R]R	]R
]R]R]R]R]RRRRRRR]/R( R) lltR]R]R	]R
]R]R]RRRRRRR]/
R* R+ lltR]R]R,]R]R	]R
]R]R]R]R]RRRRRRR]/R- R. lltR/tR# )0r.   i  c                   V ^8  d   QhRR/# )r1   r2   AsyncUsageWithRawResponser4   )r5   s   "r6   r7   AsyncUsage.__annotate__  s     / /#< /r9   c                    \        V 4      # r;   )r   r<   s   &r6   r>   AsyncUsage.with_raw_response  s     )..r9   c                   V ^8  d   QhRR/# )r1   r2   AsyncUsageWithStreamingResponser4   )r5   s   "r6   r7   r     s     5 5)H 5r9   c                    \        V 4      # rC   )r   r<   s   &r6   rD   "AsyncUsage.with_streaming_response  s     /t44r9   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   NrP   rQ   rR   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# rT   r4   )r5   s   "r6   r7   r     r`   r9   c                  "   T P                  R\        TTTT\        RVRVRVRVRVRVRVR	VR
V	RV
/
\        P                  4      G Rj  xL
 RR/R7      \
        R7      G Rj  xL
 #  L L5i)rb   rc   rU   rF   rG   rH   rI   rJ   rK   rL   rM   rN   Nrd   Tre   rh   )rk   r   r   r   rl   r(   rm   s   &$$$$$$$$$$$$$$r6   rn   AsyncUsage.audio_speeches  s     v YY0(+'%1$j%{&"H"H &%{"H 0HH  /5), /1  
 
 	

$   AA,	A(
A,#A*$A,*A,c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# rq   r4   )r5   s   "r6   r7   r   R  rr   r9   c                  "   T P                  R\        TTTT\        RVRVRVRVRVRVRVR	VR
V	RV
/
\        P                  4      G Rj  xL
 RR/R7      \
        R7      G Rj  xL
 #  L L5i)rt   ru   rU   rF   rG   rH   rI   rJ   rK   rL   rM   rN   Nrd   Tre   rh   )rk   r   r   r    rv   r+   rm   s   &$$$$$$$$$$$$$$r6   rw   AsyncUsage.audio_transcriptionsR  s     v YY6(+'%1$j%{&"H"H &%{"H 6TT  /5), 51  
 
 	

r   c               H    V ^8  d   QhRRRRRRRRR	RR
RRRRRRRRRRRRR/# rz   r4   )r5   s   "r6   r7   r     r|   r9   c                  "   T P                  R\        TT	T
T\        RVRVRVRVRVRVRV/\        P                  4      G R	j  xL
 R
R/R7      \
        R7      G R	j  xL
 #  L L5i)r~   r   rU   rG   rH   rI   rJ   rL   rM   Nrd   Tre   rh   )rk   r   r   r!   r   r,   r   s   &$$$$$$$$$$$r6   r   $AsyncUsage.code_interpreter_sessions  s     d YY;(+'%1$j&"H"H%{ ;]]  /5#& 9+  
 
 	

$   AA&A"A&A$A&$A&r   c                X    V ^8  d   QhRRRRRRRRR	R
RRRR
RRRRRRRRRRRRRRRRRR/# r   r4   )r5   s   "r6   r7   r     r   r9   c          !        "   T P                  R\        TTTT\        RVRVRVRVRVRVRVR	VR
V	RV
RV/\        P                  4      G Rj  xL
 RR/R7      \
        R7      G Rj  xL
 #  L L5i)r   r   rU   rF   r   rG   rH   rI   rJ   rK   rL   rM   rN   Nrd   Tre   rh   )rk   r   r   r   r   r%   r   s   &$$$$$$$$$$$$$$$r6   r   AsyncUsage.completions  s     @ YY-(+'%1$j%{&"H"H &%{"H -CC   /5+. -3  
 
 	

$   A	A.A*A.%A,&A.,A.c               L    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRR/# r   r4   )r5   s   "r6   r7   r   N  r   r9   c                  "   T P                  R\        T	T
TT\        RVRVRVRVRVRVRVR	V/\        P                  4      G R
j  xL
 RR/R7      \
        R7      G R
j  xL
 #  L L5i)r   r   rU   rF   rG   rH   rI   rJ   rL   rM   Nrd   Tre   rh   )rk   r   r   r   r   r"   r   s   &$$$$$$$$$$$$r6   r   AsyncUsage.costsN  s     d YY!(+'%1$j%{&"H"H%{	 '77  /5%( '-  
 
 	

s$   AA(A$A(A& A(&A(c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# r   r4   )r5   s   "r6   r7   r     r   r9   c                  "   T P                  R\        TTTT\        RVRVRVRVRVRVRVR	VR
V	RV
/
\        P                  4      G Rj  xL
 RR/R7      \
        R7      G Rj  xL
 #  L L5i)r   r   rU   rF   rG   rH   rI   rJ   rK   rL   rM   rN   Nrd   Tre   rh   )rk   r   r   r   r   r$   rm   s   &$$$$$$$$$$$$$$r6   r   AsyncUsage.embeddings  s     v YY,(+'%1$j%{&"H"H &%{"H ,AA  /5), ,1  
 
 	

r   r   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# r   r4   )r5   s   "r6   r7   r     r   r9   c                  "   T P                  R\        TTTT\        RVRVRVRVRVRVRVR	VR
V	RV
/
\        P                  4      G Rj  xL
 RR/R7      \
        R7      G Rj  xL
 #  L L5i)r   r   rU   rF   rG   rH   rI   rJ   rL   rM   rN   r   Nrd   Tre   rh   )rk   r   r   r   r   r*   r   s   &$$$$$$$$$$$$$$r6   r   AsyncUsage.file_search_calls  s     x YY3(+'%1$j%{&"H"H%{"H*,< 3MM  /5), 11  
 
 	

r   r   r   c          "     \    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRRRRRR/# r   r4   )r5   s   "r6   r7   r   F  r   r9   c          #        "   T P                  R\        TTTT\        RVRVRVRVRVRVRVR	VR
V	RV
RVRV/\        P                  4      G Rj  xL
 RR/R7      \
        R7      G Rj  xL
 #  L L5i)r   r   rU   rF   rG   rH   rI   rJ   rK   rL   rM   r   r   rN   Nrd   Tre   rh   )rk   r   r   r   r   r#   r   s   &$$$$$$$$$$$$$$$$r6   r   AsyncUsage.imagesF  s     H YY((+'%1$j%{&"H"H &%{!7"H (99 " /5-0 (5  
 
 	

s$   AA0A,A0'A.(A0.A0c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# r   r4   )r5   s   "r6   r7   r     r   r9   c                  "   T P                  R\        TTTT\        RVRVRVRVRVRVRVR	VR
V	RV
/
\        P                  4      G Rj  xL
 RR/R7      \
        R7      G Rj  xL
 #  L L5i)r   r   rU   rF   rG   rH   rI   rJ   rK   rL   rM   rN   Nrd   Tre   rh   )rk   r   r   r   r   r&   rm   s   &$$$$$$$$$$$$$$r6   r   AsyncUsage.moderations  s     v YY-(+'%1$j%{&"H"H &%{"H -CC  /5), -1  
 
 	

r   c               H    V ^8  d   QhRRRRRRRRR	RR
RRRRRRRRRRRRR/# r   r4   )r5   s   "r6   r7   r     r   r9   c                  "   T P                  R\        TT	T
T\        RVRVRVRVRVRVRV/\        P                  4      G R	j  xL
 R
R/R7      \
        R7      G R	j  xL
 #  L L5i)r   r   rU   rG   rH   rI   rJ   rL   rM   Nrd   Tre   rh   )rk   r   r   r   r   r'   r   s   &$$$$$$$$$$$r6   r   AsyncUsage.vector_stores  s     d YY/(+'%1$j&"H"H%{ /FF  /5#& .+  
 
 	

r   r   c                X    V ^8  d   QhRRRRRRRRR	R
RRRR
RRRRRRRRRRRRRRRRRR/# r   r4   )r5   s   "r6   r7   r   G  r   r9   c          !        "   T P                  R\        TTTT\        RVRVRVRVRVRVRVR	VR
V	RV
RV/\        P                  4      G Rj  xL
 RR/R7      \
        R7      G Rj  xL
 #  L L5i)r   r   rU   rF   rG   r   rH   rI   rJ   rK   rL   rM   rN   Nrd   Tre   rh   )rk   r   r   r   r   r)   r   s   &$$$$$$$$$$$$$$$r6   r   AsyncUsage.web_search_callsG  s     ~ YY2(+'%1$j%{&(."H"H &%{"H 2KK   /5+. 03  
 
 	

r   r4   r   r4   r9   r6   r.   r.     s   / / 5 5T
 37	T

 :>T
  $T
 Z^T
 !T
 .2T
  T
 37T
 04T
 )-T
  %)!T
" #'#T
$ <E%T
lT
 37	T

 :>T
  $T
 Z^T
 !T
 .2T
  T
 37T
 04T
 )-T
  %)!T
" #'#T
$ <E%T
lH
 :>	H

  $H
 8<H
 !H
  H
 37H
 )-H
 %)H
 #'H
 <EH
TZ
 37	Z

 "Z
 :>Z
  $Z
 swZ
 !Z
 .2Z
  Z
 37Z
 04Z
  )-!Z
" %)#Z
$ #'%Z
& <E'Z
xI
 37	I

 .2I
  $I
 SWI
 !I
  I
 37I
 )-I
 %)I
 #'I
  <E!I
VT
 37	T

 :>T
  $T
 Z^T
 !T
 .2T
  T
 37T
 04T
 )-T
  %)!T
" #'#T
$ <E%T
lU
 37	U

 :>U
  $U
 dhU
 !U
  U
 37U
 04U
 8<U
 )-U
  %)!U
" #'#U
$ <E%U
n_
 37	_

 :>_
  $_
 lp_
 !_
 .2_
  _
 37_
 dh_
 ^b_
 04_
" )-#_
$ %)%_
& #''_
( <E)_
BT
 37	T

 :>T
  $T
 Z^T
 !T
 .2T
  T
 37T
 04T
 )-T
  %)!T
" #'#T
$ <E%T
lH
 :>	H

  $H
 8<H
 !H
  H
 37H
 )-H
 %)H
 #'H
 <EH
TY
 37	Y

 :>Y
 IMY
  $Y
 koY
 !Y
 .2Y
  Y
 37Y
 04Y
  )-!Y
" %)#Y
$ #'%Y
& <E'Y
 Y
r9   c                  "    ] tR tRtR R ltRtR# )r3   i  c                    V ^8  d   QhRRRR/# r1   usager-   r2   Noner4   )r5   s   "r6   r7   !UsageWithRawResponse.__annotate__       #
 #
e #
 #
r9   c                	@   Wn         \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP
                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n	        \        P                  ! VP                  4      V n
        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        R # N)_usager   to_raw_response_wrapperrn   rw   r   r   r   r   r   r   r   r   r   r=   r  s   &&r6   __init__UsageWithRawResponse.__init__  sH   .FF  
 %5$L$L&&%
! *:)Q)Q++*
& ,CC
 &==KK

 +BB
 "2!I!I##"
 '>>LL
 ,CC
 .EE
 !1 H H""!
r9   r  rn   rw   r   r   r   r   r   r   r   r   r   Nr   r   r   r   r  r   r4   r9   r6   r3   r3         #
 #
r9   r3   c                  "    ] tR tRtR R ltRtR# )r   i  c                    V ^8  d   QhRRRR/# r1   r  r.   r2   r  r4   )r5   s   "r6   r7   &AsyncUsageWithRawResponse.__annotate__       #
 #
j #
T #
r9   c                	@   Wn         \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP
                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n	        \        P                  ! VP                  4      V n
        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        R # r  )r  r   async_to_raw_response_wrapperrn   rw   r   r   r   r   r   r   r   r   r   r  s   &&r6   r  "AsyncUsageWithRawResponse.__init__  sH   .LL  
 %5$R$R&&%
! *:)W)W++*
& ,II
 &CCKK

 +HH
 "2!O!O##"
 'DDLL
 ,II
 .KK
 !1 N N""!
r9   r  Nr  r4   r9   r6   r   r     r  r9   r   c                  "    ] tR tRtR R ltRtR# )rA   i  c                    V ^8  d   QhRRRR/# r  r4   )r5   s   "r6   r7   'UsageWithStreamingResponse.__annotate__  r  r9   c                	N   Wn         \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP
                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n	        \        VP                  4      V n
        \        VP                  4      V n        \        VP                  4      V n        R # r  )r  r   rn   rw   r   r   r   r   r   r   r   r   r   r  s   &&r6   r  #UsageWithStreamingResponse.__init__  s   :  
 %A&&%
! *F++*
& 8
 2KK

 7
 ">##"
 3LL
 8
 :
 !=""!
r9   r  Nr  r4   r9   r6   rA   rA     r  r9   rA   c                  "    ] tR tRtR R ltRtR# )r   i  c                    V ^8  d   QhRRRR/# r  r4   )r5   s   "r6   r7   ,AsyncUsageWithStreamingResponse.__annotate__  r  r9   c                	N   Wn         \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP
                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n	        \        VP                  4      V n
        \        VP                  4      V n        \        VP                  4      V n        R # r  )r  r   rn   rw   r   r   r   r   r   r   r   r   r   r  s   &&r6   r  (AsyncUsageWithStreamingResponse.__init__  s   @  
 %G&&%
! *L++*
& >
 8KK

 =
 "D##"
 9LL
 >
 @
 !C""!
r9   r  Nr  r4   r9   r6   r   r     r  r9   r   )H
__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   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(   8types.admin.organization.usage_web_search_calls_responser)   9types.admin.organization.usage_file_search_calls_responser*   <types.admin.organization.usage_audio_transcriptions_responser+   Atypes.admin.organization.usage_code_interpreter_sessions_responser,   __all__r-   r.   r3   r   rA   r   r4   r9   r6   <module>rE     s    #  %  ! \ \ \ = ' ; Z 1    Q R Z \ \ _ a d f m vL
!x
O x
vx
! x
v$
 $
N$
 $
N$
 $
N$
 $
r9   