bandwidth-sdk 3.1.0 → 3.1.2

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 (373) hide show
  1. package/.github/workflows/test-smoke.yml +0 -2
  2. package/bandwidth.yml +27 -21
  3. package/coverage/clover.xml +10 -9
  4. package/coverage/coverage-final.json +1 -1
  5. package/coverage/lcov-report/index.html +14 -14
  6. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1 -1
  7. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +1 -1
  8. package/coverage/lcov-report/node-sdk/api/index.html +1 -1
  9. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1 -1
  10. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1 -1
  11. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
  12. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +1 -1
  13. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +1 -1
  14. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +1 -1
  15. package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1 -1
  16. package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
  17. package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
  18. package/coverage/lcov-report/node-sdk/common.ts.html +1 -1
  19. package/coverage/lcov-report/node-sdk/configuration.ts.html +1 -1
  20. package/coverage/lcov-report/node-sdk/index.html +1 -1
  21. package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
  22. package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
  23. package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
  24. package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
  25. package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +12 -9
  26. package/coverage/lcov-report/node-sdk/models/bxml/index.html +10 -10
  27. package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
  28. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
  29. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
  30. package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
  31. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
  32. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
  33. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
  34. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
  35. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
  36. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
  37. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
  38. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
  39. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
  40. package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
  41. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
  42. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
  43. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
  44. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
  45. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
  46. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
  47. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
  48. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
  49. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
  50. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
  51. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
  52. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
  53. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
  54. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
  55. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
  56. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
  57. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
  58. package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +1 -1
  59. package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
  60. package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +1 -1
  61. package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +1 -1
  62. package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
  63. package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
  64. package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
  65. package/coverage/lcov-report/node-sdk/models/index.html +1 -1
  66. package/coverage/lcov-report/node-sdk/models/index.ts.html +1 -1
  67. package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
  68. package/coverage/lcov-report/node-sdk/models/lookup-status-enum.ts.html +1 -1
  69. package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
  70. package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
  71. package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
  72. package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
  73. package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +1 -1
  74. package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
  75. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
  76. package/coverage/lcov.info +10 -8
  77. package/custom_templates/tsconfig.mustache +1 -2
  78. package/dist/api/calls-api.d.ts +261 -0
  79. package/dist/api/calls-api.js +656 -0
  80. package/dist/api/conferences-api.d.ts +422 -0
  81. package/dist/api/conferences-api.js +1045 -0
  82. package/dist/api/media-api.d.ts +201 -0
  83. package/dist/api/media-api.js +527 -0
  84. package/dist/api/messages-api.d.ts +176 -0
  85. package/dist/api/messages-api.js +420 -0
  86. package/dist/api/mfaapi.d.ts +156 -0
  87. package/dist/api/mfaapi.js +416 -0
  88. package/dist/api/phone-number-lookup-api.d.ts +117 -0
  89. package/dist/api/phone-number-lookup-api.js +322 -0
  90. package/dist/api/recordings-api.d.ts +462 -0
  91. package/dist/api/recordings-api.js +1143 -0
  92. package/dist/api/statistics-api.d.ts +74 -0
  93. package/dist/api/statistics-api.js +222 -0
  94. package/dist/api/transcriptions-api.d.ts +161 -0
  95. package/dist/api/transcriptions-api.js +427 -0
  96. package/dist/api.d.ts +20 -0
  97. package/dist/api.js +38 -0
  98. package/dist/base.d.ts +66 -0
  99. package/dist/base.js +321 -0
  100. package/dist/common.d.ts +65 -0
  101. package/dist/common.js +253 -0
  102. package/dist/configuration.d.ts +91 -0
  103. package/dist/configuration.js +45 -0
  104. package/dist/index.d.ts +14 -0
  105. package/dist/index.js +32 -0
  106. package/dist/models/account-statistics.d.ts +30 -0
  107. package/dist/models/account-statistics.js +15 -0
  108. package/dist/models/answer-callback.d.ts +104 -0
  109. package/dist/models/answer-callback.js +15 -0
  110. package/dist/models/bridge-complete-callback.d.ts +115 -0
  111. package/dist/models/bridge-complete-callback.js +15 -0
  112. package/dist/models/bridge-target-complete-callback.d.ts +97 -0
  113. package/dist/models/bridge-target-complete-callback.js +15 -0
  114. package/dist/models/bxml/Bxml.d.ts +17 -0
  115. package/dist/models/bxml/Bxml.js +37 -0
  116. package/dist/models/bxml/NestableVerb.d.ts +26 -0
  117. package/dist/models/bxml/NestableVerb.js +62 -0
  118. package/dist/models/bxml/Response.d.ts +17 -0
  119. package/dist/models/bxml/Response.js +37 -0
  120. package/dist/models/bxml/Root.d.ts +33 -0
  121. package/dist/models/bxml/Root.js +57 -0
  122. package/dist/models/bxml/Verb.d.ts +27 -0
  123. package/dist/models/bxml/Verb.js +41 -0
  124. package/dist/models/bxml/index.d.ts +2 -0
  125. package/dist/models/bxml/index.js +5 -0
  126. package/dist/models/bxml/verbs/Bridge.d.ts +32 -0
  127. package/dist/models/bxml/verbs/Bridge.js +38 -0
  128. package/dist/models/bxml/verbs/Conference.d.ts +32 -0
  129. package/dist/models/bxml/verbs/Conference.js +38 -0
  130. package/dist/models/bxml/verbs/CustomParam.d.ts +19 -0
  131. package/dist/models/bxml/verbs/CustomParam.js +37 -0
  132. package/dist/models/bxml/verbs/Forward.d.ts +23 -0
  133. package/dist/models/bxml/verbs/Forward.js +37 -0
  134. package/dist/models/bxml/verbs/Gather.d.ts +47 -0
  135. package/dist/models/bxml/verbs/Gather.js +53 -0
  136. package/dist/models/bxml/verbs/Hangup.d.ts +13 -0
  137. package/dist/models/bxml/verbs/Hangup.js +36 -0
  138. package/dist/models/bxml/verbs/Pause.d.ts +18 -0
  139. package/dist/models/bxml/verbs/Pause.js +37 -0
  140. package/dist/models/bxml/verbs/PauseRecording.d.ts +13 -0
  141. package/dist/models/bxml/verbs/PauseRecording.js +36 -0
  142. package/dist/models/bxml/verbs/PhoneNumber.d.ts +30 -0
  143. package/dist/models/bxml/verbs/PhoneNumber.js +38 -0
  144. package/dist/models/bxml/verbs/PlayAudio.d.ts +21 -0
  145. package/dist/models/bxml/verbs/PlayAudio.js +38 -0
  146. package/dist/models/bxml/verbs/Record.d.ts +35 -0
  147. package/dist/models/bxml/verbs/Record.js +37 -0
  148. package/dist/models/bxml/verbs/Redirect.d.ts +26 -0
  149. package/dist/models/bxml/verbs/Redirect.js +37 -0
  150. package/dist/models/bxml/verbs/ResumeRecording.d.ts +13 -0
  151. package/dist/models/bxml/verbs/ResumeRecording.js +36 -0
  152. package/dist/models/bxml/verbs/Ring.d.ts +19 -0
  153. package/dist/models/bxml/verbs/Ring.js +37 -0
  154. package/dist/models/bxml/verbs/SendDtmf.d.ts +21 -0
  155. package/dist/models/bxml/verbs/SendDtmf.js +38 -0
  156. package/dist/models/bxml/verbs/SipUri.d.ts +31 -0
  157. package/dist/models/bxml/verbs/SipUri.js +38 -0
  158. package/dist/models/bxml/verbs/SpeakSentence.d.ts +28 -0
  159. package/dist/models/bxml/verbs/SpeakSentence.js +46 -0
  160. package/dist/models/bxml/verbs/StartGather.d.ts +22 -0
  161. package/dist/models/bxml/verbs/StartGather.js +37 -0
  162. package/dist/models/bxml/verbs/StartRecording.d.ts +27 -0
  163. package/dist/models/bxml/verbs/StartRecording.js +37 -0
  164. package/dist/models/bxml/verbs/StartStream.d.ts +31 -0
  165. package/dist/models/bxml/verbs/StartStream.js +45 -0
  166. package/dist/models/bxml/verbs/StartTranscription.d.ts +32 -0
  167. package/dist/models/bxml/verbs/StartTranscription.js +45 -0
  168. package/dist/models/bxml/verbs/StopGather.d.ts +13 -0
  169. package/dist/models/bxml/verbs/StopGather.js +36 -0
  170. package/dist/models/bxml/verbs/StopRecording.d.ts +13 -0
  171. package/dist/models/bxml/verbs/StopRecording.js +36 -0
  172. package/dist/models/bxml/verbs/StopStream.d.ts +18 -0
  173. package/dist/models/bxml/verbs/StopStream.js +37 -0
  174. package/dist/models/bxml/verbs/StopTranscription.d.ts +18 -0
  175. package/dist/models/bxml/verbs/StopTranscription.js +37 -0
  176. package/dist/models/bxml/verbs/StreamParam.d.ts +19 -0
  177. package/dist/models/bxml/verbs/StreamParam.js +37 -0
  178. package/dist/models/bxml/verbs/Tag.d.ts +15 -0
  179. package/dist/models/bxml/verbs/Tag.js +37 -0
  180. package/dist/models/bxml/verbs/Transfer.d.ts +41 -0
  181. package/dist/models/bxml/verbs/Transfer.js +45 -0
  182. package/dist/models/bxml/verbs/index.d.ts +30 -0
  183. package/dist/models/bxml/verbs/index.js +46 -0
  184. package/dist/models/call-direction-enum.d.ts +21 -0
  185. package/dist/models/call-direction-enum.js +25 -0
  186. package/dist/models/call-recording-metadata.d.ts +135 -0
  187. package/dist/models/call-recording-metadata.js +15 -0
  188. package/dist/models/call-state-enum.d.ts +21 -0
  189. package/dist/models/call-state-enum.js +25 -0
  190. package/dist/models/call-state.d.ts +129 -0
  191. package/dist/models/call-state.js +15 -0
  192. package/dist/models/call-transcription-detected-language-enum.d.ts +22 -0
  193. package/dist/models/call-transcription-detected-language-enum.js +26 -0
  194. package/dist/models/call-transcription-metadata.d.ts +36 -0
  195. package/dist/models/call-transcription-metadata.js +15 -0
  196. package/dist/models/call-transcription-response.d.ts +43 -0
  197. package/dist/models/call-transcription-response.js +15 -0
  198. package/dist/models/call-transcription-track-enum.d.ts +21 -0
  199. package/dist/models/call-transcription-track-enum.js +25 -0
  200. package/dist/models/call-transcription.d.ts +44 -0
  201. package/dist/models/call-transcription.js +15 -0
  202. package/dist/models/callback-method-enum.d.ts +21 -0
  203. package/dist/models/callback-method-enum.js +25 -0
  204. package/dist/models/code-request.d.ts +54 -0
  205. package/dist/models/code-request.js +15 -0
  206. package/dist/models/conference-completed-callback.d.ts +48 -0
  207. package/dist/models/conference-completed-callback.js +15 -0
  208. package/dist/models/conference-created-callback.d.ts +48 -0
  209. package/dist/models/conference-created-callback.js +15 -0
  210. package/dist/models/conference-member-exit-callback.d.ts +66 -0
  211. package/dist/models/conference-member-exit-callback.js +15 -0
  212. package/dist/models/conference-member-join-callback.d.ts +66 -0
  213. package/dist/models/conference-member-join-callback.js +15 -0
  214. package/dist/models/conference-member.d.ts +54 -0
  215. package/dist/models/conference-member.js +15 -0
  216. package/dist/models/conference-recording-available-callback.d.ts +103 -0
  217. package/dist/models/conference-recording-available-callback.js +15 -0
  218. package/dist/models/conference-recording-metadata.d.ts +91 -0
  219. package/dist/models/conference-recording-metadata.js +15 -0
  220. package/dist/models/conference-redirect-callback.d.ts +48 -0
  221. package/dist/models/conference-redirect-callback.js +15 -0
  222. package/dist/models/conference-state-enum.d.ts +21 -0
  223. package/dist/models/conference-state-enum.js +25 -0
  224. package/dist/models/conference.d.ts +68 -0
  225. package/dist/models/conference.js +15 -0
  226. package/dist/models/create-call-response.d.ts +145 -0
  227. package/dist/models/create-call-response.js +15 -0
  228. package/dist/models/create-call.d.ts +146 -0
  229. package/dist/models/create-call.js +15 -0
  230. package/dist/models/create-lookup-response.d.ts +31 -0
  231. package/dist/models/create-lookup-response.js +15 -0
  232. package/dist/models/create-message-request-error.d.ts +37 -0
  233. package/dist/models/create-message-request-error.js +15 -0
  234. package/dist/models/deferred-result.d.ts +30 -0
  235. package/dist/models/deferred-result.js +15 -0
  236. package/dist/models/disconnect-callback.d.ts +121 -0
  237. package/dist/models/disconnect-callback.js +15 -0
  238. package/dist/models/diversion.d.ts +60 -0
  239. package/dist/models/diversion.js +15 -0
  240. package/dist/models/dtmf-callback.d.ts +121 -0
  241. package/dist/models/dtmf-callback.js +15 -0
  242. package/dist/models/field-error.d.ts +30 -0
  243. package/dist/models/field-error.js +15 -0
  244. package/dist/models/file-format-enum.d.ts +21 -0
  245. package/dist/models/file-format-enum.js +25 -0
  246. package/dist/models/gather-callback.d.ts +127 -0
  247. package/dist/models/gather-callback.js +15 -0
  248. package/dist/models/inbound-message-callback-message.d.ts +92 -0
  249. package/dist/models/inbound-message-callback-message.js +15 -0
  250. package/dist/models/inbound-message-callback.d.ts +49 -0
  251. package/dist/models/inbound-message-callback.js +15 -0
  252. package/dist/models/index.d.ts +94 -0
  253. package/dist/models/index.js +110 -0
  254. package/dist/models/initiate-callback.d.ts +93 -0
  255. package/dist/models/initiate-callback.js +15 -0
  256. package/dist/models/list-message-direction-enum.d.ts +21 -0
  257. package/dist/models/list-message-direction-enum.js +25 -0
  258. package/dist/models/list-message-item.d.ts +123 -0
  259. package/dist/models/list-message-item.js +15 -0
  260. package/dist/models/lookup-request.d.ts +24 -0
  261. package/dist/models/lookup-request.js +15 -0
  262. package/dist/models/lookup-result.d.ts +72 -0
  263. package/dist/models/lookup-result.js +15 -0
  264. package/dist/models/lookup-status-enum.d.ts +23 -0
  265. package/dist/models/lookup-status-enum.js +27 -0
  266. package/dist/models/lookup-status.d.ts +44 -0
  267. package/dist/models/lookup-status.js +15 -0
  268. package/dist/models/machine-detection-complete-callback.d.ts +104 -0
  269. package/dist/models/machine-detection-complete-callback.js +15 -0
  270. package/dist/models/machine-detection-configuration.d.ts +110 -0
  271. package/dist/models/machine-detection-configuration.js +15 -0
  272. package/dist/models/machine-detection-mode-enum.d.ts +21 -0
  273. package/dist/models/machine-detection-mode-enum.js +25 -0
  274. package/dist/models/machine-detection-result.d.ts +30 -0
  275. package/dist/models/machine-detection-result.js +15 -0
  276. package/dist/models/media.d.ts +36 -0
  277. package/dist/models/media.js +15 -0
  278. package/dist/models/message-delivered-callback-message.d.ts +92 -0
  279. package/dist/models/message-delivered-callback-message.js +15 -0
  280. package/dist/models/message-delivered-callback.d.ts +49 -0
  281. package/dist/models/message-delivered-callback.js +15 -0
  282. package/dist/models/message-direction-enum.d.ts +21 -0
  283. package/dist/models/message-direction-enum.js +25 -0
  284. package/dist/models/message-failed-callback-message.d.ts +92 -0
  285. package/dist/models/message-failed-callback-message.js +15 -0
  286. package/dist/models/message-failed-callback.d.ts +55 -0
  287. package/dist/models/message-failed-callback.js +15 -0
  288. package/dist/models/message-request.d.ts +67 -0
  289. package/dist/models/message-request.js +15 -0
  290. package/dist/models/message-sending-callback-message.d.ts +92 -0
  291. package/dist/models/message-sending-callback-message.js +15 -0
  292. package/dist/models/message-sending-callback.d.ts +49 -0
  293. package/dist/models/message-sending-callback.js +15 -0
  294. package/dist/models/message-status-enum.d.ts +27 -0
  295. package/dist/models/message-status-enum.js +31 -0
  296. package/dist/models/message-type-enum.d.ts +21 -0
  297. package/dist/models/message-type-enum.js +25 -0
  298. package/dist/models/message.d.ts +98 -0
  299. package/dist/models/message.js +15 -0
  300. package/dist/models/messages-list.d.ts +38 -0
  301. package/dist/models/messages-list.js +15 -0
  302. package/dist/models/messaging-code-response.d.ts +24 -0
  303. package/dist/models/messaging-code-response.js +15 -0
  304. package/dist/models/messaging-request-error.d.ts +30 -0
  305. package/dist/models/messaging-request-error.js +15 -0
  306. package/dist/models/mfa-forbidden-request-error.d.ts +24 -0
  307. package/dist/models/mfa-forbidden-request-error.js +15 -0
  308. package/dist/models/mfa-request-error.d.ts +30 -0
  309. package/dist/models/mfa-request-error.js +15 -0
  310. package/dist/models/mfa-unauthorized-request-error.d.ts +24 -0
  311. package/dist/models/mfa-unauthorized-request-error.js +15 -0
  312. package/dist/models/page-info.d.ts +42 -0
  313. package/dist/models/page-info.js +15 -0
  314. package/dist/models/priority-enum.d.ts +21 -0
  315. package/dist/models/priority-enum.js +25 -0
  316. package/dist/models/recording-available-callback.d.ts +152 -0
  317. package/dist/models/recording-available-callback.js +15 -0
  318. package/dist/models/recording-complete-callback.d.ts +152 -0
  319. package/dist/models/recording-complete-callback.js +15 -0
  320. package/dist/models/recording-state-enum.d.ts +21 -0
  321. package/dist/models/recording-state-enum.js +25 -0
  322. package/dist/models/recording-transcription-metadata.d.ts +42 -0
  323. package/dist/models/recording-transcription-metadata.js +15 -0
  324. package/dist/models/recording-transcriptions.d.ts +25 -0
  325. package/dist/models/recording-transcriptions.js +15 -0
  326. package/dist/models/redirect-callback.d.ts +115 -0
  327. package/dist/models/redirect-callback.js +15 -0
  328. package/dist/models/redirect-method-enum.d.ts +21 -0
  329. package/dist/models/redirect-method-enum.js +25 -0
  330. package/dist/models/stir-shaken.d.ts +36 -0
  331. package/dist/models/stir-shaken.js +15 -0
  332. package/dist/models/tag.d.ts +30 -0
  333. package/dist/models/tag.js +15 -0
  334. package/dist/models/tn-lookup-request-error.d.ts +24 -0
  335. package/dist/models/tn-lookup-request-error.js +15 -0
  336. package/dist/models/transcribe-recording.d.ts +61 -0
  337. package/dist/models/transcribe-recording.js +15 -0
  338. package/dist/models/transcription-available-callback.d.ts +147 -0
  339. package/dist/models/transcription-available-callback.js +15 -0
  340. package/dist/models/transcription-list.d.ts +25 -0
  341. package/dist/models/transcription-list.js +15 -0
  342. package/dist/models/transcription-metadata.d.ts +42 -0
  343. package/dist/models/transcription-metadata.js +15 -0
  344. package/dist/models/transcription.d.ts +30 -0
  345. package/dist/models/transcription.js +15 -0
  346. package/dist/models/transfer-answer-callback.d.ts +109 -0
  347. package/dist/models/transfer-answer-callback.js +15 -0
  348. package/dist/models/transfer-complete-callback.d.ts +127 -0
  349. package/dist/models/transfer-complete-callback.js +15 -0
  350. package/dist/models/transfer-disconnect-callback.d.ts +139 -0
  351. package/dist/models/transfer-disconnect-callback.js +15 -0
  352. package/dist/models/update-call-recording.d.ts +25 -0
  353. package/dist/models/update-call-recording.js +15 -0
  354. package/dist/models/update-call.d.ts +80 -0
  355. package/dist/models/update-call.js +15 -0
  356. package/dist/models/update-conference-member.d.ts +36 -0
  357. package/dist/models/update-conference-member.js +15 -0
  358. package/dist/models/update-conference.d.ts +74 -0
  359. package/dist/models/update-conference.js +15 -0
  360. package/dist/models/verify-code-request.d.ts +42 -0
  361. package/dist/models/verify-code-request.js +15 -0
  362. package/dist/models/verify-code-response.d.ts +24 -0
  363. package/dist/models/verify-code-response.js +15 -0
  364. package/dist/models/voice-api-error.d.ts +36 -0
  365. package/dist/models/voice-api-error.js +15 -0
  366. package/dist/models/voice-code-response.d.ts +24 -0
  367. package/dist/models/voice-code-response.js +15 -0
  368. package/models/bxml/Verb.ts +5 -4
  369. package/models/message-failed-callback-message.ts +1 -1
  370. package/models/message-sending-callback-message.ts +1 -1
  371. package/package.json +1 -1
  372. package/tsconfig.json +1 -2
  373. package/global.d.ts +0 -1
