twilio 4.8.0 → 4.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.
Files changed (111) hide show
  1. package/lib/base/BaseTwilio.d.ts +1 -0
  2. package/lib/jwt/AccessToken.d.ts +168 -173
  3. package/lib/jwt/AccessToken.js +180 -185
  4. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +15 -20
  5. package/lib/rest/api/v2010/account/application.d.ts +15 -20
  6. package/lib/rest/api/v2010/account/call/feedback.d.ts +5 -5
  7. package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +4 -4
  8. package/lib/rest/api/v2010/account/call/notification.d.ts +3 -4
  9. package/lib/rest/api/v2010/account/call/payment.d.ts +10 -10
  10. package/lib/rest/api/v2010/account/call/recording.d.ts +9 -9
  11. package/lib/rest/api/v2010/account/conference/recording.d.ts +9 -9
  12. package/lib/rest/api/v2010/account/connectApp.d.ts +3 -4
  13. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +33 -38
  14. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +33 -38
  15. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +33 -38
  16. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +15 -20
  17. package/lib/rest/api/v2010/account/message/feedback.d.ts +5 -5
  18. package/lib/rest/api/v2010/account/notification.d.ts +3 -4
  19. package/lib/rest/api/v2010/account/queue.d.ts +3 -3
  20. package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +4 -4
  21. package/lib/rest/api/v2010/account/recording/transcription.d.ts +4 -4
  22. package/lib/rest/api/v2010/account/shortCode.d.ts +6 -8
  23. package/lib/rest/api/v2010/account/sip/domain.d.ts +9 -12
  24. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +7 -7
  25. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +7 -7
  26. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +7 -7
  27. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +7 -7
  28. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +7 -7
  29. package/lib/rest/api/v2010/account/usage/record/today.d.ts +7 -7
  30. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +7 -7
  31. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +7 -7
  32. package/lib/rest/api/v2010/account/usage/record.d.ts +7 -7
  33. package/lib/rest/api/v2010/account/usage/trigger.d.ts +27 -28
  34. package/lib/rest/api/v2010/account/usage.d.ts +1 -1
  35. package/lib/rest/chat/v2/service/channel/webhook.d.ts +5 -5
  36. package/lib/rest/content/V1.d.ts +5 -0
  37. package/lib/rest/content/V1.js +7 -0
  38. package/lib/rest/content/v1/contentAndApprovals.d.ts +190 -0
  39. package/lib/rest/content/v1/contentAndApprovals.js +134 -0
  40. package/lib/rest/conversations/v1/addressConfiguration.d.ts +8 -8
  41. package/lib/rest/conversations/v1/configuration/webhook.d.ts +9 -9
  42. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +4 -4
  43. package/lib/rest/conversations/v1/conversation/message.d.ts +8 -8
  44. package/lib/rest/conversations/v1/conversation/participant.d.ts +4 -4
  45. package/lib/rest/conversations/v1/conversation/webhook.d.ts +5 -5
  46. package/lib/rest/conversations/v1/service/binding.d.ts +7 -7
  47. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +4 -4
  48. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +4 -4
  49. package/lib/rest/conversations/v1/service/conversation/message.d.ts +8 -8
  50. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +4 -4
  51. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +5 -5
  52. package/lib/rest/conversations/v1/service/conversation.d.ts +10 -10
  53. package/lib/rest/conversations/v1/service/participantConversation.d.ts +4 -4
  54. package/lib/rest/conversations/v1/service/role.d.ts +5 -5
  55. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -9
  56. package/lib/rest/conversations/v1/service/user.d.ts +4 -4
  57. package/lib/rest/flexApi/V1.d.ts +5 -0
  58. package/lib/rest/flexApi/V1.js +7 -0
  59. package/lib/rest/flexApi/v1/assessments.d.ts +117 -0
  60. package/lib/rest/flexApi/v1/assessments.js +70 -1
  61. package/lib/rest/flexApi/v1/insightsConversations.d.ts +172 -0
  62. package/lib/rest/flexApi/v1/insightsConversations.js +128 -0
  63. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +2 -2
  64. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +2 -4
  65. package/lib/rest/insights/v1/call/callSummary.d.ts +17 -17
  66. package/lib/rest/insights/v1/room/participant.d.ts +16 -16
  67. package/lib/rest/insights/v1/room.d.ts +41 -42
  68. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +5 -5
  69. package/lib/rest/media/v1/mediaProcessor.d.ts +3 -4
  70. package/lib/rest/media/v1/mediaRecording.d.ts +3 -4
  71. package/lib/rest/media/v1/playerStreamer.d.ts +3 -4
  72. package/lib/rest/messaging/V1.d.ts +10 -0
  73. package/lib/rest/messaging/V1.js +16 -0
  74. package/lib/rest/messaging/v1/brandRegistration.d.ts +12 -12
  75. package/lib/rest/messaging/v1/domainCerts.d.ts +4 -4
  76. package/lib/rest/messaging/v1/domainCerts.js +2 -2
  77. package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +121 -0
  78. package/lib/rest/messaging/v1/domainConfigMessagingService.js +122 -0
  79. package/lib/rest/messaging/v1/linkshorteningMessagingService.d.ts +109 -0
  80. package/lib/rest/messaging/v1/linkshorteningMessagingService.js +135 -0
  81. package/lib/rest/messaging/v1/service.d.ts +6 -8
  82. package/lib/rest/microvisor/v1/app/appManifest.d.ts +101 -0
  83. package/lib/rest/microvisor/v1/app/appManifest.js +115 -0
  84. package/lib/rest/microvisor/v1/app.d.ts +11 -0
  85. package/lib/rest/microvisor/v1/app.js +15 -0
  86. package/lib/rest/monitor/v1/alert.d.ts +3 -4
  87. package/lib/rest/preview/wireless/sim.d.ts +12 -16
  88. package/lib/rest/supersim/v1/esimProfile.d.ts +14 -0
  89. package/lib/rest/supersim/v1/esimProfile.js +6 -0
  90. package/lib/rest/supersim/v1/fleet.d.ts +6 -8
  91. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +14 -14
  92. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +12 -12
  93. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +15 -20
  94. package/lib/rest/trunking/v1/trunk.d.ts +3 -4
  95. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +4 -4
  96. package/lib/rest/trusthub/v1/customerProfiles.d.ts +8 -8
  97. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +4 -4
  98. package/lib/rest/trusthub/v1/trustProducts.d.ts +8 -8
  99. package/lib/rest/verify/v2/service/verification.d.ts +1 -1
  100. package/lib/rest/video/v1/composition.d.ts +3 -4
  101. package/lib/rest/video/v1/compositionHook.d.ts +3 -4
  102. package/lib/rest/video/v1/recording.d.ts +3 -4
  103. package/lib/rest/video/v1/room/participant/anonymize.d.ts +4 -4
  104. package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +4 -4
  105. package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +4 -4
  106. package/lib/rest/video/v1/room/participant.d.ts +8 -8
  107. package/lib/rest/video/v1/room.d.ts +3 -4
  108. package/lib/rest/voice/v1/byocTrunk.d.ts +9 -12
  109. package/lib/rest/wireless/v1/sim.d.ts +15 -20
  110. package/lib/rest/wireless/v1/usageRecord.d.ts +4 -4
  111. package/package.json +1 -1
