twilio 4.19.3 → 5.0.0-rc.1
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.
- package/lib/base/RequestClient.js +7 -2
- package/lib/rest/PreviewMessaging.d.ts +9 -0
- package/lib/rest/PreviewMessaging.js +15 -0
- package/lib/rest/PreviewMessagingBase.d.ts +13 -0
- package/lib/rest/PreviewMessagingBase.js +31 -0
- package/lib/rest/Twilio.d.ts +5 -0
- package/lib/rest/Twilio.js +6 -0
- package/lib/rest/api/v2010/account/call.d.ts +0 -24
- package/lib/rest/api/v2010/account/call.js +0 -8
- package/lib/rest/api/v2010/account/conference.d.ts +0 -24
- package/lib/rest/api/v2010/account/conference.js +0 -8
- package/lib/rest/api/v2010/account/message.d.ts +0 -12
- package/lib/rest/api/v2010/account/message.js +0 -4
- package/lib/rest/content/v1/content.d.ts +1 -1
- package/lib/rest/content/v1/contentAndApprovals.d.ts +1 -1
- package/lib/rest/content/v1/legacyContent.d.ts +1 -1
- package/lib/rest/conversations/v1/conversation/message.d.ts +2 -2
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +2 -2
- package/lib/rest/flexApi/v1/configuration.d.ts +17 -0
- package/lib/rest/flexApi/v1/configuration.js +20 -0
- package/lib/rest/intelligence/v2/service.d.ts +3 -3
- package/lib/rest/intelligence/v2/transcript.d.ts +1 -1
- package/lib/rest/notify/v1/service/notification.d.ts +1 -1
- package/lib/rest/notify/v1/service.d.ts +3 -3
- package/lib/rest/numbers/V1.d.ts +10 -0
- package/lib/rest/numbers/V1.js +13 -0
- package/lib/rest/numbers/v1/bulkEligibility.d.ts +8 -0
- package/lib/rest/numbers/v1/bulkEligibility.js +10 -1
- package/lib/rest/numbers/v1/eligibility.d.ts +45 -0
- package/lib/rest/numbers/v1/eligibility.js +62 -0
- package/lib/rest/numbers/v1/portingPortIn.d.ts +48 -0
- package/lib/rest/numbers/v1/portingPortIn.js +64 -0
- package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +8 -0
- package/lib/rest/numbers/v2/bulkHostedNumberOrder.js +10 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +0 -12
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +0 -4
- package/lib/rest/previewMessaging/V1.d.ts +20 -0
- package/lib/rest/previewMessaging/V1.js +42 -0
- package/lib/rest/previewMessaging/v1/broadcast.d.ts +108 -0
- package/lib/rest/previewMessaging/v1/broadcast.js +94 -0
- package/lib/rest/previewMessaging/v1/message.d.ts +178 -0
- package/lib/rest/previewMessaging/v1/message.js +91 -0
- package/lib/rest/supersim/v1/esimProfile.d.ts +4 -4
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +70 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.js +74 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +3 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.js +10 -0
- package/lib/rest/verify/v2/service.d.ts +0 -10
- package/lib/rest/verify/v2/service.js +0 -7
- package/package.json +1 -1
|
@@ -158,8 +158,13 @@ class RequestClient {
|
|
|
158
158
|
proxy: false,
|
|
159
159
|
validateStatus: (status) => status >= 100 && status < 600,
|
|
160
160
|
};
|
|
161
|
-
if (opts.data) {
|
|
162
|
-
|
|
161
|
+
if (opts.data && options.headers) {
|
|
162
|
+
if (options.headers["Content-Type"] === "application/x-www-form-urlencoded") {
|
|
163
|
+
options.data = qs_1.default.stringify(opts.data, { arrayFormat: "repeat" });
|
|
164
|
+
}
|
|
165
|
+
else if (options.headers["Content-Type"] === "application/json") {
|
|
166
|
+
options.data = opts.data;
|
|
167
|
+
}
|
|
163
168
|
}
|
|
164
169
|
if (opts.params) {
|
|
165
170
|
options.params = opts.params;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PreviewMessagingBase from "./PreviewMessagingBase";
|
|
2
|
+
import { MessageListInstance } from "./previewMessaging/v1/message";
|
|
3
|
+
declare class PreviewMessaging extends PreviewMessagingBase {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated - Use v1.messages; instead
|
|
6
|
+
*/
|
|
7
|
+
get messages(): MessageListInstance;
|
|
8
|
+
}
|
|
9
|
+
export = PreviewMessaging;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
const PreviewMessagingBase_1 = __importDefault(require("./PreviewMessagingBase"));
|
|
6
|
+
class PreviewMessaging extends PreviewMessagingBase_1.default {
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated - Use v1.messages; instead
|
|
9
|
+
*/
|
|
10
|
+
get messages() {
|
|
11
|
+
console.warn("messages is deprecated. Use v1.messages; instead.");
|
|
12
|
+
return this.v1.messages;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
module.exports = PreviewMessaging;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Domain from "../base/Domain";
|
|
2
|
+
import V1 from "./previewMessaging/V1";
|
|
3
|
+
declare class PreviewMessagingBase extends Domain {
|
|
4
|
+
_v1?: V1;
|
|
5
|
+
/**
|
|
6
|
+
* Initialize previewMessaging domain
|
|
7
|
+
*
|
|
8
|
+
* @param twilio - The twilio client
|
|
9
|
+
*/
|
|
10
|
+
constructor(twilio: any);
|
|
11
|
+
get v1(): V1;
|
|
12
|
+
}
|
|
13
|
+
export = PreviewMessagingBase;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
const Domain_1 = __importDefault(require("../base/Domain"));
|
|
16
|
+
const V1_1 = __importDefault(require("./previewMessaging/V1"));
|
|
17
|
+
class PreviewMessagingBase extends Domain_1.default {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize previewMessaging domain
|
|
20
|
+
*
|
|
21
|
+
* @param twilio - The twilio client
|
|
22
|
+
*/
|
|
23
|
+
constructor(twilio) {
|
|
24
|
+
super(twilio, "https://preview.messaging.twilio.com");
|
|
25
|
+
}
|
|
26
|
+
get v1() {
|
|
27
|
+
this._v1 = this._v1 || new V1_1.default(this);
|
|
28
|
+
return this._v1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
module.exports = PreviewMessagingBase;
|
package/lib/rest/Twilio.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import Intelligence from "./Intelligence";
|
|
|
14
14
|
import IpMessaging from "./IpMessaging";
|
|
15
15
|
import Lookups from "./Lookups";
|
|
16
16
|
import Media from "./Media";
|
|
17
|
+
import PreviewMessaging from "./PreviewMessaging";
|
|
17
18
|
import Messaging from "./Messaging";
|
|
18
19
|
import Microvisor from "./Microvisor";
|
|
19
20
|
import Monitor from "./Monitor";
|
|
@@ -92,6 +93,8 @@ declare class Twilio extends Client {
|
|
|
92
93
|
_lookups?: Lookups;
|
|
93
94
|
/** (Twilio.Media) - media domain */
|
|
94
95
|
_media?: Media;
|
|
96
|
+
/** (Twilio.PreviewMessaging) - previewMessaging domain */
|
|
97
|
+
_previewMessaging?: PreviewMessaging;
|
|
95
98
|
/** (Twilio.Messaging) - messaging domain */
|
|
96
99
|
_messaging?: Messaging;
|
|
97
100
|
/** (Twilio.Microvisor) - microvisor domain */
|
|
@@ -174,6 +177,8 @@ declare class Twilio extends Client {
|
|
|
174
177
|
get lookups(): Lookups;
|
|
175
178
|
/** Getter for (Twilio.Media) domain */
|
|
176
179
|
get media(): Media;
|
|
180
|
+
/** Getter for (Twilio.PreviewMessaging) domain */
|
|
181
|
+
get previewMessaging(): PreviewMessaging;
|
|
177
182
|
/** Getter for (Twilio.Messaging) domain */
|
|
178
183
|
get messaging(): Messaging;
|
|
179
184
|
/** Getter for (Twilio.Microvisor) domain */
|
package/lib/rest/Twilio.js
CHANGED
|
@@ -47,6 +47,7 @@ class Twilio extends BaseTwilio_1.Client {
|
|
|
47
47
|
this.ipMessaging;
|
|
48
48
|
this.lookups;
|
|
49
49
|
this.media;
|
|
50
|
+
this.previewMessaging;
|
|
50
51
|
this.messaging;
|
|
51
52
|
this.microvisor;
|
|
52
53
|
this.monitor;
|
|
@@ -135,6 +136,11 @@ class Twilio extends BaseTwilio_1.Client {
|
|
|
135
136
|
get media() {
|
|
136
137
|
return this._media ?? (this._media = new (require("./Media"))(this));
|
|
137
138
|
}
|
|
139
|
+
/** Getter for (Twilio.PreviewMessaging) domain */
|
|
140
|
+
get previewMessaging() {
|
|
141
|
+
return (this._previewMessaging ??
|
|
142
|
+
(this._previewMessaging = new (require("./PreviewMessaging"))(this)));
|
|
143
|
+
}
|
|
138
144
|
/** Getter for (Twilio.Messaging) domain */
|
|
139
145
|
get messaging() {
|
|
140
146
|
return (this._messaging ?? (this._messaging = new (require("./Messaging"))(this)));
|
|
@@ -128,16 +128,8 @@ export interface CallListInstanceEachOptions {
|
|
|
128
128
|
status?: CallStatus;
|
|
129
129
|
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
|
|
130
130
|
startTime?: Date;
|
|
131
|
-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
|
|
132
|
-
startTimeBefore?: Date;
|
|
133
|
-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
|
|
134
|
-
startTimeAfter?: Date;
|
|
135
131
|
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
|
|
136
132
|
endTime?: Date;
|
|
137
|
-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
|
|
138
|
-
endTimeBefore?: Date;
|
|
139
|
-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
|
|
140
|
-
endTimeAfter?: Date;
|
|
141
133
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
142
134
|
pageSize?: number;
|
|
143
135
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
@@ -161,16 +153,8 @@ export interface CallListInstanceOptions {
|
|
|
161
153
|
status?: CallStatus;
|
|
162
154
|
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
|
|
163
155
|
startTime?: Date;
|
|
164
|
-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
|
|
165
|
-
startTimeBefore?: Date;
|
|
166
|
-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
|
|
167
|
-
startTimeAfter?: Date;
|
|
168
156
|
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
|
|
169
157
|
endTime?: Date;
|
|
170
|
-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
|
|
171
|
-
endTimeBefore?: Date;
|
|
172
|
-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
|
|
173
|
-
endTimeAfter?: Date;
|
|
174
158
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
175
159
|
pageSize?: number;
|
|
176
160
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
@@ -190,16 +174,8 @@ export interface CallListInstancePageOptions {
|
|
|
190
174
|
status?: CallStatus;
|
|
191
175
|
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
|
|
192
176
|
startTime?: Date;
|
|
193
|
-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
|
|
194
|
-
startTimeBefore?: Date;
|
|
195
|
-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
|
|
196
|
-
startTimeAfter?: Date;
|
|
197
177
|
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
|
|
198
178
|
endTime?: Date;
|
|
199
|
-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
|
|
200
|
-
endTimeBefore?: Date;
|
|
201
|
-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
|
|
202
|
-
endTimeAfter?: Date;
|
|
203
179
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
204
180
|
pageSize?: number;
|
|
205
181
|
/** Page Number, this value is simply for client state */
|
|
@@ -458,16 +458,8 @@ function CallListInstance(version, accountSid) {
|
|
|
458
458
|
data["Status"] = params["status"];
|
|
459
459
|
if (params["startTime"] !== undefined)
|
|
460
460
|
data["StartTime"] = serialize.iso8601DateTime(params["startTime"]);
|
|
461
|
-
if (params["startTimeBefore"] !== undefined)
|
|
462
|
-
data["StartTime<"] = serialize.iso8601DateTime(params["startTimeBefore"]);
|
|
463
|
-
if (params["startTimeAfter"] !== undefined)
|
|
464
|
-
data["StartTime>"] = serialize.iso8601DateTime(params["startTimeAfter"]);
|
|
465
461
|
if (params["endTime"] !== undefined)
|
|
466
462
|
data["EndTime"] = serialize.iso8601DateTime(params["endTime"]);
|
|
467
|
-
if (params["endTimeBefore"] !== undefined)
|
|
468
|
-
data["EndTime<"] = serialize.iso8601DateTime(params["endTimeBefore"]);
|
|
469
|
-
if (params["endTimeAfter"] !== undefined)
|
|
470
|
-
data["EndTime>"] = serialize.iso8601DateTime(params["endTimeAfter"]);
|
|
471
463
|
if (params["pageSize"] !== undefined)
|
|
472
464
|
data["PageSize"] = params["pageSize"];
|
|
473
465
|
if (params.pageNumber !== undefined)
|
|
@@ -25,16 +25,8 @@ export interface ConferenceContextUpdateOptions {
|
|
|
25
25
|
export interface ConferenceListInstanceEachOptions {
|
|
26
26
|
/** The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. */
|
|
27
27
|
dateCreated?: Date;
|
|
28
|
-
/** The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. */
|
|
29
|
-
dateCreatedBefore?: Date;
|
|
30
|
-
/** The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. */
|
|
31
|
-
dateCreatedAfter?: Date;
|
|
32
28
|
/** The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. */
|
|
33
29
|
dateUpdated?: Date;
|
|
34
|
-
/** The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. */
|
|
35
|
-
dateUpdatedBefore?: Date;
|
|
36
|
-
/** The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. */
|
|
37
|
-
dateUpdatedAfter?: Date;
|
|
38
30
|
/** The string that identifies the Conference resources to read. */
|
|
39
31
|
friendlyName?: string;
|
|
40
32
|
/** The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. */
|
|
@@ -54,16 +46,8 @@ export interface ConferenceListInstanceEachOptions {
|
|
|
54
46
|
export interface ConferenceListInstanceOptions {
|
|
55
47
|
/** The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. */
|
|
56
48
|
dateCreated?: Date;
|
|
57
|
-
/** The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. */
|
|
58
|
-
dateCreatedBefore?: Date;
|
|
59
|
-
/** The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. */
|
|
60
|
-
dateCreatedAfter?: Date;
|
|
61
49
|
/** The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. */
|
|
62
50
|
dateUpdated?: Date;
|
|
63
|
-
/** The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. */
|
|
64
|
-
dateUpdatedBefore?: Date;
|
|
65
|
-
/** The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. */
|
|
66
|
-
dateUpdatedAfter?: Date;
|
|
67
51
|
/** The string that identifies the Conference resources to read. */
|
|
68
52
|
friendlyName?: string;
|
|
69
53
|
/** The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. */
|
|
@@ -79,16 +63,8 @@ export interface ConferenceListInstanceOptions {
|
|
|
79
63
|
export interface ConferenceListInstancePageOptions {
|
|
80
64
|
/** The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. */
|
|
81
65
|
dateCreated?: Date;
|
|
82
|
-
/** The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. */
|
|
83
|
-
dateCreatedBefore?: Date;
|
|
84
|
-
/** The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. */
|
|
85
|
-
dateCreatedAfter?: Date;
|
|
86
66
|
/** The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. */
|
|
87
67
|
dateUpdated?: Date;
|
|
88
|
-
/** The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. */
|
|
89
|
-
dateUpdatedBefore?: Date;
|
|
90
|
-
/** The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. */
|
|
91
|
-
dateUpdatedAfter?: Date;
|
|
92
68
|
/** The string that identifies the Conference resources to read. */
|
|
93
69
|
friendlyName?: string;
|
|
94
70
|
/** The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. */
|
|
@@ -195,16 +195,8 @@ function ConferenceListInstance(version, accountSid) {
|
|
|
195
195
|
let data = {};
|
|
196
196
|
if (params["dateCreated"] !== undefined)
|
|
197
197
|
data["DateCreated"] = serialize.iso8601Date(params["dateCreated"]);
|
|
198
|
-
if (params["dateCreatedBefore"] !== undefined)
|
|
199
|
-
data["DateCreated<"] = serialize.iso8601Date(params["dateCreatedBefore"]);
|
|
200
|
-
if (params["dateCreatedAfter"] !== undefined)
|
|
201
|
-
data["DateCreated>"] = serialize.iso8601Date(params["dateCreatedAfter"]);
|
|
202
198
|
if (params["dateUpdated"] !== undefined)
|
|
203
199
|
data["DateUpdated"] = serialize.iso8601Date(params["dateUpdated"]);
|
|
204
|
-
if (params["dateUpdatedBefore"] !== undefined)
|
|
205
|
-
data["DateUpdated<"] = serialize.iso8601Date(params["dateUpdatedBefore"]);
|
|
206
|
-
if (params["dateUpdatedAfter"] !== undefined)
|
|
207
|
-
data["DateUpdated>"] = serialize.iso8601Date(params["dateUpdatedAfter"]);
|
|
208
200
|
if (params["friendlyName"] !== undefined)
|
|
209
201
|
data["FriendlyName"] = params["friendlyName"];
|
|
210
202
|
if (params["status"] !== undefined)
|
|
@@ -82,10 +82,6 @@ export interface MessageListInstanceEachOptions {
|
|
|
82
82
|
from?: string;
|
|
83
83
|
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
84
84
|
dateSent?: Date;
|
|
85
|
-
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
86
|
-
dateSentBefore?: Date;
|
|
87
|
-
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
88
|
-
dateSentAfter?: Date;
|
|
89
85
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
90
86
|
pageSize?: number;
|
|
91
87
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
@@ -105,10 +101,6 @@ export interface MessageListInstanceOptions {
|
|
|
105
101
|
from?: string;
|
|
106
102
|
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
107
103
|
dateSent?: Date;
|
|
108
|
-
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
109
|
-
dateSentBefore?: Date;
|
|
110
|
-
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
111
|
-
dateSentAfter?: Date;
|
|
112
104
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
113
105
|
pageSize?: number;
|
|
114
106
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
@@ -124,10 +116,6 @@ export interface MessageListInstancePageOptions {
|
|
|
124
116
|
from?: string;
|
|
125
117
|
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
126
118
|
dateSent?: Date;
|
|
127
|
-
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
128
|
-
dateSentBefore?: Date;
|
|
129
|
-
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
130
|
-
dateSentAfter?: Date;
|
|
131
119
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
132
120
|
pageSize?: number;
|
|
133
121
|
/** Page Number, this value is simply for client state */
|
|
@@ -297,10 +297,6 @@ function MessageListInstance(version, accountSid) {
|
|
|
297
297
|
data["From"] = params["from"];
|
|
298
298
|
if (params["dateSent"] !== undefined)
|
|
299
299
|
data["DateSent"] = serialize.iso8601DateTime(params["dateSent"]);
|
|
300
|
-
if (params["dateSentBefore"] !== undefined)
|
|
301
|
-
data["DateSent<"] = serialize.iso8601DateTime(params["dateSentBefore"]);
|
|
302
|
-
if (params["dateSentAfter"] !== undefined)
|
|
303
|
-
data["DateSent>"] = serialize.iso8601DateTime(params["dateSentAfter"]);
|
|
304
300
|
if (params["pageSize"] !== undefined)
|
|
305
301
|
data["PageSize"] = params["pageSize"];
|
|
306
302
|
if (params.pageNumber !== undefined)
|
|
@@ -130,7 +130,7 @@ export declare class ContentInstance {
|
|
|
130
130
|
*/
|
|
131
131
|
variables: any;
|
|
132
132
|
/**
|
|
133
|
-
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
133
|
+
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
134
134
|
*/
|
|
135
135
|
types: any;
|
|
136
136
|
/**
|
|
@@ -145,7 +145,7 @@ export declare class ContentAndApprovalsInstance {
|
|
|
145
145
|
*/
|
|
146
146
|
variables: any;
|
|
147
147
|
/**
|
|
148
|
-
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
148
|
+
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
149
149
|
*/
|
|
150
150
|
types: any;
|
|
151
151
|
/**
|
|
@@ -147,7 +147,7 @@ export declare class LegacyContentInstance {
|
|
|
147
147
|
*/
|
|
148
148
|
variables: any;
|
|
149
149
|
/**
|
|
150
|
-
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
150
|
+
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
151
151
|
*/
|
|
152
152
|
types: any;
|
|
153
153
|
/**
|
|
@@ -50,7 +50,7 @@ export interface MessageListInstanceCreateOptions {
|
|
|
50
50
|
attributes?: string;
|
|
51
51
|
/** The Media SID to be attached to the new Message. */
|
|
52
52
|
mediaSid?: string;
|
|
53
|
-
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
|
|
53
|
+
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
|
|
54
54
|
contentSid?: string;
|
|
55
55
|
/** A structurally valid JSON string that contains values to resolve Rich Content template variables. */
|
|
56
56
|
contentVariables?: string;
|
|
@@ -250,7 +250,7 @@ export declare class MessageInstance {
|
|
|
250
250
|
*/
|
|
251
251
|
links: Record<string, string>;
|
|
252
252
|
/**
|
|
253
|
-
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
|
|
253
|
+
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template.
|
|
254
254
|
*/
|
|
255
255
|
contentSid: string;
|
|
256
256
|
private get _proxy();
|
|
@@ -50,7 +50,7 @@ export interface MessageListInstanceCreateOptions {
|
|
|
50
50
|
attributes?: string;
|
|
51
51
|
/** The Media SID to be attached to the new Message. */
|
|
52
52
|
mediaSid?: string;
|
|
53
|
-
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
|
|
53
|
+
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
|
|
54
54
|
contentSid?: string;
|
|
55
55
|
/** A structurally valid JSON string that contains values to resolve Rich Content template variables. */
|
|
56
56
|
contentVariables?: string;
|
|
@@ -256,7 +256,7 @@ export declare class MessageInstance {
|
|
|
256
256
|
*/
|
|
257
257
|
links: Record<string, string>;
|
|
258
258
|
/**
|
|
259
|
-
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
|
|
259
|
+
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template.
|
|
260
260
|
*/
|
|
261
261
|
contentSid: string;
|
|
262
262
|
private get _proxy();
|
|
@@ -27,6 +27,14 @@ export interface ConfigurationContext {
|
|
|
27
27
|
* @returns Resolves to processed ConfigurationInstance
|
|
28
28
|
*/
|
|
29
29
|
fetch(params: ConfigurationContextFetchOptions, callback?: (error: Error | null, item?: ConfigurationInstance) => any): Promise<ConfigurationInstance>;
|
|
30
|
+
/**
|
|
31
|
+
* Update a ConfigurationInstance
|
|
32
|
+
*
|
|
33
|
+
* @param callback - Callback to handle processed record
|
|
34
|
+
*
|
|
35
|
+
* @returns Resolves to processed ConfigurationInstance
|
|
36
|
+
*/
|
|
37
|
+
update(callback?: (error: Error | null, item?: ConfigurationInstance) => any): Promise<ConfigurationInstance>;
|
|
30
38
|
/**
|
|
31
39
|
* Provide a user-friendly representation
|
|
32
40
|
*/
|
|
@@ -41,6 +49,7 @@ export declare class ConfigurationContextImpl implements ConfigurationContext {
|
|
|
41
49
|
protected _uri: string;
|
|
42
50
|
constructor(_version: V1);
|
|
43
51
|
fetch(params?: ConfigurationContextFetchOptions | ((error: Error | null, item?: ConfigurationInstance) => any), callback?: (error: Error | null, item?: ConfigurationInstance) => any): Promise<ConfigurationInstance>;
|
|
52
|
+
update(callback?: (error: Error | null, item?: ConfigurationInstance) => any): Promise<ConfigurationInstance>;
|
|
44
53
|
/**
|
|
45
54
|
* Provide a user-friendly representation
|
|
46
55
|
*
|
|
@@ -311,6 +320,14 @@ export declare class ConfigurationInstance {
|
|
|
311
320
|
* @returns Resolves to processed ConfigurationInstance
|
|
312
321
|
*/
|
|
313
322
|
fetch(params: ConfigurationContextFetchOptions, callback?: (error: Error | null, item?: ConfigurationInstance) => any): Promise<ConfigurationInstance>;
|
|
323
|
+
/**
|
|
324
|
+
* Update a ConfigurationInstance
|
|
325
|
+
*
|
|
326
|
+
* @param callback - Callback to handle processed record
|
|
327
|
+
*
|
|
328
|
+
* @returns Resolves to processed ConfigurationInstance
|
|
329
|
+
*/
|
|
330
|
+
update(callback?: (error: Error | null, item?: ConfigurationInstance) => any): Promise<ConfigurationInstance>;
|
|
314
331
|
/**
|
|
315
332
|
* Provide a user-friendly representation
|
|
316
333
|
*
|
|
@@ -46,6 +46,16 @@ class ConfigurationContextImpl {
|
|
|
46
46
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
47
47
|
return operationPromise;
|
|
48
48
|
}
|
|
49
|
+
update(callback) {
|
|
50
|
+
const instance = this;
|
|
51
|
+
let operationVersion = instance._version, operationPromise = operationVersion.update({
|
|
52
|
+
uri: instance._uri,
|
|
53
|
+
method: "post",
|
|
54
|
+
});
|
|
55
|
+
operationPromise = operationPromise.then((payload) => new ConfigurationInstance(operationVersion, payload));
|
|
56
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
57
|
+
return operationPromise;
|
|
58
|
+
}
|
|
49
59
|
/**
|
|
50
60
|
* Provide a user-friendly representation
|
|
51
61
|
*
|
|
@@ -120,6 +130,16 @@ class ConfigurationInstance {
|
|
|
120
130
|
fetch(params, callback) {
|
|
121
131
|
return this._proxy.fetch(params, callback);
|
|
122
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Update a ConfigurationInstance
|
|
135
|
+
*
|
|
136
|
+
* @param callback - Callback to handle processed record
|
|
137
|
+
*
|
|
138
|
+
* @returns Resolves to processed ConfigurationInstance
|
|
139
|
+
*/
|
|
140
|
+
update(callback) {
|
|
141
|
+
return this._proxy.update(callback);
|
|
142
|
+
}
|
|
123
143
|
/**
|
|
124
144
|
* Provide a user-friendly representation
|
|
125
145
|
*
|
|
@@ -12,7 +12,7 @@ export interface ServiceContextUpdateOptions {
|
|
|
12
12
|
ifMatch?: string;
|
|
13
13
|
/** Instructs the Speech Recognition service to automatically transcribe all recordings made on the account. */
|
|
14
14
|
autoTranscribe?: boolean;
|
|
15
|
-
/** Data logging allows Twilio to improve the quality of the speech recognition
|
|
15
|
+
/** Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models. */
|
|
16
16
|
dataLogging?: boolean;
|
|
17
17
|
/** A human readable description of this resource, up to 64 characters. */
|
|
18
18
|
friendlyName?: string;
|
|
@@ -37,7 +37,7 @@ export interface ServiceListInstanceCreateOptions {
|
|
|
37
37
|
uniqueName: string;
|
|
38
38
|
/** Instructs the Speech Recognition service to automatically transcribe all recordings made on the account. */
|
|
39
39
|
autoTranscribe?: boolean;
|
|
40
|
-
/** Data logging allows Twilio to improve the quality of the speech recognition
|
|
40
|
+
/** Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models. */
|
|
41
41
|
dataLogging?: boolean;
|
|
42
42
|
/** A human readable description of this resource, up to 64 characters. */
|
|
43
43
|
friendlyName?: string;
|
|
@@ -186,7 +186,7 @@ export declare class ServiceInstance {
|
|
|
186
186
|
*/
|
|
187
187
|
autoTranscribe: boolean;
|
|
188
188
|
/**
|
|
189
|
-
* Data logging allows Twilio to improve the quality of the speech recognition
|
|
189
|
+
* Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
|
|
190
190
|
*/
|
|
191
191
|
dataLogging: boolean;
|
|
192
192
|
/**
|
|
@@ -202,7 +202,7 @@ export declare class TranscriptInstance {
|
|
|
202
202
|
*/
|
|
203
203
|
channel: any;
|
|
204
204
|
/**
|
|
205
|
-
* Data logging allows Twilio to improve the quality of the speech recognition
|
|
205
|
+
* Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
|
|
206
206
|
*/
|
|
207
207
|
dataLogging: boolean;
|
|
208
208
|
/**
|
|
@@ -24,7 +24,7 @@ export interface NotificationListInstanceCreateOptions {
|
|
|
24
24
|
apn?: any;
|
|
25
25
|
/** The GCM-specific payload that overrides corresponding attributes in the generic payload for GCM Bindings. This property maps to the root JSON dictionary. See the [GCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref) for more details. Target parameters `to`, `registration_ids`, and `notification_key` are not allowed. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. GCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref). */
|
|
26
26
|
gcm?: any;
|
|
27
|
-
/** The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/
|
|
27
|
+
/** The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/send-messages) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array. */
|
|
28
28
|
sms?: any;
|
|
29
29
|
/** Deprecated. */
|
|
30
30
|
facebookMessenger?: any;
|
|
@@ -15,7 +15,7 @@ export interface ServiceContextUpdateOptions {
|
|
|
15
15
|
apnCredentialSid?: string;
|
|
16
16
|
/** The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. */
|
|
17
17
|
gcmCredentialSid?: string;
|
|
18
|
-
/** The SID of the [Messaging Service](https://www.twilio.com/docs/sms/
|
|
18
|
+
/** The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. */
|
|
19
19
|
messagingServiceSid?: string;
|
|
20
20
|
/** Deprecated. */
|
|
21
21
|
facebookMessengerPageId?: string;
|
|
@@ -48,7 +48,7 @@ export interface ServiceListInstanceCreateOptions {
|
|
|
48
48
|
apnCredentialSid?: string;
|
|
49
49
|
/** The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. */
|
|
50
50
|
gcmCredentialSid?: string;
|
|
51
|
-
/** The SID of the [Messaging Service](https://www.twilio.com/docs/sms/
|
|
51
|
+
/** The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. */
|
|
52
52
|
messagingServiceSid?: string;
|
|
53
53
|
/** Deprecated. */
|
|
54
54
|
facebookMessengerPageId?: string;
|
|
@@ -238,7 +238,7 @@ export declare class ServiceInstance {
|
|
|
238
238
|
*/
|
|
239
239
|
fcmCredentialSid: string;
|
|
240
240
|
/**
|
|
241
|
-
* The SID of the [Messaging Service](https://www.twilio.com/docs/sms/
|
|
241
|
+
* The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. In order to send SMS notifications this parameter has to be set.
|
|
242
242
|
*/
|
|
243
243
|
messagingServiceSid: string;
|
|
244
244
|
/**
|
package/lib/rest/numbers/V1.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import NumbersBase from "../NumbersBase";
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
3
|
import { BulkEligibilityListInstance } from "./v1/bulkEligibility";
|
|
4
|
+
import { EligibilityListInstance } from "./v1/eligibility";
|
|
4
5
|
import { PortingBulkPortabilityListInstance } from "./v1/portingBulkPortability";
|
|
6
|
+
import { PortingPortInListInstance } from "./v1/portingPortIn";
|
|
5
7
|
import { PortingPortabilityListInstance } from "./v1/portingPortability";
|
|
6
8
|
export default class V1 extends Version {
|
|
7
9
|
/**
|
|
@@ -12,14 +14,22 @@ export default class V1 extends Version {
|
|
|
12
14
|
constructor(domain: NumbersBase);
|
|
13
15
|
/** bulkEligibilities - { Twilio.Numbers.V1.BulkEligibilityListInstance } resource */
|
|
14
16
|
protected _bulkEligibilities?: BulkEligibilityListInstance;
|
|
17
|
+
/** eligibilities - { Twilio.Numbers.V1.EligibilityListInstance } resource */
|
|
18
|
+
protected _eligibilities?: EligibilityListInstance;
|
|
15
19
|
/** portingBulkPortabilities - { Twilio.Numbers.V1.PortingBulkPortabilityListInstance } resource */
|
|
16
20
|
protected _portingBulkPortabilities?: PortingBulkPortabilityListInstance;
|
|
21
|
+
/** portingPortIns - { Twilio.Numbers.V1.PortingPortInListInstance } resource */
|
|
22
|
+
protected _portingPortIns?: PortingPortInListInstance;
|
|
17
23
|
/** portingPortabilities - { Twilio.Numbers.V1.PortingPortabilityListInstance } resource */
|
|
18
24
|
protected _portingPortabilities?: PortingPortabilityListInstance;
|
|
19
25
|
/** Getter for bulkEligibilities resource */
|
|
20
26
|
get bulkEligibilities(): BulkEligibilityListInstance;
|
|
27
|
+
/** Getter for eligibilities resource */
|
|
28
|
+
get eligibilities(): EligibilityListInstance;
|
|
21
29
|
/** Getter for portingBulkPortabilities resource */
|
|
22
30
|
get portingBulkPortabilities(): PortingBulkPortabilityListInstance;
|
|
31
|
+
/** Getter for portingPortIns resource */
|
|
32
|
+
get portingPortIns(): PortingPortInListInstance;
|
|
23
33
|
/** Getter for portingPortabilities resource */
|
|
24
34
|
get portingPortabilities(): PortingPortabilityListInstance;
|
|
25
35
|
}
|
package/lib/rest/numbers/V1.js
CHANGED
|
@@ -18,7 +18,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
20
|
const bulkEligibility_1 = require("./v1/bulkEligibility");
|
|
21
|
+
const eligibility_1 = require("./v1/eligibility");
|
|
21
22
|
const portingBulkPortability_1 = require("./v1/portingBulkPortability");
|
|
23
|
+
const portingPortIn_1 = require("./v1/portingPortIn");
|
|
22
24
|
const portingPortability_1 = require("./v1/portingPortability");
|
|
23
25
|
class V1 extends Version_1.default {
|
|
24
26
|
/**
|
|
@@ -35,6 +37,11 @@ class V1 extends Version_1.default {
|
|
|
35
37
|
this._bulkEligibilities || (0, bulkEligibility_1.BulkEligibilityListInstance)(this);
|
|
36
38
|
return this._bulkEligibilities;
|
|
37
39
|
}
|
|
40
|
+
/** Getter for eligibilities resource */
|
|
41
|
+
get eligibilities() {
|
|
42
|
+
this._eligibilities = this._eligibilities || (0, eligibility_1.EligibilityListInstance)(this);
|
|
43
|
+
return this._eligibilities;
|
|
44
|
+
}
|
|
38
45
|
/** Getter for portingBulkPortabilities resource */
|
|
39
46
|
get portingBulkPortabilities() {
|
|
40
47
|
this._portingBulkPortabilities =
|
|
@@ -42,6 +49,12 @@ class V1 extends Version_1.default {
|
|
|
42
49
|
(0, portingBulkPortability_1.PortingBulkPortabilityListInstance)(this);
|
|
43
50
|
return this._portingBulkPortabilities;
|
|
44
51
|
}
|
|
52
|
+
/** Getter for portingPortIns resource */
|
|
53
|
+
get portingPortIns() {
|
|
54
|
+
this._portingPortIns =
|
|
55
|
+
this._portingPortIns || (0, portingPortIn_1.PortingPortInListInstance)(this);
|
|
56
|
+
return this._portingPortIns;
|
|
57
|
+
}
|
|
45
58
|
/** Getter for portingPortabilities resource */
|
|
46
59
|
get portingPortabilities() {
|
|
47
60
|
this._portingPortabilities =
|