bandwidth-sdk 11.0.0.pre.beta.1 → 11.0.0.pre.beta.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (381) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +46 -23
  4. data/README.md +7 -3
  5. data/Rakefile +10 -2
  6. data/bandwidth-sdk.gemspec +12 -12
  7. data/bandwidth.yml +409 -353
  8. data/coverage/.last_run.json +5 -0
  9. data/coverage/.resultset.json +9792 -0
  10. data/coverage/.resultset.json.lock +0 -0
  11. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
  12. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
  13. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
  14. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
  15. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
  16. data/coverage/assets/0.12.3/application.css +1 -0
  17. data/coverage/assets/0.12.3/application.js +7 -0
  18. data/coverage/assets/0.12.3/colorbox/border.png +0 -0
  19. data/coverage/assets/0.12.3/colorbox/controls.png +0 -0
  20. data/coverage/assets/0.12.3/colorbox/loading.gif +0 -0
  21. data/coverage/assets/0.12.3/colorbox/loading_background.png +0 -0
  22. data/coverage/assets/0.12.3/favicon_green.png +0 -0
  23. data/coverage/assets/0.12.3/favicon_red.png +0 -0
  24. data/coverage/assets/0.12.3/favicon_yellow.png +0 -0
  25. data/coverage/assets/0.12.3/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  26. data/coverage/assets/0.12.3/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  27. data/coverage/assets/0.12.3/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  28. data/coverage/assets/0.12.3/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  29. data/coverage/assets/0.12.3/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  30. data/coverage/assets/0.12.3/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  31. data/coverage/assets/0.12.3/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  32. data/coverage/assets/0.12.3/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  33. data/coverage/assets/0.12.3/images/ui-icons_222222_256x240.png +0 -0
  34. data/coverage/assets/0.12.3/images/ui-icons_2e83ff_256x240.png +0 -0
  35. data/coverage/assets/0.12.3/images/ui-icons_454545_256x240.png +0 -0
  36. data/coverage/assets/0.12.3/images/ui-icons_888888_256x240.png +0 -0
  37. data/coverage/assets/0.12.3/images/ui-icons_cd0a0a_256x240.png +0 -0
  38. data/coverage/assets/0.12.3/loading.gif +0 -0
  39. data/coverage/assets/0.12.3/magnify.png +0 -0
  40. data/coverage/index.html +108612 -0
  41. data/custom_templates/Gemfile.mustache +11 -0
  42. data/custom_templates/README.mustache +170 -0
  43. data/custom_templates/gem.mustache +99 -0
  44. data/custom_templates/gemspec.mustache +37 -0
  45. data/custom_templates/version.mustache +7 -0
  46. data/docs/AnswerCallback.md +3 -3
  47. data/docs/BridgeCompleteCallback.md +2 -2
  48. data/docs/BridgeTargetCompleteCallback.md +2 -2
  49. data/docs/CallState.md +2 -2
  50. data/docs/CallsApi.md +15 -15
  51. data/docs/Conference.md +4 -4
  52. data/docs/ConferenceCompletedCallback.md +2 -2
  53. data/docs/ConferenceCreatedCallback.md +2 -2
  54. data/docs/ConferenceMemberExitCallback.md +2 -2
  55. data/docs/ConferenceMemberJoinCallback.md +2 -2
  56. data/docs/ConferenceRecordingAvailableCallback.md +2 -2
  57. data/docs/ConferenceRedirectCallback.md +2 -2
  58. data/docs/ConferencesApi.md +42 -42
  59. data/docs/CreateCall.md +11 -11
  60. data/docs/CreateCallResponse.md +11 -11
  61. data/docs/DisconnectCallback.md +2 -2
  62. data/docs/DtmfCallback.md +2 -2
  63. data/docs/GatherCallback.md +2 -2
  64. data/docs/InitiateCallback.md +2 -2
  65. data/docs/ListMessageItem.md +5 -3
  66. data/docs/MFAApi.md +6 -6
  67. data/docs/MachineDetectionCompleteCallback.md +3 -3
  68. data/docs/MachineDetectionConfiguration.md +2 -2
  69. data/docs/MachineDetectionResult.md +20 -0
  70. data/docs/Message.md +5 -3
  71. data/docs/MessageDeliveredCallbackMessage.md +1 -1
  72. data/docs/MessageFailedCallbackMessage.md +1 -1
  73. data/docs/MessageRequest.md +1 -1
  74. data/docs/MessageSendingCallbackMessage.md +1 -1
  75. data/docs/MessagesApi.md +5 -1
  76. data/docs/MessagesList.md +1 -1
  77. data/docs/PhoneNumberLookupApi.md +4 -4
  78. data/docs/RecordingAvailableCallback.md +2 -2
  79. data/docs/RecordingCompleteCallback.md +2 -2
  80. data/docs/RecordingsApi.md +52 -52
  81. data/docs/RedirectCallback.md +2 -2
  82. data/docs/StatisticsApi.md +2 -2
  83. data/docs/TranscribeRecording.md +4 -2
  84. data/docs/TranscriptionAvailableCallback.md +2 -2
  85. data/docs/TransferAnswerCallback.md +2 -2
  86. data/docs/TransferCompleteCallback.md +2 -2
  87. data/docs/TransferDisconnectCallback.md +2 -2
  88. data/docs/UpdateCall.md +3 -3
  89. data/docs/UpdateConference.md +3 -3
  90. data/lib/bandwidth-sdk/api/calls_api.rb +18 -18
  91. data/lib/bandwidth-sdk/api/conferences_api.rb +46 -46
  92. data/lib/bandwidth-sdk/api/media_api.rb +2 -2
  93. data/lib/bandwidth-sdk/api/messages_api.rb +8 -2
  94. data/lib/bandwidth-sdk/api/mfa_api.rb +10 -10
  95. data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +6 -6
  96. data/lib/bandwidth-sdk/api/recordings_api.rb +55 -55
  97. data/lib/bandwidth-sdk/api/statistics_api.rb +3 -3
  98. data/lib/bandwidth-sdk/api_client.rb +1 -1
  99. data/lib/bandwidth-sdk/api_error.rb +2 -2
  100. data/lib/bandwidth-sdk/configuration.rb +3 -3
  101. data/lib/bandwidth-sdk/models/account_statistics.rb +2 -4
  102. data/lib/bandwidth-sdk/models/answer_callback.rb +4 -7
  103. data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +3 -5
  104. data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +3 -5
  105. data/lib/bandwidth-sdk/models/bxml/bxml.rb +2 -4
  106. data/lib/bandwidth-sdk/models/bxml/nestable_verb.rb +3 -7
  107. data/lib/bandwidth-sdk/models/bxml/response.rb +2 -4
  108. data/lib/bandwidth-sdk/models/bxml/root.rb +3 -3
  109. data/lib/bandwidth-sdk/models/bxml/verb.rb +4 -5
  110. data/lib/bandwidth-sdk/models/bxml/verbs/bridge.rb +2 -4
  111. data/lib/bandwidth-sdk/models/bxml/verbs/conference.rb +2 -5
  112. data/lib/bandwidth-sdk/models/bxml/verbs/custom_param.rb +16 -0
  113. data/lib/bandwidth-sdk/models/bxml/verbs/forward.rb +2 -4
  114. data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +3 -5
  115. data/lib/bandwidth-sdk/models/bxml/verbs/hangup.rb +2 -4
  116. data/lib/bandwidth-sdk/models/bxml/verbs/pause.rb +2 -4
  117. data/lib/bandwidth-sdk/models/bxml/verbs/pause_recording.rb +2 -4
  118. data/lib/bandwidth-sdk/models/bxml/verbs/phone_number.rb +2 -4
  119. data/lib/bandwidth-sdk/models/bxml/verbs/play_audio.rb +2 -4
  120. data/lib/bandwidth-sdk/models/bxml/verbs/record.rb +2 -4
  121. data/lib/bandwidth-sdk/models/bxml/verbs/redirect.rb +2 -4
  122. data/lib/bandwidth-sdk/models/bxml/verbs/resume_recording.rb +2 -4
  123. data/lib/bandwidth-sdk/models/bxml/verbs/ring.rb +2 -4
  124. data/lib/bandwidth-sdk/models/bxml/verbs/send_dtmf.rb +2 -4
  125. data/lib/bandwidth-sdk/models/bxml/verbs/sip_uri.rb +2 -4
  126. data/lib/bandwidth-sdk/models/bxml/verbs/speak_sentence.rb +3 -5
  127. data/lib/bandwidth-sdk/models/bxml/verbs/start_gather.rb +2 -4
  128. data/lib/bandwidth-sdk/models/bxml/verbs/start_recording.rb +2 -4
  129. data/lib/bandwidth-sdk/models/bxml/verbs/start_stream.rb +2 -4
  130. data/lib/bandwidth-sdk/models/bxml/verbs/start_transcription.rb +29 -0
  131. data/lib/bandwidth-sdk/models/bxml/verbs/stop_gather.rb +2 -4
  132. data/lib/bandwidth-sdk/models/bxml/verbs/stop_recording.rb +2 -4
  133. data/lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb +2 -4
  134. data/lib/bandwidth-sdk/models/bxml/verbs/stop_transcription.rb +15 -0
  135. data/lib/bandwidth-sdk/models/bxml/verbs/stream_param.rb +2 -4
  136. data/lib/bandwidth-sdk/models/bxml/verbs/tag.rb +2 -4
  137. data/lib/bandwidth-sdk/models/bxml/verbs/transfer.rb +2 -4
  138. data/lib/bandwidth-sdk/models/call_direction_enum.rb +3 -3
  139. data/lib/bandwidth-sdk/models/call_recording_metadata.rb +2 -4
  140. data/lib/bandwidth-sdk/models/call_state.rb +4 -6
  141. data/lib/bandwidth-sdk/models/call_state_enum.rb +3 -3
  142. data/lib/bandwidth-sdk/models/callback_method_enum.rb +3 -3
  143. data/lib/bandwidth-sdk/models/code_request.rb +2 -4
  144. data/lib/bandwidth-sdk/models/conference.rb +5 -7
  145. data/lib/bandwidth-sdk/models/conference_completed_callback.rb +3 -5
  146. data/lib/bandwidth-sdk/models/conference_created_callback.rb +3 -5
  147. data/lib/bandwidth-sdk/models/conference_member.rb +2 -4
  148. data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +3 -5
  149. data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +3 -5
  150. data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +3 -5
  151. data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +2 -4
  152. data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +3 -5
  153. data/lib/bandwidth-sdk/models/conference_state_enum.rb +3 -3
  154. data/lib/bandwidth-sdk/models/create_call.rb +14 -7
  155. data/lib/bandwidth-sdk/models/create_call_response.rb +10 -12
  156. data/lib/bandwidth-sdk/models/create_lookup_response.rb +2 -4
  157. data/lib/bandwidth-sdk/models/create_message_request_error.rb +2 -4
  158. data/lib/bandwidth-sdk/models/deferred_result.rb +2 -4
  159. data/lib/bandwidth-sdk/models/disconenct_callback.rb +1 -3
  160. data/lib/bandwidth-sdk/models/disconnect_callback.rb +3 -5
  161. data/lib/bandwidth-sdk/models/diversion.rb +2 -4
  162. data/lib/bandwidth-sdk/models/dtmf_callback.rb +3 -5
  163. data/lib/bandwidth-sdk/models/field_error.rb +2 -4
  164. data/lib/bandwidth-sdk/models/file_format_enum.rb +3 -3
  165. data/lib/bandwidth-sdk/models/gather_callback.rb +3 -5
  166. data/lib/bandwidth-sdk/models/inbound_message_callback.rb +2 -4
  167. data/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +3 -4
  168. data/lib/bandwidth-sdk/models/initiate_callback.rb +3 -5
  169. data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +3 -3
  170. data/lib/bandwidth-sdk/models/list_message_item.rb +19 -10
  171. data/lib/bandwidth-sdk/models/lookup_request.rb +2 -4
  172. data/lib/bandwidth-sdk/models/lookup_result.rb +2 -4
  173. data/lib/bandwidth-sdk/models/lookup_status.rb +2 -4
  174. data/lib/bandwidth-sdk/models/lookup_status_enum.rb +5 -5
  175. data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +4 -7
  176. data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +2 -4
  177. data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +3 -3
  178. data/lib/bandwidth-sdk/models/machine_detection_result.rb +229 -0
  179. data/lib/bandwidth-sdk/models/media.rb +2 -4
  180. data/lib/bandwidth-sdk/models/message.rb +17 -9
  181. data/lib/bandwidth-sdk/models/message_delivered_callback.rb +2 -4
  182. data/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +3 -4
  183. data/lib/bandwidth-sdk/models/message_direction_enum.rb +3 -3
  184. data/lib/bandwidth-sdk/models/message_failed_callback.rb +2 -4
  185. data/lib/bandwidth-sdk/models/message_failed_callback_message.rb +3 -4
  186. data/lib/bandwidth-sdk/models/message_request.rb +4 -6
  187. data/lib/bandwidth-sdk/models/message_sending_callback.rb +2 -4
  188. data/lib/bandwidth-sdk/models/message_sending_callback_message.rb +3 -4
  189. data/lib/bandwidth-sdk/models/message_status_enum.rb +9 -9
  190. data/lib/bandwidth-sdk/models/message_type_enum.rb +3 -3
  191. data/lib/bandwidth-sdk/models/messages_list.rb +3 -5
  192. data/lib/bandwidth-sdk/models/messaging_code_response.rb +2 -4
  193. data/lib/bandwidth-sdk/models/messaging_request_error.rb +2 -4
  194. data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +2 -4
  195. data/lib/bandwidth-sdk/models/mfa_request_error.rb +2 -4
  196. data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +2 -4
  197. data/lib/bandwidth-sdk/models/page_info.rb +2 -4
  198. data/lib/bandwidth-sdk/models/priority_enum.rb +3 -3
  199. data/lib/bandwidth-sdk/models/recording_available_callback.rb +3 -5
  200. data/lib/bandwidth-sdk/models/recording_complete_callback.rb +3 -5
  201. data/lib/bandwidth-sdk/models/recording_state_enum.rb +3 -3
  202. data/lib/bandwidth-sdk/models/redirect_callback.rb +3 -5
  203. data/lib/bandwidth-sdk/models/redirect_method_enum.rb +3 -3
  204. data/lib/bandwidth-sdk/models/stir_shaken.rb +2 -4
  205. data/lib/bandwidth-sdk/models/tag.rb +2 -4
  206. data/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +2 -4
  207. data/lib/bandwidth-sdk/models/transcribe_recording.rb +20 -9
  208. data/lib/bandwidth-sdk/models/transcription.rb +2 -4
  209. data/lib/bandwidth-sdk/models/transcription_available_callback.rb +3 -5
  210. data/lib/bandwidth-sdk/models/transcription_list.rb +2 -4
  211. data/lib/bandwidth-sdk/models/transcription_metadata.rb +2 -4
  212. data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +3 -5
  213. data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +3 -5
  214. data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +3 -5
  215. data/lib/bandwidth-sdk/models/update_call.rb +12 -5
  216. data/lib/bandwidth-sdk/models/update_call_recording.rb +2 -4
  217. data/lib/bandwidth-sdk/models/update_conference.rb +3 -5
  218. data/lib/bandwidth-sdk/models/update_conference_member.rb +2 -4
  219. data/lib/bandwidth-sdk/models/verify_code_request.rb +2 -4
  220. data/lib/bandwidth-sdk/models/verify_code_response.rb +2 -4
  221. data/lib/bandwidth-sdk/models/voice_api_error.rb +2 -4
  222. data/lib/bandwidth-sdk/models/voice_code_response.rb +2 -4
  223. data/lib/bandwidth-sdk/version.rb +2 -2
  224. data/lib/bandwidth-sdk.rb +5 -1
  225. data/openapi-config.yml +1 -0
  226. data/openapitools.json +7 -0
  227. data/ruby-notes.md +11 -60
  228. data/spec/api/calls_api_spec.rb +228 -0
  229. data/spec/api/conferences_api_spec.rb +393 -0
  230. data/spec/api/media_api_spec.rb +129 -0
  231. data/spec/api/messages_api_spec.rb +193 -0
  232. data/spec/api/mfa_api_spec.rb +130 -0
  233. data/spec/api/phone_number_lookup_api_spec.rb +100 -0
  234. data/spec/api/recordings_api_spec.rb +395 -0
  235. data/spec/api/statistics_api_spec.rb +45 -0
  236. data/spec/api_client_spec.rb +377 -0
  237. data/spec/api_error_spec.rb +23 -0
  238. data/spec/call_utils.rb +28 -28
  239. data/spec/configuration_spec.rb +178 -0
  240. data/spec/integration/calls_api_integration_spec.rb +88 -69
  241. data/spec/integration/conferences_api_integration_spec.rb +74 -68
  242. data/spec/integration/media_api_integration_spec.rb +38 -32
  243. data/spec/integration/messages_api_integration_spec.rb +79 -38
  244. data/spec/integration/mfa_api_integration_spec.rb +41 -33
  245. data/spec/integration/phone_number_lookup_api_integration_spec.rb +26 -22
  246. data/spec/integration/recordings_api_integration_spec.rb +84 -77
  247. data/spec/integration/statistics_api_integration_spec.rb +15 -14
  248. data/spec/{unit/models → models}/bxml/bxml_spec.rb +0 -2
  249. data/spec/{unit/models → models}/bxml/nestable_verb_spec.rb +1 -3
  250. data/spec/{unit/models → models}/bxml/response_spec.rb +0 -2
  251. data/spec/{unit/models → models}/bxml/verb_spec.rb +1 -14
  252. data/spec/{unit/models → models}/bxml/verbs/bridge_spec.rb +0 -2
  253. data/spec/{unit/models → models}/bxml/verbs/conference_spec.rb +0 -2
  254. data/spec/models/bxml/verbs/custom_param_spec.rb +36 -0
  255. data/spec/{unit/models → models}/bxml/verbs/forward_spec.rb +0 -2
  256. data/spec/{unit/models → models}/bxml/verbs/gather_spec.rb +0 -2
  257. data/spec/{unit/models → models}/bxml/verbs/hangup_spec.rb +0 -2
  258. data/spec/{unit/models → models}/bxml/verbs/pause_recording_spec.rb +0 -2
  259. data/spec/{unit/models → models}/bxml/verbs/pause_spec.rb +0 -2
  260. data/spec/{unit/models → models}/bxml/verbs/phone_number_spec.rb +0 -2
  261. data/spec/{unit/models → models}/bxml/verbs/play_audio_spec.rb +0 -2
  262. data/spec/{unit/models → models}/bxml/verbs/record_spec.rb +0 -2
  263. data/spec/{unit/models → models}/bxml/verbs/redirect_spec.rb +0 -2
  264. data/spec/{unit/models → models}/bxml/verbs/resume_recording_spec.rb +0 -2
  265. data/spec/{unit/models → models}/bxml/verbs/ring_spec.rb +0 -2
  266. data/spec/{unit/models → models}/bxml/verbs/send_dtmf_spec.rb +0 -2
  267. data/spec/{unit/models → models}/bxml/verbs/sip_uri_spec.rb +0 -2
  268. data/spec/{unit/models → models}/bxml/verbs/speak_sentence_spec.rb +0 -2
  269. data/spec/{unit/models → models}/bxml/verbs/start_gather_spec.rb +0 -2
  270. data/spec/{unit/models → models}/bxml/verbs/start_recording_spec.rb +0 -2
  271. data/spec/{unit/models → models}/bxml/verbs/start_stream_spec.rb +2 -4
  272. data/spec/models/bxml/verbs/start_transcription_spec.rb +74 -0
  273. data/spec/{unit/models → models}/bxml/verbs/stop_gather_spec.rb +0 -2
  274. data/spec/{unit/models → models}/bxml/verbs/stop_recording_spec.rb +0 -2
  275. data/spec/{unit/models → models}/bxml/verbs/stop_stream_spec.rb +0 -2
  276. data/spec/models/bxml/verbs/stop_transcription_spec.rb +34 -0
  277. data/spec/{unit/models → models}/bxml/verbs/stream_param_spec.rb +0 -2
  278. data/spec/{unit/models → models}/bxml/verbs/tag_spec.rb +0 -2
  279. data/spec/{unit/models → models}/bxml/verbs/transfer_spec.rb +0 -2
  280. data/spec/models/call_state_enum_spec.rb +16 -0
  281. data/spec/models/call_state_spec.rb +181 -0
  282. data/spec/models/deferred_result_spec.rb +87 -0
  283. data/spec/models/message_spec.rb +145 -0
  284. data/spec/models/verify_code_request_spec.rb +134 -0
  285. data/spec/spec_helper.rb +48 -31
  286. metadata +146 -254
  287. data/spec/unit/api/calls_api_spec.rb +0 -89
  288. data/spec/unit/api/conferences_api_spec.rb +0 -163
  289. data/spec/unit/api/media_api_spec.rb +0 -90
  290. data/spec/unit/api/messages_api_spec.rb +0 -73
  291. data/spec/unit/api/mfa_api_spec.rb +0 -74
  292. data/spec/unit/api/phone_number_lookup_api_spec.rb +0 -61
  293. data/spec/unit/api/recordings_api_spec.rb +0 -177
  294. data/spec/unit/api/statistics_api_spec.rb +0 -47
  295. data/spec/unit/models/account_statistics_spec.rb +0 -40
  296. data/spec/unit/models/answer_callback_spec.rb +0 -112
  297. data/spec/unit/models/bridge_complete_callback_spec.rb +0 -124
  298. data/spec/unit/models/bridge_target_complete_callback_spec.rb +0 -106
  299. data/spec/unit/models/call_direction_enum_spec.rb +0 -28
  300. data/spec/unit/models/call_recording_metadata_spec.rb +0 -136
  301. data/spec/unit/models/call_state_enum_spec.rb +0 -28
  302. data/spec/unit/models/call_state_spec.rb +0 -136
  303. data/spec/unit/models/callback_method_enum_spec.rb +0 -28
  304. data/spec/unit/models/code_request_spec.rb +0 -64
  305. data/spec/unit/models/conference_completed_callback_spec.rb +0 -58
  306. data/spec/unit/models/conference_created_callback_spec.rb +0 -58
  307. data/spec/unit/models/conference_member_exit_callback_spec.rb +0 -76
  308. data/spec/unit/models/conference_member_join_callback_spec.rb +0 -76
  309. data/spec/unit/models/conference_member_spec.rb +0 -64
  310. data/spec/unit/models/conference_recording_available_callback_spec.rb +0 -112
  311. data/spec/unit/models/conference_recording_metadata_spec.rb +0 -94
  312. data/spec/unit/models/conference_redirect_callback_spec.rb +0 -58
  313. data/spec/unit/models/conference_spec.rb +0 -76
  314. data/spec/unit/models/conference_state_enum_spec.rb +0 -28
  315. data/spec/unit/models/create_call_response_spec.rb +0 -154
  316. data/spec/unit/models/create_call_spec.rb +0 -142
  317. data/spec/unit/models/create_lookup_response_spec.rb +0 -40
  318. data/spec/unit/models/create_message_request_error_spec.rb +0 -46
  319. data/spec/unit/models/deferred_result_spec.rb +0 -40
  320. data/spec/unit/models/disconnect_callback_spec.rb +0 -130
  321. data/spec/unit/models/diversion_spec.rb +0 -70
  322. data/spec/unit/models/dtmf_callback_spec.rb +0 -130
  323. data/spec/unit/models/field_error_spec.rb +0 -40
  324. data/spec/unit/models/file_format_enum_spec.rb +0 -28
  325. data/spec/unit/models/gather_callback_spec.rb +0 -136
  326. data/spec/unit/models/inbound_message_callback_message_spec.rb +0 -100
  327. data/spec/unit/models/inbound_message_callback_spec.rb +0 -58
  328. data/spec/unit/models/initiate_callback_spec.rb +0 -100
  329. data/spec/unit/models/list_message_direction_enum_spec.rb +0 -28
  330. data/spec/unit/models/list_message_item_spec.rb +0 -124
  331. data/spec/unit/models/lookup_request_spec.rb +0 -34
  332. data/spec/unit/models/lookup_result_spec.rb +0 -82
  333. data/spec/unit/models/lookup_status_enum_spec.rb +0 -28
  334. data/spec/unit/models/lookup_status_spec.rb +0 -52
  335. data/spec/unit/models/machine_detection_complete_callback_spec.rb +0 -112
  336. data/spec/unit/models/machine_detection_configuration_spec.rb +0 -118
  337. data/spec/unit/models/machine_detection_mode_enum_spec.rb +0 -28
  338. data/spec/unit/models/media_spec.rb +0 -46
  339. data/spec/unit/models/message_delivered_callback_message_spec.rb +0 -100
  340. data/spec/unit/models/message_delivered_callback_spec.rb +0 -58
  341. data/spec/unit/models/message_direction_enum_spec.rb +0 -28
  342. data/spec/unit/models/message_failed_callback_message_spec.rb +0 -100
  343. data/spec/unit/models/message_failed_callback_spec.rb +0 -64
  344. data/spec/unit/models/message_request_spec.rb +0 -76
  345. data/spec/unit/models/message_sending_callback_message_spec.rb +0 -100
  346. data/spec/unit/models/message_sending_callback_spec.rb +0 -58
  347. data/spec/unit/models/message_spec.rb +0 -100
  348. data/spec/unit/models/message_status_enum_spec.rb +0 -28
  349. data/spec/unit/models/message_type_enum_spec.rb +0 -28
  350. data/spec/unit/models/messages_list_spec.rb +0 -46
  351. data/spec/unit/models/messaging_code_response_spec.rb +0 -34
  352. data/spec/unit/models/messaging_request_error_spec.rb +0 -40
  353. data/spec/unit/models/mfa_forbidden_request_error_spec.rb +0 -34
  354. data/spec/unit/models/mfa_request_error_spec.rb +0 -40
  355. data/spec/unit/models/mfa_unauthorized_request_error_spec.rb +0 -34
  356. data/spec/unit/models/page_info_spec.rb +0 -52
  357. data/spec/unit/models/priority_enum_spec.rb +0 -28
  358. data/spec/unit/models/recording_available_callback_spec.rb +0 -160
  359. data/spec/unit/models/recording_complete_callback_spec.rb +0 -160
  360. data/spec/unit/models/recording_state_enum_spec.rb +0 -28
  361. data/spec/unit/models/redirect_callback_spec.rb +0 -124
  362. data/spec/unit/models/redirect_method_enum_spec.rb +0 -28
  363. data/spec/unit/models/stir_shaken_spec.rb +0 -46
  364. data/spec/unit/models/tag_spec.rb +0 -40
  365. data/spec/unit/models/tn_lookup_request_error_spec.rb +0 -34
  366. data/spec/unit/models/transcribe_recording_spec.rb +0 -64
  367. data/spec/unit/models/transcription_available_callback_spec.rb +0 -154
  368. data/spec/unit/models/transcription_list_spec.rb +0 -34
  369. data/spec/unit/models/transcription_metadata_spec.rb +0 -52
  370. data/spec/unit/models/transcription_spec.rb +0 -40
  371. data/spec/unit/models/transfer_answer_callback_spec.rb +0 -118
  372. data/spec/unit/models/transfer_complete_callback_spec.rb +0 -136
  373. data/spec/unit/models/transfer_disconnect_callback_spec.rb +0 -148
  374. data/spec/unit/models/update_call_recording_spec.rb +0 -34
  375. data/spec/unit/models/update_call_spec.rb +0 -88
  376. data/spec/unit/models/update_conference_member_spec.rb +0 -46
  377. data/spec/unit/models/update_conference_spec.rb +0 -82
  378. data/spec/unit/models/verify_code_request_spec.rb +0 -52
  379. data/spec/unit/models/verify_code_response_spec.rb +0 -34
  380. data/spec/unit/models/voice_api_error_spec.rb +0 -46
  381. data/spec/unit/models/voice_code_response_spec.rb +0 -34
