From 860e27d994744315bb4aa3fe3b7cdddf419c7c09 Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Fri, 6 Sep 2024 13:16:50 -0400 Subject: [PATCH] version 3.32.0 --- docs/static/api-docs/slack_sdk/index.html | 106 +++++++++++++++++- .../models/blocks/block_elements.html | 8 +- .../slack_sdk/models/blocks/index.html | 8 +- .../api-docs/slack_sdk/web/async_client.html | 106 +++++++++++++++++- .../static/api-docs/slack_sdk/web/client.html | 106 +++++++++++++++++- docs/static/api-docs/slack_sdk/web/index.html | 106 +++++++++++++++++- .../api-docs/slack_sdk/web/legacy_client.html | 106 +++++++++++++++++- slack_sdk/version.py | 2 +- 8 files changed, 515 insertions(+), 33 deletions(-) diff --git a/docs/static/api-docs/slack_sdk/index.html b/docs/static/api-docs/slack_sdk/index.html index d21a8868..3d9c3794 100644 --- a/docs/static/api-docs/slack_sdk/index.html +++ b/docs/static/api-docs/slack_sdk/index.html @@ -3367,6 +3367,74 @@

Note

) return self.api_call("conversations.replies", http_verb="GET", params=kwargs) + def conversations_requestSharedInvite_approve( + self, + *, + invite_id: str, + channel_id: Optional[str] = None, + is_external_limited: Optional[str] = None, + message: Optional[Dict[str, Any]] = None, + **kwargs, + ) -> SlackResponse: + """Approve a request to add an external user to a channel. This also sends them a Slack Connect invite. + https://api.slack.com/methods/conversations.requestSharedInvite.approve + """ + kwargs.update( + { + "invite_id": invite_id, + "channel_id": channel_id, + "is_external_limited": is_external_limited, + } + ) + if message is not None: + kwargs.update({"message": json.dumps(message)}) + return self.api_call("conversations.requestSharedInvite.approve", params=kwargs) + + def conversations_requestSharedInvite_deny( + self, + *, + invite_id: str, + message: Optional[str] = None, + **kwargs, + ) -> SlackResponse: + """Deny a request to invite an external user to a channel. + https://api.slack.com/methods/conversations.requestSharedInvite.deny + """ + kwargs.update({"invite_id": invite_id, "message": message}) + return self.api_call("conversations.requestSharedInvite.deny", params=kwargs) + + def conversations_requestSharedInvite_list( + self, + *, + cursor: Optional[str] = None, + include_approved: Optional[bool] = None, + include_denied: Optional[bool] = None, + include_expired: Optional[bool] = None, + invite_ids: Optional[Union[str, Sequence[str]]] = None, + limit: Optional[int] = None, + user_id: Optional[str] = None, + **kwargs, + ) -> SlackResponse: + """Lists requests to add external users to channels with ability to filter. + https://api.slack.com/methods/conversations.requestSharedInvite.list + """ + kwargs.update( + { + "cursor": cursor, + "include_approved": include_approved, + "include_denied": include_denied, + "include_expired": include_expired, + "limit": limit, + "user_id": user_id, + } + ) + if invite_ids is not None: + if isinstance(invite_ids, (list, Tuple)): + kwargs.update({"invite_ids": ",".join(invite_ids)}) + else: + kwargs.update({"invite_ids": invite_ids}) + return self.api_call("conversations.requestSharedInvite.list", params=kwargs) + def conversations_setPurpose( self, *, @@ -5339,7 +5407,8 @@

Note

def views_open( self, *, - trigger_id: str, + trigger_id: Optional[str] = None, + interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs, ) -> SlackResponse: @@ -5347,7 +5416,7 @@

Note

https://api.slack.com/methods/views.open See https://api.slack.com/surfaces/modals for details. """ - kwargs.update({"trigger_id": trigger_id}) + kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): kwargs.update({"view": view.to_dict()}) else: @@ -5359,7 +5428,8 @@

Note

def views_push( self, *, - trigger_id: str, + trigger_id: Optional[str] = None, + interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs, ) -> SlackResponse: @@ -5371,7 +5441,7 @@

Note

to learn more about the lifecycle and intricacies of views. https://api.slack.com/methods/views.push """ - kwargs.update({"trigger_id": trigger_id}) + kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): kwargs.update({"view": view.to_dict()}) else: @@ -6696,6 +6766,27 @@

Methods

Retrieve a thread of messages posted to a conversation https://api.slack.com/methods/conversations.replies

+
+def conversations_requestSharedInvite_approve(self, *, invite_id: str, channel_id: Optional[str] = None, is_external_limited: Optional[str] = None, message: Optional[Dict[str, Any]] = None, **kwargs) ‑> SlackResponse +
+
+

Approve a request to add an external user to a channel. This also sends them a Slack Connect invite. +https://api.slack.com/methods/conversations.requestSharedInvite.approve

+
+
+def conversations_requestSharedInvite_deny(self, *, invite_id: str, message: Optional[str] = None, **kwargs) ‑> SlackResponse +
+
+

Deny a request to invite an external user to a channel. +https://api.slack.com/methods/conversations.requestSharedInvite.deny

+
+
+def conversations_requestSharedInvite_list(self, *, cursor: Optional[str] = None, include_approved: Optional[bool] = None, include_denied: Optional[bool] = None, include_expired: Optional[bool] = None, invite_ids: Union[str, Sequence[str], ForwardRef(None)] = None, limit: Optional[int] = None, user_id: Optional[str] = None, **kwargs) ‑> SlackResponse +
+
+

Lists requests to add external users to channels with ability to filter. +https://api.slack.com/methods/conversations.requestSharedInvite.list

+
def conversations_setPurpose(self, *, channel: str, purpose: str, **kwargs) ‑> SlackResponse
@@ -7458,7 +7549,7 @@

Methods

https://api.slack.com/methods/users.setPresence

-def views_open(self, *, trigger_id: str, view: Union[dict, View], **kwargs) ‑> SlackResponse +def views_open(self, *, trigger_id: Optional[str] = None, interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs) ‑> SlackResponse

Open a view for a user. @@ -7475,7 +7566,7 @@

Methods

https://api.slack.com/methods/views.publish

-def views_push(self, *, trigger_id: str, view: Union[dict, View], **kwargs) ‑> SlackResponse +def views_push(self, *, trigger_id: Optional[str] = None, interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs) ‑> SlackResponse

Push a view onto the stack of a root view. @@ -8114,6 +8205,9 @@

WebClientconversations_open
  • conversations_rename
  • conversations_replies
  • +
  • conversations_requestSharedInvite_approve
  • +
  • conversations_requestSharedInvite_deny
  • +
  • conversations_requestSharedInvite_list
  • conversations_setPurpose
  • conversations_setTopic
  • conversations_unarchive
  • diff --git a/docs/static/api-docs/slack_sdk/models/blocks/block_elements.html b/docs/static/api-docs/slack_sdk/models/blocks/block_elements.html index 462d1ecc..0e184902 100644 --- a/docs/static/api-docs/slack_sdk/models/blocks/block_elements.html +++ b/docs/static/api-docs/slack_sdk/models/blocks/block_elements.html @@ -2940,17 +2940,23 @@

    Inherited members

    @property def attributes(self) -> Set[str]: - return super().attributes.union({"timestamp"}) + return super().attributes.union({"timestamp", "format", "url", "fallback"}) def __init__( self, *, timestamp: str, + format: str, + url: Optional[str] = None, + fallback: Optional[str] = None, **others: dict, ): super().__init__(type=self.type) show_unknown_key_warning(self, others) self.timestamp = timestamp + self.format = format + self.url = url + self.fallback = fallback class Broadcast(RichTextElement): type = "broadcast" diff --git a/docs/static/api-docs/slack_sdk/models/blocks/index.html b/docs/static/api-docs/slack_sdk/models/blocks/index.html index 5cd51399..60bbaa97 100644 --- a/docs/static/api-docs/slack_sdk/models/blocks/index.html +++ b/docs/static/api-docs/slack_sdk/models/blocks/index.html @@ -4839,17 +4839,23 @@

    Inherited members

    @property def attributes(self) -> Set[str]: - return super().attributes.union({"timestamp"}) + return super().attributes.union({"timestamp", "format", "url", "fallback"}) def __init__( self, *, timestamp: str, + format: str, + url: Optional[str] = None, + fallback: Optional[str] = None, **others: dict, ): super().__init__(type=self.type) show_unknown_key_warning(self, others) self.timestamp = timestamp + self.format = format + self.url = url + self.fallback = fallback class Broadcast(RichTextElement): type = "broadcast" diff --git a/docs/static/api-docs/slack_sdk/web/async_client.html b/docs/static/api-docs/slack_sdk/web/async_client.html index c13cd06b..fd659bc4 100644 --- a/docs/static/api-docs/slack_sdk/web/async_client.html +++ b/docs/static/api-docs/slack_sdk/web/async_client.html @@ -3263,6 +3263,74 @@

    Note

    ) return await self.api_call("conversations.replies", http_verb="GET", params=kwargs) + async def conversations_requestSharedInvite_approve( + self, + *, + invite_id: str, + channel_id: Optional[str] = None, + is_external_limited: Optional[str] = None, + message: Optional[Dict[str, Any]] = None, + **kwargs, + ) -> AsyncSlackResponse: + """Approve a request to add an external user to a channel. This also sends them a Slack Connect invite. + https://api.slack.com/methods/conversations.requestSharedInvite.approve + """ + kwargs.update( + { + "invite_id": invite_id, + "channel_id": channel_id, + "is_external_limited": is_external_limited, + } + ) + if message is not None: + kwargs.update({"message": json.dumps(message)}) + return await self.api_call("conversations.requestSharedInvite.approve", params=kwargs) + + async def conversations_requestSharedInvite_deny( + self, + *, + invite_id: str, + message: Optional[str] = None, + **kwargs, + ) -> AsyncSlackResponse: + """Deny a request to invite an external user to a channel. + https://api.slack.com/methods/conversations.requestSharedInvite.deny + """ + kwargs.update({"invite_id": invite_id, "message": message}) + return await self.api_call("conversations.requestSharedInvite.deny", params=kwargs) + + async def conversations_requestSharedInvite_list( + self, + *, + cursor: Optional[str] = None, + include_approved: Optional[bool] = None, + include_denied: Optional[bool] = None, + include_expired: Optional[bool] = None, + invite_ids: Optional[Union[str, Sequence[str]]] = None, + limit: Optional[int] = None, + user_id: Optional[str] = None, + **kwargs, + ) -> AsyncSlackResponse: + """Lists requests to add external users to channels with ability to filter. + https://api.slack.com/methods/conversations.requestSharedInvite.list + """ + kwargs.update( + { + "cursor": cursor, + "include_approved": include_approved, + "include_denied": include_denied, + "include_expired": include_expired, + "limit": limit, + "user_id": user_id, + } + ) + if invite_ids is not None: + if isinstance(invite_ids, (list, Tuple)): + kwargs.update({"invite_ids": ",".join(invite_ids)}) + else: + kwargs.update({"invite_ids": invite_ids}) + return await self.api_call("conversations.requestSharedInvite.list", params=kwargs) + async def conversations_setPurpose( self, *, @@ -5235,7 +5303,8 @@

    Note

    async def views_open( self, *, - trigger_id: str, + trigger_id: Optional[str] = None, + interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs, ) -> AsyncSlackResponse: @@ -5243,7 +5312,7 @@

    Note

    https://api.slack.com/methods/views.open See https://api.slack.com/surfaces/modals for details. """ - kwargs.update({"trigger_id": trigger_id}) + kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): kwargs.update({"view": view.to_dict()}) else: @@ -5255,7 +5324,8 @@

    Note

    async def views_push( self, *, - trigger_id: str, + trigger_id: Optional[str] = None, + interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs, ) -> AsyncSlackResponse: @@ -5267,7 +5337,7 @@

    Note

    to learn more about the lifecycle and intricacies of views. https://api.slack.com/methods/views.push """ - kwargs.update({"trigger_id": trigger_id}) + kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): kwargs.update({"view": view.to_dict()}) else: @@ -6592,6 +6662,27 @@

    Methods

    Retrieve a thread of messages posted to a conversation https://api.slack.com/methods/conversations.replies

    +
    +async def conversations_requestSharedInvite_approve(self, *, invite_id: str, channel_id: Optional[str] = None, is_external_limited: Optional[str] = None, message: Optional[Dict[str, Any]] = None, **kwargs) ‑> AsyncSlackResponse +
    +
    +

    Approve a request to add an external user to a channel. This also sends them a Slack Connect invite. +https://api.slack.com/methods/conversations.requestSharedInvite.approve

    +
    +
    +async def conversations_requestSharedInvite_deny(self, *, invite_id: str, message: Optional[str] = None, **kwargs) ‑> AsyncSlackResponse +
    +
    +

    Deny a request to invite an external user to a channel. +https://api.slack.com/methods/conversations.requestSharedInvite.deny

    +
    +
    +async def conversations_requestSharedInvite_list(self, *, cursor: Optional[str] = None, include_approved: Optional[bool] = None, include_denied: Optional[bool] = None, include_expired: Optional[bool] = None, invite_ids: Union[str, Sequence[str], ForwardRef(None)] = None, limit: Optional[int] = None, user_id: Optional[str] = None, **kwargs) ‑> AsyncSlackResponse +
    +
    +

    Lists requests to add external users to channels with ability to filter. +https://api.slack.com/methods/conversations.requestSharedInvite.list

    +
    async def conversations_setPurpose(self, *, channel: str, purpose: str, **kwargs) ‑> AsyncSlackResponse
    @@ -7354,7 +7445,7 @@

    Methods

    https://api.slack.com/methods/users.setPresence

    -async def views_open(self, *, trigger_id: str, view: Union[dict, View], **kwargs) ‑> AsyncSlackResponse +async def views_open(self, *, trigger_id: Optional[str] = None, interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs) ‑> AsyncSlackResponse

    Open a view for a user. @@ -7371,7 +7462,7 @@

    Methods

    https://api.slack.com/methods/views.publish

    -async def views_push(self, *, trigger_id: str, view: Union[dict, View], **kwargs) ‑> AsyncSlackResponse +async def views_push(self, *, trigger_id: Optional[str] = None, interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs) ‑> AsyncSlackResponse

    Push a view onto the stack of a root view. @@ -7621,6 +7712,9 @@

    conversations_open
  • conversations_rename
  • conversations_replies
  • +
  • conversations_requestSharedInvite_approve
  • +
  • conversations_requestSharedInvite_deny
  • +
  • conversations_requestSharedInvite_list
  • conversations_setPurpose
  • conversations_setTopic
  • conversations_unarchive
  • diff --git a/docs/static/api-docs/slack_sdk/web/client.html b/docs/static/api-docs/slack_sdk/web/client.html index 706fa4c7..526d635b 100644 --- a/docs/static/api-docs/slack_sdk/web/client.html +++ b/docs/static/api-docs/slack_sdk/web/client.html @@ -3263,6 +3263,74 @@

    Note

    ) return self.api_call("conversations.replies", http_verb="GET", params=kwargs) + def conversations_requestSharedInvite_approve( + self, + *, + invite_id: str, + channel_id: Optional[str] = None, + is_external_limited: Optional[str] = None, + message: Optional[Dict[str, Any]] = None, + **kwargs, + ) -> SlackResponse: + """Approve a request to add an external user to a channel. This also sends them a Slack Connect invite. + https://api.slack.com/methods/conversations.requestSharedInvite.approve + """ + kwargs.update( + { + "invite_id": invite_id, + "channel_id": channel_id, + "is_external_limited": is_external_limited, + } + ) + if message is not None: + kwargs.update({"message": json.dumps(message)}) + return self.api_call("conversations.requestSharedInvite.approve", params=kwargs) + + def conversations_requestSharedInvite_deny( + self, + *, + invite_id: str, + message: Optional[str] = None, + **kwargs, + ) -> SlackResponse: + """Deny a request to invite an external user to a channel. + https://api.slack.com/methods/conversations.requestSharedInvite.deny + """ + kwargs.update({"invite_id": invite_id, "message": message}) + return self.api_call("conversations.requestSharedInvite.deny", params=kwargs) + + def conversations_requestSharedInvite_list( + self, + *, + cursor: Optional[str] = None, + include_approved: Optional[bool] = None, + include_denied: Optional[bool] = None, + include_expired: Optional[bool] = None, + invite_ids: Optional[Union[str, Sequence[str]]] = None, + limit: Optional[int] = None, + user_id: Optional[str] = None, + **kwargs, + ) -> SlackResponse: + """Lists requests to add external users to channels with ability to filter. + https://api.slack.com/methods/conversations.requestSharedInvite.list + """ + kwargs.update( + { + "cursor": cursor, + "include_approved": include_approved, + "include_denied": include_denied, + "include_expired": include_expired, + "limit": limit, + "user_id": user_id, + } + ) + if invite_ids is not None: + if isinstance(invite_ids, (list, Tuple)): + kwargs.update({"invite_ids": ",".join(invite_ids)}) + else: + kwargs.update({"invite_ids": invite_ids}) + return self.api_call("conversations.requestSharedInvite.list", params=kwargs) + def conversations_setPurpose( self, *, @@ -5235,7 +5303,8 @@

    Note

    def views_open( self, *, - trigger_id: str, + trigger_id: Optional[str] = None, + interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs, ) -> SlackResponse: @@ -5243,7 +5312,7 @@

    Note

    https://api.slack.com/methods/views.open See https://api.slack.com/surfaces/modals for details. """ - kwargs.update({"trigger_id": trigger_id}) + kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): kwargs.update({"view": view.to_dict()}) else: @@ -5255,7 +5324,8 @@

    Note

    def views_push( self, *, - trigger_id: str, + trigger_id: Optional[str] = None, + interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs, ) -> SlackResponse: @@ -5267,7 +5337,7 @@

    Note

    to learn more about the lifecycle and intricacies of views. https://api.slack.com/methods/views.push """ - kwargs.update({"trigger_id": trigger_id}) + kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): kwargs.update({"view": view.to_dict()}) else: @@ -6592,6 +6662,27 @@

    Methods

    Retrieve a thread of messages posted to a conversation https://api.slack.com/methods/conversations.replies

    +
    +def conversations_requestSharedInvite_approve(self, *, invite_id: str, channel_id: Optional[str] = None, is_external_limited: Optional[str] = None, message: Optional[Dict[str, Any]] = None, **kwargs) ‑> SlackResponse +
    +
    +

    Approve a request to add an external user to a channel. This also sends them a Slack Connect invite. +https://api.slack.com/methods/conversations.requestSharedInvite.approve

    +
    +
    +def conversations_requestSharedInvite_deny(self, *, invite_id: str, message: Optional[str] = None, **kwargs) ‑> SlackResponse +
    +
    +

    Deny a request to invite an external user to a channel. +https://api.slack.com/methods/conversations.requestSharedInvite.deny

    +
    +
    +def conversations_requestSharedInvite_list(self, *, cursor: Optional[str] = None, include_approved: Optional[bool] = None, include_denied: Optional[bool] = None, include_expired: Optional[bool] = None, invite_ids: Union[str, Sequence[str], ForwardRef(None)] = None, limit: Optional[int] = None, user_id: Optional[str] = None, **kwargs) ‑> SlackResponse +
    +
    +

    Lists requests to add external users to channels with ability to filter. +https://api.slack.com/methods/conversations.requestSharedInvite.list

    +
    def conversations_setPurpose(self, *, channel: str, purpose: str, **kwargs) ‑> SlackResponse
    @@ -7354,7 +7445,7 @@

    Methods

    https://api.slack.com/methods/users.setPresence

    -def views_open(self, *, trigger_id: str, view: Union[dict, View], **kwargs) ‑> SlackResponse +def views_open(self, *, trigger_id: Optional[str] = None, interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs) ‑> SlackResponse

    Open a view for a user. @@ -7371,7 +7462,7 @@

    Methods

    https://api.slack.com/methods/views.publish

    -def views_push(self, *, trigger_id: str, view: Union[dict, View], **kwargs) ‑> SlackResponse +def views_push(self, *, trigger_id: Optional[str] = None, interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs) ‑> SlackResponse

    Push a view onto the stack of a root view. @@ -7620,6 +7711,9 @@

    conversations_open
  • conversations_rename
  • conversations_replies
  • +
  • conversations_requestSharedInvite_approve
  • +
  • conversations_requestSharedInvite_deny
  • +
  • conversations_requestSharedInvite_list
  • conversations_setPurpose
  • conversations_setTopic
  • conversations_unarchive
  • diff --git a/docs/static/api-docs/slack_sdk/web/index.html b/docs/static/api-docs/slack_sdk/web/index.html index 7a6a43e6..8febc0ca 100644 --- a/docs/static/api-docs/slack_sdk/web/index.html +++ b/docs/static/api-docs/slack_sdk/web/index.html @@ -3586,6 +3586,74 @@

    Note

    ) return self.api_call("conversations.replies", http_verb="GET", params=kwargs) + def conversations_requestSharedInvite_approve( + self, + *, + invite_id: str, + channel_id: Optional[str] = None, + is_external_limited: Optional[str] = None, + message: Optional[Dict[str, Any]] = None, + **kwargs, + ) -> SlackResponse: + """Approve a request to add an external user to a channel. This also sends them a Slack Connect invite. + https://api.slack.com/methods/conversations.requestSharedInvite.approve + """ + kwargs.update( + { + "invite_id": invite_id, + "channel_id": channel_id, + "is_external_limited": is_external_limited, + } + ) + if message is not None: + kwargs.update({"message": json.dumps(message)}) + return self.api_call("conversations.requestSharedInvite.approve", params=kwargs) + + def conversations_requestSharedInvite_deny( + self, + *, + invite_id: str, + message: Optional[str] = None, + **kwargs, + ) -> SlackResponse: + """Deny a request to invite an external user to a channel. + https://api.slack.com/methods/conversations.requestSharedInvite.deny + """ + kwargs.update({"invite_id": invite_id, "message": message}) + return self.api_call("conversations.requestSharedInvite.deny", params=kwargs) + + def conversations_requestSharedInvite_list( + self, + *, + cursor: Optional[str] = None, + include_approved: Optional[bool] = None, + include_denied: Optional[bool] = None, + include_expired: Optional[bool] = None, + invite_ids: Optional[Union[str, Sequence[str]]] = None, + limit: Optional[int] = None, + user_id: Optional[str] = None, + **kwargs, + ) -> SlackResponse: + """Lists requests to add external users to channels with ability to filter. + https://api.slack.com/methods/conversations.requestSharedInvite.list + """ + kwargs.update( + { + "cursor": cursor, + "include_approved": include_approved, + "include_denied": include_denied, + "include_expired": include_expired, + "limit": limit, + "user_id": user_id, + } + ) + if invite_ids is not None: + if isinstance(invite_ids, (list, Tuple)): + kwargs.update({"invite_ids": ",".join(invite_ids)}) + else: + kwargs.update({"invite_ids": invite_ids}) + return self.api_call("conversations.requestSharedInvite.list", params=kwargs) + def conversations_setPurpose( self, *, @@ -5558,7 +5626,8 @@

    Note

    def views_open( self, *, - trigger_id: str, + trigger_id: Optional[str] = None, + interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs, ) -> SlackResponse: @@ -5566,7 +5635,7 @@

    Note

    https://api.slack.com/methods/views.open See https://api.slack.com/surfaces/modals for details. """ - kwargs.update({"trigger_id": trigger_id}) + kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): kwargs.update({"view": view.to_dict()}) else: @@ -5578,7 +5647,8 @@

    Note

    def views_push( self, *, - trigger_id: str, + trigger_id: Optional[str] = None, + interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs, ) -> SlackResponse: @@ -5590,7 +5660,7 @@

    Note

    to learn more about the lifecycle and intricacies of views. https://api.slack.com/methods/views.push """ - kwargs.update({"trigger_id": trigger_id}) + kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): kwargs.update({"view": view.to_dict()}) else: @@ -6915,6 +6985,27 @@

    Methods

    Retrieve a thread of messages posted to a conversation https://api.slack.com/methods/conversations.replies

    +
    +def conversations_requestSharedInvite_approve(self, *, invite_id: str, channel_id: Optional[str] = None, is_external_limited: Optional[str] = None, message: Optional[Dict[str, Any]] = None, **kwargs) ‑> SlackResponse +
    +
    +

    Approve a request to add an external user to a channel. This also sends them a Slack Connect invite. +https://api.slack.com/methods/conversations.requestSharedInvite.approve

    +
    +
    +def conversations_requestSharedInvite_deny(self, *, invite_id: str, message: Optional[str] = None, **kwargs) ‑> SlackResponse +
    +
    +

    Deny a request to invite an external user to a channel. +https://api.slack.com/methods/conversations.requestSharedInvite.deny

    +
    +
    +def conversations_requestSharedInvite_list(self, *, cursor: Optional[str] = None, include_approved: Optional[bool] = None, include_denied: Optional[bool] = None, include_expired: Optional[bool] = None, invite_ids: Union[str, Sequence[str], ForwardRef(None)] = None, limit: Optional[int] = None, user_id: Optional[str] = None, **kwargs) ‑> SlackResponse +
    +
    +

    Lists requests to add external users to channels with ability to filter. +https://api.slack.com/methods/conversations.requestSharedInvite.list

    +
    def conversations_setPurpose(self, *, channel: str, purpose: str, **kwargs) ‑> SlackResponse
    @@ -7677,7 +7768,7 @@

    Methods

    https://api.slack.com/methods/users.setPresence

    -def views_open(self, *, trigger_id: str, view: Union[dict, View], **kwargs) ‑> SlackResponse +def views_open(self, *, trigger_id: Optional[str] = None, interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs) ‑> SlackResponse

    Open a view for a user. @@ -7694,7 +7785,7 @@

    Methods

    https://api.slack.com/methods/views.publish

    -def views_push(self, *, trigger_id: str, view: Union[dict, View], **kwargs) ‑> SlackResponse +def views_push(self, *, trigger_id: Optional[str] = None, interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs) ‑> SlackResponse

    Push a view onto the stack of a root view. @@ -7967,6 +8058,9 @@

    Web
  • conversations_open
  • conversations_rename
  • conversations_replies
  • +
  • conversations_requestSharedInvite_approve
  • +
  • conversations_requestSharedInvite_deny
  • +
  • conversations_requestSharedInvite_list
  • conversations_setPurpose
  • conversations_setTopic
  • conversations_unarchive
  • diff --git a/docs/static/api-docs/slack_sdk/web/legacy_client.html b/docs/static/api-docs/slack_sdk/web/legacy_client.html index 73e26d4a..670d86e3 100644 --- a/docs/static/api-docs/slack_sdk/web/legacy_client.html +++ b/docs/static/api-docs/slack_sdk/web/legacy_client.html @@ -3262,6 +3262,74 @@

    Note

    ) return self.api_call("conversations.replies", http_verb="GET", params=kwargs) + def conversations_requestSharedInvite_approve( + self, + *, + invite_id: str, + channel_id: Optional[str] = None, + is_external_limited: Optional[str] = None, + message: Optional[Dict[str, Any]] = None, + **kwargs, + ) -> Union[Future, SlackResponse]: + """Approve a request to add an external user to a channel. This also sends them a Slack Connect invite. + https://api.slack.com/methods/conversations.requestSharedInvite.approve + """ + kwargs.update( + { + "invite_id": invite_id, + "channel_id": channel_id, + "is_external_limited": is_external_limited, + } + ) + if message is not None: + kwargs.update({"message": json.dumps(message)}) + return self.api_call("conversations.requestSharedInvite.approve", params=kwargs) + + def conversations_requestSharedInvite_deny( + self, + *, + invite_id: str, + message: Optional[str] = None, + **kwargs, + ) -> Union[Future, SlackResponse]: + """Deny a request to invite an external user to a channel. + https://api.slack.com/methods/conversations.requestSharedInvite.deny + """ + kwargs.update({"invite_id": invite_id, "message": message}) + return self.api_call("conversations.requestSharedInvite.deny", params=kwargs) + + def conversations_requestSharedInvite_list( + self, + *, + cursor: Optional[str] = None, + include_approved: Optional[bool] = None, + include_denied: Optional[bool] = None, + include_expired: Optional[bool] = None, + invite_ids: Optional[Union[str, Sequence[str]]] = None, + limit: Optional[int] = None, + user_id: Optional[str] = None, + **kwargs, + ) -> Union[Future, SlackResponse]: + """Lists requests to add external users to channels with ability to filter. + https://api.slack.com/methods/conversations.requestSharedInvite.list + """ + kwargs.update( + { + "cursor": cursor, + "include_approved": include_approved, + "include_denied": include_denied, + "include_expired": include_expired, + "limit": limit, + "user_id": user_id, + } + ) + if invite_ids is not None: + if isinstance(invite_ids, (list, Tuple)): + kwargs.update({"invite_ids": ",".join(invite_ids)}) + else: + kwargs.update({"invite_ids": invite_ids}) + return self.api_call("conversations.requestSharedInvite.list", params=kwargs) + def conversations_setPurpose( self, *, @@ -5234,7 +5302,8 @@

    Note

    def views_open( self, *, - trigger_id: str, + trigger_id: Optional[str] = None, + interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs, ) -> Union[Future, SlackResponse]: @@ -5242,7 +5311,7 @@

    Note

    https://api.slack.com/methods/views.open See https://api.slack.com/surfaces/modals for details. """ - kwargs.update({"trigger_id": trigger_id}) + kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): kwargs.update({"view": view.to_dict()}) else: @@ -5254,7 +5323,8 @@

    Note

    def views_push( self, *, - trigger_id: str, + trigger_id: Optional[str] = None, + interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs, ) -> Union[Future, SlackResponse]: @@ -5266,7 +5336,7 @@

    Note

    to learn more about the lifecycle and intricacies of views. https://api.slack.com/methods/views.push """ - kwargs.update({"trigger_id": trigger_id}) + kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): kwargs.update({"view": view.to_dict()}) else: @@ -6591,6 +6661,27 @@

    Methods

    Retrieve a thread of messages posted to a conversation https://api.slack.com/methods/conversations.replies

    +
    +def conversations_requestSharedInvite_approve(self, *, invite_id: str, channel_id: Optional[str] = None, is_external_limited: Optional[str] = None, message: Optional[Dict[str, Any]] = None, **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse] +
    +
    +

    Approve a request to add an external user to a channel. This also sends them a Slack Connect invite. +https://api.slack.com/methods/conversations.requestSharedInvite.approve

    +
    +
    +def conversations_requestSharedInvite_deny(self, *, invite_id: str, message: Optional[str] = None, **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse] +
    +
    +

    Deny a request to invite an external user to a channel. +https://api.slack.com/methods/conversations.requestSharedInvite.deny

    +
    +
    +def conversations_requestSharedInvite_list(self, *, cursor: Optional[str] = None, include_approved: Optional[bool] = None, include_denied: Optional[bool] = None, include_expired: Optional[bool] = None, invite_ids: Union[str, Sequence[str], ForwardRef(None)] = None, limit: Optional[int] = None, user_id: Optional[str] = None, **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse] +
    +
    +

    Lists requests to add external users to channels with ability to filter. +https://api.slack.com/methods/conversations.requestSharedInvite.list

    +
    def conversations_setPurpose(self, *, channel: str, purpose: str, **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]
    @@ -7353,7 +7444,7 @@

    Methods

    https://api.slack.com/methods/users.setPresence

    -def views_open(self, *, trigger_id: str, view: Union[dict, View], **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse] +def views_open(self, *, trigger_id: Optional[str] = None, interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]

    Open a view for a user. @@ -7370,7 +7461,7 @@

    Methods

    https://api.slack.com/methods/views.publish

    -def views_push(self, *, trigger_id: str, view: Union[dict, View], **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse] +def views_push(self, *, trigger_id: Optional[str] = None, interactivity_pointer: Optional[str] = None, view: Union[dict, View], **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]

    Push a view onto the stack of a root view. @@ -7619,6 +7710,9 @@

    conversations_open
  • conversations_rename
  • conversations_replies
  • +
  • conversations_requestSharedInvite_approve
  • +
  • conversations_requestSharedInvite_deny
  • +
  • conversations_requestSharedInvite_list
  • conversations_setPurpose
  • conversations_setTopic
  • conversations_unarchive
  • diff --git a/slack_sdk/version.py b/slack_sdk/version.py index b17c796a..dfe15523 100644 --- a/slack_sdk/version.py +++ b/slack_sdk/version.py @@ -1,2 +1,2 @@ """Check the latest version at https://pypi.org/project/slack-sdk/""" -__version__ = "3.31.0" +__version__ = "3.32.0"