Skip to content

Commit 02f7ddf

Browse files
committed
[Librarian] Regenerated @ 0430a9c977225d55252b84f4d16e16ad2091cde1
1 parent ffd281d commit 02f7ddf

File tree

3 files changed

+33
-19
lines changed

3 files changed

+33
-19
lines changed

CHANGES.md

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

4+
[2023-06-15] Version 4.12.0
5+
---------------------------
6+
**Api**
7+
- Added `content_sid` as conditional parameter
8+
- Removed `content_sid` as optional field **(breaking change)**
9+
10+
**Insights**
11+
- Added `annotation` to list summary output
12+
13+
414
[2023-06-01] Version 4.11.2
515
---------------------------
616
**Api**

src/rest/api/v2010/account/message.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ export interface MessageListInstanceCreateOptions {
9797
sendAt?: Date;
9898
/** If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media. */
9999
sendAsMms?: boolean;
100-
/** The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized. */
101-
contentSid?: string;
102100
/** Key-value pairs of variable names to substitution values, used alongside a content_sid. If not specified, Content API will default to the default variables defined at create time. */
103101
contentVariables?: string;
104102
/** A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty. */
@@ -109,6 +107,8 @@ export interface MessageListInstanceCreateOptions {
109107
body?: string;
110108
/** The URL of the media to send with the message. The media can be of type `gif`, `png`, and `jpeg` and will be formatted correctly on the recipient\\\'s device. The media size limit is 5MB for supported file types (JPEG, PNG, GIF) and 500KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message body, provide multiple `media_url` parameters in the POST request. You can include up to 10 `media_url` parameters per message. You can send images in an SMS message in only the US and Canada. */
111109
mediaUrl?: Array<string>;
110+
/** The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized. */
111+
contentSid?: string;
112112
}
113113
/**
114114
* Options to pass to each
@@ -801,8 +801,6 @@ export function MessageListInstance(
801801
data["SendAt"] = serialize.iso8601DateTime(params["sendAt"]);
802802
if (params["sendAsMms"] !== undefined)
803803
data["SendAsMms"] = serialize.bool(params["sendAsMms"]);
804-
if (params["contentSid"] !== undefined)
805-
data["ContentSid"] = params["contentSid"];
806804
if (params["contentVariables"] !== undefined)
807805
data["ContentVariables"] = params["contentVariables"];
808806
if (params["from"] !== undefined) data["From"] = params["from"];
@@ -811,6 +809,8 @@ export function MessageListInstance(
811809
if (params["body"] !== undefined) data["Body"] = params["body"];
812810
if (params["mediaUrl"] !== undefined)
813811
data["MediaUrl"] = serialize.map(params["mediaUrl"], (e: string) => e);
812+
if (params["contentSid"] !== undefined)
813+
data["ContentSid"] = params["contentSid"];
814814

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

src/rest/insights/v1/callSummaries.ts

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ export interface CallSummariesListInstanceEachOptions {
9494
/** */
9595
answeredBy?: CallSummariesAnsweredBy;
9696
/** */
97-
connectivityIssues?: string;
97+
connectivityIssue?: string;
9898
/** */
99-
qualityIssues?: string;
99+
qualityIssue?: string;
100100
/** */
101101
spam?: boolean;
102102
/** */
103-
callScores?: string;
103+
callScore?: string;
104104
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
105105
pageSize?: number;
106106
/** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -154,13 +154,13 @@ export interface CallSummariesListInstanceOptions {
154154
/** */
155155
answeredBy?: CallSummariesAnsweredBy;
156156
/** */
157-
connectivityIssues?: string;
157+
connectivityIssue?: string;
158158
/** */
159-
qualityIssues?: string;
159+
qualityIssue?: string;
160160
/** */
161161
spam?: boolean;
162162
/** */
163-
callScores?: string;
163+
callScore?: string;
164164
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
165165
pageSize?: number;
166166
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -210,13 +210,13 @@ export interface CallSummariesListInstancePageOptions {
210210
/** */
211211
answeredBy?: CallSummariesAnsweredBy;
212212
/** */
213-
connectivityIssues?: string;
213+
connectivityIssue?: string;
214214
/** */
215-
qualityIssues?: string;
215+
qualityIssue?: string;
216216
/** */
217217
spam?: boolean;
218218
/** */
219-
callScores?: string;
219+
callScore?: string;
220220
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
221221
pageSize?: number;
222222
/** Page Number, this value is simply for client state */
@@ -371,14 +371,14 @@ export function CallSummariesListInstance(
371371
data["AbnormalSession"] = serialize.bool(params["abnormalSession"]);
372372
if (params["answeredBy"] !== undefined)
373373
data["AnsweredBy"] = params["answeredBy"];
374-
if (params["connectivityIssues"] !== undefined)
375-
data["ConnectivityIssues"] = params["connectivityIssues"];
376-
if (params["qualityIssues"] !== undefined)
377-
data["QualityIssues"] = params["qualityIssues"];
374+
if (params["connectivityIssue"] !== undefined)
375+
data["ConnectivityIssue"] = params["connectivityIssue"];
376+
if (params["qualityIssue"] !== undefined)
377+
data["QualityIssue"] = params["qualityIssue"];
378378
if (params["spam"] !== undefined)
379379
data["Spam"] = serialize.bool(params["spam"]);
380-
if (params["callScores"] !== undefined)
381-
data["CallScores"] = params["callScores"];
380+
if (params["callScore"] !== undefined)
381+
data["CallScore"] = params["callScore"];
382382
if (params["pageSize"] !== undefined) data["PageSize"] = params["pageSize"];
383383

384384
if (params.pageNumber !== undefined) data["Page"] = params.pageNumber;
@@ -466,6 +466,7 @@ interface CallSummariesResource {
466466
attributes: any;
467467
properties: any;
468468
trust: any;
469+
annotation: any;
469470
}
470471

471472
export class CallSummariesInstance {
@@ -492,6 +493,7 @@ export class CallSummariesInstance {
492493
this.attributes = payload.attributes;
493494
this.properties = payload.properties;
494495
this.trust = payload.trust;
496+
this.annotation = payload.annotation;
495497
}
496498

497499
accountSid: string;
@@ -516,6 +518,7 @@ export class CallSummariesInstance {
516518
attributes: any;
517519
properties: any;
518520
trust: any;
521+
annotation: any;
519522

520523
/**
521524
* Provide a user-friendly representation
@@ -546,6 +549,7 @@ export class CallSummariesInstance {
546549
attributes: this.attributes,
547550
properties: this.properties,
548551
trust: this.trust,
552+
annotation: this.annotation,
549553
};
550554
}
551555

0 commit comments

Comments
 (0)