diff --git a/.github/ISSUE_TEMPLATE/03_document.md b/.github/ISSUE_TEMPLATE/03_document.md index 5245ab289..822bc2ee4 100644 --- a/.github/ISSUE_TEMPLATE/03_document.md +++ b/.github/ISSUE_TEMPLATE/03_document.md @@ -10,7 +10,7 @@ assignees: "" ### The page URLs -- https://slack.dev/python-slack-sdk/ +- https://docs.slack.dev/tools/python-slack-sdk/ ### Requirements diff --git a/README.md b/README.md index 7defbbccb..ec57ebfdc 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ Whether you're building a custom app for your team, or integrating a third party The **Python Slack SDK** allows interaction with: - `slack_sdk.web`: for calling the [Web API methods][api-methods] -- `slack_sdk.webhook`: for utilizing the [Incoming Webhooks](https://api.slack.com/messaging/webhooks) and [`response_url`s in payloads](https://api.slack.com/interactivity/handling#message_responses) -- `slack_sdk.signature`: for [verifying incoming requests from the Slack API server](https://api.slack.com/authentication/verifying-requests-from-slack) -- `slack_sdk.socket_mode`: for receiving and sending messages over [Socket Mode](https://api.slack.com/socket-mode) connections -- `slack_sdk.audit_logs`: for utilizing [Audit Logs APIs](https://api.slack.com/admins/audit-logs) -- `slack_sdk.scim`: for utilizing [SCIM APIs](https://api.slack.com/admins/scim) -- `slack_sdk.oauth`: for implementing the [Slack OAuth flow](https://api.slack.com/authentication/oauth-v2) -- `slack_sdk.models`: for constructing [Block Kit](https://api.slack.com/block-kit) UI components using easy-to-use builders +- `slack_sdk.webhook`: for utilizing the [Incoming Webhooks](https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/) and [`response_url`s in payloads](https://docs.slack.dev/interactivity/handling-user-interaction/#message_responses) +- `slack_sdk.signature`: for [verifying incoming requests from the Slack API server](https://docs.slack.dev/authentication/verifying-requests-from-slack/) +- `slack_sdk.socket_mode`: for receiving and sending messages over [Socket Mode](https://docs.slack.dev/apis/events-api/using-socket-mode/) connections +- `slack_sdk.audit_logs`: for utilizing [Audit Logs APIs](https://docs.slack.dev/admins/audit-logs-api/) +- `slack_sdk.scim`: for utilizing [SCIM APIs](https://docs.slack.dev/admins/scim-api/) +- `slack_sdk.oauth`: for implementing the [Slack OAuth flow](https://docs.slack.dev/authentication/installing-with-oauth/) +- `slack_sdk.models`: for constructing [Block Kit](https://docs.slack.dev/block-kit/) UI components using easy-to-use builders - `slack_sdk.rtm`: for utilizing the [RTM API][rtm-docs] If you want to use our [Events API][events-docs] and Interactivity features, please check the [Bolt for Python][bolt-python] library. Details on the Tokens and Authentication can be found in our [Auth Guide](https://docs.slack.dev/tools/python-slack-sdk/installation/). @@ -293,9 +293,9 @@ helpful and collaborative way. [slackclientv1]: https://github.com/slackapi/python-slackclient/tree/v1 -[api-methods]: https://api.slack.com/methods -[rtm-docs]: https://api.slack.com/rtm -[events-docs]: https://api.slack.com/events-api +[api-methods]: https://docs.slack.dev/reference/methods +[rtm-docs]: https://docs.slack.dev/legacy/legacy-rtm-api/ +[events-docs]: https://docs.slack.dev/apis/events-api/ [bolt-python]: https://github.com/slackapi/bolt-python [pypi]: https://pypi.org/ [gh-issues]: https://github.com/slackapi/python-slack-sdk/issues diff --git a/docs/reference/audit_logs/async_client.html b/docs/reference/audit_logs/async_client.html index 7f8d7ff0d..600bb9c35 100644 --- a/docs/reference/audit_logs/async_client.html +++ b/docs/reference/audit_logs/async_client.html @@ -87,7 +87,7 @@

Classes

retry_handlers: Optional[List[AsyncRetryHandler]] = None, ): """API client for Audit Logs API - See https://api.slack.com/admins/audit-logs for more details + See https://docs.slack.dev/admins/audit-logs-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` @@ -389,7 +389,7 @@

Classes

return resp

API client for Audit Logs API -See https://api.slack.com/admins/audit-logs for more details

+See https://docs.slack.dev/admins/audit-logs-api/ for more details

Args

token
diff --git a/docs/reference/audit_logs/index.html b/docs/reference/audit_logs/index.html index 55812fc19..940d34e1c 100644 --- a/docs/reference/audit_logs/index.html +++ b/docs/reference/audit_logs/index.html @@ -37,7 +37,7 @@

Module slack_sdk.audit_logs

Audit Logs API is a set of APIs for monitoring what’s happening in your Enterprise Grid organization.

-

Refer to https://slack.dev/python-slack-sdk/audit-logs/ for details.

+

Refer to https://docs.slack.dev/tools/python-slack-sdk/audit-logs for details.

Sub-modules

@@ -94,7 +94,7 @@

Classes

retry_handlers: Optional[List[RetryHandler]] = None, ): """API client for Audit Logs API - See https://api.slack.com/admins/audit-logs for more details + See https://docs.slack.dev/admins/audit-logs-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` @@ -402,7 +402,7 @@

Classes

return resp

API client for Audit Logs API -See https://api.slack.com/admins/audit-logs for more details

+See https://docs.slack.dev/admins/audit-logs-api/ for more details

Args

token
diff --git a/docs/reference/audit_logs/v1/async_client.html b/docs/reference/audit_logs/v1/async_client.html index 866b6309b..e3f01fafc 100644 --- a/docs/reference/audit_logs/v1/async_client.html +++ b/docs/reference/audit_logs/v1/async_client.html @@ -37,7 +37,7 @@

Module slack_sdk.audit_logs.v1.async_client

Audit Logs API is a set of APIs for monitoring what’s happening in your Enterprise Grid organization.

-

Refer to https://slack.dev/python-slack-sdk/audit-logs/ for details.

+

Refer to https://docs.slack.dev/tools/python-slack-sdk/audit-logs for details.

@@ -89,7 +89,7 @@

Classes

retry_handlers: Optional[List[AsyncRetryHandler]] = None, ): """API client for Audit Logs API - See https://api.slack.com/admins/audit-logs for more details + See https://docs.slack.dev/admins/audit-logs-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` @@ -391,7 +391,7 @@

Classes

return resp

API client for Audit Logs API -See https://api.slack.com/admins/audit-logs for more details

+See https://docs.slack.dev/admins/audit-logs-api/ for more details

Args

token
diff --git a/docs/reference/audit_logs/v1/client.html b/docs/reference/audit_logs/v1/client.html index fd84b75bb..fb3939178 100644 --- a/docs/reference/audit_logs/v1/client.html +++ b/docs/reference/audit_logs/v1/client.html @@ -37,7 +37,7 @@

Module slack_sdk.audit_logs.v1.client

Audit Logs API is a set of APIs for monitoring what’s happening in your Enterprise Grid organization.

-

Refer to https://slack.dev/python-slack-sdk/audit-logs/ for details.

+

Refer to https://docs.slack.dev/tools/python-slack-sdk/audit-logs for details.

@@ -83,7 +83,7 @@

Classes

retry_handlers: Optional[List[RetryHandler]] = None, ): """API client for Audit Logs API - See https://api.slack.com/admins/audit-logs for more details + See https://docs.slack.dev/admins/audit-logs-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` @@ -391,7 +391,7 @@

Classes

return resp

API client for Audit Logs API -See https://api.slack.com/admins/audit-logs for more details

+See https://docs.slack.dev/admins/audit-logs-api/ for more details

Args

token
diff --git a/docs/reference/audit_logs/v1/index.html b/docs/reference/audit_logs/v1/index.html index 2f809b98e..7c3def12a 100644 --- a/docs/reference/audit_logs/v1/index.html +++ b/docs/reference/audit_logs/v1/index.html @@ -37,7 +37,7 @@

Module slack_sdk.audit_logs.v1

Audit Logs API is a set of APIs for monitoring what’s happening in your Enterprise Grid organization.

-

Refer to https://slack.dev/python-slack-sdk/audit-logs/ for details.

+

Refer to https://docs.slack.dev/tools/python-slack-sdk/audit-logs for details.

Sub-modules

diff --git a/docs/reference/index.html b/docs/reference/index.html index 8b9b9e3f5..6671d4f16 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -5,7 +5,7 @@ slack_sdk API documentation - @@ -38,7 +38,7 @@

Package slack_sdk

Here is the list of key modules in this SDK:

@@ -163,7 +163,7 @@

Classes

class WebClient(BaseClient):
     """A WebClient allows apps to communicate with the Slack Platform's Web API.
 
-    https://api.slack.com/methods
+    https://docs.slack.dev/reference/methods
 
     The Slack Web API is an interface for querying information from
     and enacting change in a Slack workspace.
@@ -234,7 +234,7 @@ 

Classes

**kwargs, ) -> SlackResponse: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -256,7 +256,7 @@

Classes

Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -283,7 +283,7 @@

Classes

**kwargs, ) -> SlackResponse: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -304,7 +304,7 @@

Classes

**kwargs, ) -> SlackResponse: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -324,7 +324,7 @@

Classes

**kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -344,7 +344,7 @@

Classes

**kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -368,7 +368,7 @@

Classes

Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -395,7 +395,7 @@

Classes

**kwargs, ) -> SlackResponse: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -417,7 +417,7 @@

Classes

) -> SlackResponse: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -448,7 +448,7 @@

Classes

**kwargs, ) -> SlackResponse: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -476,7 +476,7 @@

Classes

**kwargs, ) -> SlackResponse: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -493,7 +493,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -515,7 +515,7 @@

Classes

**kwargs, ) -> SlackResponse: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -535,7 +535,7 @@

Classes

**kwargs, ) -> SlackResponse: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -554,7 +554,7 @@

Classes

**kwargs, ) -> SlackResponse: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -573,7 +573,7 @@

Classes

**kwargs, ) -> SlackResponse: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -589,7 +589,7 @@

Classes

**kwargs, ) -> SlackResponse: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -608,7 +608,7 @@

Classes

**kwargs, ) -> SlackResponse: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -627,7 +627,7 @@

Classes

**kwargs, ) -> SlackResponse: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -647,7 +647,7 @@

Classes

**kwargs, ) -> SlackResponse: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs) @@ -662,7 +662,7 @@

Classes

**kwargs, ) -> SlackResponse: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -683,7 +683,7 @@

Classes

**kwargs, ) -> SlackResponse: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -703,7 +703,7 @@

Classes

**kwargs, ) -> SlackResponse: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -723,7 +723,7 @@

Classes

**kwargs, ) -> SlackResponse: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.delete", params=kwargs) @@ -736,7 +736,7 @@

Classes

**kwargs, ) -> SlackResponse: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -753,7 +753,7 @@

Classes

**kwargs, ) -> SlackResponse: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.archive", params=kwargs) @@ -765,7 +765,7 @@

Classes

**kwargs, ) -> SlackResponse: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.unarchive", params=kwargs) @@ -778,7 +778,7 @@

Classes

**kwargs, ) -> SlackResponse: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return self.api_call("admin.conversations.rename", params=kwargs) @@ -796,7 +796,7 @@

Classes

**kwargs, ) -> SlackResponse: """Search for public or private channels in an Enterprise organization. - https://api.slack.com/methods/admin.conversations.search + https://docs.slack.dev/reference/methods/admin.conversations.search """ kwargs.update( { @@ -827,7 +827,7 @@

Classes

**kwargs, ) -> SlackResponse: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPrivate", params=kwargs) @@ -839,7 +839,7 @@

Classes

**kwargs, ) -> SlackResponse: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPublic", params=kwargs) @@ -852,7 +852,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -868,7 +868,7 @@

Classes

**kwargs, ) -> SlackResponse: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getConversationPrefs", params=kwargs) @@ -881,7 +881,7 @@

Classes

**kwargs, ) -> SlackResponse: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -901,7 +901,7 @@

Classes

**kwargs, ) -> SlackResponse: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -929,7 +929,7 @@

Classes

"""List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -956,7 +956,7 @@

Classes

**kwargs, ) -> SlackResponse: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -979,7 +979,7 @@

Classes

**kwargs, ) -> SlackResponse: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -1002,7 +1002,7 @@

Classes

**kwargs, ) -> SlackResponse: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -1027,7 +1027,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -1051,7 +1051,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -1069,7 +1069,7 @@

Classes

**kwargs, ) -> SlackResponse: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getCustomRetention", params=kwargs) @@ -1081,7 +1081,7 @@

Classes

**kwargs, ) -> SlackResponse: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.removeCustomRetention", params=kwargs) @@ -1094,7 +1094,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return self.api_call("admin.conversations.setCustomRetention", params=kwargs) @@ -1106,7 +1106,7 @@

Classes

**kwargs, ) -> SlackResponse: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return self.api_call("admin.conversations.bulkArchive", params=kwargs) @@ -1131,7 +1131,7 @@

Classes

**kwargs, ) -> SlackResponse: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -1149,7 +1149,7 @@

Classes

**kwargs, ) -> SlackResponse: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return self.api_call("admin.emoji.add", http_verb="GET", params=kwargs) @@ -1162,7 +1162,7 @@

Classes

**kwargs, ) -> SlackResponse: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs) @@ -1175,7 +1175,7 @@

Classes

**kwargs, ) -> SlackResponse: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.emoji.list", http_verb="GET", params=kwargs) @@ -1187,7 +1187,7 @@

Classes

**kwargs, ) -> SlackResponse: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs) @@ -1200,7 +1200,7 @@

Classes

**kwargs, ) -> SlackResponse: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs) @@ -1215,7 +1215,7 @@

Classes

**kwargs, ) -> SlackResponse: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -1238,7 +1238,7 @@

Classes

) -> SlackResponse: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -1256,7 +1256,7 @@

Classes

) -> SlackResponse: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -1280,7 +1280,7 @@

Classes

**kwargs, ) -> SlackResponse: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1305,7 +1305,7 @@

Classes

) -> SlackResponse: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -1327,7 +1327,7 @@

Classes

**kwargs, ) -> SlackResponse: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1349,7 +1349,7 @@

Classes

**kwargs, ) -> SlackResponse: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -1369,7 +1369,7 @@

Classes

**kwargs, ) -> SlackResponse: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1391,7 +1391,7 @@

Classes

**kwargs, ) -> SlackResponse: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return self.api_call("admin.users.session.invalidate", params=kwargs) @@ -1406,7 +1406,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -1426,7 +1426,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -1443,7 +1443,7 @@

Classes

) -> SlackResponse: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1461,7 +1461,7 @@

Classes

) -> SlackResponse: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1483,7 +1483,7 @@

Classes

) -> SlackResponse: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1500,7 +1500,7 @@

Classes

) -> SlackResponse: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -1518,7 +1518,7 @@

Classes

**kwargs, ) -> SlackResponse: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.approve", params=kwargs) @@ -1532,7 +1532,7 @@

Classes

**kwargs, ) -> SlackResponse: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -1552,7 +1552,7 @@

Classes

**kwargs, ) -> SlackResponse: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -1571,7 +1571,7 @@

Classes

**kwargs, ) -> SlackResponse: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.deny", params=kwargs) @@ -1592,7 +1592,7 @@

Classes

**kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -1613,7 +1613,7 @@

Classes

**kwargs, ) -> SlackResponse: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -1633,7 +1633,7 @@

Classes

**kwargs, ) -> SlackResponse: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.teams.list", params=kwargs) @@ -1647,7 +1647,7 @@

Classes

**kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs) @@ -1659,7 +1659,7 @@

Classes

**kwargs, ) -> SlackResponse: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return self.api_call("admin.teams.settings.info", params=kwargs) @@ -1672,7 +1672,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return self.api_call("admin.teams.settings.setDescription", params=kwargs) @@ -1685,7 +1685,7 @@

Classes

**kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return self.api_call("admin.teams.settings.setDiscoverability", params=kwargs) @@ -1698,7 +1698,7 @@

Classes

**kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs) @@ -1711,7 +1711,7 @@

Classes

**kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return self.api_call("admin.teams.settings.setName", params=kwargs) @@ -1725,7 +1725,7 @@

Classes

**kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1743,7 +1743,7 @@

Classes

**kwargs, ) -> SlackResponse: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -1761,7 +1761,7 @@

Classes

**kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -1780,7 +1780,7 @@

Classes

**kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1800,7 +1800,7 @@

Classes

**kwargs, ) -> SlackResponse: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -1832,7 +1832,7 @@

Classes

**kwargs, ) -> SlackResponse: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -1856,7 +1856,7 @@

Classes

def admin_users_list( self, *, - team_id: str, + team_id: Optional[str] = None, include_deactivated_user_workspaces: Optional[bool] = None, is_active: Optional[bool] = None, cursor: Optional[str] = None, @@ -1864,7 +1864,7 @@

Classes

**kwargs, ) -> SlackResponse: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -1885,7 +1885,7 @@

Classes

**kwargs, ) -> SlackResponse: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.remove", params=kwargs) @@ -1898,7 +1898,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setAdmin", params=kwargs) @@ -1912,7 +1912,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setExpiration", params=kwargs) @@ -1925,7 +1925,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setOwner", params=kwargs) @@ -1938,7 +1938,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setRegular", params=kwargs) @@ -1959,7 +1959,7 @@

Classes

**kwargs, ) -> SlackResponse: """Search workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.search + https://docs.slack.dev/reference/methods/admin.workflows.search """ if collaborator_ids is not None: if isinstance(collaborator_ids, (list, tuple)): @@ -1989,7 +1989,7 @@

Classes

**kwargs, ) -> SlackResponse: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -2010,7 +2010,7 @@

Classes

**kwargs, ) -> SlackResponse: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -2030,7 +2030,7 @@

Classes

**kwargs, ) -> SlackResponse: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -2049,7 +2049,7 @@

Classes

**kwargs, ) -> SlackResponse: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -2064,7 +2064,7 @@

Classes

**kwargs, ) -> SlackResponse: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return self.api_call("api.test", params=kwargs) @@ -2077,7 +2077,7 @@

Classes

) -> SlackResponse: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return self.api_call("apps.connections.open", http_verb="POST", params=kwargs) @@ -2092,7 +2092,7 @@

Classes

) -> SlackResponse: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return self.api_call("apps.event.authorizations.list", params=kwargs) @@ -2105,7 +2105,7 @@

Classes

**kwargs, ) -> SlackResponse: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return self.api_call("apps.uninstall", params=kwargs) @@ -2117,7 +2117,7 @@

Classes

**kwargs, ) -> SlackResponse: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2132,7 +2132,7 @@

Classes

**kwargs, ) -> SlackResponse: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.delete", params=kwargs) @@ -2144,7 +2144,7 @@

Classes

**kwargs, ) -> SlackResponse: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.export", params=kwargs) @@ -2157,7 +2157,7 @@

Classes

**kwargs, ) -> SlackResponse: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2174,7 +2174,7 @@

Classes

**kwargs, ) -> SlackResponse: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2190,7 +2190,7 @@

Classes

**kwargs, ) -> SlackResponse: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return self.api_call("tooling.tokens.rotate", params=kwargs) @@ -2204,7 +2204,7 @@

Classes

**kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return self.api_call("assistant.threads.setStatus", params=kwargs) @@ -2218,7 +2218,7 @@

Classes

**kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return self.api_call("assistant.threads.setTitle", params=kwargs) @@ -2233,7 +2233,7 @@

Classes

**kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -2247,7 +2247,7 @@

Classes

**kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return self.api_call("auth.revoke", http_verb="GET", params=kwargs) @@ -2257,7 +2257,7 @@

Classes

**kwargs, ) -> SlackResponse: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return self.api_call("auth.test", params=kwargs) @@ -2269,7 +2269,7 @@

Classes

**kwargs, ) -> SlackResponse: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return self.api_call("auth.teams.list", params=kwargs) @@ -2287,7 +2287,7 @@

Classes

**kwargs, ) -> SlackResponse: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -2313,7 +2313,7 @@

Classes

**kwargs, ) -> SlackResponse: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -2333,7 +2333,7 @@

Classes

**kwargs, ) -> SlackResponse: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return self.api_call("bookmarks.list", http_verb="POST", params=kwargs) @@ -2346,7 +2346,7 @@

Classes

**kwargs, ) -> SlackResponse: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return self.api_call("bookmarks.remove", http_verb="POST", params=kwargs) @@ -2359,7 +2359,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return self.api_call("bots.info", http_verb="GET", params=kwargs) @@ -2378,7 +2378,7 @@

Classes

**kwargs, ) -> SlackResponse: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -2405,7 +2405,7 @@

Classes

**kwargs, ) -> SlackResponse: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return self.api_call("calls.end", http_verb="POST", params=kwargs) @@ -2417,7 +2417,7 @@

Classes

**kwargs, ) -> SlackResponse: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return self.api_call("calls.info", http_verb="POST", params=kwargs) @@ -2430,7 +2430,7 @@

Classes

**kwargs, ) -> SlackResponse: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2444,7 +2444,7 @@

Classes

**kwargs, ) -> SlackResponse: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2460,7 +2460,7 @@

Classes

**kwargs, ) -> SlackResponse: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -2480,7 +2480,7 @@

Classes

**kwargs, ) -> SlackResponse: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return self.api_call("canvases.create", json=kwargs) @@ -2493,7 +2493,7 @@

Classes

**kwargs, ) -> SlackResponse: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return self.api_call("canvases.edit", json=kwargs) @@ -2505,7 +2505,7 @@

Classes

**kwargs, ) -> SlackResponse: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return self.api_call("canvases.delete", params=kwargs) @@ -2520,7 +2520,7 @@

Classes

**kwargs, ) -> SlackResponse: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -2545,7 +2545,7 @@

Classes

**kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -2568,7 +2568,7 @@

Classes

**kwargs, ) -> SlackResponse: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return self.api_call("canvases.sections.lookup", params=kwargs) @@ -2576,7 +2576,7 @@

Classes

# -------------------------- # Deprecated: channels.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def channels_archive( @@ -2755,7 +2755,7 @@

Classes

**kwargs, ) -> SlackResponse: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return self.api_call("chat.delete", params=kwargs) @@ -2769,7 +2769,7 @@

Classes

**kwargs, ) -> SlackResponse: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -2788,7 +2788,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieve a permalink URL for a specific extant message - https://api.slack.com/methods/chat.getPermalink + https://docs.slack.dev/reference/methods/chat.getPermalink """ kwargs.update({"channel": channel, "message_ts": message_ts}) return self.api_call("chat.getPermalink", http_verb="GET", params=kwargs) @@ -2801,7 +2801,7 @@

Classes

**kwargs, ) -> SlackResponse: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return self.api_call("chat.meMessage", params=kwargs) @@ -2821,10 +2821,11 @@

Classes

link_names: Optional[bool] = None, username: Optional[str] = None, parse: Optional[str] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -2840,11 +2841,12 @@

Classes

"link_names": link_names, "username": username, "parse": parse, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postEphemeral", kwargs) + _warn_if_message_text_content_is_missing("chat.postEphemeral", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postEphemeral", json=kwargs) @@ -2868,10 +2870,11 @@

Classes

username: Optional[str] = None, parse: Optional[str] = None, # none, full metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -2892,11 +2895,12 @@

Classes

"username": username, "parse": parse, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.postMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postMessage", json=kwargs) @@ -2905,7 +2909,7 @@

Classes

*, channel: str, post_at: Union[str, int], - text: str, + text: Optional[str] = None, as_user: Optional[bool] = None, attachments: Optional[Union[str, Sequence[Union[Dict, Attachment]]]] = None, blocks: Optional[Union[str, Sequence[Union[Dict, Block]]]] = None, @@ -2916,10 +2920,11 @@

Classes

unfurl_media: Optional[bool] = None, link_names: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -2936,11 +2941,12 @@

Classes

"unfurl_media": unfurl_media, "link_names": link_names, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.scheduleMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.scheduleMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.scheduleMessage", json=kwargs) @@ -2959,7 +2965,7 @@

Classes

**kwargs, ) -> SlackResponse: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -2993,10 +2999,11 @@

Classes

parse: Optional[str] = None, # none, full reply_broadcast: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -3010,6 +3017,7 @@

Classes

"parse": parse, "reply_broadcast": reply_broadcast, "metadata": metadata, + "markdown_text": markdown_text, } ) if isinstance(file_ids, (list, tuple)): @@ -3018,7 +3026,7 @@

Classes

kwargs.update({"file_ids": file_ids}) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.update", kwargs) + _warn_if_message_text_content_is_missing("chat.update", kwargs) # NOTE: intentionally using json over params for API methods using blocks/attachments return self.api_call("chat.update", json=kwargs) @@ -3034,7 +3042,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -3060,7 +3068,7 @@

Classes

**kwargs, ) -> SlackResponse: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -3084,7 +3092,7 @@

Classes

**kwargs, ) -> SlackResponse: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs) @@ -3096,7 +3104,7 @@

Classes

**kwargs, ) -> SlackResponse: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return self.api_call("conversations.archive", params=kwargs) @@ -3108,7 +3116,7 @@

Classes

**kwargs, ) -> SlackResponse: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return self.api_call("conversations.close", params=kwargs) @@ -3122,7 +3130,7 @@

Classes

**kwargs, ) -> SlackResponse: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return self.api_call("conversations.create", params=kwargs) @@ -3135,7 +3143,7 @@

Classes

**kwargs, ) -> SlackResponse: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs) @@ -3144,7 +3152,7 @@

Classes

self, *, action: str, channel: str, target_team: str, **kwargs ) -> SlackResponse: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -3168,7 +3176,7 @@

Classes

**kwargs, ) -> SlackResponse: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -3192,7 +3200,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -3212,7 +3220,7 @@

Classes

**kwargs, ) -> SlackResponse: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -3235,7 +3243,7 @@

Classes

**kwargs, ) -> SlackResponse: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -3257,7 +3265,7 @@

Classes

**kwargs, ) -> SlackResponse: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return self.api_call("conversations.join", params=kwargs) @@ -3270,7 +3278,7 @@

Classes

**kwargs, ) -> SlackResponse: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return self.api_call("conversations.kick", params=kwargs) @@ -3282,7 +3290,7 @@

Classes

**kwargs, ) -> SlackResponse: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return self.api_call("conversations.leave", params=kwargs) @@ -3298,7 +3306,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -3324,7 +3332,7 @@

Classes

) -> SlackResponse: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return self.api_call("conversations.listConnectInvites", params=kwargs) @@ -3337,7 +3345,7 @@

Classes

**kwargs, ) -> SlackResponse: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return self.api_call("conversations.mark", params=kwargs) @@ -3351,7 +3359,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return self.api_call("conversations.members", http_verb="GET", params=kwargs) @@ -3365,7 +3373,7 @@

Classes

**kwargs, ) -> SlackResponse: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -3384,7 +3392,7 @@

Classes

**kwargs, ) -> SlackResponse: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return self.api_call("conversations.rename", params=kwargs) @@ -3403,7 +3411,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -3429,7 +3437,7 @@

Classes

**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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -3450,7 +3458,7 @@

Classes

**kwargs, ) -> SlackResponse: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return self.api_call("conversations.requestSharedInvite.deny", params=kwargs) @@ -3468,7 +3476,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -3495,7 +3503,7 @@

Classes

**kwargs, ) -> SlackResponse: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return self.api_call("conversations.setPurpose", params=kwargs) @@ -3508,7 +3516,7 @@

Classes

**kwargs, ) -> SlackResponse: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return self.api_call("conversations.setTopic", params=kwargs) @@ -3520,7 +3528,7 @@

Classes

**kwargs, ) -> SlackResponse: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return self.api_call("conversations.unarchive", params=kwargs) @@ -3533,7 +3541,7 @@

Classes

**kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return self.api_call("conversations.canvases.create", json=kwargs) @@ -3546,7 +3554,7 @@

Classes

**kwargs, ) -> SlackResponse: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -3558,7 +3566,7 @@

Classes

**kwargs, ) -> SlackResponse: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return self.api_call("dnd.endDnd", params=kwargs) @@ -3567,7 +3575,7 @@

Classes

**kwargs, ) -> SlackResponse: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return self.api_call("dnd.endSnooze", params=kwargs) @@ -3579,7 +3587,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("dnd.info", http_verb="GET", params=kwargs) @@ -3591,7 +3599,7 @@

Classes

**kwargs, ) -> SlackResponse: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs) @@ -3603,7 +3611,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -3618,7 +3626,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return self.api_call("emoji.list", http_verb="GET", params=kwargs) @@ -3631,7 +3639,7 @@

Classes

**kwargs, ) -> SlackResponse: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return self.api_call("files.comments.delete", params=kwargs) @@ -3643,7 +3651,7 @@

Classes

**kwargs, ) -> SlackResponse: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return self.api_call("files.delete", params=kwargs) @@ -3659,7 +3667,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -3687,7 +3695,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -3715,7 +3723,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.info", http_verb="GET", params=kwargs) @@ -3731,7 +3739,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -3756,7 +3764,7 @@

Classes

**kwargs, ) -> SlackResponse: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -3795,7 +3803,7 @@

Classes

**kwargs, ) -> SlackResponse: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -3830,7 +3838,7 @@

Classes

**kwargs, ) -> SlackResponse: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.remove", http_verb="POST", params=kwargs) @@ -3844,7 +3852,7 @@

Classes

**kwargs, ) -> SlackResponse: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -3862,7 +3870,7 @@

Classes

**kwargs, ) -> SlackResponse: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return self.api_call("files.revokePublicURL", params=kwargs) @@ -3874,7 +3882,7 @@

Classes

**kwargs, ) -> SlackResponse: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return self.api_call("files.sharedPublicURL", params=kwargs) @@ -3893,7 +3901,7 @@

Classes

**kwargs, ) -> SlackResponse: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -3946,12 +3954,12 @@

Classes

) -> SlackResponse: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -4037,7 +4045,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -4060,7 +4068,7 @@

Classes

**kwargs, ) -> SlackResponse: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -4083,7 +4091,7 @@

Classes

**kwargs, ) -> SlackResponse: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return self.api_call("functions.completeSuccess", params=kwargs) @@ -4096,7 +4104,7 @@

Classes

**kwargs, ) -> SlackResponse: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return self.api_call("functions.completeError", params=kwargs) @@ -4104,7 +4112,7 @@

Classes

# -------------------------- # Deprecated: groups.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def groups_archive( @@ -4285,7 +4293,7 @@

Classes

# -------------------------- # Deprecated: im.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def im_close( @@ -4361,7 +4369,7 @@

Classes

**kwargs, ) -> SlackResponse: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -4373,7 +4381,7 @@

Classes

# -------------------------- # Deprecated: mpim.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def mpim_close( @@ -4460,7 +4468,7 @@

Classes

**kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4486,7 +4494,7 @@

Classes

**kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4506,7 +4514,7 @@

Classes

**kwargs, ) -> SlackResponse: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return self.api_call("oauth.v2.exchange", params=kwargs) @@ -4522,7 +4530,7 @@

Classes

**kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4543,7 +4551,7 @@

Classes

**kwargs, ) -> SlackResponse: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return self.api_call("openid.connect.userInfo", params=kwargs) @@ -4555,7 +4563,7 @@

Classes

**kwargs, ) -> SlackResponse: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.add", params=kwargs) @@ -4567,7 +4575,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return self.api_call("pins.list", http_verb="GET", params=kwargs) @@ -4580,7 +4588,7 @@

Classes

**kwargs, ) -> SlackResponse: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.remove", params=kwargs) @@ -4594,7 +4602,7 @@

Classes

**kwargs, ) -> SlackResponse: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return self.api_call("reactions.add", params=kwargs) @@ -4610,7 +4618,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -4636,7 +4644,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -4662,7 +4670,7 @@

Classes

**kwargs, ) -> SlackResponse: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -4686,7 +4694,7 @@

Classes

**kwargs, ) -> SlackResponse: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -4707,7 +4715,7 @@

Classes

**kwargs, ) -> SlackResponse: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.complete", params=kwargs) @@ -4720,7 +4728,7 @@

Classes

**kwargs, ) -> SlackResponse: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.delete", params=kwargs) @@ -4733,7 +4741,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.info", http_verb="GET", params=kwargs) @@ -4745,7 +4753,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return self.api_call("reminders.list", http_verb="GET", params=kwargs) @@ -4758,7 +4766,7 @@

Classes

**kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return self.api_call("rtm.connect", http_verb="GET", params=kwargs) @@ -4776,7 +4784,7 @@

Classes

**kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -4804,7 +4812,7 @@

Classes

**kwargs, ) -> SlackResponse: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -4832,7 +4840,7 @@

Classes

**kwargs, ) -> SlackResponse: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -4861,7 +4869,7 @@

Classes

**kwargs, ) -> SlackResponse: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -4887,7 +4895,7 @@

Classes

**kwargs, ) -> SlackResponse: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -4910,7 +4918,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -4933,7 +4941,7 @@

Classes

**kwargs, ) -> SlackResponse: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -4957,7 +4965,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -4979,7 +4987,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("team.billableInfo", http_verb="GET", params=kwargs) @@ -4989,7 +4997,7 @@

Classes

**kwargs, ) -> SlackResponse: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return self.api_call("team.billing.info", params=kwargs) @@ -5000,7 +5008,7 @@

Classes

**kwargs, ) -> SlackResponse: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -5022,7 +5030,7 @@

Classes

**kwargs, ) -> SlackResponse: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -5053,7 +5061,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return self.api_call("team.info", http_verb="GET", params=kwargs) @@ -5071,7 +5079,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -5093,7 +5101,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return self.api_call("team.profile.get", http_verb="GET", params=kwargs) @@ -5103,7 +5111,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return self.api_call("team.preferences.list", params=kwargs) @@ -5119,7 +5127,7 @@

Classes

**kwargs, ) -> SlackResponse: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -5145,7 +5153,7 @@

Classes

**kwargs, ) -> SlackResponse: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.disable", params=kwargs) @@ -5159,7 +5167,7 @@

Classes

**kwargs, ) -> SlackResponse: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.enable", params=kwargs) @@ -5174,7 +5182,7 @@

Classes

**kwargs, ) -> SlackResponse: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -5199,7 +5207,7 @@

Classes

**kwargs, ) -> SlackResponse: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -5226,7 +5234,7 @@

Classes

**kwargs, ) -> SlackResponse: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -5247,7 +5255,7 @@

Classes

**kwargs, ) -> SlackResponse: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -5274,7 +5282,7 @@

Classes

**kwargs, ) -> SlackResponse: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -5296,7 +5304,7 @@

Classes

**kwargs, ) -> SlackResponse: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return self.api_call("users.deletePhoto", http_verb="GET", params=kwargs) @@ -5307,7 +5315,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return self.api_call("users.getPresence", http_verb="GET", params=kwargs) @@ -5317,7 +5325,7 @@

Classes

**kwargs, ) -> SlackResponse: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return self.api_call("users.identity", http_verb="GET", params=kwargs) @@ -5329,7 +5337,7 @@

Classes

**kwargs, ) -> SlackResponse: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return self.api_call("users.info", http_verb="GET", params=kwargs) @@ -5344,7 +5352,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -5363,7 +5371,7 @@

Classes

**kwargs, ) -> SlackResponse: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs) @@ -5378,7 +5386,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return self.api_call("users.setPhoto", files={"image": image}, data=kwargs) @@ -5390,7 +5398,7 @@

Classes

**kwargs, ) -> SlackResponse: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return self.api_call("users.setPresence", params=kwargs) @@ -5401,7 +5409,7 @@

Classes

**kwargs, ) -> SlackResponse: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return self.api_call("users.discoverableContacts.lookup", params=kwargs) @@ -5414,7 +5422,7 @@

Classes

**kwargs, ) -> SlackResponse: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return self.api_call("users.profile.get", http_verb="GET", params=kwargs) @@ -5429,7 +5437,7 @@

Classes

**kwargs, ) -> SlackResponse: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -5452,8 +5460,8 @@

Classes

**kwargs, ) -> SlackResponse: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5476,9 +5484,9 @@

Classes

Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5501,9 +5509,9 @@

Classes

"""Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -5530,8 +5538,8 @@

Classes

) -> SlackResponse: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -5542,6 +5550,72 @@

Classes

# NOTE: Intentionally using json for the "view" parameter return self.api_call("views.publish", json=kwargs) + def workflows_featured_add( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """Add featured workflows to a channel. + https://docs.slack.dev/reference/methods/workflows.featured.add + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.add", params=kwargs) + + def workflows_featured_list( + self, + *, + channel_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """List the featured workflows for specified channels. + https://docs.slack.dev/reference/methods/workflows.featured.list + """ + if isinstance(channel_ids, (list, tuple)): + kwargs.update({"channel_ids": ",".join(channel_ids)}) + else: + kwargs.update({"channel_ids": channel_ids}) + return self.api_call("workflows.featured.list", params=kwargs) + + def workflows_featured_remove( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """Remove featured workflows from a channel. + https://docs.slack.dev/reference/methods/workflows.featured.remove + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.remove", params=kwargs) + + def workflows_featured_set( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """Set featured workflows for a channel. + https://docs.slack.dev/reference/methods/workflows.featured.set + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.set", params=kwargs) + def workflows_stepCompleted( self, *, @@ -5550,7 +5624,7 @@

Classes

**kwargs, ) -> SlackResponse: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -5567,7 +5641,7 @@

Classes

**kwargs, ) -> SlackResponse: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -5588,7 +5662,7 @@

Classes

**kwargs, ) -> SlackResponse: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: @@ -5600,7 +5674,7 @@

Classes

return self.api_call("workflows.updateStep", json=kwargs)

A WebClient allows apps to communicate with the Slack Platform's Web API.

-

https://api.slack.com/methods

+

https://docs.slack.dev/reference/methods

The Slack Web API is an interface for querying information from and enacting change in a Slack workspace.

This client handles constructing and sending HTTP requests to Slack @@ -5680,7 +5754,7 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -5690,7 +5764,7 @@

Methods

return self.api_call("admin.analytics.getFile", params=kwargs)

Retrieve analytics data for a given date, presented as a compressed JSON file -https://api.slack.com/methods/admin.analytics.getFile

+https://docs.slack.dev/reference/methods/admin.analytics.getFile

def admin_apps_activities_list(self,
*,
app_id: str | None = None,
component_id: str | None = None,
component_type: str | None = None,
log_event_type: str | None = None,
max_date_created: int | None = None,
min_date_created: int | None = None,
min_log_level: str | None = None,
sort_direction: str | None = None,
source: str | None = None,
team_id: str | None = None,
trace_id: str | None = None,
cursor: str | None = None,
limit: int | None = None,
**kwargs) ‑> SlackResponse
@@ -5719,7 +5793,7 @@

Methods

**kwargs, ) -> SlackResponse: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -5741,7 +5815,7 @@

Methods

return self.api_call("admin.apps.activities.list", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.apps.activities.list

def admin_apps_approve(self,
*,
app_id: str | None = None,
request_id: str | None = None,
enterprise_id: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -5764,7 +5838,7 @@

Methods

Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -5785,7 +5859,7 @@

Methods

Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. -https://api.slack.com/methods/admin.apps.approve

+https://docs.slack.dev/reference/methods/admin.apps.approve

def admin_apps_approved_list(self,
*,
cursor: str | None = None,
limit: int | None = None,
enterprise_id: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -5805,7 +5879,7 @@

Methods

**kwargs, ) -> SlackResponse: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -5818,7 +5892,7 @@

Methods

return self.api_call("admin.apps.approved.list", http_verb="GET", params=kwargs)

List approved apps for an org or workspace. -https://api.slack.com/methods/admin.apps.approved.list

+https://docs.slack.dev/reference/methods/admin.apps.approved.list

def admin_apps_clearResolution(self,
*,
app_id: str,
enterprise_id: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -5837,7 +5911,7 @@

Methods

**kwargs, ) -> SlackResponse: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -5849,7 +5923,7 @@

Methods

return self.api_call("admin.apps.clearResolution", http_verb="POST", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.apps.clearResolution

def admin_apps_config_lookup(self, *, app_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -5866,7 +5940,7 @@

Methods

**kwargs, ) -> SlackResponse: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -5875,7 +5949,7 @@

Methods

return self.api_call("admin.apps.config.lookup", params=kwargs)

Look up the app config for connectors by their IDs -https://api.slack.com/methods/admin.apps.config.lookup

+https://docs.slack.dev/reference/methods/admin.apps.config.lookup

def admin_apps_config_set(self,
*,
app_id: str,
domain_restrictions: Dict[str, Any] | None = None,
workflow_auth_strategy: str | None = None,
**kwargs) ‑> SlackResponse
@@ -5894,7 +5968,7 @@

Methods

**kwargs, ) -> SlackResponse: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -5907,7 +5981,7 @@

Methods

return self.api_call("admin.apps.config.set", params=kwargs)

Set the app config for a connector -https://api.slack.com/methods/admin.apps.config.set

+https://docs.slack.dev/reference/methods/admin.apps.config.set

def admin_apps_requests_cancel(self,
*,
request_id: str,
enterprise_id: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -5926,7 +6000,7 @@

Methods

**kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -5938,7 +6012,7 @@

Methods

return self.api_call("admin.apps.requests.cancel", http_verb="POST", params=kwargs)

List app requests for a team/workspace. -https://api.slack.com/methods/admin.apps.requests.cancel

+https://docs.slack.dev/reference/methods/admin.apps.requests.cancel

def admin_apps_requests_list(self,
*,
cursor: str | None = None,
limit: int | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -5957,7 +6031,7 @@

Methods

**kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -5969,7 +6043,7 @@

Methods

return self.api_call("admin.apps.requests.list", http_verb="GET", params=kwargs)

List app requests for a team/workspace. -https://api.slack.com/methods/admin.apps.requests.list

+https://docs.slack.dev/reference/methods/admin.apps.requests.list

def admin_apps_restrict(self,
*,
app_id: str | None = None,
request_id: str | None = None,
enterprise_id: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -5992,7 +6066,7 @@

Methods

Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -6013,7 +6087,7 @@

Methods

Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. -https://api.slack.com/methods/admin.apps.restrict

+https://docs.slack.dev/reference/methods/admin.apps.restrict

def admin_apps_restricted_list(self,
*,
cursor: str | None = None,
limit: int | None = None,
enterprise_id: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -6033,7 +6107,7 @@

Methods

**kwargs, ) -> SlackResponse: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -6046,7 +6120,7 @@

Methods

return self.api_call("admin.apps.restricted.list", http_verb="GET", params=kwargs)

List restricted apps for an org or workspace. -https://api.slack.com/methods/admin.apps.restricted.list

+https://docs.slack.dev/reference/methods/admin.apps.restricted.list

def admin_apps_uninstall(self,
*,
app_id: str,
enterprise_id: str | None = None,
team_ids: str | Sequence[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -6066,7 +6140,7 @@

Methods

) -> SlackResponse: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -6080,7 +6154,7 @@

Methods

Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. -https://api.slack.com/methods/admin.apps.uninstall

+https://docs.slack.dev/reference/methods/admin.apps.uninstall

def admin_auth_policy_assignEntities(self,
*,
entity_ids: str | Sequence[str],
policy_name: str,
entity_type: str,
**kwargs) ‑> SlackResponse
@@ -6099,7 +6173,7 @@

Methods

**kwargs, ) -> SlackResponse: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -6110,7 +6184,7 @@

Methods

return self.api_call("admin.auth.policy.assignEntities", http_verb="POST", params=kwargs)

Assign entities to a particular authentication policy. -https://api.slack.com/methods/admin.auth.policy.assignEntities

+https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities

def admin_auth_policy_getEntities(self,
*,
policy_name: str,
cursor: str | None = None,
entity_type: str | None = None,
limit: int | None = None,
**kwargs) ‑> SlackResponse
@@ -6130,7 +6204,7 @@

Methods

**kwargs, ) -> SlackResponse: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -6142,7 +6216,7 @@

Methods

return self.api_call("admin.auth.policy.getEntities", http_verb="POST", params=kwargs)

Fetch all the entities assigned to a particular authentication policy by name. -https://api.slack.com/methods/admin.auth.policy.getEntities

+https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities

def admin_auth_policy_removeEntities(self,
*,
entity_ids: str | Sequence[str],
policy_name: str,
entity_type: str,
**kwargs) ‑> SlackResponse
@@ -6161,7 +6235,7 @@

Methods

**kwargs, ) -> SlackResponse: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -6172,7 +6246,7 @@

Methods

return self.api_call("admin.auth.policy.removeEntities", http_verb="POST", params=kwargs)

Remove specified entities from a specified authentication policy. -https://api.slack.com/methods/admin.auth.policy.removeEntities

+https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities

def admin_barriers_create(self,
*,
barriered_from_usergroup_ids: str | Sequence[str],
primary_usergroup_id: str,
restricted_subjects: str | Sequence[str],
**kwargs) ‑> SlackResponse
@@ -6191,7 +6265,7 @@

Methods

**kwargs, ) -> SlackResponse: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -6205,7 +6279,7 @@

Methods

return self.api_call("admin.barriers.create", http_verb="POST", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.barriers.create

def admin_barriers_delete(self, *, barrier_id: str, **kwargs) ‑> SlackResponse @@ -6222,13 +6296,13 @@

Methods

**kwargs, ) -> SlackResponse: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs)

Delete an existing Information Barrier -https://api.slack.com/methods/admin.barriers.delete

+https://docs.slack.dev/reference/methods/admin.barriers.delete

def admin_barriers_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -6246,7 +6320,7 @@

Methods

**kwargs, ) -> SlackResponse: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -6256,7 +6330,7 @@

Methods

return self.api_call("admin.barriers.list", http_verb="GET", params=kwargs)

Get all Information Barriers for your organization -https://api.slack.com/methods/admin.barriers.list

+https://docs.slack.dev/reference/methods/admin.barriers.list

def admin_barriers_update(self,
*,
barrier_id: str,
barriered_from_usergroup_ids: str | Sequence[str],
primary_usergroup_id: str,
restricted_subjects: str | Sequence[str],
**kwargs) ‑> SlackResponse
@@ -6276,7 +6350,7 @@

Methods

**kwargs, ) -> SlackResponse: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -6290,7 +6364,7 @@

Methods

return self.api_call("admin.barriers.update", http_verb="POST", params=kwargs)

Update an existing Information Barrier -https://api.slack.com/methods/admin.barriers.update

+https://docs.slack.dev/reference/methods/admin.barriers.update

def admin_conversations_archive(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6307,13 +6381,13 @@

Methods

**kwargs, ) -> SlackResponse: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.archive", params=kwargs)

Archive a public or private channel. -https://api.slack.com/methods/admin.conversations.archive

+https://docs.slack.dev/reference/methods/admin.conversations.archive

def admin_conversations_bulkArchive(self, *, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -6330,13 +6404,13 @@

Methods

**kwargs, ) -> SlackResponse: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return self.api_call("admin.conversations.bulkArchive", params=kwargs)

Archive public or private channels in bulk. -https://api.slack.com/methods/admin.conversations.bulkArchive

+https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive

def admin_conversations_bulkDelete(self, *, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -6377,7 +6451,7 @@

Methods

**kwargs, ) -> SlackResponse: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -6388,7 +6462,7 @@

Methods

return self.api_call("admin.conversations.bulkMove", params=kwargs)

Move public or private channels in bulk. -https://api.slack.com/methods/admin.conversations.bulkMove

+https://docs.slack.dev/reference/methods/admin.conversations.bulkMove

def admin_conversations_convertToPrivate(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6405,13 +6479,13 @@

Methods

**kwargs, ) -> SlackResponse: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPrivate", params=kwargs)

Convert a public channel to a private channel. -https://api.slack.com/methods/admin.conversations.convertToPrivate

+https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate

def admin_conversations_convertToPublic(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6428,13 +6502,13 @@

Methods

**kwargs, ) -> SlackResponse: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPublic", params=kwargs)

Convert a privte channel to a public channel. -https://api.slack.com/methods/admin.conversations.convertToPublic

+https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic

def admin_conversations_create(self,
*,
is_private: bool,
name: str,
description: str | None = None,
org_wide: bool | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -6455,7 +6529,7 @@

Methods

**kwargs, ) -> SlackResponse: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -6469,7 +6543,7 @@

Methods

return self.api_call("admin.conversations.create", params=kwargs)

Create a public or private channel-based conversation. -https://api.slack.com/methods/admin.conversations.create

+https://docs.slack.dev/reference/methods/admin.conversations.create

def admin_conversations_createForObjects(self,
*,
object_id: str,
salesforce_org_id: str,
invite_object_team: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -6488,7 +6562,7 @@

Methods

**kwargs, ) -> SlackResponse: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -6496,7 +6570,7 @@

Methods

return self.api_call("admin.conversations.createForObjects", params=kwargs)

Create a Salesforce channel for the corresponding object provided. -https://api.slack.com/methods/admin.conversations.createForObjects

+https://docs.slack.dev/reference/methods/admin.conversations.createForObjects

def admin_conversations_delete(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6513,13 +6587,13 @@

Methods

**kwargs, ) -> SlackResponse: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.delete", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.conversations.delete

def admin_conversations_disconnectShared(self,
*,
channel_id: str,
leaving_team_ids: str | Sequence[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -6537,7 +6611,7 @@

Methods

**kwargs, ) -> SlackResponse: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -6547,7 +6621,7 @@

Methods

return self.api_call("admin.conversations.disconnectShared", params=kwargs)

Disconnect a connected channel from one or more workspaces. -https://api.slack.com/methods/admin.conversations.disconnectShared

+https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared

def admin_conversations_ekm_listOriginalConnectedChannelInfo(self,
*,
channel_ids: str | Sequence[str] | None = None,
cursor: str | None = None,
limit: int | None = None,
team_ids: str | Sequence[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -6569,7 +6643,7 @@

Methods

"""List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -6590,7 +6664,7 @@

Methods

List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. -https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo

+https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo

def admin_conversations_getConversationPrefs(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6607,13 +6681,13 @@

Methods

**kwargs, ) -> SlackResponse: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getConversationPrefs", params=kwargs)

Get conversation preferences for a public or private channel. -https://api.slack.com/methods/admin.conversations.getConversationPrefs

+https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs

def admin_conversations_getCustomRetention(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6630,13 +6704,13 @@

Methods

**kwargs, ) -> SlackResponse: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getCustomRetention", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention

def admin_conversations_getTeams(self,
*,
channel_id: str,
cursor: str | None = None,
limit: int | None = None,
**kwargs) ‑> SlackResponse
@@ -6655,7 +6729,7 @@

Methods

**kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -6667,7 +6741,7 @@

Methods

return self.api_call("admin.conversations.getTeams", params=kwargs)

Set the workspaces in an Enterprise grid org that connect to a channel. -https://api.slack.com/methods/admin.conversations.getTeams

+https://docs.slack.dev/reference/methods/admin.conversations.getTeams

def admin_conversations_invite(self, *, channel_id: str, user_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -6685,7 +6759,7 @@

Methods

**kwargs, ) -> SlackResponse: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -6696,7 +6770,7 @@

Methods

return self.api_call("admin.conversations.invite", params=kwargs)

Invite a user to a public or private channel. -https://api.slack.com/methods/admin.conversations.invite

+https://docs.slack.dev/reference/methods/admin.conversations.invite

def admin_conversations_linkObjects(self, *, channel: str, record_id: str, salesforce_org_id: str, **kwargs) ‑> SlackResponse @@ -6715,7 +6789,7 @@

Methods

**kwargs, ) -> SlackResponse: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -6727,7 +6801,7 @@

Methods

return self.api_call("admin.conversations.linkObjects", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.conversations.linkObjects

def admin_conversations_lookup(self,
*,
last_message_activity_before: int,
team_ids: str | Sequence[str],
cursor: str | None = None,
limit: int | None = None,
max_member_count: int | None = None,
**kwargs) ‑> SlackResponse
@@ -6748,7 +6822,7 @@

Methods

**kwargs, ) -> SlackResponse: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -6765,7 +6839,7 @@

Methods

return self.api_call("admin.conversations.lookup", params=kwargs)

Returns channels on the given team using the filters. -https://api.slack.com/methods/admin.conversations.lookup

+https://docs.slack.dev/reference/methods/admin.conversations.lookup

def admin_conversations_removeCustomRetention(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6782,13 +6856,13 @@

Methods

**kwargs, ) -> SlackResponse: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.removeCustomRetention", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention

def admin_conversations_rename(self, *, channel_id: str, name: str, **kwargs) ‑> SlackResponse @@ -6806,13 +6880,13 @@

Methods

**kwargs, ) -> SlackResponse: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return self.api_call("admin.conversations.rename", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.conversations.rename

def admin_conversations_restrictAccess_addGroup(self, *, channel_id: str, group_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -6831,7 +6905,7 @@

Methods

**kwargs, ) -> SlackResponse: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -6847,7 +6921,7 @@

Methods

)

Add an allowlist of IDP groups for accessing a channel. -https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup

+https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup

def admin_conversations_restrictAccess_listGroups(self, *, channel_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -6865,7 +6939,7 @@

Methods

**kwargs, ) -> SlackResponse: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -6880,7 +6954,7 @@

Methods

)
+https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups

def admin_conversations_restrictAccess_removeGroup(self, *, channel_id: str, group_id: str, team_id: str, **kwargs) ‑> SlackResponse @@ -6899,7 +6973,7 @@

Methods

**kwargs, ) -> SlackResponse: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -6915,7 +6989,7 @@

Methods

)

Remove a linked IDP group linked from a private channel. -https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup

+https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup

def admin_conversations_setConversationPrefs(self, *, channel_id: str, prefs: str | Dict[str, str], **kwargs) ‑> SlackResponse @@ -6981,7 +7055,7 @@

Methods

**kwargs, ) -> SlackResponse: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -6991,7 +7065,7 @@

Methods

return self.api_call("admin.conversations.setConversationPrefs", params=kwargs)

Set the posting permissions for a public or private channel. -https://api.slack.com/methods/admin.conversations.setConversationPrefs

+https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs

def admin_conversations_setCustomRetention(self, *, channel_id: str, duration_days: int, **kwargs) ‑> SlackResponse @@ -7009,13 +7083,13 @@

Methods

**kwargs, ) -> SlackResponse: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return self.api_call("admin.conversations.setCustomRetention", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention

def admin_conversations_setTeams(self,
*,
channel_id: str,
org_channel: bool | None = None,
target_team_ids: str | Sequence[str] | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -7035,7 +7109,7 @@

Methods

**kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -7051,7 +7125,7 @@

Methods

return self.api_call("admin.conversations.setTeams", params=kwargs)

Set the workspaces in an Enterprise grid org that connect to a public or private channel. -https://api.slack.com/methods/admin.conversations.setTeams

+https://docs.slack.dev/reference/methods/admin.conversations.setTeams

def admin_conversations_unarchive(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -7068,13 +7142,13 @@

Methods

**kwargs, ) -> SlackResponse: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.unarchive", params=kwargs)

Unarchive a public or private channel. -https://api.slack.com/methods/admin.conversations.archive

+https://docs.slack.dev/reference/methods/admin.conversations.archive

def admin_conversations_unlinkObjects(self, *, channel: str, new_name: str, **kwargs) ‑> SlackResponse @@ -7092,7 +7166,7 @@

Methods

**kwargs, ) -> SlackResponse: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -7103,7 +7177,7 @@

Methods

return self.api_call("admin.conversations.unlinkObjects", params=kwargs)

Unlink a Salesforce record from a channel. -https://api.slack.com/methods/admin.conversations.unlinkObjects

+https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects

def admin_emoji_add(self, *, name: str, url: str, **kwargs) ‑> SlackResponse @@ -7121,13 +7195,13 @@

Methods

**kwargs, ) -> SlackResponse: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return self.api_call("admin.emoji.add", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.emoji.add

def admin_emoji_addAlias(self, *, alias_for: str, name: str, **kwargs) ‑> SlackResponse @@ -7145,13 +7219,13 @@

Methods

**kwargs, ) -> SlackResponse: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.emoji.addAlias

def admin_emoji_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7169,13 +7243,13 @@

Methods

**kwargs, ) -> SlackResponse: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.emoji.list", http_verb="GET", params=kwargs)

List emoji for an Enterprise Grid organization. -https://api.slack.com/methods/admin.emoji.list

+https://docs.slack.dev/reference/methods/admin.emoji.list

def admin_emoji_remove(self, *, name: str, **kwargs) ‑> SlackResponse @@ -7192,13 +7266,13 @@

Methods

**kwargs, ) -> SlackResponse: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs)

Remove an emoji across an Enterprise Grid organization. -https://api.slack.com/methods/admin.emoji.remove

+https://docs.slack.dev/reference/methods/admin.emoji.remove

def admin_emoji_rename(self, *, name: str, new_name: str, **kwargs) ‑> SlackResponse @@ -7216,13 +7290,13 @@

Methods

**kwargs, ) -> SlackResponse: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.emoji.rename

def admin_functions_list(self,
*,
app_ids: str | Sequence[str],
team_id: str | None = None,
cursor: str | None = None,
limit: int | None = None,
**kwargs) ‑> SlackResponse
@@ -7242,7 +7316,7 @@

Methods

**kwargs, ) -> SlackResponse: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -7258,7 +7332,7 @@

Methods

return self.api_call("admin.functions.list", params=kwargs)

Look up functions by a set of apps -https://api.slack.com/methods/admin.functions.list

+https://docs.slack.dev/reference/methods/admin.functions.list

def admin_functions_permissions_lookup(self, *, function_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -7276,7 +7350,7 @@

Methods

) -> SlackResponse: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -7286,7 +7360,7 @@

Methods

Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. -https://api.slack.com/methods/admin.functions.permissions.lookup

+https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup

def admin_functions_permissions_set(self,
*,
function_id: str,
visibility: str,
user_ids: str | Sequence[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -7306,7 +7380,7 @@

Methods

) -> SlackResponse: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -7323,7 +7397,7 @@

Methods

Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities -https://api.slack.com/methods/admin.functions.permissions.set

+https://docs.slack.dev/reference/methods/admin.functions.permissions.set

def admin_inviteRequests_approve(self, *, invite_request_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -7341,13 +7415,13 @@

Methods

**kwargs, ) -> SlackResponse: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.approve", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.inviteRequests.approve

def admin_inviteRequests_approved_list(self,
*,
cursor: str | None = None,
limit: int | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -7366,7 +7440,7 @@

Methods

**kwargs, ) -> SlackResponse: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -7378,7 +7452,7 @@

Methods

return self.api_call("admin.inviteRequests.approved.list", params=kwargs)

List all approved workspace invite requests. -https://api.slack.com/methods/admin.inviteRequests.approved.list

+https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list

def admin_inviteRequests_denied_list(self,
*,
cursor: str | None = None,
limit: int | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -7397,7 +7471,7 @@

Methods

**kwargs, ) -> SlackResponse: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -7409,7 +7483,7 @@

Methods

return self.api_call("admin.inviteRequests.denied.list", params=kwargs)

List all denied workspace invite requests. -https://api.slack.com/methods/admin.inviteRequests.denied.list

+https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list

def admin_inviteRequests_deny(self, *, invite_request_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -7427,13 +7501,13 @@

Methods

**kwargs, ) -> SlackResponse: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.deny", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.inviteRequests.deny

def admin_inviteRequests_list(self, **kwargs) ‑> SlackResponse @@ -7469,7 +7543,7 @@

Methods

**kwargs, ) -> SlackResponse: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -7483,7 +7557,7 @@

Methods

return self.api_call("admin.roles.addAssignments", params=kwargs)

Adds members to the specified role with the specified scopes -https://api.slack.com/methods/admin.roles.addAssignments

+https://docs.slack.dev/reference/methods/admin.roles.addAssignments

def admin_roles_listAssignments(self,
*,
role_ids: str | Sequence[str] | None = None,
entity_ids: str | Sequence[str] | None = None,
cursor: str | None = None,
limit: str | int | None = None,
sort_dir: str | None = None,
**kwargs) ‑> SlackResponse
@@ -7505,7 +7579,7 @@

Methods

) -> SlackResponse: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -7520,7 +7594,7 @@

Methods

Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities -https://api.slack.com/methods/admin.roles.listAssignments

+https://docs.slack.dev/reference/methods/admin.roles.listAssignments

def admin_roles_removeAssignments(self,
*,
role_id: str,
entity_ids: str | Sequence[str],
user_ids: str | Sequence[str],
**kwargs) ‑> SlackResponse
@@ -7539,7 +7613,7 @@

Methods

**kwargs, ) -> SlackResponse: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -7553,7 +7627,7 @@

Methods

return self.api_call("admin.roles.removeAssignments", params=kwargs)

Removes a set of users from a role for the given scopes and entities -https://api.slack.com/methods/admin.roles.removeAssignments

+https://docs.slack.dev/reference/methods/admin.roles.removeAssignments

def admin_teams_admins_list(self, *, team_id: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7572,7 +7646,7 @@

Methods

**kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -7584,7 +7658,7 @@

Methods

return self.api_call("admin.teams.admins.list", http_verb="GET", params=kwargs)

List all of the admins on a given workspace. -https://api.slack.com/methods/admin.inviteRequests.list

+https://docs.slack.dev/reference/methods/admin.inviteRequests.list

def admin_teams_create(self,
*,
team_domain: str,
team_name: str,
team_description: str | None = None,
team_discoverability: str | None = None,
**kwargs) ‑> SlackResponse
@@ -7604,7 +7678,7 @@

Methods

**kwargs, ) -> SlackResponse: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -7617,7 +7691,7 @@

Methods

return self.api_call("admin.teams.create", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.teams.create

def admin_teams_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7635,13 +7709,13 @@

Methods

**kwargs, ) -> SlackResponse: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.teams.list", params=kwargs)

List all teams on an Enterprise organization. -https://api.slack.com/methods/admin.teams.list

+https://docs.slack.dev/reference/methods/admin.teams.list

def admin_teams_owners_list(self, *, team_id: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7660,13 +7734,13 @@

Methods

**kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs)

List all of the admins on a given workspace. -https://api.slack.com/methods/admin.teams.owners.list

+https://docs.slack.dev/reference/methods/admin.teams.owners.list

def admin_teams_settings_info(self, *, team_id: str, **kwargs) ‑> SlackResponse @@ -7683,13 +7757,13 @@

Methods

**kwargs, ) -> SlackResponse: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return self.api_call("admin.teams.settings.info", params=kwargs)

Fetch information about settings in a workspace -https://api.slack.com/methods/admin.teams.settings.info

+https://docs.slack.dev/reference/methods/admin.teams.settings.info

def admin_teams_settings_setDefaultChannels(self, *, team_id: str, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -7707,7 +7781,7 @@

Methods

**kwargs, ) -> SlackResponse: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -7717,7 +7791,7 @@

Methods

return self.api_call("admin.teams.settings.setDefaultChannels", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels

def admin_teams_settings_setDescription(self, *, team_id: str, description: str, **kwargs) ‑> SlackResponse @@ -7735,13 +7809,13 @@

Methods

**kwargs, ) -> SlackResponse: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return self.api_call("admin.teams.settings.setDescription", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription

def admin_teams_settings_setDiscoverability(self, *, team_id: str, discoverability: str, **kwargs) ‑> SlackResponse @@ -7759,13 +7833,13 @@

Methods

**kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return self.api_call("admin.teams.settings.setDiscoverability", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability

def admin_teams_settings_setIcon(self, *, team_id: str, image_url: str, **kwargs) ‑> SlackResponse @@ -7783,13 +7857,13 @@

Methods

**kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon

def admin_teams_settings_setName(self, *, team_id: str, name: str, **kwargs) ‑> SlackResponse @@ -7807,13 +7881,13 @@

Methods

**kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return self.api_call("admin.teams.settings.setName", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.teams.settings.setName

def admin_usergroups_addChannels(self,
*,
channel_ids: str | Sequence[str],
usergroup_id: str,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -7832,7 +7906,7 @@

Methods

**kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -7842,7 +7916,7 @@

Methods

return self.api_call("admin.usergroups.addChannels", params=kwargs)

Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.addChannels

+https://docs.slack.dev/reference/methods/admin.usergroups.addChannels

def admin_usergroups_addTeams(self,
*,
usergroup_id: str,
team_ids: str | Sequence[str],
auto_provision: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -7861,7 +7935,7 @@

Methods

**kwargs, ) -> SlackResponse: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -7871,7 +7945,7 @@

Methods

return self.api_call("admin.usergroups.addTeams", params=kwargs)

Associate one or more default workspaces with an organization-wide IDP group. -https://api.slack.com/methods/admin.usergroups.addTeams

+https://docs.slack.dev/reference/methods/admin.usergroups.addTeams

def admin_usergroups_listChannels(self,
*,
usergroup_id: str,
include_num_members: bool | None = None,
team_id: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -7890,7 +7964,7 @@

Methods

**kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -7902,7 +7976,7 @@

Methods

return self.api_call("admin.usergroups.listChannels", params=kwargs)

Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.listChannels

+https://docs.slack.dev/reference/methods/admin.usergroups.listChannels

def admin_usergroups_removeChannels(self, *, usergroup_id: str, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -7920,7 +7994,7 @@

Methods

**kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -7930,7 +8004,7 @@

Methods

return self.api_call("admin.usergroups.removeChannels", params=kwargs)

Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.removeChannels

+https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels

def admin_users_assign(self,
*,
team_id: str,
user_id: str,
channel_ids: str | Sequence[str] | None = None,
is_restricted: bool | None = None,
is_ultra_restricted: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -7951,7 +8025,7 @@

Methods

**kwargs, ) -> SlackResponse: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -7968,7 +8042,7 @@

Methods

return self.api_call("admin.users.assign", params=kwargs)

Add an Enterprise user to a workspace. -https://api.slack.com/methods/admin.users.assign

+https://docs.slack.dev/reference/methods/admin.users.assign

def admin_users_invite(self,
*,
team_id: str,
email: str,
channel_ids: str | Sequence[str],
custom_message: str | None = None,
email_password_policy_enabled: bool | None = None,
guest_expiration_ts: str | float | None = None,
is_restricted: bool | None = None,
is_ultra_restricted: bool | None = None,
real_name: str | None = None,
resend: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -7994,7 +8068,7 @@

Methods

**kwargs, ) -> SlackResponse: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -8016,10 +8090,10 @@

Methods

return self.api_call("admin.users.invite", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.users.invite

-def admin_users_list(self,
*,
team_id: str,
include_deactivated_user_workspaces: bool | None = None,
is_active: bool | None = None,
cursor: str | None = None,
limit: int | None = None,
**kwargs) ‑> SlackResponse
+def admin_users_list(self,
*,
team_id: str | None = None,
include_deactivated_user_workspaces: bool | None = None,
is_active: bool | None = None,
cursor: str | None = None,
limit: int | None = None,
**kwargs) ‑> SlackResponse
@@ -8029,7 +8103,7 @@

Methods

def admin_users_list(
     self,
     *,
-    team_id: str,
+    team_id: Optional[str] = None,
     include_deactivated_user_workspaces: Optional[bool] = None,
     is_active: Optional[bool] = None,
     cursor: Optional[str] = None,
@@ -8037,7 +8111,7 @@ 

Methods

**kwargs, ) -> SlackResponse: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -8051,7 +8125,7 @@

Methods

return self.api_call("admin.users.list", params=kwargs)
+https://docs.slack.dev/reference/methods/admin.users.list

def admin_users_remove(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8069,13 +8143,13 @@

Methods

**kwargs, ) -> SlackResponse: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.remove", params=kwargs)

Remove a user from a workspace. -https://api.slack.com/methods/admin.users.remove

+https://docs.slack.dev/reference/methods/admin.users.remove

def admin_users_session_clearSettings(self, *, user_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -8093,7 +8167,7 @@

Methods

) -> SlackResponse: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8103,7 +8177,7 @@

Methods

Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. -https://api.slack.com/methods/admin.users.session.clearSettings

+https://docs.slack.dev/reference/methods/admin.users.session.clearSettings

def admin_users_session_getSettings(self, *, user_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -8121,7 +8195,7 @@

Methods

) -> SlackResponse: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8131,7 +8205,7 @@

Methods

Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. -https://api.slack.com/methods/admin.users.session.getSettings

+https://docs.slack.dev/reference/methods/admin.users.session.getSettings

def admin_users_session_invalidate(self, *, session_id: str, team_id: str, **kwargs) ‑> SlackResponse @@ -8149,13 +8223,13 @@

Methods

**kwargs, ) -> SlackResponse: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return self.api_call("admin.users.session.invalidate", params=kwargs)

Invalidate a single session for a user by session_id. -https://api.slack.com/methods/admin.users.session.invalidate

+https://docs.slack.dev/reference/methods/admin.users.session.invalidate

def admin_users_session_list(self,
*,
cursor: str | None = None,
limit: int | None = None,
team_id: str | None = None,
user_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -8175,7 +8249,7 @@

Methods

**kwargs, ) -> SlackResponse: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -8188,7 +8262,7 @@

Methods

return self.api_call("admin.users.session.list", params=kwargs)

Lists all active user sessions for an organization -https://api.slack.com/methods/admin.users.session.list

+https://docs.slack.dev/reference/methods/admin.users.session.list

def admin_users_session_reset(self,
*,
user_id: str,
mobile_only: bool | None = None,
web_only: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -8207,7 +8281,7 @@

Methods

**kwargs, ) -> SlackResponse: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -8219,7 +8293,7 @@

Methods

return self.api_call("admin.users.session.reset", params=kwargs)

Wipes all valid sessions on all devices for a given user. -https://api.slack.com/methods/admin.users.session.reset

+https://docs.slack.dev/reference/methods/admin.users.session.reset

def admin_users_session_resetBulk(self,
*,
user_ids: str | Sequence[str],
mobile_only: bool | None = None,
web_only: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -8238,7 +8312,7 @@

Methods

**kwargs, ) -> SlackResponse: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8253,7 +8327,7 @@

Methods

return self.api_call("admin.users.session.resetBulk", params=kwargs)

Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users -https://api.slack.com/methods/admin.users.session.resetBulk

+https://docs.slack.dev/reference/methods/admin.users.session.resetBulk

def admin_users_session_setSettings(self,
*,
user_ids: str | Sequence[str],
desktop_app_browser_quit: bool | None = None,
duration: int | None = None,
**kwargs) ‑> SlackResponse
@@ -8273,7 +8347,7 @@

Methods

) -> SlackResponse: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8289,7 +8363,7 @@

Methods

Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. -https://api.slack.com/methods/admin.users.session.setSettings

+https://docs.slack.dev/reference/methods/admin.users.session.setSettings

def admin_users_setAdmin(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8307,13 +8381,13 @@

Methods

**kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setAdmin", params=kwargs)

Set an existing guest, regular user, or owner to be an admin user. -https://api.slack.com/methods/admin.users.setAdmin

+https://docs.slack.dev/reference/methods/admin.users.setAdmin

def admin_users_setExpiration(self, *, expiration_ts: int, user_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -8332,13 +8406,13 @@

Methods

**kwargs, ) -> SlackResponse: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setExpiration", params=kwargs)

Set an expiration for a guest user. -https://api.slack.com/methods/admin.users.setExpiration

+https://docs.slack.dev/reference/methods/admin.users.setExpiration

def admin_users_setOwner(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8356,13 +8430,13 @@

Methods

**kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setOwner", params=kwargs)

Set an existing guest, regular user, or admin user to be a workspace owner. -https://api.slack.com/methods/admin.users.setOwner

+https://docs.slack.dev/reference/methods/admin.users.setOwner

def admin_users_setRegular(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8380,13 +8454,13 @@

Methods

**kwargs, ) -> SlackResponse: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setRegular", params=kwargs)

Set an existing guest user, admin user, or owner to be a regular user. -https://api.slack.com/methods/admin.users.setRegular

+https://docs.slack.dev/reference/methods/admin.users.setRegular

def admin_users_unsupportedVersions_export(self,
*,
date_end_of_support: str | int | None = None,
date_sessions_started: str | int | None = None,
**kwargs) ‑> SlackResponse
@@ -8405,7 +8479,7 @@

Methods

) -> SlackResponse: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -8417,7 +8491,7 @@

Methods

Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. -https://api.slack.com/methods/admin.users.unsupportedVersions.export

+https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export

def admin_workflows_collaborators_add(self,
*,
collaborator_ids: str | Sequence[str],
workflow_ids: str | Sequence[str],
**kwargs) ‑> SlackResponse
@@ -8435,7 +8509,7 @@

Methods

**kwargs, ) -> SlackResponse: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -8448,7 +8522,7 @@

Methods

return self.api_call("admin.workflows.collaborators.add", params=kwargs)

Add collaborators to workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.collaborators.add

+https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add

def admin_workflows_collaborators_remove(self,
*,
collaborator_ids: str | Sequence[str],
workflow_ids: str | Sequence[str],
**kwargs) ‑> SlackResponse
@@ -8466,7 +8540,7 @@

Methods

**kwargs, ) -> SlackResponse: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -8479,7 +8553,7 @@

Methods

return self.api_call("admin.workflows.collaborators.remove", params=kwargs)

Remove collaborators from workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.collaborators.remove

+https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove

def admin_workflows_permissions_lookup(self,
*,
workflow_ids: str | Sequence[str],
max_workflow_triggers: int | None = None,
**kwargs) ‑> SlackResponse
@@ -8497,7 +8571,7 @@

Methods

**kwargs, ) -> SlackResponse: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -8511,7 +8585,7 @@

Methods

return self.api_call("admin.workflows.permissions.lookup", params=kwargs)

Look up the permissions for a set of workflows -https://api.slack.com/methods/admin.workflows.permissions.lookup

+https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup

def admin_workflows_unpublish(self, *, workflow_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -8577,7 +8651,7 @@

Methods

**kwargs, ) -> SlackResponse: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -8586,7 +8660,7 @@

Methods

return self.api_call("admin.workflows.unpublish", params=kwargs)

Unpublish workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.unpublish

+https://docs.slack.dev/reference/methods/admin.workflows.unpublish

def api_test(self, *, error: str | None = None, **kwargs) ‑> SlackResponse @@ -8603,13 +8677,13 @@

Methods

**kwargs, ) -> SlackResponse: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return self.api_call("api.test", params=kwargs)

Checks API calling code. -https://api.slack.com/methods/api.test

+https://docs.slack.dev/reference/methods/api.test

def apps_connections_open(self, *, app_token: str, **kwargs) ‑> SlackResponse @@ -8627,14 +8701,14 @@

Methods

) -> SlackResponse: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return self.api_call("apps.connections.open", http_verb="POST", params=kwargs)

Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads -https://api.slack.com/methods/apps.connections.open

+https://docs.slack.dev/reference/methods/apps.connections.open

def apps_event_authorizations_list(self,
*,
event_context: str,
cursor: str | None = None,
limit: int | None = None,
**kwargs) ‑> SlackResponse
@@ -8654,14 +8728,14 @@

Methods

) -> SlackResponse: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return self.api_call("apps.event.authorizations.list", params=kwargs)

Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. -https://api.slack.com/methods/apps.event.authorizations.list

+https://docs.slack.dev/reference/methods/apps.event.authorizations.list

def apps_manifest_create(self, *, manifest: str | Dict[str, Any], **kwargs) ‑> SlackResponse @@ -8678,7 +8752,7 @@

Methods

**kwargs, ) -> SlackResponse: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8687,7 +8761,7 @@

Methods

return self.api_call("apps.manifest.create", params=kwargs)

Create an app from an app manifest -https://api.slack.com/methods/apps.manifest.create

+https://docs.slack.dev/reference/methods/apps.manifest.create

def apps_manifest_delete(self, *, app_id: str, **kwargs) ‑> SlackResponse @@ -8704,13 +8778,13 @@

Methods

**kwargs, ) -> SlackResponse: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.delete", params=kwargs)

Permanently deletes an app created through app manifests -https://api.slack.com/methods/apps.manifest.delete

+https://docs.slack.dev/reference/methods/apps.manifest.delete

def apps_manifest_export(self, *, app_id: str, **kwargs) ‑> SlackResponse @@ -8727,13 +8801,13 @@

Methods

**kwargs, ) -> SlackResponse: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.export", params=kwargs)

Export an app manifest from an existing app -https://api.slack.com/methods/apps.manifest.export

+https://docs.slack.dev/reference/methods/apps.manifest.export

def apps_manifest_update(self, *, app_id: str, manifest: str | Dict[str, Any], **kwargs) ‑> SlackResponse @@ -8751,7 +8825,7 @@

Methods

**kwargs, ) -> SlackResponse: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8761,7 +8835,7 @@

Methods

return self.api_call("apps.manifest.update", params=kwargs)

Update an app from an app manifest -https://api.slack.com/methods/apps.manifest.update

+https://docs.slack.dev/reference/methods/apps.manifest.update

def apps_manifest_validate(self, *, manifest: str | Dict[str, Any], app_id: str | None = None, **kwargs) ‑> SlackResponse @@ -8779,7 +8853,7 @@

Methods

**kwargs, ) -> SlackResponse: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8789,7 +8863,7 @@

Methods

return self.api_call("apps.manifest.validate", params=kwargs)
+https://docs.slack.dev/reference/methods/apps.manifest.validate

def apps_uninstall(self, *, client_id: str, client_secret: str, **kwargs) ‑> SlackResponse @@ -8807,13 +8881,13 @@

Methods

**kwargs, ) -> SlackResponse: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return self.api_call("apps.uninstall", params=kwargs)

Uninstalls your app from a workspace. -https://api.slack.com/methods/apps.uninstall

+https://docs.slack.dev/reference/methods/apps.uninstall

def assistant_threads_setStatus(self, *, channel_id: str, thread_ts: str, status: str, **kwargs) ‑> SlackResponse @@ -8832,13 +8906,13 @@

Methods

**kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return self.api_call("assistant.threads.setStatus", params=kwargs)
+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
@@ -8858,7 +8932,7 @@

Methods

**kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -8866,7 +8940,7 @@

Methods

return self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
+https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts

def assistant_threads_setTitle(self, *, channel_id: str, thread_ts: str, title: str, **kwargs) ‑> SlackResponse @@ -8885,13 +8959,13 @@

Methods

**kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return self.api_call("assistant.threads.setTitle", params=kwargs)
+https://docs.slack.dev/reference/methods/assistant.threads.setTitle

def auth_revoke(self, *, test: bool | None = None, **kwargs) ‑> SlackResponse @@ -8908,13 +8982,13 @@

Methods

**kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return self.api_call("auth.revoke", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/auth.revoke

def auth_teams_list(self,
cursor: str | None = None,
limit: int | None = None,
include_icon: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -8932,13 +9006,13 @@

Methods

**kwargs, ) -> SlackResponse: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return self.api_call("auth.teams.list", params=kwargs)

List the workspaces a token can access. -https://api.slack.com/methods/auth.teams.list

+https://docs.slack.dev/reference/methods/auth.teams.list

def auth_test(self, **kwargs) ‑> SlackResponse @@ -8953,12 +9027,12 @@

Methods

**kwargs, ) -> SlackResponse: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return self.api_call("auth.test", params=kwargs)

Checks authentication & identity. -https://api.slack.com/methods/auth.test

+https://docs.slack.dev/reference/methods/auth.test

def bookmarks_add(self,
*,
channel_id: str,
title: str,
type: str,
emoji: str | None = None,
entity_id: str | None = None,
link: str | None = None,
parent_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -8981,7 +9055,7 @@

Methods

**kwargs, ) -> SlackResponse: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -8997,7 +9071,7 @@

Methods

return self.api_call("bookmarks.add", http_verb="POST", params=kwargs)
+https://docs.slack.dev/reference/methods/bookmarks.add

def bookmarks_edit(self,
*,
bookmark_id: str,
channel_id: str,
emoji: str | None = None,
link: str | None = None,
title: str | None = None,
**kwargs) ‑> SlackResponse
@@ -9018,7 +9092,7 @@

Methods

**kwargs, ) -> SlackResponse: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -9032,7 +9106,7 @@

Methods

return self.api_call("bookmarks.edit", http_verb="POST", params=kwargs)
+https://docs.slack.dev/reference/methods/bookmarks.edit

def bookmarks_list(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -9049,13 +9123,13 @@

Methods

**kwargs, ) -> SlackResponse: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return self.api_call("bookmarks.list", http_verb="POST", params=kwargs)

List bookmark for the channel. -https://api.slack.com/methods/bookmarks.list

+https://docs.slack.dev/reference/methods/bookmarks.list

def bookmarks_remove(self, *, bookmark_id: str, channel_id: str, **kwargs) ‑> SlackResponse @@ -9073,13 +9147,13 @@

Methods

**kwargs, ) -> SlackResponse: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return self.api_call("bookmarks.remove", http_verb="POST", params=kwargs)

Remove bookmark from the channel. -https://api.slack.com/methods/bookmarks.remove

+https://docs.slack.dev/reference/methods/bookmarks.remove

def bots_info(self, *, bot: str | None = None, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -9097,13 +9171,13 @@

Methods

**kwargs, ) -> SlackResponse: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return self.api_call("bots.info", http_verb="GET", params=kwargs)

Gets information about a bot user. -https://api.slack.com/methods/bots.info

+https://docs.slack.dev/reference/methods/bots.info

def calls_add(self,
*,
external_unique_id: str,
join_url: str,
created_by: str | None = None,
date_start: int | None = None,
desktop_app_join_url: str | None = None,
external_display_id: str | None = None,
title: str | None = None,
users: str | Sequence[Dict[str, str]] | None = None,
**kwargs) ‑> SlackResponse
@@ -9127,7 +9201,7 @@

Methods

**kwargs, ) -> SlackResponse: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -9147,7 +9221,7 @@

Methods

return self.api_call("calls.add", http_verb="POST", params=kwargs)
+https://docs.slack.dev/reference/methods/calls.add

def calls_end(self, *, id: str, duration: int | None = None, **kwargs) ‑> SlackResponse @@ -9165,13 +9239,13 @@

Methods

**kwargs, ) -> SlackResponse: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return self.api_call("calls.end", http_verb="POST", params=kwargs)
+https://docs.slack.dev/reference/methods/calls.end

def calls_info(self, *, id: str, **kwargs) ‑> SlackResponse @@ -9188,13 +9262,13 @@

Methods

**kwargs, ) -> SlackResponse: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return self.api_call("calls.info", http_verb="POST", params=kwargs)

Returns information about a Call. -https://api.slack.com/methods/calls.info

+https://docs.slack.dev/reference/methods/calls.info

def calls_participants_add(self, *, id: str, users: str | Sequence[Dict[str, str]], **kwargs) ‑> SlackResponse @@ -9212,14 +9286,14 @@

Methods

**kwargs, ) -> SlackResponse: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) return self.api_call("calls.participants.add", http_verb="POST", params=kwargs)

Registers new participants added to a Call. -https://api.slack.com/methods/calls.participants.add

+https://docs.slack.dev/reference/methods/calls.participants.add

def calls_participants_remove(self, *, id: str, users: str | Sequence[Dict[str, str]], **kwargs) ‑> SlackResponse @@ -9237,14 +9311,14 @@

Methods

**kwargs, ) -> SlackResponse: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) return self.api_call("calls.participants.remove", http_verb="POST", params=kwargs)

Registers participants removed from a Call. -https://api.slack.com/methods/calls.participants.remove

+https://docs.slack.dev/reference/methods/calls.participants.remove

def calls_update(self,
*,
id: str,
desktop_app_join_url: str | None = None,
join_url: str | None = None,
title: str | None = None,
**kwargs) ‑> SlackResponse
@@ -9264,7 +9338,7 @@

Methods

**kwargs, ) -> SlackResponse: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -9277,7 +9351,7 @@

Methods

return self.api_call("calls.update", http_verb="POST", params=kwargs)

Updates information about a Call. -https://api.slack.com/methods/calls.update

+https://docs.slack.dev/reference/methods/calls.update

def canvases_access_delete(self,
*,
canvas_id: str,
channel_ids: str | Sequence[str] | None = None,
user_ids: str | Sequence[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -9296,7 +9370,7 @@

Methods

**kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -9312,7 +9386,7 @@

Methods

return self.api_call("canvases.access.delete", params=kwargs)

Create a Channel Canvas for a channel -https://api.slack.com/methods/canvases.access.delete

+https://docs.slack.dev/reference/methods/canvases.access.delete

def canvases_access_set(self,
*,
canvas_id: str,
access_level: str,
channel_ids: str | Sequence[str] | None = None,
user_ids: str | Sequence[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -9332,7 +9406,7 @@

Methods

**kwargs, ) -> SlackResponse: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -9349,7 +9423,7 @@

Methods

return self.api_call("canvases.access.set", params=kwargs)

Sets the access level to a canvas for specified entities -https://api.slack.com/methods/canvases.access.set

+https://docs.slack.dev/reference/methods/canvases.access.set

def canvases_create(self, *, title: str | None = None, document_content: Dict[str, str], **kwargs) ‑> SlackResponse @@ -9367,13 +9441,13 @@

Methods

**kwargs, ) -> SlackResponse: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return self.api_call("canvases.create", json=kwargs)
+https://docs.slack.dev/reference/methods/canvases.create

def canvases_delete(self, *, canvas_id: str, **kwargs) ‑> SlackResponse @@ -9390,13 +9464,13 @@

Methods

**kwargs, ) -> SlackResponse: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return self.api_call("canvases.delete", params=kwargs)
+https://docs.slack.dev/reference/methods/canvases.delete

def canvases_edit(self, *, canvas_id: str, changes: Sequence[Dict[str, Any]], **kwargs) ‑> SlackResponse @@ -9414,13 +9488,13 @@

Methods

**kwargs, ) -> SlackResponse: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return self.api_call("canvases.edit", json=kwargs)
+https://docs.slack.dev/reference/methods/canvases.edit

def canvases_sections_lookup(self, *, canvas_id: str, criteria: Dict[str, Any], **kwargs) ‑> SlackResponse @@ -9438,13 +9512,13 @@

Methods

**kwargs, ) -> SlackResponse: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return self.api_call("canvases.sections.lookup", params=kwargs)

Find sections matching the provided criteria -https://api.slack.com/methods/canvases.sections.lookup

+https://docs.slack.dev/reference/methods/canvases.sections.lookup

def channels_archive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -9778,13 +9852,13 @@

Methods

**kwargs, ) -> SlackResponse: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return self.api_call("chat.delete", params=kwargs)
+https://docs.slack.dev/reference/methods/chat.delete

def chat_deleteScheduledMessage(self,
*,
channel: str,
scheduled_message_id: str,
as_user: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -9803,7 +9877,7 @@

Methods

**kwargs, ) -> SlackResponse: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -9815,7 +9889,7 @@

Methods

return self.api_call("chat.deleteScheduledMessage", params=kwargs)
+https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage

def chat_meMessage(self, *, channel: str, text: str, **kwargs) ‑> SlackResponse @@ -9857,16 +9931,16 @@

Methods

**kwargs, ) -> SlackResponse: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return self.api_call("chat.meMessage", params=kwargs)

Share a me message into a channel. -https://api.slack.com/methods/chat.meMessage

+https://docs.slack.dev/reference/methods/chat.meMessage

-def chat_postEphemeral(self,
*,
channel: str,
user: str,
text: str | None = None,
as_user: bool | None = None,
attachments: str | Sequence[Dict | Attachment] | None = None,
blocks: str | Sequence[Dict | Block] | None = None,
thread_ts: str | None = None,
icon_emoji: str | None = None,
icon_url: str | None = None,
link_names: bool | None = None,
username: str | None = None,
parse: str | None = None,
**kwargs) ‑> SlackResponse
+def chat_postEphemeral(self,
*,
channel: str,
user: str,
text: str | None = None,
as_user: bool | None = None,
attachments: str | Sequence[Dict | Attachment] | None = None,
blocks: str | Sequence[Dict | Block] | None = None,
thread_ts: str | None = None,
icon_emoji: str | None = None,
icon_url: str | None = None,
link_names: bool | None = None,
username: str | None = None,
parse: str | None = None,
markdown_text: str | None = None,
**kwargs) ‑> SlackResponse
@@ -9888,10 +9962,11 @@

Methods

link_names: Optional[bool] = None, username: Optional[str] = None, parse: Optional[str] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -9907,19 +9982,20 @@

Methods

"link_names": link_names, "username": username, "parse": parse, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postEphemeral", kwargs) + _warn_if_message_text_content_is_missing("chat.postEphemeral", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postEphemeral", json=kwargs)

Sends an ephemeral message to a user in a channel. -https://api.slack.com/methods/chat.postEphemeral

+https://docs.slack.dev/reference/methods/chat.postEphemeral

-def chat_postMessage(self,
*,
channel: str,
text: str | None = None,
as_user: bool | None = None,
attachments: str | Sequence[Dict | Attachment] | None = None,
blocks: str | Sequence[Dict | Block] | None = None,
thread_ts: str | None = None,
reply_broadcast: bool | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
container_id: str | None = None,
icon_emoji: str | None = None,
icon_url: str | None = None,
mrkdwn: bool | None = None,
link_names: bool | None = None,
username: str | None = None,
parse: str | None = None,
metadata: Dict | Metadata | None = None,
**kwargs) ‑> SlackResponse
+def chat_postMessage(self,
*,
channel: str,
text: str | None = None,
as_user: bool | None = None,
attachments: str | Sequence[Dict | Attachment] | None = None,
blocks: str | Sequence[Dict | Block] | None = None,
thread_ts: str | None = None,
reply_broadcast: bool | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
container_id: str | None = None,
icon_emoji: str | None = None,
icon_url: str | None = None,
mrkdwn: bool | None = None,
link_names: bool | None = None,
username: str | None = None,
parse: str | None = None,
metadata: Dict | Metadata | None = None,
markdown_text: str | None = None,
**kwargs) ‑> SlackResponse
@@ -9946,10 +10022,11 @@

Methods

username: Optional[str] = None, parse: Optional[str] = None, # none, full metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -9970,19 +10047,20 @@

Methods

"username": username, "parse": parse, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.postMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postMessage", json=kwargs)

Sends a message to a channel. -https://api.slack.com/methods/chat.postMessage

+https://docs.slack.dev/reference/methods/chat.postMessage

-def chat_scheduleMessage(self,
*,
channel: str,
post_at: str | int,
text: str,
as_user: bool | None = None,
attachments: str | Sequence[Dict | Attachment] | None = None,
blocks: str | Sequence[Dict | Block] | None = None,
thread_ts: str | None = None,
parse: str | None = None,
reply_broadcast: bool | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
link_names: bool | None = None,
metadata: Dict | Metadata | None = None,
**kwargs) ‑> SlackResponse
+def chat_scheduleMessage(self,
*,
channel: str,
post_at: str | int,
text: str | None = None,
as_user: bool | None = None,
attachments: str | Sequence[Dict | Attachment] | None = None,
blocks: str | Sequence[Dict | Block] | None = None,
thread_ts: str | None = None,
parse: str | None = None,
reply_broadcast: bool | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
link_names: bool | None = None,
metadata: Dict | Metadata | None = None,
markdown_text: str | None = None,
**kwargs) ‑> SlackResponse
@@ -9994,7 +10072,7 @@

Methods

*, channel: str, post_at: Union[str, int], - text: str, + text: Optional[str] = None, as_user: Optional[bool] = None, attachments: Optional[Union[str, Sequence[Union[Dict, Attachment]]]] = None, blocks: Optional[Union[str, Sequence[Union[Dict, Block]]]] = None, @@ -10005,10 +10083,11 @@

Methods

unfurl_media: Optional[bool] = None, link_names: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -10025,16 +10104,17 @@

Methods

"unfurl_media": unfurl_media, "link_names": link_names, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.scheduleMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.scheduleMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.scheduleMessage", json=kwargs)
+https://docs.slack.dev/reference/methods/chat.scheduleMessage

def chat_scheduledMessages_list(self,
*,
channel: str | None = None,
cursor: str | None = None,
latest: str | None = None,
limit: int | None = None,
oldest: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -10056,7 +10136,7 @@

Methods

**kwargs, ) -> SlackResponse: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -10071,7 +10151,7 @@

Methods

return self.api_call("chat.scheduledMessages.list", params=kwargs)
+https://docs.slack.dev/reference/methods/chat.scheduledMessages.list

def chat_unfurl(self,
*,
channel: str | None = None,
ts: str | None = None,
source: str | None = None,
unfurl_id: str | None = None,
unfurls: Dict[str, Dict] | None = None,
user_auth_blocks: str | Sequence[Dict | Block] | None = None,
user_auth_message: str | None = None,
user_auth_required: bool | None = None,
user_auth_url: str | None = None,
**kwargs) ‑> SlackResponse
@@ -10096,7 +10176,7 @@

Methods

**kwargs, ) -> SlackResponse: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -10117,10 +10197,10 @@

Methods

return self.api_call("chat.unfurl", json=kwargs)

Provide custom unfurl behavior for user-posted URLs. -https://api.slack.com/methods/chat.unfurl

+https://docs.slack.dev/reference/methods/chat.unfurl

-def chat_update(self,
*,
channel: str,
ts: str,
text: str | None = None,
attachments: str | Sequence[Dict | Attachment] | None = None,
blocks: str | Sequence[Dict | Block] | None = None,
as_user: bool | None = None,
file_ids: str | Sequence[str] | None = None,
link_names: bool | None = None,
parse: str | None = None,
reply_broadcast: bool | None = None,
metadata: Dict | Metadata | None = None,
**kwargs) ‑> SlackResponse
+def chat_update(self,
*,
channel: str,
ts: str,
text: str | None = None,
attachments: str | Sequence[Dict | Attachment] | None = None,
blocks: str | Sequence[Dict | Block] | None = None,
as_user: bool | None = None,
file_ids: str | Sequence[str] | None = None,
link_names: bool | None = None,
parse: str | None = None,
reply_broadcast: bool | None = None,
metadata: Dict | Metadata | None = None,
markdown_text: str | None = None,
**kwargs) ‑> SlackResponse
@@ -10141,10 +10221,11 @@

Methods

parse: Optional[str] = None, # none, full reply_broadcast: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -10158,6 +10239,7 @@

Methods

"parse": parse, "reply_broadcast": reply_broadcast, "metadata": metadata, + "markdown_text": markdown_text, } ) if isinstance(file_ids, (list, tuple)): @@ -10166,12 +10248,12 @@

Methods

kwargs.update({"file_ids": file_ids}) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.update", kwargs) + _warn_if_message_text_content_is_missing("chat.update", kwargs) # NOTE: intentionally using json over params for API methods using blocks/attachments return self.api_call("chat.update", json=kwargs)

Updates a message in a channel. -https://api.slack.com/methods/chat.update

+https://docs.slack.dev/reference/methods/chat.update

def conversations_acceptSharedInvite(self,
*,
channel_name: str,
channel_id: str | None = None,
invite_id: str | None = None,
free_trial_accepted: bool | None = None,
is_private: bool | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -10193,7 +10275,7 @@

Methods

**kwargs, ) -> SlackResponse: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -10210,7 +10292,7 @@

Methods

return self.api_call("conversations.acceptSharedInvite", http_verb="POST", params=kwargs)

Accepts an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.acceptSharedInvite

+https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite

def conversations_approveSharedInvite(self, *, invite_id: str, target_team: str | None = None, **kwargs) ‑> SlackResponse @@ -10228,13 +10310,13 @@

Methods

**kwargs, ) -> SlackResponse: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs)

Approves an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.approveSharedInvite

+https://docs.slack.dev/reference/methods/conversations.approveSharedInvite

def conversations_archive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10251,13 +10333,13 @@

Methods

**kwargs, ) -> SlackResponse: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return self.api_call("conversations.archive", params=kwargs)
+https://docs.slack.dev/reference/methods/conversations.archive

def conversations_canvases_create(self, *, channel_id: str, document_content: Dict[str, str], **kwargs) ‑> SlackResponse @@ -10275,13 +10357,13 @@

Methods

**kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return self.api_call("conversations.canvases.create", json=kwargs)
+https://docs.slack.dev/reference/methods/conversations.canvases.create

def conversations_close(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10298,13 +10380,13 @@

Methods

**kwargs, ) -> SlackResponse: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return self.api_call("conversations.close", params=kwargs)

Closes a direct message or multi-person direct message. -https://api.slack.com/methods/conversations.close

+https://docs.slack.dev/reference/methods/conversations.close

def conversations_create(self,
*,
name: str,
is_private: bool | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -10323,13 +10405,13 @@

Methods

**kwargs, ) -> SlackResponse: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return self.api_call("conversations.create", params=kwargs)

Initiates a public or private channel-based conversation -https://api.slack.com/methods/conversations.create

+https://docs.slack.dev/reference/methods/conversations.create

def conversations_declineSharedInvite(self, *, invite_id: str, target_team: str | None = None, **kwargs) ‑> SlackResponse @@ -10347,13 +10429,13 @@

Methods

**kwargs, ) -> SlackResponse: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs)

Declines a Slack Connect channel invite. -https://api.slack.com/methods/conversations.declineSharedInvite

+https://docs.slack.dev/reference/methods/conversations.declineSharedInvite

def conversations_externalInvitePermissions_set(self, *, action: str, channel: str, target_team: str, **kwargs) ‑> SlackResponse @@ -10367,7 +10449,7 @@

Methods

self, *, action: str, channel: str, target_team: str, **kwargs ) -> SlackResponse: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -10379,7 +10461,7 @@

Methods

return self.api_call("conversations.externalInvitePermissions.set", params=kwargs)

Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. -https://api.slack.com/methods/conversations.externalInvitePermissions.set

+https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set

def conversations_history(self,
*,
channel: str,
cursor: str | None = None,
inclusive: bool | None = None,
include_all_metadata: bool | None = None,
latest: str | None = None,
limit: int | None = None,
oldest: str | None = None,
**kwargs) ‑> SlackResponse
@@ -10402,7 +10484,7 @@

Methods

**kwargs, ) -> SlackResponse: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -10418,7 +10500,7 @@

Methods

return self.api_call("conversations.history", http_verb="GET", params=kwargs)

Fetches a conversation's history of messages and events. -https://api.slack.com/methods/conversations.history

+https://docs.slack.dev/reference/methods/conversations.history

def conversations_info(self,
*,
channel: str,
include_locale: bool | None = None,
include_num_members: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -10437,7 +10519,7 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -10449,7 +10531,7 @@

Methods

return self.api_call("conversations.info", http_verb="GET", params=kwargs)

Retrieve information about a conversation. -https://api.slack.com/methods/conversations.info

+https://docs.slack.dev/reference/methods/conversations.info

def conversations_invite(self,
*,
channel: str,
users: str | Sequence[str],
force: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -10468,7 +10550,7 @@

Methods

**kwargs, ) -> SlackResponse: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -10483,7 +10565,7 @@

Methods

return self.api_call("conversations.invite", params=kwargs)
+https://docs.slack.dev/reference/methods/conversations.invite

def conversations_inviteShared(self,
*,
channel: str,
emails: str | Sequence[str] | None = None,
user_ids: str | Sequence[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -10502,7 +10584,7 @@

Methods

**kwargs, ) -> SlackResponse: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -10518,7 +10600,7 @@

Methods

return self.api_call("conversations.inviteShared", http_verb="GET", params=kwargs)

Sends an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.inviteShared

+https://docs.slack.dev/reference/methods/conversations.inviteShared

def conversations_join(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10535,13 +10617,13 @@

Methods

**kwargs, ) -> SlackResponse: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return self.api_call("conversations.join", params=kwargs)

Joins an existing conversation. -https://api.slack.com/methods/conversations.join

+https://docs.slack.dev/reference/methods/conversations.join

def conversations_kick(self, *, channel: str, user: str, **kwargs) ‑> SlackResponse @@ -10559,13 +10641,13 @@

Methods

**kwargs, ) -> SlackResponse: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return self.api_call("conversations.kick", params=kwargs)

Removes a user from a conversation. -https://api.slack.com/methods/conversations.kick

+https://docs.slack.dev/reference/methods/conversations.kick

def conversations_leave(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10582,13 +10664,13 @@

Methods

**kwargs, ) -> SlackResponse: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return self.api_call("conversations.leave", params=kwargs)
+https://docs.slack.dev/reference/methods/conversations.leave

def conversations_list(self,
*,
cursor: str | None = None,
exclude_archived: bool | None = None,
limit: int | None = None,
team_id: str | None = None,
types: str | Sequence[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -10609,7 +10691,7 @@

Methods

**kwargs, ) -> SlackResponse: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -10626,7 +10708,7 @@

Methods

return self.api_call("conversations.list", http_verb="GET", params=kwargs)

Lists all channels in a Slack team. -https://api.slack.com/methods/conversations.list

+https://docs.slack.dev/reference/methods/conversations.list

def conversations_listConnectInvites(self,
*,
count: int | None = None,
cursor: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -10646,14 +10728,14 @@

Methods

) -> SlackResponse: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return self.api_call("conversations.listConnectInvites", params=kwargs)

List shared channel invites that have been generated or received but have not yet been approved by all parties. -https://api.slack.com/methods/conversations.listConnectInvites

+https://docs.slack.dev/reference/methods/conversations.listConnectInvites

def conversations_mark(self, *, channel: str, ts: str, **kwargs) ‑> SlackResponse @@ -10671,13 +10753,13 @@

Methods

**kwargs, ) -> SlackResponse: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return self.api_call("conversations.mark", params=kwargs)

Sets the read cursor in a channel. -https://api.slack.com/methods/conversations.mark

+https://docs.slack.dev/reference/methods/conversations.mark

def conversations_members(self, *, channel: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -10696,13 +10778,13 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return self.api_call("conversations.members", http_verb="GET", params=kwargs)

Retrieve members of a conversation. -https://api.slack.com/methods/conversations.members

+https://docs.slack.dev/reference/methods/conversations.members

def conversations_open(self,
*,
channel: str | None = None,
return_im: bool | None = None,
users: str | Sequence[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -10721,7 +10803,7 @@

Methods

**kwargs, ) -> SlackResponse: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -10733,7 +10815,7 @@

Methods

return self.api_call("conversations.open", params=kwargs)

Opens or resumes a direct message or multi-person direct message. -https://api.slack.com/methods/conversations.open

+https://docs.slack.dev/reference/methods/conversations.open

def conversations_rename(self, *, channel: str, name: str, **kwargs) ‑> SlackResponse @@ -10751,13 +10833,13 @@

Methods

**kwargs, ) -> SlackResponse: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return self.api_call("conversations.rename", params=kwargs)
+https://docs.slack.dev/reference/methods/conversations.rename

def conversations_replies(self,
*,
channel: str,
ts: str,
cursor: str | None = None,
inclusive: bool | None = None,
include_all_metadata: bool | None = None,
latest: str | None = None,
limit: int | None = None,
oldest: str | None = None,
**kwargs) ‑> SlackResponse
@@ -10781,7 +10863,7 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -10798,7 +10880,7 @@

Methods

return self.api_call("conversations.replies", http_verb="GET", params=kwargs)

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

+https://docs.slack.dev/reference/methods/conversations.replies

def conversations_requestSharedInvite_approve(self,
*,
invite_id: str,
channel_id: str | None = None,
is_external_limited: str | None = None,
message: Dict[str, Any] | None = None,
**kwargs) ‑> SlackResponse
@@ -10818,7 +10900,7 @@

Methods

**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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -10832,7 +10914,7 @@

Methods

return self.api_call("conversations.requestSharedInvite.approve", params=kwargs)

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

+https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve

def conversations_requestSharedInvite_deny(self, *, invite_id: str, message: str | None = None, **kwargs) ‑> SlackResponse @@ -10850,13 +10932,13 @@

Methods

**kwargs, ) -> SlackResponse: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return self.api_call("conversations.requestSharedInvite.deny", params=kwargs)

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

+https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny

def conversations_requestSharedInvite_list(self,
*,
cursor: str | None = None,
include_approved: bool | None = None,
include_denied: bool | None = None,
include_expired: bool | None = None,
invite_ids: str | Sequence[str] | None = None,
limit: int | None = None,
user_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -10879,7 +10961,7 @@

Methods

**kwargs, ) -> SlackResponse: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -10899,7 +10981,7 @@

Methods

return self.api_call("conversations.requestSharedInvite.list", params=kwargs)

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

+https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list

def conversations_setPurpose(self, *, channel: str, purpose: str, **kwargs) ‑> SlackResponse @@ -10917,13 +10999,13 @@

Methods

**kwargs, ) -> SlackResponse: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return self.api_call("conversations.setPurpose", params=kwargs)

Sets the purpose for a conversation. -https://api.slack.com/methods/conversations.setPurpose

+https://docs.slack.dev/reference/methods/conversations.setPurpose

def conversations_setTopic(self, *, channel: str, topic: str, **kwargs) ‑> SlackResponse @@ -10941,13 +11023,13 @@

Methods

**kwargs, ) -> SlackResponse: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return self.api_call("conversations.setTopic", params=kwargs)

Sets the topic for a conversation. -https://api.slack.com/methods/conversations.setTopic

+https://docs.slack.dev/reference/methods/conversations.setTopic

def conversations_unarchive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10964,13 +11046,13 @@

Methods

**kwargs, ) -> SlackResponse: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return self.api_call("conversations.unarchive", params=kwargs)
+https://docs.slack.dev/reference/methods/conversations.unarchive

def dialog_open(self, *, dialog: Dict[str, Any], trigger_id: str, **kwargs) ‑> SlackResponse @@ -10988,7 +11070,7 @@

Methods

**kwargs, ) -> SlackResponse: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -10996,7 +11078,7 @@

Methods

return self.api_call("dialog.open", json=kwargs)

Open a dialog with a user. -https://api.slack.com/methods/dialog.open

+https://docs.slack.dev/reference/methods/dialog.open

def dnd_endDnd(self, **kwargs) ‑> SlackResponse @@ -11011,12 +11093,12 @@

Methods

**kwargs, ) -> SlackResponse: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return self.api_call("dnd.endDnd", params=kwargs)

Ends the current user's Do Not Disturb session immediately. -https://api.slack.com/methods/dnd.endDnd

+https://docs.slack.dev/reference/methods/dnd.endDnd

def dnd_endSnooze(self, **kwargs) ‑> SlackResponse @@ -11031,12 +11113,12 @@

Methods

**kwargs, ) -> SlackResponse: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return self.api_call("dnd.endSnooze", params=kwargs)

Ends the current user's snooze mode immediately. -https://api.slack.com/methods/dnd.endSnooze

+https://docs.slack.dev/reference/methods/dnd.endSnooze

def dnd_info(self, *, team_id: str | None = None, user: str | None = None, **kwargs) ‑> SlackResponse @@ -11054,13 +11136,13 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("dnd.info", http_verb="GET", params=kwargs)

Retrieves a user's current Do Not Disturb status. -https://api.slack.com/methods/dnd.info

+https://docs.slack.dev/reference/methods/dnd.info

def dnd_setSnooze(self, *, num_minutes: str | int, **kwargs) ‑> SlackResponse @@ -11077,13 +11159,13 @@

Methods

**kwargs, ) -> SlackResponse: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs)

Turns on Do Not Disturb mode for the current user, or changes its duration. -https://api.slack.com/methods/dnd.setSnooze

+https://docs.slack.dev/reference/methods/dnd.setSnooze

def dnd_teamInfo(self, users: str | Sequence[str], team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -11100,7 +11182,7 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -11110,7 +11192,7 @@

Methods

return self.api_call("dnd.teamInfo", http_verb="GET", params=kwargs)

Retrieves the Do Not Disturb status for users on a team. -https://api.slack.com/methods/dnd.teamInfo

+https://docs.slack.dev/reference/methods/dnd.teamInfo

def emoji_list(self, include_categories: bool | None = None, **kwargs) ‑> SlackResponse @@ -11126,13 +11208,13 @@

Methods

**kwargs, ) -> SlackResponse: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return self.api_call("emoji.list", http_verb="GET", params=kwargs)

Lists custom emoji for a team. -https://api.slack.com/methods/emoji.list

+https://docs.slack.dev/reference/methods/emoji.list

def files_comments_delete(self, *, file: str, id: str, **kwargs) ‑> SlackResponse @@ -11150,13 +11232,13 @@

Methods

**kwargs, ) -> SlackResponse: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return self.api_call("files.comments.delete", params=kwargs)

Deletes an existing comment on a file. -https://api.slack.com/methods/files.comments.delete

+https://docs.slack.dev/reference/methods/files.comments.delete

def files_completeUploadExternal(self,
*,
files: List[Dict[str, str]],
channel_id: str | None = None,
channels: List[str] | None = None,
initial_comment: str | None = None,
thread_ts: str | None = None,
**kwargs) ‑> SlackResponse
@@ -11177,7 +11259,7 @@

Methods

**kwargs, ) -> SlackResponse: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -11193,7 +11275,7 @@

Methods

return self.api_call("files.completeUploadExternal", params=kwargs)

Finishes an upload started with files.getUploadURLExternal. -https://api.slack.com/methods/files.completeUploadExternal

+https://docs.slack.dev/reference/methods/files.completeUploadExternal

def files_delete(self, *, file: str, **kwargs) ‑> SlackResponse @@ -11210,13 +11292,13 @@

Methods

**kwargs, ) -> SlackResponse: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return self.api_call("files.delete", params=kwargs)
+https://docs.slack.dev/reference/methods/files.delete

def files_getUploadURLExternal(self,
*,
filename: str,
length: int,
alt_txt: str | None = None,
snippet_type: str | None = None,
**kwargs) ‑> SlackResponse
@@ -11236,7 +11318,7 @@

Methods

**kwargs, ) -> SlackResponse: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -11249,7 +11331,7 @@

Methods

return self.api_call("files.getUploadURLExternal", params=kwargs)

Gets a URL for an edge external upload. -https://api.slack.com/methods/files.getUploadURLExternal

+https://docs.slack.dev/reference/methods/files.getUploadURLExternal

def files_info(self,
*,
file: str,
count: int | None = None,
cursor: str | None = None,
limit: int | None = None,
page: int | None = None,
**kwargs) ‑> SlackResponse
@@ -11270,7 +11352,7 @@

Methods

**kwargs, ) -> SlackResponse: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -11284,7 +11366,7 @@

Methods

return self.api_call("files.info", http_verb="GET", params=kwargs)

Gets information about a team file. -https://api.slack.com/methods/files.info

+https://docs.slack.dev/reference/methods/files.info

def files_list(self,
*,
channel: str | None = None,
count: int | None = None,
page: int | None = None,
show_files_hidden_by_limit: bool | None = None,
team_id: str | None = None,
ts_from: str | None = None,
ts_to: str | None = None,
types: str | Sequence[str] | None = None,
user: str | None = None,
**kwargs) ‑> SlackResponse
@@ -11309,7 +11391,7 @@

Methods

**kwargs, ) -> SlackResponse: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -11330,7 +11412,7 @@

Methods

return self.api_call("files.list", http_verb="GET", params=kwargs)

Lists & filters team files. -https://api.slack.com/methods/files.list

+https://docs.slack.dev/reference/methods/files.list

def files_remote_add(self,
*,
external_id: str,
external_url: str,
title: str,
filetype: str | None = None,
indexable_file_contents: str | bytes | io.IOBase | None = None,
preview_image: str | bytes | io.IOBase | None = None,
**kwargs) ‑> SlackResponse
@@ -11352,7 +11434,7 @@

Methods

**kwargs, ) -> SlackResponse: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -11379,7 +11461,7 @@

Methods

)

Adds a file from a remote service. -https://api.slack.com/methods/files.remote.add

+https://docs.slack.dev/reference/methods/files.remote.add

def files_remote_info(self, *, external_id: str | None = None, file: str | None = None, **kwargs) ‑> SlackResponse @@ -11397,13 +11479,13 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.info", http_verb="GET", params=kwargs)

Retrieve information about a remote file added to Slack. -https://api.slack.com/methods/files.remote.info

+https://docs.slack.dev/reference/methods/files.remote.info

def files_remote_list(self,
*,
channel: str | None = None,
cursor: str | None = None,
limit: int | None = None,
ts_from: str | None = None,
ts_to: str | None = None,
**kwargs) ‑> SlackResponse
@@ -11424,7 +11506,7 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -11438,7 +11520,7 @@

Methods

return self.api_call("files.remote.list", http_verb="GET", params=kwargs)

Retrieve information about a remote file added to Slack. -https://api.slack.com/methods/files.remote.list

+https://docs.slack.dev/reference/methods/files.remote.list

def files_remote_remove(self, *, external_id: str | None = None, file: str | None = None, **kwargs) ‑> SlackResponse @@ -11456,13 +11538,13 @@

Methods

**kwargs, ) -> SlackResponse: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.remove", http_verb="POST", params=kwargs)
+https://docs.slack.dev/reference/methods/files.remote.remove

def files_remote_share(self,
*,
channels: str | Sequence[str],
external_id: str | None = None,
file: str | None = None,
**kwargs) ‑> SlackResponse
@@ -11481,7 +11563,7 @@

Methods

**kwargs, ) -> SlackResponse: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -11493,7 +11575,7 @@

Methods

return self.api_call("files.remote.share", http_verb="GET", params=kwargs)

Share a remote file into a channel. -https://api.slack.com/methods/files.remote.share

+https://docs.slack.dev/reference/methods/files.remote.share

def files_remote_update(self,
*,
external_id: str | None = None,
external_url: str | None = None,
file: str | None = None,
title: str | None = None,
filetype: str | None = None,
indexable_file_contents: str | None = None,
preview_image: str | None = None,
**kwargs) ‑> SlackResponse
@@ -11516,7 +11598,7 @@

Methods

**kwargs, ) -> SlackResponse: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -11544,7 +11626,7 @@

Methods

)

Updates an existing remote file. -https://api.slack.com/methods/files.remote.update

+https://docs.slack.dev/reference/methods/files.remote.update

def files_revokePublicURL(self, *, file: str, **kwargs) ‑> SlackResponse @@ -11561,13 +11643,13 @@

Methods

**kwargs, ) -> SlackResponse: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return self.api_call("files.revokePublicURL", params=kwargs)

Revokes public/external sharing access for a file -https://api.slack.com/methods/files.revokePublicURL

+https://docs.slack.dev/reference/methods/files.revokePublicURL

def files_sharedPublicURL(self, *, file: str, **kwargs) ‑> SlackResponse @@ -11584,13 +11666,13 @@

Methods

**kwargs, ) -> SlackResponse: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return self.api_call("files.sharedPublicURL", params=kwargs)

Enables a file for public/external sharing. -https://api.slack.com/methods/files.sharedPublicURL

+https://docs.slack.dev/reference/methods/files.sharedPublicURL

def files_upload(self,
*,
file: str | bytes | io.IOBase | None = None,
content: str | bytes | None = None,
filename: str | None = None,
filetype: str | None = None,
initial_comment: str | None = None,
thread_ts: str | None = None,
title: str | None = None,
channels: str | Sequence[str] | None = None,
**kwargs) ‑> SlackResponse
@@ -11614,7 +11696,7 @@

Methods

**kwargs, ) -> SlackResponse: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -11647,7 +11729,7 @@

Methods

return self.api_call("files.upload", data=kwargs)

Uploads or creates a file. -https://api.slack.com/methods/files.upload

+https://docs.slack.dev/reference/methods/files.upload

def files_upload_v2(self,
*,
filename: str | None = None,
file: str | bytes | io.IOBase | os.PathLike | None = None,
content: str | bytes | None = None,
title: str | None = None,
alt_txt: str | None = None,
snippet_type: str | None = None,
file_uploads: List[Dict[str, Any]] | None = None,
channel: str | None = None,
channels: List[str] | None = None,
initial_comment: str | None = None,
thread_ts: str | None = None,
request_file_info: bool = True,
**kwargs) ‑> SlackResponse
@@ -11678,12 +11760,12 @@

Methods

) -> SlackResponse: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -11762,14 +11844,14 @@

Methods

This wrapper method provides an easy way to upload files using the following endpoints:

@@ -11789,13 +11871,13 @@

Methods

**kwargs, ) -> SlackResponse: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return self.api_call("functions.completeError", params=kwargs)

Signal the failure to execute a function -https://api.slack.com/methods/functions.completeError

+https://docs.slack.dev/reference/methods/functions.completeError

def functions_completeSuccess(self, *, function_execution_id: str, outputs: Dict[str, Any], **kwargs) ‑> SlackResponse @@ -11813,13 +11895,13 @@

Methods

**kwargs, ) -> SlackResponse: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return self.api_call("functions.completeSuccess", params=kwargs)

Signal the successful completion of a function -https://api.slack.com/methods/functions.completeSuccess

+https://docs.slack.dev/reference/methods/functions.completeSuccess

def groups_archive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -12295,7 +12377,7 @@

Methods

**kwargs, ) -> SlackResponse: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -12305,7 +12387,7 @@

Methods

return self.api_call("migration.exchange", http_verb="GET", params=kwargs)

For Enterprise Grid workspaces, map local user IDs to global user IDs -https://api.slack.com/methods/migration.exchange

+https://docs.slack.dev/reference/methods/migration.exchange

def mpim_close(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -12452,7 +12534,7 @@

Methods

**kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12464,7 +12546,7 @@

Methods

)

Exchanges a temporary OAuth verifier code for an access token. -https://api.slack.com/methods/oauth.access

+https://docs.slack.dev/reference/methods/oauth.access

def oauth_v2_access(self,
*,
client_id: str,
client_secret: str,
code: str | None = None,
redirect_uri: str | None = None,
grant_type: str | None = None,
refresh_token: str | None = None,
**kwargs) ‑> SlackResponse
@@ -12490,7 +12572,7 @@

Methods

**kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12507,7 +12589,7 @@

Methods

)

Exchanges a temporary OAuth verifier code for an access token. -https://api.slack.com/methods/oauth.v2.access

+https://docs.slack.dev/reference/methods/oauth.v2.access

def oauth_v2_exchange(self, *, token: str, client_id: str, client_secret: str, **kwargs) ‑> SlackResponse @@ -12526,13 +12608,13 @@

Methods

**kwargs, ) -> SlackResponse: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return self.api_call("oauth.v2.exchange", params=kwargs)

Exchanges a legacy access token for a new expiring access token and refresh token -https://api.slack.com/methods/oauth.v2.exchange

+https://docs.slack.dev/reference/methods/oauth.v2.exchange

def openid_connect_token(self,
client_id: str,
client_secret: str,
code: str | None = None,
redirect_uri: str | None = None,
grant_type: str | None = None,
refresh_token: str | None = None,
**kwargs) ‑> SlackResponse
@@ -12553,7 +12635,7 @@

Methods

**kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12570,7 +12652,7 @@

Methods

)

Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. -https://api.slack.com/methods/openid.connect.token

+https://docs.slack.dev/reference/methods/openid.connect.token

def openid_connect_userInfo(self, **kwargs) ‑> SlackResponse @@ -12585,12 +12667,12 @@

Methods

**kwargs, ) -> SlackResponse: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return self.api_call("openid.connect.userInfo", params=kwargs)

Get the identity of a user who has authorized Sign in with Slack. -https://api.slack.com/methods/openid.connect.userInfo

+https://docs.slack.dev/reference/methods/openid.connect.userInfo

def pins_add(self, *, channel: str, timestamp: str | None = None, **kwargs) ‑> SlackResponse @@ -12608,13 +12690,13 @@

Methods

**kwargs, ) -> SlackResponse: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.add", params=kwargs)

Pins an item to a channel. -https://api.slack.com/methods/pins.add

+https://docs.slack.dev/reference/methods/pins.add

def pins_list(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -12631,13 +12713,13 @@

Methods

**kwargs, ) -> SlackResponse: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return self.api_call("pins.list", http_verb="GET", params=kwargs)

Lists items pinned to a channel. -https://api.slack.com/methods/pins.list

+https://docs.slack.dev/reference/methods/pins.list

def pins_remove(self, *, channel: str, timestamp: str | None = None, **kwargs) ‑> SlackResponse @@ -12655,13 +12737,13 @@

Methods

**kwargs, ) -> SlackResponse: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.remove", params=kwargs)

Un-pins an item from a channel. -https://api.slack.com/methods/pins.remove

+https://docs.slack.dev/reference/methods/pins.remove

def reactions_add(self, *, channel: str, name: str, timestamp: str, **kwargs) ‑> SlackResponse @@ -12680,13 +12762,13 @@

Methods

**kwargs, ) -> SlackResponse: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return self.api_call("reactions.add", params=kwargs)

Adds a reaction to an item. -https://api.slack.com/methods/reactions.add

+https://docs.slack.dev/reference/methods/reactions.add

def reactions_get(self,
*,
channel: str | None = None,
file: str | None = None,
file_comment: str | None = None,
full: bool | None = None,
timestamp: str | None = None,
**kwargs) ‑> SlackResponse
@@ -12707,7 +12789,7 @@

Methods

**kwargs, ) -> SlackResponse: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -12721,7 +12803,7 @@

Methods

return self.api_call("reactions.get", http_verb="GET", params=kwargs)

Gets reactions for an item. -https://api.slack.com/methods/reactions.get

+https://docs.slack.dev/reference/methods/reactions.get

def reactions_list(self,
*,
count: int | None = None,
cursor: str | None = None,
full: bool | None = None,
limit: int | None = None,
page: int | None = None,
team_id: str | None = None,
user: str | None = None,
**kwargs) ‑> SlackResponse
@@ -12744,7 +12826,7 @@

Methods

**kwargs, ) -> SlackResponse: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -12760,7 +12842,7 @@

Methods

return self.api_call("reactions.list", http_verb="GET", params=kwargs)

Lists reactions made by a user. -https://api.slack.com/methods/reactions.list

+https://docs.slack.dev/reference/methods/reactions.list

def reactions_remove(self,
*,
name: str,
channel: str | None = None,
file: str | None = None,
file_comment: str | None = None,
timestamp: str | None = None,
**kwargs) ‑> SlackResponse
@@ -12781,7 +12863,7 @@

Methods

**kwargs, ) -> SlackResponse: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -12795,7 +12877,7 @@

Methods

return self.api_call("reactions.remove", params=kwargs)

Removes a reaction from an item. -https://api.slack.com/methods/reactions.remove

+https://docs.slack.dev/reference/methods/reactions.remove

def reminders_add(self,
*,
text: str,
time: str,
team_id: str | None = None,
user: str | None = None,
recurrence: str | None = None,
**kwargs) ‑> SlackResponse
@@ -12816,7 +12898,7 @@

Methods

**kwargs, ) -> SlackResponse: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -12830,7 +12912,7 @@

Methods

return self.api_call("reminders.add", params=kwargs)
+https://docs.slack.dev/reference/methods/reminders.add

def reminders_complete(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -12848,13 +12930,13 @@

Methods

**kwargs, ) -> SlackResponse: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.complete", params=kwargs)
+https://docs.slack.dev/reference/methods/reminders.complete

def reminders_delete(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -12872,13 +12954,13 @@

Methods

**kwargs, ) -> SlackResponse: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.delete", params=kwargs)
+https://docs.slack.dev/reference/methods/reminders.delete

def reminders_info(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -12896,13 +12978,13 @@

Methods

**kwargs, ) -> SlackResponse: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.info", http_verb="GET", params=kwargs)

Gets information about a reminder. -https://api.slack.com/methods/reminders.info

+https://docs.slack.dev/reference/methods/reminders.info

def reminders_list(self, *, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -12919,13 +13001,13 @@

Methods

**kwargs, ) -> SlackResponse: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return self.api_call("reminders.list", http_verb="GET", params=kwargs)

Lists all reminders created by or for a given user. -https://api.slack.com/methods/reminders.list

+https://docs.slack.dev/reference/methods/reminders.list

def rtm_connect(self,
*,
batch_presence_aware: bool | None = None,
presence_sub: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -12943,13 +13025,13 @@

Methods

**kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return self.api_call("rtm.connect", http_verb="GET", params=kwargs)

Starts a Real Time Messaging session. -https://api.slack.com/methods/rtm.connect

+https://docs.slack.dev/reference/methods/rtm.connect

def rtm_start(self,
*,
batch_presence_aware: bool | None = None,
include_locale: bool | None = None,
mpim_aware: bool | None = None,
no_latest: bool | None = None,
no_unreads: bool | None = None,
presence_sub: bool | None = None,
simple_latest: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -12972,7 +13054,7 @@

Methods

**kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -12988,7 +13070,7 @@

Methods

return self.api_call("rtm.start", http_verb="GET", params=kwargs)

Starts a Real Time Messaging session. -https://api.slack.com/methods/rtm.start

+https://docs.slack.dev/reference/methods/rtm.start

def search_all(self,
*,
query: str,
count: int | None = None,
highlight: bool | None = None,
page: int | None = None,
sort: str | None = None,
sort_dir: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13011,7 +13093,7 @@

Methods

**kwargs, ) -> SlackResponse: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -13027,7 +13109,7 @@

Methods

return self.api_call("search.all", http_verb="GET", params=kwargs)

Searches for messages and files matching a query. -https://api.slack.com/methods/search.all

+https://docs.slack.dev/reference/methods/search.all

def search_files(self,
*,
query: str,
count: int | None = None,
highlight: bool | None = None,
page: int | None = None,
sort: str | None = None,
sort_dir: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13050,7 +13132,7 @@

Methods

**kwargs, ) -> SlackResponse: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -13066,7 +13148,7 @@

Methods

return self.api_call("search.files", http_verb="GET", params=kwargs)

Searches for files matching a query. -https://api.slack.com/methods/search.files

+https://docs.slack.dev/reference/methods/search.files

def search_messages(self,
*,
query: str,
count: int | None = None,
cursor: str | None = None,
highlight: bool | None = None,
page: int | None = None,
sort: str | None = None,
sort_dir: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13090,7 +13172,7 @@

Methods

**kwargs, ) -> SlackResponse: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -13107,7 +13189,7 @@

Methods

return self.api_call("search.messages", http_verb="GET", params=kwargs)

Searches for messages matching a query. -https://api.slack.com/methods/search.messages

+https://docs.slack.dev/reference/methods/search.messages

def stars_add(self,
*,
channel: str | None = None,
file: str | None = None,
file_comment: str | None = None,
timestamp: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13127,7 +13209,7 @@

Methods

**kwargs, ) -> SlackResponse: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -13140,7 +13222,7 @@

Methods

return self.api_call("stars.add", params=kwargs)
+https://docs.slack.dev/reference/methods/stars.add

def stars_list(self,
*,
count: int | None = None,
cursor: str | None = None,
limit: int | None = None,
page: int | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13161,7 +13243,7 @@

Methods

**kwargs, ) -> SlackResponse: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -13175,7 +13257,7 @@

Methods

return self.api_call("stars.list", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/stars.list

def stars_remove(self,
*,
channel: str | None = None,
file: str | None = None,
file_comment: str | None = None,
timestamp: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13195,7 +13277,7 @@

Methods

**kwargs, ) -> SlackResponse: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -13208,7 +13290,7 @@

Methods

return self.api_call("stars.remove", params=kwargs)

Removes a star from an item. -https://api.slack.com/methods/stars.remove

+https://docs.slack.dev/reference/methods/stars.remove

def team_accessLogs(self,
*,
before: str | int | None = None,
count: str | int | None = None,
page: str | int | None = None,
team_id: str | None = None,
cursor: str | None = None,
limit: int | None = None,
**kwargs) ‑> SlackResponse
@@ -13230,7 +13312,7 @@

Methods

**kwargs, ) -> SlackResponse: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -13245,7 +13327,7 @@

Methods

return self.api_call("team.accessLogs", http_verb="GET", params=kwargs)

Gets the access logs for the current team. -https://api.slack.com/methods/team.accessLogs

+https://docs.slack.dev/reference/methods/team.accessLogs

def team_billableInfo(self, *, team_id: str | None = None, user: str | None = None, **kwargs) ‑> SlackResponse @@ -13263,13 +13345,13 @@

Methods

**kwargs, ) -> SlackResponse: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("team.billableInfo", http_verb="GET", params=kwargs)

Gets billable users information for the current team. -https://api.slack.com/methods/team.billableInfo

+https://docs.slack.dev/reference/methods/team.billableInfo

def team_billing_info(self, **kwargs) ‑> SlackResponse @@ -13284,12 +13366,12 @@

Methods

**kwargs, ) -> SlackResponse: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return self.api_call("team.billing.info", params=kwargs)

Reads a workspace's billing plan information. -https://api.slack.com/methods/team.billing.info

+https://docs.slack.dev/reference/methods/team.billing.info

def team_externalTeams_disconnect(self, *, target_team: str, **kwargs) ‑> SlackResponse @@ -13306,7 +13388,7 @@

Methods

**kwargs, ) -> SlackResponse: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -13316,7 +13398,7 @@

Methods

return self.api_call("team.externalTeams.disconnect", params=kwargs)
+https://docs.slack.dev/reference/methods/team.externalTeams.disconnect

def team_externalTeams_list(self,
*,
connection_status_filter: str | None = None,
slack_connect_pref_filter: Sequence[str] | None = None,
sort_direction: str | None = None,
sort_field: str | None = None,
workspace_filter: Sequence[str] | None = None,
cursor: str | None = None,
limit: int | None = None,
**kwargs) ‑> SlackResponse
@@ -13339,7 +13421,7 @@

Methods

**kwargs, ) -> SlackResponse: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -13363,7 +13445,7 @@

Methods

return self.api_call("team.externalTeams.list", http_verb="GET", params=kwargs)

Returns a list of all the external teams connected and details about the connection. -https://api.slack.com/methods/team.externalTeams.list

+https://docs.slack.dev/reference/methods/team.externalTeams.list

def team_info(self, *, team: str | None = None, domain: str | None = None, **kwargs) ‑> SlackResponse @@ -13381,13 +13463,13 @@

Methods

**kwargs, ) -> SlackResponse: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return self.api_call("team.info", http_verb="GET", params=kwargs)

Gets information about the current team. -https://api.slack.com/methods/team.info

+https://docs.slack.dev/reference/methods/team.info

def team_integrationLogs(self,
*,
app_id: str | None = None,
change_type: str | None = None,
count: str | int | None = None,
page: str | int | None = None,
service_id: str | None = None,
team_id: str | None = None,
user: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13410,7 +13492,7 @@

Methods

**kwargs, ) -> SlackResponse: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -13426,7 +13508,7 @@

Methods

return self.api_call("team.integrationLogs", http_verb="GET", params=kwargs)

Gets the integration logs for the current team. -https://api.slack.com/methods/team.integrationLogs

+https://docs.slack.dev/reference/methods/team.integrationLogs

def team_preferences_list(self, **kwargs) ‑> SlackResponse @@ -13441,12 +13523,12 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return self.api_call("team.preferences.list", params=kwargs)

Retrieve a list of a workspace's team preferences. -https://api.slack.com/methods/team.preferences.list

+https://docs.slack.dev/reference/methods/team.preferences.list

def team_profile_get(self, *, visibility: str | None = None, **kwargs) ‑> SlackResponse @@ -13463,13 +13545,13 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return self.api_call("team.profile.get", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/team.profile.get

def tooling_tokens_rotate(self, *, refresh_token: str, **kwargs) ‑> SlackResponse @@ -13486,13 +13568,13 @@

Methods

**kwargs, ) -> SlackResponse: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return self.api_call("tooling.tokens.rotate", params=kwargs)

Exchanges a refresh token for a new app configuration token -https://api.slack.com/methods/tooling.tokens.rotate

+https://docs.slack.dev/reference/methods/tooling.tokens.rotate

def usergroups_create(self,
*,
name: str,
channels: str | Sequence[str] | None = None,
description: str | None = None,
handle: str | None = None,
include_count: bool | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13514,7 +13596,7 @@

Methods

**kwargs, ) -> SlackResponse: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -13532,7 +13614,7 @@

Methods

return self.api_call("usergroups.create", params=kwargs)
+https://docs.slack.dev/reference/methods/usergroups.create

def usergroups_disable(self,
*,
usergroup: str,
include_count: bool | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13551,13 +13633,13 @@

Methods

**kwargs, ) -> SlackResponse: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.disable", params=kwargs)

Disable an existing User Group -https://api.slack.com/methods/usergroups.disable

+https://docs.slack.dev/reference/methods/usergroups.disable

def usergroups_enable(self,
*,
usergroup: str,
include_count: bool | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13576,13 +13658,13 @@

Methods

**kwargs, ) -> SlackResponse: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.enable", params=kwargs)
+https://docs.slack.dev/reference/methods/usergroups.enable

def usergroups_list(self,
*,
include_count: bool | None = None,
include_disabled: bool | None = None,
include_users: bool | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13602,7 +13684,7 @@

Methods

**kwargs, ) -> SlackResponse: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -13615,7 +13697,7 @@

Methods

return self.api_call("usergroups.list", http_verb="GET", params=kwargs)

List all User Groups for a team -https://api.slack.com/methods/usergroups.list

+https://docs.slack.dev/reference/methods/usergroups.list

def usergroups_update(self,
*,
usergroup: str,
channels: str | Sequence[str] | None = None,
description: str | None = None,
handle: str | None = None,
include_count: bool | None = None,
name: str | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13638,7 +13720,7 @@

Methods

**kwargs, ) -> SlackResponse: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -13657,7 +13739,7 @@

Methods

return self.api_call("usergroups.update", params=kwargs)
+https://docs.slack.dev/reference/methods/usergroups.update

def usergroups_users_list(self,
*,
usergroup: str,
include_disabled: bool | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13676,7 +13758,7 @@

Methods

**kwargs, ) -> SlackResponse: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -13688,7 +13770,7 @@

Methods

return self.api_call("usergroups.users.list", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/usergroups.users.list

def usergroups_users_update(self,
*,
usergroup: str,
users: str | Sequence[str],
include_count: bool | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13708,7 +13790,7 @@

Methods

**kwargs, ) -> SlackResponse: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -13724,7 +13806,7 @@

Methods

return self.api_call("usergroups.users.update", params=kwargs)

Update the list of users for a User Group -https://api.slack.com/methods/usergroups.users.update

+https://docs.slack.dev/reference/methods/usergroups.users.update

def users_conversations(self,
*,
cursor: str | None = None,
exclude_archived: bool | None = None,
limit: int | None = None,
team_id: str | None = None,
types: str | Sequence[str] | None = None,
user: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13746,7 +13828,7 @@

Methods

**kwargs, ) -> SlackResponse: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -13764,7 +13846,7 @@

Methods

return self.api_call("users.conversations", http_verb="GET", params=kwargs)

List conversations the calling user may access. -https://api.slack.com/methods/users.conversations

+https://docs.slack.dev/reference/methods/users.conversations

def users_deletePhoto(self, **kwargs) ‑> SlackResponse @@ -13779,12 +13861,12 @@

Methods

**kwargs, ) -> SlackResponse: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return self.api_call("users.deletePhoto", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/users.deletePhoto

def users_discoverableContacts_lookup(self, email: str, **kwargs) ‑> SlackResponse @@ -13800,13 +13882,13 @@

Methods

**kwargs, ) -> SlackResponse: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return self.api_call("users.discoverableContacts.lookup", params=kwargs)

Lookup an email address to see if someone is on Slack -https://api.slack.com/methods/users.discoverableContacts.lookup

+https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup

def users_getPresence(self, *, user: str, **kwargs) ‑> SlackResponse @@ -13823,13 +13905,13 @@

Methods

**kwargs, ) -> SlackResponse: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return self.api_call("users.getPresence", http_verb="GET", params=kwargs)

Gets user presence information. -https://api.slack.com/methods/users.getPresence

+https://docs.slack.dev/reference/methods/users.getPresence

def users_identity(self, **kwargs) ‑> SlackResponse @@ -13844,12 +13926,12 @@

Methods

**kwargs, ) -> SlackResponse: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return self.api_call("users.identity", http_verb="GET", params=kwargs)
+https://docs.slack.dev/reference/methods/users.identity

def users_info(self, *, user: str, include_locale: bool | None = None, **kwargs) ‑> SlackResponse @@ -13867,13 +13949,13 @@

Methods

**kwargs, ) -> SlackResponse: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return self.api_call("users.info", http_verb="GET", params=kwargs)

Gets information about a user. -https://api.slack.com/methods/users.info

+https://docs.slack.dev/reference/methods/users.info

def users_list(self,
*,
cursor: str | None = None,
include_locale: bool | None = None,
limit: int | None = None,
team_id: str | None = None,
**kwargs) ‑> SlackResponse
@@ -13893,7 +13975,7 @@

Methods

**kwargs, ) -> SlackResponse: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -13906,7 +13988,7 @@

Methods

return self.api_call("users.list", http_verb="GET", params=kwargs)

Lists all users in a Slack team. -https://api.slack.com/methods/users.list

+https://docs.slack.dev/reference/methods/users.list

def users_lookupByEmail(self, *, email: str, **kwargs) ‑> SlackResponse @@ -13923,13 +14005,13 @@

Methods

**kwargs, ) -> SlackResponse: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs)

Find a user with an email address. -https://api.slack.com/methods/users.lookupByEmail

+https://docs.slack.dev/reference/methods/users.lookupByEmail

def users_profile_get(self, *, user: str | None = None, include_labels: bool | None = None, **kwargs) ‑> SlackResponse @@ -13947,13 +14029,13 @@

Methods

**kwargs, ) -> SlackResponse: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return self.api_call("users.profile.get", http_verb="GET", params=kwargs)

Retrieves a user's profile information. -https://api.slack.com/methods/users.profile.get

+https://docs.slack.dev/reference/methods/users.profile.get

def users_profile_set(self,
*,
name: str | None = None,
value: str | None = None,
user: str | None = None,
profile: Dict | None = None,
**kwargs) ‑> SlackResponse
@@ -13973,7 +14055,7 @@

Methods

**kwargs, ) -> SlackResponse: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -13988,7 +14070,7 @@

Methods

return self.api_call("users.profile.set", json=kwargs)

Set the profile information for a user. -https://api.slack.com/methods/users.profile.set

+https://docs.slack.dev/reference/methods/users.profile.set

def users_setPhoto(self,
*,
image: str | io.IOBase,
crop_w: str | int | None = None,
crop_x: str | int | None = None,
crop_y: str | int | None = None,
**kwargs) ‑> SlackResponse
@@ -14008,13 +14090,13 @@

Methods

**kwargs, ) -> SlackResponse: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return self.api_call("users.setPhoto", files={"image": image}, data=kwargs)
+https://docs.slack.dev/reference/methods/users.setPhoto

def users_setPresence(self, *, presence: str, **kwargs) ‑> SlackResponse @@ -14031,13 +14113,13 @@

Methods

**kwargs, ) -> SlackResponse: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return self.api_call("users.setPresence", params=kwargs)
+https://docs.slack.dev/reference/methods/users.setPresence

def views_open(self,
*,
trigger_id: str | None = None,
interactivity_pointer: str | None = None,
view: dict | View,
**kwargs) ‑> SlackResponse
@@ -14056,8 +14138,8 @@

Methods

**kwargs, ) -> SlackResponse: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -14069,8 +14151,8 @@

Methods

return self.api_call("views.open", json=kwargs)
+https://docs.slack.dev/reference/methods/views.open +See https://docs.slack.dev/surfaces/modals/ for details.

def views_publish(self,
*,
user_id: str,
view: dict | View,
hash: str | None = None,
**kwargs) ‑> SlackResponse
@@ -14090,8 +14172,8 @@

Methods

) -> SlackResponse: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -14104,8 +14186,8 @@

Methods

Publish a static view for a User. Create or update the view that comprises an -app's Home tab (https://api.slack.com/surfaces/tabs) -https://api.slack.com/methods/views.publish

+app's Home tab (https://docs.slack.dev/surfaces/app-home/) +https://docs.slack.dev/reference/methods/views.publish

def views_push(self,
*,
trigger_id: str | None = None,
interactivity_pointer: str | None = None,
view: dict | View,
**kwargs) ‑> SlackResponse
@@ -14127,9 +14209,9 @@

Methods

Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -14144,9 +14226,9 @@

Methods

Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. -Read the modals documentation (https://api.slack.com/surfaces/modals) +Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. -https://api.slack.com/methods/views.push

+https://docs.slack.dev/reference/methods/views.push

def views_update(self,
*,
view: dict | View,
external_id: str | None = None,
view_id: str | None = None,
hash: str | None = None,
**kwargs) ‑> SlackResponse
@@ -14168,9 +14250,9 @@

Methods

"""Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -14190,9 +14272,119 @@

Methods

Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. -See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) +See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. -https://api.slack.com/methods/views.update

+https://docs.slack.dev/reference/methods/views.update

+ +
+
+
+ +Expand source code + +
def workflows_featured_add(
+    self,
+    *,
+    channel_id: str,
+    trigger_ids: Union[str, Sequence[str]],
+    **kwargs,
+) -> SlackResponse:
+    """Add featured workflows to a channel.
+    https://docs.slack.dev/reference/methods/workflows.featured.add
+    """
+    kwargs.update({"channel_id": channel_id})
+    if isinstance(trigger_ids, (list, tuple)):
+        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
+    else:
+        kwargs.update({"trigger_ids": trigger_ids})
+    return self.api_call("workflows.featured.add", params=kwargs)
+
+ +
+ +
+
+ +Expand source code + +
def workflows_featured_list(
+    self,
+    *,
+    channel_ids: Union[str, Sequence[str]],
+    **kwargs,
+) -> SlackResponse:
+    """List the featured workflows for specified channels.
+    https://docs.slack.dev/reference/methods/workflows.featured.list
+    """
+    if isinstance(channel_ids, (list, tuple)):
+        kwargs.update({"channel_ids": ",".join(channel_ids)})
+    else:
+        kwargs.update({"channel_ids": channel_ids})
+    return self.api_call("workflows.featured.list", params=kwargs)
+
+

List the featured workflows for specified channels. +https://docs.slack.dev/reference/methods/workflows.featured.list

+
+ +
+
+ +Expand source code + +
def workflows_featured_remove(
+    self,
+    *,
+    channel_id: str,
+    trigger_ids: Union[str, Sequence[str]],
+    **kwargs,
+) -> SlackResponse:
+    """Remove featured workflows from a channel.
+    https://docs.slack.dev/reference/methods/workflows.featured.remove
+    """
+    kwargs.update({"channel_id": channel_id})
+    if isinstance(trigger_ids, (list, tuple)):
+        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
+    else:
+        kwargs.update({"trigger_ids": trigger_ids})
+    return self.api_call("workflows.featured.remove", params=kwargs)
+
+ +
+ +
+
+ +Expand source code + +
def workflows_featured_set(
+    self,
+    *,
+    channel_id: str,
+    trigger_ids: Union[str, Sequence[str]],
+    **kwargs,
+) -> SlackResponse:
+    """Set featured workflows for a channel.
+    https://docs.slack.dev/reference/methods/workflows.featured.set
+    """
+    kwargs.update({"channel_id": channel_id})
+    if isinstance(trigger_ids, (list, tuple)):
+        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
+    else:
+        kwargs.update({"trigger_ids": trigger_ids})
+    return self.api_call("workflows.featured.set", params=kwargs)
+
+
def workflows_stepCompleted(self, *, workflow_step_execute_id: str, outputs: dict | None = None, **kwargs) ‑> SlackResponse @@ -14210,7 +14402,7 @@

Methods

**kwargs, ) -> SlackResponse: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -14220,7 +14412,7 @@

Methods

return self.api_call("workflows.stepCompleted", json=kwargs)

Indicate a successful outcome of a workflow step's execution. -https://api.slack.com/methods/workflows.stepCompleted

+https://docs.slack.dev/reference/methods/workflows.stepCompleted

def workflows_stepFailed(self, *, workflow_step_execute_id: str, error: Dict[str, str], **kwargs) ‑> SlackResponse @@ -14238,7 +14430,7 @@

Methods

**kwargs, ) -> SlackResponse: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -14251,7 +14443,7 @@

Methods

return self.api_call("workflows.stepFailed", json=kwargs)

Indicate an unsuccessful outcome of a workflow step's execution. -https://api.slack.com/methods/workflows.stepFailed

+https://docs.slack.dev/reference/methods/workflows.stepFailed

def workflows_updateStep(self,
*,
workflow_step_edit_id: str,
inputs: Dict[str, Any] | None = None,
outputs: List[Dict[str, str]] | None = None,
**kwargs) ‑> SlackResponse
@@ -14270,7 +14462,7 @@

Methods

**kwargs, ) -> SlackResponse: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: @@ -14282,7 +14474,7 @@

Methods

return self.api_call("workflows.updateStep", json=kwargs)

Update the configuration for a workflow extension step. -https://api.slack.com/methods/workflows.updateStep

+https://docs.slack.dev/reference/methods/workflows.updateStep

Inherited members

@@ -14335,7 +14527,7 @@

Inherited members

): """API client for Incoming Webhooks and `response_url` - https://api.slack.com/messaging/webhooks + https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/ Args: url: Complete URL to send data (e.g., `https://hooks.slack.com/XXX`) @@ -14554,19 +14746,19 @@

Inherited members

http_resp = opener.open(req, timeout=self.timeout) else: http_resp = urlopen(req, context=self.ssl, timeout=self.timeout) - charset: str = http_resp.headers.get_content_charset() or "utf-8" # type: ignore[union-attr] - response_body: str = http_resp.read().decode(charset) # type: ignore[union-attr] + charset: str = http_resp.headers.get_content_charset() or "utf-8" + response_body: str = http_resp.read().decode(charset) resp = WebhookResponse( url=url, - status_code=http_resp.status, # type: ignore[union-attr] + status_code=http_resp.status, body=response_body, - headers=http_resp.headers, # type: ignore[arg-type, union-attr] + headers=http_resp.headers, # type: ignore[arg-type] ) _debug_log_response(self.logger, resp) return resp

Ancestors

  • Action
  • @@ -161,8 +161,8 @@

    Inherited members

    class Action(JsonObject):
         """Action in attachments
    -    https://api.slack.com/messaging/composing/layouts#attachments
    -    https://api.slack.com/legacy/interactive-message-field-guide#message_action_fields
    +    https://docs.slack.dev/messaging/formatting-message-text/#rich-layouts
    +    https://docs.slack.dev/legacy/legacy-messaging/legacy-interactive-message-field-guide/#message_action_fields
         """
     
         attributes = {"name", "text", "url"}
    @@ -190,8 +190,8 @@ 

    Inherited members

    return json
    +https://docs.slack.dev/messaging/formatting-message-text/#rich-layouts +https://docs.slack.dev/legacy/legacy-messaging/legacy-interactive-message-field-guide/#message_action_fields

    Ancestors

    Class variables

    -
    var attributes
    +
    var attributes : Set[str]

    The type of the None singleton.

    @@ -990,7 +990,7 @@

    Inherited members

    def __init__(self, *, text: str, emoji: Optional[bool] = None): """A plain text object, meaning markdown characters will not be parsed as formatting information. - https://api.slack.com/reference/block-kit/composition-objects#text + https://docs.slack.dev/reference/block-kit/composition-objects/text-object Args: text (required): The text for the block. This field accepts any of the standard text formatting markup @@ -1013,7 +1013,7 @@

    Inherited members

    plain_text typed text object

    A plain text object, meaning markdown characters will not be parsed as formatting information. -https://api.slack.com/reference/block-kit/composition-objects#text

    +https://docs.slack.dev/reference/block-kit/composition-objects/text-object

    Args

    text : required
    @@ -1114,7 +1114,7 @@

    Inherited members

    url: Optional[str] = None, ): """An object containing Slack file information to be used in an image block or image element. - https://api.slack.com/reference/block-kit/composition-objects#slack_file + https://docs.slack.dev/reference/block-kit/composition-objects/slack-file-object Args: id: Slack ID of the file. @@ -1134,7 +1134,7 @@

    Inherited members

    The base class for JSON serializable class objects

    An object containing Slack file information to be used in an image block or image element. -https://api.slack.com/reference/block-kit/composition-objects#slack_file

    +https://docs.slack.dev/reference/block-kit/composition-objects/slack-file-object

    Args

    id
    diff --git a/docs/reference/models/blocks/block_elements.html b/docs/reference/models/blocks/block_elements.html index 1bdb0fb82..0e14eb433 100644 --- a/docs/reference/models/blocks/block_elements.html +++ b/docs/reference/models/blocks/block_elements.html @@ -57,7 +57,7 @@

    Classes

    class BlockElement(JsonObject, metaclass=ABCMeta):
         """Block Elements are things that exists inside of your Blocks.
    -    https://api.slack.com/reference/block-kit/block-elements
    +    https://docs.slack.dev/reference/block-kit/block-elements/
         """
     
         attributes = {"type"}
    @@ -119,7 +119,7 @@ 

    Classes

    yield from subclass._get_sub_block_elements()

    Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

    +https://docs.slack.dev/reference/block-kit/block-elements/

    Ancestors

    var UserGroup

    Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

    +https://docs.slack.dev/reference/block-kit/block-elements/

    @@ -5366,7 +5476,7 @@

    Class variables

    self.dispatch_action_config = dispatch_action_config

    Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

    +https://docs.slack.dev/reference/block-kit/block-elements/

    InteractiveElement that is usable in input blocks

    We generally recommend using the concrete subclasses for better supports of available properties.

    Ancestors

    @@ -5453,7 +5563,7 @@

    Inherited members

    self.border = border

    Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

    +https://docs.slack.dev/reference/block-kit/block-elements/

    Ancestors

    • RichTextElement
    • @@ -5524,7 +5634,7 @@

      Inherited members

      self.border = border

      Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

      +https://docs.slack.dev/reference/block-kit/block-elements/

      Ancestors

      • RichTextElement
      • @@ -5593,7 +5703,7 @@

        Inherited members

        self.elements = BlockElement.parse_all(elements)

        Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

        +https://docs.slack.dev/reference/block-kit/block-elements/

        Ancestors

        • RichTextElement
        • @@ -5662,7 +5772,7 @@

          Inherited members

          self.elements = BlockElement.parse_all(elements)

          Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

          +https://docs.slack.dev/reference/block-kit/block-elements/

          Ancestors

          • RichTextElement
          • @@ -5733,7 +5843,7 @@

            Inherited members

            **others: dict, ): """A section is one of the most flexible blocks available. - https://api.slack.com/reference/block-kit/blocks#section + https://docs.slack.dev/reference/block-kit/blocks/section-block Args: block_id (required): A string acting as a unique identifier for a block. @@ -5792,9 +5902,9 @@

            Inherited members

            Blocks are a series of components that can be combined to create visually rich and compellingly interactive messages. -https://api.slack.com/reference/block-kit/blocks

            +https://docs.slack.dev/reference/block-kit/blocks

            A section is one of the most flexible blocks available. -https://api.slack.com/reference/block-kit/blocks#section

            +https://docs.slack.dev/reference/block-kit/blocks/section-block

            Args

            block_id : required
            @@ -5901,7 +6011,7 @@

            Inherited members

            **others: dict, ): """This is the simplest form of select menu, with a static list of options passed in when defining the element. - https://api.slack.com/reference/block-kit/block-elements#static_select + https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#static_select Args: action_id (required): An identifier for the action triggered when a menu option is selected. @@ -5953,9 +6063,9 @@

            Inherited members

            return self.options is not None or self.option_groups is not None

            Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

            +https://docs.slack.dev/reference/block-kit/block-elements/

            This is the simplest form of select menu, with a static list of options passed in when defining the element. -https://api.slack.com/reference/block-kit/block-elements#static_select

            +https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#static_select

            Args

            action_id : required
            @@ -6069,7 +6179,7 @@

            Inherited members

            ): """ This is the simplest form of select menu, with a static list of options passed in when defining the element. - https://api.slack.com/reference/block-kit/block-elements#static_multi_select + https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element#static_multi_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -6124,9 +6234,9 @@

            Inherited members

            return self.options is not None or self.option_groups is not None

            Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

            +https://docs.slack.dev/reference/block-kit/block-elements/

            This is the simplest form of select menu, with a static list of options passed in when defining the element. -https://api.slack.com/reference/block-kit/block-elements#static_multi_select

            +https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element#static_multi_select

            Args

            placeholder : required
            @@ -6241,7 +6351,7 @@

            Inherited members

            **others: dict, ): """This is the simplest form of select menu, with a static list of options passed in when defining the element. - https://api.slack.com/reference/block-kit/block-elements#static_select + https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#static_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -6293,9 +6403,9 @@

            Inherited members

            return self.options is not None or self.option_groups is not None

            Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

            +https://docs.slack.dev/reference/block-kit/block-elements/

            This is the simplest form of select menu, with a static list of options passed in when defining the element. -https://api.slack.com/reference/block-kit/block-elements#static_select

            +https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#static_select

            Args

            placeholder : required
            @@ -6533,7 +6643,7 @@

            Inherited members

            On desktop clients, this time picker will take the form of a dropdown list with free-text entry for precise choices. On mobile clients, the time picker will use native time picker UIs. - https://api.slack.com/reference/block-kit/block-elements#timepicker + https://docs.slack.dev/reference/block-kit/block-elements/time-picker-element Args: action_id (required): An identifier for the action triggered when a time is selected. @@ -6568,12 +6678,12 @@

            Inherited members

            return self.initial_time is None or re.match(r"([0-1][0-9]|2[0-3]):([0-5][0-9])", self.initial_time) is not None

            Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

            +https://docs.slack.dev/reference/block-kit/block-elements/

            An element which allows selection of a time of day. On desktop clients, this time picker will take the form of a dropdown list with free-text entry for precise choices. On mobile clients, the time picker will use native time picker UIs. -https://api.slack.com/reference/block-kit/block-elements#timepicker

            +https://docs.slack.dev/reference/block-kit/block-elements/time-picker-element

            Args

            action_id : required
            @@ -6675,7 +6785,7 @@

            Inherited members

            """ A URL input element, similar to the Plain-text input element, creates a single line field where a user can enter URL-encoded data. - https://api.slack.com/reference/block-kit/block-elements#url + https://docs.slack.dev/reference/block-kit/block-elements/url-input-element Args: action_id (required): An identifier for the input value when the parent modal is submitted. @@ -6702,10 +6812,10 @@

            Inherited members

            self.dispatch_action_config = dispatch_action_config

            Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

            +https://docs.slack.dev/reference/block-kit/block-elements/

            A URL input element, similar to the Plain-text input element, creates a single line field where a user can enter URL-encoded data. -https://api.slack.com/reference/block-kit/block-elements#url

            +https://docs.slack.dev/reference/block-kit/block-elements/url-input-element

            Args

            action_id : required
            @@ -6804,7 +6914,7 @@

            Inherited members

            """ This select menu will populate its options with a list of Slack users visible to the current user in the active workspace. - https://api.slack.com/reference/block-kit/block-elements#users_multi_select + https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element#users_multi_select Args: action_id (required): An identifier for the action triggered when a menu option is selected. @@ -6834,10 +6944,10 @@

            Inherited members

            self.max_selected_items = max_selected_items

            Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

            +https://docs.slack.dev/reference/block-kit/block-elements/

            This select menu will populate its options with a list of Slack users visible to the current user in the active workspace. -https://api.slack.com/reference/block-kit/block-elements#users_multi_select

            +https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element#users_multi_select

            Args

            action_id : required
            @@ -6933,7 +7043,7 @@

            Inherited members

            """ This select menu will populate its options with a list of Slack users visible to the current user in the active workspace. - https://api.slack.com/reference/block-kit/block-elements#users_select + https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#users_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -6960,10 +7070,10 @@

            Inherited members

            self.initial_user = initial_user

            Block Elements are things that exists inside of your Blocks. -https://api.slack.com/reference/block-kit/block-elements

            +https://docs.slack.dev/reference/block-kit/block-elements/

            This select menu will populate its options with a list of Slack users visible to the current user in the active workspace. -https://api.slack.com/reference/block-kit/block-elements#users_select

            +https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#users_select

            Args

            placeholder : required
            @@ -7076,7 +7186,7 @@

            Inherited members

            (e.g. link unfurls, messages, modals, App Home) — anywhere you can put blocks! To use the video block within your app, you must have the links.embed:write scope. - https://api.slack.com/reference/block-kit/blocks#video + https://docs.slack.dev/reference/block-kit/blocks/video-block Args: block_id: A string acting as a unique identifier for a block. If not specified, one will be generated. @@ -7134,12 +7244,12 @@

            Inherited members

            Blocks are a series of components that can be combined to create visually rich and compellingly interactive messages. -https://api.slack.com/reference/block-kit/blocks

            +https://docs.slack.dev/reference/block-kit/blocks

            A video block is designed to embed videos in all app surfaces (e.g. link unfurls, messages, modals, App Home) — anywhere you can put blocks! To use the video block within your app, you must have the links.embed:write scope. -https://api.slack.com/reference/block-kit/blocks#video

            +https://docs.slack.dev/reference/block-kit/blocks/video-block

            Args

            block_id
            @@ -7465,6 +7575,14 @@

            LinkButtonElement

          • +

            MarkdownBlock

            + +
          • +
          • MarkdownTextObject

            • attributes
            • diff --git a/docs/reference/models/dialoags.html b/docs/reference/models/dialoags.html index 2657bdbe8..cc2ff46a2 100644 --- a/docs/reference/models/dialoags.html +++ b/docs/reference/models/dialoags.html @@ -247,7 +247,7 @@

              Inherited members

              Expand source code
              class DialogBuilder(JsonObject):
              -    attributes = {}  # type: ignore[assignment] # no attributes because to_dict has unique implementation
              +    attributes: Set[str] = set()
               
                   _callback_id: Optional[str]
                   _elements: List[Union[DialogTextComponent, AbstractDialogSelector]]
              @@ -348,7 +348,7 @@ 

              Inherited members

              """ Text elements are single-line plain text fields. - https://api.slack.com/dialogs#attributes_text_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_text_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -403,7 +403,7 @@

              Inherited members

              character count to the max_length you have set or the default, 3000. - https://api.slack.com/dialogs#attributes_textarea_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_textarea_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -456,7 +456,7 @@

              Inherited members

              A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects - https://api.slack.com/dialogs#attributes_select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -499,7 +499,7 @@

              Inherited members

              A list of options can be loaded from an external URL and used in your dialog menus. - https://api.slack.com/dialogs#dynamic_select_elements_external + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external Args: name: Name of form element. Required. No more than 300 characters. @@ -542,7 +542,7 @@

              Inherited members

              assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope. - https://api.slack.com/dialogs#dynamic_select_elements_users + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users Args: name: Name of form element. Required. No more than 300 characters. @@ -577,7 +577,7 @@

              Inherited members

              You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -613,7 +613,7 @@

              Inherited members

              private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing. - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -687,7 +687,7 @@

              Ancestors

            Class variables

            -
            var attributes
            +
            var attributes : Set[str]

            The type of the None singleton.

            @@ -772,7 +772,7 @@

            Args

            You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -796,7 +796,7 @@

            Args

            You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels

            -

            https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations

            Args

            name
            @@ -835,7 +835,7 @@

            Args

            private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing. - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -860,7 +860,7 @@

            Args

            You can also provide a select menu with a list of conversations - including private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing.

            -

            https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations

            Args

            name
            @@ -917,7 +917,7 @@

            Args

            A list of options can be loaded from an external URL and used in your dialog menus. - https://api.slack.com/dialogs#dynamic_select_elements_external + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external Args: name: Name of form element. Required. No more than 300 characters. @@ -950,7 +950,7 @@

            Args

            a dropdown menu.

            A list of options can be loaded from an external URL and used in your dialog menus.

            -

            https://api.slack.com/dialogs#dynamic_select_elements_external

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external

            Args

            name
            @@ -1074,7 +1074,7 @@

            Args

            A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects - https://api.slack.com/dialogs#attributes_select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -1104,7 +1104,7 @@

            Args

            a dropdown menu.

            A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects

            -

            https://api.slack.com/dialogs#attributes_select_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements

            Args

            name
            @@ -1209,7 +1209,7 @@

            Args

            character count to the max_length you have set or the default, 3000. - https://api.slack.com/dialogs#attributes_textarea_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_textarea_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -1249,7 +1249,7 @@

            Args

            relatively long answer from users. The element UI provides a remaining character count to the max_length you have set or the default, 3000.

            -

            https://api.slack.com/dialogs#attributes_textarea_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#attributes_textarea_elements

            Args

            name
            @@ -1303,7 +1303,7 @@

            Args

            """ Text elements are single-line plain text fields. - https://api.slack.com/dialogs#attributes_text_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_text_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -1339,7 +1339,7 @@

            Args

            return self

            Text elements are single-line plain text fields.

            -

            https://api.slack.com/dialogs#attributes_text_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#attributes_text_elements

            Args

            name
            @@ -1445,7 +1445,7 @@

            Args

            assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope. - https://api.slack.com/dialogs#dynamic_select_elements_users + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users Args: name: Name of form element. Required. No more than 300 characters. @@ -1471,7 +1471,7 @@

            Args

            when you are creating a bug tracking app, you want to include a field for an assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope.

            -

            https://api.slack.com/dialogs#dynamic_select_elements_users

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users

            Args

            name
            @@ -1525,7 +1525,7 @@

            Inherited members

            You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -1547,7 +1547,7 @@

            Inherited members

            The base class for JSON serializable class objects

            You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels

            -

            https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations

            Args

            name
            @@ -1618,7 +1618,7 @@

            Inherited members

            private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing. - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -1641,7 +1641,7 @@

            Inherited members

            You can also provide a select menu with a list of conversations - including private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing.

            -

            https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations

            Args

            name
            @@ -1720,7 +1720,7 @@

            Inherited members

            A list of options can be loaded from an external URL and used in your dialog menus. - https://api.slack.com/dialogs#dynamic_select_elements_external + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external Args: name: Name of form element. Required. No more than 300 characters. @@ -1750,7 +1750,7 @@

            Inherited members

            a dropdown menu.

            A list of options can be loaded from an external URL and used in your dialog menus.

            -

            https://api.slack.com/dialogs#dynamic_select_elements_external

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external

            Args

            name
            @@ -1829,7 +1829,7 @@

            Inherited members

            single item from a list. True to web roots, this selection is displayed as a dropdown menu. - https://api.slack.com/dialogs#select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#select_elements """ data_source = "static" @@ -1854,7 +1854,7 @@

            Inherited members

            A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects - https://api.slack.com/dialogs#attributes_select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -1891,13 +1891,13 @@

            Inherited members

            Use the select element for multiple choice selections allowing users to pick a single item from a list. True to web roots, this selection is displayed as a dropdown menu.

            -

            https://api.slack.com/dialogs#select_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#select_elements

            Use the select element for multiple choice selections allowing users to pick a single item from a list. True to web roots, this selection is displayed as a dropdown menu.

            A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects

            -

            https://api.slack.com/dialogs#attributes_select_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements

            Args

            name
            @@ -1982,7 +1982,7 @@

            Inherited members

            answer from users. The element UI provides a remaining character count to the max_length you have set or the default, 3000. - https://api.slack.com/dialogs#textarea_elements + https://docs.slack.dev/legacy/legacy-dialogs/#textarea_elements """ type = "textarea" @@ -1992,7 +1992,7 @@

            Inherited members

            these on the world wide web. Use this element if you want a relatively long answer from users. The element UI provides a remaining character count to the max_length you have set or the default, 3000.

            -

            https://api.slack.com/dialogs#textarea_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#textarea_elements

            Ancestors

            Ancestors

            • DialogTextComponent
            • @@ -2443,7 +2443,7 @@

              Inherited members

              assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope. - https://api.slack.com/dialogs#dynamic_select_elements_users + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users Args: name: Name of form element. Required. No more than 300 characters. @@ -2467,7 +2467,7 @@

              Inherited members

              when you are creating a bug tracking app, you want to include a field for an assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope.

              -

              https://api.slack.com/dialogs#dynamic_select_elements_users

              +

              https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users

              Args

              name
              diff --git a/docs/reference/models/dialogs/index.html b/docs/reference/models/dialogs/index.html index d077673e1..e0c6fe457 100644 --- a/docs/reference/models/dialogs/index.html +++ b/docs/reference/models/dialogs/index.html @@ -247,7 +247,7 @@

              Inherited members

              Expand source code
              class DialogBuilder(JsonObject):
              -    attributes = {}  # type: ignore[assignment] # no attributes because to_dict has unique implementation
              +    attributes: Set[str] = set()
               
                   _callback_id: Optional[str]
                   _elements: List[Union[DialogTextComponent, AbstractDialogSelector]]
              @@ -348,7 +348,7 @@ 

              Inherited members

              """ Text elements are single-line plain text fields. - https://api.slack.com/dialogs#attributes_text_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_text_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -403,7 +403,7 @@

              Inherited members

              character count to the max_length you have set or the default, 3000. - https://api.slack.com/dialogs#attributes_textarea_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_textarea_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -456,7 +456,7 @@

              Inherited members

              A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects - https://api.slack.com/dialogs#attributes_select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -499,7 +499,7 @@

              Inherited members

              A list of options can be loaded from an external URL and used in your dialog menus. - https://api.slack.com/dialogs#dynamic_select_elements_external + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external Args: name: Name of form element. Required. No more than 300 characters. @@ -542,7 +542,7 @@

              Inherited members

              assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope. - https://api.slack.com/dialogs#dynamic_select_elements_users + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users Args: name: Name of form element. Required. No more than 300 characters. @@ -577,7 +577,7 @@

              Inherited members

              You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -613,7 +613,7 @@

              Inherited members

              private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing. - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -687,7 +687,7 @@

              Ancestors

            Class variables

            -
            var attributes
            +
            var attributes : Set[str]

            The type of the None singleton.

            @@ -772,7 +772,7 @@

            Args

            You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -796,7 +796,7 @@

            Args

            You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels

            -

            https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations

            Args

            name
            @@ -835,7 +835,7 @@

            Args

            private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing. - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -860,7 +860,7 @@

            Args

            You can also provide a select menu with a list of conversations - including private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing.

            -

            https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations

            Args

            name
            @@ -917,7 +917,7 @@

            Args

            A list of options can be loaded from an external URL and used in your dialog menus. - https://api.slack.com/dialogs#dynamic_select_elements_external + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external Args: name: Name of form element. Required. No more than 300 characters. @@ -950,7 +950,7 @@

            Args

            a dropdown menu.

            A list of options can be loaded from an external URL and used in your dialog menus.

            -

            https://api.slack.com/dialogs#dynamic_select_elements_external

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external

            Args

            name
            @@ -1074,7 +1074,7 @@

            Args

            A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects - https://api.slack.com/dialogs#attributes_select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -1104,7 +1104,7 @@

            Args

            a dropdown menu.

            A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects

            -

            https://api.slack.com/dialogs#attributes_select_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements

            Args

            name
            @@ -1209,7 +1209,7 @@

            Args

            character count to the max_length you have set or the default, 3000. - https://api.slack.com/dialogs#attributes_textarea_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_textarea_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -1249,7 +1249,7 @@

            Args

            relatively long answer from users. The element UI provides a remaining character count to the max_length you have set or the default, 3000.

            -

            https://api.slack.com/dialogs#attributes_textarea_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#attributes_textarea_elements

            Args

            name
            @@ -1303,7 +1303,7 @@

            Args

            """ Text elements are single-line plain text fields. - https://api.slack.com/dialogs#attributes_text_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_text_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -1339,7 +1339,7 @@

            Args

            return self

            Text elements are single-line plain text fields.

            -

            https://api.slack.com/dialogs#attributes_text_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#attributes_text_elements

            Args

            name
            @@ -1445,7 +1445,7 @@

            Args

            assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope. - https://api.slack.com/dialogs#dynamic_select_elements_users + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users Args: name: Name of form element. Required. No more than 300 characters. @@ -1471,7 +1471,7 @@

            Args

            when you are creating a bug tracking app, you want to include a field for an assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope.

            -

            https://api.slack.com/dialogs#dynamic_select_elements_users

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users

            Args

            name
            @@ -1525,7 +1525,7 @@

            Inherited members

            You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -1547,7 +1547,7 @@

            Inherited members

            The base class for JSON serializable class objects

            You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels

            -

            https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations

            Args

            name
            @@ -1618,7 +1618,7 @@

            Inherited members

            private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing. - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -1641,7 +1641,7 @@

            Inherited members

            You can also provide a select menu with a list of conversations - including private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing.

            -

            https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations

            Args

            name
            @@ -1720,7 +1720,7 @@

            Inherited members

            A list of options can be loaded from an external URL and used in your dialog menus. - https://api.slack.com/dialogs#dynamic_select_elements_external + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external Args: name: Name of form element. Required. No more than 300 characters. @@ -1750,7 +1750,7 @@

            Inherited members

            a dropdown menu.

            A list of options can be loaded from an external URL and used in your dialog menus.

            -

            https://api.slack.com/dialogs#dynamic_select_elements_external

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external

            Args

            name
            @@ -1829,7 +1829,7 @@

            Inherited members

            single item from a list. True to web roots, this selection is displayed as a dropdown menu. - https://api.slack.com/dialogs#select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#select_elements """ data_source = "static" @@ -1854,7 +1854,7 @@

            Inherited members

            A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects - https://api.slack.com/dialogs#attributes_select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -1891,13 +1891,13 @@

            Inherited members

            Use the select element for multiple choice selections allowing users to pick a single item from a list. True to web roots, this selection is displayed as a dropdown menu.

            -

            https://api.slack.com/dialogs#select_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#select_elements

            Use the select element for multiple choice selections allowing users to pick a single item from a list. True to web roots, this selection is displayed as a dropdown menu.

            A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects

            -

            https://api.slack.com/dialogs#attributes_select_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements

            Args

            name
            @@ -1982,7 +1982,7 @@

            Inherited members

            answer from users. The element UI provides a remaining character count to the max_length you have set or the default, 3000. - https://api.slack.com/dialogs#textarea_elements + https://docs.slack.dev/legacy/legacy-dialogs/#textarea_elements """ type = "textarea" @@ -1992,7 +1992,7 @@

            Inherited members

            these on the world wide web. Use this element if you want a relatively long answer from users. The element UI provides a remaining character count to the max_length you have set or the default, 3000.

            -

            https://api.slack.com/dialogs#textarea_elements

            +

            https://docs.slack.dev/legacy/legacy-dialogs/#textarea_elements

            Ancestors

            Ancestors

            • DialogTextComponent
            • @@ -2443,7 +2443,7 @@

              Inherited members

              assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope. - https://api.slack.com/dialogs#dynamic_select_elements_users + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users Args: name: Name of form element. Required. No more than 300 characters. @@ -2467,7 +2467,7 @@

              Inherited members

              when you are creating a bug tracking app, you want to include a field for an assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope.

              -

              https://api.slack.com/dialogs#dynamic_select_elements_users

              +

              https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users

              Args

              name
              diff --git a/docs/reference/models/messages/index.html b/docs/reference/models/messages/index.html index b741a9eb7..5d10ced1c 100644 --- a/docs/reference/models/messages/index.html +++ b/docs/reference/models/messages/index.html @@ -64,13 +64,13 @@

              Classes

              class ChannelLink(Link):
                   def __init__(self):
                       """Represents an @channel link, which notifies everyone present in this channel.
              -        https://api.slack.com/reference/surfaces/formatting
              +        https://docs.slack.dev/messaging/formatting-message-text/
                       """
                       super().__init__(url="!channel", text="channel")

              The base class for all model objects in this module

              Represents an @channel link, which notifies everyone present in this channel. -https://api.slack.com/reference/surfaces/formatting

              +https://docs.slack.dev/messaging/formatting-message-text/

            Ancestors

            • Link
            • @@ -96,7 +96,7 @@

              Ancestors

              link: Optional[str] = None, ): """Text containing a date or time should display that date in the local timezone of the person seeing the text. - https://api.slack.com/reference/surfaces/formatting#date-formatting + https://docs.slack.dev/messaging/formatting-message-text/#date-formatting """ if isinstance(date, datetime): epoch = int(date.timestamp()) @@ -110,7 +110,7 @@

              Ancestors

              The base class for all model objects in this module

              Text containing a date or time should display that date in the local timezone of the person seeing the text. -https://api.slack.com/reference/surfaces/formatting#date-formatting

              +https://docs.slack.dev/messaging/formatting-message-text/#date-formatting

            Ancestors

            • Link
            • @@ -128,13 +128,13 @@

              Ancestors

              class EveryoneLink(Link):
                   def __init__(self):
                       """Represents an @everyone link, which notifies all users of this workspace.
              -        https://api.slack.com/reference/surfaces/formatting
              +        https://docs.slack.dev/messaging/formatting-message-text/
                       """
                       super().__init__(url="!everyone", text="everyone")

              The base class for all model objects in this module

              Represents an @everyone link, which notifies all users of this workspace. -https://api.slack.com/reference/surfaces/formatting

              +https://docs.slack.dev/messaging/formatting-message-text/

            Ancestors

            Ancestors

          • Ancestors

            Ancestors

            • Link
            • diff --git a/docs/reference/models/messages/message.html b/docs/reference/models/messages/message.html index d32a7d02d..6a7e7a85a 100644 --- a/docs/reference/models/messages/message.html +++ b/docs/reference/models/messages/message.html @@ -71,7 +71,7 @@

              Classes

              """ Create a message. - https://api.slack.com/messaging/composing#message-structure + https://docs.slack.dev/messaging/#message-structure Args: text: Plain or Slack Markdown-like text to display in the message. @@ -114,7 +114,7 @@

              Classes

              The base class for JSON serializable class objects

              Create a message.

              -

              https://api.slack.com/messaging/composing#message-structure

              +

              https://docs.slack.dev/messaging/#message-structure

              Args

              text
              diff --git a/docs/reference/models/metadata/index.html b/docs/reference/models/metadata/index.html index 3d09686bb..14663e790 100644 --- a/docs/reference/models/metadata/index.html +++ b/docs/reference/models/metadata/index.html @@ -58,7 +58,7 @@

              Classes

              class Metadata(JsonObject):
                   """Message metadata
               
              -    https://api.slack.com/metadata
              +    https://docs.slack.dev/messaging/message-metadata/
                   """
               
                   attributes = {
              @@ -83,7 +83,7 @@ 

              Classes

              return self.__str__()
              +

              https://docs.slack.dev/messaging/message-metadata/

              Ancestors

              • JsonObject
              • diff --git a/docs/reference/models/views/index.html b/docs/reference/models/views/index.html index e384f561f..d9e60359b 100644 --- a/docs/reference/models/views/index.html +++ b/docs/reference/models/views/index.html @@ -58,7 +58,7 @@

                Classes

                class View(JsonObject):
                     """View object for modals and Home tabs.
                 
                -    https://api.slack.com/reference/surfaces/views
                +    https://docs.slack.dev/reference/views/
                     """
                 
                     types = ["modal", "home", "workflow_step"]
                @@ -175,7 +175,7 @@ 

                Classes

                return self.__str__()

                View object for modals and Home tabs.

                -

                https://api.slack.com/reference/surfaces/views

                +

                https://docs.slack.dev/reference/views/

            Ancestors

            • JsonObject
            • diff --git a/docs/reference/oauth/index.html b/docs/reference/oauth/index.html index be3e64d78..8fe69e5d0 100644 --- a/docs/reference/oauth/index.html +++ b/docs/reference/oauth/index.html @@ -37,7 +37,7 @@

              Module slack_sdk.oauth

              Modules for implementing the Slack OAuth flow

              -

              https://slack.dev/python-slack-sdk/oauth/

              +

              https://docs.slack.dev/tools/python-slack-sdk/oauth

              Sub-modules

              diff --git a/docs/reference/oauth/installation_store/async_cacheable_installation_store.html b/docs/reference/oauth/installation_store/async_cacheable_installation_store.html index 100c62c4a..a38205174 100644 --- a/docs/reference/oauth/installation_store/async_cacheable_installation_store.html +++ b/docs/reference/oauth/installation_store/async_cacheable_installation_store.html @@ -74,7 +74,7 @@

              Classes

              def logger(self) -> Logger: return self.underlying.logger - async def async_save(self, installation: Installation): # type: ignore[explicit-override] + async def async_save(self, installation: Installation): # Invalidate cache data for update operations key = f"{installation.enterprise_id or ''}-{installation.team_id or ''}" if key in self.cached_bots: @@ -84,14 +84,14 @@

              Classes

              self.cached_installations.pop(key) return await self.underlying.async_save(installation) - async def async_save_bot(self, bot: Bot): # type: ignore[explicit-override] + async def async_save_bot(self, bot: Bot): # Invalidate cache data for update operations key = f"{bot.enterprise_id or ''}-{bot.team_id or ''}" if key in self.cached_bots: self.cached_bots.pop(key) return await self.underlying.async_save_bot(bot) - async def async_find_bot( # type: ignore[explicit-override] + async def async_find_bot( self, *, enterprise_id: Optional[str], @@ -112,7 +112,7 @@

              Classes

              self.cached_bots[key] = bot return bot - async def async_find_installation( # type: ignore[explicit-override] + async def async_find_installation( self, *, enterprise_id: Optional[str], diff --git a/docs/reference/oauth/installation_store/cacheable_installation_store.html b/docs/reference/oauth/installation_store/cacheable_installation_store.html index 5e2802f11..54bb7662d 100644 --- a/docs/reference/oauth/installation_store/cacheable_installation_store.html +++ b/docs/reference/oauth/installation_store/cacheable_installation_store.html @@ -74,7 +74,7 @@

              Classes

              def logger(self) -> Logger: return self.underlying.logger - def save(self, installation: Installation): # type: ignore[explicit-override] + def save(self, installation: Installation): # Invalidate cache data for update operations key = f"{installation.enterprise_id or ''}-{installation.team_id or ''}" if key in self.cached_bots: @@ -85,14 +85,14 @@

              Classes

              return self.underlying.save(installation) - def save_bot(self, bot: Bot): # type: ignore[explicit-override] + def save_bot(self, bot: Bot): # Invalidate cache data for update operations key = f"{bot.enterprise_id or ''}-{bot.team_id or ''}" if key in self.cached_bots: self.cached_bots.pop(key) return self.underlying.save_bot(bot) - def find_bot( # type: ignore[explicit-override] + def find_bot( self, *, enterprise_id: Optional[str], @@ -113,7 +113,7 @@

              Classes

              self.cached_bots[key] = bot return bot - def find_installation( # type: ignore[explicit-override] + def find_installation( self, *, enterprise_id: Optional[str], diff --git a/docs/reference/oauth/installation_store/installation_store.html b/docs/reference/oauth/installation_store/installation_store.html index 0ecdef730..86533f424 100644 --- a/docs/reference/oauth/installation_store/installation_store.html +++ b/docs/reference/oauth/installation_store/installation_store.html @@ -37,7 +37,7 @@

              Module slack_sdk.oauth.installation_store.installation_s

              Slack installation data store

              -

              Refer to https://slack.dev/python-slack-sdk/oauth/ for details.

              +

              Refer to https://docs.slack.dev/tools/python-slack-sdk/oauth for details.

              diff --git a/docs/reference/oauth/state_store/index.html b/docs/reference/oauth/state_store/index.html index efb7d1cfe..3f0c18327 100644 --- a/docs/reference/oauth/state_store/index.html +++ b/docs/reference/oauth/state_store/index.html @@ -37,7 +37,7 @@

              Module slack_sdk.oauth.state_store

              OAuth state parameter data store

              -

              Refer to https://slack.dev/python-slack-sdk/oauth/ for details.

              +

              Refer to https://docs.slack.dev/tools/python-slack-sdk/oauth for details.

              Sub-modules

              diff --git a/docs/reference/scim/async_client.html b/docs/reference/scim/async_client.html index b4d0f3fd4..426ca9299 100644 --- a/docs/reference/scim/async_client.html +++ b/docs/reference/scim/async_client.html @@ -87,7 +87,7 @@

              Classes

              retry_handlers: Optional[List[AsyncRetryHandler]] = None, ): """API client for SCIM API - See https://api.slack.com/scim for more details + See https://docs.slack.dev/admins/scim-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` @@ -416,7 +416,7 @@

              Classes

              return resp

              API client for SCIM API -See https://api.slack.com/scim for more details

              +See https://docs.slack.dev/admins/scim-api/ for more details

              Args

              token
              diff --git a/docs/reference/scim/index.html b/docs/reference/scim/index.html index 150a46b70..1e6e1e228 100644 --- a/docs/reference/scim/index.html +++ b/docs/reference/scim/index.html @@ -40,7 +40,7 @@

              Module slack_sdk.scim

              SCIM API is a set of APIs for provisioning and managing user accounts and groups. SCIM is used by Single Sign-On (SSO) services and identity providers to manage people across a variety of tools, including Slack.

              -

              Refer to https://slack.dev/python-slack-sdk/scim/ for details.

              +

              Refer to https://docs.slack.dev/tools/python-slack-sdk/scim for details.

              Sub-modules

              @@ -301,7 +301,7 @@

              Inherited members

              retry_handlers: Optional[List[RetryHandler]] = None, ): """API client for SCIM API - See https://api.slack.com/scim for more details + See https://docs.slack.dev/admins/scim-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` @@ -646,7 +646,7 @@

              Inherited members

              return resp

              API client for SCIM API -See https://api.slack.com/scim for more details

              +See https://docs.slack.dev/admins/scim-api/ for more details

              Args

              token
              diff --git a/docs/reference/scim/v1/async_client.html b/docs/reference/scim/v1/async_client.html index b8b9b9b5b..59fb723f3 100644 --- a/docs/reference/scim/v1/async_client.html +++ b/docs/reference/scim/v1/async_client.html @@ -87,7 +87,7 @@

              Classes

              retry_handlers: Optional[List[AsyncRetryHandler]] = None, ): """API client for SCIM API - See https://api.slack.com/scim for more details + See https://docs.slack.dev/admins/scim-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` @@ -416,7 +416,7 @@

              Classes

              return resp

              API client for SCIM API -See https://api.slack.com/scim for more details

              +See https://docs.slack.dev/admins/scim-api/ for more details

              Args

              token
              diff --git a/docs/reference/scim/v1/client.html b/docs/reference/scim/v1/client.html index 2c51a0776..4317f2394 100644 --- a/docs/reference/scim/v1/client.html +++ b/docs/reference/scim/v1/client.html @@ -40,7 +40,7 @@

              Module slack_sdk.scim.v1.client

              SCIM API is a set of APIs for provisioning and managing user accounts and groups. SCIM is used by Single Sign-On (SSO) services and identity providers to manage people across a variety of tools, including Slack.

              -

              Refer to https://slack.dev/python-slack-sdk/scim/ for details.

              +

              Refer to https://docs.slack.dev/tools/python-slack-sdk/scim/ for details.

              @@ -86,7 +86,7 @@

              Classes

              retry_handlers: Optional[List[RetryHandler]] = None, ): """API client for SCIM API - See https://api.slack.com/scim for more details + See https://docs.slack.dev/admins/scim-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` @@ -431,7 +431,7 @@

              Classes

              return resp

              API client for SCIM API -See https://api.slack.com/scim for more details

              +See https://docs.slack.dev/admins/scim-api/ for more details

              Args

              token
              diff --git a/docs/reference/scim/v1/index.html b/docs/reference/scim/v1/index.html index 5ce46dba3..2cbda3da0 100644 --- a/docs/reference/scim/v1/index.html +++ b/docs/reference/scim/v1/index.html @@ -40,7 +40,7 @@

              Module slack_sdk.scim.v1

              SCIM API is a set of APIs for provisioning and managing user accounts and groups. SCIM is used by Single Sign-On (SSO) services and identity providers to manage people across a variety of tools, including Slack.

              -

              Refer to https://slack.dev/python-slack-sdk/scim/ for details.

              +

              Refer to https://docs.slack.dev/tools/python-slack-sdk/scim for details.

              Sub-modules

              diff --git a/docs/reference/signature/index.html b/docs/reference/signature/index.html index 690f66ae0..ecc1f0831 100644 --- a/docs/reference/signature/index.html +++ b/docs/reference/signature/index.html @@ -93,7 +93,7 @@

              Methods

              Slack signs its requests using a secret that's unique to your app. With the help of signing secrets, your app can more confidently verify whether requests from us are authentic. - https://api.slack.com/authentication/verifying-requests-from-slack + https://docs.slack.dev/authentication/verifying-requests-from-slack/ """ self.signing_secret = signing_secret self.clock = clock @@ -150,7 +150,7 @@

              Methods

              Slack signs its requests using a secret that's unique to your app. With the help of signing secrets, your app can more confidently verify whether requests from us are authentic. -https://api.slack.com/authentication/verifying-requests-from-slack

            +https://docs.slack.dev/authentication/verifying-requests-from-slack/

            Methods

            diff --git a/docs/reference/socket_mode/aiohttp/index.html b/docs/reference/socket_mode/aiohttp/index.html index e2a12fde4..92c6225c1 100644 --- a/docs/reference/socket_mode/aiohttp/index.html +++ b/docs/reference/socket_mode/aiohttp/index.html @@ -38,8 +38,8 @@

            Module slack_sdk.socket_mode.aiohttp

            aiohttp based Socket Mode client

            diff --git a/docs/reference/socket_mode/builtin/client.html b/docs/reference/socket_mode/builtin/client.html index fbf3f7525..8e55f2347 100644 --- a/docs/reference/socket_mode/builtin/client.html +++ b/docs/reference/socket_mode/builtin/client.html @@ -38,8 +38,8 @@

            Module slack_sdk.socket_mode.builtin.client

            The built-in Socket Mode client

            diff --git a/docs/reference/socket_mode/client.html b/docs/reference/socket_mode/client.html index dda047bd6..3c8c615f9 100644 --- a/docs/reference/socket_mode/client.html +++ b/docs/reference/socket_mode/client.html @@ -167,7 +167,7 @@

            Classes

            for listener in self.message_listeners: try: - listener(self, message, raw_message) # type: ignore[call-arg, arg-type] + listener(self, message, raw_message) # type: ignore[call-arg, arg-type, misc] except Exception as e: self.logger.exception(f"Failed to run a message listener: {e}") @@ -431,7 +431,7 @@

            Methods

            for listener in self.message_listeners: try: - listener(self, message, raw_message) # type: ignore[call-arg, arg-type] + listener(self, message, raw_message) # type: ignore[call-arg, arg-type, misc] except Exception as e: self.logger.exception(f"Failed to run a message listener: {e}") diff --git a/docs/reference/socket_mode/index.html b/docs/reference/socket_mode/index.html index a9bffd89e..381e969e5 100644 --- a/docs/reference/socket_mode/index.html +++ b/docs/reference/socket_mode/index.html @@ -40,7 +40,7 @@

            Module slack_sdk.socket_mode

            Socket Mode is a method of connecting your app to Slack’s APIs using WebSockets instead of HTTP. You can use slack_sdk.socket_mode.SocketModeClient for managing Socket Mode connections and performing interactions with Slack.

            -

            https://api.slack.com/apis/connections/socket

            +

            https://docs.slack.dev/apis/events-api/using-socket-mode/

            Sub-modules

            diff --git a/docs/reference/socket_mode/websocket_client/index.html b/docs/reference/socket_mode/websocket_client/index.html index 20a1f0ac5..fe43e29b1 100644 --- a/docs/reference/socket_mode/websocket_client/index.html +++ b/docs/reference/socket_mode/websocket_client/index.html @@ -38,8 +38,8 @@

            Module slack_sdk.socket_mode.websocket_client

            websocket-client bassd Socket Mode client

            @@ -91,7 +91,7 @@

            Classes

            auto_reconnect_enabled: bool default_auto_reconnect_enabled: bool - close: bool # type: ignore[assignment] + closed: bool connect_operation_lock: Lock on_open_listeners: List[Callable[[WebSocketApp], None]] @@ -258,7 +258,7 @@

            Classes

            ) raise e - def close(self) -> None: # type: ignore[explicit-override, no-redef] + def close(self) -> None: self.closed = True self.auto_reconnect_enabled = False self.disconnect() @@ -384,7 +384,7 @@

            Methods

            Expand source code -
            def close(self) -> None:  # type: ignore[explicit-override, no-redef]
            +
            def close(self) -> None:
                 self.closed = True
                 self.auto_reconnect_enabled = False
                 self.disconnect()
            diff --git a/docs/reference/socket_mode/websockets/index.html b/docs/reference/socket_mode/websockets/index.html
            index 792c28fb5..e38594eee 100644
            --- a/docs/reference/socket_mode/websockets/index.html
            +++ b/docs/reference/socket_mode/websockets/index.html
            @@ -38,8 +38,8 @@ 

            Module slack_sdk.socket_mode.websockets

            websockets bassd Socket Mode client

            diff --git a/docs/reference/web/async_client.html b/docs/reference/web/async_client.html index 86403ce5d..430319ea6 100644 --- a/docs/reference/web/async_client.html +++ b/docs/reference/web/async_client.html @@ -59,7 +59,7 @@

            Classes

            class AsyncWebClient(AsyncBaseClient):
                 """A WebClient allows apps to communicate with the Slack Platform's Web API.
             
            -    https://api.slack.com/methods
            +    https://docs.slack.dev/reference/methods
             
                 The Slack Web API is an interface for querying information from
                 and enacting change in a Slack workspace.
            @@ -130,7 +130,7 @@ 

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -152,7 +152,7 @@

            Classes

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -179,7 +179,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -200,7 +200,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -220,7 +220,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -240,7 +240,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -264,7 +264,7 @@

            Classes

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -291,7 +291,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -313,7 +313,7 @@

            Classes

            ) -> AsyncSlackResponse: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -344,7 +344,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -372,7 +372,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -389,7 +389,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -411,7 +411,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -431,7 +431,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -450,7 +450,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -469,7 +469,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -485,7 +485,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -504,7 +504,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -523,7 +523,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -543,7 +543,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return await self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs) @@ -558,7 +558,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -579,7 +579,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -599,7 +599,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -619,7 +619,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.delete", params=kwargs) @@ -632,7 +632,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -649,7 +649,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.archive", params=kwargs) @@ -661,7 +661,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.unarchive", params=kwargs) @@ -674,7 +674,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return await self.api_call("admin.conversations.rename", params=kwargs) @@ -692,7 +692,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Search for public or private channels in an Enterprise organization. - https://api.slack.com/methods/admin.conversations.search + https://docs.slack.dev/reference/methods/admin.conversations.search """ kwargs.update( { @@ -723,7 +723,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.convertToPrivate", params=kwargs) @@ -735,7 +735,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.convertToPublic", params=kwargs) @@ -748,7 +748,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -764,7 +764,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.getConversationPrefs", params=kwargs) @@ -777,7 +777,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -797,7 +797,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -825,7 +825,7 @@

            Classes

            """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -852,7 +852,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -875,7 +875,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -898,7 +898,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -923,7 +923,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -947,7 +947,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -965,7 +965,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.getCustomRetention", params=kwargs) @@ -977,7 +977,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.removeCustomRetention", params=kwargs) @@ -990,7 +990,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return await self.api_call("admin.conversations.setCustomRetention", params=kwargs) @@ -1002,7 +1002,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return await self.api_call("admin.conversations.bulkArchive", params=kwargs) @@ -1027,7 +1027,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -1045,7 +1045,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return await self.api_call("admin.emoji.add", http_verb="GET", params=kwargs) @@ -1058,7 +1058,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return await self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs) @@ -1071,7 +1071,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return await self.api_call("admin.emoji.list", http_verb="GET", params=kwargs) @@ -1083,7 +1083,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return await self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs) @@ -1096,7 +1096,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return await self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs) @@ -1111,7 +1111,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -1134,7 +1134,7 @@

            Classes

            ) -> AsyncSlackResponse: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -1152,7 +1152,7 @@

            Classes

            ) -> AsyncSlackResponse: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -1176,7 +1176,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1201,7 +1201,7 @@

            Classes

            ) -> AsyncSlackResponse: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -1223,7 +1223,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1245,7 +1245,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -1265,7 +1265,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1287,7 +1287,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return await self.api_call("admin.users.session.invalidate", params=kwargs) @@ -1302,7 +1302,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -1322,7 +1322,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -1339,7 +1339,7 @@

            Classes

            ) -> AsyncSlackResponse: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1357,7 +1357,7 @@

            Classes

            ) -> AsyncSlackResponse: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1379,7 +1379,7 @@

            Classes

            ) -> AsyncSlackResponse: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1396,7 +1396,7 @@

            Classes

            ) -> AsyncSlackResponse: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -1414,7 +1414,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return await self.api_call("admin.inviteRequests.approve", params=kwargs) @@ -1428,7 +1428,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -1448,7 +1448,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -1467,7 +1467,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return await self.api_call("admin.inviteRequests.deny", params=kwargs) @@ -1488,7 +1488,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -1509,7 +1509,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -1529,7 +1529,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return await self.api_call("admin.teams.list", params=kwargs) @@ -1543,7 +1543,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return await self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs) @@ -1555,7 +1555,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return await self.api_call("admin.teams.settings.info", params=kwargs) @@ -1568,7 +1568,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return await self.api_call("admin.teams.settings.setDescription", params=kwargs) @@ -1581,7 +1581,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return await self.api_call("admin.teams.settings.setDiscoverability", params=kwargs) @@ -1594,7 +1594,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return await self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs) @@ -1607,7 +1607,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return await self.api_call("admin.teams.settings.setName", params=kwargs) @@ -1621,7 +1621,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1639,7 +1639,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -1657,7 +1657,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -1676,7 +1676,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1696,7 +1696,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -1728,7 +1728,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -1752,7 +1752,7 @@

            Classes

            async def admin_users_list( self, *, - team_id: str, + team_id: Optional[str] = None, include_deactivated_user_workspaces: Optional[bool] = None, is_active: Optional[bool] = None, cursor: Optional[str] = None, @@ -1760,7 +1760,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -1781,7 +1781,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.remove", params=kwargs) @@ -1794,7 +1794,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setAdmin", params=kwargs) @@ -1808,7 +1808,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setExpiration", params=kwargs) @@ -1821,7 +1821,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setOwner", params=kwargs) @@ -1834,7 +1834,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setRegular", params=kwargs) @@ -1855,7 +1855,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Search workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.search + https://docs.slack.dev/reference/methods/admin.workflows.search """ if collaborator_ids is not None: if isinstance(collaborator_ids, (list, tuple)): @@ -1885,7 +1885,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1906,7 +1906,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1926,7 +1926,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1945,7 +1945,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1960,7 +1960,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return await self.api_call("api.test", params=kwargs) @@ -1973,7 +1973,7 @@

            Classes

            ) -> AsyncSlackResponse: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return await self.api_call("apps.connections.open", http_verb="POST", params=kwargs) @@ -1988,7 +1988,7 @@

            Classes

            ) -> AsyncSlackResponse: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return await self.api_call("apps.event.authorizations.list", params=kwargs) @@ -2001,7 +2001,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return await self.api_call("apps.uninstall", params=kwargs) @@ -2013,7 +2013,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2028,7 +2028,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return await self.api_call("apps.manifest.delete", params=kwargs) @@ -2040,7 +2040,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return await self.api_call("apps.manifest.export", params=kwargs) @@ -2053,7 +2053,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2070,7 +2070,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2086,7 +2086,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return await self.api_call("tooling.tokens.rotate", params=kwargs) @@ -2100,7 +2100,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return await self.api_call("assistant.threads.setStatus", params=kwargs) @@ -2114,7 +2114,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return await self.api_call("assistant.threads.setTitle", params=kwargs) @@ -2129,7 +2129,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -2143,7 +2143,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return await self.api_call("auth.revoke", http_verb="GET", params=kwargs) @@ -2153,7 +2153,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return await self.api_call("auth.test", params=kwargs) @@ -2165,7 +2165,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return await self.api_call("auth.teams.list", params=kwargs) @@ -2183,7 +2183,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -2209,7 +2209,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -2229,7 +2229,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return await self.api_call("bookmarks.list", http_verb="POST", params=kwargs) @@ -2242,7 +2242,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return await self.api_call("bookmarks.remove", http_verb="POST", params=kwargs) @@ -2255,7 +2255,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return await self.api_call("bots.info", http_verb="GET", params=kwargs) @@ -2274,7 +2274,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -2301,7 +2301,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return await self.api_call("calls.end", http_verb="POST", params=kwargs) @@ -2313,7 +2313,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return await self.api_call("calls.info", http_verb="POST", params=kwargs) @@ -2326,7 +2326,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2340,7 +2340,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2356,7 +2356,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -2376,7 +2376,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return await self.api_call("canvases.create", json=kwargs) @@ -2389,7 +2389,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return await self.api_call("canvases.edit", json=kwargs) @@ -2401,7 +2401,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return await self.api_call("canvases.delete", params=kwargs) @@ -2416,7 +2416,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -2441,7 +2441,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -2464,7 +2464,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return await self.api_call("canvases.sections.lookup", params=kwargs) @@ -2472,7 +2472,7 @@

            Classes

            # -------------------------- # Deprecated: channels.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- async def channels_archive( @@ -2651,7 +2651,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return await self.api_call("chat.delete", params=kwargs) @@ -2665,7 +2665,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -2684,7 +2684,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieve a permalink URL for a specific extant message - https://api.slack.com/methods/chat.getPermalink + https://docs.slack.dev/reference/methods/chat.getPermalink """ kwargs.update({"channel": channel, "message_ts": message_ts}) return await self.api_call("chat.getPermalink", http_verb="GET", params=kwargs) @@ -2697,7 +2697,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return await self.api_call("chat.meMessage", params=kwargs) @@ -2717,10 +2717,11 @@

            Classes

            link_names: Optional[bool] = None, username: Optional[str] = None, parse: Optional[str] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> AsyncSlackResponse: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -2736,11 +2737,12 @@

            Classes

            "link_names": link_names, "username": username, "parse": parse, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postEphemeral", kwargs) + _warn_if_message_text_content_is_missing("chat.postEphemeral", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return await self.api_call("chat.postEphemeral", json=kwargs) @@ -2764,10 +2766,11 @@

            Classes

            username: Optional[str] = None, parse: Optional[str] = None, # none, full metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> AsyncSlackResponse: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -2788,11 +2791,12 @@

            Classes

            "username": username, "parse": parse, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.postMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return await self.api_call("chat.postMessage", json=kwargs) @@ -2801,7 +2805,7 @@

            Classes

            *, channel: str, post_at: Union[str, int], - text: str, + text: Optional[str] = None, as_user: Optional[bool] = None, attachments: Optional[Union[str, Sequence[Union[Dict, Attachment]]]] = None, blocks: Optional[Union[str, Sequence[Union[Dict, Block]]]] = None, @@ -2812,10 +2816,11 @@

            Classes

            unfurl_media: Optional[bool] = None, link_names: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> AsyncSlackResponse: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -2832,11 +2837,12 @@

            Classes

            "unfurl_media": unfurl_media, "link_names": link_names, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.scheduleMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.scheduleMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return await self.api_call("chat.scheduleMessage", json=kwargs) @@ -2855,7 +2861,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -2889,10 +2895,11 @@

            Classes

            parse: Optional[str] = None, # none, full reply_broadcast: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> AsyncSlackResponse: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -2906,6 +2913,7 @@

            Classes

            "parse": parse, "reply_broadcast": reply_broadcast, "metadata": metadata, + "markdown_text": markdown_text, } ) if isinstance(file_ids, (list, tuple)): @@ -2914,7 +2922,7 @@

            Classes

            kwargs.update({"file_ids": file_ids}) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.update", kwargs) + _warn_if_message_text_content_is_missing("chat.update", kwargs) # NOTE: intentionally using json over params for API methods using blocks/attachments return await self.api_call("chat.update", json=kwargs) @@ -2930,7 +2938,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -2956,7 +2964,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -2980,7 +2988,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return await self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs) @@ -2992,7 +3000,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return await self.api_call("conversations.archive", params=kwargs) @@ -3004,7 +3012,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return await self.api_call("conversations.close", params=kwargs) @@ -3018,7 +3026,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return await self.api_call("conversations.create", params=kwargs) @@ -3031,7 +3039,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return await self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs) @@ -3040,7 +3048,7 @@

            Classes

            self, *, action: str, channel: str, target_team: str, **kwargs ) -> AsyncSlackResponse: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -3064,7 +3072,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -3088,7 +3096,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -3108,7 +3116,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -3131,7 +3139,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -3153,7 +3161,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return await self.api_call("conversations.join", params=kwargs) @@ -3166,7 +3174,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return await self.api_call("conversations.kick", params=kwargs) @@ -3178,7 +3186,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return await self.api_call("conversations.leave", params=kwargs) @@ -3194,7 +3202,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -3220,7 +3228,7 @@

            Classes

            ) -> AsyncSlackResponse: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return await self.api_call("conversations.listConnectInvites", params=kwargs) @@ -3233,7 +3241,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return await self.api_call("conversations.mark", params=kwargs) @@ -3247,7 +3255,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return await self.api_call("conversations.members", http_verb="GET", params=kwargs) @@ -3261,7 +3269,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -3280,7 +3288,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return await self.api_call("conversations.rename", params=kwargs) @@ -3299,7 +3307,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -3325,7 +3333,7 @@

            Classes

            **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -3346,7 +3354,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return await self.api_call("conversations.requestSharedInvite.deny", params=kwargs) @@ -3364,7 +3372,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -3391,7 +3399,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return await self.api_call("conversations.setPurpose", params=kwargs) @@ -3404,7 +3412,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return await self.api_call("conversations.setTopic", params=kwargs) @@ -3416,7 +3424,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return await self.api_call("conversations.unarchive", params=kwargs) @@ -3429,7 +3437,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return await self.api_call("conversations.canvases.create", json=kwargs) @@ -3442,7 +3450,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -3454,7 +3462,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return await self.api_call("dnd.endDnd", params=kwargs) @@ -3463,7 +3471,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return await self.api_call("dnd.endSnooze", params=kwargs) @@ -3475,7 +3483,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return await self.api_call("dnd.info", http_verb="GET", params=kwargs) @@ -3487,7 +3495,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return await self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs) @@ -3499,7 +3507,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -3514,7 +3522,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return await self.api_call("emoji.list", http_verb="GET", params=kwargs) @@ -3527,7 +3535,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return await self.api_call("files.comments.delete", params=kwargs) @@ -3539,7 +3547,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return await self.api_call("files.delete", params=kwargs) @@ -3555,7 +3563,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -3583,7 +3591,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -3611,7 +3619,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return await self.api_call("files.remote.info", http_verb="GET", params=kwargs) @@ -3627,7 +3635,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -3652,7 +3660,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -3691,7 +3699,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -3726,7 +3734,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return await self.api_call("files.remote.remove", http_verb="POST", params=kwargs) @@ -3740,7 +3748,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -3758,7 +3766,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return await self.api_call("files.revokePublicURL", params=kwargs) @@ -3770,7 +3778,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return await self.api_call("files.sharedPublicURL", params=kwargs) @@ -3789,7 +3797,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -3842,12 +3850,12 @@

            Classes

            ) -> AsyncSlackResponse: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -3933,7 +3941,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -3956,7 +3964,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -3979,7 +3987,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return await self.api_call("functions.completeSuccess", params=kwargs) @@ -3992,7 +4000,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return await self.api_call("functions.completeError", params=kwargs) @@ -4000,7 +4008,7 @@

            Classes

            # -------------------------- # Deprecated: groups.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- async def groups_archive( @@ -4181,7 +4189,7 @@

            Classes

            # -------------------------- # Deprecated: im.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- async def im_close( @@ -4257,7 +4265,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -4269,7 +4277,7 @@

            Classes

            # -------------------------- # Deprecated: mpim.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- async def mpim_close( @@ -4356,7 +4364,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4382,7 +4390,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4402,7 +4410,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return await self.api_call("oauth.v2.exchange", params=kwargs) @@ -4418,7 +4426,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4439,7 +4447,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return await self.api_call("openid.connect.userInfo", params=kwargs) @@ -4451,7 +4459,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return await self.api_call("pins.add", params=kwargs) @@ -4463,7 +4471,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return await self.api_call("pins.list", http_verb="GET", params=kwargs) @@ -4476,7 +4484,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return await self.api_call("pins.remove", params=kwargs) @@ -4490,7 +4498,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return await self.api_call("reactions.add", params=kwargs) @@ -4506,7 +4514,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -4532,7 +4540,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -4558,7 +4566,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -4582,7 +4590,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -4603,7 +4611,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return await self.api_call("reminders.complete", params=kwargs) @@ -4616,7 +4624,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return await self.api_call("reminders.delete", params=kwargs) @@ -4629,7 +4637,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return await self.api_call("reminders.info", http_verb="GET", params=kwargs) @@ -4641,7 +4649,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return await self.api_call("reminders.list", http_verb="GET", params=kwargs) @@ -4654,7 +4662,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return await self.api_call("rtm.connect", http_verb="GET", params=kwargs) @@ -4672,7 +4680,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -4700,7 +4708,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -4728,7 +4736,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -4757,7 +4765,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -4783,7 +4791,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -4806,7 +4814,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -4829,7 +4837,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -4853,7 +4861,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -4875,7 +4883,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return await self.api_call("team.billableInfo", http_verb="GET", params=kwargs) @@ -4885,7 +4893,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return await self.api_call("team.billing.info", params=kwargs) @@ -4896,7 +4904,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -4918,7 +4926,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -4949,7 +4957,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return await self.api_call("team.info", http_verb="GET", params=kwargs) @@ -4967,7 +4975,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -4989,7 +4997,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return await self.api_call("team.profile.get", http_verb="GET", params=kwargs) @@ -4999,7 +5007,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return await self.api_call("team.preferences.list", params=kwargs) @@ -5015,7 +5023,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -5041,7 +5049,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return await self.api_call("usergroups.disable", params=kwargs) @@ -5055,7 +5063,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return await self.api_call("usergroups.enable", params=kwargs) @@ -5070,7 +5078,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -5095,7 +5103,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -5122,7 +5130,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -5143,7 +5151,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -5170,7 +5178,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -5192,7 +5200,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return await self.api_call("users.deletePhoto", http_verb="GET", params=kwargs) @@ -5203,7 +5211,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return await self.api_call("users.getPresence", http_verb="GET", params=kwargs) @@ -5213,7 +5221,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return await self.api_call("users.identity", http_verb="GET", params=kwargs) @@ -5225,7 +5233,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return await self.api_call("users.info", http_verb="GET", params=kwargs) @@ -5240,7 +5248,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -5259,7 +5267,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return await self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs) @@ -5274,7 +5282,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return await self.api_call("users.setPhoto", files={"image": image}, data=kwargs) @@ -5286,7 +5294,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return await self.api_call("users.setPresence", params=kwargs) @@ -5297,7 +5305,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return await self.api_call("users.discoverableContacts.lookup", params=kwargs) @@ -5310,7 +5318,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return await self.api_call("users.profile.get", http_verb="GET", params=kwargs) @@ -5325,7 +5333,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -5348,8 +5356,8 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5372,9 +5380,9 @@

            Classes

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5397,9 +5405,9 @@

            Classes

            """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -5426,8 +5434,8 @@

            Classes

            ) -> AsyncSlackResponse: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -5438,6 +5446,72 @@

            Classes

            # NOTE: Intentionally using json for the "view" parameter return await self.api_call("views.publish", json=kwargs) + async def workflows_featured_add( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> AsyncSlackResponse: + """Add featured workflows to a channel. + https://docs.slack.dev/reference/methods/workflows.featured.add + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return await self.api_call("workflows.featured.add", params=kwargs) + + async def workflows_featured_list( + self, + *, + channel_ids: Union[str, Sequence[str]], + **kwargs, + ) -> AsyncSlackResponse: + """List the featured workflows for specified channels. + https://docs.slack.dev/reference/methods/workflows.featured.list + """ + if isinstance(channel_ids, (list, tuple)): + kwargs.update({"channel_ids": ",".join(channel_ids)}) + else: + kwargs.update({"channel_ids": channel_ids}) + return await self.api_call("workflows.featured.list", params=kwargs) + + async def workflows_featured_remove( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> AsyncSlackResponse: + """Remove featured workflows from a channel. + https://docs.slack.dev/reference/methods/workflows.featured.remove + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return await self.api_call("workflows.featured.remove", params=kwargs) + + async def workflows_featured_set( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> AsyncSlackResponse: + """Set featured workflows for a channel. + https://docs.slack.dev/reference/methods/workflows.featured.set + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return await self.api_call("workflows.featured.set", params=kwargs) + async def workflows_stepCompleted( self, *, @@ -5446,7 +5520,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -5463,7 +5537,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -5484,7 +5558,7 @@

            Classes

            **kwargs, ) -> AsyncSlackResponse: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: @@ -5496,7 +5570,7 @@

            Classes

            return await self.api_call("workflows.updateStep", json=kwargs)

            A WebClient allows apps to communicate with the Slack Platform's Web API.

            -

            https://api.slack.com/methods

            +

            https://docs.slack.dev/reference/methods

            The Slack Web API is an interface for querying information from and enacting change in a Slack workspace.

            This client handles constructing and sending HTTP requests to Slack @@ -5576,7 +5650,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -5586,7 +5660,7 @@

            Methods

            return await self.api_call("admin.analytics.getFile", params=kwargs)

            Retrieve analytics data for a given date, presented as a compressed JSON file -https://api.slack.com/methods/admin.analytics.getFile

            +https://docs.slack.dev/reference/methods/admin.analytics.getFile

            async def admin_apps_activities_list(self,
            *,
            app_id: str | None = None,
            component_id: str | None = None,
            component_type: str | None = None,
            log_event_type: str | None = None,
            max_date_created: int | None = None,
            min_date_created: int | None = None,
            min_log_level: str | None = None,
            sort_direction: str | None = None,
            source: str | None = None,
            team_id: str | None = None,
            trace_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5615,7 +5689,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -5637,7 +5711,7 @@

            Methods

            return await self.api_call("admin.apps.activities.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.apps.activities.list

            async def admin_apps_approve(self,
            *,
            app_id: str | None = None,
            request_id: str | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5660,7 +5734,7 @@

            Methods

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -5681,7 +5755,7 @@

            Methods

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. -https://api.slack.com/methods/admin.apps.approve

            +https://docs.slack.dev/reference/methods/admin.apps.approve

            async def admin_apps_approved_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5701,7 +5775,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -5714,7 +5788,7 @@

            Methods

            return await self.api_call("admin.apps.approved.list", http_verb="GET", params=kwargs)

            List approved apps for an org or workspace. -https://api.slack.com/methods/admin.apps.approved.list

            +https://docs.slack.dev/reference/methods/admin.apps.approved.list

            async def admin_apps_clearResolution(self,
            *,
            app_id: str,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5733,7 +5807,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -5745,7 +5819,7 @@

            Methods

            return await self.api_call("admin.apps.clearResolution", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.apps.clearResolution

            async def admin_apps_config_lookup(self, *, app_ids: str | Sequence[str], **kwargs) ‑> AsyncSlackResponse @@ -5762,7 +5836,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -5771,7 +5845,7 @@

            Methods

            return await self.api_call("admin.apps.config.lookup", params=kwargs)

            Look up the app config for connectors by their IDs -https://api.slack.com/methods/admin.apps.config.lookup

            +https://docs.slack.dev/reference/methods/admin.apps.config.lookup

            async def admin_apps_config_set(self,
            *,
            app_id: str,
            domain_restrictions: Dict[str, Any] | None = None,
            workflow_auth_strategy: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5790,7 +5864,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -5803,7 +5877,7 @@

            Methods

            return await self.api_call("admin.apps.config.set", params=kwargs)

            Set the app config for a connector -https://api.slack.com/methods/admin.apps.config.set

            +https://docs.slack.dev/reference/methods/admin.apps.config.set

            async def admin_apps_requests_cancel(self,
            *,
            request_id: str,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5822,7 +5896,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -5834,7 +5908,7 @@

            Methods

            return await self.api_call("admin.apps.requests.cancel", http_verb="POST", params=kwargs)

            List app requests for a team/workspace. -https://api.slack.com/methods/admin.apps.requests.cancel

            +https://docs.slack.dev/reference/methods/admin.apps.requests.cancel

            async def admin_apps_requests_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5853,7 +5927,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -5865,7 +5939,7 @@

            Methods

            return await self.api_call("admin.apps.requests.list", http_verb="GET", params=kwargs)

            List app requests for a team/workspace. -https://api.slack.com/methods/admin.apps.requests.list

            +https://docs.slack.dev/reference/methods/admin.apps.requests.list

            async def admin_apps_restrict(self,
            *,
            app_id: str | None = None,
            request_id: str | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5888,7 +5962,7 @@

            Methods

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -5909,7 +5983,7 @@

            Methods

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. -https://api.slack.com/methods/admin.apps.restrict

            +https://docs.slack.dev/reference/methods/admin.apps.restrict

            async def admin_apps_restricted_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5929,7 +6003,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -5942,7 +6016,7 @@

            Methods

            return await self.api_call("admin.apps.restricted.list", http_verb="GET", params=kwargs)

            List restricted apps for an org or workspace. -https://api.slack.com/methods/admin.apps.restricted.list

            +https://docs.slack.dev/reference/methods/admin.apps.restricted.list

            async def admin_apps_uninstall(self,
            *,
            app_id: str,
            enterprise_id: str | None = None,
            team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5962,7 +6036,7 @@

            Methods

            ) -> AsyncSlackResponse: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -5976,7 +6050,7 @@

            Methods

            Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. -https://api.slack.com/methods/admin.apps.uninstall

            +https://docs.slack.dev/reference/methods/admin.apps.uninstall

            async def admin_auth_policy_assignEntities(self,
            *,
            entity_ids: str | Sequence[str],
            policy_name: str,
            entity_type: str,
            **kwargs) ‑> AsyncSlackResponse
            @@ -5995,7 +6069,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -6006,7 +6080,7 @@

            Methods

            return await self.api_call("admin.auth.policy.assignEntities", http_verb="POST", params=kwargs)

            Assign entities to a particular authentication policy. -https://api.slack.com/methods/admin.auth.policy.assignEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities

            async def admin_auth_policy_getEntities(self,
            *,
            policy_name: str,
            cursor: str | None = None,
            entity_type: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -6026,7 +6100,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -6038,7 +6112,7 @@

            Methods

            return await self.api_call("admin.auth.policy.getEntities", http_verb="POST", params=kwargs)

            Fetch all the entities assigned to a particular authentication policy by name. -https://api.slack.com/methods/admin.auth.policy.getEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities

            async def admin_auth_policy_removeEntities(self,
            *,
            entity_ids: str | Sequence[str],
            policy_name: str,
            entity_type: str,
            **kwargs) ‑> AsyncSlackResponse
            @@ -6057,7 +6131,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -6068,7 +6142,7 @@

            Methods

            return await self.api_call("admin.auth.policy.removeEntities", http_verb="POST", params=kwargs)

            Remove specified entities from a specified authentication policy. -https://api.slack.com/methods/admin.auth.policy.removeEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities

            async def admin_barriers_create(self,
            *,
            barriered_from_usergroup_ids: str | Sequence[str],
            primary_usergroup_id: str,
            restricted_subjects: str | Sequence[str],
            **kwargs) ‑> AsyncSlackResponse
            @@ -6087,7 +6161,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -6101,7 +6175,7 @@

            Methods

            return await self.api_call("admin.barriers.create", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.barriers.create

            async def admin_barriers_delete(self, *, barrier_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6118,13 +6192,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return await self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs)

            Delete an existing Information Barrier -https://api.slack.com/methods/admin.barriers.delete

            +https://docs.slack.dev/reference/methods/admin.barriers.delete

            async def admin_barriers_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> AsyncSlackResponse @@ -6142,7 +6216,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -6152,7 +6226,7 @@

            Methods

            return await self.api_call("admin.barriers.list", http_verb="GET", params=kwargs)

            Get all Information Barriers for your organization -https://api.slack.com/methods/admin.barriers.list

            +https://docs.slack.dev/reference/methods/admin.barriers.list

            async def admin_barriers_update(self,
            *,
            barrier_id: str,
            barriered_from_usergroup_ids: str | Sequence[str],
            primary_usergroup_id: str,
            restricted_subjects: str | Sequence[str],
            **kwargs) ‑> AsyncSlackResponse
            @@ -6172,7 +6246,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -6186,7 +6260,7 @@

            Methods

            return await self.api_call("admin.barriers.update", http_verb="POST", params=kwargs)

            Update an existing Information Barrier -https://api.slack.com/methods/admin.barriers.update

            +https://docs.slack.dev/reference/methods/admin.barriers.update

            async def admin_conversations_archive(self, *, channel_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6203,13 +6277,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.archive", params=kwargs)

            Archive a public or private channel. -https://api.slack.com/methods/admin.conversations.archive

            +https://docs.slack.dev/reference/methods/admin.conversations.archive

            async def admin_conversations_bulkArchive(self, *, channel_ids: str | Sequence[str], **kwargs) ‑> AsyncSlackResponse @@ -6226,13 +6300,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return await self.api_call("admin.conversations.bulkArchive", params=kwargs)

            Archive public or private channels in bulk. -https://api.slack.com/methods/admin.conversations.bulkArchive

            +https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive

            async def admin_conversations_bulkDelete(self, *, channel_ids: str | Sequence[str], **kwargs) ‑> AsyncSlackResponse @@ -6273,7 +6347,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -6284,7 +6358,7 @@

            Methods

            return await self.api_call("admin.conversations.bulkMove", params=kwargs)

            Move public or private channels in bulk. -https://api.slack.com/methods/admin.conversations.bulkMove

            +https://docs.slack.dev/reference/methods/admin.conversations.bulkMove

            async def admin_conversations_convertToPrivate(self, *, channel_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6301,13 +6375,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.convertToPrivate", params=kwargs)

            Convert a public channel to a private channel. -https://api.slack.com/methods/admin.conversations.convertToPrivate

            +https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate

            async def admin_conversations_convertToPublic(self, *, channel_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6324,13 +6398,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.convertToPublic", params=kwargs)

            Convert a privte channel to a public channel. -https://api.slack.com/methods/admin.conversations.convertToPublic

            +https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic

            async def admin_conversations_create(self,
            *,
            is_private: bool,
            name: str,
            description: str | None = None,
            org_wide: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -6351,7 +6425,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -6365,7 +6439,7 @@

            Methods

            return await self.api_call("admin.conversations.create", params=kwargs)

            Create a public or private channel-based conversation. -https://api.slack.com/methods/admin.conversations.create

            +https://docs.slack.dev/reference/methods/admin.conversations.create

            async def admin_conversations_createForObjects(self,
            *,
            object_id: str,
            salesforce_org_id: str,
            invite_object_team: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -6384,7 +6458,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -6392,7 +6466,7 @@

            Methods

            return await self.api_call("admin.conversations.createForObjects", params=kwargs)

            Create a Salesforce channel for the corresponding object provided. -https://api.slack.com/methods/admin.conversations.createForObjects

            +https://docs.slack.dev/reference/methods/admin.conversations.createForObjects

            async def admin_conversations_delete(self, *, channel_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6409,13 +6483,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.delete

            async def admin_conversations_disconnectShared(self,
            *,
            channel_id: str,
            leaving_team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -6433,7 +6507,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -6443,7 +6517,7 @@

            Methods

            return await self.api_call("admin.conversations.disconnectShared", params=kwargs)

            Disconnect a connected channel from one or more workspaces. -https://api.slack.com/methods/admin.conversations.disconnectShared

            +https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared

            async def admin_conversations_ekm_listOriginalConnectedChannelInfo(self,
            *,
            channel_ids: str | Sequence[str] | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -6465,7 +6539,7 @@

            Methods

            """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -6486,7 +6560,7 @@

            Methods

            List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. -https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo

            +https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo

            async def admin_conversations_getConversationPrefs(self, *, channel_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6503,13 +6577,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.getConversationPrefs", params=kwargs)

            Get conversation preferences for a public or private channel. -https://api.slack.com/methods/admin.conversations.getConversationPrefs

            +https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs

            async def admin_conversations_getCustomRetention(self, *, channel_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6526,13 +6600,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.getCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention

            async def admin_conversations_getTeams(self,
            *,
            channel_id: str,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -6551,7 +6625,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -6563,7 +6637,7 @@

            Methods

            return await self.api_call("admin.conversations.getTeams", params=kwargs)

            Set the workspaces in an Enterprise grid org that connect to a channel. -https://api.slack.com/methods/admin.conversations.getTeams

            +https://docs.slack.dev/reference/methods/admin.conversations.getTeams

            async def admin_conversations_invite(self, *, channel_id: str, user_ids: str | Sequence[str], **kwargs) ‑> AsyncSlackResponse @@ -6581,7 +6655,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -6592,7 +6666,7 @@

            Methods

            return await self.api_call("admin.conversations.invite", params=kwargs)

            Invite a user to a public or private channel. -https://api.slack.com/methods/admin.conversations.invite

            +https://docs.slack.dev/reference/methods/admin.conversations.invite

            async def admin_conversations_linkObjects(self, *, channel: str, record_id: str, salesforce_org_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6611,7 +6685,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -6623,7 +6697,7 @@

            Methods

            return await self.api_call("admin.conversations.linkObjects", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.linkObjects

            async def admin_conversations_lookup(self,
            *,
            last_message_activity_before: int,
            team_ids: str | Sequence[str],
            cursor: str | None = None,
            limit: int | None = None,
            max_member_count: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -6644,7 +6718,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -6661,7 +6735,7 @@

            Methods

            return await self.api_call("admin.conversations.lookup", params=kwargs)

            Returns channels on the given team using the filters. -https://api.slack.com/methods/admin.conversations.lookup

            +https://docs.slack.dev/reference/methods/admin.conversations.lookup

            async def admin_conversations_removeCustomRetention(self, *, channel_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6678,13 +6752,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.removeCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention

            async def admin_conversations_rename(self, *, channel_id: str, name: str, **kwargs) ‑> AsyncSlackResponse @@ -6702,13 +6776,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return await self.api_call("admin.conversations.rename", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.rename

            async def admin_conversations_restrictAccess_addGroup(self, *, channel_id: str, group_id: str, team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -6727,7 +6801,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -6743,7 +6817,7 @@

            Methods

            )

            Add an allowlist of IDP groups for accessing a channel. -https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup

            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup

            async def admin_conversations_restrictAccess_listGroups(self, *, channel_id: str, team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -6761,7 +6835,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -6776,7 +6850,7 @@

            Methods

            )
            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups

            async def admin_conversations_restrictAccess_removeGroup(self, *, channel_id: str, group_id: str, team_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6795,7 +6869,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -6811,7 +6885,7 @@

            Methods

            )

            Remove a linked IDP group linked from a private channel. -https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup

            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup

            async def admin_conversations_setConversationPrefs(self, *, channel_id: str, prefs: str | Dict[str, str], **kwargs) ‑> AsyncSlackResponse @@ -6877,7 +6951,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -6887,7 +6961,7 @@

            Methods

            return await self.api_call("admin.conversations.setConversationPrefs", params=kwargs)

            Set the posting permissions for a public or private channel. -https://api.slack.com/methods/admin.conversations.setConversationPrefs

            +https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs

            async def admin_conversations_setCustomRetention(self, *, channel_id: str, duration_days: int, **kwargs) ‑> AsyncSlackResponse @@ -6905,13 +6979,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return await self.api_call("admin.conversations.setCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention

            async def admin_conversations_setTeams(self,
            *,
            channel_id: str,
            org_channel: bool | None = None,
            target_team_ids: str | Sequence[str] | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -6931,7 +7005,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -6947,7 +7021,7 @@

            Methods

            return await self.api_call("admin.conversations.setTeams", params=kwargs)

            Set the workspaces in an Enterprise grid org that connect to a public or private channel. -https://api.slack.com/methods/admin.conversations.setTeams

            +https://docs.slack.dev/reference/methods/admin.conversations.setTeams

            async def admin_conversations_unarchive(self, *, channel_id: str, **kwargs) ‑> AsyncSlackResponse @@ -6964,13 +7038,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.unarchive", params=kwargs)

            Unarchive a public or private channel. -https://api.slack.com/methods/admin.conversations.archive

            +https://docs.slack.dev/reference/methods/admin.conversations.archive

            async def admin_conversations_unlinkObjects(self, *, channel: str, new_name: str, **kwargs) ‑> AsyncSlackResponse @@ -6988,7 +7062,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -6999,7 +7073,7 @@

            Methods

            return await self.api_call("admin.conversations.unlinkObjects", params=kwargs)

            Unlink a Salesforce record from a channel. -https://api.slack.com/methods/admin.conversations.unlinkObjects

            +https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects

            async def admin_emoji_add(self, *, name: str, url: str, **kwargs) ‑> AsyncSlackResponse @@ -7017,13 +7091,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return await self.api_call("admin.emoji.add", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.add

            async def admin_emoji_addAlias(self, *, alias_for: str, name: str, **kwargs) ‑> AsyncSlackResponse @@ -7041,13 +7115,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return await self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.addAlias

            async def admin_emoji_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> AsyncSlackResponse @@ -7065,13 +7139,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return await self.api_call("admin.emoji.list", http_verb="GET", params=kwargs)

            List emoji for an Enterprise Grid organization. -https://api.slack.com/methods/admin.emoji.list

            +https://docs.slack.dev/reference/methods/admin.emoji.list

            async def admin_emoji_remove(self, *, name: str, **kwargs) ‑> AsyncSlackResponse @@ -7088,13 +7162,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return await self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs)

            Remove an emoji across an Enterprise Grid organization. -https://api.slack.com/methods/admin.emoji.remove

            +https://docs.slack.dev/reference/methods/admin.emoji.remove

            async def admin_emoji_rename(self, *, name: str, new_name: str, **kwargs) ‑> AsyncSlackResponse @@ -7112,13 +7186,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return await self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.rename

            async def admin_functions_list(self,
            *,
            app_ids: str | Sequence[str],
            team_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7138,7 +7212,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -7154,7 +7228,7 @@

            Methods

            return await self.api_call("admin.functions.list", params=kwargs)

            Look up functions by a set of apps -https://api.slack.com/methods/admin.functions.list

            +https://docs.slack.dev/reference/methods/admin.functions.list

            async def admin_functions_permissions_lookup(self, *, function_ids: str | Sequence[str], **kwargs) ‑> AsyncSlackResponse @@ -7172,7 +7246,7 @@

            Methods

            ) -> AsyncSlackResponse: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -7182,7 +7256,7 @@

            Methods

            Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. -https://api.slack.com/methods/admin.functions.permissions.lookup

            +https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup

            async def admin_functions_permissions_set(self,
            *,
            function_id: str,
            visibility: str,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7202,7 +7276,7 @@

            Methods

            ) -> AsyncSlackResponse: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -7219,7 +7293,7 @@

            Methods

            Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities -https://api.slack.com/methods/admin.functions.permissions.set

            +https://docs.slack.dev/reference/methods/admin.functions.permissions.set

            async def admin_inviteRequests_approve(self, *, invite_request_id: str, team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -7237,13 +7311,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return await self.api_call("admin.inviteRequests.approve", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.inviteRequests.approve

            async def admin_inviteRequests_approved_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7262,7 +7336,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -7274,7 +7348,7 @@

            Methods

            return await self.api_call("admin.inviteRequests.approved.list", params=kwargs)

            List all approved workspace invite requests. -https://api.slack.com/methods/admin.inviteRequests.approved.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list

            async def admin_inviteRequests_denied_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7293,7 +7367,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -7305,7 +7379,7 @@

            Methods

            return await self.api_call("admin.inviteRequests.denied.list", params=kwargs)

            List all denied workspace invite requests. -https://api.slack.com/methods/admin.inviteRequests.denied.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list

            async def admin_inviteRequests_deny(self, *, invite_request_id: str, team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -7323,13 +7397,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return await self.api_call("admin.inviteRequests.deny", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.inviteRequests.deny

            async def admin_inviteRequests_list(self, **kwargs) ‑> AsyncSlackResponse @@ -7365,7 +7439,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -7379,7 +7453,7 @@

            Methods

            return await self.api_call("admin.roles.addAssignments", params=kwargs)

            Adds members to the specified role with the specified scopes -https://api.slack.com/methods/admin.roles.addAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.addAssignments

            async def admin_roles_listAssignments(self,
            *,
            role_ids: str | Sequence[str] | None = None,
            entity_ids: str | Sequence[str] | None = None,
            cursor: str | None = None,
            limit: str | int | None = None,
            sort_dir: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7401,7 +7475,7 @@

            Methods

            ) -> AsyncSlackResponse: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -7416,7 +7490,7 @@

            Methods

            Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities -https://api.slack.com/methods/admin.roles.listAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.listAssignments

            async def admin_roles_removeAssignments(self,
            *,
            role_id: str,
            entity_ids: str | Sequence[str],
            user_ids: str | Sequence[str],
            **kwargs) ‑> AsyncSlackResponse
            @@ -7435,7 +7509,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -7449,7 +7523,7 @@

            Methods

            return await self.api_call("admin.roles.removeAssignments", params=kwargs)

            Removes a set of users from a role for the given scopes and entities -https://api.slack.com/methods/admin.roles.removeAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.removeAssignments

            async def admin_teams_admins_list(self, *, team_id: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> AsyncSlackResponse @@ -7468,7 +7542,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -7480,7 +7554,7 @@

            Methods

            return await self.api_call("admin.teams.admins.list", http_verb="GET", params=kwargs)

            List all of the admins on a given workspace. -https://api.slack.com/methods/admin.inviteRequests.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.list

            async def admin_teams_create(self,
            *,
            team_domain: str,
            team_name: str,
            team_description: str | None = None,
            team_discoverability: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7500,7 +7574,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -7513,7 +7587,7 @@

            Methods

            return await self.api_call("admin.teams.create", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.create

            async def admin_teams_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> AsyncSlackResponse @@ -7531,13 +7605,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return await self.api_call("admin.teams.list", params=kwargs)

            List all teams on an Enterprise organization. -https://api.slack.com/methods/admin.teams.list

            +https://docs.slack.dev/reference/methods/admin.teams.list

            async def admin_teams_owners_list(self, *, team_id: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> AsyncSlackResponse @@ -7556,13 +7630,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return await self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs)

            List all of the admins on a given workspace. -https://api.slack.com/methods/admin.teams.owners.list

            +https://docs.slack.dev/reference/methods/admin.teams.owners.list

            async def admin_teams_settings_info(self, *, team_id: str, **kwargs) ‑> AsyncSlackResponse @@ -7579,13 +7653,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return await self.api_call("admin.teams.settings.info", params=kwargs)

            Fetch information about settings in a workspace -https://api.slack.com/methods/admin.teams.settings.info

            +https://docs.slack.dev/reference/methods/admin.teams.settings.info

            async def admin_teams_settings_setDefaultChannels(self, *, team_id: str, channel_ids: str | Sequence[str], **kwargs) ‑> AsyncSlackResponse @@ -7603,7 +7677,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -7613,7 +7687,7 @@

            Methods

            return await self.api_call("admin.teams.settings.setDefaultChannels", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels

            async def admin_teams_settings_setDescription(self, *, team_id: str, description: str, **kwargs) ‑> AsyncSlackResponse @@ -7631,13 +7705,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return await self.api_call("admin.teams.settings.setDescription", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription

            async def admin_teams_settings_setDiscoverability(self, *, team_id: str, discoverability: str, **kwargs) ‑> AsyncSlackResponse @@ -7655,13 +7729,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return await self.api_call("admin.teams.settings.setDiscoverability", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability

            async def admin_teams_settings_setIcon(self, *, team_id: str, image_url: str, **kwargs) ‑> AsyncSlackResponse @@ -7679,13 +7753,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return await self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon

            async def admin_teams_settings_setName(self, *, team_id: str, name: str, **kwargs) ‑> AsyncSlackResponse @@ -7703,13 +7777,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return await self.api_call("admin.teams.settings.setName", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setName

            async def admin_usergroups_addChannels(self,
            *,
            channel_ids: str | Sequence[str],
            usergroup_id: str,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7728,7 +7802,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -7738,7 +7812,7 @@

            Methods

            return await self.api_call("admin.usergroups.addChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.addChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.addChannels

            async def admin_usergroups_addTeams(self,
            *,
            usergroup_id: str,
            team_ids: str | Sequence[str],
            auto_provision: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7757,7 +7831,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -7767,7 +7841,7 @@

            Methods

            return await self.api_call("admin.usergroups.addTeams", params=kwargs)

            Associate one or more default workspaces with an organization-wide IDP group. -https://api.slack.com/methods/admin.usergroups.addTeams

            +https://docs.slack.dev/reference/methods/admin.usergroups.addTeams

            async def admin_usergroups_listChannels(self,
            *,
            usergroup_id: str,
            include_num_members: bool | None = None,
            team_id: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7786,7 +7860,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -7798,7 +7872,7 @@

            Methods

            return await self.api_call("admin.usergroups.listChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.listChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.listChannels

            async def admin_usergroups_removeChannels(self, *, usergroup_id: str, channel_ids: str | Sequence[str], **kwargs) ‑> AsyncSlackResponse @@ -7816,7 +7890,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -7826,7 +7900,7 @@

            Methods

            return await self.api_call("admin.usergroups.removeChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.removeChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels

            async def admin_users_assign(self,
            *,
            team_id: str,
            user_id: str,
            channel_ids: str | Sequence[str] | None = None,
            is_restricted: bool | None = None,
            is_ultra_restricted: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7847,7 +7921,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -7864,7 +7938,7 @@

            Methods

            return await self.api_call("admin.users.assign", params=kwargs)

            Add an Enterprise user to a workspace. -https://api.slack.com/methods/admin.users.assign

            +https://docs.slack.dev/reference/methods/admin.users.assign

            async def admin_users_invite(self,
            *,
            team_id: str,
            email: str,
            channel_ids: str | Sequence[str],
            custom_message: str | None = None,
            email_password_policy_enabled: bool | None = None,
            guest_expiration_ts: str | float | None = None,
            is_restricted: bool | None = None,
            is_ultra_restricted: bool | None = None,
            real_name: str | None = None,
            resend: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7890,7 +7964,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -7912,10 +7986,10 @@

            Methods

            return await self.api_call("admin.users.invite", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.users.invite

            -async def admin_users_list(self,
            *,
            team_id: str,
            include_deactivated_user_workspaces: bool | None = None,
            is_active: bool | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            +async def admin_users_list(self,
            *,
            team_id: str | None = None,
            include_deactivated_user_workspaces: bool | None = None,
            is_active: bool | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -7925,7 +7999,7 @@

            Methods

            async def admin_users_list(
                 self,
                 *,
            -    team_id: str,
            +    team_id: Optional[str] = None,
                 include_deactivated_user_workspaces: Optional[bool] = None,
                 is_active: Optional[bool] = None,
                 cursor: Optional[str] = None,
            @@ -7933,7 +8007,7 @@ 

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -7947,7 +8021,7 @@

            Methods

            return await self.api_call("admin.users.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.users.list

            async def admin_users_remove(self, *, team_id: str, user_id: str, **kwargs) ‑> AsyncSlackResponse @@ -7965,13 +8039,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.remove", params=kwargs)

            Remove a user from a workspace. -https://api.slack.com/methods/admin.users.remove

            +https://docs.slack.dev/reference/methods/admin.users.remove

            async def admin_users_session_clearSettings(self, *, user_ids: str | Sequence[str], **kwargs) ‑> AsyncSlackResponse @@ -7989,7 +8063,7 @@

            Methods

            ) -> AsyncSlackResponse: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -7999,7 +8073,7 @@

            Methods

            Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. -https://api.slack.com/methods/admin.users.session.clearSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.clearSettings

            async def admin_users_session_getSettings(self, *, user_ids: str | Sequence[str], **kwargs) ‑> AsyncSlackResponse @@ -8017,7 +8091,7 @@

            Methods

            ) -> AsyncSlackResponse: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8027,7 +8101,7 @@

            Methods

            Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. -https://api.slack.com/methods/admin.users.session.getSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.getSettings

            async def admin_users_session_invalidate(self, *, session_id: str, team_id: str, **kwargs) ‑> AsyncSlackResponse @@ -8045,13 +8119,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return await self.api_call("admin.users.session.invalidate", params=kwargs)

            Invalidate a single session for a user by session_id. -https://api.slack.com/methods/admin.users.session.invalidate

            +https://docs.slack.dev/reference/methods/admin.users.session.invalidate

            async def admin_users_session_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            user_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -8071,7 +8145,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -8084,7 +8158,7 @@

            Methods

            return await self.api_call("admin.users.session.list", params=kwargs)

            Lists all active user sessions for an organization -https://api.slack.com/methods/admin.users.session.list

            +https://docs.slack.dev/reference/methods/admin.users.session.list

            async def admin_users_session_reset(self,
            *,
            user_id: str,
            mobile_only: bool | None = None,
            web_only: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -8103,7 +8177,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -8115,7 +8189,7 @@

            Methods

            return await self.api_call("admin.users.session.reset", params=kwargs)

            Wipes all valid sessions on all devices for a given user. -https://api.slack.com/methods/admin.users.session.reset

            +https://docs.slack.dev/reference/methods/admin.users.session.reset

            async def admin_users_session_resetBulk(self,
            *,
            user_ids: str | Sequence[str],
            mobile_only: bool | None = None,
            web_only: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -8134,7 +8208,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8149,7 +8223,7 @@

            Methods

            return await self.api_call("admin.users.session.resetBulk", params=kwargs)

            Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users -https://api.slack.com/methods/admin.users.session.resetBulk

            +https://docs.slack.dev/reference/methods/admin.users.session.resetBulk

            async def admin_users_session_setSettings(self,
            *,
            user_ids: str | Sequence[str],
            desktop_app_browser_quit: bool | None = None,
            duration: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -8169,7 +8243,7 @@

            Methods

            ) -> AsyncSlackResponse: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8185,7 +8259,7 @@

            Methods

            Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. -https://api.slack.com/methods/admin.users.session.setSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.setSettings

            async def admin_users_setAdmin(self, *, team_id: str, user_id: str, **kwargs) ‑> AsyncSlackResponse @@ -8203,13 +8277,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setAdmin", params=kwargs)

            Set an existing guest, regular user, or owner to be an admin user. -https://api.slack.com/methods/admin.users.setAdmin

            +https://docs.slack.dev/reference/methods/admin.users.setAdmin

            async def admin_users_setExpiration(self, *, expiration_ts: int, user_id: str, team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -8228,13 +8302,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setExpiration", params=kwargs)

            Set an expiration for a guest user. -https://api.slack.com/methods/admin.users.setExpiration

            +https://docs.slack.dev/reference/methods/admin.users.setExpiration

            async def admin_users_setOwner(self, *, team_id: str, user_id: str, **kwargs) ‑> AsyncSlackResponse @@ -8252,13 +8326,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setOwner", params=kwargs)

            Set an existing guest, regular user, or admin user to be a workspace owner. -https://api.slack.com/methods/admin.users.setOwner

            +https://docs.slack.dev/reference/methods/admin.users.setOwner

            async def admin_users_setRegular(self, *, team_id: str, user_id: str, **kwargs) ‑> AsyncSlackResponse @@ -8276,13 +8350,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setRegular", params=kwargs)

            Set an existing guest user, admin user, or owner to be a regular user. -https://api.slack.com/methods/admin.users.setRegular

            +https://docs.slack.dev/reference/methods/admin.users.setRegular

            async def admin_users_unsupportedVersions_export(self,
            *,
            date_end_of_support: str | int | None = None,
            date_sessions_started: str | int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -8301,7 +8375,7 @@

            Methods

            ) -> AsyncSlackResponse: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -8313,7 +8387,7 @@

            Methods

            Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. -https://api.slack.com/methods/admin.users.unsupportedVersions.export

            +https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export

            async def admin_workflows_collaborators_add(self,
            *,
            collaborator_ids: str | Sequence[str],
            workflow_ids: str | Sequence[str],
            **kwargs) ‑> AsyncSlackResponse
            @@ -8331,7 +8405,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -8344,7 +8418,7 @@

            Methods

            return await self.api_call("admin.workflows.collaborators.add", params=kwargs)

            Add collaborators to workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.collaborators.add

            +https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add

            async def admin_workflows_collaborators_remove(self,
            *,
            collaborator_ids: str | Sequence[str],
            workflow_ids: str | Sequence[str],
            **kwargs) ‑> AsyncSlackResponse
            @@ -8362,7 +8436,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -8375,7 +8449,7 @@

            Methods

            return await self.api_call("admin.workflows.collaborators.remove", params=kwargs)

            Remove collaborators from workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.collaborators.remove

            +https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove

            async def admin_workflows_permissions_lookup(self,
            *,
            workflow_ids: str | Sequence[str],
            max_workflow_triggers: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -8393,7 +8467,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -8407,7 +8481,7 @@

            Methods

            return await self.api_call("admin.workflows.permissions.lookup", params=kwargs)

            Look up the permissions for a set of workflows -https://api.slack.com/methods/admin.workflows.permissions.lookup

            +https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup

            async def admin_workflows_unpublish(self, *, workflow_ids: str | Sequence[str], **kwargs) ‑> AsyncSlackResponse @@ -8473,7 +8547,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -8482,7 +8556,7 @@

            Methods

            return await self.api_call("admin.workflows.unpublish", params=kwargs)

            Unpublish workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.unpublish

            +https://docs.slack.dev/reference/methods/admin.workflows.unpublish

            async def api_test(self, *, error: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -8499,13 +8573,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return await self.api_call("api.test", params=kwargs)

            Checks API calling code. -https://api.slack.com/methods/api.test

            +https://docs.slack.dev/reference/methods/api.test

            async def apps_connections_open(self, *, app_token: str, **kwargs) ‑> AsyncSlackResponse @@ -8523,14 +8597,14 @@

            Methods

            ) -> AsyncSlackResponse: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return await self.api_call("apps.connections.open", http_verb="POST", params=kwargs)

            Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads -https://api.slack.com/methods/apps.connections.open

            +https://docs.slack.dev/reference/methods/apps.connections.open

            async def apps_event_authorizations_list(self,
            *,
            event_context: str,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -8550,14 +8624,14 @@

            Methods

            ) -> AsyncSlackResponse: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return await self.api_call("apps.event.authorizations.list", params=kwargs)

            Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. -https://api.slack.com/methods/apps.event.authorizations.list

            +https://docs.slack.dev/reference/methods/apps.event.authorizations.list

            async def apps_manifest_create(self, *, manifest: str | Dict[str, Any], **kwargs) ‑> AsyncSlackResponse @@ -8574,7 +8648,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8583,7 +8657,7 @@

            Methods

            return await self.api_call("apps.manifest.create", params=kwargs)

            Create an app from an app manifest -https://api.slack.com/methods/apps.manifest.create

            +https://docs.slack.dev/reference/methods/apps.manifest.create

            async def apps_manifest_delete(self, *, app_id: str, **kwargs) ‑> AsyncSlackResponse @@ -8600,13 +8674,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return await self.api_call("apps.manifest.delete", params=kwargs)

            Permanently deletes an app created through app manifests -https://api.slack.com/methods/apps.manifest.delete

            +https://docs.slack.dev/reference/methods/apps.manifest.delete

            async def apps_manifest_export(self, *, app_id: str, **kwargs) ‑> AsyncSlackResponse @@ -8623,13 +8697,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return await self.api_call("apps.manifest.export", params=kwargs)

            Export an app manifest from an existing app -https://api.slack.com/methods/apps.manifest.export

            +https://docs.slack.dev/reference/methods/apps.manifest.export

            async def apps_manifest_update(self, *, app_id: str, manifest: str | Dict[str, Any], **kwargs) ‑> AsyncSlackResponse @@ -8647,7 +8721,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8657,7 +8731,7 @@

            Methods

            return await self.api_call("apps.manifest.update", params=kwargs)

            Update an app from an app manifest -https://api.slack.com/methods/apps.manifest.update

            +https://docs.slack.dev/reference/methods/apps.manifest.update

            async def apps_manifest_validate(self, *, manifest: str | Dict[str, Any], app_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -8675,7 +8749,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8685,7 +8759,7 @@

            Methods

            return await self.api_call("apps.manifest.validate", params=kwargs)
            +https://docs.slack.dev/reference/methods/apps.manifest.validate

            async def apps_uninstall(self, *, client_id: str, client_secret: str, **kwargs) ‑> AsyncSlackResponse @@ -8703,13 +8777,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return await self.api_call("apps.uninstall", params=kwargs)

            Uninstalls your app from a workspace. -https://api.slack.com/methods/apps.uninstall

            +https://docs.slack.dev/reference/methods/apps.uninstall

            async def assistant_threads_setStatus(self, *, channel_id: str, thread_ts: str, status: str, **kwargs) ‑> AsyncSlackResponse @@ -8728,13 +8802,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return await self.api_call("assistant.threads.setStatus", params=kwargs)
            +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
            @@ -8754,7 +8828,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -8762,7 +8836,7 @@

            Methods

            return await self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
            +https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts

            async def assistant_threads_setTitle(self, *, channel_id: str, thread_ts: str, title: str, **kwargs) ‑> AsyncSlackResponse @@ -8781,13 +8855,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return await self.api_call("assistant.threads.setTitle", params=kwargs)
            +https://docs.slack.dev/reference/methods/assistant.threads.setTitle

            async def auth_revoke(self, *, test: bool | None = None, **kwargs) ‑> AsyncSlackResponse @@ -8804,13 +8878,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return await self.api_call("auth.revoke", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/auth.revoke

            async def auth_teams_list(self,
            cursor: str | None = None,
            limit: int | None = None,
            include_icon: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -8828,13 +8902,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return await self.api_call("auth.teams.list", params=kwargs)

            List the workspaces a token can access. -https://api.slack.com/methods/auth.teams.list

            +https://docs.slack.dev/reference/methods/auth.teams.list

            async def auth_test(self, **kwargs) ‑> AsyncSlackResponse @@ -8849,12 +8923,12 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return await self.api_call("auth.test", params=kwargs)

            Checks authentication & identity. -https://api.slack.com/methods/auth.test

            +https://docs.slack.dev/reference/methods/auth.test

            async def bookmarks_add(self,
            *,
            channel_id: str,
            title: str,
            type: str,
            emoji: str | None = None,
            entity_id: str | None = None,
            link: str | None = None,
            parent_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -8877,7 +8951,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -8893,7 +8967,7 @@

            Methods

            return await self.api_call("bookmarks.add", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/bookmarks.add

            async def bookmarks_edit(self,
            *,
            bookmark_id: str,
            channel_id: str,
            emoji: str | None = None,
            link: str | None = None,
            title: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -8914,7 +8988,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -8928,7 +9002,7 @@

            Methods

            return await self.api_call("bookmarks.edit", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/bookmarks.edit

            async def bookmarks_list(self, *, channel_id: str, **kwargs) ‑> AsyncSlackResponse @@ -8945,13 +9019,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return await self.api_call("bookmarks.list", http_verb="POST", params=kwargs)

            List bookmark for the channel. -https://api.slack.com/methods/bookmarks.list

            +https://docs.slack.dev/reference/methods/bookmarks.list

            async def bookmarks_remove(self, *, bookmark_id: str, channel_id: str, **kwargs) ‑> AsyncSlackResponse @@ -8969,13 +9043,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return await self.api_call("bookmarks.remove", http_verb="POST", params=kwargs)

            Remove bookmark from the channel. -https://api.slack.com/methods/bookmarks.remove

            +https://docs.slack.dev/reference/methods/bookmarks.remove

            async def bots_info(self, *, bot: str | None = None, team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -8993,13 +9067,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return await self.api_call("bots.info", http_verb="GET", params=kwargs)

            Gets information about a bot user. -https://api.slack.com/methods/bots.info

            +https://docs.slack.dev/reference/methods/bots.info

            async def calls_add(self,
            *,
            external_unique_id: str,
            join_url: str,
            created_by: str | None = None,
            date_start: int | None = None,
            desktop_app_join_url: str | None = None,
            external_display_id: str | None = None,
            title: str | None = None,
            users: str | Sequence[Dict[str, str]] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -9023,7 +9097,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -9043,7 +9117,7 @@

            Methods

            return await self.api_call("calls.add", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/calls.add

            async def calls_end(self, *, id: str, duration: int | None = None, **kwargs) ‑> AsyncSlackResponse @@ -9061,13 +9135,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return await self.api_call("calls.end", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/calls.end

            async def calls_info(self, *, id: str, **kwargs) ‑> AsyncSlackResponse @@ -9084,13 +9158,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return await self.api_call("calls.info", http_verb="POST", params=kwargs)

            Returns information about a Call. -https://api.slack.com/methods/calls.info

            +https://docs.slack.dev/reference/methods/calls.info

            async def calls_participants_add(self, *, id: str, users: str | Sequence[Dict[str, str]], **kwargs) ‑> AsyncSlackResponse @@ -9108,14 +9182,14 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) return await self.api_call("calls.participants.add", http_verb="POST", params=kwargs)

            Registers new participants added to a Call. -https://api.slack.com/methods/calls.participants.add

            +https://docs.slack.dev/reference/methods/calls.participants.add

            async def calls_participants_remove(self, *, id: str, users: str | Sequence[Dict[str, str]], **kwargs) ‑> AsyncSlackResponse @@ -9133,14 +9207,14 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) return await self.api_call("calls.participants.remove", http_verb="POST", params=kwargs)

            Registers participants removed from a Call. -https://api.slack.com/methods/calls.participants.remove

            +https://docs.slack.dev/reference/methods/calls.participants.remove

            async def calls_update(self,
            *,
            id: str,
            desktop_app_join_url: str | None = None,
            join_url: str | None = None,
            title: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -9160,7 +9234,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -9173,7 +9247,7 @@

            Methods

            return await self.api_call("calls.update", http_verb="POST", params=kwargs)

            Updates information about a Call. -https://api.slack.com/methods/calls.update

            +https://docs.slack.dev/reference/methods/calls.update

            async def canvases_access_delete(self,
            *,
            canvas_id: str,
            channel_ids: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -9192,7 +9266,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -9208,7 +9282,7 @@

            Methods

            return await self.api_call("canvases.access.delete", params=kwargs)

            Create a Channel Canvas for a channel -https://api.slack.com/methods/canvases.access.delete

            +https://docs.slack.dev/reference/methods/canvases.access.delete

            async def canvases_access_set(self,
            *,
            canvas_id: str,
            access_level: str,
            channel_ids: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -9228,7 +9302,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -9245,7 +9319,7 @@

            Methods

            return await self.api_call("canvases.access.set", params=kwargs)

            Sets the access level to a canvas for specified entities -https://api.slack.com/methods/canvases.access.set

            +https://docs.slack.dev/reference/methods/canvases.access.set

            async def canvases_create(self, *, title: str | None = None, document_content: Dict[str, str], **kwargs) ‑> AsyncSlackResponse @@ -9263,13 +9337,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return await self.api_call("canvases.create", json=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.create

            async def canvases_delete(self, *, canvas_id: str, **kwargs) ‑> AsyncSlackResponse @@ -9286,13 +9360,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return await self.api_call("canvases.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.delete

            async def canvases_edit(self, *, canvas_id: str, changes: Sequence[Dict[str, Any]], **kwargs) ‑> AsyncSlackResponse @@ -9310,13 +9384,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return await self.api_call("canvases.edit", json=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.edit

            async def canvases_sections_lookup(self, *, canvas_id: str, criteria: Dict[str, Any], **kwargs) ‑> AsyncSlackResponse @@ -9334,13 +9408,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return await self.api_call("canvases.sections.lookup", params=kwargs)

            Find sections matching the provided criteria -https://api.slack.com/methods/canvases.sections.lookup

            +https://docs.slack.dev/reference/methods/canvases.sections.lookup

            async def channels_archive(self, *, channel: str, **kwargs) ‑> AsyncSlackResponse @@ -9674,13 +9748,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return await self.api_call("chat.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.delete

            async def chat_deleteScheduledMessage(self,
            *,
            channel: str,
            scheduled_message_id: str,
            as_user: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -9699,7 +9773,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -9711,7 +9785,7 @@

            Methods

            return await self.api_call("chat.deleteScheduledMessage", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage

            async def chat_meMessage(self, *, channel: str, text: str, **kwargs) ‑> AsyncSlackResponse @@ -9753,16 +9827,16 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return await self.api_call("chat.meMessage", params=kwargs)

            Share a me message into a channel. -https://api.slack.com/methods/chat.meMessage

            +https://docs.slack.dev/reference/methods/chat.meMessage

            -async def chat_postEphemeral(self,
            *,
            channel: str,
            user: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            +async def chat_postEphemeral(self,
            *,
            channel: str,
            user: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -9784,10 +9858,11 @@

            Methods

            link_names: Optional[bool] = None, username: Optional[str] = None, parse: Optional[str] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> AsyncSlackResponse: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -9803,19 +9878,20 @@

            Methods

            "link_names": link_names, "username": username, "parse": parse, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postEphemeral", kwargs) + _warn_if_message_text_content_is_missing("chat.postEphemeral", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return await self.api_call("chat.postEphemeral", json=kwargs)

            Sends an ephemeral message to a user in a channel. -https://api.slack.com/methods/chat.postEphemeral

            +https://docs.slack.dev/reference/methods/chat.postEphemeral

            -async def chat_postMessage(self,
            *,
            channel: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            container_id: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            mrkdwn: bool | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> AsyncSlackResponse
            +async def chat_postMessage(self,
            *,
            channel: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            container_id: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            mrkdwn: bool | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -9842,10 +9918,11 @@

            Methods

            username: Optional[str] = None, parse: Optional[str] = None, # none, full metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> AsyncSlackResponse: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -9866,19 +9943,20 @@

            Methods

            "username": username, "parse": parse, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.postMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return await self.api_call("chat.postMessage", json=kwargs)

            Sends a message to a channel. -https://api.slack.com/methods/chat.postMessage

            +https://docs.slack.dev/reference/methods/chat.postMessage

            -async def chat_scheduleMessage(self,
            *,
            channel: str,
            post_at: str | int,
            text: str,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            link_names: bool | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> AsyncSlackResponse
            +async def chat_scheduleMessage(self,
            *,
            channel: str,
            post_at: str | int,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            link_names: bool | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -9890,7 +9968,7 @@

            Methods

            *, channel: str, post_at: Union[str, int], - text: str, + text: Optional[str] = None, as_user: Optional[bool] = None, attachments: Optional[Union[str, Sequence[Union[Dict, Attachment]]]] = None, blocks: Optional[Union[str, Sequence[Union[Dict, Block]]]] = None, @@ -9901,10 +9979,11 @@

            Methods

            unfurl_media: Optional[bool] = None, link_names: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> AsyncSlackResponse: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -9921,16 +10000,17 @@

            Methods

            "unfurl_media": unfurl_media, "link_names": link_names, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.scheduleMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.scheduleMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return await self.api_call("chat.scheduleMessage", json=kwargs)
            +https://docs.slack.dev/reference/methods/chat.scheduleMessage

            async def chat_scheduledMessages_list(self,
            *,
            channel: str | None = None,
            cursor: str | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -9952,7 +10032,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -9967,7 +10047,7 @@

            Methods

            return await self.api_call("chat.scheduledMessages.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.scheduledMessages.list

            async def chat_unfurl(self,
            *,
            channel: str | None = None,
            ts: str | None = None,
            source: str | None = None,
            unfurl_id: str | None = None,
            unfurls: Dict[str, Dict] | None = None,
            user_auth_blocks: str | Sequence[Dict | Block] | None = None,
            user_auth_message: str | None = None,
            user_auth_required: bool | None = None,
            user_auth_url: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -9992,7 +10072,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -10013,10 +10093,10 @@

            Methods

            return await self.api_call("chat.unfurl", json=kwargs)

            Provide custom unfurl behavior for user-posted URLs. -https://api.slack.com/methods/chat.unfurl

            +https://docs.slack.dev/reference/methods/chat.unfurl

            -async def chat_update(self,
            *,
            channel: str,
            ts: str,
            text: str | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            as_user: bool | None = None,
            file_ids: str | Sequence[str] | None = None,
            link_names: bool | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> AsyncSlackResponse
            +async def chat_update(self,
            *,
            channel: str,
            ts: str,
            text: str | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            as_user: bool | None = None,
            file_ids: str | Sequence[str] | None = None,
            link_names: bool | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10037,10 +10117,11 @@

            Methods

            parse: Optional[str] = None, # none, full reply_broadcast: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> AsyncSlackResponse: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -10054,6 +10135,7 @@

            Methods

            "parse": parse, "reply_broadcast": reply_broadcast, "metadata": metadata, + "markdown_text": markdown_text, } ) if isinstance(file_ids, (list, tuple)): @@ -10062,12 +10144,12 @@

            Methods

            kwargs.update({"file_ids": file_ids}) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.update", kwargs) + _warn_if_message_text_content_is_missing("chat.update", kwargs) # NOTE: intentionally using json over params for API methods using blocks/attachments return await self.api_call("chat.update", json=kwargs)

            Updates a message in a channel. -https://api.slack.com/methods/chat.update

            +https://docs.slack.dev/reference/methods/chat.update

            async def conversations_acceptSharedInvite(self,
            *,
            channel_name: str,
            channel_id: str | None = None,
            invite_id: str | None = None,
            free_trial_accepted: bool | None = None,
            is_private: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10089,7 +10171,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -10106,7 +10188,7 @@

            Methods

            return await self.api_call("conversations.acceptSharedInvite", http_verb="POST", params=kwargs)

            Accepts an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.acceptSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite

            async def conversations_approveSharedInvite(self, *, invite_id: str, target_team: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -10124,13 +10206,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return await self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs)

            Approves an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.approveSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.approveSharedInvite

            async def conversations_archive(self, *, channel: str, **kwargs) ‑> AsyncSlackResponse @@ -10147,13 +10229,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return await self.api_call("conversations.archive", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.archive

            async def conversations_canvases_create(self, *, channel_id: str, document_content: Dict[str, str], **kwargs) ‑> AsyncSlackResponse @@ -10171,13 +10253,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return await self.api_call("conversations.canvases.create", json=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.canvases.create

            async def conversations_close(self, *, channel: str, **kwargs) ‑> AsyncSlackResponse @@ -10194,13 +10276,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return await self.api_call("conversations.close", params=kwargs)

            Closes a direct message or multi-person direct message. -https://api.slack.com/methods/conversations.close

            +https://docs.slack.dev/reference/methods/conversations.close

            async def conversations_create(self,
            *,
            name: str,
            is_private: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10219,13 +10301,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return await self.api_call("conversations.create", params=kwargs)

            Initiates a public or private channel-based conversation -https://api.slack.com/methods/conversations.create

            +https://docs.slack.dev/reference/methods/conversations.create

            async def conversations_declineSharedInvite(self, *, invite_id: str, target_team: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -10243,13 +10325,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return await self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs)

            Declines a Slack Connect channel invite. -https://api.slack.com/methods/conversations.declineSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.declineSharedInvite

            async def conversations_externalInvitePermissions_set(self, *, action: str, channel: str, target_team: str, **kwargs) ‑> AsyncSlackResponse @@ -10263,7 +10345,7 @@

            Methods

            self, *, action: str, channel: str, target_team: str, **kwargs ) -> AsyncSlackResponse: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -10275,7 +10357,7 @@

            Methods

            return await self.api_call("conversations.externalInvitePermissions.set", params=kwargs)

            Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. -https://api.slack.com/methods/conversations.externalInvitePermissions.set

            +https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set

            async def conversations_history(self,
            *,
            channel: str,
            cursor: str | None = None,
            inclusive: bool | None = None,
            include_all_metadata: bool | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10298,7 +10380,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -10314,7 +10396,7 @@

            Methods

            return await self.api_call("conversations.history", http_verb="GET", params=kwargs)

            Fetches a conversation's history of messages and events. -https://api.slack.com/methods/conversations.history

            +https://docs.slack.dev/reference/methods/conversations.history

            async def conversations_info(self,
            *,
            channel: str,
            include_locale: bool | None = None,
            include_num_members: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10333,7 +10415,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -10345,7 +10427,7 @@

            Methods

            return await self.api_call("conversations.info", http_verb="GET", params=kwargs)

            Retrieve information about a conversation. -https://api.slack.com/methods/conversations.info

            +https://docs.slack.dev/reference/methods/conversations.info

            async def conversations_invite(self,
            *,
            channel: str,
            users: str | Sequence[str],
            force: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10364,7 +10446,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -10379,7 +10461,7 @@

            Methods

            return await self.api_call("conversations.invite", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.invite

            async def conversations_inviteShared(self,
            *,
            channel: str,
            emails: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10398,7 +10480,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -10414,7 +10496,7 @@

            Methods

            return await self.api_call("conversations.inviteShared", http_verb="GET", params=kwargs)

            Sends an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.inviteShared

            +https://docs.slack.dev/reference/methods/conversations.inviteShared

            async def conversations_join(self, *, channel: str, **kwargs) ‑> AsyncSlackResponse @@ -10431,13 +10513,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return await self.api_call("conversations.join", params=kwargs)

            Joins an existing conversation. -https://api.slack.com/methods/conversations.join

            +https://docs.slack.dev/reference/methods/conversations.join

            async def conversations_kick(self, *, channel: str, user: str, **kwargs) ‑> AsyncSlackResponse @@ -10455,13 +10537,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return await self.api_call("conversations.kick", params=kwargs)

            Removes a user from a conversation. -https://api.slack.com/methods/conversations.kick

            +https://docs.slack.dev/reference/methods/conversations.kick

            async def conversations_leave(self, *, channel: str, **kwargs) ‑> AsyncSlackResponse @@ -10478,13 +10560,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return await self.api_call("conversations.leave", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.leave

            async def conversations_list(self,
            *,
            cursor: str | None = None,
            exclude_archived: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            types: str | Sequence[str] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10505,7 +10587,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -10522,7 +10604,7 @@

            Methods

            return await self.api_call("conversations.list", http_verb="GET", params=kwargs)

            Lists all channels in a Slack team. -https://api.slack.com/methods/conversations.list

            +https://docs.slack.dev/reference/methods/conversations.list

            async def conversations_listConnectInvites(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10542,14 +10624,14 @@

            Methods

            ) -> AsyncSlackResponse: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return await self.api_call("conversations.listConnectInvites", params=kwargs)

            List shared channel invites that have been generated or received but have not yet been approved by all parties. -https://api.slack.com/methods/conversations.listConnectInvites

            +https://docs.slack.dev/reference/methods/conversations.listConnectInvites

            async def conversations_mark(self, *, channel: str, ts: str, **kwargs) ‑> AsyncSlackResponse @@ -10567,13 +10649,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return await self.api_call("conversations.mark", params=kwargs)

            Sets the read cursor in a channel. -https://api.slack.com/methods/conversations.mark

            +https://docs.slack.dev/reference/methods/conversations.mark

            async def conversations_members(self, *, channel: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> AsyncSlackResponse @@ -10592,13 +10674,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return await self.api_call("conversations.members", http_verb="GET", params=kwargs)

            Retrieve members of a conversation. -https://api.slack.com/methods/conversations.members

            +https://docs.slack.dev/reference/methods/conversations.members

            async def conversations_open(self,
            *,
            channel: str | None = None,
            return_im: bool | None = None,
            users: str | Sequence[str] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10617,7 +10699,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -10629,7 +10711,7 @@

            Methods

            return await self.api_call("conversations.open", params=kwargs)

            Opens or resumes a direct message or multi-person direct message. -https://api.slack.com/methods/conversations.open

            +https://docs.slack.dev/reference/methods/conversations.open

            async def conversations_rename(self, *, channel: str, name: str, **kwargs) ‑> AsyncSlackResponse @@ -10647,13 +10729,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return await self.api_call("conversations.rename", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.rename

            async def conversations_replies(self,
            *,
            channel: str,
            ts: str,
            cursor: str | None = None,
            inclusive: bool | None = None,
            include_all_metadata: bool | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10677,7 +10759,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -10694,7 +10776,7 @@

            Methods

            return await self.api_call("conversations.replies", http_verb="GET", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.replies

            async def conversations_requestSharedInvite_approve(self,
            *,
            invite_id: str,
            channel_id: str | None = None,
            is_external_limited: str | None = None,
            message: Dict[str, Any] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10714,7 +10796,7 @@

            Methods

            **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -10728,7 +10810,7 @@

            Methods

            return await self.api_call("conversations.requestSharedInvite.approve", params=kwargs)

            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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve

            async def conversations_requestSharedInvite_deny(self, *, invite_id: str, message: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -10746,13 +10828,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return await self.api_call("conversations.requestSharedInvite.deny", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny

            async def conversations_requestSharedInvite_list(self,
            *,
            cursor: str | None = None,
            include_approved: bool | None = None,
            include_denied: bool | None = None,
            include_expired: bool | None = None,
            invite_ids: str | Sequence[str] | None = None,
            limit: int | None = None,
            user_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -10775,7 +10857,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -10795,7 +10877,7 @@

            Methods

            return await self.api_call("conversations.requestSharedInvite.list", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list

            async def conversations_setPurpose(self, *, channel: str, purpose: str, **kwargs) ‑> AsyncSlackResponse @@ -10813,13 +10895,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return await self.api_call("conversations.setPurpose", params=kwargs)

            Sets the purpose for a conversation. -https://api.slack.com/methods/conversations.setPurpose

            +https://docs.slack.dev/reference/methods/conversations.setPurpose

            async def conversations_setTopic(self, *, channel: str, topic: str, **kwargs) ‑> AsyncSlackResponse @@ -10837,13 +10919,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return await self.api_call("conversations.setTopic", params=kwargs)

            Sets the topic for a conversation. -https://api.slack.com/methods/conversations.setTopic

            +https://docs.slack.dev/reference/methods/conversations.setTopic

            async def conversations_unarchive(self, *, channel: str, **kwargs) ‑> AsyncSlackResponse @@ -10860,13 +10942,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return await self.api_call("conversations.unarchive", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.unarchive

            async def dialog_open(self, *, dialog: Dict[str, Any], trigger_id: str, **kwargs) ‑> AsyncSlackResponse @@ -10884,7 +10966,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -10892,7 +10974,7 @@

            Methods

            return await self.api_call("dialog.open", json=kwargs)

            Open a dialog with a user. -https://api.slack.com/methods/dialog.open

            +https://docs.slack.dev/reference/methods/dialog.open

            async def dnd_endDnd(self, **kwargs) ‑> AsyncSlackResponse @@ -10907,12 +10989,12 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return await self.api_call("dnd.endDnd", params=kwargs)

            Ends the current user's Do Not Disturb session immediately. -https://api.slack.com/methods/dnd.endDnd

            +https://docs.slack.dev/reference/methods/dnd.endDnd

            async def dnd_endSnooze(self, **kwargs) ‑> AsyncSlackResponse @@ -10927,12 +11009,12 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return await self.api_call("dnd.endSnooze", params=kwargs)

            Ends the current user's snooze mode immediately. -https://api.slack.com/methods/dnd.endSnooze

            +https://docs.slack.dev/reference/methods/dnd.endSnooze

            async def dnd_info(self, *, team_id: str | None = None, user: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -10950,13 +11032,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return await self.api_call("dnd.info", http_verb="GET", params=kwargs)

            Retrieves a user's current Do Not Disturb status. -https://api.slack.com/methods/dnd.info

            +https://docs.slack.dev/reference/methods/dnd.info

            async def dnd_setSnooze(self, *, num_minutes: str | int, **kwargs) ‑> AsyncSlackResponse @@ -10973,13 +11055,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return await self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs)

            Turns on Do Not Disturb mode for the current user, or changes its duration. -https://api.slack.com/methods/dnd.setSnooze

            +https://docs.slack.dev/reference/methods/dnd.setSnooze

            async def dnd_teamInfo(self, users: str | Sequence[str], team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -10996,7 +11078,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -11006,7 +11088,7 @@

            Methods

            return await self.api_call("dnd.teamInfo", http_verb="GET", params=kwargs)

            Retrieves the Do Not Disturb status for users on a team. -https://api.slack.com/methods/dnd.teamInfo

            +https://docs.slack.dev/reference/methods/dnd.teamInfo

            async def emoji_list(self, include_categories: bool | None = None, **kwargs) ‑> AsyncSlackResponse @@ -11022,13 +11104,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return await self.api_call("emoji.list", http_verb="GET", params=kwargs)

            Lists custom emoji for a team. -https://api.slack.com/methods/emoji.list

            +https://docs.slack.dev/reference/methods/emoji.list

            async def files_comments_delete(self, *, file: str, id: str, **kwargs) ‑> AsyncSlackResponse @@ -11046,13 +11128,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return await self.api_call("files.comments.delete", params=kwargs)

            Deletes an existing comment on a file. -https://api.slack.com/methods/files.comments.delete

            +https://docs.slack.dev/reference/methods/files.comments.delete

            async def files_completeUploadExternal(self,
            *,
            files: List[Dict[str, str]],
            channel_id: str | None = None,
            channels: List[str] | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -11073,7 +11155,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -11089,7 +11171,7 @@

            Methods

            return await self.api_call("files.completeUploadExternal", params=kwargs)

            Finishes an upload started with files.getUploadURLExternal. -https://api.slack.com/methods/files.completeUploadExternal

            +https://docs.slack.dev/reference/methods/files.completeUploadExternal

            async def files_delete(self, *, file: str, **kwargs) ‑> AsyncSlackResponse @@ -11106,13 +11188,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return await self.api_call("files.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/files.delete

            async def files_getUploadURLExternal(self,
            *,
            filename: str,
            length: int,
            alt_txt: str | None = None,
            snippet_type: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -11132,7 +11214,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -11145,7 +11227,7 @@

            Methods

            return await self.api_call("files.getUploadURLExternal", params=kwargs)

            Gets a URL for an edge external upload. -https://api.slack.com/methods/files.getUploadURLExternal

            +https://docs.slack.dev/reference/methods/files.getUploadURLExternal

            async def files_info(self,
            *,
            file: str,
            count: int | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            page: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -11166,7 +11248,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -11180,7 +11262,7 @@

            Methods

            return await self.api_call("files.info", http_verb="GET", params=kwargs)

            Gets information about a team file. -https://api.slack.com/methods/files.info

            +https://docs.slack.dev/reference/methods/files.info

            async def files_list(self,
            *,
            channel: str | None = None,
            count: int | None = None,
            page: int | None = None,
            show_files_hidden_by_limit: bool | None = None,
            team_id: str | None = None,
            ts_from: str | None = None,
            ts_to: str | None = None,
            types: str | Sequence[str] | None = None,
            user: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -11205,7 +11287,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -11226,7 +11308,7 @@

            Methods

            return await self.api_call("files.list", http_verb="GET", params=kwargs)

            Lists & filters team files. -https://api.slack.com/methods/files.list

            +https://docs.slack.dev/reference/methods/files.list

            async def files_remote_add(self,
            *,
            external_id: str,
            external_url: str,
            title: str,
            filetype: str | None = None,
            indexable_file_contents: str | bytes | io.IOBase | None = None,
            preview_image: str | bytes | io.IOBase | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -11248,7 +11330,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -11275,7 +11357,7 @@

            Methods

            )

            Adds a file from a remote service. -https://api.slack.com/methods/files.remote.add

            +https://docs.slack.dev/reference/methods/files.remote.add

            async def files_remote_info(self, *, external_id: str | None = None, file: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -11293,13 +11375,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return await self.api_call("files.remote.info", http_verb="GET", params=kwargs)

            Retrieve information about a remote file added to Slack. -https://api.slack.com/methods/files.remote.info

            +https://docs.slack.dev/reference/methods/files.remote.info

            async def files_remote_list(self,
            *,
            channel: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            ts_from: str | None = None,
            ts_to: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -11320,7 +11402,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -11334,7 +11416,7 @@

            Methods

            return await self.api_call("files.remote.list", http_verb="GET", params=kwargs)

            Retrieve information about a remote file added to Slack. -https://api.slack.com/methods/files.remote.list

            +https://docs.slack.dev/reference/methods/files.remote.list

            async def files_remote_remove(self, *, external_id: str | None = None, file: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -11352,13 +11434,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return await self.api_call("files.remote.remove", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/files.remote.remove

            async def files_remote_share(self,
            *,
            channels: str | Sequence[str],
            external_id: str | None = None,
            file: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -11377,7 +11459,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -11389,7 +11471,7 @@

            Methods

            return await self.api_call("files.remote.share", http_verb="GET", params=kwargs)

            Share a remote file into a channel. -https://api.slack.com/methods/files.remote.share

            +https://docs.slack.dev/reference/methods/files.remote.share

            async def files_remote_update(self,
            *,
            external_id: str | None = None,
            external_url: str | None = None,
            file: str | None = None,
            title: str | None = None,
            filetype: str | None = None,
            indexable_file_contents: str | None = None,
            preview_image: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -11412,7 +11494,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -11440,7 +11522,7 @@

            Methods

            )

            Updates an existing remote file. -https://api.slack.com/methods/files.remote.update

            +https://docs.slack.dev/reference/methods/files.remote.update

            async def files_revokePublicURL(self, *, file: str, **kwargs) ‑> AsyncSlackResponse @@ -11457,13 +11539,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return await self.api_call("files.revokePublicURL", params=kwargs)

            Revokes public/external sharing access for a file -https://api.slack.com/methods/files.revokePublicURL

            +https://docs.slack.dev/reference/methods/files.revokePublicURL

            async def files_sharedPublicURL(self, *, file: str, **kwargs) ‑> AsyncSlackResponse @@ -11480,13 +11562,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return await self.api_call("files.sharedPublicURL", params=kwargs)

            Enables a file for public/external sharing. -https://api.slack.com/methods/files.sharedPublicURL

            +https://docs.slack.dev/reference/methods/files.sharedPublicURL

            async def files_upload(self,
            *,
            file: str | bytes | io.IOBase | None = None,
            content: str | bytes | None = None,
            filename: str | None = None,
            filetype: str | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            title: str | None = None,
            channels: str | Sequence[str] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -11510,7 +11592,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -11543,7 +11625,7 @@

            Methods

            return await self.api_call("files.upload", data=kwargs)

            Uploads or creates a file. -https://api.slack.com/methods/files.upload

            +https://docs.slack.dev/reference/methods/files.upload

            async def files_upload_v2(self,
            *,
            filename: str | None = None,
            file: str | bytes | io.IOBase | os.PathLike | None = None,
            content: str | bytes | None = None,
            title: str | None = None,
            alt_txt: str | None = None,
            snippet_type: str | None = None,
            file_uploads: List[Dict[str, Any]] | None = None,
            channel: str | None = None,
            channels: List[str] | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            request_file_info: bool = True,
            **kwargs) ‑> AsyncSlackResponse
            @@ -11574,12 +11656,12 @@

            Methods

            ) -> AsyncSlackResponse: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -11658,14 +11740,14 @@

            Methods

            This wrapper method provides an easy way to upload files using the following endpoints:

            @@ -11685,13 +11767,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return await self.api_call("functions.completeError", params=kwargs)

            Signal the failure to execute a function -https://api.slack.com/methods/functions.completeError

            +https://docs.slack.dev/reference/methods/functions.completeError

            async def functions_completeSuccess(self, *, function_execution_id: str, outputs: Dict[str, Any], **kwargs) ‑> AsyncSlackResponse @@ -11709,13 +11791,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return await self.api_call("functions.completeSuccess", params=kwargs)

            Signal the successful completion of a function -https://api.slack.com/methods/functions.completeSuccess

            +https://docs.slack.dev/reference/methods/functions.completeSuccess

            async def groups_archive(self, *, channel: str, **kwargs) ‑> AsyncSlackResponse @@ -12191,7 +12273,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -12201,7 +12283,7 @@

            Methods

            return await self.api_call("migration.exchange", http_verb="GET", params=kwargs)

            For Enterprise Grid workspaces, map local user IDs to global user IDs -https://api.slack.com/methods/migration.exchange

            +https://docs.slack.dev/reference/methods/migration.exchange

            async def mpim_close(self, *, channel: str, **kwargs) ‑> AsyncSlackResponse @@ -12348,7 +12430,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12360,7 +12442,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token. -https://api.slack.com/methods/oauth.access

            +https://docs.slack.dev/reference/methods/oauth.access

            async def oauth_v2_access(self,
            *,
            client_id: str,
            client_secret: str,
            code: str | None = None,
            redirect_uri: str | None = None,
            grant_type: str | None = None,
            refresh_token: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12386,7 +12468,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12403,7 +12485,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token. -https://api.slack.com/methods/oauth.v2.access

            +https://docs.slack.dev/reference/methods/oauth.v2.access

            async def oauth_v2_exchange(self, *, token: str, client_id: str, client_secret: str, **kwargs) ‑> AsyncSlackResponse @@ -12422,13 +12504,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return await self.api_call("oauth.v2.exchange", params=kwargs)

            Exchanges a legacy access token for a new expiring access token and refresh token -https://api.slack.com/methods/oauth.v2.exchange

            +https://docs.slack.dev/reference/methods/oauth.v2.exchange

            async def openid_connect_token(self,
            client_id: str,
            client_secret: str,
            code: str | None = None,
            redirect_uri: str | None = None,
            grant_type: str | None = None,
            refresh_token: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12449,7 +12531,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12466,7 +12548,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. -https://api.slack.com/methods/openid.connect.token

            +https://docs.slack.dev/reference/methods/openid.connect.token

            async def openid_connect_userInfo(self, **kwargs) ‑> AsyncSlackResponse @@ -12481,12 +12563,12 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return await self.api_call("openid.connect.userInfo", params=kwargs)

            Get the identity of a user who has authorized Sign in with Slack. -https://api.slack.com/methods/openid.connect.userInfo

            +https://docs.slack.dev/reference/methods/openid.connect.userInfo

            async def pins_add(self, *, channel: str, timestamp: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -12504,13 +12586,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return await self.api_call("pins.add", params=kwargs)

            Pins an item to a channel. -https://api.slack.com/methods/pins.add

            +https://docs.slack.dev/reference/methods/pins.add

            async def pins_list(self, *, channel: str, **kwargs) ‑> AsyncSlackResponse @@ -12527,13 +12609,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return await self.api_call("pins.list", http_verb="GET", params=kwargs)

            Lists items pinned to a channel. -https://api.slack.com/methods/pins.list

            +https://docs.slack.dev/reference/methods/pins.list

            async def pins_remove(self, *, channel: str, timestamp: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -12551,13 +12633,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return await self.api_call("pins.remove", params=kwargs)

            Un-pins an item from a channel. -https://api.slack.com/methods/pins.remove

            +https://docs.slack.dev/reference/methods/pins.remove

            async def reactions_add(self, *, channel: str, name: str, timestamp: str, **kwargs) ‑> AsyncSlackResponse @@ -12576,13 +12658,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return await self.api_call("reactions.add", params=kwargs)

            Adds a reaction to an item. -https://api.slack.com/methods/reactions.add

            +https://docs.slack.dev/reference/methods/reactions.add

            async def reactions_get(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            full: bool | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12603,7 +12685,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -12617,7 +12699,7 @@

            Methods

            return await self.api_call("reactions.get", http_verb="GET", params=kwargs)

            Gets reactions for an item. -https://api.slack.com/methods/reactions.get

            +https://docs.slack.dev/reference/methods/reactions.get

            async def reactions_list(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            full: bool | None = None,
            limit: int | None = None,
            page: int | None = None,
            team_id: str | None = None,
            user: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12640,7 +12722,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -12656,7 +12738,7 @@

            Methods

            return await self.api_call("reactions.list", http_verb="GET", params=kwargs)

            Lists reactions made by a user. -https://api.slack.com/methods/reactions.list

            +https://docs.slack.dev/reference/methods/reactions.list

            async def reactions_remove(self,
            *,
            name: str,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12677,7 +12759,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -12691,7 +12773,7 @@

            Methods

            return await self.api_call("reactions.remove", params=kwargs)

            Removes a reaction from an item. -https://api.slack.com/methods/reactions.remove

            +https://docs.slack.dev/reference/methods/reactions.remove

            async def reminders_add(self,
            *,
            text: str,
            time: str,
            team_id: str | None = None,
            user: str | None = None,
            recurrence: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12712,7 +12794,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -12726,7 +12808,7 @@

            Methods

            return await self.api_call("reminders.add", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.add

            async def reminders_complete(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -12744,13 +12826,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return await self.api_call("reminders.complete", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.complete

            async def reminders_delete(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -12768,13 +12850,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return await self.api_call("reminders.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.delete

            async def reminders_info(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -12792,13 +12874,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return await self.api_call("reminders.info", http_verb="GET", params=kwargs)

            Gets information about a reminder. -https://api.slack.com/methods/reminders.info

            +https://docs.slack.dev/reference/methods/reminders.info

            async def reminders_list(self, *, team_id: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -12815,13 +12897,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return await self.api_call("reminders.list", http_verb="GET", params=kwargs)

            Lists all reminders created by or for a given user. -https://api.slack.com/methods/reminders.list

            +https://docs.slack.dev/reference/methods/reminders.list

            async def rtm_connect(self,
            *,
            batch_presence_aware: bool | None = None,
            presence_sub: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12839,13 +12921,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return await self.api_call("rtm.connect", http_verb="GET", params=kwargs)

            Starts a Real Time Messaging session. -https://api.slack.com/methods/rtm.connect

            +https://docs.slack.dev/reference/methods/rtm.connect

            async def rtm_start(self,
            *,
            batch_presence_aware: bool | None = None,
            include_locale: bool | None = None,
            mpim_aware: bool | None = None,
            no_latest: bool | None = None,
            no_unreads: bool | None = None,
            presence_sub: bool | None = None,
            simple_latest: bool | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12868,7 +12950,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -12884,7 +12966,7 @@

            Methods

            return await self.api_call("rtm.start", http_verb="GET", params=kwargs)

            Starts a Real Time Messaging session. -https://api.slack.com/methods/rtm.start

            +https://docs.slack.dev/reference/methods/rtm.start

            async def search_all(self,
            *,
            query: str,
            count: int | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12907,7 +12989,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -12923,7 +13005,7 @@

            Methods

            return await self.api_call("search.all", http_verb="GET", params=kwargs)

            Searches for messages and files matching a query. -https://api.slack.com/methods/search.all

            +https://docs.slack.dev/reference/methods/search.all

            async def search_files(self,
            *,
            query: str,
            count: int | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12946,7 +13028,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -12962,7 +13044,7 @@

            Methods

            return await self.api_call("search.files", http_verb="GET", params=kwargs)

            Searches for files matching a query. -https://api.slack.com/methods/search.files

            +https://docs.slack.dev/reference/methods/search.files

            async def search_messages(self,
            *,
            query: str,
            count: int | None = None,
            cursor: str | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -12986,7 +13068,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -13003,7 +13085,7 @@

            Methods

            return await self.api_call("search.messages", http_verb="GET", params=kwargs)

            Searches for messages matching a query. -https://api.slack.com/methods/search.messages

            +https://docs.slack.dev/reference/methods/search.messages

            async def stars_add(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13023,7 +13105,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -13036,7 +13118,7 @@

            Methods

            return await self.api_call("stars.add", params=kwargs)
            +https://docs.slack.dev/reference/methods/stars.add

            async def stars_list(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            page: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13057,7 +13139,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -13071,7 +13153,7 @@

            Methods

            return await self.api_call("stars.list", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/stars.list

            async def stars_remove(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13091,7 +13173,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -13104,7 +13186,7 @@

            Methods

            return await self.api_call("stars.remove", params=kwargs)

            Removes a star from an item. -https://api.slack.com/methods/stars.remove

            +https://docs.slack.dev/reference/methods/stars.remove

            async def team_accessLogs(self,
            *,
            before: str | int | None = None,
            count: str | int | None = None,
            page: str | int | None = None,
            team_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13126,7 +13208,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -13141,7 +13223,7 @@

            Methods

            return await self.api_call("team.accessLogs", http_verb="GET", params=kwargs)

            Gets the access logs for the current team. -https://api.slack.com/methods/team.accessLogs

            +https://docs.slack.dev/reference/methods/team.accessLogs

            async def team_billableInfo(self, *, team_id: str | None = None, user: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -13159,13 +13241,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return await self.api_call("team.billableInfo", http_verb="GET", params=kwargs)

            Gets billable users information for the current team. -https://api.slack.com/methods/team.billableInfo

            +https://docs.slack.dev/reference/methods/team.billableInfo

            async def team_billing_info(self, **kwargs) ‑> AsyncSlackResponse @@ -13180,12 +13262,12 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return await self.api_call("team.billing.info", params=kwargs)

            Reads a workspace's billing plan information. -https://api.slack.com/methods/team.billing.info

            +https://docs.slack.dev/reference/methods/team.billing.info

            async def team_externalTeams_disconnect(self, *, target_team: str, **kwargs) ‑> AsyncSlackResponse @@ -13202,7 +13284,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -13212,7 +13294,7 @@

            Methods

            return await self.api_call("team.externalTeams.disconnect", params=kwargs)
            +https://docs.slack.dev/reference/methods/team.externalTeams.disconnect

            async def team_externalTeams_list(self,
            *,
            connection_status_filter: str | None = None,
            slack_connect_pref_filter: Sequence[str] | None = None,
            sort_direction: str | None = None,
            sort_field: str | None = None,
            workspace_filter: Sequence[str] | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13235,7 +13317,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -13259,7 +13341,7 @@

            Methods

            return await self.api_call("team.externalTeams.list", http_verb="GET", params=kwargs)

            Returns a list of all the external teams connected and details about the connection. -https://api.slack.com/methods/team.externalTeams.list

            +https://docs.slack.dev/reference/methods/team.externalTeams.list

            async def team_info(self, *, team: str | None = None, domain: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -13277,13 +13359,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return await self.api_call("team.info", http_verb="GET", params=kwargs)

            Gets information about the current team. -https://api.slack.com/methods/team.info

            +https://docs.slack.dev/reference/methods/team.info

            async def team_integrationLogs(self,
            *,
            app_id: str | None = None,
            change_type: str | None = None,
            count: str | int | None = None,
            page: str | int | None = None,
            service_id: str | None = None,
            team_id: str | None = None,
            user: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13306,7 +13388,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -13322,7 +13404,7 @@

            Methods

            return await self.api_call("team.integrationLogs", http_verb="GET", params=kwargs)

            Gets the integration logs for the current team. -https://api.slack.com/methods/team.integrationLogs

            +https://docs.slack.dev/reference/methods/team.integrationLogs

            async def team_preferences_list(self, **kwargs) ‑> AsyncSlackResponse @@ -13337,12 +13419,12 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return await self.api_call("team.preferences.list", params=kwargs)

            Retrieve a list of a workspace's team preferences. -https://api.slack.com/methods/team.preferences.list

            +https://docs.slack.dev/reference/methods/team.preferences.list

            async def team_profile_get(self, *, visibility: str | None = None, **kwargs) ‑> AsyncSlackResponse @@ -13359,13 +13441,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return await self.api_call("team.profile.get", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/team.profile.get

            async def tooling_tokens_rotate(self, *, refresh_token: str, **kwargs) ‑> AsyncSlackResponse @@ -13382,13 +13464,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return await self.api_call("tooling.tokens.rotate", params=kwargs)

            Exchanges a refresh token for a new app configuration token -https://api.slack.com/methods/tooling.tokens.rotate

            +https://docs.slack.dev/reference/methods/tooling.tokens.rotate

            async def usergroups_create(self,
            *,
            name: str,
            channels: str | Sequence[str] | None = None,
            description: str | None = None,
            handle: str | None = None,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13410,7 +13492,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -13428,7 +13510,7 @@

            Methods

            return await self.api_call("usergroups.create", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.create

            async def usergroups_disable(self,
            *,
            usergroup: str,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13447,13 +13529,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return await self.api_call("usergroups.disable", params=kwargs)

            Disable an existing User Group -https://api.slack.com/methods/usergroups.disable

            +https://docs.slack.dev/reference/methods/usergroups.disable

            async def usergroups_enable(self,
            *,
            usergroup: str,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13472,13 +13554,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return await self.api_call("usergroups.enable", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.enable

            async def usergroups_list(self,
            *,
            include_count: bool | None = None,
            include_disabled: bool | None = None,
            include_users: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13498,7 +13580,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -13511,7 +13593,7 @@

            Methods

            return await self.api_call("usergroups.list", http_verb="GET", params=kwargs)

            List all User Groups for a team -https://api.slack.com/methods/usergroups.list

            +https://docs.slack.dev/reference/methods/usergroups.list

            async def usergroups_update(self,
            *,
            usergroup: str,
            channels: str | Sequence[str] | None = None,
            description: str | None = None,
            handle: str | None = None,
            include_count: bool | None = None,
            name: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13534,7 +13616,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -13553,7 +13635,7 @@

            Methods

            return await self.api_call("usergroups.update", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.update

            async def usergroups_users_list(self,
            *,
            usergroup: str,
            include_disabled: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13572,7 +13654,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -13584,7 +13666,7 @@

            Methods

            return await self.api_call("usergroups.users.list", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.users.list

            async def usergroups_users_update(self,
            *,
            usergroup: str,
            users: str | Sequence[str],
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13604,7 +13686,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -13620,7 +13702,7 @@

            Methods

            return await self.api_call("usergroups.users.update", params=kwargs)

            Update the list of users for a User Group -https://api.slack.com/methods/usergroups.users.update

            +https://docs.slack.dev/reference/methods/usergroups.users.update

            async def users_conversations(self,
            *,
            cursor: str | None = None,
            exclude_archived: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            types: str | Sequence[str] | None = None,
            user: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13642,7 +13724,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -13660,7 +13742,7 @@

            Methods

            return await self.api_call("users.conversations", http_verb="GET", params=kwargs)

            List conversations the calling user may access. -https://api.slack.com/methods/users.conversations

            +https://docs.slack.dev/reference/methods/users.conversations

            async def users_deletePhoto(self, **kwargs) ‑> AsyncSlackResponse @@ -13675,12 +13757,12 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return await self.api_call("users.deletePhoto", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.deletePhoto

            async def users_discoverableContacts_lookup(self, email: str, **kwargs) ‑> AsyncSlackResponse @@ -13696,13 +13778,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return await self.api_call("users.discoverableContacts.lookup", params=kwargs)

            Lookup an email address to see if someone is on Slack -https://api.slack.com/methods/users.discoverableContacts.lookup

            +https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup

            async def users_getPresence(self, *, user: str, **kwargs) ‑> AsyncSlackResponse @@ -13719,13 +13801,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return await self.api_call("users.getPresence", http_verb="GET", params=kwargs)

            Gets user presence information. -https://api.slack.com/methods/users.getPresence

            +https://docs.slack.dev/reference/methods/users.getPresence

            async def users_identity(self, **kwargs) ‑> AsyncSlackResponse @@ -13740,12 +13822,12 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return await self.api_call("users.identity", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.identity

            async def users_info(self, *, user: str, include_locale: bool | None = None, **kwargs) ‑> AsyncSlackResponse @@ -13763,13 +13845,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return await self.api_call("users.info", http_verb="GET", params=kwargs)

            Gets information about a user. -https://api.slack.com/methods/users.info

            +https://docs.slack.dev/reference/methods/users.info

            async def users_list(self,
            *,
            cursor: str | None = None,
            include_locale: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13789,7 +13871,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -13802,7 +13884,7 @@

            Methods

            return await self.api_call("users.list", http_verb="GET", params=kwargs)

            Lists all users in a Slack team. -https://api.slack.com/methods/users.list

            +https://docs.slack.dev/reference/methods/users.list

            async def users_lookupByEmail(self, *, email: str, **kwargs) ‑> AsyncSlackResponse @@ -13819,13 +13901,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return await self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs)

            Find a user with an email address. -https://api.slack.com/methods/users.lookupByEmail

            +https://docs.slack.dev/reference/methods/users.lookupByEmail

            async def users_profile_get(self, *, user: str | None = None, include_labels: bool | None = None, **kwargs) ‑> AsyncSlackResponse @@ -13843,13 +13925,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return await self.api_call("users.profile.get", http_verb="GET", params=kwargs)

            Retrieves a user's profile information. -https://api.slack.com/methods/users.profile.get

            +https://docs.slack.dev/reference/methods/users.profile.get

            async def users_profile_set(self,
            *,
            name: str | None = None,
            value: str | None = None,
            user: str | None = None,
            profile: Dict | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13869,7 +13951,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -13884,7 +13966,7 @@

            Methods

            return await self.api_call("users.profile.set", json=kwargs)

            Set the profile information for a user. -https://api.slack.com/methods/users.profile.set

            +https://docs.slack.dev/reference/methods/users.profile.set

            async def users_setPhoto(self,
            *,
            image: str | io.IOBase,
            crop_w: str | int | None = None,
            crop_x: str | int | None = None,
            crop_y: str | int | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13904,13 +13986,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return await self.api_call("users.setPhoto", files={"image": image}, data=kwargs)
            +https://docs.slack.dev/reference/methods/users.setPhoto

            async def users_setPresence(self, *, presence: str, **kwargs) ‑> AsyncSlackResponse @@ -13927,13 +14009,13 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return await self.api_call("users.setPresence", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.setPresence

            async def views_open(self,
            *,
            trigger_id: str | None = None,
            interactivity_pointer: str | None = None,
            view: dict | View,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13952,8 +14034,8 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -13965,8 +14047,8 @@

            Methods

            return await self.api_call("views.open", json=kwargs)
            +https://docs.slack.dev/reference/methods/views.open +See https://docs.slack.dev/surfaces/modals/ for details.

            async def views_publish(self,
            *,
            user_id: str,
            view: dict | View,
            hash: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -13986,8 +14068,8 @@

            Methods

            ) -> AsyncSlackResponse: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -14000,8 +14082,8 @@

            Methods

            Publish a static view for a User. Create or update the view that comprises an -app's Home tab (https://api.slack.com/surfaces/tabs) -https://api.slack.com/methods/views.publish

            +app's Home tab (https://docs.slack.dev/surfaces/app-home/) +https://docs.slack.dev/reference/methods/views.publish

            async def views_push(self,
            *,
            trigger_id: str | None = None,
            interactivity_pointer: str | None = None,
            view: dict | View,
            **kwargs) ‑> AsyncSlackResponse
            @@ -14023,9 +14105,9 @@

            Methods

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -14040,9 +14122,9 @@

            Methods

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. -Read the modals documentation (https://api.slack.com/surfaces/modals) +Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. -https://api.slack.com/methods/views.push

            +https://docs.slack.dev/reference/methods/views.push

            async def views_update(self,
            *,
            view: dict | View,
            external_id: str | None = None,
            view_id: str | None = None,
            hash: str | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -14064,9 +14146,9 @@

            Methods

            """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -14086,9 +14168,119 @@

            Methods

            Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. -See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) +See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. -https://api.slack.com/methods/views.update

            +https://docs.slack.dev/reference/methods/views.update

            + +
            +
            +
            + +Expand source code + +
            async def workflows_featured_add(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> AsyncSlackResponse:
            +    """Add featured workflows to a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.add
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return await self.api_call("workflows.featured.add", params=kwargs)
            +
            + +
            + +
            +
            + +Expand source code + +
            async def workflows_featured_list(
            +    self,
            +    *,
            +    channel_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> AsyncSlackResponse:
            +    """List the featured workflows for specified channels.
            +    https://docs.slack.dev/reference/methods/workflows.featured.list
            +    """
            +    if isinstance(channel_ids, (list, tuple)):
            +        kwargs.update({"channel_ids": ",".join(channel_ids)})
            +    else:
            +        kwargs.update({"channel_ids": channel_ids})
            +    return await self.api_call("workflows.featured.list", params=kwargs)
            +
            +

            List the featured workflows for specified channels. +https://docs.slack.dev/reference/methods/workflows.featured.list

            +
            + +
            +
            + +Expand source code + +
            async def workflows_featured_remove(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> AsyncSlackResponse:
            +    """Remove featured workflows from a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.remove
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return await self.api_call("workflows.featured.remove", params=kwargs)
            +
            + +
            + +
            +
            + +Expand source code + +
            async def workflows_featured_set(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> AsyncSlackResponse:
            +    """Set featured workflows for a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.set
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return await self.api_call("workflows.featured.set", params=kwargs)
            +
            +
            async def workflows_stepCompleted(self, *, workflow_step_execute_id: str, outputs: dict | None = None, **kwargs) ‑> AsyncSlackResponse @@ -14106,7 +14298,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -14116,7 +14308,7 @@

            Methods

            return await self.api_call("workflows.stepCompleted", json=kwargs)

            Indicate a successful outcome of a workflow step's execution. -https://api.slack.com/methods/workflows.stepCompleted

            +https://docs.slack.dev/reference/methods/workflows.stepCompleted

            async def workflows_stepFailed(self, *, workflow_step_execute_id: str, error: Dict[str, str], **kwargs) ‑> AsyncSlackResponse @@ -14134,7 +14326,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -14147,7 +14339,7 @@

            Methods

            return await self.api_call("workflows.stepFailed", json=kwargs)

            Indicate an unsuccessful outcome of a workflow step's execution. -https://api.slack.com/methods/workflows.stepFailed

            +https://docs.slack.dev/reference/methods/workflows.stepFailed

            async def workflows_updateStep(self,
            *,
            workflow_step_edit_id: str,
            inputs: Dict[str, Any] | None = None,
            outputs: List[Dict[str, str]] | None = None,
            **kwargs) ‑> AsyncSlackResponse
            @@ -14166,7 +14358,7 @@

            Methods

            **kwargs, ) -> AsyncSlackResponse: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: @@ -14178,7 +14370,7 @@

            Methods

            return await self.api_call("workflows.updateStep", json=kwargs)

            Update the configuration for a workflow extension step. -https://api.slack.com/methods/workflows.updateStep

            +https://docs.slack.dev/reference/methods/workflows.updateStep

            Inherited members

            @@ -14513,6 +14705,10 @@

            views_publish
          • views_push
          • views_update
          • +
          • workflows_featured_add
          • +
          • workflows_featured_list
          • +
          • workflows_featured_remove
          • +
          • workflows_featured_set
          • workflows_stepCompleted
          • workflows_stepFailed
          • workflows_updateStep
          • diff --git a/docs/reference/web/base_client.html b/docs/reference/web/base_client.html index 8e952ec75..affbba13c 100644 --- a/docs/reference/web/base_client.html +++ b/docs/reference/web/base_client.html @@ -633,7 +633,7 @@

            Classes

            header. The signature is created by combining the signing secret with the body of the request we're sending using a standard HMAC-SHA256 keyed hash. - https://api.slack.com/docs/verifying-requests-from-slack#how_to_make_a_request_signature_in_4_easy_steps__an_overview + https://docs.slack.dev/authentication/verifying-requests-from-slack/#how_to_make_a_request_signature_in_4_easy_steps__an_overview Args: signing_secret: Your application's signing secret, available in the @@ -690,7 +690,7 @@

            Static methods

            header. The signature is created by combining the signing secret with the body of the request we're sending using a standard HMAC-SHA256 keyed hash. - https://api.slack.com/docs/verifying-requests-from-slack#how_to_make_a_request_signature_in_4_easy_steps__an_overview + https://docs.slack.dev/authentication/verifying-requests-from-slack/#how_to_make_a_request_signature_in_4_easy_steps__an_overview Args: signing_secret: Your application's signing secret, available in the @@ -720,7 +720,7 @@

            Static methods

            On each HTTP request that Slack sends, we add an X-Slack-Signature HTTP header. The signature is created by combining the signing secret with the body of the request we're sending using a standard HMAC-SHA256 keyed hash.

            -

            https://api.slack.com/docs/verifying-requests-from-slack#how_to_make_a_request_signature_in_4_easy_steps__an_overview

            +

            https://docs.slack.dev/authentication/verifying-requests-from-slack/#how_to_make_a_request_signature_in_4_easy_steps__an_overview

            Args

            signing_secret
            diff --git a/docs/reference/web/client.html b/docs/reference/web/client.html index 28212dff5..3a315c83d 100644 --- a/docs/reference/web/client.html +++ b/docs/reference/web/client.html @@ -59,7 +59,7 @@

            Classes

            class WebClient(BaseClient):
                 """A WebClient allows apps to communicate with the Slack Platform's Web API.
             
            -    https://api.slack.com/methods
            +    https://docs.slack.dev/reference/methods
             
                 The Slack Web API is an interface for querying information from
                 and enacting change in a Slack workspace.
            @@ -130,7 +130,7 @@ 

            Classes

            **kwargs, ) -> SlackResponse: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -152,7 +152,7 @@

            Classes

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -179,7 +179,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -200,7 +200,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -220,7 +220,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -240,7 +240,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -264,7 +264,7 @@

            Classes

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -291,7 +291,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -313,7 +313,7 @@

            Classes

            ) -> SlackResponse: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -344,7 +344,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -372,7 +372,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -389,7 +389,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -411,7 +411,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -431,7 +431,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -450,7 +450,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -469,7 +469,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -485,7 +485,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -504,7 +504,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -523,7 +523,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -543,7 +543,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs) @@ -558,7 +558,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -579,7 +579,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -599,7 +599,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -619,7 +619,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.delete", params=kwargs) @@ -632,7 +632,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -649,7 +649,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.archive", params=kwargs) @@ -661,7 +661,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.unarchive", params=kwargs) @@ -674,7 +674,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return self.api_call("admin.conversations.rename", params=kwargs) @@ -692,7 +692,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Search for public or private channels in an Enterprise organization. - https://api.slack.com/methods/admin.conversations.search + https://docs.slack.dev/reference/methods/admin.conversations.search """ kwargs.update( { @@ -723,7 +723,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPrivate", params=kwargs) @@ -735,7 +735,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPublic", params=kwargs) @@ -748,7 +748,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -764,7 +764,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getConversationPrefs", params=kwargs) @@ -777,7 +777,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -797,7 +797,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -825,7 +825,7 @@

            Classes

            """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -852,7 +852,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -875,7 +875,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -898,7 +898,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -923,7 +923,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -947,7 +947,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -965,7 +965,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getCustomRetention", params=kwargs) @@ -977,7 +977,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.removeCustomRetention", params=kwargs) @@ -990,7 +990,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return self.api_call("admin.conversations.setCustomRetention", params=kwargs) @@ -1002,7 +1002,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return self.api_call("admin.conversations.bulkArchive", params=kwargs) @@ -1027,7 +1027,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -1045,7 +1045,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return self.api_call("admin.emoji.add", http_verb="GET", params=kwargs) @@ -1058,7 +1058,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs) @@ -1071,7 +1071,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.emoji.list", http_verb="GET", params=kwargs) @@ -1083,7 +1083,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs) @@ -1096,7 +1096,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs) @@ -1111,7 +1111,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -1134,7 +1134,7 @@

            Classes

            ) -> SlackResponse: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -1152,7 +1152,7 @@

            Classes

            ) -> SlackResponse: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -1176,7 +1176,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1201,7 +1201,7 @@

            Classes

            ) -> SlackResponse: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -1223,7 +1223,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1245,7 +1245,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -1265,7 +1265,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1287,7 +1287,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return self.api_call("admin.users.session.invalidate", params=kwargs) @@ -1302,7 +1302,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -1322,7 +1322,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -1339,7 +1339,7 @@

            Classes

            ) -> SlackResponse: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1357,7 +1357,7 @@

            Classes

            ) -> SlackResponse: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1379,7 +1379,7 @@

            Classes

            ) -> SlackResponse: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1396,7 +1396,7 @@

            Classes

            ) -> SlackResponse: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -1414,7 +1414,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.approve", params=kwargs) @@ -1428,7 +1428,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -1448,7 +1448,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -1467,7 +1467,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.deny", params=kwargs) @@ -1488,7 +1488,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -1509,7 +1509,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -1529,7 +1529,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.teams.list", params=kwargs) @@ -1543,7 +1543,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs) @@ -1555,7 +1555,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return self.api_call("admin.teams.settings.info", params=kwargs) @@ -1568,7 +1568,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return self.api_call("admin.teams.settings.setDescription", params=kwargs) @@ -1581,7 +1581,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return self.api_call("admin.teams.settings.setDiscoverability", params=kwargs) @@ -1594,7 +1594,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs) @@ -1607,7 +1607,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return self.api_call("admin.teams.settings.setName", params=kwargs) @@ -1621,7 +1621,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1639,7 +1639,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -1657,7 +1657,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -1676,7 +1676,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1696,7 +1696,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -1728,7 +1728,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -1752,7 +1752,7 @@

            Classes

            def admin_users_list( self, *, - team_id: str, + team_id: Optional[str] = None, include_deactivated_user_workspaces: Optional[bool] = None, is_active: Optional[bool] = None, cursor: Optional[str] = None, @@ -1760,7 +1760,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -1781,7 +1781,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.remove", params=kwargs) @@ -1794,7 +1794,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setAdmin", params=kwargs) @@ -1808,7 +1808,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setExpiration", params=kwargs) @@ -1821,7 +1821,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setOwner", params=kwargs) @@ -1834,7 +1834,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setRegular", params=kwargs) @@ -1855,7 +1855,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Search workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.search + https://docs.slack.dev/reference/methods/admin.workflows.search """ if collaborator_ids is not None: if isinstance(collaborator_ids, (list, tuple)): @@ -1885,7 +1885,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1906,7 +1906,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1926,7 +1926,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1945,7 +1945,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1960,7 +1960,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return self.api_call("api.test", params=kwargs) @@ -1973,7 +1973,7 @@

            Classes

            ) -> SlackResponse: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return self.api_call("apps.connections.open", http_verb="POST", params=kwargs) @@ -1988,7 +1988,7 @@

            Classes

            ) -> SlackResponse: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return self.api_call("apps.event.authorizations.list", params=kwargs) @@ -2001,7 +2001,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return self.api_call("apps.uninstall", params=kwargs) @@ -2013,7 +2013,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2028,7 +2028,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.delete", params=kwargs) @@ -2040,7 +2040,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.export", params=kwargs) @@ -2053,7 +2053,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2070,7 +2070,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2086,7 +2086,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return self.api_call("tooling.tokens.rotate", params=kwargs) @@ -2100,7 +2100,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return self.api_call("assistant.threads.setStatus", params=kwargs) @@ -2114,7 +2114,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return self.api_call("assistant.threads.setTitle", params=kwargs) @@ -2129,7 +2129,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -2143,7 +2143,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return self.api_call("auth.revoke", http_verb="GET", params=kwargs) @@ -2153,7 +2153,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return self.api_call("auth.test", params=kwargs) @@ -2165,7 +2165,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return self.api_call("auth.teams.list", params=kwargs) @@ -2183,7 +2183,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -2209,7 +2209,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -2229,7 +2229,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return self.api_call("bookmarks.list", http_verb="POST", params=kwargs) @@ -2242,7 +2242,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return self.api_call("bookmarks.remove", http_verb="POST", params=kwargs) @@ -2255,7 +2255,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return self.api_call("bots.info", http_verb="GET", params=kwargs) @@ -2274,7 +2274,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -2301,7 +2301,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return self.api_call("calls.end", http_verb="POST", params=kwargs) @@ -2313,7 +2313,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return self.api_call("calls.info", http_verb="POST", params=kwargs) @@ -2326,7 +2326,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2340,7 +2340,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2356,7 +2356,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -2376,7 +2376,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return self.api_call("canvases.create", json=kwargs) @@ -2389,7 +2389,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return self.api_call("canvases.edit", json=kwargs) @@ -2401,7 +2401,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return self.api_call("canvases.delete", params=kwargs) @@ -2416,7 +2416,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -2441,7 +2441,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -2464,7 +2464,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return self.api_call("canvases.sections.lookup", params=kwargs) @@ -2472,7 +2472,7 @@

            Classes

            # -------------------------- # Deprecated: channels.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def channels_archive( @@ -2651,7 +2651,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return self.api_call("chat.delete", params=kwargs) @@ -2665,7 +2665,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -2684,7 +2684,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieve a permalink URL for a specific extant message - https://api.slack.com/methods/chat.getPermalink + https://docs.slack.dev/reference/methods/chat.getPermalink """ kwargs.update({"channel": channel, "message_ts": message_ts}) return self.api_call("chat.getPermalink", http_verb="GET", params=kwargs) @@ -2697,7 +2697,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return self.api_call("chat.meMessage", params=kwargs) @@ -2717,10 +2717,11 @@

            Classes

            link_names: Optional[bool] = None, username: Optional[str] = None, parse: Optional[str] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -2736,11 +2737,12 @@

            Classes

            "link_names": link_names, "username": username, "parse": parse, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postEphemeral", kwargs) + _warn_if_message_text_content_is_missing("chat.postEphemeral", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postEphemeral", json=kwargs) @@ -2764,10 +2766,11 @@

            Classes

            username: Optional[str] = None, parse: Optional[str] = None, # none, full metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -2788,11 +2791,12 @@

            Classes

            "username": username, "parse": parse, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.postMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postMessage", json=kwargs) @@ -2801,7 +2805,7 @@

            Classes

            *, channel: str, post_at: Union[str, int], - text: str, + text: Optional[str] = None, as_user: Optional[bool] = None, attachments: Optional[Union[str, Sequence[Union[Dict, Attachment]]]] = None, blocks: Optional[Union[str, Sequence[Union[Dict, Block]]]] = None, @@ -2812,10 +2816,11 @@

            Classes

            unfurl_media: Optional[bool] = None, link_names: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -2832,11 +2837,12 @@

            Classes

            "unfurl_media": unfurl_media, "link_names": link_names, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.scheduleMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.scheduleMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.scheduleMessage", json=kwargs) @@ -2855,7 +2861,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -2889,10 +2895,11 @@

            Classes

            parse: Optional[str] = None, # none, full reply_broadcast: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -2906,6 +2913,7 @@

            Classes

            "parse": parse, "reply_broadcast": reply_broadcast, "metadata": metadata, + "markdown_text": markdown_text, } ) if isinstance(file_ids, (list, tuple)): @@ -2914,7 +2922,7 @@

            Classes

            kwargs.update({"file_ids": file_ids}) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.update", kwargs) + _warn_if_message_text_content_is_missing("chat.update", kwargs) # NOTE: intentionally using json over params for API methods using blocks/attachments return self.api_call("chat.update", json=kwargs) @@ -2930,7 +2938,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -2956,7 +2964,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -2980,7 +2988,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs) @@ -2992,7 +3000,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return self.api_call("conversations.archive", params=kwargs) @@ -3004,7 +3012,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return self.api_call("conversations.close", params=kwargs) @@ -3018,7 +3026,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return self.api_call("conversations.create", params=kwargs) @@ -3031,7 +3039,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs) @@ -3040,7 +3048,7 @@

            Classes

            self, *, action: str, channel: str, target_team: str, **kwargs ) -> SlackResponse: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -3064,7 +3072,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -3088,7 +3096,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -3108,7 +3116,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -3131,7 +3139,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -3153,7 +3161,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return self.api_call("conversations.join", params=kwargs) @@ -3166,7 +3174,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return self.api_call("conversations.kick", params=kwargs) @@ -3178,7 +3186,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return self.api_call("conversations.leave", params=kwargs) @@ -3194,7 +3202,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -3220,7 +3228,7 @@

            Classes

            ) -> SlackResponse: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return self.api_call("conversations.listConnectInvites", params=kwargs) @@ -3233,7 +3241,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return self.api_call("conversations.mark", params=kwargs) @@ -3247,7 +3255,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return self.api_call("conversations.members", http_verb="GET", params=kwargs) @@ -3261,7 +3269,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -3280,7 +3288,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return self.api_call("conversations.rename", params=kwargs) @@ -3299,7 +3307,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -3325,7 +3333,7 @@

            Classes

            **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -3346,7 +3354,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return self.api_call("conversations.requestSharedInvite.deny", params=kwargs) @@ -3364,7 +3372,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -3391,7 +3399,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return self.api_call("conversations.setPurpose", params=kwargs) @@ -3404,7 +3412,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return self.api_call("conversations.setTopic", params=kwargs) @@ -3416,7 +3424,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return self.api_call("conversations.unarchive", params=kwargs) @@ -3429,7 +3437,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return self.api_call("conversations.canvases.create", json=kwargs) @@ -3442,7 +3450,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -3454,7 +3462,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return self.api_call("dnd.endDnd", params=kwargs) @@ -3463,7 +3471,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return self.api_call("dnd.endSnooze", params=kwargs) @@ -3475,7 +3483,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("dnd.info", http_verb="GET", params=kwargs) @@ -3487,7 +3495,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs) @@ -3499,7 +3507,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -3514,7 +3522,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return self.api_call("emoji.list", http_verb="GET", params=kwargs) @@ -3527,7 +3535,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return self.api_call("files.comments.delete", params=kwargs) @@ -3539,7 +3547,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return self.api_call("files.delete", params=kwargs) @@ -3555,7 +3563,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -3583,7 +3591,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -3611,7 +3619,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.info", http_verb="GET", params=kwargs) @@ -3627,7 +3635,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -3652,7 +3660,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -3691,7 +3699,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -3726,7 +3734,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.remove", http_verb="POST", params=kwargs) @@ -3740,7 +3748,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -3758,7 +3766,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return self.api_call("files.revokePublicURL", params=kwargs) @@ -3770,7 +3778,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return self.api_call("files.sharedPublicURL", params=kwargs) @@ -3789,7 +3797,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -3842,12 +3850,12 @@

            Classes

            ) -> SlackResponse: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -3933,7 +3941,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -3956,7 +3964,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -3979,7 +3987,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return self.api_call("functions.completeSuccess", params=kwargs) @@ -3992,7 +4000,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return self.api_call("functions.completeError", params=kwargs) @@ -4000,7 +4008,7 @@

            Classes

            # -------------------------- # Deprecated: groups.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def groups_archive( @@ -4181,7 +4189,7 @@

            Classes

            # -------------------------- # Deprecated: im.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def im_close( @@ -4257,7 +4265,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -4269,7 +4277,7 @@

            Classes

            # -------------------------- # Deprecated: mpim.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def mpim_close( @@ -4356,7 +4364,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4382,7 +4390,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4402,7 +4410,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return self.api_call("oauth.v2.exchange", params=kwargs) @@ -4418,7 +4426,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4439,7 +4447,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return self.api_call("openid.connect.userInfo", params=kwargs) @@ -4451,7 +4459,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.add", params=kwargs) @@ -4463,7 +4471,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return self.api_call("pins.list", http_verb="GET", params=kwargs) @@ -4476,7 +4484,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.remove", params=kwargs) @@ -4490,7 +4498,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return self.api_call("reactions.add", params=kwargs) @@ -4506,7 +4514,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -4532,7 +4540,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -4558,7 +4566,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -4582,7 +4590,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -4603,7 +4611,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.complete", params=kwargs) @@ -4616,7 +4624,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.delete", params=kwargs) @@ -4629,7 +4637,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.info", http_verb="GET", params=kwargs) @@ -4641,7 +4649,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return self.api_call("reminders.list", http_verb="GET", params=kwargs) @@ -4654,7 +4662,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return self.api_call("rtm.connect", http_verb="GET", params=kwargs) @@ -4672,7 +4680,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -4700,7 +4708,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -4728,7 +4736,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -4757,7 +4765,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -4783,7 +4791,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -4806,7 +4814,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -4829,7 +4837,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -4853,7 +4861,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -4875,7 +4883,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("team.billableInfo", http_verb="GET", params=kwargs) @@ -4885,7 +4893,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return self.api_call("team.billing.info", params=kwargs) @@ -4896,7 +4904,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -4918,7 +4926,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -4949,7 +4957,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return self.api_call("team.info", http_verb="GET", params=kwargs) @@ -4967,7 +4975,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -4989,7 +4997,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return self.api_call("team.profile.get", http_verb="GET", params=kwargs) @@ -4999,7 +5007,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return self.api_call("team.preferences.list", params=kwargs) @@ -5015,7 +5023,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -5041,7 +5049,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.disable", params=kwargs) @@ -5055,7 +5063,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.enable", params=kwargs) @@ -5070,7 +5078,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -5095,7 +5103,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -5122,7 +5130,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -5143,7 +5151,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -5170,7 +5178,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -5192,7 +5200,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return self.api_call("users.deletePhoto", http_verb="GET", params=kwargs) @@ -5203,7 +5211,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return self.api_call("users.getPresence", http_verb="GET", params=kwargs) @@ -5213,7 +5221,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return self.api_call("users.identity", http_verb="GET", params=kwargs) @@ -5225,7 +5233,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return self.api_call("users.info", http_verb="GET", params=kwargs) @@ -5240,7 +5248,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -5259,7 +5267,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs) @@ -5274,7 +5282,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return self.api_call("users.setPhoto", files={"image": image}, data=kwargs) @@ -5286,7 +5294,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return self.api_call("users.setPresence", params=kwargs) @@ -5297,7 +5305,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return self.api_call("users.discoverableContacts.lookup", params=kwargs) @@ -5310,7 +5318,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return self.api_call("users.profile.get", http_verb="GET", params=kwargs) @@ -5325,7 +5333,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -5348,8 +5356,8 @@

            Classes

            **kwargs, ) -> SlackResponse: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5372,9 +5380,9 @@

            Classes

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5397,9 +5405,9 @@

            Classes

            """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -5426,8 +5434,8 @@

            Classes

            ) -> SlackResponse: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -5438,6 +5446,72 @@

            Classes

            # NOTE: Intentionally using json for the "view" parameter return self.api_call("views.publish", json=kwargs) + def workflows_featured_add( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """Add featured workflows to a channel. + https://docs.slack.dev/reference/methods/workflows.featured.add + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.add", params=kwargs) + + def workflows_featured_list( + self, + *, + channel_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """List the featured workflows for specified channels. + https://docs.slack.dev/reference/methods/workflows.featured.list + """ + if isinstance(channel_ids, (list, tuple)): + kwargs.update({"channel_ids": ",".join(channel_ids)}) + else: + kwargs.update({"channel_ids": channel_ids}) + return self.api_call("workflows.featured.list", params=kwargs) + + def workflows_featured_remove( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """Remove featured workflows from a channel. + https://docs.slack.dev/reference/methods/workflows.featured.remove + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.remove", params=kwargs) + + def workflows_featured_set( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """Set featured workflows for a channel. + https://docs.slack.dev/reference/methods/workflows.featured.set + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.set", params=kwargs) + def workflows_stepCompleted( self, *, @@ -5446,7 +5520,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -5463,7 +5537,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -5484,7 +5558,7 @@

            Classes

            **kwargs, ) -> SlackResponse: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: @@ -5496,7 +5570,7 @@

            Classes

            return self.api_call("workflows.updateStep", json=kwargs)

            A WebClient allows apps to communicate with the Slack Platform's Web API.

            -

            https://api.slack.com/methods

            +

            https://docs.slack.dev/reference/methods

            The Slack Web API is an interface for querying information from and enacting change in a Slack workspace.

            This client handles constructing and sending HTTP requests to Slack @@ -5576,7 +5650,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -5586,7 +5660,7 @@

            Methods

            return self.api_call("admin.analytics.getFile", params=kwargs)

            Retrieve analytics data for a given date, presented as a compressed JSON file -https://api.slack.com/methods/admin.analytics.getFile

            +https://docs.slack.dev/reference/methods/admin.analytics.getFile

            def admin_apps_activities_list(self,
            *,
            app_id: str | None = None,
            component_id: str | None = None,
            component_type: str | None = None,
            log_event_type: str | None = None,
            max_date_created: int | None = None,
            min_date_created: int | None = None,
            min_log_level: str | None = None,
            sort_direction: str | None = None,
            source: str | None = None,
            team_id: str | None = None,
            trace_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5615,7 +5689,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -5637,7 +5711,7 @@

            Methods

            return self.api_call("admin.apps.activities.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.apps.activities.list

            def admin_apps_approve(self,
            *,
            app_id: str | None = None,
            request_id: str | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5660,7 +5734,7 @@

            Methods

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -5681,7 +5755,7 @@

            Methods

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. -https://api.slack.com/methods/admin.apps.approve

            +https://docs.slack.dev/reference/methods/admin.apps.approve

            def admin_apps_approved_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5701,7 +5775,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -5714,7 +5788,7 @@

            Methods

            return self.api_call("admin.apps.approved.list", http_verb="GET", params=kwargs)

            List approved apps for an org or workspace. -https://api.slack.com/methods/admin.apps.approved.list

            +https://docs.slack.dev/reference/methods/admin.apps.approved.list

            def admin_apps_clearResolution(self,
            *,
            app_id: str,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5733,7 +5807,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -5745,7 +5819,7 @@

            Methods

            return self.api_call("admin.apps.clearResolution", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.apps.clearResolution

            def admin_apps_config_lookup(self, *, app_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -5762,7 +5836,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -5771,7 +5845,7 @@

            Methods

            return self.api_call("admin.apps.config.lookup", params=kwargs)

            Look up the app config for connectors by their IDs -https://api.slack.com/methods/admin.apps.config.lookup

            +https://docs.slack.dev/reference/methods/admin.apps.config.lookup

            def admin_apps_config_set(self,
            *,
            app_id: str,
            domain_restrictions: Dict[str, Any] | None = None,
            workflow_auth_strategy: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5790,7 +5864,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -5803,7 +5877,7 @@

            Methods

            return self.api_call("admin.apps.config.set", params=kwargs)

            Set the app config for a connector -https://api.slack.com/methods/admin.apps.config.set

            +https://docs.slack.dev/reference/methods/admin.apps.config.set

            def admin_apps_requests_cancel(self,
            *,
            request_id: str,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5822,7 +5896,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -5834,7 +5908,7 @@

            Methods

            return self.api_call("admin.apps.requests.cancel", http_verb="POST", params=kwargs)

            List app requests for a team/workspace. -https://api.slack.com/methods/admin.apps.requests.cancel

            +https://docs.slack.dev/reference/methods/admin.apps.requests.cancel

            def admin_apps_requests_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5853,7 +5927,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -5865,7 +5939,7 @@

            Methods

            return self.api_call("admin.apps.requests.list", http_verb="GET", params=kwargs)

            List app requests for a team/workspace. -https://api.slack.com/methods/admin.apps.requests.list

            +https://docs.slack.dev/reference/methods/admin.apps.requests.list

            def admin_apps_restrict(self,
            *,
            app_id: str | None = None,
            request_id: str | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5888,7 +5962,7 @@

            Methods

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -5909,7 +5983,7 @@

            Methods

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. -https://api.slack.com/methods/admin.apps.restrict

            +https://docs.slack.dev/reference/methods/admin.apps.restrict

            def admin_apps_restricted_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5929,7 +6003,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -5942,7 +6016,7 @@

            Methods

            return self.api_call("admin.apps.restricted.list", http_verb="GET", params=kwargs)

            List restricted apps for an org or workspace. -https://api.slack.com/methods/admin.apps.restricted.list

            +https://docs.slack.dev/reference/methods/admin.apps.restricted.list

            def admin_apps_uninstall(self,
            *,
            app_id: str,
            enterprise_id: str | None = None,
            team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5962,7 +6036,7 @@

            Methods

            ) -> SlackResponse: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -5976,7 +6050,7 @@

            Methods

            Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. -https://api.slack.com/methods/admin.apps.uninstall

            +https://docs.slack.dev/reference/methods/admin.apps.uninstall

            def admin_auth_policy_assignEntities(self,
            *,
            entity_ids: str | Sequence[str],
            policy_name: str,
            entity_type: str,
            **kwargs) ‑> SlackResponse
            @@ -5995,7 +6069,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -6006,7 +6080,7 @@

            Methods

            return self.api_call("admin.auth.policy.assignEntities", http_verb="POST", params=kwargs)

            Assign entities to a particular authentication policy. -https://api.slack.com/methods/admin.auth.policy.assignEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities

            def admin_auth_policy_getEntities(self,
            *,
            policy_name: str,
            cursor: str | None = None,
            entity_type: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6026,7 +6100,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -6038,7 +6112,7 @@

            Methods

            return self.api_call("admin.auth.policy.getEntities", http_verb="POST", params=kwargs)

            Fetch all the entities assigned to a particular authentication policy by name. -https://api.slack.com/methods/admin.auth.policy.getEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities

            def admin_auth_policy_removeEntities(self,
            *,
            entity_ids: str | Sequence[str],
            policy_name: str,
            entity_type: str,
            **kwargs) ‑> SlackResponse
            @@ -6057,7 +6131,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -6068,7 +6142,7 @@

            Methods

            return self.api_call("admin.auth.policy.removeEntities", http_verb="POST", params=kwargs)

            Remove specified entities from a specified authentication policy. -https://api.slack.com/methods/admin.auth.policy.removeEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities

            def admin_barriers_create(self,
            *,
            barriered_from_usergroup_ids: str | Sequence[str],
            primary_usergroup_id: str,
            restricted_subjects: str | Sequence[str],
            **kwargs) ‑> SlackResponse
            @@ -6087,7 +6161,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -6101,7 +6175,7 @@

            Methods

            return self.api_call("admin.barriers.create", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.barriers.create

            def admin_barriers_delete(self, *, barrier_id: str, **kwargs) ‑> SlackResponse @@ -6118,13 +6192,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs)

            Delete an existing Information Barrier -https://api.slack.com/methods/admin.barriers.delete

            +https://docs.slack.dev/reference/methods/admin.barriers.delete

            def admin_barriers_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -6142,7 +6216,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -6152,7 +6226,7 @@

            Methods

            return self.api_call("admin.barriers.list", http_verb="GET", params=kwargs)

            Get all Information Barriers for your organization -https://api.slack.com/methods/admin.barriers.list

            +https://docs.slack.dev/reference/methods/admin.barriers.list

            def admin_barriers_update(self,
            *,
            barrier_id: str,
            barriered_from_usergroup_ids: str | Sequence[str],
            primary_usergroup_id: str,
            restricted_subjects: str | Sequence[str],
            **kwargs) ‑> SlackResponse
            @@ -6172,7 +6246,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -6186,7 +6260,7 @@

            Methods

            return self.api_call("admin.barriers.update", http_verb="POST", params=kwargs)

            Update an existing Information Barrier -https://api.slack.com/methods/admin.barriers.update

            +https://docs.slack.dev/reference/methods/admin.barriers.update

            def admin_conversations_archive(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6203,13 +6277,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.archive", params=kwargs)

            Archive a public or private channel. -https://api.slack.com/methods/admin.conversations.archive

            +https://docs.slack.dev/reference/methods/admin.conversations.archive

            def admin_conversations_bulkArchive(self, *, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -6226,13 +6300,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return self.api_call("admin.conversations.bulkArchive", params=kwargs)

            Archive public or private channels in bulk. -https://api.slack.com/methods/admin.conversations.bulkArchive

            +https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive

            def admin_conversations_bulkDelete(self, *, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -6273,7 +6347,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -6284,7 +6358,7 @@

            Methods

            return self.api_call("admin.conversations.bulkMove", params=kwargs)

            Move public or private channels in bulk. -https://api.slack.com/methods/admin.conversations.bulkMove

            +https://docs.slack.dev/reference/methods/admin.conversations.bulkMove

            def admin_conversations_convertToPrivate(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6301,13 +6375,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPrivate", params=kwargs)

            Convert a public channel to a private channel. -https://api.slack.com/methods/admin.conversations.convertToPrivate

            +https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate

            def admin_conversations_convertToPublic(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6324,13 +6398,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPublic", params=kwargs)

            Convert a privte channel to a public channel. -https://api.slack.com/methods/admin.conversations.convertToPublic

            +https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic

            def admin_conversations_create(self,
            *,
            is_private: bool,
            name: str,
            description: str | None = None,
            org_wide: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6351,7 +6425,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -6365,7 +6439,7 @@

            Methods

            return self.api_call("admin.conversations.create", params=kwargs)

            Create a public or private channel-based conversation. -https://api.slack.com/methods/admin.conversations.create

            +https://docs.slack.dev/reference/methods/admin.conversations.create

            def admin_conversations_createForObjects(self,
            *,
            object_id: str,
            salesforce_org_id: str,
            invite_object_team: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6384,7 +6458,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -6392,7 +6466,7 @@

            Methods

            return self.api_call("admin.conversations.createForObjects", params=kwargs)

            Create a Salesforce channel for the corresponding object provided. -https://api.slack.com/methods/admin.conversations.createForObjects

            +https://docs.slack.dev/reference/methods/admin.conversations.createForObjects

            def admin_conversations_delete(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6409,13 +6483,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.delete

            def admin_conversations_disconnectShared(self,
            *,
            channel_id: str,
            leaving_team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6433,7 +6507,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -6443,7 +6517,7 @@

            Methods

            return self.api_call("admin.conversations.disconnectShared", params=kwargs)

            Disconnect a connected channel from one or more workspaces. -https://api.slack.com/methods/admin.conversations.disconnectShared

            +https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared

            def admin_conversations_ekm_listOriginalConnectedChannelInfo(self,
            *,
            channel_ids: str | Sequence[str] | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6465,7 +6539,7 @@

            Methods

            """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -6486,7 +6560,7 @@

            Methods

            List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. -https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo

            +https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo

            def admin_conversations_getConversationPrefs(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6503,13 +6577,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getConversationPrefs", params=kwargs)

            Get conversation preferences for a public or private channel. -https://api.slack.com/methods/admin.conversations.getConversationPrefs

            +https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs

            def admin_conversations_getCustomRetention(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6526,13 +6600,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention

            def admin_conversations_getTeams(self,
            *,
            channel_id: str,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6551,7 +6625,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -6563,7 +6637,7 @@

            Methods

            return self.api_call("admin.conversations.getTeams", params=kwargs)

            Set the workspaces in an Enterprise grid org that connect to a channel. -https://api.slack.com/methods/admin.conversations.getTeams

            +https://docs.slack.dev/reference/methods/admin.conversations.getTeams

            def admin_conversations_invite(self, *, channel_id: str, user_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -6581,7 +6655,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -6592,7 +6666,7 @@

            Methods

            return self.api_call("admin.conversations.invite", params=kwargs)

            Invite a user to a public or private channel. -https://api.slack.com/methods/admin.conversations.invite

            +https://docs.slack.dev/reference/methods/admin.conversations.invite

            def admin_conversations_linkObjects(self, *, channel: str, record_id: str, salesforce_org_id: str, **kwargs) ‑> SlackResponse @@ -6611,7 +6685,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -6623,7 +6697,7 @@

            Methods

            return self.api_call("admin.conversations.linkObjects", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.linkObjects

            def admin_conversations_lookup(self,
            *,
            last_message_activity_before: int,
            team_ids: str | Sequence[str],
            cursor: str | None = None,
            limit: int | None = None,
            max_member_count: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6644,7 +6718,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -6661,7 +6735,7 @@

            Methods

            return self.api_call("admin.conversations.lookup", params=kwargs)

            Returns channels on the given team using the filters. -https://api.slack.com/methods/admin.conversations.lookup

            +https://docs.slack.dev/reference/methods/admin.conversations.lookup

            def admin_conversations_removeCustomRetention(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6678,13 +6752,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.removeCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention

            def admin_conversations_rename(self, *, channel_id: str, name: str, **kwargs) ‑> SlackResponse @@ -6702,13 +6776,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return self.api_call("admin.conversations.rename", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.rename

            def admin_conversations_restrictAccess_addGroup(self, *, channel_id: str, group_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -6727,7 +6801,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -6743,7 +6817,7 @@

            Methods

            )

            Add an allowlist of IDP groups for accessing a channel. -https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup

            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup

            def admin_conversations_restrictAccess_listGroups(self, *, channel_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -6761,7 +6835,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -6776,7 +6850,7 @@

            Methods

            )
            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups

            def admin_conversations_restrictAccess_removeGroup(self, *, channel_id: str, group_id: str, team_id: str, **kwargs) ‑> SlackResponse @@ -6795,7 +6869,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -6811,7 +6885,7 @@

            Methods

            )

            Remove a linked IDP group linked from a private channel. -https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup

            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup

            def admin_conversations_setConversationPrefs(self, *, channel_id: str, prefs: str | Dict[str, str], **kwargs) ‑> SlackResponse @@ -6877,7 +6951,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -6887,7 +6961,7 @@

            Methods

            return self.api_call("admin.conversations.setConversationPrefs", params=kwargs)

            Set the posting permissions for a public or private channel. -https://api.slack.com/methods/admin.conversations.setConversationPrefs

            +https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs

            def admin_conversations_setCustomRetention(self, *, channel_id: str, duration_days: int, **kwargs) ‑> SlackResponse @@ -6905,13 +6979,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return self.api_call("admin.conversations.setCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention

            def admin_conversations_setTeams(self,
            *,
            channel_id: str,
            org_channel: bool | None = None,
            target_team_ids: str | Sequence[str] | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6931,7 +7005,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -6947,7 +7021,7 @@

            Methods

            return self.api_call("admin.conversations.setTeams", params=kwargs)

            Set the workspaces in an Enterprise grid org that connect to a public or private channel. -https://api.slack.com/methods/admin.conversations.setTeams

            +https://docs.slack.dev/reference/methods/admin.conversations.setTeams

            def admin_conversations_unarchive(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6964,13 +7038,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.unarchive", params=kwargs)

            Unarchive a public or private channel. -https://api.slack.com/methods/admin.conversations.archive

            +https://docs.slack.dev/reference/methods/admin.conversations.archive

            def admin_conversations_unlinkObjects(self, *, channel: str, new_name: str, **kwargs) ‑> SlackResponse @@ -6988,7 +7062,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -6999,7 +7073,7 @@

            Methods

            return self.api_call("admin.conversations.unlinkObjects", params=kwargs)

            Unlink a Salesforce record from a channel. -https://api.slack.com/methods/admin.conversations.unlinkObjects

            +https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects

            def admin_emoji_add(self, *, name: str, url: str, **kwargs) ‑> SlackResponse @@ -7017,13 +7091,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return self.api_call("admin.emoji.add", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.add

            def admin_emoji_addAlias(self, *, alias_for: str, name: str, **kwargs) ‑> SlackResponse @@ -7041,13 +7115,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.addAlias

            def admin_emoji_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7065,13 +7139,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.emoji.list", http_verb="GET", params=kwargs)

            List emoji for an Enterprise Grid organization. -https://api.slack.com/methods/admin.emoji.list

            +https://docs.slack.dev/reference/methods/admin.emoji.list

            def admin_emoji_remove(self, *, name: str, **kwargs) ‑> SlackResponse @@ -7088,13 +7162,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs)

            Remove an emoji across an Enterprise Grid organization. -https://api.slack.com/methods/admin.emoji.remove

            +https://docs.slack.dev/reference/methods/admin.emoji.remove

            def admin_emoji_rename(self, *, name: str, new_name: str, **kwargs) ‑> SlackResponse @@ -7112,13 +7186,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.rename

            def admin_functions_list(self,
            *,
            app_ids: str | Sequence[str],
            team_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7138,7 +7212,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -7154,7 +7228,7 @@

            Methods

            return self.api_call("admin.functions.list", params=kwargs)

            Look up functions by a set of apps -https://api.slack.com/methods/admin.functions.list

            +https://docs.slack.dev/reference/methods/admin.functions.list

            def admin_functions_permissions_lookup(self, *, function_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -7172,7 +7246,7 @@

            Methods

            ) -> SlackResponse: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -7182,7 +7256,7 @@

            Methods

            Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. -https://api.slack.com/methods/admin.functions.permissions.lookup

            +https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup

            def admin_functions_permissions_set(self,
            *,
            function_id: str,
            visibility: str,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7202,7 +7276,7 @@

            Methods

            ) -> SlackResponse: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -7219,7 +7293,7 @@

            Methods

            Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities -https://api.slack.com/methods/admin.functions.permissions.set

            +https://docs.slack.dev/reference/methods/admin.functions.permissions.set

            def admin_inviteRequests_approve(self, *, invite_request_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -7237,13 +7311,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.approve", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.inviteRequests.approve

            def admin_inviteRequests_approved_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7262,7 +7336,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -7274,7 +7348,7 @@

            Methods

            return self.api_call("admin.inviteRequests.approved.list", params=kwargs)

            List all approved workspace invite requests. -https://api.slack.com/methods/admin.inviteRequests.approved.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list

            def admin_inviteRequests_denied_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7293,7 +7367,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -7305,7 +7379,7 @@

            Methods

            return self.api_call("admin.inviteRequests.denied.list", params=kwargs)

            List all denied workspace invite requests. -https://api.slack.com/methods/admin.inviteRequests.denied.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list

            def admin_inviteRequests_deny(self, *, invite_request_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -7323,13 +7397,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.deny", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.inviteRequests.deny

            def admin_inviteRequests_list(self, **kwargs) ‑> SlackResponse @@ -7365,7 +7439,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -7379,7 +7453,7 @@

            Methods

            return self.api_call("admin.roles.addAssignments", params=kwargs)

            Adds members to the specified role with the specified scopes -https://api.slack.com/methods/admin.roles.addAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.addAssignments

            def admin_roles_listAssignments(self,
            *,
            role_ids: str | Sequence[str] | None = None,
            entity_ids: str | Sequence[str] | None = None,
            cursor: str | None = None,
            limit: str | int | None = None,
            sort_dir: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7401,7 +7475,7 @@

            Methods

            ) -> SlackResponse: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -7416,7 +7490,7 @@

            Methods

            Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities -https://api.slack.com/methods/admin.roles.listAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.listAssignments

            def admin_roles_removeAssignments(self,
            *,
            role_id: str,
            entity_ids: str | Sequence[str],
            user_ids: str | Sequence[str],
            **kwargs) ‑> SlackResponse
            @@ -7435,7 +7509,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -7449,7 +7523,7 @@

            Methods

            return self.api_call("admin.roles.removeAssignments", params=kwargs)

            Removes a set of users from a role for the given scopes and entities -https://api.slack.com/methods/admin.roles.removeAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.removeAssignments

            def admin_teams_admins_list(self, *, team_id: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7468,7 +7542,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -7480,7 +7554,7 @@

            Methods

            return self.api_call("admin.teams.admins.list", http_verb="GET", params=kwargs)

            List all of the admins on a given workspace. -https://api.slack.com/methods/admin.inviteRequests.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.list

            def admin_teams_create(self,
            *,
            team_domain: str,
            team_name: str,
            team_description: str | None = None,
            team_discoverability: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7500,7 +7574,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -7513,7 +7587,7 @@

            Methods

            return self.api_call("admin.teams.create", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.create

            def admin_teams_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7531,13 +7605,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.teams.list", params=kwargs)

            List all teams on an Enterprise organization. -https://api.slack.com/methods/admin.teams.list

            +https://docs.slack.dev/reference/methods/admin.teams.list

            def admin_teams_owners_list(self, *, team_id: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7556,13 +7630,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs)

            List all of the admins on a given workspace. -https://api.slack.com/methods/admin.teams.owners.list

            +https://docs.slack.dev/reference/methods/admin.teams.owners.list

            def admin_teams_settings_info(self, *, team_id: str, **kwargs) ‑> SlackResponse @@ -7579,13 +7653,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return self.api_call("admin.teams.settings.info", params=kwargs)

            Fetch information about settings in a workspace -https://api.slack.com/methods/admin.teams.settings.info

            +https://docs.slack.dev/reference/methods/admin.teams.settings.info

            def admin_teams_settings_setDefaultChannels(self, *, team_id: str, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -7603,7 +7677,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -7613,7 +7687,7 @@

            Methods

            return self.api_call("admin.teams.settings.setDefaultChannels", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels

            def admin_teams_settings_setDescription(self, *, team_id: str, description: str, **kwargs) ‑> SlackResponse @@ -7631,13 +7705,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return self.api_call("admin.teams.settings.setDescription", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription

            def admin_teams_settings_setDiscoverability(self, *, team_id: str, discoverability: str, **kwargs) ‑> SlackResponse @@ -7655,13 +7729,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return self.api_call("admin.teams.settings.setDiscoverability", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability

            def admin_teams_settings_setIcon(self, *, team_id: str, image_url: str, **kwargs) ‑> SlackResponse @@ -7679,13 +7753,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon

            def admin_teams_settings_setName(self, *, team_id: str, name: str, **kwargs) ‑> SlackResponse @@ -7703,13 +7777,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return self.api_call("admin.teams.settings.setName", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setName

            def admin_usergroups_addChannels(self,
            *,
            channel_ids: str | Sequence[str],
            usergroup_id: str,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7728,7 +7802,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -7738,7 +7812,7 @@

            Methods

            return self.api_call("admin.usergroups.addChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.addChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.addChannels

            def admin_usergroups_addTeams(self,
            *,
            usergroup_id: str,
            team_ids: str | Sequence[str],
            auto_provision: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7757,7 +7831,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -7767,7 +7841,7 @@

            Methods

            return self.api_call("admin.usergroups.addTeams", params=kwargs)

            Associate one or more default workspaces with an organization-wide IDP group. -https://api.slack.com/methods/admin.usergroups.addTeams

            +https://docs.slack.dev/reference/methods/admin.usergroups.addTeams

            def admin_usergroups_listChannels(self,
            *,
            usergroup_id: str,
            include_num_members: bool | None = None,
            team_id: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7786,7 +7860,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -7798,7 +7872,7 @@

            Methods

            return self.api_call("admin.usergroups.listChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.listChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.listChannels

            def admin_usergroups_removeChannels(self, *, usergroup_id: str, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -7816,7 +7890,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -7826,7 +7900,7 @@

            Methods

            return self.api_call("admin.usergroups.removeChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.removeChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels

            def admin_users_assign(self,
            *,
            team_id: str,
            user_id: str,
            channel_ids: str | Sequence[str] | None = None,
            is_restricted: bool | None = None,
            is_ultra_restricted: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7847,7 +7921,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -7864,7 +7938,7 @@

            Methods

            return self.api_call("admin.users.assign", params=kwargs)

            Add an Enterprise user to a workspace. -https://api.slack.com/methods/admin.users.assign

            +https://docs.slack.dev/reference/methods/admin.users.assign

            def admin_users_invite(self,
            *,
            team_id: str,
            email: str,
            channel_ids: str | Sequence[str],
            custom_message: str | None = None,
            email_password_policy_enabled: bool | None = None,
            guest_expiration_ts: str | float | None = None,
            is_restricted: bool | None = None,
            is_ultra_restricted: bool | None = None,
            real_name: str | None = None,
            resend: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7890,7 +7964,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -7912,10 +7986,10 @@

            Methods

            return self.api_call("admin.users.invite", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.users.invite

            -def admin_users_list(self,
            *,
            team_id: str,
            include_deactivated_user_workspaces: bool | None = None,
            is_active: bool | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            +def admin_users_list(self,
            *,
            team_id: str | None = None,
            include_deactivated_user_workspaces: bool | None = None,
            is_active: bool | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7925,7 +7999,7 @@

            Methods

            def admin_users_list(
                 self,
                 *,
            -    team_id: str,
            +    team_id: Optional[str] = None,
                 include_deactivated_user_workspaces: Optional[bool] = None,
                 is_active: Optional[bool] = None,
                 cursor: Optional[str] = None,
            @@ -7933,7 +8007,7 @@ 

            Methods

            **kwargs, ) -> SlackResponse: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -7947,7 +8021,7 @@

            Methods

            return self.api_call("admin.users.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.users.list

            def admin_users_remove(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -7965,13 +8039,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.remove", params=kwargs)

            Remove a user from a workspace. -https://api.slack.com/methods/admin.users.remove

            +https://docs.slack.dev/reference/methods/admin.users.remove

            def admin_users_session_clearSettings(self, *, user_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -7989,7 +8063,7 @@

            Methods

            ) -> SlackResponse: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -7999,7 +8073,7 @@

            Methods

            Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. -https://api.slack.com/methods/admin.users.session.clearSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.clearSettings

            def admin_users_session_getSettings(self, *, user_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -8017,7 +8091,7 @@

            Methods

            ) -> SlackResponse: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8027,7 +8101,7 @@

            Methods

            Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. -https://api.slack.com/methods/admin.users.session.getSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.getSettings

            def admin_users_session_invalidate(self, *, session_id: str, team_id: str, **kwargs) ‑> SlackResponse @@ -8045,13 +8119,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return self.api_call("admin.users.session.invalidate", params=kwargs)

            Invalidate a single session for a user by session_id. -https://api.slack.com/methods/admin.users.session.invalidate

            +https://docs.slack.dev/reference/methods/admin.users.session.invalidate

            def admin_users_session_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            user_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8071,7 +8145,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -8084,7 +8158,7 @@

            Methods

            return self.api_call("admin.users.session.list", params=kwargs)

            Lists all active user sessions for an organization -https://api.slack.com/methods/admin.users.session.list

            +https://docs.slack.dev/reference/methods/admin.users.session.list

            def admin_users_session_reset(self,
            *,
            user_id: str,
            mobile_only: bool | None = None,
            web_only: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8103,7 +8177,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -8115,7 +8189,7 @@

            Methods

            return self.api_call("admin.users.session.reset", params=kwargs)

            Wipes all valid sessions on all devices for a given user. -https://api.slack.com/methods/admin.users.session.reset

            +https://docs.slack.dev/reference/methods/admin.users.session.reset

            def admin_users_session_resetBulk(self,
            *,
            user_ids: str | Sequence[str],
            mobile_only: bool | None = None,
            web_only: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8134,7 +8208,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8149,7 +8223,7 @@

            Methods

            return self.api_call("admin.users.session.resetBulk", params=kwargs)

            Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users -https://api.slack.com/methods/admin.users.session.resetBulk

            +https://docs.slack.dev/reference/methods/admin.users.session.resetBulk

            def admin_users_session_setSettings(self,
            *,
            user_ids: str | Sequence[str],
            desktop_app_browser_quit: bool | None = None,
            duration: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8169,7 +8243,7 @@

            Methods

            ) -> SlackResponse: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8185,7 +8259,7 @@

            Methods

            Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. -https://api.slack.com/methods/admin.users.session.setSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.setSettings

            def admin_users_setAdmin(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8203,13 +8277,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setAdmin", params=kwargs)

            Set an existing guest, regular user, or owner to be an admin user. -https://api.slack.com/methods/admin.users.setAdmin

            +https://docs.slack.dev/reference/methods/admin.users.setAdmin

            def admin_users_setExpiration(self, *, expiration_ts: int, user_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -8228,13 +8302,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setExpiration", params=kwargs)

            Set an expiration for a guest user. -https://api.slack.com/methods/admin.users.setExpiration

            +https://docs.slack.dev/reference/methods/admin.users.setExpiration

            def admin_users_setOwner(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8252,13 +8326,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setOwner", params=kwargs)

            Set an existing guest, regular user, or admin user to be a workspace owner. -https://api.slack.com/methods/admin.users.setOwner

            +https://docs.slack.dev/reference/methods/admin.users.setOwner

            def admin_users_setRegular(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8276,13 +8350,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setRegular", params=kwargs)

            Set an existing guest user, admin user, or owner to be a regular user. -https://api.slack.com/methods/admin.users.setRegular

            +https://docs.slack.dev/reference/methods/admin.users.setRegular

            def admin_users_unsupportedVersions_export(self,
            *,
            date_end_of_support: str | int | None = None,
            date_sessions_started: str | int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8301,7 +8375,7 @@

            Methods

            ) -> SlackResponse: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -8313,7 +8387,7 @@

            Methods

            Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. -https://api.slack.com/methods/admin.users.unsupportedVersions.export

            +https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export

            def admin_workflows_collaborators_add(self,
            *,
            collaborator_ids: str | Sequence[str],
            workflow_ids: str | Sequence[str],
            **kwargs) ‑> SlackResponse
            @@ -8331,7 +8405,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -8344,7 +8418,7 @@

            Methods

            return self.api_call("admin.workflows.collaborators.add", params=kwargs)

            Add collaborators to workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.collaborators.add

            +https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add

            def admin_workflows_collaborators_remove(self,
            *,
            collaborator_ids: str | Sequence[str],
            workflow_ids: str | Sequence[str],
            **kwargs) ‑> SlackResponse
            @@ -8362,7 +8436,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -8375,7 +8449,7 @@

            Methods

            return self.api_call("admin.workflows.collaborators.remove", params=kwargs)

            Remove collaborators from workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.collaborators.remove

            +https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove

            def admin_workflows_permissions_lookup(self,
            *,
            workflow_ids: str | Sequence[str],
            max_workflow_triggers: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8393,7 +8467,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -8407,7 +8481,7 @@

            Methods

            return self.api_call("admin.workflows.permissions.lookup", params=kwargs)

            Look up the permissions for a set of workflows -https://api.slack.com/methods/admin.workflows.permissions.lookup

            +https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup

            def admin_workflows_unpublish(self, *, workflow_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -8473,7 +8547,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -8482,7 +8556,7 @@

            Methods

            return self.api_call("admin.workflows.unpublish", params=kwargs)

            Unpublish workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.unpublish

            +https://docs.slack.dev/reference/methods/admin.workflows.unpublish

            def api_test(self, *, error: str | None = None, **kwargs) ‑> SlackResponse @@ -8499,13 +8573,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return self.api_call("api.test", params=kwargs)

            Checks API calling code. -https://api.slack.com/methods/api.test

            +https://docs.slack.dev/reference/methods/api.test

            def apps_connections_open(self, *, app_token: str, **kwargs) ‑> SlackResponse @@ -8523,14 +8597,14 @@

            Methods

            ) -> SlackResponse: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return self.api_call("apps.connections.open", http_verb="POST", params=kwargs)

            Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads -https://api.slack.com/methods/apps.connections.open

            +https://docs.slack.dev/reference/methods/apps.connections.open

            def apps_event_authorizations_list(self,
            *,
            event_context: str,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8550,14 +8624,14 @@

            Methods

            ) -> SlackResponse: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return self.api_call("apps.event.authorizations.list", params=kwargs)

            Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. -https://api.slack.com/methods/apps.event.authorizations.list

            +https://docs.slack.dev/reference/methods/apps.event.authorizations.list

            def apps_manifest_create(self, *, manifest: str | Dict[str, Any], **kwargs) ‑> SlackResponse @@ -8574,7 +8648,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8583,7 +8657,7 @@

            Methods

            return self.api_call("apps.manifest.create", params=kwargs)

            Create an app from an app manifest -https://api.slack.com/methods/apps.manifest.create

            +https://docs.slack.dev/reference/methods/apps.manifest.create

            def apps_manifest_delete(self, *, app_id: str, **kwargs) ‑> SlackResponse @@ -8600,13 +8674,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.delete", params=kwargs)

            Permanently deletes an app created through app manifests -https://api.slack.com/methods/apps.manifest.delete

            +https://docs.slack.dev/reference/methods/apps.manifest.delete

            def apps_manifest_export(self, *, app_id: str, **kwargs) ‑> SlackResponse @@ -8623,13 +8697,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.export", params=kwargs)

            Export an app manifest from an existing app -https://api.slack.com/methods/apps.manifest.export

            +https://docs.slack.dev/reference/methods/apps.manifest.export

            def apps_manifest_update(self, *, app_id: str, manifest: str | Dict[str, Any], **kwargs) ‑> SlackResponse @@ -8647,7 +8721,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8657,7 +8731,7 @@

            Methods

            return self.api_call("apps.manifest.update", params=kwargs)

            Update an app from an app manifest -https://api.slack.com/methods/apps.manifest.update

            +https://docs.slack.dev/reference/methods/apps.manifest.update

            def apps_manifest_validate(self, *, manifest: str | Dict[str, Any], app_id: str | None = None, **kwargs) ‑> SlackResponse @@ -8675,7 +8749,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8685,7 +8759,7 @@

            Methods

            return self.api_call("apps.manifest.validate", params=kwargs)
            +https://docs.slack.dev/reference/methods/apps.manifest.validate

            def apps_uninstall(self, *, client_id: str, client_secret: str, **kwargs) ‑> SlackResponse @@ -8703,13 +8777,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return self.api_call("apps.uninstall", params=kwargs)

            Uninstalls your app from a workspace. -https://api.slack.com/methods/apps.uninstall

            +https://docs.slack.dev/reference/methods/apps.uninstall

            def assistant_threads_setStatus(self, *, channel_id: str, thread_ts: str, status: str, **kwargs) ‑> SlackResponse @@ -8728,13 +8802,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return self.api_call("assistant.threads.setStatus", params=kwargs)
            +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
            @@ -8754,7 +8828,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -8762,7 +8836,7 @@

            Methods

            return self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
            +https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts

            def assistant_threads_setTitle(self, *, channel_id: str, thread_ts: str, title: str, **kwargs) ‑> SlackResponse @@ -8781,13 +8855,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return self.api_call("assistant.threads.setTitle", params=kwargs)
            +https://docs.slack.dev/reference/methods/assistant.threads.setTitle

            def auth_revoke(self, *, test: bool | None = None, **kwargs) ‑> SlackResponse @@ -8804,13 +8878,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return self.api_call("auth.revoke", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/auth.revoke

            def auth_teams_list(self,
            cursor: str | None = None,
            limit: int | None = None,
            include_icon: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8828,13 +8902,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return self.api_call("auth.teams.list", params=kwargs)

            List the workspaces a token can access. -https://api.slack.com/methods/auth.teams.list

            +https://docs.slack.dev/reference/methods/auth.teams.list

            def auth_test(self, **kwargs) ‑> SlackResponse @@ -8849,12 +8923,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return self.api_call("auth.test", params=kwargs)

            Checks authentication & identity. -https://api.slack.com/methods/auth.test

            +https://docs.slack.dev/reference/methods/auth.test

            def bookmarks_add(self,
            *,
            channel_id: str,
            title: str,
            type: str,
            emoji: str | None = None,
            entity_id: str | None = None,
            link: str | None = None,
            parent_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8877,7 +8951,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -8893,7 +8967,7 @@

            Methods

            return self.api_call("bookmarks.add", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/bookmarks.add

            def bookmarks_edit(self,
            *,
            bookmark_id: str,
            channel_id: str,
            emoji: str | None = None,
            link: str | None = None,
            title: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8914,7 +8988,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -8928,7 +9002,7 @@

            Methods

            return self.api_call("bookmarks.edit", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/bookmarks.edit

            def bookmarks_list(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -8945,13 +9019,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return self.api_call("bookmarks.list", http_verb="POST", params=kwargs)

            List bookmark for the channel. -https://api.slack.com/methods/bookmarks.list

            +https://docs.slack.dev/reference/methods/bookmarks.list

            def bookmarks_remove(self, *, bookmark_id: str, channel_id: str, **kwargs) ‑> SlackResponse @@ -8969,13 +9043,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return self.api_call("bookmarks.remove", http_verb="POST", params=kwargs)

            Remove bookmark from the channel. -https://api.slack.com/methods/bookmarks.remove

            +https://docs.slack.dev/reference/methods/bookmarks.remove

            def bots_info(self, *, bot: str | None = None, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -8993,13 +9067,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return self.api_call("bots.info", http_verb="GET", params=kwargs)

            Gets information about a bot user. -https://api.slack.com/methods/bots.info

            +https://docs.slack.dev/reference/methods/bots.info

            def calls_add(self,
            *,
            external_unique_id: str,
            join_url: str,
            created_by: str | None = None,
            date_start: int | None = None,
            desktop_app_join_url: str | None = None,
            external_display_id: str | None = None,
            title: str | None = None,
            users: str | Sequence[Dict[str, str]] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9023,7 +9097,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -9043,7 +9117,7 @@

            Methods

            return self.api_call("calls.add", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/calls.add

            def calls_end(self, *, id: str, duration: int | None = None, **kwargs) ‑> SlackResponse @@ -9061,13 +9135,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return self.api_call("calls.end", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/calls.end

            def calls_info(self, *, id: str, **kwargs) ‑> SlackResponse @@ -9084,13 +9158,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return self.api_call("calls.info", http_verb="POST", params=kwargs)

            Returns information about a Call. -https://api.slack.com/methods/calls.info

            +https://docs.slack.dev/reference/methods/calls.info

            def calls_participants_add(self, *, id: str, users: str | Sequence[Dict[str, str]], **kwargs) ‑> SlackResponse @@ -9108,14 +9182,14 @@

            Methods

            **kwargs, ) -> SlackResponse: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) return self.api_call("calls.participants.add", http_verb="POST", params=kwargs)

            Registers new participants added to a Call. -https://api.slack.com/methods/calls.participants.add

            +https://docs.slack.dev/reference/methods/calls.participants.add

            def calls_participants_remove(self, *, id: str, users: str | Sequence[Dict[str, str]], **kwargs) ‑> SlackResponse @@ -9133,14 +9207,14 @@

            Methods

            **kwargs, ) -> SlackResponse: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) return self.api_call("calls.participants.remove", http_verb="POST", params=kwargs)

            Registers participants removed from a Call. -https://api.slack.com/methods/calls.participants.remove

            +https://docs.slack.dev/reference/methods/calls.participants.remove

            def calls_update(self,
            *,
            id: str,
            desktop_app_join_url: str | None = None,
            join_url: str | None = None,
            title: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9160,7 +9234,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -9173,7 +9247,7 @@

            Methods

            return self.api_call("calls.update", http_verb="POST", params=kwargs)

            Updates information about a Call. -https://api.slack.com/methods/calls.update

            +https://docs.slack.dev/reference/methods/calls.update

            def canvases_access_delete(self,
            *,
            canvas_id: str,
            channel_ids: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9192,7 +9266,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -9208,7 +9282,7 @@

            Methods

            return self.api_call("canvases.access.delete", params=kwargs)

            Create a Channel Canvas for a channel -https://api.slack.com/methods/canvases.access.delete

            +https://docs.slack.dev/reference/methods/canvases.access.delete

            def canvases_access_set(self,
            *,
            canvas_id: str,
            access_level: str,
            channel_ids: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9228,7 +9302,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -9245,7 +9319,7 @@

            Methods

            return self.api_call("canvases.access.set", params=kwargs)

            Sets the access level to a canvas for specified entities -https://api.slack.com/methods/canvases.access.set

            +https://docs.slack.dev/reference/methods/canvases.access.set

            def canvases_create(self, *, title: str | None = None, document_content: Dict[str, str], **kwargs) ‑> SlackResponse @@ -9263,13 +9337,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return self.api_call("canvases.create", json=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.create

            def canvases_delete(self, *, canvas_id: str, **kwargs) ‑> SlackResponse @@ -9286,13 +9360,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return self.api_call("canvases.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.delete

            def canvases_edit(self, *, canvas_id: str, changes: Sequence[Dict[str, Any]], **kwargs) ‑> SlackResponse @@ -9310,13 +9384,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return self.api_call("canvases.edit", json=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.edit

            def canvases_sections_lookup(self, *, canvas_id: str, criteria: Dict[str, Any], **kwargs) ‑> SlackResponse @@ -9334,13 +9408,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return self.api_call("canvases.sections.lookup", params=kwargs)

            Find sections matching the provided criteria -https://api.slack.com/methods/canvases.sections.lookup

            +https://docs.slack.dev/reference/methods/canvases.sections.lookup

            def channels_archive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -9674,13 +9748,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return self.api_call("chat.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.delete

            def chat_deleteScheduledMessage(self,
            *,
            channel: str,
            scheduled_message_id: str,
            as_user: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9699,7 +9773,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -9711,7 +9785,7 @@

            Methods

            return self.api_call("chat.deleteScheduledMessage", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage

            def chat_meMessage(self, *, channel: str, text: str, **kwargs) ‑> SlackResponse @@ -9753,16 +9827,16 @@

            Methods

            **kwargs, ) -> SlackResponse: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return self.api_call("chat.meMessage", params=kwargs)

            Share a me message into a channel. -https://api.slack.com/methods/chat.meMessage

            +https://docs.slack.dev/reference/methods/chat.meMessage

            -def chat_postEphemeral(self,
            *,
            channel: str,
            user: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            **kwargs) ‑> SlackResponse
            +def chat_postEphemeral(self,
            *,
            channel: str,
            user: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9784,10 +9858,11 @@

            Methods

            link_names: Optional[bool] = None, username: Optional[str] = None, parse: Optional[str] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -9803,19 +9878,20 @@

            Methods

            "link_names": link_names, "username": username, "parse": parse, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postEphemeral", kwargs) + _warn_if_message_text_content_is_missing("chat.postEphemeral", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postEphemeral", json=kwargs)

            Sends an ephemeral message to a user in a channel. -https://api.slack.com/methods/chat.postEphemeral

            +https://docs.slack.dev/reference/methods/chat.postEphemeral

            -def chat_postMessage(self,
            *,
            channel: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            container_id: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            mrkdwn: bool | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> SlackResponse
            +def chat_postMessage(self,
            *,
            channel: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            container_id: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            mrkdwn: bool | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9842,10 +9918,11 @@

            Methods

            username: Optional[str] = None, parse: Optional[str] = None, # none, full metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -9866,19 +9943,20 @@

            Methods

            "username": username, "parse": parse, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.postMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postMessage", json=kwargs)

            Sends a message to a channel. -https://api.slack.com/methods/chat.postMessage

            +https://docs.slack.dev/reference/methods/chat.postMessage

            -def chat_scheduleMessage(self,
            *,
            channel: str,
            post_at: str | int,
            text: str,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            link_names: bool | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> SlackResponse
            +def chat_scheduleMessage(self,
            *,
            channel: str,
            post_at: str | int,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            link_names: bool | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9890,7 +9968,7 @@

            Methods

            *, channel: str, post_at: Union[str, int], - text: str, + text: Optional[str] = None, as_user: Optional[bool] = None, attachments: Optional[Union[str, Sequence[Union[Dict, Attachment]]]] = None, blocks: Optional[Union[str, Sequence[Union[Dict, Block]]]] = None, @@ -9901,10 +9979,11 @@

            Methods

            unfurl_media: Optional[bool] = None, link_names: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -9921,16 +10000,17 @@

            Methods

            "unfurl_media": unfurl_media, "link_names": link_names, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.scheduleMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.scheduleMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.scheduleMessage", json=kwargs)
            +https://docs.slack.dev/reference/methods/chat.scheduleMessage

            def chat_scheduledMessages_list(self,
            *,
            channel: str | None = None,
            cursor: str | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9952,7 +10032,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -9967,7 +10047,7 @@

            Methods

            return self.api_call("chat.scheduledMessages.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.scheduledMessages.list

            def chat_unfurl(self,
            *,
            channel: str | None = None,
            ts: str | None = None,
            source: str | None = None,
            unfurl_id: str | None = None,
            unfurls: Dict[str, Dict] | None = None,
            user_auth_blocks: str | Sequence[Dict | Block] | None = None,
            user_auth_message: str | None = None,
            user_auth_required: bool | None = None,
            user_auth_url: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9992,7 +10072,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -10013,10 +10093,10 @@

            Methods

            return self.api_call("chat.unfurl", json=kwargs)

            Provide custom unfurl behavior for user-posted URLs. -https://api.slack.com/methods/chat.unfurl

            +https://docs.slack.dev/reference/methods/chat.unfurl

            -def chat_update(self,
            *,
            channel: str,
            ts: str,
            text: str | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            as_user: bool | None = None,
            file_ids: str | Sequence[str] | None = None,
            link_names: bool | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> SlackResponse
            +def chat_update(self,
            *,
            channel: str,
            ts: str,
            text: str | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            as_user: bool | None = None,
            file_ids: str | Sequence[str] | None = None,
            link_names: bool | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10037,10 +10117,11 @@

            Methods

            parse: Optional[str] = None, # none, full reply_broadcast: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -10054,6 +10135,7 @@

            Methods

            "parse": parse, "reply_broadcast": reply_broadcast, "metadata": metadata, + "markdown_text": markdown_text, } ) if isinstance(file_ids, (list, tuple)): @@ -10062,12 +10144,12 @@

            Methods

            kwargs.update({"file_ids": file_ids}) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.update", kwargs) + _warn_if_message_text_content_is_missing("chat.update", kwargs) # NOTE: intentionally using json over params for API methods using blocks/attachments return self.api_call("chat.update", json=kwargs)

            Updates a message in a channel. -https://api.slack.com/methods/chat.update

            +https://docs.slack.dev/reference/methods/chat.update

            def conversations_acceptSharedInvite(self,
            *,
            channel_name: str,
            channel_id: str | None = None,
            invite_id: str | None = None,
            free_trial_accepted: bool | None = None,
            is_private: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10089,7 +10171,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -10106,7 +10188,7 @@

            Methods

            return self.api_call("conversations.acceptSharedInvite", http_verb="POST", params=kwargs)

            Accepts an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.acceptSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite

            def conversations_approveSharedInvite(self, *, invite_id: str, target_team: str | None = None, **kwargs) ‑> SlackResponse @@ -10124,13 +10206,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs)

            Approves an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.approveSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.approveSharedInvite

            def conversations_archive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10147,13 +10229,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return self.api_call("conversations.archive", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.archive

            def conversations_canvases_create(self, *, channel_id: str, document_content: Dict[str, str], **kwargs) ‑> SlackResponse @@ -10171,13 +10253,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return self.api_call("conversations.canvases.create", json=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.canvases.create

            def conversations_close(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10194,13 +10276,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return self.api_call("conversations.close", params=kwargs)

            Closes a direct message or multi-person direct message. -https://api.slack.com/methods/conversations.close

            +https://docs.slack.dev/reference/methods/conversations.close

            def conversations_create(self,
            *,
            name: str,
            is_private: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10219,13 +10301,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return self.api_call("conversations.create", params=kwargs)

            Initiates a public or private channel-based conversation -https://api.slack.com/methods/conversations.create

            +https://docs.slack.dev/reference/methods/conversations.create

            def conversations_declineSharedInvite(self, *, invite_id: str, target_team: str | None = None, **kwargs) ‑> SlackResponse @@ -10243,13 +10325,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs)

            Declines a Slack Connect channel invite. -https://api.slack.com/methods/conversations.declineSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.declineSharedInvite

            def conversations_externalInvitePermissions_set(self, *, action: str, channel: str, target_team: str, **kwargs) ‑> SlackResponse @@ -10263,7 +10345,7 @@

            Methods

            self, *, action: str, channel: str, target_team: str, **kwargs ) -> SlackResponse: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -10275,7 +10357,7 @@

            Methods

            return self.api_call("conversations.externalInvitePermissions.set", params=kwargs)

            Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. -https://api.slack.com/methods/conversations.externalInvitePermissions.set

            +https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set

            def conversations_history(self,
            *,
            channel: str,
            cursor: str | None = None,
            inclusive: bool | None = None,
            include_all_metadata: bool | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10298,7 +10380,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -10314,7 +10396,7 @@

            Methods

            return self.api_call("conversations.history", http_verb="GET", params=kwargs)

            Fetches a conversation's history of messages and events. -https://api.slack.com/methods/conversations.history

            +https://docs.slack.dev/reference/methods/conversations.history

            def conversations_info(self,
            *,
            channel: str,
            include_locale: bool | None = None,
            include_num_members: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10333,7 +10415,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -10345,7 +10427,7 @@

            Methods

            return self.api_call("conversations.info", http_verb="GET", params=kwargs)

            Retrieve information about a conversation. -https://api.slack.com/methods/conversations.info

            +https://docs.slack.dev/reference/methods/conversations.info

            def conversations_invite(self,
            *,
            channel: str,
            users: str | Sequence[str],
            force: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10364,7 +10446,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -10379,7 +10461,7 @@

            Methods

            return self.api_call("conversations.invite", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.invite

            def conversations_inviteShared(self,
            *,
            channel: str,
            emails: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10398,7 +10480,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -10414,7 +10496,7 @@

            Methods

            return self.api_call("conversations.inviteShared", http_verb="GET", params=kwargs)

            Sends an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.inviteShared

            +https://docs.slack.dev/reference/methods/conversations.inviteShared

            def conversations_join(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10431,13 +10513,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return self.api_call("conversations.join", params=kwargs)

            Joins an existing conversation. -https://api.slack.com/methods/conversations.join

            +https://docs.slack.dev/reference/methods/conversations.join

            def conversations_kick(self, *, channel: str, user: str, **kwargs) ‑> SlackResponse @@ -10455,13 +10537,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return self.api_call("conversations.kick", params=kwargs)

            Removes a user from a conversation. -https://api.slack.com/methods/conversations.kick

            +https://docs.slack.dev/reference/methods/conversations.kick

            def conversations_leave(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10478,13 +10560,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return self.api_call("conversations.leave", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.leave

            def conversations_list(self,
            *,
            cursor: str | None = None,
            exclude_archived: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            types: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10505,7 +10587,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -10522,7 +10604,7 @@

            Methods

            return self.api_call("conversations.list", http_verb="GET", params=kwargs)

            Lists all channels in a Slack team. -https://api.slack.com/methods/conversations.list

            +https://docs.slack.dev/reference/methods/conversations.list

            def conversations_listConnectInvites(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10542,14 +10624,14 @@

            Methods

            ) -> SlackResponse: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return self.api_call("conversations.listConnectInvites", params=kwargs)

            List shared channel invites that have been generated or received but have not yet been approved by all parties. -https://api.slack.com/methods/conversations.listConnectInvites

            +https://docs.slack.dev/reference/methods/conversations.listConnectInvites

            def conversations_mark(self, *, channel: str, ts: str, **kwargs) ‑> SlackResponse @@ -10567,13 +10649,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return self.api_call("conversations.mark", params=kwargs)

            Sets the read cursor in a channel. -https://api.slack.com/methods/conversations.mark

            +https://docs.slack.dev/reference/methods/conversations.mark

            def conversations_members(self, *, channel: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -10592,13 +10674,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return self.api_call("conversations.members", http_verb="GET", params=kwargs)

            Retrieve members of a conversation. -https://api.slack.com/methods/conversations.members

            +https://docs.slack.dev/reference/methods/conversations.members

            def conversations_open(self,
            *,
            channel: str | None = None,
            return_im: bool | None = None,
            users: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10617,7 +10699,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -10629,7 +10711,7 @@

            Methods

            return self.api_call("conversations.open", params=kwargs)

            Opens or resumes a direct message or multi-person direct message. -https://api.slack.com/methods/conversations.open

            +https://docs.slack.dev/reference/methods/conversations.open

            def conversations_rename(self, *, channel: str, name: str, **kwargs) ‑> SlackResponse @@ -10647,13 +10729,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return self.api_call("conversations.rename", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.rename

            def conversations_replies(self,
            *,
            channel: str,
            ts: str,
            cursor: str | None = None,
            inclusive: bool | None = None,
            include_all_metadata: bool | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10677,7 +10759,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -10694,7 +10776,7 @@

            Methods

            return self.api_call("conversations.replies", http_verb="GET", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.replies

            def conversations_requestSharedInvite_approve(self,
            *,
            invite_id: str,
            channel_id: str | None = None,
            is_external_limited: str | None = None,
            message: Dict[str, Any] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10714,7 +10796,7 @@

            Methods

            **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -10728,7 +10810,7 @@

            Methods

            return self.api_call("conversations.requestSharedInvite.approve", params=kwargs)

            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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve

            def conversations_requestSharedInvite_deny(self, *, invite_id: str, message: str | None = None, **kwargs) ‑> SlackResponse @@ -10746,13 +10828,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return self.api_call("conversations.requestSharedInvite.deny", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny

            def conversations_requestSharedInvite_list(self,
            *,
            cursor: str | None = None,
            include_approved: bool | None = None,
            include_denied: bool | None = None,
            include_expired: bool | None = None,
            invite_ids: str | Sequence[str] | None = None,
            limit: int | None = None,
            user_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10775,7 +10857,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -10795,7 +10877,7 @@

            Methods

            return self.api_call("conversations.requestSharedInvite.list", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list

            def conversations_setPurpose(self, *, channel: str, purpose: str, **kwargs) ‑> SlackResponse @@ -10813,13 +10895,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return self.api_call("conversations.setPurpose", params=kwargs)

            Sets the purpose for a conversation. -https://api.slack.com/methods/conversations.setPurpose

            +https://docs.slack.dev/reference/methods/conversations.setPurpose

            def conversations_setTopic(self, *, channel: str, topic: str, **kwargs) ‑> SlackResponse @@ -10837,13 +10919,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return self.api_call("conversations.setTopic", params=kwargs)

            Sets the topic for a conversation. -https://api.slack.com/methods/conversations.setTopic

            +https://docs.slack.dev/reference/methods/conversations.setTopic

            def conversations_unarchive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10860,13 +10942,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return self.api_call("conversations.unarchive", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.unarchive

            def dialog_open(self, *, dialog: Dict[str, Any], trigger_id: str, **kwargs) ‑> SlackResponse @@ -10884,7 +10966,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -10892,7 +10974,7 @@

            Methods

            return self.api_call("dialog.open", json=kwargs)

            Open a dialog with a user. -https://api.slack.com/methods/dialog.open

            +https://docs.slack.dev/reference/methods/dialog.open

            def dnd_endDnd(self, **kwargs) ‑> SlackResponse @@ -10907,12 +10989,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return self.api_call("dnd.endDnd", params=kwargs)

            Ends the current user's Do Not Disturb session immediately. -https://api.slack.com/methods/dnd.endDnd

            +https://docs.slack.dev/reference/methods/dnd.endDnd

            def dnd_endSnooze(self, **kwargs) ‑> SlackResponse @@ -10927,12 +11009,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return self.api_call("dnd.endSnooze", params=kwargs)

            Ends the current user's snooze mode immediately. -https://api.slack.com/methods/dnd.endSnooze

            +https://docs.slack.dev/reference/methods/dnd.endSnooze

            def dnd_info(self, *, team_id: str | None = None, user: str | None = None, **kwargs) ‑> SlackResponse @@ -10950,13 +11032,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("dnd.info", http_verb="GET", params=kwargs)

            Retrieves a user's current Do Not Disturb status. -https://api.slack.com/methods/dnd.info

            +https://docs.slack.dev/reference/methods/dnd.info

            def dnd_setSnooze(self, *, num_minutes: str | int, **kwargs) ‑> SlackResponse @@ -10973,13 +11055,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs)

            Turns on Do Not Disturb mode for the current user, or changes its duration. -https://api.slack.com/methods/dnd.setSnooze

            +https://docs.slack.dev/reference/methods/dnd.setSnooze

            def dnd_teamInfo(self, users: str | Sequence[str], team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -10996,7 +11078,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -11006,7 +11088,7 @@

            Methods

            return self.api_call("dnd.teamInfo", http_verb="GET", params=kwargs)

            Retrieves the Do Not Disturb status for users on a team. -https://api.slack.com/methods/dnd.teamInfo

            +https://docs.slack.dev/reference/methods/dnd.teamInfo

            def emoji_list(self, include_categories: bool | None = None, **kwargs) ‑> SlackResponse @@ -11022,13 +11104,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return self.api_call("emoji.list", http_verb="GET", params=kwargs)

            Lists custom emoji for a team. -https://api.slack.com/methods/emoji.list

            +https://docs.slack.dev/reference/methods/emoji.list

            def files_comments_delete(self, *, file: str, id: str, **kwargs) ‑> SlackResponse @@ -11046,13 +11128,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return self.api_call("files.comments.delete", params=kwargs)

            Deletes an existing comment on a file. -https://api.slack.com/methods/files.comments.delete

            +https://docs.slack.dev/reference/methods/files.comments.delete

            def files_completeUploadExternal(self,
            *,
            files: List[Dict[str, str]],
            channel_id: str | None = None,
            channels: List[str] | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11073,7 +11155,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -11089,7 +11171,7 @@

            Methods

            return self.api_call("files.completeUploadExternal", params=kwargs)

            Finishes an upload started with files.getUploadURLExternal. -https://api.slack.com/methods/files.completeUploadExternal

            +https://docs.slack.dev/reference/methods/files.completeUploadExternal

            def files_delete(self, *, file: str, **kwargs) ‑> SlackResponse @@ -11106,13 +11188,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return self.api_call("files.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/files.delete

            def files_getUploadURLExternal(self,
            *,
            filename: str,
            length: int,
            alt_txt: str | None = None,
            snippet_type: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11132,7 +11214,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -11145,7 +11227,7 @@

            Methods

            return self.api_call("files.getUploadURLExternal", params=kwargs)

            Gets a URL for an edge external upload. -https://api.slack.com/methods/files.getUploadURLExternal

            +https://docs.slack.dev/reference/methods/files.getUploadURLExternal

            def files_info(self,
            *,
            file: str,
            count: int | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            page: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11166,7 +11248,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -11180,7 +11262,7 @@

            Methods

            return self.api_call("files.info", http_verb="GET", params=kwargs)

            Gets information about a team file. -https://api.slack.com/methods/files.info

            +https://docs.slack.dev/reference/methods/files.info

            def files_list(self,
            *,
            channel: str | None = None,
            count: int | None = None,
            page: int | None = None,
            show_files_hidden_by_limit: bool | None = None,
            team_id: str | None = None,
            ts_from: str | None = None,
            ts_to: str | None = None,
            types: str | Sequence[str] | None = None,
            user: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11205,7 +11287,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -11226,7 +11308,7 @@

            Methods

            return self.api_call("files.list", http_verb="GET", params=kwargs)

            Lists & filters team files. -https://api.slack.com/methods/files.list

            +https://docs.slack.dev/reference/methods/files.list

            def files_remote_add(self,
            *,
            external_id: str,
            external_url: str,
            title: str,
            filetype: str | None = None,
            indexable_file_contents: str | bytes | io.IOBase | None = None,
            preview_image: str | bytes | io.IOBase | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11248,7 +11330,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -11275,7 +11357,7 @@

            Methods

            )

            Adds a file from a remote service. -https://api.slack.com/methods/files.remote.add

            +https://docs.slack.dev/reference/methods/files.remote.add

            def files_remote_info(self, *, external_id: str | None = None, file: str | None = None, **kwargs) ‑> SlackResponse @@ -11293,13 +11375,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.info", http_verb="GET", params=kwargs)

            Retrieve information about a remote file added to Slack. -https://api.slack.com/methods/files.remote.info

            +https://docs.slack.dev/reference/methods/files.remote.info

            def files_remote_list(self,
            *,
            channel: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            ts_from: str | None = None,
            ts_to: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11320,7 +11402,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -11334,7 +11416,7 @@

            Methods

            return self.api_call("files.remote.list", http_verb="GET", params=kwargs)

            Retrieve information about a remote file added to Slack. -https://api.slack.com/methods/files.remote.list

            +https://docs.slack.dev/reference/methods/files.remote.list

            def files_remote_remove(self, *, external_id: str | None = None, file: str | None = None, **kwargs) ‑> SlackResponse @@ -11352,13 +11434,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.remove", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/files.remote.remove

            def files_remote_share(self,
            *,
            channels: str | Sequence[str],
            external_id: str | None = None,
            file: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11377,7 +11459,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -11389,7 +11471,7 @@

            Methods

            return self.api_call("files.remote.share", http_verb="GET", params=kwargs)

            Share a remote file into a channel. -https://api.slack.com/methods/files.remote.share

            +https://docs.slack.dev/reference/methods/files.remote.share

            def files_remote_update(self,
            *,
            external_id: str | None = None,
            external_url: str | None = None,
            file: str | None = None,
            title: str | None = None,
            filetype: str | None = None,
            indexable_file_contents: str | None = None,
            preview_image: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11412,7 +11494,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -11440,7 +11522,7 @@

            Methods

            )

            Updates an existing remote file. -https://api.slack.com/methods/files.remote.update

            +https://docs.slack.dev/reference/methods/files.remote.update

            def files_revokePublicURL(self, *, file: str, **kwargs) ‑> SlackResponse @@ -11457,13 +11539,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return self.api_call("files.revokePublicURL", params=kwargs)

            Revokes public/external sharing access for a file -https://api.slack.com/methods/files.revokePublicURL

            +https://docs.slack.dev/reference/methods/files.revokePublicURL

            def files_sharedPublicURL(self, *, file: str, **kwargs) ‑> SlackResponse @@ -11480,13 +11562,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return self.api_call("files.sharedPublicURL", params=kwargs)

            Enables a file for public/external sharing. -https://api.slack.com/methods/files.sharedPublicURL

            +https://docs.slack.dev/reference/methods/files.sharedPublicURL

            def files_upload(self,
            *,
            file: str | bytes | io.IOBase | None = None,
            content: str | bytes | None = None,
            filename: str | None = None,
            filetype: str | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            title: str | None = None,
            channels: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11510,7 +11592,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -11543,7 +11625,7 @@

            Methods

            return self.api_call("files.upload", data=kwargs)

            Uploads or creates a file. -https://api.slack.com/methods/files.upload

            +https://docs.slack.dev/reference/methods/files.upload

            def files_upload_v2(self,
            *,
            filename: str | None = None,
            file: str | bytes | io.IOBase | os.PathLike | None = None,
            content: str | bytes | None = None,
            title: str | None = None,
            alt_txt: str | None = None,
            snippet_type: str | None = None,
            file_uploads: List[Dict[str, Any]] | None = None,
            channel: str | None = None,
            channels: List[str] | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            request_file_info: bool = True,
            **kwargs) ‑> SlackResponse
            @@ -11574,12 +11656,12 @@

            Methods

            ) -> SlackResponse: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -11658,14 +11740,14 @@

            Methods

            This wrapper method provides an easy way to upload files using the following endpoints:

            @@ -11685,13 +11767,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return self.api_call("functions.completeError", params=kwargs)

            Signal the failure to execute a function -https://api.slack.com/methods/functions.completeError

            +https://docs.slack.dev/reference/methods/functions.completeError

            def functions_completeSuccess(self, *, function_execution_id: str, outputs: Dict[str, Any], **kwargs) ‑> SlackResponse @@ -11709,13 +11791,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return self.api_call("functions.completeSuccess", params=kwargs)

            Signal the successful completion of a function -https://api.slack.com/methods/functions.completeSuccess

            +https://docs.slack.dev/reference/methods/functions.completeSuccess

            def groups_archive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -12191,7 +12273,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -12201,7 +12283,7 @@

            Methods

            return self.api_call("migration.exchange", http_verb="GET", params=kwargs)

            For Enterprise Grid workspaces, map local user IDs to global user IDs -https://api.slack.com/methods/migration.exchange

            +https://docs.slack.dev/reference/methods/migration.exchange

            def mpim_close(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -12348,7 +12430,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12360,7 +12442,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token. -https://api.slack.com/methods/oauth.access

            +https://docs.slack.dev/reference/methods/oauth.access

            def oauth_v2_access(self,
            *,
            client_id: str,
            client_secret: str,
            code: str | None = None,
            redirect_uri: str | None = None,
            grant_type: str | None = None,
            refresh_token: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12386,7 +12468,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12403,7 +12485,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token. -https://api.slack.com/methods/oauth.v2.access

            +https://docs.slack.dev/reference/methods/oauth.v2.access

            def oauth_v2_exchange(self, *, token: str, client_id: str, client_secret: str, **kwargs) ‑> SlackResponse @@ -12422,13 +12504,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return self.api_call("oauth.v2.exchange", params=kwargs)

            Exchanges a legacy access token for a new expiring access token and refresh token -https://api.slack.com/methods/oauth.v2.exchange

            +https://docs.slack.dev/reference/methods/oauth.v2.exchange

            def openid_connect_token(self,
            client_id: str,
            client_secret: str,
            code: str | None = None,
            redirect_uri: str | None = None,
            grant_type: str | None = None,
            refresh_token: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12449,7 +12531,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12466,7 +12548,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. -https://api.slack.com/methods/openid.connect.token

            +https://docs.slack.dev/reference/methods/openid.connect.token

            def openid_connect_userInfo(self, **kwargs) ‑> SlackResponse @@ -12481,12 +12563,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return self.api_call("openid.connect.userInfo", params=kwargs)

            Get the identity of a user who has authorized Sign in with Slack. -https://api.slack.com/methods/openid.connect.userInfo

            +https://docs.slack.dev/reference/methods/openid.connect.userInfo

            def pins_add(self, *, channel: str, timestamp: str | None = None, **kwargs) ‑> SlackResponse @@ -12504,13 +12586,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.add", params=kwargs)

            Pins an item to a channel. -https://api.slack.com/methods/pins.add

            +https://docs.slack.dev/reference/methods/pins.add

            def pins_list(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -12527,13 +12609,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return self.api_call("pins.list", http_verb="GET", params=kwargs)

            Lists items pinned to a channel. -https://api.slack.com/methods/pins.list

            +https://docs.slack.dev/reference/methods/pins.list

            def pins_remove(self, *, channel: str, timestamp: str | None = None, **kwargs) ‑> SlackResponse @@ -12551,13 +12633,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.remove", params=kwargs)

            Un-pins an item from a channel. -https://api.slack.com/methods/pins.remove

            +https://docs.slack.dev/reference/methods/pins.remove

            def reactions_add(self, *, channel: str, name: str, timestamp: str, **kwargs) ‑> SlackResponse @@ -12576,13 +12658,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return self.api_call("reactions.add", params=kwargs)

            Adds a reaction to an item. -https://api.slack.com/methods/reactions.add

            +https://docs.slack.dev/reference/methods/reactions.add

            def reactions_get(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            full: bool | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12603,7 +12685,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -12617,7 +12699,7 @@

            Methods

            return self.api_call("reactions.get", http_verb="GET", params=kwargs)

            Gets reactions for an item. -https://api.slack.com/methods/reactions.get

            +https://docs.slack.dev/reference/methods/reactions.get

            def reactions_list(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            full: bool | None = None,
            limit: int | None = None,
            page: int | None = None,
            team_id: str | None = None,
            user: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12640,7 +12722,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -12656,7 +12738,7 @@

            Methods

            return self.api_call("reactions.list", http_verb="GET", params=kwargs)

            Lists reactions made by a user. -https://api.slack.com/methods/reactions.list

            +https://docs.slack.dev/reference/methods/reactions.list

            def reactions_remove(self,
            *,
            name: str,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12677,7 +12759,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -12691,7 +12773,7 @@

            Methods

            return self.api_call("reactions.remove", params=kwargs)

            Removes a reaction from an item. -https://api.slack.com/methods/reactions.remove

            +https://docs.slack.dev/reference/methods/reactions.remove

            def reminders_add(self,
            *,
            text: str,
            time: str,
            team_id: str | None = None,
            user: str | None = None,
            recurrence: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12712,7 +12794,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -12726,7 +12808,7 @@

            Methods

            return self.api_call("reminders.add", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.add

            def reminders_complete(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -12744,13 +12826,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.complete", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.complete

            def reminders_delete(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -12768,13 +12850,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.delete

            def reminders_info(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -12792,13 +12874,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.info", http_verb="GET", params=kwargs)

            Gets information about a reminder. -https://api.slack.com/methods/reminders.info

            +https://docs.slack.dev/reference/methods/reminders.info

            def reminders_list(self, *, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -12815,13 +12897,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return self.api_call("reminders.list", http_verb="GET", params=kwargs)

            Lists all reminders created by or for a given user. -https://api.slack.com/methods/reminders.list

            +https://docs.slack.dev/reference/methods/reminders.list

            def rtm_connect(self,
            *,
            batch_presence_aware: bool | None = None,
            presence_sub: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12839,13 +12921,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return self.api_call("rtm.connect", http_verb="GET", params=kwargs)

            Starts a Real Time Messaging session. -https://api.slack.com/methods/rtm.connect

            +https://docs.slack.dev/reference/methods/rtm.connect

            def rtm_start(self,
            *,
            batch_presence_aware: bool | None = None,
            include_locale: bool | None = None,
            mpim_aware: bool | None = None,
            no_latest: bool | None = None,
            no_unreads: bool | None = None,
            presence_sub: bool | None = None,
            simple_latest: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12868,7 +12950,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -12884,7 +12966,7 @@

            Methods

            return self.api_call("rtm.start", http_verb="GET", params=kwargs)

            Starts a Real Time Messaging session. -https://api.slack.com/methods/rtm.start

            +https://docs.slack.dev/reference/methods/rtm.start

            def search_all(self,
            *,
            query: str,
            count: int | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12907,7 +12989,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -12923,7 +13005,7 @@

            Methods

            return self.api_call("search.all", http_verb="GET", params=kwargs)

            Searches for messages and files matching a query. -https://api.slack.com/methods/search.all

            +https://docs.slack.dev/reference/methods/search.all

            def search_files(self,
            *,
            query: str,
            count: int | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12946,7 +13028,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -12962,7 +13044,7 @@

            Methods

            return self.api_call("search.files", http_verb="GET", params=kwargs)

            Searches for files matching a query. -https://api.slack.com/methods/search.files

            +https://docs.slack.dev/reference/methods/search.files

            def search_messages(self,
            *,
            query: str,
            count: int | None = None,
            cursor: str | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12986,7 +13068,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -13003,7 +13085,7 @@

            Methods

            return self.api_call("search.messages", http_verb="GET", params=kwargs)

            Searches for messages matching a query. -https://api.slack.com/methods/search.messages

            +https://docs.slack.dev/reference/methods/search.messages

            def stars_add(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13023,7 +13105,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -13036,7 +13118,7 @@

            Methods

            return self.api_call("stars.add", params=kwargs)
            +https://docs.slack.dev/reference/methods/stars.add

            def stars_list(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            page: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13057,7 +13139,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -13071,7 +13153,7 @@

            Methods

            return self.api_call("stars.list", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/stars.list

            def stars_remove(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13091,7 +13173,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -13104,7 +13186,7 @@

            Methods

            return self.api_call("stars.remove", params=kwargs)

            Removes a star from an item. -https://api.slack.com/methods/stars.remove

            +https://docs.slack.dev/reference/methods/stars.remove

            def team_accessLogs(self,
            *,
            before: str | int | None = None,
            count: str | int | None = None,
            page: str | int | None = None,
            team_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13126,7 +13208,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -13141,7 +13223,7 @@

            Methods

            return self.api_call("team.accessLogs", http_verb="GET", params=kwargs)

            Gets the access logs for the current team. -https://api.slack.com/methods/team.accessLogs

            +https://docs.slack.dev/reference/methods/team.accessLogs

            def team_billableInfo(self, *, team_id: str | None = None, user: str | None = None, **kwargs) ‑> SlackResponse @@ -13159,13 +13241,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("team.billableInfo", http_verb="GET", params=kwargs)

            Gets billable users information for the current team. -https://api.slack.com/methods/team.billableInfo

            +https://docs.slack.dev/reference/methods/team.billableInfo

            def team_billing_info(self, **kwargs) ‑> SlackResponse @@ -13180,12 +13262,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return self.api_call("team.billing.info", params=kwargs)

            Reads a workspace's billing plan information. -https://api.slack.com/methods/team.billing.info

            +https://docs.slack.dev/reference/methods/team.billing.info

            def team_externalTeams_disconnect(self, *, target_team: str, **kwargs) ‑> SlackResponse @@ -13202,7 +13284,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -13212,7 +13294,7 @@

            Methods

            return self.api_call("team.externalTeams.disconnect", params=kwargs)
            +https://docs.slack.dev/reference/methods/team.externalTeams.disconnect

            def team_externalTeams_list(self,
            *,
            connection_status_filter: str | None = None,
            slack_connect_pref_filter: Sequence[str] | None = None,
            sort_direction: str | None = None,
            sort_field: str | None = None,
            workspace_filter: Sequence[str] | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13235,7 +13317,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -13259,7 +13341,7 @@

            Methods

            return self.api_call("team.externalTeams.list", http_verb="GET", params=kwargs)

            Returns a list of all the external teams connected and details about the connection. -https://api.slack.com/methods/team.externalTeams.list

            +https://docs.slack.dev/reference/methods/team.externalTeams.list

            def team_info(self, *, team: str | None = None, domain: str | None = None, **kwargs) ‑> SlackResponse @@ -13277,13 +13359,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return self.api_call("team.info", http_verb="GET", params=kwargs)

            Gets information about the current team. -https://api.slack.com/methods/team.info

            +https://docs.slack.dev/reference/methods/team.info

            def team_integrationLogs(self,
            *,
            app_id: str | None = None,
            change_type: str | None = None,
            count: str | int | None = None,
            page: str | int | None = None,
            service_id: str | None = None,
            team_id: str | None = None,
            user: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13306,7 +13388,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -13322,7 +13404,7 @@

            Methods

            return self.api_call("team.integrationLogs", http_verb="GET", params=kwargs)

            Gets the integration logs for the current team. -https://api.slack.com/methods/team.integrationLogs

            +https://docs.slack.dev/reference/methods/team.integrationLogs

            def team_preferences_list(self, **kwargs) ‑> SlackResponse @@ -13337,12 +13419,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return self.api_call("team.preferences.list", params=kwargs)

            Retrieve a list of a workspace's team preferences. -https://api.slack.com/methods/team.preferences.list

            +https://docs.slack.dev/reference/methods/team.preferences.list

            def team_profile_get(self, *, visibility: str | None = None, **kwargs) ‑> SlackResponse @@ -13359,13 +13441,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return self.api_call("team.profile.get", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/team.profile.get

            def tooling_tokens_rotate(self, *, refresh_token: str, **kwargs) ‑> SlackResponse @@ -13382,13 +13464,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return self.api_call("tooling.tokens.rotate", params=kwargs)

            Exchanges a refresh token for a new app configuration token -https://api.slack.com/methods/tooling.tokens.rotate

            +https://docs.slack.dev/reference/methods/tooling.tokens.rotate

            def usergroups_create(self,
            *,
            name: str,
            channels: str | Sequence[str] | None = None,
            description: str | None = None,
            handle: str | None = None,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13410,7 +13492,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -13428,7 +13510,7 @@

            Methods

            return self.api_call("usergroups.create", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.create

            def usergroups_disable(self,
            *,
            usergroup: str,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13447,13 +13529,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.disable", params=kwargs)

            Disable an existing User Group -https://api.slack.com/methods/usergroups.disable

            +https://docs.slack.dev/reference/methods/usergroups.disable

            def usergroups_enable(self,
            *,
            usergroup: str,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13472,13 +13554,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.enable", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.enable

            def usergroups_list(self,
            *,
            include_count: bool | None = None,
            include_disabled: bool | None = None,
            include_users: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13498,7 +13580,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -13511,7 +13593,7 @@

            Methods

            return self.api_call("usergroups.list", http_verb="GET", params=kwargs)

            List all User Groups for a team -https://api.slack.com/methods/usergroups.list

            +https://docs.slack.dev/reference/methods/usergroups.list

            def usergroups_update(self,
            *,
            usergroup: str,
            channels: str | Sequence[str] | None = None,
            description: str | None = None,
            handle: str | None = None,
            include_count: bool | None = None,
            name: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13534,7 +13616,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -13553,7 +13635,7 @@

            Methods

            return self.api_call("usergroups.update", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.update

            def usergroups_users_list(self,
            *,
            usergroup: str,
            include_disabled: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13572,7 +13654,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -13584,7 +13666,7 @@

            Methods

            return self.api_call("usergroups.users.list", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.users.list

            def usergroups_users_update(self,
            *,
            usergroup: str,
            users: str | Sequence[str],
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13604,7 +13686,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -13620,7 +13702,7 @@

            Methods

            return self.api_call("usergroups.users.update", params=kwargs)

            Update the list of users for a User Group -https://api.slack.com/methods/usergroups.users.update

            +https://docs.slack.dev/reference/methods/usergroups.users.update

            def users_conversations(self,
            *,
            cursor: str | None = None,
            exclude_archived: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            types: str | Sequence[str] | None = None,
            user: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13642,7 +13724,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -13660,7 +13742,7 @@

            Methods

            return self.api_call("users.conversations", http_verb="GET", params=kwargs)

            List conversations the calling user may access. -https://api.slack.com/methods/users.conversations

            +https://docs.slack.dev/reference/methods/users.conversations

            def users_deletePhoto(self, **kwargs) ‑> SlackResponse @@ -13675,12 +13757,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return self.api_call("users.deletePhoto", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.deletePhoto

            def users_discoverableContacts_lookup(self, email: str, **kwargs) ‑> SlackResponse @@ -13696,13 +13778,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return self.api_call("users.discoverableContacts.lookup", params=kwargs)

            Lookup an email address to see if someone is on Slack -https://api.slack.com/methods/users.discoverableContacts.lookup

            +https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup

            def users_getPresence(self, *, user: str, **kwargs) ‑> SlackResponse @@ -13719,13 +13801,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return self.api_call("users.getPresence", http_verb="GET", params=kwargs)

            Gets user presence information. -https://api.slack.com/methods/users.getPresence

            +https://docs.slack.dev/reference/methods/users.getPresence

            def users_identity(self, **kwargs) ‑> SlackResponse @@ -13740,12 +13822,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return self.api_call("users.identity", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.identity

            def users_info(self, *, user: str, include_locale: bool | None = None, **kwargs) ‑> SlackResponse @@ -13763,13 +13845,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return self.api_call("users.info", http_verb="GET", params=kwargs)

            Gets information about a user. -https://api.slack.com/methods/users.info

            +https://docs.slack.dev/reference/methods/users.info

            def users_list(self,
            *,
            cursor: str | None = None,
            include_locale: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13789,7 +13871,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -13802,7 +13884,7 @@

            Methods

            return self.api_call("users.list", http_verb="GET", params=kwargs)

            Lists all users in a Slack team. -https://api.slack.com/methods/users.list

            +https://docs.slack.dev/reference/methods/users.list

            def users_lookupByEmail(self, *, email: str, **kwargs) ‑> SlackResponse @@ -13819,13 +13901,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs)

            Find a user with an email address. -https://api.slack.com/methods/users.lookupByEmail

            +https://docs.slack.dev/reference/methods/users.lookupByEmail

            def users_profile_get(self, *, user: str | None = None, include_labels: bool | None = None, **kwargs) ‑> SlackResponse @@ -13843,13 +13925,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return self.api_call("users.profile.get", http_verb="GET", params=kwargs)

            Retrieves a user's profile information. -https://api.slack.com/methods/users.profile.get

            +https://docs.slack.dev/reference/methods/users.profile.get

            def users_profile_set(self,
            *,
            name: str | None = None,
            value: str | None = None,
            user: str | None = None,
            profile: Dict | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13869,7 +13951,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -13884,7 +13966,7 @@

            Methods

            return self.api_call("users.profile.set", json=kwargs)

            Set the profile information for a user. -https://api.slack.com/methods/users.profile.set

            +https://docs.slack.dev/reference/methods/users.profile.set

            def users_setPhoto(self,
            *,
            image: str | io.IOBase,
            crop_w: str | int | None = None,
            crop_x: str | int | None = None,
            crop_y: str | int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13904,13 +13986,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return self.api_call("users.setPhoto", files={"image": image}, data=kwargs)
            +https://docs.slack.dev/reference/methods/users.setPhoto

            def users_setPresence(self, *, presence: str, **kwargs) ‑> SlackResponse @@ -13927,13 +14009,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return self.api_call("users.setPresence", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.setPresence

            def views_open(self,
            *,
            trigger_id: str | None = None,
            interactivity_pointer: str | None = None,
            view: dict | View,
            **kwargs) ‑> SlackResponse
            @@ -13952,8 +14034,8 @@

            Methods

            **kwargs, ) -> SlackResponse: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -13965,8 +14047,8 @@

            Methods

            return self.api_call("views.open", json=kwargs)
            +https://docs.slack.dev/reference/methods/views.open +See https://docs.slack.dev/surfaces/modals/ for details.

            def views_publish(self,
            *,
            user_id: str,
            view: dict | View,
            hash: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13986,8 +14068,8 @@

            Methods

            ) -> SlackResponse: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -14000,8 +14082,8 @@

            Methods

            Publish a static view for a User. Create or update the view that comprises an -app's Home tab (https://api.slack.com/surfaces/tabs) -https://api.slack.com/methods/views.publish

            +app's Home tab (https://docs.slack.dev/surfaces/app-home/) +https://docs.slack.dev/reference/methods/views.publish

            def views_push(self,
            *,
            trigger_id: str | None = None,
            interactivity_pointer: str | None = None,
            view: dict | View,
            **kwargs) ‑> SlackResponse
            @@ -14023,9 +14105,9 @@

            Methods

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -14040,9 +14122,9 @@

            Methods

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. -Read the modals documentation (https://api.slack.com/surfaces/modals) +Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. -https://api.slack.com/methods/views.push

            +https://docs.slack.dev/reference/methods/views.push

            def views_update(self,
            *,
            view: dict | View,
            external_id: str | None = None,
            view_id: str | None = None,
            hash: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -14064,9 +14146,9 @@

            Methods

            """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -14086,9 +14168,119 @@

            Methods

            Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. -See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) +See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. -https://api.slack.com/methods/views.update

            +https://docs.slack.dev/reference/methods/views.update

            + +
            +
            +
            + +Expand source code + +
            def workflows_featured_add(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> SlackResponse:
            +    """Add featured workflows to a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.add
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return self.api_call("workflows.featured.add", params=kwargs)
            +
            + +
            + +
            +
            + +Expand source code + +
            def workflows_featured_list(
            +    self,
            +    *,
            +    channel_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> SlackResponse:
            +    """List the featured workflows for specified channels.
            +    https://docs.slack.dev/reference/methods/workflows.featured.list
            +    """
            +    if isinstance(channel_ids, (list, tuple)):
            +        kwargs.update({"channel_ids": ",".join(channel_ids)})
            +    else:
            +        kwargs.update({"channel_ids": channel_ids})
            +    return self.api_call("workflows.featured.list", params=kwargs)
            +
            +

            List the featured workflows for specified channels. +https://docs.slack.dev/reference/methods/workflows.featured.list

            +
            + +
            +
            + +Expand source code + +
            def workflows_featured_remove(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> SlackResponse:
            +    """Remove featured workflows from a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.remove
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return self.api_call("workflows.featured.remove", params=kwargs)
            +
            + +
            + +
            +
            + +Expand source code + +
            def workflows_featured_set(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> SlackResponse:
            +    """Set featured workflows for a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.set
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return self.api_call("workflows.featured.set", params=kwargs)
            +
            +
            def workflows_stepCompleted(self, *, workflow_step_execute_id: str, outputs: dict | None = None, **kwargs) ‑> SlackResponse @@ -14106,7 +14298,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -14116,7 +14308,7 @@

            Methods

            return self.api_call("workflows.stepCompleted", json=kwargs)

            Indicate a successful outcome of a workflow step's execution. -https://api.slack.com/methods/workflows.stepCompleted

            +https://docs.slack.dev/reference/methods/workflows.stepCompleted

            def workflows_stepFailed(self, *, workflow_step_execute_id: str, error: Dict[str, str], **kwargs) ‑> SlackResponse @@ -14134,7 +14326,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -14147,7 +14339,7 @@

            Methods

            return self.api_call("workflows.stepFailed", json=kwargs)

            Indicate an unsuccessful outcome of a workflow step's execution. -https://api.slack.com/methods/workflows.stepFailed

            +https://docs.slack.dev/reference/methods/workflows.stepFailed

            def workflows_updateStep(self,
            *,
            workflow_step_edit_id: str,
            inputs: Dict[str, Any] | None = None,
            outputs: List[Dict[str, str]] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -14166,7 +14358,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: @@ -14178,7 +14370,7 @@

            Methods

            return self.api_call("workflows.updateStep", json=kwargs)

            Update the configuration for a workflow extension step. -https://api.slack.com/methods/workflows.updateStep

            +https://docs.slack.dev/reference/methods/workflows.updateStep

            Inherited members

            @@ -14512,6 +14704,10 @@

            views_publish
          • views_push
          • views_update
          • +
          • workflows_featured_add
          • +
          • workflows_featured_list
          • +
          • workflows_featured_remove
          • +
          • workflows_featured_set
          • workflows_stepCompleted
          • workflows_stepFailed
          • workflows_updateStep
          • diff --git a/docs/reference/web/deprecation.html b/docs/reference/web/deprecation.html index 5cab0cf2b..0b68d0c84 100644 --- a/docs/reference/web/deprecation.html +++ b/docs/reference/web/deprecation.html @@ -67,7 +67,7 @@

            Functions

            message = ( f"{method_name} is deprecated. Please use the Conversations API instead. " "For more info, go to " - "https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api" + "https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/" ) warnings.warn(message) @@ -76,7 +76,7 @@

            Functions

            if len(matched_prefixes) > 0: message = ( f"{method_name} is deprecated. For more info, go to " - "https://api.slack.com/changelog/2023-07-its-later-already-for-stars-and-reminders" + "https://docs.slack.dev/changelog/2023-07-its-later-already-for-stars-and-reminders/" ) warnings.warn(message) @@ -85,7 +85,7 @@

            Functions

            if len(matched_prefixes) > 0: message = ( f"{method_name} is deprecated. For more info, go to " - "https://api.slack.com/changelog/2023-08-workflow-steps-from-apps-step-back" + "https://docs.slack.dev/changelog/2023-08-workflow-steps-from-apps-step-back/" ) warnings.warn(message)
            diff --git a/docs/reference/web/index.html b/docs/reference/web/index.html index e4ac7ea49..ee73d3ba2 100644 --- a/docs/reference/web/index.html +++ b/docs/reference/web/index.html @@ -420,7 +420,7 @@

            Raises

            class WebClient(BaseClient):
                 """A WebClient allows apps to communicate with the Slack Platform's Web API.
             
            -    https://api.slack.com/methods
            +    https://docs.slack.dev/reference/methods
             
                 The Slack Web API is an interface for querying information from
                 and enacting change in a Slack workspace.
            @@ -491,7 +491,7 @@ 

            Raises

            **kwargs, ) -> SlackResponse: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -513,7 +513,7 @@

            Raises

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -540,7 +540,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -561,7 +561,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -581,7 +581,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -601,7 +601,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -625,7 +625,7 @@

            Raises

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -652,7 +652,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -674,7 +674,7 @@

            Raises

            ) -> SlackResponse: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -705,7 +705,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -733,7 +733,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -750,7 +750,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -772,7 +772,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -792,7 +792,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -811,7 +811,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -830,7 +830,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -846,7 +846,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -865,7 +865,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -884,7 +884,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -904,7 +904,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs) @@ -919,7 +919,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -940,7 +940,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -960,7 +960,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -980,7 +980,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.delete", params=kwargs) @@ -993,7 +993,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -1010,7 +1010,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.archive", params=kwargs) @@ -1022,7 +1022,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.unarchive", params=kwargs) @@ -1035,7 +1035,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return self.api_call("admin.conversations.rename", params=kwargs) @@ -1053,7 +1053,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Search for public or private channels in an Enterprise organization. - https://api.slack.com/methods/admin.conversations.search + https://docs.slack.dev/reference/methods/admin.conversations.search """ kwargs.update( { @@ -1084,7 +1084,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPrivate", params=kwargs) @@ -1096,7 +1096,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPublic", params=kwargs) @@ -1109,7 +1109,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -1125,7 +1125,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getConversationPrefs", params=kwargs) @@ -1138,7 +1138,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -1158,7 +1158,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -1186,7 +1186,7 @@

            Raises

            """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -1213,7 +1213,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -1236,7 +1236,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -1259,7 +1259,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -1284,7 +1284,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -1308,7 +1308,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -1326,7 +1326,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getCustomRetention", params=kwargs) @@ -1338,7 +1338,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.removeCustomRetention", params=kwargs) @@ -1351,7 +1351,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return self.api_call("admin.conversations.setCustomRetention", params=kwargs) @@ -1363,7 +1363,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return self.api_call("admin.conversations.bulkArchive", params=kwargs) @@ -1388,7 +1388,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -1406,7 +1406,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return self.api_call("admin.emoji.add", http_verb="GET", params=kwargs) @@ -1419,7 +1419,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs) @@ -1432,7 +1432,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.emoji.list", http_verb="GET", params=kwargs) @@ -1444,7 +1444,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs) @@ -1457,7 +1457,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs) @@ -1472,7 +1472,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -1495,7 +1495,7 @@

            Raises

            ) -> SlackResponse: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -1513,7 +1513,7 @@

            Raises

            ) -> SlackResponse: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -1537,7 +1537,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1562,7 +1562,7 @@

            Raises

            ) -> SlackResponse: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -1584,7 +1584,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1606,7 +1606,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -1626,7 +1626,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1648,7 +1648,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return self.api_call("admin.users.session.invalidate", params=kwargs) @@ -1663,7 +1663,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -1683,7 +1683,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -1700,7 +1700,7 @@

            Raises

            ) -> SlackResponse: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1718,7 +1718,7 @@

            Raises

            ) -> SlackResponse: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1740,7 +1740,7 @@

            Raises

            ) -> SlackResponse: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1757,7 +1757,7 @@

            Raises

            ) -> SlackResponse: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -1775,7 +1775,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.approve", params=kwargs) @@ -1789,7 +1789,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -1809,7 +1809,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -1828,7 +1828,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.deny", params=kwargs) @@ -1849,7 +1849,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -1870,7 +1870,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -1890,7 +1890,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.teams.list", params=kwargs) @@ -1904,7 +1904,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs) @@ -1916,7 +1916,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return self.api_call("admin.teams.settings.info", params=kwargs) @@ -1929,7 +1929,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return self.api_call("admin.teams.settings.setDescription", params=kwargs) @@ -1942,7 +1942,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return self.api_call("admin.teams.settings.setDiscoverability", params=kwargs) @@ -1955,7 +1955,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs) @@ -1968,7 +1968,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return self.api_call("admin.teams.settings.setName", params=kwargs) @@ -1982,7 +1982,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -2000,7 +2000,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -2018,7 +2018,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -2037,7 +2037,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -2057,7 +2057,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -2089,7 +2089,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -2113,7 +2113,7 @@

            Raises

            def admin_users_list( self, *, - team_id: str, + team_id: Optional[str] = None, include_deactivated_user_workspaces: Optional[bool] = None, is_active: Optional[bool] = None, cursor: Optional[str] = None, @@ -2121,7 +2121,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -2142,7 +2142,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.remove", params=kwargs) @@ -2155,7 +2155,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setAdmin", params=kwargs) @@ -2169,7 +2169,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setExpiration", params=kwargs) @@ -2182,7 +2182,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setOwner", params=kwargs) @@ -2195,7 +2195,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setRegular", params=kwargs) @@ -2216,7 +2216,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Search workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.search + https://docs.slack.dev/reference/methods/admin.workflows.search """ if collaborator_ids is not None: if isinstance(collaborator_ids, (list, tuple)): @@ -2246,7 +2246,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -2267,7 +2267,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -2287,7 +2287,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -2306,7 +2306,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -2321,7 +2321,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return self.api_call("api.test", params=kwargs) @@ -2334,7 +2334,7 @@

            Raises

            ) -> SlackResponse: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return self.api_call("apps.connections.open", http_verb="POST", params=kwargs) @@ -2349,7 +2349,7 @@

            Raises

            ) -> SlackResponse: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return self.api_call("apps.event.authorizations.list", params=kwargs) @@ -2362,7 +2362,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return self.api_call("apps.uninstall", params=kwargs) @@ -2374,7 +2374,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2389,7 +2389,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.delete", params=kwargs) @@ -2401,7 +2401,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.export", params=kwargs) @@ -2414,7 +2414,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2431,7 +2431,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2447,7 +2447,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return self.api_call("tooling.tokens.rotate", params=kwargs) @@ -2461,7 +2461,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return self.api_call("assistant.threads.setStatus", params=kwargs) @@ -2475,7 +2475,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return self.api_call("assistant.threads.setTitle", params=kwargs) @@ -2490,7 +2490,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -2504,7 +2504,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return self.api_call("auth.revoke", http_verb="GET", params=kwargs) @@ -2514,7 +2514,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return self.api_call("auth.test", params=kwargs) @@ -2526,7 +2526,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return self.api_call("auth.teams.list", params=kwargs) @@ -2544,7 +2544,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -2570,7 +2570,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -2590,7 +2590,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return self.api_call("bookmarks.list", http_verb="POST", params=kwargs) @@ -2603,7 +2603,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return self.api_call("bookmarks.remove", http_verb="POST", params=kwargs) @@ -2616,7 +2616,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return self.api_call("bots.info", http_verb="GET", params=kwargs) @@ -2635,7 +2635,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -2662,7 +2662,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return self.api_call("calls.end", http_verb="POST", params=kwargs) @@ -2674,7 +2674,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return self.api_call("calls.info", http_verb="POST", params=kwargs) @@ -2687,7 +2687,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2701,7 +2701,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2717,7 +2717,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -2737,7 +2737,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return self.api_call("canvases.create", json=kwargs) @@ -2750,7 +2750,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return self.api_call("canvases.edit", json=kwargs) @@ -2762,7 +2762,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return self.api_call("canvases.delete", params=kwargs) @@ -2777,7 +2777,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -2802,7 +2802,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -2825,7 +2825,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return self.api_call("canvases.sections.lookup", params=kwargs) @@ -2833,7 +2833,7 @@

            Raises

            # -------------------------- # Deprecated: channels.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def channels_archive( @@ -3012,7 +3012,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return self.api_call("chat.delete", params=kwargs) @@ -3026,7 +3026,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -3045,7 +3045,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieve a permalink URL for a specific extant message - https://api.slack.com/methods/chat.getPermalink + https://docs.slack.dev/reference/methods/chat.getPermalink """ kwargs.update({"channel": channel, "message_ts": message_ts}) return self.api_call("chat.getPermalink", http_verb="GET", params=kwargs) @@ -3058,7 +3058,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return self.api_call("chat.meMessage", params=kwargs) @@ -3078,10 +3078,11 @@

            Raises

            link_names: Optional[bool] = None, username: Optional[str] = None, parse: Optional[str] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -3097,11 +3098,12 @@

            Raises

            "link_names": link_names, "username": username, "parse": parse, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postEphemeral", kwargs) + _warn_if_message_text_content_is_missing("chat.postEphemeral", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postEphemeral", json=kwargs) @@ -3125,10 +3127,11 @@

            Raises

            username: Optional[str] = None, parse: Optional[str] = None, # none, full metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -3149,11 +3152,12 @@

            Raises

            "username": username, "parse": parse, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.postMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postMessage", json=kwargs) @@ -3162,7 +3166,7 @@

            Raises

            *, channel: str, post_at: Union[str, int], - text: str, + text: Optional[str] = None, as_user: Optional[bool] = None, attachments: Optional[Union[str, Sequence[Union[Dict, Attachment]]]] = None, blocks: Optional[Union[str, Sequence[Union[Dict, Block]]]] = None, @@ -3173,10 +3177,11 @@

            Raises

            unfurl_media: Optional[bool] = None, link_names: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -3193,11 +3198,12 @@

            Raises

            "unfurl_media": unfurl_media, "link_names": link_names, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.scheduleMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.scheduleMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.scheduleMessage", json=kwargs) @@ -3216,7 +3222,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -3250,10 +3256,11 @@

            Raises

            parse: Optional[str] = None, # none, full reply_broadcast: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -3267,6 +3274,7 @@

            Raises

            "parse": parse, "reply_broadcast": reply_broadcast, "metadata": metadata, + "markdown_text": markdown_text, } ) if isinstance(file_ids, (list, tuple)): @@ -3275,7 +3283,7 @@

            Raises

            kwargs.update({"file_ids": file_ids}) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.update", kwargs) + _warn_if_message_text_content_is_missing("chat.update", kwargs) # NOTE: intentionally using json over params for API methods using blocks/attachments return self.api_call("chat.update", json=kwargs) @@ -3291,7 +3299,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -3317,7 +3325,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -3341,7 +3349,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs) @@ -3353,7 +3361,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return self.api_call("conversations.archive", params=kwargs) @@ -3365,7 +3373,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return self.api_call("conversations.close", params=kwargs) @@ -3379,7 +3387,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return self.api_call("conversations.create", params=kwargs) @@ -3392,7 +3400,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs) @@ -3401,7 +3409,7 @@

            Raises

            self, *, action: str, channel: str, target_team: str, **kwargs ) -> SlackResponse: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -3425,7 +3433,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -3449,7 +3457,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -3469,7 +3477,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -3492,7 +3500,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -3514,7 +3522,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return self.api_call("conversations.join", params=kwargs) @@ -3527,7 +3535,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return self.api_call("conversations.kick", params=kwargs) @@ -3539,7 +3547,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return self.api_call("conversations.leave", params=kwargs) @@ -3555,7 +3563,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -3581,7 +3589,7 @@

            Raises

            ) -> SlackResponse: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return self.api_call("conversations.listConnectInvites", params=kwargs) @@ -3594,7 +3602,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return self.api_call("conversations.mark", params=kwargs) @@ -3608,7 +3616,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return self.api_call("conversations.members", http_verb="GET", params=kwargs) @@ -3622,7 +3630,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -3641,7 +3649,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return self.api_call("conversations.rename", params=kwargs) @@ -3660,7 +3668,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -3686,7 +3694,7 @@

            Raises

            **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -3707,7 +3715,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return self.api_call("conversations.requestSharedInvite.deny", params=kwargs) @@ -3725,7 +3733,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -3752,7 +3760,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return self.api_call("conversations.setPurpose", params=kwargs) @@ -3765,7 +3773,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return self.api_call("conversations.setTopic", params=kwargs) @@ -3777,7 +3785,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return self.api_call("conversations.unarchive", params=kwargs) @@ -3790,7 +3798,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return self.api_call("conversations.canvases.create", json=kwargs) @@ -3803,7 +3811,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -3815,7 +3823,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return self.api_call("dnd.endDnd", params=kwargs) @@ -3824,7 +3832,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return self.api_call("dnd.endSnooze", params=kwargs) @@ -3836,7 +3844,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("dnd.info", http_verb="GET", params=kwargs) @@ -3848,7 +3856,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs) @@ -3860,7 +3868,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -3875,7 +3883,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return self.api_call("emoji.list", http_verb="GET", params=kwargs) @@ -3888,7 +3896,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return self.api_call("files.comments.delete", params=kwargs) @@ -3900,7 +3908,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return self.api_call("files.delete", params=kwargs) @@ -3916,7 +3924,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -3944,7 +3952,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -3972,7 +3980,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.info", http_verb="GET", params=kwargs) @@ -3988,7 +3996,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -4013,7 +4021,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -4052,7 +4060,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -4087,7 +4095,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.remove", http_verb="POST", params=kwargs) @@ -4101,7 +4109,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -4119,7 +4127,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return self.api_call("files.revokePublicURL", params=kwargs) @@ -4131,7 +4139,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return self.api_call("files.sharedPublicURL", params=kwargs) @@ -4150,7 +4158,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -4203,12 +4211,12 @@

            Raises

            ) -> SlackResponse: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -4294,7 +4302,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -4317,7 +4325,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -4340,7 +4348,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return self.api_call("functions.completeSuccess", params=kwargs) @@ -4353,7 +4361,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return self.api_call("functions.completeError", params=kwargs) @@ -4361,7 +4369,7 @@

            Raises

            # -------------------------- # Deprecated: groups.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def groups_archive( @@ -4542,7 +4550,7 @@

            Raises

            # -------------------------- # Deprecated: im.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def im_close( @@ -4618,7 +4626,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -4630,7 +4638,7 @@

            Raises

            # -------------------------- # Deprecated: mpim.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def mpim_close( @@ -4717,7 +4725,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4743,7 +4751,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4763,7 +4771,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return self.api_call("oauth.v2.exchange", params=kwargs) @@ -4779,7 +4787,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4800,7 +4808,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return self.api_call("openid.connect.userInfo", params=kwargs) @@ -4812,7 +4820,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.add", params=kwargs) @@ -4824,7 +4832,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return self.api_call("pins.list", http_verb="GET", params=kwargs) @@ -4837,7 +4845,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.remove", params=kwargs) @@ -4851,7 +4859,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return self.api_call("reactions.add", params=kwargs) @@ -4867,7 +4875,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -4893,7 +4901,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -4919,7 +4927,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -4943,7 +4951,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -4964,7 +4972,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.complete", params=kwargs) @@ -4977,7 +4985,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.delete", params=kwargs) @@ -4990,7 +4998,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.info", http_verb="GET", params=kwargs) @@ -5002,7 +5010,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return self.api_call("reminders.list", http_verb="GET", params=kwargs) @@ -5015,7 +5023,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return self.api_call("rtm.connect", http_verb="GET", params=kwargs) @@ -5033,7 +5041,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -5061,7 +5069,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -5089,7 +5097,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -5118,7 +5126,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -5144,7 +5152,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -5167,7 +5175,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -5190,7 +5198,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -5214,7 +5222,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -5236,7 +5244,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("team.billableInfo", http_verb="GET", params=kwargs) @@ -5246,7 +5254,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return self.api_call("team.billing.info", params=kwargs) @@ -5257,7 +5265,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -5279,7 +5287,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -5310,7 +5318,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return self.api_call("team.info", http_verb="GET", params=kwargs) @@ -5328,7 +5336,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -5350,7 +5358,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return self.api_call("team.profile.get", http_verb="GET", params=kwargs) @@ -5360,7 +5368,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return self.api_call("team.preferences.list", params=kwargs) @@ -5376,7 +5384,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -5402,7 +5410,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.disable", params=kwargs) @@ -5416,7 +5424,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.enable", params=kwargs) @@ -5431,7 +5439,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -5456,7 +5464,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -5483,7 +5491,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -5504,7 +5512,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -5531,7 +5539,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -5553,7 +5561,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return self.api_call("users.deletePhoto", http_verb="GET", params=kwargs) @@ -5564,7 +5572,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return self.api_call("users.getPresence", http_verb="GET", params=kwargs) @@ -5574,7 +5582,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return self.api_call("users.identity", http_verb="GET", params=kwargs) @@ -5586,7 +5594,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return self.api_call("users.info", http_verb="GET", params=kwargs) @@ -5601,7 +5609,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -5620,7 +5628,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs) @@ -5635,7 +5643,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return self.api_call("users.setPhoto", files={"image": image}, data=kwargs) @@ -5647,7 +5655,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return self.api_call("users.setPresence", params=kwargs) @@ -5658,7 +5666,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return self.api_call("users.discoverableContacts.lookup", params=kwargs) @@ -5671,7 +5679,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return self.api_call("users.profile.get", http_verb="GET", params=kwargs) @@ -5686,7 +5694,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -5709,8 +5717,8 @@

            Raises

            **kwargs, ) -> SlackResponse: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5733,9 +5741,9 @@

            Raises

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5758,9 +5766,9 @@

            Raises

            """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -5787,8 +5795,8 @@

            Raises

            ) -> SlackResponse: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -5799,6 +5807,72 @@

            Raises

            # NOTE: Intentionally using json for the "view" parameter return self.api_call("views.publish", json=kwargs) + def workflows_featured_add( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """Add featured workflows to a channel. + https://docs.slack.dev/reference/methods/workflows.featured.add + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.add", params=kwargs) + + def workflows_featured_list( + self, + *, + channel_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """List the featured workflows for specified channels. + https://docs.slack.dev/reference/methods/workflows.featured.list + """ + if isinstance(channel_ids, (list, tuple)): + kwargs.update({"channel_ids": ",".join(channel_ids)}) + else: + kwargs.update({"channel_ids": channel_ids}) + return self.api_call("workflows.featured.list", params=kwargs) + + def workflows_featured_remove( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """Remove featured workflows from a channel. + https://docs.slack.dev/reference/methods/workflows.featured.remove + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.remove", params=kwargs) + + def workflows_featured_set( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> SlackResponse: + """Set featured workflows for a channel. + https://docs.slack.dev/reference/methods/workflows.featured.set + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.set", params=kwargs) + def workflows_stepCompleted( self, *, @@ -5807,7 +5881,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -5824,7 +5898,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -5845,7 +5919,7 @@

            Raises

            **kwargs, ) -> SlackResponse: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: @@ -5857,7 +5931,7 @@

            Raises

            return self.api_call("workflows.updateStep", json=kwargs)

            A WebClient allows apps to communicate with the Slack Platform's Web API.

            -

            https://api.slack.com/methods

            +

            https://docs.slack.dev/reference/methods

            The Slack Web API is an interface for querying information from and enacting change in a Slack workspace.

            This client handles constructing and sending HTTP requests to Slack @@ -5937,7 +6011,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -5947,7 +6021,7 @@

            Methods

            return self.api_call("admin.analytics.getFile", params=kwargs)

            Retrieve analytics data for a given date, presented as a compressed JSON file -https://api.slack.com/methods/admin.analytics.getFile

            +https://docs.slack.dev/reference/methods/admin.analytics.getFile

            def admin_apps_activities_list(self,
            *,
            app_id: str | None = None,
            component_id: str | None = None,
            component_type: str | None = None,
            log_event_type: str | None = None,
            max_date_created: int | None = None,
            min_date_created: int | None = None,
            min_log_level: str | None = None,
            sort_direction: str | None = None,
            source: str | None = None,
            team_id: str | None = None,
            trace_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -5976,7 +6050,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -5998,7 +6072,7 @@

            Methods

            return self.api_call("admin.apps.activities.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.apps.activities.list

            def admin_apps_approve(self,
            *,
            app_id: str | None = None,
            request_id: str | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6021,7 +6095,7 @@

            Methods

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -6042,7 +6116,7 @@

            Methods

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. -https://api.slack.com/methods/admin.apps.approve

            +https://docs.slack.dev/reference/methods/admin.apps.approve

            def admin_apps_approved_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6062,7 +6136,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -6075,7 +6149,7 @@

            Methods

            return self.api_call("admin.apps.approved.list", http_verb="GET", params=kwargs)

            List approved apps for an org or workspace. -https://api.slack.com/methods/admin.apps.approved.list

            +https://docs.slack.dev/reference/methods/admin.apps.approved.list

            def admin_apps_clearResolution(self,
            *,
            app_id: str,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6094,7 +6168,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -6106,7 +6180,7 @@

            Methods

            return self.api_call("admin.apps.clearResolution", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.apps.clearResolution

            def admin_apps_config_lookup(self, *, app_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -6123,7 +6197,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -6132,7 +6206,7 @@

            Methods

            return self.api_call("admin.apps.config.lookup", params=kwargs)

            Look up the app config for connectors by their IDs -https://api.slack.com/methods/admin.apps.config.lookup

            +https://docs.slack.dev/reference/methods/admin.apps.config.lookup

            def admin_apps_config_set(self,
            *,
            app_id: str,
            domain_restrictions: Dict[str, Any] | None = None,
            workflow_auth_strategy: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6151,7 +6225,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -6164,7 +6238,7 @@

            Methods

            return self.api_call("admin.apps.config.set", params=kwargs)

            Set the app config for a connector -https://api.slack.com/methods/admin.apps.config.set

            +https://docs.slack.dev/reference/methods/admin.apps.config.set

            def admin_apps_requests_cancel(self,
            *,
            request_id: str,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6183,7 +6257,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -6195,7 +6269,7 @@

            Methods

            return self.api_call("admin.apps.requests.cancel", http_verb="POST", params=kwargs)

            List app requests for a team/workspace. -https://api.slack.com/methods/admin.apps.requests.cancel

            +https://docs.slack.dev/reference/methods/admin.apps.requests.cancel

            def admin_apps_requests_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6214,7 +6288,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -6226,7 +6300,7 @@

            Methods

            return self.api_call("admin.apps.requests.list", http_verb="GET", params=kwargs)

            List app requests for a team/workspace. -https://api.slack.com/methods/admin.apps.requests.list

            +https://docs.slack.dev/reference/methods/admin.apps.requests.list

            def admin_apps_restrict(self,
            *,
            app_id: str | None = None,
            request_id: str | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6249,7 +6323,7 @@

            Methods

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -6270,7 +6344,7 @@

            Methods

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. -https://api.slack.com/methods/admin.apps.restrict

            +https://docs.slack.dev/reference/methods/admin.apps.restrict

            def admin_apps_restricted_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6290,7 +6364,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -6303,7 +6377,7 @@

            Methods

            return self.api_call("admin.apps.restricted.list", http_verb="GET", params=kwargs)

            List restricted apps for an org or workspace. -https://api.slack.com/methods/admin.apps.restricted.list

            +https://docs.slack.dev/reference/methods/admin.apps.restricted.list

            def admin_apps_uninstall(self,
            *,
            app_id: str,
            enterprise_id: str | None = None,
            team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6323,7 +6397,7 @@

            Methods

            ) -> SlackResponse: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -6337,7 +6411,7 @@

            Methods

            Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. -https://api.slack.com/methods/admin.apps.uninstall

            +https://docs.slack.dev/reference/methods/admin.apps.uninstall

            def admin_auth_policy_assignEntities(self,
            *,
            entity_ids: str | Sequence[str],
            policy_name: str,
            entity_type: str,
            **kwargs) ‑> SlackResponse
            @@ -6356,7 +6430,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -6367,7 +6441,7 @@

            Methods

            return self.api_call("admin.auth.policy.assignEntities", http_verb="POST", params=kwargs)

            Assign entities to a particular authentication policy. -https://api.slack.com/methods/admin.auth.policy.assignEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities

            def admin_auth_policy_getEntities(self,
            *,
            policy_name: str,
            cursor: str | None = None,
            entity_type: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6387,7 +6461,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -6399,7 +6473,7 @@

            Methods

            return self.api_call("admin.auth.policy.getEntities", http_verb="POST", params=kwargs)

            Fetch all the entities assigned to a particular authentication policy by name. -https://api.slack.com/methods/admin.auth.policy.getEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities

            def admin_auth_policy_removeEntities(self,
            *,
            entity_ids: str | Sequence[str],
            policy_name: str,
            entity_type: str,
            **kwargs) ‑> SlackResponse
            @@ -6418,7 +6492,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -6429,7 +6503,7 @@

            Methods

            return self.api_call("admin.auth.policy.removeEntities", http_verb="POST", params=kwargs)

            Remove specified entities from a specified authentication policy. -https://api.slack.com/methods/admin.auth.policy.removeEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities

            def admin_barriers_create(self,
            *,
            barriered_from_usergroup_ids: str | Sequence[str],
            primary_usergroup_id: str,
            restricted_subjects: str | Sequence[str],
            **kwargs) ‑> SlackResponse
            @@ -6448,7 +6522,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -6462,7 +6536,7 @@

            Methods

            return self.api_call("admin.barriers.create", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.barriers.create

            def admin_barriers_delete(self, *, barrier_id: str, **kwargs) ‑> SlackResponse @@ -6479,13 +6553,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs)

            Delete an existing Information Barrier -https://api.slack.com/methods/admin.barriers.delete

            +https://docs.slack.dev/reference/methods/admin.barriers.delete

            def admin_barriers_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -6503,7 +6577,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -6513,7 +6587,7 @@

            Methods

            return self.api_call("admin.barriers.list", http_verb="GET", params=kwargs)

            Get all Information Barriers for your organization -https://api.slack.com/methods/admin.barriers.list

            +https://docs.slack.dev/reference/methods/admin.barriers.list

            def admin_barriers_update(self,
            *,
            barrier_id: str,
            barriered_from_usergroup_ids: str | Sequence[str],
            primary_usergroup_id: str,
            restricted_subjects: str | Sequence[str],
            **kwargs) ‑> SlackResponse
            @@ -6533,7 +6607,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -6547,7 +6621,7 @@

            Methods

            return self.api_call("admin.barriers.update", http_verb="POST", params=kwargs)

            Update an existing Information Barrier -https://api.slack.com/methods/admin.barriers.update

            +https://docs.slack.dev/reference/methods/admin.barriers.update

            def admin_conversations_archive(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6564,13 +6638,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.archive", params=kwargs)

            Archive a public or private channel. -https://api.slack.com/methods/admin.conversations.archive

            +https://docs.slack.dev/reference/methods/admin.conversations.archive

            def admin_conversations_bulkArchive(self, *, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -6587,13 +6661,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return self.api_call("admin.conversations.bulkArchive", params=kwargs)

            Archive public or private channels in bulk. -https://api.slack.com/methods/admin.conversations.bulkArchive

            +https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive

            def admin_conversations_bulkDelete(self, *, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -6634,7 +6708,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -6645,7 +6719,7 @@

            Methods

            return self.api_call("admin.conversations.bulkMove", params=kwargs)

            Move public or private channels in bulk. -https://api.slack.com/methods/admin.conversations.bulkMove

            +https://docs.slack.dev/reference/methods/admin.conversations.bulkMove

            def admin_conversations_convertToPrivate(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6662,13 +6736,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPrivate", params=kwargs)

            Convert a public channel to a private channel. -https://api.slack.com/methods/admin.conversations.convertToPrivate

            +https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate

            def admin_conversations_convertToPublic(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6685,13 +6759,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPublic", params=kwargs)

            Convert a privte channel to a public channel. -https://api.slack.com/methods/admin.conversations.convertToPublic

            +https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic

            def admin_conversations_create(self,
            *,
            is_private: bool,
            name: str,
            description: str | None = None,
            org_wide: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6712,7 +6786,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -6726,7 +6800,7 @@

            Methods

            return self.api_call("admin.conversations.create", params=kwargs)

            Create a public or private channel-based conversation. -https://api.slack.com/methods/admin.conversations.create

            +https://docs.slack.dev/reference/methods/admin.conversations.create

            def admin_conversations_createForObjects(self,
            *,
            object_id: str,
            salesforce_org_id: str,
            invite_object_team: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6745,7 +6819,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -6753,7 +6827,7 @@

            Methods

            return self.api_call("admin.conversations.createForObjects", params=kwargs)

            Create a Salesforce channel for the corresponding object provided. -https://api.slack.com/methods/admin.conversations.createForObjects

            +https://docs.slack.dev/reference/methods/admin.conversations.createForObjects

            def admin_conversations_delete(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6770,13 +6844,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.delete

            def admin_conversations_disconnectShared(self,
            *,
            channel_id: str,
            leaving_team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6794,7 +6868,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -6804,7 +6878,7 @@

            Methods

            return self.api_call("admin.conversations.disconnectShared", params=kwargs)

            Disconnect a connected channel from one or more workspaces. -https://api.slack.com/methods/admin.conversations.disconnectShared

            +https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared

            def admin_conversations_ekm_listOriginalConnectedChannelInfo(self,
            *,
            channel_ids: str | Sequence[str] | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6826,7 +6900,7 @@

            Methods

            """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -6847,7 +6921,7 @@

            Methods

            List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. -https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo

            +https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo

            def admin_conversations_getConversationPrefs(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6864,13 +6938,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getConversationPrefs", params=kwargs)

            Get conversation preferences for a public or private channel. -https://api.slack.com/methods/admin.conversations.getConversationPrefs

            +https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs

            def admin_conversations_getCustomRetention(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -6887,13 +6961,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention

            def admin_conversations_getTeams(self,
            *,
            channel_id: str,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -6912,7 +6986,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -6924,7 +6998,7 @@

            Methods

            return self.api_call("admin.conversations.getTeams", params=kwargs)

            Set the workspaces in an Enterprise grid org that connect to a channel. -https://api.slack.com/methods/admin.conversations.getTeams

            +https://docs.slack.dev/reference/methods/admin.conversations.getTeams

            def admin_conversations_invite(self, *, channel_id: str, user_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -6942,7 +7016,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -6953,7 +7027,7 @@

            Methods

            return self.api_call("admin.conversations.invite", params=kwargs)

            Invite a user to a public or private channel. -https://api.slack.com/methods/admin.conversations.invite

            +https://docs.slack.dev/reference/methods/admin.conversations.invite

            def admin_conversations_linkObjects(self, *, channel: str, record_id: str, salesforce_org_id: str, **kwargs) ‑> SlackResponse @@ -6972,7 +7046,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -6984,7 +7058,7 @@

            Methods

            return self.api_call("admin.conversations.linkObjects", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.linkObjects

            def admin_conversations_lookup(self,
            *,
            last_message_activity_before: int,
            team_ids: str | Sequence[str],
            cursor: str | None = None,
            limit: int | None = None,
            max_member_count: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7005,7 +7079,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -7022,7 +7096,7 @@

            Methods

            return self.api_call("admin.conversations.lookup", params=kwargs)

            Returns channels on the given team using the filters. -https://api.slack.com/methods/admin.conversations.lookup

            +https://docs.slack.dev/reference/methods/admin.conversations.lookup

            def admin_conversations_removeCustomRetention(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -7039,13 +7113,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.removeCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention

            def admin_conversations_rename(self, *, channel_id: str, name: str, **kwargs) ‑> SlackResponse @@ -7063,13 +7137,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return self.api_call("admin.conversations.rename", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.rename

            def admin_conversations_restrictAccess_addGroup(self, *, channel_id: str, group_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -7088,7 +7162,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -7104,7 +7178,7 @@

            Methods

            )

            Add an allowlist of IDP groups for accessing a channel. -https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup

            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup

            def admin_conversations_restrictAccess_listGroups(self, *, channel_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -7122,7 +7196,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -7137,7 +7211,7 @@

            Methods

            )
            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups

            def admin_conversations_restrictAccess_removeGroup(self, *, channel_id: str, group_id: str, team_id: str, **kwargs) ‑> SlackResponse @@ -7156,7 +7230,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -7172,7 +7246,7 @@

            Methods

            )

            Remove a linked IDP group linked from a private channel. -https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup

            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup

            def admin_conversations_setConversationPrefs(self, *, channel_id: str, prefs: str | Dict[str, str], **kwargs) ‑> SlackResponse @@ -7238,7 +7312,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -7248,7 +7322,7 @@

            Methods

            return self.api_call("admin.conversations.setConversationPrefs", params=kwargs)

            Set the posting permissions for a public or private channel. -https://api.slack.com/methods/admin.conversations.setConversationPrefs

            +https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs

            def admin_conversations_setCustomRetention(self, *, channel_id: str, duration_days: int, **kwargs) ‑> SlackResponse @@ -7266,13 +7340,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return self.api_call("admin.conversations.setCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention

            def admin_conversations_setTeams(self,
            *,
            channel_id: str,
            org_channel: bool | None = None,
            target_team_ids: str | Sequence[str] | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7292,7 +7366,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -7308,7 +7382,7 @@

            Methods

            return self.api_call("admin.conversations.setTeams", params=kwargs)

            Set the workspaces in an Enterprise grid org that connect to a public or private channel. -https://api.slack.com/methods/admin.conversations.setTeams

            +https://docs.slack.dev/reference/methods/admin.conversations.setTeams

            def admin_conversations_unarchive(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -7325,13 +7399,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.unarchive", params=kwargs)

            Unarchive a public or private channel. -https://api.slack.com/methods/admin.conversations.archive

            +https://docs.slack.dev/reference/methods/admin.conversations.archive

            def admin_conversations_unlinkObjects(self, *, channel: str, new_name: str, **kwargs) ‑> SlackResponse @@ -7349,7 +7423,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -7360,7 +7434,7 @@

            Methods

            return self.api_call("admin.conversations.unlinkObjects", params=kwargs)

            Unlink a Salesforce record from a channel. -https://api.slack.com/methods/admin.conversations.unlinkObjects

            +https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects

            def admin_emoji_add(self, *, name: str, url: str, **kwargs) ‑> SlackResponse @@ -7378,13 +7452,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return self.api_call("admin.emoji.add", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.add

            def admin_emoji_addAlias(self, *, alias_for: str, name: str, **kwargs) ‑> SlackResponse @@ -7402,13 +7476,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.addAlias

            def admin_emoji_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7426,13 +7500,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.emoji.list", http_verb="GET", params=kwargs)

            List emoji for an Enterprise Grid organization. -https://api.slack.com/methods/admin.emoji.list

            +https://docs.slack.dev/reference/methods/admin.emoji.list

            def admin_emoji_remove(self, *, name: str, **kwargs) ‑> SlackResponse @@ -7449,13 +7523,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs)

            Remove an emoji across an Enterprise Grid organization. -https://api.slack.com/methods/admin.emoji.remove

            +https://docs.slack.dev/reference/methods/admin.emoji.remove

            def admin_emoji_rename(self, *, name: str, new_name: str, **kwargs) ‑> SlackResponse @@ -7473,13 +7547,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.rename

            def admin_functions_list(self,
            *,
            app_ids: str | Sequence[str],
            team_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7499,7 +7573,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -7515,7 +7589,7 @@

            Methods

            return self.api_call("admin.functions.list", params=kwargs)

            Look up functions by a set of apps -https://api.slack.com/methods/admin.functions.list

            +https://docs.slack.dev/reference/methods/admin.functions.list

            def admin_functions_permissions_lookup(self, *, function_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -7533,7 +7607,7 @@

            Methods

            ) -> SlackResponse: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -7543,7 +7617,7 @@

            Methods

            Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. -https://api.slack.com/methods/admin.functions.permissions.lookup

            +https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup

            def admin_functions_permissions_set(self,
            *,
            function_id: str,
            visibility: str,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7563,7 +7637,7 @@

            Methods

            ) -> SlackResponse: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -7580,7 +7654,7 @@

            Methods

            Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities -https://api.slack.com/methods/admin.functions.permissions.set

            +https://docs.slack.dev/reference/methods/admin.functions.permissions.set

            def admin_inviteRequests_approve(self, *, invite_request_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -7598,13 +7672,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.approve", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.inviteRequests.approve

            def admin_inviteRequests_approved_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7623,7 +7697,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -7635,7 +7709,7 @@

            Methods

            return self.api_call("admin.inviteRequests.approved.list", params=kwargs)

            List all approved workspace invite requests. -https://api.slack.com/methods/admin.inviteRequests.approved.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list

            def admin_inviteRequests_denied_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7654,7 +7728,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -7666,7 +7740,7 @@

            Methods

            return self.api_call("admin.inviteRequests.denied.list", params=kwargs)

            List all denied workspace invite requests. -https://api.slack.com/methods/admin.inviteRequests.denied.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list

            def admin_inviteRequests_deny(self, *, invite_request_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -7684,13 +7758,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.deny", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.inviteRequests.deny

            def admin_inviteRequests_list(self, **kwargs) ‑> SlackResponse @@ -7726,7 +7800,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -7740,7 +7814,7 @@

            Methods

            return self.api_call("admin.roles.addAssignments", params=kwargs)

            Adds members to the specified role with the specified scopes -https://api.slack.com/methods/admin.roles.addAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.addAssignments

            def admin_roles_listAssignments(self,
            *,
            role_ids: str | Sequence[str] | None = None,
            entity_ids: str | Sequence[str] | None = None,
            cursor: str | None = None,
            limit: str | int | None = None,
            sort_dir: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7762,7 +7836,7 @@

            Methods

            ) -> SlackResponse: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -7777,7 +7851,7 @@

            Methods

            Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities -https://api.slack.com/methods/admin.roles.listAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.listAssignments

            def admin_roles_removeAssignments(self,
            *,
            role_id: str,
            entity_ids: str | Sequence[str],
            user_ids: str | Sequence[str],
            **kwargs) ‑> SlackResponse
            @@ -7796,7 +7870,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -7810,7 +7884,7 @@

            Methods

            return self.api_call("admin.roles.removeAssignments", params=kwargs)

            Removes a set of users from a role for the given scopes and entities -https://api.slack.com/methods/admin.roles.removeAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.removeAssignments

            def admin_teams_admins_list(self, *, team_id: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7829,7 +7903,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -7841,7 +7915,7 @@

            Methods

            return self.api_call("admin.teams.admins.list", http_verb="GET", params=kwargs)

            List all of the admins on a given workspace. -https://api.slack.com/methods/admin.inviteRequests.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.list

            def admin_teams_create(self,
            *,
            team_domain: str,
            team_name: str,
            team_description: str | None = None,
            team_discoverability: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -7861,7 +7935,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -7874,7 +7948,7 @@

            Methods

            return self.api_call("admin.teams.create", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.create

            def admin_teams_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7892,13 +7966,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.teams.list", params=kwargs)

            List all teams on an Enterprise organization. -https://api.slack.com/methods/admin.teams.list

            +https://docs.slack.dev/reference/methods/admin.teams.list

            def admin_teams_owners_list(self, *, team_id: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -7917,13 +7991,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs)

            List all of the admins on a given workspace. -https://api.slack.com/methods/admin.teams.owners.list

            +https://docs.slack.dev/reference/methods/admin.teams.owners.list

            def admin_teams_settings_info(self, *, team_id: str, **kwargs) ‑> SlackResponse @@ -7940,13 +8014,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return self.api_call("admin.teams.settings.info", params=kwargs)

            Fetch information about settings in a workspace -https://api.slack.com/methods/admin.teams.settings.info

            +https://docs.slack.dev/reference/methods/admin.teams.settings.info

            def admin_teams_settings_setDefaultChannels(self, *, team_id: str, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -7964,7 +8038,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -7974,7 +8048,7 @@

            Methods

            return self.api_call("admin.teams.settings.setDefaultChannels", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels

            def admin_teams_settings_setDescription(self, *, team_id: str, description: str, **kwargs) ‑> SlackResponse @@ -7992,13 +8066,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return self.api_call("admin.teams.settings.setDescription", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription

            def admin_teams_settings_setDiscoverability(self, *, team_id: str, discoverability: str, **kwargs) ‑> SlackResponse @@ -8016,13 +8090,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return self.api_call("admin.teams.settings.setDiscoverability", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability

            def admin_teams_settings_setIcon(self, *, team_id: str, image_url: str, **kwargs) ‑> SlackResponse @@ -8040,13 +8114,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon

            def admin_teams_settings_setName(self, *, team_id: str, name: str, **kwargs) ‑> SlackResponse @@ -8064,13 +8138,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return self.api_call("admin.teams.settings.setName", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setName

            def admin_usergroups_addChannels(self,
            *,
            channel_ids: str | Sequence[str],
            usergroup_id: str,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8089,7 +8163,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -8099,7 +8173,7 @@

            Methods

            return self.api_call("admin.usergroups.addChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.addChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.addChannels

            def admin_usergroups_addTeams(self,
            *,
            usergroup_id: str,
            team_ids: str | Sequence[str],
            auto_provision: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8118,7 +8192,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -8128,7 +8202,7 @@

            Methods

            return self.api_call("admin.usergroups.addTeams", params=kwargs)

            Associate one or more default workspaces with an organization-wide IDP group. -https://api.slack.com/methods/admin.usergroups.addTeams

            +https://docs.slack.dev/reference/methods/admin.usergroups.addTeams

            def admin_usergroups_listChannels(self,
            *,
            usergroup_id: str,
            include_num_members: bool | None = None,
            team_id: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8147,7 +8221,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -8159,7 +8233,7 @@

            Methods

            return self.api_call("admin.usergroups.listChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.listChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.listChannels

            def admin_usergroups_removeChannels(self, *, usergroup_id: str, channel_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -8177,7 +8251,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -8187,7 +8261,7 @@

            Methods

            return self.api_call("admin.usergroups.removeChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.removeChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels

            def admin_users_assign(self,
            *,
            team_id: str,
            user_id: str,
            channel_ids: str | Sequence[str] | None = None,
            is_restricted: bool | None = None,
            is_ultra_restricted: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8208,7 +8282,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -8225,7 +8299,7 @@

            Methods

            return self.api_call("admin.users.assign", params=kwargs)

            Add an Enterprise user to a workspace. -https://api.slack.com/methods/admin.users.assign

            +https://docs.slack.dev/reference/methods/admin.users.assign

            def admin_users_invite(self,
            *,
            team_id: str,
            email: str,
            channel_ids: str | Sequence[str],
            custom_message: str | None = None,
            email_password_policy_enabled: bool | None = None,
            guest_expiration_ts: str | float | None = None,
            is_restricted: bool | None = None,
            is_ultra_restricted: bool | None = None,
            real_name: str | None = None,
            resend: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8251,7 +8325,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -8273,10 +8347,10 @@

            Methods

            return self.api_call("admin.users.invite", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.users.invite

            -def admin_users_list(self,
            *,
            team_id: str,
            include_deactivated_user_workspaces: bool | None = None,
            is_active: bool | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            +def admin_users_list(self,
            *,
            team_id: str | None = None,
            include_deactivated_user_workspaces: bool | None = None,
            is_active: bool | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8286,7 +8360,7 @@

            Methods

            def admin_users_list(
                 self,
                 *,
            -    team_id: str,
            +    team_id: Optional[str] = None,
                 include_deactivated_user_workspaces: Optional[bool] = None,
                 is_active: Optional[bool] = None,
                 cursor: Optional[str] = None,
            @@ -8294,7 +8368,7 @@ 

            Methods

            **kwargs, ) -> SlackResponse: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -8308,7 +8382,7 @@

            Methods

            return self.api_call("admin.users.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.users.list

            def admin_users_remove(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8326,13 +8400,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.remove", params=kwargs)

            Remove a user from a workspace. -https://api.slack.com/methods/admin.users.remove

            +https://docs.slack.dev/reference/methods/admin.users.remove

            def admin_users_session_clearSettings(self, *, user_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -8350,7 +8424,7 @@

            Methods

            ) -> SlackResponse: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8360,7 +8434,7 @@

            Methods

            Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. -https://api.slack.com/methods/admin.users.session.clearSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.clearSettings

            def admin_users_session_getSettings(self, *, user_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -8378,7 +8452,7 @@

            Methods

            ) -> SlackResponse: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8388,7 +8462,7 @@

            Methods

            Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. -https://api.slack.com/methods/admin.users.session.getSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.getSettings

            def admin_users_session_invalidate(self, *, session_id: str, team_id: str, **kwargs) ‑> SlackResponse @@ -8406,13 +8480,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return self.api_call("admin.users.session.invalidate", params=kwargs)

            Invalidate a single session for a user by session_id. -https://api.slack.com/methods/admin.users.session.invalidate

            +https://docs.slack.dev/reference/methods/admin.users.session.invalidate

            def admin_users_session_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            user_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8432,7 +8506,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -8445,7 +8519,7 @@

            Methods

            return self.api_call("admin.users.session.list", params=kwargs)

            Lists all active user sessions for an organization -https://api.slack.com/methods/admin.users.session.list

            +https://docs.slack.dev/reference/methods/admin.users.session.list

            def admin_users_session_reset(self,
            *,
            user_id: str,
            mobile_only: bool | None = None,
            web_only: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8464,7 +8538,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -8476,7 +8550,7 @@

            Methods

            return self.api_call("admin.users.session.reset", params=kwargs)

            Wipes all valid sessions on all devices for a given user. -https://api.slack.com/methods/admin.users.session.reset

            +https://docs.slack.dev/reference/methods/admin.users.session.reset

            def admin_users_session_resetBulk(self,
            *,
            user_ids: str | Sequence[str],
            mobile_only: bool | None = None,
            web_only: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8495,7 +8569,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8510,7 +8584,7 @@

            Methods

            return self.api_call("admin.users.session.resetBulk", params=kwargs)

            Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users -https://api.slack.com/methods/admin.users.session.resetBulk

            +https://docs.slack.dev/reference/methods/admin.users.session.resetBulk

            def admin_users_session_setSettings(self,
            *,
            user_ids: str | Sequence[str],
            desktop_app_browser_quit: bool | None = None,
            duration: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8530,7 +8604,7 @@

            Methods

            ) -> SlackResponse: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8546,7 +8620,7 @@

            Methods

            Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. -https://api.slack.com/methods/admin.users.session.setSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.setSettings

            def admin_users_setAdmin(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8564,13 +8638,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setAdmin", params=kwargs)

            Set an existing guest, regular user, or owner to be an admin user. -https://api.slack.com/methods/admin.users.setAdmin

            +https://docs.slack.dev/reference/methods/admin.users.setAdmin

            def admin_users_setExpiration(self, *, expiration_ts: int, user_id: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -8589,13 +8663,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setExpiration", params=kwargs)

            Set an expiration for a guest user. -https://api.slack.com/methods/admin.users.setExpiration

            +https://docs.slack.dev/reference/methods/admin.users.setExpiration

            def admin_users_setOwner(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8613,13 +8687,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setOwner", params=kwargs)

            Set an existing guest, regular user, or admin user to be a workspace owner. -https://api.slack.com/methods/admin.users.setOwner

            +https://docs.slack.dev/reference/methods/admin.users.setOwner

            def admin_users_setRegular(self, *, team_id: str, user_id: str, **kwargs) ‑> SlackResponse @@ -8637,13 +8711,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setRegular", params=kwargs)

            Set an existing guest user, admin user, or owner to be a regular user. -https://api.slack.com/methods/admin.users.setRegular

            +https://docs.slack.dev/reference/methods/admin.users.setRegular

            def admin_users_unsupportedVersions_export(self,
            *,
            date_end_of_support: str | int | None = None,
            date_sessions_started: str | int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8662,7 +8736,7 @@

            Methods

            ) -> SlackResponse: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -8674,7 +8748,7 @@

            Methods

            Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. -https://api.slack.com/methods/admin.users.unsupportedVersions.export

            +https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export

            def admin_workflows_collaborators_add(self,
            *,
            collaborator_ids: str | Sequence[str],
            workflow_ids: str | Sequence[str],
            **kwargs) ‑> SlackResponse
            @@ -8692,7 +8766,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -8705,7 +8779,7 @@

            Methods

            return self.api_call("admin.workflows.collaborators.add", params=kwargs)

            Add collaborators to workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.collaborators.add

            +https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add

            def admin_workflows_collaborators_remove(self,
            *,
            collaborator_ids: str | Sequence[str],
            workflow_ids: str | Sequence[str],
            **kwargs) ‑> SlackResponse
            @@ -8723,7 +8797,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -8736,7 +8810,7 @@

            Methods

            return self.api_call("admin.workflows.collaborators.remove", params=kwargs)

            Remove collaborators from workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.collaborators.remove

            +https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove

            def admin_workflows_permissions_lookup(self,
            *,
            workflow_ids: str | Sequence[str],
            max_workflow_triggers: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8754,7 +8828,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -8768,7 +8842,7 @@

            Methods

            return self.api_call("admin.workflows.permissions.lookup", params=kwargs)

            Look up the permissions for a set of workflows -https://api.slack.com/methods/admin.workflows.permissions.lookup

            +https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup

            def admin_workflows_unpublish(self, *, workflow_ids: str | Sequence[str], **kwargs) ‑> SlackResponse @@ -8834,7 +8908,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -8843,7 +8917,7 @@

            Methods

            return self.api_call("admin.workflows.unpublish", params=kwargs)

            Unpublish workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.unpublish

            +https://docs.slack.dev/reference/methods/admin.workflows.unpublish

            def api_test(self, *, error: str | None = None, **kwargs) ‑> SlackResponse @@ -8860,13 +8934,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return self.api_call("api.test", params=kwargs)

            Checks API calling code. -https://api.slack.com/methods/api.test

            +https://docs.slack.dev/reference/methods/api.test

            def apps_connections_open(self, *, app_token: str, **kwargs) ‑> SlackResponse @@ -8884,14 +8958,14 @@

            Methods

            ) -> SlackResponse: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return self.api_call("apps.connections.open", http_verb="POST", params=kwargs)

            Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads -https://api.slack.com/methods/apps.connections.open

            +https://docs.slack.dev/reference/methods/apps.connections.open

            def apps_event_authorizations_list(self,
            *,
            event_context: str,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -8911,14 +8985,14 @@

            Methods

            ) -> SlackResponse: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return self.api_call("apps.event.authorizations.list", params=kwargs)

            Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. -https://api.slack.com/methods/apps.event.authorizations.list

            +https://docs.slack.dev/reference/methods/apps.event.authorizations.list

            def apps_manifest_create(self, *, manifest: str | Dict[str, Any], **kwargs) ‑> SlackResponse @@ -8935,7 +9009,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8944,7 +9018,7 @@

            Methods

            return self.api_call("apps.manifest.create", params=kwargs)

            Create an app from an app manifest -https://api.slack.com/methods/apps.manifest.create

            +https://docs.slack.dev/reference/methods/apps.manifest.create

            def apps_manifest_delete(self, *, app_id: str, **kwargs) ‑> SlackResponse @@ -8961,13 +9035,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.delete", params=kwargs)

            Permanently deletes an app created through app manifests -https://api.slack.com/methods/apps.manifest.delete

            +https://docs.slack.dev/reference/methods/apps.manifest.delete

            def apps_manifest_export(self, *, app_id: str, **kwargs) ‑> SlackResponse @@ -8984,13 +9058,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.export", params=kwargs)

            Export an app manifest from an existing app -https://api.slack.com/methods/apps.manifest.export

            +https://docs.slack.dev/reference/methods/apps.manifest.export

            def apps_manifest_update(self, *, app_id: str, manifest: str | Dict[str, Any], **kwargs) ‑> SlackResponse @@ -9008,7 +9082,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -9018,7 +9092,7 @@

            Methods

            return self.api_call("apps.manifest.update", params=kwargs)

            Update an app from an app manifest -https://api.slack.com/methods/apps.manifest.update

            +https://docs.slack.dev/reference/methods/apps.manifest.update

            def apps_manifest_validate(self, *, manifest: str | Dict[str, Any], app_id: str | None = None, **kwargs) ‑> SlackResponse @@ -9036,7 +9110,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -9046,7 +9120,7 @@

            Methods

            return self.api_call("apps.manifest.validate", params=kwargs)
            +https://docs.slack.dev/reference/methods/apps.manifest.validate

            def apps_uninstall(self, *, client_id: str, client_secret: str, **kwargs) ‑> SlackResponse @@ -9064,13 +9138,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return self.api_call("apps.uninstall", params=kwargs)

            Uninstalls your app from a workspace. -https://api.slack.com/methods/apps.uninstall

            +https://docs.slack.dev/reference/methods/apps.uninstall

            def assistant_threads_setStatus(self, *, channel_id: str, thread_ts: str, status: str, **kwargs) ‑> SlackResponse @@ -9089,13 +9163,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return self.api_call("assistant.threads.setStatus", params=kwargs)
            +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
            @@ -9115,7 +9189,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -9123,7 +9197,7 @@

            Methods

            return self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
            +https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts

            def assistant_threads_setTitle(self, *, channel_id: str, thread_ts: str, title: str, **kwargs) ‑> SlackResponse @@ -9142,13 +9216,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return self.api_call("assistant.threads.setTitle", params=kwargs)
            +https://docs.slack.dev/reference/methods/assistant.threads.setTitle

            def auth_revoke(self, *, test: bool | None = None, **kwargs) ‑> SlackResponse @@ -9165,13 +9239,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return self.api_call("auth.revoke", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/auth.revoke

            def auth_teams_list(self,
            cursor: str | None = None,
            limit: int | None = None,
            include_icon: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9189,13 +9263,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return self.api_call("auth.teams.list", params=kwargs)

            List the workspaces a token can access. -https://api.slack.com/methods/auth.teams.list

            +https://docs.slack.dev/reference/methods/auth.teams.list

            def auth_test(self, **kwargs) ‑> SlackResponse @@ -9210,12 +9284,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return self.api_call("auth.test", params=kwargs)

            Checks authentication & identity. -https://api.slack.com/methods/auth.test

            +https://docs.slack.dev/reference/methods/auth.test

            def bookmarks_add(self,
            *,
            channel_id: str,
            title: str,
            type: str,
            emoji: str | None = None,
            entity_id: str | None = None,
            link: str | None = None,
            parent_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9238,7 +9312,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -9254,7 +9328,7 @@

            Methods

            return self.api_call("bookmarks.add", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/bookmarks.add

            def bookmarks_edit(self,
            *,
            bookmark_id: str,
            channel_id: str,
            emoji: str | None = None,
            link: str | None = None,
            title: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9275,7 +9349,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -9289,7 +9363,7 @@

            Methods

            return self.api_call("bookmarks.edit", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/bookmarks.edit

            def bookmarks_list(self, *, channel_id: str, **kwargs) ‑> SlackResponse @@ -9306,13 +9380,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return self.api_call("bookmarks.list", http_verb="POST", params=kwargs)

            List bookmark for the channel. -https://api.slack.com/methods/bookmarks.list

            +https://docs.slack.dev/reference/methods/bookmarks.list

            def bookmarks_remove(self, *, bookmark_id: str, channel_id: str, **kwargs) ‑> SlackResponse @@ -9330,13 +9404,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return self.api_call("bookmarks.remove", http_verb="POST", params=kwargs)

            Remove bookmark from the channel. -https://api.slack.com/methods/bookmarks.remove

            +https://docs.slack.dev/reference/methods/bookmarks.remove

            def bots_info(self, *, bot: str | None = None, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -9354,13 +9428,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return self.api_call("bots.info", http_verb="GET", params=kwargs)

            Gets information about a bot user. -https://api.slack.com/methods/bots.info

            +https://docs.slack.dev/reference/methods/bots.info

            def calls_add(self,
            *,
            external_unique_id: str,
            join_url: str,
            created_by: str | None = None,
            date_start: int | None = None,
            desktop_app_join_url: str | None = None,
            external_display_id: str | None = None,
            title: str | None = None,
            users: str | Sequence[Dict[str, str]] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9384,7 +9458,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -9404,7 +9478,7 @@

            Methods

            return self.api_call("calls.add", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/calls.add

            def calls_end(self, *, id: str, duration: int | None = None, **kwargs) ‑> SlackResponse @@ -9422,13 +9496,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return self.api_call("calls.end", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/calls.end

            def calls_info(self, *, id: str, **kwargs) ‑> SlackResponse @@ -9445,13 +9519,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return self.api_call("calls.info", http_verb="POST", params=kwargs)

            Returns information about a Call. -https://api.slack.com/methods/calls.info

            +https://docs.slack.dev/reference/methods/calls.info

            def calls_participants_add(self, *, id: str, users: str | Sequence[Dict[str, str]], **kwargs) ‑> SlackResponse @@ -9469,14 +9543,14 @@

            Methods

            **kwargs, ) -> SlackResponse: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) return self.api_call("calls.participants.add", http_verb="POST", params=kwargs)

            Registers new participants added to a Call. -https://api.slack.com/methods/calls.participants.add

            +https://docs.slack.dev/reference/methods/calls.participants.add

            def calls_participants_remove(self, *, id: str, users: str | Sequence[Dict[str, str]], **kwargs) ‑> SlackResponse @@ -9494,14 +9568,14 @@

            Methods

            **kwargs, ) -> SlackResponse: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) return self.api_call("calls.participants.remove", http_verb="POST", params=kwargs)

            Registers participants removed from a Call. -https://api.slack.com/methods/calls.participants.remove

            +https://docs.slack.dev/reference/methods/calls.participants.remove

            def calls_update(self,
            *,
            id: str,
            desktop_app_join_url: str | None = None,
            join_url: str | None = None,
            title: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9521,7 +9595,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -9534,7 +9608,7 @@

            Methods

            return self.api_call("calls.update", http_verb="POST", params=kwargs)

            Updates information about a Call. -https://api.slack.com/methods/calls.update

            +https://docs.slack.dev/reference/methods/calls.update

            def canvases_access_delete(self,
            *,
            canvas_id: str,
            channel_ids: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9553,7 +9627,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -9569,7 +9643,7 @@

            Methods

            return self.api_call("canvases.access.delete", params=kwargs)

            Create a Channel Canvas for a channel -https://api.slack.com/methods/canvases.access.delete

            +https://docs.slack.dev/reference/methods/canvases.access.delete

            def canvases_access_set(self,
            *,
            canvas_id: str,
            access_level: str,
            channel_ids: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -9589,7 +9663,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -9606,7 +9680,7 @@

            Methods

            return self.api_call("canvases.access.set", params=kwargs)

            Sets the access level to a canvas for specified entities -https://api.slack.com/methods/canvases.access.set

            +https://docs.slack.dev/reference/methods/canvases.access.set

            def canvases_create(self, *, title: str | None = None, document_content: Dict[str, str], **kwargs) ‑> SlackResponse @@ -9624,13 +9698,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return self.api_call("canvases.create", json=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.create

            def canvases_delete(self, *, canvas_id: str, **kwargs) ‑> SlackResponse @@ -9647,13 +9721,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return self.api_call("canvases.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.delete

            def canvases_edit(self, *, canvas_id: str, changes: Sequence[Dict[str, Any]], **kwargs) ‑> SlackResponse @@ -9671,13 +9745,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return self.api_call("canvases.edit", json=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.edit

            def canvases_sections_lookup(self, *, canvas_id: str, criteria: Dict[str, Any], **kwargs) ‑> SlackResponse @@ -9695,13 +9769,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return self.api_call("canvases.sections.lookup", params=kwargs)

            Find sections matching the provided criteria -https://api.slack.com/methods/canvases.sections.lookup

            +https://docs.slack.dev/reference/methods/canvases.sections.lookup

            def channels_archive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10035,13 +10109,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return self.api_call("chat.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.delete

            def chat_deleteScheduledMessage(self,
            *,
            channel: str,
            scheduled_message_id: str,
            as_user: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10060,7 +10134,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -10072,7 +10146,7 @@

            Methods

            return self.api_call("chat.deleteScheduledMessage", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage

            def chat_meMessage(self, *, channel: str, text: str, **kwargs) ‑> SlackResponse @@ -10114,16 +10188,16 @@

            Methods

            **kwargs, ) -> SlackResponse: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return self.api_call("chat.meMessage", params=kwargs)

            Share a me message into a channel. -https://api.slack.com/methods/chat.meMessage

            +https://docs.slack.dev/reference/methods/chat.meMessage

            -def chat_postEphemeral(self,
            *,
            channel: str,
            user: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            **kwargs) ‑> SlackResponse
            +def chat_postEphemeral(self,
            *,
            channel: str,
            user: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10145,10 +10219,11 @@

            Methods

            link_names: Optional[bool] = None, username: Optional[str] = None, parse: Optional[str] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -10164,19 +10239,20 @@

            Methods

            "link_names": link_names, "username": username, "parse": parse, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postEphemeral", kwargs) + _warn_if_message_text_content_is_missing("chat.postEphemeral", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postEphemeral", json=kwargs)

            Sends an ephemeral message to a user in a channel. -https://api.slack.com/methods/chat.postEphemeral

            +https://docs.slack.dev/reference/methods/chat.postEphemeral

            -def chat_postMessage(self,
            *,
            channel: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            container_id: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            mrkdwn: bool | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> SlackResponse
            +def chat_postMessage(self,
            *,
            channel: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            container_id: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            mrkdwn: bool | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10203,10 +10279,11 @@

            Methods

            username: Optional[str] = None, parse: Optional[str] = None, # none, full metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -10227,19 +10304,20 @@

            Methods

            "username": username, "parse": parse, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.postMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postMessage", json=kwargs)

            Sends a message to a channel. -https://api.slack.com/methods/chat.postMessage

            +https://docs.slack.dev/reference/methods/chat.postMessage

            -def chat_scheduleMessage(self,
            *,
            channel: str,
            post_at: str | int,
            text: str,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            link_names: bool | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> SlackResponse
            +def chat_scheduleMessage(self,
            *,
            channel: str,
            post_at: str | int,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            link_names: bool | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10251,7 +10329,7 @@

            Methods

            *, channel: str, post_at: Union[str, int], - text: str, + text: Optional[str] = None, as_user: Optional[bool] = None, attachments: Optional[Union[str, Sequence[Union[Dict, Attachment]]]] = None, blocks: Optional[Union[str, Sequence[Union[Dict, Block]]]] = None, @@ -10262,10 +10340,11 @@

            Methods

            unfurl_media: Optional[bool] = None, link_names: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -10282,16 +10361,17 @@

            Methods

            "unfurl_media": unfurl_media, "link_names": link_names, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.scheduleMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.scheduleMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.scheduleMessage", json=kwargs)
            +https://docs.slack.dev/reference/methods/chat.scheduleMessage

            def chat_scheduledMessages_list(self,
            *,
            channel: str | None = None,
            cursor: str | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10313,7 +10393,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -10328,7 +10408,7 @@

            Methods

            return self.api_call("chat.scheduledMessages.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.scheduledMessages.list

            def chat_unfurl(self,
            *,
            channel: str | None = None,
            ts: str | None = None,
            source: str | None = None,
            unfurl_id: str | None = None,
            unfurls: Dict[str, Dict] | None = None,
            user_auth_blocks: str | Sequence[Dict | Block] | None = None,
            user_auth_message: str | None = None,
            user_auth_required: bool | None = None,
            user_auth_url: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10353,7 +10433,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -10374,10 +10454,10 @@

            Methods

            return self.api_call("chat.unfurl", json=kwargs)

            Provide custom unfurl behavior for user-posted URLs. -https://api.slack.com/methods/chat.unfurl

            +https://docs.slack.dev/reference/methods/chat.unfurl

            -def chat_update(self,
            *,
            channel: str,
            ts: str,
            text: str | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            as_user: bool | None = None,
            file_ids: str | Sequence[str] | None = None,
            link_names: bool | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> SlackResponse
            +def chat_update(self,
            *,
            channel: str,
            ts: str,
            text: str | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            as_user: bool | None = None,
            file_ids: str | Sequence[str] | None = None,
            link_names: bool | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10398,10 +10478,11 @@

            Methods

            parse: Optional[str] = None, # none, full reply_broadcast: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> SlackResponse: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -10415,6 +10496,7 @@

            Methods

            "parse": parse, "reply_broadcast": reply_broadcast, "metadata": metadata, + "markdown_text": markdown_text, } ) if isinstance(file_ids, (list, tuple)): @@ -10423,12 +10505,12 @@

            Methods

            kwargs.update({"file_ids": file_ids}) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.update", kwargs) + _warn_if_message_text_content_is_missing("chat.update", kwargs) # NOTE: intentionally using json over params for API methods using blocks/attachments return self.api_call("chat.update", json=kwargs)

            Updates a message in a channel. -https://api.slack.com/methods/chat.update

            +https://docs.slack.dev/reference/methods/chat.update

            def conversations_acceptSharedInvite(self,
            *,
            channel_name: str,
            channel_id: str | None = None,
            invite_id: str | None = None,
            free_trial_accepted: bool | None = None,
            is_private: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10450,7 +10532,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -10467,7 +10549,7 @@

            Methods

            return self.api_call("conversations.acceptSharedInvite", http_verb="POST", params=kwargs)

            Accepts an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.acceptSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite

            def conversations_approveSharedInvite(self, *, invite_id: str, target_team: str | None = None, **kwargs) ‑> SlackResponse @@ -10485,13 +10567,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs)

            Approves an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.approveSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.approveSharedInvite

            def conversations_archive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10508,13 +10590,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return self.api_call("conversations.archive", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.archive

            def conversations_canvases_create(self, *, channel_id: str, document_content: Dict[str, str], **kwargs) ‑> SlackResponse @@ -10532,13 +10614,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return self.api_call("conversations.canvases.create", json=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.canvases.create

            def conversations_close(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10555,13 +10637,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return self.api_call("conversations.close", params=kwargs)

            Closes a direct message or multi-person direct message. -https://api.slack.com/methods/conversations.close

            +https://docs.slack.dev/reference/methods/conversations.close

            def conversations_create(self,
            *,
            name: str,
            is_private: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10580,13 +10662,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return self.api_call("conversations.create", params=kwargs)

            Initiates a public or private channel-based conversation -https://api.slack.com/methods/conversations.create

            +https://docs.slack.dev/reference/methods/conversations.create

            def conversations_declineSharedInvite(self, *, invite_id: str, target_team: str | None = None, **kwargs) ‑> SlackResponse @@ -10604,13 +10686,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs)

            Declines a Slack Connect channel invite. -https://api.slack.com/methods/conversations.declineSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.declineSharedInvite

            def conversations_externalInvitePermissions_set(self, *, action: str, channel: str, target_team: str, **kwargs) ‑> SlackResponse @@ -10624,7 +10706,7 @@

            Methods

            self, *, action: str, channel: str, target_team: str, **kwargs ) -> SlackResponse: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -10636,7 +10718,7 @@

            Methods

            return self.api_call("conversations.externalInvitePermissions.set", params=kwargs)

            Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. -https://api.slack.com/methods/conversations.externalInvitePermissions.set

            +https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set

            def conversations_history(self,
            *,
            channel: str,
            cursor: str | None = None,
            inclusive: bool | None = None,
            include_all_metadata: bool | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10659,7 +10741,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -10675,7 +10757,7 @@

            Methods

            return self.api_call("conversations.history", http_verb="GET", params=kwargs)

            Fetches a conversation's history of messages and events. -https://api.slack.com/methods/conversations.history

            +https://docs.slack.dev/reference/methods/conversations.history

            def conversations_info(self,
            *,
            channel: str,
            include_locale: bool | None = None,
            include_num_members: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10694,7 +10776,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -10706,7 +10788,7 @@

            Methods

            return self.api_call("conversations.info", http_verb="GET", params=kwargs)

            Retrieve information about a conversation. -https://api.slack.com/methods/conversations.info

            +https://docs.slack.dev/reference/methods/conversations.info

            def conversations_invite(self,
            *,
            channel: str,
            users: str | Sequence[str],
            force: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10725,7 +10807,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -10740,7 +10822,7 @@

            Methods

            return self.api_call("conversations.invite", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.invite

            def conversations_inviteShared(self,
            *,
            channel: str,
            emails: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10759,7 +10841,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -10775,7 +10857,7 @@

            Methods

            return self.api_call("conversations.inviteShared", http_verb="GET", params=kwargs)

            Sends an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.inviteShared

            +https://docs.slack.dev/reference/methods/conversations.inviteShared

            def conversations_join(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10792,13 +10874,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return self.api_call("conversations.join", params=kwargs)

            Joins an existing conversation. -https://api.slack.com/methods/conversations.join

            +https://docs.slack.dev/reference/methods/conversations.join

            def conversations_kick(self, *, channel: str, user: str, **kwargs) ‑> SlackResponse @@ -10816,13 +10898,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return self.api_call("conversations.kick", params=kwargs)

            Removes a user from a conversation. -https://api.slack.com/methods/conversations.kick

            +https://docs.slack.dev/reference/methods/conversations.kick

            def conversations_leave(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -10839,13 +10921,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return self.api_call("conversations.leave", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.leave

            def conversations_list(self,
            *,
            cursor: str | None = None,
            exclude_archived: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            types: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10866,7 +10948,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -10883,7 +10965,7 @@

            Methods

            return self.api_call("conversations.list", http_verb="GET", params=kwargs)

            Lists all channels in a Slack team. -https://api.slack.com/methods/conversations.list

            +https://docs.slack.dev/reference/methods/conversations.list

            def conversations_listConnectInvites(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10903,14 +10985,14 @@

            Methods

            ) -> SlackResponse: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return self.api_call("conversations.listConnectInvites", params=kwargs)

            List shared channel invites that have been generated or received but have not yet been approved by all parties. -https://api.slack.com/methods/conversations.listConnectInvites

            +https://docs.slack.dev/reference/methods/conversations.listConnectInvites

            def conversations_mark(self, *, channel: str, ts: str, **kwargs) ‑> SlackResponse @@ -10928,13 +11010,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return self.api_call("conversations.mark", params=kwargs)

            Sets the read cursor in a channel. -https://api.slack.com/methods/conversations.mark

            +https://docs.slack.dev/reference/methods/conversations.mark

            def conversations_members(self, *, channel: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> SlackResponse @@ -10953,13 +11035,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return self.api_call("conversations.members", http_verb="GET", params=kwargs)

            Retrieve members of a conversation. -https://api.slack.com/methods/conversations.members

            +https://docs.slack.dev/reference/methods/conversations.members

            def conversations_open(self,
            *,
            channel: str | None = None,
            return_im: bool | None = None,
            users: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -10978,7 +11060,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -10990,7 +11072,7 @@

            Methods

            return self.api_call("conversations.open", params=kwargs)

            Opens or resumes a direct message or multi-person direct message. -https://api.slack.com/methods/conversations.open

            +https://docs.slack.dev/reference/methods/conversations.open

            def conversations_rename(self, *, channel: str, name: str, **kwargs) ‑> SlackResponse @@ -11008,13 +11090,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return self.api_call("conversations.rename", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.rename

            def conversations_replies(self,
            *,
            channel: str,
            ts: str,
            cursor: str | None = None,
            inclusive: bool | None = None,
            include_all_metadata: bool | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11038,7 +11120,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -11055,7 +11137,7 @@

            Methods

            return self.api_call("conversations.replies", http_verb="GET", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.replies

            def conversations_requestSharedInvite_approve(self,
            *,
            invite_id: str,
            channel_id: str | None = None,
            is_external_limited: str | None = None,
            message: Dict[str, Any] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11075,7 +11157,7 @@

            Methods

            **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -11089,7 +11171,7 @@

            Methods

            return self.api_call("conversations.requestSharedInvite.approve", params=kwargs)

            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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve

            def conversations_requestSharedInvite_deny(self, *, invite_id: str, message: str | None = None, **kwargs) ‑> SlackResponse @@ -11107,13 +11189,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return self.api_call("conversations.requestSharedInvite.deny", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny

            def conversations_requestSharedInvite_list(self,
            *,
            cursor: str | None = None,
            include_approved: bool | None = None,
            include_denied: bool | None = None,
            include_expired: bool | None = None,
            invite_ids: str | Sequence[str] | None = None,
            limit: int | None = None,
            user_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11136,7 +11218,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -11156,7 +11238,7 @@

            Methods

            return self.api_call("conversations.requestSharedInvite.list", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list

            def conversations_setPurpose(self, *, channel: str, purpose: str, **kwargs) ‑> SlackResponse @@ -11174,13 +11256,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return self.api_call("conversations.setPurpose", params=kwargs)

            Sets the purpose for a conversation. -https://api.slack.com/methods/conversations.setPurpose

            +https://docs.slack.dev/reference/methods/conversations.setPurpose

            def conversations_setTopic(self, *, channel: str, topic: str, **kwargs) ‑> SlackResponse @@ -11198,13 +11280,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return self.api_call("conversations.setTopic", params=kwargs)

            Sets the topic for a conversation. -https://api.slack.com/methods/conversations.setTopic

            +https://docs.slack.dev/reference/methods/conversations.setTopic

            def conversations_unarchive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -11221,13 +11303,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return self.api_call("conversations.unarchive", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.unarchive

            def dialog_open(self, *, dialog: Dict[str, Any], trigger_id: str, **kwargs) ‑> SlackResponse @@ -11245,7 +11327,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -11253,7 +11335,7 @@

            Methods

            return self.api_call("dialog.open", json=kwargs)

            Open a dialog with a user. -https://api.slack.com/methods/dialog.open

            +https://docs.slack.dev/reference/methods/dialog.open

            def dnd_endDnd(self, **kwargs) ‑> SlackResponse @@ -11268,12 +11350,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return self.api_call("dnd.endDnd", params=kwargs)

            Ends the current user's Do Not Disturb session immediately. -https://api.slack.com/methods/dnd.endDnd

            +https://docs.slack.dev/reference/methods/dnd.endDnd

            def dnd_endSnooze(self, **kwargs) ‑> SlackResponse @@ -11288,12 +11370,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return self.api_call("dnd.endSnooze", params=kwargs)

            Ends the current user's snooze mode immediately. -https://api.slack.com/methods/dnd.endSnooze

            +https://docs.slack.dev/reference/methods/dnd.endSnooze

            def dnd_info(self, *, team_id: str | None = None, user: str | None = None, **kwargs) ‑> SlackResponse @@ -11311,13 +11393,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("dnd.info", http_verb="GET", params=kwargs)

            Retrieves a user's current Do Not Disturb status. -https://api.slack.com/methods/dnd.info

            +https://docs.slack.dev/reference/methods/dnd.info

            def dnd_setSnooze(self, *, num_minutes: str | int, **kwargs) ‑> SlackResponse @@ -11334,13 +11416,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs)

            Turns on Do Not Disturb mode for the current user, or changes its duration. -https://api.slack.com/methods/dnd.setSnooze

            +https://docs.slack.dev/reference/methods/dnd.setSnooze

            def dnd_teamInfo(self, users: str | Sequence[str], team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -11357,7 +11439,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -11367,7 +11449,7 @@

            Methods

            return self.api_call("dnd.teamInfo", http_verb="GET", params=kwargs)

            Retrieves the Do Not Disturb status for users on a team. -https://api.slack.com/methods/dnd.teamInfo

            +https://docs.slack.dev/reference/methods/dnd.teamInfo

            def emoji_list(self, include_categories: bool | None = None, **kwargs) ‑> SlackResponse @@ -11383,13 +11465,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return self.api_call("emoji.list", http_verb="GET", params=kwargs)

            Lists custom emoji for a team. -https://api.slack.com/methods/emoji.list

            +https://docs.slack.dev/reference/methods/emoji.list

            def files_comments_delete(self, *, file: str, id: str, **kwargs) ‑> SlackResponse @@ -11407,13 +11489,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return self.api_call("files.comments.delete", params=kwargs)

            Deletes an existing comment on a file. -https://api.slack.com/methods/files.comments.delete

            +https://docs.slack.dev/reference/methods/files.comments.delete

            def files_completeUploadExternal(self,
            *,
            files: List[Dict[str, str]],
            channel_id: str | None = None,
            channels: List[str] | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11434,7 +11516,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -11450,7 +11532,7 @@

            Methods

            return self.api_call("files.completeUploadExternal", params=kwargs)

            Finishes an upload started with files.getUploadURLExternal. -https://api.slack.com/methods/files.completeUploadExternal

            +https://docs.slack.dev/reference/methods/files.completeUploadExternal

            def files_delete(self, *, file: str, **kwargs) ‑> SlackResponse @@ -11467,13 +11549,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return self.api_call("files.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/files.delete

            def files_getUploadURLExternal(self,
            *,
            filename: str,
            length: int,
            alt_txt: str | None = None,
            snippet_type: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11493,7 +11575,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -11506,7 +11588,7 @@

            Methods

            return self.api_call("files.getUploadURLExternal", params=kwargs)

            Gets a URL for an edge external upload. -https://api.slack.com/methods/files.getUploadURLExternal

            +https://docs.slack.dev/reference/methods/files.getUploadURLExternal

            def files_info(self,
            *,
            file: str,
            count: int | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            page: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11527,7 +11609,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -11541,7 +11623,7 @@

            Methods

            return self.api_call("files.info", http_verb="GET", params=kwargs)

            Gets information about a team file. -https://api.slack.com/methods/files.info

            +https://docs.slack.dev/reference/methods/files.info

            def files_list(self,
            *,
            channel: str | None = None,
            count: int | None = None,
            page: int | None = None,
            show_files_hidden_by_limit: bool | None = None,
            team_id: str | None = None,
            ts_from: str | None = None,
            ts_to: str | None = None,
            types: str | Sequence[str] | None = None,
            user: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11566,7 +11648,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -11587,7 +11669,7 @@

            Methods

            return self.api_call("files.list", http_verb="GET", params=kwargs)

            Lists & filters team files. -https://api.slack.com/methods/files.list

            +https://docs.slack.dev/reference/methods/files.list

            def files_remote_add(self,
            *,
            external_id: str,
            external_url: str,
            title: str,
            filetype: str | None = None,
            indexable_file_contents: str | bytes | io.IOBase | None = None,
            preview_image: str | bytes | io.IOBase | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11609,7 +11691,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -11636,7 +11718,7 @@

            Methods

            )

            Adds a file from a remote service. -https://api.slack.com/methods/files.remote.add

            +https://docs.slack.dev/reference/methods/files.remote.add

            def files_remote_info(self, *, external_id: str | None = None, file: str | None = None, **kwargs) ‑> SlackResponse @@ -11654,13 +11736,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.info", http_verb="GET", params=kwargs)

            Retrieve information about a remote file added to Slack. -https://api.slack.com/methods/files.remote.info

            +https://docs.slack.dev/reference/methods/files.remote.info

            def files_remote_list(self,
            *,
            channel: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            ts_from: str | None = None,
            ts_to: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11681,7 +11763,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -11695,7 +11777,7 @@

            Methods

            return self.api_call("files.remote.list", http_verb="GET", params=kwargs)

            Retrieve information about a remote file added to Slack. -https://api.slack.com/methods/files.remote.list

            +https://docs.slack.dev/reference/methods/files.remote.list

            def files_remote_remove(self, *, external_id: str | None = None, file: str | None = None, **kwargs) ‑> SlackResponse @@ -11713,13 +11795,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.remove", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/files.remote.remove

            def files_remote_share(self,
            *,
            channels: str | Sequence[str],
            external_id: str | None = None,
            file: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11738,7 +11820,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -11750,7 +11832,7 @@

            Methods

            return self.api_call("files.remote.share", http_verb="GET", params=kwargs)

            Share a remote file into a channel. -https://api.slack.com/methods/files.remote.share

            +https://docs.slack.dev/reference/methods/files.remote.share

            def files_remote_update(self,
            *,
            external_id: str | None = None,
            external_url: str | None = None,
            file: str | None = None,
            title: str | None = None,
            filetype: str | None = None,
            indexable_file_contents: str | None = None,
            preview_image: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11773,7 +11855,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -11801,7 +11883,7 @@

            Methods

            )

            Updates an existing remote file. -https://api.slack.com/methods/files.remote.update

            +https://docs.slack.dev/reference/methods/files.remote.update

            def files_revokePublicURL(self, *, file: str, **kwargs) ‑> SlackResponse @@ -11818,13 +11900,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return self.api_call("files.revokePublicURL", params=kwargs)

            Revokes public/external sharing access for a file -https://api.slack.com/methods/files.revokePublicURL

            +https://docs.slack.dev/reference/methods/files.revokePublicURL

            def files_sharedPublicURL(self, *, file: str, **kwargs) ‑> SlackResponse @@ -11841,13 +11923,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return self.api_call("files.sharedPublicURL", params=kwargs)

            Enables a file for public/external sharing. -https://api.slack.com/methods/files.sharedPublicURL

            +https://docs.slack.dev/reference/methods/files.sharedPublicURL

            def files_upload(self,
            *,
            file: str | bytes | io.IOBase | None = None,
            content: str | bytes | None = None,
            filename: str | None = None,
            filetype: str | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            title: str | None = None,
            channels: str | Sequence[str] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -11871,7 +11953,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -11904,7 +11986,7 @@

            Methods

            return self.api_call("files.upload", data=kwargs)

            Uploads or creates a file. -https://api.slack.com/methods/files.upload

            +https://docs.slack.dev/reference/methods/files.upload

            def files_upload_v2(self,
            *,
            filename: str | None = None,
            file: str | bytes | io.IOBase | os.PathLike | None = None,
            content: str | bytes | None = None,
            title: str | None = None,
            alt_txt: str | None = None,
            snippet_type: str | None = None,
            file_uploads: List[Dict[str, Any]] | None = None,
            channel: str | None = None,
            channels: List[str] | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            request_file_info: bool = True,
            **kwargs) ‑> SlackResponse
            @@ -11935,12 +12017,12 @@

            Methods

            ) -> SlackResponse: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -12019,14 +12101,14 @@

            Methods

            This wrapper method provides an easy way to upload files using the following endpoints:

            @@ -12046,13 +12128,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return self.api_call("functions.completeError", params=kwargs)

            Signal the failure to execute a function -https://api.slack.com/methods/functions.completeError

            +https://docs.slack.dev/reference/methods/functions.completeError

            def functions_completeSuccess(self, *, function_execution_id: str, outputs: Dict[str, Any], **kwargs) ‑> SlackResponse @@ -12070,13 +12152,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return self.api_call("functions.completeSuccess", params=kwargs)

            Signal the successful completion of a function -https://api.slack.com/methods/functions.completeSuccess

            +https://docs.slack.dev/reference/methods/functions.completeSuccess

            def groups_archive(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -12552,7 +12634,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -12562,7 +12644,7 @@

            Methods

            return self.api_call("migration.exchange", http_verb="GET", params=kwargs)

            For Enterprise Grid workspaces, map local user IDs to global user IDs -https://api.slack.com/methods/migration.exchange

            +https://docs.slack.dev/reference/methods/migration.exchange

            def mpim_close(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -12709,7 +12791,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12721,7 +12803,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token. -https://api.slack.com/methods/oauth.access

            +https://docs.slack.dev/reference/methods/oauth.access

            def oauth_v2_access(self,
            *,
            client_id: str,
            client_secret: str,
            code: str | None = None,
            redirect_uri: str | None = None,
            grant_type: str | None = None,
            refresh_token: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12747,7 +12829,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12764,7 +12846,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token. -https://api.slack.com/methods/oauth.v2.access

            +https://docs.slack.dev/reference/methods/oauth.v2.access

            def oauth_v2_exchange(self, *, token: str, client_id: str, client_secret: str, **kwargs) ‑> SlackResponse @@ -12783,13 +12865,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return self.api_call("oauth.v2.exchange", params=kwargs)

            Exchanges a legacy access token for a new expiring access token and refresh token -https://api.slack.com/methods/oauth.v2.exchange

            +https://docs.slack.dev/reference/methods/oauth.v2.exchange

            def openid_connect_token(self,
            client_id: str,
            client_secret: str,
            code: str | None = None,
            redirect_uri: str | None = None,
            grant_type: str | None = None,
            refresh_token: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12810,7 +12892,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12827,7 +12909,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. -https://api.slack.com/methods/openid.connect.token

            +https://docs.slack.dev/reference/methods/openid.connect.token

            def openid_connect_userInfo(self, **kwargs) ‑> SlackResponse @@ -12842,12 +12924,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return self.api_call("openid.connect.userInfo", params=kwargs)

            Get the identity of a user who has authorized Sign in with Slack. -https://api.slack.com/methods/openid.connect.userInfo

            +https://docs.slack.dev/reference/methods/openid.connect.userInfo

            def pins_add(self, *, channel: str, timestamp: str | None = None, **kwargs) ‑> SlackResponse @@ -12865,13 +12947,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.add", params=kwargs)

            Pins an item to a channel. -https://api.slack.com/methods/pins.add

            +https://docs.slack.dev/reference/methods/pins.add

            def pins_list(self, *, channel: str, **kwargs) ‑> SlackResponse @@ -12888,13 +12970,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return self.api_call("pins.list", http_verb="GET", params=kwargs)

            Lists items pinned to a channel. -https://api.slack.com/methods/pins.list

            +https://docs.slack.dev/reference/methods/pins.list

            def pins_remove(self, *, channel: str, timestamp: str | None = None, **kwargs) ‑> SlackResponse @@ -12912,13 +12994,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.remove", params=kwargs)

            Un-pins an item from a channel. -https://api.slack.com/methods/pins.remove

            +https://docs.slack.dev/reference/methods/pins.remove

            def reactions_add(self, *, channel: str, name: str, timestamp: str, **kwargs) ‑> SlackResponse @@ -12937,13 +13019,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return self.api_call("reactions.add", params=kwargs)

            Adds a reaction to an item. -https://api.slack.com/methods/reactions.add

            +https://docs.slack.dev/reference/methods/reactions.add

            def reactions_get(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            full: bool | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -12964,7 +13046,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -12978,7 +13060,7 @@

            Methods

            return self.api_call("reactions.get", http_verb="GET", params=kwargs)

            Gets reactions for an item. -https://api.slack.com/methods/reactions.get

            +https://docs.slack.dev/reference/methods/reactions.get

            def reactions_list(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            full: bool | None = None,
            limit: int | None = None,
            page: int | None = None,
            team_id: str | None = None,
            user: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13001,7 +13083,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -13017,7 +13099,7 @@

            Methods

            return self.api_call("reactions.list", http_verb="GET", params=kwargs)

            Lists reactions made by a user. -https://api.slack.com/methods/reactions.list

            +https://docs.slack.dev/reference/methods/reactions.list

            def reactions_remove(self,
            *,
            name: str,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13038,7 +13120,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -13052,7 +13134,7 @@

            Methods

            return self.api_call("reactions.remove", params=kwargs)

            Removes a reaction from an item. -https://api.slack.com/methods/reactions.remove

            +https://docs.slack.dev/reference/methods/reactions.remove

            def reminders_add(self,
            *,
            text: str,
            time: str,
            team_id: str | None = None,
            user: str | None = None,
            recurrence: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13073,7 +13155,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -13087,7 +13169,7 @@

            Methods

            return self.api_call("reminders.add", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.add

            def reminders_complete(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -13105,13 +13187,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.complete", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.complete

            def reminders_delete(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -13129,13 +13211,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.delete

            def reminders_info(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -13153,13 +13235,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.info", http_verb="GET", params=kwargs)

            Gets information about a reminder. -https://api.slack.com/methods/reminders.info

            +https://docs.slack.dev/reference/methods/reminders.info

            def reminders_list(self, *, team_id: str | None = None, **kwargs) ‑> SlackResponse @@ -13176,13 +13258,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return self.api_call("reminders.list", http_verb="GET", params=kwargs)

            Lists all reminders created by or for a given user. -https://api.slack.com/methods/reminders.list

            +https://docs.slack.dev/reference/methods/reminders.list

            def rtm_connect(self,
            *,
            batch_presence_aware: bool | None = None,
            presence_sub: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13200,13 +13282,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return self.api_call("rtm.connect", http_verb="GET", params=kwargs)

            Starts a Real Time Messaging session. -https://api.slack.com/methods/rtm.connect

            +https://docs.slack.dev/reference/methods/rtm.connect

            def rtm_start(self,
            *,
            batch_presence_aware: bool | None = None,
            include_locale: bool | None = None,
            mpim_aware: bool | None = None,
            no_latest: bool | None = None,
            no_unreads: bool | None = None,
            presence_sub: bool | None = None,
            simple_latest: bool | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13229,7 +13311,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -13245,7 +13327,7 @@

            Methods

            return self.api_call("rtm.start", http_verb="GET", params=kwargs)

            Starts a Real Time Messaging session. -https://api.slack.com/methods/rtm.start

            +https://docs.slack.dev/reference/methods/rtm.start

            def search_all(self,
            *,
            query: str,
            count: int | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13268,7 +13350,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -13284,7 +13366,7 @@

            Methods

            return self.api_call("search.all", http_verb="GET", params=kwargs)

            Searches for messages and files matching a query. -https://api.slack.com/methods/search.all

            +https://docs.slack.dev/reference/methods/search.all

            def search_files(self,
            *,
            query: str,
            count: int | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13307,7 +13389,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -13323,7 +13405,7 @@

            Methods

            return self.api_call("search.files", http_verb="GET", params=kwargs)

            Searches for files matching a query. -https://api.slack.com/methods/search.files

            +https://docs.slack.dev/reference/methods/search.files

            def search_messages(self,
            *,
            query: str,
            count: int | None = None,
            cursor: str | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13347,7 +13429,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -13364,7 +13446,7 @@

            Methods

            return self.api_call("search.messages", http_verb="GET", params=kwargs)

            Searches for messages matching a query. -https://api.slack.com/methods/search.messages

            +https://docs.slack.dev/reference/methods/search.messages

            def stars_add(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13384,7 +13466,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -13397,7 +13479,7 @@

            Methods

            return self.api_call("stars.add", params=kwargs)
            +https://docs.slack.dev/reference/methods/stars.add

            def stars_list(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            page: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13418,7 +13500,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -13432,7 +13514,7 @@

            Methods

            return self.api_call("stars.list", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/stars.list

            def stars_remove(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13452,7 +13534,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -13465,7 +13547,7 @@

            Methods

            return self.api_call("stars.remove", params=kwargs)

            Removes a star from an item. -https://api.slack.com/methods/stars.remove

            +https://docs.slack.dev/reference/methods/stars.remove

            def team_accessLogs(self,
            *,
            before: str | int | None = None,
            count: str | int | None = None,
            page: str | int | None = None,
            team_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13487,7 +13569,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -13502,7 +13584,7 @@

            Methods

            return self.api_call("team.accessLogs", http_verb="GET", params=kwargs)

            Gets the access logs for the current team. -https://api.slack.com/methods/team.accessLogs

            +https://docs.slack.dev/reference/methods/team.accessLogs

            def team_billableInfo(self, *, team_id: str | None = None, user: str | None = None, **kwargs) ‑> SlackResponse @@ -13520,13 +13602,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("team.billableInfo", http_verb="GET", params=kwargs)

            Gets billable users information for the current team. -https://api.slack.com/methods/team.billableInfo

            +https://docs.slack.dev/reference/methods/team.billableInfo

            def team_billing_info(self, **kwargs) ‑> SlackResponse @@ -13541,12 +13623,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return self.api_call("team.billing.info", params=kwargs)

            Reads a workspace's billing plan information. -https://api.slack.com/methods/team.billing.info

            +https://docs.slack.dev/reference/methods/team.billing.info

            def team_externalTeams_disconnect(self, *, target_team: str, **kwargs) ‑> SlackResponse @@ -13563,7 +13645,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -13573,7 +13655,7 @@

            Methods

            return self.api_call("team.externalTeams.disconnect", params=kwargs)
            +https://docs.slack.dev/reference/methods/team.externalTeams.disconnect

            def team_externalTeams_list(self,
            *,
            connection_status_filter: str | None = None,
            slack_connect_pref_filter: Sequence[str] | None = None,
            sort_direction: str | None = None,
            sort_field: str | None = None,
            workspace_filter: Sequence[str] | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13596,7 +13678,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -13620,7 +13702,7 @@

            Methods

            return self.api_call("team.externalTeams.list", http_verb="GET", params=kwargs)

            Returns a list of all the external teams connected and details about the connection. -https://api.slack.com/methods/team.externalTeams.list

            +https://docs.slack.dev/reference/methods/team.externalTeams.list

            def team_info(self, *, team: str | None = None, domain: str | None = None, **kwargs) ‑> SlackResponse @@ -13638,13 +13720,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return self.api_call("team.info", http_verb="GET", params=kwargs)

            Gets information about the current team. -https://api.slack.com/methods/team.info

            +https://docs.slack.dev/reference/methods/team.info

            def team_integrationLogs(self,
            *,
            app_id: str | None = None,
            change_type: str | None = None,
            count: str | int | None = None,
            page: str | int | None = None,
            service_id: str | None = None,
            team_id: str | None = None,
            user: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13667,7 +13749,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -13683,7 +13765,7 @@

            Methods

            return self.api_call("team.integrationLogs", http_verb="GET", params=kwargs)

            Gets the integration logs for the current team. -https://api.slack.com/methods/team.integrationLogs

            +https://docs.slack.dev/reference/methods/team.integrationLogs

            def team_preferences_list(self, **kwargs) ‑> SlackResponse @@ -13698,12 +13780,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return self.api_call("team.preferences.list", params=kwargs)

            Retrieve a list of a workspace's team preferences. -https://api.slack.com/methods/team.preferences.list

            +https://docs.slack.dev/reference/methods/team.preferences.list

            def team_profile_get(self, *, visibility: str | None = None, **kwargs) ‑> SlackResponse @@ -13720,13 +13802,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return self.api_call("team.profile.get", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/team.profile.get

            def tooling_tokens_rotate(self, *, refresh_token: str, **kwargs) ‑> SlackResponse @@ -13743,13 +13825,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return self.api_call("tooling.tokens.rotate", params=kwargs)

            Exchanges a refresh token for a new app configuration token -https://api.slack.com/methods/tooling.tokens.rotate

            +https://docs.slack.dev/reference/methods/tooling.tokens.rotate

            def usergroups_create(self,
            *,
            name: str,
            channels: str | Sequence[str] | None = None,
            description: str | None = None,
            handle: str | None = None,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13771,7 +13853,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -13789,7 +13871,7 @@

            Methods

            return self.api_call("usergroups.create", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.create

            def usergroups_disable(self,
            *,
            usergroup: str,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13808,13 +13890,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.disable", params=kwargs)

            Disable an existing User Group -https://api.slack.com/methods/usergroups.disable

            +https://docs.slack.dev/reference/methods/usergroups.disable

            def usergroups_enable(self,
            *,
            usergroup: str,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13833,13 +13915,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.enable", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.enable

            def usergroups_list(self,
            *,
            include_count: bool | None = None,
            include_disabled: bool | None = None,
            include_users: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13859,7 +13941,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -13872,7 +13954,7 @@

            Methods

            return self.api_call("usergroups.list", http_verb="GET", params=kwargs)

            List all User Groups for a team -https://api.slack.com/methods/usergroups.list

            +https://docs.slack.dev/reference/methods/usergroups.list

            def usergroups_update(self,
            *,
            usergroup: str,
            channels: str | Sequence[str] | None = None,
            description: str | None = None,
            handle: str | None = None,
            include_count: bool | None = None,
            name: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13895,7 +13977,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -13914,7 +13996,7 @@

            Methods

            return self.api_call("usergroups.update", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.update

            def usergroups_users_list(self,
            *,
            usergroup: str,
            include_disabled: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13933,7 +14015,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -13945,7 +14027,7 @@

            Methods

            return self.api_call("usergroups.users.list", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.users.list

            def usergroups_users_update(self,
            *,
            usergroup: str,
            users: str | Sequence[str],
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -13965,7 +14047,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -13981,7 +14063,7 @@

            Methods

            return self.api_call("usergroups.users.update", params=kwargs)

            Update the list of users for a User Group -https://api.slack.com/methods/usergroups.users.update

            +https://docs.slack.dev/reference/methods/usergroups.users.update

            def users_conversations(self,
            *,
            cursor: str | None = None,
            exclude_archived: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            types: str | Sequence[str] | None = None,
            user: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -14003,7 +14085,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -14021,7 +14103,7 @@

            Methods

            return self.api_call("users.conversations", http_verb="GET", params=kwargs)

            List conversations the calling user may access. -https://api.slack.com/methods/users.conversations

            +https://docs.slack.dev/reference/methods/users.conversations

            def users_deletePhoto(self, **kwargs) ‑> SlackResponse @@ -14036,12 +14118,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return self.api_call("users.deletePhoto", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.deletePhoto

            def users_discoverableContacts_lookup(self, email: str, **kwargs) ‑> SlackResponse @@ -14057,13 +14139,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return self.api_call("users.discoverableContacts.lookup", params=kwargs)

            Lookup an email address to see if someone is on Slack -https://api.slack.com/methods/users.discoverableContacts.lookup

            +https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup

            def users_getPresence(self, *, user: str, **kwargs) ‑> SlackResponse @@ -14080,13 +14162,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return self.api_call("users.getPresence", http_verb="GET", params=kwargs)

            Gets user presence information. -https://api.slack.com/methods/users.getPresence

            +https://docs.slack.dev/reference/methods/users.getPresence

            def users_identity(self, **kwargs) ‑> SlackResponse @@ -14101,12 +14183,12 @@

            Methods

            **kwargs, ) -> SlackResponse: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return self.api_call("users.identity", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.identity

            def users_info(self, *, user: str, include_locale: bool | None = None, **kwargs) ‑> SlackResponse @@ -14124,13 +14206,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return self.api_call("users.info", http_verb="GET", params=kwargs)

            Gets information about a user. -https://api.slack.com/methods/users.info

            +https://docs.slack.dev/reference/methods/users.info

            def users_list(self,
            *,
            cursor: str | None = None,
            include_locale: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -14150,7 +14232,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -14163,7 +14245,7 @@

            Methods

            return self.api_call("users.list", http_verb="GET", params=kwargs)

            Lists all users in a Slack team. -https://api.slack.com/methods/users.list

            +https://docs.slack.dev/reference/methods/users.list

            def users_lookupByEmail(self, *, email: str, **kwargs) ‑> SlackResponse @@ -14180,13 +14262,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs)

            Find a user with an email address. -https://api.slack.com/methods/users.lookupByEmail

            +https://docs.slack.dev/reference/methods/users.lookupByEmail

            def users_profile_get(self, *, user: str | None = None, include_labels: bool | None = None, **kwargs) ‑> SlackResponse @@ -14204,13 +14286,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return self.api_call("users.profile.get", http_verb="GET", params=kwargs)

            Retrieves a user's profile information. -https://api.slack.com/methods/users.profile.get

            +https://docs.slack.dev/reference/methods/users.profile.get

            def users_profile_set(self,
            *,
            name: str | None = None,
            value: str | None = None,
            user: str | None = None,
            profile: Dict | None = None,
            **kwargs) ‑> SlackResponse
            @@ -14230,7 +14312,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -14245,7 +14327,7 @@

            Methods

            return self.api_call("users.profile.set", json=kwargs)

            Set the profile information for a user. -https://api.slack.com/methods/users.profile.set

            +https://docs.slack.dev/reference/methods/users.profile.set

            def users_setPhoto(self,
            *,
            image: str | io.IOBase,
            crop_w: str | int | None = None,
            crop_x: str | int | None = None,
            crop_y: str | int | None = None,
            **kwargs) ‑> SlackResponse
            @@ -14265,13 +14347,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return self.api_call("users.setPhoto", files={"image": image}, data=kwargs)
            +https://docs.slack.dev/reference/methods/users.setPhoto

            def users_setPresence(self, *, presence: str, **kwargs) ‑> SlackResponse @@ -14288,13 +14370,13 @@

            Methods

            **kwargs, ) -> SlackResponse: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return self.api_call("users.setPresence", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.setPresence

            def views_open(self,
            *,
            trigger_id: str | None = None,
            interactivity_pointer: str | None = None,
            view: dict | View,
            **kwargs) ‑> SlackResponse
            @@ -14313,8 +14395,8 @@

            Methods

            **kwargs, ) -> SlackResponse: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -14326,8 +14408,8 @@

            Methods

            return self.api_call("views.open", json=kwargs)
            +https://docs.slack.dev/reference/methods/views.open +See https://docs.slack.dev/surfaces/modals/ for details.

            def views_publish(self,
            *,
            user_id: str,
            view: dict | View,
            hash: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -14347,8 +14429,8 @@

            Methods

            ) -> SlackResponse: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -14361,8 +14443,8 @@

            Methods

            Publish a static view for a User. Create or update the view that comprises an -app's Home tab (https://api.slack.com/surfaces/tabs) -https://api.slack.com/methods/views.publish

            +app's Home tab (https://docs.slack.dev/surfaces/app-home/) +https://docs.slack.dev/reference/methods/views.publish

            def views_push(self,
            *,
            trigger_id: str | None = None,
            interactivity_pointer: str | None = None,
            view: dict | View,
            **kwargs) ‑> SlackResponse
            @@ -14384,9 +14466,9 @@

            Methods

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -14401,9 +14483,9 @@

            Methods

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. -Read the modals documentation (https://api.slack.com/surfaces/modals) +Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. -https://api.slack.com/methods/views.push

            +https://docs.slack.dev/reference/methods/views.push

            def views_update(self,
            *,
            view: dict | View,
            external_id: str | None = None,
            view_id: str | None = None,
            hash: str | None = None,
            **kwargs) ‑> SlackResponse
            @@ -14425,9 +14507,9 @@

            Methods

            """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -14447,9 +14529,119 @@

            Methods

            Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. -See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) +See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. -https://api.slack.com/methods/views.update

            +https://docs.slack.dev/reference/methods/views.update

            + +
            +
            +
            + +Expand source code + +
            def workflows_featured_add(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> SlackResponse:
            +    """Add featured workflows to a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.add
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return self.api_call("workflows.featured.add", params=kwargs)
            +
            + +
            + +
            +
            + +Expand source code + +
            def workflows_featured_list(
            +    self,
            +    *,
            +    channel_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> SlackResponse:
            +    """List the featured workflows for specified channels.
            +    https://docs.slack.dev/reference/methods/workflows.featured.list
            +    """
            +    if isinstance(channel_ids, (list, tuple)):
            +        kwargs.update({"channel_ids": ",".join(channel_ids)})
            +    else:
            +        kwargs.update({"channel_ids": channel_ids})
            +    return self.api_call("workflows.featured.list", params=kwargs)
            +
            +

            List the featured workflows for specified channels. +https://docs.slack.dev/reference/methods/workflows.featured.list

            +
            + +
            +
            + +Expand source code + +
            def workflows_featured_remove(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> SlackResponse:
            +    """Remove featured workflows from a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.remove
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return self.api_call("workflows.featured.remove", params=kwargs)
            +
            + +
            + +
            +
            + +Expand source code + +
            def workflows_featured_set(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> SlackResponse:
            +    """Set featured workflows for a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.set
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return self.api_call("workflows.featured.set", params=kwargs)
            +
            +
            def workflows_stepCompleted(self, *, workflow_step_execute_id: str, outputs: dict | None = None, **kwargs) ‑> SlackResponse @@ -14467,7 +14659,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -14477,7 +14669,7 @@

            Methods

            return self.api_call("workflows.stepCompleted", json=kwargs)

            Indicate a successful outcome of a workflow step's execution. -https://api.slack.com/methods/workflows.stepCompleted

            +https://docs.slack.dev/reference/methods/workflows.stepCompleted

            def workflows_stepFailed(self, *, workflow_step_execute_id: str, error: Dict[str, str], **kwargs) ‑> SlackResponse @@ -14495,7 +14687,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -14508,7 +14700,7 @@

            Methods

            return self.api_call("workflows.stepFailed", json=kwargs)

            Indicate an unsuccessful outcome of a workflow step's execution. -https://api.slack.com/methods/workflows.stepFailed

            +https://docs.slack.dev/reference/methods/workflows.stepFailed

            def workflows_updateStep(self,
            *,
            workflow_step_edit_id: str,
            inputs: Dict[str, Any] | None = None,
            outputs: List[Dict[str, str]] | None = None,
            **kwargs) ‑> SlackResponse
            @@ -14527,7 +14719,7 @@

            Methods

            **kwargs, ) -> SlackResponse: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: @@ -14539,7 +14731,7 @@

            Methods

            return self.api_call("workflows.updateStep", json=kwargs)

            Update the configuration for a workflow extension step. -https://api.slack.com/methods/workflows.updateStep

            +https://docs.slack.dev/reference/methods/workflows.updateStep

            Inherited members

            @@ -14897,6 +15089,10 @@

            Web
          • views_publish
          • views_push
          • views_update
          • +
          • workflows_featured_add
          • +
          • workflows_featured_list
          • +
          • workflows_featured_remove
          • +
          • workflows_featured_set
          • workflows_stepCompleted
          • workflows_stepFailed
          • workflows_updateStep
          • diff --git a/docs/reference/web/internal_utils.html b/docs/reference/web/internal_utils.html index 9d8084d61..89227edce 100644 --- a/docs/reference/web/internal_utils.html +++ b/docs/reference/web/internal_utils.html @@ -95,7 +95,7 @@

            Returns

            Returns: The user agent string. - e.g. 'Python/3.6.7 slackclient/2.0.0 Darwin/17.7.0' + e.g. 'Python/3.7.17 slackclient/2.0.0 Darwin/17.7.0' """ # __name__ returns all classes, we only want the client client = "{0}/{1}".format("slackclient", version.__version__) @@ -110,7 +110,7 @@

            Returns

            Python version and OS version.

            Returns

            The user agent string. -e.g. 'Python/3.6.7 slackclient/2.0.0 Darwin/17.7.0'

            +e.g. 'Python/3.7.17 slackclient/2.0.0 Darwin/17.7.0'

            diff --git a/docs/reference/web/legacy_base_client.html b/docs/reference/web/legacy_base_client.html index a14a4ec62..2abe94377 100644 --- a/docs/reference/web/legacy_base_client.html +++ b/docs/reference/web/legacy_base_client.html @@ -580,7 +580,7 @@

            Classes

            On each HTTP request that Slack sends, we add an X-Slack-Signature HTTP header. The signature is created by combining the signing secret with the body of the request we're sending using a standard HMAC-SHA256 keyed hash. - https://api.slack.com/docs/verifying-requests-from-slack#how_to_make_a_request_signature_in_4_easy_steps__an_overview + https://docs.slack.dev/authentication/verifying-requests-from-slack/#how_to_make_a_request_signature_in_4_easy_steps__an_overview Args: signing_secret: Your application's signing secret, available in the Slack API dashboard @@ -633,7 +633,7 @@

            Static methods

            On each HTTP request that Slack sends, we add an X-Slack-Signature HTTP header. The signature is created by combining the signing secret with the body of the request we're sending using a standard HMAC-SHA256 keyed hash. - https://api.slack.com/docs/verifying-requests-from-slack#how_to_make_a_request_signature_in_4_easy_steps__an_overview + https://docs.slack.dev/authentication/verifying-requests-from-slack/#how_to_make_a_request_signature_in_4_easy_steps__an_overview Args: signing_secret: Your application's signing secret, available in the Slack API dashboard @@ -661,7 +661,7 @@

            Static methods

            On each HTTP request that Slack sends, we add an X-Slack-Signature HTTP header. The signature is created by combining the signing secret with the body of the request we're sending using a standard HMAC-SHA256 keyed hash. -https://api.slack.com/docs/verifying-requests-from-slack#how_to_make_a_request_signature_in_4_easy_steps__an_overview

            +https://docs.slack.dev/authentication/verifying-requests-from-slack/#how_to_make_a_request_signature_in_4_easy_steps__an_overview

            Args

            signing_secret
            diff --git a/docs/reference/web/legacy_client.html b/docs/reference/web/legacy_client.html index 63cbfc7f9..0ac5ac6b9 100644 --- a/docs/reference/web/legacy_client.html +++ b/docs/reference/web/legacy_client.html @@ -58,7 +58,7 @@

            Classes

            class LegacyWebClient(LegacyBaseClient):
                 """A WebClient allows apps to communicate with the Slack Platform's Web API.
             
            -    https://api.slack.com/methods
            +    https://docs.slack.dev/reference/methods
             
                 The Slack Web API is an interface for querying information from
                 and enacting change in a Slack workspace.
            @@ -129,7 +129,7 @@ 

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -151,7 +151,7 @@

            Classes

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -178,7 +178,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -199,7 +199,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -219,7 +219,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -239,7 +239,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -263,7 +263,7 @@

            Classes

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -290,7 +290,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -312,7 +312,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -343,7 +343,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -371,7 +371,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -388,7 +388,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -410,7 +410,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -430,7 +430,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -449,7 +449,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -468,7 +468,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -484,7 +484,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -503,7 +503,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -522,7 +522,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -542,7 +542,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs) @@ -557,7 +557,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -578,7 +578,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -598,7 +598,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -618,7 +618,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.delete", params=kwargs) @@ -631,7 +631,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -648,7 +648,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.archive", params=kwargs) @@ -660,7 +660,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.unarchive", params=kwargs) @@ -673,7 +673,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return self.api_call("admin.conversations.rename", params=kwargs) @@ -691,7 +691,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Search for public or private channels in an Enterprise organization. - https://api.slack.com/methods/admin.conversations.search + https://docs.slack.dev/reference/methods/admin.conversations.search """ kwargs.update( { @@ -722,7 +722,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPrivate", params=kwargs) @@ -734,7 +734,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPublic", params=kwargs) @@ -747,7 +747,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -763,7 +763,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getConversationPrefs", params=kwargs) @@ -776,7 +776,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -796,7 +796,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -824,7 +824,7 @@

            Classes

            """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -851,7 +851,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -874,7 +874,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -897,7 +897,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -922,7 +922,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -946,7 +946,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -964,7 +964,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getCustomRetention", params=kwargs) @@ -976,7 +976,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.removeCustomRetention", params=kwargs) @@ -989,7 +989,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return self.api_call("admin.conversations.setCustomRetention", params=kwargs) @@ -1001,7 +1001,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return self.api_call("admin.conversations.bulkArchive", params=kwargs) @@ -1026,7 +1026,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -1044,7 +1044,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return self.api_call("admin.emoji.add", http_verb="GET", params=kwargs) @@ -1057,7 +1057,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs) @@ -1070,7 +1070,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.emoji.list", http_verb="GET", params=kwargs) @@ -1082,7 +1082,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs) @@ -1095,7 +1095,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs) @@ -1110,7 +1110,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -1133,7 +1133,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -1151,7 +1151,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -1175,7 +1175,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1200,7 +1200,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -1222,7 +1222,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1244,7 +1244,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -1264,7 +1264,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1286,7 +1286,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return self.api_call("admin.users.session.invalidate", params=kwargs) @@ -1301,7 +1301,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -1321,7 +1321,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -1338,7 +1338,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1356,7 +1356,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1378,7 +1378,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1395,7 +1395,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -1413,7 +1413,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.approve", params=kwargs) @@ -1427,7 +1427,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -1447,7 +1447,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -1466,7 +1466,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.deny", params=kwargs) @@ -1487,7 +1487,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -1508,7 +1508,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -1528,7 +1528,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.teams.list", params=kwargs) @@ -1542,7 +1542,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs) @@ -1554,7 +1554,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return self.api_call("admin.teams.settings.info", params=kwargs) @@ -1567,7 +1567,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return self.api_call("admin.teams.settings.setDescription", params=kwargs) @@ -1580,7 +1580,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return self.api_call("admin.teams.settings.setDiscoverability", params=kwargs) @@ -1593,7 +1593,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs) @@ -1606,7 +1606,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return self.api_call("admin.teams.settings.setName", params=kwargs) @@ -1620,7 +1620,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1638,7 +1638,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -1656,7 +1656,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -1675,7 +1675,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1695,7 +1695,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -1727,7 +1727,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -1751,7 +1751,7 @@

            Classes

            def admin_users_list( self, *, - team_id: str, + team_id: Optional[str] = None, include_deactivated_user_workspaces: Optional[bool] = None, is_active: Optional[bool] = None, cursor: Optional[str] = None, @@ -1759,7 +1759,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -1780,7 +1780,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.remove", params=kwargs) @@ -1793,7 +1793,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setAdmin", params=kwargs) @@ -1807,7 +1807,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setExpiration", params=kwargs) @@ -1820,7 +1820,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setOwner", params=kwargs) @@ -1833,7 +1833,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setRegular", params=kwargs) @@ -1854,7 +1854,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Search workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.search + https://docs.slack.dev/reference/methods/admin.workflows.search """ if collaborator_ids is not None: if isinstance(collaborator_ids, (list, tuple)): @@ -1884,7 +1884,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1905,7 +1905,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1925,7 +1925,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1944,7 +1944,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1959,7 +1959,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return self.api_call("api.test", params=kwargs) @@ -1972,7 +1972,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return self.api_call("apps.connections.open", http_verb="POST", params=kwargs) @@ -1987,7 +1987,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return self.api_call("apps.event.authorizations.list", params=kwargs) @@ -2000,7 +2000,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return self.api_call("apps.uninstall", params=kwargs) @@ -2012,7 +2012,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2027,7 +2027,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.delete", params=kwargs) @@ -2039,7 +2039,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.export", params=kwargs) @@ -2052,7 +2052,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2069,7 +2069,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2085,7 +2085,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return self.api_call("tooling.tokens.rotate", params=kwargs) @@ -2099,7 +2099,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return self.api_call("assistant.threads.setStatus", params=kwargs) @@ -2113,7 +2113,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return self.api_call("assistant.threads.setTitle", params=kwargs) @@ -2128,7 +2128,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -2142,7 +2142,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return self.api_call("auth.revoke", http_verb="GET", params=kwargs) @@ -2152,7 +2152,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return self.api_call("auth.test", params=kwargs) @@ -2164,7 +2164,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return self.api_call("auth.teams.list", params=kwargs) @@ -2182,7 +2182,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -2208,7 +2208,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -2228,7 +2228,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return self.api_call("bookmarks.list", http_verb="POST", params=kwargs) @@ -2241,7 +2241,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return self.api_call("bookmarks.remove", http_verb="POST", params=kwargs) @@ -2254,7 +2254,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return self.api_call("bots.info", http_verb="GET", params=kwargs) @@ -2273,7 +2273,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -2300,7 +2300,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return self.api_call("calls.end", http_verb="POST", params=kwargs) @@ -2312,7 +2312,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return self.api_call("calls.info", http_verb="POST", params=kwargs) @@ -2325,7 +2325,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2339,7 +2339,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2355,7 +2355,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -2375,7 +2375,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return self.api_call("canvases.create", json=kwargs) @@ -2388,7 +2388,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return self.api_call("canvases.edit", json=kwargs) @@ -2400,7 +2400,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return self.api_call("canvases.delete", params=kwargs) @@ -2415,7 +2415,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -2440,7 +2440,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -2463,7 +2463,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return self.api_call("canvases.sections.lookup", params=kwargs) @@ -2471,7 +2471,7 @@

            Classes

            # -------------------------- # Deprecated: channels.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def channels_archive( @@ -2650,7 +2650,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return self.api_call("chat.delete", params=kwargs) @@ -2664,7 +2664,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -2683,7 +2683,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a permalink URL for a specific extant message - https://api.slack.com/methods/chat.getPermalink + https://docs.slack.dev/reference/methods/chat.getPermalink """ kwargs.update({"channel": channel, "message_ts": message_ts}) return self.api_call("chat.getPermalink", http_verb="GET", params=kwargs) @@ -2696,7 +2696,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return self.api_call("chat.meMessage", params=kwargs) @@ -2716,10 +2716,11 @@

            Classes

            link_names: Optional[bool] = None, username: Optional[str] = None, parse: Optional[str] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> Union[Future, SlackResponse]: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -2735,11 +2736,12 @@

            Classes

            "link_names": link_names, "username": username, "parse": parse, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postEphemeral", kwargs) + _warn_if_message_text_content_is_missing("chat.postEphemeral", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postEphemeral", json=kwargs) @@ -2763,10 +2765,11 @@

            Classes

            username: Optional[str] = None, parse: Optional[str] = None, # none, full metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> Union[Future, SlackResponse]: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -2787,11 +2790,12 @@

            Classes

            "username": username, "parse": parse, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.postMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postMessage", json=kwargs) @@ -2800,7 +2804,7 @@

            Classes

            *, channel: str, post_at: Union[str, int], - text: str, + text: Optional[str] = None, as_user: Optional[bool] = None, attachments: Optional[Union[str, Sequence[Union[Dict, Attachment]]]] = None, blocks: Optional[Union[str, Sequence[Union[Dict, Block]]]] = None, @@ -2811,10 +2815,11 @@

            Classes

            unfurl_media: Optional[bool] = None, link_names: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> Union[Future, SlackResponse]: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -2831,11 +2836,12 @@

            Classes

            "unfurl_media": unfurl_media, "link_names": link_names, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.scheduleMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.scheduleMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.scheduleMessage", json=kwargs) @@ -2854,7 +2860,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -2888,10 +2894,11 @@

            Classes

            parse: Optional[str] = None, # none, full reply_broadcast: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> Union[Future, SlackResponse]: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -2905,6 +2912,7 @@

            Classes

            "parse": parse, "reply_broadcast": reply_broadcast, "metadata": metadata, + "markdown_text": markdown_text, } ) if isinstance(file_ids, (list, tuple)): @@ -2913,7 +2921,7 @@

            Classes

            kwargs.update({"file_ids": file_ids}) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.update", kwargs) + _warn_if_message_text_content_is_missing("chat.update", kwargs) # NOTE: intentionally using json over params for API methods using blocks/attachments return self.api_call("chat.update", json=kwargs) @@ -2929,7 +2937,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -2955,7 +2963,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -2979,7 +2987,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs) @@ -2991,7 +2999,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return self.api_call("conversations.archive", params=kwargs) @@ -3003,7 +3011,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return self.api_call("conversations.close", params=kwargs) @@ -3017,7 +3025,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return self.api_call("conversations.create", params=kwargs) @@ -3030,7 +3038,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs) @@ -3039,7 +3047,7 @@

            Classes

            self, *, action: str, channel: str, target_team: str, **kwargs ) -> Union[Future, SlackResponse]: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -3063,7 +3071,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -3087,7 +3095,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -3107,7 +3115,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -3130,7 +3138,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -3152,7 +3160,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return self.api_call("conversations.join", params=kwargs) @@ -3165,7 +3173,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return self.api_call("conversations.kick", params=kwargs) @@ -3177,7 +3185,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return self.api_call("conversations.leave", params=kwargs) @@ -3193,7 +3201,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -3219,7 +3227,7 @@

            Classes

            ) -> Union[Future, SlackResponse]: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return self.api_call("conversations.listConnectInvites", params=kwargs) @@ -3232,7 +3240,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return self.api_call("conversations.mark", params=kwargs) @@ -3246,7 +3254,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return self.api_call("conversations.members", http_verb="GET", params=kwargs) @@ -3260,7 +3268,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -3279,7 +3287,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return self.api_call("conversations.rename", params=kwargs) @@ -3298,7 +3306,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -3324,7 +3332,7 @@

            Classes

            **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -3345,7 +3353,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return self.api_call("conversations.requestSharedInvite.deny", params=kwargs) @@ -3363,7 +3371,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -3390,7 +3398,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return self.api_call("conversations.setPurpose", params=kwargs) @@ -3403,7 +3411,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return self.api_call("conversations.setTopic", params=kwargs) @@ -3415,7 +3423,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return self.api_call("conversations.unarchive", params=kwargs) @@ -3428,7 +3436,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return self.api_call("conversations.canvases.create", json=kwargs) @@ -3441,7 +3449,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -3453,7 +3461,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return self.api_call("dnd.endDnd", params=kwargs) @@ -3462,7 +3470,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return self.api_call("dnd.endSnooze", params=kwargs) @@ -3474,7 +3482,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("dnd.info", http_verb="GET", params=kwargs) @@ -3486,7 +3494,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs) @@ -3498,7 +3506,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -3513,7 +3521,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return self.api_call("emoji.list", http_verb="GET", params=kwargs) @@ -3526,7 +3534,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return self.api_call("files.comments.delete", params=kwargs) @@ -3538,7 +3546,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return self.api_call("files.delete", params=kwargs) @@ -3554,7 +3562,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -3582,7 +3590,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -3610,7 +3618,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.info", http_verb="GET", params=kwargs) @@ -3626,7 +3634,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -3651,7 +3659,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -3690,7 +3698,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -3725,7 +3733,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.remove", http_verb="POST", params=kwargs) @@ -3739,7 +3747,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -3757,7 +3765,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return self.api_call("files.revokePublicURL", params=kwargs) @@ -3769,7 +3777,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return self.api_call("files.sharedPublicURL", params=kwargs) @@ -3788,7 +3796,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -3841,12 +3849,12 @@

            Classes

            ) -> Union[Future, SlackResponse]: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -3932,7 +3940,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -3955,7 +3963,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -3978,7 +3986,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return self.api_call("functions.completeSuccess", params=kwargs) @@ -3991,7 +3999,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return self.api_call("functions.completeError", params=kwargs) @@ -3999,7 +4007,7 @@

            Classes

            # -------------------------- # Deprecated: groups.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def groups_archive( @@ -4180,7 +4188,7 @@

            Classes

            # -------------------------- # Deprecated: im.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def im_close( @@ -4256,7 +4264,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -4268,7 +4276,7 @@

            Classes

            # -------------------------- # Deprecated: mpim.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def mpim_close( @@ -4355,7 +4363,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4381,7 +4389,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4401,7 +4409,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return self.api_call("oauth.v2.exchange", params=kwargs) @@ -4417,7 +4425,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4438,7 +4446,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return self.api_call("openid.connect.userInfo", params=kwargs) @@ -4450,7 +4458,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.add", params=kwargs) @@ -4462,7 +4470,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return self.api_call("pins.list", http_verb="GET", params=kwargs) @@ -4475,7 +4483,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.remove", params=kwargs) @@ -4489,7 +4497,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return self.api_call("reactions.add", params=kwargs) @@ -4505,7 +4513,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -4531,7 +4539,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -4557,7 +4565,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -4581,7 +4589,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -4602,7 +4610,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.complete", params=kwargs) @@ -4615,7 +4623,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.delete", params=kwargs) @@ -4628,7 +4636,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.info", http_verb="GET", params=kwargs) @@ -4640,7 +4648,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return self.api_call("reminders.list", http_verb="GET", params=kwargs) @@ -4653,7 +4661,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return self.api_call("rtm.connect", http_verb="GET", params=kwargs) @@ -4671,7 +4679,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -4699,7 +4707,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -4727,7 +4735,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -4756,7 +4764,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -4782,7 +4790,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -4805,7 +4813,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -4828,7 +4836,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -4852,7 +4860,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -4874,7 +4882,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("team.billableInfo", http_verb="GET", params=kwargs) @@ -4884,7 +4892,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return self.api_call("team.billing.info", params=kwargs) @@ -4895,7 +4903,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -4917,7 +4925,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -4948,7 +4956,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return self.api_call("team.info", http_verb="GET", params=kwargs) @@ -4966,7 +4974,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -4988,7 +4996,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return self.api_call("team.profile.get", http_verb="GET", params=kwargs) @@ -4998,7 +5006,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return self.api_call("team.preferences.list", params=kwargs) @@ -5014,7 +5022,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -5040,7 +5048,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.disable", params=kwargs) @@ -5054,7 +5062,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.enable", params=kwargs) @@ -5069,7 +5077,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -5094,7 +5102,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -5121,7 +5129,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -5142,7 +5150,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -5169,7 +5177,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -5191,7 +5199,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return self.api_call("users.deletePhoto", http_verb="GET", params=kwargs) @@ -5202,7 +5210,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return self.api_call("users.getPresence", http_verb="GET", params=kwargs) @@ -5212,7 +5220,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return self.api_call("users.identity", http_verb="GET", params=kwargs) @@ -5224,7 +5232,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return self.api_call("users.info", http_verb="GET", params=kwargs) @@ -5239,7 +5247,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -5258,7 +5266,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs) @@ -5273,7 +5281,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return self.api_call("users.setPhoto", files={"image": image}, data=kwargs) @@ -5285,7 +5293,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return self.api_call("users.setPresence", params=kwargs) @@ -5296,7 +5304,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return self.api_call("users.discoverableContacts.lookup", params=kwargs) @@ -5309,7 +5317,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return self.api_call("users.profile.get", http_verb="GET", params=kwargs) @@ -5324,7 +5332,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -5347,8 +5355,8 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5371,9 +5379,9 @@

            Classes

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5396,9 +5404,9 @@

            Classes

            """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -5425,8 +5433,8 @@

            Classes

            ) -> Union[Future, SlackResponse]: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -5437,6 +5445,72 @@

            Classes

            # NOTE: Intentionally using json for the "view" parameter return self.api_call("views.publish", json=kwargs) + def workflows_featured_add( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> Union[Future, SlackResponse]: + """Add featured workflows to a channel. + https://docs.slack.dev/reference/methods/workflows.featured.add + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.add", params=kwargs) + + def workflows_featured_list( + self, + *, + channel_ids: Union[str, Sequence[str]], + **kwargs, + ) -> Union[Future, SlackResponse]: + """List the featured workflows for specified channels. + https://docs.slack.dev/reference/methods/workflows.featured.list + """ + if isinstance(channel_ids, (list, tuple)): + kwargs.update({"channel_ids": ",".join(channel_ids)}) + else: + kwargs.update({"channel_ids": channel_ids}) + return self.api_call("workflows.featured.list", params=kwargs) + + def workflows_featured_remove( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> Union[Future, SlackResponse]: + """Remove featured workflows from a channel. + https://docs.slack.dev/reference/methods/workflows.featured.remove + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.remove", params=kwargs) + + def workflows_featured_set( + self, + *, + channel_id: str, + trigger_ids: Union[str, Sequence[str]], + **kwargs, + ) -> Union[Future, SlackResponse]: + """Set featured workflows for a channel. + https://docs.slack.dev/reference/methods/workflows.featured.set + """ + kwargs.update({"channel_id": channel_id}) + if isinstance(trigger_ids, (list, tuple)): + kwargs.update({"trigger_ids": ",".join(trigger_ids)}) + else: + kwargs.update({"trigger_ids": trigger_ids}) + return self.api_call("workflows.featured.set", params=kwargs) + def workflows_stepCompleted( self, *, @@ -5445,7 +5519,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -5462,7 +5536,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -5483,7 +5557,7 @@

            Classes

            **kwargs, ) -> Union[Future, SlackResponse]: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: @@ -5495,7 +5569,7 @@

            Classes

            return self.api_call("workflows.updateStep", json=kwargs)

            A WebClient allows apps to communicate with the Slack Platform's Web API.

            -

            https://api.slack.com/methods

            +

            https://docs.slack.dev/reference/methods

            The Slack Web API is an interface for querying information from and enacting change in a Slack workspace.

            This client handles constructing and sending HTTP requests to Slack @@ -5575,7 +5649,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -5585,7 +5659,7 @@

            Methods

            return self.api_call("admin.analytics.getFile", params=kwargs)

            Retrieve analytics data for a given date, presented as a compressed JSON file -https://api.slack.com/methods/admin.analytics.getFile

            +https://docs.slack.dev/reference/methods/admin.analytics.getFile

            def admin_apps_activities_list(self,
            *,
            app_id: str | None = None,
            component_id: str | None = None,
            component_type: str | None = None,
            log_event_type: str | None = None,
            max_date_created: int | None = None,
            min_date_created: int | None = None,
            min_log_level: str | None = None,
            sort_direction: str | None = None,
            source: str | None = None,
            team_id: str | None = None,
            trace_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5614,7 +5688,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -5636,7 +5710,7 @@

            Methods

            return self.api_call("admin.apps.activities.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.apps.activities.list

            def admin_apps_approve(self,
            *,
            app_id: str | None = None,
            request_id: str | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5659,7 +5733,7 @@

            Methods

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -5680,7 +5754,7 @@

            Methods

            Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. -https://api.slack.com/methods/admin.apps.approve

            +https://docs.slack.dev/reference/methods/admin.apps.approve

            def admin_apps_approved_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5700,7 +5774,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -5713,7 +5787,7 @@

            Methods

            return self.api_call("admin.apps.approved.list", http_verb="GET", params=kwargs)

            List approved apps for an org or workspace. -https://api.slack.com/methods/admin.apps.approved.list

            +https://docs.slack.dev/reference/methods/admin.apps.approved.list

            def admin_apps_clearResolution(self,
            *,
            app_id: str,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5732,7 +5806,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -5744,7 +5818,7 @@

            Methods

            return self.api_call("admin.apps.clearResolution", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.apps.clearResolution

            def admin_apps_config_lookup(self, *, app_ids: str | Sequence[str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -5761,7 +5835,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -5770,7 +5844,7 @@

            Methods

            return self.api_call("admin.apps.config.lookup", params=kwargs)

            Look up the app config for connectors by their IDs -https://api.slack.com/methods/admin.apps.config.lookup

            +https://docs.slack.dev/reference/methods/admin.apps.config.lookup

            def admin_apps_config_set(self,
            *,
            app_id: str,
            domain_restrictions: Dict[str, Any] | None = None,
            workflow_auth_strategy: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5789,7 +5863,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -5802,7 +5876,7 @@

            Methods

            return self.api_call("admin.apps.config.set", params=kwargs)

            Set the app config for a connector -https://api.slack.com/methods/admin.apps.config.set

            +https://docs.slack.dev/reference/methods/admin.apps.config.set

            def admin_apps_requests_cancel(self,
            *,
            request_id: str,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5821,7 +5895,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -5833,7 +5907,7 @@

            Methods

            return self.api_call("admin.apps.requests.cancel", http_verb="POST", params=kwargs)

            List app requests for a team/workspace. -https://api.slack.com/methods/admin.apps.requests.cancel

            +https://docs.slack.dev/reference/methods/admin.apps.requests.cancel

            def admin_apps_requests_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5852,7 +5926,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -5864,7 +5938,7 @@

            Methods

            return self.api_call("admin.apps.requests.list", http_verb="GET", params=kwargs)

            List app requests for a team/workspace. -https://api.slack.com/methods/admin.apps.requests.list

            +https://docs.slack.dev/reference/methods/admin.apps.requests.list

            def admin_apps_restrict(self,
            *,
            app_id: str | None = None,
            request_id: str | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5887,7 +5961,7 @@

            Methods

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -5908,7 +5982,7 @@

            Methods

            Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. -https://api.slack.com/methods/admin.apps.restrict

            +https://docs.slack.dev/reference/methods/admin.apps.restrict

            def admin_apps_restricted_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            enterprise_id: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5928,7 +6002,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -5941,7 +6015,7 @@

            Methods

            return self.api_call("admin.apps.restricted.list", http_verb="GET", params=kwargs)

            List restricted apps for an org or workspace. -https://api.slack.com/methods/admin.apps.restricted.list

            +https://docs.slack.dev/reference/methods/admin.apps.restricted.list

            def admin_apps_uninstall(self,
            *,
            app_id: str,
            enterprise_id: str | None = None,
            team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5961,7 +6035,7 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -5975,7 +6049,7 @@

            Methods

            Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. -https://api.slack.com/methods/admin.apps.uninstall

            +https://docs.slack.dev/reference/methods/admin.apps.uninstall

            def admin_auth_policy_assignEntities(self,
            *,
            entity_ids: str | Sequence[str],
            policy_name: str,
            entity_type: str,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -5994,7 +6068,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -6005,7 +6079,7 @@

            Methods

            return self.api_call("admin.auth.policy.assignEntities", http_verb="POST", params=kwargs)

            Assign entities to a particular authentication policy. -https://api.slack.com/methods/admin.auth.policy.assignEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities

            def admin_auth_policy_getEntities(self,
            *,
            policy_name: str,
            cursor: str | None = None,
            entity_type: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6025,7 +6099,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -6037,7 +6111,7 @@

            Methods

            return self.api_call("admin.auth.policy.getEntities", http_verb="POST", params=kwargs)

            Fetch all the entities assigned to a particular authentication policy by name. -https://api.slack.com/methods/admin.auth.policy.getEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities

            def admin_auth_policy_removeEntities(self,
            *,
            entity_ids: str | Sequence[str],
            policy_name: str,
            entity_type: str,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6056,7 +6130,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -6067,7 +6141,7 @@

            Methods

            return self.api_call("admin.auth.policy.removeEntities", http_verb="POST", params=kwargs)

            Remove specified entities from a specified authentication policy. -https://api.slack.com/methods/admin.auth.policy.removeEntities

            +https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities

            def admin_barriers_create(self,
            *,
            barriered_from_usergroup_ids: str | Sequence[str],
            primary_usergroup_id: str,
            restricted_subjects: str | Sequence[str],
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6086,7 +6160,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -6100,7 +6174,7 @@

            Methods

            return self.api_call("admin.barriers.create", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.barriers.create

            def admin_barriers_delete(self, *, barrier_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6117,13 +6191,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs)

            Delete an existing Information Barrier -https://api.slack.com/methods/admin.barriers.delete

            +https://docs.slack.dev/reference/methods/admin.barriers.delete

            def admin_barriers_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6141,7 +6215,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -6151,7 +6225,7 @@

            Methods

            return self.api_call("admin.barriers.list", http_verb="GET", params=kwargs)

            Get all Information Barriers for your organization -https://api.slack.com/methods/admin.barriers.list

            +https://docs.slack.dev/reference/methods/admin.barriers.list

            def admin_barriers_update(self,
            *,
            barrier_id: str,
            barriered_from_usergroup_ids: str | Sequence[str],
            primary_usergroup_id: str,
            restricted_subjects: str | Sequence[str],
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6171,7 +6245,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -6185,7 +6259,7 @@

            Methods

            return self.api_call("admin.barriers.update", http_verb="POST", params=kwargs)

            Update an existing Information Barrier -https://api.slack.com/methods/admin.barriers.update

            +https://docs.slack.dev/reference/methods/admin.barriers.update

            def admin_conversations_archive(self, *, channel_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6202,13 +6276,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.archive", params=kwargs)

            Archive a public or private channel. -https://api.slack.com/methods/admin.conversations.archive

            +https://docs.slack.dev/reference/methods/admin.conversations.archive

            def admin_conversations_bulkArchive(self, *, channel_ids: str | Sequence[str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6225,13 +6299,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return self.api_call("admin.conversations.bulkArchive", params=kwargs)

            Archive public or private channels in bulk. -https://api.slack.com/methods/admin.conversations.bulkArchive

            +https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive

            def admin_conversations_bulkDelete(self, *, channel_ids: str | Sequence[str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6272,7 +6346,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -6283,7 +6357,7 @@

            Methods

            return self.api_call("admin.conversations.bulkMove", params=kwargs)

            Move public or private channels in bulk. -https://api.slack.com/methods/admin.conversations.bulkMove

            +https://docs.slack.dev/reference/methods/admin.conversations.bulkMove

            def admin_conversations_convertToPrivate(self, *, channel_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6300,13 +6374,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPrivate", params=kwargs)

            Convert a public channel to a private channel. -https://api.slack.com/methods/admin.conversations.convertToPrivate

            +https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate

            def admin_conversations_convertToPublic(self, *, channel_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6323,13 +6397,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPublic", params=kwargs)

            Convert a privte channel to a public channel. -https://api.slack.com/methods/admin.conversations.convertToPublic

            +https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic

            def admin_conversations_create(self,
            *,
            is_private: bool,
            name: str,
            description: str | None = None,
            org_wide: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6350,7 +6424,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -6364,7 +6438,7 @@

            Methods

            return self.api_call("admin.conversations.create", params=kwargs)

            Create a public or private channel-based conversation. -https://api.slack.com/methods/admin.conversations.create

            +https://docs.slack.dev/reference/methods/admin.conversations.create

            def admin_conversations_createForObjects(self,
            *,
            object_id: str,
            salesforce_org_id: str,
            invite_object_team: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6383,7 +6457,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -6391,7 +6465,7 @@

            Methods

            return self.api_call("admin.conversations.createForObjects", params=kwargs)

            Create a Salesforce channel for the corresponding object provided. -https://api.slack.com/methods/admin.conversations.createForObjects

            +https://docs.slack.dev/reference/methods/admin.conversations.createForObjects

            def admin_conversations_delete(self, *, channel_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6408,13 +6482,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.delete

            def admin_conversations_disconnectShared(self,
            *,
            channel_id: str,
            leaving_team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6432,7 +6506,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -6442,7 +6516,7 @@

            Methods

            return self.api_call("admin.conversations.disconnectShared", params=kwargs)

            Disconnect a connected channel from one or more workspaces. -https://api.slack.com/methods/admin.conversations.disconnectShared

            +https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared

            def admin_conversations_ekm_listOriginalConnectedChannelInfo(self,
            *,
            channel_ids: str | Sequence[str] | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            team_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6464,7 +6538,7 @@

            Methods

            """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -6485,7 +6559,7 @@

            Methods

            List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. -https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo

            +https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo

            def admin_conversations_getConversationPrefs(self, *, channel_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6502,13 +6576,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getConversationPrefs", params=kwargs)

            Get conversation preferences for a public or private channel. -https://api.slack.com/methods/admin.conversations.getConversationPrefs

            +https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs

            def admin_conversations_getCustomRetention(self, *, channel_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6525,13 +6599,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention

            def admin_conversations_getTeams(self,
            *,
            channel_id: str,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6550,7 +6624,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -6562,7 +6636,7 @@

            Methods

            return self.api_call("admin.conversations.getTeams", params=kwargs)

            Set the workspaces in an Enterprise grid org that connect to a channel. -https://api.slack.com/methods/admin.conversations.getTeams

            +https://docs.slack.dev/reference/methods/admin.conversations.getTeams

            def admin_conversations_invite(self, *, channel_id: str, user_ids: str | Sequence[str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6580,7 +6654,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -6591,7 +6665,7 @@

            Methods

            return self.api_call("admin.conversations.invite", params=kwargs)

            Invite a user to a public or private channel. -https://api.slack.com/methods/admin.conversations.invite

            +https://docs.slack.dev/reference/methods/admin.conversations.invite

            def admin_conversations_linkObjects(self, *, channel: str, record_id: str, salesforce_org_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6610,7 +6684,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -6622,7 +6696,7 @@

            Methods

            return self.api_call("admin.conversations.linkObjects", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.linkObjects

            def admin_conversations_lookup(self,
            *,
            last_message_activity_before: int,
            team_ids: str | Sequence[str],
            cursor: str | None = None,
            limit: int | None = None,
            max_member_count: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6643,7 +6717,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -6660,7 +6734,7 @@

            Methods

            return self.api_call("admin.conversations.lookup", params=kwargs)

            Returns channels on the given team using the filters. -https://api.slack.com/methods/admin.conversations.lookup

            +https://docs.slack.dev/reference/methods/admin.conversations.lookup

            def admin_conversations_removeCustomRetention(self, *, channel_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6677,13 +6751,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.removeCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention

            def admin_conversations_rename(self, *, channel_id: str, name: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6701,13 +6775,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return self.api_call("admin.conversations.rename", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.rename

            def admin_conversations_restrictAccess_addGroup(self, *, channel_id: str, group_id: str, team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6726,7 +6800,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -6742,7 +6816,7 @@

            Methods

            )

            Add an allowlist of IDP groups for accessing a channel. -https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup

            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup

            def admin_conversations_restrictAccess_listGroups(self, *, channel_id: str, team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6760,7 +6834,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -6775,7 +6849,7 @@

            Methods

            )
            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups

            def admin_conversations_restrictAccess_removeGroup(self, *, channel_id: str, group_id: str, team_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6794,7 +6868,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -6810,7 +6884,7 @@

            Methods

            )

            Remove a linked IDP group linked from a private channel. -https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup

            +https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup

            def admin_conversations_setConversationPrefs(self, *, channel_id: str, prefs: str | Dict[str, str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6876,7 +6950,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -6886,7 +6960,7 @@

            Methods

            return self.api_call("admin.conversations.setConversationPrefs", params=kwargs)

            Set the posting permissions for a public or private channel. -https://api.slack.com/methods/admin.conversations.setConversationPrefs

            +https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs

            def admin_conversations_setCustomRetention(self, *, channel_id: str, duration_days: int, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6904,13 +6978,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return self.api_call("admin.conversations.setCustomRetention", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention

            def admin_conversations_setTeams(self,
            *,
            channel_id: str,
            org_channel: bool | None = None,
            target_team_ids: str | Sequence[str] | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -6930,7 +7004,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -6946,7 +7020,7 @@

            Methods

            return self.api_call("admin.conversations.setTeams", params=kwargs)

            Set the workspaces in an Enterprise grid org that connect to a public or private channel. -https://api.slack.com/methods/admin.conversations.setTeams

            +https://docs.slack.dev/reference/methods/admin.conversations.setTeams

            def admin_conversations_unarchive(self, *, channel_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6963,13 +7037,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.unarchive", params=kwargs)

            Unarchive a public or private channel. -https://api.slack.com/methods/admin.conversations.archive

            +https://docs.slack.dev/reference/methods/admin.conversations.archive

            def admin_conversations_unlinkObjects(self, *, channel: str, new_name: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -6987,7 +7061,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -6998,7 +7072,7 @@

            Methods

            return self.api_call("admin.conversations.unlinkObjects", params=kwargs)

            Unlink a Salesforce record from a channel. -https://api.slack.com/methods/admin.conversations.unlinkObjects

            +https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects

            def admin_emoji_add(self, *, name: str, url: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7016,13 +7090,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return self.api_call("admin.emoji.add", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.add

            def admin_emoji_addAlias(self, *, alias_for: str, name: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7040,13 +7114,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.addAlias

            def admin_emoji_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7064,13 +7138,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.emoji.list", http_verb="GET", params=kwargs)

            List emoji for an Enterprise Grid organization. -https://api.slack.com/methods/admin.emoji.list

            +https://docs.slack.dev/reference/methods/admin.emoji.list

            def admin_emoji_remove(self, *, name: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7087,13 +7161,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs)

            Remove an emoji across an Enterprise Grid organization. -https://api.slack.com/methods/admin.emoji.remove

            +https://docs.slack.dev/reference/methods/admin.emoji.remove

            def admin_emoji_rename(self, *, name: str, new_name: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7111,13 +7185,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.emoji.rename

            def admin_functions_list(self,
            *,
            app_ids: str | Sequence[str],
            team_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7137,7 +7211,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -7153,7 +7227,7 @@

            Methods

            return self.api_call("admin.functions.list", params=kwargs)

            Look up functions by a set of apps -https://api.slack.com/methods/admin.functions.list

            +https://docs.slack.dev/reference/methods/admin.functions.list

            def admin_functions_permissions_lookup(self, *, function_ids: str | Sequence[str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7171,7 +7245,7 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -7181,7 +7255,7 @@

            Methods

            Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. -https://api.slack.com/methods/admin.functions.permissions.lookup

            +https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup

            def admin_functions_permissions_set(self,
            *,
            function_id: str,
            visibility: str,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7201,7 +7275,7 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -7218,7 +7292,7 @@

            Methods

            Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities -https://api.slack.com/methods/admin.functions.permissions.set

            +https://docs.slack.dev/reference/methods/admin.functions.permissions.set

            def admin_inviteRequests_approve(self, *, invite_request_id: str, team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7236,13 +7310,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.approve", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.inviteRequests.approve

            def admin_inviteRequests_approved_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7261,7 +7335,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -7273,7 +7347,7 @@

            Methods

            return self.api_call("admin.inviteRequests.approved.list", params=kwargs)

            List all approved workspace invite requests. -https://api.slack.com/methods/admin.inviteRequests.approved.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list

            def admin_inviteRequests_denied_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7292,7 +7366,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -7304,7 +7378,7 @@

            Methods

            return self.api_call("admin.inviteRequests.denied.list", params=kwargs)

            List all denied workspace invite requests. -https://api.slack.com/methods/admin.inviteRequests.denied.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list

            def admin_inviteRequests_deny(self, *, invite_request_id: str, team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7322,13 +7396,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.deny", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.inviteRequests.deny

            def admin_inviteRequests_list(self, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7364,7 +7438,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -7378,7 +7452,7 @@

            Methods

            return self.api_call("admin.roles.addAssignments", params=kwargs)

            Adds members to the specified role with the specified scopes -https://api.slack.com/methods/admin.roles.addAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.addAssignments

            def admin_roles_listAssignments(self,
            *,
            role_ids: str | Sequence[str] | None = None,
            entity_ids: str | Sequence[str] | None = None,
            cursor: str | None = None,
            limit: str | int | None = None,
            sort_dir: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7400,7 +7474,7 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -7415,7 +7489,7 @@

            Methods

            Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities -https://api.slack.com/methods/admin.roles.listAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.listAssignments

            def admin_roles_removeAssignments(self,
            *,
            role_id: str,
            entity_ids: str | Sequence[str],
            user_ids: str | Sequence[str],
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7434,7 +7508,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -7448,7 +7522,7 @@

            Methods

            return self.api_call("admin.roles.removeAssignments", params=kwargs)

            Removes a set of users from a role for the given scopes and entities -https://api.slack.com/methods/admin.roles.removeAssignments

            +https://docs.slack.dev/reference/methods/admin.roles.removeAssignments

            def admin_teams_admins_list(self, *, team_id: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7467,7 +7541,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -7479,7 +7553,7 @@

            Methods

            return self.api_call("admin.teams.admins.list", http_verb="GET", params=kwargs)

            List all of the admins on a given workspace. -https://api.slack.com/methods/admin.inviteRequests.list

            +https://docs.slack.dev/reference/methods/admin.inviteRequests.list

            def admin_teams_create(self,
            *,
            team_domain: str,
            team_name: str,
            team_description: str | None = None,
            team_discoverability: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7499,7 +7573,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -7512,7 +7586,7 @@

            Methods

            return self.api_call("admin.teams.create", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.create

            def admin_teams_list(self, *, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7530,13 +7604,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.teams.list", params=kwargs)

            List all teams on an Enterprise organization. -https://api.slack.com/methods/admin.teams.list

            +https://docs.slack.dev/reference/methods/admin.teams.list

            def admin_teams_owners_list(self, *, team_id: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7555,13 +7629,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs)

            List all of the admins on a given workspace. -https://api.slack.com/methods/admin.teams.owners.list

            +https://docs.slack.dev/reference/methods/admin.teams.owners.list

            def admin_teams_settings_info(self, *, team_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7578,13 +7652,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return self.api_call("admin.teams.settings.info", params=kwargs)

            Fetch information about settings in a workspace -https://api.slack.com/methods/admin.teams.settings.info

            +https://docs.slack.dev/reference/methods/admin.teams.settings.info

            def admin_teams_settings_setDefaultChannels(self, *, team_id: str, channel_ids: str | Sequence[str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7602,7 +7676,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -7612,7 +7686,7 @@

            Methods

            return self.api_call("admin.teams.settings.setDefaultChannels", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels

            def admin_teams_settings_setDescription(self, *, team_id: str, description: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7630,13 +7704,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return self.api_call("admin.teams.settings.setDescription", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription

            def admin_teams_settings_setDiscoverability(self, *, team_id: str, discoverability: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7654,13 +7728,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return self.api_call("admin.teams.settings.setDiscoverability", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability

            def admin_teams_settings_setIcon(self, *, team_id: str, image_url: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7678,13 +7752,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon

            def admin_teams_settings_setName(self, *, team_id: str, name: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7702,13 +7776,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return self.api_call("admin.teams.settings.setName", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.teams.settings.setName

            def admin_usergroups_addChannels(self,
            *,
            channel_ids: str | Sequence[str],
            usergroup_id: str,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7727,7 +7801,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -7737,7 +7811,7 @@

            Methods

            return self.api_call("admin.usergroups.addChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.addChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.addChannels

            def admin_usergroups_addTeams(self,
            *,
            usergroup_id: str,
            team_ids: str | Sequence[str],
            auto_provision: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7756,7 +7830,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -7766,7 +7840,7 @@

            Methods

            return self.api_call("admin.usergroups.addTeams", params=kwargs)

            Associate one or more default workspaces with an organization-wide IDP group. -https://api.slack.com/methods/admin.usergroups.addTeams

            +https://docs.slack.dev/reference/methods/admin.usergroups.addTeams

            def admin_usergroups_listChannels(self,
            *,
            usergroup_id: str,
            include_num_members: bool | None = None,
            team_id: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7785,7 +7859,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -7797,7 +7871,7 @@

            Methods

            return self.api_call("admin.usergroups.listChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.listChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.listChannels

            def admin_usergroups_removeChannels(self, *, usergroup_id: str, channel_ids: str | Sequence[str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7815,7 +7889,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -7825,7 +7899,7 @@

            Methods

            return self.api_call("admin.usergroups.removeChannels", params=kwargs)

            Add one or more default channels to an IDP group. -https://api.slack.com/methods/admin.usergroups.removeChannels

            +https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels

            def admin_users_assign(self,
            *,
            team_id: str,
            user_id: str,
            channel_ids: str | Sequence[str] | None = None,
            is_restricted: bool | None = None,
            is_ultra_restricted: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7846,7 +7920,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -7863,7 +7937,7 @@

            Methods

            return self.api_call("admin.users.assign", params=kwargs)

            Add an Enterprise user to a workspace. -https://api.slack.com/methods/admin.users.assign

            +https://docs.slack.dev/reference/methods/admin.users.assign

            def admin_users_invite(self,
            *,
            team_id: str,
            email: str,
            channel_ids: str | Sequence[str],
            custom_message: str | None = None,
            email_password_policy_enabled: bool | None = None,
            guest_expiration_ts: str | float | None = None,
            is_restricted: bool | None = None,
            is_ultra_restricted: bool | None = None,
            real_name: str | None = None,
            resend: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7889,7 +7963,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -7911,10 +7985,10 @@

            Methods

            return self.api_call("admin.users.invite", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.users.invite

            -def admin_users_list(self,
            *,
            team_id: str,
            include_deactivated_user_workspaces: bool | None = None,
            is_active: bool | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            +def admin_users_list(self,
            *,
            team_id: str | None = None,
            include_deactivated_user_workspaces: bool | None = None,
            is_active: bool | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -7924,7 +7998,7 @@

            Methods

            def admin_users_list(
                 self,
                 *,
            -    team_id: str,
            +    team_id: Optional[str] = None,
                 include_deactivated_user_workspaces: Optional[bool] = None,
                 is_active: Optional[bool] = None,
                 cursor: Optional[str] = None,
            @@ -7932,7 +8006,7 @@ 

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -7946,7 +8020,7 @@

            Methods

            return self.api_call("admin.users.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/admin.users.list

            def admin_users_remove(self, *, team_id: str, user_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7964,13 +8038,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.remove", params=kwargs)

            Remove a user from a workspace. -https://api.slack.com/methods/admin.users.remove

            +https://docs.slack.dev/reference/methods/admin.users.remove

            def admin_users_session_clearSettings(self, *, user_ids: str | Sequence[str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -7988,7 +8062,7 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -7998,7 +8072,7 @@

            Methods

            Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. -https://api.slack.com/methods/admin.users.session.clearSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.clearSettings

            def admin_users_session_getSettings(self, *, user_ids: str | Sequence[str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8016,7 +8090,7 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8026,7 +8100,7 @@

            Methods

            Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. -https://api.slack.com/methods/admin.users.session.getSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.getSettings

            def admin_users_session_invalidate(self, *, session_id: str, team_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8044,13 +8118,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return self.api_call("admin.users.session.invalidate", params=kwargs)

            Invalidate a single session for a user by session_id. -https://api.slack.com/methods/admin.users.session.invalidate

            +https://docs.slack.dev/reference/methods/admin.users.session.invalidate

            def admin_users_session_list(self,
            *,
            cursor: str | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            user_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8070,7 +8144,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -8083,7 +8157,7 @@

            Methods

            return self.api_call("admin.users.session.list", params=kwargs)

            Lists all active user sessions for an organization -https://api.slack.com/methods/admin.users.session.list

            +https://docs.slack.dev/reference/methods/admin.users.session.list

            def admin_users_session_reset(self,
            *,
            user_id: str,
            mobile_only: bool | None = None,
            web_only: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8102,7 +8176,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -8114,7 +8188,7 @@

            Methods

            return self.api_call("admin.users.session.reset", params=kwargs)

            Wipes all valid sessions on all devices for a given user. -https://api.slack.com/methods/admin.users.session.reset

            +https://docs.slack.dev/reference/methods/admin.users.session.reset

            def admin_users_session_resetBulk(self,
            *,
            user_ids: str | Sequence[str],
            mobile_only: bool | None = None,
            web_only: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8133,7 +8207,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8148,7 +8222,7 @@

            Methods

            return self.api_call("admin.users.session.resetBulk", params=kwargs)

            Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users -https://api.slack.com/methods/admin.users.session.resetBulk

            +https://docs.slack.dev/reference/methods/admin.users.session.resetBulk

            def admin_users_session_setSettings(self,
            *,
            user_ids: str | Sequence[str],
            desktop_app_browser_quit: bool | None = None,
            duration: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8168,7 +8242,7 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -8184,7 +8258,7 @@

            Methods

            Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. -https://api.slack.com/methods/admin.users.session.setSettings

            +https://docs.slack.dev/reference/methods/admin.users.session.setSettings

            def admin_users_setAdmin(self, *, team_id: str, user_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8202,13 +8276,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setAdmin", params=kwargs)

            Set an existing guest, regular user, or owner to be an admin user. -https://api.slack.com/methods/admin.users.setAdmin

            +https://docs.slack.dev/reference/methods/admin.users.setAdmin

            def admin_users_setExpiration(self, *, expiration_ts: int, user_id: str, team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8227,13 +8301,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setExpiration", params=kwargs)

            Set an expiration for a guest user. -https://api.slack.com/methods/admin.users.setExpiration

            +https://docs.slack.dev/reference/methods/admin.users.setExpiration

            def admin_users_setOwner(self, *, team_id: str, user_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8251,13 +8325,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setOwner", params=kwargs)

            Set an existing guest, regular user, or admin user to be a workspace owner. -https://api.slack.com/methods/admin.users.setOwner

            +https://docs.slack.dev/reference/methods/admin.users.setOwner

            def admin_users_setRegular(self, *, team_id: str, user_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8275,13 +8349,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setRegular", params=kwargs)

            Set an existing guest user, admin user, or owner to be a regular user. -https://api.slack.com/methods/admin.users.setRegular

            +https://docs.slack.dev/reference/methods/admin.users.setRegular

            def admin_users_unsupportedVersions_export(self,
            *,
            date_end_of_support: str | int | None = None,
            date_sessions_started: str | int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8300,7 +8374,7 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -8312,7 +8386,7 @@

            Methods

            Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. -https://api.slack.com/methods/admin.users.unsupportedVersions.export

            +https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export

            def admin_workflows_collaborators_add(self,
            *,
            collaborator_ids: str | Sequence[str],
            workflow_ids: str | Sequence[str],
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8330,7 +8404,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -8343,7 +8417,7 @@

            Methods

            return self.api_call("admin.workflows.collaborators.add", params=kwargs)

            Add collaborators to workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.collaborators.add

            +https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add

            def admin_workflows_collaborators_remove(self,
            *,
            collaborator_ids: str | Sequence[str],
            workflow_ids: str | Sequence[str],
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8361,7 +8435,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -8374,7 +8448,7 @@

            Methods

            return self.api_call("admin.workflows.collaborators.remove", params=kwargs)

            Remove collaborators from workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.collaborators.remove

            +https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove

            def admin_workflows_permissions_lookup(self,
            *,
            workflow_ids: str | Sequence[str],
            max_workflow_triggers: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8392,7 +8466,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -8406,7 +8480,7 @@

            Methods

            return self.api_call("admin.workflows.permissions.lookup", params=kwargs)

            Look up the permissions for a set of workflows -https://api.slack.com/methods/admin.workflows.permissions.lookup

            +https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup

            def admin_workflows_unpublish(self, *, workflow_ids: str | Sequence[str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8472,7 +8546,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -8481,7 +8555,7 @@

            Methods

            return self.api_call("admin.workflows.unpublish", params=kwargs)

            Unpublish workflows within the team or enterprise -https://api.slack.com/methods/admin.workflows.unpublish

            +https://docs.slack.dev/reference/methods/admin.workflows.unpublish

            def api_test(self, *, error: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8498,13 +8572,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return self.api_call("api.test", params=kwargs)

            Checks API calling code. -https://api.slack.com/methods/api.test

            +https://docs.slack.dev/reference/methods/api.test

            def apps_connections_open(self, *, app_token: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8522,14 +8596,14 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return self.api_call("apps.connections.open", http_verb="POST", params=kwargs)

            Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads -https://api.slack.com/methods/apps.connections.open

            +https://docs.slack.dev/reference/methods/apps.connections.open

            def apps_event_authorizations_list(self,
            *,
            event_context: str,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8549,14 +8623,14 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return self.api_call("apps.event.authorizations.list", params=kwargs)

            Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. -https://api.slack.com/methods/apps.event.authorizations.list

            +https://docs.slack.dev/reference/methods/apps.event.authorizations.list

            def apps_manifest_create(self, *, manifest: str | Dict[str, Any], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8573,7 +8647,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8582,7 +8656,7 @@

            Methods

            return self.api_call("apps.manifest.create", params=kwargs)

            Create an app from an app manifest -https://api.slack.com/methods/apps.manifest.create

            +https://docs.slack.dev/reference/methods/apps.manifest.create

            def apps_manifest_delete(self, *, app_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8599,13 +8673,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.delete", params=kwargs)

            Permanently deletes an app created through app manifests -https://api.slack.com/methods/apps.manifest.delete

            +https://docs.slack.dev/reference/methods/apps.manifest.delete

            def apps_manifest_export(self, *, app_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8622,13 +8696,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.export", params=kwargs)

            Export an app manifest from an existing app -https://api.slack.com/methods/apps.manifest.export

            +https://docs.slack.dev/reference/methods/apps.manifest.export

            def apps_manifest_update(self, *, app_id: str, manifest: str | Dict[str, Any], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8646,7 +8720,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8656,7 +8730,7 @@

            Methods

            return self.api_call("apps.manifest.update", params=kwargs)

            Update an app from an app manifest -https://api.slack.com/methods/apps.manifest.update

            +https://docs.slack.dev/reference/methods/apps.manifest.update

            def apps_manifest_validate(self, *, manifest: str | Dict[str, Any], app_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8674,7 +8748,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -8684,7 +8758,7 @@

            Methods

            return self.api_call("apps.manifest.validate", params=kwargs)
            +https://docs.slack.dev/reference/methods/apps.manifest.validate

            def apps_uninstall(self, *, client_id: str, client_secret: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8702,13 +8776,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return self.api_call("apps.uninstall", params=kwargs)

            Uninstalls your app from a workspace. -https://api.slack.com/methods/apps.uninstall

            +https://docs.slack.dev/reference/methods/apps.uninstall

            def assistant_threads_setStatus(self, *, channel_id: str, thread_ts: str, status: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8727,13 +8801,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return self.api_call("assistant.threads.setStatus", params=kwargs)
            +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) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8753,7 +8827,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -8761,7 +8835,7 @@

            Methods

            return self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
            +https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts

            def assistant_threads_setTitle(self, *, channel_id: str, thread_ts: str, title: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8780,13 +8854,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return self.api_call("assistant.threads.setTitle", params=kwargs)
            +https://docs.slack.dev/reference/methods/assistant.threads.setTitle

            def auth_revoke(self, *, test: bool | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8803,13 +8877,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return self.api_call("auth.revoke", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/auth.revoke

            def auth_teams_list(self,
            cursor: str | None = None,
            limit: int | None = None,
            include_icon: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8827,13 +8901,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return self.api_call("auth.teams.list", params=kwargs)

            List the workspaces a token can access. -https://api.slack.com/methods/auth.teams.list

            +https://docs.slack.dev/reference/methods/auth.teams.list

            def auth_test(self, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8848,12 +8922,12 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return self.api_call("auth.test", params=kwargs)

            Checks authentication & identity. -https://api.slack.com/methods/auth.test

            +https://docs.slack.dev/reference/methods/auth.test

            def bookmarks_add(self,
            *,
            channel_id: str,
            title: str,
            type: str,
            emoji: str | None = None,
            entity_id: str | None = None,
            link: str | None = None,
            parent_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8876,7 +8950,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -8892,7 +8966,7 @@

            Methods

            return self.api_call("bookmarks.add", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/bookmarks.add

            def bookmarks_edit(self,
            *,
            bookmark_id: str,
            channel_id: str,
            emoji: str | None = None,
            link: str | None = None,
            title: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -8913,7 +8987,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -8927,7 +9001,7 @@

            Methods

            return self.api_call("bookmarks.edit", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/bookmarks.edit

            def bookmarks_list(self, *, channel_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8944,13 +9018,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return self.api_call("bookmarks.list", http_verb="POST", params=kwargs)

            List bookmark for the channel. -https://api.slack.com/methods/bookmarks.list

            +https://docs.slack.dev/reference/methods/bookmarks.list

            def bookmarks_remove(self, *, bookmark_id: str, channel_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8968,13 +9042,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return self.api_call("bookmarks.remove", http_verb="POST", params=kwargs)

            Remove bookmark from the channel. -https://api.slack.com/methods/bookmarks.remove

            +https://docs.slack.dev/reference/methods/bookmarks.remove

            def bots_info(self, *, bot: str | None = None, team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -8992,13 +9066,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return self.api_call("bots.info", http_verb="GET", params=kwargs)

            Gets information about a bot user. -https://api.slack.com/methods/bots.info

            +https://docs.slack.dev/reference/methods/bots.info

            def calls_add(self,
            *,
            external_unique_id: str,
            join_url: str,
            created_by: str | None = None,
            date_start: int | None = None,
            desktop_app_join_url: str | None = None,
            external_display_id: str | None = None,
            title: str | None = None,
            users: str | Sequence[Dict[str, str]] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -9022,7 +9096,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -9042,7 +9116,7 @@

            Methods

            return self.api_call("calls.add", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/calls.add

            def calls_end(self, *, id: str, duration: int | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -9060,13 +9134,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return self.api_call("calls.end", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/calls.end

            def calls_info(self, *, id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -9083,13 +9157,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return self.api_call("calls.info", http_verb="POST", params=kwargs)

            Returns information about a Call. -https://api.slack.com/methods/calls.info

            +https://docs.slack.dev/reference/methods/calls.info

            def calls_participants_add(self, *, id: str, users: str | Sequence[Dict[str, str]], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -9107,14 +9181,14 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) return self.api_call("calls.participants.add", http_verb="POST", params=kwargs)

            Registers new participants added to a Call. -https://api.slack.com/methods/calls.participants.add

            +https://docs.slack.dev/reference/methods/calls.participants.add

            def calls_participants_remove(self, *, id: str, users: str | Sequence[Dict[str, str]], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -9132,14 +9206,14 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) return self.api_call("calls.participants.remove", http_verb="POST", params=kwargs)

            Registers participants removed from a Call. -https://api.slack.com/methods/calls.participants.remove

            +https://docs.slack.dev/reference/methods/calls.participants.remove

            def calls_update(self,
            *,
            id: str,
            desktop_app_join_url: str | None = None,
            join_url: str | None = None,
            title: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -9159,7 +9233,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -9172,7 +9246,7 @@

            Methods

            return self.api_call("calls.update", http_verb="POST", params=kwargs)

            Updates information about a Call. -https://api.slack.com/methods/calls.update

            +https://docs.slack.dev/reference/methods/calls.update

            def canvases_access_delete(self,
            *,
            canvas_id: str,
            channel_ids: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -9191,7 +9265,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -9207,7 +9281,7 @@

            Methods

            return self.api_call("canvases.access.delete", params=kwargs)

            Create a Channel Canvas for a channel -https://api.slack.com/methods/canvases.access.delete

            +https://docs.slack.dev/reference/methods/canvases.access.delete

            def canvases_access_set(self,
            *,
            canvas_id: str,
            access_level: str,
            channel_ids: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -9227,7 +9301,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -9244,7 +9318,7 @@

            Methods

            return self.api_call("canvases.access.set", params=kwargs)

            Sets the access level to a canvas for specified entities -https://api.slack.com/methods/canvases.access.set

            +https://docs.slack.dev/reference/methods/canvases.access.set

            def canvases_create(self, *, title: str | None = None, document_content: Dict[str, str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -9262,13 +9336,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return self.api_call("canvases.create", json=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.create

            def canvases_delete(self, *, canvas_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -9285,13 +9359,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return self.api_call("canvases.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.delete

            def canvases_edit(self, *, canvas_id: str, changes: Sequence[Dict[str, Any]], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -9309,13 +9383,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return self.api_call("canvases.edit", json=kwargs)
            +https://docs.slack.dev/reference/methods/canvases.edit

            def canvases_sections_lookup(self, *, canvas_id: str, criteria: Dict[str, Any], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -9333,13 +9407,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return self.api_call("canvases.sections.lookup", params=kwargs)

            Find sections matching the provided criteria -https://api.slack.com/methods/canvases.sections.lookup

            +https://docs.slack.dev/reference/methods/canvases.sections.lookup

            def channels_archive(self, *, channel: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -9673,13 +9747,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return self.api_call("chat.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.delete

            def chat_deleteScheduledMessage(self,
            *,
            channel: str,
            scheduled_message_id: str,
            as_user: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -9698,7 +9772,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -9710,7 +9784,7 @@

            Methods

            return self.api_call("chat.deleteScheduledMessage", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage

            def chat_meMessage(self, *, channel: str, text: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -9752,16 +9826,16 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return self.api_call("chat.meMessage", params=kwargs)

            Share a me message into a channel. -https://api.slack.com/methods/chat.meMessage

            +https://docs.slack.dev/reference/methods/chat.meMessage

            -def chat_postEphemeral(self,
            *,
            channel: str,
            user: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            +def chat_postEphemeral(self,
            *,
            channel: str,
            user: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -9783,10 +9857,11 @@

            Methods

            link_names: Optional[bool] = None, username: Optional[str] = None, parse: Optional[str] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> Union[Future, SlackResponse]: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -9802,19 +9877,20 @@

            Methods

            "link_names": link_names, "username": username, "parse": parse, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postEphemeral", kwargs) + _warn_if_message_text_content_is_missing("chat.postEphemeral", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postEphemeral", json=kwargs)

            Sends an ephemeral message to a user in a channel. -https://api.slack.com/methods/chat.postEphemeral

            +https://docs.slack.dev/reference/methods/chat.postEphemeral

            -def chat_postMessage(self,
            *,
            channel: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            container_id: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            mrkdwn: bool | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            +def chat_postMessage(self,
            *,
            channel: str,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            container_id: str | None = None,
            icon_emoji: str | None = None,
            icon_url: str | None = None,
            mrkdwn: bool | None = None,
            link_names: bool | None = None,
            username: str | None = None,
            parse: str | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -9841,10 +9917,11 @@

            Methods

            username: Optional[str] = None, parse: Optional[str] = None, # none, full metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> Union[Future, SlackResponse]: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -9865,19 +9942,20 @@

            Methods

            "username": username, "parse": parse, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.postMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.postMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.postMessage", json=kwargs)

            Sends a message to a channel. -https://api.slack.com/methods/chat.postMessage

            +https://docs.slack.dev/reference/methods/chat.postMessage

            -def chat_scheduleMessage(self,
            *,
            channel: str,
            post_at: str | int,
            text: str,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            link_names: bool | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            +def chat_scheduleMessage(self,
            *,
            channel: str,
            post_at: str | int,
            text: str | None = None,
            as_user: bool | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            thread_ts: str | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            unfurl_links: bool | None = None,
            unfurl_media: bool | None = None,
            link_names: bool | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -9889,7 +9967,7 @@

            Methods

            *, channel: str, post_at: Union[str, int], - text: str, + text: Optional[str] = None, as_user: Optional[bool] = None, attachments: Optional[Union[str, Sequence[Union[Dict, Attachment]]]] = None, blocks: Optional[Union[str, Sequence[Union[Dict, Block]]]] = None, @@ -9900,10 +9978,11 @@

            Methods

            unfurl_media: Optional[bool] = None, link_names: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> Union[Future, SlackResponse]: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -9920,16 +9999,17 @@

            Methods

            "unfurl_media": unfurl_media, "link_names": link_names, "metadata": metadata, + "markdown_text": markdown_text, } ) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.scheduleMessage", kwargs) + _warn_if_message_text_content_is_missing("chat.scheduleMessage", kwargs) # NOTE: intentionally using json over params for the API methods using blocks/attachments return self.api_call("chat.scheduleMessage", json=kwargs)
            +https://docs.slack.dev/reference/methods/chat.scheduleMessage

            def chat_scheduledMessages_list(self,
            *,
            channel: str | None = None,
            cursor: str | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -9951,7 +10031,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -9966,7 +10046,7 @@

            Methods

            return self.api_call("chat.scheduledMessages.list", params=kwargs)
            +https://docs.slack.dev/reference/methods/chat.scheduledMessages.list

            def chat_unfurl(self,
            *,
            channel: str | None = None,
            ts: str | None = None,
            source: str | None = None,
            unfurl_id: str | None = None,
            unfurls: Dict[str, Dict] | None = None,
            user_auth_blocks: str | Sequence[Dict | Block] | None = None,
            user_auth_message: str | None = None,
            user_auth_required: bool | None = None,
            user_auth_url: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -9991,7 +10071,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -10012,10 +10092,10 @@

            Methods

            return self.api_call("chat.unfurl", json=kwargs)

            Provide custom unfurl behavior for user-posted URLs. -https://api.slack.com/methods/chat.unfurl

            +https://docs.slack.dev/reference/methods/chat.unfurl

            -def chat_update(self,
            *,
            channel: str,
            ts: str,
            text: str | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            as_user: bool | None = None,
            file_ids: str | Sequence[str] | None = None,
            link_names: bool | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            metadata: Dict | Metadata | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            +def chat_update(self,
            *,
            channel: str,
            ts: str,
            text: str | None = None,
            attachments: str | Sequence[Dict | Attachment] | None = None,
            blocks: str | Sequence[Dict | Block] | None = None,
            as_user: bool | None = None,
            file_ids: str | Sequence[str] | None = None,
            link_names: bool | None = None,
            parse: str | None = None,
            reply_broadcast: bool | None = None,
            metadata: Dict | Metadata | None = None,
            markdown_text: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10036,10 +10116,11 @@

            Methods

            parse: Optional[str] = None, # none, full reply_broadcast: Optional[bool] = None, metadata: Optional[Union[Dict, Metadata]] = None, + markdown_text: Optional[str] = None, **kwargs, ) -> Union[Future, SlackResponse]: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -10053,6 +10134,7 @@

            Methods

            "parse": parse, "reply_broadcast": reply_broadcast, "metadata": metadata, + "markdown_text": markdown_text, } ) if isinstance(file_ids, (list, tuple)): @@ -10061,12 +10143,12 @@

            Methods

            kwargs.update({"file_ids": file_ids}) _parse_web_class_objects(kwargs) kwargs = _remove_none_values(kwargs) - _warn_if_text_or_attachment_fallback_is_missing("chat.update", kwargs) + _warn_if_message_text_content_is_missing("chat.update", kwargs) # NOTE: intentionally using json over params for API methods using blocks/attachments return self.api_call("chat.update", json=kwargs)

            Updates a message in a channel. -https://api.slack.com/methods/chat.update

            +https://docs.slack.dev/reference/methods/chat.update

            def conversations_acceptSharedInvite(self,
            *,
            channel_name: str,
            channel_id: str | None = None,
            invite_id: str | None = None,
            free_trial_accepted: bool | None = None,
            is_private: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10088,7 +10170,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -10105,7 +10187,7 @@

            Methods

            return self.api_call("conversations.acceptSharedInvite", http_verb="POST", params=kwargs)

            Accepts an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.acceptSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite

            def conversations_approveSharedInvite(self, *, invite_id: str, target_team: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10123,13 +10205,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs)

            Approves an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.approveSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.approveSharedInvite

            def conversations_archive(self, *, channel: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10146,13 +10228,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return self.api_call("conversations.archive", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.archive

            def conversations_canvases_create(self, *, channel_id: str, document_content: Dict[str, str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10170,13 +10252,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return self.api_call("conversations.canvases.create", json=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.canvases.create

            def conversations_close(self, *, channel: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10193,13 +10275,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return self.api_call("conversations.close", params=kwargs)

            Closes a direct message or multi-person direct message. -https://api.slack.com/methods/conversations.close

            +https://docs.slack.dev/reference/methods/conversations.close

            def conversations_create(self,
            *,
            name: str,
            is_private: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10218,13 +10300,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return self.api_call("conversations.create", params=kwargs)

            Initiates a public or private channel-based conversation -https://api.slack.com/methods/conversations.create

            +https://docs.slack.dev/reference/methods/conversations.create

            def conversations_declineSharedInvite(self, *, invite_id: str, target_team: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10242,13 +10324,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs)

            Declines a Slack Connect channel invite. -https://api.slack.com/methods/conversations.declineSharedInvite

            +https://docs.slack.dev/reference/methods/conversations.declineSharedInvite

            def conversations_externalInvitePermissions_set(self, *, action: str, channel: str, target_team: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10262,7 +10344,7 @@

            Methods

            self, *, action: str, channel: str, target_team: str, **kwargs ) -> Union[Future, SlackResponse]: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -10274,7 +10356,7 @@

            Methods

            return self.api_call("conversations.externalInvitePermissions.set", params=kwargs)

            Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. -https://api.slack.com/methods/conversations.externalInvitePermissions.set

            +https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set

            def conversations_history(self,
            *,
            channel: str,
            cursor: str | None = None,
            inclusive: bool | None = None,
            include_all_metadata: bool | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10297,7 +10379,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -10313,7 +10395,7 @@

            Methods

            return self.api_call("conversations.history", http_verb="GET", params=kwargs)

            Fetches a conversation's history of messages and events. -https://api.slack.com/methods/conversations.history

            +https://docs.slack.dev/reference/methods/conversations.history

            def conversations_info(self,
            *,
            channel: str,
            include_locale: bool | None = None,
            include_num_members: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10332,7 +10414,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -10344,7 +10426,7 @@

            Methods

            return self.api_call("conversations.info", http_verb="GET", params=kwargs)

            Retrieve information about a conversation. -https://api.slack.com/methods/conversations.info

            +https://docs.slack.dev/reference/methods/conversations.info

            def conversations_invite(self,
            *,
            channel: str,
            users: str | Sequence[str],
            force: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10363,7 +10445,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -10378,7 +10460,7 @@

            Methods

            return self.api_call("conversations.invite", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.invite

            def conversations_inviteShared(self,
            *,
            channel: str,
            emails: str | Sequence[str] | None = None,
            user_ids: str | Sequence[str] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10397,7 +10479,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -10413,7 +10495,7 @@

            Methods

            return self.api_call("conversations.inviteShared", http_verb="GET", params=kwargs)

            Sends an invitation to a Slack Connect channel. -https://api.slack.com/methods/conversations.inviteShared

            +https://docs.slack.dev/reference/methods/conversations.inviteShared

            def conversations_join(self, *, channel: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10430,13 +10512,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return self.api_call("conversations.join", params=kwargs)

            Joins an existing conversation. -https://api.slack.com/methods/conversations.join

            +https://docs.slack.dev/reference/methods/conversations.join

            def conversations_kick(self, *, channel: str, user: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10454,13 +10536,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return self.api_call("conversations.kick", params=kwargs)

            Removes a user from a conversation. -https://api.slack.com/methods/conversations.kick

            +https://docs.slack.dev/reference/methods/conversations.kick

            def conversations_leave(self, *, channel: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10477,13 +10559,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return self.api_call("conversations.leave", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.leave

            def conversations_list(self,
            *,
            cursor: str | None = None,
            exclude_archived: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            types: str | Sequence[str] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10504,7 +10586,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -10521,7 +10603,7 @@

            Methods

            return self.api_call("conversations.list", http_verb="GET", params=kwargs)

            Lists all channels in a Slack team. -https://api.slack.com/methods/conversations.list

            +https://docs.slack.dev/reference/methods/conversations.list

            def conversations_listConnectInvites(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10541,14 +10623,14 @@

            Methods

            ) -> Union[Future, SlackResponse]: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return self.api_call("conversations.listConnectInvites", params=kwargs)

            List shared channel invites that have been generated or received but have not yet been approved by all parties. -https://api.slack.com/methods/conversations.listConnectInvites

            +https://docs.slack.dev/reference/methods/conversations.listConnectInvites

            def conversations_mark(self, *, channel: str, ts: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10566,13 +10648,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return self.api_call("conversations.mark", params=kwargs)

            Sets the read cursor in a channel. -https://api.slack.com/methods/conversations.mark

            +https://docs.slack.dev/reference/methods/conversations.mark

            def conversations_members(self, *, channel: str, cursor: str | None = None, limit: int | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10591,13 +10673,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return self.api_call("conversations.members", http_verb="GET", params=kwargs)

            Retrieve members of a conversation. -https://api.slack.com/methods/conversations.members

            +https://docs.slack.dev/reference/methods/conversations.members

            def conversations_open(self,
            *,
            channel: str | None = None,
            return_im: bool | None = None,
            users: str | Sequence[str] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10616,7 +10698,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -10628,7 +10710,7 @@

            Methods

            return self.api_call("conversations.open", params=kwargs)

            Opens or resumes a direct message or multi-person direct message. -https://api.slack.com/methods/conversations.open

            +https://docs.slack.dev/reference/methods/conversations.open

            def conversations_rename(self, *, channel: str, name: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10646,13 +10728,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return self.api_call("conversations.rename", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.rename

            def conversations_replies(self,
            *,
            channel: str,
            ts: str,
            cursor: str | None = None,
            inclusive: bool | None = None,
            include_all_metadata: bool | None = None,
            latest: str | None = None,
            limit: int | None = None,
            oldest: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10676,7 +10758,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -10693,7 +10775,7 @@

            Methods

            return self.api_call("conversations.replies", http_verb="GET", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.replies

            def conversations_requestSharedInvite_approve(self,
            *,
            invite_id: str,
            channel_id: str | None = None,
            is_external_limited: str | None = None,
            message: Dict[str, Any] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10713,7 +10795,7 @@

            Methods

            **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -10727,7 +10809,7 @@

            Methods

            return self.api_call("conversations.requestSharedInvite.approve", params=kwargs)

            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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve

            def conversations_requestSharedInvite_deny(self, *, invite_id: str, message: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10745,13 +10827,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return self.api_call("conversations.requestSharedInvite.deny", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny

            def conversations_requestSharedInvite_list(self,
            *,
            cursor: str | None = None,
            include_approved: bool | None = None,
            include_denied: bool | None = None,
            include_expired: bool | None = None,
            invite_ids: str | Sequence[str] | None = None,
            limit: int | None = None,
            user_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -10774,7 +10856,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -10794,7 +10876,7 @@

            Methods

            return self.api_call("conversations.requestSharedInvite.list", params=kwargs)

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

            +https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list

            def conversations_setPurpose(self, *, channel: str, purpose: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10812,13 +10894,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return self.api_call("conversations.setPurpose", params=kwargs)

            Sets the purpose for a conversation. -https://api.slack.com/methods/conversations.setPurpose

            +https://docs.slack.dev/reference/methods/conversations.setPurpose

            def conversations_setTopic(self, *, channel: str, topic: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10836,13 +10918,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return self.api_call("conversations.setTopic", params=kwargs)

            Sets the topic for a conversation. -https://api.slack.com/methods/conversations.setTopic

            +https://docs.slack.dev/reference/methods/conversations.setTopic

            def conversations_unarchive(self, *, channel: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10859,13 +10941,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return self.api_call("conversations.unarchive", params=kwargs)
            +https://docs.slack.dev/reference/methods/conversations.unarchive

            def dialog_open(self, *, dialog: Dict[str, Any], trigger_id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10883,7 +10965,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -10891,7 +10973,7 @@

            Methods

            return self.api_call("dialog.open", json=kwargs)

            Open a dialog with a user. -https://api.slack.com/methods/dialog.open

            +https://docs.slack.dev/reference/methods/dialog.open

            def dnd_endDnd(self, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10906,12 +10988,12 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return self.api_call("dnd.endDnd", params=kwargs)

            Ends the current user's Do Not Disturb session immediately. -https://api.slack.com/methods/dnd.endDnd

            +https://docs.slack.dev/reference/methods/dnd.endDnd

            def dnd_endSnooze(self, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10926,12 +11008,12 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return self.api_call("dnd.endSnooze", params=kwargs)

            Ends the current user's snooze mode immediately. -https://api.slack.com/methods/dnd.endSnooze

            +https://docs.slack.dev/reference/methods/dnd.endSnooze

            def dnd_info(self, *, team_id: str | None = None, user: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10949,13 +11031,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("dnd.info", http_verb="GET", params=kwargs)

            Retrieves a user's current Do Not Disturb status. -https://api.slack.com/methods/dnd.info

            +https://docs.slack.dev/reference/methods/dnd.info

            def dnd_setSnooze(self, *, num_minutes: str | int, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10972,13 +11054,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs)

            Turns on Do Not Disturb mode for the current user, or changes its duration. -https://api.slack.com/methods/dnd.setSnooze

            +https://docs.slack.dev/reference/methods/dnd.setSnooze

            def dnd_teamInfo(self, users: str | Sequence[str], team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -10995,7 +11077,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -11005,7 +11087,7 @@

            Methods

            return self.api_call("dnd.teamInfo", http_verb="GET", params=kwargs)

            Retrieves the Do Not Disturb status for users on a team. -https://api.slack.com/methods/dnd.teamInfo

            +https://docs.slack.dev/reference/methods/dnd.teamInfo

            def emoji_list(self, include_categories: bool | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -11021,13 +11103,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return self.api_call("emoji.list", http_verb="GET", params=kwargs)

            Lists custom emoji for a team. -https://api.slack.com/methods/emoji.list

            +https://docs.slack.dev/reference/methods/emoji.list

            def files_comments_delete(self, *, file: str, id: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -11045,13 +11127,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return self.api_call("files.comments.delete", params=kwargs)

            Deletes an existing comment on a file. -https://api.slack.com/methods/files.comments.delete

            +https://docs.slack.dev/reference/methods/files.comments.delete

            def files_completeUploadExternal(self,
            *,
            files: List[Dict[str, str]],
            channel_id: str | None = None,
            channels: List[str] | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -11072,7 +11154,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -11088,7 +11170,7 @@

            Methods

            return self.api_call("files.completeUploadExternal", params=kwargs)

            Finishes an upload started with files.getUploadURLExternal. -https://api.slack.com/methods/files.completeUploadExternal

            +https://docs.slack.dev/reference/methods/files.completeUploadExternal

            def files_delete(self, *, file: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -11105,13 +11187,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return self.api_call("files.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/files.delete

            def files_getUploadURLExternal(self,
            *,
            filename: str,
            length: int,
            alt_txt: str | None = None,
            snippet_type: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -11131,7 +11213,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -11144,7 +11226,7 @@

            Methods

            return self.api_call("files.getUploadURLExternal", params=kwargs)

            Gets a URL for an edge external upload. -https://api.slack.com/methods/files.getUploadURLExternal

            +https://docs.slack.dev/reference/methods/files.getUploadURLExternal

            def files_info(self,
            *,
            file: str,
            count: int | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            page: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -11165,7 +11247,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -11179,7 +11261,7 @@

            Methods

            return self.api_call("files.info", http_verb="GET", params=kwargs)

            Gets information about a team file. -https://api.slack.com/methods/files.info

            +https://docs.slack.dev/reference/methods/files.info

            def files_list(self,
            *,
            channel: str | None = None,
            count: int | None = None,
            page: int | None = None,
            show_files_hidden_by_limit: bool | None = None,
            team_id: str | None = None,
            ts_from: str | None = None,
            ts_to: str | None = None,
            types: str | Sequence[str] | None = None,
            user: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -11204,7 +11286,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -11225,7 +11307,7 @@

            Methods

            return self.api_call("files.list", http_verb="GET", params=kwargs)

            Lists & filters team files. -https://api.slack.com/methods/files.list

            +https://docs.slack.dev/reference/methods/files.list

            def files_remote_add(self,
            *,
            external_id: str,
            external_url: str,
            title: str,
            filetype: str | None = None,
            indexable_file_contents: str | bytes | io.IOBase | None = None,
            preview_image: str | bytes | io.IOBase | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -11247,7 +11329,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -11274,7 +11356,7 @@

            Methods

            )

            Adds a file from a remote service. -https://api.slack.com/methods/files.remote.add

            +https://docs.slack.dev/reference/methods/files.remote.add

            def files_remote_info(self, *, external_id: str | None = None, file: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -11292,13 +11374,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.info", http_verb="GET", params=kwargs)

            Retrieve information about a remote file added to Slack. -https://api.slack.com/methods/files.remote.info

            +https://docs.slack.dev/reference/methods/files.remote.info

            def files_remote_list(self,
            *,
            channel: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            ts_from: str | None = None,
            ts_to: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -11319,7 +11401,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -11333,7 +11415,7 @@

            Methods

            return self.api_call("files.remote.list", http_verb="GET", params=kwargs)

            Retrieve information about a remote file added to Slack. -https://api.slack.com/methods/files.remote.list

            +https://docs.slack.dev/reference/methods/files.remote.list

            def files_remote_remove(self, *, external_id: str | None = None, file: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -11351,13 +11433,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.remove", http_verb="POST", params=kwargs)
            +https://docs.slack.dev/reference/methods/files.remote.remove

            def files_remote_share(self,
            *,
            channels: str | Sequence[str],
            external_id: str | None = None,
            file: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -11376,7 +11458,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -11388,7 +11470,7 @@

            Methods

            return self.api_call("files.remote.share", http_verb="GET", params=kwargs)

            Share a remote file into a channel. -https://api.slack.com/methods/files.remote.share

            +https://docs.slack.dev/reference/methods/files.remote.share

            def files_remote_update(self,
            *,
            external_id: str | None = None,
            external_url: str | None = None,
            file: str | None = None,
            title: str | None = None,
            filetype: str | None = None,
            indexable_file_contents: str | None = None,
            preview_image: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -11411,7 +11493,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -11439,7 +11521,7 @@

            Methods

            )

            Updates an existing remote file. -https://api.slack.com/methods/files.remote.update

            +https://docs.slack.dev/reference/methods/files.remote.update

            def files_revokePublicURL(self, *, file: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -11456,13 +11538,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return self.api_call("files.revokePublicURL", params=kwargs)

            Revokes public/external sharing access for a file -https://api.slack.com/methods/files.revokePublicURL

            +https://docs.slack.dev/reference/methods/files.revokePublicURL

            def files_sharedPublicURL(self, *, file: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -11479,13 +11561,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return self.api_call("files.sharedPublicURL", params=kwargs)

            Enables a file for public/external sharing. -https://api.slack.com/methods/files.sharedPublicURL

            +https://docs.slack.dev/reference/methods/files.sharedPublicURL

            def files_upload(self,
            *,
            file: str | bytes | io.IOBase | None = None,
            content: str | bytes | None = None,
            filename: str | None = None,
            filetype: str | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            title: str | None = None,
            channels: str | Sequence[str] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -11509,7 +11591,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -11542,7 +11624,7 @@

            Methods

            return self.api_call("files.upload", data=kwargs)

            Uploads or creates a file. -https://api.slack.com/methods/files.upload

            +https://docs.slack.dev/reference/methods/files.upload

            def files_upload_v2(self,
            *,
            filename: str | None = None,
            file: str | bytes | io.IOBase | os.PathLike | None = None,
            content: str | bytes | None = None,
            title: str | None = None,
            alt_txt: str | None = None,
            snippet_type: str | None = None,
            file_uploads: List[Dict[str, Any]] | None = None,
            channel: str | None = None,
            channels: List[str] | None = None,
            initial_comment: str | None = None,
            thread_ts: str | None = None,
            request_file_info: bool = True,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -11573,12 +11655,12 @@

            Methods

            ) -> Union[Future, SlackResponse]: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -11657,14 +11739,14 @@

            Methods

            This wrapper method provides an easy way to upload files using the following endpoints:

            @@ -11684,13 +11766,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return self.api_call("functions.completeError", params=kwargs)

            Signal the failure to execute a function -https://api.slack.com/methods/functions.completeError

            +https://docs.slack.dev/reference/methods/functions.completeError

            def functions_completeSuccess(self, *, function_execution_id: str, outputs: Dict[str, Any], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -11708,13 +11790,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return self.api_call("functions.completeSuccess", params=kwargs)

            Signal the successful completion of a function -https://api.slack.com/methods/functions.completeSuccess

            +https://docs.slack.dev/reference/methods/functions.completeSuccess

            def groups_archive(self, *, channel: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12190,7 +12272,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -12200,7 +12282,7 @@

            Methods

            return self.api_call("migration.exchange", http_verb="GET", params=kwargs)

            For Enterprise Grid workspaces, map local user IDs to global user IDs -https://api.slack.com/methods/migration.exchange

            +https://docs.slack.dev/reference/methods/migration.exchange

            def mpim_close(self, *, channel: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12347,7 +12429,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12359,7 +12441,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token. -https://api.slack.com/methods/oauth.access

            +https://docs.slack.dev/reference/methods/oauth.access

            def oauth_v2_access(self,
            *,
            client_id: str,
            client_secret: str,
            code: str | None = None,
            redirect_uri: str | None = None,
            grant_type: str | None = None,
            refresh_token: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12385,7 +12467,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12402,7 +12484,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token. -https://api.slack.com/methods/oauth.v2.access

            +https://docs.slack.dev/reference/methods/oauth.v2.access

            def oauth_v2_exchange(self, *, token: str, client_id: str, client_secret: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12421,13 +12503,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return self.api_call("oauth.v2.exchange", params=kwargs)

            Exchanges a legacy access token for a new expiring access token and refresh token -https://api.slack.com/methods/oauth.v2.exchange

            +https://docs.slack.dev/reference/methods/oauth.v2.exchange

            def openid_connect_token(self,
            client_id: str,
            client_secret: str,
            code: str | None = None,
            redirect_uri: str | None = None,
            grant_type: str | None = None,
            refresh_token: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12448,7 +12530,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -12465,7 +12547,7 @@

            Methods

            )

            Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. -https://api.slack.com/methods/openid.connect.token

            +https://docs.slack.dev/reference/methods/openid.connect.token

            def openid_connect_userInfo(self, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12480,12 +12562,12 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return self.api_call("openid.connect.userInfo", params=kwargs)

            Get the identity of a user who has authorized Sign in with Slack. -https://api.slack.com/methods/openid.connect.userInfo

            +https://docs.slack.dev/reference/methods/openid.connect.userInfo

            def pins_add(self, *, channel: str, timestamp: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12503,13 +12585,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.add", params=kwargs)

            Pins an item to a channel. -https://api.slack.com/methods/pins.add

            +https://docs.slack.dev/reference/methods/pins.add

            def pins_list(self, *, channel: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12526,13 +12608,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return self.api_call("pins.list", http_verb="GET", params=kwargs)

            Lists items pinned to a channel. -https://api.slack.com/methods/pins.list

            +https://docs.slack.dev/reference/methods/pins.list

            def pins_remove(self, *, channel: str, timestamp: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12550,13 +12632,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.remove", params=kwargs)

            Un-pins an item from a channel. -https://api.slack.com/methods/pins.remove

            +https://docs.slack.dev/reference/methods/pins.remove

            def reactions_add(self, *, channel: str, name: str, timestamp: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12575,13 +12657,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return self.api_call("reactions.add", params=kwargs)

            Adds a reaction to an item. -https://api.slack.com/methods/reactions.add

            +https://docs.slack.dev/reference/methods/reactions.add

            def reactions_get(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            full: bool | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12602,7 +12684,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -12616,7 +12698,7 @@

            Methods

            return self.api_call("reactions.get", http_verb="GET", params=kwargs)

            Gets reactions for an item. -https://api.slack.com/methods/reactions.get

            +https://docs.slack.dev/reference/methods/reactions.get

            def reactions_list(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            full: bool | None = None,
            limit: int | None = None,
            page: int | None = None,
            team_id: str | None = None,
            user: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12639,7 +12721,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -12655,7 +12737,7 @@

            Methods

            return self.api_call("reactions.list", http_verb="GET", params=kwargs)

            Lists reactions made by a user. -https://api.slack.com/methods/reactions.list

            +https://docs.slack.dev/reference/methods/reactions.list

            def reactions_remove(self,
            *,
            name: str,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12676,7 +12758,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -12690,7 +12772,7 @@

            Methods

            return self.api_call("reactions.remove", params=kwargs)

            Removes a reaction from an item. -https://api.slack.com/methods/reactions.remove

            +https://docs.slack.dev/reference/methods/reactions.remove

            def reminders_add(self,
            *,
            text: str,
            time: str,
            team_id: str | None = None,
            user: str | None = None,
            recurrence: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12711,7 +12793,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -12725,7 +12807,7 @@

            Methods

            return self.api_call("reminders.add", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.add

            def reminders_complete(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12743,13 +12825,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.complete", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.complete

            def reminders_delete(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12767,13 +12849,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.delete", params=kwargs)
            +https://docs.slack.dev/reference/methods/reminders.delete

            def reminders_info(self, *, reminder: str, team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12791,13 +12873,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.info", http_verb="GET", params=kwargs)

            Gets information about a reminder. -https://api.slack.com/methods/reminders.info

            +https://docs.slack.dev/reference/methods/reminders.info

            def reminders_list(self, *, team_id: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -12814,13 +12896,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return self.api_call("reminders.list", http_verb="GET", params=kwargs)

            Lists all reminders created by or for a given user. -https://api.slack.com/methods/reminders.list

            +https://docs.slack.dev/reference/methods/reminders.list

            def rtm_connect(self,
            *,
            batch_presence_aware: bool | None = None,
            presence_sub: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12838,13 +12920,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return self.api_call("rtm.connect", http_verb="GET", params=kwargs)

            Starts a Real Time Messaging session. -https://api.slack.com/methods/rtm.connect

            +https://docs.slack.dev/reference/methods/rtm.connect

            def rtm_start(self,
            *,
            batch_presence_aware: bool | None = None,
            include_locale: bool | None = None,
            mpim_aware: bool | None = None,
            no_latest: bool | None = None,
            no_unreads: bool | None = None,
            presence_sub: bool | None = None,
            simple_latest: bool | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12867,7 +12949,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -12883,7 +12965,7 @@

            Methods

            return self.api_call("rtm.start", http_verb="GET", params=kwargs)

            Starts a Real Time Messaging session. -https://api.slack.com/methods/rtm.start

            +https://docs.slack.dev/reference/methods/rtm.start

            def search_all(self,
            *,
            query: str,
            count: int | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12906,7 +12988,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -12922,7 +13004,7 @@

            Methods

            return self.api_call("search.all", http_verb="GET", params=kwargs)

            Searches for messages and files matching a query. -https://api.slack.com/methods/search.all

            +https://docs.slack.dev/reference/methods/search.all

            def search_files(self,
            *,
            query: str,
            count: int | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12945,7 +13027,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -12961,7 +13043,7 @@

            Methods

            return self.api_call("search.files", http_verb="GET", params=kwargs)

            Searches for files matching a query. -https://api.slack.com/methods/search.files

            +https://docs.slack.dev/reference/methods/search.files

            def search_messages(self,
            *,
            query: str,
            count: int | None = None,
            cursor: str | None = None,
            highlight: bool | None = None,
            page: int | None = None,
            sort: str | None = None,
            sort_dir: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -12985,7 +13067,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -13002,7 +13084,7 @@

            Methods

            return self.api_call("search.messages", http_verb="GET", params=kwargs)

            Searches for messages matching a query. -https://api.slack.com/methods/search.messages

            +https://docs.slack.dev/reference/methods/search.messages

            def stars_add(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13022,7 +13104,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -13035,7 +13117,7 @@

            Methods

            return self.api_call("stars.add", params=kwargs)
            +https://docs.slack.dev/reference/methods/stars.add

            def stars_list(self,
            *,
            count: int | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            page: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13056,7 +13138,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -13070,7 +13152,7 @@

            Methods

            return self.api_call("stars.list", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/stars.list

            def stars_remove(self,
            *,
            channel: str | None = None,
            file: str | None = None,
            file_comment: str | None = None,
            timestamp: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13090,7 +13172,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -13103,7 +13185,7 @@

            Methods

            return self.api_call("stars.remove", params=kwargs)

            Removes a star from an item. -https://api.slack.com/methods/stars.remove

            +https://docs.slack.dev/reference/methods/stars.remove

            def team_accessLogs(self,
            *,
            before: str | int | None = None,
            count: str | int | None = None,
            page: str | int | None = None,
            team_id: str | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13125,7 +13207,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -13140,7 +13222,7 @@

            Methods

            return self.api_call("team.accessLogs", http_verb="GET", params=kwargs)

            Gets the access logs for the current team. -https://api.slack.com/methods/team.accessLogs

            +https://docs.slack.dev/reference/methods/team.accessLogs

            def team_billableInfo(self, *, team_id: str | None = None, user: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13158,13 +13240,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("team.billableInfo", http_verb="GET", params=kwargs)

            Gets billable users information for the current team. -https://api.slack.com/methods/team.billableInfo

            +https://docs.slack.dev/reference/methods/team.billableInfo

            def team_billing_info(self, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13179,12 +13261,12 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return self.api_call("team.billing.info", params=kwargs)

            Reads a workspace's billing plan information. -https://api.slack.com/methods/team.billing.info

            +https://docs.slack.dev/reference/methods/team.billing.info

            def team_externalTeams_disconnect(self, *, target_team: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13201,7 +13283,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -13211,7 +13293,7 @@

            Methods

            return self.api_call("team.externalTeams.disconnect", params=kwargs)
            +https://docs.slack.dev/reference/methods/team.externalTeams.disconnect

            def team_externalTeams_list(self,
            *,
            connection_status_filter: str | None = None,
            slack_connect_pref_filter: Sequence[str] | None = None,
            sort_direction: str | None = None,
            sort_field: str | None = None,
            workspace_filter: Sequence[str] | None = None,
            cursor: str | None = None,
            limit: int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13234,7 +13316,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -13258,7 +13340,7 @@

            Methods

            return self.api_call("team.externalTeams.list", http_verb="GET", params=kwargs)

            Returns a list of all the external teams connected and details about the connection. -https://api.slack.com/methods/team.externalTeams.list

            +https://docs.slack.dev/reference/methods/team.externalTeams.list

            def team_info(self, *, team: str | None = None, domain: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13276,13 +13358,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return self.api_call("team.info", http_verb="GET", params=kwargs)

            Gets information about the current team. -https://api.slack.com/methods/team.info

            +https://docs.slack.dev/reference/methods/team.info

            def team_integrationLogs(self,
            *,
            app_id: str | None = None,
            change_type: str | None = None,
            count: str | int | None = None,
            page: str | int | None = None,
            service_id: str | None = None,
            team_id: str | None = None,
            user: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13305,7 +13387,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -13321,7 +13403,7 @@

            Methods

            return self.api_call("team.integrationLogs", http_verb="GET", params=kwargs)

            Gets the integration logs for the current team. -https://api.slack.com/methods/team.integrationLogs

            +https://docs.slack.dev/reference/methods/team.integrationLogs

            def team_preferences_list(self, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13336,12 +13418,12 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return self.api_call("team.preferences.list", params=kwargs)

            Retrieve a list of a workspace's team preferences. -https://api.slack.com/methods/team.preferences.list

            +https://docs.slack.dev/reference/methods/team.preferences.list

            def team_profile_get(self, *, visibility: str | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13358,13 +13440,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return self.api_call("team.profile.get", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/team.profile.get

            def tooling_tokens_rotate(self, *, refresh_token: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13381,13 +13463,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return self.api_call("tooling.tokens.rotate", params=kwargs)

            Exchanges a refresh token for a new app configuration token -https://api.slack.com/methods/tooling.tokens.rotate

            +https://docs.slack.dev/reference/methods/tooling.tokens.rotate

            def usergroups_create(self,
            *,
            name: str,
            channels: str | Sequence[str] | None = None,
            description: str | None = None,
            handle: str | None = None,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13409,7 +13491,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -13427,7 +13509,7 @@

            Methods

            return self.api_call("usergroups.create", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.create

            def usergroups_disable(self,
            *,
            usergroup: str,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13446,13 +13528,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.disable", params=kwargs)

            Disable an existing User Group -https://api.slack.com/methods/usergroups.disable

            +https://docs.slack.dev/reference/methods/usergroups.disable

            def usergroups_enable(self,
            *,
            usergroup: str,
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13471,13 +13553,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.enable", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.enable

            def usergroups_list(self,
            *,
            include_count: bool | None = None,
            include_disabled: bool | None = None,
            include_users: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13497,7 +13579,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -13510,7 +13592,7 @@

            Methods

            return self.api_call("usergroups.list", http_verb="GET", params=kwargs)

            List all User Groups for a team -https://api.slack.com/methods/usergroups.list

            +https://docs.slack.dev/reference/methods/usergroups.list

            def usergroups_update(self,
            *,
            usergroup: str,
            channels: str | Sequence[str] | None = None,
            description: str | None = None,
            handle: str | None = None,
            include_count: bool | None = None,
            name: str | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13533,7 +13615,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -13552,7 +13634,7 @@

            Methods

            return self.api_call("usergroups.update", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.update

            def usergroups_users_list(self,
            *,
            usergroup: str,
            include_disabled: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13571,7 +13653,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -13583,7 +13665,7 @@

            Methods

            return self.api_call("usergroups.users.list", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/usergroups.users.list

            def usergroups_users_update(self,
            *,
            usergroup: str,
            users: str | Sequence[str],
            include_count: bool | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13603,7 +13685,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -13619,7 +13701,7 @@

            Methods

            return self.api_call("usergroups.users.update", params=kwargs)

            Update the list of users for a User Group -https://api.slack.com/methods/usergroups.users.update

            +https://docs.slack.dev/reference/methods/usergroups.users.update

            def users_conversations(self,
            *,
            cursor: str | None = None,
            exclude_archived: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            types: str | Sequence[str] | None = None,
            user: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13641,7 +13723,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -13659,7 +13741,7 @@

            Methods

            return self.api_call("users.conversations", http_verb="GET", params=kwargs)

            List conversations the calling user may access. -https://api.slack.com/methods/users.conversations

            +https://docs.slack.dev/reference/methods/users.conversations

            def users_deletePhoto(self, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13674,12 +13756,12 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return self.api_call("users.deletePhoto", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.deletePhoto

            def users_discoverableContacts_lookup(self, email: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13695,13 +13777,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return self.api_call("users.discoverableContacts.lookup", params=kwargs)

            Lookup an email address to see if someone is on Slack -https://api.slack.com/methods/users.discoverableContacts.lookup

            +https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup

            def users_getPresence(self, *, user: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13718,13 +13800,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return self.api_call("users.getPresence", http_verb="GET", params=kwargs)

            Gets user presence information. -https://api.slack.com/methods/users.getPresence

            +https://docs.slack.dev/reference/methods/users.getPresence

            def users_identity(self, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13739,12 +13821,12 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return self.api_call("users.identity", http_verb="GET", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.identity

            def users_info(self, *, user: str, include_locale: bool | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13762,13 +13844,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return self.api_call("users.info", http_verb="GET", params=kwargs)

            Gets information about a user. -https://api.slack.com/methods/users.info

            +https://docs.slack.dev/reference/methods/users.info

            def users_list(self,
            *,
            cursor: str | None = None,
            include_locale: bool | None = None,
            limit: int | None = None,
            team_id: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13788,7 +13870,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -13801,7 +13883,7 @@

            Methods

            return self.api_call("users.list", http_verb="GET", params=kwargs)

            Lists all users in a Slack team. -https://api.slack.com/methods/users.list

            +https://docs.slack.dev/reference/methods/users.list

            def users_lookupByEmail(self, *, email: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13818,13 +13900,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs)

            Find a user with an email address. -https://api.slack.com/methods/users.lookupByEmail

            +https://docs.slack.dev/reference/methods/users.lookupByEmail

            def users_profile_get(self, *, user: str | None = None, include_labels: bool | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13842,13 +13924,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return self.api_call("users.profile.get", http_verb="GET", params=kwargs)

            Retrieves a user's profile information. -https://api.slack.com/methods/users.profile.get

            +https://docs.slack.dev/reference/methods/users.profile.get

            def users_profile_set(self,
            *,
            name: str | None = None,
            value: str | None = None,
            user: str | None = None,
            profile: Dict | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13868,7 +13950,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -13883,7 +13965,7 @@

            Methods

            return self.api_call("users.profile.set", json=kwargs)

            Set the profile information for a user. -https://api.slack.com/methods/users.profile.set

            +https://docs.slack.dev/reference/methods/users.profile.set

            def users_setPhoto(self,
            *,
            image: str | io.IOBase,
            crop_w: str | int | None = None,
            crop_x: str | int | None = None,
            crop_y: str | int | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13903,13 +13985,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return self.api_call("users.setPhoto", files={"image": image}, data=kwargs)
            +https://docs.slack.dev/reference/methods/users.setPhoto

            def users_setPresence(self, *, presence: str, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -13926,13 +14008,13 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return self.api_call("users.setPresence", params=kwargs)
            +https://docs.slack.dev/reference/methods/users.setPresence

            def views_open(self,
            *,
            trigger_id: str | None = None,
            interactivity_pointer: str | None = None,
            view: dict | View,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13951,8 +14033,8 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -13964,8 +14046,8 @@

            Methods

            return self.api_call("views.open", json=kwargs)
            +https://docs.slack.dev/reference/methods/views.open +See https://docs.slack.dev/surfaces/modals/ for details.

            def views_publish(self,
            *,
            user_id: str,
            view: dict | View,
            hash: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -13985,8 +14067,8 @@

            Methods

            ) -> Union[Future, SlackResponse]: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -13999,8 +14081,8 @@

            Methods

            Publish a static view for a User. Create or update the view that comprises an -app's Home tab (https://api.slack.com/surfaces/tabs) -https://api.slack.com/methods/views.publish

            +app's Home tab (https://docs.slack.dev/surfaces/app-home/) +https://docs.slack.dev/reference/methods/views.publish

            def views_push(self,
            *,
            trigger_id: str | None = None,
            interactivity_pointer: str | None = None,
            view: dict | View,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -14022,9 +14104,9 @@

            Methods

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -14039,9 +14121,9 @@

            Methods

            Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. -Read the modals documentation (https://api.slack.com/surfaces/modals) +Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. -https://api.slack.com/methods/views.push

            +https://docs.slack.dev/reference/methods/views.push

            def views_update(self,
            *,
            view: dict | View,
            external_id: str | None = None,
            view_id: str | None = None,
            hash: str | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -14063,9 +14145,9 @@

            Methods

            """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -14085,9 +14167,119 @@

            Methods

            Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. -See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) +See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. -https://api.slack.com/methods/views.update

            +https://docs.slack.dev/reference/methods/views.update

            + +
            +
            +
            + +Expand source code + +
            def workflows_featured_add(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> Union[Future, SlackResponse]:
            +    """Add featured workflows to a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.add
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return self.api_call("workflows.featured.add", params=kwargs)
            +
            + +
            + +
            +
            + +Expand source code + +
            def workflows_featured_list(
            +    self,
            +    *,
            +    channel_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> Union[Future, SlackResponse]:
            +    """List the featured workflows for specified channels.
            +    https://docs.slack.dev/reference/methods/workflows.featured.list
            +    """
            +    if isinstance(channel_ids, (list, tuple)):
            +        kwargs.update({"channel_ids": ",".join(channel_ids)})
            +    else:
            +        kwargs.update({"channel_ids": channel_ids})
            +    return self.api_call("workflows.featured.list", params=kwargs)
            +
            +

            List the featured workflows for specified channels. +https://docs.slack.dev/reference/methods/workflows.featured.list

            +
            + +
            +
            + +Expand source code + +
            def workflows_featured_remove(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> Union[Future, SlackResponse]:
            +    """Remove featured workflows from a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.remove
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return self.api_call("workflows.featured.remove", params=kwargs)
            +
            + +
            + +
            +
            + +Expand source code + +
            def workflows_featured_set(
            +    self,
            +    *,
            +    channel_id: str,
            +    trigger_ids: Union[str, Sequence[str]],
            +    **kwargs,
            +) -> Union[Future, SlackResponse]:
            +    """Set featured workflows for a channel.
            +    https://docs.slack.dev/reference/methods/workflows.featured.set
            +    """
            +    kwargs.update({"channel_id": channel_id})
            +    if isinstance(trigger_ids, (list, tuple)):
            +        kwargs.update({"trigger_ids": ",".join(trigger_ids)})
            +    else:
            +        kwargs.update({"trigger_ids": trigger_ids})
            +    return self.api_call("workflows.featured.set", params=kwargs)
            +
            +
            def workflows_stepCompleted(self, *, workflow_step_execute_id: str, outputs: dict | None = None, **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -14105,7 +14297,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -14115,7 +14307,7 @@

            Methods

            return self.api_call("workflows.stepCompleted", json=kwargs)

            Indicate a successful outcome of a workflow step's execution. -https://api.slack.com/methods/workflows.stepCompleted

            +https://docs.slack.dev/reference/methods/workflows.stepCompleted

            def workflows_stepFailed(self, *, workflow_step_execute_id: str, error: Dict[str, str], **kwargs) ‑> _asyncio.Future | LegacySlackResponse @@ -14133,7 +14325,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -14146,7 +14338,7 @@

            Methods

            return self.api_call("workflows.stepFailed", json=kwargs)

            Indicate an unsuccessful outcome of a workflow step's execution. -https://api.slack.com/methods/workflows.stepFailed

            +https://docs.slack.dev/reference/methods/workflows.stepFailed

            def workflows_updateStep(self,
            *,
            workflow_step_edit_id: str,
            inputs: Dict[str, Any] | None = None,
            outputs: List[Dict[str, str]] | None = None,
            **kwargs) ‑> _asyncio.Future | LegacySlackResponse
            @@ -14165,7 +14357,7 @@

            Methods

            **kwargs, ) -> Union[Future, SlackResponse]: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: @@ -14177,7 +14369,7 @@

            Methods

            return self.api_call("workflows.updateStep", json=kwargs)

            Update the configuration for a workflow extension step. -https://api.slack.com/methods/workflows.updateStep

            +https://docs.slack.dev/reference/methods/workflows.updateStep

            Inherited members

            @@ -14510,6 +14702,10 @@

            views_publish
          • views_push
          • views_update
          • +
          • workflows_featured_add
          • +
          • workflows_featured_list
          • +
          • workflows_featured_remove
          • +
          • workflows_featured_set
          • workflows_stepCompleted
          • workflows_stepFailed
          • workflows_updateStep
          • diff --git a/docs/reference/webhook/async_client.html b/docs/reference/webhook/async_client.html index 9c1a83fd0..15c7e4a45 100644 --- a/docs/reference/webhook/async_client.html +++ b/docs/reference/webhook/async_client.html @@ -84,7 +84,7 @@

            Classes

            ): """API client for Incoming Webhooks and `response_url` - https://api.slack.com/messaging/webhooks + https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/ Args: url: Complete URL to send data (e.g., `https://hooks.slack.com/XXX`) @@ -302,7 +302,7 @@

            Classes

            return resp

            API client for Incoming Webhooks and response_url

            -

            https://api.slack.com/messaging/webhooks

            +

            https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/

            Args

            url
            diff --git a/docs/reference/webhook/client.html b/docs/reference/webhook/client.html index 6400d63d6..aebec5a3f 100644 --- a/docs/reference/webhook/client.html +++ b/docs/reference/webhook/client.html @@ -78,7 +78,7 @@

            Classes

            ): """API client for Incoming Webhooks and `response_url` - https://api.slack.com/messaging/webhooks + https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/ Args: url: Complete URL to send data (e.g., `https://hooks.slack.com/XXX`) @@ -297,19 +297,19 @@

            Classes

            http_resp = opener.open(req, timeout=self.timeout) else: http_resp = urlopen(req, context=self.ssl, timeout=self.timeout) - charset: str = http_resp.headers.get_content_charset() or "utf-8" # type: ignore[union-attr] - response_body: str = http_resp.read().decode(charset) # type: ignore[union-attr] + charset: str = http_resp.headers.get_content_charset() or "utf-8" + response_body: str = http_resp.read().decode(charset) resp = WebhookResponse( url=url, - status_code=http_resp.status, # type: ignore[union-attr] + status_code=http_resp.status, body=response_body, - headers=http_resp.headers, # type: ignore[arg-type, union-attr] + headers=http_resp.headers, # type: ignore[arg-type] ) _debug_log_response(self.logger, resp) return resp

            API client for Incoming Webhooks and response_url

            -

            https://api.slack.com/messaging/webhooks

            +

            https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/

            Args

            url
            diff --git a/docs/reference/webhook/index.html b/docs/reference/webhook/index.html index 31f7a7e40..51c387ef4 100644 --- a/docs/reference/webhook/index.html +++ b/docs/reference/webhook/index.html @@ -100,7 +100,7 @@

            Classes

            ): """API client for Incoming Webhooks and `response_url` - https://api.slack.com/messaging/webhooks + https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/ Args: url: Complete URL to send data (e.g., `https://hooks.slack.com/XXX`) @@ -319,19 +319,19 @@

            Classes

            http_resp = opener.open(req, timeout=self.timeout) else: http_resp = urlopen(req, context=self.ssl, timeout=self.timeout) - charset: str = http_resp.headers.get_content_charset() or "utf-8" # type: ignore[union-attr] - response_body: str = http_resp.read().decode(charset) # type: ignore[union-attr] + charset: str = http_resp.headers.get_content_charset() or "utf-8" + response_body: str = http_resp.read().decode(charset) resp = WebhookResponse( url=url, - status_code=http_resp.status, # type: ignore[union-attr] + status_code=http_resp.status, body=response_body, - headers=http_resp.headers, # type: ignore[arg-type, union-attr] + headers=http_resp.headers, # type: ignore[arg-type] ) _debug_log_response(self.logger, resp) return resp

            API client for Incoming Webhooks and response_url

            -

            https://api.slack.com/messaging/webhooks

            +

            https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/

            Args

            url
            diff --git a/integration_tests/web/test_conversations_connect.py b/integration_tests/web/test_conversations_connect.py index 0e5271c8f..1d988946c 100644 --- a/integration_tests/web/test_conversations_connect.py +++ b/integration_tests/web/test_conversations_connect.py @@ -22,7 +22,7 @@ class TestWebClient(unittest.TestCase): one for the inviting workspace(list and send invites) another for the recipient workspace (accept and approve) sent invites. Before being able to run this test suite, we also need to have manually created a slack connect shared channel and added - these two bots as members first. See: https://api.slack.com/apis/connect + these two bots as members first. See: https://docs.slack.dev/apis/slack-connect/ In addition to conversations.connect:* scopes, your sender bot token should have channels:manage scopes. """ diff --git a/pyproject.toml b/pyproject.toml index cb2e28d11..1a1c5761b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ classifiers = [ [project.urls] -Documentation = "https://slack.dev/python-slack-sdk/" +Documentation = "https://docs.slack.dev/tools/python-slack-sdk/" [tool.setuptools.packages.find] include = ["slack*", "slack_sdk*"] diff --git a/slack/deprecation.py b/slack/deprecation.py index 6352e66a7..8c5e8207b 100644 --- a/slack/deprecation.py +++ b/slack/deprecation.py @@ -9,6 +9,6 @@ def show_message(old: str, new: str) -> None: message = ( f"{old} package is deprecated. Please use {new} package instead. " - "For more info, go to https://slack.dev/python-slack-sdk/v3-migration/" + "For more info, go to https://docs.slack.dev/tools/python-slack-sdk/v3-migration/" ) warnings.warn(message) diff --git a/slack/signature/verifier.py b/slack/signature/verifier.py index f5923ced8..da9c6ef5e 100644 --- a/slack/signature/verifier.py +++ b/slack/signature/verifier.py @@ -17,7 +17,7 @@ def __init__(self, signing_secret: str, clock: Clock = Clock()): Slack signs its requests using a secret that's unique to your app. With the help of signing secrets, your app can more confidently verify whether requests from us are authentic. - https://api.slack.com/authentication/verifying-requests-from-slack + https://docs.slack.dev/authentication/verifying-requests-from-slack/ """ self.signing_secret = signing_secret self.clock = clock diff --git a/slack/web/base_client.py b/slack/web/base_client.py index dc52a9915..28f597411 100644 --- a/slack/web/base_client.py +++ b/slack/web/base_client.py @@ -472,7 +472,7 @@ def validate_slack_signature(*, signing_secret: str, data: str, timestamp: str, header. The signature is created by combining the signing secret with the body of the request we're sending using a standard HMAC-SHA256 keyed hash. - https://api.slack.com/docs/verifying-requests-from-slack#how_to_make_a_request_signature_in_4_easy_steps__an_overview + https://docs.slack.dev/authentication/verifying-requests-from-slack/ Args: signing_secret: Your application's signing secret, available in the diff --git a/slack/web/deprecation.py b/slack/web/deprecation.py index 5ce5f067e..059bf149f 100644 --- a/slack/web/deprecation.py +++ b/slack/web/deprecation.py @@ -1,7 +1,7 @@ import os import warnings -# https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api +# https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ deprecated_method_prefixes_2020_01 = [ "channels.", "groups.", @@ -25,6 +25,6 @@ def show_2020_01_deprecation(method_name: str): message = ( f"{method_name} is deprecated. Please use the Conversations API instead. " "For more info, go to " - "https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api" + "https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/" ) warnings.warn(message) diff --git a/slack_sdk/__init__.py b/slack_sdk/__init__.py index cb928798e..3adab865a 100644 --- a/slack_sdk/__init__.py +++ b/slack_sdk/__init__.py @@ -1,5 +1,5 @@ """ -* The SDK website: https://slack.dev/python-slack-sdk/ +* The SDK website: https://docs.slack.dev/tools/python-slack-sdk * PyPI package: https://pypi.org/project/slack-sdk/ Here is the list of key modules in this SDK: diff --git a/slack_sdk/audit_logs/__init__.py b/slack_sdk/audit_logs/__init__.py index 0460ad2eb..26a3b30d6 100644 --- a/slack_sdk/audit_logs/__init__.py +++ b/slack_sdk/audit_logs/__init__.py @@ -1,6 +1,6 @@ """Audit Logs API is a set of APIs for monitoring what’s happening in your Enterprise Grid organization. -Refer to https://slack.dev/python-slack-sdk/audit-logs/ for details. +Refer to https://docs.slack.dev/tools/python-slack-sdk/audit-logs for details. """ from .v1.client import AuditLogsClient from .v1.response import AuditLogsResponse diff --git a/slack_sdk/audit_logs/v1/__init__.py b/slack_sdk/audit_logs/v1/__init__.py index 24677fe37..9d03c76ce 100644 --- a/slack_sdk/audit_logs/v1/__init__.py +++ b/slack_sdk/audit_logs/v1/__init__.py @@ -1,4 +1,4 @@ """Audit Logs API is a set of APIs for monitoring what’s happening in your Enterprise Grid organization. -Refer to https://slack.dev/python-slack-sdk/audit-logs/ for details. +Refer to https://docs.slack.dev/tools/python-slack-sdk/audit-logs for details. """ diff --git a/slack_sdk/audit_logs/v1/async_client.py b/slack_sdk/audit_logs/v1/async_client.py index 24e22ec6a..7de8fd5b2 100644 --- a/slack_sdk/audit_logs/v1/async_client.py +++ b/slack_sdk/audit_logs/v1/async_client.py @@ -1,6 +1,6 @@ """Audit Logs API is a set of APIs for monitoring what’s happening in your Enterprise Grid organization. -Refer to https://slack.dev/python-slack-sdk/audit-logs/ for details. +Refer to https://docs.slack.dev/tools/python-slack-sdk/audit-logs for details. """ import json @@ -59,7 +59,7 @@ def __init__( retry_handlers: Optional[List[AsyncRetryHandler]] = None, ): """API client for Audit Logs API - See https://api.slack.com/admins/audit-logs for more details + See https://docs.slack.dev/admins/audit-logs-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` diff --git a/slack_sdk/audit_logs/v1/client.py b/slack_sdk/audit_logs/v1/client.py index b62bf72df..704b872fa 100644 --- a/slack_sdk/audit_logs/v1/client.py +++ b/slack_sdk/audit_logs/v1/client.py @@ -1,6 +1,6 @@ """Audit Logs API is a set of APIs for monitoring what’s happening in your Enterprise Grid organization. -Refer to https://slack.dev/python-slack-sdk/audit-logs/ for details. +Refer to https://docs.slack.dev/tools/python-slack-sdk/audit-logs for details. """ import json @@ -54,7 +54,7 @@ def __init__( retry_handlers: Optional[List[RetryHandler]] = None, ): """API client for Audit Logs API - See https://api.slack.com/admins/audit-logs for more details + See https://docs.slack.dev/admins/audit-logs-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` diff --git a/slack_sdk/models/attachments/__init__.py b/slack_sdk/models/attachments/__init__.py index e516ad35b..85695cfb1 100644 --- a/slack_sdk/models/attachments/__init__.py +++ b/slack_sdk/models/attachments/__init__.py @@ -19,8 +19,8 @@ class Action(JsonObject): """Action in attachments - https://api.slack.com/messaging/composing/layouts#attachments - https://api.slack.com/legacy/interactive-message-field-guide#message_action_fields + https://docs.slack.dev/messaging/formatting-message-text/#rich-layouts + https://docs.slack.dev/legacy/legacy-messaging/legacy-interactive-message-field-guide/#message_action_fields """ attributes = {"name", "text", "url"} @@ -66,7 +66,7 @@ def __init__( ): """Simple button for use inside attachments - https://api.slack.com/legacy/message-buttons + https://docs.slack.dev/legacy/legacy-messaging/legacy-message-buttons/ Args: name: Name this specific action. The name will be returned to your @@ -108,7 +108,7 @@ class ActionLinkButton(Action): def __init__(self, *, text: str, url: str): """A simple interactive button that just opens a URL - https://api.slack.com/messaging/composing/layouts#attachments + https://docs.slack.dev/messaging/formatting-message-text/#rich-layouts Args: text: text to display on the button, eg 'Click Me!" @@ -150,7 +150,7 @@ class ActionUserSelector(AbstractActionSelector): def __init__(self, name: str, text: str, selected_user: Optional[Option] = None): """Automatically populate the selector with a list of users in the workspace. - https://api.slack.com/legacy/message-menus#allow_users_to_select_from_a_list_of_members + https://docs.slack.dev/legacy/legacy-messaging/legacy-adding-menus-to-messages/#menu_team_members Args: name: Name this specific action. The name will be returned to your @@ -172,7 +172,7 @@ def __init__(self, name: str, text: str, selected_channel: Optional[Option] = No Automatically populate the selector with a list of public channels in the workspace. - https://api.slack.com/legacy/message-menus#let_users_choose_one_of_their_workspace_s_channels + https://docs.slack.dev/legacy/legacy-messaging/legacy-adding-menus-to-messages/#menu_channels Args: name: Name this specific action. The name will be returned to your @@ -194,7 +194,7 @@ def __init__(self, name: str, text: str, selected_conversation: Optional[Option] Automatically populate the selector with a list of conversations they have in the workspace. - https://api.slack.com/legacy/message-menus#let_users_choose_one_of_their_conversations + https://docs.slack.dev/legacy/legacy-messaging/legacy-adding-menus-to-messages/#menu_conversations Args: name: Name this specific action. The name will be returned to your @@ -226,7 +226,7 @@ def __init__( """ Populate a message select menu from your own application dynamically. - https://api.slack.com/legacy/message-menus#populate_message_menus_dynamically + https://docs.slack.dev/legacy/legacy-messaging/legacy-adding-menus-to-messages/#menu_dynamic Args: name: Name this specific action. The name will be returned to your @@ -312,7 +312,7 @@ def __init__( A supplemental object that will display after the rest of the message. Considered legacy - recommended replacement is to use message blocks instead. - https://api.slack.com/reference/messaging/attachments#fields + https://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments#fields Args: text: The main body text of the attachment. It can be formatted as @@ -444,7 +444,7 @@ def __init__( A bridge between legacy attachments and Block Kit formatting - pass a list of Block objects directly to this attachment. - https://api.slack.com/reference/messaging/attachments#fields + https://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments#fields Args: blocks: a sequence of Block objects @@ -501,8 +501,8 @@ def __init__( An Attachment, but designed to contain interactive Actions Considered legacy - recommended replacement is to use message blocks instead. - https://api.slack.com/legacy/interactive-message-field-guide#attachment_fields - https://api.slack.com/reference/messaging/attachments#fields + https://docs.slack.dev/legacy/legacy-messaging/legacy-interactive-message-field-guide/#attachment_fields + https://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments#fields Args: actions: A collection of Action objects to include in the attachment. diff --git a/slack_sdk/models/blocks/__init__.py b/slack_sdk/models/blocks/__init__.py index 455d28d5c..ecaa2e996 100644 --- a/slack_sdk/models/blocks/__init__.py +++ b/slack_sdk/models/blocks/__init__.py @@ -2,8 +2,8 @@ To learn more about Block Kit, please check the following resources and tools: -* https://api.slack.com/block-kit -* https://api.slack.com/reference/block-kit/blocks +* https://docs.slack.dev/block-kit/ +* https://docs.slack.dev/reference/block-kit/blocks * https://app.slack.com/block-kit-builder """ from .basic_components import ButtonStyles diff --git a/slack_sdk/models/blocks/basic_components.py b/slack_sdk/models/blocks/basic_components.py index d6a1aed97..3570656bc 100644 --- a/slack_sdk/models/blocks/basic_components.py +++ b/slack_sdk/models/blocks/basic_components.py @@ -85,7 +85,7 @@ def attributes(self) -> Set[str]: # type: ignore[override] def __init__(self, *, text: str, emoji: Optional[bool] = None): """A plain text object, meaning markdown characters will not be parsed as formatting information. - https://api.slack.com/reference/block-kit/composition-objects#text + https://docs.slack.dev/reference/block-kit/composition-objects/text-object Args: text (required): The text for the block. This field accepts any of the standard text formatting markup @@ -118,7 +118,7 @@ def attributes(self) -> Set[str]: # type: ignore[override] def __init__(self, *, text: str, verbatim: Optional[bool] = None): """A Markdown text object, meaning markdown characters will be parsed as formatting information. - https://api.slack.com/reference/block-kit/composition-objects#text + https://docs.slack.dev/reference/block-kit/composition-objects/text-object Args: text (required): The text for the block. This field accepts any of the standard text formatting markup @@ -188,13 +188,13 @@ def __init__( (StaticDialogSelectElement) Blocks: - https://api.slack.com/reference/block-kit/composition-objects#option + https://docs.slack.dev/reference/block-kit/composition-objects/option-object Dialogs: - https://api.slack.com/dialogs#select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#select_elements Legacy interactive attachments: - https://api.slack.com/legacy/interactive-message-field-guide#option_fields + https://docs.slack.dev/legacy/legacy-messaging/legacy-interactive-message-field-guide/#option_fields Args: label: A short, user-facing string to label this option to users. @@ -330,13 +330,13 @@ def __init__( UI) and a list of Option objects. Blocks: - https://api.slack.com/reference/block-kit/composition-objects#option-group + https://docs.slack.dev/reference/block-kit/composition-objects/option-group-object Dialogs: - https://api.slack.com/dialogs#select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#select_elements Legacy interactive attachments: - https://api.slack.com/legacy/interactive-message-field-guide#option_groups_to_place_within_message_menu_actions + https://docs.slack.dev/legacy/legacy-messaging/legacy-interactive-message-field-guide/#option_groups Args: label: Text to display at the top of this group of options. @@ -427,7 +427,7 @@ def __init__( An object that defines a dialog that provides a confirmation step to any interactive element. This dialog will ask the user to confirm their action by offering a confirm and deny button. - https://api.slack.com/reference/block-kit/composition-objects#confirm + https://docs.slack.dev/reference/block-kit/composition-objects/confirmation-dialog-object/ """ self._title = TextObject.parse(title, default_type=PlainTextObject.type) self._text = TextObject.parse(text, default_type=MarkdownTextObject.type) @@ -514,7 +514,7 @@ def __init__( ): """ Determines when a plain-text input element will return a block_actions interaction payload. - https://api.slack.com/reference/block-kit/composition-objects#dispatch_action_config + https://docs.slack.dev/reference/block-kit/composition-objects/dispatch-action-configuration-object """ self._trigger_actions_on = trigger_actions_on or [] @@ -571,7 +571,7 @@ def __init__( url: Optional[str] = None, ): """An object containing Slack file information to be used in an image block or image element. - https://api.slack.com/reference/block-kit/composition-objects#slack_file + https://docs.slack.dev/reference/block-kit/composition-objects/slack-file-object Args: id: Slack ID of the file. diff --git a/slack_sdk/models/blocks/block_elements.py b/slack_sdk/models/blocks/block_elements.py index 4f0fc6d2d..bcef28abe 100644 --- a/slack_sdk/models/blocks/block_elements.py +++ b/slack_sdk/models/blocks/block_elements.py @@ -28,7 +28,7 @@ class BlockElement(JsonObject, metaclass=ABCMeta): """Block Elements are things that exists inside of your Blocks. - https://api.slack.com/reference/block-kit/block-elements + https://docs.slack.dev/reference/block-kit/block-elements/ """ attributes = {"type"} @@ -205,7 +205,7 @@ def __init__( ): """An interactive element that inserts a button. The button can be a trigger for anything from opening a simple link to starting a complex workflow. - https://api.slack.com/reference/block-kit/block-elements#button + https://docs.slack.dev/reference/block-kit/block-elements/button-element/ Args: text (required): A text object that defines the button's text. @@ -277,7 +277,7 @@ def __init__( """A simple button that simply opens a given URL. You will still receive an interaction payload and will need to send an acknowledgement response. This is a helper class that makes creating links simpler. - https://api.slack.com/reference/block-kit/block-elements#button + https://docs.slack.dev/reference/block-kit/block-elements/button-element/ Args: text (required): A text object that defines the button's text. @@ -332,7 +332,7 @@ def __init__( **others: dict, ): """A checkbox group that allows a user to choose multiple items from a list of possible options. - https://api.slack.com/reference/block-kit/block-elements#checkboxes + https://docs.slack.dev/reference/block-kit/block-elements/checkboxes-element/ Args: action_id (required): An identifier for the action triggered when the checkbox group is changed. @@ -384,7 +384,7 @@ def __init__( """ An element which lets users easily select a date from a calendar style UI. Date picker elements can be used inside of SectionBlocks and ActionsBlocks. - https://api.slack.com/reference/block-kit/block-elements#datepicker + https://docs.slack.dev/reference/block-kit/block-elements/date-picker-element Args: action_id (required): An identifier for the action triggered when a menu option is selected. @@ -447,7 +447,7 @@ def __init__( On desktop clients, this time picker will take the form of a dropdown list with free-text entry for precise choices. On mobile clients, the time picker will use native time picker UIs. - https://api.slack.com/reference/block-kit/block-elements#timepicker + https://docs.slack.dev/reference/block-kit/block-elements/time-picker-element Args: action_id (required): An identifier for the action triggered when a time is selected. @@ -509,7 +509,7 @@ def __init__( date picker will take the form of a dropdown calendar. Both options will have free-text entry for precise choices. On mobile clients, the time picker and date picker will use native UIs. - https://api.slack.com/reference/block-kit/block-elements#datetimepicker + https://docs.slack.dev/reference/block-kit/block-elements/date-picker-element/ Args: action_id (required): An identifier for the action triggered when a time is selected. You can use this @@ -564,7 +564,7 @@ def __init__( """An element to insert an image - this element can be used in section and context blocks only. If you want a block with only an image in it, you're looking for the image block. - https://api.slack.com/reference/block-kit/block-elements#image + https://docs.slack.dev/reference/block-kit/block-elements/image-element Args: alt_text (required): A plain-text summary of the image. This should not contain any markup. @@ -614,7 +614,7 @@ def __init__( **others: dict, ): """This is the simplest form of select menu, with a static list of options passed in when defining the element. - https://api.slack.com/reference/block-kit/block-elements#static_select + https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#static_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -690,7 +690,7 @@ def __init__( ): """ This is the simplest form of select menu, with a static list of options passed in when defining the element. - https://api.slack.com/reference/block-kit/block-elements#static_multi_select + https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element#static_multi_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -768,7 +768,7 @@ def __init__( **others: dict, ): """This is the simplest form of select menu, with a static list of options passed in when defining the element. - https://api.slack.com/reference/block-kit/block-elements#static_select + https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#static_select Args: action_id (required): An identifier for the action triggered when a menu option is selected. @@ -846,7 +846,7 @@ def __init__( """ This select menu will load its options from an external data source, allowing for a dynamic list of options. - https://api.slack.com/reference/block-kit/block-elements#external_select + https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#external_select Args: action_id (required): An identifier for the action triggered when a menu option is selected. @@ -903,7 +903,7 @@ def __init__( """ This select menu will load its options from an external data source, allowing for a dynamic list of options. - https://api.slack.com/reference/block-kit/block-elements#external_multi_select + https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element#external_multi_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -965,7 +965,7 @@ def __init__( """ This select menu will populate its options with a list of Slack users visible to the current user in the active workspace. - https://api.slack.com/reference/block-kit/block-elements#users_select + https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#users_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -1013,7 +1013,7 @@ def __init__( """ This select menu will populate its options with a list of Slack users visible to the current user in the active workspace. - https://api.slack.com/reference/block-kit/block-elements#users_multi_select + https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element#users_multi_select Args: action_id (required): An identifier for the action triggered when a menu option is selected. @@ -1061,7 +1061,7 @@ def __init__( ): """Provides a way to filter the list of options in a conversations select menu or conversations multi-select menu. - https://api.slack.com/reference/block-kit/composition-objects#filter_conversations + https://docs.slack.dev/reference/block-kit/composition-objects/conversation-filter-object Args: include: Indicates which type of conversations should be included in the list. @@ -1120,7 +1120,7 @@ def __init__( """ This select menu will populate its options with a list of public and private channels, DMs, and MPIMs visible to the current user in the active workspace. - https://api.slack.com/reference/block-kit/block-elements#conversation_select + https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element/#conversations_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -1188,7 +1188,7 @@ def __init__( """ This multi-select menu will populate its options with a list of public and private channels, DMs, and MPIMs visible to the current user in the active workspace. - https://api.slack.com/reference/block-kit/block-elements#conversation_multi_select + https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element/#conversation_multi_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -1251,7 +1251,7 @@ def __init__( """ This select menu will populate its options with a list of public channels visible to the current user in the active workspace. - https://api.slack.com/reference/block-kit/block-elements#channel_select + https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element/#channels_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -1304,7 +1304,7 @@ def __init__( """ This multi-select menu will populate its options with a list of public channels visible to the current user in the active workspace. - https://api.slack.com/reference/block-kit/block-elements#channel_multi_select + https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element#channel_multi_select Args: placeholder (required): A plain_text only text object that defines the placeholder text shown on the menu. @@ -1413,7 +1413,7 @@ def __init__( where a user can enter freeform data. It can appear as a single-line field or a larger textarea using the multiline flag. Plain-text input elements can be used inside of SectionBlocks and ActionsBlocks. - https://api.slack.com/reference/block-kit/block-elements#input + https://docs.slack.dev/reference/block-kit/block-elements/plain-text-input-element Args: action_id (required): An identifier for the input value when the parent modal is submitted. @@ -1477,7 +1477,7 @@ def __init__( **others: dict, ): """ - https://api.slack.com/reference/block-kit/block-elements#email + https://docs.slack.dev/reference/block-kit/block-elements/email-input-element Args: action_id (required): An identifier for the input value when the parent modal is submitted. @@ -1534,7 +1534,7 @@ def __init__( """ A URL input element, similar to the Plain-text input element, creates a single line field where a user can enter URL-encoded data. - https://api.slack.com/reference/block-kit/block-elements#url + https://docs.slack.dev/reference/block-kit/block-elements/url-input-element Args: action_id (required): An identifier for the input value when the parent modal is submitted. @@ -1595,7 +1595,7 @@ def __init__( **others: dict, ): """ - https://api.slack.com/reference/block-kit/block-elements#number + https://docs.slack.dev/reference/block-kit/block-elements/number-input-element/ Args: action_id (required): An identifier for the input value when the parent modal is submitted. @@ -1655,7 +1655,7 @@ def __init__( **others: dict, ): """ - https://api.slack.com/reference/block-kit/block-elements#file_input + https://docs.slack.dev/reference/block-kit/block-elements/file-input-element Args: action_id (required): An identifier for the input value when the parent modal is submitted. @@ -1701,7 +1701,7 @@ def __init__( **others: dict, ): """A radio button group that allows a user to choose one item from a list of possible options. - https://api.slack.com/reference/block-kit/block-elements#radio + https://docs.slack.dev/reference/block-kit/block-elements/radio-button-group-element Args: action_id (required): An identifier for the action triggered when the radio button group is changed. @@ -1761,7 +1761,7 @@ def __init__( buttons. You can also specify simple URL links as overflow menu options, instead of actions. - https://api.slack.com/reference/block-kit/block-elements#overflow + https://docs.slack.dev/reference/block-kit/block-elements/overflow-menu-element Args: action_id (required): An identifier for the action triggered when a menu option is selected. @@ -1809,7 +1809,7 @@ def __init__( """Allows users to run a link trigger with customizable inputs Interactive component - but interactions with workflow button elements will not send block_actions events, since these are used to start new workflow runs. - https://api.slack.com/reference/block-kit/block-elements#workflow_button + https://docs.slack.dev/reference/block-kit/block-elements/workflow-button-element Args: text (required): A text object that defines the button's text. diff --git a/slack_sdk/models/blocks/blocks.py b/slack_sdk/models/blocks/blocks.py index 82a154056..a32c2c326 100644 --- a/slack_sdk/models/blocks/blocks.py +++ b/slack_sdk/models/blocks/blocks.py @@ -26,7 +26,7 @@ class Block(JsonObject): """Blocks are a series of components that can be combined to create visually rich and compellingly interactive messages. - https://api.slack.com/reference/block-kit/blocks + https://docs.slack.dev/reference/block-kit/blocks """ attributes = {"block_id", "type"} @@ -130,7 +130,7 @@ def __init__( **others: dict, ): """A section is one of the most flexible blocks available. - https://api.slack.com/reference/block-kit/blocks#section + https://docs.slack.dev/reference/block-kit/blocks/section-block Args: block_id (required): A string acting as a unique identifier for a block. @@ -198,7 +198,7 @@ def __init__( **others: dict, ): """A content divider, like an
            , to split up different blocks inside of a message. - https://api.slack.com/reference/block-kit/blocks#divider + https://docs.slack.dev/reference/block-kit/blocks/divider-block Args: block_id: A string acting as a unique identifier for a block. If not specified, one will be generated. @@ -233,7 +233,7 @@ def __init__( **others: dict, ): """A simple image block, designed to make those cat photos really pop. - https://api.slack.com/reference/block-kit/blocks#image + https://docs.slack.dev/reference/block-kit/blocks/image-block Args: alt_text (required): A plain-text summary of the image. This should not contain any markup. @@ -300,7 +300,7 @@ def __init__( **others: dict, ): """A block that is used to hold interactive elements. - https://api.slack.com/reference/block-kit/blocks#actions + https://docs.slack.dev/reference/block-kit/blocks/actions-block Args: elements (required): An array of interactive element objects - buttons, select menus, overflow menus, @@ -338,7 +338,7 @@ def __init__( **others: dict, ): """Displays message context, which can include both images and text. - https://api.slack.com/reference/block-kit/blocks#context + https://docs.slack.dev/reference/block-kit/blocks/context-block Args: elements (required): An array of image elements and text objects. Maximum number of items is 10. @@ -379,7 +379,7 @@ def __init__( ): """A block that collects information from users - it can hold a plain-text input element, a select menu element, a multi-select menu element, or a datepicker. - https://api.slack.com/reference/block-kit/blocks#input + https://docs.slack.dev/reference/block-kit/blocks/input-block Args: label (required): A label that appears above an input element in the form of a text object @@ -441,7 +441,7 @@ def __init__( **others: dict, ): """Displays a remote file. - https://api.slack.com/reference/block-kit/blocks#file + https://docs.slack.dev/reference/block-kit/blocks/file-block Args: external_id (required): The external unique ID for this file. @@ -475,7 +475,7 @@ def __init__( **others: dict, ): """Displays a call information - https://api.slack.com/reference/block-kit/blocks#call + https://docs.slack.dev/reference/block-kit/blocks#call """ super().__init__(type=self.type, block_id=block_id) show_unknown_key_warning(self, others) @@ -501,7 +501,7 @@ def __init__( **others: dict, ): """A header is a plain-text block that displays in a larger, bold font. - https://api.slack.com/reference/block-kit/blocks#header + https://docs.slack.dev/reference/block-kit/blocks/header-block Args: block_id: A string acting as a unique identifier for a block. If not specified, one will be generated. @@ -604,7 +604,7 @@ def __init__( (e.g. link unfurls, messages, modals, App Home) — anywhere you can put blocks! To use the video block within your app, you must have the links.embed:write scope. - https://api.slack.com/reference/block-kit/blocks#video + https://docs.slack.dev/reference/block-kit/blocks/video-block Args: block_id: A string acting as a unique identifier for a block. If not specified, one will be generated. @@ -676,7 +676,7 @@ def __init__( **others: dict, ): """A block that is used to hold interactive elements. - https://api.slack.com/reference/block-kit/blocks#rich_text + https://docs.slack.dev/reference/block-kit/blocks/rich-text-block Args: elements (required): An array of rich text objects - diff --git a/slack_sdk/models/dialogs/__init__.py b/slack_sdk/models/dialogs/__init__.py index 82a40269e..cc67ed37e 100644 --- a/slack_sdk/models/dialogs/__init__.py +++ b/slack_sdk/models/dialogs/__init__.py @@ -111,7 +111,7 @@ class DialogTextField(DialogTextComponent): """ Text elements are single-line plain text fields. - https://api.slack.com/dialogs#text_elements + https://docs.slack.dev/legacy/legacy-dialogs/#text_elements """ type = "text" @@ -125,7 +125,7 @@ class DialogTextArea(DialogTextComponent): answer from users. The element UI provides a remaining character count to the max_length you have set or the default, 3000. - https://api.slack.com/dialogs#textarea_elements + https://docs.slack.dev/legacy/legacy-dialogs/#textarea_elements """ type = "textarea" @@ -199,7 +199,7 @@ class DialogStaticSelector(AbstractDialogSelector): single item from a list. True to web roots, this selection is displayed as a dropdown menu. - https://api.slack.com/dialogs#select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#select_elements """ data_source = "static" @@ -224,7 +224,7 @@ def __init__( A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects - https://api.slack.com/dialogs#attributes_select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -277,7 +277,7 @@ def __init__( assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope. - https://api.slack.com/dialogs#dynamic_select_elements_users + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users Args: name: Name of form element. Required. No more than 300 characters. @@ -313,7 +313,7 @@ def __init__( You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -350,7 +350,7 @@ def __init__( private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing. - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -395,7 +395,7 @@ def __init__( A list of options can be loaded from an external URL and used in your dialog menus. - https://api.slack.com/dialogs#dynamic_select_elements_external + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external Args: name: Name of form element. Required. No more than 300 characters. @@ -522,7 +522,7 @@ def text_field( """ Text elements are single-line plain text fields. - https://api.slack.com/dialogs#attributes_text_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_text_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -577,7 +577,7 @@ def text_area( character count to the max_length you have set or the default, 3000. - https://api.slack.com/dialogs#attributes_textarea_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_textarea_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -630,7 +630,7 @@ def static_selector( A select element may contain up to 100 selections, provided as a list of Option or OptionGroup objects - https://api.slack.com/dialogs#attributes_select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#attributes_select_elements Args: name: Name of form element. Required. No more than 300 characters. @@ -673,7 +673,7 @@ def external_selector( A list of options can be loaded from an external URL and used in your dialog menus. - https://api.slack.com/dialogs#dynamic_select_elements_external + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_external Args: name: Name of form element. Required. No more than 300 characters. @@ -716,7 +716,7 @@ def user_selector( assignee. Slack pre-populates the user list in client-side, so your app doesn't need access to a related OAuth scope. - https://api.slack.com/dialogs#dynamic_select_elements_users + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_users Args: name: Name of form element. Required. No more than 300 characters. @@ -751,7 +751,7 @@ def channel_selector( You can also provide a select menu with a list of channels. Specify your data_source as channels to limit only to public channels - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -787,7 +787,7 @@ def conversation_selector( private channels, direct messages, MPIMs, and whatever else we consider a conversation-like thing. - https://api.slack.com/dialogs#dynamic_select_elements_channels_conversations + https://docs.slack.dev/legacy/legacy-dialogs/#dynamic_select_elements_channels_conversations Args: name: Name of form element. Required. No more than 300 characters. @@ -858,7 +858,7 @@ class ActionStaticSelector(AbstractActionSelector): single item from a list. True to web roots, this selection is displayed as a dropdown menu. - https://api.slack.com/dialogs#select_elements + https://docs.slack.dev/legacy/legacy-dialogs/#select_elements """ data_source = "static" @@ -877,7 +877,7 @@ def __init__( Help users make clear, concise decisions by providing a menu of options within messages. - https://api.slack.com/docs/message-menus + https://docs.slack.dev/legacy/legacy-messaging/legacy-adding-menus-to-messages/ Args: name: Name this specific action. The name will be returned to your diff --git a/slack_sdk/models/messages/__init__.py b/slack_sdk/models/messages/__init__.py index 610624e1c..47d42ddc6 100644 --- a/slack_sdk/models/messages/__init__.py +++ b/slack_sdk/models/messages/__init__.py @@ -7,7 +7,7 @@ class Link(BaseObject): def __init__(self, *, url: str, text: str): """Base class used to generate links in Slack's not-quite Markdown, not quite HTML syntax - https://api.slack.com/reference/surfaces/formatting#linking_to_urls + https://docs.slack.dev/messaging/formatting-message-text/#linking_to_urls """ self.url = url self.text = text @@ -30,7 +30,7 @@ def __init__( link: Optional[str] = None, ): """Text containing a date or time should display that date in the local timezone of the person seeing the text. - https://api.slack.com/reference/surfaces/formatting#date-formatting + https://docs.slack.dev/messaging/formatting-message-text/#date-formatting """ if isinstance(date, datetime): epoch = int(date.timestamp()) @@ -55,7 +55,7 @@ class ObjectLink(Link): def __init__(self, *, object_id: str, text: str = ""): """Convenience class to create links to specific object types - https://api.slack.com/reference/surfaces/formatting#linking-channels + https://docs.slack.dev/messaging/formatting-message-text/#linking-channels """ prefix = self.prefix_mapping.get(object_id[0].upper(), "@") super().__init__(url=f"{prefix}{object_id}", text=text) @@ -64,7 +64,7 @@ def __init__(self, *, object_id: str, text: str = ""): class ChannelLink(Link): def __init__(self): """Represents an @channel link, which notifies everyone present in this channel. - https://api.slack.com/reference/surfaces/formatting + https://docs.slack.dev/messaging/formatting-message-text/ """ super().__init__(url="!channel", text="channel") @@ -72,7 +72,7 @@ def __init__(self): class HereLink(Link): def __init__(self): """Represents an @here link, which notifies all online users of this channel. - https://api.slack.com/reference/surfaces/formatting + https://docs.slack.dev/messaging/formatting-message-text/ """ super().__init__(url="!here", text="here") @@ -80,6 +80,6 @@ def __init__(self): class EveryoneLink(Link): def __init__(self): """Represents an @everyone link, which notifies all users of this workspace. - https://api.slack.com/reference/surfaces/formatting + https://docs.slack.dev/messaging/formatting-message-text/ """ super().__init__(url="!everyone", text="everyone") diff --git a/slack_sdk/models/messages/message.py b/slack_sdk/models/messages/message.py index 355e3befa..d4744aae7 100644 --- a/slack_sdk/models/messages/message.py +++ b/slack_sdk/models/messages/message.py @@ -35,7 +35,7 @@ def __init__( """ Create a message. - https://api.slack.com/messaging/composing#message-structure + https://docs.slack.dev/messaging/#message-structure Args: text: Plain or Slack Markdown-like text to display in the message. diff --git a/slack_sdk/models/metadata/__init__.py b/slack_sdk/models/metadata/__init__.py index 5a1b7a9e3..ddf24f1ae 100644 --- a/slack_sdk/models/metadata/__init__.py +++ b/slack_sdk/models/metadata/__init__.py @@ -5,7 +5,7 @@ class Metadata(JsonObject): """Message metadata - https://api.slack.com/metadata + https://docs.slack.dev/messaging/message-metadata/ """ attributes = { diff --git a/slack_sdk/models/views/__init__.py b/slack_sdk/models/views/__init__.py index 5bcc5a691..915f6eade 100644 --- a/slack_sdk/models/views/__init__.py +++ b/slack_sdk/models/views/__init__.py @@ -9,7 +9,7 @@ class View(JsonObject): """View object for modals and Home tabs. - https://api.slack.com/reference/surfaces/views + https://docs.slack.dev/reference/views/ """ types = ["modal", "home", "workflow_step"] diff --git a/slack_sdk/oauth/__init__.py b/slack_sdk/oauth/__init__.py index c16cd4972..286b87aa1 100644 --- a/slack_sdk/oauth/__init__.py +++ b/slack_sdk/oauth/__init__.py @@ -1,6 +1,6 @@ """Modules for implementing the Slack OAuth flow -https://slack.dev/python-slack-sdk/oauth/ +https://docs.slack.dev/tools/python-slack-sdk/oauth """ from .authorize_url_generator import AuthorizeUrlGenerator from .authorize_url_generator import OpenIDConnectAuthorizeUrlGenerator diff --git a/slack_sdk/oauth/installation_store/installation_store.py b/slack_sdk/oauth/installation_store/installation_store.py index 8003ba408..f01503408 100644 --- a/slack_sdk/oauth/installation_store/installation_store.py +++ b/slack_sdk/oauth/installation_store/installation_store.py @@ -1,6 +1,6 @@ """Slack installation data store -Refer to https://slack.dev/python-slack-sdk/oauth/ for details. +Refer to https://docs.slack.dev/tools/python-slack-sdk/oauth for details. """ from logging import Logger from typing import Optional diff --git a/slack_sdk/oauth/state_store/__init__.py b/slack_sdk/oauth/state_store/__init__.py index 9c96c2ed2..18eddaff6 100644 --- a/slack_sdk/oauth/state_store/__init__.py +++ b/slack_sdk/oauth/state_store/__init__.py @@ -1,6 +1,6 @@ """OAuth state parameter data store -Refer to https://slack.dev/python-slack-sdk/oauth/ for details. +Refer to https://docs.slack.dev/tools/python-slack-sdk/oauth for details. """ # from .amazon_s3_state_store import AmazonS3OAuthStateStore from .file import FileOAuthStateStore diff --git a/slack_sdk/scim/__init__.py b/slack_sdk/scim/__init__.py index b9db36556..901782a1c 100644 --- a/slack_sdk/scim/__init__.py +++ b/slack_sdk/scim/__init__.py @@ -2,7 +2,7 @@ SCIM is used by Single Sign-On (SSO) services and identity providers to manage people across a variety of tools, including Slack. -Refer to https://slack.dev/python-slack-sdk/scim/ for details. +Refer to https://docs.slack.dev/tools/python-slack-sdk/scim for details. """ from .v1.client import SCIMClient from .v1.response import SCIMResponse diff --git a/slack_sdk/scim/v1/__init__.py b/slack_sdk/scim/v1/__init__.py index e49bcddb0..2e2842568 100644 --- a/slack_sdk/scim/v1/__init__.py +++ b/slack_sdk/scim/v1/__init__.py @@ -2,5 +2,5 @@ SCIM is used by Single Sign-On (SSO) services and identity providers to manage people across a variety of tools, including Slack. -Refer to https://slack.dev/python-slack-sdk/scim/ for details. +Refer to https://docs.slack.dev/tools/python-slack-sdk/scim for details. """ diff --git a/slack_sdk/scim/v1/async_client.py b/slack_sdk/scim/v1/async_client.py index 9386c1716..87f836a74 100644 --- a/slack_sdk/scim/v1/async_client.py +++ b/slack_sdk/scim/v1/async_client.py @@ -73,7 +73,7 @@ def __init__( retry_handlers: Optional[List[AsyncRetryHandler]] = None, ): """API client for SCIM API - See https://api.slack.com/scim for more details + See https://docs.slack.dev/admins/scim-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` diff --git a/slack_sdk/scim/v1/client.py b/slack_sdk/scim/v1/client.py index d9a4c062d..82710c6cc 100644 --- a/slack_sdk/scim/v1/client.py +++ b/slack_sdk/scim/v1/client.py @@ -2,7 +2,7 @@ SCIM is used by Single Sign-On (SSO) services and identity providers to manage people across a variety of tools, including Slack. -Refer to https://slack.dev/python-slack-sdk/scim/ for details. +Refer to https://docs.slack.dev/tools/python-slack-sdk/scim/ for details. """ import json @@ -76,7 +76,7 @@ def __init__( retry_handlers: Optional[List[RetryHandler]] = None, ): """API client for SCIM API - See https://api.slack.com/scim for more details + See https://docs.slack.dev/admins/scim-api/ for more details Args: token: An admin user's token, which starts with `xoxp-` diff --git a/slack_sdk/signature/__init__.py b/slack_sdk/signature/__init__.py index b9e97953f..aa46e5348 100644 --- a/slack_sdk/signature/__init__.py +++ b/slack_sdk/signature/__init__.py @@ -18,7 +18,7 @@ def __init__(self, signing_secret: str, clock: Clock = Clock()): Slack signs its requests using a secret that's unique to your app. With the help of signing secrets, your app can more confidently verify whether requests from us are authentic. - https://api.slack.com/authentication/verifying-requests-from-slack + https://docs.slack.dev/authentication/verifying-requests-from-slack/ """ self.signing_secret = signing_secret self.clock = clock diff --git a/slack_sdk/socket_mode/__init__.py b/slack_sdk/socket_mode/__init__.py index 4859abf41..6cdee82cb 100644 --- a/slack_sdk/socket_mode/__init__.py +++ b/slack_sdk/socket_mode/__init__.py @@ -2,7 +2,7 @@ You can use slack_sdk.socket_mode.SocketModeClient for managing Socket Mode connections and performing interactions with Slack. -https://api.slack.com/apis/connections/socket +https://docs.slack.dev/apis/events-api/using-socket-mode/ """ from .builtin import SocketModeClient diff --git a/slack_sdk/socket_mode/aiohttp/__init__.py b/slack_sdk/socket_mode/aiohttp/__init__.py index fb4bcb113..7fde17752 100644 --- a/slack_sdk/socket_mode/aiohttp/__init__.py +++ b/slack_sdk/socket_mode/aiohttp/__init__.py @@ -1,7 +1,7 @@ """aiohttp based Socket Mode client -* https://api.slack.com/apis/connections/socket -* https://slack.dev/python-slack-sdk/socket-mode/ +* https://docs.slack.dev/apis/events-api/using-socket-mode/ +* https://docs.slack.dev/tools/python-slack-sdk/socket-mode/ * https://pypi.org/project/aiohttp/ """ diff --git a/slack_sdk/socket_mode/builtin/client.py b/slack_sdk/socket_mode/builtin/client.py index c462cf171..be80e0526 100644 --- a/slack_sdk/socket_mode/builtin/client.py +++ b/slack_sdk/socket_mode/builtin/client.py @@ -1,7 +1,7 @@ """The built-in Socket Mode client -* https://api.slack.com/apis/connections/socket -* https://slack.dev/python-slack-sdk/socket-mode/ +* https://docs.slack.dev/apis/events-api/using-socket-mode/ +* https://docs.slack.dev/tools/python-slack-sdk/socket-mode/ """ diff --git a/slack_sdk/socket_mode/websocket_client/__init__.py b/slack_sdk/socket_mode/websocket_client/__init__.py index 250e00727..e3e050196 100644 --- a/slack_sdk/socket_mode/websocket_client/__init__.py +++ b/slack_sdk/socket_mode/websocket_client/__init__.py @@ -1,7 +1,7 @@ """websocket-client bassd Socket Mode client -* https://api.slack.com/apis/connections/socket -* https://slack.dev/python-slack-sdk/socket-mode/ +* https://docs.slack.dev/apis/events-api/using-socket-mode/ +* https://docs.slack.dev/tools/python-slack-sdk/socket-mode/ * https://pypi.org/project/websocket-client/ """ diff --git a/slack_sdk/socket_mode/websockets/__init__.py b/slack_sdk/socket_mode/websockets/__init__.py index b589aae01..eaa00cf65 100644 --- a/slack_sdk/socket_mode/websockets/__init__.py +++ b/slack_sdk/socket_mode/websockets/__init__.py @@ -1,7 +1,7 @@ """websockets bassd Socket Mode client -* https://api.slack.com/apis/connections/socket -* https://slack.dev/python-slack-sdk/socket-mode/ +* https://docs.slack.dev/apis/events-api/using-socket-mode/ +* https://docs.slack.dev/tools/python-slack-sdk/socket-mode/ * https://pypi.org/project/websockets/ """ diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py index f9a31428a..d70a62267 100644 --- a/slack_sdk/web/async_client.py +++ b/slack_sdk/web/async_client.py @@ -37,7 +37,7 @@ class AsyncWebClient(AsyncBaseClient): """A WebClient allows apps to communicate with the Slack Platform's Web API. - https://api.slack.com/methods + https://docs.slack.dev/reference/methods The Slack Web API is an interface for querying information from and enacting change in a Slack workspace. @@ -108,7 +108,7 @@ async def admin_analytics_getFile( **kwargs, ) -> AsyncSlackResponse: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -130,7 +130,7 @@ async def admin_apps_approve( Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -157,7 +157,7 @@ async def admin_apps_approved_list( **kwargs, ) -> AsyncSlackResponse: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -178,7 +178,7 @@ async def admin_apps_clearResolution( **kwargs, ) -> AsyncSlackResponse: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -198,7 +198,7 @@ async def admin_apps_requests_cancel( **kwargs, ) -> AsyncSlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -218,7 +218,7 @@ async def admin_apps_requests_list( **kwargs, ) -> AsyncSlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -242,7 +242,7 @@ async def admin_apps_restrict( Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -269,7 +269,7 @@ async def admin_apps_restricted_list( **kwargs, ) -> AsyncSlackResponse: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -291,7 +291,7 @@ async def admin_apps_uninstall( ) -> AsyncSlackResponse: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -322,7 +322,7 @@ async def admin_apps_activities_list( **kwargs, ) -> AsyncSlackResponse: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -350,7 +350,7 @@ async def admin_apps_config_lookup( **kwargs, ) -> AsyncSlackResponse: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -367,7 +367,7 @@ async def admin_apps_config_set( **kwargs, ) -> AsyncSlackResponse: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -389,7 +389,7 @@ async def admin_auth_policy_getEntities( **kwargs, ) -> AsyncSlackResponse: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -409,7 +409,7 @@ async def admin_auth_policy_assignEntities( **kwargs, ) -> AsyncSlackResponse: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -428,7 +428,7 @@ async def admin_auth_policy_removeEntities( **kwargs, ) -> AsyncSlackResponse: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -447,7 +447,7 @@ async def admin_conversations_createForObjects( **kwargs, ) -> AsyncSlackResponse: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -463,7 +463,7 @@ async def admin_conversations_linkObjects( **kwargs, ) -> AsyncSlackResponse: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -482,7 +482,7 @@ async def admin_conversations_unlinkObjects( **kwargs, ) -> AsyncSlackResponse: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -501,7 +501,7 @@ async def admin_barriers_create( **kwargs, ) -> AsyncSlackResponse: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -521,7 +521,7 @@ async def admin_barriers_delete( **kwargs, ) -> AsyncSlackResponse: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return await self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs) @@ -536,7 +536,7 @@ async def admin_barriers_update( **kwargs, ) -> AsyncSlackResponse: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -557,7 +557,7 @@ async def admin_barriers_list( **kwargs, ) -> AsyncSlackResponse: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -577,7 +577,7 @@ async def admin_conversations_create( **kwargs, ) -> AsyncSlackResponse: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -597,7 +597,7 @@ async def admin_conversations_delete( **kwargs, ) -> AsyncSlackResponse: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.delete", params=kwargs) @@ -610,7 +610,7 @@ async def admin_conversations_invite( **kwargs, ) -> AsyncSlackResponse: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -627,7 +627,7 @@ async def admin_conversations_archive( **kwargs, ) -> AsyncSlackResponse: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.archive", params=kwargs) @@ -639,7 +639,7 @@ async def admin_conversations_unarchive( **kwargs, ) -> AsyncSlackResponse: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.unarchive", params=kwargs) @@ -652,7 +652,7 @@ async def admin_conversations_rename( **kwargs, ) -> AsyncSlackResponse: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return await self.api_call("admin.conversations.rename", params=kwargs) @@ -670,7 +670,7 @@ async def admin_conversations_search( **kwargs, ) -> AsyncSlackResponse: """Search for public or private channels in an Enterprise organization. - https://api.slack.com/methods/admin.conversations.search + https://docs.slack.dev/reference/methods/admin.conversations.search """ kwargs.update( { @@ -701,7 +701,7 @@ async def admin_conversations_convertToPrivate( **kwargs, ) -> AsyncSlackResponse: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.convertToPrivate", params=kwargs) @@ -713,7 +713,7 @@ async def admin_conversations_convertToPublic( **kwargs, ) -> AsyncSlackResponse: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.convertToPublic", params=kwargs) @@ -726,7 +726,7 @@ async def admin_conversations_setConversationPrefs( **kwargs, ) -> AsyncSlackResponse: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -742,7 +742,7 @@ async def admin_conversations_getConversationPrefs( **kwargs, ) -> AsyncSlackResponse: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.getConversationPrefs", params=kwargs) @@ -755,7 +755,7 @@ async def admin_conversations_disconnectShared( **kwargs, ) -> AsyncSlackResponse: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -775,7 +775,7 @@ async def admin_conversations_lookup( **kwargs, ) -> AsyncSlackResponse: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -803,7 +803,7 @@ async def admin_conversations_ekm_listOriginalConnectedChannelInfo( """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -830,7 +830,7 @@ async def admin_conversations_restrictAccess_addGroup( **kwargs, ) -> AsyncSlackResponse: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -853,7 +853,7 @@ async def admin_conversations_restrictAccess_listGroups( **kwargs, ) -> AsyncSlackResponse: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -876,7 +876,7 @@ async def admin_conversations_restrictAccess_removeGroup( **kwargs, ) -> AsyncSlackResponse: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -901,7 +901,7 @@ async def admin_conversations_setTeams( **kwargs, ) -> AsyncSlackResponse: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -925,7 +925,7 @@ async def admin_conversations_getTeams( **kwargs, ) -> AsyncSlackResponse: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -943,7 +943,7 @@ async def admin_conversations_getCustomRetention( **kwargs, ) -> AsyncSlackResponse: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.getCustomRetention", params=kwargs) @@ -955,7 +955,7 @@ async def admin_conversations_removeCustomRetention( **kwargs, ) -> AsyncSlackResponse: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return await self.api_call("admin.conversations.removeCustomRetention", params=kwargs) @@ -968,7 +968,7 @@ async def admin_conversations_setCustomRetention( **kwargs, ) -> AsyncSlackResponse: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return await self.api_call("admin.conversations.setCustomRetention", params=kwargs) @@ -980,7 +980,7 @@ async def admin_conversations_bulkArchive( **kwargs, ) -> AsyncSlackResponse: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return await self.api_call("admin.conversations.bulkArchive", params=kwargs) @@ -1005,7 +1005,7 @@ async def admin_conversations_bulkMove( **kwargs, ) -> AsyncSlackResponse: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -1023,7 +1023,7 @@ async def admin_emoji_add( **kwargs, ) -> AsyncSlackResponse: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return await self.api_call("admin.emoji.add", http_verb="GET", params=kwargs) @@ -1036,7 +1036,7 @@ async def admin_emoji_addAlias( **kwargs, ) -> AsyncSlackResponse: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return await self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs) @@ -1049,7 +1049,7 @@ async def admin_emoji_list( **kwargs, ) -> AsyncSlackResponse: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return await self.api_call("admin.emoji.list", http_verb="GET", params=kwargs) @@ -1061,7 +1061,7 @@ async def admin_emoji_remove( **kwargs, ) -> AsyncSlackResponse: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return await self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs) @@ -1074,7 +1074,7 @@ async def admin_emoji_rename( **kwargs, ) -> AsyncSlackResponse: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return await self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs) @@ -1089,7 +1089,7 @@ async def admin_functions_list( **kwargs, ) -> AsyncSlackResponse: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -1112,7 +1112,7 @@ async def admin_functions_permissions_lookup( ) -> AsyncSlackResponse: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -1130,7 +1130,7 @@ async def admin_functions_permissions_set( ) -> AsyncSlackResponse: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -1154,7 +1154,7 @@ async def admin_roles_addAssignments( **kwargs, ) -> AsyncSlackResponse: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1179,7 +1179,7 @@ async def admin_roles_listAssignments( ) -> AsyncSlackResponse: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -1201,7 +1201,7 @@ async def admin_roles_removeAssignments( **kwargs, ) -> AsyncSlackResponse: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1223,7 +1223,7 @@ async def admin_users_session_reset( **kwargs, ) -> AsyncSlackResponse: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -1243,7 +1243,7 @@ async def admin_users_session_resetBulk( **kwargs, ) -> AsyncSlackResponse: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1265,7 +1265,7 @@ async def admin_users_session_invalidate( **kwargs, ) -> AsyncSlackResponse: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return await self.api_call("admin.users.session.invalidate", params=kwargs) @@ -1280,7 +1280,7 @@ async def admin_users_session_list( **kwargs, ) -> AsyncSlackResponse: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -1300,7 +1300,7 @@ async def admin_teams_settings_setDefaultChannels( **kwargs, ) -> AsyncSlackResponse: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -1317,7 +1317,7 @@ async def admin_users_session_getSettings( ) -> AsyncSlackResponse: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1335,7 +1335,7 @@ async def admin_users_session_setSettings( ) -> AsyncSlackResponse: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1357,7 +1357,7 @@ async def admin_users_session_clearSettings( ) -> AsyncSlackResponse: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1374,7 +1374,7 @@ async def admin_users_unsupportedVersions_export( ) -> AsyncSlackResponse: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -1392,7 +1392,7 @@ async def admin_inviteRequests_approve( **kwargs, ) -> AsyncSlackResponse: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return await self.api_call("admin.inviteRequests.approve", params=kwargs) @@ -1406,7 +1406,7 @@ async def admin_inviteRequests_approved_list( **kwargs, ) -> AsyncSlackResponse: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -1426,7 +1426,7 @@ async def admin_inviteRequests_denied_list( **kwargs, ) -> AsyncSlackResponse: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -1445,7 +1445,7 @@ async def admin_inviteRequests_deny( **kwargs, ) -> AsyncSlackResponse: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return await self.api_call("admin.inviteRequests.deny", params=kwargs) @@ -1466,7 +1466,7 @@ async def admin_teams_admins_list( **kwargs, ) -> AsyncSlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -1487,7 +1487,7 @@ async def admin_teams_create( **kwargs, ) -> AsyncSlackResponse: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -1507,7 +1507,7 @@ async def admin_teams_list( **kwargs, ) -> AsyncSlackResponse: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return await self.api_call("admin.teams.list", params=kwargs) @@ -1521,7 +1521,7 @@ async def admin_teams_owners_list( **kwargs, ) -> AsyncSlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return await self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs) @@ -1533,7 +1533,7 @@ async def admin_teams_settings_info( **kwargs, ) -> AsyncSlackResponse: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return await self.api_call("admin.teams.settings.info", params=kwargs) @@ -1546,7 +1546,7 @@ async def admin_teams_settings_setDescription( **kwargs, ) -> AsyncSlackResponse: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return await self.api_call("admin.teams.settings.setDescription", params=kwargs) @@ -1559,7 +1559,7 @@ async def admin_teams_settings_setDiscoverability( **kwargs, ) -> AsyncSlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return await self.api_call("admin.teams.settings.setDiscoverability", params=kwargs) @@ -1572,7 +1572,7 @@ async def admin_teams_settings_setIcon( **kwargs, ) -> AsyncSlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return await self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs) @@ -1585,7 +1585,7 @@ async def admin_teams_settings_setName( **kwargs, ) -> AsyncSlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return await self.api_call("admin.teams.settings.setName", params=kwargs) @@ -1599,7 +1599,7 @@ async def admin_usergroups_addChannels( **kwargs, ) -> AsyncSlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1617,7 +1617,7 @@ async def admin_usergroups_addTeams( **kwargs, ) -> AsyncSlackResponse: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -1635,7 +1635,7 @@ async def admin_usergroups_listChannels( **kwargs, ) -> AsyncSlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -1654,7 +1654,7 @@ async def admin_usergroups_removeChannels( **kwargs, ) -> AsyncSlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1674,7 +1674,7 @@ async def admin_users_assign( **kwargs, ) -> AsyncSlackResponse: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -1706,7 +1706,7 @@ async def admin_users_invite( **kwargs, ) -> AsyncSlackResponse: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -1738,7 +1738,7 @@ async def admin_users_list( **kwargs, ) -> AsyncSlackResponse: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -1759,7 +1759,7 @@ async def admin_users_remove( **kwargs, ) -> AsyncSlackResponse: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.remove", params=kwargs) @@ -1772,7 +1772,7 @@ async def admin_users_setAdmin( **kwargs, ) -> AsyncSlackResponse: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setAdmin", params=kwargs) @@ -1786,7 +1786,7 @@ async def admin_users_setExpiration( **kwargs, ) -> AsyncSlackResponse: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setExpiration", params=kwargs) @@ -1799,7 +1799,7 @@ async def admin_users_setOwner( **kwargs, ) -> AsyncSlackResponse: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setOwner", params=kwargs) @@ -1812,7 +1812,7 @@ async def admin_users_setRegular( **kwargs, ) -> AsyncSlackResponse: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return await self.api_call("admin.users.setRegular", params=kwargs) @@ -1833,7 +1833,7 @@ async def admin_workflows_search( **kwargs, ) -> AsyncSlackResponse: """Search workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.search + https://docs.slack.dev/reference/methods/admin.workflows.search """ if collaborator_ids is not None: if isinstance(collaborator_ids, (list, tuple)): @@ -1863,7 +1863,7 @@ async def admin_workflows_permissions_lookup( **kwargs, ) -> AsyncSlackResponse: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1884,7 +1884,7 @@ async def admin_workflows_collaborators_add( **kwargs, ) -> AsyncSlackResponse: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1904,7 +1904,7 @@ async def admin_workflows_collaborators_remove( **kwargs, ) -> AsyncSlackResponse: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1923,7 +1923,7 @@ async def admin_workflows_unpublish( **kwargs, ) -> AsyncSlackResponse: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1938,7 +1938,7 @@ async def api_test( **kwargs, ) -> AsyncSlackResponse: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return await self.api_call("api.test", params=kwargs) @@ -1951,7 +1951,7 @@ async def apps_connections_open( ) -> AsyncSlackResponse: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return await self.api_call("apps.connections.open", http_verb="POST", params=kwargs) @@ -1966,7 +1966,7 @@ async def apps_event_authorizations_list( ) -> AsyncSlackResponse: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return await self.api_call("apps.event.authorizations.list", params=kwargs) @@ -1979,7 +1979,7 @@ async def apps_uninstall( **kwargs, ) -> AsyncSlackResponse: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return await self.api_call("apps.uninstall", params=kwargs) @@ -1991,7 +1991,7 @@ async def apps_manifest_create( **kwargs, ) -> AsyncSlackResponse: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2006,7 +2006,7 @@ async def apps_manifest_delete( **kwargs, ) -> AsyncSlackResponse: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return await self.api_call("apps.manifest.delete", params=kwargs) @@ -2018,7 +2018,7 @@ async def apps_manifest_export( **kwargs, ) -> AsyncSlackResponse: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return await self.api_call("apps.manifest.export", params=kwargs) @@ -2031,7 +2031,7 @@ async def apps_manifest_update( **kwargs, ) -> AsyncSlackResponse: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2048,7 +2048,7 @@ async def apps_manifest_validate( **kwargs, ) -> AsyncSlackResponse: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2064,7 +2064,7 @@ async def tooling_tokens_rotate( **kwargs, ) -> AsyncSlackResponse: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return await self.api_call("tooling.tokens.rotate", params=kwargs) @@ -2078,7 +2078,7 @@ async def assistant_threads_setStatus( **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return await self.api_call("assistant.threads.setStatus", params=kwargs) @@ -2092,7 +2092,7 @@ async def assistant_threads_setTitle( **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return await self.api_call("assistant.threads.setTitle", params=kwargs) @@ -2107,7 +2107,7 @@ async def assistant_threads_setSuggestedPrompts( **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -2121,7 +2121,7 @@ async def auth_revoke( **kwargs, ) -> AsyncSlackResponse: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return await self.api_call("auth.revoke", http_verb="GET", params=kwargs) @@ -2131,7 +2131,7 @@ async def auth_test( **kwargs, ) -> AsyncSlackResponse: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return await self.api_call("auth.test", params=kwargs) @@ -2143,7 +2143,7 @@ async def auth_teams_list( **kwargs, ) -> AsyncSlackResponse: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return await self.api_call("auth.teams.list", params=kwargs) @@ -2161,7 +2161,7 @@ async def bookmarks_add( **kwargs, ) -> AsyncSlackResponse: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -2187,7 +2187,7 @@ async def bookmarks_edit( **kwargs, ) -> AsyncSlackResponse: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -2207,7 +2207,7 @@ async def bookmarks_list( **kwargs, ) -> AsyncSlackResponse: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return await self.api_call("bookmarks.list", http_verb="POST", params=kwargs) @@ -2220,7 +2220,7 @@ async def bookmarks_remove( **kwargs, ) -> AsyncSlackResponse: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return await self.api_call("bookmarks.remove", http_verb="POST", params=kwargs) @@ -2233,7 +2233,7 @@ async def bots_info( **kwargs, ) -> AsyncSlackResponse: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return await self.api_call("bots.info", http_verb="GET", params=kwargs) @@ -2252,7 +2252,7 @@ async def calls_add( **kwargs, ) -> AsyncSlackResponse: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -2279,7 +2279,7 @@ async def calls_end( **kwargs, ) -> AsyncSlackResponse: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return await self.api_call("calls.end", http_verb="POST", params=kwargs) @@ -2291,7 +2291,7 @@ async def calls_info( **kwargs, ) -> AsyncSlackResponse: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return await self.api_call("calls.info", http_verb="POST", params=kwargs) @@ -2304,7 +2304,7 @@ async def calls_participants_add( **kwargs, ) -> AsyncSlackResponse: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2318,7 +2318,7 @@ async def calls_participants_remove( **kwargs, ) -> AsyncSlackResponse: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2334,7 +2334,7 @@ async def calls_update( **kwargs, ) -> AsyncSlackResponse: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -2354,7 +2354,7 @@ async def canvases_create( **kwargs, ) -> AsyncSlackResponse: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return await self.api_call("canvases.create", json=kwargs) @@ -2367,7 +2367,7 @@ async def canvases_edit( **kwargs, ) -> AsyncSlackResponse: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return await self.api_call("canvases.edit", json=kwargs) @@ -2379,7 +2379,7 @@ async def canvases_delete( **kwargs, ) -> AsyncSlackResponse: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return await self.api_call("canvases.delete", params=kwargs) @@ -2394,7 +2394,7 @@ async def canvases_access_set( **kwargs, ) -> AsyncSlackResponse: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -2419,7 +2419,7 @@ async def canvases_access_delete( **kwargs, ) -> AsyncSlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -2442,7 +2442,7 @@ async def canvases_sections_lookup( **kwargs, ) -> AsyncSlackResponse: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return await self.api_call("canvases.sections.lookup", params=kwargs) @@ -2450,7 +2450,7 @@ async def canvases_sections_lookup( # -------------------------- # Deprecated: channels.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- async def channels_archive( @@ -2629,7 +2629,7 @@ async def chat_delete( **kwargs, ) -> AsyncSlackResponse: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return await self.api_call("chat.delete", params=kwargs) @@ -2643,7 +2643,7 @@ async def chat_deleteScheduledMessage( **kwargs, ) -> AsyncSlackResponse: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -2662,7 +2662,7 @@ async def chat_getPermalink( **kwargs, ) -> AsyncSlackResponse: """Retrieve a permalink URL for a specific extant message - https://api.slack.com/methods/chat.getPermalink + https://docs.slack.dev/reference/methods/chat.getPermalink """ kwargs.update({"channel": channel, "message_ts": message_ts}) return await self.api_call("chat.getPermalink", http_verb="GET", params=kwargs) @@ -2675,7 +2675,7 @@ async def chat_meMessage( **kwargs, ) -> AsyncSlackResponse: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return await self.api_call("chat.meMessage", params=kwargs) @@ -2699,7 +2699,7 @@ async def chat_postEphemeral( **kwargs, ) -> AsyncSlackResponse: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -2748,7 +2748,7 @@ async def chat_postMessage( **kwargs, ) -> AsyncSlackResponse: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -2798,7 +2798,7 @@ async def chat_scheduleMessage( **kwargs, ) -> AsyncSlackResponse: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -2839,7 +2839,7 @@ async def chat_unfurl( **kwargs, ) -> AsyncSlackResponse: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -2877,7 +2877,7 @@ async def chat_update( **kwargs, ) -> AsyncSlackResponse: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -2916,7 +2916,7 @@ async def chat_scheduledMessages_list( **kwargs, ) -> AsyncSlackResponse: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -2942,7 +2942,7 @@ async def conversations_acceptSharedInvite( **kwargs, ) -> AsyncSlackResponse: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -2966,7 +2966,7 @@ async def conversations_approveSharedInvite( **kwargs, ) -> AsyncSlackResponse: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return await self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs) @@ -2978,7 +2978,7 @@ async def conversations_archive( **kwargs, ) -> AsyncSlackResponse: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return await self.api_call("conversations.archive", params=kwargs) @@ -2990,7 +2990,7 @@ async def conversations_close( **kwargs, ) -> AsyncSlackResponse: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return await self.api_call("conversations.close", params=kwargs) @@ -3004,7 +3004,7 @@ async def conversations_create( **kwargs, ) -> AsyncSlackResponse: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return await self.api_call("conversations.create", params=kwargs) @@ -3017,7 +3017,7 @@ async def conversations_declineSharedInvite( **kwargs, ) -> AsyncSlackResponse: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return await self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs) @@ -3026,7 +3026,7 @@ async def conversations_externalInvitePermissions_set( self, *, action: str, channel: str, target_team: str, **kwargs ) -> AsyncSlackResponse: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -3050,7 +3050,7 @@ async def conversations_history( **kwargs, ) -> AsyncSlackResponse: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -3074,7 +3074,7 @@ async def conversations_info( **kwargs, ) -> AsyncSlackResponse: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -3094,7 +3094,7 @@ async def conversations_invite( **kwargs, ) -> AsyncSlackResponse: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -3117,7 +3117,7 @@ async def conversations_inviteShared( **kwargs, ) -> AsyncSlackResponse: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -3139,7 +3139,7 @@ async def conversations_join( **kwargs, ) -> AsyncSlackResponse: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return await self.api_call("conversations.join", params=kwargs) @@ -3152,7 +3152,7 @@ async def conversations_kick( **kwargs, ) -> AsyncSlackResponse: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return await self.api_call("conversations.kick", params=kwargs) @@ -3164,7 +3164,7 @@ async def conversations_leave( **kwargs, ) -> AsyncSlackResponse: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return await self.api_call("conversations.leave", params=kwargs) @@ -3180,7 +3180,7 @@ async def conversations_list( **kwargs, ) -> AsyncSlackResponse: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -3206,7 +3206,7 @@ async def conversations_listConnectInvites( ) -> AsyncSlackResponse: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return await self.api_call("conversations.listConnectInvites", params=kwargs) @@ -3219,7 +3219,7 @@ async def conversations_mark( **kwargs, ) -> AsyncSlackResponse: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return await self.api_call("conversations.mark", params=kwargs) @@ -3233,7 +3233,7 @@ async def conversations_members( **kwargs, ) -> AsyncSlackResponse: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return await self.api_call("conversations.members", http_verb="GET", params=kwargs) @@ -3247,7 +3247,7 @@ async def conversations_open( **kwargs, ) -> AsyncSlackResponse: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -3266,7 +3266,7 @@ async def conversations_rename( **kwargs, ) -> AsyncSlackResponse: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return await self.api_call("conversations.rename", params=kwargs) @@ -3285,7 +3285,7 @@ async def conversations_replies( **kwargs, ) -> AsyncSlackResponse: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -3311,7 +3311,7 @@ async def conversations_requestSharedInvite_approve( **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -3332,7 +3332,7 @@ async def conversations_requestSharedInvite_deny( **kwargs, ) -> AsyncSlackResponse: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return await self.api_call("conversations.requestSharedInvite.deny", params=kwargs) @@ -3350,7 +3350,7 @@ async def conversations_requestSharedInvite_list( **kwargs, ) -> AsyncSlackResponse: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -3377,7 +3377,7 @@ async def conversations_setPurpose( **kwargs, ) -> AsyncSlackResponse: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return await self.api_call("conversations.setPurpose", params=kwargs) @@ -3390,7 +3390,7 @@ async def conversations_setTopic( **kwargs, ) -> AsyncSlackResponse: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return await self.api_call("conversations.setTopic", params=kwargs) @@ -3402,7 +3402,7 @@ async def conversations_unarchive( **kwargs, ) -> AsyncSlackResponse: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return await self.api_call("conversations.unarchive", params=kwargs) @@ -3415,7 +3415,7 @@ async def conversations_canvases_create( **kwargs, ) -> AsyncSlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return await self.api_call("conversations.canvases.create", json=kwargs) @@ -3428,7 +3428,7 @@ async def dialog_open( **kwargs, ) -> AsyncSlackResponse: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -3440,7 +3440,7 @@ async def dnd_endDnd( **kwargs, ) -> AsyncSlackResponse: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return await self.api_call("dnd.endDnd", params=kwargs) @@ -3449,7 +3449,7 @@ async def dnd_endSnooze( **kwargs, ) -> AsyncSlackResponse: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return await self.api_call("dnd.endSnooze", params=kwargs) @@ -3461,7 +3461,7 @@ async def dnd_info( **kwargs, ) -> AsyncSlackResponse: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return await self.api_call("dnd.info", http_verb="GET", params=kwargs) @@ -3473,7 +3473,7 @@ async def dnd_setSnooze( **kwargs, ) -> AsyncSlackResponse: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return await self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs) @@ -3485,7 +3485,7 @@ async def dnd_teamInfo( **kwargs, ) -> AsyncSlackResponse: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -3500,7 +3500,7 @@ async def emoji_list( **kwargs, ) -> AsyncSlackResponse: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return await self.api_call("emoji.list", http_verb="GET", params=kwargs) @@ -3513,7 +3513,7 @@ async def files_comments_delete( **kwargs, ) -> AsyncSlackResponse: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return await self.api_call("files.comments.delete", params=kwargs) @@ -3525,7 +3525,7 @@ async def files_delete( **kwargs, ) -> AsyncSlackResponse: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return await self.api_call("files.delete", params=kwargs) @@ -3541,7 +3541,7 @@ async def files_info( **kwargs, ) -> AsyncSlackResponse: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -3569,7 +3569,7 @@ async def files_list( **kwargs, ) -> AsyncSlackResponse: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -3597,7 +3597,7 @@ async def files_remote_info( **kwargs, ) -> AsyncSlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return await self.api_call("files.remote.info", http_verb="GET", params=kwargs) @@ -3613,7 +3613,7 @@ async def files_remote_list( **kwargs, ) -> AsyncSlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -3638,7 +3638,7 @@ async def files_remote_add( **kwargs, ) -> AsyncSlackResponse: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -3677,7 +3677,7 @@ async def files_remote_update( **kwargs, ) -> AsyncSlackResponse: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -3712,7 +3712,7 @@ async def files_remote_remove( **kwargs, ) -> AsyncSlackResponse: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return await self.api_call("files.remote.remove", http_verb="POST", params=kwargs) @@ -3726,7 +3726,7 @@ async def files_remote_share( **kwargs, ) -> AsyncSlackResponse: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -3744,7 +3744,7 @@ async def files_revokePublicURL( **kwargs, ) -> AsyncSlackResponse: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return await self.api_call("files.revokePublicURL", params=kwargs) @@ -3756,7 +3756,7 @@ async def files_sharedPublicURL( **kwargs, ) -> AsyncSlackResponse: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return await self.api_call("files.sharedPublicURL", params=kwargs) @@ -3775,7 +3775,7 @@ async def files_upload( **kwargs, ) -> AsyncSlackResponse: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -3828,12 +3828,12 @@ async def files_upload_v2( ) -> AsyncSlackResponse: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -3919,7 +3919,7 @@ async def files_getUploadURLExternal( **kwargs, ) -> AsyncSlackResponse: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -3942,7 +3942,7 @@ async def files_completeUploadExternal( **kwargs, ) -> AsyncSlackResponse: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -3965,7 +3965,7 @@ async def functions_completeSuccess( **kwargs, ) -> AsyncSlackResponse: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return await self.api_call("functions.completeSuccess", params=kwargs) @@ -3978,7 +3978,7 @@ async def functions_completeError( **kwargs, ) -> AsyncSlackResponse: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return await self.api_call("functions.completeError", params=kwargs) @@ -3986,7 +3986,7 @@ async def functions_completeError( # -------------------------- # Deprecated: groups.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- async def groups_archive( @@ -4167,7 +4167,7 @@ async def groups_unarchive( # -------------------------- # Deprecated: im.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- async def im_close( @@ -4243,7 +4243,7 @@ async def migration_exchange( **kwargs, ) -> AsyncSlackResponse: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -4255,7 +4255,7 @@ async def migration_exchange( # -------------------------- # Deprecated: mpim.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- async def mpim_close( @@ -4342,7 +4342,7 @@ async def oauth_v2_access( **kwargs, ) -> AsyncSlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4368,7 +4368,7 @@ async def oauth_access( **kwargs, ) -> AsyncSlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4388,7 +4388,7 @@ async def oauth_v2_exchange( **kwargs, ) -> AsyncSlackResponse: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return await self.api_call("oauth.v2.exchange", params=kwargs) @@ -4404,7 +4404,7 @@ async def openid_connect_token( **kwargs, ) -> AsyncSlackResponse: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4425,7 +4425,7 @@ async def openid_connect_userInfo( **kwargs, ) -> AsyncSlackResponse: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return await self.api_call("openid.connect.userInfo", params=kwargs) @@ -4437,7 +4437,7 @@ async def pins_add( **kwargs, ) -> AsyncSlackResponse: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return await self.api_call("pins.add", params=kwargs) @@ -4449,7 +4449,7 @@ async def pins_list( **kwargs, ) -> AsyncSlackResponse: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return await self.api_call("pins.list", http_verb="GET", params=kwargs) @@ -4462,7 +4462,7 @@ async def pins_remove( **kwargs, ) -> AsyncSlackResponse: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return await self.api_call("pins.remove", params=kwargs) @@ -4476,7 +4476,7 @@ async def reactions_add( **kwargs, ) -> AsyncSlackResponse: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return await self.api_call("reactions.add", params=kwargs) @@ -4492,7 +4492,7 @@ async def reactions_get( **kwargs, ) -> AsyncSlackResponse: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -4518,7 +4518,7 @@ async def reactions_list( **kwargs, ) -> AsyncSlackResponse: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -4544,7 +4544,7 @@ async def reactions_remove( **kwargs, ) -> AsyncSlackResponse: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -4568,7 +4568,7 @@ async def reminders_add( **kwargs, ) -> AsyncSlackResponse: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -4589,7 +4589,7 @@ async def reminders_complete( **kwargs, ) -> AsyncSlackResponse: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return await self.api_call("reminders.complete", params=kwargs) @@ -4602,7 +4602,7 @@ async def reminders_delete( **kwargs, ) -> AsyncSlackResponse: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return await self.api_call("reminders.delete", params=kwargs) @@ -4615,7 +4615,7 @@ async def reminders_info( **kwargs, ) -> AsyncSlackResponse: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return await self.api_call("reminders.info", http_verb="GET", params=kwargs) @@ -4627,7 +4627,7 @@ async def reminders_list( **kwargs, ) -> AsyncSlackResponse: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return await self.api_call("reminders.list", http_verb="GET", params=kwargs) @@ -4640,7 +4640,7 @@ async def rtm_connect( **kwargs, ) -> AsyncSlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return await self.api_call("rtm.connect", http_verb="GET", params=kwargs) @@ -4658,7 +4658,7 @@ async def rtm_start( **kwargs, ) -> AsyncSlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -4686,7 +4686,7 @@ async def search_all( **kwargs, ) -> AsyncSlackResponse: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -4714,7 +4714,7 @@ async def search_files( **kwargs, ) -> AsyncSlackResponse: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -4743,7 +4743,7 @@ async def search_messages( **kwargs, ) -> AsyncSlackResponse: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -4769,7 +4769,7 @@ async def stars_add( **kwargs, ) -> AsyncSlackResponse: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -4792,7 +4792,7 @@ async def stars_list( **kwargs, ) -> AsyncSlackResponse: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -4815,7 +4815,7 @@ async def stars_remove( **kwargs, ) -> AsyncSlackResponse: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -4839,7 +4839,7 @@ async def team_accessLogs( **kwargs, ) -> AsyncSlackResponse: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -4861,7 +4861,7 @@ async def team_billableInfo( **kwargs, ) -> AsyncSlackResponse: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return await self.api_call("team.billableInfo", http_verb="GET", params=kwargs) @@ -4871,7 +4871,7 @@ async def team_billing_info( **kwargs, ) -> AsyncSlackResponse: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return await self.api_call("team.billing.info", params=kwargs) @@ -4882,7 +4882,7 @@ async def team_externalTeams_disconnect( **kwargs, ) -> AsyncSlackResponse: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -4904,7 +4904,7 @@ async def team_externalTeams_list( **kwargs, ) -> AsyncSlackResponse: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -4935,7 +4935,7 @@ async def team_info( **kwargs, ) -> AsyncSlackResponse: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return await self.api_call("team.info", http_verb="GET", params=kwargs) @@ -4953,7 +4953,7 @@ async def team_integrationLogs( **kwargs, ) -> AsyncSlackResponse: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -4975,7 +4975,7 @@ async def team_profile_get( **kwargs, ) -> AsyncSlackResponse: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return await self.api_call("team.profile.get", http_verb="GET", params=kwargs) @@ -4985,7 +4985,7 @@ async def team_preferences_list( **kwargs, ) -> AsyncSlackResponse: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return await self.api_call("team.preferences.list", params=kwargs) @@ -5001,7 +5001,7 @@ async def usergroups_create( **kwargs, ) -> AsyncSlackResponse: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -5027,7 +5027,7 @@ async def usergroups_disable( **kwargs, ) -> AsyncSlackResponse: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return await self.api_call("usergroups.disable", params=kwargs) @@ -5041,7 +5041,7 @@ async def usergroups_enable( **kwargs, ) -> AsyncSlackResponse: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return await self.api_call("usergroups.enable", params=kwargs) @@ -5056,7 +5056,7 @@ async def usergroups_list( **kwargs, ) -> AsyncSlackResponse: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -5081,7 +5081,7 @@ async def usergroups_update( **kwargs, ) -> AsyncSlackResponse: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -5108,7 +5108,7 @@ async def usergroups_users_list( **kwargs, ) -> AsyncSlackResponse: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -5129,7 +5129,7 @@ async def usergroups_users_update( **kwargs, ) -> AsyncSlackResponse: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -5156,7 +5156,7 @@ async def users_conversations( **kwargs, ) -> AsyncSlackResponse: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -5178,7 +5178,7 @@ async def users_deletePhoto( **kwargs, ) -> AsyncSlackResponse: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return await self.api_call("users.deletePhoto", http_verb="GET", params=kwargs) @@ -5189,7 +5189,7 @@ async def users_getPresence( **kwargs, ) -> AsyncSlackResponse: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return await self.api_call("users.getPresence", http_verb="GET", params=kwargs) @@ -5199,7 +5199,7 @@ async def users_identity( **kwargs, ) -> AsyncSlackResponse: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return await self.api_call("users.identity", http_verb="GET", params=kwargs) @@ -5211,7 +5211,7 @@ async def users_info( **kwargs, ) -> AsyncSlackResponse: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return await self.api_call("users.info", http_verb="GET", params=kwargs) @@ -5226,7 +5226,7 @@ async def users_list( **kwargs, ) -> AsyncSlackResponse: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -5245,7 +5245,7 @@ async def users_lookupByEmail( **kwargs, ) -> AsyncSlackResponse: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return await self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs) @@ -5260,7 +5260,7 @@ async def users_setPhoto( **kwargs, ) -> AsyncSlackResponse: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return await self.api_call("users.setPhoto", files={"image": image}, data=kwargs) @@ -5272,7 +5272,7 @@ async def users_setPresence( **kwargs, ) -> AsyncSlackResponse: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return await self.api_call("users.setPresence", params=kwargs) @@ -5283,7 +5283,7 @@ async def users_discoverableContacts_lookup( **kwargs, ) -> AsyncSlackResponse: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return await self.api_call("users.discoverableContacts.lookup", params=kwargs) @@ -5296,7 +5296,7 @@ async def users_profile_get( **kwargs, ) -> AsyncSlackResponse: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return await self.api_call("users.profile.get", http_verb="GET", params=kwargs) @@ -5311,7 +5311,7 @@ async def users_profile_set( **kwargs, ) -> AsyncSlackResponse: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -5334,8 +5334,8 @@ async def views_open( **kwargs, ) -> AsyncSlackResponse: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5358,9 +5358,9 @@ async def views_push( Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5383,9 +5383,9 @@ async def views_update( """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -5412,8 +5412,8 @@ async def views_publish( ) -> AsyncSlackResponse: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -5432,7 +5432,7 @@ async def workflows_featured_add( **kwargs, ) -> AsyncSlackResponse: """Add featured workflows to a channel. - https://api.slack.com/methods/workflows.featured.add + https://docs.slack.dev/reference/methods/workflows.featured.add """ kwargs.update({"channel_id": channel_id}) if isinstance(trigger_ids, (list, tuple)): @@ -5448,7 +5448,7 @@ async def workflows_featured_list( **kwargs, ) -> AsyncSlackResponse: """List the featured workflows for specified channels. - https://api.slack.com/methods/workflows.featured.list + https://docs.slack.dev/reference/methods/workflows.featured.list """ if isinstance(channel_ids, (list, tuple)): kwargs.update({"channel_ids": ",".join(channel_ids)}) @@ -5464,7 +5464,7 @@ async def workflows_featured_remove( **kwargs, ) -> AsyncSlackResponse: """Remove featured workflows from a channel. - https://api.slack.com/methods/workflows.featured.remove + https://docs.slack.dev/reference/methods/workflows.featured.remove """ kwargs.update({"channel_id": channel_id}) if isinstance(trigger_ids, (list, tuple)): @@ -5481,7 +5481,7 @@ async def workflows_featured_set( **kwargs, ) -> AsyncSlackResponse: """Set featured workflows for a channel. - https://api.slack.com/methods/workflows.featured.set + https://docs.slack.dev/reference/methods/workflows.featured.set """ kwargs.update({"channel_id": channel_id}) if isinstance(trigger_ids, (list, tuple)): @@ -5498,7 +5498,7 @@ async def workflows_stepCompleted( **kwargs, ) -> AsyncSlackResponse: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -5515,7 +5515,7 @@ async def workflows_stepFailed( **kwargs, ) -> AsyncSlackResponse: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -5536,7 +5536,7 @@ async def workflows_updateStep( **kwargs, ) -> AsyncSlackResponse: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: diff --git a/slack_sdk/web/base_client.py b/slack_sdk/web/base_client.py index 6c3714a45..1f5ad58c7 100644 --- a/slack_sdk/web/base_client.py +++ b/slack_sdk/web/base_client.py @@ -615,7 +615,7 @@ def validate_slack_signature(*, signing_secret: str, data: str, timestamp: str, header. The signature is created by combining the signing secret with the body of the request we're sending using a standard HMAC-SHA256 keyed hash. - https://api.slack.com/docs/verifying-requests-from-slack#how_to_make_a_request_signature_in_4_easy_steps__an_overview + https://docs.slack.dev/authentication/verifying-requests-from-slack/#how_to_make_a_request_signature_in_4_easy_steps__an_overview Args: signing_secret: Your application's signing secret, available in the diff --git a/slack_sdk/web/client.py b/slack_sdk/web/client.py index 1747e0d45..f51514010 100644 --- a/slack_sdk/web/client.py +++ b/slack_sdk/web/client.py @@ -27,7 +27,7 @@ class WebClient(BaseClient): """A WebClient allows apps to communicate with the Slack Platform's Web API. - https://api.slack.com/methods + https://docs.slack.dev/reference/methods The Slack Web API is an interface for querying information from and enacting change in a Slack workspace. @@ -98,7 +98,7 @@ def admin_analytics_getFile( **kwargs, ) -> SlackResponse: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -120,7 +120,7 @@ def admin_apps_approve( Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -147,7 +147,7 @@ def admin_apps_approved_list( **kwargs, ) -> SlackResponse: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -168,7 +168,7 @@ def admin_apps_clearResolution( **kwargs, ) -> SlackResponse: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -188,7 +188,7 @@ def admin_apps_requests_cancel( **kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -208,7 +208,7 @@ def admin_apps_requests_list( **kwargs, ) -> SlackResponse: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -232,7 +232,7 @@ def admin_apps_restrict( Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -259,7 +259,7 @@ def admin_apps_restricted_list( **kwargs, ) -> SlackResponse: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -281,7 +281,7 @@ def admin_apps_uninstall( ) -> SlackResponse: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -312,7 +312,7 @@ def admin_apps_activities_list( **kwargs, ) -> SlackResponse: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -340,7 +340,7 @@ def admin_apps_config_lookup( **kwargs, ) -> SlackResponse: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -357,7 +357,7 @@ def admin_apps_config_set( **kwargs, ) -> SlackResponse: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -379,7 +379,7 @@ def admin_auth_policy_getEntities( **kwargs, ) -> SlackResponse: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -399,7 +399,7 @@ def admin_auth_policy_assignEntities( **kwargs, ) -> SlackResponse: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -418,7 +418,7 @@ def admin_auth_policy_removeEntities( **kwargs, ) -> SlackResponse: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -437,7 +437,7 @@ def admin_conversations_createForObjects( **kwargs, ) -> SlackResponse: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -453,7 +453,7 @@ def admin_conversations_linkObjects( **kwargs, ) -> SlackResponse: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -472,7 +472,7 @@ def admin_conversations_unlinkObjects( **kwargs, ) -> SlackResponse: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -491,7 +491,7 @@ def admin_barriers_create( **kwargs, ) -> SlackResponse: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -511,7 +511,7 @@ def admin_barriers_delete( **kwargs, ) -> SlackResponse: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs) @@ -526,7 +526,7 @@ def admin_barriers_update( **kwargs, ) -> SlackResponse: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -547,7 +547,7 @@ def admin_barriers_list( **kwargs, ) -> SlackResponse: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -567,7 +567,7 @@ def admin_conversations_create( **kwargs, ) -> SlackResponse: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -587,7 +587,7 @@ def admin_conversations_delete( **kwargs, ) -> SlackResponse: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.delete", params=kwargs) @@ -600,7 +600,7 @@ def admin_conversations_invite( **kwargs, ) -> SlackResponse: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -617,7 +617,7 @@ def admin_conversations_archive( **kwargs, ) -> SlackResponse: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.archive", params=kwargs) @@ -629,7 +629,7 @@ def admin_conversations_unarchive( **kwargs, ) -> SlackResponse: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.unarchive", params=kwargs) @@ -642,7 +642,7 @@ def admin_conversations_rename( **kwargs, ) -> SlackResponse: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return self.api_call("admin.conversations.rename", params=kwargs) @@ -660,7 +660,7 @@ def admin_conversations_search( **kwargs, ) -> SlackResponse: """Search for public or private channels in an Enterprise organization. - https://api.slack.com/methods/admin.conversations.search + https://docs.slack.dev/reference/methods/admin.conversations.search """ kwargs.update( { @@ -691,7 +691,7 @@ def admin_conversations_convertToPrivate( **kwargs, ) -> SlackResponse: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPrivate", params=kwargs) @@ -703,7 +703,7 @@ def admin_conversations_convertToPublic( **kwargs, ) -> SlackResponse: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPublic", params=kwargs) @@ -716,7 +716,7 @@ def admin_conversations_setConversationPrefs( **kwargs, ) -> SlackResponse: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -732,7 +732,7 @@ def admin_conversations_getConversationPrefs( **kwargs, ) -> SlackResponse: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getConversationPrefs", params=kwargs) @@ -745,7 +745,7 @@ def admin_conversations_disconnectShared( **kwargs, ) -> SlackResponse: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -765,7 +765,7 @@ def admin_conversations_lookup( **kwargs, ) -> SlackResponse: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -793,7 +793,7 @@ def admin_conversations_ekm_listOriginalConnectedChannelInfo( """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -820,7 +820,7 @@ def admin_conversations_restrictAccess_addGroup( **kwargs, ) -> SlackResponse: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -843,7 +843,7 @@ def admin_conversations_restrictAccess_listGroups( **kwargs, ) -> SlackResponse: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -866,7 +866,7 @@ def admin_conversations_restrictAccess_removeGroup( **kwargs, ) -> SlackResponse: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -891,7 +891,7 @@ def admin_conversations_setTeams( **kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -915,7 +915,7 @@ def admin_conversations_getTeams( **kwargs, ) -> SlackResponse: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -933,7 +933,7 @@ def admin_conversations_getCustomRetention( **kwargs, ) -> SlackResponse: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getCustomRetention", params=kwargs) @@ -945,7 +945,7 @@ def admin_conversations_removeCustomRetention( **kwargs, ) -> SlackResponse: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.removeCustomRetention", params=kwargs) @@ -958,7 +958,7 @@ def admin_conversations_setCustomRetention( **kwargs, ) -> SlackResponse: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return self.api_call("admin.conversations.setCustomRetention", params=kwargs) @@ -970,7 +970,7 @@ def admin_conversations_bulkArchive( **kwargs, ) -> SlackResponse: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return self.api_call("admin.conversations.bulkArchive", params=kwargs) @@ -995,7 +995,7 @@ def admin_conversations_bulkMove( **kwargs, ) -> SlackResponse: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -1013,7 +1013,7 @@ def admin_emoji_add( **kwargs, ) -> SlackResponse: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return self.api_call("admin.emoji.add", http_verb="GET", params=kwargs) @@ -1026,7 +1026,7 @@ def admin_emoji_addAlias( **kwargs, ) -> SlackResponse: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs) @@ -1039,7 +1039,7 @@ def admin_emoji_list( **kwargs, ) -> SlackResponse: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.emoji.list", http_verb="GET", params=kwargs) @@ -1051,7 +1051,7 @@ def admin_emoji_remove( **kwargs, ) -> SlackResponse: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs) @@ -1064,7 +1064,7 @@ def admin_emoji_rename( **kwargs, ) -> SlackResponse: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs) @@ -1079,7 +1079,7 @@ def admin_functions_list( **kwargs, ) -> SlackResponse: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -1102,7 +1102,7 @@ def admin_functions_permissions_lookup( ) -> SlackResponse: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -1120,7 +1120,7 @@ def admin_functions_permissions_set( ) -> SlackResponse: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -1144,7 +1144,7 @@ def admin_roles_addAssignments( **kwargs, ) -> SlackResponse: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1169,7 +1169,7 @@ def admin_roles_listAssignments( ) -> SlackResponse: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -1191,7 +1191,7 @@ def admin_roles_removeAssignments( **kwargs, ) -> SlackResponse: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1213,7 +1213,7 @@ def admin_users_session_reset( **kwargs, ) -> SlackResponse: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -1233,7 +1233,7 @@ def admin_users_session_resetBulk( **kwargs, ) -> SlackResponse: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1255,7 +1255,7 @@ def admin_users_session_invalidate( **kwargs, ) -> SlackResponse: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return self.api_call("admin.users.session.invalidate", params=kwargs) @@ -1270,7 +1270,7 @@ def admin_users_session_list( **kwargs, ) -> SlackResponse: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -1290,7 +1290,7 @@ def admin_teams_settings_setDefaultChannels( **kwargs, ) -> SlackResponse: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -1307,7 +1307,7 @@ def admin_users_session_getSettings( ) -> SlackResponse: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1325,7 +1325,7 @@ def admin_users_session_setSettings( ) -> SlackResponse: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1347,7 +1347,7 @@ def admin_users_session_clearSettings( ) -> SlackResponse: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1364,7 +1364,7 @@ def admin_users_unsupportedVersions_export( ) -> SlackResponse: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -1382,7 +1382,7 @@ def admin_inviteRequests_approve( **kwargs, ) -> SlackResponse: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.approve", params=kwargs) @@ -1396,7 +1396,7 @@ def admin_inviteRequests_approved_list( **kwargs, ) -> SlackResponse: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -1416,7 +1416,7 @@ def admin_inviteRequests_denied_list( **kwargs, ) -> SlackResponse: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -1435,7 +1435,7 @@ def admin_inviteRequests_deny( **kwargs, ) -> SlackResponse: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.deny", params=kwargs) @@ -1456,7 +1456,7 @@ def admin_teams_admins_list( **kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -1477,7 +1477,7 @@ def admin_teams_create( **kwargs, ) -> SlackResponse: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -1497,7 +1497,7 @@ def admin_teams_list( **kwargs, ) -> SlackResponse: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.teams.list", params=kwargs) @@ -1511,7 +1511,7 @@ def admin_teams_owners_list( **kwargs, ) -> SlackResponse: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs) @@ -1523,7 +1523,7 @@ def admin_teams_settings_info( **kwargs, ) -> SlackResponse: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return self.api_call("admin.teams.settings.info", params=kwargs) @@ -1536,7 +1536,7 @@ def admin_teams_settings_setDescription( **kwargs, ) -> SlackResponse: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return self.api_call("admin.teams.settings.setDescription", params=kwargs) @@ -1549,7 +1549,7 @@ def admin_teams_settings_setDiscoverability( **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return self.api_call("admin.teams.settings.setDiscoverability", params=kwargs) @@ -1562,7 +1562,7 @@ def admin_teams_settings_setIcon( **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs) @@ -1575,7 +1575,7 @@ def admin_teams_settings_setName( **kwargs, ) -> SlackResponse: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return self.api_call("admin.teams.settings.setName", params=kwargs) @@ -1589,7 +1589,7 @@ def admin_usergroups_addChannels( **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1607,7 +1607,7 @@ def admin_usergroups_addTeams( **kwargs, ) -> SlackResponse: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -1625,7 +1625,7 @@ def admin_usergroups_listChannels( **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -1644,7 +1644,7 @@ def admin_usergroups_removeChannels( **kwargs, ) -> SlackResponse: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1664,7 +1664,7 @@ def admin_users_assign( **kwargs, ) -> SlackResponse: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -1696,7 +1696,7 @@ def admin_users_invite( **kwargs, ) -> SlackResponse: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -1728,7 +1728,7 @@ def admin_users_list( **kwargs, ) -> SlackResponse: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -1749,7 +1749,7 @@ def admin_users_remove( **kwargs, ) -> SlackResponse: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.remove", params=kwargs) @@ -1762,7 +1762,7 @@ def admin_users_setAdmin( **kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setAdmin", params=kwargs) @@ -1776,7 +1776,7 @@ def admin_users_setExpiration( **kwargs, ) -> SlackResponse: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setExpiration", params=kwargs) @@ -1789,7 +1789,7 @@ def admin_users_setOwner( **kwargs, ) -> SlackResponse: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setOwner", params=kwargs) @@ -1802,7 +1802,7 @@ def admin_users_setRegular( **kwargs, ) -> SlackResponse: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setRegular", params=kwargs) @@ -1823,7 +1823,7 @@ def admin_workflows_search( **kwargs, ) -> SlackResponse: """Search workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.search + https://docs.slack.dev/reference/methods/admin.workflows.search """ if collaborator_ids is not None: if isinstance(collaborator_ids, (list, tuple)): @@ -1853,7 +1853,7 @@ def admin_workflows_permissions_lookup( **kwargs, ) -> SlackResponse: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1874,7 +1874,7 @@ def admin_workflows_collaborators_add( **kwargs, ) -> SlackResponse: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1894,7 +1894,7 @@ def admin_workflows_collaborators_remove( **kwargs, ) -> SlackResponse: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1913,7 +1913,7 @@ def admin_workflows_unpublish( **kwargs, ) -> SlackResponse: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1928,7 +1928,7 @@ def api_test( **kwargs, ) -> SlackResponse: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return self.api_call("api.test", params=kwargs) @@ -1941,7 +1941,7 @@ def apps_connections_open( ) -> SlackResponse: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return self.api_call("apps.connections.open", http_verb="POST", params=kwargs) @@ -1956,7 +1956,7 @@ def apps_event_authorizations_list( ) -> SlackResponse: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return self.api_call("apps.event.authorizations.list", params=kwargs) @@ -1969,7 +1969,7 @@ def apps_uninstall( **kwargs, ) -> SlackResponse: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return self.api_call("apps.uninstall", params=kwargs) @@ -1981,7 +1981,7 @@ def apps_manifest_create( **kwargs, ) -> SlackResponse: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -1996,7 +1996,7 @@ def apps_manifest_delete( **kwargs, ) -> SlackResponse: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.delete", params=kwargs) @@ -2008,7 +2008,7 @@ def apps_manifest_export( **kwargs, ) -> SlackResponse: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.export", params=kwargs) @@ -2021,7 +2021,7 @@ def apps_manifest_update( **kwargs, ) -> SlackResponse: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2038,7 +2038,7 @@ def apps_manifest_validate( **kwargs, ) -> SlackResponse: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2054,7 +2054,7 @@ def tooling_tokens_rotate( **kwargs, ) -> SlackResponse: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return self.api_call("tooling.tokens.rotate", params=kwargs) @@ -2068,7 +2068,7 @@ def assistant_threads_setStatus( **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return self.api_call("assistant.threads.setStatus", params=kwargs) @@ -2082,7 +2082,7 @@ def assistant_threads_setTitle( **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return self.api_call("assistant.threads.setTitle", params=kwargs) @@ -2097,7 +2097,7 @@ def assistant_threads_setSuggestedPrompts( **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -2111,7 +2111,7 @@ def auth_revoke( **kwargs, ) -> SlackResponse: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return self.api_call("auth.revoke", http_verb="GET", params=kwargs) @@ -2121,7 +2121,7 @@ def auth_test( **kwargs, ) -> SlackResponse: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return self.api_call("auth.test", params=kwargs) @@ -2133,7 +2133,7 @@ def auth_teams_list( **kwargs, ) -> SlackResponse: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return self.api_call("auth.teams.list", params=kwargs) @@ -2151,7 +2151,7 @@ def bookmarks_add( **kwargs, ) -> SlackResponse: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -2177,7 +2177,7 @@ def bookmarks_edit( **kwargs, ) -> SlackResponse: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -2197,7 +2197,7 @@ def bookmarks_list( **kwargs, ) -> SlackResponse: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return self.api_call("bookmarks.list", http_verb="POST", params=kwargs) @@ -2210,7 +2210,7 @@ def bookmarks_remove( **kwargs, ) -> SlackResponse: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return self.api_call("bookmarks.remove", http_verb="POST", params=kwargs) @@ -2223,7 +2223,7 @@ def bots_info( **kwargs, ) -> SlackResponse: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return self.api_call("bots.info", http_verb="GET", params=kwargs) @@ -2242,7 +2242,7 @@ def calls_add( **kwargs, ) -> SlackResponse: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -2269,7 +2269,7 @@ def calls_end( **kwargs, ) -> SlackResponse: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return self.api_call("calls.end", http_verb="POST", params=kwargs) @@ -2281,7 +2281,7 @@ def calls_info( **kwargs, ) -> SlackResponse: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return self.api_call("calls.info", http_verb="POST", params=kwargs) @@ -2294,7 +2294,7 @@ def calls_participants_add( **kwargs, ) -> SlackResponse: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2308,7 +2308,7 @@ def calls_participants_remove( **kwargs, ) -> SlackResponse: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2324,7 +2324,7 @@ def calls_update( **kwargs, ) -> SlackResponse: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -2344,7 +2344,7 @@ def canvases_create( **kwargs, ) -> SlackResponse: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return self.api_call("canvases.create", json=kwargs) @@ -2357,7 +2357,7 @@ def canvases_edit( **kwargs, ) -> SlackResponse: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return self.api_call("canvases.edit", json=kwargs) @@ -2369,7 +2369,7 @@ def canvases_delete( **kwargs, ) -> SlackResponse: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return self.api_call("canvases.delete", params=kwargs) @@ -2384,7 +2384,7 @@ def canvases_access_set( **kwargs, ) -> SlackResponse: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -2409,7 +2409,7 @@ def canvases_access_delete( **kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -2432,7 +2432,7 @@ def canvases_sections_lookup( **kwargs, ) -> SlackResponse: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return self.api_call("canvases.sections.lookup", params=kwargs) @@ -2440,7 +2440,7 @@ def canvases_sections_lookup( # -------------------------- # Deprecated: channels.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def channels_archive( @@ -2619,7 +2619,7 @@ def chat_delete( **kwargs, ) -> SlackResponse: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return self.api_call("chat.delete", params=kwargs) @@ -2633,7 +2633,7 @@ def chat_deleteScheduledMessage( **kwargs, ) -> SlackResponse: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -2652,7 +2652,7 @@ def chat_getPermalink( **kwargs, ) -> SlackResponse: """Retrieve a permalink URL for a specific extant message - https://api.slack.com/methods/chat.getPermalink + https://docs.slack.dev/reference/methods/chat.getPermalink """ kwargs.update({"channel": channel, "message_ts": message_ts}) return self.api_call("chat.getPermalink", http_verb="GET", params=kwargs) @@ -2665,7 +2665,7 @@ def chat_meMessage( **kwargs, ) -> SlackResponse: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return self.api_call("chat.meMessage", params=kwargs) @@ -2689,7 +2689,7 @@ def chat_postEphemeral( **kwargs, ) -> SlackResponse: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -2738,7 +2738,7 @@ def chat_postMessage( **kwargs, ) -> SlackResponse: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -2788,7 +2788,7 @@ def chat_scheduleMessage( **kwargs, ) -> SlackResponse: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -2829,7 +2829,7 @@ def chat_unfurl( **kwargs, ) -> SlackResponse: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -2867,7 +2867,7 @@ def chat_update( **kwargs, ) -> SlackResponse: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -2906,7 +2906,7 @@ def chat_scheduledMessages_list( **kwargs, ) -> SlackResponse: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -2932,7 +2932,7 @@ def conversations_acceptSharedInvite( **kwargs, ) -> SlackResponse: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -2956,7 +2956,7 @@ def conversations_approveSharedInvite( **kwargs, ) -> SlackResponse: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs) @@ -2968,7 +2968,7 @@ def conversations_archive( **kwargs, ) -> SlackResponse: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return self.api_call("conversations.archive", params=kwargs) @@ -2980,7 +2980,7 @@ def conversations_close( **kwargs, ) -> SlackResponse: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return self.api_call("conversations.close", params=kwargs) @@ -2994,7 +2994,7 @@ def conversations_create( **kwargs, ) -> SlackResponse: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return self.api_call("conversations.create", params=kwargs) @@ -3007,7 +3007,7 @@ def conversations_declineSharedInvite( **kwargs, ) -> SlackResponse: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs) @@ -3016,7 +3016,7 @@ def conversations_externalInvitePermissions_set( self, *, action: str, channel: str, target_team: str, **kwargs ) -> SlackResponse: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -3040,7 +3040,7 @@ def conversations_history( **kwargs, ) -> SlackResponse: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -3064,7 +3064,7 @@ def conversations_info( **kwargs, ) -> SlackResponse: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -3084,7 +3084,7 @@ def conversations_invite( **kwargs, ) -> SlackResponse: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -3107,7 +3107,7 @@ def conversations_inviteShared( **kwargs, ) -> SlackResponse: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -3129,7 +3129,7 @@ def conversations_join( **kwargs, ) -> SlackResponse: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return self.api_call("conversations.join", params=kwargs) @@ -3142,7 +3142,7 @@ def conversations_kick( **kwargs, ) -> SlackResponse: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return self.api_call("conversations.kick", params=kwargs) @@ -3154,7 +3154,7 @@ def conversations_leave( **kwargs, ) -> SlackResponse: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return self.api_call("conversations.leave", params=kwargs) @@ -3170,7 +3170,7 @@ def conversations_list( **kwargs, ) -> SlackResponse: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -3196,7 +3196,7 @@ def conversations_listConnectInvites( ) -> SlackResponse: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return self.api_call("conversations.listConnectInvites", params=kwargs) @@ -3209,7 +3209,7 @@ def conversations_mark( **kwargs, ) -> SlackResponse: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return self.api_call("conversations.mark", params=kwargs) @@ -3223,7 +3223,7 @@ def conversations_members( **kwargs, ) -> SlackResponse: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return self.api_call("conversations.members", http_verb="GET", params=kwargs) @@ -3237,7 +3237,7 @@ def conversations_open( **kwargs, ) -> SlackResponse: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -3256,7 +3256,7 @@ def conversations_rename( **kwargs, ) -> SlackResponse: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return self.api_call("conversations.rename", params=kwargs) @@ -3275,7 +3275,7 @@ def conversations_replies( **kwargs, ) -> SlackResponse: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -3301,7 +3301,7 @@ def conversations_requestSharedInvite_approve( **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -3322,7 +3322,7 @@ def conversations_requestSharedInvite_deny( **kwargs, ) -> SlackResponse: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return self.api_call("conversations.requestSharedInvite.deny", params=kwargs) @@ -3340,7 +3340,7 @@ def conversations_requestSharedInvite_list( **kwargs, ) -> SlackResponse: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -3367,7 +3367,7 @@ def conversations_setPurpose( **kwargs, ) -> SlackResponse: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return self.api_call("conversations.setPurpose", params=kwargs) @@ -3380,7 +3380,7 @@ def conversations_setTopic( **kwargs, ) -> SlackResponse: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return self.api_call("conversations.setTopic", params=kwargs) @@ -3392,7 +3392,7 @@ def conversations_unarchive( **kwargs, ) -> SlackResponse: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return self.api_call("conversations.unarchive", params=kwargs) @@ -3405,7 +3405,7 @@ def conversations_canvases_create( **kwargs, ) -> SlackResponse: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return self.api_call("conversations.canvases.create", json=kwargs) @@ -3418,7 +3418,7 @@ def dialog_open( **kwargs, ) -> SlackResponse: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -3430,7 +3430,7 @@ def dnd_endDnd( **kwargs, ) -> SlackResponse: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return self.api_call("dnd.endDnd", params=kwargs) @@ -3439,7 +3439,7 @@ def dnd_endSnooze( **kwargs, ) -> SlackResponse: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return self.api_call("dnd.endSnooze", params=kwargs) @@ -3451,7 +3451,7 @@ def dnd_info( **kwargs, ) -> SlackResponse: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("dnd.info", http_verb="GET", params=kwargs) @@ -3463,7 +3463,7 @@ def dnd_setSnooze( **kwargs, ) -> SlackResponse: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs) @@ -3475,7 +3475,7 @@ def dnd_teamInfo( **kwargs, ) -> SlackResponse: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -3490,7 +3490,7 @@ def emoji_list( **kwargs, ) -> SlackResponse: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return self.api_call("emoji.list", http_verb="GET", params=kwargs) @@ -3503,7 +3503,7 @@ def files_comments_delete( **kwargs, ) -> SlackResponse: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return self.api_call("files.comments.delete", params=kwargs) @@ -3515,7 +3515,7 @@ def files_delete( **kwargs, ) -> SlackResponse: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return self.api_call("files.delete", params=kwargs) @@ -3531,7 +3531,7 @@ def files_info( **kwargs, ) -> SlackResponse: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -3559,7 +3559,7 @@ def files_list( **kwargs, ) -> SlackResponse: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -3587,7 +3587,7 @@ def files_remote_info( **kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.info", http_verb="GET", params=kwargs) @@ -3603,7 +3603,7 @@ def files_remote_list( **kwargs, ) -> SlackResponse: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -3628,7 +3628,7 @@ def files_remote_add( **kwargs, ) -> SlackResponse: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -3667,7 +3667,7 @@ def files_remote_update( **kwargs, ) -> SlackResponse: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -3702,7 +3702,7 @@ def files_remote_remove( **kwargs, ) -> SlackResponse: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.remove", http_verb="POST", params=kwargs) @@ -3716,7 +3716,7 @@ def files_remote_share( **kwargs, ) -> SlackResponse: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -3734,7 +3734,7 @@ def files_revokePublicURL( **kwargs, ) -> SlackResponse: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return self.api_call("files.revokePublicURL", params=kwargs) @@ -3746,7 +3746,7 @@ def files_sharedPublicURL( **kwargs, ) -> SlackResponse: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return self.api_call("files.sharedPublicURL", params=kwargs) @@ -3765,7 +3765,7 @@ def files_upload( **kwargs, ) -> SlackResponse: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -3818,12 +3818,12 @@ def files_upload_v2( ) -> SlackResponse: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -3909,7 +3909,7 @@ def files_getUploadURLExternal( **kwargs, ) -> SlackResponse: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -3932,7 +3932,7 @@ def files_completeUploadExternal( **kwargs, ) -> SlackResponse: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -3955,7 +3955,7 @@ def functions_completeSuccess( **kwargs, ) -> SlackResponse: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return self.api_call("functions.completeSuccess", params=kwargs) @@ -3968,7 +3968,7 @@ def functions_completeError( **kwargs, ) -> SlackResponse: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return self.api_call("functions.completeError", params=kwargs) @@ -3976,7 +3976,7 @@ def functions_completeError( # -------------------------- # Deprecated: groups.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def groups_archive( @@ -4157,7 +4157,7 @@ def groups_unarchive( # -------------------------- # Deprecated: im.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def im_close( @@ -4233,7 +4233,7 @@ def migration_exchange( **kwargs, ) -> SlackResponse: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -4245,7 +4245,7 @@ def migration_exchange( # -------------------------- # Deprecated: mpim.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def mpim_close( @@ -4332,7 +4332,7 @@ def oauth_v2_access( **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4358,7 +4358,7 @@ def oauth_access( **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4378,7 +4378,7 @@ def oauth_v2_exchange( **kwargs, ) -> SlackResponse: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return self.api_call("oauth.v2.exchange", params=kwargs) @@ -4394,7 +4394,7 @@ def openid_connect_token( **kwargs, ) -> SlackResponse: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4415,7 +4415,7 @@ def openid_connect_userInfo( **kwargs, ) -> SlackResponse: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return self.api_call("openid.connect.userInfo", params=kwargs) @@ -4427,7 +4427,7 @@ def pins_add( **kwargs, ) -> SlackResponse: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.add", params=kwargs) @@ -4439,7 +4439,7 @@ def pins_list( **kwargs, ) -> SlackResponse: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return self.api_call("pins.list", http_verb="GET", params=kwargs) @@ -4452,7 +4452,7 @@ def pins_remove( **kwargs, ) -> SlackResponse: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.remove", params=kwargs) @@ -4466,7 +4466,7 @@ def reactions_add( **kwargs, ) -> SlackResponse: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return self.api_call("reactions.add", params=kwargs) @@ -4482,7 +4482,7 @@ def reactions_get( **kwargs, ) -> SlackResponse: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -4508,7 +4508,7 @@ def reactions_list( **kwargs, ) -> SlackResponse: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -4534,7 +4534,7 @@ def reactions_remove( **kwargs, ) -> SlackResponse: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -4558,7 +4558,7 @@ def reminders_add( **kwargs, ) -> SlackResponse: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -4579,7 +4579,7 @@ def reminders_complete( **kwargs, ) -> SlackResponse: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.complete", params=kwargs) @@ -4592,7 +4592,7 @@ def reminders_delete( **kwargs, ) -> SlackResponse: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.delete", params=kwargs) @@ -4605,7 +4605,7 @@ def reminders_info( **kwargs, ) -> SlackResponse: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.info", http_verb="GET", params=kwargs) @@ -4617,7 +4617,7 @@ def reminders_list( **kwargs, ) -> SlackResponse: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return self.api_call("reminders.list", http_verb="GET", params=kwargs) @@ -4630,7 +4630,7 @@ def rtm_connect( **kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return self.api_call("rtm.connect", http_verb="GET", params=kwargs) @@ -4648,7 +4648,7 @@ def rtm_start( **kwargs, ) -> SlackResponse: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -4676,7 +4676,7 @@ def search_all( **kwargs, ) -> SlackResponse: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -4704,7 +4704,7 @@ def search_files( **kwargs, ) -> SlackResponse: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -4733,7 +4733,7 @@ def search_messages( **kwargs, ) -> SlackResponse: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -4759,7 +4759,7 @@ def stars_add( **kwargs, ) -> SlackResponse: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -4782,7 +4782,7 @@ def stars_list( **kwargs, ) -> SlackResponse: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -4805,7 +4805,7 @@ def stars_remove( **kwargs, ) -> SlackResponse: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -4829,7 +4829,7 @@ def team_accessLogs( **kwargs, ) -> SlackResponse: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -4851,7 +4851,7 @@ def team_billableInfo( **kwargs, ) -> SlackResponse: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("team.billableInfo", http_verb="GET", params=kwargs) @@ -4861,7 +4861,7 @@ def team_billing_info( **kwargs, ) -> SlackResponse: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return self.api_call("team.billing.info", params=kwargs) @@ -4872,7 +4872,7 @@ def team_externalTeams_disconnect( **kwargs, ) -> SlackResponse: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -4894,7 +4894,7 @@ def team_externalTeams_list( **kwargs, ) -> SlackResponse: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -4925,7 +4925,7 @@ def team_info( **kwargs, ) -> SlackResponse: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return self.api_call("team.info", http_verb="GET", params=kwargs) @@ -4943,7 +4943,7 @@ def team_integrationLogs( **kwargs, ) -> SlackResponse: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -4965,7 +4965,7 @@ def team_profile_get( **kwargs, ) -> SlackResponse: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return self.api_call("team.profile.get", http_verb="GET", params=kwargs) @@ -4975,7 +4975,7 @@ def team_preferences_list( **kwargs, ) -> SlackResponse: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return self.api_call("team.preferences.list", params=kwargs) @@ -4991,7 +4991,7 @@ def usergroups_create( **kwargs, ) -> SlackResponse: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -5017,7 +5017,7 @@ def usergroups_disable( **kwargs, ) -> SlackResponse: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.disable", params=kwargs) @@ -5031,7 +5031,7 @@ def usergroups_enable( **kwargs, ) -> SlackResponse: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.enable", params=kwargs) @@ -5046,7 +5046,7 @@ def usergroups_list( **kwargs, ) -> SlackResponse: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -5071,7 +5071,7 @@ def usergroups_update( **kwargs, ) -> SlackResponse: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -5098,7 +5098,7 @@ def usergroups_users_list( **kwargs, ) -> SlackResponse: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -5119,7 +5119,7 @@ def usergroups_users_update( **kwargs, ) -> SlackResponse: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -5146,7 +5146,7 @@ def users_conversations( **kwargs, ) -> SlackResponse: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -5168,7 +5168,7 @@ def users_deletePhoto( **kwargs, ) -> SlackResponse: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return self.api_call("users.deletePhoto", http_verb="GET", params=kwargs) @@ -5179,7 +5179,7 @@ def users_getPresence( **kwargs, ) -> SlackResponse: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return self.api_call("users.getPresence", http_verb="GET", params=kwargs) @@ -5189,7 +5189,7 @@ def users_identity( **kwargs, ) -> SlackResponse: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return self.api_call("users.identity", http_verb="GET", params=kwargs) @@ -5201,7 +5201,7 @@ def users_info( **kwargs, ) -> SlackResponse: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return self.api_call("users.info", http_verb="GET", params=kwargs) @@ -5216,7 +5216,7 @@ def users_list( **kwargs, ) -> SlackResponse: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -5235,7 +5235,7 @@ def users_lookupByEmail( **kwargs, ) -> SlackResponse: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs) @@ -5250,7 +5250,7 @@ def users_setPhoto( **kwargs, ) -> SlackResponse: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return self.api_call("users.setPhoto", files={"image": image}, data=kwargs) @@ -5262,7 +5262,7 @@ def users_setPresence( **kwargs, ) -> SlackResponse: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return self.api_call("users.setPresence", params=kwargs) @@ -5273,7 +5273,7 @@ def users_discoverableContacts_lookup( **kwargs, ) -> SlackResponse: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return self.api_call("users.discoverableContacts.lookup", params=kwargs) @@ -5286,7 +5286,7 @@ def users_profile_get( **kwargs, ) -> SlackResponse: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return self.api_call("users.profile.get", http_verb="GET", params=kwargs) @@ -5301,7 +5301,7 @@ def users_profile_set( **kwargs, ) -> SlackResponse: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -5324,8 +5324,8 @@ def views_open( **kwargs, ) -> SlackResponse: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5348,9 +5348,9 @@ def views_push( Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5373,9 +5373,9 @@ def views_update( """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -5402,8 +5402,8 @@ def views_publish( ) -> SlackResponse: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -5422,7 +5422,7 @@ def workflows_featured_add( **kwargs, ) -> SlackResponse: """Add featured workflows to a channel. - https://api.slack.com/methods/workflows.featured.add + https://docs.slack.dev/reference/methods/workflows.featured.add """ kwargs.update({"channel_id": channel_id}) if isinstance(trigger_ids, (list, tuple)): @@ -5438,7 +5438,7 @@ def workflows_featured_list( **kwargs, ) -> SlackResponse: """List the featured workflows for specified channels. - https://api.slack.com/methods/workflows.featured.list + https://docs.slack.dev/reference/methods/workflows.featured.list """ if isinstance(channel_ids, (list, tuple)): kwargs.update({"channel_ids": ",".join(channel_ids)}) @@ -5454,7 +5454,7 @@ def workflows_featured_remove( **kwargs, ) -> SlackResponse: """Remove featured workflows from a channel. - https://api.slack.com/methods/workflows.featured.remove + https://docs.slack.dev/reference/methods/workflows.featured.remove """ kwargs.update({"channel_id": channel_id}) if isinstance(trigger_ids, (list, tuple)): @@ -5471,7 +5471,7 @@ def workflows_featured_set( **kwargs, ) -> SlackResponse: """Set featured workflows for a channel. - https://api.slack.com/methods/workflows.featured.set + https://docs.slack.dev/reference/methods/workflows.featured.set """ kwargs.update({"channel_id": channel_id}) if isinstance(trigger_ids, (list, tuple)): @@ -5488,7 +5488,7 @@ def workflows_stepCompleted( **kwargs, ) -> SlackResponse: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -5505,7 +5505,7 @@ def workflows_stepFailed( **kwargs, ) -> SlackResponse: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -5526,7 +5526,7 @@ def workflows_updateStep( **kwargs, ) -> SlackResponse: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: diff --git a/slack_sdk/web/deprecation.py b/slack_sdk/web/deprecation.py index 5f7f87480..c81c4b754 100644 --- a/slack_sdk/web/deprecation.py +++ b/slack_sdk/web/deprecation.py @@ -1,7 +1,7 @@ import os import warnings -# https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api +# https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ deprecated_method_prefixes_2020_01 = [ "channels.", "groups.", @@ -30,7 +30,7 @@ def show_deprecation_warning_if_any(method_name: str): message = ( f"{method_name} is deprecated. Please use the Conversations API instead. " "For more info, go to " - "https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api" + "https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/" ) warnings.warn(message) @@ -39,7 +39,7 @@ def show_deprecation_warning_if_any(method_name: str): if len(matched_prefixes) > 0: message = ( f"{method_name} is deprecated. For more info, go to " - "https://api.slack.com/changelog/2023-07-its-later-already-for-stars-and-reminders" + "https://docs.slack.dev/changelog/2023-07-its-later-already-for-stars-and-reminders/" ) warnings.warn(message) @@ -48,6 +48,6 @@ def show_deprecation_warning_if_any(method_name: str): if len(matched_prefixes) > 0: message = ( f"{method_name} is deprecated. For more info, go to " - "https://api.slack.com/changelog/2023-08-workflow-steps-from-apps-step-back" + "https://docs.slack.dev/changelog/2023-08-workflow-steps-from-apps-step-back/" ) warnings.warn(message) diff --git a/slack_sdk/web/internal_utils.py b/slack_sdk/web/internal_utils.py index 1fd5f22fc..3b5e01c62 100644 --- a/slack_sdk/web/internal_utils.py +++ b/slack_sdk/web/internal_utils.py @@ -272,19 +272,19 @@ def _warn_if_message_text_content_is_missing(endpoint: str, kwargs: Dict[str, An "system push notifications, assistive technology such as screen readers, etc." ) - # https://api.slack.com/reference/messaging/attachments + # https://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments # Check if the fallback field exists for all the attachments # Not all attachments have a fallback property; warn about this too! missing_fallback_message = ( f"Additionally, the attachment-level `fallback` argument is missing in the request payload for a {endpoint} call" " - To avoid this warning, it is recommended to always provide a top-level `text` argument when posting a" " message. Alternatively you can provide an attachment-level `fallback` argument, though this is now considered" - " a legacy field (see https://api.slack.com/reference/messaging/attachments#legacy_fields for more details)." + " a legacy field (see https://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments#legacy_fields for more details)." # noqa: E501 ) # Additionally, specifically for attachments, there is a legacy field available at the attachment level called `fallback` # Even with a missing text, one can provide a `fallback` per attachment. - # More details here: https://api.slack.com/reference/messaging/attachments#legacy_fields + # More details here: https://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments#legacy_fields attachments = kwargs.get("attachments") # Note that this method does not verify attachments # if the value is already serialized as a single str value. diff --git a/slack_sdk/web/legacy_base_client.py b/slack_sdk/web/legacy_base_client.py index 0d5c2ac2d..4b6b63027 100644 --- a/slack_sdk/web/legacy_base_client.py +++ b/slack_sdk/web/legacy_base_client.py @@ -565,7 +565,7 @@ def validate_slack_signature(*, signing_secret: str, data: str, timestamp: str, On each HTTP request that Slack sends, we add an X-Slack-Signature HTTP header. The signature is created by combining the signing secret with the body of the request we're sending using a standard HMAC-SHA256 keyed hash. - https://api.slack.com/docs/verifying-requests-from-slack#how_to_make_a_request_signature_in_4_easy_steps__an_overview + https://docs.slack.dev/authentication/verifying-requests-from-slack/#how_to_make_a_request_signature_in_4_easy_steps__an_overview Args: signing_secret: Your application's signing secret, available in the Slack API dashboard diff --git a/slack_sdk/web/legacy_client.py b/slack_sdk/web/legacy_client.py index ed2177644..d6b7789d1 100644 --- a/slack_sdk/web/legacy_client.py +++ b/slack_sdk/web/legacy_client.py @@ -39,7 +39,7 @@ class LegacyWebClient(LegacyBaseClient): """A WebClient allows apps to communicate with the Slack Platform's Web API. - https://api.slack.com/methods + https://docs.slack.dev/reference/methods The Slack Web API is an interface for querying information from and enacting change in a Slack workspace. @@ -110,7 +110,7 @@ def admin_analytics_getFile( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve analytics data for a given date, presented as a compressed JSON file - https://api.slack.com/methods/admin.analytics.getFile + https://docs.slack.dev/reference/methods/admin.analytics.getFile """ kwargs.update({"type": type}) if date is not None: @@ -132,7 +132,7 @@ def admin_apps_approve( Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.approve + https://docs.slack.dev/reference/methods/admin.apps.approve """ if app_id: kwargs.update({"app_id": app_id}) @@ -159,7 +159,7 @@ def admin_apps_approved_list( **kwargs, ) -> Union[Future, SlackResponse]: """List approved apps for an org or workspace. - https://api.slack.com/methods/admin.apps.approved.list + https://docs.slack.dev/reference/methods/admin.apps.approved.list """ kwargs.update( { @@ -180,7 +180,7 @@ def admin_apps_clearResolution( **kwargs, ) -> Union[Future, SlackResponse]: """Clear an app resolution - https://api.slack.com/methods/admin.apps.clearResolution + https://docs.slack.dev/reference/methods/admin.apps.clearResolution """ kwargs.update( { @@ -200,7 +200,7 @@ def admin_apps_requests_cancel( **kwargs, ) -> Union[Future, SlackResponse]: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.cancel + https://docs.slack.dev/reference/methods/admin.apps.requests.cancel """ kwargs.update( { @@ -220,7 +220,7 @@ def admin_apps_requests_list( **kwargs, ) -> Union[Future, SlackResponse]: """List app requests for a team/workspace. - https://api.slack.com/methods/admin.apps.requests.list + https://docs.slack.dev/reference/methods/admin.apps.requests.list """ kwargs.update( { @@ -244,7 +244,7 @@ def admin_apps_restrict( Exactly one of the team_id or enterprise_id arguments is required, not both. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. - https://api.slack.com/methods/admin.apps.restrict + https://docs.slack.dev/reference/methods/admin.apps.restrict """ if app_id: kwargs.update({"app_id": app_id}) @@ -271,7 +271,7 @@ def admin_apps_restricted_list( **kwargs, ) -> Union[Future, SlackResponse]: """List restricted apps for an org or workspace. - https://api.slack.com/methods/admin.apps.restricted.list + https://docs.slack.dev/reference/methods/admin.apps.restricted.list """ kwargs.update( { @@ -293,7 +293,7 @@ def admin_apps_uninstall( ) -> Union[Future, SlackResponse]: """Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. - https://api.slack.com/methods/admin.apps.uninstall + https://docs.slack.dev/reference/methods/admin.apps.uninstall """ kwargs.update({"app_id": app_id}) if enterprise_id is not None: @@ -324,7 +324,7 @@ def admin_apps_activities_list( **kwargs, ) -> Union[Future, SlackResponse]: """Get logs for a specified team/org - https://api.slack.com/methods/admin.apps.activities.list + https://docs.slack.dev/reference/methods/admin.apps.activities.list """ kwargs.update( { @@ -352,7 +352,7 @@ def admin_apps_config_lookup( **kwargs, ) -> Union[Future, SlackResponse]: """Look up the app config for connectors by their IDs - https://api.slack.com/methods/admin.apps.config.lookup + https://docs.slack.dev/reference/methods/admin.apps.config.lookup """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -369,7 +369,7 @@ def admin_apps_config_set( **kwargs, ) -> Union[Future, SlackResponse]: """Set the app config for a connector - https://api.slack.com/methods/admin.apps.config.set + https://docs.slack.dev/reference/methods/admin.apps.config.set """ kwargs.update( { @@ -391,7 +391,7 @@ def admin_auth_policy_getEntities( **kwargs, ) -> Union[Future, SlackResponse]: """Fetch all the entities assigned to a particular authentication policy by name. - https://api.slack.com/methods/admin.auth.policy.getEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities """ kwargs.update({"policy_name": policy_name}) if cursor is not None: @@ -411,7 +411,7 @@ def admin_auth_policy_assignEntities( **kwargs, ) -> Union[Future, SlackResponse]: """Assign entities to a particular authentication policy. - https://api.slack.com/methods/admin.auth.policy.assignEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -430,7 +430,7 @@ def admin_auth_policy_removeEntities( **kwargs, ) -> Union[Future, SlackResponse]: """Remove specified entities from a specified authentication policy. - https://api.slack.com/methods/admin.auth.policy.removeEntities + https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities """ if isinstance(entity_ids, (list, tuple)): kwargs.update({"entity_ids": ",".join(entity_ids)}) @@ -449,7 +449,7 @@ def admin_conversations_createForObjects( **kwargs, ) -> Union[Future, SlackResponse]: """Create a Salesforce channel for the corresponding object provided. - https://api.slack.com/methods/admin.conversations.createForObjects + https://docs.slack.dev/reference/methods/admin.conversations.createForObjects """ kwargs.update( {"object_id": object_id, "salesforce_org_id": salesforce_org_id, "invite_object_team": invite_object_team} @@ -465,7 +465,7 @@ def admin_conversations_linkObjects( **kwargs, ) -> Union[Future, SlackResponse]: """Link a Salesforce record to a channel. - https://api.slack.com/methods/admin.conversations.linkObjects + https://docs.slack.dev/reference/methods/admin.conversations.linkObjects """ kwargs.update( { @@ -484,7 +484,7 @@ def admin_conversations_unlinkObjects( **kwargs, ) -> Union[Future, SlackResponse]: """Unlink a Salesforce record from a channel. - https://api.slack.com/methods/admin.conversations.unlinkObjects + https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects """ kwargs.update( { @@ -503,7 +503,7 @@ def admin_barriers_create( **kwargs, ) -> Union[Future, SlackResponse]: """Create an Information Barrier - https://api.slack.com/methods/admin.barriers.create + https://docs.slack.dev/reference/methods/admin.barriers.create """ kwargs.update({"primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -523,7 +523,7 @@ def admin_barriers_delete( **kwargs, ) -> Union[Future, SlackResponse]: """Delete an existing Information Barrier - https://api.slack.com/methods/admin.barriers.delete + https://docs.slack.dev/reference/methods/admin.barriers.delete """ kwargs.update({"barrier_id": barrier_id}) return self.api_call("admin.barriers.delete", http_verb="POST", params=kwargs) @@ -538,7 +538,7 @@ def admin_barriers_update( **kwargs, ) -> Union[Future, SlackResponse]: """Update an existing Information Barrier - https://api.slack.com/methods/admin.barriers.update + https://docs.slack.dev/reference/methods/admin.barriers.update """ kwargs.update({"barrier_id": barrier_id, "primary_usergroup_id": primary_usergroup_id}) if isinstance(barriered_from_usergroup_ids, (list, tuple)): @@ -559,7 +559,7 @@ def admin_barriers_list( **kwargs, ) -> Union[Future, SlackResponse]: """Get all Information Barriers for your organization - https://api.slack.com/methods/admin.barriers.list""" + https://docs.slack.dev/reference/methods/admin.barriers.list""" kwargs.update( { "cursor": cursor, @@ -579,7 +579,7 @@ def admin_conversations_create( **kwargs, ) -> Union[Future, SlackResponse]: """Create a public or private channel-based conversation. - https://api.slack.com/methods/admin.conversations.create + https://docs.slack.dev/reference/methods/admin.conversations.create """ kwargs.update( { @@ -599,7 +599,7 @@ def admin_conversations_delete( **kwargs, ) -> Union[Future, SlackResponse]: """Delete a public or private channel. - https://api.slack.com/methods/admin.conversations.delete + https://docs.slack.dev/reference/methods/admin.conversations.delete """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.delete", params=kwargs) @@ -612,7 +612,7 @@ def admin_conversations_invite( **kwargs, ) -> Union[Future, SlackResponse]: """Invite a user to a public or private channel. - https://api.slack.com/methods/admin.conversations.invite + https://docs.slack.dev/reference/methods/admin.conversations.invite """ kwargs.update({"channel_id": channel_id}) if isinstance(user_ids, (list, tuple)): @@ -629,7 +629,7 @@ def admin_conversations_archive( **kwargs, ) -> Union[Future, SlackResponse]: """Archive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.archive", params=kwargs) @@ -641,7 +641,7 @@ def admin_conversations_unarchive( **kwargs, ) -> Union[Future, SlackResponse]: """Unarchive a public or private channel. - https://api.slack.com/methods/admin.conversations.archive + https://docs.slack.dev/reference/methods/admin.conversations.archive """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.unarchive", params=kwargs) @@ -654,7 +654,7 @@ def admin_conversations_rename( **kwargs, ) -> Union[Future, SlackResponse]: """Rename a public or private channel. - https://api.slack.com/methods/admin.conversations.rename + https://docs.slack.dev/reference/methods/admin.conversations.rename """ kwargs.update({"channel_id": channel_id, "name": name}) return self.api_call("admin.conversations.rename", params=kwargs) @@ -672,7 +672,7 @@ def admin_conversations_search( **kwargs, ) -> Union[Future, SlackResponse]: """Search for public or private channels in an Enterprise organization. - https://api.slack.com/methods/admin.conversations.search + https://docs.slack.dev/reference/methods/admin.conversations.search """ kwargs.update( { @@ -703,7 +703,7 @@ def admin_conversations_convertToPrivate( **kwargs, ) -> Union[Future, SlackResponse]: """Convert a public channel to a private channel. - https://api.slack.com/methods/admin.conversations.convertToPrivate + https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPrivate", params=kwargs) @@ -715,7 +715,7 @@ def admin_conversations_convertToPublic( **kwargs, ) -> Union[Future, SlackResponse]: """Convert a privte channel to a public channel. - https://api.slack.com/methods/admin.conversations.convertToPublic + https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.convertToPublic", params=kwargs) @@ -728,7 +728,7 @@ def admin_conversations_setConversationPrefs( **kwargs, ) -> Union[Future, SlackResponse]: """Set the posting permissions for a public or private channel. - https://api.slack.com/methods/admin.conversations.setConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs """ kwargs.update({"channel_id": channel_id}) if isinstance(prefs, dict): @@ -744,7 +744,7 @@ def admin_conversations_getConversationPrefs( **kwargs, ) -> Union[Future, SlackResponse]: """Get conversation preferences for a public or private channel. - https://api.slack.com/methods/admin.conversations.getConversationPrefs + https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getConversationPrefs", params=kwargs) @@ -757,7 +757,7 @@ def admin_conversations_disconnectShared( **kwargs, ) -> Union[Future, SlackResponse]: """Disconnect a connected channel from one or more workspaces. - https://api.slack.com/methods/admin.conversations.disconnectShared + https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared """ kwargs.update({"channel_id": channel_id}) if isinstance(leaving_team_ids, (list, tuple)): @@ -777,7 +777,7 @@ def admin_conversations_lookup( **kwargs, ) -> Union[Future, SlackResponse]: """Returns channels on the given team using the filters. - https://api.slack.com/methods/admin.conversations.lookup + https://docs.slack.dev/reference/methods/admin.conversations.lookup """ kwargs.update( { @@ -805,7 +805,7 @@ def admin_conversations_ekm_listOriginalConnectedChannelInfo( """List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. - https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo + https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo """ kwargs.update( { @@ -832,7 +832,7 @@ def admin_conversations_restrictAccess_addGroup( **kwargs, ) -> Union[Future, SlackResponse]: """Add an allowlist of IDP groups for accessing a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup """ kwargs.update( { @@ -855,7 +855,7 @@ def admin_conversations_restrictAccess_listGroups( **kwargs, ) -> Union[Future, SlackResponse]: """List all IDP Groups linked to a channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups """ kwargs.update( { @@ -878,7 +878,7 @@ def admin_conversations_restrictAccess_removeGroup( **kwargs, ) -> Union[Future, SlackResponse]: """Remove a linked IDP group linked from a private channel. - https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup + https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup """ kwargs.update( { @@ -903,7 +903,7 @@ def admin_conversations_setTeams( **kwargs, ) -> Union[Future, SlackResponse]: """Set the workspaces in an Enterprise grid org that connect to a public or private channel. - https://api.slack.com/methods/admin.conversations.setTeams + https://docs.slack.dev/reference/methods/admin.conversations.setTeams """ kwargs.update( { @@ -927,7 +927,7 @@ def admin_conversations_getTeams( **kwargs, ) -> Union[Future, SlackResponse]: """Set the workspaces in an Enterprise grid org that connect to a channel. - https://api.slack.com/methods/admin.conversations.getTeams + https://docs.slack.dev/reference/methods/admin.conversations.getTeams """ kwargs.update( { @@ -945,7 +945,7 @@ def admin_conversations_getCustomRetention( **kwargs, ) -> Union[Future, SlackResponse]: """Get a channel's retention policy - https://api.slack.com/methods/admin.conversations.getCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.getCustomRetention", params=kwargs) @@ -957,7 +957,7 @@ def admin_conversations_removeCustomRetention( **kwargs, ) -> Union[Future, SlackResponse]: """Remove a channel's retention policy - https://api.slack.com/methods/admin.conversations.removeCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention """ kwargs.update({"channel_id": channel_id}) return self.api_call("admin.conversations.removeCustomRetention", params=kwargs) @@ -970,7 +970,7 @@ def admin_conversations_setCustomRetention( **kwargs, ) -> Union[Future, SlackResponse]: """Set a channel's retention policy - https://api.slack.com/methods/admin.conversations.setCustomRetention + https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention """ kwargs.update({"channel_id": channel_id, "duration_days": duration_days}) return self.api_call("admin.conversations.setCustomRetention", params=kwargs) @@ -982,7 +982,7 @@ def admin_conversations_bulkArchive( **kwargs, ) -> Union[Future, SlackResponse]: """Archive public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkArchive + https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive """ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids}) return self.api_call("admin.conversations.bulkArchive", params=kwargs) @@ -1007,7 +1007,7 @@ def admin_conversations_bulkMove( **kwargs, ) -> Union[Future, SlackResponse]: """Move public or private channels in bulk. - https://api.slack.com/methods/admin.conversations.bulkMove + https://docs.slack.dev/reference/methods/admin.conversations.bulkMove """ kwargs.update( { @@ -1025,7 +1025,7 @@ def admin_emoji_add( **kwargs, ) -> Union[Future, SlackResponse]: """Add an emoji. - https://api.slack.com/methods/admin.emoji.add + https://docs.slack.dev/reference/methods/admin.emoji.add """ kwargs.update({"name": name, "url": url}) return self.api_call("admin.emoji.add", http_verb="GET", params=kwargs) @@ -1038,7 +1038,7 @@ def admin_emoji_addAlias( **kwargs, ) -> Union[Future, SlackResponse]: """Add an emoji alias. - https://api.slack.com/methods/admin.emoji.addAlias + https://docs.slack.dev/reference/methods/admin.emoji.addAlias """ kwargs.update({"alias_for": alias_for, "name": name}) return self.api_call("admin.emoji.addAlias", http_verb="GET", params=kwargs) @@ -1051,7 +1051,7 @@ def admin_emoji_list( **kwargs, ) -> Union[Future, SlackResponse]: """List emoji for an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.list + https://docs.slack.dev/reference/methods/admin.emoji.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.emoji.list", http_verb="GET", params=kwargs) @@ -1063,7 +1063,7 @@ def admin_emoji_remove( **kwargs, ) -> Union[Future, SlackResponse]: """Remove an emoji across an Enterprise Grid organization. - https://api.slack.com/methods/admin.emoji.remove + https://docs.slack.dev/reference/methods/admin.emoji.remove """ kwargs.update({"name": name}) return self.api_call("admin.emoji.remove", http_verb="GET", params=kwargs) @@ -1076,7 +1076,7 @@ def admin_emoji_rename( **kwargs, ) -> Union[Future, SlackResponse]: """Rename an emoji. - https://api.slack.com/methods/admin.emoji.rename + https://docs.slack.dev/reference/methods/admin.emoji.rename """ kwargs.update({"name": name, "new_name": new_name}) return self.api_call("admin.emoji.rename", http_verb="GET", params=kwargs) @@ -1091,7 +1091,7 @@ def admin_functions_list( **kwargs, ) -> Union[Future, SlackResponse]: """Look up functions by a set of apps - https://api.slack.com/methods/admin.functions.list + https://docs.slack.dev/reference/methods/admin.functions.list """ if isinstance(app_ids, (list, tuple)): kwargs.update({"app_ids": ",".join(app_ids)}) @@ -1114,7 +1114,7 @@ def admin_functions_permissions_lookup( ) -> Union[Future, SlackResponse]: """Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. - https://api.slack.com/methods/admin.functions.permissions.lookup + https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup """ if isinstance(function_ids, (list, tuple)): kwargs.update({"function_ids": ",".join(function_ids)}) @@ -1132,7 +1132,7 @@ def admin_functions_permissions_set( ) -> Union[Future, SlackResponse]: """Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities - https://api.slack.com/methods/admin.functions.permissions.set + https://docs.slack.dev/reference/methods/admin.functions.permissions.set """ kwargs.update( { @@ -1156,7 +1156,7 @@ def admin_roles_addAssignments( **kwargs, ) -> Union[Future, SlackResponse]: """Adds members to the specified role with the specified scopes - https://api.slack.com/methods/admin.roles.addAssignments + https://docs.slack.dev/reference/methods/admin.roles.addAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1181,7 +1181,7 @@ def admin_roles_listAssignments( ) -> Union[Future, SlackResponse]: """Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities - https://api.slack.com/methods/admin.roles.listAssignments + https://docs.slack.dev/reference/methods/admin.roles.listAssignments """ kwargs.update({"cursor": cursor, "limit": limit, "sort_dir": sort_dir}) if isinstance(entity_ids, (list, tuple)): @@ -1203,7 +1203,7 @@ def admin_roles_removeAssignments( **kwargs, ) -> Union[Future, SlackResponse]: """Removes a set of users from a role for the given scopes and entities - https://api.slack.com/methods/admin.roles.removeAssignments + https://docs.slack.dev/reference/methods/admin.roles.removeAssignments """ kwargs.update({"role_id": role_id}) if isinstance(entity_ids, (list, tuple)): @@ -1225,7 +1225,7 @@ def admin_users_session_reset( **kwargs, ) -> Union[Future, SlackResponse]: """Wipes all valid sessions on all devices for a given user. - https://api.slack.com/methods/admin.users.session.reset + https://docs.slack.dev/reference/methods/admin.users.session.reset """ kwargs.update( { @@ -1245,7 +1245,7 @@ def admin_users_session_resetBulk( **kwargs, ) -> Union[Future, SlackResponse]: """Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users - https://api.slack.com/methods/admin.users.session.resetBulk + https://docs.slack.dev/reference/methods/admin.users.session.resetBulk """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1267,7 +1267,7 @@ def admin_users_session_invalidate( **kwargs, ) -> Union[Future, SlackResponse]: """Invalidate a single session for a user by session_id. - https://api.slack.com/methods/admin.users.session.invalidate + https://docs.slack.dev/reference/methods/admin.users.session.invalidate """ kwargs.update({"session_id": session_id, "team_id": team_id}) return self.api_call("admin.users.session.invalidate", params=kwargs) @@ -1282,7 +1282,7 @@ def admin_users_session_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists all active user sessions for an organization - https://api.slack.com/methods/admin.users.session.list + https://docs.slack.dev/reference/methods/admin.users.session.list """ kwargs.update( { @@ -1302,7 +1302,7 @@ def admin_teams_settings_setDefaultChannels( **kwargs, ) -> Union[Future, SlackResponse]: """Set the default channels of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDefaultChannels + https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels """ kwargs.update({"team_id": team_id}) if isinstance(channel_ids, (list, tuple)): @@ -1319,7 +1319,7 @@ def admin_users_session_getSettings( ) -> Union[Future, SlackResponse]: """Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. - https://api.slack.com/methods/admin.users.session.getSettings + https://docs.slack.dev/reference/methods/admin.users.session.getSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1337,7 +1337,7 @@ def admin_users_session_setSettings( ) -> Union[Future, SlackResponse]: """Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. - https://api.slack.com/methods/admin.users.session.setSettings + https://docs.slack.dev/reference/methods/admin.users.session.setSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1359,7 +1359,7 @@ def admin_users_session_clearSettings( ) -> Union[Future, SlackResponse]: """Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. - https://api.slack.com/methods/admin.users.session.clearSettings + https://docs.slack.dev/reference/methods/admin.users.session.clearSettings """ if isinstance(user_ids, (list, tuple)): kwargs.update({"user_ids": ",".join(user_ids)}) @@ -1376,7 +1376,7 @@ def admin_users_unsupportedVersions_export( ) -> Union[Future, SlackResponse]: """Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. - https://api.slack.com/methods/admin.users.unsupportedVersions.export + https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export """ kwargs.update( { @@ -1394,7 +1394,7 @@ def admin_inviteRequests_approve( **kwargs, ) -> Union[Future, SlackResponse]: """Approve a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.approve + https://docs.slack.dev/reference/methods/admin.inviteRequests.approve """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.approve", params=kwargs) @@ -1408,7 +1408,7 @@ def admin_inviteRequests_approved_list( **kwargs, ) -> Union[Future, SlackResponse]: """List all approved workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.approved.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list """ kwargs.update( { @@ -1428,7 +1428,7 @@ def admin_inviteRequests_denied_list( **kwargs, ) -> Union[Future, SlackResponse]: """List all denied workspace invite requests. - https://api.slack.com/methods/admin.inviteRequests.denied.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list """ kwargs.update( { @@ -1447,7 +1447,7 @@ def admin_inviteRequests_deny( **kwargs, ) -> Union[Future, SlackResponse]: """Deny a workspace invite request. - https://api.slack.com/methods/admin.inviteRequests.deny + https://docs.slack.dev/reference/methods/admin.inviteRequests.deny """ kwargs.update({"invite_request_id": invite_request_id, "team_id": team_id}) return self.api_call("admin.inviteRequests.deny", params=kwargs) @@ -1468,7 +1468,7 @@ def admin_teams_admins_list( **kwargs, ) -> Union[Future, SlackResponse]: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.inviteRequests.list + https://docs.slack.dev/reference/methods/admin.inviteRequests.list """ kwargs.update( { @@ -1489,7 +1489,7 @@ def admin_teams_create( **kwargs, ) -> Union[Future, SlackResponse]: """Create an Enterprise team. - https://api.slack.com/methods/admin.teams.create + https://docs.slack.dev/reference/methods/admin.teams.create """ kwargs.update( { @@ -1509,7 +1509,7 @@ def admin_teams_list( **kwargs, ) -> Union[Future, SlackResponse]: """List all teams on an Enterprise organization. - https://api.slack.com/methods/admin.teams.list + https://docs.slack.dev/reference/methods/admin.teams.list """ kwargs.update({"cursor": cursor, "limit": limit}) return self.api_call("admin.teams.list", params=kwargs) @@ -1523,7 +1523,7 @@ def admin_teams_owners_list( **kwargs, ) -> Union[Future, SlackResponse]: """List all of the admins on a given workspace. - https://api.slack.com/methods/admin.teams.owners.list + https://docs.slack.dev/reference/methods/admin.teams.owners.list """ kwargs.update({"team_id": team_id, "cursor": cursor, "limit": limit}) return self.api_call("admin.teams.owners.list", http_verb="GET", params=kwargs) @@ -1535,7 +1535,7 @@ def admin_teams_settings_info( **kwargs, ) -> Union[Future, SlackResponse]: """Fetch information about settings in a workspace - https://api.slack.com/methods/admin.teams.settings.info + https://docs.slack.dev/reference/methods/admin.teams.settings.info """ kwargs.update({"team_id": team_id}) return self.api_call("admin.teams.settings.info", params=kwargs) @@ -1548,7 +1548,7 @@ def admin_teams_settings_setDescription( **kwargs, ) -> Union[Future, SlackResponse]: """Set the description of a given workspace. - https://api.slack.com/methods/admin.teams.settings.setDescription + https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription """ kwargs.update({"team_id": team_id, "description": description}) return self.api_call("admin.teams.settings.setDescription", params=kwargs) @@ -1561,7 +1561,7 @@ def admin_teams_settings_setDiscoverability( **kwargs, ) -> Union[Future, SlackResponse]: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setDiscoverability + https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability """ kwargs.update({"team_id": team_id, "discoverability": discoverability}) return self.api_call("admin.teams.settings.setDiscoverability", params=kwargs) @@ -1574,7 +1574,7 @@ def admin_teams_settings_setIcon( **kwargs, ) -> Union[Future, SlackResponse]: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setIcon + https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon """ kwargs.update({"team_id": team_id, "image_url": image_url}) return self.api_call("admin.teams.settings.setIcon", http_verb="GET", params=kwargs) @@ -1587,7 +1587,7 @@ def admin_teams_settings_setName( **kwargs, ) -> Union[Future, SlackResponse]: """Sets the icon of a workspace. - https://api.slack.com/methods/admin.teams.settings.setName + https://docs.slack.dev/reference/methods/admin.teams.settings.setName """ kwargs.update({"team_id": team_id, "name": name}) return self.api_call("admin.teams.settings.setName", params=kwargs) @@ -1601,7 +1601,7 @@ def admin_usergroups_addChannels( **kwargs, ) -> Union[Future, SlackResponse]: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.addChannels + https://docs.slack.dev/reference/methods/admin.usergroups.addChannels """ kwargs.update({"team_id": team_id, "usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1619,7 +1619,7 @@ def admin_usergroups_addTeams( **kwargs, ) -> Union[Future, SlackResponse]: """Associate one or more default workspaces with an organization-wide IDP group. - https://api.slack.com/methods/admin.usergroups.addTeams + https://docs.slack.dev/reference/methods/admin.usergroups.addTeams """ kwargs.update({"usergroup_id": usergroup_id, "auto_provision": auto_provision}) if isinstance(team_ids, (list, tuple)): @@ -1637,7 +1637,7 @@ def admin_usergroups_listChannels( **kwargs, ) -> Union[Future, SlackResponse]: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.listChannels + https://docs.slack.dev/reference/methods/admin.usergroups.listChannels """ kwargs.update( { @@ -1656,7 +1656,7 @@ def admin_usergroups_removeChannels( **kwargs, ) -> Union[Future, SlackResponse]: """Add one or more default channels to an IDP group. - https://api.slack.com/methods/admin.usergroups.removeChannels + https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels """ kwargs.update({"usergroup_id": usergroup_id}) if isinstance(channel_ids, (list, tuple)): @@ -1676,7 +1676,7 @@ def admin_users_assign( **kwargs, ) -> Union[Future, SlackResponse]: """Add an Enterprise user to a workspace. - https://api.slack.com/methods/admin.users.assign + https://docs.slack.dev/reference/methods/admin.users.assign """ kwargs.update( { @@ -1708,7 +1708,7 @@ def admin_users_invite( **kwargs, ) -> Union[Future, SlackResponse]: """Invite a user to a workspace. - https://api.slack.com/methods/admin.users.invite + https://docs.slack.dev/reference/methods/admin.users.invite """ kwargs.update( { @@ -1740,7 +1740,7 @@ def admin_users_list( **kwargs, ) -> Union[Future, SlackResponse]: """List users on a workspace - https://api.slack.com/methods/admin.users.list + https://docs.slack.dev/reference/methods/admin.users.list """ kwargs.update( { @@ -1761,7 +1761,7 @@ def admin_users_remove( **kwargs, ) -> Union[Future, SlackResponse]: """Remove a user from a workspace. - https://api.slack.com/methods/admin.users.remove + https://docs.slack.dev/reference/methods/admin.users.remove """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.remove", params=kwargs) @@ -1774,7 +1774,7 @@ def admin_users_setAdmin( **kwargs, ) -> Union[Future, SlackResponse]: """Set an existing guest, regular user, or owner to be an admin user. - https://api.slack.com/methods/admin.users.setAdmin + https://docs.slack.dev/reference/methods/admin.users.setAdmin """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setAdmin", params=kwargs) @@ -1788,7 +1788,7 @@ def admin_users_setExpiration( **kwargs, ) -> Union[Future, SlackResponse]: """Set an expiration for a guest user. - https://api.slack.com/methods/admin.users.setExpiration + https://docs.slack.dev/reference/methods/admin.users.setExpiration """ kwargs.update({"expiration_ts": expiration_ts, "team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setExpiration", params=kwargs) @@ -1801,7 +1801,7 @@ def admin_users_setOwner( **kwargs, ) -> Union[Future, SlackResponse]: """Set an existing guest, regular user, or admin user to be a workspace owner. - https://api.slack.com/methods/admin.users.setOwner + https://docs.slack.dev/reference/methods/admin.users.setOwner """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setOwner", params=kwargs) @@ -1814,7 +1814,7 @@ def admin_users_setRegular( **kwargs, ) -> Union[Future, SlackResponse]: """Set an existing guest user, admin user, or owner to be a regular user. - https://api.slack.com/methods/admin.users.setRegular + https://docs.slack.dev/reference/methods/admin.users.setRegular """ kwargs.update({"team_id": team_id, "user_id": user_id}) return self.api_call("admin.users.setRegular", params=kwargs) @@ -1835,7 +1835,7 @@ def admin_workflows_search( **kwargs, ) -> Union[Future, SlackResponse]: """Search workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.search + https://docs.slack.dev/reference/methods/admin.workflows.search """ if collaborator_ids is not None: if isinstance(collaborator_ids, (list, tuple)): @@ -1865,7 +1865,7 @@ def admin_workflows_permissions_lookup( **kwargs, ) -> Union[Future, SlackResponse]: """Look up the permissions for a set of workflows - https://api.slack.com/methods/admin.workflows.permissions.lookup + https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1886,7 +1886,7 @@ def admin_workflows_collaborators_add( **kwargs, ) -> Union[Future, SlackResponse]: """Add collaborators to workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.add + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1906,7 +1906,7 @@ def admin_workflows_collaborators_remove( **kwargs, ) -> Union[Future, SlackResponse]: """Remove collaborators from workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.collaborators.remove + https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove """ if isinstance(collaborator_ids, (list, tuple)): kwargs.update({"collaborator_ids": ",".join(collaborator_ids)}) @@ -1925,7 +1925,7 @@ def admin_workflows_unpublish( **kwargs, ) -> Union[Future, SlackResponse]: """Unpublish workflows within the team or enterprise - https://api.slack.com/methods/admin.workflows.unpublish + https://docs.slack.dev/reference/methods/admin.workflows.unpublish """ if isinstance(workflow_ids, (list, tuple)): kwargs.update({"workflow_ids": ",".join(workflow_ids)}) @@ -1940,7 +1940,7 @@ def api_test( **kwargs, ) -> Union[Future, SlackResponse]: """Checks API calling code. - https://api.slack.com/methods/api.test + https://docs.slack.dev/reference/methods/api.test """ kwargs.update({"error": error}) return self.api_call("api.test", params=kwargs) @@ -1953,7 +1953,7 @@ def apps_connections_open( ) -> Union[Future, SlackResponse]: """Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads - https://api.slack.com/methods/apps.connections.open + https://docs.slack.dev/reference/methods/apps.connections.open """ kwargs.update({"token": app_token}) return self.api_call("apps.connections.open", http_verb="POST", params=kwargs) @@ -1968,7 +1968,7 @@ def apps_event_authorizations_list( ) -> Union[Future, SlackResponse]: """Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. - https://api.slack.com/methods/apps.event.authorizations.list + https://docs.slack.dev/reference/methods/apps.event.authorizations.list """ kwargs.update({"event_context": event_context, "cursor": cursor, "limit": limit}) return self.api_call("apps.event.authorizations.list", params=kwargs) @@ -1981,7 +1981,7 @@ def apps_uninstall( **kwargs, ) -> Union[Future, SlackResponse]: """Uninstalls your app from a workspace. - https://api.slack.com/methods/apps.uninstall + https://docs.slack.dev/reference/methods/apps.uninstall """ kwargs.update({"client_id": client_id, "client_secret": client_secret}) return self.api_call("apps.uninstall", params=kwargs) @@ -1993,7 +1993,7 @@ def apps_manifest_create( **kwargs, ) -> Union[Future, SlackResponse]: """Create an app from an app manifest - https://api.slack.com/methods/apps.manifest.create + https://docs.slack.dev/reference/methods/apps.manifest.create """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2008,7 +2008,7 @@ def apps_manifest_delete( **kwargs, ) -> Union[Future, SlackResponse]: """Permanently deletes an app created through app manifests - https://api.slack.com/methods/apps.manifest.delete + https://docs.slack.dev/reference/methods/apps.manifest.delete """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.delete", params=kwargs) @@ -2020,7 +2020,7 @@ def apps_manifest_export( **kwargs, ) -> Union[Future, SlackResponse]: """Export an app manifest from an existing app - https://api.slack.com/methods/apps.manifest.export + https://docs.slack.dev/reference/methods/apps.manifest.export """ kwargs.update({"app_id": app_id}) return self.api_call("apps.manifest.export", params=kwargs) @@ -2033,7 +2033,7 @@ def apps_manifest_update( **kwargs, ) -> Union[Future, SlackResponse]: """Update an app from an app manifest - https://api.slack.com/methods/apps.manifest.update + https://docs.slack.dev/reference/methods/apps.manifest.update """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2050,7 +2050,7 @@ def apps_manifest_validate( **kwargs, ) -> Union[Future, SlackResponse]: """Validate an app manifest - https://api.slack.com/methods/apps.manifest.validate + https://docs.slack.dev/reference/methods/apps.manifest.validate """ if isinstance(manifest, str): kwargs.update({"manifest": manifest}) @@ -2066,7 +2066,7 @@ def tooling_tokens_rotate( **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a refresh token for a new app configuration token - https://api.slack.com/methods/tooling.tokens.rotate + https://docs.slack.dev/reference/methods/tooling.tokens.rotate """ kwargs.update({"refresh_token": refresh_token}) return self.api_call("tooling.tokens.rotate", params=kwargs) @@ -2080,7 +2080,7 @@ def assistant_threads_setStatus( **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setStatus + https://docs.slack.dev/reference/methods/assistant.threads.setStatus """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) return self.api_call("assistant.threads.setStatus", params=kwargs) @@ -2094,7 +2094,7 @@ def assistant_threads_setTitle( **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setTitle + https://docs.slack.dev/reference/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) return self.api_call("assistant.threads.setTitle", params=kwargs) @@ -2109,7 +2109,7 @@ def assistant_threads_setSuggestedPrompts( **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/assistant.threads.setSuggestedPrompts + https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) if title is not None: @@ -2123,7 +2123,7 @@ def auth_revoke( **kwargs, ) -> Union[Future, SlackResponse]: """Revokes a token. - https://api.slack.com/methods/auth.revoke + https://docs.slack.dev/reference/methods/auth.revoke """ kwargs.update({"test": test}) return self.api_call("auth.revoke", http_verb="GET", params=kwargs) @@ -2133,7 +2133,7 @@ def auth_test( **kwargs, ) -> Union[Future, SlackResponse]: """Checks authentication & identity. - https://api.slack.com/methods/auth.test + https://docs.slack.dev/reference/methods/auth.test """ return self.api_call("auth.test", params=kwargs) @@ -2145,7 +2145,7 @@ def auth_teams_list( **kwargs, ) -> Union[Future, SlackResponse]: """List the workspaces a token can access. - https://api.slack.com/methods/auth.teams.list + https://docs.slack.dev/reference/methods/auth.teams.list """ kwargs.update({"cursor": cursor, "limit": limit, "include_icon": include_icon}) return self.api_call("auth.teams.list", params=kwargs) @@ -2163,7 +2163,7 @@ def bookmarks_add( **kwargs, ) -> Union[Future, SlackResponse]: """Add bookmark to a channel. - https://api.slack.com/methods/bookmarks.add + https://docs.slack.dev/reference/methods/bookmarks.add """ kwargs.update( { @@ -2189,7 +2189,7 @@ def bookmarks_edit( **kwargs, ) -> Union[Future, SlackResponse]: """Edit bookmark. - https://api.slack.com/methods/bookmarks.edit + https://docs.slack.dev/reference/methods/bookmarks.edit """ kwargs.update( { @@ -2209,7 +2209,7 @@ def bookmarks_list( **kwargs, ) -> Union[Future, SlackResponse]: """List bookmark for the channel. - https://api.slack.com/methods/bookmarks.list + https://docs.slack.dev/reference/methods/bookmarks.list """ kwargs.update({"channel_id": channel_id}) return self.api_call("bookmarks.list", http_verb="POST", params=kwargs) @@ -2222,7 +2222,7 @@ def bookmarks_remove( **kwargs, ) -> Union[Future, SlackResponse]: """Remove bookmark from the channel. - https://api.slack.com/methods/bookmarks.remove + https://docs.slack.dev/reference/methods/bookmarks.remove """ kwargs.update({"bookmark_id": bookmark_id, "channel_id": channel_id}) return self.api_call("bookmarks.remove", http_verb="POST", params=kwargs) @@ -2235,7 +2235,7 @@ def bots_info( **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a bot user. - https://api.slack.com/methods/bots.info + https://docs.slack.dev/reference/methods/bots.info """ kwargs.update({"bot": bot, "team_id": team_id}) return self.api_call("bots.info", http_verb="GET", params=kwargs) @@ -2254,7 +2254,7 @@ def calls_add( **kwargs, ) -> Union[Future, SlackResponse]: """Registers a new Call. - https://api.slack.com/methods/calls.add + https://docs.slack.dev/reference/methods/calls.add """ kwargs.update( { @@ -2281,7 +2281,7 @@ def calls_end( **kwargs, ) -> Union[Future, SlackResponse]: """Ends a Call. - https://api.slack.com/methods/calls.end + https://docs.slack.dev/reference/methods/calls.end """ kwargs.update({"id": id, "duration": duration}) return self.api_call("calls.end", http_verb="POST", params=kwargs) @@ -2293,7 +2293,7 @@ def calls_info( **kwargs, ) -> Union[Future, SlackResponse]: """Returns information about a Call. - https://api.slack.com/methods/calls.info + https://docs.slack.dev/reference/methods/calls.info """ kwargs.update({"id": id}) return self.api_call("calls.info", http_verb="POST", params=kwargs) @@ -2306,7 +2306,7 @@ def calls_participants_add( **kwargs, ) -> Union[Future, SlackResponse]: """Registers new participants added to a Call. - https://api.slack.com/methods/calls.participants.add + https://docs.slack.dev/reference/methods/calls.participants.add """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2320,7 +2320,7 @@ def calls_participants_remove( **kwargs, ) -> Union[Future, SlackResponse]: """Registers participants removed from a Call. - https://api.slack.com/methods/calls.participants.remove + https://docs.slack.dev/reference/methods/calls.participants.remove """ kwargs.update({"id": id}) _update_call_participants(kwargs, users) @@ -2336,7 +2336,7 @@ def calls_update( **kwargs, ) -> Union[Future, SlackResponse]: """Updates information about a Call. - https://api.slack.com/methods/calls.update + https://docs.slack.dev/reference/methods/calls.update """ kwargs.update( { @@ -2356,7 +2356,7 @@ def canvases_create( **kwargs, ) -> Union[Future, SlackResponse]: """Create Canvas for a user - https://api.slack.com/methods/canvases.create + https://docs.slack.dev/reference/methods/canvases.create """ kwargs.update({"title": title, "document_content": document_content}) return self.api_call("canvases.create", json=kwargs) @@ -2369,7 +2369,7 @@ def canvases_edit( **kwargs, ) -> Union[Future, SlackResponse]: """Update an existing canvas - https://api.slack.com/methods/canvases.edit + https://docs.slack.dev/reference/methods/canvases.edit """ kwargs.update({"canvas_id": canvas_id, "changes": changes}) return self.api_call("canvases.edit", json=kwargs) @@ -2381,7 +2381,7 @@ def canvases_delete( **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a canvas - https://api.slack.com/methods/canvases.delete + https://docs.slack.dev/reference/methods/canvases.delete """ kwargs.update({"canvas_id": canvas_id}) return self.api_call("canvases.delete", params=kwargs) @@ -2396,7 +2396,7 @@ def canvases_access_set( **kwargs, ) -> Union[Future, SlackResponse]: """Sets the access level to a canvas for specified entities - https://api.slack.com/methods/canvases.access.set + https://docs.slack.dev/reference/methods/canvases.access.set """ kwargs.update({"canvas_id": canvas_id, "access_level": access_level}) if channel_ids is not None: @@ -2421,7 +2421,7 @@ def canvases_access_delete( **kwargs, ) -> Union[Future, SlackResponse]: """Create a Channel Canvas for a channel - https://api.slack.com/methods/canvases.access.delete + https://docs.slack.dev/reference/methods/canvases.access.delete """ kwargs.update({"canvas_id": canvas_id}) if channel_ids is not None: @@ -2444,7 +2444,7 @@ def canvases_sections_lookup( **kwargs, ) -> Union[Future, SlackResponse]: """Find sections matching the provided criteria - https://api.slack.com/methods/canvases.sections.lookup + https://docs.slack.dev/reference/methods/canvases.sections.lookup """ kwargs.update({"canvas_id": canvas_id, "criteria": json.dumps(criteria)}) return self.api_call("canvases.sections.lookup", params=kwargs) @@ -2452,7 +2452,7 @@ def canvases_sections_lookup( # -------------------------- # Deprecated: channels.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def channels_archive( @@ -2631,7 +2631,7 @@ def chat_delete( **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a message. - https://api.slack.com/methods/chat.delete + https://docs.slack.dev/reference/methods/chat.delete """ kwargs.update({"channel": channel, "ts": ts, "as_user": as_user}) return self.api_call("chat.delete", params=kwargs) @@ -2645,7 +2645,7 @@ def chat_deleteScheduledMessage( **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a scheduled message. - https://api.slack.com/methods/chat.deleteScheduledMessage + https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage """ kwargs.update( { @@ -2664,7 +2664,7 @@ def chat_getPermalink( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a permalink URL for a specific extant message - https://api.slack.com/methods/chat.getPermalink + https://docs.slack.dev/reference/methods/chat.getPermalink """ kwargs.update({"channel": channel, "message_ts": message_ts}) return self.api_call("chat.getPermalink", http_verb="GET", params=kwargs) @@ -2677,7 +2677,7 @@ def chat_meMessage( **kwargs, ) -> Union[Future, SlackResponse]: """Share a me message into a channel. - https://api.slack.com/methods/chat.meMessage + https://docs.slack.dev/reference/methods/chat.meMessage """ kwargs.update({"channel": channel, "text": text}) return self.api_call("chat.meMessage", params=kwargs) @@ -2701,7 +2701,7 @@ def chat_postEphemeral( **kwargs, ) -> Union[Future, SlackResponse]: """Sends an ephemeral message to a user in a channel. - https://api.slack.com/methods/chat.postEphemeral + https://docs.slack.dev/reference/methods/chat.postEphemeral """ kwargs.update( { @@ -2750,7 +2750,7 @@ def chat_postMessage( **kwargs, ) -> Union[Future, SlackResponse]: """Sends a message to a channel. - https://api.slack.com/methods/chat.postMessage + https://docs.slack.dev/reference/methods/chat.postMessage """ kwargs.update( { @@ -2800,7 +2800,7 @@ def chat_scheduleMessage( **kwargs, ) -> Union[Future, SlackResponse]: """Schedules a message. - https://api.slack.com/methods/chat.scheduleMessage + https://docs.slack.dev/reference/methods/chat.scheduleMessage """ kwargs.update( { @@ -2841,7 +2841,7 @@ def chat_unfurl( **kwargs, ) -> Union[Future, SlackResponse]: """Provide custom unfurl behavior for user-posted URLs. - https://api.slack.com/methods/chat.unfurl + https://docs.slack.dev/reference/methods/chat.unfurl """ kwargs.update( { @@ -2879,7 +2879,7 @@ def chat_update( **kwargs, ) -> Union[Future, SlackResponse]: """Updates a message in a channel. - https://api.slack.com/methods/chat.update + https://docs.slack.dev/reference/methods/chat.update """ kwargs.update( { @@ -2918,7 +2918,7 @@ def chat_scheduledMessages_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists all scheduled messages. - https://api.slack.com/methods/chat.scheduledMessages.list + https://docs.slack.dev/reference/methods/chat.scheduledMessages.list """ kwargs.update( { @@ -2944,7 +2944,7 @@ def conversations_acceptSharedInvite( **kwargs, ) -> Union[Future, SlackResponse]: """Accepts an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.acceptSharedInvite + https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite """ if channel_id is None and invite_id is None: raise e.SlackRequestError("Either channel_id or invite_id must be provided.") @@ -2968,7 +2968,7 @@ def conversations_approveSharedInvite( **kwargs, ) -> Union[Future, SlackResponse]: """Approves an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.approveSharedInvite + https://docs.slack.dev/reference/methods/conversations.approveSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.approveSharedInvite", http_verb="POST", params=kwargs) @@ -2980,7 +2980,7 @@ def conversations_archive( **kwargs, ) -> Union[Future, SlackResponse]: """Archives a conversation. - https://api.slack.com/methods/conversations.archive + https://docs.slack.dev/reference/methods/conversations.archive """ kwargs.update({"channel": channel}) return self.api_call("conversations.archive", params=kwargs) @@ -2992,7 +2992,7 @@ def conversations_close( **kwargs, ) -> Union[Future, SlackResponse]: """Closes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.close + https://docs.slack.dev/reference/methods/conversations.close """ kwargs.update({"channel": channel}) return self.api_call("conversations.close", params=kwargs) @@ -3006,7 +3006,7 @@ def conversations_create( **kwargs, ) -> Union[Future, SlackResponse]: """Initiates a public or private channel-based conversation - https://api.slack.com/methods/conversations.create + https://docs.slack.dev/reference/methods/conversations.create """ kwargs.update({"name": name, "is_private": is_private, "team_id": team_id}) return self.api_call("conversations.create", params=kwargs) @@ -3019,7 +3019,7 @@ def conversations_declineSharedInvite( **kwargs, ) -> Union[Future, SlackResponse]: """Declines a Slack Connect channel invite. - https://api.slack.com/methods/conversations.declineSharedInvite + https://docs.slack.dev/reference/methods/conversations.declineSharedInvite """ kwargs.update({"invite_id": invite_id, "target_team": target_team}) return self.api_call("conversations.declineSharedInvite", http_verb="GET", params=kwargs) @@ -3028,7 +3028,7 @@ def conversations_externalInvitePermissions_set( self, *, action: str, channel: str, target_team: str, **kwargs ) -> Union[Future, SlackResponse]: """Sets a team in a shared External Limited channel to a shared Slack Connect channel or vice versa. - https://api.slack.com/methods/conversations.externalInvitePermissions.set + https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set """ kwargs.update( { @@ -3052,7 +3052,7 @@ def conversations_history( **kwargs, ) -> Union[Future, SlackResponse]: """Fetches a conversation's history of messages and events. - https://api.slack.com/methods/conversations.history + https://docs.slack.dev/reference/methods/conversations.history """ kwargs.update( { @@ -3076,7 +3076,7 @@ def conversations_info( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve information about a conversation. - https://api.slack.com/methods/conversations.info + https://docs.slack.dev/reference/methods/conversations.info """ kwargs.update( { @@ -3096,7 +3096,7 @@ def conversations_invite( **kwargs, ) -> Union[Future, SlackResponse]: """Invites users to a channel. - https://api.slack.com/methods/conversations.invite + https://docs.slack.dev/reference/methods/conversations.invite """ kwargs.update( { @@ -3119,7 +3119,7 @@ def conversations_inviteShared( **kwargs, ) -> Union[Future, SlackResponse]: """Sends an invitation to a Slack Connect channel. - https://api.slack.com/methods/conversations.inviteShared + https://docs.slack.dev/reference/methods/conversations.inviteShared """ if emails is None and user_ids is None: raise e.SlackRequestError("Either emails or user ids must be provided.") @@ -3141,7 +3141,7 @@ def conversations_join( **kwargs, ) -> Union[Future, SlackResponse]: """Joins an existing conversation. - https://api.slack.com/methods/conversations.join + https://docs.slack.dev/reference/methods/conversations.join """ kwargs.update({"channel": channel}) return self.api_call("conversations.join", params=kwargs) @@ -3154,7 +3154,7 @@ def conversations_kick( **kwargs, ) -> Union[Future, SlackResponse]: """Removes a user from a conversation. - https://api.slack.com/methods/conversations.kick + https://docs.slack.dev/reference/methods/conversations.kick """ kwargs.update({"channel": channel, "user": user}) return self.api_call("conversations.kick", params=kwargs) @@ -3166,7 +3166,7 @@ def conversations_leave( **kwargs, ) -> Union[Future, SlackResponse]: """Leaves a conversation. - https://api.slack.com/methods/conversations.leave + https://docs.slack.dev/reference/methods/conversations.leave """ kwargs.update({"channel": channel}) return self.api_call("conversations.leave", params=kwargs) @@ -3182,7 +3182,7 @@ def conversations_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists all channels in a Slack team. - https://api.slack.com/methods/conversations.list + https://docs.slack.dev/reference/methods/conversations.list """ kwargs.update( { @@ -3208,7 +3208,7 @@ def conversations_listConnectInvites( ) -> Union[Future, SlackResponse]: """List shared channel invites that have been generated or received but have not yet been approved by all parties. - https://api.slack.com/methods/conversations.listConnectInvites + https://docs.slack.dev/reference/methods/conversations.listConnectInvites """ kwargs.update({"count": count, "cursor": cursor, "team_id": team_id}) return self.api_call("conversations.listConnectInvites", params=kwargs) @@ -3221,7 +3221,7 @@ def conversations_mark( **kwargs, ) -> Union[Future, SlackResponse]: """Sets the read cursor in a channel. - https://api.slack.com/methods/conversations.mark + https://docs.slack.dev/reference/methods/conversations.mark """ kwargs.update({"channel": channel, "ts": ts}) return self.api_call("conversations.mark", params=kwargs) @@ -3235,7 +3235,7 @@ def conversations_members( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve members of a conversation. - https://api.slack.com/methods/conversations.members + https://docs.slack.dev/reference/methods/conversations.members """ kwargs.update({"channel": channel, "cursor": cursor, "limit": limit}) return self.api_call("conversations.members", http_verb="GET", params=kwargs) @@ -3249,7 +3249,7 @@ def conversations_open( **kwargs, ) -> Union[Future, SlackResponse]: """Opens or resumes a direct message or multi-person direct message. - https://api.slack.com/methods/conversations.open + https://docs.slack.dev/reference/methods/conversations.open """ if channel is None and users is None: raise e.SlackRequestError("Either channel or users must be provided.") @@ -3268,7 +3268,7 @@ def conversations_rename( **kwargs, ) -> Union[Future, SlackResponse]: """Renames a conversation. - https://api.slack.com/methods/conversations.rename + https://docs.slack.dev/reference/methods/conversations.rename """ kwargs.update({"channel": channel, "name": name}) return self.api_call("conversations.rename", params=kwargs) @@ -3287,7 +3287,7 @@ def conversations_replies( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a thread of messages posted to a conversation - https://api.slack.com/methods/conversations.replies + https://docs.slack.dev/reference/methods/conversations.replies """ kwargs.update( { @@ -3313,7 +3313,7 @@ def conversations_requestSharedInvite_approve( **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 + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve """ kwargs.update( { @@ -3334,7 +3334,7 @@ def conversations_requestSharedInvite_deny( **kwargs, ) -> Union[Future, SlackResponse]: """Deny a request to invite an external user to a channel. - https://api.slack.com/methods/conversations.requestSharedInvite.deny + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny """ kwargs.update({"invite_id": invite_id, "message": message}) return self.api_call("conversations.requestSharedInvite.deny", params=kwargs) @@ -3352,7 +3352,7 @@ def conversations_requestSharedInvite_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists requests to add external users to channels with ability to filter. - https://api.slack.com/methods/conversations.requestSharedInvite.list + https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list """ kwargs.update( { @@ -3379,7 +3379,7 @@ def conversations_setPurpose( **kwargs, ) -> Union[Future, SlackResponse]: """Sets the purpose for a conversation. - https://api.slack.com/methods/conversations.setPurpose + https://docs.slack.dev/reference/methods/conversations.setPurpose """ kwargs.update({"channel": channel, "purpose": purpose}) return self.api_call("conversations.setPurpose", params=kwargs) @@ -3392,7 +3392,7 @@ def conversations_setTopic( **kwargs, ) -> Union[Future, SlackResponse]: """Sets the topic for a conversation. - https://api.slack.com/methods/conversations.setTopic + https://docs.slack.dev/reference/methods/conversations.setTopic """ kwargs.update({"channel": channel, "topic": topic}) return self.api_call("conversations.setTopic", params=kwargs) @@ -3404,7 +3404,7 @@ def conversations_unarchive( **kwargs, ) -> Union[Future, SlackResponse]: """Reverses conversation archival. - https://api.slack.com/methods/conversations.unarchive + https://docs.slack.dev/reference/methods/conversations.unarchive """ kwargs.update({"channel": channel}) return self.api_call("conversations.unarchive", params=kwargs) @@ -3417,7 +3417,7 @@ def conversations_canvases_create( **kwargs, ) -> Union[Future, SlackResponse]: """Create a Channel Canvas for a channel - https://api.slack.com/methods/conversations.canvases.create + https://docs.slack.dev/reference/methods/conversations.canvases.create """ kwargs.update({"channel_id": channel_id, "document_content": document_content}) return self.api_call("conversations.canvases.create", json=kwargs) @@ -3430,7 +3430,7 @@ def dialog_open( **kwargs, ) -> Union[Future, SlackResponse]: """Open a dialog with a user. - https://api.slack.com/methods/dialog.open + https://docs.slack.dev/reference/methods/dialog.open """ kwargs.update({"dialog": dialog, "trigger_id": trigger_id}) kwargs = _remove_none_values(kwargs) @@ -3442,7 +3442,7 @@ def dnd_endDnd( **kwargs, ) -> Union[Future, SlackResponse]: """Ends the current user's Do Not Disturb session immediately. - https://api.slack.com/methods/dnd.endDnd + https://docs.slack.dev/reference/methods/dnd.endDnd """ return self.api_call("dnd.endDnd", params=kwargs) @@ -3451,7 +3451,7 @@ def dnd_endSnooze( **kwargs, ) -> Union[Future, SlackResponse]: """Ends the current user's snooze mode immediately. - https://api.slack.com/methods/dnd.endSnooze + https://docs.slack.dev/reference/methods/dnd.endSnooze """ return self.api_call("dnd.endSnooze", params=kwargs) @@ -3463,7 +3463,7 @@ def dnd_info( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieves a user's current Do Not Disturb status. - https://api.slack.com/methods/dnd.info + https://docs.slack.dev/reference/methods/dnd.info """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("dnd.info", http_verb="GET", params=kwargs) @@ -3475,7 +3475,7 @@ def dnd_setSnooze( **kwargs, ) -> Union[Future, SlackResponse]: """Turns on Do Not Disturb mode for the current user, or changes its duration. - https://api.slack.com/methods/dnd.setSnooze + https://docs.slack.dev/reference/methods/dnd.setSnooze """ kwargs.update({"num_minutes": num_minutes}) return self.api_call("dnd.setSnooze", http_verb="GET", params=kwargs) @@ -3487,7 +3487,7 @@ def dnd_teamInfo( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieves the Do Not Disturb status for users on a team. - https://api.slack.com/methods/dnd.teamInfo + https://docs.slack.dev/reference/methods/dnd.teamInfo """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -3502,7 +3502,7 @@ def emoji_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists custom emoji for a team. - https://api.slack.com/methods/emoji.list + https://docs.slack.dev/reference/methods/emoji.list """ kwargs.update({"include_categories": include_categories}) return self.api_call("emoji.list", http_verb="GET", params=kwargs) @@ -3515,7 +3515,7 @@ def files_comments_delete( **kwargs, ) -> Union[Future, SlackResponse]: """Deletes an existing comment on a file. - https://api.slack.com/methods/files.comments.delete + https://docs.slack.dev/reference/methods/files.comments.delete """ kwargs.update({"file": file, "id": id}) return self.api_call("files.comments.delete", params=kwargs) @@ -3527,7 +3527,7 @@ def files_delete( **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a file. - https://api.slack.com/methods/files.delete + https://docs.slack.dev/reference/methods/files.delete """ kwargs.update({"file": file}) return self.api_call("files.delete", params=kwargs) @@ -3543,7 +3543,7 @@ def files_info( **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a team file. - https://api.slack.com/methods/files.info + https://docs.slack.dev/reference/methods/files.info """ kwargs.update( { @@ -3571,7 +3571,7 @@ def files_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists & filters team files. - https://api.slack.com/methods/files.list + https://docs.slack.dev/reference/methods/files.list """ kwargs.update( { @@ -3599,7 +3599,7 @@ def files_remote_info( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.info + https://docs.slack.dev/reference/methods/files.remote.info """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.info", http_verb="GET", params=kwargs) @@ -3615,7 +3615,7 @@ def files_remote_list( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve information about a remote file added to Slack. - https://api.slack.com/methods/files.remote.list + https://docs.slack.dev/reference/methods/files.remote.list """ kwargs.update( { @@ -3640,7 +3640,7 @@ def files_remote_add( **kwargs, ) -> Union[Future, SlackResponse]: """Adds a file from a remote service. - https://api.slack.com/methods/files.remote.add + https://docs.slack.dev/reference/methods/files.remote.add """ kwargs.update( { @@ -3679,7 +3679,7 @@ def files_remote_update( **kwargs, ) -> Union[Future, SlackResponse]: """Updates an existing remote file. - https://api.slack.com/methods/files.remote.update + https://docs.slack.dev/reference/methods/files.remote.update """ kwargs.update( { @@ -3714,7 +3714,7 @@ def files_remote_remove( **kwargs, ) -> Union[Future, SlackResponse]: """Remove a remote file. - https://api.slack.com/methods/files.remote.remove + https://docs.slack.dev/reference/methods/files.remote.remove """ kwargs.update({"external_id": external_id, "file": file}) return self.api_call("files.remote.remove", http_verb="POST", params=kwargs) @@ -3728,7 +3728,7 @@ def files_remote_share( **kwargs, ) -> Union[Future, SlackResponse]: """Share a remote file into a channel. - https://api.slack.com/methods/files.remote.share + https://docs.slack.dev/reference/methods/files.remote.share """ if external_id is None and file is None: raise e.SlackRequestError("Either external_id or file must be provided.") @@ -3746,7 +3746,7 @@ def files_revokePublicURL( **kwargs, ) -> Union[Future, SlackResponse]: """Revokes public/external sharing access for a file - https://api.slack.com/methods/files.revokePublicURL + https://docs.slack.dev/reference/methods/files.revokePublicURL """ kwargs.update({"file": file}) return self.api_call("files.revokePublicURL", params=kwargs) @@ -3758,7 +3758,7 @@ def files_sharedPublicURL( **kwargs, ) -> Union[Future, SlackResponse]: """Enables a file for public/external sharing. - https://api.slack.com/methods/files.sharedPublicURL + https://docs.slack.dev/reference/methods/files.sharedPublicURL """ kwargs.update({"file": file}) return self.api_call("files.sharedPublicURL", params=kwargs) @@ -3777,7 +3777,7 @@ def files_upload( **kwargs, ) -> Union[Future, SlackResponse]: """Uploads or creates a file. - https://api.slack.com/methods/files.upload + https://docs.slack.dev/reference/methods/files.upload """ _print_files_upload_v2_suggestion() @@ -3830,12 +3830,12 @@ def files_upload_v2( ) -> Union[Future, SlackResponse]: """This wrapper method provides an easy way to upload files using the following endpoints: - - step1: https://api.slack.com/methods/files.getUploadURLExternal + - step1: https://docs.slack.dev/reference/methods/files.getUploadURLExternal - step2: "https://files.slack.com/upload/v1/..." URLs returned from files.getUploadURLExternal API - - step3: https://api.slack.com/methods/files.completeUploadExternal - and https://api.slack.com/methods/files.info + - step3: https://docs.slack.dev/reference/methods/files.completeUploadExternal + and https://docs.slack.dev/reference/methods/files.info """ if file is None and content is None and file_uploads is None: @@ -3921,7 +3921,7 @@ def files_getUploadURLExternal( **kwargs, ) -> Union[Future, SlackResponse]: """Gets a URL for an edge external upload. - https://api.slack.com/methods/files.getUploadURLExternal + https://docs.slack.dev/reference/methods/files.getUploadURLExternal """ kwargs.update( { @@ -3944,7 +3944,7 @@ def files_completeUploadExternal( **kwargs, ) -> Union[Future, SlackResponse]: """Finishes an upload started with files.getUploadURLExternal. - https://api.slack.com/methods/files.completeUploadExternal + https://docs.slack.dev/reference/methods/files.completeUploadExternal """ _files = [{k: v for k, v in f.items() if v is not None} for f in files] kwargs.update( @@ -3967,7 +3967,7 @@ def functions_completeSuccess( **kwargs, ) -> Union[Future, SlackResponse]: """Signal the successful completion of a function - https://api.slack.com/methods/functions.completeSuccess + https://docs.slack.dev/reference/methods/functions.completeSuccess """ kwargs.update({"function_execution_id": function_execution_id, "outputs": json.dumps(outputs)}) return self.api_call("functions.completeSuccess", params=kwargs) @@ -3980,7 +3980,7 @@ def functions_completeError( **kwargs, ) -> Union[Future, SlackResponse]: """Signal the failure to execute a function - https://api.slack.com/methods/functions.completeError + https://docs.slack.dev/reference/methods/functions.completeError """ kwargs.update({"function_execution_id": function_execution_id, "error": error}) return self.api_call("functions.completeError", params=kwargs) @@ -3988,7 +3988,7 @@ def functions_completeError( # -------------------------- # Deprecated: groups.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def groups_archive( @@ -4169,7 +4169,7 @@ def groups_unarchive( # -------------------------- # Deprecated: im.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def im_close( @@ -4245,7 +4245,7 @@ def migration_exchange( **kwargs, ) -> Union[Future, SlackResponse]: """For Enterprise Grid workspaces, map local user IDs to global user IDs - https://api.slack.com/methods/migration.exchange + https://docs.slack.dev/reference/methods/migration.exchange """ if isinstance(users, (list, tuple)): kwargs.update({"users": ",".join(users)}) @@ -4257,7 +4257,7 @@ def migration_exchange( # -------------------------- # Deprecated: mpim.* # You can use conversations.* APIs instead. - # https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api + # https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/ # -------------------------- def mpim_close( @@ -4344,7 +4344,7 @@ def oauth_v2_access( **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.v2.access + https://docs.slack.dev/reference/methods/oauth.v2.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4370,7 +4370,7 @@ def oauth_access( **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a temporary OAuth verifier code for an access token. - https://api.slack.com/methods/oauth.access + https://docs.slack.dev/reference/methods/oauth.access """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4390,7 +4390,7 @@ def oauth_v2_exchange( **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a legacy access token for a new expiring access token and refresh token - https://api.slack.com/methods/oauth.v2.exchange + https://docs.slack.dev/reference/methods/oauth.v2.exchange """ kwargs.update({"client_id": client_id, "client_secret": client_secret, "token": token}) return self.api_call("oauth.v2.exchange", params=kwargs) @@ -4406,7 +4406,7 @@ def openid_connect_token( **kwargs, ) -> Union[Future, SlackResponse]: """Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. - https://api.slack.com/methods/openid.connect.token + https://docs.slack.dev/reference/methods/openid.connect.token """ if redirect_uri is not None: kwargs.update({"redirect_uri": redirect_uri}) @@ -4427,7 +4427,7 @@ def openid_connect_userInfo( **kwargs, ) -> Union[Future, SlackResponse]: """Get the identity of a user who has authorized Sign in with Slack. - https://api.slack.com/methods/openid.connect.userInfo + https://docs.slack.dev/reference/methods/openid.connect.userInfo """ return self.api_call("openid.connect.userInfo", params=kwargs) @@ -4439,7 +4439,7 @@ def pins_add( **kwargs, ) -> Union[Future, SlackResponse]: """Pins an item to a channel. - https://api.slack.com/methods/pins.add + https://docs.slack.dev/reference/methods/pins.add """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.add", params=kwargs) @@ -4451,7 +4451,7 @@ def pins_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists items pinned to a channel. - https://api.slack.com/methods/pins.list + https://docs.slack.dev/reference/methods/pins.list """ kwargs.update({"channel": channel}) return self.api_call("pins.list", http_verb="GET", params=kwargs) @@ -4464,7 +4464,7 @@ def pins_remove( **kwargs, ) -> Union[Future, SlackResponse]: """Un-pins an item from a channel. - https://api.slack.com/methods/pins.remove + https://docs.slack.dev/reference/methods/pins.remove """ kwargs.update({"channel": channel, "timestamp": timestamp}) return self.api_call("pins.remove", params=kwargs) @@ -4478,7 +4478,7 @@ def reactions_add( **kwargs, ) -> Union[Future, SlackResponse]: """Adds a reaction to an item. - https://api.slack.com/methods/reactions.add + https://docs.slack.dev/reference/methods/reactions.add """ kwargs.update({"channel": channel, "name": name, "timestamp": timestamp}) return self.api_call("reactions.add", params=kwargs) @@ -4494,7 +4494,7 @@ def reactions_get( **kwargs, ) -> Union[Future, SlackResponse]: """Gets reactions for an item. - https://api.slack.com/methods/reactions.get + https://docs.slack.dev/reference/methods/reactions.get """ kwargs.update( { @@ -4520,7 +4520,7 @@ def reactions_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists reactions made by a user. - https://api.slack.com/methods/reactions.list + https://docs.slack.dev/reference/methods/reactions.list """ kwargs.update( { @@ -4546,7 +4546,7 @@ def reactions_remove( **kwargs, ) -> Union[Future, SlackResponse]: """Removes a reaction from an item. - https://api.slack.com/methods/reactions.remove + https://docs.slack.dev/reference/methods/reactions.remove """ kwargs.update( { @@ -4570,7 +4570,7 @@ def reminders_add( **kwargs, ) -> Union[Future, SlackResponse]: """Creates a reminder. - https://api.slack.com/methods/reminders.add + https://docs.slack.dev/reference/methods/reminders.add """ kwargs.update( { @@ -4591,7 +4591,7 @@ def reminders_complete( **kwargs, ) -> Union[Future, SlackResponse]: """Marks a reminder as complete. - https://api.slack.com/methods/reminders.complete + https://docs.slack.dev/reference/methods/reminders.complete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.complete", params=kwargs) @@ -4604,7 +4604,7 @@ def reminders_delete( **kwargs, ) -> Union[Future, SlackResponse]: """Deletes a reminder. - https://api.slack.com/methods/reminders.delete + https://docs.slack.dev/reference/methods/reminders.delete """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.delete", params=kwargs) @@ -4617,7 +4617,7 @@ def reminders_info( **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a reminder. - https://api.slack.com/methods/reminders.info + https://docs.slack.dev/reference/methods/reminders.info """ kwargs.update({"reminder": reminder, "team_id": team_id}) return self.api_call("reminders.info", http_verb="GET", params=kwargs) @@ -4629,7 +4629,7 @@ def reminders_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists all reminders created by or for a given user. - https://api.slack.com/methods/reminders.list + https://docs.slack.dev/reference/methods/reminders.list """ kwargs.update({"team_id": team_id}) return self.api_call("reminders.list", http_verb="GET", params=kwargs) @@ -4642,7 +4642,7 @@ def rtm_connect( **kwargs, ) -> Union[Future, SlackResponse]: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.connect + https://docs.slack.dev/reference/methods/rtm.connect """ kwargs.update({"batch_presence_aware": batch_presence_aware, "presence_sub": presence_sub}) return self.api_call("rtm.connect", http_verb="GET", params=kwargs) @@ -4660,7 +4660,7 @@ def rtm_start( **kwargs, ) -> Union[Future, SlackResponse]: """Starts a Real Time Messaging session. - https://api.slack.com/methods/rtm.start + https://docs.slack.dev/reference/methods/rtm.start """ kwargs.update( { @@ -4688,7 +4688,7 @@ def search_all( **kwargs, ) -> Union[Future, SlackResponse]: """Searches for messages and files matching a query. - https://api.slack.com/methods/search.all + https://docs.slack.dev/reference/methods/search.all """ kwargs.update( { @@ -4716,7 +4716,7 @@ def search_files( **kwargs, ) -> Union[Future, SlackResponse]: """Searches for files matching a query. - https://api.slack.com/methods/search.files + https://docs.slack.dev/reference/methods/search.files """ kwargs.update( { @@ -4745,7 +4745,7 @@ def search_messages( **kwargs, ) -> Union[Future, SlackResponse]: """Searches for messages matching a query. - https://api.slack.com/methods/search.messages + https://docs.slack.dev/reference/methods/search.messages """ kwargs.update( { @@ -4771,7 +4771,7 @@ def stars_add( **kwargs, ) -> Union[Future, SlackResponse]: """Adds a star to an item. - https://api.slack.com/methods/stars.add + https://docs.slack.dev/reference/methods/stars.add """ kwargs.update( { @@ -4794,7 +4794,7 @@ def stars_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists stars for a user. - https://api.slack.com/methods/stars.list + https://docs.slack.dev/reference/methods/stars.list """ kwargs.update( { @@ -4817,7 +4817,7 @@ def stars_remove( **kwargs, ) -> Union[Future, SlackResponse]: """Removes a star from an item. - https://api.slack.com/methods/stars.remove + https://docs.slack.dev/reference/methods/stars.remove """ kwargs.update( { @@ -4841,7 +4841,7 @@ def team_accessLogs( **kwargs, ) -> Union[Future, SlackResponse]: """Gets the access logs for the current team. - https://api.slack.com/methods/team.accessLogs + https://docs.slack.dev/reference/methods/team.accessLogs """ kwargs.update( { @@ -4863,7 +4863,7 @@ def team_billableInfo( **kwargs, ) -> Union[Future, SlackResponse]: """Gets billable users information for the current team. - https://api.slack.com/methods/team.billableInfo + https://docs.slack.dev/reference/methods/team.billableInfo """ kwargs.update({"team_id": team_id, "user": user}) return self.api_call("team.billableInfo", http_verb="GET", params=kwargs) @@ -4873,7 +4873,7 @@ def team_billing_info( **kwargs, ) -> Union[Future, SlackResponse]: """Reads a workspace's billing plan information. - https://api.slack.com/methods/team.billing.info + https://docs.slack.dev/reference/methods/team.billing.info """ return self.api_call("team.billing.info", params=kwargs) @@ -4884,7 +4884,7 @@ def team_externalTeams_disconnect( **kwargs, ) -> Union[Future, SlackResponse]: """Disconnects an external organization. - https://api.slack.com/methods/team.externalTeams.disconnect + https://docs.slack.dev/reference/methods/team.externalTeams.disconnect """ kwargs.update( { @@ -4906,7 +4906,7 @@ def team_externalTeams_list( **kwargs, ) -> Union[Future, SlackResponse]: """Returns a list of all the external teams connected and details about the connection. - https://api.slack.com/methods/team.externalTeams.list + https://docs.slack.dev/reference/methods/team.externalTeams.list """ kwargs.update( { @@ -4937,7 +4937,7 @@ def team_info( **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about the current team. - https://api.slack.com/methods/team.info + https://docs.slack.dev/reference/methods/team.info """ kwargs.update({"team": team, "domain": domain}) return self.api_call("team.info", http_verb="GET", params=kwargs) @@ -4955,7 +4955,7 @@ def team_integrationLogs( **kwargs, ) -> Union[Future, SlackResponse]: """Gets the integration logs for the current team. - https://api.slack.com/methods/team.integrationLogs + https://docs.slack.dev/reference/methods/team.integrationLogs """ kwargs.update( { @@ -4977,7 +4977,7 @@ def team_profile_get( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a team's profile. - https://api.slack.com/methods/team.profile.get + https://docs.slack.dev/reference/methods/team.profile.get """ kwargs.update({"visibility": visibility}) return self.api_call("team.profile.get", http_verb="GET", params=kwargs) @@ -4987,7 +4987,7 @@ def team_preferences_list( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieve a list of a workspace's team preferences. - https://api.slack.com/methods/team.preferences.list + https://docs.slack.dev/reference/methods/team.preferences.list """ return self.api_call("team.preferences.list", params=kwargs) @@ -5003,7 +5003,7 @@ def usergroups_create( **kwargs, ) -> Union[Future, SlackResponse]: """Create a User Group - https://api.slack.com/methods/usergroups.create + https://docs.slack.dev/reference/methods/usergroups.create """ kwargs.update( { @@ -5029,7 +5029,7 @@ def usergroups_disable( **kwargs, ) -> Union[Future, SlackResponse]: """Disable an existing User Group - https://api.slack.com/methods/usergroups.disable + https://docs.slack.dev/reference/methods/usergroups.disable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.disable", params=kwargs) @@ -5043,7 +5043,7 @@ def usergroups_enable( **kwargs, ) -> Union[Future, SlackResponse]: """Enable a User Group - https://api.slack.com/methods/usergroups.enable + https://docs.slack.dev/reference/methods/usergroups.enable """ kwargs.update({"usergroup": usergroup, "include_count": include_count, "team_id": team_id}) return self.api_call("usergroups.enable", params=kwargs) @@ -5058,7 +5058,7 @@ def usergroups_list( **kwargs, ) -> Union[Future, SlackResponse]: """List all User Groups for a team - https://api.slack.com/methods/usergroups.list + https://docs.slack.dev/reference/methods/usergroups.list """ kwargs.update( { @@ -5083,7 +5083,7 @@ def usergroups_update( **kwargs, ) -> Union[Future, SlackResponse]: """Update an existing User Group - https://api.slack.com/methods/usergroups.update + https://docs.slack.dev/reference/methods/usergroups.update """ kwargs.update( { @@ -5110,7 +5110,7 @@ def usergroups_users_list( **kwargs, ) -> Union[Future, SlackResponse]: """List all users in a User Group - https://api.slack.com/methods/usergroups.users.list + https://docs.slack.dev/reference/methods/usergroups.users.list """ kwargs.update( { @@ -5131,7 +5131,7 @@ def usergroups_users_update( **kwargs, ) -> Union[Future, SlackResponse]: """Update the list of users for a User Group - https://api.slack.com/methods/usergroups.users.update + https://docs.slack.dev/reference/methods/usergroups.users.update """ kwargs.update( { @@ -5158,7 +5158,7 @@ def users_conversations( **kwargs, ) -> Union[Future, SlackResponse]: """List conversations the calling user may access. - https://api.slack.com/methods/users.conversations + https://docs.slack.dev/reference/methods/users.conversations """ kwargs.update( { @@ -5180,7 +5180,7 @@ def users_deletePhoto( **kwargs, ) -> Union[Future, SlackResponse]: """Delete the user profile photo - https://api.slack.com/methods/users.deletePhoto + https://docs.slack.dev/reference/methods/users.deletePhoto """ return self.api_call("users.deletePhoto", http_verb="GET", params=kwargs) @@ -5191,7 +5191,7 @@ def users_getPresence( **kwargs, ) -> Union[Future, SlackResponse]: """Gets user presence information. - https://api.slack.com/methods/users.getPresence + https://docs.slack.dev/reference/methods/users.getPresence """ kwargs.update({"user": user}) return self.api_call("users.getPresence", http_verb="GET", params=kwargs) @@ -5201,7 +5201,7 @@ def users_identity( **kwargs, ) -> Union[Future, SlackResponse]: """Get a user's identity. - https://api.slack.com/methods/users.identity + https://docs.slack.dev/reference/methods/users.identity """ return self.api_call("users.identity", http_verb="GET", params=kwargs) @@ -5213,7 +5213,7 @@ def users_info( **kwargs, ) -> Union[Future, SlackResponse]: """Gets information about a user. - https://api.slack.com/methods/users.info + https://docs.slack.dev/reference/methods/users.info """ kwargs.update({"user": user, "include_locale": include_locale}) return self.api_call("users.info", http_verb="GET", params=kwargs) @@ -5228,7 +5228,7 @@ def users_list( **kwargs, ) -> Union[Future, SlackResponse]: """Lists all users in a Slack team. - https://api.slack.com/methods/users.list + https://docs.slack.dev/reference/methods/users.list """ kwargs.update( { @@ -5247,7 +5247,7 @@ def users_lookupByEmail( **kwargs, ) -> Union[Future, SlackResponse]: """Find a user with an email address. - https://api.slack.com/methods/users.lookupByEmail + https://docs.slack.dev/reference/methods/users.lookupByEmail """ kwargs.update({"email": email}) return self.api_call("users.lookupByEmail", http_verb="GET", params=kwargs) @@ -5262,7 +5262,7 @@ def users_setPhoto( **kwargs, ) -> Union[Future, SlackResponse]: """Set the user profile photo - https://api.slack.com/methods/users.setPhoto + https://docs.slack.dev/reference/methods/users.setPhoto """ kwargs.update({"crop_w": crop_w, "crop_x": crop_x, "crop_y": crop_y}) return self.api_call("users.setPhoto", files={"image": image}, data=kwargs) @@ -5274,7 +5274,7 @@ def users_setPresence( **kwargs, ) -> Union[Future, SlackResponse]: """Manually sets user presence. - https://api.slack.com/methods/users.setPresence + https://docs.slack.dev/reference/methods/users.setPresence """ kwargs.update({"presence": presence}) return self.api_call("users.setPresence", params=kwargs) @@ -5285,7 +5285,7 @@ def users_discoverableContacts_lookup( **kwargs, ) -> Union[Future, SlackResponse]: """Lookup an email address to see if someone is on Slack - https://api.slack.com/methods/users.discoverableContacts.lookup + https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup """ kwargs.update({"email": email}) return self.api_call("users.discoverableContacts.lookup", params=kwargs) @@ -5298,7 +5298,7 @@ def users_profile_get( **kwargs, ) -> Union[Future, SlackResponse]: """Retrieves a user's profile information. - https://api.slack.com/methods/users.profile.get + https://docs.slack.dev/reference/methods/users.profile.get """ kwargs.update({"user": user, "include_labels": include_labels}) return self.api_call("users.profile.get", http_verb="GET", params=kwargs) @@ -5313,7 +5313,7 @@ def users_profile_set( **kwargs, ) -> Union[Future, SlackResponse]: """Set the profile information for a user. - https://api.slack.com/methods/users.profile.set + https://docs.slack.dev/reference/methods/users.profile.set """ kwargs.update( { @@ -5336,8 +5336,8 @@ def views_open( **kwargs, ) -> Union[Future, SlackResponse]: """Open a view for a user. - https://api.slack.com/methods/views.open - See https://api.slack.com/surfaces/modals for details. + https://docs.slack.dev/reference/methods/views.open + See https://docs.slack.dev/surfaces/modals/ for details. """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5360,9 +5360,9 @@ def views_push( Push a new view onto the existing view stack by passing a view payload and a valid trigger_id generated from an interaction within the existing modal. - Read the modals documentation (https://api.slack.com/surfaces/modals) + Read the modals documentation (https://docs.slack.dev/surfaces/modals/) to learn more about the lifecycle and intricacies of views. - https://api.slack.com/methods/views.push + https://docs.slack.dev/reference/methods/views.push """ kwargs.update({"trigger_id": trigger_id, "interactivity_pointer": interactivity_pointer}) if isinstance(view, View): @@ -5385,9 +5385,9 @@ def views_update( """Update an existing view. Update a view by passing a new view definition along with the view_id returned in views.open or the external_id. - See the modals documentation (https://api.slack.com/surfaces/modals#updating_views) + See the modals documentation (https://docs.slack.dev/surfaces/modals/#updating_views) to learn more about updating views and avoiding race conditions with the hash argument. - https://api.slack.com/methods/views.update + https://docs.slack.dev/reference/methods/views.update """ if isinstance(view, View): kwargs.update({"view": view.to_dict()}) @@ -5414,8 +5414,8 @@ def views_publish( ) -> Union[Future, SlackResponse]: """Publish a static view for a User. Create or update the view that comprises an - app's Home tab (https://api.slack.com/surfaces/tabs) - https://api.slack.com/methods/views.publish + app's Home tab (https://docs.slack.dev/surfaces/app-home/) + https://docs.slack.dev/reference/methods/views.publish """ kwargs.update({"user_id": user_id, "hash": hash}) if isinstance(view, View): @@ -5434,7 +5434,7 @@ def workflows_featured_add( **kwargs, ) -> Union[Future, SlackResponse]: """Add featured workflows to a channel. - https://api.slack.com/methods/workflows.featured.add + https://docs.slack.dev/reference/methods/workflows.featured.add """ kwargs.update({"channel_id": channel_id}) if isinstance(trigger_ids, (list, tuple)): @@ -5450,7 +5450,7 @@ def workflows_featured_list( **kwargs, ) -> Union[Future, SlackResponse]: """List the featured workflows for specified channels. - https://api.slack.com/methods/workflows.featured.list + https://docs.slack.dev/reference/methods/workflows.featured.list """ if isinstance(channel_ids, (list, tuple)): kwargs.update({"channel_ids": ",".join(channel_ids)}) @@ -5466,7 +5466,7 @@ def workflows_featured_remove( **kwargs, ) -> Union[Future, SlackResponse]: """Remove featured workflows from a channel. - https://api.slack.com/methods/workflows.featured.remove + https://docs.slack.dev/reference/methods/workflows.featured.remove """ kwargs.update({"channel_id": channel_id}) if isinstance(trigger_ids, (list, tuple)): @@ -5483,7 +5483,7 @@ def workflows_featured_set( **kwargs, ) -> Union[Future, SlackResponse]: """Set featured workflows for a channel. - https://api.slack.com/methods/workflows.featured.set + https://docs.slack.dev/reference/methods/workflows.featured.set """ kwargs.update({"channel_id": channel_id}) if isinstance(trigger_ids, (list, tuple)): @@ -5500,7 +5500,7 @@ def workflows_stepCompleted( **kwargs, ) -> Union[Future, SlackResponse]: """Indicate a successful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepCompleted + https://docs.slack.dev/reference/methods/workflows.stepCompleted """ kwargs.update({"workflow_step_execute_id": workflow_step_execute_id}) if outputs is not None: @@ -5517,7 +5517,7 @@ def workflows_stepFailed( **kwargs, ) -> Union[Future, SlackResponse]: """Indicate an unsuccessful outcome of a workflow step's execution. - https://api.slack.com/methods/workflows.stepFailed + https://docs.slack.dev/reference/methods/workflows.stepFailed """ kwargs.update( { @@ -5538,7 +5538,7 @@ def workflows_updateStep( **kwargs, ) -> Union[Future, SlackResponse]: """Update the configuration for a workflow extension step. - https://api.slack.com/methods/workflows.updateStep + https://docs.slack.dev/reference/methods/workflows.updateStep """ kwargs.update({"workflow_step_edit_id": workflow_step_edit_id}) if inputs is not None: diff --git a/slack_sdk/webhook/async_client.py b/slack_sdk/webhook/async_client.py index a737b4e31..dded0491f 100644 --- a/slack_sdk/webhook/async_client.py +++ b/slack_sdk/webhook/async_client.py @@ -53,7 +53,7 @@ def __init__( ): """API client for Incoming Webhooks and `response_url` - https://api.slack.com/messaging/webhooks + https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/ Args: url: Complete URL to send data (e.g., `https://hooks.slack.com/XXX`) diff --git a/slack_sdk/webhook/client.py b/slack_sdk/webhook/client.py index 35059a554..d7f9f603d 100644 --- a/slack_sdk/webhook/client.py +++ b/slack_sdk/webhook/client.py @@ -48,7 +48,7 @@ def __init__( ): """API client for Incoming Webhooks and `response_url` - https://api.slack.com/messaging/webhooks + https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/ Args: url: Complete URL to send data (e.g., `https://hooks.slack.com/XXX`) diff --git a/tests/signature/test_signature_verifier.py b/tests/signature/test_signature_verifier.py index f2dc79a01..ef7ac0512 100644 --- a/tests/signature/test_signature_verifier.py +++ b/tests/signature/test_signature_verifier.py @@ -15,7 +15,7 @@ def setUp(self): def tearDown(self): pass - # https://api.slack.com/authentication/verifying-requests-from-slack + # https://docs.slack.dev/authentication/verifying-requests-from-slack/ signing_secret = "8f742231b10e8888abcd99yyyzzz85a5" body = "token=xyzz0WbapA4vBCDEFasx0q6G&team_id=T1DC2JH3J&team_domain=testteamnow&channel_id=G8PSS9T3V&channel_name=foobar&user_id=U2CERLKJA&user_name=roadrunner&command=%2Fwebhook-collect&text=&response_url=https%3A%2F%2Fhooks.slack.com%2Fcommands%2FT1DC2JH3J%2F397700885554%2F96rGlfmibIGlgcZRskXaIFfN&trigger_id=398738663015.47445629121.803a0bc887a14d10d2c447fce8b6703c" diff --git a/tests/slack_sdk/models/test_blocks.py b/tests/slack_sdk/models/test_blocks.py index f7d8c129b..f8753cccc 100644 --- a/tests/slack_sdk/models/test_blocks.py +++ b/tests/slack_sdk/models/test_blocks.py @@ -34,7 +34,7 @@ from . import STRING_3001_CHARS -# https://api.slack.com/reference/block-kit/blocks +# https://docs.slack.dev/reference/block-kit/blocks class BlockTests(unittest.TestCase): diff --git a/tests/slack_sdk/models/test_elements.py b/tests/slack_sdk/models/test_elements.py index 6a9545b5e..9aa3aa474 100644 --- a/tests/slack_sdk/models/test_elements.py +++ b/tests/slack_sdk/models/test_elements.py @@ -112,7 +112,7 @@ def test_document_3(self): input = { "type": "button", "text": {"type": "plain_text", "text": "Link Button"}, - "url": "https://api.slack.com/block-kit", + "url": "https://docs.slack.dev/block-kit/", } self.assertDictEqual(input, ButtonElement(**input).to_dict()) self.assertDictEqual(input, LinkButtonElement(**input).to_dict()) @@ -1039,7 +1039,7 @@ def test_document(self): }, { "text": {"type": "plain_text", "text": "*this is plain_text text*"}, - # https://api.slack.com/reference/block-kit/composition-objects#option + # https://docs.slack.dev/reference/block-kit/composition-objects/option-object "url": "https://www.example.com", }, ], diff --git a/tests/slack_sdk/signature/test_signature_verifier.py b/tests/slack_sdk/signature/test_signature_verifier.py index be3a0b72b..1635c1f62 100644 --- a/tests/slack_sdk/signature/test_signature_verifier.py +++ b/tests/slack_sdk/signature/test_signature_verifier.py @@ -15,7 +15,7 @@ def setUp(self): def tearDown(self): pass - # https://api.slack.com/authentication/verifying-requests-from-slack + # https://docs.slack.dev/authentication/verifying-requests-from-slack/ signing_secret = "8f742231b10e8888abcd99yyyzzz85a5" body = "token=xyzz0WbapA4vBCDEFasx0q6G&team_id=T1DC2JH3J&team_domain=testteamnow&channel_id=G8PSS9T3V&channel_name=foobar&user_id=U2CERLKJA&user_name=roadrunner&command=%2Fwebhook-collect&text=&response_url=https%3A%2F%2Fhooks.slack.com%2Fcommands%2FT1DC2JH3J%2F397700885554%2F96rGlfmibIGlgcZRskXaIFfN&trigger_id=398738663015.47445629121.803a0bc887a14d10d2c447fce8b6703c" diff --git a/tests/web/classes/test_blocks.py b/tests/web/classes/test_blocks.py index 4874b8514..4e9ce2fb2 100644 --- a/tests/web/classes/test_blocks.py +++ b/tests/web/classes/test_blocks.py @@ -19,7 +19,7 @@ from . import STRING_3001_CHARS -# https://api.slack.com/reference/block-kit/blocks +# https://docs.slack.dev/reference/block-kit/blocks class BlockTests(unittest.TestCase): diff --git a/tests/web/classes/test_elements.py b/tests/web/classes/test_elements.py index 27f49ebab..215ec8aac 100644 --- a/tests/web/classes/test_elements.py +++ b/tests/web/classes/test_elements.py @@ -60,7 +60,7 @@ def test_document_3(self): input = { "type": "button", "text": {"type": "plain_text", "text": "Link Button"}, - "url": "https://api.slack.com/block-kit", + "url": "https://docs.slack.dev/block-kit/", } self.assertDictEqual(input, ButtonElement(**input).to_dict()) self.assertDictEqual(input, LinkButtonElement(**input).to_dict()) @@ -635,7 +635,7 @@ def test_document(self): }, { "text": {"type": "plain_text", "text": "*this is plain_text text*"}, - # https://api.slack.com/reference/block-kit/composition-objects#option + # https://docs.slack.dev/reference/block-kit/composition-objects/option-object "url": "https://www.example.com", }, ], diff --git a/tutorial/01-creating-the-slack-app.md b/tutorial/01-creating-the-slack-app.md index f617bb348..81e3de76b 100644 --- a/tutorial/01-creating-the-slack-app.md +++ b/tutorial/01-creating-the-slack-app.md @@ -9,7 +9,7 @@ ### Give your app permissions -[Scopes](https://api.slack.com/scopes) give your app permission to do things (for example, post messages) in your development workspace. +[Scopes](https://docs.slack.dev/reference/scopes) give your app permission to do things (for example, post messages) in your development workspace. - Navigate to **OAuth & Permissions** on the sidebar to add scopes to your app @@ -19,8 +19,8 @@ For now, we'll only use one scope. -- Add the [`chat:write` scope](https://api.slack.com/scopes/chat:write) to grant your app the permission to post messages in channels it's a member of. -- Add the [`im:write` scope](https://api.slack.com/scopes/im:write) to grant your app the permission to post messages in DMs. +- Add the [`chat:write` scope](https://docs.slack.dev/reference/scopes/chat.write/) to grant your app the permission to post messages in channels it's a member of. +- Add the [`im:write` scope](https://docs.slack.dev/reference/scopes/im.write/) to grant your app the permission to post messages in DMs. 🎉 You should briefly see a success banner. diff --git a/tutorial/02-building-a-message.md b/tutorial/02-building-a-message.md index fa4416d0a..9f2481a84 100644 --- a/tutorial/02-building-a-message.md +++ b/tutorial/02-building-a-message.md @@ -2,7 +2,7 @@ The code for this step is available [here](PythOnBoardingBot/onboarding_tutorial.py). -> 💡 **[Block Kit](https://api.slack.com/block-kit)** is a UI framework for Slack apps that offers a balance of control and flexibility when building experiences in messages and other surfaces. Customize the order and appearance of information and guide users through your app's capabilities by composing, updating, sequencing, and stacking blocks — reusable components that work almost everywhere in Slack. You can experiment and prototype with Block Kit using the [Block Kit Builder](https://api.slack.com/tools/block-kit-builder). +> 💡 **[Block Kit](https://docs.slack.dev/block-kit/)** is a UI framework for Slack apps that offers a balance of control and flexibility when building experiences in messages and other surfaces. Customize the order and appearance of information and guide users through your app's capabilities by composing, updating, sequencing, and stacking blocks — reusable components that work almost everywhere in Slack. You can experiment and prototype with Block Kit using the [Block Kit Builder](https://api.slack.com/tools/block-kit-builder). We're going to be using Block Kit to build our onboarding tutorial messages. diff --git a/tutorial/03-responding-to-slack-events.md b/tutorial/03-responding-to-slack-events.md index b6a998800..70c904e50 100644 --- a/tutorial/03-responding-to-slack-events.md +++ b/tutorial/03-responding-to-slack-events.md @@ -81,7 +81,7 @@ def start_onboarding(user_id: str, channel: str, client: WebClient): ### Responding to events in Slack -When events occur in Slack there are two primary ways to be notified about them. We can send you an [HTTP Request through our Events API](https://api.slack.com/apis/connections/events-api), or you can stream events through a WebSocket connection with our [Socket Mode](https://api.slack.com/apis/connections/socket) API. If you're behind a firewall and cannot receive incoming web requests from Slack, we recommend going with Socket Mode. +When events occur in Slack there are two primary ways to be notified about them. We can send you an [HTTP Request through our Events API](https://docs.slack.dev/apis/events-api/), or you can stream events through a WebSocket connection with our [Socket Mode](https://docs.slack.dev/apis/events-api/using-socket-mode/) API. If you're behind a firewall and cannot receive incoming web requests from Slack, we recommend going with Socket Mode. In this tutorial we'll be using the Events API and the [Bolt for Python](https://github.com/slackapi/bolt-python). @@ -96,7 +96,7 @@ Back to our application, it's time to link our onboarding functionality to Slack # Note: Bolt provides a WebClient instance as an argument to the listener function # we've defined here, which we then use to access Slack Web API methods like conversations_open. -# For more info, checkout: https://slack.dev/bolt-python/concepts#message-listening +# For more info, checkout: https://docs.slack.dev/tools/bolt-python/concepts/message-listening @app.event("team_join") def onboarding_message(event, client): """Create and send an onboarding welcome message to new users. Save the diff --git a/tutorial/PythOnBoardingBot/app.py b/tutorial/PythOnBoardingBot/app.py index b24852a80..7245c71ab 100644 --- a/tutorial/PythOnBoardingBot/app.py +++ b/tutorial/PythOnBoardingBot/app.py @@ -38,7 +38,7 @@ def start_onboarding(user_id: str, channel: str, client: WebClient): # Note: Bolt provides a WebClient instance as an argument to the listener function # we've defined here, which we then use to access Slack Web API methods like conversations_open. -# For more info, checkout: https://slack.dev/bolt-python/concepts#message-listening +# For more info, checkout: https://docs.slack.dev/tools/bolt-python/concepts/message-listening @app.event("team_join") def onboarding_message(event, client): """Create and send an onboarding welcome message to new users. Save the