bandwidth-sdk 2.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/.github/workflows/deploy.yml +4 -2
  2. package/.github/workflows/test-pr.yml +4 -2
  3. package/.github/workflows/{test-nightly.yml → test-smoke.yml} +6 -3
  4. package/.openapi-generator/FILES +2 -0
  5. package/README.md +22 -5
  6. package/api/transcriptions-api.ts +4 -4
  7. package/bandwidth.yml +28 -22
  8. package/coverage/clover.xml +1501 -138
  9. package/coverage/coverage-final.json +65 -47
  10. package/coverage/lcov-report/index.html +51 -21
  11. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1702 -0
  12. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +2725 -0
  13. package/coverage/lcov-report/node-sdk/api/index.html +236 -0
  14. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1315 -0
  15. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1138 -0
  16. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1051 -0
  17. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +775 -0
  18. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +2971 -0
  19. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +496 -0
  20. package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1045 -0
  21. package/coverage/lcov-report/node-sdk/api.ts.html +163 -0
  22. package/coverage/lcov-report/node-sdk/base.ts.html +1045 -0
  23. package/coverage/lcov-report/node-sdk/common.ts.html +535 -0
  24. package/coverage/lcov-report/node-sdk/configuration.ts.html +415 -0
  25. package/coverage/lcov-report/node-sdk/index.html +161 -0
  26. package/coverage/lcov-report/{models → node-sdk/models}/bxml/Bxml.ts.html +13 -13
  27. package/coverage/lcov-report/{models → node-sdk/models}/bxml/NestableVerb.ts.html +15 -15
  28. package/coverage/lcov-report/{models → node-sdk/models}/bxml/Response.ts.html +13 -13
  29. package/coverage/lcov-report/{models → node-sdk/models}/bxml/Root.ts.html +17 -17
  30. package/coverage/lcov-report/{models → node-sdk/models}/bxml/Verb.ts.html +15 -15
  31. package/coverage/lcov-report/{models → node-sdk/models}/bxml/index.html +29 -14
  32. package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +94 -0
  33. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Bridge.ts.html +13 -13
  34. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Conference.ts.html +13 -13
  35. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/CustomParam.ts.html +13 -13
  36. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Forward.ts.html +13 -13
  37. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Gather.ts.html +16 -16
  38. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Hangup.ts.html +13 -13
  39. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Pause.ts.html +13 -13
  40. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/PauseRecording.ts.html +13 -13
  41. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/PhoneNumber.ts.html +13 -13
  42. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/PlayAudio.ts.html +13 -13
  43. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Record.ts.html +13 -13
  44. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Redirect.ts.html +13 -13
  45. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/ResumeRecording.ts.html +13 -13
  46. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Ring.ts.html +13 -13
  47. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/SendDtmf.ts.html +13 -13
  48. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/SipUri.ts.html +13 -13
  49. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/SpeakSentence.ts.html +15 -15
  50. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartGather.ts.html +13 -13
  51. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartRecording.ts.html +13 -13
  52. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartStream.ts.html +14 -14
  53. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartTranscription.ts.html +14 -14
  54. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopGather.ts.html +13 -13
  55. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopRecording.ts.html +13 -13
  56. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopStream.ts.html +13 -13
  57. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopTranscription.ts.html +13 -13
  58. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StreamParam.ts.html +13 -13
  59. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Tag.ts.html +13 -13
  60. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Transfer.ts.html +14 -14
  61. package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/index.html +27 -12
  62. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +175 -0
  63. package/coverage/lcov-report/{models → node-sdk/models}/call-direction-enum.ts.html +11 -11
  64. package/coverage/lcov-report/{models → node-sdk/models}/call-state-enum.ts.html +11 -11
  65. package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +181 -0
  66. package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +178 -0
  67. package/coverage/lcov-report/{models → node-sdk/models}/callback-method-enum.ts.html +11 -11
  68. package/coverage/lcov-report/{models → node-sdk/models}/conference-state-enum.ts.html +11 -11
  69. package/coverage/lcov-report/{models → node-sdk/models}/file-format-enum.ts.html +11 -11
  70. package/coverage/lcov-report/{models → node-sdk/models}/index.html +57 -12
  71. package/coverage/lcov-report/node-sdk/models/index.ts.html +367 -0
  72. package/coverage/lcov-report/{models → node-sdk/models}/list-message-direction-enum.ts.html +11 -11
  73. package/coverage/lcov-report/{models → node-sdk/models}/lookup-status-enum.ts.html +11 -11
  74. package/coverage/lcov-report/{models → node-sdk/models}/machine-detection-mode-enum.ts.html +11 -11
  75. package/coverage/lcov-report/{models → node-sdk/models}/message-direction-enum.ts.html +11 -11
  76. package/coverage/lcov-report/{models → node-sdk/models}/message-status-enum.ts.html +11 -11
  77. package/coverage/lcov-report/{models → node-sdk/models}/message-type-enum.ts.html +11 -11
  78. package/coverage/lcov-report/{models → node-sdk/models}/priority-enum.ts.html +11 -11
  79. package/coverage/lcov-report/{models → node-sdk/models}/recording-state-enum.ts.html +11 -11
  80. package/coverage/lcov-report/{models → node-sdk/models}/redirect-method-enum.ts.html +11 -11
  81. package/coverage/lcov.info +3366 -162
  82. package/custom_templates/README.mustache +22 -5
  83. package/custom_templates/package.mustache +2 -1
  84. package/custom_templates/tsconfig.mustache +2 -1
  85. package/global.d.ts +1 -0
  86. package/jest.config.js +1 -0
  87. package/{dist/models/call-transcription.js → models/call-transcription-detected-language-enum.ts} +16 -9
  88. package/{dist/models/call-direction-enum.js → models/call-transcription-track-enum.ts} +12 -6
  89. package/models/call-transcription.ts +11 -18
  90. package/models/index.ts +2 -0
  91. package/package.json +3 -2
  92. package/tests/callUtils.ts +11 -11
  93. package/tests/smoke/bxml.test.ts +17 -17
  94. package/tests/smoke/calls-api.test.ts +38 -38
  95. package/tests/smoke/conferences-api.test.ts +19 -19
  96. package/tests/smoke/media-api.test.ts +11 -11
  97. package/tests/smoke/messages-api.test.ts +26 -26
  98. package/tests/smoke/mfaapi.test.ts +18 -18
  99. package/tests/smoke/phone-number-lookup-api.test.ts +16 -6
  100. package/tests/smoke/recordings-api.test.ts +31 -31
  101. package/tests/smoke/statistics-api.test.ts +7 -7
  102. package/tests/smoke/transcriptions-api.test.ts +15 -15
  103. package/tests/unit/api/calls-api.test.ts +180 -0
  104. package/tests/unit/api/conferences-api.test.ts +160 -0
  105. package/tests/unit/api/media-api.test.ts +59 -0
  106. package/tests/unit/api/messages-api.test.ts +122 -0
  107. package/tests/unit/api/mfaapi.test.ts +76 -0
  108. package/tests/unit/api/phone-number-lookup-api.test.ts +96 -0
  109. package/tests/unit/api/recordings-api.test.ts +175 -0
  110. package/tests/unit/api/statistics-api.test.ts +35 -0
  111. package/tests/unit/api/transcriptions-api.test.ts +60 -0
  112. package/tests/unit/models/call-transcription-detected-language-enum.test.ts +9 -0
  113. package/tests/unit/models/call-transcription-track-enum.test.ts +8 -0
  114. package/tsconfig.json +2 -1
  115. package/dist/api/calls-api.d.ts +0 -261
  116. package/dist/api/calls-api.js +0 -656
  117. package/dist/api/conferences-api.d.ts +0 -422
  118. package/dist/api/conferences-api.js +0 -1045
  119. package/dist/api/media-api.d.ts +0 -201
  120. package/dist/api/media-api.js +0 -527
  121. package/dist/api/messages-api.d.ts +0 -176
  122. package/dist/api/messages-api.js +0 -420
  123. package/dist/api/mfaapi.d.ts +0 -156
  124. package/dist/api/mfaapi.js +0 -416
  125. package/dist/api/phone-number-lookup-api.d.ts +0 -117
  126. package/dist/api/phone-number-lookup-api.js +0 -322
  127. package/dist/api/recordings-api.d.ts +0 -462
  128. package/dist/api/recordings-api.js +0 -1143
  129. package/dist/api/statistics-api.d.ts +0 -74
  130. package/dist/api/statistics-api.js +0 -222
  131. package/dist/api/transcriptions-api.d.ts +0 -161
  132. package/dist/api/transcriptions-api.js +0 -427
  133. package/dist/api.d.ts +0 -20
  134. package/dist/api.js +0 -38
  135. package/dist/base.d.ts +0 -66
  136. package/dist/base.js +0 -321
  137. package/dist/common.d.ts +0 -65
  138. package/dist/common.js +0 -253
  139. package/dist/configuration.d.ts +0 -91
  140. package/dist/configuration.js +0 -45
  141. package/dist/index.d.ts +0 -14
  142. package/dist/index.js +0 -32
  143. package/dist/models/account-statistics.d.ts +0 -30
  144. package/dist/models/account-statistics.js +0 -15
  145. package/dist/models/answer-callback.d.ts +0 -104
  146. package/dist/models/answer-callback.js +0 -15
  147. package/dist/models/bridge-complete-callback.d.ts +0 -115
  148. package/dist/models/bridge-complete-callback.js +0 -15
  149. package/dist/models/bridge-target-complete-callback.d.ts +0 -97
  150. package/dist/models/bridge-target-complete-callback.js +0 -15
  151. package/dist/models/bxml/Bxml.d.ts +0 -17
  152. package/dist/models/bxml/Bxml.js +0 -37
  153. package/dist/models/bxml/NestableVerb.d.ts +0 -26
  154. package/dist/models/bxml/NestableVerb.js +0 -62
  155. package/dist/models/bxml/Response.d.ts +0 -17
  156. package/dist/models/bxml/Response.js +0 -37
  157. package/dist/models/bxml/Root.d.ts +0 -33
  158. package/dist/models/bxml/Root.js +0 -57
  159. package/dist/models/bxml/Verb.d.ts +0 -27
  160. package/dist/models/bxml/Verb.js +0 -38
  161. package/dist/models/bxml/index.d.ts +0 -2
  162. package/dist/models/bxml/index.js +0 -5
  163. package/dist/models/bxml/verbs/Bridge.d.ts +0 -32
  164. package/dist/models/bxml/verbs/Bridge.js +0 -38
  165. package/dist/models/bxml/verbs/Conference.d.ts +0 -32
  166. package/dist/models/bxml/verbs/Conference.js +0 -38
  167. package/dist/models/bxml/verbs/CustomParam.d.ts +0 -19
  168. package/dist/models/bxml/verbs/CustomParam.js +0 -37
  169. package/dist/models/bxml/verbs/Forward.d.ts +0 -23
  170. package/dist/models/bxml/verbs/Forward.js +0 -37
  171. package/dist/models/bxml/verbs/Gather.d.ts +0 -47
  172. package/dist/models/bxml/verbs/Gather.js +0 -53
  173. package/dist/models/bxml/verbs/Hangup.d.ts +0 -13
  174. package/dist/models/bxml/verbs/Hangup.js +0 -36
  175. package/dist/models/bxml/verbs/Pause.d.ts +0 -18
  176. package/dist/models/bxml/verbs/Pause.js +0 -37
  177. package/dist/models/bxml/verbs/PauseRecording.d.ts +0 -13
  178. package/dist/models/bxml/verbs/PauseRecording.js +0 -36
  179. package/dist/models/bxml/verbs/PhoneNumber.d.ts +0 -30
  180. package/dist/models/bxml/verbs/PhoneNumber.js +0 -38
  181. package/dist/models/bxml/verbs/PlayAudio.d.ts +0 -21
  182. package/dist/models/bxml/verbs/PlayAudio.js +0 -38
  183. package/dist/models/bxml/verbs/Record.d.ts +0 -35
  184. package/dist/models/bxml/verbs/Record.js +0 -37
  185. package/dist/models/bxml/verbs/Redirect.d.ts +0 -26
  186. package/dist/models/bxml/verbs/Redirect.js +0 -37
  187. package/dist/models/bxml/verbs/ResumeRecording.d.ts +0 -13
  188. package/dist/models/bxml/verbs/ResumeRecording.js +0 -36
  189. package/dist/models/bxml/verbs/Ring.d.ts +0 -19
  190. package/dist/models/bxml/verbs/Ring.js +0 -37
  191. package/dist/models/bxml/verbs/SendDtmf.d.ts +0 -21
  192. package/dist/models/bxml/verbs/SendDtmf.js +0 -38
  193. package/dist/models/bxml/verbs/SipUri.d.ts +0 -31
  194. package/dist/models/bxml/verbs/SipUri.js +0 -38
  195. package/dist/models/bxml/verbs/SpeakSentence.d.ts +0 -28
  196. package/dist/models/bxml/verbs/SpeakSentence.js +0 -46
  197. package/dist/models/bxml/verbs/StartGather.d.ts +0 -22
  198. package/dist/models/bxml/verbs/StartGather.js +0 -37
  199. package/dist/models/bxml/verbs/StartRecording.d.ts +0 -27
  200. package/dist/models/bxml/verbs/StartRecording.js +0 -37
  201. package/dist/models/bxml/verbs/StartStream.d.ts +0 -31
  202. package/dist/models/bxml/verbs/StartStream.js +0 -45
  203. package/dist/models/bxml/verbs/StartTranscription.d.ts +0 -32
  204. package/dist/models/bxml/verbs/StartTranscription.js +0 -45
  205. package/dist/models/bxml/verbs/StopGather.d.ts +0 -13
  206. package/dist/models/bxml/verbs/StopGather.js +0 -36
  207. package/dist/models/bxml/verbs/StopRecording.d.ts +0 -13
  208. package/dist/models/bxml/verbs/StopRecording.js +0 -36
  209. package/dist/models/bxml/verbs/StopStream.d.ts +0 -18
  210. package/dist/models/bxml/verbs/StopStream.js +0 -37
  211. package/dist/models/bxml/verbs/StopTranscription.d.ts +0 -18
  212. package/dist/models/bxml/verbs/StopTranscription.js +0 -37
  213. package/dist/models/bxml/verbs/StreamParam.d.ts +0 -19
  214. package/dist/models/bxml/verbs/StreamParam.js +0 -37
  215. package/dist/models/bxml/verbs/Tag.d.ts +0 -15
  216. package/dist/models/bxml/verbs/Tag.js +0 -37
  217. package/dist/models/bxml/verbs/Transfer.d.ts +0 -41
  218. package/dist/models/bxml/verbs/Transfer.js +0 -45
  219. package/dist/models/bxml/verbs/index.d.ts +0 -30
  220. package/dist/models/bxml/verbs/index.js +0 -46
  221. package/dist/models/call-direction-enum.d.ts +0 -21
  222. package/dist/models/call-recording-metadata.d.ts +0 -129
  223. package/dist/models/call-recording-metadata.js +0 -15
  224. package/dist/models/call-state-enum.d.ts +0 -21
  225. package/dist/models/call-state-enum.js +0 -25
  226. package/dist/models/call-state.d.ts +0 -129
  227. package/dist/models/call-state.js +0 -15
  228. package/dist/models/call-transcription-metadata.d.ts +0 -30
  229. package/dist/models/call-transcription-metadata.js +0 -15
  230. package/dist/models/call-transcription-response.d.ts +0 -43
  231. package/dist/models/call-transcription-response.js +0 -15
  232. package/dist/models/call-transcription.d.ts +0 -53
  233. package/dist/models/callback-method-enum.d.ts +0 -21
  234. package/dist/models/callback-method-enum.js +0 -25
  235. package/dist/models/code-request.d.ts +0 -54
  236. package/dist/models/code-request.js +0 -15
  237. package/dist/models/conference-completed-callback.d.ts +0 -48
  238. package/dist/models/conference-completed-callback.js +0 -15
  239. package/dist/models/conference-created-callback.d.ts +0 -48
  240. package/dist/models/conference-created-callback.js +0 -15
  241. package/dist/models/conference-member-exit-callback.d.ts +0 -66
  242. package/dist/models/conference-member-exit-callback.js +0 -15
  243. package/dist/models/conference-member-join-callback.d.ts +0 -66
  244. package/dist/models/conference-member-join-callback.js +0 -15
  245. package/dist/models/conference-member.d.ts +0 -54
  246. package/dist/models/conference-member.js +0 -15
  247. package/dist/models/conference-recording-available-callback.d.ts +0 -103
  248. package/dist/models/conference-recording-available-callback.js +0 -15
  249. package/dist/models/conference-recording-metadata.d.ts +0 -85
  250. package/dist/models/conference-recording-metadata.js +0 -15
  251. package/dist/models/conference-redirect-callback.d.ts +0 -48
  252. package/dist/models/conference-redirect-callback.js +0 -15
  253. package/dist/models/conference-state-enum.d.ts +0 -21
  254. package/dist/models/conference-state-enum.js +0 -25
  255. package/dist/models/conference.d.ts +0 -68
  256. package/dist/models/conference.js +0 -15
  257. package/dist/models/create-call-response.d.ts +0 -145
  258. package/dist/models/create-call-response.js +0 -15
  259. package/dist/models/create-call.d.ts +0 -146
  260. package/dist/models/create-call.js +0 -15
  261. package/dist/models/create-lookup-response.d.ts +0 -31
  262. package/dist/models/create-lookup-response.js +0 -15
  263. package/dist/models/create-message-request-error.d.ts +0 -37
  264. package/dist/models/create-message-request-error.js +0 -15
  265. package/dist/models/deferred-result.d.ts +0 -30
  266. package/dist/models/deferred-result.js +0 -15
  267. package/dist/models/disconnect-callback.d.ts +0 -121
  268. package/dist/models/disconnect-callback.js +0 -15
  269. package/dist/models/diversion.d.ts +0 -60
  270. package/dist/models/diversion.js +0 -15
  271. package/dist/models/dtmf-callback.d.ts +0 -121
  272. package/dist/models/dtmf-callback.js +0 -15
  273. package/dist/models/field-error.d.ts +0 -30
  274. package/dist/models/field-error.js +0 -15
  275. package/dist/models/file-format-enum.d.ts +0 -21
  276. package/dist/models/file-format-enum.js +0 -25
  277. package/dist/models/gather-callback.d.ts +0 -127
  278. package/dist/models/gather-callback.js +0 -15
  279. package/dist/models/inbound-message-callback-message.d.ts +0 -92
  280. package/dist/models/inbound-message-callback-message.js +0 -15
  281. package/dist/models/inbound-message-callback.d.ts +0 -49
  282. package/dist/models/inbound-message-callback.js +0 -15
  283. package/dist/models/index.d.ts +0 -92
  284. package/dist/models/index.js +0 -108
  285. package/dist/models/initiate-callback.d.ts +0 -93
  286. package/dist/models/initiate-callback.js +0 -15
  287. package/dist/models/list-message-direction-enum.d.ts +0 -21
  288. package/dist/models/list-message-direction-enum.js +0 -25
  289. package/dist/models/list-message-item.d.ts +0 -123
  290. package/dist/models/list-message-item.js +0 -15
  291. package/dist/models/lookup-request.d.ts +0 -24
  292. package/dist/models/lookup-request.js +0 -15
  293. package/dist/models/lookup-result.d.ts +0 -72
  294. package/dist/models/lookup-result.js +0 -15
  295. package/dist/models/lookup-status-enum.d.ts +0 -23
  296. package/dist/models/lookup-status-enum.js +0 -27
  297. package/dist/models/lookup-status.d.ts +0 -44
  298. package/dist/models/lookup-status.js +0 -15
  299. package/dist/models/machine-detection-complete-callback.d.ts +0 -104
  300. package/dist/models/machine-detection-complete-callback.js +0 -15
  301. package/dist/models/machine-detection-configuration.d.ts +0 -110
  302. package/dist/models/machine-detection-configuration.js +0 -15
  303. package/dist/models/machine-detection-mode-enum.d.ts +0 -21
  304. package/dist/models/machine-detection-mode-enum.js +0 -25
  305. package/dist/models/machine-detection-result.d.ts +0 -30
  306. package/dist/models/machine-detection-result.js +0 -15
  307. package/dist/models/media.d.ts +0 -36
  308. package/dist/models/media.js +0 -15
  309. package/dist/models/message-delivered-callback-message.d.ts +0 -92
  310. package/dist/models/message-delivered-callback-message.js +0 -15
  311. package/dist/models/message-delivered-callback.d.ts +0 -49
  312. package/dist/models/message-delivered-callback.js +0 -15
  313. package/dist/models/message-direction-enum.d.ts +0 -21
  314. package/dist/models/message-direction-enum.js +0 -25
  315. package/dist/models/message-failed-callback-message.d.ts +0 -92
  316. package/dist/models/message-failed-callback-message.js +0 -15
  317. package/dist/models/message-failed-callback.d.ts +0 -55
  318. package/dist/models/message-failed-callback.js +0 -15
  319. package/dist/models/message-request.d.ts +0 -67
  320. package/dist/models/message-request.js +0 -15
  321. package/dist/models/message-sending-callback-message.d.ts +0 -92
  322. package/dist/models/message-sending-callback-message.js +0 -15
  323. package/dist/models/message-sending-callback.d.ts +0 -49
  324. package/dist/models/message-sending-callback.js +0 -15
  325. package/dist/models/message-status-enum.d.ts +0 -27
  326. package/dist/models/message-status-enum.js +0 -31
  327. package/dist/models/message-type-enum.d.ts +0 -21
  328. package/dist/models/message-type-enum.js +0 -25
  329. package/dist/models/message.d.ts +0 -98
  330. package/dist/models/message.js +0 -15
  331. package/dist/models/messages-list.d.ts +0 -38
  332. package/dist/models/messages-list.js +0 -15
  333. package/dist/models/messaging-code-response.d.ts +0 -24
  334. package/dist/models/messaging-code-response.js +0 -15
  335. package/dist/models/messaging-request-error.d.ts +0 -30
  336. package/dist/models/messaging-request-error.js +0 -15
  337. package/dist/models/mfa-forbidden-request-error.d.ts +0 -24
  338. package/dist/models/mfa-forbidden-request-error.js +0 -15
  339. package/dist/models/mfa-request-error.d.ts +0 -30
  340. package/dist/models/mfa-request-error.js +0 -15
  341. package/dist/models/mfa-unauthorized-request-error.d.ts +0 -24
  342. package/dist/models/mfa-unauthorized-request-error.js +0 -15
  343. package/dist/models/page-info.d.ts +0 -42
  344. package/dist/models/page-info.js +0 -15
  345. package/dist/models/priority-enum.d.ts +0 -21
  346. package/dist/models/priority-enum.js +0 -25
  347. package/dist/models/recording-available-callback.d.ts +0 -152
  348. package/dist/models/recording-available-callback.js +0 -15
  349. package/dist/models/recording-complete-callback.d.ts +0 -152
  350. package/dist/models/recording-complete-callback.js +0 -15
  351. package/dist/models/recording-state-enum.d.ts +0 -21
  352. package/dist/models/recording-state-enum.js +0 -25
  353. package/dist/models/recording-transcription-metadata.d.ts +0 -42
  354. package/dist/models/recording-transcription-metadata.js +0 -15
  355. package/dist/models/recording-transcriptions.d.ts +0 -25
  356. package/dist/models/recording-transcriptions.js +0 -15
  357. package/dist/models/redirect-callback.d.ts +0 -115
  358. package/dist/models/redirect-callback.js +0 -15
  359. package/dist/models/redirect-method-enum.d.ts +0 -21
  360. package/dist/models/redirect-method-enum.js +0 -25
  361. package/dist/models/stir-shaken.d.ts +0 -36
  362. package/dist/models/stir-shaken.js +0 -15
  363. package/dist/models/tag.d.ts +0 -30
  364. package/dist/models/tag.js +0 -15
  365. package/dist/models/tn-lookup-request-error.d.ts +0 -24
  366. package/dist/models/tn-lookup-request-error.js +0 -15
  367. package/dist/models/transcribe-recording.d.ts +0 -61
  368. package/dist/models/transcribe-recording.js +0 -15
  369. package/dist/models/transcription-available-callback.d.ts +0 -147
  370. package/dist/models/transcription-available-callback.js +0 -15
  371. package/dist/models/transcription-list.d.ts +0 -25
  372. package/dist/models/transcription-list.js +0 -15
  373. package/dist/models/transcription-metadata.d.ts +0 -42
  374. package/dist/models/transcription-metadata.js +0 -15
  375. package/dist/models/transcription.d.ts +0 -30
  376. package/dist/models/transcription.js +0 -15
  377. package/dist/models/transfer-answer-callback.d.ts +0 -109
  378. package/dist/models/transfer-answer-callback.js +0 -15
  379. package/dist/models/transfer-complete-callback.d.ts +0 -127
  380. package/dist/models/transfer-complete-callback.js +0 -15
  381. package/dist/models/transfer-disconnect-callback.d.ts +0 -139
  382. package/dist/models/transfer-disconnect-callback.js +0 -15
  383. package/dist/models/update-call-recording.d.ts +0 -25
  384. package/dist/models/update-call-recording.js +0 -15
  385. package/dist/models/update-call.d.ts +0 -80
  386. package/dist/models/update-call.js +0 -15
  387. package/dist/models/update-conference-member.d.ts +0 -36
  388. package/dist/models/update-conference-member.js +0 -15
  389. package/dist/models/update-conference.d.ts +0 -74
  390. package/dist/models/update-conference.js +0 -15
  391. package/dist/models/verify-code-request.d.ts +0 -42
  392. package/dist/models/verify-code-request.js +0 -15
  393. package/dist/models/verify-code-response.d.ts +0 -24
  394. package/dist/models/verify-code-response.js +0 -15
  395. package/dist/models/voice-api-error.d.ts +0 -36
  396. package/dist/models/voice-api-error.js +0 -15
  397. package/dist/models/voice-code-response.d.ts +0 -24
  398. package/dist/models/voice-code-response.js +0 -15
