Skip to content

Commit

Permalink
Release 0.3.8 (#119)
Browse files Browse the repository at this point in the history
* Release 0.3.8

* add emptyline@EOF in all doc files

* fix date of release
  • Loading branch information
kacperf531 authored Nov 30, 2023
1 parent de0f457 commit eef9476
Show file tree
Hide file tree
Showing 30 changed files with 255 additions and 69 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Change Log
All notable changes to this project will be documented in this file.

## [0.3.8] - TBA
## [0.3.8] - 2023-11-30

### Added
- Support for `logout` method in agent-api v3.6 web class.
Expand Down
2 changes: 1 addition & 1 deletion docs/agent/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ <h1>Index</h1>
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
</footer>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/agent/rtm/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ <h1>Index</h1>
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
</footer>
</body>
</html>
</html>
29 changes: 23 additions & 6 deletions docs/agent/rtm/api/v33.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 class="title">Module <code>livechat.agent.rtm.api.v33</code></h1>
</summary>
<pre><code class="python">&#39;&#39;&#39; Module containing Agent RTM API client implementation for v3.3. &#39;&#39;&#39;

from typing import Any
from typing import Any, Optional

from livechat.utils.helpers import prepare_payload
from livechat.utils.structures import RtmResponse
Expand Down Expand Up @@ -385,6 +385,7 @@ <h1 class="title">Module <code>livechat.agent.rtm.api.v33</code></h1>
chat_id: str = None,
event: dict = None,
attach_to_last_thread: bool = None,
author_id: Optional[str] = None,
payload: dict = None) -&gt; RtmResponse:
&#39;&#39;&#39; Sends an Event object.

Expand All @@ -393,16 +394,20 @@ <h1 class="title">Module <code>livechat.agent.rtm.api.v33</code></h1>
event (dict): Event object.
attach_to_last_thread (bool): Flag which states if event object should be added to last thread.
The flag is ignored for active chats.
author_id (optional str): Provide if the event should be sent on behalf of a bot.
payload (dict): Custom payload to be used as request&#39;s data.
It overrides all other parameters provided for the method.

Returns:
RtmResponse: RTM response structure (`request_id`, `action`,
`type`, `success` and `payload` properties)
&#39;&#39;&#39;
opts = {}
if author_id:
opts[&#39;author_id&#39;] = author_id
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})

def send_rich_message_postback(self,
chat_id: str = None,
Expand Down Expand Up @@ -1394,6 +1399,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
chat_id: str = None,
event: dict = None,
attach_to_last_thread: bool = None,
author_id: Optional[str] = None,
payload: dict = None) -&gt; RtmResponse:
&#39;&#39;&#39; Sends an Event object.

Expand All @@ -1402,16 +1408,20 @@ <h2 class="section-title" id="header-classes">Classes</h2>
event (dict): Event object.
attach_to_last_thread (bool): Flag which states if event object should be added to last thread.
The flag is ignored for active chats.
author_id (optional str): Provide if the event should be sent on behalf of a bot.
payload (dict): Custom payload to be used as request&#39;s data.
It overrides all other parameters provided for the method.

Returns:
RtmResponse: RTM response structure (`request_id`, `action`,
`type`, `success` and `payload` properties)
&#39;&#39;&#39;
opts = {}
if author_id:
opts[&#39;author_id&#39;] = author_id
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})