data/bandwidth.yml CHANGED
@@ -167,9 +167,11 @@ paths:
167
167
  - $ref: '#/components/parameters/errorCode'
168
168
  - $ref: '#/components/parameters/fromDateTime'
169
169
  - $ref: '#/components/parameters/toDateTime'
170
+ - $ref: '#/components/parameters/campaignId'
170
171
  - $ref: '#/components/parameters/sort'
171
172
  - $ref: '#/components/parameters/pageToken'
172
173
  - $ref: '#/components/parameters/limit'
174
+ - $ref: '#/components/parameters/limitTotalCount'
173
175
  responses:
174
176
  '200':
175
177
  $ref: '#/components/responses/listMessagesResponse'
@@ -241,7 +243,7 @@ paths:
241
243
  approximately in order, but exact ordering is not guaranteed.
242
244
  operationId: createCall
243
245
  parameters:
244
- - $ref: '#/components/parameters/accountId1'
246
+ - $ref: '#/components/parameters/accountId'
245
247
  requestBody:
246
248
  $ref: '#/components/requestBodies/createCallRequest'
247
249
  responses:
@@ -282,7 +284,7 @@ paths:
282
284
  7 days, you will get an HTTP 404 response.
283
285
  operationId: getCallState
284
286
  parameters:
285
- - $ref: '#/components/parameters/accountId1'
287
+ - $ref: '#/components/parameters/accountId'
286
288
  - $ref: '#/components/parameters/callId'
