bandwidth-sdk 18.1.3 → 18.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +56 -10
- data/README.md +2 -0
- data/UPDATING_MODEL_TESTS.md +17 -2
- data/bandwidth-sdk.gemspec +2 -2
- data/bandwidth.yml +190 -51
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +819 -144
- data/coverage/index.html +15708 -8440
- data/custom_templates/configuration.mustache +6 -2
- data/custom_templates/gemspec.mustache +1 -1
- data/docs/AnswerCallback.md +4 -2
- data/docs/BridgeCompleteCallback.md +1 -1
- data/docs/BridgeTargetCompleteCallback.md +1 -1
- data/docs/ConferenceCompletedCallback.md +1 -1
- data/docs/ConferenceCreatedCallback.md +1 -1
- data/docs/ConferenceMemberExitCallback.md +1 -1
- data/docs/ConferenceMemberJoinCallback.md +1 -1
- data/docs/ConferenceRecordingAvailableCallback.md +1 -1
- data/docs/ConferenceRedirectCallback.md +1 -1
- data/docs/DisconnectCallback.md +6 -2
- data/docs/DtmfCallback.md +1 -1
- data/docs/GatherCallback.md +1 -1
- data/docs/InitiateCallback.md +6 -2
- data/docs/MachineDetectionCompleteCallback.md +1 -1
- data/docs/MediaApi.md +8 -8
- data/docs/MessagesApi.md +4 -4
- data/docs/MultiChannelApi.md +2 -2
- data/docs/RbmActionBase.md +1 -1
- data/docs/RbmSuggestionResponse.md +1 -1
- data/docs/RecordingAvailableCallback.md +1 -1
- data/docs/RecordingCompleteCallback.md +1 -1
- data/docs/RedirectCallback.md +1 -1
- data/docs/ReferCallStatusEnum.md +15 -0
- data/docs/ReferCompleteCallback.md +46 -0
- data/docs/TranscriptionAvailableCallback.md +1 -1
- data/docs/TransferAnswerCallback.md +1 -1
- data/docs/TransferCompleteCallback.md +1 -1
- data/docs/TransferDisconnectCallback.md +1 -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/endpoints_api.rb +6 -6
- data/lib/bandwidth-sdk/api/media_api.rb +13 -13
- data/lib/bandwidth-sdk/api/messages_api.rb +7 -7
- data/lib/bandwidth-sdk/api/mfa_api.rb +4 -4
- data/lib/bandwidth-sdk/api/multi_channel_api.rb +4 -4
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +4 -4
- 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/toll_free_verification_api.rb +9 -9
- data/lib/bandwidth-sdk/api/transcriptions_api.rb +4 -4
- data/lib/bandwidth-sdk/api_client.rb +1 -1
- data/lib/bandwidth-sdk/api_error.rb +1 -1
- data/lib/bandwidth-sdk/api_model_base.rb +1 -1
- data/lib/bandwidth-sdk/configuration.rb +7 -3
- data/lib/bandwidth-sdk/models/account_statistics.rb +1 -1
- data/lib/bandwidth-sdk/models/additional_denial_reason.rb +1 -1
- data/lib/bandwidth-sdk/models/address.rb +1 -1
- data/lib/bandwidth-sdk/models/answer_callback.rb +17 -7
- data/lib/bandwidth-sdk/models/async_lookup_request.rb +1 -1
- data/lib/bandwidth-sdk/models/blocked_webhook.rb +1 -1
- 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/brtc_error.rb +1 -1
- data/lib/bandwidth-sdk/models/brtc_error_response.rb +1 -1
- data/lib/bandwidth-sdk/models/brtc_error_source.rb +1 -1
- data/lib/bandwidth-sdk/models/brtc_link.rb +1 -1
- data/lib/bandwidth-sdk/models/business_entity_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/business_registration_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/bxml/root.rb +1 -1
- data/lib/bandwidth-sdk/models/bxml/verb.rb +1 -1
- data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +1 -1
- data/lib/bandwidth-sdk/models/bxml/verbs/refer.rb +24 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/sip_uri.rb +3 -1
- data/lib/bandwidth-sdk/models/bxml/verbs/speak_sentence.rb +1 -1
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +1 -1
- 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 +1 -1
- 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.rb +1 -1
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/card_width_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/code_request.rb +1 -1
- data/lib/bandwidth-sdk/models/completed_lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/conference.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/contact.rb +1 -1
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response_data.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_endpoint_request_base.rb +1 -1
- data/lib/bandwidth-sdk/models/create_endpoint_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_endpoint_response_data.rb +1 -1
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/create_multi_channel_message_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_sync_lookup_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_sync_lookup_response_data.rb +1 -1
- data/lib/bandwidth-sdk/models/create_web_rtc_connection_request.rb +1 -1
- data/lib/bandwidth-sdk/models/deactivation_event_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/device.rb +1 -1
- data/lib/bandwidth-sdk/models/device_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +27 -7
- data/lib/bandwidth-sdk/models/diversion.rb +1 -1
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/endpoint.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_event.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_event_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_response.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoints.rb +1 -1
- data/lib/bandwidth-sdk/models/error_object.rb +1 -1
- data/lib/bandwidth-sdk/models/error_source.rb +1 -1
- data/lib/bandwidth-sdk/models/failure_webhook.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 +2 -2
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb +1 -1
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb +1 -1
- data/lib/bandwidth-sdk/models/in_progress_lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_callback_message.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_callback_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/initiate_callback.rb +28 -6
- data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/line_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/link.rb +1 -1
- data/lib/bandwidth-sdk/models/link_schema.rb +1 -1
- data/lib/bandwidth-sdk/models/links_object.rb +1 -1
- data/lib/bandwidth-sdk/models/list_endpoints_response.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_error_response.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_error_schema.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_error_schema_meta.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_result.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +2 -2
- 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_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_request.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/mms_message_content.rb +1 -1
- data/lib/bandwidth-sdk/models/mms_message_content_file.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_action.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_action_calendar_event.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_response_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_owner_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object_all_of_content.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_error.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_channel_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_content.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_response_data.rb +1 -1
- data/lib/bandwidth-sdk/models/opt_in_workflow.rb +1 -1
- data/lib/bandwidth-sdk/models/page.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/product_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_base.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_dial.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_open_url.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_view_location.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_card_content.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_card_content_media.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_location_response.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_media_height_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_carousel_card.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_content_file.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_content_rich_card.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_content_text.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_media.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_open_url_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_standalone_card.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_suggestion_response.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_web_view_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_clip.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 +2 -2
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/refer_call_status_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/refer_complete_callback.rb +309 -0
- data/lib/bandwidth-sdk/models/sip_connection_metadata.rb +1 -1
- data/lib/bandwidth-sdk/models/sip_credentials.rb +1 -1
- data/lib/bandwidth-sdk/models/sms_message_content.rb +1 -1
- data/lib/bandwidth-sdk/models/standalone_card_orientation_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/status_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/status_callback_message.rb +1 -1
- data/lib/bandwidth-sdk/models/status_callback_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/stir_shaken.rb +1 -1
- data/lib/bandwidth-sdk/models/sync_lookup_request.rb +1 -1
- data/lib/bandwidth-sdk/models/telephone_number.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_basic_authentication.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_callback_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_error.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_status.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_submission_info.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_submission_wrapper.rb +1 -1
- data/lib/bandwidth-sdk/models/thumbnail_alignment_enum.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 +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 +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/verification_denial_webhook.rb +1 -1
- data/lib/bandwidth-sdk/models/verification_request.rb +1 -1
- data/lib/bandwidth-sdk/models/verification_update_request.rb +1 -1
- data/lib/bandwidth-sdk/models/verification_webhook.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/models/webhook_subscription.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscription_basic_authentication.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscription_error.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscription_request_schema.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscription_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscriptions_list_body.rb +1 -1
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +4 -1
- data/openapitools.json +1 -1
- data/spec/unit/api/calls_api_spec.rb +1 -2
- data/spec/unit/api/conferences_api_spec.rb +1 -2
- data/spec/unit/api/endpoints_api_spec.rb +1 -2
- data/spec/unit/api/media_api_spec.rb +1 -2
- data/spec/unit/api/messages_api_spec.rb +1 -2
- data/spec/unit/api/mfa_api_spec.rb +1 -2
- data/spec/unit/api/multi_channel_api_spec.rb +1 -2
- data/spec/unit/api/phone_number_lookup_api_spec.rb +1 -2
- data/spec/unit/api/recordings_api_spec.rb +1 -2
- data/spec/unit/api/statistics_api_spec.rb +1 -2
- data/spec/unit/api/toll_free_verification_api_spec.rb +1 -2
- data/spec/unit/api/transcriptions_api_spec.rb +1 -2
- data/spec/unit/models/account_statistics_spec.rb +1 -1
- data/spec/unit/models/additional_denial_reason_spec.rb +1 -1
- data/spec/unit/models/address_spec.rb +1 -1
- data/spec/unit/models/answer_callback_spec.rb +8 -4
- data/spec/unit/models/async_lookup_request_spec.rb +1 -1
- data/spec/unit/models/blocked_webhook_spec.rb +1 -1
- data/spec/unit/models/bridge_complete_callback_spec.rb +1 -1
- data/spec/unit/models/bridge_target_complete_callback_spec.rb +1 -1
- data/spec/unit/models/brtc_error_response_spec.rb +1 -1
- data/spec/unit/models/brtc_error_source_spec.rb +1 -1
- data/spec/unit/models/brtc_error_spec.rb +1 -1
- data/spec/unit/models/brtc_link_spec.rb +1 -1
- data/spec/unit/models/bxml/verbs/refer_spec.rb +54 -0
- data/spec/unit/models/call_recording_metadata_spec.rb +1 -1
- data/spec/unit/models/call_state_spec.rb +1 -1
- data/spec/unit/models/call_transcription_metadata_spec.rb +1 -1
- data/spec/unit/models/call_transcription_response_spec.rb +1 -1
- data/spec/unit/models/call_transcription_spec.rb +1 -1
- data/spec/unit/models/code_request_spec.rb +1 -1
- data/spec/unit/models/conference_completed_callback_spec.rb +1 -1
- data/spec/unit/models/conference_created_callback_spec.rb +1 -1
- data/spec/unit/models/conference_member_exit_callback_spec.rb +1 -1
- data/spec/unit/models/conference_member_join_callback_spec.rb +1 -1
- data/spec/unit/models/conference_member_spec.rb +1 -1
- data/spec/unit/models/conference_recording_available_callback_spec.rb +1 -1
- data/spec/unit/models/conference_recording_metadata_spec.rb +1 -1
- data/spec/unit/models/conference_redirect_callback_spec.rb +1 -1
- data/spec/unit/models/conference_spec.rb +1 -1
- data/spec/unit/models/contact_spec.rb +1 -1
- data/spec/unit/models/create_async_bulk_lookup_response_data_spec.rb +1 -1
- data/spec/unit/models/create_async_bulk_lookup_response_spec.rb +1 -1
- data/spec/unit/models/create_call_response_spec.rb +1 -1
- data/spec/unit/models/create_call_spec.rb +1 -1
- data/spec/unit/models/create_endpoint_request_base_spec.rb +1 -1
- data/spec/unit/models/create_endpoint_response_data_spec.rb +1 -1
- data/spec/unit/models/create_endpoint_response_spec.rb +1 -1
- data/spec/unit/models/create_message_request_error_spec.rb +1 -1
- data/spec/unit/models/create_multi_channel_message_response_spec.rb +1 -1
- data/spec/unit/models/create_sync_lookup_response_data_spec.rb +1 -1
- data/spec/unit/models/create_sync_lookup_response_spec.rb +1 -1
- data/spec/unit/models/create_web_rtc_connection_request_spec.rb +1 -1
- data/spec/unit/models/device_spec.rb +1 -1
- data/spec/unit/models/disconnect_callback_spec.rb +12 -4
- data/spec/unit/models/diversion_spec.rb +1 -1
- data/spec/unit/models/dtmf_callback_spec.rb +1 -1
- data/spec/unit/models/endpoint_event_spec.rb +1 -1
- data/spec/unit/models/endpoint_response_spec.rb +1 -1
- data/spec/unit/models/endpoint_spec.rb +1 -1
- data/spec/unit/models/endpoints_spec.rb +1 -1
- data/spec/unit/models/error_object_spec.rb +1 -1
- data/spec/unit/models/error_source_spec.rb +1 -1
- data/spec/unit/models/failure_webhook_spec.rb +1 -1
- data/spec/unit/models/field_error_spec.rb +1 -1
- data/spec/unit/models/gather_callback_spec.rb +1 -1
- data/spec/unit/models/get_async_bulk_lookup_response_data_spec.rb +1 -1
- data/spec/unit/models/get_async_bulk_lookup_response_spec.rb +1 -1
- data/spec/unit/models/inbound_callback_message_spec.rb +1 -1
- data/spec/unit/models/inbound_callback_spec.rb +1 -1
- data/spec/unit/models/initiate_callback_spec.rb +13 -4
- data/spec/unit/models/link_schema_spec.rb +1 -1
- data/spec/unit/models/link_spec.rb +1 -1
- data/spec/unit/models/links_object_spec.rb +1 -1
- data/spec/unit/models/list_endpoints_response_spec.rb +1 -1
- data/spec/unit/models/list_message_item_spec.rb +1 -1
- data/spec/unit/models/lookup_error_response_spec.rb +1 -1
- data/spec/unit/models/lookup_error_schema_meta_spec.rb +1 -1
- data/spec/unit/models/lookup_error_schema_spec.rb +1 -1
- data/spec/unit/models/lookup_result_spec.rb +1 -1
- data/spec/unit/models/machine_detection_complete_callback_spec.rb +1 -1
- data/spec/unit/models/machine_detection_configuration_spec.rb +1 -1
- data/spec/unit/models/machine_detection_result_spec.rb +1 -1
- data/spec/unit/models/media_spec.rb +1 -1
- data/spec/unit/models/message_request_spec.rb +1 -1
- data/spec/unit/models/message_spec.rb +1 -1
- data/spec/unit/models/messages_list_spec.rb +1 -1
- data/spec/unit/models/messaging_code_response_spec.rb +1 -1
- data/spec/unit/models/messaging_request_error_spec.rb +1 -1
- data/spec/unit/models/mfa_forbidden_request_error_spec.rb +1 -1
- data/spec/unit/models/mfa_request_error_spec.rb +1 -1
- data/spec/unit/models/mfa_unauthorized_request_error_spec.rb +1 -1
- data/spec/unit/models/mms_message_content_file_spec.rb +1 -1
- data/spec/unit/models/mms_message_content_spec.rb +1 -1
- data/spec/unit/models/multi_channel_action_calendar_event_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_mms_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_mms_response_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_object_base_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_owner_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_rbm_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_rbm_response_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_sms_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_sms_response_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_error_spec.rb +1 -1
- data/spec/unit/models/multi_channel_message_content_spec.rb +1 -1
- data/spec/unit/models/multi_channel_message_request_spec.rb +1 -1
- data/spec/unit/models/multi_channel_message_response_data_spec.rb +1 -1
- data/spec/unit/models/opt_in_workflow_spec.rb +1 -1
- data/spec/unit/models/page_info_spec.rb +1 -1
- data/spec/unit/models/page_spec.rb +1 -1
- data/spec/unit/models/rbm_action_base_spec.rb +1 -1
- data/spec/unit/models/rbm_action_dial_spec.rb +1 -1
- data/spec/unit/models/rbm_action_open_url_spec.rb +1 -1
- data/spec/unit/models/rbm_action_view_location_spec.rb +1 -1
- data/spec/unit/models/rbm_card_content_media_spec.rb +1 -1
- data/spec/unit/models/rbm_card_content_spec.rb +1 -1
- data/spec/unit/models/rbm_location_response_spec.rb +1 -1
- data/spec/unit/models/rbm_message_carousel_card_spec.rb +1 -1
- data/spec/unit/models/rbm_message_content_file_spec.rb +1 -1
- data/spec/unit/models/rbm_message_content_text_spec.rb +1 -1
- data/spec/unit/models/rbm_message_media_spec.rb +1 -1
- data/spec/unit/models/rbm_standalone_card_spec.rb +1 -1
- data/spec/unit/models/rbm_suggestion_response_spec.rb +1 -1
- data/spec/unit/models/recording_available_callback_spec.rb +1 -1
- data/spec/unit/models/recording_complete_callback_spec.rb +1 -1
- data/spec/unit/models/recording_transcription_clip_spec.rb +1 -1
- data/spec/unit/models/recording_transcription_metadata_spec.rb +1 -1
- data/spec/unit/models/recording_transcriptions_spec.rb +1 -1
- data/spec/unit/models/redirect_callback_spec.rb +1 -1
- data/spec/unit/models/refer_call_status_enum_spec.rb +31 -0
- data/spec/unit/models/refer_complete_callback_spec.rb +123 -0
- data/spec/unit/models/sip_connection_metadata_spec.rb +1 -1
- data/spec/unit/models/sip_credentials_spec.rb +1 -1
- data/spec/unit/models/sms_message_content_spec.rb +1 -1
- data/spec/unit/models/status_callback_message_spec.rb +1 -1
- data/spec/unit/models/status_callback_spec.rb +1 -1
- data/spec/unit/models/stir_shaken_spec.rb +1 -1
- data/spec/unit/models/sync_lookup_request_spec.rb +1 -1
- data/spec/unit/models/telephone_number_spec.rb +1 -1
- data/spec/unit/models/tfv_basic_authentication_spec.rb +1 -1
- data/spec/unit/models/tfv_error_spec.rb +1 -1
- data/spec/unit/models/tfv_status_spec.rb +1 -1
- data/spec/unit/models/tfv_submission_info_spec.rb +1 -1
- data/spec/unit/models/tfv_submission_wrapper_spec.rb +1 -1
- data/spec/unit/models/transcribe_recording_spec.rb +1 -1
- data/spec/unit/models/transcription_available_callback_spec.rb +1 -1
- data/spec/unit/models/transcription_spec.rb +1 -1
- data/spec/unit/models/transfer_answer_callback_spec.rb +1 -1
- data/spec/unit/models/transfer_complete_callback_spec.rb +1 -1
- data/spec/unit/models/transfer_disconnect_callback_spec.rb +1 -1
- data/spec/unit/models/update_call_recording_spec.rb +1 -1
- data/spec/unit/models/update_call_spec.rb +1 -1
- data/spec/unit/models/update_conference_member_spec.rb +1 -1
- data/spec/unit/models/update_conference_spec.rb +1 -1
- data/spec/unit/models/verification_denial_webhook_spec.rb +1 -1
- data/spec/unit/models/verification_request_spec.rb +1 -1
- data/spec/unit/models/verification_update_request_spec.rb +1 -1
- data/spec/unit/models/verification_webhook_spec.rb +1 -1
- data/spec/unit/models/verify_code_request_spec.rb +1 -1
- data/spec/unit/models/verify_code_response_spec.rb +1 -1
- data/spec/unit/models/voice_api_error_spec.rb +1 -1
- data/spec/unit/models/voice_code_response_spec.rb +1 -1
- data/spec/unit/models/webhook_subscription_basic_authentication_spec.rb +1 -1
- data/spec/unit/models/webhook_subscription_error_spec.rb +1 -1
- data/spec/unit/models/webhook_subscription_request_schema_spec.rb +1 -1
- data/spec/unit/models/webhook_subscription_spec.rb +1 -1
- data/spec/unit/models/webhook_subscriptions_list_body_spec.rb +1 -1
- metadata +241 -227
|
@@ -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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.24.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -55,7 +55,7 @@ module Bandwidth
|
|
|
55
55
|
fail ArgumentError, "Missing the required parameter 'transcription_id' when calling TranscriptionsApi.delete_real_time_transcription"
|
|
56
56
|
end
|
|
57
57
|
# resource path
|
|
58
|
-
local_var_path = '/accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId}'.sub('{
|
|
58
|
+
local_var_path = '/accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId}'.sub('{accountId}', CGI.escape(account_id.to_s)).sub('{callId}', CGI.escape(call_id.to_s)).sub('{transcriptionId}', CGI.escape(transcription_id.to_s))
|
|
59
59
|
|
|
60
60
|
# query parameters
|
|
61
61
|
query_params = opts[:query_params] || {}
|
|
@@ -130,7 +130,7 @@ module Bandwidth
|
|
|
130
130
|
fail ArgumentError, "Missing the required parameter 'transcription_id' when calling TranscriptionsApi.get_real_time_transcription"
|
|
131
131
|
end
|
|
132
132
|
# resource path
|
|
133
|
-
local_var_path = '/accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId}'.sub('{
|
|
133
|
+
local_var_path = '/accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId}'.sub('{accountId}', CGI.escape(account_id.to_s)).sub('{callId}', CGI.escape(call_id.to_s)).sub('{transcriptionId}', CGI.escape(transcription_id.to_s))
|
|
134
134
|
|
|
135
135
|
# query parameters
|
|
136
136
|
query_params = opts[:query_params] || {}
|
|
@@ -199,7 +199,7 @@ module Bandwidth
|
|
|
199
199
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling TranscriptionsApi.list_real_time_transcriptions"
|
|
200
200
|
end
|
|
201
201
|
# resource path
|
|
202
|
-
local_var_path = '/accounts/{accountId}/calls/{callId}/transcriptions'.sub('{
|
|
202
|
+
local_var_path = '/accounts/{accountId}/calls/{callId}/transcriptions'.sub('{accountId}', CGI.escape(account_id.to_s)).sub('{callId}', CGI.escape(call_id.to_s))
|
|
203
203
|
|
|
204
204
|
# query parameters
|
|
205
205
|
query_params = opts[:query_params] || {}
|
|
@@ -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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.24.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -72,6 +72,10 @@ module Bandwidth
|
|
|
72
72
|
# Defines the access token (Bearer) used with OAuth2.
|
|
73
73
|
attr_accessor :access_token
|
|
74
74
|
|
|
75
|
+
# Defines the URL used to obtain access tokens (Bearer) used with OAuth2.
|
|
76
|
+
# @return [String]
|
|
77
|
+
attr_accessor :access_token_url
|
|
78
|
+
|
|
75
79
|
# Defines a Proc used to fetch or refresh access tokens (Bearer) used with OAuth2.
|
|
76
80
|
# Overrides the access_token if set
|
|
77
81
|
# @return [Proc]
|
|
@@ -193,6 +197,7 @@ module Bandwidth
|
|
|
193
197
|
@force_ending_format = false
|
|
194
198
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
|
195
199
|
@access_token_expiration = nil
|
|
200
|
+
@access_token_url = 'https://api.bandwidth.com/api/v1/oauth2/token'
|
|
196
201
|
@access_token_getter = Proc.new {
|
|
197
202
|
access_token_valid = @access_token && (@access_token_expiration.nil? || @access_token_expiration > Time.now + 60)
|
|
198
203
|
next @access_token if access_token_valid
|
|
@@ -200,9 +205,8 @@ module Bandwidth
|
|
|
200
205
|
|
|
201
206
|
puts "Refreshing access token..." if @debugging
|
|
202
207
|
# obtain new access token using client credentials
|
|
203
|
-
token_url = 'https://api.bandwidth.com/api/v1/oauth2/token'
|
|
204
208
|
auth_header = 'Basic ' + ["#{@client_id}:#{@client_secret}"].pack('m').delete("\r\n")
|
|
205
|
-
conn = Faraday.new(url:
|
|
209
|
+
conn = Faraday.new(url: @access_token_url) do |faraday|
|
|
206
210
|
faraday.request :url_encoded
|
|
207
211
|
faraday.adapter Faraday.default_adapter
|
|
208
212
|
end
|
|
@@ -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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.24.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module Bandwidth
|
|
17
17
|
# The Answer event is sent to the answerUrl specified in the createCall request when an outbound call is answered.
|
|
18
18
|
class AnswerCallback < ApiModelBase
|
|
19
|
-
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
|
+
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
20
20
|
attr_accessor :event_type
|
|
21
21
|
|
|
22
22
|
# 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.
|
|
@@ -56,6 +56,9 @@ module Bandwidth
|
|
|
56
56
|
|
|
57
57
|
attr_accessor :machine_detection_result
|
|
58
58
|
|
|
59
|
+
# (optional) The SIP Call-ID of the call's current SIP dialog with Bandwidth's SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists.
|
|
60
|
+
attr_accessor :sip_call_id
|
|
61
|
+
|
|
59
62
|
class EnumAttributeValidator
|
|
60
63
|
attr_reader :datatype
|
|
61
64
|
attr_reader :allowable_values
|
|
@@ -94,7 +97,8 @@ module Bandwidth
|
|
|
94
97
|
:'start_time' => :'startTime',
|
|
95
98
|
:'answer_time' => :'answerTime',
|
|
96
99
|
:'tag' => :'tag',
|
|
97
|
-
:'machine_detection_result' => :'machineDetectionResult'
|
|
100
|
+
:'machine_detection_result' => :'machineDetectionResult',
|
|
101
|
+
:'sip_call_id' => :'sipCallId'
|
|
98
102
|
}
|
|
99
103
|
end
|
|
100
104
|
|
|
@@ -124,7 +128,8 @@ module Bandwidth
|
|
|
124
128
|
:'start_time' => :'Time',
|
|
125
129
|
:'answer_time' => :'Time',
|
|
126
130
|
:'tag' => :'String',
|
|
127
|
-
:'machine_detection_result' => :'MachineDetectionResult'
|
|
131
|
+
:'machine_detection_result' => :'MachineDetectionResult',
|
|
132
|
+
:'sip_call_id' => :'String'
|
|
128
133
|
}
|
|
129
134
|
end
|
|
130
135
|
|
|
@@ -134,7 +139,7 @@ module Bandwidth
|
|
|
134
139
|
:'enqueued_time',
|
|
135
140
|
:'answer_time',
|
|
136
141
|
:'tag',
|
|
137
|
-
:'machine_detection_result'
|
|
142
|
+
:'machine_detection_result',
|
|
138
143
|
])
|
|
139
144
|
end
|
|
140
145
|
|
|
@@ -209,6 +214,10 @@ module Bandwidth
|
|
|
209
214
|
if attributes.key?(:'machine_detection_result')
|
|
210
215
|
self.machine_detection_result = attributes[:'machine_detection_result']
|
|
211
216
|
end
|
|
217
|
+
|
|
218
|
+
if attributes.key?(:'sip_call_id')
|
|
219
|
+
self.sip_call_id = attributes[:'sip_call_id']
|
|
220
|
+
end
|
|
212
221
|
end
|
|
213
222
|
|
|
214
223
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -244,7 +253,8 @@ module Bandwidth
|
|
|
244
253
|
start_time == o.start_time &&
|
|
245
254
|
answer_time == o.answer_time &&
|
|
246
255
|
tag == o.tag &&
|
|
247
|
-
machine_detection_result == o.machine_detection_result
|
|
256
|
+
machine_detection_result == o.machine_detection_result &&
|
|
257
|
+
sip_call_id == o.sip_call_id
|
|
248
258
|
end
|
|
249
259
|
|
|
250
260
|
# @see the `==` method
|
|
@@ -256,7 +266,7 @@ module Bandwidth
|
|
|
256
266
|
# Calculates hash code according to all attributes.
|
|
257
267
|
# @return [Integer] Hash code
|
|
258
268
|
def hash
|
|
259
|
-
[event_type, event_time, account_id, application_id, from, to, direction, call_id, call_url, enqueued_time, start_time, answer_time, tag, machine_detection_result].hash
|
|
269
|
+
[event_type, event_time, account_id, application_id, from, to, direction, call_id, call_url, enqueued_time, start_time, answer_time, tag, machine_detection_result, sip_call_id].hash
|
|
260
270
|
end
|
|
261
271
|
|
|
262
272
|
# Builds the object from hash
|
|
@@ -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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.24.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module Bandwidth
|
|
17
17
|
# If the target call leaves the <Bridge>, then this callback is sent to the bridgeCompleteUrl, and the BXML returned in it is executed on the call. If this webhook is sent, the Bridge Target Complete webhook is NOT sent. This callback is also sent if any problem occurs that prevents the calls to be bridged.
|
|
18
18
|
class BridgeCompleteCallback < ApiModelBase
|
|
19
|
-
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
|
+
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
20
20
|
attr_accessor :event_type
|
|
21
21
|
|
|
22
22
|
# 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.
|
|
@@ -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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.24.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module Bandwidth
|
|
17
17
|
# If the originating call leaves the <Bridge>, then this callback is sent to the bridgeTargetCompleteUrl, and the BXML returned in it is executed on the target call. If this webhook is sent, the Bridge Complete webhook is NOT sent.
|
|
18
18
|
class BridgeTargetCompleteCallback < ApiModelBase
|
|
19
|
-
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
|
+
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
20
20
|
attr_accessor :event_type
|
|
21
21
|
|
|
22
22
|
# 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.
|
|
@@ -36,7 +36,7 @@ module Bandwidth
|
|
|
36
36
|
@nested_verbs.push(*nested_verbs)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
# Return BXML
|
|
39
|
+
# Return BXML representation of this response
|
|
40
40
|
# @return [String] The XML response in string format.
|
|
41
41
|
def to_bxml
|
|
42
42
|
bxml = Ox.dump(generate_xml)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Bandwidth
|
|
2
|
+
module Bxml
|
|
3
|
+
class Refer < Bandwidth::Bxml::NestableVerb
|
|
4
|
+
# Initializer
|
|
5
|
+
# @param sip_uri [SipUri] The SIP URI to REFER the call to. Uses the same SipUri verb shared with Transfer. Defaults to an empty array.
|
|
6
|
+
# @param attributes [Hash] The attributes to add to the element. Defaults to an empty hash.
|
|
7
|
+
def initialize(sip_uri = [], attributes = {})
|
|
8
|
+
super('Refer', nil, sip_uri, attributes)
|
|
9
|
+
|
|
10
|
+
@attribute_map = {
|
|
11
|
+
refer_complete_url: 'referCompleteUrl', # Optional [String]: URL to send the Refer Complete event to and request new BXML for failure recovery. May be a relative URL. Defaults to None.
|
|
12
|
+
refer_complete_method: 'referCompleteMethod', # Optional [String]: The HTTP method to use for the request to referCompleteUrl. GET or POST. Default value is POST. Defaults to None.
|
|
13
|
+
tag: 'tag', # Optional [String]: A custom string that will be sent with this and all future callbacks unless overwritten by a future tag attribute or cleared. May be cleared by setting tag="". Max length 256 characters. Defaults to None.
|
|
14
|
+
}
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Set the SIP URI destination for this Refer verb
|
|
18
|
+
# @param sip_uri [SipUri] The SIP URI to refer the call to.
|
|
19
|
+
def set_sip_uri(sip_uri)
|
|
20
|
+
@nested_verbs = [sip_uri]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
module Bandwidth
|
|
2
2
|
module Bxml
|
|
3
3
|
class SipUri < Bandwidth::Bxml::Verb
|
|
4
|
+
# Shared nested verb used by both Transfer and Refer to specify a SIP URI destination.
|
|
5
|
+
#
|
|
4
6
|
# Initializer
|
|
5
|
-
# @param uri [String] A SIP URI to transfer the call to (e.g. sip:user@server.com)
|
|
7
|
+
# @param uri [String] A SIP URI to transfer or refer the call to (e.g. sip:user@server.com)
|
|
6
8
|
# @param attributes [Hash] The attributes to add to the element. Defaults to an empty hash.
|
|
7
9
|
def initialize(uri, attributes = {})
|
|
8
10
|
super('SipUri', uri, attributes)
|
|
@@ -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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.24.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module Bandwidth
|
|
17
17
|
# The Conference Completed event is fired when the last member leaves the conference. The response to this event may not contain BXML.
|
|
18
18
|
class ConferenceCompletedCallback < ApiModelBase
|
|
19
|
-
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
|
+
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
20
20
|
attr_accessor :event_type
|
|
21
21
|
|
|
22
22
|
# 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.
|
|
@@ -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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.24.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module Bandwidth
|
|
17
17
|
# The Conference Created event is fired whenever a new conference that specified a callbackUrl is created. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference.
|
|
18
18
|
class ConferenceCreatedCallback < ApiModelBase
|
|
19
|
-
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
|
+
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
20
20
|
attr_accessor :event_type
|
|
21
21
|
|
|
22
22
|
# 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.
|
|
@@ -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
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.24.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module Bandwidth
|
|
17
17
|
# The Conference Member Exit event is fired whenever a caller exits a conference that specified a callbackUrl. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference.
|
|
18
18
|
class ConferenceMemberExitCallback < ApiModelBase
|
|
19
|
-
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
|
+
# The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
20
20
|
attr_accessor :event_type
|
|
21
21
|
|
|
22
22
|
# 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.
|