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
|
@@ -121,7 +121,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
// verify required parameter 'body' is not null or undefined
|
|
122
122
|
(0, common_1.assertParamExists)('createEndpoint', 'body', body);
|
|
123
123
|
localVarPath = "/accounts/{accountId}/endpoints"
|
|
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 EndpointsApiAxiosParamCreator = 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,8 +177,8 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
176
177
|
// verify required parameter 'endpointId' is not null or undefined
|
|
177
178
|
(0, common_1.assertParamExists)('deleteEndpoint', 'endpointId', endpointId);
|
|
178
179
|
localVarPath = "/accounts/{accountId}/endpoints/{endpointId}"
|
|
179
|
-
.replace(
|
|
180
|
-
.replace(
|
|
180
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
181
|
+
.replace('{endpointId}', encodeURIComponent(String(endpointId)));
|
|
181
182
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
182
183
|
if (configuration) {
|
|
183
184
|
baseOptions = configuration.baseOptions;
|
|
@@ -195,6 +196,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
195
196
|
// authentication OAuth2 required
|
|
196
197
|
// oauth required
|
|
197
198
|
_a.sent();
|
|
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);
|
|
@@ -230,8 +232,8 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
230
232
|
// verify required parameter 'endpointId' is not null or undefined
|
|
231
233
|
(0, common_1.assertParamExists)('getEndpoint', 'endpointId', endpointId);
|
|
232
234
|
localVarPath = "/accounts/{accountId}/endpoints/{endpointId}"
|
|
233
|
-
.replace(
|
|
234
|
-
.replace(
|
|
235
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
236
|
+
.replace('{endpointId}', encodeURIComponent(String(endpointId)));
|
|
235
237
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
236
238
|
if (configuration) {
|
|
237
239
|
baseOptions = configuration.baseOptions;
|
|
@@ -249,6 +251,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
249
251
|
// authentication OAuth2 required
|
|
250
252
|
// oauth required
|
|
251
253
|
_a.sent();
|
|
254
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
252
255
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
253
256
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
257
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -285,7 +288,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
285
288
|
// verify required parameter 'accountId' is not null or undefined
|
|
286
289
|
(0, common_1.assertParamExists)('listEndpoints', 'accountId', accountId);
|
|
287
290
|
localVarPath = "/accounts/{accountId}/endpoints"
|
|
288
|
-
.replace(
|
|
291
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
289
292
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
290
293
|
if (configuration) {
|
|
291
294
|
baseOptions = configuration.baseOptions;
|
|
@@ -315,6 +318,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
315
318
|
if (limit !== undefined) {
|
|
316
319
|
localVarQueryParameter['limit'] = limit;
|
|
317
320
|
}
|
|
321
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
318
322
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
319
323
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
324
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -353,8 +357,8 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
353
357
|
// verify required parameter 'body' is not null or undefined
|
|
354
358
|
(0, common_1.assertParamExists)('updateEndpointBxml', 'body', body);
|
|
355
359
|
localVarPath = "/accounts/{accountId}/endpoints/{endpointId}/bxml"
|
|
356
|
-
.replace(
|
|
357
|
-
.replace(
|
|
360
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
361
|
+
.replace('{endpointId}', encodeURIComponent(String(endpointId)));
|
|
358
362
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
359
363
|
if (configuration) {
|
|
360
364
|
baseOptions = configuration.baseOptions;
|
|
@@ -373,6 +377,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
373
377
|
// oauth required
|
|
374
378
|
_a.sent();
|
|
375
379
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
380
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
376
381
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
377
382
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
383
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
package/dist/api/media-api.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
20
20
|
/**
|
|
21
21
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
22
22
|
* @summary Delete Media
|
|
23
|
-
* @param {string} accountId
|
|
23
|
+
* @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.**
|
|
24
24
|
* @param {string} mediaId Media ID to retrieve.
|
|
25
25
|
* @param {*} [options] Override http request option.
|
|
26
26
|
* @throws {RequiredError}
|
|
@@ -29,7 +29,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
29
29
|
/**
|
|
30
30
|
* Downloads a media file you previously uploaded.
|
|
31
31
|
* @summary Get Media
|
|
32
|
-
* @param {string} accountId
|
|
32
|
+
* @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.**
|
|
33
33
|
* @param {string} mediaId Media ID to retrieve.
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
35
35
|
* @throws {RequiredError}
|
|
@@ -38,7 +38,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
38
38
|
/**
|
|
39
39
|
* Gets a list of your media files. No query parameters are supported.
|
|
40
40
|
* @summary List Media
|
|
41
|
-
* @param {string} accountId
|
|
41
|
+
* @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.**
|
|
42
42
|
* @param {string} [continuationToken] Continuation token used to retrieve subsequent media.
|
|
43
43
|
* @param {*} [options] Override http request option.
|
|
44
44
|
* @throws {RequiredError}
|
|
@@ -47,7 +47,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
47
47
|
/**
|
|
48
48
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
49
49
|
* @summary Upload Media
|
|
50
|
-
* @param {string} accountId
|
|
50
|
+
* @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.**
|
|
51
51
|
* @param {string} mediaId Media ID to retrieve.
|
|
52
52
|
* @param {File} body
|
|
53
53
|
* @param {string} [contentType] The media type of the entity-body.
|
|
@@ -64,7 +64,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
|
|
|
64
64
|
/**
|
|
65
65
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
66
66
|
* @summary Delete Media
|
|
67
|
-
* @param {string} accountId
|
|
67
|
+
* @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.**
|
|
68
68
|
* @param {string} mediaId Media ID to retrieve.
|
|
69
69
|
* @param {*} [options] Override http request option.
|
|
70
70
|
* @throws {RequiredError}
|
|
@@ -73,7 +73,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
|
|
|
73
73
|
/**
|
|
74
74
|
* Downloads a media file you previously uploaded.
|
|
75
75
|
* @summary Get Media
|
|
76
|
-
* @param {string} accountId
|
|
76
|
+
* @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.**
|
|
77
77
|
* @param {string} mediaId Media ID to retrieve.
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
@@ -82,7 +82,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
|
|
|
82
82
|
/**
|
|
83
83
|
* Gets a list of your media files. No query parameters are supported.
|
|
84
84
|
* @summary List Media
|
|
85
|
-
* @param {string} accountId
|
|
85
|
+
* @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.**
|
|
86
86
|
* @param {string} [continuationToken] Continuation token used to retrieve subsequent media.
|
|
87
87
|
* @param {*} [options] Override http request option.
|
|
88
88
|
* @throws {RequiredError}
|
|
@@ -91,7 +91,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
|
|
|
91
91
|
/**
|
|
92
92
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
93
93
|
* @summary Upload Media
|
|
94
|
-
* @param {string} accountId
|
|
94
|
+
* @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.**
|
|
95
95
|
* @param {string} mediaId Media ID to retrieve.
|
|
96
96
|
* @param {File} body
|
|
97
97
|
* @param {string} [contentType] The media type of the entity-body.
|
|
@@ -108,7 +108,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
|
|
|
108
108
|
/**
|
|
109
109
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
110
110
|
* @summary Delete Media
|
|
111
|
-
* @param {string} accountId
|
|
111
|
+
* @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.**
|
|
112
112
|
* @param {string} mediaId Media ID to retrieve.
|
|
113
113
|
* @param {*} [options] Override http request option.
|
|
114
114
|
* @throws {RequiredError}
|
|
@@ -117,7 +117,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
|
|
|
117
117
|
/**
|
|
118
118
|
* Downloads a media file you previously uploaded.
|
|
119
119
|
* @summary Get Media
|
|
120
|
-
* @param {string} accountId
|
|
120
|
+
* @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.**
|
|
121
121
|
* @param {string} mediaId Media ID to retrieve.
|
|
122
122
|
* @param {*} [options] Override http request option.
|
|
123
123
|
* @throws {RequiredError}
|
|
@@ -126,7 +126,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
|
|
|
126
126
|
/**
|
|
127
127
|
* Gets a list of your media files. No query parameters are supported.
|
|
128
128
|
* @summary List Media
|
|
129
|
-
* @param {string} accountId
|
|
129
|
+
* @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.**
|
|
130
130
|
* @param {string} [continuationToken] Continuation token used to retrieve subsequent media.
|
|
131
131
|
* @param {*} [options] Override http request option.
|
|
132
132
|
* @throws {RequiredError}
|
|
@@ -135,7 +135,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
|
|
|
135
135
|
/**
|
|
136
136
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
137
137
|
* @summary Upload Media
|
|
138
|
-
* @param {string} accountId
|
|
138
|
+
* @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.**
|
|
139
139
|
* @param {string} mediaId Media ID to retrieve.
|
|
140
140
|
* @param {File} body
|
|
141
141
|
* @param {string} [contentType] The media type of the entity-body.
|
|
@@ -152,34 +152,34 @@ export declare class MediaApi extends BaseAPI {
|
|
|
152
152
|
/**
|
|
153
153
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
154
154
|
* @summary Delete Media
|
|
155
|
-
* @param {string} accountId
|
|
155
|
+
* @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.**
|
|
156
156
|
* @param {string} mediaId Media ID to retrieve.
|
|
157
157
|
* @param {*} [options] Override http request option.
|
|
158
158
|
* @throws {RequiredError}
|
|
159
159
|
*/
|
|
160
|
-
deleteMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
160
|
+
deleteMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
161
161
|
/**
|
|
162
162
|
* Downloads a media file you previously uploaded.
|
|
163
163
|
* @summary Get Media
|
|
164
|
-
* @param {string} accountId
|
|
164
|
+
* @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.**
|
|
165
165
|
* @param {string} mediaId Media ID to retrieve.
|
|
166
166
|
* @param {*} [options] Override http request option.
|
|
167
167
|
* @throws {RequiredError}
|
|
168
168
|
*/
|
|
169
|
-
getMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
169
|
+
getMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}, any>>;
|
|
170
170
|
/**
|
|
171
171
|
* Gets a list of your media files. No query parameters are supported.
|
|
172
172
|
* @summary List Media
|
|
173
|
-
* @param {string} accountId
|
|
173
|
+
* @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.**
|
|
174
174
|
* @param {string} [continuationToken] Continuation token used to retrieve subsequent media.
|
|
175
175
|
* @param {*} [options] Override http request option.
|
|
176
176
|
* @throws {RequiredError}
|
|
177
177
|
*/
|
|
178
|
-
listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Media[], any, {}>>;
|
|
178
|
+
listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Media[], any, {}, any>>;
|
|
179
179
|
/**
|
|
180
180
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
181
181
|
* @summary Upload Media
|
|
182
|
-
* @param {string} accountId
|
|
182
|
+
* @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.**
|
|
183
183
|
* @param {string} mediaId Media ID to retrieve.
|
|
184
184
|
* @param {File} body
|
|
185
185
|
* @param {string} [contentType] The media type of the entity-body.
|
|
@@ -187,5 +187,5 @@ export declare class MediaApi extends BaseAPI {
|
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
190
|
-
uploadMedia(accountId: string, mediaId: string, body: File, contentType?: string, cacheControl?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
190
|
+
uploadMedia(accountId: string, mediaId: string, body: File, contentType?: string, cacheControl?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
191
191
|
}
|
package/dist/api/media-api.js
CHANGED
|
@@ -100,7 +100,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
/**
|
|
101
101
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
102
102
|
* @summary Delete Media
|
|
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 {string} mediaId Media ID to retrieve.
|
|
105
105
|
* @param {*} [options] Override http request option.
|
|
106
106
|
* @throws {RequiredError}
|
|
@@ -121,8 +121,8 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
// verify required parameter 'mediaId' is not null or undefined
|
|
122
122
|
(0, common_1.assertParamExists)('deleteMedia', 'mediaId', mediaId);
|
|
123
123
|
localVarPath = "/users/{accountId}/media/{mediaId}"
|
|
124
|
-
.replace(
|
|
125
|
-
.replace(
|
|
124
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
125
|
+
.replace('{mediaId}', encodeURIComponent(String(mediaId)));
|
|
126
126
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
127
127
|
if (configuration) {
|
|
128
128
|
baseOptions = configuration.baseOptions;
|
|
@@ -140,6 +140,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
140
140
|
// authentication OAuth2 required
|
|
141
141
|
// oauth required
|
|
142
142
|
_a.sent();
|
|
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);
|
|
@@ -154,7 +155,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
154
155
|
/**
|
|
155
156
|
* Downloads a media file you previously uploaded.
|
|
156
157
|
* @summary Get Media
|
|
157
|
-
* @param {string} accountId
|
|
158
|
+
* @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.**
|
|
158
159
|
* @param {string} mediaId Media ID to retrieve.
|
|
159
160
|
* @param {*} [options] Override http request option.
|
|
160
161
|
* @throws {RequiredError}
|
|
@@ -175,8 +176,8 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
175
176
|
// verify required parameter 'mediaId' is not null or undefined
|
|
176
177
|
(0, common_1.assertParamExists)('getMedia', 'mediaId', mediaId);
|
|
177
178
|
localVarPath = "/users/{accountId}/media/{mediaId}"
|
|
178
|
-
.replace(
|
|
179
|
-
.replace(
|
|
179
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
180
|
+
.replace('{mediaId}', encodeURIComponent(String(mediaId)));
|
|
180
181
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
181
182
|
if (configuration) {
|
|
182
183
|
baseOptions = configuration.baseOptions;
|
|
@@ -194,6 +195,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
194
195
|
// authentication OAuth2 required
|
|
195
196
|
// oauth required
|
|
196
197
|
_a.sent();
|
|
198
|
+
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
197
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
198
200
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
201
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -208,7 +210,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
208
210
|
/**
|
|
209
211
|
* Gets a list of your media files. No query parameters are supported.
|
|
210
212
|
* @summary List Media
|
|
211
|
-
* @param {string} accountId
|
|
213
|
+
* @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.**
|
|
212
214
|
* @param {string} [continuationToken] Continuation token used to retrieve subsequent media.
|
|
213
215
|
* @param {*} [options] Override http request option.
|
|
214
216
|
* @throws {RequiredError}
|
|
@@ -227,7 +229,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
227
229
|
// verify required parameter 'accountId' is not null or undefined
|
|
228
230
|
(0, common_1.assertParamExists)('listMedia', 'accountId', accountId);
|
|
229
231
|
localVarPath = "/users/{accountId}/media"
|
|
230
|
-
.replace(
|
|
232
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
231
233
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
232
234
|
if (configuration) {
|
|
233
235
|
baseOptions = configuration.baseOptions;
|
|
@@ -245,6 +247,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
245
247
|
// authentication OAuth2 required
|
|
246
248
|
// oauth required
|
|
247
249
|
_a.sent();
|
|
250
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
248
251
|
if (continuationToken != null) {
|
|
249
252
|
localVarHeaderParameter['Continuation-Token'] = String(continuationToken);
|
|
250
253
|
}
|
|
@@ -262,7 +265,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
262
265
|
/**
|
|
263
266
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
264
267
|
* @summary Upload Media
|
|
265
|
-
* @param {string} accountId
|
|
268
|
+
* @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.**
|
|
266
269
|
* @param {string} mediaId Media ID to retrieve.
|
|
267
270
|
* @param {File} body
|
|
268
271
|
* @param {string} [contentType] The media type of the entity-body.
|
|
@@ -288,8 +291,8 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
288
291
|
// verify required parameter 'body' is not null or undefined
|
|
289
292
|
(0, common_1.assertParamExists)('uploadMedia', 'body', body);
|
|
290
293
|
localVarPath = "/users/{accountId}/media/{mediaId}"
|
|
291
|
-
.replace(
|
|
292
|
-
.replace(
|
|
294
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
295
|
+
.replace('{mediaId}', encodeURIComponent(String(mediaId)));
|
|
293
296
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
294
297
|
if (configuration) {
|
|
295
298
|
baseOptions = configuration.baseOptions;
|
|
@@ -308,6 +311,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
308
311
|
// oauth required
|
|
309
312
|
_a.sent();
|
|
310
313
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
314
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
311
315
|
if (contentType != null) {
|
|
312
316
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
313
317
|
}
|
|
@@ -338,7 +342,7 @@ var MediaApiFp = function (configuration) {
|
|
|
338
342
|
/**
|
|
339
343
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
340
344
|
* @summary Delete Media
|
|
341
|
-
* @param {string} accountId
|
|
345
|
+
* @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.**
|
|
342
346
|
* @param {string} mediaId Media ID to retrieve.
|
|
343
347
|
* @param {*} [options] Override http request option.
|
|
344
348
|
* @throws {RequiredError}
|
|
@@ -362,7 +366,7 @@ var MediaApiFp = function (configuration) {
|
|
|
362
366
|
/**
|
|
363
367
|
* Downloads a media file you previously uploaded.
|
|
364
368
|
* @summary Get Media
|
|
365
|
-
* @param {string} accountId
|
|
369
|
+
* @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.**
|
|
366
370
|
* @param {string} mediaId Media ID to retrieve.
|
|
367
371
|
* @param {*} [options] Override http request option.
|
|
368
372
|
* @throws {RequiredError}
|
|
@@ -386,7 +390,7 @@ var MediaApiFp = function (configuration) {
|
|
|
386
390
|
/**
|
|
387
391
|
* Gets a list of your media files. No query parameters are supported.
|
|
388
392
|
* @summary List Media
|
|
389
|
-
* @param {string} accountId
|
|
393
|
+
* @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.**
|
|
390
394
|
* @param {string} [continuationToken] Continuation token used to retrieve subsequent media.
|
|
391
395
|
* @param {*} [options] Override http request option.
|
|
392
396
|
* @throws {RequiredError}
|
|
@@ -410,7 +414,7 @@ var MediaApiFp = function (configuration) {
|
|
|
410
414
|
/**
|
|
411
415
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
412
416
|
* @summary Upload Media
|
|
413
|
-
* @param {string} accountId
|
|
417
|
+
* @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.**
|
|
414
418
|
* @param {string} mediaId Media ID to retrieve.
|
|
415
419
|
* @param {File} body
|
|
416
420
|
* @param {string} [contentType] The media type of the entity-body.
|
|
@@ -446,7 +450,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
|
|
|
446
450
|
/**
|
|
447
451
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
448
452
|
* @summary Delete Media
|
|
449
|
-
* @param {string} accountId
|
|
453
|
+
* @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.**
|
|
450
454
|
* @param {string} mediaId Media ID to retrieve.
|
|
451
455
|
* @param {*} [options] Override http request option.
|
|
452
456
|
* @throws {RequiredError}
|
|
@@ -457,7 +461,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
|
|
|
457
461
|
/**
|
|
458
462
|
* Downloads a media file you previously uploaded.
|
|
459
463
|
* @summary Get Media
|
|
460
|
-
* @param {string} accountId
|
|
464
|
+
* @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.**
|
|
461
465
|
* @param {string} mediaId Media ID to retrieve.
|
|
462
466
|
* @param {*} [options] Override http request option.
|
|
463
467
|
* @throws {RequiredError}
|
|
@@ -468,7 +472,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
|
|
|
468
472
|
/**
|
|
469
473
|
* Gets a list of your media files. No query parameters are supported.
|
|
470
474
|
* @summary List Media
|
|
471
|
-
* @param {string} accountId
|
|
475
|
+
* @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.**
|
|
472
476
|
* @param {string} [continuationToken] Continuation token used to retrieve subsequent media.
|
|
473
477
|
* @param {*} [options] Override http request option.
|
|
474
478
|
* @throws {RequiredError}
|
|
@@ -479,7 +483,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
|
|
|
479
483
|
/**
|
|
480
484
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
481
485
|
* @summary Upload Media
|
|
482
|
-
* @param {string} accountId
|
|
486
|
+
* @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.**
|
|
483
487
|
* @param {string} mediaId Media ID to retrieve.
|
|
484
488
|
* @param {File} body
|
|
485
489
|
* @param {string} [contentType] The media type of the entity-body.
|
|
@@ -504,7 +508,7 @@ var MediaApi = /** @class */ (function (_super) {
|
|
|
504
508
|
/**
|
|
505
509
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
506
510
|
* @summary Delete Media
|
|
507
|
-
* @param {string} accountId
|
|
511
|
+
* @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.**
|
|
508
512
|
* @param {string} mediaId Media ID to retrieve.
|
|
509
513
|
* @param {*} [options] Override http request option.
|
|
510
514
|
* @throws {RequiredError}
|
|
@@ -516,7 +520,7 @@ var MediaApi = /** @class */ (function (_super) {
|
|
|
516
520
|
/**
|
|
517
521
|
* Downloads a media file you previously uploaded.
|
|
518
522
|
* @summary Get Media
|
|
519
|
-
* @param {string} accountId
|
|
523
|
+
* @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.**
|
|
520
524
|
* @param {string} mediaId Media ID to retrieve.
|
|
521
525
|
* @param {*} [options] Override http request option.
|
|
522
526
|
* @throws {RequiredError}
|
|
@@ -528,7 +532,7 @@ var MediaApi = /** @class */ (function (_super) {
|
|
|
528
532
|
/**
|
|
529
533
|
* Gets a list of your media files. No query parameters are supported.
|
|
530
534
|
* @summary List Media
|
|
531
|
-
* @param {string} accountId
|
|
535
|
+
* @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.**
|
|
532
536
|
* @param {string} [continuationToken] Continuation token used to retrieve subsequent media.
|
|
533
537
|
* @param {*} [options] Override http request option.
|
|
534
538
|
* @throws {RequiredError}
|
|
@@ -540,7 +544,7 @@ var MediaApi = /** @class */ (function (_super) {
|
|
|
540
544
|
/**
|
|
541
545
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
542
546
|
* @summary Upload Media
|
|
543
|
-
* @param {string} accountId
|
|
547
|
+
* @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.**
|
|
544
548
|
* @param {string} mediaId Media ID to retrieve.
|
|
545
549
|
* @param {File} body
|
|
546
550
|
* @param {string} [contentType] The media type of the entity-body.
|
|
@@ -26,7 +26,7 @@ export declare const MessagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
26
26
|
/**
|
|
27
27
|
* Endpoint for sending text messages and picture messages using V2 messaging.
|
|
28
28
|
* @summary Create Message
|
|
29
|
-
* @param {string} accountId
|
|
29
|
+
* @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.**
|
|
30
30
|
* @param {MessageRequest} messageRequest
|
|
31
31
|
* @param {*} [options] Override http request option.
|
|
32
32
|
* @throws {RequiredError}
|
|
@@ -35,7 +35,7 @@ export declare const MessagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
35
35
|
/**
|
|
36
36
|
* 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.
|
|
37
37
|
* @summary List Messages
|
|
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 {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.
|
|
40
40
|
* @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\').
|
|
41
41
|
* @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\').
|
|
@@ -75,7 +75,7 @@ export declare const MessagesApiFp: (configuration?: Configuration) => {
|
|
|
75
75
|
/**
|
|
76
76
|
* Endpoint for sending text messages and picture messages using V2 messaging.
|
|
77
77
|
* @summary Create Message
|
|
78
|
-
* @param {string} accountId
|
|
78
|
+
* @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.**
|
|
79
79
|
* @param {MessageRequest} messageRequest
|
|
80
80
|
* @param {*} [options] Override http request option.
|
|
81
81
|
* @throws {RequiredError}
|
|
@@ -84,7 +84,7 @@ export declare const MessagesApiFp: (configuration?: Configuration) => {
|
|
|
84
84
|
/**
|
|
85
85
|
* 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.
|
|
86
86
|
* @summary List Messages
|
|
87
|
-
* @param {string} accountId
|
|
87
|
+
* @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.**
|
|
88
88
|
* @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.
|
|
89
89
|
* @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\').
|
|
90
90
|
* @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\').
|
|
@@ -124,7 +124,7 @@ export declare const MessagesApiFactory: (configuration?: Configuration, basePat
|
|
|
124
124
|
/**
|
|
125
125
|
* Endpoint for sending text messages and picture messages using V2 messaging.
|
|
126
126
|
* @summary Create Message
|
|
127
|
-
* @param {string} accountId
|
|
127
|
+
* @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.**
|
|
128
128
|
* @param {MessageRequest} messageRequest
|
|
129
129
|
* @param {*} [options] Override http request option.
|
|
130
130
|
* @throws {RequiredError}
|
|
@@ -133,7 +133,7 @@ export declare const MessagesApiFactory: (configuration?: Configuration, basePat
|
|
|
133
133
|
/**
|
|
134
134
|
* 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.
|
|
135
135
|
* @summary List Messages
|
|
136
|
-
* @param {string} accountId
|
|
136
|
+
* @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.**
|
|
137
137
|
* @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.
|
|
138
138
|
* @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\').
|
|
139
139
|
* @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\').
|
|
@@ -173,16 +173,16 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
173
173
|
/**
|
|
174
174
|
* Endpoint for sending text messages and picture messages using V2 messaging.
|
|
175
175
|
* @summary Create Message
|
|
176
|
-
* @param {string} accountId
|
|
176
|
+
* @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.**
|
|
177
177
|
* @param {MessageRequest} messageRequest
|
|
178
178
|
* @param {*} [options] Override http request option.
|
|
179
179
|
* @throws {RequiredError}
|
|
180
180
|
*/
|
|
181
|
-
createMessage(accountId: string, messageRequest: MessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Message, any, {}>>;
|
|
181
|
+
createMessage(accountId: string, messageRequest: MessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Message, any, {}, any>>;
|
|
182
182
|
/**
|
|
183
183
|
* 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.
|
|
184
184
|
* @summary List Messages
|
|
185
|
-
* @param {string} accountId
|
|
185
|
+
* @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.**
|
|
186
186
|
* @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.
|
|
187
187
|
* @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\').
|
|
188
188
|
* @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\').
|
|
@@ -213,5 +213,5 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
213
213
|
* @param {*} [options] Override http request option.
|
|
214
214
|
* @throws {RequiredError}
|
|
215
215
|
*/
|
|
216
|
-
listMessages(accountId: string, messageId?: string, sourceTn?: string, destinationTn?: string, messageStatus?: MessageStatusEnum, messageDirection?: ListMessageDirectionEnum, carrierName?: string, messageType?: MessageTypeEnum, errorCode?: number, fromDateTime?: string, toDateTime?: string, campaignId?: string, fromBwLatency?: number, bwQueued?: boolean, product?: ProductTypeEnum, location?: string, carrierQueued?: boolean, fromCarrierLatency?: number, callingNumberCountryA3?: string, calledNumberCountryA3?: string, fromSegmentCount?: number, toSegmentCount?: number, fromMessageSize?: number, toMessageSize?: number, sort?: string, pageToken?: string, limit?: number, limitTotalCount?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessagesList, any, {}>>;
|
|
216
|
+
listMessages(accountId: string, messageId?: string, sourceTn?: string, destinationTn?: string, messageStatus?: MessageStatusEnum, messageDirection?: ListMessageDirectionEnum, carrierName?: string, messageType?: MessageTypeEnum, errorCode?: number, fromDateTime?: string, toDateTime?: string, campaignId?: string, fromBwLatency?: number, bwQueued?: boolean, product?: ProductTypeEnum, location?: string, carrierQueued?: boolean, fromCarrierLatency?: number, callingNumberCountryA3?: string, calledNumberCountryA3?: string, fromSegmentCount?: number, toSegmentCount?: number, fromMessageSize?: number, toMessageSize?: number, sort?: string, pageToken?: string, limit?: number, limitTotalCount?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessagesList, any, {}, any>>;
|
|
217
217
|
}
|