Skip to content

Commit f345921

Browse files
committed
[Librarian] Regenerated @ 4b32678e9d8859e19f1feb1af566eea8533a36c9 51518c9f2f9294597fd0471d5c647016ef4023ee
1 parent eb56e72 commit f345921

File tree

10 files changed

+459
-55
lines changed

10 files changed

+459
-55
lines changed

CHANGES.md

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

4+
[2025-07-24] Version 5.8.0
5+
--------------------------
6+
**Library - Chore**
7+
- [PR #1106](https://github.com/twilio/twilio-node/pull/1106): upgrade axios version. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
8+
9+
**Events**
10+
- Remove `SinkSid` parameter when updating subscriptions. **(breaking change)**
11+
12+
**Twiml**
13+
- Remove Duplicates.
14+
- Add Polly Generative voices.
15+
- Add Latest Google (Chirp3-HD) voices.
16+
17+
418
[2025-07-10] Version 5.7.3
519
--------------------------
620
**Flex**

src/rest/events/v1/subscription.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ import { SubscribedEventListInstance } from "./subscription/subscribedEvent";
2727
export interface SubscriptionContextUpdateOptions {
2828
/** A human readable description for the Subscription. */
2929
description?: string;
30-
/** The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. */
31-
sinkSid?: string;
3230
}
3331

3432
/**
@@ -232,7 +230,6 @@ export class SubscriptionContextImpl implements SubscriptionContext {
232230

233231
if (params["description"] !== undefined)
234232
data["Description"] = params["description"];
235-
if (params["sinkSid"] !== undefined) data["SinkSid"] = params["sinkSid"];
236233

237234
const headers: any = {};
238235
headers["Content-Type"] = "application/x-www-form-urlencoded";

src/rest/insights/v1/callSummaries.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ export interface CallSummariesListInstanceEachOptions {
112112
voiceIntegrityEnabled?: boolean;
113113
/** A unique SID identifier of the Branded Call. */
114114
brandedBundleSid?: string;
115+
/** Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present). */
116+
brandedLogo?: boolean;
117+
/** Indicates whether the Branded Call is in_band vs out_of_band. */
118+
brandedType?: string;
119+
/** Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling. */
120+
brandedUseCase?: string;
121+
/** Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call. */
122+
brandedCallReason?: string;
115123
/** A unique SID identifier of the Voice Integrity Profile. */
116124
voiceIntegrityBundleSid?: string;
117125
/** A Voice Integrity Use Case . Is of type enum. One of \'abandoned_cart\', \'appointment_reminders\', \'appointment_scheduling\', \'asset_management\', \'automated_support\', \'call_tracking\', \'click_to_call\', \'contact_tracing\', \'contactless_delivery\', \'customer_support\', \'dating/social\', \'delivery_notifications\', \'distance_learning\', \'emergency_notifications\', \'employee_notifications\', \'exam_proctoring\', \'field_notifications\', \'first_responder\', \'fraud_alerts\', \'group_messaging\', \'identify_&_verification\', \'intelligent_routing\', \'lead_alerts\', \'lead_distribution\', \'lead_generation\', \'lead_management\', \'lead_nurturing\', \'marketing_events\', \'mass_alerts\', \'meetings/collaboration\', \'order_notifications\', \'outbound_dialer\', \'pharmacy\', \'phone_system\', \'purchase_confirmation\', \'remote_appointments\', \'rewards_program\', \'self-service\', \'service_alerts\', \'shift_management\', \'survey/research\', \'telehealth\', \'telemarketing\', \'therapy_(individual+group)\'. */
@@ -190,6 +198,14 @@ export interface CallSummariesListInstanceOptions {
190198
voiceIntegrityEnabled?: boolean;
191199
/** A unique SID identifier of the Branded Call. */
192200
brandedBundleSid?: string;
201+
/** Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present). */
202+
brandedLogo?: boolean;
203+
/** Indicates whether the Branded Call is in_band vs out_of_band. */
204+
brandedType?: string;
205+
/** Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling. */
206+
brandedUseCase?: string;
207+
/** Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call. */
208+
brandedCallReason?: string;
193209
/** A unique SID identifier of the Voice Integrity Profile. */
194210
voiceIntegrityBundleSid?: string;
195211
/** A Voice Integrity Use Case . Is of type enum. One of \'abandoned_cart\', \'appointment_reminders\', \'appointment_scheduling\', \'asset_management\', \'automated_support\', \'call_tracking\', \'click_to_call\', \'contact_tracing\', \'contactless_delivery\', \'customer_support\', \'dating/social\', \'delivery_notifications\', \'distance_learning\', \'emergency_notifications\', \'employee_notifications\', \'exam_proctoring\', \'field_notifications\', \'first_responder\', \'fraud_alerts\', \'group_messaging\', \'identify_&_verification\', \'intelligent_routing\', \'lead_alerts\', \'lead_distribution\', \'lead_generation\', \'lead_management\', \'lead_nurturing\', \'marketing_events\', \'mass_alerts\', \'meetings/collaboration\', \'order_notifications\', \'outbound_dialer\', \'pharmacy\', \'phone_system\', \'purchase_confirmation\', \'remote_appointments\', \'rewards_program\', \'self-service\', \'service_alerts\', \'shift_management\', \'survey/research\', \'telehealth\', \'telemarketing\', \'therapy_(individual+group)\'. */
@@ -264,6 +280,14 @@ export interface CallSummariesListInstancePageOptions {
264280
voiceIntegrityEnabled?: boolean;
265281
/** A unique SID identifier of the Branded Call. */
266282
brandedBundleSid?: string;
283+
/** Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present). */
284+
brandedLogo?: boolean;
285+
/** Indicates whether the Branded Call is in_band vs out_of_band. */
286+
brandedType?: string;
287+
/** Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling. */
288+
brandedUseCase?: string;
289+
/** Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call. */
290+
brandedCallReason?: string;
267291
/** A unique SID identifier of the Voice Integrity Profile. */
268292
voiceIntegrityBundleSid?: string;
269293
/** A Voice Integrity Use Case . Is of type enum. One of \'abandoned_cart\', \'appointment_reminders\', \'appointment_scheduling\', \'asset_management\', \'automated_support\', \'call_tracking\', \'click_to_call\', \'contact_tracing\', \'contactless_delivery\', \'customer_support\', \'dating/social\', \'delivery_notifications\', \'distance_learning\', \'emergency_notifications\', \'employee_notifications\', \'exam_proctoring\', \'field_notifications\', \'first_responder\', \'fraud_alerts\', \'group_messaging\', \'identify_&_verification\', \'intelligent_routing\', \'lead_alerts\', \'lead_distribution\', \'lead_generation\', \'lead_management\', \'lead_nurturing\', \'marketing_events\', \'mass_alerts\', \'meetings/collaboration\', \'order_notifications\', \'outbound_dialer\', \'pharmacy\', \'phone_system\', \'purchase_confirmation\', \'remote_appointments\', \'rewards_program\', \'self-service\', \'service_alerts\', \'shift_management\', \'survey/research\', \'telehealth\', \'telemarketing\', \'therapy_(individual+group)\'. */
@@ -447,6 +471,14 @@ export function CallSummariesListInstance(
447471
);
448472
if (params["brandedBundleSid"] !== undefined)
449473
data["BrandedBundleSid"] = params["brandedBundleSid"];
474+
if (params["brandedLogo"] !== undefined)
475+
data["BrandedLogo"] = serialize.bool(params["brandedLogo"]);
476+
if (params["brandedType"] !== undefined)
477+
data["BrandedType"] = params["brandedType"];
478+
if (params["brandedUseCase"] !== undefined)
479+
data["BrandedUseCase"] = params["brandedUseCase"];
480+
if (params["brandedCallReason"] !== undefined)
481+
data["BrandedCallReason"] = params["brandedCallReason"];
450482
if (params["voiceIntegrityBundleSid"] !== undefined)
451483
data["VoiceIntegrityBundleSid"] = params["voiceIntegrityBundleSid"];
452484
if (params["voiceIntegrityUseCase"] !== undefined)

src/rest/numbers/V1.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import { PortingPortInPhoneNumberListInstance } from "./v1/portingPortInPhoneNum
2121
import { PortingPortabilityListInstance } from "./v1/portingPortability";
2222
import { PortingWebhookConfigurationListInstance } from "./v1/portingWebhookConfiguration";
2323
import { PortingWebhookConfigurationDeleteListInstance } from "./v1/portingWebhookConfigurationDelete";
24-
import { PortingWebhookConfigurationFetchListInstance } from "./v1/portingWebhookConfigurationFetch";
2524
import { SigningRequestConfigurationListInstance } from "./v1/signingRequestConfiguration";
25+
import { WebhookListInstance } from "./v1/webhook";
2626

2727
export default class V1 extends Version {
2828
/**
@@ -48,10 +48,10 @@ export default class V1 extends Version {
4848
protected _portingWebhookConfigurations?: PortingWebhookConfigurationListInstance;
4949
/** portingWebhookConfigurationsDelete - { Twilio.Numbers.V1.PortingWebhookConfigurationDeleteListInstance } resource */
5050
protected _portingWebhookConfigurationsDelete?: PortingWebhookConfigurationDeleteListInstance;
51-
/** portingWebhookConfigurationFetch - { Twilio.Numbers.V1.PortingWebhookConfigurationFetchListInstance } resource */
52-
protected _portingWebhookConfigurationFetch?: PortingWebhookConfigurationFetchListInstance;
5351
/** signingRequestConfigurations - { Twilio.Numbers.V1.SigningRequestConfigurationListInstance } resource */
5452
protected _signingRequestConfigurations?: SigningRequestConfigurationListInstance;
53+
/** webhook - { Twilio.Numbers.V1.WebhookListInstance } resource */
54+
protected _webhook?: WebhookListInstance;
5555

5656
/** Getter for bulkEligibilities resource */
5757
get bulkEligibilities(): BulkEligibilityListInstance {
@@ -104,19 +104,17 @@ export default class V1 extends Version {
104104
return this._portingWebhookConfigurationsDelete;
105105
}
106106

107-
/** Getter for portingWebhookConfigurationFetch resource */
108-
get portingWebhookConfigurationFetch(): PortingWebhookConfigurationFetchListInstance {
109-
this._portingWebhookConfigurationFetch =
110-
this._portingWebhookConfigurationFetch ||
111-
PortingWebhookConfigurationFetchListInstance(this);
112-
return this._portingWebhookConfigurationFetch;
113-
}
114-
115107
/** Getter for signingRequestConfigurations resource */
116108
get signingRequestConfigurations(): SigningRequestConfigurationListInstance {
117109
this._signingRequestConfigurations =
118110
this._signingRequestConfigurations ||
119111
SigningRequestConfigurationListInstance(this);
120112
return this._signingRequestConfigurations;
121113
}
114+
115+
/** Getter for webhook resource */
116+
get webhook(): WebhookListInstance {
117+
this._webhook = this._webhook || WebhookListInstance(this);
118+
return this._webhook;
119+
}
122120
}

src/rest/numbers/v1/portingPortIn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ interface PortingPortInResource {
148148
target_port_in_time_range_start: string;
149149
target_port_in_time_range_end: string;
150150
port_in_request_status: string;
151-
losing_carrier_information: any;
151+
losing_carrier_information: Record<string, object>;
152152
phone_numbers: Array<any>;
153153
documents: Array<string>;
154154
date_created: Date;
@@ -218,7 +218,7 @@ export class PortingPortInInstance {
218218
/**
219219
* Details regarding the customer’s information with the losing carrier. These values will be used to generate the letter of authorization and should match the losing carrier’s data as closely as possible to ensure the port is accepted.
220220
*/
221-
losingCarrierInformation: any;
221+
losingCarrierInformation: Record<string, object>;
222222
phoneNumbers: Array<any>;
223223
/**
224224
* List of document SIDs for all phone numbers included in the port in request. At least one document SID referring to a document of the type Utility Bill is required.

src/rest/numbers/v1/portingWebhookConfigurationFetch.ts renamed to src/rest/numbers/v1/webhook.ts

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,23 @@ const deserialize = require("../../../base/deserialize");
1818
const serialize = require("../../../base/serialize");
1919
import { isValidPathParam } from "../../../base/utility";
2020

21-
export interface PortingWebhookConfigurationFetchSolution {}
21+
export interface WebhookSolution {}
2222

23-
export interface PortingWebhookConfigurationFetchListInstance {
23+
export interface WebhookListInstance {
2424
_version: V1;
25-
_solution: PortingWebhookConfigurationFetchSolution;
25+
_solution: WebhookSolution;
2626
_uri: string;
2727

2828
/**
29-
* Fetch a PortingWebhookConfigurationFetchInstance
29+
* Fetch a WebhookInstance
3030
*
3131
* @param callback - Callback to handle processed record
3232
*
33-
* @returns Resolves to processed PortingWebhookConfigurationFetchInstance
33+
* @returns Resolves to processed WebhookInstance
3434
*/
3535
fetch(
36-
callback?: (
37-
error: Error | null,
38-
item?: PortingWebhookConfigurationFetchInstance
39-
) => any
40-
): Promise<PortingWebhookConfigurationFetchInstance>;
36+
callback?: (error: Error | null, item?: WebhookInstance) => any
37+
): Promise<WebhookInstance>;
4138

4239
/**
4340
* Provide a user-friendly representation
@@ -46,21 +43,16 @@ export interface PortingWebhookConfigurationFetchListInstance {
4643
[inspect.custom](_depth: any, options: InspectOptions): any;
4744
}
4845

49-
export function PortingWebhookConfigurationFetchListInstance(
50-
version: V1
51-
): PortingWebhookConfigurationFetchListInstance {
52-
const instance = {} as PortingWebhookConfigurationFetchListInstance;
46+
export function WebhookListInstance(version: V1): WebhookListInstance {
47+
const instance = {} as WebhookListInstance;
5348

5449
instance._version = version;
5550
instance._solution = {};
5651
instance._uri = `/Porting/Configuration/Webhook`;
5752

5853
instance.fetch = function fetch(
59-
callback?: (
60-
error: Error | null,
61-
items: PortingWebhookConfigurationFetchInstance
62-
) => any
63-
): Promise<PortingWebhookConfigurationFetchInstance> {
54+
callback?: (error: Error | null, items: WebhookInstance) => any
55+
): Promise<WebhookInstance> {
6456
const headers: any = {};
6557
headers["Accept"] = "application/json";
6658

@@ -72,8 +64,7 @@ export function PortingWebhookConfigurationFetchListInstance(
7264
});
7365

7466
operationPromise = operationPromise.then(
75-
(payload) =>
76-
new PortingWebhookConfigurationFetchInstance(operationVersion, payload)
67+
(payload) => new WebhookInstance(operationVersion, payload)
7768
);
7869

7970
operationPromise = instance._version.setPromiseCallback(
@@ -97,10 +88,9 @@ export function PortingWebhookConfigurationFetchListInstance(
9788
return instance;
9889
}
9990

100-
interface PortingWebhookConfigurationFetchPayload
101-
extends PortingWebhookConfigurationFetchResource {}
91+
interface WebhookPayload extends WebhookResource {}
10292

103-
interface PortingWebhookConfigurationFetchResource {
93+
interface WebhookResource {
10494
url: string;
10595
port_in_target_url: string;
10696
port_out_target_url: string;
@@ -109,11 +99,8 @@ interface PortingWebhookConfigurationFetchResource {
10999
port_out_target_date_created: Date;
110100
}
111101

112-
export class PortingWebhookConfigurationFetchInstance {
113-
constructor(
114-
protected _version: V1,
115-
payload: PortingWebhookConfigurationFetchResource
116-
) {
102+
export class WebhookInstance {
103+
constructor(protected _version: V1, payload: WebhookResource) {
117104
this.url = payload.url;
118105
this.portInTargetUrl = payload.port_in_target_url;
119106
this.portOutTargetUrl = payload.port_out_target_url;

src/rest/numbers/v2/regulatoryCompliance/endUser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ interface EndUserResource {
266266
account_sid: string;
267267
friendly_name: string;
268268
type: EndUserType;
269-
attributes: any;
269+
attributes: Record<string, object>;
270270
date_created: Date;
271271
date_updated: Date;
272272
url: string;
@@ -305,7 +305,7 @@ export class EndUserInstance {
305305
/**
306306
* The set of parameters that are the attributes of the End Users resource which are listed in the End User Types.
307307
*/
308-
attributes: any;
308+
attributes: Record<string, object>;
309309
/**
310310
* The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
311311
*/

src/rest/numbers/v2/regulatoryCompliance/regulation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ interface RegulationResource {
210210
iso_country: string;
211211
number_type: string;
212212
end_user_type: RegulationEndUserType;
213-
requirements: any;
213+
requirements: Record<string, object>;
214214
url: string;
215215
}
216216

@@ -254,7 +254,7 @@ export class RegulationInstance {
254254
/**
255255
* The SID of an object that holds the regulatory information of the phone number country, phone number type, and end user type.
256256
*/
257-
requirements: any;
257+
requirements: Record<string, object>;
258258
/**
259259
* The absolute URL of the Regulation resource.
260260
*/

src/rest/numbers/v2/regulatoryCompliance/supportingDocument.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ interface SupportingDocumentResource {
289289
failure_reason: string;
290290
errors: Array<any>;
291291
type: string;
292-
attributes: any;
292+
attributes: Record<string, object>;
293293
date_created: Date;
294294
date_updated: Date;
295295
url: string;
@@ -352,7 +352,7 @@ export class SupportingDocumentInstance {
352352
/**
353353
* The set of parameters that are the attributes of the Supporting Documents resource which are listed in the Supporting Document Types.
354354
*/
355-
attributes: any;
355+
attributes: Record<string, object>;
356356
/**
357357
* The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
358358
*/

0 commit comments

Comments
 (0)