bandwidth-sdk 13.0.0 → 13.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -10
- data/bandwidth-sdk.gemspec +1 -1
- data/bandwidth.yml +15 -0
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +188 -176
- data/coverage/index.html +1590 -1458
- data/docs/CallRecordingMetadata.md +3 -1
- data/docs/CallTranscriptionMetadata.md +2 -0
- data/docs/ConferenceRecordingMetadata.md +3 -1
- data/lib/bandwidth-sdk/api/calls_api.rb +6 -6
- data/lib/bandwidth-sdk/api/conferences_api.rb +10 -10
- data/lib/bandwidth-sdk/api/media_api.rb +5 -5
- data/lib/bandwidth-sdk/api/messages_api.rb +3 -3
- data/lib/bandwidth-sdk/api/mfa_api.rb +4 -4
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +3 -3
- data/lib/bandwidth-sdk/api/recordings_api.rb +11 -11
- data/lib/bandwidth-sdk/api/statistics_api.rb +2 -2
- data/lib/bandwidth-sdk/api/transcriptions_api.rb +4 -4
- data/lib/bandwidth-sdk/api_client.rb +30 -24
- data/lib/bandwidth-sdk/api_error.rb +1 -1
- data/lib/bandwidth-sdk/configuration.rb +1 -1
- data/lib/bandwidth-sdk/models/account_statistics.rb +1 -1
- data/lib/bandwidth-sdk/models/answer_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +16 -6
- data/lib/bandwidth-sdk/models/call_state.rb +1 -1
- data/lib/bandwidth-sdk/models/call_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +12 -2
- data/lib/bandwidth-sdk/models/call_transcription_response.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/code_request.rb +1 -1
- data/lib/bandwidth-sdk/models/conference.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_member.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +16 -6
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/create_call.rb +1 -1
- data/lib/bandwidth-sdk/models/create_call_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_lookup_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/deferred_result.rb +1 -1
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/diversion.rb +1 -1
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/field_error.rb +1 -1
- data/lib/bandwidth-sdk/models/file_format_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/gather_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_message_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +1 -1
- data/lib/bandwidth-sdk/models/initiate_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_item.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_request.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_result.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_status.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +1 -1
- data/lib/bandwidth-sdk/models/media.rb +1 -1
- data/lib/bandwidth-sdk/models/message.rb +1 -1
- data/lib/bandwidth-sdk/models/message_delivered_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +1 -1
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_failed_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/message_failed_callback_message.rb +1 -1
- data/lib/bandwidth-sdk/models/message_request.rb +1 -1
- data/lib/bandwidth-sdk/models/message_sending_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/message_sending_callback_message.rb +1 -1
- data/lib/bandwidth-sdk/models/message_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/messages_list.rb +1 -1
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +1 -1
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/page_info.rb +1 -1
- data/lib/bandwidth-sdk/models/priority_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcriptions.rb +1 -1
- data/lib/bandwidth-sdk/models/redirect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/stir_shaken.rb +1 -1
- data/lib/bandwidth-sdk/models/tag.rb +1 -1
- data/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +1 -1
- data/lib/bandwidth-sdk/models/transcription.rb +1 -1
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/update_call.rb +1 -1
- data/lib/bandwidth-sdk/models/update_call_recording.rb +1 -1
- data/lib/bandwidth-sdk/models/update_conference.rb +1 -1
- data/lib/bandwidth-sdk/models/update_conference_member.rb +1 -1
- data/lib/bandwidth-sdk/models/verify_code_request.rb +1 -1
- data/lib/bandwidth-sdk/models/verify_code_response.rb +1 -1
- data/lib/bandwidth-sdk/models/voice_api_error.rb +1 -1
- data/lib/bandwidth-sdk/models/voice_code_response.rb +1 -1
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +1 -1
- data/openapitools.json +1 -1
- data/spec/smoke/transcriptions_api_spec.rb +1 -0
- data/spec/unit/api/conferences_api_spec.rb +3 -2
- data/spec/unit/api/media_api_spec.rb +3 -2
- data/spec/unit/api/recordings_api_spec.rb +6 -3
- data/spec/unit/api/transcriptions_api_spec.rb +1 -0
- metadata +47 -47
@@ -6,10 +6,10 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Bandwidth
|
14
|
-
VERSION = '13.
|
14
|
+
VERSION = '13.1.1'
|
15
15
|
end
|
data/lib/bandwidth-sdk.rb
CHANGED
data/openapitools.json
CHANGED
@@ -47,6 +47,7 @@ describe 'TranscriptionsApi Integration Tests' do
|
|
47
47
|
expect(data[0]).to be_instance_of(Bandwidth::CallTranscriptionMetadata)
|
48
48
|
expect(data[0].transcription_id).to be_instance_of(String)
|
49
49
|
expect(data[0].transcription_url).to be_instance_of(String)
|
50
|
+
expect(data[0].transcription_name).to be_instance_of(String)
|
50
51
|
$transcription_id = data[0].transcription_id
|
51
52
|
end
|
52
53
|
end
|
@@ -10,6 +10,7 @@ describe 'ConferencesApi' do
|
|
10
10
|
config.username = BW_USERNAME
|
11
11
|
config.password = BW_PASSWORD
|
12
12
|
config.ignore_operation_servers = true
|
13
|
+
config.return_binary_data = true
|
13
14
|
config.host = '127.0.0.1:4010'
|
14
15
|
end
|
15
16
|
@conferences_api_instance = Bandwidth::ConferencesApi.new
|
@@ -28,8 +29,8 @@ describe 'ConferencesApi' do
|
|
28
29
|
BW_ACCOUNT_ID, conference_id, recording_id, { header_params: { 'Accept' => 'audio/vnd.wave' } })
|
29
30
|
|
30
31
|
expect(status_code).to eq(200)
|
31
|
-
|
32
|
-
end
|
32
|
+
expect(data).to be_instance_of(String)
|
33
|
+
end
|
33
34
|
|
34
35
|
it 'causes an ArgumentError for a missing account_id' do
|
35
36
|
expect {
|
@@ -10,6 +10,7 @@ describe 'MediaApi' do
|
|
10
10
|
config.username = BW_USERNAME
|
11
11
|
config.password = BW_PASSWORD
|
12
12
|
config.ignore_operation_servers = true
|
13
|
+
config.return_binary_data = true
|
13
14
|
config.host = '127.0.0.1:4010'
|
14
15
|
end
|
15
16
|
@media_api_instance = Bandwidth::MediaApi.new
|
@@ -49,8 +50,8 @@ describe 'MediaApi' do
|
|
49
50
|
BW_ACCOUNT_ID, media_name, { header_params: { 'Accept' => 'application/octet-stream' } })
|
50
51
|
|
51
52
|
expect(status_code).to eq(200)
|
52
|
-
|
53
|
-
end
|
53
|
+
expect(data).to be_instance_of(String)
|
54
|
+
end
|
54
55
|
|
55
56
|
it 'causes an ArgumentError for a missing account_id' do
|
56
57
|
expect {
|
@@ -109,8 +109,8 @@ describe 'RecordingsApi' do
|
|
109
109
|
BW_ACCOUNT_ID, call_id, recording_id, { header_params: { 'Accept' => 'audio/vnd.wave' } })
|
110
110
|
|
111
111
|
expect(status_code).to eq(200)
|
112
|
-
|
113
|
-
end
|
112
|
+
expect(data).to be_instance_of(String)
|
113
|
+
end
|
114
114
|
|
115
115
|
it 'causes an ArgumentError for a missing account_id' do
|
116
116
|
expect {
|
@@ -160,7 +160,8 @@ describe 'RecordingsApi' do
|
|
160
160
|
expect(data.transcription.status).to be_instance_of(String)
|
161
161
|
expect(data.transcription.completed_time).to be_instance_of(Time)
|
162
162
|
expect(data.transcription.url).to start_with('http')
|
163
|
-
|
163
|
+
expect(data.recording_name).to be_instance_of(String)
|
164
|
+
end if false # skip due to prism error
|
164
165
|
|
165
166
|
it 'causes an ArgumentError for a missing account_id' do
|
166
167
|
expect {
|
@@ -243,6 +244,7 @@ describe 'RecordingsApi' do
|
|
243
244
|
expect(data[0].transcription.status).to be_instance_of(String)
|
244
245
|
expect(data[0].transcription.completed_time).to be_instance_of(Time)
|
245
246
|
expect(data[0].transcription.url).to start_with('http')
|
247
|
+
expect(data[0].recording_name).to be_instance_of(String)
|
246
248
|
end
|
247
249
|
|
248
250
|
it 'causes an ArgumentError for a missing account_id' do
|
@@ -282,6 +284,7 @@ describe 'RecordingsApi' do
|
|
282
284
|
expect(data[0].transcription.status).to be_instance_of(String)
|
283
285
|
expect(data[0].transcription.completed_time).to be_instance_of(Time)
|
284
286
|
expect(data[0].transcription.url).to start_with('http')
|
287
|
+
expect(data[0].recording_name).to be_instance_of(String)
|
285
288
|
end
|
286
289
|
|
287
290
|
it 'causes an ArgumentError for a missing account_id' do
|
@@ -57,6 +57,7 @@ describe 'TranscriptionsApi' do
|
|
57
57
|
expect(data[0]).to be_instance_of(Bandwidth::CallTranscriptionMetadata)
|
58
58
|
expect(data[0].transcription_id).to be_instance_of(String)
|
59
59
|
expect(data[0].transcription_url).to be_instance_of(String)
|
60
|
+
expect(data[0].transcription_name).to be_instance_of(String)
|
60
61
|
end
|
61
62
|
|
62
63
|
it 'causes an ArgumentError for a missing account_id' do
|