twilio 4.0.0 → 4.0.1

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 (1208) hide show
  1. package/package.json +8 -8
  2. package/dist/index.d.ts +0 -2
  3. package/dist/index.js +0 -7
  4. package/dist/lib/base/BaseTwilio.d.ts +0 -81
  5. package/dist/lib/base/BaseTwilio.js +0 -172
  6. package/dist/lib/base/Domain.d.ts +0 -29
  7. package/dist/lib/base/Domain.js +0 -53
  8. package/dist/lib/base/Page.d.ts +0 -104
  9. package/dist/lib/base/Page.js +0 -192
  10. package/dist/lib/base/RequestClient.d.ts +0 -143
  11. package/dist/lib/base/RequestClient.js +0 -223
  12. package/dist/lib/base/RestException.d.ts +0 -16
  13. package/dist/lib/base/RestException.js +0 -33
  14. package/dist/lib/base/Version.d.ts +0 -129
  15. package/dist/lib/base/Version.js +0 -335
  16. package/dist/lib/base/deserialize.d.ts +0 -41
  17. package/dist/lib/base/deserialize.js +0 -76
  18. package/dist/lib/base/serialize.d.ts +0 -53
  19. package/dist/lib/base/serialize.js +0 -122
  20. package/dist/lib/base/utility.d.ts +0 -2
  21. package/dist/lib/base/utility.js +0 -13
  22. package/dist/lib/base/values.d.ts +0 -10
  23. package/dist/lib/base/values.js +0 -16
  24. package/dist/lib/http/request.d.ts +0 -25
  25. package/dist/lib/http/request.js +0 -85
  26. package/dist/lib/http/response.d.ts +0 -7
  27. package/dist/lib/http/response.js +0 -13
  28. package/dist/lib/index.d.ts +0 -39
  29. package/dist/lib/index.js +0 -89
  30. package/dist/lib/interfaces.d.ts +0 -94
  31. package/dist/lib/interfaces.js +0 -2
  32. package/dist/lib/jwt/AccessToken.d.ts +0 -191
  33. package/dist/lib/jwt/AccessToken.js +0 -261
  34. package/dist/lib/jwt/ClientCapability.d.ts +0 -61
  35. package/dist/lib/jwt/ClientCapability.js +0 -122
  36. package/dist/lib/jwt/taskrouter/TaskRouterCapability.d.ts +0 -74
  37. package/dist/lib/jwt/taskrouter/TaskRouterCapability.js +0 -101
  38. package/dist/lib/jwt/taskrouter/util.d.ts +0 -66
  39. package/dist/lib/jwt/taskrouter/util.js +0 -169
  40. package/dist/lib/rest/Accounts.d.ts +0 -19
  41. package/dist/lib/rest/Accounts.js +0 -29
  42. package/dist/lib/rest/AccountsBase.d.ts +0 -13
  43. package/dist/lib/rest/AccountsBase.js +0 -31
  44. package/dist/lib/rest/Api.d.ts +0 -127
  45. package/dist/lib/rest/Api.js +0 -182
  46. package/dist/lib/rest/ApiBase.d.ts +0 -13
  47. package/dist/lib/rest/ApiBase.js +0 -31
  48. package/dist/lib/rest/Autopilot.d.ts +0 -14
  49. package/dist/lib/rest/Autopilot.js +0 -22
  50. package/dist/lib/rest/AutopilotBase.d.ts +0 -13
  51. package/dist/lib/rest/AutopilotBase.js +0 -31
  52. package/dist/lib/rest/Bulkexports.d.ts +0 -14
  53. package/dist/lib/rest/Bulkexports.js +0 -22
  54. package/dist/lib/rest/BulkexportsBase.d.ts +0 -13
  55. package/dist/lib/rest/BulkexportsBase.js +0 -31
  56. package/dist/lib/rest/Chat.d.ts +0 -19
  57. package/dist/lib/rest/Chat.js +0 -29
  58. package/dist/lib/rest/ChatBase.d.ts +0 -19
  59. package/dist/lib/rest/ChatBase.js +0 -41
  60. package/dist/lib/rest/Content.d.ts +0 -9
  61. package/dist/lib/rest/Content.js +0 -15
  62. package/dist/lib/rest/ContentBase.d.ts +0 -13
  63. package/dist/lib/rest/ContentBase.js +0 -31
  64. package/dist/lib/rest/Conversations.d.ts +0 -44
  65. package/dist/lib/rest/Conversations.js +0 -64
  66. package/dist/lib/rest/ConversationsBase.d.ts +0 -13
  67. package/dist/lib/rest/ConversationsBase.js +0 -31
  68. package/dist/lib/rest/Events.d.ts +0 -24
  69. package/dist/lib/rest/Events.js +0 -36
  70. package/dist/lib/rest/EventsBase.d.ts +0 -13
  71. package/dist/lib/rest/EventsBase.js +0 -31
  72. package/dist/lib/rest/FlexApi.d.ts +0 -39
  73. package/dist/lib/rest/FlexApi.js +0 -57
  74. package/dist/lib/rest/FlexApiBase.d.ts +0 -16
  75. package/dist/lib/rest/FlexApiBase.js +0 -36
  76. package/dist/lib/rest/FrontlineApi.d.ts +0 -9
  77. package/dist/lib/rest/FrontlineApi.js +0 -15
  78. package/dist/lib/rest/FrontlineApiBase.d.ts +0 -13
  79. package/dist/lib/rest/FrontlineApiBase.js +0 -31
  80. package/dist/lib/rest/Insights.d.ts +0 -29
  81. package/dist/lib/rest/Insights.js +0 -43
  82. package/dist/lib/rest/InsightsBase.d.ts +0 -13
  83. package/dist/lib/rest/InsightsBase.js +0 -31
  84. package/dist/lib/rest/IpMessaging.d.ts +0 -14
  85. package/dist/lib/rest/IpMessaging.js +0 -22
  86. package/dist/lib/rest/IpMessagingBase.d.ts +0 -16
  87. package/dist/lib/rest/IpMessagingBase.js +0 -36
  88. package/dist/lib/rest/Lookups.d.ts +0 -9
  89. package/dist/lib/rest/Lookups.js +0 -15
  90. package/dist/lib/rest/LookupsBase.d.ts +0 -16
  91. package/dist/lib/rest/LookupsBase.js +0 -36
  92. package/dist/lib/rest/Media.d.ts +0 -19
  93. package/dist/lib/rest/Media.js +0 -29
  94. package/dist/lib/rest/MediaBase.d.ts +0 -13
  95. package/dist/lib/rest/MediaBase.js +0 -31
  96. package/dist/lib/rest/Messaging.d.ts +0 -39
  97. package/dist/lib/rest/Messaging.js +0 -57
  98. package/dist/lib/rest/MessagingBase.d.ts +0 -13
  99. package/dist/lib/rest/MessagingBase.js +0 -31
  100. package/dist/lib/rest/Microvisor.d.ts +0 -14
  101. package/dist/lib/rest/Microvisor.js +0 -22
  102. package/dist/lib/rest/MicrovisorBase.d.ts +0 -13
  103. package/dist/lib/rest/MicrovisorBase.js +0 -31
  104. package/dist/lib/rest/Monitor.d.ts +0 -14
  105. package/dist/lib/rest/Monitor.js +0 -22
  106. package/dist/lib/rest/MonitorBase.d.ts +0 -13
  107. package/dist/lib/rest/MonitorBase.js +0 -31
  108. package/dist/lib/rest/Notify.d.ts +0 -14
  109. package/dist/lib/rest/Notify.js +0 -22
  110. package/dist/lib/rest/NotifyBase.d.ts +0 -13
  111. package/dist/lib/rest/NotifyBase.js +0 -31
  112. package/dist/lib/rest/Numbers.d.ts +0 -9
  113. package/dist/lib/rest/Numbers.js +0 -15
  114. package/dist/lib/rest/NumbersBase.d.ts +0 -13
  115. package/dist/lib/rest/NumbersBase.js +0 -31
  116. package/dist/lib/rest/Oauth.d.ts +0 -29
  117. package/dist/lib/rest/Oauth.js +0 -43
  118. package/dist/lib/rest/OauthBase.d.ts +0 -13
  119. package/dist/lib/rest/OauthBase.js +0 -31
  120. package/dist/lib/rest/Preview.d.ts +0 -54
  121. package/dist/lib/rest/Preview.js +0 -78
  122. package/dist/lib/rest/PreviewBase.d.ts +0 -28
  123. package/dist/lib/rest/PreviewBase.js +0 -57
  124. package/dist/lib/rest/Pricing.d.ts +0 -29
  125. package/dist/lib/rest/Pricing.js +0 -43
  126. package/dist/lib/rest/PricingBase.d.ts +0 -16
  127. package/dist/lib/rest/PricingBase.js +0 -36
  128. package/dist/lib/rest/Proxy.d.ts +0 -9
  129. package/dist/lib/rest/Proxy.js +0 -15
  130. package/dist/lib/rest/ProxyBase.d.ts +0 -13
  131. package/dist/lib/rest/ProxyBase.js +0 -31
  132. package/dist/lib/rest/Routes.d.ts +0 -19
  133. package/dist/lib/rest/Routes.js +0 -29
  134. package/dist/lib/rest/RoutesBase.d.ts +0 -13
  135. package/dist/lib/rest/RoutesBase.js +0 -31
  136. package/dist/lib/rest/Serverless.d.ts +0 -9
  137. package/dist/lib/rest/Serverless.js +0 -15
  138. package/dist/lib/rest/ServerlessBase.d.ts +0 -13
  139. package/dist/lib/rest/ServerlessBase.js +0 -31
  140. package/dist/lib/rest/Studio.d.ts +0 -14
  141. package/dist/lib/rest/Studio.js +0 -22
  142. package/dist/lib/rest/StudioBase.d.ts +0 -16
  143. package/dist/lib/rest/StudioBase.js +0 -36
  144. package/dist/lib/rest/Supersim.d.ts +0 -49
  145. package/dist/lib/rest/Supersim.js +0 -71
  146. package/dist/lib/rest/SupersimBase.d.ts +0 -13
  147. package/dist/lib/rest/SupersimBase.js +0 -31
  148. package/dist/lib/rest/Sync.d.ts +0 -9
  149. package/dist/lib/rest/Sync.js +0 -15
  150. package/dist/lib/rest/SyncBase.d.ts +0 -13
  151. package/dist/lib/rest/SyncBase.js +0 -31
  152. package/dist/lib/rest/Taskrouter.d.ts +0 -9
  153. package/dist/lib/rest/Taskrouter.js +0 -15
  154. package/dist/lib/rest/TaskrouterBase.d.ts +0 -13
  155. package/dist/lib/rest/TaskrouterBase.js +0 -31
  156. package/dist/lib/rest/Trunking.d.ts +0 -9
  157. package/dist/lib/rest/Trunking.js +0 -15
  158. package/dist/lib/rest/TrunkingBase.d.ts +0 -13
  159. package/dist/lib/rest/TrunkingBase.js +0 -31
  160. package/dist/lib/rest/Trusthub.d.ts +0 -39
  161. package/dist/lib/rest/Trusthub.js +0 -57
  162. package/dist/lib/rest/TrusthubBase.d.ts +0 -13
  163. package/dist/lib/rest/TrusthubBase.js +0 -31
  164. package/dist/lib/rest/Twilio.d.ts +0 -266
  165. package/dist/lib/rest/Twilio.js +0 -317
  166. package/dist/lib/rest/Verify.d.ts +0 -29
  167. package/dist/lib/rest/Verify.js +0 -43
  168. package/dist/lib/rest/VerifyBase.d.ts +0 -13
  169. package/dist/lib/rest/VerifyBase.js +0 -31
  170. package/dist/lib/rest/Video.d.ts +0 -34
  171. package/dist/lib/rest/Video.js +0 -50
  172. package/dist/lib/rest/VideoBase.d.ts +0 -13
  173. package/dist/lib/rest/VideoBase.js +0 -31
  174. package/dist/lib/rest/Voice.d.ts +0 -34
  175. package/dist/lib/rest/Voice.js +0 -50
  176. package/dist/lib/rest/VoiceBase.d.ts +0 -13
  177. package/dist/lib/rest/VoiceBase.js +0 -31
  178. package/dist/lib/rest/Wireless.d.ts +0 -24
  179. package/dist/lib/rest/Wireless.js +0 -36
  180. package/dist/lib/rest/WirelessBase.d.ts +0 -13
  181. package/dist/lib/rest/WirelessBase.js +0 -31
  182. package/dist/lib/rest/accounts/V1.d.ts +0 -25
  183. package/dist/lib/rest/accounts/V1.js +0 -50
  184. package/dist/lib/rest/accounts/v1/authTokenPromotion.d.ts +0 -105
  185. package/dist/lib/rest/accounts/v1/authTokenPromotion.js +0 -109
  186. package/dist/lib/rest/accounts/v1/credential/aws.d.ts +0 -296
  187. package/dist/lib/rest/accounts/v1/credential/aws.js +0 -251
  188. package/dist/lib/rest/accounts/v1/credential/publicKey.d.ts +0 -296
  189. package/dist/lib/rest/accounts/v1/credential/publicKey.js +0 -252
  190. package/dist/lib/rest/accounts/v1/credential.d.ts +0 -22
  191. package/dist/lib/rest/accounts/v1/credential.js +0 -51
  192. package/dist/lib/rest/accounts/v1/secondaryAuthToken.d.ts +0 -122
  193. package/dist/lib/rest/accounts/v1/secondaryAuthToken.js +0 -128
  194. package/dist/lib/rest/api/V2010.d.ts +0 -20
  195. package/dist/lib/rest/api/V2010.js +0 -42
  196. package/dist/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +0 -295
  197. package/dist/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +0 -175
  198. package/dist/lib/rest/api/v2010/account/address.d.ts +0 -414
  199. package/dist/lib/rest/api/v2010/account/address.js +0 -338
  200. package/dist/lib/rest/api/v2010/account/application.d.ts +0 -463
  201. package/dist/lib/rest/api/v2010/account/application.js +0 -349
  202. package/dist/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +0 -244
  203. package/dist/lib/rest/api/v2010/account/authorizedConnectApp.js +0 -198
  204. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.d.ts +0 -322
  205. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.js +0 -185
  206. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.d.ts +0 -322
  207. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.js +0 -185
  208. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.d.ts +0 -322
  209. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.js +0 -185
  210. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.d.ts +0 -322
  211. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.js +0 -185
  212. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.d.ts +0 -322
  213. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.js +0 -185
  214. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.d.ts +0 -322
  215. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.js +0 -185
  216. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.d.ts +0 -322
  217. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.js +0 -185
  218. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry.d.ts +0 -269
  219. package/dist/lib/rest/api/v2010/account/availablePhoneNumberCountry.js +0 -279
  220. package/dist/lib/rest/api/v2010/account/balance.d.ts +0 -58
  221. package/dist/lib/rest/api/v2010/account/balance.js +0 -70
  222. package/dist/lib/rest/api/v2010/account/call/event.d.ts +0 -150
  223. package/dist/lib/rest/api/v2010/account/call/event.js +0 -127
  224. package/dist/lib/rest/api/v2010/account/call/feedback.d.ts +0 -160
  225. package/dist/lib/rest/api/v2010/account/call/feedback.js +0 -154
  226. package/dist/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +0 -201
  227. package/dist/lib/rest/api/v2010/account/call/feedbackSummary.js +0 -189
  228. package/dist/lib/rest/api/v2010/account/call/notification.d.ts +0 -312
  229. package/dist/lib/rest/api/v2010/account/call/notification.js +0 -223
  230. package/dist/lib/rest/api/v2010/account/call/payment.d.ts +0 -182
  231. package/dist/lib/rest/api/v2010/account/call/payment.js +0 -198
  232. package/dist/lib/rest/api/v2010/account/call/recording.d.ts +0 -386
  233. package/dist/lib/rest/api/v2010/account/call/recording.js +0 -303
  234. package/dist/lib/rest/api/v2010/account/call/siprec.d.ts +0 -559
  235. package/dist/lib/rest/api/v2010/account/call/siprec.js +0 -562
  236. package/dist/lib/rest/api/v2010/account/call/stream.d.ts +0 -551
  237. package/dist/lib/rest/api/v2010/account/call/stream.js +0 -560
  238. package/dist/lib/rest/api/v2010/account/call/userDefinedMessage.d.ts +0 -75
  239. package/dist/lib/rest/api/v2010/account/call/userDefinedMessage.js +0 -89
  240. package/dist/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.d.ts +0 -130
  241. package/dist/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.js +0 -150
  242. package/dist/lib/rest/api/v2010/account/call.d.ts +0 -633
  243. package/dist/lib/rest/api/v2010/account/call.js +0 -531
  244. package/dist/lib/rest/api/v2010/account/conference/participant.d.ts +0 -472
  245. package/dist/lib/rest/api/v2010/account/conference/participant.js +0 -407
  246. package/dist/lib/rest/api/v2010/account/conference/recording.d.ts +0 -346
  247. package/dist/lib/rest/api/v2010/account/conference/recording.js +0 -267
  248. package/dist/lib/rest/api/v2010/account/conference.d.ts +0 -362
  249. package/dist/lib/rest/api/v2010/account/conference.js +0 -272
  250. package/dist/lib/rest/api/v2010/account/connectApp.d.ts +0 -324
  251. package/dist/lib/rest/api/v2010/account/connectApp.js +0 -257
  252. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.d.ts +0 -241
  253. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.js +0 -210
  254. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +0 -292
  255. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.js +0 -257
  256. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +0 -417
  257. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +0 -261
  258. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +0 -417
  259. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +0 -261
  260. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +0 -417
  261. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +0 -261
  262. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +0 -593
  263. package/dist/lib/rest/api/v2010/account/incomingPhoneNumber.js +0 -450
  264. package/dist/lib/rest/api/v2010/account/key.d.ts +0 -266
  265. package/dist/lib/rest/api/v2010/account/key.js +0 -229
  266. package/dist/lib/rest/api/v2010/account/message/feedback.d.ts +0 -91
  267. package/dist/lib/rest/api/v2010/account/message/feedback.js +0 -93
  268. package/dist/lib/rest/api/v2010/account/message/media.d.ts +0 -262
  269. package/dist/lib/rest/api/v2010/account/message/media.js +0 -220
  270. package/dist/lib/rest/api/v2010/account/message.d.ts +0 -468
  271. package/dist/lib/rest/api/v2010/account/message.js +0 -362
  272. package/dist/lib/rest/api/v2010/account/newKey.d.ts +0 -86
  273. package/dist/lib/rest/api/v2010/account/newKey.js +0 -88
  274. package/dist/lib/rest/api/v2010/account/newSigningKey.d.ts +0 -86
  275. package/dist/lib/rest/api/v2010/account/newSigningKey.js +0 -88
  276. package/dist/lib/rest/api/v2010/account/notification.d.ts +0 -310
  277. package/dist/lib/rest/api/v2010/account/notification.js +0 -217
  278. package/dist/lib/rest/api/v2010/account/outgoingCallerId.d.ts +0 -296
  279. package/dist/lib/rest/api/v2010/account/outgoingCallerId.js +0 -239
  280. package/dist/lib/rest/api/v2010/account/queue/member.d.ts +0 -249
  281. package/dist/lib/rest/api/v2010/account/queue/member.js +0 -220
  282. package/dist/lib/rest/api/v2010/account/queue.d.ts +0 -324
  283. package/dist/lib/rest/api/v2010/account/queue.js +0 -278
  284. package/dist/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts +0 -270
  285. package/dist/lib/rest/api/v2010/account/recording/addOnResult/payload.js +0 -233
  286. package/dist/lib/rest/api/v2010/account/recording/addOnResult.d.ts +0 -268
  287. package/dist/lib/rest/api/v2010/account/recording/addOnResult.js +0 -233
  288. package/dist/lib/rest/api/v2010/account/recording/transcription.d.ts +0 -278
  289. package/dist/lib/rest/api/v2010/account/recording/transcription.js +0 -226
  290. package/dist/lib/rest/api/v2010/account/recording.d.ts +0 -387
  291. package/dist/lib/rest/api/v2010/account/recording.js +0 -276
  292. package/dist/lib/rest/api/v2010/account/shortCode.d.ts +0 -321
  293. package/dist/lib/rest/api/v2010/account/shortCode.js +0 -240
  294. package/dist/lib/rest/api/v2010/account/signingKey.d.ts +0 -254
  295. package/dist/lib/rest/api/v2010/account/signingKey.js +0 -229
  296. package/dist/lib/rest/api/v2010/account/sip/credentialList/credential.d.ts +0 -304
  297. package/dist/lib/rest/api/v2010/account/sip/credentialList/credential.js +0 -266
  298. package/dist/lib/rest/api/v2010/account/sip/credentialList.d.ts +0 -292
  299. package/dist/lib/rest/api/v2010/account/sip/credentialList.js +0 -269
  300. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.d.ts +0 -248
  301. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.js +0 -232
  302. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.d.ts +0 -248
  303. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.js +0 -232
  304. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls.d.ts +0 -24
  305. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls.js +0 -60
  306. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.d.ts +0 -248
  307. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.js +0 -232
  308. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations.d.ts +0 -21
  309. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations.js +0 -50
  310. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes.d.ts +0 -24
  311. package/dist/lib/rest/api/v2010/account/sip/domain/authTypes.js +0 -58
  312. package/dist/lib/rest/api/v2010/account/sip/domain/credentialListMapping.d.ts +0 -260
  313. package/dist/lib/rest/api/v2010/account/sip/domain/credentialListMapping.js +0 -236
  314. package/dist/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.d.ts +0 -260
  315. package/dist/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.js +0 -236
  316. package/dist/lib/rest/api/v2010/account/sip/domain.d.ts +0 -459
  317. package/dist/lib/rest/api/v2010/account/sip/domain.js +0 -371
  318. package/dist/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +0 -322
  319. package/dist/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +0 -281
  320. package/dist/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +0 -292
  321. package/dist/lib/rest/api/v2010/account/sip/ipAccessControlList.js +0 -269
  322. package/dist/lib/rest/api/v2010/account/sip.d.ts +0 -26
  323. package/dist/lib/rest/api/v2010/account/sip.js +0 -64
  324. package/dist/lib/rest/api/v2010/account/token.d.ts +0 -104
  325. package/dist/lib/rest/api/v2010/account/token.js +0 -95
  326. package/dist/lib/rest/api/v2010/account/transcription.d.ts +0 -276
  327. package/dist/lib/rest/api/v2010/account/transcription.js +0 -220
  328. package/dist/lib/rest/api/v2010/account/usage/record/allTime.d.ts +0 -249
  329. package/dist/lib/rest/api/v2010/account/usage/record/allTime.js +0 -158
  330. package/dist/lib/rest/api/v2010/account/usage/record/daily.d.ts +0 -249
  331. package/dist/lib/rest/api/v2010/account/usage/record/daily.js +0 -158
  332. package/dist/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +0 -249
  333. package/dist/lib/rest/api/v2010/account/usage/record/lastMonth.js +0 -158
  334. package/dist/lib/rest/api/v2010/account/usage/record/monthly.d.ts +0 -249
  335. package/dist/lib/rest/api/v2010/account/usage/record/monthly.js +0 -158
  336. package/dist/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +0 -249
  337. package/dist/lib/rest/api/v2010/account/usage/record/thisMonth.js +0 -158
  338. package/dist/lib/rest/api/v2010/account/usage/record/today.d.ts +0 -249
  339. package/dist/lib/rest/api/v2010/account/usage/record/today.js +0 -158
  340. package/dist/lib/rest/api/v2010/account/usage/record/yearly.d.ts +0 -249
  341. package/dist/lib/rest/api/v2010/account/usage/record/yearly.js +0 -158
  342. package/dist/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +0 -249
  343. package/dist/lib/rest/api/v2010/account/usage/record/yesterday.js +0 -158
  344. package/dist/lib/rest/api/v2010/account/usage/record.d.ts +0 -273
  345. package/dist/lib/rest/api/v2010/account/usage/record.js +0 -230
  346. package/dist/lib/rest/api/v2010/account/usage/trigger.d.ts +0 -383
  347. package/dist/lib/rest/api/v2010/account/usage/trigger.js +0 -302
  348. package/dist/lib/rest/api/v2010/account/usage.d.ts +0 -23
  349. package/dist/lib/rest/api/v2010/account/usage.js +0 -55
  350. package/dist/lib/rest/api/v2010/account/validationRequest.d.ts +0 -88
  351. package/dist/lib/rest/api/v2010/account/validationRequest.js +0 -96
  352. package/dist/lib/rest/api/v2010/account.d.ts +0 -509
  353. package/dist/lib/rest/api/v2010/account.js +0 -546
  354. package/dist/lib/rest/autopilot/V1.d.ts +0 -20
  355. package/dist/lib/rest/autopilot/V1.js +0 -43
  356. package/dist/lib/rest/autopilot/v1/assistant/defaults.d.ts +0 -143
  357. package/dist/lib/rest/autopilot/v1/assistant/defaults.js +0 -142
  358. package/dist/lib/rest/autopilot/v1/assistant/dialogue.d.ts +0 -108
  359. package/dist/lib/rest/autopilot/v1/assistant/dialogue.js +0 -120
  360. package/dist/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts +0 -288
  361. package/dist/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js +0 -249
  362. package/dist/lib/rest/autopilot/v1/assistant/fieldType.d.ts +0 -324
  363. package/dist/lib/rest/autopilot/v1/assistant/fieldType.js +0 -277
  364. package/dist/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +0 -326
  365. package/dist/lib/rest/autopilot/v1/assistant/modelBuild.js +0 -266
  366. package/dist/lib/rest/autopilot/v1/assistant/query.d.ts +0 -374
  367. package/dist/lib/rest/autopilot/v1/assistant/query.js +0 -288
  368. package/dist/lib/rest/autopilot/v1/assistant/styleSheet.d.ts +0 -143
  369. package/dist/lib/rest/autopilot/v1/assistant/styleSheet.js +0 -142
  370. package/dist/lib/rest/autopilot/v1/assistant/task/field.d.ts +0 -274
  371. package/dist/lib/rest/autopilot/v1/assistant/task/field.js +0 -243
  372. package/dist/lib/rest/autopilot/v1/assistant/task/sample.d.ts +0 -334
  373. package/dist/lib/rest/autopilot/v1/assistant/task/sample.js +0 -280
  374. package/dist/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts +0 -151
  375. package/dist/lib/rest/autopilot/v1/assistant/task/taskActions.js +0 -150
  376. package/dist/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts +0 -115
  377. package/dist/lib/rest/autopilot/v1/assistant/task/taskStatistics.js +0 -125
  378. package/dist/lib/rest/autopilot/v1/assistant/task.d.ts +0 -362
  379. package/dist/lib/rest/autopilot/v1/assistant/task.js +0 -326
  380. package/dist/lib/rest/autopilot/v1/assistant/webhook.d.ts +0 -330
  381. package/dist/lib/rest/autopilot/v1/assistant/webhook.js +0 -278
  382. package/dist/lib/rest/autopilot/v1/assistant.d.ts +0 -438
  383. package/dist/lib/rest/autopilot/v1/assistant.js +0 -392
  384. package/dist/lib/rest/autopilot/v1/restoreAssistant.d.ts +0 -119
  385. package/dist/lib/rest/autopilot/v1/restoreAssistant.js +0 -96
  386. package/dist/lib/rest/bulkexports/V1.d.ts +0 -20
  387. package/dist/lib/rest/bulkexports/V1.js +0 -43
  388. package/dist/lib/rest/bulkexports/v1/export/day.d.ts +0 -216
  389. package/dist/lib/rest/bulkexports/v1/export/day.js +0 -187
  390. package/dist/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +0 -229
  391. package/dist/lib/rest/bulkexports/v1/export/exportCustomJob.js +0 -178
  392. package/dist/lib/rest/bulkexports/v1/export/job.d.ts +0 -162
  393. package/dist/lib/rest/bulkexports/v1/export/job.js +0 -146
  394. package/dist/lib/rest/bulkexports/v1/export.d.ts +0 -113
  395. package/dist/lib/rest/bulkexports/v1/export.js +0 -144
  396. package/dist/lib/rest/bulkexports/v1/exportConfiguration.d.ts +0 -152
  397. package/dist/lib/rest/bulkexports/v1/exportConfiguration.js +0 -145
  398. package/dist/lib/rest/chat/V1.d.ts +0 -20
  399. package/dist/lib/rest/chat/V1.js +0 -42
  400. package/dist/lib/rest/chat/V2.d.ts +0 -20
  401. package/dist/lib/rest/chat/V2.js +0 -42
  402. package/dist/lib/rest/chat/V3.d.ts +0 -15
  403. package/dist/lib/rest/chat/V3.js +0 -36
  404. package/dist/lib/rest/chat/v1/credential.d.ts +0 -324
  405. package/dist/lib/rest/chat/v1/credential.js +0 -274
  406. package/dist/lib/rest/chat/v1/service/channel/invite.d.ts +0 -286
  407. package/dist/lib/rest/chat/v1/service/channel/invite.js +0 -245
  408. package/dist/lib/rest/chat/v1/service/channel/member.d.ts +0 -336
  409. package/dist/lib/rest/chat/v1/service/channel/member.js +0 -276
  410. package/dist/lib/rest/chat/v1/service/channel/message.d.ts +0 -351
  411. package/dist/lib/rest/chat/v1/service/channel/message.js +0 -282
  412. package/dist/lib/rest/chat/v1/service/channel.d.ts +0 -388
  413. package/dist/lib/rest/chat/v1/service/channel.js +0 -323
  414. package/dist/lib/rest/chat/v1/service/role.d.ts +0 -298
  415. package/dist/lib/rest/chat/v1/service/role.js +0 -267
  416. package/dist/lib/rest/chat/v1/service/user/userChannel.d.ts +0 -184
  417. package/dist/lib/rest/chat/v1/service/user/userChannel.js +0 -139
  418. package/dist/lib/rest/chat/v1/service/user.d.ts +0 -360
  419. package/dist/lib/rest/chat/v1/service/user.js +0 -293
  420. package/dist/lib/rest/chat/v1/service.d.ts +0 -512
  421. package/dist/lib/rest/chat/v1/service.js +0 -454
  422. package/dist/lib/rest/chat/v2/credential.d.ts +0 -324
  423. package/dist/lib/rest/chat/v2/credential.js +0 -274
  424. package/dist/lib/rest/chat/v2/service/binding.d.ts +0 -282
  425. package/dist/lib/rest/chat/v2/service/binding.js +0 -222
  426. package/dist/lib/rest/chat/v2/service/channel/invite.d.ts +0 -286
  427. package/dist/lib/rest/chat/v2/service/channel/invite.js +0 -245
  428. package/dist/lib/rest/chat/v2/service/channel/member.d.ts +0 -390
  429. package/dist/lib/rest/chat/v2/service/channel/member.js +0 -306
  430. package/dist/lib/rest/chat/v2/service/channel/message.d.ts +0 -423
  431. package/dist/lib/rest/chat/v2/service/channel/message.js +0 -316
  432. package/dist/lib/rest/chat/v2/service/channel/webhook.d.ts +0 -338
  433. package/dist/lib/rest/chat/v2/service/channel/webhook.js +0 -288
  434. package/dist/lib/rest/chat/v2/service/channel.d.ts +0 -438
  435. package/dist/lib/rest/chat/v2/service/channel.js +0 -358
  436. package/dist/lib/rest/chat/v2/service/role.d.ts +0 -298
  437. package/dist/lib/rest/chat/v2/service/role.js +0 -267
  438. package/dist/lib/rest/chat/v2/service/user/userBinding.d.ts +0 -278
  439. package/dist/lib/rest/chat/v2/service/user/userBinding.js +0 -226
  440. package/dist/lib/rest/chat/v2/service/user/userChannel.d.ts +0 -336
  441. package/dist/lib/rest/chat/v2/service/user/userChannel.js +0 -263
  442. package/dist/lib/rest/chat/v2/service/user.d.ts +0 -373
  443. package/dist/lib/rest/chat/v2/service/user.js +0 -310
  444. package/dist/lib/rest/chat/v2/service.d.ts +0 -486
  445. package/dist/lib/rest/chat/v2/service.js +0 -401
  446. package/dist/lib/rest/chat/v3/channel.d.ts +0 -189
  447. package/dist/lib/rest/chat/v3/channel.js +0 -149
  448. package/dist/lib/rest/content/V1.d.ts +0 -15
  449. package/dist/lib/rest/content/V1.js +0 -36
  450. package/dist/lib/rest/content/v1/content/approvalFetch.d.ts +0 -101
  451. package/dist/lib/rest/content/v1/content/approvalFetch.js +0 -115
  452. package/dist/lib/rest/content/v1/content.d.ts +0 -266
  453. package/dist/lib/rest/content/v1/content.js +0 -221
  454. package/dist/lib/rest/conversations/V1.d.ts +0 -50
  455. package/dist/lib/rest/conversations/V1.js +0 -82
  456. package/dist/lib/rest/conversations/v1/addressConfiguration.d.ts +0 -355
  457. package/dist/lib/rest/conversations/v1/addressConfiguration.js +0 -298
  458. package/dist/lib/rest/conversations/v1/configuration/webhook.d.ts +0 -163
  459. package/dist/lib/rest/conversations/v1/configuration/webhook.js +0 -147
  460. package/dist/lib/rest/conversations/v1/configuration.d.ts +0 -168
  461. package/dist/lib/rest/conversations/v1/configuration.js +0 -155
  462. package/dist/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +0 -249
  463. package/dist/lib/rest/conversations/v1/conversation/message/deliveryReceipt.js +0 -203
  464. package/dist/lib/rest/conversations/v1/conversation/message.d.ts +0 -423
  465. package/dist/lib/rest/conversations/v1/conversation/message.js +0 -321
  466. package/dist/lib/rest/conversations/v1/conversation/participant.d.ts +0 -398
  467. package/dist/lib/rest/conversations/v1/conversation/participant.js +0 -312
  468. package/dist/lib/rest/conversations/v1/conversation/webhook.d.ts +0 -328
  469. package/dist/lib/rest/conversations/v1/conversation/webhook.js +0 -278
  470. package/dist/lib/rest/conversations/v1/conversation.d.ts +0 -429
  471. package/dist/lib/rest/conversations/v1/conversation.js +0 -345
  472. package/dist/lib/rest/conversations/v1/credential.d.ts +0 -326
  473. package/dist/lib/rest/conversations/v1/credential.js +0 -276
  474. package/dist/lib/rest/conversations/v1/participantConversation.d.ts +0 -242
  475. package/dist/lib/rest/conversations/v1/participantConversation.js +0 -152
  476. package/dist/lib/rest/conversations/v1/role.d.ts +0 -296
  477. package/dist/lib/rest/conversations/v1/role.js +0 -260
  478. package/dist/lib/rest/conversations/v1/service/binding.d.ts +0 -276
  479. package/dist/lib/rest/conversations/v1/service/binding.js +0 -220
  480. package/dist/lib/rest/conversations/v1/service/configuration/notification.d.ts +0 -185
  481. package/dist/lib/rest/conversations/v1/service/configuration/notification.js +0 -176
  482. package/dist/lib/rest/conversations/v1/service/configuration/webhook.d.ts +0 -165
  483. package/dist/lib/rest/conversations/v1/service/configuration/webhook.js +0 -154
  484. package/dist/lib/rest/conversations/v1/service/configuration.d.ts +0 -173
  485. package/dist/lib/rest/conversations/v1/service/configuration.js +0 -174
  486. package/dist/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +0 -257
  487. package/dist/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.js +0 -216
  488. package/dist/lib/rest/conversations/v1/service/conversation/message.d.ts +0 -431
  489. package/dist/lib/rest/conversations/v1/service/conversation/message.js +0 -329
  490. package/dist/lib/rest/conversations/v1/service/conversation/participant.d.ts +0 -406
  491. package/dist/lib/rest/conversations/v1/service/conversation/participant.js +0 -320
  492. package/dist/lib/rest/conversations/v1/service/conversation/webhook.d.ts +0 -336
  493. package/dist/lib/rest/conversations/v1/service/conversation/webhook.js +0 -286
  494. package/dist/lib/rest/conversations/v1/service/conversation.d.ts +0 -431
  495. package/dist/lib/rest/conversations/v1/service/conversation.js +0 -353
  496. package/dist/lib/rest/conversations/v1/service/participantConversation.d.ts +0 -243
  497. package/dist/lib/rest/conversations/v1/service/participantConversation.js +0 -156
  498. package/dist/lib/rest/conversations/v1/service/role.d.ts +0 -298
  499. package/dist/lib/rest/conversations/v1/service/role.js +0 -267
  500. package/dist/lib/rest/conversations/v1/service/user/userConversation.d.ts +0 -349
  501. package/dist/lib/rest/conversations/v1/service/user/userConversation.js +0 -271
  502. package/dist/lib/rest/conversations/v1/service/user.d.ts +0 -381
  503. package/dist/lib/rest/conversations/v1/service/user.js +0 -301
  504. package/dist/lib/rest/conversations/v1/service.d.ts +0 -304
  505. package/dist/lib/rest/conversations/v1/service.js +0 -299
  506. package/dist/lib/rest/conversations/v1/user/userConversation.d.ts +0 -347
  507. package/dist/lib/rest/conversations/v1/user/userConversation.js +0 -264
  508. package/dist/lib/rest/conversations/v1/user.d.ts +0 -379
  509. package/dist/lib/rest/conversations/v1/user.js +0 -294
  510. package/dist/lib/rest/events/V1.d.ts +0 -30
  511. package/dist/lib/rest/events/V1.js +0 -54
  512. package/dist/lib/rest/events/v1/eventType.d.ts +0 -226
  513. package/dist/lib/rest/events/v1/eventType.js +0 -185
  514. package/dist/lib/rest/events/v1/schema/schemaVersion.d.ts +0 -210
  515. package/dist/lib/rest/events/v1/schema/schemaVersion.js +0 -185
  516. package/dist/lib/rest/events/v1/schema.d.ts +0 -114
  517. package/dist/lib/rest/events/v1/schema.js +0 -126
  518. package/dist/lib/rest/events/v1/sink/sinkTest.d.ts +0 -46
  519. package/dist/lib/rest/events/v1/sink/sinkTest.js +0 -66
  520. package/dist/lib/rest/events/v1/sink/sinkValidate.d.ts +0 -54
  521. package/dist/lib/rest/events/v1/sink/sinkValidate.js +0 -78
  522. package/dist/lib/rest/events/v1/sink.d.ts +0 -322
  523. package/dist/lib/rest/events/v1/sink.js +0 -289
  524. package/dist/lib/rest/events/v1/subscription/subscribedEvent.d.ts +0 -290
  525. package/dist/lib/rest/events/v1/subscription/subscribedEvent.js +0 -254
  526. package/dist/lib/rest/events/v1/subscription.d.ts +0 -324
  527. package/dist/lib/rest/events/v1/subscription.js +0 -277
  528. package/dist/lib/rest/flexApi/V1.d.ts +0 -70
  529. package/dist/lib/rest/flexApi/V1.js +0 -113
  530. package/dist/lib/rest/flexApi/V2.d.ts +0 -15
  531. package/dist/lib/rest/flexApi/V2.js +0 -36
  532. package/dist/lib/rest/flexApi/v1/assessments.d.ts +0 -81
  533. package/dist/lib/rest/flexApi/v1/assessments.js +0 -100
  534. package/dist/lib/rest/flexApi/v1/channel.d.ts +0 -280
  535. package/dist/lib/rest/flexApi/v1/channel.js +0 -251
  536. package/dist/lib/rest/flexApi/v1/configuration.d.ts +0 -368
  537. package/dist/lib/rest/flexApi/v1/configuration.js +0 -195
  538. package/dist/lib/rest/flexApi/v1/flexFlow.d.ts +0 -406
  539. package/dist/lib/rest/flexApi/v1/flexFlow.js +0 -336
  540. package/dist/lib/rest/flexApi/v1/insightsQuestionnairesCategory.d.ts +0 -168
  541. package/dist/lib/rest/flexApi/v1/insightsQuestionnairesCategory.js +0 -167
  542. package/dist/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +0 -208
  543. package/dist/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +0 -205
  544. package/dist/lib/rest/flexApi/v1/insightsSession.d.ts +0 -130
  545. package/dist/lib/rest/flexApi/v1/insightsSession.js +0 -115
  546. package/dist/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +0 -82
  547. package/dist/lib/rest/flexApi/v1/insightsSettingsAnswerSets.js +0 -83
  548. package/dist/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +0 -67
  549. package/dist/lib/rest/flexApi/v1/insightsSettingsComment.js +0 -79
  550. package/dist/lib/rest/flexApi/v1/insightsUserRoles.d.ts +0 -109
  551. package/dist/lib/rest/flexApi/v1/insightsUserRoles.js +0 -109
  552. package/dist/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +0 -181
  553. package/dist/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +0 -154
  554. package/dist/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +0 -238
  555. package/dist/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js +0 -222
  556. package/dist/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +0 -266
  557. package/dist/lib/rest/flexApi/v1/interaction/interactionChannel.js +0 -244
  558. package/dist/lib/rest/flexApi/v1/interaction.d.ts +0 -126
  559. package/dist/lib/rest/flexApi/v1/interaction.js +0 -152
  560. package/dist/lib/rest/flexApi/v1/webChannel.d.ts +0 -305
  561. package/dist/lib/rest/flexApi/v1/webChannel.js +0 -268
  562. package/dist/lib/rest/flexApi/v2/webChannels.d.ts +0 -65
  563. package/dist/lib/rest/flexApi/v2/webChannels.js +0 -82
  564. package/dist/lib/rest/frontlineApi/V1.d.ts +0 -15
  565. package/dist/lib/rest/frontlineApi/V1.js +0 -36
  566. package/dist/lib/rest/frontlineApi/v1/user.d.ts +0 -164
  567. package/dist/lib/rest/frontlineApi/v1/user.js +0 -150
  568. package/dist/lib/rest/insights/V1.d.ts +0 -35
  569. package/dist/lib/rest/insights/V1.js +0 -61
  570. package/dist/lib/rest/insights/v1/call/annotation.d.ts +0 -187
  571. package/dist/lib/rest/insights/v1/call/annotation.js +0 -166
  572. package/dist/lib/rest/insights/v1/call/callSummary.d.ts +0 -175
  573. package/dist/lib/rest/insights/v1/call/callSummary.js +0 -159
  574. package/dist/lib/rest/insights/v1/call/event.d.ts +0 -178
  575. package/dist/lib/rest/insights/v1/call/event.js +0 -144
  576. package/dist/lib/rest/insights/v1/call/metric.d.ts +0 -178
  577. package/dist/lib/rest/insights/v1/call/metric.js +0 -142
  578. package/dist/lib/rest/insights/v1/call.d.ts +0 -117
  579. package/dist/lib/rest/insights/v1/call.js +0 -159
  580. package/dist/lib/rest/insights/v1/callSummaries.d.ts +0 -316
  581. package/dist/lib/rest/insights/v1/callSummaries.js +0 -196
  582. package/dist/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +0 -375
  583. package/dist/lib/rest/insights/v1/conference/conferenceParticipant.js +0 -246
  584. package/dist/lib/rest/insights/v1/conference.d.ts +0 -377
  585. package/dist/lib/rest/insights/v1/conference.js +0 -248
  586. package/dist/lib/rest/insights/v1/room/participant.d.ts +0 -280
  587. package/dist/lib/rest/insights/v1/room/participant.js +0 -212
  588. package/dist/lib/rest/insights/v1/room.d.ts +0 -363
  589. package/dist/lib/rest/insights/v1/room.js +0 -244
  590. package/dist/lib/rest/insights/v1/setting.d.ts +0 -158
  591. package/dist/lib/rest/insights/v1/setting.js +0 -143
  592. package/dist/lib/rest/ipMessaging/V1.d.ts +0 -20
  593. package/dist/lib/rest/ipMessaging/V1.js +0 -42
  594. package/dist/lib/rest/ipMessaging/V2.d.ts +0 -20
  595. package/dist/lib/rest/ipMessaging/V2.js +0 -42
  596. package/dist/lib/rest/ipMessaging/v1/credential.d.ts +0 -303
  597. package/dist/lib/rest/ipMessaging/v1/credential.js +0 -274
  598. package/dist/lib/rest/ipMessaging/v1/service/channel/invite.d.ts +0 -256
  599. package/dist/lib/rest/ipMessaging/v1/service/channel/invite.js +0 -245
  600. package/dist/lib/rest/ipMessaging/v1/service/channel/member.d.ts +0 -303
  601. package/dist/lib/rest/ipMessaging/v1/service/channel/member.js +0 -276
  602. package/dist/lib/rest/ipMessaging/v1/service/channel/message.d.ts +0 -312
  603. package/dist/lib/rest/ipMessaging/v1/service/channel/message.js +0 -282
  604. package/dist/lib/rest/ipMessaging/v1/service/channel.d.ts +0 -349
  605. package/dist/lib/rest/ipMessaging/v1/service/channel.js +0 -323
  606. package/dist/lib/rest/ipMessaging/v1/service/role.d.ts +0 -274
  607. package/dist/lib/rest/ipMessaging/v1/service/role.js +0 -267
  608. package/dist/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +0 -163
  609. package/dist/lib/rest/ipMessaging/v1/service/user/userChannel.js +0 -139
  610. package/dist/lib/rest/ipMessaging/v1/service/user.d.ts +0 -318
  611. package/dist/lib/rest/ipMessaging/v1/service/user.js +0 -293
  612. package/dist/lib/rest/ipMessaging/v1/service.d.ts +0 -449
  613. package/dist/lib/rest/ipMessaging/v1/service.js +0 -454
  614. package/dist/lib/rest/ipMessaging/v2/credential.d.ts +0 -303
  615. package/dist/lib/rest/ipMessaging/v2/credential.js +0 -274
  616. package/dist/lib/rest/ipMessaging/v2/service/binding.d.ts +0 -249
  617. package/dist/lib/rest/ipMessaging/v2/service/binding.js +0 -222
  618. package/dist/lib/rest/ipMessaging/v2/service/channel/invite.d.ts +0 -256
  619. package/dist/lib/rest/ipMessaging/v2/service/channel/invite.js +0 -245
  620. package/dist/lib/rest/ipMessaging/v2/service/channel/member.d.ts +0 -354
  621. package/dist/lib/rest/ipMessaging/v2/service/channel/member.js +0 -306
  622. package/dist/lib/rest/ipMessaging/v2/service/channel/message.d.ts +0 -375
  623. package/dist/lib/rest/ipMessaging/v2/service/channel/message.js +0 -316
  624. package/dist/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +0 -311
  625. package/dist/lib/rest/ipMessaging/v2/service/channel/webhook.js +0 -288
  626. package/dist/lib/rest/ipMessaging/v2/service/channel.d.ts +0 -399
  627. package/dist/lib/rest/ipMessaging/v2/service/channel.js +0 -358
  628. package/dist/lib/rest/ipMessaging/v2/service/role.d.ts +0 -274
  629. package/dist/lib/rest/ipMessaging/v2/service/role.js +0 -267
  630. package/dist/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +0 -245
  631. package/dist/lib/rest/ipMessaging/v2/service/user/userBinding.js +0 -226
  632. package/dist/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +0 -283
  633. package/dist/lib/rest/ipMessaging/v2/service/user/userChannel.js +0 -257
  634. package/dist/lib/rest/ipMessaging/v2/service/user.d.ts +0 -331
  635. package/dist/lib/rest/ipMessaging/v2/service/user.js +0 -310
  636. package/dist/lib/rest/ipMessaging/v2/service.d.ts +0 -417
  637. package/dist/lib/rest/ipMessaging/v2/service.js +0 -401
  638. package/dist/lib/rest/lookups/V1.d.ts +0 -15
  639. package/dist/lib/rest/lookups/V1.js +0 -36
  640. package/dist/lib/rest/lookups/V2.d.ts +0 -15
  641. package/dist/lib/rest/lookups/V2.js +0 -36
  642. package/dist/lib/rest/lookups/v1/phoneNumber.d.ts +0 -149
  643. package/dist/lib/rest/lookups/v1/phoneNumber.js +0 -133
  644. package/dist/lib/rest/lookups/v2/phoneNumber.d.ts +0 -202
  645. package/dist/lib/rest/lookups/v2/phoneNumber.js +0 -158
  646. package/dist/lib/rest/media/V1.d.ts +0 -25
  647. package/dist/lib/rest/media/V1.js +0 -51
  648. package/dist/lib/rest/media/v1/mediaProcessor.d.ts +0 -318
  649. package/dist/lib/rest/media/v1/mediaProcessor.js +0 -256
  650. package/dist/lib/rest/media/v1/mediaRecording.d.ts +0 -310
  651. package/dist/lib/rest/media/v1/mediaRecording.js +0 -226
  652. package/dist/lib/rest/media/v1/playerStreamer/playbackGrant.d.ts +0 -151
  653. package/dist/lib/rest/media/v1/playerStreamer/playbackGrant.js +0 -146
  654. package/dist/lib/rest/media/v1/playerStreamer.d.ts +0 -328
  655. package/dist/lib/rest/media/v1/playerStreamer.js +0 -264
  656. package/dist/lib/rest/messaging/V1.d.ts +0 -50
  657. package/dist/lib/rest/messaging/V1.js +0 -82
  658. package/dist/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +0 -265
  659. package/dist/lib/rest/messaging/v1/brandRegistration/brandVetting.js +0 -224
  660. package/dist/lib/rest/messaging/v1/brandRegistration.d.ts +0 -344
  661. package/dist/lib/rest/messaging/v1/brandRegistration.js +0 -275
  662. package/dist/lib/rest/messaging/v1/deactivations.d.ts +0 -106
  663. package/dist/lib/rest/messaging/v1/deactivations.js +0 -107
  664. package/dist/lib/rest/messaging/v1/domainCerts.d.ts +0 -164
  665. package/dist/lib/rest/messaging/v1/domainCerts.js +0 -164
  666. package/dist/lib/rest/messaging/v1/domainConfig.d.ts +0 -153
  667. package/dist/lib/rest/messaging/v1/domainConfig.js +0 -152
  668. package/dist/lib/rest/messaging/v1/externalCampaign.d.ts +0 -79
  669. package/dist/lib/rest/messaging/v1/externalCampaign.js +0 -87
  670. package/dist/lib/rest/messaging/v1/service/alphaSender.d.ts +0 -264
  671. package/dist/lib/rest/messaging/v1/service/alphaSender.js +0 -231
  672. package/dist/lib/rest/messaging/v1/service/phoneNumber.d.ts +0 -270
  673. package/dist/lib/rest/messaging/v1/service/phoneNumber.js +0 -234
  674. package/dist/lib/rest/messaging/v1/service/shortCode.d.ts +0 -270
  675. package/dist/lib/rest/messaging/v1/service/shortCode.js +0 -234
  676. package/dist/lib/rest/messaging/v1/service/usAppToPerson.d.ts +0 -384
  677. package/dist/lib/rest/messaging/v1/service/usAppToPerson.js +0 -304
  678. package/dist/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +0 -62
  679. package/dist/lib/rest/messaging/v1/service/usAppToPersonUsecase.js +0 -79
  680. package/dist/lib/rest/messaging/v1/service.d.ts +0 -494
  681. package/dist/lib/rest/messaging/v1/service.js +0 -408
  682. package/dist/lib/rest/messaging/v1/tollfreeVerification.d.ts +0 -521
  683. package/dist/lib/rest/messaging/v1/tollfreeVerification.js +0 -396
  684. package/dist/lib/rest/messaging/v1/usecase.d.ts +0 -45
  685. package/dist/lib/rest/messaging/v1/usecase.js +0 -62
  686. package/dist/lib/rest/microvisor/V1.d.ts +0 -20
  687. package/dist/lib/rest/microvisor/V1.js +0 -42
  688. package/dist/lib/rest/microvisor/v1/app.d.ts +0 -240
  689. package/dist/lib/rest/microvisor/v1/app.js +0 -201
  690. package/dist/lib/rest/microvisor/v1/device.d.ts +0 -281
  691. package/dist/lib/rest/microvisor/v1/device.js +0 -217
  692. package/dist/lib/rest/monitor/V1.d.ts +0 -20
  693. package/dist/lib/rest/monitor/V1.js +0 -42
  694. package/dist/lib/rest/monitor/v1/alert.d.ts +0 -314
  695. package/dist/lib/rest/monitor/v1/alert.js +0 -212
  696. package/dist/lib/rest/monitor/v1/event.d.ts +0 -301
  697. package/dist/lib/rest/monitor/v1/event.js +0 -208
  698. package/dist/lib/rest/notify/V1.d.ts +0 -20
  699. package/dist/lib/rest/notify/V1.js +0 -42
  700. package/dist/lib/rest/notify/v1/credential.d.ts +0 -324
  701. package/dist/lib/rest/notify/v1/credential.js +0 -274
  702. package/dist/lib/rest/notify/v1/service/binding.d.ts +0 -337
  703. package/dist/lib/rest/notify/v1/service/binding.js +0 -268
  704. package/dist/lib/rest/notify/v1/service/notification.d.ts +0 -208
  705. package/dist/lib/rest/notify/v1/service/notification.js +0 -152
  706. package/dist/lib/rest/notify/v1/service.d.ts +0 -458
  707. package/dist/lib/rest/notify/v1/service.js +0 -369
  708. package/dist/lib/rest/numbers/V2.d.ts +0 -15
  709. package/dist/lib/rest/numbers/V2.js +0 -37
  710. package/dist/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +0 -219
  711. package/dist/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.js +0 -163
  712. package/dist/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +0 -231
  713. package/dist/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.js +0 -200
  714. package/dist/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.d.ts +0 -252
  715. package/dist/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.js +0 -227
  716. package/dist/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +0 -106
  717. package/dist/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.js +0 -97
  718. package/dist/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +0 -445
  719. package/dist/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +0 -354
  720. package/dist/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +0 -308
  721. package/dist/lib/rest/numbers/v2/regulatoryCompliance/endUser.js +0 -261
  722. package/dist/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +0 -211
  723. package/dist/lib/rest/numbers/v2/regulatoryCompliance/endUserType.js +0 -179
  724. package/dist/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +0 -239
  725. package/dist/lib/rest/numbers/v2/regulatoryCompliance/regulation.js +0 -189
  726. package/dist/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +0 -326
  727. package/dist/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.js +0 -267
  728. package/dist/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +0 -211
  729. package/dist/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.js +0 -179
  730. package/dist/lib/rest/numbers/v2/regulatoryCompliance.d.ts +0 -34
  731. package/dist/lib/rest/numbers/v2/regulatoryCompliance.js +0 -87
  732. package/dist/lib/rest/oauth/V1.d.ts +0 -35
  733. package/dist/lib/rest/oauth/V1.js +0 -61
  734. package/dist/lib/rest/oauth/v1/deviceCode.d.ts +0 -87
  735. package/dist/lib/rest/oauth/v1/deviceCode.js +0 -90
  736. package/dist/lib/rest/oauth/v1/oauth.d.ts +0 -84
  737. package/dist/lib/rest/oauth/v1/oauth.js +0 -102
  738. package/dist/lib/rest/oauth/v1/openidDiscovery.d.ts +0 -150
  739. package/dist/lib/rest/oauth/v1/openidDiscovery.js +0 -126
  740. package/dist/lib/rest/oauth/v1/token.d.ts +0 -88
  741. package/dist/lib/rest/oauth/v1/token.js +0 -98
  742. package/dist/lib/rest/oauth/v1/userInfo.d.ts +0 -108
  743. package/dist/lib/rest/oauth/v1/userInfo.js +0 -110
  744. package/dist/lib/rest/preview/DeployedDevices.d.ts +0 -15
  745. package/dist/lib/rest/preview/DeployedDevices.js +0 -36
  746. package/dist/lib/rest/preview/HostedNumbers.d.ts +0 -20
  747. package/dist/lib/rest/preview/HostedNumbers.js +0 -44
  748. package/dist/lib/rest/preview/Marketplace.d.ts +0 -20
  749. package/dist/lib/rest/preview/Marketplace.js +0 -44
  750. package/dist/lib/rest/preview/Sync.d.ts +0 -15
  751. package/dist/lib/rest/preview/Sync.js +0 -36
  752. package/dist/lib/rest/preview/Understand.d.ts +0 -15
  753. package/dist/lib/rest/preview/Understand.js +0 -36
  754. package/dist/lib/rest/preview/Wireless.d.ts +0 -25
  755. package/dist/lib/rest/preview/Wireless.js +0 -48
  756. package/dist/lib/rest/preview/deployed_devices/fleet/certificate.d.ts +0 -324
  757. package/dist/lib/rest/preview/deployed_devices/fleet/certificate.js +0 -269
  758. package/dist/lib/rest/preview/deployed_devices/fleet/deployment.d.ts +0 -318
  759. package/dist/lib/rest/preview/deployed_devices/fleet/deployment.js +0 -264
  760. package/dist/lib/rest/preview/deployed_devices/fleet/device.d.ts +0 -358
  761. package/dist/lib/rest/preview/deployed_devices/fleet/device.js +0 -284
  762. package/dist/lib/rest/preview/deployed_devices/fleet/key.d.ts +0 -330
  763. package/dist/lib/rest/preview/deployed_devices/fleet/key.js +0 -268
  764. package/dist/lib/rest/preview/deployed_devices/fleet.d.ts +0 -352
  765. package/dist/lib/rest/preview/deployed_devices/fleet.js +0 -307
  766. package/dist/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +0 -293
  767. package/dist/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.js +0 -174
  768. package/dist/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +0 -327
  769. package/dist/lib/rest/preview/hosted_numbers/authorizationDocument.js +0 -285
  770. package/dist/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +0 -468
  771. package/dist/lib/rest/preview/hosted_numbers/hostedNumberOrder.js +0 -345
  772. package/dist/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.d.ts +0 -219
  773. package/dist/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.js +0 -187
  774. package/dist/lib/rest/preview/marketplace/availableAddOn.d.ts +0 -231
  775. package/dist/lib/rest/preview/marketplace/availableAddOn.js +0 -196
  776. package/dist/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.d.ts +0 -251
  777. package/dist/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.js +0 -214
  778. package/dist/lib/rest/preview/marketplace/installedAddOn.d.ts +0 -332
  779. package/dist/lib/rest/preview/marketplace/installedAddOn.js +0 -281
  780. package/dist/lib/rest/preview/sync/service/document/documentPermission.d.ts +0 -280
  781. package/dist/lib/rest/preview/sync/service/document/documentPermission.js +0 -253
  782. package/dist/lib/rest/preview/sync/service/document.d.ts +0 -295
  783. package/dist/lib/rest/preview/sync/service/document.js +0 -281
  784. package/dist/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +0 -321
  785. package/dist/lib/rest/preview/sync/service/syncList/syncListItem.js +0 -280
  786. package/dist/lib/rest/preview/sync/service/syncList/syncListPermission.d.ts +0 -280
  787. package/dist/lib/rest/preview/sync/service/syncList/syncListPermission.js +0 -253
  788. package/dist/lib/rest/preview/sync/service/syncList.d.ts +0 -270
  789. package/dist/lib/rest/preview/sync/service/syncList.js +0 -263
  790. package/dist/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +0 -323
  791. package/dist/lib/rest/preview/sync/service/syncMap/syncMapItem.js +0 -284
  792. package/dist/lib/rest/preview/sync/service/syncMap/syncMapPermission.d.ts +0 -280
  793. package/dist/lib/rest/preview/sync/service/syncMap/syncMapPermission.js +0 -253
  794. package/dist/lib/rest/preview/sync/service/syncMap.d.ts +0 -270
  795. package/dist/lib/rest/preview/sync/service/syncMap.js +0 -263
  796. package/dist/lib/rest/preview/sync/service.d.ts +0 -330
  797. package/dist/lib/rest/preview/sync/service.js +0 -308
  798. package/dist/lib/rest/preview/understand/assistant/assistantFallbackActions.d.ts +0 -131
  799. package/dist/lib/rest/preview/understand/assistant/assistantFallbackActions.js +0 -142
  800. package/dist/lib/rest/preview/understand/assistant/assistantInitiationActions.d.ts +0 -131
  801. package/dist/lib/rest/preview/understand/assistant/assistantInitiationActions.js +0 -142
  802. package/dist/lib/rest/preview/understand/assistant/dialogue.d.ts +0 -105
  803. package/dist/lib/rest/preview/understand/assistant/dialogue.js +0 -120
  804. package/dist/lib/rest/preview/understand/assistant/fieldType/fieldValue.d.ts +0 -285
  805. package/dist/lib/rest/preview/understand/assistant/fieldType/fieldValue.js +0 -249
  806. package/dist/lib/rest/preview/understand/assistant/fieldType.d.ts +0 -318
  807. package/dist/lib/rest/preview/understand/assistant/fieldType.js +0 -277
  808. package/dist/lib/rest/preview/understand/assistant/modelBuild.d.ts +0 -320
  809. package/dist/lib/rest/preview/understand/assistant/modelBuild.js +0 -266
  810. package/dist/lib/rest/preview/understand/assistant/query.d.ts +0 -361
  811. package/dist/lib/rest/preview/understand/assistant/query.js +0 -286
  812. package/dist/lib/rest/preview/understand/assistant/styleSheet.d.ts +0 -140
  813. package/dist/lib/rest/preview/understand/assistant/styleSheet.js +0 -142
  814. package/dist/lib/rest/preview/understand/assistant/task/field.d.ts +0 -271
  815. package/dist/lib/rest/preview/understand/assistant/task/field.js +0 -243
  816. package/dist/lib/rest/preview/understand/assistant/task/sample.d.ts +0 -331
  817. package/dist/lib/rest/preview/understand/assistant/task/sample.js +0 -280
  818. package/dist/lib/rest/preview/understand/assistant/task/taskActions.d.ts +0 -145
  819. package/dist/lib/rest/preview/understand/assistant/task/taskActions.js +0 -150
  820. package/dist/lib/rest/preview/understand/assistant/task/taskStatistics.d.ts +0 -112
  821. package/dist/lib/rest/preview/understand/assistant/task/taskStatistics.js +0 -125
  822. package/dist/lib/rest/preview/understand/assistant/task.d.ts +0 -356
  823. package/dist/lib/rest/preview/understand/assistant/task.js +0 -326
  824. package/dist/lib/rest/preview/understand/assistant.d.ts +0 -422
  825. package/dist/lib/rest/preview/understand/assistant.js +0 -392
  826. package/dist/lib/rest/preview/wireless/command.d.ts +0 -266
  827. package/dist/lib/rest/preview/wireless/command.js +0 -232
  828. package/dist/lib/rest/preview/wireless/ratePlan.d.ts +0 -326
  829. package/dist/lib/rest/preview/wireless/ratePlan.js +0 -286
  830. package/dist/lib/rest/preview/wireless/sim/usage.d.ts +0 -131
  831. package/dist/lib/rest/preview/wireless/sim/usage.js +0 -133
  832. package/dist/lib/rest/preview/wireless/sim.d.ts +0 -361
  833. package/dist/lib/rest/preview/wireless/sim.js +0 -291
  834. package/dist/lib/rest/pricing/V1.d.ts +0 -25
  835. package/dist/lib/rest/pricing/V1.js +0 -48
  836. package/dist/lib/rest/pricing/V2.d.ts +0 -25
  837. package/dist/lib/rest/pricing/V2.js +0 -48
  838. package/dist/lib/rest/pricing/v1/messaging/country.d.ts +0 -233
  839. package/dist/lib/rest/pricing/v1/messaging/country.js +0 -190
  840. package/dist/lib/rest/pricing/v1/messaging.d.ts +0 -19
  841. package/dist/lib/rest/pricing/v1/messaging.js +0 -42
  842. package/dist/lib/rest/pricing/v1/phoneNumber/country.d.ts +0 -216
  843. package/dist/lib/rest/pricing/v1/phoneNumber/country.js +0 -182
  844. package/dist/lib/rest/pricing/v1/phoneNumber.d.ts +0 -19
  845. package/dist/lib/rest/pricing/v1/phoneNumber.js +0 -42
  846. package/dist/lib/rest/pricing/v1/voice/country.d.ts +0 -228
  847. package/dist/lib/rest/pricing/v1/voice/country.js +0 -187
  848. package/dist/lib/rest/pricing/v1/voice/number.d.ts +0 -127
  849. package/dist/lib/rest/pricing/v1/voice/number.js +0 -130
  850. package/dist/lib/rest/pricing/v1/voice.d.ts +0 -22
  851. package/dist/lib/rest/pricing/v1/voice.js +0 -51
  852. package/dist/lib/rest/pricing/v2/country.d.ts +0 -229
  853. package/dist/lib/rest/pricing/v2/country.js +0 -187
  854. package/dist/lib/rest/pricing/v2/number.d.ts +0 -158
  855. package/dist/lib/rest/pricing/v2/number.js +0 -137
  856. package/dist/lib/rest/pricing/v2/voice/country.d.ts +0 -229
  857. package/dist/lib/rest/pricing/v2/voice/country.js +0 -187
  858. package/dist/lib/rest/pricing/v2/voice/number.d.ts +0 -159
  859. package/dist/lib/rest/pricing/v2/voice/number.js +0 -137
  860. package/dist/lib/rest/pricing/v2/voice.d.ts +0 -22
  861. package/dist/lib/rest/pricing/v2/voice.js +0 -51
  862. package/dist/lib/rest/proxy/V1.d.ts +0 -15
  863. package/dist/lib/rest/proxy/V1.js +0 -36
  864. package/dist/lib/rest/proxy/v1/service/phoneNumber.d.ts +0 -340
  865. package/dist/lib/rest/proxy/v1/service/phoneNumber.js +0 -272
  866. package/dist/lib/rest/proxy/v1/service/session/interaction.d.ts +0 -309
  867. package/dist/lib/rest/proxy/v1/service/session/interaction.js +0 -238
  868. package/dist/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +0 -326
  869. package/dist/lib/rest/proxy/v1/service/session/participant/messageInteraction.js +0 -257
  870. package/dist/lib/rest/proxy/v1/service/session/participant.d.ts +0 -310
  871. package/dist/lib/rest/proxy/v1/service/session/participant.js +0 -266
  872. package/dist/lib/rest/proxy/v1/service/session.d.ts +0 -388
  873. package/dist/lib/rest/proxy/v1/service/session.js +0 -316
  874. package/dist/lib/rest/proxy/v1/service/shortCode.d.ts +0 -316
  875. package/dist/lib/rest/proxy/v1/service/shortCode.js +0 -262
  876. package/dist/lib/rest/proxy/v1/service.d.ts +0 -388
  877. package/dist/lib/rest/proxy/v1/service.js +0 -330
  878. package/dist/lib/rest/routes/V2.d.ts +0 -25
  879. package/dist/lib/rest/routes/V2.js +0 -48
  880. package/dist/lib/rest/routes/v2/phoneNumber.d.ts +0 -168
  881. package/dist/lib/rest/routes/v2/phoneNumber.js +0 -149
  882. package/dist/lib/rest/routes/v2/sipDomain.d.ts +0 -144
  883. package/dist/lib/rest/routes/v2/sipDomain.js +0 -149
  884. package/dist/lib/rest/routes/v2/trunk.d.ts +0 -168
  885. package/dist/lib/rest/routes/v2/trunk.js +0 -149
  886. package/dist/lib/rest/serverless/V1.d.ts +0 -15
  887. package/dist/lib/rest/serverless/V1.js +0 -36
  888. package/dist/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +0 -231
  889. package/dist/lib/rest/serverless/v1/service/asset/assetVersion.js +0 -197
  890. package/dist/lib/rest/serverless/v1/service/asset.d.ts +0 -298
  891. package/dist/lib/rest/serverless/v1/service/asset.js +0 -271
  892. package/dist/lib/rest/serverless/v1/service/build/buildStatus.d.ts +0 -107
  893. package/dist/lib/rest/serverless/v1/service/build/buildStatus.js +0 -123
  894. package/dist/lib/rest/serverless/v1/service/build.d.ts +0 -303
  895. package/dist/lib/rest/serverless/v1/service/build.js +0 -260
  896. package/dist/lib/rest/serverless/v1/service/environment/deployment.d.ts +0 -257
  897. package/dist/lib/rest/serverless/v1/service/environment/deployment.js +0 -220
  898. package/dist/lib/rest/serverless/v1/service/environment/log.d.ts +0 -273
  899. package/dist/lib/rest/serverless/v1/service/environment/log.js +0 -211
  900. package/dist/lib/rest/serverless/v1/service/environment/variable.d.ts +0 -318
  901. package/dist/lib/rest/serverless/v1/service/environment/variable.js +0 -272
  902. package/dist/lib/rest/serverless/v1/service/environment.d.ts +0 -308
  903. package/dist/lib/rest/serverless/v1/service/environment.js +0 -278
  904. package/dist/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.d.ts +0 -114
  905. package/dist/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.js +0 -131
  906. package/dist/lib/rest/serverless/v1/service/function/functionVersion.d.ts +0 -242
  907. package/dist/lib/rest/serverless/v1/service/function/functionVersion.js +0 -212
  908. package/dist/lib/rest/serverless/v1/service/function.d.ts +0 -298
  909. package/dist/lib/rest/serverless/v1/service/function.js +0 -271
  910. package/dist/lib/rest/serverless/v1/service.d.ts +0 -364
  911. package/dist/lib/rest/serverless/v1/service.js +0 -321
  912. package/dist/lib/rest/studio/V1.d.ts +0 -15
  913. package/dist/lib/rest/studio/V1.js +0 -36
  914. package/dist/lib/rest/studio/V2.d.ts +0 -20
  915. package/dist/lib/rest/studio/V2.js +0 -42
  916. package/dist/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +0 -109
  917. package/dist/lib/rest/studio/v1/flow/engagement/engagementContext.js +0 -123
  918. package/dist/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +0 -117
  919. package/dist/lib/rest/studio/v1/flow/engagement/step/stepContext.js +0 -131
  920. package/dist/lib/rest/studio/v1/flow/engagement/step.d.ts +0 -265
  921. package/dist/lib/rest/studio/v1/flow/engagement/step.js +0 -218
  922. package/dist/lib/rest/studio/v1/flow/engagement.d.ts +0 -300
  923. package/dist/lib/rest/studio/v1/flow/engagement.js +0 -269
  924. package/dist/lib/rest/studio/v1/flow/execution/executionContext.d.ts +0 -109
  925. package/dist/lib/rest/studio/v1/flow/execution/executionContext.js +0 -123
  926. package/dist/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +0 -117
  927. package/dist/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.js +0 -131
  928. package/dist/lib/rest/studio/v1/flow/execution/executionStep.d.ts +0 -265
  929. package/dist/lib/rest/studio/v1/flow/execution/executionStep.js +0 -218
  930. package/dist/lib/rest/studio/v1/flow/execution.d.ts +0 -338
  931. package/dist/lib/rest/studio/v1/flow/execution.js +0 -298
  932. package/dist/lib/rest/studio/v1/flow.d.ts +0 -266
  933. package/dist/lib/rest/studio/v1/flow.js +0 -231
  934. package/dist/lib/rest/studio/v2/flow/execution/executionContext.d.ts +0 -109
  935. package/dist/lib/rest/studio/v2/flow/execution/executionContext.js +0 -123
  936. package/dist/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +0 -117
  937. package/dist/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.js +0 -131
  938. package/dist/lib/rest/studio/v2/flow/execution/executionStep.d.ts +0 -265
  939. package/dist/lib/rest/studio/v2/flow/execution/executionStep.js +0 -218
  940. package/dist/lib/rest/studio/v2/flow/execution.d.ts +0 -332
  941. package/dist/lib/rest/studio/v2/flow/execution.js +0 -296
  942. package/dist/lib/rest/studio/v2/flow/flowRevision.d.ts +0 -253
  943. package/dist/lib/rest/studio/v2/flow/flowRevision.js +0 -199
  944. package/dist/lib/rest/studio/v2/flow/flowTestUser.d.ts +0 -121
  945. package/dist/lib/rest/studio/v2/flow/flowTestUser.js +0 -138
  946. package/dist/lib/rest/studio/v2/flow.d.ts +0 -361
  947. package/dist/lib/rest/studio/v2/flow.js +0 -319
  948. package/dist/lib/rest/studio/v2/flowValidate.d.ts +0 -60
  949. package/dist/lib/rest/studio/v2/flowValidate.js +0 -85
  950. package/dist/lib/rest/supersim/V1.d.ts +0 -55
  951. package/dist/lib/rest/supersim/V1.js +0 -86
  952. package/dist/lib/rest/supersim/v1/esimProfile.d.ts +0 -297
  953. package/dist/lib/rest/supersim/v1/esimProfile.js +0 -226
  954. package/dist/lib/rest/supersim/v1/fleet.d.ts +0 -363
  955. package/dist/lib/rest/supersim/v1/fleet.js +0 -277
  956. package/dist/lib/rest/supersim/v1/ipCommand.d.ts +0 -303
  957. package/dist/lib/rest/supersim/v1/ipCommand.js +0 -238
  958. package/dist/lib/rest/supersim/v1/network.d.ts +0 -229
  959. package/dist/lib/rest/supersim/v1/network.js +0 -185
  960. package/dist/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +0 -252
  961. package/dist/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.js +0 -227
  962. package/dist/lib/rest/supersim/v1/networkAccessProfile.d.ts +0 -296
  963. package/dist/lib/rest/supersim/v1/networkAccessProfile.js +0 -248
  964. package/dist/lib/rest/supersim/v1/settingsUpdate.d.ts +0 -194
  965. package/dist/lib/rest/supersim/v1/settingsUpdate.js +0 -136
  966. package/dist/lib/rest/supersim/v1/sim/billingPeriod.d.ts +0 -183
  967. package/dist/lib/rest/supersim/v1/sim/billingPeriod.js +0 -136
  968. package/dist/lib/rest/supersim/v1/sim/simIpAddress.d.ts +0 -147
  969. package/dist/lib/rest/supersim/v1/sim/simIpAddress.js +0 -124
  970. package/dist/lib/rest/supersim/v1/sim.d.ts +0 -341
  971. package/dist/lib/rest/supersim/v1/sim.js +0 -283
  972. package/dist/lib/rest/supersim/v1/smsCommand.d.ts +0 -271
  973. package/dist/lib/rest/supersim/v1/smsCommand.js +0 -222
  974. package/dist/lib/rest/supersim/v1/usageRecord.d.ts +0 -252
  975. package/dist/lib/rest/supersim/v1/usageRecord.js +0 -154
  976. package/dist/lib/rest/sync/V1.d.ts +0 -15
  977. package/dist/lib/rest/sync/V1.js +0 -36
  978. package/dist/lib/rest/sync/v1/service/document/documentPermission.d.ts +0 -280
  979. package/dist/lib/rest/sync/v1/service/document/documentPermission.js +0 -253
  980. package/dist/lib/rest/sync/v1/service/document.d.ts +0 -354
  981. package/dist/lib/rest/sync/v1/service/document.js +0 -289
  982. package/dist/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +0 -385
  983. package/dist/lib/rest/sync/v1/service/syncList/syncListItem.js +0 -296
  984. package/dist/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +0 -280
  985. package/dist/lib/rest/sync/v1/service/syncList/syncListPermission.js +0 -253
  986. package/dist/lib/rest/sync/v1/service/syncList.d.ts +0 -354
  987. package/dist/lib/rest/sync/v1/service/syncList.js +0 -298
  988. package/dist/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +0 -387
  989. package/dist/lib/rest/sync/v1/service/syncMap/syncMapItem.js +0 -300
  990. package/dist/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +0 -280
  991. package/dist/lib/rest/sync/v1/service/syncMap/syncMapPermission.js +0 -253
  992. package/dist/lib/rest/sync/v1/service/syncMap.d.ts +0 -354
  993. package/dist/lib/rest/sync/v1/service/syncMap.js +0 -298
  994. package/dist/lib/rest/sync/v1/service/syncStream/streamMessage.d.ts +0 -61
  995. package/dist/lib/rest/sync/v1/service/syncStream/streamMessage.js +0 -83
  996. package/dist/lib/rest/sync/v1/service/syncStream.d.ts +0 -336
  997. package/dist/lib/rest/sync/v1/service/syncStream.js +0 -279
  998. package/dist/lib/rest/sync/v1/service.d.ts +0 -404
  999. package/dist/lib/rest/sync/v1/service.js +0 -344
  1000. package/dist/lib/rest/taskrouter/V1.d.ts +0 -15
  1001. package/dist/lib/rest/taskrouter/V1.js +0 -36
  1002. package/dist/lib/rest/taskrouter/v1/workspace/activity.d.ts +0 -323
  1003. package/dist/lib/rest/taskrouter/v1/workspace/activity.js +0 -267
  1004. package/dist/lib/rest/taskrouter/v1/workspace/event.d.ts +0 -351
  1005. package/dist/lib/rest/taskrouter/v1/workspace/event.js +0 -231
  1006. package/dist/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +0 -412
  1007. package/dist/lib/rest/taskrouter/v1/workspace/task/reservation.js +0 -344
  1008. package/dist/lib/rest/taskrouter/v1/workspace/task.d.ts +0 -495
  1009. package/dist/lib/rest/taskrouter/v1/workspace/task.js +0 -341
  1010. package/dist/lib/rest/taskrouter/v1/workspace/taskChannel.d.ts +0 -324
  1011. package/dist/lib/rest/taskrouter/v1/workspace/taskChannel.js +0 -271
  1012. package/dist/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +0 -244
  1013. package/dist/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.js +0 -172
  1014. package/dist/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +0 -188
  1015. package/dist/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.js +0 -148
  1016. package/dist/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +0 -148
  1017. package/dist/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.js +0 -139
  1018. package/dist/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +0 -203
  1019. package/dist/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.js +0 -142
  1020. package/dist/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +0 -417
  1021. package/dist/lib/rest/taskrouter/v1/workspace/taskQueue.js +0 -349
  1022. package/dist/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +0 -401
  1023. package/dist/lib/rest/taskrouter/v1/workspace/worker/reservation.js +0 -338
  1024. package/dist/lib/rest/taskrouter/v1/workspace/worker/workerChannel.d.ts +0 -307
  1025. package/dist/lib/rest/taskrouter/v1/workspace/worker/workerChannel.js +0 -236
  1026. package/dist/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +0 -140
  1027. package/dist/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.js +0 -135
  1028. package/dist/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +0 -180
  1029. package/dist/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.js +0 -143
  1030. package/dist/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +0 -132
  1031. package/dist/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.js +0 -123
  1032. package/dist/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +0 -144
  1033. package/dist/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.js +0 -135
  1034. package/dist/lib/rest/taskrouter/v1/workspace/worker.d.ts +0 -454
  1035. package/dist/lib/rest/taskrouter/v1/workspace/worker.js +0 -370
  1036. package/dist/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +0 -244
  1037. package/dist/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.js +0 -171
  1038. package/dist/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +0 -158
  1039. package/dist/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.js +0 -137
  1040. package/dist/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +0 -148
  1041. package/dist/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.js +0 -139
  1042. package/dist/lib/rest/taskrouter/v1/workspace/workflow.d.ts +0 -384
  1043. package/dist/lib/rest/taskrouter/v1/workspace/workflow.js +0 -334
  1044. package/dist/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +0 -236
  1045. package/dist/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.js +0 -163
  1046. package/dist/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +0 -162
  1047. package/dist/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.js +0 -133
  1048. package/dist/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +0 -140
  1049. package/dist/lib/rest/taskrouter/v1/workspace/workspaceStatistics.js +0 -131
  1050. package/dist/lib/rest/taskrouter/v1/workspace.d.ts +0 -452
  1051. package/dist/lib/rest/taskrouter/v1/workspace.js +0 -418
  1052. package/dist/lib/rest/trunking/V1.d.ts +0 -15
  1053. package/dist/lib/rest/trunking/V1.js +0 -36
  1054. package/dist/lib/rest/trunking/v1/trunk/credentialList.d.ts +0 -258
  1055. package/dist/lib/rest/trunking/v1/trunk/credentialList.js +0 -230
  1056. package/dist/lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts +0 -258
  1057. package/dist/lib/rest/trunking/v1/trunk/ipAccessControlList.js +0 -230
  1058. package/dist/lib/rest/trunking/v1/trunk/originationUrl.d.ts +0 -340
  1059. package/dist/lib/rest/trunking/v1/trunk/originationUrl.js +0 -289
  1060. package/dist/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +0 -375
  1061. package/dist/lib/rest/trunking/v1/trunk/phoneNumber.js +0 -268
  1062. package/dist/lib/rest/trunking/v1/trunk/recording.d.ts +0 -129
  1063. package/dist/lib/rest/trunking/v1/trunk/recording.js +0 -140
  1064. package/dist/lib/rest/trunking/v1/trunk.d.ts +0 -431
  1065. package/dist/lib/rest/trunking/v1/trunk.js +0 -364
  1066. package/dist/lib/rest/trusthub/V1.d.ts +0 -45
  1067. package/dist/lib/rest/trusthub/V1.js +0 -76
  1068. package/dist/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.d.ts +0 -272
  1069. package/dist/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.js +0 -239
  1070. package/dist/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.d.ts +0 -252
  1071. package/dist/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.js +0 -227
  1072. package/dist/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +0 -239
  1073. package/dist/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.js +0 -212
  1074. package/dist/lib/rest/trusthub/v1/customerProfiles.d.ts +0 -380
  1075. package/dist/lib/rest/trusthub/v1/customerProfiles.js +0 -322
  1076. package/dist/lib/rest/trusthub/v1/endUser.d.ts +0 -310
  1077. package/dist/lib/rest/trusthub/v1/endUser.js +0 -261
  1078. package/dist/lib/rest/trusthub/v1/endUserType.d.ts +0 -211
  1079. package/dist/lib/rest/trusthub/v1/endUserType.js +0 -179
  1080. package/dist/lib/rest/trusthub/v1/policies.d.ts +0 -205
  1081. package/dist/lib/rest/trusthub/v1/policies.js +0 -177
  1082. package/dist/lib/rest/trusthub/v1/supportingDocument.d.ts +0 -320
  1083. package/dist/lib/rest/trusthub/v1/supportingDocument.js +0 -265
  1084. package/dist/lib/rest/trusthub/v1/supportingDocumentType.d.ts +0 -211
  1085. package/dist/lib/rest/trusthub/v1/supportingDocumentType.js +0 -179
  1086. package/dist/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.d.ts +0 -272
  1087. package/dist/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.js +0 -239
  1088. package/dist/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.d.ts +0 -252
  1089. package/dist/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.js +0 -227
  1090. package/dist/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +0 -239
  1091. package/dist/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.js +0 -212
  1092. package/dist/lib/rest/trusthub/v1/trustProducts.d.ts +0 -380
  1093. package/dist/lib/rest/trusthub/v1/trustProducts.js +0 -322
  1094. package/dist/lib/rest/verify/V2.d.ts +0 -40
  1095. package/dist/lib/rest/verify/V2.js +0 -69
  1096. package/dist/lib/rest/verify/v2/form.d.ts +0 -98
  1097. package/dist/lib/rest/verify/v2/form.js +0 -112
  1098. package/dist/lib/rest/verify/v2/safelist.d.ts +0 -127
  1099. package/dist/lib/rest/verify/v2/safelist.js +0 -150
  1100. package/dist/lib/rest/verify/v2/service/accessToken.d.ts +0 -158
  1101. package/dist/lib/rest/verify/v2/service/accessToken.js +0 -159
  1102. package/dist/lib/rest/verify/v2/service/entity/challenge/notification.d.ts +0 -112
  1103. package/dist/lib/rest/verify/v2/service/entity/challenge/notification.js +0 -102
  1104. package/dist/lib/rest/verify/v2/service/entity/challenge.d.ts +0 -384
  1105. package/dist/lib/rest/verify/v2/service/entity/challenge.js +0 -296
  1106. package/dist/lib/rest/verify/v2/service/entity/factor.d.ts +0 -335
  1107. package/dist/lib/rest/verify/v2/service/entity/factor.js +0 -270
  1108. package/dist/lib/rest/verify/v2/service/entity/newFactor.d.ts +0 -157
  1109. package/dist/lib/rest/verify/v2/service/entity/newFactor.js +0 -137
  1110. package/dist/lib/rest/verify/v2/service/entity.d.ts +0 -288
  1111. package/dist/lib/rest/verify/v2/service/entity.js +0 -270
  1112. package/dist/lib/rest/verify/v2/service/messagingConfiguration.d.ts +0 -286
  1113. package/dist/lib/rest/verify/v2/service/messagingConfiguration.js +0 -260
  1114. package/dist/lib/rest/verify/v2/service/rateLimit/bucket.d.ts +0 -318
  1115. package/dist/lib/rest/verify/v2/service/rateLimit/bucket.js +0 -272
  1116. package/dist/lib/rest/verify/v2/service/rateLimit.d.ts +0 -322
  1117. package/dist/lib/rest/verify/v2/service/rateLimit.js +0 -275
  1118. package/dist/lib/rest/verify/v2/service/verification.d.ts +0 -237
  1119. package/dist/lib/rest/verify/v2/service/verification.js +0 -217
  1120. package/dist/lib/rest/verify/v2/service/verificationCheck.d.ts +0 -134
  1121. package/dist/lib/rest/verify/v2/service/verificationCheck.js +0 -110
  1122. package/dist/lib/rest/verify/v2/service/webhook.d.ts +0 -340
  1123. package/dist/lib/rest/verify/v2/service/webhook.js +0 -287
  1124. package/dist/lib/rest/verify/v2/service.d.ts +0 -481
  1125. package/dist/lib/rest/verify/v2/service.js +0 -426
  1126. package/dist/lib/rest/verify/v2/template.d.ts +0 -172
  1127. package/dist/lib/rest/verify/v2/template.js +0 -128
  1128. package/dist/lib/rest/verify/v2/verificationAttempt.d.ts +0 -288
  1129. package/dist/lib/rest/verify/v2/verificationAttempt.js +0 -207
  1130. package/dist/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +0 -138
  1131. package/dist/lib/rest/verify/v2/verificationAttemptsSummary.js +0 -126
  1132. package/dist/lib/rest/video/V1.d.ts +0 -40
  1133. package/dist/lib/rest/video/V1.js +0 -69
  1134. package/dist/lib/rest/video/v1/composition.d.ts +0 -377
  1135. package/dist/lib/rest/video/v1/composition.js +0 -275
  1136. package/dist/lib/rest/video/v1/compositionHook.d.ts +0 -389
  1137. package/dist/lib/rest/video/v1/compositionHook.js +0 -310
  1138. package/dist/lib/rest/video/v1/compositionSettings.d.ts +0 -159
  1139. package/dist/lib/rest/video/v1/compositionSettings.js +0 -151
  1140. package/dist/lib/rest/video/v1/recording.d.ts +0 -335
  1141. package/dist/lib/rest/video/v1/recording.js +0 -236
  1142. package/dist/lib/rest/video/v1/recordingSettings.d.ts +0 -159
  1143. package/dist/lib/rest/video/v1/recordingSettings.js +0 -151
  1144. package/dist/lib/rest/video/v1/room/participant/anonymize.d.ts +0 -143
  1145. package/dist/lib/rest/video/v1/room/participant/anonymize.js +0 -135
  1146. package/dist/lib/rest/video/v1/room/participant/publishedTrack.d.ts +0 -237
  1147. package/dist/lib/rest/video/v1/room/participant/publishedTrack.js +0 -199
  1148. package/dist/lib/rest/video/v1/room/participant/subscribeRules.d.ts +0 -103
  1149. package/dist/lib/rest/video/v1/room/participant/subscribeRules.js +0 -103
  1150. package/dist/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +0 -243
  1151. package/dist/lib/rest/video/v1/room/participant/subscribedTrack.js +0 -201
  1152. package/dist/lib/rest/video/v1/room/participant.d.ts +0 -351
  1153. package/dist/lib/rest/video/v1/room/participant.js +0 -286
  1154. package/dist/lib/rest/video/v1/room/recordingRules.d.ts +0 -95
  1155. package/dist/lib/rest/video/v1/room/recordingRules.js +0 -98
  1156. package/dist/lib/rest/video/v1/room/roomRecording.d.ts +0 -318
  1157. package/dist/lib/rest/video/v1/room/roomRecording.js +0 -236
  1158. package/dist/lib/rest/video/v1/room.d.ts +0 -449
  1159. package/dist/lib/rest/video/v1/room.js +0 -339
  1160. package/dist/lib/rest/voice/V1.d.ts +0 -40
  1161. package/dist/lib/rest/voice/V1.js +0 -69
  1162. package/dist/lib/rest/voice/v1/archivedCall.d.ts +0 -51
  1163. package/dist/lib/rest/voice/v1/archivedCall.js +0 -71
  1164. package/dist/lib/rest/voice/v1/byocTrunk.d.ts +0 -393
  1165. package/dist/lib/rest/voice/v1/byocTrunk.js +0 -304
  1166. package/dist/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.d.ts +0 -340
  1167. package/dist/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.js +0 -280
  1168. package/dist/lib/rest/voice/v1/connectionPolicy.d.ts +0 -314
  1169. package/dist/lib/rest/voice/v1/connectionPolicy.js +0 -265
  1170. package/dist/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.d.ts +0 -59
  1171. package/dist/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.js +0 -77
  1172. package/dist/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.d.ts +0 -143
  1173. package/dist/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.js +0 -122
  1174. package/dist/lib/rest/voice/v1/dialingPermissions/country.d.ts +0 -279
  1175. package/dist/lib/rest/voice/v1/dialingPermissions/country.js +0 -214
  1176. package/dist/lib/rest/voice/v1/dialingPermissions/settings.d.ts +0 -129
  1177. package/dist/lib/rest/voice/v1/dialingPermissions/settings.js +0 -130
  1178. package/dist/lib/rest/voice/v1/dialingPermissions.d.ts +0 -25
  1179. package/dist/lib/rest/voice/v1/dialingPermissions.js +0 -60
  1180. package/dist/lib/rest/voice/v1/ipRecord.d.ts +0 -308
  1181. package/dist/lib/rest/voice/v1/ipRecord.js +0 -256
  1182. package/dist/lib/rest/voice/v1/sourceIpMapping.d.ts +0 -278
  1183. package/dist/lib/rest/voice/v1/sourceIpMapping.js +0 -252
  1184. package/dist/lib/rest/wireless/V1.d.ts +0 -30
  1185. package/dist/lib/rest/wireless/V1.js +0 -54
  1186. package/dist/lib/rest/wireless/v1/command.d.ts +0 -314
  1187. package/dist/lib/rest/wireless/v1/command.js +0 -253
  1188. package/dist/lib/rest/wireless/v1/ratePlan.d.ts +0 -382
  1189. package/dist/lib/rest/wireless/v1/ratePlan.js +0 -293
  1190. package/dist/lib/rest/wireless/v1/sim/dataSession.d.ts +0 -233
  1191. package/dist/lib/rest/wireless/v1/sim/dataSession.js +0 -152
  1192. package/dist/lib/rest/wireless/v1/sim/usageRecord.d.ts +0 -186
  1193. package/dist/lib/rest/wireless/v1/sim/usageRecord.js +0 -136
  1194. package/dist/lib/rest/wireless/v1/sim.d.ts +0 -465
  1195. package/dist/lib/rest/wireless/v1/sim.js +0 -332
  1196. package/dist/lib/rest/wireless/v1/usageRecord.d.ts +0 -179
  1197. package/dist/lib/rest/wireless/v1/usageRecord.js +0 -130
  1198. package/dist/lib/twiml/FaxResponse.d.ts +0 -66
  1199. package/dist/lib/twiml/FaxResponse.js +0 -67
  1200. package/dist/lib/twiml/MessagingResponse.d.ts +0 -117
  1201. package/dist/lib/twiml/MessagingResponse.js +0 -120
  1202. package/dist/lib/twiml/TwiML.d.ts +0 -42
  1203. package/dist/lib/twiml/TwiML.js +0 -83
  1204. package/dist/lib/twiml/VoiceResponse.d.ts +0 -2448
  1205. package/dist/lib/twiml/VoiceResponse.js +0 -1434
  1206. package/dist/lib/webhooks/webhooks.d.ts +0 -136
  1207. package/dist/lib/webhooks/webhooks.js +0 -302
  1208. package/dist/package.json +0 -80
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "4.0.0",
4
+ "version": "4.0.1",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {
@@ -55,10 +55,10 @@
55
55
  "test": "npm run test:javascript && npm run test:typescript",
56
56
  "test:javascript": "jest spec/* --coverage --detectOpenHandles",
57
57
  "test:typescript": "tsc --noEmit",
58
- "jshint": "jshint lib/rest/** lib/base/** lib/http/**",
59
- "jscs": "eslint lib/base/**/**.js lib/http/**/**.js --fix",
58
+ "jshint": "jshint src/rest/** src/base/** src/http/**",
59
+ "jscs": "eslint src/base/**/**.js src/http/**/**.js --fix",
60
60
  "prepublish": "npm run build",
61
- "build": "tsc && cp package.json dist/",
61
+ "build": "tsc",
62
62
  "check": "npm run jshint && npm run jscs",
63
63
  "ci": "npm run test && npm run nsp && npm run prettier-check",
64
64
  "nsp": "npm audit --production",
@@ -66,13 +66,13 @@
66
66
  "prettier-check": "prettier --check .",
67
67
  "cluster": "jest ./cluster_test.spec.ts --coverage",
68
68
  "webhook-test": "jest ./webhook_cluster_test.spec.ts --coverage",
69
- "typedoc": "typedoc --entryPointStrategy expand lib --out docs --logLevel Error"
69
+ "typedoc": "typedoc --entryPointStrategy expand src --out docs --logLevel Error"
70
70
  },
