bandwidth-sdk 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/test-smoke.yml +0 -2
- package/bandwidth.yml +42 -19
- package/coverage/clover.xml +47 -47
- package/coverage/coverage-final.json +2 -2
- package/coverage/lcov-report/index.html +19 -19
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/index.html +19 -19
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +57 -57
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/common.ts.html +18 -18
- package/coverage/lcov-report/node-sdk/configuration.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
- package/coverage/lcov.info +94 -94
- package/dist/api/calls-api.d.ts +261 -0
- package/dist/api/calls-api.js +656 -0
- package/dist/api/conferences-api.d.ts +422 -0
- package/dist/api/conferences-api.js +1045 -0
- package/dist/api/media-api.d.ts +201 -0
- package/dist/api/media-api.js +527 -0
- package/dist/api/messages-api.d.ts +176 -0
- package/dist/api/messages-api.js +420 -0
- package/dist/api/mfaapi.d.ts +156 -0
- package/dist/api/mfaapi.js +416 -0
- package/dist/api/phone-number-lookup-api.d.ts +117 -0
- package/dist/api/phone-number-lookup-api.js +322 -0
- package/dist/api/recordings-api.d.ts +462 -0
- package/dist/api/recordings-api.js +1143 -0
- package/dist/api/statistics-api.d.ts +74 -0
- package/dist/api/statistics-api.js +222 -0
- package/dist/api/transcriptions-api.d.ts +161 -0
- package/dist/api/transcriptions-api.js +427 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +38 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +321 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +253 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +45 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/account-statistics.d.ts +30 -0
- package/dist/models/account-statistics.js +15 -0
- package/dist/models/answer-callback.d.ts +104 -0
- package/dist/models/answer-callback.js +15 -0
- package/dist/models/bridge-complete-callback.d.ts +115 -0
- package/dist/models/bridge-complete-callback.js +15 -0
- package/dist/models/bridge-target-complete-callback.d.ts +97 -0
- package/dist/models/bridge-target-complete-callback.js +15 -0
- package/dist/models/bxml/Bxml.d.ts +17 -0
- package/dist/models/bxml/Bxml.js +37 -0
- package/dist/models/bxml/NestableVerb.d.ts +26 -0
- package/dist/models/bxml/NestableVerb.js +62 -0
- package/dist/models/bxml/Response.d.ts +17 -0
- package/dist/models/bxml/Response.js +37 -0
- package/dist/models/bxml/Root.d.ts +33 -0
- package/dist/models/bxml/Root.js +57 -0
- package/dist/models/bxml/Verb.d.ts +27 -0
- package/dist/models/bxml/Verb.js +38 -0
- package/dist/models/bxml/index.d.ts +2 -0
- package/dist/models/bxml/index.js +5 -0
- package/dist/models/bxml/verbs/Bridge.d.ts +32 -0
- package/dist/models/bxml/verbs/Bridge.js +38 -0
- package/dist/models/bxml/verbs/Conference.d.ts +32 -0
- package/dist/models/bxml/verbs/Conference.js +38 -0
- package/dist/models/bxml/verbs/CustomParam.d.ts +19 -0
- package/dist/models/bxml/verbs/CustomParam.js +37 -0
- package/dist/models/bxml/verbs/Forward.d.ts +23 -0
- package/dist/models/bxml/verbs/Forward.js +37 -0
- package/dist/models/bxml/verbs/Gather.d.ts +47 -0
- package/dist/models/bxml/verbs/Gather.js +53 -0
- package/dist/models/bxml/verbs/Hangup.d.ts +13 -0
- package/dist/models/bxml/verbs/Hangup.js +36 -0
- package/dist/models/bxml/verbs/Pause.d.ts +18 -0
- package/dist/models/bxml/verbs/Pause.js +37 -0
- package/dist/models/bxml/verbs/PauseRecording.d.ts +13 -0
- package/dist/models/bxml/verbs/PauseRecording.js +36 -0
- package/dist/models/bxml/verbs/PhoneNumber.d.ts +30 -0
- package/dist/models/bxml/verbs/PhoneNumber.js +38 -0
- package/dist/models/bxml/verbs/PlayAudio.d.ts +21 -0
- package/dist/models/bxml/verbs/PlayAudio.js +38 -0
- package/dist/models/bxml/verbs/Record.d.ts +35 -0
- package/dist/models/bxml/verbs/Record.js +37 -0
- package/dist/models/bxml/verbs/Redirect.d.ts +26 -0
- package/dist/models/bxml/verbs/Redirect.js +37 -0
- package/dist/models/bxml/verbs/ResumeRecording.d.ts +13 -0
- package/dist/models/bxml/verbs/ResumeRecording.js +36 -0
- package/dist/models/bxml/verbs/Ring.d.ts +19 -0
- package/dist/models/bxml/verbs/Ring.js +37 -0
- package/dist/models/bxml/verbs/SendDtmf.d.ts +21 -0
- package/dist/models/bxml/verbs/SendDtmf.js +38 -0
- package/dist/models/bxml/verbs/SipUri.d.ts +31 -0
- package/dist/models/bxml/verbs/SipUri.js +38 -0
- package/dist/models/bxml/verbs/SpeakSentence.d.ts +28 -0
- package/dist/models/bxml/verbs/SpeakSentence.js +46 -0
- package/dist/models/bxml/verbs/StartGather.d.ts +22 -0
- package/dist/models/bxml/verbs/StartGather.js +37 -0
- package/dist/models/bxml/verbs/StartRecording.d.ts +27 -0
- package/dist/models/bxml/verbs/StartRecording.js +37 -0
- package/dist/models/bxml/verbs/StartStream.d.ts +31 -0
- package/dist/models/bxml/verbs/StartStream.js +45 -0
- package/dist/models/bxml/verbs/StartTranscription.d.ts +32 -0
- package/dist/models/bxml/verbs/StartTranscription.js +45 -0
- package/dist/models/bxml/verbs/StopGather.d.ts +13 -0
- package/dist/models/bxml/verbs/StopGather.js +36 -0
- package/dist/models/bxml/verbs/StopRecording.d.ts +13 -0
- package/dist/models/bxml/verbs/StopRecording.js +36 -0
- package/dist/models/bxml/verbs/StopStream.d.ts +18 -0
- package/dist/models/bxml/verbs/StopStream.js +37 -0
- package/dist/models/bxml/verbs/StopTranscription.d.ts +18 -0
- package/dist/models/bxml/verbs/StopTranscription.js +37 -0
- package/dist/models/bxml/verbs/StreamParam.d.ts +19 -0
- package/dist/models/bxml/verbs/StreamParam.js +37 -0
- package/dist/models/bxml/verbs/Tag.d.ts +15 -0
- package/dist/models/bxml/verbs/Tag.js +37 -0
- package/dist/models/bxml/verbs/Transfer.d.ts +41 -0
- package/dist/models/bxml/verbs/Transfer.js +45 -0
- package/dist/models/bxml/verbs/index.d.ts +30 -0
- package/dist/models/bxml/verbs/index.js +46 -0
- package/dist/models/call-direction-enum.d.ts +21 -0
- package/dist/models/call-direction-enum.js +25 -0
- package/dist/models/call-recording-metadata.d.ts +135 -0
- package/dist/models/call-recording-metadata.js +15 -0
- package/dist/models/call-state-enum.d.ts +21 -0
- package/dist/models/call-state-enum.js +25 -0
- package/dist/models/call-state.d.ts +129 -0
- package/dist/models/call-state.js +15 -0
- package/dist/models/call-transcription-detected-language-enum.d.ts +22 -0
- package/dist/models/call-transcription-detected-language-enum.js +26 -0
- package/dist/models/call-transcription-metadata.d.ts +36 -0
- package/dist/models/call-transcription-metadata.js +15 -0
- package/dist/models/call-transcription-response.d.ts +43 -0
- package/dist/models/call-transcription-response.js +15 -0
- package/dist/models/call-transcription-track-enum.d.ts +21 -0
- package/dist/models/call-transcription-track-enum.js +25 -0
- package/dist/models/call-transcription.d.ts +44 -0
- package/dist/models/call-transcription.js +15 -0
- package/dist/models/callback-method-enum.d.ts +21 -0
- package/dist/models/callback-method-enum.js +25 -0
- package/dist/models/code-request.d.ts +54 -0
- package/dist/models/code-request.js +15 -0
- package/dist/models/conference-completed-callback.d.ts +48 -0
- package/dist/models/conference-completed-callback.js +15 -0
- package/dist/models/conference-created-callback.d.ts +48 -0
- package/dist/models/conference-created-callback.js +15 -0
- package/dist/models/conference-member-exit-callback.d.ts +66 -0
- package/dist/models/conference-member-exit-callback.js +15 -0
- package/dist/models/conference-member-join-callback.d.ts +66 -0
- package/dist/models/conference-member-join-callback.js +15 -0
- package/dist/models/conference-member.d.ts +54 -0
- package/dist/models/conference-member.js +15 -0
- package/dist/models/conference-recording-available-callback.d.ts +103 -0
- package/dist/models/conference-recording-available-callback.js +15 -0
- package/dist/models/conference-recording-metadata.d.ts +91 -0
- package/dist/models/conference-recording-metadata.js +15 -0
- package/dist/models/conference-redirect-callback.d.ts +48 -0
- package/dist/models/conference-redirect-callback.js +15 -0
- package/dist/models/conference-state-enum.d.ts +21 -0
- package/dist/models/conference-state-enum.js +25 -0
- package/dist/models/conference.d.ts +68 -0
- package/dist/models/conference.js +15 -0
- package/dist/models/create-call-response.d.ts +145 -0
- package/dist/models/create-call-response.js +15 -0
- package/dist/models/create-call.d.ts +146 -0
- package/dist/models/create-call.js +15 -0
- package/dist/models/create-lookup-response.d.ts +31 -0
- package/dist/models/create-lookup-response.js +15 -0
- package/dist/models/create-message-request-error.d.ts +37 -0
- package/dist/models/create-message-request-error.js +15 -0
- package/dist/models/deferred-result.d.ts +30 -0
- package/dist/models/deferred-result.js +15 -0
- package/dist/models/disconnect-callback.d.ts +121 -0
- package/dist/models/disconnect-callback.js +15 -0
- package/dist/models/diversion.d.ts +60 -0
- package/dist/models/diversion.js +15 -0
- package/dist/models/dtmf-callback.d.ts +121 -0
- package/dist/models/dtmf-callback.js +15 -0
- package/dist/models/field-error.d.ts +30 -0
- package/dist/models/field-error.js +15 -0
- package/dist/models/file-format-enum.d.ts +21 -0
- package/dist/models/file-format-enum.js +25 -0
- package/dist/models/gather-callback.d.ts +127 -0
- package/dist/models/gather-callback.js +15 -0
- package/dist/models/inbound-message-callback-message.d.ts +92 -0
- package/dist/models/inbound-message-callback-message.js +15 -0
- package/dist/models/inbound-message-callback.d.ts +49 -0
- package/dist/models/inbound-message-callback.js +15 -0
- package/dist/models/index.d.ts +94 -0
- package/dist/models/index.js +110 -0
- package/dist/models/initiate-callback.d.ts +93 -0
- package/dist/models/initiate-callback.js +15 -0
- package/dist/models/list-message-direction-enum.d.ts +21 -0
- package/dist/models/list-message-direction-enum.js +25 -0
- package/dist/models/list-message-item.d.ts +123 -0
- package/dist/models/list-message-item.js +15 -0
- package/dist/models/lookup-request.d.ts +24 -0
- package/dist/models/lookup-request.js +15 -0
- package/dist/models/lookup-result.d.ts +72 -0
- package/dist/models/lookup-result.js +15 -0
- package/dist/models/lookup-status-enum.d.ts +23 -0
- package/dist/models/lookup-status-enum.js +27 -0
- package/dist/models/lookup-status.d.ts +44 -0
- package/dist/models/lookup-status.js +15 -0
- package/dist/models/machine-detection-complete-callback.d.ts +104 -0
- package/dist/models/machine-detection-complete-callback.js +15 -0
- package/dist/models/machine-detection-configuration.d.ts +110 -0
- package/dist/models/machine-detection-configuration.js +15 -0
- package/dist/models/machine-detection-mode-enum.d.ts +21 -0
- package/dist/models/machine-detection-mode-enum.js +25 -0
- package/dist/models/machine-detection-result.d.ts +30 -0
- package/dist/models/machine-detection-result.js +15 -0
- package/dist/models/media.d.ts +36 -0
- package/dist/models/media.js +15 -0
- package/dist/models/message-delivered-callback-message.d.ts +92 -0
- package/dist/models/message-delivered-callback-message.js +15 -0
- package/dist/models/message-delivered-callback.d.ts +49 -0
- package/dist/models/message-delivered-callback.js +15 -0
- package/dist/models/message-direction-enum.d.ts +21 -0
- package/dist/models/message-direction-enum.js +25 -0
- package/dist/models/message-failed-callback-message.d.ts +92 -0
- package/dist/models/message-failed-callback-message.js +15 -0
- package/dist/models/message-failed-callback.d.ts +55 -0
- package/dist/models/message-failed-callback.js +15 -0
- package/dist/models/message-request.d.ts +67 -0
- package/dist/models/message-request.js +15 -0
- package/dist/models/message-sending-callback-message.d.ts +92 -0
- package/dist/models/message-sending-callback-message.js +15 -0
- package/dist/models/message-sending-callback.d.ts +49 -0
- package/dist/models/message-sending-callback.js +15 -0
- package/dist/models/message-status-enum.d.ts +27 -0
- package/dist/models/message-status-enum.js +31 -0
- package/dist/models/message-type-enum.d.ts +21 -0
- package/dist/models/message-type-enum.js +25 -0
- package/dist/models/message.d.ts +98 -0
- package/dist/models/message.js +15 -0
- package/dist/models/messages-list.d.ts +38 -0
- package/dist/models/messages-list.js +15 -0
- package/dist/models/messaging-code-response.d.ts +24 -0
- package/dist/models/messaging-code-response.js +15 -0
- package/dist/models/messaging-request-error.d.ts +30 -0
- package/dist/models/messaging-request-error.js +15 -0
- package/dist/models/mfa-forbidden-request-error.d.ts +24 -0
- package/dist/models/mfa-forbidden-request-error.js +15 -0
- package/dist/models/mfa-request-error.d.ts +30 -0
- package/dist/models/mfa-request-error.js +15 -0
- package/dist/models/mfa-unauthorized-request-error.d.ts +24 -0
- package/dist/models/mfa-unauthorized-request-error.js +15 -0
- package/dist/models/page-info.d.ts +42 -0
- package/dist/models/page-info.js +15 -0
- package/dist/models/priority-enum.d.ts +21 -0
- package/dist/models/priority-enum.js +25 -0
- package/dist/models/recording-available-callback.d.ts +152 -0
- package/dist/models/recording-available-callback.js +15 -0
- package/dist/models/recording-complete-callback.d.ts +152 -0
- package/dist/models/recording-complete-callback.js +15 -0
- package/dist/models/recording-state-enum.d.ts +21 -0
- package/dist/models/recording-state-enum.js +25 -0
- package/dist/models/recording-transcription-metadata.d.ts +42 -0
- package/dist/models/recording-transcription-metadata.js +15 -0
- package/dist/models/recording-transcriptions.d.ts +25 -0
- package/dist/models/recording-transcriptions.js +15 -0
- package/dist/models/redirect-callback.d.ts +115 -0
- package/dist/models/redirect-callback.js +15 -0
- package/dist/models/redirect-method-enum.d.ts +21 -0
- package/dist/models/redirect-method-enum.js +25 -0
- package/dist/models/stir-shaken.d.ts +36 -0
- package/dist/models/stir-shaken.js +15 -0
- package/dist/models/tag.d.ts +30 -0
- package/dist/models/tag.js +15 -0
- package/dist/models/tn-lookup-request-error.d.ts +24 -0
- package/dist/models/tn-lookup-request-error.js +15 -0
- package/dist/models/transcribe-recording.d.ts +61 -0
- package/dist/models/transcribe-recording.js +15 -0
- package/dist/models/transcription-available-callback.d.ts +147 -0
- package/dist/models/transcription-available-callback.js +15 -0
- package/dist/models/transcription-list.d.ts +25 -0
- package/dist/models/transcription-list.js +15 -0
- package/dist/models/transcription-metadata.d.ts +42 -0
- package/dist/models/transcription-metadata.js +15 -0
- package/dist/models/transcription.d.ts +30 -0
- package/dist/models/transcription.js +15 -0
- package/dist/models/transfer-answer-callback.d.ts +109 -0
- package/dist/models/transfer-answer-callback.js +15 -0
- package/dist/models/transfer-complete-callback.d.ts +127 -0
- package/dist/models/transfer-complete-callback.js +15 -0
- package/dist/models/transfer-disconnect-callback.d.ts +139 -0
- package/dist/models/transfer-disconnect-callback.js +15 -0
- package/dist/models/update-call-recording.d.ts +25 -0
- package/dist/models/update-call-recording.js +15 -0
- package/dist/models/update-call.d.ts +80 -0
- package/dist/models/update-call.js +15 -0
- package/dist/models/update-conference-member.d.ts +36 -0
- package/dist/models/update-conference-member.js +15 -0
- package/dist/models/update-conference.d.ts +74 -0
- package/dist/models/update-conference.js +15 -0
- package/dist/models/verify-code-request.d.ts +42 -0
- package/dist/models/verify-code-request.js +15 -0
- package/dist/models/verify-code-response.d.ts +24 -0
- package/dist/models/verify-code-response.js +15 -0
- package/dist/models/voice-api-error.d.ts +36 -0
- package/dist/models/voice-api-error.js +15 -0
- package/dist/models/voice-code-response.d.ts +24 -0
- package/dist/models/voice-code-response.js +15 -0
- package/models/call-recording-metadata.ts +6 -0
- package/models/call-transcription-metadata.ts +6 -0
- package/models/conference-recording-metadata.ts +6 -0
- package/package.json +1 -1
- package/tests/smoke/transcriptions-api.test.ts +1 -0
- package/tests/unit/api/messages-api.test.ts +1 -1
- package/tests/unit/api/recordings-api.test.ts +5 -1
- package/tests/unit/api/transcriptions-api.test.ts +1 -0
- package/tsconfig.json +1 -2
- package/global.d.ts +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ConferenceStateEnum } from './conference-state-enum';
|
|
13
|
+
import type { RedirectMethodEnum } from './redirect-method-enum';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UpdateConference
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateConference {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ConferenceStateEnum}
|
|
23
|
+
* @memberof UpdateConference
|
|
24
|
+
*/
|
|
25
|
+
'status'?: ConferenceStateEnum | null;
|
|
26
|
+
/**
|
|
27
|
+
* The URL to send the [conferenceRedirect](/docs/voice/webhooks/conferenceRedirect) event which will provide new BXML. Not allowed if `state` is `completed`, but required if `state` is `active`.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof UpdateConference
|
|
30
|
+
*/
|
|
31
|
+
'redirectUrl'?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {RedirectMethodEnum}
|
|
35
|
+
* @memberof UpdateConference
|
|
36
|
+
*/
|
|
37
|
+
'redirectMethod'?: RedirectMethodEnum | null;
|
|
38
|
+
/**
|
|
39
|
+
* Basic auth username.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof UpdateConference
|
|
42
|
+
*/
|
|
43
|
+
'username'?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Basic auth password.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof UpdateConference
|
|
48
|
+
*/
|
|
49
|
+
'password'?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* A fallback url which, if provided, will be used to retry the `conferenceRedirect` webhook delivery in case `redirectUrl` fails to respond. Not allowed if `state` is `completed`.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof UpdateConference
|
|
54
|
+
*/
|
|
55
|
+
'redirectFallbackUrl'?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {RedirectMethodEnum}
|
|
59
|
+
* @memberof UpdateConference
|
|
60
|
+
*/
|
|
61
|
+
'redirectFallbackMethod'?: RedirectMethodEnum | null;
|
|
62
|
+
/**
|
|
63
|
+
* Basic auth username.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof UpdateConference
|
|
66
|
+
*/
|
|
67
|
+
'fallbackUsername'?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Basic auth password.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof UpdateConference
|
|
72
|
+
*/
|
|
73
|
+
'fallbackPassword'?: string | null;
|
|
74
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Bandwidth
|
|
6
|
+
* Bandwidth\'s Communication APIs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: letstalk@bandwidth.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VerifyCodeRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface VerifyCodeRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The phone number to send the mfa code to.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VerifyCodeRequest
|
|
22
|
+
*/
|
|
23
|
+
'to': string;
|
|
24
|
+
/**
|
|
25
|
+
* An optional field to denote what scope or action the mfa code is addressing. If not supplied, defaults to \"2FA\".
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VerifyCodeRequest
|
|
28
|
+
*/
|
|
29
|
+
'scope'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The time period, in minutes, to validate the mfa code. By setting this to 3 minutes, it will mean any code generated within the last 3 minutes are still valid. The valid range for expiration time is between 0 and 15 minutes, exclusively and inclusively, respectively.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VerifyCodeRequest
|
|
34
|
+
*/
|
|
35
|
+
'expirationTimeInMinutes': number;
|
|
36
|
+
/**
|
|
37
|
+
* The generated mfa code to check if valid.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VerifyCodeRequest
|
|
40
|
+
*/
|
|
41
|
+
'code': string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Bandwidth
|
|
6
|
+
* Bandwidth\'s Communication APIs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: letstalk@bandwidth.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VerifyCodeResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface VerifyCodeResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Whether or not the supplied code is valid.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof VerifyCodeResponse
|
|
22
|
+
*/
|
|
23
|
+
'valid'?: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Bandwidth
|
|
6
|
+
* Bandwidth\'s Communication APIs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: letstalk@bandwidth.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VoiceApiError
|
|
16
|
+
*/
|
|
17
|
+
export interface VoiceApiError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VoiceApiError
|
|
22
|
+
*/
|
|
23
|
+
'type'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VoiceApiError
|
|
28
|
+
*/
|
|
29
|
+
'description'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VoiceApiError
|
|
34
|
+
*/
|
|
35
|
+
'id'?: string | null;
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Bandwidth
|
|
6
|
+
* Bandwidth\'s Communication APIs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: letstalk@bandwidth.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VoiceCodeResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface VoiceCodeResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Programmable Voice API Call ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VoiceCodeResponse
|
|
22
|
+
*/
|
|
23
|
+
'callId'?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Bandwidth
|
|
6
|
+
* Bandwidth\'s Communication APIs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: letstalk@bandwidth.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -137,6 +137,12 @@ export interface CallRecordingMetadata {
|
|
|
137
137
|
* @memberof CallRecordingMetadata
|
|
138
138
|
*/
|
|
139
139
|
'transcription'?: RecordingTranscriptionMetadata | null;
|
|
140
|
+
/**
|
|
141
|
+
* A name to identify this recording.
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof CallRecordingMetadata
|
|
144
|
+
*/
|
|
145
|
+
'recordingName'?: string;
|
|
140
146
|
}
|
|
141
147
|
|
|
142
148
|
|
|
@@ -26,6 +26,12 @@ export interface CallTranscriptionMetadata {
|
|
|
26
26
|
* @memberof CallTranscriptionMetadata
|
|
27
27
|
*/
|
|
28
28
|
'transcriptionId'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The programmable voice API transcription name. This name could be provided by the user when creating the transcription.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CallTranscriptionMetadata
|
|
33
|
+
*/
|
|
34
|
+
'transcriptionName'?: string;
|
|
29
35
|
/**
|
|
30
36
|
* A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint.
|
|
31
37
|
* @type {string}
|
|
@@ -89,6 +89,12 @@ export interface ConferenceRecordingMetadata {
|
|
|
89
89
|
* @memberof ConferenceRecordingMetadata
|
|
90
90
|
*/
|
|
91
91
|
'mediaUrl'?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* A name to identify this recording.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof ConferenceRecordingMetadata
|
|
96
|
+
*/
|
|
97
|
+
'recordingName'?: string;
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
|
package/package.json
CHANGED
|
@@ -57,6 +57,7 @@ describe('TranscriptionsApi', () => {
|
|
|
57
57
|
expect(data).toBeInstanceOf(Array);
|
|
58
58
|
expect(data[0].transcriptionId).toBeString();
|
|
59
59
|
expect(data[0].transcriptionUrl).toBeString();
|
|
60
|
+
expect(data[0].transcriptionName).toBeString();
|
|
60
61
|
transcriptionId = data[0].transcriptionId!;
|
|
61
62
|
});
|
|
62
63
|
});
|
|
@@ -84,7 +84,7 @@ describe('MessagesApi', () => {
|
|
|
84
84
|
MessageStatusEnum.Accepted,
|
|
85
85
|
MessageStatusEnum.Undelivered,
|
|
86
86
|
]);
|
|
87
|
-
expect(data.messages![0].messageDirection).toBeOneOf([ListMessageDirectionEnum.Inbound,
|
|
87
|
+
expect(data.messages![0].messageDirection).toBeOneOf([ListMessageDirectionEnum.Inbound, ListMessageDirectionEnum.Outbound]);
|
|
88
88
|
expect(data.messages![0].messageType).toBeOneOf([MessageTypeEnum.Sms, MessageTypeEnum.Mms]);
|
|
89
89
|
expect(data.messages![0].segmentCount).toBeInteger();
|
|
90
90
|
expect(data.messages![0].errorCode).toBePositive();
|
|
@@ -52,6 +52,7 @@ describe('RecordingsApi', () => {
|
|
|
52
52
|
expect(data[0].transcription!.status).toBeString();
|
|
53
53
|
expect(data[0].transcription!.completedTime).toBeDateString();
|
|
54
54
|
expect(data[0].transcription!.url).toStartWith('http');
|
|
55
|
+
expect(data[0].recordingName).toBeString();
|
|
55
56
|
});
|
|
56
57
|
});
|
|
57
58
|
|
|
@@ -83,11 +84,12 @@ describe('RecordingsApi', () => {
|
|
|
83
84
|
expect(data[0].transcription!.status).toBeString();
|
|
84
85
|
expect(data[0].transcription!.completedTime).toBeDateString();
|
|
85
86
|
expect(data[0].transcription!.url).toStartWith('http');
|
|
87
|
+
expect(data[0].recordingName).toBeString();
|
|
86
88
|
});
|
|
87
89
|
});
|
|
88
90
|
|
|
89
91
|
describe('getCallRecording', () => {
|
|
90
|
-
test('should get call recording', async () => {
|
|
92
|
+
test.skip('should get call recording', async () => {
|
|
91
93
|
const { status, data } = await recordingsApi.getCallRecording(BW_ACCOUNT_ID, callId, recordingId);
|
|
92
94
|
|
|
93
95
|
expect(status).toEqual(200);
|
|
@@ -113,6 +115,7 @@ describe('RecordingsApi', () => {
|
|
|
113
115
|
expect(data.transcription!.status).toBeString();
|
|
114
116
|
expect(data.transcription!.completedTime).toBeDateString();
|
|
115
117
|
expect(data.transcription!.url).toStartWith('http');
|
|
118
|
+
expect(data.recordingName).toBeString();
|
|
116
119
|
});
|
|
117
120
|
});
|
|
118
121
|
|
|
@@ -172,4 +175,5 @@ describe('RecordingsApi', () => {
|
|
|
172
175
|
expect(status).toEqual(204);
|
|
173
176
|
});
|
|
174
177
|
});
|
|
178
|
+
|
|
175
179
|
});
|
package/tsconfig.json
CHANGED
package/global.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'jest-extended';
|