Skip to content

Commit c398477

Browse files
committed
Add new changes from latest spec updates part 2
1 parent daefa36 commit c398477

20 files changed

+486
-12
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ docs/CallDirection.md
2222
docs/CallEndedReason.md
2323
docs/CallList.md
2424
docs/CallResult.md
25+
docs/CallResultAllOfSubresourceUris.md
2526
docs/CallStatus.md
2627
docs/CallStatusWebhook.md
2728
docs/Capabilities.md
@@ -187,6 +188,7 @@ freeclimb/models/call_direction.py
187188
freeclimb/models/call_ended_reason.py
188189
freeclimb/models/call_list.py
189190
freeclimb/models/call_result.py
191+
freeclimb/models/call_result_all_of_subresource_uris.py
190192
freeclimb/models/call_status.py
191193
freeclimb/models/call_status_webhook.py
192194
freeclimb/models/capabilities.py
@@ -350,6 +352,7 @@ test/test_call_direction.py
350352
test/test_call_ended_reason.py
351353
test/test_call_list.py
352354
test/test_call_result.py
355+
test/test_call_result_all_of_subresource_uris.py
353356
test/test_call_status.py
354357
test/test_call_status_webhook.py
355358
test/test_capabilities.py

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ Class | Method | HTTP request | Description
210210
- [CallEndedReason](docs/CallEndedReason.md)
211211
- [CallList](docs/CallList.md)
212212
- [CallResult](docs/CallResult.md)
213+
- [CallResultAllOfSubresourceUris](docs/CallResultAllOfSubresourceUris.md)
213214
- [CallStatus](docs/CallStatus.md)
214215
- [CallStatusWebhook](docs/CallStatusWebhook.md)
215216
- [Capabilities](docs/Capabilities.md)

docs/AvailableNumber.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**capabilities** | [**Capabilities**](Capabilities.md) | | [optional]
99
**campaign_id** | **str** | The campaign ID generated by the campaign registry | [optional]
1010
**phone_number** | **str** | The phone number, in E.164 format (+ country code and phone number: +18003608245). | [optional]
11+
**alias** | **str** | A nicely-formatted version of the phone number. | [optional]
1112
**region** | **str** | The state or province of this phone number. | [optional]
1213
**country** | **str** | The country of this phone number. | [optional]
1314

docs/CallResult.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
99
**date_created** | **str** | The date that this resource was created (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). | [optional]
1010
**date_updated** | **str** | The date that this resource was last updated (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). | [optional]
1111
**revision** | **int** | Revision count for the resource. This count is set to 1 on creation and is incremented every time it is updated. | [optional]
12+
**date_created_iso** | **datetime** | The date that this resource was created in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). | [optional]
13+
**date_updated_iso** | **datetime** | The date that this resource was last updated in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). | [optional]
1214
**call_id** | **str** | String that uniquely identifies this Call resource. | [optional]
1315
**parent_call_id** | **str** | ID of the Call that created this leg (child Call). | [optional]
1416
**account_id** | **str** | ID of the account that owns this Call. | [optional]
@@ -17,14 +19,19 @@ Name | Type | Description | Notes
1719
**phone_number_id** | **str** | If the Call was inbound, this is the ID of the IncomingPhoneNumber that received the Call (DNIS). If the Call was outbound, this is the ID of the phone number from which the Call was placed (ANI). | [optional]
1820
**status** | [**CallStatus**](CallStatus.md) | | [optional]
1921
**start_time** | **str** | Start time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed. | [optional]
22+
**start_time_iso** | **datetime** | Start time of the Call in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). Empty if the Call has not yet been dialed. | [optional]
2023
**connect_time** | **str** | Time the Call was answered (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed. | [optional]
24+
**connect_time_iso** | **datetime** | Time the Call was answered in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). Empty if the Call has not yet been dialed. | [optional]
2125
**end_time** | **str** | End time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call did not complete successfully. | [optional]
26+
**end_time_iso** | **datetime** | End time of the Call in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). Empty if the Call did not complete successfully. | [optional]
2227
**duration** | **int** | Total length of the Call in seconds. Measures time between startTime and endTime. This value is empty for busy, failed, unanswered or ongoing Calls. | [optional]
2328
**connect_duration** | **int** | Length of time that the Call was connected in seconds. Measures time between connectTime and endTime. This value is empty for busy, failed, unanswered or ongoing Calls. | [optional]
2429
**audio_stream_duration** | **int** | Length of time that the Call used the audio stream in seconds. This value is empty or zero when the Call did not use the audio stream. | [optional]
2530
**direction** | [**CallDirection**](CallDirection.md) | | [optional]
2631
**answered_by** | [**AnsweredBy**](AnsweredBy.md) | | [optional]
27-
**subresource_uris** | **object** | The list of subresources for this Call. These include things like logs and recordings associated with the Call. | [optional]
32+
**caller_name** | **str** | The caller ID name (CNAM) for this Call. Empty if unavailable. | [optional]
33+
**web_rtc** | **bool** | Indicates whether this Call was initiated via WebRTC. | [optional]
34+
**subresource_uris** | [**CallResultAllOfSubresourceUris**](CallResultAllOfSubresourceUris.md) | | [optional]
2835
**application_id** | **str** | ApplicationId associated with the Call. | [optional]
2936

