Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Elevenlabs Elevenlabs python WorkspaceResourceType

From Leeroopedia
Revision as of 12:27, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Elevenlabs_Elevenlabs_python_WorkspaceResourceType.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Attribute Value
Page Type Implementation
Language Python
SDK elevenlabs
Type Type Alias (Union of Literals)
Source File src/elevenlabs/types/workspace_resource_type.py
Auto-Generated Yes (Fern API Definition)

Overview

Description

WorkspaceResourceType is a type alias representing the set of valid workspace resource types within the ElevenLabs platform. It is defined as a union of string literals covering all supported resource categories -- from voices and pronunciation dictionaries to conversational AI agents, knowledge bases, phone numbers, and dashboard configurations. It also includes typing.Any as a fallback for forward compatibility with new resource types.

Usage

This type is used to identify and categorize resources within an ElevenLabs workspace. It appears in API requests and responses where a resource type discriminator is needed, such as when listing workspace resources, assigning permissions, or filtering resources by category.

Code Reference

Source Location

src/elevenlabs/types/workspace_resource_type.py

Type Definition

WorkspaceResourceType = typing.Union[
    typing.Literal[
        "voice",
        "voice_collection",
        "pronunciation_dictionary",
        "dubbing",
        "project",
        "convai_agents",
        "convai_knowledge_base_documents",
        "convai_tools",
        "convai_settings",
        "convai_secrets",
        "workspace_auth_connections",
        "convai_phone_numbers",
        "convai_mcp_servers",
        "convai_api_integration_connections",
        "convai_api_integration_trigger_connections",
        "convai_batch_calls",
        "convai_agent_response_tests",
        "convai_test_suite_invocations",
        "convai_crawl_jobs",
        "convai_crawl_tasks",
        "convai_whatsapp_accounts",
        "convai_agent_versions",
        "convai_agent_branches",
        "convai_agent_versions_deployments",
        "dashboard",
        "dashboard_configuration",
        "convai_agent_drafts",
        "resource_locators",
        "assets",
        "content_generations",
        "content_templates",
    ],
    typing.Any,
]

Import Statement

from elevenlabs.types import WorkspaceResourceType

I/O Contract

Literal Value Category Description
"voice" Voice A voice resource.
"voice_collection" Voice A collection of voices.
"pronunciation_dictionary" Speech A pronunciation dictionary resource.
"dubbing" Media A dubbing project resource.
"project" General A project resource.
"convai_agents" Conversational AI Conversational AI agents.
"convai_knowledge_base_documents" Conversational AI Knowledge base documents for conversational AI.
"convai_tools" Conversational AI Tools available to conversational AI agents.
"convai_settings" Conversational AI Conversational AI settings.
"convai_secrets" Conversational AI Secrets used by conversational AI.
"workspace_auth_connections" Authentication Workspace authentication connections.
"convai_phone_numbers" Conversational AI Phone numbers for conversational AI.
"convai_mcp_servers" Conversational AI MCP servers for conversational AI.
"convai_api_integration_connections" Conversational AI API integration connections.
"convai_api_integration_trigger_connections" Conversational AI API integration trigger connections.
"convai_batch_calls" Conversational AI Batch call resources.
"convai_agent_response_tests" Conversational AI Agent response test resources.
"convai_test_suite_invocations" Conversational AI Test suite invocation resources.
"convai_crawl_jobs" Conversational AI Crawl job resources.
"convai_crawl_tasks" Conversational AI Crawl task resources.
"convai_whatsapp_accounts" Conversational AI WhatsApp account resources.
"convai_agent_versions" Conversational AI Agent version resources.
"convai_agent_branches" Conversational AI Agent branch resources.
"convai_agent_versions_deployments" Conversational AI Agent version deployment resources.
"dashboard" Dashboard Dashboard resource.
"dashboard_configuration" Dashboard Dashboard configuration resource.
"convai_agent_drafts" Conversational AI Agent draft resources.
"resource_locators" General Resource locator references.
"assets" General Asset resources.
"content_generations" Content Content generation resources.
"content_templates" Content Content template resources.
typing.Any Fallback Allows forward compatibility with new resource types not yet defined as literals.

Usage Examples

Using WorkspaceResourceType for type annotation

from elevenlabs.types import WorkspaceResourceType

def filter_resources(resource_type: WorkspaceResourceType) -> None:
    print(f"Filtering by resource type: {resource_type}")

filter_resources("voice")
filter_resources("convai_agents")
filter_resources("dubbing")

Checking a resource type value

from elevenlabs.types import WorkspaceResourceType

resource_type: WorkspaceResourceType = "convai_phone_numbers"

convai_types = [
    "convai_agents",
    "convai_knowledge_base_documents",
    "convai_tools",
    "convai_phone_numbers",
]

if resource_type in convai_types:
    print("This is a conversational AI resource.")

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment