� J�g����dZddlZddlmZdZdZdZdZdZd Z d Z d Z d Z d Z dZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZdS)z� We use x-goog-api-client header to report metrics. This module provides the constants and helper methods to construct x-goog-api-client header. �N)�versionzx-goog-api-clientzgoogle-byoid-sdkzauth-request-type/atzauth-request-type/itzauth-request-type/mdszauth-request-type/re-startzauth-request-type/re-contz cred-type/uz cred-type/saz cred-type/jwtz cred-type/mdsz cred-type/impc�d�d�tj��tj��S)Nzgl-python/{} auth/{})�format�platform�python_versionr� __version__���c/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/google/auth/metrics.py�python_and_auth_lib_versionr -s$�� !� (� (��)@�)B�)B�G�DW� X� X�Xr c�\�d�t��tt��S�Nz{} {} {})rr �REQUEST_TYPE_ACCESS_TOKEN�CRED_TYPE_SA_MDSr r r �token_request_access_token_mdsr5s)�� � � �#�%�%�'@�BR� � �r c�\�d�t��tt��Sr)rr �REQUEST_TYPE_ID_TOKENrr r r �token_request_id_token_mdsr=s)�� � � �#�%�%�'<�>N� � �r c�\�d�t��tt��Sr)rr r�CRED_TYPE_SA_IMPERSONATEr r r �&token_request_access_token_impersonaterEs)�� � � �#�%�%�!� � � �r c�\�d�t��tt��Sr)rr rrr r r �"token_request_id_token_impersonaterOs)�� � � �#�%�%�'<�>V� � �r c�\�d�t��tt��Sr)rr r�CRED_TYPE_SA_ASSERTIONr r r �'token_request_access_token_sa_assertionrXs)�� � � �#�%�%�'@�BX� � �r c�\�d�t��tt��Sr)rr rrr r r �#token_request_id_token_sa_assertionras)�� � � �#�%�%�'<�>T� � �r c�P�d�t��t��S�N�{} {})rr �CRED_TYPE_USERr r r �token_request_userr#is�� �>�>�5�7�7�� H� H�Hr c�P�d�t��t��Sr )rr �REQUEST_TYPE_MDS_PINGr r r �mds_pingr&qs�� �>�>�5�7�7�9N� O� O�Or c�P�d�t��t��Sr )rr �REQUEST_TYPE_REAUTH_STARTr r r � reauth_startr)ws�� �>�>�5�7�7�9R� S� S�Sr c�P�d�t��t��Sr )rr �REQUEST_TYPE_REAUTH_CONTINUEr r r �reauth_continuer,}s�� �>�>�5�7�7�9U� V� V�Vr c��d�t��t��}|���D]\}}d�|||��}�|S)Nr!z{} {}/{})rr �BYOID_HEADER_SECTION�items)�metrics_options�header�key�values r �byoid_metrics_headerr4�sZ�� �^�^�7�9�9�;O� P� P�F�%�+�+�-�-�7�7� ��U��"�"�6�3��6�6��� �Mr c�h�|sdSt|vr ||t<dS|txxd|zz cc<dS)a�Add x-goog-api-client header with the given value. Args: headers (Mapping[str, str]): The headers to which we will add the metric header. metric_header_value (Optional[str]): If value is None, do nothing; if headers already has a x-goog-api-client header, append the value to the existing header; otherwise add a new x-goog-api-client header with the given value. N� )�API_CLIENT_HEADER)�headers�metric_header_values r �add_metric_headerr:�sV�� ������'�'�%8��!�"�"�"��!�"�"�"�c�,?�&?�?�"�"�"�"�"r )�__doc__r� google.authrr7r.rrr%r(r+r"r�CRED_TYPE_SA_JWTrrr rrrrrrr#r&r)r,r4r:r r r �<module>r>s\��������������(��*��3��.��/��8��:����'��"��"��*��Y�Y�Y�������������������I�I�I�P�P�P� T�T�T� W�W�W� ���@�@�@�@�@r
Memory