287
289
  responses:
288
290
  '200':
@@ -312,13 +314,13 @@ paths:
312
314
  BXML document.
313
315
  operationId: updateCall
314
316
  parameters:
315
- - $ref: '#/components/parameters/accountId1'
317
+ - $ref: '#/components/parameters/accountId'
316
318
  - $ref: '#/components/parameters/callId'
317
319
  requestBody:
318
320
  $ref: '#/components/requestBodies/updateCallRequest'
319
321
  responses:
320
322
  '200':
321
- description: Call Successfully Modified
323
+ description: Call was successfully modified.
322
324
  '400':
323
325
  $ref: '#/components/responses/voiceBadRequestError'
324
326
  '401':
@@ -346,13 +348,13 @@ paths:
346
348
  description: Interrupts and replaces an active call's BXML document.
347
349
  operationId: updateCallBxml
348
350
  parameters:
349
- - $ref: '#/components/parameters/accountId1'
351
+ - $ref: '#/components/parameters/accountId'
350
352
  - $ref: '#/components/parameters/callId'
351
353
  requestBody:
352
354
  $ref: '#/components/requestBodies/updateCallBxmlRequest'
353
355
  responses:
354
356
  '204':
355
- description: Call BXML Successfully Replaced
357
+ description: Call BXML was successfully replaced.
356
358
  '400':
357
359
  $ref: '#/components/responses/voiceBadRequestError'
358
360
  '401':
@@ -388,7 +390,7 @@ paths:
388
390
  of conference records.
389
391
  operationId: listConferences
390
392
  parameters:
391
- - $ref: '#/components/parameters/accountId1'
393
+ - $ref: '#/components/parameters/accountId'
392
394
  - $ref: '#/components/parameters/name'
393
395
  - $ref: '#/components/parameters/minCreatedTime'
394
396
  - $ref: '#/components/parameters/maxCreatedTime'
@@ -422,7 +424,7 @@ paths:
422
424
  description: Returns information about the specified conference.
423
425
  operationId: getConference
424
426
  parameters:
425
- - $ref: '#/components/parameters/accountId1'
427
+ - $ref: '#/components/parameters/accountId'
426
428
  - $ref: '#/components/parameters/conferenceId'
427
429
  responses:
428
430
  '200':
@@ -450,13 +452,13 @@ paths:
450
452
  description: Update the conference state.
451
453
  operationId: updateConference
452
454
  parameters:
453
- - $ref: '#/components/parameters/accountId1'
455
+ - $ref: '#/components/parameters/accountId'
454
456
  - $ref: '#/components/parameters/conferenceId'
455
457
  requestBody:
456
458
  $ref: '#/components/requestBodies/updateConferenceRequest'
457
459
  responses:
458
460
  '204':
459
- description: Conference successfully modified
461
+ description: Conference was successfully modified.
460
462
  '400':
461
463
  $ref: '#/components/responses/voiceBadRequestError'
462
464
  '401':
@@ -482,13 +484,13 @@ paths:
482
484
  description: Update the conference BXML document.
483
485
  operationId: updateConferenceBxml
484
486
  parameters:
485
- - $ref: '#/components/parameters/accountId1'
487
+ - $ref: '#/components/parameters/accountId'
486
488
  - $ref: '#/components/parameters/conferenceId'
