twilio 4.7.2 → 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 (243) hide show
  1. package/lib/base/BaseTwilio.d.ts +1 -0
  2. package/lib/index.d.ts +52 -36
  3. package/lib/index.js +32 -51
  4. package/lib/jwt/AccessToken.d.ts +168 -173
  5. package/lib/jwt/AccessToken.js +180 -185
  6. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +17 -22
  7. package/lib/rest/api/v2010/account/application.d.ts +15 -20
  8. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +1 -1
  9. package/lib/rest/api/v2010/account/call/feedback.d.ts +5 -5
  10. package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +4 -4
  11. package/lib/rest/api/v2010/account/call/notification.d.ts +3 -4
  12. package/lib/rest/api/v2010/account/call/payment.d.ts +10 -10
  13. package/lib/rest/api/v2010/account/call/recording.d.ts +9 -9
  14. package/lib/rest/api/v2010/account/call/siprec.d.ts +3 -3
  15. package/lib/rest/api/v2010/account/call/stream.d.ts +3 -3
  16. package/lib/rest/api/v2010/account/call.d.ts +2 -2
  17. package/lib/rest/api/v2010/account/conference/participant.d.ts +1 -1
  18. package/lib/rest/api/v2010/account/conference/recording.d.ts +9 -9
  19. package/lib/rest/api/v2010/account/conference.d.ts +4 -4
  20. package/lib/rest/api/v2010/account/connectApp.d.ts +4 -5
  21. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +33 -38
  22. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +33 -38
  23. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +33 -38
  24. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +19 -24
  25. package/lib/rest/api/v2010/account/message/feedback.d.ts +5 -5
  26. package/lib/rest/api/v2010/account/message.d.ts +6 -6
  27. package/lib/rest/api/v2010/account/notification.d.ts +3 -4
  28. package/lib/rest/api/v2010/account/queue.d.ts +3 -3
  29. package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +4 -4
  30. package/lib/rest/api/v2010/account/recording/transcription.d.ts +4 -4
  31. package/lib/rest/api/v2010/account/recording.d.ts +2 -2
  32. package/lib/rest/api/v2010/account/shortCode.d.ts +6 -8
  33. package/lib/rest/api/v2010/account/sip/domain.d.ts +9 -12
  34. package/lib/rest/api/v2010/account/transcription.d.ts +1 -1
  35. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +7 -7
  36. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +7 -7
  37. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +7 -7
  38. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +7 -7
  39. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +7 -7
  40. package/lib/rest/api/v2010/account/usage/record/today.d.ts +7 -7
  41. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +7 -7
  42. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +7 -7
  43. package/lib/rest/api/v2010/account/usage/record.d.ts +7 -7
  44. package/lib/rest/api/v2010/account/usage/trigger.d.ts +27 -28
  45. package/lib/rest/api/v2010/account/usage.d.ts +1 -0
  46. package/lib/rest/api/v2010/account.d.ts +2 -2
  47. package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +1 -1
  48. package/lib/rest/chat/v1/credential.d.ts +1 -1
  49. package/lib/rest/chat/v1/service/channel/message.d.ts +1 -1
  50. package/lib/rest/chat/v1/service/channel.d.ts +1 -1
  51. package/lib/rest/chat/v1/service/role.d.ts +1 -1
  52. package/lib/rest/chat/v1/service/user/userChannel.d.ts +1 -1
  53. package/lib/rest/chat/v2/credential.d.ts +1 -1
  54. package/lib/rest/chat/v2/service/binding.d.ts +1 -1
  55. package/lib/rest/chat/v2/service/channel/member.d.ts +1 -1
  56. package/lib/rest/chat/v2/service/channel/message.d.ts +2 -2
  57. package/lib/rest/chat/v2/service/channel/webhook.d.ts +5 -5
  58. package/lib/rest/chat/v2/service/channel.d.ts +2 -2
  59. package/lib/rest/chat/v2/service/role.d.ts +1 -1
  60. package/lib/rest/chat/v2/service/user/userBinding.d.ts +1 -1
  61. package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -3
  62. package/lib/rest/chat/v2/service/user.d.ts +1 -1
  63. package/lib/rest/chat/v3/channel.d.ts +2 -2
  64. package/lib/rest/content/V1.d.ts +5 -0
  65. package/lib/rest/content/V1.js +7 -0
  66. package/lib/rest/content/v1/contentAndApprovals.d.ts +190 -0
  67. package/lib/rest/content/v1/contentAndApprovals.js +134 -0
  68. package/lib/rest/conversations/v1/addressConfiguration.d.ts +8 -8
  69. package/lib/rest/conversations/v1/configuration/webhook.d.ts +9 -9
  70. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +4 -4
  71. package/lib/rest/conversations/v1/conversation/message.d.ts +8 -8
  72. package/lib/rest/conversations/v1/conversation/participant.d.ts +4 -4
  73. package/lib/rest/conversations/v1/conversation/webhook.d.ts +5 -5
  74. package/lib/rest/conversations/v1/conversation.d.ts +2 -2
  75. package/lib/rest/conversations/v1/credential.d.ts +1 -1
  76. package/lib/rest/conversations/v1/participantConversation.d.ts +1 -1
  77. package/lib/rest/conversations/v1/role.d.ts +1 -1
  78. package/lib/rest/conversations/v1/service/binding.d.ts +7 -7
  79. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +4 -4
  80. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +4 -4
  81. package/lib/rest/conversations/v1/service/conversation/message.d.ts +8 -8
  82. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +4 -4
  83. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +5 -5
  84. package/lib/rest/conversations/v1/service/conversation.d.ts +10 -10
  85. package/lib/rest/conversations/v1/service/participantConversation.d.ts +4 -4
  86. package/lib/rest/conversations/v1/service/role.d.ts +5 -5
  87. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -9
  88. package/lib/rest/conversations/v1/service/user.d.ts +4 -4
  89. package/lib/rest/conversations/v1/user/userConversation.d.ts +2 -2
  90. package/lib/rest/conversations/v1/user.d.ts +1 -1
  91. package/lib/rest/events/v1/sink.d.ts +2 -2
  92. package/lib/rest/flexApi/V1.d.ts +5 -0
  93. package/lib/rest/flexApi/V1.js +7 -0
  94. package/lib/rest/flexApi/v1/assessments.d.ts +255 -10
  95. package/lib/rest/flexApi/v1/assessments.js +208 -23
  96. package/lib/rest/flexApi/v1/configuration.d.ts +1 -1
  97. package/lib/rest/flexApi/v1/flexFlow.d.ts +2 -2
  98. package/lib/rest/flexApi/v1/insightsConversations.d.ts +172 -0
  99. package/lib/rest/flexApi/v1/insightsConversations.js +128 -0
  100. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +8 -2
  101. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +4 -4
  102. package/lib/rest/flexApi/v1/insightsSegments.d.ts +121 -4
  103. package/lib/rest/flexApi/v1/insightsSegments.js +71 -2
  104. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +2 -2
  105. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +3 -3
  106. package/lib/rest/flexApi/v1/webChannel.d.ts +1 -1
  107. package/lib/rest/frontlineApi/v1/user.d.ts +1 -1
  108. package/lib/rest/insights/v1/call/annotation.d.ts +2 -2
  109. package/lib/rest/insights/v1/call/callSummary.d.ts +17 -17
  110. package/lib/rest/insights/v1/call/event.d.ts +2 -2
  111. package/lib/rest/insights/v1/call/metric.d.ts +2 -2
  112. package/lib/rest/insights/v1/callSummaries.d.ts +6 -6
  113. package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +6 -6
  114. package/lib/rest/insights/v1/conference.d.ts +5 -5
  115. package/lib/rest/insights/v1/room/participant.d.ts +16 -16
  116. package/lib/rest/insights/v1/room.d.ts +41 -42
  117. package/lib/rest/ipMessaging/v1/credential.d.ts +1 -1
  118. package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +1 -1
  119. package/lib/rest/ipMessaging/v1/service/channel.d.ts +1 -1
  120. package/lib/rest/ipMessaging/v1/service/role.d.ts +1 -1
  121. package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +1 -1
  122. package/lib/rest/ipMessaging/v2/credential.d.ts +1 -1
  123. package/lib/rest/ipMessaging/v2/service/binding.d.ts +1 -1
  124. package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +1 -1
  125. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +2 -2
  126. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +5 -5
  127. package/lib/rest/ipMessaging/v2/service/channel.d.ts +2 -2
  128. package/lib/rest/ipMessaging/v2/service/role.d.ts +1 -1
  129. package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +1 -1
  130. package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +2 -2
  131. package/lib/rest/ipMessaging/v2/service/user.d.ts +1 -1
  132. package/lib/rest/lookups/v2/phoneNumber.d.ts +1 -1
  133. package/lib/rest/media/v1/mediaProcessor.d.ts +6 -7
  134. package/lib/rest/media/v1/mediaRecording.d.ts +6 -7
  135. package/lib/rest/media/v1/playerStreamer.d.ts +7 -8
  136. package/lib/rest/messaging/V1.d.ts +10 -0
  137. package/lib/rest/messaging/V1.js +16 -0
  138. package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +1 -1
  139. package/lib/rest/messaging/v1/brandRegistration.d.ts +12 -12
  140. package/lib/rest/messaging/v1/domainCerts.d.ts +4 -4
  141. package/lib/rest/messaging/v1/domainCerts.js +2 -2
  142. package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +121 -0
  143. package/lib/rest/messaging/v1/domainConfigMessagingService.js +122 -0
  144. package/lib/rest/messaging/v1/linkshorteningMessagingService.d.ts +109 -0
  145. package/lib/rest/messaging/v1/linkshorteningMessagingService.js +135 -0
  146. package/lib/rest/messaging/v1/service.d.ts +7 -9
  147. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +2 -2
  148. package/lib/rest/microvisor/v1/accountConfig.d.ts +27 -1
  149. package/lib/rest/microvisor/v1/accountConfig.js +25 -0
  150. package/lib/rest/microvisor/v1/accountSecret.d.ts +26 -0
  151. package/lib/rest/microvisor/v1/accountSecret.js +25 -0
  152. package/lib/rest/microvisor/v1/app/appManifest.d.ts +101 -0
  153. package/lib/rest/microvisor/v1/app/appManifest.js +115 -0
  154. package/lib/rest/microvisor/v1/app.d.ts +11 -0
  155. package/lib/rest/microvisor/v1/app.js +15 -0
  156. package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +26 -0
  157. package/lib/rest/microvisor/v1/device/deviceConfig.js +25 -0
  158. package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +26 -0
  159. package/lib/rest/microvisor/v1/device/deviceSecret.js +25 -0
  160. package/lib/rest/monitor/v1/alert.d.ts +3 -4
  161. package/lib/rest/notify/v1/credential.d.ts +1 -1
  162. package/lib/rest/notify/v1/service/binding.d.ts +1 -1
  163. package/lib/rest/notify/v1/service/notification.d.ts +1 -1
  164. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +1 -1
  165. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +1 -1
  166. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +1 -1
  167. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +4 -4
  168. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +1 -1
  169. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +1 -1
  170. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +1 -1
  171. package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +2 -2
  172. package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +1 -1
  173. package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +2 -2
  174. package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +2 -2
  175. package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +2 -2
  176. package/lib/rest/preview/understand/assistant/modelBuild.d.ts +1 -1
  177. package/lib/rest/preview/wireless/sim.d.ts +12 -16
  178. package/lib/rest/proxy/v1/service/session/interaction.d.ts +2 -2
  179. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +2 -2
  180. package/lib/rest/proxy/v1/service/session.d.ts +2 -2
  181. package/lib/rest/proxy/v1/service.d.ts +2 -2
  182. package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +1 -1
  183. package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +1 -1
  184. package/lib/rest/serverless/v1/service/build.d.ts +2 -2
  185. package/lib/rest/serverless/v1/service/environment/log.d.ts +1 -1
  186. package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +1 -1
  187. package/lib/rest/studio/v1/flow/engagement.d.ts +1 -1
  188. package/lib/rest/studio/v1/flow/execution.d.ts +1 -1
  189. package/lib/rest/studio/v1/flow.d.ts +1 -1
  190. package/lib/rest/studio/v2/flow/execution.d.ts +1 -1
  191. package/lib/rest/studio/v2/flow/flowRevision.d.ts +1 -1
  192. package/lib/rest/studio/v2/flow.d.ts +1 -1
  193. package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
  194. package/lib/rest/supersim/v1/esimProfile.d.ts +15 -1
  195. package/lib/rest/supersim/v1/esimProfile.js +6 -0
  196. package/lib/rest/supersim/v1/fleet.d.ts +7 -9
  197. package/lib/rest/supersim/v1/ipCommand.d.ts +3 -3
  198. package/lib/rest/supersim/v1/settingsUpdate.d.ts +1 -1
  199. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +1 -1
  200. package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +1 -1
  201. package/lib/rest/supersim/v1/sim.d.ts +2 -2
  202. package/lib/rest/supersim/v1/smsCommand.d.ts +2 -2
  203. package/lib/rest/supersim/v1/usageRecord.d.ts +2 -2
  204. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +2 -2
  205. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +2 -2
  206. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +14 -14
  207. package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -1
  208. package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +1 -1
  209. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +12 -12
  210. package/lib/rest/taskrouter/v1/workspace.d.ts +1 -1
  211. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +16 -21
  212. package/lib/rest/trunking/v1/trunk/recording.d.ts +2 -2
  213. package/lib/rest/trunking/v1/trunk.d.ts +5 -6
  214. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +4 -4
  215. package/lib/rest/trusthub/v1/customerProfiles.d.ts +8 -8
  216. package/lib/rest/trusthub/v1/supportingDocument.d.ts +1 -1
  217. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +4 -4
  218. package/lib/rest/trusthub/v1/trustProducts.d.ts +8 -8
  219. package/lib/rest/verify/v2/form.d.ts +1 -1
  220. package/lib/rest/verify/v2/service/accessToken.d.ts +1 -1
  221. package/lib/rest/verify/v2/service/entity/challenge.d.ts +4 -4
  222. package/lib/rest/verify/v2/service/entity/factor.d.ts +3 -3
  223. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +4 -4
  224. package/lib/rest/verify/v2/service/verification.d.ts +3 -3
  225. package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
  226. package/lib/rest/verify/v2/service/webhook.d.ts +3 -3
  227. package/lib/rest/verify/v2/verificationAttempt.d.ts +2 -2
  228. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +1 -1
  229. package/lib/rest/video/v1/composition.d.ts +5 -6
  230. package/lib/rest/video/v1/compositionHook.d.ts +4 -5
  231. package/lib/rest/video/v1/recording.d.ts +7 -8
  232. package/lib/rest/video/v1/room/participant/anonymize.d.ts +4 -4
  233. package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +4 -4
  234. package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +4 -4
  235. package/lib/rest/video/v1/room/participant.d.ts +8 -8
  236. package/lib/rest/video/v1/room/roomRecording.d.ts +4 -4
  237. package/lib/rest/video/v1/room.d.ts +6 -7
  238. package/lib/rest/voice/v1/byocTrunk.d.ts +9 -12
  239. package/lib/rest/wireless/v1/command.d.ts +4 -4
  240. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +1 -1
  241. package/lib/rest/wireless/v1/sim.d.ts +17 -22
  242. package/lib/rest/wireless/v1/usageRecord.d.ts +4 -4
  243. package/package.json +2 -5
