bandwidth-sdk 11.3.0 → 12.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +18 -16
  3. data/README.md +15 -9
  4. data/Rakefile +4 -12
  5. data/bandwidth.yml +243 -28
  6. data/coverage/.last_run.json +1 -1
  7. data/coverage/.resultset.json +1412 -1009
  8. data/coverage/index.html +16274 -11823
  9. data/custom_templates/README.mustache +4 -4
  10. data/docs/AnswerCallback.md +1 -1
  11. data/docs/BridgeCompleteCallback.md +1 -1
  12. data/docs/BridgeTargetCompleteCallback.md +1 -1
  13. data/docs/CallRecordingMetadata.md +3 -3
  14. data/docs/CallTranscription.md +24 -0
  15. data/docs/CallTranscriptionMetadata.md +20 -0
  16. data/docs/CallTranscriptionResponse.md +24 -0
  17. data/docs/CallsApi.md +1 -1
  18. data/docs/ConferenceMemberExitCallback.md +1 -1
  19. data/docs/ConferenceMemberJoinCallback.md +1 -1
  20. data/docs/CreateCall.md +5 -3
  21. data/docs/DisconnectCallback.md +1 -1
  22. data/docs/DtmfCallback.md +2 -2
  23. data/docs/GatherCallback.md +2 -2
  24. data/docs/InitiateCallback.md +1 -1
  25. data/docs/MachineDetectionCompleteCallback.md +1 -1
  26. data/docs/RecordingAvailableCallback.md +4 -4
  27. data/docs/RecordingCompleteCallback.md +2 -2
  28. data/docs/RecordingTranscriptionMetadata.md +24 -0
  29. data/docs/RecordingTranscriptions.md +18 -0
  30. data/docs/RecordingsApi.md +49 -49
  31. data/docs/RedirectCallback.md +2 -2
  32. data/docs/TranscriptionAvailableCallback.md +2 -2
  33. data/docs/TranscriptionsApi.md +229 -0
  34. data/docs/TransferAnswerCallback.md +2 -2
  35. data/docs/TransferCompleteCallback.md +2 -2
  36. data/docs/TransferDisconnectCallback.md +2 -2
  37. data/lib/bandwidth-sdk/api/recordings_api.rb +56 -56
  38. data/lib/bandwidth-sdk/api/transcriptions_api.rb +241 -0
  39. data/lib/bandwidth-sdk/configuration.rb +22 -4
  40. data/lib/bandwidth-sdk/models/answer_callback.rb +1 -1
  41. data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +1 -1
  42. data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +1 -1
  43. data/lib/bandwidth-sdk/models/call_recording_metadata.rb +3 -3
  44. data/lib/bandwidth-sdk/models/call_transcription.rb +317 -0
  45. data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +223 -0
  46. data/lib/bandwidth-sdk/models/call_transcription_response.rb +244 -0
  47. data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +1 -1
  48. data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +1 -1
  49. data/lib/bandwidth-sdk/models/create_call.rb +14 -3
  50. data/lib/bandwidth-sdk/models/disconnect_callback.rb +1 -1
  51. data/lib/bandwidth-sdk/models/dtmf_callback.rb +2 -2
  52. data/lib/bandwidth-sdk/models/gather_callback.rb +2 -2
  53. data/lib/bandwidth-sdk/models/initiate_callback.rb +1 -1
  54. data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +1 -1
  55. data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +1 -1
  56. data/lib/bandwidth-sdk/models/recording_available_callback.rb +4 -4
  57. data/lib/bandwidth-sdk/models/recording_complete_callback.rb +2 -2
  58. data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +244 -0
  59. data/lib/bandwidth-sdk/models/recording_transcriptions.rb +214 -0
  60. data/lib/bandwidth-sdk/models/redirect_callback.rb +2 -2
  61. data/lib/bandwidth-sdk/models/transcription_available_callback.rb +2 -2
  62. data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +2 -2
  63. data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +2 -2
  64. data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +2 -2
  65. data/lib/bandwidth-sdk/version.rb +1 -1
  66. data/lib/bandwidth-sdk.rb +6 -2
  67. data/spec/{integration/calls_api_integration_spec.rb → smoke/calls_api_spec.rb} +9 -7
  68. data/spec/{integration/conferences_api_integration_spec.rb → smoke/conferences_api_spec.rb} +9 -9
  69. data/spec/{integration/media_api_integration_spec.rb → smoke/media_api_spec.rb} +7 -7
  70. data/spec/{integration/messages_api_integration_spec.rb → smoke/messages_api_spec.rb} +3 -3
  71. data/spec/{integration/mfa_api_integration_spec.rb → smoke/mfa_api_spec.rb} +3 -3
  72. data/spec/{integration/phone_number_lookup_api_integration_spec.rb → smoke/phone_number_lookup_api_spec.rb} +2 -2
  73. data/spec/{integration/recordings_api_integration_spec.rb → smoke/recordings_api_spec.rb} +14 -14
  74. data/spec/{integration/statistics_api_integration_spec.rb → smoke/statistics_api_spec.rb} +1 -1
  75. data/spec/smoke/transcriptions_api_spec.rb +84 -0
  76. data/spec/spec_helper.rb +2 -2
  77. data/spec/{api → unit/api}/calls_api_spec.rb +6 -4
  78. data/spec/{api → unit/api}/conferences_api_spec.rb +12 -12
  79. data/spec/{api → unit/api}/media_api_spec.rb +6 -6
  80. data/spec/{api → unit/api}/messages_api_spec.rb +2 -2
  81. data/spec/{api → unit/api}/mfa_api_spec.rb +6 -6
  82. data/spec/{api → unit/api}/phone_number_lookup_api_spec.rb +2 -2
  83. data/spec/{api → unit/api}/recordings_api_spec.rb +30 -30
  84. data/spec/{api → unit/api}/statistics_api_spec.rb +1 -1
  85. data/spec/unit/api/transcriptions_api_spec.rb +130 -0
  86. data/spec/{api_client_spec.rb → unit/client/api_client_spec.rb} +2 -2
  87. metadata +130 -114
  88. /data/spec/{api_error_spec.rb → unit/client/api_error_spec.rb} +0 -0
  89. /data/spec/{configuration_spec.rb → unit/client/configuration_spec.rb} +0 -0
  90. /data/spec/{models → unit/models}/bxml/bxml_spec.rb +0 -0
  91. /data/spec/{models → unit/models}/bxml/nestable_verb_spec.rb +0 -0
  92. /data/spec/{models → unit/models}/bxml/response_spec.rb +0 -0
  93. /data/spec/{models → unit/models}/bxml/verb_spec.rb +0 -0
  94. /data/spec/{models → unit/models}/bxml/verbs/bridge_spec.rb +0 -0
  95. /data/spec/{models → unit/models}/bxml/verbs/conference_spec.rb +0 -0
  96. /data/spec/{models → unit/models}/bxml/verbs/custom_param_spec.rb +0 -0
  97. /data/spec/{models → unit/models}/bxml/verbs/forward_spec.rb +0 -0
  98. /data/spec/{models → unit/models}/bxml/verbs/gather_spec.rb +0 -0
  99. /data/spec/{models → unit/models}/bxml/verbs/hangup_spec.rb +0 -0
  100. /data/spec/{models → unit/models}/bxml/verbs/pause_recording_spec.rb +0 -0
  101. /data/spec/{models → unit/models}/bxml/verbs/pause_spec.rb +0 -0
  102. /data/spec/{models → unit/models}/bxml/verbs/phone_number_spec.rb +0 -0
  103. /data/spec/{models → unit/models}/bxml/verbs/play_audio_spec.rb +0 -0
  104. /data/spec/{models → unit/models}/bxml/verbs/record_spec.rb +0 -0
  105. /data/spec/{models → unit/models}/bxml/verbs/redirect_spec.rb +0 -0
  106. /data/spec/{models → unit/models}/bxml/verbs/resume_recording_spec.rb +0 -0
  107. /data/spec/{models → unit/models}/bxml/verbs/ring_spec.rb +0 -0
  108. /data/spec/{models → unit/models}/bxml/verbs/send_dtmf_spec.rb +0 -0
  109. /data/spec/{models → unit/models}/bxml/verbs/sip_uri_spec.rb +0 -0
  110. /data/spec/{models → unit/models}/bxml/verbs/speak_sentence_spec.rb +0 -0
  111. /data/spec/{models → unit/models}/bxml/verbs/start_gather_spec.rb +0 -0
  112. /data/spec/{models → unit/models}/bxml/verbs/start_recording_spec.rb +0 -0
  113. /data/spec/{models → unit/models}/bxml/verbs/start_stream_spec.rb +0 -0
  114. /data/spec/{models → unit/models}/bxml/verbs/start_transcription_spec.rb +0 -0
  115. /data/spec/{models → unit/models}/bxml/verbs/stop_gather_spec.rb +0 -0
  116. /data/spec/{models → unit/models}/bxml/verbs/stop_recording_spec.rb +0 -0
  117. /data/spec/{models → unit/models}/bxml/verbs/stop_stream_spec.rb +0 -0
  118. /data/spec/{models → unit/models}/bxml/verbs/stop_transcription_spec.rb +0 -0
  119. /data/spec/{models → unit/models}/bxml/verbs/stream_param_spec.rb +0 -0
  120. /data/spec/{models → unit/models}/bxml/verbs/tag_spec.rb +0 -0
  121. /data/spec/{models → unit/models}/bxml/verbs/transfer_spec.rb +0 -0
  122. /data/spec/{models → unit/models}/call_state_enum_spec.rb +0 -0
  123. /data/spec/{models → unit/models}/call_state_spec.rb +0 -0
  124. /data/spec/{models → unit/models}/deferred_result_spec.rb +0 -0
  125. /data/spec/{models → unit/models}/message_spec.rb +0 -0
  126. /data/spec/{models → unit/models}/verify_code_request_spec.rb +0 -0
