bandwidth-sdk 8.1.1 → 8.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/bandwidth.yml +22 -9
  2. package/configuration.ts +1 -1
  3. package/coverage/clover.xml +68 -68
  4. package/coverage/coverage-final.json +36 -36
  5. package/coverage/lcov-report/index.html +15 -15
  6. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1 -1
  7. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +1 -1
  8. package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +1 -1
  9. package/coverage/lcov-report/node-sdk/api/index.html +1 -1
  10. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1 -1
  11. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1 -1
  12. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
  13. package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +1 -1
  14. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +1 -1
  15. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +1 -1
  16. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +1 -1
  17. package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +1 -1
  18. package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1 -1
  19. package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
  20. package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
  21. package/coverage/lcov-report/node-sdk/common.ts.html +1 -1
  22. package/coverage/lcov-report/node-sdk/configuration.ts.html +47 -47
  23. package/coverage/lcov-report/node-sdk/index.html +16 -16
  24. package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +2 -2
  25. package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +2 -2
  26. package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
  27. package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
  28. package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
  29. package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
  30. package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
  31. package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
  32. package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
  33. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
  34. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
  35. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Connect.ts.html +1 -1
  36. package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
  37. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Endpoint.ts.html +1 -1
  38. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
  39. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
  40. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
  41. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
  42. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
  43. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
  44. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
  45. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
  46. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
  47. package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
  48. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
  49. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
  50. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
  51. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
  52. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
  53. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
  54. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
  55. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
  56. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
  57. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
  58. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
  59. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
  60. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
  61. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
  62. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
  63. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
  64. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
  65. package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -2
  66. package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -2
  67. package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +2 -2
  68. package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +2 -2
  69. package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -2
  70. package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +2 -2
  71. package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +2 -2
  72. package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -2
  73. package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +2 -2
  74. package/coverage/lcov-report/node-sdk/models/device-status-enum.ts.html +1 -1
  75. package/coverage/lcov-report/node-sdk/models/endpoint-direction-enum.ts.html +1 -1
  76. package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +1 -1
  77. package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +1 -1
  78. package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +1 -1
  79. package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -2
  80. package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +2 -2
  81. package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +2 -2
  82. package/coverage/lcov-report/node-sdk/models/index.html +1 -1
  83. package/coverage/lcov-report/node-sdk/models/index.ts.html +1 -1
  84. package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +2 -2
  85. package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +2 -2
  86. package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
  87. package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -2
  88. package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -2
  89. package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -2
  90. package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -2
  91. package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +2 -2
  92. package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
  93. package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +1 -1
  94. package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +2 -2
  95. package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +2 -2
  96. package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +2 -2
  97. package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +3 -3
  98. package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -2
  99. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -2
  100. package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +2 -2
  101. package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +2 -2
  102. package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +2 -2
  103. package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +2 -2
  104. package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +3 -3
  105. package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +2 -2
  106. package/coverage/lcov.info +86 -86
  107. package/dist/configuration.js +1 -1
  108. package/dist/models/multi-channel-action-calendar-event.d.ts +2 -2
  109. package/dist/models/multi-channel-action.d.ts +5 -5
  110. package/dist/models/rbm-action-open-url.d.ts +1 -1
  111. package/dist/models/rbm-action-view-location.d.ts +2 -2
  112. package/dist/models/rbm-card-content.d.ts +3 -0
  113. package/dist/models/rbm-standalone-card.d.ts +1 -1
  114. package/dist/models/rbm-web-view-enum.d.ts +1 -1
  115. package/dist/models/rbm-web-view-enum.js +1 -1
  116. package/dist/models/thumbnail-alignment-enum.d.ts +1 -1
  117. package/dist/models/thumbnail-alignment-enum.js +1 -1
  118. package/docs/MultiChannelAction.md +5 -5
  119. package/docs/MultiChannelActionCalendarEvent.md +2 -2
  120. package/docs/MultiChannelChannelListRBMObjectAllOfContent.md +1 -1
  121. package/docs/RbmActionOpenUrl.md +1 -1
  122. package/docs/RbmActionViewLocation.md +2 -2
  123. package/docs/RbmCardContent.md +1 -0
  124. package/docs/RbmMessageContentRichCard.md +1 -1
  125. package/docs/RbmStandaloneCard.md +1 -1
  126. package/docs/RbmWebViewEnum.md +1 -1
  127. package/docs/ThumbnailAlignmentEnum.md +1 -1
  128. package/jest.config.js +3 -0
  129. package/models/multi-channel-action-calendar-event.ts +2 -2
  130. package/models/multi-channel-action.ts +5 -5
  131. package/models/rbm-action-open-url.ts +1 -1
  132. package/models/rbm-action-view-location.ts +2 -2
  133. package/models/rbm-card-content.ts +3 -0
  134. package/models/rbm-standalone-card.ts +1 -1
  135. package/models/rbm-web-view-enum.ts +1 -1
  136. package/models/thumbnail-alignment-enum.ts +1 -1
  137. package/package.json +1 -1
  138. package/tests/globals.d.ts +23 -0
  139. package/tests/tsconfig.json +9 -0
  140. package/tests/unit/api/calls-api.test.ts +11 -4
  141. package/tests/unit/api/conferences-api.test.ts +0 -1
  142. package/tests/unit/api/endpoints-api.test.ts +10 -6
  143. package/tests/unit/api/media-api.test.ts +1 -1
  144. package/tests/unit/api/messages-api.test.ts +13 -4
  145. package/tests/unit/api/mfaapi.test.ts +6 -2
  146. package/tests/unit/api/phone-number-lookup-api.test.ts +30 -31
  147. package/tests/unit/api/recordings-api.test.ts +9 -4
  148. package/tests/unit/api/statistics-api.test.ts +5 -2
  149. package/tests/unit/api/toll-free-verification-api.test.ts +25 -17
  150. package/tests/unit/api/transcriptions-api.test.ts +0 -1
  151. package/tests/unit/configuration.test.ts +84 -0
  152. package/tests/unit/models/account-statistics.test.ts +13 -0
  153. package/tests/unit/models/additional-denial-reason.test.ts +15 -0
  154. package/tests/unit/models/address.test.ts +23 -0
  155. package/tests/unit/models/answer-callback.test.ts +39 -0
  156. package/tests/unit/models/async-lookup-request.test.ts +11 -0
  157. package/tests/unit/models/blocked-webhook.test.ts +22 -0
  158. package/tests/unit/models/bridge-complete-callback.test.ts +42 -0
  159. package/tests/unit/models/bridge-target-complete-callback.test.ts +36 -0
  160. package/tests/unit/models/business-entity-type-enum.test.ts +7 -0
  161. package/tests/unit/models/business-registration-type-enum.test.ts +20 -0
  162. package/tests/unit/models/call-direction-enum.test.ts +4 -0
  163. package/tests/unit/models/call-recording-metadata.test.ts +50 -0
  164. package/tests/unit/models/call-state-enum.test.ts +4 -0
  165. package/tests/unit/models/call-state.test.ts +46 -0
  166. package/tests/unit/models/call-transcription-detected-language-enum.test.ts +5 -0
  167. package/tests/unit/models/call-transcription-metadata.test.ts +15 -0
  168. package/tests/unit/models/call-transcription-response.test.ts +17 -0
  169. package/tests/unit/models/call-transcription-track-enum.test.ts +4 -0
  170. package/tests/unit/models/call-transcription.test.ts +19 -0
  171. package/tests/unit/models/callback-method-enum.test.ts +4 -0
  172. package/tests/unit/models/card-width-enum.test.ts +4 -0
  173. package/tests/unit/models/code-request.test.ts +21 -0
  174. package/tests/unit/models/completed-lookup-status-enum.test.ts +5 -0
  175. package/tests/unit/models/conference-completed-callback.test.ts +19 -0
  176. package/tests/unit/models/conference-created-callback.test.ts +19 -0
  177. package/tests/unit/models/conference-member-exit-callback.test.ts +25 -0
  178. package/tests/unit/models/conference-member-join-callback.test.ts +25 -0
  179. package/tests/unit/models/conference-member.test.ts +21 -0
  180. package/tests/unit/models/conference-recording-available-callback.test.ts +38 -0
  181. package/tests/unit/models/conference-recording-metadata.test.ts +34 -0
  182. package/tests/unit/models/conference-redirect-callback.test.ts +19 -0
  183. package/tests/unit/models/conference-state-enum.test.ts +4 -0
  184. package/tests/unit/models/conference.test.ts +26 -0
  185. package/tests/unit/models/contact.test.ts +17 -0
  186. package/tests/unit/models/create-async-bulk-lookup-response-data.test.ts +14 -0
  187. package/tests/unit/models/create-async-bulk-lookup-response.test.ts +16 -0
  188. package/tests/unit/models/create-call-response.test.ts +52 -0
  189. package/tests/unit/models/create-call.test.ts +53 -0
  190. package/tests/unit/models/create-endpoint-response-data.test.ts +2 -4
  191. package/tests/unit/models/create-endpoint-response.test.ts +4 -4
  192. package/tests/unit/models/create-message-request-error.test.ts +15 -0
  193. package/tests/unit/models/create-multi-channel-message-response.test.ts +16 -0
  194. package/tests/unit/models/create-sync-lookup-response-data.test.ts +16 -0
  195. package/tests/unit/models/create-sync-lookup-response.test.ts +16 -0
  196. package/tests/unit/models/deactivation-event-enum.test.ts +3 -0
  197. package/tests/unit/models/device.test.ts +1 -2
  198. package/tests/unit/models/disconnect-callback.test.ts +44 -0
  199. package/tests/unit/models/diversion.test.ts +23 -0
  200. package/tests/unit/models/dtmf-callback.test.ts +44 -0
  201. package/tests/unit/models/endpoint-event.test.ts +5 -7
  202. package/tests/unit/models/endpoint-response.test.ts +2 -2
  203. package/tests/unit/models/endpoint.test.ts +2 -4
  204. package/tests/unit/models/endpoints.test.ts +4 -6
  205. package/tests/unit/models/error-object.test.ts +16 -0
  206. package/tests/unit/models/error-source.test.ts +17 -0
  207. package/tests/unit/models/failure-webhook.test.ts +21 -0
  208. package/tests/unit/models/field-error.test.ts +13 -0
  209. package/tests/unit/models/file-format-enum.test.ts +4 -0
  210. package/tests/unit/models/gather-callback.test.ts +46 -0
  211. package/tests/unit/models/get-async-bulk-lookup-response-data.test.ts +16 -0
  212. package/tests/unit/models/get-async-bulk-lookup-response.test.ts +16 -0
  213. package/tests/unit/models/in-progress-lookup-status-enum.test.ts +6 -0
  214. package/tests/unit/models/inbound-callback-message.test.ts +48 -0
  215. package/tests/unit/models/inbound-callback-type-enum.test.ts +5 -0
  216. package/tests/unit/models/inbound-callback.test.ts +23 -0
  217. package/tests/unit/models/initiate-callback.test.ts +38 -0
  218. package/tests/unit/models/latest-message-delivery-status-enum.test.ts +6 -0
  219. package/tests/unit/models/line-type-enum.test.ts +6 -0
  220. package/tests/unit/models/link-schema.test.ts +15 -0
  221. package/tests/unit/models/link.test.ts +13 -0
  222. package/tests/unit/models/links-object.test.ts +17 -0
  223. package/tests/unit/models/list-endpoints-response.test.ts +2 -4
  224. package/tests/unit/models/list-message-direction-enum.test.ts +4 -0
  225. package/tests/unit/models/list-message-item.test.ts +58 -0
  226. package/tests/unit/models/lookup-error-response.test.ts +13 -0
  227. package/tests/unit/models/lookup-error-schema-meta.test.ts +15 -0
  228. package/tests/unit/models/lookup-error-schema.test.ts +18 -0
  229. package/tests/unit/models/lookup-result.test.ts +36 -0
  230. package/tests/unit/models/machine-detection-complete-callback.test.ts +39 -0
  231. package/tests/unit/models/machine-detection-configuration.test.ts +41 -0
  232. package/tests/unit/models/machine-detection-mode-enum.test.ts +4 -0
  233. package/tests/unit/models/machine-detection-result.test.ts +13 -0
  234. package/tests/unit/models/media.test.ts +15 -0
  235. package/tests/unit/models/message-direction-enum.test.ts +4 -0
  236. package/tests/unit/models/message-request.test.ts +27 -0
  237. package/tests/unit/models/message-status-enum.test.ts +10 -0
  238. package/tests/unit/models/message-type-enum.test.ts +5 -0
  239. package/tests/unit/models/message.test.ts +39 -0
  240. package/tests/unit/models/messages-list.test.ts +16 -0
  241. package/tests/unit/models/messaging-code-response.test.ts +11 -0
  242. package/tests/unit/models/messaging-request-error.test.ts +13 -0
  243. package/tests/unit/models/mfa-forbidden-request-error.test.ts +11 -0
  244. package/tests/unit/models/mfa-request-error.test.ts +13 -0
  245. package/tests/unit/models/mfa-unauthorized-request-error.test.ts +11 -0
  246. package/tests/unit/models/mms-message-content-file.test.ts +11 -0
  247. package/tests/unit/models/mms-message-content.test.ts +13 -0
  248. package/tests/unit/models/multi-channel-action-calendar-event.test.ts +24 -0
  249. package/tests/unit/models/multi-channel-action.test.ts +40 -0
  250. package/tests/unit/models/multi-channel-channel-list-mmsobject.test.ts +19 -0
  251. package/tests/unit/models/multi-channel-channel-list-mmsresponse-object.test.ts +21 -0
  252. package/tests/unit/models/multi-channel-channel-list-object-base.test.ts +16 -0
  253. package/tests/unit/models/multi-channel-channel-list-owner-object.test.ts +11 -0
  254. package/tests/unit/models/multi-channel-channel-list-rbmobject.test.ts +19 -0
  255. package/tests/unit/models/multi-channel-channel-list-rbmresponse-object.test.ts +21 -0
  256. package/tests/unit/models/multi-channel-channel-list-request-object.test.ts +19 -0
  257. package/tests/unit/models/multi-channel-channel-list-response-object.test.ts +21 -0
  258. package/tests/unit/models/multi-channel-channel-list-smsobject.test.ts +19 -0
  259. package/tests/unit/models/multi-channel-channel-list-smsresponse-object.test.ts +21 -0
  260. package/tests/unit/models/multi-channel-error.test.ts +13 -0
  261. package/tests/unit/models/multi-channel-message-channel-enum.test.ts +5 -0
  262. package/tests/unit/models/multi-channel-message-content.test.ts +14 -0
  263. package/tests/unit/models/multi-channel-message-request.test.ts +20 -0
  264. package/tests/unit/models/multi-channel-message-response-data.test.ts +28 -0
  265. package/tests/unit/models/opt-in-workflow.test.ts +15 -0
  266. package/tests/unit/models/page-info.test.ts +17 -0
  267. package/tests/unit/models/priority-enum.test.ts +4 -0
  268. package/tests/unit/models/product-type-enum.test.ts +11 -0
  269. package/tests/unit/models/rbm-action-base.test.ts +16 -0
  270. package/tests/unit/models/rbm-action-dial.test.ts +18 -0
  271. package/tests/unit/models/rbm-action-open-url.test.ts +24 -0
  272. package/tests/unit/models/rbm-action-type-enum.test.ts +8 -0
  273. package/tests/unit/models/rbm-action-view-location.test.ts +22 -0
  274. package/tests/unit/models/rbm-card-content-media.test.ts +16 -0
  275. package/tests/unit/models/rbm-card-content.test.ts +18 -0
  276. package/tests/unit/models/rbm-location-response.test.ts +13 -0
  277. package/tests/unit/models/rbm-media-height-enum.test.ts +5 -0
  278. package/tests/unit/models/rbm-message-carousel-card.test.ts +16 -0
  279. package/tests/unit/models/rbm-message-content-file.test.ts +13 -0
  280. package/tests/unit/models/rbm-message-content-text.test.ts +13 -0
  281. package/tests/unit/models/rbm-message-media.test.ts +13 -0
  282. package/tests/unit/models/rbm-open-url-enum.test.ts +4 -0
  283. package/tests/unit/models/rbm-standalone-card.test.ts +20 -0
  284. package/tests/unit/models/rbm-suggestion-response.test.ts +13 -0
  285. package/tests/unit/models/rbm-veb-view-enum.test.ts +5 -0
  286. package/tests/unit/models/recording-available-callback.test.ts +55 -0
  287. package/tests/unit/models/recording-complete-callback.test.ts +55 -0
  288. package/tests/unit/models/recording-state-enum.test.ts +4 -0
  289. package/tests/unit/models/recording-transcription-metadata.test.ts +17 -0
  290. package/tests/unit/models/recording-transcriptions.test.ts +11 -0
  291. package/tests/unit/models/redirect-callback.test.ts +42 -0
  292. package/tests/unit/models/redirect-method-enum.test.ts +4 -0
  293. package/tests/unit/models/sms-message-content.test.ts +11 -0
  294. package/tests/unit/models/standalone-card-orientation-enum.test.ts +4 -0
  295. package/tests/unit/models/status-callback-message.test.ts +39 -0
  296. package/tests/unit/models/status-callback-type-enum.test.ts +6 -0
  297. package/tests/unit/models/status-callback.test.ts +27 -0
  298. package/tests/unit/models/stir-shaken.test.ts +15 -0
  299. package/tests/unit/models/sync-lookup-request.test.ts +13 -0
  300. package/tests/unit/models/telephone-number.test.ts +11 -0
  301. package/tests/unit/models/tfv-basic-authentication.test.ts +13 -0
  302. package/tests/unit/models/tfv-callback-status-enum.test.ts +4 -0
  303. package/tests/unit/models/tfv-error.test.ts +13 -0
  304. package/tests/unit/models/tfv-status-enum.test.ts +5 -0
  305. package/tests/unit/models/tfv-status.test.ts +33 -0
  306. package/tests/unit/models/tfv-submission-info.test.ts +46 -0
  307. package/tests/unit/models/tfv-submission-wrapper.test.ts +12 -0
  308. package/tests/unit/models/thumbnail-alignment-enum.test.ts +4 -0
  309. package/tests/unit/models/transcribe-recording.test.ts +24 -0
  310. package/tests/unit/models/transcription-available-callback.test.ts +54 -0
  311. package/tests/unit/models/transcription.test.ts +13 -0
  312. package/tests/unit/models/transfer-answer-callback.test.ts +40 -0
  313. package/tests/unit/models/transfer-complete-callback.test.ts +46 -0
  314. package/tests/unit/models/transfer-disconnect-callback.test.ts +50 -0
  315. package/tests/unit/models/update-call-recording.test.ts +12 -0
  316. package/tests/unit/models/update-call.test.ts +31 -0
  317. package/tests/unit/models/update-conference-member.test.ts +15 -0
  318. package/tests/unit/models/update-conference.test.ts +29 -0
  319. package/tests/unit/models/verification-denial-webhook.test.ts +29 -0
  320. package/tests/unit/models/verification-request.test.ts +54 -0
  321. package/tests/unit/models/verification-update-request.test.ts +52 -0
  322. package/tests/unit/models/verification-webhook.test.ts +18 -0
  323. package/tests/unit/models/verify-code-request.test.ts +17 -0
  324. package/tests/unit/models/verify-code-response.test.ts +11 -0
  325. package/tests/unit/models/voice-api-error.test.ts +15 -0
  326. package/tests/unit/models/voice-code-response.test.ts +11 -0
  327. package/tests/unit/models/webhook-subscription-basic-authentication.test.ts +13 -0
  328. package/tests/unit/models/webhook-subscription-error.test.ts +15 -0
  329. package/tests/unit/models/webhook-subscription-request-schema.test.ts +16 -0
  330. package/tests/unit/models/webhook-subscription-type-enum.test.ts +4 -0
  331. package/tests/unit/models/webhook-subscription.test.ts +25 -0
  332. package/tests/unit/models/webhook-subscriptions-list-body.test.ts +16 -0
