Skip to content

Commit 801f33e

Browse files
committed
Add new changes from latest spec updates
1 parent 747fb36 commit 801f33e

18 files changed

+1036
-46
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ docs/CallDirection.md
2727
docs/CallEndedReason.md
2828
docs/CallList.md
2929
docs/CallResult.md
30+
docs/CallResultAllOfSubresourceUris.md
3031
docs/CallStatus.md
3132
docs/CallStatusWebhook.md
3233
docs/Capabilities.md
@@ -198,6 +199,7 @@ src/main/java/com/github/freeclimbapi/CallDirection.java
198199
src/main/java/com/github/freeclimbapi/CallEndedReason.java
199200
src/main/java/com/github/freeclimbapi/CallList.java
200201
src/main/java/com/github/freeclimbapi/CallResult.java
202+
src/main/java/com/github/freeclimbapi/CallResultAllOfSubresourceUris.java
201203
src/main/java/com/github/freeclimbapi/CallStatus.java
202204
src/main/java/com/github/freeclimbapi/CallStatusWebhook.java
203205
src/main/java/com/github/freeclimbapi/Capabilities.java
@@ -367,6 +369,7 @@ src/test/java/com/github/freeclimbapi/CallControlWebhookTest.java
367369
src/test/java/com/github/freeclimbapi/CallDirectionTest.java
368370
src/test/java/com/github/freeclimbapi/CallEndedReasonTest.java
369371
src/test/java/com/github/freeclimbapi/CallListTest.java
372+
src/test/java/com/github/freeclimbapi/CallResultAllOfSubresourceUrisTest.java
370373
src/test/java/com/github/freeclimbapi/CallResultTest.java
371374
src/test/java/com/github/freeclimbapi/CallStatusTest.java
372375
src/test/java/com/github/freeclimbapi/CallStatusWebhookTest.java

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ Class | Method | HTTP request | Description
237237
- [CallEndedReason](docs/CallEndedReason.md)
238238
- [CallList](docs/CallList.md)
239239
- [CallResult](docs/CallResult.md)
240+
- [CallResultAllOfSubresourceUris](docs/CallResultAllOfSubresourceUris.md)
240241
- [CallStatus](docs/CallStatus.md)
241242
- [CallStatusWebhook](docs/CallStatusWebhook.md)
242243
- [Capabilities](docs/Capabilities.md)

docs/AvailableNumber.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**capabilities** | [**Capabilities**](Capabilities.md) | | [optional]
1111
**campaignId** | **String** | The campaign ID generated by the campaign registry | [optional]
1212
**phoneNumber** | **String** | The phone number, in E.164 format (+ country code and phone number: +18003608245). | [optional]
13+
**alias** | **String** | A nicely-formatted version of the phone number. | [optional]
1314
**region** | **String** | The state or province of this phone number. | [optional]
1415
**country** | **String** | The country of this phone number. | [optional]
1516

