
    0j                     V    d Z ddlmZmZmZ ddlmZ e G d de                      ZdS )z[
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
    )OptionalProtocolruntime_checkable   )
CallerTypec                      e Zd ZdZedefd            Zedee         fd            Zedee         fd            Z	edefd            Z
edefd            Zedefd            Zedee         fd	            ZddedefdZdefdZdS )TokenProtocolzAny authorized token.returnc                     dS )zThe app id.N selfs    f/home/rurouni/.hermes/hermes-agent/venv/lib/python3.11/site-packages/microsoft_teams/api/auth/token.pyapp_idzTokenProtocol.app_id   	     	    c                     dS )zThe app display name.Nr   r   s    r   app_display_namezTokenProtocol.app_display_name   r   r   c                     dS )zThe tenant id.Nr   r   s    r   	tenant_idzTokenProtocol.tenant_id   r   r   c                     dS )z%The service url to send responses to.Nr   r   s    r   service_urlzTokenProtocol.service_url   r   r   c                     dS )z#Where the activity originated from.Nr   r   s    r   from_zTokenProtocol.from_#   r   r   c                     dS )zThe id of the activity sender.Nr   r   s    r   from_idzTokenProtocol.from_id(   r   r   c                     dS )z8The expiration of the token since epoch in milliseconds.Nr   r   s    r   
expirationzTokenProtocol.expiration-   r   r    	buffer_msc                     dS )z
        Check if the token is expired.

        Args:
            buffer_ms: Buffer time in milliseconds (default 5 minutes).

        Returns:
            True if the token is expired, False otherwise.
        Nr   )r   r    s     r   
is_expiredzTokenProtocol.is_expired2   s	     	r   c                     dS )zString form of the token.Nr   r   s    r   __str__zTokenProtocol.__str__>   s    r   N)r   )__name__
__module____qualname____doc__propertystrr   r   r   r   r   r   r   r   intr   boolr"   r$   r   r   r   r	   r	      sw           X (3-    X 8C=    X S    X z    X     X HSM    X
 
C 
D 
 
 
 
      r   r	   N)r(   typingr   r   r   callerr   r	   r   r   r   <module>r/      s    
 9 8 8 8 8 8 8 8 8 8       4 4 4 4 4H 4 4 4 4 4r   