+
    rpÐjñ  ã                   ój   € R t ^ RIt^ RIHtHtHtHtHt ^ RIH	t
 ^RIHt ]! R4      t ! R R4      tR# )zCA Python module for interacting and consuming responses from Slack.N)ÚAnyÚOptionalÚTypeVarÚUnionÚoverload)Ú_next_cursor_is_presentÚTc                   ó¬   a € ] tR t^t o RtV 3R lR ltR tV 3R lR ltR tR t	R	 t
]RV 3R lR ll4       t]V 3R lR l4       tRR ltR tRtV tR
# )ÚAsyncSlackResponseaß  An iterable container of response data.

Attributes:
    data (dict): The json-encoded content of the response. Along
        with the headers and status code information.

Methods:
    validate: Check if the response from Slack was successful.
    get: Retrieves any key from the response data.
    next: Retrieves the next portion of results,
        if 'next_cursor' is present.

Example:
```python
import os
import slack

client = slack.AsyncWebClient(token=os.environ['SLACK_API_TOKEN'])

response1 = await client.auth_revoke(test='true')
assert not response1['revoked']

response2 = await client.auth_test()
assert response2.get('ok', False)

users = []
async for page in await client.users_list(limit=2):
    users = users + page['members']
```

Note:
    Some responses return collections of information
    like channel and user lists. If they do it's likely
    that you'll only receive a portion of results. This
    object allows you to iterate over the response which
    makes subsequent API requests until your code hits
    'break' or there are no more results to be found.

    Any attributes or methods prefixed with _underscores are
    intended to be "private" internal use only. They may be changed or
    removed at anytime.