487
489
  requestBody:
488
490
  $ref: '#/components/requestBodies/updateConferenceBxmlRequest'
489
491
  responses:
490
492
  '204':
491
- description: Conference successfully modified
493
+ description: Conference successfully modified.
492
494
  '400':
493
495
  $ref: '#/components/responses/voiceBadRequestError'
494
496
  '401':
@@ -514,7 +516,7 @@ paths:
514
516
  description: Returns information about the specified conference member.
515
517
  operationId: getConferenceMember
516
518
  parameters:
517
- - $ref: '#/components/parameters/accountId1'
519
+ - $ref: '#/components/parameters/accountId'
518
520
  - $ref: '#/components/parameters/conferenceId'
519
521
  - $ref: '#/components/parameters/memberId'
520
522
  responses:
@@ -543,14 +545,14 @@ paths:
543
545
  description: Updates settings for a particular conference member.
544
546
  operationId: updateConferenceMember
545
547
  parameters:
546
- - $ref: '#/components/parameters/accountId1'
548
+ - $ref: '#/components/parameters/accountId'
547
549
  - $ref: '#/components/parameters/conferenceId'
548
550
  - $ref: '#/components/parameters/memberId'
549
551
  requestBody:
550
552
  $ref: '#/components/requestBodies/updateConferenceMemberRequest'
551
553
  responses:
552
554
  '204':
553
- description: Conference member successfully modified
555
+ description: Conference member was successfully modified.
554
556
  '400':
555
557
  $ref: '#/components/responses/voiceBadRequestError'
556
558
  '401':
@@ -578,7 +580,7 @@ paths:
578
580
  took place during the specified conference.
579
581
  operationId: listConferenceRecordings
580
582
  parameters:
581
- - $ref: '#/components/parameters/accountId1'
583
+ - $ref: '#/components/parameters/accountId'
582
584
  - $ref: '#/components/parameters/conferenceId'
583
585
  responses:
584
586
  '200':
@@ -608,7 +610,7 @@ paths:
608
610
  description: Returns metadata for the specified recording.
609
611
  operationId: getConferenceRecording
610
612
  parameters:
611
- - $ref: '#/components/parameters/accountId1'
613
+ - $ref: '#/components/parameters/accountId'
612
614
  - $ref: '#/components/parameters/conferenceId'
613
615
  - $ref: '#/components/parameters/recordingId'
614
616
  responses:
@@ -639,7 +641,7 @@ paths:
639
641
  description: Downloads the specified recording file.
640
642
  operationId: downloadConferenceRecording
641
643
  parameters:
642
- - $ref: '#/components/parameters/accountId1'
644
+ - $ref: '#/components/parameters/accountId'
643
645
  - $ref: '#/components/parameters/conferenceId'
644
646
  - $ref: '#/components/parameters/recordingId'
645
647
  responses:
@@ -679,7 +681,7 @@ paths:
679
681
  empty if no recordings match the specified criteria.
680
682
  operationId: listAccountCallRecordings
681
683
  parameters:
682
- - $ref: '#/components/parameters/accountId1'
684
+ - $ref: '#/components/parameters/accountId'
683
685
  - $ref: '#/components/parameters/to'
684
686
  - $ref: '#/components/parameters/from'
685
687
  - $ref: '#/components/parameters/minStartTime'
@@ -712,13 +714,13 @@ paths:
712
714
  description: Pause or resume a recording on an active phone call.
713
715
  operationId: updateCallRecordingState
714
716
  parameters:
715
- - $ref: '#/components/parameters/accountId1'
717
+ - $ref: '#/components/parameters/accountId'
716
718
  - $ref: '#/components/parameters/callId'
717
719
  requestBody:
718
720
  $ref: '#/components/requestBodies/updateCallRecordingRequest'
719
721
  responses:
720
722
  '200':
721
- description: Recording state successfully modified
723
+ description: Recording state was successfully modified.
722
724
  '400':
723
725
  $ref: '#/components/responses/voiceBadRequestError'
724
726
  '401':
@@ -746,7 +748,7 @@ paths:
746
748
  that took place during the specified call.
747
749
  operationId: listCallRecordings
748
750
  parameters:
749
- - $ref: '#/components/parameters/accountId1'
751
+ - $ref: '#/components/parameters/accountId'
750
752
  - $ref: '#/components/parameters/callId'
751
753
  responses:
752
754
  '200':
@@ -776,7 +778,7 @@ paths:
776
778
  description: Returns metadata for the specified recording.
777
779
  operationId: getCallRecording
778
780
  parameters:
779
- - $ref: '#/components/parameters/accountId1'
781
+ - $ref: '#/components/parameters/accountId'
780
782
  - $ref: '#/components/parameters/callId'
781
783
  - $ref: '#/components/parameters/recordingId'
782
784
  responses:
@@ -813,12 +815,12 @@ paths:
813
815
  irreversible, can take an additional 24 to 48 hours.
814
816
  operationId: deleteRecording
815
817
  parameters:
816
- - $ref: '#/components/parameters/accountId1'
818
+ - $ref: '#/components/parameters/accountId'
817
819
  - $ref: '#/components/parameters/callId'
818
820
  - $ref: '#/components/parameters/recordingId'
819
821
  responses:
820
822
  '204':
821
- description: Recording Deleted
823
+ description: Recording was deleted.
822
824
  '400':
823
825
  $ref: '#/components/responses/voiceBadRequestError'
824
826
  '401':
@@ -844,7 +846,7 @@ paths:
844
846
  description: Downloads the specified recording.
845
847
  operationId: downloadCallRecording
846
848
  parameters:
847
- - $ref: '#/components/parameters/accountId1'
849
+ - $ref: '#/components/parameters/accountId'
848
850
  - $ref: '#/components/parameters/callId'
849
851
  - $ref: '#/components/parameters/recordingId'
850
852
  responses:
@@ -873,12 +875,12 @@ paths:
873
875
  description: Deletes the specified recording's media.
874
876
  operationId: deleteRecordingMedia
875
877
  parameters:
876
- - $ref: '#/components/parameters/accountId1'
878
+ - $ref: '#/components/parameters/accountId'
877
879
  - $ref: '#/components/parameters/callId'
878
880
  - $ref: '#/components/parameters/recordingId'
879
881
  responses:
880
882
  '204':
881
- description: The recording media was successfully deleted
883
+ description: The recording media was successfully deleted.
882
884
  '400':
883
885
  $ref: '#/components/responses/voiceBadRequestError'
884
886
  '401':
@@ -918,7 +920,7 @@ paths:
918
920
  item.
919
921
  operationId: getCallTranscription
920
922
  parameters:
921
- - $ref: '#/components/parameters/accountId1'
923
+ - $ref: '#/components/parameters/accountId'
922
924
  - $ref: '#/components/parameters/callId'
923
925
  - $ref: '#/components/parameters/recordingId'
924
926
  responses:
@@ -953,14 +955,14 @@ paths:
953
955
  less than 4 hours.
954
956
  operationId: transcribeCallRecording
955
957
  parameters:
956
- - $ref: '#/components/parameters/accountId1'
958
+ - $ref: '#/components/parameters/accountId'
957
959
  - $ref: '#/components/parameters/callId'
958
960
  - $ref: '#/components/parameters/recordingId'
959
961
  requestBody:
960
962
  $ref: '#/components/requestBodies/transcribeRecordingRequest'
961
963
  responses:
962
964
  '204':
963
- description: Transcription successfully requested
965
+ description: Transcription was successfully requested.
964
966
  '400':
965
967
  $ref: '#/components/responses/voiceBadRequestError'
966
968
  '401':
@@ -991,12 +993,12 @@ paths:
991
993
  can take an additional 24 to 48 hours.
992
994
  operationId: deleteCallTranscription
993
995
  parameters:
994
- - $ref: '#/components/parameters/accountId1'
996
+ - $ref: '#/components/parameters/accountId'
995
997
  - $ref: '#/components/parameters/callId'
996
998
  - $ref: '#/components/parameters/recordingId'
997
999
  responses:
998
1000
  '204':
999
- description: The transcription was successfully deleted
1001
+ description: The transcription was successfully deleted.
1000
1002
  '400':
1001
1003
  $ref: '#/components/responses/voiceBadRequestError'
1002
1004
  '401':
@@ -1022,7 +1024,7 @@ paths:
1022
1024
  description: Returns details about the current state of the account.
1023
1025
  operationId: getStatistics
1024
1026
  parameters:
1025
- - $ref: '#/components/parameters/accountId1'
1027
+ - $ref: '#/components/parameters/accountId'
1026
1028
  responses:
1027
1029
  '200':
1028
1030
  $ref: '#/components/responses/getStatisticsResponse'
@@ -1051,7 +1053,7 @@ paths:
1051
1053
  description: Send an MFA Code via a phone call.
1052
1054
  operationId: generateVoiceCode
1053
1055
  parameters:
1054
- - $ref: '#/components/parameters/accountId2'
1056
+ - $ref: '#/components/parameters/accountId'
1055
1057
  requestBody:
1056
1058
  $ref: '#/components/requestBodies/codeRequest'
1057
1059
  responses:
@@ -1076,7 +1078,7 @@ paths:
1076
1078
  description: Send an MFA code via text message (SMS).
1077
1079
  operationId: generateMessagingCode
1078
1080
  parameters:
1079
- - $ref: '#/components/parameters/accountId2'
1081
+ - $ref: '#/components/parameters/accountId'
1080
1082
  requestBody:
1081
1083
  $ref: '#/components/requestBodies/codeRequest'
1082
1084
  responses:
@@ -1099,7 +1101,7 @@ paths:
1099
1101
  description: Verify a previously sent MFA code.
1100
1102
  operationId: verifyCode
1101
1103
  parameters:
1102
- - $ref: '#/components/parameters/accountId2'
1104
+ - $ref: '#/components/parameters/accountId'
1103
1105
  requestBody:
1104
1106
  $ref: '#/components/requestBodies/codeVerify'
1105
1107
  responses:
@@ -1124,7 +1126,7 @@ paths:
1124
1126
  tags:
1125
1127
  - Phone Number Lookup
1126
1128
  parameters:
1127
- - $ref: '#/components/parameters/accountId3'
1129
+ - $ref: '#/components/parameters/accountId'
1128
1130
  requestBody:
1129
1131
  $ref: '#/components/requestBodies/createLookupRequest'
1130
1132
  responses:
@@ -1153,7 +1155,7 @@ paths:
1153
1155
  tags:
1154
1156
  - Phone Number Lookup
1155
1157
  parameters:
1156
- - $ref: '#/components/parameters/accountId3'
1158
+ - $ref: '#/components/parameters/accountId'
1157
1159
  - $ref: '#/components/parameters/requestId'
1158
1160
  responses:
1159
1161
  '200':
@@ -1175,7 +1177,10 @@ components:
1175
1177
  schemas:
1176
1178
  priorityEnum:
1177
1179
  type: string
