vapi_server_sdk 0.1.0 → 0.3.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/lib/requests.rb +2 -2
- data/lib/types_export.rb +287 -62
- data/lib/vapi_server_sdk/analytics/client.rb +14 -43
- data/lib/vapi_server_sdk/assistants/client.rb +70 -60
- data/lib/vapi_server_sdk/assistants/types/update_assistant_dto_client_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/assistants/types/update_assistant_dto_credentials_item.rb +512 -0
- data/lib/vapi_server_sdk/assistants/types/update_assistant_dto_model.rb +52 -0
- data/lib/vapi_server_sdk/assistants/types/update_assistant_dto_server_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/assistants/types/update_assistant_dto_transcriber.rb +40 -1
- data/lib/vapi_server_sdk/assistants/types/update_assistant_dto_voice.rb +39 -0
- data/lib/vapi_server_sdk/blocks/client.rb +7 -166
- data/lib/vapi_server_sdk/blocks/types/blocks_update_request.rb +109 -0
- data/lib/vapi_server_sdk/calls/client.rb +74 -32
- data/lib/vapi_server_sdk/knowledge_bases/client.rb +393 -0
- data/lib/vapi_server_sdk/knowledge_bases/types/knowledge_bases_create_request.rb +96 -0
- data/lib/vapi_server_sdk/knowledge_bases/types/knowledge_bases_create_response.rb +96 -0
- data/lib/vapi_server_sdk/knowledge_bases/types/knowledge_bases_delete_response.rb +96 -0
- data/lib/vapi_server_sdk/knowledge_bases/types/knowledge_bases_get_response.rb +96 -0
- data/lib/vapi_server_sdk/knowledge_bases/types/knowledge_bases_list_response_item.rb +96 -0
- data/lib/vapi_server_sdk/knowledge_bases/types/knowledge_bases_update_request.rb +96 -0
- data/lib/vapi_server_sdk/knowledge_bases/types/knowledge_bases_update_response.rb +96 -0
- data/lib/vapi_server_sdk/logs/client.rb +94 -6
- data/lib/vapi_server_sdk/phone_numbers/client.rb +7 -69
- data/lib/vapi_server_sdk/phone_numbers/types/phone_numbers_update_request.rb +122 -0
- data/lib/vapi_server_sdk/squads/client.rb +64 -32
- data/lib/vapi_server_sdk/tools/client.rb +7 -87
- data/lib/vapi_server_sdk/tools/types/tools_create_request.rb +39 -0
- data/lib/vapi_server_sdk/tools/types/tools_create_response.rb +39 -0
- data/lib/vapi_server_sdk/tools/types/tools_delete_response.rb +39 -0
- data/lib/vapi_server_sdk/tools/types/tools_get_response.rb +39 -0
- data/lib/vapi_server_sdk/tools/types/tools_list_response_item.rb +39 -0
- data/lib/vapi_server_sdk/tools/types/tools_update_request.rb +200 -0
- data/lib/vapi_server_sdk/tools/types/tools_update_response.rb +39 -0
- data/lib/vapi_server_sdk/types/analytics_query_dto.rb +59 -0
- data/lib/vapi_server_sdk/types/anthropic_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/anthropic_model.rb +21 -13
- data/lib/vapi_server_sdk/types/anthropic_model_model.rb +2 -0
- data/lib/vapi_server_sdk/types/anyscale_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/anyscale_model.rb +21 -13
- data/lib/vapi_server_sdk/types/assembly_ai_credential.rb +111 -0
- data/lib/vapi_server_sdk/types/assembly_ai_transcriber.rb +97 -0
- data/lib/vapi_server_sdk/types/assistant.rb +60 -64
- data/lib/vapi_server_sdk/types/assistant_client_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/types/assistant_credentials_item.rb +510 -0
- data/lib/vapi_server_sdk/types/assistant_custom_endpointing_rule.rb +100 -0
- data/lib/vapi_server_sdk/types/assistant_model.rb +52 -0
- data/lib/vapi_server_sdk/types/assistant_overrides.rb +75 -65
- data/lib/vapi_server_sdk/types/assistant_overrides_client_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/types/assistant_overrides_credentials_item.rb +510 -0
- data/lib/vapi_server_sdk/types/assistant_overrides_model.rb +52 -0
- data/lib/vapi_server_sdk/types/assistant_overrides_server_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/types/assistant_overrides_transcriber.rb +40 -1
- data/lib/vapi_server_sdk/types/assistant_overrides_voice.rb +39 -0
- data/lib/vapi_server_sdk/types/assistant_server_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/types/assistant_transcriber.rb +40 -1
- data/lib/vapi_server_sdk/types/assistant_voice.rb +39 -0
- data/lib/vapi_server_sdk/types/auto_reload_plan.rb +65 -0
- data/lib/vapi_server_sdk/types/azure_blob_storage_bucket_plan.rb +88 -0
- data/lib/vapi_server_sdk/types/azure_credential.rb +146 -0
- data/lib/vapi_server_sdk/types/azure_credential_region.rb +23 -0
- data/lib/vapi_server_sdk/types/azure_credential_service.rb +9 -0
- data/lib/vapi_server_sdk/types/azure_open_ai_credential.rb +20 -2
- data/lib/vapi_server_sdk/types/azure_open_ai_credential_models_item.rb +1 -0
- data/lib/vapi_server_sdk/types/azure_open_ai_credential_region.rb +2 -1
- data/lib/vapi_server_sdk/types/azure_speech_transcriber.rb +62 -0
- data/lib/vapi_server_sdk/types/azure_speech_transcriber_language.rb +152 -0
- data/lib/vapi_server_sdk/types/azure_voice.rb +25 -21
- data/lib/vapi_server_sdk/types/bash_tool.rb +194 -0
- data/lib/vapi_server_sdk/types/bash_tool_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/block_complete_message.rb +29 -4
- data/lib/vapi_server_sdk/types/block_start_message.rb +29 -4
- data/lib/vapi_server_sdk/types/both_custom_endpointing_rule.rb +126 -0
- data/lib/vapi_server_sdk/types/buy_phone_number_dto.rb +25 -29
- data/lib/vapi_server_sdk/types/byo_phone_number.rb +25 -29
- data/lib/vapi_server_sdk/types/byo_sip_trunk_credential.rb +29 -9
- data/lib/vapi_server_sdk/types/call.rb +15 -1
- data/lib/vapi_server_sdk/types/call_ended_reason.rb +83 -43
- data/lib/vapi_server_sdk/types/call_log_privileged.rb +88 -0
- data/lib/vapi_server_sdk/types/call_log_privileged_level.rb +12 -0
- data/lib/vapi_server_sdk/types/call_logs_paginated_response.rb +75 -0
- data/lib/vapi_server_sdk/types/cartesia_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/cartesia_voice.rb +25 -21
- data/lib/vapi_server_sdk/types/cartesia_voice_language.rb +9 -1
- data/lib/vapi_server_sdk/types/cartesia_voice_model.rb +2 -0
- data/lib/vapi_server_sdk/types/cerebras_credential.rb +111 -0
- data/lib/vapi_server_sdk/types/chat_dto.rb +103 -0
- data/lib/vapi_server_sdk/types/chat_service_response.rb +47 -0
- data/lib/vapi_server_sdk/types/client_inbound_message_add_message.rb +25 -3
- data/lib/vapi_server_sdk/types/client_inbound_message_message.rb +13 -0
- data/lib/vapi_server_sdk/types/client_inbound_message_transfer.rb +63 -0
- data/lib/vapi_server_sdk/types/client_inbound_message_transfer_destination.rb +96 -0
- data/lib/vapi_server_sdk/types/{client_message_language_changed.rb → client_message_language_change_detected.rb} +5 -5
- data/lib/vapi_server_sdk/types/client_message_message.rb +22 -9
- data/lib/vapi_server_sdk/types/client_message_tool_calls_tool_with_tool_call_list_item.rb +77 -77
- data/lib/vapi_server_sdk/types/client_message_transfer_update.rb +116 -0
- data/lib/vapi_server_sdk/types/client_message_transfer_update_destination.rb +122 -0
- data/lib/vapi_server_sdk/types/cloudflare_credential.rb +142 -0
- data/lib/vapi_server_sdk/types/cloudflare_r_2_bucket_plan.rb +105 -0
- data/lib/vapi_server_sdk/types/computer_tool.rb +218 -0
- data/lib/vapi_server_sdk/types/computer_tool_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/condition.rb +9 -9
- data/lib/vapi_server_sdk/types/create_anthropic_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_anyscale_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_assembly_ai_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/create_assistant_dto.rb +61 -65
- data/lib/vapi_server_sdk/types/create_assistant_dto_client_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/types/create_assistant_dto_credentials_item.rb +510 -0
- data/lib/vapi_server_sdk/types/create_assistant_dto_model.rb +52 -0
- data/lib/vapi_server_sdk/types/create_assistant_dto_server_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/types/create_assistant_dto_transcriber.rb +40 -1
- data/lib/vapi_server_sdk/types/create_assistant_dto_voice.rb +39 -0
- data/lib/vapi_server_sdk/types/create_azure_credential_dto.rb +104 -0
- data/lib/vapi_server_sdk/types/create_azure_credential_dto_region.rb +23 -0
- data/lib/vapi_server_sdk/types/create_azure_credential_dto_service.rb +9 -0
- data/lib/vapi_server_sdk/types/create_azure_open_ai_credential_dto.rb +22 -11
- data/lib/vapi_server_sdk/types/create_azure_open_ai_credential_dto_models_item.rb +1 -0
- data/lib/vapi_server_sdk/types/create_azure_open_ai_credential_dto_region.rb +2 -1
- data/lib/vapi_server_sdk/types/create_bash_tool_dto.rb +161 -0
- data/lib/vapi_server_sdk/types/create_bash_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/create_byo_phone_number_dto.rb +25 -29
- data/lib/vapi_server_sdk/types/create_byo_sip_trunk_credential_dto.rb +31 -19
- data/lib/vapi_server_sdk/types/create_cartesia_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/{knowledge_base.rb → create_cerebras_credential_dto.rb} +21 -21
- data/lib/vapi_server_sdk/types/create_cloudflare_credential_dto.rb +101 -0
- data/lib/vapi_server_sdk/types/create_computer_tool_dto.rb +185 -0
- data/lib/vapi_server_sdk/types/create_computer_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/create_custom_knowledge_base_dto.rb +137 -0
- data/lib/vapi_server_sdk/types/create_custom_llm_credential_dto.rb +26 -9
- data/lib/vapi_server_sdk/types/create_deep_infra_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_deep_seek_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/create_deepgram_credential_dto.rb +9 -9
- data/lib/vapi_server_sdk/types/create_eleven_labs_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_gcp_credential_dto.rb +9 -21
- data/lib/vapi_server_sdk/types/create_gladia_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_go_high_level_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_google_credential_dto.rb +76 -0
- data/lib/vapi_server_sdk/types/create_groq_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_inflection_ai_credential_dto.rb +76 -0
- data/lib/vapi_server_sdk/types/create_langfuse_credential_dto.rb +83 -0
- data/lib/vapi_server_sdk/types/create_lmnt_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_make_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_open_ai_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_open_router_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_org_dto.rb +45 -26
- data/lib/vapi_server_sdk/types/create_org_dto_channel.rb +10 -0
- data/lib/vapi_server_sdk/types/create_perplexity_ai_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_play_ht_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_rime_ai_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_runpod_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_s_3_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/create_smallest_ai_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/create_tavus_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/create_text_editor_tool_dto.rb +161 -0
- data/lib/vapi_server_sdk/types/create_text_editor_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/create_together_ai_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_trieve_knowledge_base_dto.rb +109 -0
- data/lib/vapi_server_sdk/types/create_twilio_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_twilio_phone_number_dto.rb +25 -29
- data/lib/vapi_server_sdk/types/create_vapi_phone_number_dto.rb +44 -30
- data/lib/vapi_server_sdk/types/create_vonage_credential_dto.rb +11 -9
- data/lib/vapi_server_sdk/types/create_vonage_phone_number_dto.rb +25 -29
- data/lib/vapi_server_sdk/types/create_webhook_credential_dto.rb +73 -0
- data/lib/vapi_server_sdk/types/create_x_ai_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/custom_knowledge_base.rb +154 -0
- data/lib/vapi_server_sdk/types/custom_llm_credential.rb +46 -3
- data/lib/vapi_server_sdk/types/custom_llm_model.rb +23 -15
- data/lib/vapi_server_sdk/types/custom_message.rb +92 -0
- data/lib/vapi_server_sdk/types/custom_transcriber.rb +125 -0
- data/lib/vapi_server_sdk/types/custom_voice.rb +132 -0
- data/lib/vapi_server_sdk/types/customer_custom_endpointing_rule.rb +100 -0
- data/lib/vapi_server_sdk/types/deep_infra_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/deep_infra_model.rb +21 -13
- data/lib/vapi_server_sdk/types/deep_seek_credential.rb +111 -0
- data/lib/vapi_server_sdk/types/deep_seek_model.rb +177 -0
- data/lib/vapi_server_sdk/types/deep_seek_model_tools_item.rb +159 -0
- data/lib/vapi_server_sdk/types/deepgram_credential.rb +9 -1
- data/lib/vapi_server_sdk/types/deepgram_transcriber.rb +69 -11
- data/lib/vapi_server_sdk/types/deepgram_voice.rb +17 -17
- data/lib/vapi_server_sdk/types/eleven_labs_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/eleven_labs_voice.rb +28 -24
- data/lib/vapi_server_sdk/types/eleven_labs_voice_model.rb +2 -0
- data/lib/vapi_server_sdk/types/fallback_azure_voice.rb +100 -0
- data/lib/vapi_server_sdk/types/fallback_azure_voice_id.rb +53 -0
- data/lib/vapi_server_sdk/types/fallback_azure_voice_voice_id.rb +9 -0
- data/lib/vapi_server_sdk/types/fallback_cartesia_voice.rb +100 -0
- data/lib/vapi_server_sdk/types/fallback_cartesia_voice_language.rb +23 -0
- data/lib/vapi_server_sdk/types/fallback_cartesia_voice_model.rb +12 -0
- data/lib/vapi_server_sdk/types/fallback_custom_voice.rb +117 -0
- data/lib/vapi_server_sdk/types/fallback_deepgram_voice.rb +81 -0
- data/lib/vapi_server_sdk/types/fallback_deepgram_voice_id.rb +53 -0
- data/lib/vapi_server_sdk/types/fallback_deepgram_voice_id_enum.rb +18 -0
- data/lib/vapi_server_sdk/types/fallback_eleven_labs_voice.rb +164 -0
- data/lib/vapi_server_sdk/types/fallback_eleven_labs_voice_id.rb +54 -0
- data/lib/vapi_server_sdk/types/fallback_eleven_labs_voice_id_enum.rb +21 -0
- data/lib/vapi_server_sdk/types/fallback_eleven_labs_voice_model.rb +14 -0
- data/lib/vapi_server_sdk/types/fallback_lmnt_voice.rb +88 -0
- data/lib/vapi_server_sdk/types/fallback_lmnt_voice_id.rb +53 -0
- data/lib/vapi_server_sdk/types/fallback_lmnt_voice_id_enum.rb +8 -0
- data/lib/vapi_server_sdk/types/fallback_neets_voice.rb +81 -0
- data/lib/vapi_server_sdk/types/fallback_neets_voice_id.rb +53 -0
- data/lib/vapi_server_sdk/types/fallback_neets_voice_id_enum.rb +7 -0
- data/lib/vapi_server_sdk/types/fallback_open_ai_voice.rb +87 -0
- data/lib/vapi_server_sdk/types/fallback_open_ai_voice_id.rb +20 -0
- data/lib/vapi_server_sdk/types/fallback_plan.rb +61 -0
- data/lib/vapi_server_sdk/types/fallback_plan_voices_item.rb +224 -0
- data/lib/vapi_server_sdk/types/fallback_play_ht_voice.rb +172 -0
- data/lib/vapi_server_sdk/types/fallback_play_ht_voice_emotion.rb +19 -0
- data/lib/vapi_server_sdk/types/fallback_play_ht_voice_id.rb +53 -0
- data/lib/vapi_server_sdk/types/fallback_play_ht_voice_id_enum.rb +16 -0
- data/lib/vapi_server_sdk/types/fallback_play_ht_voice_language.rb +44 -0
- data/lib/vapi_server_sdk/types/fallback_play_ht_voice_model.rb +10 -0
- data/lib/vapi_server_sdk/types/fallback_rime_ai_voice.rb +96 -0
- data/lib/vapi_server_sdk/types/fallback_rime_ai_voice_id.rb +53 -0
- data/lib/vapi_server_sdk/types/fallback_rime_ai_voice_id_enum.rb +87 -0
- data/lib/vapi_server_sdk/types/fallback_rime_ai_voice_model.rb +9 -0
- data/lib/vapi_server_sdk/types/fallback_smallest_ai_voice.rb +95 -0
- data/lib/vapi_server_sdk/types/fallback_smallest_ai_voice_id.rb +53 -0
- data/lib/vapi_server_sdk/types/fallback_smallest_ai_voice_id_enum.rb +31 -0
- data/lib/vapi_server_sdk/types/fallback_tavus_voice.rb +147 -0
- data/lib/vapi_server_sdk/types/fallback_tavus_voice_voice_id.rb +53 -0
- data/lib/vapi_server_sdk/types/format_plan.rb +0 -2
- data/lib/vapi_server_sdk/types/function_tool_with_tool_call.rb +10 -1
- data/lib/vapi_server_sdk/types/gcp_credential.rb +2 -2
- data/lib/vapi_server_sdk/types/gemini_multimodal_live_prebuilt_voice_config.rb +58 -0
- data/lib/vapi_server_sdk/types/gemini_multimodal_live_prebuilt_voice_config_voice_name.rb +11 -0
- data/lib/vapi_server_sdk/types/gemini_multimodal_live_speech_config.rb +61 -0
- data/lib/vapi_server_sdk/types/gemini_multimodal_live_voice_config.rb +61 -0
- data/lib/vapi_server_sdk/types/ghl_tool_with_tool_call.rb +9 -1
- data/lib/vapi_server_sdk/types/gladia_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/go_high_level_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/google_credential.rb +113 -0
- data/lib/vapi_server_sdk/types/google_model.rb +194 -0
- data/lib/vapi_server_sdk/types/google_model_model.rb +14 -0
- data/lib/vapi_server_sdk/types/google_model_tools_item.rb +159 -0
- data/lib/vapi_server_sdk/types/google_realtime_config.rb +121 -0
- data/lib/vapi_server_sdk/types/groq_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/groq_model.rb +21 -13
- data/lib/vapi_server_sdk/types/groq_model_model.rb +1 -3
- data/lib/vapi_server_sdk/types/import_twilio_phone_number_dto.rb +25 -29
- data/lib/vapi_server_sdk/types/import_vonage_phone_number_dto.rb +25 -29
- data/lib/vapi_server_sdk/types/inflection_ai_credential.rb +113 -0
- data/lib/vapi_server_sdk/types/inflection_ai_model.rb +177 -0
- data/lib/vapi_server_sdk/types/inflection_ai_model_tools_item.rb +159 -0
- data/lib/vapi_server_sdk/types/invite_user_dto.rb +9 -9
- data/lib/vapi_server_sdk/types/knowledge_base_response_document.rb +74 -0
- data/lib/vapi_server_sdk/types/langfuse_credential.rb +130 -0
- data/lib/vapi_server_sdk/types/lmnt_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/lmnt_voice.rb +18 -14
- data/lib/vapi_server_sdk/types/log.rb +12 -4
- data/lib/vapi_server_sdk/types/log_resource.rb +8 -0
- data/lib/vapi_server_sdk/types/make_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/make_tool_with_tool_call.rb +9 -1
- data/lib/vapi_server_sdk/types/neets_voice.rb +17 -17
- data/lib/vapi_server_sdk/types/o_auth_2_authentication_plan.rb +79 -0
- data/lib/vapi_server_sdk/types/oauth_2_authentication_session.rb +68 -0
- data/lib/vapi_server_sdk/types/open_ai_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/open_ai_function.rb +30 -4
- data/lib/vapi_server_sdk/types/open_ai_model.rb +23 -15
- data/lib/vapi_server_sdk/types/open_ai_model_fallback_models_item.rb +8 -0
- data/lib/vapi_server_sdk/types/open_ai_model_model.rb +8 -0
- data/lib/vapi_server_sdk/types/open_ai_voice.rb +22 -14
- data/lib/vapi_server_sdk/types/open_ai_voice_id.rb +7 -0
- data/lib/vapi_server_sdk/types/open_router_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/open_router_model.rb +21 -13
- data/lib/vapi_server_sdk/types/org.rb +59 -26
- data/lib/vapi_server_sdk/types/org_channel.rb +10 -0
- data/lib/vapi_server_sdk/types/org_with_org_user.rb +262 -0
- data/lib/vapi_server_sdk/types/org_with_org_user_channel.rb +10 -0
- data/lib/vapi_server_sdk/types/org_with_org_user_role.rb +9 -0
- data/lib/vapi_server_sdk/types/perplexity_ai_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/perplexity_ai_model.rb +21 -13
- data/lib/vapi_server_sdk/types/phone_number_paginated_response.rb +75 -0
- data/lib/vapi_server_sdk/types/phone_number_paginated_response_results_item.rb +121 -0
- data/lib/vapi_server_sdk/types/play_ht_credential.rb +13 -2
- data/lib/vapi_server_sdk/types/play_ht_voice.rb +37 -15
- data/lib/vapi_server_sdk/types/play_ht_voice_language.rb +44 -0
- data/lib/vapi_server_sdk/types/play_ht_voice_model.rb +10 -0
- data/lib/vapi_server_sdk/types/regex_option.rb +2 -2
- data/lib/vapi_server_sdk/types/regex_option_type.rb +1 -1
- data/lib/vapi_server_sdk/types/regex_replacement.rb +14 -4
- data/lib/vapi_server_sdk/types/rime_ai_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/rime_ai_voice.rb +18 -14
- data/lib/vapi_server_sdk/types/runpod_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/s_3_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/server.rb +16 -2
- data/lib/vapi_server_sdk/types/server_message_end_of_call_report_ended_reason.rb +83 -43
- data/lib/vapi_server_sdk/types/server_message_knowledge_base_request.rb +195 -0
- data/lib/vapi_server_sdk/types/server_message_knowledge_base_request_messages_item.rb +97 -0
- data/lib/vapi_server_sdk/types/{server_message_language_changed_phone_number.rb → server_message_knowledge_base_request_phone_number.rb} +8 -8
- data/lib/vapi_server_sdk/types/{server_message_language_changed.rb → server_message_language_change_detected.rb} +10 -10
- data/lib/vapi_server_sdk/types/server_message_language_change_detected_phone_number.rb +125 -0
- data/lib/vapi_server_sdk/types/server_message_message.rb +22 -9
- data/lib/vapi_server_sdk/types/server_message_response_knowledge_base_request.rb +81 -0
- data/lib/vapi_server_sdk/types/server_message_response_message_response.rb +14 -0
- data/lib/vapi_server_sdk/types/server_message_status_update.rb +11 -1
- data/lib/vapi_server_sdk/types/server_message_status_update_ended_reason.rb +83 -43
- data/lib/vapi_server_sdk/types/server_message_tool_calls_tool_with_tool_call_list_item.rb +77 -77
- data/lib/vapi_server_sdk/types/server_message_transfer_update.rb +18 -2
- data/lib/vapi_server_sdk/types/sip_authentication.rb +80 -0
- data/lib/vapi_server_sdk/types/smallest_ai_credential.rb +111 -0
- data/lib/vapi_server_sdk/types/smallest_ai_voice.rb +117 -0
- data/lib/vapi_server_sdk/types/smallest_ai_voice_id.rb +53 -0
- data/lib/vapi_server_sdk/types/smallest_ai_voice_id_enum.rb +31 -0
- data/lib/vapi_server_sdk/types/start_speaking_plan.rb +54 -10
- data/lib/vapi_server_sdk/types/start_speaking_plan_custom_endpointing_rules_item.rb +108 -0
- data/lib/vapi_server_sdk/types/structured_data_plan.rb +28 -10
- data/lib/vapi_server_sdk/types/subscription.rb +336 -0
- data/lib/vapi_server_sdk/types/subscription_status.rb +10 -0
- data/lib/vapi_server_sdk/types/subscription_type.rb +10 -0
- data/lib/vapi_server_sdk/types/success_evaluation_plan.rb +38 -16
- data/lib/vapi_server_sdk/types/summary_plan.rb +26 -8
- data/lib/vapi_server_sdk/types/sync_voice_library_dto_providers_item.rb +2 -0
- data/lib/vapi_server_sdk/types/tavus_conversation_properties.rb +173 -0
- data/lib/vapi_server_sdk/types/tavus_credential.rb +111 -0
- data/lib/vapi_server_sdk/types/tavus_voice.rb +163 -0
- data/lib/vapi_server_sdk/types/tavus_voice_voice_id.rb +53 -0
- data/lib/vapi_server_sdk/types/text_content.rb +73 -0
- data/lib/vapi_server_sdk/types/text_content_language.rb +191 -0
- data/lib/vapi_server_sdk/types/text_editor_tool.rb +194 -0
- data/lib/vapi_server_sdk/types/text_editor_tool_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/together_ai_credential.rb +13 -3
- data/lib/vapi_server_sdk/types/together_ai_model.rb +21 -13
- data/lib/vapi_server_sdk/types/tool_message_complete.rb +29 -3
- data/lib/vapi_server_sdk/types/tool_message_delayed.rb +30 -3
- data/lib/vapi_server_sdk/types/tool_message_failed.rb +30 -3
- data/lib/vapi_server_sdk/types/tool_message_start.rb +29 -4
- data/lib/vapi_server_sdk/types/transfer_destination_assistant.rb +79 -33
- data/lib/vapi_server_sdk/types/transfer_destination_assistant_message.rb +65 -0
- data/lib/vapi_server_sdk/types/transfer_destination_number.rb +56 -24
- data/lib/vapi_server_sdk/types/transfer_destination_number_message.rb +65 -0
- data/lib/vapi_server_sdk/types/transfer_destination_sip.rb +60 -15
- data/lib/vapi_server_sdk/types/transfer_destination_sip_message.rb +65 -0
- data/lib/vapi_server_sdk/types/transfer_destination_step.rb +28 -14
- data/lib/vapi_server_sdk/types/transfer_destination_step_message.rb +65 -0
- data/lib/vapi_server_sdk/types/transfer_plan.rb +161 -0
- data/lib/vapi_server_sdk/types/transfer_plan_message.rb +59 -0
- data/lib/vapi_server_sdk/types/transfer_plan_mode.rb +32 -0
- data/lib/vapi_server_sdk/types/transport.rb +70 -0
- data/lib/vapi_server_sdk/types/transport_cost.rb +12 -2
- data/lib/vapi_server_sdk/types/transport_cost_provider.rb +9 -0
- data/lib/vapi_server_sdk/types/transport_provider.rb +11 -0
- data/lib/vapi_server_sdk/types/trieve_knowledge_base.rb +125 -0
- data/lib/vapi_server_sdk/types/trieve_knowledge_base_vector_store_create_plan.rb +109 -0
- data/lib/vapi_server_sdk/types/trieve_knowledge_base_vector_store_search_plan.rb +95 -0
- data/lib/vapi_server_sdk/types/trieve_knowledge_base_vector_store_search_plan_search_type.rb +12 -0
- data/lib/vapi_server_sdk/types/twilio_credential.rb +12 -2
- data/lib/vapi_server_sdk/types/twilio_phone_number.rb +25 -29
- data/lib/vapi_server_sdk/types/update_anthropic_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_anyscale_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_assembly_ai_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/update_azure_credential_dto.rb +105 -0
- data/lib/vapi_server_sdk/types/update_azure_credential_dto_region.rb +23 -0
- data/lib/vapi_server_sdk/types/update_azure_credential_dto_service.rb +9 -0
- data/lib/vapi_server_sdk/types/update_azure_open_ai_credential_dto.rb +29 -18
- data/lib/vapi_server_sdk/types/update_azure_open_ai_credential_dto_models_item.rb +1 -0
- data/lib/vapi_server_sdk/types/update_azure_open_ai_credential_dto_region.rb +2 -1
- data/lib/vapi_server_sdk/types/update_bash_tool_dto.rb +161 -0
- data/lib/vapi_server_sdk/types/update_bash_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/update_byo_phone_number_dto.rb +187 -0
- data/lib/vapi_server_sdk/types/update_byo_phone_number_dto_fallback_destination.rb +101 -0
- data/lib/vapi_server_sdk/types/update_byo_sip_trunk_credential_dto.rb +30 -18
- data/lib/vapi_server_sdk/types/update_cartesia_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_cerebras_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/update_cloudflare_credential_dto.rb +101 -0
- data/lib/vapi_server_sdk/types/update_computer_tool_dto.rb +185 -0
- data/lib/vapi_server_sdk/types/update_computer_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/update_conversation_block_dto.rb +206 -0
- data/lib/vapi_server_sdk/types/update_conversation_block_dto_messages_item.rb +95 -0
- data/lib/vapi_server_sdk/types/update_custom_knowledge_base_dto.rb +139 -0
- data/lib/vapi_server_sdk/types/update_custom_llm_credential_dto.rb +28 -11
- data/lib/vapi_server_sdk/types/update_deep_infra_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_deep_seek_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/update_deepgram_credential_dto.rb +11 -11
- data/lib/vapi_server_sdk/types/update_dtmf_tool_dto.rb +139 -0
- data/lib/vapi_server_sdk/types/update_dtmf_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/update_eleven_labs_credential_dto.rb +20 -11
- data/lib/vapi_server_sdk/types/update_end_call_tool_dto.rb +139 -0
- data/lib/vapi_server_sdk/types/update_end_call_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/update_function_tool_dto.rb +139 -0
- data/lib/vapi_server_sdk/types/update_function_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/update_gcp_credential_dto.rb +6 -18
- data/lib/vapi_server_sdk/types/update_ghl_tool_dto.rb +159 -0
- data/lib/vapi_server_sdk/types/update_ghl_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/update_gladia_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_go_high_level_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_google_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/update_groq_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_inflection_ai_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/update_langfuse_credential_dto.rb +83 -0
- data/lib/vapi_server_sdk/types/update_lmnt_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_make_credential_dto.rb +17 -15
- data/lib/vapi_server_sdk/types/update_make_tool_dto.rb +159 -0
- data/lib/vapi_server_sdk/types/update_make_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/update_open_ai_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_open_router_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_org_dto.rb +45 -26
- data/lib/vapi_server_sdk/types/update_org_dto_channel.rb +10 -0
- data/lib/vapi_server_sdk/types/update_output_tool_dto.rb +139 -0
- data/lib/vapi_server_sdk/types/update_output_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/update_perplexity_ai_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_play_ht_credential_dto.rb +15 -13
- data/lib/vapi_server_sdk/types/update_rime_ai_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_runpod_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_s_3_credential_dto.rb +24 -22
- data/lib/vapi_server_sdk/types/update_smallest_ai_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/update_tavus_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/update_text_editor_tool_dto.rb +161 -0
- data/lib/vapi_server_sdk/types/update_text_editor_tool_dto_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/update_together_ai_credential_dto.rb +13 -11
- data/lib/vapi_server_sdk/types/update_token_dto.rb +81 -0
- data/lib/vapi_server_sdk/types/update_token_dto_tag.rb +9 -0
- data/lib/vapi_server_sdk/types/update_tool_call_block_dto.rb +168 -0
- data/lib/vapi_server_sdk/types/update_tool_call_block_dto_messages_item.rb +94 -0
- data/lib/vapi_server_sdk/types/update_tool_call_block_dto_tool.rb +161 -0
- data/lib/vapi_server_sdk/types/update_transfer_call_tool_dto.rb +161 -0
- data/lib/vapi_server_sdk/types/update_transfer_call_tool_dto_destinations_item.rb +121 -0
- data/lib/vapi_server_sdk/types/update_transfer_call_tool_dto_messages_item.rb +121 -0
- data/lib/vapi_server_sdk/types/update_trieve_knowledge_base_dto.rb +109 -0
- data/lib/vapi_server_sdk/types/update_twilio_credential_dto.rb +15 -13
- data/lib/vapi_server_sdk/types/update_twilio_phone_number_dto.rb +163 -0
- data/lib/vapi_server_sdk/types/update_twilio_phone_number_dto_fallback_destination.rb +101 -0
- data/lib/vapi_server_sdk/types/update_vapi_phone_number_dto.rb +169 -0
- data/lib/vapi_server_sdk/types/update_vapi_phone_number_dto_fallback_destination.rb +101 -0
- data/lib/vapi_server_sdk/types/update_vonage_credential_dto.rb +15 -13
- data/lib/vapi_server_sdk/types/update_vonage_phone_number_dto.rb +157 -0
- data/lib/vapi_server_sdk/types/update_vonage_phone_number_dto_fallback_destination.rb +101 -0
- data/lib/vapi_server_sdk/types/update_workflow_block_dto.rb +154 -0
- data/lib/vapi_server_sdk/types/update_workflow_block_dto_messages_item.rb +94 -0
- data/lib/vapi_server_sdk/types/update_workflow_block_dto_steps_item.rb +94 -0
- data/lib/vapi_server_sdk/types/update_x_ai_credential_dto.rb +67 -0
- data/lib/vapi_server_sdk/types/vapi_cost.rb +10 -2
- data/lib/vapi_server_sdk/types/vapi_cost_sub_type.rb +9 -0
- data/lib/vapi_server_sdk/types/vapi_model.rb +24 -16
- data/lib/vapi_server_sdk/types/vapi_phone_number.rb +44 -30
- data/lib/vapi_server_sdk/types/vonage_credential.rb +12 -2
- data/lib/vapi_server_sdk/types/vonage_phone_number.rb +25 -29
- data/lib/vapi_server_sdk/types/webhook_credential.rb +134 -0
- data/lib/vapi_server_sdk/types/x_ai_credential.rb +113 -0
- data/lib/vapi_server_sdk/types/xai_model.rb +177 -0
- data/lib/vapi_server_sdk/types/xai_model_tools_item.rb +159 -0
- data/lib/vapi_server_sdk.rb +7 -0
- metadata +240 -14
- data/lib/vapi_server_sdk/blocks/types/update_block_dto_messages_item.rb +0 -96
- data/lib/vapi_server_sdk/blocks/types/update_block_dto_steps_item.rb +0 -96
- data/lib/vapi_server_sdk/blocks/types/update_block_dto_tool.rb +0 -163
- data/lib/vapi_server_sdk/phone_numbers/types/update_phone_number_dto_fallback_destination.rb +0 -103
- data/lib/vapi_server_sdk/tools/types/update_tool_dto_messages_item.rb +0 -122
@@ -18,6 +18,8 @@ module Vapi
|
|
18
18
|
attr_reader :created_at
|
19
19
|
# @return [DateTime] This is the ISO 8601 date-time string of when the assistant was last updated.
|
20
20
|
attr_reader :updated_at
|
21
|
+
# @return [String] This is the name of credential. This is just for your reference.
|
22
|
+
attr_reader :name
|
21
23
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
22
24
|
attr_reader :additional_properties
|
23
25
|
# @return [Object]
|
@@ -32,15 +34,17 @@ module Vapi
|
|
32
34
|
# @param org_id [String] This is the unique identifier for the org that this credential belongs to.
|
33
35
|
# @param created_at [DateTime] This is the ISO 8601 date-time string of when the credential was created.
|
34
36
|
# @param updated_at [DateTime] This is the ISO 8601 date-time string of when the assistant was last updated.
|
37
|
+
# @param name [String] This is the name of credential. This is just for your reference.
|
35
38
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
36
39
|
# @return [Vapi::RimeAiCredential]
|
37
|
-
def initialize(provider:, api_key:, id:, org_id:, created_at:, updated_at:, additional_properties: nil)
|
40
|
+
def initialize(provider:, api_key:, id:, org_id:, created_at:, updated_at:, name: OMIT, additional_properties: nil)
|
38
41
|
@provider = provider
|
39
42
|
@api_key = api_key
|
40
43
|
@id = id
|
41
44
|
@org_id = org_id
|
42
45
|
@created_at = created_at
|
43
46
|
@updated_at = updated_at
|
47
|
+
@name = name if name != OMIT
|
44
48
|
@additional_properties = additional_properties
|
45
49
|
@_field_set = {
|
46
50
|
"provider": provider,
|
@@ -48,8 +52,11 @@ module Vapi
|
|
48
52
|
"id": id,
|
49
53
|
"orgId": org_id,
|
50
54
|
"createdAt": created_at,
|
51
|
-
"updatedAt": updated_at
|
52
|
-
|
55
|
+
"updatedAt": updated_at,
|
56
|
+
"name": name
|
57
|
+
}.reject do |_k, v|
|
58
|
+
v == OMIT
|
59
|
+
end
|
53
60
|
end
|
54
61
|
|
55
62
|
# Deserialize a JSON object to an instance of RimeAiCredential
|
@@ -65,6 +72,7 @@ module Vapi
|
|
65
72
|
org_id = parsed_json["orgId"]
|
66
73
|
created_at = (DateTime.parse(parsed_json["createdAt"]) unless parsed_json["createdAt"].nil?)
|
67
74
|
updated_at = (DateTime.parse(parsed_json["updatedAt"]) unless parsed_json["updatedAt"].nil?)
|
75
|
+
name = parsed_json["name"]
|
68
76
|
new(
|
69
77
|
provider: provider,
|
70
78
|
api_key: api_key,
|
@@ -72,6 +80,7 @@ module Vapi
|
|
72
80
|
org_id: org_id,
|
73
81
|
created_at: created_at,
|
74
82
|
updated_at: updated_at,
|
83
|
+
name: name,
|
75
84
|
additional_properties: struct
|
76
85
|
)
|
77
86
|
end
|
@@ -96,6 +105,7 @@ module Vapi
|
|
96
105
|
obj.org_id.is_a?(String) != false || raise("Passed value for field obj.org_id is not the expected type, validation failed.")
|
97
106
|
obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
98
107
|
obj.updated_at.is_a?(DateTime) != false || raise("Passed value for field obj.updated_at is not the expected type, validation failed.")
|
108
|
+
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
99
109
|
end
|
100
110
|
end
|
101
111
|
end
|
@@ -3,15 +3,12 @@
|
|
3
3
|
require_relative "rime_ai_voice_id"
|
4
4
|
require_relative "rime_ai_voice_model"
|
5
5
|
require_relative "chunk_plan"
|
6
|
+
require_relative "fallback_plan"
|
6
7
|
require "ostruct"
|
7
8
|
require "json"
|
8
9
|
|
9
10
|
module Vapi
|
10
11
|
class RimeAiVoice
|
11
|
-
# @return [Boolean] This determines whether fillers are injected into the model output before
|
12
|
-
# inputting it into the voice provider.
|
13
|
-
# Default `false` because you can achieve better results with prompting the model.
|
14
|
-
attr_reader :filler_injection_enabled
|
15
12
|
# @return [Vapi::RimeAiVoiceId] This is the provider-specific ID that will be used.
|
16
13
|
attr_reader :voice_id
|
17
14
|
# @return [Vapi::RimeAiVoiceModel] This is the model that will be used. Defaults to 'v1' when not specified.
|
@@ -21,6 +18,9 @@ module Vapi
|
|
21
18
|
# @return [Vapi::ChunkPlan] This is the plan for chunking the model output before it is sent to the voice
|
22
19
|
# provider.
|
23
20
|
attr_reader :chunk_plan
|
21
|
+
# @return [Vapi::FallbackPlan] This is the plan for voice provider fallbacks in the event that the primary
|
22
|
+
# voice provider fails.
|
23
|
+
attr_reader :fallback_plan
|
24
24
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
25
25
|
attr_reader :additional_properties
|
26
26
|
# @return [Object]
|
@@ -29,30 +29,29 @@ module Vapi
|
|
29
29
|
|
30
30
|
OMIT = Object.new
|
31
31
|
|
32
|
-
# @param filler_injection_enabled [Boolean] This determines whether fillers are injected into the model output before
|
33
|
-
# inputting it into the voice provider.
|
34
|
-
# Default `false` because you can achieve better results with prompting the model.
|
35
32
|
# @param voice_id [Vapi::RimeAiVoiceId] This is the provider-specific ID that will be used.
|
36
33
|
# @param model [Vapi::RimeAiVoiceModel] This is the model that will be used. Defaults to 'v1' when not specified.
|
37
34
|
# @param speed [Float] This is the speed multiplier that will be used.
|
38
35
|
# @param chunk_plan [Vapi::ChunkPlan] This is the plan for chunking the model output before it is sent to the voice
|
39
36
|
# provider.
|
37
|
+
# @param fallback_plan [Vapi::FallbackPlan] This is the plan for voice provider fallbacks in the event that the primary
|
38
|
+
# voice provider fails.
|
40
39
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
41
40
|
# @return [Vapi::RimeAiVoice]
|
42
|
-
def initialize(voice_id:,
|
41
|
+
def initialize(voice_id:, model: OMIT, speed: OMIT, chunk_plan: OMIT, fallback_plan: OMIT,
|
43
42
|
additional_properties: nil)
|
44
|
-
@filler_injection_enabled = filler_injection_enabled if filler_injection_enabled != OMIT
|
45
43
|
@voice_id = voice_id
|
46
44
|
@model = model if model != OMIT
|
47
45
|
@speed = speed if speed != OMIT
|
48
46
|
@chunk_plan = chunk_plan if chunk_plan != OMIT
|
47
|
+
@fallback_plan = fallback_plan if fallback_plan != OMIT
|
49
48
|
@additional_properties = additional_properties
|
50
49
|
@_field_set = {
|
51
|
-
"fillerInjectionEnabled": filler_injection_enabled,
|
52
50
|
"voiceId": voice_id,
|
53
51
|
"model": model,
|
54
52
|
"speed": speed,
|
55
|
-
"chunkPlan": chunk_plan
|
53
|
+
"chunkPlan": chunk_plan,
|
54
|
+
"fallbackPlan": fallback_plan
|
56
55
|
}.reject do |_k, v|
|
57
56
|
v == OMIT
|
58
57
|
end
|
@@ -65,7 +64,6 @@ module Vapi
|
|
65
64
|
def self.from_json(json_object:)
|
66
65
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
67
66
|
parsed_json = JSON.parse(json_object)
|
68
|
-
filler_injection_enabled = parsed_json["fillerInjectionEnabled"]
|
69
67
|
if parsed_json["voiceId"].nil?
|
70
68
|
voice_id = nil
|
71
69
|
else
|
@@ -80,12 +78,18 @@ module Vapi
|
|
80
78
|
chunk_plan = parsed_json["chunkPlan"].to_json
|
81
79
|
chunk_plan = Vapi::ChunkPlan.from_json(json_object: chunk_plan)
|
82
80
|
end
|
81
|
+
if parsed_json["fallbackPlan"].nil?
|
82
|
+
fallback_plan = nil
|
83
|
+
else
|
84
|
+
fallback_plan = parsed_json["fallbackPlan"].to_json
|
85
|
+
fallback_plan = Vapi::FallbackPlan.from_json(json_object: fallback_plan)
|
86
|
+
end
|
83
87
|
new(
|
84
|
-
filler_injection_enabled: filler_injection_enabled,
|
85
88
|
voice_id: voice_id,
|
86
89
|
model: model,
|
87
90
|
speed: speed,
|
88
91
|
chunk_plan: chunk_plan,
|
92
|
+
fallback_plan: fallback_plan,
|
89
93
|
additional_properties: struct
|
90
94
|
)
|
91
95
|
end
|
@@ -104,11 +108,11 @@ module Vapi
|
|
104
108
|
# @param obj [Object]
|
105
109
|
# @return [Void]
|
106
110
|
def self.validate_raw(obj:)
|
107
|
-
obj.filler_injection_enabled&.is_a?(Boolean) != false || raise("Passed value for field obj.filler_injection_enabled is not the expected type, validation failed.")
|
108
111
|
Vapi::RimeAiVoiceId.validate_raw(obj: obj.voice_id)
|
109
112
|
obj.model&.is_a?(Vapi::RimeAiVoiceModel) != false || raise("Passed value for field obj.model is not the expected type, validation failed.")
|
110
113
|
obj.speed&.is_a?(Float) != false || raise("Passed value for field obj.speed is not the expected type, validation failed.")
|
111
114
|
obj.chunk_plan.nil? || Vapi::ChunkPlan.validate_raw(obj: obj.chunk_plan)
|
115
|
+
obj.fallback_plan.nil? || Vapi::FallbackPlan.validate_raw(obj: obj.fallback_plan)
|
112
116
|
end
|
113
117
|
end
|
114
118
|
end
|
@@ -18,6 +18,8 @@ module Vapi
|
|
18
18
|
attr_reader :created_at
|
19
19
|
# @return [DateTime] This is the ISO 8601 date-time string of when the assistant was last updated.
|
20
20
|
attr_reader :updated_at
|
21
|
+
# @return [String] This is the name of credential. This is just for your reference.
|
22
|
+
attr_reader :name
|
21
23
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
22
24
|
attr_reader :additional_properties
|
23
25
|
# @return [Object]
|
@@ -32,15 +34,17 @@ module Vapi
|
|
32
34
|
# @param org_id [String] This is the unique identifier for the org that this credential belongs to.
|
33
35
|
# @param created_at [DateTime] This is the ISO 8601 date-time string of when the credential was created.
|
34
36
|
# @param updated_at [DateTime] This is the ISO 8601 date-time string of when the assistant was last updated.
|
37
|
+
# @param name [String] This is the name of credential. This is just for your reference.
|
35
38
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
36
39
|
# @return [Vapi::RunpodCredential]
|
37
|
-
def initialize(provider:, api_key:, id:, org_id:, created_at:, updated_at:, additional_properties: nil)
|
40
|
+
def initialize(provider:, api_key:, id:, org_id:, created_at:, updated_at:, name: OMIT, additional_properties: nil)
|
38
41
|
@provider = provider
|
39
42
|
@api_key = api_key
|
40
43
|
@id = id
|
41
44
|
@org_id = org_id
|
42
45
|
@created_at = created_at
|
43
46
|
@updated_at = updated_at
|
47
|
+
@name = name if name != OMIT
|
44
48
|
@additional_properties = additional_properties
|
45
49
|
@_field_set = {
|
46
50
|
"provider": provider,
|
@@ -48,8 +52,11 @@ module Vapi
|
|
48
52
|
"id": id,
|
49
53
|
"orgId": org_id,
|
50
54
|
"createdAt": created_at,
|
51
|
-
"updatedAt": updated_at
|
52
|
-
|
55
|
+
"updatedAt": updated_at,
|
56
|
+
"name": name
|
57
|
+
}.reject do |_k, v|
|
58
|
+
v == OMIT
|
59
|
+
end
|
53
60
|
end
|
54
61
|
|
55
62
|
# Deserialize a JSON object to an instance of RunpodCredential
|
@@ -65,6 +72,7 @@ module Vapi
|
|
65
72
|
org_id = parsed_json["orgId"]
|
66
73
|
created_at = (DateTime.parse(parsed_json["createdAt"]) unless parsed_json["createdAt"].nil?)
|
67
74
|
updated_at = (DateTime.parse(parsed_json["updatedAt"]) unless parsed_json["updatedAt"].nil?)
|
75
|
+
name = parsed_json["name"]
|
68
76
|
new(
|
69
77
|
provider: provider,
|
70
78
|
api_key: api_key,
|
@@ -72,6 +80,7 @@ module Vapi
|
|
72
80
|
org_id: org_id,
|
73
81
|
created_at: created_at,
|
74
82
|
updated_at: updated_at,
|
83
|
+
name: name,
|
75
84
|
additional_properties: struct
|
76
85
|
)
|
77
86
|
end
|
@@ -96,6 +105,7 @@ module Vapi
|
|
96
105
|
obj.org_id.is_a?(String) != false || raise("Passed value for field obj.org_id is not the expected type, validation failed.")
|
97
106
|
obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
98
107
|
obj.updated_at.is_a?(DateTime) != false || raise("Passed value for field obj.updated_at is not the expected type, validation failed.")
|
108
|
+
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
99
109
|
end
|
100
110
|
end
|
101
111
|
end
|
@@ -26,6 +26,8 @@ module Vapi
|
|
26
26
|
attr_reader :created_at
|
27
27
|
# @return [DateTime] This is the ISO 8601 date-time string of when the assistant was last updated.
|
28
28
|
attr_reader :updated_at
|
29
|
+
# @return [String] This is the name of credential. This is just for your reference.
|
30
|
+
attr_reader :name
|
29
31
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
30
32
|
attr_reader :additional_properties
|
31
33
|
# @return [Object]
|
@@ -44,10 +46,11 @@ module Vapi
|
|
44
46
|
# @param org_id [String] This is the unique identifier for the org that this credential belongs to.
|
45
47
|
# @param created_at [DateTime] This is the ISO 8601 date-time string of when the credential was created.
|
46
48
|
# @param updated_at [DateTime] This is the ISO 8601 date-time string of when the assistant was last updated.
|
49
|
+
# @param name [String] This is the name of credential. This is just for your reference.
|
47
50
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
48
51
|
# @return [Vapi::S3Credential]
|
49
52
|
def initialize(provider:, aws_access_key_id:, aws_secret_access_key:, region:, s_3_bucket_name:, s_3_path_prefix:,
|
50
|
-
id:, org_id:, created_at:, updated_at:, additional_properties: nil)
|
53
|
+
id:, org_id:, created_at:, updated_at:, name: OMIT, additional_properties: nil)
|
51
54
|
@provider = provider
|
52
55
|
@aws_access_key_id = aws_access_key_id
|
53
56
|
@aws_secret_access_key = aws_secret_access_key
|
@@ -58,6 +61,7 @@ module Vapi
|
|
58
61
|
@org_id = org_id
|
59
62
|
@created_at = created_at
|
60
63
|
@updated_at = updated_at
|
64
|
+
@name = name if name != OMIT
|
61
65
|
@additional_properties = additional_properties
|
62
66
|
@_field_set = {
|
63
67
|
"provider": provider,
|
@@ -69,8 +73,11 @@ module Vapi
|
|
69
73
|
"id": id,
|
70
74
|
"orgId": org_id,
|
71
75
|
"createdAt": created_at,
|
72
|
-
"updatedAt": updated_at
|
73
|
-
|
76
|
+
"updatedAt": updated_at,
|
77
|
+
"name": name
|
78
|
+
}.reject do |_k, v|
|
79
|
+
v == OMIT
|
80
|
+
end
|
74
81
|
end
|
75
82
|
|
76
83
|
# Deserialize a JSON object to an instance of S3Credential
|
@@ -90,6 +97,7 @@ module Vapi
|
|
90
97
|
org_id = parsed_json["orgId"]
|
91
98
|
created_at = (DateTime.parse(parsed_json["createdAt"]) unless parsed_json["createdAt"].nil?)
|
92
99
|
updated_at = (DateTime.parse(parsed_json["updatedAt"]) unless parsed_json["updatedAt"].nil?)
|
100
|
+
name = parsed_json["name"]
|
93
101
|
new(
|
94
102
|
provider: provider,
|
95
103
|
aws_access_key_id: aws_access_key_id,
|
@@ -101,6 +109,7 @@ module Vapi
|
|
101
109
|
org_id: org_id,
|
102
110
|
created_at: created_at,
|
103
111
|
updated_at: updated_at,
|
112
|
+
name: name,
|
104
113
|
additional_properties: struct
|
105
114
|
)
|
106
115
|
end
|
@@ -129,6 +138,7 @@ module Vapi
|
|
129
138
|
obj.org_id.is_a?(String) != false || raise("Passed value for field obj.org_id is not the expected type, validation failed.")
|
130
139
|
obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
131
140
|
obj.updated_at.is_a?(DateTime) != false || raise("Passed value for field obj.updated_at is not the expected type, validation failed.")
|
141
|
+
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
132
142
|
end
|
133
143
|
end
|
134
144
|
end
|
@@ -15,6 +15,9 @@ module Vapi
|
|
15
15
|
# server. Will be sent as a header called x-vapi-secret.
|
16
16
|
# Same precedence logic as server.
|
17
17
|
attr_reader :secret
|
18
|
+
# @return [Hash{String => Object}] These are the custom headers to include in the request sent to your server.
|
19
|
+
# Each key-value pair represents a header name and its value.
|
20
|
+
attr_reader :headers
|
18
21
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
19
22
|
attr_reader :additional_properties
|
20
23
|
# @return [Object]
|
@@ -30,14 +33,22 @@ module Vapi
|
|
30
33
|
# @param secret [String] This is the secret you can set that Vapi will send with every request to your
|
31
34
|
# server. Will be sent as a header called x-vapi-secret.
|
32
35
|
# Same precedence logic as server.
|
36
|
+
# @param headers [Hash{String => Object}] These are the custom headers to include in the request sent to your server.
|
37
|
+
# Each key-value pair represents a header name and its value.
|
33
38
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
34
39
|
# @return [Vapi::Server]
|
35
|
-
def initialize(url:, timeout_seconds: OMIT, secret: OMIT, additional_properties: nil)
|
40
|
+
def initialize(url:, timeout_seconds: OMIT, secret: OMIT, headers: OMIT, additional_properties: nil)
|
36
41
|
@timeout_seconds = timeout_seconds if timeout_seconds != OMIT
|
37
42
|
@url = url
|
38
43
|
@secret = secret if secret != OMIT
|
44
|
+
@headers = headers if headers != OMIT
|
39
45
|
@additional_properties = additional_properties
|
40
|
-
@_field_set = {
|
46
|
+
@_field_set = {
|
47
|
+
"timeoutSeconds": timeout_seconds,
|
48
|
+
"url": url,
|
49
|
+
"secret": secret,
|
50
|
+
"headers": headers
|
51
|
+
}.reject do |_k, v|
|
41
52
|
v == OMIT
|
42
53
|
end
|
43
54
|
end
|
@@ -52,10 +63,12 @@ module Vapi
|
|
52
63
|
timeout_seconds = parsed_json["timeoutSeconds"]
|
53
64
|
url = parsed_json["url"]
|
54
65
|
secret = parsed_json["secret"]
|
66
|
+
headers = parsed_json["headers"]
|
55
67
|
new(
|
56
68
|
timeout_seconds: timeout_seconds,
|
57
69
|
url: url,
|
58
70
|
secret: secret,
|
71
|
+
headers: headers,
|
59
72
|
additional_properties: struct
|
60
73
|
)
|
61
74
|
end
|
@@ -77,6 +90,7 @@ module Vapi
|
|
77
90
|
obj.timeout_seconds&.is_a?(Float) != false || raise("Passed value for field obj.timeout_seconds is not the expected type, validation failed.")
|
78
91
|
obj.url.is_a?(String) != false || raise("Passed value for field obj.url is not the expected type, validation failed.")
|
79
92
|
obj.secret&.is_a?(String) != false || raise("Passed value for field obj.secret is not the expected type, validation failed.")
|
93
|
+
obj.headers&.is_a?(Hash) != false || raise("Passed value for field obj.headers is not the expected type, validation failed.")
|
80
94
|
end
|
81
95
|
end
|
82
96
|
end
|
@@ -4,32 +4,51 @@ module Vapi
|
|
4
4
|
# This is the reason the call ended. This can also be found at `call.endedReason`
|
5
5
|
# on GET /call/:id.
|
6
6
|
class ServerMessageEndOfCallReportEndedReason
|
7
|
-
|
8
|
-
|
7
|
+
ASSISTANT_NOT_INVALID = "assistant-not-invalid"
|
8
|
+
ASSISTANT_NOT_PROVIDED = "assistant-not-provided"
|
9
|
+
CALL_START_ERROR_NEITHER_ASSISTANT_NOR_SERVER_SET = "call-start-error-neither-assistant-nor-server-set"
|
10
|
+
ASSISTANT_REQUEST_FAILED = "assistant-request-failed"
|
11
|
+
ASSISTANT_REQUEST_RETURNED_ERROR = "assistant-request-returned-error"
|
12
|
+
ASSISTANT_REQUEST_RETURNED_UNSPEAKABLE_ERROR = "assistant-request-returned-unspeakable-error"
|
13
|
+
ASSISTANT_REQUEST_RETURNED_INVALID_ASSISTANT = "assistant-request-returned-invalid-assistant"
|
14
|
+
ASSISTANT_REQUEST_RETURNED_NO_ASSISTANT = "assistant-request-returned-no-assistant"
|
15
|
+
ASSISTANT_REQUEST_RETURNED_FORWARDING_PHONE_NUMBER = "assistant-request-returned-forwarding-phone-number"
|
16
|
+
ASSISTANT_ENDED_CALL = "assistant-ended-call"
|
17
|
+
ASSISTANT_SAID_END_CALL_PHRASE = "assistant-said-end-call-phrase"
|
18
|
+
ASSISTANT_FORWARDED_CALL = "assistant-forwarded-call"
|
19
|
+
ASSISTANT_JOIN_TIMED_OUT = "assistant-join-timed-out"
|
20
|
+
CUSTOMER_BUSY = "customer-busy"
|
21
|
+
CUSTOMER_ENDED_CALL = "customer-ended-call"
|
22
|
+
CUSTOMER_DID_NOT_ANSWER = "customer-did-not-answer"
|
23
|
+
CUSTOMER_DID_NOT_GIVE_MICROPHONE_PERMISSION = "customer-did-not-give-microphone-permission"
|
24
|
+
ASSISTANT_SAID_MESSAGE_WITH_END_CALL_ENABLED = "assistant-said-message-with-end-call-enabled"
|
25
|
+
EXCEEDED_MAX_DURATION = "exceeded-max-duration"
|
26
|
+
MANUALLY_CANCELED = "manually-canceled"
|
27
|
+
PHONE_CALL_PROVIDER_CLOSED_WEBSOCKET = "phone-call-provider-closed-websocket"
|
9
28
|
DB_ERROR = "db-error"
|
10
|
-
|
29
|
+
ASSISTANT_NOT_FOUND = "assistant-not-found"
|
11
30
|
LICENSE_CHECK_FAILED = "license-check-failed"
|
12
|
-
PIPELINE_ERROR_OPENAI_LLM_FAILED = "pipeline-error-openai-llm-failed"
|
13
|
-
PIPELINE_ERROR_AZURE_OPENAI_LLM_FAILED = "pipeline-error-azure-openai-llm-failed"
|
14
|
-
PIPELINE_ERROR_GROQ_LLM_FAILED = "pipeline-error-groq-llm-failed"
|
15
|
-
PIPELINE_ERROR_ANTHROPIC_LLM_FAILED = "pipeline-error-anthropic-llm-failed"
|
16
|
-
PIPELINE_ERROR_VAPI_LLM_FAILED = "pipeline-error-vapi-llm-failed"
|
17
|
-
PIPELINE_ERROR_VAPI_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-vapi-400-bad-request-validation-failed"
|
18
|
-
PIPELINE_ERROR_VAPI_401_UNAUTHORIZED = "pipeline-error-vapi-401-unauthorized"
|
19
|
-
PIPELINE_ERROR_VAPI_403_MODEL_ACCESS_DENIED = "pipeline-error-vapi-403-model-access-denied"
|
20
|
-
PIPELINE_ERROR_VAPI_429_EXCEEDED_QUOTA = "pipeline-error-vapi-429-exceeded-quota"
|
21
|
-
PIPELINE_ERROR_VAPI_500_SERVER_ERROR = "pipeline-error-vapi-500-server-error"
|
22
31
|
PIPELINE_ERROR_OPENAI_VOICE_FAILED = "pipeline-error-openai-voice-failed"
|
23
32
|
PIPELINE_ERROR_CARTESIA_VOICE_FAILED = "pipeline-error-cartesia-voice-failed"
|
24
|
-
PIPELINE_ERROR_DEEPGRAM_TRANSCRIBER_FAILED = "pipeline-error-deepgram-transcriber-failed"
|
25
33
|
PIPELINE_ERROR_DEEPGRAM_VOICE_FAILED = "pipeline-error-deepgram-voice-failed"
|
26
|
-
PIPELINE_ERROR_GLADIA_TRANSCRIBER_FAILED = "pipeline-error-gladia-transcriber-failed"
|
27
34
|
PIPELINE_ERROR_ELEVEN_LABS_VOICE_FAILED = "pipeline-error-eleven-labs-voice-failed"
|
28
35
|
PIPELINE_ERROR_PLAYHT_VOICE_FAILED = "pipeline-error-playht-voice-failed"
|
29
36
|
PIPELINE_ERROR_LMNT_VOICE_FAILED = "pipeline-error-lmnt-voice-failed"
|
30
37
|
PIPELINE_ERROR_AZURE_VOICE_FAILED = "pipeline-error-azure-voice-failed"
|
31
38
|
PIPELINE_ERROR_RIME_AI_VOICE_FAILED = "pipeline-error-rime-ai-voice-failed"
|
32
39
|
PIPELINE_ERROR_NEETS_VOICE_FAILED = "pipeline-error-neets-voice-failed"
|
40
|
+
PIPELINE_ERROR_SMALLEST_AI_VOICE_FAILED = "pipeline-error-smallest-ai-voice-failed"
|
41
|
+
PIPELINE_ERROR_DEEPGRAM_TRANSCRIBER_FAILED = "pipeline-error-deepgram-transcriber-failed"
|
42
|
+
PIPELINE_ERROR_GLADIA_TRANSCRIBER_FAILED = "pipeline-error-gladia-transcriber-failed"
|
43
|
+
PIPELINE_ERROR_ASSEMBLY_AI_TRANSCRIBER_FAILED = "pipeline-error-assembly-ai-transcriber-failed"
|
44
|
+
PIPELINE_ERROR_TALKSCRIBER_TRANSCRIBER_FAILED = "pipeline-error-talkscriber-transcriber-failed"
|
45
|
+
PIPELINE_ERROR_AZURE_SPEECH_TRANSCRIBER_FAILED = "pipeline-error-azure-speech-transcriber-failed"
|
46
|
+
PIPELINE_ERROR_VAPI_LLM_FAILED = "pipeline-error-vapi-llm-failed"
|
47
|
+
PIPELINE_ERROR_VAPI_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-vapi-400-bad-request-validation-failed"
|
48
|
+
PIPELINE_ERROR_VAPI_401_UNAUTHORIZED = "pipeline-error-vapi-401-unauthorized"
|
49
|
+
PIPELINE_ERROR_VAPI_403_MODEL_ACCESS_DENIED = "pipeline-error-vapi-403-model-access-denied"
|
50
|
+
PIPELINE_ERROR_VAPI_429_EXCEEDED_QUOTA = "pipeline-error-vapi-429-exceeded-quota"
|
51
|
+
PIPELINE_ERROR_VAPI_500_SERVER_ERROR = "pipeline-error-vapi-500-server-error"
|
33
52
|
PIPELINE_NO_AVAILABLE_MODEL = "pipeline-no-available-model"
|
34
53
|
WORKER_SHUTDOWN = "worker-shutdown"
|
35
54
|
UNKNOWN_ERROR = "unknown-error"
|
@@ -42,32 +61,40 @@ module Vapi
|
|
42
61
|
VAPIFAULT_TRANSPORT_NEVER_CONNECTED = "vapifault-transport-never-connected"
|
43
62
|
VAPIFAULT_WEB_CALL_WORKER_SETUP_FAILED = "vapifault-web-call-worker-setup-failed"
|
44
63
|
VAPIFAULT_TRANSPORT_CONNECTED_BUT_CALL_NOT_ACTIVE = "vapifault-transport-connected-but-call-not-active"
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
ASSISTANT_ENDED_CALL = "assistant-ended-call"
|
55
|
-
ASSISTANT_SAID_END_CALL_PHRASE = "assistant-said-end-call-phrase"
|
56
|
-
ASSISTANT_FORWARDED_CALL = "assistant-forwarded-call"
|
57
|
-
ASSISTANT_JOIN_TIMED_OUT = "assistant-join-timed-out"
|
58
|
-
CUSTOMER_BUSY = "customer-busy"
|
59
|
-
CUSTOMER_ENDED_CALL = "customer-ended-call"
|
60
|
-
CUSTOMER_DID_NOT_ANSWER = "customer-did-not-answer"
|
61
|
-
CUSTOMER_DID_NOT_GIVE_MICROPHONE_PERMISSION = "customer-did-not-give-microphone-permission"
|
62
|
-
ASSISTANT_SAID_MESSAGE_WITH_END_CALL_ENABLED = "assistant-said-message-with-end-call-enabled"
|
63
|
-
EXCEEDED_MAX_DURATION = "exceeded-max-duration"
|
64
|
-
MANUALLY_CANCELED = "manually-canceled"
|
65
|
-
PHONE_CALL_PROVIDER_CLOSED_WEBSOCKET = "phone-call-provider-closed-websocket"
|
64
|
+
VAPIFAULT_CALL_STARTED_BUT_CONNECTION_TO_TRANSPORT_MISSING = "vapifault-call-started-but-connection-to-transport-missing"
|
65
|
+
PIPELINE_ERROR_OPENAI_LLM_FAILED = "pipeline-error-openai-llm-failed"
|
66
|
+
PIPELINE_ERROR_AZURE_OPENAI_LLM_FAILED = "pipeline-error-azure-openai-llm-failed"
|
67
|
+
PIPELINE_ERROR_GROQ_LLM_FAILED = "pipeline-error-groq-llm-failed"
|
68
|
+
PIPELINE_ERROR_GOOGLE_LLM_FAILED = "pipeline-error-google-llm-failed"
|
69
|
+
PIPELINE_ERROR_XAI_LLM_FAILED = "pipeline-error-xai-llm-failed"
|
70
|
+
PIPELINE_ERROR_INFLECTION_AI_LLM_FAILED = "pipeline-error-inflection-ai-llm-failed"
|
71
|
+
PIPELINE_ERROR_CEREBRAS_LLM_FAILED = "pipeline-error-cerebras-llm-failed"
|
72
|
+
PIPELINE_ERROR_DEEP_SEEK_LLM_FAILED = "pipeline-error-deep-seek-llm-failed"
|
66
73
|
PIPELINE_ERROR_OPENAI_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-openai-400-bad-request-validation-failed"
|
67
74
|
PIPELINE_ERROR_OPENAI_401_UNAUTHORIZED = "pipeline-error-openai-401-unauthorized"
|
68
75
|
PIPELINE_ERROR_OPENAI_403_MODEL_ACCESS_DENIED = "pipeline-error-openai-403-model-access-denied"
|
69
76
|
PIPELINE_ERROR_OPENAI_429_EXCEEDED_QUOTA = "pipeline-error-openai-429-exceeded-quota"
|
70
77
|
PIPELINE_ERROR_OPENAI_500_SERVER_ERROR = "pipeline-error-openai-500-server-error"
|
78
|
+
PIPELINE_ERROR_GOOGLE_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-google-400-bad-request-validation-failed"
|
79
|
+
PIPELINE_ERROR_GOOGLE_401_UNAUTHORIZED = "pipeline-error-google-401-unauthorized"
|
80
|
+
PIPELINE_ERROR_GOOGLE_403_MODEL_ACCESS_DENIED = "pipeline-error-google-403-model-access-denied"
|
81
|
+
PIPELINE_ERROR_GOOGLE_429_EXCEEDED_QUOTA = "pipeline-error-google-429-exceeded-quota"
|
82
|
+
PIPELINE_ERROR_GOOGLE_500_SERVER_ERROR = "pipeline-error-google-500-server-error"
|
83
|
+
PIPELINE_ERROR_XAI_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-xai-400-bad-request-validation-failed"
|
84
|
+
PIPELINE_ERROR_XAI_401_UNAUTHORIZED = "pipeline-error-xai-401-unauthorized"
|
85
|
+
PIPELINE_ERROR_XAI_403_MODEL_ACCESS_DENIED = "pipeline-error-xai-403-model-access-denied"
|
86
|
+
PIPELINE_ERROR_XAI_429_EXCEEDED_QUOTA = "pipeline-error-xai-429-exceeded-quota"
|
87
|
+
PIPELINE_ERROR_XAI_500_SERVER_ERROR = "pipeline-error-xai-500-server-error"
|
88
|
+
PIPELINE_ERROR_INFLECTION_AI_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-inflection-ai-400-bad-request-validation-failed"
|
89
|
+
PIPELINE_ERROR_INFLECTION_AI_401_UNAUTHORIZED = "pipeline-error-inflection-ai-401-unauthorized"
|
90
|
+
PIPELINE_ERROR_INFLECTION_AI_403_MODEL_ACCESS_DENIED = "pipeline-error-inflection-ai-403-model-access-denied"
|
91
|
+
PIPELINE_ERROR_INFLECTION_AI_429_EXCEEDED_QUOTA = "pipeline-error-inflection-ai-429-exceeded-quota"
|
92
|
+
PIPELINE_ERROR_INFLECTION_AI_500_SERVER_ERROR = "pipeline-error-inflection-ai-500-server-error"
|
93
|
+
PIPELINE_ERROR_DEEP_SEEK_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-deep-seek-400-bad-request-validation-failed"
|
94
|
+
PIPELINE_ERROR_DEEP_SEEK_401_UNAUTHORIZED = "pipeline-error-deep-seek-401-unauthorized"
|
95
|
+
PIPELINE_ERROR_DEEP_SEEK_403_MODEL_ACCESS_DENIED = "pipeline-error-deep-seek-403-model-access-denied"
|
96
|
+
PIPELINE_ERROR_DEEP_SEEK_429_EXCEEDED_QUOTA = "pipeline-error-deep-seek-429-exceeded-quota"
|
97
|
+
PIPELINE_ERROR_DEEP_SEEK_500_SERVER_ERROR = "pipeline-error-deep-seek-500-server-error"
|
71
98
|
PIPELINE_ERROR_AZURE_OPENAI_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-azure-openai-400-bad-request-validation-failed"
|
72
99
|
PIPELINE_ERROR_AZURE_OPENAI_401_UNAUTHORIZED = "pipeline-error-azure-openai-401-unauthorized"
|
73
100
|
PIPELINE_ERROR_AZURE_OPENAI_403_MODEL_ACCESS_DENIED = "pipeline-error-azure-openai-403-model-access-denied"
|
@@ -78,11 +105,17 @@ module Vapi
|
|
78
105
|
PIPELINE_ERROR_GROQ_403_MODEL_ACCESS_DENIED = "pipeline-error-groq-403-model-access-denied"
|
79
106
|
PIPELINE_ERROR_GROQ_429_EXCEEDED_QUOTA = "pipeline-error-groq-429-exceeded-quota"
|
80
107
|
PIPELINE_ERROR_GROQ_500_SERVER_ERROR = "pipeline-error-groq-500-server-error"
|
108
|
+
PIPELINE_ERROR_CEREBRAS_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-cerebras-400-bad-request-validation-failed"
|
109
|
+
PIPELINE_ERROR_CEREBRAS_401_UNAUTHORIZED = "pipeline-error-cerebras-401-unauthorized"
|
110
|
+
PIPELINE_ERROR_CEREBRAS_403_MODEL_ACCESS_DENIED = "pipeline-error-cerebras-403-model-access-denied"
|
111
|
+
PIPELINE_ERROR_CEREBRAS_429_EXCEEDED_QUOTA = "pipeline-error-cerebras-429-exceeded-quota"
|
112
|
+
PIPELINE_ERROR_CEREBRAS_500_SERVER_ERROR = "pipeline-error-cerebras-500-server-error"
|
81
113
|
PIPELINE_ERROR_ANTHROPIC_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-anthropic-400-bad-request-validation-failed"
|
82
114
|
PIPELINE_ERROR_ANTHROPIC_401_UNAUTHORIZED = "pipeline-error-anthropic-401-unauthorized"
|
83
115
|
PIPELINE_ERROR_ANTHROPIC_403_MODEL_ACCESS_DENIED = "pipeline-error-anthropic-403-model-access-denied"
|
84
116
|
PIPELINE_ERROR_ANTHROPIC_429_EXCEEDED_QUOTA = "pipeline-error-anthropic-429-exceeded-quota"
|
85
117
|
PIPELINE_ERROR_ANTHROPIC_500_SERVER_ERROR = "pipeline-error-anthropic-500-server-error"
|
118
|
+
PIPELINE_ERROR_ANTHROPIC_LLM_FAILED = "pipeline-error-anthropic-llm-failed"
|
86
119
|
PIPELINE_ERROR_TOGETHER_AI_400_BAD_REQUEST_VALIDATION_FAILED = "pipeline-error-together-ai-400-bad-request-validation-failed"
|
87
120
|
PIPELINE_ERROR_TOGETHER_AI_401_UNAUTHORIZED = "pipeline-error-together-ai-401-unauthorized"
|
88
121
|
PIPELINE_ERROR_TOGETHER_AI_403_MODEL_ACCESS_DENIED = "pipeline-error-together-ai-403-model-access-denied"
|
@@ -125,12 +158,12 @@ module Vapi
|
|
125
158
|
PIPELINE_ERROR_CUSTOM_LLM_429_EXCEEDED_QUOTA = "pipeline-error-custom-llm-429-exceeded-quota"
|
126
159
|
PIPELINE_ERROR_CUSTOM_LLM_500_SERVER_ERROR = "pipeline-error-custom-llm-500-server-error"
|
127
160
|
PIPELINE_ERROR_CUSTOM_LLM_LLM_FAILED = "pipeline-error-custom-llm-llm-failed"
|
161
|
+
PIPELINE_ERROR_CUSTOM_VOICE_FAILED = "pipeline-error-custom-voice-failed"
|
128
162
|
PIPELINE_ERROR_CARTESIA_SOCKET_HANG_UP = "pipeline-error-cartesia-socket-hang-up"
|
129
163
|
PIPELINE_ERROR_CARTESIA_REQUESTED_PAYMENT = "pipeline-error-cartesia-requested-payment"
|
130
164
|
PIPELINE_ERROR_CARTESIA_500_SERVER_ERROR = "pipeline-error-cartesia-500-server-error"
|
131
165
|
PIPELINE_ERROR_CARTESIA_503_SERVER_ERROR = "pipeline-error-cartesia-503-server-error"
|
132
166
|
PIPELINE_ERROR_CARTESIA_522_SERVER_ERROR = "pipeline-error-cartesia-522-server-error"
|
133
|
-
PIPELINE_ERROR_CUSTOM_VOICE_FAILED = "pipeline-error-custom-voice-failed"
|
134
167
|
PIPELINE_ERROR_ELEVEN_LABS_VOICE_NOT_FOUND = "pipeline-error-eleven-labs-voice-not-found"
|
135
168
|
PIPELINE_ERROR_ELEVEN_LABS_QUOTA_EXCEEDED = "pipeline-error-eleven-labs-quota-exceeded"
|
136
169
|
PIPELINE_ERROR_ELEVEN_LABS_UNAUTHORIZED_ACCESS = "pipeline-error-eleven-labs-unauthorized-access"
|
@@ -151,10 +184,12 @@ module Vapi
|
|
151
184
|
PIPELINE_ERROR_ELEVEN_LABS_VOICE_NOT_ALLOWED_FOR_FREE_USERS = "pipeline-error-eleven-labs-voice-not-allowed-for-free-users"
|
152
185
|
PIPELINE_ERROR_ELEVEN_LABS_500_SERVER_ERROR = "pipeline-error-eleven-labs-500-server-error"
|
153
186
|
PIPELINE_ERROR_ELEVEN_LABS_MAX_CHARACTER_LIMIT_EXCEEDED = "pipeline-error-eleven-labs-max-character-limit-exceeded"
|
187
|
+
PIPELINE_ERROR_ELEVEN_LABS_BLOCKED_VOICE_POTENTIALLY_AGAINST_TERMS_OF_SERVICE_AND_AWAITING_VERIFICATION = "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification"
|
154
188
|
PIPELINE_ERROR_PLAYHT_REQUEST_TIMED_OUT = "pipeline-error-playht-request-timed-out"
|
155
189
|
PIPELINE_ERROR_PLAYHT_INVALID_VOICE = "pipeline-error-playht-invalid-voice"
|
156
190
|
PIPELINE_ERROR_PLAYHT_UNEXPECTED_ERROR = "pipeline-error-playht-unexpected-error"
|
157
191
|
PIPELINE_ERROR_PLAYHT_OUT_OF_CREDITS = "pipeline-error-playht-out-of-credits"
|
192
|
+
PIPELINE_ERROR_PLAYHT_INVALID_EMOTION = "pipeline-error-playht-invalid-emotion"
|
158
193
|
PIPELINE_ERROR_PLAYHT_VOICE_MUST_BE_A_VALID_VOICE_MANIFEST_URI = "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri"
|
159
194
|
PIPELINE_ERROR_PLAYHT_401_UNAUTHORIZED = "pipeline-error-playht-401-unauthorized"
|
160
195
|
PIPELINE_ERROR_PLAYHT_403_FORBIDDEN_OUT_OF_CHARACTERS = "pipeline-error-playht-403-forbidden-out-of-characters"
|
@@ -162,15 +197,20 @@ module Vapi
|
|
162
197
|
PIPELINE_ERROR_PLAYHT_429_EXCEEDED_QUOTA = "pipeline-error-playht-429-exceeded-quota"
|
163
198
|
PIPELINE_ERROR_PLAYHT_502_GATEWAY_ERROR = "pipeline-error-playht-502-gateway-error"
|
164
199
|
PIPELINE_ERROR_PLAYHT_504_GATEWAY_ERROR = "pipeline-error-playht-504-gateway-error"
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
200
|
+
PIPELINE_ERROR_TAVUS_VIDEO_FAILED = "pipeline-error-tavus-video-failed"
|
201
|
+
PIPELINE_ERROR_CUSTOM_TRANSCRIBER_FAILED = "pipeline-error-custom-transcriber-failed"
|
202
|
+
PIPELINE_ERROR_DEEPGRAM_RETURNING_403_MODEL_ACCESS_DENIED = "pipeline-error-deepgram-returning-403-model-access-denied"
|
203
|
+
PIPELINE_ERROR_DEEPGRAM_RETURNING_401_INVALID_CREDENTIALS = "pipeline-error-deepgram-returning-401-invalid-credentials"
|
204
|
+
PIPELINE_ERROR_DEEPGRAM_RETURNING_404_NOT_FOUND = "pipeline-error-deepgram-returning-404-not-found"
|
205
|
+
PIPELINE_ERROR_DEEPGRAM_RETURNING_400_NO_SUCH_MODEL_LANGUAGE_TIER_COMBINATION = "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination"
|
206
|
+
PIPELINE_ERROR_DEEPGRAM_RETURNING_500_INVALID_JSON = "pipeline-error-deepgram-returning-500-invalid-json"
|
207
|
+
PIPELINE_ERROR_DEEPGRAM_RETURNING_502_NETWORK_ERROR = "pipeline-error-deepgram-returning-502-network-error"
|
208
|
+
PIPELINE_ERROR_DEEPGRAM_RETURNING_502_BAD_GATEWAY_EHOSTUNREACH = "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach"
|
170
209
|
SILENCE_TIMED_OUT = "silence-timed-out"
|
210
|
+
SIP_GATEWAY_FAILED_TO_CONNECT_CALL = "sip-gateway-failed-to-connect-call"
|
171
211
|
TWILIO_FAILED_TO_CONNECT_CALL = "twilio-failed-to-connect-call"
|
172
212
|
TWILIO_REPORTED_CUSTOMER_MISDIALED = "twilio-reported-customer-misdialed"
|
173
|
-
VOICEMAIL = "voicemail"
|
174
213
|
VONAGE_REJECTED = "vonage-rejected"
|
214
|
+
VOICEMAIL = "voicemail"
|
175
215
|
end
|
176
216
|
end
|