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.
Files changed (81) hide show
  1. package/README.md +103 -0
  2. package/lib/index.d.ts +3 -0
  3. package/lib/index.js +2 -0
  4. package/lib/rest/NumbersBase.d.ts +3 -0
  5. package/lib/rest/NumbersBase.js +5 -0
  6. package/lib/rest/OauthBase.d.ts +3 -0
  7. package/lib/rest/OauthBase.js +5 -0
  8. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.d.ts +3 -3
  9. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.d.ts +3 -3
  10. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.d.ts +3 -3
  11. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.d.ts +3 -3
  12. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.d.ts +3 -3
  13. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.d.ts +3 -3
  14. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.d.ts +3 -3
  15. package/lib/rest/api/v2010/account/recording.d.ts +1 -1
  16. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +9 -10
  17. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +9 -10
  18. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +9 -10
  19. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +9 -10
  20. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +9 -10
  21. package/lib/rest/api/v2010/account/usage/record/today.d.ts +9 -10
  22. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +9 -10
  23. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +9 -10
  24. package/lib/rest/api/v2010/account/usage/record.d.ts +9 -10
  25. package/lib/rest/api/v2010/account/usage/trigger.d.ts +11 -12
  26. package/lib/rest/api/v2010/account/usage.d.ts +0 -4
  27. package/lib/rest/assistants/v1/assistant/feedback.d.ts +2 -2
  28. package/lib/rest/assistants/v1/assistant/message.d.ts +1 -1
  29. package/lib/rest/assistants/v1/assistant.d.ts +20 -20
  30. package/lib/rest/assistants/v1/knowledge.d.ts +6 -6
  31. package/lib/rest/assistants/v1/tool.d.ts +8 -8
  32. package/lib/rest/content/v1/content.d.ts +41 -25
  33. package/lib/rest/content/v1/content.js +7 -1
  34. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +1 -1
  35. package/lib/rest/insights/v1/room/participant.d.ts +1 -1
  36. package/lib/rest/insights/v1/room.d.ts +1 -1
  37. package/lib/rest/intelligence/v2/service.d.ts +10 -0
  38. package/lib/rest/intelligence/v2/service.js +6 -0
  39. package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.d.ts +113 -0
  40. package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.js +120 -0
  41. package/lib/rest/intelligence/v2/transcript/encryptedSentences.d.ts +113 -0
  42. package/lib/rest/intelligence/v2/transcript/encryptedSentences.js +120 -0
  43. package/lib/rest/intelligence/v2/transcript.d.ts +22 -0
  44. package/lib/rest/intelligence/v2/transcript.js +28 -0
  45. package/lib/rest/lookups/v2/lookupOverride.d.ts +1 -1
  46. package/lib/rest/lookups/v2/query.d.ts +71 -71
  47. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +2 -2
  48. package/lib/rest/marketplace/v1/referralConversion.d.ts +1 -1
  49. package/lib/rest/messaging/v2/channelsSender.d.ts +71 -71
  50. package/lib/rest/messaging/v2/channelsSender.js +6 -6
  51. package/lib/rest/numbers/V3.d.ts +15 -0
  52. package/lib/rest/numbers/V3.js +37 -0
  53. package/lib/rest/numbers/v1/portingPortIn.d.ts +3 -3
  54. package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +210 -0
  55. package/lib/rest/numbers/v3/hostedNumberOrder.js +154 -0
  56. package/lib/rest/oauth/V2.d.ts +15 -0
  57. package/lib/rest/oauth/V2.js +36 -0
  58. package/lib/rest/oauth/v2/token.d.ts +87 -0
  59. package/lib/rest/oauth/v2/token.js +99 -0
  60. package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +1 -1
  61. package/lib/rest/pricing/v1/messaging/country.d.ts +6 -6
  62. package/lib/rest/pricing/v1/phoneNumber/country.d.ts +3 -3
  63. package/lib/rest/pricing/v1/voice/country.d.ts +6 -6
  64. package/lib/rest/pricing/v1/voice/number.d.ts +5 -5
  65. package/lib/rest/pricing/v2/country.d.ts +8 -8
  66. package/lib/rest/pricing/v2/number.d.ts +8 -8
  67. package/lib/rest/pricing/v2/voice/country.d.ts +8 -8
  68. package/lib/rest/pricing/v2/voice/number.d.ts +6 -6
  69. package/lib/rest/verify/V2.d.ts +5 -0
  70. package/lib/rest/verify/V2.js +6 -0
  71. package/lib/rest/verify/v2/newChallenge.d.ts +204 -0
  72. package/lib/rest/verify/v2/newChallenge.js +150 -0
  73. package/lib/rest/verify/v2/service/newFactor.d.ts +154 -0
  74. package/lib/rest/verify/v2/service/newFactor.js +118 -0
  75. package/lib/rest/verify/v2/service.d.ts +8 -0
  76. package/lib/rest/verify/v2/service.js +13 -0
  77. package/lib/twiml/VoiceResponse.d.ts +22 -0
  78. package/lib/twiml/VoiceResponse.js +19 -0
  79. package/lib-esm/index.js +49 -0
  80. package/lib-esm/package.json +3 -0
  81. 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 Status of this Sender
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
- * Configuration settings for creating a sender, e.g., {\"waba_id\": \"1234567890\", \"verification_method\": \"sms\"}
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
- "waba_id"?: string | null;
16
+ "wabaId"?: string | null;
17
17
  /**
18
- * The method to use for verification. Either \"sms\" or \"voice\".
18
+ * The verification method.
19
19
  */
20
- "verification_method"?: string | null;
20
+ "verificationMethod"?: string | null;
21
21
  /**
22
- * The verification code to use for this sender.
22
+ * The verification code.
23
23
  */
24
- "verification_code"?: string | null;
24
+ "verificationCode"?: string | null;
25
25
  /**
26
- * The SID of the Twilio Voice application to use for this sender.
26
+ * The SID of the Twilio Voice application.
27
27
  */
28
- "voice_application_sid"?: string | null;
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
- "more_info"?: string | null;
42
+ "moreInfo"?: string | null;
43
43
  }