@@ -0,0 +1,54 @@
1
+ import { VerificationRequest } from '../../../models/verification-request';
2
+ import { Address } from '../../../models/address';
3
+ import { Contact } from '../../../models/contact';
4
+ import { OptInWorkflow } from '../../../models/opt-in-workflow';
5
+ import { BusinessRegistrationTypeEnum } from '../../../models/business-registration-type-enum';
6
+ import { BusinessEntityTypeEnum } from '../../../models/business-entity-type-enum';
7
+
8
+ describe('VerificationRequest', () => {
9
+ test('should accept the expected shape', () => {
10
+ const fixture: VerificationRequest = {
11
+ businessAddress: {} as unknown as Address,
12
+ businessContact: {} as unknown as Contact,
13
+ messageVolume: 1.5,
14
+ phoneNumbers: [],
15
+ useCase: 'test-useCase',
16
+ useCaseSummary: 'test-useCaseSummary',
17
+ productionMessageContent: 'test-productionMessageContent',
18
+ optInWorkflow: {} as unknown as OptInWorkflow,
19
+ additionalInformation: 'test-additionalInformation',
20
+ isvReseller: 'test-isvReseller',
21
+ privacyPolicyUrl: 'test-privacyPolicyUrl',
22
+ termsAndConditionsUrl: 'test-termsAndConditionsUrl',
23
+ businessDba: 'test-businessDba',
24
+ businessRegistrationNumber: 'test-businessRegistrationNumber',
25
+ businessRegistrationType: BusinessRegistrationTypeEnum.Ein,
26
+ businessRegistrationIssuingCountry: 'test-businessRegistrationIssuingCountry',
27
+ businessEntityType: BusinessEntityTypeEnum.SoleProprietor,
28
+ helpMessageResponse: 'test-helpMessageResponse',
29
+ ageGatedContent: true,
30
+ cvToken: 'test-cvToken',
31
+ };
32
+
33
+ expect(fixture.businessAddress).toBeDefined();
34
+ expect(fixture.businessContact).toBeDefined();
35
+ expect(fixture.messageVolume).toBe(1.5);
36
+ expect(fixture.phoneNumbers).toEqual([]);
37
+ expect(fixture.useCase).toBe('test-useCase');
38
+ expect(fixture.useCaseSummary).toBe('test-useCaseSummary');
39
+ expect(fixture.productionMessageContent).toBe('test-productionMessageContent');
40
+ expect(fixture.optInWorkflow).toBeDefined();
41
+ expect(fixture.additionalInformation).toBe('test-additionalInformation');
42
+ expect(fixture.isvReseller).toBe('test-isvReseller');
43
+ expect(fixture.privacyPolicyUrl).toBe('test-privacyPolicyUrl');
44
+ expect(fixture.termsAndConditionsUrl).toBe('test-termsAndConditionsUrl');
45
+ expect(fixture.businessDba).toBe('test-businessDba');
46
+ expect(fixture.businessRegistrationNumber).toBe('test-businessRegistrationNumber');
47
+ expect(fixture.businessRegistrationType).toBe(BusinessRegistrationTypeEnum.Ein);
48
+ expect(fixture.businessRegistrationIssuingCountry).toBe('test-businessRegistrationIssuingCountry');
49
+ expect(fixture.businessEntityType).toBe(BusinessEntityTypeEnum.SoleProprietor);
50
+ expect(fixture.helpMessageResponse).toBe('test-helpMessageResponse');
51
+ expect(fixture.ageGatedContent).toBe(true);
52
+ expect(fixture.cvToken).toBe('test-cvToken');
53
+ });
54
+ });
@@ -0,0 +1,52 @@
1
+ import { VerificationUpdateRequest } from '../../../models/verification-update-request';
2
+ import { Address } from '../../../models/address';
3
+ import { Contact } from '../../../models/contact';
4
+ import { OptInWorkflow } from '../../../models/opt-in-workflow';
5
+ import { BusinessRegistrationTypeEnum } from '../../../models/business-registration-type-enum';
6
+ import { BusinessEntityTypeEnum } from '../../../models/business-entity-type-enum';
7
+
8
+ describe('VerificationUpdateRequest', () => {
9
+ test('should accept the expected shape', () => {
10
+ const fixture: VerificationUpdateRequest = {
11
+ businessAddress: {} as unknown as Address,
12
+ businessContact: {} as unknown as Contact,
13
+ messageVolume: 1.5,
14
+ useCase: 'test-useCase',
15
+ useCaseSummary: 'test-useCaseSummary',
16
+ productionMessageContent: 'test-productionMessageContent',
17
+ optInWorkflow: {} as unknown as OptInWorkflow,
18
+ additionalInformation: 'test-additionalInformation',
19
+ isvReseller: 'test-isvReseller',
20
+ privacyPolicyUrl: 'test-privacyPolicyUrl',
21
+ termsAndConditionsUrl: 'test-termsAndConditionsUrl',
22
+ businessDba: 'test-businessDba',
23
+ businessRegistrationNumber: 'test-businessRegistrationNumber',
24
+ businessRegistrationType: BusinessRegistrationTypeEnum.Ein,
25
+ businessEntityType: BusinessEntityTypeEnum.SoleProprietor,
26
+ businessRegistrationIssuingCountry: 'test-businessRegistrationIssuingCountry',
27
+ helpMessageResponse: 'test-helpMessageResponse',
28
+ ageGatedContent: true,
29
+ cvToken: 'test-cvToken',
30
+ };
31
+
32
+ expect(fixture.businessAddress).toBeDefined();
33
+ expect(fixture.businessContact).toBeDefined();
34
+ expect(fixture.messageVolume).toBe(1.5);
35
+ expect(fixture.useCase).toBe('test-useCase');
36
+ expect(fixture.useCaseSummary).toBe('test-useCaseSummary');
37
+ expect(fixture.productionMessageContent).toBe('test-productionMessageContent');
38
+ expect(fixture.optInWorkflow).toBeDefined();
39
+ expect(fixture.additionalInformation).toBe('test-additionalInformation');
40
+ expect(fixture.isvReseller).toBe('test-isvReseller');
41
+ expect(fixture.privacyPolicyUrl).toBe('test-privacyPolicyUrl');
42
+ expect(fixture.termsAndConditionsUrl).toBe('test-termsAndConditionsUrl');
43
+ expect(fixture.businessDba).toBe('test-businessDba');
44
+ expect(fixture.businessRegistrationNumber).toBe('test-businessRegistrationNumber');
45
+ expect(fixture.businessRegistrationType).toBe(BusinessRegistrationTypeEnum.Ein);
46
+ expect(fixture.businessEntityType).toBe(BusinessEntityTypeEnum.SoleProprietor);
47
+ expect(fixture.businessRegistrationIssuingCountry).toBe('test-businessRegistrationIssuingCountry');
48
+ expect(fixture.helpMessageResponse).toBe('test-helpMessageResponse');
49
+ expect(fixture.ageGatedContent).toBe(true);
50
+ expect(fixture.cvToken).toBe('test-cvToken');
51
+ });
52
+ });
@@ -0,0 +1,18 @@
1
+ import { VerificationWebhook } from '../../../models/verification-webhook';
2
+ import { TfvCallbackStatusEnum } from '../../../models/tfv-callback-status-enum';
3
+
4
+ describe('VerificationWebhook', () => {
5
+ test('should accept the expected shape', () => {
6
+ const fixture: VerificationWebhook = {
7
+ accountId: 'test-accountId',
8
+ phoneNumber: 'test-phoneNumber',
9
+ status: TfvCallbackStatusEnum.Verified,
10
+ internalTicketNumber: 'test-internalTicketNumber',
11
+ };
12
+
13
+ expect(fixture.accountId).toBe('test-accountId');
14
+ expect(fixture.phoneNumber).toBe('test-phoneNumber');
15
+ expect(fixture.status).toBe(TfvCallbackStatusEnum.Verified);
16
+ expect(fixture.internalTicketNumber).toBe('test-internalTicketNumber');
17
+ });
18
+ });
@@ -0,0 +1,17 @@
1
+ import { VerifyCodeRequest } from '../../../models/verify-code-request';
2
+
3
+ describe('VerifyCodeRequest', () => {
4
+ test('should accept the expected shape', () => {
5
+ const fixture: VerifyCodeRequest = {
6
+ to: 'test-to',
7
+ scope: 'test-scope',
8
+ expirationTimeInMinutes: 1.5,
9
+ code: 'test-code',
10
+ };
11
+
12
+ expect(fixture.to).toBe('test-to');
13
+ expect(fixture.scope).toBe('test-scope');
14
+ expect(fixture.expirationTimeInMinutes).toBe(1.5);
15
+ expect(fixture.code).toBe('test-code');
16
+ });
17
+ });
@@ -0,0 +1,11 @@
1
+ import { VerifyCodeResponse } from '../../../models/verify-code-response';
2
+
3
+ describe('VerifyCodeResponse', () => {
4
+ test('should accept the expected shape', () => {
5
+ const fixture: VerifyCodeResponse = {
6
+ valid: true,
7
+ };
8
+
9
+ expect(fixture.valid).toBe(true);
10
+ });
11
+ });
@@ -0,0 +1,15 @@
1
+ import { VoiceApiError } from '../../../models/voice-api-error';
2
+
3
+ describe('VoiceApiError', () => {
4
+ test('should accept the expected shape', () => {
5
+ const fixture: VoiceApiError = {
6
+ type: 'test-type',
7
+ description: 'test-description',
8
+ id: 'test-id',
9
+ };
10
+
11
+ expect(fixture.type).toBe('test-type');
12
+ expect(fixture.description).toBe('test-description');
13
+ expect(fixture.id).toBe('test-id');
14
+ });
15
+ });
@@ -0,0 +1,11 @@
1
+ import { VoiceCodeResponse } from '../../../models/voice-code-response';
2
+
3
+ describe('VoiceCodeResponse', () => {
4
+ test('should accept the expected shape', () => {
5
+ const fixture: VoiceCodeResponse = {
6
+ callId: 'test-callId',
7
+ };
8
+
9
+ expect(fixture.callId).toBe('test-callId');
10
+ });
11
+ });
@@ -0,0 +1,13 @@
1
+ import { WebhookSubscriptionBasicAuthentication } from '../../../models/webhook-subscription-basic-authentication';
2
+
3
+ describe('WebhookSubscriptionBasicAuthentication', () => {
4
+ test('should accept the expected shape', () => {
5
+ const fixture: WebhookSubscriptionBasicAuthentication = {
6
+ username: 'test-username',
7
+ password: 'test-password',
8
+ };
9
+
10
+ expect(fixture.username).toBe('test-username');
11
+ expect(fixture.password).toBe('test-password');
12
+ });
13
+ });
@@ -0,0 +1,15 @@
1
+ import { WebhookSubscriptionError } from '../../../models/webhook-subscription-error';
2
+
3
+ describe('WebhookSubscriptionError', () => {
4
+ test('should accept the expected shape', () => {
5
+ const fixture: WebhookSubscriptionError = {
6
+ code: 1.5,
7
+ description: 'test-description',
8
+ telephoneNumbers: [],
9
+ };
10
+
11
+ expect(fixture.code).toBe(1.5);
12
+ expect(fixture.description).toBe('test-description');
13
+ expect(fixture.telephoneNumbers).toEqual([]);
14
+ });
15
+ });
@@ -0,0 +1,16 @@
1
+ import { WebhookSubscriptionRequestSchema } from '../../../models/webhook-subscription-request-schema';
2
+ import { TfvBasicAuthentication } from '../../../models/tfv-basic-authentication';
3
+
4
+ describe('WebhookSubscriptionRequestSchema', () => {
5
+ test('should accept the expected shape', () => {
6
+ const fixture: WebhookSubscriptionRequestSchema = {
7
+ basicAuthentication: {} as unknown as TfvBasicAuthentication,
8
+ callbackUrl: 'test-callbackUrl',
9
+ sharedSecretKey: 'test-sharedSecretKey',
10
+ };
11
+
12
+ expect(fixture.basicAuthentication).toBeDefined();
13
+ expect(fixture.callbackUrl).toBe('test-callbackUrl');
14
+ expect(fixture.sharedSecretKey).toBe('test-sharedSecretKey');
15
+ });
16
+ });
@@ -4,5 +4,9 @@ describe('WebhookSubscriptionTypeEnum', () => {
4
4
  test('should define the expected values', () => {
5
5
  expect(WebhookSubscriptionTypeEnum.TollfreeVerificationStatus).toBe('TOLLFREE_VERIFICATION_STATUS');
6
6
  expect(WebhookSubscriptionTypeEnum.MessagingPortoutApprovalStatus).toBe('MESSAGING_PORTOUT_APPROVAL_STATUS');
7
+ expect(Object.values(WebhookSubscriptionTypeEnum)).toEqual([
8
+ 'TOLLFREE_VERIFICATION_STATUS',
9
+ 'MESSAGING_PORTOUT_APPROVAL_STATUS'
10
+ ]);
7
11
  });
8
12
  });
