Remove ElevenLabs enum namespace and global config - #220
Merged
Conversation
renal128
changed the base branch from
main
to
remove-feedback-availability-callback
July 25, 2026 14:42
renal128
force-pushed
the
remove-global-config
branch
from
July 25, 2026 14:52
816abd0 to
aa03bf9
Compare
renal128
changed the base branch from
remove-feedback-availability-callback
to
add-conversation-endpoints
July 25, 2026 14:52
renal128
marked this pull request as ready for review
July 25, 2026 18:19
renal128
force-pushed
the
remove-global-config
branch
from
July 26, 2026 07:25
aa03bf9 to
b74665e
Compare
renal128
force-pushed
the
remove-global-config
branch
2 times, most recently
from
July 26, 2026 16:53
0d9f489 to
1077062
Compare
renal128
force-pushed
the
remove-global-config
branch
from
July 26, 2026 16:59
1077062 to
56af297
Compare
renal128
force-pushed
the
remove-global-config
branch
from
July 26, 2026 17:09
56af297 to
6e11766
Compare
jacksonh
approved these changes
Aug 3, 2026
renal128
force-pushed
the
remove-global-config
branch
2 times, most recently
from
August 4, 2026 16:38
09c5c37 to
be5c19a
Compare
renal128
force-pushed
the
remove-global-config
branch
from
August 4, 2026 18:33
be5c19a to
93d6a75
Compare
renal128
force-pushed
the
remove-global-config
branch
from
August 4, 2026 19:23
93d6a75 to
571bc34
Compare
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
force-pushed
the
remove-global-config
branch
from
August 4, 2026 19:30
571bc34 to
82e518e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The SDK is imported as
ElevenLabs, but it also has a publicElevenLabsenum. This causes issues when the consumer app wants to use qualified name likeElevenLabs.Message, becauseElevenLabsgets resolved to theElevenLabsenum. This PR removes the enum and moves its parts to appropriate places.public enum ElevenLabsand move Events underPublic/Conversation/EventsLogLevel,AgentState, and a single publicversionto module-level APIElevenLabs.configurewithConversationClient(logLevel:)Test plan
swift buildStacked on #221
Note
Medium Risk
This is a breaking public API change: consumers must replace
ElevenLabs.configure, nestedElevenLabs.AgentState/LogLevel, andElevenLabs.versionwith module-level types andConversationClient(logLevel:). Runtime behavior is mostly organizational aside from per-client instead of global log configuration.Overview
Removes the public
ElevenLabsenum so the module name no longer shadows types likeMessagewhen apps use qualified names (ElevenLabs.Message).AgentState,LogLevel, andversionare now top-level public API; generatedVersion.swiftexposespublic let versioninstead of internalSDKVersion.Global
ElevenLabs.configureandConfigurationare deleted. Logging is configured perConversationClient(logLevel:), which passeslogLevelintoDependencieswhen starting a session. Docs (README, Usage) are updated accordingly.Internal code drops
ElevenLabs.prefixes onAgentState/LogLevel; token and conversation init payloads still send SDK version via the newversionconstant.Reviewed by Cursor Bugbot for commit 82e518e. Bugbot is set up for automated code reviews on this repo. Configure here.