bandwidth-sdk 8.1.3 → 8.1.5

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 (255) hide show
  1. package/.bandwidth/component.yaml +1 -0
  2. package/.github/workflows/deploy.yml +15 -11
  3. package/.github/workflows/test-pr.yml +3 -3
  4. package/.github/workflows/test-smoke.yml +13 -13
  5. package/.openapi-generator/VERSION +1 -1
  6. package/api/calls-api.ts +14 -17
  7. package/api/conferences-api.ts +31 -34
  8. package/api/endpoints-api.ts +14 -16
  9. package/api/media-api.ts +28 -29
  10. package/api/messages-api.ts +13 -14
  11. package/api/mfaapi.ts +7 -10
  12. package/api/multi-channel-api.ts +7 -8
  13. package/api/phone-number-lookup-api.ts +8 -10
  14. package/api/recordings-api.ts +37 -39
  15. package/api/statistics-api.ts +3 -3
  16. package/api/toll-free-verification-api.ts +23 -27
  17. package/api/transcriptions-api.ts +12 -12
  18. package/bandwidth.yml +161 -55
  19. package/common.ts +18 -4
  20. package/configuration.ts +1 -1
  21. package/coverage/clover.xml +948 -890
  22. package/coverage/coverage-final.json +14 -14
  23. package/coverage/lcov-report/index.html +19 -19
  24. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +25 -34
  25. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +46 -55
  26. package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +25 -31
  27. package/coverage/lcov-report/node-sdk/api/index.html +69 -69
  28. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +38 -41
  29. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +21 -24
  30. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +16 -25
  31. package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +14 -17
  32. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +17 -23
  33. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +53 -59
  34. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +9 -9
  35. package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +38 -50
  36. package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +20 -20
  37. package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
  38. package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
  39. package/coverage/lcov-report/node-sdk/common.ts.html +55 -13
  40. package/coverage/lcov-report/node-sdk/configuration.ts.html +2 -2
  41. package/coverage/lcov-report/node-sdk/index.html +15 -15
  42. package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +2 -2
  43. package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +2 -2
  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/Connect.ts.html +1 -1
  54. package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
  55. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Endpoint.ts.html +1 -1
  56. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
  57. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
  58. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
  59. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
  60. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
  61. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
  62. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
  63. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
  64. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
  65. package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
  66. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
  67. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
  68. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
  69. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
  70. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
  71. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
  72. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
  73. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
  74. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
  75. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
  76. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
  77. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
  78. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
  79. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
  80. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
  81. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
  82. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
  83. package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -2
  84. package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -2
  85. package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +2 -2
  86. package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +2 -2
  87. package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -2
  88. package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +2 -2
  89. package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +2 -2
  90. package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -2
  91. package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +2 -2
  92. package/coverage/lcov-report/node-sdk/models/device-status-enum.ts.html +2 -2
  93. package/coverage/lcov-report/node-sdk/models/endpoint-direction-enum.ts.html +2 -2
  94. package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +2 -2
  95. package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +2 -2
  96. package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +2 -2
  97. package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -2
  98. package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +2 -2
  99. package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +2 -2
  100. package/coverage/lcov-report/node-sdk/models/index.html +1 -1
  101. package/coverage/lcov-report/node-sdk/models/index.ts.html +1 -1
  102. package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +2 -2
  103. package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +2 -2
  104. package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
  105. package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -2
  106. package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -2
  107. package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -2
  108. package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -2
  109. package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +2 -2
  110. package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
  111. package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +2 -2
  112. package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +2 -2
  113. package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +2 -2
  114. package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +2 -2
  115. package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +2 -2
  116. package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -2
  117. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -2
  118. package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +2 -2
  119. package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +7 -4
  120. package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +2 -2
  121. package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +2 -2
  122. package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +2 -2
  123. package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +2 -2
  124. package/coverage/lcov.info +2413 -2353
  125. package/custom_templates/common.mustache +18 -4
  126. package/custom_templates/package.mustache +1 -1
  127. package/dist/api/calls-api.d.ts +5 -5
  128. package/dist/api/calls-api.js +13 -8
  129. package/dist/api/conferences-api.d.ts +9 -9
  130. package/dist/api/conferences-api.js +30 -21
  131. package/dist/api/endpoints-api.d.ts +5 -5
  132. package/dist/api/endpoints-api.js +13 -8
  133. package/dist/api/media-api.d.ts +20 -20
  134. package/dist/api/media-api.js +27 -23
  135. package/dist/api/messages-api.d.ts +10 -10
  136. package/dist/api/messages-api.js +12 -10
  137. package/dist/api/mfaapi.d.ts +3 -3
  138. package/dist/api/mfaapi.js +6 -3
  139. package/dist/api/multi-channel-api.d.ts +5 -5
  140. package/dist/api/multi-channel-api.js +6 -5
  141. package/dist/api/phone-number-lookup-api.d.ts +3 -3
  142. package/dist/api/phone-number-lookup-api.js +7 -4
  143. package/dist/api/recordings-api.d.ts +10 -10
  144. package/dist/api/recordings-api.js +36 -26
  145. package/dist/api/statistics-api.d.ts +1 -1
  146. package/dist/api/statistics-api.js +2 -1
  147. package/dist/api/toll-free-verification-api.d.ts +9 -9
  148. package/dist/api/toll-free-verification-api.js +22 -13
  149. package/dist/api/transcriptions-api.d.ts +3 -3
  150. package/dist/api/transcriptions-api.js +11 -8
  151. package/dist/common.d.ts +6 -0
  152. package/dist/common.js +18 -3
  153. package/dist/configuration.js +1 -1
  154. package/dist/models/answer-callback.d.ts +4 -0
  155. package/dist/models/business-entity-type-enum.js +1 -1
  156. package/dist/models/business-registration-type-enum.js +1 -1
  157. package/dist/models/call-direction-enum.js +1 -1
  158. package/dist/models/call-state-enum.js +1 -1
  159. package/dist/models/call-transcription-detected-language-enum.js +1 -1
  160. package/dist/models/call-transcription-track-enum.js +1 -1
  161. package/dist/models/callback-method-enum.js +1 -1
  162. package/dist/models/card-width-enum.js +1 -1
  163. package/dist/models/completed-lookup-status-enum.js +1 -1
  164. package/dist/models/conference-state-enum.js +1 -1
  165. package/dist/models/deactivation-event-enum.js +1 -1
  166. package/dist/models/device-status-enum.js +1 -1
  167. package/dist/models/disconnect-callback.d.ts +8 -0
  168. package/dist/models/endpoint-direction-enum.js +1 -1
  169. package/dist/models/endpoint-event-type-enum.js +1 -1
  170. package/dist/models/endpoint-status-enum.js +1 -1
  171. package/dist/models/endpoint-type-enum.js +1 -1
  172. package/dist/models/file-format-enum.js +1 -1
  173. package/dist/models/in-progress-lookup-status-enum.js +1 -1
  174. package/dist/models/inbound-callback-type-enum.js +1 -1
  175. package/dist/models/initiate-callback.d.ts +10 -0
  176. package/dist/models/latest-message-delivery-status-enum.js +1 -1
  177. package/dist/models/line-type-enum.js +1 -1
  178. package/dist/models/list-message-direction-enum.js +1 -1
  179. package/dist/models/machine-detection-mode-enum.js +1 -1
  180. package/dist/models/message-direction-enum.js +1 -1
  181. package/dist/models/message-status-enum.js +1 -1
  182. package/dist/models/message-type-enum.js +1 -1
  183. package/dist/models/multi-channel-message-channel-enum.js +1 -1
  184. package/dist/models/priority-enum.js +1 -1
  185. package/dist/models/product-type-enum.js +1 -1
  186. package/dist/models/rbm-action-type-enum.js +1 -1
  187. package/dist/models/rbm-media-height-enum.js +1 -1
  188. package/dist/models/rbm-open-url-enum.js +1 -1
  189. package/dist/models/rbm-web-view-enum.js +1 -1
  190. package/dist/models/recording-state-enum.js +1 -1
  191. package/dist/models/redirect-method-enum.js +1 -1
  192. package/dist/models/standalone-card-orientation-enum.js +1 -1
  193. package/dist/models/status-callback-type-enum.d.ts +2 -1
  194. package/dist/models/status-callback-type-enum.js +3 -2
  195. package/dist/models/tfv-callback-status-enum.js +1 -1
  196. package/dist/models/tfv-status-enum.js +1 -1
  197. package/dist/models/thumbnail-alignment-enum.js +1 -1
  198. package/dist/models/webhook-subscription-type-enum.js +1 -1
  199. package/docs/AnswerCallback.md +2 -0
  200. package/docs/DisconnectCallback.md +4 -0
  201. package/docs/InitiateCallback.md +4 -0
  202. package/docs/MediaApi.md +8 -8
  203. package/docs/MessagesApi.md +4 -4
  204. package/docs/MultiChannelApi.md +2 -2
  205. package/docs/StatusCallbackTypeEnum.md +3 -1
  206. package/models/answer-callback.ts +4 -0
  207. package/models/business-entity-type-enum.ts +1 -1
  208. package/models/business-registration-type-enum.ts +1 -1
  209. package/models/call-direction-enum.ts +1 -1
  210. package/models/call-state-enum.ts +1 -1
  211. package/models/call-transcription-detected-language-enum.ts +1 -1
  212. package/models/call-transcription-track-enum.ts +1 -1
  213. package/models/callback-method-enum.ts +1 -1
  214. package/models/card-width-enum.ts +1 -1
  215. package/models/completed-lookup-status-enum.ts +1 -1
  216. package/models/conference-state-enum.ts +1 -1
  217. package/models/deactivation-event-enum.ts +1 -1
  218. package/models/device-status-enum.ts +1 -1
  219. package/models/disconnect-callback.ts +8 -0
  220. package/models/endpoint-direction-enum.ts +1 -1
  221. package/models/endpoint-event-type-enum.ts +1 -1
  222. package/models/endpoint-status-enum.ts +1 -1
  223. package/models/endpoint-type-enum.ts +1 -1
  224. package/models/file-format-enum.ts +1 -1
  225. package/models/in-progress-lookup-status-enum.ts +1 -1
  226. package/models/inbound-callback-type-enum.ts +1 -1
  227. package/models/initiate-callback.ts +8 -0
  228. package/models/latest-message-delivery-status-enum.ts +1 -1
  229. package/models/line-type-enum.ts +1 -1
  230. package/models/list-message-direction-enum.ts +1 -1
  231. package/models/machine-detection-mode-enum.ts +1 -1
  232. package/models/message-direction-enum.ts +1 -1
  233. package/models/message-status-enum.ts +1 -1
  234. package/models/message-type-enum.ts +1 -1
  235. package/models/multi-channel-message-channel-enum.ts +1 -1
  236. package/models/priority-enum.ts +1 -1
  237. package/models/product-type-enum.ts +1 -1
  238. package/models/rbm-action-type-enum.ts +1 -1
  239. package/models/rbm-media-height-enum.ts +1 -1
  240. package/models/rbm-open-url-enum.ts +1 -1
  241. package/models/rbm-web-view-enum.ts +1 -1
  242. package/models/recording-state-enum.ts +1 -1
  243. package/models/redirect-method-enum.ts +1 -1
  244. package/models/standalone-card-orientation-enum.ts +1 -1
  245. package/models/status-callback-type-enum.ts +3 -2
  246. package/models/tfv-callback-status-enum.ts +1 -1
  247. package/models/tfv-status-enum.ts +1 -1
  248. package/models/thumbnail-alignment-enum.ts +1 -1
  249. package/models/webhook-subscription-type-enum.ts +1 -1
  250. package/openapitools.json +1 -1
  251. package/package.json +2 -2
  252. package/tests/unit/models/answer-callback.test.ts +2 -0
  253. package/tests/unit/models/disconnect-callback.test.ts +4 -0
  254. package/tests/unit/models/initiate-callback.test.ts +4 -0
  255. package/tests/unit/models/status-callback-type-enum.test.ts +2 -0
