
    	h"                       d dl mZ d dlmZ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 ddl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mZ ddlmZm Z  ddl!m"Z" ddl#m$Z$ ddl%m&Z& ddgZ' G d de          Z( G d de          Z) G d d          Z* G d d          Z+ G d d          Z, G d d          Z-dS )    )annotations)AnyListcast)LiteralN   )_legacy_response)	NOT_GIVENBodyQueryHeadersNotGiven)maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncCursorPageAsyncCursorPage)AsyncPaginatormake_request_options)input_item_list_params)ResponseItem)ResponseIncludable
InputItemsAsyncInputItemsc            	      Z    e Zd Zedd            Zedd            ZeeeedddedddZdS )r   returnInputItemsWithRawResponsec                     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
        )r    selfs    s/var/www/html/web-builder-api.evdpl.com/venv/lib/python3.11/site-packages/openai/resources/responses/input_items.pywith_raw_responsezInputItems.with_raw_response   s     )...    InputItemsWithStreamingResponsec                     t          |           S z
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/openai/openai-python#with_streaming_response
        )r(   r#   s    r%   with_streaming_responsez"InputItems.with_streaming_response$   s     /t444r'   Nafterincludelimitorderextra_headersextra_query
extra_bodytimeoutresponse_idstrr-   str | NotGivenr.   #List[ResponseIncludable] | NotGivenr/   int | NotGivenr0   !Literal['asc', 'desc'] | NotGivenr1   Headers | Noner2   Query | Noner3   Body | Noner4   'float | httpx.Timeout | None | NotGivenSyncCursorPage[ResponseItem]c                  |st          d|          |                     d| dt          t                   t	          ||||	t          ||||dt          j                            t          t          t                              S a  
        Returns a list of input items for a given response.

        Args:
          after: An item ID to list items after, used in pagination.

          include: Additional fields to include in the response. See the `include` parameter for
              Response creation above for more information.

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

          order: The order to return the input items in. Default is `desc`.

              - `asc`: Return the input items in ascending order.
              - `desc`: Return the input items in descending order.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        z:Expected a non-empty value for `response_id` but received z/responses/z/input_items)r-   r.   r/   r0   )r1   r2   r3   r4   query)pageoptionsmodel)

ValueError_get_api_listr   r   r   r   r   InputItemListParamsr   r   
r$   r5   r-   r.   r/   r0   r1   r2   r3   r4   s
             r%   listzInputItems.list-   s    P  	kiZeiijjj!!3+333-(+'%%!&#*!&!&	  +>    sL))% " 
 
 	
r'   )r   r    )r   r(   )r5   r6   r-   r7   r.   r8   r/   r9   r0   r:   r1   r;   r2   r<   r3   r=   r4   r>   r   r?   __name__
__module____qualname__r   r&   r+   r
   rJ    r'   r%   r   r      s        / / / _/ 5 5 5 _5 !*7@ )3< )-$("&;D=
 =
 =
 =
 =
 =
 =
 =
r'   c            	      Z    e Zd Zedd            Zedd            ZeeeedddedddZdS )r   r   AsyncInputItemsWithRawResponsec                     t          |           S r"   )rQ   r#   s    r%   r&   z!AsyncInputItems.with_raw_responsen   s     .d333r'   $AsyncInputItemsWithStreamingResponsec                     t          |           S r*   )rS   r#   s    r%   r+   z'AsyncInputItems.with_streaming_responsex   s     4D999r'   Nr,   r5   r6   r-   r7   r.   r8   r/   r9   r0   r:   r1   r;   r2   r<   r3   r=   r4   r>   ;AsyncPaginator[ResponseItem, AsyncCursorPage[ResponseItem]]c                  |st          d|          |                     d| dt          t                   t	          ||||	t          ||||dt          j                            t          t          t                              S rA   )
rF   rG   r   r   r   r   r   rH   r   r   rI   s
             r%   rJ   zAsyncInputItems.list   s    P  	kiZeiijjj!!3+333 .(+'%%!&#*!&!&	  +>    sL))% " 
 
 	
r'   )r   rQ   )r   rS   )r5   r6   r-   r7   r.   r8   r/   r9   r0   r:   r1   r;   r2   r<   r3   r=   r4   r>   r   rU   rK   rO   r'   r%   r   r   m   s        4 4 4 _4 : : : _: !*7@ )3< )-$("&;D=
 =
 =
 =
 =
 =
 =
 =
r'   c                      e Zd ZddZdS )r    input_itemsr   r   Nonec                P    || _         t          j        |j                  | _        d S N)_input_itemsr	   to_raw_response_wrapperrJ   r$   rX   s     r%   __init__z"InputItemsWithRawResponse.__init__   s(    '$<
 
			r'   NrX   r   r   rY   rL   rM   rN   r_   rO   r'   r%   r    r       (        
 
 
 
 
 
r'   r    c                      e Zd ZddZdS )rQ   rX   r   r   rY   c                P    || _         t          j        |j                  | _        d S r[   )r\   r	   async_to_raw_response_wrapperrJ   r^   s     r%   r_   z'AsyncInputItemsWithRawResponse.__init__   s(    '$B
 
			r'   NrX   r   r   rY   ra   rO   r'   r%   rQ   rQ      rb   r'   rQ   c                      e Zd ZddZdS )r(   rX   r   r   rY   c                F    || _         t          |j                  | _        d S r[   )r\   r   rJ   r^   s     r%   r_   z(InputItemsWithStreamingResponse.__init__   s%    '0
 
			r'   Nr`   ra   rO   r'   r%   r(   r(      rb   r'   r(   c                      e Zd ZddZdS )rS   rX   r   r   rY   c                F    || _         t          |j                  | _        d S r[   )r\   r   rJ   r^   s     r%   r_   z-AsyncInputItemsWithStreamingResponse.__init__   s%    '6
 
			r'   Nrf   ra   rO   r'   r%   rS   rS      rb   r'   rS   ).
__future__r   typingr   r   r   typing_extensionsr   httpx r	   _typesr
   r   r   r   r   _utilsr   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   _base_clientr   r   types.responsesr   types.responses.response_itemr   #types.responses.response_includabler   __all__r   r   r    rQ   r(   rS   rO   r'   r%   <module>r{      sd   # " " " " " " " " " " " " " " " % % % % % %              ? ? ? ? ? ? ? ? ? ? ? ? ? ? % % % % % % & & & & & & : : : : : : : : Y Y Y Y Y Y Y Y 9 9 9 9 9 9 9 9 @ @ @ @ @ @ @ @ 5 5 5 5 5 5 9 9 9 9 9 9 E E E E E E*
+Q
 Q
 Q
 Q
 Q
 Q
 Q
 Q
hQ
 Q
 Q
 Q
 Q
& Q
 Q
 Q
h
 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
r'   