twilio 5.0.2 → 5.0.3
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/rest/api/v2010/account/call/payment.d.ts +1 -1
- package/lib/rest/api/v2010/account/conference.d.ts +22 -22
- package/lib/rest/conversations/v1/conversation.d.ts +6 -6
- package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +4 -0
- package/lib/rest/flexApi/v1/plugin/pluginVersions.js +4 -0
- package/lib/rest/flexApi/v1/plugin.d.ts +0 -4
- package/lib/rest/flexApi/v1/plugin.js +0 -4
- package/lib/rest/lookups/v2/phoneNumber.d.ts +9 -1
- package/lib/rest/lookups/v2/phoneNumber.js +4 -0
- package/lib/rest/messaging/v1/service.d.ts +6 -0
- package/lib/rest/messaging/v1/service.js +2 -0
- package/lib/rest/verify/v2/service.d.ts +11 -0
- package/lib/rest/verify/v2/service.js +10 -0
- package/lib/twiml/VoiceResponse.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ export type PaymentBankAccountType = "consumer-checking" | "consumer-savings" |
|
|
|
5
5
|
export type PaymentCapture = "payment-card-number" | "expiration-date" | "security-code" | "postal-code" | "bank-routing-number" | "bank-account-number";
|
|
6
6
|
export type PaymentPaymentMethod = "credit-card" | "ach-debit";
|
|
7
7
|
export type PaymentStatus = "complete" | "cancel";
|
|
8
|
-
export type PaymentTokenType = "one-time" | "reusable";
|
|
8
|
+
export type PaymentTokenType = "one-time" | "reusable" | "payment-method";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a PaymentInstance
|
|
11
11
|
*/
|
|
@@ -23,17 +23,17 @@ export interface ConferenceContextUpdateOptions {
|
|
|
23
23
|
* Options to pass to each
|
|
24
24
|
*/
|
|
25
25
|
export interface ConferenceListInstanceEachOptions {
|
|
26
|
-
/**
|
|
26
|
+
/** Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. */
|
|
27
27
|
dateCreated?: Date;
|
|
28
|
-
/**
|
|
28
|
+
/** Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. */
|
|
29
29
|
dateCreatedBefore?: Date;
|
|
30
|
-
/**
|
|
30
|
+
/** Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. */
|
|
31
31
|
dateCreatedAfter?: Date;
|
|
32
|
-
/**
|
|
32
|
+
/** Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. */
|
|
33
33
|
dateUpdated?: Date;
|
|
34
|
-
/**
|
|
34
|
+
/** Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. */
|
|
35
35
|
dateUpdatedBefore?: Date;
|
|
36
|
-
/**
|
|
36
|
+
/** Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. */
|
|
37
37
|
dateUpdatedAfter?: Date;
|
|
38
38
|
/** The string that identifies the Conference resources to read. */
|
|
39
39
|
friendlyName?: string;
|
|
@@ -52,17 +52,17 @@ export interface ConferenceListInstanceEachOptions {
|
|
|
52
52
|
* Options to pass to list
|
|
53
53
|
*/
|
|
54
54
|
export interface ConferenceListInstanceOptions {
|
|
55
|
-
/**
|
|
55
|
+
/** Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. */
|
|
56
56
|
dateCreated?: Date;
|
|
57
|
-
/**
|
|
57
|
+
/** Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. */
|
|
58
58
|
dateCreatedBefore?: Date;
|
|
59
|
-
/**
|
|
59
|
+
/** Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. */
|
|
60
60
|
dateCreatedAfter?: Date;
|
|
61
|
-
/**
|
|
61
|
+
/** Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. */
|
|
62
62
|
dateUpdated?: Date;
|
|
63
|
-
/**
|
|
63
|
+
/** Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. */
|
|
64
64
|
dateUpdatedBefore?: Date;
|
|
65
|
-
/**
|
|
65
|
+
/** Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. */
|
|
66
66
|
dateUpdatedAfter?: Date;
|
|
67
67
|
/** The string that identifies the Conference resources to read. */
|
|
68
68
|
friendlyName?: string;
|
|
@@ -77,17 +77,17 @@ export interface ConferenceListInstanceOptions {
|
|
|
77
77
|
* Options to pass to page
|
|
78
78
|
*/
|
|
79
79
|
export interface ConferenceListInstancePageOptions {
|
|
80
|
-
/**
|
|
80
|
+
/** Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. */
|
|
81
81
|
dateCreated?: Date;
|
|
82
|
-
/**
|
|
82
|
+
/** Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. */
|
|
83
83
|
dateCreatedBefore?: Date;
|
|
84
|
-
/**
|
|
84
|
+
/** Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. */
|
|
85
85
|
dateCreatedAfter?: Date;
|
|
86
|
-
/**
|
|
86
|
+
/** Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. */
|
|
87
87
|
dateUpdated?: Date;
|
|
88
|
-
/**
|
|
88
|
+
/** Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. */
|
|
89
89
|
dateUpdatedBefore?: Date;
|
|
90
|
-
/**
|
|
90
|
+
/** Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. */
|
|
91
91
|
dateUpdatedAfter?: Date;
|
|
92
92
|
/** The string that identifies the Conference resources to read. */
|
|
93
93
|
friendlyName?: string;
|
|
@@ -184,11 +184,11 @@ export declare class ConferenceInstance {
|
|
|
184
184
|
*/
|
|
185
185
|
accountSid: string;
|
|
186
186
|
/**
|
|
187
|
-
* The date and time in
|
|
187
|
+
* The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
188
188
|
*/
|
|
189
189
|
dateCreated: Date;
|
|
190
190
|
/**
|
|
191
|
-
* The date and time in
|
|
191
|
+
* The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
192
192
|
*/
|
|
193
193
|
dateUpdated: Date;
|
|
194
194
|
/**
|
|
@@ -196,7 +196,7 @@ export declare class ConferenceInstance {
|
|
|
196
196
|
*/
|
|
197
197
|
apiVersion: string;
|
|
198
198
|
/**
|
|
199
|
-
* A string that you assigned to describe this conference room.
|
|
199
|
+
* A string that you assigned to describe this conference room. Maximum length is 128 characters.
|
|
200
200
|
*/
|
|
201
201
|
friendlyName: string;
|
|
202
202
|
/**
|
|
@@ -204,7 +204,7 @@ export declare class ConferenceInstance {
|
|
|
204
204
|
*/
|
|
205
205
|
region: string;
|
|
206
206
|
/**
|
|
207
|
-
* The unique string
|
|
207
|
+
* The unique, Twilio-provided string used to identify this Conference resource.
|
|
208
208
|
*/
|
|
209
209
|
sid: string;
|
|
210
210
|
status: ConferenceStatus;
|
|
@@ -77,9 +77,9 @@ export interface ConversationListInstanceCreateOptions {
|
|
|
77
77
|
* Options to pass to each
|
|
78
78
|
*/
|
|
79
79
|
export interface ConversationListInstanceEachOptions {
|
|
80
|
-
/**
|
|
80
|
+
/** Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
|
|
81
81
|
startDate?: string;
|
|
82
|
-
/**
|
|
82
|
+
/** Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
|
|
83
83
|
endDate?: string;
|
|
84
84
|
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
|
|
85
85
|
state?: ConversationState;
|
|
@@ -96,9 +96,9 @@ export interface ConversationListInstanceEachOptions {
|
|
|
96
96
|
* Options to pass to list
|
|
97
97
|
*/
|
|
98
98
|
export interface ConversationListInstanceOptions {
|
|
99
|
-
/**
|
|
99
|
+
/** Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
|
|
100
100
|
startDate?: string;
|
|
101
|
-
/**
|
|
101
|
+
/** Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
|
|
102
102
|
endDate?: string;
|
|
103
103
|
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
|
|
104
104
|
state?: ConversationState;
|
|
@@ -111,9 +111,9 @@ export interface ConversationListInstanceOptions {
|
|
|
111
111
|
* Options to pass to page
|
|
112
112
|
*/
|
|
113
113
|
export interface ConversationListInstancePageOptions {
|
|
114
|
-
/**
|
|
114
|
+
/** Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
|
|
115
115
|
startDate?: string;
|
|
116
|
-
/**
|
|
116
|
+
/** Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
|
|
117
117
|
endDate?: string;
|
|
118
118
|
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
|
|
119
119
|
state?: ConversationState;
|
|
@@ -24,6 +24,10 @@ export interface PluginVersionsListInstanceCreateOptions {
|
|
|
24
24
|
changelog?: string;
|
|
25
25
|
/** Whether this Flex Plugin Version requires authorization. */
|
|
26
26
|
private?: boolean;
|
|
27
|
+
/** The version of Flex Plugins CLI used to create this plugin */
|
|
28
|
+
cliVersion?: string;
|
|
29
|
+
/** The validation status of the plugin, indicating whether it has been validated */
|
|
30
|
+
validateStatus?: string;
|
|
27
31
|
}
|
|
28
32
|
/**
|
|
29
33
|
* Options to pass to each
|
|
@@ -146,6 +146,10 @@ function PluginVersionsListInstance(version, pluginSid) {
|
|
|
146
146
|
data["Changelog"] = params["changelog"];
|
|
147
147
|
if (params["private"] !== undefined)
|
|
148
148
|
data["Private"] = serialize.bool(params["private"]);
|
|
149
|
+
if (params["cliVersion"] !== undefined)
|
|
150
|
+
data["CliVersion"] = params["cliVersion"];
|
|
151
|
+
if (params["validateStatus"] !== undefined)
|
|
152
|
+
data["ValidateStatus"] = params["validateStatus"];
|
|
149
153
|
const headers = {};
|
|
150
154
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
151
155
|
if (params["flexMetadata"] !== undefined)
|
|
@@ -34,10 +34,6 @@ export interface PluginListInstanceCreateOptions {
|
|
|
34
34
|
friendlyName?: string;
|
|
35
35
|
/** A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long */
|
|
36
36
|
description?: string;
|
|
37
|
-
/** The version of Flex Plugins CLI used to create this plugin */
|
|
38
|
-
cliVersion?: string;
|
|
39
|
-
/** The validation status of the plugin, indicating whether it has been validated */
|
|
40
|
-
validateStatus?: string;
|
|
41
37
|
}
|
|
42
38
|
/**
|
|
43
39
|
* Options to pass to each
|
|
@@ -179,10 +179,6 @@ function PluginListInstance(version) {
|
|
|
179
179
|
data["FriendlyName"] = params["friendlyName"];
|
|
180
180
|
if (params["description"] !== undefined)
|
|
181
181
|
data["Description"] = params["description"];
|
|
182
|
-
if (params["cliVersion"] !== undefined)
|
|
183
|
-
data["CliVersion"] = params["cliVersion"];
|
|
184
|
-
if (params["validateStatus"] !== undefined)
|
|
185
|
-
data["ValidateStatus"] = params["validateStatus"];
|
|
186
182
|
const headers = {};
|
|
187
183
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
188
184
|
if (params["flexMetadata"] !== undefined)
|
|
@@ -6,7 +6,7 @@ export type PhoneNumberValidationError = "TOO_SHORT" | "TOO_LONG" | "INVALID_BUT
|
|
|
6
6
|
* Options to pass to fetch a PhoneNumberInstance
|
|
7
7
|
*/
|
|
8
8
|
export interface PhoneNumberContextFetchOptions {
|
|
9
|
-
/** A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score. */
|
|
9
|
+
/** A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score, pre_fill. */
|
|
10
10
|
fields?: string;
|
|
11
11
|
/** The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format. */
|
|
12
12
|
countryCode?: string;
|
|
@@ -32,6 +32,8 @@ export interface PhoneNumberContextFetchOptions {
|
|
|
32
32
|
dateOfBirth?: string;
|
|
33
33
|
/** The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests. */
|
|
34
34
|
lastVerifiedDate?: string;
|
|
35
|
+
/** The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests. */
|
|
36
|
+
verificationSid?: string;
|
|
35
37
|
}
|
|
36
38
|
export interface PhoneNumberContext {
|
|
37
39
|
/**
|
|
@@ -90,6 +92,7 @@ interface PhoneNumberResource {
|
|
|
90
92
|
reassigned_number: any;
|
|
91
93
|
sms_pumping_risk: any;
|
|
92
94
|
phone_number_quality_score: any;
|
|
95
|
+
pre_fill: any;
|
|
93
96
|
url: string;
|
|
94
97
|
}
|
|
95
98
|
export declare class PhoneNumberInstance {
|
|
@@ -157,6 +160,10 @@ export declare class PhoneNumberInstance {
|
|
|
157
160
|
* An object that contains information of a mobile phone number quality score. Quality score will return a risk score about the phone number.
|
|
158
161
|
*/
|
|
159
162
|
phoneNumberQualityScore: any;
|
|
163
|
+
/**
|
|
164
|
+
* An object that contains pre fill information. pre_fill will return PII information associated with the phone number like first name, last name, address line, country code, state and postal code.
|
|
165
|
+
*/
|
|
166
|
+
preFill: any;
|
|
160
167
|
/**
|
|
161
168
|
* The absolute URL of the resource.
|
|
162
169
|
*/
|
|
@@ -200,6 +207,7 @@ export declare class PhoneNumberInstance {
|
|
|
200
207
|
reassignedNumber: any;
|
|
201
208
|
smsPumpingRisk: any;
|
|
202
209
|
phoneNumberQualityScore: any;
|
|
210
|
+
preFill: any;
|
|
203
211
|
url: string;
|
|
204
212
|
};
|
|
205
213
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -62,6 +62,8 @@ class PhoneNumberContextImpl {
|
|
|
62
62
|
data["DateOfBirth"] = params["dateOfBirth"];
|
|
63
63
|
if (params["lastVerifiedDate"] !== undefined)
|
|
64
64
|
data["LastVerifiedDate"] = params["lastVerifiedDate"];
|
|
65
|
+
if (params["verificationSid"] !== undefined)
|
|
66
|
+
data["VerificationSid"] = params["verificationSid"];
|
|
65
67
|
const headers = {};
|
|
66
68
|
const instance = this;
|
|
67
69
|
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
@@ -105,6 +107,7 @@ class PhoneNumberInstance {
|
|
|
105
107
|
this.reassignedNumber = payload.reassigned_number;
|
|
106
108
|
this.smsPumpingRisk = payload.sms_pumping_risk;
|
|
107
109
|
this.phoneNumberQualityScore = payload.phone_number_quality_score;
|
|
110
|
+
this.preFill = payload.pre_fill;
|
|
108
111
|
this.url = payload.url;
|
|
109
112
|
this._solution = { phoneNumber: phoneNumber || this.phoneNumber };
|
|
110
113
|
}
|
|
@@ -139,6 +142,7 @@ class PhoneNumberInstance {
|
|
|
139
142
|
reassignedNumber: this.reassignedNumber,
|
|
140
143
|
smsPumpingRisk: this.smsPumpingRisk,
|
|
141
144
|
phoneNumberQualityScore: this.phoneNumberQualityScore,
|
|
145
|
+
preFill: this.preFill,
|
|
142
146
|
url: this.url,
|
|
143
147
|
};
|
|
144
148
|
}
|
|
@@ -221,6 +221,7 @@ interface ServiceResource {
|
|
|
221
221
|
usecase: string;
|
|
222
222
|
us_app_to_person_registered: boolean;
|
|
223
223
|
use_inbound_webhook_on_number: boolean;
|
|
224
|
+
sending_windows: any;
|
|
224
225
|
}
|
|
225
226
|
export declare class ServiceInstance {
|
|
226
227
|
protected _version: V1;
|
|
@@ -316,6 +317,10 @@ export declare class ServiceInstance {
|
|
|
316
317
|
* A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service.
|
|
317
318
|
*/
|
|
318
319
|
useInboundWebhookOnNumber: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* A list of Sending Windows, which indicate defined time ranges in which a message can be sent, in the UTC time zone. Each window is defined by two strings, labeled \"start_time\" and \"end_time\".
|
|
322
|
+
*/
|
|
323
|
+
sendingWindows: any;
|
|
319
324
|
private get _proxy();
|
|
320
325
|
/**
|
|
321
326
|
* Remove a ServiceInstance
|
|
@@ -403,6 +408,7 @@ export declare class ServiceInstance {
|
|
|
403
408
|
usecase: string;
|
|
404
409
|
usAppToPersonRegistered: boolean;
|
|
405
410
|
useInboundWebhookOnNumber: boolean;
|
|
411
|
+
sendingWindows: any;
|
|
406
412
|
};
|
|
407
413
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
408
414
|
}
|
|
@@ -185,6 +185,7 @@ class ServiceInstance {
|
|
|
185
185
|
this.usecase = payload.usecase;
|
|
186
186
|
this.usAppToPersonRegistered = payload.us_app_to_person_registered;
|
|
187
187
|
this.useInboundWebhookOnNumber = payload.use_inbound_webhook_on_number;
|
|
188
|
+
this.sendingWindows = payload.sending_windows;
|
|
188
189
|
this._solution = { sid: sid || this.sid };
|
|
189
190
|
}
|
|
190
191
|
get _proxy() {
|
|
@@ -282,6 +283,7 @@ class ServiceInstance {
|
|
|
282
283
|
usecase: this.usecase,
|
|
283
284
|
usAppToPersonRegistered: this.usAppToPersonRegistered,
|
|
284
285
|
useInboundWebhookOnNumber: this.useInboundWebhookOnNumber,
|
|
286
|
+
sendingWindows: this.sendingWindows,
|
|
285
287
|
};
|
|
286
288
|
}
|
|
287
289
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -48,6 +48,10 @@ export interface ServiceContextUpdateOptions {
|
|
|
48
48
|
"totp.skew"?: number;
|
|
49
49
|
/** The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. */
|
|
50
50
|
defaultTemplateSid?: string;
|
|
51
|
+
/** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service. */
|
|
52
|
+
"whatsapp.msgServiceSid"?: string;
|
|
53
|
+
/** The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service. */
|
|
54
|
+
"whatsapp.from"?: string;
|
|
51
55
|
/** Whether to allow verifications from the service to reach the stream-events sinks if configured */
|
|
52
56
|
verifyEventSubscriptionEnabled?: boolean;
|
|
53
57
|
}
|
|
@@ -89,6 +93,10 @@ export interface ServiceListInstanceCreateOptions {
|
|
|
89
93
|
"totp.skew"?: number;
|
|
90
94
|
/** The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. */
|
|
91
95
|
defaultTemplateSid?: string;
|
|
96
|
+
/** The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users. */
|
|
97
|
+
"whatsapp.msgServiceSid"?: string;
|
|
98
|
+
/** The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID. */
|
|
99
|
+
"whatsapp.from"?: string;
|
|
92
100
|
/** Whether to allow verifications from the service to reach the stream-events sinks if configured */
|
|
93
101
|
verifyEventSubscriptionEnabled?: boolean;
|
|
94
102
|
}
|
|
@@ -223,6 +231,7 @@ interface ServiceResource {
|
|
|
223
231
|
push: any;
|
|
224
232
|
totp: any;
|
|
225
233
|
default_template_sid: string;
|
|
234
|
+
whatsapp: any;
|
|
226
235
|
verify_event_subscription_enabled: boolean;
|
|
227
236
|
date_created: Date;
|
|
228
237
|
date_updated: Date;
|
|
@@ -287,6 +296,7 @@ export declare class ServiceInstance {
|
|
|
287
296
|
*/
|
|
288
297
|
totp: any;
|
|
289
298
|
defaultTemplateSid: string;
|
|
299
|
+
whatsapp: any;
|
|
290
300
|
/**
|
|
291
301
|
* Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
292
302
|
*/
|
|
@@ -389,6 +399,7 @@ export declare class ServiceInstance {
|
|
|
389
399
|
push: any;
|
|
390
400
|
totp: any;
|
|
391
401
|
defaultTemplateSid: string;
|
|
402
|
+
whatsapp: any;
|
|
392
403
|
verifyEventSubscriptionEnabled: boolean;
|
|
393
404
|
dateCreated: Date;
|
|
394
405
|
dateUpdated: Date;
|
|
@@ -140,6 +140,10 @@ class ServiceContextImpl {
|
|
|
140
140
|
data["Totp.Skew"] = params["totp.skew"];
|
|
141
141
|
if (params["defaultTemplateSid"] !== undefined)
|
|
142
142
|
data["DefaultTemplateSid"] = params["defaultTemplateSid"];
|
|
143
|
+
if (params["whatsapp.msgServiceSid"] !== undefined)
|
|
144
|
+
data["Whatsapp.MsgServiceSid"] = params["whatsapp.msgServiceSid"];
|
|
145
|
+
if (params["whatsapp.from"] !== undefined)
|
|
146
|
+
data["Whatsapp.From"] = params["whatsapp.from"];
|
|
143
147
|
if (params["verifyEventSubscriptionEnabled"] !== undefined)
|
|
144
148
|
data["VerifyEventSubscriptionEnabled"] = serialize.bool(params["verifyEventSubscriptionEnabled"]);
|
|
145
149
|
const headers = {};
|
|
@@ -185,6 +189,7 @@ class ServiceInstance {
|
|
|
185
189
|
this.push = payload.push;
|
|
186
190
|
this.totp = payload.totp;
|
|
187
191
|
this.defaultTemplateSid = payload.default_template_sid;
|
|
192
|
+
this.whatsapp = payload.whatsapp;
|
|
188
193
|
this.verifyEventSubscriptionEnabled =
|
|
189
194
|
payload.verify_event_subscription_enabled;
|
|
190
195
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
@@ -285,6 +290,7 @@ class ServiceInstance {
|
|
|
285
290
|
push: this.push,
|
|
286
291
|
totp: this.totp,
|
|
287
292
|
defaultTemplateSid: this.defaultTemplateSid,
|
|
293
|
+
whatsapp: this.whatsapp,
|
|
288
294
|
verifyEventSubscriptionEnabled: this.verifyEventSubscriptionEnabled,
|
|
289
295
|
dateCreated: this.dateCreated,
|
|
290
296
|
dateUpdated: this.dateUpdated,
|
|
@@ -347,6 +353,10 @@ function ServiceListInstance(version) {
|
|
|
347
353
|
data["Totp.Skew"] = params["totp.skew"];
|
|
348
354
|
if (params["defaultTemplateSid"] !== undefined)
|
|
349
355
|
data["DefaultTemplateSid"] = params["defaultTemplateSid"];
|
|
356
|
+
if (params["whatsapp.msgServiceSid"] !== undefined)
|
|
357
|
+
data["Whatsapp.MsgServiceSid"] = params["whatsapp.msgServiceSid"];
|
|
358
|
+
if (params["whatsapp.from"] !== undefined)
|
|
359
|
+
data["Whatsapp.From"] = params["whatsapp.from"];
|
|
350
360
|
if (params["verifyEventSubscriptionEnabled"] !== undefined)
|
|
351
361
|
data["VerifyEventSubscriptionEnabled"] = serialize.bool(params["verifyEventSubscriptionEnabled"]);
|
|
352
362
|
const headers = {};
|
|
@@ -192,7 +192,7 @@ declare namespace VoiceResponse {
|
|
|
192
192
|
type PayLanguage = "de-DE" | "en-AU" | "en-CA" | "en-GB" | "en-IN" | "en-IE" | "en-NZ" | "en-PH" | "en-ZA" | "en-US" | "es-ES" | "es-US" | "fr-CA" | "fr-FR" | "it-IT";
|
|
193
193
|
type PayPaymentMethod = "ach-debit" | "credit-card";
|
|
194
194
|
type PayStatusCallbackMethod = "GET" | "POST";
|
|
195
|
-
type PayTokenType = "one-time" | "reusable";
|
|
195
|
+
type PayTokenType = "one-time" | "reusable" | "payment-method";
|
|
196
196
|
type PayValidCardTypes = "visa" | "mastercard" | "amex" | "maestro" | "discover" | "optima" | "jcb" | "diners-club" | "enroute";
|
|
197
197
|
type PromptCardType = "visa" | "mastercard" | "amex" | "maestro" | "discover" | "optima" | "jcb" | "diners-club" | "enroute";
|
|
198
198
|
type PromptErrorType = "timeout" | "invalid-card-number" | "invalid-card-type" | "invalid-date" | "invalid-security-code" | "internal-error" | "input-matching-failed";
|