Skip to content

[Speech Engine] Add auth parameter to create and update - #921

Merged
SamuelGD merged 1 commit into
mainfrom
sgd/speech-engine-auth
Nov 4, 2026
Merged

SamuelGD merged 1 commit into
mainfrom
sgd/speech-engine-auth

Conversation

@SamuelGD

@SamuelGD SamuelGD commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

The API now accepts auth on Speech Engine create/update ({"auth": {"enable_auth": true}}) so customers can require signed URLs, but src/elevenlabs/speech_engine/ is in .fernignore, so regeneration never added it here. The JS SDK already has it.

Adds auth: SpeechEngineAuthConfig next to call_limits in the sync and async create/update of the generated client, the raw client, and the speech_engine_custom.py wrapper.

client.speech_engine.update("seng_...", auth=SpeechEngineAuthConfig(enable_auth=True))

Checked the request body is {"auth":{"enable_auth":true}}; mypy and the speech engine tests pass.

🤖 Generated with Claude Code

@cursor

cursor Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Exposes conversation access-control settings on create/update; incorrect client usage could misconfigure auth, but changes are additive SDK wiring only.

Overview
Adds optional auth (SpeechEngineAuthConfig) to Speech Engine create and update across the generated sync/async clients, raw HTTP layer, and speech_engine_custom wrapper—matching the API field used to control who can start conversations (e.g. enable_auth for signed URLs).

Create/update request bodies now include a serialized auth key when provided; docstrings describe it as who may start a conversation with the engine.

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

@SamuelGD
SamuelGD requested a review from PaulAsjes November 4, 2026 14:57
@SamuelGD
SamuelGD merged commit 152f737 into main Nov 4, 2026
6 checks passed
@SamuelGD
SamuelGD deleted the sgd/speech-engine-auth branch November 4, 2026 15:54
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