Conversation
WalkthroughThe OpenAPI specification for the ElevenLabs API was updated to introduce a new DELETE endpoint for removing workspace members, along with associated request and response schemas. Modifications include updating the response model for a speaker separation endpoint, expanding the LLM enum with new model variants, increasing the prompt length limit in prompt evaluation criteria, renaming an enum value, and adding a status property to the Render schema. Export option schemas were extended with new boolean properties, and several descriptions were clarified or updated throughout the specification. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant API
participant Workspace
Client->>API: DELETE /v1/workspace/members (email)
API->>Workspace: Remove member by email
Workspace-->>API: Success/Failure
API-->>Client: DeleteWorkspaceMemberResponseModel (status)
sequenceDiagram
participant Client
participant API
participant VoiceService
Client->>API: POST /v1/voices/pvc/{voice_id}/samples/{sample_id}/separate-speakers
API->>VoiceService: Start speaker separation
VoiceService-->>API: Status
API-->>Client: StartSpeakerSeparationResponseModel (status)
Possibly related PRs
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (7)
src/libs/ElevenLabs/openapi.yaml (7)
9926-9935: Addformat: emailand example to DELETE request body schema
TheBody_Delete_member_v1_workspace_members_deleteschema can be improved by validating the email format and providing an example:properties: email: title: Email type: string + format: email + example: [email protected]
10641-10643: Update example to illustrate Cloudflare R2 URL
The description now mentions Cloudflare R2, but theexamplestill uses Google Cloud Storage. Consider adding or replacing with a Cloudflare R2–style URL (e.g.,https://<account>.r2.cloudflarestorage.com/bucket/audio.mp3).
12803-12814: Consider constrainingstatusvalues in response model
TheDeleteWorkspaceMemberResponseModel’sstatusfield allows any string. If the only valid success indicator is"ok", you could enforce this:properties: status: title: Status type: string enum: - okThis helps client validation and codegen.
16819-16825: Add a description to the newstatusproperty
Thestatusfield in theRenderschema currently lacks a description. Consider adding one:status: title: Status type: string enum: - complete - processing - failed description: The current state of the render job
17174-17182: Extract shared export options into a base schema
Sinceinclude_speakersandinclude_timestampsare added to multiple export option schemas, you can DRY this up by creating a sharedExportOptionsBaseand usingallOfin each format schema:components: schemas: ExportOptionsBase: type: object properties: include_speakers: type: boolean default: true include_timestamps: type: boolean default: true DocxExportOptions: allOf: - $ref: '#/components/schemas/ExportOptionsBase' - type: object properties: format: enum: [docx]
17683-17686: Fix typo in response schema description
The word “seperation” is misspelled. Please correct it to “separation”:- description: 'The status of the start speaker seperation request...' + description: 'The status of the start speaker separation request...'
18232-18232: Add trailing period to description
For consistency with other descriptions, consider adding a period at the end:- description: Maximum wait time for the user's reply before re-engaging the user + description: Maximum wait time for the user's reply before re-engaging the user.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (23)
src/libs/ElevenLabs/Generated/ElevenLabs.IPvcVoicesClient.CreateVoicesPvcByVoiceIdSamplesBySampleIdSeparateSpeakers.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToTextClient.CreateSpeechToText.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.DeleteWorkspaceMembers.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDeleteMemberV1WorkspaceMembersDelete.Json.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDeleteMemberV1WorkspaceMembersDelete.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToTextV1SpeechToTextPost.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.ClientEvent.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteWorkspaceMemberResponseModel.Json.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteWorkspaceMemberResponseModel.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.LLM.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.Render.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.RenderStatus.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.SegmentedJsonExportOptions.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.StartSpeakerSeparationResponseModel.Json.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.StartSpeakerSeparationResponseModel.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.Models.TurnConfig.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.PvcVoicesClient.CreateVoicesPvcByVoiceIdSamplesBySampleIdSeparateSpeakers.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToTextClient.CreateSpeechToText.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.DeleteWorkspaceMembers.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/JsonConverters.RenderStatus.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/JsonConverters.RenderStatusNullable.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/JsonSerializerContext.g.csis excluded by!**/generated/**src/libs/ElevenLabs/Generated/JsonSerializerContextTypes.g.csis excluded by!**/generated/**
📒 Files selected for processing (1)
src/libs/ElevenLabs/openapi.yaml(13 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Test / Build, test and publish
🔇 Additional comments (4)
src/libs/ElevenLabs/openapi.yaml (4)
7787-7787: Ensure old response model is retired or referenced
You’ve updated the response for the speaker‑separation endpoint toStartSpeakerSeparationResponseModel. Confirm whether the originalSpeakerSeparationResponseModelschema should be removed or marked deprecated to avoid dead references in the spec.
11722-11722: Verify backward compatibility for renamed enum value
You renamedinternal_vad_scoretovad_scorein theClientEventenum. Ensure client SDKs or integrations are updated accordingly. If this is a breaking change, consider markinginternal_vad_scoreas deprecated instead of removing it outright.
14749-14751: Validate enum value formatting for new LLM variants
The new enum values (gpt-4.1,gpt-4.1-mini,gpt-4.1-nano) include dots. Some code generators may not handle dotted enum names correctly. Confirm your OpenAPI toolchain supports these or wrap them in quotes in the generated code.
16452-16452: Verify backend support for increased prompt length
You increasedconversation_goal_prompt.maxLengthto 2000. Ensure the server implementation, validation logic, and any downstream systems can handle prompts of this size.
| - status | ||
| type: object |
There was a problem hiding this comment.
🛠️ Refactor suggestion
Update examples to include new status field in Render schema
You added status as a required property. Please update all response examples and endpoint documentation that return Render objects to include the new status field.
| delete: | ||
| tags: | ||
| - workspace | ||
| summary: Delete Member | ||
| description: Deletes a workspace member. This endpoint may only be called by workspace administrators. | ||
| operationId: Delete_member_v1_workspace_members_delete | ||
| requestBody: | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/Body_Delete_member_v1_workspace_members_delete' | ||
| required: true | ||
| responses: | ||
| '200': | ||
| description: Successful Response | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/DeleteWorkspaceMemberResponseModel' | ||
| '422': | ||
| description: Validation Error | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/HTTPValidationError' |
There was a problem hiding this comment.
🛠️ Refactor suggestion
Add security requirement and standard error responses to DELETE endpoint
The new delete operation for /v1/workspace/members is missing a security section and common error responses. To align with the rest of the spec, please add:
- A
securityblock (e.g., Bearer auth) so only authenticated workspace admins can call it 401 Unauthorized,403 Forbiddenand404 Not Foundresponses
Example diff:
delete:
+ security:
+ - bearerAuth: []
tags:
- workspace
summary: Delete Member
...
responses:
+ '401':
+ $ref: '#/components/responses/UnauthorizedError'
+ '403':
+ description: Forbidden – admin privileges required
+ '404':
+ description: Workspace member not found
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteWorkspaceMemberResponseModel'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| delete: | |
| tags: | |
| - workspace | |
| summary: Delete Member | |
| description: Deletes a workspace member. This endpoint may only be called by workspace administrators. | |
| operationId: Delete_member_v1_workspace_members_delete | |
| requestBody: | |
| content: | |
| application/json: | |
| schema: | |
| $ref: '#/components/schemas/Body_Delete_member_v1_workspace_members_delete' | |
| required: true | |
| responses: | |
| '200': | |
| description: Successful Response | |
| content: | |
| application/json: | |
| schema: | |
| $ref: '#/components/schemas/DeleteWorkspaceMemberResponseModel' | |
| '422': | |
| description: Validation Error | |
| content: | |
| application/json: | |
| schema: | |
| $ref: '#/components/schemas/HTTPValidationError' | |
| delete: | |
| security: | |
| - bearerAuth: [] | |
| tags: | |
| - workspace | |
| summary: Delete Member | |
| description: Deletes a workspace member. This endpoint may only be called by workspace administrators. | |
| operationId: Delete_member_v1_workspace_members_delete | |
| requestBody: | |
| content: | |
| application/json: | |
| schema: | |
| $ref: '#/components/schemas/Body_Delete_member_v1_workspace_members_delete' | |
| required: true | |
| responses: | |
| '401': | |
| $ref: '#/components/responses/UnauthorizedError' | |
| '403': | |
| description: Forbidden – admin privileges required | |
| '404': | |
| description: Workspace member not found | |
| '200': | |
| description: Successful Response | |
| content: | |
| application/json: | |
| schema: | |
| $ref: '#/components/schemas/DeleteWorkspaceMemberResponseModel' | |
| '422': | |
| description: Validation Error | |
| content: | |
| application/json: | |
| schema: | |
| $ref: '#/components/schemas/HTTPValidationError' |
Summary by CodeRabbit
New Features
Improvements
Other Changes