@@ -1,1143 +0,0 @@
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;
52
- return g = { next: verb(0), "throw": verb(1), "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.RecordingsApi = exports.RecordingsApiFactory = exports.RecordingsApiFp = exports.RecordingsApiAxiosParamCreator = 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
- * RecordingsApi - axios parameter creator
96
- * @export
97
- */
98
- var RecordingsApiAxiosParamCreator = function (configuration) {
99
- var _this = this;
100
- return {
101
- /**
102
- * Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
103
- * @summary Delete Recording
104
- * @param {string} accountId Your Bandwidth Account ID.
105
- * @param {string} callId Programmable Voice API Call ID.
106
- * @param {string} recordingId Programmable Voice API Recording ID.
107
- * @param {*} [options] Override http request option.
108
- * @throws {RequiredError}
109
- */
110
- deleteRecording: function (accountId_1, callId_1, recordingId_1) {
111
- var args_1 = [];
112
- for (var _i = 3; _i < arguments.length; _i++) {
113
- args_1[_i - 3] = arguments[_i];
114
- }
115
- return __awaiter(_this, __spreadArray([accountId_1, callId_1, recordingId_1], args_1, true), void 0, function (accountId, callId, recordingId, options) {
116
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
117
- if (options === void 0) { options = {}; }
118
- return __generator(this, function (_a) {
119
- // verify required parameter 'accountId' is not null or undefined
120
- (0, common_1.assertParamExists)('deleteRecording', 'accountId', accountId);
121
- // verify required parameter 'callId' is not null or undefined
122
- (0, common_1.assertParamExists)('deleteRecording', 'callId', callId);
123
- // verify required parameter 'recordingId' is not null or undefined
124
- (0, common_1.assertParamExists)('deleteRecording', 'recordingId', recordingId);
125
- localVarPath = "/accounts/{accountId}/calls/{callId}/recordings/{recordingId}"
126
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
127
- .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)))
128
- .replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
129
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
130
- if (configuration) {
131
- baseOptions = configuration.baseOptions;
132
- }
133
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
134
- localVarHeaderParameter = {};
135
- localVarQueryParameter = {};
136
- // authentication Basic required
137
- // http basic authentication required
138
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
139
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
140
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
141
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
142
- return [2 /*return*/, {
143
- url: (0, common_1.toPathString)(localVarUrlObj),
144
- options: localVarRequestOptions,
145
- }];
146
- });
147
- });
148
- },
149
- /**
150
- * Deletes the specified recording\'s media.
151
- * @summary Delete Recording Media
152
- * @param {string} accountId Your Bandwidth Account ID.
153
- * @param {string} callId Programmable Voice API Call ID.
154
- * @param {string} recordingId Programmable Voice API Recording ID.
155
- * @param {*} [options] Override http request option.
156
- * @throws {RequiredError}
157
- */
158
- deleteRecordingMedia: function (accountId_1, callId_1, recordingId_1) {
159
- var args_1 = [];
160
- for (var _i = 3; _i < arguments.length; _i++) {
161
- args_1[_i - 3] = arguments[_i];
162
- }
163
- return __awaiter(_this, __spreadArray([accountId_1, callId_1, recordingId_1], args_1, true), void 0, function (accountId, callId, recordingId, options) {
164
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
165
- if (options === void 0) { options = {}; }
166
- return __generator(this, function (_a) {
167
- // verify required parameter 'accountId' is not null or undefined
168
- (0, common_1.assertParamExists)('deleteRecordingMedia', 'accountId', accountId);
169
- // verify required parameter 'callId' is not null or undefined
170
- (0, common_1.assertParamExists)('deleteRecordingMedia', 'callId', callId);
171
- // verify required parameter 'recordingId' is not null or undefined
172
- (0, common_1.assertParamExists)('deleteRecordingMedia', 'recordingId', recordingId);
173
- localVarPath = "/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media"
174
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
175
- .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)))
176
- .replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
177
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
178
- if (configuration) {
179
- baseOptions = configuration.baseOptions;
180
- }
181
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
182
- localVarHeaderParameter = {};
183
- localVarQueryParameter = {};
184
- // authentication Basic required
185
- // http basic authentication required
186
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
187
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
188
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
190
- return [2 /*return*/, {
191
- url: (0, common_1.toPathString)(localVarUrlObj),
192
- options: localVarRequestOptions,
193
- }];
194
- });
195
- });
196
- },
197
- /**
198
- * Deletes the specified recording\'s transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
199
- * @summary Delete Transcription
200
- * @param {string} accountId Your Bandwidth Account ID.
201
- * @param {string} callId Programmable Voice API Call ID.
202
- * @param {string} recordingId Programmable Voice API Recording ID.
203
- * @param {*} [options] Override http request option.
204
- * @throws {RequiredError}
205
- */
206
- deleteRecordingTranscription: function (accountId_1, callId_1, recordingId_1) {
207
- var args_1 = [];
208
- for (var _i = 3; _i < arguments.length; _i++) {
209
- args_1[_i - 3] = arguments[_i];
210
- }
211
- return __awaiter(_this, __spreadArray([accountId_1, callId_1, recordingId_1], args_1, true), void 0, function (accountId, callId, recordingId, options) {
212
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
- if (options === void 0) { options = {}; }
214
- return __generator(this, function (_a) {
215
- // verify required parameter 'accountId' is not null or undefined
216
- (0, common_1.assertParamExists)('deleteRecordingTranscription', 'accountId', accountId);
217
- // verify required parameter 'callId' is not null or undefined
218
- (0, common_1.assertParamExists)('deleteRecordingTranscription', 'callId', callId);
219
- // verify required parameter 'recordingId' is not null or undefined
220
- (0, common_1.assertParamExists)('deleteRecordingTranscription', 'recordingId', recordingId);
221
- localVarPath = "/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription"
222
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
223
- .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)))
224
- .replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
225
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
226
- if (configuration) {
227
- baseOptions = configuration.baseOptions;
228
- }
229
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
230
- localVarHeaderParameter = {};
231
- localVarQueryParameter = {};
232
- // authentication Basic required
233
- // http basic authentication required
234
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
235
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
238
- return [2 /*return*/, {
239
- url: (0, common_1.toPathString)(localVarUrlObj),
240
- options: localVarRequestOptions,
241
- }];
242
- });
243
- });
244
- },
245
- /**
246
- * Downloads the specified recording.
247
- * @summary Download Recording
248
- * @param {string} accountId Your Bandwidth Account ID.
249
- * @param {string} callId Programmable Voice API Call ID.
250
- * @param {string} recordingId Programmable Voice API Recording ID.
251
- * @param {*} [options] Override http request option.
252
- * @throws {RequiredError}
253
- */
254
- downloadCallRecording: function (accountId_1, callId_1, recordingId_1) {
255
- var args_1 = [];
256
- for (var _i = 3; _i < arguments.length; _i++) {
257
- args_1[_i - 3] = arguments[_i];
258
- }
259
- return __awaiter(_this, __spreadArray([accountId_1, callId_1, recordingId_1], args_1, true), void 0, function (accountId, callId, recordingId, options) {
260
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
261
- if (options === void 0) { options = {}; }
262
- return __generator(this, function (_a) {
263
- // verify required parameter 'accountId' is not null or undefined
264
- (0, common_1.assertParamExists)('downloadCallRecording', 'accountId', accountId);
265
- // verify required parameter 'callId' is not null or undefined
266
- (0, common_1.assertParamExists)('downloadCallRecording', 'callId', callId);
267
- // verify required parameter 'recordingId' is not null or undefined
268
- (0, common_1.assertParamExists)('downloadCallRecording', 'recordingId', recordingId);
269
- localVarPath = "/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media"
270
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
271
- .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)))
272
- .replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
273
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
274
- if (configuration) {
275
- baseOptions = configuration.baseOptions;
276
- }
277
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
278
- localVarHeaderParameter = {};
279
- localVarQueryParameter = {};
280
- // authentication Basic required
281
- // http basic authentication required
282
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
283
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
284
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
286
- return [2 /*return*/, {
287
- url: (0, common_1.toPathString)(localVarUrlObj),
288
- options: localVarRequestOptions,
289
- }];
290
- });
291
- });
292
- },
293
- /**
294
- * Returns metadata for the specified recording.
295
- * @summary Get Call Recording
296
- * @param {string} accountId Your Bandwidth Account ID.
297
- * @param {string} callId Programmable Voice API Call ID.
298
- * @param {string} recordingId Programmable Voice API Recording ID.
299
- * @param {*} [options] Override http request option.
300
- * @throws {RequiredError}
301
- */
302
- getCallRecording: function (accountId_1, callId_1, recordingId_1) {
303
- var args_1 = [];
304
- for (var _i = 3; _i < arguments.length; _i++) {
305
- args_1[_i - 3] = arguments[_i];
306
- }
307
- return __awaiter(_this, __spreadArray([accountId_1, callId_1, recordingId_1], args_1, true), void 0, function (accountId, callId, recordingId, options) {
308
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
309
- if (options === void 0) { options = {}; }
310
- return __generator(this, function (_a) {
311
- // verify required parameter 'accountId' is not null or undefined
312
- (0, common_1.assertParamExists)('getCallRecording', 'accountId', accountId);
313
- // verify required parameter 'callId' is not null or undefined
314
- (0, common_1.assertParamExists)('getCallRecording', 'callId', callId);
315
- // verify required parameter 'recordingId' is not null or undefined
316
- (0, common_1.assertParamExists)('getCallRecording', 'recordingId', recordingId);
317
- localVarPath = "/accounts/{accountId}/calls/{callId}/recordings/{recordingId}"
318
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
319
- .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)))
320
- .replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
321
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
322
- if (configuration) {
323
- baseOptions = configuration.baseOptions;
324
- }
325
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
326
- localVarHeaderParameter = {};
327
- localVarQueryParameter = {};
328
- // authentication Basic required
329
- // http basic authentication required
330
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
331
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
332
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
333
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
334
- return [2 /*return*/, {
335
- url: (0, common_1.toPathString)(localVarUrlObj),
336
- options: localVarRequestOptions,
337
- }];
338
- });
339
- });
340
- },
341
- /**
342
- * Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
343
- * @summary Get Transcription
344
- * @param {string} accountId Your Bandwidth Account ID.
345
- * @param {string} callId Programmable Voice API Call ID.
346
- * @param {string} recordingId Programmable Voice API Recording ID.
347
- * @param {*} [options] Override http request option.
348
- * @throws {RequiredError}
349
- */
350
- getRecordingTranscription: function (accountId_1, callId_1, recordingId_1) {
351
- var args_1 = [];
352
- for (var _i = 3; _i < arguments.length; _i++) {
353
- args_1[_i - 3] = arguments[_i];
354
- }
355
- return __awaiter(_this, __spreadArray([accountId_1, callId_1, recordingId_1], args_1, true), void 0, function (accountId, callId, recordingId, options) {
356
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
357
- if (options === void 0) { options = {}; }
358
- return __generator(this, function (_a) {
359
- // verify required parameter 'accountId' is not null or undefined
360
- (0, common_1.assertParamExists)('getRecordingTranscription', 'accountId', accountId);
361
- // verify required parameter 'callId' is not null or undefined
362
- (0, common_1.assertParamExists)('getRecordingTranscription', 'callId', callId);
363
- // verify required parameter 'recordingId' is not null or undefined
364
- (0, common_1.assertParamExists)('getRecordingTranscription', 'recordingId', recordingId);
365
- localVarPath = "/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription"
366
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
367
- .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)))
368
- .replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
369
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
370
- if (configuration) {
371
- baseOptions = configuration.baseOptions;
372
- }
373
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
374
- localVarHeaderParameter = {};
375
- localVarQueryParameter = {};
376
- // authentication Basic required
377
- // http basic authentication required
378
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
379
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
380
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
381
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
382
- return [2 /*return*/, {
383
- url: (0, common_1.toPathString)(localVarUrlObj),
384
- options: localVarRequestOptions,
385
- }];
386
- });
387
- });
388
- },
389
- /**
390
- * Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria.
391
- * @summary Get Call Recordings
392
- * @param {string} accountId Your Bandwidth Account ID.
393
- * @param {string} [to] Filter results by the &#x60;to&#x60; field.
394
- * @param {string} [from] Filter results by the &#x60;from&#x60; field.
395
- * @param {string} [minStartTime] Filter results to recordings which have a &#x60;startTime&#x60; after or including &#x60;minStartTime&#x60; (in ISO8601 format).
396
- * @param {string} [maxStartTime] Filter results to recordings which have a &#x60;startTime&#x60; before &#x60;maxStartTime&#x60; (in ISO8601 format).
397
- * @param {*} [options] Override http request option.
398
- * @throws {RequiredError}
399
- */
400
- listAccountCallRecordings: function (accountId_1, to_1, from_1, minStartTime_1, maxStartTime_1) {
401
- var args_1 = [];
402
- for (var _i = 5; _i < arguments.length; _i++) {
403
- args_1[_i - 5] = arguments[_i];
404
- }
405
- return __awaiter(_this, __spreadArray([accountId_1, to_1, from_1, minStartTime_1, maxStartTime_1], args_1, true), void 0, function (accountId, to, from, minStartTime, maxStartTime, options) {
406
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
407
- if (options === void 0) { options = {}; }
408
- return __generator(this, function (_a) {
409
- // verify required parameter 'accountId' is not null or undefined
410
- (0, common_1.assertParamExists)('listAccountCallRecordings', 'accountId', accountId);
411
- localVarPath = "/accounts/{accountId}/recordings"
412
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
413
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
414
- if (configuration) {
415
- baseOptions = configuration.baseOptions;
416
- }
417
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
418
- localVarHeaderParameter = {};
419
- localVarQueryParameter = {};
420
- // authentication Basic required
421
- // http basic authentication required
422
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
423
- if (to !== undefined) {
424
- localVarQueryParameter['to'] = to;
425
- }
426
- if (from !== undefined) {
427
- localVarQueryParameter['from'] = from;
428
- }
429
- if (minStartTime !== undefined) {
430
- localVarQueryParameter['minStartTime'] = minStartTime;
431
- }
432
- if (maxStartTime !== undefined) {
433
- localVarQueryParameter['maxStartTime'] = maxStartTime;
434
- }
435
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
436
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
437
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
438
- return [2 /*return*/, {
439
- url: (0, common_1.toPathString)(localVarUrlObj),
440
- options: localVarRequestOptions,
441
- }];
442
- });
443
- });
444
- },
445
- /**
446
- * Returns a (potentially empty) list of metadata for the recordings that took place during the specified call.
447
- * @summary List Call Recordings
448
- * @param {string} accountId Your Bandwidth Account ID.
449
- * @param {string} callId Programmable Voice API Call ID.
450
- * @param {*} [options] Override http request option.
451
- * @throws {RequiredError}
452
- */
453
- listCallRecordings: function (accountId_1, callId_1) {
454
- var args_1 = [];
455
- for (var _i = 2; _i < arguments.length; _i++) {
456
- args_1[_i - 2] = arguments[_i];
457
- }
458
- return __awaiter(_this, __spreadArray([accountId_1, callId_1], args_1, true), void 0, function (accountId, callId, options) {
459
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
460
- if (options === void 0) { options = {}; }
461
- return __generator(this, function (_a) {
462
- // verify required parameter 'accountId' is not null or undefined
463
- (0, common_1.assertParamExists)('listCallRecordings', 'accountId', accountId);
464
- // verify required parameter 'callId' is not null or undefined
465
- (0, common_1.assertParamExists)('listCallRecordings', 'callId', callId);
466
- localVarPath = "/accounts/{accountId}/calls/{callId}/recordings"
467
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
468
- .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)));
469
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
470
- if (configuration) {
471
- baseOptions = configuration.baseOptions;
472
- }
473
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
474
- localVarHeaderParameter = {};
475
- localVarQueryParameter = {};
476
- // authentication Basic required
477
- // http basic authentication required
478
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
479
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
480
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
481
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
482
- return [2 /*return*/, {
483
- url: (0, common_1.toPathString)(localVarUrlObj),
484
- options: localVarRequestOptions,
485
- }];
486
- });
487
- });
488
- },
489
- /**
490
- * Generate the transcription for a specific recording. Transcription can succeed only for recordings of length greater than 500 milliseconds and less than 4 hours.
491
- * @summary Create Transcription Request
492
- * @param {string} accountId Your Bandwidth Account ID.
493
- * @param {string} callId Programmable Voice API Call ID.
494
- * @param {string} recordingId Programmable Voice API Recording ID.
495
- * @param {TranscribeRecording} transcribeRecording
496
- * @param {*} [options] Override http request option.
497
- * @throws {RequiredError}
498
- */
499
- transcribeCallRecording: function (accountId_1, callId_1, recordingId_1, transcribeRecording_1) {
500
- var args_1 = [];
501
- for (var _i = 4; _i < arguments.length; _i++) {
502
- args_1[_i - 4] = arguments[_i];
503
- }
504
- return __awaiter(_this, __spreadArray([accountId_1, callId_1, recordingId_1, transcribeRecording_1], args_1, true), void 0, function (accountId, callId, recordingId, transcribeRecording, options) {
505
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
506
- if (options === void 0) { options = {}; }
507
- return __generator(this, function (_a) {
508
- // verify required parameter 'accountId' is not null or undefined
509
- (0, common_1.assertParamExists)('transcribeCallRecording', 'accountId', accountId);
510
- // verify required parameter 'callId' is not null or undefined
511
- (0, common_1.assertParamExists)('transcribeCallRecording', 'callId', callId);
512
- // verify required parameter 'recordingId' is not null or undefined
513
- (0, common_1.assertParamExists)('transcribeCallRecording', 'recordingId', recordingId);
514
- // verify required parameter 'transcribeRecording' is not null or undefined
515
- (0, common_1.assertParamExists)('transcribeCallRecording', 'transcribeRecording', transcribeRecording);
516
- localVarPath = "/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription"
517
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
518
- .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)))
519
- .replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
520
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
521
- if (configuration) {
522
- baseOptions = configuration.baseOptions;
523
- }
524
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
525
- localVarHeaderParameter = {};
526
- localVarQueryParameter = {};
527
- // authentication Basic required
528
- // http basic authentication required
529
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
530
- localVarHeaderParameter['Content-Type'] = 'application/json';
531
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
532
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
533
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
534
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(transcribeRecording, localVarRequestOptions, configuration);
535
- return [2 /*return*/, {
536
- url: (0, common_1.toPathString)(localVarUrlObj),
537
- options: localVarRequestOptions,
538
- }];
539
- });
540
- });
541
- },
542
- /**
543
- * Pause or resume a recording on an active phone call.
544
- * @summary Update Recording
545
- * @param {string} accountId Your Bandwidth Account ID.
546
- * @param {string} callId Programmable Voice API Call ID.
547
- * @param {UpdateCallRecording} updateCallRecording
548
- * @param {*} [options] Override http request option.
549
- * @throws {RequiredError}
550
- */
551
- updateCallRecordingState: function (accountId_1, callId_1, updateCallRecording_1) {
552
- var args_1 = [];
553
- for (var _i = 3; _i < arguments.length; _i++) {
554
- args_1[_i - 3] = arguments[_i];
555
- }
556
- return __awaiter(_this, __spreadArray([accountId_1, callId_1, updateCallRecording_1], args_1, true), void 0, function (accountId, callId, updateCallRecording, options) {
557
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
558
- if (options === void 0) { options = {}; }
559
- return __generator(this, function (_a) {
560
- // verify required parameter 'accountId' is not null or undefined
561
- (0, common_1.assertParamExists)('updateCallRecordingState', 'accountId', accountId);
562
- // verify required parameter 'callId' is not null or undefined
563
- (0, common_1.assertParamExists)('updateCallRecordingState', 'callId', callId);
564
- // verify required parameter 'updateCallRecording' is not null or undefined
565
- (0, common_1.assertParamExists)('updateCallRecordingState', 'updateCallRecording', updateCallRecording);
566
- localVarPath = "/accounts/{accountId}/calls/{callId}/recording"
567
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
568
- .replace("{".concat("callId", "}"), encodeURIComponent(String(callId)));
569
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
570
- if (configuration) {
571
- baseOptions = configuration.baseOptions;
572
- }
573
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
574
- localVarHeaderParameter = {};
575
- localVarQueryParameter = {};
576
- // authentication Basic required
577
- // http basic authentication required
578
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
579
- localVarHeaderParameter['Content-Type'] = 'application/json';
580
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
581
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
582
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
583
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCallRecording, localVarRequestOptions, configuration);
584
- return [2 /*return*/, {
585
- url: (0, common_1.toPathString)(localVarUrlObj),
586
- options: localVarRequestOptions,
587
- }];
588
- });
589
- });
590
- },
591
- };
592
- };
593
- exports.RecordingsApiAxiosParamCreator = RecordingsApiAxiosParamCreator;
594
- /**
595
- * RecordingsApi - functional programming interface
596
- * @export
597
- */
598
- var RecordingsApiFp = function (configuration) {
599
- var localVarAxiosParamCreator = (0, exports.RecordingsApiAxiosParamCreator)(configuration);
600
- return {
601
- /**
602
- * Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
603
- * @summary Delete Recording
604
- * @param {string} accountId Your Bandwidth Account ID.
605
- * @param {string} callId Programmable Voice API Call ID.
606
- * @param {string} recordingId Programmable Voice API Recording ID.
607
- * @param {*} [options] Override http request option.
608
- * @throws {RequiredError}
609
- */
610
- deleteRecording: function (accountId, callId, recordingId, options) {
611
- return __awaiter(this, void 0, void 0, function () {
612
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
613
- var _a, _b, _c;
614
- return __generator(this, function (_d) {
615
- switch (_d.label) {
616
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteRecording(accountId, callId, recordingId, options)];
617
- case 1:
618
- localVarAxiosArgs = _d.sent();
619
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
620
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecordingsApi.deleteRecording']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
621
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
622
- }
623
- });
624
- });
625
- },
626
- /**
627
- * Deletes the specified recording\'s media.
628
- * @summary Delete Recording Media
629
- * @param {string} accountId Your Bandwidth Account ID.
630
- * @param {string} callId Programmable Voice API Call ID.
631
- * @param {string} recordingId Programmable Voice API Recording ID.
632
- * @param {*} [options] Override http request option.
633
- * @throws {RequiredError}
634
- */
635
- deleteRecordingMedia: function (accountId, callId, recordingId, options) {
636
- return __awaiter(this, void 0, void 0, function () {
637
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
638
- var _a, _b, _c;
639
- return __generator(this, function (_d) {
640
- switch (_d.label) {
641
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteRecordingMedia(accountId, callId, recordingId, options)];
642
- case 1:
643
- localVarAxiosArgs = _d.sent();
644
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
645
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecordingsApi.deleteRecordingMedia']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
646
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
647
- }
648
- });
649
- });
650
- },
651
- /**
652
- * Deletes the specified recording\'s transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
653
- * @summary Delete Transcription
654
- * @param {string} accountId Your Bandwidth Account ID.
655
- * @param {string} callId Programmable Voice API Call ID.
656
- * @param {string} recordingId Programmable Voice API Recording ID.
657
- * @param {*} [options] Override http request option.
658
- * @throws {RequiredError}
659
- */
660
- deleteRecordingTranscription: function (accountId, callId, recordingId, options) {
661
- return __awaiter(this, void 0, void 0, function () {
662
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
663
- var _a, _b, _c;
664
- return __generator(this, function (_d) {
665
- switch (_d.label) {
666
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteRecordingTranscription(accountId, callId, recordingId, options)];
667
- case 1:
668
- localVarAxiosArgs = _d.sent();
669
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
670
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecordingsApi.deleteRecordingTranscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
671
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
672
- }
673
- });
674
- });
675
- },
676
- /**
677
- * Downloads the specified recording.
678
- * @summary Download Recording
679
- * @param {string} accountId Your Bandwidth Account ID.
680
- * @param {string} callId Programmable Voice API Call ID.
681
- * @param {string} recordingId Programmable Voice API Recording ID.
682
- * @param {*} [options] Override http request option.
683
- * @throws {RequiredError}
684
- */
685
- downloadCallRecording: function (accountId, callId, recordingId, options) {
686
- return __awaiter(this, void 0, void 0, function () {
687
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
688
- var _a, _b, _c;
689
- return __generator(this, function (_d) {
690
- switch (_d.label) {
691
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadCallRecording(accountId, callId, recordingId, options)];
692
- case 1:
693
- localVarAxiosArgs = _d.sent();
694
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
695
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecordingsApi.downloadCallRecording']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
696
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
697
- }
698
- });
699
- });
700
- },
701
- /**
702
- * Returns metadata for the specified recording.
703
- * @summary Get Call Recording
704
- * @param {string} accountId Your Bandwidth Account ID.
705
- * @param {string} callId Programmable Voice API Call ID.
706
- * @param {string} recordingId Programmable Voice API Recording ID.
707
- * @param {*} [options] Override http request option.
708
- * @throws {RequiredError}
709
- */
710
- getCallRecording: function (accountId, callId, recordingId, options) {
711
- return __awaiter(this, void 0, void 0, function () {
712
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
713
- var _a, _b, _c;
714
- return __generator(this, function (_d) {
715
- switch (_d.label) {
716
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCallRecording(accountId, callId, recordingId, options)];
717
- case 1:
718
- localVarAxiosArgs = _d.sent();
719
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
720
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecordingsApi.getCallRecording']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
721
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
722
- }
723
- });
724
- });
725
- },
726
- /**
727
- * Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
728
- * @summary Get Transcription
729
- * @param {string} accountId Your Bandwidth Account ID.
730
- * @param {string} callId Programmable Voice API Call ID.
731
- * @param {string} recordingId Programmable Voice API Recording ID.
732
- * @param {*} [options] Override http request option.
733
- * @throws {RequiredError}
734
- */
735
- getRecordingTranscription: function (accountId, callId, recordingId, options) {
736
- return __awaiter(this, void 0, void 0, function () {
737
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
738
- var _a, _b, _c;
739
- return __generator(this, function (_d) {
740
- switch (_d.label) {
741
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRecordingTranscription(accountId, callId, recordingId, options)];
742
- case 1:
743
- localVarAxiosArgs = _d.sent();
744
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
745
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecordingsApi.getRecordingTranscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
746
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
747
- }
748
- });
749
- });
750
- },
751
- /**
752
- * Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria.
753
- * @summary Get Call Recordings
754
- * @param {string} accountId Your Bandwidth Account ID.
755
- * @param {string} [to] Filter results by the &#x60;to&#x60; field.
756
- * @param {string} [from] Filter results by the &#x60;from&#x60; field.
757
- * @param {string} [minStartTime] Filter results to recordings which have a &#x60;startTime&#x60; after or including &#x60;minStartTime&#x60; (in ISO8601 format).
758
- * @param {string} [maxStartTime] Filter results to recordings which have a &#x60;startTime&#x60; before &#x60;maxStartTime&#x60; (in ISO8601 format).
759
- * @param {*} [options] Override http request option.
760
- * @throws {RequiredError}
761
- */
762
- listAccountCallRecordings: function (accountId, to, from, minStartTime, maxStartTime, options) {
763
- return __awaiter(this, void 0, void 0, function () {
764
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
765
- var _a, _b, _c;
766
- return __generator(this, function (_d) {
767
- switch (_d.label) {
768
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAccountCallRecordings(accountId, to, from, minStartTime, maxStartTime, options)];
769
- case 1:
770
- localVarAxiosArgs = _d.sent();
771
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
772
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecordingsApi.listAccountCallRecordings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
773
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
774
- }
775
- });
776
- });
777
- },
778
- /**
779
- * Returns a (potentially empty) list of metadata for the recordings that took place during the specified call.
780
- * @summary List Call Recordings
781
- * @param {string} accountId Your Bandwidth Account ID.
782
- * @param {string} callId Programmable Voice API Call ID.
783
- * @param {*} [options] Override http request option.
784
- * @throws {RequiredError}
785
- */
786
- listCallRecordings: function (accountId, callId, options) {
787
- return __awaiter(this, void 0, void 0, function () {
788
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
789
- var _a, _b, _c;
790
- return __generator(this, function (_d) {
791
- switch (_d.label) {
792
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCallRecordings(accountId, callId, options)];
793
- case 1:
794
- localVarAxiosArgs = _d.sent();
795
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
796
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecordingsApi.listCallRecordings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
797
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
798
- }
799
- });
800
- });
801
- },
802
- /**
803
- * Generate the transcription for a specific recording. Transcription can succeed only for recordings of length greater than 500 milliseconds and less than 4 hours.
804
- * @summary Create Transcription Request
805
- * @param {string} accountId Your Bandwidth Account ID.
806
- * @param {string} callId Programmable Voice API Call ID.
807
- * @param {string} recordingId Programmable Voice API Recording ID.
808
- * @param {TranscribeRecording} transcribeRecording
809
- * @param {*} [options] Override http request option.
810
- * @throws {RequiredError}
811
- */
812
- transcribeCallRecording: function (accountId, callId, recordingId, transcribeRecording, options) {
813
- return __awaiter(this, void 0, void 0, function () {
814
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
815
- var _a, _b, _c;
816
- return __generator(this, function (_d) {
817
- switch (_d.label) {
818
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.transcribeCallRecording(accountId, callId, recordingId, transcribeRecording, options)];
819
- case 1:
820
- localVarAxiosArgs = _d.sent();
821
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
822
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecordingsApi.transcribeCallRecording']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
823
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
824
- }
825
- });
826
- });
827
- },
828
- /**
829
- * Pause or resume a recording on an active phone call.
830
- * @summary Update Recording
831
- * @param {string} accountId Your Bandwidth Account ID.
832
- * @param {string} callId Programmable Voice API Call ID.
833
- * @param {UpdateCallRecording} updateCallRecording
834
- * @param {*} [options] Override http request option.
835
- * @throws {RequiredError}
836
- */
837
- updateCallRecordingState: function (accountId, callId, updateCallRecording, options) {
838
- return __awaiter(this, void 0, void 0, function () {
839
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
840
- var _a, _b, _c;
841
- return __generator(this, function (_d) {
842
- switch (_d.label) {
843
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCallRecordingState(accountId, callId, updateCallRecording, options)];
844
- case 1:
845
- localVarAxiosArgs = _d.sent();
846
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
847
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RecordingsApi.updateCallRecordingState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
848
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
849
- }
850
- });
851
- });
852
- },
853
- };
854
- };
855
- exports.RecordingsApiFp = RecordingsApiFp;
856
- /**
857
- * RecordingsApi - factory interface
858
- * @export
859
- */
860
- var RecordingsApiFactory = function (configuration, basePath, axios) {
861
- var localVarFp = (0, exports.RecordingsApiFp)(configuration);
862
- return {
863
- /**
864
- * Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
865
- * @summary Delete Recording
866
- * @param {string} accountId Your Bandwidth Account ID.
867
- * @param {string} callId Programmable Voice API Call ID.
868
- * @param {string} recordingId Programmable Voice API Recording ID.
869
- * @param {*} [options] Override http request option.
870
- * @throws {RequiredError}
871
- */
872
- deleteRecording: function (accountId, callId, recordingId, options) {
873
- return localVarFp.deleteRecording(accountId, callId, recordingId, options).then(function (request) { return request(axios, basePath); });
874
- },
875
- /**
876
- * Deletes the specified recording\'s media.
877
- * @summary Delete Recording Media
878
- * @param {string} accountId Your Bandwidth Account ID.
879
- * @param {string} callId Programmable Voice API Call ID.
880
- * @param {string} recordingId Programmable Voice API Recording ID.
881
- * @param {*} [options] Override http request option.
882
- * @throws {RequiredError}
883
- */
884
- deleteRecordingMedia: function (accountId, callId, recordingId, options) {
885
- return localVarFp.deleteRecordingMedia(accountId, callId, recordingId, options).then(function (request) { return request(axios, basePath); });
886
- },
887
- /**
888
- * Deletes the specified recording\'s transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
889
- * @summary Delete Transcription
890
- * @param {string} accountId Your Bandwidth Account ID.
891
- * @param {string} callId Programmable Voice API Call ID.
892
- * @param {string} recordingId Programmable Voice API Recording ID.
893
- * @param {*} [options] Override http request option.
894
- * @throws {RequiredError}
895
- */
896
- deleteRecordingTranscription: function (accountId, callId, recordingId, options) {
897
- return localVarFp.deleteRecordingTranscription(accountId, callId, recordingId, options).then(function (request) { return request(axios, basePath); });
898
- },
899
- /**
900
- * Downloads the specified recording.
901
- * @summary Download Recording
902
- * @param {string} accountId Your Bandwidth Account ID.
903
- * @param {string} callId Programmable Voice API Call ID.
904
- * @param {string} recordingId Programmable Voice API Recording ID.
905
- * @param {*} [options] Override http request option.
906
- * @throws {RequiredError}
907
- */
908
- downloadCallRecording: function (accountId, callId, recordingId, options) {
909
- return localVarFp.downloadCallRecording(accountId, callId, recordingId, options).then(function (request) { return request(axios, basePath); });
910
- },
911
- /**
912
- * Returns metadata for the specified recording.
913
- * @summary Get Call Recording
914
- * @param {string} accountId Your Bandwidth Account ID.
915
- * @param {string} callId Programmable Voice API Call ID.
916
- * @param {string} recordingId Programmable Voice API Recording ID.
917
- * @param {*} [options] Override http request option.
918
- * @throws {RequiredError}
919
- */
920
- getCallRecording: function (accountId, callId, recordingId, options) {
921
- return localVarFp.getCallRecording(accountId, callId, recordingId, options).then(function (request) { return request(axios, basePath); });
922
- },
923
- /**
924
- * Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
925
- * @summary Get Transcription
926
- * @param {string} accountId Your Bandwidth Account ID.
927
- * @param {string} callId Programmable Voice API Call ID.
928
- * @param {string} recordingId Programmable Voice API Recording ID.
929
- * @param {*} [options] Override http request option.
930
- * @throws {RequiredError}
931
- */
932
- getRecordingTranscription: function (accountId, callId, recordingId, options) {
933
- return localVarFp.getRecordingTranscription(accountId, callId, recordingId, options).then(function (request) { return request(axios, basePath); });
934
- },
935
- /**
936
- * Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria.
937
- * @summary Get Call Recordings
938
- * @param {string} accountId Your Bandwidth Account ID.
939
- * @param {string} [to] Filter results by the &#x60;to&#x60; field.
940
- * @param {string} [from] Filter results by the &#x60;from&#x60; field.
941
- * @param {string} [minStartTime] Filter results to recordings which have a &#x60;startTime&#x60; after or including &#x60;minStartTime&#x60; (in ISO8601 format).
942
- * @param {string} [maxStartTime] Filter results to recordings which have a &#x60;startTime&#x60; before &#x60;maxStartTime&#x60; (in ISO8601 format).
943
- * @param {*} [options] Override http request option.
944
- * @throws {RequiredError}
945
- */
946
- listAccountCallRecordings: function (accountId, to, from, minStartTime, maxStartTime, options) {
947
- return localVarFp.listAccountCallRecordings(accountId, to, from, minStartTime, maxStartTime, options).then(function (request) { return request(axios, basePath); });
948
- },
949
- /**
950
- * Returns a (potentially empty) list of metadata for the recordings that took place during the specified call.
951
- * @summary List Call Recordings
952
- * @param {string} accountId Your Bandwidth Account ID.
953
- * @param {string} callId Programmable Voice API Call ID.
954
- * @param {*} [options] Override http request option.
955
- * @throws {RequiredError}
956
- */
957
- listCallRecordings: function (accountId, callId, options) {
958
- return localVarFp.listCallRecordings(accountId, callId, options).then(function (request) { return request(axios, basePath); });
959
- },
960
- /**
961
- * Generate the transcription for a specific recording. Transcription can succeed only for recordings of length greater than 500 milliseconds and less than 4 hours.
962
- * @summary Create Transcription Request
963
- * @param {string} accountId Your Bandwidth Account ID.
964
- * @param {string} callId Programmable Voice API Call ID.
965
- * @param {string} recordingId Programmable Voice API Recording ID.
966
- * @param {TranscribeRecording} transcribeRecording
967
- * @param {*} [options] Override http request option.
968
- * @throws {RequiredError}
969
- */
970
- transcribeCallRecording: function (accountId, callId, recordingId, transcribeRecording, options) {
971
- return localVarFp.transcribeCallRecording(accountId, callId, recordingId, transcribeRecording, options).then(function (request) { return request(axios, basePath); });
972
- },
973
- /**
974
- * Pause or resume a recording on an active phone call.
975
- * @summary Update Recording
976
- * @param {string} accountId Your Bandwidth Account ID.
977
- * @param {string} callId Programmable Voice API Call ID.
978
- * @param {UpdateCallRecording} updateCallRecording
979
- * @param {*} [options] Override http request option.
980
- * @throws {RequiredError}
981
- */
982
- updateCallRecordingState: function (accountId, callId, updateCallRecording, options) {
983
- return localVarFp.updateCallRecordingState(accountId, callId, updateCallRecording, options).then(function (request) { return request(axios, basePath); });
984
- },
985
- };
986
- };
987
- exports.RecordingsApiFactory = RecordingsApiFactory;
988
- /**
989
- * RecordingsApi - object-oriented interface
990
- * @export
991
- * @class RecordingsApi
992
- * @extends {BaseAPI}
993
- */
994
- var RecordingsApi = /** @class */ (function (_super) {
995
- __extends(RecordingsApi, _super);
996
- function RecordingsApi() {
997
- return _super !== null && _super.apply(this, arguments) || this;
998
- }
999
- /**
1000
- * Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
1001
- * @summary Delete Recording
1002
- * @param {string} accountId Your Bandwidth Account ID.
1003
- * @param {string} callId Programmable Voice API Call ID.
1004
- * @param {string} recordingId Programmable Voice API Recording ID.
1005
- * @param {*} [options] Override http request option.
1006
- * @throws {RequiredError}
1007
- * @memberof RecordingsApi
1008
- */
1009
- RecordingsApi.prototype.deleteRecording = function (accountId, callId, recordingId, options) {
1010
- var _this = this;
1011
- return (0, exports.RecordingsApiFp)(this.configuration).deleteRecording(accountId, callId, recordingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1012
- };
1013
- /**
1014
- * Deletes the specified recording\'s media.
1015
- * @summary Delete Recording Media
1016
- * @param {string} accountId Your Bandwidth Account ID.
1017
- * @param {string} callId Programmable Voice API Call ID.
1018
- * @param {string} recordingId Programmable Voice API Recording ID.
1019
- * @param {*} [options] Override http request option.
1020
- * @throws {RequiredError}
1021
- * @memberof RecordingsApi
1022
- */
1023
- RecordingsApi.prototype.deleteRecordingMedia = function (accountId, callId, recordingId, options) {
1024
- var _this = this;
1025
- return (0, exports.RecordingsApiFp)(this.configuration).deleteRecordingMedia(accountId, callId, recordingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1026
- };
1027
- /**
1028
- * Deletes the specified recording\'s transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
1029
- * @summary Delete Transcription
1030
- * @param {string} accountId Your Bandwidth Account ID.
1031
- * @param {string} callId Programmable Voice API Call ID.
1032
- * @param {string} recordingId Programmable Voice API Recording ID.
1033
- * @param {*} [options] Override http request option.
1034
- * @throws {RequiredError}
1035
- * @memberof RecordingsApi
1036
- */
1037
- RecordingsApi.prototype.deleteRecordingTranscription = function (accountId, callId, recordingId, options) {
1038
- var _this = this;
1039
- return (0, exports.RecordingsApiFp)(this.configuration).deleteRecordingTranscription(accountId, callId, recordingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1040
- };
1041
- /**
1042
- * Downloads the specified recording.
1043
- * @summary Download Recording
1044
- * @param {string} accountId Your Bandwidth Account ID.
1045
- * @param {string} callId Programmable Voice API Call ID.
1046
- * @param {string} recordingId Programmable Voice API Recording ID.
1047
- * @param {*} [options] Override http request option.
1048
- * @throws {RequiredError}
1049
- * @memberof RecordingsApi
1050
- */
1051
- RecordingsApi.prototype.downloadCallRecording = function (accountId, callId, recordingId, options) {
1052
- var _this = this;
1053
- return (0, exports.RecordingsApiFp)(this.configuration).downloadCallRecording(accountId, callId, recordingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1054
- };
1055
- /**
1056
- * Returns metadata for the specified recording.
1057
- * @summary Get Call Recording
1058
- * @param {string} accountId Your Bandwidth Account ID.
1059
- * @param {string} callId Programmable Voice API Call ID.
1060
- * @param {string} recordingId Programmable Voice API Recording ID.
1061
- * @param {*} [options] Override http request option.
1062
- * @throws {RequiredError}
1063
- * @memberof RecordingsApi
1064
- */
1065
- RecordingsApi.prototype.getCallRecording = function (accountId, callId, recordingId, options) {
1066
- var _this = this;
1067
- return (0, exports.RecordingsApiFp)(this.configuration).getCallRecording(accountId, callId, recordingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1068
- };
1069
- /**
1070
- * Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
1071
- * @summary Get Transcription
1072
- * @param {string} accountId Your Bandwidth Account ID.
1073
- * @param {string} callId Programmable Voice API Call ID.
1074
- * @param {string} recordingId Programmable Voice API Recording ID.
1075
- * @param {*} [options] Override http request option.
1076
- * @throws {RequiredError}
1077
- * @memberof RecordingsApi
1078
- */
1079
- RecordingsApi.prototype.getRecordingTranscription = function (accountId, callId, recordingId, options) {
1080
- var _this = this;
1081
- return (0, exports.RecordingsApiFp)(this.configuration).getRecordingTranscription(accountId, callId, recordingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1082
- };
1083
- /**
1084
- * Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria.
1085
- * @summary Get Call Recordings
1086
- * @param {string} accountId Your Bandwidth Account ID.
1087
- * @param {string} [to] Filter results by the &#x60;to&#x60; field.
1088
- * @param {string} [from] Filter results by the &#x60;from&#x60; field.
1089
- * @param {string} [minStartTime] Filter results to recordings which have a &#x60;startTime&#x60; after or including &#x60;minStartTime&#x60; (in ISO8601 format).
1090
- * @param {string} [maxStartTime] Filter results to recordings which have a &#x60;startTime&#x60; before &#x60;maxStartTime&#x60; (in ISO8601 format).
1091
- * @param {*} [options] Override http request option.
1092
- * @throws {RequiredError}
1093
- * @memberof RecordingsApi
1094
- */
1095
- RecordingsApi.prototype.listAccountCallRecordings = function (accountId, to, from, minStartTime, maxStartTime, options) {
1096
- var _this = this;
1097
- return (0, exports.RecordingsApiFp)(this.configuration).listAccountCallRecordings(accountId, to, from, minStartTime, maxStartTime, options).then(function (request) { return request(_this.axios, _this.basePath); });
1098
- };
1099
- /**
1100
- * Returns a (potentially empty) list of metadata for the recordings that took place during the specified call.
1101
- * @summary List Call Recordings
1102
- * @param {string} accountId Your Bandwidth Account ID.
1103
- * @param {string} callId Programmable Voice API Call ID.
1104
- * @param {*} [options] Override http request option.
1105
- * @throws {RequiredError}
1106
- * @memberof RecordingsApi
1107
- */
1108
- RecordingsApi.prototype.listCallRecordings = function (accountId, callId, options) {
1109
- var _this = this;
1110
- return (0, exports.RecordingsApiFp)(this.configuration).listCallRecordings(accountId, callId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1111
- };
1112
- /**
1113
- * Generate the transcription for a specific recording. Transcription can succeed only for recordings of length greater than 500 milliseconds and less than 4 hours.
1114
- * @summary Create Transcription Request
1115
- * @param {string} accountId Your Bandwidth Account ID.
1116
- * @param {string} callId Programmable Voice API Call ID.
1117
- * @param {string} recordingId Programmable Voice API Recording ID.
1118
- * @param {TranscribeRecording} transcribeRecording
1119
- * @param {*} [options] Override http request option.
1120
- * @throws {RequiredError}
1121
- * @memberof RecordingsApi
1122
- */
1123
- RecordingsApi.prototype.transcribeCallRecording = function (accountId, callId, recordingId, transcribeRecording, options) {
1124
- var _this = this;
1125
- return (0, exports.RecordingsApiFp)(this.configuration).transcribeCallRecording(accountId, callId, recordingId, transcribeRecording, options).then(function (request) { return request(_this.axios, _this.basePath); });
1126
- };
1127
- /**
1128
- * Pause or resume a recording on an active phone call.
1129
- * @summary Update Recording
1130
- * @param {string} accountId Your Bandwidth Account ID.
1131
- * @param {string} callId Programmable Voice API Call ID.
1132
- * @param {UpdateCallRecording} updateCallRecording
1133
- * @param {*} [options] Override http request option.
1134
- * @throws {RequiredError}
1135
- * @memberof RecordingsApi
1136
- */
1137
- RecordingsApi.prototype.updateCallRecordingState = function (accountId, callId, updateCallRecording, options) {
1138
- var _this = this;
1139
- return (0, exports.RecordingsApiFp)(this.configuration).updateCallRecordingState(accountId, callId, updateCallRecording, options).then(function (request) { return request(_this.axios, _this.basePath); });
1140
- };
1141
- return RecordingsApi;
1142
- }(base_1.BaseAPI));
1143
- exports.RecordingsApi = RecordingsApi;