c                óT   <€ V ^8„  d   QhRS[ RS[ RS[RS[S[S[3,          RS[RS[/# )é   Ú	http_verbÚapi_urlÚreq_argsÚdataÚheadersÚstatus_code)ÚstrÚdictr   ÚbytesÚint)ÚformatÚ__classdict__s   "€ÚT/opt/hermes/.venv/lib/python3.14/site-packages/slack_sdk/web/async_slack_response.pyÚ__annotate__ÚAsyncSlackResponse.__annotate__8   sR   ø€ ÷ 3ñ 3ñ ð	3ñ
 ð3ñ ð3ñ ‘D™%�KÕ ð3ñ ð3ñ ñ3ó    c               ó²   € W n         W0n        W@n        WPn        W`n        Wpn        WPn        R V n        Wn        \        P                  ! \        4      V n        R # ©N)r   r   r   r   r   r   Ú_initial_dataÚ
_iterationÚ_clientÚloggingÚ	getLoggerÚ__name__Ú_logger)ÚselfÚclientr   r   r   r   r   r   s   &$$$$$$$r   Ú__init__ÚAsyncSlackResponse.__init__8   sG   € ð #ŒØŒØ ŒØŒ	ØŒØ&ÔØ!ÔØˆŒØŒÜ×(Ò(¬Ó2ˆŽr   c                ór   € \        V P                  \        4      '       d   \        R4      hV P                   # )z<Return the Response data if object is converted to a string.úBAs the response.data is binary data, this operation is unsupported)Ú
isinstancer   r   Ú
ValueError©r&   s   &r   Ú__str__ÚAsyncSlackResponse.__str__N   s+   € ä�d—i‘i¤×'Ò'ÜÐaÓbÐbØ—)‘)�Ðr   c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r   ÚkeyÚreturn)r   Úbool)r   r   s   "€r   r   r   T   s   ø€ ÷ )ñ )¡ð )©ñ )r   c                ó(   € V P                  V4      R J# r   )Úget©r&   r2   s   &&r   Ú__contains__ÚAsyncSlackResponse.__contains__T   s   € Ø�x‰x˜‹} DÐ(Ð(r   c                óÂ   € \        V P                  \        4      '       d   \        R4      hV P                  f   \        R4      hV P                  P	                  VR4      # )zÐRetrieves any key from the data store.

Note:
    This is implemented so users can reference the
    SlackResponse object like a dictionary.
    e.g. response["ok"]

Returns:
    The value from data or None.
r+   Nz<As the response.data is empty, this operation is unsupported©r,   r   r   r-   r6   r7   s   &&r   Ú__getitem__ÚAsyncSlackResponse.__getitem__W   sL   € ô �d—i‘i¤×'Ò'ÜÐaÓbÐbØ�9‰9ÒÜÐ[Ó\Ð\Ø�y‰y�}‰}˜S $Ó'Ð'r   c                óŒ   € \        V P                  \        4      '       d   \        R4      h^ V n        V P
                  V n        V # )zÀEnables the ability to iterate over the response.
It's required async-for the iterator protocol.

Note:
    This enables Slack cursor-based pagination.

Returns:
    (AsyncSlackResponse) self
r+   )r,   r   r   r-   r    r   r.   s   &r   Ú	__aiter__ÚAsyncSlackResponse.__aiter__h   s:   € ô �d—i‘i¤×'Ò'ÜÐaÓbÐbØˆŒØ×&Ñ&ˆŒ	Øˆr   c              ƒ  ó<  "  € \        V P                  \        4      '       d   \        R4      hV ;P                  ^,          un        V P                  ^8X  d   V # \        V P                  4      '       Ed   V P                  P                  R/ 4      pVf   / pV P                  P                  R/ 4      P                  R4      ;'       g    V P                  P                  R4      pVP                  RV/4       V P                  P                  RV/4       V P                  P                  V P                  V P                  V P                  R7      G Rj  x€L
 pVR,          V n        VR	,          V n        VR
,          V n        V P                  4       # \         h LD5i)a`  Retrieves the next portion of results, if 'next_cursor' is present.

Note:
    Some responses return collections of information
    like channel and user lists. If they do it's likely
    that you'll only receive a portion of results. This
    method allows you to iterate over the response until
    your code hits 'break' or there are no more results
    to be found.

Returns:
    (AsyncSlackResponse) self
        With the new response data now attached to this object.

Raises:
    SlackApiError: If the request to the Slack API failed.
    StopAsyncIteration: If 'next_cursor' is not present or empty.
r+   ÚparamsNÚresponse_metadataÚnext_cursorÚcursor)r   r   r   r   r   r   )r,   r   r   r-   r    r   r   r6   Úupdater!   Ú_requestr   r   r   r   ÚvalidateÚStopAsyncIteration)r&   rB   rD   Úresponses   &   r   Ú	__anext__ÚAsyncSlackResponse.__anext__x   sF  é € ô& �d—i‘i¤×'Ò'ÜÐaÓbÐbØ�Š˜1Õ�Ø�?‰?˜aÔØˆKÜ" 4§9¡9×-Ó-Ø—]‘]×&Ñ& x°Ó4ˆFØŠ~Ø�ØŸ)™)Ÿ-™-Ð(;¸RÓ@×DÑDÀ]ÓS×sÐsÐW[×W`ÑW`×WdÑWdÐerÓWsˆKØ�M‰M˜8 [Ð1Ô2Ø�M‰M× Ñ  (¨FÐ!3Ô4à!Ÿ\™\×2Ñ2ØŸ.™.ØŸ™ØŸ™ð 3ó ÷ ˆHð ! Õ(ˆDŒIØ# IÕ.ˆDŒLØ'¨Õ6ˆDÔØ—=‘=“?Ð"ä$Ð$ñùs   ‚CFÃ
BFÅFÅAFNc                ó:   <€ V ^8„  d   QhRS[ RRRS[S[,          /# )r   r2   ÚdefaultNr3   )r   r   r   )r   r   s   "€r   r   r   ¦   s   ø€ ×GÑG‘sÐG TÐG±X¹cµ]ÑGr   c                ó   € R # r   © ©r&   r2   rN   s   &&&r   r6   ÚAsyncSlackResponse.get¥   s   € ÙDGr   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[/# )r   r2   rN   r3   )r   r   )r   r   s   "€r   r   r   ©   s   ø€ ×1Ñ1‘sÐ1¡QÐ1©1Ñ1r   c                ó   € R # r   rP   rQ   s   &&&r   r6   rR   ¨   s   € Ù.1r   c                ó®   € \        V P                  \        4      '       d   \        R4      hV P                  f   R# V P                  P	                  W4      # )zïRetrieves any key from the response data.

Note:
    This is implemented so users can reference the
    SlackResponse object like a dictionary.
    e.g. response.get("ok", False)

Returns:
    The value from data or the specified default.
r+   Nr;   rQ   s   &&&r   r6   rR   «   sA   € ô �d—i‘i¤×'Ò'ÜÐaÓbÐbØ�9‰9ÒÙØ�y‰y�}‰}˜SÓ*Ð*r   c                ó8  € V P                   ^È8X  dW   V P                  '       dE   \        V P                  \        4      '       g#   V P                  P	                  RR4      '       d   V # RV P
                   RV P                    R2p\        P                  ! WR7      h)zÎCheck if the response from Slack was successful.

Returns:
    (AsyncSlackResponse)
        This method returns it's own object. e.g. 'self'

Raises:
    SlackApiError: The request to the Slack API failed.
ÚokFz+The request to the Slack API failed. (url: z
, status: Ú))ÚmessagerJ   )r   r   r,   r   r6   r   ÚeÚSlackApiError)r&   Úmsgs   & r   rH   ÚAsyncSlackResponse.validate¼   sz   € ð ×Ñ˜sÔ" t§y§y y´jÀÇÁÌE×6RÒ6RÐVZ×V_ÑV_×VcÑVcÐdhÐjo×VpÒVpØˆKØ;¸D¿L¹L¸>ÈÐTX×TdÑTdÐSeÐefÐgˆÜ�oŠo cÔ9Ð9r   )
r!   r   r    r%   r   r   r   r   r   r   r   )r$   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r(   r/   r8   r<   r?   rK   r   r6   rH   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r
   r
      sd   ø‡ € ñ)÷V3ð 3ò,÷)ð )ò(ò"ò +%ðZ ßGÑGó ØGàß1ó Ø1ô+÷":ð :r   r
   )ra   r"   Útypingr   r   r   r   r   Úslack_sdk.errorsÚerrorsrZ   Úinternal_utilsr   r   r
   rP   r   r   Ú<module>rh      s,   ðÙ Iã ß :Õ :å Ý 3áˆCƒL€÷}:ó }:r   