bandwidth-sdk 7.4.2 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/.github/workflows/deploy.yml +1 -1
  2. package/.github/workflows/test-pr.yml +1 -1
  3. package/.github/workflows/test-smoke.yml +1 -1
  4. package/.openapi-generator/FILES +48 -4
  5. package/README.md +28 -2
  6. package/api/endpoints-api.ts +519 -0
  7. package/api/media-api.ts +4 -4
  8. package/api.ts +1 -0
  9. package/bandwidth.yml +972 -60
  10. package/base.ts +30 -0
  11. package/configuration.ts +1 -1
  12. package/coverage/clover.xml +815 -616
  13. package/coverage/coverage-final.json +95 -88
  14. package/coverage/lcov-report/index.html +38 -38
  15. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +14 -14
  16. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +18 -18
  17. package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +1642 -0
  18. package/coverage/lcov-report/node-sdk/api/index.html +24 -9
  19. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +17 -17
  20. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +11 -11
  21. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +12 -12
  22. package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +10 -10
  23. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +12 -12
  24. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +19 -19
  25. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +10 -10
  26. package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +18 -18
  27. package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +12 -12
  28. package/coverage/lcov-report/node-sdk/api.ts.html +18 -15
  29. package/coverage/lcov-report/node-sdk/base.ts.html +104 -14
  30. package/coverage/lcov-report/node-sdk/common.ts.html +39 -39
  31. package/coverage/lcov-report/node-sdk/configuration.ts.html +26 -26
  32. package/coverage/lcov-report/node-sdk/index.html +7 -7
  33. package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +3 -3
  34. package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +3 -3
  35. package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +4 -4
  36. package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +23 -23
  37. package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +4 -4
  38. package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +8 -8
  39. package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +13 -13
  40. package/coverage/lcov-report/node-sdk/models/bxml/index.html +15 -15
  41. package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +3 -3
  42. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +4 -4
  43. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +4 -4
  44. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Connect.ts.html +184 -0
  45. package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +4 -4
  46. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Endpoint.ts.html +142 -0
  47. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +4 -4
  48. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +7 -7
  49. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +4 -4
  50. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +4 -4
  51. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +4 -4
  52. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +4 -4
  53. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +4 -4
  54. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +4 -4
  55. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +4 -4
  56. package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +4 -4
  57. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +4 -4
  58. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +4 -4
  59. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +4 -4
  60. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +6 -6
  61. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +4 -4
  62. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +4 -4
  63. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +5 -5
  64. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +5 -5
  65. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +4 -4
  66. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +4 -4
  67. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +4 -4
  68. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +4 -4
  69. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +4 -4
  70. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +4 -4
  71. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +5 -5
  72. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +38 -8
  73. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +39 -33
  74. package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -2
  75. package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -2
  76. package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +2 -2
  77. package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +2 -2
  78. package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -2
  79. package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +2 -2
  80. package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +2 -2
  81. package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -2
  82. package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +2 -2
  83. package/coverage/lcov-report/node-sdk/models/device-status-enum.ts.html +163 -0
  84. package/coverage/lcov-report/node-sdk/models/{business-registration-issuing-country-enum.ts.html → endpoint-direction-enum.ts.html} +10 -61
  85. package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +163 -0
  86. package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +163 -0
  87. package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +160 -0
  88. package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -2
  89. package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +2 -2
  90. package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +3 -3
  91. package/coverage/lcov-report/node-sdk/models/index.html +76 -16
  92. package/coverage/lcov-report/node-sdk/models/index.ts.html +246 -183
  93. package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +2 -2
  94. package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +2 -2
  95. package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
  96. package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -2
  97. package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -2
  98. package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -2
  99. package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -2
  100. package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +2 -2
  101. package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
  102. package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +2 -2
  103. package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +2 -2
  104. package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +2 -2
  105. package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +3 -3
  106. package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +3 -3
  107. package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -2
  108. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -2
  109. package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +2 -2
  110. package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +2 -2
  111. package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +2 -2
  112. package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +2 -2
  113. package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +2 -2
  114. package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +2 -2
  115. package/coverage/lcov.info +1226 -764
  116. package/custom_templates/modelAllOf.mustache +14 -0
  117. package/dist/api/endpoints-api.d.ts +236 -0
  118. package/dist/api/endpoints-api.js +666 -0
  119. package/dist/api/media-api.d.ts +4 -4
  120. package/dist/api/media-api.js +4 -4
  121. package/dist/api.d.ts +1 -0
  122. package/dist/api.js +1 -0
  123. package/dist/base.js +30 -0
  124. package/dist/configuration.js +1 -1
  125. package/dist/models/brtc-error-response.d.ts +18 -0
  126. package/dist/models/brtc-error-source.d.ts +29 -0
  127. package/dist/models/brtc-error-source.js +15 -0
  128. package/dist/models/brtc-error.d.ts +31 -0
  129. package/dist/models/brtc-error.js +15 -0
  130. package/dist/models/brtc-link.d.ts +25 -0
  131. package/dist/models/brtc-link.js +15 -0
  132. package/dist/models/business-entity-type-enum.d.ts +1 -1
  133. package/dist/models/business-entity-type-enum.js +1 -1
  134. package/dist/models/business-registration-type-enum.d.ts +1 -1
  135. package/dist/models/business-registration-type-enum.js +1 -1
  136. package/dist/models/bxml/verbs/Connect.d.ts +25 -0
  137. package/dist/models/bxml/verbs/Connect.js +45 -0
  138. package/dist/models/bxml/verbs/Endpoint.d.ts +15 -0
  139. package/dist/models/bxml/verbs/Endpoint.js +37 -0
  140. package/dist/models/bxml/verbs/index.d.ts +2 -0
  141. package/dist/models/bxml/verbs/index.js +2 -0
  142. package/dist/models/create-call.d.ts +2 -2
  143. package/dist/models/create-endpoint-request-base.d.ts +29 -0
  144. package/dist/models/create-endpoint-request-base.js +15 -0
  145. package/dist/models/create-endpoint-response-data.d.ts +42 -0
  146. package/dist/models/create-endpoint-response-data.js +15 -0
  147. package/dist/models/create-endpoint-response.d.ts +19 -0
  148. package/dist/models/create-endpoint-response.js +15 -0
  149. package/dist/models/create-web-rtc-connection-request.d.ts +33 -0
  150. package/dist/models/create-web-rtc-connection-request.js +15 -0
  151. package/dist/models/device-status-enum.d.ts +16 -0
  152. package/dist/models/device-status-enum.js +20 -0
  153. package/dist/models/device.d.ts +27 -0
  154. package/dist/models/device.js +15 -0
  155. package/dist/models/endpoint-direction-enum.d.ts +17 -0
  156. package/dist/models/endpoint-direction-enum.js +21 -0
  157. package/dist/models/endpoint-event-type-enum.d.ts +16 -0
  158. package/dist/models/endpoint-event-type-enum.js +20 -0
  159. package/dist/models/endpoint-event.d.ts +45 -0
  160. package/dist/models/endpoint-event.js +15 -0
  161. package/dist/models/endpoint-response.d.ts +19 -0
  162. package/dist/models/endpoint-response.js +15 -0
  163. package/dist/models/endpoint-status-enum.d.ts +16 -0
  164. package/dist/models/endpoint-status-enum.js +20 -0
  165. package/dist/models/endpoint-type-enum.d.ts +15 -0
  166. package/dist/models/endpoint-type-enum.js +19 -0
  167. package/dist/models/endpoint.d.ts +38 -0
  168. package/dist/models/endpoint.js +15 -0
  169. package/dist/models/endpoints.d.ts +33 -0
  170. package/dist/models/endpoints.js +15 -0
  171. package/dist/models/inbound-callback-message.d.ts +48 -2
  172. package/dist/models/inbound-callback-type-enum.d.ts +1 -1
  173. package/dist/models/inbound-callback-type-enum.js +1 -1
  174. package/dist/models/inbound-callback.d.ts +2 -2
  175. package/dist/models/index.d.ts +23 -2
  176. package/dist/models/index.js +23 -2
  177. package/dist/models/list-endpoints-response.d.ts +21 -0
  178. package/dist/models/list-endpoints-response.js +15 -0
  179. package/dist/models/lookup-result.d.ts +1 -1
  180. package/dist/models/machine-detection-configuration.d.ts +1 -1
  181. package/dist/models/message-request.d.ts +1 -1
  182. package/dist/models/mms-message-content-file.d.ts +1 -1
  183. package/dist/models/multi-channel-action-calendar-event.d.ts +28 -2
  184. package/dist/models/multi-channel-channel-list-mmsobject.d.ts +14 -2
  185. package/dist/models/multi-channel-channel-list-mmsresponse-object.d.ts +18 -3
  186. package/dist/models/multi-channel-channel-list-rbmobject.d.ts +14 -2
  187. package/dist/models/multi-channel-channel-list-rbmresponse-object.d.ts +18 -3
  188. package/dist/models/multi-channel-channel-list-smsobject.d.ts +14 -2
  189. package/dist/models/multi-channel-channel-list-smsresponse-object.d.ts +18 -3
  190. package/dist/models/page.d.ts +29 -0
  191. package/dist/models/page.js +15 -0
  192. package/dist/models/rbm-action-dial.d.ts +16 -2
  193. package/dist/models/rbm-action-open-url.d.ts +20 -2
  194. package/dist/models/rbm-action-view-location.d.ts +24 -2
  195. package/dist/models/rbm-card-content-media.d.ts +12 -2
  196. package/dist/models/rbm-open-url-enum.d.ts +1 -1
  197. package/dist/models/rbm-open-url-enum.js +1 -1
  198. package/dist/models/rbm-web-view-enum.d.ts +1 -1
  199. package/dist/models/rbm-web-view-enum.js +1 -1
  200. package/dist/models/sip-connection-metadata.d.ts +27 -0
  201. package/dist/models/sip-connection-metadata.js +15 -0
  202. package/dist/models/sip-credentials.d.ts +21 -0
  203. package/dist/models/sip-credentials.js +15 -0
  204. package/dist/models/status-callback.d.ts +1 -1
  205. package/dist/models/tfv-submission-info.d.ts +5 -3
  206. package/dist/models/update-call.d.ts +1 -1
  207. package/dist/models/verification-request.d.ts +5 -3
  208. package/dist/models/verification-update-request.d.ts +5 -3
  209. package/dist/models/{model-error.d.ts → webhook-subscription-error.d.ts} +1 -1
  210. package/dist/models/webhook-subscription-error.js +15 -0
  211. package/dist/models/webhook-subscriptions-list-body.d.ts +2 -2
  212. package/docs/BrtcError.md +28 -0
  213. package/docs/BrtcErrorResponse.md +24 -0
  214. package/docs/BrtcErrorSource.md +26 -0
  215. package/docs/BrtcLink.md +24 -0
  216. package/docs/BusinessEntityTypeEnum.md +1 -1
  217. package/docs/BusinessRegistrationTypeEnum.md +1 -1
  218. package/docs/Callback.md +2 -2
  219. package/docs/CreateCall.md +2 -2
  220. package/docs/CreateEndpointRequestBase.md +28 -0
  221. package/docs/CreateEndpointResponse.md +24 -0
  222. package/docs/CreateEndpointResponseData.md +34 -0
  223. package/docs/CreateWebRtcConnectionRequest.md +30 -0
  224. package/docs/Device.md +26 -0
  225. package/docs/DeviceStatusEnum.md +10 -0
  226. package/docs/Endpoint.md +32 -0
  227. package/docs/EndpointDirectionEnum.md +12 -0
  228. package/docs/EndpointEvent.md +37 -0
  229. package/docs/EndpointEventTypeEnum.md +10 -0
  230. package/docs/EndpointResponse.md +24 -0
  231. package/docs/EndpointStatusEnum.md +10 -0
  232. package/docs/EndpointTypeEnum.md +8 -0
  233. package/docs/Endpoints.md +30 -0
  234. package/docs/EndpointsApi.md +334 -0
  235. package/docs/InboundCallback.md +2 -2
  236. package/docs/InboundCallbackTypeEnum.md +1 -1
  237. package/docs/ListEndpointsResponse.md +26 -0
  238. package/docs/LookupResult.md +1 -1
  239. package/docs/MachineDetectionConfiguration.md +1 -1
  240. package/docs/MediaApi.md +1 -1
  241. package/docs/MessageRequest.md +1 -1
  242. package/docs/MmsMessageContentFile.md +1 -1
  243. package/docs/Page.md +26 -0
  244. package/docs/RbmOpenUrlEnum.md +1 -1
  245. package/docs/RbmWebViewEnum.md +1 -1
  246. package/docs/SipConnectionMetadata.md +26 -0
  247. package/docs/SipCredentials.md +22 -0
  248. package/docs/StatusCallback.md +1 -1
  249. package/docs/TfvSubmissionInfo.md +2 -2
  250. package/docs/UpdateCall.md +1 -1
  251. package/docs/VerificationRequest.md +2 -2
  252. package/docs/VerificationUpdateRequest.md +2 -2
  253. package/docs/{Error.md → WebhookSubscriptionError.md} +3 -3
  254. package/docs/WebhookSubscriptionsListBody.md +1 -1
  255. package/models/brtc-error-response.ts +28 -0
  256. package/models/brtc-error-source.ts +35 -0
  257. package/models/brtc-error.ts +39 -0
  258. package/models/brtc-link.ts +31 -0
  259. package/models/business-entity-type-enum.ts +1 -1
  260. package/models/business-registration-type-enum.ts +1 -1
  261. package/models/bxml/verbs/Connect.ts +33 -0
  262. package/models/bxml/verbs/Endpoint.ts +19 -0
  263. package/models/bxml/verbs/index.ts +2 -0
  264. package/models/create-call.ts +2 -2
  265. package/models/create-endpoint-request-base.ts +41 -0
  266. package/models/create-endpoint-response-data.ts +58 -0
  267. package/models/create-endpoint-response.ts +31 -0
  268. package/models/create-web-rtc-connection-request.ts +47 -0
  269. package/models/device-status-enum.ts +26 -0
  270. package/models/device.ts +37 -0
  271. package/models/endpoint-direction-enum.ts +27 -0
  272. package/models/endpoint-event-type-enum.ts +26 -0
  273. package/models/endpoint-event.ts +63 -0
  274. package/models/endpoint-response.ts +31 -0
  275. package/models/endpoint-status-enum.ts +26 -0
  276. package/models/endpoint-type-enum.ts +25 -0
  277. package/models/endpoint.ts +54 -0
  278. package/models/endpoints.ts +45 -0
  279. package/models/inbound-callback-message.ts +42 -1
  280. package/models/inbound-callback-type-enum.ts +1 -1
  281. package/models/inbound-callback.ts +2 -2
  282. package/models/index.ts +23 -2
  283. package/models/list-endpoints-response.ts +35 -0
  284. package/models/lookup-result.ts +1 -1
  285. package/models/machine-detection-configuration.ts +1 -1
  286. package/models/message-request.ts +1 -1
  287. package/models/mms-message-content-file.ts +1 -1
  288. package/models/multi-channel-action-calendar-event.ts +27 -1
  289. package/models/multi-channel-channel-list-mmsobject.ts +12 -1
  290. package/models/multi-channel-channel-list-mmsresponse-object.ts +16 -1
  291. package/models/multi-channel-channel-list-rbmobject.ts +12 -1
  292. package/models/multi-channel-channel-list-rbmresponse-object.ts +16 -1
  293. package/models/multi-channel-channel-list-smsobject.ts +12 -1
  294. package/models/multi-channel-channel-list-smsresponse-object.ts +16 -1
  295. package/models/page.ts +35 -0
  296. package/models/rbm-action-dial.ts +15 -1
  297. package/models/rbm-action-open-url.ts +17 -1
  298. package/models/rbm-action-view-location.ts +23 -1
  299. package/models/rbm-card-content-media.ts +11 -1
  300. package/models/rbm-open-url-enum.ts +1 -1
  301. package/models/rbm-web-view-enum.ts +1 -1
  302. package/models/sip-connection-metadata.ts +35 -0
  303. package/models/sip-credentials.ts +27 -0
  304. package/models/status-callback.ts +1 -1
  305. package/models/tfv-submission-info.ts +5 -5
  306. package/models/update-call.ts +1 -1
  307. package/models/verification-request.ts +5 -5
  308. package/models/verification-update-request.ts +5 -5
  309. package/models/{model-error.ts → webhook-subscription-error.ts} +1 -1
  310. package/models/webhook-subscriptions-list-body.ts +3 -3
  311. package/package.json +1 -1
  312. package/tests/smoke/endpoints-api.test.ts +141 -0
  313. package/tests/smoke/phone-number-lookup-api.test.ts +2 -10
  314. package/tests/unit/api/endpoints-api.test.ts +106 -0
  315. package/tests/unit/api/toll-free-verification-api.test.ts +1 -1
  316. package/tests/unit/models/brtc-error-response.test.ts +50 -0
  317. package/tests/unit/models/brtc-error-source.test.ts +17 -0
  318. package/tests/unit/models/brtc-error.test.ts +30 -0
  319. package/tests/unit/models/brtc-link.test.ts +15 -0
  320. package/tests/unit/models/bxml/verbs/Connect.test.ts +47 -0
  321. package/tests/unit/models/bxml/verbs/Endpoint.test.ts +12 -0
  322. package/tests/unit/models/create-endpoint-request-base.test.ts +21 -0
  323. package/tests/unit/models/create-endpoint-response-data.test.ts +44 -0
  324. package/tests/unit/models/create-endpoint-response.test.ts +86 -0
  325. package/tests/unit/models/create-web-rtc-connection-request.test.ts +21 -0
  326. package/tests/unit/models/device-status-enum.test.ts +12 -0
  327. package/tests/unit/models/device.test.ts +19 -0
  328. package/tests/unit/models/endpoint-direction-enum.test.ts +14 -0
  329. package/tests/unit/models/endpoint-event-type-enum.test.ts +12 -0
  330. package/tests/unit/models/endpoint-event.test.ts +44 -0
  331. package/tests/unit/models/endpoint-response.test.ts +84 -0
  332. package/tests/unit/models/endpoint-status-enum.test.ts +12 -0
  333. package/tests/unit/models/endpoint-type-enum.test.ts +10 -0
  334. package/tests/unit/models/endpoint.test.ts +50 -0
  335. package/tests/unit/models/endpoints.test.ts +25 -0
  336. package/tests/unit/models/list-endpoints-response.test.ts +94 -0
  337. package/tests/unit/models/page.test.ts +17 -0
  338. package/tests/unit/models/sip-connection-metadata.test.ts +25 -0
  339. package/tests/unit/models/sip-credentials.test.ts +13 -0
  340. package/dist/models/business-registration-issuing-country-enum.d.ts +0 -34
  341. package/dist/models/business-registration-issuing-country-enum.js +0 -38
  342. package/docs/BusinessRegistrationIssuingCountryEnum.md +0 -41
  343. package/models/business-registration-issuing-country-enum.ts +0 -44
  344. package/tests/unit/models/business-registration-issuing-country-enum.test.ts +0 -23
  345. /package/dist/models/{model-error.js → brtc-error-response.js} +0 -0
