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 @@

Module slack_sdk.audit_logs.v1.logs

Expand source code -
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

Class variables

+
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]
@@ -1363,6 +1523,10 @@

Class variables

+
var enterprise : Optional[str]
+
+
+
var expires_on : Optional[int]
@@ -1399,10 +1563,18 @@

Class variables

+
var failed_users : Optional[List[str]]
+
+
+
var granular_bot_token : Optional[bool]
+
var idp_group_member_count : Optional[int]
+
+
+
var initiated_by : Optional[str]
@@ -1427,6 +1599,10 @@

Class variables

+
var is_flagged : Optional[str]
+
+
+
var is_internal_integration : Optional[bool]
@@ -1499,10 +1675,22 @@

Class variables

+
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]
@@ -1535,14 +1723,30 @@

Class variables

+
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]
@@ -1567,11 +1771,15 @@

Class variables

+
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)
@@ -1587,6 +1795,8 @@

Class variables

channel: Optional[Channel] file: Optional[File] app: Optional[App] + huddle: Optional[Huddle] + role: Optional[Role] usergroup: Optional[Usergroup] workflow: Optional[Workflow] barrier: Optional[InformationBarrier] @@ -1602,6 +1812,8 @@

Class variables

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, @@ -1614,6 +1826,8 @@

Class variables

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 @@ -1641,6 +1855,14 @@

Class variables

+
var huddle : Optional[Huddle]
+
+
+
+
var role : Optional[Role]
+
+
+
var type : Optional[str]
@@ -1830,6 +2052,62 @@

Class variables

+
+class Huddle +(*, id: Optional[str] = None, date_start: Optional[int] = None, date_end: Optional[int] = None, participants: Optional[List[str]] = None, **kwargs) +
+
+
+
+ +Expand source code + +
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 variables

+
+
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

  • @@ -2418,6 +2760,8 @@

    channel

  • enterprise
  • file
  • +
  • huddle
  • +
  • role
  • type
  • unknown_fields
  • user
  • @@ -2456,6 +2800,16 @@

    Huddle

    + + +
  • InformationBarrier