twilio 4.11.2 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,8 +56,6 @@ export interface MessageListInstanceCreateOptions {
|
|
|
56
56
|
sendAt?: Date;
|
|
57
57
|
/** If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media. */
|
|
58
58
|
sendAsMms?: boolean;
|
|
59
|
-
/** 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. */
|
|
60
|
-
contentSid?: string;
|
|
61
59
|
/** 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. */
|
|
62
60
|
contentVariables?: string;
|
|
63
61
|
/** 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. */
|
|
@@ -68,6 +66,8 @@ export interface MessageListInstanceCreateOptions {
|
|
|
68
66
|
body?: string;
|
|
69
67
|
/** 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. */
|
|
70
68
|
mediaUrl?: Array<string>;
|
|
69
|
+
/** 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. */
|
|
70
|
+
contentSid?: string;
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Options to pass to each
|
|
@@ -256,8 +256,6 @@ function MessageListInstance(version, accountSid) {
|
|
|
256
256
|
data["SendAt"] = serialize.iso8601DateTime(params["sendAt"]);
|
|
257
257
|
if (params["sendAsMms"] !== undefined)
|
|
258
258
|
data["SendAsMms"] = serialize.bool(params["sendAsMms"]);
|
|
259
|
-
if (params["contentSid"] !== undefined)
|
|
260
|
-
data["ContentSid"] = params["contentSid"];
|
|
261
259
|
if (params["contentVariables"] !== undefined)
|
|
262
260
|
data["ContentVariables"] = params["contentVariables"];
|
|
263
261
|
if (params["from"] !== undefined)
|
|
@@ -268,6 +266,8 @@ function MessageListInstance(version, accountSid) {
|
|
|
268
266
|
data["Body"] = params["body"];
|
|
269
267
|
if (params["mediaUrl"] !== undefined)
|
|
270
268
|
data["MediaUrl"] = serialize.map(params["mediaUrl"], (e) => e);
|
|
269
|
+
if (params["contentSid"] !== undefined)
|
|
270
|
+
data["ContentSid"] = params["contentSid"];
|
|
271
271
|
const headers = {};
|
|
272
272
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
273
273
|
let operationVersion = version, operationPromise = operationVersion.create({
|
|
@@ -52,13 +52,13 @@ export interface CallSummariesListInstanceEachOptions {
|
|
|
52
52
|
/** */
|
|
53
53
|
answeredBy?: CallSummariesAnsweredBy;
|
|
54
54
|
/** */
|
|
55
|
-
|
|
55
|
+
connectivityIssue?: string;
|
|
56
56
|
/** */
|
|
57
|
-
|
|
57
|
+
qualityIssue?: string;
|
|
58
58
|
/** */
|
|
59
59
|
spam?: boolean;
|
|
60
60
|
/** */
|
|
61
|
-
|
|
61
|
+
callScore?: string;
|
|
62
62
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
63
63
|
pageSize?: number;
|
|
64
64
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
@@ -111,13 +111,13 @@ export interface CallSummariesListInstanceOptions {
|
|
|
111
111
|
/** */
|
|
112
112
|
answeredBy?: CallSummariesAnsweredBy;
|
|
113
113
|
/** */
|
|
114
|
-
|
|
114
|
+
connectivityIssue?: string;
|
|
115
115
|
/** */
|
|
116
|
-
|
|
116
|
+
qualityIssue?: string;
|
|
117
117
|
/** */
|
|
118
118
|
spam?: boolean;
|
|
119
119
|
/** */
|
|
120
|
-
|
|
120
|
+
callScore?: string;
|
|
121
121
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
122
122
|
pageSize?: number;
|
|
123
123
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
@@ -166,13 +166,13 @@ export interface CallSummariesListInstancePageOptions {
|
|
|
166
166
|
/** */
|
|
167
167
|
answeredBy?: CallSummariesAnsweredBy;
|
|
168
168
|
/** */
|
|
169
|
-
|
|
169
|
+
connectivityIssue?: string;
|
|
170
170
|
/** */
|
|
171
|
-
|
|
171
|
+
qualityIssue?: string;
|
|
172
172
|
/** */
|
|
173
173
|
spam?: boolean;
|
|
174
174
|
/** */
|
|
175
|
-
|
|
175
|
+
callScore?: string;
|
|
176
176
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
177
177
|
pageSize?: number;
|
|
178
178
|
/** Page Number, this value is simply for client state */
|
|
@@ -269,6 +269,7 @@ interface CallSummariesResource {
|
|
|
269
269
|
attributes: any;
|
|
270
270
|
properties: any;
|
|
271
271
|
trust: any;
|
|
272
|
+
annotation: any;
|
|
272
273
|
}
|
|
273
274
|
export declare class CallSummariesInstance {
|
|
274
275
|
protected _version: V1;
|
|
@@ -295,6 +296,7 @@ export declare class CallSummariesInstance {
|
|
|
295
296
|
attributes: any;
|
|
296
297
|
properties: any;
|
|
297
298
|
trust: any;
|
|
299
|
+
annotation: any;
|
|
298
300
|
/**
|
|
299
301
|
* Provide a user-friendly representation
|
|
300
302
|
*
|
|
@@ -323,6 +325,7 @@ export declare class CallSummariesInstance {
|
|
|
323
325
|
attributes: any;
|
|
324
326
|
properties: any;
|
|
325
327
|
trust: any;
|
|
328
|
+
annotation: any;
|
|
326
329
|
};
|
|
327
330
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
328
331
|
}
|
|
@@ -73,14 +73,14 @@ function CallSummariesListInstance(version) {
|
|
|
73
73
|
data["AbnormalSession"] = serialize.bool(params["abnormalSession"]);
|
|
74
74
|
if (params["answeredBy"] !== undefined)
|
|
75
75
|
data["AnsweredBy"] = params["answeredBy"];
|
|
76
|
-
if (params["
|
|
77
|
-
data["
|
|
78
|
-
if (params["
|
|
79
|
-
data["
|
|
76
|
+
if (params["connectivityIssue"] !== undefined)
|
|
77
|
+
data["ConnectivityIssue"] = params["connectivityIssue"];
|
|
78
|
+
if (params["qualityIssue"] !== undefined)
|
|
79
|
+
data["QualityIssue"] = params["qualityIssue"];
|
|
80
80
|
if (params["spam"] !== undefined)
|
|
81
81
|
data["Spam"] = serialize.bool(params["spam"]);
|
|
82
|
-
if (params["
|
|
83
|
-
data["
|
|
82
|
+
if (params["callScore"] !== undefined)
|
|
83
|
+
data["CallScore"] = params["callScore"];
|
|
84
84
|
if (params["pageSize"] !== undefined)
|
|
85
85
|
data["PageSize"] = params["pageSize"];
|
|
86
86
|
if (params.pageNumber !== undefined)
|
|
@@ -143,6 +143,7 @@ class CallSummariesInstance {
|
|
|
143
143
|
this.attributes = payload.attributes;
|
|
144
144
|
this.properties = payload.properties;
|
|
145
145
|
this.trust = payload.trust;
|
|
146
|
+
this.annotation = payload.annotation;
|
|
146
147
|
}
|
|
147
148
|
/**
|
|
148
149
|
* Provide a user-friendly representation
|
|
@@ -173,6 +174,7 @@ class CallSummariesInstance {
|
|
|
173
174
|
attributes: this.attributes,
|
|
174
175
|
properties: this.properties,
|
|
175
176
|
trust: this.trust,
|
|
177
|
+
annotation: this.annotation,
|
|
176
178
|
};
|
|
177
179
|
}
|
|
178
180
|
[util_1.inspect.custom](_depth, options) {
|