Skip to content

Commit

Permalink
version 3.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Feb 7, 2022
1 parent d5e7b70 commit 5bb8cce
Show file tree
Hide file tree
Showing 19 changed files with 606 additions and 71 deletions.
13 changes: 12 additions & 1 deletion docs/api-docs/slack_sdk/audit_logs/v1/async_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.async_client</code></h1>
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,
) -&gt; AuditLogsResponse:
Expand All @@ -201,6 +202,7 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.async_client</code></h1>
action: Name of the action.
actor: User ID who initiated the action.
entity: ID of the target entity of the action (such as a channel, workspace, organization, file).
cursor: The next page cursor of pagination
additional_query_params: Add anything else if you need to use the ones this library does not support
headers: Additional request headers

Expand All @@ -214,6 +216,7 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.async_client</code></h1>
&#34;action&#34;: action,
&#34;actor&#34;: actor,
&#34;entity&#34;: entity,
&#34;cursor&#34;: cursor,
}
if additional_query_params is not None:
query_params.update(additional_query_params)
Expand Down Expand Up @@ -567,6 +570,7 @@ <h2 id="args">Args</h2>
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,
) -&gt; AuditLogsResponse:
Expand All @@ -587,6 +591,7 @@ <h2 id="args">Args</h2>
action: Name of the action.
actor: User ID who initiated the action.
entity: ID of the target entity of the action (such as a channel, workspace, organization, file).
cursor: The next page cursor of pagination
additional_query_params: Add anything else if you need to use the ones this library does not support
headers: Additional request headers

Expand All @@ -600,6 +605,7 @@ <h2 id="args">Args</h2>
&#34;action&#34;: action,
&#34;actor&#34;: actor,
&#34;entity&#34;: entity,
&#34;cursor&#34;: cursor,
}
if additional_query_params is not None:
query_params.update(additional_query_params)
Expand Down Expand Up @@ -908,7 +914,7 @@ <h2 id="returns">Returns</h2>
</details>
</dd>
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.logs"><code class="name flex">
<span>async 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>
<span>async 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>
</code></dt>
<dd>
<div class="desc"><p>This is the primary endpoint for retrieving actual audit events from your organization.
Expand All @@ -933,6 +939,8 @@ <h2 id="args">Args</h2>
<dd>User ID who initiated the action.</dd>
<dt><strong><code>entity</code></strong></dt>
<dd>ID of the target entity of the action (such as a channel, workspace, organization, file).</dd>
<dt><strong><code>cursor</code></strong></dt>
<dd>The next page cursor of pagination</dd>
<dt><strong><code>additional_query_params</code></strong></dt>
<dd>Add anything else if you need to use the ones this library does not support</dd>
<dt><strong><code>headers</code></strong></dt>
Expand All @@ -953,6 +961,7 @@ <h2 id="returns">Returns</h2>
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,
) -&gt; AuditLogsResponse:
Expand All @@ -973,6 +982,7 @@ <h2 id="returns">Returns</h2>
action: Name of the action.
actor: User ID who initiated the action.
entity: ID of the target entity of the action (such as a channel, workspace, organization, file).
cursor: The next page cursor of pagination
additional_query_params: Add anything else if you need to use the ones this library does not support
headers: Additional request headers

Expand All @@ -986,6 +996,7 @@ <h2 id="returns">Returns</h2>
&#34;action&#34;: action,
&#34;actor&#34;: actor,
&#34;entity&#34;: entity,
&#34;cursor&#34;: cursor,
}
if additional_query_params is not None:
query_params.update(additional_query_params)
Expand Down
21 changes: 18 additions & 3 deletions docs/api-docs/slack_sdk/audit_logs/v1/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.client</code></h1>
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,
) -&gt; AuditLogsResponse:
Expand All @@ -190,6 +191,7 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.client</code></h1>
action: Name of the action.
actor: User ID who initiated the action.
entity: ID of the target entity of the action (such as a channel, workspace, organization, file).
cursor: The next page cursor of pagination
additional_query_params: Add anything else if you need to use the ones this library does not support
headers: Additional request headers