1178
- description: The priority specified by the user.
1180
+ description: |-
1181
+ The priority specified by the user.
1182
+
1183
+ Not supported on MMS.
1179
1184
  enum:
1180
1185
  - default
1181
1186
  - high
@@ -1233,7 +1238,9 @@ components:
1233
1238
  properties:
1234
1239
  totalCount:
1235
1240
  type: integer
1236
- description: Total number of messages matched by the search.
1241
+ description: >-
1242
+ The total number of messages matched by the search. When the request
1243
+ has limitTotalCount set to true this value is limited to 10,000.
1237
1244
  example: 100
1238
1245
  pageInfo:
1239
1246
  $ref: '#/components/schemas/pageInfo'
@@ -1277,6 +1284,7 @@ components:
1277
1284
  example: 9902
1278
1285
  receiveTime:
1279
1286
  type: string
1287
+ format: date-time
1280
1288
  description: The ISO 8601 datetime of the message.
1281
1289
  example: 2020-04-07T14:03:07.000Z
1282
1290
  carrierName:
@@ -1310,6 +1318,11 @@ components:
1310
1318
  description: The campaign class of the message if it has one.
1311
1319
  nullable: true
1312
1320
  example: T
1321
+ campaignId:
1322
+ type: string
1323
+ description: The campaign ID of the message if it has one.
1324
+ nullable: true
1325
+ example: CJEUMDK
1313
1326
  pageInfo:
1314
1327
  title: PageInfo
1315
1328
  type: object
@@ -1402,6 +1415,7 @@ components:
1402
1415
  example: 93de2206-9669-4e07-948d-329f4b722ee2
1403
1416
  time:
1404
1417
  type: string
1418
+ format: date-time
1405
1419
  description: The datetime stamp of the message in ISO 8601
1406
1420
  example: 2022-09-14T18:20:16.000Z
1407
1421
  segmentCount:
@@ -1446,6 +1460,11 @@ components:
1446
1460
  example: custom tag
1447
1461
  priority:
1448
1462
  $ref: '#/components/schemas/priorityEnum'
1463
+ expiration:
1464
+ type: string
1465
+ format: date-time
1466
+ description: The expiration date-time set by the user.
1467
+ example: '2021-02-01T11:29:18-05:00'
1449
1468
  messageRequest:
1450
1469
  title: MessageRequest
1451
1470
  type: object
@@ -1504,10 +1523,14 @@ components:
1504
1523
  $ref: '#/components/schemas/priorityEnum'
1505
1524
  expiration:
1506
1525
  type: string
1526
+ format: date-time
1507
1527
  description: >-
1508
1528
  A string with the date/time value that the message will
1509
1529
  automatically expire by. This must be a valid RFC-3339 value, e.g.,
1510
- 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
1530
+ 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a
1531
+ date-time in the future.
1532
+
1533
+ Not supported on MMS.
1511
1534
  example: '2021-02-01T11:29:18-05:00'
1512
1535
  inboundMessageCallback:
1513
1536
  description: Inbound Message Callback
@@ -1527,68 +1550,71 @@ components:
1527
1550
  type: string
1528
1551
  example: Incoming message received
1529
1552
  message:
1530
- type: object
1531
- properties:
1532
- id:
1533
- type: string
1534
- example: 1661365814859loidf7mcwd4qacn7
1535
- owner:
1536
- type: string
1537
- example: '+15553332222'
1538
- applicationId:
1539
- type: string
1540
- example: 93de2206-9669-4e07-948d-329f4b722ee2
1541
- time:
1542
- type: string
1543
- format: date-time
1544
- example: 2016-09-14T18:20:16.000Z
1545
- segmentCount:
1546
- type: integer
1547
- example: 1
1548
- direction:
1549
- $ref: '#/components/schemas/messageDirectionEnum'
1550
- to:
1551
- uniqueItems: true
1552
- type: array
1553
- items:
1554
- type: string
1555
- example:
1556
- - '+15552223333'
1557
- from:
1558
- type: string
1559
- example: '+15553332222'
1560
- text:
1561
- type: string
1562
- example: Hello world
1563
- tag:
1564
- type: string
1565
- example: custom string
1566
- media:
1567
- type: array
1568
- items:
1569
- type: string
1570
- format: uri
1571
- example:
1572
- - https://dev.bandwidth.com/images/bandwidth-logo.png
1573
- - https://dev.bandwidth.com/images/github_logo.png
1574
- priority:
1575
- $ref: '#/components/schemas/priorityEnum'
1576
- required:
1577
- - id
1578
- - owner
1579
- - applicationId
1580
- - time
1581
- - segmentCount
1582
- - direction
1583
- - to
1584
- - from
1585
- - text
1553
+ $ref: '#/components/schemas/inboundMessageCallbackMessage'
1586
1554
  required:
1587
1555
  - time
1588
1556
  - type
1589
1557
  - to
1590
1558
  - description
1591
1559
  - message
1560
+ inboundMessageCallbackMessage:
1561
+ description: Inbound Message Callback Message Schema
1562
+ type: object
1563
+ properties:
1564
+ id:
1565
+ type: string
1566
+ example: 1661365814859loidf7mcwd4qacn7
1567
+ owner:
1568
+ type: string
1569
+ example: '+15553332222'
1570
+ applicationId:
1571
+ type: string
1572
+ example: 93de2206-9669-4e07-948d-329f4b722ee2
1573
+ time:
1574
+ type: string
1575
+ format: date-time
1576
+ example: 2016-09-14T18:20:16.000Z
1577
+ segmentCount:
1578
+ type: integer
1579
+ example: 1
1580
+ direction:
1581
+ $ref: '#/components/schemas/messageDirectionEnum'
1582
+ to:
1583
+ uniqueItems: true
1584
+ type: array
1585
+ items:
1586
+ type: string
1587
+ example:
1588
+ - '+15552223333'
1589
+ from:
1590
+ type: string
1591
+ example: '+15553332222'
1592
+ text:
1593
+ type: string
1594
+ example: Hello world
1595
+ tag:
1596
+ type: string
1597
+ example: custom string
1598
+ media:
1599
+ type: array
1600
+ items:
1601
+ type: string
1602
+ format: uri
1603
+ example:
1604
+ - https://dev.bandwidth.com/images/bandwidth-logo.png
1605
+ - https://dev.bandwidth.com/images/github_logo.png
1606
+ priority:
1607
+ $ref: '#/components/schemas/priorityEnum'
1608
+ required:
1609
+ - id
1610
+ - owner
1611
+ - applicationId
1612
+ - time
1613
+ - segmentCount
1614
+ - direction
1615
+ - to
1616
+ - from
1617
+ - text
1592
1618
  messageSendingCallback:
1593
1619
  type: object
1594
1620
  description: Message Sending Callback
@@ -1607,70 +1633,73 @@ components:
1607
1633
  type: string
1608
1634
  example: Message is sending to carrier
1609
1635
  message:
1610
- type: object
1611
- properties:
1612
- id:
1613
- type: string
1614
- example: 1661365814859loidf7mcwd4qacn7
1615
- owner:
1616
- type: string
1617
- example: '+15553332222'
1618
- applicationId:
1619
- type: string
1620
- example: 93de2206-9669-4e07-948d-329f4b722ee2
1621
- time:
1622
- type: string
1623
- format: date-time
1624
- example: 2016-09-14T18:20:16.000Z
1625
- segmentCount:
1626
- type: integer
1627
- example: 1
1628
- direction:
1629
- $ref: '#/components/schemas/messageDirectionEnum'
1630
- to:
1631
- uniqueItems: true
1632
- type: array
1633
- items:
1634
- type: string
1635
- example:
1636
- - '+15552223333'
1637
- from:
1638
- type: string
1639
- example: '+15553332222'
1640
- text:
1641
- type: string
1642
- example: ''
1643
- tag:
1644
- type: string
1645
- example: custom string
1646
- media:
1647
- type: array
1648
- items:
1649
- type: string
1650
- format: uri
1651
- example:
1652
- - https://dev.bandwidth.com/images/bandwidth-logo.png
1653
- - https://dev.bandwidth.com/images/github_logo.png
1654
- priority:
1655
- $ref: '#/components/schemas/priorityEnum'
1656
- required:
1657
- - id
1658
- - owner
1659
- - applicationId
1660
- - time
1661
- - segmentCount
1662
- - direction
1663
- - to
1664
- - from
1665
- - text
1666
- - media
1667
- - priority
1636
+ $ref: '#/components/schemas/messageSendingCallbackMessage'
1668
1637
  required:
1669
1638
  - time
1670
1639
  - type
1671
1640
  - to
1672
1641
  - description
1673
1642
  - message
1643
+ messageSendingCallbackMessage:
1644
+ description: Message Sending Callback Message Schema
1645
+ type: object
1646
+ properties:
1647
+ id:
1648
+ type: string
1649
+ example: 1661365814859loidf7mcwd4qacn7
1650
+ owner:
1651
+ type: string
1652
+ example: '+15553332222'
1653
+ applicationId:
1654
+ type: string
1655
+ example: 93de2206-9669-4e07-948d-329f4b722ee2
1656
+ time:
1657
+ type: string
1658
+ format: date-time
1659
+ example: 2016-09-14T18:20:16.000Z
1660
+ segmentCount:
1661
+ type: integer
1662
+ example: 1
1663
+ direction:
1664
+ $ref: '#/components/schemas/messageDirectionEnum'
1665
+ to:
1666
+ uniqueItems: true
1667
+ type: array
1668
+ items:
1669
+ type: string
1670
+ example:
1671
+ - '+15552223333'
1672
+ from:
1673
+ type: string
1674
+ example: '+15553332222'
1675
+ text:
1676
+ type: string
1677
+ example: Hello world
1678
+ tag:
1679
+ type: string
1680
+ example: custom string
1681
+ media:
1682
+ type: array
1683
+ items:
1684
+ type: string
1685
+ format: uri
1686
+ example:
1687
+ - https://dev.bandwidth.com/images/bandwidth-logo.png
1688
+ - https://dev.bandwidth.com/images/github_logo.png
1689
+ priority:
1690
+ $ref: '#/components/schemas/priorityEnum'
1691
+ required:
1692
+ - id
1693
+ - owner
1694
+ - applicationId
1695
+ - time
1696
+ - segmentCount
1697
+ - direction
1698
+ - to
1699
+ - from
1700
+ - text
1701
+ - media
1702
+ - priority
1674
1703
  messageDeliveredCallback:
1675
1704
  description: Message Delivered Callback
1676
1705
  type: object
@@ -1689,69 +1718,72 @@ components:
1689
1718
  type: string
1690
1719
  example: Message delivered to carrier.
1691
1720
  message:
