Skip to content

Commit 3a5cec2

Browse files
authored
chore(release): version 3.43.0 (#1902)
1 parent 0ffc13f commit 3a5cec2

9 files changed

Lines changed: 138 additions & 26 deletions

File tree

docs/reference/index.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,15 +2255,17 @@ <h2 class="section-title" id="header-classes">Classes</h2>
22552255
self,
22562256
*,
22572257
channel_id: str,
2258-
thread_ts: str,
2258+
thread_ts: Optional[str] = None,
22592259
title: Optional[str] = None,
22602260
prompts: List[Dict[str, str]],
22612261
**kwargs,
22622262
) -&gt; SlackResponse:
22632263
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
22642264
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
22652265
&#34;&#34;&#34;
2266-
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
2266+
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
2267+
if thread_ts is not None:
2268+
kwargs.update({&#34;thread_ts&#34;: thread_ts})
22672269
if title is not None:
22682270
kwargs.update({&#34;title&#34;: title})
22692271
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)
@@ -9417,7 +9419,7 @@ <h3>Methods</h3>
94179419
<a href="https://docs.slack.dev/reference/methods/assistant.threads.setStatus">https://docs.slack.dev/reference/methods/assistant.threads.setStatus</a></p></div>
94189420
</dd>
94199421
<dt id="slack_sdk.WebClient.assistant_threads_setSuggestedPrompts"><code class="name flex">
9420-
<span>def <span class="ident">assistant_threads_setSuggestedPrompts</span></span>(<span>self,<br>*,<br>channel_id: str,<br>thread_ts: str,<br>title: str | None = None,<br>prompts: List[Dict[str, str]],<br>**kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="web/slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
9422+
<span>def <span class="ident">assistant_threads_setSuggestedPrompts</span></span>(<span>self,<br>*,<br>channel_id: str,<br>thread_ts: str | None = None,<br>title: str | None = None,<br>prompts: List[Dict[str, str]],<br>**kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="web/slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
94219423
</code></dt>
94229424
<dd>
94239425
<details class="source">
@@ -9428,15 +9430,17 @@ <h3>Methods</h3>
94289430
self,
94299431
*,
94309432
channel_id: str,
9431-
thread_ts: str,
9433+
thread_ts: Optional[str] = None,
94329434
title: Optional[str] = None,
94339435
prompts: List[Dict[str, str]],
94349436
**kwargs,
94359437
) -&gt; SlackResponse:
94369438
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
94379439
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
94389440
&#34;&#34;&#34;
9439-
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
9441+
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
9442+
if thread_ts is not None:
9443+
kwargs.update({&#34;thread_ts&#34;: thread_ts})
94409444
if title is not None:
94419445
kwargs.update({&#34;title&#34;: title})
94429446
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)</code></pre>

docs/reference/signature/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ <h3>Methods</h3>
9898
self.signing_secret = signing_secret
9999
self.clock = clock
100100

101+
@property
102+
def signing_secret(self) -&gt; str:
103+
return self._signing_secret
104+
105+
@signing_secret.setter
106+
def signing_secret(self, value: str) -&gt; None:
107+
if not isinstance(value, str):
108+
raise ValueError(&#34;signing_secret must be a string&#34;)
109+
if not value.strip():
110+
raise ValueError(&#34;signing_secret must not be empty.&#34;)
111+
self._signing_secret = value
112+
101113
def is_valid_request(
102114
self,
103115
body: Union[str, bytes],
@@ -151,6 +163,21 @@ <h3>Methods</h3>
151163
With the help of signing secrets, your app can more confidently verify
152164
whether requests from us are authentic.
153165
<a href="https://docs.slack.dev/authentication/verifying-requests-from-slack/">https://docs.slack.dev/authentication/verifying-requests-from-slack/</a></p></div>
166+
<h3>Instance variables</h3>
167+
<dl>
168+
<dt id="slack_sdk.signature.SignatureVerifier.signing_secret"><code class="name">prop <span class="ident">signing_secret</span> : str</code></dt>
169+
<dd>
170+
<details class="source">
171+
<summary>
172+
<span>Expand source code</span>
173+
</summary>
174+
<pre><code class="python">@property
175+
def signing_secret(self) -&gt; str:
176+
return self._signing_secret</code></pre>
177+
</details>
178+
<div class="desc"></div>
179+
</dd>
180+
</dl>
154181
<h3>Methods</h3>
155182
<dl>
156183
<dt id="slack_sdk.signature.SignatureVerifier.generate_signature"><code class="name flex">
@@ -260,6 +287,7 @@ <h4><code><a title="slack_sdk.signature.SignatureVerifier" href="#slack_sdk.sign
260287
<li><code><a title="slack_sdk.signature.SignatureVerifier.generate_signature" href="#slack_sdk.signature.SignatureVerifier.generate_signature">generate_signature</a></code></li>
261288
<li><code><a title="slack_sdk.signature.SignatureVerifier.is_valid" href="#slack_sdk.signature.SignatureVerifier.is_valid">is_valid</a></code></li>
262289
<li><code><a title="slack_sdk.signature.SignatureVerifier.is_valid_request" href="#slack_sdk.signature.SignatureVerifier.is_valid_request">is_valid_request</a></code></li>
290+
<li><code><a title="slack_sdk.signature.SignatureVerifier.signing_secret" href="#slack_sdk.signature.SignatureVerifier.signing_secret">signing_secret</a></code></li>
263291
</ul>
264292
</li>
265293
</ul>

docs/reference/web/async_chat_stream.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ <h2 class="section-title" id="header-classes">Classes</h2>
119119
self._stream_ts: Optional[str] = None
120120
self._buffer_size = buffer_size
121121

122+
@property
123+
def ts(self) -&gt; Optional[str]:
124+
&#34;&#34;&#34;The message timestamp of the stream.
125+
126+
Returns None until the first flush (when chat.startStream is called).
127+
Can be used with chat.update as a fallback if the stream expires server-side.
128+
&#34;&#34;&#34;
129+
return self._stream_ts
130+
122131
async def append(
123132
self,
124133
*,
@@ -309,6 +318,28 @@ <h2 id="args">Args</h2>
309318
<dt><strong><code>**kwargs</code></strong></dt>
310319
<dd>Additional arguments passed to the underlying API calls.</dd>
311320
</dl></div>
321+
<h3>Instance variables</h3>
322+
<dl>
323+
<dt id="slack_sdk.web.async_chat_stream.AsyncChatStream.ts"><code class="name">prop <span class="ident">ts</span> : str | None</code></dt>
324+
<dd>
325+
<details class="source">
326+
<summary>
327+
<span>Expand source code</span>
328+
</summary>
329+
<pre><code class="python">@property
330+
def ts(self) -&gt; Optional[str]:
331+
&#34;&#34;&#34;The message timestamp of the stream.
332+
333+
Returns None until the first flush (when chat.startStream is called).
334+
Can be used with chat.update as a fallback if the stream expires server-side.
335+
&#34;&#34;&#34;
336+
return self._stream_ts</code></pre>
337+
</details>
338+
<div class="desc"><p>The message timestamp of the stream.</p>
339+
<p>Returns None until the first flush (when chat.startStream is called).
340+
Can be used with chat.update as a fallback if the stream expires server-side.</p></div>
341+
</dd>
342+
</dl>
312343
<h3>Methods</h3>
313344
<dl>
314345
<dt id="slack_sdk.web.async_chat_stream.AsyncChatStream.append"><code class="name flex">
@@ -543,6 +574,7 @@ <h4><code><a title="slack_sdk.web.async_chat_stream.AsyncChatStream" href="#slac
543574
<ul class="">
544575
<li><code><a title="slack_sdk.web.async_chat_stream.AsyncChatStream.append" href="#slack_sdk.web.async_chat_stream.AsyncChatStream.append">append</a></code></li>
545576
<li><code><a title="slack_sdk.web.async_chat_stream.AsyncChatStream.stop" href="#slack_sdk.web.async_chat_stream.AsyncChatStream.stop">stop</a></code></li>
577+
<li><code><a title="slack_sdk.web.async_chat_stream.AsyncChatStream.ts" href="#slack_sdk.web.async_chat_stream.AsyncChatStream.ts">ts</a></code></li>
546578
</ul>
547579
</li>
548580
</ul>

docs/reference/web/async_client.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,15 +2151,17 @@ <h2 class="section-title" id="header-classes">Classes</h2>
21512151
self,
21522152
*,
21532153
channel_id: str,
2154-
thread_ts: str,
2154+
thread_ts: Optional[str] = None,
21552155
title: Optional[str] = None,
21562156
prompts: List[Dict[str, str]],
21572157
**kwargs,
21582158
) -&gt; AsyncSlackResponse:
21592159
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
21602160
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
21612161
&#34;&#34;&#34;
2162-
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
2162+
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
2163+
if thread_ts is not None:
2164+
kwargs.update({&#34;thread_ts&#34;: thread_ts})
21632165
if title is not None:
21642166
kwargs.update({&#34;title&#34;: title})
21652167
return await self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)
@@ -9313,7 +9315,7 @@ <h3>Methods</h3>
93139315
<a href="https://docs.slack.dev/reference/methods/assistant.threads.setStatus">https://docs.slack.dev/reference/methods/assistant.threads.setStatus</a></p></div>
93149316
</dd>
93159317
<dt id="slack_sdk.web.async_client.AsyncWebClient.assistant_threads_setSuggestedPrompts"><code class="name flex">
9316-
<span>async def <span class="ident">assistant_threads_setSuggestedPrompts</span></span>(<span>self,<br>*,<br>channel_id: str,<br>thread_ts: str,<br>title: str | None = None,<br>prompts: List[Dict[str, str]],<br>**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>
9318+
<span>async def <span class="ident">assistant_threads_setSuggestedPrompts</span></span>(<span>self,<br>*,<br>channel_id: str,<br>thread_ts: str | None = None,<br>title: str | None = None,<br>prompts: List[Dict[str, str]],<br>**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>
93179319
</code></dt>
93189320
<dd>
93199321
<details class="source">
@@ -9324,15 +9326,17 @@ <h3>Methods</h3>
93249326
self,
93259327
*,
93269328
channel_id: str,
9327-
thread_ts: str,
9329+
thread_ts: Optional[str] = None,
93289330
title: Optional[str] = None,
93299331
prompts: List[Dict[str, str]],
93309332
**kwargs,
93319333
) -&gt; AsyncSlackResponse:
93329334
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
93339335
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
93349336
&#34;&#34;&#34;
9335-
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
9337+
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
9338+
if thread_ts is not None:
9339+
kwargs.update({&#34;thread_ts&#34;: thread_ts})
93369340
if title is not None:
93379341
kwargs.update({&#34;title&#34;: title})
93389342
return await self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)</code></pre>

docs/reference/web/chat_stream.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ <h2 class="section-title" id="header-classes">Classes</h2>
119119
self._stream_ts: Optional[str] = None
120120
self._buffer_size = buffer_size
121121

122+
@property
123+
def ts(self) -&gt; Optional[str]:
124+
&#34;&#34;&#34;The message timestamp of the stream.
125+
126+
Returns None until the first flush (when chat.startStream is called).
127+
Can be used with chat.update as a fallback if the stream expires server-side.
128+
&#34;&#34;&#34;
129+
return self._stream_ts
130+
122131
def append(
123132
self,
124133
*,
@@ -309,6 +318,28 @@ <h2 id="args">Args</h2>
309318
<dt><strong><code>**kwargs</code></strong></dt>
310319
<dd>Additional arguments passed to the underlying API calls.</dd>
311320
</dl></div>
321+
<h3>Instance variables</h3>
322+
<dl>
323+
<dt id="slack_sdk.web.chat_stream.ChatStream.ts"><code class="name">prop <span class="ident">ts</span> : str | None</code></dt>
324+
<dd>
325+
<details class="source">
326+
<summary>
327+
<span>Expand source code</span>
328+
</summary>
329+
<pre><code class="python">@property
330+
def ts(self) -&gt; Optional[str]:
331+
&#34;&#34;&#34;The message timestamp of the stream.
332+
333+
Returns None until the first flush (when chat.startStream is called).
334+
Can be used with chat.update as a fallback if the stream expires server-side.
335+
&#34;&#34;&#34;
336+
return self._stream_ts</code></pre>
337+
</details>
338+
<div class="desc"><p>The message timestamp of the stream.</p>
339+
<p>Returns None until the first flush (when chat.startStream is called).
340+
Can be used with chat.update as a fallback if the stream expires server-side.</p></div>
341+
</dd>
342+
</dl>
312343
<h3>Methods</h3>
313344
<dl>
314345
<dt id="slack_sdk.web.chat_stream.ChatStream.append"><code class="name flex">
@@ -543,6 +574,7 @@ <h4><code><a title="slack_sdk.web.chat_stream.ChatStream" href="#slack_sdk.web.c
543574
<ul class="">
544575
<li><code><a title="slack_sdk.web.chat_stream.ChatStream.append" href="#slack_sdk.web.chat_stream.ChatStream.append">append</a></code></li>
545576
<li><code><a title="slack_sdk.web.chat_stream.ChatStream.stop" href="#slack_sdk.web.chat_stream.ChatStream.stop">stop</a></code></li>
577+
<li><code><a title="slack_sdk.web.chat_stream.ChatStream.ts" href="#slack_sdk.web.chat_stream.ChatStream.ts">ts</a></code></li>
546578
</ul>
547579
</li>
548580
</ul>

docs/reference/web/client.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,15 +2151,17 @@ <h2 class="section-title" id="header-classes">Classes</h2>
21512151
self,
21522152
*,
21532153
channel_id: str,
2154-
thread_ts: str,
2154+
thread_ts: Optional[str] = None,
21552155
title: Optional[str] = None,
21562156
prompts: List[Dict[str, str]],
21572157
**kwargs,
21582158
) -&gt; SlackResponse:
21592159
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
21602160
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
21612161
&#34;&#34;&#34;
2162-
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
2162+
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
2163+
if thread_ts is not None:
2164+
kwargs.update({&#34;thread_ts&#34;: thread_ts})
21632165
if title is not None:
21642166
kwargs.update({&#34;title&#34;: title})
21652167
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)
@@ -9313,7 +9315,7 @@ <h3>Methods</h3>
93139315
<a href="https://docs.slack.dev/reference/methods/assistant.threads.setStatus">https://docs.slack.dev/reference/methods/assistant.threads.setStatus</a></p></div>
93149316
</dd>
93159317
<dt id="slack_sdk.web.client.WebClient.assistant_threads_setSuggestedPrompts"><code class="name flex">
9316-
<span>def <span class="ident">assistant_threads_setSuggestedPrompts</span></span>(<span>self,<br>*,<br>channel_id: str,<br>thread_ts: str,<br>title: str | None = None,<br>prompts: List[Dict[str, str]],<br>**kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
9318+
<span>def <span class="ident">assistant_threads_setSuggestedPrompts</span></span>(<span>self,<br>*,<br>channel_id: str,<br>thread_ts: str | None = None,<br>title: str | None = None,<br>prompts: List[Dict[str, str]],<br>**kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
93179319
</code></dt>
93189320
<dd>
93199321
<details class="source">
@@ -9324,15 +9326,17 @@ <h3>Methods</h3>
93249326
self,
93259327
*,
93269328
channel_id: str,
9327-
thread_ts: str,
9329+
thread_ts: Optional[str] = None,
93289330
title: Optional[str] = None,
93299331
prompts: List[Dict[str, str]],
93309332
**kwargs,
93319333
) -&gt; SlackResponse:
93329334
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
93339335
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
93349336
&#34;&#34;&#34;
9335-
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
9337+
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
9338+
if thread_ts is not None:
9339+
kwargs.update({&#34;thread_ts&#34;: thread_ts})
93369340
if title is not None:
93379341
kwargs.update({&#34;title&#34;: title})
93389342
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)</code></pre>

docs/reference/web/index.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,15 +2518,17 @@ <h2 id="raises">Raises</h2>
25182518
self,
25192519
*,
25202520
channel_id: str,
2521-
thread_ts: str,
2521+
thread_ts: Optional[str] = None,
25222522
title: Optional[str] = None,
25232523
prompts: List[Dict[str, str]],
25242524
**kwargs,
25252525
) -&gt; SlackResponse:
25262526
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
25272527
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
25282528
&#34;&#34;&#34;
2529-
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
2529+
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
2530+
if thread_ts is not None:
2531+
kwargs.update({&#34;thread_ts&#34;: thread_ts})
25302532
if title is not None:
25312533
kwargs.update({&#34;title&#34;: title})
25322534
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)
@@ -9680,7 +9682,7 @@ <h3>Methods</h3>
96809682
<a href="https://docs.slack.dev/reference/methods/assistant.threads.setStatus">https://docs.slack.dev/reference/methods/assistant.threads.setStatus</a></p></div>
96819683
</dd>
96829684
<dt id="slack_sdk.web.WebClient.assistant_threads_setSuggestedPrompts"><code class="name flex">
9683-
<span>def <span class="ident">assistant_threads_setSuggestedPrompts</span></span>(<span>self,<br>*,<br>channel_id: str,<br>thread_ts: str,<br>title: str | None = None,<br>prompts: List[Dict[str, str]],<br>**kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
9685+
<span>def <span class="ident">assistant_threads_setSuggestedPrompts</span></span>(<span>self,<br>*,<br>channel_id: str,<br>thread_ts: str | None = None,<br>title: str | None = None,<br>prompts: List[Dict[str, str]],<br>**kwargs) ‑> <a title="slack_sdk.web.slack_response.SlackResponse" href="slack_response.html#slack_sdk.web.slack_response.SlackResponse">SlackResponse</a></span>
96849686
</code></dt>
96859687
<dd>
96869688
<details class="source">
@@ -9691,15 +9693,17 @@ <h3>Methods</h3>
96919693
self,
96929694
*,
96939695
channel_id: str,
9694-
thread_ts: str,
9696+
thread_ts: Optional[str] = None,
96959697
title: Optional[str] = None,
96969698
prompts: List[Dict[str, str]],
96979699
**kwargs,
96989700
) -&gt; SlackResponse:
96999701
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
97009702
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
97019703
&#34;&#34;&#34;
9702-
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
9704+
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
9705+
if thread_ts is not None:
9706+
kwargs.update({&#34;thread_ts&#34;: thread_ts})
97039707
if title is not None:
97049708
kwargs.update({&#34;title&#34;: title})
97059709
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)</code></pre>

0 commit comments

Comments
 (0)