Expand All @@ -203,6 +205,7 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.client</code></h1>
&#34;action&#34;: action,
&#34;actor&#34;: actor,
&#34;entity&#34;: entity,
&#34;cursor&#34;: cursor,
}
if additional_query_params is not None:
query_params.update(additional_query_params)
Expand Down Expand Up @@ -287,11 +290,13 @@ <h1 class="title">Module <code>slack_sdk.audit_logs.v1.client</code></h1>
# read the response body here
charset = e.headers.get_content_charset() or &#34;utf-8&#34;
response_body: str = e.read().decode(charset)
# As adding new values to HTTPError#headers can be ignored, building a new dict object here
response_headers = dict(e.headers.items())
resp = AuditLogsResponse(
url=url,
status_code=e.code,
raw_body=response_body,
headers=dict(e.headers.items()),
headers=response_headers,
)
if e.code == 429:
# for backward-compatibility with WebClient (v.2.5.0 or older)
Expand Down Expand Up @@ -570,6 +575,7 @@ <h2 id="args">Args</h2>
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,
) -&gt; AuditLogsResponse:
Expand All @@ -590,6 +596,7 @@ <h2 id="args">Args</h2>
action: Name of the action.
actor: User ID who initiated the action.
entity: ID of the target entity of the action (such as a channel, workspace, organization, file).
cursor: The next page cursor of pagination
additional_query_params: Add anything else if you need to use the ones this library does not support
headers: Additional request headers

Expand All @@ -603,6 +610,7 @@ <h2 id="args">Args</h2>
&#34;action&#34;: action,
&#34;actor&#34;: actor,
&#34;entity&#34;: entity,
&#34;cursor&#34;: cursor,
}
if additional_query_params is not None:
query_params.update(additional_query_params)
Expand Down Expand Up @@ -687,11 +695,13 @@ <h2 id="args">Args</h2>
# read the response body here
charset = e.headers.get_content_charset() or &#34;utf-8&#34;
response_body: str = e.read().decode(charset)
# As adding new values to HTTPError#headers can be ignored, building a new dict object here
response_headers = dict(e.headers.items())
resp = AuditLogsResponse(
url=url,
status_code=e.code,
raw_body=response_body,
headers=dict(e.headers.items()),
headers=response_headers,
)
if e.code == 429:
# for backward-compatibility with WebClient (v.2.5.0 or older)
Expand Down Expand Up @@ -935,7 +945,7 @@ <h2 id="returns">Returns</h2>
</details>
</dd>
<dt id="slack_sdk.audit_logs.v1.client.AuditLogsClient.logs"><code class="name flex">
<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>
<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>
</code></dt>
<dd>
<div class="desc"><p>This is the primary endpoint for retrieving actual audit events from your organization.
Expand All @@ -960,6 +970,8 @@ <h2 id="args">Args</h2>
<dd>User ID who initiated the action.</dd>
<dt><strong><code>entity</code></strong></dt>
<dd>ID of the target entity of the action (such as a channel, workspace, organization, file).</dd>
<dt><strong><code>cursor</code></strong></dt>
<dd>The next page cursor of pagination</dd>
<dt><strong><code>additional_query_params</code></strong></dt>
<dd>Add anything else if you need to use the ones this library does not support</dd>
<dt><strong><code>headers</code></strong></dt>
Expand All @@ -980,6 +992,7 @@ <h2 id="returns">Returns</h2>
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,
) -&gt; AuditLogsResponse:
Expand All @@ -1000,6 +1013,7 @@ <h2 id="returns">Returns</h2>
action: Name of the action.
actor: User ID who initiated the action.
entity: ID of the target entity of the action (such as a channel, workspace, organization, file).
cursor: The next page cursor of pagination
additional_query_params: Add anything else if you need to use the ones this library does not support
headers: Additional request headers

Expand All @@ -1013,6 +1027,7 @@ <h2 id="returns">Returns</h2>
&#34;action&#34;: action,
&#34;actor&#34;: actor,
&#34;entity&#34;: entity,
&#34;cursor&#34;: cursor,
}
if additional_query_params is not None:
query_params.update(additional_query_params)
Expand Down
Loading

0 comments on commit 5bb8cce

Please sign in to comment.