twilio 4.6.0 → 4.7.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 (1235) hide show
  1. package/{LICENSE.md → LICENSE} +2 -2
  2. package/README.md +149 -25
  3. package/index.d.ts +2 -0
  4. package/index.js +9 -1
  5. package/lib/base/BaseTwilio.d.ts +84 -0
  6. package/lib/base/BaseTwilio.js +174 -0
  7. package/lib/base/Domain.d.ts +29 -0
  8. package/lib/base/Domain.js +49 -35
  9. package/lib/base/Page.d.ts +104 -0
  10. package/lib/base/Page.js +187 -182
  11. package/lib/base/RequestClient.d.ts +145 -0
  12. package/lib/base/RequestClient.js +219 -67
  13. package/lib/base/RestException.d.ts +16 -0
  14. package/lib/base/RestException.js +32 -16
  15. package/lib/base/Version.d.ts +129 -0
  16. package/lib/base/Version.js +329 -171
  17. package/lib/base/deserialize.d.ts +41 -0
  18. package/lib/base/deserialize.js +48 -66
  19. package/lib/base/serialize.d.ts +53 -0
  20. package/lib/base/serialize.js +105 -105
  21. package/lib/base/utility.d.ts +2 -0
  22. package/lib/base/utility.js +13 -0
  23. package/lib/base/values.d.ts +10 -0
  24. package/lib/base/values.js +8 -14
  25. package/lib/http/request.d.ts +25 -0
  26. package/lib/http/request.js +84 -73
  27. package/lib/http/response.d.ts +7 -0
  28. package/lib/http/response.js +13 -12
  29. package/lib/index.d.ts +39 -0
  30. package/lib/index.js +81 -25
  31. package/lib/interfaces.d.ts +94 -0
  32. package/lib/interfaces.js +2 -0
  33. package/lib/jwt/AccessToken.d.ts +191 -0
  34. package/lib/jwt/AccessToken.js +244 -234
  35. package/lib/jwt/ClientCapability.d.ts +61 -0
  36. package/lib/jwt/ClientCapability.js +105 -124
  37. package/lib/jwt/taskrouter/TaskRouterCapability.d.ts +74 -0
  38. package/lib/jwt/taskrouter/TaskRouterCapability.js +95 -101
  39. package/lib/jwt/taskrouter/util.d.ts +66 -0
  40. package/lib/jwt/taskrouter/util.js +122 -117
  41. package/lib/rest/Accounts.d.ts +19 -0
  42. package/lib/rest/Accounts.js +27 -52
  43. package/lib/rest/AccountsBase.d.ts +13 -0
  44. package/lib/rest/AccountsBase.js +31 -0
  45. package/lib/rest/Api.d.ts +127 -0
  46. package/lib/rest/Api.js +180 -260
  47. package/lib/rest/ApiBase.d.ts +13 -0
  48. package/lib/rest/ApiBase.js +31 -0
  49. package/lib/rest/Autopilot.d.ts +14 -0
  50. package/lib/rest/Autopilot.js +22 -0
  51. package/lib/rest/AutopilotBase.d.ts +13 -0
  52. package/lib/rest/AutopilotBase.js +31 -0
  53. package/lib/rest/Bulkexports.d.ts +14 -0
  54. package/lib/rest/Bulkexports.js +22 -0
  55. package/lib/rest/BulkexportsBase.d.ts +13 -0
  56. package/lib/rest/BulkexportsBase.js +31 -0
  57. package/lib/rest/Chat.d.ts +19 -0
  58. package/lib/rest/Chat.js +27 -71
  59. package/lib/rest/ChatBase.d.ts +19 -0
  60. package/lib/rest/ChatBase.js +41 -0
  61. package/lib/rest/Content.d.ts +9 -0
  62. package/lib/rest/Content.js +15 -0
  63. package/lib/rest/ContentBase.d.ts +13 -0
  64. package/lib/rest/ContentBase.js +31 -0
  65. package/lib/rest/Conversations.d.ts +44 -0
  66. package/lib/rest/Conversations.js +64 -0
  67. package/lib/rest/ConversationsBase.d.ts +13 -0
  68. package/lib/rest/ConversationsBase.js +31 -0
  69. package/lib/rest/Events.d.ts +24 -0
  70. package/lib/rest/Events.js +36 -0
  71. package/lib/rest/EventsBase.d.ts +13 -0
  72. package/lib/rest/EventsBase.js +31 -0
  73. package/lib/rest/FlexApi.d.ts +39 -0
  74. package/lib/rest/FlexApi.js +57 -0
  75. package/lib/rest/FlexApiBase.d.ts +16 -0
  76. package/lib/rest/FlexApiBase.js +36 -0
  77. package/lib/rest/FrontlineApi.d.ts +9 -0
  78. package/lib/rest/FrontlineApi.js +15 -0
  79. package/lib/rest/FrontlineApiBase.d.ts +13 -0
  80. package/lib/rest/FrontlineApiBase.js +31 -0
  81. package/lib/rest/Insights.d.ts +29 -0
  82. package/lib/rest/Insights.js +43 -0
  83. package/lib/rest/InsightsBase.d.ts +13 -0
  84. package/lib/rest/InsightsBase.js +31 -0
  85. package/lib/rest/IpMessaging.d.ts +14 -0
  86. package/lib/rest/IpMessaging.js +20 -72
  87. package/lib/rest/IpMessagingBase.d.ts +16 -0
  88. package/lib/rest/IpMessagingBase.js +36 -0
  89. package/lib/rest/Lookups.d.ts +9 -0
  90. package/lib/rest/Lookups.js +13 -53
  91. package/lib/rest/LookupsBase.d.ts +16 -0
  92. package/lib/rest/LookupsBase.js +36 -0
  93. package/lib/rest/Media.d.ts +19 -0
  94. package/lib/rest/Media.js +29 -0
  95. package/lib/rest/MediaBase.d.ts +13 -0
  96. package/lib/rest/MediaBase.js +31 -0
  97. package/lib/rest/Messaging.d.ts +39 -0
  98. package/lib/rest/Messaging.js +55 -52
  99. package/lib/rest/MessagingBase.d.ts +13 -0
  100. package/lib/rest/MessagingBase.js +31 -0
  101. package/lib/rest/Microvisor.d.ts +14 -0
  102. package/lib/rest/Microvisor.js +22 -0
  103. package/lib/rest/MicrovisorBase.d.ts +13 -0
  104. package/lib/rest/MicrovisorBase.js +31 -0
  105. package/lib/rest/Monitor.d.ts +14 -0
  106. package/lib/rest/Monitor.js +20 -60
  107. package/lib/rest/MonitorBase.d.ts +13 -0
  108. package/lib/rest/MonitorBase.js +31 -0
  109. package/lib/rest/Notify.d.ts +14 -0
  110. package/lib/rest/Notify.js +20 -60
  111. package/lib/rest/NotifyBase.d.ts +13 -0
  112. package/lib/rest/NotifyBase.js +31 -0
  113. package/lib/rest/Numbers.d.ts +9 -0
  114. package/lib/rest/Numbers.js +15 -0
  115. package/lib/rest/NumbersBase.d.ts +13 -0
  116. package/lib/rest/NumbersBase.js +31 -0
  117. package/lib/rest/Oauth.d.ts +29 -0
  118. package/lib/rest/Oauth.js +43 -0
  119. package/lib/rest/OauthBase.d.ts +13 -0
  120. package/lib/rest/OauthBase.js +31 -0
  121. package/lib/rest/Preview.d.ts +54 -0
  122. package/lib/rest/Preview.js +76 -176
  123. package/lib/rest/PreviewBase.d.ts +28 -0
  124. package/lib/rest/PreviewBase.js +57 -0
  125. package/lib/rest/Pricing.d.ts +29 -0
  126. package/lib/rest/Pricing.js +41 -69
  127. package/lib/rest/PricingBase.d.ts +16 -0
  128. package/lib/rest/PricingBase.js +36 -0
  129. package/lib/rest/Proxy.d.ts +9 -0
  130. package/lib/rest/Proxy.js +15 -0
  131. package/lib/rest/ProxyBase.d.ts +13 -0
  132. package/lib/rest/ProxyBase.js +31 -0
  133. package/lib/rest/Routes.d.ts +19 -0
  134. package/lib/rest/Routes.js +29 -0
  135. package/lib/rest/RoutesBase.d.ts +13 -0
  136. package/lib/rest/RoutesBase.js +31 -0
  137. package/lib/rest/Serverless.d.ts +9 -0
  138. package/lib/rest/Serverless.js +15 -0
  139. package/lib/rest/ServerlessBase.d.ts +13 -0
  140. package/lib/rest/ServerlessBase.js +31 -0
  141. package/lib/rest/Studio.d.ts +14 -0
  142. package/lib/rest/Studio.js +22 -0
  143. package/lib/rest/StudioBase.d.ts +16 -0
  144. package/lib/rest/StudioBase.js +36 -0
  145. package/lib/rest/Supersim.d.ts +49 -0
  146. package/lib/rest/Supersim.js +71 -0
  147. package/lib/rest/SupersimBase.d.ts +13 -0
  148. package/lib/rest/SupersimBase.js +31 -0
  149. package/lib/rest/Sync.d.ts +9 -0
  150. package/lib/rest/Sync.js +13 -52
  151. package/lib/rest/SyncBase.d.ts +13 -0
  152. package/lib/rest/SyncBase.js +31 -0
  153. package/lib/rest/Taskrouter.d.ts +9 -0
  154. package/lib/rest/Taskrouter.js +13 -52
  155. package/lib/rest/TaskrouterBase.d.ts +13 -0
  156. package/lib/rest/TaskrouterBase.js +31 -0
  157. package/lib/rest/Trunking.d.ts +9 -0
  158. package/lib/rest/Trunking.js +13 -52
  159. package/lib/rest/TrunkingBase.d.ts +13 -0
  160. package/lib/rest/TrunkingBase.js +31 -0
  161. package/lib/rest/Trusthub.d.ts +39 -0
  162. package/lib/rest/Trusthub.js +57 -0
  163. package/lib/rest/TrusthubBase.d.ts +13 -0
  164. package/lib/rest/TrusthubBase.js +31 -0
  165. package/lib/rest/Twilio.d.ts +272 -0
  166. package/lib/rest/Twilio.js +308 -503
  167. package/lib/rest/Verify.d.ts +29 -0
  168. package/lib/rest/Verify.js +43 -0
  169. package/lib/rest/VerifyBase.d.ts +13 -0
  170. package/lib/rest/VerifyBase.js +31 -0
  171. package/lib/rest/Video.d.ts +34 -0
  172. package/lib/rest/Video.js +48 -60
  173. package/lib/rest/VideoBase.d.ts +13 -0
  174. package/lib/rest/VideoBase.js +31 -0
  175. package/lib/rest/Voice.d.ts +34 -0
  176. package/lib/rest/Voice.js +50 -0
  177. package/lib/rest/VoiceBase.d.ts +13 -0
  178. package/lib/rest/VoiceBase.js +31 -0
  179. package/lib/rest/Wireless.d.ts +24 -0
  180. package/lib/rest/Wireless.js +34 -68
  181. package/lib/rest/WirelessBase.d.ts +13 -0
  182. package/lib/rest/WirelessBase.js +31 -0
  183. package/lib/rest/accounts/V1.d.ts +25 -0
  184. package/lib/rest/accounts/V1.js +45 -41
  185. package/lib/rest/accounts/v1/authTokenPromotion.d.ts +105 -0
  186. package/lib/rest/accounts/v1/authTokenPromotion.js +109 -0
  187. package/lib/rest/accounts/v1/credential/aws.d.ts +296 -0
  188. package/lib/rest/accounts/v1/credential/aws.js +251 -0
  189. package/lib/rest/accounts/v1/credential/publicKey.d.ts +296 -0
  190. package/lib/rest/accounts/v1/credential/publicKey.js +236 -675
  191. package/lib/rest/accounts/v1/credential.d.ts +22 -0
  192. package/lib/rest/accounts/v1/credential.js +48 -63
  193. package/lib/rest/accounts/v1/secondaryAuthToken.d.ts +122 -0
  194. package/lib/rest/accounts/v1/secondaryAuthToken.js +128 -0
  195. package/lib/rest/api/V2010.d.ts +20 -0
  196. package/lib/rest/api/V2010.js +37 -260
  197. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +295 -0
  198. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +164 -401
  199. package/lib/rest/api/v2010/account/address.d.ts +414 -0
  200. package/lib/rest/api/v2010/account/address.js +316 -793
  201. package/lib/rest/api/v2010/account/application.d.ts +463 -0
  202. package/lib/rest/api/v2010/account/application.js +333 -817
  203. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +244 -0
  204. package/lib/rest/api/v2010/account/authorizedConnectApp.js +185 -519
  205. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.d.ts +322 -0
  206. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.js +185 -0
  207. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.d.ts +322 -0
  208. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.js +185 -0
  209. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.d.ts +322 -0
  210. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.js +185 -0
  211. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.d.ts +322 -0
  212. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.js +185 -0
  213. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.d.ts +322 -0
  214. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.js +185 -0
  215. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.d.ts +322 -0
  216. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.js +185 -0
  217. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.d.ts +322 -0
  218. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.js +185 -0
  219. package/lib/rest/api/v2010/account/availablePhoneNumberCountry.d.ts +269 -0
  220. package/lib/rest/api/v2010/account/availablePhoneNumberCountry.js +279 -0
  221. package/lib/rest/api/v2010/account/balance.d.ts +58 -0
  222. package/lib/rest/api/v2010/account/balance.js +70 -0
  223. package/lib/rest/api/v2010/account/call/event.d.ts +150 -0
  224. package/lib/rest/api/v2010/account/call/event.js +127 -0
  225. package/lib/rest/api/v2010/account/call/feedback.d.ts +160 -0
  226. package/lib/rest/api/v2010/account/call/feedback.js +149 -412
  227. package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +201 -0
  228. package/lib/rest/api/v2010/account/call/feedbackSummary.js +181 -397
  229. package/lib/rest/api/v2010/account/call/notification.d.ts +312 -0
  230. package/lib/rest/api/v2010/account/call/notification.js +210 -616
  231. package/lib/rest/api/v2010/account/call/payment.d.ts +182 -0
  232. package/lib/rest/api/v2010/account/call/payment.js +198 -0
  233. package/lib/rest/api/v2010/account/call/recording.d.ts +386 -0
  234. package/lib/rest/api/v2010/account/call/recording.js +289 -595
  235. package/lib/rest/api/v2010/account/call/siprec.d.ts +559 -0
  236. package/lib/rest/api/v2010/account/call/siprec.js +562 -0
  237. package/lib/rest/api/v2010/account/call/stream.d.ts +551 -0
  238. package/lib/rest/api/v2010/account/call/stream.js +560 -0
  239. package/lib/rest/api/v2010/account/call/userDefinedMessage.d.ts +75 -0
  240. package/lib/rest/api/v2010/account/call/userDefinedMessage.js +89 -0
  241. package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.d.ts +130 -0
  242. package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.js +150 -0
  243. package/lib/rest/api/v2010/account/call.d.ts +633 -0
  244. package/lib/rest/api/v2010/account/call.js +523 -991
  245. package/lib/rest/api/v2010/account/conference/participant.d.ts +472 -0
  246. package/lib/rest/api/v2010/account/conference/participant.js +390 -798
  247. package/lib/rest/api/v2010/account/conference/recording.d.ts +346 -0
  248. package/lib/rest/api/v2010/account/conference/recording.js +267 -0
  249. package/lib/rest/api/v2010/account/conference.d.ts +362 -0
  250. package/lib/rest/api/v2010/account/conference.js +256 -662
  251. package/lib/rest/api/v2010/account/connectApp.d.ts +324 -0
  252. package/lib/rest/api/v2010/account/connectApp.js +243 -616
  253. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.d.ts +241 -0
  254. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.js +197 -544
  255. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +292 -0
  256. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.js +240 -678
  257. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +417 -0
  258. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +247 -530
  259. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +417 -0
  260. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +247 -530
  261. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +417 -0
  262. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +247 -530
  263. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +593 -0
  264. package/lib/rest/api/v2010/account/incomingPhoneNumber.js +429 -960
  265. package/lib/rest/api/v2010/account/key.d.ts +266 -0
  266. package/lib/rest/api/v2010/account/key.js +215 -623
  267. package/lib/rest/api/v2010/account/message/feedback.d.ts +91 -0
  268. package/lib/rest/api/v2010/account/message/feedback.js +88 -196
  269. package/lib/rest/api/v2010/account/message/media.d.ts +262 -0
  270. package/lib/rest/api/v2010/account/message/media.js +207 -590
  271. package/lib/rest/api/v2010/account/message.d.ts +468 -0
  272. package/lib/rest/api/v2010/account/message.js +344 -838
  273. package/lib/rest/api/v2010/account/newKey.d.ts +86 -0
  274. package/lib/rest/api/v2010/account/newKey.js +83 -189
  275. package/lib/rest/api/v2010/account/newSigningKey.d.ts +86 -0
  276. package/lib/rest/api/v2010/account/newSigningKey.js +83 -190
  277. package/lib/rest/api/v2010/account/notification.d.ts +310 -0
  278. package/lib/rest/api/v2010/account/notification.js +204 -606
  279. package/lib/rest/api/v2010/account/outgoingCallerId.d.ts +296 -0
  280. package/lib/rest/api/v2010/account/outgoingCallerId.js +225 -648
  281. package/lib/rest/api/v2010/account/queue/member.d.ts +249 -0
  282. package/lib/rest/api/v2010/account/queue/member.js +207 -593
  283. package/lib/rest/api/v2010/account/queue.d.ts +324 -0
  284. package/lib/rest/api/v2010/account/queue.js +260 -725
  285. package/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts +270 -0
  286. package/lib/rest/api/v2010/account/recording/addOnResult/payload.js +220 -590
  287. package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +268 -0
  288. package/lib/rest/api/v2010/account/recording/addOnResult.js +219 -613
  289. package/lib/rest/api/v2010/account/recording/transcription.d.ts +278 -0
  290. package/lib/rest/api/v2010/account/recording/transcription.js +213 -583
  291. package/lib/rest/api/v2010/account/recording.d.ts +387 -0
  292. package/lib/rest/api/v2010/account/recording.js +259 -663
  293. package/lib/rest/api/v2010/account/shortCode.d.ts +321 -0
  294. package/lib/rest/api/v2010/account/shortCode.js +227 -627
  295. package/lib/rest/api/v2010/account/signingKey.d.ts +254 -0
  296. package/lib/rest/api/v2010/account/signingKey.js +215 -624
  297. package/lib/rest/api/v2010/account/sip/credentialList/credential.d.ts +304 -0
  298. package/lib/rest/api/v2010/account/sip/credentialList/credential.js +249 -699
  299. package/lib/rest/api/v2010/account/sip/credentialList.d.ts +292 -0
  300. package/lib/rest/api/v2010/account/sip/credentialList.js +251 -718
  301. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.d.ts +248 -0
  302. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.js +232 -0
  303. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.d.ts +248 -0
  304. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.js +232 -0
  305. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls.d.ts +24 -0
  306. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls.js +60 -0
  307. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.d.ts +248 -0
  308. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.js +232 -0
  309. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations.d.ts +21 -0
  310. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations.js +50 -0
  311. package/lib/rest/api/v2010/account/sip/domain/authTypes.d.ts +24 -0
  312. package/lib/rest/api/v2010/account/sip/domain/authTypes.js +58 -0
  313. package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.d.ts +260 -0
  314. package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.js +220 -625
  315. package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.d.ts +260 -0
  316. package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.js +220 -628
  317. package/lib/rest/api/v2010/account/sip/domain.d.ts +459 -0
  318. package/lib/rest/api/v2010/account/sip/domain.js +351 -823
  319. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +322 -0
  320. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +264 -704
  321. package/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +292 -0
  322. package/lib/rest/api/v2010/account/sip/ipAccessControlList.js +251 -724
  323. package/lib/rest/api/v2010/account/sip.d.ts +26 -0
  324. package/lib/rest/api/v2010/account/sip.js +60 -101
  325. package/lib/rest/api/v2010/account/token.d.ts +104 -0
  326. package/lib/rest/api/v2010/account/token.js +90 -193
  327. package/lib/rest/api/v2010/account/transcription.d.ts +276 -0
  328. package/lib/rest/api/v2010/account/transcription.js +207 -571
  329. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +249 -0
  330. package/lib/rest/api/v2010/account/usage/record/allTime.js +147 -421
  331. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +249 -0
  332. package/lib/rest/api/v2010/account/usage/record/daily.js +147 -421
  333. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +249 -0
  334. package/lib/rest/api/v2010/account/usage/record/lastMonth.js +147 -421
  335. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +249 -0
  336. package/lib/rest/api/v2010/account/usage/record/monthly.js +147 -421
  337. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +249 -0
  338. package/lib/rest/api/v2010/account/usage/record/thisMonth.js +147 -421
  339. package/lib/rest/api/v2010/account/usage/record/today.d.ts +249 -0
  340. package/lib/rest/api/v2010/account/usage/record/today.js +147 -421
  341. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +249 -0
  342. package/lib/rest/api/v2010/account/usage/record/yearly.js +147 -421
  343. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +249 -0
  344. package/lib/rest/api/v2010/account/usage/record/yesterday.js +147 -421
  345. package/lib/rest/api/v2010/account/usage/record.d.ts +273 -0
  346. package/lib/rest/api/v2010/account/usage/record.js +221 -560
  347. package/lib/rest/api/v2010/account/usage/trigger.d.ts +383 -0
  348. package/lib/rest/api/v2010/account/usage/trigger.js +284 -753
  349. package/lib/rest/api/v2010/account/usage.d.ts +23 -0
  350. package/lib/rest/api/v2010/account/usage.js +51 -83
  351. package/lib/rest/api/v2010/account/validationRequest.d.ts +88 -0
  352. package/lib/rest/api/v2010/account/validationRequest.js +90 -200
  353. package/lib/rest/api/v2010/account.d.ts +509 -0
  354. package/lib/rest/api/v2010/account.js +540 -1392
  355. package/lib/rest/autopilot/V1.d.ts +20 -0
  356. package/lib/rest/autopilot/V1.js +43 -0
  357. package/lib/rest/autopilot/v1/assistant/defaults.d.ts +143 -0
  358. package/lib/rest/autopilot/v1/assistant/defaults.js +142 -0
  359. package/lib/rest/autopilot/v1/assistant/dialogue.d.ts +108 -0
  360. package/lib/rest/autopilot/v1/assistant/dialogue.js +120 -0
  361. package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts +288 -0
  362. package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js +249 -0
  363. package/lib/rest/autopilot/v1/assistant/fieldType.d.ts +324 -0
  364. package/lib/rest/autopilot/v1/assistant/fieldType.js +277 -0
  365. package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +326 -0
  366. package/lib/rest/autopilot/v1/assistant/modelBuild.js +266 -0
  367. package/lib/rest/autopilot/v1/assistant/query.d.ts +374 -0
  368. package/lib/rest/autopilot/v1/assistant/query.js +288 -0
  369. package/lib/rest/autopilot/v1/assistant/styleSheet.d.ts +143 -0
  370. package/lib/rest/autopilot/v1/assistant/styleSheet.js +142 -0
  371. package/lib/rest/autopilot/v1/assistant/task/field.d.ts +274 -0
  372. package/lib/rest/autopilot/v1/assistant/task/field.js +243 -0
  373. package/lib/rest/autopilot/v1/assistant/task/sample.d.ts +334 -0
  374. package/lib/rest/autopilot/v1/assistant/task/sample.js +280 -0
  375. package/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts +151 -0
  376. package/lib/rest/autopilot/v1/assistant/task/taskActions.js +150 -0
  377. package/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts +115 -0
  378. package/lib/rest/autopilot/v1/assistant/task/taskStatistics.js +125 -0
  379. package/lib/rest/autopilot/v1/assistant/task.d.ts +362 -0
  380. package/lib/rest/autopilot/v1/assistant/task.js +326 -0
  381. package/lib/rest/autopilot/v1/assistant/webhook.d.ts +330 -0
  382. package/lib/rest/autopilot/v1/assistant/webhook.js +278 -0
  383. package/lib/rest/autopilot/v1/assistant.d.ts +438 -0
  384. package/lib/rest/autopilot/v1/assistant.js +392 -0
  385. package/lib/rest/autopilot/v1/restoreAssistant.d.ts +119 -0
  386. package/lib/rest/autopilot/v1/restoreAssistant.js +96 -0
  387. package/lib/rest/bulkexports/V1.d.ts +20 -0
  388. package/lib/rest/bulkexports/V1.js +43 -0
  389. package/lib/rest/bulkexports/v1/export/day.d.ts +216 -0
  390. package/lib/rest/bulkexports/v1/export/day.js +187 -0
  391. package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +229 -0
  392. package/lib/rest/bulkexports/v1/export/exportCustomJob.js +178 -0
  393. package/lib/rest/bulkexports/v1/export/job.d.ts +162 -0
  394. package/lib/rest/bulkexports/v1/export/job.js +146 -0
  395. package/lib/rest/bulkexports/v1/export.d.ts +113 -0
  396. package/lib/rest/bulkexports/v1/export.js +144 -0
  397. package/lib/rest/bulkexports/v1/exportConfiguration.d.ts +152 -0
  398. package/lib/rest/bulkexports/v1/exportConfiguration.js +145 -0
  399. package/lib/rest/chat/V1.d.ts +20 -0
  400. package/lib/rest/chat/V1.js +37 -52
  401. package/lib/rest/chat/V2.d.ts +20 -0
  402. package/lib/rest/chat/V2.js +37 -52
  403. package/lib/rest/chat/V3.d.ts +15 -0
  404. package/lib/rest/chat/V3.js +36 -0
  405. package/lib/rest/chat/v1/credential.d.ts +324 -0
  406. package/lib/rest/chat/v1/credential.js +258 -697
  407. package/lib/rest/chat/v1/service/channel/invite.d.ts +286 -0
  408. package/lib/rest/chat/v1/service/channel/invite.js +229 -637
  409. package/lib/rest/chat/v1/service/channel/member.d.ts +336 -0
  410. package/lib/rest/chat/v1/service/channel/member.js +260 -717
  411. package/lib/rest/chat/v1/service/channel/message.d.ts +351 -0
  412. package/lib/rest/chat/v1/service/channel/message.js +266 -721
  413. package/lib/rest/chat/v1/service/channel.d.ts +388 -0
  414. package/lib/rest/chat/v1/service/channel.js +303 -812
  415. package/lib/rest/chat/v1/service/role.d.ts +298 -0
  416. package/lib/rest/chat/v1/service/role.js +249 -693
  417. package/lib/rest/chat/v1/service/user/userChannel.d.ts +184 -0
  418. package/lib/rest/chat/v1/service/user/userChannel.js +128 -392
  419. package/lib/rest/chat/v1/service/user.d.ts +360 -0
  420. package/lib/rest/chat/v1/service/user.js +277 -742
  421. package/lib/rest/chat/v1/service.d.ts +512 -0
  422. package/lib/rest/chat/v1/service.js +435 -1112
  423. package/lib/rest/chat/v2/credential.d.ts +324 -0
  424. package/lib/rest/chat/v2/credential.js +258 -697
  425. package/lib/rest/chat/v2/service/binding.d.ts +282 -0
  426. package/lib/rest/chat/v2/service/binding.js +222 -0
  427. package/lib/rest/chat/v2/service/channel/invite.d.ts +286 -0
  428. package/lib/rest/chat/v2/service/channel/invite.js +229 -637
  429. package/lib/rest/chat/v2/service/channel/member.d.ts +390 -0
  430. package/lib/rest/chat/v2/service/channel/member.js +290 -717
  431. package/lib/rest/chat/v2/service/channel/message.d.ts +423 -0
  432. package/lib/rest/chat/v2/service/channel/message.js +300 -721
  433. package/lib/rest/chat/v2/service/channel/webhook.d.ts +338 -0
  434. package/lib/rest/chat/v2/service/channel/webhook.js +288 -0
  435. package/lib/rest/chat/v2/service/channel.d.ts +438 -0
  436. package/lib/rest/chat/v2/service/channel.js +338 -812
  437. package/lib/rest/chat/v2/service/role.d.ts +298 -0
  438. package/lib/rest/chat/v2/service/role.js +249 -693
  439. package/lib/rest/chat/v2/service/user/userBinding.d.ts +278 -0
  440. package/lib/rest/chat/v2/service/user/userBinding.js +226 -0
  441. package/lib/rest/chat/v2/service/user/userChannel.d.ts +336 -0
  442. package/lib/rest/chat/v2/service/user/userChannel.js +249 -389
  443. package/lib/rest/chat/v2/service/user.d.ts +373 -0
  444. package/lib/rest/chat/v2/service/user.js +294 -742
  445. package/lib/rest/chat/v2/service.d.ts +486 -0
  446. package/lib/rest/chat/v2/service.js +381 -896
  447. package/lib/rest/chat/v3/channel.d.ts +189 -0
  448. package/lib/rest/chat/v3/channel.js +149 -0
  449. package/lib/rest/content/V1.d.ts +15 -0
  450. package/lib/rest/content/V1.js +36 -0
  451. package/lib/rest/content/v1/content/approvalFetch.d.ts +101 -0
  452. package/lib/rest/content/v1/content/approvalFetch.js +115 -0
  453. package/lib/rest/content/v1/content.d.ts +266 -0
  454. package/lib/rest/content/v1/content.js +221 -0
  455. package/lib/rest/conversations/V1.d.ts +50 -0
  456. package/lib/rest/conversations/V1.js +82 -0
  457. package/lib/rest/conversations/v1/addressConfiguration.d.ts +355 -0
  458. package/lib/rest/conversations/v1/addressConfiguration.js +298 -0
  459. package/lib/rest/conversations/v1/configuration/webhook.d.ts +163 -0
  460. package/lib/rest/conversations/v1/configuration/webhook.js +147 -0
  461. package/lib/rest/conversations/v1/configuration.d.ts +168 -0
  462. package/lib/rest/conversations/v1/configuration.js +155 -0
  463. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +249 -0
  464. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.js +203 -0
  465. package/lib/rest/conversations/v1/conversation/message.d.ts +423 -0
  466. package/lib/rest/conversations/v1/conversation/message.js +321 -0
  467. package/lib/rest/conversations/v1/conversation/participant.d.ts +398 -0
  468. package/lib/rest/conversations/v1/conversation/participant.js +312 -0
  469. package/lib/rest/conversations/v1/conversation/webhook.d.ts +328 -0
  470. package/lib/rest/conversations/v1/conversation/webhook.js +278 -0
  471. package/lib/rest/conversations/v1/conversation.d.ts +429 -0
  472. package/lib/rest/conversations/v1/conversation.js +345 -0
  473. package/lib/rest/conversations/v1/credential.d.ts +326 -0
  474. package/lib/rest/conversations/v1/credential.js +276 -0
  475. package/lib/rest/conversations/v1/participantConversation.d.ts +242 -0
  476. package/lib/rest/conversations/v1/participantConversation.js +152 -0
  477. package/lib/rest/conversations/v1/role.d.ts +296 -0
  478. package/lib/rest/conversations/v1/role.js +260 -0
  479. package/lib/rest/conversations/v1/service/binding.d.ts +276 -0
  480. package/lib/rest/conversations/v1/service/binding.js +220 -0
  481. package/lib/rest/conversations/v1/service/configuration/notification.d.ts +185 -0
  482. package/lib/rest/conversations/v1/service/configuration/notification.js +176 -0
  483. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +165 -0
  484. package/lib/rest/conversations/v1/service/configuration/webhook.js +154 -0
  485. package/lib/rest/conversations/v1/service/configuration.d.ts +173 -0
  486. package/lib/rest/conversations/v1/service/configuration.js +174 -0
  487. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +257 -0
  488. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.js +216 -0
  489. package/lib/rest/conversations/v1/service/conversation/message.d.ts +431 -0
  490. package/lib/rest/conversations/v1/service/conversation/message.js +329 -0
  491. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +406 -0
  492. package/lib/rest/conversations/v1/service/conversation/participant.js +320 -0
  493. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +336 -0
  494. package/lib/rest/conversations/v1/service/conversation/webhook.js +286 -0
  495. package/lib/rest/conversations/v1/service/conversation.d.ts +431 -0
  496. package/lib/rest/conversations/v1/service/conversation.js +353 -0
  497. package/lib/rest/conversations/v1/service/participantConversation.d.ts +243 -0
  498. package/lib/rest/conversations/v1/service/participantConversation.js +156 -0
  499. package/lib/rest/conversations/v1/service/role.d.ts +298 -0
  500. package/lib/rest/conversations/v1/service/role.js +267 -0
  501. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +349 -0
  502. package/lib/rest/conversations/v1/service/user/userConversation.js +271 -0
  503. package/lib/rest/conversations/v1/service/user.d.ts +381 -0
  504. package/lib/rest/conversations/v1/service/user.js +301 -0
  505. package/lib/rest/conversations/v1/service.d.ts +304 -0
  506. package/lib/rest/conversations/v1/service.js +299 -0
  507. package/lib/rest/conversations/v1/user/userConversation.d.ts +347 -0
  508. package/lib/rest/conversations/v1/user/userConversation.js +264 -0
  509. package/lib/rest/conversations/v1/user.d.ts +379 -0
  510. package/lib/rest/conversations/v1/user.js +294 -0
  511. package/lib/rest/events/V1.d.ts +30 -0
  512. package/lib/rest/events/V1.js +54 -0
  513. package/lib/rest/events/v1/eventType.d.ts +226 -0
  514. package/lib/rest/events/v1/eventType.js +185 -0
  515. package/lib/rest/events/v1/schema/schemaVersion.d.ts +210 -0
  516. package/lib/rest/events/v1/schema/schemaVersion.js +185 -0
  517. package/lib/rest/events/v1/schema.d.ts +114 -0
  518. package/lib/rest/events/v1/schema.js +126 -0
  519. package/lib/rest/events/v1/sink/sinkTest.d.ts +46 -0
  520. package/lib/rest/events/v1/sink/sinkTest.js +66 -0
  521. package/lib/rest/events/v1/sink/sinkValidate.d.ts +54 -0
  522. package/lib/rest/events/v1/sink/sinkValidate.js +78 -0
  523. package/lib/rest/events/v1/sink.d.ts +322 -0
  524. package/lib/rest/events/v1/sink.js +289 -0
  525. package/lib/rest/events/v1/subscription/subscribedEvent.d.ts +290 -0
  526. package/lib/rest/events/v1/subscription/subscribedEvent.js +254 -0
  527. package/lib/rest/events/v1/subscription.d.ts +324 -0
  528. package/lib/rest/events/v1/subscription.js +277 -0
  529. package/lib/rest/flexApi/V1.d.ts +70 -0
  530. package/lib/rest/flexApi/V1.js +113 -0
  531. package/lib/rest/flexApi/V2.d.ts +15 -0
  532. package/lib/rest/flexApi/V2.js +36 -0
  533. package/lib/rest/flexApi/v1/assessments.d.ts +81 -0
  534. package/lib/rest/flexApi/v1/assessments.js +100 -0
  535. package/lib/rest/flexApi/v1/channel.d.ts +280 -0
  536. package/lib/rest/flexApi/v1/channel.js +251 -0
  537. package/lib/rest/flexApi/v1/configuration.d.ts +368 -0
  538. package/lib/rest/flexApi/v1/configuration.js +195 -0
  539. package/lib/rest/flexApi/v1/flexFlow.d.ts +406 -0
  540. package/lib/rest/flexApi/v1/flexFlow.js +336 -0
  541. package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.d.ts +168 -0
  542. package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.js +167 -0
  543. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +208 -0
  544. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +205 -0
  545. package/lib/rest/flexApi/v1/insightsSession.d.ts +130 -0
  546. package/lib/rest/flexApi/v1/insightsSession.js +115 -0
  547. package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +82 -0
  548. package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.js +83 -0
  549. package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +67 -0
  550. package/lib/rest/flexApi/v1/insightsSettingsComment.js +79 -0
  551. package/lib/rest/flexApi/v1/insightsUserRoles.d.ts +109 -0
  552. package/lib/rest/flexApi/v1/insightsUserRoles.js +109 -0
  553. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +181 -0
  554. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +154 -0
  555. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +238 -0
  556. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js +222 -0
  557. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +266 -0
  558. package/lib/rest/flexApi/v1/interaction/interactionChannel.js +244 -0
  559. package/lib/rest/flexApi/v1/interaction.d.ts +126 -0
  560. package/lib/rest/flexApi/v1/interaction.js +152 -0
  561. package/lib/rest/flexApi/v1/webChannel.d.ts +305 -0
  562. package/lib/rest/flexApi/v1/webChannel.js +268 -0
  563. package/lib/rest/flexApi/v2/webChannels.d.ts +65 -0
  564. package/lib/rest/flexApi/v2/webChannels.js +82 -0
  565. package/lib/rest/frontlineApi/V1.d.ts +15 -0
  566. package/lib/rest/frontlineApi/V1.js +36 -0
  567. package/lib/rest/frontlineApi/v1/user.d.ts +164 -0
  568. package/lib/rest/frontlineApi/v1/user.js +150 -0
  569. package/lib/rest/insights/V1.d.ts +35 -0
  570. package/lib/rest/insights/V1.js +61 -0
  571. package/lib/rest/insights/v1/call/annotation.d.ts +187 -0
  572. package/lib/rest/insights/v1/call/annotation.js +166 -0
  573. package/lib/rest/insights/v1/call/callSummary.d.ts +175 -0
  574. package/lib/rest/insights/v1/call/callSummary.js +159 -0
  575. package/lib/rest/insights/v1/call/event.d.ts +178 -0
  576. package/lib/rest/insights/v1/call/event.js +144 -0
  577. package/lib/rest/insights/v1/call/metric.d.ts +178 -0
  578. package/lib/rest/insights/v1/call/metric.js +142 -0
  579. package/lib/rest/insights/v1/call.d.ts +117 -0
  580. package/lib/rest/insights/v1/call.js +159 -0
  581. package/lib/rest/insights/v1/callSummaries.d.ts +316 -0
  582. package/lib/rest/insights/v1/callSummaries.js +196 -0
  583. package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +375 -0
  584. package/lib/rest/insights/v1/conference/conferenceParticipant.js +246 -0
  585. package/lib/rest/insights/v1/conference.d.ts +377 -0
  586. package/lib/rest/insights/v1/conference.js +248 -0
  587. package/lib/rest/insights/v1/room/participant.d.ts +280 -0
  588. package/lib/rest/insights/v1/room/participant.js +212 -0
  589. package/lib/rest/insights/v1/room.d.ts +363 -0
  590. package/lib/rest/insights/v1/room.js +244 -0
  591. package/lib/rest/insights/v1/setting.d.ts +158 -0
  592. package/lib/rest/insights/v1/setting.js +143 -0
  593. package/lib/rest/ipMessaging/V1.d.ts +20 -0
  594. package/lib/rest/ipMessaging/V1.js +37 -53
  595. package/lib/rest/ipMessaging/V2.d.ts +20 -0
  596. package/lib/rest/ipMessaging/V2.js +37 -53
  597. package/lib/rest/ipMessaging/v1/credential.d.ts +303 -0
  598. package/lib/rest/ipMessaging/v1/credential.js +258 -697
  599. package/lib/rest/ipMessaging/v1/service/channel/invite.d.ts +256 -0
  600. package/lib/rest/ipMessaging/v1/service/channel/invite.js +229 -637
  601. package/lib/rest/ipMessaging/v1/service/channel/member.d.ts +303 -0
  602. package/lib/rest/ipMessaging/v1/service/channel/member.js +260 -717
  603. package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +312 -0
  604. package/lib/rest/ipMessaging/v1/service/channel/message.js +266 -721
  605. package/lib/rest/ipMessaging/v1/service/channel.d.ts +349 -0
  606. package/lib/rest/ipMessaging/v1/service/channel.js +303 -812
  607. package/lib/rest/ipMessaging/v1/service/role.d.ts +274 -0
  608. package/lib/rest/ipMessaging/v1/service/role.js +249 -693
  609. package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +163 -0
  610. package/lib/rest/ipMessaging/v1/service/user/userChannel.js +128 -392
  611. package/lib/rest/ipMessaging/v1/service/user.d.ts +318 -0
  612. package/lib/rest/ipMessaging/v1/service/user.js +277 -742
  613. package/lib/rest/ipMessaging/v1/service.d.ts +449 -0
  614. package/lib/rest/ipMessaging/v1/service.js +435 -1112
  615. package/lib/rest/ipMessaging/v2/credential.d.ts +303 -0
  616. package/lib/rest/ipMessaging/v2/credential.js +258 -697
  617. package/lib/rest/ipMessaging/v2/service/binding.d.ts +249 -0
  618. package/lib/rest/ipMessaging/v2/service/binding.js +222 -0
  619. package/lib/rest/ipMessaging/v2/service/channel/invite.d.ts +256 -0
  620. package/lib/rest/ipMessaging/v2/service/channel/invite.js +229 -637
  621. package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +354 -0
  622. package/lib/rest/ipMessaging/v2/service/channel/member.js +290 -717
  623. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +375 -0
  624. package/lib/rest/ipMessaging/v2/service/channel/message.js +300 -721
  625. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +311 -0
  626. package/lib/rest/ipMessaging/v2/service/channel/webhook.js +288 -0
  627. package/lib/rest/ipMessaging/v2/service/channel.d.ts +399 -0
  628. package/lib/rest/ipMessaging/v2/service/channel.js +338 -812
  629. package/lib/rest/ipMessaging/v2/service/role.d.ts +274 -0
  630. package/lib/rest/ipMessaging/v2/service/role.js +249 -693
  631. package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +245 -0
  632. package/lib/rest/ipMessaging/v2/service/user/userBinding.js +226 -0
  633. package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +283 -0
  634. package/lib/rest/ipMessaging/v2/service/user/userChannel.js +243 -389
  635. package/lib/rest/ipMessaging/v2/service/user.d.ts +331 -0
  636. package/lib/rest/ipMessaging/v2/service/user.js +294 -742
  637. package/lib/rest/ipMessaging/v2/service.d.ts +417 -0
  638. package/lib/rest/ipMessaging/v2/service.js +381 -896
  639. package/lib/rest/lookups/V1.d.ts +15 -0
  640. package/lib/rest/lookups/V1.js +31 -42
  641. package/lib/rest/lookups/V2.d.ts +15 -0
  642. package/lib/rest/lookups/V2.js +36 -0
  643. package/lib/rest/lookups/v1/phoneNumber.d.ts +149 -0
  644. package/lib/rest/lookups/v1/phoneNumber.js +128 -272
  645. package/lib/rest/lookups/v2/phoneNumber.d.ts +202 -0
  646. package/lib/rest/lookups/v2/phoneNumber.js +158 -0
  647. package/lib/rest/media/V1.d.ts +25 -0
  648. package/lib/rest/media/V1.js +51 -0
  649. package/lib/rest/media/v1/mediaProcessor.d.ts +318 -0
  650. package/lib/rest/media/v1/mediaProcessor.js +256 -0
  651. package/lib/rest/media/v1/mediaRecording.d.ts +310 -0
  652. package/lib/rest/media/v1/mediaRecording.js +226 -0
  653. package/lib/rest/media/v1/playerStreamer/playbackGrant.d.ts +151 -0
  654. package/lib/rest/media/v1/playerStreamer/playbackGrant.js +146 -0
  655. package/lib/rest/media/v1/playerStreamer.d.ts +328 -0
  656. package/lib/rest/media/v1/playerStreamer.js +264 -0
  657. package/lib/rest/messaging/V1.d.ts +50 -0
  658. package/lib/rest/messaging/V1.js +77 -41
  659. package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +265 -0
  660. package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +224 -0
  661. package/lib/rest/messaging/v1/brandRegistration.d.ts +344 -0
  662. package/lib/rest/messaging/v1/brandRegistration.js +275 -0
  663. package/lib/rest/messaging/v1/deactivations.d.ts +106 -0
  664. package/lib/rest/messaging/v1/deactivations.js +107 -0
  665. package/lib/rest/messaging/v1/domainCerts.d.ts +164 -0
  666. package/lib/rest/messaging/v1/domainCerts.js +164 -0
  667. package/lib/rest/messaging/v1/domainConfig.d.ts +153 -0
  668. package/lib/rest/messaging/v1/domainConfig.js +152 -0
  669. package/lib/rest/messaging/v1/externalCampaign.d.ts +79 -0
  670. package/lib/rest/messaging/v1/externalCampaign.js +87 -0
  671. package/lib/rest/messaging/v1/service/alphaSender.d.ts +264 -0
  672. package/lib/rest/messaging/v1/service/alphaSender.js +215 -615
  673. package/lib/rest/messaging/v1/service/phoneNumber.d.ts +270 -0
  674. package/lib/rest/messaging/v1/service/phoneNumber.js +218 -617
  675. package/lib/rest/messaging/v1/service/shortCode.d.ts +270 -0
  676. package/lib/rest/messaging/v1/service/shortCode.js +218 -617
  677. package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +384 -0
  678. package/lib/rest/messaging/v1/service/usAppToPerson.js +304 -0
  679. package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +62 -0
  680. package/lib/rest/messaging/v1/service/usAppToPersonUsecase.js +79 -0
  681. package/lib/rest/messaging/v1/service.d.ts +494 -0
  682. package/lib/rest/messaging/v1/service.js +388 -862
  683. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +521 -0
  684. package/lib/rest/messaging/v1/tollfreeVerification.js +396 -0
  685. package/lib/rest/messaging/v1/usecase.d.ts +45 -0
  686. package/lib/rest/messaging/v1/usecase.js +62 -0
  687. package/lib/rest/microvisor/V1.d.ts +20 -0
  688. package/lib/rest/microvisor/V1.js +42 -0
  689. package/lib/rest/microvisor/v1/app.d.ts +240 -0
  690. package/lib/rest/microvisor/v1/app.js +201 -0
  691. package/lib/rest/microvisor/v1/device.d.ts +281 -0
  692. package/lib/rest/microvisor/v1/device.js +217 -0
  693. package/lib/rest/monitor/V1.d.ts +20 -0
  694. package/lib/rest/monitor/V1.js +37 -52
  695. package/lib/rest/monitor/v1/alert.d.ts +314 -0
  696. package/lib/rest/monitor/v1/alert.js +199 -586
  697. package/lib/rest/monitor/v1/event.d.ts +301 -0
  698. package/lib/rest/monitor/v1/event.js +195 -543
  699. package/lib/rest/notify/V1.d.ts +20 -0
  700. package/lib/rest/notify/V1.js +37 -52
  701. package/lib/rest/notify/v1/credential.d.ts +324 -0
  702. package/lib/rest/notify/v1/credential.js +258 -701
  703. package/lib/rest/notify/v1/service/binding.d.ts +337 -0
  704. package/lib/rest/notify/v1/service/binding.js +250 -669
  705. package/lib/rest/notify/v1/service/notification.d.ts +208 -0
  706. package/lib/rest/notify/v1/service/notification.js +147 -255
  707. package/lib/rest/notify/v1/service.d.ts +458 -0
  708. package/lib/rest/notify/v1/service.js +349 -899
  709. package/lib/rest/numbers/V2.d.ts +15 -0
  710. package/lib/rest/numbers/V2.js +37 -0
  711. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +219 -0
  712. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.js +163 -0
  713. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +231 -0
  714. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.js +200 -0
  715. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.d.ts +252 -0
  716. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.js +227 -0
  717. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +106 -0
  718. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.js +97 -0
  719. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +445 -0
  720. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +354 -0
  721. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +308 -0
  722. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.js +261 -0
  723. package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +211 -0
  724. package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.js +179 -0
  725. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +239 -0
  726. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.js +189 -0
  727. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +326 -0
  728. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.js +267 -0
  729. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +211 -0
  730. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.js +179 -0
  731. package/lib/rest/numbers/v2/regulatoryCompliance.d.ts +34 -0
  732. package/lib/rest/numbers/v2/regulatoryCompliance.js +87 -0
  733. package/lib/rest/oauth/V1.d.ts +35 -0
  734. package/lib/rest/oauth/V1.js +61 -0
  735. package/lib/rest/oauth/v1/deviceCode.d.ts +87 -0
  736. package/lib/rest/oauth/v1/deviceCode.js +90 -0
  737. package/lib/rest/oauth/v1/oauth.d.ts +84 -0
  738. package/lib/rest/oauth/v1/oauth.js +102 -0
  739. package/lib/rest/oauth/v1/openidDiscovery.d.ts +150 -0
  740. package/lib/rest/oauth/v1/openidDiscovery.js +126 -0
  741. package/lib/rest/oauth/v1/token.d.ts +88 -0
  742. package/lib/rest/oauth/v1/token.js +98 -0
  743. package/lib/rest/oauth/v1/userInfo.d.ts +108 -0
  744. package/lib/rest/oauth/v1/userInfo.js +110 -0
  745. package/lib/rest/preview/DeployedDevices.d.ts +15 -0
  746. package/lib/rest/preview/DeployedDevices.js +36 -0
  747. package/lib/rest/preview/HostedNumbers.d.ts +20 -0
  748. package/lib/rest/preview/HostedNumbers.js +39 -43
  749. package/lib/rest/preview/Marketplace.d.ts +20 -0
  750. package/lib/rest/preview/Marketplace.js +39 -56
  751. package/lib/rest/preview/Sync.d.ts +15 -0
  752. package/lib/rest/preview/Sync.js +31 -41
  753. package/lib/rest/preview/Understand.d.ts +15 -0
  754. package/lib/rest/preview/Understand.js +36 -0
  755. package/lib/rest/preview/Wireless.d.ts +25 -0
  756. package/lib/rest/preview/Wireless.js +43 -63
  757. package/lib/rest/preview/deployed_devices/fleet/certificate.d.ts +324 -0
  758. package/lib/rest/preview/deployed_devices/fleet/certificate.js +269 -0
  759. package/lib/rest/preview/deployed_devices/fleet/deployment.d.ts +318 -0
  760. package/lib/rest/preview/deployed_devices/fleet/deployment.js +264 -0
  761. package/lib/rest/preview/deployed_devices/fleet/device.d.ts +358 -0
  762. package/lib/rest/preview/deployed_devices/fleet/device.js +284 -0
  763. package/lib/rest/preview/deployed_devices/fleet/key.d.ts +330 -0
  764. package/lib/rest/preview/deployed_devices/fleet/key.js +268 -0
  765. package/lib/rest/preview/deployed_devices/fleet.d.ts +352 -0
  766. package/lib/rest/preview/deployed_devices/fleet.js +307 -0
  767. package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +293 -0
  768. package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.js +174 -0
  769. package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +327 -0
  770. package/lib/rest/preview/hosted_numbers/authorizationDocument.js +285 -0
  771. package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +468 -0
  772. package/lib/rest/preview/hosted_numbers/hostedNumberOrder.js +325 -797
  773. package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.d.ts +219 -0
  774. package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.js +174 -513
  775. package/lib/rest/preview/marketplace/availableAddOn.d.ts +231 -0
  776. package/lib/rest/preview/marketplace/availableAddOn.js +183 -535
  777. package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.d.ts +251 -0
  778. package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.js +201 -594
  779. package/lib/rest/preview/marketplace/installedAddOn.d.ts +332 -0
  780. package/lib/rest/preview/marketplace/installedAddOn.js +264 -738
  781. package/lib/rest/preview/sync/service/document/documentPermission.d.ts +280 -0
  782. package/lib/rest/preview/sync/service/document/documentPermission.js +239 -666
  783. package/lib/rest/preview/sync/service/document.d.ts +295 -0
  784. package/lib/rest/preview/sync/service/document.js +266 -735
  785. package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +321 -0
  786. package/lib/rest/preview/sync/service/syncList/syncListItem.js +264 -727
  787. package/lib/rest/preview/sync/service/syncList/syncListPermission.d.ts +280 -0
  788. package/lib/rest/preview/sync/service/syncList/syncListPermission.js +239 -666
  789. package/lib/rest/preview/sync/service/syncList.d.ts +270 -0
  790. package/lib/rest/preview/sync/service/syncList.js +247 -689
  791. package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +323 -0
  792. package/lib/rest/preview/sync/service/syncMap/syncMapItem.js +267 -729
  793. package/lib/rest/preview/sync/service/syncMap/syncMapPermission.d.ts +280 -0
  794. package/lib/rest/preview/sync/service/syncMap/syncMapPermission.js +239 -666
  795. package/lib/rest/preview/sync/service/syncMap.d.ts +270 -0
  796. package/lib/rest/preview/sync/service/syncMap.js +247 -687
  797. package/lib/rest/preview/sync/service.d.ts +330 -0
  798. package/lib/rest/preview/sync/service.js +289 -792
  799. package/lib/rest/preview/understand/assistant/assistantFallbackActions.d.ts +131 -0
  800. package/lib/rest/preview/understand/assistant/assistantFallbackActions.js +142 -0
  801. package/lib/rest/preview/understand/assistant/assistantInitiationActions.d.ts +131 -0
  802. package/lib/rest/preview/understand/assistant/assistantInitiationActions.js +142 -0
  803. package/lib/rest/preview/understand/assistant/dialogue.d.ts +105 -0
  804. package/lib/rest/preview/understand/assistant/dialogue.js +120 -0
  805. package/lib/rest/preview/understand/assistant/fieldType/fieldValue.d.ts +285 -0
  806. package/lib/rest/preview/understand/assistant/fieldType/fieldValue.js +249 -0
  807. package/lib/rest/preview/understand/assistant/fieldType.d.ts +318 -0
  808. package/lib/rest/preview/understand/assistant/fieldType.js +277 -0
  809. package/lib/rest/preview/understand/assistant/modelBuild.d.ts +320 -0
  810. package/lib/rest/preview/understand/assistant/modelBuild.js +266 -0
  811. package/lib/rest/preview/understand/assistant/query.d.ts +361 -0
  812. package/lib/rest/preview/understand/assistant/query.js +286 -0
  813. package/lib/rest/preview/understand/assistant/styleSheet.d.ts +140 -0
  814. package/lib/rest/preview/understand/assistant/styleSheet.js +142 -0
  815. package/lib/rest/preview/understand/assistant/task/field.d.ts +271 -0
  816. package/lib/rest/preview/understand/assistant/task/field.js +243 -0
  817. package/lib/rest/preview/understand/assistant/task/sample.d.ts +331 -0
  818. package/lib/rest/preview/understand/assistant/task/sample.js +280 -0
  819. package/lib/rest/preview/understand/assistant/task/taskActions.d.ts +145 -0
  820. package/lib/rest/preview/understand/assistant/task/taskActions.js +150 -0
  821. package/lib/rest/preview/understand/assistant/task/taskStatistics.d.ts +112 -0
  822. package/lib/rest/preview/understand/assistant/task/taskStatistics.js +125 -0
  823. package/lib/rest/preview/understand/assistant/task.d.ts +356 -0
  824. package/lib/rest/preview/understand/assistant/task.js +326 -0
  825. package/lib/rest/preview/understand/assistant.d.ts +422 -0
  826. package/lib/rest/preview/understand/assistant.js +392 -0
  827. package/lib/rest/preview/wireless/command.d.ts +266 -0
  828. package/lib/rest/preview/wireless/command.js +217 -593
  829. package/lib/rest/preview/wireless/ratePlan.d.ts +326 -0
  830. package/lib/rest/preview/wireless/ratePlan.js +271 -707
  831. package/lib/rest/preview/wireless/sim/usage.d.ts +131 -0
  832. package/lib/rest/preview/wireless/sim/usage.js +128 -274
  833. package/lib/rest/preview/wireless/sim.d.ts +361 -0
  834. package/lib/rest/preview/wireless/sim.js +276 -705
  835. package/lib/rest/pricing/V1.d.ts +25 -0
  836. package/lib/rest/pricing/V1.js +43 -64
  837. package/lib/rest/pricing/V2.d.ts +25 -0
  838. package/lib/rest/pricing/V2.js +48 -0
  839. package/lib/rest/pricing/v1/messaging/country.d.ts +233 -0
  840. package/lib/rest/pricing/v1/messaging/country.js +177 -490
  841. package/lib/rest/pricing/v1/messaging.d.ts +19 -0
  842. package/lib/rest/pricing/v1/messaging.js +38 -138
  843. package/lib/rest/pricing/v1/phoneNumber/country.d.ts +216 -0
  844. package/lib/rest/pricing/v1/phoneNumber/country.js +169 -488
  845. package/lib/rest/pricing/v1/phoneNumber.d.ts +19 -0
  846. package/lib/rest/pricing/v1/phoneNumber.js +38 -138
  847. package/lib/rest/pricing/v1/voice/country.d.ts +228 -0
  848. package/lib/rest/pricing/v1/voice/country.js +174 -490
  849. package/lib/rest/pricing/v1/voice/number.d.ts +127 -0
  850. package/lib/rest/pricing/v1/voice/number.js +121 -242
  851. package/lib/rest/pricing/v1/voice.d.ts +22 -0
  852. package/lib/rest/pricing/v1/voice.js +47 -153
  853. package/lib/rest/pricing/v2/country.d.ts +229 -0
  854. package/lib/rest/pricing/v2/country.js +187 -0
  855. package/lib/rest/pricing/v2/number.d.ts +158 -0
  856. package/lib/rest/pricing/v2/number.js +137 -0
  857. package/lib/rest/pricing/v2/voice/country.d.ts +229 -0
  858. package/lib/rest/pricing/v2/voice/country.js +187 -0
  859. package/lib/rest/pricing/v2/voice/number.d.ts +159 -0
  860. package/lib/rest/pricing/v2/voice/number.js +137 -0
  861. package/lib/rest/pricing/v2/voice.d.ts +22 -0
  862. package/lib/rest/pricing/v2/voice.js +51 -0
  863. package/lib/rest/proxy/V1.d.ts +15 -0
  864. package/lib/rest/proxy/V1.js +36 -0
  865. package/lib/rest/proxy/v1/service/phoneNumber.d.ts +340 -0
  866. package/lib/rest/proxy/v1/service/phoneNumber.js +272 -0
  867. package/lib/rest/proxy/v1/service/session/interaction.d.ts +309 -0
  868. package/lib/rest/proxy/v1/service/session/interaction.js +238 -0
  869. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +326 -0
  870. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.js +257 -0
  871. package/lib/rest/proxy/v1/service/session/participant.d.ts +310 -0
  872. package/lib/rest/proxy/v1/service/session/participant.js +266 -0
  873. package/lib/rest/proxy/v1/service/session.d.ts +388 -0
  874. package/lib/rest/proxy/v1/service/session.js +316 -0
  875. package/lib/rest/proxy/v1/service/shortCode.d.ts +316 -0
  876. package/lib/rest/proxy/v1/service/shortCode.js +262 -0
  877. package/lib/rest/proxy/v1/service.d.ts +388 -0
  878. package/lib/rest/proxy/v1/service.js +330 -0
  879. package/lib/rest/routes/V2.d.ts +25 -0
  880. package/lib/rest/routes/V2.js +48 -0
  881. package/lib/rest/routes/v2/phoneNumber.d.ts +168 -0
  882. package/lib/rest/routes/v2/phoneNumber.js +149 -0
  883. package/lib/rest/routes/v2/sipDomain.d.ts +144 -0
  884. package/lib/rest/routes/v2/sipDomain.js +149 -0
  885. package/lib/rest/routes/v2/trunk.d.ts +168 -0
  886. package/lib/rest/routes/v2/trunk.js +149 -0
  887. package/lib/rest/serverless/V1.d.ts +15 -0
  888. package/lib/rest/serverless/V1.js +36 -0
  889. package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +231 -0
  890. package/lib/rest/serverless/v1/service/asset/assetVersion.js +197 -0
  891. package/lib/rest/serverless/v1/service/asset.d.ts +298 -0
  892. package/lib/rest/serverless/v1/service/asset.js +271 -0
  893. package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +107 -0
  894. package/lib/rest/serverless/v1/service/build/buildStatus.js +123 -0
  895. package/lib/rest/serverless/v1/service/build.d.ts +303 -0
  896. package/lib/rest/serverless/v1/service/build.js +260 -0
  897. package/lib/rest/serverless/v1/service/environment/deployment.d.ts +257 -0
  898. package/lib/rest/serverless/v1/service/environment/deployment.js +220 -0
  899. package/lib/rest/serverless/v1/service/environment/log.d.ts +273 -0
  900. package/lib/rest/serverless/v1/service/environment/log.js +211 -0
  901. package/lib/rest/serverless/v1/service/environment/variable.d.ts +318 -0
  902. package/lib/rest/serverless/v1/service/environment/variable.js +272 -0
  903. package/lib/rest/serverless/v1/service/environment.d.ts +308 -0
  904. package/lib/rest/serverless/v1/service/environment.js +278 -0
  905. package/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.d.ts +114 -0
  906. package/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.js +131 -0
  907. package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +242 -0
  908. package/lib/rest/serverless/v1/service/function/functionVersion.js +212 -0
  909. package/lib/rest/serverless/v1/service/function.d.ts +298 -0
  910. package/lib/rest/serverless/v1/service/function.js +271 -0
  911. package/lib/rest/serverless/v1/service.d.ts +364 -0
  912. package/lib/rest/serverless/v1/service.js +321 -0
  913. package/lib/rest/studio/V1.d.ts +15 -0
  914. package/lib/rest/studio/V1.js +36 -0
  915. package/lib/rest/studio/V2.d.ts +20 -0
  916. package/lib/rest/studio/V2.js +42 -0
  917. package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +109 -0
  918. package/lib/rest/studio/v1/flow/engagement/engagementContext.js +123 -0
  919. package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +117 -0
  920. package/lib/rest/studio/v1/flow/engagement/step/stepContext.js +131 -0
  921. package/lib/rest/studio/v1/flow/engagement/step.d.ts +265 -0
  922. package/lib/rest/studio/v1/flow/engagement/step.js +218 -0
  923. package/lib/rest/studio/v1/flow/engagement.d.ts +300 -0
  924. package/lib/rest/studio/v1/flow/engagement.js +269 -0
  925. package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +109 -0
  926. package/lib/rest/studio/v1/flow/execution/executionContext.js +123 -0
  927. package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +117 -0
  928. package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.js +131 -0
  929. package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +265 -0
  930. package/lib/rest/studio/v1/flow/execution/executionStep.js +218 -0
  931. package/lib/rest/studio/v1/flow/execution.d.ts +338 -0
  932. package/lib/rest/studio/v1/flow/execution.js +298 -0
  933. package/lib/rest/studio/v1/flow.d.ts +266 -0
  934. package/lib/rest/studio/v1/flow.js +231 -0
  935. package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +109 -0
  936. package/lib/rest/studio/v2/flow/execution/executionContext.js +123 -0
  937. package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +117 -0
  938. package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.js +131 -0
  939. package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +265 -0
  940. package/lib/rest/studio/v2/flow/execution/executionStep.js +218 -0
  941. package/lib/rest/studio/v2/flow/execution.d.ts +332 -0
  942. package/lib/rest/studio/v2/flow/execution.js +296 -0
  943. package/lib/rest/studio/v2/flow/flowRevision.d.ts +253 -0
  944. package/lib/rest/studio/v2/flow/flowRevision.js +199 -0
  945. package/lib/rest/studio/v2/flow/flowTestUser.d.ts +121 -0
  946. package/lib/rest/studio/v2/flow/flowTestUser.js +138 -0
  947. package/lib/rest/studio/v2/flow.d.ts +361 -0
  948. package/lib/rest/studio/v2/flow.js +319 -0
  949. package/lib/rest/studio/v2/flowValidate.d.ts +60 -0
  950. package/lib/rest/studio/v2/flowValidate.js +85 -0
  951. package/lib/rest/supersim/V1.d.ts +55 -0
  952. package/lib/rest/supersim/V1.js +86 -0
  953. package/lib/rest/supersim/v1/esimProfile.d.ts +297 -0
  954. package/lib/rest/supersim/v1/esimProfile.js +226 -0
  955. package/lib/rest/supersim/v1/fleet.d.ts +363 -0
  956. package/lib/rest/supersim/v1/fleet.js +277 -0
  957. package/lib/rest/supersim/v1/ipCommand.d.ts +303 -0
  958. package/lib/rest/supersim/v1/ipCommand.js +238 -0
  959. package/lib/rest/supersim/v1/network.d.ts +229 -0
  960. package/lib/rest/supersim/v1/network.js +185 -0
  961. package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +252 -0
  962. package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.js +227 -0
  963. package/lib/rest/supersim/v1/networkAccessProfile.d.ts +296 -0
  964. package/lib/rest/supersim/v1/networkAccessProfile.js +248 -0
  965. package/lib/rest/supersim/v1/settingsUpdate.d.ts +194 -0
  966. package/lib/rest/supersim/v1/settingsUpdate.js +136 -0
  967. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +183 -0
  968. package/lib/rest/supersim/v1/sim/billingPeriod.js +136 -0
  969. package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +147 -0
  970. package/lib/rest/supersim/v1/sim/simIpAddress.js +124 -0
  971. package/lib/rest/supersim/v1/sim.d.ts +341 -0
  972. package/lib/rest/supersim/v1/sim.js +283 -0
  973. package/lib/rest/supersim/v1/smsCommand.d.ts +271 -0
  974. package/lib/rest/supersim/v1/smsCommand.js +222 -0
  975. package/lib/rest/supersim/v1/usageRecord.d.ts +252 -0
  976. package/lib/rest/supersim/v1/usageRecord.js +154 -0
  977. package/lib/rest/sync/V1.d.ts +15 -0
  978. package/lib/rest/sync/V1.js +31 -41
  979. package/lib/rest/sync/v1/service/document/documentPermission.d.ts +280 -0
  980. package/lib/rest/sync/v1/service/document/documentPermission.js +239 -666
  981. package/lib/rest/sync/v1/service/document.d.ts +354 -0
  982. package/lib/rest/sync/v1/service/document.js +274 -735
  983. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +385 -0
  984. package/lib/rest/sync/v1/service/syncList/syncListItem.js +280 -727
  985. package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +280 -0
  986. package/lib/rest/sync/v1/service/syncList/syncListPermission.js +239 -666
  987. package/lib/rest/sync/v1/service/syncList.d.ts +354 -0
  988. package/lib/rest/sync/v1/service/syncList.js +281 -688
  989. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +387 -0
  990. package/lib/rest/sync/v1/service/syncMap/syncMapItem.js +283 -729
  991. package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +280 -0
  992. package/lib/rest/sync/v1/service/syncMap/syncMapPermission.js +239 -666
  993. package/lib/rest/sync/v1/service/syncMap.d.ts +354 -0
  994. package/lib/rest/sync/v1/service/syncMap.js +281 -686
  995. package/lib/rest/sync/v1/service/syncStream/streamMessage.d.ts +61 -0
  996. package/lib/rest/sync/v1/service/syncStream/streamMessage.js +83 -0
  997. package/lib/rest/sync/v1/service/syncStream.d.ts +336 -0
  998. package/lib/rest/sync/v1/service/syncStream.js +279 -0
  999. package/lib/rest/sync/v1/service.d.ts +404 -0
  1000. package/lib/rest/sync/v1/service.js +325 -792
  1001. package/lib/rest/taskrouter/V1.d.ts +15 -0
  1002. package/lib/rest/taskrouter/V1.js +31 -41
  1003. package/lib/rest/taskrouter/v1/workspace/activity.d.ts +323 -0
  1004. package/lib/rest/taskrouter/v1/workspace/activity.js +250 -699
  1005. package/lib/rest/taskrouter/v1/workspace/event.d.ts +351 -0
  1006. package/lib/rest/taskrouter/v1/workspace/event.js +218 -571
  1007. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +412 -0
  1008. package/lib/rest/taskrouter/v1/workspace/task/reservation.js +331 -772
  1009. package/lib/rest/taskrouter/v1/workspace/task.d.ts +495 -0
  1010. package/lib/rest/taskrouter/v1/workspace/task.js +323 -809
  1011. package/lib/rest/taskrouter/v1/workspace/taskChannel.d.ts +324 -0
  1012. package/lib/rest/taskrouter/v1/workspace/taskChannel.js +257 -507
  1013. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +244 -0
  1014. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.js +172 -0
  1015. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +188 -0
  1016. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.js +148 -0
  1017. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +148 -0
  1018. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.js +134 -284
  1019. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +203 -0
  1020. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.js +131 -409
  1021. package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +417 -0
  1022. package/lib/rest/taskrouter/v1/workspace/taskQueue.js +327 -813
  1023. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +401 -0
  1024. package/lib/rest/taskrouter/v1/workspace/worker/reservation.js +325 -772
  1025. package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.d.ts +307 -0
  1026. package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.js +223 -612
  1027. package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +140 -0
  1028. package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.js +130 -282
  1029. package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +180 -0
  1030. package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.js +143 -0
  1031. package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +132 -0
  1032. package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.js +123 -0
  1033. package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +144 -0
  1034. package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.js +130 -279
  1035. package/lib/rest/taskrouter/v1/workspace/worker.d.ts +454 -0
  1036. package/lib/rest/taskrouter/v1/workspace/worker.js +348 -858
  1037. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +244 -0
  1038. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.js +171 -0
  1039. package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +158 -0
  1040. package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.js +137 -0
  1041. package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +148 -0
  1042. package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.js +134 -283
  1043. package/lib/rest/taskrouter/v1/workspace/workflow.d.ts +384 -0
  1044. package/lib/rest/taskrouter/v1/workspace/workflow.js +314 -762
  1045. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +236 -0
  1046. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.js +163 -0
  1047. package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +162 -0
  1048. package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.js +133 -0
  1049. package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +140 -0
  1050. package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.js +126 -270
  1051. package/lib/rest/taskrouter/v1/workspace.d.ts +452 -0
  1052. package/lib/rest/taskrouter/v1/workspace.js +411 -994
  1053. package/lib/rest/trunking/V1.d.ts +15 -0
  1054. package/lib/rest/trunking/V1.js +31 -41
  1055. package/lib/rest/trunking/v1/trunk/credentialList.d.ts +258 -0
  1056. package/lib/rest/trunking/v1/trunk/credentialList.js +214 -609
  1057. package/lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts +258 -0
  1058. package/lib/rest/trunking/v1/trunk/ipAccessControlList.js +214 -612
  1059. package/lib/rest/trunking/v1/trunk/originationUrl.d.ts +340 -0
  1060. package/lib/rest/trunking/v1/trunk/originationUrl.js +269 -718
  1061. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +375 -0
  1062. package/lib/rest/trunking/v1/trunk/phoneNumber.js +252 -648
  1063. package/lib/rest/trunking/v1/trunk/recording.d.ts +129 -0
  1064. package/lib/rest/trunking/v1/trunk/recording.js +140 -0
  1065. package/lib/rest/trunking/v1/trunk.d.ts +431 -0
  1066. package/lib/rest/trunking/v1/trunk.js +344 -834
  1067. package/lib/rest/trusthub/V1.d.ts +45 -0
  1068. package/lib/rest/trusthub/V1.js +76 -0
  1069. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.d.ts +272 -0
  1070. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.js +239 -0
  1071. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.d.ts +252 -0
  1072. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.js +227 -0
  1073. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +239 -0
  1074. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.js +212 -0
  1075. package/lib/rest/trusthub/v1/customerProfiles.d.ts +380 -0
  1076. package/lib/rest/trusthub/v1/customerProfiles.js +322 -0
  1077. package/lib/rest/trusthub/v1/endUser.d.ts +310 -0
  1078. package/lib/rest/trusthub/v1/endUser.js +261 -0
  1079. package/lib/rest/trusthub/v1/endUserType.d.ts +211 -0
  1080. package/lib/rest/trusthub/v1/endUserType.js +179 -0
  1081. package/lib/rest/trusthub/v1/policies.d.ts +205 -0
  1082. package/lib/rest/trusthub/v1/policies.js +177 -0
  1083. package/lib/rest/trusthub/v1/supportingDocument.d.ts +320 -0
  1084. package/lib/rest/trusthub/v1/supportingDocument.js +265 -0
  1085. package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +211 -0
  1086. package/lib/rest/trusthub/v1/supportingDocumentType.js +179 -0
  1087. package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.d.ts +272 -0
  1088. package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.js +239 -0
  1089. package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.d.ts +252 -0
  1090. package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.js +227 -0
  1091. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +239 -0
  1092. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.js +212 -0
  1093. package/lib/rest/trusthub/v1/trustProducts.d.ts +380 -0
  1094. package/lib/rest/trusthub/v1/trustProducts.js +322 -0
  1095. package/lib/rest/verify/V2.d.ts +40 -0
  1096. package/lib/rest/verify/V2.js +69 -0
  1097. package/lib/rest/verify/v2/form.d.ts +98 -0
  1098. package/lib/rest/verify/v2/form.js +112 -0
  1099. package/lib/rest/verify/v2/safelist.d.ts +127 -0
  1100. package/lib/rest/verify/v2/safelist.js +150 -0
  1101. package/lib/rest/verify/v2/service/accessToken.d.ts +158 -0
  1102. package/lib/rest/verify/v2/service/accessToken.js +159 -0
  1103. package/lib/rest/verify/v2/service/entity/challenge/notification.d.ts +112 -0
  1104. package/lib/rest/verify/v2/service/entity/challenge/notification.js +102 -0
  1105. package/lib/rest/verify/v2/service/entity/challenge.d.ts +384 -0
  1106. package/lib/rest/verify/v2/service/entity/challenge.js +296 -0
  1107. package/lib/rest/verify/v2/service/entity/factor.d.ts +335 -0
  1108. package/lib/rest/verify/v2/service/entity/factor.js +270 -0
  1109. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +157 -0
  1110. package/lib/rest/verify/v2/service/entity/newFactor.js +137 -0
  1111. package/lib/rest/verify/v2/service/entity.d.ts +288 -0
  1112. package/lib/rest/verify/v2/service/entity.js +270 -0
  1113. package/lib/rest/verify/v2/service/messagingConfiguration.d.ts +286 -0
  1114. package/lib/rest/verify/v2/service/messagingConfiguration.js +260 -0
  1115. package/lib/rest/verify/v2/service/rateLimit/bucket.d.ts +318 -0
  1116. package/lib/rest/verify/v2/service/rateLimit/bucket.js +272 -0
  1117. package/lib/rest/verify/v2/service/rateLimit.d.ts +322 -0
  1118. package/lib/rest/verify/v2/service/rateLimit.js +275 -0
  1119. package/lib/rest/verify/v2/service/verification.d.ts +237 -0
  1120. package/lib/rest/verify/v2/service/verification.js +217 -0
  1121. package/lib/rest/verify/v2/service/verificationCheck.d.ts +134 -0
  1122. package/lib/rest/verify/v2/service/verificationCheck.js +110 -0
  1123. package/lib/rest/verify/v2/service/webhook.d.ts +340 -0
  1124. package/lib/rest/verify/v2/service/webhook.js +287 -0
  1125. package/lib/rest/verify/v2/service.d.ts +481 -0
  1126. package/lib/rest/verify/v2/service.js +426 -0
  1127. package/lib/rest/verify/v2/template.d.ts +172 -0
  1128. package/lib/rest/verify/v2/template.js +128 -0
  1129. package/lib/rest/verify/v2/verificationAttempt.d.ts +288 -0
  1130. package/lib/rest/verify/v2/verificationAttempt.js +207 -0
  1131. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +138 -0
  1132. package/lib/rest/verify/v2/verificationAttemptsSummary.js +126 -0
  1133. package/lib/rest/video/V1.d.ts +40 -0
  1134. package/lib/rest/video/V1.js +64 -52
  1135. package/lib/rest/video/v1/composition.d.ts +377 -0
  1136. package/lib/rest/video/v1/composition.js +275 -0
  1137. package/lib/rest/video/v1/compositionHook.d.ts +389 -0
  1138. package/lib/rest/video/v1/compositionHook.js +310 -0
  1139. package/lib/rest/video/v1/compositionSettings.d.ts +159 -0
  1140. package/lib/rest/video/v1/compositionSettings.js +151 -0
  1141. package/lib/rest/video/v1/recording.d.ts +335 -0
  1142. package/lib/rest/video/v1/recording.js +223 -588
  1143. package/lib/rest/video/v1/recordingSettings.d.ts +159 -0
  1144. package/lib/rest/video/v1/recordingSettings.js +151 -0
  1145. package/lib/rest/video/v1/room/participant/anonymize.d.ts +143 -0
  1146. package/lib/rest/video/v1/room/participant/anonymize.js +135 -0
  1147. package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +237 -0
  1148. package/lib/rest/video/v1/room/participant/publishedTrack.js +199 -0
  1149. package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +103 -0
  1150. package/lib/rest/video/v1/room/participant/subscribeRules.js +103 -0
  1151. package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +243 -0
  1152. package/lib/rest/video/v1/room/participant/subscribedTrack.js +201 -0
  1153. package/lib/rest/video/v1/room/participant.d.ts +351 -0
  1154. package/lib/rest/video/v1/room/participant.js +286 -0
  1155. package/lib/rest/video/v1/room/recordingRules.d.ts +95 -0
  1156. package/lib/rest/video/v1/room/recordingRules.js +98 -0
  1157. package/lib/rest/video/v1/room/roomRecording.d.ts +318 -0
  1158. package/lib/rest/video/v1/room/roomRecording.js +236 -0
  1159. package/lib/rest/video/v1/room.d.ts +449 -0
  1160. package/lib/rest/video/v1/room.js +322 -706
  1161. package/lib/rest/voice/V1.d.ts +40 -0
  1162. package/lib/rest/voice/V1.js +69 -0
  1163. package/lib/rest/voice/v1/archivedCall.d.ts +51 -0
  1164. package/lib/rest/voice/v1/archivedCall.js +71 -0
  1165. package/lib/rest/voice/v1/byocTrunk.d.ts +393 -0
  1166. package/lib/rest/voice/v1/byocTrunk.js +304 -0
  1167. package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.d.ts +340 -0
  1168. package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.js +280 -0
  1169. package/lib/rest/voice/v1/connectionPolicy.d.ts +314 -0
  1170. package/lib/rest/voice/v1/connectionPolicy.js +265 -0
  1171. package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.d.ts +59 -0
  1172. package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.js +77 -0
  1173. package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.d.ts +143 -0
  1174. package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.js +122 -0
  1175. package/lib/rest/voice/v1/dialingPermissions/country.d.ts +279 -0
  1176. package/lib/rest/voice/v1/dialingPermissions/country.js +214 -0
  1177. package/lib/rest/voice/v1/dialingPermissions/settings.d.ts +129 -0
  1178. package/lib/rest/voice/v1/dialingPermissions/settings.js +130 -0
  1179. package/lib/rest/voice/v1/dialingPermissions.d.ts +25 -0
  1180. package/lib/rest/voice/v1/dialingPermissions.js +60 -0
  1181. package/lib/rest/voice/v1/ipRecord.d.ts +308 -0
  1182. package/lib/rest/voice/v1/ipRecord.js +256 -0
  1183. package/lib/rest/voice/v1/sourceIpMapping.d.ts +278 -0
  1184. package/lib/rest/voice/v1/sourceIpMapping.js +252 -0
  1185. package/lib/rest/wireless/V1.d.ts +30 -0
  1186. package/lib/rest/wireless/V1.js +49 -63
  1187. package/lib/rest/wireless/v1/command.d.ts +314 -0
  1188. package/lib/rest/wireless/v1/command.js +237 -583
  1189. package/lib/rest/wireless/v1/ratePlan.d.ts +382 -0
  1190. package/lib/rest/wireless/v1/ratePlan.js +278 -716
  1191. package/lib/rest/wireless/v1/sim/dataSession.d.ts +233 -0
  1192. package/lib/rest/wireless/v1/sim/dataSession.js +152 -0
  1193. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +186 -0
  1194. package/lib/rest/wireless/v1/sim/usageRecord.js +125 -402
  1195. package/lib/rest/wireless/v1/sim.d.ts +465 -0
  1196. package/lib/rest/wireless/v1/sim.js +316 -705
  1197. package/lib/rest/wireless/v1/usageRecord.d.ts +179 -0
  1198. package/lib/rest/wireless/v1/usageRecord.js +130 -0
  1199. package/lib/twiml/FaxResponse.d.ts +66 -0
  1200. package/lib/twiml/FaxResponse.js +66 -0
  1201. package/lib/twiml/MessagingResponse.d.ts +117 -0
  1202. package/lib/twiml/MessagingResponse.js +115 -74
  1203. package/lib/twiml/TwiML.d.ts +42 -0
  1204. package/lib/twiml/TwiML.js +83 -0
  1205. package/lib/twiml/VoiceResponse.d.ts +2448 -0
  1206. package/lib/twiml/VoiceResponse.js +1428 -363
  1207. package/lib/webhooks/webhooks.d.ts +136 -0
  1208. package/lib/webhooks/webhooks.js +253 -117
  1209. package/package.json +48 -22
  1210. package/CHANGES.md +0 -95
  1211. package/lib/rest/Fax.js +0 -54
  1212. package/lib/rest/api/v2010/account/availablePhoneNumber/local.js +0 -517
  1213. package/lib/rest/api/v2010/account/availablePhoneNumber/mobile.js +0 -517
  1214. package/lib/rest/api/v2010/account/availablePhoneNumber/tollFree.js +0 -517
  1215. package/lib/rest/api/v2010/account/availablePhoneNumber.js +0 -623
  1216. package/lib/rest/fax/V1.js +0 -46
  1217. package/lib/rest/fax/v1/fax/faxMedia.js +0 -574
  1218. package/lib/rest/fax/v1/fax.js +0 -789
  1219. package/lib/rest/notify/v1/service/segment.js +0 -397
  1220. package/lib/rest/notify/v1/service/user/segmentMemberships.js +0 -385
  1221. package/lib/rest/notify/v1/service/user/userBinding.js +0 -691
  1222. package/lib/rest/notify/v1/service/user.js +0 -717
  1223. package/lib/rest/preview/BulkExports.js +0 -59
  1224. package/lib/rest/preview/Proxy.js +0 -46
  1225. package/lib/rest/preview/bulk_exports/export/day.js +0 -393
  1226. package/lib/rest/preview/bulk_exports/export.js +0 -282
  1227. package/lib/rest/preview/bulk_exports/exportConfiguration.js +0 -337
  1228. package/lib/rest/preview/proxy/service/phoneNumber.js +0 -633
  1229. package/lib/rest/preview/proxy/service/session/interaction.js +0 -584
  1230. package/lib/rest/preview/proxy/service/session/participant/messageInteraction.js +0 -635
  1231. package/lib/rest/preview/proxy/service/session/participant.js +0 -807
  1232. package/lib/rest/preview/proxy/service/session.js +0 -815
  1233. package/lib/rest/preview/proxy/service/shortCode.js +0 -632
  1234. package/lib/rest/preview/proxy/service.js +0 -807
  1235. package/lib/rest/video/v1/room/recording.js +0 -558