@@ -4,10 +4,10 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
6
  import { PhoneNumberCapabilities } from "../../../../../interfaces";
7
- export type IncomingPhoneNumberTollFreeAddressRequirement = "none" | "any" | "local" | "foreign";
8
- export type IncomingPhoneNumberTollFreeEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
9
- export type IncomingPhoneNumberTollFreeEmergencyStatus = "Active" | "Inactive";
10
- export type IncomingPhoneNumberTollFreeVoiceReceiveMode = "voice" | "fax";
7
+ export type TollFreeAddressRequirement = "none" | "any" | "local" | "foreign";
8
+ export type TollFreeEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
9
+ export type TollFreeEmergencyStatus = "Active" | "Inactive";
10
+ export type TollFreeVoiceReceiveMode = "voice" | "fax";
11
11
  /**
12
12
  * Options to pass to create a TollFreeInstance
13
13
  */
@@ -49,13 +49,13 @@ export interface TollFreeListInstanceCreateOptions {
49
49
  /** The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. */
50
50
  addressSid?: string;
51
51
  /** */
52
- emergencyStatus?: IncomingPhoneNumberTollFreeEmergencyStatus;
52
+ emergencyStatus?: TollFreeEmergencyStatus;
53
53
  /** The SID of the emergency address configuration to use for emergency calling from the new phone number. */
54
54
  emergencyAddressSid?: string;
55
55
  /** The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. */
56
56
  trunkSid?: string;
57
57
  /** */
58
- voiceReceiveMode?: IncomingPhoneNumberTollFreeVoiceReceiveMode;
58
+ voiceReceiveMode?: TollFreeVoiceReceiveMode;
59
59
  /** The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. */
60
60
  bundleSid?: string;
61
61
  }
