├── tests ├── __init__.py ├── fixtures │ └── voice_sample.mp3 ├── test_convai_imports.py ├── test_history.py ├── test_models.py ├── test_recursive_models.py ├── test_ttsfx.py └── test_voices.py ├── src └── elevenlabs │ ├── py.typed │ ├── version.py │ ├── usage │ └── __init__.py │ ├── models │ └── __init__.py │ ├── samples │ └── __init__.py │ ├── voices │ ├── ivc │ │ └── __init__.py │ ├── settings │ │ └── __init__.py │ ├── samples │ │ ├── audio │ │ │ └── __init__.py │ │ └── raw_client.py │ ├── pvc │ │ ├── samples │ │ │ ├── audio │ │ │ │ └── __init__.py │ │ │ ├── waveform │ │ │ │ └── __init__.py │ │ │ └── speakers │ │ │ │ └── audio │ │ │ │ └── __init__.py │ │ └── verification │ │ │ └── captcha │ │ │ └── __init__.py │ └── types │ │ └── voices_get_shared_request_category.py │ ├── webhooks │ └── __init__.py │ ├── dubbing │ ├── audio │ │ └── __init__.py │ ├── resource │ │ ├── language │ │ │ └── __init__.py │ │ ├── segment │ │ │ └── __init__.py │ │ ├── speaker │ │ │ └── segment │ │ │ │ └── __init__.py │ │ └── types │ │ │ └── resource_render_request_language.py │ ├── types │ │ ├── dubbing_create_request_mode.py │ │ ├── dubbing_list_request_dubbing_status.py │ │ ├── dubbing_list_request_order_direction.py │ │ └── dubbing_list_request_filter_by_creator.py │ └── transcript │ │ └── types │ │ ├── transcript_get_transcript_for_dub_request_format_type.py │ │ └── transcript_get_transcript_for_dub_response.py │ ├── forced_alignment │ └── __init__.py │ ├── tokens │ ├── single_use │ │ └── __init__.py │ └── raw_client.py │ ├── types │ ├── age.py │ ├── gender.py │ ├── prompt_agent.py │ ├── tts_optimize_streaming_latency.py │ ├── asr_quality.py │ ├── add_project_request.py │ ├── get_chapter_request.py │ ├── get_chapters_request.py │ ├── get_project_request.py │ ├── get_projects_request.py │ ├── delete_chapter_request.py │ ├── delete_project_request.py │ ├── text_to_speech_request.py │ ├── update_chapter_request.py │ ├── update_project_request.py │ ├── add_sharing_voice_request.py │ ├── character_usage_response.py │ ├── create_transcript_request.py │ ├── get_phone_number_response.py │ ├── save_voice_preview_request.py │ ├── edit_voice_settings_request.py │ ├── get_chapter_snapshots_request.py │ ├── text_to_speech_stream_request.py │ ├── remove_member_from_group_request.py │ ├── validation_error_loc_item.py │ ├── widget_end_feedback_type.py │ ├── create_audio_native_project_request.py │ ├── turn_mode.py │ ├── update_audio_native_project_request.py │ ├── get_pronunciation_dictionaries_response.py │ ├── get_pronunciation_dictionary_response.py │ ├── sort_direction.py │ ├── text_to_speech_with_timestamps_request.py │ ├── agent_sort_by.py │ ├── ban_reason_type.py │ ├── chapter_state.py │ ├── update_pronunciation_dictionaries_request.py │ ├── dubbing_model.py │ ├── literal_override_constant_value.py │ ├── secret_dependency_type.py │ ├── text_to_speech_stream_with_timestamps_request.py │ ├── twilio_region_id.py │ ├── user_feedback_score.py │ ├── asr_provider.py │ ├── livekit_stack_type.py │ ├── telephony_provider.py │ ├── test_run_status.py │ ├── turn_eagerness.py │ ├── document_usage_mode_enum.py │ ├── integration_type.py │ ├── mcp_server_transport.py │ ├── render_status.py │ ├── tool_call_sound_behavior.py │ ├── transfer_type_enum.py │ ├── tts_model_family.py │ ├── unit_test_common_model_type.py │ ├── widget_feedback_mode.py │ ├── conversation_feedback_type.py │ ├── custom_llmapi_type.py │ ├── embed_variant.py │ ├── test_run_metadata_test_type.py │ ├── additional_formats.py │ ├── project_state.py │ ├── single_use_token_type.py │ ├── sip_trunk_transport_enum.py │ ├── text_normalisation_type.py │ ├── webhook_auth_method_type.py │ ├── widget_expandable.py │ ├── caption_style_model_text_style.py │ ├── caption_style_model_text_weight.py │ ├── knowledge_base_document_type.py │ ├── literal_json_schema_property_constant_value.py │ ├── tool_execution_mode.py │ ├── caption_style_model_text_align.py │ ├── conversation_token_purpose.py │ ├── dubbing_release_channel.py │ ├── evaluation_success_result.py │ ├── knowledge_base_sort_by.py │ ├── llm_reasoning_effort.py │ ├── mcp_tool_approval_policy.py │ ├── project_response_model_fiction.py │ ├── render_type.py │ ├── share_option_response_model_type.py │ ├── sip_media_encryption_enum.py │ ├── unit_test_common_model_dynamic_variables_value.py │ ├── webhook_event_type.py │ ├── agent_definition_source.py │ ├── resource_access_info_role.py │ ├── subscription_response_model_currency.py │ ├── voice_sharing_state.py │ ├── batch_call_status.py │ ├── get_unit_test_response_model_dynamic_variables_value.py │ ├── project_extended_response_model_fiction.py │ ├── project_response_model_aspect_ratio.py │ ├── usage_aggregation_interval.py │ ├── chapter_content_block_input_model_sub_type.py │ ├── chapter_with_content_response_model_state.py │ ├── literal_json_schema_property_type.py │ ├── reader_resource_response_model_resource_type.py │ ├── whats_app_conversation_info_direction.py │ ├── caption_style_character_animation_model_enter_type.py │ ├── caption_style_character_animation_model_exit_type.py │ ├── caption_style_vertical_placement_model_align.py │ ├── caption_style_word_animation_model_enter_type.py │ ├── caption_style_word_animation_model_exit_type.py │ ├── conversation_summary_response_model_direction.py │ ├── dynamic_variables_config_dynamic_variable_placeholders_value.py │ ├── extended_subscription_response_model_currency.py │ ├── project_response_model_access_level.py │ ├── speech_to_text_word_response_model_type.py │ ├── async_conversation_metadata_delivery_status.py │ ├── billing_period.py │ ├── caption_style_horizontal_placement_model_align.py │ ├── caption_style_section_animation_model_enter_type.py │ ├── caption_style_section_animation_model_exit_type.py │ ├── conversation_simulation_specification_dynamic_variables_value.py │ ├── embedding_model_enum.py │ ├── mcp_server_config_input_url.py │ ├── mcp_server_config_output_url.py │ ├── project_extended_response_model_aspect_ratio.py │ ├── review_status.py │ ├── tool_call_sound_type.py │ ├── audio_native_project_settings_response_model_status.py │ ├── similar_voice_category.py │ ├── widget_placement.py │ ├── conversation_history_transcript_common_model_input_role.py │ ├── conversation_history_transcript_common_model_output_role.py │ ├── conversation_history_twilio_phone_call_model_direction.py │ ├── conversation_initiation_client_data_internal_dynamic_variables_value.py │ ├── mcp_approval_policy.py │ ├── asr_input_format.py │ ├── character_refresh_period.py │ ├── conversation_initiation_client_data_request_input_dynamic_variables_value.py │ ├── conversation_initiation_client_data_request_output_dynamic_variables_value.py │ ├── project_response_model_target_audience.py │ ├── subscription_status_type.py │ ├── webhook_tool_api_schema_config_input_method.py │ ├── conversation_history_sip_trunking_phone_call_model_direction.py │ ├── conversation_history_transcript_common_model_input_source_medium.py │ ├── conversation_history_transcript_common_model_output_source_medium.py │ ├── project_creation_meta_response_model_status.py │ ├── project_extended_response_model_access_level.py │ ├── project_response_model_source_type.py │ ├── speaker_separation_response_model_status.py │ ├── tool_type.py │ ├── tts_output_format.py │ ├── webhook_tool_api_schema_config_output_method.py │ ├── dynamic_variables_config_workflow_override_dynamic_variable_placeholders_value.py │ ├── project_creation_meta_response_model_type.py │ ├── rag_index_status.py │ ├── voice_response_model_category.py │ ├── dependent_available_agent_identifier_access_level.py │ ├── dependent_available_tool_identifier_access_level.py │ ├── get_conversation_response_model_status.py │ ├── referenced_tool_common_model_type.py │ ├── voice_response_model_safety_control.py │ ├── batch_call_recipient_status.py │ ├── conversation_summary_response_model_status.py │ ├── project_extended_response_model_source_type.py │ ├── project_extended_response_model_target_audience.py │ ├── webhook_usage_type.py │ ├── fine_tuning_response_model_state_value.py │ ├── library_voice_response_model_category.py │ ├── project_extended_response_model_apply_text_normalization.py │ ├── project_extended_response_model_quality_preset.py │ ├── speech_history_item_response_model_voice_category.py │ ├── voice_sharing_response_model_category.py │ ├── webhook_tool_api_schema_config_input_content_type.py │ ├── webhook_tool_api_schema_config_output_content_type.py │ ├── conversation_history_transcript_other_tools_result_common_model_type.py │ ├── body_generate_a_random_voice_v_1_voice_generation_generate_voice_post_gender.py │ ├── body_generate_a_random_voice_v_1_voice_generation_generate_voice_post_age.py │ ├── resource_metadata_response_model_anonymous_access_level_override.py │ ├── speech_history_item_response_model_source.py │ ├── add_pronunciation_dictionary_response_model_permission_on_resource.py │ ├── api_integration_webhook_overrides_input_request_headers_value.py │ ├── api_integration_webhook_overrides_output_request_headers_value.py │ ├── conversation_initiation_client_data_webhook_request_headers_value.py │ ├── pronunciation_dictionary_version_response_model_permission_on_resource.py │ ├── get_pronunciation_dictionary_metadata_response_model_permission_on_resource.py │ ├── twilio_edge_location.py │ ├── custom_llm_request_headers_value.py │ ├── tts_conversational_model.py │ ├── mcp_server_config_input_secret_token.py │ ├── mcp_server_config_output_secret_token.py │ ├── mcp_server_config_input_request_headers_value.py │ ├── mcp_server_config_output_request_headers_value.py │ ├── webhook_tool_api_schema_config_input_request_headers_value.py │ ├── webhook_tool_api_schema_config_output_request_headers_value.py │ ├── object_override_input_properties_value.py │ ├── object_override_output_properties_value.py │ ├── authorization_method.py │ ├── metric_type.py │ ├── safety_rule.py │ ├── prompt_agent_api_model_workflow_override_input_backup_llm_config.py │ ├── prompt_agent_api_model_workflow_override_output_backup_llm_config.py │ ├── invoice_response_model_payment_intent_status.py │ ├── extended_subscription_response_model_pending_change.py │ ├── output_format.py │ ├── pending_subscription_switch_response_model_next_tier.py │ ├── conversation_initiation_source.py │ ├── array_json_schema_property_input_items.py │ ├── array_json_schema_property_output_items.py │ ├── vad_config.py │ ├── breakdown_types.py │ ├── object_json_schema_property_input_properties_value.py │ ├── end_call_tool_config.py │ ├── object_json_schema_property_output_properties_value.py │ ├── language_detection_tool_config.py │ ├── vad_config_workflow_override.py │ ├── metric_record.py │ ├── segment_dub_response.py │ ├── token_response_model.py │ ├── language_added_response.py │ ├── position_output.py │ ├── segment_delete_response.py │ ├── segment_update_response.py │ ├── time_range.py │ ├── workflow_tool_locator.py │ ├── rag_document_index_usage.py │ ├── speaker_updated_response.py │ ├── create_unit_test_response_model.py │ ├── segment_migration_response.py │ ├── segment_translation_response.py │ ├── sip_uri_transfer_destination.py │ ├── match_anything_parameter_evaluation_strategy.py │ ├── segment_transcription_response.py │ ├── dashboard_call_success_chart_model.py │ ├── phone_number_transfer_destination.py │ ├── prompt_agent_db_model.py │ ├── word_timestamp.py │ ├── segment_create_response.py │ ├── speaker_created_response.py │ ├── add_knowledge_base_response_model.py │ ├── conversation_signed_url_response_model.py │ ├── dubbing_render_response_model.py │ ├── language_preset_translation.py │ ├── backup_llm_default.py │ ├── dashboard_criteria_chart_model.py │ ├── backup_llm_disabled.py │ ├── position_input.py │ ├── sip_uri_dynamic_variable_transfer_destination.py │ ├── attached_test_model.py │ ├── get_agent_knowledgebase_size_response_model.py │ ├── rag_chunk_metadata.py │ ├── voice_generation_parameter_option_response.py │ ├── chapter_content_block_tts_node_response_model.py │ ├── dashboard_data_collection_chart_model.py │ ├── phone_number_dynamic_variable_transfer_destination.py │ ├── bad_request_error_body.py │ ├── conversation_history_transcript_tool_call_client_details.py │ ├── segment_subtitle_frame.py │ ├── add_project_response_model.py │ ├── agent_failure_response_example.py │ ├── ast_string_node_input.py │ ├── conversation_history_batch_call_model.py │ ├── edit_project_response_model.py │ ├── post_agent_avatar_response_model.py │ ├── agent_successful_response_example.py │ ├── allowlist_item.py │ ├── ast_boolean_node_input.py │ ├── ast_boolean_node_output.py │ ├── ast_number_node_input.py │ ├── ast_number_node_output.py │ ├── ast_string_node_output.py │ ├── conversation_history_error_common_model.py │ ├── conversation_history_rag_usage_common_model.py │ ├── get_chapters_response.py │ ├── knowledge_base_document_chunk_response_model.py │ ├── llm_tokens_category_usage.py │ ├── mcp_server_metadata_response_model.py │ ├── threshold_guardrail.py │ ├── workflow_tool_edge_step_model.py │ ├── add_voice_response_model.py │ ├── feature_status_common_model.py │ ├── image_avatar.py │ ├── tool_mock_config.py │ ├── astllm_node_input.py │ ├── caption_style_template_model.py │ ├── history_item_response.py │ ├── llm_usage_calculator_llm_response_model.py │ ├── transfer_to_agent_tool_config.py │ ├── user_feedback.py │ ├── agent_metadata.py │ ├── astllm_node_output.py │ ├── conv_ai_dynamic_variable.py │ ├── conversation_history_eleven_assistant_common_model.py │ ├── create_agent_response_model.py │ ├── similar_voices_for_speaker_response.py │ ├── test_tool_result_model.py │ ├── url_avatar.py │ ├── workflow_tool_max_iterations_exceeded_step_model.py │ ├── workspace_create_webhook_response_model.py │ ├── get_live_count_response.py │ ├── http_validation_error.py │ ├── moderation_guardrail_input.py │ ├── podcast_bulletin_mode_data.py │ ├── ast_dynamic_variable_node_input.py │ ├── conv_ai_secret_locator.py │ ├── conversation_turn_metrics.py │ ├── create_phone_number_response_model.py │ ├── default_conversation_initiation_trigger.py │ ├── moderation_guardrail_output.py │ ├── post_workspace_secret_response_model.py │ └── skip_turn_tool_response_model.py │ ├── user │ └── subscription │ │ └── __init__.py │ ├── conversational_ai │ ├── secrets │ │ └── __init__.py │ ├── tools │ │ └── __init__.py │ ├── agents │ │ ├── link │ │ │ └── __init__.py │ │ ├── llm_usage │ │ │ └── __init__.py │ │ ├── knowledge_base │ │ │ └── __init__.py │ │ └── widget │ │ │ └── avatar │ │ │ └── __init__.py │ ├── batch_calls │ │ └── __init__.py │ ├── llm_usage │ │ └── __init__.py │ ├── settings │ │ └── __init__.py │ ├── sip_trunk │ │ └── __init__.py │ ├── mcp_servers │ │ ├── tools │ │ │ └── __init__.py │ │ ├── approval_policy │ │ │ └── __init__.py │ │ ├── tool_approvals │ │ │ └── __init__.py │ │ ├── tool_configs │ │ │ └── __init__.py │ │ └── types │ │ │ └── mcp_server_config_update_request_model_request_headers_value.py │ ├── tests │ │ ├── invocations │ │ │ └── __init__.py │ │ └── types │ │ │ ├── create_unit_test_request_dynamic_variables_value.py │ │ │ └── update_unit_test_request_dynamic_variables_value.py │ ├── analytics │ │ ├── live_count │ │ │ └── __init__.py │ │ └── raw_client.py │ ├── conversations │ │ ├── audio │ │ │ └── __init__.py │ │ ├── feedback │ │ │ └── __init__.py │ │ └── types │ │ │ └── conversations_list_request_summary_mode.py │ ├── knowledge_base │ │ ├── document │ │ │ └── __init__.py │ │ └── documents │ │ │ └── chunk │ │ │ └── __init__.py │ ├── twilio │ │ └── types │ │ │ └── body_register_a_twilio_call_and_return_twi_ml_v_1_convai_twilio_register_call_post_direction.py │ └── dashboard │ │ └── raw_client.py │ ├── music │ ├── composition_plan │ │ └── __init__.py │ └── types │ │ └── music_separate_stems_request_stem_variation_id.py │ ├── studio │ ├── projects │ │ ├── content │ │ │ └── __init__.py │ │ ├── snapshots │ │ │ └── __init__.py │ │ ├── chapters │ │ │ └── snapshots │ │ │ │ └── __init__.py │ │ ├── pronunciation_dictionaries │ │ │ └── __init__.py │ │ └── types │ │ │ ├── projects_create_request_fiction.py │ │ │ ├── projects_create_request_target_audience.py │ │ │ ├── projects_create_request_apply_text_normalization.py │ │ │ └── projects_create_request_source_type.py │ └── types │ │ ├── body_create_podcast_v_1_studio_podcasts_post_duration_scale.py │ │ ├── body_create_podcast_v_1_studio_podcasts_post_apply_text_normalization.py │ │ ├── body_create_podcast_v_1_studio_podcasts_post_quality_preset.py │ │ └── body_create_podcast_v_1_studio_podcasts_post_source.py │ ├── text_to_voice │ ├── preview │ │ └── __init__.py │ └── types │ │ └── voice_design_request_model_model_id.py │ ├── workspace │ ├── groups │ │ └── members │ │ │ └── __init__.py │ ├── members │ │ └── types │ │ │ └── body_update_member_v_1_workspace_members_post_workspace_role.py │ ├── resources │ │ └── types │ │ │ └── body_share_workspace_resource_v_1_workspace_resources_resource_id_share_post_role.py │ └── raw_client.py │ ├── core │ ├── http_sse │ │ ├── _exceptions.py │ │ └── _models.py │ ├── remove_none_from_dict.py │ ├── force_multipart.py │ └── api_error.py │ ├── history │ └── types │ │ ├── history_list_request_source.py │ │ └── history_list_request_sort_direction.py │ ├── speech_to_text │ ├── types │ │ ├── speech_to_text_convert_request_webhook_metadata.py │ │ ├── speech_to_text_convert_request_file_format.py │ │ ├── speech_to_text_convert_request_timestamps_granularity.py │ │ └── speech_to_text_convert_response.py │ └── transcripts │ │ └── types │ │ └── transcripts_get_response.py │ ├── audio_isolation │ └── types │ │ ├── audio_isolation_stream_request_file_format.py │ │ └── audio_isolation_convert_request_file_format.py │ ├── speech_to_speech │ └── types │ │ ├── speech_to_speech_convert_request_file_format.py │ │ └── speech_to_speech_stream_request_file_format.py │ ├── text_to_speech │ └── types │ │ ├── body_text_to_speech_full_apply_text_normalization.py │ │ ├── body_text_to_speech_stream_apply_text_normalization.py │ │ ├── body_text_to_speech_full_with_timestamps_apply_text_normalization.py │ │ └── body_text_to_speech_stream_with_timestamps_apply_text_normalization.py │ ├── pronunciation_dictionaries │ └── types │ │ ├── pronunciation_dictionaries_list_request_sort.py │ │ ├── pronunciation_dictionaries_create_from_file_request_workspace_access.py │ │ └── body_add_a_pronunciation_dictionary_v_1_pronunciation_dictionaries_add_from_rules_post_workspace_access.py │ ├── audio_native │ └── types │ │ └── audio_native_create_request_apply_text_normalization.py │ ├── text_to_dialogue │ └── types │ │ ├── body_text_to_dialogue_full_with_timestamps_apply_text_normalization.py │ │ ├── body_text_to_dialogue_stream_with_timestamps_apply_text_normalization.py │ │ ├── body_text_to_dialogue_multi_voice_v_1_text_to_dialogue_post_apply_text_normalization.py │ │ └── body_text_to_dialogue_multi_voice_streaming_v_1_text_to_dialogue_stream_post_apply_text_normalization.py │ ├── errors │ ├── conflict_error.py │ ├── forbidden_error.py │ ├── not_found_error.py │ ├── too_early_error.py │ ├── unauthorized_error.py │ ├── bad_request_error.py │ └── unprocessable_entity_error.py │ ├── environment.py │ ├── realtime │ └── __init__.py │ └── service_accounts │ └── api_keys │ └── types │ └── body_create_service_account_api_key_v_1_service_accounts_service_account_user_id_api_keys_post_permissions.py ├── .gitignore ├── requirements.txt ├── .github ├── ISSUE_TEMPLATE │ └── config.yml └── SECURITY.md └── .fernignore /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/elevenlabs/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .mypy_cache/ 2 | .ruff_cache/ 3 | __pycache__/ 4 | dist/ 5 | poetry.toml 6 | -------------------------------------------------------------------------------- /src/elevenlabs/version.py: -------------------------------------------------------------------------------- 1 | from importlib import metadata 2 | 3 | __version__ = metadata.version("elevenlabs") 4 | -------------------------------------------------------------------------------- /tests/fixtures/voice_sample.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elevenlabs/elevenlabs-python/HEAD/tests/fixtures/voice_sample.mp3 -------------------------------------------------------------------------------- /src/elevenlabs/usage/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/models/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/samples/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/voices/ivc/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/webhooks/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/audio/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/voices/settings/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/forced_alignment/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/tokens/single_use/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/types/age.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | Age = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/user/subscription/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/voices/samples/audio/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/secrets/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/tools/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/resource/language/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/resource/segment/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/music/composition_plan/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/projects/content/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/projects/snapshots/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/text_to_voice/preview/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/types/gender.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | Gender = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/voices/pvc/samples/audio/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/workspace/groups/members/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/agents/link/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/batch_calls/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/llm_usage/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/settings/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/sip_trunk/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/voices/pvc/samples/waveform/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/agents/llm_usage/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/mcp_servers/tools/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/tests/invocations/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/resource/speaker/segment/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/projects/chapters/snapshots/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/types/prompt_agent.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | PromptAgent = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/voices/pvc/samples/speakers/audio/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/voices/pvc/verification/captcha/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/agents/knowledge_base/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/agents/widget/avatar/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/analytics/live_count/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/conversations/audio/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/conversations/feedback/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/types/tts_optimize_streaming_latency.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | TtsOptimizeStreamingLatency = int 4 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | httpx>=0.21.2 2 | pyaudio>=0.2.14 3 | pydantic>= 1.9.2 4 | pydantic-core>=2.18.2 5 | requests>=2.20 6 | typing_extensions>= 4.0.0 7 | websockets>=11.0 8 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/knowledge_base/document/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/mcp_servers/approval_policy/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/mcp_servers/tool_approvals/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/mcp_servers/tool_configs/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/projects/pronunciation_dictionaries/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/types/asr_quality.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AsrQuality = typing.Literal["high"] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/knowledge_base/documents/chunk/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | # isort: skip_file 4 | 5 | -------------------------------------------------------------------------------- /src/elevenlabs/types/add_project_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AddProjectRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_chapter_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetChapterRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_chapters_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetChaptersRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_project_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetProjectRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_projects_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetProjectsRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/delete_chapter_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DeleteChapterRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/delete_project_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DeleteProjectRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/text_to_speech_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TextToSpeechRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/update_chapter_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | UpdateChapterRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/update_project_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | UpdateProjectRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/add_sharing_voice_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AddSharingVoiceRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/character_usage_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CharacterUsageResponse = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/create_transcript_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CreateTranscriptRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_phone_number_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetPhoneNumberResponse = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/save_voice_preview_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SaveVoicePreviewRequest = typing.Any 6 | -------------------------------------------------------------------------------- /tests/test_convai_imports.py: -------------------------------------------------------------------------------- 1 | from elevenlabs import ElevenLabs 2 | 3 | 4 | def test_convai_imports(): 5 | client = ElevenLabs(api_key="") 6 | client.conversational_ai.agents 7 | -------------------------------------------------------------------------------- /src/elevenlabs/types/edit_voice_settings_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | EditVoiceSettingsRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_chapter_snapshots_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetChapterSnapshotsRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/text_to_speech_stream_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TextToSpeechStreamRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/core/http_sse/_exceptions.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import httpx 4 | 5 | 6 | class SSEError(httpx.TransportError): 7 | pass 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/remove_member_from_group_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | RemoveMemberFromGroupRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/validation_error_loc_item.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ValidationErrorLocItem = typing.Union[str, int] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/widget_end_feedback_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WidgetEndFeedbackType = typing.Literal["rating"] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/create_audio_native_project_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CreateAudioNativeProjectRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/turn_mode.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TurnMode = typing.Union[typing.Literal["silence", "turn"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/update_audio_native_project_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | UpdateAudioNativeProjectRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_pronunciation_dictionaries_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetPronunciationDictionariesResponse = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_pronunciation_dictionary_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetPronunciationDictionaryResponse = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/sort_direction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SortDirection = typing.Union[typing.Literal["asc", "desc"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/text_to_speech_with_timestamps_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TextToSpeechWithTimestampsRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/agent_sort_by.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AgentSortBy = typing.Union[typing.Literal["name", "created_at"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/ban_reason_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BanReasonType = typing.Union[typing.Literal["safety", "manual"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/chapter_state.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ChapterState = typing.Union[typing.Literal["default", "converting"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/update_pronunciation_dictionaries_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | UpdatePronunciationDictionariesRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/dubbing_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DubbingModel = typing.Union[typing.Literal["dubbing_v2", "dubbing_v3"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/literal_override_constant_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | LiteralOverrideConstantValue = typing.Union[str, int, float, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/secret_dependency_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SecretDependencyType = typing.Literal["conversation_initiation_webhook"] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/text_to_speech_stream_with_timestamps_request.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TextToSpeechStreamWithTimestampsRequest = typing.Any 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/twilio_region_id.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TwilioRegionId = typing.Union[typing.Literal["us1", "ie1", "au1"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/user_feedback_score.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | UserFeedbackScore = typing.Union[typing.Literal["like", "dislike"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/asr_provider.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AsrProvider = typing.Union[typing.Literal["elevenlabs", "scribe_realtime"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/livekit_stack_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | LivekitStackType = typing.Union[typing.Literal["standard", "static"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/telephony_provider.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TelephonyProvider = typing.Union[typing.Literal["twilio", "sip_trunk"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/test_run_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TestRunStatus = typing.Union[typing.Literal["pending", "passed", "failed"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/turn_eagerness.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TurnEagerness = typing.Union[typing.Literal["patient", "normal", "eager"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/document_usage_mode_enum.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DocumentUsageModeEnum = typing.Union[typing.Literal["prompt", "auto"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/integration_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | IntegrationType = typing.Union[typing.Literal["mcp_server", "mcp_integration"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/mcp_server_transport.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | McpServerTransport = typing.Union[typing.Literal["SSE", "STREAMABLE_HTTP"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/render_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | RenderStatus = typing.Union[typing.Literal["complete", "processing", "failed"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/tool_call_sound_behavior.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ToolCallSoundBehavior = typing.Union[typing.Literal["auto", "always"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/transfer_type_enum.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TransferTypeEnum = typing.Union[typing.Literal["conference", "sip_refer"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/tts_model_family.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TtsModelFamily = typing.Union[typing.Literal["turbo", "flash", "multilingual"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/unit_test_common_model_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | UnitTestCommonModelType = typing.Union[typing.Literal["llm", "tool"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/widget_feedback_mode.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WidgetFeedbackMode = typing.Union[typing.Literal["none", "during", "end"], typing.Any] 6 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: true 2 | contact_links: 3 | - name: Ask a question (Discord) 4 | url: https://discord.com/invite/elevenlabs 5 | about: Please ask questions in our discussions forum. 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_feedback_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationFeedbackType = typing.Union[typing.Literal["thumbs", "rating"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/custom_llmapi_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CustomLlmapiType = typing.Union[typing.Literal["chat_completions", "responses"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/embed_variant.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | EmbedVariant = typing.Union[typing.Literal["tiny", "compact", "full", "expandable"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/test_run_metadata_test_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TestRunMetadataTestType = typing.Union[typing.Literal["llm", "tool_call"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/history/types/history_list_request_source.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | HistoryListRequestSource = typing.Union[typing.Literal["TTS", "STS"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/additional_formats.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .export_options import ExportOptions 6 | 7 | AdditionalFormats = typing.List[ExportOptions] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_state.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectState = typing.Union[typing.Literal["creating", "default", "converting", "in_queue"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/single_use_token_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SingleUseTokenType = typing.Union[typing.Literal["realtime_scribe", "tts_websocket"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/sip_trunk_transport_enum.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SipTrunkTransportEnum = typing.Union[typing.Literal["auto", "udp", "tcp", "tls"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/text_normalisation_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TextNormalisationType = typing.Union[typing.Literal["system_prompt", "elevenlabs"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/webhook_auth_method_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WebhookAuthMethodType = typing.Union[typing.Literal["hmac", "oauth2", "mtls"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/widget_expandable.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WidgetExpandable = typing.Union[typing.Literal["never", "mobile", "desktop", "always"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_model_text_style.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleModelTextStyle = typing.Union[typing.Literal["normal", "italic"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_model_text_weight.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleModelTextWeight = typing.Union[typing.Literal["normal", "bold"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/knowledge_base_document_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | KnowledgeBaseDocumentType = typing.Union[typing.Literal["file", "url", "text"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/literal_json_schema_property_constant_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | LiteralJsonSchemaPropertyConstantValue = typing.Union[str, int, float, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/tool_execution_mode.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ToolExecutionMode = typing.Union[typing.Literal["immediate", "post_tool_speech", "async"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/resource/types/resource_render_request_language.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ResourceRenderRequestLanguage = typing.Union[str, typing.Literal["original"]] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/types/dubbing_create_request_mode.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DubbingCreateRequestMode = typing.Union[typing.Literal["automatic", "manual"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_model_text_align.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleModelTextAlign = typing.Union[typing.Literal["start", "center", "end"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_token_purpose.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationTokenPurpose = typing.Union[typing.Literal["signed_url", "shareable_link"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/dubbing_release_channel.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DubbingReleaseChannel = typing.Union[typing.Literal["stable", "release", "experimental"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/evaluation_success_result.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | EvaluationSuccessResult = typing.Union[typing.Literal["success", "failure", "unknown"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/knowledge_base_sort_by.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | KnowledgeBaseSortBy = typing.Union[typing.Literal["name", "created_at", "updated_at", "size"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/llm_reasoning_effort.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | LlmReasoningEffort = typing.Union[typing.Literal["none", "minimal", "low", "medium", "high"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/mcp_tool_approval_policy.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | McpToolApprovalPolicy = typing.Union[typing.Literal["auto_approved", "requires_approval"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_response_model_fiction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectResponseModelFiction = typing.Union[typing.Literal["fiction", "non-fiction"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/render_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | RenderType = typing.Union[typing.Literal["mp4", "aac", "mp3", "wav", "aaf", "tracks_zip", "clips_zip"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/share_option_response_model_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ShareOptionResponseModelType = typing.Union[typing.Literal["user", "group", "key"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/sip_media_encryption_enum.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SipMediaEncryptionEnum = typing.Union[typing.Literal["disabled", "allowed", "required"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/unit_test_common_model_dynamic_variables_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | UnitTestCommonModelDynamicVariablesValue = typing.Union[str, float, int, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/webhook_event_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WebhookEventType = typing.Union[typing.Literal["transcript", "audio", "call_initiation_failure"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/history/types/history_list_request_sort_direction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | HistoryListRequestSortDirection = typing.Union[typing.Literal["asc", "desc"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/agent_definition_source.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AgentDefinitionSource = typing.Union[typing.Literal["cli", "ui", "api", "template", "unknown"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/resource_access_info_role.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ResourceAccessInfoRole = typing.Union[typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/subscription_response_model_currency.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SubscriptionResponseModelCurrency = typing.Union[typing.Literal["usd", "eur", "inr"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/voice_sharing_state.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | VoiceSharingState = typing.Union[typing.Literal["enabled", "disabled", "copied", "copied_disabled"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/batch_call_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BatchCallStatus = typing.Union[typing.Literal["pending", "in_progress", "completed", "failed", "cancelled"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_unit_test_response_model_dynamic_variables_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetUnitTestResponseModelDynamicVariablesValue = typing.Union[str, float, int, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_extended_response_model_fiction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectExtendedResponseModelFiction = typing.Union[typing.Literal["fiction", "non-fiction"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_response_model_aspect_ratio.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectResponseModelAspectRatio = typing.Union[typing.Literal["16:9", "9:16", "4:5", "1:1"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/usage_aggregation_interval.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | UsageAggregationInterval = typing.Union[typing.Literal["hour", "day", "week", "month", "cumulative"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/types/dubbing_list_request_dubbing_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DubbingListRequestDubbingStatus = typing.Union[typing.Literal["dubbing", "dubbed", "failed"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/types/dubbing_list_request_order_direction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DubbingListRequestOrderDirection = typing.Union[typing.Literal["DESCENDING", "ASCENDING"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/projects/types/projects_create_request_fiction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectsCreateRequestFiction = typing.Union[typing.Literal["fiction", "non-fiction"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/chapter_content_block_input_model_sub_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ChapterContentBlockInputModelSubType = typing.Union[typing.Literal["p", "h1", "h2", "h3"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/chapter_with_content_response_model_state.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ChapterWithContentResponseModelState = typing.Union[typing.Literal["default", "converting"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/literal_json_schema_property_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | LiteralJsonSchemaPropertyType = typing.Union[typing.Literal["boolean", "string", "integer", "number"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/reader_resource_response_model_resource_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ReaderResourceResponseModelResourceType = typing.Union[typing.Literal["read", "collection"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/whats_app_conversation_info_direction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WhatsAppConversationInfoDirection = typing.Union[typing.Literal["inbound", "outbound", "unknown"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/tests/types/create_unit_test_request_dynamic_variables_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CreateUnitTestRequestDynamicVariablesValue = typing.Union[str, float, int, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/tests/types/update_unit_test_request_dynamic_variables_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | UpdateUnitTestRequestDynamicVariablesValue = typing.Union[str, float, int, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/types/dubbing_list_request_filter_by_creator.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DubbingListRequestFilterByCreator = typing.Union[typing.Literal["personal", "others", "all"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/speech_to_text/types/speech_to_text_convert_request_webhook_metadata.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SpeechToTextConvertRequestWebhookMetadata = typing.Union[str, typing.Dict[str, typing.Any]] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_character_animation_model_enter_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleCharacterAnimationModelEnterType = typing.Union[typing.Literal["none", "fade"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_character_animation_model_exit_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleCharacterAnimationModelExitType = typing.Union[typing.Literal["none", "fade"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_vertical_placement_model_align.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleVerticalPlacementModelAlign = typing.Union[typing.Literal["top", "center", "bottom"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_word_animation_model_enter_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleWordAnimationModelEnterType = typing.Union[typing.Literal["none", "fade", "scale"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_word_animation_model_exit_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleWordAnimationModelExitType = typing.Union[typing.Literal["none", "fade", "scale"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_summary_response_model_direction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationSummaryResponseModelDirection = typing.Union[typing.Literal["inbound", "outbound"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/dynamic_variables_config_dynamic_variable_placeholders_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DynamicVariablesConfigDynamicVariablePlaceholdersValue = typing.Union[str, float, int, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/extended_subscription_response_model_currency.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ExtendedSubscriptionResponseModelCurrency = typing.Union[typing.Literal["usd", "eur", "inr"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_response_model_access_level.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectResponseModelAccessLevel = typing.Union[typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/speech_to_text_word_response_model_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SpeechToTextWordResponseModelType = typing.Union[typing.Literal["word", "spacing", "audio_event"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/async_conversation_metadata_delivery_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AsyncConversationMetadataDeliveryStatus = typing.Union[typing.Literal["pending", "success", "failed"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/billing_period.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BillingPeriod = typing.Union[ 6 | typing.Literal["monthly_period", "3_month_period", "6_month_period", "annual_period"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_horizontal_placement_model_align.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleHorizontalPlacementModelAlign = typing.Union[typing.Literal["left", "center", "right"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_section_animation_model_enter_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleSectionAnimationModelEnterType = typing.Union[typing.Literal["none", "fade", "scale"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_section_animation_model_exit_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CaptionStyleSectionAnimationModelExitType = typing.Union[typing.Literal["none", "fade", "scale"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_simulation_specification_dynamic_variables_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationSimulationSpecificationDynamicVariablesValue = typing.Union[str, float, int, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/embedding_model_enum.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | EmbeddingModelEnum = typing.Union[ 6 | typing.Literal["e5_mistral_7b_instruct", "multilingual_e5_large_instruct"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/mcp_server_config_input_url.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_secret_locator import ConvAiSecretLocator 6 | 7 | McpServerConfigInputUrl = typing.Union[str, ConvAiSecretLocator] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/mcp_server_config_output_url.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_secret_locator import ConvAiSecretLocator 6 | 7 | McpServerConfigOutputUrl = typing.Union[str, ConvAiSecretLocator] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_extended_response_model_aspect_ratio.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectExtendedResponseModelAspectRatio = typing.Union[typing.Literal["16:9", "9:16", "4:5", "1:1"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/review_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ReviewStatus = typing.Union[ 6 | typing.Literal["not_requested", "pending", "declined", "allowed", "allowed_with_changes"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/tool_call_sound_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ToolCallSoundType = typing.Union[ 6 | typing.Literal["typing", "elevator1", "elevator2", "elevator3", "elevator4"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/voices/types/voices_get_shared_request_category.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | VoicesGetSharedRequestCategory = typing.Union[typing.Literal["professional", "famous", "high_quality"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/audio_isolation/types/audio_isolation_stream_request_file_format.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AudioIsolationStreamRequestFileFormat = typing.Union[typing.Literal["pcm_s16le_16", "other"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/speech_to_text/types/speech_to_text_convert_request_file_format.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SpeechToTextConvertRequestFileFormat = typing.Union[typing.Literal["pcm_s16le_16", "other"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/audio_native_project_settings_response_model_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AudioNativeProjectSettingsResponseModelStatus = typing.Union[typing.Literal["processing", "ready"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/similar_voice_category.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SimilarVoiceCategory = typing.Union[ 6 | typing.Literal["premade", "cloned", "generated", "professional", "famous"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/widget_placement.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WidgetPlacement = typing.Union[ 6 | typing.Literal["top-left", "top", "top-right", "bottom-left", "bottom", "bottom-right"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/audio_isolation/types/audio_isolation_convert_request_file_format.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AudioIsolationConvertRequestFileFormat = typing.Union[typing.Literal["pcm_s16le_16", "other"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/music/types/music_separate_stems_request_stem_variation_id.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | MusicSeparateStemsRequestStemVariationId = typing.Union[typing.Literal["two_stems_v1", "six_stems_v1"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/speech_to_speech/types/speech_to_speech_convert_request_file_format.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SpeechToSpeechConvertRequestFileFormat = typing.Union[typing.Literal["pcm_s16le_16", "other"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/speech_to_speech/types/speech_to_speech_stream_request_file_format.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SpeechToSpeechStreamRequestFileFormat = typing.Union[typing.Literal["pcm_s16le_16", "other"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_transcript_common_model_input_role.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationHistoryTranscriptCommonModelInputRole = typing.Union[typing.Literal["user", "agent"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_transcript_common_model_output_role.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationHistoryTranscriptCommonModelOutputRole = typing.Union[typing.Literal["user", "agent"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_twilio_phone_call_model_direction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationHistoryTwilioPhoneCallModelDirection = typing.Union[typing.Literal["inbound", "outbound"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_initiation_client_data_internal_dynamic_variables_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationInitiationClientDataInternalDynamicVariablesValue = typing.Union[str, float, int, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/mcp_approval_policy.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | McpApprovalPolicy = typing.Union[ 6 | typing.Literal["auto_approve_all", "require_approval_all", "require_approval_per_tool"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /tests/test_history.py: -------------------------------------------------------------------------------- 1 | from elevenlabs import GetSpeechHistoryResponse, ElevenLabs 2 | 3 | 4 | def test_history(): 5 | client = ElevenLabs() 6 | page_size = 5 7 | history = client.history.list(page_size=page_size) 8 | assert isinstance(history, GetSpeechHistoryResponse) 9 | -------------------------------------------------------------------------------- /tests/test_models.py: -------------------------------------------------------------------------------- 1 | from elevenlabs import Model 2 | from elevenlabs.client import ElevenLabs 3 | 4 | 5 | def test_models_get_all(): 6 | client = ElevenLabs() 7 | models = client.models.list() 8 | assert len(models) > 0 9 | assert isinstance(models[0], Model) 10 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/conversations/types/conversations_list_request_summary_mode.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationsListRequestSummaryMode = typing.Union[typing.Literal["exclude", "include"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/text_to_speech/types/body_text_to_speech_full_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyTextToSpeechFullApplyTextNormalization = typing.Union[typing.Literal["auto", "on", "off"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/text_to_voice/types/voice_design_request_model_model_id.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | VoiceDesignRequestModelModelId = typing.Union[typing.Literal["eleven_multilingual_ttv_v2", "eleven_ttv_v3"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/text_to_speech/types/body_text_to_speech_stream_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyTextToSpeechStreamApplyTextNormalization = typing.Union[typing.Literal["auto", "on", "off"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/asr_input_format.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AsrInputFormat = typing.Union[ 6 | typing.Literal["pcm_8000", "pcm_16000", "pcm_22050", "pcm_24000", "pcm_44100", "pcm_48000", "ulaw_8000"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/character_refresh_period.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | CharacterRefreshPeriod = typing.Union[ 6 | typing.Literal["monthly_period", "3_month_period", "6_month_period", "annual_period"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_initiation_client_data_request_input_dynamic_variables_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationInitiationClientDataRequestInputDynamicVariablesValue = typing.Union[str, float, int, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_initiation_client_data_request_output_dynamic_variables_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationInitiationClientDataRequestOutputDynamicVariablesValue = typing.Union[str, float, int, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_response_model_target_audience.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectResponseModelTargetAudience = typing.Union[ 6 | typing.Literal["children", "young adult", "adult", "all ages"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/subscription_status_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SubscriptionStatusType = typing.Union[ 6 | typing.Literal["trialing", "active", "incomplete", "past_due", "free", "free_disabled"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/webhook_tool_api_schema_config_input_method.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WebhookToolApiSchemaConfigInputMethod = typing.Union[ 6 | typing.Literal["GET", "POST", "PUT", "PATCH", "DELETE"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_sip_trunking_phone_call_model_direction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationHistorySipTrunkingPhoneCallModelDirection = typing.Union[typing.Literal["inbound", "outbound"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_transcript_common_model_input_source_medium.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationHistoryTranscriptCommonModelInputSourceMedium = typing.Union[typing.Literal["audio", "text"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_transcript_common_model_output_source_medium.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationHistoryTranscriptCommonModelOutputSourceMedium = typing.Union[typing.Literal["audio", "text"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_creation_meta_response_model_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectCreationMetaResponseModelStatus = typing.Union[ 6 | typing.Literal["pending", "creating", "finished", "failed"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_extended_response_model_access_level.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectExtendedResponseModelAccessLevel = typing.Union[ 6 | typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_response_model_source_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectResponseModelSourceType = typing.Union[ 6 | typing.Literal["blank", "book", "article", "genfm", "video", "screenplay"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/speaker_separation_response_model_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SpeakerSeparationResponseModelStatus = typing.Union[ 6 | typing.Literal["not_started", "pending", "completed", "failed"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/tool_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ToolType = typing.Union[ 6 | typing.Literal["system", "webhook", "client", "mcp", "workflow", "api_integration_webhook", "api_integration_mcp"], 7 | typing.Any, 8 | ] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/types/tts_output_format.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TtsOutputFormat = typing.Union[ 6 | typing.Literal["pcm_8000", "pcm_16000", "pcm_22050", "pcm_24000", "pcm_44100", "pcm_48000", "ulaw_8000"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/webhook_tool_api_schema_config_output_method.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WebhookToolApiSchemaConfigOutputMethod = typing.Union[ 6 | typing.Literal["GET", "POST", "PUT", "PATCH", "DELETE"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/transcript/types/transcript_get_transcript_for_dub_request_format_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TranscriptGetTranscriptForDubRequestFormatType = typing.Union[typing.Literal["srt", "webvtt", "json"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/pronunciation_dictionaries/types/pronunciation_dictionaries_list_request_sort.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | PronunciationDictionariesListRequestSort = typing.Union[typing.Literal["creation_time_unix", "name"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/speech_to_text/types/speech_to_text_convert_request_timestamps_granularity.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SpeechToTextConvertRequestTimestampsGranularity = typing.Union[typing.Literal["none", "word", "character"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/dynamic_variables_config_workflow_override_dynamic_variable_placeholders_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DynamicVariablesConfigWorkflowOverrideDynamicVariablePlaceholdersValue = typing.Union[str, float, int, bool] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_creation_meta_response_model_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectCreationMetaResponseModelType = typing.Union[ 6 | typing.Literal["blank", "generate_podcast", "auto_assign_voices"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/rag_index_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | RagIndexStatus = typing.Union[ 6 | typing.Literal["created", "processing", "failed", "succeeded", "rag_limit_exceeded", "document_too_small"], 7 | typing.Any, 8 | ] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/types/voice_response_model_category.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | VoiceResponseModelCategory = typing.Union[ 6 | typing.Literal["generated", "cloned", "premade", "professional", "famous", "high_quality"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/dependent_available_agent_identifier_access_level.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DependentAvailableAgentIdentifierAccessLevel = typing.Union[ 6 | typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/dependent_available_tool_identifier_access_level.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | DependentAvailableToolIdentifierAccessLevel = typing.Union[ 6 | typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_conversation_response_model_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetConversationResponseModelStatus = typing.Union[ 6 | typing.Literal["initiated", "in-progress", "processing", "done", "failed"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/referenced_tool_common_model_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ReferencedToolCommonModelType = typing.Union[ 6 | typing.Literal["system", "webhook", "client", "workflow", "api_integration_webhook"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/voice_response_model_safety_control.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | VoiceResponseModelSafetyControl = typing.Union[ 6 | typing.Literal["NONE", "BAN", "CAPTCHA", "ENTERPRISE_BAN", "ENTERPRISE_CAPTCHA"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/projects/types/projects_create_request_target_audience.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectsCreateRequestTargetAudience = typing.Union[ 6 | typing.Literal["children", "young adult", "adult", "all ages"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/batch_call_recipient_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BatchCallRecipientStatus = typing.Union[ 6 | typing.Literal["pending", "initiated", "in_progress", "completed", "failed", "cancelled", "voicemail"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_summary_response_model_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationSummaryResponseModelStatus = typing.Union[ 6 | typing.Literal["initiated", "in-progress", "processing", "done", "failed"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_extended_response_model_source_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectExtendedResponseModelSourceType = typing.Union[ 6 | typing.Literal["blank", "book", "article", "genfm", "video", "screenplay"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_extended_response_model_target_audience.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectExtendedResponseModelTargetAudience = typing.Union[ 6 | typing.Literal["children", "young adult", "adult", "all ages"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/webhook_usage_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WebhookUsageType = typing.Union[ 6 | typing.Literal["ConvAI Agent Settings", "ConvAI Settings", "Voice Library Removal Notices", "Speech to Text"], 7 | typing.Any, 8 | ] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/projects/types/projects_create_request_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectsCreateRequestApplyTextNormalization = typing.Union[ 6 | typing.Literal["auto", "on", "off", "apply_english"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/projects/types/projects_create_request_source_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectsCreateRequestSourceType = typing.Union[ 6 | typing.Literal["blank", "book", "article", "genfm", "video", "screenplay"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/types/body_create_podcast_v_1_studio_podcasts_post_duration_scale.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyCreatePodcastV1StudioPodcastsPostDurationScale = typing.Union[ 6 | typing.Literal["short", "default", "long"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/text_to_speech/types/body_text_to_speech_full_with_timestamps_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyTextToSpeechFullWithTimestampsApplyTextNormalization = typing.Union[typing.Literal["auto", "on", "off"], typing.Any] 6 | -------------------------------------------------------------------------------- /src/elevenlabs/types/fine_tuning_response_model_state_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | FineTuningResponseModelStateValue = typing.Union[ 6 | typing.Literal["not_started", "queued", "fine_tuning", "fine_tuned", "failed", "delayed"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/library_voice_response_model_category.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | LibraryVoiceResponseModelCategory = typing.Union[ 6 | typing.Literal["generated", "cloned", "premade", "professional", "famous", "high_quality"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_extended_response_model_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectExtendedResponseModelApplyTextNormalization = typing.Union[ 6 | typing.Literal["auto", "on", "off", "apply_english"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/project_extended_response_model_quality_preset.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ProjectExtendedResponseModelQualityPreset = typing.Union[ 6 | typing.Literal["standard", "high", "highest", "ultra", "ultra_lossless"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/speech_history_item_response_model_voice_category.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SpeechHistoryItemResponseModelVoiceCategory = typing.Union[ 6 | typing.Literal["premade", "cloned", "generated", "professional"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/voice_sharing_response_model_category.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | VoiceSharingResponseModelCategory = typing.Union[ 6 | typing.Literal["generated", "cloned", "premade", "professional", "famous", "high_quality"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/audio_native/types/audio_native_create_request_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AudioNativeCreateRequestApplyTextNormalization = typing.Union[ 6 | typing.Literal["auto", "on", "off", "apply_english"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/webhook_tool_api_schema_config_input_content_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WebhookToolApiSchemaConfigInputContentType = typing.Union[ 6 | typing.Literal["application/json", "application/x-www-form-urlencoded"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/webhook_tool_api_schema_config_output_content_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | WebhookToolApiSchemaConfigOutputContentType = typing.Union[ 6 | typing.Literal["application/json", "application/x-www-form-urlencoded"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_transcript_other_tools_result_common_model_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationHistoryTranscriptOtherToolsResultCommonModelType = typing.Union[ 6 | typing.Literal["client", "webhook", "mcp"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/text_to_speech/types/body_text_to_speech_stream_with_timestamps_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyTextToSpeechStreamWithTimestampsApplyTextNormalization = typing.Union[ 6 | typing.Literal["auto", "on", "off"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/body_generate_a_random_voice_v_1_voice_generation_generate_voice_post_gender.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender = typing.Union[ 6 | typing.Literal["female", "male"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/text_to_dialogue/types/body_text_to_dialogue_full_with_timestamps_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyTextToDialogueFullWithTimestampsApplyTextNormalization = typing.Union[ 6 | typing.Literal["auto", "on", "off"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/body_generate_a_random_voice_v_1_voice_generation_generate_voice_post_age.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge = typing.Union[ 6 | typing.Literal["young", "middle_aged", "old"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/resource_metadata_response_model_anonymous_access_level_override.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ResourceMetadataResponseModelAnonymousAccessLevelOverride = typing.Union[ 6 | typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/speech_history_item_response_model_source.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SpeechHistoryItemResponseModelSource = typing.Union[ 6 | typing.Literal["TTS", "STS", "Projects", "PD", "AN", "Dubbing", "PlayAPI", "ConvAI", "VoiceGeneration"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/text_to_dialogue/types/body_text_to_dialogue_stream_with_timestamps_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyTextToDialogueStreamWithTimestampsApplyTextNormalization = typing.Union[ 6 | typing.Literal["auto", "on", "off"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/add_pronunciation_dictionary_response_model_permission_on_resource.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AddPronunciationDictionaryResponseModelPermissionOnResource = typing.Union[ 6 | typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/api_integration_webhook_overrides_input_request_headers_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_dynamic_variable import ConvAiDynamicVariable 6 | 7 | ApiIntegrationWebhookOverridesInputRequestHeadersValue = typing.Union[str, ConvAiDynamicVariable] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/workspace/members/types/body_update_member_v_1_workspace_members_post_workspace_role.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole = typing.Union[ 6 | typing.Literal["workspace_admin", "workspace_member"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/types/body_create_podcast_v_1_studio_podcasts_post_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization = typing.Union[ 6 | typing.Literal["auto", "on", "off", "apply_english"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/types/body_create_podcast_v_1_studio_podcasts_post_quality_preset.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyCreatePodcastV1StudioPodcastsPostQualityPreset = typing.Union[ 6 | typing.Literal["standard", "high", "highest", "ultra", "ultra_lossless"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/api_integration_webhook_overrides_output_request_headers_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_dynamic_variable import ConvAiDynamicVariable 6 | 7 | ApiIntegrationWebhookOverridesOutputRequestHeadersValue = typing.Union[str, ConvAiDynamicVariable] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_initiation_client_data_webhook_request_headers_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_secret_locator import ConvAiSecretLocator 6 | 7 | ConversationInitiationClientDataWebhookRequestHeadersValue = typing.Union[str, ConvAiSecretLocator] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/pronunciation_dictionary_version_response_model_permission_on_resource.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | PronunciationDictionaryVersionResponseModelPermissionOnResource = typing.Union[ 6 | typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_pronunciation_dictionary_metadata_response_model_permission_on_resource.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | GetPronunciationDictionaryMetadataResponseModelPermissionOnResource = typing.Union[ 6 | typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/twilio_edge_location.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TwilioEdgeLocation = typing.Union[ 6 | typing.Literal[ 7 | "ashburn", "dublin", "frankfurt", "sao-paulo", "singapore", "sydney", "tokyo", "umatilla", "roaming" 8 | ], 9 | typing.Any, 10 | ] 11 | -------------------------------------------------------------------------------- /src/elevenlabs/dubbing/transcript/types/transcript_get_transcript_for_dub_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ....types.dubbing_transcript_response_model import DubbingTranscriptResponseModel 6 | 7 | TranscriptGetTranscriptForDubResponse = typing.Union[DubbingTranscriptResponseModel, str] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/text_to_dialogue/types/body_text_to_dialogue_multi_voice_v_1_text_to_dialogue_post_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization = typing.Union[ 6 | typing.Literal["auto", "on", "off"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/custom_llm_request_headers_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_dynamic_variable import ConvAiDynamicVariable 6 | from .conv_ai_secret_locator import ConvAiSecretLocator 7 | 8 | CustomLlmRequestHeadersValue = typing.Union[str, ConvAiSecretLocator, ConvAiDynamicVariable] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/types/tts_conversational_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | TtsConversationalModel = typing.Union[ 6 | typing.Literal[ 7 | "eleven_turbo_v2", "eleven_turbo_v2_5", "eleven_flash_v2", "eleven_flash_v2_5", "eleven_multilingual_v2" 8 | ], 9 | typing.Any, 10 | ] 11 | -------------------------------------------------------------------------------- /src/elevenlabs/pronunciation_dictionaries/types/pronunciation_dictionaries_create_from_file_request_workspace_access.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | PronunciationDictionariesCreateFromFileRequestWorkspaceAccess = typing.Union[ 6 | typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/mcp_server_config_input_secret_token.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_secret_locator import ConvAiSecretLocator 6 | from .conv_ai_user_secret_db_model import ConvAiUserSecretDbModel 7 | 8 | McpServerConfigInputSecretToken = typing.Union[ConvAiSecretLocator, ConvAiUserSecretDbModel] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/types/mcp_server_config_output_secret_token.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_secret_locator import ConvAiSecretLocator 6 | from .conv_ai_user_secret_db_model import ConvAiUserSecretDbModel 7 | 8 | McpServerConfigOutputSecretToken = typing.Union[ConvAiSecretLocator, ConvAiUserSecretDbModel] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/twilio/types/body_register_a_twilio_call_and_return_twi_ml_v_1_convai_twilio_register_call_post_direction.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection = typing.Union[ 6 | typing.Literal["inbound", "outbound"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/workspace/resources/types/body_share_workspace_resource_v_1_workspace_resources_resource_id_share_post_role.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole = typing.Union[ 6 | typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/mcp_server_config_input_request_headers_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_dynamic_variable import ConvAiDynamicVariable 6 | from .conv_ai_secret_locator import ConvAiSecretLocator 7 | 8 | McpServerConfigInputRequestHeadersValue = typing.Union[str, ConvAiSecretLocator, ConvAiDynamicVariable] 9 | -------------------------------------------------------------------------------- /.github/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting Security Issues 2 | 3 | If you believe you have found a security vulnerability, we encourage you to let us know right away. 4 | 5 | We will investigate all legitimate reports and do our best to quickly fix the problem. 6 | 7 | ## Bug Bounty Program 8 | 9 | Please note that ElevenLabs does not offer cash-based rewards for vulnerability reports at this time. 10 | -------------------------------------------------------------------------------- /src/elevenlabs/text_to_dialogue/types/body_text_to_dialogue_multi_voice_streaming_v_1_text_to_dialogue_stream_post_apply_text_normalization.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization = typing.Union[ 6 | typing.Literal["auto", "on", "off"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/mcp_server_config_output_request_headers_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_dynamic_variable import ConvAiDynamicVariable 6 | from .conv_ai_secret_locator import ConvAiSecretLocator 7 | 8 | McpServerConfigOutputRequestHeadersValue = typing.Union[str, ConvAiSecretLocator, ConvAiDynamicVariable] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/errors/conflict_error.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ..core.api_error import ApiError 6 | 7 | 8 | class ConflictError(ApiError): 9 | def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): 10 | super().__init__(status_code=409, headers=headers, body=body) 11 | -------------------------------------------------------------------------------- /src/elevenlabs/errors/forbidden_error.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ..core.api_error import ApiError 6 | 7 | 8 | class ForbiddenError(ApiError): 9 | def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): 10 | super().__init__(status_code=403, headers=headers, body=body) 11 | -------------------------------------------------------------------------------- /src/elevenlabs/errors/not_found_error.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ..core.api_error import ApiError 6 | 7 | 8 | class NotFoundError(ApiError): 9 | def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): 10 | super().__init__(status_code=404, headers=headers, body=body) 11 | -------------------------------------------------------------------------------- /src/elevenlabs/errors/too_early_error.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ..core.api_error import ApiError 6 | 7 | 8 | class TooEarlyError(ApiError): 9 | def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): 10 | super().__init__(status_code=425, headers=headers, body=body) 11 | -------------------------------------------------------------------------------- /src/elevenlabs/errors/unauthorized_error.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ..core.api_error import ApiError 6 | 7 | 8 | class UnauthorizedError(ApiError): 9 | def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): 10 | super().__init__(status_code=401, headers=headers, body=body) 11 | -------------------------------------------------------------------------------- /src/elevenlabs/environment.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import enum 4 | 5 | 6 | class ElevenLabsEnvironment(enum.Enum): 7 | PRODUCTION = "https://api.elevenlabs.io" 8 | PRODUCTION_US = "https://api.us.elevenlabs.io" 9 | PRODUCTION_EU = "https://api.eu.residency.elevenlabs.io" 10 | PRODUCTION_INDIA = "https://api.in.residency.elevenlabs.io" 11 | -------------------------------------------------------------------------------- /src/elevenlabs/types/webhook_tool_api_schema_config_input_request_headers_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_dynamic_variable import ConvAiDynamicVariable 6 | from .conv_ai_secret_locator import ConvAiSecretLocator 7 | 8 | WebhookToolApiSchemaConfigInputRequestHeadersValue = typing.Union[str, ConvAiSecretLocator, ConvAiDynamicVariable] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/types/webhook_tool_api_schema_config_output_request_headers_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .conv_ai_dynamic_variable import ConvAiDynamicVariable 6 | from .conv_ai_secret_locator import ConvAiSecretLocator 7 | 8 | WebhookToolApiSchemaConfigOutputRequestHeadersValue = typing.Union[str, ConvAiSecretLocator, ConvAiDynamicVariable] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/core/remove_none_from_dict.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from typing import Any, Dict, Mapping, Optional 4 | 5 | 6 | def remove_none_from_dict(original: Mapping[str, Optional[Any]]) -> Dict[str, Any]: 7 | new: Dict[str, Any] = {} 8 | for key, value in original.items(): 9 | if value is not None: 10 | new[key] = value 11 | return new 12 | -------------------------------------------------------------------------------- /src/elevenlabs/pronunciation_dictionaries/types/body_add_a_pronunciation_dictionary_v_1_pronunciation_dictionaries_add_from_rules_post_workspace_access.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPostWorkspaceAccess = typing.Union[ 6 | typing.Literal["admin", "editor", "commenter", "viewer"], typing.Any 7 | ] 8 | -------------------------------------------------------------------------------- /src/elevenlabs/types/object_override_input_properties_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from __future__ import annotations 4 | 5 | import typing 6 | 7 | from .literal_override import LiteralOverride 8 | 9 | if typing.TYPE_CHECKING: 10 | from .object_override_input import ObjectOverrideInput 11 | ObjectOverrideInputPropertiesValue = typing.Union[LiteralOverride, "ObjectOverrideInput"] 12 | -------------------------------------------------------------------------------- /src/elevenlabs/types/object_override_output_properties_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from __future__ import annotations 4 | 5 | import typing 6 | 7 | from .literal_override import LiteralOverride 8 | 9 | if typing.TYPE_CHECKING: 10 | from .object_override_output import ObjectOverrideOutput 11 | ObjectOverrideOutputPropertiesValue = typing.Union[LiteralOverride, "ObjectOverrideOutput"] 12 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/mcp_servers/types/mcp_server_config_update_request_model_request_headers_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ....types.conv_ai_dynamic_variable import ConvAiDynamicVariable 6 | from ....types.conv_ai_secret_locator import ConvAiSecretLocator 7 | 8 | McpServerConfigUpdateRequestModelRequestHeadersValue = typing.Union[str, ConvAiSecretLocator, ConvAiDynamicVariable] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/errors/bad_request_error.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ..core.api_error import ApiError 6 | from ..types.bad_request_error_body import BadRequestErrorBody 7 | 8 | 9 | class BadRequestError(ApiError): 10 | def __init__(self, body: BadRequestErrorBody, headers: typing.Optional[typing.Dict[str, str]] = None): 11 | super().__init__(status_code=400, headers=headers, body=body) 12 | -------------------------------------------------------------------------------- /src/elevenlabs/speech_to_text/transcripts/types/transcripts_get_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ....types.multichannel_speech_to_text_response_model import MultichannelSpeechToTextResponseModel 6 | from ....types.speech_to_text_chunk_response_model import SpeechToTextChunkResponseModel 7 | 8 | TranscriptsGetResponse = typing.Union[SpeechToTextChunkResponseModel, MultichannelSpeechToTextResponseModel] 9 | -------------------------------------------------------------------------------- /src/elevenlabs/types/authorization_method.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | AuthorizationMethod = typing.Union[ 6 | typing.Literal[ 7 | "invalid", 8 | "public", 9 | "authorization_header", 10 | "signed_url", 11 | "shareable_link", 12 | "livekit_token", 13 | "livekit_token_website", 14 | "genesys_api_key", 15 | ], 16 | typing.Any, 17 | ] 18 | -------------------------------------------------------------------------------- /src/elevenlabs/types/metric_type.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | MetricType = typing.Union[ 6 | typing.Literal[ 7 | "credits", 8 | "tts_characters", 9 | "minutes_used", 10 | "request_count", 11 | "ttfb_avg", 12 | "ttfb_p95", 13 | "fiat_units_spent", 14 | "concurrency", 15 | "concurrency_average", 16 | ], 17 | typing.Any, 18 | ] 19 | -------------------------------------------------------------------------------- /src/elevenlabs/types/safety_rule.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | SafetyRule = typing.Union[ 6 | typing.Literal[ 7 | "sexual_minors", 8 | "forget_moderation", 9 | "extremism", 10 | "scam_fraud", 11 | "political", 12 | "self_harm", 13 | "illegal_distribution_medical", 14 | "sexual_adults", 15 | "unknown", 16 | ], 17 | typing.Any, 18 | ] 19 | -------------------------------------------------------------------------------- /src/elevenlabs/errors/unprocessable_entity_error.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ..core.api_error import ApiError 6 | from ..types.http_validation_error import HttpValidationError 7 | 8 | 9 | class UnprocessableEntityError(ApiError): 10 | def __init__(self, body: HttpValidationError, headers: typing.Optional[typing.Dict[str, str]] = None): 11 | super().__init__(status_code=422, headers=headers, body=body) 12 | -------------------------------------------------------------------------------- /src/elevenlabs/tokens/raw_client.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper 4 | 5 | 6 | class RawTokensClient: 7 | def __init__(self, *, client_wrapper: SyncClientWrapper): 8 | self._client_wrapper = client_wrapper 9 | 10 | 11 | class AsyncRawTokensClient: 12 | def __init__(self, *, client_wrapper: AsyncClientWrapper): 13 | self._client_wrapper = client_wrapper 14 | -------------------------------------------------------------------------------- /src/elevenlabs/types/prompt_agent_api_model_workflow_override_input_backup_llm_config.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .backup_llm_default import BackupLlmDefault 6 | from .backup_llm_disabled import BackupLlmDisabled 7 | from .backup_llm_override import BackupLlmOverride 8 | 9 | PromptAgentApiModelWorkflowOverrideInputBackupLlmConfig = typing.Union[ 10 | BackupLlmDefault, BackupLlmDisabled, BackupLlmOverride 11 | ] 12 | -------------------------------------------------------------------------------- /src/elevenlabs/types/prompt_agent_api_model_workflow_override_output_backup_llm_config.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .backup_llm_default import BackupLlmDefault 6 | from .backup_llm_disabled import BackupLlmDisabled 7 | from .backup_llm_override import BackupLlmOverride 8 | 9 | PromptAgentApiModelWorkflowOverrideOutputBackupLlmConfig = typing.Union[ 10 | BackupLlmDefault, BackupLlmDisabled, BackupLlmOverride 11 | ] 12 | -------------------------------------------------------------------------------- /tests/test_recursive_models.py: -------------------------------------------------------------------------------- 1 | from elevenlabs import AgentWorkflowRequestModel, ObjectJsonSchemaPropertyInput, ObjectJsonSchemaPropertyOutput 2 | 3 | 4 | def test_recursive_models(): 5 | # Should be able to import and use the recursive types without PydanticUserError 6 | # ObjectJsonSchemaPropertyInput has no required fields, so it can be instantiated 7 | ObjectJsonSchemaPropertyInput() 8 | 9 | ObjectJsonSchemaPropertyOutput() 10 | 11 | AgentWorkflowRequestModel() 12 | -------------------------------------------------------------------------------- /src/elevenlabs/types/invoice_response_model_payment_intent_status.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | InvoiceResponseModelPaymentIntentStatus = typing.Union[ 6 | typing.Literal[ 7 | "canceled", 8 | "processing", 9 | "requires_action", 10 | "requires_capture", 11 | "requires_confirmation", 12 | "requires_payment_method", 13 | "succeeded", 14 | ], 15 | typing.Any, 16 | ] 17 | -------------------------------------------------------------------------------- /src/elevenlabs/core/http_sse/_models.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import json 4 | from dataclasses import dataclass 5 | from typing import Any, Optional 6 | 7 | 8 | @dataclass(frozen=True) 9 | class ServerSentEvent: 10 | event: str = "message" 11 | data: str = "" 12 | id: str = "" 13 | retry: Optional[int] = None 14 | 15 | def json(self) -> Any: 16 | """Parse the data field as JSON.""" 17 | return json.loads(self.data) 18 | -------------------------------------------------------------------------------- /src/elevenlabs/voices/samples/raw_client.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper 4 | 5 | 6 | class RawSamplesClient: 7 | def __init__(self, *, client_wrapper: SyncClientWrapper): 8 | self._client_wrapper = client_wrapper 9 | 10 | 11 | class AsyncRawSamplesClient: 12 | def __init__(self, *, client_wrapper: AsyncClientWrapper): 13 | self._client_wrapper = client_wrapper 14 | -------------------------------------------------------------------------------- /src/elevenlabs/workspace/raw_client.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper 4 | 5 | 6 | class RawWorkspaceClient: 7 | def __init__(self, *, client_wrapper: SyncClientWrapper): 8 | self._client_wrapper = client_wrapper 9 | 10 | 11 | class AsyncRawWorkspaceClient: 12 | def __init__(self, *, client_wrapper: AsyncClientWrapper): 13 | self._client_wrapper = client_wrapper 14 | -------------------------------------------------------------------------------- /src/elevenlabs/types/extended_subscription_response_model_pending_change.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .pending_cancellation_response_model import PendingCancellationResponseModel 6 | from .pending_subscription_switch_response_model import PendingSubscriptionSwitchResponseModel 7 | 8 | ExtendedSubscriptionResponseModelPendingChange = typing.Union[ 9 | PendingSubscriptionSwitchResponseModel, PendingCancellationResponseModel 10 | ] 11 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/analytics/raw_client.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper 4 | 5 | 6 | class RawAnalyticsClient: 7 | def __init__(self, *, client_wrapper: SyncClientWrapper): 8 | self._client_wrapper = client_wrapper 9 | 10 | 11 | class AsyncRawAnalyticsClient: 12 | def __init__(self, *, client_wrapper: AsyncClientWrapper): 13 | self._client_wrapper = client_wrapper 14 | -------------------------------------------------------------------------------- /src/elevenlabs/conversational_ai/dashboard/raw_client.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper 4 | 5 | 6 | class RawDashboardClient: 7 | def __init__(self, *, client_wrapper: SyncClientWrapper): 8 | self._client_wrapper = client_wrapper 9 | 10 | 11 | class AsyncRawDashboardClient: 12 | def __init__(self, *, client_wrapper: AsyncClientWrapper): 13 | self._client_wrapper = client_wrapper 14 | -------------------------------------------------------------------------------- /src/elevenlabs/types/output_format.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | OutputFormat = typing.Union[ 6 | typing.Literal[ 7 | "mp3_22050_32", 8 | "mp3_44100_32", 9 | "mp3_44100_64", 10 | "mp3_44100_96", 11 | "mp3_44100_128", 12 | "mp3_44100_192", 13 | "pcm_16000", 14 | "pcm_22050", 15 | "pcm_24000", 16 | "pcm_44100", 17 | "ulaw_8000", 18 | ], 19 | typing.Any, 20 | ] 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/pending_subscription_switch_response_model_next_tier.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | PendingSubscriptionSwitchResponseModelNextTier = typing.Union[ 6 | typing.Literal[ 7 | "free", 8 | "starter", 9 | "creator", 10 | "pro", 11 | "growing_business", 12 | "scale_2024_08_10", 13 | "grant_tier_1_2025_07_23", 14 | "grant_tier_2_2025_07_23", 15 | "trial", 16 | "enterprise", 17 | ], 18 | typing.Any, 19 | ] 20 | -------------------------------------------------------------------------------- /.fernignore: -------------------------------------------------------------------------------- 1 | # Specify files that shouldn't be modified by Fern 2 | 3 | # Ignore manually created SDK wrappers 4 | src/elevenlabs/client.py 5 | src/elevenlabs/conversational_ai/conversation.py 6 | src/elevenlabs/conversational_ai/default_audio_interface.py 7 | src/elevenlabs/realtime_tts.py 8 | src/elevenlabs/play.py 9 | src/elevenlabs/webhooks_custom.py 10 | src/elevenlabs/music_custom.py 11 | src/elevenlabs/speech_to_text_custom.py 12 | src/elevenlabs/realtime/ 13 | 14 | # Ignore CI files 15 | .github/ 16 | 17 | README.md 18 | assets/ 19 | 20 | # Ignore custom tests 21 | tests/ 22 | -------------------------------------------------------------------------------- /src/elevenlabs/core/force_multipart.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from typing import Any, Dict 4 | 5 | 6 | class ForceMultipartDict(Dict[str, Any]): 7 | """ 8 | A dictionary subclass that always evaluates to True in boolean contexts. 9 | 10 | This is used to force multipart/form-data encoding in HTTP requests even when 11 | the dictionary is empty, which would normally evaluate to False. 12 | """ 13 | 14 | def __bool__(self) -> bool: 15 | return True 16 | 17 | 18 | FORCE_MULTIPART = ForceMultipartDict() 19 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_initiation_source.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | ConversationInitiationSource = typing.Union[ 6 | typing.Literal[ 7 | "unknown", 8 | "android_sdk", 9 | "node_js_sdk", 10 | "react_native_sdk", 11 | "react_sdk", 12 | "js_sdk", 13 | "python_sdk", 14 | "widget", 15 | "sip_trunk", 16 | "twilio", 17 | "genesys", 18 | "swift_sdk", 19 | "whatsapp", 20 | "flutter_sdk", 21 | ], 22 | typing.Any, 23 | ] 24 | -------------------------------------------------------------------------------- /tests/test_ttsfx.py: -------------------------------------------------------------------------------- 1 | from elevenlabs import play 2 | from elevenlabs.client import ElevenLabs 3 | 4 | from .utils import IN_GITHUB 5 | 6 | 7 | def test_text_to_sound_effects_convert() -> None: 8 | """Test basic sound-effect generation.""" 9 | client = ElevenLabs() 10 | audio_generator = client.text_to_sound_effects.convert( 11 | text="Hypnotic throbbing sound effect. Increases in imtensity.", 12 | duration_seconds=2, 13 | ) 14 | audio = b"".join(audio_generator) 15 | assert isinstance(audio, bytes), "TTS should return bytes" 16 | if not IN_GITHUB: 17 | play(audio) 18 | -------------------------------------------------------------------------------- /src/elevenlabs/speech_to_text/types/speech_to_text_convert_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ...types.multichannel_speech_to_text_response_model import MultichannelSpeechToTextResponseModel 6 | from ...types.speech_to_text_chunk_response_model import SpeechToTextChunkResponseModel 7 | from ...types.speech_to_text_webhook_response_model import SpeechToTextWebhookResponseModel 8 | 9 | SpeechToTextConvertResponse = typing.Union[ 10 | SpeechToTextChunkResponseModel, MultichannelSpeechToTextResponseModel, SpeechToTextWebhookResponseModel 11 | ] 12 | -------------------------------------------------------------------------------- /src/elevenlabs/studio/types/body_create_podcast_v_1_studio_podcasts_post_source.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from ...types.podcast_text_source import PodcastTextSource 6 | from ...types.podcast_url_source import PodcastUrlSource 7 | from .body_create_podcast_v_1_studio_podcasts_post_source_two_item import ( 8 | BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem, 9 | ) 10 | 11 | BodyCreatePodcastV1StudioPodcastsPostSource = typing.Union[ 12 | PodcastTextSource, PodcastUrlSource, typing.List[BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem] 13 | ] 14 | -------------------------------------------------------------------------------- /src/elevenlabs/types/array_json_schema_property_input_items.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from __future__ import annotations 4 | 5 | import typing 6 | 7 | from .literal_json_schema_property import LiteralJsonSchemaProperty 8 | 9 | if typing.TYPE_CHECKING: 10 | from .array_json_schema_property_input import ArrayJsonSchemaPropertyInput 11 | from .object_json_schema_property_input import ObjectJsonSchemaPropertyInput 12 | ArrayJsonSchemaPropertyInputItems = typing.Union[ 13 | LiteralJsonSchemaProperty, "ObjectJsonSchemaPropertyInput", "ArrayJsonSchemaPropertyInput" 14 | ] 15 | -------------------------------------------------------------------------------- /src/elevenlabs/types/array_json_schema_property_output_items.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from __future__ import annotations 4 | 5 | import typing 6 | 7 | from .literal_json_schema_property import LiteralJsonSchemaProperty 8 | 9 | if typing.TYPE_CHECKING: 10 | from .array_json_schema_property_output import ArrayJsonSchemaPropertyOutput 11 | from .object_json_schema_property_output import ObjectJsonSchemaPropertyOutput 12 | ArrayJsonSchemaPropertyOutputItems = typing.Union[ 13 | LiteralJsonSchemaProperty, "ObjectJsonSchemaPropertyOutput", "ArrayJsonSchemaPropertyOutput" 14 | ] 15 | -------------------------------------------------------------------------------- /src/elevenlabs/types/vad_config.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class VadConfig(UncheckedBaseModel): 11 | if IS_PYDANTIC_V2: 12 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 13 | else: 14 | 15 | class Config: 16 | frozen = True 17 | smart_union = True 18 | extra = pydantic.Extra.allow 19 | -------------------------------------------------------------------------------- /src/elevenlabs/types/breakdown_types.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | BreakdownTypes = typing.Union[ 6 | typing.Literal[ 7 | "none", 8 | "voice", 9 | "voice_multiplier", 10 | "user", 11 | "groups", 12 | "api_keys", 13 | "all_api_keys", 14 | "product_type", 15 | "model", 16 | "resource", 17 | "request_queue", 18 | "region", 19 | "subresource_id", 20 | "reporting_workspace_id", 21 | "has_api_key", 22 | "request_source", 23 | ], 24 | typing.Any, 25 | ] 26 | -------------------------------------------------------------------------------- /src/elevenlabs/types/object_json_schema_property_input_properties_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from __future__ import annotations 4 | 5 | import typing 6 | 7 | from .literal_json_schema_property import LiteralJsonSchemaProperty 8 | 9 | if typing.TYPE_CHECKING: 10 | from .array_json_schema_property_input import ArrayJsonSchemaPropertyInput 11 | from .object_json_schema_property_input import ObjectJsonSchemaPropertyInput 12 | ObjectJsonSchemaPropertyInputPropertiesValue = typing.Union[ 13 | LiteralJsonSchemaProperty, "ObjectJsonSchemaPropertyInput", "ArrayJsonSchemaPropertyInput" 14 | ] 15 | -------------------------------------------------------------------------------- /src/elevenlabs/types/end_call_tool_config.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class EndCallToolConfig(UncheckedBaseModel): 11 | if IS_PYDANTIC_V2: 12 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 13 | else: 14 | 15 | class Config: 16 | frozen = True 17 | smart_union = True 18 | extra = pydantic.Extra.allow 19 | -------------------------------------------------------------------------------- /src/elevenlabs/types/object_json_schema_property_output_properties_value.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from __future__ import annotations 4 | 5 | import typing 6 | 7 | from .literal_json_schema_property import LiteralJsonSchemaProperty 8 | 9 | if typing.TYPE_CHECKING: 10 | from .array_json_schema_property_output import ArrayJsonSchemaPropertyOutput 11 | from .object_json_schema_property_output import ObjectJsonSchemaPropertyOutput 12 | ObjectJsonSchemaPropertyOutputPropertiesValue = typing.Union[ 13 | LiteralJsonSchemaProperty, "ObjectJsonSchemaPropertyOutput", "ArrayJsonSchemaPropertyOutput" 14 | ] 15 | -------------------------------------------------------------------------------- /src/elevenlabs/realtime/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Real-time speech-to-text WebSocket helpers for ElevenLabs API. 3 | 4 | This module provides classes for streaming audio to the ElevenLabs 5 | speech-to-text API and receiving real-time transcription results. 6 | """ 7 | 8 | from .connection import RealtimeConnection, RealtimeEvents 9 | from .scribe import ScribeRealtime, AudioFormat, CommitStrategy, RealtimeAudioOptions, RealtimeUrlOptions 10 | 11 | __all__ = [ 12 | "RealtimeConnection", 13 | "RealtimeEvents", 14 | "ScribeRealtime", 15 | "AudioFormat", 16 | "CommitStrategy", 17 | "RealtimeAudioOptions", 18 | "RealtimeUrlOptions", 19 | ] 20 | 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/language_detection_tool_config.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class LanguageDetectionToolConfig(UncheckedBaseModel): 11 | if IS_PYDANTIC_V2: 12 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 13 | else: 14 | 15 | class Config: 16 | frozen = True 17 | smart_union = True 18 | extra = pydantic.Extra.allow 19 | -------------------------------------------------------------------------------- /src/elevenlabs/types/vad_config_workflow_override.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class VadConfigWorkflowOverride(UncheckedBaseModel): 11 | if IS_PYDANTIC_V2: 12 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 13 | else: 14 | 15 | class Config: 16 | frozen = True 17 | smart_union = True 18 | extra = pydantic.Extra.allow 19 | -------------------------------------------------------------------------------- /src/elevenlabs/types/metric_record.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class MetricRecord(UncheckedBaseModel): 11 | elapsed_time: float 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/segment_dub_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SegmentDubResponse(UncheckedBaseModel): 11 | version: int 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/token_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class TokenResponseModel(UncheckedBaseModel): 11 | token: str 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/language_added_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class LanguageAddedResponse(UncheckedBaseModel): 11 | version: int 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/position_output.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class PositionOutput(UncheckedBaseModel): 11 | x: float 12 | y: float 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/segment_delete_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SegmentDeleteResponse(UncheckedBaseModel): 11 | version: int 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/segment_update_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SegmentUpdateResponse(UncheckedBaseModel): 11 | version: int 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/time_range.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class TimeRange(UncheckedBaseModel): 11 | start_ms: int 12 | end_ms: int 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/workflow_tool_locator.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class WorkflowToolLocator(UncheckedBaseModel): 11 | tool_id: str 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /tests/test_voices.py: -------------------------------------------------------------------------------- 1 | from elevenlabs import Voice, VoiceSettings, ElevenLabs 2 | from .utils import DEFAULT_VOICE 3 | 4 | 5 | def test_get_voice(): 6 | client = ElevenLabs() 7 | voice_id = DEFAULT_VOICE 8 | 9 | voice = client.voices.get(voice_id) 10 | assert isinstance(voice, Voice) 11 | 12 | assert voice.voice_id == voice_id 13 | if voice.settings is not None: 14 | assert isinstance(voice.settings, VoiceSettings) 15 | 16 | 17 | def test_get_voices(): 18 | client = ElevenLabs() 19 | response = client.voices.search() 20 | 21 | assert len(response.voices) > 0 22 | 23 | for voice in response.voices: 24 | assert isinstance(voice, Voice) 25 | -------------------------------------------------------------------------------- /src/elevenlabs/types/rag_document_index_usage.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class RagDocumentIndexUsage(UncheckedBaseModel): 11 | used_bytes: int 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/speaker_updated_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SpeakerUpdatedResponse(UncheckedBaseModel): 11 | version: int 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/create_unit_test_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class CreateUnitTestResponseModel(UncheckedBaseModel): 11 | id: str 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/segment_migration_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SegmentMigrationResponse(UncheckedBaseModel): 11 | version: int 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/segment_translation_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SegmentTranslationResponse(UncheckedBaseModel): 11 | version: int 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/sip_uri_transfer_destination.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SipUriTransferDestination(UncheckedBaseModel): 11 | sip_uri: str 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/match_anything_parameter_evaluation_strategy.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class MatchAnythingParameterEvaluationStrategy(UncheckedBaseModel): 11 | if IS_PYDANTIC_V2: 12 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 13 | else: 14 | 15 | class Config: 16 | frozen = True 17 | smart_union = True 18 | extra = pydantic.Extra.allow 19 | -------------------------------------------------------------------------------- /src/elevenlabs/types/segment_transcription_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SegmentTranscriptionResponse(UncheckedBaseModel): 11 | version: int 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/dashboard_call_success_chart_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class DashboardCallSuccessChartModel(UncheckedBaseModel): 11 | name: str 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/phone_number_transfer_destination.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class PhoneNumberTransferDestination(UncheckedBaseModel): 11 | phone_number: str 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/prompt_agent_db_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class PromptAgentDbModel(UncheckedBaseModel): 11 | tools: typing.Optional[typing.Any] = None 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/word_timestamp.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class WordTimestamp(UncheckedBaseModel): 11 | word: str 12 | start_ms: int 13 | end_ms: int 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/types/segment_create_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SegmentCreateResponse(UncheckedBaseModel): 11 | version: int 12 | new_segment: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/speaker_created_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SpeakerCreatedResponse(UncheckedBaseModel): 11 | version: int 12 | speaker_id: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/add_knowledge_base_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AddKnowledgeBaseResponseModel(UncheckedBaseModel): 11 | id: str 12 | name: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_signed_url_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ConversationSignedUrlResponseModel(UncheckedBaseModel): 11 | signed_url: str 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/dubbing_render_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class DubbingRenderResponseModel(UncheckedBaseModel): 11 | version: int 12 | render_id: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/language_preset_translation.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class LanguagePresetTranslation(UncheckedBaseModel): 11 | source_hash: str 12 | text: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/backup_llm_default.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class BackupLlmDefault(UncheckedBaseModel): 11 | preference: typing.Optional[typing.Literal["default"]] = None 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/dashboard_criteria_chart_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class DashboardCriteriaChartModel(UncheckedBaseModel): 11 | name: str 12 | criteria_id: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/core/api_error.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | from typing import Any, Dict, Optional 4 | 5 | 6 | class ApiError(Exception): 7 | headers: Optional[Dict[str, str]] 8 | status_code: Optional[int] 9 | body: Any 10 | 11 | def __init__( 12 | self, 13 | *, 14 | headers: Optional[Dict[str, str]] = None, 15 | status_code: Optional[int] = None, 16 | body: Any = None, 17 | ) -> None: 18 | self.headers = headers 19 | self.status_code = status_code 20 | self.body = body 21 | 22 | def __str__(self) -> str: 23 | return f"headers: {self.headers}, status_code: {self.status_code}, body: {self.body}" 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/backup_llm_disabled.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class BackupLlmDisabled(UncheckedBaseModel): 11 | preference: typing.Optional[typing.Literal["disabled"]] = None 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/position_input.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class PositionInput(UncheckedBaseModel): 11 | x: typing.Optional[float] = None 12 | y: typing.Optional[float] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/sip_uri_dynamic_variable_transfer_destination.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SipUriDynamicVariableTransferDestination(UncheckedBaseModel): 11 | sip_uri: str 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/attached_test_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AttachedTestModel(UncheckedBaseModel): 11 | test_id: str 12 | workflow_node_id: typing.Optional[str] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_agent_knowledgebase_size_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class GetAgentKnowledgebaseSizeResponseModel(UncheckedBaseModel): 11 | number_of_pages: float 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/rag_chunk_metadata.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class RagChunkMetadata(UncheckedBaseModel): 11 | document_id: str 12 | chunk_id: str 13 | vector_distance: float 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/types/voice_generation_parameter_option_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class VoiceGenerationParameterOptionResponse(UncheckedBaseModel): 11 | name: str 12 | code: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/chapter_content_block_tts_node_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ChapterContentBlockTtsNodeResponseModel(UncheckedBaseModel): 11 | voice_id: str 12 | text: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/dashboard_data_collection_chart_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class DashboardDataCollectionChartModel(UncheckedBaseModel): 11 | name: str 12 | data_collection_id: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/phone_number_dynamic_variable_transfer_destination.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class PhoneNumberDynamicVariableTransferDestination(UncheckedBaseModel): 11 | phone_number: str 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/bad_request_error_body.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class BadRequestErrorBody(UncheckedBaseModel): 11 | error: typing.Optional[str] = None 12 | message: typing.Optional[str] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_transcript_tool_call_client_details.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ConversationHistoryTranscriptToolCallClientDetails(UncheckedBaseModel): 11 | parameters: str 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/segment_subtitle_frame.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SegmentSubtitleFrame(UncheckedBaseModel): 11 | start_time: float 12 | end_time: float 13 | lines: typing.List[str] 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/service_accounts/api_keys/types/body_create_service_account_api_key_v_1_service_accounts_service_account_user_id_api_keys_post_permissions.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | from .body_create_service_account_api_key_v_1_service_accounts_service_account_user_id_api_keys_post_permissions_zero_item import ( 6 | BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem, 7 | ) 8 | 9 | BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions = typing.Union[ 10 | typing.List[BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem], 11 | typing.Literal["all"], 12 | ] 13 | -------------------------------------------------------------------------------- /src/elevenlabs/types/add_project_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .project_response import ProjectResponse 9 | 10 | 11 | class AddProjectResponseModel(UncheckedBaseModel): 12 | project: ProjectResponse 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/agent_failure_response_example.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AgentFailureResponseExample(UncheckedBaseModel): 11 | response: str 12 | type: typing.Literal["failure"] = "failure" 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/ast_string_node_input.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AstStringNodeInput(UncheckedBaseModel): 11 | value: str = pydantic.Field() 12 | """ 13 | Value of this literal. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_batch_call_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ConversationHistoryBatchCallModel(UncheckedBaseModel): 11 | batch_call_id: str 12 | batch_call_recipient_id: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/edit_project_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .project_response import ProjectResponse 9 | 10 | 11 | class EditProjectResponseModel(UncheckedBaseModel): 12 | project: ProjectResponse 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/post_agent_avatar_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class PostAgentAvatarResponseModel(UncheckedBaseModel): 11 | agent_id: str 12 | avatar_url: typing.Optional[str] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/agent_successful_response_example.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AgentSuccessfulResponseExample(UncheckedBaseModel): 11 | response: str 12 | type: typing.Literal["success"] = "success" 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/allowlist_item.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AllowlistItem(UncheckedBaseModel): 11 | hostname: str = pydantic.Field() 12 | """ 13 | The hostname of the allowed origin 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/ast_boolean_node_input.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AstBooleanNodeInput(UncheckedBaseModel): 11 | value: bool = pydantic.Field() 12 | """ 13 | Value of this literal. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/ast_boolean_node_output.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AstBooleanNodeOutput(UncheckedBaseModel): 11 | value: bool = pydantic.Field() 12 | """ 13 | Value of this literal. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/ast_number_node_input.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AstNumberNodeInput(UncheckedBaseModel): 11 | value: float = pydantic.Field() 12 | """ 13 | Value of this literal. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/ast_number_node_output.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AstNumberNodeOutput(UncheckedBaseModel): 11 | value: float = pydantic.Field() 12 | """ 13 | Value of this literal. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/ast_string_node_output.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AstStringNodeOutput(UncheckedBaseModel): 11 | value: str = pydantic.Field() 12 | """ 13 | Value of this literal. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_error_common_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ConversationHistoryErrorCommonModel(UncheckedBaseModel): 11 | code: int 12 | reason: typing.Optional[str] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_rag_usage_common_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ConversationHistoryRagUsageCommonModel(UncheckedBaseModel): 11 | usage_count: int 12 | embedding_model: str 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_chapters_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .chapter_response import ChapterResponse 9 | 10 | 11 | class GetChaptersResponse(UncheckedBaseModel): 12 | chapters: typing.List[ChapterResponse] 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/knowledge_base_document_chunk_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class KnowledgeBaseDocumentChunkResponseModel(UncheckedBaseModel): 11 | id: str 12 | name: str 13 | content: str 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/types/llm_tokens_category_usage.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class LlmTokensCategoryUsage(UncheckedBaseModel): 11 | tokens: typing.Optional[int] = None 12 | price: typing.Optional[float] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/mcp_server_metadata_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class McpServerMetadataResponseModel(UncheckedBaseModel): 11 | created_at: int 12 | owner_user_id: typing.Optional[str] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/threshold_guardrail.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ThresholdGuardrail(UncheckedBaseModel): 11 | is_enabled: typing.Optional[bool] = None 12 | threshold: typing.Optional[float] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/workflow_tool_edge_step_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class WorkflowToolEdgeStepModel(UncheckedBaseModel): 11 | step_latency_secs: float 12 | edge_id: str 13 | target_node_id: str 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/types/add_voice_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AddVoiceResponseModel(UncheckedBaseModel): 11 | voice_id: str = pydantic.Field() 12 | """ 13 | The ID of the voice. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/feature_status_common_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class FeatureStatusCommonModel(UncheckedBaseModel): 11 | enabled: typing.Optional[bool] = None 12 | used: typing.Optional[bool] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/image_avatar.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ImageAvatar(UncheckedBaseModel): 11 | url: typing.Optional[str] = pydantic.Field(default=None) 12 | """ 13 | The URL of the avatar 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/tool_mock_config.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ToolMockConfig(UncheckedBaseModel): 11 | default_return_value: typing.Optional[str] = None 12 | default_is_error: typing.Optional[bool] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/astllm_node_input.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AstllmNodeInput(UncheckedBaseModel): 11 | prompt: str = pydantic.Field() 12 | """ 13 | The prompt to evaluate to a boolean value. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/caption_style_template_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class CaptionStyleTemplateModel(UncheckedBaseModel): 11 | key: str 12 | label: str 13 | requires_high_fps: typing.Optional[bool] = None 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/types/history_item_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class HistoryItemResponse(UncheckedBaseModel): 11 | state: typing.Optional[typing.Any] = None 12 | voice_category: typing.Optional[typing.Any] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/llm_usage_calculator_llm_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .llm import Llm 9 | 10 | 11 | class LlmUsageCalculatorLlmResponseModel(UncheckedBaseModel): 12 | llm: Llm 13 | price_per_minute: float 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/types/transfer_to_agent_tool_config.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .agent_transfer import AgentTransfer 9 | 10 | 11 | class TransferToAgentToolConfig(UncheckedBaseModel): 12 | transfers: typing.List[AgentTransfer] 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/user_feedback.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .user_feedback_score import UserFeedbackScore 9 | 10 | 11 | class UserFeedback(UncheckedBaseModel): 12 | score: UserFeedbackScore 13 | time_in_call_secs: int 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/types/agent_metadata.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AgentMetadata(UncheckedBaseModel): 11 | agent_id: str 12 | branch_id: typing.Optional[str] = None 13 | workflow_node_id: typing.Optional[str] = None 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/types/astllm_node_output.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AstllmNodeOutput(UncheckedBaseModel): 11 | prompt: str = pydantic.Field() 12 | """ 13 | The prompt to evaluate to a boolean value. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conv_ai_dynamic_variable.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ConvAiDynamicVariable(UncheckedBaseModel): 11 | """ 12 | Used to reference a dynamic variable. 13 | """ 14 | 15 | variable_name: str 16 | 17 | if IS_PYDANTIC_V2: 18 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 19 | else: 20 | 21 | class Config: 22 | frozen = True 23 | smart_union = True 24 | extra = pydantic.Extra.allow 25 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_history_eleven_assistant_common_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ConversationHistoryElevenAssistantCommonModel(UncheckedBaseModel): 11 | is_eleven_assistant: typing.Optional[bool] = None 12 | 13 | if IS_PYDANTIC_V2: 14 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 15 | else: 16 | 17 | class Config: 18 | frozen = True 19 | smart_union = True 20 | extra = pydantic.Extra.allow 21 | -------------------------------------------------------------------------------- /src/elevenlabs/types/create_agent_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class CreateAgentResponseModel(UncheckedBaseModel): 11 | agent_id: str = pydantic.Field() 12 | """ 13 | ID of the created agent 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/similar_voices_for_speaker_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .similar_voice import SimilarVoice 9 | 10 | 11 | class SimilarVoicesForSpeakerResponse(UncheckedBaseModel): 12 | voices: typing.List[SimilarVoice] 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/test_tool_result_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class TestToolResultModel(UncheckedBaseModel): 11 | status: typing.Optional[typing.Literal["success"]] = None 12 | reason: typing.Optional[str] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/url_avatar.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class UrlAvatar(UncheckedBaseModel): 11 | custom_url: typing.Optional[str] = pydantic.Field(default=None) 12 | """ 13 | The custom URL of the avatar 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/workflow_tool_max_iterations_exceeded_step_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class WorkflowToolMaxIterationsExceededStepModel(UncheckedBaseModel): 11 | step_latency_secs: float 12 | max_iterations: int 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/workspace_create_webhook_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class WorkspaceCreateWebhookResponseModel(UncheckedBaseModel): 11 | webhook_id: str 12 | webhook_secret: typing.Optional[str] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/get_live_count_response.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class GetLiveCountResponse(UncheckedBaseModel): 11 | count: int = pydantic.Field() 12 | """ 13 | The number of active ongoing conversations. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/http_validation_error.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .validation_error import ValidationError 9 | 10 | 11 | class HttpValidationError(UncheckedBaseModel): 12 | detail: typing.Optional[typing.List[ValidationError]] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/moderation_guardrail_input.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .moderation_config import ModerationConfig 9 | 10 | 11 | class ModerationGuardrailInput(UncheckedBaseModel): 12 | config: typing.Optional[ModerationConfig] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/podcast_bulletin_mode_data.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class PodcastBulletinModeData(UncheckedBaseModel): 11 | host_voice_id: str = pydantic.Field() 12 | """ 13 | The ID of the host voice. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/ast_dynamic_variable_node_input.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class AstDynamicVariableNodeInput(UncheckedBaseModel): 11 | name: str = pydantic.Field() 12 | """ 13 | The name of the dynamic variable. 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conv_ai_secret_locator.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class ConvAiSecretLocator(UncheckedBaseModel): 11 | """ 12 | Used to reference a secret from the agent's secret store. 13 | """ 14 | 15 | secret_id: str 16 | 17 | if IS_PYDANTIC_V2: 18 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 19 | else: 20 | 21 | class Config: 22 | frozen = True 23 | smart_union = True 24 | extra = pydantic.Extra.allow 25 | -------------------------------------------------------------------------------- /src/elevenlabs/types/conversation_turn_metrics.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .metric_record import MetricRecord 9 | 10 | 11 | class ConversationTurnMetrics(UncheckedBaseModel): 12 | metrics: typing.Optional[typing.Dict[str, MetricRecord]] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/create_phone_number_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class CreatePhoneNumberResponseModel(UncheckedBaseModel): 11 | phone_number_id: str = pydantic.Field() 12 | """ 13 | Phone entity ID 14 | """ 15 | 16 | if IS_PYDANTIC_V2: 17 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 18 | else: 19 | 20 | class Config: 21 | frozen = True 22 | smart_union = True 23 | extra = pydantic.Extra.allow 24 | -------------------------------------------------------------------------------- /src/elevenlabs/types/default_conversation_initiation_trigger.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class DefaultConversationInitiationTrigger(UncheckedBaseModel): 11 | """ 12 | Default trigger for standard conversation initiation. 13 | """ 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/types/moderation_guardrail_output.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | from .moderation_config import ModerationConfig 9 | 10 | 11 | class ModerationGuardrailOutput(UncheckedBaseModel): 12 | config: typing.Optional[ModerationConfig] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | -------------------------------------------------------------------------------- /src/elevenlabs/types/post_workspace_secret_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class PostWorkspaceSecretResponseModel(UncheckedBaseModel): 11 | type: typing.Literal["stored"] = "stored" 12 | secret_id: str 13 | name: str 14 | 15 | if IS_PYDANTIC_V2: 16 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 17 | else: 18 | 19 | class Config: 20 | frozen = True 21 | smart_union = True 22 | extra = pydantic.Extra.allow 23 | -------------------------------------------------------------------------------- /src/elevenlabs/types/skip_turn_tool_response_model.py: -------------------------------------------------------------------------------- 1 | # This file was auto-generated by Fern from our API Definition. 2 | 3 | import typing 4 | 5 | import pydantic 6 | from ..core.pydantic_utilities import IS_PYDANTIC_V2 7 | from ..core.unchecked_base_model import UncheckedBaseModel 8 | 9 | 10 | class SkipTurnToolResponseModel(UncheckedBaseModel): 11 | status: typing.Optional[typing.Literal["success"]] = None 12 | reason: typing.Optional[str] = None 13 | 14 | if IS_PYDANTIC_V2: 15 | model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 16 | else: 17 | 18 | class Config: 19 | frozen = True 20 | smart_union = True 21 | extra = pydantic.Extra.allow 22 | --------------------------------------------------------------------------------