@@ -6,8 +6,11 @@ export * from './async-lookup-request';
6
6
  export * from './blocked-webhook';
7
7
  export * from './bridge-complete-callback';
8
8
  export * from './bridge-target-complete-callback';
9
+ export * from './brtc-error';
10
+ export * from './brtc-error-response';
11
+ export * from './brtc-error-source';
12
+ export * from './brtc-link';
9
13
  export * from './business-entity-type-enum';
10
- export * from './business-registration-issuing-country-enum';
11
14
  export * from './business-registration-type-enum';
12
15
  export * from './call-direction-enum';
13
16
  export * from './call-recording-metadata';
@@ -38,14 +41,28 @@ export * from './create-async-bulk-lookup-response';
38
41
  export * from './create-async-bulk-lookup-response-data';
39
42
  export * from './create-call';
40
43
  export * from './create-call-response';
44
+ export * from './create-endpoint-request-base';
45
+ export * from './create-endpoint-response';
46
+ export * from './create-endpoint-response-data';
41
47
  export * from './create-message-request-error';
42
48
  export * from './create-multi-channel-message-response';
43
49
  export * from './create-sync-lookup-response';
44
50
  export * from './create-sync-lookup-response-data';
51
+ export * from './create-web-rtc-connection-request';
45
52
  export * from './deactivation-event-enum';
