
    'j_                     B    d dl mZmZmZ d dlmZ  G d de          ZdS )    )OptionalSequenceUnion)SlackResponsec                   "   e Zd ZU dZee         ed<   ee         ed<   ee         ed<   ee         ed<   ee         ed<   ee         ed<   ee         ed<   eee                  ed	<   ee         ed
<   ee         ed<   ee         ed<   eee                  ed<   ddddddddddd
dee         dee         dee         dee         dee         dee         dee         d	eeee         ef                  d
ee         dee         dee         deeee         ef                  fdZ	e
dddddddee         dee         d	eeee         ef                  deeee         ef                  deedf         deeedf                  dd fd            ZdS )AuthorizeResultzAuthorize function call resultenterprise_idteam_idteamurlbot_idbot_user_id	bot_token
bot_scopesuser_iduser
user_tokenuser_scopesN)
r   r   r   r   r   r   r   r   r   r   c                   |x| d<   | _         |x| d<   | _        |x| d<   | _        |x| d<   | _        |x| d<   | _        |x| d<   | _        |x| d<   | _        |4t          |t                    rd	 |	                    d
          D             }|x| d<   | _
        |	x| d<   | _        |
x| d<   | _        |x| d<   | _        |4t          |t                    rd |	                    d
          D             }|x| d<   | _        dS )a  
        Args:
            enterprise_id: Organization ID (Enterprise Grid) starting with `E`
            team_id: Workspace ID starting with `T`
            team: Workspace name
            url: Workspace slack.com URL
            bot_user_id: Bot user's User ID starting with either `U` or `W`
            bot_id: Bot ID starting with `B`
            bot_token: Bot user access token starting with `xoxb-`
            bot_scopes: The scopes associated with the bot token
            user_id: The request user ID
            user: The request user's name
            user_token: User access token starting with `xoxp-`
            user_scopes: The scopes associated wth the user token
        r	   r
   r   r   r   r   r   Nc                 6    g | ]}|                                 S  strip.0scopes     j/usr/local/lib/hermes-agent/venv/lib/python3.11/site-packages/slack_bolt/authorization/authorize_result.py
<listcomp>z,AuthorizeResult.__init__.<locals>.<listcomp>B   s     KKKE%++--KKK    ,r   r   r   r   c                 6    g | ]}|                                 S r   r   r   s     r   r   z,AuthorizeResult.__init__.<locals>.<listcomp>I   s     MMMU5;;==MMMr   r   )r	   r
   r   r   r   r   r   
isinstancestrsplitr   r   r   r   r   )selfr	   r
   r   r   r   r   r   r   r   r   r   r   s                r   __init__zAuthorizeResult.__init__   sA   B 6CB_ 2)00Y$,#''Vty!$$Udh1<<]d.'--X-66[DN!jS&A&A!KKZ5E5Ec5J5JKKKJ/99\T_)00Y$,#''Vty/99\T_"z+s'C'C"MMk6G6G6L6LMMMK1<<]d...r   )r   r   r   r   user_auth_test_responseauth_test_responseAsyncSlackResponser'   returnc                ,   |                     d          |                     d          nd }|                     d          |                     d          nd }|                     d          }	|,|*|                     d          }|                     d          }	t          |                     d          |                     d          |                     d          |                     d          |                     d          ||||	|||          S )	Nr   r   r   r	   r
   r   r   )r	   r
   r   r   r   r   r   r   r   r   r   r   )getr   )
clsr   r   r   r   r(   r'   r   r   	user_names
             r   from_auth_test_responsez'AuthorizeResult.from_auth_test_responseL   s,    2D1G1G1Q1Q1]""9---cg 	 GYF\F\]eFfFfFn!3!7!7	!B!B!Btx#5#9#9&#A#A	?6B-11)<<G/33F;;I,00AA&**955#''//"&&u--%))(33#!!#
 
 
 	
r   )__name__
__module____qualname____doc__r   r#   __annotations__r   r   r&   classmethodr   r/   r   r   r   r   r      s        ((C=   c]
3-	#SM#}#''''c]
3-(3-(((( #!%) $#':>!%"$(;?!2= 2= 2=  }2= #	2=
 sm2= c]2= c]2= 2= C=2= U8C=##5672= #2= sm2= SM2=  eHSM3$678!2= 2= 2= 2=h  $($(:>;?X\ 
  
  
 C= 
 SM	 

 U8C=##567 
 eHSM3$678 
 "-1E"EF 
 "*%?S0S*T!U 
 
 
  
  
 [ 
  
  
r   r   N)typingr   r   r   slack_sdk.webr   dictr   r   r   r   <module>r9      ss    , , , , , , , , , , ' ' ' ' ' 'g
 g
 g
 g
 g
d g
 g
 g
 g
 g
r   