From 8ca80136f488b4377255268e556a21e174eb6362 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Tue, 27 Oct 2026 20:50:18 +0000 Subject: [PATCH] Schema: outputType um bmp/tiff/gif ergaenzt Server akzeptiert jetzt jpeg, png, webp, bmp, tiff, gif; GIF wird wieder gelesen (erstes Frame). --- index.d.ts | 16 ++++++++++++++-- schemas/config/image-filter.schema.json | 5 ++++- schemas/config/tool.schema.json | 3 ++- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index cb9a00d..2a6ab08 100644 --- a/index.d.ts +++ b/index.d.ts @@ -406,7 +406,7 @@ declare global { lossless?: boolean skipLargerDimension?: boolean skipLargerFilesize?: boolean - outputType?: "jpg" | "jpeg" | "png" | "webp" + outputType?: "jpg" | "jpeg" | "png" | "webp" | "bmp" | "tiff" | "gif" removeBackground?: RemoveBackgroundParams dropShadow?: DropShadowParams flatten?: string @@ -651,7 +651,7 @@ declare global { group?: string module: string | { eval: string } permissions?: string[] - capabilities?: Array<"db" | "files" | "xlsx" | "ui" | "log" | "progress" | "state"> + capabilities?: Array<"db" | "files" | "xlsx" | "ui" | "log" | "progress" | "state" | "action"> settings?: Record hidden?: boolean } @@ -727,6 +727,18 @@ declare global { db: AdminToolDb files: { get(input: File | Blob | string, name?: string): Promise } xlsx: any + /** Runs a project action (requires capability `action`); resolves with the final event/body. */ + action( + name: string, + options?: { + method?: "get" | "post" | "put" | "delete" + query?: Record + data?: Record + onProgress?: (event: Record) => void + onUploadProgress?: (loaded: number, total: number) => void + signal?: AbortSignal + } + ): Promise> state: Map lang: string languages: string[] diff --git a/schemas/config/image-filter.schema.json b/schemas/config/image-filter.schema.json index 6561b32..3c421cd 100644 --- a/schemas/config/image-filter.schema.json +++ b/schemas/config/image-filter.schema.json @@ -100,7 +100,10 @@ "jpg", "jpeg", "png", - "webp" + "webp", + "bmp", + "tiff", + "gif" ] }, "removeBackground": { diff --git a/schemas/config/tool.schema.json b/schemas/config/tool.schema.json index 638740a..97c7996 100644 --- a/schemas/config/tool.schema.json +++ b/schemas/config/tool.schema.json @@ -65,7 +65,8 @@ "ui", "log", "progress", - "state" + "state", + "action" ] } },