@@ -8,7 +8,7 @@
8
8
  | **event_time** | **Time** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] |
9
9
  | **account_id** | **String** | The user account associated with the call. | [optional] |
10
10
  | **application_id** | **String** | The id of the application associated with the call. | [optional] |
11
- | **from** | **String** | The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous. | [optional] |
11
+ | **from** | **String** | The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). | [optional] |
12
12
  | **to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] |
13
13
  | **direction** | [**CallDirectionEnum**](CallDirectionEnum.md) | | [optional] |
14
14
  | **call_id** | **String** | The call id associated with the event. | [optional] |
@@ -18,7 +18,7 @@
18
18
  | **start_time** | **Time** | Time the call was started, in ISO 8601 format. | [optional] |
19
19
  | **answer_time** | **Time** | Time the call was answered, in ISO 8601 format. | [optional] |
20
20
  | **tag** | **String** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] |
21
- | **transfer_caller_id** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555) or one of Restricted, Anonymous, Private, or Unavailable. | [optional] |
21
+ | **transfer_caller_id** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
22
22
  | **transfer_to** | **String** | The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
23
23
 
24
24
  ## Example
@@ -8,7 +8,7 @@
8
8
  | **event_time** | **Time** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] |
9
9
  | **account_id** | **String** | The user account associated with the call. | [optional] |