53
+ export * from './device';
54
+ export * from './device-status-enum';
46
55
  export * from './disconnect-callback';
47
56
  export * from './diversion';
48
57
  export * from './dtmf-callback';
58
+ export * from './endpoint';
59
+ export * from './endpoint-direction-enum';
60
+ export * from './endpoint-event';
61
+ export * from './endpoint-event-type-enum';
62
+ export * from './endpoint-response';
63
+ export * from './endpoint-status-enum';
64
+ export * from './endpoint-type-enum';
65
+ export * from './endpoints';
49
66
  export * from './error-object';
50
67
  export * from './error-source';
51
68
  export * from './failure-webhook';
@@ -64,6 +81,7 @@ export * from './line-type-enum';
64
81
  export * from './link';
65
82
  export * from './link-schema';
66
83
  export * from './links-object';
84
+ export * from './list-endpoints-response';
67
85
  export * from './list-message-direction-enum';
68
86
  export * from './list-message-item';
69
87
  export * from './lookup-error-response';
@@ -88,7 +106,6 @@ export * from './mfa-request-error';
88
106
  export * from './mfa-unauthorized-request-error';
89
107
  export * from './mms-message-content';
90
108
  export * from './mms-message-content-file';
91
- export * from './model-error';
92
109
  export * from './multi-channel-action';
