Skip to content

Commit 9269292

Browse files
authored
Merge branch 'main' into issue_774_fix
2 parents 6dddb1f + 78a8ccd commit 9269292

File tree

522 files changed

+11749
-7260
lines changed

Some content is hidden

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

522 files changed

+11749
-7260
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
with:
107107
java-version: 11
108108
distribution: temurin
109-
server-id: ossrh
109+
server-id: central
110110
server-username: MAVEN_USERNAME
111111
server-password: MAVEN_PASSWORD
112112
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}

CHANGES.md

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

4+
[2025-06-12] Version 10.9.2
5+
---------------------------
6+
**Library - Chore**
7+
- [PR #858](https://github.com/twilio/twilio-java/pull/858): handle any Type with object datatype. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
8+
9+
**Api**
10+
- Change DependentPhoneNumber `capabilities` type `object` and `date_created`, `date_updated` to `date_time<rfc2822>`
11+
- Updated the `Default` value from 0 to 1 in the Recordings Resource `channels` property
12+
13+
**Serverless**
14+
- Update `ienum` type level in Logs api
15+
16+
**Verify**
17+
- Update Channel list in Verify Attempst API
18+
- Update `ienum` type for Conversion_Status in Verify Attempts API
19+
20+
**Twiml**
21+
- Add `us2` to the list of supported values for the region attribute in the `<Conference>` TwiML noun.
22+
23+
24+
[2025-05-29] Version 10.9.1
25+
---------------------------
26+
**Library - Chore**
27+
- [PR #860](https://github.com/twilio/twilio-java/pull/860): update dependency version. Thanks to [@manisha1997](https://github.com/manisha1997)!
28+
- [PR #857](https://github.com/twilio/twilio-java/pull/857): use iam token endpoint. Thanks to [@manisha1997](https://github.com/manisha1997)!
29+
30+
**Api**
31+
- Added several usage category enums to `usage_record` API
32+
33+
**Numbers**
34+
- Update the porting documentation
35+
36+
**Verify**
37+
- Update `ienum` type for Channels in Verify Attempts API
38+
39+
40+
[2025-05-13] Version 10.9.0
41+
---------------------------
42+
**Library - Feature**
43+
- [PR #844](https://github.com/twilio/twilio-java/pull/844): Support custom ObjectMappers, with singleton defaults. Thanks to [@egoodhall](https://github.com/egoodhall)!
44+
45+
**Library - Chore**
46+
- [PR #853](https://github.com/twilio/twilio-java/pull/853): add changelog for jwt. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
47+
48+
**Accounts**
49+
- Changes to add date_of_consent param in Bulk Consent API
50+
51+
**Api**
52+
- Change `friendly_name`, `date_created` and `date_updated` properties to type `string`.
53+
54+
**Twiml**
55+
- Update twiml definition for `<ConversationRelay>` and `<Assistant>`
56+
57+
58+
[2025-05-05] Version 10.8.0
59+
---------------------------
60+
**Library - Chore**
61+
- [PR #852](https://github.com/twilio/twilio-java/pull/852): removing jwt changelog. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
62+
- [PR #849](https://github.com/twilio/twilio-java/pull/849): Add example for using multi region setup in a single application. Thanks to [@manisha1997](https://github.com/manisha1997)!
63+
- [PR #847](https://github.com/twilio/twilio-java/pull/847): bump com.google.code.gson:gson from 2.8.6 to 2.8.9. Thanks to [@dependabot](https://github.com/dependabot)!
64+
65+
**Library - Fix**
66+
- [PR #846](https://github.com/twilio/twilio-java/pull/846): update jjwt version. Thanks to [@manisha1997](https://github.com/manisha1997)!
67+
- **AccessToken**
68+
- **Breaking Change**: Updated `AccessTokenBuilder` to use `byte[]` for the `secret` instead of `String`.
69+
- Updated method signatures:
70+
- `AccessTokenBuilder(String accountSid, String keySid, byte[] secret)`
71+
- Example usage:
72+
```java
73+
byte[] secret = “your_secret”.getBytes();
74+
AccessTokenBuilder builder = new AccessTokenBuilder(accountSid, keySid, secret);
75+
```
76+
**ClientCapability**
77+
- **Breaking Change**: Updated `ClientCapability.Builder` to use `byte[]` for the `authToken` instead of `String`.
78+
- Updated method signatures:
79+
- `ClientCapability.Builder(String accountSid, byte[] authToken)`
80+
- Example usage:
81+
```java
82+
byte[] authToken = “your_auth_token”.getBytes();
83+
ClientCapability.Builder builder = new ClientCapability.Builder(accountSid, authToken);
84+
```
85+
**TaskRouterCapability**
86+
- **Breaking Change**: Updated `TaskRouterCapability.Builder` to use `byte[]` for the `authToken` instead of `String`.
87+
- Updated method signatures:
88+
- `TaskRouterCapability.Builder(String accountSid, byte[] authToken)`
89+
- Example usage:
90+
```java
91+
byte[] authToken = “your_auth_token”.getBytes();
92+
TaskRouterCapability.Builder builder = new TaskRouterCapability.Builder(accountSid, authToken);
93+
```
94+
95+
**Api**
96+
- Add `response_key` for `Usage Triggers` fetch endpoint.
97+
98+
**Flex**
99+
- Add Update Interaction API
100+
- Adding `webhook_ttid` as optional parameter in Interactions API
101+
102+
**Serverless**
103+
- Add node22 as a valid Build runtime
104+
- Add node20 as a valid Build runtime
105+
106+
**Video**
107+
- removed `transcribe_participants_on_connect` and `transcriptions_configuration` from the room resource **(breaking change)**
108+
- Added `transcribe_participants_on_connect` and `transcriptions_configuration` to the room resource
109+
110+
111+
[2025-04-07] Version 10.7.2
112+
---------------------------
113+
**Library - Chore**
114+
- [PR #842](https://github.com/twilio/twilio-java/pull/842): added patch method. Thanks to [@sbansla](https://github.com/sbansla)!
115+
116+
**Studio**
117+
- Add documentation for parent_step_sid field in Step resource
118+
119+
120+
[2025-03-20] Version 10.7.1
121+
---------------------------
122+
**Accounts**
123+
- Update Safelist API docs as part of prefix supoort
124+
125+
**Flex**
126+
- Removing `first_name`, `last_name`, and `friendly_name` from the Flex User API
127+
128+
**Messaging**
129+
- Add missing tests under transaction/phone_numbers and transaction/short_code
130+
131+
132+
[2025-03-11] Version 10.7.0
133+
---------------------------
134+
**Library - Chore**
135+
- [PR #839](https://github.com/twilio/twilio-java/pull/839): MVR Release Preparation. Thanks to [@manisha1997](https://github.com/manisha1997)!
136+
- [PR #841](https://github.com/twilio/twilio-java/pull/841): update upgrade doc. Thanks to [@manisha1997](https://github.com/manisha1997)!
137+
- [PR #840](https://github.com/twilio/twilio-java/pull/840): add version. Thanks to [@manisha1997](https://github.com/manisha1997)!
138+
- [PR #838](https://github.com/twilio/twilio-java/pull/838): Add domain and noauth base classes. Thanks to [@sbansla](https://github.com/sbansla)!
139+
- [PR #837](https://github.com/twilio/twilio-java/pull/837): enable java test. Thanks to [@manisha1997](https://github.com/manisha1997)!
140+
141+
**Api**
142+
- Add the missing `emergency_enabled` field for `Address Service` endpoints
143+
144+
**Messaging**
145+
- Add missing enums for A2P and TF
146+
147+
**Numbers**
148+
- add missing enum values to hosted_number_order_status
149+
150+
**Twiml**
151+
- Convert Twiml Attribute `speechModel` of type enum to string **(breaking change)**
152+
153+
154+
[2025-02-20] Version 10.6.10
155+
----------------------------
156+
**Library - Chore**
157+
- [PR #836](https://github.com/twilio/twilio-java/pull/836): disable java test. Thanks to [@manisha1997](https://github.com/manisha1997)!
158+
- [PR #835](https://github.com/twilio/twilio-java/pull/835): disable java test. Thanks to [@manisha1997](https://github.com/manisha1997)!
159+
160+
**Flex**
161+
- Adding Digital Transfers APIs under v1/Interactions
162+
163+
**Numbers**
164+
- Convert webhook_type to ienum type in v1/Porting/Configuration/Webhook/{webhook_type}
165+
166+
**Trusthub**
167+
- Changing TrustHub SupportingDocument status enum from lowercase to uppercase since kyc-orch returns status capitalized and rest proxy requires strict casing
168+
169+
170+
[2025-02-11] Version 10.6.9
171+
---------------------------
172+
**Api**
173+
- Change downstream url and change media type for file `base/api/v2010/validation_request.json`.
174+
175+
**Intelligence**
176+
- Add json_results for Generative JSON operator results
177+
178+
**Messaging**
179+
- Add DestinationAlphaSender API to support Country-Specific Alpha Senders
180+
181+
**Video**
182+
- Change codec type from enum to case-insensitive enum in recording and room_recording apis
183+
184+
185+
[2025-01-28] Version 10.6.8
186+
---------------------------
187+
**Library - Fix**
188+
- [PR #809](https://github.com/twilio/twilio-java/pull/809): Fix for 1 vulnerabilities. Thanks to [@twilio-product-security](https://github.com/twilio-product-security)!
189+
- [PR #830](https://github.com/twilio/twilio-java/pull/830): Voice v2 fix. Thanks to [@manisha1997](https://github.com/manisha1997)!
190+
191+
**Library - Chore**
192+
- [PR #831](https://github.com/twilio/twilio-java/pull/831): added bug report issue template. Thanks to [@sbansla](https://github.com/sbansla)!
193+
- [PR #829](https://github.com/twilio/twilio-java/pull/829): add variant class. Thanks to [@manisha1997](https://github.com/manisha1997)!
194+
195+
**Api**
196+
- Add open-api file tag to `conference/call recordings` and `recording_transcriptions`.
197+
198+
**Events**
199+
- Add support for subaccount subscriptions (beta)
200+
201+
**Insights**
202+
- add new region to conference APIs
203+
204+
**Lookups**
205+
- Add new `parnter_sub_id` query parameter to the lookup request
206+
207+
4208
[2025-01-13] Version 10.6.7
5209
---------------------------
6210
**Messaging**

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Tests](https://github.com/twilio/twilio-java/actions/workflows/test-and-deploy.yml/badge.svg)](https://github.com/twilio/twilio-java/actions/workflows/test-and-deploy.yml)
44
[![Maven Central](https://img.shields.io/maven-central/v/com.twilio.sdk/twilio.svg)](https://mvnrepository.com/artifact/com.twilio.sdk/twilio)
55
[![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source)
6+
[![libs.tech recommends](https://libs.tech/project/307476/badge.svg)](https://libs.tech/project/307476/twilio-java)
67

78
## Documentation
89

@@ -265,6 +266,8 @@ Twilio.setEdge("sydney");
265266

266267
This will result in the `hostname` transforming from `api.twilio.com` to `api.sydney.au1.twilio.com`.
267268

269+
To use multiple region within same application, refer [MultiRegionClient.md](https://github.com/twilio/twilio-java/blob/main/examples/MultiRegionClient.md)
270+
268271
### Enable Debug Logging
269272

270273
This library uses SLF4J for logging. Consult the [SFL4J documentation](http://slf4j.org/docs.html) for information about logging configuration.

UPGRADE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,4 +703,4 @@ Task.reader("WS123").setAssignmentStatus(Lists.newArrayList(
703703
Task.Status.ASSIGNED.toString(),
704704
Task.Status.CANCELED.toString()
705705
)).read();
706-
```
706+
```

examples/MultiRegionClient.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
```java
2+
package com.twilio.example;
3+
4+
import com.twilio.http.TwilioRestClient;
5+
import com.twilio.rest.api.v2010.account.Message;
6+
import com.twilio.type.PhoneNumber;
7+
8+
public class MultiRegionExample {
9+
public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
10+
public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");
11+
12+
public static void main(String[] args) {
13+
14+
TwilioRestClient client = new TwilioRestClient.Builder(ACCOUNT_SID, AUTH_TOKEN).region("us1").build();
15+
16+
Message message = Message
17+
.creator(
18+
new PhoneNumber("+1XXXXXXXXXX"),
19+
new PhoneNumber("+1XXXXXXXXXX"),
20+
"This is the ship that made the Kessel Run in fourteen parsecs?"
21+
)
22+
.create(client);
23+
24+
System.out.println(message.getSid());
25+
26+
TwilioRestClient client2 = new TwilioRestClient.Builder(ACCOUNT_SID, AUTH_TOKEN).region("au1").build();
27+
28+
Message message2 = Message
29+
.creator(
30+
new PhoneNumber("+1XXXXXXXXXX"),
31+
new PhoneNumber("+1XXXXXXXXXX"),
32+
"This is the ship that made the Kessel Run in fourteen parsecs?"
33+
)
34+
.create(client2);
35+
36+
System.out.println(message2.getSid());
37+
}
38+
}
39+
40+
41+
```

pom.xml

Lines changed: 14 additions & 15 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.6.7</version>
8+
<version>10.9.2</version>
99
<description>Twilio Java Helper Library</description>
1010
<url>https://www.twilio.com</url>
1111
<licenses>
@@ -19,7 +19,7 @@
1919
<url>[email protected]:twilio/twilio-java.git</url>
2020
<connection>scm:git:[email protected]:twilio/twilio-java.git</connection>
2121
<developerConnection>scm:git:[email protected]:twilio/twilio-java.git</developerConnection>
22-
<tag>10.6.7</tag>
22+
<tag>10.9.2</tag>
2323
</scm>
2424
<developers>
2525
<developer>
@@ -104,14 +104,13 @@
104104
<build>
105105
<plugins>
106106
<plugin>
107-
<groupId>org.sonatype.plugins</groupId>
108-
<artifactId>nexus-staging-maven-plugin</artifactId>
109-
<version>1.6.13</version>
107+
<groupId>org.sonatype.central</groupId>
108+
<artifactId>central-publishing-maven-plugin</artifactId>
109+
<version>0.8.0</version>
110110
<extensions>true</extensions>
111111
<configuration>
112-
<serverId>ossrh</serverId>
113-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
114-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
112+
<publishingServerId>central</publishingServerId>
113+
<autoPublish>true</autoPublish>
115114
</configuration>
116115
</plugin>
117116
<plugin>
@@ -167,9 +166,9 @@
167166
</profile>
168167
</profiles>
169168
<properties>
170-
<jackson.version>2.14.0</jackson.version>
169+
<jackson.version>2.15.0</jackson.version>
171170
<javadoc.plugin.version>3.3.1</javadoc.plugin.version>
172-
<jjwt.version>0.11.2</jjwt.version>
171+
<jjwt.version>0.12.6</jjwt.version>
173172
<skip.tests>false</skip.tests>
174173
<dependency.skip>false</dependency.skip>
175174
<sonar.organization>twilio</sonar.organization>
@@ -337,6 +336,11 @@
337336
</exclusion>
338337
</exclusions>
339338
</dependency>
339+
<dependency>
340+
<groupId>com.google.code.gson</groupId>
341+
<artifactId>gson</artifactId>
342+
<version>2.10.1</version>
343+
</dependency>
340344
</dependencies>
341345
<build>
342346
<plugins>
@@ -489,9 +493,4 @@
489493
</plugin>
490494
</plugins>
491495
</build>
492-
<parent>
493-
<groupId>org.sonatype.oss</groupId>
494-
<artifactId>oss-parent</artifactId>
495-
<version>7</version>
496-
</parent>
497496
</project>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public enum Domains {
2626
INSIGHTS("insights"),
2727
INTELLIGENCE("intelligence"),
2828
IPMESSAGING("ip-messaging"),
29+
KNOWLEDGE("knowledge"),
2930
LOOKUPS("lookups"),
3031
MARKETPLACE("marketplace"),
3132
MESSAGING("messaging"),

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

Lines changed: 1 addition & 1 deletion
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.6.7";
27+
public static final String VERSION = "10.9.2";
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");

src/main/java/com/twilio/base/noauth/Creator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.twilio.Twilio;
44
import com.twilio.TwilioNoAuth;
5-
import com.twilio.base.noauth.Resource;
65
import com.twilio.http.noauth.NoAuthTwilioRestClient;
76

87
import java.util.concurrent.CompletableFuture;

0 commit comments

Comments
 (0)