From daf493cd8c89621dfb4b57ff17ce938f33af34b0 Mon Sep 17 00:00:00 2001 From: yassin Date: Sat, 29 Aug 2026 20:03:44 +0000 Subject: [PATCH] fix: add return type annotations to cyberark config endpoints Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/_lazy_openapi_snapshot.json | 24 ++++++++++++++++--- .../config_override_endpoints.py | 8 +++---- ui/litellm-dashboard/src/lib/http/schema.d.ts | 12 +++++++--- 3 files changed, 34 insertions(+), 10 deletions(-) diff --git a/litellm/proxy/_lazy_openapi_snapshot.json b/litellm/proxy/_lazy_openapi_snapshot.json index 0a43e27d80d..08a35b41126 100644 --- a/litellm/proxy/_lazy_openapi_snapshot.json +++ b/litellm/proxy/_lazy_openapi_snapshot.json @@ -6785,7 +6785,13 @@ "200": { "content": { "application/json": { - "schema": {} + "schema": { + "additionalProperties": { + "type": "string" + }, + "title": "Response Delete Cyberark Config Config Overrides Cyberark Delete", + "type": "object" + } } }, "description": "Successful Response" @@ -6873,7 +6879,13 @@ "200": { "content": { "application/json": { - "schema": {} + "schema": { + "additionalProperties": { + "type": "string" + }, + "title": "Response Update Cyberark Config Config Overrides Cyberark Post", + "type": "object" + } } }, "description": "Successful Response" @@ -6908,7 +6920,13 @@ "200": { "content": { "application/json": { - "schema": {} + "schema": { + "additionalProperties": { + "type": "string" + }, + "title": "Response Test Cyberark Connection Config Overrides Cyberark Test Connection Post", + "type": "object" + } } }, "description": "Successful Response" diff --git a/litellm/proxy/management_endpoints/config_override_endpoints.py b/litellm/proxy/management_endpoints/config_override_endpoints.py index 8b1ba7733dd..84593460704 100644 --- a/litellm/proxy/management_endpoints/config_override_endpoints.py +++ b/litellm/proxy/management_endpoints/config_override_endpoints.py @@ -658,7 +658,7 @@ async def update_cyberark_config( None, description="The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability", ), -): +) -> dict[str, str]: """ Update CyberArk Conjur secret manager configuration. Sets environment variables, encrypts sensitive fields, and stores in DB. @@ -769,7 +769,7 @@ async def update_cyberark_config( ) async def get_cyberark_config( user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), # noqa: B008 # FastAPI dependency injection -): +) -> ConfigOverrideSettingsResponse: """ Get current CyberArk Conjur configuration. Returns decrypted values from DB, or falls back to current env vars. @@ -830,7 +830,7 @@ async def delete_cyberark_config( None, description="The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability", ), -): +) -> dict[str, str]: """Delete CyberArk Conjur configuration. Idempotent.""" from litellm.proxy.proxy_server import prisma_client, proxy_config @@ -890,7 +890,7 @@ async def delete_cyberark_config( ) async def test_cyberark_connection( user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), # noqa: B008 # FastAPI dependency injection -): +) -> dict[str, str]: """ Test the connection to the currently configured CyberArk Conjur server. Uses the already-initialized secret manager client. Does not modify any state. diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts index 7fc9f851dd7..6c5319f0361 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -42927,7 +42927,9 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": unknown; + "application/json": { + [key: string]: string; + }; }; }; /** @description Validation Error */ @@ -42959,7 +42961,9 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": unknown; + "application/json": { + [key: string]: string; + }; }; }; /** @description Validation Error */ @@ -42988,7 +42992,9 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": unknown; + "application/json": { + [key: string]: string; + }; }; }; };