1692
- type: object
1693
- properties:
1694
- id:
1695
- type: string
1696
- example: 1661365814859loidf7mcwd4qacn7
1697
- owner:
1698
- type: string
1699
- example: '+15553332222'
1700
- applicationId:
1701
- type: string
1702
- example: 93de2206-9669-4e07-948d-329f4b722ee2
1703
- time:
1704
- type: string
1705
- format: date-time
1706
- example: 2016-09-14T18:20:16.000Z
1707
- segmentCount:
1708
- type: integer
1709
- example: 1
1710
- direction:
1711
- $ref: '#/components/schemas/messageDirectionEnum'
1712
- to:
1713
- uniqueItems: true
1714
- type: array
1715
- items:
1716
- type: string
1717
- example:
1718
- - '+15552223333'
1719
- from:
1720
- type: string
1721
- example: '+15553332222'
1722
- text:
1723
- type: string
1724
- example: ''
1725
- tag:
1726
- type: string
1727
- example: custom string
1728
- media:
1729
- type: array
1730
- items:
1731
- type: string
1732
- format: uri
1733
- example:
1734
- - https://dev.bandwidth.com/images/bandwidth-logo.png
1735
- - https://dev.bandwidth.com/images/github_logo.png
1736
- priority:
1737
- $ref: '#/components/schemas/priorityEnum'
1738
- required:
1739
- - id
1740
- - owner
1741
- - applicationId
1742
- - time
1743
- - segmentCount
1744
- - direction
1745
- - to
1746
- - from
1747
- - text
1748
- - tag
1721
+ $ref: '#/components/schemas/messageDeliveredCallbackMessage'
1749
1722
  required:
1750
1723
  - time
1751
1724
  - type
1752
1725
  - to
1753
1726
  - description
1754
1727
  - message
1728
+ messageDeliveredCallbackMessage:
1729
+ description: Message Delivered Callback Message Schema
1730
+ type: object
1731
+ properties:
1732
+ id:
1733
+ type: string
1734
+ example: 1661365814859loidf7mcwd4qacn7
1735
+ owner:
1736
+ type: string
1737
+ example: '+15553332222'
1738
+ applicationId:
1739
+ type: string
1740
+ example: 93de2206-9669-4e07-948d-329f4b722ee2
1741
+ time:
1742
+ type: string
1743
+ format: date-time
1744
+ example: 2016-09-14T18:20:16.000Z
1745
+ segmentCount:
1746
+ type: integer
1747
+ example: 1
1748
+ direction:
1749
+ $ref: '#/components/schemas/messageDirectionEnum'
1750
+ to:
1751
+ uniqueItems: true
1752
+ type: array
1753
+ items:
1754
+ type: string
1755
+ example:
1756
+ - '+15552223333'
1757
+ from:
1758
+ type: string
1759
+ example: '+15553332222'
1760
+ text:
1761
+ type: string
1762
+ example: Hello world
1763
+ tag:
1764
+ type: string
1765
+ example: custom string
1766
+ media:
1767
+ type: array
1768
+ items:
1769
+ type: string
1770
+ format: uri
1771
+ example:
1772
+ - https://dev.bandwidth.com/images/bandwidth-logo.png
1773
+ - https://dev.bandwidth.com/images/github_logo.png
1774
+ priority:
1775
+ $ref: '#/components/schemas/priorityEnum'
1776
+ required:
1777
+ - id
1778
+ - owner
1779
+ - applicationId
1780
+ - time
1781
+ - segmentCount
1782
+ - direction
1783
+ - to
1784
+ - from
1785
+ - text
1786
+ - tag
1755
1787
  messageFailedCallback:
1756
1788
  description: Message Failed Callback
1757
1789
  type: object
@@ -1770,64 +1802,7 @@ components:
1770
1802
  type: string
1771
1803
  example: rejected-unallocated-from-number
1772
1804
  message:
1773
- type: object
1774
- properties:
1775
- id:
1776
- type: string
1777
- example: 1661365814859loidf7mcwd4qacn7
1778
- owner:
1779
- type: string
1780
- example: '+15553332222'
1781
- applicationId:
1782
- type: string
1783
- example: 93de2206-9669-4e07-948d-329f4b722ee2
1784
- time:
1785
- type: string
1786
- format: date-time
1787
- example: 2016-09-14T18:20:16.000Z
1788
- segmentCount:
1789
- type: integer
1790
- example: 1
1791
- direction:
1792
- $ref: '#/components/schemas/messageDirectionEnum'
1793
- to:
1794
- uniqueItems: true
1795
- type: array
1796
- items:
1797
- type: string
1798
- example:
1799
- - '+15552223333'
1800
- from:
1801
- type: string
1802
- example: '+15553332222'
1803
- text:
1804
- type: string
1805
- example: ''
1806
- tag:
1807
- type: string
1808
- example: custom string
1809
- media:
1810
- type: array
1811
- items:
1812
- type: string
1813
- format: uri
1814
- example:
1815
- - https://dev.bandwidth.com/images/bandwidth-logo.png
1816
- - https://dev.bandwidth.com/images/github_logo.png
1817
- priority:
1818
- $ref: '#/components/schemas/priorityEnum'
1819
- required:
1820
- - id
1821
- - owner
1822
- - applicationId
1823
- - time
1824
- - segmentCount
1825
- - direction
1826
- - to
1827
- - from
1828
- - text
1829
- - tag
1830
- - priority
1805
+ $ref: '#/components/schemas/messageFailedCallbackMessage'
1831
1806
  errorCode:
1832
1807
  type: integer
1833
1808
  example: 9902
@@ -1838,6 +1813,66 @@ components:
1838
1813
  - description
1839
1814
  - message
1840
1815
  - errorCode
1816
+ messageFailedCallbackMessage:
1817
+ description: Message Failed Callback Message Schema
1818
+ type: object
1819
+ properties:
1820
+ id:
1821
+ type: string
1822
+ example: 1661365814859loidf7mcwd4qacn7
1823
+ owner:
1824
+ type: string
1825
+ example: '+15553332222'
1826
+ applicationId:
1827
+ type: string
1828
+ example: 93de2206-9669-4e07-948d-329f4b722ee2
1829
+ time:
1830
+ type: string
1831
+ format: date-time
1832
+ example: 2016-09-14T18:20:16.000Z
1833
+ segmentCount:
1834
+ type: integer
1835
+ example: 1
1836
+ direction:
1837
+ $ref: '#/components/schemas/messageDirectionEnum'
1838
+ to:
1839
+ uniqueItems: true
1840
+ type: array
1841
+ items:
1842
+ type: string
1843
+ example:
1844
+ - '+15552223333'
1845
+ from:
1846
+ type: string
1847
+ example: '+15553332222'
1848
+ text:
1849
+ type: string
1850
+ example: Hello world
1851
+ tag:
1852
+ type: string
1853
+ example: custom string
1854
+ media:
1855
+ type: array
1856
+ items:
1857
+ type: string
1858
+ format: uri
1859
+ example:
1860
+ - https://dev.bandwidth.com/images/bandwidth-logo.png
1861
+ - https://dev.bandwidth.com/images/github_logo.png
1862
+ priority:
1863
+ $ref: '#/components/schemas/priorityEnum'
1864
+ required:
1865
+ - id
1866
+ - owner
1867
+ - applicationId
1868
+ - time
1869
+ - segmentCount
1870
+ - direction
1871
+ - to
1872
+ - from
1873
+ - text
1874
+ - tag
1875
+ - priority
1841
1876
  callbackMethodEnum:
1842
1877
  type: string
1843
1878
  nullable: true
@@ -1860,7 +1895,7 @@ components:
1860
1895
  The HTTP method to use for the request to `redirectUrl`. GET
1861
1896
 
1862
1897
  or POST. Default value is POST.<br><br>Not allowed if `state` is
1863
- `completed`
1898
+ `completed`.
1864
1899
  example: POST
1865
1900
  recordingStateEnum:
1866
1901
  type: string
@@ -1873,18 +1908,21 @@ components:
1873
1908
  `paused` to pause an active recording
1874
1909
 
1875
1910
  `recording` to resume a paused recording
1911
+ example: paused
1876
1912
  callDirectionEnum:
1877
1913
  type: string
1878
1914
  enum:
1879
1915
  - inbound
1880
1916
  - outbound
1881
1917
  description: The direction of the call.
1918
+ example: inbound
1882
1919
  fileFormatEnum:
1883
1920
  type: string
1884
1921
  enum:
1885
1922
  - mp3
1886
1923
  - wav
1887
- description: The format that the recording is stored in
1924
+ description: The format that the recording is stored in.
1925
+ example: wav
1888
1926
  callStateEnum:
1889
1927
  nullable: true
1890
1928
  type: string
@@ -1902,6 +1940,7 @@ components:
1902
1940
  unanswered
1903
1941
 
1904
1942
  inbound call
1943
+ example: completed
1905
1944
  conferenceStateEnum:
1906
1945
  nullable: true
1907
1946
  type: string
@@ -1911,7 +1950,8 @@ components:
1911
1950
  - completed
1912
1951
  description: >-
1913
1952
  Setting the conference state to `completed` ends the conference and
1914
- ejects all members
1953
+ ejects all members.
1954
+ example: completed
1915
1955
  machineDetectionModeEnum:
1916
1956
  type: string
1917
1957
  default: async
@@ -1927,6 +1967,7 @@ components:
1927
1967
  complete
1928
1968
 
1929
1969
  and will include its result.
1970
+ example: async
1930
1971
  createCall:
1931
1972
  type: object
1932
1973
  required:
@@ -1937,9 +1978,11 @@ components:
1937
1978
  properties:
1938
1979
  to:
1939
1980
  type: string
