bandwidth-sdk 7.4.2 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/deploy.yml +1 -1
- package/.github/workflows/test-pr.yml +1 -1
- package/.github/workflows/test-smoke.yml +1 -1
- package/.openapi-generator/FILES +48 -4
- package/README.md +28 -2
- package/api/endpoints-api.ts +519 -0
- package/api/media-api.ts +4 -4
- package/api.ts +1 -0
- package/bandwidth.yml +972 -60
- package/base.ts +30 -0
- package/configuration.ts +1 -1
- package/coverage/clover.xml +815 -616
- package/coverage/coverage-final.json +95 -88
- package/coverage/lcov-report/index.html +38 -38
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +14 -14
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +18 -18
- package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +1642 -0
- package/coverage/lcov-report/node-sdk/api/index.html +24 -9
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +17 -17
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +11 -11
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +12 -12
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +10 -10
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +12 -12
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +19 -19
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +10 -10
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +18 -18
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +12 -12
- package/coverage/lcov-report/node-sdk/api.ts.html +18 -15
- package/coverage/lcov-report/node-sdk/base.ts.html +104 -14
- package/coverage/lcov-report/node-sdk/common.ts.html +39 -39
- package/coverage/lcov-report/node-sdk/configuration.ts.html +26 -26
- package/coverage/lcov-report/node-sdk/index.html +7 -7
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +3 -3
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +3 -3
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +23 -23
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +8 -8
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +13 -13
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +15 -15
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +3 -3
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Connect.ts.html +184 -0
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Endpoint.ts.html +142 -0
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +7 -7
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +6 -6
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +5 -5
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +5 -5
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +5 -5
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +38 -8
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +39 -33
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -2
- 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 +163 -0
- package/coverage/lcov-report/node-sdk/models/{business-registration-issuing-country-enum.ts.html → endpoint-direction-enum.ts.html} +10 -61
- package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +163 -0
- package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +163 -0
- package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +160 -0
- 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 +3 -3
- package/coverage/lcov-report/node-sdk/models/index.html +76 -16
- package/coverage/lcov-report/node-sdk/models/index.ts.html +246 -183
- 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 +3 -3
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +3 -3
- 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/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 +1226 -764
- package/custom_templates/modelAllOf.mustache +14 -0
- package/dist/api/endpoints-api.d.ts +236 -0
- package/dist/api/endpoints-api.js +666 -0
- package/dist/api/media-api.d.ts +4 -4
- package/dist/api/media-api.js +4 -4
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +30 -0
- package/dist/configuration.js +1 -1
- package/dist/models/brtc-error-response.d.ts +18 -0
- package/dist/models/brtc-error-source.d.ts +29 -0
- package/dist/models/brtc-error-source.js +15 -0
- package/dist/models/brtc-error.d.ts +31 -0
- package/dist/models/brtc-error.js +15 -0
- package/dist/models/brtc-link.d.ts +25 -0
- package/dist/models/brtc-link.js +15 -0
- package/dist/models/business-entity-type-enum.d.ts +1 -1
- package/dist/models/business-entity-type-enum.js +1 -1
- package/dist/models/business-registration-type-enum.d.ts +1 -1
- package/dist/models/business-registration-type-enum.js +1 -1
- package/dist/models/bxml/verbs/Connect.d.ts +25 -0
- package/dist/models/bxml/verbs/Connect.js +45 -0
- package/dist/models/bxml/verbs/Endpoint.d.ts +15 -0
- package/dist/models/bxml/verbs/Endpoint.js +37 -0
- package/dist/models/bxml/verbs/index.d.ts +2 -0
- package/dist/models/bxml/verbs/index.js +2 -0
- package/dist/models/create-call.d.ts +2 -2
- package/dist/models/create-endpoint-request-base.d.ts +29 -0
- package/dist/models/create-endpoint-request-base.js +15 -0
- package/dist/models/create-endpoint-response-data.d.ts +42 -0
- package/dist/models/create-endpoint-response-data.js +15 -0
- package/dist/models/create-endpoint-response.d.ts +19 -0
- package/dist/models/create-endpoint-response.js +15 -0
- package/dist/models/create-web-rtc-connection-request.d.ts +33 -0
- package/dist/models/create-web-rtc-connection-request.js +15 -0
- package/dist/models/device-status-enum.d.ts +16 -0
- package/dist/models/device-status-enum.js +20 -0
- package/dist/models/device.d.ts +27 -0
- package/dist/models/device.js +15 -0
- package/dist/models/endpoint-direction-enum.d.ts +17 -0
- package/dist/models/endpoint-direction-enum.js +21 -0
- package/dist/models/endpoint-event-type-enum.d.ts +16 -0
- package/dist/models/endpoint-event-type-enum.js +20 -0
- package/dist/models/endpoint-event.d.ts +45 -0
- package/dist/models/endpoint-event.js +15 -0
- package/dist/models/endpoint-response.d.ts +19 -0
- package/dist/models/endpoint-response.js +15 -0
- package/dist/models/endpoint-status-enum.d.ts +16 -0
- package/dist/models/endpoint-status-enum.js +20 -0
- package/dist/models/endpoint-type-enum.d.ts +15 -0
- package/dist/models/endpoint-type-enum.js +19 -0
- package/dist/models/endpoint.d.ts +38 -0
- package/dist/models/endpoint.js +15 -0
- package/dist/models/endpoints.d.ts +33 -0
- package/dist/models/endpoints.js +15 -0
- package/dist/models/inbound-callback-message.d.ts +48 -2
- package/dist/models/inbound-callback-type-enum.d.ts +1 -1
- package/dist/models/inbound-callback-type-enum.js +1 -1
- package/dist/models/inbound-callback.d.ts +2 -2
- package/dist/models/index.d.ts +23 -2
- package/dist/models/index.js +23 -2
- package/dist/models/list-endpoints-response.d.ts +21 -0
- package/dist/models/list-endpoints-response.js +15 -0
- package/dist/models/lookup-result.d.ts +1 -1
- package/dist/models/machine-detection-configuration.d.ts +1 -1
- package/dist/models/message-request.d.ts +1 -1
- package/dist/models/mms-message-content-file.d.ts +1 -1
- package/dist/models/multi-channel-action-calendar-event.d.ts +28 -2
- package/dist/models/multi-channel-channel-list-mmsobject.d.ts +14 -2
- package/dist/models/multi-channel-channel-list-mmsresponse-object.d.ts +18 -3
- package/dist/models/multi-channel-channel-list-rbmobject.d.ts +14 -2
- package/dist/models/multi-channel-channel-list-rbmresponse-object.d.ts +18 -3
- package/dist/models/multi-channel-channel-list-smsobject.d.ts +14 -2
- package/dist/models/multi-channel-channel-list-smsresponse-object.d.ts +18 -3
- package/dist/models/page.d.ts +29 -0
- package/dist/models/page.js +15 -0
- package/dist/models/rbm-action-dial.d.ts +16 -2
- package/dist/models/rbm-action-open-url.d.ts +20 -2
- package/dist/models/rbm-action-view-location.d.ts +24 -2
- package/dist/models/rbm-card-content-media.d.ts +12 -2
- package/dist/models/rbm-open-url-enum.d.ts +1 -1
- package/dist/models/rbm-open-url-enum.js +1 -1
- package/dist/models/rbm-web-view-enum.d.ts +1 -1
- package/dist/models/rbm-web-view-enum.js +1 -1
- package/dist/models/sip-connection-metadata.d.ts +27 -0
- package/dist/models/sip-connection-metadata.js +15 -0
- package/dist/models/sip-credentials.d.ts +21 -0
- package/dist/models/sip-credentials.js +15 -0
- package/dist/models/status-callback.d.ts +1 -1
- package/dist/models/tfv-submission-info.d.ts +5 -3
- package/dist/models/update-call.d.ts +1 -1
- package/dist/models/verification-request.d.ts +5 -3
- package/dist/models/verification-update-request.d.ts +5 -3
- package/dist/models/{model-error.d.ts → webhook-subscription-error.d.ts} +1 -1
- package/dist/models/webhook-subscription-error.js +15 -0
- package/dist/models/webhook-subscriptions-list-body.d.ts +2 -2
- package/docs/BrtcError.md +28 -0
- package/docs/BrtcErrorResponse.md +24 -0
- package/docs/BrtcErrorSource.md +26 -0
- package/docs/BrtcLink.md +24 -0
- package/docs/BusinessEntityTypeEnum.md +1 -1
- package/docs/BusinessRegistrationTypeEnum.md +1 -1
- package/docs/Callback.md +2 -2
- package/docs/CreateCall.md +2 -2
- package/docs/CreateEndpointRequestBase.md +28 -0
- package/docs/CreateEndpointResponse.md +24 -0
- package/docs/CreateEndpointResponseData.md +34 -0
- package/docs/CreateWebRtcConnectionRequest.md +30 -0
- package/docs/Device.md +26 -0
- package/docs/DeviceStatusEnum.md +10 -0
- package/docs/Endpoint.md +32 -0
- package/docs/EndpointDirectionEnum.md +12 -0
- package/docs/EndpointEvent.md +37 -0
- package/docs/EndpointEventTypeEnum.md +10 -0
- package/docs/EndpointResponse.md +24 -0
- package/docs/EndpointStatusEnum.md +10 -0
- package/docs/EndpointTypeEnum.md +8 -0
- package/docs/Endpoints.md +30 -0
- package/docs/EndpointsApi.md +334 -0
- package/docs/InboundCallback.md +2 -2
- package/docs/InboundCallbackTypeEnum.md +1 -1
- package/docs/ListEndpointsResponse.md +26 -0
- package/docs/LookupResult.md +1 -1
- package/docs/MachineDetectionConfiguration.md +1 -1
- package/docs/MediaApi.md +1 -1
- package/docs/MessageRequest.md +1 -1
- package/docs/MmsMessageContentFile.md +1 -1
- package/docs/Page.md +26 -0
- package/docs/RbmOpenUrlEnum.md +1 -1
- package/docs/RbmWebViewEnum.md +1 -1
- package/docs/SipConnectionMetadata.md +26 -0
- package/docs/SipCredentials.md +22 -0
- package/docs/StatusCallback.md +1 -1
- package/docs/TfvSubmissionInfo.md +2 -2
- package/docs/UpdateCall.md +1 -1
- package/docs/VerificationRequest.md +2 -2
- package/docs/VerificationUpdateRequest.md +2 -2
- package/docs/{Error.md → WebhookSubscriptionError.md} +3 -3
- package/docs/WebhookSubscriptionsListBody.md +1 -1
- package/models/brtc-error-response.ts +28 -0
- package/models/brtc-error-source.ts +35 -0
- package/models/brtc-error.ts +39 -0
- package/models/brtc-link.ts +31 -0
- package/models/business-entity-type-enum.ts +1 -1
- package/models/business-registration-type-enum.ts +1 -1
- package/models/bxml/verbs/Connect.ts +33 -0
- package/models/bxml/verbs/Endpoint.ts +19 -0
- package/models/bxml/verbs/index.ts +2 -0
- package/models/create-call.ts +2 -2
- package/models/create-endpoint-request-base.ts +41 -0
- package/models/create-endpoint-response-data.ts +58 -0
- package/models/create-endpoint-response.ts +31 -0
- package/models/create-web-rtc-connection-request.ts +47 -0
- package/models/device-status-enum.ts +26 -0
- package/models/device.ts +37 -0
- package/models/endpoint-direction-enum.ts +27 -0
- package/models/endpoint-event-type-enum.ts +26 -0
- package/models/endpoint-event.ts +63 -0
- package/models/endpoint-response.ts +31 -0
- package/models/endpoint-status-enum.ts +26 -0
- package/models/endpoint-type-enum.ts +25 -0
- package/models/endpoint.ts +54 -0
- package/models/endpoints.ts +45 -0
- package/models/inbound-callback-message.ts +42 -1
- package/models/inbound-callback-type-enum.ts +1 -1
- package/models/inbound-callback.ts +2 -2
- package/models/index.ts +23 -2
- package/models/list-endpoints-response.ts +35 -0
- package/models/lookup-result.ts +1 -1
- package/models/machine-detection-configuration.ts +1 -1
- package/models/message-request.ts +1 -1
- package/models/mms-message-content-file.ts +1 -1
- package/models/multi-channel-action-calendar-event.ts +27 -1
- package/models/multi-channel-channel-list-mmsobject.ts +12 -1
- package/models/multi-channel-channel-list-mmsresponse-object.ts +16 -1
- package/models/multi-channel-channel-list-rbmobject.ts +12 -1
- package/models/multi-channel-channel-list-rbmresponse-object.ts +16 -1
- package/models/multi-channel-channel-list-smsobject.ts +12 -1
- package/models/multi-channel-channel-list-smsresponse-object.ts +16 -1
- package/models/page.ts +35 -0
- package/models/rbm-action-dial.ts +15 -1
- package/models/rbm-action-open-url.ts +17 -1
- package/models/rbm-action-view-location.ts +23 -1
- package/models/rbm-card-content-media.ts +11 -1
- package/models/rbm-open-url-enum.ts +1 -1
- package/models/rbm-web-view-enum.ts +1 -1
- package/models/sip-connection-metadata.ts +35 -0
- package/models/sip-credentials.ts +27 -0
- package/models/status-callback.ts +1 -1
- package/models/tfv-submission-info.ts +5 -5
- package/models/update-call.ts +1 -1
- package/models/verification-request.ts +5 -5
- package/models/verification-update-request.ts +5 -5
- package/models/{model-error.ts → webhook-subscription-error.ts} +1 -1
- package/models/webhook-subscriptions-list-body.ts +3 -3
- package/package.json +1 -1
- package/tests/smoke/endpoints-api.test.ts +141 -0
- package/tests/smoke/phone-number-lookup-api.test.ts +2 -10
- package/tests/unit/api/endpoints-api.test.ts +106 -0
- package/tests/unit/api/toll-free-verification-api.test.ts +1 -1
- package/tests/unit/models/brtc-error-response.test.ts +50 -0
- package/tests/unit/models/brtc-error-source.test.ts +17 -0
- package/tests/unit/models/brtc-error.test.ts +30 -0
- package/tests/unit/models/brtc-link.test.ts +15 -0
- package/tests/unit/models/bxml/verbs/Connect.test.ts +47 -0
- package/tests/unit/models/bxml/verbs/Endpoint.test.ts +12 -0
- package/tests/unit/models/create-endpoint-request-base.test.ts +21 -0
- package/tests/unit/models/create-endpoint-response-data.test.ts +44 -0
- package/tests/unit/models/create-endpoint-response.test.ts +86 -0
- package/tests/unit/models/create-web-rtc-connection-request.test.ts +21 -0
- package/tests/unit/models/device-status-enum.test.ts +12 -0
- package/tests/unit/models/device.test.ts +19 -0
- package/tests/unit/models/endpoint-direction-enum.test.ts +14 -0
- package/tests/unit/models/endpoint-event-type-enum.test.ts +12 -0
- package/tests/unit/models/endpoint-event.test.ts +44 -0
- package/tests/unit/models/endpoint-response.test.ts +84 -0
- package/tests/unit/models/endpoint-status-enum.test.ts +12 -0
- package/tests/unit/models/endpoint-type-enum.test.ts +10 -0
- package/tests/unit/models/endpoint.test.ts +50 -0
- package/tests/unit/models/endpoints.test.ts +25 -0
- package/tests/unit/models/list-endpoints-response.test.ts +94 -0
- package/tests/unit/models/page.test.ts +17 -0
- package/tests/unit/models/sip-connection-metadata.test.ts +25 -0
- package/tests/unit/models/sip-credentials.test.ts +13 -0
- package/dist/models/business-registration-issuing-country-enum.d.ts +0 -34
- package/dist/models/business-registration-issuing-country-enum.js +0 -38
- package/docs/BusinessRegistrationIssuingCountryEnum.md +0 -41
- package/models/business-registration-issuing-country-enum.ts +0 -44
- package/tests/unit/models/business-registration-issuing-country-enum.test.ts +0 -23
- /package/dist/models/{model-error.js → brtc-error-response.js} +0 -0
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Bandwidth
|
|
5
|
+
* Bandwidth\'s Communication APIs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: letstalk@bandwidth.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { BrtcErrorResponse } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { CreateEndpointResponse } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { CreateWebRtcConnectionRequest } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { EndpointResponse } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { EndpointStatusEnum } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { EndpointTypeEnum } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import type { ListEndpointsResponse } from '../models';
|
|
38
|
+
/**
|
|
39
|
+
* EndpointsApi - axios parameter creator
|
|
40
|
+
*/
|
|
41
|
+
export const EndpointsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
|
+
return {
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new Endpoint for the specified account.
|
|
45
|
+
* @summary Create Endpoint
|
|
46
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
47
|
+
* @param {CreateWebRtcConnectionRequest} body
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
*/
|
|
51
|
+
createEndpoint: async (accountId: string, body: CreateWebRtcConnectionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
52
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
53
|
+
assertParamExists('createEndpoint', 'accountId', accountId)
|
|
54
|
+
// verify required parameter 'body' is not null or undefined
|
|
55
|
+
assertParamExists('createEndpoint', 'body', body)
|
|
56
|
+
const localVarPath = `/accounts/{accountId}/endpoints`
|
|
57
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
58
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
60
|
+
let baseOptions;
|
|
61
|
+
if (configuration) {
|
|
62
|
+
baseOptions = configuration.baseOptions;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
66
|
+
const localVarHeaderParameter = {} as any;
|
|
67
|
+
const localVarQueryParameter = {} as any;
|
|
68
|
+
|
|
69
|
+
// authentication Basic required
|
|
70
|
+
// http basic authentication required
|
|
71
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
72
|
+
|
|
73
|
+
// authentication OAuth2 required
|
|
74
|
+
// oauth required
|
|
75
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
80
|
+
|
|
81
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
84
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
url: toPathString(localVarUrlObj),
|
|
88
|
+
options: localVarRequestOptions,
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* Deletes the specified endpoint. If the endpoint is actively streaming media, the media stream will be terminated.
|
|
93
|
+
* @summary Delete Endpoint
|
|
94
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
95
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
deleteEndpoint: async (accountId: string, endpointId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
100
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
101
|
+
assertParamExists('deleteEndpoint', 'accountId', accountId)
|
|
102
|
+
// verify required parameter 'endpointId' is not null or undefined
|
|
103
|
+
assertParamExists('deleteEndpoint', 'endpointId', endpointId)
|
|
104
|
+
const localVarPath = `/accounts/{accountId}/endpoints/{endpointId}`
|
|
105
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
|
|
106
|
+
.replace(`{${"endpointId"}}`, encodeURIComponent(String(endpointId)));
|
|
107
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
109
|
+
let baseOptions;
|
|
110
|
+
if (configuration) {
|
|
111
|
+
baseOptions = configuration.baseOptions;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
115
|
+
const localVarHeaderParameter = {} as any;
|
|
116
|
+
const localVarQueryParameter = {} as any;
|
|
117
|
+
|
|
118
|
+
// authentication Basic required
|
|
119
|
+
// http basic authentication required
|
|
120
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
121
|
+
|
|
122
|
+
// authentication OAuth2 required
|
|
123
|
+
// oauth required
|
|
124
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
url: toPathString(localVarUrlObj),
|
|
134
|
+
options: localVarRequestOptions,
|
|
135
|
+
};
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
* Returns information about the specified endpoint.
|
|
139
|
+
* @summary Get Endpoint
|
|
140
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
141
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
142
|
+
* @param {*} [options] Override http request option.
|
|
143
|
+
* @throws {RequiredError}
|
|
144
|
+
*/
|
|
145
|
+
getEndpoint: async (accountId: string, endpointId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
147
|
+
assertParamExists('getEndpoint', 'accountId', accountId)
|
|
148
|
+
// verify required parameter 'endpointId' is not null or undefined
|
|
149
|
+
assertParamExists('getEndpoint', 'endpointId', endpointId)
|
|
150
|
+
const localVarPath = `/accounts/{accountId}/endpoints/{endpointId}`
|
|
151
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
|
|
152
|
+
.replace(`{${"endpointId"}}`, encodeURIComponent(String(endpointId)));
|
|
153
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
|
+
let baseOptions;
|
|
156
|
+
if (configuration) {
|
|
157
|
+
baseOptions = configuration.baseOptions;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
161
|
+
const localVarHeaderParameter = {} as any;
|
|
162
|
+
const localVarQueryParameter = {} as any;
|
|
163
|
+
|
|
164
|
+
// authentication Basic required
|
|
165
|
+
// http basic authentication required
|
|
166
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
167
|
+
|
|
168
|
+
// authentication OAuth2 required
|
|
169
|
+
// oauth required
|
|
170
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
177
|
+
|
|
178
|
+
return {
|
|
179
|
+
url: toPathString(localVarUrlObj),
|
|
180
|
+
options: localVarRequestOptions,
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
/**
|
|
184
|
+
* Returns a list of endpoints associated with the specified account.
|
|
185
|
+
* @summary List Endpoints
|
|
186
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
187
|
+
* @param {EndpointTypeEnum} [type] The type of endpoint.
|
|
188
|
+
* @param {EndpointStatusEnum} [status] The status of the endpoint.
|
|
189
|
+
* @param {string} [afterCursor] The cursor to use for pagination. This is the value of the `next` link in the previous response.
|
|
190
|
+
* @param {number} [limit] The maximum number of endpoints to return in the response.
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
listEndpoints: async (accountId: string, type?: EndpointTypeEnum, status?: EndpointStatusEnum, afterCursor?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
195
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
196
|
+
assertParamExists('listEndpoints', 'accountId', accountId)
|
|
197
|
+
const localVarPath = `/accounts/{accountId}/endpoints`
|
|
198
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
199
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
201
|
+
let baseOptions;
|
|
202
|
+
if (configuration) {
|
|
203
|
+
baseOptions = configuration.baseOptions;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
207
|
+
const localVarHeaderParameter = {} as any;
|
|
208
|
+
const localVarQueryParameter = {} as any;
|
|
209
|
+
|
|
210
|
+
// authentication Basic required
|
|
211
|
+
// http basic authentication required
|
|
212
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
213
|
+
|
|
214
|
+
// authentication OAuth2 required
|
|
215
|
+
// oauth required
|
|
216
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
217
|
+
|
|
218
|
+
if (type !== undefined) {
|
|
219
|
+
localVarQueryParameter['type'] = type;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (status !== undefined) {
|
|
223
|
+
localVarQueryParameter['status'] = status;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (afterCursor !== undefined) {
|
|
227
|
+
localVarQueryParameter['afterCursor'] = afterCursor;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (limit !== undefined) {
|
|
231
|
+
localVarQueryParameter['limit'] = limit;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
237
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
238
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
239
|
+
|
|
240
|
+
return {
|
|
241
|
+
url: toPathString(localVarUrlObj),
|
|
242
|
+
options: localVarRequestOptions,
|
|
243
|
+
};
|
|
244
|
+
},
|
|
245
|
+
/**
|
|
246
|
+
* Updates the BXML for the specified endpoint.
|
|
247
|
+
* @summary Update Endpoint BXML
|
|
248
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
249
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
250
|
+
* @param {string} body
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
updateEndpointBxml: async (accountId: string, endpointId: string, body: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
255
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
256
|
+
assertParamExists('updateEndpointBxml', 'accountId', accountId)
|
|
257
|
+
// verify required parameter 'endpointId' is not null or undefined
|
|
258
|
+
assertParamExists('updateEndpointBxml', 'endpointId', endpointId)
|
|
259
|
+
// verify required parameter 'body' is not null or undefined
|
|
260
|
+
assertParamExists('updateEndpointBxml', 'body', body)
|
|
261
|
+
const localVarPath = `/accounts/{accountId}/endpoints/{endpointId}/bxml`
|
|
262
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
|
|
263
|
+
.replace(`{${"endpointId"}}`, encodeURIComponent(String(endpointId)));
|
|
264
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
265
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
266
|
+
let baseOptions;
|
|
267
|
+
if (configuration) {
|
|
268
|
+
baseOptions = configuration.baseOptions;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
272
|
+
const localVarHeaderParameter = {} as any;
|
|
273
|
+
const localVarQueryParameter = {} as any;
|
|
274
|
+
|
|
275
|
+
// authentication Basic required
|
|
276
|
+
// http basic authentication required
|
|
277
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
278
|
+
|
|
279
|
+
// authentication OAuth2 required
|
|
280
|
+
// oauth required
|
|
281
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
286
|
+
|
|
287
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
288
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
289
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
290
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
291
|
+
|
|
292
|
+
return {
|
|
293
|
+
url: toPathString(localVarUrlObj),
|
|
294
|
+
options: localVarRequestOptions,
|
|
295
|
+
};
|
|
296
|
+
},
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* EndpointsApi - functional programming interface
|
|
302
|
+
*/
|
|
303
|
+
export const EndpointsApiFp = function(configuration?: Configuration) {
|
|
304
|
+
const localVarAxiosParamCreator = EndpointsApiAxiosParamCreator(configuration)
|
|
305
|
+
return {
|
|
306
|
+
/**
|
|
307
|
+
* Creates a new Endpoint for the specified account.
|
|
308
|
+
* @summary Create Endpoint
|
|
309
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
310
|
+
* @param {CreateWebRtcConnectionRequest} body
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
async createEndpoint(accountId: string, body: CreateWebRtcConnectionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEndpointResponse>> {
|
|
315
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEndpoint(accountId, body, options);
|
|
316
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
317
|
+
const localVarOperationServerBasePath = operationServerMap['EndpointsApi.createEndpoint']?.[localVarOperationServerIndex]?.url;
|
|
318
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
* Deletes the specified endpoint. If the endpoint is actively streaming media, the media stream will be terminated.
|
|
322
|
+
* @summary Delete Endpoint
|
|
323
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
324
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
async deleteEndpoint(accountId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEndpoint(accountId, endpointId, options);
|
|
330
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
331
|
+
const localVarOperationServerBasePath = operationServerMap['EndpointsApi.deleteEndpoint']?.[localVarOperationServerIndex]?.url;
|
|
332
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
333
|
+
},
|
|
334
|
+
/**
|
|
335
|
+
* Returns information about the specified endpoint.
|
|
336
|
+
* @summary Get Endpoint
|
|
337
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
338
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
async getEndpoint(accountId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EndpointResponse>> {
|
|
343
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEndpoint(accountId, endpointId, options);
|
|
344
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
345
|
+
const localVarOperationServerBasePath = operationServerMap['EndpointsApi.getEndpoint']?.[localVarOperationServerIndex]?.url;
|
|
346
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
347
|
+
},
|
|
348
|
+
/**
|
|
349
|
+
* Returns a list of endpoints associated with the specified account.
|
|
350
|
+
* @summary List Endpoints
|
|
351
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
352
|
+
* @param {EndpointTypeEnum} [type] The type of endpoint.
|
|
353
|
+
* @param {EndpointStatusEnum} [status] The status of the endpoint.
|
|
354
|
+
* @param {string} [afterCursor] The cursor to use for pagination. This is the value of the `next` link in the previous response.
|
|
355
|
+
* @param {number} [limit] The maximum number of endpoints to return in the response.
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
*/
|
|
359
|
+
async listEndpoints(accountId: string, type?: EndpointTypeEnum, status?: EndpointStatusEnum, afterCursor?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEndpointsResponse>> {
|
|
360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listEndpoints(accountId, type, status, afterCursor, limit, options);
|
|
361
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
362
|
+
const localVarOperationServerBasePath = operationServerMap['EndpointsApi.listEndpoints']?.[localVarOperationServerIndex]?.url;
|
|
363
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
364
|
+
},
|
|
365
|
+
/**
|
|
366
|
+
* Updates the BXML for the specified endpoint.
|
|
367
|
+
* @summary Update Endpoint BXML
|
|
368
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
369
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
370
|
+
* @param {string} body
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
async updateEndpointBxml(accountId: string, endpointId: string, body: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateEndpointBxml(accountId, endpointId, body, options);
|
|
376
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
377
|
+
const localVarOperationServerBasePath = operationServerMap['EndpointsApi.updateEndpointBxml']?.[localVarOperationServerIndex]?.url;
|
|
378
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
379
|
+
},
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* EndpointsApi - factory interface
|
|
385
|
+
*/
|
|
386
|
+
export const EndpointsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
387
|
+
const localVarFp = EndpointsApiFp(configuration)
|
|
388
|
+
return {
|
|
389
|
+
/**
|
|
390
|
+
* Creates a new Endpoint for the specified account.
|
|
391
|
+
* @summary Create Endpoint
|
|
392
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
393
|
+
* @param {CreateWebRtcConnectionRequest} body
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
*/
|
|
397
|
+
createEndpoint(accountId: string, body: CreateWebRtcConnectionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEndpointResponse> {
|
|
398
|
+
return localVarFp.createEndpoint(accountId, body, options).then((request) => request(axios, basePath));
|
|
399
|
+
},
|
|
400
|
+
/**
|
|
401
|
+
* Deletes the specified endpoint. If the endpoint is actively streaming media, the media stream will be terminated.
|
|
402
|
+
* @summary Delete Endpoint
|
|
403
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
404
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
405
|
+
* @param {*} [options] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
*/
|
|
408
|
+
deleteEndpoint(accountId: string, endpointId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
409
|
+
return localVarFp.deleteEndpoint(accountId, endpointId, options).then((request) => request(axios, basePath));
|
|
410
|
+
},
|
|
411
|
+
/**
|
|
412
|
+
* Returns information about the specified endpoint.
|
|
413
|
+
* @summary Get Endpoint
|
|
414
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
415
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
*/
|
|
419
|
+
getEndpoint(accountId: string, endpointId: string, options?: RawAxiosRequestConfig): AxiosPromise<EndpointResponse> {
|
|
420
|
+
return localVarFp.getEndpoint(accountId, endpointId, options).then((request) => request(axios, basePath));
|
|
421
|
+
},
|
|
422
|
+
/**
|
|
423
|
+
* Returns a list of endpoints associated with the specified account.
|
|
424
|
+
* @summary List Endpoints
|
|
425
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
426
|
+
* @param {EndpointTypeEnum} [type] The type of endpoint.
|
|
427
|
+
* @param {EndpointStatusEnum} [status] The status of the endpoint.
|
|
428
|
+
* @param {string} [afterCursor] The cursor to use for pagination. This is the value of the `next` link in the previous response.
|
|
429
|
+
* @param {number} [limit] The maximum number of endpoints to return in the response.
|
|
430
|
+
* @param {*} [options] Override http request option.
|
|
431
|
+
* @throws {RequiredError}
|
|
432
|
+
*/
|
|
433
|
+
listEndpoints(accountId: string, type?: EndpointTypeEnum, status?: EndpointStatusEnum, afterCursor?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ListEndpointsResponse> {
|
|
434
|
+
return localVarFp.listEndpoints(accountId, type, status, afterCursor, limit, options).then((request) => request(axios, basePath));
|
|
435
|
+
},
|
|
436
|
+
/**
|
|
437
|
+
* Updates the BXML for the specified endpoint.
|
|
438
|
+
* @summary Update Endpoint BXML
|
|
439
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
440
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
441
|
+
* @param {string} body
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
updateEndpointBxml(accountId: string, endpointId: string, body: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
446
|
+
return localVarFp.updateEndpointBxml(accountId, endpointId, body, options).then((request) => request(axios, basePath));
|
|
447
|
+
},
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* EndpointsApi - object-oriented interface
|
|
453
|
+
*/
|
|
454
|
+
export class EndpointsApi extends BaseAPI {
|
|
455
|
+
/**
|
|
456
|
+
* Creates a new Endpoint for the specified account.
|
|
457
|
+
* @summary Create Endpoint
|
|
458
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
459
|
+
* @param {CreateWebRtcConnectionRequest} body
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
*/
|
|
463
|
+
public createEndpoint(accountId: string, body: CreateWebRtcConnectionRequest, options?: RawAxiosRequestConfig) {
|
|
464
|
+
return EndpointsApiFp(this.configuration).createEndpoint(accountId, body, options).then((request) => request(this.axios, this.basePath));
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Deletes the specified endpoint. If the endpoint is actively streaming media, the media stream will be terminated.
|
|
469
|
+
* @summary Delete Endpoint
|
|
470
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
471
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
472
|
+
* @param {*} [options] Override http request option.
|
|
473
|
+
* @throws {RequiredError}
|
|
474
|
+
*/
|
|
475
|
+
public deleteEndpoint(accountId: string, endpointId: string, options?: RawAxiosRequestConfig) {
|
|
476
|
+
return EndpointsApiFp(this.configuration).deleteEndpoint(accountId, endpointId, options).then((request) => request(this.axios, this.basePath));
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Returns information about the specified endpoint.
|
|
481
|
+
* @summary Get Endpoint
|
|
482
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
483
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
484
|
+
* @param {*} [options] Override http request option.
|
|
485
|
+
* @throws {RequiredError}
|
|
486
|
+
*/
|
|
487
|
+
public getEndpoint(accountId: string, endpointId: string, options?: RawAxiosRequestConfig) {
|
|
488
|
+
return EndpointsApiFp(this.configuration).getEndpoint(accountId, endpointId, options).then((request) => request(this.axios, this.basePath));
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Returns a list of endpoints associated with the specified account.
|
|
493
|
+
* @summary List Endpoints
|
|
494
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
495
|
+
* @param {EndpointTypeEnum} [type] The type of endpoint.
|
|
496
|
+
* @param {EndpointStatusEnum} [status] The status of the endpoint.
|
|
497
|
+
* @param {string} [afterCursor] The cursor to use for pagination. This is the value of the `next` link in the previous response.
|
|
498
|
+
* @param {number} [limit] The maximum number of endpoints to return in the response.
|
|
499
|
+
* @param {*} [options] Override http request option.
|
|
500
|
+
* @throws {RequiredError}
|
|
501
|
+
*/
|
|
502
|
+
public listEndpoints(accountId: string, type?: EndpointTypeEnum, status?: EndpointStatusEnum, afterCursor?: string, limit?: number, options?: RawAxiosRequestConfig) {
|
|
503
|
+
return EndpointsApiFp(this.configuration).listEndpoints(accountId, type, status, afterCursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Updates the BXML for the specified endpoint.
|
|
508
|
+
* @summary Update Endpoint BXML
|
|
509
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
510
|
+
* @param {string} endpointId BRTC Endpoint ID.
|
|
511
|
+
* @param {string} body
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
public updateEndpointBxml(accountId: string, endpointId: string, body: string, options?: RawAxiosRequestConfig) {
|
|
516
|
+
return EndpointsApiFp(this.configuration).updateEndpointBxml(accountId, endpointId, body, options).then((request) => request(this.axios, this.basePath));
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
package/api/media-api.ts
CHANGED
|
@@ -169,7 +169,7 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
169
169
|
};
|
|
170
170
|
},
|
|
171
171
|
/**
|
|
172
|
-
* 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 [
|
|
172
|
+
* 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).
|
|
173
173
|
* @summary Upload Media
|
|
174
174
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
175
175
|
* @param {string} mediaId Media ID to retrieve.
|
|
@@ -280,7 +280,7 @@ export const MediaApiFp = function(configuration?: Configuration) {
|
|
|
280
280
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
281
281
|
},
|
|
282
282
|
/**
|
|
283
|
-
* 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 [
|
|
283
|
+
* 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).
|
|
284
284
|
* @summary Upload Media
|
|
285
285
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
286
286
|
* @param {string} mediaId Media ID to retrieve.
|
|
@@ -339,7 +339,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
|
|
|
339
339
|
return localVarFp.listMedia(accountId, continuationToken, options).then((request) => request(axios, basePath));
|
|
340
340
|
},
|
|
341
341
|
/**
|
|
342
|
-
* 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 [
|
|
342
|
+
* 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).
|
|
343
343
|
* @summary Upload Media
|
|
344
344
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
345
345
|
* @param {string} mediaId Media ID to retrieve.
|
|
@@ -396,7 +396,7 @@ export class MediaApi extends BaseAPI {
|
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
|
-
* 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 [
|
|
399
|
+
* 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).
|
|
400
400
|
* @summary Upload Media
|
|
401
401
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
402
402
|
* @param {string} mediaId Media ID to retrieve.
|