Skip to content

Commit 000c525

Browse files
committed
[Librarian] Regenerated @ 556cffc21d7318f27d71e40146d324df61aba54f 0d6654ebfab8c5a41c8454374cbb1c93d806bfae
1 parent eba84ef commit 000c525

File tree

46 files changed

+2297
-244
lines changed

Some content is hidden

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

46 files changed

+2297
-244
lines changed

CHANGES.md

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

4+
[2025-09-18] Version 5.10.0
5+
---------------------------
6+
**Library - Feature**
7+
- [PR #1130](https://github.com/twilio/twilio-node/pull/1130): Add ESM (ECMAScript Modules) support with dual CommonJS/ESM builds. Thanks to [@Copilot](https://github.com/Copilot)!
8+
9+
**Library - Chore**
10+
- [PR #1131](https://github.com/twilio/twilio-node/pull/1131): upgrade axios due to security vulnerability. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
11+
12+
**Api**
13+
- Add `date_created` property to media resource and date_created filtering parameters for read action
14+
- Updated the Recordings Resource `channels` property to clarify channels = # of channels in the recording resource and how to specify the # of channels in recording download
15+
16+
**Intelligence**
17+
- Add encryption_credential_sid field in transcripts and services in v2
18+
19+
**Trusthub**
20+
- Remove beta feature flag for all TH APIs
21+
- Remove beta feature flag for ComplianceInquiries API to support OneConsole traffic
22+
23+
**Twiml**
24+
- Add new noun `<AiSession>`
25+
26+
427
[2025-09-04] Version 5.9.0
528
--------------------------
629
**Library - Feature**

src/rest/NumbersBase.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
import Domain from "../base/Domain";
1313
import V1 from "./numbers/V1";
1414
import V2 from "./numbers/V2";
15+
import V3 from "./numbers/V3";
1516

1617
class NumbersBase extends Domain {
1718
_v1?: V1;
1819
_v2?: V2;
20+
_v3?: V3;
1921

2022
/**
2123
* Initialize numbers domain
@@ -34,6 +36,10 @@ class NumbersBase extends Domain {
3436
this._v2 = this._v2 || new V2(this);
3537
return this._v2;
3638
}
39+
get v3(): V3 {
40+
this._v3 = this._v3 || new V3(this);
41+
return this._v3;
42+
}
3743
}
3844

3945
export = NumbersBase;

src/rest/OauthBase.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111

1212
import Domain from "../base/Domain";
1313
import V1 from "./oauth/V1";
14+
import V2 from "./oauth/V2";
1415

1516
class OauthBase extends Domain {
1617
_v1?: V1;
18+
_v2?: V2;
1719

1820
/**
1921
* Initialize oauth domain
@@ -28,6 +30,10 @@ class OauthBase extends Domain {
2830
this._v1 = this._v1 || new V1(this);
2931
return this._v1;
3032
}
33+
get v2(): V2 {
34+
this._v2 = this._v2 || new V2(this);
35+
return this._v2;
36+
}
3137
}
3238

3339
export = OauthBase;

src/rest/api/v2010/account/availablePhoneNumberCountry/local.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { PhoneNumberCapabilities } from "../../../../../interfaces";
2727
export interface LocalListInstanceEachOptions {
2828
/** The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. */
2929
areaCode?: number;
30-
/** The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters. */
30+
/** Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can\'t be adjacent to each other. */
3131
contains?: string;
3232
/** Whether the phone numbers can receive text messages. Can be: `true` or `false`. */
3333
smsEnabled?: boolean;
@@ -77,7 +77,7 @@ export interface LocalListInstanceEachOptions {
7777
export interface LocalListInstanceOptions {
7878
/** The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. */
7979
areaCode?: number;
80-
/** The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters. */
80+
/** Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can\'t be adjacent to each other. */
8181
contains?: string;
8282
/** Whether the phone numbers can receive text messages. Can be: `true` or `false`. */
8383
smsEnabled?: boolean;
@@ -123,7 +123,7 @@ export interface LocalListInstanceOptions {
123123
export interface LocalListInstancePageOptions {
124124
/** The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. */
125125
areaCode?: number;
126-
/** The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters. */
126+
/** Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can\'t be adjacent to each other. */
127127
contains?: string;
128128
/** Whether the phone numbers can receive text messages. Can be: `true` or `false`. */
129129
smsEnabled?: boolean;

src/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { PhoneNumberCapabilities } from "../../../../../interfaces";
2727
export interface MachineToMachineListInstanceEachOptions {
2828
/** The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. */
2929
areaCode?: number;
30-
/** The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. */
30+
/** Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can\'t be adjacent to each other. */
3131
contains?: string;
3232
/** Whether the phone numbers can receive text messages. Can be: `true` or `false`. */
3333
smsEnabled?: boolean;
@@ -80,7 +80,7 @@ export interface MachineToMachineListInstanceEachOptions {
8080
export interface MachineToMachineListInstanceOptions {
8181
/** The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. */
8282
areaCode?: number;
83-
/** The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. */
83+
/** Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can\'t be adjacent to each other. */
8484
contains?: string;
8585
/** Whether the phone numbers can receive text messages. Can be: `true` or `false`. */
8686
smsEnabled?: boolean;
@@ -126,7 +126,7 @@ export interface MachineToMachineListInstanceOptions {
126126
export interface MachineToMachineListInstancePageOptions {
127127
/** The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. */
128128
areaCode?: number;
129-
/** The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. */
129+
/** Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can\'t be adjacent to each other. */
130130
contains?: string;
131131
/** Whether the phone numbers can receive text messages. Can be: `true` or `false`. */
132132
smsEnabled?: boolean;

src/rest/api/v2010/account/availablePhoneNumberCountry/mobile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { PhoneNumberCapabilities } from "../../../../../interfaces";
2727
export interface MobileListInstanceEachOptions {
2828
/** The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. */
2929
areaCode?: number;
30-
/** The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. */
30+
/** Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can\'t be adjacent to each other. */
3131
contains?: string;
3232
/** Whether the phone numbers can receive text messages. Can be: `true` or `false`. */
3333
smsEnabled?: boolean;
@@ -77,7 +77,7 @@ export interface MobileListInstanceEachOptions {
7777
export interface MobileListInstanceOptions {
7878
/** The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. */
7979
areaCode?: number;
80-
/** The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. */
80+
/** Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can\'t be adjacent to each other. */
8181
contains?: string;
8282
/** Whether the phone numbers can receive text messages. Can be: `true` or `false`. */
8383
smsEnabled?: boolean;
@@ -123,7 +123,7 @@ export interface MobileListInstanceOptions {
123123
export interface MobileListInstancePageOptions {
124124
/** The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. */
125125
areaCode?: number;
126-
/** The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. */
126+
/** Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can\'t be adjacent to each other. */
127127
contains?: string;
128128
/** Whether the phone numbers can receive text messages. Can be: `true` or `false`. */
129129
smsEnabled?: boolean;

0 commit comments

Comments
 (0)