@@ -19,5 +19,5 @@ exports.MachineDetectionModeEnum = void 0;
19
19
  */
20
20
  exports.MachineDetectionModeEnum = {
21
21
  Sync: 'sync',
22
- Async: 'async'
22
+ Async: 'async',
23
23
  };
@@ -19,5 +19,5 @@ exports.MessageDirectionEnum = void 0;
19
19
  */
20
20
  exports.MessageDirectionEnum = {
21
21
  In: 'in',
22
- Out: 'out'
22
+ Out: 'out',
23
23
  };
@@ -25,5 +25,5 @@ exports.MessageStatusEnum = {
25
25
  Failed: 'FAILED',
26
26
  Delivered: 'DELIVERED',
27
27
  Accepted: 'ACCEPTED',
28
- Undelivered: 'UNDELIVERED'
28
+ Undelivered: 'UNDELIVERED',
29
29
  };
@@ -20,5 +20,5 @@ exports.MessageTypeEnum = void 0;
20
20
  exports.MessageTypeEnum = {
21
21
  Sms: 'sms',
22
22
  Mms: 'mms',
23
- Rcs: 'rcs'
23
+ Rcs: 'rcs',
24
24
  };
@@ -20,5 +20,5 @@ exports.MultiChannelMessageChannelEnum = void 0;
20
20
  exports.MultiChannelMessageChannelEnum = {
21
21
  Rbm: 'RBM',
22
22
  Sms: 'SMS',
23
- Mms: 'MMS'
23
+ Mms: 'MMS',
24
24
  };
