diff --git a/docs/reference/index.html b/docs/reference/index.html index 31b766b61..c76fd04c3 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -2183,6 +2183,19 @@
Uninstalls your app from a workspace. https://docs.slack.dev/reference/methods/apps.uninstall
+def apps_user_connection_update(self, *, user_id: str, status: str, **kwargs) ‑> SlackResponse
+def apps_user_connection_update(
+ self,
+ *,
+ user_id: str,
+ status: str,
+ **kwargs,
+) -> SlackResponse:
+ """Updates the connection status between a user and an app.
+ https://docs.slack.dev/reference/methods/apps.user.connection.update
+ """
+ kwargs.update({"user_id": user_id, "status": status})
+ return self.api_call("apps.user.connection.update", params=kwargs)
+Updates the connection status between a user and an app. +https://docs.slack.dev/reference/methods/apps.user.connection.update
def assistant_threads_setStatus(self,
*,
channel_id: str,
thread_ts: str,
status: str,
loading_messages: List[str] | None = None,
**kwargs) ‑> SlackResponse
WebClient
apps_manifest_update
apps_manifest_validate
apps_uninstall
+apps_user_connection_update
assistant_threads_setStatus
assistant_threads_setSuggestedPrompts
assistant_threads_setTitle
diff --git a/docs/reference/models/blocks/basic_components.html b/docs/reference/models/blocks/basic_components.html
index 2821b6a4b..50554265d 100644
--- a/docs/reference/models/blocks/basic_components.html
+++ b/docs/reference/models/blocks/basic_components.html
@@ -188,7 +188,7 @@ Class variables
Static methods
-def parse(confirm: ForwardRef('ConfirmObject') | Dict[str, Any])
+def parse(confirm: ConfirmObject | Dict[str, Any])
-
@@ -324,7 +324,7 @@
Class variables
Static methods
-def parse(config: ForwardRef('DispatchActionConfig') | Dict[str, Any])
+def parse(config: DispatchActionConfig | Dict[str, Any])
-
@@ -446,7 +446,7 @@
Class variables
Static methods
-def parse(feedback_button: ForwardRef('FeedbackButtonObject') | Dict[str, Any])
+def parse(feedback_button: FeedbackButtonObject | Dict[str, Any])
-
@@ -907,7 +907,7 @@
Static methods
Creates a simple Option instance with the same value and label
-def parse_all(options: Sequence[Dict[str, Any] | ForwardRef('Option')] | None) ‑> List[Option] | None
+def parse_all(options: Sequence[Dict[str, Any] | Option] | None) ‑> List[Option] | None
-
@@ -1105,7 +1105,7 @@
Class variables
Static methods
-def parse_all(option_groups: Sequence[Dict[str, Any] | ForwardRef('OptionGroup')] | None) ‑> List[OptionGroup] | None
+def parse_all(option_groups: Sequence[Dict[str, Any] | OptionGroup] | None) ‑> List[OptionGroup] | None
-
@@ -1536,7 +1536,7 @@
Class variables
Static methods
-def parse(text: str | Dict[str, Any] | ForwardRef('TextObject'),
default_type: str = 'mrkdwn') ‑> TextObject | None
+def parse(text: str | Dict[str, Any] | TextObject,
default_type: str = 'mrkdwn') ‑> TextObject | None
-
diff --git a/docs/reference/models/blocks/block_elements.html b/docs/reference/models/blocks/block_elements.html
index 880573706..e79ac10d1 100644
--- a/docs/reference/models/blocks/block_elements.html
+++ b/docs/reference/models/blocks/block_elements.html
@@ -146,13 +146,13 @@
Class variables
Static methods
-def parse(block_element: dict | ForwardRef('BlockElement')) ‑> BlockElement | TextObject | None
+def parse(block_element: dict | BlockElement) ‑> BlockElement | TextObject | None
-
-def parse_all(block_elements: Sequence[dict | ForwardRef('BlockElement') | TextObject]) ‑> List[BlockElement | TextObject]
+def parse_all(block_elements: Sequence[dict | BlockElement | TextObject]) ‑> List[BlockElement | TextObject]
-
@@ -829,7 +829,7 @@
Class variables
Static methods
-def parse(filter: dict | ForwardRef('ConversationFilter'))
+def parse(filter: dict | ConversationFilter)
-
@@ -3505,7 +3505,7 @@
Class variables
class RichTextInputElement
-(*,
action_id: str | None = None,
placeholder: str | dict | TextObject | None = None,
initial_value: Dict[str, Any] | ForwardRef('RichTextBlock') | None = None,
dispatch_action_config: dict | DispatchActionConfig | None = None,
focus_on_load: bool | None = None,
**others: dict)
+(*,
action_id: str | None = None,
placeholder: str | dict | TextObject | None = None,
initial_value: Dict[str, Any] | RichTextBlock | None = None,
dispatch_action_config: dict | DispatchActionConfig | None = None,
focus_on_load: bool | None = None,
**others: dict)
-
diff --git a/docs/reference/models/blocks/blocks.html b/docs/reference/models/blocks/blocks.html
index af825e54a..005925e17 100644
--- a/docs/reference/models/blocks/blocks.html
+++ b/docs/reference/models/blocks/blocks.html
@@ -298,13 +298,13 @@
Class variables
Static methods
-def parse(block: dict | ForwardRef('Block')) ‑> Block | None
+def parse(block: dict | Block) ‑> Block | None
-
-def parse_all(blocks: Sequence[dict | ForwardRef('Block')] | None) ‑> List[Block]
+def parse_all(blocks: Sequence[dict | Block] | None) ‑> List[Block]
-
diff --git a/docs/reference/models/blocks/index.html b/docs/reference/models/blocks/index.html
index 536590edf..c86a35845 100644
--- a/docs/reference/models/blocks/index.html
+++ b/docs/reference/models/blocks/index.html
@@ -320,13 +320,13 @@
Class variables
Static methods
-def parse(block: dict | ForwardRef('Block')) ‑> Block | None
+def parse(block: dict | Block) ‑> Block | None
-
-def parse_all(blocks: Sequence[dict | ForwardRef('Block')] | None) ‑> List[Block]
+def parse_all(blocks: Sequence[dict | Block] | None) ‑> List[Block]
-
@@ -458,13 +458,13 @@
Class variables
Static methods
-def parse(block_element: dict | ForwardRef('BlockElement')) ‑> BlockElement | TextObject | None
+def parse(block_element: dict | BlockElement) ‑> BlockElement | TextObject | None
-
-def parse_all(block_elements: Sequence[dict | ForwardRef('BlockElement') | TextObject]) ‑> List[BlockElement | TextObject]
+def parse_all(block_elements: Sequence[dict | BlockElement | TextObject]) ‑> List[BlockElement | TextObject]
-
@@ -1278,7 +1278,7 @@
Class variables
Static methods
-def parse(confirm: ForwardRef('ConfirmObject') | Dict[str, Any])
+def parse(confirm: ConfirmObject | Dict[str, Any])
-
@@ -1650,7 +1650,7 @@
Class variables
Static methods
-def parse(filter: dict | ForwardRef('ConversationFilter'))
+def parse(filter: dict | ConversationFilter)
-
@@ -2842,7 +2842,7 @@
Class variables
Static methods
-def parse(feedback_button: ForwardRef('FeedbackButtonObject') | Dict[str, Any])
+def parse(feedback_button: FeedbackButtonObject | Dict[str, Any])
-
@@ -4727,7 +4727,7 @@
Static methods
Creates a simple Option instance with the same value and label
-def parse_all(options: Sequence[Dict[str, Any] | ForwardRef('Option')] | None) ‑> List[Option] | None
+def parse_all(options: Sequence[Dict[str, Any] | Option] | None) ‑> List[Option] | None
-
@@ -4925,7 +4925,7 @@
Class variables
Static methods
-def parse_all(option_groups: Sequence[Dict[str, Any] | ForwardRef('OptionGroup')] | None) ‑> List[OptionGroup] | None
+def parse_all(option_groups: Sequence[Dict[str, Any] | OptionGroup] | None) ‑> List[OptionGroup] | None
-
@@ -6143,7 +6143,7 @@
Class variables
class RichTextInputElement
-(*,
action_id: str | None = None,
placeholder: str | dict | TextObject | None = None,
initial_value: Dict[str, Any] | ForwardRef('RichTextBlock') | None = None,
dispatch_action_config: dict | DispatchActionConfig | None = None,
focus_on_load: bool | None = None,
**others: dict)
+(*,
action_id: str | None = None,
placeholder: str | dict | TextObject | None = None,
initial_value: Dict[str, Any] | RichTextBlock | None = None,
dispatch_action_config: dict | DispatchActionConfig | None = None,
focus_on_load: bool | None = None,
**others: dict)
-
@@ -7547,7 +7547,7 @@
Class variables
Static methods
-def parse(text: str | Dict[str, Any] | ForwardRef('TextObject'),
default_type: str = 'mrkdwn') ‑> TextObject | None
+def parse(text: str | Dict[str, Any] | TextObject,
default_type: str = 'mrkdwn') ‑> TextObject | None
-
diff --git a/docs/reference/models/messages/chunk.html b/docs/reference/models/messages/chunk.html
index 100f83fa4..49c1ef1bc 100644
--- a/docs/reference/models/messages/chunk.html
+++ b/docs/reference/models/messages/chunk.html
@@ -121,7 +121,7 @@
Class variables
Static methods
-def parse(chunk: Dict | ForwardRef('Chunk')) ‑> Chunk | None
+def parse(chunk: Dict | Chunk) ‑> Chunk | None
-
diff --git a/docs/reference/models/views/index.html b/docs/reference/models/views/index.html
index d9e60359b..b7bad66bc 100644
--- a/docs/reference/models/views/index.html
+++ b/docs/reference/models/views/index.html
@@ -48,7 +48,7 @@
Classes
class View
-(type: str,
id: str | None = None,
callback_id: str | None = None,
external_id: str | None = None,
team_id: str | None = None,
bot_id: str | None = None,
app_id: str | None = None,
root_view_id: str | None = None,
previous_view_id: str | None = None,
title: str | dict | PlainTextObject | None = None,
submit: str | dict | PlainTextObject | None = None,
close: str | dict | PlainTextObject | None = None,
blocks: Sequence[dict | Block] | None = None,
private_metadata: str | None = None,
state: dict | ForwardRef('ViewState') | None = None,
hash: str | None = None,
clear_on_close: bool | None = None,
notify_on_close: bool | None = None,
**kwargs)
+(type: str,
id: str | None = None,
callback_id: str | None = None,
external_id: str | None = None,
team_id: str | None = None,
bot_id: str | None = None,
app_id: str | None = None,
root_view_id: str | None = None,
previous_view_id: str | None = None,
title: str | dict | PlainTextObject | None = None,
submit: str | dict | PlainTextObject | None = None,
close: str | dict | PlainTextObject | None = None,
blocks: Sequence[dict | Block] | None = None,
private_metadata: str | None = None,
state: dict | ViewState | None = None,
hash: str | None = None,
clear_on_close: bool | None = None,
notify_on_close: bool | None = None,
**kwargs)
-
@@ -229,7 +229,7 @@
Inherited members
class ViewState
-(*,
values: Dict[str, Dict[str, dict | ForwardRef('ViewStateValue')]])
+(*,
values: Dict[str, Dict[str, dict | ViewStateValue]])
-
diff --git a/docs/reference/web/async_chat_stream.html b/docs/reference/web/async_chat_stream.html
index d8e4f5bfe..23c385030 100644
--- a/docs/reference/web/async_chat_stream.html
+++ b/docs/reference/web/async_chat_stream.html
@@ -89,7 +89,7 @@
Classes
streaming to channels.
recipient_user_id: The encoded ID of the user to receive the streaming text. Required when streaming to channels.
task_display_mode: Specifies how tasks are displayed in the message. A "timeline" displays individual tasks
- with text and "plan" displays all tasks together.
+ with text and "plan" displays all tasks together.
buffer_size: The length of markdown_text to buffer in-memory before calling a method. Increasing this value
decreases the number of method calls made for the same amount of text, which is useful to avoid rate limits.
**kwargs: Additional arguments passed to the underlying API calls.
diff --git a/docs/reference/web/async_client.html b/docs/reference/web/async_client.html
index 070de0e95..4e2f7b00d 100644
--- a/docs/reference/web/async_client.html
+++ b/docs/reference/web/async_client.html
@@ -2079,6 +2079,19 @@ Classes
kwargs.update({"app_id": app_id})
return await self.api_call("apps.manifest.validate", params=kwargs)
+ async def apps_user_connection_update(
+ self,
+ *,
+ user_id: str,
+ status: str,
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Updates the connection status between a user and an app.
+ https://docs.slack.dev/reference/methods/apps.user.connection.update
+ """
+ kwargs.update({"user_id": user_id, "status": status})
+ return await self.api_call("apps.user.connection.update", params=kwargs)
+
async def tooling_tokens_rotate(
self,
*,
@@ -9207,6 +9220,30 @@ Methods
Uninstalls your app from a workspace.
https://docs.slack.dev/reference/methods/apps.uninstall
+
+async def apps_user_connection_update(self, *, user_id: str, status: str, **kwargs) ‑> AsyncSlackResponse
+
+-
+
+
+Expand source code
+
+async def apps_user_connection_update(
+ self,
+ *,
+ user_id: str,
+ status: str,
+ **kwargs,
+) -> AsyncSlackResponse:
+ """Updates the connection status between a user and an app.
+ https://docs.slack.dev/reference/methods/apps.user.connection.update
+ """
+ kwargs.update({"user_id": user_id, "status": status})
+ return await self.api_call("apps.user.connection.update", params=kwargs)
+
+Updates the connection status between a user and an app.
+https://docs.slack.dev/reference/methods/apps.user.connection.update
+
async def assistant_threads_setStatus(self,
*,
channel_id: str,
thread_ts: str,
status: str,
loading_messages: List[str] | None = None,
**kwargs) ‑> AsyncSlackResponse
@@ -15593,6 +15630,7 @@ apps_manifest_update
apps_manifest_validate
apps_uninstall
+apps_user_connection_update
assistant_threads_setStatus
assistant_threads_setSuggestedPrompts
assistant_threads_setTitle
diff --git a/docs/reference/web/async_slack_response.html b/docs/reference/web/async_slack_response.html
index e081b1ab8..5deb67481 100644
--- a/docs/reference/web/async_slack_response.html
+++ b/docs/reference/web/async_slack_response.html
@@ -210,12 +210,10 @@ Classes
raise StopAsyncIteration
@overload
- def get(self, key: str, default: None = None) -> Optional[Any]:
- ...
+ def get(self, key: str, default: None = None) -> Optional[Any]: ...
@overload
- def get(self, key: str, default: T) -> T:
- ...
+ def get(self, key: str, default: T) -> T: ...
def get(self, key, default=None):
"""Retrieves any key from the response data.
diff --git a/docs/reference/web/client.html b/docs/reference/web/client.html
index fecd86b7c..17a56cf3d 100644
--- a/docs/reference/web/client.html
+++ b/docs/reference/web/client.html
@@ -2079,6 +2079,19 @@ Classes
kwargs.update({"app_id": app_id})
return self.api_call("apps.manifest.validate", params=kwargs)
+ def apps_user_connection_update(
+ self,
+ *,
+ user_id: str,
+ status: str,
+ **kwargs,
+ ) -> SlackResponse:
+ """Updates the connection status between a user and an app.
+ https://docs.slack.dev/reference/methods/apps.user.connection.update
+ """
+ kwargs.update({"user_id": user_id, "status": status})
+ return self.api_call("apps.user.connection.update", params=kwargs)
+
def tooling_tokens_rotate(
self,
*,
@@ -9207,6 +9220,30 @@ Methods
Uninstalls your app from a workspace.
https://docs.slack.dev/reference/methods/apps.uninstall
+
+def apps_user_connection_update(self, *, user_id: str, status: str, **kwargs) ‑> SlackResponse
+
+-
+
+
+Expand source code
+
+def apps_user_connection_update(
+ self,
+ *,
+ user_id: str,
+ status: str,
+ **kwargs,
+) -> SlackResponse:
+ """Updates the connection status between a user and an app.
+ https://docs.slack.dev/reference/methods/apps.user.connection.update
+ """
+ kwargs.update({"user_id": user_id, "status": status})
+ return self.api_call("apps.user.connection.update", params=kwargs)
+
+Updates the connection status between a user and an app.
+https://docs.slack.dev/reference/methods/apps.user.connection.update
+
def assistant_threads_setStatus(self,
*,
channel_id: str,
thread_ts: str,
status: str,
loading_messages: List[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -15592,6 +15629,7 @@ apps_manifest_update
apps_manifest_validate
apps_uninstall
+apps_user_connection_update
assistant_threads_setStatus
assistant_threads_setSuggestedPrompts
assistant_threads_setTitle
diff --git a/docs/reference/web/index.html b/docs/reference/web/index.html
index bec63590c..6b7adaa70 100644
--- a/docs/reference/web/index.html
+++ b/docs/reference/web/index.html
@@ -269,12 +269,10 @@ Classes
raise StopIteration
@overload
- def get(self, key: str, default: None = None) -> Optional[Any]:
- ...
+ def get(self, key: str, default: None = None) -> Optional[Any]: ...
@overload
- def get(self, key: str, default: T) -> T:
- ...
+ def get(self, key: str, default: T) -> T: ...
def get(self, key, default=None):
"""Retrieves any key from the response data.
@@ -2448,6 +2446,19 @@ Raises
kwargs.update({"app_id": app_id})
return self.api_call("apps.manifest.validate", params=kwargs)
+ def apps_user_connection_update(
+ self,
+ *,
+ user_id: str,
+ status: str,
+ **kwargs,
+ ) -> SlackResponse:
+ """Updates the connection status between a user and an app.
+ https://docs.slack.dev/reference/methods/apps.user.connection.update
+ """
+ kwargs.update({"user_id": user_id, "status": status})
+ return self.api_call("apps.user.connection.update", params=kwargs)
+
def tooling_tokens_rotate(
self,
*,
@@ -9576,6 +9587,30 @@ Methods
Uninstalls your app from a workspace.
https://docs.slack.dev/reference/methods/apps.uninstall
+
+def apps_user_connection_update(self, *, user_id: str, status: str, **kwargs) ‑> SlackResponse
+
+-
+
+
+Expand source code
+
+def apps_user_connection_update(
+ self,
+ *,
+ user_id: str,
+ status: str,
+ **kwargs,
+) -> SlackResponse:
+ """Updates the connection status between a user and an app.
+ https://docs.slack.dev/reference/methods/apps.user.connection.update
+ """
+ kwargs.update({"user_id": user_id, "status": status})
+ return self.api_call("apps.user.connection.update", params=kwargs)
+
+Updates the connection status between a user and an app.
+https://docs.slack.dev/reference/methods/apps.user.connection.update
+
def assistant_threads_setStatus(self,
*,
channel_id: str,
thread_ts: str,
status: str,
loading_messages: List[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -15987,6 +16022,7 @@ Web
apps_manifest_update
apps_manifest_validate
apps_uninstall
+apps_user_connection_update
assistant_threads_setStatus
assistant_threads_setSuggestedPrompts
assistant_threads_setTitle
diff --git a/docs/reference/web/legacy_client.html b/docs/reference/web/legacy_client.html
index 86d9b1d0c..152f8f75a 100644
--- a/docs/reference/web/legacy_client.html
+++ b/docs/reference/web/legacy_client.html
@@ -2078,6 +2078,19 @@ Classes
kwargs.update({"app_id": app_id})
return self.api_call("apps.manifest.validate", params=kwargs)
+ def apps_user_connection_update(
+ self,
+ *,
+ user_id: str,
+ status: str,
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Updates the connection status between a user and an app.
+ https://docs.slack.dev/reference/methods/apps.user.connection.update
+ """
+ kwargs.update({"user_id": user_id, "status": status})
+ return self.api_call("apps.user.connection.update", params=kwargs)
+
def tooling_tokens_rotate(
self,
*,
@@ -9139,6 +9152,30 @@ Methods
Uninstalls your app from a workspace.
https://docs.slack.dev/reference/methods/apps.uninstall
+
+def apps_user_connection_update(self, *, user_id: str, status: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse
+
+-
+
+
+Expand source code
+
+def apps_user_connection_update(
+ self,
+ *,
+ user_id: str,
+ status: str,
+ **kwargs,
+) -> Union[Future, SlackResponse]:
+ """Updates the connection status between a user and an app.
+ https://docs.slack.dev/reference/methods/apps.user.connection.update
+ """
+ kwargs.update({"user_id": user_id, "status": status})
+ return self.api_call("apps.user.connection.update", params=kwargs)
+
+Updates the connection status between a user and an app.
+https://docs.slack.dev/reference/methods/apps.user.connection.update
+
def assistant_threads_setStatus(self,
*,
channel_id: str,
thread_ts: str,
status: str,
loading_messages: List[str] | None = None,
**kwargs) ‑> _asyncio.Future | LegacySlackResponse
@@ -15400,6 +15437,7 @@ apps_manifest_update
apps_manifest_validate
apps_uninstall
+apps_user_connection_update
assistant_threads_setStatus
assistant_threads_setSuggestedPrompts
assistant_threads_setTitle
diff --git a/docs/reference/web/slack_response.html b/docs/reference/web/slack_response.html
index 6746b3c7d..d6905106e 100644
--- a/docs/reference/web/slack_response.html
+++ b/docs/reference/web/slack_response.html
@@ -204,12 +204,10 @@ Classes
raise StopIteration
@overload
- def get(self, key: str, default: None = None) -> Optional[Any]:
- ...
+ def get(self, key: str, default: None = None) -> Optional[Any]: ...
@overload
- def get(self, key: str, default: T) -> T:
- ...
+ def get(self, key: str, default: T) -> T: ...
def get(self, key, default=None):
"""Retrieves any key from the response data.
diff --git a/slack_sdk/version.py b/slack_sdk/version.py
index f5a37b599..15183e6a7 100644
--- a/slack_sdk/version.py
+++ b/slack_sdk/version.py
@@ -1,3 +1,3 @@
"""Check the latest version at https://pypi.org/project/slack-sdk/"""
-__version__ = "3.40.1"
+__version__ = "3.41.0"
diff --git a/slack_sdk/web/async_chat_stream.py b/slack_sdk/web/async_chat_stream.py
index 7348b90bc..c5344abaa 100644
--- a/slack_sdk/web/async_chat_stream.py
+++ b/slack_sdk/web/async_chat_stream.py
@@ -56,7 +56,7 @@ def __init__(
streaming to channels.
recipient_user_id: The encoded ID of the user to receive the streaming text. Required when streaming to channels.
task_display_mode: Specifies how tasks are displayed in the message. A "timeline" displays individual tasks
- with text and "plan" displays all tasks together.
+ with text and "plan" displays all tasks together.
buffer_size: The length of markdown_text to buffer in-memory before calling a method. Increasing this value
decreases the number of method calls made for the same amount of text, which is useful to avoid rate limits.
**kwargs: Additional arguments passed to the underlying API calls.
diff --git a/slack_sdk/web/async_slack_response.py b/slack_sdk/web/async_slack_response.py
index 2d2cbc680..0815599db 100644
--- a/slack_sdk/web/async_slack_response.py
+++ b/slack_sdk/web/async_slack_response.py
@@ -163,12 +163,10 @@ async def __anext__(self):
raise StopAsyncIteration
@overload
- def get(self, key: str, default: None = None) -> Optional[Any]:
- ...
+ def get(self, key: str, default: None = None) -> Optional[Any]: ...
@overload
- def get(self, key: str, default: T) -> T:
- ...
+ def get(self, key: str, default: T) -> T: ...
def get(self, key, default=None):
"""Retrieves any key from the response data.
diff --git a/slack_sdk/web/slack_response.py b/slack_sdk/web/slack_response.py
index 37fb266f5..29413e5c6 100644
--- a/slack_sdk/web/slack_response.py
+++ b/slack_sdk/web/slack_response.py
@@ -157,12 +157,10 @@ def __next__(self):
raise StopIteration
@overload
- def get(self, key: str, default: None = None) -> Optional[Any]:
- ...
+ def get(self, key: str, default: None = None) -> Optional[Any]: ...
@overload
- def get(self, key: str, default: T) -> T:
- ...
+ def get(self, key: str, default: T) -> T: ...
def get(self, key, default=None):
"""Retrieves any key from the response data.