bandwidth-sdk 8.1.4 → 8.2.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/.bandwidth/component.yaml +1 -0
- package/.github/workflows/deploy.yml +16 -12
- package/.github/workflows/test-pr.yml +3 -3
- package/.github/workflows/test-smoke.yml +13 -13
- package/.openapi-generator/FILES +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -0
- package/api/calls-api.ts +14 -17
- package/api/conferences-api.ts +31 -34
- package/api/endpoints-api.ts +14 -16
- package/api/media-api.ts +28 -29
- package/api/messages-api.ts +13 -14
- package/api/mfaapi.ts +7 -10
- package/api/multi-channel-api.ts +7 -8
- package/api/phone-number-lookup-api.ts +8 -10
- package/api/recordings-api.ts +37 -39
- package/api/statistics-api.ts +3 -3
- package/api/toll-free-verification-api.ts +23 -27
- package/api/transcriptions-api.ts +12 -12
- package/bandwidth.yml +190 -51
- package/common.ts +18 -4
- package/configuration.ts +8 -2
- package/coverage/clover.xml +1033 -958
- package/coverage/coverage-final.json +22 -20
- package/coverage/lcov-report/index.html +29 -29
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +25 -34
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +46 -55
- package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +25 -31
- package/coverage/lcov-report/node-sdk/api/index.html +69 -69
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +38 -41
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +21 -24
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +16 -25
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +14 -17
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +17 -23
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +53 -59
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +9 -9
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +38 -50
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +20 -20
- package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/common.ts.html +66 -24
- package/coverage/lcov-report/node-sdk/configuration.ts.html +31 -13
- package/coverage/lcov-report/node-sdk/index.html +19 -19
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +14 -14
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +13 -13
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Connect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Endpoint.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Refer.ts.html +190 -0
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +5 -5
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +23 -8
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +7 -4
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +3 -3
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/device-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/index.html +20 -5
- package/coverage/lcov-report/node-sdk/models/index.ts.html +10 -4
- package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/refer-call-status-enum.ts.html +172 -0
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +2 -2
- package/coverage/lcov.info +2570 -2469
- package/custom_templates/common.mustache +18 -4
- package/custom_templates/configuration.mustache +7 -1
- package/custom_templates/package.mustache +1 -1
- package/dist/api/calls-api.d.ts +5 -5
- package/dist/api/calls-api.js +13 -8
- package/dist/api/conferences-api.d.ts +9 -9
- package/dist/api/conferences-api.js +30 -21
- package/dist/api/endpoints-api.d.ts +5 -5
- package/dist/api/endpoints-api.js +13 -8
- package/dist/api/media-api.d.ts +20 -20
- package/dist/api/media-api.js +27 -23
- package/dist/api/messages-api.d.ts +10 -10
- package/dist/api/messages-api.js +12 -10
- package/dist/api/mfaapi.d.ts +3 -3
- package/dist/api/mfaapi.js +6 -3
- package/dist/api/multi-channel-api.d.ts +5 -5
- package/dist/api/multi-channel-api.js +6 -5
- package/dist/api/phone-number-lookup-api.d.ts +3 -3
- package/dist/api/phone-number-lookup-api.js +7 -4
- package/dist/api/recordings-api.d.ts +10 -10
- package/dist/api/recordings-api.js +36 -26
- package/dist/api/statistics-api.d.ts +1 -1
- package/dist/api/statistics-api.js +2 -1
- package/dist/api/toll-free-verification-api.d.ts +9 -9
- package/dist/api/toll-free-verification-api.js +22 -13
- package/dist/api/transcriptions-api.d.ts +3 -3
- package/dist/api/transcriptions-api.js +11 -8
- package/dist/common.d.ts +6 -0
- package/dist/common.js +18 -3
- package/dist/configuration.d.ts +5 -0
- package/dist/configuration.js +5 -4
- package/dist/models/answer-callback.d.ts +5 -1
- package/dist/models/bridge-complete-callback.d.ts +1 -1
- package/dist/models/bridge-target-complete-callback.d.ts +1 -1
- package/dist/models/business-entity-type-enum.js +1 -1
- package/dist/models/business-registration-type-enum.js +1 -1
- package/dist/models/bxml/verbs/Refer.d.ts +27 -0
- package/dist/models/bxml/verbs/Refer.js +45 -0
- package/dist/models/bxml/verbs/index.d.ts +1 -0
- package/dist/models/bxml/verbs/index.js +1 -0
- package/dist/models/call-direction-enum.js +1 -1
- package/dist/models/call-state-enum.js +1 -1
- package/dist/models/call-transcription-detected-language-enum.js +1 -1
- package/dist/models/call-transcription-track-enum.js +1 -1
- package/dist/models/callback-method-enum.js +1 -1
- package/dist/models/card-width-enum.js +1 -1
- package/dist/models/completed-lookup-status-enum.js +1 -1
- package/dist/models/conference-completed-callback.d.ts +1 -1
- package/dist/models/conference-created-callback.d.ts +1 -1
- 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-redirect-callback.d.ts +1 -1
- package/dist/models/conference-state-enum.js +1 -1
- package/dist/models/deactivation-event-enum.js +1 -1
- package/dist/models/device-status-enum.js +1 -1
- package/dist/models/disconnect-callback.d.ts +9 -1
- package/dist/models/dtmf-callback.d.ts +1 -1
- package/dist/models/endpoint-direction-enum.js +1 -1
- package/dist/models/endpoint-event-type-enum.js +1 -1
- package/dist/models/endpoint-status-enum.js +1 -1
- package/dist/models/endpoint-type-enum.js +1 -1
- package/dist/models/file-format-enum.js +1 -1
- package/dist/models/gather-callback.d.ts +1 -1
- package/dist/models/in-progress-lookup-status-enum.js +1 -1
- package/dist/models/inbound-callback-type-enum.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/initiate-callback.d.ts +11 -1
- package/dist/models/latest-message-delivery-status-enum.js +1 -1
- package/dist/models/line-type-enum.js +1 -1
- package/dist/models/list-message-direction-enum.js +1 -1
- package/dist/models/machine-detection-complete-callback.d.ts +1 -1
- package/dist/models/machine-detection-mode-enum.js +1 -1
- package/dist/models/message-direction-enum.js +1 -1
- package/dist/models/message-status-enum.js +1 -1
- package/dist/models/message-type-enum.js +1 -1
- package/dist/models/multi-channel-message-channel-enum.js +1 -1
- package/dist/models/priority-enum.js +1 -1
- package/dist/models/product-type-enum.js +1 -1
- package/dist/models/rbm-action-type-enum.js +1 -1
- package/dist/models/rbm-media-height-enum.js +1 -1
- package/dist/models/rbm-open-url-enum.js +1 -1
- package/dist/models/rbm-web-view-enum.js +1 -1
- package/dist/models/recording-available-callback.d.ts +1 -1
- package/dist/models/recording-complete-callback.d.ts +1 -1
- package/dist/models/recording-state-enum.js +1 -1
- package/dist/models/redirect-callback.d.ts +1 -1
- package/dist/models/redirect-method-enum.js +1 -1
- package/dist/models/refer-call-status-enum.d.ts +19 -0
- package/dist/models/refer-call-status-enum.js +23 -0
- package/dist/models/refer-complete-callback.d.ts +72 -0
- package/dist/models/refer-complete-callback.js +15 -0
- package/dist/models/standalone-card-orientation-enum.js +1 -1
- package/dist/models/status-callback-type-enum.js +1 -1
- package/dist/models/tfv-callback-status-enum.js +1 -1
- package/dist/models/tfv-status-enum.js +1 -1
- package/dist/models/thumbnail-alignment-enum.js +1 -1
- package/dist/models/transcription-available-callback.d.ts +1 -1
- package/dist/models/transfer-answer-callback.d.ts +1 -1
- package/dist/models/transfer-complete-callback.d.ts +1 -1
- package/dist/models/transfer-disconnect-callback.d.ts +1 -1
- package/dist/models/webhook-subscription-type-enum.js +1 -1
- package/docs/AnswerCallback.md +3 -1
- package/docs/BridgeCompleteCallback.md +1 -1
- package/docs/BridgeTargetCompleteCallback.md +1 -1
- package/docs/ConferenceCompletedCallback.md +1 -1
- package/docs/ConferenceCreatedCallback.md +1 -1
- package/docs/ConferenceMemberExitCallback.md +1 -1
- package/docs/ConferenceMemberJoinCallback.md +1 -1
- package/docs/ConferenceRecordingAvailableCallback.md +1 -1
- package/docs/ConferenceRedirectCallback.md +1 -1
- package/docs/DisconnectCallback.md +5 -1
- package/docs/DtmfCallback.md +1 -1
- package/docs/GatherCallback.md +1 -1
- package/docs/InitiateCallback.md +5 -1
- package/docs/MachineDetectionCompleteCallback.md +1 -1
- package/docs/MediaApi.md +8 -8
- package/docs/MessagesApi.md +4 -4
- package/docs/MultiChannelApi.md +2 -2
- package/docs/RecordingAvailableCallback.md +1 -1
- package/docs/RecordingCompleteCallback.md +1 -1
- package/docs/RedirectCallback.md +1 -1
- package/docs/ReferCallStatusEnum.md +11 -0
- package/docs/ReferCompleteCallback.md +49 -0
- package/docs/TranscriptionAvailableCallback.md +1 -1
- package/docs/TransferAnswerCallback.md +1 -1
- package/docs/TransferCompleteCallback.md +1 -1
- package/docs/TransferDisconnectCallback.md +1 -1
- package/models/answer-callback.ts +5 -1
- package/models/bridge-complete-callback.ts +1 -1
- package/models/bridge-target-complete-callback.ts +1 -1
- package/models/business-entity-type-enum.ts +1 -1
- package/models/business-registration-type-enum.ts +1 -1
- package/models/bxml/verbs/Refer.ts +35 -0
- package/models/bxml/verbs/index.ts +1 -0
- package/models/call-direction-enum.ts +1 -1
- package/models/call-state-enum.ts +1 -1
- package/models/call-transcription-detected-language-enum.ts +1 -1
- package/models/call-transcription-track-enum.ts +1 -1
- package/models/callback-method-enum.ts +1 -1
- package/models/card-width-enum.ts +1 -1
- package/models/completed-lookup-status-enum.ts +1 -1
- package/models/conference-completed-callback.ts +1 -1
- package/models/conference-created-callback.ts +1 -1
- 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-redirect-callback.ts +1 -1
- package/models/conference-state-enum.ts +1 -1
- package/models/deactivation-event-enum.ts +1 -1
- package/models/device-status-enum.ts +1 -1
- package/models/disconnect-callback.ts +9 -1
- package/models/dtmf-callback.ts +1 -1
- package/models/endpoint-direction-enum.ts +1 -1
- package/models/endpoint-event-type-enum.ts +1 -1
- package/models/endpoint-status-enum.ts +1 -1
- package/models/endpoint-type-enum.ts +1 -1
- package/models/file-format-enum.ts +1 -1
- package/models/gather-callback.ts +1 -1
- package/models/in-progress-lookup-status-enum.ts +1 -1
- package/models/inbound-callback-type-enum.ts +1 -1
- package/models/index.ts +2 -0
- package/models/initiate-callback.ts +9 -1
- package/models/latest-message-delivery-status-enum.ts +1 -1
- package/models/line-type-enum.ts +1 -1
- package/models/list-message-direction-enum.ts +1 -1
- package/models/machine-detection-complete-callback.ts +1 -1
- package/models/machine-detection-mode-enum.ts +1 -1
- package/models/message-direction-enum.ts +1 -1
- package/models/message-status-enum.ts +1 -1
- package/models/message-type-enum.ts +1 -1
- package/models/multi-channel-message-channel-enum.ts +1 -1
- package/models/priority-enum.ts +1 -1
- package/models/product-type-enum.ts +1 -1
- package/models/rbm-action-type-enum.ts +1 -1
- package/models/rbm-media-height-enum.ts +1 -1
- package/models/rbm-open-url-enum.ts +1 -1
- package/models/rbm-web-view-enum.ts +1 -1
- package/models/recording-available-callback.ts +1 -1
- package/models/recording-complete-callback.ts +1 -1
- package/models/recording-state-enum.ts +1 -1
- package/models/redirect-callback.ts +1 -1
- package/models/redirect-method-enum.ts +1 -1
- package/models/refer-call-status-enum.ts +29 -0
- package/models/refer-complete-callback.ts +84 -0
- package/models/standalone-card-orientation-enum.ts +1 -1
- package/models/status-callback-type-enum.ts +1 -1
- package/models/tfv-callback-status-enum.ts +1 -1
- package/models/tfv-status-enum.ts +1 -1
- package/models/thumbnail-alignment-enum.ts +1 -1
- package/models/transcription-available-callback.ts +1 -1
- package/models/transfer-answer-callback.ts +1 -1
- package/models/transfer-complete-callback.ts +1 -1
- package/models/transfer-disconnect-callback.ts +1 -1
- package/models/webhook-subscription-type-enum.ts +1 -1
- package/openapitools.json +1 -1
- package/package.json +2 -2
- package/tests/unit/api/calls-api.test.ts +1 -2
- package/tests/unit/api/conferences-api.test.ts +1 -2
- package/tests/unit/api/endpoints-api.test.ts +1 -2
- package/tests/unit/api/media-api.test.ts +1 -2
- package/tests/unit/api/messages-api.test.ts +1 -2
- package/tests/unit/api/mfaapi.test.ts +1 -2
- package/tests/unit/api/multi-channel-api.test.ts +1 -2
- package/tests/unit/api/phone-number-lookup-api.test.ts +1 -2
- package/tests/unit/api/recordings-api.test.ts +1 -2
- package/tests/unit/api/statistics-api.test.ts +1 -2
- package/tests/unit/api/toll-free-verification-api.test.ts +1 -2
- package/tests/unit/api/transcriptions-api.test.ts +1 -2
- package/tests/unit/models/answer-callback.test.ts +2 -0
- package/tests/unit/models/bxml/verbs/Refer.test.ts +40 -0
- package/tests/unit/models/disconnect-callback.test.ts +4 -0
- package/tests/unit/models/initiate-callback.test.ts +4 -0
- package/tests/unit/models/refer-call-status-enum.test.ts +12 -0
- package/tests/unit/models/refer-complete-callback.test.ts +41 -0
package/dist/api/messages-api.js
CHANGED
|
@@ -100,7 +100,7 @@ var MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
/**
|
|
101
101
|
* Endpoint for sending text messages and picture messages using V2 messaging.
|
|
102
102
|
* @summary Create Message
|
|
103
|
-
* @param {string} accountId
|
|
103
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
104
104
|
* @param {MessageRequest} messageRequest
|
|
105
105
|
* @param {*} [options] Override http request option.
|
|
106
106
|
* @throws {RequiredError}
|
|
@@ -121,7 +121,7 @@ var MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
// verify required parameter 'messageRequest' is not null or undefined
|
|
122
122
|
(0, common_1.assertParamExists)('createMessage', 'messageRequest', messageRequest);
|
|
123
123
|
localVarPath = "/users/{accountId}/messages"
|
|
124
|
-
.replace(
|
|
124
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
125
125
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
126
126
|
if (configuration) {
|
|
127
127
|
baseOptions = configuration.baseOptions;
|
|
@@ -140,6 +140,7 @@ var MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
140
140
|
// oauth required
|
|
141
141
|
_a.sent();
|
|
142
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
143
144
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
145
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
146
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -155,7 +156,7 @@ var MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
155
156
|
/**
|
|
156
157
|
* Returns a list of messages based on query parameters. **Rate Limit:** This endpoint is rate limited to 3500 requests per 5 minutes per Source IP address. Exceeding the limit returns HTTP 429 with a `Retry-After` header.
|
|
157
158
|
* @summary List Messages
|
|
158
|
-
* @param {string} accountId
|
|
159
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
159
160
|
* @param {string} [messageId] The ID of the message to search for. Special characters need to be encoded using URL encoding. Message IDs could come in different formats, e.g., 9e0df4ca-b18d-40d7-a59f-82fcdf5ae8e6 and 1589228074636lm4k2je7j7jklbn2 are valid message ID formats. Note that you must include at least one query parameter.
|
|
160
161
|
* @param {string} [sourceTn] The phone number that sent the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\').
|
|
161
162
|
* @param {string} [destinationTn] The phone number that received the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\').
|
|
@@ -200,7 +201,7 @@ var MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
200
201
|
// verify required parameter 'accountId' is not null or undefined
|
|
201
202
|
(0, common_1.assertParamExists)('listMessages', 'accountId', accountId);
|
|
202
203
|
localVarPath = "/users/{accountId}/messages"
|
|
203
|
-
.replace(
|
|
204
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
204
205
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
205
206
|
if (configuration) {
|
|
206
207
|
baseOptions = configuration.baseOptions;
|
|
@@ -299,6 +300,7 @@ var MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
299
300
|
if (limitTotalCount !== undefined) {
|
|
300
301
|
localVarQueryParameter['limitTotalCount'] = limitTotalCount;
|
|
301
302
|
}
|
|
303
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
302
304
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
303
305
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
304
306
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -322,7 +324,7 @@ var MessagesApiFp = function (configuration) {
|
|
|
322
324
|
/**
|
|
323
325
|
* Endpoint for sending text messages and picture messages using V2 messaging.
|
|
324
326
|
* @summary Create Message
|
|
325
|
-
* @param {string} accountId
|
|
327
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
326
328
|
* @param {MessageRequest} messageRequest
|
|
327
329
|
* @param {*} [options] Override http request option.
|
|
328
330
|
* @throws {RequiredError}
|
|
@@ -346,7 +348,7 @@ var MessagesApiFp = function (configuration) {
|
|
|
346
348
|
/**
|
|
347
349
|
* Returns a list of messages based on query parameters. **Rate Limit:** This endpoint is rate limited to 3500 requests per 5 minutes per Source IP address. Exceeding the limit returns HTTP 429 with a `Retry-After` header.
|
|
348
350
|
* @summary List Messages
|
|
349
|
-
* @param {string} accountId
|
|
351
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
350
352
|
* @param {string} [messageId] The ID of the message to search for. Special characters need to be encoded using URL encoding. Message IDs could come in different formats, e.g., 9e0df4ca-b18d-40d7-a59f-82fcdf5ae8e6 and 1589228074636lm4k2je7j7jklbn2 are valid message ID formats. Note that you must include at least one query parameter.
|
|
351
353
|
* @param {string} [sourceTn] The phone number that sent the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\').
|
|
352
354
|
* @param {string} [destinationTn] The phone number that received the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\').
|
|
@@ -405,7 +407,7 @@ var MessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
405
407
|
/**
|
|
406
408
|
* Endpoint for sending text messages and picture messages using V2 messaging.
|
|
407
409
|
* @summary Create Message
|
|
408
|
-
* @param {string} accountId
|
|
410
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
409
411
|
* @param {MessageRequest} messageRequest
|
|
410
412
|
* @param {*} [options] Override http request option.
|
|
411
413
|
* @throws {RequiredError}
|
|
@@ -416,7 +418,7 @@ var MessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
416
418
|
/**
|
|
417
419
|
* Returns a list of messages based on query parameters. **Rate Limit:** This endpoint is rate limited to 3500 requests per 5 minutes per Source IP address. Exceeding the limit returns HTTP 429 with a `Retry-After` header.
|
|
418
420
|
* @summary List Messages
|
|
419
|
-
* @param {string} accountId
|
|
421
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
420
422
|
* @param {string} [messageId] The ID of the message to search for. Special characters need to be encoded using URL encoding. Message IDs could come in different formats, e.g., 9e0df4ca-b18d-40d7-a59f-82fcdf5ae8e6 and 1589228074636lm4k2je7j7jklbn2 are valid message ID formats. Note that you must include at least one query parameter.
|
|
421
423
|
* @param {string} [sourceTn] The phone number that sent the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\').
|
|
422
424
|
* @param {string} [destinationTn] The phone number that received the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\').
|
|
@@ -464,7 +466,7 @@ var MessagesApi = /** @class */ (function (_super) {
|
|
|
464
466
|
/**
|
|
465
467
|
* Endpoint for sending text messages and picture messages using V2 messaging.
|
|
466
468
|
* @summary Create Message
|
|
467
|
-
* @param {string} accountId
|
|
469
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
468
470
|
* @param {MessageRequest} messageRequest
|
|
469
471
|
* @param {*} [options] Override http request option.
|
|
470
472
|
* @throws {RequiredError}
|
|
@@ -476,7 +478,7 @@ var MessagesApi = /** @class */ (function (_super) {
|
|
|
476
478
|
/**
|
|
477
479
|
* Returns a list of messages based on query parameters. **Rate Limit:** This endpoint is rate limited to 3500 requests per 5 minutes per Source IP address. Exceeding the limit returns HTTP 429 with a `Retry-After` header.
|
|
478
480
|
* @summary List Messages
|
|
479
|
-
* @param {string} accountId
|
|
481
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
480
482
|
* @param {string} [messageId] The ID of the message to search for. Special characters need to be encoded using URL encoding. Message IDs could come in different formats, e.g., 9e0df4ca-b18d-40d7-a59f-82fcdf5ae8e6 and 1589228074636lm4k2je7j7jklbn2 are valid message ID formats. Note that you must include at least one query parameter.
|
|
481
483
|
* @param {string} [sourceTn] The phone number that sent the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\').
|
|
482
484
|
* @param {string} [destinationTn] The phone number that received the message. Accepted values are: a single full phone number a comma separated list of full phone numbers (maximum of 10) or a single partial phone number (minimum of 5 characters e.g. \'%2B1919\').
|
package/dist/api/mfaapi.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ export declare class MFAApi extends BaseAPI {
|
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
*/
|
|
128
|
-
generateMessagingCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessagingCodeResponse, any, {}>>;
|
|
128
|
+
generateMessagingCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessagingCodeResponse, any, {}, any>>;
|
|
129
129
|
/**
|
|
130
130
|
* Send an MFA Code via a phone call.
|
|
131
131
|
* @summary Voice Authentication Code
|
|
@@ -134,7 +134,7 @@ export declare class MFAApi extends BaseAPI {
|
|
|
134
134
|
* @param {*} [options] Override http request option.
|
|
135
135
|
* @throws {RequiredError}
|
|
136
136
|
*/
|
|
137
|
-
generateVoiceCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VoiceCodeResponse, any, {}>>;
|
|
137
|
+
generateVoiceCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VoiceCodeResponse, any, {}, any>>;
|
|
138
138
|
/**
|
|
139
139
|
* Verify a previously sent MFA code.
|
|
140
140
|
* @summary Verify Authentication Code
|
|
@@ -143,5 +143,5 @@ export declare class MFAApi extends BaseAPI {
|
|
|
143
143
|
* @param {*} [options] Override http request option.
|
|
144
144
|
* @throws {RequiredError}
|
|
145
145
|
*/
|
|
146
|
-
verifyCode(accountId: string, verifyCodeRequest: VerifyCodeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyCodeResponse, any, {}>>;
|
|
146
|
+
verifyCode(accountId: string, verifyCodeRequest: VerifyCodeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyCodeResponse, any, {}, any>>;
|
|
147
147
|
}
|
package/dist/api/mfaapi.js
CHANGED
|
@@ -121,7 +121,7 @@ var MFAApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
// verify required parameter 'codeRequest' is not null or undefined
|
|
122
122
|
(0, common_1.assertParamExists)('generateMessagingCode', 'codeRequest', codeRequest);
|
|
123
123
|
localVarPath = "/accounts/{accountId}/code/messaging"
|
|
124
|
-
.replace(
|
|
124
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
125
125
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
126
126
|
if (configuration) {
|
|
127
127
|
baseOptions = configuration.baseOptions;
|
|
@@ -140,6 +140,7 @@ var MFAApiAxiosParamCreator = function (configuration) {
|
|
|
140
140
|
// oauth required
|
|
141
141
|
_a.sent();
|
|
142
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
143
144
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
145
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
146
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -176,7 +177,7 @@ var MFAApiAxiosParamCreator = function (configuration) {
|
|
|
176
177
|
// verify required parameter 'codeRequest' is not null or undefined
|
|
177
178
|
(0, common_1.assertParamExists)('generateVoiceCode', 'codeRequest', codeRequest);
|
|
178
179
|
localVarPath = "/accounts/{accountId}/code/voice"
|
|
179
|
-
.replace(
|
|
180
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
180
181
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
181
182
|
if (configuration) {
|
|
182
183
|
baseOptions = configuration.baseOptions;
|
|
@@ -195,6 +196,7 @@ var MFAApiAxiosParamCreator = function (configuration) {
|
|
|
195
196
|
// oauth required
|
|
196
197
|
_a.sent();
|
|
197
198
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
199
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
198
200
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
199
201
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
202
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -231,7 +233,7 @@ var MFAApiAxiosParamCreator = function (configuration) {
|
|
|
231
233
|
// verify required parameter 'verifyCodeRequest' is not null or undefined
|
|
232
234
|
(0, common_1.assertParamExists)('verifyCode', 'verifyCodeRequest', verifyCodeRequest);
|
|
233
235
|
localVarPath = "/accounts/{accountId}/code/verify"
|
|
234
|
-
.replace(
|
|
236
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
235
237
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
236
238
|
if (configuration) {
|
|
237
239
|
baseOptions = configuration.baseOptions;
|
|
@@ -250,6 +252,7 @@ var MFAApiAxiosParamCreator = function (configuration) {
|
|
|
250
252
|
// oauth required
|
|
251
253
|
_a.sent();
|
|
252
254
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
255
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
253
256
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
257
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
255
258
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -21,7 +21,7 @@ export declare const MultiChannelApiAxiosParamCreator: (configuration?: Configur
|
|
|
21
21
|
/**
|
|
22
22
|
* Endpoint for sending Multi-Channel messages.
|
|
23
23
|
* @summary Create Multi-Channel Message
|
|
24
|
-
* @param {string} accountId
|
|
24
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
25
25
|
* @param {MultiChannelMessageRequest} multiChannelMessageRequest
|
|
26
26
|
* @param {*} [options] Override http request option.
|
|
27
27
|
* @throws {RequiredError}
|
|
@@ -35,7 +35,7 @@ export declare const MultiChannelApiFp: (configuration?: Configuration) => {
|
|
|
35
35
|
/**
|
|
36
36
|
* Endpoint for sending Multi-Channel messages.
|
|
37
37
|
* @summary Create Multi-Channel Message
|
|
38
|
-
* @param {string} accountId
|
|
38
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
39
39
|
* @param {MultiChannelMessageRequest} multiChannelMessageRequest
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
@@ -49,7 +49,7 @@ export declare const MultiChannelApiFactory: (configuration?: Configuration, bas
|
|
|
49
49
|
/**
|
|
50
50
|
* Endpoint for sending Multi-Channel messages.
|
|
51
51
|
* @summary Create Multi-Channel Message
|
|
52
|
-
* @param {string} accountId
|
|
52
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
53
53
|
* @param {MultiChannelMessageRequest} multiChannelMessageRequest
|
|
54
54
|
* @param {*} [options] Override http request option.
|
|
55
55
|
* @throws {RequiredError}
|
|
@@ -63,10 +63,10 @@ export declare class MultiChannelApi extends BaseAPI {
|
|
|
63
63
|
/**
|
|
64
64
|
* Endpoint for sending Multi-Channel messages.
|
|
65
65
|
* @summary Create Multi-Channel Message
|
|
66
|
-
* @param {string} accountId
|
|
66
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
67
67
|
* @param {MultiChannelMessageRequest} multiChannelMessageRequest
|
|
68
68
|
* @param {*} [options] Override http request option.
|
|
69
69
|
* @throws {RequiredError}
|
|
70
70
|
*/
|
|
71
|
-
createMultiChannelMessage(accountId: string, multiChannelMessageRequest: MultiChannelMessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMultiChannelMessageResponse, any, {}>>;
|
|
71
|
+
createMultiChannelMessage(accountId: string, multiChannelMessageRequest: MultiChannelMessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMultiChannelMessageResponse, any, {}, any>>;
|
|
72
72
|
}
|
|
@@ -100,7 +100,7 @@ var MultiChannelApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
/**
|
|
101
101
|
* Endpoint for sending Multi-Channel messages.
|
|
102
102
|
* @summary Create Multi-Channel Message
|
|
103
|
-
* @param {string} accountId
|
|
103
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
104
104
|
* @param {MultiChannelMessageRequest} multiChannelMessageRequest
|
|
105
105
|
* @param {*} [options] Override http request option.
|
|
106
106
|
* @throws {RequiredError}
|
|
@@ -121,7 +121,7 @@ var MultiChannelApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
// verify required parameter 'multiChannelMessageRequest' is not null or undefined
|
|
122
122
|
(0, common_1.assertParamExists)('createMultiChannelMessage', 'multiChannelMessageRequest', multiChannelMessageRequest);
|
|
123
123
|
localVarPath = "/users/{accountId}/messages/multiChannel"
|
|
124
|
-
.replace(
|
|
124
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
125
125
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
126
126
|
if (configuration) {
|
|
127
127
|
baseOptions = configuration.baseOptions;
|
|
@@ -140,6 +140,7 @@ var MultiChannelApiAxiosParamCreator = function (configuration) {
|
|
|
140
140
|
// oauth required
|
|
141
141
|
_a.sent();
|
|
142
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
143
144
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
145
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
146
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -164,7 +165,7 @@ var MultiChannelApiFp = function (configuration) {
|
|
|
164
165
|
/**
|
|
165
166
|
* Endpoint for sending Multi-Channel messages.
|
|
166
167
|
* @summary Create Multi-Channel Message
|
|
167
|
-
* @param {string} accountId
|
|
168
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
168
169
|
* @param {MultiChannelMessageRequest} multiChannelMessageRequest
|
|
169
170
|
* @param {*} [options] Override http request option.
|
|
170
171
|
* @throws {RequiredError}
|
|
@@ -197,7 +198,7 @@ var MultiChannelApiFactory = function (configuration, basePath, axios) {
|
|
|
197
198
|
/**
|
|
198
199
|
* Endpoint for sending Multi-Channel messages.
|
|
199
200
|
* @summary Create Multi-Channel Message
|
|
200
|
-
* @param {string} accountId
|
|
201
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
201
202
|
* @param {MultiChannelMessageRequest} multiChannelMessageRequest
|
|
202
203
|
* @param {*} [options] Override http request option.
|
|
203
204
|
* @throws {RequiredError}
|
|
@@ -219,7 +220,7 @@ var MultiChannelApi = /** @class */ (function (_super) {
|
|
|
219
220
|
/**
|
|
220
221
|
* Endpoint for sending Multi-Channel messages.
|
|
221
222
|
* @summary Create Multi-Channel Message
|
|
222
|
-
* @param {string} accountId
|
|
223
|
+
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
223
224
|
* @param {MultiChannelMessageRequest} multiChannelMessageRequest
|
|
224
225
|
* @param {*} [options] Override http request option.
|
|
225
226
|
* @throws {RequiredError}
|
|
@@ -125,7 +125,7 @@ export declare class PhoneNumberLookupApi extends BaseAPI {
|
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
*/
|
|
128
|
-
createAsyncBulkLookup(accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAsyncBulkLookupResponse, any, {}>>;
|
|
128
|
+
createAsyncBulkLookup(accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAsyncBulkLookupResponse, any, {}, any>>;
|
|
129
129
|
/**
|
|
130
130
|
* Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
|
|
131
131
|
* @summary Create Synchronous Number Lookup
|
|
@@ -134,7 +134,7 @@ export declare class PhoneNumberLookupApi extends BaseAPI {
|
|
|
134
134
|
* @param {*} [options] Override http request option.
|
|
135
135
|
* @throws {RequiredError}
|
|
136
136
|
*/
|
|
137
|
-
createSyncLookup(accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSyncLookupResponse, any, {}>>;
|
|
137
|
+
createSyncLookup(accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSyncLookupResponse, any, {}, any>>;
|
|
138
138
|
/**
|
|
139
139
|
* Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results.
|
|
140
140
|
* @summary Get Asynchronous Bulk Number Lookup
|
|
@@ -143,5 +143,5 @@ export declare class PhoneNumberLookupApi extends BaseAPI {
|
|
|
143
143
|
* @param {*} [options] Override http request option.
|
|
144
144
|
* @throws {RequiredError}
|
|
145
145
|
*/
|
|
146
|
-
getAsyncBulkLookup(accountId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAsyncBulkLookupResponse, any, {}>>;
|
|
146
|
+
getAsyncBulkLookup(accountId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAsyncBulkLookupResponse, any, {}, any>>;
|
|
147
147
|
}
|
|
@@ -121,7 +121,7 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
// verify required parameter 'asyncLookupRequest' is not null or undefined
|
|
122
122
|
(0, common_1.assertParamExists)('createAsyncBulkLookup', 'asyncLookupRequest', asyncLookupRequest);
|
|
123
123
|
localVarPath = "/accounts/{accountId}/phoneNumberLookup/bulk"
|
|
124
|
-
.replace(
|
|
124
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
125
125
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
126
126
|
if (configuration) {
|
|
127
127
|
baseOptions = configuration.baseOptions;
|
|
@@ -140,6 +140,7 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
140
140
|
// oauth required
|
|
141
141
|
_a.sent();
|
|
142
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
143
144
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
145
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
146
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -176,7 +177,7 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
176
177
|
// verify required parameter 'syncLookupRequest' is not null or undefined
|
|
177
178
|
(0, common_1.assertParamExists)('createSyncLookup', 'syncLookupRequest', syncLookupRequest);
|
|
178
179
|
localVarPath = "/accounts/{accountId}/phoneNumberLookup"
|
|
179
|
-
.replace(
|
|
180
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
180
181
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
181
182
|
if (configuration) {
|
|
182
183
|
baseOptions = configuration.baseOptions;
|
|
@@ -195,6 +196,7 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
195
196
|
// oauth required
|
|
196
197
|
_a.sent();
|
|
197
198
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
199
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
198
200
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
199
201
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
202
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -231,8 +233,8 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
231
233
|
// verify required parameter 'requestId' is not null or undefined
|
|
232
234
|
(0, common_1.assertParamExists)('getAsyncBulkLookup', 'requestId', requestId);
|
|
233
235
|
localVarPath = "/accounts/{accountId}/phoneNumberLookup/bulk/{requestId}"
|
|
234
|
-
.replace(
|
|
235
|
-
.replace(
|
|
236
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
237
|
+
.replace('{requestId}', encodeURIComponent(String(requestId)));
|
|
236
238
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
237
239
|
if (configuration) {
|
|
238
240
|
baseOptions = configuration.baseOptions;
|
|
@@ -250,6 +252,7 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
250
252
|
// authentication OAuth2 required
|
|
251
253
|
// oauth required
|
|
252
254
|
_a.sent();
|
|
255
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
253
256
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
257
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
255
258
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -350,7 +350,7 @@ export declare class RecordingsApi extends BaseAPI {
|
|
|
350
350
|
* @param {*} [options] Override http request option.
|
|
351
351
|
* @throws {RequiredError}
|
|
352
352
|
*/
|
|
353
|
-
deleteRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
353
|
+
deleteRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
354
354
|
/**
|
|
355
355
|
* Deletes the specified recording\'s media.
|
|
356
356
|
* @summary Delete Recording Media
|
|
@@ -360,7 +360,7 @@ export declare class RecordingsApi extends BaseAPI {
|
|
|
360
360
|
* @param {*} [options] Override http request option.
|
|
361
361
|
* @throws {RequiredError}
|
|
362
362
|
*/
|
|
363
|
-
deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
363
|
+
deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
364
364
|
/**
|
|
365
365
|
* Deletes the specified recording\'s transcription. 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.
|
|
366
366
|
* @summary Delete Transcription
|
|
@@ -370,7 +370,7 @@ export declare class RecordingsApi extends BaseAPI {
|
|
|
370
370
|
* @param {*} [options] Override http request option.
|
|
371
371
|
* @throws {RequiredError}
|
|
372
372
|
*/
|
|
373
|
-
deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
373
|
+
deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
374
374
|
/**
|
|
375
375
|
* Downloads the specified recording.
|
|
376
376
|
* @summary Download Recording
|
|
@@ -380,7 +380,7 @@ export declare class RecordingsApi extends BaseAPI {
|
|
|
380
380
|
* @param {*} [options] Override http request option.
|
|
381
381
|
* @throws {RequiredError}
|
|
382
382
|
*/
|
|
383
|
-
downloadCallRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
383
|
+
downloadCallRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}, any>>;
|
|
384
384
|
/**
|
|
385
385
|
* Returns metadata for the specified recording.
|
|
386
386
|
* @summary Get Call Recording
|
|
@@ -390,7 +390,7 @@ export declare class RecordingsApi extends BaseAPI {
|
|
|
390
390
|
* @param {*} [options] Override http request option.
|
|
391
391
|
* @throws {RequiredError}
|
|
392
392
|
*/
|
|
393
|
-
getCallRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallRecordingMetadata, any, {}>>;
|
|
393
|
+
getCallRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallRecordingMetadata, any, {}, any>>;
|
|
394
394
|
/**
|
|
395
395
|
* Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
|
|
396
396
|
* @summary Get Transcription
|
|
@@ -400,7 +400,7 @@ export declare class RecordingsApi extends BaseAPI {
|
|
|
400
400
|
* @param {*} [options] Override http request option.
|
|
401
401
|
* @throws {RequiredError}
|
|
402
402
|
*/
|
|
403
|
-
getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RecordingTranscriptions, any, {}>>;
|
|
403
|
+
getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RecordingTranscriptions, any, {}, any>>;
|
|
404
404
|
/**
|
|
405
405
|
* Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria.
|
|
406
406
|
* @summary Get Call Recordings
|
|
@@ -412,7 +412,7 @@ export declare class RecordingsApi extends BaseAPI {
|
|
|
412
412
|
* @param {*} [options] Override http request option.
|
|
413
413
|
* @throws {RequiredError}
|
|
414
414
|
*/
|
|
415
|
-
listAccountCallRecordings(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallRecordingMetadata[], any, {}>>;
|
|
415
|
+
listAccountCallRecordings(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallRecordingMetadata[], any, {}, any>>;
|
|
416
416
|
/**
|
|
417
417
|
* Returns a (potentially empty) list of metadata for the recordings that took place during the specified call.
|
|
418
418
|
* @summary List Call Recordings
|
|
@@ -421,7 +421,7 @@ export declare class RecordingsApi extends BaseAPI {
|
|
|
421
421
|
* @param {*} [options] Override http request option.
|
|
422
422
|
* @throws {RequiredError}
|
|
423
423
|
*/
|
|
424
|
-
listCallRecordings(accountId: string, callId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallRecordingMetadata[], any, {}>>;
|
|
424
|
+
listCallRecordings(accountId: string, callId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallRecordingMetadata[], any, {}, any>>;
|
|
425
425
|
/**
|
|
426
426
|
* Generate the transcription for a specific recording. Transcription can succeed only for recordings of length greater than 500 milliseconds and less than 4 hours.
|
|
427
427
|
* @summary Create Transcription Request
|
|
@@ -432,7 +432,7 @@ export declare class RecordingsApi extends BaseAPI {
|
|
|
432
432
|
* @param {*} [options] Override http request option.
|
|
433
433
|
* @throws {RequiredError}
|
|
434
434
|
*/
|
|
435
|
-
transcribeCallRecording(accountId: string, callId: string, recordingId: string, transcribeRecording: TranscribeRecording, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
435
|
+
transcribeCallRecording(accountId: string, callId: string, recordingId: string, transcribeRecording: TranscribeRecording, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
436
436
|
/**
|
|
437
437
|
* Pause or resume a recording on an active phone call.
|
|
438
438
|
* @summary Update Recording
|
|
@@ -442,5 +442,5 @@ export declare class RecordingsApi extends BaseAPI {
|
|
|
442
442
|
* @param {*} [options] Override http request option.
|
|
443
443
|
* @throws {RequiredError}
|
|
444
444
|
*/
|
|
445
|
-
updateCallRecordingState(accountId: string, callId: string, updateCallRecording: UpdateCallRecording, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
445
|
+
updateCallRecordingState(accountId: string, callId: string, updateCallRecording: UpdateCallRecording, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
446
446
|
}
|