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,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 V1 from "../V1";
6
- type CompositionFormat = "mp4" | "webm";
7
- type CompositionStatus = "enqueued" | "processing" | "completed" | "deleted" | "failed";
6
+ export type CompositionFormat = "mp4" | "webm";
7
+ export type CompositionStatus = "enqueued" | "processing" | "completed" | "deleted" | "failed";
8
8
  /**
9
9
  * Options to pass to create a CompositionInstance
10
10
  */
@@ -126,7 +126,6 @@ export declare class CompositionContextImpl implements CompositionContext {
126
126
  toJSON(): CompositionContextSolution;
127
127
  [inspect.custom](_depth: any, options: InspectOptions): string;
128
128
  }
129
- export type CompositionStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
130
129
  interface CompositionPayload extends TwilioResponsePayload {
131
130
  compositions: CompositionResource[];
132
131
  }
@@ -149,7 +148,7 @@ interface CompositionResource {
149
148
  duration: number;
150
149
  media_external_location: string;
151
150
  status_callback: string;
152
- status_callback_method: CompositionStatusCallbackMethod;
151
+ status_callback_method: string;
153
152
  url: string;
154
153
  links: Record<string, string>;
155
154
  }
@@ -227,7 +226,7 @@ export declare class CompositionInstance {
227
226
  /**
228
227
  * The HTTP method used to call `status_callback`. Can be: `POST` or `GET`, defaults to `POST`.
229
228
  */
230
- statusCallbackMethod: CompositionStatusCallbackMethod;
229
+ statusCallbackMethod: string;
231
230
  /**
232
231
  * The absolute URL of the resource.
233
232
  */
@@ -277,7 +276,7 @@ export declare class CompositionInstance {
277
276
  duration: number;
278
277
  mediaExternalLocation: string;
279
278
  statusCallback: string;
280
- statusCallbackMethod: CompositionStatusCallbackMethod;
279
+ statusCallbackMethod: string;
281
280
  url: string;
282
281
  links: Record<string, string>;
283
282
  };
@@ -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 CompositionHookFormat = "mp4" | "webm";
6
+ export type CompositionHookFormat = "mp4" | "webm";
7
7
  /**
8
8
  * Options to pass to update a CompositionHookInstance
9
9
  */
@@ -162,7 +162,6 @@ export declare class CompositionHookContextImpl implements CompositionHookContex
162
162
  toJSON(): CompositionHookContextSolution;
163
163
  [inspect.custom](_depth: any, options: InspectOptions): string;
164
164
  }
165
- export type CompositionHookStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
166
165
  interface CompositionHookPayload extends TwilioResponsePayload {
167
166
  composition_hooks: CompositionHookResource[];
168
167
  }
@@ -180,7 +179,7 @@ interface CompositionHookResource {
180
179
  trim: boolean;
181
180
  format: CompositionHookFormat;
182
181
  status_callback: string;
183
- status_callback_method: CompositionHookStatusCallbackMethod;
182
+ status_callback_method: string;
184
183
  url: string;
185
184
  }
