twilio 4.7.1 → 4.8.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 (231) hide show
  1. package/lib/index.d.ts +52 -36
  2. package/lib/index.js +32 -51
  3. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +2 -2
  4. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +1 -1
  5. package/lib/rest/api/v2010/account/call/feedback.d.ts +1 -1
  6. package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +1 -1
  7. package/lib/rest/api/v2010/account/call/payment.d.ts +5 -5
  8. package/lib/rest/api/v2010/account/call/recording.d.ts +2 -2
  9. package/lib/rest/api/v2010/account/call/siprec.d.ts +3 -3
  10. package/lib/rest/api/v2010/account/call/stream.d.ts +3 -3
  11. package/lib/rest/api/v2010/account/call.d.ts +2 -2
  12. package/lib/rest/api/v2010/account/conference/participant.d.ts +1 -1
  13. package/lib/rest/api/v2010/account/conference/recording.d.ts +2 -2
  14. package/lib/rest/api/v2010/account/conference.d.ts +4 -4
  15. package/lib/rest/api/v2010/account/connectApp.d.ts +1 -1
  16. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +4 -4
  17. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +4 -4
  18. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +4 -4
  19. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +4 -4
  20. package/lib/rest/api/v2010/account/message/feedback.d.ts +1 -1
  21. package/lib/rest/api/v2010/account/message.d.ts +6 -6
  22. package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +1 -1
  23. package/lib/rest/api/v2010/account/recording/transcription.d.ts +1 -1
  24. package/lib/rest/api/v2010/account/recording.d.ts +2 -2
  25. package/lib/rest/api/v2010/account/transcription.d.ts +1 -1
  26. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
  27. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
  28. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
  29. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
  30. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
  31. package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
  32. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
  33. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
  34. package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
  35. package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -3
  36. package/lib/rest/api/v2010/account/usage.d.ts +1 -0
  37. package/lib/rest/api/v2010/account.d.ts +2 -2
  38. package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +1 -1
  39. package/lib/rest/chat/v1/credential.d.ts +1 -1
  40. package/lib/rest/chat/v1/service/channel/message.d.ts +1 -1
  41. package/lib/rest/chat/v1/service/channel.d.ts +1 -1
  42. package/lib/rest/chat/v1/service/role.d.ts +1 -1
  43. package/lib/rest/chat/v1/service/user/userChannel.d.ts +1 -1
  44. package/lib/rest/chat/v2/credential.d.ts +1 -1
  45. package/lib/rest/chat/v2/service/binding.d.ts +1 -1
  46. package/lib/rest/chat/v2/service/channel/member.d.ts +1 -1
  47. package/lib/rest/chat/v2/service/channel/message.d.ts +2 -2
  48. package/lib/rest/chat/v2/service/channel/webhook.d.ts +2 -2
  49. package/lib/rest/chat/v2/service/channel.d.ts +2 -2
  50. package/lib/rest/chat/v2/service/role.d.ts +1 -1
  51. package/lib/rest/chat/v2/service/user/userBinding.d.ts +1 -1
  52. package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -3
  53. package/lib/rest/chat/v2/service/user.d.ts +1 -1
  54. package/lib/rest/chat/v3/channel.d.ts +2 -2
  55. package/lib/rest/content/V1.d.ts +5 -0
  56. package/lib/rest/content/V1.js +7 -0
  57. package/lib/rest/content/v1/legacyContent.d.ts +202 -0
  58. package/lib/rest/content/v1/legacyContent.js +138 -0
  59. package/lib/rest/conversations/v1/addressConfiguration.d.ts +3 -3
  60. package/lib/rest/conversations/v1/configuration/webhook.d.ts +2 -2
  61. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +1 -1
  62. package/lib/rest/conversations/v1/conversation/message.d.ts +2 -2
  63. package/lib/rest/conversations/v1/conversation/participant.d.ts +1 -1
  64. package/lib/rest/conversations/v1/conversation/webhook.d.ts +2 -2
  65. package/lib/rest/conversations/v1/conversation.d.ts +2 -2
  66. package/lib/rest/conversations/v1/credential.d.ts +1 -1
  67. package/lib/rest/conversations/v1/participantConversation.d.ts +1 -1
  68. package/lib/rest/conversations/v1/role.d.ts +1 -1
  69. package/lib/rest/conversations/v1/service/binding.d.ts +1 -1
  70. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +1 -1
  71. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +1 -1
  72. package/lib/rest/conversations/v1/service/conversation/message.d.ts +2 -2
  73. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +1 -1
  74. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +2 -2
  75. package/lib/rest/conversations/v1/service/conversation.d.ts +2 -2
  76. package/lib/rest/conversations/v1/service/participantConversation.d.ts +1 -1
  77. package/lib/rest/conversations/v1/service/role.d.ts +1 -1
  78. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +2 -2
  79. package/lib/rest/conversations/v1/service/user.d.ts +1 -1
  80. package/lib/rest/conversations/v1/user/userConversation.d.ts +2 -2
  81. package/lib/rest/conversations/v1/user.d.ts +1 -1
  82. package/lib/rest/events/v1/sink.d.ts +2 -2
  83. package/lib/rest/flexApi/V1.d.ts +15 -0
  84. package/lib/rest/flexApi/V1.js +22 -0
  85. package/lib/rest/flexApi/v1/assessments.d.ts +138 -10
  86. package/lib/rest/flexApi/v1/assessments.js +138 -22
  87. package/lib/rest/flexApi/v1/configuration.d.ts +1 -1
  88. package/lib/rest/flexApi/v1/flexFlow.d.ts +2 -2
  89. package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +255 -0
  90. package/lib/rest/flexApi/v1/insightsAssessmentsComment.js +198 -0
  91. package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +357 -0
  92. package/lib/rest/flexApi/v1/insightsQuestionnaires.js +280 -0
  93. package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.d.ts +111 -0
  94. package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.js +68 -1
  95. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +135 -6
  96. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +80 -13
  97. package/lib/rest/flexApi/v1/insightsSegments.d.ts +341 -0
  98. package/lib/rest/flexApi/v1/insightsSegments.js +223 -0
  99. package/lib/rest/flexApi/v1/insightsSession.d.ts +2 -2
  100. package/lib/rest/flexApi/v1/insightsSession.js +2 -2
  101. package/lib/rest/flexApi/v1/insightsUserRoles.d.ts +2 -2
  102. package/lib/rest/flexApi/v1/insightsUserRoles.js +2 -2
  103. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +2 -2
  104. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +3 -3
  105. package/lib/rest/flexApi/v1/webChannel.d.ts +1 -1
  106. package/lib/rest/frontlineApi/v1/user.d.ts +1 -1
  107. package/lib/rest/insights/v1/call/annotation.d.ts +2 -2
  108. package/lib/rest/insights/v1/call/callSummary.d.ts +4 -4
  109. package/lib/rest/insights/v1/call/event.d.ts +2 -2
  110. package/lib/rest/insights/v1/call/metric.d.ts +2 -2
  111. package/lib/rest/insights/v1/callSummaries.d.ts +6 -6
  112. package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +6 -6
  113. package/lib/rest/insights/v1/conference.d.ts +5 -5
  114. package/lib/rest/insights/v1/room/participant.d.ts +4 -4
  115. package/lib/rest/insights/v1/room.d.ts +8 -8
  116. package/lib/rest/ipMessaging/v1/credential.d.ts +1 -1
  117. package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +1 -1
  118. package/lib/rest/ipMessaging/v1/service/channel.d.ts +1 -1
  119. package/lib/rest/ipMessaging/v1/service/role.d.ts +1 -1
  120. package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +1 -1
  121. package/lib/rest/ipMessaging/v2/credential.d.ts +1 -1
  122. package/lib/rest/ipMessaging/v2/service/binding.d.ts +1 -1
  123. package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +1 -1
  124. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +2 -2
  125. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +2 -2
  126. package/lib/rest/ipMessaging/v2/service/channel.d.ts +2 -2
  127. package/lib/rest/ipMessaging/v2/service/role.d.ts +1 -1
  128. package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +1 -1
  129. package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +2 -2
  130. package/lib/rest/ipMessaging/v2/service/user.d.ts +1 -1
  131. package/lib/rest/lookups/v2/phoneNumber.d.ts +13 -1
  132. package/lib/rest/lookups/v2/phoneNumber.js +4 -0
  133. package/lib/rest/media/v1/mediaProcessor.d.ts +3 -3
  134. package/lib/rest/media/v1/mediaRecording.d.ts +3 -3
  135. package/lib/rest/media/v1/playerStreamer.d.ts +4 -4
  136. package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +1 -1
  137. package/lib/rest/messaging/v1/brandRegistration.d.ts +3 -3
  138. package/lib/rest/messaging/v1/service.d.ts +1 -1
  139. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +2 -2
  140. package/lib/rest/microvisor/V1.d.ts +10 -0
  141. package/lib/rest/microvisor/V1.js +14 -0
  142. package/lib/rest/microvisor/v1/accountConfig.d.ts +263 -0
  143. package/lib/rest/microvisor/v1/accountConfig.js +246 -0
  144. package/lib/rest/microvisor/v1/accountSecret.d.ts +257 -0
  145. package/lib/rest/microvisor/v1/accountSecret.js +244 -0
  146. package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +271 -0
  147. package/lib/rest/microvisor/v1/device/deviceConfig.js +254 -0
  148. package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +265 -0
  149. package/lib/rest/microvisor/v1/device/deviceSecret.js +252 -0
  150. package/lib/rest/microvisor/v1/device.d.ts +16 -0
  151. package/lib/rest/microvisor/v1/device.js +26 -0
  152. package/lib/rest/notify/v1/credential.d.ts +1 -1
  153. package/lib/rest/notify/v1/service/binding.d.ts +1 -1
  154. package/lib/rest/notify/v1/service/notification.d.ts +1 -1
  155. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +1 -1
  156. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +1 -1
  157. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +1 -1
  158. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +4 -4
  159. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +1 -1
  160. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +1 -1
  161. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +1 -1
  162. package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +2 -2
  163. package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +1 -1
  164. package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +2 -2
  165. package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +2 -2
  166. package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +2 -2
  167. package/lib/rest/preview/understand/assistant/modelBuild.d.ts +1 -1
  168. package/lib/rest/proxy/v1/service/session/interaction.d.ts +2 -2
  169. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +2 -2
  170. package/lib/rest/proxy/v1/service/session.d.ts +2 -2
  171. package/lib/rest/proxy/v1/service.d.ts +2 -2
  172. package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +1 -1
  173. package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +1 -1
  174. package/lib/rest/serverless/v1/service/build.d.ts +2 -2
  175. package/lib/rest/serverless/v1/service/environment/log.d.ts +1 -1
  176. package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +1 -1
  177. package/lib/rest/studio/v1/flow/engagement.d.ts +1 -1
  178. package/lib/rest/studio/v1/flow/execution.d.ts +1 -1
  179. package/lib/rest/studio/v1/flow.d.ts +1 -1
  180. package/lib/rest/studio/v2/flow/execution.d.ts +1 -1
  181. package/lib/rest/studio/v2/flow/flowRevision.d.ts +1 -1
  182. package/lib/rest/studio/v2/flow.d.ts +1 -1
  183. package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
  184. package/lib/rest/supersim/v1/esimProfile.d.ts +1 -1
  185. package/lib/rest/supersim/v1/fleet.d.ts +1 -1
  186. package/lib/rest/supersim/v1/ipCommand.d.ts +3 -3
  187. package/lib/rest/supersim/v1/settingsUpdate.d.ts +1 -1
  188. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +1 -1
  189. package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +1 -1
  190. package/lib/rest/supersim/v1/sim.d.ts +2 -2
  191. package/lib/rest/supersim/v1/smsCommand.d.ts +5 -5
  192. package/lib/rest/supersim/v1/usageRecord.d.ts +2 -2
  193. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +2 -2
  194. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +2 -2
  195. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +4 -4
  196. package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -1
  197. package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +1 -1
  198. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +3 -3
  199. package/lib/rest/taskrouter/v1/workspace.d.ts +1 -1
  200. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +1 -1
  201. package/lib/rest/trunking/v1/trunk/recording.d.ts +2 -2
  202. package/lib/rest/trunking/v1/trunk.d.ts +2 -2
  203. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +1 -1
  204. package/lib/rest/trusthub/v1/customerProfiles.d.ts +1 -1
  205. package/lib/rest/trusthub/v1/supportingDocument.d.ts +1 -1
  206. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +1 -1
  207. package/lib/rest/trusthub/v1/trustProducts.d.ts +1 -1
  208. package/lib/rest/verify/v2/form.d.ts +1 -1
  209. package/lib/rest/verify/v2/service/accessToken.d.ts +1 -1
  210. package/lib/rest/verify/v2/service/entity/challenge.d.ts +4 -4
  211. package/lib/rest/verify/v2/service/entity/factor.d.ts +3 -3
  212. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +4 -4
  213. package/lib/rest/verify/v2/service/verification.d.ts +2 -2
  214. package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
  215. package/lib/rest/verify/v2/service/webhook.d.ts +3 -3
  216. package/lib/rest/verify/v2/verificationAttempt.d.ts +2 -2
  217. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +1 -1
  218. package/lib/rest/video/v1/composition.d.ts +2 -2
  219. package/lib/rest/video/v1/compositionHook.d.ts +1 -1
  220. package/lib/rest/video/v1/recording.d.ts +4 -4
  221. package/lib/rest/video/v1/room/participant/anonymize.d.ts +1 -1
  222. package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +1 -1
  223. package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +1 -1
  224. package/lib/rest/video/v1/room/participant.d.ts +1 -1
  225. package/lib/rest/video/v1/room/roomRecording.d.ts +4 -4
  226. package/lib/rest/video/v1/room.d.ts +3 -3
  227. package/lib/rest/wireless/v1/command.d.ts +4 -4
  228. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +1 -1
  229. package/lib/rest/wireless/v1/sim.d.ts +2 -2
  230. package/lib/rest/wireless/v1/usageRecord.d.ts +1 -1
  231. package/package.json +2 -5
