vapi-server-sdk 0.0.0a7__py3-none-any.whl
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.
- vapi/__init__.py +1081 -0
- vapi/analytics/__init__.py +2 -0
- vapi/analytics/client.py +159 -0
- vapi/assistants/__init__.py +21 -0
- vapi/assistants/client.py +1593 -0
- vapi/assistants/types/__init__.py +19 -0
- vapi/assistants/types/update_assistant_dto_background_sound.py +5 -0
- vapi/assistants/types/update_assistant_dto_client_messages_item.py +23 -0
- vapi/assistants/types/update_assistant_dto_first_message_mode.py +10 -0
- vapi/assistants/types/update_assistant_dto_model.py +26 -0
- vapi/assistants/types/update_assistant_dto_server_messages_item.py +24 -0
- vapi/assistants/types/update_assistant_dto_transcriber.py +8 -0
- vapi/assistants/types/update_assistant_dto_voice.py +24 -0
- vapi/blocks/__init__.py +25 -0
- vapi/blocks/client.py +804 -0
- vapi/blocks/types/__init__.py +23 -0
- vapi/blocks/types/blocks_create_request.py +8 -0
- vapi/blocks/types/blocks_create_response.py +8 -0
- vapi/blocks/types/blocks_delete_response.py +8 -0
- vapi/blocks/types/blocks_get_response.py +8 -0
- vapi/blocks/types/blocks_list_response_item.py +8 -0
- vapi/blocks/types/blocks_update_response.py +8 -0
- vapi/blocks/types/update_block_dto_messages_item.py +7 -0
- vapi/blocks/types/update_block_dto_steps_item.py +7 -0
- vapi/blocks/types/update_block_dto_tool.py +20 -0
- vapi/calls/__init__.py +2 -0
- vapi/calls/client.py +776 -0
- vapi/client.py +172 -0
- vapi/core/__init__.py +50 -0
- vapi/core/api_error.py +15 -0
- vapi/core/client_wrapper.py +76 -0
- vapi/core/datetime_utils.py +28 -0
- vapi/core/file.py +62 -0
- vapi/core/http_client.py +487 -0
- vapi/core/jsonable_encoder.py +101 -0
- vapi/core/pagination.py +88 -0
- vapi/core/pydantic_utilities.py +296 -0
- vapi/core/query_encoder.py +58 -0
- vapi/core/remove_none_from_dict.py +11 -0
- vapi/core/request_options.py +32 -0
- vapi/core/serialization.py +272 -0
- vapi/environment.py +7 -0
- vapi/errors/__init__.py +5 -0
- vapi/errors/bad_request_error.py +9 -0
- vapi/files/__init__.py +2 -0
- vapi/files/client.py +544 -0
- vapi/logs/__init__.py +5 -0
- vapi/logs/client.py +367 -0
- vapi/logs/types/__init__.py +6 -0
- vapi/logs/types/logs_get_request_sort_order.py +5 -0
- vapi/logs/types/logs_get_request_type.py +5 -0
- vapi/phone_numbers/__init__.py +21 -0
- vapi/phone_numbers/client.py +735 -0
- vapi/phone_numbers/types/__init__.py +19 -0
- vapi/phone_numbers/types/phone_numbers_create_request.py +11 -0
- vapi/phone_numbers/types/phone_numbers_create_response.py +9 -0
- vapi/phone_numbers/types/phone_numbers_delete_response.py +9 -0
- vapi/phone_numbers/types/phone_numbers_get_response.py +9 -0
- vapi/phone_numbers/types/phone_numbers_list_response_item.py +9 -0
- vapi/phone_numbers/types/phone_numbers_update_response.py +9 -0
- vapi/phone_numbers/types/update_phone_number_dto_fallback_destination.py +7 -0
- vapi/py.typed +0 -0
- vapi/squads/__init__.py +2 -0
- vapi/squads/client.py +723 -0
- vapi/tools/__init__.py +21 -0
- vapi/tools/client.py +717 -0
- vapi/tools/types/__init__.py +19 -0
- vapi/tools/types/tools_create_request.py +20 -0
- vapi/tools/types/tools_create_response.py +12 -0
- vapi/tools/types/tools_delete_response.py +12 -0
- vapi/tools/types/tools_get_response.py +12 -0
- vapi/tools/types/tools_list_response_item.py +14 -0
- vapi/tools/types/tools_update_response.py +12 -0
- vapi/tools/types/update_tool_dto_messages_item.py +9 -0
- vapi/types/__init__.py +993 -0
- vapi/types/add_voice_to_provider_dto.py +34 -0
- vapi/types/analysis.py +38 -0
- vapi/types/analysis_cost.py +52 -0
- vapi/types/analysis_cost_analysis_type.py +5 -0
- vapi/types/analysis_cost_breakdown.py +80 -0
- vapi/types/analysis_plan.py +43 -0
- vapi/types/analytics_operation.py +34 -0
- vapi/types/analytics_operation_column.py +19 -0
- vapi/types/analytics_operation_operation.py +5 -0
- vapi/types/analytics_query.py +51 -0
- vapi/types/analytics_query_group_by_item.py +7 -0
- vapi/types/analytics_query_result.py +42 -0
- vapi/types/anthropic_credential.py +46 -0
- vapi/types/anthropic_model.py +91 -0
- vapi/types/anthropic_model_model.py +10 -0
- vapi/types/anthropic_model_tools_item.py +20 -0
- vapi/types/anyscale_credential.py +46 -0
- vapi/types/anyscale_model.py +90 -0
- vapi/types/anyscale_model_tools_item.py +20 -0
- vapi/types/artifact.py +66 -0
- vapi/types/artifact_messages_item.py +10 -0
- vapi/types/artifact_plan.py +70 -0
- vapi/types/assignment_mutation.py +85 -0
- vapi/types/assignment_mutation_conditions_item.py +7 -0
- vapi/types/assistant.py +330 -0
- vapi/types/assistant_background_sound.py +5 -0
- vapi/types/assistant_client_messages_item.py +23 -0
- vapi/types/assistant_first_message_mode.py +10 -0
- vapi/types/assistant_model.py +26 -0
- vapi/types/assistant_overrides.py +316 -0
- vapi/types/assistant_overrides_background_sound.py +5 -0
- vapi/types/assistant_overrides_client_messages_item.py +23 -0
- vapi/types/assistant_overrides_first_message_mode.py +10 -0
- vapi/types/assistant_overrides_model.py +26 -0
- vapi/types/assistant_overrides_server_messages_item.py +24 -0
- vapi/types/assistant_overrides_transcriber.py +8 -0
- vapi/types/assistant_overrides_voice.py +24 -0
- vapi/types/assistant_server_messages_item.py +24 -0
- vapi/types/assistant_transcriber.py +8 -0
- vapi/types/assistant_voice.py +24 -0
- vapi/types/azure_open_ai_credential.py +52 -0
- vapi/types/azure_open_ai_credential_models_item.py +17 -0
- vapi/types/azure_open_ai_credential_region.py +24 -0
- vapi/types/azure_voice.py +52 -0
- vapi/types/azure_voice_id.py +6 -0
- vapi/types/azure_voice_id_enum.py +5 -0
- vapi/types/block_complete_message.py +33 -0
- vapi/types/block_complete_message_conditions_item.py +7 -0
- vapi/types/block_start_message.py +33 -0
- vapi/types/block_start_message_conditions_item.py +7 -0
- vapi/types/bot_message.py +54 -0
- vapi/types/bucket_plan.py +72 -0
- vapi/types/buy_phone_number_dto.py +81 -0
- vapi/types/buy_phone_number_dto_fallback_destination.py +7 -0
- vapi/types/byo_phone_number.py +126 -0
- vapi/types/byo_phone_number_fallback_destination.py +7 -0
- vapi/types/byo_sip_trunk_credential.py +85 -0
- vapi/types/call.py +241 -0
- vapi/types/call_costs_item.py +11 -0
- vapi/types/call_destination.py +7 -0
- vapi/types/call_ended_reason.py +177 -0
- vapi/types/call_messages_item.py +10 -0
- vapi/types/call_paginated_response.py +32 -0
- vapi/types/call_phone_call_provider.py +5 -0
- vapi/types/call_phone_call_transport.py +5 -0
- vapi/types/call_status.py +5 -0
- vapi/types/call_type.py +5 -0
- vapi/types/callback_step.py +116 -0
- vapi/types/callback_step_block.py +11 -0
- vapi/types/cartesia_credential.py +46 -0
- vapi/types/cartesia_voice.py +58 -0
- vapi/types/cartesia_voice_language.py +5 -0
- vapi/types/cartesia_voice_model.py +5 -0
- vapi/types/chunk_plan.py +70 -0
- vapi/types/client_inbound_message.py +23 -0
- vapi/types/client_inbound_message_add_message.py +28 -0
- vapi/types/client_inbound_message_control.py +32 -0
- vapi/types/client_inbound_message_control_control.py +7 -0
- vapi/types/client_inbound_message_message.py +10 -0
- vapi/types/client_inbound_message_say.py +36 -0
- vapi/types/client_message.py +23 -0
- vapi/types/client_message_conversation_update.py +38 -0
- vapi/types/client_message_conversation_update_messages_item.py +12 -0
- vapi/types/client_message_hang.py +27 -0
- vapi/types/client_message_language_changed.py +27 -0
- vapi/types/client_message_message.py +28 -0
- vapi/types/client_message_metadata.py +27 -0
- vapi/types/client_message_model_output.py +27 -0
- vapi/types/client_message_speech_update.py +34 -0
- vapi/types/client_message_speech_update_role.py +5 -0
- vapi/types/client_message_speech_update_status.py +5 -0
- vapi/types/client_message_tool_calls.py +40 -0
- vapi/types/client_message_tool_calls_result.py +31 -0
- vapi/types/client_message_tool_calls_tool_with_tool_call_list_item.py +10 -0
- vapi/types/client_message_transcript.py +43 -0
- vapi/types/client_message_transcript_role.py +5 -0
- vapi/types/client_message_transcript_transcript_type.py +5 -0
- vapi/types/client_message_user_interrupted.py +22 -0
- vapi/types/client_message_voice_input.py +27 -0
- vapi/types/clone_voice_dto.py +37 -0
- vapi/types/condition.py +33 -0
- vapi/types/condition_operator.py +5 -0
- vapi/types/conversation_block.py +109 -0
- vapi/types/conversation_block_messages_item.py +7 -0
- vapi/types/cost_breakdown.py +78 -0
- vapi/types/create_anthropic_credential_dto.py +25 -0
- vapi/types/create_anyscale_credential_dto.py +25 -0
- vapi/types/create_assistant_dto.py +309 -0
- vapi/types/create_assistant_dto_background_sound.py +5 -0
- vapi/types/create_assistant_dto_client_messages_item.py +23 -0
- vapi/types/create_assistant_dto_first_message_mode.py +10 -0
- vapi/types/create_assistant_dto_model.py +26 -0
- vapi/types/create_assistant_dto_server_messages_item.py +24 -0
- vapi/types/create_assistant_dto_transcriber.py +8 -0
- vapi/types/create_assistant_dto_voice.py +24 -0
- vapi/types/create_azure_open_ai_credential_dto.py +31 -0
- vapi/types/create_azure_open_ai_credential_dto_models_item.py +17 -0
- vapi/types/create_azure_open_ai_credential_dto_region.py +24 -0
- vapi/types/create_byo_phone_number_dto.py +105 -0
- vapi/types/create_byo_phone_number_dto_fallback_destination.py +7 -0
- vapi/types/create_byo_sip_trunk_credential_dto.py +64 -0
- vapi/types/create_cartesia_credential_dto.py +25 -0
- vapi/types/create_conversation_block_dto.py +88 -0
- vapi/types/create_conversation_block_dto_messages_item.py +7 -0
- vapi/types/create_custom_llm_credential_dto.py +25 -0
- vapi/types/create_customer_dto.py +59 -0
- vapi/types/create_deep_infra_credential_dto.py +25 -0
- vapi/types/create_deepgram_credential_dto.py +32 -0
- vapi/types/create_dtmf_tool_dto.py +61 -0
- vapi/types/create_dtmf_tool_dto_messages_item.py +11 -0
- vapi/types/create_eleven_labs_credential_dto.py +25 -0
- vapi/types/create_end_call_tool_dto.py +61 -0
- vapi/types/create_end_call_tool_dto_messages_item.py +11 -0
- vapi/types/create_function_tool_dto.py +61 -0
- vapi/types/create_function_tool_dto_messages_item.py +11 -0
- vapi/types/create_gcp_credential_dto.py +41 -0
- vapi/types/create_ghl_tool_dto.py +63 -0
- vapi/types/create_ghl_tool_dto_messages_item.py +11 -0
- vapi/types/create_gladia_credential_dto.py +25 -0
- vapi/types/create_go_high_level_credential_dto.py +25 -0
- vapi/types/create_groq_credential_dto.py +25 -0
- vapi/types/create_lmnt_credential_dto.py +25 -0
- vapi/types/create_make_credential_dto.py +35 -0
- vapi/types/create_make_tool_dto.py +63 -0
- vapi/types/create_make_tool_dto_messages_item.py +11 -0
- vapi/types/create_open_ai_credential_dto.py +25 -0
- vapi/types/create_open_router_credential_dto.py +25 -0
- vapi/types/create_org_dto.py +63 -0
- vapi/types/create_outbound_call_dto.py +104 -0
- vapi/types/create_output_tool_dto.py +61 -0
- vapi/types/create_output_tool_dto_messages_item.py +11 -0
- vapi/types/create_perplexity_ai_credential_dto.py +25 -0
- vapi/types/create_play_ht_credential_dto.py +27 -0
- vapi/types/create_rime_ai_credential_dto.py +25 -0
- vapi/types/create_runpod_credential_dto.py +25 -0
- vapi/types/create_s_3_credential_dto.py +51 -0
- vapi/types/create_squad_dto.py +52 -0
- vapi/types/create_together_ai_credential_dto.py +25 -0
- vapi/types/create_token_dto.py +34 -0
- vapi/types/create_token_dto_tag.py +5 -0
- vapi/types/create_tool_call_block_dto.py +75 -0
- vapi/types/create_tool_call_block_dto_messages_item.py +7 -0
- vapi/types/create_tool_call_block_dto_tool.py +20 -0
- vapi/types/create_tool_template_dto.py +38 -0
- vapi/types/create_tool_template_dto_details.py +20 -0
- vapi/types/create_tool_template_dto_provider.py +5 -0
- vapi/types/create_tool_template_dto_provider_details.py +10 -0
- vapi/types/create_tool_template_dto_visibility.py +5 -0
- vapi/types/create_transfer_call_tool_dto.py +67 -0
- vapi/types/create_transfer_call_tool_dto_destinations_item.py +11 -0
- vapi/types/create_transfer_call_tool_dto_messages_item.py +11 -0
- vapi/types/create_twilio_credential_dto.py +27 -0
- vapi/types/create_twilio_phone_number_dto.py +92 -0
- vapi/types/create_twilio_phone_number_dto_fallback_destination.py +7 -0
- vapi/types/create_vapi_phone_number_dto.py +84 -0
- vapi/types/create_vapi_phone_number_dto_fallback_destination.py +7 -0
- vapi/types/create_voicemail_tool_dto.py +65 -0
- vapi/types/create_voicemail_tool_dto_messages_item.py +11 -0
- vapi/types/create_vonage_credential_dto.py +27 -0
- vapi/types/create_vonage_phone_number_dto.py +87 -0
- vapi/types/create_vonage_phone_number_dto_fallback_destination.py +7 -0
- vapi/types/create_web_call_dto.py +63 -0
- vapi/types/create_workflow_block_dto.py +78 -0
- vapi/types/create_workflow_block_dto_messages_item.py +7 -0
- vapi/types/create_workflow_block_dto_steps_item.py +10 -0
- vapi/types/custom_llm_credential.py +46 -0
- vapi/types/custom_llm_model.py +115 -0
- vapi/types/custom_llm_model_metadata_send_mode.py +5 -0
- vapi/types/custom_llm_model_tools_item.py +20 -0
- vapi/types/deep_infra_credential.py +46 -0
- vapi/types/deep_infra_model.py +90 -0
- vapi/types/deep_infra_model_tools_item.py +20 -0
- vapi/types/deepgram_credential.py +53 -0
- vapi/types/deepgram_transcriber.py +68 -0
- vapi/types/deepgram_transcriber_language.py +65 -0
- vapi/types/deepgram_transcriber_model.py +37 -0
- vapi/types/deepgram_voice.py +47 -0
- vapi/types/deepgram_voice_id.py +6 -0
- vapi/types/deepgram_voice_id_enum.py +10 -0
- vapi/types/dtmf_tool.py +82 -0
- vapi/types/dtmf_tool_messages_item.py +9 -0
- vapi/types/eleven_labs_credential.py +46 -0
- vapi/types/eleven_labs_voice.py +98 -0
- vapi/types/eleven_labs_voice_id.py +6 -0
- vapi/types/eleven_labs_voice_id_enum.py +24 -0
- vapi/types/eleven_labs_voice_model.py +8 -0
- vapi/types/end_call_tool.py +82 -0
- vapi/types/end_call_tool_messages_item.py +9 -0
- vapi/types/error.py +19 -0
- vapi/types/exact_replacement.py +40 -0
- vapi/types/file.py +57 -0
- vapi/types/file_status.py +5 -0
- vapi/types/format_plan.py +64 -0
- vapi/types/format_plan_replacements_item.py +7 -0
- vapi/types/function_tool.py +82 -0
- vapi/types/function_tool_messages_item.py +9 -0
- vapi/types/function_tool_provider_details.py +35 -0
- vapi/types/function_tool_with_tool_call.py +67 -0
- vapi/types/function_tool_with_tool_call_messages_item.py +11 -0
- vapi/types/gcp_credential.py +62 -0
- vapi/types/gcp_key.py +78 -0
- vapi/types/ghl_tool.py +85 -0
- vapi/types/ghl_tool_messages_item.py +9 -0
- vapi/types/ghl_tool_metadata.py +22 -0
- vapi/types/ghl_tool_provider_details.py +41 -0
- vapi/types/ghl_tool_with_tool_call.py +69 -0
- vapi/types/ghl_tool_with_tool_call_messages_item.py +11 -0
- vapi/types/gladia_credential.py +46 -0
- vapi/types/gladia_transcriber.py +56 -0
- vapi/types/gladia_transcriber_language.py +109 -0
- vapi/types/gladia_transcriber_language_behaviour.py +7 -0
- vapi/types/gladia_transcriber_model.py +5 -0
- vapi/types/go_high_level_credential.py +46 -0
- vapi/types/groq_credential.py +46 -0
- vapi/types/groq_model.py +91 -0
- vapi/types/groq_model_model.py +19 -0
- vapi/types/groq_model_tools_item.py +20 -0
- vapi/types/handoff_step.py +116 -0
- vapi/types/handoff_step_block.py +11 -0
- vapi/types/import_twilio_phone_number_dto.py +91 -0
- vapi/types/import_twilio_phone_number_dto_fallback_destination.py +7 -0
- vapi/types/import_vonage_phone_number_dto.py +88 -0
- vapi/types/import_vonage_phone_number_dto_fallback_destination.py +7 -0
- vapi/types/invite_user_dto.py +21 -0
- vapi/types/invite_user_dto_role.py +5 -0
- vapi/types/json_schema.py +57 -0
- vapi/types/json_schema_type.py +5 -0
- vapi/types/knowledge_base.py +23 -0
- vapi/types/lmnt_credential.py +46 -0
- vapi/types/lmnt_voice.py +52 -0
- vapi/types/lmnt_voice_id.py +6 -0
- vapi/types/lmnt_voice_id_enum.py +5 -0
- vapi/types/log.py +164 -0
- vapi/types/log_request_http_method.py +5 -0
- vapi/types/log_resource.py +7 -0
- vapi/types/log_type.py +5 -0
- vapi/types/logs_paginated_response.py +22 -0
- vapi/types/make_credential.py +56 -0
- vapi/types/make_tool.py +85 -0
- vapi/types/make_tool_messages_item.py +9 -0
- vapi/types/make_tool_metadata.py +22 -0
- vapi/types/make_tool_provider_details.py +40 -0
- vapi/types/make_tool_with_tool_call.py +69 -0
- vapi/types/make_tool_with_tool_call_messages_item.py +11 -0
- vapi/types/message_plan.py +51 -0
- vapi/types/metrics.py +44 -0
- vapi/types/model_based_condition.py +54 -0
- vapi/types/model_cost.py +53 -0
- vapi/types/monitor.py +33 -0
- vapi/types/monitor_plan.py +43 -0
- vapi/types/neets_voice.py +47 -0
- vapi/types/neets_voice_id.py +6 -0
- vapi/types/neets_voice_id_enum.py +5 -0
- vapi/types/open_ai_credential.py +46 -0
- vapi/types/open_ai_function.py +35 -0
- vapi/types/open_ai_function_parameters.py +35 -0
- vapi/types/open_ai_message.py +21 -0
- vapi/types/open_ai_message_role.py +5 -0
- vapi/types/open_ai_model.py +106 -0
- vapi/types/open_ai_model_fallback_models_item.py +26 -0
- vapi/types/open_ai_model_model.py +26 -0
- vapi/types/open_ai_model_tools_item.py +20 -0
- vapi/types/open_ai_voice.py +52 -0
- vapi/types/open_ai_voice_id.py +5 -0
- vapi/types/open_router_credential.py +46 -0
- vapi/types/open_router_model.py +90 -0
- vapi/types/open_router_model_tools_item.py +20 -0
- vapi/types/org.py +120 -0
- vapi/types/org_plan.py +28 -0
- vapi/types/output_tool.py +82 -0
- vapi/types/output_tool_messages_item.py +9 -0
- vapi/types/pagination_meta.py +23 -0
- vapi/types/perplexity_ai_credential.py +46 -0
- vapi/types/perplexity_ai_model.py +90 -0
- vapi/types/perplexity_ai_model_tools_item.py +20 -0
- vapi/types/play_ht_credential.py +48 -0
- vapi/types/play_ht_voice.py +84 -0
- vapi/types/play_ht_voice_emotion.py +21 -0
- vapi/types/play_ht_voice_id.py +6 -0
- vapi/types/play_ht_voice_id_enum.py +8 -0
- vapi/types/punctuation_boundary.py +7 -0
- vapi/types/regex_option.py +34 -0
- vapi/types/regex_option_type.py +5 -0
- vapi/types/regex_replacement.py +48 -0
- vapi/types/rime_ai_credential.py +46 -0
- vapi/types/rime_ai_voice.py +58 -0
- vapi/types/rime_ai_voice_id.py +6 -0
- vapi/types/rime_ai_voice_id_enum.py +90 -0
- vapi/types/rime_ai_voice_model.py +5 -0
- vapi/types/rule_based_condition.py +96 -0
- vapi/types/rule_based_condition_operator.py +5 -0
- vapi/types/runpod_credential.py +46 -0
- vapi/types/s_3_credential.py +72 -0
- vapi/types/sbc_configuration.py +17 -0
- vapi/types/server.py +40 -0
- vapi/types/server_message.py +40 -0
- vapi/types/server_message_assistant_request.py +96 -0
- vapi/types/server_message_assistant_request_phone_number.py +11 -0
- vapi/types/server_message_conversation_update.py +110 -0
- vapi/types/server_message_conversation_update_messages_item.py +12 -0
- vapi/types/server_message_conversation_update_phone_number.py +11 -0
- vapi/types/server_message_end_of_call_report.py +134 -0
- vapi/types/server_message_end_of_call_report_costs_item.py +13 -0
- vapi/types/server_message_end_of_call_report_ended_reason.py +177 -0
- vapi/types/server_message_end_of_call_report_phone_number.py +11 -0
- vapi/types/server_message_hang.py +101 -0
- vapi/types/server_message_hang_phone_number.py +11 -0
- vapi/types/server_message_language_changed.py +101 -0
- vapi/types/server_message_language_changed_phone_number.py +11 -0
- vapi/types/server_message_message.py +38 -0
- vapi/types/server_message_model_output.py +101 -0
- vapi/types/server_message_model_output_phone_number.py +11 -0
- vapi/types/server_message_phone_call_control.py +110 -0
- vapi/types/server_message_phone_call_control_destination.py +7 -0
- vapi/types/server_message_phone_call_control_phone_number.py +11 -0
- vapi/types/server_message_phone_call_control_request.py +5 -0
- vapi/types/server_message_response.py +39 -0
- vapi/types/server_message_response_assistant_request.py +80 -0
- vapi/types/server_message_response_assistant_request_destination.py +7 -0
- vapi/types/server_message_response_message_response.py +14 -0
- vapi/types/server_message_response_tool_calls.py +28 -0
- vapi/types/server_message_response_transfer_destination_request.py +32 -0
- vapi/types/server_message_response_transfer_destination_request_destination.py +11 -0
- vapi/types/server_message_response_voice_request.py +44 -0
- vapi/types/server_message_speech_update.py +108 -0
- vapi/types/server_message_speech_update_phone_number.py +11 -0
- vapi/types/server_message_speech_update_role.py +5 -0
- vapi/types/server_message_speech_update_status.py +5 -0
- vapi/types/server_message_status_update.py +145 -0
- vapi/types/server_message_status_update_destination.py +7 -0
- vapi/types/server_message_status_update_ended_reason.py +177 -0
- vapi/types/server_message_status_update_messages_item.py +12 -0
- vapi/types/server_message_status_update_phone_number.py +11 -0
- vapi/types/server_message_status_update_status.py +7 -0
- vapi/types/server_message_tool_calls.py +112 -0
- vapi/types/server_message_tool_calls_phone_number.py +11 -0
- vapi/types/server_message_tool_calls_tool_with_tool_call_list_item.py +10 -0
- vapi/types/server_message_transcript.py +115 -0
- vapi/types/server_message_transcript_phone_number.py +11 -0
- vapi/types/server_message_transcript_role.py +5 -0
- vapi/types/server_message_transcript_transcript_type.py +5 -0
- vapi/types/server_message_transfer_destination_request.py +98 -0
- vapi/types/server_message_transfer_destination_request_phone_number.py +11 -0
- vapi/types/server_message_transfer_update.py +116 -0
- vapi/types/server_message_transfer_update_destination.py +11 -0
- vapi/types/server_message_transfer_update_phone_number.py +11 -0
- vapi/types/server_message_user_interrupted.py +96 -0
- vapi/types/server_message_user_interrupted_phone_number.py +11 -0
- vapi/types/server_message_voice_input.py +101 -0
- vapi/types/server_message_voice_input_phone_number.py +11 -0
- vapi/types/server_message_voice_request.py +128 -0
- vapi/types/server_message_voice_request_phone_number.py +11 -0
- vapi/types/sip_trunk_gateway.py +79 -0
- vapi/types/sip_trunk_gateway_outbound_protocol.py +5 -0
- vapi/types/sip_trunk_outbound_authentication_plan.py +35 -0
- vapi/types/sip_trunk_outbound_sip_register_plan.py +21 -0
- vapi/types/squad.py +73 -0
- vapi/types/squad_member_dto.py +60 -0
- vapi/types/start_speaking_plan.py +62 -0
- vapi/types/step_destination.py +28 -0
- vapi/types/step_destination_conditions_item.py +7 -0
- vapi/types/stop_speaking_plan.py +65 -0
- vapi/types/structured_data_plan.py +66 -0
- vapi/types/success_evaluation_plan.py +75 -0
- vapi/types/success_evaluation_plan_rubric.py +17 -0
- vapi/types/summary_plan.py +56 -0
- vapi/types/sync_voice_library_dto.py +23 -0
- vapi/types/sync_voice_library_dto_providers_item.py +10 -0
- vapi/types/system_message.py +39 -0
- vapi/types/talkscriber_transcriber.py +33 -0
- vapi/types/talkscriber_transcriber_language.py +109 -0
- vapi/types/template.py +58 -0
- vapi/types/template_details.py +20 -0
- vapi/types/template_provider.py +5 -0
- vapi/types/template_provider_details.py +8 -0
- vapi/types/template_visibility.py +5 -0
- vapi/types/time_range.py +47 -0
- vapi/types/time_range_step.py +8 -0
- vapi/types/together_ai_credential.py +46 -0
- vapi/types/together_ai_model.py +90 -0
- vapi/types/together_ai_model_tools_item.py +20 -0
- vapi/types/token.py +62 -0
- vapi/types/token_restrictions.py +53 -0
- vapi/types/token_tag.py +5 -0
- vapi/types/tool_call.py +33 -0
- vapi/types/tool_call_block.py +96 -0
- vapi/types/tool_call_block_messages_item.py +7 -0
- vapi/types/tool_call_block_tool.py +20 -0
- vapi/types/tool_call_function.py +27 -0
- vapi/types/tool_call_message.py +46 -0
- vapi/types/tool_call_result.py +62 -0
- vapi/types/tool_call_result_message.py +49 -0
- vapi/types/tool_call_result_message_item.py +7 -0
- vapi/types/tool_message_complete.py +74 -0
- vapi/types/tool_message_complete_role.py +5 -0
- vapi/types/tool_message_delayed.py +49 -0
- vapi/types/tool_message_failed.py +50 -0
- vapi/types/tool_message_start.py +37 -0
- vapi/types/tool_template_metadata.py +23 -0
- vapi/types/tool_template_setup.py +24 -0
- vapi/types/transcriber_cost.py +46 -0
- vapi/types/transcript_plan.py +66 -0
- vapi/types/transcription_endpointing_plan.py +52 -0
- vapi/types/transfer_call_tool.py +88 -0
- vapi/types/transfer_call_tool_destinations_item.py +11 -0
- vapi/types/transfer_call_tool_messages_item.py +11 -0
- vapi/types/transfer_destination_assistant.py +90 -0
- vapi/types/transfer_destination_number.py +77 -0
- vapi/types/transfer_destination_sip.py +39 -0
- vapi/types/transfer_destination_step.py +39 -0
- vapi/types/transfer_mode.py +5 -0
- vapi/types/transport_configuration_twilio.py +55 -0
- vapi/types/transport_configuration_twilio_recording_channels.py +5 -0
- vapi/types/transport_cost.py +32 -0
- vapi/types/twilio_credential.py +48 -0
- vapi/types/twilio_phone_number.py +113 -0
- vapi/types/twilio_phone_number_fallback_destination.py +7 -0
- vapi/types/twilio_voicemail_detection.py +107 -0
- vapi/types/twilio_voicemail_detection_voicemail_detection_types_item.py +10 -0
- vapi/types/update_anthropic_credential_dto.py +25 -0
- vapi/types/update_anyscale_credential_dto.py +25 -0
- vapi/types/update_azure_open_ai_credential_dto.py +31 -0
- vapi/types/update_azure_open_ai_credential_dto_models_item.py +17 -0
- vapi/types/update_azure_open_ai_credential_dto_region.py +24 -0
- vapi/types/update_byo_sip_trunk_credential_dto.py +64 -0
- vapi/types/update_cartesia_credential_dto.py +25 -0
- vapi/types/update_custom_llm_credential_dto.py +25 -0
- vapi/types/update_deep_infra_credential_dto.py +25 -0
- vapi/types/update_deepgram_credential_dto.py +32 -0
- vapi/types/update_eleven_labs_credential_dto.py +25 -0
- vapi/types/update_gcp_credential_dto.py +41 -0
- vapi/types/update_gladia_credential_dto.py +25 -0
- vapi/types/update_go_high_level_credential_dto.py +25 -0
- vapi/types/update_groq_credential_dto.py +25 -0
- vapi/types/update_lmnt_credential_dto.py +25 -0
- vapi/types/update_make_credential_dto.py +35 -0
- vapi/types/update_open_ai_credential_dto.py +25 -0
- vapi/types/update_open_router_credential_dto.py +25 -0
- vapi/types/update_org_dto.py +63 -0
- vapi/types/update_perplexity_ai_credential_dto.py +25 -0
- vapi/types/update_play_ht_credential_dto.py +27 -0
- vapi/types/update_rime_ai_credential_dto.py +25 -0
- vapi/types/update_runpod_credential_dto.py +25 -0
- vapi/types/update_s_3_credential_dto.py +51 -0
- vapi/types/update_together_ai_credential_dto.py +25 -0
- vapi/types/update_tool_template_dto.py +38 -0
- vapi/types/update_tool_template_dto_details.py +20 -0
- vapi/types/update_tool_template_dto_provider.py +5 -0
- vapi/types/update_tool_template_dto_provider_details.py +10 -0
- vapi/types/update_tool_template_dto_visibility.py +5 -0
- vapi/types/update_twilio_credential_dto.py +27 -0
- vapi/types/update_user_role_dto.py +23 -0
- vapi/types/update_user_role_dto_role.py +5 -0
- vapi/types/update_vonage_credential_dto.py +27 -0
- vapi/types/user.py +47 -0
- vapi/types/user_message.py +49 -0
- vapi/types/vapi_cost.py +32 -0
- vapi/types/vapi_model.py +102 -0
- vapi/types/vapi_model_steps_item.py +7 -0
- vapi/types/vapi_model_tools_item.py +20 -0
- vapi/types/vapi_phone_number.py +105 -0
- vapi/types/vapi_phone_number_fallback_destination.py +7 -0
- vapi/types/voice_cost.py +46 -0
- vapi/types/voice_library.py +126 -0
- vapi/types/voice_library_gender.py +5 -0
- vapi/types/voice_library_voice_response.py +27 -0
- vapi/types/vonage_credential.py +64 -0
- vapi/types/vonage_phone_number.py +108 -0
- vapi/types/vonage_phone_number_fallback_destination.py +7 -0
- vapi/types/workflow_block.py +99 -0
- vapi/types/workflow_block_messages_item.py +7 -0
- vapi/types/workflow_block_steps_item.py +7 -0
- vapi/version.py +3 -0
- vapi_server_sdk-0.0.0a7.dist-info/METADATA +179 -0
- vapi_server_sdk-0.0.0a7.dist-info/RECORD +571 -0
- vapi_server_sdk-0.0.0a7.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
AssistantClientMessagesItem = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"conversation-update",
|
|
8
|
+
"function-call",
|
|
9
|
+
"function-call-result",
|
|
10
|
+
"hang",
|
|
11
|
+
"language-changed",
|
|
12
|
+
"metadata",
|
|
13
|
+
"model-output",
|
|
14
|
+
"speech-update",
|
|
15
|
+
"status-update",
|
|
16
|
+
"transcript",
|
|
17
|
+
"tool-calls",
|
|
18
|
+
"tool-calls-result",
|
|
19
|
+
"user-interrupted",
|
|
20
|
+
"voice-input",
|
|
21
|
+
],
|
|
22
|
+
typing.Any,
|
|
23
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
AssistantFirstMessageMode = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"assistant-speaks-first", "assistant-speaks-first-with-model-generated-message", "assistant-waits-for-user"
|
|
8
|
+
],
|
|
9
|
+
typing.Any,
|
|
10
|
+
]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .anyscale_model import AnyscaleModel
|
|
5
|
+
from .anthropic_model import AnthropicModel
|
|
6
|
+
from .custom_llm_model import CustomLlmModel
|
|
7
|
+
from .deep_infra_model import DeepInfraModel
|
|
8
|
+
from .groq_model import GroqModel
|
|
9
|
+
from .open_ai_model import OpenAiModel
|
|
10
|
+
from .open_router_model import OpenRouterModel
|
|
11
|
+
from .perplexity_ai_model import PerplexityAiModel
|
|
12
|
+
from .together_ai_model import TogetherAiModel
|
|
13
|
+
from .vapi_model import VapiModel
|
|
14
|
+
|
|
15
|
+
AssistantModel = typing.Union[
|
|
16
|
+
AnyscaleModel,
|
|
17
|
+
AnthropicModel,
|
|
18
|
+
CustomLlmModel,
|
|
19
|
+
DeepInfraModel,
|
|
20
|
+
GroqModel,
|
|
21
|
+
OpenAiModel,
|
|
22
|
+
OpenRouterModel,
|
|
23
|
+
PerplexityAiModel,
|
|
24
|
+
TogetherAiModel,
|
|
25
|
+
VapiModel,
|
|
26
|
+
]
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
5
|
+
from .callback_step import CallbackStep
|
|
6
|
+
from .create_workflow_block_dto import CreateWorkflowBlockDto
|
|
7
|
+
from .handoff_step import HandoffStep
|
|
8
|
+
import typing
|
|
9
|
+
from .assistant_overrides_transcriber import AssistantOverridesTranscriber
|
|
10
|
+
import pydantic
|
|
11
|
+
from .assistant_overrides_model import AssistantOverridesModel
|
|
12
|
+
from .assistant_overrides_voice import AssistantOverridesVoice
|
|
13
|
+
import typing_extensions
|
|
14
|
+
from .assistant_overrides_first_message_mode import AssistantOverridesFirstMessageMode
|
|
15
|
+
from ..core.serialization import FieldMetadata
|
|
16
|
+
from .assistant_overrides_client_messages_item import AssistantOverridesClientMessagesItem
|
|
17
|
+
from .assistant_overrides_server_messages_item import AssistantOverridesServerMessagesItem
|
|
18
|
+
from .assistant_overrides_background_sound import AssistantOverridesBackgroundSound
|
|
19
|
+
from .transport_configuration_twilio import TransportConfigurationTwilio
|
|
20
|
+
from .twilio_voicemail_detection import TwilioVoicemailDetection
|
|
21
|
+
from .analysis_plan import AnalysisPlan
|
|
22
|
+
from .artifact_plan import ArtifactPlan
|
|
23
|
+
from .message_plan import MessagePlan
|
|
24
|
+
from .start_speaking_plan import StartSpeakingPlan
|
|
25
|
+
from .stop_speaking_plan import StopSpeakingPlan
|
|
26
|
+
from .monitor_plan import MonitorPlan
|
|
27
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
28
|
+
from ..core.pydantic_utilities import update_forward_refs
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class AssistantOverrides(UniversalBaseModel):
|
|
32
|
+
transcriber: typing.Optional[AssistantOverridesTranscriber] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
These are the options for the assistant's transcriber.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
model: typing.Optional[AssistantOverridesModel] = pydantic.Field(default=None)
|
|
38
|
+
"""
|
|
39
|
+
These are the options for the assistant's LLM.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
voice: typing.Optional[AssistantOverridesVoice] = pydantic.Field(default=None)
|
|
43
|
+
"""
|
|
44
|
+
These are the options for the assistant's voice.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
first_message_mode: typing_extensions.Annotated[
|
|
48
|
+
typing.Optional[AssistantOverridesFirstMessageMode], FieldMetadata(alias="firstMessageMode")
|
|
49
|
+
] = pydantic.Field(default=None)
|
|
50
|
+
"""
|
|
51
|
+
This is the mode for the first message. Default is 'assistant-speaks-first'.
|
|
52
|
+
|
|
53
|
+
Use:
|
|
54
|
+
|
|
55
|
+
- 'assistant-speaks-first' to have the assistant speak first.
|
|
56
|
+
- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.
|
|
57
|
+
- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).
|
|
58
|
+
|
|
59
|
+
@default 'assistant-speaks-first'
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
hipaa_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="hipaaEnabled")] = (
|
|
63
|
+
pydantic.Field(default=None)
|
|
64
|
+
)
|
|
65
|
+
"""
|
|
66
|
+
When this is enabled, no logs, recordings, or transcriptions will be stored. At the end of the call, you will still receive an end-of-call-report message to store on your server. Defaults to false.
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
client_messages: typing_extensions.Annotated[
|
|
70
|
+
typing.Optional[typing.List[AssistantOverridesClientMessagesItem]], FieldMetadata(alias="clientMessages")
|
|
71
|
+
] = pydantic.Field(default=None)
|
|
72
|
+
"""
|
|
73
|
+
These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transcript,tool-calls,user-interrupted,voice-input. You can check the shape of the messages in ClientMessage schema.
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
server_messages: typing_extensions.Annotated[
|
|
77
|
+
typing.Optional[typing.List[AssistantOverridesServerMessagesItem]], FieldMetadata(alias="serverMessages")
|
|
78
|
+
] = pydantic.Field(default=None)
|
|
79
|
+
"""
|
|
80
|
+
These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema.
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
silence_timeout_seconds: typing_extensions.Annotated[
|
|
84
|
+
typing.Optional[float], FieldMetadata(alias="silenceTimeoutSeconds")
|
|
85
|
+
] = pydantic.Field(default=None)
|
|
86
|
+
"""
|
|
87
|
+
How many seconds of silence to wait before ending the call. Defaults to 30.
|
|
88
|
+
|
|
89
|
+
@default 30
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
max_duration_seconds: typing_extensions.Annotated[
|
|
93
|
+
typing.Optional[float], FieldMetadata(alias="maxDurationSeconds")
|
|
94
|
+
] = pydantic.Field(default=None)
|
|
95
|
+
"""
|
|
96
|
+
This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.
|
|
97
|
+
|
|
98
|
+
@default 600 (10 minutes)
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
background_sound: typing_extensions.Annotated[
|
|
102
|
+
typing.Optional[AssistantOverridesBackgroundSound], FieldMetadata(alias="backgroundSound")
|
|
103
|
+
] = pydantic.Field(default=None)
|
|
104
|
+
"""
|
|
105
|
+
This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
backchanneling_enabled: typing_extensions.Annotated[
|
|
109
|
+
typing.Optional[bool], FieldMetadata(alias="backchannelingEnabled")
|
|
110
|
+
] = pydantic.Field(default=None)
|
|
111
|
+
"""
|
|
112
|
+
This determines whether the model says 'mhmm', 'ahem' etc. while user is speaking.
|
|
113
|
+
|
|
114
|
+
Default `false` while in beta.
|
|
115
|
+
|
|
116
|
+
@default false
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
background_denoising_enabled: typing_extensions.Annotated[
|
|
120
|
+
typing.Optional[bool], FieldMetadata(alias="backgroundDenoisingEnabled")
|
|
121
|
+
] = pydantic.Field(default=None)
|
|
122
|
+
"""
|
|
123
|
+
This enables filtering of noise and background speech while the user is talking.
|
|
124
|
+
|
|
125
|
+
Default `false` while in beta.
|
|
126
|
+
|
|
127
|
+
@default false
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
model_output_in_messages_enabled: typing_extensions.Annotated[
|
|
131
|
+
typing.Optional[bool], FieldMetadata(alias="modelOutputInMessagesEnabled")
|
|
132
|
+
] = pydantic.Field(default=None)
|
|
133
|
+
"""
|
|
134
|
+
This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.
|
|
135
|
+
|
|
136
|
+
Default `false` while in beta.
|
|
137
|
+
|
|
138
|
+
@default false
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
transport_configurations: typing_extensions.Annotated[
|
|
142
|
+
typing.Optional[typing.List[TransportConfigurationTwilio]], FieldMetadata(alias="transportConfigurations")
|
|
143
|
+
] = pydantic.Field(default=None)
|
|
144
|
+
"""
|
|
145
|
+
These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
variable_values: typing_extensions.Annotated[
|
|
149
|
+
typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="variableValues")
|
|
150
|
+
] = pydantic.Field(default=None)
|
|
151
|
+
"""
|
|
152
|
+
These are values that will be used to replace the template variables in the assistant messages and other text-based fields.
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
156
|
+
"""
|
|
157
|
+
This is the name of the assistant.
|
|
158
|
+
|
|
159
|
+
This is required when you want to transfer between assistants in a call.
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
first_message: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="firstMessage")] = (
|
|
163
|
+
pydantic.Field(default=None)
|
|
164
|
+
)
|
|
165
|
+
"""
|
|
166
|
+
This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).
|
|
167
|
+
|
|
168
|
+
If unspecified, assistant will wait for user to speak and use the model to respond once they speak.
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
voicemail_detection: typing_extensions.Annotated[
|
|
172
|
+
typing.Optional[TwilioVoicemailDetection], FieldMetadata(alias="voicemailDetection")
|
|
173
|
+
] = pydantic.Field(default=None)
|
|
174
|
+
"""
|
|
175
|
+
These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].
|
|
176
|
+
This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached.
|
|
177
|
+
You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not.
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
voicemail_message: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="voicemailMessage")] = (
|
|
181
|
+
pydantic.Field(default=None)
|
|
182
|
+
)
|
|
183
|
+
"""
|
|
184
|
+
This is the message that the assistant will say if the call is forwarded to voicemail.
|
|
185
|
+
|
|
186
|
+
If unspecified, it will hang up.
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
end_call_message: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="endCallMessage")] = (
|
|
190
|
+
pydantic.Field(default=None)
|
|
191
|
+
)
|
|
192
|
+
"""
|
|
193
|
+
This is the message that the assistant will say if it ends the call.
|
|
194
|
+
|
|
195
|
+
If unspecified, it will hang up without saying anything.
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
end_call_phrases: typing_extensions.Annotated[
|
|
199
|
+
typing.Optional[typing.List[str]], FieldMetadata(alias="endCallPhrases")
|
|
200
|
+
] = pydantic.Field(default=None)
|
|
201
|
+
"""
|
|
202
|
+
This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.
|
|
203
|
+
"""
|
|
204
|
+
|
|
205
|
+
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
|
|
206
|
+
"""
|
|
207
|
+
This is for metadata you want to store on the assistant.
|
|
208
|
+
"""
|
|
209
|
+
|
|
210
|
+
server_url: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="serverUrl")] = pydantic.Field(
|
|
211
|
+
default=None
|
|
212
|
+
)
|
|
213
|
+
"""
|
|
214
|
+
This is the URL Vapi will communicate with via HTTP GET and POST Requests. This is used for retrieving context, function calling, and end-of-call reports.
|
|
215
|
+
|
|
216
|
+
All requests will be sent with the call object among other things relevant to that message. You can find more details in the Server URL documentation.
|
|
217
|
+
|
|
218
|
+
This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
server_url_secret: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="serverUrlSecret")] = (
|
|
222
|
+
pydantic.Field(default=None)
|
|
223
|
+
)
|
|
224
|
+
"""
|
|
225
|
+
This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret.
|
|
226
|
+
|
|
227
|
+
Same precedence logic as serverUrl.
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
analysis_plan: typing_extensions.Annotated[typing.Optional[AnalysisPlan], FieldMetadata(alias="analysisPlan")] = (
|
|
231
|
+
pydantic.Field(default=None)
|
|
232
|
+
)
|
|
233
|
+
"""
|
|
234
|
+
This is the plan for analysis of assistant's calls. Stored in `call.analysis`.
|
|
235
|
+
"""
|
|
236
|
+
|
|
237
|
+
artifact_plan: typing_extensions.Annotated[typing.Optional[ArtifactPlan], FieldMetadata(alias="artifactPlan")] = (
|
|
238
|
+
pydantic.Field(default=None)
|
|
239
|
+
)
|
|
240
|
+
"""
|
|
241
|
+
This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.
|
|
242
|
+
|
|
243
|
+
Note: `recordingEnabled` is currently at the root level. It will be moved to `artifactPlan` in the future, but will remain backwards compatible.
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
message_plan: typing_extensions.Annotated[typing.Optional[MessagePlan], FieldMetadata(alias="messagePlan")] = (
|
|
247
|
+
pydantic.Field(default=None)
|
|
248
|
+
)
|
|
249
|
+
"""
|
|
250
|
+
This is the plan for static predefined messages that can be spoken by the assistant during the call, like `idleMessages`.
|
|
251
|
+
|
|
252
|
+
Note: `firstMessage`, `voicemailMessage`, and `endCallMessage` are currently at the root level. They will be moved to `messagePlan` in the future, but will remain backwards compatible.
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
start_speaking_plan: typing_extensions.Annotated[
|
|
256
|
+
typing.Optional[StartSpeakingPlan], FieldMetadata(alias="startSpeakingPlan")
|
|
257
|
+
] = pydantic.Field(default=None)
|
|
258
|
+
"""
|
|
259
|
+
This is the plan for when the assistant should start talking.
|
|
260
|
+
|
|
261
|
+
You should configure this if you're running into these issues:
|
|
262
|
+
|
|
263
|
+
- The assistant is too slow to start talking after the customer is done speaking.
|
|
264
|
+
- The assistant is too fast to start talking after the customer is done speaking.
|
|
265
|
+
- The assistant is so fast that it's actually interrupting the customer.
|
|
266
|
+
"""
|
|
267
|
+
|
|
268
|
+
stop_speaking_plan: typing_extensions.Annotated[
|
|
269
|
+
typing.Optional[StopSpeakingPlan], FieldMetadata(alias="stopSpeakingPlan")
|
|
270
|
+
] = pydantic.Field(default=None)
|
|
271
|
+
"""
|
|
272
|
+
This is the plan for when assistant should stop talking on customer interruption.
|
|
273
|
+
|
|
274
|
+
You should configure this if you're running into these issues:
|
|
275
|
+
|
|
276
|
+
- The assistant is too slow to recognize customer's interruption.
|
|
277
|
+
- The assistant is too fast to recognize customer's interruption.
|
|
278
|
+
- The assistant is getting interrupted by phrases that are just acknowledgments.
|
|
279
|
+
- The assistant is getting interrupted by background noises.
|
|
280
|
+
- The assistant is not properly stopping -- it starts talking right after getting interrupted.
|
|
281
|
+
"""
|
|
282
|
+
|
|
283
|
+
monitor_plan: typing_extensions.Annotated[typing.Optional[MonitorPlan], FieldMetadata(alias="monitorPlan")] = (
|
|
284
|
+
pydantic.Field(default=None)
|
|
285
|
+
)
|
|
286
|
+
"""
|
|
287
|
+
This is the plan for real-time monitoring of the assistant's calls.
|
|
288
|
+
|
|
289
|
+
Usage:
|
|
290
|
+
|
|
291
|
+
- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.
|
|
292
|
+
- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.
|
|
293
|
+
|
|
294
|
+
Note, `serverMessages`, `clientMessages`, `serverUrl` and `serverUrlSecret` are currently at the root level but will be moved to `monitorPlan` in the future. Will remain backwards compatible
|
|
295
|
+
"""
|
|
296
|
+
|
|
297
|
+
credential_ids: typing_extensions.Annotated[
|
|
298
|
+
typing.Optional[typing.List[str]], FieldMetadata(alias="credentialIds")
|
|
299
|
+
] = pydantic.Field(default=None)
|
|
300
|
+
"""
|
|
301
|
+
These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.
|
|
302
|
+
"""
|
|
303
|
+
|
|
304
|
+
if IS_PYDANTIC_V2:
|
|
305
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
306
|
+
else:
|
|
307
|
+
|
|
308
|
+
class Config:
|
|
309
|
+
frozen = True
|
|
310
|
+
smart_union = True
|
|
311
|
+
extra = pydantic.Extra.allow
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
update_forward_refs(CallbackStep, AssistantOverrides=AssistantOverrides)
|
|
315
|
+
update_forward_refs(CreateWorkflowBlockDto, AssistantOverrides=AssistantOverrides)
|
|
316
|
+
update_forward_refs(HandoffStep, AssistantOverrides=AssistantOverrides)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
AssistantOverridesClientMessagesItem = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"conversation-update",
|
|
8
|
+
"function-call",
|
|
9
|
+
"function-call-result",
|
|
10
|
+
"hang",
|
|
11
|
+
"language-changed",
|
|
12
|
+
"metadata",
|
|
13
|
+
"model-output",
|
|
14
|
+
"speech-update",
|
|
15
|
+
"status-update",
|
|
16
|
+
"transcript",
|
|
17
|
+
"tool-calls",
|
|
18
|
+
"tool-calls-result",
|
|
19
|
+
"user-interrupted",
|
|
20
|
+
"voice-input",
|
|
21
|
+
],
|
|
22
|
+
typing.Any,
|
|
23
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
AssistantOverridesFirstMessageMode = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"assistant-speaks-first", "assistant-speaks-first-with-model-generated-message", "assistant-waits-for-user"
|
|
8
|
+
],
|
|
9
|
+
typing.Any,
|
|
10
|
+
]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .anyscale_model import AnyscaleModel
|
|
5
|
+
from .anthropic_model import AnthropicModel
|
|
6
|
+
from .custom_llm_model import CustomLlmModel
|
|
7
|
+
from .deep_infra_model import DeepInfraModel
|
|
8
|
+
from .groq_model import GroqModel
|
|
9
|
+
from .open_ai_model import OpenAiModel
|
|
10
|
+
from .open_router_model import OpenRouterModel
|
|
11
|
+
from .perplexity_ai_model import PerplexityAiModel
|
|
12
|
+
from .together_ai_model import TogetherAiModel
|
|
13
|
+
from .vapi_model import VapiModel
|
|
14
|
+
|
|
15
|
+
AssistantOverridesModel = typing.Union[
|
|
16
|
+
AnyscaleModel,
|
|
17
|
+
AnthropicModel,
|
|
18
|
+
CustomLlmModel,
|
|
19
|
+
DeepInfraModel,
|
|
20
|
+
GroqModel,
|
|
21
|
+
OpenAiModel,
|
|
22
|
+
OpenRouterModel,
|
|
23
|
+
PerplexityAiModel,
|
|
24
|
+
TogetherAiModel,
|
|
25
|
+
VapiModel,
|
|
26
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
AssistantOverridesServerMessagesItem = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"conversation-update",
|
|
8
|
+
"end-of-call-report",
|
|
9
|
+
"function-call",
|
|
10
|
+
"hang",
|
|
11
|
+
"language-changed",
|
|
12
|
+
"model-output",
|
|
13
|
+
"phone-call-control",
|
|
14
|
+
"speech-update",
|
|
15
|
+
"status-update",
|
|
16
|
+
"transcript",
|
|
17
|
+
"tool-calls",
|
|
18
|
+
"transfer-destination-request",
|
|
19
|
+
"transfer-update",
|
|
20
|
+
"user-interrupted",
|
|
21
|
+
"voice-input",
|
|
22
|
+
],
|
|
23
|
+
typing.Any,
|
|
24
|
+
]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .deepgram_transcriber import DeepgramTranscriber
|
|
5
|
+
from .gladia_transcriber import GladiaTranscriber
|
|
6
|
+
from .talkscriber_transcriber import TalkscriberTranscriber
|
|
7
|
+
|
|
8
|
+
AssistantOverridesTranscriber = typing.Union[DeepgramTranscriber, GladiaTranscriber, TalkscriberTranscriber]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .azure_voice import AzureVoice
|
|
5
|
+
from .cartesia_voice import CartesiaVoice
|
|
6
|
+
from .deepgram_voice import DeepgramVoice
|
|
7
|
+
from .eleven_labs_voice import ElevenLabsVoice
|
|
8
|
+
from .lmnt_voice import LmntVoice
|
|
9
|
+
from .neets_voice import NeetsVoice
|
|
10
|
+
from .open_ai_voice import OpenAiVoice
|
|
11
|
+
from .play_ht_voice import PlayHtVoice
|
|
12
|
+
from .rime_ai_voice import RimeAiVoice
|
|
13
|
+
|
|
14
|
+
AssistantOverridesVoice = typing.Union[
|
|
15
|
+
AzureVoice,
|
|
16
|
+
CartesiaVoice,
|
|
17
|
+
DeepgramVoice,
|
|
18
|
+
ElevenLabsVoice,
|
|
19
|
+
LmntVoice,
|
|
20
|
+
NeetsVoice,
|
|
21
|
+
OpenAiVoice,
|
|
22
|
+
PlayHtVoice,
|
|
23
|
+
RimeAiVoice,
|
|
24
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
AssistantServerMessagesItem = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"conversation-update",
|
|
8
|
+
"end-of-call-report",
|
|
9
|
+
"function-call",
|
|
10
|
+
"hang",
|
|
11
|
+
"language-changed",
|
|
12
|
+
"model-output",
|
|
13
|
+
"phone-call-control",
|
|
14
|
+
"speech-update",
|
|
15
|
+
"status-update",
|
|
16
|
+
"transcript",
|
|
17
|
+
"tool-calls",
|
|
18
|
+
"transfer-destination-request",
|
|
19
|
+
"transfer-update",
|
|
20
|
+
"user-interrupted",
|
|
21
|
+
"voice-input",
|
|
22
|
+
],
|
|
23
|
+
typing.Any,
|
|
24
|
+
]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .deepgram_transcriber import DeepgramTranscriber
|
|
5
|
+
from .gladia_transcriber import GladiaTranscriber
|
|
6
|
+
from .talkscriber_transcriber import TalkscriberTranscriber
|
|
7
|
+
|
|
8
|
+
AssistantTranscriber = typing.Union[DeepgramTranscriber, GladiaTranscriber, TalkscriberTranscriber]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .azure_voice import AzureVoice
|
|
5
|
+
from .cartesia_voice import CartesiaVoice
|
|
6
|
+
from .deepgram_voice import DeepgramVoice
|
|
7
|
+
from .eleven_labs_voice import ElevenLabsVoice
|
|
8
|
+
from .lmnt_voice import LmntVoice
|
|
9
|
+
from .neets_voice import NeetsVoice
|
|
10
|
+
from .open_ai_voice import OpenAiVoice
|
|
11
|
+
from .play_ht_voice import PlayHtVoice
|
|
12
|
+
from .rime_ai_voice import RimeAiVoice
|
|
13
|
+
|
|
14
|
+
AssistantVoice = typing.Union[
|
|
15
|
+
AzureVoice,
|
|
16
|
+
CartesiaVoice,
|
|
17
|
+
DeepgramVoice,
|
|
18
|
+
ElevenLabsVoice,
|
|
19
|
+
LmntVoice,
|
|
20
|
+
NeetsVoice,
|
|
21
|
+
OpenAiVoice,
|
|
22
|
+
PlayHtVoice,
|
|
23
|
+
RimeAiVoice,
|
|
24
|
+
]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from .azure_open_ai_credential_region import AzureOpenAiCredentialRegion
|
|
6
|
+
from .azure_open_ai_credential_models_item import AzureOpenAiCredentialModelsItem
|
|
7
|
+
import typing_extensions
|
|
8
|
+
from ..core.serialization import FieldMetadata
|
|
9
|
+
import pydantic
|
|
10
|
+
import datetime as dt
|
|
11
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AzureOpenAiCredential(UniversalBaseModel):
|
|
15
|
+
provider: typing.Literal["azure-openai"] = "azure-openai"
|
|
16
|
+
region: AzureOpenAiCredentialRegion
|
|
17
|
+
models: typing.List[AzureOpenAiCredentialModelsItem]
|
|
18
|
+
open_ai_key: typing_extensions.Annotated[str, FieldMetadata(alias="openAIKey")] = pydantic.Field()
|
|
19
|
+
"""
|
|
20
|
+
This is not returned in the API.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
id: str = pydantic.Field()
|
|
24
|
+
"""
|
|
25
|
+
This is the unique identifier for the credential.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId")] = pydantic.Field()
|
|
29
|
+
"""
|
|
30
|
+
This is the unique identifier for the org that this credential belongs to.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
created_at: typing_extensions.Annotated[dt.datetime, FieldMetadata(alias="createdAt")] = pydantic.Field()
|
|
34
|
+
"""
|
|
35
|
+
This is the ISO 8601 date-time string of when the credential was created.
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
updated_at: typing_extensions.Annotated[dt.datetime, FieldMetadata(alias="updatedAt")] = pydantic.Field()
|
|
39
|
+
"""
|
|
40
|
+
This is the ISO 8601 date-time string of when the assistant was last updated.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
open_ai_endpoint: typing_extensions.Annotated[str, FieldMetadata(alias="openAIEndpoint")]
|
|
44
|
+
|
|
45
|
+
if IS_PYDANTIC_V2:
|
|
46
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
47
|
+
else:
|
|
48
|
+
|
|
49
|
+
class Config:
|
|
50
|
+
frozen = True
|
|
51
|
+
smart_union = True
|
|
52
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
AzureOpenAiCredentialModelsItem = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"gpt-4o-mini-2024-07-18",
|
|
8
|
+
"gpt-4o-2024-05-13",
|
|
9
|
+
"gpt-4-turbo-2024-04-09",
|
|
10
|
+
"gpt-4-0125-preview",
|
|
11
|
+
"gpt-4-1106-preview",
|
|
12
|
+
"gpt-4-0613",
|
|
13
|
+
"gpt-35-turbo-0125",
|
|
14
|
+
"gpt-35-turbo-1106",
|
|
15
|
+
],
|
|
16
|
+
typing.Any,
|
|
17
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
AzureOpenAiCredentialRegion = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"australia",
|
|
8
|
+
"canada",
|
|
9
|
+
"eastus2",
|
|
10
|
+
"eastus",
|
|
11
|
+
"france",
|
|
12
|
+
"india",
|
|
13
|
+
"japan",
|
|
14
|
+
"northcentralus",
|
|
15
|
+
"norway",
|
|
16
|
+
"southcentralus",
|
|
17
|
+
"sweden",
|
|
18
|
+
"switzerland",
|
|
19
|
+
"uk",
|
|
20
|
+
"westus",
|
|
21
|
+
"westus3",
|
|
22
|
+
],
|
|
23
|
+
typing.Any,
|
|
24
|
+
]
|