def send_rich_message_postback(self,
chat_id: str = None,
Expand Down Expand Up @@ -3411,7 +3421,7 @@ <h2 id="returns">Returns</h2>
</details>
</dd>
<dt id="livechat.agent.rtm.api.v33.AgentRtmV33.send_event"><code class="name flex">
<span>def <span class="ident">send_event</span></span>(<span>self, chat_id: str = None, event: dict = None, attach_to_last_thread: bool = None, payload: dict = None) ‑> livechat.utils.structures.RtmResponse</span>
<span>def <span class="ident">send_event</span></span>(<span>self, chat_id: str = None, event: dict = None, attach_to_last_thread: bool = None, author_id: Optional[str] = None, payload: dict = None) ‑> livechat.utils.structures.RtmResponse</span>
</code></dt>
<dd>
<div class="desc"><p>Sends an Event object.</p>
Expand All @@ -3424,6 +3434,8 @@ <h2 id="args">Args</h2>
<dt><strong><code>attach_to_last_thread</code></strong> :&ensp;<code>bool</code></dt>
<dd>Flag which states if event object should be added to last thread.
The flag is ignored for active chats.</dd>
<dt><strong><code>author_id</code></strong> :&ensp;<code>optional str</code></dt>
<dd>Provide if the event should be sent on behalf of a bot.</dd>
<dt><strong><code>payload</code></strong> :&ensp;<code>dict</code></dt>
<dd>Custom payload to be used as request's data.
It overrides all other parameters provided for the method.</dd>
Expand All @@ -3442,6 +3454,7 @@ <h2 id="returns">Returns</h2>
chat_id: str = None,
event: dict = None,
attach_to_last_thread: bool = None,
author_id: Optional[str] = None,
payload: dict = None) -&gt; RtmResponse:
&#39;&#39;&#39; Sends an Event object.

Expand All @@ -3450,16 +3463,20 @@ <h2 id="returns">Returns</h2>
event (dict): Event object.
attach_to_last_thread (bool): Flag which states if event object should be added to last thread.
The flag is ignored for active chats.
author_id (optional str): Provide if the event should be sent on behalf of a bot.
payload (dict): Custom payload to be used as request&#39;s data.
It overrides all other parameters provided for the method.

Returns:
RtmResponse: RTM response structure (`request_id`, `action`,
`type`, `success` and `payload` properties)
&#39;&#39;&#39;
opts = {}
if author_id:
opts[&#39;author_id&#39;] = author_id
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})</code></pre>
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})</code></pre>
</details>
</dd>
<dt id="livechat.agent.rtm.api.v33.AgentRtmV33.send_rich_message_postback"><code class="name flex">
Expand Down Expand Up @@ -4252,4 +4269,4 @@ <h4><code><a title="livechat.agent.rtm.api.v33.AgentRtmV33" href="#livechat.agen
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
</footer>
</body>
</html>
</html>
29 changes: 23 additions & 6 deletions docs/agent/rtm/api/v34.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 class="title">Module <code>livechat.agent.rtm.api.v34</code></h1>
</summary>
<pre><code class="python">&#39;&#39;&#39; Module containing Agent RTM API client implementation for v3.4. &#39;&#39;&#39;

from typing import Any
from typing import Any, Optional

from livechat.utils.helpers import prepare_payload
from livechat.utils.structures import RtmResponse
Expand Down Expand Up @@ -351,6 +351,7 @@ <h1 class="title">Module <code>livechat.agent.rtm.api.v34</code></h1>
chat_id: str = None,
event: dict = None,
attach_to_last_thread: bool = None,
author_id: Optional[str] = None,
payload: dict = None) -&gt; RtmResponse:
&#39;&#39;&#39; Sends an Event object.

Expand All @@ -359,16 +360,20 @@ <h1 class="title">Module <code>livechat.agent.rtm.api.v34</code></h1>
event (dict): Event object.
attach_to_last_thread (bool): Flag which states if event object should be added to last thread.
The flag is ignored for active chats.
author_id (optional str): Provide if the event should be sent on behalf of a bot.
payload (dict): Custom payload to be used as request&#39;s data.
It overrides all other parameters provided for the method.

Returns:
RtmResponse: RTM response structure (`request_id`, `action`,
`type`, `success` and `payload` properties)
&#39;&#39;&#39;
opts = {}
if author_id:
opts[&#39;author_id&#39;] = author_id
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})

