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.
Files changed (118) hide show
  1. package/.github/workflows/test-nightly.yml +53 -53
  2. package/.github/workflows/test-pr.yml +40 -38
  3. package/.openapi-generator/FILES +6 -2
  4. package/README.md +40 -0
  5. package/api/recordings-api.ts +77 -77
  6. package/api/transcriptions-api.ts +320 -0
  7. package/api.ts +1 -0
  8. package/bandwidth.yml +223 -17
  9. package/base.ts +22 -4
  10. package/coverage/clover.xml +544 -452
  11. package/coverage/coverage-final.json +58 -56
  12. package/coverage/lcov-report/index.html +20 -20
  13. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +105 -105
  14. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +1 -1
  15. package/coverage/lcov-report/node-sdk/api/index.html +24 -9
  16. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1 -1
  17. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1 -1
  18. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
  19. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +1 -1
  20. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +78 -78
  21. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +1 -1
  22. package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1045 -0
  23. package/coverage/lcov-report/node-sdk/base.ts.html +72 -18
  24. package/coverage/lcov-report/node-sdk/common.ts.html +32 -32
  25. package/coverage/lcov-report/node-sdk/configuration.ts.html +15 -15
  26. package/coverage/lcov-report/node-sdk/index.html +1 -1
  27. package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +4 -4
  28. package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +6 -6
  29. package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +4 -4
  30. package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +8 -8
  31. package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +6 -6
  32. package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
  33. package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +3 -3
  34. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +10 -4
  35. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +4 -4
  36. package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +4 -4
  37. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +4 -4
  38. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +7 -7
  39. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +4 -4
  40. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +4 -4
  41. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +4 -4
  42. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +4 -4
  43. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +4 -4
  44. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +4 -4
  45. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +4 -4
  46. package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +4 -4
  47. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +4 -4
  48. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +4 -4
  49. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +4 -4
  50. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +6 -6
  51. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +4 -4
  52. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +4 -4
  53. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +5 -5
  54. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +5 -5
  55. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +4 -4
  56. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +4 -4
  57. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +4 -4
  58. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +4 -4
  59. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +4 -4
  60. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +4 -4
  61. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +5 -5
  62. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
  63. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +31 -31
  64. package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -2
  65. package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -2
  66. package/coverage/lcov-report/node-sdk/models/call-transcription.ts.html +274 -0
  67. package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -2
  68. package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -2
  69. package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -2
  70. package/coverage/lcov-report/node-sdk/models/index.html +20 -5
  71. package/coverage/lcov-report/node-sdk/models/index.ts.html +103 -94
  72. package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
  73. package/coverage/lcov-report/node-sdk/models/lookup-status-enum.ts.html +2 -2
  74. package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -2
  75. package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -2
  76. package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -2
  77. package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -2
  78. package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
  79. package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -2
  80. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -2
  81. package/coverage/lcov-report/node-sdk/tests/callUtils.js.html +34 -34
  82. package/coverage/lcov-report/node-sdk/tests/index.html +1 -1
  83. package/coverage/lcov.info +871 -642
  84. package/custom_templates/README.mustache +40 -0
  85. package/dist/api/recordings-api.d.ts +45 -45
  86. package/dist/api/recordings-api.js +75 -75
  87. package/dist/api/transcriptions-api.d.ts +161 -0
  88. package/dist/api/transcriptions-api.js +406 -0
  89. package/dist/api.d.ts +1 -0
  90. package/dist/api.js +1 -0
  91. package/dist/base.js +22 -4
  92. package/dist/models/bxml/verbs/Bridge.d.ts +2 -0
  93. package/dist/models/call-recording-metadata.d.ts +3 -3
  94. package/dist/models/call-transcription-metadata.d.ts +30 -0
  95. package/dist/models/call-transcription-metadata.js +15 -0
  96. package/dist/models/call-transcription-response.d.ts +43 -0
  97. package/dist/models/call-transcription-response.js +15 -0
  98. package/dist/models/call-transcription.d.ts +53 -0
  99. package/dist/models/call-transcription.js +25 -0
  100. package/dist/models/index.d.ts +5 -2
  101. package/dist/models/index.js +5 -2
  102. package/dist/models/recording-available-callback.d.ts +3 -3
  103. package/dist/models/recording-transcription-metadata.d.ts +42 -0
  104. package/dist/models/recording-transcription-metadata.js +15 -0
  105. package/dist/models/recording-transcriptions.d.ts +25 -0
  106. package/dist/models/recording-transcriptions.js +15 -0
  107. package/models/bxml/verbs/Bridge.ts +2 -0
  108. package/models/call-recording-metadata.ts +3 -3
  109. package/models/call-transcription-metadata.ts +36 -0
  110. package/models/call-transcription-response.ts +51 -0
  111. package/models/call-transcription.ts +63 -0
  112. package/models/index.ts +5 -2
  113. package/models/recording-available-callback.ts +3 -3
  114. package/models/recording-transcription-metadata.ts +48 -0
  115. package/models/recording-transcriptions.ts +33 -0
  116. package/package.json +1 -1
  117. package/tests/integration/recordings-api.test.js +6 -6
  118. package/tests/integration/transcriptions-api.test.js +85 -0