44
44
  /**
45
- * Sender profile configuration 1) RCS 2) Whatsapp
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 of the sender.
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
- "logo_url"?: string | null;
67
+ "logoUrl"?: string | null;
68
68
  /**
69
69
  * The banner URL of the sender.
70
70
  */
71
- "banner_url"?: string | null;
71
+ "bannerUrl"?: string | null;
72
72
  /**
73
- * The privacy URL of the sender. Publicly accessible URI associated with the Sender, must use the HTTP or HTTPS protocol
73
+ * The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.
74
74
  */
75
- "privacy_url"?: string | null;
75
+ "privacyUrl"?: string | null;
76
76
  /**
77
77
  * The terms of service URL of the sender.
78
78
  */
79
- "terms_of_service_url"?: string | null;
79
+ "termsOfServiceUrl"?: string | null;
80
80
  /**
81
- * string - Color theme of the Sender (required, in hex format, need to be a minimum 4.5:1 contrast ratio relative to white)
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
- "accent_color"?: string | null;
83
+ "accentColor"?: string | null;
84
84
  /**
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\"
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
- "phone_numbers"?: any | null;
99
+ "phoneNumbers"?: any | null;
100
100
  }
101
101
  /**
102
- * Sender profile configuration response 1) RCS 2) Whatsapp
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 of the sender.
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
- "logo_url"?: string | null;
124
+ "logoUrl"?: string | null;
125
125
  /**
126
126
  * The banner URL of the sender.
127
127
  */
128
- "banner_url"?: string | null;
128
+ "bannerUrl"?: string | null;
129
129
  /**
130
- * The privacy URL of the sender. Publicly accessible URI associated with the Sender, must use the HTTP or HTTPS protocol
130
+ * The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.
131
131
  */
132
- "privacy_url"?: string | null;
132
+ "privacyUrl"?: string | null;
133
133
  /**
134
134
  * The terms of service URL of the sender.
135
135
  */
136
- "terms_of_service_url"?: string | null;
136
+ "termsOfServiceUrl"?: string | null;
137
137
  /**
138
- * string - Color theme of the Sender (required, in hex format, need to be a minimum 4.5:1 contrast ratio relative to white)
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
- "accent_color"?: string | null;
140
+ "accentColor"?: string | null;
141
141
  /**
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\"
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
- "phone_numbers"?: Array<MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers> | null;
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
- "phone_number"?: string;
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
- * Sender specific additional properties, e.g., {\"quality_rating\": \"HIGH\", \"messaging_limit\": \"10K Customers/24hr\"}
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
- "quality_rating"?: string | null;
177
+ "qualityRating"?: string | null;
178
178
  /**
179
179
  * The messaging limit of the sender.
180
180
  */
181
- "messaging_limit"?: string | null;
181
+ "messagingLimit"?: string | null;
182
182
  }
