Skip to content

Commit 72cf13e

Browse files
committed
version 3.8.0
1 parent dcf1c7c commit 72cf13e

33 files changed

+4267
-550
lines changed

docs/api-docs/slack_sdk/audit_logs/v1/logs.html

Lines changed: 575 additions & 3 deletions
Large diffs are not rendered by default.

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ <h1 class="title">Module <code>slack_sdk.errors</code></h1>
6262
super(SlackApiError, self).__init__(msg)
6363

6464

65+
class SlackTokenRotationError(SlackClientError):
66+
&#34;&#34;&#34;Error raised when the oauth.v2.access call for token rotation fails&#34;&#34;&#34;
67+
68+
api_error: SlackApiError
69+
70+
def __init__(self, api_error: SlackApiError):
71+
self.api_error = api_error
72+
73+
6574
class SlackClientNotConnectedError(SlackClientError):
6675
&#34;&#34;&#34;Error raised when attempting to send messages over the websocket when the
6776
connection is closed.&#34;&#34;&#34;
@@ -199,6 +208,7 @@ <h3>Subclasses</h3>
199208
<li><a title="slack_sdk.errors.SlackClientNotConnectedError" href="#slack_sdk.errors.SlackClientNotConnectedError">SlackClientNotConnectedError</a></li>
200209
<li><a title="slack_sdk.errors.SlackObjectFormationError" href="#slack_sdk.errors.SlackObjectFormationError">SlackObjectFormationError</a></li>
201210
<li><a title="slack_sdk.errors.SlackRequestError" href="#slack_sdk.errors.SlackRequestError">SlackRequestError</a></li>
211+
<li><a title="slack_sdk.errors.SlackTokenRotationError" href="#slack_sdk.errors.SlackTokenRotationError">SlackTokenRotationError</a></li>
202212
</ul>
203213
</dd>
204214
<dt id="slack_sdk.errors.SlackClientNotConnectedError"><code class="flex name class">
@@ -263,6 +273,38 @@ <h3>Ancestors</h3>
263273
<li>builtins.BaseException</li>
264274
</ul>
265275
</dd>
276+
<dt id="slack_sdk.errors.SlackTokenRotationError"><code class="flex name class">
277+
<span>class <span class="ident">SlackTokenRotationError</span></span>
278+
<span>(</span><span>api_error: <a title="slack_sdk.errors.SlackApiError" href="#slack_sdk.errors.SlackApiError">SlackApiError</a>)</span>
279+
</code></dt>
280+
<dd>
281+
<div class="desc"><p>Error raised when the oauth.v2.access call for token rotation fails</p></div>
282+
<details class="source">
283+
<summary>
284+
<span>Expand source code</span>
285+
</summary>
286+
<pre><code class="python">class SlackTokenRotationError(SlackClientError):
287+
&#34;&#34;&#34;Error raised when the oauth.v2.access call for token rotation fails&#34;&#34;&#34;
288+
289+
api_error: SlackApiError
290+
291+
def __init__(self, api_error: SlackApiError):
292+
self.api_error = api_error</code></pre>
293+
</details>
294+
<h3>Ancestors</h3>
295+
<ul class="hlist">
296+
<li><a title="slack_sdk.errors.SlackClientError" href="#slack_sdk.errors.SlackClientError">SlackClientError</a></li>
297+
<li>builtins.Exception</li>
298+
<li>builtins.BaseException</li>
299+
</ul>
300+
<h3>Class variables</h3>
301+
<dl>
302+
<dt id="slack_sdk.errors.SlackTokenRotationError.api_error"><code class="name">var <span class="ident">api_error</span><a title="slack_sdk.errors.SlackApiError" href="#slack_sdk.errors.SlackApiError">SlackApiError</a></code></dt>
303+
<dd>
304+
<div class="desc"></div>
305+
</dd>
306+
</dl>
307+
</dd>
266308
</dl>
267309
</section>
268310
</article>
@@ -300,6 +342,12 @@ <h4><code><a title="slack_sdk.errors.SlackObjectFormationError" href="#slack_sdk
300342
<li>
301343
<h4><code><a title="slack_sdk.errors.SlackRequestError" href="#slack_sdk.errors.SlackRequestError">SlackRequestError</a></code></h4>
302344
</li>
345+
<li>
346+
<h4><code><a title="slack_sdk.errors.SlackTokenRotationError" href="#slack_sdk.errors.SlackTokenRotationError">SlackTokenRotationError</a></code></h4>
347+
<ul class="">
348+
<li><code><a title="slack_sdk.errors.SlackTokenRotationError.api_error" href="#slack_sdk.errors.SlackTokenRotationError.api_error">api_error</a></code></li>
349+
</ul>
350+
</li>
303351
</ul>
304352
</li>
305353
</ul>

docs/api-docs/slack_sdk/models/blocks/block_elements.html

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,17 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.block_elements</code></h1
177177
subtype: Optional[str] = None,
178178
**others: dict,
179179
):
180+
&#34;&#34;&#34;An interactive block element.
181+
182+
We generally recommend using the concrete subclasses for better supports of available properties.
183+
&#34;&#34;&#34;
180184
if subtype:
181185
self._subtype_warning()
182186
super().__init__(type=type or subtype)
183-
show_unknown_key_warning(self, others)
187+
188+
# Note that we don&#39;t intentionally have show_unknown_key_warning for the unknown key warnings here.
189+
# It&#39;s fine to pass any kwargs to the held dict here although the class does not do any validation.
190+
# show_unknown_key_warning(self, others)
184191

