8000 [Librarian] Regenerated @ 60ecdefbbef97861a931447f4c615fd12cc54767 · twilio/twilio-java@edd83ee · GitHub
[go: up one dir, main page]

Skip to content

Commit edd83ee

Browse files
committed
[Librarian] Regenerated @ 60ecdefbbef97861a931447f4c615fd12cc54767
1 parent 5803bf4 commit edd83ee

File tree

65 files changed

+3918
-952
lines changed

Some content is hidden

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

65 files changed

+3918
-952
lines changed

CHANGES.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
11
twilio-java changelog
22
=====================
33

4+
[2022-03-23] Version 8.28.0
5+
---------------------------
6+
**Api**
7+
- Change `stream` url parameter to non optional
8+
- Add `verify-totp` and `verify-whatsapp-conversations-business-initiated` categories to `usage_record` API
9+
10+
**Chat**
11+
- Added v3 Channel update endpoint to support Public to Private channel migration
12+
13+
**Flex**
14+
- Private Beta release of the Interactions API to support the upcoming release of Flex Conversations at the end of Q1 2022.
15+
- Adding `channel_configs` object to Flex Configuration
16+
17+
**Media**
18+
- Add max_duration param to PlayerStreamer
19+
20+
**Supersim**
21+
- Remove Commands resource, use SmsCommands resource instead **(breaking change)**
22+
23+
**Taskrouter**
24+
- Add limits to `split_by_wait_time` for Cumulative Statistics Endpoint
25+
26+
**Video**
27+
- Change recording `status_callback_method` type from `enum` to `http_method` **(breaking change)**
28+
- Add `status_callback` and `status_callback_method` to composition
29+
- Add `status_callback` and `status_callback_method` to recording
30+
31+
432
[2022-03-09] Version 8.27.1
533
---------------------------
634
**Library - Chore**

