bandwidth-sdk 1.0.1 → 2.0.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/test-nightly.yml +53 -53
- package/.github/workflows/test-pr.yml +40 -38
- package/.openapi-generator/FILES +6 -2
- package/README.md +40 -0
- package/api/recordings-api.ts +77 -77
- package/api/transcriptions-api.ts +320 -0
- package/api.ts +1 -0
- package/bandwidth.yml +223 -17
- package/base.ts +22 -4
- package/coverage/clover.xml +544 -452
- package/coverage/coverage-final.json +58 -56
- package/coverage/lcov-report/index.html +20 -20
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +105 -105
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/index.html +24 -9
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +78 -78
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1045 -0
- package/coverage/lcov-report/node-sdk/base.ts.html +72 -18
- package/coverage/lcov-report/node-sdk/common.ts.html +32 -32
- package/coverage/lcov-report/node-sdk/configuration.ts.html +15 -15
- package/coverage/lcov-report/node-sdk/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +6 -6
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +8 -8
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +6 -6
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +3 -3
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +10 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +7 -7
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +6 -6
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +5 -5
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +5 -5
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +4 -4
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +5 -5
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +31 -31
- 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.ts.html +274 -0
- package/coverage/lcov-report/node-sdk/models/callback-method-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/file-format-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/index.html +20 -5
- package/coverage/lcov-report/node-sdk/models/index.ts.html +103 -94
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/lookup-status-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/priority-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/tests/callUtils.js.html +34 -34
- package/coverage/lcov-report/node-sdk/tests/index.html +1 -1
- package/coverage/lcov.info +871 -642
- package/custom_templates/README.mustache +40 -0
- package/dist/api/recordings-api.d.ts +45 -45
- package/dist/api/recordings-api.js +75 -75
- package/dist/api/transcriptions-api.d.ts +161 -0
- package/dist/api/transcriptions-api.js +406 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +22 -4
- package/dist/models/bxml/verbs/Bridge.d.ts +2 -0
- package/dist/models/call-recording-metadata.d.ts +3 -3
- package/dist/models/call-transcription-metadata.d.ts +30 -0
- package/dist/models/call-transcription-metadata.js +15 -0
- package/dist/models/call-transcription-response.d.ts +43 -0
- package/dist/models/call-transcription-response.js +15 -0
- package/dist/models/call-transcription.d.ts +53 -0
- package/dist/models/call-transcription.js +25 -0
- package/dist/models/index.d.ts +5 -2
- package/dist/models/index.js +5 -2
- package/dist/models/recording-available-callback.d.ts +3 -3
- package/dist/models/recording-transcription-metadata.d.ts +42 -0
- package/dist/models/recording-transcription-metadata.js +15 -0
- package/dist/models/recording-transcriptions.d.ts +25 -0
- package/dist/models/recording-transcriptions.js +15 -0
- package/models/bxml/verbs/Bridge.ts +2 -0
- package/models/call-recording-metadata.ts +3 -3
- package/models/call-transcription-metadata.ts +36 -0
- package/models/call-transcription-response.ts +51 -0
- package/models/call-transcription.ts +63 -0
- package/models/index.ts +5 -2
- package/models/recording-available-callback.ts +3 -3
- package/models/recording-transcription-metadata.ts +48 -0
- package/models/recording-transcriptions.ts +33 -0
- package/package.json +1 -1
- package/tests/integration/recordings-api.test.js +6 -6
- package/tests/integration/transcriptions-api.test.js +85 -0
|
@@ -2013,9 +2013,9 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, ope
|
|
|
2013
2013
|
// @ts-ignore
|
|
2014
2014
|
import { CallRecordingMetadata } from '../models';
|
|
2015
2015
|
// @ts-ignore
|
|
2016
|
-
import {
|
|
2016
|
+
import { RecordingTranscriptions } from '../models';
|
|
2017
2017
|
// @ts-ignore
|
|
2018
|
-
import {
|
|
2018
|
+
import { TranscribeRecording } from '../models';
|
|
2019
2019
|
// @ts-ignore
|
|
2020
2020
|
import { UpdateCallRecording } from '../models';
|
|
2021
2021
|
// @ts-ignore
|
|
@@ -2027,22 +2027,22 @@ import { VoiceApiError } from '../models';
|
|
|
2027
2027
|
export const RecordingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2028
2028
|
return {
|
|
2029
2029
|
/**
|
|
2030
|
-
*
|
|
2031
|
-
* @summary Delete
|
|
2030
|
+
* Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
2031
|
+
* @summary Delete Recording
|
|
2032
2032
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
2033
2033
|
* @param {string} callId Programmable Voice API Call ID.
|
|
2034
2034
|
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
2035
2035
|
* @param {*} [options] Override http request option.
|
|
2036
2036
|
* @throws {RequiredError}
|
|
2037
2037
|
*/
|
|
2038
|
-
|
|
2038
|
+
deleteRecording: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2039
2039
|
// verify required parameter 'accountId' is not null or undefined
|
|
2040
|
-
assertParamExists('
|
|
2040
|
+
assertParamExists('deleteRecording', 'accountId', accountId)
|
|
2041
2041
|
// verify required parameter 'callId' is not null or undefined
|
|
2042
|
-
assertParamExists('
|
|
2042
|
+
assertParamExists('deleteRecording', 'callId', callId)
|
|
2043
2043
|
// verify required parameter 'recordingId' is not null or undefined
|
|
2044
|
-
assertParamExists('
|
|
2045
|
-
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}
|
|
2044
|
+
assertParamExists('deleteRecording', 'recordingId', recordingId)
|
|
2045
|
+
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}`
|
|
2046
2046
|
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
|
|
2047
2047
|
.replace(`{${"callId"}}`, encodeURIComponent(String(callId)))
|
|
2048
2048
|
.replace(`{${"recordingId"}}`, encodeURIComponent(String(recordingId)));
|
|
@@ -2073,22 +2073,22 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2073
2073
|
};
|
|
2074
2074
|
},
|
|
2075
2075
|
/**
|
|
2076
|
-
*
|
|
2077
|
-
* @summary Delete Recording
|
|
2076
|
+
* Deletes the specified recording\'s media.
|
|
2077
|
+
* @summary Delete Recording Media
|
|
2078
2078
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
2079
2079
|
* @param {string} callId Programmable Voice API Call ID.
|
|
2080
2080
|
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
2081
2081
|
* @param {*} [options] Override http request option.
|
|
2082
2082
|
* @throws {RequiredError}
|
|
2083
2083
|
*/
|
|
2084
|
-
|
|
2084
|
+
deleteRecordingMedia: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2085
2085
|
// verify required parameter 'accountId' is not null or undefined
|
|
2086
|
-
assertParamExists('
|
|
2086
|
+
assertParamExists('deleteRecordingMedia', 'accountId', accountId)
|
|
2087
2087
|
// verify required parameter 'callId' is not null or undefined
|
|
2088
|
-
assertParamExists('
|
|
2088
|
+
assertParamExists('deleteRecordingMedia', 'callId', callId)
|
|
2089
2089
|
// verify required parameter 'recordingId' is not null or undefined
|
|
2090
|
-
assertParamExists('
|
|
2091
|
-
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}`
|
|
2090
|
+
assertParamExists('deleteRecordingMedia', 'recordingId', recordingId)
|
|
2091
|
+
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media`
|
|
2092
2092
|
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
|
|
2093
2093
|
.replace(`{${"callId"}}`, encodeURIComponent(String(callId)))
|
|
2094
2094
|
.replace(`{${"recordingId"}}`, encodeURIComponent(String(recordingId)));
|
|
@@ -2119,22 +2119,22 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2119
2119
|
};
|
|
2120
2120
|
},
|
|
2121
2121
|
/**
|
|
2122
|
-
* Deletes the specified recording\'s
|
|
2123
|
-
* @summary Delete
|
|
2122
|
+
* Deletes the specified recording\'s transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
2123
|
+
* @summary Delete Transcription
|
|
2124
2124
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
2125
2125
|
* @param {string} callId Programmable Voice API Call ID.
|
|
2126
2126
|
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
2127
2127
|
* @param {*} [options] Override http request option.
|
|
2128
2128
|
* @throws {RequiredError}
|
|
2129
2129
|
*/
|
|
2130
|
-
|
|
2130
|
+
deleteRecordingTranscription: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2131
2131
|
// verify required parameter 'accountId' is not null or undefined
|
|
2132
|
-
assertParamExists('
|
|
2132
|
+
assertParamExists('deleteRecordingTranscription', 'accountId', accountId)
|
|
2133
2133
|
// verify required parameter 'callId' is not null or undefined
|
|
2134
|
-
assertParamExists('
|
|
2134
|
+
assertParamExists('deleteRecordingTranscription', 'callId', callId)
|
|
2135
2135
|
// verify required parameter 'recordingId' is not null or undefined
|
|
2136
|
-
assertParamExists('
|
|
2137
|
-
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/
|
|
2136
|
+
assertParamExists('deleteRecordingTranscription', 'recordingId', recordingId)
|
|
2137
|
+
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription`
|
|
2138
2138
|
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
|
|
2139
2139
|
.replace(`{${"callId"}}`, encodeURIComponent(String(callId)))
|
|
2140
2140
|
.replace(`{${"recordingId"}}`, encodeURIComponent(String(recordingId)));
|
|
@@ -2257,7 +2257,7 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2257
2257
|
};
|
|
2258
2258
|
},
|
|
2259
2259
|
/**
|
|
2260
|
-
* Downloads the specified transcription.
|
|
2260
|
+
* Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
|
|
2261
2261
|
* @summary Get Transcription
|
|
2262
2262
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
2263
2263
|
* @param {string} callId Programmable Voice API Call ID.
|
|
@@ -2265,13 +2265,13 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2265
2265
|
* @param {*} [options] Override http request option.
|
|
2266
2266
|
* @throws {RequiredError}
|
|
2267
2267
|
*/
|
|
2268
|
-
|
|
2268
|
+
getRecordingTranscription: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2269
2269
|
// verify required parameter 'accountId' is not null or undefined
|
|
2270
|
-
assertParamExists('
|
|
2270
|
+
assertParamExists('getRecordingTranscription', 'accountId', accountId)
|
|
2271
2271
|
// verify required parameter 'callId' is not null or undefined
|
|
2272
|
-
assertParamExists('
|
|
2272
|
+
assertParamExists('getRecordingTranscription', 'callId', callId)
|
|
2273
2273
|
// verify required parameter 'recordingId' is not null or undefined
|
|
2274
|
-
assertParamExists('
|
|
2274
|
+
assertParamExists('getRecordingTranscription', 'recordingId', recordingId)
|
|
2275
2275
|
const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription`
|
|
2276
2276
|
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
|
|
2277
2277
|
.replace(`{${"callId"}}`, encodeURIComponent(String(callId)))
|
|
@@ -2512,21 +2512,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2512
2512
|
export const RecordingsApiFp = function(configuration?: Configuration) {
|
|
2513
2513
|
const localVarAxiosParamCreator = RecordingsApiAxiosParamCreator(configuration)
|
|
2514
2514
|
return {
|
|
2515
|
-
/**
|
|
2516
|
-
* Deletes the specified recording\'s transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
2517
|
-
* @summary Delete Transcription
|
|
2518
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
2519
|
-
* @param {string} callId Programmable Voice API Call ID.
|
|
2520
|
-
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
2521
|
-
* @param {*} [options] Override http request option.
|
|
2522
|
-
* @throws {RequiredError}
|
|
2523
|
-
*/
|
|
2524
|
-
async deleteCallTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2525
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCallTranscription(accountId, callId, recordingId, options);
|
|
2526
|
-
const index = configuration<span class="branch-0 cbranch-no" title="branch not covered" >?.s</span>erverIndex<span class="branch-0 cbranch-no" title="branch not covered" > ?? 0</span>;
|
|
2527
|
-
const operationBasePath = operationServerMap['RecordingsApi.deleteCallTranscription']<span class="branch-0 cbranch-no" title="branch not covered" >?.[i</span>ndex]<span class="branch-0 cbranch-no" title="branch not covered" >?.u</span>rl;
|
|
2528
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || <span class="branch-1 cbranch-no" title="branch not covered" >basePath)</span>;
|
|
2529
|
-
},
|
|
2530
2515
|
/**
|
|
2531
2516
|
* Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
2532
2517
|
* @summary Delete Recording
|
|
@@ -2557,6 +2542,21 @@ export const RecordingsApiFp = function(configuration?: Configuration) {
|
|
|
2557
2542
|
const operationBasePath = operationServerMap['RecordingsApi.deleteRecordingMedia']<span class="branch-0 cbranch-no" title="branch not covered" >?.[i</span>ndex]<span class="branch-0 cbranch-no" title="branch not covered" >?.u</span>rl;
|
|
2558
2543
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || <span class="branch-1 cbranch-no" title="branch not covered" >basePath)</span>;
|
|
2559
2544
|
},
|
|
2545
|
+
/**
|
|
2546
|
+
* Deletes the specified recording\'s transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
2547
|
+
* @summary Delete Transcription
|
|
2548
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
2549
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
2550
|
+
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
2551
|
+
* @param {*} [options] Override http request option.
|
|
2552
|
+
* @throws {RequiredError}
|
|
2553
|
+
*/
|
|
2554
|
+
async deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2555
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRecordingTranscription(accountId, callId, recordingId, options);
|
|
2556
|
+
const index = configuration<span class="branch-0 cbranch-no" title="branch not covered" >?.s</span>erverIndex<span class="branch-0 cbranch-no" title="branch not covered" > ?? 0</span>;
|
|
2557
|
+
const operationBasePath = operationServerMap['RecordingsApi.deleteRecordingTranscription']<span class="branch-0 cbranch-no" title="branch not covered" >?.[i</span>ndex]<span class="branch-0 cbranch-no" title="branch not covered" >?.u</span>rl;
|
|
2558
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || <span class="branch-1 cbranch-no" title="branch not covered" >basePath)</span>;
|
|
2559
|
+
},
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Downloads the specified recording.
|
|
2562
2562
|
* @summary Download Recording
|
|
@@ -2588,7 +2588,7 @@ export const RecordingsApiFp = function(configuration?: Configuration) {
|
|
|
2588
2588
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || <span class="branch-1 cbranch-no" title="branch not covered" >basePath)</span>;
|
|
2589
2589
|
},
|
|
2590
2590
|
/**
|
|
2591
|
-
* Downloads the specified transcription.
|
|
2591
|
+
* Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
|
|
2592
2592
|
* @summary Get Transcription
|
|
2593
2593
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
2594
2594
|
* @param {string} callId Programmable Voice API Call ID.
|
|
@@ -2596,10 +2596,10 @@ export const RecordingsApiFp = function(configuration?: Configuration) {
|
|
|
2596
2596
|
* @param {*} [options] Override http request option.
|
|
2597
2597
|
* @throws {RequiredError}
|
|
2598
2598
|
*/
|
|
2599
|
-
async
|
|
2600
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2599
|
+
async getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecordingTranscriptions>> {
|
|
2600
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRecordingTranscription(accountId, callId, recordingId, options);
|
|
2601
2601
|
const index = configuration<span class="branch-0 cbranch-no" title="branch not covered" >?.s</span>erverIndex<span class="branch-0 cbranch-no" title="branch not covered" > ?? 0</span>;
|
|
2602
|
-
const operationBasePath = operationServerMap['RecordingsApi.
|
|
2602
|
+
const operationBasePath = operationServerMap['RecordingsApi.getRecordingTranscription']<span class="branch-0 cbranch-no" title="branch not covered" >?.[i</span>ndex]<span class="branch-0 cbranch-no" title="branch not covered" >?.u</span>rl;
|
|
2603
2603
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || <span class="branch-1 cbranch-no" title="branch not covered" >basePath)</span>;
|
|
2604
2604
|
},
|
|
2605
2605
|
/**
|
|
@@ -2674,18 +2674,6 @@ export const RecordingsApiFp = function(configuration?: Configuration) {
|
|
|
2674
2674
|
export const RecordingsApiFactory = <span class="fstat-no" title="function not covered" >function (c</span>onfiguration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2675
2675
|
const localVarFp = <span class="cstat-no" title="statement not covered" >RecordingsApiFp(configuration)</span>
|
|
2676
2676
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
2677
|
-
/**
|
|
2678
|
-
* Deletes the specified recording\'s transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
2679
|
-
* @summary Delete Transcription
|
|
2680
|
-
* @param {string} accountId Your Bandwidth Account ID.
|
|
2681
|
-
* @param {string} callId Programmable Voice API Call ID.
|
|
2682
|
-
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
2683
|
-
* @param {*} [options] Override http request option.
|
|
2684
|
-
* @throws {RequiredError}
|
|
2685
|
-
*/
|
|
2686
|
-
deleteCallTranscription<span class="fstat-no" title="function not covered" >(a</span>ccountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<void> {
|
|
2687
|
-
<span class="cstat-no" title="statement not covered" > return localVarFp.deleteCallTranscription(accountId, callId, recordingId, options).then(<span class="fstat-no" title="function not covered" >(r</span>equest) => <span class="cstat-no" title="statement not covered" >request(axios, basePath));</span></span>
|
|
2688
|
-
},
|
|
2689
2677
|
/**
|
|
2690
2678
|
* Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
2691
2679
|
* @summary Delete Recording
|
|
@@ -2709,6 +2697,18 @@ export const RecordingsApiFactory = <span class="fstat-no" title="function not c
|
|
|
2709
2697
|
*/
|
|
2710
2698
|
deleteRecordingMedia<span class="fstat-no" title="function not covered" >(a</span>ccountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<void> {
|
|
2711
2699
|
<span class="cstat-no" title="statement not covered" > return localVarFp.deleteRecordingMedia(accountId, callId, recordingId, options).then(<span class="fstat-no" title="function not covered" >(r</span>equest) => <span class="cstat-no" title="statement not covered" >request(axios, basePath));</span></span>
|
|
2700
|
+
},
|
|
2701
|
+
/**
|
|
2702
|
+
* Deletes the specified recording\'s transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
2703
|
+
* @summary Delete Transcription
|
|
2704
|
+
* @param {string} accountId Your Bandwidth Account ID.
|
|
2705
|
+
* @param {string} callId Programmable Voice API Call ID.
|
|
2706
|
+
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
2707
|
+
* @param {*} [options] Override http request option.
|
|
2708
|
+
* @throws {RequiredError}
|
|
2709
|
+
*/
|
|
2710
|
+
deleteRecordingTranscription<span class="fstat-no" title="function not covered" >(a</span>ccountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<void> {
|
|
2711
|
+
<span class="cstat-no" title="statement not covered" > return localVarFp.deleteRecordingTranscription(accountId, callId, recordingId, options).then(<span class="fstat-no" title="function not covered" >(r</span>equest) => <span class="cstat-no" title="statement not covered" >request(axios, basePath));</span></span>
|
|
2712
2712
|
},
|
|
2713
2713
|
/**
|
|
2714
2714
|
* Downloads the specified recording.
|
|
@@ -2735,7 +2735,7 @@ export const RecordingsApiFactory = <span class="fstat-no" title="function not c
|
|
|
2735
2735
|
<span class="cstat-no" title="statement not covered" > return localVarFp.getCallRecording(accountId, callId, recordingId, options).then(<span class="fstat-no" title="function not covered" >(r</span>equest) => <span class="cstat-no" title="statement not covered" >request(axios, basePath));</span></span>
|
|
2736
2736
|
},
|
|
2737
2737
|
/**
|
|
2738
|
-
* Downloads the specified transcription.
|
|
2738
|
+
* Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
|
|
2739
2739
|
* @summary Get Transcription
|
|
2740
2740
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
2741
2741
|
* @param {string} callId Programmable Voice API Call ID.
|
|
@@ -2743,8 +2743,8 @@ export const RecordingsApiFactory = <span class="fstat-no" title="function not c
|
|
|
2743
2743
|
* @param {*} [options] Override http request option.
|
|
2744
2744
|
* @throws {RequiredError}
|
|
2745
2745
|
*/
|
|
2746
|
-
|
|
2747
|
-
<span class="cstat-no" title="statement not covered" > return localVarFp.
|
|
2746
|
+
getRecordingTranscription<span class="fstat-no" title="function not covered" >(a</span>ccountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<RecordingTranscriptions> {
|
|
2747
|
+
<span class="cstat-no" title="statement not covered" > return localVarFp.getRecordingTranscription(accountId, callId, recordingId, options).then(<span class="fstat-no" title="function not covered" >(r</span>equest) => <span class="cstat-no" title="statement not covered" >request(axios, basePath));</span></span>
|
|
2748
2748
|
},
|
|
2749
2749
|
/**
|
|
2750
2750
|
* Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria.
|
|
@@ -2807,8 +2807,8 @@ export const RecordingsApiFactory = <span class="fstat-no" title="function not c
|
|
|
2807
2807
|
*/
|
|
2808
2808
|
export class RecordingsApi extends BaseAPI {
|
|
2809
2809
|
/**
|
|
2810
|
-
*
|
|
2811
|
-
* @summary Delete
|
|
2810
|
+
* Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
2811
|
+
* @summary Delete Recording
|
|
2812
2812
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
2813
2813
|
* @param {string} callId Programmable Voice API Call ID.
|
|
2814
2814
|
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
@@ -2816,13 +2816,13 @@ export class RecordingsApi extends BaseAPI {
|
|
|
2816
2816
|
* @throws {RequiredError}
|
|
2817
2817
|
* @memberof RecordingsApi
|
|
2818
2818
|
*/
|
|
2819
|
-
public
|
|
2820
|
-
return RecordingsApiFp(this.configuration).
|
|
2819
|
+
public deleteRecording(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
|
|
2820
|
+
return RecordingsApiFp(this.configuration).deleteRecording(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
|
|
2821
2821
|
}
|
|
2822
2822
|
|
|
2823
2823
|
/**
|
|
2824
|
-
*
|
|
2825
|
-
* @summary Delete Recording
|
|
2824
|
+
* Deletes the specified recording\'s media.
|
|
2825
|
+
* @summary Delete Recording Media
|
|
2826
2826
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
2827
2827
|
* @param {string} callId Programmable Voice API Call ID.
|
|
2828
2828
|
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
@@ -2830,13 +2830,13 @@ export class RecordingsApi extends BaseAPI {
|
|
|
2830
2830
|
* @throws {RequiredError}
|
|
2831
2831
|
* @memberof RecordingsApi
|
|
2832
2832
|
*/
|
|
2833
|
-
public
|
|
2834
|
-
return RecordingsApiFp(this.configuration).
|
|
2833
|
+
public deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
|
|
2834
|
+
return RecordingsApiFp(this.configuration).deleteRecordingMedia(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
|
|
2835
2835
|
}
|
|
2836
2836
|
|
|
2837
2837
|
/**
|
|
2838
|
-
* Deletes the specified recording\'s
|
|
2839
|
-
* @summary Delete
|
|
2838
|
+
* Deletes the specified recording\'s transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
|
|
2839
|
+
* @summary Delete Transcription
|
|
2840
2840
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
2841
2841
|
* @param {string} callId Programmable Voice API Call ID.
|
|
2842
2842
|
* @param {string} recordingId Programmable Voice API Recording ID.
|
|
@@ -2844,8 +2844,8 @@ export class RecordingsApi extends BaseAPI {
|
|
|
2844
2844
|
* @throws {RequiredError}
|
|
2845
2845
|
* @memberof RecordingsApi
|
|
2846
2846
|
*/
|
|
2847
|
-
public
|
|
2848
|
-
return RecordingsApiFp(this.configuration).
|
|
2847
|
+
public deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
|
|
2848
|
+
return RecordingsApiFp(this.configuration).deleteRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
|
|
2849
2849
|
}
|
|
2850
2850
|
|
|
2851
2851
|
/**
|
|
@@ -2877,7 +2877,7 @@ export class RecordingsApi extends BaseAPI {
|
|
|
2877
2877
|
}
|
|
2878
2878
|
|
|
2879
2879
|
/**
|
|
2880
|
-
* Downloads the specified transcription.
|
|
2880
|
+
* Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
|
|
2881
2881
|
* @summary Get Transcription
|
|
2882
2882
|
* @param {string} accountId Your Bandwidth Account ID.
|
|
2883
2883
|
* @param {string} callId Programmable Voice API Call ID.
|
|
@@ -2886,8 +2886,8 @@ export class RecordingsApi extends BaseAPI {
|
|
|
2886
2886
|
* @throws {RequiredError}
|
|
2887
2887
|
* @memberof RecordingsApi
|
|
2888
2888
|
*/
|
|
2889
|
-
public
|
|
2890
|
-
return RecordingsApiFp(this.configuration).
|
|
2889
|
+
public getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
|
|
2890
|
+
return RecordingsApiFp(this.configuration).getRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
|
|
2891
2891
|
}
|
|
2892
2892
|
|
|
2893
2893
|
/**
|
|
@@ -2956,7 +2956,7 @@ export class RecordingsApi extends BaseAPI {
|
|
|
2956
2956
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
2957
2957
|
Code coverage generated by
|
|
2958
2958
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
2959
|
-
at 2024-
|
|
2959
|
+
at 2024-05-21T19:22:06.337Z
|
|
2960
2960
|
</div>
|
|
2961
2961
|
<script src="../../prettify.js"></script>
|
|
2962
2962
|
<script>
|
|
@@ -481,7 +481,7 @@ export class StatisticsApi extends BaseAPI {
|
|
|
481
481
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
482
482
|
Code coverage generated by
|
|
483
483
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
484
|
-
at 2024-
|
|
484
|
+
at 2024-05-21T19:22:06.337Z
|
|
485
485
|
</div>
|
|
486
486
|
<script src="../../prettify.js"></script>
|
|
487
487
|
<script>
|