@@ -3,9 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V1 from "../../../V1";
6
- type WorkerReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
7
- type WorkerReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
8
- type WorkerReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
6
+ export type ReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
7
+ export type ReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
8
+ export type ReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
9
9
  /**
10
10
  * Options to pass to update a ReservationInstance
11
11
  */
@@ -13,7 +13,7 @@ export interface ReservationContextUpdateOptions {
13
13
  /** The If-Match HTTP request header */
14
14
  ifMatch?: string;
15
15
  /** */
16
- reservationStatus?: WorkerReservationStatus;
16
+ reservationStatus?: ReservationStatus;
17
17
  /** The new worker activity SID if rejecting a reservation. */
18
18
  workerActivitySid?: string;
19
19
  /** The assignment instruction for the reservation. */
@@ -59,7 +59,7 @@ export interface ReservationContextUpdateOptions {
59
59
  /** The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. */
60
60
  statusCallbackMethod?: string;
61
61
  /** The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. */
62
- statusCallbackEvent?: Array<WorkerReservationCallStatus>;
62
+ statusCallbackEvent?: Array<ReservationCallStatus>;
63
63
  /** The timeout for a call when executing a Conference instruction. */
64
64
  timeout?: number;
65
65
  /** Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. */
@@ -85,7 +85,7 @@ export interface ReservationContextUpdateOptions {
85
85
  /** The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. */
86
86
  conferenceStatusCallbackMethod?: string;
87
87
  /** The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. */
88
- conferenceStatusCallbackEvent?: Array<WorkerReservationConferenceEvent>;
88
+ conferenceStatusCallbackEvent?: Array<ReservationConferenceEvent>;
89
89
  /** Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. */
90
90
  conferenceRecord?: string;
91
91
  /** Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
@@ -120,7 +120,7 @@ export interface ReservationContextUpdateOptions {
120
120
  */
121
121
  export interface ReservationListInstanceEachOptions {
122
122
  /** Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. */
123
- reservationStatus?: WorkerReservationStatus;
123
+ reservationStatus?: ReservationStatus;
124
124
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
125
125
  pageSize?: number;
126
126
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -135,7 +135,7 @@ export interface ReservationListInstanceEachOptions {
135
135
  */
136
136
  export interface ReservationListInstanceOptions {
137
137
  /** Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. */
138
- reservationStatus?: WorkerReservationStatus;
138
+ reservationStatus?: ReservationStatus;
139
139
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
140
140
  pageSize?: number;
141
141
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -146,7 +146,7 @@ export interface ReservationListInstanceOptions {
146
146
  */
147
147
  export interface ReservationListInstancePageOptions {
148
148
  /** Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. */
149
- reservationStatus?: WorkerReservationStatus;
149
+ reservationStatus?: ReservationStatus;
150
150
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
151
151
  pageSize?: number;
152
152
  /** Page Number, this value is simply for client state */
@@ -213,7 +213,7 @@ interface ReservationResource {
213
213
  account_sid: string;
214
214
  date_created: Date;
215
215
  date_updated: Date;
216
- reservation_status: WorkerReservationStatus;
216
+ reservation_status: ReservationStatus;
217
217
  sid: string;
218
218
  task_sid: string;
219
219
  worker_name: string;
@@ -239,7 +239,7 @@ export declare class ReservationInstance {
239
239
  * The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
240
240
  */
241
241
  dateUpdated: Date;
242
- reservationStatus: WorkerReservationStatus;
242
+ reservationStatus: ReservationStatus;
243
243
  /**
244
244
  * The unique string that we created to identify the WorkerReservation resource.
245
245
  */
@@ -303,7 +303,7 @@ export declare class ReservationInstance {
303
303
  accountSid: string;
304
304
  dateCreated: Date;
305
305
  dateUpdated: Date;
306
- reservationStatus: WorkerReservationStatus;
306
+ reservationStatus: ReservationStatus;
307
307
  sid: string;
308
308
  taskSid: string;
309
309
  workerName: string;
@@ -13,7 +13,7 @@ import { WorkflowListInstance } from "./workspace/workflow";
13
13
  import { WorkspaceCumulativeStatisticsListInstance } from "./workspace/workspaceCumulativeStatistics";
14
14
  import { WorkspaceRealTimeStatisticsListInstance } from "./workspace/workspaceRealTimeStatistics";
15
15
  import { WorkspaceStatisticsListInstance } from "./workspace/workspaceStatistics";
16
- type WorkspaceQueueOrder = "FIFO" | "LIFO";
16
+ export type WorkspaceQueueOrder = "FIFO" | "LIFO";
17
17
  /**
18
18
  * Options to pass to update a WorkspaceInstance
19
19
  */
@@ -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 V1 from "../../V1";
6
- type PhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
6
+ export type PhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
7
7
  /**
8
8
  * Options to pass to create a PhoneNumberInstance
9
9
  */
@@ -86,11 +86,6 @@ export declare class PhoneNumberContextImpl implements PhoneNumberContext {
86
86
  toJSON(): PhoneNumberContextSolution;
87
87
  [inspect.custom](_depth: any, options: InspectOptions): string;
88
88
  }
89
- export type PhoneNumberSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
90
- export type PhoneNumberSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
91
- export type PhoneNumberStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
92
- export type PhoneNumberVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
93
- export type PhoneNumberVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
94
89
  interface PhoneNumberPayload extends TwilioResponsePayload {
95
90
  phone_numbers: PhoneNumberResource[];
96
91
  }
@@ -107,19 +102,19 @@ interface PhoneNumberResource {
107
102
  phone_number: string;
108
103
  sid: string;
109
104
  sms_application_sid: string;
110
- sms_fallback_method: PhoneNumberSmsFallbackMethod;
105
+ sms_fallback_method: string;
111
106
  sms_fallback_url: string;
112
- sms_method: PhoneNumberSmsMethod;
107
+ sms_method: string;
113
108
  sms_url: string;
114
109
  status_callback: string;
115
- status_callback_method: PhoneNumberStatusCallbackMethod;
110
+ status_callback_method: string;
116
111
  trunk_sid: string;
117
112
  url: string;
118
113
  voice_application_sid: string;
119
114
  voice_caller_id_lookup: boolean;
120
- voice_fallback_method: PhoneNumberVoiceFallbackMethod;
115
+ voice_fallback_method: string;
121
116
  voice_fallback_url: string;
122
- voice_method: PhoneNumberVoiceMethod;
117
+ voice_method: string;
123
118
  voice_url: string;
124
119
  }
125
120
  export declare class PhoneNumberInstance {
@@ -175,7 +170,7 @@ export declare class PhoneNumberInstance {
175
170
  /**
176
171
  * The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
177
172
  */
178
- smsFallbackMethod: PhoneNumberSmsFallbackMethod;
173
+ smsFallbackMethod: string;
179
174
  /**
180
175
  * The URL that we call using the `sms_fallback_method` when an error occurs while retrieving or executing the TwiML from `sms_url`.
181
176
  */
@@ -183,7 +178,7 @@ export declare class PhoneNumberInstance {
183
178
  /**
184
179
  * The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
185
180
  */
186
- smsMethod: PhoneNumberSmsMethod;
181
+ smsMethod: string;
187
182
  /**
188
183
  * The URL we call using the `sms_method` when the phone number receives an incoming SMS message.
189
184
  */
@@ -195,7 +190,7 @@ export declare class PhoneNumberInstance {
195
190
  /**
196
191
  * The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
197
192
  */
198
- statusCallbackMethod: PhoneNumberStatusCallbackMethod;
193
+ statusCallbackMethod: string;
199
194
  /**
200
195
  * 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.
201
196
  */
@@ -215,7 +210,7 @@ export declare class PhoneNumberInstance {
215
210
  /**
216
211
  * The HTTP method that we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
217
212
  */
218
- voiceFallbackMethod: PhoneNumberVoiceFallbackMethod;
213
+ voiceFallbackMethod: string;
219
214
  /**
220
215
  * The URL that we call using the `voice_fallback_method` when an error occurs retrieving or executing the TwiML requested by `url`.
221
216
  */
@@ -223,7 +218,7 @@ export declare class PhoneNumberInstance {
223
218
  /**
224
219
  * The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
225
220
  */
226
- voiceMethod: PhoneNumberVoiceMethod;
221
+ voiceMethod: string;
227
222
  /**
228
223
  * The URL we call using the `voice_method` when the phone number receives a call. The `voice_url` is not be used if a `voice_application_sid` or a `trunk_sid` is set.
229
224
  */
@@ -263,19 +258,19 @@ export declare class PhoneNumberInstance {
263
258
  phoneNumber: string;
264
259
  sid: string;
265
260
  smsApplicationSid: string;
266
- smsFallbackMethod: PhoneNumberSmsFallbackMethod;
261
+ smsFallbackMethod: string;
267
262
  smsFallbackUrl: string;
268
- smsMethod: PhoneNumberSmsMethod;
263
+ smsMethod: string;
269
264
  smsUrl: string;
270
265
  statusCallback: string;
271
- statusCallbackMethod: PhoneNumberStatusCallbackMethod;
266
+ statusCallbackMethod: string;
272
267
  trunkSid: string;
273
268
  url: string;
274
269
  voiceApplicationSid: string;
275
270
  voiceCallerIdLookup: boolean;
276
- voiceFallbackMethod: PhoneNumberVoiceFallbackMethod;
271
+ voiceFallbackMethod: string;
277
272
  voiceFallbackUrl: string;
278
- voiceMethod: PhoneNumberVoiceMethod;
273
+ voiceMethod: string;
279
274
  voiceUrl: string;
280
275
  };
281
276
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../../V1";
4
- type RecordingRecordingMode = "do-not-record" | "record-from-ringing" | "record-from-answer" | "record-from-ringing-dual" | "record-from-answer-dual";
5
- type RecordingRecordingTrim = "trim-silence" | "do-not-trim";
4
+ export type RecordingRecordingMode = "do-not-record" | "record-from-ringing" | "record-from-answer" | "record-from-ringing-dual" | "record-from-answer-dual";
5
+ export type RecordingRecordingTrim = "trim-silence" | "do-not-trim";
6
6
  /**
7
7
  * Options to pass to update a RecordingInstance
8
8
  */
@@ -8,8 +8,8 @@ import { IpAccessControlListListInstance } from "./trunk/ipAccessControlList";
8
8
  import { OriginationUrlListInstance } from "./trunk/originationUrl";
9
9
  import { PhoneNumberListInstance } from "./trunk/phoneNumber";
10
10
  import { RecordingListInstance } from "./trunk/recording";
11
- type TrunkTransferCallerId = "from-transferee" | "from-transferor";
12
- type TrunkTransferSetting = "disable-all" | "enable-all" | "sip-only";
11
+ export type TrunkTransferCallerId = "from-transferee" | "from-transferor";
12
+ export type TrunkTransferSetting = "disable-all" | "enable-all" | "sip-only";
13
13
  /**
14
14
  * Options to pass to update a TrunkInstance
15
15
  */
@@ -159,14 +159,13 @@ export declare class TrunkContextImpl implements TrunkContext {
159
159
  toJSON(): TrunkContextSolution;
160
160
  [inspect.custom](_depth: any, options: InspectOptions): string;
161
161
  }
162
- export type TrunkDisasterRecoveryMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
163
162
  interface TrunkPayload extends TwilioResponsePayload {
164
163
  trunks: TrunkResource[];
165
164
  }
166
165
  interface TrunkResource {
167
166
  account_sid: string;
168
167
  domain_name: string;
169
- disaster_recovery_method: TrunkDisasterRecoveryMethod;
168
+ disaster_recovery_method: string;
170
169
  disaster_recovery_url: string;
171
170
  friendly_name: string;
172
171
  secure: boolean;
@@ -198,7 +197,7 @@ export declare class TrunkInstance {
198
197
  /**
199
198
  * The HTTP method we use to call the `disaster_recovery_url`. Can be: `GET` or `POST`.
200
199
  */
201
- disasterRecoveryMethod: TrunkDisasterRecoveryMethod;
200
+ disasterRecoveryMethod: string;
202
201
  /**
203
202
  * The URL we call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from this URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information.
204
203
  */
@@ -311,7 +310,7 @@ export declare class TrunkInstance {
311
310
  toJSON(): {
312
311
  accountSid: string;
313
312
  domainName: string;
314
- disasterRecoveryMethod: TrunkDisasterRecoveryMethod;
313
+ disasterRecoveryMethod: string;
315
314
  disasterRecoveryUrl: string;
316
315
  friendlyName: string;
317
316
  secure: boolean;
@@ -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 V1 from "../../V1";
6
- type CustomerProfileEvaluationStatus = "compliant" | "noncompliant";
6
+ export type CustomerProfilesEvaluationsStatus = "compliant" | "noncompliant";
7
7
  /**
8
8
  * Options to pass to create a CustomerProfilesEvaluationsInstance
9
9
  */
@@ -85,7 +85,7 @@ interface CustomerProfilesEvaluationsResource {
85
85
  account_sid: string;
86
86
  policy_sid: string;
87
87
  customer_profile_sid: string;
88
- status: CustomerProfileEvaluationStatus;
88
+ status: CustomerProfilesEvaluationsStatus;
89
89
  results: Array<any>;
90
90
  date_created: Date;
91
91
  url: string;
@@ -111,7 +111,7 @@ export declare class CustomerProfilesEvaluationsInstance {
111
111
  * The unique string that we created to identify the customer_profile resource.
112
112
  */
113
113
  customerProfileSid: string;
114
- status: CustomerProfileEvaluationStatus;
114
+ status: CustomerProfilesEvaluationsStatus;
115
115
  /**
116
116
  * The results of the Evaluation which includes the valid and invalid attributes.
117
117
  */
@@ -137,7 +137,7 @@ export declare class CustomerProfilesEvaluationsInstance {
137
137
  accountSid: string;
138
138
  policySid: string;
139
139
  customerProfileSid: string;
140
- status: CustomerProfileEvaluationStatus;
140
+ status: CustomerProfilesEvaluationsStatus;
141
141
  results: any[];
142
142
  dateCreated: Date;
143
143
  url: string;
@@ -6,13 +6,13 @@ import V1 from "../V1";
6
6
  import { CustomerProfilesChannelEndpointAssignmentListInstance } from "./customerProfiles/customerProfilesChannelEndpointAssignment";
7
7
  import { CustomerProfilesEntityAssignmentsListInstance } from "./customerProfiles/customerProfilesEntityAssignments";
8
8
  import { CustomerProfilesEvaluationsListInstance } from "./customerProfiles/customerProfilesEvaluations";
9
- type CustomerProfileStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
9
+ export type CustomerProfilesStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
10
10
  /**
11
11
  * Options to pass to update a CustomerProfilesInstance
12
12
  */
13
13
  export interface CustomerProfilesContextUpdateOptions {
14
14
  /** */
15
- status?: CustomerProfileStatus;
15
+ status?: CustomerProfilesStatus;
16
16
  /** The URL we call to inform your application of status changes. */
17
17
  statusCallback?: string;
18
18
  /** The string that you assigned to describe the resource. */
@@ -38,7 +38,7 @@ export interface CustomerProfilesListInstanceCreateOptions {
38
38
  */
39
39
  export interface CustomerProfilesListInstanceEachOptions {
40
40
  /** The verification status of the Customer-Profile resource. */
41
- status?: CustomerProfileStatus;
41
+ status?: CustomerProfilesStatus;
42
42
  /** The string that you assigned to describe the resource. */
43
43
  friendlyName?: string;
44
44
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -57,7 +57,7 @@ export interface CustomerProfilesListInstanceEachOptions {
57
57
  */
58
58
  export interface CustomerProfilesListInstanceOptions {
59
59
  /** The verification status of the Customer-Profile resource. */
60
- status?: CustomerProfileStatus;
60
+ status?: CustomerProfilesStatus;
61
61
  /** The string that you assigned to describe the resource. */
62
62
  friendlyName?: string;
63
63
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -72,7 +72,7 @@ export interface CustomerProfilesListInstanceOptions {
72
72
  */
73
73
  export interface CustomerProfilesListInstancePageOptions {
74
74
  /** The verification status of the Customer-Profile resource. */
75
- status?: CustomerProfileStatus;
75
+ status?: CustomerProfilesStatus;
76
76
  /** The string that you assigned to describe the resource. */
77
77
  friendlyName?: string;
78
78
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -160,7 +160,7 @@ interface CustomerProfilesResource {
160
160
  account_sid: string;
161
161
  policy_sid: string;
162
162
  friendly_name: string;
163
- status: CustomerProfileStatus;
163
+ status: CustomerProfilesStatus;
164
164
  valid_until: Date;
165
165
  email: string;
166
166
  status_callback: string;
@@ -190,7 +190,7 @@ export declare class CustomerProfilesInstance {
190
190
  * The string that you assigned to describe the resource.
191
191
  */
192
192
  friendlyName: string;
193
- status: CustomerProfileStatus;
193
+ status: CustomerProfilesStatus;
194
194
  /**
195
195
  * The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until.
196
196
  */
@@ -275,7 +275,7 @@ export declare class CustomerProfilesInstance {
275
275
  accountSid: string;
276
276
  policySid: string;
277
277
  friendlyName: string;
278
- status: CustomerProfileStatus;
278
+ status: CustomerProfilesStatus;
279
279
  validUntil: Date;
280
280
  email: string;
281
281
  statusCallback: string;
@@ -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 V1 from "../V1";
6
- type SupportingDocumentStatus = "draft" | "pending-review" | "rejected" | "approved" | "expired" | "provisionally-approved";
6
+ export type SupportingDocumentStatus = "draft" | "pending-review" | "rejected" | "approved" | "expired" | "provisionally-approved";
7
7
  /**
8
8
  * Options to pass to update a SupportingDocumentInstance
9
9
  */
@@ -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 V1 from "../../V1";
6
- type TrustProductEvaluationStatus = "compliant" | "noncompliant";
6
+ export type TrustProductsEvaluationsStatus = "compliant" | "noncompliant";
7
7
  /**
8
8
  * Options to pass to create a TrustProductsEvaluationsInstance
9
9
  */
@@ -85,7 +85,7 @@ interface TrustProductsEvaluationsResource {
85
85
  account_sid: string;
86
86
  policy_sid: string;
87
87
  trust_product_sid: string;
88
- status: TrustProductEvaluationStatus;
88
+ status: TrustProductsEvaluationsStatus;
89
89
  results: Array<any>;
90
90
  date_created: Date;
91
91
  url: string;
@@ -111,7 +111,7 @@ export declare class TrustProductsEvaluationsInstance {
111
111
  * The unique string that we created to identify the trust_product resource.
112
112
  */
113
113
  trustProductSid: string;
114
- status: TrustProductEvaluationStatus;
114
+ status: TrustProductsEvaluationsStatus;
115
115
  /**
116
116
  * The results of the Evaluation which includes the valid and invalid attributes.
117
117
  */
@@ -137,7 +137,7 @@ export declare class TrustProductsEvaluationsInstance {
137
137
  accountSid: string;
138
138
  policySid: string;
139
139
  trustProductSid: string;
140
- status: TrustProductEvaluationStatus;
140
+ status: TrustProductsEvaluationsStatus;
141
141
  results: any[];
142
142
  dateCreated: Date;
143
143
  url: string;
@@ -6,13 +6,13 @@ import V1 from "../V1";
6
6
  import { TrustProductsChannelEndpointAssignmentListInstance } from "./trustProducts/trustProductsChannelEndpointAssignment";
7
7
  import { TrustProductsEntityAssignmentsListInstance } from "./trustProducts/trustProductsEntityAssignments";
8
8
  import { TrustProductsEvaluationsListInstance } from "./trustProducts/trustProductsEvaluations";
9
- type TrustProductStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
9
+ export type TrustProductsStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
10
10
  /**
11
11
  * Options to pass to update a TrustProductsInstance
12
12
  */
13
13
  export interface TrustProductsContextUpdateOptions {
14
14
  /** */
15
- status?: TrustProductStatus;
15
+ status?: TrustProductsStatus;
16
16
  /** The URL we call to inform your application of status changes. */
17
17
  statusCallback?: string;
18
18
  /** The string that you assigned to describe the resource. */
@@ -38,7 +38,7 @@ export interface TrustProductsListInstanceCreateOptions {
38
38
  */
39
39
  export interface TrustProductsListInstanceEachOptions {
40
40
  /** The verification status of the Customer-Profile resource. */
41
- status?: TrustProductStatus;
41
+ status?: TrustProductsStatus;
42
42
  /** The string that you assigned to describe the resource. */
43
43
  friendlyName?: string;
44
44
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -57,7 +57,7 @@ export interface TrustProductsListInstanceEachOptions {
57
57
  */
58
58
  export interface TrustProductsListInstanceOptions {
59
59
  /** The verification status of the Customer-Profile resource. */
60
- status?: TrustProductStatus;
60
+ status?: TrustProductsStatus;
61
61
  /** The string that you assigned to describe the resource. */
62
62
  friendlyName?: string;
63
63
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -72,7 +72,7 @@ export interface TrustProductsListInstanceOptions {
72
72
  */
73
73
  export interface TrustProductsListInstancePageOptions {
74
74
  /** The verification status of the Customer-Profile resource. */
75
- status?: TrustProductStatus;
75
+ status?: TrustProductsStatus;
76
76
  /** The string that you assigned to describe the resource. */
77
77
  friendlyName?: string;
78
78
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -160,7 +160,7 @@ interface TrustProductsResource {
160
160
  account_sid: string;
161
161
  policy_sid: string;
162
162
  friendly_name: string;
163
- status: TrustProductStatus;
163
+ status: TrustProductsStatus;
164
164
  valid_until: Date;
165
165
  email: string;
166
166
  status_callback: string;
@@ -190,7 +190,7 @@ export declare class TrustProductsInstance {
190
190
  * The string that you assigned to describe the resource.
191
191
  */
192
192
  friendlyName: string;
193
- status: TrustProductStatus;
193
+ status: TrustProductsStatus;
194
194
  /**
195
195
  * The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until.
196
196
  */
@@ -275,7 +275,7 @@ export declare class TrustProductsInstance {
275
275
  accountSid: string;
276
276
  policySid: string;
277
277
  friendlyName: string;
278
- status: TrustProductStatus;
278
+ status: TrustProductsStatus;
279
279
  validUntil: Date;
280
280
  email: string;
281
281
  statusCallback: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2 from "../V2";
4
- type FormFormTypes = "form-push";
4
+ export type FormFormTypes = "form-push";
5
5
  export interface FormContext {
6
6
  /**
7
7
  * Fetch a FormInstance
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2 from "../../V2";
4
- type AccessTokenFactorTypes = "push";
4
+ export type AccessTokenFactorTypes = "push";
5
5
  /**
6
6
  * Options to pass to create a AccessTokenInstance
7
7
  */
@@ -4,10 +4,10 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2 from "../../../V2";
6
6
  import { NotificationListInstance } from "./challenge/notification";
7
- type ChallengeChallengeReasons = "none" | "not_needed" | "not_requested";
8
- type ChallengeChallengeStatuses = "pending" | "expired" | "approved" | "denied";
9
- type ChallengeFactorTypes = "push" | "totp";
10
- type ChallengeListOrders = "asc" | "desc";
7
+ export type ChallengeChallengeReasons = "none" | "not_needed" | "not_requested";
8
+ export type ChallengeChallengeStatuses = "pending" | "expired" | "approved" | "denied";
9
+ export type ChallengeFactorTypes = "push" | "totp";
10
+ export type ChallengeListOrders = "asc" | "desc";
11
11
  /**
12
12
  * Options to pass to update a ChallengeInstance
13
13
  */
@@ -3,9 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2 from "../../../V2";
6
- type FactorFactorStatuses = "unverified" | "verified";
7
- type FactorFactorTypes = "push" | "totp";
8
- type FactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
6
+ export type FactorFactorStatuses = "unverified" | "verified";
7
+ export type FactorFactorTypes = "push" | "totp";
8
+ export type FactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
9
9
  /**
10
10
  * Options to pass to update a FactorInstance
11
11
  */
@@ -1,10 +1,10 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2 from "../../../V2";
4
- type NewFactorFactorStatuses = "unverified" | "verified";
5
- type NewFactorFactorTypes = "push" | "totp";
6
- type NewFactorNotificationPlatforms = "apn" | "fcm" | "none";
7
- type NewFactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
4
+ export type NewFactorFactorStatuses = "unverified" | "verified";
5
+ export type NewFactorFactorTypes = "push" | "totp";
6
+ export type NewFactorNotificationPlatforms = "apn" | "fcm" | "none";
7
+ export type NewFactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
8
8
  /**
9
9
  * Options to pass to create a NewFactorInstance
10
10
  */
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2 from "../../V2";
4
- type VerificationChannel = "sms" | "call" | "email" | "whatsapp" | "sna";
5
- type VerificationStatus = "canceled" | "approved";
4
+ export type VerificationChannel = "sms" | "call" | "email" | "whatsapp" | "sna";
5
+ export type VerificationStatus = "canceled" | "approved";
6
6
  /**
7
7
  * Options to pass to update a VerificationInstance
8
8
  */
@@ -42,7 +42,7 @@ export interface VerificationListInstanceCreateOptions {
42
42
  templateSid?: string;
43
43
  /** A stringified JSON object in which the keys are the template\\\'s special variables and the values are the variables substitutions. */
44
44
  templateCustomSubstitutions?: string;
45
- /** The IP address of the client\\\'s device. If provided, it has to be a valid IPv4 or IPv6 address. */
45
+ /** Strongly encouraged if using the auto channel. The IP address of the client\\\'s device. If provided, it has to be a valid IPv4 or IPv6 address. */
46
46
  deviceIp?: string;
47
47
  }
48
48
  export interface VerificationContext {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2 from "../../V2";
4
- type VerificationCheckChannel = "sms" | "call" | "email" | "whatsapp" | "sna";
4
+ export type VerificationCheckChannel = "sms" | "call" | "email" | "whatsapp" | "sna";
5
5
  /**
6
6
  * Options to pass to create a VerificationCheckInstance
7
7
  */
@@ -3,9 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V2 from "../../V2";
6
- type WebhookMethods = "GET" | "POST";
7
- type WebhookStatus = "enabled" | "disabled";
8
- type WebhookVersion = "v1" | "v2";
6
+ export type WebhookMethods = "GET" | "POST";
7
+ export type WebhookStatus = "enabled" | "disabled";
8
+ export type WebhookVersion = "v1" | "v2";
9
9
  /**
10
10
  * Options to pass to update a WebhookInstance
11
11
  */
@@ -3,8 +3,8 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V2 from "../V2";
6
- type VerificationAttemptChannels = "sms" | "call" | "email" | "whatsapp";
7
- type VerificationAttemptConversionStatus = "converted" | "unconverted";
6
+ export type VerificationAttemptChannels = "sms" | "call" | "email" | "whatsapp";
7
+ export type VerificationAttemptConversionStatus = "converted" | "unconverted";
8
8
  /**
9
9
  * Options to pass to each
10
10
  */
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2 from "../V2";
4
- type VerificationAttemptsSummaryChannels = "sms" | "call" | "email" | "whatsapp";
4
+ export type VerificationAttemptsSummaryChannels = "sms" | "call" | "email" | "whatsapp";
5
5
  /**
6
6
  * Options to pass to fetch a VerificationAttemptsSummaryInstance
7
7
  */