src/main/java/com/twilio/rest/api/v2010/account/RecordingFetcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public RecordingFetcher(final String pathAccountSid,
4646

4747
/**
4848
* A boolean parameter indicating whether to retrieve soft deleted recordings or
49-
* not. Recordings are kept after deletion for a retention period of 40 days..
49+
* not. Recordings metadata are kept after deletion for a retention period of 40
50+
* days..
5051
*
5152
* @param includeSoftDeleted A boolean parameter indicating whether to retrieve
5253
* soft deleted recordings or not.

src/main/java/com/twilio/rest/api/v2010/account/RecordingReader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ public RecordingReader setConferenceSid(final String conferenceSid) {
128128

129129
/**
130130
* A boolean parameter indicating whether to retrieve soft deleted recordings or
131-
* not. Recordings are kept after deletion for a retention period of 40 days..
131+
* not. Recordings metadata are kept after deletion for a retention period of 40
132+
* days..
132133
*
133134
* @param includeSoftDeleted A boolean parameter indicating whether to retrieve
134135
* soft deleted recordings or not.

src/main/java/com/twilio/rest/api/v2010/account/call/PaymentCreator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ public PaymentCreator setMinPostalCodeLength(final Integer minPostalCodeLength)
168168
}
169169

170170
/**
171-
* A single level JSON string that is required when accepting certain
172-
* information specific only to ACH payments. The information that has to be
171+
* A single-level JSON object used to pass custom parameters to payment
172+
* processors. (Required for ACH payments). The information that has to be
173173
* included here depends on the &lt;Pay&gt; Connector. <a
174174
* href="https://www.twilio.com/console/voice/pay-connectors">Read more</a>..
175175
*
176-
* @param parameter A single level JSON string that is required when accepting
177-
* certain information specific only to ACH payments.
176+
* @param parameter A single-level JSON object used to pass custom parameters
177+
* to payment processors. (Required for ACH payments)
178178
* @return this
179179
*/
180180
public PaymentCreator setParameter(final Map<String, Object> parameter) {

src/main/java/com/twilio/rest/api/v2010/account/call/Stream.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
import java.io.IOException;
3030
import java.io.InputStream;
31+
import java.net.URI;
3132
import java.time.ZonedDateTime;
3233
import java.util.Map;
3334
import java.util.Objects;
@@ -117,21 +118,25 @@ public static UpdateStatus forValue(final String value) {
117118
*
118119
* @param pathAccountSid The SID of the Account that created this resource
119120
* @param pathCallSid The SID of the Call the resource is associated with
121+
* @param url Url where WebSocket connection will be established.
120122
* @return StreamCreator capable of executing the create
121123
*/
122124
public static StreamCreator creator(final String pathAccountSid,
123-
final String pathCallSid) {
124-
return new StreamCreator(pathAccountSid, pathCallSid);
125+
final String pathCallSid,
126+
final URI url) {
127+
return new StreamCreator(pathAccountSid, pathCallSid, url);
125128
}
126129

127130
/**
128131
* Create a StreamCreator to execute create.
129132
*
130133
* @param pathCallSid The SID of the Call the resource is associated with
134+
* @param url Url where WebSocket connection will be established.
131135
* @return StreamCreator capable of executing the create
132136
*/
133-
public static StreamCreator creator(final String pathCallSid) {
134-
return new StreamCreator(pathCallSid);
137+
public static StreamCreator creator(final String pathCallSid,
138+
final URI url) {
139+
return new StreamCreator(pathCallSid, url);
135140
}
136141

137142
/**

src/main/java/com/twilio/rest/api/v2010/account/call/StreamCreator.java

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
public class StreamCreator extends Creator<Stream> {
2424
private String pathAccountSid;
2525
private final String pathCallSid;
26+
private final URI url;
2627
private String name;
27-
private URI url;
2828
private Stream.Track track;
2929
private URI statusCallback;
3030
private HttpMethod statusCallbackMethod;
@@ -231,21 +231,27 @@ public class StreamCreator extends Creator<Stream> {
231231
* Construct a new StreamCreator.
232232
*
233233
* @param pathCallSid The SID of the Call the resource is associated with
234+
* @param url Url where WebSocket connection will be established.
234235
*/
235-
public StreamCreator(final String pathCallSid) {
236+
public StreamCreator(final String pathCallSid,
237+
final URI url) {
236238
this.pathCallSid = pathCallSid;
239+
this.url = url;
237240
}
238241

239242
/**
240243
* Construct a new StreamCreator.
241244
*
242245
* @param pathAccountSid The SID of the Account that created this resource
243246
* @param pathCallSid The SID of the Call the resource is associated with
247+
* @param url Url where WebSocket connection will be established.
244248
*/
245249
public StreamCreator(final String pathAccountSid,
246-
final String pathCallSid) {
250+
final String pathCallSid,
251+
final URI url) {
247252
this.pathAccountSid = pathAccountSid;
248253
this.pathCallSid = pathCallSid;
254+
this.url = url;
249255
}
250256

251257
/**
@@ -260,27 +266,6 @@ public StreamCreator setName(final String name) {
260266
return this;
261267
}
262268

263-
/**
264-
* Relative or absolute url where WebSocket connection will be established..
265-
*
266-
* @param url Url where WebSocket connection will be established.
267-
* @return this
268-
*/
269-
public StreamCreator setUrl(final URI url) {
270-
this.url = url;
271-
return this;
272-
}
273-
274-
/**
275-
* Relative or absolute url where WebSocket connection will be established..
276-
*
277-
* @param url Url where WebSocket connection will be established.
278-
* @return this
279-
*/
280-
public StreamCreator setUrl(final String url) {
281-
return setUrl(Promoter.uriFromString(url));
282-
}
283-
284269
/**
285270
* One of `inbound_track`, `outbound_track`, `both_tracks`..
286271
*
@@ -2540,14 +2525,14 @@ public Stream create(final TwilioRestClient client) {
25402525
* @param request Request to add post params to
25412526
*/
25422527
private void addPostParams(final Request request) {
2543-
if (name != null) {
2544-
request.addPostParam("Name", name);
2545-
}
2546-
25472528
if (url != null) {
25482529
request.addPostParam("Url", url.toString());
25492530
}
25502531

2532+
if (name != null) {
2533+
request.addPostParam("Name", name);
2534+
}
2535+
25512536
if (track != null) {
25522537
request.addPostParam("Track", track.toString());
25532538
}

src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public enum Category {
235235
TURNMEGABYTES_USWEST("turnmegabytes-uswest"),
236236
TWILIO_INTERCONNECT("twilio-interconnect"),
237237
VERIFY_PUSH("verify-push"),
238+
VERIFY_TOTP("verify-totp"),
239+
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED("verify-whatsapp-conversations-business-initiated"),
238240
VIDEO_RECORDINGS("video-recordings"),
239241
VOICE_INSIGHTS("voice-insights"),
240242
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE("voice-insights-client-insights-on-demand-minute"),

src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ public enum UsageCategory {
233233
TURNMEGABYTES_USWEST("turnmegabytes-uswest"),
234234
TWILIO_INTERCONNECT("twilio-interconnect"),
235235
VERIFY_PUSH("verify-push"),
236+
VERIFY_TOTP("verify-totp"),
237+
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED("verify-whatsapp-conversations-business-initiated"),
236238
VIDEO_RECORDINGS("video-recordings"),
237239
VOICE_INSIGHTS("voice-insights"),
238240
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE("voice-insights-client-insights-on-demand-minute"),

src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public enum Category {
235235
TURNMEGABYTES_USWEST("turnmegabytes-uswest"),
236236
TWILIO_INTERCONNECT("twilio-interconnect"),
237237
VERIFY_PUSH("verify-push"),
238+
VERIFY_TOTP("verify-totp"),
239+
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED("verify-whatsapp-conversations-business-initiated"),
238240
VIDEO_RECORDINGS("video-recordings"),
239241
VOICE_INSIGHTS("voice-insights"),
240242
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE("voice-insights-client-insights-on-demand-minute"),

src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public enum Category {
235235
TURNMEGABYTES_USWEST("turnmegabytes-uswest"),
236236
TWILIO_INTERCONNECT("twilio-interconnect"),
237237
VERIFY_PUSH("verify-push"),
238+
VERIFY_TOTP("verify-totp"),
239+
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED("verify-whatsapp-conversations-business-initiated"),
238240
VIDEO_RECORDINGS("video-recordings"),
239241
VOICE_INSIGHTS("voice-insights"),
240242
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE("voice-insights-client-insights-on-demand-minute"),

src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public enum Category {
235235
TURNMEGABYTES_USWEST("turnmegabytes-uswest"),
236236
TWILIO_INTERCONNECT("twilio-interconnect"),
237237
VERIFY_PUSH("verify-push"),
238+
VERIFY_TOTP("verify-totp"),
239+
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED("verify-whatsapp-conversations-business-initiated"),
238240
VIDEO_RECORDINGS("video-recordings"),
239241
VOICE_INSIGHTS("voice-insights"),
240242
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE("voice-insights-client-insights-on-demand-minute"),

src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public enum Category {
235235
TURNMEGABYTES_USWEST("turnmegabytes-uswest"),
236236
TWILIO_INTERCONNECT("twilio-interconnect"),
237237
VERIFY_PUSH("verify-push"),
238+
VERIFY_TOTP("verify-totp"),
239+
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED("verify-whatsapp-conversations-business-initiated"),
238240
VIDEO_RECORDINGS("video-recordings"),
239241
VOICE_INSIGHTS("voice-insights"),
240242
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE("voice-insights-client-insights-on-demand-minute"),

src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public enum Category {
235235
TURNMEGABYTES_USWEST("turnmegabytes-uswest"),
236236
TWILIO_INTERCONNECT("twilio-interconnect"),
237237
VERIFY_PUSH("verify-push"),
238+
VERIFY_TOTP("verify-totp"),
239+
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED("verify-whatsapp-conversations-business-initiated"),
238240
VIDEO_RECORDINGS("video-recordings"),
239241
VOICE_INSIGHTS("voice-insights"),
240242
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE("voice-insights-client-insights-on-demand-minute"),

src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public enum Category {
235235
TURNMEGABYTES_USWEST("turnmegabytes-uswest"),
236236
TWILIO_INTERCONNECT("twilio-interconnect"),
237237
VERIFY_PUSH("verify-push"),
238+
VERIFY_TOTP("verify-totp"),
239+
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED("verify-whatsapp-conversations-business-initiated"),
238240
VIDEO_RECORDINGS("video-recordings"),
239241
VOICE_INSIGHTS("voice-insights"),
240242
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE("voice-insights-client-insights-on-demand-minute"),

src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public enum Category {
235235
TURNMEGABYTES_USWEST("turnmegabytes-uswest"),
236236
TWILIO_INTERCONNECT("twilio-interconnect"),
237237
VERIFY_PUSH("verify-push"),
238+
VERIFY_TOTP("verify-totp"),
239+
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED("verify-whatsapp-conversations-business-initiated"),
238240
VIDEO_RECORDINGS("video-recordings"),
239241
VOICE_INSIGHTS("voice-insights"),
240242
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE("voice-insights-client-insights-on-demand-minute"),

src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public enum Category {
235235
TURNMEGABYTES_USWEST("turnmegabytes-uswest"),
236236
TWILIO_INTERCONNECT("twilio-interconnect"),
237237
VERIFY_PUSH("verify-push"),
238+
VERIFY_TOTP("verify-totp"),
239+
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED("verify-whatsapp-conversations-business-initiated"),
238240
VIDEO_RECORDINGS("video-recordings"),
239241
VOICE_INSIGHTS("voice-insights"),
240242
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE("voice-insights-client-insights-on-demand-minute"),

0 commit comments

Comments
 (0)
0