twilio 5.8.2 → 5.9.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.
- package/README.md +54 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +2 -0
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +11 -12
- package/lib/rest/api/v2010/account/usage.d.ts +0 -4
- package/lib/rest/content/v1/content.d.ts +2 -0
- package/lib/rest/insights/v1/room/participant.d.ts +1 -1
- package/lib/rest/insights/v1/room.d.ts +1 -1
- package/lib/rest/messaging/v2/channelsSender.d.ts +41 -41
- package/lib/rest/messaging/v2/channelsSender.js +6 -6
- package/package.json +1 -1
|
@@ -3,27 +3,27 @@ import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
|
3
3
|
import Response from "../../../http/response";
|
|
4
4
|
import V2 from "../V2";
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
6
|
+
* The status of the sender.
|
|
7
7
|
*/
|
|
8
8
|
export type ChannelsSenderStatus = "CREATING" | "ONLINE" | "OFFLINE" | "PENDING_VERIFICATION" | "VERIFYING" | "ONLINE:UPDATING" | "TWILIO_REVIEW" | "DRAFT";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* The configuration settings for creating a sender.
|
|
11
11
|
*/
|
|
12
12
|
export declare class MessagingV2ChannelsSenderConfiguration {
|
|
13
13
|
/**
|
|
14
|
-
* The ID of the WhatsApp Business Account to use for this sender.
|
|
14
|
+
* The ID of the WhatsApp Business Account (WABA) to use for this sender.
|
|
15
15
|
*/
|
|
16
16
|
"waba_id"?: string | null;
|
|
17
17
|
/**
|
|
18
|
-
* The
|
|
18
|
+
* The verification method.
|
|
19
19
|
*/
|
|
20
20
|
"verification_method"?: string | null;
|
|
21
21
|
/**
|
|
22
|
-
* The verification code
|
|
22
|
+
* The verification code.
|
|
23
23
|
*/
|
|
24
24
|
"verification_code"?: string | null;
|
|
25
25
|
/**
|
|
26
|
-
* The SID of the Twilio Voice application
|
|
26
|
+
* The SID of the Twilio Voice application.
|
|
27
27
|
*/
|
|
28
28
|
"voice_application_sid"?: string | null;
|
|
29
29
|
}
|
|
@@ -42,15 +42,15 @@ export declare class MessagingV2ChannelsSenderOfflineReasonsItems {
|
|
|
42
42
|
"more_info"?: string | null;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* The profile information for the sender.
|
|
46
46
|
*/
|
|
47
47
|
export declare class MessagingV2ChannelsSenderProfile {
|
|
48
48
|
/**
|
|
49
|
-
* The name of the sender.
|
|
49
|
+
* The name of the sender. Required for WhatsApp senders and must follow [Meta\'s display name guidelines](https://www.facebook.com/business/help/757569725593362).
|
|
50
50
|
*/
|
|
51
51
|
"name"?: string | null;
|
|
52
52
|
/**
|
|
53
|
-
* The about text
|
|
53
|
+
* The profile about text for the sender.
|
|
54
54
|
*/
|
|
55
55
|
"about"?: string | null;
|
|
56
56
|
/**
|
|
@@ -70,7 +70,7 @@ export declare class MessagingV2ChannelsSenderProfile {
|
|
|
70
70
|
*/
|
|
71
71
|
"banner_url"?: string | null;
|
|
72
72
|
/**
|
|
73
|
-
* The privacy URL of the sender.
|
|
73
|
+
* The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.
|
|
74
74
|
*/
|
|
75
75
|
"privacy_url"?: string | null;
|
|
76
76
|
/**
|
|
@@ -78,28 +78,28 @@ export declare class MessagingV2ChannelsSenderProfile {
|
|
|
78
78
|
*/
|
|
79
79
|
"terms_of_service_url"?: string | null;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.
|
|
82
82
|
*/
|
|
83
83
|
"accent_color"?: string | null;
|
|
84
84
|
/**
|
|
85
|
-
* The vertical of the sender. Allowed values are: -
|
|
85
|
+
* The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`
|
|
86
86
|
*/
|
|
87
87
|
"vertical"?: string | null;
|
|
88
88
|
/**
|
|
89
|
-
* The websites of the sender
|
|
89
|
+
* The websites of the sender.
|
|
90
90
|
*/
|
|
91
91
|
"websites"?: any | null;
|
|
92
92
|
/**
|
|
93
|
-
* The emails of the sender
|
|
93
|
+
* The emails of the sender.
|
|
94
94
|
*/
|
|
95
95
|
"emails"?: any | null;
|
|
96
96
|
/**
|
|
97
|
-
* The phone numbers of the sender
|
|
97
|
+
* The phone numbers of the sender.
|
|
98
98
|
*/
|
|
99
99
|
"phone_numbers"?: any | null;
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* The profile information for the sender.
|
|
103
103
|
*/
|
|
104
104
|
export declare class MessagingV2ChannelsSenderProfileGenericResponse {
|
|
105
105
|
/**
|
|
@@ -107,7 +107,7 @@ export declare class MessagingV2ChannelsSenderProfileGenericResponse {
|
|
|
107
107
|
*/
|
|
108
108
|
"name"?: string | null;
|
|
109
109
|
/**
|
|
110
|
-
* The about text
|
|
110
|
+
* The profile about text for the sender.
|
|
111
111
|
*/
|
|
112
112
|
"about"?: string | null;
|
|
113
113
|
/**
|
|
@@ -127,7 +127,7 @@ export declare class MessagingV2ChannelsSenderProfileGenericResponse {
|
|
|
127
127
|
*/
|
|
128
128
|
"banner_url"?: string | null;
|
|
129
129
|
/**
|
|
130
|
-
* The privacy URL of the sender.
|
|
130
|
+
* The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.
|
|
131
131
|
*/
|
|
132
132
|
"privacy_url"?: string | null;
|
|
133
133
|
/**
|
|
@@ -135,11 +135,11 @@ export declare class MessagingV2ChannelsSenderProfileGenericResponse {
|
|
|
135
135
|
*/
|
|
136
136
|
"terms_of_service_url"?: string | null;
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
138
|
+
* The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.
|
|
139
139
|
*/
|
|
140
140
|
"accent_color"?: string | null;
|
|
141
141
|
/**
|
|
142
|
-
* The vertical of the sender. Allowed values are: -
|
|
142
|
+
* The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`
|
|
143
143
|
*/
|
|
144
144
|
"vertical"?: string | null;
|
|
145
145
|
/**
|
|
@@ -168,7 +168,7 @@ export declare class MessagingV2ChannelsSenderProfileGenericResponseWebsites {
|
|
|
168
168
|
"label"?: string;
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
171
|
+
* The additional properties for the sender.
|
|
172
172
|
*/
|
|
173
173
|
export declare class MessagingV2ChannelsSenderProperties {
|
|
174
174
|
/**
|
|
@@ -182,7 +182,7 @@ export declare class MessagingV2ChannelsSenderProperties {
|
|
|
182
182
|
}
|
|
183
183
|
export declare class MessagingV2ChannelsSenderRequestsCreate {
|
|
184
184
|
/**
|
|
185
|
-
* The ID of
|
|
185
|
+
* The ID of the sender in `whatsapp:<E.164_PHONE_NUMBER>` format.
|
|
186
186
|
*/
|
|
187
187
|
"sender_id": string | null;
|
|
188
188
|
"configuration"?: MessagingV2ChannelsSenderConfiguration | null;
|
|
@@ -195,7 +195,7 @@ export declare class MessagingV2ChannelsSenderRequestsUpdate {
|
|
|
195
195
|
"profile"?: MessagingV2ChannelsSenderProfile | null;
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* The configuration settings for webhooks.
|
|
199
199
|
*/
|
|
200
200
|
export declare class MessagingV2ChannelsSenderWebhook {
|
|
201
201
|
/**
|
|
@@ -203,7 +203,7 @@ export declare class MessagingV2ChannelsSenderWebhook {
|
|
|
203
203
|
*/
|
|
204
204
|
"callback_url"?: string | null;
|
|
205
205
|
/**
|
|
206
|
-
* The HTTP method
|
|
206
|
+
* The HTTP method for the webhook.
|
|
207
207
|
*/
|
|
208
208
|
"callback_method"?: string | null;
|
|
209
209
|
/**
|
|
@@ -211,7 +211,7 @@ export declare class MessagingV2ChannelsSenderWebhook {
|
|
|
211
211
|
*/
|
|
212
212
|
"fallback_url"?: string | null;
|
|
213
213
|
/**
|
|
214
|
-
* The HTTP method
|
|
214
|
+
* The HTTP method for the fallback webhook.
|
|
215
215
|
*/
|
|
216
216
|
"fallback_method"?: string | null;
|
|
217
217
|
/**
|
|
@@ -219,48 +219,48 @@ export declare class MessagingV2ChannelsSenderWebhook {
|
|
|
219
219
|
*/
|
|
220
220
|
"status_callback_url"?: string | null;
|
|
221
221
|
/**
|
|
222
|
-
* The HTTP method
|
|
222
|
+
* The HTTP method for the status callback.
|
|
223
223
|
*/
|
|
224
224
|
"status_callback_method"?: string | null;
|
|
225
225
|
}
|
|
226
226
|
export declare class MessagingV2RcsCarrier {
|
|
227
227
|
/**
|
|
228
|
-
*
|
|
228
|
+
* The name of the carrier. For example, `Verizon` or `AT&T` for US.
|
|
229
229
|
*/
|
|
230
230
|
"name"?: string;
|
|
231
231
|
"status"?: MessagingV2RcsCarrierStatus;
|
|
232
232
|
}
|
|
233
233
|
/**
|
|
234
|
-
*
|
|
234
|
+
* The carrier-level status.
|
|
235
235
|
*/
|
|
236
236
|
export type MessagingV2RcsCarrierStatus = "UNKNOWN" | "UNLAUNCHED" | "CARRIER_REVIEW" | "APPROVED" | "REJECTED" | "SUSPENDED";
|
|
237
237
|
export declare class MessagingV2RcsComplianceCountryResponse {
|
|
238
238
|
/**
|
|
239
|
-
* ISO 3166-1 alpha-2 country code
|
|
239
|
+
* The ISO 3166-1 alpha-2 country code.
|
|
240
240
|
*/
|
|
241
241
|
"country": string;
|
|
242
242
|
/**
|
|
243
|
-
* The default compliance registration SID (e.g., from CR-Google) that applies to all countries
|
|
243
|
+
* The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array.
|
|
244
244
|
*/
|
|
245
245
|
"registration_sid": string;
|
|
246
246
|
"status": MessagingV2RcsCountryStatus;
|
|
247
247
|
"carriers"?: Array<MessagingV2RcsCarrier>;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
|
-
* KYC compliance information.
|
|
250
|
+
* The KYC compliance information. This section consists of response to the request launch.
|
|
251
251
|
*/
|
|
252
252
|
export declare class MessagingV2RcsComplianceResponse {
|
|
253
253
|
/**
|
|
254
|
-
* The default compliance registration SID (e.g., from CR-Google) that applies to all countries
|
|
254
|
+
* The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array.
|
|
255
255
|
*/
|
|
256
256
|
"registration_sid": string;
|
|
257
257
|
/**
|
|
258
|
-
* A list of country-specific compliance details.
|
|
258
|
+
* A list of country-specific compliance details.
|
|
259
259
|
*/
|
|
260
260
|
"countries": Array<MessagingV2RcsComplianceCountryResponse>;
|
|
261
261
|
}
|
|
262
262
|
/**
|
|
263
|
-
*
|
|
263
|
+
* The country-level status. Based on the aggregation of the carrier-level status.
|
|
264
264
|
*/
|
|
265
265
|
export type MessagingV2RcsCountryStatus = "ONLINE" | "OFFLINE" | "TWILIO_REVIEW" | "PENDING_VERIFICATION";
|
|
266
266
|
/**
|
|
@@ -283,7 +283,7 @@ export interface ChannelsSenderListInstanceCreateOptions {
|
|
|
283
283
|
export interface ChannelsSenderListInstanceEachOptions {
|
|
284
284
|
/** */
|
|
285
285
|
channel: string;
|
|
286
|
-
/**
|
|
286
|
+
/** The number of items to return per page. */
|
|
287
287
|
pageSize?: number;
|
|
288
288
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
289
289
|
callback?: (item: ChannelsSenderInstance, done: (err?: Error) => void) => void;
|
|
@@ -298,7 +298,7 @@ export interface ChannelsSenderListInstanceEachOptions {
|
|
|
298
298
|
export interface ChannelsSenderListInstanceOptions {
|
|
299
299
|
/** */
|
|
300
300
|
channel: string;
|
|
301
|
-
/**
|
|
301
|
+
/** The number of items to return per page. */
|
|
302
302
|
pageSize?: number;
|
|
303
303
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
304
304
|
limit?: number;
|
|
@@ -309,7 +309,7 @@ export interface ChannelsSenderListInstanceOptions {
|
|
|
309
309
|
export interface ChannelsSenderListInstancePageOptions {
|
|
310
310
|
/** */
|
|
311
311
|
channel: string;
|
|
312
|
-
/**
|
|
312
|
+
/** The number of items to return per page. */
|
|
313
313
|
pageSize?: number;
|
|
314
314
|
/** Page Number, this value is simply for client state */
|
|
315
315
|
pageNumber?: number;
|
|
@@ -397,12 +397,12 @@ export declare class ChannelsSenderInstance {
|
|
|
397
397
|
protected _context?: ChannelsSenderContext;
|
|
398
398
|
constructor(_version: V2, payload: ChannelsSenderResource, sid?: string);
|
|
399
399
|
/**
|
|
400
|
-
*
|
|
400
|
+
* The SID of the sender.
|
|
401
401
|
*/
|
|
402
402
|
sid: string;
|
|
403
403
|
status: ChannelsSenderStatus;
|
|
404
404
|
/**
|
|
405
|
-
* The ID of
|
|
405
|
+
* The ID of the sender in `whatsapp:<E.164_PHONE_NUMBER>` format.
|
|
406
406
|
*/
|
|
407
407
|
senderId: string;
|
|
408
408
|
configuration: MessagingV2ChannelsSenderConfiguration;
|
|
@@ -410,12 +410,12 @@ export declare class ChannelsSenderInstance {
|
|
|
410
410
|
profile: MessagingV2ChannelsSenderProfileGenericResponse;
|
|
411
411
|
properties: MessagingV2ChannelsSenderProperties;
|
|
412
412
|
/**
|
|
413
|
-
*
|
|
413
|
+
* The reasons why the sender is offline.
|
|
414
414
|
*/
|
|
415
415
|
offlineReasons: Array<MessagingV2ChannelsSenderOfflineReasonsItems>;
|
|
416
416
|
compliance: MessagingV2RcsComplianceResponse;
|
|
417
417
|
/**
|
|
418
|
-
* The URL of
|
|
418
|
+
* The URL of the resource.
|
|
419
419
|
*/
|
|
420
420
|
url: string;
|
|
421
421
|
private get _proxy();
|
|
@@ -24,7 +24,7 @@ const deserialize = require("../../../base/deserialize");
|
|
|
24
24
|
const serialize = require("../../../base/serialize");
|
|
25
25
|
const utility_1 = require("../../../base/utility");
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* The configuration settings for creating a sender.
|
|
28
28
|
*/
|
|
29
29
|
class MessagingV2ChannelsSenderConfiguration {
|
|
30
30
|
}
|
|
@@ -33,13 +33,13 @@ class MessagingV2ChannelsSenderOfflineReasonsItems {
|
|
|
33
33
|
}
|
|
34
34
|
exports.MessagingV2ChannelsSenderOfflineReasonsItems = MessagingV2ChannelsSenderOfflineReasonsItems;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The profile information for the sender.
|
|
37
37
|
*/
|
|
38
38
|
class MessagingV2ChannelsSenderProfile {
|
|
39
39
|
}
|
|
40
40
|
exports.MessagingV2ChannelsSenderProfile = MessagingV2ChannelsSenderProfile;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* The profile information for the sender.
|
|
43
43
|
*/
|
|
44
44
|
class MessagingV2ChannelsSenderProfileGenericResponse {
|
|
45
45
|
}
|
|
@@ -54,7 +54,7 @@ class MessagingV2ChannelsSenderProfileGenericResponseWebsites {
|
|
|
54
54
|
}
|
|
55
55
|
exports.MessagingV2ChannelsSenderProfileGenericResponseWebsites = MessagingV2ChannelsSenderProfileGenericResponseWebsites;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* The additional properties for the sender.
|
|
58
58
|
*/
|
|
59
59
|
class MessagingV2ChannelsSenderProperties {
|
|
60
60
|
}
|
|
@@ -66,7 +66,7 @@ class MessagingV2ChannelsSenderRequestsUpdate {
|
|
|
66
66
|
}
|
|
67
67
|
exports.MessagingV2ChannelsSenderRequestsUpdate = MessagingV2ChannelsSenderRequestsUpdate;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* The configuration settings for webhooks.
|
|
70
70
|
*/
|
|
71
71
|
class MessagingV2ChannelsSenderWebhook {
|
|
72
72
|
}
|
|
@@ -78,7 +78,7 @@ class MessagingV2RcsComplianceCountryResponse {
|
|
|
78
78
|
}
|
|
79
79
|
exports.MessagingV2RcsComplianceCountryResponse = MessagingV2RcsComplianceCountryResponse;
|
|
80
80
|
/**
|
|
81
|
-
* KYC compliance information.
|
|
81
|
+
* The KYC compliance information. This section consists of response to the request launch.
|
|
82
82
|
*/
|
|
83
83
|
class MessagingV2RcsComplianceResponse {
|
|
84
84
|
}
|