From ac667efde8860842438982025a57fb45e1b206ae Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Tue, 9 Dec 2025 08:32:12 +0000 Subject: [PATCH] feat: add delete LLM config request/response schemas --- surfsense_web/contracts/types/llm-config.types.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/surfsense_web/contracts/types/llm-config.types.ts b/surfsense_web/contracts/types/llm-config.types.ts index 40c7574be..7b232bc8c 100644 --- a/surfsense_web/contracts/types/llm-config.types.ts +++ b/surfsense_web/contracts/types/llm-config.types.ts @@ -128,6 +128,15 @@ export const updateLLMConfigRequest = z.object({ export const updateLLMConfigResponse = llmConfig; +/** + * Delete LLM config + */ +export const deleteLLMConfigRequest = llmConfig.pick({ id: true }); + +export const deleteLLMConfigResponse = z.object({ + message: z.literal("LLM configuration deleted successfully"), +}); + export type LLMConfig = z.infer; export type LiteLLMProvider = z.infer; export type GlobalLLMConfig = z.infer; @@ -140,3 +149,5 @@ export type GetLLMConfigRequest = z.infer; export type GetLLMConfigResponse = z.infer; export type UpdateLLMConfigRequest = z.infer; export type UpdateLLMConfigResponse = z.infer; +export type DeleteLLMConfigRequest = z.infer; +export type DeleteLLMConfigResponse = z.infer;