@@ -19,5 +19,5 @@ exports.PriorityEnum = void 0;
19
19
  */
20
20
  exports.PriorityEnum = {
21
21
  Default: 'default',
22
- High: 'high'
22
+ High: 'high',
23
23
  };
@@ -26,5 +26,5 @@ exports.ProductTypeEnum = {
26
26
  AlphaNumeric: 'ALPHA_NUMERIC',
27
27
  RbmMedia: 'RBM_MEDIA',
28
28
  RbmRich: 'RBM_RICH',
29
- RbmConversational: 'RBM_CONVERSATIONAL'
29
+ RbmConversational: 'RBM_CONVERSATIONAL',
30
30
  };
@@ -20,5 +20,5 @@ exports.RbmActionTypeEnum = {
20
20
  ShowLocation: 'SHOW_LOCATION',
21
21
  CreateCalendarEvent: 'CREATE_CALENDAR_EVENT',
22
22
  OpenUrl: 'OPEN_URL',
23
- RequestLocation: 'REQUEST_LOCATION'
23
+ RequestLocation: 'REQUEST_LOCATION',
24
24
  };
@@ -20,5 +20,5 @@ exports.RbmMediaHeightEnum = void 0;
20
20
  exports.RbmMediaHeightEnum = {
21
21
  Short: 'SHORT',
22
22
  Medium: 'MEDIUM',
23
- Tall: 'TALL'
23
+ Tall: 'TALL',
24
24
  };
@@ -19,5 +19,5 @@ exports.RbmOpenUrlEnum = void 0;
19
19
  */
20
20
  exports.RbmOpenUrlEnum = {
21
21
  Browser: 'BROWSER',
22
- Webview: 'WEBVIEW'
22
+ Webview: 'WEBVIEW',
23
23
  };
@@ -20,5 +20,5 @@ exports.RbmWebViewEnum = void 0;
20
20
  exports.RbmWebViewEnum = {
21
21
  Full: 'FULL',
22
22
  Half: 'HALF',
23
- Tall: 'TALL'
23
+ Tall: 'TALL',
24
24
  };
@@ -19,5 +19,5 @@ exports.RecordingStateEnum = void 0;
19
19
  */
20
20
  exports.RecordingStateEnum = {
21
21
  Paused: 'paused',
22
- Recording: 'recording'
22
+ Recording: 'recording',
23
23
  };