93
110
  export * from './multi-channel-action-calendar-event';
94
111
  export * from './multi-channel-channel-list-mmsobject';
@@ -108,6 +125,7 @@ export * from './multi-channel-message-content';
108
125
  export * from './multi-channel-message-request';
109
126
  export * from './multi-channel-message-response-data';
110
127
  export * from './opt-in-workflow';
128
+ export * from './page';
111
129
  export * from './page-info';
112
130
  export * from './priority-enum';
113
131
  export * from './product-type-enum';
@@ -136,6 +154,8 @@ export * from './recording-transcription-metadata';
136
154
  export * from './recording-transcriptions';
137
155
  export * from './redirect-callback';
138
156
  export * from './redirect-method-enum';
157
+ export * from './sip-connection-metadata';
158
+ export * from './sip-credentials';
139
159
  export * from './sms-message-content';
140
160
  export * from './standalone-card-orientation-enum';
141
161
  export * from './status-callback';
@@ -172,6 +192,7 @@ export * from './voice-api-error';
172
192
  export * from './voice-code-response';
173
193
  export * from './webhook-subscription';
174
194
  export * from './webhook-subscription-basic-authentication';
195
+ export * from './webhook-subscription-error';
175
196
  export * from './webhook-subscription-request-schema';
176
197
  export * from './webhook-subscription-type-enum';
