+
    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
# )ÚSlackResponseaÂ  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.WebClient(token=os.environ['SLACK_API_TOKEN'])

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

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

users = []
for page in 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   "€ÚN/opt/hermes/.venv/lib/python3.14/site-packages/slack_sdk/web/slack_response.pyÚ__annotate__ÚSlackResponse.__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__ÚSlackResponse.__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__ÚSlackResponse.__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__ÚSlackResponse.__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__ÚSlackResponse.__getitem__W   sL   € ô �d—i‘i¤×'Ò'ÜÐaÓbÐbØ�9‰9ÒÜÐ[Ó\Ð\Ø�y‰y�}‰}˜S $Ó'Ð'r   c                ó6   € ^ V n         V P                  V n        V # )zµEnables the ability to iterate over the response.
It's required for the iterator protocol.

Note:
    This enables Slack cursor-based pagination.

Returns:
    (SlackResponse) self
)r    r   r   r.   s   &r   Ú__iter__ÚSlackResponse.__iter__h   s   € ð ˆŒØ×&Ñ&ˆŒ	Øˆ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                  R7      pVR,          V n        VR,          V n        VR	,          V n        V P                  4       # \        h)
aV  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:
    (SlackResponse) self
        With the new response data now attached to this object.

Raises:
    SlackApiError: If the request to the Slack API failed.
    StopIteration: If 'next_cursor' is not present or empty.
r+   ÚparamsÚresponse_metadataÚnext_cursorÚcursor)r   r   r   r   r   )r,   r   r   r-   r    r   r   r6   Úupdater!   Ú_request_for_paginationr   r   r   ÚvalidateÚStopIteration)r&   rB   rD   Úresponses   &   r   Ú__next__ÚSlackResponse.__next__v   s/  € ô& �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ð —|‘|×;Ñ;ÀDÇLÁLÐ[_×[hÑ[hÐ;ÓiˆHØ  Õ(ˆDŒIØ# IÕ.ˆDŒLØ'¨Õ6ˆDÔØ—=‘=“?Ð"äÐr   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   ÚSlackResponse.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                ó  € V P                   ^È8X  dW   V P                  '       dE   \        V P                  \        4      '       g#   V P                  P	                  RR4      '       d   V # RV P
                   R2p\        P                  ! WR7      h)zÉCheck if the response from Slack was successful.

Returns:
    (SlackResponse)
        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: Ú))ÚmessagerJ   )r   r   r,   r   r6   r   ÚeÚSlackApiError)r&   Úmsgs   & r   rH   ÚSlackResponse.validate¶   sk   € ð ×Ñ˜sÔ" t§y§y y´jÀÇÁÌE×6RÒ6RÐVZ×V_ÑV_×VcÑVcÐdhÐjo×VpÒVpØˆKØ;¸D¿L¹L¸>ÈÐKˆÜ�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ò,÷)ð )ò(ò"ò' ðR ß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€÷w:ó w:r   