bandwidth-sdk 2.1.0 → 3.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 +4 -2
- package/.github/workflows/test-pr.yml +4 -2
- package/.github/workflows/{test-nightly.yml → test-smoke.yml} +6 -3
- package/.openapi-generator/FILES +2 -0
- package/README.md +22 -5
- package/api/transcriptions-api.ts +4 -4
- package/bandwidth.yml +43 -22
- package/coverage/clover.xml +1501 -138
- package/coverage/coverage-final.json +65 -47
- package/coverage/lcov-report/index.html +51 -21
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1702 -0
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +2725 -0
- package/coverage/lcov-report/node-sdk/api/index.html +236 -0
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1315 -0
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1138 -0
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1051 -0
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +775 -0
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +2971 -0
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +496 -0
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1045 -0
- package/coverage/lcov-report/node-sdk/api.ts.html +163 -0
- package/coverage/lcov-report/node-sdk/base.ts.html +1045 -0
- package/coverage/lcov-report/node-sdk/common.ts.html +535 -0
- package/coverage/lcov-report/node-sdk/configuration.ts.html +415 -0
- package/coverage/lcov-report/node-sdk/index.html +161 -0
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/Bxml.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/NestableVerb.ts.html +15 -15
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/Response.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/Root.ts.html +17 -17
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/Verb.ts.html +15 -15
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/index.html +29 -14
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +94 -0
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Bridge.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Conference.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/CustomParam.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Forward.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Gather.ts.html +16 -16
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Hangup.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Pause.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/PauseRecording.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/PhoneNumber.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/PlayAudio.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Record.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Redirect.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/ResumeRecording.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Ring.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/SendDtmf.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/SipUri.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/SpeakSentence.ts.html +15 -15
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartGather.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartRecording.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartStream.ts.html +14 -14
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartTranscription.ts.html +14 -14
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopGather.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopRecording.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopStream.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopTranscription.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StreamParam.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Tag.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Transfer.ts.html +14 -14
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/index.html +27 -12
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +175 -0
- package/coverage/lcov-report/{models → node-sdk/models}/call-direction-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/call-state-enum.ts.html +11 -11
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +181 -0
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +178 -0
- package/coverage/lcov-report/{models → node-sdk/models}/callback-method-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/conference-state-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/file-format-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/index.html +57 -12
- package/coverage/lcov-report/node-sdk/models/index.ts.html +367 -0
- package/coverage/lcov-report/{models → node-sdk/models}/list-message-direction-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/lookup-status-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/machine-detection-mode-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/message-direction-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/message-status-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/message-type-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/priority-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/recording-state-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/redirect-method-enum.ts.html +11 -11
- package/coverage/lcov.info +3366 -162
- package/custom_templates/README.mustache +22 -5
- package/custom_templates/package.mustache +2 -1
- package/custom_templates/tsconfig.mustache +2 -1
- package/global.d.ts +1 -0
- package/jest.config.js +1 -0
- package/models/call-recording-metadata.ts +6 -0
- package/{dist/models/call-transcription.js → models/call-transcription-detected-language-enum.ts} +16 -9
- package/models/call-transcription-metadata.ts +6 -0
- package/{dist/models/call-direction-enum.js → models/call-transcription-track-enum.ts} +12 -6
- package/models/call-transcription.ts +11 -18
- package/models/conference-recording-metadata.ts +6 -0
- package/models/index.ts +2 -0
- package/package.json +3 -2
- package/tests/callUtils.ts +11 -11
- package/tests/smoke/bxml.test.ts +17 -17
- package/tests/smoke/calls-api.test.ts +38 -38
- package/tests/smoke/conferences-api.test.ts +19 -19
- package/tests/smoke/media-api.test.ts +11 -11
- package/tests/smoke/messages-api.test.ts +26 -26
- package/tests/smoke/mfaapi.test.ts +18 -18
- package/tests/smoke/phone-number-lookup-api.test.ts +16 -6
- package/tests/smoke/recordings-api.test.ts +31 -31
- package/tests/smoke/statistics-api.test.ts +7 -7
- package/tests/smoke/transcriptions-api.test.ts +16 -15
- package/tests/unit/api/calls-api.test.ts +180 -0
- package/tests/unit/api/conferences-api.test.ts +160 -0
- package/tests/unit/api/media-api.test.ts +59 -0
- package/tests/unit/api/messages-api.test.ts +122 -0
- package/tests/unit/api/mfaapi.test.ts +76 -0
- package/tests/unit/api/phone-number-lookup-api.test.ts +96 -0
- package/tests/unit/api/recordings-api.test.ts +179 -0
- package/tests/unit/api/statistics-api.test.ts +35 -0
- package/tests/unit/api/transcriptions-api.test.ts +61 -0
- package/tests/unit/models/call-transcription-detected-language-enum.test.ts +9 -0
- package/tests/unit/models/call-transcription-track-enum.test.ts +8 -0
- package/tsconfig.json +2 -1
- package/dist/api/calls-api.d.ts +0 -261
- package/dist/api/calls-api.js +0 -656
- package/dist/api/conferences-api.d.ts +0 -422
- package/dist/api/conferences-api.js +0 -1045
- package/dist/api/media-api.d.ts +0 -201
- package/dist/api/media-api.js +0 -527
- package/dist/api/messages-api.d.ts +0 -176
- package/dist/api/messages-api.js +0 -420
- package/dist/api/mfaapi.d.ts +0 -156
- package/dist/api/mfaapi.js +0 -416
- package/dist/api/phone-number-lookup-api.d.ts +0 -117
- package/dist/api/phone-number-lookup-api.js +0 -322
- package/dist/api/recordings-api.d.ts +0 -462
- package/dist/api/recordings-api.js +0 -1143
- package/dist/api/statistics-api.d.ts +0 -74
- package/dist/api/statistics-api.js +0 -222
- package/dist/api/transcriptions-api.d.ts +0 -161
- package/dist/api/transcriptions-api.js +0 -427
- package/dist/api.d.ts +0 -20
- package/dist/api.js +0 -38
- package/dist/base.d.ts +0 -66
- package/dist/base.js +0 -321
- package/dist/common.d.ts +0 -65
- package/dist/common.js +0 -253
- package/dist/configuration.d.ts +0 -91
- package/dist/configuration.js +0 -45
- package/dist/index.d.ts +0 -14
- package/dist/index.js +0 -32
- package/dist/models/account-statistics.d.ts +0 -30
- package/dist/models/account-statistics.js +0 -15
- package/dist/models/answer-callback.d.ts +0 -104
- package/dist/models/answer-callback.js +0 -15
- package/dist/models/bridge-complete-callback.d.ts +0 -115
- package/dist/models/bridge-complete-callback.js +0 -15
- package/dist/models/bridge-target-complete-callback.d.ts +0 -97
- package/dist/models/bridge-target-complete-callback.js +0 -15
- package/dist/models/bxml/Bxml.d.ts +0 -17
- package/dist/models/bxml/Bxml.js +0 -37
- package/dist/models/bxml/NestableVerb.d.ts +0 -26
- package/dist/models/bxml/NestableVerb.js +0 -62
- package/dist/models/bxml/Response.d.ts +0 -17
- package/dist/models/bxml/Response.js +0 -37
- package/dist/models/bxml/Root.d.ts +0 -33
- package/dist/models/bxml/Root.js +0 -57
- package/dist/models/bxml/Verb.d.ts +0 -27
- package/dist/models/bxml/Verb.js +0 -38
- package/dist/models/bxml/index.d.ts +0 -2
- package/dist/models/bxml/index.js +0 -5
- package/dist/models/bxml/verbs/Bridge.d.ts +0 -32
- package/dist/models/bxml/verbs/Bridge.js +0 -38
- package/dist/models/bxml/verbs/Conference.d.ts +0 -32
- package/dist/models/bxml/verbs/Conference.js +0 -38
- package/dist/models/bxml/verbs/CustomParam.d.ts +0 -19
- package/dist/models/bxml/verbs/CustomParam.js +0 -37
- package/dist/models/bxml/verbs/Forward.d.ts +0 -23
- package/dist/models/bxml/verbs/Forward.js +0 -37
- package/dist/models/bxml/verbs/Gather.d.ts +0 -47
- package/dist/models/bxml/verbs/Gather.js +0 -53
- package/dist/models/bxml/verbs/Hangup.d.ts +0 -13
- package/dist/models/bxml/verbs/Hangup.js +0 -36
- package/dist/models/bxml/verbs/Pause.d.ts +0 -18
- package/dist/models/bxml/verbs/Pause.js +0 -37
- package/dist/models/bxml/verbs/PauseRecording.d.ts +0 -13
- package/dist/models/bxml/verbs/PauseRecording.js +0 -36
- package/dist/models/bxml/verbs/PhoneNumber.d.ts +0 -30
- package/dist/models/bxml/verbs/PhoneNumber.js +0 -38
- package/dist/models/bxml/verbs/PlayAudio.d.ts +0 -21
- package/dist/models/bxml/verbs/PlayAudio.js +0 -38
- package/dist/models/bxml/verbs/Record.d.ts +0 -35
- package/dist/models/bxml/verbs/Record.js +0 -37
- package/dist/models/bxml/verbs/Redirect.d.ts +0 -26
- package/dist/models/bxml/verbs/Redirect.js +0 -37
- package/dist/models/bxml/verbs/ResumeRecording.d.ts +0 -13
- package/dist/models/bxml/verbs/ResumeRecording.js +0 -36
- package/dist/models/bxml/verbs/Ring.d.ts +0 -19
- package/dist/models/bxml/verbs/Ring.js +0 -37
- package/dist/models/bxml/verbs/SendDtmf.d.ts +0 -21
- package/dist/models/bxml/verbs/SendDtmf.js +0 -38
- package/dist/models/bxml/verbs/SipUri.d.ts +0 -31
- package/dist/models/bxml/verbs/SipUri.js +0 -38
- package/dist/models/bxml/verbs/SpeakSentence.d.ts +0 -28
- package/dist/models/bxml/verbs/SpeakSentence.js +0 -46
- package/dist/models/bxml/verbs/StartGather.d.ts +0 -22
- package/dist/models/bxml/verbs/StartGather.js +0 -37
- package/dist/models/bxml/verbs/StartRecording.d.ts +0 -27
- package/dist/models/bxml/verbs/StartRecording.js +0 -37
- package/dist/models/bxml/verbs/StartStream.d.ts +0 -31
- package/dist/models/bxml/verbs/StartStream.js +0 -45
- package/dist/models/bxml/verbs/StartTranscription.d.ts +0 -32
- package/dist/models/bxml/verbs/StartTranscription.js +0 -45
- package/dist/models/bxml/verbs/StopGather.d.ts +0 -13
- package/dist/models/bxml/verbs/StopGather.js +0 -36
- package/dist/models/bxml/verbs/StopRecording.d.ts +0 -13
- package/dist/models/bxml/verbs/StopRecording.js +0 -36
- package/dist/models/bxml/verbs/StopStream.d.ts +0 -18
- package/dist/models/bxml/verbs/StopStream.js +0 -37
- package/dist/models/bxml/verbs/StopTranscription.d.ts +0 -18
- package/dist/models/bxml/verbs/StopTranscription.js +0 -37
- package/dist/models/bxml/verbs/StreamParam.d.ts +0 -19
- package/dist/models/bxml/verbs/StreamParam.js +0 -37
- package/dist/models/bxml/verbs/Tag.d.ts +0 -15
- package/dist/models/bxml/verbs/Tag.js +0 -37
- package/dist/models/bxml/verbs/Transfer.d.ts +0 -41
- package/dist/models/bxml/verbs/Transfer.js +0 -45
- package/dist/models/bxml/verbs/index.d.ts +0 -30
- package/dist/models/bxml/verbs/index.js +0 -46
- package/dist/models/call-direction-enum.d.ts +0 -21
- package/dist/models/call-recording-metadata.d.ts +0 -129
- package/dist/models/call-recording-metadata.js +0 -15
- package/dist/models/call-state-enum.d.ts +0 -21
- package/dist/models/call-state-enum.js +0 -25
- package/dist/models/call-state.d.ts +0 -129
- package/dist/models/call-state.js +0 -15
- package/dist/models/call-transcription-metadata.d.ts +0 -30
- package/dist/models/call-transcription-metadata.js +0 -15
- package/dist/models/call-transcription-response.d.ts +0 -43
- package/dist/models/call-transcription-response.js +0 -15
- package/dist/models/call-transcription.d.ts +0 -53
- package/dist/models/callback-method-enum.d.ts +0 -21
- package/dist/models/callback-method-enum.js +0 -25
- package/dist/models/code-request.d.ts +0 -54
- package/dist/models/code-request.js +0 -15
- package/dist/models/conference-completed-callback.d.ts +0 -48
- package/dist/models/conference-completed-callback.js +0 -15
- package/dist/models/conference-created-callback.d.ts +0 -48
- package/dist/models/conference-created-callback.js +0 -15
- package/dist/models/conference-member-exit-callback.d.ts +0 -66
- package/dist/models/conference-member-exit-callback.js +0 -15
- package/dist/models/conference-member-join-callback.d.ts +0 -66
- package/dist/models/conference-member-join-callback.js +0 -15
- package/dist/models/conference-member.d.ts +0 -54
- package/dist/models/conference-member.js +0 -15
- package/dist/models/conference-recording-available-callback.d.ts +0 -103
- package/dist/models/conference-recording-available-callback.js +0 -15
- package/dist/models/conference-recording-metadata.d.ts +0 -85
- package/dist/models/conference-recording-metadata.js +0 -15
- package/dist/models/conference-redirect-callback.d.ts +0 -48
- package/dist/models/conference-redirect-callback.js +0 -15
- package/dist/models/conference-state-enum.d.ts +0 -21
- package/dist/models/conference-state-enum.js +0 -25
- package/dist/models/conference.d.ts +0 -68
- package/dist/models/conference.js +0 -15
- package/dist/models/create-call-response.d.ts +0 -145
- package/dist/models/create-call-response.js +0 -15
- package/dist/models/create-call.d.ts +0 -146
- package/dist/models/create-call.js +0 -15
- package/dist/models/create-lookup-response.d.ts +0 -31
- package/dist/models/create-lookup-response.js +0 -15
- package/dist/models/create-message-request-error.d.ts +0 -37
- package/dist/models/create-message-request-error.js +0 -15
- package/dist/models/deferred-result.d.ts +0 -30
- package/dist/models/deferred-result.js +0 -15
- package/dist/models/disconnect-callback.d.ts +0 -121
- package/dist/models/disconnect-callback.js +0 -15
- package/dist/models/diversion.d.ts +0 -60
- package/dist/models/diversion.js +0 -15
- package/dist/models/dtmf-callback.d.ts +0 -121
- package/dist/models/dtmf-callback.js +0 -15
- package/dist/models/field-error.d.ts +0 -30
- package/dist/models/field-error.js +0 -15
- package/dist/models/file-format-enum.d.ts +0 -21
- package/dist/models/file-format-enum.js +0 -25
- package/dist/models/gather-callback.d.ts +0 -127
- package/dist/models/gather-callback.js +0 -15
- package/dist/models/inbound-message-callback-message.d.ts +0 -92
- package/dist/models/inbound-message-callback-message.js +0 -15
- package/dist/models/inbound-message-callback.d.ts +0 -49
- package/dist/models/inbound-message-callback.js +0 -15
- package/dist/models/index.d.ts +0 -92
- package/dist/models/index.js +0 -108
- package/dist/models/initiate-callback.d.ts +0 -93
- package/dist/models/initiate-callback.js +0 -15
- package/dist/models/list-message-direction-enum.d.ts +0 -21
- package/dist/models/list-message-direction-enum.js +0 -25
- package/dist/models/list-message-item.d.ts +0 -123
- package/dist/models/list-message-item.js +0 -15
- package/dist/models/lookup-request.d.ts +0 -24
- package/dist/models/lookup-request.js +0 -15
- package/dist/models/lookup-result.d.ts +0 -72
- package/dist/models/lookup-result.js +0 -15
- package/dist/models/lookup-status-enum.d.ts +0 -23
- package/dist/models/lookup-status-enum.js +0 -27
- package/dist/models/lookup-status.d.ts +0 -44
- package/dist/models/lookup-status.js +0 -15
- package/dist/models/machine-detection-complete-callback.d.ts +0 -104
- package/dist/models/machine-detection-complete-callback.js +0 -15
- package/dist/models/machine-detection-configuration.d.ts +0 -110
- package/dist/models/machine-detection-configuration.js +0 -15
- package/dist/models/machine-detection-mode-enum.d.ts +0 -21
- package/dist/models/machine-detection-mode-enum.js +0 -25
- package/dist/models/machine-detection-result.d.ts +0 -30
- package/dist/models/machine-detection-result.js +0 -15
- package/dist/models/media.d.ts +0 -36
- package/dist/models/media.js +0 -15
- package/dist/models/message-delivered-callback-message.d.ts +0 -92
- package/dist/models/message-delivered-callback-message.js +0 -15
- package/dist/models/message-delivered-callback.d.ts +0 -49
- package/dist/models/message-delivered-callback.js +0 -15
- package/dist/models/message-direction-enum.d.ts +0 -21
- package/dist/models/message-direction-enum.js +0 -25
- package/dist/models/message-failed-callback-message.d.ts +0 -92
- package/dist/models/message-failed-callback-message.js +0 -15
- package/dist/models/message-failed-callback.d.ts +0 -55
- package/dist/models/message-failed-callback.js +0 -15
- package/dist/models/message-request.d.ts +0 -67
- package/dist/models/message-request.js +0 -15
- package/dist/models/message-sending-callback-message.d.ts +0 -92
- package/dist/models/message-sending-callback-message.js +0 -15
- package/dist/models/message-sending-callback.d.ts +0 -49
- package/dist/models/message-sending-callback.js +0 -15
- package/dist/models/message-status-enum.d.ts +0 -27
- package/dist/models/message-status-enum.js +0 -31
- package/dist/models/message-type-enum.d.ts +0 -21
- package/dist/models/message-type-enum.js +0 -25
- package/dist/models/message.d.ts +0 -98
- package/dist/models/message.js +0 -15
- package/dist/models/messages-list.d.ts +0 -38
- package/dist/models/messages-list.js +0 -15
- package/dist/models/messaging-code-response.d.ts +0 -24
- package/dist/models/messaging-code-response.js +0 -15
- package/dist/models/messaging-request-error.d.ts +0 -30
- package/dist/models/messaging-request-error.js +0 -15
- package/dist/models/mfa-forbidden-request-error.d.ts +0 -24
- package/dist/models/mfa-forbidden-request-error.js +0 -15
- package/dist/models/mfa-request-error.d.ts +0 -30
- package/dist/models/mfa-request-error.js +0 -15
- package/dist/models/mfa-unauthorized-request-error.d.ts +0 -24
- package/dist/models/mfa-unauthorized-request-error.js +0 -15
- package/dist/models/page-info.d.ts +0 -42
- package/dist/models/page-info.js +0 -15
- package/dist/models/priority-enum.d.ts +0 -21
- package/dist/models/priority-enum.js +0 -25
- package/dist/models/recording-available-callback.d.ts +0 -152
- package/dist/models/recording-available-callback.js +0 -15
- package/dist/models/recording-complete-callback.d.ts +0 -152
- package/dist/models/recording-complete-callback.js +0 -15
- package/dist/models/recording-state-enum.d.ts +0 -21
- package/dist/models/recording-state-enum.js +0 -25
- package/dist/models/recording-transcription-metadata.d.ts +0 -42
- package/dist/models/recording-transcription-metadata.js +0 -15
- package/dist/models/recording-transcriptions.d.ts +0 -25
- package/dist/models/recording-transcriptions.js +0 -15
- package/dist/models/redirect-callback.d.ts +0 -115
- package/dist/models/redirect-callback.js +0 -15
- package/dist/models/redirect-method-enum.d.ts +0 -21
- package/dist/models/redirect-method-enum.js +0 -25
- package/dist/models/stir-shaken.d.ts +0 -36
- package/dist/models/stir-shaken.js +0 -15
- package/dist/models/tag.d.ts +0 -30
- package/dist/models/tag.js +0 -15
- package/dist/models/tn-lookup-request-error.d.ts +0 -24
- package/dist/models/tn-lookup-request-error.js +0 -15
- package/dist/models/transcribe-recording.d.ts +0 -61
- package/dist/models/transcribe-recording.js +0 -15
- package/dist/models/transcription-available-callback.d.ts +0 -147
- package/dist/models/transcription-available-callback.js +0 -15
- package/dist/models/transcription-list.d.ts +0 -25
- package/dist/models/transcription-list.js +0 -15
- package/dist/models/transcription-metadata.d.ts +0 -42
- package/dist/models/transcription-metadata.js +0 -15
- package/dist/models/transcription.d.ts +0 -30
- package/dist/models/transcription.js +0 -15
- package/dist/models/transfer-answer-callback.d.ts +0 -109
- package/dist/models/transfer-answer-callback.js +0 -15
- package/dist/models/transfer-complete-callback.d.ts +0 -127
- package/dist/models/transfer-complete-callback.js +0 -15
- package/dist/models/transfer-disconnect-callback.d.ts +0 -139
- package/dist/models/transfer-disconnect-callback.js +0 -15
- package/dist/models/update-call-recording.d.ts +0 -25
- package/dist/models/update-call-recording.js +0 -15
- package/dist/models/update-call.d.ts +0 -80
- package/dist/models/update-call.js +0 -15
- package/dist/models/update-conference-member.d.ts +0 -36
- package/dist/models/update-conference-member.js +0 -15
- package/dist/models/update-conference.d.ts +0 -74
- package/dist/models/update-conference.js +0 -15
- package/dist/models/verify-code-request.d.ts +0 -42
- package/dist/models/verify-code-request.js +0 -15
- package/dist/models/verify-code-response.d.ts +0 -24
- package/dist/models/verify-code-response.js +0 -15
- package/dist/models/voice-api-error.d.ts +0 -36
- package/dist/models/voice-api-error.js +0 -15
- package/dist/models/voice-code-response.d.ts +0 -24
- package/dist/models/voice-code-response.js +0 -15
|
@@ -46,13 +46,15 @@ jobs:
|
|
|
46
46
|
- name: Setup Node
|
|
47
47
|
uses: actions/setup-node@v4
|
|
48
48
|
with:
|
|
49
|
-
node-version:
|
|
49
|
+
node-version: 22
|
|
50
50
|
registry-url: "https://registry.npmjs.org"
|
|
51
51
|
|
|
52
52
|
- name: Install Packages and Test
|
|
53
53
|
run: |
|
|
54
54
|
yarn
|
|
55
|
-
|
|
55
|
+
npm install -g @stoplight/prism-cli
|
|
56
|
+
prism mock ./bandwidth.yml & yarn test-unit
|
|
57
|
+
shell: bash
|
|
56
58
|
|
|
57
59
|
- name: Publish npm Package
|
|
58
60
|
run: |
|
|
@@ -32,7 +32,7 @@ jobs:
|
|
|
32
32
|
strategy:
|
|
33
33
|
matrix:
|
|
34
34
|
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
|
|
35
|
-
node-version: [
|
|
35
|
+
node-version: [18, 20, 22]
|
|
36
36
|
fail-fast: false
|
|
37
37
|
steps:
|
|
38
38
|
- name: Checkout
|
|
@@ -46,6 +46,8 @@ jobs:
|
|
|
46
46
|
- name: Install Packages and Test
|
|
47
47
|
run: |
|
|
48
48
|
yarn
|
|
49
|
-
|
|
49
|
+
npm install -g @stoplight/prism-cli
|
|
50
|
+
prism mock ./bandwidth.yml & yarn test-unit
|
|
50
51
|
env:
|
|
51
52
|
OPERATING_SYSTEM: ${{ matrix.os }}
|
|
53
|
+
shell: bash
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Smoke Tests
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
schedule:
|
|
5
5
|
- cron: "0 4 * * *"
|
|
6
|
+
pull_request:
|
|
7
|
+
paths:
|
|
8
|
+
- "tests/smoke/**"
|
|
6
9
|
|
|
7
10
|
concurrency:
|
|
8
11
|
group: ${{ github.workflow }}-${{ github.head_ref }}
|
|
@@ -26,7 +29,7 @@ env:
|
|
|
26
29
|
|
|
27
30
|
jobs:
|
|
28
31
|
test_main:
|
|
29
|
-
name:
|
|
32
|
+
name: Smoke Test
|
|
30
33
|
runs-on: ubuntu-latest
|
|
31
34
|
steps:
|
|
32
35
|
- name: Checkout
|
|
@@ -37,7 +40,7 @@ jobs:
|
|
|
37
40
|
- name: Setup Node
|
|
38
41
|
uses: actions/setup-node@v4
|
|
39
42
|
with:
|
|
40
|
-
node-version:
|
|
43
|
+
node-version: 22
|
|
41
44
|
|
|
42
45
|
- name: Install Packages and Test
|
|
43
46
|
run: |
|
package/.openapi-generator/FILES
CHANGED
|
@@ -23,8 +23,10 @@ models/call-direction-enum.ts
|
|
|
23
23
|
models/call-recording-metadata.ts
|
|
24
24
|
models/call-state-enum.ts
|
|
25
25
|
models/call-state.ts
|
|
26
|
+
models/call-transcription-detected-language-enum.ts
|
|
26
27
|
models/call-transcription-metadata.ts
|
|
27
28
|
models/call-transcription-response.ts
|
|
29
|
+
models/call-transcription-track-enum.ts
|
|
28
30
|
models/call-transcription.ts
|
|
29
31
|
models/callback-method-enum.ts
|
|
30
32
|
models/code-request.ts
|
package/README.md
CHANGED
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
## bandwidth-sdk
|
|
2
2
|
|
|
3
|
-
[](https://github.com/Bandwidth/node-sdk/actions/workflows/deploy.yml)
|
|
4
4
|
|
|
5
5
|
### Test Matrix
|
|
6
6
|
| **OS** | **Node** |
|
|
7
7
|
|:---:|:---:|
|
|
8
|
-
| Windows 2019 |
|
|
9
|
-
| Windows 2022 |
|
|
10
|
-
| Ubuntu 20.04 |
|
|
11
|
-
| Ubuntu 22.04 |
|
|
8
|
+
| Windows 2019 | 18, 20, 22 |
|
|
9
|
+
| Windows 2022 | 18, 20, 22 |
|
|
10
|
+
| Ubuntu 20.04 | 18, 20, 22 |
|
|
11
|
+
| Ubuntu 22.04 | 18, 20, 22 |
|
|
12
12
|
|
|
13
13
|
#### Available on NPM
|
|
14
14
|
```
|
|
15
15
|
npm install bandwidth-sdk
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
|
|
19
|
+
#### To Run Unit Tests Locally
|
|
20
|
+
|
|
21
|
+
1. Install Prism
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g @stoplight/prism-cli
|
|
24
|
+
```
|
|
25
|
+
2. Start Prism Mock Server with the OpenAPI Spec
|
|
26
|
+
```bash
|
|
27
|
+
prism mock bandwidth.yml
|
|
28
|
+
```
|
|
29
|
+
3. Run Tests
|
|
30
|
+
```bash
|
|
31
|
+
npm run test-unit
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
|
|
18
35
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
19
36
|
|
|
20
37
|
Environment
|
|
@@ -34,7 +34,7 @@ import type { VoiceApiError } from '../models';
|
|
|
34
34
|
export const TranscriptionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35
35
|
return {
|
|
36
36
|
/**
|
|
37
|
-
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `
|
|
37
|
+
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` 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.
|
|
38
38
|
* @summary Delete a specific transcription
|
|
39
39
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
40
40
|
* @param {string} callId Programmable Voice API Call ID.
|
|
@@ -178,7 +178,7 @@ export const TranscriptionsApiFp = function(configuration?: Configuration) {
|
|
|
178
178
|
const localVarAxiosParamCreator = TranscriptionsApiAxiosParamCreator(configuration)
|
|
179
179
|
return {
|
|
180
180
|
/**
|
|
181
|
-
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `
|
|
181
|
+
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` 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.
|
|
182
182
|
* @summary Delete a specific transcription
|
|
183
183
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
184
184
|
* @param {string} callId Programmable Voice API Call ID.
|
|
@@ -232,7 +232,7 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration,
|
|
|
232
232
|
const localVarFp = TranscriptionsApiFp(configuration)
|
|
233
233
|
return {
|
|
234
234
|
/**
|
|
235
|
-
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `
|
|
235
|
+
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` 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.
|
|
236
236
|
* @summary Delete a specific transcription
|
|
237
237
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
238
238
|
* @param {string} callId Programmable Voice API Call ID.
|
|
@@ -277,7 +277,7 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration,
|
|
|
277
277
|
*/
|
|
278
278
|
export class TranscriptionsApi extends BaseAPI {
|
|
279
279
|
/**
|
|
280
|
-
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `
|
|
280
|
+
* Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` 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.
|
|
281
281
|
* @summary Delete a specific transcription
|
|
282
282
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
283
283
|
* @param {string} callId Programmable Voice API Call ID.
|
package/bandwidth.yml
CHANGED
|
@@ -1173,7 +1173,7 @@ paths:
|
|
|
1173
1173
|
[startTranscription](/docs/voice/bxml/startTranscription).
|
|
1174
1174
|
|
|
1175
1175
|
|
|
1176
|
-
Note: After the deletion is requested and a `
|
|
1176
|
+
Note: After the deletion is requested and a `200` is returned, the
|
|
1177
1177
|
transcription will not be accessible anymore. However, it is not deleted
|
|
1178
1178
|
immediately. This deletion process, while transparent and irreversible,
|
|
1179
1179
|
can take an additional 24 to 48 hours.
|
|
@@ -1183,7 +1183,7 @@ paths:
|
|
|
1183
1183
|
- $ref: '#/components/parameters/callId'
|
|
1184
1184
|
- $ref: '#/components/parameters/transcriptionId'
|
|
1185
1185
|
responses:
|
|
1186
|
-
'
|
|
1186
|
+
'200':
|
|
1187
1187
|
$ref: '#/components/responses/deleteCallTranscriptionResponse'
|
|
1188
1188
|
'400':
|
|
1189
1189
|
$ref: '#/components/responses/voiceBadRequestError'
|
|
@@ -2131,6 +2131,21 @@ components:
|
|
|
2131
2131
|
|
|
2132
2132
|
and will include its result.
|
|
2133
2133
|
example: async
|
|
2134
|
+
callTranscriptionDetectedLanguageEnum:
|
|
2135
|
+
type: string
|
|
2136
|
+
enum:
|
|
2137
|
+
- en-US
|
|
2138
|
+
- es-US
|
|
2139
|
+
- fr-FR
|
|
2140
|
+
description: The detected language for this transcription.
|
|
2141
|
+
example: en-US
|
|
2142
|
+
callTranscriptionTrackEnum:
|
|
2143
|
+
type: string
|
|
2144
|
+
enum:
|
|
2145
|
+
- inbound
|
|
2146
|
+
- outbound
|
|
2147
|
+
description: Which `track` this transcription is derived from.
|
|
2148
|
+
example: inbound
|
|
2134
2149
|
createCall:
|
|
2135
2150
|
type: object
|
|
2136
2151
|
required:
|
|
@@ -2496,7 +2511,7 @@ components:
|
|
|
2496
2511
|
description: >-
|
|
2497
2512
|
The phone number that made the call, in E.164 format (e.g.
|
|
2498
2513
|
+15555555555).
|
|
2499
|
-
example: '19195554321'
|
|
2514
|
+
example: '+19195554321'
|
|
2500
2515
|
direction:
|
|
2501
2516
|
$ref: '#/components/schemas/callDirectionEnum'
|
|
2502
2517
|
state:
|
|
@@ -2787,6 +2802,8 @@ components:
|
|
|
2787
2802
|
$ref: '#/components/schemas/mediaUrl'
|
|
2788
2803
|
transcription:
|
|
2789
2804
|
$ref: '#/components/schemas/recordingTranscriptionMetadata'
|
|
2805
|
+
recordingName:
|
|
2806
|
+
$ref: '#/components/schemas/recordingName'
|
|
2790
2807
|
conference:
|
|
2791
2808
|
type: object
|
|
2792
2809
|
properties:
|
|
@@ -3026,6 +3043,8 @@ components:
|
|
|
3026
3043
|
$ref: '#/components/schemas/status'
|
|
3027
3044
|
mediaUrl:
|
|
3028
3045
|
$ref: '#/components/schemas/mediaUrl'
|
|
3046
|
+
recordingName:
|
|
3047
|
+
$ref: '#/components/schemas/recordingName'
|
|
3029
3048
|
machineDetectionConfiguration:
|
|
3030
3049
|
type: object
|
|
3031
3050
|
description: >-
|
|
@@ -3239,6 +3258,7 @@ components:
|
|
|
3239
3258
|
$ref: '#/components/schemas/callTranscriptionMetadata'
|
|
3240
3259
|
example:
|
|
3241
3260
|
- transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
|
|
3261
|
+
transcriptionName: live_transcription
|
|
3242
3262
|
transcriptionUrl: >-
|
|
3243
3263
|
https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
|
|
3244
3264
|
callTranscriptionMetadata:
|
|
@@ -3248,6 +3268,12 @@ components:
|
|
|
3248
3268
|
type: string
|
|
3249
3269
|
description: The programmable voice API transcription ID.
|
|
3250
3270
|
example: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
|
|
3271
|
+
transcriptionName:
|
|
3272
|
+
type: string
|
|
3273
|
+
description: >-
|
|
3274
|
+
The programmable voice API transcription name. This name could be
|
|
3275
|
+
provided by the user when creating the transcription.
|
|
3276
|
+
example: live_transcription
|
|
3251
3277
|
transcriptionUrl:
|
|
3252
3278
|
type: string
|
|
3253
3279
|
description: >-
|
|
@@ -3265,7 +3291,7 @@ components:
|
|
|
3265
3291
|
accountId:
|
|
3266
3292
|
type: string
|
|
3267
3293
|
description: The user account associated with the call.
|
|
3268
|
-
example: '
|
|
3294
|
+
example: '9900000'
|
|
3269
3295
|
callId:
|
|
3270
3296
|
type: string
|
|
3271
3297
|
description: The call id associated with the event.
|
|
@@ -3281,27 +3307,16 @@ components:
|
|
|
3281
3307
|
example:
|
|
3282
3308
|
- detectedLanguage: en-US
|
|
3283
3309
|
track: inbound
|
|
3284
|
-
|
|
3310
|
+
transcript: Hello World! This is an example.
|
|
3285
3311
|
confidence: 0.9
|
|
3286
3312
|
callTranscription:
|
|
3287
3313
|
type: object
|
|
3288
3314
|
properties:
|
|
3289
3315
|
detectedLanguage:
|
|
3290
|
-
|
|
3291
|
-
enum:
|
|
3292
|
-
- en-US
|
|
3293
|
-
- es-US
|
|
3294
|
-
- fr-FR
|
|
3295
|
-
description: The detected language for this transcription.
|
|
3296
|
-
example: en-US
|
|
3316
|
+
$ref: '#/components/schemas/callTranscriptionDetectedLanguageEnum'
|
|
3297
3317
|
track:
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
- inbound
|
|
3301
|
-
- outbound
|
|
3302
|
-
description: Which `track` this transcription is derived from.
|
|
3303
|
-
example: inbound
|
|
3304
|
-
text:
|
|
3318
|
+
$ref: '#/components/schemas/callTranscriptionTrackEnum'
|
|
3319
|
+
transcript:
|
|
3305
3320
|
type: string
|
|
3306
3321
|
description: The transcription itself.
|
|
3307
3322
|
example: Hello World! This is an example.
|
|
@@ -3327,6 +3342,7 @@ components:
|
|
|
3327
3342
|
$ref: '#/components/schemas/status'
|
|
3328
3343
|
completedTime:
|
|
3329
3344
|
type: string
|
|
3345
|
+
format: date-time
|
|
3330
3346
|
description: The time that the transcription was completed
|
|
3331
3347
|
example: '2022-06-13T18:46:29.715Z'
|
|
3332
3348
|
url:
|
|
@@ -4139,7 +4155,7 @@ components:
|
|
|
4139
4155
|
accountId:
|
|
4140
4156
|
type: string
|
|
4141
4157
|
description: The user account associated with the call.
|
|
4142
|
-
example: '
|
|
4158
|
+
example: '9900000'
|
|
4143
4159
|
applicationId:
|
|
4144
4160
|
type: string
|
|
4145
4161
|
description: The id of the application associated with the call.
|
|
@@ -4240,7 +4256,7 @@ components:
|
|
|
4240
4256
|
description: >-
|
|
4241
4257
|
The phone number used as the to field of the B-leg call, in E.164 format
|
|
4242
4258
|
(e.g. +15555555555).
|
|
4243
|
-
example: +15555555555
|
|
4259
|
+
example: '+15555555555'
|
|
4244
4260
|
mediaUrl:
|
|
4245
4261
|
nullable: true
|
|
4246
4262
|
type: string
|
|
@@ -4254,6 +4270,10 @@ components:
|
|
|
4254
4270
|
type: string
|
|
4255
4271
|
description: The call id associated with the event.
|
|
4256
4272
|
example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
|
|
4273
|
+
recordingName:
|
|
4274
|
+
type: string
|
|
4275
|
+
description: A name to identify this recording.
|
|
4276
|
+
example: my-recording-name
|
|
4257
4277
|
callUrl:
|
|
4258
4278
|
type: string
|
|
4259
4279
|
description: The URL of the call associated with the event.
|
|
@@ -4451,7 +4471,7 @@ components:
|
|
|
4451
4471
|
messageId:
|
|
4452
4472
|
type: string
|
|
4453
4473
|
description: Messaging API Message ID.
|
|
4454
|
-
example:
|
|
4474
|
+
example: 1589228074636lm4k2je7j7jklbn2
|
|
4455
4475
|
verifyCodeRequest:
|
|
4456
4476
|
type: object
|
|
4457
4477
|
properties:
|
|
@@ -5787,6 +5807,7 @@ components:
|
|
|
5787
5807
|
answerMethod: POST
|
|
5788
5808
|
answerUrl: https://myServer.example/bandwidth/webhooks/answer
|
|
5789
5809
|
answerFallbackMethod: POST
|
|
5810
|
+
answerFallbackUrl: https://myServer.example/bandwidth/webhooks/answerFallback
|
|
5790
5811
|
disconnectMethod: POST
|
|
5791
5812
|
disconnectUrl: https://myServer.example/bandwidth/webhooks/disconnect
|
|
5792
5813
|
username: mySecretUsername
|