bandwidth-sdk 8.1.3 → 8.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bandwidth/component.yaml +1 -0
- package/.github/workflows/deploy.yml +15 -11
- package/.github/workflows/test-pr.yml +3 -3
- package/.github/workflows/test-smoke.yml +13 -13
- package/.openapi-generator/VERSION +1 -1
- package/api/calls-api.ts +14 -17
- package/api/conferences-api.ts +31 -34
- package/api/endpoints-api.ts +14 -16
- package/api/media-api.ts +28 -29
- package/api/messages-api.ts +13 -14
- package/api/mfaapi.ts +7 -10
- package/api/multi-channel-api.ts +7 -8
- package/api/phone-number-lookup-api.ts +8 -10
- package/api/recordings-api.ts +37 -39
- package/api/statistics-api.ts +3 -3
- package/api/toll-free-verification-api.ts +23 -27
- package/api/transcriptions-api.ts +12 -12
- package/bandwidth.yml +161 -55
- package/common.ts +18 -4
- package/configuration.ts +1 -1
- package/coverage/clover.xml +948 -890
- package/coverage/coverage-final.json +14 -14
- package/coverage/lcov-report/index.html +19 -19
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +25 -34
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +46 -55
- package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +25 -31
- package/coverage/lcov-report/node-sdk/api/index.html +69 -69
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +38 -41
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +21 -24
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +16 -25
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +14 -17
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +17 -23
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +53 -59
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +9 -9
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +38 -50
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +20 -20
- package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/common.ts.html +55 -13
- package/coverage/lcov-report/node-sdk/configuration.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/index.html +15 -15
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Connect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Endpoint.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/device-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +7 -4
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +2 -2
- package/coverage/lcov.info +2413 -2353
- package/custom_templates/common.mustache +18 -4
- package/custom_templates/package.mustache +1 -1
- package/dist/api/calls-api.d.ts +5 -5
- package/dist/api/calls-api.js +13 -8
- package/dist/api/conferences-api.d.ts +9 -9
- package/dist/api/conferences-api.js +30 -21
- package/dist/api/endpoints-api.d.ts +5 -5
- package/dist/api/endpoints-api.js +13 -8
- package/dist/api/media-api.d.ts +20 -20
- package/dist/api/media-api.js +27 -23
- package/dist/api/messages-api.d.ts +10 -10
- package/dist/api/messages-api.js +12 -10
- package/dist/api/mfaapi.d.ts +3 -3
- package/dist/api/mfaapi.js +6 -3
- package/dist/api/multi-channel-api.d.ts +5 -5
- package/dist/api/multi-channel-api.js +6 -5
- package/dist/api/phone-number-lookup-api.d.ts +3 -3
- package/dist/api/phone-number-lookup-api.js +7 -4
- package/dist/api/recordings-api.d.ts +10 -10
- package/dist/api/recordings-api.js +36 -26
- package/dist/api/statistics-api.d.ts +1 -1
- package/dist/api/statistics-api.js +2 -1
- package/dist/api/toll-free-verification-api.d.ts +9 -9
- package/dist/api/toll-free-verification-api.js +22 -13
- package/dist/api/transcriptions-api.d.ts +3 -3
- package/dist/api/transcriptions-api.js +11 -8
- package/dist/common.d.ts +6 -0
- package/dist/common.js +18 -3
- package/dist/configuration.js +1 -1
- package/dist/models/answer-callback.d.ts +4 -0
- package/dist/models/business-entity-type-enum.js +1 -1
- package/dist/models/business-registration-type-enum.js +1 -1
- package/dist/models/call-direction-enum.js +1 -1
- package/dist/models/call-state-enum.js +1 -1
- package/dist/models/call-transcription-detected-language-enum.js +1 -1
- package/dist/models/call-transcription-track-enum.js +1 -1
- package/dist/models/callback-method-enum.js +1 -1
- package/dist/models/card-width-enum.js +1 -1
- package/dist/models/completed-lookup-status-enum.js +1 -1
- package/dist/models/conference-state-enum.js +1 -1
- package/dist/models/deactivation-event-enum.js +1 -1
- package/dist/models/device-status-enum.js +1 -1
- package/dist/models/disconnect-callback.d.ts +8 -0
- package/dist/models/endpoint-direction-enum.js +1 -1
- package/dist/models/endpoint-event-type-enum.js +1 -1
- package/dist/models/endpoint-status-enum.js +1 -1
- package/dist/models/endpoint-type-enum.js +1 -1
- package/dist/models/file-format-enum.js +1 -1
- package/dist/models/in-progress-lookup-status-enum.js +1 -1
- package/dist/models/inbound-callback-type-enum.js +1 -1
- package/dist/models/initiate-callback.d.ts +10 -0
- package/dist/models/latest-message-delivery-status-enum.js +1 -1
- package/dist/models/line-type-enum.js +1 -1
- package/dist/models/list-message-direction-enum.js +1 -1
- package/dist/models/machine-detection-mode-enum.js +1 -1
- package/dist/models/message-direction-enum.js +1 -1
- package/dist/models/message-status-enum.js +1 -1
- package/dist/models/message-type-enum.js +1 -1
- package/dist/models/multi-channel-message-channel-enum.js +1 -1
- package/dist/models/priority-enum.js +1 -1
- package/dist/models/product-type-enum.js +1 -1
- package/dist/models/rbm-action-type-enum.js +1 -1
- package/dist/models/rbm-media-height-enum.js +1 -1
- package/dist/models/rbm-open-url-enum.js +1 -1
- package/dist/models/rbm-web-view-enum.js +1 -1
- package/dist/models/recording-state-enum.js +1 -1
- package/dist/models/redirect-method-enum.js +1 -1
- package/dist/models/standalone-card-orientation-enum.js +1 -1
- package/dist/models/status-callback-type-enum.d.ts +2 -1
- package/dist/models/status-callback-type-enum.js +3 -2
- package/dist/models/tfv-callback-status-enum.js +1 -1
- package/dist/models/tfv-status-enum.js +1 -1
- package/dist/models/thumbnail-alignment-enum.js +1 -1
- package/dist/models/webhook-subscription-type-enum.js +1 -1
- package/docs/AnswerCallback.md +2 -0
- package/docs/DisconnectCallback.md +4 -0
- package/docs/InitiateCallback.md +4 -0
- package/docs/MediaApi.md +8 -8
- package/docs/MessagesApi.md +4 -4
- package/docs/MultiChannelApi.md +2 -2
- package/docs/StatusCallbackTypeEnum.md +3 -1
- package/models/answer-callback.ts +4 -0
- package/models/business-entity-type-enum.ts +1 -1
- package/models/business-registration-type-enum.ts +1 -1
- package/models/call-direction-enum.ts +1 -1
- package/models/call-state-enum.ts +1 -1
- package/models/call-transcription-detected-language-enum.ts +1 -1
- package/models/call-transcription-track-enum.ts +1 -1
- package/models/callback-method-enum.ts +1 -1
- package/models/card-width-enum.ts +1 -1
- package/models/completed-lookup-status-enum.ts +1 -1
- package/models/conference-state-enum.ts +1 -1
- package/models/deactivation-event-enum.ts +1 -1
- package/models/device-status-enum.ts +1 -1
- package/models/disconnect-callback.ts +8 -0
- package/models/endpoint-direction-enum.ts +1 -1
- package/models/endpoint-event-type-enum.ts +1 -1
- package/models/endpoint-status-enum.ts +1 -1
- package/models/endpoint-type-enum.ts +1 -1
- package/models/file-format-enum.ts +1 -1
- package/models/in-progress-lookup-status-enum.ts +1 -1
- package/models/inbound-callback-type-enum.ts +1 -1
- package/models/initiate-callback.ts +8 -0
- package/models/latest-message-delivery-status-enum.ts +1 -1
- package/models/line-type-enum.ts +1 -1
- package/models/list-message-direction-enum.ts +1 -1
- package/models/machine-detection-mode-enum.ts +1 -1
- package/models/message-direction-enum.ts +1 -1
- package/models/message-status-enum.ts +1 -1
- package/models/message-type-enum.ts +1 -1
- package/models/multi-channel-message-channel-enum.ts +1 -1
- package/models/priority-enum.ts +1 -1
- package/models/product-type-enum.ts +1 -1
- package/models/rbm-action-type-enum.ts +1 -1
- package/models/rbm-media-height-enum.ts +1 -1
- package/models/rbm-open-url-enum.ts +1 -1
- package/models/rbm-web-view-enum.ts +1 -1
- package/models/recording-state-enum.ts +1 -1
- package/models/redirect-method-enum.ts +1 -1
- package/models/standalone-card-orientation-enum.ts +1 -1
- package/models/status-callback-type-enum.ts +3 -2
- package/models/tfv-callback-status-enum.ts +1 -1
- package/models/tfv-status-enum.ts +1 -1
- package/models/thumbnail-alignment-enum.ts +1 -1
- package/models/webhook-subscription-type-enum.ts +1 -1
- package/openapitools.json +1 -1
- package/package.json +2 -2
- package/tests/unit/models/answer-callback.test.ts +2 -0
- package/tests/unit/models/disconnect-callback.test.ts +4 -0
- package/tests/unit/models/initiate-callback.test.ts +4 -0
- package/tests/unit/models/status-callback-type-enum.test.ts +2 -0
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
steps:
|
|
37
37
|
- name: Set Release Version
|
|
38
38
|
run: |
|
|
39
|
-
RELEASE_VERSION=${
|
|
39
|
+
RELEASE_VERSION=${TAG#v}
|
|
40
40
|
if [[ $RELEASE_VERSION =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)?$ ]]; then
|
|
41
41
|
echo "PACKAGE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
|
|
42
42
|
else
|
|
@@ -45,18 +45,11 @@ jobs:
|
|
|
45
45
|
echo 'Please update your tag to match the expected regex pattern'
|
|
46
46
|
exit 1
|
|
47
47
|
fi
|
|
48
|
+
env:
|
|
49
|
+
TAG: ${{ github.event.release.tag_name }}
|
|
48
50
|
|
|
49
51
|
- name: Checkout
|
|
50
|
-
uses: actions/checkout@
|
|
51
|
-
|
|
52
|
-
- name: Setup Node
|
|
53
|
-
uses: actions/setup-node@v6
|
|
54
|
-
with:
|
|
55
|
-
node-version: 20
|
|
56
|
-
registry-url: "https://registry.npmjs.org"
|
|
57
|
-
|
|
58
|
-
- name: Update NPM
|
|
59
|
-
run: npm install -g npm@latest
|
|
52
|
+
uses: actions/checkout@v7
|
|
60
53
|
|
|
61
54
|
- name: Set OpenAPI Generator Version
|
|
62
55
|
run: |
|
|
@@ -71,12 +64,23 @@ jobs:
|
|
|
71
64
|
language: typescript-axios
|
|
72
65
|
additional-properties: --additional-properties=npmVersion=$PACKAGE_VERSION
|
|
73
66
|
|
|
67
|
+
- name: Setup Node
|
|
68
|
+
uses: actions/setup-node@v7
|
|
69
|
+
with:
|
|
70
|
+
node-version: 24
|
|
71
|
+
registry-url: "https://registry.npmjs.org"
|
|
72
|
+
|
|
73
|
+
- name: Update NPM
|
|
74
|
+
run: npm install -g npm@latest
|
|
75
|
+
|
|
74
76
|
- name: Install Packages and Test
|
|
75
77
|
run: |
|
|
76
78
|
yarn
|
|
77
79
|
npm install -g @stoplight/prism-cli
|
|
78
80
|
prism mock ./bandwidth.yml & yarn test-unit
|
|
79
81
|
shell: bash
|
|
82
|
+
env:
|
|
83
|
+
NODE_AUTH_TOKEN: DUMMY_TOKEN
|
|
80
84
|
|
|
81
85
|
- name: Publish npm Package
|
|
82
86
|
run: |
|
|
@@ -34,14 +34,14 @@ jobs:
|
|
|
34
34
|
strategy:
|
|
35
35
|
matrix:
|
|
36
36
|
os: [windows-2022, windows-2025, ubuntu-22.04, ubuntu-24.04]
|
|
37
|
-
node-version: [20, 22, 24]
|
|
37
|
+
node-version: [20, 22, 24, 26]
|
|
38
38
|
fail-fast: false
|
|
39
39
|
steps:
|
|
40
40
|
- name: Checkout
|
|
41
|
-
uses: actions/checkout@
|
|
41
|
+
uses: actions/checkout@v7
|
|
42
42
|
|
|
43
43
|
- name: Setup Node
|
|
44
|
-
uses: actions/setup-node@
|
|
44
|
+
uses: actions/setup-node@v7
|
|
45
45
|
with:
|
|
46
46
|
node-version: ${{ matrix.node-version }}
|
|
47
47
|
|
|
@@ -64,10 +64,10 @@ jobs:
|
|
|
64
64
|
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_UP_APPLICATION_ID }}
|
|
65
65
|
steps:
|
|
66
66
|
- name: Checkout
|
|
67
|
-
uses: actions/checkout@
|
|
67
|
+
uses: actions/checkout@v7
|
|
68
68
|
|
|
69
69
|
- name: Setup Node
|
|
70
|
-
uses: actions/setup-node@
|
|
70
|
+
uses: actions/setup-node@v7
|
|
71
71
|
with:
|
|
72
72
|
node-version: 24
|
|
73
73
|
|
|
@@ -79,14 +79,14 @@ jobs:
|
|
|
79
79
|
OPERATING_SYSTEM: "ubuntu"
|
|
80
80
|
|
|
81
81
|
notify_for_failures:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
82
|
+
name: Notify for Failures
|
|
83
|
+
needs: [test, test_up]
|
|
84
|
+
if: failure()
|
|
85
|
+
runs-on: ubuntu-latest
|
|
86
|
+
steps:
|
|
87
|
+
- name: Notify Slack of Failures
|
|
88
|
+
uses: Bandwidth/build-notify-slack-action@v2
|
|
89
|
+
with:
|
|
90
|
+
job-status: failure
|
|
91
|
+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
|
|
92
|
+
slack-channel: ${{ secrets.SLACK_CHANNEL }}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.24.0
|
package/api/calls-api.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
@@ -50,7 +50,7 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
50
50
|
// verify required parameter 'createCall' is not null or undefined
|
|
51
51
|
assertParamExists('createCall', 'createCall', createCall)
|
|
52
52
|
const localVarPath = `/accounts/{accountId}/calls`
|
|
53
|
-
.replace(
|
|
53
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
54
54
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
55
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56
56
|
let baseOptions;
|
|
@@ -70,9 +70,8 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
70
70
|
// oauth required
|
|
71
71
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
73
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
74
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
76
75
|
|
|
77
76
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
78
77
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -98,8 +97,8 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
98
97
|
// verify required parameter 'callId' is not null or undefined
|
|
99
98
|
assertParamExists('getCallState', 'callId', callId)
|
|
100
99
|
const localVarPath = `/accounts/{accountId}/calls/{callId}`
|
|
101
|
-
.replace(
|
|
102
|
-
.replace(
|
|
100
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
101
|
+
.replace('{callId}', encodeURIComponent(String(callId)));
|
|
103
102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
103
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105
104
|
let baseOptions;
|
|
@@ -119,8 +118,8 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
119
118
|
// oauth required
|
|
120
119
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
121
120
|
|
|
121
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
122
122
|
|
|
123
|
-
|
|
124
123
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
124
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
125
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -148,7 +147,7 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
148
147
|
// verify required parameter 'accountId' is not null or undefined
|
|
149
148
|
assertParamExists('listCalls', 'accountId', accountId)
|
|
150
149
|
const localVarPath = `/accounts/{accountId}/calls`
|
|
151
|
-
.replace(
|
|
150
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
152
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
152
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
154
153
|
let baseOptions;
|
|
@@ -196,8 +195,8 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
196
195
|
localVarQueryParameter['pageToken'] = pageToken;
|
|
197
196
|
}
|
|
198
197
|
|
|
198
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
199
199
|
|
|
200
|
-
|
|
201
200
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
202
201
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
203
202
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -224,8 +223,8 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
224
223
|
// verify required parameter 'updateCall' is not null or undefined
|
|
225
224
|
assertParamExists('updateCall', 'updateCall', updateCall)
|
|
226
225
|
const localVarPath = `/accounts/{accountId}/calls/{callId}`
|
|
227
|
-
.replace(
|
|
228
|
-
.replace(
|
|
226
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
227
|
+
.replace('{callId}', encodeURIComponent(String(callId)));
|
|
229
228
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
230
229
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
231
230
|
let baseOptions;
|
|
@@ -245,9 +244,8 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
245
244
|
// oauth required
|
|
246
245
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
247
246
|
|
|
248
|
-
|
|
249
|
-
|
|
250
247
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
248
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
251
249
|
|
|
252
250
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
253
251
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -276,8 +274,8 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
276
274
|
// verify required parameter 'body' is not null or undefined
|
|
277
275
|
assertParamExists('updateCallBxml', 'body', body)
|
|
278
276
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/bxml`
|
|
279
|
-
.replace(
|
|
280
|
-
.replace(
|
|
277
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
278
|
+
.replace('{callId}', encodeURIComponent(String(callId)));
|
|
281
279
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
282
280
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
283
281
|
let baseOptions;
|
|
@@ -297,9 +295,8 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
297
295
|
// oauth required
|
|
298
296
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
299
297
|
|
|
300
|
-
|
|
301
|
-
|
|
302
298
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
299
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
303
300
|
|
|
304
301
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
305
302
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
package/api/conferences-api.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
@@ -55,9 +55,9 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
55
55
|
// verify required parameter 'recordingId' is not null or undefined
|
|
56
56
|
assertParamExists('downloadConferenceRecording', 'recordingId', recordingId)
|
|
57
57
|
const localVarPath = `/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/media`
|
|
58
|
-
.replace(
|
|
59
|
-
.replace(
|
|
60
|
-
.replace(
|
|
58
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
59
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)))
|
|
60
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
61
61
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
62
62
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
63
63
|
let baseOptions;
|
|
@@ -77,8 +77,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
77
77
|
// oauth required
|
|
78
78
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
79
79
|
|
|
80
|
+
localVarHeaderParameter['Accept'] = 'audio/vnd.wave,audio/mpeg,application/json';
|
|
80
81
|
|
|
81
|
-
|
|
82
82
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
83
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
84
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -102,8 +102,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
102
102
|
// verify required parameter 'conferenceId' is not null or undefined
|
|
103
103
|
assertParamExists('getConference', 'conferenceId', conferenceId)
|
|
104
104
|
const localVarPath = `/accounts/{accountId}/conferences/{conferenceId}`
|
|
105
|
-
.replace(
|
|
106
|
-
.replace(
|
|
105
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
106
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)));
|
|
107
107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
108
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
109
109
|
let baseOptions;
|
|
@@ -123,8 +123,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
123
123
|
// oauth required
|
|
124
124
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
125
125
|
|
|
126
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
126
127
|
|
|
127
|
-
|
|
128
128
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
129
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
130
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -151,9 +151,9 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
151
151
|
// verify required parameter 'memberId' is not null or undefined
|
|
152
152
|
assertParamExists('getConferenceMember', 'memberId', memberId)
|
|
153
153
|
const localVarPath = `/accounts/{accountId}/conferences/{conferenceId}/members/{memberId}`
|
|
154
|
-
.replace(
|
|
155
|
-
.replace(
|
|
156
|
-
.replace(
|
|
154
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
155
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)))
|
|
156
|
+
.replace('{memberId}', encodeURIComponent(String(memberId)));
|
|
157
157
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
158
158
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
159
159
|
let baseOptions;
|
|
@@ -173,8 +173,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
173
173
|
// oauth required
|
|
174
174
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
175
175
|
|
|
176
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
176
177
|
|
|
177
|
-
|
|
178
178
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
179
179
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
180
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -201,9 +201,9 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
201
201
|
// verify required parameter 'recordingId' is not null or undefined
|
|
202
202
|
assertParamExists('getConferenceRecording', 'recordingId', recordingId)
|
|
203
203
|
const localVarPath = `/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}`
|
|
204
|
-
.replace(
|
|
205
|
-
.replace(
|
|
206
|
-
.replace(
|
|
204
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
205
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)))
|
|
206
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
207
207
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
208
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
209
209
|
let baseOptions;
|
|
@@ -223,8 +223,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
223
223
|
// oauth required
|
|
224
224
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
225
225
|
|
|
226
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
226
227
|
|
|
227
|
-
|
|
228
228
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
229
229
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
230
230
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -248,8 +248,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
248
248
|
// verify required parameter 'conferenceId' is not null or undefined
|
|
249
249
|
assertParamExists('listConferenceRecordings', 'conferenceId', conferenceId)
|
|
250
250
|
const localVarPath = `/accounts/{accountId}/conferences/{conferenceId}/recordings`
|
|
251
|
-
.replace(
|
|
252
|
-
.replace(
|
|
251
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
252
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)));
|
|
253
253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
254
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
255
255
|
let baseOptions;
|
|
@@ -269,8 +269,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
269
269
|
// oauth required
|
|
270
270
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
271
271
|
|
|
272
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
272
273
|
|
|
273
|
-
|
|
274
274
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
275
275
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
276
276
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -296,7 +296,7 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
296
296
|
// verify required parameter 'accountId' is not null or undefined
|
|
297
297
|
assertParamExists('listConferences', 'accountId', accountId)
|
|
298
298
|
const localVarPath = `/accounts/{accountId}/conferences`
|
|
299
|
-
.replace(
|
|
299
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
300
300
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
301
301
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
302
302
|
let baseOptions;
|
|
@@ -336,8 +336,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
336
336
|
localVarQueryParameter['pageToken'] = pageToken;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
339
340
|
|
|
340
|
-
|
|
341
341
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
342
342
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
343
343
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -364,8 +364,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
364
364
|
// verify required parameter 'updateConference' is not null or undefined
|
|
365
365
|
assertParamExists('updateConference', 'updateConference', updateConference)
|
|
366
366
|
const localVarPath = `/accounts/{accountId}/conferences/{conferenceId}`
|
|
367
|
-
.replace(
|
|
368
|
-
.replace(
|
|
367
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
368
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)));
|
|
369
369
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
370
370
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
371
371
|
let baseOptions;
|
|
@@ -385,9 +385,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
385
385
|
// oauth required
|
|
386
386
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
387
387
|
|
|
388
|
-
|
|
389
|
-
|
|
390
388
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
389
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
391
390
|
|
|
392
391
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
393
392
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -416,8 +415,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
416
415
|
// verify required parameter 'body' is not null or undefined
|
|
417
416
|
assertParamExists('updateConferenceBxml', 'body', body)
|
|
418
417
|
const localVarPath = `/accounts/{accountId}/conferences/{conferenceId}/bxml`
|
|
419
|
-
.replace(
|
|
420
|
-
.replace(
|
|
418
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
419
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)));
|
|
421
420
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
422
421
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
423
422
|
let baseOptions;
|
|
@@ -437,9 +436,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
437
436
|
// oauth required
|
|
438
437
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
439
438
|
|
|
440
|
-
|
|
441
|
-
|
|
442
439
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
440
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
443
441
|
|
|
444
442
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
445
443
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -471,9 +469,9 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
471
469
|
// verify required parameter 'updateConferenceMember' is not null or undefined
|
|
472
470
|
assertParamExists('updateConferenceMember', 'updateConferenceMember', updateConferenceMember)
|
|
473
471
|
const localVarPath = `/accounts/{accountId}/conferences/{conferenceId}/members/{memberId}`
|
|
474
|
-
.replace(
|
|
475
|
-
.replace(
|
|
476
|
-
.replace(
|
|
472
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
473
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)))
|
|
474
|
+
.replace('{memberId}', encodeURIComponent(String(memberId)));
|
|
477
475
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
478
476
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
479
477
|
let baseOptions;
|
|
@@ -493,9 +491,8 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
493
491
|
// oauth required
|
|
494
492
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
495
493
|
|
|
496
|
-
|
|
497
|
-
|
|
498
494
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
495
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
499
496
|
|
|
500
497
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
501
498
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
package/api/endpoints-api.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
@@ -54,7 +54,7 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
54
54
|
// verify required parameter 'body' is not null or undefined
|
|
55
55
|
assertParamExists('createEndpoint', 'body', body)
|
|
56
56
|
const localVarPath = `/accounts/{accountId}/endpoints`
|
|
57
|
-
.replace(
|
|
57
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
58
58
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
59
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
60
60
|
let baseOptions;
|
|
@@ -74,9 +74,8 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
74
74
|
// oauth required
|
|
75
75
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
77
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
78
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
80
79
|
|
|
81
80
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
81
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -102,8 +101,8 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
102
101
|
// verify required parameter 'endpointId' is not null or undefined
|
|
103
102
|
assertParamExists('deleteEndpoint', 'endpointId', endpointId)
|
|
104
103
|
const localVarPath = `/accounts/{accountId}/endpoints/{endpointId}`
|
|
105
|
-
.replace(
|
|
106
|
-
.replace(
|
|
104
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
105
|
+
.replace('{endpointId}', encodeURIComponent(String(endpointId)));
|
|
107
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
107
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
109
108
|
let baseOptions;
|
|
@@ -123,8 +122,8 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
123
122
|
// oauth required
|
|
124
123
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
125
124
|
|
|
125
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
126
126
|
|
|
127
|
-
|
|
128
127
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
128
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
129
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -148,8 +147,8 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
148
147
|
// verify required parameter 'endpointId' is not null or undefined
|
|
149
148
|
assertParamExists('getEndpoint', 'endpointId', endpointId)
|
|
150
149
|
const localVarPath = `/accounts/{accountId}/endpoints/{endpointId}`
|
|
151
|
-
.replace(
|
|
152
|
-
.replace(
|
|
150
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
151
|
+
.replace('{endpointId}', encodeURIComponent(String(endpointId)));
|
|
153
152
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
153
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
154
|
let baseOptions;
|
|
@@ -169,8 +168,8 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
169
168
|
// oauth required
|
|
170
169
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
171
170
|
|
|
171
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
172
172
|
|
|
173
|
-
|
|
174
173
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
175
174
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
175
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -195,7 +194,7 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
195
194
|
// verify required parameter 'accountId' is not null or undefined
|
|
196
195
|
assertParamExists('listEndpoints', 'accountId', accountId)
|
|
197
196
|
const localVarPath = `/accounts/{accountId}/endpoints`
|
|
198
|
-
.replace(
|
|
197
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
199
198
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
199
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
201
200
|
let baseOptions;
|
|
@@ -231,8 +230,8 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
231
230
|
localVarQueryParameter['limit'] = limit;
|
|
232
231
|
}
|
|
233
232
|
|
|
233
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
234
234
|
|
|
235
|
-
|
|
236
235
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
237
236
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
238
237
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -259,8 +258,8 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
259
258
|
// verify required parameter 'body' is not null or undefined
|
|
260
259
|
assertParamExists('updateEndpointBxml', 'body', body)
|
|
261
260
|
const localVarPath = `/accounts/{accountId}/endpoints/{endpointId}/bxml`
|
|
262
|
-
.replace(
|
|
263
|
-
.replace(
|
|
261
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
262
|
+
.replace('{endpointId}', encodeURIComponent(String(endpointId)));
|
|
264
263
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
265
264
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
266
265
|
let baseOptions;
|
|
@@ -280,9 +279,8 @@ export const EndpointsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
280
279
|
// oauth required
|
|
281
280
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
282
281
|
|
|
283
|
-
|
|
284
|
-
|
|
285
282
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
283
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
286
284
|
|
|
287
285
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
288
286
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|