def send_rich_message_postback(self,
chat_id: str = None,
Expand Down Expand Up @@ -1326,6 +1331,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
chat_id: str = None,
event: dict = None,
attach_to_last_thread: bool = None,
author_id: Optional[str] = None,
payload: dict = None) -&gt; RtmResponse:
&#39;&#39;&#39; Sends an Event object.

Expand All @@ -1334,16 +1340,20 @@ <h2 class="section-title" id="header-classes">Classes</h2>
event (dict): Event object.
attach_to_last_thread (bool): Flag which states if event object should be added to last thread.
The flag is ignored for active chats.
author_id (optional str): Provide if the event should be sent on behalf of a bot.
payload (dict): Custom payload to be used as request&#39;s data.
It overrides all other parameters provided for the method.

Returns:
RtmResponse: RTM response structure (`request_id`, `action`,
`type`, `success` and `payload` properties)
&#39;&#39;&#39;
opts = {}
if author_id:
opts[&#39;author_id&#39;] = author_id
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})

def send_rich_message_postback(self,
chat_id: str = None,
Expand Down Expand Up @@ -3265,7 +3275,7 @@ <h2 id="returns">Returns</h2>
</details>
</dd>
<dt id="livechat.agent.rtm.api.v34.AgentRtmV34.send_event"><code class="name flex">
<span>def <span class="ident">send_event</span></span>(<span>self, chat_id: str = None, event: dict = None, attach_to_last_thread: bool = None, payload: dict = None) ‑> livechat.utils.structures.RtmResponse</span>
<span>def <span class="ident">send_event</span></span>(<span>self, chat_id: str = None, event: dict = None, attach_to_last_thread: bool = None, author_id: Optional[str] = None, payload: dict = None) ‑> livechat.utils.structures.RtmResponse</span>
</code></dt>
<dd>
<div class="desc"><p>Sends an Event object.</p>
Expand All @@ -3278,6 +3288,8 @@ <h2 id="args">Args</h2>
<dt><strong><code>attach_to_last_thread</code></strong> :&ensp;<code>bool</code></dt>
<dd>Flag which states if event object should be added to last thread.
The flag is ignored for active chats.</dd>
<dt><strong><code>author_id</code></strong> :&ensp;<code>optional str</code></dt>
<dd>Provide if the event should be sent on behalf of a bot.</dd>
<dt><strong><code>payload</code></strong> :&ensp;<code>dict</code></dt>
<dd>Custom payload to be used as request's data.
It overrides all other parameters provided for the method.</dd>
Expand All @@ -3296,6 +3308,7 @@ <h2 id="returns">Returns</h2>
chat_id: str = None,
event: dict = None,
attach_to_last_thread: bool = None,
author_id: Optional[str] = None,
payload: dict = None) -&gt; RtmResponse:
&#39;&#39;&#39; Sends an Event object.

Expand All @@ -3304,16 +3317,20 @@ <h2 id="returns">Returns</h2>
event (dict): Event object.
attach_to_last_thread (bool): Flag which states if event object should be added to last thread.
The flag is ignored for active chats.
author_id (optional str): Provide if the event should be sent on behalf of a bot.
payload (dict): Custom payload to be used as request&#39;s data.
It overrides all other parameters provided for the method.

Returns:
RtmResponse: RTM response structure (`request_id`, `action`,
`type`, `success` and `payload` properties)
&#39;&#39;&#39;
opts = {}
if author_id:
opts[&#39;author_id&#39;] = author_id
if payload is None:
payload = prepare_payload(locals())
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})</code></pre>
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})</code></pre>
</details>
</dd>
<dt id="livechat.agent.rtm.api.v34.AgentRtmV34.send_rich_message_postback"><code class="name flex">
Expand Down Expand Up @@ -4108,4 +4125,4 @@ <h4><code><a title="livechat.agent.rtm.api.v34.AgentRtmV34" href="#livechat.agen
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
</footer>
</body>
</html>
</html>
Loading

0 comments on commit eef9476

Please sign in to comment.