o
    ¨Ýj~ ã                   @  sØ  d dl mZ d dlmZmZ d dlmZ d dlZddlm	Z	 ddl
mZmZmZmZmZmZmZmZ ddlmZmZ dd	lmZ dd
lmZmZ ddlmZmZ ddlmZ ddl m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z, ddl-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4 ddl5m6Z6 ddl7m8Z8 ddl9m:Z: ddl;m<Z< ddl=m>Z> ddl?m@Z@ ddlAmBZB ddlCmDZD ddgZEG dd„ deƒZFG dd„ deƒZGG dd„ dƒZHG d d!„ d!ƒZIG d"d#„ d#ƒZJG d$d%„ d%ƒZKdS )&é    )Úannotations)ÚListÚOptional)Ú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_decisions_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)ÚUsageDecisionsResponse)ÚUsageEmbeddingsResponse)ÚUsageCompletionsResponse)ÚUsageModerationsResponse)ÚUsageVectorStoresResponse)ÚUsageAudioSpeechesResponse)ÚUsageWebSearchCallsResponse)ÚUsageFileSearchCallsResponse)Ú UsageAudioTranscriptionsResponse)Ú$UsageCodeInterpreterSessionsResponseÚUsageÚ
AsyncUsagec                   @  ó  e Zd Zedcdd„ƒZedddd„ƒZeeeeeeeeeddded	œded#d$„Zeeeeeeeeeddded	œdfd&d'„Z	eeeeeeddded(œ
dgd+d,„Z
eeeeeeeeeeddded-œdhd2d3„Zeeeeeeeeddded4œdid9d:„Zeeeeeeeeeeddded-œdjdBdC„Zeeeeeeeeeddded	œdkdEdF„ZeeeeeeeeedddedGœdldKdL„ZeeeeeeeeeeedddedMœdmdTdU„Zeeeeeeeeeddded	œdndWdX„Zeeeeeeddded(œ
dodZd[„Zeeeeeeeeeeddded\œdpdadb„ZdS )qr0   ÚreturnÚUsageWithRawResponsec                 C  ó   t | ƒS ©a  
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers
        )r4   ©Úself© r9   úd/var/www/html/chatgpt/venv/lib/python3.10/site-packages/openai/resources/admin/organization/usage.pyÚwith_raw_response0   ó   zUsage.with_raw_responseÚUsageWithStreamingResponsec                 C  r5   ©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
        )r=   r7   r9   r9   r:   Úwith_streaming_response:   ó   zUsage.with_streaming_responseN©Úapi_key_idsÚbucket_widthÚend_timeÚgroup_byÚlimitÚmodelsÚpageÚproject_idsÚuser_idsÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutÚ
start_timeÚintrB   úSequenceNotStr[str] | OmitrC   ú Literal['1m', '1h', '1d'] | OmitrD   ú
int | OmitrE   úDList[Literal['project_id', 'user_id', 'api_key_id', 'model']] | OmitrF   rG   rH   ú
str | OmitrI   rJ   rK   úHeaders | NonerL   úQuery | NonerM   úBody | NonerN   ú(float | httpx2.Timeout | None | NotGivenr+   c                C  óB   | j dt||||t|||||||||	|
dœ
tjƒddid�td�S )á¤  
        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©
rO   rB   rC   rD   rE   rF   rG   rH   rI   rJ   Úadmin_api_key_authT©rK   rL   rM   rN   ÚqueryÚsecurity©ÚoptionsZcast_to)Ú_getr   r   r   ÚUsageAudioSpeechesParamsr+   ©r8   rO   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   r9   r9   r:   Úaudio_speechesC   ó2   ;öóìèzUsage.audio_speechesr.   c                C  rZ   )áª  
        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_transcriptionsr]   r^   Tr_   rb   )rd   r   r   r"   ÚUsageAudioTranscriptionsParamsr.   rf   r9   r9   r:   Úaudio_transcriptions™   rh   zUsage.audio_transcriptions©
