Skip to content

Commit 1884cab

Browse files
authored
Resolve VCSWP-22702 (#50)
* Fix test files and SDK file auto-generation * Update version of SDK * Regenerate files due to openapi spec changes * Fix TranscribeUtterance description in openapi.json file * Update openapi.json file
1 parent 1e01822 commit 1884cab

File tree

145 files changed

+1060
-529
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+1060
-529
lines changed

.openapi-generator/FILES

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ docs/StartRecordCall.md
135135
docs/TFN.md
136136
docs/TerminateConference.md
137137
docs/TranscribeUtterance.md
138-
docs/TranscribeUtteranceRecord.md
138+
docs/TranscribeUtteranceAllOf.md
139+
docs/TranscribeUtteranceAllOfRecord.md
139140
docs/Unpark.md
140141
docs/UpdateCallRequest.md
141142
docs/UpdateCallRequestStatus.md
@@ -285,7 +286,8 @@ freeclimb/model/start_record_call.py
285286
freeclimb/model/terminate_conference.py
286287
freeclimb/model/tfn.py
287288
freeclimb/model/transcribe_utterance.py
288-
freeclimb/model/transcribe_utterance_record.py
289+
freeclimb/model/transcribe_utterance_all_of.py
290+
freeclimb/model/transcribe_utterance_all_of_record.py
289291
freeclimb/model/unpark.py
290292
freeclimb/model/update_call_request.py
291293
freeclimb/model/update_call_request_status.py
@@ -299,5 +301,4 @@ requirements.txt
299301
setup.cfg
300302
setup.py
301303
test/__init__.py
302-
test/test_default_api.py
303304
tox.ini

CHANGELOG.md

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

1010
None
1111

12+
<a name="4.6.1"></a>
13+
14+
## [4.6.1] - 2024-07-24
15+
16+
### Changed
17+
18+
- Fix test file format and some value updates, also fix SDK file auto-generation issue
19+
1220
<a name="4.6.0"></a>
1321

1422
## [4.6.0] - 2024-07-10

README.md

Lines changed: 3 additions & 2 deletions
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.6.0
7+
- Package version: 4.6.1
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

@@ -322,7 +322,8 @@ Class | Method | HTTP request | Description
322322
- [TFN](docs/TFN.md)
323323
- [TerminateConference](docs/TerminateConference.md)
324324
- [TranscribeUtterance](docs/TranscribeUtterance.md)
325-
- [TranscribeUtteranceRecord](docs/TranscribeUtteranceRecord.md)
325+
- [TranscribeUtteranceAllOf](docs/TranscribeUtteranceAllOf.md)
326+
- [TranscribeUtteranceAllOfRecord](docs/TranscribeUtteranceAllOfRecord.md)
326327
- [Unpark](docs/Unpark.md)
327328
- [UpdateCallRequest](docs/UpdateCallRequest.md)
328329
- [UpdateCallRequestStatus](docs/UpdateCallRequestStatus.md)

docs/DefaultApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,7 +3049,7 @@ Name | Type | Description | Notes
30493049
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
30503050

30513051
# **list_conference_recordings**
3052-
> RecordingList list_conference_recordings(account_id)
3052+
> RecordingList list_conference_recordings(account_id, conference_id)
30533053
30543054
List Conference Recordings
30553055

@@ -3085,14 +3085,14 @@ with freeclimb.ApiClient(configuration) as api_client:
30853085
# Create an instance of the API class
30863086
api_instance = default_api.DefaultApi(api_client)
30873087
account_id = "accountId_example" # str | ID of the account
3088+
conference_id = "conferenceId_example" # str | Show only Recordings made during the conference with this ID.
30883089
call_id = "callId_example" # str | Show only Recordings made during the Call with this ID. (optional)
3089-
conference_id = "conferenceId_example" # str | Show only Recordings made during the conference with this ID. (optional)
30903090
date_created = "dateCreated_example" # str | Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
30913091

30923092
# example passing only required values which don't have defaults set
30933093
try:
30943094
# List Conference Recordings
3095-
api_response = api_instance.list_conference_recordings()
3095+
api_response = api_instance.list_conference_recordings(conference_id)
30963096
pprint(api_response)
30973097
except freeclimb.ApiException as e:
30983098
print("Exception when calling DefaultApi->list_conference_recordings: %s\n" % e)
@@ -3101,7 +3101,7 @@ with freeclimb.ApiClient(configuration) as api_client:
31013101
# and optional values
31023102
try:
31033103
# List Conference Recordings
3104-
api_response = api_instance.list_conference_recordings(call_id=call_id, conference_id=conference_id, date_created=date_created)
3104+
api_response = api_instance.list_conference_recordings(conference_id, call_id=call_id, date_created=date_created)
31053105
pprint(api_response)
31063106
except freeclimb.ApiException as e:
31073107
print("Exception when calling DefaultApi->list_conference_recordings: %s\n" % e)
@@ -3112,8 +3112,8 @@ with freeclimb.ApiClient(configuration) as api_client:
31123112

31133113
Name | Type | Description | Notes
31143114
------------- | ------------- | ------------- | -------------
3115+
**conference_id** | **str**| Show only Recordings made during the conference with this ID. |
31153116
**call_id** | **str**| Show only Recordings made during the Call with this ID. | [optional]
3116-
**conference_id** | **str**| Show only Recordings made during the conference with this ID. | [optional]
31173117
**date_created** | **str**| Only show Recordings created on this date, formatted as *YYYY-MM-DD*. | [optional]
31183118

31193119
### Return type

docs/TranscribeUtterance.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**action_url** | **str** | |
88
**play_beep** | **bool** | | [optional] if omitted the server will use the default value of False
9-
**record** | [**TranscribeUtteranceRecord**](TranscribeUtteranceRecord.md) | | [optional]
9+
**record** | [**TranscribeUtteranceAllOfRecord**](TranscribeUtteranceAllOfRecord.md) | | [optional]
1010
**privacy_for_logging** | **bool** | | [optional] if omitted the server will use the default value of False
1111
**privacy_for_recording** | **bool** | | [optional] if omitted the server will use the default value of False
1212
**prompts** | **[bool, date, datetime, dict, float, int, list, str, none_type]** | | [optional]
13+
**command** | **str** | Name of PerCL Command (this is automatically derived from mapping configuration and should not be manually supplied in any arguments) | [optional]
1314

1415
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1516

docs/TranscribeUtteranceAllOf.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# TranscribeUtteranceAllOf
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** | [**TranscribeUtteranceAllOfRecord**](TranscribeUtteranceAllOfRecord.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+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TranscribeUtteranceAllOfRecord
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313

14-
__version__ = "4.6.0"
14+
__version__ = "4.6.1"
1515

1616
# import ApiClient
1717
from freeclimb.api_client import ApiClient
@@ -165,7 +165,8 @@
165165
from freeclimb.model.tfn import TFN
166166
from freeclimb.model.terminate_conference import TerminateConference
167167
from freeclimb.model.transcribe_utterance import TranscribeUtterance
168-
from freeclimb.model.transcribe_utterance_record import TranscribeUtteranceRecord
168+
from freeclimb.model.transcribe_utterance_all_of import TranscribeUtteranceAllOf
169+
from freeclimb.model.transcribe_utterance_all_of_record import TranscribeUtteranceAllOfRecord
169170
from freeclimb.model.unpark import Unpark
170171
from freeclimb.model.update_call_request import UpdateCallRequest
171172
from freeclimb.model.update_call_request_status import UpdateCallRequestStatus

freeclimb/api/default_api.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,12 +2273,13 @@ def __init__(self, api_client=None, account_id=None):
22732273
params_map={
22742274
'all': [
22752275
'account_id',
2276-
'call_id',
22772276
'conference_id',
2277+
'call_id',
22782278
'date_created',
22792279
],
22802280
'required': [
22812281
'account_id',
2282+
'conference_id',
22822283
],
22832284
'nullable': [
22842285
],
@@ -2295,23 +2296,23 @@ def __init__(self, api_client=None, account_id=None):
22952296
'openapi_types': {
22962297
'account_id':
22972298
(str,),
2298-
'call_id':
2299-
(str,),
23002299
'conference_id':
23012300
(str,),
2301+
'call_id':
2302+
(str,),
23022303
'date_created':
23032304
(str,),
23042305
},
23052306
'attribute_map': {
23062307
'account_id': 'accountId',
2307-
'call_id': 'callId',
23082308
'conference_id': 'conferenceId',
2309+
'call_id': 'callId',
23092310
'date_created': 'dateCreated',
23102311
},
23112312
'location_map': {
23122313
'account_id': 'path',
2314+
'conference_id': 'path',
23132315
'call_id': 'query',
2314-
'conference_id': 'query',
23152316
'date_created': 'query',
23162317
},
23172318
'collection_format_map': {
@@ -6698,24 +6699,28 @@ def list_calls(
66986699

66996700
def list_conference_recordings(
67006701
self,
6701-
6702+
conference_id,
67026703
**kwargs
67036704
):
67046705
"""List Conference Recordings # noqa: E501
67056706
67066707
This method makes a synchronous HTTP request by default. To make an
67076708
asynchronous HTTP request, please pass async_req=True
67086709
6709-
>>> thread = api.list_conference_recordings(async_req=True)
6710+
>>> thread = api.list_conference_recordings(conference_id, async_req=True)
67106711
>>> result = thread.get()
67116712
67126713
6714+
Args:
6715+
6716+
6717+
conference_id (str): Show only Recordings made during the conference with this ID.
6718+
67136719
67146720
67156721
67166722
Keyword Args:
67176723
call_id (str): Show only Recordings made during the Call with this ID.. [optional]
6718-
conference_id (str): Show only Recordings made during the conference with this ID.. [optional]
67196724
date_created (str): Only show Recordings created on this date, formatted as *YYYY-MM-DD*.. [optional]
67206725
_return_http_data_only (bool): response data without head status
67216726
code and headers. Default is True.
@@ -6776,6 +6781,9 @@ def list_conference_recordings(
67766781
kwargs['account_id'] = \
67776782
self.account_id
67786783

6784+
kwargs['conference_id'] = \
6785+
conference_id
6786+
67796787
return self.list_conference_recordings_endpoint.call_with_http_info(**kwargs)
67806788

67816789
def list_conferences(

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.6.0/python'
80+
self.user_agent = 'OpenAPI-Generator/4.6.1/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.6.0".\
408+
"SDK Package Version: 4.6.1".\
409409
format(env=sys.platform, pyversion=sys.version)
410410

411411
def get_host_settings(self):

0 commit comments

Comments
 (0)