@@ -1,65 +1,65 @@
1
1
  name: Test Main Branch Nightly
2
2
 
3
3
  on:
4
- schedule:
5
- - cron: "0 4 * * *"
4
+ schedule:
5
+ - cron: "0 4 * * *"
6
6
 
7
7
  concurrency:
8
- group: ${{ github.workflow }}-${{ github.head_ref }}
9
- cancel-in-progress: true
8
+ group: ${{ github.workflow }}-${{ github.head_ref }}
9
+ cancel-in-progress: true
10
10
 
11
11
  env:
12
- BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
13
- BW_USERNAME: ${{ secrets.BW_USERNAME }}
14
- BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
15
- BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
16
- BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
17
- BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
18
- BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
19
- BW_NUMBER: ${{ secrets.BW_NUMBER }}
20
- USER_NUMBER: ${{ secrets.USER_NUMBER }}
21
- BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
22
- MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }}
23
- MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }}
24
- MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }}
25
- MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }}
12
+ BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
13
+ BW_USERNAME: ${{ secrets.BW_USERNAME }}
14
+ BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
15
+ BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
16
+ BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
17
+ BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
18
+ BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
19
+ BW_NUMBER: ${{ secrets.BW_NUMBER }}
20
+ USER_NUMBER: ${{ secrets.USER_NUMBER }}
21
+ BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
22
+ MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }}
23
+ MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }}
24
+ MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }}
25
+ MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }}
26
26
 
27
27
  jobs:
28
- test_main:
29
- name: Test Main Branch Nightly
30
- runs-on: ${{ matrix.os }}
31
- strategy:
32
- matrix:
33
- os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
34
- node-version: [16, 18, 20]
35
- fail-fast: false
36
- steps:
37
- - name: Checkout
38
- uses: actions/checkout@v4
39
- with:
40
- ref: "main"
28
+ test_main:
29
+ name: Test Main Branch Nightly
30
+ runs-on: ${{ matrix.os }}
31
+ strategy:
32
+ matrix:
33
+ os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
34
+ node-version: [16, 18, 20, 22]
35
+ fail-fast: false
36
+ steps:
37
+ - name: Checkout
38
+ uses: actions/checkout@v4
39
+ with:
40
+ ref: "main"
41
41
 
42
- - name: Setup Node
43
- uses: actions/setup-node@v4
44
- with:
45
- node-version: ${{ matrix.node-version }}
42
+ - name: Setup Node
43
+ uses: actions/setup-node@v4
44
+ with:
45
+ node-version: ${{ matrix.node-version }}
46
46
 