186
185
  export declare class CompositionHookInstance {
@@ -240,7 +239,7 @@ export declare class CompositionHookInstance {
240
239
  /**
241
240
  * The HTTP method we should use to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`.
242
241
  */
243
- statusCallbackMethod: CompositionHookStatusCallbackMethod;
242
+ statusCallbackMethod: string;
244
243
  /**
245
244
  * The absolute URL of the resource.
246
245
  */
@@ -290,7 +289,7 @@ export declare class CompositionHookInstance {
290
289
  trim: boolean;
291
290
  format: CompositionHookFormat;
292
291
  statusCallback: string;
293
- statusCallbackMethod: CompositionHookStatusCallbackMethod;
292
+ statusCallbackMethod: string;
294
293
  url: string;
295
294
  };
296
295
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -3,10 +3,10 @@ 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 RecordingCodec = "VP8" | "H264" | "OPUS" | "PCMU";
7
- type RecordingFormat = "mka" | "mkv";
8
- type RecordingStatus = "processing" | "completed" | "deleted" | "failed";
9
- type RecordingType = "audio" | "video" | "data";
6
+ export type RecordingCodec = "VP8" | "H264" | "OPUS" | "PCMU";
7
+ export type RecordingFormat = "mka" | "mkv";
8
+ export type RecordingStatus = "processing" | "completed" | "deleted" | "failed";
9
+ export type RecordingType = "audio" | "video" | "data";
10
10
  /**
11
11
  * Options to pass to each
12
12
  */
@@ -117,7 +117,6 @@ export declare class RecordingContextImpl implements RecordingContext {
117
117
  toJSON(): RecordingContextSolution;
118
118
  [inspect.custom](_depth: any, options: InspectOptions): string;
119
119
  }
120
- export type RecordingStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
121
120
  interface RecordingPayload extends TwilioResponsePayload {
122
121
  recordings: RecordingResource[];
123
122
  }
@@ -138,7 +137,7 @@ interface RecordingResource {
138
137
  offset: number;
139
138
  media_external_location: string;
140
139
  status_callback: string;
141
- status_callback_method: RecordingStatusCallbackMethod;
140
+ status_callback_method: string;
142
141
  links: Record<string, string>;
143
142
  }
144
143
  export declare class RecordingInstance {
@@ -201,7 +200,7 @@ export declare class RecordingInstance {
201
200
  /**
202
201
  * The HTTP method used to call `status_callback`. Can be: `POST` or `GET`, defaults to `POST`.
203
202
  */
204
- statusCallbackMethod: RecordingStatusCallbackMethod;
203
+ statusCallbackMethod: string;
205
204
  /**
206
205
  * The URLs of related resources.
207
206
  */
@@ -245,7 +244,7 @@ export declare class RecordingInstance {
245
244
  offset: number;
246
245
  mediaExternalLocation: string;
247
246
  statusCallback: string;
248
- statusCallbackMethod: RecordingStatusCallbackMethod;
247
+ statusCallbackMethod: string;
249
248
  links: Record<string, string>;
250
249
  };
251
250
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../../../V1";
4
- type RoomParticipantAnonymizeStatus = "connected" | "disconnected";
4
+ export type AnonymizeStatus = "connected" | "disconnected";
5
5
  export interface AnonymizeContext {
6
6
  /**
7
7
  * Update a AnonymizeInstance
@@ -39,7 +39,7 @@ interface AnonymizeResource {
39
39
  sid: string;
40
40
  room_sid: string;
41
41
  account_sid: string;
42
- status: RoomParticipantAnonymizeStatus;
42
+ status: AnonymizeStatus;
43
43
  identity: string;
44
44
  date_created: Date;
45
45
  date_updated: Date;
@@ -65,7 +65,7 @@ export declare class AnonymizeInstance {
65
65
  * The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the RoomParticipant resource.
66
66
  */
67
67
  accountSid: string;
68
- status: RoomParticipantAnonymizeStatus;
68
+ status: AnonymizeStatus;
69
69
  /**
70
70
  * The SID of the participant.
71
71
  */
@@ -112,7 +112,7 @@ export declare class AnonymizeInstance {
112
112
  sid: string;
113
113
  roomSid: string;
114
114
  accountSid: string;
115
- status: RoomParticipantAnonymizeStatus;
115
+ status: AnonymizeStatus;
116
116
  identity: string;
117
117
  dateCreated: Date;
118
118
  dateUpdated: 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 V1 from "../../../V1";
6
- type RoomParticipantPublishedTrackKind = "audio" | "video" | "data";
6
+ export type PublishedTrackKind = "audio" | "video" | "data";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -82,7 +82,7 @@ interface PublishedTrackResource {
82
82
  date_created: Date;
83
83
  date_updated: Date;
84
84
  enabled: boolean;
85
- kind: RoomParticipantPublishedTrackKind;
85
+ kind: PublishedTrackKind;
86
86
  url: string;
87
87
  }
88
88
  export declare class PublishedTrackInstance {
@@ -118,7 +118,7 @@ export declare class PublishedTrackInstance {
118
118
  * Whether the track is enabled.
119
119
  */
120
120
  enabled: boolean;
121
- kind: RoomParticipantPublishedTrackKind;
121
+ kind: PublishedTrackKind;
122
122
  /**
123
123
  * The absolute URL of the resource.
124
124
  */
@@ -145,7 +145,7 @@ export declare class PublishedTrackInstance {
145
145
  dateCreated: Date;
146
146
  dateUpdated: Date;
147
147
  enabled: boolean;
148
- kind: RoomParticipantPublishedTrackKind;
148
+ kind: PublishedTrackKind;
149
149
  url: string;
150
150
  };
151
151
  [inspect.custom](_depth: any, options: InspectOptions): 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 RoomParticipantSubscribedTrackKind = "audio" | "video" | "data";
6
+ export type SubscribedTrackKind = "audio" | "video" | "data";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -83,7 +83,7 @@ interface SubscribedTrackResource {
83
83
  date_created: Date;
84
84
  date_updated: Date;
85
85
  enabled: boolean;
86
- kind: RoomParticipantSubscribedTrackKind;
86
+ kind: SubscribedTrackKind;
87
87
  url: string;
88
88
  }
89
89
  export declare class SubscribedTrackInstance {
@@ -123,7 +123,7 @@ export declare class SubscribedTrackInstance {
123
123
  * Whether the track is enabled.
124
124
  */
125
125
  enabled: boolean;
126
- kind: RoomParticipantSubscribedTrackKind;
126
+ kind: SubscribedTrackKind;
127
127
  /**
128
128
  * The absolute URL of the resource.
129
129
  */
@@ -151,7 +151,7 @@ export declare class SubscribedTrackInstance {
151
151
  dateCreated: Date;
152
152
  dateUpdated: Date;
153
153
  enabled: boolean;
154
- kind: RoomParticipantSubscribedTrackKind;
154
+ kind: SubscribedTrackKind;
155
155
  url: string;
156
156
  };
157
157
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -7,20 +7,20 @@ import { AnonymizeListInstance } from "./participant/anonymize";
7
7
  import { PublishedTrackListInstance } from "./participant/publishedTrack";
8
8
  import { SubscribeRulesListInstance } from "./participant/subscribeRules";
9
9
  import { SubscribedTrackListInstance } from "./participant/subscribedTrack";
10
- type RoomParticipantStatus = "connected" | "disconnected";
10
+ export type ParticipantStatus = "connected" | "disconnected";
11
11
  /**
12
12
  * Options to pass to update a ParticipantInstance
13
13
  */
14
14
  export interface ParticipantContextUpdateOptions {
15
15
  /** */
16
- status?: RoomParticipantStatus;
16
+ status?: ParticipantStatus;
17
17
  }
18
18
  /**
19
19
  * Options to pass to each
20
20
  */
21
21
  export interface ParticipantListInstanceEachOptions {
22
22
  /** Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. */
23
- status?: RoomParticipantStatus;
23
+ status?: ParticipantStatus;
24
24
  /** Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. */
25
25
  identity?: string;
26
26
  /** Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. */
@@ -41,7 +41,7 @@ export interface ParticipantListInstanceEachOptions {
41
41
  */
42
42
  export interface ParticipantListInstanceOptions {
43
43
  /** Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. */
44
- status?: RoomParticipantStatus;
44
+ status?: ParticipantStatus;
45
45
  /** Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. */
46
46
  identity?: string;
47
47
  /** Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. */
@@ -58,7 +58,7 @@ export interface ParticipantListInstanceOptions {
58
58
  */
59
59
  export interface ParticipantListInstancePageOptions {
60
60
  /** Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. */
61
- status?: RoomParticipantStatus;
61
+ status?: ParticipantStatus;
62
62
  /** Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. */
63
63
  identity?: string;
64
64
  /** Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. */
@@ -142,7 +142,7 @@ interface ParticipantResource {
142
142
  sid: string;
143
143
  room_sid: string;
144
144
  account_sid: string;
145
- status: RoomParticipantStatus;
145
+ status: ParticipantStatus;
146
146
  identity: string;
147
147
  date_created: Date;
148
148
  date_updated: Date;
@@ -169,7 +169,7 @@ export declare class ParticipantInstance {
169
169
  * The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the RoomParticipant resource.
170
170
  */
171
171
  accountSid: string;
172
- status: RoomParticipantStatus;
172
+ status: ParticipantStatus;
173
173
  /**
174
174
  * The application-defined string that uniquely identifies the resource\'s User within a Room. If a client joins with an existing Identity, the existing client is disconnected. See [access tokens](https://www.twilio.com/docs/video/tutorials/user-identity-access-tokens) and [limits](https://www.twilio.com/docs/video/programmable-video-limits) for more info.
175
175
  */
@@ -253,7 +253,7 @@ export declare class ParticipantInstance {
253
253
  sid: string;
254
254
  roomSid: string;
255
255
  accountSid: string;
256
- status: RoomParticipantStatus;
256
+ status: ParticipantStatus;
257
257
  identity: string;
258
258
  dateCreated: Date;
259
259
  dateUpdated: Date;
@@ -3,10 +3,10 @@ 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 RoomRecordingCodec = "VP8" | "H264" | "OPUS" | "PCMU";
7
- type RoomRecordingFormat = "mka" | "mkv";
8
- type RoomRecordingStatus = "processing" | "completed" | "deleted" | "failed";
9
- type RoomRecordingType = "audio" | "video" | "data";
6
+ export type RoomRecordingCodec = "VP8" | "H264" | "OPUS" | "PCMU";
7
+ export type RoomRecordingFormat = "mka" | "mkv";
8
+ export type RoomRecordingStatus = "processing" | "completed" | "deleted" | "failed";
9
+ export type RoomRecordingType = "audio" | "video" | "data";
10
10
  /**
11
11
  * Options to pass to each
12
12
  */
@@ -6,9 +6,9 @@ import V1 from "../V1";
6
6
  import { ParticipantListInstance } from "./room/participant";
7
7
  import { RecordingRulesListInstance } from "./room/recordingRules";
8
8
  import { RoomRecordingListInstance } from "./room/roomRecording";
9
- type RoomRoomStatus = "in-progress" | "completed" | "failed";
10
- type RoomRoomType = "go" | "peer-to-peer" | "group" | "group-small";
11
- type RoomVideoCodec = "VP8" | "H264";
9
+ export type RoomRoomStatus = "in-progress" | "completed" | "failed";
10
+ export type RoomRoomType = "go" | "peer-to-peer" | "group" | "group-small";
11
+ export type RoomVideoCodec = "VP8" | "H264";
12
12
  /**
13
13
  * Options to pass to update a RoomInstance
14
14
  */
@@ -159,7 +159,6 @@ export declare class RoomContextImpl implements RoomContext {
159
159
  toJSON(): RoomContextSolution;
160
160
  [inspect.custom](_depth: any, options: InspectOptions): string;
161
161
  }
162
- export type RoomStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
163
162
  interface RoomPayload extends TwilioResponsePayload {
164
163
  rooms: RoomResource[];
165
164
  }
@@ -172,7 +171,7 @@ interface RoomResource {
172
171
  enable_turn: boolean;
173
172
  unique_name: string;
174
173
  status_callback: string;
175
- status_callback_method: RoomStatusCallbackMethod;
174
+ status_callback_method: string;
176
175
  end_time: Date;
177
176
  duration: number;
178
177
  type: RoomRoomType;
@@ -226,7 +225,7 @@ export declare class RoomInstance {
226
225
  /**
227
226
  * The HTTP method we use to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`.
228
227
  */
229
- statusCallbackMethod: RoomStatusCallbackMethod;
228
+ statusCallbackMethod: string;
230
229
  /**
231
230
  * The UTC end time of the room in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.
232
231
  */
@@ -328,7 +327,7 @@ export declare class RoomInstance {
328
327
  enableTurn: boolean;
329
328
  uniqueName: string;
330
329
  statusCallback: string;
331
- statusCallbackMethod: RoomStatusCallbackMethod;
330
+ statusCallbackMethod: string;
332
331
  endTime: Date;
333
332
  duration: number;
334
333
  type: RoomRoomType;
@@ -145,9 +145,6 @@ export declare class ByocTrunkContextImpl implements ByocTrunkContext {
145
145
  toJSON(): ByocTrunkContextSolution;
146
146
  [inspect.custom](_depth: any, options: InspectOptions): string;
147
147
  }
148
- export type ByocTrunkVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
149
- export type ByocTrunkVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
150
- export type ByocTrunkStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
151
148
  interface ByocTrunkPayload extends TwilioResponsePayload {
152
149
  byoc_trunks: ByocTrunkResource[];
153
150
  }
@@ -156,11 +153,11 @@ interface ByocTrunkResource {
156
153
  sid: string;
157
154
  friendly_name: string;
158
155
  voice_url: string;
159
- voice_method: ByocTrunkVoiceMethod;
156
+ voice_method: string;
160
157
  voice_fallback_url: string;
161
- voice_fallback_method: ByocTrunkVoiceFallbackMethod;
158
+ voice_fallback_method: string;
162
159
  status_callback_url: string;
163
- status_callback_method: ByocTrunkStatusCallbackMethod;
160
+ status_callback_method: string;
164
161
  cnam_lookup_enabled: boolean;
165
162
  connection_policy_sid: string;
166
163
  from_domain_sid: string;
@@ -192,7 +189,7 @@ export declare class ByocTrunkInstance {
192
189
  /**
193
190
  * The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
194
191
  */
195
- voiceMethod: ByocTrunkVoiceMethod;
192
+ voiceMethod: string;
196
193
  /**
197
194
  * The URL that we call when an error occurs while retrieving or executing the TwiML requested from `voice_url`.
198
195
  */
@@ -200,7 +197,7 @@ export declare class ByocTrunkInstance {
200
197
  /**
201
198
  * The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
202
199
  */
203
- voiceFallbackMethod: ByocTrunkVoiceFallbackMethod;
200
+ voiceFallbackMethod: string;
204
201
  /**
205
202
  * The URL that we call to pass status parameters (such as call ended) to your application.
206
203
  */
@@ -208,7 +205,7 @@ export declare class ByocTrunkInstance {
208
205
  /**
209
206
  * The HTTP method we use to call `status_callback_url`. Either `GET` or `POST`.
210
207
  */
211
- statusCallbackMethod: ByocTrunkStatusCallbackMethod;
208
+ statusCallbackMethod: string;
212
209
  /**
213
210
  * Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
214
211
  */
@@ -277,11 +274,11 @@ export declare class ByocTrunkInstance {
277
274
  sid: string;
278
275
  friendlyName: string;
279
276
  voiceUrl: string;
280
- voiceMethod: ByocTrunkVoiceMethod;
277
+ voiceMethod: string;
281
278
  voiceFallbackUrl: string;
282
- voiceFallbackMethod: ByocTrunkVoiceFallbackMethod;
279
+ voiceFallbackMethod: string;
283
280
  statusCallbackUrl: string;
284
- statusCallbackMethod: ByocTrunkStatusCallbackMethod;
281
+ statusCallbackMethod: string;
285
282
  cnamLookupEnabled: boolean;
286
283
  connectionPolicySid: string;
287
284
  fromDomainSid: string;
@@ -3,10 +3,10 @@ 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 CommandCommandMode = "text" | "binary";
7
- type CommandDirection = "from_sim" | "to_sim";
8
- type CommandStatus = "queued" | "sent" | "delivered" | "received" | "failed";
9
- type CommandTransport = "sms" | "ip";
6
+ export type CommandCommandMode = "text" | "binary";
7
+ export type CommandDirection = "from_sim" | "to_sim";
8
+ export type CommandStatus = "queued" | "sent" | "delivered" | "received" | "failed";
9
+ export type CommandTransport = "sms" | "ip";
10
10
  /**
11
11
  * Options to pass to create a CommandInstance
12
12
  */
@@ -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 UsageRecordGranularity = "hourly" | "daily" | "all";
6
+ export type UsageRecordGranularity = "hourly" | "daily" | "all";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -5,8 +5,8 @@ import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
6
  import { DataSessionListInstance } from "./sim/dataSession";
7
7
  import { UsageRecordListInstance } from "./sim/usageRecord";
8
- type SimResetStatus = "resetting";
9
- type SimStatus = "new" | "ready" | "active" | "suspended" | "deactivated" | "canceled" | "scheduled" | "updating";
8
+ export type SimResetStatus = "resetting";
9
+ export type SimStatus = "new" | "ready" | "active" | "suspended" | "deactivated" | "canceled" | "scheduled" | "updating";
10
10
  /**
11
11
  * Options to pass to update a SimInstance
12
12
  */
@@ -176,11 +176,6 @@ export declare class SimContextImpl implements SimContext {
176
176
  toJSON(): SimContextSolution;
177
177
  [inspect.custom](_depth: any, options: InspectOptions): string;
178
178
  }
179
- export type SimCommandsCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
180
- export type SimSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
181
- export type SimSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
182
- export type SimVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
183
- export type SimVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
184
179
  interface SimPayload extends TwilioResponsePayload {
185
180
  sims: SimResource[];
186
181
  }
@@ -195,14 +190,14 @@ interface SimResource {
195
190
  status: SimStatus;
196
191
  reset_status: SimResetStatus;
197
192
  commands_callback_url: string;
198
- commands_callback_method: SimCommandsCallbackMethod;
199
- sms_fallback_method: SimSmsFallbackMethod;
193
+ commands_callback_method: string;
194
+ sms_fallback_method: string;
200
195
  sms_fallback_url: string;
201
- sms_method: SimSmsMethod;
196
+ sms_method: string;
202
197
  sms_url: string;
203
- voice_fallback_method: SimVoiceFallbackMethod;
198
+ voice_fallback_method: string;
204
199
  voice_fallback_url: string;
205
- voice_method: SimVoiceMethod;
200
+ voice_method: string;
206
201
  voice_url: string;
207
202
  date_created: Date;
208
203
  date_updated: Date;
@@ -252,11 +247,11 @@ export declare class SimInstance {
252
247
  /**
253
248
  * The HTTP method we use to call `commands_callback_url`. Can be: `POST` or `GET`. Default is `POST`.
254
249
  */
255
- commandsCallbackMethod: SimCommandsCallbackMethod;
250
+ commandsCallbackMethod: string;
256
251
  /**
257
252
  * Deprecated.
258
253
  */
259
- smsFallbackMethod: SimSmsFallbackMethod;
254
+ smsFallbackMethod: string;
260
255
  /**
261
256
  * Deprecated.
262
257
  */
@@ -264,7 +259,7 @@ export declare class SimInstance {
264
259
  /**
265
260
  * Deprecated.
266
261
  */
267
- smsMethod: SimSmsMethod;
262
+ smsMethod: string;
268
263
  /**
269
264
  * Deprecated.
270
265
  */
@@ -272,7 +267,7 @@ export declare class SimInstance {
272
267
  /**
273
268
  * Deprecated. The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. Default is `POST`.
274
269
  */
275
- voiceFallbackMethod: SimVoiceFallbackMethod;
270
+ voiceFallbackMethod: string;
276
271
  /**
277
272
  * Deprecated. The URL we call using the `voice_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `voice_url`.
278
273
  */
@@ -280,7 +275,7 @@ export declare class SimInstance {
280
275
  /**
281
276
  * Deprecated. The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. Default is `POST`.
282
277
  */
283
- voiceMethod: SimVoiceMethod;
278
+ voiceMethod: string;
284
279
  /**
285
280
  * Deprecated. The URL we call using the `voice_method` when the SIM-connected device makes a voice call.
286
281
  */
@@ -363,14 +358,14 @@ export declare class SimInstance {
363
358
  status: SimStatus;
364
359
  resetStatus: "resetting";
365
360
  commandsCallbackUrl: string;
366
- commandsCallbackMethod: SimCommandsCallbackMethod;
367
- smsFallbackMethod: SimSmsFallbackMethod;
361
+ commandsCallbackMethod: string;
362
+ smsFallbackMethod: string;
368
363
  smsFallbackUrl: string;
369
- smsMethod: SimSmsMethod;
364
+ smsMethod: string;
370
365
  smsUrl: string;
371
- voiceFallbackMethod: SimVoiceFallbackMethod;
366
+ voiceFallbackMethod: string;
372
367
  voiceFallbackUrl: string;
373
- voiceMethod: SimVoiceMethod;
368
+ voiceMethod: string;
374
369
  voiceUrl: string;
375
370
  dateCreated: Date;
376
371
  dateUpdated: 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 V1 from "../V1";
6
- type AccountUsageRecordGranularity = "hourly" | "daily" | "all";
6
+ export type UsageRecordGranularity = "hourly" | "daily" | "all";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -13,7 +13,7 @@ export interface UsageRecordListInstanceEachOptions {
13
13
  /** Only include usage that has occurred on or after this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). */
14
14
  start?: Date;
15
15
  /** How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. */
16
- granularity?: AccountUsageRecordGranularity;
16
+ granularity?: UsageRecordGranularity;
17
17
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
18
18
  pageSize?: number;
19
19
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -32,7 +32,7 @@ export interface UsageRecordListInstanceOptions {
32
32
  /** Only include usage that has occurred on or after this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). */
33
33
  start?: Date;
34
34
  /** How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. */
35
- granularity?: AccountUsageRecordGranularity;
35
+ granularity?: UsageRecordGranularity;
36
36
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
37
37
  pageSize?: number;
38
38
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -47,7 +47,7 @@ export interface UsageRecordListInstancePageOptions {
47
47
  /** Only include usage that has occurred on or after this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). */
48
48
  start?: Date;
49
49
  /** How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. */
50
- granularity?: AccountUsageRecordGranularity;
50
+ granularity?: UsageRecordGranularity;
51
51
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
52
52
  pageSize?: number;
53
53
  /** Page Number, this value is simply for client state */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "4.7.2",
4
+ "version": "4.9.0",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {
@@ -42,7 +42,6 @@
42
42
  "express": "^4.17.1",
43
43
  "jest": "^29.3.1",
44
44
  "jshint": "^2.11.0",
45
- "localtunnel": "^2.0.2",
46
45
  "mock-fs": "^5.2.0",
47
46
  "nock": "^13.2.9",
48
47
  "node-mocks-http": "^1.8.1",
@@ -53,7 +52,7 @@
53
52
  },
54
53
  "scripts": {
55
54
  "test": "npm run test:javascript && npm run test:typescript",
56
- "test:javascript": "jest spec/* --coverage --detectOpenHandles",
55
+ "test:javascript": "jest spec --coverage --detectOpenHandles --testPathIgnorePatterns=spec/cluster",
57
56
  "test:typescript": "tsc --noEmit",
58
57
  "jshint": "jshint src/rest/** src/base/** src/http/**",
59
58
  "jscs": "eslint src/base/**/**.js src/http/**/**.js --fix",
@@ -64,8 +63,6 @@
64
63
  "nsp": "npm audit --production",
65
64
  "prettier": "prettier --write .",
66
65
  "prettier-check": "prettier --check .",
67
- "cluster": "jest ./cluster_test.spec.ts --coverage",
68
- "webhook-test": "jest ./webhook_cluster_test.spec.ts --coverage",
69
66
  "typedoc": "typedoc --entryPointStrategy expand src --out docs --logLevel Error"
70
67
  },
71
68
  "files": [