Skip to content

Commit bd0b3f4

Browse files
authored
Resolve VCSWP-20150 (Update SDKs for new Transcribe Utterance Percl command) (#42)
* Include Transcribe Utterance feature into Python SDK * Add new tests for the new Transcribe Utterance Feature for the python sdk * Update CHANGELOG file * Fix formatting of file as per PR comments
1 parent fbb4663 commit bd0b3f4

15 files changed

+818
-7
lines changed

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ docs/SmsAllOf.md
131131
docs/StartRecordCall.md
132132
docs/TerminateConference.md
133133
docs/TerminateConferenceAllOf.md
134+
docs/TranscribeUtterance.md
135+
docs/TranscribeUtteranceRecord.md
134136
docs/Unpark.md
135137
docs/UpdateCallRequest.md
136138
docs/UpdateCallRequestStatus.md
@@ -276,6 +278,8 @@ freeclimb/model/sms_ten_dlc_partner_campaigns_list_result_all_of.py
276278
freeclimb/model/start_record_call.py
277279
freeclimb/model/terminate_conference.py
278280
freeclimb/model/terminate_conference_all_of.py
281+
freeclimb/model/transcribe_utterance.py
282+
freeclimb/model/transcribe_utterance_record.py
279283
freeclimb/model/unpark.py
280284
freeclimb/model/update_call_request.py
281285
freeclimb/model/update_call_request_status.py
@@ -289,4 +293,6 @@ requirements.txt
289293
setup.cfg
290294
setup.py
291295
test/__init__.py
296+
test/test_transcribe_utterance.py
297+
test/test_transcribe_utterance_record.py
292298
tox.ini

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,21 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
99

1010
None
1111

12+
<a name="4.5.0"></a>
13+
14+
## [4.5.0] - 2023-08-15
15+
16+
### Added
17+
18+
- Transcribe Utterance Feature
19+
1220
<a name="4.4.3"></a>
1321

1422
## [4.4.3] - 2023-08-24
1523

16-
### Changed
24+
### Changed
1725

18-
- Removed testing for properties with 'x-max-length-*' vendor extension
26+
- Removed testing for properties with 'x-max-length-\*' vendor extension
1927

2028
### Added
2129

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FreeClimb is a cloud-based application programming interface (API) that puts the
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 1.0.0
7-
- Package version: 4.4.3
7+
- Package version: 4.5.0
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://www.freeclimb.com/support/](https://www.freeclimb.com/support/)
1010

@@ -314,6 +314,8 @@ Class | Method | HTTP request | Description
314314
- [StartRecordCall](docs/StartRecordCall.md)
315315
- [TerminateConference](docs/TerminateConference.md)
316316
- [TerminateConferenceAllOf](docs/TerminateConferenceAllOf.md)
317+
- [TranscribeUtterance](docs/TranscribeUtterance.md)
318+
- [TranscribeUtteranceRecord](docs/TranscribeUtteranceRecord.md)
317319
- [Unpark](docs/Unpark.md)
318320
- [UpdateCallRequest](docs/UpdateCallRequest.md)
319321
- [UpdateCallRequestStatus](docs/UpdateCallRequestStatus.md)

docs/TranscribeUtterance.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# TranscribeUtterance
2+
3+
The `TranscribeUtterance` command transcribes the caller’s voice and returns transcription of the audio and optionally returns the recording of the audio transcribed. `TranscribeUtterance` is blocking and is a terminal command. As such, the actionUrl property is required, and control of the Call picks up using the `PerCL` returned in response of the `actionUrl`. Recording and Transcription information is returned in the actionUrl request. If the reason this command ended was due to the call hanging up, any PerCL returned will not execute.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**action_url** | **str** | |
8+
**play_beep** | **bool** | | [optional] if omitted the server will use the default value of False
9+
**record** | [**TranscribeUtteranceRecord**](TranscribeUtteranceRecord.md) | | [optional]
10+
**privacy_for_logging** | **bool** | | [optional] if omitted the server will use the default value of False
11+
**privacy_for_recording** | **bool** | | [optional] if omitted the server will use the default value of False
12+
**prompts** | **[bool, date, datetime, dict, float, int, list, str, none_type]** | | [optional]
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+

docs/TranscribeUtteranceRecord.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TranscribeUtteranceRecord
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**save_recording** | **bool** | | [optional] if omitted the server will use the default value of False
7+
**max_length_sec** | **int** | | [optional] if omitted the server will use the default value of 60
8+
**rcrd_termination_silence_time_ms** | **int** | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

freeclimb/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313

14-
__version__ = "4.4.3"
14+
__version__ = "4.5.0"
1515

1616
# import ApiClient
1717
from freeclimb.api_client import ApiClient
@@ -158,6 +158,8 @@
158158
from freeclimb.model.start_record_call import StartRecordCall
159159
from freeclimb.model.terminate_conference import TerminateConference
160160
from freeclimb.model.terminate_conference_all_of import TerminateConferenceAllOf
161+
from freeclimb.model.transcribe_utterance import TranscribeUtterance
162+
from freeclimb.model.transcribe_utterance_record import TranscribeUtteranceRecord
161163
from freeclimb.model.unpark import Unpark
162164
from freeclimb.model.update_call_request import UpdateCallRequest
163165
from freeclimb.model.update_call_request_status import UpdateCallRequestStatus

freeclimb/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers[header_name] = header_value
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'OpenAPI-Generator/4.4.3/python'
80+
self.user_agent = 'OpenAPI-Generator/4.5.0/python'
8181

8282
def __enter__(self):
8383
return self

freeclimb/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def to_debug_report(self):
405405
"OS: {env}\n"\
406406
"Python Version: {pyversion}\n"\
407407
"Version of the API: 1.0.0\n"\
408-
"SDK Package Version: 4.4.3".\
408+
"SDK Package Version: 4.5.0".\
409409
format(env=sys.platform, pyversion=sys.version)
410410

411411
def get_host_settings(self):

0 commit comments

Comments
 (0)