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
data/lib/freeclimb/models/{transcribe_utterance_all_of_record.rb → transcribe_utterance_record.rb}
RENAMED
@@ -6,7 +6,7 @@
|
|
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
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Freeclimb
|
17
|
-
class
|
17
|
+
class TranscribeUtteranceRecord
|
18
18
|
attr_accessor :save_recording
|
19
19
|
|
20
20
|
attr_accessor :max_length_sec
|
@@ -54,13 +54,13 @@ module Freeclimb
|
|
54
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
55
|
def initialize(attributes = {})
|
56
56
|
if (!attributes.is_a?(Hash))
|
57
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::TranscribeUtteranceRecord` initialize method"
|
58
58
|
end
|
59
59
|
|
60
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
61
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::TranscribeUtteranceRecord`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
64
|
end
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
@@ -98,8 +98,8 @@ module Freeclimb
|
|
98
98
|
invalid_properties.push('invalid value for "rcrd_termination_silence_time_ms", must be smaller than or equal to 3000.')
|
99
99
|
end
|
100
100
|
|
101
|
-
if !@rcrd_termination_silence_time_ms.nil? && @rcrd_termination_silence_time_ms
|
102
|
-
invalid_properties.push('invalid value for "rcrd_termination_silence_time_ms", must be greater than
|
101
|
+
if !@rcrd_termination_silence_time_ms.nil? && @rcrd_termination_silence_time_ms < 1
|
102
|
+
invalid_properties.push('invalid value for "rcrd_termination_silence_time_ms", must be greater than or equal to 1.')
|
103
103
|
end
|
104
104
|
|
105
105
|
invalid_properties
|
@@ -137,8 +137,8 @@ module Freeclimb
|
|
137
137
|
fail ArgumentError, 'invalid value for "rcrd_termination_silence_time_ms", must be smaller than or equal to 3000.'
|
138
138
|
end
|
139
139
|
|
140
|
-
if !rcrd_termination_silence_time_ms.nil? && rcrd_termination_silence_time_ms
|
141
|
-
fail ArgumentError, 'invalid value for "rcrd_termination_silence_time_ms", must be greater than
|
140
|
+
if !rcrd_termination_silence_time_ms.nil? && rcrd_termination_silence_time_ms < 1
|
141
|
+
fail ArgumentError, 'invalid value for "rcrd_termination_silence_time_ms", must be greater than or equal to 1.'
|
142
142
|
end
|
143
143
|
|
144
144
|
@rcrd_termination_silence_time_ms = rcrd_termination_silence_time_ms
|
@@ -283,7 +283,5 @@ module Freeclimb
|
|
283
283
|
value
|
284
284
|
end
|
285
285
|
end
|
286
|
-
|
287
286
|
end
|
288
|
-
|
289
287
|
end
|
@@ -0,0 +1,481 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@freeclimb.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Freeclimb
|
17
|
+
class TranscribeWebhook < Webhook
|
18
|
+
def self.deserialize(payload)
|
19
|
+
return nil if payload.nil? || payload.empty?
|
20
|
+
data = JSON.parse("[#{payload}]")[0]
|
21
|
+
inverted_attributes = self.attribute_map.invert
|
22
|
+
hash = self.acceptable_attributes.uniq.map { |k| [inverted_attributes[k], data[k.to_s]] }.to_h
|
23
|
+
TranscribeWebhook.new(hash)
|
24
|
+
end
|
25
|
+
# The context or reason why this request is being made. Will be transcribe - The TranscribeUtterance command has completed and its actionUrl is being invoked.
|
26
|
+
attr_accessor :request_type
|
27
|
+
|
28
|
+
# Account ID associated with your account.
|
29
|
+
attr_accessor :account_id
|
30
|
+
|
31
|
+
# Unique identifier for this Call, generated by FreeClimb
|
32
|
+
attr_accessor :call_id
|
33
|
+
|
34
|
+
# Phone number of the party that initiated the Call (in E.164 format).
|
35
|
+
attr_accessor :from
|
36
|
+
|
37
|
+
# Phone number provisioned to the customer and to which this Call is directed (in E.164 format).
|
38
|
+
attr_accessor :to
|
39
|
+
|
40
|
+
# The ID of the recording. If no recording was made due to errors or the 'saveRecording' flag being disabled this field will be set to null.
|
41
|
+
attr_accessor :recording_id
|
42
|
+
|
43
|
+
# The URL of the recorded audio file. This URL can be used as is in a Play command to play the recording (no authentication needed). It can also be used to download the recording file via the REST API.
|
44
|
+
attr_accessor :recording_url
|
45
|
+
|
46
|
+
# The size of the recording in bytes.
|
47
|
+
attr_accessor :recording_size
|
48
|
+
|
49
|
+
# The media type of the recording.
|
50
|
+
attr_accessor :recording_format
|
51
|
+
|
52
|
+
# The duration of the recorded audio in milliseconds.
|
53
|
+
attr_accessor :recording_duration_ms
|
54
|
+
|
55
|
+
attr_accessor :term_reason
|
56
|
+
|
57
|
+
attr_accessor :record_term_reason
|
58
|
+
|
59
|
+
# If recordTermReason is digit, this will be the digit that was pressed. Otherwise it will be null.
|
60
|
+
attr_accessor :digit
|
61
|
+
|
62
|
+
# Echo back of the privacyForLogging flag as specified in the transcribe utterance command – confirmation of logging protection has been applied. Can be used by application to know it should also apply protection when handling this request.
|
63
|
+
attr_accessor :privacy_for_logging
|
64
|
+
|
65
|
+
# Echo back of the privacyForRecording flag as specified in the transcribe utterance command – confirmation of logging protection has been applied. Can be used by application to know it should also apply protection when handling this request.
|
66
|
+
attr_accessor :privacy_for_recording
|
67
|
+
|
68
|
+
attr_accessor :barge_in_reason
|
69
|
+
|
70
|
+
attr_accessor :barged_in_prompt_no
|
71
|
+
|
72
|
+
# duration in ms bargedInPromptNo prompt was executing until barge-in occurred.
|
73
|
+
attr_accessor :barged_in_prompt_ms
|
74
|
+
|
75
|
+
attr_accessor :barged_in_prompt_loop_no
|
76
|
+
|
77
|
+
# epoch time in ms
|
78
|
+
attr_accessor :barge_in_time_ms
|
79
|
+
|
80
|
+
# Transcribed text of the recording. Can be empty or null. null means there was a failure in transcribing the audio, refer to transcribeReason for detailed failure reason.
|
81
|
+
attr_accessor :transcript
|
82
|
+
|
83
|
+
attr_accessor :transcribe_reason
|
84
|
+
|
85
|
+
# The duration of the audio being transcribed in milliseconds
|
86
|
+
attr_accessor :transcription_duration_ms
|
87
|
+
|
88
|
+
class EnumAttributeValidator
|
89
|
+
attr_reader :datatype
|
90
|
+
attr_reader :allowable_values
|
91
|
+
|
92
|
+
def initialize(datatype, allowable_values)
|
93
|
+
@allowable_values = allowable_values.map do |value|
|
94
|
+
case datatype.to_s
|
95
|
+
when /Integer/i
|
96
|
+
value.to_i
|
97
|
+
when /Float/i
|
98
|
+
value.to_f
|
99
|
+
else
|
100
|
+
value
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
def valid?(value)
|
106
|
+
!value || allowable_values.include?(value)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
111
|
+
def self.attribute_map
|
112
|
+
{
|
113
|
+
:'request_type' => :'requestType',
|
114
|
+
:'account_id' => :'accountId',
|
115
|
+
:'call_id' => :'callId',
|
116
|
+
:'from' => :'from',
|
117
|
+
:'to' => :'to',
|
118
|
+
:'recording_id' => :'recordingId',
|
119
|
+
:'recording_url' => :'recordingUrl',
|
120
|
+
:'recording_size' => :'recordingSize',
|
121
|
+
:'recording_format' => :'recordingFormat',
|
122
|
+
:'recording_duration_ms' => :'recordingDurationMs',
|
123
|
+
:'term_reason' => :'termReason',
|
124
|
+
:'record_term_reason' => :'recordTermReason',
|
125
|
+
:'digit' => :'digit',
|
126
|
+
:'privacy_for_logging' => :'privacyForLogging',
|
127
|
+
:'privacy_for_recording' => :'privacyForRecording',
|
128
|
+
:'barge_in_reason' => :'bargeInReason',
|
129
|
+
:'barged_in_prompt_no' => :'bargedInPromptNo',
|
130
|
+
:'barged_in_prompt_ms' => :'bargedInPromptMs',
|
131
|
+
:'barged_in_prompt_loop_no' => :'bargedInPromptLoopNo',
|
132
|
+
:'barge_in_time_ms' => :'bargeInTimeMs',
|
133
|
+
:'transcript' => :'transcript',
|
134
|
+
:'transcribe_reason' => :'transcribeReason',
|
135
|
+
:'transcription_duration_ms' => :'transcriptionDurationMs'
|
136
|
+
}
|
137
|
+
end
|
138
|
+
|
139
|
+
# Returns all the JSON keys this model knows about, including the ones defined in its parent(s)
|
140
|
+
def self.acceptable_attributes
|
141
|
+
attribute_map.values.concat(superclass.acceptable_attributes)
|
142
|
+
end
|
143
|
+
|
144
|
+
# Attribute type mapping.
|
145
|
+
def self.openapi_types
|
146
|
+
{
|
147
|
+
:'request_type' => :'String',
|
148
|
+
:'account_id' => :'String',
|
149
|
+
:'call_id' => :'String',
|
150
|
+
:'from' => :'String',
|
151
|
+
:'to' => :'String',
|
152
|
+
:'recording_id' => :'String',
|
153
|
+
:'recording_url' => :'String',
|
154
|
+
:'recording_size' => :'Integer',
|
155
|
+
:'recording_format' => :'String',
|
156
|
+
:'recording_duration_ms' => :'Integer',
|
157
|
+
:'term_reason' => :'TranscribeTermReason',
|
158
|
+
:'record_term_reason' => :'RecordUtteranceTermReason',
|
159
|
+
:'digit' => :'String',
|
160
|
+
:'privacy_for_logging' => :'Boolean',
|
161
|
+
:'privacy_for_recording' => :'Boolean',
|
162
|
+
:'barge_in_reason' => :'BargeInReason',
|
163
|
+
:'barged_in_prompt_no' => :'Integer',
|
164
|
+
:'barged_in_prompt_ms' => :'Integer',
|
165
|
+
:'barged_in_prompt_loop_no' => :'Integer',
|
166
|
+
:'barge_in_time_ms' => :'Integer',
|
167
|
+
:'transcript' => :'String',
|
168
|
+
:'transcribe_reason' => :'TranscribeReason',
|
169
|
+
:'transcription_duration_ms' => :'Integer'
|
170
|
+
}
|
171
|
+
end
|
172
|
+
|
173
|
+
# List of attributes with nullable: true
|
174
|
+
def self.openapi_nullable
|
175
|
+
Set.new([
|
176
|
+
:'recording_id',
|
177
|
+
:'recording_url',
|
178
|
+
:'recording_format',
|
179
|
+
:'digit',
|
180
|
+
:'transcript',
|
181
|
+
])
|
182
|
+
end
|
183
|
+
|
184
|
+
# List of class defined in allOf (OpenAPI v3)
|
185
|
+
def self.openapi_all_of
|
186
|
+
[
|
187
|
+
:'Webhook'
|
188
|
+
]
|
189
|
+
end
|
190
|
+
|
191
|
+
# Initializes the object
|
192
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
193
|
+
def initialize(attributes = {})
|
194
|
+
if (!attributes.is_a?(Hash))
|
195
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::TranscribeWebhook` initialize method"
|
196
|
+
end
|
197
|
+
|
198
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
199
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
200
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
201
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::TranscribeWebhook`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
202
|
+
end
|
203
|
+
h[k.to_sym] = v
|
204
|
+
}
|
205
|
+
|
206
|
+
# call parent's initialize
|
207
|
+
super(attributes)
|
208
|
+
|
209
|
+
if attributes.key?(:'request_type')
|
210
|
+
self.request_type = attributes[:'request_type']
|
211
|
+
end
|
212
|
+
|
213
|
+
if attributes.key?(:'account_id')
|
214
|
+
self.account_id = attributes[:'account_id']
|
215
|
+
end
|
216
|
+
|
217
|
+
if attributes.key?(:'call_id')
|
218
|
+
self.call_id = attributes[:'call_id']
|
219
|
+
end
|
220
|
+
|
221
|
+
if attributes.key?(:'from')
|
222
|
+
self.from = attributes[:'from']
|
223
|
+
end
|
224
|
+
|
225
|
+
if attributes.key?(:'to')
|
226
|
+
self.to = attributes[:'to']
|
227
|
+
end
|
228
|
+
|
229
|
+
if attributes.key?(:'recording_id')
|
230
|
+
self.recording_id = attributes[:'recording_id']
|
231
|
+
end
|
232
|
+
|
233
|
+
if attributes.key?(:'recording_url')
|
234
|
+
self.recording_url = attributes[:'recording_url']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes.key?(:'recording_size')
|
238
|
+
self.recording_size = attributes[:'recording_size']
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes.key?(:'recording_format')
|
242
|
+
self.recording_format = attributes[:'recording_format']
|
243
|
+
end
|
244
|
+
|
245
|
+
if attributes.key?(:'recording_duration_ms')
|
246
|
+
self.recording_duration_ms = attributes[:'recording_duration_ms']
|
247
|
+
end
|
248
|
+
|
249
|
+
if attributes.key?(:'term_reason')
|
250
|
+
self.term_reason = attributes[:'term_reason']
|
251
|
+
end
|
252
|
+
|
253
|
+
if attributes.key?(:'record_term_reason')
|
254
|
+
self.record_term_reason = attributes[:'record_term_reason']
|
255
|
+
end
|
256
|
+
|
257
|
+
if attributes.key?(:'digit')
|
258
|
+
self.digit = attributes[:'digit']
|
259
|
+
end
|
260
|
+
|
261
|
+
if attributes.key?(:'privacy_for_logging')
|
262
|
+
self.privacy_for_logging = attributes[:'privacy_for_logging']
|
263
|
+
end
|
264
|
+
|
265
|
+
if attributes.key?(:'privacy_for_recording')
|
266
|
+
self.privacy_for_recording = attributes[:'privacy_for_recording']
|
267
|
+
end
|
268
|
+
|
269
|
+
if attributes.key?(:'barge_in_reason')
|
270
|
+
self.barge_in_reason = attributes[:'barge_in_reason']
|
271
|
+
end
|
272
|
+
|
273
|
+
if attributes.key?(:'barged_in_prompt_no')
|
274
|
+
self.barged_in_prompt_no = attributes[:'barged_in_prompt_no']
|
275
|
+
end
|
276
|
+
|
277
|
+
if attributes.key?(:'barged_in_prompt_ms')
|
278
|
+
self.barged_in_prompt_ms = attributes[:'barged_in_prompt_ms']
|
279
|
+
end
|
280
|
+
|
281
|
+
if attributes.key?(:'barged_in_prompt_loop_no')
|
282
|
+
self.barged_in_prompt_loop_no = attributes[:'barged_in_prompt_loop_no']
|
283
|
+
end
|
284
|
+
|
285
|
+
if attributes.key?(:'barge_in_time_ms')
|
286
|
+
self.barge_in_time_ms = attributes[:'barge_in_time_ms']
|
287
|
+
end
|
288
|
+
|
289
|
+
if attributes.key?(:'transcript')
|
290
|
+
self.transcript = attributes[:'transcript']
|
291
|
+
end
|
292
|
+
|
293
|
+
if attributes.key?(:'transcribe_reason')
|
294
|
+
self.transcribe_reason = attributes[:'transcribe_reason']
|
295
|
+
end
|
296
|
+
|
297
|
+
if attributes.key?(:'transcription_duration_ms')
|
298
|
+
self.transcription_duration_ms = attributes[:'transcription_duration_ms']
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
302
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
303
|
+
# @return Array for valid properties with the reasons
|
304
|
+
def list_invalid_properties
|
305
|
+
invalid_properties = super
|
306
|
+
invalid_properties
|
307
|
+
end
|
308
|
+
|
309
|
+
# Check to see if the all the properties in the model are valid
|
310
|
+
# @return true if the model is valid
|
311
|
+
def valid?
|
312
|
+
|
313
|
+
if @request_type.nil?
|
314
|
+
false
|
315
|
+
else
|
316
|
+
list_invalid_properties.length() == 0
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
320
|
+
# Checks equality by comparing each attribute.
|
321
|
+
# @param [Object] Object to be compared
|
322
|
+
def ==(o)
|
323
|
+
return true if self.equal?(o)
|
324
|
+
self.class == o.class &&
|
325
|
+
request_type == o.request_type &&
|
326
|
+
account_id == o.account_id &&
|
327
|
+
call_id == o.call_id &&
|
328
|
+
from == o.from &&
|
329
|
+
to == o.to &&
|
330
|
+
recording_id == o.recording_id &&
|
331
|
+
recording_url == o.recording_url &&
|
332
|
+
recording_size == o.recording_size &&
|
333
|
+
recording_format == o.recording_format &&
|
334
|
+
recording_duration_ms == o.recording_duration_ms &&
|
335
|
+
term_reason == o.term_reason &&
|
336
|
+
record_term_reason == o.record_term_reason &&
|
337
|
+
digit == o.digit &&
|
338
|
+
privacy_for_logging == o.privacy_for_logging &&
|
339
|
+
privacy_for_recording == o.privacy_for_recording &&
|
340
|
+
barge_in_reason == o.barge_in_reason &&
|
341
|
+
barged_in_prompt_no == o.barged_in_prompt_no &&
|
342
|
+
barged_in_prompt_ms == o.barged_in_prompt_ms &&
|
343
|
+
barged_in_prompt_loop_no == o.barged_in_prompt_loop_no &&
|
344
|
+
barge_in_time_ms == o.barge_in_time_ms &&
|
345
|
+
transcript == o.transcript &&
|
346
|
+
transcribe_reason == o.transcribe_reason &&
|
347
|
+
transcription_duration_ms == o.transcription_duration_ms && super(o)
|
348
|
+
end
|
349
|
+
|
350
|
+
# @see the `==` method
|
351
|
+
# @param [Object] Object to be compared
|
352
|
+
def eql?(o)
|
353
|
+
self == o
|
354
|
+
end
|
355
|
+
|
356
|
+
# Calculates hash code according to all attributes.
|
357
|
+
# @return [Integer] Hash code
|
358
|
+
def hash
|
359
|
+
[request_type, account_id, call_id, from, to, recording_id, recording_url, recording_size, recording_format, recording_duration_ms, term_reason, record_term_reason, digit, privacy_for_logging, privacy_for_recording, barge_in_reason, barged_in_prompt_no, barged_in_prompt_ms, barged_in_prompt_loop_no, barge_in_time_ms, transcript, transcribe_reason, transcription_duration_ms].hash
|
360
|
+
end
|
361
|
+
|
362
|
+
# Builds the object from hash
|
363
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
364
|
+
# @return [Object] Returns the model itself
|
365
|
+
def self.build_from_hash(attributes)
|
366
|
+
new.build_from_hash(attributes)
|
367
|
+
end
|
368
|
+
|
369
|
+
# Builds the object from hash
|
370
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
371
|
+
# @return [Object] Returns the model itself
|
372
|
+
def build_from_hash(attributes)
|
373
|
+
return nil unless attributes.is_a?(Hash)
|
374
|
+
super(attributes)
|
375
|
+
self.class.openapi_types.each_pair do |key, type|
|
376
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
377
|
+
self.send("#{key}=", nil)
|
378
|
+
elsif type =~ /\AArray<(.*)>/i
|
379
|
+
# check to ensure the input is an array given that the attribute
|
380
|
+
# is documented as an array but the input is not
|
381
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
382
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
383
|
+
end
|
384
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
385
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
389
|
+
self
|
390
|
+
end
|
391
|
+
|
392
|
+
# Deserializes the data based on type
|
393
|
+
# @param string type Data type
|
394
|
+
# @param string value Value to be deserialized
|
395
|
+
# @return [Object] Deserialized data
|
396
|
+
def _deserialize(type, value)
|
397
|
+
case type.to_sym
|
398
|
+
when :Time
|
399
|
+
Time.parse(value)
|
400
|
+
when :Date
|
401
|
+
Date.parse(value)
|
402
|
+
when :String
|
403
|
+
value.to_s
|
404
|
+
when :Integer
|
405
|
+
value.to_i
|
406
|
+
when :Float
|
407
|
+
value.to_f
|
408
|
+
when :Boolean
|
409
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
410
|
+
true
|
411
|
+
else
|
412
|
+
false
|
413
|
+
end
|
414
|
+
when :Object
|
415
|
+
# generic object (usually a Hash), return directly
|
416
|
+
value
|
417
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
418
|
+
inner_type = Regexp.last_match[:inner_type]
|
419
|
+
value.map { |v| _deserialize(inner_type, v) }
|
420
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
421
|
+
k_type = Regexp.last_match[:k_type]
|
422
|
+
v_type = Regexp.last_match[:v_type]
|
423
|
+
{}.tap do |hash|
|
424
|
+
value.each do |k, v|
|
425
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
426
|
+
end
|
427
|
+
end
|
428
|
+
else # model
|
429
|
+
# models (e.g. Pet) or oneOf
|
430
|
+
klass = Freeclimb.const_get(type)
|
431
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
# Returns the string representation of the object
|
436
|
+
# @return [String] String presentation of the object
|
437
|
+
def to_s
|
438
|
+
to_hash.to_s
|
439
|
+
end
|
440
|
+
|
441
|
+
# to_body is an alias to to_hash (backward compatibility)
|
442
|
+
# @return [Hash] Returns the object in the form of hash
|
443
|
+
def to_body
|
444
|
+
to_hash
|
445
|
+
end
|
446
|
+
|
447
|
+
# Returns the object in the form of hash
|
448
|
+
# @return [Hash] Returns the object in the form of hash
|
449
|
+
def to_hash
|
450
|
+
hash = super
|
451
|
+
self.class.attribute_map.each_pair do |attr, param|
|
452
|
+
value = self.send(attr)
|
453
|
+
if value.nil?
|
454
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
455
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
456
|
+
end
|
457
|
+
|
458
|
+
hash[param] = _to_hash(value)
|
459
|
+
end
|
460
|
+
hash
|
461
|
+
end
|
462
|
+
|
463
|
+
# Outputs non-array value in the form of hash
|
464
|
+
# For object, use to_hash. Otherwise, just return the value
|
465
|
+
# @param [Object] value Any valid value
|
466
|
+
# @return [Hash] Returns the value in the form of hash
|
467
|
+
def _to_hash(value)
|
468
|
+
if value.is_a?(Array)
|
469
|
+
value.compact.map { |v| _to_hash(v) }
|
470
|
+
elsif value.is_a?(Hash)
|
471
|
+
{}.tap do |hash|
|
472
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
473
|
+
end
|
474
|
+
elsif value.respond_to? :to_hash
|
475
|
+
value.to_hash
|
476
|
+
else
|
477
|
+
value
|
478
|
+
end
|
479
|
+
end
|
480
|
+
end
|
481
|
+
end
|
@@ -6,7 +6,7 @@
|
|
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
|
|
@@ -18,8 +18,7 @@ module Freeclimb
|
|
18
18
|
class Unpark < PerclCommand
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
20
|
def self.attribute_map
|
21
|
-
{
|
22
|
-
}
|
21
|
+
{}
|
23
22
|
end
|
24
23
|
|
25
24
|
# Returns all the JSON keys this model knows about, including the ones defined in its parent(s)
|
@@ -29,8 +28,7 @@ module Freeclimb
|
|
29
28
|
|
30
29
|
# Attribute type mapping.
|
31
30
|
def self.openapi_types
|
32
|
-
{
|
33
|
-
}
|
31
|
+
{}
|
34
32
|
end
|
35
33
|
|
36
34
|
# List of attributes with nullable: true
|
@@ -217,7 +215,5 @@ module Freeclimb
|
|
217
215
|
value
|
218
216
|
end
|
219
217
|
end
|
220
|
-
|
221
218
|
end
|
222
|
-
|
223
219
|
end
|
@@ -6,7 +6,7 @@
|
|
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
|
|
@@ -17,6 +17,28 @@ module Freeclimb
|
|
17
17
|
class UpdateCallRequest
|
18
18
|
attr_accessor :status
|
19
19
|
|
20
|
+
class EnumAttributeValidator
|
21
|
+
attr_reader :datatype
|
22
|
+
attr_reader :allowable_values
|
23
|
+
|
24
|
+
def initialize(datatype, allowable_values)
|
25
|
+
@allowable_values = allowable_values.map do |value|
|
26
|
+
case datatype.to_s
|
27
|
+
when /Integer/i
|
28
|
+
value.to_i
|
29
|
+
when /Float/i
|
30
|
+
value.to_f
|
31
|
+
else
|
32
|
+
value
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def valid?(value)
|
38
|
+
!value || allowable_values.include?(value)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
20
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
43
|
def self.attribute_map
|
22
44
|
{
|
@@ -221,7 +243,5 @@ module Freeclimb
|
|
221
243
|
value
|
222
244
|
end
|
223
245
|
end
|
224
|
-
|
225
246
|
end
|
226
|
-
|
227
247
|
end
|
@@ -6,7 +6,7 @@
|
|
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
|
|
@@ -238,7 +238,5 @@ module Freeclimb
|
|
238
238
|
value
|
239
239
|
end
|
240
240
|
end
|
241
|
-
|
242
241
|
end
|
243
|
-
|
244
242
|
end
|