47
- - name: Install Packages and Test
48
- run: |
49
- yarn
50
- yarn test
51
- env:
52
- OPERATING_SYSTEM: ${{ matrix.os }}
47
+ - name: Install Packages and Test
48
+ run: |
49
+ yarn
50
+ yarn test
51
+ env:
52
+ OPERATING_SYSTEM: ${{ matrix.os }}
53
53
 
54
- notify_for_failures:
55
- name: Notify for Failures
56
- needs: [test_main]
57
- if: failure()
58
- runs-on: ubuntu-latest
59
- steps:
60
- - name: Notify Slack of Failures
61
- uses: Bandwidth/build-notify-slack-action@v1.0.0
62
- with:
63
- job-status: failure
64
- slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
65
- slack-channel: ${{ secrets.SLACK_CHANNEL }}
54
+ notify_for_failures:
55
+ name: Notify for Failures
56
+ needs: [test_main]
57
+ if: failure()
58
+ runs-on: ubuntu-latest
59
+ steps:
60
+ - name: Notify Slack of Failures
61
+ uses: Bandwidth/build-notify-slack-action@v2.0.0
62
+ with:
63
+ job-status: failure
64
+ slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
65
+ slack-channel: ${{ secrets.SLACK_CHANNEL }}
@@ -1,49 +1,51 @@
1
1
  name: Test PR
2
2
 
3
3
  on:
4
- pull_request:
4
+ pull_request:
5
+ branches:
6
+ - main
5
7
 
6
8
  concurrency:
7
- group: ${{ github.workflow }}-${{ github.head_ref }}
8
- cancel-in-progress: true
9
+ group: ${{ github.workflow }}-${{ github.head_ref }}
10
+ cancel-in-progress: true
9
11
 
10
12
  env:
11
- BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
12
- BW_USERNAME: ${{ secrets.BW_USERNAME }}
13
- BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
14
- BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
15
- BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
16
- BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
17
- BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
18
- BW_NUMBER: ${{ secrets.BW_NUMBER }}
19
- USER_NUMBER: ${{ secrets.USER_NUMBER }}
20
- BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
21
- MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }}
22
- MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }}
23
- MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }}
24
- MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }}
13
+ BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
14
+ BW_USERNAME: ${{ secrets.BW_USERNAME }}
15
+ BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
16
+ BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
17
+ BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
18
+ BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
19
+ BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
20
+ BW_NUMBER: ${{ secrets.BW_NUMBER }}
21
+ USER_NUMBER: ${{ secrets.USER_NUMBER }}
22
+ BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
23
+ MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }}
24
+ MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }}
25
+ MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }}
26
+ MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }}
25
27
 
26
28
  jobs:
27
- test_pr:
28
- name: Test PR
29
- runs-on: ${{ matrix.os }}
30
- strategy:
31
- matrix:
32
- os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
33
- node-version: [16, 18, 20]
34
- fail-fast: false
35
- steps:
36
- - name: Checkout
37
- uses: actions/checkout@v4
29
+ test_pr:
30
+ name: Test PR
31
+ runs-on: ${{ matrix.os }}
32
+ strategy:
33
+ matrix:
34
+ os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
35
+ node-version: [16, 18, 20, 22]
36
+ fail-fast: false
37
+ steps:
38
+ - name: Checkout
39
+ uses: actions/checkout@v4
38
40
 
39
- - name: Setup Node
40
- uses: actions/setup-node@v4
41
- with:
42
- node-version: ${{ matrix.node-version }}
41
+ - name: Setup Node
42
+ uses: actions/setup-node@v4
43
+ with:
44
+ node-version: ${{ matrix.node-version }}
43
45
 
