freeclimb 4.9.0 → 5.1.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/CHANGELOG.md +25 -0
- data/Gemfile +2 -1
- data/Gemfile.lock +49 -27
- data/README.md +44 -51
- data/docs/AddToConferenceNotificationWebhook.md +42 -0
- data/docs/AddToQueueNotificationWebhook.md +34 -0
- data/docs/BargeInReason.md +18 -0
- data/docs/CallControlWebhook.md +26 -0
- data/docs/CallEndedReason.md +38 -0
- data/docs/CallStatusWebhook.md +36 -0
- data/docs/CompletionResult.md +1 -1
- data/docs/CompletionResultStatus.md +17 -0
- data/docs/ConferenceRecordingStatusWebhook.md +42 -0
- data/docs/ConferenceResult.md +1 -1
- data/docs/ConferenceStatusWebhook.md +42 -0
- data/docs/CreateConference.md +1 -1
- data/docs/CreateConferenceRequest.md +1 -1
- data/docs/CreateConferenceWebhook.md +42 -0
- data/docs/DequeueWebhook.md +38 -0
- data/docs/GetDigitsReason.md +19 -0
- data/docs/GetDigitsWebhook.md +40 -0
- data/docs/GetSpeechWebhook.md +50 -0
- data/docs/InboundCallWebhook.md +36 -0
- data/docs/LeaveConferenceWebhook.md +34 -0
- data/docs/MachineDetectedWebhook.md +38 -0
- data/docs/MachineType.md +2 -2
- data/docs/MessageDeliveryWebhook.md +36 -0
- data/docs/MessageResult.md +7 -1
- data/docs/MessageStatusWebhook.md +38 -0
- data/docs/OutDialApiConnectWebhook.md +36 -0
- data/docs/OutDialConnectWebhook.md +36 -0
- data/docs/OutDialStartWebhook.md +38 -0
- data/docs/QueueWaitWebhook.md +40 -0
- data/docs/RecordWebhook.md +50 -0
- data/docs/RedirectWebhook.md +36 -0
- data/docs/RemoveFromQueueNotificationWebhook.md +38 -0
- data/docs/SMSTenDLCBrand.md +6 -6
- data/docs/SMSTenDLCBrandAltBusinessIdType.md +19 -0
- data/docs/SMSTenDLCBrandEntityType.md +20 -0
- data/docs/SMSTenDLCBrandIdentityStatus.md +19 -0
- data/docs/SMSTenDLCBrandRelationship.md +20 -0
- data/docs/SMSTenDLCBrandStockExchange.md +42 -0
- data/docs/SMSTenDLCCampaign.md +1 -1
- data/docs/SMSTenDLCCampaignStatus.md +17 -0
- data/docs/SMSTenDLCPartnerCampaign.md +1 -1
- data/docs/SMSTenDLCPartnerCampaignStatus.md +17 -0
- data/docs/SMSTollFreeCampaign.md +1 -1
- data/docs/SMSTollFreeCampaignRegistrationStatus.md +20 -0
- data/docs/TFNCampaign.md +34 -0
- data/docs/TranscribeReason.md +20 -0
- data/docs/TranscribeTermReason.md +17 -0
- data/docs/TranscribeUtterance.md +2 -2
- data/docs/TranscribeWebhook.md +62 -0
- data/docs/UpdateConferenceRequest.md +1 -1
- data/docs/Webhook.md +18 -0
- data/freeclimb.gemspec +1 -1
- data/lib/freeclimb/api/default_api.rb +18 -18
- data/lib/freeclimb/api_client.rb +1 -1
- data/lib/freeclimb/api_error.rb +1 -1
- data/lib/freeclimb/configuration.rb +2 -4
- data/lib/freeclimb/models/account_request.rb +1 -3
- data/lib/freeclimb/models/account_result.rb +23 -4
- data/lib/freeclimb/models/account_status.rb +1 -1
- data/lib/freeclimb/models/account_type.rb +1 -1
- data/lib/freeclimb/models/add_to_conference.rb +1 -4
- data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +384 -0
- data/lib/freeclimb/models/{conference_participant_result_all_of.rb → add_to_queue_notification_webhook.rb} +112 -59
- data/lib/freeclimb/models/answered_by.rb +1 -1
- data/lib/freeclimb/models/application_list.rb +1 -4
- data/lib/freeclimb/models/application_request.rb +1 -3
- data/lib/freeclimb/models/application_result.rb +1 -4
- data/lib/freeclimb/models/available_number.rb +1 -3
- data/lib/freeclimb/models/available_number_list.rb +1 -4
- data/lib/freeclimb/models/barge_in_reason.rb +38 -0
- data/lib/freeclimb/models/buy_incoming_number_request.rb +1 -3
- data/lib/freeclimb/models/{recording_result_all_of.rb → call_control_webhook.rb} +57 -45
- data/lib/freeclimb/models/call_direction.rb +1 -1
- data/lib/freeclimb/models/call_ended_reason.rb +58 -0
- data/lib/freeclimb/models/call_list.rb +1 -4
- data/lib/freeclimb/models/call_result.rb +23 -4
- data/lib/freeclimb/models/call_status.rb +1 -1
- data/lib/freeclimb/models/call_status_webhook.rb +354 -0
- data/lib/freeclimb/models/capabilities.rb +1 -3
- data/lib/freeclimb/models/completion_request.rb +1 -3
- data/lib/freeclimb/models/completion_result.rb +2 -15
- data/lib/freeclimb/models/completion_result_status.rb +37 -0
- data/lib/freeclimb/models/conference_list.rb +1 -4
- data/lib/freeclimb/models/conference_participant_list.rb +1 -4
- data/lib/freeclimb/models/conference_participant_result.rb +1 -4
- data/lib/freeclimb/models/conference_recording_status_webhook.rb +384 -0
- data/lib/freeclimb/models/conference_result.rb +23 -6
- data/lib/freeclimb/models/conference_status.rb +1 -1
- data/lib/freeclimb/models/conference_status_webhook.rb +387 -0
- data/lib/freeclimb/models/create_conference.rb +23 -6
- data/lib/freeclimb/models/create_conference_request.rb +23 -5
- data/lib/freeclimb/models/create_conference_webhook.rb +387 -0
- data/lib/freeclimb/models/create_web_rtc_token.rb +1 -3
- data/lib/freeclimb/models/dequeue.rb +3 -7
- data/lib/freeclimb/models/dequeue_webhook.rb +365 -0
- data/lib/freeclimb/models/enqueue.rb +1 -4
- data/lib/freeclimb/models/filter_logs_request.rb +1 -3
- data/lib/freeclimb/models/get_digits.rb +1 -4
- data/lib/freeclimb/models/get_digits_reason.rb +39 -0
- data/lib/freeclimb/models/get_digits_webhook.rb +373 -0
- data/lib/freeclimb/models/get_speech.rb +23 -4
- data/lib/freeclimb/models/get_speech_reason.rb +1 -1
- data/lib/freeclimb/models/get_speech_webhook.rb +423 -0
- data/lib/freeclimb/models/grammar_file_built_in.rb +1 -1
- data/lib/freeclimb/models/grammar_type.rb +1 -1
- data/lib/freeclimb/models/hangup.rb +1 -4
- data/lib/freeclimb/models/if_machine.rb +1 -1
- data/lib/freeclimb/models/inbound_call_webhook.rb +355 -0
- data/lib/freeclimb/models/incoming_number_list.rb +1 -4
- data/lib/freeclimb/models/incoming_number_request.rb +1 -3
- data/lib/freeclimb/models/incoming_number_result.rb +1 -4
- data/lib/freeclimb/models/language.rb +1 -1
- data/lib/freeclimb/models/{conference_result_all_of.rb → leave_conference_webhook.rb} +110 -89
- data/lib/freeclimb/models/log_level.rb +1 -1
- data/lib/freeclimb/models/log_list.rb +1 -4
- data/lib/freeclimb/models/log_result.rb +23 -3
- data/lib/freeclimb/models/{call_result_all_of.rb → machine_detected_webhook.rb} +96 -119
- data/lib/freeclimb/models/machine_type.rb +3 -3
- data/lib/freeclimb/models/make_call_request.rb +1 -3
- data/lib/freeclimb/models/{message_result_all_of.rb → message_delivery_webhook.rb} +71 -87
- data/lib/freeclimb/models/message_direction.rb +1 -1
- data/lib/freeclimb/models/message_request.rb +1 -4
- data/lib/freeclimb/models/message_result.rb +59 -9
- data/lib/freeclimb/models/message_status.rb +1 -1
- data/lib/freeclimb/models/{incoming_number_result_all_of.rb → message_status_webhook.rb} +117 -107
- data/lib/freeclimb/models/messages_list.rb +1 -4
- data/lib/freeclimb/models/mutable_resource_model.rb +1 -3
- data/lib/freeclimb/models/out_dial.rb +23 -4
- data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +355 -0
- data/lib/freeclimb/models/out_dial_connect_webhook.rb +355 -0
- data/lib/freeclimb/models/out_dial_start_webhook.rb +366 -0
- data/lib/freeclimb/models/pagination_model.rb +1 -3
- data/lib/freeclimb/models/park.rb +1 -4
- data/lib/freeclimb/models/pause.rb +1 -4
- data/lib/freeclimb/models/percl_command.rb +3 -5
- data/lib/freeclimb/models/percl_script.rb +2 -4
- data/lib/freeclimb/models/play.rb +2 -5
- data/lib/freeclimb/models/play_beep.rb +1 -1
- data/lib/freeclimb/models/play_early_media.rb +2 -5
- data/lib/freeclimb/models/queue_list.rb +2 -5
- data/lib/freeclimb/models/queue_member.rb +1 -3
- data/lib/freeclimb/models/queue_member_list.rb +2 -5
- data/lib/freeclimb/models/queue_request.rb +1 -3
- data/lib/freeclimb/models/queue_result.rb +2 -5
- data/lib/freeclimb/models/queue_result_status.rb +1 -1
- data/lib/freeclimb/models/queue_wait_webhook.rb +375 -0
- data/lib/freeclimb/models/record_utterance.rb +2 -5
- data/lib/freeclimb/models/record_utterance_term_reason.rb +1 -1
- data/lib/freeclimb/models/record_webhook.rb +424 -0
- data/lib/freeclimb/models/recording_list.rb +2 -5
- data/lib/freeclimb/models/recording_result.rb +2 -5
- data/lib/freeclimb/models/redirect.rb +2 -5
- data/lib/freeclimb/models/redirect_webhook.rb +355 -0
- data/lib/freeclimb/models/reject.rb +2 -5
- data/lib/freeclimb/models/remove_from_conference.rb +3 -7
- data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +364 -0
- data/lib/freeclimb/models/request_type.rb +1 -1
- data/lib/freeclimb/models/say.rb +2 -5
- data/lib/freeclimb/models/send_digits.rb +2 -5
- data/lib/freeclimb/models/set_dtmf_pass_through.rb +2 -5
- data/lib/freeclimb/models/set_listen.rb +2 -5
- data/lib/freeclimb/models/set_talk.rb +2 -5
- data/lib/freeclimb/models/sms.rb +2 -5
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +6 -67
- data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +39 -0
- data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +40 -0
- data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +39 -0
- data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +40 -0
- data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +62 -0
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +2 -5
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +2 -15
- data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +37 -0
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +2 -5
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +2 -15
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +1 -3
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +37 -0
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +2 -5
- data/lib/freeclimb/models/sms_toll_free_campaign.rb +2 -15
- data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +40 -0
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +2 -5
- data/lib/freeclimb/models/start_record_call.rb +3 -7
- data/lib/freeclimb/models/terminate_conference.rb +3 -7
- data/lib/freeclimb/models/tfn.rb +1 -3
- data/lib/freeclimb/models/{application_result_all_of.rb → tfn_campaign.rb} +129 -72
- data/lib/freeclimb/models/transcribe_reason.rb +40 -0
- data/lib/freeclimb/models/transcribe_term_reason.rb +37 -0
- data/lib/freeclimb/models/transcribe_utterance.rb +4 -7
- data/lib/freeclimb/models/{transcribe_utterance_all_of_record.rb → transcribe_utterance_record.rb} +8 -10
- data/lib/freeclimb/models/transcribe_webhook.rb +481 -0
- data/lib/freeclimb/models/unpark.rb +3 -7
- data/lib/freeclimb/models/update_call_request.rb +23 -3
- data/lib/freeclimb/models/update_call_request_status.rb +1 -1
- data/lib/freeclimb/models/update_conference_participant_request.rb +1 -3
- data/lib/freeclimb/models/update_conference_request.rb +23 -5
- data/lib/freeclimb/models/update_conference_request_status.rb +1 -1
- data/lib/freeclimb/models/{call_list_all_of.rb → webhook.rb} +18 -17
- data/lib/freeclimb/utils/request_verifier.rb +51 -51
- data/lib/freeclimb/utils/signature_information.rb +34 -34
- data/lib/freeclimb/version.rb +2 -2
- data/lib/freeclimb.rb +42 -49
- data/openapi.json +1756 -648
- data/package.json +3 -1
- data/spec/api/default_api_spec.rb +97 -149
- data/spec/factories.rb +78 -78
- data/spec/models/account_request_spec.rb +168 -19
- data/spec/models/account_result_spec.rb +878 -91
- data/spec/models/account_status_spec.rb +2 -1
- data/spec/models/account_type_spec.rb +2 -1
- data/spec/models/add_to_conference_notification_webhook_spec.rb +1515 -0
- data/spec/models/add_to_conference_spec.rb +725 -43
- data/spec/models/add_to_queue_notification_webhook_spec.rb +1106 -0
- data/spec/models/answered_by_spec.rb +2 -1
- data/spec/models/application_list_spec.rb +504 -41
- data/spec/models/application_request_spec.rb +553 -34
- data/spec/models/application_result_spec.rb +997 -52
- data/spec/models/available_number_list_spec.rb +504 -41
- data/spec/models/available_number_spec.rb +536 -49
- data/spec/models/barge_in_reason_spec.rb +78 -0
- data/spec/models/buy_incoming_number_request_spec.rb +245 -22
- data/spec/models/call_control_webhook_spec.rb +664 -0
- data/spec/models/call_direction_spec.rb +2 -1
- data/spec/models/call_ended_reason_spec.rb +398 -0
- data/spec/models/call_list_spec.rb +504 -41
- data/spec/models/call_result_spec.rb +1712 -272
- data/spec/models/call_status_spec.rb +2 -1
- data/spec/models/call_status_webhook_spec.rb +1292 -0
- data/spec/models/capabilities_spec.rb +309 -28
- data/spec/models/completion_request_spec.rb +89 -17
- data/spec/models/completion_result_spec.rb +184 -47
- data/spec/models/completion_result_status_spec.rb +62 -0
- data/spec/models/conference_list_spec.rb +504 -41
- data/spec/models/conference_participant_list_spec.rb +504 -41
- data/spec/models/conference_participant_result_spec.rb +804 -48
- data/spec/models/conference_recording_status_webhook_spec.rb +1515 -0
- data/spec/models/conference_result_spec.rb +1215 -224
- data/spec/models/conference_status_spec.rb +2 -1
- data/spec/models/conference_status_webhook_spec.rb +1515 -0
- data/spec/models/create_conference_request_spec.rb +391 -46
- data/spec/models/create_conference_spec.rb +450 -49
- data/spec/models/create_conference_webhook_spec.rb +1515 -0
- data/spec/models/create_web_rtc_token_spec.rb +227 -22
- data/spec/models/dequeue_spec.rb +2 -1
- data/spec/models/dequeue_webhook_spec.rb +1300 -0
- data/spec/models/enqueue_spec.rb +322 -25
- data/spec/models/filter_logs_request_spec.rb +91 -16
- data/spec/models/get_digits_reason_spec.rb +94 -0
- data/spec/models/get_digits_spec.rb +581 -44
- data/spec/models/get_digits_webhook_spec.rb +1426 -0
- data/spec/models/get_speech_reason_spec.rb +2 -1
- data/spec/models/get_speech_spec.rb +856 -69
- data/spec/models/get_speech_webhook_spec.rb +1927 -0
- data/spec/models/grammar_file_built_in_spec.rb +2 -1
- data/spec/models/grammar_type_spec.rb +2 -1
- data/spec/models/hangup_spec.rb +91 -16
- data/spec/models/if_machine_spec.rb +2 -1
- data/spec/models/inbound_call_webhook_spec.rb +1211 -0
- data/spec/models/incoming_number_list_spec.rb +504 -41
- data/spec/models/incoming_number_request_spec.rb +245 -22
- data/spec/models/incoming_number_result_spec.rb +1430 -235
- data/spec/models/language_spec.rb +2 -1
- data/spec/models/leave_conference_webhook_spec.rb +1106 -0
- data/spec/models/log_level_spec.rb +2 -1
- data/spec/models/log_list_spec.rb +504 -41
- data/spec/models/log_result_spec.rb +556 -57
- data/spec/models/machine_detected_webhook_spec.rb +1313 -0
- data/spec/models/machine_type_spec.rb +11 -10
- data/spec/models/make_call_request_spec.rb +749 -44
- data/spec/models/message_delivery_webhook_spec.rb +1189 -0
- data/spec/models/message_direction_spec.rb +2 -1
- data/spec/models/message_request_spec.rb +672 -41
- data/spec/models/message_result_spec.rb +1644 -204
- data/spec/models/message_status_spec.rb +2 -1
- data/spec/models/message_status_webhook_spec.rb +1327 -0
- data/spec/models/messages_list_spec.rb +504 -41
- data/spec/models/mutable_resource_model_spec.rb +304 -25
- data/spec/models/out_dial_api_connect_webhook_spec.rb +1211 -0
- data/spec/models/out_dial_connect_webhook_spec.rb +1211 -0
- data/spec/models/out_dial_spec.rb +759 -62
- data/spec/models/out_dial_start_webhook_spec.rb +1316 -0
- data/spec/models/pagination_model_spec.rb +445 -34
- data/spec/models/park_spec.rb +245 -22
- data/spec/models/pause_spec.rb +73 -16
- data/spec/models/percl_command_spec.rb +88 -16
- data/spec/models/percl_script_spec.rb +73 -20
- data/spec/models/play_beep_spec.rb +2 -1
- data/spec/models/play_early_media_spec.rb +91 -16
- data/spec/models/play_spec.rb +209 -22
- data/spec/models/queue_list_spec.rb +504 -41
- data/spec/models/queue_member_list_spec.rb +504 -41
- data/spec/models/queue_member_spec.rb +363 -28
- data/spec/models/queue_request_spec.rb +150 -19
- data/spec/models/queue_result_spec.rb +801 -52
- data/spec/models/queue_result_status_spec.rb +2 -1
- data/spec/models/queue_wait_webhook_spec.rb +1389 -0
- data/spec/models/record_utterance_spec.rb +463 -34
- data/spec/models/record_utterance_term_reason_spec.rb +2 -1
- data/spec/models/record_webhook_spec.rb +1917 -0
- data/spec/models/recording_list_spec.rb +504 -41
- data/spec/models/recording_result_spec.rb +672 -41
- data/spec/models/redirect_spec.rb +91 -16
- data/spec/models/redirect_webhook_spec.rb +1211 -0
- data/spec/models/reject_spec.rb +91 -16
- data/spec/models/remove_from_conference_spec.rb +2 -1
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +1305 -0
- data/spec/models/request_type_spec.rb +2 -1
- data/spec/models/say_spec.rb +286 -25
- data/spec/models/send_digits_spec.rb +209 -22
- data/spec/models/set_dtmf_pass_through_spec.rb +73 -16
- data/spec/models/set_listen_spec.rb +73 -16
- data/spec/models/set_talk_spec.rb +73 -16
- data/spec/models/sms_spec.rb +322 -25
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +94 -0
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +110 -0
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +94 -0
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +110 -0
- data/spec/models/sms_ten_dlc_brand_spec.rb +2585 -484
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +462 -0
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +504 -41
- data/spec/models/sms_ten_dlc_campaign_spec.rb +2604 -274
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +62 -0
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +504 -41
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +835 -55
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +2078 -166
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +62 -0
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +504 -41
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +110 -0
- data/spec/models/sms_toll_free_campaign_spec.rb +555 -71
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +504 -41
- data/spec/models/start_record_call_spec.rb +2 -1
- data/spec/models/terminate_conference_spec.rb +2 -1
- data/spec/models/tfn_campaign_spec.rb +1089 -0
- data/spec/models/tfn_spec.rb +91 -16
- data/spec/models/transcribe_reason_spec.rb +110 -0
- data/spec/models/transcribe_term_reason_spec.rb +62 -0
- data/spec/models/{transcribe_utterance_all_of_record_spec.rb → transcribe_utterance_record_spec.rb} +214 -45
- data/spec/models/transcribe_utterance_spec.rb +424 -47
- data/spec/models/transcribe_webhook_spec.rb +2418 -0
- data/spec/models/unpark_spec.rb +2 -1
- data/spec/models/update_call_request_spec.rb +101 -34
- data/spec/models/update_call_request_status_spec.rb +2 -1
- data/spec/models/update_conference_participant_request_spec.rb +219 -19
- data/spec/models/update_conference_request_spec.rb +265 -58
- data/spec/models/update_conference_request_status_spec.rb +2 -1
- data/spec/models/webhook_spec.rb +228 -0
- data/spec/quickstart_spec.rb +7 -7
- data/spec/spec_helper.rb +1 -1
- data/spec/utils/request_verifier_spec.rb +123 -123
- data/spec/utils/signature_information_spec.rb +36 -36
- data/yarn.lock +91 -91
- metadata +247 -186
- data/docs/AccountResultAllOf.md +0 -30
- data/docs/AddToConferenceAllOf.md +0 -36
- data/docs/ApplicationListAllOf.md +0 -18
- data/docs/ApplicationResultAllOf.md +0 -34
- data/docs/AvailableNumberListAllOf.md +0 -18
- data/docs/CallListAllOf.md +0 -18
- data/docs/CallResultAllOf.md +0 -48
- data/docs/ConferenceListAllOf.md +0 -18
- data/docs/ConferenceParticipantListAllOf.md +0 -18
- data/docs/ConferenceParticipantResultAllOf.md +0 -30
- data/docs/ConferenceResultAllOf.md +0 -36
- data/docs/CreateConferenceAllOf.md +0 -28
- data/docs/EnqueueAllOf.md +0 -24
- data/docs/GetDigitsAllOf.md +0 -34
- data/docs/GetSpeechAllOf.md +0 -42
- data/docs/HangupAllOf.md +0 -18
- data/docs/IncomingNumberListAllOf.md +0 -18
- data/docs/IncomingNumberResultAllOf.md +0 -42
- data/docs/LogListAllOf.md +0 -18
- data/docs/MessageRequestAllOf.md +0 -26
- data/docs/MessageResultAllOf.md +0 -40
- data/docs/MessagesListAllOf.md +0 -18
- data/docs/OutDialAllOf.md +0 -36
- data/docs/ParkAllOf.md +0 -22
- data/docs/PauseAllOf.md +0 -18
- data/docs/PlayAllOf.md +0 -22
- data/docs/PlayEarlyMediaAllOf.md +0 -18
- data/docs/QueueListAllOf.md +0 -18
- data/docs/QueueMemberListAllOf.md +0 -18
- data/docs/QueueResultAllOf.md +0 -30
- data/docs/RecordUtteranceAllOf.md +0 -30
- data/docs/RecordingListAllOf.md +0 -18
- data/docs/RecordingResultAllOf.md +0 -26
- data/docs/RedirectAllOf.md +0 -18
- data/docs/RejectAllOf.md +0 -18
- data/docs/RemoveFromConferenceAllOf.md +0 -18
- data/docs/SMSTenDLCBrandsListResultAllOf.md +0 -18
- data/docs/SMSTenDLCCampaignsListResultAllOf.md +0 -18
- data/docs/SMSTenDLCPartnerCampaignsListResultAllOf.md +0 -18
- data/docs/SMSTollFreeCampaignsListResultAllOf.md +0 -18
- data/docs/SayAllOf.md +0 -24
- data/docs/SendDigitsAllOf.md +0 -22
- data/docs/SetDTMFPassThroughAllOf.md +0 -18
- data/docs/SetListenAllOf.md +0 -18
- data/docs/SetTalkAllOf.md +0 -18
- data/docs/SmsAllOf.md +0 -24
- data/docs/TerminateConferenceAllOf.md +0 -18
- data/docs/TranscribeUtteranceAllOf.md +0 -28
- data/docs/TranscribeUtteranceAllOfRecord.md +0 -22
- data/lib/freeclimb/models/account_result_all_of.rb +0 -289
- data/lib/freeclimb/models/add_to_conference_all_of.rb +0 -318
- data/lib/freeclimb/models/application_list_all_of.rb +0 -226
- data/lib/freeclimb/models/available_number_list_all_of.rb +0 -226
- data/lib/freeclimb/models/conference_list_all_of.rb +0 -226
- data/lib/freeclimb/models/conference_participant_list_all_of.rb +0 -226
- data/lib/freeclimb/models/create_conference_all_of.rb +0 -280
- data/lib/freeclimb/models/enqueue_all_of.rb +0 -266
- data/lib/freeclimb/models/get_digits_all_of.rb +0 -310
- data/lib/freeclimb/models/get_speech_all_of.rb +0 -354
- data/lib/freeclimb/models/hangup_all_of.rb +0 -224
- data/lib/freeclimb/models/incoming_number_list_all_of.rb +0 -226
- data/lib/freeclimb/models/log_list_all_of.rb +0 -226
- data/lib/freeclimb/models/message_request_all_of.rb +0 -279
- data/lib/freeclimb/models/messages_list_all_of.rb +0 -227
- data/lib/freeclimb/models/out_dial_all_of.rb +0 -329
- data/lib/freeclimb/models/park_all_of.rb +0 -252
- data/lib/freeclimb/models/pause_all_of.rb +0 -228
- data/lib/freeclimb/models/play_all_of.rb +0 -248
- data/lib/freeclimb/models/play_early_media_all_of.rb +0 -228
- data/lib/freeclimb/models/queue_list_all_of.rb +0 -226
- data/lib/freeclimb/models/queue_member_list_all_of.rb +0 -226
- data/lib/freeclimb/models/queue_result_all_of.rb +0 -291
- data/lib/freeclimb/models/record_utterance_all_of.rb +0 -288
- data/lib/freeclimb/models/recording_list_all_of.rb +0 -226
- data/lib/freeclimb/models/redirect_all_of.rb +0 -228
- data/lib/freeclimb/models/reject_all_of.rb +0 -224
- data/lib/freeclimb/models/say_all_of.rb +0 -260
- data/lib/freeclimb/models/send_digits_all_of.rb +0 -248
- data/lib/freeclimb/models/set_dtmf_pass_through_all_of.rb +0 -224
- data/lib/freeclimb/models/set_listen_all_of.rb +0 -224
- data/lib/freeclimb/models/set_talk_all_of.rb +0 -224
- data/lib/freeclimb/models/sms_all_of.rb +0 -266
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result_all_of.rb +0 -226
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result_all_of.rb +0 -226
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result_all_of.rb +0 -226
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result_all_of.rb +0 -226
- data/lib/freeclimb/models/transcribe_utterance_all_of.rb +0 -281
@@ -6,13 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
|
+
include Freeclimb
|
16
17
|
|
17
18
|
# Unit tests for Freeclimb::GetSpeech
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -28,9 +29,12 @@ describe Freeclimb::GetSpeech do
|
|
28
29
|
|
29
30
|
describe 'test attribute "action_url"' do
|
30
31
|
it 'should work' do
|
32
|
+
|
31
33
|
instance.action_url = "TEST_STRING"
|
32
34
|
expect(instance.action_url).to eq("TEST_STRING")
|
33
35
|
|
36
|
+
|
37
|
+
|
34
38
|
end
|
35
39
|
end
|
36
40
|
|
@@ -45,20 +49,25 @@ describe Freeclimb::GetSpeech do
|
|
45
49
|
expect(instance.grammar_type).to eq(Freeclimb::GrammarType::BUILT_IN)
|
46
50
|
end
|
47
51
|
end
|
48
|
-
|
49
52
|
describe 'test attribute "grammar_file"' do
|
50
53
|
it 'should work' do
|
54
|
+
|
51
55
|
instance.grammar_file = "TEST_STRING"
|
52
56
|
expect(instance.grammar_file).to eq("TEST_STRING")
|
53
57
|
|
58
|
+
|
59
|
+
|
54
60
|
end
|
55
61
|
end
|
56
62
|
|
57
63
|
describe 'test attribute "grammar_rule"' do
|
58
64
|
it 'should work' do
|
65
|
+
|
59
66
|
instance.grammar_rule = "TEST_STRING"
|
60
67
|
expect(instance.grammar_rule).to eq("TEST_STRING")
|
61
68
|
|
69
|
+
|
70
|
+
|
62
71
|
end
|
63
72
|
end
|
64
73
|
|
@@ -67,6 +76,8 @@ describe Freeclimb::GetSpeech do
|
|
67
76
|
instance.play_beep = false
|
68
77
|
expect(instance.play_beep).to eq(false)
|
69
78
|
|
79
|
+
|
80
|
+
|
70
81
|
end
|
71
82
|
end
|
72
83
|
|
@@ -75,6 +86,8 @@ describe Freeclimb::GetSpeech do
|
|
75
86
|
|
76
87
|
instance.prompts = ["ELEMENT_1", "ELEMENT_2"]
|
77
88
|
expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"])
|
89
|
+
|
90
|
+
|
78
91
|
end
|
79
92
|
end
|
80
93
|
|
@@ -85,6 +98,8 @@ describe Freeclimb::GetSpeech do
|
|
85
98
|
instance.no_input_timeout_ms = 1
|
86
99
|
expect(instance.no_input_timeout_ms).to eq(1)
|
87
100
|
|
101
|
+
|
102
|
+
|
88
103
|
end
|
89
104
|
end
|
90
105
|
|
@@ -95,6 +110,8 @@ describe Freeclimb::GetSpeech do
|
|
95
110
|
instance.recognition_timeout_ms = 1
|
96
111
|
expect(instance.recognition_timeout_ms).to eq(1)
|
97
112
|
|
113
|
+
|
114
|
+
|
98
115
|
end
|
99
116
|
end
|
100
117
|
|
@@ -105,6 +122,8 @@ describe Freeclimb::GetSpeech do
|
|
105
122
|
instance.confidence_threshold = 1.0
|
106
123
|
expect(instance.confidence_threshold).to eq(1.0)
|
107
124
|
|
125
|
+
|
126
|
+
|
108
127
|
end
|
109
128
|
end
|
110
129
|
|
@@ -115,6 +134,8 @@ describe Freeclimb::GetSpeech do
|
|
115
134
|
instance.sensitivity_level = 1.0
|
116
135
|
expect(instance.sensitivity_level).to eq(1.0)
|
117
136
|
|
137
|
+
|
138
|
+
|
118
139
|
end
|
119
140
|
end
|
120
141
|
|
@@ -125,6 +146,8 @@ describe Freeclimb::GetSpeech do
|
|
125
146
|
instance.speech_complete_timeout_ms = 1
|
126
147
|
expect(instance.speech_complete_timeout_ms).to eq(1)
|
127
148
|
|
149
|
+
|
150
|
+
|
128
151
|
end
|
129
152
|
end
|
130
153
|
|
@@ -135,6 +158,8 @@ describe Freeclimb::GetSpeech do
|
|
135
158
|
instance.speech_incomplete_timeout_ms = 1
|
136
159
|
expect(instance.speech_incomplete_timeout_ms).to eq(1)
|
137
160
|
|
161
|
+
|
162
|
+
|
138
163
|
end
|
139
164
|
end
|
140
165
|
|
@@ -143,75 +168,249 @@ describe Freeclimb::GetSpeech do
|
|
143
168
|
instance.privacy_mode = false
|
144
169
|
expect(instance.privacy_mode).to eq(false)
|
145
170
|
|
171
|
+
|
172
|
+
|
146
173
|
end
|
147
174
|
end
|
148
175
|
|
149
176
|
describe 'test method "initialize"' do
|
150
177
|
it 'properly initializes with values' do
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
178
|
+
expect { instance = Freeclimb::GetSpeech.new(
|
179
|
+
|
180
|
+
action_url: "TS",
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
grammar_file: "TS",
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
grammar_rule: "TS",
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
play_beep: true,
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
prompts: Array.new(),
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
no_input_timeout_ms: 1,
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
recognition_timeout_ms: 1,
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
speech_complete_timeout_ms: 1,
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
speech_incomplete_timeout_ms: 1,
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
privacy_mode: true,
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
)}.not_to raise_error()
|
164
234
|
end
|
165
235
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::GetSpeech' do
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
236
|
+
expect { instance = Freeclimb::GetSpeech.new(
|
237
|
+
|
238
|
+
action_url: "TS",
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
grammar_file: "TS",
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
grammar_rule: "TS",
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
play_beep: true,
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
prompts: Array.new(),
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
no_input_timeout_ms: 1,
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
recognition_timeout_ms: 1,
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
speech_complete_timeout_ms: 1,
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
speech_incomplete_timeout_ms: 1,
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
privacy_mode: true,
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
invalid_attribute: true
|
292
|
+
)}.to raise_error(ArgumentError)
|
180
293
|
end
|
181
294
|
it 'fails to initialize with invalid attribute' do
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
295
|
+
expect { instance = Freeclimb::GetSpeech.new(
|
296
|
+
|
297
|
+
action_url: "TS",
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
grammar_file: "TS",
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
grammar_rule: "TS",
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
play_beep: true,
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
prompts: Array.new(),
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
no_input_timeout_ms: 1,
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
recognition_timeout_ms: 1,
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
speech_complete_timeout_ms: 1,
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
speech_incomplete_timeout_ms: 1,
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
privacy_mode: true,
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
invalid_attribute: true
|
351
|
+
)}.to raise_error(ArgumentError)
|
196
352
|
end
|
197
353
|
end
|
198
354
|
|
199
355
|
describe 'test method "valid"' do
|
200
356
|
it 'checks if properties are valid' do
|
201
357
|
instance = Freeclimb::GetSpeech.new(
|
358
|
+
|
202
359
|
action_url: "TS",
|
203
|
-
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
204
369
|
grammar_file: "TS",
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
205
374
|
grammar_rule: "TS",
|
375
|
+
|
376
|
+
|
377
|
+
|
206
378
|
play_beep: true,
|
379
|
+
|
380
|
+
|
381
|
+
|
207
382
|
prompts: Array.new(),
|
383
|
+
|
384
|
+
|
385
|
+
|
208
386
|
no_input_timeout_ms: 1,
|
387
|
+
|
388
|
+
|
389
|
+
|
209
390
|
recognition_timeout_ms: 1,
|
391
|
+
|
392
|
+
|
393
|
+
|
210
394
|
confidence_threshold: 1,
|
395
|
+
|
396
|
+
|
397
|
+
|
211
398
|
sensitivity_level: 1,
|
399
|
+
|
400
|
+
|
401
|
+
|
212
402
|
speech_complete_timeout_ms: 1,
|
403
|
+
|
404
|
+
|
405
|
+
|
213
406
|
speech_incomplete_timeout_ms: 1,
|
407
|
+
|
408
|
+
|
409
|
+
|
214
410
|
privacy_mode: true,
|
411
|
+
|
412
|
+
|
413
|
+
|
215
414
|
)
|
216
415
|
expect(instance.valid?).to eq(true)
|
217
416
|
end
|
@@ -228,70 +427,246 @@ describe Freeclimb::GetSpeech do
|
|
228
427
|
|
229
428
|
describe 'test method "eql?"' do
|
230
429
|
it 'checks if objects are equal' do
|
231
|
-
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
232
443
|
instance_1 = Freeclimb::GetSpeech.new(
|
444
|
+
|
233
445
|
action_url: "TS",
|
234
|
-
|
235
|
-
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
453
|
+
|
454
|
+
|
236
455
|
grammar_file: "TS",
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
|
237
460
|
grammar_rule: "TS",
|
461
|
+
|
462
|
+
|
463
|
+
|
238
464
|
play_beep: true,
|
239
|
-
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
240
470
|
prompts: [],
|
471
|
+
|
241
472
|
no_input_timeout_ms: 1,
|
473
|
+
|
474
|
+
|
475
|
+
|
242
476
|
recognition_timeout_ms: 1,
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
|
243
486
|
speech_complete_timeout_ms: 1,
|
487
|
+
|
488
|
+
|
489
|
+
|
244
490
|
speech_incomplete_timeout_ms: 1,
|
491
|
+
|
492
|
+
|
493
|
+
|
245
494
|
privacy_mode: true,
|
495
|
+
|
496
|
+
|
497
|
+
|
246
498
|
)
|
247
499
|
instance_2 = Freeclimb::GetSpeech.new(
|
500
|
+
|
248
501
|
action_url: "TS",
|
249
|
-
|
250
|
-
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
|
508
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
509
|
+
|
510
|
+
|
251
511
|
grammar_file: "TS",
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
|
252
516
|
grammar_rule: "TS",
|
517
|
+
|
518
|
+
|
519
|
+
|
253
520
|
play_beep: true,
|
254
|
-
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
|
255
526
|
prompts: [],
|
527
|
+
|
528
|
+
|
529
|
+
|
256
530
|
no_input_timeout_ms: 1,
|
531
|
+
|
532
|
+
|
533
|
+
|
257
534
|
recognition_timeout_ms: 1,
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
|
258
544
|
speech_complete_timeout_ms: 1,
|
545
|
+
|
546
|
+
|
547
|
+
|
259
548
|
speech_incomplete_timeout_ms: 1,
|
549
|
+
|
260
550
|
privacy_mode: true,
|
551
|
+
|
552
|
+
|
553
|
+
|
261
554
|
)
|
262
555
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
263
556
|
end
|
264
557
|
|
265
558
|
it 'checks if objects are not equal' do
|
266
559
|
instance_1 = Freeclimb::GetSpeech.new(
|
560
|
+
|
267
561
|
action_url: "TS",
|
268
|
-
|
269
|
-
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
569
|
+
|
570
|
+
|
270
571
|
grammar_file: "TS",
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
271
576
|
grammar_rule: "TS",
|
577
|
+
|
578
|
+
|
579
|
+
|
272
580
|
play_beep: true,
|
273
|
-
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
|
585
|
+
|
274
586
|
prompts: [],
|
587
|
+
|
275
588
|
no_input_timeout_ms: 2,
|
589
|
+
|
590
|
+
|
591
|
+
|
276
592
|
recognition_timeout_ms: 2,
|
593
|
+
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
|
601
|
+
|
277
602
|
speech_complete_timeout_ms: 2,
|
603
|
+
|
604
|
+
|
605
|
+
|
278
606
|
speech_incomplete_timeout_ms: 2,
|
607
|
+
|
608
|
+
|
609
|
+
|
279
610
|
privacy_mode: true,
|
611
|
+
|
612
|
+
|
613
|
+
|
280
614
|
)
|
281
615
|
instance_2 = Freeclimb::GetSpeech.new(
|
616
|
+
|
282
617
|
action_url: "ST",
|
283
|
-
|
284
|
-
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
grammar_type: nil,
|
625
|
+
|
626
|
+
|
285
627
|
grammar_file: "ST",
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
|
286
632
|
grammar_rule: "ST",
|
633
|
+
|
634
|
+
|
635
|
+
|
287
636
|
play_beep: false,
|
288
|
-
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
|
289
642
|
prompts: nil,
|
643
|
+
|
290
644
|
no_input_timeout_ms: 1,
|
645
|
+
|
646
|
+
|
647
|
+
|
291
648
|
recognition_timeout_ms: 1,
|
649
|
+
|
650
|
+
|
651
|
+
|
652
|
+
|
653
|
+
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
292
658
|
speech_complete_timeout_ms: 1,
|
659
|
+
|
660
|
+
|
661
|
+
|
293
662
|
speech_incomplete_timeout_ms: 1,
|
663
|
+
|
664
|
+
|
665
|
+
|
294
666
|
privacy_mode: false,
|
667
|
+
|
668
|
+
|
669
|
+
|
295
670
|
)
|
296
671
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
297
672
|
end
|
@@ -300,89 +675,300 @@ describe Freeclimb::GetSpeech do
|
|
300
675
|
describe 'test method "hash"' do
|
301
676
|
it 'calculates hash code' do
|
302
677
|
instance = Freeclimb::GetSpeech.new(
|
678
|
+
|
303
679
|
action_url: "TS",
|
304
|
-
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
|
305
689
|
grammar_file: "TS",
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
|
306
694
|
grammar_rule: "TS",
|
695
|
+
|
696
|
+
|
697
|
+
|
307
698
|
play_beep: true,
|
699
|
+
|
700
|
+
|
701
|
+
|
308
702
|
prompts: Array.new(),
|
703
|
+
|
704
|
+
|
705
|
+
|
309
706
|
no_input_timeout_ms: 1,
|
707
|
+
|
708
|
+
|
709
|
+
|
310
710
|
recognition_timeout_ms: 1,
|
311
|
-
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
|
720
|
+
speech_complete_timeout_ms: 1,
|
721
|
+
|
722
|
+
|
723
|
+
|
312
724
|
speech_incomplete_timeout_ms: 1,
|
725
|
+
|
726
|
+
|
727
|
+
|
313
728
|
privacy_mode: true,
|
729
|
+
|
730
|
+
|
731
|
+
|
314
732
|
)
|
315
|
-
|
733
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
316
734
|
end
|
317
735
|
end
|
318
736
|
|
319
737
|
describe 'test method "build_from_hash"' do
|
320
738
|
it 'builds equivalent model from hash code' do
|
321
739
|
instance_1 = Freeclimb::GetSpeech.new(
|
740
|
+
|
322
741
|
action_url: "TS",
|
323
|
-
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
|
746
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
747
|
+
|
748
|
+
|
749
|
+
|
750
|
+
|
324
751
|
grammar_file: "TS",
|
752
|
+
|
753
|
+
|
754
|
+
|
755
|
+
|
325
756
|
grammar_rule: "TS",
|
757
|
+
|
758
|
+
|
759
|
+
|
326
760
|
play_beep: true,
|
761
|
+
|
762
|
+
|
763
|
+
|
327
764
|
prompts: Array.new(),
|
765
|
+
|
766
|
+
|
767
|
+
|
328
768
|
no_input_timeout_ms: 1,
|
769
|
+
|
770
|
+
|
771
|
+
|
329
772
|
recognition_timeout_ms: 1,
|
773
|
+
|
774
|
+
|
775
|
+
|
776
|
+
|
777
|
+
|
778
|
+
|
779
|
+
|
780
|
+
|
781
|
+
|
330
782
|
speech_complete_timeout_ms: 1,
|
783
|
+
|
784
|
+
|
785
|
+
|
331
786
|
speech_incomplete_timeout_ms: 1,
|
787
|
+
|
788
|
+
|
789
|
+
|
332
790
|
privacy_mode: true,
|
791
|
+
|
792
|
+
|
793
|
+
|
333
794
|
)
|
334
|
-
instance_2 = Freeclimb::GetSpeech.new
|
795
|
+
instance_2 = Freeclimb::GetSpeech.new(
|
796
|
+
|
797
|
+
action_url: "TS",
|
798
|
+
|
799
|
+
|
800
|
+
|
801
|
+
|
802
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
803
|
+
|
804
|
+
|
805
|
+
|
806
|
+
|
807
|
+
grammar_file: "TS",
|
808
|
+
|
809
|
+
|
810
|
+
|
811
|
+
|
812
|
+
grammar_rule: "TS",
|
813
|
+
|
814
|
+
|
815
|
+
|
816
|
+
play_beep: true,
|
817
|
+
|
818
|
+
|
819
|
+
|
820
|
+
prompts: Array.new(),
|
821
|
+
|
822
|
+
|
823
|
+
|
824
|
+
no_input_timeout_ms: 1,
|
825
|
+
|
826
|
+
|
827
|
+
|
828
|
+
recognition_timeout_ms: 1,
|
829
|
+
|
830
|
+
|
831
|
+
|
832
|
+
|
833
|
+
|
834
|
+
|
835
|
+
|
836
|
+
|
837
|
+
|
838
|
+
speech_complete_timeout_ms: 1,
|
839
|
+
|
840
|
+
|
841
|
+
|
842
|
+
speech_incomplete_timeout_ms: 1,
|
843
|
+
|
844
|
+
|
845
|
+
|
846
|
+
privacy_mode: true,
|
847
|
+
|
848
|
+
|
849
|
+
|
850
|
+
)
|
851
|
+
|
335
852
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
336
853
|
end
|
337
854
|
end
|
338
855
|
|
339
856
|
describe 'test method "_deserialize"' do
|
340
857
|
instance = Freeclimb::GetSpeech.new(
|
858
|
+
|
341
859
|
action_url: "TS",
|
342
|
-
|
860
|
+
|
861
|
+
|
862
|
+
|
863
|
+
|
864
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
865
|
+
|
866
|
+
|
867
|
+
|
868
|
+
|
343
869
|
grammar_file: "TS",
|
870
|
+
|
871
|
+
|
872
|
+
|
873
|
+
|
344
874
|
grammar_rule: "TS",
|
875
|
+
|
876
|
+
|
877
|
+
|
345
878
|
play_beep: true,
|
879
|
+
|
880
|
+
|
881
|
+
|
346
882
|
prompts: Array.new(),
|
883
|
+
|
884
|
+
|
885
|
+
|
347
886
|
no_input_timeout_ms: 1,
|
887
|
+
|
888
|
+
|
889
|
+
|
348
890
|
recognition_timeout_ms: 1,
|
891
|
+
|
892
|
+
|
893
|
+
|
894
|
+
|
895
|
+
|
896
|
+
|
897
|
+
|
898
|
+
|
899
|
+
|
349
900
|
speech_complete_timeout_ms: 1,
|
901
|
+
|
902
|
+
|
903
|
+
|
350
904
|
speech_incomplete_timeout_ms: 1,
|
905
|
+
|
906
|
+
|
907
|
+
|
351
908
|
privacy_mode: true,
|
909
|
+
|
910
|
+
|
911
|
+
|
352
912
|
)
|
353
913
|
it 'deserializes the data of action_url' do
|
354
914
|
expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String)
|
355
915
|
end
|
916
|
+
|
917
|
+
|
918
|
+
|
919
|
+
|
356
920
|
it 'deserializes the data of grammar_file' do
|
357
921
|
expect(instance._deserialize("String", instance.grammar_file)).to be_a_kind_of(String)
|
358
922
|
end
|
923
|
+
|
924
|
+
|
359
925
|
it 'deserializes the data of grammar_rule' do
|
360
926
|
expect(instance._deserialize("String", instance.grammar_rule)).to be_a_kind_of(String)
|
361
927
|
end
|
928
|
+
|
929
|
+
|
930
|
+
|
931
|
+
|
362
932
|
it 'deserializes the data of play_beep' do
|
363
933
|
expect(instance._deserialize("Boolean", instance.play_beep)).to be_a_kind_of(TrueClass)
|
364
934
|
end
|
365
935
|
it 'deserializes the data of prompts' do
|
366
936
|
expect(instance._deserialize("Array<PerclCommand>", instance.prompts)).to be_a_kind_of(Array)
|
367
937
|
end
|
938
|
+
|
939
|
+
|
368
940
|
it 'deserializes the data of no_input_timeout_ms' do
|
369
941
|
expect(instance._deserialize("Integer", instance.no_input_timeout_ms)).to be_a_kind_of(Integer)
|
370
942
|
end
|
943
|
+
|
944
|
+
|
371
945
|
it 'deserializes the data of recognition_timeout_ms' do
|
372
946
|
expect(instance._deserialize("Integer", instance.recognition_timeout_ms)).to be_a_kind_of(Integer)
|
373
947
|
end
|
948
|
+
|
949
|
+
|
374
950
|
it 'deserializes the data of confidence_threshold' do
|
375
951
|
expect(instance._deserialize("Float", instance.confidence_threshold)).to be_a_kind_of(Float)
|
376
952
|
end
|
953
|
+
|
954
|
+
|
377
955
|
it 'deserializes the data of sensitivity_level' do
|
378
956
|
expect(instance._deserialize("Float", instance.sensitivity_level)).to be_a_kind_of(Float)
|
379
957
|
end
|
958
|
+
|
959
|
+
|
380
960
|
it 'deserializes the data of speech_complete_timeout_ms' do
|
381
961
|
expect(instance._deserialize("Integer", instance.speech_complete_timeout_ms)).to be_a_kind_of(Integer)
|
382
962
|
end
|
963
|
+
|
964
|
+
|
383
965
|
it 'deserializes the data of speech_incomplete_timeout_ms' do
|
384
966
|
expect(instance._deserialize("Integer", instance.speech_incomplete_timeout_ms)).to be_a_kind_of(Integer)
|
385
967
|
end
|
968
|
+
|
969
|
+
|
970
|
+
|
971
|
+
|
386
972
|
it 'deserializes the data of privacy_mode' do
|
387
973
|
expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
|
388
974
|
end
|
@@ -391,17 +977,60 @@ describe Freeclimb::GetSpeech do
|
|
391
977
|
describe 'test method "to_s"' do
|
392
978
|
it 'returns the string representation of the object' do
|
393
979
|
instance = Freeclimb::GetSpeech.new(
|
980
|
+
|
394
981
|
action_url: "TS",
|
395
|
-
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
987
|
+
|
988
|
+
|
989
|
+
|
990
|
+
|
396
991
|
grammar_file: "TS",
|
992
|
+
|
993
|
+
|
994
|
+
|
995
|
+
|
397
996
|
grammar_rule: "TS",
|
997
|
+
|
998
|
+
|
999
|
+
|
398
1000
|
play_beep: true,
|
1001
|
+
|
1002
|
+
|
1003
|
+
|
399
1004
|
prompts: Array.new(),
|
1005
|
+
|
1006
|
+
|
1007
|
+
|
400
1008
|
no_input_timeout_ms: 1,
|
1009
|
+
|
1010
|
+
|
1011
|
+
|
401
1012
|
recognition_timeout_ms: 1,
|
1013
|
+
|
1014
|
+
|
1015
|
+
|
1016
|
+
|
1017
|
+
|
1018
|
+
|
1019
|
+
|
1020
|
+
|
1021
|
+
|
402
1022
|
speech_complete_timeout_ms: 1,
|
1023
|
+
|
1024
|
+
|
1025
|
+
|
403
1026
|
speech_incomplete_timeout_ms: 1,
|
1027
|
+
|
1028
|
+
|
1029
|
+
|
404
1030
|
privacy_mode: true,
|
1031
|
+
|
1032
|
+
|
1033
|
+
|
405
1034
|
)
|
406
1035
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
407
1036
|
end
|
@@ -410,47 +1039,188 @@ describe Freeclimb::GetSpeech do
|
|
410
1039
|
describe 'test method "to_hash"' do
|
411
1040
|
it 'returns the object in the form of hash' do
|
412
1041
|
instance = Freeclimb::GetSpeech.new(
|
1042
|
+
|
413
1043
|
action_url: "TS",
|
414
|
-
|
1044
|
+
|
1045
|
+
|
1046
|
+
|
1047
|
+
|
1048
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
415
1053
|
grammar_file: "TS",
|
1054
|
+
|
1055
|
+
|
1056
|
+
|
1057
|
+
|
416
1058
|
grammar_rule: "TS",
|
1059
|
+
|
1060
|
+
|
1061
|
+
|
417
1062
|
play_beep: true,
|
1063
|
+
|
1064
|
+
|
1065
|
+
|
418
1066
|
prompts: Array.new(),
|
1067
|
+
|
1068
|
+
|
1069
|
+
|
419
1070
|
no_input_timeout_ms: 1,
|
1071
|
+
|
1072
|
+
|
1073
|
+
|
420
1074
|
recognition_timeout_ms: 1,
|
1075
|
+
|
1076
|
+
|
1077
|
+
|
1078
|
+
|
1079
|
+
|
1080
|
+
|
1081
|
+
|
1082
|
+
|
1083
|
+
|
421
1084
|
speech_complete_timeout_ms: 1,
|
1085
|
+
|
1086
|
+
|
1087
|
+
|
422
1088
|
speech_incomplete_timeout_ms: 1,
|
1089
|
+
|
1090
|
+
|
1091
|
+
|
423
1092
|
privacy_mode: true,
|
1093
|
+
|
1094
|
+
|
1095
|
+
|
424
1096
|
)
|
425
1097
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
426
1098
|
end
|
427
1099
|
it 'creates equal hash for two equal objects' do
|
428
|
-
|
1100
|
+
|
1101
|
+
|
1102
|
+
|
1103
|
+
|
1104
|
+
|
1105
|
+
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
1109
|
+
|
1110
|
+
|
1111
|
+
|
1112
|
+
|
429
1113
|
instance_1 = Freeclimb::GetSpeech.new(
|
1114
|
+
|
430
1115
|
action_url: "TS",
|
431
|
-
|
1116
|
+
|
1117
|
+
|
1118
|
+
|
1119
|
+
|
1120
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
432
1125
|
grammar_file: "TS",
|
1126
|
+
|
1127
|
+
|
1128
|
+
|
1129
|
+
|
433
1130
|
grammar_rule: "TS",
|
1131
|
+
|
1132
|
+
|
1133
|
+
|
434
1134
|
play_beep: true,
|
1135
|
+
|
1136
|
+
|
1137
|
+
|
435
1138
|
prompts: Array.new(),
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
436
1142
|
no_input_timeout_ms: 1,
|
1143
|
+
|
1144
|
+
|
1145
|
+
|
437
1146
|
recognition_timeout_ms: 1,
|
1147
|
+
|
1148
|
+
|
1149
|
+
|
1150
|
+
|
1151
|
+
|
1152
|
+
|
1153
|
+
|
1154
|
+
|
1155
|
+
|
438
1156
|
speech_complete_timeout_ms: 1,
|
1157
|
+
|
1158
|
+
|
1159
|
+
|
439
1160
|
speech_incomplete_timeout_ms: 1,
|
1161
|
+
|
1162
|
+
|
1163
|
+
|
440
1164
|
privacy_mode: true,
|
1165
|
+
|
1166
|
+
|
1167
|
+
|
441
1168
|
)
|
442
1169
|
instance_2 = Freeclimb::GetSpeech.new(
|
1170
|
+
|
443
1171
|
action_url: "TS",
|
444
|
-
|
1172
|
+
|
1173
|
+
|
1174
|
+
|
1175
|
+
|
1176
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
1177
|
+
|
1178
|
+
|
1179
|
+
|
1180
|
+
|
445
1181
|
grammar_file: "TS",
|
1182
|
+
|
1183
|
+
|
1184
|
+
|
1185
|
+
|
446
1186
|
grammar_rule: "TS",
|
1187
|
+
|
1188
|
+
|
1189
|
+
|
447
1190
|
play_beep: true,
|
1191
|
+
|
1192
|
+
|
1193
|
+
|
448
1194
|
prompts: Array.new(),
|
1195
|
+
|
1196
|
+
|
1197
|
+
|
449
1198
|
no_input_timeout_ms: 1,
|
1199
|
+
|
1200
|
+
|
1201
|
+
|
450
1202
|
recognition_timeout_ms: 1,
|
1203
|
+
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
|
1208
|
+
|
1209
|
+
|
1210
|
+
|
1211
|
+
|
451
1212
|
speech_complete_timeout_ms: 1,
|
1213
|
+
|
1214
|
+
|
1215
|
+
|
452
1216
|
speech_incomplete_timeout_ms: 1,
|
1217
|
+
|
1218
|
+
|
1219
|
+
|
453
1220
|
privacy_mode: true,
|
1221
|
+
|
1222
|
+
|
1223
|
+
|
454
1224
|
)
|
455
1225
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
456
1226
|
end
|
@@ -458,29 +1228,46 @@ describe Freeclimb::GetSpeech do
|
|
458
1228
|
|
459
1229
|
describe 'test method "_to_hash"' do
|
460
1230
|
instance = Freeclimb::GetSpeech.new(
|
1231
|
+
|
461
1232
|
action_url: "TS",
|
1233
|
+
|
462
1234
|
|
463
|
-
|
1235
|
+
|
1236
|
+
grammar_type: Freeclimb::GrammarType::URL,
|
1237
|
+
|
464
1238
|
|
1239
|
+
|
465
1240
|
grammar_file: "TS",
|
1241
|
+
|
466
1242
|
|
1243
|
+
|
467
1244
|
grammar_rule: "TS",
|
1245
|
+
|
468
1246
|
|
469
1247
|
play_beep: true,
|
1248
|
+
|
470
1249
|
|
471
1250
|
prompts: Array.new(),
|
1251
|
+
|
472
1252
|
|
473
1253
|
no_input_timeout_ms: 1,
|
1254
|
+
|
474
1255
|
|
475
1256
|
recognition_timeout_ms: 1,
|
1257
|
+
|
476
1258
|
|
1259
|
+
|
477
1260
|
|
1261
|
+
|
478
1262
|
|
479
1263
|
speech_complete_timeout_ms: 1,
|
1264
|
+
|
480
1265
|
|
481
1266
|
speech_incomplete_timeout_ms: 1,
|
1267
|
+
|
482
1268
|
|
483
1269
|
privacy_mode: true,
|
1270
|
+
|
484
1271
|
)
|
485
1272
|
it 'returns action_url in the form of hash' do
|
486
1273
|
expect(instance._to_hash(instance.action_url)).to eq(instance.action_url)
|