@@ -189,18 +189,13 @@ export interface TollFreeListInstance {
189
189
  [inspect.custom](_depth: any, options: InspectOptions): any;
190
190
  }
191
191
  export declare function TollFreeListInstance(version: V2010, accountSid: string): TollFreeListInstance;
192
- export type TollFreeSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
193
- export type TollFreeSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
194
- export type TollFreeStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
195
- export type TollFreeVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
196
- export type TollFreeVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
197
192
  interface TollFreePayload extends TwilioResponsePayload {
198
193
  incoming_phone_numbers: TollFreeResource[];
199
194
  }
200
195
  interface TollFreeResource {
201
196
  account_sid: string;
202
197
  address_sid: string;
203
- address_requirements: IncomingPhoneNumberTollFreeAddressRequirement;
198
+ address_requirements: TollFreeAddressRequirement;
204
199
  api_version: string;
205
200
  beta: boolean;
206
201
  capabilities: PhoneNumberCapabilities;
@@ -212,24 +207,24 @@ interface TollFreeResource {
212
207
  origin: string;
213
208
  sid: string;
214
209
  sms_application_sid: string;
215
- sms_fallback_method: TollFreeSmsFallbackMethod;
210
+ sms_fallback_method: string;
216
211
  sms_fallback_url: string;
217
- sms_method: TollFreeSmsMethod;
212
+ sms_method: string;
218
213
  sms_url: string;
219
214
  status_callback: string;
220
- status_callback_method: TollFreeStatusCallbackMethod;
215
+ status_callback_method: string;
221
216
  trunk_sid: string;
222
217
  uri: string;
223
- voice_receive_mode: IncomingPhoneNumberTollFreeVoiceReceiveMode;
218
+ voice_receive_mode: TollFreeVoiceReceiveMode;
224
219
  voice_application_sid: string;
225
220
  voice_caller_id_lookup: boolean;
226
- voice_fallback_method: TollFreeVoiceFallbackMethod;
221
+ voice_fallback_method: string;
227
222
  voice_fallback_url: string;
228
- voice_method: TollFreeVoiceMethod;
223
+ voice_method: string;
229
224
  voice_url: string;
230
- emergency_status: IncomingPhoneNumberTollFreeEmergencyStatus;
225
+ emergency_status: TollFreeEmergencyStatus;
231
226
  emergency_address_sid: string;
232
- emergency_address_status: IncomingPhoneNumberTollFreeEmergencyAddressStatus;
227
+ emergency_address_status: TollFreeEmergencyAddressStatus;
233
228
  bundle_sid: string;
234
229
  status: string;
235
230
  }
@@ -244,7 +239,7 @@ export declare class TollFreeInstance {
244
239
  * The SID of the Address resource associated with the phone number.
245
240
  */
246
241
  addressSid: string;
247
- addressRequirements: IncomingPhoneNumberTollFreeAddressRequirement;
242
+ addressRequirements: TollFreeAddressRequirement;
248
243
  /**
249
244
  * The API version used to start a new TwiML session.
250
245
  */
@@ -289,7 +284,7 @@ export declare class TollFreeInstance {
289
284
  /**
290
285
  * The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
291
286
  */
292
- smsFallbackMethod: TollFreeSmsFallbackMethod;
287
+ smsFallbackMethod: string;
293
288
  /**
294
289
  * The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`.
295
290
  */
@@ -297,7 +292,7 @@ export declare class TollFreeInstance {
297
292
  /**
298
293
  * The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
299
294
  */
300
- smsMethod: TollFreeSmsMethod;
295
+ smsMethod: string;
301
296
  /**
302
297
  * The URL we call when the phone number receives an incoming SMS message.
303
298
  */
@@ -309,7 +304,7 @@ export declare class TollFreeInstance {
309
304
  /**
310
305
  * The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
311
306
  */
312
- statusCallbackMethod: TollFreeStatusCallbackMethod;
307
+ statusCallbackMethod: string;
313
308
  /**
314
309
  * The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa.
315
310
  */
@@ -318,7 +313,7 @@ export declare class TollFreeInstance {
318
313
  * The URI of the resource, relative to `https://api.twilio.com`.
319
314
  */
320
315
  uri: string;
321
- voiceReceiveMode: IncomingPhoneNumberTollFreeVoiceReceiveMode;
316
+ voiceReceiveMode: TollFreeVoiceReceiveMode;
322
317
  /**
323
318
  * The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa.
324
319
  */
@@ -330,7 +325,7 @@ export declare class TollFreeInstance {
330
325
  /**
331
326
  * The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
332
327
  */
333
- voiceFallbackMethod: TollFreeVoiceFallbackMethod;
328
+ voiceFallbackMethod: string;
334
329
  /**
335
330
  * The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`.
336
331
  */
@@ -338,17 +333,17 @@ export declare class TollFreeInstance {
338
333
  /**
339
334
  * The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
340
335
  */
341
- voiceMethod: TollFreeVoiceMethod;
336
+ voiceMethod: string;
342
337
  /**
343
338
  * The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set.
344
339
  */
345
340
  voiceUrl: string;
346
- emergencyStatus: IncomingPhoneNumberTollFreeEmergencyStatus;
341
+ emergencyStatus: TollFreeEmergencyStatus;
347
342
  /**
348
343
  * The SID of the emergency address configuration that we use for emergency calling from this phone number.
349
344
  */
350
345
  emergencyAddressSid: string;
351
- emergencyAddressStatus: IncomingPhoneNumberTollFreeEmergencyAddressStatus;
346
+ emergencyAddressStatus: TollFreeEmergencyAddressStatus;
352
347
  /**
353
348
  * The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.
354
349
  */
@@ -362,7 +357,7 @@ export declare class TollFreeInstance {
362
357
  toJSON(): {
363
358
  accountSid: string;
364
359
  addressSid: string;
365
- addressRequirements: IncomingPhoneNumberTollFreeAddressRequirement;
360
+ addressRequirements: TollFreeAddressRequirement;
366
361
  apiVersion: string;
367
362
  beta: boolean;
368
363
  capabilities: PhoneNumberCapabilities;
@@ -374,24 +369,24 @@ export declare class TollFreeInstance {
374
369
  origin: string;
375
370
  sid: string;
376
371
  smsApplicationSid: string;
377
- smsFallbackMethod: TollFreeSmsFallbackMethod;
372
+ smsFallbackMethod: string;
378
373
  smsFallbackUrl: string;
379
- smsMethod: TollFreeSmsMethod;
374
+ smsMethod: string;
380
375
  smsUrl: string;
381
376
  statusCallback: string;
382
- statusCallbackMethod: TollFreeStatusCallbackMethod;
377
+ statusCallbackMethod: string;
383
378
  trunkSid: string;
384
379
  uri: string;
385
- voiceReceiveMode: IncomingPhoneNumberTollFreeVoiceReceiveMode;
380
+ voiceReceiveMode: TollFreeVoiceReceiveMode;
386
381
  voiceApplicationSid: string;
387
382
  voiceCallerIdLookup: boolean;
388
- voiceFallbackMethod: TollFreeVoiceFallbackMethod;
383
+ voiceFallbackMethod: string;
389
384
  voiceFallbackUrl: string;
390
- voiceMethod: TollFreeVoiceMethod;
385
+ voiceMethod: string;
391
386
  voiceUrl: string;
392
- emergencyStatus: IncomingPhoneNumberTollFreeEmergencyStatus;
387
+ emergencyStatus: TollFreeEmergencyStatus;
393
388
  emergencyAddressSid: string;
394
- emergencyAddressStatus: IncomingPhoneNumberTollFreeEmergencyAddressStatus;
389
+ emergencyAddressStatus: TollFreeEmergencyAddressStatus;
395
390
  bundleSid: string;
396
391
  status: string;
397
392
  };
@@ -236,11 +236,6 @@ export declare class IncomingPhoneNumberContextImpl implements IncomingPhoneNumb
236
236
  toJSON(): IncomingPhoneNumberContextSolution;
237
237
  [inspect.custom](_depth: any, options: InspectOptions): string;
238
238
  }
239
- export type IncomingPhoneNumberSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
240
- export type IncomingPhoneNumberSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
241
- export type IncomingPhoneNumberStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
242
- export type IncomingPhoneNumberVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
243
- export type IncomingPhoneNumberVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
244
239
  interface IncomingPhoneNumberPayload extends TwilioResponsePayload {
245
240
  incoming_phone_numbers: IncomingPhoneNumberResource[];
246
241
  }
@@ -259,20 +254,20 @@ interface IncomingPhoneNumberResource {
259
254
  origin: string;
260
255
  sid: string;
261
256
  sms_application_sid: string;
262
- sms_fallback_method: IncomingPhoneNumberSmsFallbackMethod;
257
+ sms_fallback_method: string;
263
258
  sms_fallback_url: string;
264
- sms_method: IncomingPhoneNumberSmsMethod;
259
+ sms_method: string;
265
260
  sms_url: string;
266
261
  status_callback: string;
267
- status_callback_method: IncomingPhoneNumberStatusCallbackMethod;
262
+ status_callback_method: string;
268
263
  trunk_sid: string;
269
264
  uri: string;
270
265
  voice_receive_mode: IncomingPhoneNumberVoiceReceiveMode;
271
266
  voice_application_sid: string;
272
267
  voice_caller_id_lookup: boolean;
273
- voice_fallback_method: IncomingPhoneNumberVoiceFallbackMethod;
268
+ voice_fallback_method: string;
274
269
  voice_fallback_url: string;
275
- voice_method: IncomingPhoneNumberVoiceMethod;
270
+ voice_method: string;
276
271
  voice_url: string;
277
272
  emergency_status: IncomingPhoneNumberEmergencyStatus;
278
273
  emergency_address_sid: string;
@@ -338,7 +333,7 @@ export declare class IncomingPhoneNumberInstance {
338
333
  /**
339
334
  * The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
340
335
  */
341
- smsFallbackMethod: IncomingPhoneNumberSmsFallbackMethod;
336
+ smsFallbackMethod: string;
342
337
  /**
343
338
  * The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`.
344
339
  */
@@ -346,7 +341,7 @@ export declare class IncomingPhoneNumberInstance {
346
341
  /**
347
342
  * The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
348
343
  */
349
- smsMethod: IncomingPhoneNumberSmsMethod;
344
+ smsMethod: string;
350
345
  /**
351
346
  * The URL we call when the phone number receives an incoming SMS message.
352
347
  */
@@ -358,7 +353,7 @@ export declare class IncomingPhoneNumberInstance {
358
353
  /**
359
354
  * The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
360
355
  */
361
- statusCallbackMethod: IncomingPhoneNumberStatusCallbackMethod;
356
+ statusCallbackMethod: string;
362
357
  /**
363
358
  * The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa.
364
359
  */
@@ -379,7 +374,7 @@ export declare class IncomingPhoneNumberInstance {
379
374
  /**
380
375
  * The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
381
376
  */
382
- voiceFallbackMethod: IncomingPhoneNumberVoiceFallbackMethod;
377
+ voiceFallbackMethod: string;
383
378
  /**
384
379
  * The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`.
385
380
  */
@@ -387,7 +382,7 @@ export declare class IncomingPhoneNumberInstance {
387
382
  /**
388
383
  * The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
389
384
  */
390
- voiceMethod: IncomingPhoneNumberVoiceMethod;
385
+ voiceMethod: string;
391
386
  /**
392
387
  * The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set.
393
388
  */
@@ -461,20 +456,20 @@ export declare class IncomingPhoneNumberInstance {
461
456
  origin: string;
462
457
  sid: string;
463
458
  smsApplicationSid: string;
464
- smsFallbackMethod: IncomingPhoneNumberSmsFallbackMethod;
459
+ smsFallbackMethod: string;
465
460
  smsFallbackUrl: string;
466
- smsMethod: IncomingPhoneNumberSmsMethod;
461
+ smsMethod: string;
467
462
  smsUrl: string;
468
463
  statusCallback: string;
469
- statusCallbackMethod: IncomingPhoneNumberStatusCallbackMethod;
464
+ statusCallbackMethod: string;
470
465
  trunkSid: string;
471
466
  uri: string;
472
467
  voiceReceiveMode: IncomingPhoneNumberVoiceReceiveMode;
473
468
  voiceApplicationSid: string;
474
469
  voiceCallerIdLookup: boolean;
475
- voiceFallbackMethod: IncomingPhoneNumberVoiceFallbackMethod;
470
+ voiceFallbackMethod: string;
476
471
  voiceFallbackUrl: string;
477
- voiceMethod: IncomingPhoneNumberVoiceMethod;
472
+ voiceMethod: string;
478
473
  voiceUrl: string;
479
474
  emergencyStatus: IncomingPhoneNumberEmergencyStatus;
480
475
  emergencyAddressSid: string;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2010 from "../../../V2010";
4
- export type MessageFeedbackOutcome = "confirmed" | "unconfirmed";
4
+ export type FeedbackOutcome = "confirmed" | "unconfirmed";
5
5
  /**
6
6
  * Options to pass to create a FeedbackInstance
7
7
  */
8
8
  export interface FeedbackListInstanceCreateOptions {
9
9
  /** */
10
- outcome?: MessageFeedbackOutcome;
10
+ outcome?: FeedbackOutcome;
11
11
  }
12
12
  export interface FeedbackSolution {
13
13
  accountSid: string;
@@ -44,7 +44,7 @@ export declare function FeedbackListInstance(version: V2010, accountSid: string,
44
44
  interface FeedbackResource {
45
45
  account_sid: string;
46
46
  message_sid: string;
47
- outcome: MessageFeedbackOutcome;
47
+ outcome: FeedbackOutcome;
48
48
  date_created: Date;
49
49
  date_updated: Date;
50
50
  uri: string;
@@ -60,7 +60,7 @@ export declare class FeedbackInstance {
60
60
  * The SID of the Message resource for which the feedback was provided.
61
61
  */
62
62
  messageSid: string;
63
- outcome: MessageFeedbackOutcome;
63
+ outcome: FeedbackOutcome;
64
64
  /**
65
65
  * The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
66
66
  */
@@ -81,7 +81,7 @@ export declare class FeedbackInstance {
81
81
  toJSON(): {
82
82
  accountSid: string;
83
83
  messageSid: string;
84
- outcome: MessageFeedbackOutcome;
84
+ outcome: FeedbackOutcome;
85
85
  dateCreated: Date;
86
86
  dateUpdated: Date;
87
87
  uri: string;
@@ -93,7 +93,6 @@ export declare class NotificationContextImpl implements NotificationContext {
93
93
  toJSON(): NotificationContextSolution;
94
94
  [inspect.custom](_depth: any, options: InspectOptions): string;
95
95
  }
96
- export type NotificationRequestMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
97
96
  interface NotificationPayload extends TwilioResponsePayload {
98
97
  notifications: NotificationResource[];
99
98
  }
@@ -108,7 +107,7 @@ interface NotificationResource {
108
107
  message_date: Date;
109
108
  message_text: string;
110
109
  more_info: string;
111
- request_method: NotificationRequestMethod;
110
+ request_method: string;
112
111
  request_url: string;
113
112
  request_variables: string;
114
113
  response_body: string;
@@ -164,7 +163,7 @@ export declare class NotificationInstance {
164
163
  /**
165
164
  * The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers.
166
165
  */
167
- requestMethod: NotificationRequestMethod;
166
+ requestMethod: string;
168
167
  /**
169
168
  * The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called.
170
169
  */
@@ -214,7 +213,7 @@ export declare class NotificationInstance {
214
213
  messageDate: Date;
215
214
  messageText: string;
216
215
  moreInfo: string;
217
- requestMethod: NotificationRequestMethod;
216
+ requestMethod: string;
218
217
  requestUrl: string;
219
218
  requestVariables: string;
220
219
  responseBody: string;
@@ -10,7 +10,7 @@ import { MemberListInstance } from "./queue/member";
10
10
  export interface QueueContextUpdateOptions {
11
11
  /** A descriptive string that you created to describe this resource. It can be up to 64 characters long. */
12
12
  friendlyName?: string;
13
- /** The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. */
13
+ /** The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. */
14
14
  maxSize?: number;
15
15
  }
16
16
  /**
@@ -19,7 +19,7 @@ export interface QueueContextUpdateOptions {
19
19
  export interface QueueListInstanceCreateOptions {
20
20
  /** A descriptive string that you created to describe this resource. It can be up to 64 characters long. */
21
21
  friendlyName: string;
22
- /** The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. */
22
+ /** The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. */
23
23
  maxSize?: number;
24
24
  }
25
25
  /**
@@ -170,7 +170,7 @@ export declare class QueueInstance {
170
170
  */
171
171
  dateCreated: Date;
172
172
  /**
173
- * The maximum number of calls that can be in the queue. The default is 100 and the maximum is 5000.
173
+ * The maximum number of calls that can be in the queue. The default is 1000 and the maximum is 5000.
174
174
  */
175
175
  maxSize: number;
176
176
  private get _proxy();
@@ -4,7 +4,7 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
6
  import { PayloadListInstance } from "./addOnResult/payload";
7
- export type RecordingAddOnResultStatus = "canceled" | "completed" | "deleted" | "failed" | "in-progress" | "init" | "processing" | "queued";
7
+ export type AddOnResultStatus = "canceled" | "completed" | "deleted" | "failed" | "in-progress" | "init" | "processing" | "queued";
8
8
  /**
9
9
  * Options to pass to each
10
10
  */
@@ -90,7 +90,7 @@ interface AddOnResultPayload extends TwilioResponsePayload {
90
90
  interface AddOnResultResource {
91
91
  sid: string;
92
92
  account_sid: string;
93
- status: RecordingAddOnResultStatus;
93
+ status: AddOnResultStatus;
94
94
  add_on_sid: string;
95
95
  add_on_configuration_sid: string;
96
96
  date_created: Date;
@@ -112,7 +112,7 @@ export declare class AddOnResultInstance {
112
112
  * The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource.
113
113
  */
114
114
  accountSid: string;
115
- status: RecordingAddOnResultStatus;
115
+ status: AddOnResultStatus;
116
116
  /**
117
117
  * The SID of the Add-on to which the result belongs.
118
118
  */
@@ -170,7 +170,7 @@ export declare class AddOnResultInstance {
170
170
  toJSON(): {
171
171
  sid: string;
172
172
  accountSid: string;
173
- status: RecordingAddOnResultStatus;
173
+ status: AddOnResultStatus;
174
174
  addOnSid: string;
175
175
  addOnConfigurationSid: string;
176
176
  dateCreated: Date;
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
- export type RecordingTranscriptionStatus = "in-progress" | "completed" | "failed";
6
+ export type TranscriptionStatus = "in-progress" | "completed" | "failed";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -93,7 +93,7 @@ interface TranscriptionResource {
93
93
  price_unit: string;
94
94
  recording_sid: string;
95
95
  sid: string;
96
- status: RecordingTranscriptionStatus;
96
+ status: TranscriptionStatus;
97
97
  transcription_text: string;
98
98
  type: string;
99
99
  uri: string;
@@ -139,7 +139,7 @@ export declare class TranscriptionInstance {
139
139
  * The unique string that that we created to identify the Transcription resource.
140
140
  */
141
141
  sid: string;
142
- status: RecordingTranscriptionStatus;
142
+ status: TranscriptionStatus;
143
143
  /**
144
144
  * The text content of the transcription.
145
145
  */
@@ -184,7 +184,7 @@ export declare class TranscriptionInstance {
184
184
  priceUnit: string;
185
185
  recordingSid: string;
186
186
  sid: string;
187
- status: RecordingTranscriptionStatus;
187
+ status: TranscriptionStatus;
188
188
  transcriptionText: string;
189
189
  type: string;
190
190
  uri: string;
@@ -116,8 +116,6 @@ export declare class ShortCodeContextImpl implements ShortCodeContext {
116
116
  toJSON(): ShortCodeContextSolution;
117
117
  [inspect.custom](_depth: any, options: InspectOptions): string;
118
118
  }
119
- export type ShortCodeSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
120
- export type ShortCodeSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
121
119
  interface ShortCodePayload extends TwilioResponsePayload {
122
120
  short_codes: ShortCodeResource[];
123
121
  }
@@ -129,9 +127,9 @@ interface ShortCodeResource {
129
127
  friendly_name: string;
130
128
  short_code: string;
131
129
  sid: string;
132
- sms_fallback_method: ShortCodeSmsFallbackMethod;
130
+ sms_fallback_method: string;
133
131
  sms_fallback_url: string;
134
- sms_method: ShortCodeSmsMethod;
132
+ sms_method: string;
135
133
  sms_url: string;
136
134
  uri: string;
137
135
  }
@@ -171,7 +169,7 @@ export declare class ShortCodeInstance {
171
169
  /**
172
170
  * The HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`.
173
171
  */
174
- smsFallbackMethod: ShortCodeSmsFallbackMethod;
172
+ smsFallbackMethod: string;
175
173
  /**
176
174
  * The URL that we call if an error occurs while retrieving or executing the TwiML from `sms_url`.
177
175
  */
@@ -179,7 +177,7 @@ export declare class ShortCodeInstance {
179
177
  /**
180
178
  * The HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`.
181
179
  */
182
- smsMethod: ShortCodeSmsMethod;
180
+ smsMethod: string;
183
181
  /**
184
182
  * The URL we call when receiving an incoming SMS message to this short code.
185
183
  */
@@ -227,9 +225,9 @@ export declare class ShortCodeInstance {
227
225
  friendlyName: string;
228
226
  shortCode: string;
229
227
  sid: string;
230
- smsFallbackMethod: ShortCodeSmsFallbackMethod;
228
+ smsFallbackMethod: string;
231
229
  smsFallbackUrl: string;
232
- smsMethod: ShortCodeSmsMethod;
230
+ smsMethod: string;
233
231
  smsUrl: string;
234
232
  uri: string;
235
233
  };
@@ -170,9 +170,6 @@ export declare class DomainContextImpl implements DomainContext {
170
170
  toJSON(): DomainContextSolution;
171
171
  [inspect.custom](_depth: any, options: InspectOptions): string;
172
172
  }
173
- export type DomainVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
174
- export type DomainVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
175
- export type DomainVoiceStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
176
173
  interface DomainPayload extends TwilioResponsePayload {
177
174
  domains: DomainResource[];
178
175
  }
@@ -186,10 +183,10 @@ interface DomainResource {
186
183
  friendly_name: string;
187
184
  sid: string;
188
185
  uri: string;
189
- voice_fallback_method: DomainVoiceFallbackMethod;
186
+ voice_fallback_method: string;
190
187
  voice_fallback_url: string;
191
- voice_method: DomainVoiceMethod;
192
- voice_status_callback_method: DomainVoiceStatusCallbackMethod;
188
+ voice_method: string;
189
+ voice_status_callback_method: string;
193
190
  voice_status_callback_url: string;
194
191
  voice_url: string;
195
192
  subresource_uris: Record<string, string>;
@@ -243,7 +240,7 @@ export declare class DomainInstance {
243
240
  /**
244
241
  * The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
245
242
  */
246
- voiceFallbackMethod: DomainVoiceFallbackMethod;
243
+ voiceFallbackMethod: string;
247
244
  /**
248
245
  * The URL that we call when an error occurs while retrieving or executing the TwiML requested from `voice_url`.
249
246
  */
@@ -251,11 +248,11 @@ export declare class DomainInstance {
251
248
  /**
252
249
  * The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
253
250
  */
254
- voiceMethod: DomainVoiceMethod;
251
+ voiceMethod: string;
255
252
  /**
256
253
  * The HTTP method we use to call `voice_status_callback_url`. Either `GET` or `POST`.
257
254
  */
258
- voiceStatusCallbackMethod: DomainVoiceStatusCallbackMethod;
255
+ voiceStatusCallbackMethod: string;
259
256
  /**
260
257
  * The URL that we call to pass status parameters (such as call ended) to your application.
261
258
  */
@@ -349,10 +346,10 @@ export declare class DomainInstance {
349
346
  friendlyName: string;
350
347
  sid: string;
351
348
  uri: string;
352
- voiceFallbackMethod: DomainVoiceFallbackMethod;
349
+ voiceFallbackMethod: string;
353
350
  voiceFallbackUrl: string;
354
- voiceMethod: DomainVoiceMethod;
355
- voiceStatusCallbackMethod: DomainVoiceStatusCallbackMethod;
351
+ voiceMethod: string;
352
+ voiceStatusCallbackMethod: string;
356
353
  voiceStatusCallbackUrl: string;
357
354
  voiceUrl: string;
358
355
  subresourceUris: Record<string, string>;