44
- - name: Install Packages and Test
45
- run: |
46
- yarn
47
- yarn test
48
- env:
49
- OPERATING_SYSTEM: ${{ matrix.os }}
46
+ - name: Install Packages and Test
47
+ run: |
48
+ yarn
49
+ yarn test
50
+ env:
51
+ OPERATING_SYSTEM: ${{ matrix.os }}
@@ -9,6 +9,7 @@ api/mfaapi.ts
9
9
  api/phone-number-lookup-api.ts
10
10
  api/recordings-api.ts
11
11
  api/statistics-api.ts
12
+ api/transcriptions-api.ts
12
13
  base.ts
13
14
  common.ts
14
15
  configuration.ts
@@ -22,6 +23,9 @@ models/call-direction-enum.ts
22
23
  models/call-recording-metadata.ts
23
24
  models/call-state-enum.ts
24
25
  models/call-state.ts
26
+ models/call-transcription-metadata.ts
27
+ models/call-transcription-response.ts
28
+ models/call-transcription.ts
25
29
  models/callback-method-enum.ts
26
30
  models/code-request.ts
27
31
  models/conference-completed-callback.ts
@@ -82,6 +86,8 @@ models/priority-enum.ts
82
86
  models/recording-available-callback.ts
83
87
  models/recording-complete-callback.ts
84
88
  models/recording-state-enum.ts
89
+ models/recording-transcription-metadata.ts
90
+ models/recording-transcriptions.ts
85
91
  models/redirect-callback.ts
86
92
  models/redirect-method-enum.ts
87
93
  models/stir-shaken.ts
@@ -89,8 +95,6 @@ models/tag.ts
89
95
  models/tn-lookup-request-error.ts
90
96
  models/transcribe-recording.ts
91
97
  models/transcription-available-callback.ts
92
- models/transcription-list.ts
93
- models/transcription-metadata.ts
94
98
  models/transcription.ts
95
99
  models/transfer-answer-callback.ts
96
100
  models/transfer-complete-callback.ts
package/README.md CHANGED
@@ -1,5 +1,20 @@
1
1
  ## bandwidth-sdk
2
2
 
