o
    ùT·jN  ã                   @  sÌ   d dl mZ ddlmZmZmZmZmZmZ ddl	m
Z
mZmZmZmZmZ ddlmZ ddlmZmZ dd	gZG d
d„ deƒZG dd	„ d	eƒZG dd„ dƒZG dd„ dƒZG dd„ dƒZG dd„ dƒZdS )é    )Úannotationsé   )ÚCasesÚ
AsyncCasesÚCasesWithRawResponseÚAsyncCasesWithRawResponseÚCasesWithStreamingResponseÚAsyncCasesWithStreamingResponse)ÚAlertsÚAsyncAlertsÚAlertsWithRawResponseÚAsyncAlertsWithRawResponseÚAlertsWithStreamingResponseÚ AsyncAlertsWithStreamingResponseé   )Úcached_property)ÚSyncAPIResourceÚAsyncAPIResourceÚSafetyÚAsyncSafetyc                   @  óD   e Zd Zeddd„ƒZeddd„ƒZedd	d
„ƒZeddd„ƒZdS )r   Úreturnr   c                 C  ó
   t | jƒS ©N)r   Ú_client©Úself© r   úa/home/dinkstrade/pdmp-scanner/venv/lib/python3.10/site-packages/openai/resources/safety/safety.pyÚcases   ó   
zSafety.casesr
   c                 C  r   r   )r
   r   r   r   r   r   Úalerts    r    zSafety.alertsÚSafetyWithRawResponsec                 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
        )r"   r   r   r   r   Úwith_raw_response$   ó   zSafety.with_raw_responseÚSafetyWithStreamingResponsec                 C  r#   ©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   r   r   r   Úwith_streaming_response.   ó   zSafety.with_streaming_responseN)r   r   )r   r
   )r   r"   )r   r'   ©Ú__name__Ú
__module__Ú__qualname__r   r   r!   r%   r)   r   r   r   r   r      ó    	c                   @  r   )r   r   r   c                 C  r   r   )r   r   r   r   r   r   r   9   r    zAsyncSafety.casesr   c                 C  r   r   )r   r   r   r   r   r   r!   =   r    zAsyncSafety.alertsÚAsyncSafetyWithRawResponsec                 C  r#   r$   )r0   r   r   r   r   r%   A   r&   zAsyncSafety.with_raw_responseÚ AsyncSafetyWithStreamingResponsec                 C  r#   r(   )r1   r   r   r   r   r)   K   r*   z#AsyncSafety.with_streaming_responseN)r   r   )r   r   )r   r0   )r   r1   r+   r   r   r   r   r   8   r/   c                   @  ó2   e Zd Zddd„Zeddd	„ƒZeddd„ƒZdS )r"   Úsafetyr   r   ÚNonec                 C  ó
   || _ d S r   ©Ú_safety©r   r3   r   r   r   Ú__init__V   ó   
zSafetyWithRawResponse.__init__r   c                 C  ó   t | jjƒS r   )r   r7   r   r   r   r   r   r   Y   ó   zSafetyWithRawResponse.casesr   c                 C  r;   r   )r   r7   r!   r   r   r   r   r!   ]   r<   zSafetyWithRawResponse.alertsN©r3   r   r   r4   )r   r   )r   r   ©r,   r-   r.   r9   r   r   r!   r   r   r   r   r"   U   ó    
r"   c                   @  r2   )r0   r3   r   r   r4   c                 C  r5   r   r6   r8   r   r   r   r9   c   r:   z#AsyncSafetyWithRawResponse.__init__r   c                 C  r;   r   )r   r7   r   r   r   r   r   r   f   r<   z AsyncSafetyWithRawResponse.casesr   c                 C  r;   r   )r   r7   r!   r   r   r   r   r!   j   r<   z!AsyncSafetyWithRawResponse.alertsN©r3   r   r   r4   )r   r   )r   r   r>   r   r   r   r   r0   b   r?   r0   c                   @  r2   )r'   r3   r   r   r4   c                 C  r5   r   r6   r8   r   r   r   r9   p   r:   z$SafetyWithStreamingResponse.__init__r   c                 C  r;   r   )r   r7   r   r   r   r   r   r   s   r<   z!SafetyWithStreamingResponse.casesr   c                 C  r;   r   )r   r7   r!   r   r   r   r   r!   w   r<   z"SafetyWithStreamingResponse.alertsNr=   )r   r   )r   r   r>   r   r   r   r   r'   o   r?   r'   c                   @  r2   )r1   r3   r   r   r4   c                 C  r5   r   r6   r8   r   r   r   r9   }   r:   z)AsyncSafetyWithStreamingResponse.__init__r	   c                 C  r;   r   )r	   r7   r   r   r   r   r   r   €   r<   z&AsyncSafetyWithStreamingResponse.casesr   c                 C  r;   r   )r   r7   r!   r   r   r   r   r!   „   r<   z'AsyncSafetyWithStreamingResponse.alertsNr@   )r   r	   )r   r   r>   r   r   r   r   r1   |   r?   r1   N)Ú
__future__r   r   r   r   r   r   r   r	   r!   r
   r   r   r   r   r   Ú_compatr   Ú	_resourcer   r   Ú__all__r   r   r"   r0   r'   r1   r   r   r   r   Ú<module>   s     