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
@@ -46,13 +46,15 @@ jobs:
46
46
  - name: Setup Node
47
47
  uses: actions/setup-node@v4
48
48
  with:
49
- node-version: 18
49
+ node-version: 22
50
50
  registry-url: "https://registry.npmjs.org"
51
51
 
52
52
  - name: Install Packages and Test
53
53
  run: |
54
54
  yarn
55
- yarn test-unit
55
+ npm install -g @stoplight/prism-cli
56
+ prism mock ./bandwidth.yml & yarn test-unit
57
+ shell: bash
56
58
 
57
59
  - name: Publish npm Package
58
60
  run: |
@@ -32,7 +32,7 @@ jobs:
32
32
  strategy:
33
33
  matrix:
34
34
  os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
35
- node-version: [16, 18, 20, 22]
35
+ node-version: [18, 20, 22]
36
36
  fail-fast: false
37
37
  steps:
38
38
  - name: Checkout
@@ -46,6 +46,8 @@ jobs:
46
46
  - name: Install Packages and Test
47
47
  run: |
48
48
  yarn
49
- yarn test-unit
49
+ npm install -g @stoplight/prism-cli
50
+ prism mock ./bandwidth.yml & yarn test-unit
50
51
  env:
51
52
  OPERATING_SYSTEM: ${{ matrix.os }}
53
+ shell: bash
@@ -1,8 +1,11 @@
1
- name: Nightly Smoke Tests
1
+ name: Smoke Tests
2
2
 
3
3
  on:
4
4
  schedule:
5
5
  - cron: "0 4 * * *"
6
+ pull_request:
7
+ paths:
8
+ - "tests/smoke/**"
6
9
 
7
10
  concurrency:
8
11
  group: ${{ github.workflow }}-${{ github.head_ref }}
@@ -26,7 +29,7 @@ env:
26
29
 
27
30
  jobs:
28
31
  test_main:
29
- name: Nightly Smoke Test
32
+ name: Smoke Test
30
33
  runs-on: ubuntu-latest
31
34
  steps:
32
35
  - name: Checkout
@@ -37,7 +40,7 @@ jobs:
37
40
  - name: Setup Node
38
41
  uses: actions/setup-node@v4
39
42
  with:
40
- node-version: 20
43
+ node-version: 22
41
44
 
42
45
  - name: Install Packages and Test
43
46
  run: |
@@ -23,8 +23,10 @@ models/call-direction-enum.ts
23
23
  models/call-recording-metadata.ts
24
24
  models/call-state-enum.ts
25
25
  models/call-state.ts
26
+ models/call-transcription-detected-language-enum.ts
26
27
  models/call-transcription-metadata.ts
27
28
  models/call-transcription-response.ts
29
+ models/call-transcription-track-enum.ts
28
30
  models/call-transcription.ts
29
31
  models/callback-method-enum.ts
30
32
  models/code-request.ts
package/README.md CHANGED
@@ -1,20 +1,37 @@
1
1
  ## bandwidth-sdk
2
2
 