@@ -0,0 +1,656 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Bandwidth
6
+ * Bandwidth\'s Communication APIs
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: letstalk@bandwidth.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
86
+ Object.defineProperty(exports, "__esModule", { value: true });
87
+ exports.CallsApi = exports.CallsApiFactory = exports.CallsApiFp = exports.CallsApiAxiosParamCreator = void 0;
88
+ var axios_1 = require("axios");
89
+ // Some imports not used depending on template conditions
90
+ // @ts-ignore
91
+ var common_1 = require("../common");
92
+ // @ts-ignore
93
+ var base_1 = require("../base");
94
+ /**
95
+ * CallsApi - axios parameter creator
96
+ * @export
97
+ */
98
+ var CallsApiAxiosParamCreator = function (configuration) {
99
+ var _this = this;
100
+ return {
101
+ /**
102
+ * Creates an outbound phone call. All calls are initially queued. Your outbound calls will initiated at a specific dequeueing rate, enabling your application to \"fire and forget\" when creating calls. Queued calls may not be modified until they are dequeued and placed, but may be removed from your queue on demand. <b>Please note:</b> Calls submitted to your queue will be placed approximately in order, but exact ordering is not guaranteed.
103
+ * @summary Create Call
104
+ * @param {string} accountId Your Bandwidth Account ID.
105
+ * @param {CreateCall} createCall JSON object containing information to create an outbound call
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ createCall: function (accountId_1, createCall_1) {
110
+ var args_1 = [];
111
+ for (var _i = 2; _i < arguments.length; _i++) {
112
+ args_1[_i - 2] = arguments[_i];
113
+ }
114
+ return __awaiter(_this, __spreadArray([accountId_1, createCall_1], args_1, true), void 0, function (accountId, createCall, options) {
115
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
116
+ if (options === void 0) { options = {}; }
117
+ return __generator(this, function (_a) {
118
+ // verify required parameter 'accountId' is not null or undefined
119
+ (0, common_1.assertParamExists)('createCall', 'accountId', accountId);
120
+ // verify required parameter 'createCall' is not null or undefined
121
+ (0, common_1.assertParamExists)('createCall', 'createCall', createCall);
122
+ localVarPath = "/accounts/{accountId}/calls"
123
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
124
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
125
+ if (configuration) {
126
+ baseOptions = configuration.baseOptions;
127
+ }
128
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
129
+ localVarHeaderParameter = {};
130
+ localVarQueryParameter = {};
131
+ // authentication Basic required
132
+ // http basic authentication required
133
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
134
+ localVarHeaderParameter['Content-Type'] = 'application/json';
135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCall, localVarRequestOptions, configuration);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ });
144
+ });
145
+ },
146
+ /**
147
+ * Retrieve the current state of a specific call. This information is near-realtime, so it may take a few minutes for your call to be accessible using this endpoint. **Note**: Call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an HTTP 404 response.
148
+ * @summary Get Call State Information
149
+ * @param {string} accountId Your Bandwidth Account ID.
150
+ * @param {string} callId Programmable Voice API Call ID.
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ getCallState: function (accountId_1, callId_1) {
155
+ var args_1 = [];
156
+ for (var _i = 2; _i < arguments.length; _i++) {
157
+ args_1[_i - 2] = arguments[_i];
158
+ }
159
+ return __awaiter(_this, __spreadArray([accountId_1, callId_1], args_1, true), void 0, function (accountId, callId, options) {
160
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ if (options === void 0) { options = {}; }
162
+ return __generator(this, function (_a) {
163
+ // verify required parameter 'accountId' is not null or undefined
164
+ (0, common_1.assertParamExists)('getCallState', 'accountId', accountId);
165
+ // verify required parameter 'callId' is not null or undefined
166
+ (0, common_1.assertParamExists)('getCallState', 'callId', callId);
167
+ localVarPath = "/accounts/{accountId}/calls/{callId}"
168
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
169
+ .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)));
170
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ }
174
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
175
+ localVarHeaderParameter = {};
176
+ localVarQueryParameter = {};
177
+ // authentication Basic required
178
+ // http basic authentication required
179
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
180
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
181
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
183
+ return [2 /*return*/, {
184
+ url: (0, common_1.toPathString)(localVarUrlObj),
185
+ options: localVarRequestOptions,
186
+ }];
187
+ });
188
+ });
189
+ },
190
+ /**
191
+ * Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of calls in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of call records. Also, call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an empty array [] in response.
192
+ * @summary Get Calls
193
+ * @param {string} accountId Your Bandwidth Account ID.
194
+ * @param {string} [to] Filter results by the &#x60;to&#x60; field.
195
+ * @param {string} [from] Filter results by the &#x60;from&#x60; field.
196
+ * @param {string} [minStartTime] Filter results to calls which have a &#x60;startTime&#x60; after or including &#x60;minStartTime&#x60; (in ISO8601 format).
197
+ * @param {string} [maxStartTime] Filter results to calls which have a &#x60;startTime&#x60; before or including &#x60;maxStartTime&#x60; (in ISO8601 format).
198
+ * @param {string} [disconnectCause] Filter results to calls with specified call Disconnect Cause.
199
+ * @param {number} [pageSize] Specifies the max number of calls that will be returned.
200
+ * @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the &#x60;Link&#x60; header of the response, as indicated in the endpoint description.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ listCalls: function (accountId_1, to_1, from_1, minStartTime_1, maxStartTime_1, disconnectCause_1, pageSize_1, pageToken_1) {
205
+ var args_1 = [];
206
+ for (var _i = 8; _i < arguments.length; _i++) {
207
+ args_1[_i - 8] = arguments[_i];
208
+ }
209
+ return __awaiter(_this, __spreadArray([accountId_1, to_1, from_1, minStartTime_1, maxStartTime_1, disconnectCause_1, pageSize_1, pageToken_1], args_1, true), void 0, function (accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options) {
210
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
+ if (options === void 0) { options = {}; }
212
+ return __generator(this, function (_a) {
213
+ // verify required parameter 'accountId' is not null or undefined
214
+ (0, common_1.assertParamExists)('listCalls', 'accountId', accountId);
215
+ localVarPath = "/accounts/{accountId}/calls"
216
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
217
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
218
+ if (configuration) {
219
+ baseOptions = configuration.baseOptions;
220
+ }
221
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
222
+ localVarHeaderParameter = {};
223
+ localVarQueryParameter = {};
224
+ // authentication Basic required
225
+ // http basic authentication required
226
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
227
+ if (to !== undefined) {
228
+ localVarQueryParameter['to'] = to;
229
+ }
230
+ if (from !== undefined) {
231
+ localVarQueryParameter['from'] = from;
232
+ }
233
+ if (minStartTime !== undefined) {
234
+ localVarQueryParameter['minStartTime'] = minStartTime;
235
+ }
236
+ if (maxStartTime !== undefined) {
237
+ localVarQueryParameter['maxStartTime'] = maxStartTime;
238
+ }
239
+ if (disconnectCause !== undefined) {
240
+ localVarQueryParameter['disconnectCause'] = disconnectCause;
241
+ }
242
+ if (pageSize !== undefined) {
243
+ localVarQueryParameter['pageSize'] = pageSize;
244
+ }
245
+ if (pageToken !== undefined) {
246
+ localVarQueryParameter['pageToken'] = pageToken;
247
+ }
248
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
249
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
250
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
251
+ return [2 /*return*/, {
252
+ url: (0, common_1.toPathString)(localVarUrlObj),
253
+ options: localVarRequestOptions,
254
+ }];
255
+ });
256
+ });
257
+ },
258
+ /**
259
+ * Interrupts and redirects a call to a different URL that should return a BXML document.
260
+ * @summary Update Call
261
+ * @param {string} accountId Your Bandwidth Account ID.
262
+ * @param {string} callId Programmable Voice API Call ID.
263
+ * @param {UpdateCall} updateCall JSON object containing information to redirect an existing call to a new BXML document
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ updateCall: function (accountId_1, callId_1, updateCall_1) {
268
+ var args_1 = [];
269
+ for (var _i = 3; _i < arguments.length; _i++) {
270
+ args_1[_i - 3] = arguments[_i];
271
+ }
272
+ return __awaiter(_this, __spreadArray([accountId_1, callId_1, updateCall_1], args_1, true), void 0, function (accountId, callId, updateCall, options) {
273
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
274
+ if (options === void 0) { options = {}; }
275
+ return __generator(this, function (_a) {
276
+ // verify required parameter 'accountId' is not null or undefined
277
+ (0, common_1.assertParamExists)('updateCall', 'accountId', accountId);
278
+ // verify required parameter 'callId' is not null or undefined
279
+ (0, common_1.assertParamExists)('updateCall', 'callId', callId);
280
+ // verify required parameter 'updateCall' is not null or undefined
281
+ (0, common_1.assertParamExists)('updateCall', 'updateCall', updateCall);
282
+ localVarPath = "/accounts/{accountId}/calls/{callId}"
283
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
284
+ .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)));
285
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
286
+ if (configuration) {
287
+ baseOptions = configuration.baseOptions;
288
+ }
289
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
290
+ localVarHeaderParameter = {};
291
+ localVarQueryParameter = {};
292
+ // authentication Basic required
293
+ // http basic authentication required
294
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
295
+ localVarHeaderParameter['Content-Type'] = 'application/json';
296
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
297
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
299
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCall, localVarRequestOptions, configuration);
300
+ return [2 /*return*/, {
301
+ url: (0, common_1.toPathString)(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ }];
304
+ });
305
+ });
306
+ },
307
+ /**
308
+ * Interrupts and replaces an active call\'s BXML document.
309
+ * @summary Update Call BXML
310
+ * @param {string} accountId Your Bandwidth Account ID.
311
+ * @param {string} callId Programmable Voice API Call ID.
312
+ * @param {string} body
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ updateCallBxml: function (accountId_1, callId_1, body_1) {
317
+ var args_1 = [];
318
+ for (var _i = 3; _i < arguments.length; _i++) {
319
+ args_1[_i - 3] = arguments[_i];
320
+ }
321
+ return __awaiter(_this, __spreadArray([accountId_1, callId_1, body_1], args_1, true), void 0, function (accountId, callId, body, options) {
322
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
323
+ if (options === void 0) { options = {}; }
324
+ return __generator(this, function (_a) {
325
+ // verify required parameter 'accountId' is not null or undefined
326
+ (0, common_1.assertParamExists)('updateCallBxml', 'accountId', accountId);
327
+ // verify required parameter 'callId' is not null or undefined
328
+ (0, common_1.assertParamExists)('updateCallBxml', 'callId', callId);
329
+ // verify required parameter 'body' is not null or undefined
330
+ (0, common_1.assertParamExists)('updateCallBxml', 'body', body);
331
+ localVarPath = "/accounts/{accountId}/calls/{callId}/bxml"
332
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
333
+ .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)));
334
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
335
+ if (configuration) {
336
+ baseOptions = configuration.baseOptions;
337
+ }
338
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
339
+ localVarHeaderParameter = {};
340
+ localVarQueryParameter = {};
341
+ // authentication Basic required
342
+ // http basic authentication required
343
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
344
+ localVarHeaderParameter['Content-Type'] = 'application/xml';
345
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
346
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
347
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
348
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
349
+ return [2 /*return*/, {
350
+ url: (0, common_1.toPathString)(localVarUrlObj),
351
+ options: localVarRequestOptions,
352
+ }];
353
+ });
354
+ });
355
+ },
356
+ };
357
+ };
358
+ exports.CallsApiAxiosParamCreator = CallsApiAxiosParamCreator;
359
+ /**
360
+ * CallsApi - functional programming interface
361
+ * @export
362
+ */
363
+ var CallsApiFp = function (configuration) {
364
+ var localVarAxiosParamCreator = (0, exports.CallsApiAxiosParamCreator)(configuration);
365
+ return {
366
+ /**
367
+ * Creates an outbound phone call. All calls are initially queued. Your outbound calls will initiated at a specific dequeueing rate, enabling your application to \"fire and forget\" when creating calls. Queued calls may not be modified until they are dequeued and placed, but may be removed from your queue on demand. <b>Please note:</b> Calls submitted to your queue will be placed approximately in order, but exact ordering is not guaranteed.
368
+ * @summary Create Call
369
+ * @param {string} accountId Your Bandwidth Account ID.
370
+ * @param {CreateCall} createCall JSON object containing information to create an outbound call
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ createCall: function (accountId, createCall, options) {
375
+ return __awaiter(this, void 0, void 0, function () {
376
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
377
+ var _a, _b, _c;
378
+ return __generator(this, function (_d) {
379
+ switch (_d.label) {
380
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCall(accountId, createCall, options)];
381
+ case 1:
382
+ localVarAxiosArgs = _d.sent();
383
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
384
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CallsApi.createCall']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
385
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
386
+ }
387
+ });
388
+ });
389
+ },
390
+ /**
391
+ * Retrieve the current state of a specific call. This information is near-realtime, so it may take a few minutes for your call to be accessible using this endpoint. **Note**: Call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an HTTP 404 response.
392
+ * @summary Get Call State Information
393
+ * @param {string} accountId Your Bandwidth Account ID.
394
+ * @param {string} callId Programmable Voice API Call ID.
395
+ * @param {*} [options] Override http request option.
396
+ * @throws {RequiredError}
397
+ */
398
+ getCallState: function (accountId, callId, options) {
399
+ return __awaiter(this, void 0, void 0, function () {
400
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
401
+ var _a, _b, _c;
402
+ return __generator(this, function (_d) {
403
+ switch (_d.label) {
404
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCallState(accountId, callId, options)];
405
+ case 1:
406
+ localVarAxiosArgs = _d.sent();
407
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
408
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CallsApi.getCallState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
409
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
410
+ }
411
+ });
412
+ });
413
+ },
414
+ /**
415
+ * Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of calls in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of call records. Also, call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an empty array [] in response.
416
+ * @summary Get Calls
417
+ * @param {string} accountId Your Bandwidth Account ID.
418
+ * @param {string} [to] Filter results by the &#x60;to&#x60; field.
419
+ * @param {string} [from] Filter results by the &#x60;from&#x60; field.
420
+ * @param {string} [minStartTime] Filter results to calls which have a &#x60;startTime&#x60; after or including &#x60;minStartTime&#x60; (in ISO8601 format).
421
+ * @param {string} [maxStartTime] Filter results to calls which have a &#x60;startTime&#x60; before or including &#x60;maxStartTime&#x60; (in ISO8601 format).
422
+ * @param {string} [disconnectCause] Filter results to calls with specified call Disconnect Cause.
423
+ * @param {number} [pageSize] Specifies the max number of calls that will be returned.
424
+ * @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the &#x60;Link&#x60; header of the response, as indicated in the endpoint description.
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ listCalls: function (accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options) {
429
+ return __awaiter(this, void 0, void 0, function () {
430
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
431
+ var _a, _b, _c;
432
+ return __generator(this, function (_d) {
433
+ switch (_d.label) {
434
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCalls(accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options)];
435
+ case 1:
436
+ localVarAxiosArgs = _d.sent();
437
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
438
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CallsApi.listCalls']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
439
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
440
+ }
441
+ });
442
+ });
443
+ },
444
+ /**
445
+ * Interrupts and redirects a call to a different URL that should return a BXML document.
446
+ * @summary Update Call
447
+ * @param {string} accountId Your Bandwidth Account ID.
448
+ * @param {string} callId Programmable Voice API Call ID.
449
+ * @param {UpdateCall} updateCall JSON object containing information to redirect an existing call to a new BXML document
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ updateCall: function (accountId, callId, updateCall, options) {
454
+ return __awaiter(this, void 0, void 0, function () {
455
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
456
+ var _a, _b, _c;
457
+ return __generator(this, function (_d) {
458
+ switch (_d.label) {
459
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCall(accountId, callId, updateCall, options)];
460
+ case 1:
461
+ localVarAxiosArgs = _d.sent();
462
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
463
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CallsApi.updateCall']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
464
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
465
+ }
466
+ });
467
+ });
468
+ },
469
+ /**
470
+ * Interrupts and replaces an active call\'s BXML document.
471
+ * @summary Update Call BXML
472
+ * @param {string} accountId Your Bandwidth Account ID.
473
+ * @param {string} callId Programmable Voice API Call ID.
474
+ * @param {string} body
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ */
478
+ updateCallBxml: function (accountId, callId, body, options) {
479
+ return __awaiter(this, void 0, void 0, function () {
480
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
481
+ var _a, _b, _c;
482
+ return __generator(this, function (_d) {
483
+ switch (_d.label) {
484
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCallBxml(accountId, callId, body, options)];
485
+ case 1:
486
+ localVarAxiosArgs = _d.sent();
487
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
488
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CallsApi.updateCallBxml']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
489
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
490
+ }
491
+ });
492
+ });
493
+ },
494
+ };
495
+ };
496
+ exports.CallsApiFp = CallsApiFp;
497
+ /**
498
+ * CallsApi - factory interface
499
+ * @export
500
+ */
501
+ var CallsApiFactory = function (configuration, basePath, axios) {
502
+ var localVarFp = (0, exports.CallsApiFp)(configuration);
503
+ return {
504
+ /**
505
+ * Creates an outbound phone call. All calls are initially queued. Your outbound calls will initiated at a specific dequeueing rate, enabling your application to \"fire and forget\" when creating calls. Queued calls may not be modified until they are dequeued and placed, but may be removed from your queue on demand. <b>Please note:</b> Calls submitted to your queue will be placed approximately in order, but exact ordering is not guaranteed.
506
+ * @summary Create Call
507
+ * @param {string} accountId Your Bandwidth Account ID.
508
+ * @param {CreateCall} createCall JSON object containing information to create an outbound call
509
+ * @param {*} [options] Override http request option.
510
+ * @throws {RequiredError}
511
+ */
512
+ createCall: function (accountId, createCall, options) {
513
+ return localVarFp.createCall(accountId, createCall, options).then(function (request) { return request(axios, basePath); });
514
+ },
515
+ /**
516
+ * Retrieve the current state of a specific call. This information is near-realtime, so it may take a few minutes for your call to be accessible using this endpoint. **Note**: Call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an HTTP 404 response.
517
+ * @summary Get Call State Information
518
+ * @param {string} accountId Your Bandwidth Account ID.
519
+ * @param {string} callId Programmable Voice API Call ID.
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ */
523
+ getCallState: function (accountId, callId, options) {
524
+ return localVarFp.getCallState(accountId, callId, options).then(function (request) { return request(axios, basePath); });
525
+ },
526
+ /**
527
+ * Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of calls in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of call records. Also, call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an empty array [] in response.
528
+ * @summary Get Calls
529
+ * @param {string} accountId Your Bandwidth Account ID.
530
+ * @param {string} [to] Filter results by the &#x60;to&#x60; field.
531
+ * @param {string} [from] Filter results by the &#x60;from&#x60; field.
532
+ * @param {string} [minStartTime] Filter results to calls which have a &#x60;startTime&#x60; after or including &#x60;minStartTime&#x60; (in ISO8601 format).
533
+ * @param {string} [maxStartTime] Filter results to calls which have a &#x60;startTime&#x60; before or including &#x60;maxStartTime&#x60; (in ISO8601 format).
534
+ * @param {string} [disconnectCause] Filter results to calls with specified call Disconnect Cause.
535
+ * @param {number} [pageSize] Specifies the max number of calls that will be returned.
536
+ * @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the &#x60;Link&#x60; header of the response, as indicated in the endpoint description.
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ listCalls: function (accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options) {
541
+ return localVarFp.listCalls(accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options).then(function (request) { return request(axios, basePath); });
542
+ },
543
+ /**
544
+ * Interrupts and redirects a call to a different URL that should return a BXML document.
545
+ * @summary Update Call
546
+ * @param {string} accountId Your Bandwidth Account ID.
547
+ * @param {string} callId Programmable Voice API Call ID.
548
+ * @param {UpdateCall} updateCall JSON object containing information to redirect an existing call to a new BXML document
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ updateCall: function (accountId, callId, updateCall, options) {
553
+ return localVarFp.updateCall(accountId, callId, updateCall, options).then(function (request) { return request(axios, basePath); });
554
+ },
555
+ /**
556
+ * Interrupts and replaces an active call\'s BXML document.
557
+ * @summary Update Call BXML
558
+ * @param {string} accountId Your Bandwidth Account ID.
559
+ * @param {string} callId Programmable Voice API Call ID.
560
+ * @param {string} body
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ */
564
+ updateCallBxml: function (accountId, callId, body, options) {
565
+ return localVarFp.updateCallBxml(accountId, callId, body, options).then(function (request) { return request(axios, basePath); });
566
+ },
567
+ };
568
+ };
569
+ exports.CallsApiFactory = CallsApiFactory;
570
+ /**
571
+ * CallsApi - object-oriented interface
572
+ * @export
573
+ * @class CallsApi
574
+ * @extends {BaseAPI}
575
+ */
576
+ var CallsApi = /** @class */ (function (_super) {
577
+ __extends(CallsApi, _super);
578
+ function CallsApi() {
579
+ return _super !== null && _super.apply(this, arguments) || this;
580
+ }
581
+ /**
582
+ * Creates an outbound phone call. All calls are initially queued. Your outbound calls will initiated at a specific dequeueing rate, enabling your application to \"fire and forget\" when creating calls. Queued calls may not be modified until they are dequeued and placed, but may be removed from your queue on demand. <b>Please note:</b> Calls submitted to your queue will be placed approximately in order, but exact ordering is not guaranteed.
583
+ * @summary Create Call
584
+ * @param {string} accountId Your Bandwidth Account ID.
585
+ * @param {CreateCall} createCall JSON object containing information to create an outbound call
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ * @memberof CallsApi
589
+ */
590
+ CallsApi.prototype.createCall = function (accountId, createCall, options) {
591
+ var _this = this;
592
+ return (0, exports.CallsApiFp)(this.configuration).createCall(accountId, createCall, options).then(function (request) { return request(_this.axios, _this.basePath); });
593
+ };
594
+ /**
595
+ * Retrieve the current state of a specific call. This information is near-realtime, so it may take a few minutes for your call to be accessible using this endpoint. **Note**: Call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an HTTP 404 response.
596
+ * @summary Get Call State Information
597
+ * @param {string} accountId Your Bandwidth Account ID.
598
+ * @param {string} callId Programmable Voice API Call ID.
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ * @memberof CallsApi
602
+ */
603
+ CallsApi.prototype.getCallState = function (accountId, callId, options) {
604
+ var _this = this;
605
+ return (0, exports.CallsApiFp)(this.configuration).getCallState(accountId, callId, options).then(function (request) { return request(_this.axios, _this.basePath); });
606
+ };
607
+ /**
608
+ * Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of calls in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of call records. Also, call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an empty array [] in response.
609
+ * @summary Get Calls
610
+ * @param {string} accountId Your Bandwidth Account ID.
611
+ * @param {string} [to] Filter results by the &#x60;to&#x60; field.
612
+ * @param {string} [from] Filter results by the &#x60;from&#x60; field.
613
+ * @param {string} [minStartTime] Filter results to calls which have a &#x60;startTime&#x60; after or including &#x60;minStartTime&#x60; (in ISO8601 format).
614
+ * @param {string} [maxStartTime] Filter results to calls which have a &#x60;startTime&#x60; before or including &#x60;maxStartTime&#x60; (in ISO8601 format).
615
+ * @param {string} [disconnectCause] Filter results to calls with specified call Disconnect Cause.
616
+ * @param {number} [pageSize] Specifies the max number of calls that will be returned.
617
+ * @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the &#x60;Link&#x60; header of the response, as indicated in the endpoint description.
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ * @memberof CallsApi
621
+ */
622
+ CallsApi.prototype.listCalls = function (accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options) {
623
+ var _this = this;
624
+ return (0, exports.CallsApiFp)(this.configuration).listCalls(accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options).then(function (request) { return request(_this.axios, _this.basePath); });
625
+ };
626
+ /**
627
+ * Interrupts and redirects a call to a different URL that should return a BXML document.
628
+ * @summary Update Call
629
+ * @param {string} accountId Your Bandwidth Account ID.
630
+ * @param {string} callId Programmable Voice API Call ID.
631
+ * @param {UpdateCall} updateCall JSON object containing information to redirect an existing call to a new BXML document
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ * @memberof CallsApi
635
+ */
636
+ CallsApi.prototype.updateCall = function (accountId, callId, updateCall, options) {
637
+ var _this = this;
638
+ return (0, exports.CallsApiFp)(this.configuration).updateCall(accountId, callId, updateCall, options).then(function (request) { return request(_this.axios, _this.basePath); });
639
+ };
640
+ /**
641
+ * Interrupts and replaces an active call\'s BXML document.
642
+ * @summary Update Call BXML
643
+ * @param {string} accountId Your Bandwidth Account ID.
644
+ * @param {string} callId Programmable Voice API Call ID.
645
+ * @param {string} body
646
+ * @param {*} [options] Override http request option.
647
+ * @throws {RequiredError}
648
+ * @memberof CallsApi
649
+ */
650
+ CallsApi.prototype.updateCallBxml = function (accountId, callId, body, options) {
651
+ var _this = this;
652
+ return (0, exports.CallsApiFp)(this.configuration).updateCallBxml(accountId, callId, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
653
+ };
654
+ return CallsApi;
655
+ }(base_1.BaseAPI));
656
+ exports.CallsApi = CallsApi;