pixivflow 2.22.1 → 2.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/commands/SchedulerCommand.js +12 -3
  2. package/dist/commands/scheduler-runtime.d.ts +29 -0
  3. package/dist/commands/scheduler-runtime.js +54 -1
  4. package/dist/download/FileService.d.ts +10 -0
  5. package/dist/download/FileService.js +6 -0
  6. package/dist/download/NovelDownloader.js +56 -0
  7. package/dist/download/exec/DownloadExecutor.js +11 -2
  8. package/dist/download/handlers/IllustrationTargetHandler.js +15 -0
  9. package/dist/download/handlers/NovelTargetHandler.js +12 -2
  10. package/dist/download/novelMarkers.d.ts +54 -0
  11. package/dist/download/novelMarkers.js +122 -0
  12. package/dist/interfaces/IDatabase.d.ts +11 -0
  13. package/dist/interfaces/IFileService.d.ts +4 -0
  14. package/dist/logger.d.ts +24 -0
  15. package/dist/logger.js +88 -11
  16. package/dist/notification/NotificationPolicy.js +18 -5
  17. package/dist/observability/classify.d.ts +7 -0
  18. package/dist/observability/classify.js +51 -0
  19. package/dist/observability/context.d.ts +10 -0
  20. package/dist/observability/context.js +22 -0
  21. package/dist/observability/index.d.ts +7 -0
  22. package/dist/observability/index.js +36 -0
  23. package/dist/observability/types.d.ts +23 -0
  24. package/dist/observability/types.js +3 -0
  25. package/dist/package.json +1 -1
  26. package/dist/scheduler/RecoveryOutcome.d.ts +24 -0
  27. package/dist/scheduler/RecoveryOutcome.js +44 -0
  28. package/dist/scheduler/ScheduleTriggerServer.d.ts +4 -0
  29. package/dist/scheduler/SlotBusinessStatus.d.ts +32 -0
  30. package/dist/scheduler/SlotBusinessStatus.js +43 -0
  31. package/dist/scheduler/SlotCoordinator.d.ts +7 -0
  32. package/dist/scheduler/SlotCoordinator.js +13 -0
  33. package/dist/storage/Database.d.ts +4 -0
  34. package/dist/storage/Database.js +7 -0
  35. package/dist/storage/DatabaseMigration.js +21 -0
  36. package/dist/storage/repositories/SystemErrorRepository.d.ts +19 -0
  37. package/dist/storage/repositories/SystemErrorRepository.js +92 -0
  38. package/dist/version.js +1 -1
  39. package/dist/webui/package.json +1 -1
  40. package/dist/webui/routes/admin-logs.d.ts +3 -0
  41. package/dist/webui/routes/admin-logs.js +9 -0
  42. package/dist/webui/routes/handlers/admin-logs-handlers.d.ts +6 -0
  43. package/dist/webui/routes/handlers/admin-logs-handlers.js +106 -0
  44. package/dist/webui/routes/handlers/system-errors-handlers.d.ts +6 -0
  45. package/dist/webui/routes/handlers/system-errors-handlers.js +59 -0
  46. package/dist/webui/routes/system-errors.d.ts +3 -0
  47. package/dist/webui/routes/system-errors.js +9 -0
  48. package/dist/webui/server/server-routes.js +5 -0
  49. package/node_modules/@redtidev/pixiv-client/dist/app-api/novels.d.ts.map +1 -1
  50. package/node_modules/@redtidev/pixiv-client/dist/app-api/novels.js +18 -2
  51. package/node_modules/@redtidev/pixiv-client/dist/app-api/novels.js.map +1 -1
  52. package/node_modules/@redtidev/pixiv-client/dist/index.d.ts +1 -1
  53. package/node_modules/@redtidev/pixiv-client/dist/index.d.ts.map +1 -1
  54. package/node_modules/@redtidev/pixiv-client/dist/index.js.map +1 -1
  55. package/node_modules/@redtidev/pixiv-client/dist/models/index.d.ts +40 -4
  56. package/node_modules/@redtidev/pixiv-client/dist/models/index.d.ts.map +1 -1
  57. package/node_modules/@redtidev/pixiv-client/src/app-api/novels.ts +28 -2
  58. package/node_modules/@redtidev/pixiv-client/src/index.ts +3 -0
  59. package/node_modules/@redtidev/pixiv-client/src/models/index.ts +34 -4
  60. package/package.json +2 -2
@@ -85,13 +85,43 @@ export interface PixivNovel {
85
85
 
86
86
  export interface PixivNovelTextResponse {
87
87
  novel_text: string;
88
- /**
89
- * Marker/next-url style fields are endpoint-specific; the webview fallback
90
- * parses only the text. Hosts should not rely on other fields.
91
- */
88
+ /** Cover thumbnail URL (webview v2 novel: block). */
89
+ coverUrl?: string;
90
+ /** Previous/next series navigation (webview v2 novel: block). */
91
+ seriesNavigation?: { nextNovel?: NovelSeriesNavItem; prevNovel?: NovelSeriesNavItem };
92
+ /** Uploaded inline images, keyed by `[uploadedimage:KEY]` marker id. */
93
+ images?: Record<string, PixivNovelUploadedImage>;
94
+ /** Referenced published illusts, keyed by `[pixivimage:KEY]` marker id; null = deleted/no permission. */
95
+ illusts?: Record<string, PixivNovelIllustRef | null>;
96
+ /** Other endpoint-specific fields (v1/webaudio fallbacks); hosts must not depend on them. */
92
97
  [key: string]: unknown;
93
98
  }
94
99
 
100
+ /** Author-uploaded inline image in the webview v2 novel: block. */
101
+ export interface PixivNovelUploadedImage {
102
+ novelImageId?: string;
103
+ urls: {
104
+ the128X128?: string;
105
+ the240Mw?: string;
106
+ the480Mw?: string;
107
+ the1200X1200?: string;
108
+ original?: string;
109
+ [k: string]: string | undefined;
110
+ };
111
+ }
112
+
113
+ /** Referenced published illust (webview v2 novel: block). */
114
+ export interface PixivNovelIllustRef {
115
+ illust: { images: { small?: string; medium?: string; original?: string } };
116
+ }
117
+
118
+ export interface NovelSeriesNavItem {
119
+ id: number;
120
+ viewable: boolean;
121
+ title?: string;
122
+ coverUrl?: string;
123
+ }
124
+
95
125
  export interface UgoiraFrame {
96
126
  file: string;
97
127
  delay: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixivflow",
3
- "version": "2.22.1",
4
- "description": "🎨 Pixiv 下载、筛选与自动收集工具 - 批量下载插画和小说、按标签/热度/日期筛选、定时任务与可靠 HTTP 交付 | Pixiv downloader and automation toolkit with filtering, scheduling and reliable HTTP delivery",
3
+ "version": "2.24.0",
4
+ "description": "\ud83c\udfa8 Pixiv \u4e0b\u8f7d\u3001\u7b5b\u9009\u4e0e\u81ea\u52a8\u6536\u96c6\u5de5\u5177 - \u6279\u91cf\u4e0b\u8f7d\u63d2\u753b\u548c\u5c0f\u8bf4\u3001\u6309\u6807\u7b7e/\u70ed\u5ea6/\u65e5\u671f\u7b5b\u9009\u3001\u5b9a\u65f6\u4efb\u52a1\u4e0e\u53ef\u9760 HTTP \u4ea4\u4ed8 | Pixiv downloader and automation toolkit with filtering, scheduling and reliable HTTP delivery",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/redtidev1918/PixivFlow.git"