feat(kobo): add Kobo device sync with kepubify and collection support

This commit is contained in:
neon
2026-02-10 05:46:34 -06:00
parent d44d68cd12
commit 6de870a0b5
37 changed files with 2801 additions and 29 deletions
+1
View File
@@ -3,6 +3,7 @@ export type Collection = {
name: string;
icon: string | null;
description: string | null;
syncToKobo: boolean;
bookCount: number;
memberCount?: number;
createdAt: string;
+1
View File
@@ -6,3 +6,4 @@ export * from "./query";
export * from "./reader-settings";
export * from "./scanner";
export * from "./opds";
export * from "./kobo";
+36
View File
@@ -0,0 +1,36 @@
export interface KoboDevice {
id: number;
name: string;
lastSeenAt: string | null;
createdAt: string;
}
export interface KoboDeviceWithToken extends KoboDevice {
token: string;
}
export interface KoboSyncSettings {
readingThreshold: number;
finishedThreshold: number;
convertToKepub: boolean;
twoWayProgressSync: boolean;
forceEnableHyphenation: boolean;
kepubConversionLimitMb: number;
}
export interface CreateKoboDeviceRequest {
name: string;
}
export interface RenameKoboDeviceRequest {
name: string;
}
export interface UpdateKoboSyncSettingsRequest {
readingThreshold?: number;
finishedThreshold?: number;
convertToKepub?: boolean;
twoWayProgressSync?: boolean;
forceEnableHyphenation?: boolean;
kepubConversionLimitMb?: number;
}