rC   rD   rE   rF   rH   rI   rK   rL   rM   rN   ú"List[Literal['project_id']] | Omitr/   c                C  ó<   | j dt||	|
|t|||||||dœtjƒddid�td�S )áÅ  
        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©rO   rC   rD   rE   rF   rH   rI   r^   Tr_   rb   )rd   r   r   r#   Ú"UsageCodeInterpreterSessionsParamsr/   ©r8   rO   rC   rD   rE   rF   rH   rI   rK   rL   rM   rN   r9   r9   r:   Úcode_interpreter_sessionsï   ó,   2ù	öïëzUsage.code_interpreter_sessions©rB   ÚbatchrC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rx   úbool | OmitúkList[Literal['project_id', 'user_id', 'api_key_id', 'model', 'batch', 'service_tier', 'api_source']] | Omitr(   c                C  óD   | j dt||||t|||||||||	|
|dœtjƒddid�td�S )á'  
        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`,
              `api_source` or any combination of them. When grouped by `api_source`, results
              use `agents_api` for attributed Agents API activity and `unlabeled` for all
              other activity. Without source grouping, `api_source` is null.

          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©rO   rB   rx   rC   rD   rE   rF   rG   rH   rI   rJ   r^   Tr_   rb   )rd   r   r   r   ÚUsageCompletionsParamsr(   ©r8   rO   rB   rx   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   r9   r9   r:   Úcompletions9  s4   CõòëçzUsage.completions©rB   rC   rD   rE   rF   Ú
line_itemsrH   rI   rK   rL   rM   rN   úLiteral['1d'] | OmitúVList[Literal['project_id', 'user_id', 'line_item', 'api_key_id', 'api_source']] | Omitrƒ   r$   c                C  s@   | j dt|
|||t|||||||||	dœ	tjƒddid�td�S )á  
        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. Supported fields include `project_id`,
              `user_id`, `line_item`, `api_key_id`, and `api_source`. Support for combining
              `user_id` with `project_id` grouping or the `project_ids` filter depends on the
              organization and requested time range. Unsupported combinations return HTTP 400.
              When grouped by `api_source`, results use `agents_api` for attributed Agents API
              activity and `unlabeled` for all other activity. Without source grouping,
              `api_source` is null.

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

          line_items: Return only costs for these exact line item names. Each value must match the
              complete `line_item` value, for example `gpt-6-astra, input_tokens`.

          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©	rO   rB   rC   rD   rE   rF   rƒ   rH   rI   r^   Tr_   rb   )rd   r   r   r   ÚUsageCostsParamsr$   ©r8   rO   rB   rC   rD   rE   rF   rƒ   rH   rI   rK   rL   rM   rN   r9   r9   r:   Úcosts˜  s0   ;÷ôíézUsage.costsú$Optional[SequenceNotStr[str]] | OmitúOptional[bool] | Omitú*Optional[Literal['1m', '1h', '1d']] | OmitúOptional[int] | OmitúuOptional[List[Literal['project_id', 'user_id', 'api_key_id', 'model', 'batch', 'service_tier', 'api_source']]] | OmitúOptional[str] | Omitr&   c                C  r{   )á)  
        Get Decisions API 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`,
              `api_source` or any combination of them. When grouped by `api_source`, results
              use `agents_api` for attributed Agents API activity and `unlabeled` for all
              other activity. Without source grouping, `api_source` is null.

          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/decisionsr~   r^   Tr_   rb   )rd   r   r   r   ÚUsageDecisionsParamsr&   r€   r9   r9   r:   Ú	decisionsí  s4   EõòëçzUsage.decisionsr'   c                C  rZ   )á   
        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/embeddingsr]   r^   Tr_   rb   )rd   r   r   r   ÚUsageEmbeddingsParamsr'   rf   r9   r9   r:   Ú
embeddingsN  rh   zUsage.embeddings©rB   rC   rD   rE   rF   rH   rI   rJ   Úvector_store_idsrK   rL   rM   rN   úNList[Literal['project_id', 'user_id', 'api_key_id', 'vector_store_id']] | Omitr›   r-   c                C  rZ   )áÐ  
        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_calls©