@@ -0,0 +1,25 @@
1
+ import { WebhookSubscription } from '../../../models/webhook-subscription';
2
+ import { WebhookSubscriptionTypeEnum } from '../../../models/webhook-subscription-type-enum';
3
+ import { WebhookSubscriptionBasicAuthentication } from '../../../models/webhook-subscription-basic-authentication';
4
+
5
+ describe('WebhookSubscription', () => {
6
+ test('should accept the expected shape', () => {
7
+ const fixture: WebhookSubscription = {
8
+ id: 'test-id',
9
+ accountId: 'test-accountId',
10
+ callbackUrl: 'test-callbackUrl',
11
+ type: WebhookSubscriptionTypeEnum.TollfreeVerificationStatus,
12
+ basicAuthentication: {} as unknown as WebhookSubscriptionBasicAuthentication,
13
+ createdDate: 'test-createdDate',
14
+ modifiedDate: 'test-modifiedDate',
15
+ };
16
+
17
+ expect(fixture.id).toBe('test-id');
18
+ expect(fixture.accountId).toBe('test-accountId');
19
+ expect(fixture.callbackUrl).toBe('test-callbackUrl');
20
+ expect(fixture.type).toBe(WebhookSubscriptionTypeEnum.TollfreeVerificationStatus);
21
+ expect(fixture.basicAuthentication).toBeDefined();
22
+ expect(fixture.createdDate).toBe('test-createdDate');
23
+ expect(fixture.modifiedDate).toBe('test-modifiedDate');
24
+ });
25
+ });
@@ -0,0 +1,16 @@
1
+ import { WebhookSubscriptionsListBody } from '../../../models/webhook-subscriptions-list-body';
2
+ import { LinksObject } from '../../../models/links-object';
3
+
4
+ describe('WebhookSubscriptionsListBody', () => {
5
+ test('should accept the expected shape', () => {
6
+ const fixture: WebhookSubscriptionsListBody = {
7
+ links: {} as unknown as LinksObject,
8
+ errors: [],
9
+ data: [],
10
+ };
11
+
12
+ expect(fixture.links).toBeDefined();
13
+ expect(fixture.errors).toEqual([]);
14
+ expect(fixture.data).toEqual([]);
15
+ });
16
+ });