10
10
  | **application_id** | **String** | The id of the application associated with the call. | [optional] |
11
- | **from** | **String** | The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous. | [optional] |
11
+ | **from** | **String** | The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). | [optional] |
12
12
  | **to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] |
13
13
  | **direction** | [**CallDirectionEnum**](CallDirectionEnum.md) | | [optional] |
14
14
  | **call_id** | **String** | The call id associated with the event. | [optional] |
@@ -23,7 +23,7 @@
23
23
  | **file_format** | [**FileFormatEnum**](FileFormatEnum.md) | | [optional] |
24
24
  | **tag** | **String** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] |
25
25
  | **transcription** | [**Transcription**](Transcription.md) | | [optional] |
26
- | **transfer_caller_id** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555) or one of Restricted, Anonymous, Private, or Unavailable. | [optional] |
26
+ | **transfer_caller_id** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
27
27
  | **transfer_to** | **String** | The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
28
28
 
29
29
  ## Example
@@ -0,0 +1,229 @@
1
+ # Bandwidth::TranscriptionsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**delete_real_time_transcription**](TranscriptionsApi.md#delete_real_time_transcription) | **DELETE** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Delete a specific transcription |
8
+ | [**get_real_time_transcription**](TranscriptionsApi.md#get_real_time_transcription) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Retrieve a specific transcription |
9
+ | [**list_real_time_transcriptions**](TranscriptionsApi.md#list_real_time_transcriptions) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions | Enumerate transcriptions made with StartTranscription |
10
+
11
+
12
+ ## delete_real_time_transcription
13
+
14
+ > delete_real_time_transcription(account_id, call_id, transcription_id)
15
+
16
+ Delete a specific transcription
17
+
18
+ Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). 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.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'bandwidth-sdk'
25
+ # setup authorization
26
+ Bandwidth.configure do |config|
27
+ # Configure HTTP basic authorization: Basic
28
+ config.username = 'YOUR USERNAME'
29
+ config.password = 'YOUR PASSWORD'
30
+ end
31
+
32
+ api_instance = Bandwidth::TranscriptionsApi.new
33
+ account_id = '9900000' # String | Your Bandwidth Account ID.
34
+ call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Call ID.
35
+ transcription_id = 't-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Transcription ID.
36
+
37
+ begin
38
+ # Delete a specific transcription
39
+ api_instance.delete_real_time_transcription(account_id, call_id, transcription_id)
40
+ rescue Bandwidth::ApiError => e
41
+ puts "Error when calling TranscriptionsApi->delete_real_time_transcription: #{e}"
42
+ end
43
+ ```
44
+
45
+ #### Using the delete_real_time_transcription_with_http_info variant
46
+
47
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
48
+
49
+ > <Array(nil, Integer, Hash)> delete_real_time_transcription_with_http_info(account_id, call_id, transcription_id)
50
+
51
+ ```ruby
52
+ begin
53
+ # Delete a specific transcription
54
+ data, status_code, headers = api_instance.delete_real_time_transcription_with_http_info(account_id, call_id, transcription_id)
55
+ p status_code # => 2xx
56
+ p headers # => { ... }
57
+ p data # => nil
58
+ rescue Bandwidth::ApiError => e
59
+ puts "Error when calling TranscriptionsApi->delete_real_time_transcription_with_http_info: #{e}"
60
+ end
61
+ ```
62
+
63
+ ### Parameters
64
+
65
+ | Name | Type | Description | Notes |
66
+ | ---- | ---- | ----------- | ----- |
67
+ | **account_id** | **String** | Your Bandwidth Account ID. | |
68
+ | **call_id** | **String** | Programmable Voice API Call ID. | |
69
+ | **transcription_id** | **String** | Programmable Voice API Transcription ID. | |
70
+
71
+ ### Return type
72
+
73
+ nil (empty response body)
74
+
75
+ ### Authorization
76
+
77
+ [Basic](../README.md#Basic)
78
+
79
+ ### HTTP request headers
80
+
81
+ - **Content-Type**: Not defined
82
+ - **Accept**: application/json
83
+
84
+
85
+ ## get_real_time_transcription
86
+
87
+ > <CallTranscriptionResponse> get_real_time_transcription(account_id, call_id, transcription_id)
88
+
89
+ Retrieve a specific transcription
90
+
91
+ Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
92
+
93
+ ### Examples
94
+
95
+ ```ruby
96
+ require 'time'
97
+ require 'bandwidth-sdk'
98
+ # setup authorization
99
+ Bandwidth.configure do |config|
100
+ # Configure HTTP basic authorization: Basic
101
+ config.username = 'YOUR USERNAME'
102
+ config.password = 'YOUR PASSWORD'
103
+ end
104
+
105
+ api_instance = Bandwidth::TranscriptionsApi.new
106
+ account_id = '9900000' # String | Your Bandwidth Account ID.
107
+ call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Call ID.
108
+ transcription_id = 't-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Transcription ID.
109
+
110
+ begin
111
+ # Retrieve a specific transcription
112
+ result = api_instance.get_real_time_transcription(account_id, call_id, transcription_id)
113
+ p result
114
+ rescue Bandwidth::ApiError => e
115
+ puts "Error when calling TranscriptionsApi->get_real_time_transcription: #{e}"
116
+ end
117
+ ```
118
+
119
+ #### Using the get_real_time_transcription_with_http_info variant
120
+
121
+ This returns an Array which contains the response data, status code and headers.
122
+
123
+ > <Array(<CallTranscriptionResponse>, Integer, Hash)> get_real_time_transcription_with_http_info(account_id, call_id, transcription_id)
124
+
125
+ ```ruby
126
+ begin
127
+ # Retrieve a specific transcription
128
+ data, status_code, headers = api_instance.get_real_time_transcription_with_http_info(account_id, call_id, transcription_id)
129
+ p status_code # => 2xx
130
+ p headers # => { ... }
131
+ p data # => <CallTranscriptionResponse>
132
+ rescue Bandwidth::ApiError => e
133
+ puts "Error when calling TranscriptionsApi->get_real_time_transcription_with_http_info: #{e}"
134
+ end
135
+ ```
136
+
137
+ ### Parameters
138
+
139
+ | Name | Type | Description | Notes |
140
+ | ---- | ---- | ----------- | ----- |
141
+ | **account_id** | **String** | Your Bandwidth Account ID. | |
142
+ | **call_id** | **String** | Programmable Voice API Call ID. | |
143
+ | **transcription_id** | **String** | Programmable Voice API Transcription ID. | |
144
+
145
+ ### Return type
146
+
147
+ [**CallTranscriptionResponse**](CallTranscriptionResponse.md)
148
+
149
+ ### Authorization
150
+
151
+ [Basic](../README.md#Basic)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: Not defined
156
+ - **Accept**: application/json
157
+
158
+
159
+ ## list_real_time_transcriptions
160
+
161
+ > <Array<CallTranscriptionMetadata>> list_real_time_transcriptions(account_id, call_id)
162
+
163
+ Enumerate transcriptions made with StartTranscription
164
+
165
+ Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription).
166
+
167
+ ### Examples
168
+
169
+ ```ruby
170
+ require 'time'
171
+ require 'bandwidth-sdk'
172
+ # setup authorization
173
+ Bandwidth.configure do |config|
174
+ # Configure HTTP basic authorization: Basic
175
+ config.username = 'YOUR USERNAME'
176
+ config.password = 'YOUR PASSWORD'
177
+ end
178
+
179
+ api_instance = Bandwidth::TranscriptionsApi.new
180
+ account_id = '9900000' # String | Your Bandwidth Account ID.
181
+ call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Call ID.
182
+
183
+ begin
184
+ # Enumerate transcriptions made with StartTranscription
185
+ result = api_instance.list_real_time_transcriptions(account_id, call_id)
186
+ p result
187
+ rescue Bandwidth::ApiError => e
188
+ puts "Error when calling TranscriptionsApi->list_real_time_transcriptions: #{e}"
189
+ end
190
+ ```
191
+
192
+ #### Using the list_real_time_transcriptions_with_http_info variant
193
+
194
+ This returns an Array which contains the response data, status code and headers.
195
+
196
+ > <Array(<Array<CallTranscriptionMetadata>>, Integer, Hash)> list_real_time_transcriptions_with_http_info(account_id, call_id)
197
+
198
+ ```ruby
199
+ begin
200
+ # Enumerate transcriptions made with StartTranscription
201
+ data, status_code, headers = api_instance.list_real_time_transcriptions_with_http_info(account_id, call_id)
202
+ p status_code # => 2xx
203
+ p headers # => { ... }
204
+ p data # => <Array<CallTranscriptionMetadata>>
205
+ rescue Bandwidth::ApiError => e
206
+ puts "Error when calling TranscriptionsApi->list_real_time_transcriptions_with_http_info: #{e}"
207
+ end
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ | Name | Type | Description | Notes |
213
+ | ---- | ---- | ----------- | ----- |
214
+ | **account_id** | **String** | Your Bandwidth Account ID. | |
215
+ | **call_id** | **String** | Programmable Voice API Call ID. | |
216
+
217
+ ### Return type
218
+
219
+ [**Array&lt;CallTranscriptionMetadata&gt;**](CallTranscriptionMetadata.md)
220
+
221
+ ### Authorization
222
+
223
+ [Basic](../README.md#Basic)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: Not defined
228
+ - **Accept**: application/json
229
+
@@ -8,7 +8,7 @@
8
8
  | **event_time** | **Time** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] |
9
9
  | **account_id** | **String** | The user account associated with the call. | [optional] |
10
10
  | **application_id** | **String** | The id of the application associated with the call. | [optional] |
11
- | **from** | **String** | The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous. | [optional] |
11
+ | **from** | **String** | The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). | [optional] |
12
12
  | **to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] |
