From 748dcaa5939bd70c876dda66e8afb21213204d95 Mon Sep 17 00:00:00 2001 From: yucheng Date: Tue, 29 Sep 2026 11:02:03 +0000 Subject: [PATCH] fix(api): sync guardrail schema artifacts Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/_lazy_openapi_snapshot.json | 96 ++++++++++++++++++- ui/litellm-dashboard/src/lib/http/schema.d.ts | 30 +++++- 2 files changed, 124 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/_lazy_openapi_snapshot.json b/litellm/proxy/_lazy_openapi_snapshot.json index 98bdb22dc12..6ef977a194a 100644 --- a/litellm/proxy/_lazy_openapi_snapshot.json +++ b/litellm/proxy/_lazy_openapi_snapshot.json @@ -11259,6 +11259,77 @@ "title": "GuardrailSubmissionSummary", "type": "object" }, + "GuardrailUIAddGuardrailSettings": { + "properties": { + "content_filter_settings": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Content Filter Settings" + }, + "pii_entity_categories": { + "items": { + "$ref": "#/components/schemas/PiiEntityCategoryMap" + }, + "title": "Pii Entity Categories", + "type": "array" + }, + "providers_without_directional_logging_only_scope": { + "items": { + "type": "string" + }, + "title": "Providers Without Directional Logging Only Scope", + "type": "array" + }, + "supported_actions": { + "items": { + "type": "string" + }, + "title": "Supported Actions", + "type": "array" + }, + "supported_entities": { + "items": { + "type": "string" + }, + "title": "Supported Entities", + "type": "array" + }, + "supported_modes": { + "items": { + "type": "string" + }, + "title": "Supported Modes", + "type": "array" + }, + "supported_modes_by_provider": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "title": "Supported Modes By Provider", + "type": "object" + } + }, + "required": [ + "supported_entities", + "supported_actions", + "supported_modes", + "supported_modes_by_provider", + "providers_without_directional_logging_only_scope", + "pii_entity_categories" + ], + "title": "GuardrailUIAddGuardrailSettings", + "type": "object" + }, "HTTPValidationError": { "properties": { "detail": { @@ -13419,6 +13490,27 @@ "title": "PiiAction", "type": "string" }, + "PiiEntityCategoryMap": { + "properties": { + "category": { + "title": "Category", + "type": "string" + }, + "entities": { + "items": { + "type": "string" + }, + "title": "Entities", + "type": "array" + } + }, + "required": [ + "category", + "entities" + ], + "title": "PiiEntityCategoryMap", + "type": "object" + }, "PiiEntityType": { "enum": [ "CREDIT_CARD", @@ -14860,7 +14952,9 @@ "200": { "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/GuardrailUIAddGuardrailSettings" + } } }, "description": "Successful Response" diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts index 322cb7c1e0c..93fbb255ef9 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -31097,6 +31097,27 @@ export interface components { /** Output Text */ output_text: string; }; + /** GuardrailUIAddGuardrailSettings */ + GuardrailUIAddGuardrailSettings: { + /** Content Filter Settings */ + content_filter_settings?: { + [key: string]: unknown; + } | null; + /** Pii Entity Categories */ + pii_entity_categories: components["schemas"]["PiiEntityCategoryMap"][]; + /** Providers Without Directional Logging Only Scope */ + providers_without_directional_logging_only_scope: string[]; + /** Supported Actions */ + supported_actions: string[]; + /** Supported Entities */ + supported_entities: string[]; + /** Supported Modes */ + supported_modes: string[]; + /** Supported Modes By Provider */ + supported_modes_by_provider: { + [key: string]: string[]; + }; + }; /** * HTTPAuthSecurityScheme * @description Defines a security scheme using HTTP authentication. @@ -37909,6 +37930,13 @@ export interface components { * @enum {string} */ PiiAction: "BLOCK" | "MASK"; + /** PiiEntityCategoryMap */ + PiiEntityCategoryMap: { + /** Category */ + category: string; + /** Entities */ + entities: string[]; + }; /** * PiiEntityType * @enum {string} @@ -56403,7 +56431,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": unknown; + "application/json": components["schemas"]["GuardrailUIAddGuardrailSettings"]; }; }; };