Skip to content

Commit cceb784

Browse files
Merge branch '11.0.0-rc' into main
2 parents 2ae7c6b + 0810ce5 commit cceb784

File tree

157 files changed

+3319
-5543
lines changed

Some content is hidden

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

157 files changed

+3319
-5543
lines changed

CHANGES.md

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

4+
[2025-07-24] Version 11.0.0-rc.3
5+
--------------------------------
6+
**Events**
7+
- Remove `SinkSid` parameter when updating subscriptions. **(breaking change)**
8+
9+
**Twiml**
10+
- Remove Duplicates.
11+
- Add Polly Generative voices.
12+
- Add Latest Google (Chirp3-HD) voices.
13+
14+
15+
[2025-07-10] Version 11.0.0-rc.2
16+
--------------------------------
17+
**Flex**
18+
- update team name for web_channel, webchat_init_token, webchat_refresh_token
19+
20+
21+
[2025-07-03] Version 11.0.0-rc.1
22+
--------------------------------
23+
**Library - Chore**
24+
- [PR #875](https://github.com/twilio/twilio-java/pull/875): prepare for RC release. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
25+
- [PR #874](https://github.com/twilio/twilio-java/pull/874): Handle List<Object> serialization. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
26+
- [PR #873](https://github.com/twilio/twilio-java/pull/873): use Object for anyType. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
27+
28+
**Bulkexports**
29+
- Changed the type of 'details' field to be a list of objects instead of a single object
30+
31+
**Conversations**
32+
- Updates to `method` casing for ConfgurationAddress, ConversationScopedWebhook, and ServiceConversationScopedWebhook for RestProxy compatibility
33+
34+
**Proxy**
35+
- remove shortcodes resource as its no longer used
36+
37+
**Serverless**
38+
- Change log field level from type `ienum` to `string` in Logs api
39+
40+
**Taskrouter**
41+
- Remove `URL-encoded` from attributes param definition in tasks
42+
43+
**Trunking**
44+
- Added `symmetric_rtp_enabled` property on Trunks.
45+
46+
**Twiml**
47+
- Add support for `<WhatsApp>` noun under `<Dial>` verb
48+
49+
50+
[2025-07-03] Version 11.0.0-rc.0
51+
--------------------------------
52+
- Release Candidate prep
53+
454
[2025-06-12] Version 10.9.2
555
---------------------------
656
**Library - Chore**

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ Use the following dependency in your project to grab via Maven:
6262
<dependency>
6363
<groupId>com.twilio.sdk</groupId>
6464
<artifactId>twilio</artifactId>
65-
<version>10.X.X</version>
65+
<version>11.X.X-rc.x</version>
6666
<scope>compile</scope>
6767
</dependency>
6868
```
6969

7070
or Gradle:
7171

7272
```groovy
73-
implementation "com.twilio.sdk:twilio:10.X.X"
73+
implementation "com.twilio.sdk:twilio:11.X.X-rc.x"
7474
```
7575

7676
If you want to compile it yourself, here's how:

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>twilio</artifactId>
66
<packaging>jar</packaging>
77
<name>twilio</name>
8-
<version>10.9.2</version>
8+
<version>11.0.0-rc.3</version>
99
<description>Twilio Java Helper Library</description>
1010
<url>https://www.twilio.com</url>
1111
<licenses>
@@ -19,7 +19,7 @@
1919
<url>git@github.com:twilio/twilio-java.git</url>
2020
<connection>scm:git:git@github.com:twilio/twilio-java.git</connection>
2121
<developerConnection>scm:git:git@github.com:twilio/twilio-java.git</developerConnection>
22-
<tag>10.9.2</tag>
22+
<tag>11.0.0-rc.3</tag>
2323
</scm>
2424
<developers>
2525
<developer>

src/main/java/com/twilio/Domains.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ public enum Domains {
2626
INSIGHTS("insights"),
2727
INTELLIGENCE("intelligence"),
2828
IPMESSAGING("ip-messaging"),
29-
KNOWLEDGE("knowledge"),
3029
LOOKUPS("lookups"),
3130
MARKETPLACE("marketplace"),
3231
MESSAGING("messaging"),
33-
MICROVISOR("microvisor"),
3432
MONITOR("monitor"),
3533
NOTIFY("notify"),
3634
NUMBERS("numbers"),

src/main/java/com/twilio/Twilio.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
public class Twilio {
2626

27-
public static final String VERSION = "10.9.2";
27+
public static final String VERSION = "11.0.0-rc.3";
2828
public static final String JAVA_VERSION = System.getProperty("java.version");
2929
public static final String OS_NAME = System.getProperty("os.name");
3030
public static final String OS_ARCH = System.getProperty("os.arch");
@@ -37,7 +37,7 @@ public class Twilio {
3737
private static String edge = System.getenv("TWILIO_EDGE");
3838
private static volatile TwilioRestClient restClient;
3939
private static volatile ExecutorService executorService;
40-
40+
4141
private static CredentialProvider credentialProvider;
4242

4343
private Twilio() {
@@ -85,7 +85,7 @@ private static void setCredentialProvider(final CredentialProvider credentialPro
8585
if (credentialProvider == null) {
8686
throw new AuthenticationException("Credential Provider can not be null");
8787
}
88-
88+
8989
if (!credentialProvider.equals(Twilio.credentialProvider)) {
9090
Twilio.invalidate();
9191
}
@@ -315,7 +315,7 @@ private static void invalidate() {
315315
private static void invalidateOAuthCreds() {
316316
Twilio.credentialProvider = null;
317317
}
318-
318+
319319
private static void invalidateBasicCreds() {
320320
Twilio.username = null;
321321
Twilio.password = null;

src/main/java/com/twilio/rest/accounts/v1/BulkConsents.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ public class BulkConsents extends Resource {
3838

3939
private static final long serialVersionUID = 126137950684284L;
4040

41-
public static BulkConsentsCreator creator(
42-
final List<Map<String, Object>> items
43-
) {
41+
public static BulkConsentsCreator creator(final List<Object> items) {
4442
return new BulkConsentsCreator(items);
4543
}
4644

src/main/java/com/twilio/rest/accounts/v1/BulkConsentsCreator.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,21 @@
2929
import com.twilio.rest.Domains;
3030
import java.util.List;
3131
import java.util.List;
32-
import java.util.Map;
33-
import java.util.Map;
3432

3533
public class BulkConsentsCreator extends Creator<BulkConsents> {
3634

37-
private List<Map<String, Object>> items;
35+
private List<Object> items;
3836

39-
public BulkConsentsCreator(final List<Map<String, Object>> items) {
37+
public BulkConsentsCreator(final List<Object> items) {
4038
this.items = items;
4139
}
4240

43-
public BulkConsentsCreator setItems(final List<Map<String, Object>> items) {
41+
public BulkConsentsCreator setItems(final List<Object> items) {
4442
this.items = items;
4543
return this;
4644
}
4745

48-
public BulkConsentsCreator setItems(final Map<String, Object> items) {
46+
public BulkConsentsCreator setItems(final Object items) {
4947
return setItems(Promoter.listOfOne(items));
5048
}
5149

@@ -89,8 +87,8 @@ public BulkConsents create(final TwilioRestClient client) {
8987

9088
private void addPostParams(final Request request) {
9189
if (items != null) {
92-
for (Map<String, Object> prop : items) {
93-
request.addPostParam("Items", Converter.mapToJson(prop));
90+
for (Object prop : items) {
91+
request.addPostParam("Items", Converter.objectToJson(prop));
9492
}
9593
}
9694
}

src/main/java/com/twilio/rest/accounts/v1/BulkContacts.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ public class BulkContacts extends Resource {
3838

3939
private static final long serialVersionUID = 126137950684284L;
4040

41-
public static BulkContactsCreator creator(
42-
final List<Map<String, Object>> items
43-
) {
41+
public static BulkContactsCreator creator(final List<Object> items) {
4442
return new BulkContactsCreator(items);
4543
}
4644

src/main/java/com/twilio/rest/accounts/v1/BulkContactsCreator.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,21 @@
2929
import com.twilio.rest.Domains;
3030
import java.util.List;
3131
import java.util.List;
32-
import java.util.Map;
33-
import java.util.Map;
3432

3533
public class BulkContactsCreator extends Creator<BulkContacts> {
3634

37-
private List<Map<String, Object>> items;
35+
private List<Object> items;
3836

39-
public BulkContactsCreator(final List<Map<String, Object>> items) {
37+
public BulkContactsCreator(final List<Object> items) {
4038
this.items = items;
4139
}
4240

43-
public BulkContactsCreator setItems(final List<Map<String, Object>> items) {
41+
public BulkContactsCreator setItems(final List<Object> items) {
4442
this.items = items;
4543
return this;
4644
}
4745

48-
public BulkContactsCreator setItems(final Map<String, Object> items) {
46+
public BulkContactsCreator setItems(final Object items) {
4947
return setItems(Promoter.listOfOne(items));
5048
}
5149

@@ -89,8 +87,8 @@ public BulkContacts create(final TwilioRestClient client) {
8987

9088
private void addPostParams(final Request request) {
9189
if (items != null) {
92-
for (Map<String, Object> prop : items) {
93-
request.addPostParam("Items", Converter.mapToJson(prop));
90+
for (Object prop : items) {
91+
request.addPostParam("Items", Converter.objectToJson(prop));
9492
}
9593
}
9694
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public Message create(final TwilioRestClient client) {
318318
"{" + "AccountSid" + "}",
319319
this.pathAccountSid.toString()
320320
);
321-
path = path.replace("{" + "To" + "}", this.to.encode("utf-8"));
321+
path = path.replace("{" + "To" + "}", this.to.toString());
322322

323323
Request request = new Request(
324324
HttpMethod.POST,

0 commit comments

Comments
 (0)