3
- [![Tests](https://github.com/Bandwidth/node-sdk/actions/workflows/test-nightly.yml/badge.svg)](https://github.com/Bandwidth/node-sdk/actions/workflows/test-nightly.yml)
3
+ [![Deploy](https://github.com/Bandwidth/node-sdk/actions/workflows/deploy.yml/badge.svg)](https://github.com/Bandwidth/node-sdk/actions/workflows/deploy.yml)
4
4
 
5
5
  ### Test Matrix
6
6
  | **OS** | **Node** |
7
7
  |:---:|:---:|
8
- | Windows 2019 | 16, 18, 20, 22 |
9
- | Windows 2022 | 16, 18, 20, 22 |
10
- | Ubuntu 20.04 | 16, 18, 20, 22 |
11
- | Ubuntu 22.04 | 16, 18, 20, 22 |
8
+ | Windows 2019 | 18, 20, 22 |
9
+ | Windows 2022 | 18, 20, 22 |
10
+ | Ubuntu 20.04 | 18, 20, 22 |
11
+ | Ubuntu 22.04 | 18, 20, 22 |
12
12
 
13
13
  #### Available on NPM
14
14
  ```
15
15
  npm install bandwidth-sdk
16
16
  ```
17
17
 
18
+
19
+ #### To Run Unit Tests Locally
20
+
21
+ 1. Install Prism
22
+ ```bash
23
+ npm install -g @stoplight/prism-cli
24
+ ```
25
+ 2. Start Prism Mock Server with the OpenAPI Spec
26
+ ```bash
27
+ prism mock bandwidth.yml
28
+ ```
29
+ 3. Run Tests
30
+ ```bash
31
+ npm run test-unit
32
+ ```
33
+
34
+
18
35
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
19
36
 
20
37
  Environment
@@ -34,7 +34,7 @@ import type { VoiceApiError } from '../models';
34
34
  export const TranscriptionsApiAxiosParamCreator = function (configuration?: Configuration) {
35
35
  return {
36
36
  /**
37
- * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). 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.
37
+ * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` 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.
38
38
  * @summary Delete a specific transcription
39
39
  * @param {string} accountId Your Bandwidth Account ID.
40
40
  * @param {string} callId Programmable Voice API Call ID.
@@ -178,7 +178,7 @@ export const TranscriptionsApiFp = function(configuration?: Configuration) {
178
178
  const localVarAxiosParamCreator = TranscriptionsApiAxiosParamCreator(configuration)
179
179
  return {
180
180
  /**
181
- * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). 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.
181
+ * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` 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.
182
182
  * @summary Delete a specific transcription
183
183
  * @param {string} accountId Your Bandwidth Account ID.
184
184
  * @param {string} callId Programmable Voice API Call ID.
@@ -232,7 +232,7 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration,
232
232
  const localVarFp = TranscriptionsApiFp(configuration)
233
233
  return {
234
234
  /**
235
- * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). 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.
235
+ * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` 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.
236
236
  * @summary Delete a specific transcription
237
237
  * @param {string} accountId Your Bandwidth Account ID.
238
238
  * @param {string} callId Programmable Voice API Call ID.
@@ -277,7 +277,7 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration,
277
277
  */
278
278
  export class TranscriptionsApi extends BaseAPI {
279
279
  /**
280
- * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). 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.
280
+ * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` 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.
281
281
  * @summary Delete a specific transcription
282
282
  * @param {string} accountId Your Bandwidth Account ID.
283
283
  * @param {string} callId Programmable Voice API Call ID.
package/bandwidth.yml CHANGED
@@ -1173,7 +1173,7 @@ paths:
1173
1173
  [startTranscription](/docs/voice/bxml/startTranscription).
1174
1174
 
1175
1175
 
1176
- Note: After the deletion is requested and a `204` is returned, the
1176
+ Note: After the deletion is requested and a `200` is returned, the
1177
1177
  transcription will not be accessible anymore. However, it is not deleted
1178
1178
  immediately. This deletion process, while transparent and irreversible,
1179
1179
  can take an additional 24 to 48 hours.
@@ -1183,7 +1183,7 @@ paths:
1183
1183
  - $ref: '#/components/parameters/callId'
1184
1184
  - $ref: '#/components/parameters/transcriptionId'
1185
1185
  responses:
1186
- '204':
1186
+ '200':
1187
1187
  $ref: '#/components/responses/deleteCallTranscriptionResponse'
1188
1188
  '400':
1189
1189
  $ref: '#/components/responses/voiceBadRequestError'
@@ -2131,6 +2131,21 @@ components:
2131
2131
 
2132
2132
  and will include its result.
2133
2133
  example: async
2134
+ callTranscriptionDetectedLanguageEnum:
2135
+ type: string
2136
+ enum:
2137
+ - en-US
2138
+ - es-US
2139
+ - fr-FR
2140
+ description: The detected language for this transcription.
2141
+ example: en-US
2142
+ callTranscriptionTrackEnum:
2143
+ type: string
2144
+ enum:
2145
+ - inbound
2146
+ - outbound
2147
+ description: Which `track` this transcription is derived from.
2148
+ example: inbound
2134
2149
  createCall:
2135
2150
  type: object
2136
2151
  required:
@@ -2496,7 +2511,7 @@ components:
2496
2511
  description: >-
2497
2512
  The phone number that made the call, in E.164 format (e.g.
2498
2513
  +15555555555).
2499
- example: '19195554321'
2514
+ example: '+19195554321'
2500
2515
  direction:
2501
2516
  $ref: '#/components/schemas/callDirectionEnum'
2502
2517
  state:
@@ -3265,7 +3280,7 @@ components:
3265
3280
  accountId:
3266
3281
  type: string
3267
3282
  description: The user account associated with the call.
3268
- example: '920012'
3283
+ example: '9900000'
3269
3284
  callId:
3270
3285
  type: string
3271
3286
  description: The call id associated with the event.
@@ -3281,27 +3296,16 @@ components:
3281
3296
  example:
3282
3297
  - detectedLanguage: en-US
3283
3298
  track: inbound
3284
- text: Hello World! This is an example.
3299
+ transcript: Hello World! This is an example.
3285
3300
  confidence: 0.9
3286
3301
  callTranscription:
3287
3302
  type: object
3288
3303
  properties:
3289
3304
  detectedLanguage:
3290
- type: string
3291
- enum:
3292
- - en-US
3293
- - es-US
3294
- - fr-FR
3295
- description: The detected language for this transcription.
3296
- example: en-US
3305
+ $ref: '#/components/schemas/callTranscriptionDetectedLanguageEnum'
3297
3306
  track:
3298
- type: string
3299
- enum:
3300
- - inbound
3301
- - outbound
3302
- description: Which `track` this transcription is derived from.
3303
- example: inbound
3304
- text:
3307
+ $ref: '#/components/schemas/callTranscriptionTrackEnum'
3308
+ transcript:
3305
3309
  type: string
3306
3310
  description: The transcription itself.
3307
3311
  example: Hello World! This is an example.
@@ -3327,6 +3331,7 @@ components:
3327
3331
  $ref: '#/components/schemas/status'
3328
3332
  completedTime:
3329
3333
  type: string
3334
+ format: date-time
3330
3335
  description: The time that the transcription was completed
3331
3336
  example: '2022-06-13T18:46:29.715Z'
3332
3337
  url:
@@ -4139,7 +4144,7 @@ components:
4139
4144
  accountId:
4140
4145
  type: string
4141
4146
  description: The user account associated with the call.
4142
- example: '920012'
4147
+ example: '9900000'
4143
4148
  applicationId:
4144
4149
  type: string
4145
4150
  description: The id of the application associated with the call.
@@ -4240,7 +4245,7 @@ components:
4240
4245
  description: >-
4241
4246
  The phone number used as the to field of the B-leg call, in E.164 format
4242
4247
  (e.g. +15555555555).
4243
- example: +15555555555)
4248
+ example: '+15555555555'
4244
4249
  mediaUrl:
4245
4250
  nullable: true
4246
4251
  type: string
@@ -4451,7 +4456,7 @@ components:
4451
4456
  messageId:
4452
4457
  type: string
4453
4458
  description: Messaging API Message ID.
4454
- example: 9e0df4ca-b18d-40d7-a59f-82fcdf5ae8e6
4459
+ example: 1589228074636lm4k2je7j7jklbn2
4455
4460
  verifyCodeRequest:
4456
4461
  type: object
4457
4462
  properties:
@@ -5787,6 +5792,7 @@ components:
5787
5792
  answerMethod: POST
5788
5793
  answerUrl: https://myServer.example/bandwidth/webhooks/answer
5789
5794
  answerFallbackMethod: POST
5795
+ answerFallbackUrl: https://myServer.example/bandwidth/webhooks/answerFallback
5790
5796
  disconnectMethod: POST
5791
5797
  disconnectUrl: https://myServer.example/bandwidth/webhooks/disconnect
5792
5798
  username: mySecretUsername