vapi_server_sdk 0.2.0 → 0.4.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 +160 -68
- data/lib/vapi_server_sdk/analytics/client.rb +0 -14
- data/lib/vapi_server_sdk/assistants/client.rb +19 -72
- 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 +13 -0
- data/lib/vapi_server_sdk/assistants/types/update_assistant_dto_transcriber.rb +13 -0
- data/lib/vapi_server_sdk/assistants/types/update_assistant_dto_voice.rb +13 -0
- data/lib/vapi_server_sdk/blocks/client.rb +7 -236
- data/lib/vapi_server_sdk/blocks/types/blocks_update_request.rb +109 -0
- data/lib/vapi_server_sdk/calls/client.rb +22 -74
- data/lib/vapi_server_sdk/files/client.rb +0 -70
- data/lib/vapi_server_sdk/knowledge_bases/client.rb +7 -78
- data/lib/vapi_server_sdk/knowledge_bases/types/knowledge_bases_update_request.rb +96 -0
- data/lib/vapi_server_sdk/logs/client.rb +75 -22
- data/lib/vapi_server_sdk/logs/types/logging_controller_logs_delete_query_request_type.rb +12 -0
- data/lib/vapi_server_sdk/phone_numbers/client.rb +7 -139
- data/lib/vapi_server_sdk/phone_numbers/types/phone_numbers_update_request.rb +122 -0
- data/lib/vapi_server_sdk/squads/client.rb +16 -70
- data/lib/vapi_server_sdk/tools/client.rb +7 -161
- data/lib/vapi_server_sdk/tools/types/tools_update_request.rb +200 -0
- data/lib/vapi_server_sdk/types/assistant.rb +19 -1
- data/lib/vapi_server_sdk/types/assistant_credentials_item.rb +510 -0
- data/lib/vapi_server_sdk/types/assistant_model.rb +13 -0
- data/lib/vapi_server_sdk/types/assistant_overrides.rb +19 -1
- data/lib/vapi_server_sdk/types/assistant_overrides_credentials_item.rb +510 -0
- data/lib/vapi_server_sdk/types/assistant_overrides_model.rb +13 -0
- data/lib/vapi_server_sdk/types/assistant_overrides_transcriber.rb +13 -0
- data/lib/vapi_server_sdk/types/assistant_overrides_voice.rb +13 -0
- data/lib/vapi_server_sdk/types/assistant_transcriber.rb +13 -0
- data/lib/vapi_server_sdk/types/assistant_voice.rb +13 -0
- data/lib/vapi_server_sdk/types/azure_blob_storage_bucket_plan.rb +88 -0
- data/lib/vapi_server_sdk/types/azure_credential.rb +22 -5
- data/lib/vapi_server_sdk/types/azure_credential_region.rb +5 -3
- data/lib/vapi_server_sdk/types/azure_credential_service.rb +9 -0
- data/lib/vapi_server_sdk/types/azure_open_ai_credential.rb +9 -1
- data/lib/vapi_server_sdk/types/azure_open_ai_credential_region.rb +5 -3
- 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/bash_tool_with_tool_call.rb +175 -0
- data/lib/vapi_server_sdk/types/bash_tool_with_tool_call_messages_item.rb +120 -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/call_ended_reason.rb +44 -29
- 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/{credits_buy_dto.rb → chat_service_response.rb} +9 -17
- data/lib/vapi_server_sdk/types/client_inbound_message_end_call.rb +47 -0
- data/lib/vapi_server_sdk/types/client_inbound_message_message.rb +13 -0
- data/lib/vapi_server_sdk/types/client_message_tool_calls_tool_with_tool_call_list_item.rb +116 -77
- 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_with_tool_call.rb +199 -0
- data/lib/vapi_server_sdk/types/computer_tool_with_tool_call_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/create_anthropic_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_anyscale_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_assembly_ai_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_assistant_dto.rb +19 -1
- 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 +13 -0
- data/lib/vapi_server_sdk/types/create_assistant_dto_transcriber.rb +13 -0
- data/lib/vapi_server_sdk/types/create_assistant_dto_voice.rb +13 -0
- data/lib/vapi_server_sdk/types/create_azure_credential_dto.rb +21 -12
- data/lib/vapi_server_sdk/types/create_azure_credential_dto_region.rb +5 -3
- 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 +10 -9
- data/lib/vapi_server_sdk/types/create_azure_open_ai_credential_dto_region.rb +5 -3
- 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 +1 -9
- data/lib/vapi_server_sdk/types/create_cartesia_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_cerebras_credential_dto.rb +74 -0
- data/lib/vapi_server_sdk/types/create_cloudflare_credential_dto.rb +101 -0
- data/lib/vapi_server_sdk/types/create_custom_knowledge_base_dto.rb +2 -4
- data/lib/vapi_server_sdk/types/create_custom_llm_credential_dto.rb +2 -14
- data/lib/vapi_server_sdk/types/create_deep_infra_credential_dto.rb +2 -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 +2 -9
- data/lib/vapi_server_sdk/types/create_eleven_labs_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_gcp_credential_dto.rb +2 -14
- data/lib/vapi_server_sdk/types/create_gladia_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_go_high_level_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_groq_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_langfuse_credential_dto.rb +2 -15
- data/lib/vapi_server_sdk/types/create_lmnt_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_make_credential_dto.rb +2 -15
- data/lib/vapi_server_sdk/types/create_open_ai_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_open_router_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_org_dto.rb +25 -25
- data/lib/vapi_server_sdk/types/create_perplexity_ai_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_play_ht_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_rime_ai_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_runpod_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_s_3_credential_dto.rb +2 -10
- 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 +2 -9
- data/lib/vapi_server_sdk/types/create_together_ai_credential_dto.rb +2 -9
- data/lib/vapi_server_sdk/types/create_trieve_knowledge_base_dto.rb +34 -47
- data/lib/vapi_server_sdk/types/create_trieve_knowledge_base_dto_create_plan.rb +97 -0
- data/lib/vapi_server_sdk/types/create_twilio_credential_dto.rb +2 -14
- 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 +25 -29
- data/lib/vapi_server_sdk/types/create_vonage_credential_dto.rb +2 -14
- 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 +2 -13
- data/lib/vapi_server_sdk/types/create_workflow_dto.rb +87 -0
- data/lib/vapi_server_sdk/types/create_workflow_dto_nodes_item.rb +81 -0
- data/lib/vapi_server_sdk/types/create_x_ai_credential_dto.rb +2 -11
- data/lib/vapi_server_sdk/types/custom_knowledge_base.rb +2 -4
- 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/edge.rb +80 -0
- data/lib/vapi_server_sdk/types/edge_condition.rb +94 -0
- data/lib/vapi_server_sdk/types/eleven_labs_voice_model.rb +2 -0
- data/lib/vapi_server_sdk/types/fallback_cartesia_voice_model.rb +2 -0
- data/lib/vapi_server_sdk/types/fallback_eleven_labs_voice_model.rb +2 -0
- data/lib/vapi_server_sdk/types/fallback_open_ai_voice.rb +4 -4
- data/lib/vapi_server_sdk/types/fallback_open_ai_voice_id.rb +2 -2
- data/lib/vapi_server_sdk/types/fallback_plan_voices_item.rb +13 -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/function_tool_with_tool_call.rb +1 -10
- data/lib/vapi_server_sdk/types/gather.rb +87 -0
- 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 +1 -9
- data/lib/vapi_server_sdk/types/google_model.rb +17 -1
- data/lib/vapi_server_sdk/types/google_model_model.rb +2 -0
- data/lib/vapi_server_sdk/types/google_realtime_config.rb +121 -0
- 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/json_schema.rb +13 -2
- data/lib/vapi_server_sdk/types/log.rb +18 -18
- data/lib/vapi_server_sdk/types/make_tool_with_tool_call.rb +1 -9
- data/lib/vapi_server_sdk/types/open_ai_model_fallback_models_item.rb +6 -0
- data/lib/vapi_server_sdk/types/open_ai_model_model.rb +6 -0
- data/lib/vapi_server_sdk/types/open_ai_voice.rb +4 -4
- data/lib/vapi_server_sdk/types/open_ai_voice_id.rb +2 -2
- data/lib/vapi_server_sdk/types/org.rb +25 -25
- data/lib/vapi_server_sdk/types/org_with_org_user.rb +25 -25
- data/lib/vapi_server_sdk/types/{subscription_concurrency_line_remove_dto.rb → programmatic_edge_condition.rb} +16 -14
- data/lib/vapi_server_sdk/types/say.rb +72 -0
- data/lib/vapi_server_sdk/types/{payment_retry_dto.rb → semantic_edge_condition.rb} +16 -14
- data/lib/vapi_server_sdk/types/server_message_end_of_call_report_ended_reason.rb +44 -29
- 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 +44 -29
- data/lib/vapi_server_sdk/types/server_message_tool_calls_tool_with_tool_call_list_item.rb +116 -77
- 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/subscription.rb +13 -11
- data/lib/vapi_server_sdk/types/sync_voice_library_dto_providers_item.rb +1 -0
- data/lib/vapi_server_sdk/types/text_editor_tool_with_tool_call.rb +175 -0
- data/lib/vapi_server_sdk/types/text_editor_tool_with_tool_call_messages_item.rb +121 -0
- data/lib/vapi_server_sdk/types/transfer_plan.rb +26 -6
- data/lib/vapi_server_sdk/types/transfer_plan_message.rb +2 -1
- data/lib/vapi_server_sdk/types/trieve_knowledge_base.rb +35 -44
- data/lib/vapi_server_sdk/types/{trieve_knowledge_base_vector_store_create_plan.rb → trieve_knowledge_base_chunk_plan.rb} +17 -11
- data/lib/vapi_server_sdk/types/trieve_knowledge_base_create.rb +59 -0
- data/lib/vapi_server_sdk/types/trieve_knowledge_base_create_plan.rb +96 -0
- data/lib/vapi_server_sdk/types/{subscription_concurrency_line_buy_dto.rb → trieve_knowledge_base_import.rb} +14 -14
- data/lib/vapi_server_sdk/types/{trieve_knowledge_base_vector_store_search_plan.rb → trieve_knowledge_base_search_plan.rb} +9 -11
- data/lib/vapi_server_sdk/types/{trieve_knowledge_base_vector_store_search_plan_search_type.rb → trieve_knowledge_base_search_plan_search_type.rb} +1 -1
- data/lib/vapi_server_sdk/types/twilio_phone_number.rb +25 -29
- data/lib/vapi_server_sdk/types/update_anthropic_credential_dto.rb +4 -11
- data/lib/vapi_server_sdk/types/update_anyscale_credential_dto.rb +4 -11
- data/lib/vapi_server_sdk/types/update_assembly_ai_credential_dto.rb +4 -11
- data/lib/vapi_server_sdk/types/update_azure_credential_dto.rb +24 -14
- data/lib/vapi_server_sdk/types/update_azure_credential_dto_region.rb +5 -3
- 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 +25 -24
- data/lib/vapi_server_sdk/types/update_azure_open_ai_credential_dto_region.rb +5 -3
- 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 +13 -21
- data/lib/vapi_server_sdk/types/update_cartesia_credential_dto.rb +4 -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 +137 -0
- data/lib/vapi_server_sdk/types/update_custom_llm_credential_dto.rb +4 -16
- data/lib/vapi_server_sdk/types/update_deep_infra_credential_dto.rb +4 -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 -18
- 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 +11 -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 +11 -23
- 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 +4 -11
- data/lib/vapi_server_sdk/types/update_go_high_level_credential_dto.rb +4 -11
- data/lib/vapi_server_sdk/types/update_google_credential_dto.rb +4 -13
- data/lib/vapi_server_sdk/types/update_groq_credential_dto.rb +4 -11
- data/lib/vapi_server_sdk/types/update_inflection_ai_credential_dto.rb +4 -13
- data/lib/vapi_server_sdk/types/update_langfuse_credential_dto.rb +8 -21
- data/lib/vapi_server_sdk/types/update_lmnt_credential_dto.rb +4 -11
- data/lib/vapi_server_sdk/types/update_make_credential_dto.rb +8 -21
- 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 +4 -11
- data/lib/vapi_server_sdk/types/update_open_router_credential_dto.rb +4 -11
- data/lib/vapi_server_sdk/types/update_org_dto.rb +25 -25
- 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 +4 -11
- data/lib/vapi_server_sdk/types/update_play_ht_credential_dto.rb +11 -18
- data/lib/vapi_server_sdk/types/update_rime_ai_credential_dto.rb +4 -11
- data/lib/vapi_server_sdk/types/update_runpod_credential_dto.rb +4 -11
- data/lib/vapi_server_sdk/types/update_s_3_credential_dto.rb +12 -20
- 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 +4 -11
- 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 +4 -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 +96 -0
- data/lib/vapi_server_sdk/types/update_trieve_knowledge_base_dto_create_plan.rb +97 -0
- data/lib/vapi_server_sdk/types/update_twilio_credential_dto.rb +11 -23
- 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 +11 -23
- 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_workflow_dto.rb +82 -0
- data/lib/vapi_server_sdk/types/update_workflow_dto_nodes_item.rb +81 -0
- data/lib/vapi_server_sdk/types/update_x_ai_credential_dto.rb +4 -13
- data/lib/vapi_server_sdk/types/vapi_model.rb +27 -1
- data/lib/vapi_server_sdk/types/vapi_phone_number.rb +25 -29
- data/lib/vapi_server_sdk/types/vonage_phone_number.rb +25 -29
- data/lib/vapi_server_sdk/types/workflow.rb +125 -0
- data/lib/vapi_server_sdk/types/workflow_nodes_item.rb +81 -0
- metadata +116 -24
- 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
- data/lib/vapi_server_sdk/types/auto_reload_plan_dto.rb +0 -65
- data/lib/vapi_server_sdk/types/hipaa_buy_dto.rb +0 -65
- data/lib/vapi_server_sdk/types/payment.rb +0 -167
- data/lib/vapi_server_sdk/types/payment_status.rb +0 -11
- data/lib/vapi_server_sdk/types/payments_paginated_response.rb +0 -75
- data/lib/vapi_server_sdk/types/subscription_coupon_add_dto.rb +0 -67
- data/lib/vapi_server_sdk/types/subscription_monthly_charge.rb +0 -65
@@ -35,13 +35,6 @@ module Vapi
|
|
35
35
|
# specified value.
|
36
36
|
# @param request_options [Vapi::RequestOptions]
|
37
37
|
# @return [Array<Vapi::Squad>]
|
38
|
-
# @example
|
39
|
-
# api = Vapi::Client.new(
|
40
|
-
# base_url: "https://api.example.com",
|
41
|
-
# environment: Vapi::Environment::DEFAULT,
|
42
|
-
# token: "YOUR_AUTH_TOKEN"
|
43
|
-
# )
|
44
|
-
# api.squads.list
|
45
38
|
def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil, created_at_le: nil,
|
46
39
|
updated_at_gt: nil, updated_at_lt: nil, updated_at_ge: nil, updated_at_le: nil, request_options: nil)
|
47
40
|
response = @request_client.conn.get do |req|
|
@@ -94,6 +87,7 @@ module Vapi
|
|
94
87
|
# * :background_denoising_enabled (Boolean)
|
95
88
|
# * :model_output_in_messages_enabled (Boolean)
|
96
89
|
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
|
90
|
+
# * :credentials (Array<Vapi::AssistantOverridesCredentialsItem>)
|
97
91
|
# * :variable_values (Hash{String => Object})
|
98
92
|
# * :name (String)
|
99
93
|
# * :voicemail_detection (Hash)
|
@@ -122,6 +116,7 @@ module Vapi
|
|
122
116
|
# * :properties (Hash{String => Object})
|
123
117
|
# * :description (String)
|
124
118
|
# * :required (Array<String>)
|
119
|
+
# * :enum (Array<String>)
|
125
120
|
# * :timeout_seconds (Float)
|
126
121
|
# * :success_evaluation_plan (Hash)
|
127
122
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -163,13 +158,6 @@ module Vapi
|
|
163
158
|
# * :headers (Hash{String => Object})
|
164
159
|
# @param request_options [Vapi::RequestOptions]
|
165
160
|
# @return [Vapi::Squad]
|
166
|
-
# @example
|
167
|
-
# api = Vapi::Client.new(
|
168
|
-
# base_url: "https://api.example.com",
|
169
|
-
# environment: Vapi::Environment::DEFAULT,
|
170
|
-
# token: "YOUR_AUTH_TOKEN"
|
171
|
-
# )
|
172
|
-
# api.squads.create(request: { members: [{ }] })
|
173
161
|
def create(request:, request_options: nil)
|
174
162
|
response = @request_client.conn.post do |req|
|
175
163
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -191,13 +179,6 @@ module Vapi
|
|
191
179
|
# @param id [String]
|
192
180
|
# @param request_options [Vapi::RequestOptions]
|
193
181
|
# @return [Vapi::Squad]
|
194
|
-
# @example
|
195
|
-
# api = Vapi::Client.new(
|
196
|
-
# base_url: "https://api.example.com",
|
197
|
-
# environment: Vapi::Environment::DEFAULT,
|
198
|
-
# token: "YOUR_AUTH_TOKEN"
|
199
|
-
# )
|
200
|
-
# api.squads.get(id: "id")
|
201
182
|
def get(id:, request_options: nil)
|
202
183
|
response = @request_client.conn.get do |req|
|
203
184
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -221,13 +202,6 @@ module Vapi
|
|
221
202
|
# @param id [String]
|
222
203
|
# @param request_options [Vapi::RequestOptions]
|
223
204
|
# @return [Vapi::Squad]
|
224
|
-
# @example
|
225
|
-
# api = Vapi::Client.new(
|
226
|
-
# base_url: "https://api.example.com",
|
227
|
-
# environment: Vapi::Environment::DEFAULT,
|
228
|
-
# token: "YOUR_AUTH_TOKEN"
|
229
|
-
# )
|
230
|
-
# api.squads.delete(id: "id")
|
231
205
|
def delete(id:, request_options: nil)
|
232
206
|
response = @request_client.conn.delete do |req|
|
233
207
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -268,6 +242,7 @@ module Vapi
|
|
268
242
|
# * :background_denoising_enabled (Boolean)
|
269
243
|
# * :model_output_in_messages_enabled (Boolean)
|
270
244
|
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
|
245
|
+
# * :credentials (Array<Vapi::CreateAssistantDtoCredentialsItem>)
|
271
246
|
# * :name (String)
|
272
247
|
# * :voicemail_detection (Hash)
|
273
248
|
# * :provider (String)
|
@@ -295,6 +270,7 @@ module Vapi
|
|
295
270
|
# * :properties (Hash{String => Object})
|
296
271
|
# * :description (String)
|
297
272
|
# * :required (Array<String>)
|
273
|
+
# * :enum (Array<String>)
|
298
274
|
# * :timeout_seconds (Float)
|
299
275
|
# * :success_evaluation_plan (Hash)
|
300
276
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -349,6 +325,7 @@ module Vapi
|
|
349
325
|
# * :background_denoising_enabled (Boolean)
|
350
326
|
# * :model_output_in_messages_enabled (Boolean)
|
351
327
|
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
|
328
|
+
# * :credentials (Array<Vapi::AssistantOverridesCredentialsItem>)
|
352
329
|
# * :variable_values (Hash{String => Object})
|
353
330
|
# * :name (String)
|
354
331
|
# * :voicemail_detection (Hash)
|
@@ -377,6 +354,7 @@ module Vapi
|
|
377
354
|
# * :properties (Hash{String => Object})
|
378
355
|
# * :description (String)
|
379
356
|
# * :required (Array<String>)
|
357
|
+
# * :enum (Array<String>)
|
380
358
|
# * :timeout_seconds (Float)
|
381
359
|
# * :success_evaluation_plan (Hash)
|
382
360
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -436,6 +414,7 @@ module Vapi
|
|
436
414
|
# * :background_denoising_enabled (Boolean)
|
437
415
|
# * :model_output_in_messages_enabled (Boolean)
|
438
416
|
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
|
417
|
+
# * :credentials (Array<Vapi::AssistantOverridesCredentialsItem>)
|
439
418
|
# * :variable_values (Hash{String => Object})
|
440
419
|
# * :name (String)
|
441
420
|
# * :voicemail_detection (Hash)
|
@@ -464,6 +443,7 @@ module Vapi
|
|
464
443
|
# * :properties (Hash{String => Object})
|
465
444
|
# * :description (String)
|
466
445
|
# * :required (Array<String>)
|
446
|
+
# * :enum (Array<String>)
|
467
447
|
# * :timeout_seconds (Float)
|
468
448
|
# * :success_evaluation_plan (Hash)
|
469
449
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -505,13 +485,6 @@ module Vapi
|
|
505
485
|
# * :headers (Hash{String => Object})
|
506
486
|
# @param request_options [Vapi::RequestOptions]
|
507
487
|
# @return [Vapi::Squad]
|
508
|
-
# @example
|
509
|
-
# api = Vapi::Client.new(
|
510
|
-
# base_url: "https://api.example.com",
|
511
|
-
# environment: Vapi::Environment::DEFAULT,
|
512
|
-
# token: "YOUR_AUTH_TOKEN"
|
513
|
-
# )
|
514
|
-
# api.squads.update(id: "id", members: [{ }])
|
515
488
|
def update(id:, members:, name: nil, members_overrides: nil, request_options: nil)
|
516
489
|
response = @request_client.conn.patch do |req|
|
517
490
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -561,13 +534,6 @@ module Vapi
|
|
561
534
|
# specified value.
|
562
535
|
# @param request_options [Vapi::RequestOptions]
|
563
536
|
# @return [Array<Vapi::Squad>]
|
564
|
-
# @example
|
565
|
-
# api = Vapi::Client.new(
|
566
|
-
# base_url: "https://api.example.com",
|
567
|
-
# environment: Vapi::Environment::DEFAULT,
|
568
|
-
# token: "YOUR_AUTH_TOKEN"
|
569
|
-
# )
|
570
|
-
# api.squads.list
|
571
537
|
def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil, created_at_le: nil,
|
572
538
|
updated_at_gt: nil, updated_at_lt: nil, updated_at_ge: nil, updated_at_le: nil, request_options: nil)
|
573
539
|
Async do
|
@@ -622,6 +588,7 @@ module Vapi
|
|
622
588
|
# * :background_denoising_enabled (Boolean)
|
623
589
|
# * :model_output_in_messages_enabled (Boolean)
|
624
590
|
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
|
591
|
+
# * :credentials (Array<Vapi::AssistantOverridesCredentialsItem>)
|
625
592
|
# * :variable_values (Hash{String => Object})
|
626
593
|
# * :name (String)
|
627
594
|
# * :voicemail_detection (Hash)
|
@@ -650,6 +617,7 @@ module Vapi
|
|
650
617
|
# * :properties (Hash{String => Object})
|
651
618
|
# * :description (String)
|
652
619
|
# * :required (Array<String>)
|
620
|
+
# * :enum (Array<String>)
|
653
621
|
# * :timeout_seconds (Float)
|
654
622
|
# * :success_evaluation_plan (Hash)
|
655
623
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -691,13 +659,6 @@ module Vapi
|
|
691
659
|
# * :headers (Hash{String => Object})
|
692
660
|
# @param request_options [Vapi::RequestOptions]
|
693
661
|
# @return [Vapi::Squad]
|
694
|
-
# @example
|
695
|
-
# api = Vapi::Client.new(
|
696
|
-
# base_url: "https://api.example.com",
|
697
|
-
# environment: Vapi::Environment::DEFAULT,
|
698
|
-
# token: "YOUR_AUTH_TOKEN"
|
699
|
-
# )
|
700
|
-
# api.squads.create(request: { members: [{ }] })
|
701
662
|
def create(request:, request_options: nil)
|
702
663
|
Async do
|
703
664
|
response = @request_client.conn.post do |req|
|
@@ -721,13 +682,6 @@ module Vapi
|
|
721
682
|
# @param id [String]
|
722
683
|
# @param request_options [Vapi::RequestOptions]
|
723
684
|
# @return [Vapi::Squad]
|
724
|
-
# @example
|
725
|
-
# api = Vapi::Client.new(
|
726
|
-
# base_url: "https://api.example.com",
|
727
|
-
# environment: Vapi::Environment::DEFAULT,
|
728
|
-
# token: "YOUR_AUTH_TOKEN"
|
729
|
-
# )
|
730
|
-
# api.squads.get(id: "id")
|
731
685
|
def get(id:, request_options: nil)
|
732
686
|
Async do
|
733
687
|
response = @request_client.conn.get do |req|
|
@@ -753,13 +707,6 @@ module Vapi
|
|
753
707
|
# @param id [String]
|
754
708
|
# @param request_options [Vapi::RequestOptions]
|
755
709
|
# @return [Vapi::Squad]
|
756
|
-
# @example
|
757
|
-
# api = Vapi::Client.new(
|
758
|
-
# base_url: "https://api.example.com",
|
759
|
-
# environment: Vapi::Environment::DEFAULT,
|
760
|
-
# token: "YOUR_AUTH_TOKEN"
|
761
|
-
# )
|
762
|
-
# api.squads.delete(id: "id")
|
763
710
|
def delete(id:, request_options: nil)
|
764
711
|
Async do
|
765
712
|
response = @request_client.conn.delete do |req|
|
@@ -802,6 +749,7 @@ module Vapi
|
|
802
749
|
# * :background_denoising_enabled (Boolean)
|
803
750
|
# * :model_output_in_messages_enabled (Boolean)
|
804
751
|
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
|
752
|
+
# * :credentials (Array<Vapi::CreateAssistantDtoCredentialsItem>)
|
805
753
|
# * :name (String)
|
806
754
|
# * :voicemail_detection (Hash)
|
807
755
|
# * :provider (String)
|
@@ -829,6 +777,7 @@ module Vapi
|
|
829
777
|
# * :properties (Hash{String => Object})
|
830
778
|
# * :description (String)
|
831
779
|
# * :required (Array<String>)
|
780
|
+
# * :enum (Array<String>)
|
832
781
|
# * :timeout_seconds (Float)
|
833
782
|
# * :success_evaluation_plan (Hash)
|
834
783
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -883,6 +832,7 @@ module Vapi
|
|
883
832
|
# * :background_denoising_enabled (Boolean)
|
884
833
|
# * :model_output_in_messages_enabled (Boolean)
|
885
834
|
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
|
835
|
+
# * :credentials (Array<Vapi::AssistantOverridesCredentialsItem>)
|
886
836
|
# * :variable_values (Hash{String => Object})
|
887
837
|
# * :name (String)
|
888
838
|
# * :voicemail_detection (Hash)
|
@@ -911,6 +861,7 @@ module Vapi
|
|
911
861
|
# * :properties (Hash{String => Object})
|
912
862
|
# * :description (String)
|
913
863
|
# * :required (Array<String>)
|
864
|
+
# * :enum (Array<String>)
|
914
865
|
# * :timeout_seconds (Float)
|
915
866
|
# * :success_evaluation_plan (Hash)
|
916
867
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -970,6 +921,7 @@ module Vapi
|
|
970
921
|
# * :background_denoising_enabled (Boolean)
|
971
922
|
# * :model_output_in_messages_enabled (Boolean)
|
972
923
|
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
|
924
|
+
# * :credentials (Array<Vapi::AssistantOverridesCredentialsItem>)
|
973
925
|
# * :variable_values (Hash{String => Object})
|
974
926
|
# * :name (String)
|
975
927
|
# * :voicemail_detection (Hash)
|
@@ -998,6 +950,7 @@ module Vapi
|
|
998
950
|
# * :properties (Hash{String => Object})
|
999
951
|
# * :description (String)
|
1000
952
|
# * :required (Array<String>)
|
953
|
+
# * :enum (Array<String>)
|
1001
954
|
# * :timeout_seconds (Float)
|
1002
955
|
# * :success_evaluation_plan (Hash)
|
1003
956
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -1039,13 +992,6 @@ module Vapi
|
|
1039
992
|
# * :headers (Hash{String => Object})
|
1040
993
|
# @param request_options [Vapi::RequestOptions]
|
1041
994
|
# @return [Vapi::Squad]
|
1042
|
-
# @example
|
1043
|
-
# api = Vapi::Client.new(
|
1044
|
-
# base_url: "https://api.example.com",
|
1045
|
-
# environment: Vapi::Environment::DEFAULT,
|
1046
|
-
# token: "YOUR_AUTH_TOKEN"
|
1047
|
-
# )
|
1048
|
-
# api.squads.update(id: "id", members: [{ }])
|
1049
995
|
def update(id:, members:, name: nil, members_overrides: nil, request_options: nil)
|
1050
996
|
Async do
|
1051
997
|
response = @request_client.conn.patch do |req|
|
@@ -8,9 +8,7 @@ require_relative "types/tools_create_request"
|
|
8
8
|
require_relative "types/tools_create_response"
|
9
9
|
require_relative "types/tools_get_response"
|
10
10
|
require_relative "types/tools_delete_response"
|
11
|
-
require_relative "types/
|
12
|
-
require_relative "../types/open_ai_function"
|
13
|
-
require_relative "../types/server"
|
11
|
+
require_relative "types/tools_update_request"
|
14
12
|
require_relative "types/tools_update_response"
|
15
13
|
require "async"
|
16
14
|
|
@@ -40,13 +38,6 @@ module Vapi
|
|
40
38
|
# specified value.
|
41
39
|
# @param request_options [Vapi::RequestOptions]
|
42
40
|
# @return [Array<Vapi::Tools::ToolsListResponseItem>]
|
43
|
-
# @example
|
44
|
-
# api = Vapi::Client.new(
|
45
|
-
# base_url: "https://api.example.com",
|
46
|
-
# environment: Vapi::Environment::DEFAULT,
|
47
|
-
# token: "YOUR_AUTH_TOKEN"
|
48
|
-
# )
|
49
|
-
# api.tools.list
|
50
41
|
def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil, created_at_le: nil,
|
51
42
|
updated_at_gt: nil, updated_at_lt: nil, updated_at_ge: nil, updated_at_le: nil, request_options: nil)
|
52
43
|
response = @request_client.conn.get do |req|
|
@@ -84,13 +75,6 @@ module Vapi
|
|
84
75
|
# @param request [Vapi::Tools::ToolsCreateRequest]
|
85
76
|
# @param request_options [Vapi::RequestOptions]
|
86
77
|
# @return [Vapi::Tools::ToolsCreateResponse]
|
87
|
-
# @example
|
88
|
-
# api = Vapi::Client.new(
|
89
|
-
# base_url: "https://api.example.com",
|
90
|
-
# environment: Vapi::Environment::DEFAULT,
|
91
|
-
# token: "YOUR_AUTH_TOKEN"
|
92
|
-
# )
|
93
|
-
# api.tools.create
|
94
78
|
def create(request:, request_options: nil)
|
95
79
|
response = @request_client.conn.post do |req|
|
96
80
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -112,13 +96,6 @@ module Vapi
|
|
112
96
|
# @param id [String]
|
113
97
|
# @param request_options [Vapi::RequestOptions]
|
114
98
|
# @return [Vapi::Tools::ToolsGetResponse]
|
115
|
-
# @example
|
116
|
-
# api = Vapi::Client.new(
|
117
|
-
# base_url: "https://api.example.com",
|
118
|
-
# environment: Vapi::Environment::DEFAULT,
|
119
|
-
# token: "YOUR_AUTH_TOKEN"
|
120
|
-
# )
|
121
|
-
# api.tools.get(id: "id")
|
122
99
|
def get(id:, request_options: nil)
|
123
100
|
response = @request_client.conn.get do |req|
|
124
101
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -142,13 +119,6 @@ module Vapi
|
|
142
119
|
# @param id [String]
|
143
120
|
# @param request_options [Vapi::RequestOptions]
|
144
121
|
# @return [Vapi::Tools::ToolsDeleteResponse]
|
145
|
-
# @example
|
146
|
-
# api = Vapi::Client.new(
|
147
|
-
# base_url: "https://api.example.com",
|
148
|
-
# environment: Vapi::Environment::DEFAULT,
|
149
|
-
# token: "YOUR_AUTH_TOKEN"
|
150
|
-
# )
|
151
|
-
# api.tools.delete(id: "id")
|
152
122
|
def delete(id:, request_options: nil)
|
153
123
|
response = @request_client.conn.delete do |req|
|
154
124
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -170,52 +140,10 @@ module Vapi
|
|
170
140
|
end
|
171
141
|
|
172
142
|
# @param id [String]
|
173
|
-
# @param
|
174
|
-
# If async, the assistant will move forward without waiting for your server to
|
175
|
-
# respond. This is useful if you just want to trigger something on your server.
|
176
|
-
# If sync, the assistant will wait for your server to respond. This is useful if
|
177
|
-
# want assistant to respond with the result from your server.
|
178
|
-
# Defaults to synchronous (`false`).
|
179
|
-
# @param messages [Array<Hash>] These are the messages that will be spoken to the user as the tool is running.
|
180
|
-
# For some tools, this is auto-filled based on special fields like
|
181
|
-
# `tool.destinations`. For others like the function tool, these can be custom
|
182
|
-
# configured.Request of type Array<Vapi::Tools::UpdateToolDtoMessagesItem>, as a Hash
|
183
|
-
# @param function [Hash] This is the function definition of the tool.
|
184
|
-
# For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on
|
185
|
-
# tool-specific fields like `tool.destinations`. But, even in those cases, you can
|
186
|
-
# provide a custom function definition for advanced use cases.
|
187
|
-
# An example of an advanced use case is if you want to customize the message
|
188
|
-
# that's spoken for `endCall` tool. You can specify a function where it returns an
|
189
|
-
# argument "reason". Then, in `messages` array, you can have many
|
190
|
-
# "request-complete" messages. One of these messages will be triggered if the
|
191
|
-
# `messages[].conditions` matches the "reason" argument.Request of type Vapi::OpenAiFunction, as a Hash
|
192
|
-
# * :strict (Boolean)
|
193
|
-
# * :name (String)
|
194
|
-
# * :description (String)
|
195
|
-
# * :parameters (Hash)
|
196
|
-
# * :type (String)
|
197
|
-
# * :properties (Hash{String => Vapi::JsonSchema})
|
198
|
-
# * :required (Array<String>)
|
199
|
-
# @param server [Hash] This is the server that will be hit when this tool is requested by the model.
|
200
|
-
# All requests will be sent with the call object among other things. You can find
|
201
|
-
# more details in the Server URL documentation.
|
202
|
-
# This overrides the serverUrl set on the org and the phoneNumber. Order of
|
203
|
-
# precedence: highest tool.server.url, then assistant.serverUrl, then
|
204
|
-
# phoneNumber.serverUrl, then org.serverUrl.Request of type Vapi::Server, as a Hash
|
205
|
-
# * :timeout_seconds (Float)
|
206
|
-
# * :url (String)
|
207
|
-
# * :secret (String)
|
208
|
-
# * :headers (Hash{String => Object})
|
143
|
+
# @param request [Vapi::Tools::ToolsUpdateRequest]
|
209
144
|
# @param request_options [Vapi::RequestOptions]
|
210
145
|
# @return [Vapi::Tools::ToolsUpdateResponse]
|
211
|
-
|
212
|
-
# api = Vapi::Client.new(
|
213
|
-
# base_url: "https://api.example.com",
|
214
|
-
# environment: Vapi::Environment::DEFAULT,
|
215
|
-
# token: "YOUR_AUTH_TOKEN"
|
216
|
-
# )
|
217
|
-
# api.tools.update(id: "id")
|
218
|
-
def update(id:, async: nil, messages: nil, function: nil, server: nil, request_options: nil)
|
146
|
+
def update(id:, request:, request_options: nil)
|
219
147
|
response = @request_client.conn.patch do |req|
|
220
148
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
221
149
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -227,13 +155,7 @@ module Vapi
|
|
227
155
|
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
228
156
|
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
229
157
|
end
|
230
|
-
req.body = {
|
231
|
-
**(request_options&.additional_body_parameters || {}),
|
232
|
-
async: async,
|
233
|
-
messages: messages,
|
234
|
-
function: function,
|
235
|
-
server: server
|
236
|
-
}.compact
|
158
|
+
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
237
159
|
req.url "#{@request_client.get_url(request_options: request_options)}/tool/#{id}"
|
238
160
|
end
|
239
161
|
Vapi::Tools::ToolsUpdateResponse.from_json(json_object: response.body)
|
@@ -265,13 +187,6 @@ module Vapi
|
|
265
187
|
# specified value.
|
266
188
|
# @param request_options [Vapi::RequestOptions]
|
267
189
|
# @return [Array<Vapi::Tools::ToolsListResponseItem>]
|
268
|
-
# @example
|
269
|
-
# api = Vapi::Client.new(
|
270
|
-
# base_url: "https://api.example.com",
|
271
|
-
# environment: Vapi::Environment::DEFAULT,
|
272
|
-
# token: "YOUR_AUTH_TOKEN"
|
273
|
-
# )
|
274
|
-
# api.tools.list
|
275
190
|
def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil, created_at_le: nil,
|
276
191
|
updated_at_gt: nil, updated_at_lt: nil, updated_at_ge: nil, updated_at_le: nil, request_options: nil)
|
277
192
|
Async do
|
@@ -311,13 +226,6 @@ module Vapi
|
|
311
226
|
# @param request [Vapi::Tools::ToolsCreateRequest]
|
312
227
|
# @param request_options [Vapi::RequestOptions]
|
313
228
|
# @return [Vapi::Tools::ToolsCreateResponse]
|
314
|
-
# @example
|
315
|
-
# api = Vapi::Client.new(
|
316
|
-
# base_url: "https://api.example.com",
|
317
|
-
# environment: Vapi::Environment::DEFAULT,
|
318
|
-
# token: "YOUR_AUTH_TOKEN"
|
319
|
-
# )
|
320
|
-
# api.tools.create
|
321
229
|
def create(request:, request_options: nil)
|
322
230
|
Async do
|
323
231
|
response = @request_client.conn.post do |req|
|
@@ -341,13 +249,6 @@ module Vapi
|
|
341
249
|
# @param id [String]
|
342
250
|
# @param request_options [Vapi::RequestOptions]
|
343
251
|
# @return [Vapi::Tools::ToolsGetResponse]
|
344
|
-
# @example
|
345
|
-
# api = Vapi::Client.new(
|
346
|
-
# base_url: "https://api.example.com",
|
347
|
-
# environment: Vapi::Environment::DEFAULT,
|
348
|
-
# token: "YOUR_AUTH_TOKEN"
|
349
|
-
# )
|
350
|
-
# api.tools.get(id: "id")
|
351
252
|
def get(id:, request_options: nil)
|
352
253
|
Async do
|
353
254
|
response = @request_client.conn.get do |req|
|
@@ -373,13 +274,6 @@ module Vapi
|
|
373
274
|
# @param id [String]
|
374
275
|
# @param request_options [Vapi::RequestOptions]
|
375
276
|
# @return [Vapi::Tools::ToolsDeleteResponse]
|
376
|
-
# @example
|
377
|
-
# api = Vapi::Client.new(
|
378
|
-
# base_url: "https://api.example.com",
|
379
|
-
# environment: Vapi::Environment::DEFAULT,
|
380
|
-
# token: "YOUR_AUTH_TOKEN"
|
381
|
-
# )
|
382
|
-
# api.tools.delete(id: "id")
|
383
277
|
def delete(id:, request_options: nil)
|
384
278
|
Async do
|
385
279
|
response = @request_client.conn.delete do |req|
|
@@ -403,52 +297,10 @@ module Vapi
|
|
403
297
|
end
|
404
298
|
|
405
299
|
# @param id [String]
|
406
|
-
# @param
|
407
|
-
# If async, the assistant will move forward without waiting for your server to
|
408
|
-
# respond. This is useful if you just want to trigger something on your server.
|
409
|
-
# If sync, the assistant will wait for your server to respond. This is useful if
|
410
|
-
# want assistant to respond with the result from your server.
|
411
|
-
# Defaults to synchronous (`false`).
|
412
|
-
# @param messages [Array<Hash>] These are the messages that will be spoken to the user as the tool is running.
|
413
|
-
# For some tools, this is auto-filled based on special fields like
|
414
|
-
# `tool.destinations`. For others like the function tool, these can be custom
|
415
|
-
# configured.Request of type Array<Vapi::Tools::UpdateToolDtoMessagesItem>, as a Hash
|
416
|
-
# @param function [Hash] This is the function definition of the tool.
|
417
|
-
# For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on
|
418
|
-
# tool-specific fields like `tool.destinations`. But, even in those cases, you can
|
419
|
-
# provide a custom function definition for advanced use cases.
|
420
|
-
# An example of an advanced use case is if you want to customize the message
|
421
|
-
# that's spoken for `endCall` tool. You can specify a function where it returns an
|
422
|
-
# argument "reason". Then, in `messages` array, you can have many
|
423
|
-
# "request-complete" messages. One of these messages will be triggered if the
|
424
|
-
# `messages[].conditions` matches the "reason" argument.Request of type Vapi::OpenAiFunction, as a Hash
|
425
|
-
# * :strict (Boolean)
|
426
|
-
# * :name (String)
|
427
|
-
# * :description (String)
|
428
|
-
# * :parameters (Hash)
|
429
|
-
# * :type (String)
|
430
|
-
# * :properties (Hash{String => Vapi::JsonSchema})
|
431
|
-
# * :required (Array<String>)
|
432
|
-
# @param server [Hash] This is the server that will be hit when this tool is requested by the model.
|
433
|
-
# All requests will be sent with the call object among other things. You can find
|
434
|
-
# more details in the Server URL documentation.
|
435
|
-
# This overrides the serverUrl set on the org and the phoneNumber. Order of
|
436
|
-
# precedence: highest tool.server.url, then assistant.serverUrl, then
|
437
|
-
# phoneNumber.serverUrl, then org.serverUrl.Request of type Vapi::Server, as a Hash
|
438
|
-
# * :timeout_seconds (Float)
|
439
|
-
# * :url (String)
|
440
|
-
# * :secret (String)
|
441
|
-
# * :headers (Hash{String => Object})
|
300
|
+
# @param request [Vapi::Tools::ToolsUpdateRequest]
|
442
301
|
# @param request_options [Vapi::RequestOptions]
|
443
302
|
# @return [Vapi::Tools::ToolsUpdateResponse]
|
444
|
-
|
445
|
-
# api = Vapi::Client.new(
|
446
|
-
# base_url: "https://api.example.com",
|
447
|
-
# environment: Vapi::Environment::DEFAULT,
|
448
|
-
# token: "YOUR_AUTH_TOKEN"
|
449
|
-
# )
|
450
|
-
# api.tools.update(id: "id")
|
451
|
-
def update(id:, async: nil, messages: nil, function: nil, server: nil, request_options: nil)
|
303
|
+
def update(id:, request:, request_options: nil)
|
452
304
|
Async do
|
453
305
|
response = @request_client.conn.patch do |req|
|
454
306
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -461,13 +313,7 @@ module Vapi
|
|
461
313
|
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
462
314
|
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
463
315
|
end
|
464
|
-
req.body = {
|
465
|
-
**(request_options&.additional_body_parameters || {}),
|
466
|
-
async: async,
|
467
|
-
messages: messages,
|
468
|
-
function: function,
|
469
|
-
server: server
|
470
|
-
}.compact
|
316
|
+
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
471
317
|
req.url "#{@request_client.get_url(request_options: request_options)}/tool/#{id}"
|
472
318
|
end
|
473
319
|
Vapi::Tools::ToolsUpdateResponse.from_json(json_object: response.body)
|