bandwidth-sdk 11.0.0.pre.beta.1 → 11.0.0.pre.beta.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +46 -23
- data/README.md +7 -3
- data/Rakefile +10 -2
- data/bandwidth-sdk.gemspec +12 -12
- data/bandwidth.yml +409 -353
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +9792 -0
- data/coverage/.resultset.json.lock +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
- data/coverage/assets/0.12.3/application.css +1 -0
- data/coverage/assets/0.12.3/application.js +7 -0
- data/coverage/assets/0.12.3/colorbox/border.png +0 -0
- data/coverage/assets/0.12.3/colorbox/controls.png +0 -0
- data/coverage/assets/0.12.3/colorbox/loading.gif +0 -0
- data/coverage/assets/0.12.3/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.12.3/favicon_green.png +0 -0
- data/coverage/assets/0.12.3/favicon_red.png +0 -0
- data/coverage/assets/0.12.3/favicon_yellow.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/assets/0.12.3/loading.gif +0 -0
- data/coverage/assets/0.12.3/magnify.png +0 -0
- data/coverage/index.html +108612 -0
- data/custom_templates/Gemfile.mustache +11 -0
- data/custom_templates/README.mustache +170 -0
- data/custom_templates/gem.mustache +99 -0
- data/custom_templates/gemspec.mustache +37 -0
- data/custom_templates/version.mustache +7 -0
- data/docs/AnswerCallback.md +3 -3
- data/docs/BridgeCompleteCallback.md +2 -2
- data/docs/BridgeTargetCompleteCallback.md +2 -2
- data/docs/CallState.md +2 -2
- data/docs/CallsApi.md +15 -15
- data/docs/Conference.md +4 -4
- data/docs/ConferenceCompletedCallback.md +2 -2
- data/docs/ConferenceCreatedCallback.md +2 -2
- data/docs/ConferenceMemberExitCallback.md +2 -2
- data/docs/ConferenceMemberJoinCallback.md +2 -2
- data/docs/ConferenceRecordingAvailableCallback.md +2 -2
- data/docs/ConferenceRedirectCallback.md +2 -2
- data/docs/ConferencesApi.md +42 -42
- data/docs/CreateCall.md +11 -11
- data/docs/CreateCallResponse.md +11 -11
- data/docs/DisconnectCallback.md +2 -2
- data/docs/DtmfCallback.md +2 -2
- data/docs/GatherCallback.md +2 -2
- data/docs/InitiateCallback.md +2 -2
- data/docs/ListMessageItem.md +5 -3
- data/docs/MFAApi.md +6 -6
- data/docs/MachineDetectionCompleteCallback.md +3 -3
- data/docs/MachineDetectionConfiguration.md +2 -2
- data/docs/MachineDetectionResult.md +20 -0
- data/docs/Message.md +5 -3
- data/docs/MessageDeliveredCallbackMessage.md +1 -1
- data/docs/MessageFailedCallbackMessage.md +1 -1
- data/docs/MessageRequest.md +1 -1
- data/docs/MessageSendingCallbackMessage.md +1 -1
- data/docs/MessagesApi.md +5 -1
- data/docs/MessagesList.md +1 -1
- data/docs/PhoneNumberLookupApi.md +4 -4
- data/docs/RecordingAvailableCallback.md +2 -2
- data/docs/RecordingCompleteCallback.md +2 -2
- data/docs/RecordingsApi.md +52 -52
- data/docs/RedirectCallback.md +2 -2
- data/docs/StatisticsApi.md +2 -2
- data/docs/TranscribeRecording.md +4 -2
- data/docs/TranscriptionAvailableCallback.md +2 -2
- data/docs/TransferAnswerCallback.md +2 -2
- data/docs/TransferCompleteCallback.md +2 -2
- data/docs/TransferDisconnectCallback.md +2 -2
- data/docs/UpdateCall.md +3 -3
- data/docs/UpdateConference.md +3 -3
- data/lib/bandwidth-sdk/api/calls_api.rb +18 -18
- data/lib/bandwidth-sdk/api/conferences_api.rb +46 -46
- data/lib/bandwidth-sdk/api/media_api.rb +2 -2
- data/lib/bandwidth-sdk/api/messages_api.rb +8 -2
- data/lib/bandwidth-sdk/api/mfa_api.rb +10 -10
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +6 -6
- data/lib/bandwidth-sdk/api/recordings_api.rb +55 -55
- data/lib/bandwidth-sdk/api/statistics_api.rb +3 -3
- data/lib/bandwidth-sdk/api_client.rb +1 -1
- data/lib/bandwidth-sdk/api_error.rb +2 -2
- data/lib/bandwidth-sdk/configuration.rb +3 -3
- data/lib/bandwidth-sdk/models/account_statistics.rb +2 -4
- data/lib/bandwidth-sdk/models/answer_callback.rb +4 -7
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/bxml/bxml.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/nestable_verb.rb +3 -7
- data/lib/bandwidth-sdk/models/bxml/response.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/root.rb +3 -3
- data/lib/bandwidth-sdk/models/bxml/verb.rb +4 -5
- data/lib/bandwidth-sdk/models/bxml/verbs/bridge.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/conference.rb +2 -5
- data/lib/bandwidth-sdk/models/bxml/verbs/custom_param.rb +16 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/forward.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +3 -5
- data/lib/bandwidth-sdk/models/bxml/verbs/hangup.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/pause.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/pause_recording.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/phone_number.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/play_audio.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/record.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/redirect.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/resume_recording.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/ring.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/send_dtmf.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/sip_uri.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/speak_sentence.rb +3 -5
- data/lib/bandwidth-sdk/models/bxml/verbs/start_gather.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/start_recording.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/start_stream.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/start_transcription.rb +29 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_gather.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_recording.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_transcription.rb +15 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stream_param.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/tag.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/transfer.rb +2 -4
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +2 -4
- data/lib/bandwidth-sdk/models/call_state.rb +4 -6
- data/lib/bandwidth-sdk/models/call_state_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/code_request.rb +2 -4
- data/lib/bandwidth-sdk/models/conference.rb +5 -7
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_member.rb +2 -4
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +2 -4
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/create_call.rb +14 -7
- data/lib/bandwidth-sdk/models/create_call_response.rb +10 -12
- data/lib/bandwidth-sdk/models/create_lookup_response.rb +2 -4
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/deferred_result.rb +2 -4
- data/lib/bandwidth-sdk/models/disconenct_callback.rb +1 -3
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/diversion.rb +2 -4
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/field_error.rb +2 -4
- data/lib/bandwidth-sdk/models/file_format_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/gather_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/inbound_message_callback.rb +2 -4
- data/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +3 -4
- data/lib/bandwidth-sdk/models/initiate_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/list_message_item.rb +19 -10
- data/lib/bandwidth-sdk/models/lookup_request.rb +2 -4
- data/lib/bandwidth-sdk/models/lookup_result.rb +2 -4
- data/lib/bandwidth-sdk/models/lookup_status.rb +2 -4
- data/lib/bandwidth-sdk/models/lookup_status_enum.rb +5 -5
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +4 -7
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +2 -4
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +229 -0
- data/lib/bandwidth-sdk/models/media.rb +2 -4
- data/lib/bandwidth-sdk/models/message.rb +17 -9
- data/lib/bandwidth-sdk/models/message_delivered_callback.rb +2 -4
- data/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +3 -4
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/message_failed_callback.rb +2 -4
- data/lib/bandwidth-sdk/models/message_failed_callback_message.rb +3 -4
- data/lib/bandwidth-sdk/models/message_request.rb +4 -6
- data/lib/bandwidth-sdk/models/message_sending_callback.rb +2 -4
- data/lib/bandwidth-sdk/models/message_sending_callback_message.rb +3 -4
- data/lib/bandwidth-sdk/models/message_status_enum.rb +9 -9
- data/lib/bandwidth-sdk/models/message_type_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/messages_list.rb +3 -5
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +2 -4
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/page_info.rb +2 -4
- data/lib/bandwidth-sdk/models/priority_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/redirect_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/stir_shaken.rb +2 -4
- data/lib/bandwidth-sdk/models/tag.rb +2 -4
- data/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +20 -9
- data/lib/bandwidth-sdk/models/transcription.rb +2 -4
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/transcription_list.rb +2 -4
- data/lib/bandwidth-sdk/models/transcription_metadata.rb +2 -4
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/update_call.rb +12 -5
- data/lib/bandwidth-sdk/models/update_call_recording.rb +2 -4
- data/lib/bandwidth-sdk/models/update_conference.rb +3 -5
- data/lib/bandwidth-sdk/models/update_conference_member.rb +2 -4
- data/lib/bandwidth-sdk/models/verify_code_request.rb +2 -4
- data/lib/bandwidth-sdk/models/verify_code_response.rb +2 -4
- data/lib/bandwidth-sdk/models/voice_api_error.rb +2 -4
- data/lib/bandwidth-sdk/models/voice_code_response.rb +2 -4
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +5 -1
- data/openapi-config.yml +1 -0
- data/openapitools.json +7 -0
- data/ruby-notes.md +11 -60
- data/spec/api/calls_api_spec.rb +228 -0
- data/spec/api/conferences_api_spec.rb +393 -0
- data/spec/api/media_api_spec.rb +129 -0
- data/spec/api/messages_api_spec.rb +193 -0
- data/spec/api/mfa_api_spec.rb +130 -0
- data/spec/api/phone_number_lookup_api_spec.rb +100 -0
- data/spec/api/recordings_api_spec.rb +395 -0
- data/spec/api/statistics_api_spec.rb +45 -0
- data/spec/api_client_spec.rb +377 -0
- data/spec/api_error_spec.rb +23 -0
- data/spec/call_utils.rb +28 -28
- data/spec/configuration_spec.rb +178 -0
- data/spec/integration/calls_api_integration_spec.rb +88 -69
- data/spec/integration/conferences_api_integration_spec.rb +74 -68
- data/spec/integration/media_api_integration_spec.rb +38 -32
- data/spec/integration/messages_api_integration_spec.rb +79 -38
- data/spec/integration/mfa_api_integration_spec.rb +41 -33
- data/spec/integration/phone_number_lookup_api_integration_spec.rb +26 -22
- data/spec/integration/recordings_api_integration_spec.rb +84 -77
- data/spec/integration/statistics_api_integration_spec.rb +15 -14
- data/spec/{unit/models → models}/bxml/bxml_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/nestable_verb_spec.rb +1 -3
- data/spec/{unit/models → models}/bxml/response_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verb_spec.rb +1 -14
- data/spec/{unit/models → models}/bxml/verbs/bridge_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/conference_spec.rb +0 -2
- data/spec/models/bxml/verbs/custom_param_spec.rb +36 -0
- data/spec/{unit/models → models}/bxml/verbs/forward_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/gather_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/hangup_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/pause_recording_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/pause_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/phone_number_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/play_audio_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/record_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/redirect_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/resume_recording_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/ring_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/send_dtmf_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/sip_uri_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/speak_sentence_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/start_gather_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/start_recording_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/start_stream_spec.rb +2 -4
- data/spec/models/bxml/verbs/start_transcription_spec.rb +74 -0
- data/spec/{unit/models → models}/bxml/verbs/stop_gather_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/stop_recording_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/stop_stream_spec.rb +0 -2
- data/spec/models/bxml/verbs/stop_transcription_spec.rb +34 -0
- data/spec/{unit/models → models}/bxml/verbs/stream_param_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/tag_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/transfer_spec.rb +0 -2
- data/spec/models/call_state_enum_spec.rb +16 -0
- data/spec/models/call_state_spec.rb +181 -0
- data/spec/models/deferred_result_spec.rb +87 -0
- data/spec/models/message_spec.rb +145 -0
- data/spec/models/verify_code_request_spec.rb +134 -0
- data/spec/spec_helper.rb +48 -31
- metadata +146 -254
- data/spec/unit/api/calls_api_spec.rb +0 -89
- data/spec/unit/api/conferences_api_spec.rb +0 -163
- data/spec/unit/api/media_api_spec.rb +0 -90
- data/spec/unit/api/messages_api_spec.rb +0 -73
- data/spec/unit/api/mfa_api_spec.rb +0 -74
- data/spec/unit/api/phone_number_lookup_api_spec.rb +0 -61
- data/spec/unit/api/recordings_api_spec.rb +0 -177
- data/spec/unit/api/statistics_api_spec.rb +0 -47
- data/spec/unit/models/account_statistics_spec.rb +0 -40
- data/spec/unit/models/answer_callback_spec.rb +0 -112
- data/spec/unit/models/bridge_complete_callback_spec.rb +0 -124
- data/spec/unit/models/bridge_target_complete_callback_spec.rb +0 -106
- data/spec/unit/models/call_direction_enum_spec.rb +0 -28
- data/spec/unit/models/call_recording_metadata_spec.rb +0 -136
- data/spec/unit/models/call_state_enum_spec.rb +0 -28
- data/spec/unit/models/call_state_spec.rb +0 -136
- data/spec/unit/models/callback_method_enum_spec.rb +0 -28
- data/spec/unit/models/code_request_spec.rb +0 -64
- data/spec/unit/models/conference_completed_callback_spec.rb +0 -58
- data/spec/unit/models/conference_created_callback_spec.rb +0 -58
- data/spec/unit/models/conference_member_exit_callback_spec.rb +0 -76
- data/spec/unit/models/conference_member_join_callback_spec.rb +0 -76
- data/spec/unit/models/conference_member_spec.rb +0 -64
- data/spec/unit/models/conference_recording_available_callback_spec.rb +0 -112
- data/spec/unit/models/conference_recording_metadata_spec.rb +0 -94
- data/spec/unit/models/conference_redirect_callback_spec.rb +0 -58
- data/spec/unit/models/conference_spec.rb +0 -76
- data/spec/unit/models/conference_state_enum_spec.rb +0 -28
- data/spec/unit/models/create_call_response_spec.rb +0 -154
- data/spec/unit/models/create_call_spec.rb +0 -142
- data/spec/unit/models/create_lookup_response_spec.rb +0 -40
- data/spec/unit/models/create_message_request_error_spec.rb +0 -46
- data/spec/unit/models/deferred_result_spec.rb +0 -40
- data/spec/unit/models/disconnect_callback_spec.rb +0 -130
- data/spec/unit/models/diversion_spec.rb +0 -70
- data/spec/unit/models/dtmf_callback_spec.rb +0 -130
- data/spec/unit/models/field_error_spec.rb +0 -40
- data/spec/unit/models/file_format_enum_spec.rb +0 -28
- data/spec/unit/models/gather_callback_spec.rb +0 -136
- data/spec/unit/models/inbound_message_callback_message_spec.rb +0 -100
- data/spec/unit/models/inbound_message_callback_spec.rb +0 -58
- data/spec/unit/models/initiate_callback_spec.rb +0 -100
- data/spec/unit/models/list_message_direction_enum_spec.rb +0 -28
- data/spec/unit/models/list_message_item_spec.rb +0 -124
- data/spec/unit/models/lookup_request_spec.rb +0 -34
- data/spec/unit/models/lookup_result_spec.rb +0 -82
- data/spec/unit/models/lookup_status_enum_spec.rb +0 -28
- data/spec/unit/models/lookup_status_spec.rb +0 -52
- data/spec/unit/models/machine_detection_complete_callback_spec.rb +0 -112
- data/spec/unit/models/machine_detection_configuration_spec.rb +0 -118
- data/spec/unit/models/machine_detection_mode_enum_spec.rb +0 -28
- data/spec/unit/models/media_spec.rb +0 -46
- data/spec/unit/models/message_delivered_callback_message_spec.rb +0 -100
- data/spec/unit/models/message_delivered_callback_spec.rb +0 -58
- data/spec/unit/models/message_direction_enum_spec.rb +0 -28
- data/spec/unit/models/message_failed_callback_message_spec.rb +0 -100
- data/spec/unit/models/message_failed_callback_spec.rb +0 -64
- data/spec/unit/models/message_request_spec.rb +0 -76
- data/spec/unit/models/message_sending_callback_message_spec.rb +0 -100
- data/spec/unit/models/message_sending_callback_spec.rb +0 -58
- data/spec/unit/models/message_spec.rb +0 -100
- data/spec/unit/models/message_status_enum_spec.rb +0 -28
- data/spec/unit/models/message_type_enum_spec.rb +0 -28
- data/spec/unit/models/messages_list_spec.rb +0 -46
- data/spec/unit/models/messaging_code_response_spec.rb +0 -34
- data/spec/unit/models/messaging_request_error_spec.rb +0 -40
- data/spec/unit/models/mfa_forbidden_request_error_spec.rb +0 -34
- data/spec/unit/models/mfa_request_error_spec.rb +0 -40
- data/spec/unit/models/mfa_unauthorized_request_error_spec.rb +0 -34
- data/spec/unit/models/page_info_spec.rb +0 -52
- data/spec/unit/models/priority_enum_spec.rb +0 -28
- data/spec/unit/models/recording_available_callback_spec.rb +0 -160
- data/spec/unit/models/recording_complete_callback_spec.rb +0 -160
- data/spec/unit/models/recording_state_enum_spec.rb +0 -28
- data/spec/unit/models/redirect_callback_spec.rb +0 -124
- data/spec/unit/models/redirect_method_enum_spec.rb +0 -28
- data/spec/unit/models/stir_shaken_spec.rb +0 -46
- data/spec/unit/models/tag_spec.rb +0 -40
- data/spec/unit/models/tn_lookup_request_error_spec.rb +0 -34
- data/spec/unit/models/transcribe_recording_spec.rb +0 -64
- data/spec/unit/models/transcription_available_callback_spec.rb +0 -154
- data/spec/unit/models/transcription_list_spec.rb +0 -34
- data/spec/unit/models/transcription_metadata_spec.rb +0 -52
- data/spec/unit/models/transcription_spec.rb +0 -40
- data/spec/unit/models/transfer_answer_callback_spec.rb +0 -118
- data/spec/unit/models/transfer_complete_callback_spec.rb +0 -136
- data/spec/unit/models/transfer_disconnect_callback_spec.rb +0 -148
- data/spec/unit/models/update_call_recording_spec.rb +0 -34
- data/spec/unit/models/update_call_spec.rb +0 -88
- data/spec/unit/models/update_conference_member_spec.rb +0 -46
- data/spec/unit/models/update_conference_spec.rb +0 -82
- data/spec/unit/models/verify_code_request_spec.rb +0 -52
- data/spec/unit/models/verify_code_response_spec.rb +0 -34
- data/spec/unit/models/voice_api_error_spec.rb +0 -46
- data/spec/unit/models/voice_code_response_spec.rb +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4755b02928f3f78f643d9524018f4e95384122ccb4fc5ebd46c282544ef6fea8
|
4
|
+
data.tar.gz: f0d389fe00fffa8751656a654128eab83cc2d2fec4153753743697c1fc220b2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36d56cbaf9d630cf719a807e665382a99844d73fe5f945547357ca972c113e23e655ba8808c830f01158999fcb2f72c307aad2b4439d234145b7d96270639ea7
|
7
|
+
data.tar.gz: b0d808511f119b47179838b33f4fceb32a40fd7d09bf26f593994d120118bf37c0431a2b5858a32105655b4d592222839222919a8fde1a61c9b893eae7345b6d
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bandwidth-sdk (11.0.0.pre.beta.
|
4
|
+
bandwidth-sdk (11.0.0.pre.beta.2.0)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart
|
7
7
|
ox (~> 2.4)
|
@@ -9,61 +9,82 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
+
addressable (2.8.4)
|
13
|
+
public_suffix (>= 2.0.2, < 6.0)
|
12
14
|
ast (2.4.2)
|
13
15
|
byebug (11.1.3)
|
14
16
|
coderay (1.1.3)
|
17
|
+
crack (0.4.5)
|
18
|
+
rexml
|
15
19
|
diff-lcs (1.5.0)
|
16
|
-
|
20
|
+
docile (1.4.0)
|
21
|
+
faraday (2.7.10)
|
17
22
|
faraday-net_http (>= 2.0, < 3.1)
|
18
23
|
ruby2_keywords (>= 0.0.4)
|
19
24
|
faraday-multipart (1.0.4)
|
20
25
|
multipart-post (~> 2)
|
21
26
|
faraday-net_http (3.0.2)
|
22
|
-
|
27
|
+
hashdiff (1.0.1)
|
28
|
+
json (2.6.3)
|
23
29
|
method_source (1.0.0)
|
24
30
|
multipart-post (2.3.0)
|
25
|
-
ox (2.14.
|
26
|
-
parallel (1.
|
27
|
-
parser (3.2.
|
31
|
+
ox (2.14.17)
|
32
|
+
parallel (1.23.0)
|
33
|
+
parser (3.2.2.3)
|
28
34
|
ast (~> 2.4.1)
|
35
|
+
racc
|
29
36
|
pry (0.14.2)
|
30
37
|
coderay (~> 1.1)
|
31
38
|
method_source (~> 1.0)
|
32
39
|
pry-byebug (3.10.1)
|
33
40
|
byebug (~> 11.0)
|
34
41
|
pry (>= 0.13, < 0.15)
|
35
|
-
|
36
|
-
|
42
|
+
public_suffix (5.0.3)
|
43
|
+
racc (1.7.1)
|
37
44
|
rainbow (3.1.1)
|
38
45
|
rake (13.0.6)
|
46
|
+
regexp_parser (2.8.1)
|
47
|
+
rexml (3.2.5)
|
39
48
|
rspec (3.12.0)
|
40
49
|
rspec-core (~> 3.12.0)
|
41
50
|
rspec-expectations (~> 3.12.0)
|
42
51
|
rspec-mocks (~> 3.12.0)
|
43
|
-
rspec-core (3.12.
|
52
|
+
rspec-core (3.12.2)
|
44
53
|
rspec-support (~> 3.12.0)
|
45
|
-
rspec-expectations (3.12.
|
54
|
+
rspec-expectations (3.12.3)
|
46
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
47
56
|
rspec-support (~> 3.12.0)
|
48
|
-
rspec-mocks (3.12.
|
57
|
+
rspec-mocks (3.12.6)
|
49
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
59
|
rspec-support (~> 3.12.0)
|
51
|
-
rspec-support (3.12.
|
52
|
-
rubocop (
|
53
|
-
|
60
|
+
rspec-support (3.12.1)
|
61
|
+
rubocop (1.52.1)
|
62
|
+
json (~> 2.3)
|
54
63
|
parallel (~> 1.10)
|
55
|
-
parser (>= 2.
|
56
|
-
psych (>= 3.1.0)
|
64
|
+
parser (>= 3.2.2.3)
|
57
65
|
rainbow (>= 2.2.2, < 4.0)
|
66
|
+
regexp_parser (>= 1.8, < 3.0)
|
67
|
+
rexml (>= 3.2.5, < 4.0)
|
68
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
58
69
|
ruby-progressbar (~> 1.7)
|
59
|
-
unicode-display_width (>=
|
60
|
-
|
70
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
71
|
+
rubocop-ast (1.29.0)
|
72
|
+
parser (>= 3.2.1.0)
|
73
|
+
ruby-progressbar (1.13.0)
|
61
74
|
ruby2_keywords (0.0.5)
|
62
|
-
|
63
|
-
|
75
|
+
simplecov (0.21.2)
|
76
|
+
docile (~> 1.1)
|
77
|
+
simplecov-html (~> 0.11)
|
78
|
+
simplecov_json_formatter (~> 0.1)
|
79
|
+
simplecov-html (0.12.3)
|
80
|
+
simplecov_json_formatter (0.1.4)
|
81
|
+
unicode-display_width (2.4.2)
|
82
|
+
webmock (3.18.1)
|
83
|
+
addressable (>= 2.8.0)
|
84
|
+
crack (>= 0.3.2)
|
85
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
64
86
|
|
65
87
|
PLATFORMS
|
66
|
-
arm64-darwin-22
|
67
88
|
x86_64-linux
|
68
89
|
|
69
90
|
DEPENDENCIES
|
@@ -71,7 +92,9 @@ DEPENDENCIES
|
|
71
92
|
pry-byebug
|
72
93
|
rake (~> 13.0.1)
|
73
94
|
rspec (~> 3.6, >= 3.6.0)
|
74
|
-
rubocop (~>
|
95
|
+
rubocop (~> 1.52.0)
|
96
|
+
simplecov (~> 0.21.2)
|
97
|
+
webmock (~> 3.18.0)
|
75
98
|
|
76
99
|
BUNDLED WITH
|
77
|
-
2.
|
100
|
+
2.2.33
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# bandwidth-sdk
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/bandwidth-sdk.svg)](https://badge.fury.io/rb/bandwidth-sdk)
|
4
|
+
[![Tests](https://github.com/Bandwidth/ruby-sdk/actions/workflows/test-nightly.yml/badge.svg)](https://github.com/Bandwidth/ruby-sdk/actions/workflows/test-nightly.yml)
|
5
|
+
[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)
|
4
6
|
|
5
7
|
|
6
8
|
| **OS** | **Ruby** |
|
@@ -77,8 +79,8 @@ Bandwidth.configure do |config|
|
|
77
79
|
end
|
78
80
|
|
79
81
|
api_instance = Bandwidth::CallsApi.new
|
80
|
-
account_id = '9900000' # String | Your Bandwidth Account ID
|
81
|
-
create_call = Bandwidth::CreateCall.new({to: '+19195551234', from: '+19195554321', application_id: '1234-qwer-5679-tyui', answer_url: 'https://www.myCallbackServer.
|
82
|
+
account_id = '9900000' # String | Your Bandwidth Account ID.
|
83
|
+
create_call = Bandwidth::CreateCall.new({to: '+19195551234', from: '+19195554321', application_id: '1234-qwer-5679-tyui', answer_url: 'https://www.myCallbackServer.example/webhooks/answer'}) # CreateCall | JSON object containing information to create an outbound call
|
82
84
|
|
83
85
|
begin
|
84
86
|
#Create Call
|
@@ -178,6 +180,7 @@ Class | Method | HTTP request | Description
|
|
178
180
|
- [Bandwidth::MachineDetectionCompleteCallback](docs/MachineDetectionCompleteCallback.md)
|
179
181
|
- [Bandwidth::MachineDetectionConfiguration](docs/MachineDetectionConfiguration.md)
|
180
182
|
- [Bandwidth::MachineDetectionModeEnum](docs/MachineDetectionModeEnum.md)
|
183
|
+
- [Bandwidth::MachineDetectionResult](docs/MachineDetectionResult.md)
|
181
184
|
- [Bandwidth::Media](docs/Media.md)
|
182
185
|
- [Bandwidth::Message](docs/Message.md)
|
183
186
|
- [Bandwidth::MessageDeliveredCallback](docs/MessageDeliveredCallback.md)
|
@@ -227,6 +230,7 @@ Class | Method | HTTP request | Description
|
|
227
230
|
## Documentation for Authorization
|
228
231
|
|
229
232
|
|
233
|
+
Authentication schemes defined for the API:
|
230
234
|
### Basic
|
231
235
|
|
232
236
|
- **Type**: HTTP basic authentication
|
data/Rakefile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
2
2
|
|
3
3
|
begin
|
4
4
|
require 'rspec/core/rake_task'
|
@@ -8,7 +8,10 @@ begin
|
|
8
8
|
|
9
9
|
desc 'Run Only Unit Tests'
|
10
10
|
RSpec::Core::RakeTask.new(:unit) do |t|
|
11
|
-
t.pattern = './spec/
|
11
|
+
t.pattern = './spec/api/**/*_spec.rb'
|
12
|
+
end
|
13
|
+
RSpec::Core::RakeTask.new(:unit) do |t|
|
14
|
+
t.pattern = './spec/models/**/*_spec.rb'
|
12
15
|
end
|
13
16
|
|
14
17
|
desc 'Run Only Integration Tests'
|
@@ -16,6 +19,11 @@ begin
|
|
16
19
|
t.pattern = './spec/integration/*_spec.rb'
|
17
20
|
end
|
18
21
|
|
22
|
+
desc 'Run Only Client Unit Tests'
|
23
|
+
RSpec::Core::RakeTask.new(:client) do |t|
|
24
|
+
t.pattern = './spec/*_spec.rb'
|
25
|
+
end
|
26
|
+
|
19
27
|
task default: :spec
|
20
28
|
rescue LoadError
|
21
29
|
# no rspec available
|
data/bandwidth-sdk.gemspec
CHANGED
@@ -8,24 +8,24 @@
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Contact: letstalk@bandwidth.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version: 6.
|
11
|
+
OpenAPI Generator version: 6.5.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
15
|
-
$:.push File.expand_path(
|
16
|
-
require
|
15
|
+
$:.push File.expand_path('../lib', __FILE__)
|
16
|
+
require 'bandwidth-sdk/version'
|
17
17
|
|
18
18
|
Gem::Specification.new do |s|
|
19
|
-
s.name =
|
19
|
+
s.name = 'bandwidth-sdk'
|
20
20
|
s.version = Bandwidth::VERSION
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
|
-
s.authors = [
|
23
|
-
s.email = [
|
24
|
-
s.homepage =
|
25
|
-
s.summary =
|
26
|
-
s.description =
|
27
|
-
s.license =
|
28
|
-
s.required_ruby_version =
|
22
|
+
s.authors = ['Bandwidth']
|
23
|
+
s.email = ['dx@bandwidth.com']
|
24
|
+
s.homepage = 'https://github.com/Bandwidth/ruby-sdk'
|
25
|
+
s.summary = 'Bandwidth Ruby SDK'
|
26
|
+
s.description = 'The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs'
|
27
|
+
s.license = 'MIT'
|
28
|
+
s.required_ruby_version = '>=2.7'
|
29
29
|
|
30
30
|
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
|
31
31
|
s.add_runtime_dependency 'faraday-multipart'
|
@@ -36,5 +36,5 @@ Gem::Specification.new do |s|
|
|
36
36
|
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
37
37
|
s.test_files = `find spec/*`.split("\n")
|
38
38
|
s.executables = []
|
39
|
-
s.require_paths = [
|
39
|
+
s.require_paths = ['lib']
|
40
40
|
end
|