From 4bd05ed96ea7b412e69b0a94f80092a43908b6ff Mon Sep 17 00:00:00 2001 From: yyh Date: Mon, 19 Jan 2026 12:43:44 +0800 Subject: [PATCH] fix(types): remove unused and misaligned app-asset types Remove types that don't match backend API: - AppAssetFileContentResponse (unused, had extra metadata field) - CreateFilePayload (unused, FormData built manually) - metadata field from UpdateFileContentPayload --- web/types/app-asset.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/web/types/app-asset.ts b/web/types/app-asset.ts index 9a63a5dfd6..8fcb9aad12 100644 --- a/web/types/app-asset.ts +++ b/web/types/app-asset.ts @@ -63,14 +63,6 @@ export type AppAssetTreeResponse = { children: AppAssetTreeView[] } -/** - * File content response (GET /apps/{app_id}/assets/files/{node_id}) - */ -export type AppAssetFileContentResponse = { - content: string - metadata?: Record -} - /** * File download URL response (GET /apps/{app_id}/assets/files/{node_id}/download-url) */ @@ -115,24 +107,12 @@ export type CreateFolderPayload = { parent_id?: string | null } -/** - * Request payload for creating a file (form data) - */ -export type CreateFilePayload = { - /** File name (1-255 characters) */ - name: string - /** Parent folder ID, empty or undefined for root */ - parent_id?: string | null -} - /** * Request payload for updating file content (JSON) */ export type UpdateFileContentPayload = { /** New file content (UTF-8) */ content: string - /** Optional metadata associated with the file */ - metadata?: Record } /**