Skip to content

Commit 774b0e1

Browse files
committed
version 3.23.1
1 parent 2afeba6 commit 774b0e1

File tree

9 files changed

+65
-11
lines changed

9 files changed

+65
-11
lines changed

docs/api-docs/slack_sdk/index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,8 @@ <h2 id="note">Note</h2>
19051905
self,
19061906
*,
19071907
team_id: str,
1908+
include_deactivated_user_workspaces: Optional[bool] = None,
1909+
is_active: Optional[bool] = None,
19081910
cursor: Optional[str] = None,
19091911
limit: Optional[int] = None,
19101912
**kwargs,
@@ -1915,6 +1917,8 @@ <h2 id="note">Note</h2>
19151917
kwargs.update(
19161918
{
19171919
&#34;team_id&#34;: team_id,
1920+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
1921+
&#34;is_active&#34;: is_active,
19181922
&#34;cursor&#34;: cursor,
19191923
&#34;limit&#34;: limit,
19201924
}
@@ -7507,7 +7511,7 @@ <h3>Methods</h3>
75077511
</details>
75087512
</dd>
75097513
<dt id="slack_sdk.WebClient.admin_users_list"><code class="name flex">
7510-
<span>def <span class="ident">admin_users_list</span></span>(<span>self, *, team_id: str, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="web/slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
7514+
<span>def <span class="ident">admin_users_list</span></span>(<span>self, *, team_id: str, include_deactivated_user_workspaces: Optional[bool] = None, is_active: Optional[bool] = None, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="web/slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
75117515
</code></dt>
75127516
<dd>
75137517
<div class="desc"><p>List users on a workspace
@@ -7520,6 +7524,8 @@ <h3>Methods</h3>
75207524
self,
75217525
*,
75227526
team_id: str,
7527+
include_deactivated_user_workspaces: Optional[bool] = None,
7528+
is_active: Optional[bool] = None,
75237529
cursor: Optional[str] = None,
75247530
limit: Optional[int] = None,
75257531
**kwargs,
@@ -7530,6 +7536,8 @@ <h3>Methods</h3>
75307536
kwargs.update(
75317537
{
75327538
&#34;team_id&#34;: team_id,
7539+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
7540+
&#34;is_active&#34;: is_active,
75337541
&#34;cursor&#34;: cursor,
75347542
&#34;limit&#34;: limit,
75357543
}

docs/api-docs/slack_sdk/version.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_sdk.version</code></h1>
2828
<span>Expand source code</span>
2929
</summary>
3030
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-sdk/&#34;&#34;&#34;
31-
__version__ = &#34;3.23.0&#34;</code></pre>
31+
__version__ = &#34;3.23.1&#34;</code></pre>
3232
</details>
3333
</section>
3434
<section>

docs/api-docs/slack_sdk/web/async_client.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,6 +1704,8 @@ <h1 class="title">Module <code>slack_sdk.web.async_client</code></h1>
17041704
self,
17051705
*,
17061706
team_id: str,
1707+
include_deactivated_user_workspaces: Optional[bool] = None,
1708+
is_active: Optional[bool] = None,
17071709
cursor: Optional[str] = None,
17081710
limit: Optional[int] = None,
17091711
**kwargs,
@@ -1714,6 +1716,8 @@ <h1 class="title">Module <code>slack_sdk.web.async_client</code></h1>
17141716
kwargs.update(
17151717
{
17161718
&#34;team_id&#34;: team_id,
1719+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
1720+
&#34;is_active&#34;: is_active,
17171721
&#34;cursor&#34;: cursor,
17181722
&#34;limit&#34;: limit,
17191723
}
@@ -6751,6 +6755,8 @@ <h2 id="note">Note</h2>
67516755
self,
67526756
*,
67536757
team_id: str,
6758+
include_deactivated_user_workspaces: Optional[bool] = None,
6759+
is_active: Optional[bool] = None,
67546760
cursor: Optional[str] = None,
67556761
limit: Optional[int] = None,
67566762
**kwargs,
@@ -6761,6 +6767,8 @@ <h2 id="note">Note</h2>
67616767
kwargs.update(
67626768
{
67636769
&#34;team_id&#34;: team_id,
6770+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
6771+
&#34;is_active&#34;: is_active,
67646772
&#34;cursor&#34;: cursor,
67656773
&#34;limit&#34;: limit,
67666774
}
@@ -12353,7 +12361,7 @@ <h3>Methods</h3>
1235312361
</details>
1235412362
</dd>
1235512363
<dt id="slack_sdk.web.async_client.AsyncWebClient.admin_users_list"><code class="name flex">
12356-
<span>async def <span class="ident">admin_users_list</span></span>(<span>self, *, team_id: str, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs) ‑> <a title="slack_sdk.web.async_slack_response.AsyncSlackResponse" href="async_slack_response.html#slack_sdk.web.async_slack_response.AsyncSlackResponse">AsyncSlackResponse</a></span>
12364+
<span>async def <span class="ident">admin_users_list</span></span>(<span>self, *, team_id: str, include_deactivated_user_workspaces: Optional[bool] = None, is_active: Optional[bool] = None, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs) ‑> <a title="slack_sdk.web.async_slack_response.AsyncSlackResponse" href="async_slack_response.html#slack_sdk.web.async_slack_response.AsyncSlackResponse">AsyncSlackResponse</a></span>
1235712365
</code></dt>
1235812366
<dd>
1235912367
<div class="desc"><p>List users on a workspace
@@ -12366,6 +12374,8 @@ <h3>Methods</h3>
1236612374
self,
1236712375
*,
1236812376
team_id: str,
12377+
include_deactivated_user_workspaces: Optional[bool] = None,
12378+
is_active: Optional[bool] = None,
1236912379
cursor: Optional[str] = None,
1237012380
limit: Optional[int] = None,
1237112381
**kwargs,
@@ -12376,6 +12386,8 @@ <h3>Methods</h3>
1237612386
kwargs.update(
1237712387
{
1237812388
&#34;team_id&#34;: team_id,
12389+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
12390+
&#34;is_active&#34;: is_active,
1237912391
&#34;cursor&#34;: cursor,
1238012392
&#34;limit&#34;: limit,
1238112393
}

docs/api-docs/slack_sdk/web/base_client.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ <h1 class="title">Module <code>slack_sdk.web.base_client</code></h1>
4848
from urllib.parse import urlencode
4949
from urllib.request import Request, urlopen, OpenerDirector, ProxyHandler, HTTPSHandler
5050

51-
import slack_sdk.errors as err
5251
from slack_sdk.errors import SlackRequestError
5352
from .deprecation import show_deprecation_warning_if_any
5453
from .internal_utils import (
@@ -328,7 +327,8 @@ <h1 class="title">Module <code>slack_sdk.web.base_client</code></h1>
328327
response_body_data = json.loads(response[&#34;body&#34;])
329328
except json.decoder.JSONDecodeError:
330329
message = _build_unexpected_body_error_message(response.get(&#34;body&#34;, &#34;&#34;))
331-
raise err.SlackApiError(message, response)
330+
self._logger.error(f&#34;Failed to decode Slack API response: {message}&#34;)
331+
response_body_data = {&#34;ok&#34;: False, &#34;error&#34;: message}
332332

333333
all_params: Dict[str, Any] = copy.copy(body_params) if body_params is not None else {}
334334
if query_params:
@@ -911,7 +911,8 @@ <h2 class="section-title" id="header-classes">Classes</h2>
911911
response_body_data = json.loads(response[&#34;body&#34;])
912912
except json.decoder.JSONDecodeError:
913913
message = _build_unexpected_body_error_message(response.get(&#34;body&#34;, &#34;&#34;))
914-
raise err.SlackApiError(message, response)
914+
self._logger.error(f&#34;Failed to decode Slack API response: {message}&#34;)
915+
response_body_data = {&#34;ok&#34;: False, &#34;error&#34;: message}
915916

916917
all_params: Dict[str, Any] = copy.copy(body_params) if body_params is not None else {}
917918
if query_params:

docs/api-docs/slack_sdk/web/client.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,6 +1695,8 @@ <h1 class="title">Module <code>slack_sdk.web.client</code></h1>
16951695
self,
16961696
*,
16971697
team_id: str,
1698+
include_deactivated_user_workspaces: Optional[bool] = None,
1699+
is_active: Optional[bool] = None,
16981700
cursor: Optional[str] = None,
16991701
limit: Optional[int] = None,
17001702
**kwargs,
@@ -1705,6 +1707,8 @@ <h1 class="title">Module <code>slack_sdk.web.client</code></h1>
17051707
kwargs.update(
17061708
{
17071709
&#34;team_id&#34;: team_id,
1710+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
1711+
&#34;is_active&#34;: is_active,
17081712
&#34;cursor&#34;: cursor,
17091713
&#34;limit&#34;: limit,
17101714
}
@@ -6742,6 +6746,8 @@ <h2 id="note">Note</h2>
67426746
self,
67436747
*,
67446748
team_id: str,
6749+
include_deactivated_user_workspaces: Optional[bool] = None,
6750+
is_active: Optional[bool] = None,
67456751
cursor: Optional[str] = None,
67466752
limit: Optional[int] = None,
67476753
**kwargs,
@@ -6752,6 +6758,8 @@ <h2 id="note">Note</h2>
67526758
kwargs.update(
67536759
{
67546760
&#34;team_id&#34;: team_id,
6761+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
6762+
&#34;is_active&#34;: is_active,
67556763
&#34;cursor&#34;: cursor,
67566764
&#34;limit&#34;: limit,
67576765
}
@@ -12344,7 +12352,7 @@ <h3>Methods</h3>
1234412352
</details>
1234512353
</dd>
1234612354
<dt id="slack_sdk.web.client.WebClient.admin_users_list"><code class="name flex">
12347-
<span>def <span class="ident">admin_users_list</span></span>(<span>self, *, team_id: str, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
12355+
<span>def <span class="ident">admin_users_list</span></span>(<span>self, *, team_id: str, include_deactivated_user_workspaces: Optional[bool] = None, is_active: Optional[bool] = None, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
1234812356
</code></dt>
1234912357
<dd>
1235012358
<div class="desc"><p>List users on a workspace
@@ -12357,6 +12365,8 @@ <h3>Methods</h3>
1235712365
self,
1235812366
*,
1235912367
team_id: str,
12368+
include_deactivated_user_workspaces: Optional[bool] = None,
12369+
is_active: Optional[bool] = None,
1236012370
cursor: Optional[str] = None,
1236112371
limit: Optional[int] = None,
1236212372
**kwargs,
@@ -12367,6 +12377,8 @@ <h3>Methods</h3>
1236712377
kwargs.update(
1236812378
{
1236912379
&#34;team_id&#34;: team_id,
12380+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
12381+
&#34;is_active&#34;: is_active,
1237012382
&#34;cursor&#34;: cursor,
1237112383
&#34;limit&#34;: limit,
1237212384
}

docs/api-docs/slack_sdk/web/index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2116,6 +2116,8 @@ <h2 id="note">Note</h2>
21162116
self,
21172117
*,
21182118
team_id: str,
2119+
include_deactivated_user_workspaces: Optional[bool] = None,
2120+
is_active: Optional[bool] = None,
21192121
cursor: Optional[str] = None,
21202122
limit: Optional[int] = None,
21212123
**kwargs,
@@ -2126,6 +2128,8 @@ <h2 id="note">Note</h2>
21262128
kwargs.update(
21272129
{
21282130
&#34;team_id&#34;: team_id,
2131+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
2132+
&#34;is_active&#34;: is_active,
21292133
&#34;cursor&#34;: cursor,
21302134
&#34;limit&#34;: limit,
21312135
}
@@ -7718,7 +7722,7 @@ <h3>Methods</h3>
77187722
</details>
77197723
</dd>
77207724
<dt id="slack_sdk.web.WebClient.admin_users_list"><code class="name flex">
7721-
<span>def <span class="ident">admin_users_list</span></span>(<span>self, *, team_id: str, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
7725+
<span>def <span class="ident">admin_users_list</span></span>(<span>self, *, team_id: str, include_deactivated_user_workspaces: Optional[bool] = None, is_active: Optional[bool] = None, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
77227726
</code></dt>
77237727
<dd>
77247728
<div class="desc"><p>List users on a workspace
@@ -7731,6 +7735,8 @@ <h3>Methods</h3>
77317735
self,
77327736
*,
77337737
team_id: str,
7738+
include_deactivated_user_workspaces: Optional[bool] = None,
7739+
is_active: Optional[bool] = None,
77347740
cursor: Optional[str] = None,
77357741
limit: Optional[int] = None,
77367742
**kwargs,
@@ -7741,6 +7747,8 @@ <h3>Methods</h3>
77417747
kwargs.update(
77427748
{
77437749
&#34;team_id&#34;: team_id,
7750+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
7751+
&#34;is_active&#34;: is_active,
77447752
&#34;cursor&#34;: cursor,
77457753
&#34;limit&#34;: limit,
77467754
}

docs/api-docs/slack_sdk/web/internal_utils.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,10 @@ <h1 class="title">Module <code>slack_sdk.web.internal_utils</code></h1>
258258
A boolean value.
259259
&#34;&#34;&#34;
260260
# Only admin.conversations.search returns next_cursor at the top level
261-
present = (&#34;next_cursor&#34; in data and data[&#34;next_cursor&#34;] != &#34;&#34;) or (
261+
present = (&#34;next_cursor&#34; in data and data[&#34;next_cursor&#34;] is not None and data[&#34;next_cursor&#34;] != &#34;&#34;) or (
262262
&#34;response_metadata&#34; in data
263263
and &#34;next_cursor&#34; in data[&#34;response_metadata&#34;]
264+
and data[&#34;response_metadata&#34;][&#34;next_cursor&#34;] is not None
264265
and data[&#34;response_metadata&#34;][&#34;next_cursor&#34;] != &#34;&#34;
265266
)
266267
return present

docs/api-docs/slack_sdk/web/legacy_client.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,8 @@ <h1 class="title">Module <code>slack_sdk.web.legacy_client</code></h1>
17051705
self,
17061706
*,
17071707
team_id: str,
1708+
include_deactivated_user_workspaces: Optional[bool] = None,
1709+
is_active: Optional[bool] = None,
17081710
cursor: Optional[str] = None,
17091711
limit: Optional[int] = None,
17101712
**kwargs,
@@ -1715,6 +1717,8 @@ <h1 class="title">Module <code>slack_sdk.web.legacy_client</code></h1>
17151717
kwargs.update(
17161718
{
17171719
&#34;team_id&#34;: team_id,
1720+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
1721+
&#34;is_active&#34;: is_active,
17181722
&#34;cursor&#34;: cursor,
17191723
&#34;limit&#34;: limit,
17201724
}
@@ -6752,6 +6756,8 @@ <h2 id="note">Note</h2>
67526756
self,
67536757
*,
67546758
team_id: str,
6759+
include_deactivated_user_workspaces: Optional[bool] = None,
6760+
is_active: Optional[bool] = None,
67556761
cursor: Optional[str] = None,
67566762
limit: Optional[int] = None,
67576763
**kwargs,
@@ -6762,6 +6768,8 @@ <h2 id="note">Note</h2>
67626768
kwargs.update(
67636769
{
67646770
&#34;team_id&#34;: team_id,
6771+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
6772+
&#34;is_active&#34;: is_active,
67656773
&#34;cursor&#34;: cursor,
67666774
&#34;limit&#34;: limit,
67676775
}
@@ -12354,7 +12362,7 @@ <h3>Methods</h3>
1235412362
</details>
1235512363
</dd>
1235612364
<dt id="slack_sdk.web.legacy_client.LegacyWebClient.admin_users_list"><code class="name flex">
12357-
<span>def <span class="ident">admin_users_list</span></span>(<span>self, *, team_id: str, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs) ‑> Union[_asyncio.Future, <a title="slack_sdk.web.legacy_slack_response.LegacySlackResponse" href="legacy_slack_response.html#slack_sdk.web.legacy_slack_response.LegacySlackResponse">LegacySlackResponse</a>]</span>
12365+
<span>def <span class="ident">admin_users_list</span></span>(<span>self, *, team_id: str, include_deactivated_user_workspaces: Optional[bool] = None, is_active: Optional[bool] = None, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs) ‑> Union[_asyncio.Future, <a title="slack_sdk.web.legacy_slack_response.LegacySlackResponse" href="legacy_slack_response.html#slack_sdk.web.legacy_slack_response.LegacySlackResponse">LegacySlackResponse</a>]</span>
1235812366
</code></dt>
1235912367
<dd>
1236012368
<div class="desc"><p>List users on a workspace
@@ -12367,6 +12375,8 @@ <h3>Methods</h3>
1236712375
self,
1236812376
*,
1236912377
team_id: str,
12378+
include_deactivated_user_workspaces: Optional[bool] = None,
12379+
is_active: Optional[bool] = None,
1237012380
cursor: Optional[str] = None,
1237112381
limit: Optional[int] = None,
1237212382
**kwargs,
@@ -12377,6 +12387,8 @@ <h3>Methods</h3>
1237712387
kwargs.update(
1237812388
{
1237912389
&#34;team_id&#34;: team_id,
12390+
&#34;include_deactivated_user_workspaces&#34;: include_deactivated_user_workspaces,
12391+
&#34;is_active&#34;: is_active,
1238012392
&#34;cursor&#34;: cursor,
1238112393
&#34;limit&#34;: limit,
1238212394
}

slack_sdk/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Check the latest version at https://pypi.org/project/slack-sdk/"""
2-
__version__ = "3.23.0"
2+
__version__ = "3.23.1"

0 commit comments

Comments
 (0)