Skip to content

Commit eef9476

Browse files
authored
Release 0.3.8 (#119)
* Release 0.3.8 * add emptyline@EOF in all doc files * fix date of release
1 parent de0f457 commit eef9476

30 files changed

+255
-69
lines changed

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4-
## [0.3.8] - TBA
4+
## [0.3.8] - 2023-11-30
55

66
### Added
77
- Support for `logout` method in agent-api v3.6 web class.

docs/agent/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ <h1>Index</h1>
7575
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
7676
</footer>
7777
</body>
78-
</html>
78+
</html>

docs/agent/rtm/api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ <h1>Index</h1>
7777
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
7878
</footer>
7979
</body>
80-
</html>
80+
</html>

docs/agent/rtm/api/v33.html

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1 class="title">Module <code>livechat.agent.rtm.api.v33</code></h1>
2929
</summary>
3030
<pre><code class="python">&#39;&#39;&#39; Module containing Agent RTM API client implementation for v3.3. &#39;&#39;&#39;
3131

32-
from typing import Any
32+
from typing import Any, Optional
3333

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

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

399401
Returns:
400402
RtmResponse: RTM response structure (`request_id`, `action`,
401403
`type`, `success` and `payload` properties)
402404
&#39;&#39;&#39;
405+
opts = {}
406+
if author_id:
407+
opts[&#39;author_id&#39;] = author_id
403408
if payload is None:
404409
payload = prepare_payload(locals())
405-
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})
410+
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})
406411

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

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

14081415
Returns:
14091416
RtmResponse: RTM response structure (`request_id`, `action`,
14101417
`type`, `success` and `payload` properties)
14111418
&#39;&#39;&#39;
1419+
opts = {}
1420+
if author_id:
1421+
opts[&#39;author_id&#39;] = author_id
14121422
if payload is None:
14131423
payload = prepare_payload(locals())
1414-
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})
1424+
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})
14151425

14161426
def send_rich_message_postback(self,
14171427
chat_id: str = None,
@@ -3411,7 +3421,7 @@ <h2 id="returns">Returns</h2>
34113421
</details>
34123422
</dd>
34133423
<dt id="livechat.agent.rtm.api.v33.AgentRtmV33.send_event"><code class="name flex">
3414-
<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>
3424+
<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>
34153425
</code></dt>
34163426
<dd>
34173427
<div class="desc"><p>Sends an Event object.</p>
@@ -3424,6 +3434,8 @@ <h2 id="args">Args</h2>
34243434
<dt><strong><code>attach_to_last_thread</code></strong> :&ensp;<code>bool</code></dt>
34253435
<dd>Flag which states if event object should be added to last thread.
34263436
The flag is ignored for active chats.</dd>
3437+
<dt><strong><code>author_id</code></strong> :&ensp;<code>optional str</code></dt>
3438+
<dd>Provide if the event should be sent on behalf of a bot.</dd>
34273439
<dt><strong><code>payload</code></strong> :&ensp;<code>dict</code></dt>
34283440
<dd>Custom payload to be used as request's data.
34293441
It overrides all other parameters provided for the method.</dd>
@@ -3442,6 +3454,7 @@ <h2 id="returns">Returns</h2>
34423454
chat_id: str = None,
34433455
event: dict = None,
34443456
attach_to_last_thread: bool = None,
3457+
author_id: Optional[str] = None,
34453458
payload: dict = None) -&gt; RtmResponse:
34463459
&#39;&#39;&#39; Sends an Event object.
34473460

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

34563470
Returns:
34573471
RtmResponse: RTM response structure (`request_id`, `action`,
34583472
`type`, `success` and `payload` properties)
34593473
&#39;&#39;&#39;
3474+
opts = {}
3475+
if author_id:
3476+
opts[&#39;author_id&#39;] = author_id
34603477
if payload is None:
34613478
payload = prepare_payload(locals())
3462-
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})</code></pre>
3479+
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})</code></pre>
34633480
</details>
34643481
</dd>
34653482
<dt id="livechat.agent.rtm.api.v33.AgentRtmV33.send_rich_message_postback"><code class="name flex">
@@ -4252,4 +4269,4 @@ <h4><code><a title="livechat.agent.rtm.api.v33.AgentRtmV33" href="#livechat.agen
42524269
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
42534270
</footer>
42544271
</body>
4255-
</html>
4272+
</html>