docs/CallResult.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Name | Type | Description | Notes
1111
**dateCreated** | **String** | The date that this resource was created (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). | [optional]
1212
**dateUpdated** | **String** | The date that this resource was last updated (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). | [optional]
1313
**revision** | **Integer** | Revision count for the resource. This count is set to 1 on creation and is incremented every time it is updated. | [optional]
14+
**dateCreatedISO** | **OffsetDateTime** | The date that this resource was created in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). | [optional]
15+
**dateUpdatedISO** | **OffsetDateTime** | The date that this resource was last updated in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). | [optional]
1416
**callId** | **String** | String that uniquely identifies this Call resource. | [optional]
1517
**parentCallId** | **String** | ID of the Call that created this leg (child Call). | [optional]
1618
**accountId** | **String** | ID of the account that owns this Call. | [optional]
@@ -19,14 +21,19 @@ Name | Type | Description | Notes
1921
**phoneNumberId** | **String** | 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]
2022
**status** | **CallStatus** | | [optional]
2123
**startTime** | **String** | 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]
24+
**startTimeISO** | **OffsetDateTime** | 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]
2225
**connectTime** | **String** | 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]
26+
**connectTimeISO** | **OffsetDateTime** | 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]
2327
**endTime** | **String** | 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]
28+
**endTimeISO** | **OffsetDateTime** | 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]
2429
**duration** | **Integer** | 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]
2530
**connectDuration** | **Integer** | 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]
2631
**audioStreamDuration** | **Integer** | 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]
2732
**direction** | **CallDirection** | | [optional]
2833
**answeredBy** | **AnsweredBy** | | [optional]
29-
**subresourceUris** | **Object** | The list of subresources for this Call. These include things like logs and recordings associated with the Call. | [optional]
34+
**callerName** | **String** | The caller ID name (CNAM) for this Call. Empty if unavailable. | [optional]
35+
**webRTC** | **Boolean** | Indicates whether this Call was initiated via WebRTC. | [optional]
36+
**subresourceUris** | [**CallResultAllOfSubresourceUris**](CallResultAllOfSubresourceUris.md) | | [optional]
3037
**applicationId** | **String** | ApplicationId associated with the Call. | [optional]
3138

3239

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
# CallResultAllOfSubresourceUris
4+
5+
The list of subresources for this Call. These include things like logs and recordings associated with the Call.
6+
7+
## Properties
8+
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**logs** | **String** | The URI for the logs associated with this Call. | [optional]
12+
**recordings** | **String** | The URI for the recordings associated with this Call. | [optional]
13+
14+
15+

docs/DefaultApi.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,7 +3171,7 @@ Name | Type | Description | Notes
31713171

31723172
<a name="listCalls"></a>
31733173
# **listCalls**
3174-
> CallList listCalls(usedAudioStream, active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax)
3174+
> CallList listCalls(usedAudioStream, active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax, webRTC)
31753175

31763176
List Calls
31773177

