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
@@ -11,6 +11,7 @@ require_relative "neets_voice"
|
|
11
11
|
require_relative "open_ai_voice"
|
12
12
|
require_relative "play_ht_voice"
|
13
13
|
require_relative "rime_ai_voice"
|
14
|
+
require_relative "smallest_ai_voice"
|
14
15
|
require_relative "tavus_voice"
|
15
16
|
|
16
17
|
module Vapi
|
@@ -59,6 +60,8 @@ module Vapi
|
|
59
60
|
Vapi::PlayHtVoice.from_json(json_object: json_object)
|
60
61
|
when "rime-ai"
|
61
62
|
Vapi::RimeAiVoice.from_json(json_object: json_object)
|
63
|
+
when "smallest-ai"
|
64
|
+
Vapi::SmallestAiVoice.from_json(json_object: json_object)
|
62
65
|
when "tavus"
|
63
66
|
Vapi::TavusVoice.from_json(json_object: json_object)
|
64
67
|
else
|
@@ -92,6 +95,8 @@ module Vapi
|
|
92
95
|
{ **@member.to_json, provider: @discriminant }.to_json
|
93
96
|
when "rime-ai"
|
94
97
|
{ **@member.to_json, provider: @discriminant }.to_json
|
98
|
+
when "smallest-ai"
|
99
|
+
{ **@member.to_json, provider: @discriminant }.to_json
|
95
100
|
when "tavus"
|
96
101
|
{ **@member.to_json, provider: @discriminant }.to_json
|
97
102
|
else
|
@@ -128,6 +133,8 @@ module Vapi
|
|
128
133
|
Vapi::PlayHtVoice.validate_raw(obj: obj)
|
129
134
|
when "rime-ai"
|
130
135
|
Vapi::RimeAiVoice.validate_raw(obj: obj)
|
136
|
+
when "smallest-ai"
|
137
|
+
Vapi::SmallestAiVoice.validate_raw(obj: obj)
|
131
138
|
when "tavus"
|
132
139
|
Vapi::TavusVoice.validate_raw(obj: obj)
|
133
140
|
else
|
@@ -203,6 +210,12 @@ module Vapi
|
|
203
210
|
new(member: member, discriminant: "rime-ai")
|
204
211
|
end
|
205
212
|
|
213
|
+
# @param member [Vapi::SmallestAiVoice]
|
214
|
+
# @return [Vapi::AssistantVoice]
|
215
|
+
def self.smallest_ai(member:)
|
216
|
+
new(member: member, discriminant: "smallest-ai")
|
217
|
+
end
|
218
|
+
|
206
219
|
# @param member [Vapi::TavusVoice]
|
207
220
|
# @return [Vapi::AssistantVoice]
|
208
221
|
def self.tavus(member:)
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module Vapi
|
7
|
+
class AzureBlobStorageBucketPlan
|
8
|
+
# @return [String] This is the blob storage connection string for the Azure resource.
|
9
|
+
attr_reader :connection_string
|
10
|
+
# @return [String] This is the container name for the Azure blob storage.
|
11
|
+
attr_reader :container_name
|
12
|
+
# @return [String] This is the path where call artifacts will be stored.
|
13
|
+
# Usage:
|
14
|
+
# - To store call artifacts in a specific folder, set this to the full path. Eg.
|
15
|
+
# "/folder-name1/folder-name2".
|
16
|
+
# - To store call artifacts in the root of the bucket, leave this blank.
|
17
|
+
# @default "/"
|
18
|
+
attr_reader :path
|
19
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
|
+
attr_reader :additional_properties
|
21
|
+
# @return [Object]
|
22
|
+
attr_reader :_field_set
|
23
|
+
protected :_field_set
|
24
|
+
|
25
|
+
OMIT = Object.new
|
26
|
+
|
27
|
+
# @param connection_string [String] This is the blob storage connection string for the Azure resource.
|
28
|
+
# @param container_name [String] This is the container name for the Azure blob storage.
|
29
|
+
# @param path [String] This is the path where call artifacts will be stored.
|
30
|
+
# Usage:
|
31
|
+
# - To store call artifacts in a specific folder, set this to the full path. Eg.
|
32
|
+
# "/folder-name1/folder-name2".
|
33
|
+
# - To store call artifacts in the root of the bucket, leave this blank.
|
34
|
+
# @default "/"
|
35
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
36
|
+
# @return [Vapi::AzureBlobStorageBucketPlan]
|
37
|
+
def initialize(connection_string:, container_name:, path: OMIT, additional_properties: nil)
|
38
|
+
@connection_string = connection_string
|
39
|
+
@container_name = container_name
|
40
|
+
@path = path if path != OMIT
|
41
|
+
@additional_properties = additional_properties
|
42
|
+
@_field_set = {
|
43
|
+
"connectionString": connection_string,
|
44
|
+
"containerName": container_name,
|
45
|
+
"path": path
|
46
|
+
}.reject do |_k, v|
|
47
|
+
v == OMIT
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# Deserialize a JSON object to an instance of AzureBlobStorageBucketPlan
|
52
|
+
#
|
53
|
+
# @param json_object [String]
|
54
|
+
# @return [Vapi::AzureBlobStorageBucketPlan]
|
55
|
+
def self.from_json(json_object:)
|
56
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
57
|
+
parsed_json = JSON.parse(json_object)
|
58
|
+
connection_string = parsed_json["connectionString"]
|
59
|
+
container_name = parsed_json["containerName"]
|
60
|
+
path = parsed_json["path"]
|
61
|
+
new(
|
62
|
+
connection_string: connection_string,
|
63
|
+
container_name: container_name,
|
64
|
+
path: path,
|
65
|
+
additional_properties: struct
|
66
|
+
)
|
67
|
+
end
|
68
|
+
|
69
|
+
# Serialize an instance of AzureBlobStorageBucketPlan to a JSON object
|
70
|
+
#
|
71
|
+
# @return [String]
|
72
|
+
def to_json(*_args)
|
73
|
+
@_field_set&.to_json
|
74
|
+
end
|
75
|
+
|
76
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
77
|
+
# hash and check each fields type against the current object's property
|
78
|
+
# definitions.
|
79
|
+
#
|
80
|
+
# @param obj [Object]
|
81
|
+
# @return [Void]
|
82
|
+
def self.validate_raw(obj:)
|
83
|
+
obj.connection_string.is_a?(String) != false || raise("Passed value for field obj.connection_string is not the expected type, validation failed.")
|
84
|
+
obj.container_name.is_a?(String) != false || raise("Passed value for field obj.container_name is not the expected type, validation failed.")
|
85
|
+
obj.path&.is_a?(String) != false || raise("Passed value for field obj.path is not the expected type, validation failed.")
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -1,7 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require_relative "azure_credential_service"
|
3
4
|
require_relative "azure_credential_region"
|
4
5
|
require "date"
|
6
|
+
require_relative "azure_blob_storage_bucket_plan"
|
5
7
|
require "ostruct"
|
6
8
|
require "json"
|
7
9
|
|
@@ -9,7 +11,7 @@ module Vapi
|
|
9
11
|
class AzureCredential
|
10
12
|
# @return [String]
|
11
13
|
attr_reader :provider
|
12
|
-
# @return [
|
14
|
+
# @return [Vapi::AzureCredentialService] This is the service being used in Azure.
|
13
15
|
attr_reader :service
|
14
16
|
# @return [Vapi::AzureCredentialRegion] This is the region of the Azure resource.
|
15
17
|
attr_reader :region
|
@@ -25,6 +27,9 @@ module Vapi
|
|
25
27
|
attr_reader :updated_at
|
26
28
|
# @return [String] This is the name of credential. This is just for your reference.
|
27
29
|
attr_reader :name
|
30
|
+
# @return [Vapi::AzureBlobStorageBucketPlan] This is the bucket plan that can be provided to store call artifacts in Azure
|
31
|
+
# Blob Storage.
|
32
|
+
attr_reader :bucket_plan
|
28
33
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
29
34
|
attr_reader :additional_properties
|
30
35
|
# @return [Object]
|
@@ -34,7 +39,7 @@ module Vapi
|
|
34
39
|
OMIT = Object.new
|
35
40
|
|
36
41
|
# @param provider [String]
|
37
|
-
# @param service [
|
42
|
+
# @param service [Vapi::AzureCredentialService] This is the service being used in Azure.
|
38
43
|
# @param region [Vapi::AzureCredentialRegion] This is the region of the Azure resource.
|
39
44
|
# @param api_key [String] This is not returned in the API.
|
40
45
|
# @param id [String] This is the unique identifier for the credential.
|
@@ -42,10 +47,12 @@ module Vapi
|
|
42
47
|
# @param created_at [DateTime] This is the ISO 8601 date-time string of when the credential was created.
|
43
48
|
# @param updated_at [DateTime] This is the ISO 8601 date-time string of when the assistant was last updated.
|
44
49
|
# @param name [String] This is the name of credential. This is just for your reference.
|
50
|
+
# @param bucket_plan [Vapi::AzureBlobStorageBucketPlan] This is the bucket plan that can be provided to store call artifacts in Azure
|
51
|
+
# Blob Storage.
|
45
52
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
46
53
|
# @return [Vapi::AzureCredential]
|
47
54
|
def initialize(provider:, service:, id:, org_id:, created_at:, updated_at:, region: OMIT, api_key: OMIT,
|
48
|
-
name: OMIT, additional_properties: nil)
|
55
|
+
name: OMIT, bucket_plan: OMIT, additional_properties: nil)
|
49
56
|
@provider = provider
|
50
57
|
@service = service
|
51
58
|
@region = region if region != OMIT
|
@@ -55,6 +62,7 @@ module Vapi
|
|
55
62
|
@created_at = created_at
|
56
63
|
@updated_at = updated_at
|
57
64
|
@name = name if name != OMIT
|
65
|
+
@bucket_plan = bucket_plan if bucket_plan != OMIT
|
58
66
|
@additional_properties = additional_properties
|
59
67
|
@_field_set = {
|
60
68
|
"provider": provider,
|
@@ -65,7 +73,8 @@ module Vapi
|
|
65
73
|
"orgId": org_id,
|
66
74
|
"createdAt": created_at,
|
67
75
|
"updatedAt": updated_at,
|
68
|
-
"name": name
|
76
|
+
"name": name,
|
77
|
+
"bucketPlan": bucket_plan
|
69
78
|
}.reject do |_k, v|
|
70
79
|
v == OMIT
|
71
80
|
end
|
@@ -87,6 +96,12 @@ module Vapi
|
|
87
96
|
created_at = (DateTime.parse(parsed_json["createdAt"]) unless parsed_json["createdAt"].nil?)
|
88
97
|
updated_at = (DateTime.parse(parsed_json["updatedAt"]) unless parsed_json["updatedAt"].nil?)
|
89
98
|
name = parsed_json["name"]
|
99
|
+
if parsed_json["bucketPlan"].nil?
|
100
|
+
bucket_plan = nil
|
101
|
+
else
|
102
|
+
bucket_plan = parsed_json["bucketPlan"].to_json
|
103
|
+
bucket_plan = Vapi::AzureBlobStorageBucketPlan.from_json(json_object: bucket_plan)
|
104
|
+
end
|
90
105
|
new(
|
91
106
|
provider: provider,
|
92
107
|
service: service,
|
@@ -97,6 +112,7 @@ module Vapi
|
|
97
112
|
created_at: created_at,
|
98
113
|
updated_at: updated_at,
|
99
114
|
name: name,
|
115
|
+
bucket_plan: bucket_plan,
|
100
116
|
additional_properties: struct
|
101
117
|
)
|
102
118
|
end
|
@@ -116,7 +132,7 @@ module Vapi
|
|
116
132
|
# @return [Void]
|
117
133
|
def self.validate_raw(obj:)
|
118
134
|
obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
|
119
|
-
obj.service.is_a?(
|
135
|
+
obj.service.is_a?(Vapi::AzureCredentialService) != false || raise("Passed value for field obj.service is not the expected type, validation failed.")
|
120
136
|
obj.region&.is_a?(Vapi::AzureCredentialRegion) != false || raise("Passed value for field obj.region is not the expected type, validation failed.")
|
121
137
|
obj.api_key&.is_a?(String) != false || raise("Passed value for field obj.api_key is not the expected type, validation failed.")
|
122
138
|
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
@@ -124,6 +140,7 @@ module Vapi
|
|
124
140
|
obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
125
141
|
obj.updated_at.is_a?(DateTime) != false || raise("Passed value for field obj.updated_at is not the expected type, validation failed.")
|
126
142
|
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
143
|
+
obj.bucket_plan.nil? || Vapi::AzureBlobStorageBucketPlan.validate_raw(obj: obj.bucket_plan)
|
127
144
|
end
|
128
145
|
end
|
129
146
|
end
|
@@ -4,17 +4,19 @@ module Vapi
|
|
4
4
|
# This is the region of the Azure resource.
|
5
5
|
class AzureCredentialRegion
|
6
6
|
AUSTRALIA = "australia"
|
7
|
-
|
7
|
+
CANADAEAST = "canadaeast"
|
8
|
+
CANADACENTRAL = "canadacentral"
|
8
9
|
EASTUS_2 = "eastus2"
|
9
10
|
EASTUS = "eastus"
|
10
11
|
FRANCE = "france"
|
11
12
|
INDIA = "india"
|
12
|
-
|
13
|
+
JAPANEAST = "japaneast"
|
14
|
+
JAPANWEST = "japanwest"
|
13
15
|
UAENORTH = "uaenorth"
|
14
16
|
NORTHCENTRALUS = "northcentralus"
|
15
17
|
NORWAY = "norway"
|
16
18
|
SOUTHCENTRALUS = "southcentralus"
|
17
|
-
|
19
|
+
SWEDENCENTRAL = "swedencentral"
|
18
20
|
SWITZERLAND = "switzerland"
|
19
21
|
UK = "uk"
|
20
22
|
WESTUS = "westus"
|
@@ -16,6 +16,8 @@ module Vapi
|
|
16
16
|
attr_reader :models
|
17
17
|
# @return [String] This is not returned in the API.
|
18
18
|
attr_reader :open_ai_key
|
19
|
+
# @return [String] This is not returned in the API.
|
20
|
+
attr_reader :ocp_apim_subscription_key
|
19
21
|
# @return [String] This is the unique identifier for the credential.
|
20
22
|
attr_reader :id
|
21
23
|
# @return [String] This is the unique identifier for the org that this credential belongs to.
|
@@ -40,6 +42,7 @@ module Vapi
|
|
40
42
|
# @param region [Vapi::AzureOpenAiCredentialRegion]
|
41
43
|
# @param models [Array<Vapi::AzureOpenAiCredentialModelsItem>]
|
42
44
|
# @param open_ai_key [String] This is not returned in the API.
|
45
|
+
# @param ocp_apim_subscription_key [String] This is not returned in the API.
|
43
46
|
# @param id [String] This is the unique identifier for the credential.
|
44
47
|
# @param org_id [String] This is the unique identifier for the org that this credential belongs to.
|
45
48
|
# @param created_at [DateTime] This is the ISO 8601 date-time string of when the credential was created.
|
@@ -49,11 +52,12 @@ module Vapi
|
|
49
52
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
50
53
|
# @return [Vapi::AzureOpenAiCredential]
|
51
54
|
def initialize(provider:, region:, models:, open_ai_key:, id:, org_id:, created_at:, updated_at:,
|
52
|
-
open_ai_endpoint:, name: OMIT, additional_properties: nil)
|
55
|
+
open_ai_endpoint:, ocp_apim_subscription_key: OMIT, name: OMIT, additional_properties: nil)
|
53
56
|
@provider = provider
|
54
57
|
@region = region
|
55
58
|
@models = models
|
56
59
|
@open_ai_key = open_ai_key
|
60
|
+
@ocp_apim_subscription_key = ocp_apim_subscription_key if ocp_apim_subscription_key != OMIT
|
57
61
|
@id = id
|
58
62
|
@org_id = org_id
|
59
63
|
@created_at = created_at
|
@@ -66,6 +70,7 @@ module Vapi
|
|
66
70
|
"region": region,
|
67
71
|
"models": models,
|
68
72
|
"openAIKey": open_ai_key,
|
73
|
+
"ocpApimSubscriptionKey": ocp_apim_subscription_key,
|
69
74
|
"id": id,
|
70
75
|
"orgId": org_id,
|
71
76
|
"createdAt": created_at,
|
@@ -88,6 +93,7 @@ module Vapi
|
|
88
93
|
region = parsed_json["region"]
|
89
94
|
models = parsed_json["models"]
|
90
95
|
open_ai_key = parsed_json["openAIKey"]
|
96
|
+
ocp_apim_subscription_key = parsed_json["ocpApimSubscriptionKey"]
|
91
97
|
id = parsed_json["id"]
|
92
98
|
org_id = parsed_json["orgId"]
|
93
99
|
created_at = (DateTime.parse(parsed_json["createdAt"]) unless parsed_json["createdAt"].nil?)
|
@@ -99,6 +105,7 @@ module Vapi
|
|
99
105
|
region: region,
|
100
106
|
models: models,
|
101
107
|
open_ai_key: open_ai_key,
|
108
|
+
ocp_apim_subscription_key: ocp_apim_subscription_key,
|
102
109
|
id: id,
|
103
110
|
org_id: org_id,
|
104
111
|
created_at: created_at,
|
@@ -127,6 +134,7 @@ module Vapi
|
|
127
134
|
obj.region.is_a?(Vapi::AzureOpenAiCredentialRegion) != false || raise("Passed value for field obj.region is not the expected type, validation failed.")
|
128
135
|
obj.models.is_a?(Array) != false || raise("Passed value for field obj.models is not the expected type, validation failed.")
|
129
136
|
obj.open_ai_key.is_a?(String) != false || raise("Passed value for field obj.open_ai_key is not the expected type, validation failed.")
|
137
|
+
obj.ocp_apim_subscription_key&.is_a?(String) != false || raise("Passed value for field obj.ocp_apim_subscription_key is not the expected type, validation failed.")
|
130
138
|
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
131
139
|
obj.org_id.is_a?(String) != false || raise("Passed value for field obj.org_id is not the expected type, validation failed.")
|
132
140
|
obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
@@ -3,17 +3,19 @@
|
|
3
3
|
module Vapi
|
4
4
|
class AzureOpenAiCredentialRegion
|
5
5
|
AUSTRALIA = "australia"
|
6
|
-
|
6
|
+
CANADAEAST = "canadaeast"
|
7
|
+
CANADACENTRAL = "canadacentral"
|
7
8
|
EASTUS_2 = "eastus2"
|
8
9
|
EASTUS = "eastus"
|
9
10
|
FRANCE = "france"
|
10
11
|
INDIA = "india"
|
11
|
-
|
12
|
+
JAPANEAST = "japaneast"
|
13
|
+
JAPANWEST = "japanwest"
|
12
14
|
UAENORTH = "uaenorth"
|
13
15
|
NORTHCENTRALUS = "northcentralus"
|
14
16
|
NORWAY = "norway"
|
15
17
|
SOUTHCENTRALUS = "southcentralus"
|
16
|
-
|
18
|
+
SWEDENCENTRAL = "swedencentral"
|
17
19
|
SWITZERLAND = "switzerland"
|
18
20
|
UK = "uk"
|
19
21
|
WESTUS = "westus"
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "azure_speech_transcriber_language"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module Vapi
|
8
|
+
class AzureSpeechTranscriber
|
9
|
+
# @return [Vapi::AzureSpeechTranscriberLanguage] This is the language that will be set for the transcription. The list of
|
10
|
+
# languages Azure supports can be found here:
|
11
|
+
# n.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt
|
12
|
+
attr_reader :language
|
13
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
+
attr_reader :additional_properties
|
15
|
+
# @return [Object]
|
16
|
+
attr_reader :_field_set
|
17
|
+
protected :_field_set
|
18
|
+
|
19
|
+
OMIT = Object.new
|
20
|
+
|
21
|
+
# @param language [Vapi::AzureSpeechTranscriberLanguage] This is the language that will be set for the transcription. The list of
|
22
|
+
# languages Azure supports can be found here:
|
23
|
+
# n.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt
|
24
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
25
|
+
# @return [Vapi::AzureSpeechTranscriber]
|
26
|
+
def initialize(language: OMIT, additional_properties: nil)
|
27
|
+
@language = language if language != OMIT
|
28
|
+
@additional_properties = additional_properties
|
29
|
+
@_field_set = { "language": language }.reject do |_k, v|
|
30
|
+
v == OMIT
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# Deserialize a JSON object to an instance of AzureSpeechTranscriber
|
35
|
+
#
|
36
|
+
# @param json_object [String]
|
37
|
+
# @return [Vapi::AzureSpeechTranscriber]
|
38
|
+
def self.from_json(json_object:)
|
39
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
40
|
+
parsed_json = JSON.parse(json_object)
|
41
|
+
language = parsed_json["language"]
|
42
|
+
new(language: language, additional_properties: struct)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Serialize an instance of AzureSpeechTranscriber to a JSON object
|
46
|
+
#
|
47
|
+
# @return [String]
|
48
|
+
def to_json(*_args)
|
49
|
+
@_field_set&.to_json
|
50
|
+
end
|
51
|
+
|
52
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
53
|
+
# hash and check each fields type against the current object's property
|
54
|
+
# definitions.
|
55
|
+
#
|
56
|
+
# @param obj [Object]
|
57
|
+
# @return [Void]
|
58
|
+
def self.validate_raw(obj:)
|
59
|
+
obj.language&.is_a?(Vapi::AzureSpeechTranscriberLanguage) != false || raise("Passed value for field obj.language is not the expected type, validation failed.")
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,152 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Vapi
|
4
|
+
# This is the language that will be set for the transcription. The list of
|
5
|
+
# languages Azure supports can be found here:
|
6
|
+
# n.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt
|
7
|
+
class AzureSpeechTranscriberLanguage
|
8
|
+
AF_ZA = "af-ZA"
|
9
|
+
AM_ET = "am-ET"
|
10
|
+
AR_AE = "ar-AE"
|
11
|
+
AR_BH = "ar-BH"
|
12
|
+
AR_DZ = "ar-DZ"
|
13
|
+
AR_EG = "ar-EG"
|
14
|
+
AR_IL = "ar-IL"
|
15
|
+
AR_IQ = "ar-IQ"
|
16
|
+
AR_JO = "ar-JO"
|
17
|
+
AR_KW = "ar-KW"
|
18
|
+
AR_LB = "ar-LB"
|
19
|
+
AR_LY = "ar-LY"
|
20
|
+
AR_MA = "ar-MA"
|
21
|
+
AR_OM = "ar-OM"
|
22
|
+
AR_PS = "ar-PS"
|
23
|
+
AR_QA = "ar-QA"
|
24
|
+
AR_SA = "ar-SA"
|
25
|
+
AR_SY = "ar-SY"
|
26
|
+
AR_TN = "ar-TN"
|
27
|
+
AR_YE = "ar-YE"
|
28
|
+
AZ_AZ = "az-AZ"
|
29
|
+
BG_BG = "bg-BG"
|
30
|
+
BN_IN = "bn-IN"
|
31
|
+
BS_BA = "bs-BA"
|
32
|
+
CA_ES = "ca-ES"
|
33
|
+
CS_CZ = "cs-CZ"
|
34
|
+
CY_GB = "cy-GB"
|
35
|
+
DA_DK = "da-DK"
|
36
|
+
DE_AT = "de-AT"
|
37
|
+
DE_CH = "de-CH"
|
38
|
+
DE_DE = "de-DE"
|
39
|
+
EL_GR = "el-GR"
|
40
|
+
EN_AU = "en-AU"
|
41
|
+
EN_CA = "en-CA"
|
42
|
+
EN_GB = "en-GB"
|
43
|
+
EN_GH = "en-GH"
|
44
|
+
EN_HK = "en-HK"
|
45
|
+
EN_IE = "en-IE"
|
46
|
+
EN_IN = "en-IN"
|
47
|
+
EN_KE = "en-KE"
|
48
|
+
EN_NG = "en-NG"
|
49
|
+
EN_NZ = "en-NZ"
|
50
|
+
EN_PH = "en-PH"
|
51
|
+
EN_SG = "en-SG"
|
52
|
+
EN_TZ = "en-TZ"
|
53
|
+
EN_US = "en-US"
|
54
|
+
EN_ZA = "en-ZA"
|
55
|
+
ES_AR = "es-AR"
|
56
|
+
ES_BO = "es-BO"
|
57
|
+
ES_CL = "es-CL"
|
58
|
+
ES_CO = "es-CO"
|
59
|
+
ES_CR = "es-CR"
|
60
|
+
ES_CU = "es-CU"
|
61
|
+
ES_DO = "es-DO"
|
62
|
+
ES_EC = "es-EC"
|
63
|
+
ES_ES = "es-ES"
|
64
|
+
ES_GQ = "es-GQ"
|
65
|
+
ES_GT = "es-GT"
|
66
|
+
ES_HN = "es-HN"
|
67
|
+
ES_MX = "es-MX"
|
68
|
+
ES_NI = "es-NI"
|
69
|
+
ES_PA = "es-PA"
|
70
|
+
ES_PE = "es-PE"
|
71
|
+
ES_PR = "es-PR"
|
72
|
+
ES_PY = "es-PY"
|
73
|
+
ES_SV = "es-SV"
|
74
|
+
ES_US = "es-US"
|
75
|
+
ES_UY = "es-UY"
|
76
|
+
ES_VE = "es-VE"
|
77
|
+
ET_EE = "et-EE"
|
78
|
+
EU_ES = "eu-ES"
|
79
|
+
FA_IR = "fa-IR"
|
80
|
+
FI_FI = "fi-FI"
|
81
|
+
FIL_PH = "fil-PH"
|
82
|
+
FR_BE = "fr-BE"
|
83
|
+
FR_CA = "fr-CA"
|
84
|
+
FR_CH = "fr-CH"
|
85
|
+
FR_FR = "fr-FR"
|
86
|
+
GA_IE = "ga-IE"
|
87
|
+
GL_ES = "gl-ES"
|
88
|
+
GU_IN = "gu-IN"
|
89
|
+
HE_IL = "he-IL"
|
90
|
+
HI_IN = "hi-IN"
|
91
|
+
HR_HR = "hr-HR"
|
92
|
+
HU_HU = "hu-HU"
|
93
|
+
HY_AM = "hy-AM"
|
94
|
+
ID_ID = "id-ID"
|
95
|
+
IS_IS = "is-IS"
|
96
|
+
IT_CH = "it-CH"
|
97
|
+
IT_IT = "it-IT"
|
98
|
+
JA_JP = "ja-JP"
|
99
|
+
JV_ID = "jv-ID"
|
100
|
+
KA_GE = "ka-GE"
|
101
|
+
KK_KZ = "kk-KZ"
|
102
|
+
KM_KH = "km-KH"
|
103
|
+
KN_IN = "kn-IN"
|
104
|
+
KO_KR = "ko-KR"
|
105
|
+
LO_LA = "lo-LA"
|
106
|
+
LT_LT = "lt-LT"
|
107
|
+
LV_LV = "lv-LV"
|
108
|
+
MK_MK = "mk-MK"
|
109
|
+
ML_IN = "ml-IN"
|
110
|
+
MN_MN = "mn-MN"
|
111
|
+
MR_IN = "mr-IN"
|
112
|
+
MS_MY = "ms-MY"
|
113
|
+
MT_MT = "mt-MT"
|
114
|
+
MY_MM = "my-MM"
|
115
|
+
NB_NO = "nb-NO"
|
116
|
+
NE_NP = "ne-NP"
|
117
|
+
NL_BE = "nl-BE"
|
118
|
+
NL_NL = "nl-NL"
|
119
|
+
PA_IN = "pa-IN"
|
120
|
+
PL_PL = "pl-PL"
|
121
|
+
PS_AF = "ps-AF"
|
122
|
+
PT_BR = "pt-BR"
|
123
|
+
PT_PT = "pt-PT"
|
124
|
+
RO_RO = "ro-RO"
|
125
|
+
RU_RU = "ru-RU"
|
126
|
+
SI_LK = "si-LK"
|
127
|
+
SK_SK = "sk-SK"
|
128
|
+
SL_SI = "sl-SI"
|
129
|
+
SO_SO = "so-SO"
|
130
|
+
SQ_AL = "sq-AL"
|
131
|
+
SR_RS = "sr-RS"
|
132
|
+
SV_SE = "sv-SE"
|
133
|
+
SW_KE = "sw-KE"
|
134
|
+
SW_TZ = "sw-TZ"
|
135
|
+
TA_IN = "ta-IN"
|
136
|
+
TE_IN = "te-IN"
|
137
|
+
TH_TH = "th-TH"
|
138
|
+
TR_TR = "tr-TR"
|
139
|
+
UK_UA = "uk-UA"
|
140
|
+
UR_IN = "ur-IN"
|
141
|
+
UZ_UZ = "uz-UZ"
|
142
|
+
VI_VN = "vi-VN"
|
143
|
+
WUU_CN = "wuu-CN"
|
144
|
+
YUE_CN = "yue-CN"
|
145
|
+
ZH_CN = "zh-CN"
|
146
|
+
ZH_CN_SHANDONG = "zh-CN-shandong"
|
147
|
+
ZH_CN_SICHUAN = "zh-CN-sichuan"
|
148
|
+
ZH_HK = "zh-HK"
|
149
|
+
ZH_TW = "zh-TW"
|
150
|
+
ZU_ZA = "zu-ZA"
|
151
|
+
end
|
152
|
+
end
|