@@ -1,1398 +1,546 @@
1
- 'use strict';
2
-
3
- /* jshint ignore:start */
4
- /**
1
+ "use strict";
2
+ /*
5
3
  * This code was generated by
6
- * \ / _ _ _| _ _
7
- * | (_)\/(_)(_|\/| |(/_ v1.0.0
8
- * / /
9
- */
10
- /* jshint ignore:end */
11
-
12
- var Q = require('q'); /* jshint ignore:line */
13
- var _ = require('lodash'); /* jshint ignore:line */
14
- var AddressList = require('./account/address').AddressList;
15
- var ApplicationList = require('./account/application').ApplicationList;
16
- var AuthorizedConnectAppList = require(
17
- './account/authorizedConnectApp').AuthorizedConnectAppList;
18
- var AvailablePhoneNumberCountryList = require(
19
- './account/availablePhoneNumber').AvailablePhoneNumberCountryList;
20
- var CallList = require('./account/call').CallList;
21
- var ConferenceList = require('./account/conference').ConferenceList;
22
- var ConnectAppList = require('./account/connectApp').ConnectAppList;
23
- var IncomingPhoneNumberList = require(
24
- './account/incomingPhoneNumber').IncomingPhoneNumberList;
25
- var KeyList = require('./account/key').KeyList;
26
- var MessageList = require('./account/message').MessageList;
27
- var NewKeyList = require('./account/newKey').NewKeyList;
28
- var NewSigningKeyList = require('./account/newSigningKey').NewSigningKeyList;
29
- var NotificationList = require('./account/notification').NotificationList;
30
- var OutgoingCallerIdList = require(
31
- './account/outgoingCallerId').OutgoingCallerIdList;
32
- var Page = require('../../../base/Page'); /* jshint ignore:line */
33
- var QueueList = require('./account/queue').QueueList;
34
- var RecordingList = require('./account/recording').RecordingList;
35
- var ShortCodeList = require('./account/shortCode').ShortCodeList;
36
- var SigningKeyList = require('./account/signingKey').SigningKeyList;
37
- var SipList = require('./account/sip').SipList;
38
- var TokenList = require('./account/token').TokenList;
39
- var TranscriptionList = require('./account/transcription').TranscriptionList;
40
- var UsageList = require('./account/usage').UsageList;
41
- var ValidationRequestList = require(
42
- './account/validationRequest').ValidationRequestList;
43
- var deserialize = require(
44
- '../../../base/deserialize'); /* jshint ignore:line */
45
- var values = require('../../../base/values'); /* jshint ignore:line */
46
-
47
- var AccountList;
48
- var AccountPage;
49
- var AccountInstance;
50
- var AccountContext;
51
-
52
- /* jshint ignore:start */
53
- /**
54
- * @constructor Twilio.Api.V2010.AccountList
55
- * @description Initialize the AccountList
56
- *
57
- * @param {Twilio.Api.V2010} version - Version of the resource
58
- */
59
- /* jshint ignore:end */
60
- AccountList = function AccountList(version) {
61
- /* jshint ignore:start */
62
- /**
63
- * @function accounts
64
- * @memberof Twilio.Api.V2010
65
- * @instance
66
- *
67
- * @param {string} sid - sid of instance
68
- *
69
- * @returns {Twilio.Api.V2010.AccountContext}
70
- */
71
- /* jshint ignore:end */
72
- function AccountListInstance(sid) {
73
- return AccountListInstance.get(sid);
74
- }
75
-
76
- AccountListInstance._version = version;
77
- // Path Solution
78
- AccountListInstance._solution = {};
79
- AccountListInstance._uri = _.template(
80
- '/Accounts.json' // jshint ignore:line
81
- )(AccountListInstance._solution);
82
- /* jshint ignore:start */
83
- /**
84
- * create a AccountInstance
85
- *
86
- * @function create
87
- * @memberof Twilio.Api.V2010.AccountList
88
- * @instance
89
- *
90
- * @param {object|function} opts - ...
91
- * @param {string} [opts.friendlyName] -
92
- * A human readable description of the account
93
- * @param {function} [callback] - Callback to handle processed record
94
- *
95
- * @returns {Promise} Resolves to processed AccountInstance
96
- */
97
- /* jshint ignore:end */
98
- AccountListInstance.create = function create(opts, callback) {
99
- if (_.isFunction(opts)) {
100
- callback = opts;
101
- opts = {};
102
- }
103
- opts = opts || {};
104
-
105
- var deferred = Q.defer();
106
- var data = values.of({
107
- 'FriendlyName': _.get(opts, 'friendlyName')
108
- });
109
-
110
- var promise = this._version.create({
111
- uri: this._uri,
112
- method: 'POST',
113
- data: data
114
- });
115
-
116
- promise = promise.then(function(payload) {
117
- deferred.resolve(new AccountInstance(
118
- this._version,
119
- payload,
120
- this._solution.sid
121
- ));
122
- }.bind(this));
123
-
124
- promise.catch(function(error) {
125
- deferred.reject(error);
126
- });
127
-
128
- if (_.isFunction(callback)) {
129
- deferred.promise.nodeify(callback);
130
- }
131
-
132
- return deferred.promise;
133
- };
134
-
135
- /* jshint ignore:start */
136
- /**
137
- * Streams AccountInstance records from the API.
138
- *
139
- * This operation lazily loads records as efficiently as possible until the limit
140
- * is reached.
141
- *
142
- * The results are passed into the callback function, so this operation is memory efficient.
143
- *
144
- * If a function is passed as the first argument, it will be used as the callback function.
145
- *
146
- * @function each
147
- * @memberof Twilio.Api.V2010.AccountList
148
- * @instance
149
- *
150
- * @param {object|function} opts - ...
151
- * @param {string} [opts.friendlyName] - FriendlyName to filter on
152
- * @param {account.status} [opts.status] - Status to filter on
153
- * @param {number} [opts.limit] -
154
- * Upper limit for the number of records to return.
155
- * each() guarantees never to return more than limit.
156
- * Default is no limit
157
- * @param {number} [opts.pageSize=50] -
158
- * Number of records to fetch per request,
159
- * when not set will use the default value of 50 records.
160
- * If no pageSize is defined but a limit is defined,
161
- * each() will attempt to read the limit with the most efficient
162
- * page size, i.e. min(limit, 1000)
163
- * @param {Function} [opts.callback] -
164
- * Function to process each record. If this and a positional
165
- * callback are passed, this one will be used
166
- * @param {Function} [opts.done] -
167
- * Function to be called upon completion of streaming
168
- * @param {Function} [callback] - Function to process each record
169
- */
170
- /* jshint ignore:end */
171
- AccountListInstance.each = function each(opts, callback) {
172
- opts = opts || {};
173
- if (_.isFunction(opts)) {
174
- opts = { callback: opts };
175
- } else if (_.isFunction(callback) && !_.isFunction(opts.callback)) {
176
- opts.callback = callback;
177
- }
178
-
179
- if (_.isUndefined(opts.callback)) {
180
- throw new Error('Callback function must be provided');
181
- }
182
-
183
- var done = false;
184
- var currentPage = 1;
185
- var currentResource = 0;
186
- var limits = this._version.readLimits({
187
- limit: opts.limit,
188
- pageSize: opts.pageSize
189
- });
190
-
191
- function onComplete(error) {
192
- done = true;
193
- if (_.isFunction(opts.done)) {
194
- opts.done(error);
195
- }
196
- }
197
-
198
- function fetchNextPage(fn) {
199
- var promise = fn();
200
- if (_.isUndefined(promise)) {
201
- onComplete();
202
- return;
203
- }
204
-
205
- promise.then(function(page) {
206
- _.each(page.instances, function(instance) {
207
- if (done || (!_.isUndefined(opts.limit) && currentResource >= opts.limit)) {
208
- done = true;
209
- return false;
210
- }
211
-
212
- currentResource++;
213
- opts.callback(instance, onComplete);
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Api
9
+ * This is the public Twilio REST API.
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator.
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.AccountPage = exports.AccountListInstance = exports.AccountInstance = exports.AccountContextImpl = void 0;
20
+ const util_1 = require("util");
21
+ const Page_1 = __importDefault(require("../../../base/Page"));
22
+ const deserialize = require("../../../base/deserialize");
23
+ const serialize = require("../../../base/serialize");
24
+ const utility_1 = require("../../../base/utility");
25
+ const address_1 = require("./account/address");
26
+ const application_1 = require("./account/application");
27
+ const authorizedConnectApp_1 = require("./account/authorizedConnectApp");
28
+ const availablePhoneNumberCountry_1 = require("./account/availablePhoneNumberCountry");
29
+ const balance_1 = require("./account/balance");
30
+ const call_1 = require("./account/call");
31
+ const conference_1 = require("./account/conference");
32
+ const connectApp_1 = require("./account/connectApp");
33
+ const incomingPhoneNumber_1 = require("./account/incomingPhoneNumber");
34
+ const key_1 = require("./account/key");
35
+ const message_1 = require("./account/message");
36
+ const newKey_1 = require("./account/newKey");
37
+ const newSigningKey_1 = require("./account/newSigningKey");
38
+ const notification_1 = require("./account/notification");
39
+ const outgoingCallerId_1 = require("./account/outgoingCallerId");
40
+ const queue_1 = require("./account/queue");
41
+ const recording_1 = require("./account/recording");
42
+ const shortCode_1 = require("./account/shortCode");
43
+ const signingKey_1 = require("./account/signingKey");
44
+ const sip_1 = require("./account/sip");
45
+ const token_1 = require("./account/token");
46
+ const transcription_1 = require("./account/transcription");
47
+ const usage_1 = require("./account/usage");
48
+ const validationRequest_1 = require("./account/validationRequest");
49
+ class AccountContextImpl {
50
+ constructor(_version, sid) {
51
+ this._version = _version;
52
+ if (!(0, utility_1.isValidPathParam)(sid)) {
53
+ throw new Error("Parameter 'sid' is not valid.");
54
+ }
55
+ this._solution = { sid };
56
+ this._uri = `/Accounts/${sid}.json`;
57
+ }
58
+ get addresses() {
59
+ this._addresses =
60
+ this._addresses || (0, address_1.AddressListInstance)(this._version, this._solution.sid);
61
+ return this._addresses;
62
+ }
63
+ get applications() {
64
+ this._applications =
65
+ this._applications ||
66
+ (0, application_1.ApplicationListInstance)(this._version, this._solution.sid);
67
+ return this._applications;
68
+ }
69
+ get authorizedConnectApps() {
70
+ this._authorizedConnectApps =
71
+ this._authorizedConnectApps ||
72
+ (0, authorizedConnectApp_1.AuthorizedConnectAppListInstance)(this._version, this._solution.sid);
73
+ return this._authorizedConnectApps;
74
+ }
75
+ get availablePhoneNumbers() {
76
+ this._availablePhoneNumbers =
77
+ this._availablePhoneNumbers ||
78
+ (0, availablePhoneNumberCountry_1.AvailablePhoneNumberCountryListInstance)(this._version, this._solution.sid);
79
+ return this._availablePhoneNumbers;
80
+ }
81
+ get balance() {
82
+ this._balance =
83
+ this._balance || (0, balance_1.BalanceListInstance)(this._version, this._solution.sid);
84
+ return this._balance;
85
+ }
86
+ get calls() {
87
+ this._calls =
88
+ this._calls || (0, call_1.CallListInstance)(this._version, this._solution.sid);
89
+ return this._calls;
90
+ }
91
+ get conferences() {
92
+ this._conferences =
93
+ this._conferences ||
94
+ (0, conference_1.ConferenceListInstance)(this._version, this._solution.sid);
95
+ return this._conferences;
96
+ }
97
+ get connectApps() {
98
+ this._connectApps =
99
+ this._connectApps ||
100
+ (0, connectApp_1.ConnectAppListInstance)(this._version, this._solution.sid);
101
+ return this._connectApps;
102
+ }
103
+ get incomingPhoneNumbers() {
104
+ this._incomingPhoneNumbers =
105
+ this._incomingPhoneNumbers ||
106
+ (0, incomingPhoneNumber_1.IncomingPhoneNumberListInstance)(this._version, this._solution.sid);
107
+ return this._incomingPhoneNumbers;
108
+ }
109
+ get keys() {
110
+ this._keys =
111
+ this._keys || (0, key_1.KeyListInstance)(this._version, this._solution.sid);
112
+ return this._keys;
113
+ }
114
+ get messages() {
115
+ this._messages =
116
+ this._messages || (0, message_1.MessageListInstance)(this._version, this._solution.sid);
117
+ return this._messages;
118
+ }
119
+ get newKeys() {
120
+ this._newKeys =
121
+ this._newKeys || (0, newKey_1.NewKeyListInstance)(this._version, this._solution.sid);
122
+ return this._newKeys;
123
+ }
124
+ get newSigningKeys() {
125
+ this._newSigningKeys =
126
+ this._newSigningKeys ||
127
+ (0, newSigningKey_1.NewSigningKeyListInstance)(this._version, this._solution.sid);
128
+ return this._newSigningKeys;
129
+ }
130
+ get notifications() {
131
+ this._notifications =
132
+ this._notifications ||
133
+ (0, notification_1.NotificationListInstance)(this._version, this._solution.sid);
134
+ return this._notifications;
135
+ }
136
+ get outgoingCallerIds() {
137
+ this._outgoingCallerIds =
138
+ this._outgoingCallerIds ||
139
+ (0, outgoingCallerId_1.OutgoingCallerIdListInstance)(this._version, this._solution.sid);
140
+ return this._outgoingCallerIds;
141
+ }
142
+ get queues() {
143
+ this._queues =
144
+ this._queues || (0, queue_1.QueueListInstance)(this._version, this._solution.sid);
145
+ return this._queues;
146
+ }
147
+ get recordings() {
148
+ this._recordings =
149
+ this._recordings ||
150
+ (0, recording_1.RecordingListInstance)(this._version, this._solution.sid);
151
+ return this._recordings;
152
+ }
153
+ get shortCodes() {
154
+ this._shortCodes =
155
+ this._shortCodes ||
156
+ (0, shortCode_1.ShortCodeListInstance)(this._version, this._solution.sid);
157
+ return this._shortCodes;
158
+ }
159
+ get signingKeys() {
160
+ this._signingKeys =
161
+ this._signingKeys ||
162
+ (0, signingKey_1.SigningKeyListInstance)(this._version, this._solution.sid);
163
+ return this._signingKeys;
164
+ }
165
+ get sip() {
166
+ this._sip = this._sip || (0, sip_1.SipListInstance)(this._version, this._solution.sid);
167
+ return this._sip;
168
+ }
169
+ get tokens() {
170
+ this._tokens =
171
+ this._tokens || (0, token_1.TokenListInstance)(this._version, this._solution.sid);
172
+ return this._tokens;
173
+ }
174
+ get transcriptions() {
175
+ this._transcriptions =
176
+ this._transcriptions ||
177
+ (0, transcription_1.TranscriptionListInstance)(this._version, this._solution.sid);
178
+ return this._transcriptions;
179
+ }
180
+ get usage() {
181
+ this._usage =
182
+ this._usage || (0, usage_1.UsageListInstance)(this._version, this._solution.sid);
183
+ return this._usage;
184
+ }
185
+ get validationRequests() {
186
+ this._validationRequests =
187
+ this._validationRequests ||
188
+ (0, validationRequest_1.ValidationRequestListInstance)(this._version, this._solution.sid);
189
+ return this._validationRequests;
190
+ }
191
+ fetch(callback) {
192
+ const instance = this;
193
+ let operationVersion = instance._version, operationPromise = operationVersion.fetch({
194
+ uri: instance._uri,
195
+ method: "get",
214
196
  });
215
-
216
- if ((limits.pageLimit && limits.pageLimit <= currentPage)) {
217
- onComplete();
218
- } else if (!done) {
219
- currentPage++;
220
- fetchNextPage(_.bind(page.nextPage, page));
197
+ operationPromise = operationPromise.then((payload) => new AccountInstance(operationVersion, payload, instance._solution.sid));
198
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
199
+ return operationPromise;
200
+ }
201
+ update(params, callback) {
202
+ if (params instanceof Function) {
203
+ callback = params;
204
+ params = {};
221
205
  }
222
- });
223
-
224
- promise.catch(onComplete);
225
- }
226
-
227
- fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
228
- };
229
-
230
- /* jshint ignore:start */
231
- /**
232
- * @description Lists AccountInstance records from the API as a list.
233
- *
234
- * If a function is passed as the first argument, it will be used as the callback function.
235
- *
236
- * @function list
237
- * @memberof Twilio.Api.V2010.AccountList
238
- * @instance
239
- *
240
- * @param {object|function} opts - ...
241
- * @param {string} [opts.friendlyName] - FriendlyName to filter on
242
- * @param {account.status} [opts.status] - Status to filter on
243
- * @param {number} [opts.limit] -
244
- * Upper limit for the number of records to return.
245
- * list() guarantees never to return more than limit.
246
- * Default is no limit
247
- * @param {number} [opts.pageSize] -
248
- * Number of records to fetch per request,
249
- * when not set will use the default value of 50 records.
250
- * If no page_size is defined but a limit is defined,
251
- * list() will attempt to read the limit with the most
252
- * efficient page size, i.e. min(limit, 1000)
253
- * @param {function} [callback] - Callback to handle list of records
254
- *
255
- * @returns {Promise} Resolves to a list of records
256
- */
257
- /* jshint ignore:end */
258
- AccountListInstance.list = function list(opts, callback) {
259
- if (_.isFunction(opts)) {
260
- callback = opts;
261
- opts = {};
206
+ else {
207
+ params = params || {};
208
+ }
209
+ let data = {};
210
+ if (params["friendlyName"] !== undefined)
211
+ data["FriendlyName"] = params["friendlyName"];
212
+ if (params["status"] !== undefined)
213
+ data["Status"] = params["status"];
214
+ const headers = {};
215
+ headers["Content-Type"] = "application/x-www-form-urlencoded";
216
+ const instance = this;
217
+ let operationVersion = instance._version, operationPromise = operationVersion.update({
218
+ uri: instance._uri,
219
+ method: "post",
220
+ data,
221
+ headers,
222
+ });
223
+ operationPromise = operationPromise.then((payload) => new AccountInstance(operationVersion, payload, instance._solution.sid));
224
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
225
+ return operationPromise;
226
+ }
227
+ /**
228
+ * Provide a user-friendly representation
229
+ *
230
+ * @returns Object
231
+ */
232
+ toJSON() {
233
+ return this._solution;
234
+ }
235
+ [util_1.inspect.custom](_depth, options) {
236
+ return (0, util_1.inspect)(this.toJSON(), options);
237
+ }
238
+ }
239
+ exports.AccountContextImpl = AccountContextImpl;
240
+ class AccountInstance {
241
+ constructor(_version, payload, sid) {
242
+ this._version = _version;
243
+ this.authToken = payload.auth_token;
244
+ this.dateCreated = deserialize.rfc2822DateTime(payload.date_created);
245
+ this.dateUpdated = deserialize.rfc2822DateTime(payload.date_updated);
246
+ this.friendlyName = payload.friendly_name;
247
+ this.ownerAccountSid = payload.owner_account_sid;
248
+ this.sid = payload.sid;
249
+ this.status = payload.status;
250
+ this.subresourceUris = payload.subresource_uris;
251
+ this.type = payload.type;
252
+ this.uri = payload.uri;
253
+ this._solution = { sid: sid || this.sid };
254
+ }
255
+ get _proxy() {
256
+ this._context =
257
+ this._context ||
258
+ new AccountContextImpl(this._version, this._solution.sid);
259
+ return this._context;
260
+ }
261
+ /**
262
+ * Fetch a AccountInstance
263
+ *
264
+ * @param callback - Callback to handle processed record
265
+ *
266
+ * @returns Resolves to processed AccountInstance
267
+ */
268
+ fetch(callback) {
269
+ return this._proxy.fetch(callback);
270
+ }
271
+ update(params, callback) {
272
+ return this._proxy.update(params, callback);
273
+ }
274
+ /**
275
+ * Access the addresses.
276
+ */
277
+ addresses() {
278
+ return this._proxy.addresses;
279
+ }
280
+ /**
281
+ * Access the applications.
282
+ */
283
+ applications() {
284
+ return this._proxy.applications;
285
+ }
286
+ /**
287
+ * Access the authorizedConnectApps.
288
+ */
289
+ authorizedConnectApps() {
290
+ return this._proxy.authorizedConnectApps;
262
291
  }
263
- opts = opts || {};
264
- var deferred = Q.defer();
265
- var allResources = [];
266
- opts.callback = function(resource, done) {
267
- allResources.push(resource);
268
-
269
- if (!_.isUndefined(opts.limit) && allResources.length === opts.limit) {
270
- done();
271
- }
292
+ /**
293
+ * Access the availablePhoneNumbers.
294
+ */
295
+ availablePhoneNumbers() {
296
+ return this._proxy.availablePhoneNumbers;
297
+ }
298
+ /**
299
+ * Access the balance.
300
+ */
301
+ balance() {
302
+ return this._proxy.balance;
303
+ }
304
+ /**
305
+ * Access the calls.
306
+ */
307
+ calls() {
308
+ return this._proxy.calls;
309
+ }
310
+ /**
311
+ * Access the conferences.
312
+ */
313
+ conferences() {
314
+ return this._proxy.conferences;
315
+ }
316
+ /**
317
+ * Access the connectApps.
318
+ */
319
+ connectApps() {
320
+ return this._proxy.connectApps;
321
+ }
322
+ /**
323
+ * Access the incomingPhoneNumbers.
324
+ */
325
+ incomingPhoneNumbers() {
326
+ return this._proxy.incomingPhoneNumbers;
327
+ }
328
+ /**
329
+ * Access the keys.
330
+ */
331
+ keys() {
332
+ return this._proxy.keys;
333
+ }
334
+ /**
335
+ * Access the messages.
336
+ */
337
+ messages() {
338
+ return this._proxy.messages;
339
+ }
340
+ /**
341
+ * Access the newKeys.
342
+ */
343
+ newKeys() {
344
+ return this._proxy.newKeys;
345
+ }
346
+ /**
347
+ * Access the newSigningKeys.
348
+ */
349
+ newSigningKeys() {
350
+ return this._proxy.newSigningKeys;
351
+ }
352
+ /**
353
+ * Access the notifications.
354
+ */
355
+ notifications() {
356
+ return this._proxy.notifications;
357
+ }
358
+ /**
359
+ * Access the outgoingCallerIds.
360
+ */
361
+ outgoingCallerIds() {
362
+ return this._proxy.outgoingCallerIds;
363
+ }
364
+ /**
365
+ * Access the queues.
366
+ */
367
+ queues() {
368
+ return this._proxy.queues;
369
+ }
370
+ /**
371
+ * Access the recordings.
372
+ */
373
+ recordings() {
374
+ return this._proxy.recordings;
375
+ }
376
+ /**
377
+ * Access the shortCodes.
378
+ */
379
+ shortCodes() {
380
+ return this._proxy.shortCodes;
381
+ }
382
+ /**
383
+ * Access the signingKeys.
384
+ */
385
+ signingKeys() {
386
+ return this._proxy.signingKeys;
387
+ }
388
+ /**
389
+ * Access the sip.
390
+ */
391
+ sip() {
392
+ return this._proxy.sip;
393
+ }
394
+ /**
395
+ * Access the tokens.
396
+ */
397
+ tokens() {
398
+ return this._proxy.tokens;
399
+ }
400
+ /**
401
+ * Access the transcriptions.
402
+ */
403
+ transcriptions() {
404
+ return this._proxy.transcriptions;
405
+ }
406
+ /**
407
+ * Access the usage.
408
+ */
409
+ usage() {
410
+ return this._proxy.usage;
411
+ }
412
+ /**
413
+ * Access the validationRequests.
414
+ */
415
+ validationRequests() {
416
+ return this._proxy.validationRequests;
417
+ }
418
+ /**
419
+ * Provide a user-friendly representation
420
+ *
421
+ * @returns Object
422
+ */
423
+ toJSON() {
424
+ return {
425
+ authToken: this.authToken,
426
+ dateCreated: this.dateCreated,
427
+ dateUpdated: this.dateUpdated,
428
+ friendlyName: this.friendlyName,
429
+ ownerAccountSid: this.ownerAccountSid,
430
+ sid: this.sid,
431
+ status: this.status,
432
+ subresourceUris: this.subresourceUris,
433
+ type: this.type,
434
+ uri: this.uri,
435
+ };
436
+ }
437
+ [util_1.inspect.custom](_depth, options) {
438
+ return (0, util_1.inspect)(this.toJSON(), options);
439
+ }
440
+ }
441
+ exports.AccountInstance = AccountInstance;
442
+ function AccountListInstance(version) {
443
+ const instance = ((sid) => instance.get(sid));
444
+ instance.get = function get(sid) {
445
+ return new AccountContextImpl(version, sid);
272
446
  };
273
-
274
- opts.done = function(error) {
275
- if (_.isUndefined(error)) {
276
- deferred.resolve(allResources);
277
- } else {
278
- deferred.reject(error);
279
- }
447
+ instance._version = version;
448
+ instance._solution = {};
449
+ instance._uri = `/Accounts.json`;
450
+ instance.create = function create(params, callback) {
451
+ if (params instanceof Function) {
452
+ callback = params;
453
+ params = {};
454
+ }
455
+ else {
456
+ params = params || {};
457
+ }
458
+ let data = {};
459
+ if (params["friendlyName"] !== undefined)
460
+ data["FriendlyName"] = params["friendlyName"];
461
+ const headers = {};
462
+ headers["Content-Type"] = "application/x-www-form-urlencoded";
463
+ let operationVersion = version, operationPromise = operationVersion.create({
464
+ uri: instance._uri,
465
+ method: "post",
466
+ data,
467
+ headers,
468
+ });
469
+ operationPromise = operationPromise.then((payload) => new AccountInstance(operationVersion, payload));
470
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
471
+ return operationPromise;
280
472
  };
281
-
282
- if (_.isFunction(callback)) {
283
- deferred.promise.nodeify(callback);
284
- }
285
-
286
- this.each(opts);
287
- return deferred.promise;
288
- };
289
-
290
- /* jshint ignore:start */
291
- /**
292
- * Retrieve a single page of AccountInstance records from the API.
293
- * Request is executed immediately
294
- *
295
- * If a function is passed as the first argument, it will be used as the callback function.
296
- *
297
- * @function page
298
- * @memberof Twilio.Api.V2010.AccountList
299
- * @instance
300
- *
301
- * @param {object|function} opts - ...
302
- * @param {string} [opts.friendlyName] - FriendlyName to filter on
303
- * @param {account.status} [opts.status] - Status to filter on
304
- * @param {string} [opts.pageToken] - PageToken provided by the API
305
- * @param {number} [opts.pageNumber] -
306
- * Page Number, this value is simply for client state
307
- * @param {number} [opts.pageSize] - Number of records to return, defaults to 50
308
- * @param {function} [callback] - Callback to handle list of records
309
- *
310
- * @returns {Promise} Resolves to a list of records
311
- */
312
- /* jshint ignore:end */
313
- AccountListInstance.page = function page(opts, callback) {
314
- if (_.isFunction(opts)) {
315
- callback = opts;
316
- opts = {};
317
- }
318
- opts = opts || {};
319
-
320
- var deferred = Q.defer();
321
- var data = values.of({
322
- 'FriendlyName': _.get(opts, 'friendlyName'),
323
- 'Status': _.get(opts, 'status'),
324
- 'PageToken': opts.pageToken,
325
- 'Page': opts.pageNumber,
326
- 'PageSize': opts.pageSize
327
- });
328
-
329
- var promise = this._version.page({
330
- uri: this._uri,
331
- method: 'GET',
332
- params: data
333
- });
334
-
335
- promise = promise.then(function(payload) {
336
- deferred.resolve(new AccountPage(
337
- this._version,
338
- payload,
339
- this._solution
340
- ));
341
- }.bind(this));
342
-
343
- promise.catch(function(error) {
344
- deferred.reject(error);
345
- });
346
-
347
- if (_.isFunction(callback)) {
348
- deferred.promise.nodeify(callback);
349
- }
350
-
351
- return deferred.promise;
352
- };
353
-
354
- /* jshint ignore:start */
355
- /**
356
- * Retrieve a single target page of AccountInstance records from the API.
357
- * Request is executed immediately
358
- *
359
- * If a function is passed as the first argument, it will be used as the callback function.
360
- *
361
- * @function getPage
362
- * @memberof Twilio.Api.V2010.AccountList
363
- * @instance
364
- *
365
- * @param {string} [opts.friendlyName] - FriendlyName to filter on
366
- * @param {account.status} [opts.status] - Status to filter on
367
- * @param {string} [targetUrl] - API-generated URL for the requested results page
368
- * @param {function} [callback] - Callback to handle list of records
369
- *
370
- * @returns {Promise} Resolves to a list of records
371
- */
372
- /* jshint ignore:end */
373
- AccountListInstance.getPage = function getPage(targetUrl, callback) {
374
- var deferred = Q.defer();
375
-
376
- var promise = this._version._domain.twilio.request({
377
- method: 'GET',
378
- uri: targetUrl
379
- });
380
-
381
- promise = promise.then(function(payload) {
382
- deferred.resolve(new AccountPage(
383
- this._version,
384
- payload,
385
- this._solution
386
- ));
387
- }.bind(this));
388
-
389
- promise.catch(function(error) {
390
- deferred.reject(error);
391
- });
392
-
393
- if (_.isFunction(callback)) {
394
- deferred.promise.nodeify(callback);
395
- }
396
-
397
- return deferred.promise;
398
- };
399
-
400
- /* jshint ignore:start */
401
- /**
402
- * Constructs a account
403
- *
404
- * @function get
405
- * @memberof Twilio.Api.V2010.AccountList
406
- * @instance
407
- *
408
- * @param {string} sid - Fetch by unique Account Sid
409
- *
410
- * @returns {Twilio.Api.V2010.AccountContext}
411
- */
412
- /* jshint ignore:end */
413
- AccountListInstance.get = function get(sid) {
414
- return new AccountContext(
415
- this._version,
416
- sid
417
- );
418
- };
419
-
420
- return AccountListInstance;
421
- };
422
-
423
-
424
- /* jshint ignore:start */
425
- /**
426
- * @constructor Twilio.Api.V2010.AccountPage
427
- * @augments Page
428
- * @description Initialize the AccountPage
429
- *
430
- * @param {Twilio.Api.V2010} version - Version of the resource
431
- * @param {object} response - Response from the API
432
- * @param {object} solution - Path solution
433
- *
434
- * @returns AccountPage
435
- */
436
- /* jshint ignore:end */
437
- AccountPage = function AccountPage(version, response, solution) {
438
- // Path Solution
439
- this._solution = solution;
440
-
441
- Page.prototype.constructor.call(this, version, response, this._solution);
442
- };
443
-
444
- _.extend(AccountPage.prototype, Page.prototype);
445
- AccountPage.prototype.constructor = AccountPage;
446
-
447
- /* jshint ignore:start */
448
- /**
449
- * Build an instance of AccountInstance
450
- *
451
- * @function getInstance
452
- * @memberof Twilio.Api.V2010.AccountPage
453
- * @instance
454
- *
455
- * @param {object} payload - Payload response from the API
456
- *
457
- * @returns AccountInstance
458
- */
459
- /* jshint ignore:end */
460
- AccountPage.prototype.getInstance = function getInstance(payload) {
461
- return new AccountInstance(
462
- this._version,
463
- payload
464
- );
465
- };
466
-
467
-
468
- /* jshint ignore:start */
469
- /**
470
- * @constructor Twilio.Api.V2010.AccountInstance
471
- * @description Initialize the AccountContext
472
- *
473
- * @property {string} authToken - The authorization token for this account
474
- * @property {Date} dateCreated - The date this account was created
475
- * @property {Date} dateUpdated - The date this account was last updated
476
- * @property {string} friendlyName - A human readable description of this account
477
- * @property {string} ownerAccountSid -
478
- * The unique 34 character id representing the parent of this account
479
- * @property {string} sid -
480
- * A 34 character string that uniquely identifies this resource.
481
- * @property {account.status} status - The status of this account
482
- * @property {string} subresourceUris - Account Instance Subresources
483
- * @property {account.type} type - The type of this account
484
- * @property {string} uri -
485
- * The URI for this resource, relative to `https://api.twilio.com`
486
- *
487
- * @param {Twilio.Api.V2010} version - Version of the resource
488
- * @param {object} payload - The instance payload
489
- * @param {sid} sid - Fetch by unique Account Sid
490
- */
491
- /* jshint ignore:end */
492
- AccountInstance = function AccountInstance(version, payload, sid) {
493
- this._version = version;
494
-
495
- // Marshaled Properties
496
- this.authToken = payload.auth_token; // jshint ignore:line
497
- this.dateCreated = deserialize.rfc2822DateTime(payload.date_created); // jshint ignore:line
498
- this.dateUpdated = deserialize.rfc2822DateTime(payload.date_updated); // jshint ignore:line
499
- this.friendlyName = payload.friendly_name; // jshint ignore:line
500
- this.ownerAccountSid = payload.owner_account_sid; // jshint ignore:line
501
- this.sid = payload.sid; // jshint ignore:line
502
- this.status = payload.status; // jshint ignore:line
503
- this.subresourceUris = payload.subresource_uris; // jshint ignore:line
504
- this.type = payload.type; // jshint ignore:line
505
- this.uri = payload.uri; // jshint ignore:line
506
-
507
- // Context
508
- this._context = undefined;
509
- this._solution = {
510
- sid: sid || this.sid,
511
- };
512
- };
513
-
514
- Object.defineProperty(AccountInstance.prototype,
515
- '_proxy', {
516
- get: function() {
517
- if (!this._context) {
518
- this._context = new AccountContext(
519
- this._version,
520
- this._solution.sid
521
- );
522
- }
523
-
524
- return this._context;
525
- }
526
- });
527
-
528
- /* jshint ignore:start */
529
- /**
530
- * fetch a AccountInstance
531
- *
532
- * @function fetch
533
- * @memberof Twilio.Api.V2010.AccountInstance
534
- * @instance
535
- *
536
- * @param {function} [callback] - Callback to handle processed record
537
- *
538
- * @returns {Promise} Resolves to processed AccountInstance
539
- */
540
- /* jshint ignore:end */
541
- AccountInstance.prototype.fetch = function fetch(callback) {
542
- return this._proxy.fetch(callback);
543
- };
544
-
545
- /* jshint ignore:start */
546
- /**
547
- * update a AccountInstance
548
- *
549
- * @function update
550
- * @memberof Twilio.Api.V2010.AccountInstance
551
- * @instance
552
- *
553
- * @param {object|function} opts - ...
554
- * @param {string} [opts.friendlyName] - FriendlyName to update
555
- * @param {account.status} [opts.status] - Status to update the Account with
556
- * @param {function} [callback] - Callback to handle processed record
557
- *
558
- * @returns {Promise} Resolves to processed AccountInstance
559
- */
560
- /* jshint ignore:end */
561
- AccountInstance.prototype.update = function update(opts, callback) {
562
- return this._proxy.update(opts, callback);
563
- };
564
-
565
- /* jshint ignore:start */
566
- /**
567
- * Access the addresses
568
- *
569
- * @function addresses
570
- * @memberof Twilio.Api.V2010.AccountInstance
571
- * @instance
572
- *
573
- * @returns {Twilio.Api.V2010.AccountContext.AddressList}
574
- */
575
- /* jshint ignore:end */
576
- AccountInstance.prototype.addresses = function addresses() {
577
- return this._proxy.addresses;
578
- };
579
-
580
- /* jshint ignore:start */
581
- /**
582
- * Access the applications
583
- *
584
- * @function applications
585
- * @memberof Twilio.Api.V2010.AccountInstance
586
- * @instance
587
- *
588
- * @returns {Twilio.Api.V2010.AccountContext.ApplicationList}
589
- */
590
- /* jshint ignore:end */
591
- AccountInstance.prototype.applications = function applications() {
592
- return this._proxy.applications;
593
- };
594
-
595
- /* jshint ignore:start */
596
- /**
597
- * Access the authorizedConnectApps
598
- *
599
- * @function authorizedConnectApps
600
- * @memberof Twilio.Api.V2010.AccountInstance
601
- * @instance
602
- *
603
- * @returns {Twilio.Api.V2010.AccountContext.AuthorizedConnectAppList}
604
- */
605
- /* jshint ignore:end */
606
- AccountInstance.prototype.authorizedConnectApps = function
607
- authorizedConnectApps() {
608
- return this._proxy.authorizedConnectApps;
609
- };
610
-
611
- /* jshint ignore:start */
612
- /**
613
- * Access the availablePhoneNumbers
614
- *
615
- * @function availablePhoneNumbers
616
- * @memberof Twilio.Api.V2010.AccountInstance
617
- * @instance
618
- *
619
- * @returns {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryList}
620
- */
621
- /* jshint ignore:end */
622
- AccountInstance.prototype.availablePhoneNumbers = function
623
- availablePhoneNumbers() {
624
- return this._proxy.availablePhoneNumbers;
625
- };
626
-
627
- /* jshint ignore:start */
628
- /**
629
- * Access the calls
630
- *
631
- * @function calls
632
- * @memberof Twilio.Api.V2010.AccountInstance
633
- * @instance
634
- *
635
- * @returns {Twilio.Api.V2010.AccountContext.CallList}
636
- */
637
- /* jshint ignore:end */
638
- AccountInstance.prototype.calls = function calls() {
639
- return this._proxy.calls;
640
- };
641
-
642
- /* jshint ignore:start */
643
- /**
644
- * Access the conferences
645
- *
646
- * @function conferences
647
- * @memberof Twilio.Api.V2010.AccountInstance
648
- * @instance
649
- *
650
- * @returns {Twilio.Api.V2010.AccountContext.ConferenceList}
651
- */
652
- /* jshint ignore:end */
653
- AccountInstance.prototype.conferences = function conferences() {
654
- return this._proxy.conferences;
655
- };
656
-
657
- /* jshint ignore:start */
658
- /**
659
- * Access the connectApps
660
- *
661
- * @function connectApps
662
- * @memberof Twilio.Api.V2010.AccountInstance
663
- * @instance
664
- *
665
- * @returns {Twilio.Api.V2010.AccountContext.ConnectAppList}
666
- */
667
- /* jshint ignore:end */
668
- AccountInstance.prototype.connectApps = function connectApps() {
669
- return this._proxy.connectApps;
670
- };
671
-
672
- /* jshint ignore:start */
673
- /**
674
- * Access the incomingPhoneNumbers
675
- *
676
- * @function incomingPhoneNumbers
677
- * @memberof Twilio.Api.V2010.AccountInstance
678
- * @instance
679
- *
680
- * @returns {Twilio.Api.V2010.AccountContext.IncomingPhoneNumberList}
681
- */
682
- /* jshint ignore:end */
683
- AccountInstance.prototype.incomingPhoneNumbers = function incomingPhoneNumbers()
684
- {
685
- return this._proxy.incomingPhoneNumbers;
686
- };
687
-
688
- /* jshint ignore:start */
689
- /**
690
- * Access the keys
691
- *
692
- * @function keys
693
- * @memberof Twilio.Api.V2010.AccountInstance
694
- * @instance
695
- *
696
- * @returns {Twilio.Api.V2010.AccountContext.KeyList}
697
- */
698
- /* jshint ignore:end */
699
- AccountInstance.prototype.keys = function keys() {
700
- return this._proxy.keys;
701
- };
702
-
703
- /* jshint ignore:start */
704
- /**
705
- * Access the messages
706
- *
707
- * @function messages
708
- * @memberof Twilio.Api.V2010.AccountInstance
709
- * @instance
710
- *
711
- * @returns {Twilio.Api.V2010.AccountContext.MessageList}
712
- */
713
- /* jshint ignore:end */
714
- AccountInstance.prototype.messages = function messages() {
715
- return this._proxy.messages;
716
- };
717
-
718
- /* jshint ignore:start */
719
- /**
720
- * Access the newKeys
721
- *
722
- * @function newKeys
723
- * @memberof Twilio.Api.V2010.AccountInstance
724
- * @instance
725
- *
726
- * @returns {Twilio.Api.V2010.AccountContext.NewKeyList}
727
- */
728
- /* jshint ignore:end */
729
- AccountInstance.prototype.newKeys = function newKeys() {
730
- return this._proxy.newKeys;
731
- };
732
-
733
- /* jshint ignore:start */
734
- /**
735
- * Access the newSigningKeys
736
- *
737
- * @function newSigningKeys
738
- * @memberof Twilio.Api.V2010.AccountInstance
739
- * @instance
740
- *
741
- * @returns {Twilio.Api.V2010.AccountContext.NewSigningKeyList}
742
- */
743
- /* jshint ignore:end */
744
- AccountInstance.prototype.newSigningKeys = function newSigningKeys() {
745
- return this._proxy.newSigningKeys;
746
- };
747
-
748
- /* jshint ignore:start */
749
- /**
750
- * Access the notifications
751
- *
752
- * @function notifications
753
- * @memberof Twilio.Api.V2010.AccountInstance
754
- * @instance
755
- *
756
- * @returns {Twilio.Api.V2010.AccountContext.NotificationList}
757
- */
758
- /* jshint ignore:end */
759
- AccountInstance.prototype.notifications = function notifications() {
760
- return this._proxy.notifications;
761
- };
762
-
763
- /* jshint ignore:start */
764
- /**
765
- * Access the outgoingCallerIds
766
- *
767
- * @function outgoingCallerIds
768
- * @memberof Twilio.Api.V2010.AccountInstance
769
- * @instance
770
- *
771
- * @returns {Twilio.Api.V2010.AccountContext.OutgoingCallerIdList}
772
- */
773
- /* jshint ignore:end */
774
- AccountInstance.prototype.outgoingCallerIds = function outgoingCallerIds() {
775
- return this._proxy.outgoingCallerIds;
776
- };
777
-
778
- /* jshint ignore:start */
779
- /**
780
- * Access the queues
781
- *
782
- * @function queues
783
- * @memberof Twilio.Api.V2010.AccountInstance
784
- * @instance
785
- *
786
- * @returns {Twilio.Api.V2010.AccountContext.QueueList}
787
- */
788
- /* jshint ignore:end */
789
- AccountInstance.prototype.queues = function queues() {
790
- return this._proxy.queues;
791
- };
792
-
793
- /* jshint ignore:start */
794
- /**
795
- * Access the recordings
796
- *
797
- * @function recordings
798
- * @memberof Twilio.Api.V2010.AccountInstance
799
- * @instance
800
- *
801
- * @returns {Twilio.Api.V2010.AccountContext.RecordingList}
802
- */
803
- /* jshint ignore:end */
804
- AccountInstance.prototype.recordings = function recordings() {
805
- return this._proxy.recordings;
806
- };
807
-
808
- /* jshint ignore:start */
809
- /**
810
- * Access the signingKeys
811
- *
812
- * @function signingKeys
813
- * @memberof Twilio.Api.V2010.AccountInstance
814
- * @instance
815
- *
816
- * @returns {Twilio.Api.V2010.AccountContext.SigningKeyList}
817
- */
818
- /* jshint ignore:end */
819
- AccountInstance.prototype.signingKeys = function signingKeys() {
820
- return this._proxy.signingKeys;
821
- };
822
-
823
- /* jshint ignore:start */
824
- /**
825
- * Access the sip
826
- *
827
- * @function sip
828
- * @memberof Twilio.Api.V2010.AccountInstance
829
- * @instance
830
- *
831
- * @returns {Twilio.Api.V2010.AccountContext.SipList}
832
- */
833
- /* jshint ignore:end */
834
- AccountInstance.prototype.sip = function sip() {
835
- return this._proxy.sip;
836
- };
837
-
838
- /* jshint ignore:start */
839
- /**
840
- * Access the shortCodes
841
- *
842
- * @function shortCodes
843
- * @memberof Twilio.Api.V2010.AccountInstance
844
- * @instance
845
- *
846
- * @returns {Twilio.Api.V2010.AccountContext.ShortCodeList}
847
- */
848
- /* jshint ignore:end */
849
- AccountInstance.prototype.shortCodes = function shortCodes() {
850
- return this._proxy.shortCodes;
851
- };
852
-
853
- /* jshint ignore:start */
854
- /**
855
- * Access the tokens
856
- *
857
- * @function tokens
858
- * @memberof Twilio.Api.V2010.AccountInstance
859
- * @instance
860
- *
861
- * @returns {Twilio.Api.V2010.AccountContext.TokenList}
862
- */
863
- /* jshint ignore:end */
864
- AccountInstance.prototype.tokens = function tokens() {
865
- return this._proxy.tokens;
866
- };
867
-
868
- /* jshint ignore:start */
869
- /**
870
- * Access the transcriptions
871
- *
872
- * @function transcriptions
873
- * @memberof Twilio.Api.V2010.AccountInstance
874
- * @instance
875
- *
876
- * @returns {Twilio.Api.V2010.AccountContext.TranscriptionList}
877
- */
878
- /* jshint ignore:end */
879
- AccountInstance.prototype.transcriptions = function transcriptions() {
880
- return this._proxy.transcriptions;
881
- };
882
-
883
- /* jshint ignore:start */
884
- /**
885
- * Access the usage
886
- *
887
- * @function usage
888
- * @memberof Twilio.Api.V2010.AccountInstance
889
- * @instance
890
- *
891
- * @returns {Twilio.Api.V2010.AccountContext.UsageList}
892
- */
893
- /* jshint ignore:end */
894
- AccountInstance.prototype.usage = function usage() {
895
- return this._proxy.usage;
896
- };
897
-
898
- /* jshint ignore:start */
899
- /**
900
- * Access the validationRequests
901
- *
902
- * @function validationRequests
903
- * @memberof Twilio.Api.V2010.AccountInstance
904
- * @instance
905
- *
906
- * @returns {Twilio.Api.V2010.AccountContext.ValidationRequestList}
907
- */
908
- /* jshint ignore:end */
909
- AccountInstance.prototype.validationRequests = function validationRequests() {
910
- return this._proxy.validationRequests;
911
- };
912
-
913
-
914
- /* jshint ignore:start */
915
- /**
916
- * @constructor Twilio.Api.V2010.AccountContext
917
- * @description Initialize the AccountContext
918
- *
919
- * @property {Twilio.Api.V2010.AccountContext.AddressList} addresses -
920
- * addresses resource
921
- * @property {Twilio.Api.V2010.AccountContext.ApplicationList} applications -
922
- * applications resource
923
- * @property {Twilio.Api.V2010.AccountContext.AuthorizedConnectAppList} authorizedConnectApps -
924
- * authorizedConnectApps resource
925
- * @property {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryList} availablePhoneNumbers -
926
- * availablePhoneNumbers resource
927
- * @property {Twilio.Api.V2010.AccountContext.CallList} calls - calls resource
928
- * @property {Twilio.Api.V2010.AccountContext.ConferenceList} conferences -
929
- * conferences resource
930
- * @property {Twilio.Api.V2010.AccountContext.ConnectAppList} connectApps -
931
- * connectApps resource
932
- * @property {Twilio.Api.V2010.AccountContext.IncomingPhoneNumberList} incomingPhoneNumbers -
933
- * incomingPhoneNumbers resource
934
- * @property {Twilio.Api.V2010.AccountContext.KeyList} keys - keys resource
935
- * @property {Twilio.Api.V2010.AccountContext.MessageList} messages -
936
- * messages resource
937
- * @property {Twilio.Api.V2010.AccountContext.NewKeyList} newKeys -
938
- * newKeys resource
939
- * @property {Twilio.Api.V2010.AccountContext.NewSigningKeyList} newSigningKeys -
940
- * newSigningKeys resource
941
- * @property {Twilio.Api.V2010.AccountContext.NotificationList} notifications -
942
- * notifications resource
943
- * @property {Twilio.Api.V2010.AccountContext.OutgoingCallerIdList} outgoingCallerIds -
944
- * outgoingCallerIds resource
945
- * @property {Twilio.Api.V2010.AccountContext.QueueList} queues - queues resource
946
- * @property {Twilio.Api.V2010.AccountContext.RecordingList} recordings -
947
- * recordings resource
948
- * @property {Twilio.Api.V2010.AccountContext.SigningKeyList} signingKeys -
949
- * signingKeys resource
950
- * @property {Twilio.Api.V2010.AccountContext.SipList} sip - sip resource
951
- * @property {Twilio.Api.V2010.AccountContext.ShortCodeList} shortCodes -
952
- * shortCodes resource
953
- * @property {Twilio.Api.V2010.AccountContext.TokenList} tokens - tokens resource
954
- * @property {Twilio.Api.V2010.AccountContext.TranscriptionList} transcriptions -
955
- * transcriptions resource
956
- * @property {Twilio.Api.V2010.AccountContext.UsageList} usage - usage resource
957
- * @property {Twilio.Api.V2010.AccountContext.ValidationRequestList} validationRequests -
958
- * validationRequests resource
959
- *
960
- * @param {Twilio.Api.V2010} version - Version of the resource
961
- * @param {sid} sid - Fetch by unique Account Sid
962
- */
963
- /* jshint ignore:end */
964
- AccountContext = function AccountContext(version, sid) {
965
- this._version = version;
966
-
967
- // Path Solution
968
- this._solution = {
969
- sid: sid,
970
- };
971
- this._uri = _.template(
972
- '/Accounts/<%= sid %>.json' // jshint ignore:line
973
- )(this._solution);
974
-
975
- // Dependents
976
- this._addresses = undefined;
977
- this._applications = undefined;
978
- this._authorizedConnectApps = undefined;
979
- this._availablePhoneNumbers = undefined;
980
- this._calls = undefined;
981
- this._conferences = undefined;
982
- this._connectApps = undefined;
983
- this._incomingPhoneNumbers = undefined;
984
- this._keys = undefined;
985
- this._messages = undefined;
986
- this._newKeys = undefined;
987
- this._newSigningKeys = undefined;
988
- this._notifications = undefined;
989
- this._outgoingCallerIds = undefined;
990
- this._queues = undefined;
991
- this._recordings = undefined;
992
- this._signingKeys = undefined;
993
- this._sip = undefined;
994
- this._shortCodes = undefined;
995
- this._tokens = undefined;
996
- this._transcriptions = undefined;
997
- this._usage = undefined;
998
- this._validationRequests = undefined;
999
- };
1000
-
1001
- /* jshint ignore:start */
1002
- /**
1003
- * fetch a AccountInstance
1004
- *
1005
- * @function fetch
1006
- * @memberof Twilio.Api.V2010.AccountContext
1007
- * @instance
1008
- *
1009
- * @param {function} [callback] - Callback to handle processed record
1010
- *
1011
- * @returns {Promise} Resolves to processed AccountInstance
1012
- */
1013
- /* jshint ignore:end */
1014
- AccountContext.prototype.fetch = function fetch(callback) {
1015
- var deferred = Q.defer();
1016
- var promise = this._version.fetch({
1017
- uri: this._uri,
1018
- method: 'GET'
1019
- });
1020
-
1021
- promise = promise.then(function(payload) {
1022
- deferred.resolve(new AccountInstance(
1023
- this._version,
1024
- payload,
1025
- this._solution.sid
1026
- ));
1027
- }.bind(this));
1028
-
1029
- promise.catch(function(error) {
1030
- deferred.reject(error);
1031
- });
1032
-
1033
- if (_.isFunction(callback)) {
1034
- deferred.promise.nodeify(callback);
1035
- }
1036
-
1037
- return deferred.promise;
1038
- };
1039
-
1040
- /* jshint ignore:start */
1041
- /**
1042
- * update a AccountInstance
1043
- *
1044
- * @function update
1045
- * @memberof Twilio.Api.V2010.AccountContext
1046
- * @instance
1047
- *
1048
- * @param {object|function} opts - ...
1049
- * @param {string} [opts.friendlyName] - FriendlyName to update
1050
- * @param {account.status} [opts.status] - Status to update the Account with
1051
- * @param {function} [callback] - Callback to handle processed record
1052
- *
1053
- * @returns {Promise} Resolves to processed AccountInstance
1054
- */
1055
- /* jshint ignore:end */
1056
- AccountContext.prototype.update = function update(opts, callback) {
1057
- if (_.isFunction(opts)) {
1058
- callback = opts;
1059
- opts = {};
1060
- }
1061
- opts = opts || {};
1062
-
1063
- var deferred = Q.defer();
1064
- var data = values.of({
1065
- 'FriendlyName': _.get(opts, 'friendlyName'),
1066
- 'Status': _.get(opts, 'status')
1067
- });
1068
-
1069
- var promise = this._version.update({
1070
- uri: this._uri,
1071
- method: 'POST',
1072
- data: data
1073
- });
1074
-
1075
- promise = promise.then(function(payload) {
1076
- deferred.resolve(new AccountInstance(
1077
- this._version,
1078
- payload,
1079
- this._solution.sid
1080
- ));
1081
- }.bind(this));
1082
-
1083
- promise.catch(function(error) {
1084
- deferred.reject(error);
1085
- });
1086
-
1087
- if (_.isFunction(callback)) {
1088
- deferred.promise.nodeify(callback);
1089
- }
1090
-
1091
- return deferred.promise;
1092
- };
1093
-
1094
- Object.defineProperty(AccountContext.prototype,
1095
- 'addresses', {
1096
- get: function() {
1097
- if (!this._addresses) {
1098
- this._addresses = new AddressList(
1099
- this._version,
1100
- this._solution.sid
1101
- );
1102
- }
1103
- return this._addresses;
1104
- }
1105
- });
1106
-
1107
- Object.defineProperty(AccountContext.prototype,
1108
- 'applications', {
1109
- get: function() {
1110
- if (!this._applications) {
1111
- this._applications = new ApplicationList(
1112
- this._version,
1113
- this._solution.sid
1114
- );
1115
- }
1116
- return this._applications;
1117
- }
1118
- });
1119
-
1120
- Object.defineProperty(AccountContext.prototype,
1121
- 'authorizedConnectApps', {
1122
- get: function() {
1123
- if (!this._authorizedConnectApps) {
1124
- this._authorizedConnectApps = new AuthorizedConnectAppList(
1125
- this._version,
1126
- this._solution.sid
1127
- );
1128
- }
1129
- return this._authorizedConnectApps;
1130
- }
1131
- });
1132
-
1133
- Object.defineProperty(AccountContext.prototype,
1134
- 'availablePhoneNumbers', {
1135
- get: function() {
1136
- if (!this._availablePhoneNumbers) {
1137
- this._availablePhoneNumbers = new AvailablePhoneNumberCountryList(
1138
- this._version,
1139
- this._solution.sid
1140
- );
1141
- }
1142
- return this._availablePhoneNumbers;
1143
- }
1144
- });
1145
-
1146
- Object.defineProperty(AccountContext.prototype,
1147
- 'calls', {
1148
- get: function() {
1149
- if (!this._calls) {
1150
- this._calls = new CallList(
1151
- this._version,
1152
- this._solution.sid
1153
- );
1154
- }
1155
- return this._calls;
1156
- }
1157
- });
1158
-
1159
- Object.defineProperty(AccountContext.prototype,
1160
- 'conferences', {
1161
- get: function() {
1162
- if (!this._conferences) {
1163
- this._conferences = new ConferenceList(
1164
- this._version,
1165
- this._solution.sid
1166
- );
1167
- }
1168
- return this._conferences;
1169
- }
1170
- });
1171
-
1172
- Object.defineProperty(AccountContext.prototype,
1173
- 'connectApps', {
1174
- get: function() {
1175
- if (!this._connectApps) {
1176
- this._connectApps = new ConnectAppList(
1177
- this._version,
1178
- this._solution.sid
1179
- );
1180
- }
1181
- return this._connectApps;
1182
- }
1183
- });
1184
-
1185
- Object.defineProperty(AccountContext.prototype,
1186
- 'incomingPhoneNumbers', {
1187
- get: function() {
1188
- if (!this._incomingPhoneNumbers) {
1189
- this._incomingPhoneNumbers = new IncomingPhoneNumberList(
1190
- this._version,
1191
- this._solution.sid
1192
- );
1193
- }
1194
- return this._incomingPhoneNumbers;
1195
- }
1196
- });
1197
-
1198
- Object.defineProperty(AccountContext.prototype,
1199
- 'keys', {
1200
- get: function() {
1201
- if (!this._keys) {
1202
- this._keys = new KeyList(
1203
- this._version,
1204
- this._solution.sid
1205
- );
1206
- }
1207
- return this._keys;
1208
- }
1209
- });
1210
-
1211
- Object.defineProperty(AccountContext.prototype,
1212
- 'messages', {
1213
- get: function() {
1214
- if (!this._messages) {
1215
- this._messages = new MessageList(
1216
- this._version,
1217
- this._solution.sid
1218
- );
1219
- }
1220
- return this._messages;
1221
- }
1222
- });
1223
-
1224
- Object.defineProperty(AccountContext.prototype,
1225
- 'newKeys', {
1226
- get: function() {
1227
- if (!this._newKeys) {
1228
- this._newKeys = new NewKeyList(
1229
- this._version,
1230
- this._solution.sid
1231
- );
1232
- }
1233
- return this._newKeys;
1234
- }
1235
- });
1236
-
1237
- Object.defineProperty(AccountContext.prototype,
1238
- 'newSigningKeys', {
1239
- get: function() {
1240
- if (!this._newSigningKeys) {
1241
- this._newSigningKeys = new NewSigningKeyList(
1242
- this._version,
1243
- this._solution.sid
1244
- );
1245
- }
1246
- return this._newSigningKeys;
1247
- }
1248
- });
1249
-
1250
- Object.defineProperty(AccountContext.prototype,
1251
- 'notifications', {
1252
- get: function() {
1253
- if (!this._notifications) {
1254
- this._notifications = new NotificationList(
1255
- this._version,
1256
- this._solution.sid
1257
- );
1258
- }
1259
- return this._notifications;
1260
- }
1261
- });
1262
-
1263
- Object.defineProperty(AccountContext.prototype,
1264
- 'outgoingCallerIds', {
1265
- get: function() {
1266
- if (!this._outgoingCallerIds) {
1267
- this._outgoingCallerIds = new OutgoingCallerIdList(
1268
- this._version,
1269
- this._solution.sid
1270
- );
1271
- }
1272
- return this._outgoingCallerIds;
1273
- }
1274
- });
1275
-
1276
- Object.defineProperty(AccountContext.prototype,
1277
- 'queues', {
1278
- get: function() {
1279
- if (!this._queues) {
1280
- this._queues = new QueueList(
1281
- this._version,
1282
- this._solution.sid
1283
- );
1284
- }
1285
- return this._queues;
1286
- }
1287
- });
1288
-
1289
- Object.defineProperty(AccountContext.prototype,
1290
- 'recordings', {
1291
- get: function() {
1292
- if (!this._recordings) {
1293
- this._recordings = new RecordingList(
1294
- this._version,
1295
- this._solution.sid
1296
- );
1297
- }
1298
- return this._recordings;
1299
- }
1300
- });
1301
-
1302
- Object.defineProperty(AccountContext.prototype,
1303
- 'signingKeys', {
1304
- get: function() {
1305
- if (!this._signingKeys) {
1306
- this._signingKeys = new SigningKeyList(
1307
- this._version,
1308
- this._solution.sid
1309
- );
1310
- }
1311
- return this._signingKeys;
1312
- }
1313
- });
1314
-
1315
- Object.defineProperty(AccountContext.prototype,
1316
- 'sip', {
1317
- get: function() {
1318
- if (!this._sip) {
1319
- this._sip = new SipList(
1320
- this._version,
1321
- this._solution.sid
1322
- );
1323
- }
1324
- return this._sip;
1325
- }
1326
- });
1327
-
1328
- Object.defineProperty(AccountContext.prototype,
1329
- 'shortCodes', {
1330
- get: function() {
1331
- if (!this._shortCodes) {
1332
- this._shortCodes = new ShortCodeList(
1333
- this._version,
1334
- this._solution.sid
1335
- );
1336
- }
1337
- return this._shortCodes;
1338
- }
1339
- });
1340
-
1341
- Object.defineProperty(AccountContext.prototype,
1342
- 'tokens', {
1343
- get: function() {
1344
- if (!this._tokens) {
1345
- this._tokens = new TokenList(
1346
- this._version,
1347
- this._solution.sid
1348
- );
1349
- }
1350
- return this._tokens;
1351
- }
1352
- });
1353
-
1354
- Object.defineProperty(AccountContext.prototype,
1355
- 'transcriptions', {
1356
- get: function() {
1357
- if (!this._transcriptions) {
1358
- this._transcriptions = new TranscriptionList(
1359
- this._version,
1360
- this._solution.sid
1361
- );
1362
- }
1363
- return this._transcriptions;
1364
- }
1365
- });
1366
-
1367
- Object.defineProperty(AccountContext.prototype,
1368
- 'usage', {
1369
- get: function() {
1370
- if (!this._usage) {
1371
- this._usage = new UsageList(
1372
- this._version,
1373
- this._solution.sid
1374
- );
1375
- }
1376
- return this._usage;
1377
- }
1378
- });
1379
-
1380
- Object.defineProperty(AccountContext.prototype,
1381
- 'validationRequests', {
1382
- get: function() {
1383
- if (!this._validationRequests) {
1384
- this._validationRequests = new ValidationRequestList(
1385
- this._version,
1386
- this._solution.sid
1387
- );
1388
- }
1389
- return this._validationRequests;
1390
- }
1391
- });
1392
-
1393
- module.exports = {
1394
- AccountList: AccountList,
1395
- AccountPage: AccountPage,
1396
- AccountInstance: AccountInstance,
1397
- AccountContext: AccountContext
1398
- };
473
+ instance.page = function page(params, callback) {
474
+ if (params instanceof Function) {
475
+ callback = params;
476
+ params = {};
477
+ }
478
+ else {
479
+ params = params || {};
480
+ }
481
+ let data = {};
482
+ if (params["friendlyName"] !== undefined)
483
+ data["FriendlyName"] = params["friendlyName"];
484
+ if (params["status"] !== undefined)
485
+ data["Status"] = params["status"];
486
+ if (params["pageSize"] !== undefined)
487
+ data["PageSize"] = params["pageSize"];
488
+ if (params.pageNumber !== undefined)
489
+ data["Page"] = params.pageNumber;
490
+ if (params.pageToken !== undefined)
491
+ data["PageToken"] = params.pageToken;
492
+ const headers = {};
493
+ let operationVersion = version, operationPromise = operationVersion.page({
494
+ uri: instance._uri,
495
+ method: "get",
496
+ params: data,
497
+ headers,
498
+ });
499
+ operationPromise = operationPromise.then((payload) => new AccountPage(operationVersion, payload, instance._solution));
500
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
501
+ return operationPromise;
502
+ };
503
+ instance.each = instance._version.each;
504
+ instance.list = instance._version.list;
505
+ instance.getPage = function getPage(targetUrl, callback) {
506
+ const operationPromise = instance._version._domain.twilio.request({
507
+ method: "get",
508
+ uri: targetUrl,
509
+ });
510
+ let pagePromise = operationPromise.then((payload) => new AccountPage(instance._version, payload, instance._solution));
511
+ pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
512
+ return pagePromise;
513
+ };
514
+ instance.toJSON = function toJSON() {
515
+ return instance._solution;
516
+ };
517
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
518
+ return (0, util_1.inspect)(instance.toJSON(), options);
519
+ };
520
+ return instance;
521
+ }
522
+ exports.AccountListInstance = AccountListInstance;
523
+ class AccountPage extends Page_1.default {
524
+ /**
525
+ * Initialize the AccountPage
526
+ *
527
+ * @param version - Version of the resource
528
+ * @param response - Response from the API
529
+ * @param solution - Path solution
530
+ */
531
+ constructor(version, response, solution) {
532
+ super(version, response, solution);
533
+ }
534
+ /**
535
+ * Build an instance of AccountInstance
536
+ *
537
+ * @param payload - Payload response from the API
538
+ */
539
+ getInstance(payload) {
540
+ return new AccountInstance(this._version, payload);
541
+ }
542
+ [util_1.inspect.custom](depth, options) {
543
+ return (0, util_1.inspect)(this.toJSON(), options);
544
+ }
545
+ }
546
+ exports.AccountPage = AccountPage;