@@ -19,5 +19,5 @@ exports.RedirectMethodEnum = void 0;
19
19
  */
20
20
  exports.RedirectMethodEnum = {
21
21
  Get: 'GET',
22
- Post: 'POST'
22
+ Post: 'POST',
23
23
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.StandaloneCardOrientationEnum = void 0;
17
17
  exports.StandaloneCardOrientationEnum = {
18
18
  Horizontal: 'HORIZONTAL',
19
- Vertical: 'VERTICAL'
19
+ Vertical: 'VERTICAL',
20
20
  };
@@ -10,10 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * The possible status callbacks when sending an MT SMS or MMS or RBM message: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - `message-delivered` indicates that the message was successfully sent. - `message-failed` indicates that the message could not be sent to the intended recipient. - `message-read` indicates that the RBM message was read by the recipient.
13
+ * The possible status callbacks when sending an MT SMS or MMS or RBM message: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - `message-sent` indicates that the message has left the Bandwidth network and is in transit to the provider. - `message-delivered` indicates that the message was successfully delivered to handset. - `message-failed` indicates that the message could not be sent to the intended recipient. - `message-read` indicates that the RBM message was read by the recipient.
14
14
  */
15
15
  export declare const StatusCallbackTypeEnum: {
16
16
  readonly MessageSending: "message-sending";
17
+ readonly MessageSent: "message-sent";
17
18
  readonly MessageDelivered: "message-delivered";
18
19
  readonly MessageFailed: "message-failed";
19
20
  readonly MessageRead: "message-read";
@@ -15,11 +15,12 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.StatusCallbackTypeEnum = void 0;
17
17
  /**
18
- * The possible status callbacks when sending an MT SMS or MMS or RBM message: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - `message-delivered` indicates that the message was successfully sent. - `message-failed` indicates that the message could not be sent to the intended recipient. - `message-read` indicates that the RBM message was read by the recipient.
18
+ * The possible status callbacks when sending an MT SMS or MMS or RBM message: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - `message-sent` indicates that the message has left the Bandwidth network and is in transit to the provider. - `message-delivered` indicates that the message was successfully delivered to handset. - `message-failed` indicates that the message could not be sent to the intended recipient. - `message-read` indicates that the RBM message was read by the recipient.
19
19
  */
20
20
  exports.StatusCallbackTypeEnum = {
21
21
  MessageSending: 'message-sending',
22
+ MessageSent: 'message-sent',
22
23
  MessageDelivered: 'message-delivered',
23
24
  MessageFailed: 'message-failed',
24
- MessageRead: 'message-read'
25
+ MessageRead: 'message-read',
25
26
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.TfvCallbackStatusEnum = void 0;
17
17
  exports.TfvCallbackStatusEnum = {
18
18
  Verified: 'VERIFIED',
19
- Unverified: 'UNVERIFIED'
19
+ Unverified: 'UNVERIFIED',
20
20
  };
@@ -17,5 +17,5 @@ exports.TfvStatusEnum = void 0;
17
17
  exports.TfvStatusEnum = {
18
18
  Verified: 'VERIFIED',
19
19
  Unverified: 'UNVERIFIED',
20
- Pending: 'PENDING'
20
+ Pending: 'PENDING',
21
21
  };
@@ -19,5 +19,5 @@ exports.ThumbnailAlignmentEnum = void 0;
19
19
  */
20
20
  exports.ThumbnailAlignmentEnum = {
21
21
  Left: 'LEFT',
22
- Right: 'RIGHT'
22
+ Right: 'RIGHT',
23
23
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.WebhookSubscriptionTypeEnum = void 0;
17
17
  exports.WebhookSubscriptionTypeEnum = {
18
18
  TollfreeVerificationStatus: 'TOLLFREE_VERIFICATION_STATUS',
19
- MessagingPortoutApprovalStatus: 'MESSAGING_PORTOUT_APPROVAL_STATUS'
19
+ MessagingPortoutApprovalStatus: 'MESSAGING_PORTOUT_APPROVAL_STATUS',
20
20
  };
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
20
20
  **answerTime** | **string** | Time the call was answered, in ISO 8601 format. | [optional] [default to undefined]
21
21
  **tag** | **string** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] [default to undefined]
22
22
  **machineDetectionResult** | [**MachineDetectionResult**](MachineDetectionResult.md) | | [optional] [default to undefined]
23
+ **sipCallId** | **string** | (optional) The SIP Call-ID of the call\'s current SIP dialog with Bandwidth\'s SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists. | [optional] [default to undefined]
23
24
 
24
25
  ## Example
25
26
 
@@ -41,6 +42,7 @@ const instance: AnswerCallback = {
41
42
  answerTime,
42
43
  tag,
43
44
  machineDetectionResult,
45
+ sipCallId,
44
46
  };
45
47
  ```
46
48
 
@@ -23,6 +23,8 @@ Name | Type | Description | Notes
23
23
  **errorMessage** | **string** | Text explaining the reason that caused the call to fail in case of errors. | [optional] [default to undefined]
24
24
  **errorId** | **string** | Bandwidth\'s internal id that references the error event. | [optional] [default to undefined]
25
25
  **tag** | **string** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] [default to undefined]
26
+ **sipCallId** | **string** | (optional) The SIP Call-ID of the call\'s current SIP dialog with Bandwidth\'s SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists. | [optional] [default to undefined]
27
+ **sipResponseCode** | **number** | (optional) The SIP status code returned by Bandwidth\'s SBC when it rejected an outbound call\'s INVITE (e.g. 486 for busy, 603 for decline). Present only when an outbound call was rejected by the SBC. | [optional] [default to undefined]
26
28
 
27
29
  ## Example
28
30
 
@@ -47,6 +49,8 @@ const instance: DisconnectCallback = {
47
49
  errorMessage,
48
50
  errorId,
49
51
  tag,
52
+ sipCallId,
53
+ sipResponseCode,
50
54
  };
51
55
  ```
52
56
 
@@ -19,6 +19,8 @@ Name | Type | Description | Notes
19
19
  **diversion** | [**Diversion**](Diversion.md) | | [optional] [default to undefined]
20
20
  **stirShaken** | [**StirShaken**](StirShaken.md) | | [optional] [default to undefined]
21
21
  **uui** | **string** | The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters. | [optional] [default to undefined]
22
+ **sipCallId** | **string** | (optional) The SIP Call-ID of the call\'s current SIP dialog with Bandwidth\'s SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists. | [optional] [default to undefined]
23
+ **sipHeaders** | **{ [key: string]: string; }** | (optional) Map of customer-supplied X-* headers from the original INVITE. Keys are lowercase (SIP headers are case-insensitive). Present only for inbound SIP URI calls with custom headers. Note - keys preserve the original SIP header name in lowercase rather than Bandwidth\'s usual camelCase JSON convention, since these are passthrough values from the caller\'s SIP INVITE, not Bandwidth-defined fields. If the same header name is sent more than once in the INVITE, only the last value is kept. | [optional] [default to undefined]
22
24
 
23
25
  ## Example
24
26
 
@@ -39,6 +41,8 @@ const instance: InitiateCallback = {
39
41
  diversion,
40
42
  stirShaken,
41
43
  uui,
44
+ sipCallId,
45
+ sipHeaders,
42
46
  };
43
47
  ```
44
48
 
package/docs/MediaApi.md CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  const configuration = new Configuration();
26
26
  const apiInstance = new MediaApi(configuration);
27
27
 
28
- let accountId: string; //Your Bandwidth Account ID. (default to undefined)
28
+ let accountId: string; //This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (default to undefined)
29
29
  let mediaId: string; //Media ID to retrieve. (default to undefined)
30
30
 
31
31
  const { status, data } = await apiInstance.deleteMedia(
@@ -38,7 +38,7 @@ const { status, data } = await apiInstance.deleteMedia(
38
38
 
39
39
  |Name | Type | Description | Notes|
40
40
  |------------- | ------------- | ------------- | -------------|
41
- | **accountId** | [**string**] | Your Bandwidth Account ID. | defaults to undefined|
41
+ | **accountId** | [**string**] | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** | defaults to undefined|
42
42
  | **mediaId** | [**string**] | Media ID to retrieve. | defaults to undefined|
43
43
 
44
44
 
@@ -87,7 +87,7 @@ import {
87
87
  const configuration = new Configuration();
88
88
  const apiInstance = new MediaApi(configuration);
89
89
 
90
- let accountId: string; //Your Bandwidth Account ID. (default to undefined)
90
+ let accountId: string; //This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (default to undefined)
91
91
  let mediaId: string; //Media ID to retrieve. (default to undefined)
92
92
 
93
93
  const { status, data } = await apiInstance.getMedia(
@@ -100,7 +100,7 @@ const { status, data } = await apiInstance.getMedia(
100
100
 
101
101
  |Name | Type | Description | Notes|
102
102
  |------------- | ------------- | ------------- | -------------|
103
- | **accountId** | [**string**] | Your Bandwidth Account ID. | defaults to undefined|
103
+ | **accountId** | [**string**] | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** | defaults to undefined|
104
104
  | **mediaId** | [**string**] | Media ID to retrieve. | defaults to undefined|
105
105
 
106
106
 
@@ -149,7 +149,7 @@ import {
149
149
  const configuration = new Configuration();
150
150
  const apiInstance = new MediaApi(configuration);
151
151
 
152
- let accountId: string; //Your Bandwidth Account ID. (default to undefined)
152
+ let accountId: string; //This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (default to undefined)
153
153
  let continuationToken: string; //Continuation token used to retrieve subsequent media. (optional) (default to undefined)
154
154
 
155
155
  const { status, data } = await apiInstance.listMedia(
@@ -162,7 +162,7 @@ const { status, data } = await apiInstance.listMedia(
162
162
 
163
163
  |Name | Type | Description | Notes|
164
164
  |------------- | ------------- | ------------- | -------------|
165
- | **accountId** | [**string**] | Your Bandwidth Account ID. | defaults to undefined|
165
+ | **accountId** | [**string**] | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** | defaults to undefined|
166
166
  | **continuationToken** | [**string**] | Continuation token used to retrieve subsequent media. | (optional) defaults to undefined|
167
167
 
168
168
 
@@ -211,7 +211,7 @@ import {
211
211
  const configuration = new Configuration();
212
212
  const apiInstance = new MediaApi(configuration);
213
213
 
214
- let accountId: string; //Your Bandwidth Account ID. (default to undefined)
214
+ let accountId: string; //This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (default to undefined)
215
215
  let mediaId: string; //Media ID to retrieve. (default to undefined)
216
216
  let body: File; //
217
217
  let contentType: string; //The media type of the entity-body. (optional) (default to undefined)
@@ -231,7 +231,7 @@ const { status, data } = await apiInstance.uploadMedia(
231
231
  |Name | Type | Description | Notes|
232
232
  |------------- | ------------- | ------------- | -------------|
233
233
  | **body** | **File**| | |
234
- | **accountId** | [**string**] | Your Bandwidth Account ID. | defaults to undefined|
234
+ | **accountId** | [**string**] | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** | defaults to undefined|
235
235
  | **mediaId** | [**string**] | Media ID to retrieve. | defaults to undefined|
236
236
  | **contentType** | [**string**] | The media type of the entity-body. | (optional) defaults to undefined|
237
237
  | **cacheControl** | [**string**] | General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. | (optional) defaults to undefined|
@@ -24,7 +24,7 @@ import {
24
24
  const configuration = new Configuration();
25
25
  const apiInstance = new MessagesApi(configuration);
26
26
 
27
- let accountId: string; //Your Bandwidth Account ID. (default to undefined)
27
+ let accountId: string; //This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (default to undefined)
28
28
  let messageRequest: MessageRequest; //
29
29
 
30
30
  const { status, data } = await apiInstance.createMessage(
@@ -38,7 +38,7 @@ const { status, data } = await apiInstance.createMessage(
38
38
  |Name | Type | Description | Notes|
39
39
  |------------- | ------------- | ------------- | -------------|
40
40
  | **messageRequest** | **MessageRequest**| | |
41
- | **accountId** | [**string**] | Your Bandwidth Account ID. | defaults to undefined|
41
+ | **accountId** | [**string**] | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** | defaults to undefined|
42
42
 
43
43
 
44
44
  ### Return type
@@ -87,7 +87,7 @@ import {
87
87
  const configuration = new Configuration();
88
88
  const apiInstance = new MessagesApi(configuration);
89
89
 
90
- let accountId: string; //Your Bandwidth Account ID. (default to undefined)
90
+ let accountId: string; //This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (default to undefined)
91
91
  let messageId: string; //The ID of the message to search for. Special characters need to be encoded using URL encoding. Message IDs could come in different formats, e.g., 9e0df4ca-b18d-40d7-a59f-82fcdf5ae8e6 and 1589228074636lm4k2je7j7jklbn2 are valid message ID formats. Note that you must include at least one query parameter. (optional) (default to undefined)
92
92
  let sourceTn: string; //The phone number that sent the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\'). (optional) (default to undefined)
93
93
  let destinationTn: string; //The phone number that received the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\'). (optional) (default to undefined)
@@ -152,7 +152,7 @@ const { status, data } = await apiInstance.listMessages(
152
152
 
153
153
  |Name | Type | Description | Notes|
154
154
  |------------- | ------------- | ------------- | -------------|
155
- | **accountId** | [**string**] | Your Bandwidth Account ID. | defaults to undefined|
155
+ | **accountId** | [**string**] | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** | defaults to undefined|
156
156
  | **messageId** | [**string**] | The ID of the message to search for. Special characters need to be encoded using URL encoding. Message IDs could come in different formats, e.g., 9e0df4ca-b18d-40d7-a59f-82fcdf5ae8e6 and 1589228074636lm4k2je7j7jklbn2 are valid message ID formats. Note that you must include at least one query parameter. | (optional) defaults to undefined|
157
157
  | **sourceTn** | [**string**] | The phone number that sent the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\'). | (optional) defaults to undefined|
158
158
  | **destinationTn** | [**string**] | The phone number that received the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\'). | (optional) defaults to undefined|
@@ -23,7 +23,7 @@ import {
23
23
  const configuration = new Configuration();
24
24
  const apiInstance = new MultiChannelApi(configuration);
25
25
 
26
- let accountId: string; //Your Bandwidth Account ID. (default to undefined)
26
+ let accountId: string; //This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (default to undefined)
27
27
  let multiChannelMessageRequest: MultiChannelMessageRequest; //
28
28
 
29
29
  const { status, data } = await apiInstance.createMultiChannelMessage(
@@ -37,7 +37,7 @@ const { status, data } = await apiInstance.createMultiChannelMessage(
37
37
  |Name | Type | Description | Notes|
38
38
  |------------- | ------------- | ------------- | -------------|
39
39
  | **multiChannelMessageRequest** | **MultiChannelMessageRequest**| | |
40
- | **accountId** | [**string**] | Your Bandwidth Account ID. | defaults to undefined|
40
+ | **accountId** | [**string**] | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** | defaults to undefined|
41
41
 
42
42
 
43
43
  ### Return type
@@ -1,11 +1,13 @@
1
1
  # StatusCallbackTypeEnum
2
2
 
3
- The possible status callbacks when sending an MT SMS or MMS or RBM message: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - `message-delivered` indicates that the message was successfully sent. - `message-failed` indicates that the message could not be sent to the intended recipient. - `message-read` indicates that the RBM message was read by the recipient.
3
+ The possible status callbacks when sending an MT SMS or MMS or RBM message: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - `message-sent` indicates that the message has left the Bandwidth network and is in transit to the provider. - `message-delivered` indicates that the message was successfully delivered to handset. - `message-failed` indicates that the message could not be sent to the intended recipient. - `message-read` indicates that the RBM message was read by the recipient.
4
4
 
5
5
  ## Enum
6
6
 
7
7
  * `MessageSending` (value: `'message-sending'`)
8
8
 
9
+ * `MessageSent` (value: `'message-sent'`)
10
+
9
11
  * `MessageDelivered` (value: `'message-delivered'`)
10
12
 
11
13
  * `MessageFailed` (value: `'message-failed'`)
@@ -74,6 +74,10 @@ export interface AnswerCallback {
74
74
  */
75
75
  'tag'?: string | null;
76
76
  'machineDetectionResult'?: MachineDetectionResult | null;
77
+ /**
78
+ * (optional) The SIP Call-ID of the call\'s current SIP dialog with Bandwidth\'s SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists.
79
+ */
80
+ 'sipCallId'?: string;
77
81
  }
78
82
 
79
83
 
@@ -23,7 +23,7 @@ export const BusinessEntityTypeEnum = {
23
23
  PrivateProfit: 'PRIVATE_PROFIT',
24
24
  PublicProfit: 'PUBLIC_PROFIT',
25
25
  NonProfit: 'NON_PROFIT',
26
- Government: 'GOVERNMENT'
26
+ Government: 'GOVERNMENT',
27
27
  } as const;
28
28
 
29
29
  export type BusinessEntityTypeEnum = typeof BusinessEntityTypeEnum[keyof typeof BusinessEntityTypeEnum];
@@ -36,7 +36,7 @@ export const BusinessRegistrationTypeEnum = {
36
36
  Nif: 'NIF',
37
37
  Cnpj: 'CNPJ',
38
38
  Uid: 'UID',
39
- Other: 'OTHER'
39
+ Other: 'OTHER',
40
40
  } as const;
41
41
 
42
42
  export type BusinessRegistrationTypeEnum = typeof BusinessRegistrationTypeEnum[keyof typeof BusinessRegistrationTypeEnum];
@@ -20,7 +20,7 @@
20
20
 
21
21
  export const CallDirectionEnum = {
22
22
  Inbound: 'inbound',
23
- Outbound: 'outbound'
23
+ Outbound: 'outbound',
24
24
  } as const;
25
25
 
26
26
  export type CallDirectionEnum = typeof CallDirectionEnum[keyof typeof CallDirectionEnum];
@@ -20,7 +20,7 @@
20
20
 
21
21
  export const CallStateEnum = {
22
22
  Active: 'active',
23
- Completed: 'completed'
23
+ Completed: 'completed',
24
24
  } as const;
25
25
 
26
26
  export type CallStateEnum = typeof CallStateEnum[keyof typeof CallStateEnum];
@@ -21,7 +21,7 @@
21
21
  export const CallTranscriptionDetectedLanguageEnum = {
22
22
  EnUs: 'en-US',
23
23
  EsUs: 'es-US',
24
- FrFr: 'fr-FR'
24
+ FrFr: 'fr-FR',
25
25
  } as const;
26
26
 
27
27
  export type CallTranscriptionDetectedLanguageEnum = typeof CallTranscriptionDetectedLanguageEnum[keyof typeof CallTranscriptionDetectedLanguageEnum];
@@ -20,7 +20,7 @@
20
20
 
21
21
  export const CallTranscriptionTrackEnum = {
22
22
  Inbound: 'inbound',
23
- Outbound: 'outbound'
23
+ Outbound: 'outbound',
24
24
  } as const;
25
25
 
26
26
  export type CallTranscriptionTrackEnum = typeof CallTranscriptionTrackEnum[keyof typeof CallTranscriptionTrackEnum];
@@ -20,7 +20,7 @@
20
20
 
21
21
  export const CallbackMethodEnum = {
22
22
  Get: 'GET',
23
- Post: 'POST'
23
+ Post: 'POST',
24
24
  } as const;
25
25
 
26
26
  export type CallbackMethodEnum = typeof CallbackMethodEnum[keyof typeof CallbackMethodEnum];
@@ -17,7 +17,7 @@
17
17
 
18
18
  export const CardWidthEnum = {
19
19
  Small: 'SMALL',
20
- Medium: 'MEDIUM'
20
+ Medium: 'MEDIUM',
21
21
  } as const;
22
22
 
23
23
  export type CardWidthEnum = typeof CardWidthEnum[keyof typeof CardWidthEnum];
@@ -18,7 +18,7 @@
18
18
  export const CompletedLookupStatusEnum = {
19
19
  Complete: 'COMPLETE',
20
20
  PartialComplete: 'PARTIAL_COMPLETE',
21
- Failed: 'FAILED'
21
+ Failed: 'FAILED',
22
22
  } as const;
23
23
 
24
24
  export type CompletedLookupStatusEnum = typeof CompletedLookupStatusEnum[keyof typeof CompletedLookupStatusEnum];
@@ -20,7 +20,7 @@
20
20
 
21
21
  export const ConferenceStateEnum = {
22
22
  Active: 'active',
23
- Completed: 'completed'
23
+ Completed: 'completed',
24
24
  } as const;
25
25
 
26
26
  export type ConferenceStateEnum = typeof ConferenceStateEnum[keyof typeof ConferenceStateEnum];
@@ -19,7 +19,7 @@
19
19
  */
20
20
 
21
21
  export const DeactivationEventEnum = {
22
- Deactivated: 'DEACTIVATED'
22
+ Deactivated: 'DEACTIVATED',
23
23
  } as const;
24
24
 
25
25
  export type DeactivationEventEnum = typeof DeactivationEventEnum[keyof typeof DeactivationEventEnum];
@@ -17,7 +17,7 @@
17
17
 
18
18
  export const DeviceStatusEnum = {
19
19
  Connected: 'CONNECTED',
20
- Disconnected: 'DISCONNECTED'
20
+ Disconnected: 'DISCONNECTED',
21
21
  } as const;
22
22
 
23
23
  export type DeviceStatusEnum = typeof DeviceStatusEnum[keyof typeof DeviceStatusEnum];
@@ -86,6 +86,14 @@ export interface DisconnectCallback {
86
86
  * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present.
87
87
  */
88
88
  'tag'?: string | null;
89
+ /**
90
+ * (optional) The SIP Call-ID of the call\'s current SIP dialog with Bandwidth\'s SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists.
91
+ */
92
+ 'sipCallId'?: string;
93
+ /**
94
+ * (optional) The SIP status code returned by Bandwidth\'s SBC when it rejected an outbound call\'s INVITE (e.g. 486 for busy, 603 for decline). Present only when an outbound call was rejected by the SBC.
95
+ */
96
+ 'sipResponseCode'?: number;
89
97
  }
90
98
 
91
99
 
@@ -18,7 +18,7 @@
18
18
  export const EndpointDirectionEnum = {
19
19
  Inbound: 'INBOUND',
20
20
  Outbound: 'OUTBOUND',
21
- Bidirectional: 'BIDIRECTIONAL'
21
+ Bidirectional: 'BIDIRECTIONAL',
22
22
  } as const;
23
23
 
24
24
  export type EndpointDirectionEnum = typeof EndpointDirectionEnum[keyof typeof EndpointDirectionEnum];
@@ -17,7 +17,7 @@
17
17
 
18
18
  export const EndpointEventTypeEnum = {
19
19
  DeviceConnected: 'DEVICE_CONNECTED',
20
- DeviceDisconnected: 'DEVICE_DISCONNECTED'
20
+ DeviceDisconnected: 'DEVICE_DISCONNECTED',
21
21
  } as const;
22
22
 
23
23
  export type EndpointEventTypeEnum = typeof EndpointEventTypeEnum[keyof typeof EndpointEventTypeEnum];
@@ -17,7 +17,7 @@
17
17
 
18
18
  export const EndpointStatusEnum = {
19
19
  Connected: 'CONNECTED',
20
- Disconnected: 'DISCONNECTED'
20
+ Disconnected: 'DISCONNECTED',
21
21
  } as const;
22
22
 
23
23
  export type EndpointStatusEnum = typeof EndpointStatusEnum[keyof typeof EndpointStatusEnum];
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
  export const EndpointTypeEnum = {
19
- Webrtc: 'WEBRTC'
19
+ Webrtc: 'WEBRTC',
20
20
  } as const;
21
21
 
22
22
  export type EndpointTypeEnum = typeof EndpointTypeEnum[keyof typeof EndpointTypeEnum];
@@ -20,7 +20,7 @@
20
20
 
21
21
  export const FileFormatEnum = {
22
22
  Mp3: 'mp3',
23
- Wav: 'wav'
23
+ Wav: 'wav',
24
24
  } as const;
25
25
 
26
26
  export type FileFormatEnum = typeof FileFormatEnum[keyof typeof FileFormatEnum];
@@ -19,7 +19,7 @@ export const InProgressLookupStatusEnum = {
19
19
  InProgress: 'IN_PROGRESS',
20
20
  Complete: 'COMPLETE',
21
21
  PartialComplete: 'PARTIAL_COMPLETE',
22
- Failed: 'FAILED'
22
+ Failed: 'FAILED',
23
23
  } as const;
24
24
 
25
25
  export type InProgressLookupStatusEnum = typeof InProgressLookupStatusEnum[keyof typeof InProgressLookupStatusEnum];
@@ -21,7 +21,7 @@
21
21
  export const InboundCallbackTypeEnum = {
22
22
  MessageReceived: 'message-received',
23
23
  RequestedLocationResponse: 'requested-location-response',
24
- SuggestionResponse: 'suggestion-response'
24
+ SuggestionResponse: 'suggestion-response',
25
25
  } as const;
26
26
 
27
27
  export type InboundCallbackTypeEnum = typeof InboundCallbackTypeEnum[keyof typeof InboundCallbackTypeEnum];
@@ -70,6 +70,14 @@ export interface InitiateCallback {
70
70
  * The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters.
71
71
  */
72
72
  'uui'?: string;
73
+ /**
74
+ * (optional) The SIP Call-ID of the call\'s current SIP dialog with Bandwidth\'s SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists.
75
+ */
76
+ 'sipCallId'?: string;
77
+ /**
78
+ * (optional) Map of customer-supplied X-* headers from the original INVITE. Keys are lowercase (SIP headers are case-insensitive). Present only for inbound SIP URI calls with custom headers. Note - keys preserve the original SIP header name in lowercase rather than Bandwidth\'s usual camelCase JSON convention, since these are passthrough values from the caller\'s SIP INVITE, not Bandwidth-defined fields. If the same header name is sent more than once in the INVITE, only the last value is kept.
79
+ */
80
+ 'sipHeaders'?: { [key: string]: string; };
73
81
  }
74
82
 
75
83