185192
self.action_id = action_id
186193

@@ -218,11 +225,17 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.block_elements</code></h1
218225
confirm: Optional[Union[dict, ConfirmObject]] = None,
219226
**others: dict,
220227
):
221-
&#34;&#34;&#34;InteractiveElement that is usable in input blocks&#34;&#34;&#34;
228+
&#34;&#34;&#34;InteractiveElement that is usable in input blocks
229+
230+
We generally recommend using the concrete subclasses for better supports of available properties.
231+
&#34;&#34;&#34;
222232
if subtype:
223233
self._subtype_warning()
224234
super().__init__(action_id=action_id, type=type or subtype)
225-
show_unknown_key_warning(self, others)
235+
236+
# Note that we don&#39;t intentionally have show_unknown_key_warning for the unknown key warnings here.
237+
# It&#39;s fine to pass any kwargs to the held dict here although the class does not do any validation.
238+
# show_unknown_key_warning(self, others)
226239

227240
self.placeholder = TextObject.parse(placeholder)
228241
self.confirm = ConfirmObject.parse(confirm)
@@ -2383,7 +2396,8 @@ <h3>Inherited members</h3>
23832396
<dd>
23842397
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
23852398
<a href="https://api.slack.com/reference/block-kit/block-elements">https://api.slack.com/reference/block-kit/block-elements</a></p>
2386-
<p>InteractiveElement that is usable in input blocks</p></div>
2399+
<p>InteractiveElement that is usable in input blocks</p>
2400+
<p>We generally recommend using the concrete subclasses for better supports of available properties.</p></div>
23872401
<details class="source">
23882402
<summary>
23892403
<span>Expand source code</span>
@@ -2413,11 +2427,17 @@ <h3>Inherited members</h3>
24132427
confirm: Optional[Union[dict, ConfirmObject]] = None,
24142428
**others: dict,
24152429
):
2416-
&#34;&#34;&#34;InteractiveElement that is usable in input blocks&#34;&#34;&#34;
2430+
&#34;&#34;&#34;InteractiveElement that is usable in input blocks
2431+
2432+
We generally recommend using the concrete subclasses for better supports of available properties.
2433+
&#34;&#34;&#34;
24172434
if subtype:
24182435
self._subtype_warning()
24192436
super().__init__(action_id=action_id, type=type or subtype)
2420-
show_unknown_key_warning(self, others)
2437+
2438+
# Note that we don&#39;t intentionally have show_unknown_key_warning for the unknown key warnings here.
2439+
# It&#39;s fine to pass any kwargs to the held dict here although the class does not do any validation.
2440+
# show_unknown_key_warning(self, others)
24212441

24222442
self.placeholder = TextObject.parse(placeholder)
24232443
self.confirm = ConfirmObject.parse(confirm)
@@ -2498,7 +2518,9 @@ <h3>Inherited members</h3>
24982518
</code></dt>
24992519
<dd>
25002520
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
2501-
<a href="https://api.slack.com/reference/block-kit/block-elements">https://api.slack.com/reference/block-kit/block-elements</a></p></div>
2521+
<a href="https://api.slack.com/reference/block-kit/block-elements">https://api.slack.com/reference/block-kit/block-elements</a></p>
2522+
<p>An interactive block element.</p>
2523+
<p>We generally recommend using the concrete subclasses for better supports of available properties.</p></div>
25022524
<details class="source">
25032525
<summary>
25042526
<span>Expand source code</span>
@@ -2518,10 +2540,17 @@ <h3>Inherited members</h3>
25182540
subtype: Optional[str] = None,
25192541
**others: dict,
25202542
):
2543+
&#34;&#34;&#34;An interactive block element.
2544+
2545+
We generally recommend using the concrete subclasses for better supports of available properties.
2546+
&#34;&#34;&#34;
25212547
if subtype:
25222548
self._subtype_warning()
25232549
super().__init__(type=type or subtype)
2524-
show_unknown_key_warning(self, others)
2550+
2551+
# Note that we don&#39;t intentionally have show_unknown_key_warning for the unknown key warnings here.
2552+
# It&#39;s fine to pass any kwargs to the held dict here although the class does not do any validation.
2553+
# show_unknown_key_warning(self, others)
25252554

25262555
self.action_id = action_id
25272556

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ <h2 class="section-title" id="header-submodules">Sub-modules</h2>
6262
<dd>
6363
<div class="desc"></div>
6464
</dd>
65+
<dt><code class="name"><a title="slack_sdk.oauth.token_rotation" href="token_rotation/index.html">slack_sdk.oauth.token_rotation</a></code></dt>
66+
<dd>
67+
<div class="desc"></div>
68+
</dd>
6569
</dl>
6670
</section>
6771
<section>
@@ -89,6 +93,7 @@ <h1>Index</h1>
8993
<li><code><a title="slack_sdk.oauth.redirect_uri_page_renderer" href="redirect_uri_page_renderer/index.html">slack_sdk.oauth.redirect_uri_page_renderer</a></code></li>
9094
<li><code><a title="slack_sdk.oauth.state_store" href="state_store/index.html">slack_sdk.oauth.state_store</a></code></li>
9195
<li><code><a title="slack_sdk.oauth.state_utils" href="state_utils/index.html">slack_sdk.oauth.state_utils</a></code></li>
96+
<li><code><a title="slack_sdk.oauth.token_rotation" href="token_rotation/index.html">slack_sdk.oauth.token_rotation</a></code></li>
9297
</ul>
9398
</li>
9499
</ul>

0 commit comments

Comments
 (0)