177
198
  export * from './webhook-subscriptions-list-body';
@@ -22,8 +22,11 @@ __exportStar(require("./async-lookup-request"), exports);
22
22
  __exportStar(require("./blocked-webhook"), exports);
23
23
  __exportStar(require("./bridge-complete-callback"), exports);
24
24
  __exportStar(require("./bridge-target-complete-callback"), exports);
25
+ __exportStar(require("./brtc-error"), exports);
26
+ __exportStar(require("./brtc-error-response"), exports);
27
+ __exportStar(require("./brtc-error-source"), exports);
28
+ __exportStar(require("./brtc-link"), exports);
25
29
  __exportStar(require("./business-entity-type-enum"), exports);
26
- __exportStar(require("./business-registration-issuing-country-enum"), exports);
27
30
  __exportStar(require("./business-registration-type-enum"), exports);
28
31
  __exportStar(require("./call-direction-enum"), exports);
29
32
  __exportStar(require("./call-recording-metadata"), exports);
@@ -54,14 +57,28 @@ __exportStar(require("./create-async-bulk-lookup-response"), exports);
54
57
  __exportStar(require("./create-async-bulk-lookup-response-data"), exports);
55
58
  __exportStar(require("./create-call"), exports);
56
59
  __exportStar(require("./create-call-response"), exports);
60
+ __exportStar(require("./create-endpoint-request-base"), exports);
61
+ __exportStar(require("./create-endpoint-response"), exports);
62
+ __exportStar(require("./create-endpoint-response-data"), exports);
57
63
  __exportStar(require("./create-message-request-error"), exports);
58
64
  __exportStar(require("./create-multi-channel-message-response"), exports);
59
65
  __exportStar(require("./create-sync-lookup-response"), exports);
60
66
  __exportStar(require("./create-sync-lookup-response-data"), exports);
67
+ __exportStar(require("./create-web-rtc-connection-request"), exports);
61
68
  __exportStar(require("./deactivation-event-enum"), exports);
69
+ __exportStar(require("./device"), exports);
70
+ __exportStar(require("./device-status-enum"), exports);
62
71
  __exportStar(require("./disconnect-callback"), exports);
63
72
  __exportStar(require("./diversion"), exports);
64
73
  __exportStar(require("./dtmf-callback"), exports);
74
+ __exportStar(require("./endpoint"), exports);
75
+ __exportStar(require("./endpoint-direction-enum"), exports);
76
+ __exportStar(require("./endpoint-event"), exports);
77
+ __exportStar(require("./endpoint-event-type-enum"), exports);
78
+ __exportStar(require("./endpoint-response"), exports);
79
+ __exportStar(require("./endpoint-status-enum"), exports);
80
+ __exportStar(require("./endpoint-type-enum"), exports);
81
+ __exportStar(require("./endpoints"), exports);
65
82
  __exportStar(require("./error-object"), exports);
66
83
  __exportStar(require("./error-source"), exports);
67
84
  __exportStar(require("./failure-webhook"), exports);
@@ -80,6 +97,7 @@ __exportStar(require("./line-type-enum"), exports);
80
97
  __exportStar(require("./link"), exports);
81
98
  __exportStar(require("./link-schema"), exports);
82
99
  __exportStar(require("./links-object"), exports);
100
+ __exportStar(require("./list-endpoints-response"), exports);
83
101
  __exportStar(require("./list-message-direction-enum"), exports);
84
102
  __exportStar(require("./list-message-item"), exports);
85
103
  __exportStar(require("./lookup-error-response"), exports);
@@ -104,7 +122,6 @@ __exportStar(require("./mfa-request-error"), exports);
104
122
  __exportStar(require("./mfa-unauthorized-request-error"), exports);
105
123
  __exportStar(require("./mms-message-content"), exports);
106
124
  __exportStar(require("./mms-message-content-file"), exports);
107
- __exportStar(require("./model-error"), exports);
108
125
  __exportStar(require("./multi-channel-action"), exports);
109
126
  __exportStar(require("./multi-channel-action-calendar-event"), exports);
