bandwidth-sdk 12.1.0 → 13.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/Gemfile.lock +16 -25
- data/README.md +2 -0
- data/bandwidth-sdk.gemspec +3 -1
- data/bandwidth.yml +43 -22
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +529 -792
- data/coverage/index.html +5293 -8186
- data/custom_templates/Gemfile.mustache +1 -2
- data/custom_templates/gemspec.mustache +2 -0
- data/docs/AnswerCallback.md +1 -1
- data/docs/BridgeCompleteCallback.md +1 -1
- data/docs/BridgeTargetCompleteCallback.md +1 -1
- data/docs/CallRecordingMetadata.md +5 -3
- data/docs/CallState.md +1 -1
- data/docs/CallTranscription.md +6 -6
- data/docs/CallTranscriptionDetectedLanguageEnum.md +15 -0
- data/docs/CallTranscriptionMetadata.md +2 -0
- data/docs/CallTranscriptionResponse.md +2 -2
- data/docs/CallTranscriptionTrackEnum.md +15 -0
- data/docs/ConferenceRecordingAvailableCallback.md +1 -1
- data/docs/ConferenceRecordingMetadata.md +4 -2
- data/docs/DisconnectCallback.md +1 -1
- data/docs/DtmfCallback.md +2 -2
- data/docs/GatherCallback.md +2 -2
- data/docs/InitiateCallback.md +1 -1
- data/docs/MachineDetectionCompleteCallback.md +1 -1
- data/docs/MessagingCodeResponse.md +1 -1
- data/docs/RecordingAvailableCallback.md +2 -2
- data/docs/RecordingCompleteCallback.md +2 -2
- data/docs/RecordingTranscriptionMetadata.md +1 -1
- data/docs/RedirectCallback.md +2 -2
- data/docs/TranscriptionAvailableCallback.md +2 -2
- data/docs/TranscriptionsApi.md +1 -1
- data/docs/TransferAnswerCallback.md +2 -2
- data/docs/TransferCompleteCallback.md +2 -2
- data/docs/TransferDisconnectCallback.md +2 -2
- data/lib/bandwidth-sdk/api/calls_api.rb +1 -1
- data/lib/bandwidth-sdk/api/conferences_api.rb +1 -1
- data/lib/bandwidth-sdk/api/media_api.rb +1 -1
- data/lib/bandwidth-sdk/api/messages_api.rb +1 -1
- data/lib/bandwidth-sdk/api/mfa_api.rb +1 -1
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +1 -1
- data/lib/bandwidth-sdk/api/recordings_api.rb +1 -1
- data/lib/bandwidth-sdk/api/statistics_api.rb +1 -1
- data/lib/bandwidth-sdk/api/transcriptions_api.rb +3 -3
- data/lib/bandwidth-sdk/api_client.rb +44 -41
- data/lib/bandwidth-sdk/api_error.rb +1 -1
- data/lib/bandwidth-sdk/configuration.rb +11 -1
- data/lib/bandwidth-sdk/models/account_statistics.rb +2 -2
- data/lib/bandwidth-sdk/models/answer_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/bxml/root.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/start_stream.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/start_transcription.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/transfer.rb +0 -6
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +17 -7
- data/lib/bandwidth-sdk/models/call_state.rb +2 -2
- data/lib/bandwidth-sdk/models/call_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription.rb +11 -37
- data/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +41 -0
- data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +13 -3
- data/lib/bandwidth-sdk/models/call_transcription_response.rb +2 -2
- data/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/code_request.rb +2 -2
- data/lib/bandwidth-sdk/models/conference.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_member.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +17 -7
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/create_call.rb +2 -2
- data/lib/bandwidth-sdk/models/create_call_response.rb +2 -2
- data/lib/bandwidth-sdk/models/create_lookup_response.rb +2 -2
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/deferred_result.rb +2 -2
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/diversion.rb +2 -2
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/field_error.rb +2 -2
- data/lib/bandwidth-sdk/models/file_format_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/gather_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/inbound_message_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/initiate_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_item.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_request.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_result.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_status.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +2 -2
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +2 -2
- data/lib/bandwidth-sdk/models/media.rb +2 -2
- data/lib/bandwidth-sdk/models/message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_delivered_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_failed_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/message_failed_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_request.rb +2 -2
- data/lib/bandwidth-sdk/models/message_sending_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/message_sending_callback_message.rb +2 -2
- 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 +2 -2
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +2 -2
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/page_info.rb +2 -2
- data/lib/bandwidth-sdk/models/priority_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +3 -3
- data/lib/bandwidth-sdk/models/recording_transcriptions.rb +2 -2
- data/lib/bandwidth-sdk/models/redirect_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/stir_shaken.rb +2 -2
- data/lib/bandwidth-sdk/models/tag.rb +2 -2
- data/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +2 -2
- data/lib/bandwidth-sdk/models/transcription.rb +2 -2
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/update_call.rb +2 -2
- data/lib/bandwidth-sdk/models/update_call_recording.rb +2 -2
- data/lib/bandwidth-sdk/models/update_conference.rb +2 -2
- data/lib/bandwidth-sdk/models/update_conference_member.rb +2 -2
- data/lib/bandwidth-sdk/models/verify_code_request.rb +2 -2
- data/lib/bandwidth-sdk/models/verify_code_response.rb +2 -2
- data/lib/bandwidth-sdk/models/voice_api_error.rb +2 -2
- data/lib/bandwidth-sdk/models/voice_code_response.rb +2 -2
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +3 -1
- data/openapitools.json +1 -1
- data/spec/call_utils.rb +1 -1
- data/spec/smoke/calls_api_spec.rb +1 -6
- data/spec/smoke/conferences_api_spec.rb +0 -5
- data/spec/smoke/media_api_spec.rb +0 -5
- data/spec/smoke/messages_api_spec.rb +0 -5
- data/spec/smoke/mfa_api_spec.rb +0 -5
- data/spec/smoke/phone_number_lookup_api_spec.rb +0 -5
- data/spec/smoke/recordings_api_spec.rb +0 -5
- data/spec/smoke/statistics_api_spec.rb +0 -5
- data/spec/smoke/transcriptions_api_spec.rb +1 -5
- data/spec/spec_helper.rb +11 -4
- data/spec/unit/api/calls_api_spec.rb +98 -128
- data/spec/unit/api/conferences_api_spec.rb +63 -126
- data/spec/unit/api/media_api_spec.rb +17 -32
- data/spec/unit/api/messages_api_spec.rb +46 -136
- data/spec/unit/api/mfa_api_spec.rb +8 -24
- data/spec/unit/api/phone_number_lookup_api_spec.rb +23 -37
- data/spec/unit/api/recordings_api_spec.rb +87 -111
- data/spec/unit/api/statistics_api_spec.rb +7 -15
- data/spec/unit/api/transcriptions_api_spec.rb +19 -37
- data/spec/unit/client/api_client_spec.rb +4 -4
- metadata +61 -43
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -160,7 +160,7 @@ module Bandwidth
|
|
160
160
|
else # model
|
161
161
|
# models (e.g. Pet) or oneOf
|
162
162
|
klass = Bandwidth.const_get(type)
|
163
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
164
|
end
|
165
165
|
end
|
166
166
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -307,7 +307,7 @@ module Bandwidth
|
|
307
307
|
else # model
|
308
308
|
# models (e.g. Pet) or oneOf
|
309
309
|
klass = Bandwidth.const_get(type)
|
310
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
310
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
311
311
|
end
|
312
312
|
end
|
313
313
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -170,7 +170,7 @@ module Bandwidth
|
|
170
170
|
else # model
|
171
171
|
# models (e.g. Pet) or oneOf
|
172
172
|
klass = Bandwidth.const_get(type)
|
173
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
173
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -383,7 +383,7 @@ module Bandwidth
|
|
383
383
|
else # model
|
384
384
|
# models (e.g. Pet) or oneOf
|
385
385
|
klass = Bandwidth.const_get(type)
|
386
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
386
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
387
387
|
end
|
388
388
|
end
|
389
389
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -325,7 +325,7 @@ module Bandwidth
|
|
325
325
|
else # model
|
326
326
|
# models (e.g. Pet) or oneOf
|
327
327
|
klass = Bandwidth.const_get(type)
|
328
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
328
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
329
329
|
end
|
330
330
|
end
|
331
331
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -357,7 +357,7 @@ module Bandwidth
|
|
357
357
|
else # model
|
358
358
|
# models (e.g. Pet) or oneOf
|
359
359
|
klass = Bandwidth.const_get(type)
|
360
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
360
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
361
361
|
end
|
362
362
|
end
|
363
363
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -377,7 +377,7 @@ module Bandwidth
|
|
377
377
|
else # model
|
378
378
|
# models (e.g. Pet) or oneOf
|
379
379
|
klass = Bandwidth.const_get(type)
|
380
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
380
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
381
381
|
end
|
382
382
|
end
|
383
383
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -360,7 +360,7 @@ module Bandwidth
|
|
360
360
|
else # model
|
361
361
|
# models (e.g. Pet) or oneOf
|
362
362
|
klass = Bandwidth.const_get(type)
|
363
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
363
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
364
364
|
end
|
365
365
|
end
|
366
366
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -188,7 +188,7 @@ module Bandwidth
|
|
188
188
|
else # model
|
189
189
|
# models (e.g. Pet) or oneOf
|
190
190
|
klass = Bandwidth.const_get(type)
|
191
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
191
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
192
192
|
end
|
193
193
|
end
|
194
194
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -334,7 +334,7 @@ module Bandwidth
|
|
334
334
|
else # model
|
335
335
|
# models (e.g. Pet) or oneOf
|
336
336
|
klass = Bandwidth.const_get(type)
|
337
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
337
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
338
338
|
end
|
339
339
|
end
|
340
340
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -183,7 +183,7 @@ module Bandwidth
|
|
183
183
|
else # model
|
184
184
|
# models (e.g. Pet) or oneOf
|
185
185
|
klass = Bandwidth.const_get(type)
|
186
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
186
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
187
187
|
end
|
188
188
|
end
|
189
189
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -288,7 +288,7 @@ module Bandwidth
|
|
288
288
|
else # model
|
289
289
|
# models (e.g. Pet) or oneOf
|
290
290
|
klass = Bandwidth.const_get(type)
|
291
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
291
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
292
292
|
end
|
293
293
|
end
|
294
294
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -160,7 +160,7 @@ module Bandwidth
|
|
160
160
|
else # model
|
161
161
|
# models (e.g. Pet) or oneOf
|
162
162
|
klass = Bandwidth.const_get(type)
|
163
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
164
|
end
|
165
165
|
end
|
166
166
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -178,7 +178,7 @@ module Bandwidth
|
|
178
178
|
else # model
|
179
179
|
# models (e.g. Pet) or oneOf
|
180
180
|
klass = Bandwidth.const_get(type)
|
181
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
181
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
182
182
|
end
|
183
183
|
end
|
184
184
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -160,7 +160,7 @@ module Bandwidth
|
|
160
160
|
else # model
|
161
161
|
# models (e.g. Pet) or oneOf
|
162
162
|
klass = Bandwidth.const_get(type)
|
163
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
164
|
end
|
165
165
|
end
|
166
166
|
|
@@ -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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Bandwidth
|
14
|
-
VERSION = '
|
14
|
+
VERSION = '13.1.0'
|
15
15
|
end
|
data/lib/bandwidth-sdk.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
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
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,8 +26,10 @@ require 'bandwidth-sdk/models/call_recording_metadata'
|
|
26
26
|
require 'bandwidth-sdk/models/call_state'
|
27
27
|
require 'bandwidth-sdk/models/call_state_enum'
|
28
28
|
require 'bandwidth-sdk/models/call_transcription'
|
29
|
+
require 'bandwidth-sdk/models/call_transcription_detected_language_enum'
|
29
30
|
require 'bandwidth-sdk/models/call_transcription_metadata'
|
30
31
|
require 'bandwidth-sdk/models/call_transcription_response'
|
32
|
+
require 'bandwidth-sdk/models/call_transcription_track_enum'
|
31
33
|
require 'bandwidth-sdk/models/callback_method_enum'
|
32
34
|
require 'bandwidth-sdk/models/code_request'
|
33
35
|
require 'bandwidth-sdk/models/conference'
|
data/openapitools.json
CHANGED
data/spec/call_utils.rb
CHANGED
@@ -16,7 +16,6 @@ describe 'CallsApi Integration Tests' do
|
|
16
16
|
let(:callback_timeout) { 15.0 }
|
17
17
|
|
18
18
|
before(:all) do
|
19
|
-
WebMock.allow_net_connect!
|
20
19
|
Bandwidth.configure do |config|
|
21
20
|
config.username = BW_USERNAME
|
22
21
|
config.password = BW_PASSWORD
|
@@ -27,10 +26,6 @@ describe 'CallsApi Integration Tests' do
|
|
27
26
|
$call_info_id = ''
|
28
27
|
end
|
29
28
|
|
30
|
-
after(:all) do
|
31
|
-
WebMock.disable_net_connect!
|
32
|
-
end
|
33
|
-
|
34
29
|
# Create Call
|
35
30
|
describe 'create_call' do
|
36
31
|
it 'creates a call with amd' do
|
@@ -116,7 +111,7 @@ describe 'CallsApi Integration Tests' do
|
|
116
111
|
|
117
112
|
# Update Call
|
118
113
|
describe 'update_call' do
|
119
|
-
it 'creates and updates a call' do
|
114
|
+
it 'creates and updates a call' do
|
120
115
|
update_call_body = Bandwidth::UpdateCall.new(
|
121
116
|
state: Bandwidth::CallStateEnum::ACTIVE,
|
122
117
|
redirect_url: MANTECA_BASE_URL + '/bxml/pause'
|
@@ -3,7 +3,6 @@ require_relative '../call_utils'
|
|
3
3
|
# Integration Tests for Bandwidth::ConferencesApi
|
4
4
|
describe 'ConferencesApi Integration Tests' do
|
5
5
|
before(:all) do
|
6
|
-
WebMock.allow_net_connect!
|
7
6
|
Bandwidth.configure do |config|
|
8
7
|
config.username = BW_USERNAME
|
9
8
|
config.password = BW_PASSWORD
|
@@ -18,10 +17,6 @@ describe 'ConferencesApi Integration Tests' do
|
|
18
17
|
$conference_id = ''
|
19
18
|
$recording_id = ''
|
20
19
|
end
|
21
|
-
|
22
|
-
after(:all) do
|
23
|
-
WebMock.disable_net_connect!
|
24
|
-
end
|
25
20
|
|
26
21
|
# Get Conferences
|
27
22
|
describe 'list_conferences' do
|
@@ -6,7 +6,6 @@ describe 'MediaApi Integration Tests' do
|
|
6
6
|
let(:media_file_md5) { Digest::MD5.hexdigest(media_file_data) }
|
7
7
|
|
8
8
|
before(:all) do
|
9
|
-
WebMock.allow_net_connect!
|
10
9
|
Bandwidth.configure do |config|
|
11
10
|
config.username = BW_USERNAME
|
12
11
|
config.password = BW_PASSWORD
|
@@ -19,10 +18,6 @@ describe 'MediaApi Integration Tests' do
|
|
19
18
|
@media_file_name = 'ruby_media_file' + SecureRandom.uuid
|
20
19
|
end
|
21
20
|
|
22
|
-
after(:all) do
|
23
|
-
WebMock.disable_net_connect!
|
24
|
-
end
|
25
|
-
|
26
21
|
# Upload Media
|
27
22
|
describe 'upload_media' do
|
28
23
|
it 'uploads binary media' do
|
@@ -10,7 +10,6 @@ describe 'MessagesApi Integration Tests' do
|
|
10
10
|
let(:list_message_direction) { Bandwidth::ListMessageDirectionEnum::OUTBOUND }
|
11
11
|
|
12
12
|
before(:all) do
|
13
|
-
WebMock.allow_net_connect!
|
14
13
|
Bandwidth.configure do |config|
|
15
14
|
config.username = BW_USERNAME
|
16
15
|
config.password = BW_PASSWORD
|
@@ -21,10 +20,6 @@ describe 'MessagesApi Integration Tests' do
|
|
21
20
|
@expiration_time = (Time.now + 60).round.to_datetime.rfc3339
|
22
21
|
end
|
23
22
|
|
24
|
-
after(:all) do
|
25
|
-
WebMock.disable_net_connect!
|
26
|
-
end
|
27
|
-
|
28
23
|
# Create Message
|
29
24
|
describe 'create_message' do
|
30
25
|
it 'creates an mms message' do
|
data/spec/smoke/mfa_api_spec.rb
CHANGED
@@ -5,7 +5,6 @@ describe 'MFAApi Integration Tests' do
|
|
5
5
|
let(:digits) { 6 }
|
6
6
|
|
7
7
|
before(:all) do
|
8
|
-
WebMock.allow_net_connect!
|
9
8
|
Bandwidth.configure do |config|
|
10
9
|
config.username = BW_USERNAME
|
11
10
|
config.password = BW_PASSWORD
|
@@ -13,10 +12,6 @@ describe 'MFAApi Integration Tests' do
|
|
13
12
|
@mfa_api_instance = Bandwidth::MFAApi.new
|
14
13
|
end
|
15
14
|
|
16
|
-
after(:all) do
|
17
|
-
WebMock.disable_net_connect!
|
18
|
-
end
|
19
|
-
|
20
15
|
# Messaging Authentication Code
|
21
16
|
describe 'generate_messaging_code' do
|
22
17
|
it 'generates messaging mfa code' do
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# Integration Tests for Bandwidth::PhoneNumberLookupApi
|
2
2
|
describe 'PhoneNumberLookupApi Integration Tests' do
|
3
3
|
before(:all) do
|
4
|
-
WebMock.allow_net_connect!
|
5
4
|
Bandwidth.configure do |config|
|
6
5
|
config.username = BW_USERNAME
|
7
6
|
config.password = BW_PASSWORD
|
@@ -12,10 +11,6 @@ describe 'PhoneNumberLookupApi Integration Tests' do
|
|
12
11
|
$lookup_request_id = ''
|
13
12
|
end
|
14
13
|
|
15
|
-
after(:all) do
|
16
|
-
WebMock.disable_net_connect!
|
17
|
-
end
|
18
|
-
|
19
14
|
# Create Lookup
|
20
15
|
describe 'create_lookup' do
|
21
16
|
it 'creates a tn lookup request' do
|
@@ -3,7 +3,6 @@ require_relative '../call_utils'
|
|
3
3
|
# Integration Tests for Bandwidth::RecordingsApi
|
4
4
|
describe 'RecordingsApi Integration Tests' do
|
5
5
|
before(:all) do
|
6
|
-
WebMock.allow_net_connect!
|
7
6
|
Bandwidth.configure do |config|
|
8
7
|
config.username = BW_USERNAME
|
9
8
|
config.password = BW_PASSWORD
|
@@ -17,10 +16,6 @@ describe 'RecordingsApi Integration Tests' do
|
|
17
16
|
$manteca_call_id = create_manteca_call($manteca_test_id, '/bxml/startLongRecording', @calls_api_instance)
|
18
17
|
$recording_id = ''
|
19
18
|
end
|
20
|
-
|
21
|
-
after(:all) do
|
22
|
-
WebMock.disable_net_connect!
|
23
|
-
end
|
24
19
|
|
25
20
|
# Update Recording
|
26
21
|
describe 'update_call_recording_state' do
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# Integration Tests for Bandwidth::StatisticsApi
|
2
2
|
describe 'StatisticsApi Integration Tests' do
|
3
3
|
before(:all) do
|
4
|
-
WebMock.allow_net_connect!
|
5
4
|
Bandwidth.configure do |config|
|
6
5
|
config.username = BW_USERNAME
|
7
6
|
config.password = BW_PASSWORD
|
@@ -9,10 +8,6 @@ describe 'StatisticsApi Integration Tests' do
|
|
9
8
|
@statistics_api_instance = Bandwidth::StatisticsApi.new
|
10
9
|
end
|
11
10
|
|
12
|
-
after(:all) do
|
13
|
-
WebMock.disable_net_connect!
|
14
|
-
end
|
15
|
-
|
16
11
|
# Get Account Statistics
|
17
12
|
describe 'get_statistics' do
|
18
13
|
it 'gets account statistics' do
|
@@ -3,7 +3,6 @@ require_relative '../call_utils'
|
|
3
3
|
# Integration Tests for Bandwidth::TranscriptionsApi
|
4
4
|
describe 'TranscriptionsApi Integration Tests' do
|
5
5
|
before(:all) do
|
6
|
-
WebMock.allow_net_connect!
|
7
6
|
Bandwidth.configure do |config|
|
8
7
|
config.username = BW_USERNAME
|
9
8
|
config.password = BW_PASSWORD
|
@@ -17,10 +16,6 @@ describe 'TranscriptionsApi Integration Tests' do
|
|
17
16
|
$transcription_id = ''
|
18
17
|
end
|
19
18
|
|
20
|
-
after(:all) do
|
21
|
-
WebMock.disable_net_connect!
|
22
|
-
end
|
23
|
-
|
24
19
|
# Create Call Transcription
|
25
20
|
describe 'create_call_transcription' do
|
26
21
|
it 'creates a call transcription' do
|
@@ -52,6 +47,7 @@ describe 'TranscriptionsApi Integration Tests' do
|
|
52
47
|
expect(data[0]).to be_instance_of(Bandwidth::CallTranscriptionMetadata)
|
53
48
|
expect(data[0].transcription_id).to be_instance_of(String)
|
54
49
|
expect(data[0].transcription_url).to be_instance_of(String)
|
50
|
+
expect(data[0].transcription_name).to be_instance_of(String)
|
55
51
|
$transcription_id = data[0].transcription_id
|
56
52
|
end
|
57
53
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -9,7 +9,7 @@ SimpleCov.start do
|
|
9
9
|
else
|
10
10
|
!(['/models/call_state_enum.rb',
|
11
11
|
'/models/call_state.rb',
|
12
|
-
'/models/deferred_result.rb',
|
12
|
+
'/models/deferred_result.rb',
|
13
13
|
'/models/message.rb',
|
14
14
|
'/models/verify_code_request.rb'
|
15
15
|
].any? { |name| source_file.filename.include?(name) })
|
@@ -27,9 +27,6 @@ require 'bandwidth-sdk'
|
|
27
27
|
# load call utils every time. This prevents an error from occuring when running only unit tests
|
28
28
|
require_relative './call_utils'
|
29
29
|
|
30
|
-
# use webmock to stub HTTP requests
|
31
|
-
require 'webmock/rspec'
|
32
|
-
|
33
30
|
# The following was generated by the `rspec --init` command. Conventionally, all
|
34
31
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
35
32
|
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
@@ -91,6 +88,16 @@ RSpec.configure do |config|
|
|
91
88
|
calls_api = Bandwidth::CallsApi.new
|
92
89
|
cleanup_calls($active_calls, calls_api)
|
93
90
|
}
|
91
|
+
|
92
|
+
RSpec::Matchers.define(:be_one_of) do |expected|
|
93
|
+
match do |actual|
|
94
|
+
expected.include?(actual)
|
95
|
+
end
|
96
|
+
|
97
|
+
failure_message do |actual|
|
98
|
+
"expected one of #{expected}, got #{actual}"
|
99
|
+
end
|
100
|
+
end
|
94
101
|
|
95
102
|
# rspec-expectations config goes here. You can use an alternate
|
96
103
|
# assertion/expectation library such as wrong or the stdlib/minitest
|