3037
## Example
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# CallResultAllOfSubresourceUris
2+
3+
The list of subresources for this Call. These include things like logs and recordings associated with the Call.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**logs** | **str** | The URI for the logs associated with this Call. | [optional]
10+
**recordings** | **str** | The URI for the recordings associated with this Call. | [optional]
11+
12+
## Example
13+
14+
```python
15+
from freeclimb.models.call_result_all_of_subresource_uris import CallResultAllOfSubresourceUris
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of CallResultAllOfSubresourceUris from a JSON string
20+
call_result_all_of_subresource_uris_instance = CallResultAllOfSubresourceUris.from_json(json)
21+
# print the JSON string representation of the object
22+
print(CallResultAllOfSubresourceUris.to_json())
23+
24+
# convert the object into a dict
25+
call_result_all_of_subresource_uris_dict = call_result_all_of_subresource_uris_instance.to_dict()
26+
# create an instance of CallResultAllOfSubresourceUris from a dict
27+
call_result_all_of_subresource_uris_from_dict = CallResultAllOfSubresourceUris.from_dict(call_result_all_of_subresource_uris_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/DefaultApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3668,7 +3668,7 @@ Name | Type | Description | Notes
36683668
[[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)
36693669

36703670
# **list_calls**
3671-
> CallList list_calls(account_id, used_audio_stream=used_audio_stream, active=active, to=to, var_from=var_from, status=status, start_time=start_time, end_time=end_time, parent_call_id=parent_call_id, application_id=application_id, risk_score_min=risk_score_min, risk_score_max=risk_score_max)
3671+
> CallList list_calls(account_id, used_audio_stream=used_audio_stream, active=active, to=to, var_from=var_from, status=status, start_time=start_time, end_time=end_time, parent_call_id=parent_call_id, application_id=application_id, risk_score_min=risk_score_min, risk_score_max=risk_score_max, web_rtc=web_rtc)
36723672
36733673
List Calls
36743674

@@ -3716,10 +3716,11 @@ with freeclimb.ApiClient(configuration) as api_client:
37163716
application_id = ['application_id_example'] # List[str] | Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
37173717
risk_score_min = 56 # int | The minimum riskScore that should be included in the list. (optional)
37183718
risk_score_max = 56 # int | The maximum riskScore that should be included in the list. (optional)
3719+
web_rtc = False # bool | Only show Calls that were originated via WebRTC. (optional) (default to False)
37193720

37203721
try:
37213722
# List Calls
3722-
api_response = api_instance.list_calls(account_id, used_audio_stream=used_audio_stream, active=active, to=to, var_from=var_from, status=status, start_time=start_time, end_time=end_time, parent_call_id=parent_call_id, application_id=application_id, risk_score_min=risk_score_min, risk_score_max=risk_score_max)
3723+
api_response = api_instance.list_calls(account_id, used_audio_stream=used_audio_stream, active=active, to=to, var_from=var_from, status=status, start_time=start_time, end_time=end_time, parent_call_id=parent_call_id, application_id=application_id, risk_score_min=risk_score_min, risk_score_max=risk_score_max, web_rtc=web_rtc)
37233724
print("The response of DefaultApi->list_calls:\n")
37243725
pprint(api_response)
37253726
except Exception as e:
@@ -3745,6 +3746,7 @@ Name | Type | Description | Notes
37453746
**application_id** | [**List[str]**](str.md)| Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. | [optional]
37463747
**risk_score_min** | **int**| The minimum riskScore that should be included in the list. | [optional]
37473748
**risk_score_max** | **int**| The maximum riskScore that should be included in the list. | [optional]
3749+
**web_rtc** | **bool**| Only show Calls that were originated via WebRTC. | [optional] [default to False]
37483750

37493751
### Return type
37503752

docs/QueueResult.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**max_size** | **int** | The maximum number of Calls permitted in the Queue. Default is 100. Maximum is 1000. | [optional]
1616
**current_size** | **int** | Count of Calls currently in the Queue. | [optional]
1717
**average_queue_removal_time** | **int** | The average amount of time (in seconds) for a call to be removed from the queue. | [optional]
18+
**average_wait_time** | **int** | The average wait time (in seconds) of all Calls in the Queue. | [optional]
1819
**subresource_uris** | **object** | List of subresources for this Queue (which includes Queue members). | [optional]
1920

2021
## Example

freeclimb/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
from freeclimb.models.call_ended_reason import CallEndedReason as CallEndedReason
6767
from freeclimb.models.call_list import CallList as CallList
6868
from freeclimb.models.call_result import CallResult as CallResult
69+
from freeclimb.models.call_result_all_of_subresource_uris import (
70+
CallResultAllOfSubresourceUris as CallResultAllOfSubresourceUris,
71+
)
6972
from freeclimb.models.call_status import CallStatus as CallStatus
7073
from freeclimb.models.call_status_webhook import CallStatusWebhook as CallStatusWebhook
7174
from freeclimb.models.capabilities import Capabilities as Capabilities

freeclimb/api/default_api.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12519,6 +12519,10 @@ def list_calls(
1251912519
description="The maximum riskScore that should be included in the list."
1252012520
),
1252112521
] = None,
12522+
web_rtc: Annotated[
12523+
Optional[StrictBool],
12524+
Field(description="Only show Calls that were originated via WebRTC."),
12525+
] = None,
1252212526
_request_timeout: Union[
1252312527
None,
1252412528
Annotated[StrictFloat, Field(gt=0)],
@@ -12567,6 +12571,9 @@ def list_calls(
1256712571
:param risk_score_max: The maximum riskScore that should be included in the list.
1256812572
:type risk_score_max: int
1256912573

12574+
:param web_rtc: Only show Calls that were originated via WebRTC.
12575+
:type web_rtc: bool
12576+
1257012577
:param _request_timeout: timeout setting for this request. If one
1257112578
number provided, it will be total request
1257212579
timeout. It can also be a pair (tuple) of
@@ -12603,6 +12610,7 @@ def list_calls(
1260312610
application_id=application_id,
1260412611
risk_score_min=risk_score_min,
1260512612
risk_score_max=risk_score_max,
12613+
web_rtc=web_rtc,
1260612614
_request_auth=_request_auth,
1260712615
_content_type=_content_type,
1260812616
_headers=_headers,
@@ -12688,6 +12696,10 @@ def list_calls_with_http_info(
1268812696
description="The maximum riskScore that should be included in the list."
1268912697
),
1269012698
] = None,
12699+
web_rtc: Annotated[
12700+
Optional[StrictBool],
12701+
Field(description="Only show Calls that were originated via WebRTC."),
12702+
] = None,
1269112703
_request_timeout: Union[
1269212704
None,
1269312705
Annotated[StrictFloat, Field(gt=0)],
@@ -12736,6 +12748,9 @@ def list_calls_with_http_info(
1273612748
:param risk_score_max: The maximum riskScore that should be included in the list.
1273712749
:type risk_score_max: int
1273812750

12751+
:param web_rtc: Only show Calls that were originated via WebRTC.
12752+
:type web_rtc: bool
12753+
1273912754
:param _request_timeout: timeout setting for this request. If one
1274012755
number provided, it will be total request
1274112756
timeout. It can also be a pair (tuple) of
@@ -12772,6 +12787,7 @@ def list_calls_with_http_info(
1277212787
application_id=application_id,
1277312788
risk_score_min=risk_score_min,
1277412789
risk_score_max=risk_score_max,
12790+
web_rtc=web_rtc,
1277512791
_request_auth=_request_auth,
1277612792
_content_type=_content_type,
1277712793
_headers=_headers,
@@ -12857,6 +12873,10 @@ def list_calls_without_preload_content(
1285712873
description="The maximum riskScore that should be included in the list."
1285812874
),
1285912875
] = None,
12876+
web_rtc: Annotated[
12877+
Optional[StrictBool],
12878+
Field(description="Only show Calls that were originated via WebRTC."),
12879+
] = None,
1286012880
_request_timeout: Union[
1286112881
None,
1286212882
Annotated[StrictFloat, Field(gt=0)],
@@ -12905,6 +12925,9 @@ def list_calls_without_preload_content(
1290512925
:param risk_score_max: The maximum riskScore that should be included in the list.
1290612926
:type risk_score_max: int
1290712927

12928+
:param web_rtc: Only show Calls that were originated via WebRTC.
12929+
:type web_rtc: bool
12930+
1290812931
:param _request_timeout: timeout setting for this request. If one
1290912932
number provided, it will be total request
1291012933
timeout. It can also be a pair (tuple) of
@@ -12941,6 +12964,7 @@ def list_calls_without_preload_content(
1294112964
application_id=application_id,
1294212965
risk_score_min=risk_score_min,
1294312966
risk_score_max=risk_score_max,
12967+
web_rtc=web_rtc,
1294412968
_request_auth=_request_auth,
1294512969
_content_type=_content_type,
1294612970
_headers=_headers,
@@ -12969,6 +12993,7 @@ def _list_calls_serialize(
1296912993
application_id,
1297012994
risk_score_min,
1297112995
risk_score_max,
12996+
web_rtc,
1297212997
_request_auth,
1297312998
_content_type,
1297412999
_headers,
@@ -13038,6 +13063,10 @@ def _list_calls_serialize(
1303813063

1303913064
_query_params.append(("riskScoreMax", risk_score_max))
1304013065

13066+
if web_rtc is not None:
13067+
13068+
_query_params.append(("webRTC", web_rtc))
13069+
1304113070
# process the header parameters
1304213071
# process the form parameters
1304313072
# process the body parameter

freeclimb/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
from freeclimb.models.call_ended_reason import CallEndedReason as CallEndedReason
5050
from freeclimb.models.call_list import CallList as CallList
5151
from freeclimb.models.call_result import CallResult as CallResult
52+
from freeclimb.models.call_result_all_of_subresource_uris import (
53+
CallResultAllOfSubresourceUris as CallResultAllOfSubresourceUris,
54+
)
5255
from freeclimb.models.call_status import CallStatus as CallStatus
5356
from freeclimb.models.call_status_webhook import CallStatusWebhook as CallStatusWebhook
5457
from freeclimb.models.capabilities import Capabilities as Capabilities

0 commit comments

Comments
 (0)