docs/agent/rtm/api/v34.html

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1 class="title">Module <code>livechat.agent.rtm.api.v34</code></h1>
2929
</summary>
3030
<pre><code class="python">&#39;&#39;&#39; Module containing Agent RTM API client implementation for v3.4. &#39;&#39;&#39;
3131

32-
from typing import Any
32+
from typing import Any, Optional
3333

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

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

365367
Returns:
366368
RtmResponse: RTM response structure (`request_id`, `action`,
367369
`type`, `success` and `payload` properties)
368370
&#39;&#39;&#39;
371+
opts = {}
372+
if author_id:
373+
opts[&#39;author_id&#39;] = author_id
369374
if payload is None:
370375
payload = prepare_payload(locals())
371-
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})
376+
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})
372377

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

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

13401347
Returns:
13411348
RtmResponse: RTM response structure (`request_id`, `action`,
13421349
`type`, `success` and `payload` properties)
13431350
&#39;&#39;&#39;
1351+
opts = {}
1352+
if author_id:
1353+
opts[&#39;author_id&#39;] = author_id
13441354
if payload is None:
13451355
payload = prepare_payload(locals())
1346-
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})
1356+
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})
13471357

13481358
def send_rich_message_postback(self,
13491359
chat_id: str = None,
@@ -3265,7 +3275,7 @@ <h2 id="returns">Returns</h2>
32653275
</details>
32663276
</dd>
32673277
<dt id="livechat.agent.rtm.api.v34.AgentRtmV34.send_event"><code class="name flex">
3268-
<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>
3278+
<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>
32693279
</code></dt>
32703280
<dd>
32713281
<div class="desc"><p>Sends an Event object.</p>
@@ -3278,6 +3288,8 @@ <h2 id="args">Args</h2>
32783288
<dt><strong><code>attach_to_last_thread</code></strong> :&ensp;<code>bool</code></dt>
32793289
<dd>Flag which states if event object should be added to last thread.
32803290
The flag is ignored for active chats.</dd>
3291+
<dt><strong><code>author_id</code></strong> :&ensp;<code>optional str</code></dt>
3292+
<dd>Provide if the event should be sent on behalf of a bot.</dd>
32813293
<dt><strong><code>payload</code></strong> :&ensp;<code>dict</code></dt>
32823294
<dd>Custom payload to be used as request's data.
32833295
It overrides all other parameters provided for the method.</dd>
@@ -3296,6 +3308,7 @@ <h2 id="returns">Returns</h2>
32963308
chat_id: str = None,
32973309
event: dict = None,
32983310
attach_to_last_thread: bool = None,
3311+
author_id: Optional[str] = None,
32993312
payload: dict = None) -&gt; RtmResponse:
33003313
&#39;&#39;&#39; Sends an Event object.
33013314

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

33103324
Returns:
33113325
RtmResponse: RTM response structure (`request_id`, `action`,
33123326
`type`, `success` and `payload` properties)
33133327
&#39;&#39;&#39;
3328+
opts = {}
3329+
if author_id:
3330+
opts[&#39;author_id&#39;] = author_id
33143331
if payload is None:
33153332
payload = prepare_payload(locals())
3316-
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload})</code></pre>
3333+
return self.ws.send({&#39;action&#39;: &#39;send_event&#39;, &#39;payload&#39;: payload, **opts})</code></pre>
33173334
</details>
33183335
</dd>
33193336
<dt id="livechat.agent.rtm.api.v34.AgentRtmV34.send_rich_message_postback"><code class="name flex">
@@ -4108,4 +4125,4 @@ <h4><code><a title="livechat.agent.rtm.api.v34.AgentRtmV34" href="#livechat.agen
41084125
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
41094126
</footer>
41104127
</body>
4111-
</html>
4128+
</html>

0 commit comments

Comments
 (0)