Skip to content

Commit 116601d

Browse files
committed
Add new Audit Logs API response properties
1 parent 0d23857 commit 116601d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

slack_sdk/audit_logs/v1/logs.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,19 @@ def __init__(
163163
self.unknown_fields = kwargs
164164

165165

166+
class SharedWith:
167+
channel_id: Optional[str]
168+
169+
def __init__(
170+
self,
171+
*,
172+
channel_id: Optional[str] = None,
173+
**kwargs,
174+
) -> None:
175+
self.channel_id = channel_id
176+
self.unknown_fields = kwargs
177+
178+
166179
class Details:
167180
name: Optional[str]
168181
new_value: Optional[Union[str, List[str], Dict[str, Any]]]
@@ -234,6 +247,11 @@ class Details:
234247
enable_at_here: Optional[FeatureEnablement]
235248
enable_at_channel: Optional[FeatureEnablement]
236249
can_huddle: Optional[FeatureEnablement]
250+
url_private: Optional[str]
251+
shared_with: Optional[SharedWith]
252+
initiated_by: Optional[str]
253+
source_team: Optional[str]
254+
destination_team: Optional[str]
237255

238256
def __init__(
239257
self,
@@ -307,6 +325,11 @@ def __init__(
307325
enable_at_here: Optional[Union[Dict[str, Any], FeatureEnablement]] = None,
308326
enable_at_channel: Optional[Union[Dict[str, Any], FeatureEnablement]] = None,
309327
can_huddle: Optional[Union[Dict[str, Any], FeatureEnablement]] = None,
328+
url_private: Optional[str] = None,
329+
shared_with: Optional[Union[Dict[str, Any], SharedWith]] = None,
330+
initiated_by: Optional[str] = None,
331+
source_team: Optional[str] = None,
332+
destination_team: Optional[str] = None,
310333
**kwargs,
311334
) -> None:
312335
self.name = name
@@ -405,6 +428,13 @@ def __init__(
405428
if can_huddle is None or isinstance(can_huddle, FeatureEnablement)
406429
else FeatureEnablement(**can_huddle)
407430
)
431+
self.url_private = url_private
432+
self.shared_with = (
433+
shared_with if shared_with is None or isinstance(shared_with, SharedWith) else SharedWith(**shared_with)
434+
)
435+
self.initiated_by = initiated_by
436+
self.source_team = source_team
437+
self.destination_team = destination_team
408438

409439

410440
class Channel:

0 commit comments

Comments
 (0)