diff --git a/docs/api-docs/slack_sdk/audit_logs/v1/logs.html b/docs/api-docs/slack_sdk/audit_logs/v1/logs.html index b340bf703..77248ba71 100644 --- a/docs/api-docs/slack_sdk/audit_logs/v1/logs.html +++ b/docs/api-docs/slack_sdk/audit_logs/v1/logs.html @@ -26,7 +26,8 @@
slack_sdk.audit_logs.v1.logs
from typing import Optional, List, Union, Any, Dict
+import json
+from typing import Optional, List, Union, Any, Dict
class App:
@@ -280,6 +281,21 @@ Module slack_sdk.audit_logs.v1.logs
initiated_by: Optional[str]
source_team: Optional[str]
destination_team: Optional[str]
+ succeeded_users: Optional[List[str]]
+ failed_users: Optional[List[str]]
+ enterprise: Optional[str]
+ subteam: Optional[str]
+ action: Optional[str]
+ idp_group_member_count: Optional[int]
+ workspace_member_count: Optional[int]
+ added_user_count: Optional[int]
+ added_user_error_count: Optional[int]
+ reactivated_user_count: Optional[int]
+ removed_user_count: Optional[int]
+ removed_user_error_count: Optional[int]
+ total_removal_count: Optional[int]
+ is_flagged: Optional[str]
+ target_user: Optional[str]
def __init__(
self,
@@ -358,6 +374,21 @@ Module slack_sdk.audit_logs.v1.logs
initiated_by: Optional[str] = None,
source_team: Optional[str] = None,
destination_team: Optional[str] = None,
+ succeeded_users: Optional[Union[List[str], str]] = None,
+ failed_users: Optional[Union[List[str], str]] = None,
+ enterprise: Optional[str] = None,
+ subteam: Optional[str] = None,
+ action: Optional[str] = None,
+ idp_group_member_count: Optional[int] = None,
+ workspace_member_count: Optional[int] = None,
+ added_user_count: Optional[int] = None,
+ added_user_error_count: Optional[int] = None,
+ reactivated_user_count: Optional[int] = None,
+ removed_user_count: Optional[int] = None,
+ removed_user_error_count: Optional[int] = None,
+ total_removal_count: Optional[int] = None,
+ is_flagged: Optional[str] = None,
+ target_user: Optional[str] = None,
**kwargs,
) -> None:
self.name = name
@@ -463,6 +494,25 @@ Module slack_sdk.audit_logs.v1.logs
self.initiated_by = initiated_by
self.source_team = source_team
self.destination_team = destination_team
+ self.succeeded_users = (
+ succeeded_users if succeeded_users is None or isinstance(succeeded_users, list) else json.loads(succeeded_users)
+ )
+ self.failed_users = (
+ failed_users if failed_users is None or isinstance(failed_users, list) else json.loads(failed_users)
+ )
+ self.enterprise = enterprise
+ self.subteam = subteam
+ self.action = action
+ self.idp_group_member_count = idp_group_member_count
+ self.workspace_member_count = workspace_member_count
+ self.added_user_count = added_user_count
+ self.added_user_error_count = added_user_error_count
+ self.reactivated_user_count = reactivated_user_count
+ self.removed_user_count = removed_user_count
+ self.removed_user_error_count = removed_user_error_count
+ self.total_removal_count = total_removal_count
+ self.is_flagged = is_flagged
+ self.target_user = target_user
class Channel:
@@ -537,6 +587,49 @@ Module slack_sdk.audit_logs.v1.logs
self.unknown_fields = kwargs
+class Huddle:
+ id: Optional[str]
+ date_start: Optional[int]
+ date_end: Optional[int]
+ participants: Optional[List[str]]
+ unknown_fields: Dict[str, Any]
+
+ def __init__(
+ self,
+ *,
+ id: Optional[str] = None,
+ date_start: Optional[int] = None,
+ date_end: Optional[int] = None,
+ participants: Optional[List[str]] = None,
+ **kwargs,
+ ) -> None:
+ self.id = id
+ self.date_start = date_start
+ self.date_end = date_end
+ self.participants = participants
+ self.unknown_fields = kwargs
+
+
+class Role:
+ id: Optional[str]
+ name: Optional[str]
+ type: Optional[str]
+ unknown_fields: Dict[str, Any]
+
+ def __init__(
+ self,
+ *,
+ id: Optional[str] = None,
+ name: Optional[str] = None,
+ type: Optional[str] = None,
+ **kwargs,
+ ) -> None:
+ self.id = id
+ self.name = name
+ self.type = type
+ self.unknown_fields = kwargs
+
+
class Workflow:
id: Optional[str]
name: Optional[str]
@@ -588,6 +681,8 @@ Module slack_sdk.audit_logs.v1.logs
channel: Optional[Channel]
file: Optional[File]
app: Optional[App]
+ huddle: Optional[Huddle]
+ role: Optional[Role]
usergroup: Optional[Usergroup]
workflow: Optional[Workflow]
barrier: Optional[InformationBarrier]
@@ -603,6 +698,8 @@ Module slack_sdk.audit_logs.v1.logs
channel: Optional[Union[Channel, Dict[str, Any]]] = None,
file: Optional[Union[File, Dict[str, Any]]] = None,
app: Optional[Union[App, Dict[str, Any]]] = None,
+ huddle: Optional[Union[Huddle, Dict[str, Any]]] = None,
+ role: Optional[Union[Role, Dict[str, Any]]] = None,
usergroup: Optional[Union[Usergroup, Dict[str, Any]]] = None,
workflow: Optional[Union[Workflow, Dict[str, Any]]] = None,
barrier: Optional[Union[InformationBarrier, Dict[str, Any]]] = None,
@@ -615,6 +712,8 @@ Module slack_sdk.audit_logs.v1.logs
self.channel = Channel(**channel) if isinstance(channel, dict) else channel
self.file = File(**file) if isinstance(file, dict) else file
self.app = App(**app) if isinstance(app, dict) else app
+ self.huddle = Huddle(**huddle) if isinstance(huddle, dict) else huddle
+ self.role = Role(**role) if isinstance(role, dict) else role
self.usergroup = Usergroup(**usergroup) if isinstance(usergroup, dict) else usergroup
self.workflow = Workflow(**workflow) if isinstance(workflow, dict) else workflow
self.barrier = InformationBarrier(**barrier) if isinstance(barrier, dict) else barrier
@@ -997,7 +1096,7 @@ Class variables
class Details
-(*, name: Optional[str] = None, new_value: Union[str, List[str], Dict[str, Any], ForwardRef(None)] = None, previous_value: Union[str, List[str], Dict[str, Any], ForwardRef(None)] = None, expires_on: Optional[int] = None, mobile_only: Optional[bool] = None, web_only: Optional[bool] = None, non_sso_only: Optional[bool] = None, type: Optional[str] = None, is_workflow: Optional[bool] = None, inviter: Union[User, Dict[str, Any], ForwardRef(None)] = None, kicker: Union[User, Dict[str, Any], ForwardRef(None)] = None, shared_to: Optional[str] = None, reason: Optional[str] = None, origin_team: Optional[str] = None, target_team: Optional[str] = None, is_internal_integration: Optional[bool] = None, cleared_resolution: Optional[str] = None, app_owner_id: Optional[str] = None, bot_scopes: Optional[List[str]] = None, new_scopes: Optional[List[str]] = None, previous_scopes: Optional[List[str]] = None, granular_bot_token: Optional[bool] = None, scopes: Optional[List[str]] = None, scopes_bot: Optional[List[str]] = None, resolution: Optional[str] = None, app_previously_resolved: Optional[bool] = None, admin_app_id: Optional[str] = None, bot_id: Optional[str] = None, installer_user_id: Optional[str] = None, approver_id: Optional[str] = None, approval_type: Optional[str] = None, app_previously_approved: Optional[bool] = None, old_scopes: Optional[List[str]] = None, channels: Optional[List[str]] = None, permissions: Optional[List[Dict[str, Any]]] = None, new_version_id: Optional[str] = None, trigger: Optional[str] = None, export_type: Optional[str] = None, export_start_ts: Optional[str] = None, export_end_ts: Optional[str] = None, barrier_id: Optional[str] = None, primary_usergroup_id: Optional[str] = None, barriered_from_usergroup_ids: Optional[List[str]] = None, restricted_subjects: Optional[List[str]] = None, duration: Optional[int] = None, desktop_app_browser_quit: Optional[bool] = None, invite_id: Optional[str] = None, external_organization_id: Optional[str] = None, external_organization_name: Optional[str] = None, external_user_id: Optional[str] = None, external_user_email: Optional[str] = None, channel_id: Optional[str] = None, added_team_id: Optional[str] = None, is_token_rotation_enabled_app: Optional[bool] = None, old_retention_policy: Union[Dict[str, Any], RetentionPolicy, ForwardRef(None)] = None, new_retention_policy: Union[Dict[str, Any], RetentionPolicy, ForwardRef(None)] = None, who_can_post: Union[Dict[str, List[str]], ConversationPref, ForwardRef(None)] = None, can_thread: Union[Dict[str, List[str]], ConversationPref, ForwardRef(None)] = None, is_external_limited: Optional[bool] = None, exporting_team_id: Optional[int] = None, session_search_start: Optional[int] = None, deprecation_search_end: Optional[int] = None, is_error: Optional[bool] = None, creator: Optional[str] = None, team: Optional[str] = None, app_id: Optional[str] = None, enable_at_here: Union[Dict[str, Any], FeatureEnablement, ForwardRef(None)] = None, enable_at_channel: Union[Dict[str, Any], FeatureEnablement, ForwardRef(None)] = None, can_huddle: Union[Dict[str, Any], FeatureEnablement, ForwardRef(None)] = None, url_private: Optional[str] = None, shared_with: Union[Dict[str, Any], SharedWith, ForwardRef(None)] = None, initiated_by: Optional[str] = None, source_team: Optional[str] = None, destination_team: Optional[str] = None, **kwargs)
+(*, name: Optional[str] = None, new_value: Union[str, List[str], Dict[str, Any], ForwardRef(None)] = None, previous_value: Union[str, List[str], Dict[str, Any], ForwardRef(None)] = None, expires_on: Optional[int] = None, mobile_only: Optional[bool] = None, web_only: Optional[bool] = None, non_sso_only: Optional[bool] = None, type: Optional[str] = None, is_workflow: Optional[bool] = None, inviter: Union[User, Dict[str, Any], ForwardRef(None)] = None, kicker: Union[User, Dict[str, Any], ForwardRef(None)] = None, shared_to: Optional[str] = None, reason: Optional[str] = None, origin_team: Optional[str] = None, target_team: Optional[str] = None, is_internal_integration: Optional[bool] = None, cleared_resolution: Optional[str] = None, app_owner_id: Optional[str] = None, bot_scopes: Optional[List[str]] = None, new_scopes: Optional[List[str]] = None, previous_scopes: Optional[List[str]] = None, granular_bot_token: Optional[bool] = None, scopes: Optional[List[str]] = None, scopes_bot: Optional[List[str]] = None, resolution: Optional[str] = None, app_previously_resolved: Optional[bool] = None, admin_app_id: Optional[str] = None, bot_id: Optional[str] = None, installer_user_id: Optional[str] = None, approver_id: Optional[str] = None, approval_type: Optional[str] = None, app_previously_approved: Optional[bool] = None, old_scopes: Optional[List[str]] = None, channels: Optional[List[str]] = None, permissions: Optional[List[Dict[str, Any]]] = None, new_version_id: Optional[str] = None, trigger: Optional[str] = None, export_type: Optional[str] = None, export_start_ts: Optional[str] = None, export_end_ts: Optional[str] = None, barrier_id: Optional[str] = None, primary_usergroup_id: Optional[str] = None, barriered_from_usergroup_ids: Optional[List[str]] = None, restricted_subjects: Optional[List[str]] = None, duration: Optional[int] = None, desktop_app_browser_quit: Optional[bool] = None, invite_id: Optional[str] = None, external_organization_id: Optional[str] = None, external_organization_name: Optional[str] = None, external_user_id: Optional[str] = None, external_user_email: Optional[str] = None, channel_id: Optional[str] = None, added_team_id: Optional[str] = None, is_token_rotation_enabled_app: Optional[bool] = None, old_retention_policy: Union[Dict[str, Any], RetentionPolicy, ForwardRef(None)] = None, new_retention_policy: Union[Dict[str, Any], RetentionPolicy, ForwardRef(None)] = None, who_can_post: Union[Dict[str, List[str]], ConversationPref, ForwardRef(None)] = None, can_thread: Union[Dict[str, List[str]], ConversationPref, ForwardRef(None)] = None, is_external_limited: Optional[bool] = None, exporting_team_id: Optional[int] = None, session_search_start: Optional[int] = None, deprecation_search_end: Optional[int] = None, is_error: Optional[bool] = None, creator: Optional[str] = None, team: Optional[str] = None, app_id: Optional[str] = None, enable_at_here: Union[Dict[str, Any], FeatureEnablement, ForwardRef(None)] = None, enable_at_channel: Union[Dict[str, Any], FeatureEnablement, ForwardRef(None)] = None, can_huddle: Union[Dict[str, Any], FeatureEnablement, ForwardRef(None)] = None, url_private: Optional[str] = None, shared_with: Union[Dict[str, Any], SharedWith, ForwardRef(None)] = None, initiated_by: Optional[str] = None, source_team: Optional[str] = None, destination_team: Optional[str] = None, succeeded_users: Union[List[str], str, ForwardRef(None)] = None, failed_users: Union[List[str], str, ForwardRef(None)] = None, enterprise: Optional[str] = None, subteam: Optional[str] = None, action: Optional[str] = None, idp_group_member_count: Optional[int] = None, workspace_member_count: Optional[int] = None, added_user_count: Optional[int] = None, added_user_error_count: Optional[int] = None, reactivated_user_count: Optional[int] = None, removed_user_count: Optional[int] = None, removed_user_error_count: Optional[int] = None, total_removal_count: Optional[int] = None, is_flagged: Optional[str] = None, target_user: Optional[str] = None, **kwargs)
@@ -1081,6 +1180,21 @@ Class variables
initiated_by: Optional[str]
source_team: Optional[str]
destination_team: Optional[str]
+ succeeded_users: Optional[List[str]]
+ failed_users: Optional[List[str]]
+ enterprise: Optional[str]
+ subteam: Optional[str]
+ action: Optional[str]
+ idp_group_member_count: Optional[int]
+ workspace_member_count: Optional[int]
+ added_user_count: Optional[int]
+ added_user_error_count: Optional[int]
+ reactivated_user_count: Optional[int]
+ removed_user_count: Optional[int]
+ removed_user_error_count: Optional[int]
+ total_removal_count: Optional[int]
+ is_flagged: Optional[str]
+ target_user: Optional[str]
def __init__(
self,
@@ -1159,6 +1273,21 @@ Class variables
initiated_by: Optional[str] = None,
source_team: Optional[str] = None,
destination_team: Optional[str] = None,
+ succeeded_users: Optional[Union[List[str], str]] = None,
+ failed_users: Optional[Union[List[str], str]] = None,
+ enterprise: Optional[str] = None,
+ subteam: Optional[str] = None,
+ action: Optional[str] = None,
+ idp_group_member_count: Optional[int] = None,
+ workspace_member_count: Optional[int] = None,
+ added_user_count: Optional[int] = None,
+ added_user_error_count: Optional[int] = None,
+ reactivated_user_count: Optional[int] = None,
+ removed_user_count: Optional[int] = None,
+ removed_user_error_count: Optional[int] = None,
+ total_removal_count: Optional[int] = None,
+ is_flagged: Optional[str] = None,
+ target_user: Optional[str] = None,
**kwargs,
) -> None:
self.name = name
@@ -1263,14 +1392,45 @@ Class variables
)
self.initiated_by = initiated_by
self.source_team = source_team
- self.destination_team = destination_team
+ self.destination_team = destination_team
+ self.succeeded_users = (
+ succeeded_users if succeeded_users is None or isinstance(succeeded_users, list) else json.loads(succeeded_users)
+ )
+ self.failed_users = (
+ failed_users if failed_users is None or isinstance(failed_users, list) else json.loads(failed_users)
+ )
+ self.enterprise = enterprise
+ self.subteam = subteam
+ self.action = action
+ self.idp_group_member_count = idp_group_member_count
+ self.workspace_member_count = workspace_member_count
+ self.added_user_count = added_user_count
+ self.added_user_error_count = added_user_error_count
+ self.reactivated_user_count = reactivated_user_count
+ self.removed_user_count = removed_user_count
+ self.removed_user_error_count = removed_user_error_count
+ self.total_removal_count = total_removal_count
+ self.is_flagged = is_flagged
+ self.target_user = target_user
var action : Optional[str]
var added_team_id : Optional[str]
var added_user_count : Optional[int]
var added_user_error_count : Optional[int]
var admin_app_id : Optional[str]
var enterprise : Optional[str]
var expires_on : Optional[int]
var failed_users : Optional[List[str]]
var granular_bot_token : Optional[bool]
var idp_group_member_count : Optional[int]
var initiated_by : Optional[str]
var is_flagged : Optional[str]
var is_internal_integration : Optional[bool]
var reactivated_user_count : Optional[int]
var reason : Optional[str]
var removed_user_count : Optional[int]
var removed_user_error_count : Optional[int]
var resolution : Optional[str]
var subteam : Optional[str]
var succeeded_users : Optional[List[str]]
var target_team : Optional[str]
var target_user : Optional[str]
var team : Optional[str]
var total_removal_count : Optional[int]
var trigger : Optional[str]
var workspace_member_count : Optional[int]
class Entity
-(*, type: Optional[str] = None, user: Union[User, Dict[str, Any], ForwardRef(None)] = None, workspace: Union[Location, Dict[str, Any], ForwardRef(None)] = None, enterprise: Union[Location, Dict[str, Any], ForwardRef(None)] = None, channel: Union[Channel, Dict[str, Any], ForwardRef(None)] = None, file: Union[File, Dict[str, Any], ForwardRef(None)] = None, app: Union[App, Dict[str, Any], ForwardRef(None)] = None, usergroup: Union[Usergroup, Dict[str, Any], ForwardRef(None)] = None, workflow: Union[Workflow, Dict[str, Any], ForwardRef(None)] = None, barrier: Union[InformationBarrier, Dict[str, Any], ForwardRef(None)] = None, **kwargs)
+(*, type: Optional[str] = None, user: Union[User, Dict[str, Any], ForwardRef(None)] = None, workspace: Union[Location, Dict[str, Any], ForwardRef(None)] = None, enterprise: Union[Location, Dict[str, Any], ForwardRef(None)] = None, channel: Union[Channel, Dict[str, Any], ForwardRef(None)] = None, file: Union[File, Dict[str, Any], ForwardRef(None)] = None, app: Union[App, Dict[str, Any], ForwardRef(None)] = None, huddle: Union[Huddle, Dict[str, Any], ForwardRef(None)] = None, role: Union[Role, Dict[str, Any], ForwardRef(None)] = None, usergroup: Union[Usergroup, Dict[str, Any], ForwardRef(None)] = None, workflow: Union[Workflow, Dict[str, Any], ForwardRef(None)] = None, barrier: Union[InformationBarrier, Dict[str, Any], ForwardRef(None)] = None, **kwargs)
var huddle : Optional[Huddle]
var role : Optional[Role]
var type : Optional[str]
+class Huddle
+(*, id: Optional[str] = None, date_start: Optional[int] = None, date_end: Optional[int] = None, participants: Optional[List[str]] = None, **kwargs)
+
class Huddle:
+ id: Optional[str]
+ date_start: Optional[int]
+ date_end: Optional[int]
+ participants: Optional[List[str]]
+ unknown_fields: Dict[str, Any]
+
+ def __init__(
+ self,
+ *,
+ id: Optional[str] = None,
+ date_start: Optional[int] = None,
+ date_end: Optional[int] = None,
+ participants: Optional[List[str]] = None,
+ **kwargs,
+ ) -> None:
+ self.id = id
+ self.date_start = date_start
+ self.date_end = date_end
+ self.participants = participants
+ self.unknown_fields = kwargs
+var date_end : Optional[int]
var date_start : Optional[int]
var id : Optional[str]
var participants : Optional[List[str]]
var unknown_fields : Dict[str, Any]
class InformationBarrier
(*, id: Optional[str] = None, primary_usergroup: Optional[str] = None, barriered_from_usergroups: Optional[List[str]] = None, restricted_subjects: Optional[List[str]] = None, **kwargs)
@@ -2086,6 +2364,55 @@ Class variables
+
+class Role
+(*, id: Optional[str] = None, name: Optional[str] = None, type: Optional[str] = None, **kwargs)
+
+
+
+
+
+Expand source code
+
+class Role:
+ id: Optional[str]
+ name: Optional[str]
+ type: Optional[str]
+ unknown_fields: Dict[str, Any]
+
+ def __init__(
+ self,
+ *,
+ id: Optional[str] = None,
+ name: Optional[str] = None,
+ type: Optional[str] = None,
+ **kwargs,
+ ) -> None:
+ self.id = id
+ self.name = name
+ self.type = type
+ self.unknown_fields = kwargs
+
+Class variables
+
+var id : Optional[str]
+-
+
+
+var name : Optional[str]
+-
+
+
+var type : Optional[str]
+-
+
+
+var unknown_fields : Dict[str, Any]
+-
+
+
+
+
class SharedWith
(*, channel_id: Optional[str] = None, **kwargs)
@@ -2333,7 +2660,10 @@ Details
+action
added_team_id
+added_user_count
+added_user_error_count
admin_app_id
app_id
app_owner_id
@@ -2357,6 +2687,7 @@ duration
enable_at_channel
enable_at_here
+enterprise
expires_on
export_end_ts
export_start_ts
@@ -2366,13 +2697,16 @@ external_organization_name
external_user_email
external_user_id
+failed_users
granular_bot_token
+idp_group_member_count
initiated_by
installer_user_id
invite_id
inviter
is_error
is_external_limited
+is_flagged
is_internal_integration
is_token_rotation_enabled_app
is_workflow
@@ -2391,7 +2725,10 @@ previous_scopes
previous_value
primary_usergroup_id
+reactivated_user_count
reason
+removed_user_count
+removed_user_error_count
resolution
restricted_subjects
scopes
@@ -2400,14 +2737,19 @@ shared_to
shared_with
source_team
+subteam
+succeeded_users
target_team
+target_user
team
+total_removal_count
trigger
type
unknown_fields
url_private
web_only
who_can_post
+workspace_member_count
@@ -2418,6 +2760,8 @@ channel
enterprise
file
+huddle
+role
type
unknown_fields
user
@@ -2456,6 +2800,16 @@ Huddle
+
+
+
InformationBarrier
barriered_from_usergroups
@@ -2502,6 +2856,15 @@ Role
+
+id
+name
+type
+unknown_fields
+
+
+
SharedWith
channel_id
diff --git a/docs/api-docs/slack_sdk/index.html b/docs/api-docs/slack_sdk/index.html
index 7c4cfad4a..57727e9ed 100644
--- a/docs/api-docs/slack_sdk/index.html
+++ b/docs/api-docs/slack_sdk/index.html
@@ -1032,6 +1032,48 @@ Note
kwargs.update({"channel_id": channel_id, "duration_days": duration_days})
return self.api_call("admin.conversations.setCustomRetention", params=kwargs)
+ def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> SlackResponse:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+ def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> SlackResponse:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+ def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+ ) -> SlackResponse:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return self.api_call("admin.conversations.bulkMove", params=kwargs)
+
def admin_emoji_add(
self,
*,
@@ -2921,11 +2963,13 @@ Note
def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> SlackResponse:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
def files_comments_delete(
@@ -5375,6 +5419,81 @@ Methods
return self.api_call("admin.conversations.archive", params=kwargs)
+
+def admin_conversations_bulkArchive(self, *, channel_ids: Union[str, Sequence[str]], **kwargs) ‑> SlackResponse
+
+
+Archive public or private channels in bulk.
+https://api.slack.com/methods/admin.conversations.bulkArchive
+
+
+Expand source code
+
+def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+) -> SlackResponse:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+
+
+def admin_conversations_bulkDelete(self, *, channel_ids: Union[str, Sequence[str]], **kwargs) ‑> SlackResponse
+
+
+Delete public or private channels in bulk.
+https://slack.com/api/admin.conversations.bulkDelete
+
+
+Expand source code
+
+def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+) -> SlackResponse:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+
+
+def admin_conversations_bulkMove(self, *, channel_ids: Union[str, Sequence[str]], target_team_id: str, **kwargs) ‑> SlackResponse
+
+
+Move public or private channels in bulk.
+https://api.slack.com/methods/admin.conversations.bulkMove
+
+
+Expand source code
+
+def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+) -> SlackResponse:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return self.api_call("admin.conversations.bulkMove", params=kwargs)
+
+
def admin_conversations_convertToPrivate(self, *, channel_id: str, **kwargs) ‑> SlackResponse
@@ -9045,7 +9164,7 @@ Methods
-def emoji_list(self, **kwargs) ‑> SlackResponse
+def emoji_list(self, include_categories: Optional[bool] = None, **kwargs) ‑> SlackResponse
Lists custom emoji for a team.
@@ -9056,11 +9175,13 @@
Methods
def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> SlackResponse:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
@@ -12565,6 +12686,9 @@ WebClient
admin_barriers_list
admin_barriers_update
admin_conversations_archive
+admin_conversations_bulkArchive
+admin_conversations_bulkDelete
+admin_conversations_bulkMove
admin_conversations_convertToPrivate
admin_conversations_create
admin_conversations_delete
diff --git a/docs/api-docs/slack_sdk/models/attachments/index.html b/docs/api-docs/slack_sdk/models/attachments/index.html
index 5e65cfd21..391ac22e0 100644
--- a/docs/api-docs/slack_sdk/models/attachments/index.html
+++ b/docs/api-docs/slack_sdk/models/attachments/index.html
@@ -352,8 +352,7 @@ Module slack_sdk.models.attachments
table-like way. For best results, include no more than 2-3 field
objects.
color: Changes the color of the border on the left side of this attachment
- from the default gray. Can either be one of "good" (green), "warning"
- (yellow), "danger" (red), or any hex color code (eg. #439FE0)
+ from the default gray. Can be any hex color code (eg. #439FE0)
markdown_in: An array of field names that should be formatted by
markdown syntax - allowed values: "pretext", "text", "fields"
title: Large title text near the top of the attachment.
@@ -1399,8 +1398,7 @@ Args
objects.
color
Changes the color of the border on the left side of this attachment
-from the default gray. Can either be one of "good" (green), "warning"
-(yellow), "danger" (red), or any hex color code (eg. #439FE0)
+from the default gray. Can be any hex color code (eg. #439FE0)
markdown_in
An array of field names that should be formatted by
markdown syntax - allowed values: "pretext", "text", "fields"
@@ -1519,8 +1517,7 @@ Args
table-like way. For best results, include no more than 2-3 field
objects.
color: Changes the color of the border on the left side of this attachment
- from the default gray. Can either be one of "good" (green), "warning"
- (yellow), "danger" (red), or any hex color code (eg. #439FE0)
+ from the default gray. Can be any hex color code (eg. #439FE0)
markdown_in: An array of field names that should be formatted by
markdown syntax - allowed values: "pretext", "text", "fields"
title: Large title text near the top of the attachment.
diff --git a/docs/api-docs/slack_sdk/web/async_client.html b/docs/api-docs/slack_sdk/web/async_client.html
index 7d597a38c..1133005fb 100644
--- a/docs/api-docs/slack_sdk/web/async_client.html
+++ b/docs/api-docs/slack_sdk/web/async_client.html
@@ -832,6 +832,48 @@ Module slack_sdk.web.async_client
kwargs.update({"channel_id": channel_id, "duration_days": duration_days})
return await self.api_call("admin.conversations.setCustomRetention", params=kwargs)
+ async def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+ async def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return await self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+ async def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return await self.api_call("admin.conversations.bulkMove", params=kwargs)
+
async def admin_emoji_add(
self,
*,
@@ -2721,11 +2763,13 @@ Module slack_sdk.web.async_client
async def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> AsyncSlackResponse:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return await self.api_call("emoji.list", http_verb="GET", params=kwargs)
async def files_comments_delete(
@@ -5473,6 +5517,48 @@ Note
kwargs.update({"channel_id": channel_id, "duration_days": duration_days})
return await self.api_call("admin.conversations.setCustomRetention", params=kwargs)
+ async def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+ async def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return await self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+ async def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+ ) -> AsyncSlackResponse:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return await self.api_call("admin.conversations.bulkMove", params=kwargs)
+
async def admin_emoji_add(
self,
*,
@@ -7362,11 +7448,13 @@ Note
async def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> AsyncSlackResponse:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return await self.api_call("emoji.list", http_verb="GET", params=kwargs)
async def files_comments_delete(
@@ -9816,6 +9904,81 @@ Methods
return await self.api_call("admin.conversations.archive", params=kwargs)
+
+async def admin_conversations_bulkArchive(self, *, channel_ids: Union[str, Sequence[str]], **kwargs) ‑> AsyncSlackResponse
+
+
+Archive public or private channels in bulk.
+https://api.slack.com/methods/admin.conversations.bulkArchive
+
+
+Expand source code
+
+async def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+) -> AsyncSlackResponse:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+
+
+async def admin_conversations_bulkDelete(self, *, channel_ids: Union[str, Sequence[str]], **kwargs) ‑> AsyncSlackResponse
+
+
+Delete public or private channels in bulk.
+https://slack.com/api/admin.conversations.bulkDelete
+
+
+Expand source code
+
+async def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+) -> AsyncSlackResponse:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return await self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+
+
+async def admin_conversations_bulkMove(self, *, channel_ids: Union[str, Sequence[str]], target_team_id: str, **kwargs) ‑> AsyncSlackResponse
+
+
+Move public or private channels in bulk.
+https://api.slack.com/methods/admin.conversations.bulkMove
+
+
+Expand source code
+
+async def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+) -> AsyncSlackResponse:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return await self.api_call("admin.conversations.bulkMove", params=kwargs)
+
+
async def admin_conversations_convertToPrivate(self, *, channel_id: str, **kwargs) ‑> AsyncSlackResponse
@@ -13486,7 +13649,7 @@ Methods
-async def emoji_list(self, **kwargs) ‑> AsyncSlackResponse
+async def emoji_list(self, include_categories: Optional[bool] = None, **kwargs) ‑> AsyncSlackResponse
Lists custom emoji for a team.
@@ -13497,11 +13660,13 @@
Methods
async def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> AsyncSlackResponse:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return await self.api_call("emoji.list", http_verb="GET", params=kwargs)
@@ -16553,6 +16718,9 @@ admin_barriers_list
admin_barriers_update
admin_conversations_archive
+admin_conversations_bulkArchive
+admin_conversations_bulkDelete
+admin_conversations_bulkMove
admin_conversations_convertToPrivate
admin_conversations_create
admin_conversations_delete
diff --git a/docs/api-docs/slack_sdk/web/client.html b/docs/api-docs/slack_sdk/web/client.html
index 44d7c968d..772f94717 100644
--- a/docs/api-docs/slack_sdk/web/client.html
+++ b/docs/api-docs/slack_sdk/web/client.html
@@ -823,6 +823,48 @@ Module slack_sdk.web.client
kwargs.update({"channel_id": channel_id, "duration_days": duration_days})
return self.api_call("admin.conversations.setCustomRetention", params=kwargs)
+ def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> SlackResponse:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+ def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> SlackResponse:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+ def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+ ) -> SlackResponse:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return self.api_call("admin.conversations.bulkMove", params=kwargs)
+
def admin_emoji_add(
self,
*,
@@ -2712,11 +2754,13 @@ Module slack_sdk.web.client
def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> SlackResponse:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
def files_comments_delete(
@@ -5464,6 +5508,48 @@ Note
kwargs.update({"channel_id": channel_id, "duration_days": duration_days})
return self.api_call("admin.conversations.setCustomRetention", params=kwargs)
+ def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> SlackResponse:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+ def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> SlackResponse:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+ def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+ ) -> SlackResponse:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return self.api_call("admin.conversations.bulkMove", params=kwargs)
+
def admin_emoji_add(
self,
*,
@@ -7353,11 +7439,13 @@ Note
def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> SlackResponse:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
def files_comments_delete(
@@ -9807,6 +9895,81 @@ Methods
return self.api_call("admin.conversations.archive", params=kwargs)
+
+def admin_conversations_bulkArchive(self, *, channel_ids: Union[str, Sequence[str]], **kwargs) ‑> SlackResponse
+
+
+Archive public or private channels in bulk.
+https://api.slack.com/methods/admin.conversations.bulkArchive
+
+
+Expand source code
+
+def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+) -> SlackResponse:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+
+
+def admin_conversations_bulkDelete(self, *, channel_ids: Union[str, Sequence[str]], **kwargs) ‑> SlackResponse
+
+
+Delete public or private channels in bulk.
+https://slack.com/api/admin.conversations.bulkDelete
+
+
+Expand source code
+
+def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+) -> SlackResponse:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+
+
+def admin_conversations_bulkMove(self, *, channel_ids: Union[str, Sequence[str]], target_team_id: str, **kwargs) ‑> SlackResponse
+
+
+Move public or private channels in bulk.
+https://api.slack.com/methods/admin.conversations.bulkMove
+
+
+Expand source code
+
+def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+) -> SlackResponse:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return self.api_call("admin.conversations.bulkMove", params=kwargs)
+
+
def admin_conversations_convertToPrivate(self, *, channel_id: str, **kwargs) ‑> SlackResponse
@@ -13477,7 +13640,7 @@ Methods
-def emoji_list(self, **kwargs) ‑> SlackResponse
+def emoji_list(self, include_categories: Optional[bool] = None, **kwargs) ‑> SlackResponse
Lists custom emoji for a team.
@@ -13488,11 +13651,13 @@
Methods
def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> SlackResponse:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
@@ -16543,6 +16708,9 @@ admin_barriers_list
admin_barriers_update
admin_conversations_archive
+admin_conversations_bulkArchive
+admin_conversations_bulkDelete
+admin_conversations_bulkMove
admin_conversations_convertToPrivate
admin_conversations_create
admin_conversations_delete
diff --git a/docs/api-docs/slack_sdk/web/index.html b/docs/api-docs/slack_sdk/web/index.html
index 08bf0a7fd..bc92c07af 100644
--- a/docs/api-docs/slack_sdk/web/index.html
+++ b/docs/api-docs/slack_sdk/web/index.html
@@ -1243,6 +1243,48 @@ Note
kwargs.update({"channel_id": channel_id, "duration_days": duration_days})
return self.api_call("admin.conversations.setCustomRetention", params=kwargs)
+ def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> SlackResponse:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+ def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> SlackResponse:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+ def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+ ) -> SlackResponse:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return self.api_call("admin.conversations.bulkMove", params=kwargs)
+
def admin_emoji_add(
self,
*,
@@ -3132,11 +3174,13 @@ Note
def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> SlackResponse:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
def files_comments_delete(
@@ -5586,6 +5630,81 @@ Methods
return self.api_call("admin.conversations.archive", params=kwargs)
+
+def admin_conversations_bulkArchive(self, *, channel_ids: Union[str, Sequence[str]], **kwargs) ‑> SlackResponse
+
+
+Archive public or private channels in bulk.
+https://api.slack.com/methods/admin.conversations.bulkArchive
+
+
+Expand source code
+
+def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+) -> SlackResponse:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+
+
+def admin_conversations_bulkDelete(self, *, channel_ids: Union[str, Sequence[str]], **kwargs) ‑> SlackResponse
+
+
+Delete public or private channels in bulk.
+https://slack.com/api/admin.conversations.bulkDelete
+
+
+Expand source code
+
+def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+) -> SlackResponse:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+
+
+def admin_conversations_bulkMove(self, *, channel_ids: Union[str, Sequence[str]], target_team_id: str, **kwargs) ‑> SlackResponse
+
+
+Move public or private channels in bulk.
+https://api.slack.com/methods/admin.conversations.bulkMove
+
+
+Expand source code
+
+def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+) -> SlackResponse:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return self.api_call("admin.conversations.bulkMove", params=kwargs)
+
+
def admin_conversations_convertToPrivate(self, *, channel_id: str, **kwargs) ‑> SlackResponse
@@ -9256,7 +9375,7 @@ Methods
-def emoji_list(self, **kwargs) ‑> SlackResponse
+def emoji_list(self, include_categories: Optional[bool] = None, **kwargs) ‑> SlackResponse
Lists custom emoji for a team.
@@ -9267,11 +9386,13 @@
Methods
def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> SlackResponse:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
@@ -12345,6 +12466,9 @@ Web
admin_barriers_list
admin_barriers_update
admin_conversations_archive
+admin_conversations_bulkArchive
+admin_conversations_bulkDelete
+admin_conversations_bulkMove
admin_conversations_convertToPrivate
admin_conversations_create
admin_conversations_delete
diff --git a/docs/api-docs/slack_sdk/web/legacy_client.html b/docs/api-docs/slack_sdk/web/legacy_client.html
index 4cf37e6e2..6fe2756ae 100644
--- a/docs/api-docs/slack_sdk/web/legacy_client.html
+++ b/docs/api-docs/slack_sdk/web/legacy_client.html
@@ -833,6 +833,48 @@ Module slack_sdk.web.legacy_client
kwargs.update({"channel_id": channel_id, "duration_days": duration_days})
return self.api_call("admin.conversations.setCustomRetention", params=kwargs)
+ def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+ def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+ def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return self.api_call("admin.conversations.bulkMove", params=kwargs)
+
def admin_emoji_add(
self,
*,
@@ -2722,11 +2764,13 @@ Module slack_sdk.web.legacy_client
def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> Union[Future, SlackResponse]:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
def files_comments_delete(
@@ -5474,6 +5518,48 @@ Note
kwargs.update({"channel_id": channel_id, "duration_days": duration_days})
return self.api_call("admin.conversations.setCustomRetention", params=kwargs)
+ def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+ def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+ def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+ ) -> Union[Future, SlackResponse]:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return self.api_call("admin.conversations.bulkMove", params=kwargs)
+
def admin_emoji_add(
self,
*,
@@ -7363,11 +7449,13 @@ Note
def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> Union[Future, SlackResponse]:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
def files_comments_delete(
@@ -9817,6 +9905,81 @@ Methods
return self.api_call("admin.conversations.archive", params=kwargs)
+
+def admin_conversations_bulkArchive(self, *, channel_ids: Union[str, Sequence[str]], **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]
+
+
+Archive public or private channels in bulk.
+https://api.slack.com/methods/admin.conversations.bulkArchive
+
+
+Expand source code
+
+def admin_conversations_bulkArchive(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+) -> Union[Future, SlackResponse]:
+ """Archive public or private channels in bulk.
+ https://api.slack.com/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)
+
+
+
+def admin_conversations_bulkDelete(self, *, channel_ids: Union[str, Sequence[str]], **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]
+
+
+Delete public or private channels in bulk.
+https://slack.com/api/admin.conversations.bulkDelete
+
+
+Expand source code
+
+def admin_conversations_bulkDelete(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ **kwargs,
+) -> Union[Future, SlackResponse]:
+ """Delete public or private channels in bulk.
+ https://slack.com/api/admin.conversations.bulkDelete
+ """
+ kwargs.update({"channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids})
+ return self.api_call("admin.conversations.bulkDelete", params=kwargs)
+
+
+
+def admin_conversations_bulkMove(self, *, channel_ids: Union[str, Sequence[str]], target_team_id: str, **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]
+
+
+Move public or private channels in bulk.
+https://api.slack.com/methods/admin.conversations.bulkMove
+
+
+Expand source code
+
+def admin_conversations_bulkMove(
+ self,
+ *,
+ channel_ids: Union[Sequence[str], str],
+ target_team_id: str,
+ **kwargs,
+) -> Union[Future, SlackResponse]:
+ """Move public or private channels in bulk.
+ https://api.slack.com/methods/admin.conversations.bulkMove
+ """
+ kwargs.update(
+ {
+ "target_team_id": target_team_id,
+ "channel_ids": ",".join(channel_ids) if isinstance(channel_ids, (list, tuple)) else channel_ids,
+ }
+ )
+ return self.api_call("admin.conversations.bulkMove", params=kwargs)
+
+
def admin_conversations_convertToPrivate(self, *, channel_id: str, **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]
@@ -13487,7 +13650,7 @@ Methods
-def emoji_list(self, **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]
+def emoji_list(self, include_categories: Optional[bool] = None, **kwargs) ‑> Union[_asyncio.Future, LegacySlackResponse]
Lists custom emoji for a team.
@@ -13498,11 +13661,13 @@
Methods
def emoji_list(
self,
+ include_categories: Optional[bool] = None,
**kwargs,
) -> Union[Future, SlackResponse]:
"""Lists custom emoji for a team.
https://api.slack.com/methods/emoji.list
"""
+ kwargs.update({"include_categories": include_categories})
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
@@ -16553,6 +16718,9 @@ admin_barriers_list
admin_barriers_update
admin_conversations_archive
+admin_conversations_bulkArchive
+admin_conversations_bulkDelete
+admin_conversations_bulkMove
admin_conversations_convertToPrivate
admin_conversations_create
admin_conversations_delete
diff --git a/slack_sdk/models/attachments/__init__.py b/slack_sdk/models/attachments/__init__.py
index 6a40df9ba..fbcac21ee 100644
--- a/slack_sdk/models/attachments/__init__.py
+++ b/slack_sdk/models/attachments/__init__.py
@@ -324,8 +324,7 @@ def __init__(
table-like way. For best results, include no more than 2-3 field
objects.
color: Changes the color of the border on the left side of this attachment
- from the default gray. Can either be one of "good" (green), "warning"
- (yellow), "danger" (red), or any hex color code (eg. #439FE0)
+ from the default gray. Can be any hex color code (eg. #439FE0)
markdown_in: An array of field names that should be formatted by
markdown syntax - allowed values: "pretext", "text", "fields"
title: Large title text near the top of the attachment.