Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions docs/reference/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2255,15 +2255,17 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -&gt; SlackResponse:
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
&#34;&#34;&#34;
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
if thread_ts is not None:
kwargs.update({&#34;thread_ts&#34;: thread_ts})
if title is not None:
kwargs.update({&#34;title&#34;: title})
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)
Expand Down Expand Up @@ -9417,7 +9419,7 @@ <h3>Methods</h3>
<a href="https://docs.slack.dev/reference/methods/assistant.threads.setStatus">https://docs.slack.dev/reference/methods/assistant.threads.setStatus</a></p></div>
</dd>
<dt id="slack_sdk.WebClient.assistant_threads_setSuggestedPrompts"><code class="name flex">
<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>
<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>
</code></dt>
<dd>
<details class="source">
Expand All @@ -9428,15 +9430,17 @@ <h3>Methods</h3>
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -&gt; SlackResponse:
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
&#34;&#34;&#34;
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
if thread_ts is not None:
kwargs.update({&#34;thread_ts&#34;: thread_ts})
if title is not None:
kwargs.update({&#34;title&#34;: title})
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)</code></pre>
Expand Down
28 changes: 28 additions & 0 deletions docs/reference/signature/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ <h3>Methods</h3>
self.signing_secret = signing_secret
self.clock = clock

@property
def signing_secret(self) -&gt; str:
return self._signing_secret

@signing_secret.setter
def signing_secret(self, value: str) -&gt; None:
if not isinstance(value, str):
raise ValueError(&#34;signing_secret must be a string&#34;)
if not value.strip():
raise ValueError(&#34;signing_secret must not be empty.&#34;)
self._signing_secret = value

def is_valid_request(
self,
body: Union[str, bytes],
Expand Down Expand Up @@ -151,6 +163,21 @@ <h3>Methods</h3>
With the help of signing secrets, your app can more confidently verify
whether requests from us are authentic.
<a href="https://docs.slack.dev/authentication/verifying-requests-from-slack/">https://docs.slack.dev/authentication/verifying-requests-from-slack/</a></p></div>
<h3>Instance variables</h3>
<dl>
<dt id="slack_sdk.signature.SignatureVerifier.signing_secret"><code class="name">prop <span class="ident">signing_secret</span> : str</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">@property
def signing_secret(self) -&gt; str:
return self._signing_secret</code></pre>
</details>
<div class="desc"></div>
</dd>
</dl>
<h3>Methods</h3>
<dl>
<dt id="slack_sdk.signature.SignatureVerifier.generate_signature"><code class="name flex">
Expand Down Expand Up @@ -260,6 +287,7 @@ <h4><code><a title="slack_sdk.signature.SignatureVerifier" href="#slack_sdk.sign
<li><code><a title="slack_sdk.signature.SignatureVerifier.generate_signature" href="#slack_sdk.signature.SignatureVerifier.generate_signature">generate_signature</a></code></li>
<li><code><a title="slack_sdk.signature.SignatureVerifier.is_valid" href="#slack_sdk.signature.SignatureVerifier.is_valid">is_valid</a></code></li>
<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>
<li><code><a title="slack_sdk.signature.SignatureVerifier.signing_secret" href="#slack_sdk.signature.SignatureVerifier.signing_secret">signing_secret</a></code></li>
</ul>
</li>
</ul>
Expand Down
32 changes: 32 additions & 0 deletions docs/reference/web/async_chat_stream.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self._stream_ts: Optional[str] = None
self._buffer_size = buffer_size

@property
def ts(self) -&gt; Optional[str]:
&#34;&#34;&#34;The message timestamp of the stream.

Returns None until the first flush (when chat.startStream is called).
Can be used with chat.update as a fallback if the stream expires server-side.
&#34;&#34;&#34;
return self._stream_ts

async def append(
self,
*,
Expand Down Expand Up @@ -309,6 +318,28 @@ <h2 id="args">Args</h2>
<dt><strong><code>**kwargs</code></strong></dt>
<dd>Additional arguments passed to the underlying API calls.</dd>
</dl></div>
<h3>Instance variables</h3>
<dl>
<dt id="slack_sdk.web.async_chat_stream.AsyncChatStream.ts"><code class="name">prop <span class="ident">ts</span> : str | None</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">@property
def ts(self) -&gt; Optional[str]:
&#34;&#34;&#34;The message timestamp of the stream.

Returns None until the first flush (when chat.startStream is called).
Can be used with chat.update as a fallback if the stream expires server-side.
&#34;&#34;&#34;
return self._stream_ts</code></pre>
</details>
<div class="desc"><p>The message timestamp of the stream.</p>
<p>Returns None until the first flush (when chat.startStream is called).
Can be used with chat.update as a fallback if the stream expires server-side.</p></div>
</dd>
</dl>
<h3>Methods</h3>
<dl>
<dt id="slack_sdk.web.async_chat_stream.AsyncChatStream.append"><code class="name flex">
Expand Down Expand Up @@ -543,6 +574,7 @@ <h4><code><a title="slack_sdk.web.async_chat_stream.AsyncChatStream" href="#slac
<ul class="">
<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>
<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>
<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>
</ul>
</li>
</ul>
Expand Down
14 changes: 9 additions & 5 deletions docs/reference/web/async_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -2151,15 +2151,17 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -&gt; AsyncSlackResponse:
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
&#34;&#34;&#34;
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
if thread_ts is not None:
kwargs.update({&#34;thread_ts&#34;: thread_ts})
if title is not None:
kwargs.update({&#34;title&#34;: title})
return await self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)
Expand Down Expand Up @@ -9313,7 +9315,7 @@ <h3>Methods</h3>
<a href="https://docs.slack.dev/reference/methods/assistant.threads.setStatus">https://docs.slack.dev/reference/methods/assistant.threads.setStatus</a></p></div>
</dd>
<dt id="slack_sdk.web.async_client.AsyncWebClient.assistant_threads_setSuggestedPrompts"><code class="name flex">
<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>
<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>
</code></dt>
<dd>
<details class="source">
Expand All @@ -9324,15 +9326,17 @@ <h3>Methods</h3>
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -&gt; AsyncSlackResponse:
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
&#34;&#34;&#34;
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
if thread_ts is not None:
kwargs.update({&#34;thread_ts&#34;: thread_ts})
if title is not None:
kwargs.update({&#34;title&#34;: title})
return await self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)</code></pre>
Expand Down
32 changes: 32 additions & 0 deletions docs/reference/web/chat_stream.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self._stream_ts: Optional[str] = None
self._buffer_size = buffer_size

@property
def ts(self) -&gt; Optional[str]:
&#34;&#34;&#34;The message timestamp of the stream.

Returns None until the first flush (when chat.startStream is called).
Can be used with chat.update as a fallback if the stream expires server-side.
&#34;&#34;&#34;
return self._stream_ts

def append(
self,
*,
Expand Down Expand Up @@ -309,6 +318,28 @@ <h2 id="args">Args</h2>
<dt><strong><code>**kwargs</code></strong></dt>
<dd>Additional arguments passed to the underlying API calls.</dd>
</dl></div>
<h3>Instance variables</h3>
<dl>
<dt id="slack_sdk.web.chat_stream.ChatStream.ts"><code class="name">prop <span class="ident">ts</span> : str | None</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">@property
def ts(self) -&gt; Optional[str]:
&#34;&#34;&#34;The message timestamp of the stream.

Returns None until the first flush (when chat.startStream is called).
Can be used with chat.update as a fallback if the stream expires server-side.
&#34;&#34;&#34;
return self._stream_ts</code></pre>
</details>
<div class="desc"><p>The message timestamp of the stream.</p>
<p>Returns None until the first flush (when chat.startStream is called).
Can be used with chat.update as a fallback if the stream expires server-side.</p></div>
</dd>
</dl>
<h3>Methods</h3>
<dl>
<dt id="slack_sdk.web.chat_stream.ChatStream.append"><code class="name flex">
Expand Down Expand Up @@ -543,6 +574,7 @@ <h4><code><a title="slack_sdk.web.chat_stream.ChatStream" href="#slack_sdk.web.c
<ul class="">
<li><code><a title="slack_sdk.web.chat_stream.ChatStream.append" href="#slack_sdk.web.chat_stream.ChatStream.append">append</a></code></li>
<li><code><a title="slack_sdk.web.chat_stream.ChatStream.stop" href="#slack_sdk.web.chat_stream.ChatStream.stop">stop</a></code></li>
<li><code><a title="slack_sdk.web.chat_stream.ChatStream.ts" href="#slack_sdk.web.chat_stream.ChatStream.ts">ts</a></code></li>
</ul>
</li>
</ul>
Expand Down
14 changes: 9 additions & 5 deletions docs/reference/web/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -2151,15 +2151,17 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -&gt; SlackResponse:
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
&#34;&#34;&#34;
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
if thread_ts is not None:
kwargs.update({&#34;thread_ts&#34;: thread_ts})
if title is not None:
kwargs.update({&#34;title&#34;: title})
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)
Expand Down Expand Up @@ -9313,7 +9315,7 @@ <h3>Methods</h3>
<a href="https://docs.slack.dev/reference/methods/assistant.threads.setStatus">https://docs.slack.dev/reference/methods/assistant.threads.setStatus</a></p></div>
</dd>
<dt id="slack_sdk.web.client.WebClient.assistant_threads_setSuggestedPrompts"><code class="name flex">
<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>
<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>
</code></dt>
<dd>
<details class="source">
Expand All @@ -9324,15 +9326,17 @@ <h3>Methods</h3>
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -&gt; SlackResponse:
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
&#34;&#34;&#34;
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
if thread_ts is not None:
kwargs.update({&#34;thread_ts&#34;: thread_ts})
if title is not None:
kwargs.update({&#34;title&#34;: title})
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)</code></pre>
Expand Down
14 changes: 9 additions & 5 deletions docs/reference/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2518,15 +2518,17 @@ <h2 id="raises">Raises</h2>
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -&gt; SlackResponse:
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
&#34;&#34;&#34;
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
if thread_ts is not None:
kwargs.update({&#34;thread_ts&#34;: thread_ts})
if title is not None:
kwargs.update({&#34;title&#34;: title})
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)
Expand Down Expand Up @@ -9680,7 +9682,7 @@ <h3>Methods</h3>
<a href="https://docs.slack.dev/reference/methods/assistant.threads.setStatus">https://docs.slack.dev/reference/methods/assistant.threads.setStatus</a></p></div>
</dd>
<dt id="slack_sdk.web.WebClient.assistant_threads_setSuggestedPrompts"><code class="name flex">
<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>
<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>
</code></dt>
<dd>
<details class="source">
Expand All @@ -9691,15 +9693,17 @@ <h3>Methods</h3>
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -&gt; SlackResponse:
&#34;&#34;&#34;Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
&#34;&#34;&#34;
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;thread_ts&#34;: thread_ts, &#34;prompts&#34;: prompts})
kwargs.update({&#34;channel_id&#34;: channel_id, &#34;prompts&#34;: prompts})
if thread_ts is not None:
kwargs.update({&#34;thread_ts&#34;: thread_ts})
if title is not None:
kwargs.update({&#34;title&#34;: title})
return self.api_call(&#34;assistant.threads.setSuggestedPrompts&#34;, json=kwargs)</code></pre>
Expand Down
Loading
Loading