rO   rB   rC   rD   rE   rF   rH   rI   rJ   r›   r^   Tr_   rb   )rd   r   r   r!   ÚUsageFileSearchCallsParamsr-   ©r8   rO   rB   rC   rD   rE   rF   rH   rI   rJ   r›   rK   rL   rM   rN   r9   r9   r:   Úfile_search_calls¤  s2   <öóìèzUsage.file_search_calls©rB   rC   rD   rE   rF   rG   rH   rI   ÚsizesÚsourcesrJ   rK   rL   rM   rN   úVList[Literal['project_id', 'user_id', 'api_key_id', 'model', 'size', 'source']] | Omitr¤   úQList[Literal['256x256', '512x512', '1024x1024', '1792x1792', '1024x1792']] | Omitr¥   úIList[Literal['image.generation', 'image.edit', 'image.variation']] | Omitr%   c                C  sF   | j dt||||t|||||||||	|
||dœtjƒddid�td�S )á  
        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©rO   rB   rC   rD   rE   rF   rG   rH   rI   r¤   r¥   rJ   r^   Tr_   rb   )rd   r   r   r   ÚUsageImagesParamsr%   ©r8   rO   rB   rC   rD   rE   rF   rG   rH   rI   r¤   r¥   rJ   rK   rL   rM   rN   r9   r9   r:   Úimagesû  s6   DôñêæzUsage.imagesr)   c                C  rZ   )á¡  
        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/moderationsr]   r^   Tr_   rb   )rd   r   r   r   ÚUsageModerationsParamsr)   rf   r9   r9   r:   Úmoderations\  rh   zUsage.moderationsr*   c                C  ro   )á¹  
        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_storesrr   r^   Tr_   rb   )rd   r   r   r   ÚUsageVectorStoresParamsr*   rt   r9   r9   r:   Úvector_stores²  rv   zUsage.vector_stores©rB   rC   Úcontext_levelsrD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   r¸   ú-List[Literal['low', 'medium', 'high']] | OmitúcList[Literal['project_id', 'user_id', 'api_key_id', 'model', 'context_level', 'api_source']] | Omitr,   c                C  r{   )áò  
        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`, `api_source` or
              any combination of them. When grouped by `api_source`, results use `agents_api`
              for attributed Agents API activity and `unlabeled` for all other activity.
              Without source grouping, `api_source` is null.

          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_calls©rO   rB   rC   r¸   rD   rE   rF   rG   rH   rI   rJ   r^   Tr_   rb   )rd   r   r   r    ÚUsageWebSearchCallsParamsr,   ©r8   rO   rB   rC   r¸   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   r9   r9   r:   Úweb_search_callsü  s4   BõòëçzUsage.web_search_calls)r3   r4   )r3   r=   ©rO   rP   rB   rQ   rC   rR   rD   rS   rE   rT   rF   rS   rG   rQ   rH   rU   rI   rQ   rJ   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r+   ©rO   rP   rB   rQ   rC   rR   rD   rS   rE   rT   rF   rS   rG   rQ   rH   rU   rI   rQ   rJ   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r.   ©rO   rP   rC   rR   rD   rS   rE   rn   rF   rS   rH   rU   rI   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r/   © rO   rP   rB   rQ   rx   ry   rC   rR   rD   rS   rE   rz   rF   rS   rG   rQ   rH   rU   rI   rQ   rJ   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r(   ©rO   rP   rB   rQ   rC   r„   rD   rS   rE   r…   rF   rS   rƒ   rQ   rH   rU   rI   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r$   © rO   rP   rB   rŒ   rx   r�   rC   rŽ   rD   r�   rE   r�   rF   r�   rG   rŒ   rH   r‘   rI   rŒ   rJ   rŒ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r&   ©rO   rP   rB   rQ   rC   rR   rD   rS   rE   rT   rF   rS   rG   rQ   rH   rU   rI   rQ   rJ   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r'   ©rO   rP   rB   rQ   rC   rR   rD   rS   rE   rœ   rF   rS   rH   rU   rI   rQ   rJ   rQ   r›   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r-   ©"rO   rP   rB   rQ   rC   rR   rD   rS   rE   r¦   rF   rS   rG   rQ   rH   rU   rI   rQ   r¤   r§   r¥   r¨   rJ   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r%   ©rO   rP   rB   rQ   rC   rR   rD   rS   rE   rT   rF   rS   rG   rQ   rH   rU   rI   rQ   rJ   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r)   ©rO   rP   rC   rR   rD   rS   rE   rn   rF   rS   rH   rU   rI   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r*   © rO   rP   rB   rQ   rC   rR   r¸   r¹   rD   rS   rE   rº   rF   rS   rG   rQ   rH   rU   rI   rQ   rJ   rQ   rK   rV   rL   rW   rM   rX   rN   rY   r3   r,   ©Ú__name__Ú
__module__Ú__qualname__r   r;   r?   r   r   rg   rl   ru   r�   r‹   r•   r™   r¢   r®   r²   r¶   rÀ   r9   r9   r9   r:   r0   /   óV   	îZîZñNìcïYêeîZî[ìeîZñNìc                   @  r2   )qr1   r3   ÚAsyncUsageWithRawResponsec                 C  r5   r6   )rÒ   r7   r9   r9   r:   r;   \  r<   zAsyncUsage.with_raw_responseÚAsyncUsageWithStreamingResponsec                 C  r5   r>   )rÓ   r7   r9   r9   r:   r?   f  r@   z"AsyncUsage.with_streaming_responseNrA   rO   rP   rB   rQ   rC   rR   rD   rS   rE   rT   rF   rG   rH   rU   rI   rJ   rK   rV   rL   rW   rM   rX   rN   rY   r+   c                Ã  óP   �| j dt||||t|||||||||	|
dœ
tjƒI dH ddid�td�I dH S )r[   r\   r]   Nr^   Tr_   rb   )rd   r   r   r   re   r+   rf   r9   r9   r:   rg   o  ó4   €;öóìèzAsyncUsage.audio_speechesr.   c                Ã  rÔ   )ri   rj   r]   Nr^   Tr_   rb   )rd   r   r   r"   rk   r.   rf   r9   r9   r:   rl   Å  rÕ   zAsyncUsage.audio_transcriptionsrm   rn   r/   c                Ã  óJ   �| j dt||	|
|t|||||||dœtjƒI dH ddid�td�I dH S )rp   rq   rr   Nr^   Tr_   rb   )rd   r   r   r#   rs   r/   rt   r9   r9   r:   ru     ó.   €2ù	öïëz$AsyncUsage.code_interpreter_sessionsrw   rx   ry   rz   r(   c                Ã  óR   �| j dt||||t|||||||||	|
|dœtjƒI dH ddid�td�I dH S )r|   r}   r~   Nr^   Tr_   rb   )rd   r   r   r   r   r(   r€   r9   r9   r:   r�   e  s6   €CõòëçzAsyncUsage.completionsr‚   r„   r…   rƒ   r$   c                Ã  sN   �| j dt|
|||t|||||||||	dœ	tjƒI dH ddid�td�I dH S )r†   r‡   rˆ   Nr^   Tr_   rb   )rd   r   r   r   r‰   r$   rŠ   r9   r9   r:   r‹   Ä  s2   €;÷ôíézAsyncUsage.costsrŒ   r�   rŽ   r�   r�   r‘   r&   c                Ã  rØ   )r’   r“   r~   Nr^   Tr_   rb   )rd   r   r   r   r”   r&   r€   r9   r9   r:   r•     s6   €EõòëçzAsyncUsage.decisionsr'   c                Ã  rÔ   )r–   r—   r]   Nr^   Tr_   rb   )rd   r   r   r   r˜   r'   rf   r9   r9   r:   r™   z  rÕ   zAsyncUsage.embeddingsrš   rœ   r›   r-   c                Ã  rÔ   )r�   rž   rŸ   Nr^   Tr_   rb   )rd   r   r   r!   r    r-   r¡   r9   r9   r:   r¢   Ð  s4   €<öóìèzAsyncUsage.file_search_callsr£   r¦   r¤   r§   r¥   r¨   r%   c                Ã  sT   �| j dt||||t|||||||||	|
||dœtjƒI dH ddid�td�I dH S )r©   rª   r«   Nr^   Tr_   rb   )rd   r   r   r   r¬   r%   r­   r9   r9   r:   r®   '  s8   €DôñêæzAsyncUsage.imagesr)   c                Ã  rÔ   )r¯   r°   r]   Nr^   Tr_   rb   )rd   r   r   r   r±   r)   rf   r9   r9   r:   r²   ˆ  rÕ   zAsyncUsage.moderationsr*   c                Ã  rÖ   )r³   r´   rr   Nr^   Tr_   rb   )rd   r   r   r   rµ   r*   rt   r9   r9   r:   r¶   Þ  r×   zAsyncUsage.vector_storesr·   r¸   r¹   rº   r,   c                Ã  rØ   )r»   r¼   r½   Nr^   Tr_   rb   )rd   r   r   r    r¾   r,   r¿   r9   r9   r:   rÀ   (  s6   €BõòëçzAsyncUsage.web_search_calls)r3   rÒ   )r3   rÓ   rÁ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   r9   r9   r9   r:   r1   [  rÑ   c                   @  ó   e Zd Zddd„ZdS )	r4   Úusager0   r3   ÚNonec                 C  ó²   || _ t |j¡| _t |j¡| _t |j¡| _t |j¡| _t |j¡| _t |j¡| _t |j	¡| _	t |j
¡| _
t |j¡| _t |j¡| _t |j¡| _t |j¡| _d S ©N)Ú_usager   Zto_raw_response_wrapperrg   rl   ru   r�   r‹   r•   r™   r¢   r®   r²   r¶   rÀ   ©r8   rÚ   r9   r9   r:   Ú__init__ˆ  óJ   ÿÿÿÿÿÿÿÿÿÿÿ
ÿzUsageWithRawResponse.__init__N©rÚ   r0   r3   rÛ   ©rÎ   rÏ   rÐ   rà   r9   r9   r9   r:   r4   ‡  ó    r4   c                   @  rÙ   )	rÒ   rÚ   r1   r3   rÛ   c                 C  rÜ   rÝ   )rÞ   r   Zasync_to_raw_response_wrapperrg   rl   ru   r�   r‹   r•   r™   r¢   r®   r²   r¶   rÀ   rß   r9   r9   r:   rà   ²  rá   z"AsyncUsageWithRawResponse.__init__N©rÚ   r1   r3   rÛ   rã   r9   r9   r9   r:   rÒ   ±  rä   rÒ   c                   @  rÙ   )	r=   rÚ   r0   r3   rÛ   c                 C  óš   || _ t|jƒ| _t|jƒ| _t|jƒ| _t|jƒ| _t|jƒ| _t|jƒ| _t|jƒ| _t|j	ƒ| _	t|j
ƒ| _
t|jƒ| _t|jƒ| _t|jƒ| _d S rÝ   )rÞ   r   rg   rl   ru   r�   r‹   r•   r™   r¢   r®   r²   r¶   rÀ   rß   r9   r9   r:   rà   Ü  óJ   ÿÿÿÿÿÿÿÿÿÿÿ
ÿz#UsageWithStreamingResponse.__init__Nrâ   rã   r9   r9   r9   r:   r=   Û  rä   r=   c                   @  rÙ   )	rÓ   rÚ   r1   r3   rÛ   c                 C  ræ   rÝ   )rÞ   r   rg   rl   ru   r�   r‹   r•   r™   r¢   r®   r²   r¶   rÀ   rß   r9   r9   r:   rà   	  rç   z(AsyncUsageWithStreamingResponse.__init__Nrå   rã   r9   r9   r9   r:   rÓ   	  rä   rÓ   )LÚ
__future__r   Útypingr   r   Ztyping_extensionsr   Zhttpx2Ú r   Ú_typesr   r	   r
   r   r   r   r   r   Z_utilsr   r   Z_compatr   Z	_resourcer   r   Ú	_responser   r   Z_base_clientr   Ztypes.admin.organizationr   r   r   r   r   r   r   r   r    r!   r"   r#   Z-types.admin.organization.usage_costs_responser$   Z.types.admin.organization.usage_images_responser%   Z1types.admin.organization.usage_decisions_responser&   Z2types.admin.organization.usage_embeddings_responser'   Z3types.admin.organization.usage_completions_responser(   Z3types.admin.organization.usage_moderations_responser)   Z5types.admin.organization.usage_vector_stores_responser*   Z6types.admin.organization.usage_audio_speeches_responser+   Z8types.admin.organization.usage_web_search_calls_responser,   Z9types.admin.organization.usage_file_search_calls_responser-   Z<types.admin.organization.usage_audio_transcriptions_responser.   ZAtypes.admin.organization.usage_code_interpreter_sessions_responser/   Ú__all__r0   r1   r4   rÒ   r=   rÓ   r9   r9   r9   r:   Ú<module>   s^   (8        4        4***