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
package/dist/api/media-api.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
45
45
|
*/
|
|
46
46
|
listMedia: (accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
|
-
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [
|
|
48
|
+
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
49
49
|
* @summary Upload Media
|
|
50
50
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
51
51
|
* @param {string} mediaId Media ID to retrieve.
|
|
@@ -89,7 +89,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
|
|
|
89
89
|
*/
|
|
90
90
|
listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Media>>>;
|
|
91
91
|
/**
|
|
92
|
-
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [
|
|
92
|
+
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
93
93
|
* @summary Upload Media
|
|
94
94
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
95
95
|
* @param {string} mediaId Media ID to retrieve.
|
|
@@ -133,7 +133,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
|
|
|
133
133
|
*/
|
|
134
134
|
listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Media>>;
|
|
135
135
|
/**
|
|
136
|
-
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [
|
|
136
|
+
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
137
137
|
* @summary Upload Media
|
|
138
138
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
139
139
|
* @param {string} mediaId Media ID to retrieve.
|
|
@@ -177,7 +177,7 @@ export declare class MediaApi extends BaseAPI {
|
|
|
177
177
|
*/
|
|
178
178
|
listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Media[], any, {}>>;
|
|
179
179
|
/**
|
|
180
|
-
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [
|
|
180
|
+
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
181
181
|
* @summary Upload Media
|
|
182
182
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
183
183
|
* @param {string} mediaId Media ID to retrieve.
|
package/dist/api/media-api.js
CHANGED
|
@@ -260,7 +260,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
260
260
|
});
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
|
-
* 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 [
|
|
263
|
+
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
264
264
|
* @summary Upload Media
|
|
265
265
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
266
266
|
* @param {string} mediaId Media ID to retrieve.
|
|
@@ -408,7 +408,7 @@ var MediaApiFp = function (configuration) {
|
|
|
408
408
|
});
|
|
409
409
|
},
|
|
410
410
|
/**
|
|
411
|
-
* 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 [
|
|
411
|
+
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
412
412
|
* @summary Upload Media
|
|
413
413
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
414
414
|
* @param {string} mediaId Media ID to retrieve.
|
|
@@ -477,7 +477,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
|
|
|
477
477
|
return localVarFp.listMedia(accountId, continuationToken, options).then(function (request) { return request(axios, basePath); });
|
|
478
478
|
},
|
|
479
479
|
/**
|
|
480
|
-
* 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 [
|
|
480
|
+
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
481
481
|
* @summary Upload Media
|
|
482
482
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
483
483
|
* @param {string} mediaId Media ID to retrieve.
|
|
@@ -538,7 +538,7 @@ var MediaApi = /** @class */ (function (_super) {
|
|
|
538
538
|
return (0, exports.MediaApiFp)(this.configuration).listMedia(accountId, continuationToken, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
539
539
|
};
|
|
540
540
|
/**
|
|
541
|
-
* 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 [
|
|
541
|
+
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
542
542
|
* @summary Upload Media
|
|
543
543
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
544
544
|
* @param {string} mediaId Media ID to retrieve.
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -29,6 +29,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/calls-api"), exports);
|
|
31
31
|
__exportStar(require("./api/conferences-api"), exports);
|
|
32
|
+
__exportStar(require("./api/endpoints-api"), exports);
|
|
32
33
|
__exportStar(require("./api/mfaapi"), exports);
|
|
33
34
|
__exportStar(require("./api/media-api"), exports);
|
|
34
35
|
__exportStar(require("./api/messages-api"), exports);
|
package/dist/base.js
CHANGED
|
@@ -149,6 +149,36 @@ exports.operationServerMap = {
|
|
|
149
149
|
description: "Production",
|
|
150
150
|
}
|
|
151
151
|
],
|
|
152
|
+
"EndpointsApi.createEndpoint": [
|
|
153
|
+
{
|
|
154
|
+
url: "https://api.bandwidth.com/v2",
|
|
155
|
+
description: "Production",
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"EndpointsApi.deleteEndpoint": [
|
|
159
|
+
{
|
|
160
|
+
url: "https://api.bandwidth.com/v2",
|
|
161
|
+
description: "Production",
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"EndpointsApi.getEndpoint": [
|
|
165
|
+
{
|
|
166
|
+
url: "https://api.bandwidth.com/v2",
|
|
167
|
+
description: "Production",
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"EndpointsApi.listEndpoints": [
|
|
171
|
+
{
|
|
172
|
+
url: "https://api.bandwidth.com/v2",
|
|
173
|
+
description: "Production",
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"EndpointsApi.updateEndpointBxml": [
|
|
177
|
+
{
|
|
178
|
+
url: "https://api.bandwidth.com/v2",
|
|
179
|
+
description: "Production",
|
|
180
|
+
}
|
|
181
|
+
],
|
|
152
182
|
"MFAApi.generateMessagingCode": [
|
|
153
183
|
{
|
|
154
184
|
url: "https://mfa.bandwidth.com/api/v1",
|
package/dist/configuration.js
CHANGED
|
@@ -103,7 +103,7 @@ var Configuration = /** @class */ (function () {
|
|
|
103
103
|
this.awsv4 = param.awsv4;
|
|
104
104
|
this.basePath = param.basePath;
|
|
105
105
|
this.serverIndex = param.serverIndex;
|
|
106
|
-
this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign(__assign({}, (_b = param.baseOptions) === null || _b === void 0 ? void 0 : _b.headers), { 'User-Agent': "OpenAPI-Generator/
|
|
106
|
+
this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign(__assign({}, (_b = param.baseOptions) === null || _b === void 0 ? void 0 : _b.headers), { 'User-Agent': "OpenAPI-Generator/8.1.0/typescript-axios" }) });
|
|
107
107
|
this.formDataCtor = param.formDataCtor;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { BrtcError } from './brtc-error';
|
|
13
|
+
import type { BrtcLink } from './brtc-link';
|
|
14
|
+
export interface BrtcErrorResponse {
|
|
15
|
+
'links': Array<BrtcLink>;
|
|
16
|
+
'data': object | null;
|
|
17
|
+
'errors': Array<BrtcError>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface BrtcErrorSource {
|
|
13
|
+
/**
|
|
14
|
+
* The URI parameter that caused the error.
|
|
15
|
+
*/
|
|
16
|
+
'parameter'?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The request body field that caused the error.
|
|
19
|
+
*/
|
|
20
|
+
'field'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The header that caused the error.
|
|
23
|
+
*/
|
|
24
|
+
'header'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The resource ID or path to the resource (or non-existent resource) causing the error.
|
|
27
|
+
*/
|
|
28
|
+
'reference'?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Bandwidth
|
|
6
|
+
* Bandwidth\'s Communication APIs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: letstalk@bandwidth.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { BrtcErrorSource } from './brtc-error-source';
|
|
13
|
+
export interface BrtcError {
|
|
14
|
+
/**
|
|
15
|
+
* A unique identifier for the error.
|
|
16
|
+
*/
|
|
17
|
+
'id'?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The type of error.
|
|
20
|
+
*/
|
|
21
|
+
'type': string;
|
|
22
|
+
/**
|
|
23
|
+
* A description of the error.
|
|
24
|
+
*/
|
|
25
|
+
'description': string;
|
|
26
|
+
/**
|
|
27
|
+
* A code that uniquely identifies the error.
|
|
28
|
+
*/
|
|
29
|
+
'code'?: string;
|
|
30
|
+
'source'?: BrtcErrorSource;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Bandwidth
|
|
6
|
+
* Bandwidth\'s Communication APIs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: letstalk@bandwidth.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface BrtcLink {
|
|
13
|
+
/**
|
|
14
|
+
* The full URL of the link.
|
|
15
|
+
*/
|
|
16
|
+
'href'?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The relationship of the link to the current resource.
|
|
19
|
+
*/
|
|
20
|
+
'rel'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The HTTP method to use when making the request.
|
|
23
|
+
*/
|
|
24
|
+
'method'?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Bandwidth
|
|
6
|
+
* Bandwidth\'s Communication APIs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: letstalk@bandwidth.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* The type of registered business.
|
|
13
|
+
* The type of registered business. **Note: As of October 19th, 2026 submissions using a value other than `SOLE_PROPRIETOR` must provide a value for `businessRegistrationNumber`, `businessRegistrationType`, and `businessRegistrationIssuingCountry`. Submissions using `SOLE_PROPRIETOR` must _omit_ `businessRegistrationNumber`, `businessRegistrationType`, and `businessRegistrationIssuingCountry`. Failure to adhere to these constraints will result in a 400 Bad Request rejection.**
|
|
14
14
|
*/
|
|
15
15
|
export declare const BusinessEntityTypeEnum: {
|
|
16
16
|
readonly SoleProprietor: "SOLE_PROPRIETOR";
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BusinessEntityTypeEnum = void 0;
|
|
17
17
|
/**
|
|
18
|
-
* The type of registered business.
|
|
18
|
+
* The type of registered business. **Note: As of October 19th, 2026 submissions using a value other than `SOLE_PROPRIETOR` must provide a value for `businessRegistrationNumber`, `businessRegistrationType`, and `businessRegistrationIssuingCountry`. Submissions using `SOLE_PROPRIETOR` must _omit_ `businessRegistrationNumber`, `businessRegistrationType`, and `businessRegistrationIssuingCountry`. Failure to adhere to these constraints will result in a 400 Bad Request rejection.**
|
|
19
19
|
*/
|
|
20
20
|
exports.BusinessEntityTypeEnum = {
|
|
21
21
|
SoleProprietor: 'SOLE_PROPRIETOR',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* The type of business registration number.
|
|
13
|
+
* The type of business registration number. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.**
|
|
14
14
|
*/
|
|
15
15
|
export declare const BusinessRegistrationTypeEnum: {
|
|
16
16
|
readonly Ein: "EIN";
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BusinessRegistrationTypeEnum = void 0;
|
|
17
17
|
/**
|
|
18
|
-
* The type of business registration number.
|
|
18
|
+
* The type of business registration number. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.**
|
|
19
19
|
*/
|
|
20
20
|
exports.BusinessRegistrationTypeEnum = {
|
|
21
21
|
Ein: 'EIN',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { NestableVerb } from '../NestableVerb';
|
|
2
|
+
import { Endpoint } from './Endpoint';
|
|
3
|
+
export interface ConnectAttributes {
|
|
4
|
+
eventCallbackUrl?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @export
|
|
8
|
+
* @class Connect
|
|
9
|
+
* @extends {NestableVerb}
|
|
10
|
+
* Represents a Connect verb
|
|
11
|
+
*/
|
|
12
|
+
export declare class Connect extends NestableVerb {
|
|
13
|
+
attributes: ConnectAttributes;
|
|
14
|
+
/**
|
|
15
|
+
* Creates an instance of Connect
|
|
16
|
+
* @param {ConnectAttributes} attributes The attributes to add to the element
|
|
17
|
+
* @param {Endpoint | Endpoint[]} endpoints The endpoint or endpoints to connect to
|
|
18
|
+
*/
|
|
19
|
+
constructor(attributes?: ConnectAttributes, endpoints?: Endpoint | Endpoint[]);
|
|
20
|
+
/**
|
|
21
|
+
* Add an endpoint or endpoints to the connect
|
|
22
|
+
* @param {Endpoint | Endpoint[]} endpoints The endpoint or endpoints to add
|
|
23
|
+
*/
|
|
24
|
+
addEndpoints(endpoints: Endpoint | Endpoint[]): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Connect = void 0;
|
|
19
|
+
var NestableVerb_1 = require("../NestableVerb");
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
* @class Connect
|
|
23
|
+
* @extends {NestableVerb}
|
|
24
|
+
* Represents a Connect verb
|
|
25
|
+
*/
|
|
26
|
+
var Connect = /** @class */ (function (_super) {
|
|
27
|
+
__extends(Connect, _super);
|
|
28
|
+
/**
|
|
29
|
+
* Creates an instance of Connect
|
|
30
|
+
* @param {ConnectAttributes} attributes The attributes to add to the element
|
|
31
|
+
* @param {Endpoint | Endpoint[]} endpoints The endpoint or endpoints to connect to
|
|
32
|
+
*/
|
|
33
|
+
function Connect(attributes, endpoints) {
|
|
34
|
+
return _super.call(this, 'Connect', undefined, attributes, endpoints) || this;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Add an endpoint or endpoints to the connect
|
|
38
|
+
* @param {Endpoint | Endpoint[]} endpoints The endpoint or endpoints to add
|
|
39
|
+
*/
|
|
40
|
+
Connect.prototype.addEndpoints = function (endpoints) {
|
|
41
|
+
this.nestedVerbs = this.nestedVerbs.concat(endpoints);
|
|
42
|
+
};
|
|
43
|
+
return Connect;
|
|
44
|
+
}(NestableVerb_1.NestableVerb));
|
|
45
|
+
exports.Connect = Connect;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Verb } from '../Verb';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class Endpoint
|
|
5
|
+
* @extends {Verb}
|
|
6
|
+
* Represents an Endpoint verb
|
|
7
|
+
*/
|
|
8
|
+
export declare class Endpoint extends Verb {
|
|
9
|
+
endpointId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Creates an instance of Endpoint
|
|
12
|
+
* @param {string} endpointId The endpoint ID to connect to
|
|
13
|
+
*/
|
|
14
|
+
constructor(endpointId: string);
|
|
15
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Endpoint = void 0;
|
|
19
|
+
var Verb_1 = require("../Verb");
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
* @class Endpoint
|
|
23
|
+
* @extends {Verb}
|
|
24
|
+
* Represents an Endpoint verb
|
|
25
|
+
*/
|
|
26
|
+
var Endpoint = /** @class */ (function (_super) {
|
|
27
|
+
__extends(Endpoint, _super);
|
|
28
|
+
/**
|
|
29
|
+
* Creates an instance of Endpoint
|
|
30
|
+
* @param {string} endpointId The endpoint ID to connect to
|
|
31
|
+
*/
|
|
32
|
+
function Endpoint(endpointId) {
|
|
33
|
+
return _super.call(this, 'Endpoint', endpointId) || this;
|
|
34
|
+
}
|
|
35
|
+
return Endpoint;
|
|
36
|
+
}(Verb_1.Verb));
|
|
37
|
+
exports.Endpoint = Endpoint;
|
|
@@ -16,7 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Bridge"), exports);
|
|
18
18
|
__exportStar(require("./Conference"), exports);
|
|
19
|
+
__exportStar(require("./Connect"), exports);
|
|
19
20
|
__exportStar(require("./CustomParam"), exports);
|
|
21
|
+
__exportStar(require("./Endpoint"), exports);
|
|
20
22
|
__exportStar(require("./Forward"), exports);
|
|
21
23
|
__exportStar(require("./Gather"), exports);
|
|
22
24
|
__exportStar(require("./Hangup"), exports);
|
|
@@ -25,7 +25,7 @@ export interface CreateCall {
|
|
|
25
25
|
*/
|
|
26
26
|
'privacy'?: boolean | null;
|
|
27
27
|
/**
|
|
28
|
-
* The caller display name to use when the call is created.
|
|
28
|
+
* The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`.
|
|
29
29
|
*/
|
|
30
30
|
'displayName'?: string | null;
|
|
31
31
|
/**
|
|
@@ -81,7 +81,7 @@ export interface CreateCall {
|
|
|
81
81
|
*/
|
|
82
82
|
'priority'?: number | null;
|
|
83
83
|
/**
|
|
84
|
-
* A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href=\'/docs/voice/bxml/tag\'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length
|
|
84
|
+
* A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href=\'/docs/voice/bxml/tag\'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 4096 characters.
|
|
85
85
|
*/
|
|
86
86
|
'tag'?: string | null;
|
|
87
87
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { EndpointDirectionEnum } from './endpoint-direction-enum';
|
|
13
|
+
import type { EndpointTypeEnum } from './endpoint-type-enum';
|
|
14
|
+
export interface CreateEndpointRequestBase {
|
|
15
|
+
'type': EndpointTypeEnum;
|
|
16
|
+
'direction': EndpointDirectionEnum;
|
|
17
|
+
/**
|
|
18
|
+
* The URL to send event callbacks to.
|
|
19
|
+
*/
|
|
20
|
+
'eventCallbackUrl'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The URL to send event fallbacks to.
|
|
23
|
+
*/
|
|
24
|
+
'eventFallbackUrl'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* A tag for the endpoint.
|
|
27
|
+
*/
|
|
28
|
+
'tag'?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Bandwidth
|
|
6
|
+
* Bandwidth\'s Communication APIs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: letstalk@bandwidth.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Device } from './device';
|
|
13
|
+
import type { EndpointStatusEnum } from './endpoint-status-enum';
|
|
14
|
+
import type { EndpointTypeEnum } from './endpoint-type-enum';
|
|
15
|
+
/**
|
|
16
|
+
* @type CreateEndpointResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateEndpointResponseData {
|
|
19
|
+
/**
|
|
20
|
+
* The unique ID of the endpoint.
|
|
21
|
+
*/
|
|
22
|
+
'endpointId': string;
|
|
23
|
+
'type': EndpointTypeEnum;
|
|
24
|
+
'status': EndpointStatusEnum;
|
|
25
|
+
/**
|
|
26
|
+
* The time the endpoint was created. In ISO-8601 format.
|
|
27
|
+
*/
|
|
28
|
+
'creationTimestamp': string;
|
|
29
|
+
/**
|
|
30
|
+
* The time the endpoint token will expire. In ISO-8601 format. Tokens last 24 hours.
|
|
31
|
+
*/
|
|
32
|
+
'expirationTimestamp': string;
|
|
33
|
+
/**
|
|
34
|
+
* A tag for the endpoint.
|
|
35
|
+
*/
|
|
36
|
+
'tag'?: string;
|
|
37
|
+
'devices'?: Array<Device>;
|
|
38
|
+
/**
|
|
39
|
+
* The json web token specific to the endpoint. Used to authenticate the client with the media gateway.
|
|
40
|
+
*/
|
|
41
|
+
'token': string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Bandwidth
|
|
6
|
+
* Bandwidth\'s Communication APIs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: letstalk@bandwidth.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bandwidth
|
|
3
|
+
* Bandwidth\'s Communication APIs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: letstalk@bandwidth.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { BrtcError } from './brtc-error';
|
|
13
|
+
import type { BrtcLink } from './brtc-link';
|
|
14
|
+
import type { CreateEndpointResponseData } from './create-endpoint-response-data';
|
|
15
|
+
export interface CreateEndpointResponse {
|
|
16
|
+
'links': Array<BrtcLink>;
|
|
17
|
+
'data': CreateEndpointResponseData;
|
|
18
|
+
'errors': Array<BrtcError>;
|
|
19
|
+
}
|