bandwidth-sdk 7.0.1 → 7.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 +3 -1
- package/.github/workflows/test-pr.yml +3 -1
- package/.github/workflows/test-smoke.yml +4 -2
- package/README.md +10 -2
- package/api/calls-api.ts +20 -0
- package/api/conferences-api.ts +36 -0
- package/api/media-api.ts +16 -0
- package/api/messages-api.ts +8 -0
- package/api/mfaapi.ts +12 -0
- package/api/multi-channel-api.ts +4 -0
- package/api/phone-number-lookup-api.ts +12 -0
- package/api/recordings-api.ts +40 -0
- package/api/statistics-api.ts +4 -0
- package/api/toll-free-verification-api.ts +36 -0
- package/api/transcriptions-api.ts +12 -0
- package/bandwidth.yml +7 -0
- package/common.ts +3 -1
- package/configuration.ts +44 -2
- package/coverage/clover.xml +1112 -1046
- package/coverage/coverage-final.json +13 -13
- package/coverage/lcov-report/index.html +26 -26
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +66 -6
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +114 -6
- package/coverage/lcov-report/node-sdk/api/index.html +60 -60
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +54 -6
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +30 -6
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +18 -6
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +126 -6
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +18 -6
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +114 -6
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +42 -6
- 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 +24 -18
- package/coverage/lcov-report/node-sdk/configuration.ts.html +138 -12
- package/coverage/lcov-report/node-sdk/index.html +30 -30
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +1 -1
- 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/CustomParam.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 +1 -1
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +1 -1
- package/coverage/lcov.info +2779 -2692
- package/custom_templates/README.mustache +2 -2
- package/custom_templates/common.mustache +3 -1
- package/custom_templates/configuration.mustache +43 -1
- package/custom_templates/package.mustache +5 -2
- package/dist/api/calls-api.js +192 -142
- package/dist/api/conferences-api.js +333 -243
- package/dist/api/media-api.js +142 -102
- package/dist/api/messages-api.js +145 -125
- package/dist/api/mfaapi.js +102 -72
- package/dist/api/multi-channel-api.js +34 -24
- package/dist/api/phone-number-lookup-api.js +101 -71
- package/dist/api/recordings-api.js +368 -268
- package/dist/api/statistics-api.js +30 -20
- package/dist/api/toll-free-verification-api.js +298 -208
- package/dist/api/transcriptions-api.js +105 -75
- package/dist/common.js +3 -1
- package/dist/configuration.d.ts +18 -0
- package/dist/configuration.js +71 -3
- package/docs/CallsApi.md +5 -5
- package/docs/ConferencesApi.md +9 -9
- package/docs/MFAApi.md +3 -3
- package/docs/MediaApi.md +4 -4
- package/docs/MessagesApi.md +2 -2
- package/docs/MultiChannelApi.md +1 -1
- package/docs/PhoneNumberLookupApi.md +3 -3
- package/docs/RecordingsApi.md +10 -10
- package/docs/StatisticsApi.md +1 -1
- package/docs/TollFreeVerificationApi.md +9 -9
- package/docs/TranscriptionsApi.md +3 -3
- package/jest.config.js +2 -0
- package/package.json +6 -3
- package/tests/smoke/bxml.test.ts +4 -1
- package/tests/smoke/calls-api.test.ts +4 -1
- package/tests/smoke/conferences-api.test.ts +4 -1
- package/tests/smoke/phone-number-lookup-api.test.ts +2 -2
- package/tests/smoke/recordings-api.test.ts +4 -1
- package/tests/smoke/statistics-api.test.ts +4 -1
- package/tests/smoke/toll-free-verification-api.test.ts +4 -1
- package/tests/smoke/transcriptions-api.test.ts +4 -1
|
@@ -13,6 +13,8 @@ jobs:
|
|
|
13
13
|
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
|
|
14
14
|
BW_USERNAME: ${{ secrets.BW_USERNAME }}
|
|
15
15
|
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
|
|
16
|
+
BW_CLIENT_ID: ${{ secrets.BW_CLIENT_ID }}
|
|
17
|
+
BW_CLIENT_SECRET: ${{ secrets.BW_CLIENT_SECRET }}
|
|
16
18
|
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
|
|
17
19
|
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
|
|
18
20
|
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
|
|
@@ -46,7 +48,7 @@ jobs:
|
|
|
46
48
|
- name: Setup Node
|
|
47
49
|
uses: actions/setup-node@v6
|
|
48
50
|
with:
|
|
49
|
-
node-version:
|
|
51
|
+
node-version: 24
|
|
50
52
|
registry-url: "https://registry.npmjs.org"
|
|
51
53
|
|
|
52
54
|
- name: Set OpenAPI Generator Version
|
|
@@ -13,6 +13,8 @@ env:
|
|
|
13
13
|
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
|
|
14
14
|
BW_USERNAME: ${{ secrets.BW_USERNAME }}
|
|
15
15
|
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
|
|
16
|
+
BW_CLIENT_ID: ${{ secrets.BW_CLIENT_ID }}
|
|
17
|
+
BW_CLIENT_SECRET: ${{ secrets.BW_CLIENT_SECRET }}
|
|
16
18
|
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
|
|
17
19
|
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
|
|
18
20
|
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
|
|
@@ -32,7 +34,7 @@ jobs:
|
|
|
32
34
|
strategy:
|
|
33
35
|
matrix:
|
|
34
36
|
os: [windows-2022, windows-2025, ubuntu-22.04, ubuntu-24.04]
|
|
35
|
-
node-version: [
|
|
37
|
+
node-version: [20, 22, 24]
|
|
36
38
|
fail-fast: false
|
|
37
39
|
steps:
|
|
38
40
|
- name: Checkout
|
|
@@ -15,6 +15,8 @@ concurrency:
|
|
|
15
15
|
env:
|
|
16
16
|
BW_USERNAME: ${{ secrets.BW_USERNAME }}
|
|
17
17
|
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
|
|
18
|
+
BW_CLIENT_ID: ${{ secrets.BW_CLIENT_ID }}
|
|
19
|
+
BW_CLIENT_SECRET: ${{ secrets.BW_CLIENT_SECRET }}
|
|
18
20
|
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
|
|
19
21
|
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
|
|
20
22
|
USER_NUMBER: ${{ secrets.USER_NUMBER }}
|
|
@@ -40,7 +42,7 @@ jobs:
|
|
|
40
42
|
- name: Setup Node
|
|
41
43
|
uses: actions/setup-node@v6
|
|
42
44
|
with:
|
|
43
|
-
node-version:
|
|
45
|
+
node-version: 24
|
|
44
46
|
|
|
45
47
|
- name: Install Packages and Test
|
|
46
48
|
run: |
|
|
@@ -67,7 +69,7 @@ jobs:
|
|
|
67
69
|
- name: Setup Node
|
|
68
70
|
uses: actions/setup-node@v6
|
|
69
71
|
with:
|
|
70
|
-
node-version:
|
|
72
|
+
node-version: 24
|
|
71
73
|
|
|
72
74
|
- name: Install Packages and Test
|
|
73
75
|
run: |
|
package/README.md
CHANGED
|
@@ -84,8 +84,8 @@ The following is a simple example of how to use this module:
|
|
|
84
84
|
import { CallsApi, Configuration } from 'bandwidth-sdk';
|
|
85
85
|
|
|
86
86
|
const config = new Configuration({
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
clientId: BW_CLIENT_ID,
|
|
88
|
+
clientSecret: BW_CLIENT_SECRET
|
|
89
89
|
});
|
|
90
90
|
const callsApi = new CallsApi(config);
|
|
91
91
|
|
|
@@ -346,3 +346,11 @@ Authentication schemes defined for the API:
|
|
|
346
346
|
|
|
347
347
|
- **Type**: HTTP basic authentication
|
|
348
348
|
|
|
349
|
+
<a id="OAuth2"></a>
|
|
350
|
+
### OAuth2
|
|
351
|
+
|
|
352
|
+
- **Type**: OAuth
|
|
353
|
+
- **Flow**: application
|
|
354
|
+
- **Authorization URL**:
|
|
355
|
+
- **Scopes**: N/A
|
|
356
|
+
|
package/api/calls-api.ts
CHANGED
|
@@ -66,6 +66,10 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
66
66
|
// http basic authentication required
|
|
67
67
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
68
68
|
|
|
69
|
+
// authentication OAuth2 required
|
|
70
|
+
// oauth required
|
|
71
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
72
|
+
|
|
69
73
|
|
|
70
74
|
|
|
71
75
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -111,6 +115,10 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
111
115
|
// http basic authentication required
|
|
112
116
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
113
117
|
|
|
118
|
+
// authentication OAuth2 required
|
|
119
|
+
// oauth required
|
|
120
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
121
|
+
|
|
114
122
|
|
|
115
123
|
|
|
116
124
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,6 +164,10 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
156
164
|
// http basic authentication required
|
|
157
165
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
158
166
|
|
|
167
|
+
// authentication OAuth2 required
|
|
168
|
+
// oauth required
|
|
169
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
170
|
+
|
|
159
171
|
if (to !== undefined) {
|
|
160
172
|
localVarQueryParameter['to'] = to;
|
|
161
173
|
}
|
|
@@ -229,6 +241,10 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
229
241
|
// http basic authentication required
|
|
230
242
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
231
243
|
|
|
244
|
+
// authentication OAuth2 required
|
|
245
|
+
// oauth required
|
|
246
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
247
|
+
|
|
232
248
|
|
|
233
249
|
|
|
234
250
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -277,6 +293,10 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
277
293
|
// http basic authentication required
|
|
278
294
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
279
295
|
|
|
296
|
+
// authentication OAuth2 required
|
|
297
|
+
// oauth required
|
|
298
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
299
|
+
|
|
280
300
|
|
|
281
301
|
|
|
282
302
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
package/api/conferences-api.ts
CHANGED
|
@@ -73,6 +73,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
73
73
|
// http basic authentication required
|
|
74
74
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
75
75
|
|
|
76
|
+
// authentication OAuth2 required
|
|
77
|
+
// oauth required
|
|
78
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
79
|
+
|
|
76
80
|
|
|
77
81
|
|
|
78
82
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -115,6 +119,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
115
119
|
// http basic authentication required
|
|
116
120
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
117
121
|
|
|
122
|
+
// authentication OAuth2 required
|
|
123
|
+
// oauth required
|
|
124
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
125
|
+
|
|
118
126
|
|
|
119
127
|
|
|
120
128
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -161,6 +169,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
161
169
|
// http basic authentication required
|
|
162
170
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
163
171
|
|
|
172
|
+
// authentication OAuth2 required
|
|
173
|
+
// oauth required
|
|
174
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
175
|
+
|
|
164
176
|
|
|
165
177
|
|
|
166
178
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -207,6 +219,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
207
219
|
// http basic authentication required
|
|
208
220
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
209
221
|
|
|
222
|
+
// authentication OAuth2 required
|
|
223
|
+
// oauth required
|
|
224
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
225
|
+
|
|
210
226
|
|
|
211
227
|
|
|
212
228
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -249,6 +265,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
249
265
|
// http basic authentication required
|
|
250
266
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
251
267
|
|
|
268
|
+
// authentication OAuth2 required
|
|
269
|
+
// oauth required
|
|
270
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
271
|
+
|
|
252
272
|
|
|
253
273
|
|
|
254
274
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -292,6 +312,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
292
312
|
// http basic authentication required
|
|
293
313
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
294
314
|
|
|
315
|
+
// authentication OAuth2 required
|
|
316
|
+
// oauth required
|
|
317
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
318
|
+
|
|
295
319
|
if (name !== undefined) {
|
|
296
320
|
localVarQueryParameter['name'] = name;
|
|
297
321
|
}
|
|
@@ -357,6 +381,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
357
381
|
// http basic authentication required
|
|
358
382
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
359
383
|
|
|
384
|
+
// authentication OAuth2 required
|
|
385
|
+
// oauth required
|
|
386
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
387
|
+
|
|
360
388
|
|
|
361
389
|
|
|
362
390
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -405,6 +433,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
405
433
|
// http basic authentication required
|
|
406
434
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
407
435
|
|
|
436
|
+
// authentication OAuth2 required
|
|
437
|
+
// oauth required
|
|
438
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
439
|
+
|
|
408
440
|
|
|
409
441
|
|
|
410
442
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
@@ -457,6 +489,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
457
489
|
// http basic authentication required
|
|
458
490
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
459
491
|
|
|
492
|
+
// authentication OAuth2 required
|
|
493
|
+
// oauth required
|
|
494
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
495
|
+
|
|
460
496
|
|
|
461
497
|
|
|
462
498
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
package/api/media-api.ts
CHANGED
|
@@ -61,6 +61,10 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
61
61
|
// http basic authentication required
|
|
62
62
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
63
63
|
|
|
64
|
+
// authentication OAuth2 required
|
|
65
|
+
// oauth required
|
|
66
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
67
|
+
|
|
64
68
|
|
|
65
69
|
|
|
66
70
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -103,6 +107,10 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
103
107
|
// http basic authentication required
|
|
104
108
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
105
109
|
|
|
110
|
+
// authentication OAuth2 required
|
|
111
|
+
// oauth required
|
|
112
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
113
|
+
|
|
106
114
|
|
|
107
115
|
|
|
108
116
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -142,6 +150,10 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
142
150
|
// http basic authentication required
|
|
143
151
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
144
152
|
|
|
153
|
+
// authentication OAuth2 required
|
|
154
|
+
// oauth required
|
|
155
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
156
|
+
|
|
145
157
|
|
|
146
158
|
|
|
147
159
|
if (continuationToken != null) {
|
|
@@ -192,6 +204,10 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
192
204
|
// http basic authentication required
|
|
193
205
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
194
206
|
|
|
207
|
+
// authentication OAuth2 required
|
|
208
|
+
// oauth required
|
|
209
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
210
|
+
|
|
195
211
|
|
|
196
212
|
|
|
197
213
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
package/api/messages-api.ts
CHANGED
|
@@ -74,6 +74,10 @@ export const MessagesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
74
74
|
// http basic authentication required
|
|
75
75
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
76
76
|
|
|
77
|
+
// authentication OAuth2 required
|
|
78
|
+
// oauth required
|
|
79
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
80
|
+
|
|
77
81
|
|
|
78
82
|
|
|
79
83
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -142,6 +146,10 @@ export const MessagesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
142
146
|
// http basic authentication required
|
|
143
147
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
144
148
|
|
|
149
|
+
// authentication OAuth2 required
|
|
150
|
+
// oauth required
|
|
151
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
152
|
+
|
|
145
153
|
if (messageId !== undefined) {
|
|
146
154
|
localVarQueryParameter['messageId'] = messageId;
|
|
147
155
|
}
|
package/api/mfaapi.ts
CHANGED
|
@@ -72,6 +72,10 @@ export const MFAApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
72
72
|
// http basic authentication required
|
|
73
73
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
74
74
|
|
|
75
|
+
// authentication OAuth2 required
|
|
76
|
+
// oauth required
|
|
77
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
78
|
+
|
|
75
79
|
|
|
76
80
|
|
|
77
81
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -116,6 +120,10 @@ export const MFAApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
116
120
|
// http basic authentication required
|
|
117
121
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
118
122
|
|
|
123
|
+
// authentication OAuth2 required
|
|
124
|
+
// oauth required
|
|
125
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
126
|
+
|
|
119
127
|
|
|
120
128
|
|
|
121
129
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -160,6 +168,10 @@ export const MFAApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
160
168
|
// http basic authentication required
|
|
161
169
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
162
170
|
|
|
171
|
+
// authentication OAuth2 required
|
|
172
|
+
// oauth required
|
|
173
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
174
|
+
|
|
163
175
|
|
|
164
176
|
|
|
165
177
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
package/api/multi-channel-api.ts
CHANGED
|
@@ -62,6 +62,10 @@ export const MultiChannelApiAxiosParamCreator = function (configuration?: Config
|
|
|
62
62
|
// http basic authentication required
|
|
63
63
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
64
64
|
|
|
65
|
+
// authentication OAuth2 required
|
|
66
|
+
// oauth required
|
|
67
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
68
|
+
|
|
65
69
|
|
|
66
70
|
|
|
67
71
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -68,6 +68,10 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C
|
|
|
68
68
|
// http basic authentication required
|
|
69
69
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
70
70
|
|
|
71
|
+
// authentication OAuth2 required
|
|
72
|
+
// oauth required
|
|
73
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
74
|
+
|
|
71
75
|
|
|
72
76
|
|
|
73
77
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -112,6 +116,10 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C
|
|
|
112
116
|
// http basic authentication required
|
|
113
117
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
114
118
|
|
|
119
|
+
// authentication OAuth2 required
|
|
120
|
+
// oauth required
|
|
121
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
122
|
+
|
|
115
123
|
|
|
116
124
|
|
|
117
125
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -157,6 +165,10 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C
|
|
|
157
165
|
// http basic authentication required
|
|
158
166
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
159
167
|
|
|
168
|
+
// authentication OAuth2 required
|
|
169
|
+
// oauth required
|
|
170
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
171
|
+
|
|
160
172
|
|
|
161
173
|
|
|
162
174
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
package/api/recordings-api.ts
CHANGED
|
@@ -71,6 +71,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
71
71
|
// http basic authentication required
|
|
72
72
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
73
73
|
|
|
74
|
+
// authentication OAuth2 required
|
|
75
|
+
// oauth required
|
|
76
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
77
|
+
|
|
74
78
|
|
|
75
79
|
|
|
76
80
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -117,6 +121,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
117
121
|
// http basic authentication required
|
|
118
122
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
119
123
|
|
|
124
|
+
// authentication OAuth2 required
|
|
125
|
+
// oauth required
|
|
126
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
127
|
+
|
|
120
128
|
|
|
121
129
|
|
|
122
130
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -163,6 +171,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
163
171
|
// http basic authentication required
|
|
164
172
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
165
173
|
|
|
174
|
+
// authentication OAuth2 required
|
|
175
|
+
// oauth required
|
|
176
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
177
|
+
|
|
166
178
|
|
|
167
179
|
|
|
168
180
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -209,6 +221,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
209
221
|
// http basic authentication required
|
|
210
222
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
211
223
|
|
|
224
|
+
// authentication OAuth2 required
|
|
225
|
+
// oauth required
|
|
226
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
227
|
+
|
|
212
228
|
|
|
213
229
|
|
|
214
230
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -255,6 +271,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
255
271
|
// http basic authentication required
|
|
256
272
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
257
273
|
|
|
274
|
+
// authentication OAuth2 required
|
|
275
|
+
// oauth required
|
|
276
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
277
|
+
|
|
258
278
|
|
|
259
279
|
|
|
260
280
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -301,6 +321,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
301
321
|
// http basic authentication required
|
|
302
322
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
303
323
|
|
|
324
|
+
// authentication OAuth2 required
|
|
325
|
+
// oauth required
|
|
326
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
327
|
+
|
|
304
328
|
|
|
305
329
|
|
|
306
330
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -343,6 +367,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
343
367
|
// http basic authentication required
|
|
344
368
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
345
369
|
|
|
370
|
+
// authentication OAuth2 required
|
|
371
|
+
// oauth required
|
|
372
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
373
|
+
|
|
346
374
|
if (to !== undefined) {
|
|
347
375
|
localVarQueryParameter['to'] = to;
|
|
348
376
|
}
|
|
@@ -401,6 +429,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
401
429
|
// http basic authentication required
|
|
402
430
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
403
431
|
|
|
432
|
+
// authentication OAuth2 required
|
|
433
|
+
// oauth required
|
|
434
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
435
|
+
|
|
404
436
|
|
|
405
437
|
|
|
406
438
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -450,6 +482,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
450
482
|
// http basic authentication required
|
|
451
483
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
452
484
|
|
|
485
|
+
// authentication OAuth2 required
|
|
486
|
+
// oauth required
|
|
487
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
488
|
+
|
|
453
489
|
|
|
454
490
|
|
|
455
491
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -498,6 +534,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
498
534
|
// http basic authentication required
|
|
499
535
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
500
536
|
|
|
537
|
+
// authentication OAuth2 required
|
|
538
|
+
// oauth required
|
|
539
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
540
|
+
|
|
501
541
|
|
|
502
542
|
|
|
503
543
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
package/api/statistics-api.ts
CHANGED
|
@@ -57,6 +57,10 @@ export const StatisticsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
57
57
|
// http basic authentication required
|
|
58
58
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
59
59
|
|
|
60
|
+
// authentication OAuth2 required
|
|
61
|
+
// oauth required
|
|
62
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
63
|
+
|
|
60
64
|
|
|
61
65
|
|
|
62
66
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -70,6 +70,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
70
70
|
// http basic authentication required
|
|
71
71
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
72
72
|
|
|
73
|
+
// authentication OAuth2 required
|
|
74
|
+
// oauth required
|
|
75
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
76
|
+
|
|
73
77
|
|
|
74
78
|
|
|
75
79
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -115,6 +119,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
115
119
|
// http basic authentication required
|
|
116
120
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
117
121
|
|
|
122
|
+
// authentication OAuth2 required
|
|
123
|
+
// oauth required
|
|
124
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
125
|
+
|
|
118
126
|
|
|
119
127
|
|
|
120
128
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -157,6 +165,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
157
165
|
// http basic authentication required
|
|
158
166
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
159
167
|
|
|
168
|
+
// authentication OAuth2 required
|
|
169
|
+
// oauth required
|
|
170
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
171
|
+
|
|
160
172
|
|
|
161
173
|
|
|
162
174
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -199,6 +211,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
199
211
|
// http basic authentication required
|
|
200
212
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
201
213
|
|
|
214
|
+
// authentication OAuth2 required
|
|
215
|
+
// oauth required
|
|
216
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
217
|
+
|
|
202
218
|
|
|
203
219
|
|
|
204
220
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -233,6 +249,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
233
249
|
// http basic authentication required
|
|
234
250
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
235
251
|
|
|
252
|
+
// authentication OAuth2 required
|
|
253
|
+
// oauth required
|
|
254
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
255
|
+
|
|
236
256
|
|
|
237
257
|
|
|
238
258
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -271,6 +291,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
271
291
|
// http basic authentication required
|
|
272
292
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
273
293
|
|
|
294
|
+
// authentication OAuth2 required
|
|
295
|
+
// oauth required
|
|
296
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
297
|
+
|
|
274
298
|
|
|
275
299
|
|
|
276
300
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -312,6 +336,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
312
336
|
// http basic authentication required
|
|
313
337
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
314
338
|
|
|
339
|
+
// authentication OAuth2 required
|
|
340
|
+
// oauth required
|
|
341
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
342
|
+
|
|
315
343
|
|
|
316
344
|
|
|
317
345
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -360,6 +388,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
360
388
|
// http basic authentication required
|
|
361
389
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
362
390
|
|
|
391
|
+
// authentication OAuth2 required
|
|
392
|
+
// oauth required
|
|
393
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
394
|
+
|
|
363
395
|
|
|
364
396
|
|
|
365
397
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -408,6 +440,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?
|
|
|
408
440
|
// http basic authentication required
|
|
409
441
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
410
442
|
|
|
443
|
+
// authentication OAuth2 required
|
|
444
|
+
// oauth required
|
|
445
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
446
|
+
|
|
411
447
|
|
|
412
448
|
|
|
413
449
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -67,6 +67,10 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
67
67
|
// http basic authentication required
|
|
68
68
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
69
69
|
|
|
70
|
+
// authentication OAuth2 required
|
|
71
|
+
// oauth required
|
|
72
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
73
|
+
|
|
70
74
|
|
|
71
75
|
|
|
72
76
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -113,6 +117,10 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
113
117
|
// http basic authentication required
|
|
114
118
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
115
119
|
|
|
120
|
+
// authentication OAuth2 required
|
|
121
|
+
// oauth required
|
|
122
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
123
|
+
|
|
116
124
|
|
|
117
125
|
|
|
118
126
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -155,6 +163,10 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
155
163
|
// http basic authentication required
|
|
156
164
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
157
165
|
|
|
166
|
+
// authentication OAuth2 required
|
|
167
|
+
// oauth required
|
|
168
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
169
|
+
|
|
158
170
|
|
|
159
171
|
|
|
160
172
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
package/bandwidth.yml
CHANGED
|
@@ -9,6 +9,7 @@ info:
|
|
|
9
9
|
version: 1.0.0
|
|
10
10
|
security:
|
|
11
11
|
- Basic: []
|
|
12
|
+
- OAuth2: []
|
|
12
13
|
tags:
|
|
13
14
|
- name: Messages
|
|
14
15
|
- name: Media
|
|
@@ -8427,6 +8428,12 @@ components:
|
|
|
8427
8428
|
|
|
8428
8429
|
|
|
8429
8430
|
- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
|
|
8431
|
+
OAuth2:
|
|
8432
|
+
type: oauth2
|
|
8433
|
+
flows:
|
|
8434
|
+
clientCredentials:
|
|
8435
|
+
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
|
|
8436
|
+
scopes: {}
|
|
8430
8437
|
callbacks:
|
|
8431
8438
|
inboundCallback:
|
|
8432
8439
|
'{inboundCallbackUrl}':
|
package/common.ts
CHANGED
|
@@ -58,7 +58,9 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
58
58
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
59
59
|
? await configuration.accessToken(name, scopes)
|
|
60
60
|
: await configuration.accessToken;
|
|
61
|
-
|
|
61
|
+
if (localVarAccessTokenValue) {
|
|
62
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
63
|
+
}
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
|