13
13
  | **direction** | [**CallDirectionEnum**](CallDirectionEnum.md) | | [optional] |
14
14
  | **call_id** | **String** | The call id associated with the event. | [optional] |
@@ -17,7 +17,7 @@
17
17
  | **start_time** | **Time** | Time the call was started, in ISO 8601 format. | [optional] |
18
18
  | **answer_time** | **Time** | Time the call was answered, in ISO 8601 format. | [optional] |
19
19
  | **tag** | **String** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] |
20
- | **transfer_caller_id** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555) or one of Restricted, Anonymous, Private, or Unavailable. | [optional] |
20
+ | **transfer_caller_id** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
21
21
  | **transfer_to** | **String** | The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
22
22
 
23
23
  ## Example
@@ -8,7 +8,7 @@
8
8
  | **event_time** | **Time** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] |
9
9
  | **account_id** | **String** | The user account associated with the call. | [optional] |
10
10
  | **application_id** | **String** | The id of the application associated with the call. | [optional] |
11
- | **from** | **String** | The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous. | [optional] |
11
+ | **from** | **String** | The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). | [optional] |
12
12
  | **to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] |
13
13
  | **direction** | [**CallDirectionEnum**](CallDirectionEnum.md) | | [optional] |
14
14
  | **call_id** | **String** | The call id associated with the event. | [optional] |