183
183
  export declare class MessagingV2ChannelsSenderRequestsCreate {
184
184
  /**
185
- * The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164`
185
+ * The ID of the sender in `whatsapp:<E.164_PHONE_NUMBER>` format.
186
186
  */
187
- "sender_id": string | null;
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
- * Webhook specific configurations, e.g., {\"callback_url\": \"https://xxx\", \"callback_method\": \"POST\", \"fallback_url\": \"https://xxx\", \"fallback_method\": \"POST\", \"status_callback_url\": \"https://xxx\", \"status_callback_method\": \"POST\"}
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
- "callback_url"?: string | null;
204
+ "callbackUrl"?: string | null;
205
205
  /**
206
- * The HTTP method to use for the webhook. Either \"POST\" or \"PUT\".
206
+ * The HTTP method for the webhook.
207
207
  */
208
- "callback_method"?: string | null;
208
+ "callbackMethod"?: string | null;
209
209
  /**
210
210
  * The URL to send the fallback webhook to.
211
211
  */
212
- "fallback_url"?: string | null;
212
+ "fallbackUrl"?: string | null;
213
213
  /**
214
- * The HTTP method to use for the fallback webhook. Either \"POST\" or \"PUT\".
214
+ * The HTTP method for the fallback webhook.
215
215
  */
216
- "fallback_method"?: string | null;
216
+ "fallbackMethod"?: string | null;
217
217
  /**
218
218
  * The URL to send the status callback to.
219
219
  */
220
- "status_callback_url"?: string | null;
220
+ "statusCallbackUrl"?: string | null;
221
221
  /**
222
- * The HTTP method to use for the status callback.
222
+ * The HTTP method for the status callback.
223
223
  */
224
- "status_callback_method"?: string | null;
224
+ "statusCallbackMethod"?: string | null;
225
225
  }
226
226
  export declare class MessagingV2RcsCarrier {
227
227
  /**
228
- * carrier in a country e.g. For US-Verizon, AT&T
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
- * Carrier level status
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 (e.g., \'US\', \'UK\').
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 unless overridden within the `countries` array.
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
- "registration_sid": string;
245
+ "registrationSid": string;
246
246
  "status": MessagingV2RcsCountryStatus;
247
247
  "carriers"?: Array<MessagingV2RcsCarrier>;
248
248
  }
249
249
  /**
250
- * KYC compliance information. This section consists of response to the request launch
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 unless overridden within the `countries` array.
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
- "registration_sid": string;
256
+ "registrationSid": string;
257
257
  /**
258
- * A list of country-specific compliance details. It consists of registration_sid, country iso code, country status and carriers information
258
+ * A list of country-specific compliance details.
259
259
  */
260
260
  "countries": Array<MessagingV2RcsComplianceCountryResponse>;
261
261
  }
262
262
  /**
263
- * Country level status, it is an aggregation of Carrier level status
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
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
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
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
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
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
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
- * A 34 character string that uniquely identifies this Sender.
400
+ * The SID of the sender.
401
401
  */
402
402
  sid: string;
403
403
  status: ChannelsSenderStatus;
404
404
  /**
405
- * The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164`
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
- * Reasons why the sender is offline., e.g., [{\"code\": \"21211400\", \"message\": \"Whatsapp business account is banned by provider {provider_name} | Credit line is assigned to another BSP\", \"more_info\": \"https://www.twilio.com/docs/errors/21211400\"}]
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 this resource, relative to `https://messaging.twilio.com`.
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
- * Configuration settings for creating a sender, e.g., {\"waba_id\": \"1234567890\", \"verification_method\": \"sms\"}
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
- * Sender profile configuration 1) RCS 2) Whatsapp
36
+ * The profile information for the sender.
37
37
  */
38
38
  class MessagingV2ChannelsSenderProfile {
39
39
  }
40
40
  exports.MessagingV2ChannelsSenderProfile = MessagingV2ChannelsSenderProfile;
41
41
  /**
42
- * Sender profile configuration response 1) RCS 2) Whatsapp
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
- * Sender specific additional properties, e.g., {\"quality_rating\": \"HIGH\", \"messaging_limit\": \"10K Customers/24hr\"}
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
- * Webhook specific configurations, e.g., {\"callback_url\": \"https://xxx\", \"callback_method\": \"POST\", \"fallback_url\": \"https://xxx\", \"fallback_method\": \"POST\", \"status_callback_url\": \"https://xxx\", \"status_callback_method\": \"POST\"}
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. This section consists of response to the request launch
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
  /**