110
127
  __exportStar(require("./multi-channel-channel-list-mmsobject"), exports);
@@ -124,6 +141,7 @@ __exportStar(require("./multi-channel-message-content"), exports);
124
141
  __exportStar(require("./multi-channel-message-request"), exports);
125
142
  __exportStar(require("./multi-channel-message-response-data"), exports);
126
143
  __exportStar(require("./opt-in-workflow"), exports);
144
+ __exportStar(require("./page"), exports);
127
145
  __exportStar(require("./page-info"), exports);
128
146
  __exportStar(require("./priority-enum"), exports);
129
147
  __exportStar(require("./product-type-enum"), exports);
@@ -152,6 +170,8 @@ __exportStar(require("./recording-transcription-metadata"), exports);
152
170
  __exportStar(require("./recording-transcriptions"), exports);
153
171
  __exportStar(require("./redirect-callback"), exports);
154
172
  __exportStar(require("./redirect-method-enum"), exports);
173
+ __exportStar(require("./sip-connection-metadata"), exports);
174
+ __exportStar(require("./sip-credentials"), exports);
155
175
  __exportStar(require("./sms-message-content"), exports);
156
176
  __exportStar(require("./standalone-card-orientation-enum"), exports);
157
177
  __exportStar(require("./status-callback"), exports);
@@ -188,6 +208,7 @@ __exportStar(require("./voice-api-error"), exports);
188
208
  __exportStar(require("./voice-code-response"), exports);
189
209
  __exportStar(require("./webhook-subscription"), exports);
190
210
  __exportStar(require("./webhook-subscription-basic-authentication"), exports);
211
+ __exportStar(require("./webhook-subscription-error"), exports);
191
212
  __exportStar(require("./webhook-subscription-request-schema"), exports);
192
213
  __exportStar(require("./webhook-subscription-type-enum"), exports);
193
214
  __exportStar(require("./webhook-subscriptions-list-body"), exports);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Bandwidth
3
+ * Bandwidth\'s Communication APIs
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: letstalk@bandwidth.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { BrtcError } from './brtc-error';
13
+ import type { BrtcLink } from './brtc-link';
14
+ import type { Endpoints } from './endpoints';
15
+ import type { Page } from './page';
16
+ export interface ListEndpointsResponse {
17
+ 'links': Array<BrtcLink>;
18
+ 'page'?: Page;
19
+ 'data': Array<Endpoints>;
20
+ 'errors': Array<BrtcError>;
21
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Bandwidth
6
+ * Bandwidth\'s Communication APIs
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: letstalk@bandwidth.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -44,7 +44,7 @@ export interface LookupResult {
44
44
  'deactivationEvent'?: DeactivationEventEnum;
45
45
  'latestMessageDeliveryStatus'?: LatestMessageDeliveryStatusEnum;
46
46
  /**
47
- * [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes.
47
+ * [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes.
48
48
  */
49
49
  'initialMessageDeliveryStatusDate'?: string;
50
50
  /**
@@ -33,7 +33,7 @@ export interface MachineDetectionConfiguration {
33
33
  */
34
34
  'speechEndThreshold'?: number | null;
35
35
  /**
36
- * When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value.
36
+ * When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value.
37
37
  */
38
38
  'machineSpeechEndThreshold'?: number | null;
39
39
  /**
@@ -20,7 +20,7 @@ export interface MessageRequest {
20
20
  */
21
21
  'to': Set<string>;
22
22
  /**
23
- * Either an alphanumeric sender ID or the sender\'s Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter.
23
+ * Either an alphanumeric sender ID or the sender\'s Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter.
24
24
  */
25
25
  'from': string;
26
26
  /**
@@ -11,7 +11,7 @@
11
11
  */
12
12
  export interface MmsMessageContentFile {
13
13
  /**
14
- * The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see [here](https://support.bandwidth.com/hc/en-us/articles/360014235473-What-are-the-MMS-file-size-limits) for more details.
14
+ * The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see more at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits) for more details.
15
15
  */
16
16
  'fileUrl': string;
17
17
  }
@@ -9,8 +9,34 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { RbmActionBase } from './rbm-action-base';
12
+ import type { RbmActionTypeEnum } from './rbm-action-type-enum';
13
13
  /**
14
14
  * @type MultiChannelActionCalendarEvent
15
15
  */
16
- export type MultiChannelActionCalendarEvent = RbmActionBase;
16
+ export interface MultiChannelActionCalendarEvent {
17
+ 'type': RbmActionTypeEnum;
18
+ /**
19
+ * Displayed text for user to click
20
+ */
21
+ 'text': string;
22
+ /**
23
+ * Base64 payload the customer receives when the reply is clicked.
24
+ */
25
+ 'postbackData': string;
26
+ /**
27
+ * The title of the event.
28
+ */
29
+ 'title': string;
30
+ /**
31
+ * The start time of the event.
32
+ */
33
+ 'startTime': string;
34
+ /**
35
+ * The end time of the event.
36
+ */
37
+ 'endTime': string;
38
+ /**
39
+ * The description of the event.
40
+ */
41
+ 'description'?: string;
42
+ }
@@ -9,8 +9,20 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MultiChannelChannelListObjectBase } from './multi-channel-channel-list-object-base';
12
+ import type { MmsMessageContent } from './mms-message-content';
13
+ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
13
14
  /**
14
15
  * @type MultiChannelChannelListMMSObject
15
16
  */
16
- export type MultiChannelChannelListMMSObject = MultiChannelChannelListObjectBase;
17
+ export interface MultiChannelChannelListMMSObject {
18
+ /**
19
+ * The sender ID of the message. This could be an alphanumeric sender ID.
20
+ */
21
+ 'from': string;
22
+ /**
23
+ * The ID of the Application your from number or senderId is associated with in the Bandwidth App.
24
+ */
25
+ 'applicationId': string;
26
+ 'channel': MultiChannelMessageChannelEnum;
27
+ 'content': MmsMessageContent;
28
+ }
@@ -9,9 +9,24 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MultiChannelChannelListMMSObject } from './multi-channel-channel-list-mmsobject';
13
- import type { MultiChannelChannelListOwnerObject } from './multi-channel-channel-list-owner-object';
12
+ import type { MmsMessageContent } from './mms-message-content';
13
+ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
14
14
  /**
15
15
  * @type MultiChannelChannelListMMSResponseObject
16
16
  */
