Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Change Log

## [4.58.4](https://github.com/plivo/plivo-python/tree/v4.58.4) (2025-01-27)
- Role param validation enhancement in Multiparty Add Participant API and XML creation
- Added new param `cx_bot` in Start Stream API

## [4.58.3](https://github.com/plivo/plivo-python/tree/v4.58.3) (2025-01-14)
- Added `from_number` and `to_number` filter support for `list messages` API
-
Expand Down
3 changes: 2 additions & 1 deletion plivo/resources/calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ def start_stream(self,
status_callback_url=None,
status_callback_method=None,
content_type=None,
extra_headers=None):
extra_headers=None,
cx_bot=None):
return self.client.request('POST', ('Call', call_uuid, 'Stream'),
to_param_dict(self.start_stream,
locals()), is_voice_request=True)
Expand Down
2 changes: 1 addition & 1 deletion plivo/resources/multipartycall.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def get(self, uuid=None, friendly_name=None, callback_url=None, callback_method=
is_voice_request=True, response_type=MultiPartyCall)

@validate_args(
role=[of_type_exact(str), is_in(('agent', 'supervisor', 'customer'), case_sensitive=False, case_type='lower')],
role=[of_type_exact(str), is_in(('ai-agent', 'agent', 'supervisor', 'customer'), case_sensitive=False, case_type='lower')],
friendly_name=[optional(of_type_exact(str))],
uuid=[optional(of_type_exact(str))],
from_=[optional(is_phonenumber())],
Expand Down
2 changes: 1 addition & 1 deletion plivo/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '4.58.3'
__version__ = '4.58.4'
2 changes: 1 addition & 1 deletion plivo/xml/MultiPartyCallElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def role(self):
@validate_args(
role=[
of_type_exact(str),
is_in(('agent', 'supervisor', 'customer'), case_sensitive=False, case_type='lower')
is_in(('ai-agent', 'agent', 'supervisor', 'customer'), case_sensitive=False, case_type='lower')
]
)
def role(self, role):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='plivo',
version='4.58.3',
version='4.58.4',
description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML',
long_description=long_description,
url='https://github.com/plivo/plivo-python',
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/test_multipartycalls.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_add_participant_validations(self):
self.client.multi_party_calls.add_participant(role='manager')
except ValidationError as e:
error_message = str(e)
self.assertEqual(error_message, "[\"role should be in ('agent', 'supervisor', "
self.assertEqual(error_message, "[\"role should be in ('ai-agent', 'agent', 'supervisor', "
"'customer') (actual value: manager)\"]")

try:
Expand Down
Loading