@@ -17,7 +17,7 @@
17
17
  | **start_time** | **Time** | Time the call was started, in ISO 8601 format. | [optional] |
18
18
  | **answer_time** | **Time** | Time the call was answered, in ISO 8601 format. | [optional] |
19
19
  | **tag** | **String** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] |
20
- | **transfer_caller_id** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555) or one of Restricted, Anonymous, Private, or Unavailable. | [optional] |
20
+ | **transfer_caller_id** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
21
21
  | **transfer_to** | **String** | The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
22
22
  | **cause** | **String** | Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. | [optional] |
23
23
  | **error_message** | **String** | Text explaining the reason that caused the call to fail in case of errors. | [optional] |
@@ -8,7 +8,7 @@
8
8
  | **event_time** | **Time** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] |
9
9
  | **account_id** | **String** | The user account associated with the call. | [optional] |
10
10
  | **application_id** | **String** | The id of the application associated with the call. | [optional] |
11
- | **from** | **String** | The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous. | [optional] |
11
+ | **from** | **String** | The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). | [optional] |
12
12
  | **to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] |
13
13
  | **direction** | [**CallDirectionEnum**](CallDirectionEnum.md) | | [optional] |
14
14
  | **call_id** | **String** | The call id associated with the event. | [optional] |
@@ -19,7 +19,7 @@
19
19
  | **answer_time** | **Time** | Time the call was answered, in ISO 8601 format. | [optional] |
20
20
  | **end_time** | **Time** | The time that the recording ended in ISO-8601 format | [optional] |
21
21
  | **tag** | **String** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] |
22
- | **transfer_caller_id** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555) or one of Restricted, Anonymous, Private, or Unavailable. | [optional] |
22
+ | **transfer_caller_id** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
23
23
  | **transfer_to** | **String** | The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
24
24
  | **cause** | **String** | Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. | [optional] |
25
25
  | **error_message** | **String** | Text explaining the reason that caused the call to fail in case of errors. | [optional] |
@@ -19,43 +19,43 @@ module Bandwidth
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Delete Transcription
23
- # 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.
22
+ # Delete Recording
23
+ # 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.
24
24
  # @param account_id [String] Your Bandwidth Account ID.
25
25
  # @param call_id [String] Programmable Voice API Call ID.
26
26
  # @param recording_id [String] Programmable Voice API Recording ID.
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @return [nil]
29
- def delete_call_transcription(account_id, call_id, recording_id, opts = {})
30
- delete_call_transcription_with_http_info(account_id, call_id, recording_id, opts)
29
+ def delete_recording(account_id, call_id, recording_id, opts = {})
30
+ delete_recording_with_http_info(account_id, call_id, recording_id, opts)
31
31
  nil
32
32
  end
33
33
 
34
- # Delete Transcription
35
- # Deletes the specified recording&#39;s transcription. Note: After the deletion is requested and a &#x60;204&#x60; 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.
34
+ # Delete Recording
35
+ # Delete the recording information, media and transcription. Note: After the deletion is requested and a &#x60;204&#x60; 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.
36
36
  # @param account_id [String] Your Bandwidth Account ID.