71
71
  "files": [
72
- "dist"
72
+ "list"
73
73
  ],
74
- "main": "./dist/lib",
75
- "types": "./dist/index.d.ts",
74
+ "main": "./lib",
75
+ "types": "./index.d.ts",
76
76
  "engines": {
77
77
  "node": ">=14.0"
78
78
  },
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import lib from "./lib";
2
- export default lib;
package/dist/index.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const lib_1 = __importDefault(require("./lib"));
7
- exports.default = lib_1.default;
@@ -1,81 +0,0 @@
1
- /// <reference types="node" />
2
- import RequestClient from "./RequestClient";
3
- import { HttpMethod } from "../interfaces";
4
- export interface ClientOpts {
5
- httpClient?: RequestClient;
6
- accountSid?: string;
7
- env?: NodeJS.ProcessEnv;
8
- edge?: string;
9
- region?: string;
10
- lazyLoading?: boolean;
11
- logLevel?: string;
12
- userAgentExtensions?: string[];
13
- autoRetry?: boolean;
14
- maxRetries?: number;
15
- }
16
- export interface RequestOpts {
17
- method?: HttpMethod;
18
- uri?: string;
19
- username?: string;
20
- password?: string;
21
- headers?: Headers;
22
- params?: object;
23
- data?: object;
24
- timeout?: number;
25
- allowRedirects?: boolean;
26
- logLevel?: string;
27
- }
28
- /**
29
- * Parent class for Twilio Client that implements request & validation logic
30
- */
31
- export declare class BaseTwilio {
32
- username: string;
33
- password: string;
34
- accountSid: string;
35
- opts?: ClientOpts;
36
- env?: NodeJS.ProcessEnv;
37
- edge?: string;
38
- region?: string;
39
- logLevel?: string;
40
- autoRetry: boolean;
41
- maxRetries?: number;
42
- userAgentExtensions?: string[];
43
- _httpClient?: RequestClient;
44
- /**
45
- * Create a BaseTwilio instance
46
- *
47
- * @param username -
48
- * The username used for authentication. This is normally account sid, but if using key/secret auth will be
49
- * the api key sid.
50
- * @param password -
51
- * The password used for authentication. This is normally auth token, but if using key/secret auth will be
52
- * the secret.
53
- * @param opts - The options argument
54
- *
55
- * @returns A new instance of BaseTwilio
56
- */
57
- constructor(username?: string, password?: string, opts?: ClientOpts);
58
- get httpClient(): RequestClient;
59
- /**
60
- * Makes a request to the Twilio API using the configured http client.
61
- * Authentication information is automatically added if none is provided.
62
- *
63
- * @param opts - The options argument
64
- */
65
- request(opts: RequestOpts): Promise<any>;
66
- /**
67
- * Adds a region and/or edge to a given hostname
68
- *
69
- * @param hostname - A URI hostname (e.g. api.twilio.com)
70
- * @param targetEdge - The targeted edge location (e.g. sydney)
71
- * @param targetRegion - The targeted region location (e.g. au1)
72
- */
73
- getHostname(hostname: string, targetEdge: string | undefined, targetRegion: string | undefined): string;
74
- /**
75
- * Validates that a request to the new SSL certificate is successful.
76
- *
77
- * @throws RestException if the request fails
78
- *
79
- */
80
- validateSslCert(): Promise<any>;
81
- }
@@ -1,172 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.BaseTwilio = void 0;
7
- const RequestClient_1 = __importDefault(require("./RequestClient")); /* jshint ignore:line */
8
- const os = require("os"); /* jshint ignore:line */
9
- const url = require("url"); /* jshint ignore:line */
10
- const moduleInfo = require("../../package.json"); /* jshint ignore:line */
11
- const util = require("util"); /* jshint ignore:line */
12
- const RestException = require("../base/RestException"); /* jshint ignore:line */
13
- /* jshint ignore:start */
14
- /**
15
- * Parent class for Twilio Client that implements request & validation logic
16
- */
17
- /* jshint ignore:end */
18
- class BaseTwilio {
19
- /* jshint ignore:start */
20
- /**
21
- * Create a BaseTwilio instance
22
- *
23
- * @param username -
24
- * The username used for authentication. This is normally account sid, but if using key/secret auth will be
25
- * the api key sid.
26
- * @param password -
27
- * The password used for authentication. This is normally auth token, but if using key/secret auth will be
28
- * the secret.
29
- * @param opts - The options argument
30
- *
31
- * @returns A new instance of BaseTwilio
32
- */
33
- /* jshint ignore:end */
34
- constructor(username, password, opts) {
35
- this.opts = opts || {};
36
- this.env = this.opts.env || process.env;
37
- this.username =
38
- username ||
39
- this.env.TWILIO_ACCOUNT_SID ||
40
- (() => {
41
- throw new Error("username is required");
42
- })();
43
- this.password =
44
- password ||
45
- this.env.TWILIO_AUTH_TOKEN ||
46
- (() => {
47
- throw new Error("password is required");
48
- })();
49
- this.accountSid = this.opts.accountSid || this.username;
50
- this.edge = this.opts.edge || this.env.TWILIO_EDGE;
51
- this.region = this.opts.region || this.env.TWILIO_REGION;
52
- this.logLevel = this.opts.logLevel || this.env.TWILIO_LOG_LEVEL;
53
- this.autoRetry = this.opts.autoRetry || false;
54
- this.maxRetries = this.opts.maxRetries;
55
- this.userAgentExtensions = this.opts.userAgentExtensions || [];
56
- this._httpClient = this.opts.httpClient;
57
- if (this.opts.lazyLoading === false) {
58
- this._httpClient = this.httpClient;
59
- }
60
- if (!this.accountSid.startsWith("AC")) {
61
- const apiKeyMsg = this.accountSid.startsWith("SK")
62
- ? ". The given SID indicates an API Key which requires the accountSid to be passed as an additional option"
63
- : "";
64
- throw new Error("accountSid must start with AC" + apiKeyMsg);
65
- }
66
- }
67
- get httpClient() {
68
- if (!this._httpClient) {
69
- this._httpClient = new RequestClient_1.default({
70
- autoRetry: this.autoRetry,
71
- maxRetries: this.maxRetries,
72
- });
73
- }
74
- return this._httpClient;
75
- }
76
- /* jshint ignore:start */
77
- /**
78
- * Makes a request to the Twilio API using the configured http client.
79
- * Authentication information is automatically added if none is provided.
80
- *
81
- * @param opts - The options argument
82
- */
83
- /* jshint ignore:end */
84
- request(opts) {
85
- opts = opts || {};
86
- if (!opts.method) {
87
- throw new Error("method is required");
88
- }
89
- if (!opts.uri) {
90
- throw new Error("uri is required");
91
- }
92
- const username = opts.username || this.username;
93
- const password = opts.password || this.password;
94
- const headers = opts.headers || {};
95
- const pkgVersion = moduleInfo.version;
96
- const osName = os.platform();
97
- const osArch = os.arch();
98
- const nodeVersion = process.version;
99
- headers["User-Agent"] = util.format("twilio-node/%s (%s %s) node/%s", pkgVersion, osName, osArch, nodeVersion);
100
- this.userAgentExtensions?.forEach((extension) => {
101
- headers["User-Agent"] += ` ${extension}`;
102
- });
103
- headers["Accept-Charset"] = "utf-8";
104
- if (opts.method === "post" && !headers["Content-Type"]) {
105
- headers["Content-Type"] = "application/x-www-form-urlencoded";
106
- }
107
- if (!headers["Accept"]) {
108
- headers["Accept"] = "application/json";
109
- }
110
- var uri = new url.URL(opts.uri);
111
- uri.hostname = this.getHostname(uri.hostname, this.edge, this.region);
112
- return this.httpClient?.request({
113
- method: opts.method,
114
- uri: uri.href,
115
- username: username,
116
- password: password,
117
- headers: headers,
118
- params: opts.params,
119
- data: opts.data,
120
- timeout: opts.timeout,
121
- allowRedirects: opts.allowRedirects,
122
- logLevel: opts.logLevel,
123
- });
124
- }
125
- /* jshint ignore:start */
126
- /**
127
- * Adds a region and/or edge to a given hostname
128
- *
129
- * @param hostname - A URI hostname (e.g. api.twilio.com)
130
- * @param targetEdge - The targeted edge location (e.g. sydney)
131
- * @param targetRegion - The targeted region location (e.g. au1)
132
- */
133
- /* jshint ignore:end */
134
- getHostname(hostname, targetEdge, targetRegion) {
135
- const defaultRegion = "us1";
136
- const domain = hostname.split(".").slice(-2).join(".");
137
- const prefix = hostname.split("." + domain)[0];
138
- let [product, edge, region] = prefix.split(".");
139
- if (edge && !region) {
140
- region = edge;
141
- edge = undefined;
142
- }
143
- region = targetRegion || region || (targetEdge && defaultRegion);
144
- if (!region) {
145
- return hostname;
146
- }
147
- edge = targetEdge || edge;
148
- return [product, edge, region, domain].filter((part) => part).join(".");
149
- }
150
- /* jshint ignore:start */
151
- /**
152
- * Validates that a request to the new SSL certificate is successful.
153
- *
154
- * @throws RestException if the request fails
155
- *
156
- */
157
- /* jshint ignore:end */
158
- validateSslCert() {
159
- return this.httpClient
160
- ?.request({
161
- method: "get",
162
- uri: "https://api.twilio.com:8443/2010-04-01/.json",
163
- })
164
- .then((response) => {
165
- if (response["statusCode"] < 200 || response["statusCode"] >= 300) {
166
- throw new RestException(response);
167
- }
168
- return response;
169
- });
170
- }
171
- }
172
- exports.BaseTwilio = BaseTwilio;
@@ -1,29 +0,0 @@
1
- import { BaseTwilio, RequestOpts } from "./BaseTwilio";
2
- /**
3
- * Base domain object
4
- */
5
- export default class Domain {
6
- twilio: BaseTwilio;
7
- baseUrl: string;
8
- /**
9
- * Creates a Domain instance
10
- *
11
- * @param twilio - A Twilio Client
12
- * @param baseUrl - Base url for this domain
13
- */
14
- constructor(twilio: BaseTwilio, baseUrl: string);
15
- /**
16
- * Turn a uri into an absolute url
17
- *
18
- * @param uri - uri to transform
19
- * @returns absolute url
20
- */
21
- absoluteUrl(uri?: string): string;
22
- /**
23
- * Make request to this domain
24
- *
25
- * @param opts - request options
26
- * @returns request promise
27
- */
28
- request(opts: RequestOpts): Promise<any>;
29
- }
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utility_1 = require("./utility");
4
- /**
5
- * Base domain object
6
- */
7
- class Domain {
8
- /**
9
- * Creates a Domain instance
10
- *
11
- * @param twilio - A Twilio Client
12
- * @param baseUrl - Base url for this domain
13
- */
14
- constructor(twilio, baseUrl) {
15
- this.twilio = twilio;
16
- this.baseUrl = baseUrl;
17
- }
18
- /**
19
- * Turn a uri into an absolute url
20
- *
21
- * @param uri - uri to transform
22
- * @returns absolute url
23
- */
24
- absoluteUrl(uri) {
25
- var result = "";
26
- if (typeof this.baseUrl === "string") {
27
- const cleanBaseUrl = (0, utility_1.trim)(this.baseUrl, "/");
28
- result += cleanBaseUrl;
29
- result += "/";
30
- }
31
- if (typeof uri === "string") {
32
- uri = (0, utility_1.trim)(uri, "/");
33
- if (result === "") {
34
- result += "/";
35
- }
36
- result += uri;
37
- }
38
- return result;
39
- }
40
- /**
41
- * Make request to this domain
42
- *
43
- * @param opts - request options
44
- * @returns request promise
45
- */
46
- request(opts) {
47
- return this.twilio.request({
48
- ...opts,
49
- uri: this.absoluteUrl(opts.uri),
50
- });
51
- }
52
- }
53
- exports.default = Domain;
@@ -1,104 +0,0 @@
1
- import Version from "./Version";
2
- import Response from "../http/response";
3
- export interface TwilioResponsePayload {
4
- [key: string]: any;
5
- first_page_uri: string;
6
- next_page_uri: string;
7
- page: number;
8
- page_size: number;
9
- previous_page_uri: string;
10
- uri: string;
11
- meta?: {
12
- key?: string;
13
- next_page_url?: string;
14
- previous_page_url?: string;
15
- };
16
- }
17
- interface Solution {
18
- [name: string]: any;
19
- }
20
- export default class Page<TVersion extends Version, TPayload extends TwilioResponsePayload, TResource, TInstance> {
21
- nextPageUrl?: string;
22
- previousPageUrl?: string;
23
- instances: TInstance[];
24
- _version: TVersion;
25
- _payload: TPayload;
26
- _solution: Solution;
27
- /**
28
- *
29
- * Base page object to maintain request state.
30
- *
31
- * @param version - A twilio version instance
32
- * @param response - The http response
33
- * @param solution - path solution
34
- */
35
- constructor(version: TVersion, response: Response<string | TPayload>, solution: Solution);
36
- /**
37
- * Meta keys returned in a list request
38
- *
39
- * @constant META_KEYS
40
- */
41
- static META_KEYS: string[];
42
- /**
43
- * Get the url of the previous page of records
44
- *
45
- * @returns url of the previous page, or undefined if the
46
- * previous page URI/URL is not defined.
47
- */
48
- getPreviousPageUrl(): string | undefined;
49
- /**
50
- * Get the url of the next page of records
51
- *
52
- * @returns url of the next page, or undefined if the
53
- * next page URI/URL is not defined.
54
- */
55
- getNextPageUrl(): string | undefined;
56
- /**
57
- * Build a new instance given a json payload
58
- *
59
- * @param payload - Payload response from the API
60
- * @returns instance of a resource
61
- */
62
- getInstance(payload: any): TInstance;
63
- /**
64
- * Load a list of records
65
- *
66
- * @param resources - json payload of records
67
- * @returns list of resources
68
- */
69
- loadInstances(resources: TResource[]): TInstance[];
70
- /**
71
- * Fetch the next page of records
72
- *
73
- * @returns promise that resolves to next page of results,
74
- * or undefined if there isn't a nextPageUrl undefined.
75
- */
76
- nextPage(): Promise<Page<TVersion, TPayload, TResource, TInstance>> | undefined;
77
- /**
78
- * Fetch the previous page of records
79
- *
80
- * @returns promise that resolves to previous page of
81
- * results, or undefined if there isn't a previousPageUrl undefined.
82
- */
83
- previousPage(): Promise<Page<TVersion, TPayload, TResource, TInstance>> | undefined;
84
- /**
85
- * Parse json response from API
86
- *
87
- * @param response - API response
88
- *
89
- * @throws Error If non 200 status code is returned
90
- *
91
- * @returns json parsed response
92
- */
93
- processResponse(response: Response<string | TPayload>): TPayload;
94
- /**
95
- * Load a page of records
96
- *
97
- * @param {object} payload json payload
98
- * @return {array} the page of records
99
- */
100
- loadPage(payload: TPayload): TResource[];
101
- forOwn(obj: object, iteratee: (val: any, key: string, object: object) => void): void;
102
- toJSON(): object;
103
- }
104
- export {};
@@ -1,192 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const RestException_1 = __importDefault(require("./RestException"));
7
- class Page {
8
- /**
9
- *
10
- * Base page object to maintain request state.
11
- *
12
- * @param version - A twilio version instance
13
- * @param response - The http response
14
- * @param solution - path solution
15
- */
16
- constructor(version, response, solution) {
17
- let payload = this.processResponse(response);
18
- this._version = version;
19
- this._payload = payload;
20
- this._solution = solution;
21
- this.nextPageUrl = this.getNextPageUrl();
22
- this.previousPageUrl = this.getPreviousPageUrl();
23
- this.instances = this.loadInstances(this.loadPage(payload));
24
- }
25
- /**
26
- * Get the url of the previous page of records
27
- *
28
- * @returns url of the previous page, or undefined if the
29
- * previous page URI/URL is not defined.
30
- */
31
- getPreviousPageUrl() {
32
- if (this._payload.meta &&
33
- "previous_page_url" in this._payload.meta &&
34
- this._payload.meta.previous_page_url) {
35
- // jshint ignore:line
36
- return this._payload.meta.previous_page_url; // jshint ignore:line
37
- }
38
- if ("previous_page_uri" in this._payload &&
39
- this._payload.previous_page_uri) {
40
- // jshint ignore:line
41
- return this._version._domain.absoluteUrl(this._payload.previous_page_uri); // jshint ignore:line
42
- }
43
- return undefined;
44
- }
45
- /**
46
- * Get the url of the next page of records
47
- *
48
- * @returns url of the next page, or undefined if the
49
- * next page URI/URL is not defined.
50
- */
51
- getNextPageUrl() {
52
- if (this._payload.meta &&
53
- "next_page_url" in this._payload.meta &&
54
- this._payload.meta.next_page_url) {
55
- // jshint ignore:line
56
- return this._payload.meta.next_page_url; // jshint ignore:line
57
- }
58
- if ("next_page_uri" in this._payload && this._payload.next_page_uri) {
59
- // jshint ignore:line
60
- return this._version._domain.absoluteUrl(this._payload.next_page_uri); // jshint ignore:line
61
- }
62
- return undefined;
63
- }
64
- /**
65
- * Build a new instance given a json payload
66
- *
67
- * @param payload - Payload response from the API
68
- * @returns instance of a resource
69
- */
70
- getInstance(payload) {
71
- throw new Error("Page.get_instance() must be implemented in the derived class");
72
- }
73
- /**
74
- * Load a list of records
75
- *
76
- * @param resources - json payload of records
77
- * @returns list of resources
78
- */
79
- loadInstances(resources) {
80
- let instances = [];
81
- resources.forEach((resource) => {
82
- instances.push(this.getInstance(resource));
83
- });
84
- return instances;
85
- }
86
- /**
87
- * Fetch the next page of records
88
- *
89
- * @returns promise that resolves to next page of results,
90
- * or undefined if there isn't a nextPageUrl undefined.
91
- */
92
- nextPage() {
93
- if (!this.nextPageUrl) {
94
- return undefined;
95
- }
96
- var reqPromise = this._version._domain.twilio.request({
97
- method: "get",
98
- uri: this.nextPageUrl,
99
- });
100
- var nextPagePromise = reqPromise.then(function (response) {
101
- return new this.constructor(this._version, response, this._solution);
102
- }.bind(this));
103
- return nextPagePromise;
104
- }
105
- /**
106
- * Fetch the previous page of records
107
- *
108
- * @returns promise that resolves to previous page of
109
- * results, or undefined if there isn't a previousPageUrl undefined.
110
- */
111
- previousPage() {
112
- if (!this.previousPageUrl) {
113
- return undefined;
114
- }
115
- var reqPromise = this._version._domain.twilio.request({
116
- method: "get",
117
- uri: this.previousPageUrl,
118
- });
119
- var prevPagePromise = reqPromise.then(function (response) {
120
- return new this.constructor(this._version, response, this._solution);
121
- }.bind(this));
122
- return prevPagePromise;
123
- }
124
- /**
125
- * Parse json response from API
126
- *
127
- * @param response - API response
128
- *
129
- * @throws Error If non 200 status code is returned
130
- *
131
- * @returns json parsed response
132
- */
133
- processResponse(response) {
134
- if (response.statusCode !== 200) {
135
- throw new RestException_1.default(response);
136
- }
137
- if (typeof response.body === "string") {
138
- return JSON.parse(response.body);
139
- }
140
- return response.body;
141
- }
142
- /**
143
- * Load a page of records
144
- *
145
- * @param {object} payload json payload
146
- * @return {array} the page of records
147
- */
148
- loadPage(payload) {
149
- if (payload.meta?.key) {
150
- return payload[payload.meta.key];
151
- }
152
- const keys = Object.keys(payload).filter((key) => !Page.META_KEYS.includes(key));
153
- if (keys.length === 1) {
154
- return payload[keys[0]];
155
- }
156
- throw new Error("Page Records cannot be deserialized");
157
- }
158
- forOwn(obj, iteratee) {
159
- obj = Object(obj);
160
- for (const [key, val] of Object.entries(obj)) {
161
- iteratee(val, key, obj);
162
- }
163
- }
164
- toJSON() {
165
- const clone = {};
166
- this.forOwn(this, (value, key) => {
167
- if (!key.startsWith("_") && typeof value !== "function") {
168
- clone[key] = value;
169
- }
170
- });
171
- return clone;
172
- }
173
- }
174
- exports.default = Page;
175
- /**
176
- * Meta keys returned in a list request
177
- *
178
- * @constant META_KEYS
179
- */
180
- Page.META_KEYS = [
181
- "end",
182
- "first_page_uri",
183
- "last_page_uri",
184
- "next_page_uri",
185
- "num_pages",
186
- "page",
187
- "page_size",
188
- "previous_page_uri",
189
- "start",
190
- "total",
191
- "uri",
192
- ];