3
+ [![Tests](https://github.com/Bandwidth/node-sdk/actions/workflows/test-nightly.yml/badge.svg)](https://github.com/Bandwidth/node-sdk/actions/workflows/test-nightly.yml)
4
+
5
+ ### Test Matrix
6
+ | **OS** | **Node** |
7
+ |:---:|:---:|
8
+ | Windows 2019 | 16, 18, 20, 22 |
9
+ | Windows 2022 | 16, 18, 20, 22 |
10
+ | Ubuntu 20.04 | 16, 18, 20, 22 |
11
+ | Ubuntu 22.04 | 16, 18, 20, 22 |
12
+
13
+ #### Available on NPM
14
+ ```
15
+ npm install bandwidth-sdk
16
+ ```
17
+
3
18
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
19
 
5
20
  Environment
@@ -43,3 +58,28 @@ _unPublished (not recommended):_
43
58
 
44
59
  ```
45
60
  npm install PATH_TO_GENERATED_PACKAGE --save
61
+ ```
62
+
63
+ ### Getting Started
64
+
65
+ The following is a simple example of how to use this module:
66
+
67
+ ```javascript
68
+ import { CallsApi, Configuration } from 'bandwidth-sdk';
69
+
70
+ const config = new Configuration({
71
+ username: BW_USERNAME,
72
+ password: BW_PASSWORD
73
+ });
74
+ const callsApi = new CallsApi(config);
75
+
76
+ const body = {
77
+ applicationId: BW_VOICE_APPLICATION_ID,
78
+ to: TO_NUMBER,
79
+ from: BW_NUMBER
80
+ };
81
+
82
+ await callsApi.createCall(BW_ACCOUNT_ID, body);
83
+ ```
84
+
85
+ More samples can be found in the [Bandwidth Samples](https://github.com/orgs/Bandwidth-Samples/repositories?q=lang%3Ajavascript&type=all) GitHub Organization.
@@ -24,9 +24,9 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, ope
24
24
  // @ts-ignore
25
25
  import { CallRecordingMetadata } from '../models';
26
26
  // @ts-ignore
27
- import { TranscribeRecording } from '../models';
27
+ import { RecordingTranscriptions } from '../models';
28
28
  // @ts-ignore
29
- import { TranscriptionList } from '../models';
29
+ import { TranscribeRecording } from '../models';
30
30
  // @ts-ignore
31
31
  import { UpdateCallRecording } from '../models';
32
32
  // @ts-ignore
@@ -38,22 +38,22 @@ import { VoiceApiError } from '../models';
38
38
  export const RecordingsApiAxiosParamCreator = function (configuration?: Configuration) {
39
39
  return {
40
40
  /**
41
- * 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.
42
- * @summary Delete Transcription
41
+ * 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.
42
+ * @summary Delete Recording
43
43
  * @param {string} accountId Your Bandwidth Account ID.
44
44
  * @param {string} callId Programmable Voice API Call ID.
45
45
  * @param {string} recordingId Programmable Voice API Recording ID.
46
46
  * @param {*} [options] Override http request option.
47
47
  * @throws {RequiredError}
48
48
  */
49
- deleteCallTranscription: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
49
+ deleteRecording: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
50
  // verify required parameter 'accountId' is not null or undefined
51
- assertParamExists('deleteCallTranscription', 'accountId', accountId)
51
+ assertParamExists('deleteRecording', 'accountId', accountId)
52
52
  // verify required parameter 'callId' is not null or undefined
53
- assertParamExists('deleteCallTranscription', 'callId', callId)
53
+ assertParamExists('deleteRecording', 'callId', callId)
54
54
  // verify required parameter 'recordingId' is not null or undefined
55
- assertParamExists('deleteCallTranscription', 'recordingId', recordingId)
56
- const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription`
55
+ assertParamExists('deleteRecording', 'recordingId', recordingId)
56
+ const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}`
57
57
  .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
58
58
  .replace(`{${"callId"}}`, encodeURIComponent(String(callId)))
59
59
  .replace(`{${"recordingId"}}`, encodeURIComponent(String(recordingId)));
@@ -84,22 +84,22 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
84
84
  };
85
85
  },
86
86
  /**
87
- * 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.
88
- * @summary Delete Recording
87
+ * Deletes the specified recording\'s media.
88
+ * @summary Delete Recording Media
89
89
  * @param {string} accountId Your Bandwidth Account ID.
90
90
  * @param {string} callId Programmable Voice API Call ID.
91
91
  * @param {string} recordingId Programmable Voice API Recording ID.
92
92
  * @param {*} [options] Override http request option.
93
93
  * @throws {RequiredError}
94
94
  */
95
- deleteRecording: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
95
+ deleteRecordingMedia: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
96
  // verify required parameter 'accountId' is not null or undefined
97
- assertParamExists('deleteRecording', 'accountId', accountId)
97
+ assertParamExists('deleteRecordingMedia', 'accountId', accountId)
98
98
  // verify required parameter 'callId' is not null or undefined
99
- assertParamExists('deleteRecording', 'callId', callId)
99
+ assertParamExists('deleteRecordingMedia', 'callId', callId)
100
100
  // verify required parameter 'recordingId' is not null or undefined
101
- assertParamExists('deleteRecording', 'recordingId', recordingId)
102
- const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}`
101
+ assertParamExists('deleteRecordingMedia', 'recordingId', recordingId)
102
+ const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media`
103
103
  .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
104
104
  .replace(`{${"callId"}}`, encodeURIComponent(String(callId)))
105
105
  .replace(`{${"recordingId"}}`, encodeURIComponent(String(recordingId)));
@@ -130,22 +130,22 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
130
130
  };
131
131
  },