1940
- description: |-
1981
+ description: >-
1941
1982
  The destination to call (must be an E.164 formatted number
1942
- (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.com`)).
1983
+
1984
+ (e.g. `+15555551212`) or a SIP URI (e.g.
1985
+ `sip:user@server.example`)).
1943
1986
  example: '+19195551234'
1944
1987
  from:
1945
1988
  type: string
@@ -1955,7 +1998,7 @@ components:
1955
1998
  nullable: true
1956
1999
  type: string
1957
2000
  example: >-
1958
- eyJhbGciOiJIUzI1NiJ9.WyJoaSJd.-znkjYyCkgz4djmHUPSXl9YrJ6Nix_XvmlwKGFh5ERM;encoding=jwt,aGVsbG8gd29ybGQ=;encoding=base64
2001
+ eyJhbGciOiJIUzI1NiJ9.WyJoaSJd.-znkjYyCkgz4djmHUPSXl9YrJ6Nix_XvmlwKGFh5ERM;encoding=jwt,aGVsbG8gd29ybGQ;encoding=base64
1959
2002
  description: >-
1960
2003
  A comma-separated list of 'User-To-User' headers to be sent
1961
2004
 
@@ -1989,9 +2032,9 @@ components:
1989
2032
  call.
1990
2033
 
1991
2034
 
1992
- Must use `https` if specifying `username` and `password`
2035
+ Must use `https` if specifying `username` and `password`.
1993
2036
  maxLength: 2048
1994
- example: https://www.myCallbackServer.com/webhooks/answer
2037
+ example: https://www.myCallbackServer.example/webhooks/answer
1995
2038
  answerMethod:
1996
2039
  $ref: '#/components/schemas/callbackMethodEnum'
1997
2040
  username:
@@ -2017,9 +2060,9 @@ components:
2017
2060
 
2018
2061
 
2019
2062
  Must use `https` if specifying `fallbackUsername` and
2020
- `fallbackPassword`
2063
+ `fallbackPassword`.
2021
2064
  maxLength: 2048
2022
- example: https://www.myFallbackServer.com/webhooks/answer
2065
+ example: https://www.myFallbackServer.example/webhooks/answer
2023
2066
  answerFallbackMethod:
2024
2067
  $ref: '#/components/schemas/callbackMethodEnum'
2025
2068
  fallbackUsername:
@@ -2043,6 +2086,7 @@ components:
2043
2086
  href='/docs/voice/webhooks/disconnect'>Disconnect</a> event to when
2044
2087
  the call ends. This event does not expect a BXML response.
2045
2088
  maxLength: 2048
2089
+ example: https://www.myCallbackServer.example/webhooks/disconnect
2046
2090
  disconnectMethod:
2047
2091
  $ref: '#/components/schemas/callbackMethodEnum'
2048
2092
  callTimeout:
@@ -2062,6 +2106,7 @@ components:
2062
2106
  minimum: 1
2063
2107
  maximum: 300
2064
2108
  default: 30
2109
+ example: 30
2065
2110
  callbackTimeout:
2066
2111
  nullable: true
2067
2112
  type: number
@@ -2076,6 +2121,7 @@ components:
2076
2121
  minimum: 1
2077
2122
  maximum: 25
2078
2123
  default: 15
2124
+ example: 15
2079
2125
  machineDetection:
2080
2126
  $ref: '#/components/schemas/machineDetectionConfiguration'
2081
2127
  priority:
@@ -2101,6 +2147,7 @@ components:
2101
2147
  takes
2102
2148
 
2103
2149
  precedence over a priority 2 call.
2150
+ example: 5
2104
2151
  tag:
2105
2152
  nullable: true
2106
2153
  type: string
@@ -2117,7 +2164,8 @@ components:
2117
2164
 
2118
2165
 
2119
2166
  Max length 256 characters.
2120
- maximum: 256
2167
+ maxLength: 256
2168
+ example: arbitrary text here
2121
2169
  createCallResponse:
2122
2170
  type: object
2123
2171
  required:
@@ -2138,31 +2186,31 @@ components:
2138
2186
  accountId:
2139
2187
  type: string
2140
2188
  example: '9900000'
2141
- description: The bandwidth account ID associated with the call
2189
+ description: The bandwidth account ID associated with the call.
2142
2190
  callId:
2143
2191
  type: string
2144
2192
  example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
2145
- description: Programmable Voice API Call ID
2193
+ description: Programmable Voice API Call ID.
2146
2194
  to:
2147
2195
  type: string
2148
2196
  example: '+19195551234'
2149
- description: Recipient of the outgoing call
2197
+ description: Recipient of the outgoing call.
2150
2198
  from:
2151
2199
  type: string
2152
2200
  example: '+19195554321'
2153
- description: Phone number that created the outbound call
2201
+ description: Phone number that created the outbound call.
2154
2202
  enqueuedTime:
2155
2203
  nullable: true
2156
2204
  type: string
2157
2205
  format: date-time
2158
- description: Time the call was accepted into the queue
2206
+ description: The time at which the call was accepted into the queue.
2159
2207
  example: '2022-06-16T13:15:07.160Z'
2160
2208
  callUrl:
2161
2209
  type: string
2162
2210
  format: uri
2163
2211
  example: >-
2164
2212
  https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
2165
- description: The URL to update call state
2213
+ description: The URL to update this call's state.
2166
2214
  callTimeout:
2167
2215
  type: number
2168
2216
  format: double
@@ -2181,13 +2229,13 @@ components:
2181
2229
  nullable: true
2182
2230
  type: string
2183
2231
  example: My custom tag value
2184
- description: Custom tag value
2232
+ description: Custom tag value.
2185
2233
  answerMethod:
2186
2234
  $ref: '#/components/schemas/callbackMethodEnum'
2187
2235
  answerUrl:
2188
2236
  type: string
2189
2237
  format: uri
2190
- example: https://myServer.com/bandwidth/webhooks/answer
2238
+ example: https://myServer.example/bandwidth/webhooks/answer
2191
2239
  description: URL to deliver the `answer` event webhook.
2192
2240
  answerFallbackMethod:
2193
2241
  $ref: '#/components/schemas/callbackMethodEnum'
@@ -2195,7 +2243,7 @@ components:
2195
2243
  nullable: true
2196
2244
  type: string
2197
2245
  format: uri
2198
- example: https://myFallbackServer.com/bandwidth/webhooks/answer
2246
+ example: https://myFallbackServer.example/bandwidth/webhooks/answer
2199
2247
  description: Fallback URL to deliver the `answer` event webhook.
2200
2248
  disconnectMethod:
2201
2249
  $ref: '#/components/schemas/callbackMethodEnum'
@@ -2203,7 +2251,7 @@ components:
2203
2251
  nullable: true
2204
2252
  type: string
2205
2253
  format: uri
2206
- example: https://myServer.com/bandwidth/webhooks/disconnect
2254
+ example: https://myServer.example/bandwidth/webhooks/disconnect
2207
2255
  description: URL to deliver the `disconnect` event webhook.
2208
2256
  username:
2209
2257
  type: string
@@ -2231,8 +2279,7 @@ components:
2231
2279
  example: mySecretPassword1!
2232
2280
  priority:
2233
2281
  nullable: true
2234
- type: number
2235
- format: integer
2282
+ type: integer
2236
2283
  example: 5
2237
2284
  description: The priority of this call over other calls from your account.
2238
2285
  callState:
@@ -2261,7 +2308,7 @@ components:
2261
2308
  type: string
2262
2309
  description: >-
2263
2310
  The phone number that received the call, in E.164 format (e.g.
2264
- +15555555555), or if the call was to a SIP URI, the SIP URI
2311
+ +15555555555), or if the call was to a SIP URI, the SIP URI.
2265
2312
  example: '+19195551234'
2266
2313
  from:
2267
2314
  type: string
@@ -2316,7 +2363,7 @@ components:
2316
2363
 
2317
2364
 
2318
2365
  More information: [Understanding
2319
- STIR/SHAKEN](https://www.bandwidth.com/regulations/stir-shaken)
2366
+ STIR/SHAKEN](https://www.bandwidth.com/regulations/stir-shaken).
2320
2367
  additionalProperties:
2321
2368
  type: string
2322
2369
  example:
@@ -2442,7 +2489,7 @@ components:
2442
2489
  nullable: true
2443
2490
  type: string
2444
2491
  format: uri
2445
- example: https://myServer.com/bandwidth/webhooks/redirect
2492
+ example: https://myServer.example/bandwidth/webhooks/redirect
2446
2493
  redirectMethod:
2447
2494
  $ref: '#/components/schemas/redirectMethodEnum'
2448
2495
  username:
@@ -2463,8 +2510,8 @@ components:
2463
2510
  format: uri
2464
2511
  description: |-
2465
2512
  A fallback url which, if provided, will be used to retry the
2466
- redirect callback delivery in case `redirectUrl` fails to respond
2467
- example: https://myFallbackServer.com/bandwidth/webhooks/redirect
2513
+ redirect callback delivery in case `redirectUrl` fails to respond.
2514
+ example: https://myFallbackServer.example/bandwidth/webhooks/redirect
2468
2515
  redirectFallbackMethod:
2469
2516
  $ref: '#/components/schemas/redirectMethodEnum'
2470
2517
  fallbackUsername:
@@ -2498,7 +2545,7 @@ components:
2498
2545
 
2499
2546
 
2500
2547
  Not allowed if `state` is `completed`.
2501
- maximum: 256
2548
+ maxLength: 256
2502
2549
  example: My Custom Tag
2503
2550
  updateCallRecording:
2504
2551
  type: object
@@ -2564,11 +2611,11 @@ components:
2564
2611
  properties:
2565
2612
  id:
2566
2613
  type: string
2567
- description: The Bandwidth-generated conference ID
2614
+ description: The Bandwidth-generated conference ID.
2568
2615
  example: conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9
2569
2616
  name:
2570
2617
  type: string
2571
- description: The name of the conference, as specified by your application
2618
+ description: The name of the conference, as specified by your application.
2572
2619
  example: my-conference-name
2573
2620
  createdTime:
2574
2621
  type: string
@@ -2586,7 +2633,7 @@ components:
2586
2633
  type: string
2587
2634
  format: uri
2588
2635
  description: The URL to send the conference-related events.
2589
- example: https://myServer.com/bandwidth/webhooks/conferenceEvent
2636
+ example: https://myServer.example/bandwidth/webhooks/conferenceEvent
2590
2637
  conferenceEventMethod:
2591
2638
  $ref: '#/components/schemas/callbackMethodEnum'
2592
2639
  tag:
@@ -2605,7 +2652,7 @@ components:
2605
2652
  A list of active members of the conference. Omitted if this
2606
2653
 
2607
2654
  is a response to the [Get Conferences
2608
- endpoint](/apis/voice#tag/Conferences/operation/listConferences)
2655
+ endpoint](/apis/voice#tag/Conferences/operation/listConferences).
2609
2656
  updateConference:
2610
2657
  type: object
2611
2658
  properties:
@@ -2622,8 +2669,8 @@ components:
2622
2669
  event which will provide new BXML. Not allowed if `state` is
2623
2670
  `completed`,
2624
2671
 
2625
- but required if `state` is `active`
2626
- example: https://myServer.com/bandwidth/webhooks/conferenceRedirect
2672
+ but required if `state` is `active`.
2673
+ example: https://myServer.example/bandwidth/webhooks/conferenceRedirect
2627
2674
  redirectMethod:
2628
2675
  $ref: '#/components/schemas/redirectMethodEnum'
2629
2676
  username:
@@ -2649,7 +2696,8 @@ components:
2649
2696
  respond. Not
2650
2697
 
2651
2698
  allowed if `state` is `completed`.
2652
- example: https://myFallbackServer.com/bandwidth/webhooks/conferenceRedirect
2699
+ example: >-
2700
+ https://myFallbackServer.example/bandwidth/webhooks/conferenceRedirect
2653
2701
  redirectFallbackMethod:
2654
2702
  $ref: '#/components/schemas/redirectMethodEnum'
2655
2703
  fallbackUsername:
@@ -2892,7 +2940,7 @@ components:
2892
2940
  type: string
2893
2941
  format: uri
2894
2942
  maxLength: 2048
2895
- example: https://myServer.com/bandwidth/webhooks/machineDetectionComplete
2943
+ example: https://myServer.example/bandwidth/webhooks/machineDetectionComplete
2896
2944
  callbackMethod:
2897
2945
  $ref: '#/components/schemas/callbackMethodEnum'
2898
2946
  username:
@@ -2920,7 +2968,7 @@ components:
2920
2968
  to respond
2921
2969
  maxLength: 2048
2922
2970
  example: >-
2923
- https://myFallbackServer.com/bandwidth/webhooks/machineDetectionComplete
2971
+ https://myFallbackServer.example/bandwidth/webhooks/machineDetectionComplete
2924
2972
  fallbackMethod:
2925
2973
  $ref: '#/components/schemas/callbackMethodEnum'
2926
2974
  fallbackUsername:
@@ -2952,7 +3000,7 @@ components:
2952
3000
  and
2953
3001
 
2954
3002
  password fields for authorization.
2955
- example: https://myServer.com/bandwidth/webhooks/transcriptionAvailable
3003
+ example: https://myServer.example/bandwidth/webhooks/transcriptionAvailable
2956
3004
  callbackMethod:
2957
3005
  $ref: '#/components/schemas/callbackMethodEnum'
2958
3006
  username:
@@ -2984,6 +3032,16 @@ components:
2984
3032
 
2985
3033
  between 1 and 25.
2986
3034
  example: 5.5
3035
+ detectLanguage:
3036
+ type: boolean
3037
+ nullable: true
3038
+ description: >-
3039
+ A boolean value to indicate that the recording may not be in
3040
+ English, and the transcription service will need to detect the
3041
+ dominant language the recording is in and transcribe accordingly.
3042
+ Current supported languages are English, French, and Spanish.
3043
+ default: false
3044
+ example: true
2987
3045
  transcriptionList:
2988
3046
  type: object
2989
3047
  properties:
@@ -3807,10 +3865,12 @@ components:
3807
3865
  example: bridgeComplete
3808
3866
  eventTime:
3809
3867
  type: string
3868
+ format: date-time
3810
3869
  description: >-
3811
3870
  The approximate UTC date and time when the event was generated by the
3812
3871
  Bandwidth server, in ISO 8601 format. This may not be exactly the time
3813
3872
  of event execution.
3873
+ example: '2022-06-17T22:19:40.375Z'
3814
3874
  accountId:
3815
3875
  type: string
3816
3876
  description: The user account associated with the call.
@@ -3972,7 +4032,7 @@ components:
3972
4032
  example: 4642074b-7b58-478b-96e4-3a60955c6765
3973
4033
  nullable: true
3974
4034
  machineDetectionResult:
3975
- type: string
4035
+ type: object
3976
4036
  description: >-
3977
4037
  (optional) if machine detection was requested in sync mode, the result
3978
4038
  will be specified here. Possible values are the same as the async
@@ -4546,7 +4606,7 @@ components:
4546
4606
  description: Too Many Requests
4547
4607
  headers:
4548
4608
  Retry-After:
4549
- description: When you should try your request again
4609
+ description: When you should try your request again.
4550
4610
  schema:
4551
4611
  type: string
4552
4612
  content:
@@ -4863,6 +4923,14 @@ components:
4863
4923
  example: 2022-09-14T18:20:16.000Z
4864
4924
  schema:
4865
4925
  type: string
4926
+ campaignId:
4927
+ in: query
4928
+ name: campaignId
4929
+ required: false
4930
+ description: The campaign ID of the message.
4931
+ example: CJEUMDK
4932
+ schema:
4933
+ type: string
4866
4934
  sort:
4867
4935
  in: query
4868
4936
  name: sort
@@ -4891,21 +4959,26 @@ components:
4891
4959
  schema:
4892
4960
  type: integer
4893
4961
  example: 50
4894
- accountId1:
4895
- name: accountId
4896
- in: path
4897
- required: true
4962
+ limitTotalCount:
4963
+ in: query
4964
+ name: limitTotalCount
4965
+ required: false
4966
+ description: >-
4967
+ When set to true, the response's totalCount field will have a maximum
4968
+ value of 10,000. When set to false, or excluded, this will give an
4969
+ accurate totalCount of all messages that match the provided filters. If
4970
+ you are experiencing latency, try using this parameter to limit your
4971
+ results.
4972
+ example: true
4898
4973
  schema:
4899
- type: string
4900
- description: Your Bandwidth Account ID
4901
- example: '9900000'
4974
+ type: boolean
4902
4975
  callId:
4903
4976
  name: callId
4904
4977
  in: path
4905
4978
  required: true
4906
4979
  schema:
4907
4980
  type: string
4908
- description: Programmable Voice API Call ID
4981
+ description: Programmable Voice API Call ID.
4909
4982
  example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
4910
4983
  recordingId:
4911
4984
  name: recordingId
@@ -4913,7 +4986,7 @@ components:
4913
4986
  required: true
4914
4987
  schema:
4915
4988
  type: string
4916
- description: Programmable Voice API Recording ID
4989
+ description: Programmable Voice API Recording ID.
4917
4990
  example: r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
4918
4991
  conferenceId:
4919
4992
  name: conferenceId
@@ -4921,7 +4994,7 @@ components:
4921
4994
  required: true
4922
4995
  schema:
4923
4996
  type: string
4924
- description: Programmable Voice API Conference ID
4997
+ description: Programmable Voice API Conference ID.
4925
4998
  example: conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9
4926
4999
  memberId:
4927
5000
  name: memberId
@@ -4929,7 +5002,7 @@ components:
4929
5002
  required: true
4930
5003
  schema:
4931
5004
  type: string
4932
- description: Programmable Voice API Conference Member ID
5005
+ description: Programmable Voice API Conference Member ID.
4933
5006
  example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
4934
5007
  to:
4935
5008
  name: to
@@ -5017,23 +5090,6 @@ components:
5017
5090
  Not intended for explicit use. To use pagination, follow the links in
5018
5091
  the `Link` header of the response, as indicated in the endpoint
5019
5092
  description.
5020
- accountId2:
5021
- name: accountId
5022
- description: Bandwidth Account ID with Voice service enabled.
5023
- in: path
5024
- required: true
5025
- style: simple
5026
- explode: false
5027
- schema:
5028
- type: string
5029
- accountId3:
5030
- name: accountId
5031
- in: path
5032
- required: true
5033
- schema:
5034
- type: string
5035
- description: The ID of the Bandwidth account that the user belongs to.
5036
- example: '9900000'
5037
5093
  requestId:
5038
5094
  name: requestId
5039
5095
  in: path
@@ -5264,7 +5320,7 @@ components:
5264
5320
  value: |-
5265
5321
  <?xml version=\"1.0\" encoding=\"UTF-8\"?>
5266
5322
  <Bxml>
5267
- <Redirect redirectUrl="https://test.com" redirectMethod="GET"/>
5323
+ <Redirect redirectUrl="https://test.example" redirectMethod="GET"/>
5268
5324
  </Bxml>
5269
5325
  updateCallRecordingRequest:
5270
5326
  required: true
@@ -5388,10 +5444,10 @@ components:
5388
5444
  callbackTimeout: 15
5389
5445
  tag: My custom tag value
5390
5446
  answerMethod: POST
5391
- answerUrl: https://myServer.com/bandwidth/webhooks/answer
5447
+ answerUrl: https://myServer.example/bandwidth/webhooks/answer
5392
5448
  answerFallbackMethod: POST
5393
5449
  disconnectMethod: POST
5394
- disconnectUrl: https://myServer.com/bandwidth/webhooks/disconnect
5450
+ disconnectUrl: https://myServer.example/bandwidth/webhooks/disconnect
5395
5451
  username: mySecretUsername
5396
5452
  password: '*****'
5397
5453
  fallbackUsername: mySecretUsername
@@ -5404,54 +5460,54 @@ components:
5404
5460
  name: my-conference-name
5405
5461
  createdTime: '2022-06-17T22:19:40.375Z'
5406
5462
  completedTime: '2022-06-17T22:20:00.000Z'
5407
- conferenceEventUrl: https://myServer.com/bandwidth/webhooks/conferenceEvent
5463
+ conferenceEventUrl: https://myServer.example/bandwidth/webhooks/conferenceEvent
5408
5464
  conferenceEventMethod: POST
5409
5465
  tag: my custom tag
5410
5466
  voiceBadRequestErrorExample:
5411
5467
  summary: Example of a Bad Request (400) Error
5412
5468
  value:
5413
5469
  type: validation
5414
- description: 'Invalid answerUrl: only http and https are allowed'
5470
+ description: 'Invalid answerUrl: only http and https are allowed.'
5415
5471
  voiceUnauthorizedErrorExample:
5416
5472
  summary: Example of an Unauthorized (401) Error
5417
5473
  value:
5418
5474
  type: validation
5419
- description: 'Invalid answerUrl: only http and https are allowed'
5475
+ description: 'Invalid answerUrl: only http and https are allowed.'
5420
5476
  voiceForbiddenErrorExample:
5421
5477
  summary: Example of a Forbidden (403) Error
5422
5478
  value:
5423
5479
  type: validation
5424
- description: 'Invalid answerUrl: only http and https are allowed'
5480
+ description: 'Invalid answerUrl: only http and https are allowed.'
5425
5481
  voiceNotFoundErrorExample:
5426
5482
  summary: Example of a Not Found (404) Error
5427
5483
  value:
5428
5484
  type: validation
5429
- description: 'Invalid answerUrl: only http and https are allowed'
5485
+ description: 'Invalid answerUrl: only http and https are allowed.'
5430
5486
  voiceNotAllowedErrorExample:
5431
5487
  summary: Example of a Not Allowed (405) Error
5432
5488
  value:
5433
5489
  type: validation
5434
- description: 'Invalid answerUrl: only http and https are allowed'
5490
+ description: 'Invalid answerUrl: only http and https are allowed.'
5435
5491
  voiceConflictErrorExample:
5436
5492
  summary: Example of a Conflict (409) Error
5437
5493
  value:
5438
5494
  type: validation
5439
- description: 'Invalid answerUrl: only http and https are allowed'
5495
+ description: 'Invalid answerUrl: only http and https are allowed.'
5440
5496
  voiceUnsupportedMediaTypeErrorExample:
5441
5497
  summary: Example of an Unsupported Media Type (415) Error
5442
5498
  value:
5443
5499
  type: validation
5444
- description: 'Invalid answerUrl: only http and https are allowed'
5500
+ description: 'Invalid answerUrl: only http and https are allowed.'
5445
5501
  voiceTooManyRequestsErrorExample:
5446
5502
  summary: Example of a Too Many Requests (429) Error
5447
5503
  value:
5448
5504
  type: validation
5449
- description: 'Invalid answerUrl: only http and https are allowed'
5505
+ description: 'Invalid answerUrl: only http and https are allowed.'
5450
5506
  voiceInternalServerErrorExample:
5451
5507
  summary: Example of an Internal Server (500) Error
5452
5508
  value:
5453
5509
  type: validation
5454
- description: 'Invalid answerUrl: only http and https are allowed'
5510
+ description: 'Invalid answerUrl: only http and https are allowed.'
5455
5511
  singleNumberRequestExample:
5456
5512
  summary: Example Number Lookup Request for One Number
5457
5513
  value: