feat: support aria2 integration (#2226)

This commit is contained in:
Kudou Sterain
2025-04-11 02:40:40 +07:00
committed by GitHub
parent 4b0b892250
commit 94263c445b
19 changed files with 473 additions and 18 deletions

View File

@@ -20,8 +20,8 @@ export const downloadClientItemSchema = z.object({
index: z.number(),
/** Filename */
name: z.string(),
/** Torrent/Usenet identifier */
type: z.enum(["torrent", "usenet"]),
/** Download Client identifier */
type: z.enum(["torrent", "usenet", "miscellaneous"]),
/** Item size in Bytes */
size: z.number(),
/** Total uploaded in Bytes, only required for Torrent items */

View File

@@ -8,7 +8,7 @@ export interface DownloadClientStatus {
down: number;
up?: number;
};
type: "usenet" | "torrent";
types: ("usenet" | "torrent" | "miscellaneous")[];
}
export interface ExtendedClientStatus {
integration: Pick<Integration, "id" | "name" | "kind"> & { updatedAt: Date };