twilio 5.8.2 → 5.10.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 +103 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +2 -0
- package/lib/rest/NumbersBase.d.ts +3 -0
- package/lib/rest/NumbersBase.js +5 -0
- package/lib/rest/OauthBase.d.ts +3 -0
- package/lib/rest/OauthBase.js +5 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.d.ts +3 -3
- package/lib/rest/api/v2010/account/recording.d.ts +1 -1
- 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/assistants/v1/assistant/feedback.d.ts +2 -2
- package/lib/rest/assistants/v1/assistant/message.d.ts +1 -1
- package/lib/rest/assistants/v1/assistant.d.ts +20 -20
- package/lib/rest/assistants/v1/knowledge.d.ts +6 -6
- package/lib/rest/assistants/v1/tool.d.ts +8 -8
- package/lib/rest/content/v1/content.d.ts +41 -25
- package/lib/rest/content/v1/content.js +7 -1
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +1 -1
- package/lib/rest/insights/v1/room/participant.d.ts +1 -1
- package/lib/rest/insights/v1/room.d.ts +1 -1
- package/lib/rest/intelligence/v2/service.d.ts +10 -0
- package/lib/rest/intelligence/v2/service.js +6 -0
- package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.d.ts +113 -0
- package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.js +120 -0
- package/lib/rest/intelligence/v2/transcript/encryptedSentences.d.ts +113 -0
- package/lib/rest/intelligence/v2/transcript/encryptedSentences.js +120 -0
- package/lib/rest/intelligence/v2/transcript.d.ts +22 -0
- package/lib/rest/intelligence/v2/transcript.js +28 -0
- package/lib/rest/lookups/v2/lookupOverride.d.ts +1 -1
- package/lib/rest/lookups/v2/query.d.ts +71 -71
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +2 -2
- package/lib/rest/marketplace/v1/referralConversion.d.ts +1 -1
- package/lib/rest/messaging/v2/channelsSender.d.ts +71 -71
- package/lib/rest/messaging/v2/channelsSender.js +6 -6
- package/lib/rest/numbers/V3.d.ts +15 -0
- package/lib/rest/numbers/V3.js +37 -0
- package/lib/rest/numbers/v1/portingPortIn.d.ts +3 -3
- package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +210 -0
- package/lib/rest/numbers/v3/hostedNumberOrder.js +154 -0
- package/lib/rest/oauth/V2.d.ts +15 -0
- package/lib/rest/oauth/V2.js +36 -0
- package/lib/rest/oauth/v2/token.d.ts +87 -0
- package/lib/rest/oauth/v2/token.js +99 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +1 -1
- package/lib/rest/pricing/v1/messaging/country.d.ts +6 -6
- package/lib/rest/pricing/v1/phoneNumber/country.d.ts +3 -3
- package/lib/rest/pricing/v1/voice/country.d.ts +6 -6
- package/lib/rest/pricing/v1/voice/number.d.ts +5 -5
- package/lib/rest/pricing/v2/country.d.ts +8 -8
- package/lib/rest/pricing/v2/number.d.ts +8 -8
- package/lib/rest/pricing/v2/voice/country.d.ts +8 -8
- package/lib/rest/pricing/v2/voice/number.d.ts +6 -6
- package/lib/rest/verify/V2.d.ts +5 -0
- package/lib/rest/verify/V2.js +6 -0
- package/lib/rest/verify/v2/newChallenge.d.ts +204 -0
- package/lib/rest/verify/v2/newChallenge.js +150 -0
- package/lib/rest/verify/v2/service/newFactor.d.ts +154 -0
- package/lib/rest/verify/v2/service/newFactor.js +118 -0
- package/lib/rest/verify/v2/service.d.ts +8 -0
- package/lib/rest/verify/v2/service.js +13 -0
- package/lib/twiml/VoiceResponse.d.ts +22 -0
- package/lib/twiml/VoiceResponse.js +19 -0
- package/lib-esm/index.js +49 -0
- package/lib-esm/package.json +3 -0
- package/package.json +15 -4
|
@@ -3,29 +3,29 @@ 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
|
-
export type ChannelsSenderStatus = "CREATING" | "ONLINE" | "OFFLINE" | "PENDING_VERIFICATION" | "VERIFYING" | "ONLINE:UPDATING" | "TWILIO_REVIEW" | "DRAFT";
|
|
8
|
+
export type ChannelsSenderStatus = "CREATING" | "ONLINE" | "OFFLINE" | "PENDING_VERIFICATION" | "VERIFYING" | "ONLINE:UPDATING" | "TWILIO_REVIEW" | "DRAFT" | "STUBBED";
|
|
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
|
+
"wabaId"?: string | null;
|
|
17
17
|
/**
|
|
18
|
-
* The
|
|
18
|
+
* The verification method.
|
|
19
19
|
*/
|
|
20
|
-
"
|
|
20
|
+
"verificationMethod"?: string | null;
|
|
21
21
|
/**
|
|
22
|
-
* The verification code
|
|
22
|
+
* The verification code.
|
|
23
23
|
*/
|
|
24
|
-
"
|
|
24
|
+
"verificationCode"?: string | null;
|
|
25
25
|
/**
|
|
26
|
-
* The SID of the Twilio Voice application
|
|
26
|
+
* The SID of the Twilio Voice application.
|
|
27
27
|
*/
|
|
28
|
-
"
|
|
28
|
+
"voiceApplicationSid"?: string | null;
|
|
29
29
|
}
|
|
30
30
|
export declare class MessagingV2ChannelsSenderOfflineReasonsItems {
|
|
31
31
|
/**
|
|
@@ -39,18 +39,18 @@ export declare class MessagingV2ChannelsSenderOfflineReasonsItems {
|
|
|
39
39
|
/**
|
|
40
40
|
* The URL to get more information about the error.
|
|
41
41
|
*/
|
|
42
|
-
"
|
|
42
|
+
"moreInfo"?: 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
|
/**
|
|
@@ -64,42 +64,42 @@ export declare class MessagingV2ChannelsSenderProfile {
|
|
|
64
64
|
/**
|
|
65
65
|
* The logo URL of the sender.
|
|
66
66
|
*/
|
|
67
|
-
"
|
|
67
|
+
"logoUrl"?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
* The banner URL of the sender.
|
|
70
70
|
*/
|
|
71
|
-
"
|
|
71
|
+
"bannerUrl"?: 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
|
+
"privacyUrl"?: string | null;
|
|
76
76
|
/**
|
|
77
77
|
* The terms of service URL of the sender.
|
|
78
78
|
*/
|
|
79
|
-
"
|
|
79
|
+
"termsOfServiceUrl"?: 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
|
+
"accentColor"?: 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
|
+
"phoneNumbers"?: 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
|
/**
|
|
@@ -121,25 +121,25 @@ export declare class MessagingV2ChannelsSenderProfileGenericResponse {
|
|
|
121
121
|
/**
|
|
122
122
|
* The logo URL of the sender.
|
|
123
123
|
*/
|
|
124
|
-
"
|
|
124
|
+
"logoUrl"?: string | null;
|
|
125
125
|
/**
|
|
126
126
|
* The banner URL of the sender.
|
|
127
127
|
*/
|
|
128
|
-
"
|
|
128
|
+
"bannerUrl"?: 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
|
+
"privacyUrl"?: string | null;
|
|
133
133
|
/**
|
|
134
134
|
* The terms of service URL of the sender.
|
|
135
135
|
*/
|
|
136
|
-
"
|
|
136
|
+
"termsOfServiceUrl"?: 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
|
+
"accentColor"?: 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
|
/**
|
|
@@ -153,14 +153,14 @@ export declare class MessagingV2ChannelsSenderProfileGenericResponse {
|
|
|
153
153
|
/**
|
|
154
154
|
* The phone numbers of the sender.
|
|
155
155
|
*/
|
|
156
|
-
"
|
|
156
|
+
"phoneNumbers"?: Array<MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers> | null;
|
|
157
157
|
}
|
|
158
158
|
export declare class MessagingV2ChannelsSenderProfileGenericResponseEmails {
|
|
159
159
|
"email"?: string;
|
|
160
160
|
"label"?: string;
|
|
161
161
|
}
|
|
162
162
|
export declare class MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers {
|
|
163
|
-
"
|
|
163
|
+
"phoneNumber"?: string;
|
|
164
164
|
"label"?: string;
|
|
165
165
|
}
|
|
166
166
|
export declare class MessagingV2ChannelsSenderProfileGenericResponseWebsites {
|
|
@@ -168,23 +168,23 @@ 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
|
/**
|
|
175
175
|
* The quality rating of the sender.
|
|
176
176
|
*/
|
|
177
|
-
"
|
|
177
|
+
"qualityRating"?: string | null;
|
|
178
178
|
/**
|
|
179
179
|
* The messaging limit of the sender.
|
|
180
180
|
*/
|
|
181
|
-
"
|
|
181
|
+
"messagingLimit"?: string | null;
|
|
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
|
+
"senderId": string | null;
|
|
188
188
|
"configuration"?: MessagingV2ChannelsSenderConfiguration | null;
|
|
189
189
|
"webhook"?: MessagingV2ChannelsSenderWebhook | null;
|
|
190
190
|
"profile"?: MessagingV2ChannelsSenderProfile | null;
|
|
@@ -195,72 +195,72 @@ 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
|
/**
|
|
202
202
|
* The URL to send the webhook to.
|
|
203
203
|
*/
|
|
204
|
-
"
|
|
204
|
+
"callbackUrl"?: string | null;
|
|
205
205
|
/**
|
|
206
|
-
* The HTTP method
|
|
206
|
+
* The HTTP method for the webhook.
|
|
207
207
|
*/
|
|
208
|
-
"
|
|
208
|
+
"callbackMethod"?: string | null;
|
|
209
209
|
/**
|
|
210
210
|
* The URL to send the fallback webhook to.
|
|
211
211
|
*/
|
|
212
|
-
"
|
|
212
|
+
"fallbackUrl"?: string | null;
|
|
213
213
|
/**
|
|
214
|
-
* The HTTP method
|
|
214
|
+
* The HTTP method for the fallback webhook.
|
|
215
215
|
*/
|
|
216
|
-
"
|
|
216
|
+
"fallbackMethod"?: string | null;
|
|
217
217
|
/**
|
|
218
218
|
* The URL to send the status callback to.
|
|
219
219
|
*/
|
|
220
|
-
"
|
|
220
|
+
"statusCallbackUrl"?: string | null;
|
|
221
221
|
/**
|
|
222
|
-
* The HTTP method
|
|
222
|
+
* The HTTP method for the status callback.
|
|
223
223
|
*/
|
|
224
|
-
"
|
|
224
|
+
"statusCallbackMethod"?: 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
|
+
"registrationSid": 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
|
+
"registrationSid": 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
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import NumbersBase from "../NumbersBase";
|
|
2
|
+
import Version from "../../base/Version";
|
|
3
|
+
import { HostedNumberOrderListInstance } from "./v3/hostedNumberOrder";
|
|
4
|
+
export default class V3 extends Version {
|
|
5
|
+
/**
|
|
6
|
+
* Initialize the V3 version of Numbers
|
|
7
|
+
*
|
|
8
|
+
* @param domain - The Twilio (Twilio.Numbers) domain
|
|
9
|
+
*/
|
|
10
|
+
constructor(domain: NumbersBase);
|
|
11
|
+
/** hostedNumberOrders - { Twilio.Numbers.V3.HostedNumberOrderListInstance } resource */
|
|
12
|
+
protected _hostedNumberOrders?: HostedNumberOrderListInstance;
|
|
13
|
+
/** Getter for hostedNumberOrders resource */
|
|
14
|
+
get hostedNumberOrders(): HostedNumberOrderListInstance;
|
|
15
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Numbers
|
|
9
|
+
* This is the public Twilio REST API.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
|
+
const hostedNumberOrder_1 = require("./v3/hostedNumberOrder");
|
|
21
|
+
class V3 extends Version_1.default {
|
|
22
|
+
/**
|
|
23
|
+
* Initialize the V3 version of Numbers
|
|
24
|
+
*
|
|
25
|
+
* @param domain - The Twilio (Twilio.Numbers) domain
|
|
26
|
+
*/
|
|
27
|
+
constructor(domain) {
|
|
28
|
+
super(domain, "v3");
|
|
29
|
+
}
|
|
30
|
+
/** Getter for hostedNumberOrders resource */
|
|
31
|
+
get hostedNumberOrders() {
|
|
32
|
+
this._hostedNumberOrders =
|
|
33
|
+
this._hostedNumberOrders || (0, hostedNumberOrder_1.HostedNumberOrderListInstance)(this);
|
|
34
|
+
return this._hostedNumberOrders;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = V3;
|
|
@@ -87,15 +87,15 @@ export declare class PortingPortInInstance {
|
|
|
87
87
|
*/
|
|
88
88
|
notificationEmails: Array<string>;
|
|
89
89
|
/**
|
|
90
|
-
* Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports. We can\'t guarantee the exact date and time, as this depends on the losing carrier
|
|
90
|
+
* Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports. If a start and end range is provided, the date will be converted to its UTC equivalent with the ranges as reference and stored in UTC. We can\'t guarantee the exact date and time, as this depends on the losing carrier.
|
|
91
91
|
*/
|
|
92
92
|
targetPortInDate: Date;
|
|
93
93
|
/**
|
|
94
|
-
* The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00\'. We can\'t guarantee the exact date and time, as this depends on the losing carrier
|
|
94
|
+
* The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00\'. We can\'t guarantee the exact date and time, as this depends on the losing carrier. The time will be stored and returned as UTC standard timezone.
|
|
95
95
|
*/
|
|
96
96
|
targetPortInTimeRangeStart: string;
|
|
97
97
|
/**
|
|
98
|
-
* The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00\'. We can\'t guarantee the exact date and time, as this depends on the losing carrier
|
|
98
|
+
* The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00\'. We can\'t guarantee the exact date and time, as this depends on the losing carrier. The time will be stored and returned as UTC standard timezone.
|
|
99
99
|
*/
|
|
100
100
|
targetPortInTimeRangeEnd: string;
|
|
101
101
|
/**
|