From 7089b5bfd231b1fc692e0b1fee393c4e83185daf Mon Sep 17 00:00:00 2001
From: Eden Zimbelman Classes
self,
*,
channel_id: str,
- thread_ts: str,
+ thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
@@ -2263,7 +2263,9 @@ Classes
"""Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
"""
- kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
+ kwargs.update({"channel_id": channel_id, "prompts": prompts})
+ if thread_ts is not None:
+ kwargs.update({"thread_ts": thread_ts})
if title is not None:
kwargs.update({"title": title})
return self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
@@ -9417,7 +9419,7 @@ Methods
https://docs.slack.dev/reference/methods/assistant.threads.setStatus
-def assistant_threads_setSuggestedPrompts(self,
*,
channel_id: str,
thread_ts: str,
title: str | None = None,
prompts: List[Dict[str, str]],
**kwargs) ‑> SlackResponse
+def assistant_threads_setSuggestedPrompts(self,
*,
channel_id: str,
thread_ts: str | None = None,
title: str | None = None,
prompts: List[Dict[str, str]],
**kwargs) ‑> SlackResponse
prop signing_secret : str@property
+def signing_secret(self) -> str:
+ return self._signing_secret
+
@@ -260,6 +287,7 @@ generate_signature
is_valid
is_valid_request
+signing_secret
diff --git a/docs/reference/web/async_chat_stream.html b/docs/reference/web/async_chat_stream.html
index 5c74a4e10..c9bcd185a 100644
--- a/docs/reference/web/async_chat_stream.html
+++ b/docs/reference/web/async_chat_stream.html
@@ -119,6 +119,15 @@ Classes
self._stream_ts: Optional[str] = None
self._buffer_size = buffer_size
+ @property
+ def ts(self) -> Optional[str]:
+ """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.
+ """
+ return self._stream_ts
+
async def append(
self,
*,
@@ -309,6 +318,28 @@ Args
**kwargs
- Additional arguments passed to the underlying API calls.
prop ts : str | None@property
+def ts(self) -> Optional[str]:
+ """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.
+ """
+ return self._stream_ts
+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.
@@ -543,6 +574,7 @@
append
stop
+ts
diff --git a/docs/reference/web/async_client.html b/docs/reference/web/async_client.html
index 388fdfd20..8af35b5d1 100644
--- a/docs/reference/web/async_client.html
+++ b/docs/reference/web/async_client.html
@@ -2151,7 +2151,7 @@ Classes
self,
*,
channel_id: str,
- thread_ts: str,
+ thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
@@ -2159,7 +2159,9 @@ Classes
"""Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
"""
- kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
+ kwargs.update({"channel_id": channel_id, "prompts": prompts})
+ if thread_ts is not None:
+ kwargs.update({"thread_ts": thread_ts})
if title is not None:
kwargs.update({"title": title})
return await self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
@@ -9313,7 +9315,7 @@ Methods
https://docs.slack.dev/reference/methods/assistant.threads.setStatus
-async def assistant_threads_setSuggestedPrompts(self,
*,
channel_id: str,
thread_ts: str,
title: str | None = None,
prompts: List[Dict[str, str]],
**kwargs) ‑> AsyncSlackResponse
+async def assistant_threads_setSuggestedPrompts(self,
*,
channel_id: str,
thread_ts: str | None = None,
title: str | None = None,
prompts: List[Dict[str, str]],
**kwargs) ‑> AsyncSlackResponse
**kwargsprop ts : str | None@property
+def ts(self) -> Optional[str]:
+ """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.
+ """
+ return self._stream_ts
+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.
@@ -543,6 +574,7 @@
append
stop
+ts
diff --git a/docs/reference/web/client.html b/docs/reference/web/client.html
index 6008fe810..58d305038 100644
--- a/docs/reference/web/client.html
+++ b/docs/reference/web/client.html
@@ -2151,7 +2151,7 @@ Classes
self,
*,
channel_id: str,
- thread_ts: str,
+ thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
@@ -2159,7 +2159,9 @@ Classes
"""Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
"""
- kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
+ kwargs.update({"channel_id": channel_id, "prompts": prompts})
+ if thread_ts is not None:
+ kwargs.update({"thread_ts": thread_ts})
if title is not None:
kwargs.update({"title": title})
return self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
@@ -9313,7 +9315,7 @@ Methods
https://docs.slack.dev/reference/methods/assistant.threads.setStatus
-def assistant_threads_setSuggestedPrompts(self,
*,
channel_id: str,
thread_ts: str,
title: str | None = None,
prompts: List[Dict[str, str]],
**kwargs) ‑> SlackResponse
+def assistant_threads_setSuggestedPrompts(self,
*,
channel_id: str,
thread_ts: str | None = None,
title: str | None = None,
prompts: List[Dict[str, str]],
**kwargs) ‑> SlackResponse
-def assistant_threads_setSuggestedPrompts(self,
*,
channel_id: str,
thread_ts: str,
title: str | None = None,
prompts: List[Dict[str, str]],
**kwargs) ‑> SlackResponse
+def assistant_threads_setSuggestedPrompts(self,
*,
channel_id: str,
thread_ts: str | None = None,
title: str | None = None,
prompts: List[Dict[str, str]],
**kwargs) ‑> SlackResponse
-def assistant_threads_setSuggestedPrompts(self,
*,
channel_id: str,
thread_ts: str,
title: str | None = None,
prompts: List[Dict[str, str]],
**kwargs) ‑> _asyncio.Future | LegacySlackResponse
+def assistant_threads_setSuggestedPrompts(self,
*,
channel_id: str,
thread_ts: str | None = None,
title: str | None = None,
prompts: List[Dict[str, str]],
**kwargs) ‑> _asyncio.Future | LegacySlackResponse