Skip to content

Remove ElevenLabs enum namespace and global config - #220

Merged
renal128 merged 1 commit into
nextfrom
remove-global-config
Aug 4, 2026
Merged

Remove ElevenLabs enum namespace and global config#220
renal128 merged 1 commit into
nextfrom
remove-global-config

Conversation

@renal128

@renal128 renal128 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

The SDK is imported as ElevenLabs, but it also has a public ElevenLabs enum. This causes issues when the consumer app wants to use qualified name like ElevenLabs.Message, because ElevenLabs gets resolved to the ElevenLabs enum. This PR removes the enum and moves its parts to appropriate places.

  • Delete the shadowing public enum ElevenLabs and move Events under Public/Conversation/Events
  • Promote LogLevel, AgentState, and a single public version to module-level API
  • Replace ElevenLabs.configure with ConversationClient(logLevel:)

Test plan

  • swift build

Stacked on #221


Note

Medium Risk
This is a breaking public API change: consumers must replace ElevenLabs.configure, nested ElevenLabs.AgentState/LogLevel, and ElevenLabs.version with module-level types and ConversationClient(logLevel:). Runtime behavior is mostly organizational aside from per-client instead of global log configuration.

Overview
Removes the public ElevenLabs enum so the module name no longer shadows types like Message when apps use qualified names (ElevenLabs.Message). AgentState, LogLevel, and version are now top-level public API; generated Version.swift exposes public let version instead of internal SDKVersion.

Global ElevenLabs.configure and Configuration are deleted. Logging is configured per ConversationClient(logLevel:), which passes logLevel into Dependencies when starting a session. Docs (README, Usage) are updated accordingly.

Internal code drops ElevenLabs. prefixes on AgentState / LogLevel; token and conversation init payloads still send SDK version via the new version constant.

Reviewed by Cursor Bugbot for commit 82e518e. Bugbot is set up for automated code reviews on this repo. Configure here.

@renal128
renal128 changed the base branch from main to remove-feedback-availability-callback July 25, 2026 14:42
@renal128
renal128 force-pushed the remove-global-config branch from 816abd0 to aa03bf9 Compare July 25, 2026 14:52
@renal128 renal128 changed the title Remove global config Remove ElevenLabs enum namespace and global configure Jul 25, 2026
@renal128
renal128 changed the base branch from remove-feedback-availability-callback to add-conversation-endpoints July 25, 2026 14:52
@renal128 renal128 changed the title Remove ElevenLabs enum namespace and global configure Remove ElevenLabs enum namespace and global config Jul 25, 2026
@renal128
renal128 marked this pull request as ready for review July 25, 2026 18:19
@renal128
renal128 force-pushed the remove-global-config branch from aa03bf9 to b74665e Compare July 26, 2026 07:25
@renal128
renal128 force-pushed the remove-global-config branch 2 times, most recently from 0d9f489 to 1077062 Compare July 26, 2026 16:53
@renal128
renal128 force-pushed the remove-global-config branch from 1077062 to 56af297 Compare July 26, 2026 16:59
@renal128
renal128 force-pushed the remove-global-config branch from 56af297 to 6e11766 Compare July 26, 2026 17:09
@renal128 renal128 mentioned this pull request Jul 26, 2026
2 tasks
@renal128
renal128 force-pushed the remove-global-config branch 2 times, most recently from 09c5c37 to be5c19a Compare August 4, 2026 16:38
@renal128
renal128 force-pushed the remove-global-config branch from be5c19a to 93d6a75 Compare August 4, 2026 18:33
@renal128
renal128 force-pushed the remove-global-config branch from 93d6a75 to 571bc34 Compare August 4, 2026 19:23
Base automatically changed from add-conversation-endpoints to next August 4, 2026 19:30
Promote LogLevel, AgentState, and version to module-level API, move Events under Conversation, and replace ElevenLabs.configure with ConversationClient(logLevel:).

Co-authored-by: Cursor <cursoragent@cursor.com>
@renal128
renal128 force-pushed the remove-global-config branch from 571bc34 to 82e518e Compare August 4, 2026 19:30
@renal128
renal128 merged commit cda181d into next Aug 4, 2026
2 checks passed
@renal128
renal128 deleted the remove-global-config branch August 4, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants