bandwidth-sdk 6.2.1 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (603) hide show
  1. package/.github/workflows/deploy.yml +2 -2
  2. package/.github/workflows/test-pr.yml +2 -2
  3. package/.github/workflows/test-smoke.yml +4 -4
  4. package/.openapi-generator/FILES +56 -16
  5. package/.openapi-generator/VERSION +1 -1
  6. package/README.md +253 -6
  7. package/api/calls-api.ts +0 -11
  8. package/api/conferences-api.ts +0 -15
  9. package/api/media-api.ts +0 -10
  10. package/api/messages-api.ts +0 -8
  11. package/api/mfaapi.ts +0 -9
  12. package/api/multi-channel-api.ts +0 -7
  13. package/api/phone-number-lookup-api.ts +145 -76
  14. package/api/recordings-api.ts +0 -16
  15. package/api/statistics-api.ts +0 -7
  16. package/api/toll-free-verification-api.ts +0 -15
  17. package/api/transcriptions-api.ts +0 -9
  18. package/bandwidth.yml +629 -299
  19. package/base.ts +10 -28
  20. package/common.ts +5 -42
  21. package/configuration.ts +26 -20
  22. package/coverage/clover.xml +1344 -1283
  23. package/coverage/coverage-final.json +49 -45
  24. package/coverage/lcov-report/index.html +26 -26
  25. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +2 -35
  26. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +2 -47
  27. package/coverage/lcov-report/node-sdk/api/index.html +28 -28
  28. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +2 -32
  29. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +2 -26
  30. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +2 -29
  31. package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +65 -86
  32. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +338 -131
  33. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +2 -50
  34. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +2 -23
  35. package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +2 -47
  36. package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +2 -29
  37. package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
  38. package/coverage/lcov-report/node-sdk/base.ts.html +19 -73
  39. package/coverage/lcov-report/node-sdk/common.ts.html +13 -124
  40. package/coverage/lcov-report/node-sdk/configuration.ts.html +54 -36
  41. package/coverage/lcov-report/node-sdk/index.html +7 -7
  42. package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +2 -8
  43. package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +2 -8
  44. package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
  45. package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
  46. package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
  47. package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
  48. package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
  49. package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
  50. package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
  51. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
  52. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
  53. package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
  54. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
  55. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
  56. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
  57. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
  58. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
  59. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
  60. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
  61. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
  62. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
  63. package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
  64. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
  65. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
  66. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
  67. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
  68. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
  69. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
  70. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
  71. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
  72. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
  73. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
  74. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
  75. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
  76. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
  77. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
  78. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
  79. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
  80. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
  81. package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -8
  82. package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -8
  83. package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +2 -8
  84. package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +2 -8
  85. package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -8
  86. package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +2 -17
  87. package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +166 -0
  88. package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -8
  89. package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +169 -0
  90. package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -8
  91. package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +169 -0
  92. package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +2 -8
  93. package/coverage/lcov-report/node-sdk/models/index.html +67 -7
  94. package/coverage/lcov-report/node-sdk/models/index.ts.html +72 -12
  95. package/coverage/lcov-report/node-sdk/models/{lookup-status-enum.ts.html → latest-message-delivery-status-enum.ts.html} +10 -19
  96. package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +169 -0
  97. package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -8
  98. package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -8
  99. package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -8
  100. package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -8
  101. package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -8
  102. package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +2 -8
  103. package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -8
  104. package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +2 -8
  105. package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +2 -17
  106. package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +2 -8
  107. package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -8
  108. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -8
  109. package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +2 -17
  110. package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +2 -8
  111. package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +2 -17
  112. package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +2 -17
  113. package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +2 -8
  114. package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +2 -17
  115. package/coverage/lcov.info +2959 -2835
  116. package/custom_templates/README.mustache +56 -6
  117. package/custom_templates/common.mustache +29 -44
  118. package/custom_templates/configuration.mustache +26 -19
  119. package/custom_templates/package.mustache +1 -1
  120. package/dist/api/calls-api.d.ts +0 -11
  121. package/dist/api/calls-api.js +0 -11
  122. package/dist/api/conferences-api.d.ts +0 -15
  123. package/dist/api/conferences-api.js +0 -15
  124. package/dist/api/media-api.d.ts +0 -10
  125. package/dist/api/media-api.js +0 -10
  126. package/dist/api/messages-api.d.ts +0 -8
  127. package/dist/api/messages-api.js +0 -8
  128. package/dist/api/mfaapi.d.ts +0 -9
  129. package/dist/api/mfaapi.js +0 -9
  130. package/dist/api/multi-channel-api.d.ts +0 -7
  131. package/dist/api/multi-channel-api.js +0 -7
  132. package/dist/api/phone-number-lookup-api.d.ts +81 -59
  133. package/dist/api/phone-number-lookup-api.js +149 -73
  134. package/dist/api/recordings-api.d.ts +0 -16
  135. package/dist/api/recordings-api.js +0 -16
  136. package/dist/api/statistics-api.d.ts +0 -7
  137. package/dist/api/statistics-api.js +0 -7
  138. package/dist/api/toll-free-verification-api.d.ts +0 -15
  139. package/dist/api/toll-free-verification-api.js +0 -15
  140. package/dist/api/transcriptions-api.d.ts +0 -9
  141. package/dist/api/transcriptions-api.js +0 -9
  142. package/dist/base.d.ts +0 -24
  143. package/dist/base.js +10 -23
  144. package/dist/common.d.ts +0 -37
  145. package/dist/common.js +0 -37
  146. package/dist/configuration.d.ts +24 -17
  147. package/dist/configuration.js +2 -2
  148. package/dist/models/account-statistics.d.ts +0 -9
  149. package/dist/models/additional-denial-reason.d.ts +0 -11
  150. package/dist/models/address.d.ts +0 -19
  151. package/dist/models/answer-callback.d.ts +0 -36
  152. package/dist/models/async-lookup-request.d.ts +17 -0
  153. package/dist/models/blocked-webhook.d.ts +0 -20
  154. package/dist/models/bridge-complete-callback.d.ts +0 -37
  155. package/dist/models/bridge-target-complete-callback.d.ts +0 -31
  156. package/dist/models/business-entity-type-enum.d.ts +0 -2
  157. package/dist/models/business-entity-type-enum.js +0 -2
  158. package/dist/models/business-registration-type-enum.d.ts +0 -2
  159. package/dist/models/business-registration-type-enum.js +0 -2
  160. package/dist/models/call-direction-enum.d.ts +0 -2
  161. package/dist/models/call-direction-enum.js +0 -2
  162. package/dist/models/call-recording-metadata.d.ts +0 -52
  163. package/dist/models/call-state-enum.d.ts +0 -2
  164. package/dist/models/call-state-enum.js +0 -2
  165. package/dist/models/call-state.d.ts +0 -44
  166. package/dist/models/call-transcription-detected-language-enum.d.ts +0 -2
  167. package/dist/models/call-transcription-detected-language-enum.js +0 -2
  168. package/dist/models/call-transcription-metadata.d.ts +0 -11
  169. package/dist/models/call-transcription-response.d.ts +0 -16
  170. package/dist/models/call-transcription-track-enum.d.ts +0 -2
  171. package/dist/models/call-transcription-track-enum.js +0 -2
  172. package/dist/models/call-transcription.d.ts +0 -19
  173. package/dist/models/callback-method-enum.d.ts +0 -2
  174. package/dist/models/callback-method-enum.js +0 -2
  175. package/dist/models/callback.d.ts +0 -1
  176. package/dist/models/card-width-enum.d.ts +0 -5
  177. package/dist/models/card-width-enum.js +0 -5
  178. package/dist/models/code-request.d.ts +0 -17
  179. package/dist/models/completed-lookup-status-enum.d.ts +17 -0
  180. package/dist/models/completed-lookup-status-enum.js +21 -0
  181. package/dist/models/conference-completed-callback.d.ts +0 -12
  182. package/dist/models/conference-created-callback.d.ts +0 -12
  183. package/dist/models/conference-member-exit-callback.d.ts +0 -18
  184. package/dist/models/conference-member-join-callback.d.ts +0 -18
  185. package/dist/models/conference-member.d.ts +0 -17
  186. package/dist/models/conference-recording-available-callback.d.ts +0 -33
  187. package/dist/models/conference-recording-metadata.d.ts +0 -32
  188. package/dist/models/conference-redirect-callback.d.ts +0 -12
  189. package/dist/models/conference-state-enum.d.ts +0 -2
  190. package/dist/models/conference-state-enum.js +0 -2
  191. package/dist/models/conference.d.ts +0 -24
  192. package/dist/models/contact.d.ts +0 -16
  193. package/dist/models/create-async-bulk-lookup-response-data.d.ts +22 -0
  194. package/dist/models/create-async-bulk-lookup-response.d.ts +22 -0
  195. package/dist/models/create-call-response.d.ts +0 -56
  196. package/dist/models/create-call.d.ts +0 -59
  197. package/dist/models/create-message-request-error.d.ts +0 -20
  198. package/dist/models/create-multi-channel-message-response.d.ts +0 -20
  199. package/dist/models/create-sync-lookup-response-data.d.ts +27 -0
  200. package/dist/models/create-sync-lookup-response.d.ts +19 -0
  201. package/dist/models/{multi-channel-message-response-data-channel-list-inner.d.ts → deactivation-event-enum.d.ts} +5 -4
  202. package/dist/models/deactivation-event-enum.js +22 -0
  203. package/dist/models/disconnect-callback.d.ts +0 -39
  204. package/dist/models/diversion.d.ts +0 -19
  205. package/dist/models/dtmf-callback.d.ts +0 -39
  206. package/dist/models/error-object.d.ts +0 -14
  207. package/dist/models/error-source.d.ts +0 -10
  208. package/dist/models/failure-webhook.d.ts +0 -17
  209. package/dist/models/field-error.d.ts +0 -9
  210. package/dist/models/file-format-enum.d.ts +0 -2
  211. package/dist/models/file-format-enum.js +0 -2
  212. package/dist/models/gather-callback.d.ts +0 -41
  213. package/dist/models/get-async-bulk-lookup-response-data.d.ts +27 -0
  214. package/dist/models/get-async-bulk-lookup-response.d.ts +19 -0
  215. package/dist/models/{lookup-status-enum.d.ts → in-progress-lookup-status-enum.d.ts} +2 -7
  216. package/dist/models/{lookup-status-enum.js → in-progress-lookup-status-enum.js} +2 -7
  217. package/dist/models/inbound-callback-message.d.ts +0 -1
  218. package/dist/models/inbound-callback-type-enum.d.ts +0 -2
  219. package/dist/models/inbound-callback-type-enum.js +0 -2
  220. package/dist/models/inbound-callback.d.ts +0 -23
  221. package/dist/models/index.d.ts +28 -8
  222. package/dist/models/index.js +28 -8
  223. package/dist/models/initiate-callback.d.ts +0 -37
  224. package/dist/models/latest-message-delivery-status-enum.d.ts +20 -0
  225. package/dist/models/latest-message-delivery-status-enum.js +24 -0
  226. package/dist/models/line-type-enum.d.ts +18 -0
  227. package/dist/models/line-type-enum.js +22 -0
  228. package/dist/models/link-schema.d.ts +25 -0
  229. package/dist/models/link-schema.js +15 -0
  230. package/dist/models/link.d.ts +0 -15
  231. package/dist/models/links-object.d.ts +0 -13
  232. package/dist/models/list-message-direction-enum.d.ts +0 -2
  233. package/dist/models/list-message-direction-enum.js +0 -2
  234. package/dist/models/list-message-item.d.ts +0 -60
  235. package/dist/models/lookup-error-response.d.ts +21 -0
  236. package/dist/models/lookup-error-response.js +15 -0
  237. package/dist/models/{tn-lookup-request-error.d.ts → lookup-error-schema-meta.d.ts} +7 -9
  238. package/dist/models/lookup-error-schema-meta.js +15 -0
  239. package/dist/models/lookup-error-schema.d.ts +27 -0
  240. package/dist/models/lookup-error-schema.js +15 -0
  241. package/dist/models/lookup-result.d.ts +22 -40
  242. package/dist/models/machine-detection-complete-callback.d.ts +0 -36
  243. package/dist/models/machine-detection-configuration.d.ts +0 -41
  244. package/dist/models/machine-detection-mode-enum.d.ts +0 -2
  245. package/dist/models/machine-detection-mode-enum.js +0 -2
  246. package/dist/models/machine-detection-result.d.ts +0 -6
  247. package/dist/models/media.d.ts +0 -20
  248. package/dist/models/message-direction-enum.d.ts +0 -2
  249. package/dist/models/message-direction-enum.js +0 -2
  250. package/dist/models/message-request.d.ts +0 -24
  251. package/dist/models/message-status-enum.d.ts +0 -2
  252. package/dist/models/message-status-enum.js +0 -2
  253. package/dist/models/message-type-enum.d.ts +0 -2
  254. package/dist/models/message-type-enum.js +0 -2
  255. package/dist/models/message.d.ts +0 -37
  256. package/dist/models/messages-list.d.ts +0 -17
  257. package/dist/models/messaging-code-response.d.ts +0 -7
  258. package/dist/models/messaging-request-error.d.ts +0 -15
  259. package/dist/models/mfa-forbidden-request-error.d.ts +0 -7
  260. package/dist/models/mfa-request-error.d.ts +0 -9
  261. package/dist/models/mfa-unauthorized-request-error.d.ts +0 -7
  262. package/dist/models/mms-message-content-file.d.ts +0 -7
  263. package/dist/models/mms-message-content.d.ts +0 -12
  264. package/dist/models/model-error.d.ts +0 -20
  265. package/dist/models/multi-channel-action-calendar-event.d.ts +0 -1
  266. package/dist/models/multi-channel-action.d.ts +48 -22
  267. package/dist/models/{lookup-request.d.ts → multi-channel-channel-list-mmsobject.d.ts} +3 -11
  268. package/dist/models/multi-channel-channel-list-mmsobject.js +15 -0
  269. package/dist/models/multi-channel-channel-list-mmsresponse-object.d.ts +17 -0
  270. package/dist/models/multi-channel-channel-list-mmsresponse-object.js +15 -0
  271. package/dist/models/multi-channel-channel-list-object-base.d.ts +23 -0
  272. package/dist/models/multi-channel-channel-list-object-base.js +15 -0
  273. package/dist/models/multi-channel-channel-list-owner-object.d.ts +17 -0
  274. package/dist/models/multi-channel-channel-list-owner-object.js +15 -0
  275. package/dist/models/{multi-channel-channel-list-object-content.d.ts → multi-channel-channel-list-rbmobject-all-of-content.d.ts} +2 -5
  276. package/dist/models/multi-channel-channel-list-rbmobject-all-of-content.js +15 -0
  277. package/dist/models/multi-channel-channel-list-rbmobject.d.ts +16 -0
  278. package/dist/models/multi-channel-channel-list-rbmobject.js +15 -0
  279. package/dist/models/multi-channel-channel-list-rbmresponse-object.d.ts +17 -0
  280. package/dist/models/multi-channel-channel-list-rbmresponse-object.js +15 -0
  281. package/dist/models/multi-channel-channel-list-request-object.d.ts +25 -0
  282. package/dist/models/multi-channel-channel-list-request-object.js +15 -0
  283. package/dist/models/{multi-channel-channel-list-object.d.ts → multi-channel-channel-list-response-object.d.ts} +5 -20
  284. package/dist/models/multi-channel-channel-list-response-object.js +15 -0
  285. package/dist/models/multi-channel-channel-list-smsobject.d.ts +16 -0
  286. package/dist/models/multi-channel-channel-list-smsobject.js +15 -0
  287. package/dist/models/multi-channel-channel-list-smsresponse-object.d.ts +17 -0
  288. package/dist/models/multi-channel-channel-list-smsresponse-object.js +15 -0
  289. package/dist/models/multi-channel-error.d.ts +0 -20
  290. package/dist/models/multi-channel-message-channel-enum.d.ts +0 -2
  291. package/dist/models/multi-channel-message-channel-enum.js +0 -2
  292. package/dist/models/multi-channel-message-content.d.ts +0 -12
  293. package/dist/models/multi-channel-message-request.d.ts +2 -17
  294. package/dist/models/multi-channel-message-response-data.d.ts +2 -26
  295. package/dist/models/opt-in-workflow.d.ts +0 -20
  296. package/dist/models/page-info.d.ts +0 -13
  297. package/dist/models/priority-enum.d.ts +0 -2
  298. package/dist/models/priority-enum.js +0 -2
  299. package/dist/models/product-type-enum.d.ts +0 -2
  300. package/dist/models/product-type-enum.js +0 -2
  301. package/dist/models/rbm-action-base.d.ts +0 -14
  302. package/dist/models/rbm-action-dial.d.ts +0 -1
  303. package/dist/models/rbm-action-open-url.d.ts +0 -1
  304. package/dist/models/rbm-action-type-enum.d.ts +0 -5
  305. package/dist/models/rbm-action-type-enum.js +0 -5
  306. package/dist/models/rbm-action-view-location.d.ts +0 -1
  307. package/dist/models/rbm-card-content-media.d.ts +0 -1
  308. package/dist/models/rbm-card-content.d.ts +0 -16
  309. package/dist/models/rbm-location-response.d.ts +0 -9
  310. package/dist/models/rbm-media-height-enum.d.ts +0 -2
  311. package/dist/models/rbm-media-height-enum.js +0 -2
  312. package/dist/models/rbm-message-carousel-card.d.ts +0 -17
  313. package/dist/models/rbm-message-content-file.d.ts +0 -9
  314. package/dist/models/rbm-message-content-rich-card.d.ts +0 -1
  315. package/dist/models/rbm-message-content-text.d.ts +0 -9
  316. package/dist/models/rbm-message-media.d.ts +0 -12
  317. package/dist/models/rbm-standalone-card.d.ts +0 -22
  318. package/dist/models/rbm-suggestion-response.d.ts +0 -9
  319. package/dist/models/recording-available-callback.d.ts +0 -52
  320. package/dist/models/recording-complete-callback.d.ts +0 -52
  321. package/dist/models/recording-state-enum.d.ts +0 -2
  322. package/dist/models/recording-state-enum.js +0 -2
  323. package/dist/models/recording-transcription-metadata.d.ts +0 -10
  324. package/dist/models/recording-transcriptions.d.ts +0 -10
  325. package/dist/models/redirect-callback.d.ts +0 -37
  326. package/dist/models/redirect-method-enum.d.ts +0 -2
  327. package/dist/models/redirect-method-enum.js +0 -2
  328. package/dist/models/sms-message-content.d.ts +0 -7
  329. package/dist/models/standalone-card-orientation-enum.d.ts +0 -5
  330. package/dist/models/standalone-card-orientation-enum.js +0 -5
  331. package/dist/models/status-callback-message.d.ts +0 -43
  332. package/dist/models/status-callback-type-enum.d.ts +0 -2
  333. package/dist/models/status-callback-type-enum.js +0 -2
  334. package/dist/models/status-callback.d.ts +0 -27
  335. package/dist/models/stir-shaken.d.ts +0 -11
  336. package/dist/models/sync-lookup-request.d.ts +17 -0
  337. package/dist/models/sync-lookup-request.js +15 -0
  338. package/dist/models/telephone-number.d.ts +0 -7
  339. package/dist/models/tfv-basic-authentication.d.ts +0 -15
  340. package/dist/models/tfv-callback-status-enum.d.ts +0 -5
  341. package/dist/models/tfv-callback-status-enum.js +0 -5
  342. package/dist/models/tfv-error.d.ts +0 -14
  343. package/dist/models/tfv-status-enum.d.ts +0 -5
  344. package/dist/models/tfv-status-enum.js +0 -5
  345. package/dist/models/tfv-status.d.ts +0 -31
  346. package/dist/models/tfv-submission-info.d.ts +0 -50
  347. package/dist/models/tfv-submission-wrapper.d.ts +0 -10
  348. package/dist/models/thumbnail-alignment-enum.d.ts +0 -2
  349. package/dist/models/thumbnail-alignment-enum.js +0 -2
  350. package/dist/models/transcribe-recording.d.ts +0 -22
  351. package/dist/models/transcription-available-callback.d.ts +0 -53
  352. package/dist/models/transcription.d.ts +0 -9
  353. package/dist/models/transfer-answer-callback.d.ts +0 -35
  354. package/dist/models/transfer-complete-callback.d.ts +0 -41
  355. package/dist/models/transfer-disconnect-callback.d.ts +0 -45
  356. package/dist/models/update-call-recording.d.ts +0 -10
  357. package/dist/models/update-call.d.ts +0 -34
  358. package/dist/models/update-conference-member.d.ts +0 -11
  359. package/dist/models/update-conference.d.ts +0 -32
  360. package/dist/models/verification-denial-webhook.d.ts +0 -28
  361. package/dist/models/verification-request.d.ts +0 -59
  362. package/dist/models/verification-update-request.d.ts +0 -54
  363. package/dist/models/verification-webhook.d.ts +0 -16
  364. package/dist/models/verify-code-request.d.ts +0 -13
  365. package/dist/models/verify-code-response.d.ts +0 -7
  366. package/dist/models/voice-api-error.d.ts +0 -20
  367. package/dist/models/voice-code-response.d.ts +0 -7
  368. package/dist/models/webhook-subscription-basic-authentication.d.ts +0 -12
  369. package/dist/models/webhook-subscription-request-schema.d.ts +0 -14
  370. package/dist/models/webhook-subscription-type-enum.d.ts +0 -5
  371. package/dist/models/webhook-subscription-type-enum.js +0 -5
  372. package/dist/models/webhook-subscription.d.ts +0 -34
  373. package/dist/models/webhook-subscriptions-list-body.d.ts +0 -17
  374. package/docs/{TnLookupRequestError.md → AsyncLookupRequest.md} +5 -5
  375. package/docs/CompletedLookupStatusEnum.md +12 -0
  376. package/docs/CreateAsyncBulkLookupResponse.md +24 -0
  377. package/docs/{CreateLookupResponse.md → CreateAsyncBulkLookupResponseData.md} +5 -5
  378. package/docs/CreateSyncLookupResponse.md +24 -0
  379. package/docs/CreateSyncLookupResponseData.md +25 -0
  380. package/docs/DeactivationEventEnum.md +9 -0
  381. package/docs/GetAsyncBulkLookupResponse.md +24 -0
  382. package/docs/GetAsyncBulkLookupResponseData.md +25 -0
  383. package/docs/{LookupStatusEnum.md → InProgressLookupStatusEnum.md} +1 -2
  384. package/docs/LatestMessageDeliveryStatusEnum.md +13 -0
  385. package/docs/LineTypeEnum.md +14 -0
  386. package/docs/LinkSchema.md +24 -0
  387. package/docs/LookupErrorResponse.md +24 -0
  388. package/docs/LookupErrorSchema.md +26 -0
  389. package/docs/LookupErrorSchemaMeta.md +24 -0
  390. package/docs/LookupResult.md +22 -18
  391. package/docs/{MultiChannelChannelListObject.md → MultiChannelChannelListMMSObject.md} +4 -4
  392. package/docs/{MultiChannelMessageResponseDataChannelListInner.md → MultiChannelChannelListMMSResponseObject.md} +4 -4
  393. package/docs/MultiChannelChannelListObjectBase.md +24 -0
  394. package/docs/MultiChannelChannelListOwnerObject.md +20 -0
  395. package/docs/MultiChannelChannelListRBMObject.md +26 -0
  396. package/docs/{MultiChannelChannelListObjectContent.md → MultiChannelChannelListRBMObjectAllOfContent.md} +5 -5
  397. package/docs/MultiChannelChannelListRBMResponseObject.md +28 -0
  398. package/docs/MultiChannelChannelListRequestObject.md +26 -0
  399. package/docs/MultiChannelChannelListResponseObject.md +28 -0
  400. package/docs/MultiChannelChannelListSMSObject.md +26 -0
  401. package/docs/MultiChannelChannelListSMSResponseObject.md +28 -0
  402. package/docs/MultiChannelMessageRequest.md +1 -1
  403. package/docs/MultiChannelMessageResponseData.md +1 -1
  404. package/docs/PhoneNumberLookupApi.md +81 -34
  405. package/docs/{LookupRequest.md → SyncLookupRequest.md} +5 -6
  406. package/models/account-statistics.ts +0 -9
  407. package/models/additional-denial-reason.ts +0 -11
  408. package/models/address.ts +0 -19
  409. package/models/answer-callback.ts +0 -36
  410. package/models/async-lookup-request.ts +23 -0
  411. package/models/blocked-webhook.ts +0 -20
  412. package/models/bridge-complete-callback.ts +0 -37
  413. package/models/bridge-target-complete-callback.ts +0 -31
  414. package/models/business-entity-type-enum.ts +0 -2
  415. package/models/business-registration-type-enum.ts +0 -2
  416. package/models/call-direction-enum.ts +0 -2
  417. package/models/call-recording-metadata.ts +0 -52
  418. package/models/call-state-enum.ts +0 -2
  419. package/models/call-state.ts +0 -44
  420. package/models/call-transcription-detected-language-enum.ts +0 -2
  421. package/models/call-transcription-metadata.ts +0 -11
  422. package/models/call-transcription-response.ts +0 -16
  423. package/models/call-transcription-track-enum.ts +0 -2
  424. package/models/call-transcription.ts +0 -19
  425. package/models/callback-method-enum.ts +0 -2
  426. package/models/callback.ts +0 -1
  427. package/models/card-width-enum.ts +0 -5
  428. package/models/code-request.ts +0 -17
  429. package/models/completed-lookup-status-enum.ts +27 -0
  430. package/models/conference-completed-callback.ts +0 -12
  431. package/models/conference-created-callback.ts +0 -12
  432. package/models/conference-member-exit-callback.ts +0 -18
  433. package/models/conference-member-join-callback.ts +0 -18
  434. package/models/conference-member.ts +0 -17
  435. package/models/conference-recording-available-callback.ts +0 -33
  436. package/models/conference-recording-metadata.ts +0 -32
  437. package/models/conference-redirect-callback.ts +0 -12
  438. package/models/conference-state-enum.ts +0 -2
  439. package/models/conference.ts +0 -24
  440. package/models/contact.ts +0 -16
  441. package/models/create-async-bulk-lookup-response-data.ts +32 -0
  442. package/models/create-async-bulk-lookup-response.ts +34 -0
  443. package/models/create-call-response.ts +0 -56
  444. package/models/create-call.ts +0 -59
  445. package/models/create-message-request-error.ts +0 -20
  446. package/models/create-multi-channel-message-response.ts +0 -20
  447. package/models/{create-lookup-response.ts → create-sync-lookup-response-data.ts} +9 -11
  448. package/models/create-sync-lookup-response.ts +31 -0
  449. package/models/deactivation-event-enum.ts +28 -0
  450. package/models/disconnect-callback.ts +0 -39
  451. package/models/diversion.ts +0 -19
  452. package/models/dtmf-callback.ts +0 -39
  453. package/models/error-object.ts +0 -14
  454. package/models/error-source.ts +0 -10
  455. package/models/failure-webhook.ts +0 -17
  456. package/models/field-error.ts +0 -9
  457. package/models/file-format-enum.ts +0 -2
  458. package/models/gather-callback.ts +0 -41
  459. package/models/get-async-bulk-lookup-response-data.ts +39 -0
  460. package/models/get-async-bulk-lookup-response.ts +31 -0
  461. package/models/{lookup-status-enum.ts → in-progress-lookup-status-enum.ts} +2 -7
  462. package/models/inbound-callback-message.ts +0 -1
  463. package/models/inbound-callback-type-enum.ts +0 -2
  464. package/models/inbound-callback.ts +0 -23
  465. package/models/index.ts +28 -8
  466. package/models/initiate-callback.ts +0 -37
  467. package/models/latest-message-delivery-status-enum.ts +30 -0
  468. package/models/line-type-enum.ts +28 -0
  469. package/models/{lookup-request.ts → link-schema.ts} +11 -10
  470. package/models/link.ts +0 -15
  471. package/models/links-object.ts +0 -13
  472. package/models/list-message-direction-enum.ts +0 -2
  473. package/models/list-message-item.ts +0 -60
  474. package/models/lookup-error-response.ts +31 -0
  475. package/models/{tn-lookup-request-error.ts → lookup-error-schema-meta.ts} +7 -9
  476. package/models/lookup-error-schema.ts +35 -0
  477. package/models/lookup-result.ts +30 -40
  478. package/models/machine-detection-complete-callback.ts +0 -36
  479. package/models/machine-detection-configuration.ts +0 -41
  480. package/models/machine-detection-mode-enum.ts +0 -2
  481. package/models/machine-detection-result.ts +0 -6
  482. package/models/media.ts +0 -20
  483. package/models/message-direction-enum.ts +0 -2
  484. package/models/message-request.ts +0 -24
  485. package/models/message-status-enum.ts +0 -2
  486. package/models/message-type-enum.ts +0 -2
  487. package/models/message.ts +0 -37
  488. package/models/messages-list.ts +0 -17
  489. package/models/messaging-code-response.ts +0 -7
  490. package/models/messaging-request-error.ts +0 -15
  491. package/models/mfa-forbidden-request-error.ts +0 -7
  492. package/models/mfa-request-error.ts +0 -9
  493. package/models/mfa-unauthorized-request-error.ts +0 -7
  494. package/models/mms-message-content-file.ts +0 -7
  495. package/models/mms-message-content.ts +0 -12
  496. package/models/model-error.ts +0 -20
  497. package/models/multi-channel-action-calendar-event.ts +0 -1
  498. package/models/multi-channel-action.ts +48 -5
  499. package/models/{multi-channel-message-response-data-channel-list-inner.ts → multi-channel-channel-list-mmsobject.ts} +4 -5
  500. package/models/multi-channel-channel-list-mmsresponse-object.ts +34 -0
  501. package/models/multi-channel-channel-list-object-base.ts +33 -0
  502. package/models/multi-channel-channel-list-owner-object.ts +23 -0
  503. package/models/{multi-channel-channel-list-object-content.ts → multi-channel-channel-list-rbmobject-all-of-content.ts} +5 -12
  504. package/models/multi-channel-channel-list-rbmobject.ts +31 -0
  505. package/models/multi-channel-channel-list-rbmresponse-object.ts +34 -0
  506. package/models/{multi-channel-channel-list-object.ts → multi-channel-channel-list-request-object.ts} +12 -22
  507. package/models/multi-channel-channel-list-response-object.ts +50 -0
  508. package/models/multi-channel-channel-list-smsobject.ts +31 -0
  509. package/models/multi-channel-channel-list-smsresponse-object.ts +34 -0
  510. package/models/multi-channel-error.ts +0 -20
  511. package/models/multi-channel-message-channel-enum.ts +0 -2
  512. package/models/multi-channel-message-content.ts +0 -12
  513. package/models/multi-channel-message-request.ts +2 -17
  514. package/models/multi-channel-message-response-data.ts +2 -26
  515. package/models/opt-in-workflow.ts +0 -20
  516. package/models/page-info.ts +0 -13
  517. package/models/priority-enum.ts +0 -2
  518. package/models/product-type-enum.ts +0 -2
  519. package/models/rbm-action-base.ts +0 -14
  520. package/models/rbm-action-dial.ts +0 -1
  521. package/models/rbm-action-open-url.ts +0 -1
  522. package/models/rbm-action-type-enum.ts +0 -5
  523. package/models/rbm-action-view-location.ts +0 -1
  524. package/models/rbm-card-content-media.ts +0 -1
  525. package/models/rbm-card-content.ts +0 -16
  526. package/models/rbm-location-response.ts +0 -9
  527. package/models/rbm-media-height-enum.ts +0 -2
  528. package/models/rbm-message-carousel-card.ts +0 -17
  529. package/models/rbm-message-content-file.ts +0 -9
  530. package/models/rbm-message-content-rich-card.ts +0 -1
  531. package/models/rbm-message-content-text.ts +0 -9
  532. package/models/rbm-message-media.ts +0 -12
  533. package/models/rbm-standalone-card.ts +0 -22
  534. package/models/rbm-suggestion-response.ts +0 -9
  535. package/models/recording-available-callback.ts +0 -52
  536. package/models/recording-complete-callback.ts +0 -52
  537. package/models/recording-state-enum.ts +0 -2
  538. package/models/recording-transcription-metadata.ts +0 -10
  539. package/models/recording-transcriptions.ts +0 -10
  540. package/models/redirect-callback.ts +0 -37
  541. package/models/redirect-method-enum.ts +0 -2
  542. package/models/sms-message-content.ts +0 -7
  543. package/models/standalone-card-orientation-enum.ts +0 -5
  544. package/models/status-callback-message.ts +0 -43
  545. package/models/status-callback-type-enum.ts +0 -2
  546. package/models/status-callback.ts +0 -27
  547. package/models/stir-shaken.ts +0 -11
  548. package/models/sync-lookup-request.ts +23 -0
  549. package/models/telephone-number.ts +0 -7
  550. package/models/tfv-basic-authentication.ts +0 -15
  551. package/models/tfv-callback-status-enum.ts +0 -5
  552. package/models/tfv-error.ts +0 -14
  553. package/models/tfv-status-enum.ts +0 -5
  554. package/models/tfv-status.ts +0 -31
  555. package/models/tfv-submission-info.ts +0 -50
  556. package/models/tfv-submission-wrapper.ts +0 -10
  557. package/models/thumbnail-alignment-enum.ts +0 -2
  558. package/models/transcribe-recording.ts +0 -22
  559. package/models/transcription-available-callback.ts +0 -53
  560. package/models/transcription.ts +0 -9
  561. package/models/transfer-answer-callback.ts +0 -35
  562. package/models/transfer-complete-callback.ts +0 -41
  563. package/models/transfer-disconnect-callback.ts +0 -45
  564. package/models/update-call-recording.ts +0 -10
  565. package/models/update-call.ts +0 -34
  566. package/models/update-conference-member.ts +0 -11
  567. package/models/update-conference.ts +0 -32
  568. package/models/verification-denial-webhook.ts +0 -28
  569. package/models/verification-request.ts +0 -59
  570. package/models/verification-update-request.ts +0 -54
  571. package/models/verification-webhook.ts +0 -16
  572. package/models/verify-code-request.ts +0 -13
  573. package/models/verify-code-response.ts +0 -7
  574. package/models/voice-api-error.ts +0 -20
  575. package/models/voice-code-response.ts +0 -7
  576. package/models/webhook-subscription-basic-authentication.ts +0 -12
  577. package/models/webhook-subscription-request-schema.ts +0 -14
  578. package/models/webhook-subscription-type-enum.ts +0 -5
  579. package/models/webhook-subscription.ts +0 -34
  580. package/models/webhook-subscriptions-list-body.ts +0 -17
  581. package/openapitools.json +1 -1
  582. package/package.json +2 -2
  583. package/tests/smoke/multi-channel-api.test.ts +117 -10
  584. package/tests/smoke/phone-number-lookup-api.test.ts +64 -61
  585. package/tests/unit/api/multi-channel-api.test.ts +27 -10
  586. package/tests/unit/api/phone-number-lookup-api.test.ts +64 -58
  587. package/tests/unit/models/completed-lookup-status-enum.test.ts +9 -0
  588. package/tests/unit/models/deactivation-event-enum.test.ts +7 -0
  589. package/tests/unit/models/in-progress-lookup-status-enum.test.ts +11 -0
  590. package/tests/unit/models/latest-message-delivery-status-enum.test.ts +10 -0
  591. package/tests/unit/models/line-type-enum.test.ts +11 -0
  592. package/dist/models/create-lookup-response.d.ts +0 -31
  593. package/dist/models/lookup-status.d.ts +0 -44
  594. package/docs/LookupStatus.md +0 -27
  595. package/models/lookup-status.ts +0 -56
  596. package/tests/unit/models/lookup-status-enum.test.ts +0 -10
  597. /package/dist/models/{create-lookup-response.js → async-lookup-request.js} +0 -0
  598. /package/dist/models/{lookup-request.js → create-async-bulk-lookup-response-data.js} +0 -0
  599. /package/dist/models/{lookup-status.js → create-async-bulk-lookup-response.js} +0 -0
  600. /package/dist/models/{multi-channel-channel-list-object-content.js → create-sync-lookup-response-data.js} +0 -0
  601. /package/dist/models/{multi-channel-channel-list-object.js → create-sync-lookup-response.js} +0 -0
  602. /package/dist/models/{multi-channel-message-response-data-channel-list-inner.js → get-async-bulk-lookup-response-data.js} +0 -0
  603. /package/dist/models/{tn-lookup-request-error.js → get-async-bulk-lookup-response.js} +0 -0
@@ -4,10 +4,10 @@
4
4
 
5
5
  | **OS** | **Node** |
6
6
  |:------------:|:----------:|
7
- | Windows 2019 | 18, 20, 22 |
8
- | Windows 2022 | 18, 20, 22 |
9
- | Ubuntu 22.04 | 18, 20, 22 |
10
- | Ubuntu 24.04 | 18, 20, 22 |
7
+ | Windows 2022 | 18, 20, 22, 24 |
8
+ | Windows 2025 | 18, 20, 22, 24 |
9
+ | Ubuntu 22.04 | 18, 20, 22, 24 |
10
+ | Ubuntu 24.04 | 18, 20, 22, 24 |
11
11
 
12
12
  #### Available on NPM
13
13
  ```
@@ -46,7 +46,7 @@ Module system
46
46
  * CommonJS
47
47
  * ES6 module system
48
48
 
49
- It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
49
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
50
50
 
51
51
  ### Building
52
52
 
@@ -58,7 +58,7 @@ npm run build
58
58
 
59
59
  ### Publishing
60
60
 
61
- First build the package then run ```npm publish```
61
+ First build the package then run `npm publish`
62
62
 
63
63
  ### Consuming
64
64
 
@@ -99,3 +99,53 @@ await callsApi.createCall(BW_ACCOUNT_ID, body);
99
99
  ```
100
100
 
101
101
  More samples can be found in the [Bandwidth Samples](https://github.com/orgs/Bandwidth-Samples/repositories?q=lang%3Ajavascript&type=all) GitHub Organization.
102
+
103
+ ### Documentation for API Endpoints
104
+
105
+ All URIs are relative to *{{{basePath}}}*
106
+
107
+ Class | Method | HTTP request | Description
108
+ ------------ | ------------- | ------------- | -------------
109
+ {{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}*{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationIdLowerCase}}) | **{{httpMethod}}** {{path}} | {{summary}}
110
+ {{/operation}}{{/operations}}{{/apis}}{{/apiInfo}}
111
+
112
+ ### Documentation For Models
113
+
114
+ {{#models}}{{#model}} - [{{{classname}}}]({{modelDocPath}}{{{classname}}}.md)
115
+ {{/model}}{{/models}}
116
+
117
+ <a id="documentation-for-authorization"></a>
118
+ ## Documentation For Authorization
119
+
120
+ {{^authMethods}}Endpoints do not require authorization.{{/authMethods}}
121
+ {{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}}
122
+ {{#authMethods}}
123
+ <a id="{{name}}"></a>
124
+ ### {{{name}}}
125
+
126
+ {{#isApiKey}}
127
+ - **Type**: API key
128
+ - **API key parameter name**: {{{keyParamName}}}
129
+ - **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}}
130
+ {{/isApiKey}}
131
+ {{#isBasic}}
132
+ {{#isBasicBasic}}
133
+ - **Type**: HTTP basic authentication
134
+ {{/isBasicBasic}}
135
+ {{#isBasicBearer}}
136
+ - **Type**: Bearer authentication{{#bearerFormat}} ({{{.}}}){{/bearerFormat}}
137
+ {{/isBasicBearer}}
138
+ {{#isHttpSignature}}
139
+ - **Type**: HTTP signature authentication
140
+ {{/isHttpSignature}}
141
+ {{/isBasic}}
142
+ {{#isOAuth}}
143
+ - **Type**: OAuth
144
+ - **Flow**: {{{flow}}}
145
+ - **Authorization URL**: {{{authorizationUrl}}}
146
+ - **Scopes**: {{^scopes}}N/A{{/scopes}}
147
+ {{#scopes}} - **{{{scope}}}**: {{{description}}}
148
+ {{/scopes}}
149
+ {{/isOAuth}}
150
+
151
+ {{/authMethods}}
@@ -2,24 +2,22 @@
2
2
  /* eslint-disable */
3
3
  {{>licenseInfo}}
4
4
 
5
- import type { Configuration } from "./configuration";
6
- import type { RequestArgs } from "./base";
5
+ import type { Configuration } from "./configuration{{importFileExtension}}";
6
+ import type { RequestArgs } from "./base{{importFileExtension}}";
7
7
  import type { AxiosInstance, AxiosResponse } from 'axios';
8
- import { RequiredError } from "./base";
8
+ {{#withAWSV4Signature}}
9
+ import { aws4Interceptor } from "aws4-axios";
10
+ {{/withAWSV4Signature}}
11
+ import { RequiredError } from "./base{{importFileExtension}}";
9
12
  {{#withNodeImports}}
10
13
  import { URL, URLSearchParams } from 'url';
11
14
  {{/withNodeImports}}
12
15
 
13
- /**
14
- *
15
- * @export
16
- */
17
16
  export const DUMMY_BASE_URL = 'https://example.com'
18
17
 
19
18
  /**
20
19
  *
21
20
  * @throws {RequiredError}
22
- * @export
23
21
  */
24
22
  export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
25
23
  if (paramValue === null || paramValue === undefined) {
@@ -27,10 +25,6 @@ export const assertParamExists = function (functionName: string, paramName: stri
27
25
  }
28
26
  }
29
27
 
30
- /**
31
- *
32
- * @export
33
- */
34
28
  export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
35
29
  if (configuration && configuration.apiKey) {
36
30
  const localVarApiKeyValue = typeof configuration.apiKey === 'function'
@@ -40,20 +34,12 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri
40
34
  }
41
35
  }
42
36
 
43
- /**
44
- *
45
- * @export
46
- */
47
37
  export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
48
38
  if (configuration && (configuration.username || configuration.password)) {
49
39
  object["auth"] = { username: configuration.username, password: configuration.password };
50
40
  }
51
41
  }
52
42
 
53
- /**
54
- *
55
- * @export
56
- */
57
43
  export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
58
44
  if (configuration && configuration.accessToken) {
59
45
  const accessToken = typeof configuration.accessToken === 'function'
@@ -63,10 +49,6 @@ export const setBearerAuthToObject = async function (object: any, configuration?
63
49
  }
64
50
  }
65
51
 
66
- /**
67
- *
68
- * @export
69
- */
70
52
  export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
71
53
  if (configuration && configuration.accessToken) {
72
54
  const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
@@ -76,42 +58,53 @@ export const setOAuthToObject = async function (object: any, name: string, scope
76
58
  }
77
59
  }
78
60
 
61
+ {{#withAWSV4Signature}}
62
+ export const setAWS4SignatureInterceptor = async function (globalAxios: AxiosInstance, configuration?: Configuration) {
63
+ if (configuration && configuration.awsv4) {
64
+ const interceptor = aws4Interceptor({
65
+ options: {
66
+ region: configuration.awsv4?.options?.region ?? process.env.AWS_REGION ?? 'us-east-1',
67
+ service: configuration.awsv4?.options?.service ?? 'execute-api',
68
+ },
69
+ credentials: {
70
+ accessKeyId: configuration.awsv4?.credentials?.accessKeyId ?? process.env.AWS_ACCESS_KEY_ID,
71
+ secretAccessKey: configuration.awsv4?.credentials?.secretAccessKey ?? process.env.AWS_SECRET_ACCESS_KEY,
72
+ sessionToken: configuration.awsv4?.credentials?.sessionToken ?? process.env.AWS_SESSION_TOKEN
73
+ },
74
+ });
75
+ globalAxios.interceptors.request.use(interceptor);
76
+ }
77
+ }
78
+ {{/withAWSV4Signature}}
79
+
79
80
  function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
80
81
  if (parameter == null) return;
81
82
  if (typeof parameter === "object") {
82
83
  if (Array.isArray(parameter)) {
83
84
  (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
84
- }
85
+ }
85
86
  else {
86
- Object.keys(parameter).forEach(currentKey =>
87
+ Object.keys(parameter).forEach(currentKey =>
87
88
  setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
88
89
  );
89
90
  }
90
- }
91
+ }
91
92
  else {
92
93
  if (urlSearchParams.has(key)) {
93
94
  urlSearchParams.append(key, parameter);
94
- }
95
+ }
95
96
  else {
96
97
  urlSearchParams.set(key, parameter);
97
98
  }
98
99
  }
99
100
  }
100
101
 
101
- /**
102
- *
103
- * @export
104
- */
105
102
  export const setSearchParams = function (url: URL, ...objects: any[]) {
106
103
  const searchParams = new URLSearchParams(url.search);
107
104
  setFlattenedQueryParams(searchParams, objects);
108
105
  url.search = searchParams.toString();
109
106
  }
110
107
 
111
- /**
112
- *
113
- * @export
114
- */
115
108
  export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
116
109
  const nonString = typeof value !== 'string';
117
110
  const needsSerialization = nonString && configuration && configuration.isJsonMime
@@ -122,18 +115,10 @@ export const serializeDataIfNeeded = function (value: any, requestOptions: any,
122
115
  : (value || "");
123
116
  }
124
117
 
125
- /**
126
- *
127
- * @export
128
- */
129
118
  export const toPathString = function (url: URL) {
130
119
  return url.pathname + url.search + url.hash
131
120
  }
132
121
 
133
- /**
134
- *
135
- * @export
136
- */
137
122
  export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
138
123
  return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
139
124
  const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
@@ -1,12 +1,24 @@
1
1
  /* tslint:disable */
2
- /* eslint-disable */
3
2
  {{>licenseInfo}}
4
3
 
4
+ interface AWSv4Configuration {
5
+ options?: {
6
+ region?: string
7
+ service?: string
8
+ }
9
+ credentials?: {
10
+ accessKeyId?: string
11
+ secretAccessKey?: string,
12
+ sessionToken?: string
13
+ }
14
+ }
15
+
5
16
  export interface ConfigurationParameters {
6
17
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
7
18
  username?: string;
8
19
  password?: string;
9
20
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
21
+ awsv4?: AWSv4Configuration;
10
22
  basePath?: string;
11
23
  serverIndex?: number;
12
24
  baseOptions?: any;
@@ -17,49 +29,43 @@ export class Configuration {
17
29
  /**
18
30
  * parameter for apiKey security
19
31
  * @param name security name
20
- * @memberof Configuration
21
32
  */
22
33
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
23
34
  /**
24
35
  * parameter for basic security
25
- *
26
- * @type {string}
27
- * @memberof Configuration
28
36
  */
29
37
  username?: string;
30
38
  /**
31
39
  * parameter for basic security
32
- *
33
- * @type {string}
34
- * @memberof Configuration
35
40
  */
36
41
  password?: string;
37
42
  /**
38
43
  * parameter for oauth2 security
39
44
  * @param name security name
40
45
  * @param scopes oauth2 scope
41
- * @memberof Configuration
42
46
  */
43
47
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
44
48
  /**
45
- * override base path
46
- *
47
- * @type {string}
49
+ * parameter for aws4 signature security
50
+ * @param {Object} AWS4Signature - AWS4 Signature security
51
+ * @param {string} options.region - aws region
52
+ * @param {string} options.service - name of the service.
53
+ * @param {string} credentials.accessKeyId - aws access key id
54
+ * @param {string} credentials.secretAccessKey - aws access key
55
+ * @param {string} credentials.sessionToken - aws session token
48
56
  * @memberof Configuration
49
57
  */
58
+ awsv4?: AWSv4Configuration;
59
+ /**
60
+ * override base path
61
+ */
50
62
  basePath?: string;
51
63
  /**
52
64
  * override server index
53
- *
54
- * @type {number}
55
- * @memberof Configuration
56
65
  */
57
66
  serverIndex?: number;
58
67
  /**
59
68
  * base options for axios calls
60
- *
61
- * @type {any}
62
- * @memberof Configuration
63
69
  */
64
70
  baseOptions?: any;
65
71
  /**
@@ -76,6 +82,7 @@ export class Configuration {
76
82
  this.username = param.username;
77
83
  this.password = param.password;
78
84
  this.accessToken = param.accessToken;
85
+ this.awsv4 = param.awsv4;
79
86
  this.basePath = param.basePath;
80
87
  this.serverIndex = param.serverIndex;
81
88
  this.baseOptions = {
@@ -83,7 +90,7 @@ export class Configuration {
83
90
  headers: {
84
91
  ...param.baseOptions?.headers,
85
92
  'User-Agent': "OpenAPI-Generator{{#npmVersion}}/{{npmVersion}}{{/npmVersion}}/typescript-axios"
86
- }
93
+ },
87
94
  };
88
95
  this.formDataCtor = param.formDataCtor;
89
96
  }
@@ -22,7 +22,7 @@
22
22
  "sideEffects": false,
23
23
  {{/supportsES6}}
24
24
  "scripts": {
25
- "build": "tsc {{#supportsES6}}&& tsc -p tsconfig.esm.json{{/supportsES6}}",
25
+ "build": "tsc{{#supportsES6}} && tsc -p tsconfig.esm.json{{/supportsES6}}",
26
26
  "prepare": "npm run build",
27
27
  "test-unit": "jest --coverage --detectOpenHandles --testPathPattern=tests/unit",
28
28
  "test-smoke": "jest --coverage --detectOpenHandles --testPathPattern=tests/smoke",
@@ -18,7 +18,6 @@ import type { CreateCallResponse } from '../models';
18
18
  import type { UpdateCall } from '../models';
19
19
  /**
20
20
  * CallsApi - axios parameter creator
21
- * @export
22
21
  */
23
22
  export declare const CallsApiAxiosParamCreator: (configuration?: Configuration) => {
24
23
  /**
@@ -77,7 +76,6 @@ export declare const CallsApiAxiosParamCreator: (configuration?: Configuration)
77
76
  };
78
77
  /**
79
78
  * CallsApi - functional programming interface
80
- * @export
81
79
  */
82
80
  export declare const CallsApiFp: (configuration?: Configuration) => {
83
81
  /**
@@ -136,7 +134,6 @@ export declare const CallsApiFp: (configuration?: Configuration) => {
136
134
  };
137
135
  /**
138
136
  * CallsApi - factory interface
139
- * @export
140
137
  */
141
138
  export declare const CallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
142
139
  /**
@@ -195,9 +192,6 @@ export declare const CallsApiFactory: (configuration?: Configuration, basePath?:
195
192
  };
196
193
  /**
197
194
  * CallsApi - object-oriented interface
198
- * @export
199
- * @class CallsApi
200
- * @extends {BaseAPI}
201
195
  */
202
196
  export declare class CallsApi extends BaseAPI {
203
197
  /**
@@ -207,7 +201,6 @@ export declare class CallsApi extends BaseAPI {
207
201
  * @param {CreateCall} createCall JSON object containing information to create an outbound call
208
202
  * @param {*} [options] Override http request option.
209
203
  * @throws {RequiredError}
210
- * @memberof CallsApi
211
204
  */
212
205
  createCall(accountId: string, createCall: CreateCall, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCallResponse, any, {}>>;
213
206
  /**
@@ -217,7 +210,6 @@ export declare class CallsApi extends BaseAPI {
217
210
  * @param {string} callId Programmable Voice API Call ID.
218
211
  * @param {*} [options] Override http request option.
219
212
  * @throws {RequiredError}
220
- * @memberof CallsApi
221
213
  */
222
214
  getCallState(accountId: string, callId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallState, any, {}>>;
223
215
  /**
@@ -233,7 +225,6 @@ export declare class CallsApi extends BaseAPI {
233
225
  * @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the &#x60;Link&#x60; header of the response, as indicated in the endpoint description.
234
226
  * @param {*} [options] Override http request option.
235
227
  * @throws {RequiredError}
236
- * @memberof CallsApi
237
228
  */
238
229
  listCalls(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, disconnectCause?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallState[], any, {}>>;
239
230
  /**
@@ -244,7 +235,6 @@ export declare class CallsApi extends BaseAPI {
244
235
  * @param {UpdateCall} updateCall JSON object containing information to redirect an existing call to a new BXML document
245
236
  * @param {*} [options] Override http request option.
246
237
  * @throws {RequiredError}
247
- * @memberof CallsApi
248
238
  */
249
239
  updateCall(accountId: string, callId: string, updateCall: UpdateCall, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
250
240
  /**
@@ -255,7 +245,6 @@ export declare class CallsApi extends BaseAPI {
255
245
  * @param {string} body
256
246
  * @param {*} [options] Override http request option.
257
247
  * @throws {RequiredError}
258
- * @memberof CallsApi
259
248
  */
260
249
  updateCallBxml(accountId: string, callId: string, body: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
261
250
  }
@@ -93,7 +93,6 @@ var common_1 = require("../common");
93
93
  var base_1 = require("../base");
94
94
  /**
95
95
  * CallsApi - axios parameter creator
96
- * @export
97
96
  */
98
97
  var CallsApiAxiosParamCreator = function (configuration) {
99
98
  var _this = this;
@@ -358,7 +357,6 @@ var CallsApiAxiosParamCreator = function (configuration) {
358
357
  exports.CallsApiAxiosParamCreator = CallsApiAxiosParamCreator;
359
358
  /**
360
359
  * CallsApi - functional programming interface
361
- * @export
362
360
  */
363
361
  var CallsApiFp = function (configuration) {
364
362
  var localVarAxiosParamCreator = (0, exports.CallsApiAxiosParamCreator)(configuration);
@@ -496,7 +494,6 @@ var CallsApiFp = function (configuration) {
496
494
  exports.CallsApiFp = CallsApiFp;
497
495
  /**
498
496
  * CallsApi - factory interface
499
- * @export
500
497
  */
501
498
  var CallsApiFactory = function (configuration, basePath, axios) {
502
499
  var localVarFp = (0, exports.CallsApiFp)(configuration);
@@ -569,9 +566,6 @@ var CallsApiFactory = function (configuration, basePath, axios) {
569
566
  exports.CallsApiFactory = CallsApiFactory;
570
567
  /**
571
568
  * CallsApi - object-oriented interface
572
- * @export
573
- * @class CallsApi
574
- * @extends {BaseAPI}
575
569
  */
576
570
  var CallsApi = /** @class */ (function (_super) {
577
571
  __extends(CallsApi, _super);
@@ -585,7 +579,6 @@ var CallsApi = /** @class */ (function (_super) {
585
579
  * @param {CreateCall} createCall JSON object containing information to create an outbound call
586
580
  * @param {*} [options] Override http request option.
587
581
  * @throws {RequiredError}
588
- * @memberof CallsApi
589
582
  */
590
583
  CallsApi.prototype.createCall = function (accountId, createCall, options) {
591
584
  var _this = this;
@@ -598,7 +591,6 @@ var CallsApi = /** @class */ (function (_super) {
598
591
  * @param {string} callId Programmable Voice API Call ID.
599
592
  * @param {*} [options] Override http request option.
600
593
  * @throws {RequiredError}
601
- * @memberof CallsApi
602
594
  */
603
595
  CallsApi.prototype.getCallState = function (accountId, callId, options) {
604
596
  var _this = this;
@@ -617,7 +609,6 @@ var CallsApi = /** @class */ (function (_super) {
617
609
  * @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the &#x60;Link&#x60; header of the response, as indicated in the endpoint description.
618
610
  * @param {*} [options] Override http request option.
619
611
  * @throws {RequiredError}
620
- * @memberof CallsApi
621
612
  */
622
613
  CallsApi.prototype.listCalls = function (accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options) {
623
614
  var _this = this;
@@ -631,7 +622,6 @@ var CallsApi = /** @class */ (function (_super) {
631
622
  * @param {UpdateCall} updateCall JSON object containing information to redirect an existing call to a new BXML document
632
623
  * @param {*} [options] Override http request option.
633
624
  * @throws {RequiredError}
634
- * @memberof CallsApi
635
625
  */
636
626
  CallsApi.prototype.updateCall = function (accountId, callId, updateCall, options) {
637
627
  var _this = this;
@@ -645,7 +635,6 @@ var CallsApi = /** @class */ (function (_super) {
645
635
  * @param {string} body
646
636
  * @param {*} [options] Override http request option.
647
637
  * @throws {RequiredError}
648
- * @memberof CallsApi
649
638
  */
650
639
  CallsApi.prototype.updateCallBxml = function (accountId, callId, body, options) {
651
640
  var _this = this;
@@ -19,7 +19,6 @@ import type { UpdateConference } from '../models';
19
19
  import type { UpdateConferenceMember } from '../models';
20
20
  /**
21
21
  * ConferencesApi - axios parameter creator
22
- * @export
23
22
  */
24
23
  export declare const ConferencesApiAxiosParamCreator: (configuration?: Configuration) => {
25
24
  /**
@@ -117,7 +116,6 @@ export declare const ConferencesApiAxiosParamCreator: (configuration?: Configura
117
116
  };
118
117
  /**
119
118
  * ConferencesApi - functional programming interface
120
- * @export
121
119
  */
122
120
  export declare const ConferencesApiFp: (configuration?: Configuration) => {
123
121
  /**
@@ -215,7 +213,6 @@ export declare const ConferencesApiFp: (configuration?: Configuration) => {
215
213
  };
216
214
  /**
217
215
  * ConferencesApi - factory interface
218
- * @export
219
216
  */
220
217
  export declare const ConferencesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
221
218
  /**
@@ -313,9 +310,6 @@ export declare const ConferencesApiFactory: (configuration?: Configuration, base
313
310
  };
314
311
  /**
315
312
  * ConferencesApi - object-oriented interface
316
- * @export
317
- * @class ConferencesApi
318
- * @extends {BaseAPI}
319
313
  */
320
314
  export declare class ConferencesApi extends BaseAPI {
321
315
  /**
@@ -326,7 +320,6 @@ export declare class ConferencesApi extends BaseAPI {
326
320
  * @param {string} recordingId Programmable Voice API Recording ID.
327
321
  * @param {*} [options] Override http request option.
328
322
  * @throws {RequiredError}
329
- * @memberof ConferencesApi
330
323
  */
331
324
  downloadConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
332
325
  /**
@@ -336,7 +329,6 @@ export declare class ConferencesApi extends BaseAPI {
336
329
  * @param {string} conferenceId Programmable Voice API Conference ID.
337
330
  * @param {*} [options] Override http request option.
338
331
  * @throws {RequiredError}
339
- * @memberof ConferencesApi
340
332
  */
341
333
  getConference(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Conference, any, {}>>;
342
334
  /**
@@ -347,7 +339,6 @@ export declare class ConferencesApi extends BaseAPI {
347
339
  * @param {string} memberId Programmable Voice API Conference Member ID.
348
340
  * @param {*} [options] Override http request option.
349
341
  * @throws {RequiredError}
350
- * @memberof ConferencesApi
351
342
  */
352
343
  getConferenceMember(accountId: string, conferenceId: string, memberId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConferenceMember, any, {}>>;
353
344
  /**
@@ -358,7 +349,6 @@ export declare class ConferencesApi extends BaseAPI {
358
349
  * @param {string} recordingId Programmable Voice API Recording ID.
359
350
  * @param {*} [options] Override http request option.
360
351
  * @throws {RequiredError}
361
- * @memberof ConferencesApi
362
352
  */
363
353
  getConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConferenceRecordingMetadata, any, {}>>;
364
354
  /**
@@ -368,7 +358,6 @@ export declare class ConferencesApi extends BaseAPI {
368
358
  * @param {string} conferenceId Programmable Voice API Conference ID.
369
359
  * @param {*} [options] Override http request option.
370
360
  * @throws {RequiredError}
371
- * @memberof ConferencesApi
372
361
  */
373
362
  listConferenceRecordings(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConferenceRecordingMetadata[], any, {}>>;
374
363
  /**
@@ -382,7 +371,6 @@ export declare class ConferencesApi extends BaseAPI {
382
371
  * @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the &#x60;Link&#x60; header of the response, as indicated in the endpoint description.
383
372
  * @param {*} [options] Override http request option.
384
373
  * @throws {RequiredError}
385
- * @memberof ConferencesApi
386
374
  */
387
375
  listConferences(accountId: string, name?: string, minCreatedTime?: string, maxCreatedTime?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Conference[], any, {}>>;
388
376
  /**
@@ -393,7 +381,6 @@ export declare class ConferencesApi extends BaseAPI {
393
381
  * @param {UpdateConference} updateConference
394
382
  * @param {*} [options] Override http request option.
395
383
  * @throws {RequiredError}
396
- * @memberof ConferencesApi
397
384
  */
398
385
  updateConference(accountId: string, conferenceId: string, updateConference: UpdateConference, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
399
386
  /**
@@ -404,7 +391,6 @@ export declare class ConferencesApi extends BaseAPI {
404
391
  * @param {string} body
405
392
  * @param {*} [options] Override http request option.
406
393
  * @throws {RequiredError}
407
- * @memberof ConferencesApi
408
394
  */
409
395
  updateConferenceBxml(accountId: string, conferenceId: string, body: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
410
396
  /**
@@ -416,7 +402,6 @@ export declare class ConferencesApi extends BaseAPI {
416
402
  * @param {UpdateConferenceMember} updateConferenceMember
417
403
  * @param {*} [options] Override http request option.
418
404
  * @throws {RequiredError}
419
- * @memberof ConferencesApi
420
405
  */
421
406
  updateConferenceMember(accountId: string, conferenceId: string, memberId: string, updateConferenceMember: UpdateConferenceMember, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
422
407
  }