bandwidth-sdk 3.1.2 → 3.2.1
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 +8 -1
- package/.openapi-generator/VERSION +1 -1
- package/api/calls-api.ts +5 -5
- package/api/conferences-api.ts +9 -9
- package/api/media-api.ts +10 -13
- package/api/messages-api.ts +2 -2
- package/api/mfaapi.ts +3 -3
- package/api/phone-number-lookup-api.ts +2 -2
- package/api/recordings-api.ts +10 -10
- package/api/statistics-api.ts +1 -1
- package/api/transcriptions-api.ts +3 -3
- package/bandwidth.yml +2 -2
- package/configuration.ts +7 -1
- package/coverage/clover.xml +114 -114
- package/coverage/coverage-final.json +10 -10
- package/coverage/lcov-report/index.html +7 -7
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +13 -13
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +21 -21
- package/coverage/lcov-report/node-sdk/api/index.html +21 -21
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +23 -32
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +7 -7
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +9 -9
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +7 -7
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +22 -22
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +5 -5
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +9 -9
- 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 +1 -1
- package/coverage/lcov-report/node-sdk/configuration.ts.html +23 -5
- package/coverage/lcov-report/node-sdk/index.html +5 -5
- 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/conference-state-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/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.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/lookup-status-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/priority-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.info +302 -298
- package/custom_templates/configuration.mustache +105 -0
- package/dist/api/calls-api.d.ts +5 -5
- package/dist/api/conferences-api.d.ts +9 -9
- package/dist/api/media-api.d.ts +4 -4
- package/dist/api/media-api.js +1 -1
- package/dist/api/messages-api.d.ts +2 -2
- package/dist/api/mfaapi.d.ts +3 -3
- package/dist/api/phone-number-lookup-api.d.ts +2 -2
- package/dist/api/recordings-api.d.ts +10 -10
- package/dist/api/statistics-api.d.ts +1 -1
- package/dist/api/transcriptions-api.d.ts +3 -3
- package/dist/configuration.js +13 -1
- package/dist/models/create-call.d.ts +1 -1
- package/models/create-call.ts +1 -1
- package/openapi-config.yml +1 -0
- package/openapitools.json +1 -1
- package/package.json +1 -1
- package/tests/smoke/media-api.test.ts +15 -5
|
@@ -49,6 +49,13 @@ jobs:
|
|
|
49
49
|
node-version: 22
|
|
50
50
|
registry-url: "https://registry.npmjs.org"
|
|
51
51
|
|
|
52
|
+
- name: Generate SDK with Updated Version
|
|
53
|
+
uses: Bandwidth/generate-sdk-action@v4.0.0
|
|
54
|
+
with:
|
|
55
|
+
openapi-generator-version: 7.10.0
|
|
56
|
+
language: typescript-axios
|
|
57
|
+
additional-properties: --additional-properties=npmVersion=$PACKAGE_VERSION
|
|
58
|
+
|
|
52
59
|
- name: Install Packages and Test
|
|
53
60
|
run: |
|
|
54
61
|
yarn
|
|
@@ -58,7 +65,7 @@ jobs:
|
|
|
58
65
|
|
|
59
66
|
- name: Publish npm Package
|
|
60
67
|
run: |
|
|
61
|
-
npm version $PACKAGE_VERSION --no-git-tag-version
|
|
68
|
+
npm version $PACKAGE_VERSION --no-git-tag-version --allow-same-version
|
|
62
69
|
npm publish --access public
|
|
63
70
|
env:
|
|
64
71
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.10.0
|
package/api/calls-api.ts
CHANGED
|
@@ -398,7 +398,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
|
|
|
398
398
|
* @param {*} [options] Override http request option.
|
|
399
399
|
* @throws {RequiredError}
|
|
400
400
|
*/
|
|
401
|
-
createCall(accountId: string, createCall: CreateCall, options?:
|
|
401
|
+
createCall(accountId: string, createCall: CreateCall, options?: RawAxiosRequestConfig): AxiosPromise<CreateCallResponse> {
|
|
402
402
|
return localVarFp.createCall(accountId, createCall, options).then((request) => request(axios, basePath));
|
|
403
403
|
},
|
|
404
404
|
/**
|
|
@@ -409,7 +409,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
|
|
|
409
409
|
* @param {*} [options] Override http request option.
|
|
410
410
|
* @throws {RequiredError}
|
|
411
411
|
*/
|
|
412
|
-
getCallState(accountId: string, callId: string, options?:
|
|
412
|
+
getCallState(accountId: string, callId: string, options?: RawAxiosRequestConfig): AxiosPromise<CallState> {
|
|
413
413
|
return localVarFp.getCallState(accountId, callId, options).then((request) => request(axios, basePath));
|
|
414
414
|
},
|
|
415
415
|
/**
|
|
@@ -426,7 +426,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
|
|
|
426
426
|
* @param {*} [options] Override http request option.
|
|
427
427
|
* @throws {RequiredError}
|
|
428
428
|
*/
|
|
429
|
-
listCalls(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, disconnectCause?: string, pageSize?: number, pageToken?: string, options?:
|
|
429
|
+
listCalls(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, disconnectCause?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CallState>> {
|
|
430
430
|
return localVarFp.listCalls(accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options).then((request) => request(axios, basePath));
|
|
431
431
|
},
|
|
432
432
|
/**
|
|
@@ -438,7 +438,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
|
|
|
438
438
|
* @param {*} [options] Override http request option.
|
|
439
439
|
* @throws {RequiredError}
|
|
440
440
|
*/
|
|
441
|
-
updateCall(accountId: string, callId: string, updateCall: UpdateCall, options?:
|
|
441
|
+
updateCall(accountId: string, callId: string, updateCall: UpdateCall, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
442
442
|
return localVarFp.updateCall(accountId, callId, updateCall, options).then((request) => request(axios, basePath));
|
|
443
443
|
},
|
|
444
444
|
/**
|
|
@@ -450,7 +450,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
|
|
|
450
450
|
* @param {*} [options] Override http request option.
|
|
451
451
|
* @throws {RequiredError}
|
|
452
452
|
*/
|
|
453
|
-
updateCallBxml(accountId: string, callId: string, body: string, options?:
|
|
453
|
+
updateCallBxml(accountId: string, callId: string, body: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
454
454
|
return localVarFp.updateCallBxml(accountId, callId, body, options).then((request) => request(axios, basePath));
|
|
455
455
|
},
|
|
456
456
|
};
|
package/api/conferences-api.ts
CHANGED
|
@@ -638,7 +638,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
|
|
|
638
638
|
* @param {*} [options] Override http request option.
|
|
639
639
|
* @throws {RequiredError}
|
|
640
640
|
*/
|
|
641
|
-
downloadConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?:
|
|
641
|
+
downloadConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
642
642
|
return localVarFp.downloadConferenceRecording(accountId, conferenceId, recordingId, options).then((request) => request(axios, basePath));
|
|
643
643
|
},
|
|
644
644
|
/**
|
|
@@ -649,7 +649,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
|
|
|
649
649
|
* @param {*} [options] Override http request option.
|
|
650
650
|
* @throws {RequiredError}
|
|
651
651
|
*/
|
|
652
|
-
getConference(accountId: string, conferenceId: string, options?:
|
|
652
|
+
getConference(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Conference> {
|
|
653
653
|
return localVarFp.getConference(accountId, conferenceId, options).then((request) => request(axios, basePath));
|
|
654
654
|
},
|
|
655
655
|
/**
|
|
@@ -661,7 +661,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
|
|
|
661
661
|
* @param {*} [options] Override http request option.
|
|
662
662
|
* @throws {RequiredError}
|
|
663
663
|
*/
|
|
664
|
-
getConferenceMember(accountId: string, conferenceId: string, memberId: string, options?:
|
|
664
|
+
getConferenceMember(accountId: string, conferenceId: string, memberId: string, options?: RawAxiosRequestConfig): AxiosPromise<ConferenceMember> {
|
|
665
665
|
return localVarFp.getConferenceMember(accountId, conferenceId, memberId, options).then((request) => request(axios, basePath));
|
|
666
666
|
},
|
|
667
667
|
/**
|
|
@@ -673,7 +673,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
|
|
|
673
673
|
* @param {*} [options] Override http request option.
|
|
674
674
|
* @throws {RequiredError}
|
|
675
675
|
*/
|
|
676
|
-
getConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?:
|
|
676
|
+
getConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<ConferenceRecordingMetadata> {
|
|
677
677
|
return localVarFp.getConferenceRecording(accountId, conferenceId, recordingId, options).then((request) => request(axios, basePath));
|
|
678
678
|
},
|
|
679
679
|
/**
|
|
@@ -684,7 +684,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
|
|
|
684
684
|
* @param {*} [options] Override http request option.
|
|
685
685
|
* @throws {RequiredError}
|
|
686
686
|
*/
|
|
687
|
-
listConferenceRecordings(accountId: string, conferenceId: string, options?:
|
|
687
|
+
listConferenceRecordings(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ConferenceRecordingMetadata>> {
|
|
688
688
|
return localVarFp.listConferenceRecordings(accountId, conferenceId, options).then((request) => request(axios, basePath));
|
|
689
689
|
},
|
|
690
690
|
/**
|
|
@@ -699,7 +699,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
|
|
|
699
699
|
* @param {*} [options] Override http request option.
|
|
700
700
|
* @throws {RequiredError}
|
|
701
701
|
*/
|
|
702
|
-
listConferences(accountId: string, name?: string, minCreatedTime?: string, maxCreatedTime?: string, pageSize?: number, pageToken?: string, options?:
|
|
702
|
+
listConferences(accountId: string, name?: string, minCreatedTime?: string, maxCreatedTime?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Conference>> {
|
|
703
703
|
return localVarFp.listConferences(accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options).then((request) => request(axios, basePath));
|
|
704
704
|
},
|
|
705
705
|
/**
|
|
@@ -711,7 +711,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
|
|
|
711
711
|
* @param {*} [options] Override http request option.
|
|
712
712
|
* @throws {RequiredError}
|
|
713
713
|
*/
|
|
714
|
-
updateConference(accountId: string, conferenceId: string, updateConference: UpdateConference, options?:
|
|
714
|
+
updateConference(accountId: string, conferenceId: string, updateConference: UpdateConference, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
715
715
|
return localVarFp.updateConference(accountId, conferenceId, updateConference, options).then((request) => request(axios, basePath));
|
|
716
716
|
},
|
|
717
717
|
/**
|
|
@@ -723,7 +723,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
|
|
|
723
723
|
* @param {*} [options] Override http request option.
|
|
724
724
|
* @throws {RequiredError}
|
|
725
725
|
*/
|
|
726
|
-
updateConferenceBxml(accountId: string, conferenceId: string, body: string, options?:
|
|
726
|
+
updateConferenceBxml(accountId: string, conferenceId: string, body: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
727
727
|
return localVarFp.updateConferenceBxml(accountId, conferenceId, body, options).then((request) => request(axios, basePath));
|
|
728
728
|
},
|
|
729
729
|
/**
|
|
@@ -736,7 +736,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
|
|
|
736
736
|
* @param {*} [options] Override http request option.
|
|
737
737
|
* @throws {RequiredError}
|
|
738
738
|
*/
|
|
739
|
-
updateConferenceMember(accountId: string, conferenceId: string, memberId: string, updateConferenceMember: UpdateConferenceMember, options?:
|
|
739
|
+
updateConferenceMember(accountId: string, conferenceId: string, memberId: string, updateConferenceMember: UpdateConferenceMember, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
740
740
|
return localVarFp.updateConferenceMember(accountId, conferenceId, memberId, updateConferenceMember, options).then((request) => request(axios, basePath));
|
|
741
741
|
},
|
|
742
742
|
};
|
package/api/media-api.ts
CHANGED
|
@@ -143,12 +143,11 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
143
143
|
// http basic authentication required
|
|
144
144
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
145
145
|
|
|
146
|
+
|
|
147
|
+
|
|
146
148
|
if (continuationToken != null) {
|
|
147
149
|
localVarHeaderParameter['Continuation-Token'] = String(continuationToken);
|
|
148
150
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
151
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
153
152
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
153
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -194,18 +193,16 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
194
193
|
// http basic authentication required
|
|
195
194
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
196
195
|
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
199
|
+
|
|
197
200
|
if (contentType != null) {
|
|
198
201
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
199
202
|
}
|
|
200
|
-
|
|
201
203
|
if (cacheControl != null) {
|
|
202
204
|
localVarHeaderParameter['Cache-Control'] = String(cacheControl);
|
|
203
205
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
208
|
-
|
|
209
206
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
210
207
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
211
208
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -303,7 +300,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
|
|
|
303
300
|
* @param {*} [options] Override http request option.
|
|
304
301
|
* @throws {RequiredError}
|
|
305
302
|
*/
|
|
306
|
-
deleteMedia(accountId: string, mediaId: string, options?:
|
|
303
|
+
deleteMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
307
304
|
return localVarFp.deleteMedia(accountId, mediaId, options).then((request) => request(axios, basePath));
|
|
308
305
|
},
|
|
309
306
|
/**
|
|
@@ -314,7 +311,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
|
|
|
314
311
|
* @param {*} [options] Override http request option.
|
|
315
312
|
* @throws {RequiredError}
|
|
316
313
|
*/
|
|
317
|
-
getMedia(accountId: string, mediaId: string, options?:
|
|
314
|
+
getMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
318
315
|
return localVarFp.getMedia(accountId, mediaId, options).then((request) => request(axios, basePath));
|
|
319
316
|
},
|
|
320
317
|
/**
|
|
@@ -325,7 +322,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
|
|
|
325
322
|
* @param {*} [options] Override http request option.
|
|
326
323
|
* @throws {RequiredError}
|
|
327
324
|
*/
|
|
328
|
-
listMedia(accountId: string, continuationToken?: string, options?:
|
|
325
|
+
listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Media>> {
|
|
329
326
|
return localVarFp.listMedia(accountId, continuationToken, options).then((request) => request(axios, basePath));
|
|
330
327
|
},
|
|
331
328
|
/**
|
|
@@ -339,7 +336,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
|
|
|
339
336
|
* @param {*} [options] Override http request option.
|
|
340
337
|
* @throws {RequiredError}
|
|
341
338
|
*/
|
|
342
|
-
uploadMedia(accountId: string, mediaId: string, body: File, contentType?: string, cacheControl?: string, options?:
|
|
339
|
+
uploadMedia(accountId: string, mediaId: string, body: File, contentType?: string, cacheControl?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
343
340
|
return localVarFp.uploadMedia(accountId, mediaId, body, contentType, cacheControl, options).then((request) => request(axios, basePath));
|
|
344
341
|
},
|
|
345
342
|
};
|
package/api/messages-api.ts
CHANGED
|
@@ -270,7 +270,7 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP
|
|
|
270
270
|
* @param {*} [options] Override http request option.
|
|
271
271
|
* @throws {RequiredError}
|
|
272
272
|
*/
|
|
273
|
-
createMessage(accountId: string, messageRequest: MessageRequest, options?:
|
|
273
|
+
createMessage(accountId: string, messageRequest: MessageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Message> {
|
|
274
274
|
return localVarFp.createMessage(accountId, messageRequest, options).then((request) => request(axios, basePath));
|
|
275
275
|
},
|
|
276
276
|
/**
|
|
@@ -295,7 +295,7 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP
|
|
|
295
295
|
* @param {*} [options] Override http request option.
|
|
296
296
|
* @throws {RequiredError}
|
|
297
297
|
*/
|
|
298
|
-
listMessages(accountId: string, messageId?: string, sourceTn?: string, destinationTn?: string, messageStatus?: MessageStatusEnum, messageDirection?: ListMessageDirectionEnum, carrierName?: string, messageType?: MessageTypeEnum, errorCode?: number, fromDateTime?: string, toDateTime?: string, campaignId?: string, sort?: string, pageToken?: string, limit?: number, limitTotalCount?: boolean, options?:
|
|
298
|
+
listMessages(accountId: string, messageId?: string, sourceTn?: string, destinationTn?: string, messageStatus?: MessageStatusEnum, messageDirection?: ListMessageDirectionEnum, carrierName?: string, messageType?: MessageTypeEnum, errorCode?: number, fromDateTime?: string, toDateTime?: string, campaignId?: string, sort?: string, pageToken?: string, limit?: number, limitTotalCount?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<MessagesList> {
|
|
299
299
|
return localVarFp.listMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, options).then((request) => request(axios, basePath));
|
|
300
300
|
},
|
|
301
301
|
};
|
package/api/mfaapi.ts
CHANGED
|
@@ -245,7 +245,7 @@ export const MFAApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
245
245
|
* @param {*} [options] Override http request option.
|
|
246
246
|
* @throws {RequiredError}
|
|
247
247
|
*/
|
|
248
|
-
generateMessagingCode(accountId: string, codeRequest: CodeRequest, options?:
|
|
248
|
+
generateMessagingCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<MessagingCodeResponse> {
|
|
249
249
|
return localVarFp.generateMessagingCode(accountId, codeRequest, options).then((request) => request(axios, basePath));
|
|
250
250
|
},
|
|
251
251
|
/**
|
|
@@ -256,7 +256,7 @@ export const MFAApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
256
256
|
* @param {*} [options] Override http request option.
|
|
257
257
|
* @throws {RequiredError}
|
|
258
258
|
*/
|
|
259
|
-
generateVoiceCode(accountId: string, codeRequest: CodeRequest, options?:
|
|
259
|
+
generateVoiceCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VoiceCodeResponse> {
|
|
260
260
|
return localVarFp.generateVoiceCode(accountId, codeRequest, options).then((request) => request(axios, basePath));
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
@@ -267,7 +267,7 @@ export const MFAApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
267
267
|
* @param {*} [options] Override http request option.
|
|
268
268
|
* @throws {RequiredError}
|
|
269
269
|
*/
|
|
270
|
-
verifyCode(accountId: string, verifyCodeRequest: VerifyCodeRequest, options?:
|
|
270
|
+
verifyCode(accountId: string, verifyCodeRequest: VerifyCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VerifyCodeResponse> {
|
|
271
271
|
return localVarFp.verifyCode(accountId, verifyCodeRequest, options).then((request) => request(axios, basePath));
|
|
272
272
|
},
|
|
273
273
|
};
|
|
@@ -177,7 +177,7 @@ export const PhoneNumberLookupApiFactory = function (configuration?: Configurati
|
|
|
177
177
|
* @param {*} [options] Override http request option.
|
|
178
178
|
* @throws {RequiredError}
|
|
179
179
|
*/
|
|
180
|
-
createLookup(accountId: string, lookupRequest: LookupRequest, options?:
|
|
180
|
+
createLookup(accountId: string, lookupRequest: LookupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateLookupResponse> {
|
|
181
181
|
return localVarFp.createLookup(accountId, lookupRequest, options).then((request) => request(axios, basePath));
|
|
182
182
|
},
|
|
183
183
|
/**
|
|
@@ -188,7 +188,7 @@ export const PhoneNumberLookupApiFactory = function (configuration?: Configurati
|
|
|
188
188
|
* @param {*} [options] Override http request option.
|
|
189
189
|
* @throws {RequiredError}
|
|
190
190
|
*/
|
|
191
|
-
getLookupStatus(accountId: string, requestId: string, options?:
|
|
191
|
+
getLookupStatus(accountId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<LookupStatus> {
|
|
192
192
|
return localVarFp.getLookupStatus(accountId, requestId, options).then((request) => request(axios, basePath));
|
|
193
193
|
},
|
|
194
194
|
};
|
package/api/recordings-api.ts
CHANGED
|
@@ -694,7 +694,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
|
|
|
694
694
|
* @param {*} [options] Override http request option.
|
|
695
695
|
* @throws {RequiredError}
|
|
696
696
|
*/
|
|
697
|
-
deleteRecording(accountId: string, callId: string, recordingId: string, options?:
|
|
697
|
+
deleteRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
698
698
|
return localVarFp.deleteRecording(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
|
|
699
699
|
},
|
|
700
700
|
/**
|
|
@@ -706,7 +706,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
|
|
|
706
706
|
* @param {*} [options] Override http request option.
|
|
707
707
|
* @throws {RequiredError}
|
|
708
708
|
*/
|
|
709
|
-
deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?:
|
|
709
|
+
deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
710
710
|
return localVarFp.deleteRecordingMedia(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
|
|
711
711
|
},
|
|
712
712
|
/**
|
|
@@ -718,7 +718,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
|
|
|
718
718
|
* @param {*} [options] Override http request option.
|
|
719
719
|
* @throws {RequiredError}
|
|
720
720
|
*/
|
|
721
|
-
deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?:
|
|
721
|
+
deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
722
722
|
return localVarFp.deleteRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
|
|
723
723
|
},
|
|
724
724
|
/**
|
|
@@ -730,7 +730,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
|
|
|
730
730
|
* @param {*} [options] Override http request option.
|
|
731
731
|
* @throws {RequiredError}
|
|
732
732
|
*/
|
|
733
|
-
downloadCallRecording(accountId: string, callId: string, recordingId: string, options?:
|
|
733
|
+
downloadCallRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
734
734
|
return localVarFp.downloadCallRecording(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
|
|
735
735
|
},
|
|
736
736
|
/**
|
|
@@ -742,7 +742,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
|
|
|
742
742
|
* @param {*} [options] Override http request option.
|
|
743
743
|
* @throws {RequiredError}
|
|
744
744
|
*/
|
|
745
|
-
getCallRecording(accountId: string, callId: string, recordingId: string, options?:
|
|
745
|
+
getCallRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<CallRecordingMetadata> {
|
|
746
746
|
return localVarFp.getCallRecording(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
|
|
747
747
|
},
|
|
748
748
|
/**
|
|
@@ -754,7 +754,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
|
|
|
754
754
|
* @param {*} [options] Override http request option.
|
|
755
755
|
* @throws {RequiredError}
|
|
756
756
|
*/
|
|
757
|
-
getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?:
|
|
757
|
+
getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<RecordingTranscriptions> {
|
|
758
758
|
return localVarFp.getRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
|
|
759
759
|
},
|
|
760
760
|
/**
|
|
@@ -768,7 +768,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
|
|
|
768
768
|
* @param {*} [options] Override http request option.
|
|
769
769
|
* @throws {RequiredError}
|
|
770
770
|
*/
|
|
771
|
-
listAccountCallRecordings(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, options?:
|
|
771
|
+
listAccountCallRecordings(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CallRecordingMetadata>> {
|
|
772
772
|
return localVarFp.listAccountCallRecordings(accountId, to, from, minStartTime, maxStartTime, options).then((request) => request(axios, basePath));
|
|
773
773
|
},
|
|
774
774
|
/**
|
|
@@ -779,7 +779,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
|
|
|
779
779
|
* @param {*} [options] Override http request option.
|
|
780
780
|
* @throws {RequiredError}
|
|
781
781
|
*/
|
|
782
|
-
listCallRecordings(accountId: string, callId: string, options?:
|
|
782
|
+
listCallRecordings(accountId: string, callId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CallRecordingMetadata>> {
|
|
783
783
|
return localVarFp.listCallRecordings(accountId, callId, options).then((request) => request(axios, basePath));
|
|
784
784
|
},
|
|
785
785
|
/**
|
|
@@ -792,7 +792,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
|
|
|
792
792
|
* @param {*} [options] Override http request option.
|
|
793
793
|
* @throws {RequiredError}
|
|
794
794
|
*/
|
|
795
|
-
transcribeCallRecording(accountId: string, callId: string, recordingId: string, transcribeRecording: TranscribeRecording, options?:
|
|
795
|
+
transcribeCallRecording(accountId: string, callId: string, recordingId: string, transcribeRecording: TranscribeRecording, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
796
796
|
return localVarFp.transcribeCallRecording(accountId, callId, recordingId, transcribeRecording, options).then((request) => request(axios, basePath));
|
|
797
797
|
},
|
|
798
798
|
/**
|
|
@@ -804,7 +804,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
|
|
|
804
804
|
* @param {*} [options] Override http request option.
|
|
805
805
|
* @throws {RequiredError}
|
|
806
806
|
*/
|
|
807
|
-
updateCallRecordingState(accountId: string, callId: string, updateCallRecording: UpdateCallRecording, options?:
|
|
807
|
+
updateCallRecordingState(accountId: string, callId: string, updateCallRecording: UpdateCallRecording, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
808
808
|
return localVarFp.updateCallRecordingState(accountId, callId, updateCallRecording, options).then((request) => request(axios, basePath));
|
|
809
809
|
},
|
|
810
810
|
};
|
package/api/statistics-api.ts
CHANGED
|
@@ -109,7 +109,7 @@ export const StatisticsApiFactory = function (configuration?: Configuration, bas
|
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
112
|
-
getStatistics(accountId: string, options?:
|
|
112
|
+
getStatistics(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountStatistics> {
|
|
113
113
|
return localVarFp.getStatistics(accountId, options).then((request) => request(axios, basePath));
|
|
114
114
|
},
|
|
115
115
|
};
|
|
@@ -240,7 +240,7 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration,
|
|
|
240
240
|
* @param {*} [options] Override http request option.
|
|
241
241
|
* @throws {RequiredError}
|
|
242
242
|
*/
|
|
243
|
-
deleteRealTimeTranscription(accountId: string, callId: string, transcriptionId: string, options?:
|
|
243
|
+
deleteRealTimeTranscription(accountId: string, callId: string, transcriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
244
244
|
return localVarFp.deleteRealTimeTranscription(accountId, callId, transcriptionId, options).then((request) => request(axios, basePath));
|
|
245
245
|
},
|
|
246
246
|
/**
|
|
@@ -252,7 +252,7 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration,
|
|
|
252
252
|
* @param {*} [options] Override http request option.
|
|
253
253
|
* @throws {RequiredError}
|
|
254
254
|
*/
|
|
255
|
-
getRealTimeTranscription(accountId: string, callId: string, transcriptionId: string, options?:
|
|
255
|
+
getRealTimeTranscription(accountId: string, callId: string, transcriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<CallTranscriptionResponse> {
|
|
256
256
|
return localVarFp.getRealTimeTranscription(accountId, callId, transcriptionId, options).then((request) => request(axios, basePath));
|
|
257
257
|
},
|
|
258
258
|
/**
|
|
@@ -263,7 +263,7 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration,
|
|
|
263
263
|
* @param {*} [options] Override http request option.
|
|
264
264
|
* @throws {RequiredError}
|
|
265
265
|
*/
|
|
266
|
-
listRealTimeTranscriptions(accountId: string, callId: string, options?:
|
|
266
|
+
listRealTimeTranscriptions(accountId: string, callId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CallTranscriptionMetadata>> {
|
|
267
267
|
return localVarFp.listRealTimeTranscriptions(accountId, callId, options).then((request) => request(axios, basePath));
|
|
268
268
|
},
|
|
269
269
|
};
|
package/bandwidth.yml
CHANGED
|
@@ -2202,8 +2202,8 @@ components:
|
|
|
2202
2202
|
parameter as described in <a
|
|
2203
2203
|
href='https://tools.ietf.org/html/rfc7433'>RFC
|
|
2204
2204
|
|
|
2205
|
-
7433</a>. Only 'jwt' and '
|
|
2206
|
-
value
|
|
2205
|
+
7433</a>. Only 'jwt', 'base64' and 'hex' encodings are allowed. The
|
|
2206
|
+
entire value
|
|
2207
2207
|
|
|
2208
2208
|
cannot exceed 350 characters, including parameters and separators.
|
|
2209
2209
|
applicationId:
|
package/configuration.ts
CHANGED
|
@@ -89,7 +89,13 @@ export class Configuration {
|
|
|
89
89
|
this.accessToken = param.accessToken;
|
|
90
90
|
this.basePath = param.basePath;
|
|
91
91
|
this.serverIndex = param.serverIndex;
|
|
92
|
-
this.baseOptions =
|
|
92
|
+
this.baseOptions = {
|
|
93
|
+
...param.baseOptions,
|
|
94
|
+
headers: {
|
|
95
|
+
...param.baseOptions?.headers,
|
|
96
|
+
'User-Agent': "OpenAPI-Generator/3.2.1/typescript-axios"
|
|
97
|
+
}
|
|
98
|
+
};
|
|
93
99
|
this.formDataCtor = param.formDataCtor;
|
|
94
100
|
}
|
|
95
101
|
|