132
132
  /**
133
- * Deletes the specified recording\'s media.
134
- * @summary Delete Recording Media
133
+ * 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.
134
+ * @summary Delete Transcription
135
135
  * @param {string} accountId Your Bandwidth Account ID.
136
136
  * @param {string} callId Programmable Voice API Call ID.
137
137
  * @param {string} recordingId Programmable Voice API Recording ID.
138
138
  * @param {*} [options] Override http request option.
139
139
  * @throws {RequiredError}
140
140
  */
141
- deleteRecordingMedia: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
141
+ deleteRecordingTranscription: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
142
  // verify required parameter 'accountId' is not null or undefined
143
- assertParamExists('deleteRecordingMedia', 'accountId', accountId)
143
+ assertParamExists('deleteRecordingTranscription', 'accountId', accountId)
144
144
  // verify required parameter 'callId' is not null or undefined
145
- assertParamExists('deleteRecordingMedia', 'callId', callId)
145
+ assertParamExists('deleteRecordingTranscription', 'callId', callId)
146
146
  // verify required parameter 'recordingId' is not null or undefined
147
- assertParamExists('deleteRecordingMedia', 'recordingId', recordingId)
148
- const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media`
147
+ assertParamExists('deleteRecordingTranscription', 'recordingId', recordingId)
148
+ const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription`
149
149
  .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
150
150
  .replace(`{${"callId"}}`, encodeURIComponent(String(callId)))
151
151
  .replace(`{${"recordingId"}}`, encodeURIComponent(String(recordingId)));
@@ -268,7 +268,7 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
268
268
  };
269
269
  },
270
270
  /**
271
- * Downloads the specified transcription. If the transcribed 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.
271
+ * 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.
272
272
  * @summary Get Transcription
273
273
  * @param {string} accountId Your Bandwidth Account ID.
274
274
  * @param {string} callId Programmable Voice API Call ID.
@@ -276,13 +276,13 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
276
276
  * @param {*} [options] Override http request option.
277
277
  * @throws {RequiredError}
278
278
  */
279
- getCallTranscription: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
279
+ getRecordingTranscription: async (accountId: string, callId: string, recordingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
280
280
  // verify required parameter 'accountId' is not null or undefined
281
- assertParamExists('getCallTranscription', 'accountId', accountId)
281
+ assertParamExists('getRecordingTranscription', 'accountId', accountId)
282
282
  // verify required parameter 'callId' is not null or undefined
283
- assertParamExists('getCallTranscription', 'callId', callId)
283
+ assertParamExists('getRecordingTranscription', 'callId', callId)
284
284
  // verify required parameter 'recordingId' is not null or undefined
285
- assertParamExists('getCallTranscription', 'recordingId', recordingId)
285
+ assertParamExists('getRecordingTranscription', 'recordingId', recordingId)
286
286
  const localVarPath = `/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription`
287
287
  .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)))
288
288
  .replace(`{${"callId"}}`, encodeURIComponent(String(callId)))