17
- export type MultiChannelChannelListMMSResponseObject = MultiChannelChannelListMMSObject & MultiChannelChannelListOwnerObject;
17
+ export interface MultiChannelChannelListMMSResponseObject {
18
+ /**
19
+ * The sender ID of the message. This could be an alphanumeric sender ID.
20
+ */
21
+ 'from': string;
22
+ /**
23
+ * The ID of the Application your from number or senderId is associated with in the Bandwidth App.
24
+ */
25
+ 'applicationId': string;
26
+ 'channel': MultiChannelMessageChannelEnum;
27
+ 'content': MmsMessageContent;
28
+ /**
29
+ * The Bandwidth senderId associated with the message. Identical to \'from\'.
30
+ */
31
+ 'owner': string;
32
+ }
@@ -9,8 +9,20 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MultiChannelChannelListObjectBase } from './multi-channel-channel-list-object-base';
12
+ import type { MultiChannelChannelListRBMObjectAllOfContent } from './multi-channel-channel-list-rbmobject-all-of-content';
13
+ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
13
14
  /**
14
15
  * @type MultiChannelChannelListRBMObject
15
16
  */
16
- export type MultiChannelChannelListRBMObject = MultiChannelChannelListObjectBase;
17
+ export interface MultiChannelChannelListRBMObject {
18
+ /**
19
+ * The sender ID of the message. This could be an alphanumeric sender ID.
20
+ */
21
+ 'from': string;
22
+ /**
23
+ * The ID of the Application your from number or senderId is associated with in the Bandwidth App.
24
+ */
25
+ 'applicationId': string;
26
+ 'channel': MultiChannelMessageChannelEnum;
27
+ 'content': MultiChannelChannelListRBMObjectAllOfContent;
28
+ }
@@ -9,9 +9,24 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MultiChannelChannelListOwnerObject } from './multi-channel-channel-list-owner-object';
13
- import type { MultiChannelChannelListRBMObject } from './multi-channel-channel-list-rbmobject';
12
+ import type { MultiChannelChannelListRBMObjectAllOfContent } from './multi-channel-channel-list-rbmobject-all-of-content';
13
+ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
14
14
  /**
15
15
  * @type MultiChannelChannelListRBMResponseObject
16
16
  */
17
- export type MultiChannelChannelListRBMResponseObject = MultiChannelChannelListOwnerObject & MultiChannelChannelListRBMObject;
17
+ export interface MultiChannelChannelListRBMResponseObject {
18
+ /**
19
+ * The sender ID of the message. This could be an alphanumeric sender ID.
20
+ */
21
+ 'from': string;
22
+ /**
23
+ * The ID of the Application your from number or senderId is associated with in the Bandwidth App.
24
+ */
25
+ 'applicationId': string;
26
+ 'channel': MultiChannelMessageChannelEnum;
27
+ 'content': MultiChannelChannelListRBMObjectAllOfContent;
28
+ /**
29
+ * The Bandwidth senderId associated with the message. Identical to \'from\'.
30
+ */
31
+ 'owner': string;
32
+ }
@@ -9,8 +9,20 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MultiChannelChannelListObjectBase } from './multi-channel-channel-list-object-base';
12
+ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
13
+ import type { SmsMessageContent } from './sms-message-content';
13
14
  /**
14
15
  * @type MultiChannelChannelListSMSObject
15
16
  */
16
- export type MultiChannelChannelListSMSObject = MultiChannelChannelListObjectBase;
17
+ export interface MultiChannelChannelListSMSObject {
18
+ /**
19
+ * The sender ID of the message. This could be an alphanumeric sender ID.
20
+ */
21
+ 'from': string;
22
+ /**
23
+ * The ID of the Application your from number or senderId is associated with in the Bandwidth App.
24
+ */
25
+ 'applicationId': string;
26
+ 'channel': MultiChannelMessageChannelEnum;
27
+ 'content': SmsMessageContent;
28
+ }
@@ -9,9 +9,24 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MultiChannelChannelListOwnerObject } from './multi-channel-channel-list-owner-object';
13
- import type { MultiChannelChannelListSMSObject } from './multi-channel-channel-list-smsobject';
12
+ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
13
+ import type { SmsMessageContent } from './sms-message-content';
14
14
  /**
15
15
  * @type MultiChannelChannelListSMSResponseObject
16
16
  */
