bandwidth-sdk 2.1.0 → 3.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 +4 -2
- package/.github/workflows/test-pr.yml +4 -2
- package/.github/workflows/{test-nightly.yml → test-smoke.yml} +6 -3
- package/.openapi-generator/FILES +2 -0
- package/README.md +22 -5
- package/api/transcriptions-api.ts +4 -4
- package/bandwidth.yml +43 -22
- package/coverage/clover.xml +1501 -138
- package/coverage/coverage-final.json +65 -47
- package/coverage/lcov-report/index.html +51 -21
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1702 -0
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +2725 -0
- package/coverage/lcov-report/node-sdk/api/index.html +236 -0
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1315 -0
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1138 -0
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1051 -0
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +775 -0
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +2971 -0
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +496 -0
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1045 -0
- package/coverage/lcov-report/node-sdk/api.ts.html +163 -0
- package/coverage/lcov-report/node-sdk/base.ts.html +1045 -0
- package/coverage/lcov-report/node-sdk/common.ts.html +535 -0
- package/coverage/lcov-report/node-sdk/configuration.ts.html +415 -0
- package/coverage/lcov-report/node-sdk/index.html +161 -0
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/Bxml.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/NestableVerb.ts.html +15 -15
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/Response.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/Root.ts.html +17 -17
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/Verb.ts.html +15 -15
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/index.html +29 -14
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +94 -0
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Bridge.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Conference.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/CustomParam.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Forward.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Gather.ts.html +16 -16
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Hangup.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Pause.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/PauseRecording.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/PhoneNumber.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/PlayAudio.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Record.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Redirect.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/ResumeRecording.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Ring.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/SendDtmf.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/SipUri.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/SpeakSentence.ts.html +15 -15
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartGather.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartRecording.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartStream.ts.html +14 -14
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StartTranscription.ts.html +14 -14
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopGather.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopRecording.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopStream.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StopTranscription.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/StreamParam.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Tag.ts.html +13 -13
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/Transfer.ts.html +14 -14
- package/coverage/lcov-report/{models → node-sdk/models}/bxml/verbs/index.html +27 -12
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +175 -0
- package/coverage/lcov-report/{models → node-sdk/models}/call-direction-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/call-state-enum.ts.html +11 -11
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +181 -0
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +178 -0
- package/coverage/lcov-report/{models → node-sdk/models}/callback-method-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/conference-state-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/file-format-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/index.html +57 -12
- package/coverage/lcov-report/node-sdk/models/index.ts.html +367 -0
- package/coverage/lcov-report/{models → node-sdk/models}/list-message-direction-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/lookup-status-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/machine-detection-mode-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/message-direction-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/message-status-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/message-type-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/priority-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/recording-state-enum.ts.html +11 -11
- package/coverage/lcov-report/{models → node-sdk/models}/redirect-method-enum.ts.html +11 -11
- package/coverage/lcov.info +3366 -162
- package/custom_templates/README.mustache +22 -5
- package/custom_templates/package.mustache +2 -1
- package/custom_templates/tsconfig.mustache +2 -1
- package/global.d.ts +1 -0
- package/jest.config.js +1 -0
- package/models/call-recording-metadata.ts +6 -0
- package/{dist/models/call-transcription.js → models/call-transcription-detected-language-enum.ts} +16 -9
- package/models/call-transcription-metadata.ts +6 -0
- package/{dist/models/call-direction-enum.js → models/call-transcription-track-enum.ts} +12 -6
- package/models/call-transcription.ts +11 -18
- package/models/conference-recording-metadata.ts +6 -0
- package/models/index.ts +2 -0
- package/package.json +3 -2
- package/tests/callUtils.ts +11 -11
- package/tests/smoke/bxml.test.ts +17 -17
- package/tests/smoke/calls-api.test.ts +38 -38
- package/tests/smoke/conferences-api.test.ts +19 -19
- package/tests/smoke/media-api.test.ts +11 -11
- package/tests/smoke/messages-api.test.ts +26 -26
- package/tests/smoke/mfaapi.test.ts +18 -18
- package/tests/smoke/phone-number-lookup-api.test.ts +16 -6
- package/tests/smoke/recordings-api.test.ts +31 -31
- package/tests/smoke/statistics-api.test.ts +7 -7
- package/tests/smoke/transcriptions-api.test.ts +16 -15
- package/tests/unit/api/calls-api.test.ts +180 -0
- package/tests/unit/api/conferences-api.test.ts +160 -0
- package/tests/unit/api/media-api.test.ts +59 -0
- package/tests/unit/api/messages-api.test.ts +122 -0
- package/tests/unit/api/mfaapi.test.ts +76 -0
- package/tests/unit/api/phone-number-lookup-api.test.ts +96 -0
- package/tests/unit/api/recordings-api.test.ts +179 -0
- package/tests/unit/api/statistics-api.test.ts +35 -0
- package/tests/unit/api/transcriptions-api.test.ts +61 -0
- package/tests/unit/models/call-transcription-detected-language-enum.test.ts +9 -0
- package/tests/unit/models/call-transcription-track-enum.test.ts +8 -0
- package/tsconfig.json +2 -1
- package/dist/api/calls-api.d.ts +0 -261
- package/dist/api/calls-api.js +0 -656
- package/dist/api/conferences-api.d.ts +0 -422
- package/dist/api/conferences-api.js +0 -1045
- package/dist/api/media-api.d.ts +0 -201
- package/dist/api/media-api.js +0 -527
- package/dist/api/messages-api.d.ts +0 -176
- package/dist/api/messages-api.js +0 -420
- package/dist/api/mfaapi.d.ts +0 -156
- package/dist/api/mfaapi.js +0 -416
- package/dist/api/phone-number-lookup-api.d.ts +0 -117
- package/dist/api/phone-number-lookup-api.js +0 -322
- package/dist/api/recordings-api.d.ts +0 -462
- package/dist/api/recordings-api.js +0 -1143
- package/dist/api/statistics-api.d.ts +0 -74
- package/dist/api/statistics-api.js +0 -222
- package/dist/api/transcriptions-api.d.ts +0 -161
- package/dist/api/transcriptions-api.js +0 -427
- package/dist/api.d.ts +0 -20
- package/dist/api.js +0 -38
- package/dist/base.d.ts +0 -66
- package/dist/base.js +0 -321
- package/dist/common.d.ts +0 -65
- package/dist/common.js +0 -253
- package/dist/configuration.d.ts +0 -91
- package/dist/configuration.js +0 -45
- package/dist/index.d.ts +0 -14
- package/dist/index.js +0 -32
- package/dist/models/account-statistics.d.ts +0 -30
- package/dist/models/account-statistics.js +0 -15
- package/dist/models/answer-callback.d.ts +0 -104
- package/dist/models/answer-callback.js +0 -15
- package/dist/models/bridge-complete-callback.d.ts +0 -115
- package/dist/models/bridge-complete-callback.js +0 -15
- package/dist/models/bridge-target-complete-callback.d.ts +0 -97
- package/dist/models/bridge-target-complete-callback.js +0 -15
- package/dist/models/bxml/Bxml.d.ts +0 -17
- package/dist/models/bxml/Bxml.js +0 -37
- package/dist/models/bxml/NestableVerb.d.ts +0 -26
- package/dist/models/bxml/NestableVerb.js +0 -62
- package/dist/models/bxml/Response.d.ts +0 -17
- package/dist/models/bxml/Response.js +0 -37
- package/dist/models/bxml/Root.d.ts +0 -33
- package/dist/models/bxml/Root.js +0 -57
- package/dist/models/bxml/Verb.d.ts +0 -27
- package/dist/models/bxml/Verb.js +0 -38
- package/dist/models/bxml/index.d.ts +0 -2
- package/dist/models/bxml/index.js +0 -5
- package/dist/models/bxml/verbs/Bridge.d.ts +0 -32
- package/dist/models/bxml/verbs/Bridge.js +0 -38
- package/dist/models/bxml/verbs/Conference.d.ts +0 -32
- package/dist/models/bxml/verbs/Conference.js +0 -38
- package/dist/models/bxml/verbs/CustomParam.d.ts +0 -19
- package/dist/models/bxml/verbs/CustomParam.js +0 -37
- package/dist/models/bxml/verbs/Forward.d.ts +0 -23
- package/dist/models/bxml/verbs/Forward.js +0 -37
- package/dist/models/bxml/verbs/Gather.d.ts +0 -47
- package/dist/models/bxml/verbs/Gather.js +0 -53
- package/dist/models/bxml/verbs/Hangup.d.ts +0 -13
- package/dist/models/bxml/verbs/Hangup.js +0 -36
- package/dist/models/bxml/verbs/Pause.d.ts +0 -18
- package/dist/models/bxml/verbs/Pause.js +0 -37
- package/dist/models/bxml/verbs/PauseRecording.d.ts +0 -13
- package/dist/models/bxml/verbs/PauseRecording.js +0 -36
- package/dist/models/bxml/verbs/PhoneNumber.d.ts +0 -30
- package/dist/models/bxml/verbs/PhoneNumber.js +0 -38
- package/dist/models/bxml/verbs/PlayAudio.d.ts +0 -21
- package/dist/models/bxml/verbs/PlayAudio.js +0 -38
- package/dist/models/bxml/verbs/Record.d.ts +0 -35
- package/dist/models/bxml/verbs/Record.js +0 -37
- package/dist/models/bxml/verbs/Redirect.d.ts +0 -26
- package/dist/models/bxml/verbs/Redirect.js +0 -37
- package/dist/models/bxml/verbs/ResumeRecording.d.ts +0 -13
- package/dist/models/bxml/verbs/ResumeRecording.js +0 -36
- package/dist/models/bxml/verbs/Ring.d.ts +0 -19
- package/dist/models/bxml/verbs/Ring.js +0 -37
- package/dist/models/bxml/verbs/SendDtmf.d.ts +0 -21
- package/dist/models/bxml/verbs/SendDtmf.js +0 -38
- package/dist/models/bxml/verbs/SipUri.d.ts +0 -31
- package/dist/models/bxml/verbs/SipUri.js +0 -38
- package/dist/models/bxml/verbs/SpeakSentence.d.ts +0 -28
- package/dist/models/bxml/verbs/SpeakSentence.js +0 -46
- package/dist/models/bxml/verbs/StartGather.d.ts +0 -22
- package/dist/models/bxml/verbs/StartGather.js +0 -37
- package/dist/models/bxml/verbs/StartRecording.d.ts +0 -27
- package/dist/models/bxml/verbs/StartRecording.js +0 -37
- package/dist/models/bxml/verbs/StartStream.d.ts +0 -31
- package/dist/models/bxml/verbs/StartStream.js +0 -45
- package/dist/models/bxml/verbs/StartTranscription.d.ts +0 -32
- package/dist/models/bxml/verbs/StartTranscription.js +0 -45
- package/dist/models/bxml/verbs/StopGather.d.ts +0 -13
- package/dist/models/bxml/verbs/StopGather.js +0 -36
- package/dist/models/bxml/verbs/StopRecording.d.ts +0 -13
- package/dist/models/bxml/verbs/StopRecording.js +0 -36
- package/dist/models/bxml/verbs/StopStream.d.ts +0 -18
- package/dist/models/bxml/verbs/StopStream.js +0 -37
- package/dist/models/bxml/verbs/StopTranscription.d.ts +0 -18
- package/dist/models/bxml/verbs/StopTranscription.js +0 -37
- package/dist/models/bxml/verbs/StreamParam.d.ts +0 -19
- package/dist/models/bxml/verbs/StreamParam.js +0 -37
- package/dist/models/bxml/verbs/Tag.d.ts +0 -15
- package/dist/models/bxml/verbs/Tag.js +0 -37
- package/dist/models/bxml/verbs/Transfer.d.ts +0 -41
- package/dist/models/bxml/verbs/Transfer.js +0 -45
- package/dist/models/bxml/verbs/index.d.ts +0 -30
- package/dist/models/bxml/verbs/index.js +0 -46
- package/dist/models/call-direction-enum.d.ts +0 -21
- package/dist/models/call-recording-metadata.d.ts +0 -129
- package/dist/models/call-recording-metadata.js +0 -15
- package/dist/models/call-state-enum.d.ts +0 -21
- package/dist/models/call-state-enum.js +0 -25
- package/dist/models/call-state.d.ts +0 -129
- package/dist/models/call-state.js +0 -15
- package/dist/models/call-transcription-metadata.d.ts +0 -30
- package/dist/models/call-transcription-metadata.js +0 -15
- package/dist/models/call-transcription-response.d.ts +0 -43
- package/dist/models/call-transcription-response.js +0 -15
- package/dist/models/call-transcription.d.ts +0 -53
- package/dist/models/callback-method-enum.d.ts +0 -21
- package/dist/models/callback-method-enum.js +0 -25
- package/dist/models/code-request.d.ts +0 -54
- package/dist/models/code-request.js +0 -15
- package/dist/models/conference-completed-callback.d.ts +0 -48
- package/dist/models/conference-completed-callback.js +0 -15
- package/dist/models/conference-created-callback.d.ts +0 -48
- package/dist/models/conference-created-callback.js +0 -15
- package/dist/models/conference-member-exit-callback.d.ts +0 -66
- package/dist/models/conference-member-exit-callback.js +0 -15
- package/dist/models/conference-member-join-callback.d.ts +0 -66
- package/dist/models/conference-member-join-callback.js +0 -15
- package/dist/models/conference-member.d.ts +0 -54
- package/dist/models/conference-member.js +0 -15
- package/dist/models/conference-recording-available-callback.d.ts +0 -103
- package/dist/models/conference-recording-available-callback.js +0 -15
- package/dist/models/conference-recording-metadata.d.ts +0 -85
- package/dist/models/conference-recording-metadata.js +0 -15
- package/dist/models/conference-redirect-callback.d.ts +0 -48
- package/dist/models/conference-redirect-callback.js +0 -15
- package/dist/models/conference-state-enum.d.ts +0 -21
- package/dist/models/conference-state-enum.js +0 -25
- package/dist/models/conference.d.ts +0 -68
- package/dist/models/conference.js +0 -15
- package/dist/models/create-call-response.d.ts +0 -145
- package/dist/models/create-call-response.js +0 -15
- package/dist/models/create-call.d.ts +0 -146
- package/dist/models/create-call.js +0 -15
- package/dist/models/create-lookup-response.d.ts +0 -31
- package/dist/models/create-lookup-response.js +0 -15
- package/dist/models/create-message-request-error.d.ts +0 -37
- package/dist/models/create-message-request-error.js +0 -15
- package/dist/models/deferred-result.d.ts +0 -30
- package/dist/models/deferred-result.js +0 -15
- package/dist/models/disconnect-callback.d.ts +0 -121
- package/dist/models/disconnect-callback.js +0 -15
- package/dist/models/diversion.d.ts +0 -60
- package/dist/models/diversion.js +0 -15
- package/dist/models/dtmf-callback.d.ts +0 -121
- package/dist/models/dtmf-callback.js +0 -15
- package/dist/models/field-error.d.ts +0 -30
- package/dist/models/field-error.js +0 -15
- package/dist/models/file-format-enum.d.ts +0 -21
- package/dist/models/file-format-enum.js +0 -25
- package/dist/models/gather-callback.d.ts +0 -127
- package/dist/models/gather-callback.js +0 -15
- package/dist/models/inbound-message-callback-message.d.ts +0 -92
- package/dist/models/inbound-message-callback-message.js +0 -15
- package/dist/models/inbound-message-callback.d.ts +0 -49
- package/dist/models/inbound-message-callback.js +0 -15
- package/dist/models/index.d.ts +0 -92
- package/dist/models/index.js +0 -108
- package/dist/models/initiate-callback.d.ts +0 -93
- package/dist/models/initiate-callback.js +0 -15
- package/dist/models/list-message-direction-enum.d.ts +0 -21
- package/dist/models/list-message-direction-enum.js +0 -25
- package/dist/models/list-message-item.d.ts +0 -123
- package/dist/models/list-message-item.js +0 -15
- package/dist/models/lookup-request.d.ts +0 -24
- package/dist/models/lookup-request.js +0 -15
- package/dist/models/lookup-result.d.ts +0 -72
- package/dist/models/lookup-result.js +0 -15
- package/dist/models/lookup-status-enum.d.ts +0 -23
- package/dist/models/lookup-status-enum.js +0 -27
- package/dist/models/lookup-status.d.ts +0 -44
- package/dist/models/lookup-status.js +0 -15
- package/dist/models/machine-detection-complete-callback.d.ts +0 -104
- package/dist/models/machine-detection-complete-callback.js +0 -15
- package/dist/models/machine-detection-configuration.d.ts +0 -110
- package/dist/models/machine-detection-configuration.js +0 -15
- package/dist/models/machine-detection-mode-enum.d.ts +0 -21
- package/dist/models/machine-detection-mode-enum.js +0 -25
- package/dist/models/machine-detection-result.d.ts +0 -30
- package/dist/models/machine-detection-result.js +0 -15
- package/dist/models/media.d.ts +0 -36
- package/dist/models/media.js +0 -15
- package/dist/models/message-delivered-callback-message.d.ts +0 -92
- package/dist/models/message-delivered-callback-message.js +0 -15
- package/dist/models/message-delivered-callback.d.ts +0 -49
- package/dist/models/message-delivered-callback.js +0 -15
- package/dist/models/message-direction-enum.d.ts +0 -21
- package/dist/models/message-direction-enum.js +0 -25
- package/dist/models/message-failed-callback-message.d.ts +0 -92
- package/dist/models/message-failed-callback-message.js +0 -15
- package/dist/models/message-failed-callback.d.ts +0 -55
- package/dist/models/message-failed-callback.js +0 -15
- package/dist/models/message-request.d.ts +0 -67
- package/dist/models/message-request.js +0 -15
- package/dist/models/message-sending-callback-message.d.ts +0 -92
- package/dist/models/message-sending-callback-message.js +0 -15
- package/dist/models/message-sending-callback.d.ts +0 -49
- package/dist/models/message-sending-callback.js +0 -15
- package/dist/models/message-status-enum.d.ts +0 -27
- package/dist/models/message-status-enum.js +0 -31
- package/dist/models/message-type-enum.d.ts +0 -21
- package/dist/models/message-type-enum.js +0 -25
- package/dist/models/message.d.ts +0 -98
- package/dist/models/message.js +0 -15
- package/dist/models/messages-list.d.ts +0 -38
- package/dist/models/messages-list.js +0 -15
- package/dist/models/messaging-code-response.d.ts +0 -24
- package/dist/models/messaging-code-response.js +0 -15
- package/dist/models/messaging-request-error.d.ts +0 -30
- package/dist/models/messaging-request-error.js +0 -15
- package/dist/models/mfa-forbidden-request-error.d.ts +0 -24
- package/dist/models/mfa-forbidden-request-error.js +0 -15
- package/dist/models/mfa-request-error.d.ts +0 -30
- package/dist/models/mfa-request-error.js +0 -15
- package/dist/models/mfa-unauthorized-request-error.d.ts +0 -24
- package/dist/models/mfa-unauthorized-request-error.js +0 -15
- package/dist/models/page-info.d.ts +0 -42
- package/dist/models/page-info.js +0 -15
- package/dist/models/priority-enum.d.ts +0 -21
- package/dist/models/priority-enum.js +0 -25
- package/dist/models/recording-available-callback.d.ts +0 -152
- package/dist/models/recording-available-callback.js +0 -15
- package/dist/models/recording-complete-callback.d.ts +0 -152
- package/dist/models/recording-complete-callback.js +0 -15
- package/dist/models/recording-state-enum.d.ts +0 -21
- package/dist/models/recording-state-enum.js +0 -25
- package/dist/models/recording-transcription-metadata.d.ts +0 -42
- package/dist/models/recording-transcription-metadata.js +0 -15
- package/dist/models/recording-transcriptions.d.ts +0 -25
- package/dist/models/recording-transcriptions.js +0 -15
- package/dist/models/redirect-callback.d.ts +0 -115
- package/dist/models/redirect-callback.js +0 -15
- package/dist/models/redirect-method-enum.d.ts +0 -21
- package/dist/models/redirect-method-enum.js +0 -25
- package/dist/models/stir-shaken.d.ts +0 -36
- package/dist/models/stir-shaken.js +0 -15
- package/dist/models/tag.d.ts +0 -30
- package/dist/models/tag.js +0 -15
- package/dist/models/tn-lookup-request-error.d.ts +0 -24
- package/dist/models/tn-lookup-request-error.js +0 -15
- package/dist/models/transcribe-recording.d.ts +0 -61
- package/dist/models/transcribe-recording.js +0 -15
- package/dist/models/transcription-available-callback.d.ts +0 -147
- package/dist/models/transcription-available-callback.js +0 -15
- package/dist/models/transcription-list.d.ts +0 -25
- package/dist/models/transcription-list.js +0 -15
- package/dist/models/transcription-metadata.d.ts +0 -42
- package/dist/models/transcription-metadata.js +0 -15
- package/dist/models/transcription.d.ts +0 -30
- package/dist/models/transcription.js +0 -15
- package/dist/models/transfer-answer-callback.d.ts +0 -109
- package/dist/models/transfer-answer-callback.js +0 -15
- package/dist/models/transfer-complete-callback.d.ts +0 -127
- package/dist/models/transfer-complete-callback.js +0 -15
- package/dist/models/transfer-disconnect-callback.d.ts +0 -139
- package/dist/models/transfer-disconnect-callback.js +0 -15
- package/dist/models/update-call-recording.d.ts +0 -25
- package/dist/models/update-call-recording.js +0 -15
- package/dist/models/update-call.d.ts +0 -80
- package/dist/models/update-call.js +0 -15
- package/dist/models/update-conference-member.d.ts +0 -36
- package/dist/models/update-conference-member.js +0 -15
- package/dist/models/update-conference.d.ts +0 -74
- package/dist/models/update-conference.js +0 -15
- package/dist/models/verify-code-request.d.ts +0 -42
- package/dist/models/verify-code-request.js +0 -15
- package/dist/models/verify-code-response.d.ts +0 -24
- package/dist/models/verify-code-response.js +0 -15
- package/dist/models/voice-api-error.d.ts +0 -36
- package/dist/models/voice-api-error.js +0 -15
- package/dist/models/voice-code-response.d.ts +0 -24
- package/dist/models/voice-code-response.js +0 -15
|
@@ -1,1045 +0,0 @@
|
|
|
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
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.ConferencesApi = exports.ConferencesApiFactory = exports.ConferencesApiFp = exports.ConferencesApiAxiosParamCreator = void 0;
|
|
88
|
-
var axios_1 = require("axios");
|
|
89
|
-
// Some imports not used depending on template conditions
|
|
90
|
-
// @ts-ignore
|
|
91
|
-
var common_1 = require("../common");
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
var base_1 = require("../base");
|
|
94
|
-
/**
|
|
95
|
-
* ConferencesApi - axios parameter creator
|
|
96
|
-
* @export
|
|
97
|
-
*/
|
|
98
|
-
var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
99
|
-
var _this = this;
|
|
100
|
-
return {
|
|
101
|
-
/**
|
|
102
|
-
* Downloads the specified recording file.
|
|
103
|
-
* @summary Download Conference Recording
|
|
104
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
105
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
106
|
-
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
107
|
-
* @param {*} [options] Override http request option.
|
|
108
|
-
* @throws {RequiredError}
|
|
109
|
-
*/
|
|
110
|
-
downloadConferenceRecording: function (accountId_1, conferenceId_1, recordingId_1) {
|
|
111
|
-
var args_1 = [];
|
|
112
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
113
|
-
args_1[_i - 3] = arguments[_i];
|
|
114
|
-
}
|
|
115
|
-
return __awaiter(_this, __spreadArray([accountId_1, conferenceId_1, recordingId_1], args_1, true), void 0, function (accountId, conferenceId, recordingId, options) {
|
|
116
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
117
|
-
if (options === void 0) { options = {}; }
|
|
118
|
-
return __generator(this, function (_a) {
|
|
119
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
120
|
-
(0, common_1.assertParamExists)('downloadConferenceRecording', 'accountId', accountId);
|
|
121
|
-
// verify required parameter 'conferenceId' is not null or undefined
|
|
122
|
-
(0, common_1.assertParamExists)('downloadConferenceRecording', 'conferenceId', conferenceId);
|
|
123
|
-
// verify required parameter 'recordingId' is not null or undefined
|
|
124
|
-
(0, common_1.assertParamExists)('downloadConferenceRecording', 'recordingId', recordingId);
|
|
125
|
-
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/media"
|
|
126
|
-
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
127
|
-
.replace("{".concat("conferenceId", "}"), encodeURIComponent(String(conferenceId)))
|
|
128
|
-
.replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
|
|
129
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
130
|
-
if (configuration) {
|
|
131
|
-
baseOptions = configuration.baseOptions;
|
|
132
|
-
}
|
|
133
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
134
|
-
localVarHeaderParameter = {};
|
|
135
|
-
localVarQueryParameter = {};
|
|
136
|
-
// authentication Basic required
|
|
137
|
-
// http basic authentication required
|
|
138
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
139
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
142
|
-
return [2 /*return*/, {
|
|
143
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
144
|
-
options: localVarRequestOptions,
|
|
145
|
-
}];
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
},
|
|
149
|
-
/**
|
|
150
|
-
* Returns information about the specified conference.
|
|
151
|
-
* @summary Get Conference Information
|
|
152
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
153
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
154
|
-
* @param {*} [options] Override http request option.
|
|
155
|
-
* @throws {RequiredError}
|
|
156
|
-
*/
|
|
157
|
-
getConference: function (accountId_1, conferenceId_1) {
|
|
158
|
-
var args_1 = [];
|
|
159
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
160
|
-
args_1[_i - 2] = arguments[_i];
|
|
161
|
-
}
|
|
162
|
-
return __awaiter(_this, __spreadArray([accountId_1, conferenceId_1], args_1, true), void 0, function (accountId, conferenceId, options) {
|
|
163
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
164
|
-
if (options === void 0) { options = {}; }
|
|
165
|
-
return __generator(this, function (_a) {
|
|
166
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
167
|
-
(0, common_1.assertParamExists)('getConference', 'accountId', accountId);
|
|
168
|
-
// verify required parameter 'conferenceId' is not null or undefined
|
|
169
|
-
(0, common_1.assertParamExists)('getConference', 'conferenceId', conferenceId);
|
|
170
|
-
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}"
|
|
171
|
-
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
172
|
-
.replace("{".concat("conferenceId", "}"), encodeURIComponent(String(conferenceId)));
|
|
173
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
174
|
-
if (configuration) {
|
|
175
|
-
baseOptions = configuration.baseOptions;
|
|
176
|
-
}
|
|
177
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
178
|
-
localVarHeaderParameter = {};
|
|
179
|
-
localVarQueryParameter = {};
|
|
180
|
-
// authentication Basic required
|
|
181
|
-
// http basic authentication required
|
|
182
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
183
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
186
|
-
return [2 /*return*/, {
|
|
187
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
188
|
-
options: localVarRequestOptions,
|
|
189
|
-
}];
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
|
-
},
|
|
193
|
-
/**
|
|
194
|
-
* Returns information about the specified conference member.
|
|
195
|
-
* @summary Get Conference Member
|
|
196
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
197
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
198
|
-
* @param {string} memberId Programmable Voice API Conference Member ID.
|
|
199
|
-
* @param {*} [options] Override http request option.
|
|
200
|
-
* @throws {RequiredError}
|
|
201
|
-
*/
|
|
202
|
-
getConferenceMember: function (accountId_1, conferenceId_1, memberId_1) {
|
|
203
|
-
var args_1 = [];
|
|
204
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
205
|
-
args_1[_i - 3] = arguments[_i];
|
|
206
|
-
}
|
|
207
|
-
return __awaiter(_this, __spreadArray([accountId_1, conferenceId_1, memberId_1], args_1, true), void 0, function (accountId, conferenceId, memberId, options) {
|
|
208
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
|
-
if (options === void 0) { options = {}; }
|
|
210
|
-
return __generator(this, function (_a) {
|
|
211
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
212
|
-
(0, common_1.assertParamExists)('getConferenceMember', 'accountId', accountId);
|
|
213
|
-
// verify required parameter 'conferenceId' is not null or undefined
|
|
214
|
-
(0, common_1.assertParamExists)('getConferenceMember', 'conferenceId', conferenceId);
|
|
215
|
-
// verify required parameter 'memberId' is not null or undefined
|
|
216
|
-
(0, common_1.assertParamExists)('getConferenceMember', 'memberId', memberId);
|
|
217
|
-
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/members/{memberId}"
|
|
218
|
-
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
219
|
-
.replace("{".concat("conferenceId", "}"), encodeURIComponent(String(conferenceId)))
|
|
220
|
-
.replace("{".concat("memberId", "}"), encodeURIComponent(String(memberId)));
|
|
221
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
222
|
-
if (configuration) {
|
|
223
|
-
baseOptions = configuration.baseOptions;
|
|
224
|
-
}
|
|
225
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
226
|
-
localVarHeaderParameter = {};
|
|
227
|
-
localVarQueryParameter = {};
|
|
228
|
-
// authentication Basic required
|
|
229
|
-
// http basic authentication required
|
|
230
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
231
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
232
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
233
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
234
|
-
return [2 /*return*/, {
|
|
235
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
236
|
-
options: localVarRequestOptions,
|
|
237
|
-
}];
|
|
238
|
-
});
|
|
239
|
-
});
|
|
240
|
-
},
|
|
241
|
-
/**
|
|
242
|
-
* Returns metadata for the specified recording.
|
|
243
|
-
* @summary Get Conference Recording Information
|
|
244
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
245
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
246
|
-
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
247
|
-
* @param {*} [options] Override http request option.
|
|
248
|
-
* @throws {RequiredError}
|
|
249
|
-
*/
|
|
250
|
-
getConferenceRecording: function (accountId_1, conferenceId_1, recordingId_1) {
|
|
251
|
-
var args_1 = [];
|
|
252
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
253
|
-
args_1[_i - 3] = arguments[_i];
|
|
254
|
-
}
|
|
255
|
-
return __awaiter(_this, __spreadArray([accountId_1, conferenceId_1, recordingId_1], args_1, true), void 0, function (accountId, conferenceId, recordingId, options) {
|
|
256
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
257
|
-
if (options === void 0) { options = {}; }
|
|
258
|
-
return __generator(this, function (_a) {
|
|
259
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
260
|
-
(0, common_1.assertParamExists)('getConferenceRecording', 'accountId', accountId);
|
|
261
|
-
// verify required parameter 'conferenceId' is not null or undefined
|
|
262
|
-
(0, common_1.assertParamExists)('getConferenceRecording', 'conferenceId', conferenceId);
|
|
263
|
-
// verify required parameter 'recordingId' is not null or undefined
|
|
264
|
-
(0, common_1.assertParamExists)('getConferenceRecording', 'recordingId', recordingId);
|
|
265
|
-
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}"
|
|
266
|
-
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
267
|
-
.replace("{".concat("conferenceId", "}"), encodeURIComponent(String(conferenceId)))
|
|
268
|
-
.replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
|
|
269
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
270
|
-
if (configuration) {
|
|
271
|
-
baseOptions = configuration.baseOptions;
|
|
272
|
-
}
|
|
273
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
274
|
-
localVarHeaderParameter = {};
|
|
275
|
-
localVarQueryParameter = {};
|
|
276
|
-
// authentication Basic required
|
|
277
|
-
// http basic authentication required
|
|
278
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
279
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
280
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
281
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
282
|
-
return [2 /*return*/, {
|
|
283
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
284
|
-
options: localVarRequestOptions,
|
|
285
|
-
}];
|
|
286
|
-
});
|
|
287
|
-
});
|
|
288
|
-
},
|
|
289
|
-
/**
|
|
290
|
-
* Returns a (potentially empty) list of metadata for the recordings that took place during the specified conference.
|
|
291
|
-
* @summary Get Conference Recordings
|
|
292
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
293
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
294
|
-
* @param {*} [options] Override http request option.
|
|
295
|
-
* @throws {RequiredError}
|
|
296
|
-
*/
|
|
297
|
-
listConferenceRecordings: function (accountId_1, conferenceId_1) {
|
|
298
|
-
var args_1 = [];
|
|
299
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
300
|
-
args_1[_i - 2] = arguments[_i];
|
|
301
|
-
}
|
|
302
|
-
return __awaiter(_this, __spreadArray([accountId_1, conferenceId_1], args_1, true), void 0, function (accountId, conferenceId, options) {
|
|
303
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
304
|
-
if (options === void 0) { options = {}; }
|
|
305
|
-
return __generator(this, function (_a) {
|
|
306
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
307
|
-
(0, common_1.assertParamExists)('listConferenceRecordings', 'accountId', accountId);
|
|
308
|
-
// verify required parameter 'conferenceId' is not null or undefined
|
|
309
|
-
(0, common_1.assertParamExists)('listConferenceRecordings', 'conferenceId', conferenceId);
|
|
310
|
-
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/recordings"
|
|
311
|
-
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
312
|
-
.replace("{".concat("conferenceId", "}"), encodeURIComponent(String(conferenceId)));
|
|
313
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
314
|
-
if (configuration) {
|
|
315
|
-
baseOptions = configuration.baseOptions;
|
|
316
|
-
}
|
|
317
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
318
|
-
localVarHeaderParameter = {};
|
|
319
|
-
localVarQueryParameter = {};
|
|
320
|
-
// authentication Basic required
|
|
321
|
-
// http basic authentication required
|
|
322
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
323
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
324
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
325
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
326
|
-
return [2 /*return*/, {
|
|
327
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
328
|
-
options: localVarRequestOptions,
|
|
329
|
-
}];
|
|
330
|
-
});
|
|
331
|
-
});
|
|
332
|
-
},
|
|
333
|
-
/**
|
|
334
|
-
* Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of conferences in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of conference records.
|
|
335
|
-
* @summary Get Conferences
|
|
336
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
337
|
-
* @param {string} [name] Filter results by the `name` field.
|
|
338
|
-
* @param {string} [minCreatedTime] Filter results to conferences which have a `createdTime` after or at `minCreatedTime` (in ISO8601 format).
|
|
339
|
-
* @param {string} [maxCreatedTime] Filter results to conferences which have a `createdTime` before or at `maxCreatedTime` (in ISO8601 format).
|
|
340
|
-
* @param {number} [pageSize] Specifies the max number of conferences that will be returned.
|
|
341
|
-
* @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description.
|
|
342
|
-
* @param {*} [options] Override http request option.
|
|
343
|
-
* @throws {RequiredError}
|
|
344
|
-
*/
|
|
345
|
-
listConferences: function (accountId_1, name_1, minCreatedTime_1, maxCreatedTime_1, pageSize_1, pageToken_1) {
|
|
346
|
-
var args_1 = [];
|
|
347
|
-
for (var _i = 6; _i < arguments.length; _i++) {
|
|
348
|
-
args_1[_i - 6] = arguments[_i];
|
|
349
|
-
}
|
|
350
|
-
return __awaiter(_this, __spreadArray([accountId_1, name_1, minCreatedTime_1, maxCreatedTime_1, pageSize_1, pageToken_1], args_1, true), void 0, function (accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options) {
|
|
351
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
352
|
-
if (options === void 0) { options = {}; }
|
|
353
|
-
return __generator(this, function (_a) {
|
|
354
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
355
|
-
(0, common_1.assertParamExists)('listConferences', 'accountId', accountId);
|
|
356
|
-
localVarPath = "/accounts/{accountId}/conferences"
|
|
357
|
-
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
|
|
358
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
359
|
-
if (configuration) {
|
|
360
|
-
baseOptions = configuration.baseOptions;
|
|
361
|
-
}
|
|
362
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
363
|
-
localVarHeaderParameter = {};
|
|
364
|
-
localVarQueryParameter = {};
|
|
365
|
-
// authentication Basic required
|
|
366
|
-
// http basic authentication required
|
|
367
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
368
|
-
if (name !== undefined) {
|
|
369
|
-
localVarQueryParameter['name'] = name;
|
|
370
|
-
}
|
|
371
|
-
if (minCreatedTime !== undefined) {
|
|
372
|
-
localVarQueryParameter['minCreatedTime'] = minCreatedTime;
|
|
373
|
-
}
|
|
374
|
-
if (maxCreatedTime !== undefined) {
|
|
375
|
-
localVarQueryParameter['maxCreatedTime'] = maxCreatedTime;
|
|
376
|
-
}
|
|
377
|
-
if (pageSize !== undefined) {
|
|
378
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
379
|
-
}
|
|
380
|
-
if (pageToken !== undefined) {
|
|
381
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
382
|
-
}
|
|
383
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
384
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
385
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
386
|
-
return [2 /*return*/, {
|
|
387
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
388
|
-
options: localVarRequestOptions,
|
|
389
|
-
}];
|
|
390
|
-
});
|
|
391
|
-
});
|
|
392
|
-
},
|
|
393
|
-
/**
|
|
394
|
-
* Update the conference state.
|
|
395
|
-
* @summary Update Conference
|
|
396
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
397
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
398
|
-
* @param {UpdateConference} updateConference
|
|
399
|
-
* @param {*} [options] Override http request option.
|
|
400
|
-
* @throws {RequiredError}
|
|
401
|
-
*/
|
|
402
|
-
updateConference: function (accountId_1, conferenceId_1, updateConference_1) {
|
|
403
|
-
var args_1 = [];
|
|
404
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
405
|
-
args_1[_i - 3] = arguments[_i];
|
|
406
|
-
}
|
|
407
|
-
return __awaiter(_this, __spreadArray([accountId_1, conferenceId_1, updateConference_1], args_1, true), void 0, function (accountId, conferenceId, updateConference, options) {
|
|
408
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
409
|
-
if (options === void 0) { options = {}; }
|
|
410
|
-
return __generator(this, function (_a) {
|
|
411
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
412
|
-
(0, common_1.assertParamExists)('updateConference', 'accountId', accountId);
|
|
413
|
-
// verify required parameter 'conferenceId' is not null or undefined
|
|
414
|
-
(0, common_1.assertParamExists)('updateConference', 'conferenceId', conferenceId);
|
|
415
|
-
// verify required parameter 'updateConference' is not null or undefined
|
|
416
|
-
(0, common_1.assertParamExists)('updateConference', 'updateConference', updateConference);
|
|
417
|
-
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}"
|
|
418
|
-
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
419
|
-
.replace("{".concat("conferenceId", "}"), encodeURIComponent(String(conferenceId)));
|
|
420
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
421
|
-
if (configuration) {
|
|
422
|
-
baseOptions = configuration.baseOptions;
|
|
423
|
-
}
|
|
424
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
425
|
-
localVarHeaderParameter = {};
|
|
426
|
-
localVarQueryParameter = {};
|
|
427
|
-
// authentication Basic required
|
|
428
|
-
// http basic authentication required
|
|
429
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
430
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
431
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
432
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
433
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
434
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateConference, localVarRequestOptions, configuration);
|
|
435
|
-
return [2 /*return*/, {
|
|
436
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
437
|
-
options: localVarRequestOptions,
|
|
438
|
-
}];
|
|
439
|
-
});
|
|
440
|
-
});
|
|
441
|
-
},
|
|
442
|
-
/**
|
|
443
|
-
* Update the conference BXML document.
|
|
444
|
-
* @summary Update Conference BXML
|
|
445
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
446
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
447
|
-
* @param {string} body
|
|
448
|
-
* @param {*} [options] Override http request option.
|
|
449
|
-
* @throws {RequiredError}
|
|
450
|
-
*/
|
|
451
|
-
updateConferenceBxml: function (accountId_1, conferenceId_1, body_1) {
|
|
452
|
-
var args_1 = [];
|
|
453
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
454
|
-
args_1[_i - 3] = arguments[_i];
|
|
455
|
-
}
|
|
456
|
-
return __awaiter(_this, __spreadArray([accountId_1, conferenceId_1, body_1], args_1, true), void 0, function (accountId, conferenceId, body, options) {
|
|
457
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
458
|
-
if (options === void 0) { options = {}; }
|
|
459
|
-
return __generator(this, function (_a) {
|
|
460
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
461
|
-
(0, common_1.assertParamExists)('updateConferenceBxml', 'accountId', accountId);
|
|
462
|
-
// verify required parameter 'conferenceId' is not null or undefined
|
|
463
|
-
(0, common_1.assertParamExists)('updateConferenceBxml', 'conferenceId', conferenceId);
|
|
464
|
-
// verify required parameter 'body' is not null or undefined
|
|
465
|
-
(0, common_1.assertParamExists)('updateConferenceBxml', 'body', body);
|
|
466
|
-
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/bxml"
|
|
467
|
-
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
468
|
-
.replace("{".concat("conferenceId", "}"), encodeURIComponent(String(conferenceId)));
|
|
469
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
470
|
-
if (configuration) {
|
|
471
|
-
baseOptions = configuration.baseOptions;
|
|
472
|
-
}
|
|
473
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
474
|
-
localVarHeaderParameter = {};
|
|
475
|
-
localVarQueryParameter = {};
|
|
476
|
-
// authentication Basic required
|
|
477
|
-
// http basic authentication required
|
|
478
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
479
|
-
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
480
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
481
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
482
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
483
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
484
|
-
return [2 /*return*/, {
|
|
485
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
486
|
-
options: localVarRequestOptions,
|
|
487
|
-
}];
|
|
488
|
-
});
|
|
489
|
-
});
|
|
490
|
-
},
|
|
491
|
-
/**
|
|
492
|
-
* Updates settings for a particular conference member.
|
|
493
|
-
* @summary Update Conference Member
|
|
494
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
495
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
496
|
-
* @param {string} memberId Programmable Voice API Conference Member ID.
|
|
497
|
-
* @param {UpdateConferenceMember} updateConferenceMember
|
|
498
|
-
* @param {*} [options] Override http request option.
|
|
499
|
-
* @throws {RequiredError}
|
|
500
|
-
*/
|
|
501
|
-
updateConferenceMember: function (accountId_1, conferenceId_1, memberId_1, updateConferenceMember_1) {
|
|
502
|
-
var args_1 = [];
|
|
503
|
-
for (var _i = 4; _i < arguments.length; _i++) {
|
|
504
|
-
args_1[_i - 4] = arguments[_i];
|
|
505
|
-
}
|
|
506
|
-
return __awaiter(_this, __spreadArray([accountId_1, conferenceId_1, memberId_1, updateConferenceMember_1], args_1, true), void 0, function (accountId, conferenceId, memberId, updateConferenceMember, options) {
|
|
507
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
508
|
-
if (options === void 0) { options = {}; }
|
|
509
|
-
return __generator(this, function (_a) {
|
|
510
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
511
|
-
(0, common_1.assertParamExists)('updateConferenceMember', 'accountId', accountId);
|
|
512
|
-
// verify required parameter 'conferenceId' is not null or undefined
|
|
513
|
-
(0, common_1.assertParamExists)('updateConferenceMember', 'conferenceId', conferenceId);
|
|
514
|
-
// verify required parameter 'memberId' is not null or undefined
|
|
515
|
-
(0, common_1.assertParamExists)('updateConferenceMember', 'memberId', memberId);
|
|
516
|
-
// verify required parameter 'updateConferenceMember' is not null or undefined
|
|
517
|
-
(0, common_1.assertParamExists)('updateConferenceMember', 'updateConferenceMember', updateConferenceMember);
|
|
518
|
-
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/members/{memberId}"
|
|
519
|
-
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
520
|
-
.replace("{".concat("conferenceId", "}"), encodeURIComponent(String(conferenceId)))
|
|
521
|
-
.replace("{".concat("memberId", "}"), encodeURIComponent(String(memberId)));
|
|
522
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
523
|
-
if (configuration) {
|
|
524
|
-
baseOptions = configuration.baseOptions;
|
|
525
|
-
}
|
|
526
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
527
|
-
localVarHeaderParameter = {};
|
|
528
|
-
localVarQueryParameter = {};
|
|
529
|
-
// authentication Basic required
|
|
530
|
-
// http basic authentication required
|
|
531
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
532
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
533
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
534
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
535
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
536
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateConferenceMember, localVarRequestOptions, configuration);
|
|
537
|
-
return [2 /*return*/, {
|
|
538
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
539
|
-
options: localVarRequestOptions,
|
|
540
|
-
}];
|
|
541
|
-
});
|
|
542
|
-
});
|
|
543
|
-
},
|
|
544
|
-
};
|
|
545
|
-
};
|
|
546
|
-
exports.ConferencesApiAxiosParamCreator = ConferencesApiAxiosParamCreator;
|
|
547
|
-
/**
|
|
548
|
-
* ConferencesApi - functional programming interface
|
|
549
|
-
* @export
|
|
550
|
-
*/
|
|
551
|
-
var ConferencesApiFp = function (configuration) {
|
|
552
|
-
var localVarAxiosParamCreator = (0, exports.ConferencesApiAxiosParamCreator)(configuration);
|
|
553
|
-
return {
|
|
554
|
-
/**
|
|
555
|
-
* Downloads the specified recording file.
|
|
556
|
-
* @summary Download Conference Recording
|
|
557
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
558
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
559
|
-
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
560
|
-
* @param {*} [options] Override http request option.
|
|
561
|
-
* @throws {RequiredError}
|
|
562
|
-
*/
|
|
563
|
-
downloadConferenceRecording: function (accountId, conferenceId, recordingId, options) {
|
|
564
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
565
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
566
|
-
var _a, _b, _c;
|
|
567
|
-
return __generator(this, function (_d) {
|
|
568
|
-
switch (_d.label) {
|
|
569
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadConferenceRecording(accountId, conferenceId, recordingId, options)];
|
|
570
|
-
case 1:
|
|
571
|
-
localVarAxiosArgs = _d.sent();
|
|
572
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
573
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConferencesApi.downloadConferenceRecording']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
574
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
575
|
-
}
|
|
576
|
-
});
|
|
577
|
-
});
|
|
578
|
-
},
|
|
579
|
-
/**
|
|
580
|
-
* Returns information about the specified conference.
|
|
581
|
-
* @summary Get Conference Information
|
|
582
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
583
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
584
|
-
* @param {*} [options] Override http request option.
|
|
585
|
-
* @throws {RequiredError}
|
|
586
|
-
*/
|
|
587
|
-
getConference: function (accountId, conferenceId, options) {
|
|
588
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
589
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
590
|
-
var _a, _b, _c;
|
|
591
|
-
return __generator(this, function (_d) {
|
|
592
|
-
switch (_d.label) {
|
|
593
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getConference(accountId, conferenceId, options)];
|
|
594
|
-
case 1:
|
|
595
|
-
localVarAxiosArgs = _d.sent();
|
|
596
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
597
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConferencesApi.getConference']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
598
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
599
|
-
}
|
|
600
|
-
});
|
|
601
|
-
});
|
|
602
|
-
},
|
|
603
|
-
/**
|
|
604
|
-
* Returns information about the specified conference member.
|
|
605
|
-
* @summary Get Conference Member
|
|
606
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
607
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
608
|
-
* @param {string} memberId Programmable Voice API Conference Member ID.
|
|
609
|
-
* @param {*} [options] Override http request option.
|
|
610
|
-
* @throws {RequiredError}
|
|
611
|
-
*/
|
|
612
|
-
getConferenceMember: function (accountId, conferenceId, memberId, options) {
|
|
613
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
614
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
615
|
-
var _a, _b, _c;
|
|
616
|
-
return __generator(this, function (_d) {
|
|
617
|
-
switch (_d.label) {
|
|
618
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getConferenceMember(accountId, conferenceId, memberId, options)];
|
|
619
|
-
case 1:
|
|
620
|
-
localVarAxiosArgs = _d.sent();
|
|
621
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
622
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConferencesApi.getConferenceMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
623
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
});
|
|
627
|
-
},
|
|
628
|
-
/**
|
|
629
|
-
* Returns metadata for the specified recording.
|
|
630
|
-
* @summary Get Conference Recording Information
|
|
631
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
632
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
633
|
-
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
634
|
-
* @param {*} [options] Override http request option.
|
|
635
|
-
* @throws {RequiredError}
|
|
636
|
-
*/
|
|
637
|
-
getConferenceRecording: function (accountId, conferenceId, recordingId, options) {
|
|
638
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
639
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
640
|
-
var _a, _b, _c;
|
|
641
|
-
return __generator(this, function (_d) {
|
|
642
|
-
switch (_d.label) {
|
|
643
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getConferenceRecording(accountId, conferenceId, recordingId, options)];
|
|
644
|
-
case 1:
|
|
645
|
-
localVarAxiosArgs = _d.sent();
|
|
646
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
647
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConferencesApi.getConferenceRecording']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
648
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
649
|
-
}
|
|
650
|
-
});
|
|
651
|
-
});
|
|
652
|
-
},
|
|
653
|
-
/**
|
|
654
|
-
* Returns a (potentially empty) list of metadata for the recordings that took place during the specified conference.
|
|
655
|
-
* @summary Get Conference Recordings
|
|
656
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
657
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
658
|
-
* @param {*} [options] Override http request option.
|
|
659
|
-
* @throws {RequiredError}
|
|
660
|
-
*/
|
|
661
|
-
listConferenceRecordings: function (accountId, conferenceId, options) {
|
|
662
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
663
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
664
|
-
var _a, _b, _c;
|
|
665
|
-
return __generator(this, function (_d) {
|
|
666
|
-
switch (_d.label) {
|
|
667
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listConferenceRecordings(accountId, conferenceId, options)];
|
|
668
|
-
case 1:
|
|
669
|
-
localVarAxiosArgs = _d.sent();
|
|
670
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
671
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConferencesApi.listConferenceRecordings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
672
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
673
|
-
}
|
|
674
|
-
});
|
|
675
|
-
});
|
|
676
|
-
},
|
|
677
|
-
/**
|
|
678
|
-
* Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of conferences in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of conference records.
|
|
679
|
-
* @summary Get Conferences
|
|
680
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
681
|
-
* @param {string} [name] Filter results by the `name` field.
|
|
682
|
-
* @param {string} [minCreatedTime] Filter results to conferences which have a `createdTime` after or at `minCreatedTime` (in ISO8601 format).
|
|
683
|
-
* @param {string} [maxCreatedTime] Filter results to conferences which have a `createdTime` before or at `maxCreatedTime` (in ISO8601 format).
|
|
684
|
-
* @param {number} [pageSize] Specifies the max number of conferences that will be returned.
|
|
685
|
-
* @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description.
|
|
686
|
-
* @param {*} [options] Override http request option.
|
|
687
|
-
* @throws {RequiredError}
|
|
688
|
-
*/
|
|
689
|
-
listConferences: function (accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options) {
|
|
690
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
691
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
692
|
-
var _a, _b, _c;
|
|
693
|
-
return __generator(this, function (_d) {
|
|
694
|
-
switch (_d.label) {
|
|
695
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listConferences(accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options)];
|
|
696
|
-
case 1:
|
|
697
|
-
localVarAxiosArgs = _d.sent();
|
|
698
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
699
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConferencesApi.listConferences']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
700
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
701
|
-
}
|
|
702
|
-
});
|
|
703
|
-
});
|
|
704
|
-
},
|
|
705
|
-
/**
|
|
706
|
-
* Update the conference state.
|
|
707
|
-
* @summary Update Conference
|
|
708
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
709
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
710
|
-
* @param {UpdateConference} updateConference
|
|
711
|
-
* @param {*} [options] Override http request option.
|
|
712
|
-
* @throws {RequiredError}
|
|
713
|
-
*/
|
|
714
|
-
updateConference: function (accountId, conferenceId, updateConference, options) {
|
|
715
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
716
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
717
|
-
var _a, _b, _c;
|
|
718
|
-
return __generator(this, function (_d) {
|
|
719
|
-
switch (_d.label) {
|
|
720
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateConference(accountId, conferenceId, updateConference, options)];
|
|
721
|
-
case 1:
|
|
722
|
-
localVarAxiosArgs = _d.sent();
|
|
723
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
724
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConferencesApi.updateConference']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
725
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
726
|
-
}
|
|
727
|
-
});
|
|
728
|
-
});
|
|
729
|
-
},
|
|
730
|
-
/**
|
|
731
|
-
* Update the conference BXML document.
|
|
732
|
-
* @summary Update Conference BXML
|
|
733
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
734
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
735
|
-
* @param {string} body
|
|
736
|
-
* @param {*} [options] Override http request option.
|
|
737
|
-
* @throws {RequiredError}
|
|
738
|
-
*/
|
|
739
|
-
updateConferenceBxml: function (accountId, conferenceId, body, options) {
|
|
740
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
741
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
742
|
-
var _a, _b, _c;
|
|
743
|
-
return __generator(this, function (_d) {
|
|
744
|
-
switch (_d.label) {
|
|
745
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateConferenceBxml(accountId, conferenceId, body, options)];
|
|
746
|
-
case 1:
|
|
747
|
-
localVarAxiosArgs = _d.sent();
|
|
748
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
749
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConferencesApi.updateConferenceBxml']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
750
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
751
|
-
}
|
|
752
|
-
});
|
|
753
|
-
});
|
|
754
|
-
},
|
|
755
|
-
/**
|
|
756
|
-
* Updates settings for a particular conference member.
|
|
757
|
-
* @summary Update Conference Member
|
|
758
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
759
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
760
|
-
* @param {string} memberId Programmable Voice API Conference Member ID.
|
|
761
|
-
* @param {UpdateConferenceMember} updateConferenceMember
|
|
762
|
-
* @param {*} [options] Override http request option.
|
|
763
|
-
* @throws {RequiredError}
|
|
764
|
-
*/
|
|
765
|
-
updateConferenceMember: function (accountId, conferenceId, memberId, updateConferenceMember, options) {
|
|
766
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
767
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
768
|
-
var _a, _b, _c;
|
|
769
|
-
return __generator(this, function (_d) {
|
|
770
|
-
switch (_d.label) {
|
|
771
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateConferenceMember(accountId, conferenceId, memberId, updateConferenceMember, options)];
|
|
772
|
-
case 1:
|
|
773
|
-
localVarAxiosArgs = _d.sent();
|
|
774
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
775
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConferencesApi.updateConferenceMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
776
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
777
|
-
}
|
|
778
|
-
});
|
|
779
|
-
});
|
|
780
|
-
},
|
|
781
|
-
};
|
|
782
|
-
};
|
|
783
|
-
exports.ConferencesApiFp = ConferencesApiFp;
|
|
784
|
-
/**
|
|
785
|
-
* ConferencesApi - factory interface
|
|
786
|
-
* @export
|
|
787
|
-
*/
|
|
788
|
-
var ConferencesApiFactory = function (configuration, basePath, axios) {
|
|
789
|
-
var localVarFp = (0, exports.ConferencesApiFp)(configuration);
|
|
790
|
-
return {
|
|
791
|
-
/**
|
|
792
|
-
* Downloads the specified recording file.
|
|
793
|
-
* @summary Download Conference Recording
|
|
794
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
795
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
796
|
-
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
797
|
-
* @param {*} [options] Override http request option.
|
|
798
|
-
* @throws {RequiredError}
|
|
799
|
-
*/
|
|
800
|
-
downloadConferenceRecording: function (accountId, conferenceId, recordingId, options) {
|
|
801
|
-
return localVarFp.downloadConferenceRecording(accountId, conferenceId, recordingId, options).then(function (request) { return request(axios, basePath); });
|
|
802
|
-
},
|
|
803
|
-
/**
|
|
804
|
-
* Returns information about the specified conference.
|
|
805
|
-
* @summary Get Conference Information
|
|
806
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
807
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
808
|
-
* @param {*} [options] Override http request option.
|
|
809
|
-
* @throws {RequiredError}
|
|
810
|
-
*/
|
|
811
|
-
getConference: function (accountId, conferenceId, options) {
|
|
812
|
-
return localVarFp.getConference(accountId, conferenceId, options).then(function (request) { return request(axios, basePath); });
|
|
813
|
-
},
|
|
814
|
-
/**
|
|
815
|
-
* Returns information about the specified conference member.
|
|
816
|
-
* @summary Get Conference Member
|
|
817
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
818
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
819
|
-
* @param {string} memberId Programmable Voice API Conference Member ID.
|
|
820
|
-
* @param {*} [options] Override http request option.
|
|
821
|
-
* @throws {RequiredError}
|
|
822
|
-
*/
|
|
823
|
-
getConferenceMember: function (accountId, conferenceId, memberId, options) {
|
|
824
|
-
return localVarFp.getConferenceMember(accountId, conferenceId, memberId, options).then(function (request) { return request(axios, basePath); });
|
|
825
|
-
},
|
|
826
|
-
/**
|
|
827
|
-
* Returns metadata for the specified recording.
|
|
828
|
-
* @summary Get Conference Recording Information
|
|
829
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
830
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
831
|
-
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
832
|
-
* @param {*} [options] Override http request option.
|
|
833
|
-
* @throws {RequiredError}
|
|
834
|
-
*/
|
|
835
|
-
getConferenceRecording: function (accountId, conferenceId, recordingId, options) {
|
|
836
|
-
return localVarFp.getConferenceRecording(accountId, conferenceId, recordingId, options).then(function (request) { return request(axios, basePath); });
|
|
837
|
-
},
|
|
838
|
-
/**
|
|
839
|
-
* Returns a (potentially empty) list of metadata for the recordings that took place during the specified conference.
|
|
840
|
-
* @summary Get Conference Recordings
|
|
841
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
842
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
843
|
-
* @param {*} [options] Override http request option.
|
|
844
|
-
* @throws {RequiredError}
|
|
845
|
-
*/
|
|
846
|
-
listConferenceRecordings: function (accountId, conferenceId, options) {
|
|
847
|
-
return localVarFp.listConferenceRecordings(accountId, conferenceId, options).then(function (request) { return request(axios, basePath); });
|
|
848
|
-
},
|
|
849
|
-
/**
|
|
850
|
-
* Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of conferences in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of conference records.
|
|
851
|
-
* @summary Get Conferences
|
|
852
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
853
|
-
* @param {string} [name] Filter results by the `name` field.
|
|
854
|
-
* @param {string} [minCreatedTime] Filter results to conferences which have a `createdTime` after or at `minCreatedTime` (in ISO8601 format).
|
|
855
|
-
* @param {string} [maxCreatedTime] Filter results to conferences which have a `createdTime` before or at `maxCreatedTime` (in ISO8601 format).
|
|
856
|
-
* @param {number} [pageSize] Specifies the max number of conferences that will be returned.
|
|
857
|
-
* @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description.
|
|
858
|
-
* @param {*} [options] Override http request option.
|
|
859
|
-
* @throws {RequiredError}
|
|
860
|
-
*/
|
|
861
|
-
listConferences: function (accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options) {
|
|
862
|
-
return localVarFp.listConferences(accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options).then(function (request) { return request(axios, basePath); });
|
|
863
|
-
},
|
|
864
|
-
/**
|
|
865
|
-
* Update the conference state.
|
|
866
|
-
* @summary Update Conference
|
|
867
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
868
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
869
|
-
* @param {UpdateConference} updateConference
|
|
870
|
-
* @param {*} [options] Override http request option.
|
|
871
|
-
* @throws {RequiredError}
|
|
872
|
-
*/
|
|
873
|
-
updateConference: function (accountId, conferenceId, updateConference, options) {
|
|
874
|
-
return localVarFp.updateConference(accountId, conferenceId, updateConference, options).then(function (request) { return request(axios, basePath); });
|
|
875
|
-
},
|
|
876
|
-
/**
|
|
877
|
-
* Update the conference BXML document.
|
|
878
|
-
* @summary Update Conference BXML
|
|
879
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
880
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
881
|
-
* @param {string} body
|
|
882
|
-
* @param {*} [options] Override http request option.
|
|
883
|
-
* @throws {RequiredError}
|
|
884
|
-
*/
|
|
885
|
-
updateConferenceBxml: function (accountId, conferenceId, body, options) {
|
|
886
|
-
return localVarFp.updateConferenceBxml(accountId, conferenceId, body, options).then(function (request) { return request(axios, basePath); });
|
|
887
|
-
},
|
|
888
|
-
/**
|
|
889
|
-
* Updates settings for a particular conference member.
|
|
890
|
-
* @summary Update Conference Member
|
|
891
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
892
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
893
|
-
* @param {string} memberId Programmable Voice API Conference Member ID.
|
|
894
|
-
* @param {UpdateConferenceMember} updateConferenceMember
|
|
895
|
-
* @param {*} [options] Override http request option.
|
|
896
|
-
* @throws {RequiredError}
|
|
897
|
-
*/
|
|
898
|
-
updateConferenceMember: function (accountId, conferenceId, memberId, updateConferenceMember, options) {
|
|
899
|
-
return localVarFp.updateConferenceMember(accountId, conferenceId, memberId, updateConferenceMember, options).then(function (request) { return request(axios, basePath); });
|
|
900
|
-
},
|
|
901
|
-
};
|
|
902
|
-
};
|
|
903
|
-
exports.ConferencesApiFactory = ConferencesApiFactory;
|
|
904
|
-
/**
|
|
905
|
-
* ConferencesApi - object-oriented interface
|
|
906
|
-
* @export
|
|
907
|
-
* @class ConferencesApi
|
|
908
|
-
* @extends {BaseAPI}
|
|
909
|
-
*/
|
|
910
|
-
var ConferencesApi = /** @class */ (function (_super) {
|
|
911
|
-
__extends(ConferencesApi, _super);
|
|
912
|
-
function ConferencesApi() {
|
|
913
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
914
|
-
}
|
|
915
|
-
/**
|
|
916
|
-
* Downloads the specified recording file.
|
|
917
|
-
* @summary Download Conference Recording
|
|
918
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
919
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
920
|
-
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
921
|
-
* @param {*} [options] Override http request option.
|
|
922
|
-
* @throws {RequiredError}
|
|
923
|
-
* @memberof ConferencesApi
|
|
924
|
-
*/
|
|
925
|
-
ConferencesApi.prototype.downloadConferenceRecording = function (accountId, conferenceId, recordingId, options) {
|
|
926
|
-
var _this = this;
|
|
927
|
-
return (0, exports.ConferencesApiFp)(this.configuration).downloadConferenceRecording(accountId, conferenceId, recordingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
928
|
-
};
|
|
929
|
-
/**
|
|
930
|
-
* Returns information about the specified conference.
|
|
931
|
-
* @summary Get Conference Information
|
|
932
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
933
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
934
|
-
* @param {*} [options] Override http request option.
|
|
935
|
-
* @throws {RequiredError}
|
|
936
|
-
* @memberof ConferencesApi
|
|
937
|
-
*/
|
|
938
|
-
ConferencesApi.prototype.getConference = function (accountId, conferenceId, options) {
|
|
939
|
-
var _this = this;
|
|
940
|
-
return (0, exports.ConferencesApiFp)(this.configuration).getConference(accountId, conferenceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
941
|
-
};
|
|
942
|
-
/**
|
|
943
|
-
* Returns information about the specified conference member.
|
|
944
|
-
* @summary Get Conference Member
|
|
945
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
946
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
947
|
-
* @param {string} memberId Programmable Voice API Conference Member ID.
|
|
948
|
-
* @param {*} [options] Override http request option.
|
|
949
|
-
* @throws {RequiredError}
|
|
950
|
-
* @memberof ConferencesApi
|
|
951
|
-
*/
|
|
952
|
-
ConferencesApi.prototype.getConferenceMember = function (accountId, conferenceId, memberId, options) {
|
|
953
|
-
var _this = this;
|
|
954
|
-
return (0, exports.ConferencesApiFp)(this.configuration).getConferenceMember(accountId, conferenceId, memberId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
955
|
-
};
|
|
956
|
-
/**
|
|
957
|
-
* Returns metadata for the specified recording.
|
|
958
|
-
* @summary Get Conference Recording Information
|
|
959
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
960
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
961
|
-
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
962
|
-
* @param {*} [options] Override http request option.
|
|
963
|
-
* @throws {RequiredError}
|
|
964
|
-
* @memberof ConferencesApi
|
|
965
|
-
*/
|
|
966
|
-
ConferencesApi.prototype.getConferenceRecording = function (accountId, conferenceId, recordingId, options) {
|
|
967
|
-
var _this = this;
|
|
968
|
-
return (0, exports.ConferencesApiFp)(this.configuration).getConferenceRecording(accountId, conferenceId, recordingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
969
|
-
};
|
|
970
|
-
/**
|
|
971
|
-
* Returns a (potentially empty) list of metadata for the recordings that took place during the specified conference.
|
|
972
|
-
* @summary Get Conference Recordings
|
|
973
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
974
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
975
|
-
* @param {*} [options] Override http request option.
|
|
976
|
-
* @throws {RequiredError}
|
|
977
|
-
* @memberof ConferencesApi
|
|
978
|
-
*/
|
|
979
|
-
ConferencesApi.prototype.listConferenceRecordings = function (accountId, conferenceId, options) {
|
|
980
|
-
var _this = this;
|
|
981
|
-
return (0, exports.ConferencesApiFp)(this.configuration).listConferenceRecordings(accountId, conferenceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
982
|
-
};
|
|
983
|
-
/**
|
|
984
|
-
* Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of conferences in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of conference records.
|
|
985
|
-
* @summary Get Conferences
|
|
986
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
987
|
-
* @param {string} [name] Filter results by the `name` field.
|
|
988
|
-
* @param {string} [minCreatedTime] Filter results to conferences which have a `createdTime` after or at `minCreatedTime` (in ISO8601 format).
|
|
989
|
-
* @param {string} [maxCreatedTime] Filter results to conferences which have a `createdTime` before or at `maxCreatedTime` (in ISO8601 format).
|
|
990
|
-
* @param {number} [pageSize] Specifies the max number of conferences that will be returned.
|
|
991
|
-
* @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description.
|
|
992
|
-
* @param {*} [options] Override http request option.
|
|
993
|
-
* @throws {RequiredError}
|
|
994
|
-
* @memberof ConferencesApi
|
|
995
|
-
*/
|
|
996
|
-
ConferencesApi.prototype.listConferences = function (accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options) {
|
|
997
|
-
var _this = this;
|
|
998
|
-
return (0, exports.ConferencesApiFp)(this.configuration).listConferences(accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
999
|
-
};
|
|
1000
|
-
/**
|
|
1001
|
-
* Update the conference state.
|
|
1002
|
-
* @summary Update Conference
|
|
1003
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
1004
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
1005
|
-
* @param {UpdateConference} updateConference
|
|
1006
|
-
* @param {*} [options] Override http request option.
|
|
1007
|
-
* @throws {RequiredError}
|
|
1008
|
-
* @memberof ConferencesApi
|
|
1009
|
-
*/
|
|
1010
|
-
ConferencesApi.prototype.updateConference = function (accountId, conferenceId, updateConference, options) {
|
|
1011
|
-
var _this = this;
|
|
1012
|
-
return (0, exports.ConferencesApiFp)(this.configuration).updateConference(accountId, conferenceId, updateConference, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1013
|
-
};
|
|
1014
|
-
/**
|
|
1015
|
-
* Update the conference BXML document.
|
|
1016
|
-
* @summary Update Conference BXML
|
|
1017
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
1018
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
1019
|
-
* @param {string} body
|
|
1020
|
-
* @param {*} [options] Override http request option.
|
|
1021
|
-
* @throws {RequiredError}
|
|
1022
|
-
* @memberof ConferencesApi
|
|
1023
|
-
*/
|
|
1024
|
-
ConferencesApi.prototype.updateConferenceBxml = function (accountId, conferenceId, body, options) {
|
|
1025
|
-
var _this = this;
|
|
1026
|
-
return (0, exports.ConferencesApiFp)(this.configuration).updateConferenceBxml(accountId, conferenceId, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1027
|
-
};
|
|
1028
|
-
/**
|
|
1029
|
-
* Updates settings for a particular conference member.
|
|
1030
|
-
* @summary Update Conference Member
|
|
1031
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
1032
|
-
* @param {string} conferenceId Programmable Voice API Conference ID.
|
|
1033
|
-
* @param {string} memberId Programmable Voice API Conference Member ID.
|
|
1034
|
-
* @param {UpdateConferenceMember} updateConferenceMember
|
|
1035
|
-
* @param {*} [options] Override http request option.
|
|
1036
|
-
* @throws {RequiredError}
|
|
1037
|
-
* @memberof ConferencesApi
|
|
1038
|
-
*/
|
|
1039
|
-
ConferencesApi.prototype.updateConferenceMember = function (accountId, conferenceId, memberId, updateConferenceMember, options) {
|
|
1040
|
-
var _this = this;
|
|
1041
|
-
return (0, exports.ConferencesApiFp)(this.configuration).updateConferenceMember(accountId, conferenceId, memberId, updateConferenceMember, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1042
|
-
};
|
|
1043
|
-
return ConferencesApi;
|
|
1044
|
-
}(base_1.BaseAPI));
|
|
1045
|
-
exports.ConferencesApi = ConferencesApi;
|