@@ -523,21 +523,6 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur
523
523
  export const RecordingsApiFp = function(configuration?: Configuration) {
524
524
  const localVarAxiosParamCreator = RecordingsApiAxiosParamCreator(configuration)
525
525
  return {
526
- /**
527
- * 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.
528
- * @summary Delete Transcription
529
- * @param {string} accountId Your Bandwidth Account ID.
530
- * @param {string} callId Programmable Voice API Call ID.
531
- * @param {string} recordingId Programmable Voice API Recording ID.
532
- * @param {*} [options] Override http request option.
533
- * @throws {RequiredError}
534
- */
535
- async deleteCallTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
536
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCallTranscription(accountId, callId, recordingId, options);
537
- const index = configuration?.serverIndex ?? 0;
538
- const operationBasePath = operationServerMap['RecordingsApi.deleteCallTranscription']?.[index]?.url;
539
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
540
- },
541
526
  /**
542
527
  * 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.
543
528
  * @summary Delete Recording
@@ -568,6 +553,21 @@ export const RecordingsApiFp = function(configuration?: Configuration) {
568
553
  const operationBasePath = operationServerMap['RecordingsApi.deleteRecordingMedia']?.[index]?.url;
569
554
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
570
555
  },
556
+ /**
557
+ * 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.
558
+ * @summary Delete Transcription
559
+ * @param {string} accountId Your Bandwidth Account ID.
560
+ * @param {string} callId Programmable Voice API Call ID.
561
+ * @param {string} recordingId Programmable Voice API Recording ID.
562
+ * @param {*} [options] Override http request option.
563
+ * @throws {RequiredError}
564
+ */
565
+ async deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
566
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRecordingTranscription(accountId, callId, recordingId, options);
567
+ const index = configuration?.serverIndex ?? 0;
568
+ const operationBasePath = operationServerMap['RecordingsApi.deleteRecordingTranscription']?.[index]?.url;
569
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
570
+ },
571
571
  /**
572
572
  * Downloads the specified recording.
573
573
  * @summary Download Recording
@@ -599,7 +599,7 @@ export const RecordingsApiFp = function(configuration?: Configuration) {
599
599
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
600
600
  },
601
601
  /**
602
- * Downloads the specified transcription. If the transcribed 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.
602
+ * 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.
603
603
  * @summary Get Transcription
604
604
  * @param {string} accountId Your Bandwidth Account ID.
605
605
  * @param {string} callId Programmable Voice API Call ID.
@@ -607,10 +607,10 @@ export const RecordingsApiFp = function(configuration?: Configuration) {
607
607
  * @param {*} [options] Override http request option.
608
608
  * @throws {RequiredError}
609
609
  */