package/lib/index.d.ts CHANGED
@@ -1,39 +1,55 @@
1
- import Twilio from "./rest/Twilio";
1
+ import ITwilio from "./rest/Twilio";
2
2
  import * as webhooks from "./webhooks/webhooks";
3
- import RequestClient from "./base/RequestClient";
4
- import { ClientOpts } from "./base/BaseTwilio";
5
- import AccessToken from "./jwt/AccessToken";
6
- import ClientCapability from "./jwt/ClientCapability";
7
- import TaskRouterCapability from "./jwt/taskrouter/TaskRouterCapability";
3
+ import IRequestClient from "./base/RequestClient";
4
+ import type { ClientOpts as IClientOpts } from "./base/BaseTwilio";
5
+ import IAccessToken from "./jwt/AccessToken";
6
+ import IClientCapability from "./jwt/ClientCapability";
7
+ import ITaskRouterCapability from "./jwt/taskrouter/TaskRouterCapability";
8
8
  import * as taskRouterUtil from "./jwt/taskrouter/util";
9
- import VoiceResponse from "./twiml/VoiceResponse";
10
- import MessagingResponse from "./twiml/MessagingResponse";
11
- import FaxResponse from "./twiml/FaxResponse";
12
- interface TwilioSDK extends Function {
13
- (accountSid?: string, authToken?: string, opts?: ClientOpts): Twilio;
14
- Twilio: typeof Twilio;
15
- jwt: {
16
- AccessToken: typeof AccessToken;
17
- ClientCapability: typeof ClientCapability;
18
- taskrouter: {
19
- TaskRouterCapability: typeof TaskRouterCapability;
20
- util: typeof taskRouterUtil;
21
- };
22
- };
23
- twiml: {
24
- VoiceResponse: typeof VoiceResponse;
25
- MessagingResponse: typeof MessagingResponse;
26
- FaxResponse: typeof FaxResponse;
27
- };
28
- RequestClient: typeof RequestClient;
29
- validateBody: typeof webhooks.validateBody;
30
- validateRequest: typeof webhooks.validateRequest;
31
- validateRequestWithBody: typeof webhooks.validateRequestWithBody;
32
- validateExpressRequest: typeof webhooks.validateExpressRequest;
33
- validateIncomingRequest: typeof webhooks.validateIncomingRequest;
34
- getExpectedBodyHash: typeof webhooks.getExpectedBodyHash;
35
- getExpectedTwilioSignature: typeof webhooks.getExpectedTwilioSignature;
36
- webhook: typeof webhooks.webhook;
9
+ import IVoiceResponse from "./twiml/VoiceResponse";
10
+ import IMessagingResponse from "./twiml/MessagingResponse";
11
+ import IFaxResponse from "./twiml/FaxResponse";
12
+ declare function TwilioSDK(accountSid?: string, authToken?: string, opts?: IClientOpts): TwilioSDK.Twilio;
13
+ declare namespace TwilioSDK {
14
+ type Twilio = ITwilio;
15
+ const Twilio: typeof ITwilio;
16
+ namespace jwt {
17
+ type AccessToken = IAccessToken;
18
+ const AccessToken: typeof IAccessToken;
19
+ type ClientCapability = IClientCapability;
20
+ const ClientCapability: typeof IClientCapability;
21
+ namespace taskrouter {
22
+ type TaskRouterCapability = ITaskRouterCapability;
23
+ const TaskRouterCapability: typeof ITaskRouterCapability;
24
+ const util: typeof taskRouterUtil;
25
+ }
26
+ }
27
+ namespace twiml {
28
+ type VoiceResponse = IVoiceResponse;
29
+ const VoiceResponse: typeof IVoiceResponse;
30
+ type MessagingResponse = IMessagingResponse;
31
+ const MessagingResponse: typeof IMessagingResponse;
32
+ type FaxResponse = IFaxResponse;
33
+ const FaxResponse: typeof IFaxResponse;
34
+ }
35
+ type RequestClient = IRequestClient;
36
+ const RequestClient: typeof IRequestClient;
37
+ type validateBody = typeof webhooks.validateBody;
38
+ const validateBody: typeof webhooks.validateBody;
39
+ type validateRequest = typeof webhooks.validateRequest;
40
+ const validateRequest: typeof webhooks.validateRequest;
41
+ type validateRequestWithBody = typeof webhooks.validateRequestWithBody;
42
+ const validateRequestWithBody: typeof webhooks.validateRequestWithBody;
43
+ type validateExpressRequest = typeof webhooks.validateExpressRequest;
44
+ const validateExpressRequest: typeof webhooks.validateExpressRequest;
45
+ type validateIncomingRequest = typeof webhooks.validateIncomingRequest;
46
+ const validateIncomingRequest: typeof webhooks.validateIncomingRequest;
47
+ type getExpectedBodyHash = typeof webhooks.getExpectedBodyHash;
48
+ const getExpectedBodyHash: typeof webhooks.getExpectedBodyHash;
49
+ type getExpectedTwilioSignature = typeof webhooks.getExpectedTwilioSignature;
50
+ const getExpectedTwilioSignature: typeof webhooks.getExpectedTwilioSignature;
51
+ type webhook = typeof webhooks.webhook;
52
+ const webhook: typeof webhooks.webhook;
53
+ type ClientOpts = IClientOpts;
37
54
  }
38
- declare var initializer: TwilioSDK;
39
- export = initializer;
55
+ export = TwilioSDK;
package/lib/index.js CHANGED
@@ -36,54 +36,35 @@ const VoiceResponse_1 = __importDefault(require("./twiml/VoiceResponse"));
36
36
  const MessagingResponse_1 = __importDefault(require("./twiml/MessagingResponse"));
37
37
  const FaxResponse_1 = __importDefault(require("./twiml/FaxResponse"));
38
38
  // Shorthand to automatically create a RestClient
39
- var initializer = function (accountSid, authToken, opts) {
40
- return new Twilio_1.default(accountSid, authToken, opts);
41
- };
42
- // Main functional components of the Twilio module
43
- initializer.Twilio = Twilio_1.default;
44
- initializer.jwt = {};
45
- initializer.twiml = {};
46
- initializer.RequestClient = RequestClient_1.default;
47
- Object.defineProperty(initializer.jwt, "AccessToken", {
48
- get: function () {
49
- return AccessToken_1.default;
50
- },
51
- });
52
- Object.defineProperty(initializer.jwt, "ClientCapability", {
53
- get: function () {
54
- return ClientCapability_1.default;
55
- },
56
- });
57
- Object.defineProperty(initializer.jwt, "taskrouter", {
58
- get: function () {
59
- return {
60
- TaskRouterCapability: TaskRouterCapability_1.default,
61
- util: taskRouterUtil,
62
- };
63
- },
64
- });
65
- Object.defineProperty(initializer.twiml, "VoiceResponse", {
66
- get: function () {
67
- return VoiceResponse_1.default;
68
- },
69
- });
70
- Object.defineProperty(initializer.twiml, "MessagingResponse", {
71
- get: function () {
72
- return MessagingResponse_1.default;
73
- },
74
- });
75
- Object.defineProperty(initializer.twiml, "FaxResponse", {
76
- get: function () {
77
- return FaxResponse_1.default;
78
- },
79
- });
80
- // Setup webhook helper functionality
81
- initializer.validateBody = webhooks.validateBody;
82
- initializer.validateRequest = webhooks.validateRequest;
83
- initializer.validateRequestWithBody = webhooks.validateRequestWithBody;
84
- initializer.validateIncomingRequest = webhooks.validateIncomingRequest;
85
- initializer.validateExpressRequest = webhooks.validateExpressRequest;
86
- initializer.getExpectedBodyHash = webhooks.getExpectedBodyHash;
87
- initializer.getExpectedTwilioSignature = webhooks.getExpectedTwilioSignature;
88
- initializer.webhook = webhooks.webhook;
89
- module.exports = initializer;
39
+ function TwilioSDK(accountSid, authToken, opts) {
40
+ return new TwilioSDK.Twilio(accountSid, authToken, opts);
41
+ }
42
+ (function (TwilioSDK) {
43
+ TwilioSDK.Twilio = Twilio_1.default;
44
+ let jwt;
45
+ (function (jwt) {
46
+ jwt.AccessToken = AccessToken_1.default;
47
+ jwt.ClientCapability = ClientCapability_1.default;
48
+ let taskrouter;
49
+ (function (taskrouter) {
50
+ taskrouter.TaskRouterCapability = TaskRouterCapability_1.default;
51
+ taskrouter.util = taskRouterUtil;
52
+ })(taskrouter = jwt.taskrouter || (jwt.taskrouter = {}));
53
+ })(jwt = TwilioSDK.jwt || (TwilioSDK.jwt = {}));
54
+ let twiml;
55
+ (function (twiml) {
56
+ twiml.VoiceResponse = VoiceResponse_1.default;
57
+ twiml.MessagingResponse = MessagingResponse_1.default;
58
+ twiml.FaxResponse = FaxResponse_1.default;
59
+ })(twiml = TwilioSDK.twiml || (TwilioSDK.twiml = {}));
60
+ TwilioSDK.RequestClient = RequestClient_1.default;
61
+ TwilioSDK.validateBody = webhooks.validateBody;
62
+ TwilioSDK.validateRequest = webhooks.validateRequest;
63
+ TwilioSDK.validateRequestWithBody = webhooks.validateRequestWithBody;
64
+ TwilioSDK.validateExpressRequest = webhooks.validateExpressRequest;
65
+ TwilioSDK.validateIncomingRequest = webhooks.validateIncomingRequest;
66
+ TwilioSDK.getExpectedBodyHash = webhooks.getExpectedBodyHash;
67
+ TwilioSDK.getExpectedTwilioSignature = webhooks.getExpectedTwilioSignature;
68
+ TwilioSDK.webhook = webhooks.webhook;
69
+ })(TwilioSDK || (TwilioSDK = {}));
70
+ module.exports = TwilioSDK;
@@ -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 V2010 from "../../../V2010";
6
- type DependentPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
7
- type DependentPhoneNumberEmergencyStatus = "Active" | "Inactive";
6
+ export type DependentPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
7
+ export type DependentPhoneNumberEmergencyStatus = "Active" | "Inactive";
8
8
  /**
9
9
  * Options to pass to each
10
10
  */
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V2010 from "../../V2010";
6
- type AuthorizedConnectAppPermission = "get-all" | "post-all";
6
+ export type AuthorizedConnectAppPermission = "get-all" | "post-all";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2010 from "../../../V2010";
4
- type CallFeedbackIssues = "audio-latency" | "digits-not-captured" | "dropped-call" | "imperfect-audio" | "incorrect-caller-id" | "one-way-audio" | "post-dial-delay" | "unsolicited-call";
4
+ export type CallFeedbackIssues = "audio-latency" | "digits-not-captured" | "dropped-call" | "imperfect-audio" | "incorrect-caller-id" | "one-way-audio" | "post-dial-delay" | "unsolicited-call";
5
5
  /**
6
6
  * Options to pass to update a FeedbackInstance
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2010 from "../../../V2010";
4
- type CallFeedbackSummaryStatus = "queued" | "in-progress" | "completed" | "failed";
4
+ export type CallFeedbackSummaryStatus = "queued" | "in-progress" | "completed" | "failed";
5
5
  /**
6
6
  * Options to pass to create a FeedbackSummaryInstance
7
7
  */
@@ -1,11 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2010 from "../../../V2010";
4
- type PaymentsBankAccountType = "consumer-checking" | "consumer-savings" | "commercial-checking";
5
- type PaymentsCapture = "payment-card-number" | "expiration-date" | "security-code" | "postal-code" | "bank-routing-number" | "bank-account-number";
6
- type PaymentsPaymentMethod = "credit-card" | "ach-debit";
7
- type PaymentsStatus = "complete" | "cancel";
8
- type PaymentsTokenType = "one-time" | "reusable";
4
+ export type PaymentsBankAccountType = "consumer-checking" | "consumer-savings" | "commercial-checking";
5
+ export type PaymentsCapture = "payment-card-number" | "expiration-date" | "security-code" | "postal-code" | "bank-routing-number" | "bank-account-number";
6
+ export type PaymentsPaymentMethod = "credit-card" | "ach-debit";
7
+ export type PaymentsStatus = "complete" | "cancel";
8
+ export type PaymentsTokenType = "one-time" | "reusable";
9
9
  /**
10
10
  * Options to pass to update a PaymentInstance
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 V2010 from "../../../V2010";
6
- type CallRecordingSource = "DialVerb" | "Conference" | "OutboundAPI" | "Trunking" | "RecordVerb" | "StartCallRecordingAPI" | "StartConferenceRecordingAPI";
7
- type CallRecordingStatus = "in-progress" | "paused" | "stopped" | "processing" | "completed" | "absent";
6
+ export type CallRecordingSource = "DialVerb" | "Conference" | "OutboundAPI" | "Trunking" | "RecordVerb" | "StartCallRecordingAPI" | "StartConferenceRecordingAPI";
7
+ export type CallRecordingStatus = "in-progress" | "paused" | "stopped" | "processing" | "completed" | "absent";
8
8
  /**
9
9
  * Options to pass to update a RecordingInstance
10
10
  */
@@ -1,9 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2010 from "../../../V2010";
4
- type SiprecStatus = "in-progress" | "stopped";
5
- type SiprecTrack = "inbound_track" | "outbound_track" | "both_tracks";
6
- type SiprecUpdateStatus = "stopped";
4
+ export type SiprecStatus = "in-progress" | "stopped";
5
+ export type SiprecTrack = "inbound_track" | "outbound_track" | "both_tracks";
6
+ export type SiprecUpdateStatus = "stopped";
7
7
  /**
8
8
  * Options to pass to update a SiprecInstance
9
9
  */
@@ -1,9 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2010 from "../../../V2010";
4
- type StreamStatus = "in-progress" | "stopped";
5
- type StreamTrack = "inbound_track" | "outbound_track" | "both_tracks";
6
- type StreamUpdateStatus = "stopped";
4
+ export type StreamStatus = "in-progress" | "stopped";
5
+ export type StreamTrack = "inbound_track" | "outbound_track" | "both_tracks";
6
+ export type StreamUpdateStatus = "stopped";
7
7
  /**
8
8
  * Options to pass to update a StreamInstance
9
9
  */
@@ -14,8 +14,8 @@ import { StreamListInstance } from "./call/stream";
14
14
  import { UserDefinedMessageListInstance } from "./call/userDefinedMessage";
15
15
  import { UserDefinedMessageSubscriptionListInstance } from "./call/userDefinedMessageSubscription";
16
16
  import TwiML from "../../../../twiml/TwiML";
17
- type CallStatus = "queued" | "ringing" | "in-progress" | "completed" | "busy" | "failed" | "no-answer" | "canceled";
18
- type CallUpdateStatus = "canceled" | "completed";
17
+ export type CallStatus = "queued" | "ringing" | "in-progress" | "completed" | "busy" | "failed" | "no-answer" | "canceled";
18
+ export type CallUpdateStatus = "canceled" | "completed";
19
19
  /**
20
20
  * Options to pass to update a CallInstance
21
21
  */
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
- type ParticipantStatus = "queued" | "connecting" | "ringing" | "connected" | "complete" | "failed";
6
+ export type ParticipantStatus = "queued" | "connecting" | "ringing" | "connected" | "complete" | "failed";
7
7
  /**
8
8
  * Options to pass to update a ParticipantInstance
9
9
  */
@@ -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 V2010 from "../../../V2010";
6
- type ConferenceRecordingSource = "DialVerb" | "Conference" | "OutboundAPI" | "Trunking" | "RecordVerb" | "StartCallRecordingAPI" | "StartConferenceRecordingAPI";
7
- type ConferenceRecordingStatus = "in-progress" | "paused" | "stopped" | "processing" | "completed" | "absent";
6
+ export type ConferenceRecordingSource = "DialVerb" | "Conference" | "OutboundAPI" | "Trunking" | "RecordVerb" | "StartCallRecordingAPI" | "StartConferenceRecordingAPI";
7
+ export type ConferenceRecordingStatus = "in-progress" | "paused" | "stopped" | "processing" | "completed" | "absent";
8
8
  /**
9
9
  * Options to pass to update a RecordingInstance
10
10
  */
@@ -5,9 +5,9 @@ import Response from "../../../../http/response";
5
5
  import V2010 from "../../V2010";
6
6
  import { ParticipantListInstance } from "./conference/participant";
7
7
  import { RecordingListInstance } from "./conference/recording";
8
- type ConferenceReasonConferenceEnded = "conference-ended-via-api" | "participant-with-end-conference-on-exit-left" | "participant-with-end-conference-on-exit-kicked" | "last-participant-kicked" | "last-participant-left";
9
- type ConferenceStatus = "init" | "in-progress" | "completed";
10
- type ConferenceUpdateStatus = "completed";
8
+ export type ConferenceReasonConferenceEnded = "conference-ended-via-api" | "participant-with-end-conference-on-exit-left" | "participant-with-end-conference-on-exit-kicked" | "last-participant-kicked" | "last-participant-left";
9
+ export type ConferenceStatus = "init" | "in-progress" | "completed";
10
+ export type ConferenceUpdateStatus = "completed";
11
11
  /**
12
12
  * Options to pass to update a ConferenceInstance
13
13
  */
@@ -196,7 +196,7 @@ export declare class ConferenceInstance {
196
196
  */
197
197
  apiVersion: string;
198
198
  /**
199
- * A string that you assigned to describe this conference room.
199
+ * A string that you assigned to describe this conference room. Maxiumum length is 128 characters.
200
200
  */
201
201
  friendlyName: string;
202
202
  /**
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V2010 from "../../V2010";
6
- type ConnectAppPermission = "get-all" | "post-all";
6
+ export type ConnectAppPermission = "get-all" | "post-all";
7
7
  /**
8
8
  * Options to pass to update a ConnectAppInstance
9
9
  */
@@ -4,10 +4,10 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
6
  import { PhoneNumberCapabilities } from "../../../../../interfaces";
7
- type IncomingPhoneNumberLocalAddressRequirement = "none" | "any" | "local" | "foreign";
8
- type IncomingPhoneNumberLocalEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
9
- type IncomingPhoneNumberLocalEmergencyStatus = "Active" | "Inactive";
10
- type IncomingPhoneNumberLocalVoiceReceiveMode = "voice" | "fax";
7
+ export type IncomingPhoneNumberLocalAddressRequirement = "none" | "any" | "local" | "foreign";
8
+ export type IncomingPhoneNumberLocalEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
9
+ export type IncomingPhoneNumberLocalEmergencyStatus = "Active" | "Inactive";
10
+ export type IncomingPhoneNumberLocalVoiceReceiveMode = "voice" | "fax";
11
11
  /**
12
12
  * Options to pass to create a LocalInstance
13
13
  */
@@ -4,10 +4,10 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
6
  import { PhoneNumberCapabilities } from "../../../../../interfaces";
7
- type IncomingPhoneNumberMobileAddressRequirement = "none" | "any" | "local" | "foreign";
8
- type IncomingPhoneNumberMobileEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
9
- type IncomingPhoneNumberMobileEmergencyStatus = "Active" | "Inactive";
10
- type IncomingPhoneNumberMobileVoiceReceiveMode = "voice" | "fax";
7
+ export type IncomingPhoneNumberMobileAddressRequirement = "none" | "any" | "local" | "foreign";
8
+ export type IncomingPhoneNumberMobileEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
9
+ export type IncomingPhoneNumberMobileEmergencyStatus = "Active" | "Inactive";
10
+ export type IncomingPhoneNumberMobileVoiceReceiveMode = "voice" | "fax";
11
11
  /**
12
12
  * Options to pass to create a MobileInstance
13
13
  */
@@ -4,10 +4,10 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
6
  import { PhoneNumberCapabilities } from "../../../../../interfaces";
7
- type IncomingPhoneNumberTollFreeAddressRequirement = "none" | "any" | "local" | "foreign";
8
- type IncomingPhoneNumberTollFreeEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
9
- type IncomingPhoneNumberTollFreeEmergencyStatus = "Active" | "Inactive";
10
- type IncomingPhoneNumberTollFreeVoiceReceiveMode = "voice" | "fax";
7
+ export type IncomingPhoneNumberTollFreeAddressRequirement = "none" | "any" | "local" | "foreign";
8
+ export type IncomingPhoneNumberTollFreeEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
9
+ export type IncomingPhoneNumberTollFreeEmergencyStatus = "Active" | "Inactive";
10
+ export type IncomingPhoneNumberTollFreeVoiceReceiveMode = "voice" | "fax";
11
11
  /**
12
12
  * Options to pass to create a TollFreeInstance
13
13
  */
@@ -8,10 +8,10 @@ import { LocalListInstance } from "./incomingPhoneNumber/local";
8
8
  import { MobileListInstance } from "./incomingPhoneNumber/mobile";
9
9
  import { TollFreeListInstance } from "./incomingPhoneNumber/tollFree";
10
10
  import { PhoneNumberCapabilities } from "../../../../interfaces";
11
- type IncomingPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
12
- type IncomingPhoneNumberEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
13
- type IncomingPhoneNumberEmergencyStatus = "Active" | "Inactive";
14
- type IncomingPhoneNumberVoiceReceiveMode = "voice" | "fax";
11
+ export type IncomingPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
12
+ export type IncomingPhoneNumberEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
13
+ export type IncomingPhoneNumberEmergencyStatus = "Active" | "Inactive";
14
+ export type IncomingPhoneNumberVoiceReceiveMode = "voice" | "fax";
15
15
  /**
16
16
  * Options to pass to update a IncomingPhoneNumberInstance
17
17
  */
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2010 from "../../../V2010";
4
- type MessageFeedbackOutcome = "confirmed" | "unconfirmed";
4
+ export type MessageFeedbackOutcome = "confirmed" | "unconfirmed";
5
5
  /**
6
6
  * Options to pass to create a FeedbackInstance
7
7
  */
@@ -5,12 +5,12 @@ import Response from "../../../../http/response";
5
5
  import V2010 from "../../V2010";
6
6
  import { FeedbackListInstance } from "./message/feedback";
7
7
  import { MediaListInstance } from "./message/media";
8
- type MessageAddressRetention = "retain";
9
- type MessageContentRetention = "retain";
10
- type MessageDirection = "inbound" | "outbound-api" | "outbound-call" | "outbound-reply";
11
- type MessageScheduleType = "fixed";
12
- type MessageStatus = "queued" | "sending" | "sent" | "failed" | "delivered" | "undelivered" | "receiving" | "received" | "accepted" | "scheduled" | "read" | "partially_delivered" | "canceled";
13
- type MessageUpdateStatus = "canceled";
8
+ export type MessageAddressRetention = "retain";
9
+ export type MessageContentRetention = "retain";
10
+ export type MessageDirection = "inbound" | "outbound-api" | "outbound-call" | "outbound-reply";
11
+ export type MessageScheduleType = "fixed";
12
+ export type MessageStatus = "queued" | "sending" | "sent" | "failed" | "delivered" | "undelivered" | "receiving" | "received" | "accepted" | "scheduled" | "read" | "partially_delivered" | "canceled";
13
+ export type MessageUpdateStatus = "canceled";
14
14
  /**
15
15
  * Options to pass to update a MessageInstance
16
16
  */
@@ -4,7 +4,7 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
6
  import { PayloadListInstance } from "./addOnResult/payload";
7
- type RecordingAddOnResultStatus = "canceled" | "completed" | "deleted" | "failed" | "in-progress" | "init" | "processing" | "queued";
7
+ export type RecordingAddOnResultStatus = "canceled" | "completed" | "deleted" | "failed" | "in-progress" | "init" | "processing" | "queued";
8
8
  /**
9
9
  * Options to pass to each
10
10
  */
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
- type RecordingTranscriptionStatus = "in-progress" | "completed" | "failed";
6
+ export type RecordingTranscriptionStatus = "in-progress" | "completed" | "failed";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -5,8 +5,8 @@ import Response from "../../../../http/response";
5
5
  import V2010 from "../../V2010";
6
6
  import { AddOnResultListInstance } from "./recording/addOnResult";
7
7
  import { TranscriptionListInstance } from "./recording/transcription";
8
- type RecordingSource = "DialVerb" | "Conference" | "OutboundAPI" | "Trunking" | "RecordVerb" | "StartCallRecordingAPI" | "StartConferenceRecordingAPI";
9
- type RecordingStatus = "in-progress" | "paused" | "stopped" | "processing" | "completed" | "absent" | "deleted";
8
+ export type RecordingSource = "DialVerb" | "Conference" | "OutboundAPI" | "Trunking" | "RecordVerb" | "StartCallRecordingAPI" | "StartConferenceRecordingAPI";
9
+ export type RecordingStatus = "in-progress" | "paused" | "stopped" | "processing" | "completed" | "absent" | "deleted";
10
10
  /**
11
11
  * Options to pass to fetch a RecordingInstance
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 V2010 from "../../V2010";
6
- type TranscriptionStatus = "in-progress" | "completed" | "failed";
6
+ export type TranscriptionStatus = "in-progress" | "completed" | "failed";
7
7
  /**
8
8
  * Options to pass to each
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 V2010 from "../../../../V2010";
6
- type UsageRecordAllTimeCategory = "a2p-registration-fees" | "agent-conference" | "amazon-polly" | "answering-machine-detection" | "authy-authentications" | "authy-calls-outbound" | "authy-monthly-fees" | "authy-phone-intelligence" | "authy-phone-verifications" | "authy-sms-outbound" | "call-progess-events" | "calleridlookups" | "calls" | "calls-client" | "calls-globalconference" | "calls-inbound" | "calls-inbound-local" | "calls-inbound-mobile" | "calls-inbound-tollfree" | "calls-outbound" | "calls-pay-verb-transactions" | "calls-recordings" | "calls-sip" | "calls-sip-inbound" | "calls-sip-outbound" | "calls-transfers" | "carrier-lookups" | "conversations" | "conversations-api-requests" | "conversations-conversation-events" | "conversations-endpoint-connectivity" | "conversations-events" | "conversations-participant-events" | "conversations-participants" | "cps" | "flex-usage" | "fraud-lookups" | "group-rooms" | "group-rooms-data-track" | "group-rooms-encrypted-media-recorded" | "group-rooms-media-downloaded" | "group-rooms-media-recorded" | "group-rooms-media-routed" | "group-rooms-media-stored" | "group-rooms-participant-minutes" | "group-rooms-recorded-minutes" | "imp-v1-usage" | "lookups" | "marketplace" | "marketplace-algorithmia-named-entity-recognition" | "marketplace-cadence-transcription" | "marketplace-cadence-translation" | "marketplace-capio-speech-to-text" | "marketplace-convriza-ababa" | "marketplace-deepgram-phrase-detector" | "marketplace-digital-segment-business-info" | "marketplace-facebook-offline-conversions" | "marketplace-google-speech-to-text" | "marketplace-ibm-watson-message-insights" | "marketplace-ibm-watson-message-sentiment" | "marketplace-ibm-watson-recording-analysis" | "marketplace-ibm-watson-tone-analyzer" | "marketplace-icehook-systems-scout" | "marketplace-infogroup-dataaxle-bizinfo" | "marketplace-keen-io-contact-center-analytics" | "marketplace-marchex-cleancall" | "marketplace-marchex-sentiment-analysis-for-sms" | "marketplace-marketplace-nextcaller-social-id" | "marketplace-mobile-commons-opt-out-classifier" | "marketplace-nexiwave-voicemail-to-text" | "marketplace-nextcaller-advanced-caller-identification" | "marketplace-nomorobo-spam-score" | "marketplace-payfone-tcpa-compliance" | "marketplace-remeeting-automatic-speech-recognition" | "marketplace-tcpa-defense-solutions-blacklist-feed" | "marketplace-telo-opencnam" | "marketplace-truecnam-true-spam" | "marketplace-twilio-caller-name-lookup-us" | "marketplace-twilio-carrier-information-lookup" | "marketplace-voicebase-pci" | "marketplace-voicebase-transcription" | "marketplace-voicebase-transcription-custom-vocabulary" | "marketplace-whitepages-pro-caller-identification" | "marketplace-whitepages-pro-phone-intelligence" | "marketplace-whitepages-pro-phone-reputation" | "marketplace-wolfarm-spoken-results" | "marketplace-wolfram-short-answer" | "marketplace-ytica-contact-center-reporting-analytics" | "mediastorage" | "mms" | "mms-inbound" | "mms-inbound-longcode" | "mms-inbound-shortcode" | "mms-messages-carrierfees" | "mms-outbound" | "mms-outbound-longcode" | "mms-outbound-shortcode" | "monitor-reads" | "monitor-storage" | "monitor-writes" | "notify" | "notify-actions-attempts" | "notify-channels" | "number-format-lookups" | "pchat" | "pchat-users" | "peer-to-peer-rooms-participant-minutes" | "pfax" | "pfax-minutes" | "pfax-minutes-inbound" | "pfax-minutes-outbound" | "pfax-pages" | "phonenumbers" | "phonenumbers-cps" | "phonenumbers-emergency" | "phonenumbers-local" | "phonenumbers-mobile" | "phonenumbers-setups" | "phonenumbers-tollfree" | "premiumsupport" | "proxy" | "proxy-active-sessions" | "pstnconnectivity" | "pv" | "pv-composition-media-downloaded" | "pv-composition-media-encrypted" | "pv-composition-media-stored" | "pv-composition-minutes" | "pv-recording-compositions" | "pv-room-participants" | "pv-room-participants-au1" | "pv-room-participants-br1" | "pv-room-participants-ie1" | "pv-room-participants-jp1" | "pv-room-participants-sg1" | "pv-room-participants-us1" | "pv-room-participants-us2" | "pv-rooms" | "pv-sip-endpoint-registrations" | "recordings" | "recordingstorage" | "rooms-group-bandwidth" | "rooms-group-minutes" | "rooms-peer-to-peer-minutes" | "shortcodes" | "shortcodes-customerowned" | "shortcodes-mms-enablement" | "shortcodes-mps" | "shortcodes-random" | "shortcodes-uk" | "shortcodes-vanity" | "small-group-rooms" | "small-group-rooms-data-track" | "small-group-rooms-participant-minutes" | "sms" | "sms-inbound" | "sms-inbound-longcode" | "sms-inbound-shortcode" | "sms-messages-carrierfees" | "sms-messages-features" | "sms-messages-features-senderid" | "sms-outbound" | "sms-outbound-content-inspection" | "sms-outbound-longcode" | "sms-outbound-shortcode" | "speech-recognition" | "studio-engagements" | "sync" | "sync-actions" | "sync-endpoint-hours" | "sync-endpoint-hours-above-daily-cap" | "taskrouter-tasks" | "totalprice" | "transcriptions" | "trunking-cps" | "trunking-emergency-calls" | "trunking-origination" | "trunking-origination-local" | "trunking-origination-mobile" | "trunking-origination-tollfree" | "trunking-recordings" | "trunking-secure" | "trunking-termination" | "turnmegabytes" | "turnmegabytes-australia" | "turnmegabytes-brasil" | "turnmegabytes-germany" | "turnmegabytes-india" | "turnmegabytes-ireland" | "turnmegabytes-japan" | "turnmegabytes-singapore" | "turnmegabytes-useast" | "turnmegabytes-uswest" | "twilio-interconnect" | "verify-push" | "verify-totp" | "verify-whatsapp-conversations-business-initiated" | "video-recordings" | "virtual-agent" | "voice-insights" | "voice-insights-client-insights-on-demand-minute" | "voice-insights-ptsn-insights-on-demand-minute" | "voice-insights-sip-interface-insights-on-demand-minute" | "voice-insights-sip-trunking-insights-on-demand-minute" | "wireless" | "wireless-orders" | "wireless-orders-artwork" | "wireless-orders-bulk" | "wireless-orders-esim" | "wireless-orders-starter" | "wireless-usage" | "wireless-usage-commands" | "wireless-usage-commands-africa" | "wireless-usage-commands-asia" | "wireless-usage-commands-centralandsouthamerica" | "wireless-usage-commands-europe" | "wireless-usage-commands-home" | "wireless-usage-commands-northamerica" | "wireless-usage-commands-oceania" | "wireless-usage-commands-roaming" | "wireless-usage-data" | "wireless-usage-data-africa" | "wireless-usage-data-asia" | "wireless-usage-data-centralandsouthamerica" | "wireless-usage-data-custom-additionalmb" | "wireless-usage-data-custom-first5mb" | "wireless-usage-data-domestic-roaming" | "wireless-usage-data-europe" | "wireless-usage-data-individual-additionalgb" | "wireless-usage-data-individual-firstgb" | "wireless-usage-data-international-roaming-canada" | "wireless-usage-data-international-roaming-india" | "wireless-usage-data-international-roaming-mexico" | "wireless-usage-data-northamerica" | "wireless-usage-data-oceania" | "wireless-usage-data-pooled" | "wireless-usage-data-pooled-downlink" | "wireless-usage-data-pooled-uplink" | "wireless-usage-mrc" | "wireless-usage-mrc-custom" | "wireless-usage-mrc-individual" | "wireless-usage-mrc-pooled" | "wireless-usage-mrc-suspended" | "wireless-usage-sms" | "wireless-usage-voice";
6
+ export type UsageRecordAllTimeCategory = "a2p-registration-fees" | "agent-conference" | "amazon-polly" | "answering-machine-detection" | "authy-authentications" | "authy-calls-outbound" | "authy-monthly-fees" | "authy-phone-intelligence" | "authy-phone-verifications" | "authy-sms-outbound" | "call-progess-events" | "calleridlookups" | "calls" | "calls-client" | "calls-globalconference" | "calls-inbound" | "calls-inbound-local" | "calls-inbound-mobile" | "calls-inbound-tollfree" | "calls-outbound" | "calls-pay-verb-transactions" | "calls-recordings" | "calls-sip" | "calls-sip-inbound" | "calls-sip-outbound" | "calls-transfers" | "carrier-lookups" | "conversations" | "conversations-api-requests" | "conversations-conversation-events" | "conversations-endpoint-connectivity" | "conversations-events" | "conversations-participant-events" | "conversations-participants" | "cps" | "flex-usage" | "fraud-lookups" | "group-rooms" | "group-rooms-data-track" | "group-rooms-encrypted-media-recorded" | "group-rooms-media-downloaded" | "group-rooms-media-recorded" | "group-rooms-media-routed" | "group-rooms-media-stored" | "group-rooms-participant-minutes" | "group-rooms-recorded-minutes" | "imp-v1-usage" | "lookups" | "marketplace" | "marketplace-algorithmia-named-entity-recognition" | "marketplace-cadence-transcription" | "marketplace-cadence-translation" | "marketplace-capio-speech-to-text" | "marketplace-convriza-ababa" | "marketplace-deepgram-phrase-detector" | "marketplace-digital-segment-business-info" | "marketplace-facebook-offline-conversions" | "marketplace-google-speech-to-text" | "marketplace-ibm-watson-message-insights" | "marketplace-ibm-watson-message-sentiment" | "marketplace-ibm-watson-recording-analysis" | "marketplace-ibm-watson-tone-analyzer" | "marketplace-icehook-systems-scout" | "marketplace-infogroup-dataaxle-bizinfo" | "marketplace-keen-io-contact-center-analytics" | "marketplace-marchex-cleancall" | "marketplace-marchex-sentiment-analysis-for-sms" | "marketplace-marketplace-nextcaller-social-id" | "marketplace-mobile-commons-opt-out-classifier" | "marketplace-nexiwave-voicemail-to-text" | "marketplace-nextcaller-advanced-caller-identification" | "marketplace-nomorobo-spam-score" | "marketplace-payfone-tcpa-compliance" | "marketplace-remeeting-automatic-speech-recognition" | "marketplace-tcpa-defense-solutions-blacklist-feed" | "marketplace-telo-opencnam" | "marketplace-truecnam-true-spam" | "marketplace-twilio-caller-name-lookup-us" | "marketplace-twilio-carrier-information-lookup" | "marketplace-voicebase-pci" | "marketplace-voicebase-transcription" | "marketplace-voicebase-transcription-custom-vocabulary" | "marketplace-whitepages-pro-caller-identification" | "marketplace-whitepages-pro-phone-intelligence" | "marketplace-whitepages-pro-phone-reputation" | "marketplace-wolfarm-spoken-results" | "marketplace-wolfram-short-answer" | "marketplace-ytica-contact-center-reporting-analytics" | "mediastorage" | "mms" | "mms-inbound" | "mms-inbound-longcode" | "mms-inbound-shortcode" | "mms-messages-carrierfees" | "mms-outbound" | "mms-outbound-longcode" | "mms-outbound-shortcode" | "monitor-reads" | "monitor-storage" | "monitor-writes" | "notify" | "notify-actions-attempts" | "notify-channels" | "number-format-lookups" | "pchat" | "pchat-users" | "peer-to-peer-rooms-participant-minutes" | "pfax" | "pfax-minutes" | "pfax-minutes-inbound" | "pfax-minutes-outbound" | "pfax-pages" | "phonenumbers" | "phonenumbers-cps" | "phonenumbers-emergency" | "phonenumbers-local" | "phonenumbers-mobile" | "phonenumbers-setups" | "phonenumbers-tollfree" | "premiumsupport" | "proxy" | "proxy-active-sessions" | "pstnconnectivity" | "pv" | "pv-composition-media-downloaded" | "pv-composition-media-encrypted" | "pv-composition-media-stored" | "pv-composition-minutes" | "pv-recording-compositions" | "pv-room-participants" | "pv-room-participants-au1" | "pv-room-participants-br1" | "pv-room-participants-ie1" | "pv-room-participants-jp1" | "pv-room-participants-sg1" | "pv-room-participants-us1" | "pv-room-participants-us2" | "pv-rooms" | "pv-sip-endpoint-registrations" | "recordings" | "recordingstorage" | "rooms-group-bandwidth" | "rooms-group-minutes" | "rooms-peer-to-peer-minutes" | "shortcodes" | "shortcodes-customerowned" | "shortcodes-mms-enablement" | "shortcodes-mps" | "shortcodes-random" | "shortcodes-uk" | "shortcodes-vanity" | "small-group-rooms" | "small-group-rooms-data-track" | "small-group-rooms-participant-minutes" | "sms" | "sms-inbound" | "sms-inbound-longcode" | "sms-inbound-shortcode" | "sms-messages-carrierfees" | "sms-messages-features" | "sms-messages-features-senderid" | "sms-outbound" | "sms-outbound-content-inspection" | "sms-outbound-longcode" | "sms-outbound-shortcode" | "speech-recognition" | "studio-engagements" | "sync" | "sync-actions" | "sync-endpoint-hours" | "sync-endpoint-hours-above-daily-cap" | "taskrouter-tasks" | "totalprice" | "transcriptions" | "trunking-cps" | "trunking-emergency-calls" | "trunking-origination" | "trunking-origination-local" | "trunking-origination-mobile" | "trunking-origination-tollfree" | "trunking-recordings" | "trunking-secure" | "trunking-termination" | "turnmegabytes" | "turnmegabytes-australia" | "turnmegabytes-brasil" | "turnmegabytes-germany" | "turnmegabytes-india" | "turnmegabytes-ireland" | "turnmegabytes-japan" | "turnmegabytes-singapore" | "turnmegabytes-useast" | "turnmegabytes-uswest" | "twilio-interconnect" | "verify-push" | "verify-totp" | "verify-whatsapp-conversations-business-initiated" | "video-recordings" | "virtual-agent" | "voice-insights" | "voice-insights-client-insights-on-demand-minute" | "voice-insights-ptsn-insights-on-demand-minute" | "voice-insights-sip-interface-insights-on-demand-minute" | "voice-insights-sip-trunking-insights-on-demand-minute" | "wireless" | "wireless-orders" | "wireless-orders-artwork" | "wireless-orders-bulk" | "wireless-orders-esim" | "wireless-orders-starter" | "wireless-usage" | "wireless-usage-commands" | "wireless-usage-commands-africa" | "wireless-usage-commands-asia" | "wireless-usage-commands-centralandsouthamerica" | "wireless-usage-commands-europe" | "wireless-usage-commands-home" | "wireless-usage-commands-northamerica" | "wireless-usage-commands-oceania" | "wireless-usage-commands-roaming" | "wireless-usage-data" | "wireless-usage-data-africa" | "wireless-usage-data-asia" | "wireless-usage-data-centralandsouthamerica" | "wireless-usage-data-custom-additionalmb" | "wireless-usage-data-custom-first5mb" | "wireless-usage-data-domestic-roaming" | "wireless-usage-data-europe" | "wireless-usage-data-individual-additionalgb" | "wireless-usage-data-individual-firstgb" | "wireless-usage-data-international-roaming-canada" | "wireless-usage-data-international-roaming-india" | "wireless-usage-data-international-roaming-mexico" | "wireless-usage-data-northamerica" | "wireless-usage-data-oceania" | "wireless-usage-data-pooled" | "wireless-usage-data-pooled-downlink" | "wireless-usage-data-pooled-uplink" | "wireless-usage-mrc" | "wireless-usage-mrc-custom" | "wireless-usage-mrc-individual" | "wireless-usage-mrc-pooled" | "wireless-usage-mrc-suspended" | "wireless-usage-sms" | "wireless-usage-voice";
7
7
  /**
8
8
  * Options to pass to each
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 V2010 from "../../../../V2010";
6
- type UsageRecordDailyCategory = "a2p-registration-fees" | "agent-conference" | "amazon-polly" | "answering-machine-detection" | "authy-authentications" | "authy-calls-outbound" | "authy-monthly-fees" | "authy-phone-intelligence" | "authy-phone-verifications" | "authy-sms-outbound" | "call-progess-events" | "calleridlookups" | "calls" | "calls-client" | "calls-globalconference" | "calls-inbound" | "calls-inbound-local" | "calls-inbound-mobile" | "calls-inbound-tollfree" | "calls-outbound" | "calls-pay-verb-transactions" | "calls-recordings" | "calls-sip" | "calls-sip-inbound" | "calls-sip-outbound" | "calls-transfers" | "carrier-lookups" | "conversations" | "conversations-api-requests" | "conversations-conversation-events" | "conversations-endpoint-connectivity" | "conversations-events" | "conversations-participant-events" | "conversations-participants" | "cps" | "flex-usage" | "fraud-lookups" | "group-rooms" | "group-rooms-data-track" | "group-rooms-encrypted-media-recorded" | "group-rooms-media-downloaded" | "group-rooms-media-recorded" | "group-rooms-media-routed" | "group-rooms-media-stored" | "group-rooms-participant-minutes" | "group-rooms-recorded-minutes" | "imp-v1-usage" | "lookups" | "marketplace" | "marketplace-algorithmia-named-entity-recognition" | "marketplace-cadence-transcription" | "marketplace-cadence-translation" | "marketplace-capio-speech-to-text" | "marketplace-convriza-ababa" | "marketplace-deepgram-phrase-detector" | "marketplace-digital-segment-business-info" | "marketplace-facebook-offline-conversions" | "marketplace-google-speech-to-text" | "marketplace-ibm-watson-message-insights" | "marketplace-ibm-watson-message-sentiment" | "marketplace-ibm-watson-recording-analysis" | "marketplace-ibm-watson-tone-analyzer" | "marketplace-icehook-systems-scout" | "marketplace-infogroup-dataaxle-bizinfo" | "marketplace-keen-io-contact-center-analytics" | "marketplace-marchex-cleancall" | "marketplace-marchex-sentiment-analysis-for-sms" | "marketplace-marketplace-nextcaller-social-id" | "marketplace-mobile-commons-opt-out-classifier" | "marketplace-nexiwave-voicemail-to-text" | "marketplace-nextcaller-advanced-caller-identification" | "marketplace-nomorobo-spam-score" | "marketplace-payfone-tcpa-compliance" | "marketplace-remeeting-automatic-speech-recognition" | "marketplace-tcpa-defense-solutions-blacklist-feed" | "marketplace-telo-opencnam" | "marketplace-truecnam-true-spam" | "marketplace-twilio-caller-name-lookup-us" | "marketplace-twilio-carrier-information-lookup" | "marketplace-voicebase-pci" | "marketplace-voicebase-transcription" | "marketplace-voicebase-transcription-custom-vocabulary" | "marketplace-whitepages-pro-caller-identification" | "marketplace-whitepages-pro-phone-intelligence" | "marketplace-whitepages-pro-phone-reputation" | "marketplace-wolfarm-spoken-results" | "marketplace-wolfram-short-answer" | "marketplace-ytica-contact-center-reporting-analytics" | "mediastorage" | "mms" | "mms-inbound" | "mms-inbound-longcode" | "mms-inbound-shortcode" | "mms-messages-carrierfees" | "mms-outbound" | "mms-outbound-longcode" | "mms-outbound-shortcode" | "monitor-reads" | "monitor-storage" | "monitor-writes" | "notify" | "notify-actions-attempts" | "notify-channels" | "number-format-lookups" | "pchat" | "pchat-users" | "peer-to-peer-rooms-participant-minutes" | "pfax" | "pfax-minutes" | "pfax-minutes-inbound" | "pfax-minutes-outbound" | "pfax-pages" | "phonenumbers" | "phonenumbers-cps" | "phonenumbers-emergency" | "phonenumbers-local" | "phonenumbers-mobile" | "phonenumbers-setups" | "phonenumbers-tollfree" | "premiumsupport" | "proxy" | "proxy-active-sessions" | "pstnconnectivity" | "pv" | "pv-composition-media-downloaded" | "pv-composition-media-encrypted" | "pv-composition-media-stored" | "pv-composition-minutes" | "pv-recording-compositions" | "pv-room-participants" | "pv-room-participants-au1" | "pv-room-participants-br1" | "pv-room-participants-ie1" | "pv-room-participants-jp1" | "pv-room-participants-sg1" | "pv-room-participants-us1" | "pv-room-participants-us2" | "pv-rooms" | "pv-sip-endpoint-registrations" | "recordings" | "recordingstorage" | "rooms-group-bandwidth" | "rooms-group-minutes" | "rooms-peer-to-peer-minutes" | "shortcodes" | "shortcodes-customerowned" | "shortcodes-mms-enablement" | "shortcodes-mps" | "shortcodes-random" | "shortcodes-uk" | "shortcodes-vanity" | "small-group-rooms" | "small-group-rooms-data-track" | "small-group-rooms-participant-minutes" | "sms" | "sms-inbound" | "sms-inbound-longcode" | "sms-inbound-shortcode" | "sms-messages-carrierfees" | "sms-messages-features" | "sms-messages-features-senderid" | "sms-outbound" | "sms-outbound-content-inspection" | "sms-outbound-longcode" | "sms-outbound-shortcode" | "speech-recognition" | "studio-engagements" | "sync" | "sync-actions" | "sync-endpoint-hours" | "sync-endpoint-hours-above-daily-cap" | "taskrouter-tasks" | "totalprice" | "transcriptions" | "trunking-cps" | "trunking-emergency-calls" | "trunking-origination" | "trunking-origination-local" | "trunking-origination-mobile" | "trunking-origination-tollfree" | "trunking-recordings" | "trunking-secure" | "trunking-termination" | "turnmegabytes" | "turnmegabytes-australia" | "turnmegabytes-brasil" | "turnmegabytes-germany" | "turnmegabytes-india" | "turnmegabytes-ireland" | "turnmegabytes-japan" | "turnmegabytes-singapore" | "turnmegabytes-useast" | "turnmegabytes-uswest" | "twilio-interconnect" | "verify-push" | "verify-totp" | "verify-whatsapp-conversations-business-initiated" | "video-recordings" | "virtual-agent" | "voice-insights" | "voice-insights-client-insights-on-demand-minute" | "voice-insights-ptsn-insights-on-demand-minute" | "voice-insights-sip-interface-insights-on-demand-minute" | "voice-insights-sip-trunking-insights-on-demand-minute" | "wireless" | "wireless-orders" | "wireless-orders-artwork" | "wireless-orders-bulk" | "wireless-orders-esim" | "wireless-orders-starter" | "wireless-usage" | "wireless-usage-commands" | "wireless-usage-commands-africa" | "wireless-usage-commands-asia" | "wireless-usage-commands-centralandsouthamerica" | "wireless-usage-commands-europe" | "wireless-usage-commands-home" | "wireless-usage-commands-northamerica" | "wireless-usage-commands-oceania" | "wireless-usage-commands-roaming" | "wireless-usage-data" | "wireless-usage-data-africa" | "wireless-usage-data-asia" | "wireless-usage-data-centralandsouthamerica" | "wireless-usage-data-custom-additionalmb" | "wireless-usage-data-custom-first5mb" | "wireless-usage-data-domestic-roaming" | "wireless-usage-data-europe" | "wireless-usage-data-individual-additionalgb" | "wireless-usage-data-individual-firstgb" | "wireless-usage-data-international-roaming-canada" | "wireless-usage-data-international-roaming-india" | "wireless-usage-data-international-roaming-mexico" | "wireless-usage-data-northamerica" | "wireless-usage-data-oceania" | "wireless-usage-data-pooled" | "wireless-usage-data-pooled-downlink" | "wireless-usage-data-pooled-uplink" | "wireless-usage-mrc" | "wireless-usage-mrc-custom" | "wireless-usage-mrc-individual" | "wireless-usage-mrc-pooled" | "wireless-usage-mrc-suspended" | "wireless-usage-sms" | "wireless-usage-voice";
6
+ export type UsageRecordDailyCategory = "a2p-registration-fees" | "agent-conference" | "amazon-polly" | "answering-machine-detection" | "authy-authentications" | "authy-calls-outbound" | "authy-monthly-fees" | "authy-phone-intelligence" | "authy-phone-verifications" | "authy-sms-outbound" | "call-progess-events" | "calleridlookups" | "calls" | "calls-client" | "calls-globalconference" | "calls-inbound" | "calls-inbound-local" | "calls-inbound-mobile" | "calls-inbound-tollfree" | "calls-outbound" | "calls-pay-verb-transactions" | "calls-recordings" | "calls-sip" | "calls-sip-inbound" | "calls-sip-outbound" | "calls-transfers" | "carrier-lookups" | "conversations" | "conversations-api-requests" | "conversations-conversation-events" | "conversations-endpoint-connectivity" | "conversations-events" | "conversations-participant-events" | "conversations-participants" | "cps" | "flex-usage" | "fraud-lookups" | "group-rooms" | "group-rooms-data-track" | "group-rooms-encrypted-media-recorded" | "group-rooms-media-downloaded" | "group-rooms-media-recorded" | "group-rooms-media-routed" | "group-rooms-media-stored" | "group-rooms-participant-minutes" | "group-rooms-recorded-minutes" | "imp-v1-usage" | "lookups" | "marketplace" | "marketplace-algorithmia-named-entity-recognition" | "marketplace-cadence-transcription" | "marketplace-cadence-translation" | "marketplace-capio-speech-to-text" | "marketplace-convriza-ababa" | "marketplace-deepgram-phrase-detector" | "marketplace-digital-segment-business-info" | "marketplace-facebook-offline-conversions" | "marketplace-google-speech-to-text" | "marketplace-ibm-watson-message-insights" | "marketplace-ibm-watson-message-sentiment" | "marketplace-ibm-watson-recording-analysis" | "marketplace-ibm-watson-tone-analyzer" | "marketplace-icehook-systems-scout" | "marketplace-infogroup-dataaxle-bizinfo" | "marketplace-keen-io-contact-center-analytics" | "marketplace-marchex-cleancall" | "marketplace-marchex-sentiment-analysis-for-sms" | "marketplace-marketplace-nextcaller-social-id" | "marketplace-mobile-commons-opt-out-classifier" | "marketplace-nexiwave-voicemail-to-text" | "marketplace-nextcaller-advanced-caller-identification" | "marketplace-nomorobo-spam-score" | "marketplace-payfone-tcpa-compliance" | "marketplace-remeeting-automatic-speech-recognition" | "marketplace-tcpa-defense-solutions-blacklist-feed" | "marketplace-telo-opencnam" | "marketplace-truecnam-true-spam" | "marketplace-twilio-caller-name-lookup-us" | "marketplace-twilio-carrier-information-lookup" | "marketplace-voicebase-pci" | "marketplace-voicebase-transcription" | "marketplace-voicebase-transcription-custom-vocabulary" | "marketplace-whitepages-pro-caller-identification" | "marketplace-whitepages-pro-phone-intelligence" | "marketplace-whitepages-pro-phone-reputation" | "marketplace-wolfarm-spoken-results" | "marketplace-wolfram-short-answer" | "marketplace-ytica-contact-center-reporting-analytics" | "mediastorage" | "mms" | "mms-inbound" | "mms-inbound-longcode" | "mms-inbound-shortcode" | "mms-messages-carrierfees" | "mms-outbound" | "mms-outbound-longcode" | "mms-outbound-shortcode" | "monitor-reads" | "monitor-storage" | "monitor-writes" | "notify" | "notify-actions-attempts" | "notify-channels" | "number-format-lookups" | "pchat" | "pchat-users" | "peer-to-peer-rooms-participant-minutes" | "pfax" | "pfax-minutes" | "pfax-minutes-inbound" | "pfax-minutes-outbound" | "pfax-pages" | "phonenumbers" | "phonenumbers-cps" | "phonenumbers-emergency" | "phonenumbers-local" | "phonenumbers-mobile" | "phonenumbers-setups" | "phonenumbers-tollfree" | "premiumsupport" | "proxy" | "proxy-active-sessions" | "pstnconnectivity" | "pv" | "pv-composition-media-downloaded" | "pv-composition-media-encrypted" | "pv-composition-media-stored" | "pv-composition-minutes" | "pv-recording-compositions" | "pv-room-participants" | "pv-room-participants-au1" | "pv-room-participants-br1" | "pv-room-participants-ie1" | "pv-room-participants-jp1" | "pv-room-participants-sg1" | "pv-room-participants-us1" | "pv-room-participants-us2" | "pv-rooms" | "pv-sip-endpoint-registrations" | "recordings" | "recordingstorage" | "rooms-group-bandwidth" | "rooms-group-minutes" | "rooms-peer-to-peer-minutes" | "shortcodes" | "shortcodes-customerowned" | "shortcodes-mms-enablement" | "shortcodes-mps" | "shortcodes-random" | "shortcodes-uk" | "shortcodes-vanity" | "small-group-rooms" | "small-group-rooms-data-track" | "small-group-rooms-participant-minutes" | "sms" | "sms-inbound" | "sms-inbound-longcode" | "sms-inbound-shortcode" | "sms-messages-carrierfees" | "sms-messages-features" | "sms-messages-features-senderid" | "sms-outbound" | "sms-outbound-content-inspection" | "sms-outbound-longcode" | "sms-outbound-shortcode" | "speech-recognition" | "studio-engagements" | "sync" | "sync-actions" | "sync-endpoint-hours" | "sync-endpoint-hours-above-daily-cap" | "taskrouter-tasks" | "totalprice" | "transcriptions" | "trunking-cps" | "trunking-emergency-calls" | "trunking-origination" | "trunking-origination-local" | "trunking-origination-mobile" | "trunking-origination-tollfree" | "trunking-recordings" | "trunking-secure" | "trunking-termination" | "turnmegabytes" | "turnmegabytes-australia" | "turnmegabytes-brasil" | "turnmegabytes-germany" | "turnmegabytes-india" | "turnmegabytes-ireland" | "turnmegabytes-japan" | "turnmegabytes-singapore" | "turnmegabytes-useast" | "turnmegabytes-uswest" | "twilio-interconnect" | "verify-push" | "verify-totp" | "verify-whatsapp-conversations-business-initiated" | "video-recordings" | "virtual-agent" | "voice-insights" | "voice-insights-client-insights-on-demand-minute" | "voice-insights-ptsn-insights-on-demand-minute" | "voice-insights-sip-interface-insights-on-demand-minute" | "voice-insights-sip-trunking-insights-on-demand-minute" | "wireless" | "wireless-orders" | "wireless-orders-artwork" | "wireless-orders-bulk" | "wireless-orders-esim" | "wireless-orders-starter" | "wireless-usage" | "wireless-usage-commands" | "wireless-usage-commands-africa" | "wireless-usage-commands-asia" | "wireless-usage-commands-centralandsouthamerica" | "wireless-usage-commands-europe" | "wireless-usage-commands-home" | "wireless-usage-commands-northamerica" | "wireless-usage-commands-oceania" | "wireless-usage-commands-roaming" | "wireless-usage-data" | "wireless-usage-data-africa" | "wireless-usage-data-asia" | "wireless-usage-data-centralandsouthamerica" | "wireless-usage-data-custom-additionalmb" | "wireless-usage-data-custom-first5mb" | "wireless-usage-data-domestic-roaming" | "wireless-usage-data-europe" | "wireless-usage-data-individual-additionalgb" | "wireless-usage-data-individual-firstgb" | "wireless-usage-data-international-roaming-canada" | "wireless-usage-data-international-roaming-india" | "wireless-usage-data-international-roaming-mexico" | "wireless-usage-data-northamerica" | "wireless-usage-data-oceania" | "wireless-usage-data-pooled" | "wireless-usage-data-pooled-downlink" | "wireless-usage-data-pooled-uplink" | "wireless-usage-mrc" | "wireless-usage-mrc-custom" | "wireless-usage-mrc-individual" | "wireless-usage-mrc-pooled" | "wireless-usage-mrc-suspended" | "wireless-usage-sms" | "wireless-usage-voice";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */