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/api/recordings-api.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
@@ -53,9 +53,9 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
53
53
|
// verify required parameter 'recordingId' is not null or undefined
|
|
54
54
|
assertParamExists('deleteRecording', 'recordingId', recordingId)
|
|
55
55
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}`
|
|
56
|
-
.replace(
|
|
57
|
-
.replace(
|
|
58
|
-
.replace(
|
|
56
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
57
|
+
.replace('{callId}', encodeURIComponent(String(callId)))
|
|
58
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
59
59
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
60
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61
61
|
let baseOptions;
|
|
@@ -75,8 +75,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
75
75
|
// oauth required
|
|
76
76
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
77
77
|
|
|
78
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
78
79
|
|
|
79
|
-
|
|
80
80
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
81
81
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82
82
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -103,9 +103,9 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
103
103
|
// verify required parameter 'recordingId' is not null or undefined
|
|
104
104
|
assertParamExists('deleteRecordingMedia', 'recordingId', recordingId)
|
|
105
105
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media`
|
|
106
|
-
.replace(
|
|
107
|
-
.replace(
|
|
108
|
-
.replace(
|
|
106
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
107
|
+
.replace('{callId}', encodeURIComponent(String(callId)))
|
|
108
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
109
109
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
110
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
111
|
let baseOptions;
|
|
@@ -125,8 +125,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
125
125
|
// oauth required
|
|
126
126
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
127
127
|
|
|
128
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
128
129
|
|
|
129
|
-
|
|
130
130
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
131
131
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
132
132
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -153,9 +153,9 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
153
153
|
// verify required parameter 'recordingId' is not null or undefined
|
|
154
154
|
assertParamExists('deleteRecordingTranscription', 'recordingId', recordingId)
|
|
155
155
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription`
|
|
156
|
-
.replace(
|
|
157
|
-
.replace(
|
|
158
|
-
.replace(
|
|
156
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
157
|
+
.replace('{callId}', encodeURIComponent(String(callId)))
|
|
158
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
159
159
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
160
160
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
161
161
|
let baseOptions;
|
|
@@ -175,8 +175,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
175
175
|
// oauth required
|
|
176
176
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
177
177
|
|
|
178
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
178
179
|
|
|
179
|
-
|
|
180
180
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
181
181
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
182
182
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -203,9 +203,9 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
203
203
|
// verify required parameter 'recordingId' is not null or undefined
|
|
204
204
|
assertParamExists('downloadCallRecording', 'recordingId', recordingId)
|
|
205
205
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media`
|
|
206
|
-
.replace(
|
|
207
|
-
.replace(
|
|
208
|
-
.replace(
|
|
206
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
207
|
+
.replace('{callId}', encodeURIComponent(String(callId)))
|
|
208
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
209
209
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
210
210
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
211
211
|
let baseOptions;
|
|
@@ -225,8 +225,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
225
225
|
// oauth required
|
|
226
226
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
227
227
|
|
|
228
|
+
localVarHeaderParameter['Accept'] = 'audio/vnd.wave,audio/mpeg,application/json';
|
|
228
229
|
|
|
229
|
-
|
|
230
230
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
231
231
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
232
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -253,9 +253,9 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
253
253
|
// verify required parameter 'recordingId' is not null or undefined
|
|
254
254
|
assertParamExists('getCallRecording', 'recordingId', recordingId)
|
|
255
255
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}`
|
|
256
|
-
.replace(
|
|
257
|
-
.replace(
|
|
258
|
-
.replace(
|
|
256
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
257
|
+
.replace('{callId}', encodeURIComponent(String(callId)))
|
|
258
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
259
259
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
260
260
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
261
261
|
let baseOptions;
|
|
@@ -275,8 +275,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
275
275
|
// oauth required
|
|
276
276
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
277
277
|
|
|
278
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
278
279
|
|
|
279
|
-
|
|
280
280
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
281
281
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
282
282
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -303,9 +303,9 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
303
303
|
// verify required parameter 'recordingId' is not null or undefined
|
|
304
304
|
assertParamExists('getRecordingTranscription', 'recordingId', recordingId)
|
|
305
305
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription`
|
|
306
|
-
.replace(
|
|
307
|
-
.replace(
|
|
308
|
-
.replace(
|
|
306
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
307
|
+
.replace('{callId}', encodeURIComponent(String(callId)))
|
|
308
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
309
309
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
310
310
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
311
311
|
let baseOptions;
|
|
@@ -325,8 +325,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
325
325
|
// oauth required
|
|
326
326
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
327
327
|
|
|
328
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
328
329
|
|
|
329
|
-
|
|
330
330
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
331
331
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
332
332
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -351,7 +351,7 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
351
351
|
// verify required parameter 'accountId' is not null or undefined
|
|
352
352
|
assertParamExists('listAccountCallRecordings', 'accountId', accountId)
|
|
353
353
|
const localVarPath = `/accounts/{accountId}/recordings`
|
|
354
|
-
.replace(
|
|
354
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
355
355
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
356
356
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
357
357
|
let baseOptions;
|
|
@@ -387,8 +387,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
387
387
|
localVarQueryParameter['maxStartTime'] = maxStartTime;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
390
391
|
|
|
391
|
-
|
|
392
392
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
393
393
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
394
394
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -412,8 +412,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
412
412
|
// verify required parameter 'callId' is not null or undefined
|
|
413
413
|
assertParamExists('listCallRecordings', 'callId', callId)
|
|
414
414
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings`
|
|
415
|
-
.replace(
|
|
416
|
-
.replace(
|
|
415
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
416
|
+
.replace('{callId}', encodeURIComponent(String(callId)));
|
|
417
417
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
418
418
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
419
419
|
let baseOptions;
|
|
@@ -433,8 +433,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
433
433
|
// oauth required
|
|
434
434
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
435
435
|
|
|
436
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
436
437
|
|
|
437
|
-
|
|
438
438
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
439
439
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
440
440
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -464,9 +464,9 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
464
464
|
// verify required parameter 'transcribeRecording' is not null or undefined
|
|
465
465
|
assertParamExists('transcribeCallRecording', 'transcribeRecording', transcribeRecording)
|
|
466
466
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription`
|
|
467
|
-
.replace(
|
|
468
|
-
.replace(
|
|
469
|
-
.replace(
|
|
467
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
468
|
+
.replace('{callId}', encodeURIComponent(String(callId)))
|
|
469
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
470
470
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
471
471
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
472
472
|
let baseOptions;
|
|
@@ -486,9 +486,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
486
486
|
// oauth required
|
|
487
487
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
488
488
|
|
|
489
|
-
|
|
490
|
-
|
|
491
489
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
490
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
492
491
|
|
|
493
492
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
494
493
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -517,8 +516,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
517
516
|
// verify required parameter 'updateCallRecording' is not null or undefined
|
|
518
517
|
assertParamExists('updateCallRecordingState', 'updateCallRecording', updateCallRecording)
|
|
519
518
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/recording`
|
|
520
|
-
.replace(
|
|
521
|
-
.replace(
|
|
519
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
520
|
+
.replace('{callId}', encodeURIComponent(String(callId)));
|
|
522
521
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
523
522
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
524
523
|
let baseOptions;
|
|
@@ -538,9 +537,8 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
538
537
|
// oauth required
|
|
539
538
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
540
539
|
|
|
541
|
-
|
|
542
|
-
|
|
543
540
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
541
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
544
542
|
|
|
545
543
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
546
544
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
package/api/statistics-api.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
@@ -41,7 +41,7 @@ export const StatisticsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41
41
|
// verify required parameter 'accountId' is not null or undefined
|
|
42
42
|
assertParamExists('getStatistics', 'accountId', accountId)
|
|
43
43
|
const localVarPath = `/accounts/{accountId}/statistics`
|
|
44
|
-
.replace(
|
|
44
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
45
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
46
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
47
|
let baseOptions;
|
|
@@ -61,8 +61,8 @@ export const StatisticsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
61
61
|
// oauth required
|
|
62
62
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
63
63
|
|
|
64
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
64
65
|
|
|
65
|
-
|
|
66
66
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
67
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
68
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -18,7 +18,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
@@ -54,7 +54,7 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
54
54
|
// verify required parameter 'webhookSubscriptionRequestSchema' is not null or undefined
|
|
55
55
|
assertParamExists('createWebhookSubscription', 'webhookSubscriptionRequestSchema', webhookSubscriptionRequestSchema)
|
|
56
56
|
const localVarPath = `/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions`
|
|
57
|
-
.replace(
|
|
57
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
58
58
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
59
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
60
60
|
let baseOptions;
|
|
@@ -74,9 +74,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
74
74
|
// oauth required
|
|
75
75
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
77
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
78
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
80
79
|
|
|
81
80
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
81
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -102,8 +101,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
102
101
|
// verify required parameter 'phoneNumber' is not null or undefined
|
|
103
102
|
assertParamExists('deleteVerificationRequest', 'phoneNumber', phoneNumber)
|
|
104
103
|
const localVarPath = `/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification`
|
|
105
|
-
.replace(
|
|
106
|
-
.replace(
|
|
104
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
105
|
+
.replace('{phoneNumber}', encodeURIComponent(String(phoneNumber)));
|
|
107
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
107
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
109
108
|
let baseOptions;
|
|
@@ -123,8 +122,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
123
122
|
// oauth required
|
|
124
123
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
125
124
|
|
|
125
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
126
126
|
|
|
127
|
-
|
|
128
127
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
128
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
129
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -148,8 +147,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
148
147
|
// verify required parameter 'id' is not null or undefined
|
|
149
148
|
assertParamExists('deleteWebhookSubscription', 'id', id)
|
|
150
149
|
const localVarPath = `/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id}`
|
|
151
|
-
.replace(
|
|
152
|
-
.replace(
|
|
150
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
151
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
153
152
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
153
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
154
|
let baseOptions;
|
|
@@ -169,8 +168,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
169
168
|
// oauth required
|
|
170
169
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
171
170
|
|
|
171
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
172
172
|
|
|
173
|
-
|
|
174
173
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
175
174
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
175
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -194,8 +193,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
194
193
|
// verify required parameter 'phoneNumber' is not null or undefined
|
|
195
194
|
assertParamExists('getTollFreeVerificationStatus', 'phoneNumber', phoneNumber)
|
|
196
195
|
const localVarPath = `/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification`
|
|
197
|
-
.replace(
|
|
198
|
-
.replace(
|
|
196
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
197
|
+
.replace('{phoneNumber}', encodeURIComponent(String(phoneNumber)));
|
|
199
198
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
199
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
201
200
|
let baseOptions;
|
|
@@ -215,8 +214,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
215
214
|
// oauth required
|
|
216
215
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
217
216
|
|
|
217
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
218
218
|
|
|
219
|
-
|
|
220
219
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
221
220
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
222
221
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -253,8 +252,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
253
252
|
// oauth required
|
|
254
253
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
255
254
|
|
|
255
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
256
256
|
|
|
257
|
-
|
|
258
257
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
258
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
259
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -275,7 +274,7 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
275
274
|
// verify required parameter 'accountId' is not null or undefined
|
|
276
275
|
assertParamExists('listWebhookSubscriptions', 'accountId', accountId)
|
|
277
276
|
const localVarPath = `/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions`
|
|
278
|
-
.replace(
|
|
277
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
279
278
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
280
279
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
281
280
|
let baseOptions;
|
|
@@ -295,8 +294,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
295
294
|
// oauth required
|
|
296
295
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
297
296
|
|
|
297
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
298
298
|
|
|
299
|
-
|
|
300
299
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
301
300
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
302
301
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -320,7 +319,7 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
320
319
|
// verify required parameter 'verificationRequest' is not null or undefined
|
|
321
320
|
assertParamExists('requestTollFreeVerification', 'verificationRequest', verificationRequest)
|
|
322
321
|
const localVarPath = `/accounts/{accountId}/tollFreeVerification`
|
|
323
|
-
.replace(
|
|
322
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
324
323
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
325
324
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
326
325
|
let baseOptions;
|
|
@@ -340,9 +339,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
340
339
|
// oauth required
|
|
341
340
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
342
341
|
|
|
343
|
-
|
|
344
|
-
|
|
345
342
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
343
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
346
344
|
|
|
347
345
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
348
346
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -371,8 +369,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
371
369
|
// verify required parameter 'tfvSubmissionWrapper' is not null or undefined
|
|
372
370
|
assertParamExists('updateTollFreeVerificationRequest', 'tfvSubmissionWrapper', tfvSubmissionWrapper)
|
|
373
371
|
const localVarPath = `/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification`
|
|
374
|
-
.replace(
|
|
375
|
-
.replace(
|
|
372
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
373
|
+
.replace('{phoneNumber}', encodeURIComponent(String(phoneNumber)));
|
|
376
374
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
377
375
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
378
376
|
let baseOptions;
|
|
@@ -392,9 +390,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
392
390
|
// oauth required
|
|
393
391
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
394
392
|
|
|
395
|
-
|
|
396
|
-
|
|
397
393
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
394
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
398
395
|
|
|
399
396
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
400
397
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -423,8 +420,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
423
420
|
// verify required parameter 'webhookSubscriptionRequestSchema' is not null or undefined
|
|
424
421
|
assertParamExists('updateWebhookSubscription', 'webhookSubscriptionRequestSchema', webhookSubscriptionRequestSchema)
|
|
425
422
|
const localVarPath = `/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id}`
|
|
426
|
-
.replace(
|
|
427
|
-
.replace(
|
|
423
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
424
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
428
425
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
429
426
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
430
427
|
let baseOptions;
|
|
@@ -444,9 +441,8 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
444
441
|
// oauth required
|
|
445
442
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
446
443
|
|
|
447
|
-
|
|
448
|
-
|
|
449
444
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
445
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
450
446
|
|
|
451
447
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
452
448
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -18,7 +18,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
@@ -49,9 +49,9 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
49
49
|
// verify required parameter 'transcriptionId' is not null or undefined
|
|
50
50
|
assertParamExists('deleteRealTimeTranscription', 'transcriptionId', transcriptionId)
|
|
51
51
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId}`
|
|
52
|
-
.replace(
|
|
53
|
-
.replace(
|
|
54
|
-
.replace(
|
|
52
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
53
|
+
.replace('{callId}', encodeURIComponent(String(callId)))
|
|
54
|
+
.replace('{transcriptionId}', encodeURIComponent(String(transcriptionId)));
|
|
55
55
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
56
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57
57
|
let baseOptions;
|
|
@@ -71,8 +71,8 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
71
71
|
// oauth required
|
|
72
72
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
73
73
|
|
|
74
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
74
75
|
|
|
75
|
-
|
|
76
76
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
77
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
78
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -99,9 +99,9 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
99
99
|
// verify required parameter 'transcriptionId' is not null or undefined
|
|
100
100
|
assertParamExists('getRealTimeTranscription', 'transcriptionId', transcriptionId)
|
|
101
101
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId}`
|
|
102
|
-
.replace(
|
|
103
|
-
.replace(
|
|
104
|
-
.replace(
|
|
102
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
103
|
+
.replace('{callId}', encodeURIComponent(String(callId)))
|
|
104
|
+
.replace('{transcriptionId}', encodeURIComponent(String(transcriptionId)));
|
|
105
105
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
106
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
107
|
let baseOptions;
|
|
@@ -121,8 +121,8 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
121
121
|
// oauth required
|
|
122
122
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
123
123
|
|
|
124
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
124
125
|
|
|
125
|
-
|
|
126
126
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
127
127
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
128
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -146,8 +146,8 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
146
146
|
// verify required parameter 'callId' is not null or undefined
|
|
147
147
|
assertParamExists('listRealTimeTranscriptions', 'callId', callId)
|
|
148
148
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/transcriptions`
|
|
149
|
-
.replace(
|
|
150
|
-
.replace(
|
|
149
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
150
|
+
.replace('{callId}', encodeURIComponent(String(callId)));
|
|
151
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
152
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
153
153
|
let baseOptions;
|
|
@@ -167,8 +167,8 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
167
167
|
// oauth required
|
|
168
168
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
169
169
|
|
|
170
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
170
171
|
|
|
171
|
-
|
|
172
172
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
173
173
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
174
174
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|