17
- export type MultiChannelChannelListSMSResponseObject = MultiChannelChannelListOwnerObject & MultiChannelChannelListSMSObject;
17
+ export interface MultiChannelChannelListSMSResponseObject {
18
+ /**
19
+ * The sender ID of the message. This could be an alphanumeric sender ID.
20
+ */
21
+ 'from': string;
22
+ /**
23
+ * The ID of the Application your from number or senderId is associated with in the Bandwidth App.
24
+ */
25
+ 'applicationId': string;
26
+ 'channel': MultiChannelMessageChannelEnum;
27
+ 'content': SmsMessageContent;
28
+ /**
29
+ * The Bandwidth senderId associated with the message. Identical to \'from\'.
30
+ */
31
+ 'owner': string;
32
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Bandwidth
3
+ * Bandwidth\'s Communication APIs
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: letstalk@bandwidth.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface Page {
13
+ /**
14
+ * The number of items per page.
15
+ */
16
+ 'pageSize': number;
17
+ /**
18
+ * The total number of items.
19
+ */
20
+ 'totalElements'?: number;
21
+ /**
22
+ * The total number of pages.
23
+ */
24
+ 'totalPages'?: number;
25
+ /**
26
+ * The current page number.
27
+ */
28
+ 'pageNumber'?: number;
29
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Bandwidth
6
+ * Bandwidth\'s Communication APIs
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: letstalk@bandwidth.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,8 +9,22 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { RbmActionBase } from './rbm-action-base';
12
+ import type { RbmActionTypeEnum } from './rbm-action-type-enum';
13
13
  /**
14
14
  * @type RbmActionDial
15
15
  */
16
- export type RbmActionDial = RbmActionBase;
16
+ export interface RbmActionDial {
17
+ 'type': RbmActionTypeEnum;
18
+ /**
19
+ * Displayed text for user to click
20
+ */
21
+ 'text': string;
22
+ /**
23
+ * Base64 payload the customer receives when the reply is clicked.
24
+ */
25
+ 'postbackData': string;
26
+ /**
27
+ * The phone number to dial. Must be E164 format.
28
+ */
29
+ 'phoneNumber': string;
30
+ }
@@ -9,8 +9,26 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { RbmActionBase } from './rbm-action-base';
12
+ import type { RbmActionTypeEnum } from './rbm-action-type-enum';
13
+ import type { RbmOpenUrlEnum } from './rbm-open-url-enum';
14
+ import type { RbmWebViewEnum } from './rbm-web-view-enum';
13
15
  /**
14
16
  * @type RbmActionOpenUrl
15
17
  */
16
- export type RbmActionOpenUrl = RbmActionBase;
18
+ export interface RbmActionOpenUrl {
19
+ 'type': RbmActionTypeEnum;
20
+ /**
21
+ * Displayed text for user to click
22
+ */
23
+ 'text': string;
24
+ /**
25
+ * Base64 payload the customer receives when the reply is clicked.
26
+ */
27
+ 'postbackData': string;
28
+ /**
29
+ * The URL to open in browser.
30
+ */
31
+ 'url': string;
32
+ 'application'?: RbmOpenUrlEnum;
33
+ 'webviewViewMode'?: RbmWebViewEnum;
34
+ }
@@ -9,8 +9,30 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { RbmActionBase } from './rbm-action-base';
12
+ import type { RbmActionTypeEnum } from './rbm-action-type-enum';
13
13
  /**
14
14
  * @type RbmActionViewLocation
15
15
  */
16
- export type RbmActionViewLocation = RbmActionBase;
16
+ export interface RbmActionViewLocation {
17
+ 'type': RbmActionTypeEnum;
18
+ /**
19
+ * Displayed text for user to click
20
+ */
21
+ 'text': string;
22
+ /**
23
+ * Base64 payload the customer receives when the reply is clicked.
24
+ */
25
+ 'postbackData': string;
26
+ /**
27
+ * The latitude of the location.
28
+ */
29
+ 'latitude': number;
30
+ /**
31
+ * The longitude of the location.
32
+ */
33
+ 'longitude': number;
34
+ /**
35
+ * The label of the location.
36
+ */
37
+ 'label'?: string;
38
+ }
@@ -9,8 +9,18 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { RbmMessageContentFile } from './rbm-message-content-file';
12
+ import type { RbmMediaHeightEnum } from './rbm-media-height-enum';
13
13
  /**
14
14
  * @type RbmCardContentMedia
15
15
  */
16
- export type RbmCardContentMedia = RbmMessageContentFile;
16
+ export interface RbmCardContentMedia {
17
+ /**
18
+ * The URL of the media file. 100MB is the maximum file size.
19
+ */
20
+ 'fileUrl': string;
21
+ /**
22
+ * The URL of the thumbnail image. Applies only to video file media.
23
+ */
24
+ 'thumbnailUrl'?: string;
25
+ 'height': RbmMediaHeightEnum;
26
+ }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device\'s default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView.
13
+ * Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device\'s default browser. If application is not set or the device doesn\'t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView.
14
14
  */
15
15
  export declare const RbmOpenUrlEnum: {
16
16
  readonly Browser: "BROWSER";
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.RbmOpenUrlEnum = void 0;
17
17
  /**
18
- * Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device\'s default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView.
18
+ * Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device\'s default browser. If application is not set or the device doesn\'t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView.
19
19
  */
20
20
  exports.RbmOpenUrlEnum = {
21
21
  Browser: 'BROWSER',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen.
13
+ * Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen.
14
14
  */
15
15
  export declare const RbmWebViewEnum: {
16
16
  readonly Full: "FULL";
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.RbmWebViewEnum = void 0;
17
17
  /**
18
- * Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen.
18
+ * Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen.
19
19
  */
20
20
  exports.RbmWebViewEnum = {
21
21
  Full: 'FULL',