Skip to content

Commit

Permalink
[Librarian] Regenerated @ 0430a9c977225d55252b84f4d16e16ad2091cde1
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Jun 15, 2023
1 parent ffd281d commit 02f7ddf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
10 changes: 10 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
twilio-node changelog
=====================

[2023-06-15] Version 4.12.0
---------------------------
**Api**
- Added `content_sid` as conditional parameter
- Removed `content_sid` as optional field **(breaking change)**

**Insights**
- Added `annotation` to list summary output


[2023-06-01] Version 4.11.2
---------------------------
**Api**
Expand Down
8 changes: 4 additions & 4 deletions src/rest/api/v2010/account/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ export interface MessageListInstanceCreateOptions {
sendAt?: Date;
/** If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media. */
sendAsMms?: boolean;
/** 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. */
contentSid?: string;
/** 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. */
contentVariables?: string;
/** 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. */
Expand All @@ -109,6 +107,8 @@ export interface MessageListInstanceCreateOptions {
body?: string;
/** 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. */
mediaUrl?: Array<string>;
/** 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. */
contentSid?: string;
}
/**
* Options to pass to each
Expand Down Expand Up @@ -801,8 +801,6 @@ export function MessageListInstance(
data["SendAt"] = serialize.iso8601DateTime(params["sendAt"]);
if (params["sendAsMms"] !== undefined)
data["SendAsMms"] = serialize.bool(params["sendAsMms"]);
if (params["contentSid"] !== undefined)
data["ContentSid"] = params["contentSid"];
if (params["contentVariables"] !== undefined)
data["ContentVariables"] = params["contentVariables"];
if (params["from"] !== undefined) data["From"] = params["from"];
Expand All @@ -811,6 +809,8 @@ export function MessageListInstance(
if (params["body"] !== undefined) data["Body"] = params["body"];
if (params["mediaUrl"] !== undefined)
data["MediaUrl"] = serialize.map(params["mediaUrl"], (e: string) => e);
if (params["contentSid"] !== undefined)
data["ContentSid"] = params["contentSid"];

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
Expand Down
34 changes: 19 additions & 15 deletions src/rest/insights/v1/callSummaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ export interface CallSummariesListInstanceEachOptions {
/** */
answeredBy?: CallSummariesAnsweredBy;
/** */
connectivityIssues?: string;
connectivityIssue?: string;
/** */
qualityIssues?: string;
qualityIssue?: string;
/** */
spam?: boolean;
/** */
callScores?: string;
callScore?: string;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
/** Function to process each record. If this and a positional callback are passed, this one will be used */
Expand Down Expand Up @@ -154,13 +154,13 @@ export interface CallSummariesListInstanceOptions {
/** */
answeredBy?: CallSummariesAnsweredBy;
/** */
connectivityIssues?: string;
connectivityIssue?: string;
/** */
qualityIssues?: string;
qualityIssue?: string;
/** */
spam?: boolean;
/** */
callScores?: string;
callScore?: string;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
Expand Down Expand Up @@ -210,13 +210,13 @@ export interface CallSummariesListInstancePageOptions {
/** */
answeredBy?: CallSummariesAnsweredBy;
/** */
connectivityIssues?: string;
connectivityIssue?: string;
/** */
qualityIssues?: string;
qualityIssue?: string;
/** */
spam?: boolean;
/** */
callScores?: string;
callScore?: string;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
/** Page Number, this value is simply for client state */
Expand Down Expand Up @@ -371,14 +371,14 @@ export function CallSummariesListInstance(
data["AbnormalSession"] = serialize.bool(params["abnormalSession"]);
if (params["answeredBy"] !== undefined)
data["AnsweredBy"] = params["answeredBy"];
if (params["connectivityIssues"] !== undefined)
data["ConnectivityIssues"] = params["connectivityIssues"];
if (params["qualityIssues"] !== undefined)
data["QualityIssues"] = params["qualityIssues"];
if (params["connectivityIssue"] !== undefined)
data["ConnectivityIssue"] = params["connectivityIssue"];
if (params["qualityIssue"] !== undefined)
data["QualityIssue"] = params["qualityIssue"];
if (params["spam"] !== undefined)
data["Spam"] = serialize.bool(params["spam"]);
if (params["callScores"] !== undefined)
data["CallScores"] = params["callScores"];
if (params["callScore"] !== undefined)
data["CallScore"] = params["callScore"];
if (params["pageSize"] !== undefined) data["PageSize"] = params["pageSize"];

if (params.pageNumber !== undefined) data["Page"] = params.pageNumber;
Expand Down Expand Up @@ -466,6 +466,7 @@ interface CallSummariesResource {
attributes: any;
properties: any;
trust: any;
annotation: any;
}

export class CallSummariesInstance {
Expand All @@ -492,6 +493,7 @@ export class CallSummariesInstance {
this.attributes = payload.attributes;
this.properties = payload.properties;
this.trust = payload.trust;
this.annotation = payload.annotation;
}

accountSid: string;
Expand All @@ -516,6 +518,7 @@ export class CallSummariesInstance {
attributes: any;
properties: any;
trust: any;
annotation: any;

/**
* Provide a user-friendly representation
Expand Down Expand Up @@ -546,6 +549,7 @@ export class CallSummariesInstance {
attributes: this.attributes,
properties: this.properties,
trust: this.trust,
annotation: this.annotation,
};
}

Expand Down

0 comments on commit 02f7ddf

Please sign in to comment.