bandwidth-sdk 1.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/deploy.yml +3 -3
- package/.github/workflows/test-nightly.yml +17 -22
- package/.github/workflows/test-pr.yml +4 -2
- package/.openapi-generator/FILES +6 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +40 -0
- package/api/calls-api.ts +37 -37
- package/api/conferences-api.ts +62 -62
- package/api/media-api.ts +28 -28
- package/api/messages-api.ts +22 -22
- package/api/mfaapi.ts +28 -28
- package/api/phone-number-lookup-api.ts +18 -18
- package/api/recordings-api.ts +126 -126
- package/api/statistics-api.ts +10 -10
- package/api/transcriptions-api.ts +320 -0
- package/api.ts +1 -0
- package/bandwidth.yml +243 -28
- package/base.ts +24 -6
- package/coverage/clover.xml +190 -1490
- package/coverage/coverage-final.json +47 -62
- package/coverage/lcov-report/index.html +24 -69
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/Bxml.ts.html +14 -14
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/NestableVerb.ts.html +30 -30
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/Response.ts.html +14 -14
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/Root.ts.html +25 -25
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/Verb.ts.html +20 -20
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/index.html +24 -39
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Bridge.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Conference.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/CustomParam.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Forward.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Gather.ts.html +19 -19
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Hangup.ts.html +14 -14
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Pause.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/PauseRecording.ts.html +14 -14
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/PhoneNumber.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/PlayAudio.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Record.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Redirect.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/ResumeRecording.ts.html +14 -14
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Ring.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/SendDtmf.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/SipUri.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/SpeakSentence.ts.html +17 -17
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/StartGather.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/StartRecording.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/StartStream.ts.html +16 -16
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/StartTranscription.ts.html +16 -16
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/StopGather.ts.html +14 -14
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/StopRecording.ts.html +14 -14
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/StopStream.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/StopTranscription.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/StreamParam.ts.html +15 -15
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Tag.ts.html +14 -14
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/Transfer.ts.html +16 -16
- package/coverage/lcov-report/{node-sdk/models → models}/bxml/verbs/index.html +12 -27
- package/coverage/lcov-report/{node-sdk/models → models}/call-direction-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/call-state-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/callback-method-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/conference-state-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/file-format-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/index.html +12 -27
- package/coverage/lcov-report/{node-sdk/models → models}/list-message-direction-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/lookup-status-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/machine-detection-mode-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/message-direction-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/message-status-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/message-type-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/priority-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/recording-state-enum.ts.html +11 -11
- package/coverage/lcov-report/{node-sdk/models → models}/redirect-method-enum.ts.html +11 -11
- package/coverage/lcov.info +323 -3342
- package/custom_templates/README.mustache +40 -0
- package/custom_templates/package.mustache +5 -2
- package/dist/api/calls-api.d.ts +21 -21
- package/dist/api/calls-api.js +69 -40
- package/dist/api/conferences-api.d.ts +34 -34
- package/dist/api/conferences-api.js +117 -72
- package/dist/api/media-api.d.ts +15 -15
- package/dist/api/media-api.js +57 -32
- package/dist/api/messages-api.d.ts +14 -14
- package/dist/api/messages-api.js +33 -16
- package/dist/api/mfaapi.d.ts +16 -16
- package/dist/api/mfaapi.js +45 -24
- package/dist/api/phone-number-lookup-api.d.ts +11 -11
- package/dist/api/phone-number-lookup-api.js +33 -16
- package/dist/api/recordings-api.d.ts +68 -68
- package/dist/api/recordings-api.js +196 -147
- package/dist/api/statistics-api.d.ts +6 -6
- package/dist/api/statistics-api.js +21 -8
- package/dist/api/transcriptions-api.d.ts +161 -0
- package/dist/api/transcriptions-api.js +427 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +2 -2
- package/dist/base.js +22 -4
- package/dist/models/answer-callback.d.ts +3 -3
- package/dist/models/bridge-complete-callback.d.ts +2 -2
- package/dist/models/bridge-target-complete-callback.d.ts +2 -2
- package/dist/models/bxml/verbs/Bridge.d.ts +1 -2
- package/dist/models/bxml/verbs/Conference.d.ts +1 -2
- package/dist/models/bxml/verbs/CustomParam.d.ts +1 -2
- package/dist/models/bxml/verbs/Forward.d.ts +1 -2
- package/dist/models/bxml/verbs/Gather.d.ts +2 -2
- package/dist/models/bxml/verbs/Pause.d.ts +1 -2
- package/dist/models/bxml/verbs/PhoneNumber.d.ts +1 -2
- package/dist/models/bxml/verbs/PlayAudio.d.ts +1 -2
- package/dist/models/bxml/verbs/Record.d.ts +1 -2
- package/dist/models/bxml/verbs/Redirect.d.ts +1 -2
- package/dist/models/bxml/verbs/Ring.d.ts +1 -2
- package/dist/models/bxml/verbs/SendDtmf.d.ts +1 -2
- package/dist/models/bxml/verbs/SipUri.d.ts +1 -2
- package/dist/models/bxml/verbs/SpeakSentence.d.ts +1 -2
- package/dist/models/bxml/verbs/StartGather.d.ts +1 -2
- package/dist/models/bxml/verbs/StartRecording.d.ts +1 -2
- package/dist/models/bxml/verbs/StartStream.d.ts +1 -2
- package/dist/models/bxml/verbs/StartTranscription.d.ts +1 -2
- package/dist/models/bxml/verbs/StopStream.d.ts +1 -2
- package/dist/models/bxml/verbs/StopTranscription.d.ts +1 -2
- package/dist/models/bxml/verbs/StreamParam.d.ts +1 -2
- package/dist/models/bxml/verbs/Transfer.d.ts +1 -1
- package/dist/models/call-recording-metadata.d.ts +7 -7
- package/dist/models/call-state.d.ts +1 -1
- package/dist/models/call-transcription-metadata.d.ts +30 -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.d.ts +53 -0
- package/dist/models/call-transcription.js +25 -0
- package/dist/models/conference-member-exit-callback.d.ts +1 -1
- package/dist/models/conference-member-join-callback.d.ts +1 -1
- package/dist/models/conference-recording-available-callback.d.ts +1 -1
- package/dist/models/conference-recording-metadata.d.ts +1 -1
- package/dist/models/conference.d.ts +2 -2
- package/dist/models/create-call-response.d.ts +1 -1
- package/dist/models/create-call.d.ts +10 -4
- package/dist/models/create-lookup-response.d.ts +1 -1
- package/dist/models/create-message-request-error.d.ts +1 -1
- package/dist/models/disconnect-callback.d.ts +2 -2
- package/dist/models/dtmf-callback.d.ts +3 -3
- package/dist/models/gather-callback.d.ts +3 -3
- package/dist/models/inbound-message-callback-message.d.ts +2 -2
- package/dist/models/inbound-message-callback.d.ts +1 -1
- package/dist/models/index.d.ts +5 -2
- package/dist/models/index.js +5 -2
- package/dist/models/initiate-callback.d.ts +4 -4
- package/dist/models/list-message-item.d.ts +3 -3
- package/dist/models/lookup-status.d.ts +2 -2
- package/dist/models/machine-detection-complete-callback.d.ts +3 -3
- package/dist/models/machine-detection-configuration.d.ts +3 -3
- package/dist/models/message-delivered-callback-message.d.ts +2 -2
- package/dist/models/message-delivered-callback.d.ts +1 -1
- package/dist/models/message-failed-callback-message.d.ts +2 -2
- package/dist/models/message-failed-callback.d.ts +1 -1
- package/dist/models/message-request.d.ts +1 -1
- package/dist/models/message-sending-callback-message.d.ts +2 -2
- package/dist/models/message-sending-callback.d.ts +1 -1
- package/dist/models/message.d.ts +2 -2
- package/dist/models/messages-list.d.ts +2 -2
- package/dist/models/recording-available-callback.d.ts +7 -7
- package/dist/models/recording-complete-callback.d.ts +4 -4
- 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 +3 -3
- package/dist/models/transcribe-recording.d.ts +1 -1
- package/dist/models/transcription-available-callback.d.ts +5 -5
- package/dist/models/transfer-answer-callback.d.ts +3 -3
- package/dist/models/transfer-complete-callback.d.ts +3 -3
- package/dist/models/transfer-disconnect-callback.d.ts +3 -3
- package/dist/models/update-call-recording.d.ts +1 -1
- package/dist/models/update-call.d.ts +2 -2
- package/dist/models/update-conference.d.ts +2 -2
- package/models/answer-callback.ts +3 -3
- package/models/bridge-complete-callback.ts +2 -2
- package/models/bridge-target-complete-callback.ts +2 -2
- package/models/bxml/verbs/Bridge.ts +1 -1
- package/models/bxml/verbs/Conference.ts +1 -1
- package/models/bxml/verbs/CustomParam.ts +1 -1
- package/models/bxml/verbs/Forward.ts +1 -1
- package/models/bxml/verbs/Gather.ts +2 -2
- package/models/bxml/verbs/Pause.ts +1 -1
- package/models/bxml/verbs/PhoneNumber.ts +1 -1
- package/models/bxml/verbs/PlayAudio.ts +1 -1
- package/models/bxml/verbs/Record.ts +1 -1
- package/models/bxml/verbs/Redirect.ts +1 -1
- package/models/bxml/verbs/Ring.ts +1 -1
- package/models/bxml/verbs/SendDtmf.ts +1 -1
- package/models/bxml/verbs/SipUri.ts +1 -1
- package/models/bxml/verbs/SpeakSentence.ts +1 -1
- package/models/bxml/verbs/StartGather.ts +1 -1
- package/models/bxml/verbs/StartRecording.ts +1 -1
- package/models/bxml/verbs/StartStream.ts +1 -1
- package/models/bxml/verbs/StartTranscription.ts +1 -1
- package/models/bxml/verbs/StopStream.ts +1 -1
- package/models/bxml/verbs/StopTranscription.ts +1 -1
- package/models/bxml/verbs/StreamParam.ts +1 -1
- package/models/bxml/verbs/Transfer.ts +1 -1
- package/models/call-recording-metadata.ts +7 -7
- package/models/call-state.ts +1 -1
- package/models/call-transcription-metadata.ts +36 -0
- package/models/call-transcription-response.ts +51 -0
- package/models/call-transcription.ts +63 -0
- package/models/conference-member-exit-callback.ts +1 -1
- package/models/conference-member-join-callback.ts +1 -1
- package/models/conference-recording-available-callback.ts +1 -1
- package/models/conference-recording-metadata.ts +1 -1
- package/models/conference.ts +2 -2
- package/models/create-call-response.ts +1 -1
- package/models/create-call.ts +10 -4
- package/models/create-lookup-response.ts +1 -1
- package/models/create-message-request-error.ts +1 -1
- package/models/disconnect-callback.ts +2 -2
- package/models/dtmf-callback.ts +3 -3
- package/models/gather-callback.ts +3 -3
- package/models/inbound-message-callback-message.ts +2 -2
- package/models/inbound-message-callback.ts +1 -1
- package/models/index.ts +5 -2
- package/models/initiate-callback.ts +4 -4
- package/models/list-message-item.ts +3 -3
- package/models/lookup-status.ts +2 -2
- package/models/machine-detection-complete-callback.ts +3 -3
- package/models/machine-detection-configuration.ts +3 -3
- package/models/message-delivered-callback-message.ts +2 -2
- package/models/message-delivered-callback.ts +1 -1
- package/models/message-failed-callback-message.ts +2 -2
- package/models/message-failed-callback.ts +1 -1
- package/models/message-request.ts +1 -1
- package/models/message-sending-callback-message.ts +2 -2
- package/models/message-sending-callback.ts +1 -1
- package/models/message.ts +2 -2
- package/models/messages-list.ts +2 -2
- package/models/recording-available-callback.ts +7 -7
- package/models/recording-complete-callback.ts +4 -4
- package/models/recording-transcription-metadata.ts +48 -0
- package/models/recording-transcriptions.ts +33 -0
- package/models/redirect-callback.ts +3 -3
- package/models/transcribe-recording.ts +1 -1
- package/models/transcription-available-callback.ts +5 -5
- package/models/transfer-answer-callback.ts +3 -3
- package/models/transfer-complete-callback.ts +3 -3
- package/models/transfer-disconnect-callback.ts +3 -3
- package/models/update-call-recording.ts +1 -1
- package/models/update-call.ts +2 -2
- package/models/update-conference.ts +2 -2
- package/openapitools.json +1 -1
- package/package.json +6 -3
- package/tests/callUtils.ts +84 -0
- package/tests/{integration/bxml.test.js → smoke/bxml.test.ts} +59 -40
- package/tests/{integration/calls-api.test.js → smoke/calls-api.test.ts} +56 -48
- package/tests/{integration/conferences-api.test.js → smoke/conferences-api.test.ts} +28 -29
- package/tests/{integration/media-api.test.js → smoke/media-api.test.ts} +18 -17
- package/tests/smoke/messages-api.test.ts +115 -0
- package/tests/{integration/mfaapi.test.js → smoke/mfaapi.test.ts} +27 -25
- package/tests/{integration/phone-number-lookup-api.test.js → smoke/phone-number-lookup-api.test.ts} +9 -7
- package/tests/{integration/recordings-api.test.js → smoke/recordings-api.test.ts} +41 -41
- package/tests/{integration/statistics-api.test.js → smoke/statistics-api.test.ts} +9 -8
- package/tests/smoke/transcriptions-api.test.ts +85 -0
- package/tests/unit/{bxml/Bxml.test.js → models/bxml/Bxml.test.ts} +3 -3
- package/tests/unit/{bxml/NestableVerb.test.js → models/bxml/NestableVerb.test.ts} +2 -2
- package/tests/unit/{bxml/Response.test.js → models/bxml/Response.test.ts} +3 -3
- package/tests/unit/{bxml/Verb.test.js → models/bxml/Verb.test.ts} +1 -1
- package/tests/unit/{bxml/verbs/Bridge.test.js → models/bxml/verbs/Bridge.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/Conference.test.js → models/bxml/verbs/Conference.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/CustomParam.test.js → models/bxml/verbs/CustomParam.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/Forward.test.js → models/bxml/verbs/Forward.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/Gather.test.js → models/bxml/verbs/Gather.test.ts} +5 -5
- package/tests/unit/{bxml/verbs/Hangup.test.js → models/bxml/verbs/Hangup.test.ts} +2 -2
- package/tests/unit/{bxml/verbs/Pause.test.js → models/bxml/verbs/Pause.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/PauseRecording.test.js → models/bxml/verbs/PauseRecording.test.ts} +2 -2
- package/tests/unit/{bxml/verbs/PhoneNumber.test.js → models/bxml/verbs/PhoneNumber.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/PlayAudio.test.js → models/bxml/verbs/PlayAudio.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/Record.test.js → models/bxml/verbs/Record.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/Redirect.test.js → models/bxml/verbs/Redirect.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/ResumeRecording.test.js → models/bxml/verbs/ResumeRecording.test.ts} +2 -2
- package/tests/unit/{bxml/verbs/Ring.test.js → models/bxml/verbs/Ring.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/SendDtmf.test.js → models/bxml/verbs/SendDtmf.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/SipUri.test.js → models/bxml/verbs/SipUri.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/SpeakSentence.test.js → models/bxml/verbs/SpeakSentence.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/StartGather.test.js → models/bxml/verbs/StartGather.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/StartRecording.test.js → models/bxml/verbs/StartRecording.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/StartStream.test.js → models/bxml/verbs/StartStream.test.ts} +4 -4
- package/tests/unit/{bxml/verbs/StartTranscription.test.js → models/bxml/verbs/StartTranscription.test.ts} +4 -4
- package/tests/unit/{bxml/verbs/StopGather.test.js → models/bxml/verbs/StopGather.test.ts} +2 -2
- package/tests/unit/{bxml/verbs/StopRecording.test.js → models/bxml/verbs/StopRecording.test.ts} +2 -2
- package/tests/unit/{bxml/verbs/StopStream.test.js → models/bxml/verbs/StopStream.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/StopTranscription.test.js → models/bxml/verbs/StopTranscription.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/StreamParam.test.js → models/bxml/verbs/StreamParam.test.ts} +3 -3
- package/tests/unit/{bxml/verbs/Tag.test.js → models/bxml/verbs/Tag.test.ts} +2 -2
- package/tests/unit/{bxml/verbs/Transfer.test.js → models/bxml/verbs/Transfer.test.ts} +5 -5
- package/tests/unit/{call-direction-enum.test.js → models/call-direction-enum.test.ts} +1 -1
- package/tests/unit/{call-state-enum.test.js → models/call-state-enum.test.ts} +1 -1
- package/tests/unit/{callback-method-enum.test.js → models/callback-method-enum.test.ts} +1 -1
- package/tests/unit/{conference-state-enum.test.js → models/conference-state-enum.test.ts} +1 -1
- package/tests/unit/{file-format-enum.test.js → models/file-format-enum.test.ts} +1 -1
- package/tests/unit/{list-message-direction-enum.test.js → models/list-message-direction-enum.test.ts} +1 -1
- package/tests/unit/{lookup-status-enum.test.js → models/lookup-status-enum.test.ts} +1 -1
- package/tests/unit/{machine-detection-mode-enum.test.js → models/machine-detection-mode-enum.test.ts} +1 -1
- package/tests/unit/{message-direction-enum.test.js → models/message-direction-enum.test.ts} +1 -1
- package/tests/unit/{message-status-enum.test.js → models/message-status-enum.test.ts} +1 -1
- package/tests/unit/{message-type-enum.test.js → models/message-type-enum.test.ts} +1 -1
- package/tests/unit/{priority-enum.test.js → models/priority-enum.test.ts} +1 -1
- package/tests/unit/{recording-state-enum.test.js → models/recording-state-enum.test.ts} +1 -1
- package/tests/unit/{redirect-method-enum.test.js → models/redirect-method-enum.test.ts} +1 -1
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +0 -1702
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +0 -2725
- package/coverage/lcov-report/node-sdk/api/index.html +0 -221
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +0 -1315
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +0 -1138
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +0 -1051
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +0 -775
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +0 -2971
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +0 -496
- package/coverage/lcov-report/node-sdk/base.ts.html +0 -991
- package/coverage/lcov-report/node-sdk/common.ts.html +0 -535
- package/coverage/lcov-report/node-sdk/configuration.ts.html +0 -415
- package/coverage/lcov-report/node-sdk/index.html +0 -146
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +0 -94
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +0 -175
- package/coverage/lcov-report/node-sdk/models/index.ts.html +0 -352
- package/coverage/lcov-report/node-sdk/tests/callUtils.js.html +0 -334
- package/coverage/lcov-report/node-sdk/tests/index.html +0 -116
- package/tests/callUtils.js +0 -83
- package/tests/integration/messages-api.test.js +0 -114
|
@@ -0,0 +1,427 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
+
if (ar || !(i in from)) {
|
|
80
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
+
ar[i] = from[i];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
+
};
|
|
86
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
+
exports.TranscriptionsApi = exports.TranscriptionsApiFactory = exports.TranscriptionsApiFp = exports.TranscriptionsApiAxiosParamCreator = void 0;
|
|
88
|
+
var axios_1 = require("axios");
|
|
89
|
+
// Some imports not used depending on template conditions
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
var common_1 = require("../common");
|
|
92
|
+
// @ts-ignore
|
|
93
|
+
var base_1 = require("../base");
|
|
94
|
+
/**
|
|
95
|
+
* TranscriptionsApi - axios parameter creator
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
var TranscriptionsApiAxiosParamCreator = function (configuration) {
|
|
99
|
+
var _this = this;
|
|
100
|
+
return {
|
|
101
|
+
/**
|
|
102
|
+
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
103
|
+
* @summary Delete a specific transcription
|
|
104
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
105
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
106
|
+
* @param {string} transcriptionId Programmable Voice API Transcription ID.
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
deleteRealTimeTranscription: function (accountId_1, callId_1, transcriptionId_1) {
|
|
111
|
+
var args_1 = [];
|
|
112
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
113
|
+
args_1[_i - 3] = arguments[_i];
|
|
114
|
+
}
|
|
115
|
+
return __awaiter(_this, __spreadArray([accountId_1, callId_1, transcriptionId_1], args_1, true), void 0, function (accountId, callId, transcriptionId, options) {
|
|
116
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
117
|
+
if (options === void 0) { options = {}; }
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
120
|
+
(0, common_1.assertParamExists)('deleteRealTimeTranscription', 'accountId', accountId);
|
|
121
|
+
// verify required parameter 'callId' is not null or undefined
|
|
122
|
+
(0, common_1.assertParamExists)('deleteRealTimeTranscription', 'callId', callId);
|
|
123
|
+
// verify required parameter 'transcriptionId' is not null or undefined
|
|
124
|
+
(0, common_1.assertParamExists)('deleteRealTimeTranscription', 'transcriptionId', transcriptionId);
|
|
125
|
+
localVarPath = "/accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId}"
|
|
126
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
127
|
+
.replace("{".concat("callId", "}"), encodeURIComponent(String(callId)))
|
|
128
|
+
.replace("{".concat("transcriptionId", "}"), encodeURIComponent(String(transcriptionId)));
|
|
129
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
130
|
+
if (configuration) {
|
|
131
|
+
baseOptions = configuration.baseOptions;
|
|
132
|
+
}
|
|
133
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
134
|
+
localVarHeaderParameter = {};
|
|
135
|
+
localVarQueryParameter = {};
|
|
136
|
+
// authentication Basic required
|
|
137
|
+
// http basic authentication required
|
|
138
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
139
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
142
|
+
return [2 /*return*/, {
|
|
143
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
144
|
+
options: localVarRequestOptions,
|
|
145
|
+
}];
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
* Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
|
|
151
|
+
* @summary Retrieve a specific transcription
|
|
152
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
153
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
154
|
+
* @param {string} transcriptionId Programmable Voice API Transcription ID.
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
getRealTimeTranscription: function (accountId_1, callId_1, transcriptionId_1) {
|
|
159
|
+
var args_1 = [];
|
|
160
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
161
|
+
args_1[_i - 3] = arguments[_i];
|
|
162
|
+
}
|
|
163
|
+
return __awaiter(_this, __spreadArray([accountId_1, callId_1, transcriptionId_1], args_1, true), void 0, function (accountId, callId, transcriptionId, options) {
|
|
164
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
|
+
if (options === void 0) { options = {}; }
|
|
166
|
+
return __generator(this, function (_a) {
|
|
167
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
168
|
+
(0, common_1.assertParamExists)('getRealTimeTranscription', 'accountId', accountId);
|
|
169
|
+
// verify required parameter 'callId' is not null or undefined
|
|
170
|
+
(0, common_1.assertParamExists)('getRealTimeTranscription', 'callId', callId);
|
|
171
|
+
// verify required parameter 'transcriptionId' is not null or undefined
|
|
172
|
+
(0, common_1.assertParamExists)('getRealTimeTranscription', 'transcriptionId', transcriptionId);
|
|
173
|
+
localVarPath = "/accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId}"
|
|
174
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
175
|
+
.replace("{".concat("callId", "}"), encodeURIComponent(String(callId)))
|
|
176
|
+
.replace("{".concat("transcriptionId", "}"), encodeURIComponent(String(transcriptionId)));
|
|
177
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
178
|
+
if (configuration) {
|
|
179
|
+
baseOptions = configuration.baseOptions;
|
|
180
|
+
}
|
|
181
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
182
|
+
localVarHeaderParameter = {};
|
|
183
|
+
localVarQueryParameter = {};
|
|
184
|
+
// authentication Basic required
|
|
185
|
+
// http basic authentication required
|
|
186
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
187
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
188
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
190
|
+
return [2 /*return*/, {
|
|
191
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
192
|
+
options: localVarRequestOptions,
|
|
193
|
+
}];
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
* Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
|
|
199
|
+
* @summary Enumerate transcriptions made with StartTranscription
|
|
200
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
201
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
listRealTimeTranscriptions: function (accountId_1, callId_1) {
|
|
206
|
+
var args_1 = [];
|
|
207
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
208
|
+
args_1[_i - 2] = arguments[_i];
|
|
209
|
+
}
|
|
210
|
+
return __awaiter(_this, __spreadArray([accountId_1, callId_1], args_1, true), void 0, function (accountId, callId, options) {
|
|
211
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
212
|
+
if (options === void 0) { options = {}; }
|
|
213
|
+
return __generator(this, function (_a) {
|
|
214
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
215
|
+
(0, common_1.assertParamExists)('listRealTimeTranscriptions', 'accountId', accountId);
|
|
216
|
+
// verify required parameter 'callId' is not null or undefined
|
|
217
|
+
(0, common_1.assertParamExists)('listRealTimeTranscriptions', 'callId', callId);
|
|
218
|
+
localVarPath = "/accounts/{accountId}/calls/{callId}/transcriptions"
|
|
219
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
220
|
+
.replace("{".concat("callId", "}"), encodeURIComponent(String(callId)));
|
|
221
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
222
|
+
if (configuration) {
|
|
223
|
+
baseOptions = configuration.baseOptions;
|
|
224
|
+
}
|
|
225
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
226
|
+
localVarHeaderParameter = {};
|
|
227
|
+
localVarQueryParameter = {};
|
|
228
|
+
// authentication Basic required
|
|
229
|
+
// http basic authentication required
|
|
230
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
231
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
232
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
233
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
234
|
+
return [2 /*return*/, {
|
|
235
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
236
|
+
options: localVarRequestOptions,
|
|
237
|
+
}];
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
exports.TranscriptionsApiAxiosParamCreator = TranscriptionsApiAxiosParamCreator;
|
|
244
|
+
/**
|
|
245
|
+
* TranscriptionsApi - functional programming interface
|
|
246
|
+
* @export
|
|
247
|
+
*/
|
|
248
|
+
var TranscriptionsApiFp = function (configuration) {
|
|
249
|
+
var localVarAxiosParamCreator = (0, exports.TranscriptionsApiAxiosParamCreator)(configuration);
|
|
250
|
+
return {
|
|
251
|
+
/**
|
|
252
|
+
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
253
|
+
* @summary Delete a specific transcription
|
|
254
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
255
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
256
|
+
* @param {string} transcriptionId Programmable Voice API Transcription ID.
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
deleteRealTimeTranscription: function (accountId, callId, transcriptionId, options) {
|
|
261
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
262
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
263
|
+
var _a, _b, _c;
|
|
264
|
+
return __generator(this, function (_d) {
|
|
265
|
+
switch (_d.label) {
|
|
266
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteRealTimeTranscription(accountId, callId, transcriptionId, options)];
|
|
267
|
+
case 1:
|
|
268
|
+
localVarAxiosArgs = _d.sent();
|
|
269
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
270
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TranscriptionsApi.deleteRealTimeTranscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
271
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
},
|
|
276
|
+
/**
|
|
277
|
+
* Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
|
|
278
|
+
* @summary Retrieve a specific transcription
|
|
279
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
280
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
281
|
+
* @param {string} transcriptionId Programmable Voice API Transcription ID.
|
|
282
|
+
* @param {*} [options] Override http request option.
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
*/
|
|
285
|
+
getRealTimeTranscription: function (accountId, callId, transcriptionId, options) {
|
|
286
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
287
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
288
|
+
var _a, _b, _c;
|
|
289
|
+
return __generator(this, function (_d) {
|
|
290
|
+
switch (_d.label) {
|
|
291
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRealTimeTranscription(accountId, callId, transcriptionId, options)];
|
|
292
|
+
case 1:
|
|
293
|
+
localVarAxiosArgs = _d.sent();
|
|
294
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
295
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TranscriptionsApi.getRealTimeTranscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
296
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
|
|
303
|
+
* @summary Enumerate transcriptions made with StartTranscription
|
|
304
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
305
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
listRealTimeTranscriptions: function (accountId, callId, options) {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
311
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
312
|
+
var _a, _b, _c;
|
|
313
|
+
return __generator(this, function (_d) {
|
|
314
|
+
switch (_d.label) {
|
|
315
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRealTimeTranscriptions(accountId, callId, options)];
|
|
316
|
+
case 1:
|
|
317
|
+
localVarAxiosArgs = _d.sent();
|
|
318
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
319
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TranscriptionsApi.listRealTimeTranscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
320
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
},
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
exports.TranscriptionsApiFp = TranscriptionsApiFp;
|
|
328
|
+
/**
|
|
329
|
+
* TranscriptionsApi - factory interface
|
|
330
|
+
* @export
|
|
331
|
+
*/
|
|
332
|
+
var TranscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
333
|
+
var localVarFp = (0, exports.TranscriptionsApiFp)(configuration);
|
|
334
|
+
return {
|
|
335
|
+
/**
|
|
336
|
+
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
337
|
+
* @summary Delete a specific transcription
|
|
338
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
339
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
340
|
+
* @param {string} transcriptionId Programmable Voice API Transcription ID.
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
deleteRealTimeTranscription: function (accountId, callId, transcriptionId, options) {
|
|
345
|
+
return localVarFp.deleteRealTimeTranscription(accountId, callId, transcriptionId, options).then(function (request) { return request(axios, basePath); });
|
|
346
|
+
},
|
|
347
|
+
/**
|
|
348
|
+
* Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
|
|
349
|
+
* @summary Retrieve a specific transcription
|
|
350
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
351
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
352
|
+
* @param {string} transcriptionId Programmable Voice API Transcription ID.
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
*/
|
|
356
|
+
getRealTimeTranscription: function (accountId, callId, transcriptionId, options) {
|
|
357
|
+
return localVarFp.getRealTimeTranscription(accountId, callId, transcriptionId, options).then(function (request) { return request(axios, basePath); });
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
* Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
|
|
361
|
+
* @summary Enumerate transcriptions made with StartTranscription
|
|
362
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
363
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
listRealTimeTranscriptions: function (accountId, callId, options) {
|
|
368
|
+
return localVarFp.listRealTimeTranscriptions(accountId, callId, options).then(function (request) { return request(axios, basePath); });
|
|
369
|
+
},
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
exports.TranscriptionsApiFactory = TranscriptionsApiFactory;
|
|
373
|
+
/**
|
|
374
|
+
* TranscriptionsApi - object-oriented interface
|
|
375
|
+
* @export
|
|
376
|
+
* @class TranscriptionsApi
|
|
377
|
+
* @extends {BaseAPI}
|
|
378
|
+
*/
|
|
379
|
+
var TranscriptionsApi = /** @class */ (function (_super) {
|
|
380
|
+
__extends(TranscriptionsApi, _super);
|
|
381
|
+
function TranscriptionsApi() {
|
|
382
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
386
|
+
* @summary Delete a specific transcription
|
|
387
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
388
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
389
|
+
* @param {string} transcriptionId Programmable Voice API Transcription ID.
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
* @memberof TranscriptionsApi
|
|
393
|
+
*/
|
|
394
|
+
TranscriptionsApi.prototype.deleteRealTimeTranscription = function (accountId, callId, transcriptionId, options) {
|
|
395
|
+
var _this = this;
|
|
396
|
+
return (0, exports.TranscriptionsApiFp)(this.configuration).deleteRealTimeTranscription(accountId, callId, transcriptionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
|
|
400
|
+
* @summary Retrieve a specific transcription
|
|
401
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
402
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
403
|
+
* @param {string} transcriptionId Programmable Voice API Transcription ID.
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
* @memberof TranscriptionsApi
|
|
407
|
+
*/
|
|
408
|
+
TranscriptionsApi.prototype.getRealTimeTranscription = function (accountId, callId, transcriptionId, options) {
|
|
409
|
+
var _this = this;
|
|
410
|
+
return (0, exports.TranscriptionsApiFp)(this.configuration).getRealTimeTranscription(accountId, callId, transcriptionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
|
|
414
|
+
* @summary Enumerate transcriptions made with StartTranscription
|
|
415
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
416
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
* @memberof TranscriptionsApi
|
|
420
|
+
*/
|
|
421
|
+
TranscriptionsApi.prototype.listRealTimeTranscriptions = function (accountId, callId, options) {
|
|
422
|
+
var _this = this;
|
|
423
|
+
return (0, exports.TranscriptionsApiFp)(this.configuration).listRealTimeTranscriptions(accountId, callId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
424
|
+
};
|
|
425
|
+
return TranscriptionsApi;
|
|
426
|
+
}(base_1.BaseAPI));
|
|
427
|
+
exports.TranscriptionsApi = TranscriptionsApi;
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -35,3 +35,4 @@ __exportStar(require("./api/messages-api"), exports);
|
|
|
35
35
|
__exportStar(require("./api/phone-number-lookup-api"), exports);
|
|
36
36
|
__exportStar(require("./api/recordings-api"), exports);
|
|
37
37
|
__exportStar(require("./api/statistics-api"), exports);
|
|
38
|
+
__exportStar(require("./api/transcriptions-api"), exports);
|
package/dist/base.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance,
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface RequestArgs {
|
|
31
31
|
url: string;
|
|
32
|
-
options:
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
package/dist/base.js
CHANGED
|
@@ -234,19 +234,19 @@ exports.operationServerMap = {
|
|
|
234
234
|
description: "Production",
|
|
235
235
|
}
|
|
236
236
|
],
|
|
237
|
-
"RecordingsApi.
|
|
237
|
+
"RecordingsApi.deleteRecording": [
|
|
238
238
|
{
|
|
239
239
|
url: "https://voice.bandwidth.com/api/v2",
|
|
240
240
|
description: "Production",
|
|
241
241
|
}
|
|
242
242
|
],
|
|
243
|
-
"RecordingsApi.
|
|
243
|
+
"RecordingsApi.deleteRecordingMedia": [
|
|
244
244
|
{
|
|
245
245
|
url: "https://voice.bandwidth.com/api/v2",
|
|
246
246
|
description: "Production",
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
|
-
"RecordingsApi.
|
|
249
|
+
"RecordingsApi.deleteRecordingTranscription": [
|
|
250
250
|
{
|
|
251
251
|
url: "https://voice.bandwidth.com/api/v2",
|
|
252
252
|
description: "Production",
|
|
@@ -264,7 +264,7 @@ exports.operationServerMap = {
|
|
|
264
264
|
description: "Production",
|
|
265
265
|
}
|
|
266
266
|
],
|
|
267
|
-
"RecordingsApi.
|
|
267
|
+
"RecordingsApi.getRecordingTranscription": [
|
|
268
268
|
{
|
|
269
269
|
url: "https://voice.bandwidth.com/api/v2",
|
|
270
270
|
description: "Production",
|
|
@@ -300,4 +300,22 @@ exports.operationServerMap = {
|
|
|
300
300
|
description: "Production",
|
|
301
301
|
}
|
|
302
302
|
],
|
|
303
|
+
"TranscriptionsApi.deleteRealTimeTranscription": [
|
|
304
|
+
{
|
|
305
|
+
url: "https://voice.bandwidth.com/api/v2",
|
|
306
|
+
description: "Production",
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"TranscriptionsApi.getRealTimeTranscription": [
|
|
310
|
+
{
|
|
311
|
+
url: "https://voice.bandwidth.com/api/v2",
|
|
312
|
+
description: "Production",
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"TranscriptionsApi.listRealTimeTranscriptions": [
|
|
316
|
+
{
|
|
317
|
+
url: "https://voice.bandwidth.com/api/v2",
|
|
318
|
+
description: "Production",
|
|
319
|
+
}
|
|
320
|
+
],
|
|
303
321
|
};
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CallDirectionEnum } from './call-direction-enum';
|
|
13
|
-
import { MachineDetectionResult } from './machine-detection-result';
|
|
12
|
+
import type { CallDirectionEnum } from './call-direction-enum';
|
|
13
|
+
import type { MachineDetectionResult } from './machine-detection-result';
|
|
14
14
|
/**
|
|
15
15
|
* The Answer event is sent to the answerUrl specified in the createCall request when an outbound call is answered.
|
|
16
16
|
* @export
|
|
@@ -42,7 +42,7 @@ export interface AnswerCallback {
|
|
|
42
42
|
*/
|
|
43
43
|
'applicationId'?: string;
|
|
44
44
|
/**
|
|
45
|
-
* The provided identifier of the caller
|
|
45
|
+
* The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555).
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof AnswerCallback
|
|
48
48
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CallDirectionEnum } from './call-direction-enum';
|
|
12
|
+
import type { CallDirectionEnum } from './call-direction-enum';
|
|
13
13
|
/**
|
|
14
14
|
* If the target call leaves the <Bridge>, then this callback is sent to the bridgeCompleteUrl, and the BXML returned in it is executed on the call. If this webhook is sent, the Bridge Target Complete webhook is NOT sent. This callback is also sent if any problem occurs that prevents the calls to be bridged.
|
|
15
15
|
* @export
|
|
@@ -41,7 +41,7 @@ export interface BridgeCompleteCallback {
|
|
|
41
41
|
*/
|
|
42
42
|
'applicationId'?: string;
|
|
43
43
|
/**
|
|
44
|
-
* The provided identifier of the caller
|
|
44
|
+
* The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555).
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof BridgeCompleteCallback
|
|
47
47
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CallDirectionEnum } from './call-direction-enum';
|
|
12
|
+
import type { CallDirectionEnum } from './call-direction-enum';
|
|
13
13
|
/**
|
|
14
14
|
* If the originating call leaves the <Bridge>, then this callback is sent to the bridgeTargetCompleteUrl, and the BXML returned in it is executed on the target call. If this webhook is sent, the Bridge Complete webhook is NOT sent.
|
|
15
15
|
* @export
|
|
@@ -41,7 +41,7 @@ export interface BridgeTargetCompleteCallback {
|
|
|
41
41
|
*/
|
|
42
42
|
'applicationId'?: string;
|
|
43
43
|
/**
|
|
44
|
-
* The provided identifier of the caller
|
|
44
|
+
* The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555).
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof BridgeTargetCompleteCallback
|
|
47
47
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Verb } from '../Verb';
|
|
2
|
-
interface BridgeAttributes {
|
|
2
|
+
export interface BridgeAttributes {
|
|
3
3
|
bridgeCompleteUrl?: string;
|
|
4
4
|
bridgeCompleteMethod?: string;
|
|
5
5
|
bridgeCompleteFallbackUrl?: string;
|
|
@@ -30,4 +30,3 @@ export declare class Bridge extends Verb {
|
|
|
30
30
|
*/
|
|
31
31
|
constructor(targetCall: string, attributes?: BridgeAttributes);
|
|
32
32
|
}
|
|
33
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Verb } from '../Verb';
|
|
2
|
-
interface ConferenceAttributes {
|
|
2
|
+
export interface ConferenceAttributes {
|
|
3
3
|
mute?: boolean;
|
|
4
4
|
hold?: boolean;
|
|
5
5
|
callIdsToCoach?: string;
|
|
@@ -30,4 +30,3 @@ export declare class Conference extends Verb {
|
|
|
30
30
|
*/
|
|
31
31
|
constructor(name: string, attributes?: ConferenceAttributes);
|
|
32
32
|
}
|
|
33
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Verb } from '../Verb';
|
|
2
|
-
interface CustomParamAttributes {
|
|
2
|
+
export interface CustomParamAttributes {
|
|
3
3
|
name: string;
|
|
4
4
|
value: string;
|
|
5
5
|
}
|
|
@@ -17,4 +17,3 @@ export declare class CustomParam extends Verb {
|
|
|
17
17
|
*/
|
|
18
18
|
constructor(attributes: CustomParamAttributes);
|
|
19
19
|
}
|
|
20
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Verb } from '../Verb';
|
|
2
|
-
interface ForwardAttributes {
|
|
2
|
+
export interface ForwardAttributes {
|
|
3
3
|
to: string;
|
|
4
4
|
from?: string;
|
|
5
5
|
callTimeout?: number;
|
|
@@ -21,4 +21,3 @@ export declare class Forward extends Verb {
|
|
|
21
21
|
*/
|
|
22
22
|
constructor(attributes: ForwardAttributes);
|
|
23
23
|
}
|
|
24
|
-
export {};
|
|
@@ -3,7 +3,7 @@ import { PlayAudio } from './PlayAudio';
|
|
|
3
3
|
import { SpeakSentence } from './SpeakSentence';
|
|
4
4
|
import { XMLWriterOptions } from 'xmlbuilder2/lib/interfaces';
|
|
5
5
|
type AudioVerbs = Array<PlayAudio | SpeakSentence>;
|
|
6
|
-
interface GatherAttributes {
|
|
6
|
+
export interface GatherAttributes {
|
|
7
7
|
gatherUrl?: string;
|
|
8
8
|
gatherMethod?: string;
|
|
9
9
|
gatherFallbackUrl?: string;
|
|
@@ -17,7 +17,7 @@ interface GatherAttributes {
|
|
|
17
17
|
maxDigits?: number;
|
|
18
18
|
interDigitTimeout?: number;
|
|
19
19
|
firstDigitTimeout?: number;
|
|
20
|
-
|
|
20
|
+
repeatCount?: number;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Verb } from '../Verb';
|
|
2
|
-
interface PauseAttributes {
|
|
2
|
+
export interface PauseAttributes {
|
|
3
3
|
duration?: number;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -16,4 +16,3 @@ export declare class Pause extends Verb {
|
|
|
16
16
|
*/
|
|
17
17
|
constructor(attributes: PauseAttributes);
|
|
18
18
|
}
|
|
19
|
-
export {};
|