37
37
  # @param call_id [String] Programmable Voice API Call ID.
38
38
  # @param recording_id [String] Programmable Voice API Recording ID.
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
41
- def delete_call_transcription_with_http_info(account_id, call_id, recording_id, opts = {})
41
+ def delete_recording_with_http_info(account_id, call_id, recording_id, opts = {})
42
42
  if @api_client.config.debugging
43
- @api_client.config.logger.debug 'Calling API: RecordingsApi.delete_call_transcription ...'
43
+ @api_client.config.logger.debug 'Calling API: RecordingsApi.delete_recording ...'
44
44
  end
45
45
  # verify the required parameter 'account_id' is set
46
46
  if @api_client.config.client_side_validation && account_id.nil?
47
- fail ArgumentError, "Missing the required parameter 'account_id' when calling RecordingsApi.delete_call_transcription"
47
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling RecordingsApi.delete_recording"
48
48
  end
49
49
  # verify the required parameter 'call_id' is set
50
50
  if @api_client.config.client_side_validation && call_id.nil?
51
- fail ArgumentError, "Missing the required parameter 'call_id' when calling RecordingsApi.delete_call_transcription"
51
+ fail ArgumentError, "Missing the required parameter 'call_id' when calling RecordingsApi.delete_recording"
52
52
  end
53
53
  # verify the required parameter 'recording_id' is set
54
54
  if @api_client.config.client_side_validation && recording_id.nil?
55
- fail ArgumentError, "Missing the required parameter 'recording_id' when calling RecordingsApi.delete_call_transcription"
55
+ fail ArgumentError, "Missing the required parameter 'recording_id' when calling RecordingsApi.delete_recording"
56
56
  end
57
57
  # resource path
58
- local_var_path = '/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
58
+ local_var_path = '/accounts/{accountId}/calls/{callId}/recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
59
59
 
60
60
  # query parameters
61
61
  query_params = opts[:query_params] || {}
@@ -78,7 +78,7 @@ module Bandwidth
78
78
  auth_names = opts[:debug_auth_names] || ['Basic']
79
79
 
80
80
  new_options = opts.merge(
81
- :operation => :"RecordingsApi.delete_call_transcription",
81
+ :operation => :"RecordingsApi.delete_recording",
82
82
  :header_params => header_params,
83
83
  :query_params => query_params,
84
84
  :form_params => form_params,
@@ -89,48 +89,48 @@ module Bandwidth
89
89
 
90
90
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
91
91
  if @api_client.config.debugging
92
- @api_client.config.logger.debug "API called: RecordingsApi#delete_call_transcription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ @api_client.config.logger.debug "API called: RecordingsApi#delete_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
93
93
  end
94
94
  return data, status_code, headers
95
95
  end
96
96
 
97
- # Delete Recording
98
- # 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.
97
+ # Delete Recording Media
98
+ # Deletes the specified recording's media.
99
99
  # @param account_id [String] Your Bandwidth Account ID.
100
100
  # @param call_id [String] Programmable Voice API Call ID.
101
101
  # @param recording_id [String] Programmable Voice API Recording ID.
102
102
  # @param [Hash] opts the optional parameters
103
103
  # @return [nil]
104
- def delete_recording(account_id, call_id, recording_id, opts = {})
105
- delete_recording_with_http_info(account_id, call_id, recording_id, opts)
104
+ def delete_recording_media(account_id, call_id, recording_id, opts = {})
105
+ delete_recording_media_with_http_info(account_id, call_id, recording_id, opts)
106
106
  nil
107
107
  end
108
108
 
109
- # Delete Recording
110
- # Delete the recording information, media and transcription. Note: After the deletion is requested and a &#x60;204&#x60; 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.
109
+ # Delete Recording Media
110
+ # Deletes the specified recording&#39;s media.
111
111
  # @param account_id [String] Your Bandwidth Account ID.
112
112
  # @param call_id [String] Programmable Voice API Call ID.
113
113
  # @param recording_id [String] Programmable Voice API Recording ID.
114
114
  # @param [Hash] opts the optional parameters
115
115
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
116
- def delete_recording_with_http_info(account_id, call_id, recording_id, opts = {})
116
+ def delete_recording_media_with_http_info(account_id, call_id, recording_id, opts = {})
117
117
  if @api_client.config.debugging
118
- @api_client.config.logger.debug 'Calling API: RecordingsApi.delete_recording ...'
118
+ @api_client.config.logger.debug 'Calling API: RecordingsApi.delete_recording_media ...'
119
119
  end
120
120
  # verify the required parameter 'account_id' is set
121
121
  if @api_client.config.client_side_validation && account_id.nil?
122
- fail ArgumentError, "Missing the required parameter 'account_id' when calling RecordingsApi.delete_recording"
122
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling RecordingsApi.delete_recording_media"
123
123
  end
124
124
  # verify the required parameter 'call_id' is set
125
125
  if @api_client.config.client_side_validation && call_id.nil?
126
- fail ArgumentError, "Missing the required parameter 'call_id' when calling RecordingsApi.delete_recording"
126
+ fail ArgumentError, "Missing the required parameter 'call_id' when calling RecordingsApi.delete_recording_media"
127
127
  end
128
128
  # verify the required parameter 'recording_id' is set
129
129
  if @api_client.config.client_side_validation && recording_id.nil?
130
- fail ArgumentError, "Missing the required parameter 'recording_id' when calling RecordingsApi.delete_recording"
130
+ fail ArgumentError, "Missing the required parameter 'recording_id' when calling RecordingsApi.delete_recording_media"
131
131
  end
132
132
  # resource path
133
- local_var_path = '/accounts/{accountId}/calls/{callId}/recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
133
+ local_var_path = '/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
134
134
 
135
135
  # query parameters
136
136
  query_params = opts[:query_params] || {}
@@ -153,7 +153,7 @@ module Bandwidth
153
153
  auth_names = opts[:debug_auth_names] || ['Basic']
154
154
 
155
155
  new_options = opts.merge(
156
- :operation => :"RecordingsApi.delete_recording",
156
+ :operation => :"RecordingsApi.delete_recording_media",
157
157
  :header_params => header_params,
158
158
  :query_params => query_params,
159
159
  :form_params => form_params,
@@ -164,48 +164,48 @@ module Bandwidth
164
164
 
165
165
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
166
166
  if @api_client.config.debugging
167
- @api_client.config.logger.debug "API called: RecordingsApi#delete_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
+ @api_client.config.logger.debug "API called: RecordingsApi#delete_recording_media\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
168
168
  end
169
169
  return data, status_code, headers
170
170
  end
171
171
 
172
- # Delete Recording Media
173
- # Deletes the specified recording's media.
172
+ # Delete Transcription
173
+ # 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.
174
174
  # @param account_id [String] Your Bandwidth Account ID.
175
175
  # @param call_id [String] Programmable Voice API Call ID.
176
176
  # @param recording_id [String] Programmable Voice API Recording ID.
177
177
  # @param [Hash] opts the optional parameters
178
178
  # @return [nil]
179
- def delete_recording_media(account_id, call_id, recording_id, opts = {})
180
- delete_recording_media_with_http_info(account_id, call_id, recording_id, opts)
179
+ def delete_recording_transcription(account_id, call_id, recording_id, opts = {})
180
+ delete_recording_transcription_with_http_info(account_id, call_id, recording_id, opts)
181
181
  nil
182
182
  end
183
183
 
184
- # Delete Recording Media
185
- # Deletes the specified recording&#39;s media.
184
+ # Delete Transcription
185
+ # Deletes the specified recording&#39;s transcription. Note: After the deletion is requested and a &#x60;204&#x60; 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.
186
186
  # @param account_id [String] Your Bandwidth Account ID.
187
187
  # @param call_id [String] Programmable Voice API Call ID.
188
188
  # @param recording_id [String] Programmable Voice API Recording ID.
189
189
  # @param [Hash] opts the optional parameters
190
190
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
191
- def delete_recording_media_with_http_info(account_id, call_id, recording_id, opts = {})
191
+ def delete_recording_transcription_with_http_info(account_id, call_id, recording_id, opts = {})
192
192
  if @api_client.config.debugging
193
- @api_client.config.logger.debug 'Calling API: RecordingsApi.delete_recording_media ...'
193
+ @api_client.config.logger.debug 'Calling API: RecordingsApi.delete_recording_transcription ...'
194
194
  end
195
195
  # verify the required parameter 'account_id' is set
196
196
  if @api_client.config.client_side_validation && account_id.nil?
197
- fail ArgumentError, "Missing the required parameter 'account_id' when calling RecordingsApi.delete_recording_media"
197
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling RecordingsApi.delete_recording_transcription"
198
198
  end
199
199
  # verify the required parameter 'call_id' is set
200
200
  if @api_client.config.client_side_validation && call_id.nil?
201
- fail ArgumentError, "Missing the required parameter 'call_id' when calling RecordingsApi.delete_recording_media"
201
+ fail ArgumentError, "Missing the required parameter 'call_id' when calling RecordingsApi.delete_recording_transcription"
202
202
  end
203
203
  # verify the required parameter 'recording_id' is set
204
204
  if @api_client.config.client_side_validation && recording_id.nil?
205
- fail ArgumentError, "Missing the required parameter 'recording_id' when calling RecordingsApi.delete_recording_media"
205
+ fail ArgumentError, "Missing the required parameter 'recording_id' when calling RecordingsApi.delete_recording_transcription"
206
206
  end
207
207
  # resource path
208
- local_var_path = '/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
208
+ local_var_path = '/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
209
209
 
210
210
  # query parameters
211
211
  query_params = opts[:query_params] || {}
@@ -228,7 +228,7 @@ module Bandwidth
228
228
  auth_names = opts[:debug_auth_names] || ['Basic']
229
229
 
230
230
  new_options = opts.merge(
231
- :operation => :"RecordingsApi.delete_recording_media",
231
+ :operation => :"RecordingsApi.delete_recording_transcription",
232
232
  :header_params => header_params,
233
233
  :query_params => query_params,
234
234
  :form_params => form_params,
@@ -239,7 +239,7 @@ module Bandwidth
239
239
 
240
240
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
241
241
  if @api_client.config.debugging
242
- @api_client.config.logger.debug "API called: RecordingsApi#delete_recording_media\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
242
+ @api_client.config.logger.debug "API called: RecordingsApi#delete_recording_transcription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
243
243
  end
244
244
  return data, status_code, headers
245
245
  end
@@ -395,39 +395,39 @@ module Bandwidth
395
395
  end
396
396
 
397
397
  # Get Transcription
398
- # 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.
398
+ # 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.
399
399
  # @param account_id [String] Your Bandwidth Account ID.
400
400
  # @param call_id [String] Programmable Voice API Call ID.
401
401
  # @param recording_id [String] Programmable Voice API Recording ID.
402
402
  # @param [Hash] opts the optional parameters
403
- # @return [TranscriptionList]
404
- def get_call_transcription(account_id, call_id, recording_id, opts = {})
405
- data, _status_code, _headers = get_call_transcription_with_http_info(account_id, call_id, recording_id, opts)
403
+ # @return [RecordingTranscriptions]
404
+ def get_recording_transcription(account_id, call_id, recording_id, opts = {})
405
+ data, _status_code, _headers = get_recording_transcription_with_http_info(account_id, call_id, recording_id, opts)
406
406
  data
407
407
  end
408
408
 
409
409
  # Get Transcription
410
- # 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 [&#x60;&lt;PlayAudio&gt;&#x60;](/docs/voice/bxml/playAudio) and [&#x60;&lt;SpeakSentence&gt;&#x60;](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [&#x60;&lt;Transfer&gt;&#x60;](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
410
+ # 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 [&#x60;&lt;PlayAudio&gt;&#x60;](/docs/voice/bxml/playAudio) and [&#x60;&lt;SpeakSentence&gt;&#x60;](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [&#x60;&lt;Transfer&gt;&#x60;](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item.
411
411
  # @param account_id [String] Your Bandwidth Account ID.
412
412
  # @param call_id [String] Programmable Voice API Call ID.
413
413
  # @param recording_id [String] Programmable Voice API Recording ID.
414
414
  # @param [Hash] opts the optional parameters
415
- # @return [Array<(TranscriptionList, Integer, Hash)>] TranscriptionList data, response status code and response headers
416
- def get_call_transcription_with_http_info(account_id, call_id, recording_id, opts = {})
415
+ # @return [Array<(RecordingTranscriptions, Integer, Hash)>] RecordingTranscriptions data, response status code and response headers
416
+ def get_recording_transcription_with_http_info(account_id, call_id, recording_id, opts = {})
417
417
  if @api_client.config.debugging
418
- @api_client.config.logger.debug 'Calling API: RecordingsApi.get_call_transcription ...'
418
+ @api_client.config.logger.debug 'Calling API: RecordingsApi.get_recording_transcription ...'
419
419
  end
420
420
  # verify the required parameter 'account_id' is set
421
421
  if @api_client.config.client_side_validation && account_id.nil?
422
- fail ArgumentError, "Missing the required parameter 'account_id' when calling RecordingsApi.get_call_transcription"
422
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling RecordingsApi.get_recording_transcription"
423
423
  end
424
424
  # verify the required parameter 'call_id' is set
425
425
  if @api_client.config.client_side_validation && call_id.nil?
426
- fail ArgumentError, "Missing the required parameter 'call_id' when calling RecordingsApi.get_call_transcription"
426
+ fail ArgumentError, "Missing the required parameter 'call_id' when calling RecordingsApi.get_recording_transcription"
427
427
  end
428
428
  # verify the required parameter 'recording_id' is set
429
429
  if @api_client.config.client_side_validation && recording_id.nil?
430
- fail ArgumentError, "Missing the required parameter 'recording_id' when calling RecordingsApi.get_call_transcription"
430
+ fail ArgumentError, "Missing the required parameter 'recording_id' when calling RecordingsApi.get_recording_transcription"
431
431
  end
432
432
  # resource path
433
433
  local_var_path = '/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
@@ -447,13 +447,13 @@ module Bandwidth
447
447
  post_body = opts[:debug_body]
448
448
 
449
449
  # return_type
450
- return_type = opts[:debug_return_type] || 'TranscriptionList'
450
+ return_type = opts[:debug_return_type] || 'RecordingTranscriptions'
451
451
 
452
452
  # auth_names
453
453
  auth_names = opts[:debug_auth_names] || ['Basic']
454
454
 
455
455
  new_options = opts.merge(
456
- :operation => :"RecordingsApi.get_call_transcription",
456
+ :operation => :"RecordingsApi.get_recording_transcription",
457
457
  :header_params => header_params,
458
458
  :query_params => query_params,
459
459
  :form_params => form_params,
@@ -464,7 +464,7 @@ module Bandwidth
464
464
 
465
465
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
466
466
  if @api_client.config.debugging
467
- @api_client.config.logger.debug "API called: RecordingsApi#get_call_transcription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
467
+ @api_client.config.logger.debug "API called: RecordingsApi#get_recording_transcription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
468
468
  end
469
469
  return data, status_code, headers
470
470
  end