@@ -170,6 +170,7 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.client</code></h1>
170170 action: Optional[str] = None,
171171 actor: Optional[str] = None,
172172 entity: Optional[str] = None,
173+ cursor: Optional[str] = None,
173174 additional_query_params: Optional[Dict[str, Any]] = None,
174175 headers: Optional[Dict[str, str]] = None,
175176 ) -> AuditLogsResponse:
@@ -190,6 +191,7 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.client</code></h1>
190191 action: Name of the action.
191192 actor: User ID who initiated the action.
192193 entity: ID of the target entity of the action (such as a channel, workspace, organization, file).
194+ cursor: The next page cursor of pagination
193195 additional_query_params: Add anything else if you need to use the ones this library does not support
194196 headers: Additional request headers
195197
@@ -203,6 +205,7 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.client</code></h1>
203205 "action": action,
204206 "actor": actor,
205207 "entity": entity,
208+ "cursor": cursor,
206209 }
207210 if additional_query_params is not None:
208211 query_params.update(additional_query_params)
@@ -287,11 +290,13 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.client</code></h1>
287290 # read the response body here
288291 charset = e.headers.get_content_charset() or "utf-8"
289292 response_body: str = e.read().decode(charset)
293+ # As adding new values to HTTPError#headers can be ignored, building a new dict object here
294+ response_headers = dict(e.headers.items())
290295 resp = AuditLogsResponse(
291296 url=url,
292297 status_code=e.code,
293298 raw_body=response_body,
294- headers=dict(e.headers.items()) ,
299+ headers=response_headers ,
295300 )
296301 if e.code == 429:
297302 # for backward-compatibility with WebClient (v.2.5.0 or older)
@@ -570,6 +575,7 @@ <h2 id="args">Args</h2>
570575 action: Optional[str] = None,
571576 actor: Optional[str] = None,
572577 entity: Optional[str] = None,
578+ cursor: Optional[str] = None,
573579 additional_query_params: Optional[Dict[str, Any]] = None,
574580 headers: Optional[Dict[str, str]] = None,
575581 ) -> AuditLogsResponse:
@@ -590,6 +596,7 @@ <h2 id="args">Args</h2>
590596 action: Name of the action.
591597 actor: User ID who initiated the action.
592598 entity: ID of the target entity of the action (such as a channel, workspace, organization, file).
599+ cursor: The next page cursor of pagination
593600 additional_query_params: Add anything else if you need to use the ones this library does not support
594601 headers: Additional request headers
595602
@@ -603,6 +610,7 @@ <h2 id="args">Args</h2>
603610 "action": action,
604611 "actor": actor,
605612 "entity": entity,
613+ "cursor": cursor,
606614 }
607615 if additional_query_params is not None:
608616 query_params.update(additional_query_params)
@@ -687,11 +695,13 @@ <h2 id="args">Args</h2>
687695 # read the response body here
688696 charset = e.headers.get_content_charset() or "utf-8"
689697 response_body: str = e.read().decode(charset)
698+ # As adding new values to HTTPError#headers can be ignored, building a new dict object here
699+ response_headers = dict(e.headers.items())
690700 resp = AuditLogsResponse(
691701 url=url,
692702 status_code=e.code,
693703 raw_body=response_body,
694- headers=dict(e.headers.items()) ,
704+ headers=response_headers ,
695705 )
696706 if e.code == 429:
697707 # for backward-compatibility with WebClient (v.2.5.0 or older)
@@ -935,7 +945,7 @@ <h2 id="returns">Returns</h2>
935945</ details >
936946</ dd >
937947< dt id ="slack_sdk.audit_logs.v1.client.AuditLogsClient.logs "> < code class ="name flex ">
938- < span > def < span class ="ident "> logs</ span > </ span > (< span > self, *, latest: Optional[int] = None, oldest: Optional[int] = None, limit: Optional[int] = None, action: Optional[str] = None, actor: Optional[str] = None, entity: Optional[str] = None, additional_query_params: Optional[Dict[str, Any]] = None, headers: Optional[Dict[str, str]] = None) ‑> < a title ="slack_sdk.audit_logs.v1.response.AuditLogsResponse " href ="response.html#slack_sdk.audit_logs.v1.response.AuditLogsResponse "> AuditLogsResponse</ a > </ span >
948+ < span > def < span class ="ident "> logs</ span > </ span > (< span > self, *, latest: Optional[int] = None, oldest: Optional[int] = None, limit: Optional[int] = None, action: Optional[str] = None, actor: Optional[str] = None, entity: Optional[str] = None, cursor: Optional[str] = None, additional_query_params: Optional[Dict[str, Any]] = None, headers: Optional[Dict[str, str]] = None) ‑> < a title ="slack_sdk.audit_logs.v1.response.AuditLogsResponse " href ="response.html#slack_sdk.audit_logs.v1.response.AuditLogsResponse "> AuditLogsResponse</ a > </ span >
939949</ code > </ dt >
940950< dd >
941951< div class ="desc "> < p > This is the primary endpoint for retrieving actual audit events from your organization.
@@ -960,6 +970,8 @@ <h2 id="args">Args</h2>
960970< dd > User ID who initiated the action.</ dd >
961971< dt > < strong > < code > entity</ code > </ strong > </ dt >
962972< dd > ID of the target entity of the action (such as a channel, workspace, organization, file).</ dd >
973+ < dt > < strong > < code > cursor</ code > </ strong > </ dt >
974+ < dd > The next page cursor of pagination</ dd >
963975< dt > < strong > < code > additional_query_params</ code > </ strong > </ dt >
964976< dd > Add anything else if you need to use the ones this library does not support</ dd >
965977< dt > < strong > < code > headers</ code > </ strong > </ dt >
@@ -980,6 +992,7 @@ <h2 id="returns">Returns</h2>
980992 action: Optional[str] = None,
981993 actor: Optional[str] = None,
982994 entity: Optional[str] = None,
995+ cursor: Optional[str] = None,
983996 additional_query_params: Optional[Dict[str, Any]] = None,
984997 headers: Optional[Dict[str, str]] = None,
985998) -> AuditLogsResponse:
@@ -1000,6 +1013,7 @@ <h2 id="returns">Returns</h2>
10001013 action: Name of the action.
10011014 actor: User ID who initiated the action.
10021015 entity: ID of the target entity of the action (such as a channel, workspace, organization, file).
1016+ cursor: The next page cursor of pagination
10031017 additional_query_params: Add anything else if you need to use the ones this library does not support
10041018 headers: Additional request headers
10051019
@@ -1013,6 +1027,7 @@ <h2 id="returns">Returns</h2>
10131027 "action": action,
10141028 "actor": actor,
10151029 "entity": entity,
1030+ "cursor": cursor,
10161031 }
10171032 if additional_query_params is not None:
10181033 query_params.update(additional_query_params)
0 commit comments