610
- async getCallTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TranscriptionList>> {
611
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCallTranscription(accountId, callId, recordingId, options);
610
+ async getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecordingTranscriptions>> {
611
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRecordingTranscription(accountId, callId, recordingId, options);
612
612
  const index = configuration?.serverIndex ?? 0;
613
- const operationBasePath = operationServerMap['RecordingsApi.getCallTranscription']?.[index]?.url;
613
+ const operationBasePath = operationServerMap['RecordingsApi.getRecordingTranscription']?.[index]?.url;
614
614
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
615
615
  },
616
616
  /**
@@ -685,18 +685,6 @@ export const RecordingsApiFp = function(configuration?: Configuration) {
685
685
  export const RecordingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
686
686
  const localVarFp = RecordingsApiFp(configuration)
687
687
  return {
688
- /**
689
- * 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.
690
- * @summary Delete Transcription
691
- * @param {string} accountId Your Bandwidth Account ID.
692
- * @param {string} callId Programmable Voice API Call ID.
693
- * @param {string} recordingId Programmable Voice API Recording ID.
694
- * @param {*} [options] Override http request option.
695
- * @throws {RequiredError}
696
- */
697
- deleteCallTranscription(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<void> {
698
- return localVarFp.deleteCallTranscription(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
699
- },
700
688
  /**
701
689
  * 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.
702
690
  * @summary Delete Recording
@@ -721,6 +709,18 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
721
709
  deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<void> {
722
710
  return localVarFp.deleteRecordingMedia(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
723
711
  },
712
+ /**
713
+ * 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.
714
+ * @summary Delete Transcription
715
+ * @param {string} accountId Your Bandwidth Account ID.
716
+ * @param {string} callId Programmable Voice API Call ID.
717
+ * @param {string} recordingId Programmable Voice API Recording ID.
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ */
721
+ deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<void> {
722
+ return localVarFp.deleteRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
723
+ },
724
724
  /**
725
725
  * Downloads the specified recording.
726
726
  * @summary Download Recording
@@ -746,7 +746,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
746
746
  return localVarFp.getCallRecording(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
747
747
  },
748
748
  /**
749
- * Downloads the specified transcription. If the transcribed 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.
749
+ * 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.
750
750
  * @summary Get Transcription
751
751
  * @param {string} accountId Your Bandwidth Account ID.
752
752
  * @param {string} callId Programmable Voice API Call ID.
@@ -754,8 +754,8 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
754
754
  * @param {*} [options] Override http request option.
755
755
  * @throws {RequiredError}
756
756
  */
757
- getCallTranscription(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<TranscriptionList> {
758
- return localVarFp.getCallTranscription(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
757
+ getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<RecordingTranscriptions> {
758
+ return localVarFp.getRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
759
759
  },
760
760
  /**
761
761
  * 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.
@@ -818,8 +818,8 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
818
818
  */
819
819
  export class RecordingsApi extends BaseAPI {
820
820
  /**
821
- * 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.
822
- * @summary Delete Transcription
821
+ * 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.
822
+ * @summary Delete Recording
823
823
  * @param {string} accountId Your Bandwidth Account ID.
824
824
  * @param {string} callId Programmable Voice API Call ID.
825
825
  * @param {string} recordingId Programmable Voice API Recording ID.
@@ -827,13 +827,13 @@ export class RecordingsApi extends BaseAPI {
827
827
  * @throws {RequiredError}
828
828
  * @memberof RecordingsApi
829
829
  */
830
- public deleteCallTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
831
- return RecordingsApiFp(this.configuration).deleteCallTranscription(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
830
+ public deleteRecording(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
831
+ return RecordingsApiFp(this.configuration).deleteRecording(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
832
832
  }
833
833
 
834
834
  /**
835
- * 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.
836
- * @summary Delete Recording
835
+ * Deletes the specified recording\'s media.
836
+ * @summary Delete Recording Media
837
837
  * @param {string} accountId Your Bandwidth Account ID.
838
838
  * @param {string} callId Programmable Voice API Call ID.
839
839
  * @param {string} recordingId Programmable Voice API Recording ID.
@@ -841,13 +841,13 @@ export class RecordingsApi extends BaseAPI {
841
841
  * @throws {RequiredError}
842
842
  * @memberof RecordingsApi
843
843
  */
844
- public deleteRecording(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
845
- return RecordingsApiFp(this.configuration).deleteRecording(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
844
+ public deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
845
+ return RecordingsApiFp(this.configuration).deleteRecordingMedia(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
846
846
  }
847
847
 
848
848
  /**
849
- * Deletes the specified recording\'s media.
850
- * @summary Delete Recording Media
849
+ * 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.
850
+ * @summary Delete Transcription
851
851
  * @param {string} accountId Your Bandwidth Account ID.
852
852
  * @param {string} callId Programmable Voice API Call ID.
853
853
  * @param {string} recordingId Programmable Voice API Recording ID.
@@ -855,8 +855,8 @@ export class RecordingsApi extends BaseAPI {
855
855
  * @throws {RequiredError}
856
856
  * @memberof RecordingsApi
857
857
  */
858
- public deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
859
- return RecordingsApiFp(this.configuration).deleteRecordingMedia(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
858
+ public deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
859
+ return RecordingsApiFp(this.configuration).deleteRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
860
860
  }
861
861
 
862
862
  /**
@@ -888,7 +888,7 @@ export class RecordingsApi extends BaseAPI {
888
888
  }
889
889
 
890
890
  /**
891
- * Downloads the specified transcription. If the transcribed 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.
891
+ * 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.
892
892
  * @summary Get Transcription
893
893
  * @param {string} accountId Your Bandwidth Account ID.
894
894
  * @param {string} callId Programmable Voice API Call ID.
@@ -897,8 +897,8 @@ export class RecordingsApi extends BaseAPI {
897
897
  * @throws {RequiredError}
898
898
  * @memberof RecordingsApi
899
899
  */
900
- public getCallTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
901
- return RecordingsApiFp(this.configuration).getCallTranscription(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
900
+ public getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: AxiosRequestConfig) {
901
+ return RecordingsApiFp(this.configuration).getRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath));
902
902
  }
903
903
 
904
904
  /**