@@ -3216,8 +3216,10 @@ public class Example {
32163216

32173217
Integer riskScoreMax = 56; // Integer | The maximum riskScore that should be included in the list.
32183218

3219+
Boolean webRTC = false; // Boolean | Only show Calls that were originated via WebRTC.
3220+
32193221
try {
3220-
CallList result = apiInstance.listCalls(usedAudioStream, active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax);
3222+
CallList result = apiInstance.listCalls(usedAudioStream, active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax, webRTC);
32213223
System.out.println(result);
32223224
} catch (ApiException e) {
32233225
System.err.println("Exception when calling DefaultApi#listCalls");
@@ -3245,6 +3247,7 @@ Name | Type | Description | Notes
32453247
**applicationId** | [**List&lt;String&gt;**](String.md)| Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. | [optional]
32463248
**riskScoreMin** | **Integer**| The minimum riskScore that should be included in the list. | [optional]
32473249
**riskScoreMax** | **Integer**| The maximum riskScore that should be included in the list. | [optional]
3250+
**webRTC** | **Boolean**| Only show Calls that were originated via WebRTC. | [optional] [default to false]
32483251

32493252

32503253
### Return type

docs/QueueResult.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
1717
**maxSize** | **Integer** | The maximum number of Calls permitted in the Queue. Default is 100. Maximum is 1000. | [optional]
1818
**currentSize** | **Integer** | Count of Calls currently in the Queue. | [optional]
1919
**averageQueueRemovalTime** | **Integer** | The average amount of time (in seconds) for a call to be removed from the queue. | [optional]
20+
**averageWaitTime** | **Integer** | The average wait time (in seconds) of all Calls in the Queue. | [optional]
2021
**subresourceUris** | **Object** | List of subresources for this Queue (which includes Queue members). | [optional]
2122

2223

openapi.json

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2935,6 +2935,11 @@
29352935
"description": "The phone number, in E.164 format (+ country code and phone number: +18003608245).",
29362936
"nullable": true
29372937
},
2938+
"alias": {
2939+
"type": "string",
2940+
"description": "A nicely-formatted version of the phone number.",
2941+
"nullable": true
2942+
},
29382943
"voiceEnabled": {
29392944
"type": "boolean",
29402945
"description": "Typically set to true for all numbers.",
@@ -3117,6 +3122,18 @@
31173122
{
31183123
"type": "object",
31193124
"properties": {
3125+
"dateCreatedISO": {
3126+
"type": "string",
3127+
"format": "date-time",
3128+
"description": "The date that this resource was created in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z).",
3129+
"nullable": true
3130+
},
3131+
"dateUpdatedISO": {
3132+
"type": "string",
3133+
"format": "date-time",
3134+
"description": "The date that this resource was last updated in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z).",
3135+
"nullable": true
3136+
},
31203137
"callId": {
31213138
"type": "string",
31223139
"description": "String that uniquely identifies this Call resource.",
@@ -3155,16 +3172,34 @@
31553172
"description": "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.",
31563173
"nullable": true
31573174
},
3175+
"startTimeISO": {
3176+
"type": "string",
3177+
"format": "date-time",
3178+
"description": "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.",
3179+
"nullable": true
3180+
},
31583181
"connectTime": {
31593182
"type": "string",
31603183
"description": "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.",
31613184
"nullable": true
31623185
},
3186+
"connectTimeISO": {
3187+
"type": "string",
3188+
"format": "date-time",
3189+
"description": "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.",
3190+
"nullable": true
3191+
},
31633192
"endTime": {
31643193
"type": "string",
31653194
"description": "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.",
31663195
"nullable": true
31673196
},
3197+
"endTimeISO": {
3198+
"type": "string",
3199+
"format": "date-time",
3200+
"description": "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.",
3201+
"nullable": true
3202+
},
31683203
"duration": {
31693204
"type": "integer",
31703205
"description": "Total length of the Call in seconds. Measures time between startTime and endTime. This value is empty for busy, failed, unanswered or ongoing Calls.",
@@ -3186,10 +3221,30 @@
31863221
"answeredBy": {
31873222
"$ref": "#/components/schemas/AnsweredBy"
31883223
},
3224+
"callerName": {
3225+
"type": "string",
3226+
"description": "The caller ID name (CNAM) for this Call. Empty if unavailable.",
3227+
"nullable": true
3228+
},
3229+
"webRTC": {
3230+
"type": "boolean",
3231+
"description": "Indicates whether this Call was initiated via WebRTC.",
3232+
"nullable": true
3233+
},
31893234
"subresourceUris": {
31903235
"type": "object",
31913236
"description": "The list of subresources for this Call. These include things like logs and recordings associated with the Call.",
3192-
"nullable": true
3237+
"nullable": true,
3238+
"properties": {
3239+
"logs": {
3240+
"type": "string",
3241+
"description": "The URI for the logs associated with this Call."
3242+
},
3243+
"recordings": {
3244+
"type": "string",
3245+
"description": "The URI for the recordings associated with this Call."
3246+
}
3247+
}
31933248
},
31943249
"applicationId": {
31953250
"type": "string",
@@ -3858,6 +3913,11 @@
38583913
"description": "The average amount of time (in seconds) for a call to be removed from the queue.",
38593914
"nullable": true
38603915
},
3916+
"averageWaitTime": {
3917+
"type": "integer",
3918+
"description": "The average wait time (in seconds) of all Calls in the Queue.",
3919+
"nullable": true
3920+
},
38613921
"subresourceUris": {
38623922
"type": "object",
38633923
"description": "List of subresources for this Queue (which includes Queue members).",
@@ -6117,6 +6177,16 @@
61176177
"schema": {
61186178
"type": "integer"
61196179
}
6180+
},
6181+
{
6182+
"name": "webRTC",
6183+
"in": "query",
6184+
"description": "Only show Calls that were originated via WebRTC.",
6185+
"required": false,
6186+
"schema": {
6187+
"type": "boolean",
6188+
"default": false
6189+
}
61206190
}
61216191
],
61226192
"deprecated": false,

0 commit comments

Comments
 (0)