
    :Qg                     8    d Z ddlmZmZmZmZ ddlmZ defdZy)z,Registration of custom, human-written hooks.   )CleanServerUrlSDKInitHook
LoggerHook%SuggestDefiningUrlIf401AfterErrorHookSplitPdfHook)Hookshooksc                    t               }t               }t               }t               }| j	                  |       | j	                  |       | j	                  |       | j                  |       | j                  |       | j                  |       | j                  |       | j                  |       | j                  |       y)zAdd hooks by calling `hooks.register_<type_or>_hook` with an instance of that hook.

    Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
    N)r   r   r   r   register_sdk_init_hookregister_before_request_hookregister_after_success_hookregister_after_error_hook)r   clean_server_url_hooksuggest_defining_url_hooklogger_hooksplit_pdf_hooks        d/var/www/html/answerous/venv/lib/python3.12/site-packages/unstructured_client/_hooks/registration.py
init_hooksr      s     67 E G,K!^N 
  !67	  -	  0 
&&~6 
%%n5	%%k2 
##$=>	##N3	##K0    N)	__doc__customr   r   r   r   typesr   r    r   r   <module>r      s#    2  1e 1r   