telnyx 5.167.0 → 5.169.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 +14 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +44 -0
- data/lib/telnyx/internal/type/union.rb +6 -6
- data/lib/telnyx/models/ai/assistant_a2_a_agent.rb +195 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +22 -7
- data/lib/telnyx/models/ai/assistant_tool.rb +285 -12
- data/lib/telnyx/models/ai/assistant_update_params.rb +37 -10
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +37 -10
- data/lib/telnyx/models/ai/audio_transcribe_params.rb +33 -13
- data/lib/telnyx/models/ai/audio_transcribe_response.rb +34 -56
- data/lib/telnyx/models/ai/audio_transcription_response_word.rb +74 -0
- data/lib/telnyx/models/ai/chat_completion_request.rb +128 -74
- data/lib/telnyx/models/ai/flow_node.rb +2 -2
- data/lib/telnyx/models/ai/inference_embedding.rb +29 -11
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +10 -1
- data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +21 -1
- data/lib/telnyx/models/ai/openai/function_definition.rb +31 -0
- data/lib/telnyx/models/ai/post_conversation_settings.rb +4 -4
- data/lib/telnyx/models/ai/post_conversation_settings_req.rb +4 -4
- data/lib/telnyx/models/ai/privacy_settings.rb +20 -1
- data/lib/telnyx/models/ai/retrieval_tool.rb +21 -1
- data/lib/telnyx/models/ai/telephony_settings.rb +101 -17
- data/lib/telnyx/models/ai/tool_node.rb +2 -2
- data/lib/telnyx/models/ai/transcription_settings.rb +12 -4
- data/lib/telnyx/models/ai/transcription_settings_config.rb +12 -11
- data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +268 -0
- data/lib/telnyx/models/ai/typesafe/v1_systemone_response.rb +222 -0
- data/lib/telnyx/models/bot_challenge_create_params.rb +38 -0
- data/lib/telnyx/models/bot_challenge_create_response.rb +87 -0
- data/lib/telnyx/models/bot_session_list_params.rb +34 -0
- data/lib/telnyx/models/bot_session_list_response.rb +32 -0
- data/lib/telnyx/models/bot_signup_create_params.rb +103 -0
- data/lib/telnyx/models/bot_signup_resend_magic_link_params.rb +22 -0
- data/lib/telnyx/models/call_dial_params.rb +75 -7
- data/lib/telnyx/models/calls/action_transfer_params.rb +75 -7
- data/lib/telnyx/models/calls/transcription_config.rb +14 -3
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +6 -3
- data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -0
- data/lib/telnyx/models/compute/func_retrieve_logs_params.rb +66 -0
- data/lib/telnyx/models/compute/func_retrieve_logs_response.rb +161 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_params.rb +69 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_response.rb +137 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_params.rb +34 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_response.rb +101 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_params.rb +22 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_response.rb +94 -0
- data/lib/telnyx/models/compute/funcs/export_create_params.rb +62 -0
- data/lib/telnyx/models/compute/funcs/export_delete_all_params.rb +24 -0
- data/lib/telnyx/models/compute/funcs/export_list_params.rb +24 -0
- data/lib/telnyx/models/compute/funcs/func_log_export_config_response.rb +113 -0
- data/lib/telnyx/models/compute/functions_observability_pagination_meta.rb +35 -0
- data/lib/telnyx/models/compute/logs_meta.rb +23 -0
- data/lib/telnyx/models/connection_retrieve_count_params.rb +14 -0
- data/lib/telnyx/models/connection_retrieve_count_response.rb +215 -0
- data/lib/telnyx/models/credential_connection.rb +4 -1
- data/lib/telnyx/models/detail_record_list_params.rb +19 -2
- data/lib/telnyx/models/email_inboxes/email_message.rb +12 -1
- data/lib/telnyx/models/email_message_batch_params.rb +4 -1
- data/lib/telnyx/models/email_message_batch_response.rb +1 -0
- data/lib/telnyx/models/fqdn_connection.rb +5 -2
- data/lib/telnyx/models/fqdn_connections/fqdn_authentication.rb +9 -2
- data/lib/telnyx/models/inbound_message_webhook_event.rb +3 -70
- data/lib/telnyx/models/machine_payment_account_credit_params.rb +29 -0
- data/lib/telnyx/models/machine_payment_account_credit_response.rb +223 -0
- data/lib/telnyx/models/message_retrieve_group_messages_response.rb +3 -3
- data/lib/telnyx/models/message_retrieve_response.rb +4 -4
- data/lib/telnyx/models/message_schedule_response.rb +3 -3
- data/lib/telnyx/models/message_send_group_mms_response.rb +3 -3
- data/lib/telnyx/models/message_send_long_code_response.rb +3 -3
- data/lib/telnyx/models/message_send_number_pool_response.rb +3 -3
- data/lib/telnyx/models/message_send_response.rb +3 -3
- data/lib/telnyx/models/message_send_short_code_response.rb +3 -3
- data/lib/telnyx/models/messaging_inbound_message.rb +71 -0
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +412 -66
- data/lib/telnyx/models/messaging_messaging_profile.rb +11 -1
- data/lib/telnyx/models/messaging_outbound_message_payload.rb +42 -2
- data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
- data/lib/telnyx/models/messaging_profile_features.rb +26 -0
- data/lib/telnyx/models/messaging_profile_update_params.rb +11 -1
- data/lib/telnyx/models/noise_suppression_engine_list_params.rb +14 -0
- data/lib/telnyx/models/noise_suppression_engine_list_response.rb +50 -0
- data/lib/telnyx/models/number_order_status_update.rb +15 -3
- data/lib/telnyx/models/number_order_status_update_webhook_event.rb +15 -3
- data/lib/telnyx/models/outbound_message.rb +1 -0
- data/lib/telnyx/models/outbound_message_payload.rb +45 -5
- data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -0
- data/lib/telnyx/models/success_response.rb +27 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +246 -3
- data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +82 -1
- data/lib/telnyx/models/texml/call_create_params.rb +78 -0
- data/lib/telnyx/models/texml/call_create_response.rb +55 -0
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +76 -1
- data/lib/telnyx/models/uac_connection.rb +4 -1
- data/lib/telnyx/models/uac_external_settings.rb +6 -2
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +2 -2
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +104 -1
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rb +22 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +207 -0
- data/lib/telnyx/models/whatsapp_account_update.rb +112 -0
- data/lib/telnyx/models/whatsapp_message_echo.rb +340 -0
- data/lib/telnyx/models/x402/credit_account/payment_list_params.rb +34 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_params.rb +24 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_response.rb +21 -0
- data/lib/telnyx/models/x402/credit_account/x402_transaction_record.rb +113 -0
- data/lib/telnyx/models.rb +26 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +4 -2
- data/lib/telnyx/resources/ai/assistants.rb +8 -4
- data/lib/telnyx/resources/ai/audio.rb +2 -2
- data/lib/telnyx/resources/ai/openai/chat.rb +2 -8
- data/lib/telnyx/resources/ai/typesafe/v1.rb +62 -0
- data/lib/telnyx/resources/ai/typesafe.rb +22 -0
- data/lib/telnyx/resources/ai.rb +4 -0
- data/lib/telnyx/resources/bot_challenge.rb +53 -0
- data/lib/telnyx/resources/bot_sessions.rb +57 -0
- data/lib/telnyx/resources/bot_signup.rb +97 -0
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/calls.rb +1 -1
- data/lib/telnyx/resources/compute/funcs/export.rb +105 -0
- data/lib/telnyx/resources/compute/funcs.rb +145 -0
- data/lib/telnyx/resources/compute.rb +18 -0
- data/lib/telnyx/resources/connections.rb +20 -0
- data/lib/telnyx/resources/detail_records.rb +1 -1
- data/lib/telnyx/resources/email_messages.rb +6 -2
- data/lib/telnyx/resources/machine_payments.rb +73 -0
- data/lib/telnyx/resources/messaging_profiles.rb +6 -2
- data/lib/telnyx/resources/noise_suppression_engines.rb +37 -0
- data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +15 -1
- data/lib/telnyx/resources/texml/calls.rb +57 -0
- data/lib/telnyx/resources/texml.rb +20 -1
- data/lib/telnyx/resources/voice_clones.rb +4 -2
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +22 -0
- data/lib/telnyx/resources/x402/credit_account/payments.rb +71 -0
- data/lib/telnyx/resources/x402/credit_account.rb +8 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +56 -0
- data/rbi/telnyx/client.rbi +38 -0
- data/rbi/telnyx/models/ai/assistant_a2_a_agent.rbi +345 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +45 -12
- data/rbi/telnyx/models/ai/assistant_tool.rbi +423 -20
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +73 -16
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +73 -16
- data/rbi/telnyx/models/ai/audio_transcribe_params.rbi +71 -20
- data/rbi/telnyx/models/ai/audio_transcribe_response.rbi +63 -97
- data/rbi/telnyx/models/ai/audio_transcription_response_word.rbi +108 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +228 -150
- data/rbi/telnyx/models/ai/flow_node.rbi +4 -2
- data/rbi/telnyx/models/ai/inference_embedding.rbi +53 -16
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +10 -0
- data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +29 -3
- data/rbi/telnyx/models/ai/openai/function_definition.rbi +56 -0
- data/rbi/telnyx/models/ai/post_conversation_settings.rbi +4 -4
- data/rbi/telnyx/models/ai/post_conversation_settings_req.rbi +4 -4
- data/rbi/telnyx/models/ai/privacy_settings.rbi +43 -3
- data/rbi/telnyx/models/ai/retrieval_tool.rbi +29 -3
- data/rbi/telnyx/models/ai/telephony_settings.rbi +197 -20
- data/rbi/telnyx/models/ai/tool_node.rbi +4 -2
- data/rbi/telnyx/models/ai/transcription_settings.rbi +25 -6
- data/rbi/telnyx/models/ai/transcription_settings_config.rbi +18 -16
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +504 -0
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_response.rbi +348 -0
- data/rbi/telnyx/models/bot_challenge_create_params.rbi +68 -0
- data/rbi/telnyx/models/bot_challenge_create_response.rbi +169 -0
- data/rbi/telnyx/models/bot_session_list_params.rbi +53 -0
- data/rbi/telnyx/models/bot_session_list_response.rbi +64 -0
- data/rbi/telnyx/models/bot_signup_create_params.rbi +179 -0
- data/rbi/telnyx/models/bot_signup_resend_magic_link_params.rbi +43 -0
- data/rbi/telnyx/models/call_dial_params.rbi +111 -10
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +111 -10
- data/rbi/telnyx/models/calls/transcription_config.rbi +29 -5
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +11 -3
- data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +5 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_params.rbi +130 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_response.rbi +410 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbi +102 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbi +231 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_params.rbi +59 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_response.rbi +213 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_params.rbi +40 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_response.rbi +252 -0
- data/rbi/telnyx/models/compute/funcs/export_create_params.rbi +84 -0
- data/rbi/telnyx/models/compute/funcs/export_delete_all_params.rbi +42 -0
- data/rbi/telnyx/models/compute/funcs/export_list_params.rbi +42 -0
- data/rbi/telnyx/models/compute/funcs/func_log_export_config_response.rbi +227 -0
- data/rbi/telnyx/models/compute/functions_observability_pagination_meta.rbi +70 -0
- data/rbi/telnyx/models/compute/logs_meta.rbi +38 -0
- data/rbi/telnyx/models/connection_retrieve_count_params.rbi +30 -0
- data/rbi/telnyx/models/connection_retrieve_count_response.rbi +353 -0
- data/rbi/telnyx/models/credential_connection.rbi +8 -2
- data/rbi/telnyx/models/detail_record_list_params.rbi +30 -2
- data/rbi/telnyx/models/email_inboxes/email_message.rbi +22 -3
- data/rbi/telnyx/models/email_message_batch_params.rbi +6 -0
- data/rbi/telnyx/models/email_message_batch_response.rbi +5 -0
- data/rbi/telnyx/models/fqdn_connection.rbi +8 -2
- data/rbi/telnyx/models/fqdn_connections/fqdn_authentication.rbi +8 -2
- data/rbi/telnyx/models/inbound_message_webhook_event.rbi +4 -173
- data/rbi/telnyx/models/machine_payment_account_credit_params.rbi +51 -0
- data/rbi/telnyx/models/machine_payment_account_credit_response.rbi +446 -0
- data/rbi/telnyx/models/message_retrieve_group_messages_response.rbi +6 -12
- data/rbi/telnyx/models/message_retrieve_response.rbi +3 -3
- data/rbi/telnyx/models/message_schedule_response.rbi +4 -6
- data/rbi/telnyx/models/message_send_group_mms_response.rbi +4 -6
- data/rbi/telnyx/models/message_send_long_code_response.rbi +4 -6
- data/rbi/telnyx/models/message_send_number_pool_response.rbi +4 -6
- data/rbi/telnyx/models/message_send_response.rbi +4 -6
- data/rbi/telnyx/models/message_send_short_code_response.rbi +4 -6
- data/rbi/telnyx/models/messaging_inbound_message.rbi +152 -0
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +911 -192
- data/rbi/telnyx/models/messaging_messaging_profile.rbi +19 -0
- data/rbi/telnyx/models/messaging_outbound_message_payload.rbi +90 -16
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +19 -0
- data/rbi/telnyx/models/messaging_profile_features.rbi +43 -0
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +19 -0
- data/rbi/telnyx/models/noise_suppression_engine_list_params.rbi +30 -0
- data/rbi/telnyx/models/noise_suppression_engine_list_response.rbi +94 -0
- data/rbi/telnyx/models/number_order_status_update.rbi +34 -3
- data/rbi/telnyx/models/number_order_status_update_webhook_event.rbi +39 -3
- data/rbi/telnyx/models/outbound_message.rbi +5 -0
- data/rbi/telnyx/models/outbound_message_payload.rbi +74 -4
- data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +5 -0
- data/rbi/telnyx/models/success_response.rbi +36 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +339 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +111 -0
- data/rbi/telnyx/models/texml/call_create_params.rbi +124 -0
- data/rbi/telnyx/models/texml/call_create_response.rbi +98 -0
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +103 -0
- data/rbi/telnyx/models/uac_connection.rbi +8 -2
- data/rbi/telnyx/models/uac_external_settings.rbi +10 -2
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +4 -4
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +401 -0
- data/rbi/telnyx/models/whatsapp_account_update.rbi +236 -0
- data/rbi/telnyx/models/whatsapp_message_echo.rbi +611 -0
- data/rbi/telnyx/models/x402/credit_account/payment_list_params.rbi +64 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_params.rbi +42 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_response.rbi +53 -0
- data/rbi/telnyx/models/x402/credit_account/x402_transaction_record.rbi +219 -0
- data/rbi/telnyx/models.rbi +29 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +31 -7
- data/rbi/telnyx/resources/ai/assistants.rbi +46 -12
- data/rbi/telnyx/resources/ai/audio.rbi +20 -9
- data/rbi/telnyx/resources/ai/openai/chat.rbi +9 -13
- data/rbi/telnyx/resources/ai/typesafe/v1.rbi +61 -0
- data/rbi/telnyx/resources/ai/typesafe.rbi +19 -0
- data/rbi/telnyx/resources/ai.rbi +3 -0
- data/rbi/telnyx/resources/bot_challenge.rbi +45 -0
- data/rbi/telnyx/resources/bot_sessions.rbi +45 -0
- data/rbi/telnyx/resources/bot_signup.rbi +87 -0
- data/rbi/telnyx/resources/calls/actions.rbi +6 -5
- data/rbi/telnyx/resources/calls.rbi +6 -5
- data/rbi/telnyx/resources/compute/funcs/export.rbi +86 -0
- data/rbi/telnyx/resources/compute/funcs.rbi +114 -0
- data/rbi/telnyx/resources/compute.rbi +15 -0
- data/rbi/telnyx/resources/connections.rbi +11 -0
- data/rbi/telnyx/resources/detail_records.rbi +12 -1
- data/rbi/telnyx/resources/email_messages.rbi +8 -2
- data/rbi/telnyx/resources/machine_payments.rbi +64 -0
- data/rbi/telnyx/resources/messaging_profiles.rbi +10 -0
- data/rbi/telnyx/resources/noise_suppression_engines.rbi +26 -0
- data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +32 -0
- data/rbi/telnyx/resources/texml/calls.rbi +50 -0
- data/rbi/telnyx/resources/texml.rbi +36 -0
- data/rbi/telnyx/resources/voice_clones.rbi +4 -2
- data/rbi/telnyx/resources/webhooks.rbi +6 -2
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +18 -0
- data/rbi/telnyx/resources/x402/credit_account/payments.rbi +60 -0
- data/rbi/telnyx/resources/x402/credit_account.rbi +5 -0
- data/sig/telnyx/client.rbs +12 -0
- data/sig/telnyx/models/ai/assistant_a2_a_agent.rbs +140 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +162 -23
- data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
- data/sig/telnyx/models/ai/audio_transcribe_params.rbs +10 -0
- data/sig/telnyx/models/ai/audio_transcribe_response.rbs +29 -43
- data/sig/telnyx/models/ai/audio_transcription_response_word.rbs +60 -0
- data/sig/telnyx/models/ai/chat_completion_request.rbs +90 -79
- data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +5 -0
- data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +10 -3
- data/sig/telnyx/models/ai/openai/function_definition.rbs +34 -0
- data/sig/telnyx/models/ai/privacy_settings.rbs +11 -3
- data/sig/telnyx/models/ai/retrieval_tool.rbs +10 -3
- data/sig/telnyx/models/ai/telephony_settings.rbs +59 -4
- data/sig/telnyx/models/ai/transcription_settings.rbs +4 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +195 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_response.rbs +141 -0
- data/sig/telnyx/models/bot_challenge_create_params.rbs +42 -0
- data/sig/telnyx/models/bot_challenge_create_response.rbs +72 -0
- data/sig/telnyx/models/bot_session_list_params.rbs +28 -0
- data/sig/telnyx/models/bot_session_list_response.rbs +26 -0
- data/sig/telnyx/models/bot_signup_create_params.rbs +89 -0
- data/sig/telnyx/models/bot_signup_resend_magic_link_params.rbs +20 -0
- data/sig/telnyx/models/call_dial_params.rbs +49 -0
- data/sig/telnyx/models/calls/action_transfer_params.rbs +49 -0
- data/sig/telnyx/models/calls/transcription_config.rbs +4 -0
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +3 -1
- data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +3 -1
- data/sig/telnyx/models/compute/func_retrieve_logs_params.rbs +69 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_response.rbs +210 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbs +66 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbs +149 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_params.rbs +38 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_response.rbs +131 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_params.rbs +22 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_response.rbs +117 -0
- data/sig/telnyx/models/compute/funcs/export_create_params.rbs +50 -0
- data/sig/telnyx/models/compute/funcs/export_delete_all_params.rbs +27 -0
- data/sig/telnyx/models/compute/funcs/export_list_params.rbs +27 -0
- data/sig/telnyx/models/compute/funcs/func_log_export_config_response.rbs +115 -0
- data/sig/telnyx/models/compute/functions_observability_pagination_meta.rbs +45 -0
- data/sig/telnyx/models/compute/logs_meta.rbs +21 -0
- data/sig/telnyx/models/connection_retrieve_count_params.rbs +15 -0
- data/sig/telnyx/models/connection_retrieve_count_response.rbs +169 -0
- data/sig/telnyx/models/email_inboxes/email_message.rbs +12 -3
- data/sig/telnyx/models/email_message_batch_response.rbs +2 -0
- data/sig/telnyx/models/inbound_message_webhook_event.rbs +6 -79
- data/sig/telnyx/models/machine_payment_account_credit_params.rbs +23 -0
- data/sig/telnyx/models/machine_payment_account_credit_response.rbs +164 -0
- data/sig/telnyx/models/message_retrieve_group_messages_response.rbs +6 -8
- data/sig/telnyx/models/message_retrieve_response.rbs +1 -2
- data/sig/telnyx/models/message_schedule_response.rbs +6 -7
- data/sig/telnyx/models/message_send_group_mms_response.rbs +6 -6
- data/sig/telnyx/models/message_send_long_code_response.rbs +6 -6
- data/sig/telnyx/models/message_send_number_pool_response.rbs +6 -6
- data/sig/telnyx/models/message_send_response.rbs +6 -7
- data/sig/telnyx/models/message_send_short_code_response.rbs +6 -6
- data/sig/telnyx/models/messaging_inbound_message.rbs +76 -0
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +438 -97
- data/sig/telnyx/models/messaging_messaging_profile.rbs +5 -0
- data/sig/telnyx/models/messaging_outbound_message_payload.rbs +39 -1
- data/sig/telnyx/models/messaging_profile_create_params.rbs +5 -0
- data/sig/telnyx/models/messaging_profile_features.rbs +15 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +5 -0
- data/sig/telnyx/models/noise_suppression_engine_list_params.rbs +15 -0
- data/sig/telnyx/models/noise_suppression_engine_list_response.rbs +43 -0
- data/sig/telnyx/models/number_order_status_update.rbs +14 -4
- data/sig/telnyx/models/number_order_status_update_webhook_event.rbs +14 -4
- data/sig/telnyx/models/outbound_message.rbs +2 -1
- data/sig/telnyx/models/outbound_message_payload.rbs +45 -7
- data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -0
- data/sig/telnyx/models/success_response.rbs +15 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +159 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +49 -0
- data/sig/telnyx/models/texml/call_create_params.rbs +72 -0
- data/sig/telnyx/models/texml/call_create_response.rbs +47 -0
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +49 -0
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbs +25 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +201 -0
- data/sig/telnyx/models/whatsapp_account_update.rbs +107 -0
- data/sig/telnyx/models/whatsapp_message_echo.rbs +291 -0
- data/sig/telnyx/models/x402/credit_account/payment_list_params.rbs +36 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_response.rbs +26 -0
- data/sig/telnyx/models/x402/credit_account/x402_transaction_record.rbs +104 -0
- data/sig/telnyx/models.rbs +26 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai/openai/chat.rbs +1 -4
- data/sig/telnyx/resources/ai/typesafe/v1.rbs +17 -0
- data/sig/telnyx/resources/ai/typesafe.rbs +11 -0
- data/sig/telnyx/resources/ai.rbs +2 -0
- data/sig/telnyx/resources/bot_challenge.rbs +14 -0
- data/sig/telnyx/resources/bot_sessions.rbs +13 -0
- data/sig/telnyx/resources/bot_signup.rbs +24 -0
- data/sig/telnyx/resources/compute/funcs/export.rbs +30 -0
- data/sig/telnyx/resources/compute/funcs.rbs +43 -0
- data/sig/telnyx/resources/compute.rbs +9 -0
- data/sig/telnyx/resources/connections.rbs +4 -0
- data/sig/telnyx/resources/machine_payments.rbs +12 -0
- data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
- data/sig/telnyx/resources/noise_suppression_engines.rbs +11 -0
- data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +7 -0
- data/sig/telnyx/resources/texml/calls.rbs +19 -0
- data/sig/telnyx/resources/texml.rbs +9 -0
- data/sig/telnyx/resources/webhooks.rbs +6 -2
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +5 -0
- data/sig/telnyx/resources/x402/credit_account/payments.rbs +22 -0
- data/sig/telnyx/resources/x402/credit_account.rbs +2 -0
- metadata +170 -2
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
module Typesafe
|
|
7
|
+
class V1SystemoneResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse,
|
|
12
|
+
Telnyx::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Answers keyed by exactly the question IDs in the request. Each answer type
|
|
17
|
+
# matches its question.
|
|
18
|
+
sig do
|
|
19
|
+
returns(
|
|
20
|
+
T::Hash[
|
|
21
|
+
Symbol,
|
|
22
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Variants
|
|
23
|
+
]
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :answers
|
|
27
|
+
|
|
28
|
+
# Token usage for the completed evaluation.
|
|
29
|
+
sig do
|
|
30
|
+
returns(Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Usage)
|
|
31
|
+
end
|
|
32
|
+
attr_reader :usage
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
usage:
|
|
37
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Usage::OrHash
|
|
38
|
+
).void
|
|
39
|
+
end
|
|
40
|
+
attr_writer :usage
|
|
41
|
+
|
|
42
|
+
# Opaque Telnyx-controlled identifier retained for TypeSafe SDK response
|
|
43
|
+
# compatibility. It is not a selectable model name or a guarantee of a particular
|
|
44
|
+
# underlying model.
|
|
45
|
+
sig { returns(String) }
|
|
46
|
+
attr_accessor :model
|
|
47
|
+
|
|
48
|
+
# A complete synchronous evaluation. Answers are returned directly without a data
|
|
49
|
+
# wrapper.
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
answers:
|
|
53
|
+
T::Hash[
|
|
54
|
+
Symbol,
|
|
55
|
+
T.any(
|
|
56
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Choice::OrHash,
|
|
57
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Noul::OrHash,
|
|
58
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Score::OrHash
|
|
59
|
+
)
|
|
60
|
+
],
|
|
61
|
+
model: String,
|
|
62
|
+
usage:
|
|
63
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Usage::OrHash
|
|
64
|
+
).returns(T.attached_class)
|
|
65
|
+
end
|
|
66
|
+
def self.new(
|
|
67
|
+
# Answers keyed by exactly the question IDs in the request. Each answer type
|
|
68
|
+
# matches its question.
|
|
69
|
+
answers:,
|
|
70
|
+
# Opaque Telnyx-controlled identifier retained for TypeSafe SDK response
|
|
71
|
+
# compatibility. It is not a selectable model name or a guarantee of a particular
|
|
72
|
+
# underlying model.
|
|
73
|
+
model:,
|
|
74
|
+
# Token usage for the completed evaluation.
|
|
75
|
+
usage:
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
sig do
|
|
80
|
+
override.returns(
|
|
81
|
+
{
|
|
82
|
+
answers:
|
|
83
|
+
T::Hash[
|
|
84
|
+
Symbol,
|
|
85
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Variants
|
|
86
|
+
],
|
|
87
|
+
model: String,
|
|
88
|
+
usage: Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Usage
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
def to_hash
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# An answer whose type matches its question.
|
|
96
|
+
module Answer
|
|
97
|
+
extend Telnyx::Internal::Type::Union
|
|
98
|
+
|
|
99
|
+
Variants =
|
|
100
|
+
T.type_alias do
|
|
101
|
+
T.any(
|
|
102
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Choice,
|
|
103
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Noul,
|
|
104
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Score
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
class Choice < Telnyx::Internal::Type::BaseModel
|
|
109
|
+
OrHash =
|
|
110
|
+
T.type_alias do
|
|
111
|
+
T.any(
|
|
112
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Choice,
|
|
113
|
+
Telnyx::Internal::AnyHash
|
|
114
|
+
)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# The option key with the highest relative score. Ties favor the first option in
|
|
118
|
+
# request order.
|
|
119
|
+
sig { returns(String) }
|
|
120
|
+
attr_accessor :choice
|
|
121
|
+
|
|
122
|
+
# Normalized entropy confidence: 1 - H(p) / ln(N), where H(p) = -sum(p \* ln(p))
|
|
123
|
+
# and N is the number of options. Zero indicates a uniform distribution; one
|
|
124
|
+
# indicates concentration on one option. This is neither the winning probability
|
|
125
|
+
# nor calibrated correctness.
|
|
126
|
+
sig { returns(Float) }
|
|
127
|
+
attr_accessor :confidence
|
|
128
|
+
|
|
129
|
+
# Relative scores normalized across the supplied options, summing approximately
|
|
130
|
+
# to 1. These are not calibrated probabilities of correctness.
|
|
131
|
+
sig { returns(T::Hash[Symbol, Float]) }
|
|
132
|
+
attr_accessor :probabilities
|
|
133
|
+
|
|
134
|
+
# Answer type.
|
|
135
|
+
sig { returns(Symbol) }
|
|
136
|
+
attr_accessor :type
|
|
137
|
+
|
|
138
|
+
# A selected option and the distribution across all supplied option keys.
|
|
139
|
+
sig do
|
|
140
|
+
params(
|
|
141
|
+
choice: String,
|
|
142
|
+
confidence: Float,
|
|
143
|
+
probabilities: T::Hash[Symbol, Float],
|
|
144
|
+
type: Symbol
|
|
145
|
+
).returns(T.attached_class)
|
|
146
|
+
end
|
|
147
|
+
def self.new(
|
|
148
|
+
# The option key with the highest relative score. Ties favor the first option in
|
|
149
|
+
# request order.
|
|
150
|
+
choice:,
|
|
151
|
+
# Normalized entropy confidence: 1 - H(p) / ln(N), where H(p) = -sum(p \* ln(p))
|
|
152
|
+
# and N is the number of options. Zero indicates a uniform distribution; one
|
|
153
|
+
# indicates concentration on one option. This is neither the winning probability
|
|
154
|
+
# nor calibrated correctness.
|
|
155
|
+
confidence:,
|
|
156
|
+
# Relative scores normalized across the supplied options, summing approximately
|
|
157
|
+
# to 1. These are not calibrated probabilities of correctness.
|
|
158
|
+
probabilities:,
|
|
159
|
+
# Answer type.
|
|
160
|
+
type: :choice
|
|
161
|
+
)
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
sig do
|
|
165
|
+
override.returns(
|
|
166
|
+
{
|
|
167
|
+
choice: String,
|
|
168
|
+
confidence: Float,
|
|
169
|
+
probabilities: T::Hash[Symbol, Float],
|
|
170
|
+
type: Symbol
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
end
|
|
174
|
+
def to_hash
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
class Noul < Telnyx::Internal::Type::BaseModel
|
|
179
|
+
OrHash =
|
|
180
|
+
T.type_alias do
|
|
181
|
+
T.any(
|
|
182
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Noul,
|
|
183
|
+
Telnyx::Internal::AnyHash
|
|
184
|
+
)
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Score of the positive outcome. Values near 1 favor yes; values near 0 favor no.
|
|
188
|
+
# This is a number, not a Boolean, and is not calibrated correctness.
|
|
189
|
+
sig { returns(Float) }
|
|
190
|
+
attr_accessor :noul
|
|
191
|
+
|
|
192
|
+
# Answer type.
|
|
193
|
+
sig { returns(Symbol) }
|
|
194
|
+
attr_accessor :type
|
|
195
|
+
|
|
196
|
+
# A yes/no score with no separate confidence or probabilities fields.
|
|
197
|
+
sig do
|
|
198
|
+
params(noul: Float, type: Symbol).returns(T.attached_class)
|
|
199
|
+
end
|
|
200
|
+
def self.new(
|
|
201
|
+
# Score of the positive outcome. Values near 1 favor yes; values near 0 favor no.
|
|
202
|
+
# This is a number, not a Boolean, and is not calibrated correctness.
|
|
203
|
+
noul:,
|
|
204
|
+
# Answer type.
|
|
205
|
+
type: :noul
|
|
206
|
+
)
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
sig { override.returns({ noul: Float, type: Symbol }) }
|
|
210
|
+
def to_hash
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
class Score < Telnyx::Internal::Type::BaseModel
|
|
215
|
+
OrHash =
|
|
216
|
+
T.type_alias do
|
|
217
|
+
T.any(
|
|
218
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Score,
|
|
219
|
+
Telnyx::Internal::AnyHash
|
|
220
|
+
)
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Normalized entropy confidence: 1 - H(p) / ln(N), where H(p) = -sum(p \* ln(p))
|
|
224
|
+
# and N is the number of options. Zero indicates a uniform distribution; one
|
|
225
|
+
# indicates concentration on one option. This is neither the winning probability
|
|
226
|
+
# nor calibrated correctness.
|
|
227
|
+
sig { returns(Float) }
|
|
228
|
+
attr_accessor :confidence
|
|
229
|
+
|
|
230
|
+
# Criterion descriptions keyed by stringified zero-based indices, such as "0",
|
|
231
|
+
# "1", and "2".
|
|
232
|
+
sig { returns(T::Hash[Symbol, String]) }
|
|
233
|
+
attr_accessor :legend
|
|
234
|
+
|
|
235
|
+
# Relative scores keyed by the same stringified indices as legend.
|
|
236
|
+
sig { returns(T::Hash[Symbol, Float]) }
|
|
237
|
+
attr_accessor :probabilities
|
|
238
|
+
|
|
239
|
+
# Expected zero-based criterion index: sum(index \* probability). Ranges from 0 to
|
|
240
|
+
# N-1 for N criteria; fractional values are valid.
|
|
241
|
+
sig { returns(Float) }
|
|
242
|
+
attr_accessor :score
|
|
243
|
+
|
|
244
|
+
# Answer type.
|
|
245
|
+
sig { returns(Symbol) }
|
|
246
|
+
attr_accessor :type
|
|
247
|
+
|
|
248
|
+
# An expected rating over the ordered criteria.
|
|
249
|
+
sig do
|
|
250
|
+
params(
|
|
251
|
+
confidence: Float,
|
|
252
|
+
legend: T::Hash[Symbol, String],
|
|
253
|
+
probabilities: T::Hash[Symbol, Float],
|
|
254
|
+
score: Float,
|
|
255
|
+
type: Symbol
|
|
256
|
+
).returns(T.attached_class)
|
|
257
|
+
end
|
|
258
|
+
def self.new(
|
|
259
|
+
# Normalized entropy confidence: 1 - H(p) / ln(N), where H(p) = -sum(p \* ln(p))
|
|
260
|
+
# and N is the number of options. Zero indicates a uniform distribution; one
|
|
261
|
+
# indicates concentration on one option. This is neither the winning probability
|
|
262
|
+
# nor calibrated correctness.
|
|
263
|
+
confidence:,
|
|
264
|
+
# Criterion descriptions keyed by stringified zero-based indices, such as "0",
|
|
265
|
+
# "1", and "2".
|
|
266
|
+
legend:,
|
|
267
|
+
# Relative scores keyed by the same stringified indices as legend.
|
|
268
|
+
probabilities:,
|
|
269
|
+
# Expected zero-based criterion index: sum(index \* probability). Ranges from 0 to
|
|
270
|
+
# N-1 for N criteria; fractional values are valid.
|
|
271
|
+
score:,
|
|
272
|
+
# Answer type.
|
|
273
|
+
type: :score
|
|
274
|
+
)
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
sig do
|
|
278
|
+
override.returns(
|
|
279
|
+
{
|
|
280
|
+
confidence: Float,
|
|
281
|
+
legend: T::Hash[Symbol, String],
|
|
282
|
+
probabilities: T::Hash[Symbol, Float],
|
|
283
|
+
score: Float,
|
|
284
|
+
type: Symbol
|
|
285
|
+
}
|
|
286
|
+
)
|
|
287
|
+
end
|
|
288
|
+
def to_hash
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
sig do
|
|
293
|
+
override.returns(
|
|
294
|
+
T::Array[
|
|
295
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Answer::Variants
|
|
296
|
+
]
|
|
297
|
+
)
|
|
298
|
+
end
|
|
299
|
+
def self.variants
|
|
300
|
+
end
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
class Usage < Telnyx::Internal::Type::BaseModel
|
|
304
|
+
OrHash =
|
|
305
|
+
T.type_alias do
|
|
306
|
+
T.any(
|
|
307
|
+
Telnyx::Models::AI::Typesafe::V1SystemoneResponse::Usage,
|
|
308
|
+
Telnyx::Internal::AnyHash
|
|
309
|
+
)
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Input tokens processed, including shared-context preparation and question
|
|
313
|
+
# evaluation. This can exceed the token count of the unique input text.
|
|
314
|
+
sig { returns(Integer) }
|
|
315
|
+
attr_accessor :input_tokens
|
|
316
|
+
|
|
317
|
+
# Output tokens used for the evaluation, including shared-context preparation.
|
|
318
|
+
sig { returns(Integer) }
|
|
319
|
+
attr_accessor :output_tokens
|
|
320
|
+
|
|
321
|
+
# Token usage for the completed evaluation.
|
|
322
|
+
sig do
|
|
323
|
+
params(input_tokens: Integer, output_tokens: Integer).returns(
|
|
324
|
+
T.attached_class
|
|
325
|
+
)
|
|
326
|
+
end
|
|
327
|
+
def self.new(
|
|
328
|
+
# Input tokens processed, including shared-context preparation and question
|
|
329
|
+
# evaluation. This can exceed the token count of the unique input text.
|
|
330
|
+
input_tokens:,
|
|
331
|
+
# Output tokens used for the evaluation, including shared-context preparation.
|
|
332
|
+
output_tokens:
|
|
333
|
+
)
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
sig do
|
|
337
|
+
override.returns(
|
|
338
|
+
{ input_tokens: Integer, output_tokens: Integer }
|
|
339
|
+
)
|
|
340
|
+
end
|
|
341
|
+
def to_hash
|
|
342
|
+
end
|
|
343
|
+
end
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class BotChallengeCreateParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Telnyx::BotChallengeCreateParams, Telnyx::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Name of the LLM the client is using.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_reader :llm_model_name
|
|
17
|
+
|
|
18
|
+
sig { params(llm_model_name: String).void }
|
|
19
|
+
attr_writer :llm_model_name
|
|
20
|
+
|
|
21
|
+
# Parameter count of the client LLM.
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
23
|
+
attr_reader :llm_parameter_count
|
|
24
|
+
|
|
25
|
+
sig { params(llm_parameter_count: String).void }
|
|
26
|
+
attr_writer :llm_parameter_count
|
|
27
|
+
|
|
28
|
+
# Quantization of the client LLM.
|
|
29
|
+
sig { returns(T.nilable(String)) }
|
|
30
|
+
attr_reader :llm_quantization
|
|
31
|
+
|
|
32
|
+
sig { params(llm_quantization: String).void }
|
|
33
|
+
attr_writer :llm_quantization
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
llm_model_name: String,
|
|
38
|
+
llm_parameter_count: String,
|
|
39
|
+
llm_quantization: String,
|
|
40
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
41
|
+
).returns(T.attached_class)
|
|
42
|
+
end
|
|
43
|
+
def self.new(
|
|
44
|
+
# Name of the LLM the client is using.
|
|
45
|
+
llm_model_name: nil,
|
|
46
|
+
# Parameter count of the client LLM.
|
|
47
|
+
llm_parameter_count: nil,
|
|
48
|
+
# Quantization of the client LLM.
|
|
49
|
+
llm_quantization: nil,
|
|
50
|
+
request_options: {}
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
override.returns(
|
|
56
|
+
{
|
|
57
|
+
llm_model_name: String,
|
|
58
|
+
llm_parameter_count: String,
|
|
59
|
+
llm_quantization: String,
|
|
60
|
+
request_options: Telnyx::RequestOptions
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
def to_hash
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class BotChallengeCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Telnyx::Models::BotChallengeCreateResponse,
|
|
10
|
+
Telnyx::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(Telnyx::Models::BotChallengeCreateResponse::Data) }
|
|
15
|
+
attr_reader :data
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
data: Telnyx::Models::BotChallengeCreateResponse::Data::OrHash
|
|
20
|
+
).void
|
|
21
|
+
end
|
|
22
|
+
attr_writer :data
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
data: Telnyx::Models::BotChallengeCreateResponse::Data::OrHash
|
|
27
|
+
).returns(T.attached_class)
|
|
28
|
+
end
|
|
29
|
+
def self.new(data:)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
override.returns(
|
|
34
|
+
{ data: Telnyx::Models::BotChallengeCreateResponse::Data }
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
def to_hash
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
41
|
+
OrHash =
|
|
42
|
+
T.type_alias do
|
|
43
|
+
T.any(
|
|
44
|
+
Telnyx::Models::BotChallengeCreateResponse::Data,
|
|
45
|
+
Telnyx::Internal::AnyHash
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Type of challenge.
|
|
50
|
+
sig do
|
|
51
|
+
returns(
|
|
52
|
+
Telnyx::Models::BotChallengeCreateResponse::Data::ChallengeType::TaggedSymbol
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
attr_accessor :challenge_type
|
|
56
|
+
|
|
57
|
+
# Single-use challenge identifier. Submit it as `bot_challenge_nonce` on the
|
|
58
|
+
# signup request.
|
|
59
|
+
sig { returns(String) }
|
|
60
|
+
attr_accessor :nonce
|
|
61
|
+
|
|
62
|
+
# Current privacy-policy URL. Echo this back on the signup request.
|
|
63
|
+
sig { returns(String) }
|
|
64
|
+
attr_accessor :privacy_policy_url
|
|
65
|
+
|
|
66
|
+
# Problem text to solve. Math problems are obfuscated and end with an unobfuscated
|
|
67
|
+
# rounding instruction; string and binary problems are returned as-is.
|
|
68
|
+
sig { returns(String) }
|
|
69
|
+
attr_accessor :problem
|
|
70
|
+
|
|
71
|
+
# Current terms-and-conditions URL. Echo this back on the signup request.
|
|
72
|
+
sig { returns(String) }
|
|
73
|
+
attr_accessor :terms_and_conditions_url
|
|
74
|
+
|
|
75
|
+
# Decimal places expected in the answer. Present only for math challenges.
|
|
76
|
+
sig { returns(T.nilable(Integer)) }
|
|
77
|
+
attr_reader :precision
|
|
78
|
+
|
|
79
|
+
sig { params(precision: Integer).void }
|
|
80
|
+
attr_writer :precision
|
|
81
|
+
|
|
82
|
+
sig do
|
|
83
|
+
params(
|
|
84
|
+
challenge_type:
|
|
85
|
+
Telnyx::Models::BotChallengeCreateResponse::Data::ChallengeType::OrSymbol,
|
|
86
|
+
nonce: String,
|
|
87
|
+
privacy_policy_url: String,
|
|
88
|
+
problem: String,
|
|
89
|
+
terms_and_conditions_url: String,
|
|
90
|
+
precision: Integer
|
|
91
|
+
).returns(T.attached_class)
|
|
92
|
+
end
|
|
93
|
+
def self.new(
|
|
94
|
+
# Type of challenge.
|
|
95
|
+
challenge_type:,
|
|
96
|
+
# Single-use challenge identifier. Submit it as `bot_challenge_nonce` on the
|
|
97
|
+
# signup request.
|
|
98
|
+
nonce:,
|
|
99
|
+
# Current privacy-policy URL. Echo this back on the signup request.
|
|
100
|
+
privacy_policy_url:,
|
|
101
|
+
# Problem text to solve. Math problems are obfuscated and end with an unobfuscated
|
|
102
|
+
# rounding instruction; string and binary problems are returned as-is.
|
|
103
|
+
problem:,
|
|
104
|
+
# Current terms-and-conditions URL. Echo this back on the signup request.
|
|
105
|
+
terms_and_conditions_url:,
|
|
106
|
+
# Decimal places expected in the answer. Present only for math challenges.
|
|
107
|
+
precision: nil
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
sig do
|
|
112
|
+
override.returns(
|
|
113
|
+
{
|
|
114
|
+
challenge_type:
|
|
115
|
+
Telnyx::Models::BotChallengeCreateResponse::Data::ChallengeType::TaggedSymbol,
|
|
116
|
+
nonce: String,
|
|
117
|
+
privacy_policy_url: String,
|
|
118
|
+
problem: String,
|
|
119
|
+
terms_and_conditions_url: String,
|
|
120
|
+
precision: Integer
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
end
|
|
124
|
+
def to_hash
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Type of challenge.
|
|
128
|
+
module ChallengeType
|
|
129
|
+
extend Telnyx::Internal::Type::Enum
|
|
130
|
+
|
|
131
|
+
TaggedSymbol =
|
|
132
|
+
T.type_alias do
|
|
133
|
+
T.all(
|
|
134
|
+
Symbol,
|
|
135
|
+
Telnyx::Models::BotChallengeCreateResponse::Data::ChallengeType
|
|
136
|
+
)
|
|
137
|
+
end
|
|
138
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
139
|
+
|
|
140
|
+
MATH =
|
|
141
|
+
T.let(
|
|
142
|
+
:math,
|
|
143
|
+
Telnyx::Models::BotChallengeCreateResponse::Data::ChallengeType::TaggedSymbol
|
|
144
|
+
)
|
|
145
|
+
STRING =
|
|
146
|
+
T.let(
|
|
147
|
+
:string,
|
|
148
|
+
Telnyx::Models::BotChallengeCreateResponse::Data::ChallengeType::TaggedSymbol
|
|
149
|
+
)
|
|
150
|
+
BINARY =
|
|
151
|
+
T.let(
|
|
152
|
+
:binary,
|
|
153
|
+
Telnyx::Models::BotChallengeCreateResponse::Data::ChallengeType::TaggedSymbol
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
sig do
|
|
157
|
+
override.returns(
|
|
158
|
+
T::Array[
|
|
159
|
+
Telnyx::Models::BotChallengeCreateResponse::Data::ChallengeType::TaggedSymbol
|
|
160
|
+
]
|
|
161
|
+
)
|
|
162
|
+
end
|
|
163
|
+
def self.values
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class BotSessionListParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Telnyx::BotSessionListParams, Telnyx::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Email address associated with the magic link token.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :email
|
|
17
|
+
|
|
18
|
+
# Single-use portal redirect (magic link) token, a UUIDv7 sent to the account
|
|
19
|
+
# owner's email.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :portal_redirect_token
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
email: String,
|
|
26
|
+
portal_redirect_token: String,
|
|
27
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
28
|
+
).returns(T.attached_class)
|
|
29
|
+
end
|
|
30
|
+
def self.new(
|
|
31
|
+
# Email address associated with the magic link token.
|
|
32
|
+
email:,
|
|
33
|
+
# Single-use portal redirect (magic link) token, a UUIDv7 sent to the account
|
|
34
|
+
# owner's email.
|
|
35
|
+
portal_redirect_token:,
|
|
36
|
+
request_options: {}
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
override.returns(
|
|
42
|
+
{
|
|
43
|
+
email: String,
|
|
44
|
+
portal_redirect_token: String,
|
|
45
|
+
request_options: Telnyx::RequestOptions
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
def to_hash
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class BotSessionListResponse < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Telnyx::Models::BotSessionListResponse,
|
|
10
|
+
Telnyx::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(Telnyx::Models::BotSessionListResponse::Data) }
|
|
15
|
+
attr_reader :data
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(data: Telnyx::Models::BotSessionListResponse::Data::OrHash).void
|
|
19
|
+
end
|
|
20
|
+
attr_writer :data
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(
|
|
24
|
+
data: Telnyx::Models::BotSessionListResponse::Data::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(data:)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns({ data: Telnyx::Models::BotSessionListResponse::Data })
|
|
32
|
+
end
|
|
33
|
+
def to_hash
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
37
|
+
OrHash =
|
|
38
|
+
T.type_alias do
|
|
39
|
+
T.any(
|
|
40
|
+
Telnyx::Models::BotSessionListResponse::Data,
|
|
41
|
+
Telnyx::Internal::AnyHash
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# API v2 session token for the signed-in user. Use it as a bearer token on
|
|
46
|
+
# authenticated endpoints.
|
|
47
|
+
sig { returns(String) }
|
|
48
|
+
attr_accessor :api_v2_token
|
|
49
|
+
|
|
50
|
+
sig { params(api_v2_token: String).returns(T.attached_class) }
|
|
51
|
+
def self.new(
|
|
52
|
+
# API v2 session token for the signed-in user. Use it as a bearer token on
|
|
53
|
+
# authenticated endpoints.
|
|
54
|
+
api_v2_token:
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
sig { override.returns({ api_v2_token: String }) }
|
|
59
|
+
def to_hash
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|