@imenam/mcp-organizer 1.0.20 → 1.0.21

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 (106) hide show
  1. package/README.md +103 -29
  2. package/dist/shared/logic/attachments.d.ts +28 -0
  3. package/dist/shared/logic/attachments.js +52 -0
  4. package/dist/shared/logic/documents.d.ts +22 -0
  5. package/dist/shared/logic/documents.js +38 -0
  6. package/dist/shared/logic/line-diff.d.ts +13 -0
  7. package/dist/shared/logic/line-diff.js +66 -0
  8. package/dist/shared/logic/notes.d.ts +12 -0
  9. package/dist/shared/logic/notes.js +23 -0
  10. package/dist/shared/logic/timer.d.ts +69 -0
  11. package/dist/shared/logic/timer.js +87 -0
  12. package/dist/shared/schemas/agent-api.schema.d.ts +10 -29
  13. package/dist/shared/schemas/agent-api.schema.js +4 -15
  14. package/dist/shared/schemas/agent-tools.schema.d.ts +522 -2
  15. package/dist/shared/schemas/agent-tools.schema.js +111 -6
  16. package/dist/shared/schemas/api.schema.d.ts +7 -0
  17. package/dist/shared/schemas/api.schema.js +6 -0
  18. package/dist/shared/schemas/documents-api.schema.d.ts +49 -0
  19. package/dist/shared/schemas/documents-api.schema.js +38 -0
  20. package/dist/shared/schemas/entities.schema.d.ts +107 -54
  21. package/dist/shared/schemas/entities.schema.js +81 -10
  22. package/dist/shared/schemas/enums.schema.d.ts +19 -3
  23. package/dist/shared/schemas/enums.schema.js +8 -2
  24. package/dist/shared/schemas/gui-api.schema.d.ts +1 -0
  25. package/dist/shared/schemas/gui-api.schema.js +2 -0
  26. package/dist/shared/schemas/history-api.schema.d.ts +961 -0
  27. package/dist/shared/schemas/history-api.schema.js +104 -0
  28. package/dist/shared/schemas/notes-api.schema.d.ts +54 -0
  29. package/dist/shared/schemas/notes-api.schema.js +38 -0
  30. package/dist/shared/schemas/notifications-api.schema.d.ts +12 -0
  31. package/dist/shared/schemas/notifications-api.schema.js +4 -1
  32. package/dist/shared/schemas/tasks-api.schema.d.ts +39 -0
  33. package/dist/shared/schemas/tasks-api.schema.js +5 -0
  34. package/dist/shared/schemas/timers-api.schema.d.ts +119 -0
  35. package/dist/shared/schemas/timers-api.schema.js +44 -0
  36. package/dist/shared/schemas/views-api.schema.d.ts +16 -0
  37. package/dist/shared/schemas/views-api.schema.js +4 -2
  38. package/dist/src/agent-api/documents.d.ts +3 -0
  39. package/dist/src/agent-api/documents.js +66 -0
  40. package/dist/src/agent-api/history.d.ts +3 -0
  41. package/dist/src/agent-api/history.js +103 -0
  42. package/dist/src/agent-api/notes.d.ts +3 -0
  43. package/dist/src/agent-api/notes.js +39 -0
  44. package/dist/src/agent-api/requests.js +2 -1
  45. package/dist/src/agent-api/router.js +5 -1
  46. package/dist/src/agent-api/tasks.js +17 -6
  47. package/dist/src/agent-api/timers.d.ts +2 -0
  48. package/dist/src/agent-api/timers.js +170 -0
  49. package/dist/src/agent-api/types.d.ts +3 -0
  50. package/dist/src/agent-api/views.js +15 -30
  51. package/dist/src/cli/backup.js +3 -3
  52. package/dist/src/core/accounts.d.ts +12 -5
  53. package/dist/src/core/accounts.js +28 -10
  54. package/dist/src/core/agent.d.ts +27 -3
  55. package/dist/src/core/agent.js +118 -1
  56. package/dist/src/core/attachments.d.ts +6 -3
  57. package/dist/src/core/attachments.js +9 -4
  58. package/dist/src/core/board-views.js +4 -4
  59. package/dist/src/core/document-text.d.ts +17 -0
  60. package/dist/src/core/document-text.js +118 -0
  61. package/dist/src/core/documents.d.ts +22 -0
  62. package/dist/src/core/documents.js +168 -0
  63. package/dist/src/core/history-events.d.ts +34 -0
  64. package/dist/src/core/history-events.js +236 -0
  65. package/dist/src/core/history.js +33 -3
  66. package/dist/src/core/migrations.js +153 -0
  67. package/dist/src/core/notes.d.ts +23 -0
  68. package/dist/src/core/notes.js +78 -0
  69. package/dist/src/core/notifications.d.ts +48 -5
  70. package/dist/src/core/notifications.js +209 -33
  71. package/dist/src/core/password-reset.d.ts +37 -0
  72. package/dist/src/core/password-reset.js +56 -0
  73. package/dist/src/core/requests.d.ts +4 -3
  74. package/dist/src/core/requests.js +5 -4
  75. package/dist/src/core/snapshots.d.ts +3 -3
  76. package/dist/src/core/snapshots.js +3 -1
  77. package/dist/src/core/space-history.d.ts +18 -0
  78. package/dist/src/core/space-history.js +86 -0
  79. package/dist/src/core/spaces.d.ts +1 -1
  80. package/dist/src/core/spaces.js +4 -4
  81. package/dist/src/core/store.d.ts +154 -11
  82. package/dist/src/core/store.js +479 -52
  83. package/dist/src/core/task-history.d.ts +9 -5
  84. package/dist/src/core/task-history.js +17 -25
  85. package/dist/src/core/tasks.d.ts +2 -2
  86. package/dist/src/core/tasks.js +13 -2
  87. package/dist/src/core/timers.d.ts +33 -0
  88. package/dist/src/core/timers.js +101 -0
  89. package/dist/src/core/versions.d.ts +22 -0
  90. package/dist/src/core/versions.js +106 -0
  91. package/dist/src/gui-api.d.ts +4 -1
  92. package/dist/src/gui-api.js +85 -6
  93. package/dist/src/mcp/start.d.ts +1 -1
  94. package/dist/src/mcp/start.js +12 -7
  95. package/dist/src/mcp/tools.js +129 -3
  96. package/dist/src/server/app.d.ts +4 -2
  97. package/dist/src/server/app.js +21 -5
  98. package/dist/src/server/login-limiter.d.ts +27 -1
  99. package/dist/src/server/login-limiter.js +31 -1
  100. package/dist/src/server/start.js +1 -0
  101. package/gui/dist/assets/index-DbzcjyaW.js +104 -0
  102. package/gui/dist/assets/index-Dvf5Yo0e.css +1 -0
  103. package/gui/dist/index.html +2 -2
  104. package/package.json +1 -1
  105. package/gui/dist/assets/index-9c9BlfUi.js +0 -99
  106. package/gui/dist/assets/index-DH23A5aa.css +0 -1
@@ -84,6 +84,29 @@ export declare const SearchTasksQuerySchema: z.ZodObject<{
84
84
  assignee: z.ZodOptional<z.ZodString>;
85
85
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
86
86
  }, z.core.$strict>;
87
+ /** `GET history` : événements d'une tâche ou de l'espace, filtrés par auteur et catégorie, paginés par `before`. */
88
+ export declare const GetHistoryQuerySchema: z.ZodObject<{
89
+ task: z.ZodOptional<z.ZodString>;
90
+ author: z.ZodOptional<z.ZodString>;
91
+ category: z.ZodOptional<z.ZodEnum<{
92
+ document: "document";
93
+ idea: "idea";
94
+ member: "member";
95
+ note: "note";
96
+ task: "task";
97
+ }>>;
98
+ before: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
99
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
100
+ }, z.core.$strict>;
101
+ /** `GET notes` : recherche par mots dans le titre et le contenu des notes. */
102
+ export declare const SearchNotesQuerySchema: z.ZodObject<{
103
+ query: z.ZodOptional<z.ZodString>;
104
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
105
+ }, z.core.$strict>;
106
+ /** `GET documents/:ref` : partie du texte à lire, à partir de 1. */
107
+ export declare const GetDocumentQuerySchema: z.ZodObject<{
108
+ part: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
109
+ }, z.core.$strict>;
87
110
  /** `GET tasks/:ref` et `GET context` : sans paramètre. */
88
111
  export declare const NoQuerySchema: z.ZodObject<{}, z.core.$strict>;
89
112
  export declare const CreateTaskBodySchema: z.ZodObject<{
@@ -315,6 +338,10 @@ export declare const CreateViewBodySchema: z.ZodObject<{
315
338
  assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
316
339
  unassigned: z.ZodOptional<z.ZodBoolean>;
317
340
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
341
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
342
+ standard: "standard";
343
+ test: "test";
344
+ }>>>;
318
345
  request_id: z.ZodOptional<z.ZodString>;
319
346
  name: z.ZodString;
320
347
  }, z.core.$strict>;
@@ -351,11 +378,31 @@ export declare const UpdateViewBodySchema: z.ZodObject<{
351
378
  assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
352
379
  unassigned: z.ZodOptional<z.ZodBoolean>;
353
380
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
381
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
382
+ standard: "standard";
383
+ test: "test";
384
+ }>>>;
354
385
  request_id: z.ZodOptional<z.ZodString>;
355
386
  }, z.core.$strict>;
356
387
  export declare const DeleteViewBodySchema: z.ZodObject<{
357
388
  request_id: z.ZodOptional<z.ZodString>;
358
389
  }, z.core.$strict>;
390
+ /** `POST tasks/:task/timer` : démarre le chrono de l'auteur de la demande ; réglages pomodoro absents : ceux de ses préférences. */
391
+ export declare const StartTimerBodySchema: z.ZodObject<{
392
+ request_id: z.ZodOptional<z.ZodString>;
393
+ mode: z.ZodOptional<z.ZodEnum<{
394
+ free: "free";
395
+ pomodoro: "pomodoro";
396
+ }>>;
397
+ work_minutes: z.ZodOptional<z.ZodNumber>;
398
+ short_break_minutes: z.ZodOptional<z.ZodNumber>;
399
+ long_break_minutes: z.ZodOptional<z.ZodNumber>;
400
+ cycles: z.ZodOptional<z.ZodNumber>;
401
+ }, z.core.$strict>;
402
+ /** `POST tasks/:task/timer/stop` : arrête le chrono de l'auteur de la demande. */
403
+ export declare const StopTimerBodySchema: z.ZodObject<{
404
+ request_id: z.ZodOptional<z.ZodString>;
405
+ }, z.core.$strict>;
359
406
  /** Enveloppe de toute réponse réussie : texte pour l'agent et données structurées. */
360
407
  export declare const AgentEnvelopeSchema: z.ZodObject<{
361
408
  text: z.ZodString;
@@ -521,6 +568,22 @@ export declare const ListRequestsDataSchema: z.ZodObject<{
521
568
  parentRequestId: z.ZodNullable<z.ZodString>;
522
569
  }, z.core.$strip>>;
523
570
  }, z.core.$strip>;
571
+ /** Document de référence d'un espace tel que l'agent le voit ; `readable` : l'agent lit son contenu avec get_document. */
572
+ export declare const AgentDocumentSchema: z.ZodObject<{
573
+ id: z.ZodString;
574
+ filename: z.ZodString;
575
+ description: z.ZodString;
576
+ format: z.ZodString;
577
+ mime: z.ZodString;
578
+ size: z.ZodNumber;
579
+ version: z.ZodNumber;
580
+ readable: z.ZodBoolean;
581
+ uploadedBy: z.ZodString;
582
+ updatedBy: z.ZodString;
583
+ createdAt: z.ZodISODateTime;
584
+ updatedAt: z.ZodISODateTime;
585
+ }, z.core.$strip>;
586
+ export type AgentDocument = z.infer<typeof AgentDocumentSchema>;
524
587
  export declare const ClaimRequestDataSchema: z.ZodObject<{
525
588
  request: z.ZodObject<{
526
589
  id: z.ZodString;
@@ -748,6 +811,20 @@ export declare const ClaimRequestDataSchema: z.ZodObject<{
748
811
  promotedTaskKey: z.ZodNullable<z.ZodString>;
749
812
  createdAt: z.ZodISODateTime;
750
813
  }, z.core.$strip>>;
814
+ documents: z.ZodArray<z.ZodObject<{
815
+ id: z.ZodString;
816
+ filename: z.ZodString;
817
+ description: z.ZodString;
818
+ format: z.ZodString;
819
+ mime: z.ZodString;
820
+ size: z.ZodNumber;
821
+ version: z.ZodNumber;
822
+ readable: z.ZodBoolean;
823
+ uploadedBy: z.ZodString;
824
+ updatedBy: z.ZodString;
825
+ createdAt: z.ZodISODateTime;
826
+ updatedAt: z.ZodISODateTime;
827
+ }, z.core.$strip>>;
751
828
  }, z.core.$strip>;
752
829
  export declare const FinishRequestDataSchema: z.ZodObject<{
753
830
  request: z.ZodObject<{
@@ -888,6 +965,20 @@ export declare const ContextDataSchema: z.ZodObject<{
888
965
  promotedTaskKey: z.ZodNullable<z.ZodString>;
889
966
  createdAt: z.ZodISODateTime;
890
967
  }, z.core.$strip>>;
968
+ documents: z.ZodArray<z.ZodObject<{
969
+ id: z.ZodString;
970
+ filename: z.ZodString;
971
+ description: z.ZodString;
972
+ format: z.ZodString;
973
+ mime: z.ZodString;
974
+ size: z.ZodNumber;
975
+ version: z.ZodNumber;
976
+ readable: z.ZodBoolean;
977
+ uploadedBy: z.ZodString;
978
+ updatedBy: z.ZodString;
979
+ createdAt: z.ZodISODateTime;
980
+ updatedAt: z.ZodISODateTime;
981
+ }, z.core.$strip>>;
891
982
  }, z.core.$strip>;
892
983
  export declare const TaskDataSchema: z.ZodObject<{
893
984
  task: z.ZodObject<{
@@ -1025,8 +1116,17 @@ export declare const TaskDetailDataSchema: z.ZodObject<{
1025
1116
  byAgent: z.ZodBoolean;
1026
1117
  body: z.ZodString;
1027
1118
  createdAt: z.ZodISODateTime;
1119
+ images: z.ZodArray<z.ZodObject<{
1120
+ id: z.ZodString;
1121
+ name: z.ZodString;
1122
+ }, z.core.$strip>>;
1123
+ }, z.core.$strip>>;
1124
+ attachments: z.ZodArray<z.ZodObject<{
1125
+ id: z.ZodString;
1126
+ filename: z.ZodString;
1127
+ mime: z.ZodString;
1128
+ size: z.ZodNumber;
1028
1129
  }, z.core.$strip>>;
1029
- attachments: z.ZodArray<z.ZodString>;
1030
1130
  }, z.core.$strip>;
1031
1131
  export declare const SearchTasksDataSchema: z.ZodObject<{
1032
1132
  tasks: z.ZodArray<z.ZodObject<{
@@ -1158,6 +1258,303 @@ export declare const CommentDataSchema: z.ZodObject<{
1158
1258
  }, z.core.$strip>;
1159
1259
  commentId: z.ZodString;
1160
1260
  }, z.core.$strip>;
1261
+ /** Note d'un espace telle que l'agent la voit dans une liste ; `link` est le fragment qui la référence dans un texte. */
1262
+ export declare const AgentNoteSchema: z.ZodObject<{
1263
+ id: z.ZodString;
1264
+ title: z.ZodString;
1265
+ link: z.ZodString;
1266
+ authorName: z.ZodString;
1267
+ createdAt: z.ZodISODateTime;
1268
+ updatedAt: z.ZodISODateTime;
1269
+ }, z.core.$strip>;
1270
+ export type AgentNote = z.infer<typeof AgentNoteSchema>;
1271
+ export declare const NoteDetailDataSchema: z.ZodObject<{
1272
+ note: z.ZodObject<{
1273
+ id: z.ZodString;
1274
+ title: z.ZodString;
1275
+ link: z.ZodString;
1276
+ authorName: z.ZodString;
1277
+ createdAt: z.ZodISODateTime;
1278
+ updatedAt: z.ZodISODateTime;
1279
+ }, z.core.$strip>;
1280
+ body: z.ZodString;
1281
+ }, z.core.$strip>;
1282
+ export declare const HistoryDataSchema: z.ZodObject<{
1283
+ events: z.ZodArray<z.ZodObject<{
1284
+ id: z.ZodString;
1285
+ seq: z.ZodNumber;
1286
+ at: z.ZodISODateTime;
1287
+ category: z.ZodEnum<{
1288
+ document: "document";
1289
+ idea: "idea";
1290
+ member: "member";
1291
+ note: "note";
1292
+ task: "task";
1293
+ }>;
1294
+ actor: z.ZodObject<{
1295
+ type: z.ZodEnum<{
1296
+ agent: "agent";
1297
+ user: "user";
1298
+ }>;
1299
+ id: z.ZodNullable<z.ZodString>;
1300
+ name: z.ZodString;
1301
+ }, z.core.$strip>;
1302
+ request: z.ZodNullable<z.ZodObject<{
1303
+ id: z.ZodString;
1304
+ text: z.ZodString;
1305
+ }, z.core.$strip>>;
1306
+ task: z.ZodNullable<z.ZodObject<{
1307
+ id: z.ZodString;
1308
+ key: z.ZodString;
1309
+ title: z.ZodString;
1310
+ deleted: z.ZodBoolean;
1311
+ }, z.core.$strip>>;
1312
+ version: z.ZodNullable<z.ZodNumber>;
1313
+ restorable: z.ZodBoolean;
1314
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1315
+ kind: z.ZodLiteral<"created">;
1316
+ }, z.core.$strip>, z.ZodObject<{
1317
+ kind: z.ZodLiteral<"deleted">;
1318
+ }, z.core.$strip>, z.ZodObject<{
1319
+ kind: z.ZodLiteral<"restored">;
1320
+ }, z.core.$strip>, z.ZodObject<{
1321
+ kind: z.ZodLiteral<"title">;
1322
+ from: z.ZodString;
1323
+ to: z.ZodString;
1324
+ }, z.core.$strip>, z.ZodObject<{
1325
+ kind: z.ZodLiteral<"status">;
1326
+ from: z.ZodEnum<{
1327
+ doing: "doing";
1328
+ done: "done";
1329
+ review: "review";
1330
+ todo: "todo";
1331
+ }>;
1332
+ to: z.ZodEnum<{
1333
+ doing: "doing";
1334
+ done: "done";
1335
+ review: "review";
1336
+ todo: "todo";
1337
+ }>;
1338
+ }, z.core.$strip>, z.ZodObject<{
1339
+ kind: z.ZodLiteral<"priority">;
1340
+ from: z.ZodEnum<{
1341
+ critical: "critical";
1342
+ high: "high";
1343
+ low: "low";
1344
+ medium: "medium";
1345
+ }>;
1346
+ to: z.ZodEnum<{
1347
+ critical: "critical";
1348
+ high: "high";
1349
+ low: "low";
1350
+ medium: "medium";
1351
+ }>;
1352
+ }, z.core.$strip>, z.ZodObject<{
1353
+ kind: z.ZodLiteral<"type">;
1354
+ from: z.ZodEnum<{
1355
+ standard: "standard";
1356
+ test: "test";
1357
+ }>;
1358
+ to: z.ZodEnum<{
1359
+ standard: "standard";
1360
+ test: "test";
1361
+ }>;
1362
+ }, z.core.$strip>, z.ZodObject<{
1363
+ kind: z.ZodLiteral<"description">;
1364
+ added: z.ZodNumber;
1365
+ removed: z.ZodNumber;
1366
+ lines: z.ZodNullable<z.ZodArray<z.ZodObject<{
1367
+ kind: z.ZodEnum<{
1368
+ add: "add";
1369
+ del: "del";
1370
+ same: "same";
1371
+ }>;
1372
+ text: z.ZodString;
1373
+ }, z.core.$strip>>>;
1374
+ }, z.core.$strip>, z.ZodObject<{
1375
+ kind: z.ZodLiteral<"assignees">;
1376
+ added: z.ZodArray<z.ZodObject<{
1377
+ id: z.ZodNullable<z.ZodString>;
1378
+ name: z.ZodString;
1379
+ }, z.core.$strip>>;
1380
+ removed: z.ZodArray<z.ZodObject<{
1381
+ id: z.ZodNullable<z.ZodString>;
1382
+ name: z.ZodString;
1383
+ }, z.core.$strip>>;
1384
+ }, z.core.$strip>, z.ZodObject<{
1385
+ kind: z.ZodLiteral<"tags">;
1386
+ added: z.ZodArray<z.ZodString>;
1387
+ removed: z.ZodArray<z.ZodString>;
1388
+ }, z.core.$strip>, z.ZodObject<{
1389
+ kind: z.ZodLiteral<"parent">;
1390
+ from: z.ZodNullable<z.ZodObject<{
1391
+ id: z.ZodString;
1392
+ key: z.ZodString;
1393
+ title: z.ZodString;
1394
+ deleted: z.ZodBoolean;
1395
+ }, z.core.$strip>>;
1396
+ to: z.ZodNullable<z.ZodObject<{
1397
+ id: z.ZodString;
1398
+ key: z.ZodString;
1399
+ title: z.ZodString;
1400
+ deleted: z.ZodBoolean;
1401
+ }, z.core.$strip>>;
1402
+ }, z.core.$strip>, z.ZodObject<{
1403
+ kind: z.ZodLiteral<"tested">;
1404
+ from: z.ZodNullable<z.ZodObject<{
1405
+ id: z.ZodString;
1406
+ key: z.ZodString;
1407
+ title: z.ZodString;
1408
+ deleted: z.ZodBoolean;
1409
+ }, z.core.$strip>>;
1410
+ to: z.ZodNullable<z.ZodObject<{
1411
+ id: z.ZodString;
1412
+ key: z.ZodString;
1413
+ title: z.ZodString;
1414
+ deleted: z.ZodBoolean;
1415
+ }, z.core.$strip>>;
1416
+ }, z.core.$strip>, z.ZodObject<{
1417
+ kind: z.ZodLiteral<"checklist">;
1418
+ action: z.ZodEnum<{
1419
+ added: "added";
1420
+ checked: "checked";
1421
+ edited: "edited";
1422
+ removed: "removed";
1423
+ unchecked: "unchecked";
1424
+ }>;
1425
+ text: z.ZodString;
1426
+ previous: z.ZodNullable<z.ZodString>;
1427
+ }, z.core.$strip>, z.ZodObject<{
1428
+ kind: z.ZodLiteral<"checkpoint">;
1429
+ action: z.ZodEnum<{
1430
+ added: "added";
1431
+ edited: "edited";
1432
+ removed: "removed";
1433
+ }>;
1434
+ text: z.ZodString;
1435
+ previous: z.ZodNullable<z.ZodString>;
1436
+ }, z.core.$strip>, z.ZodObject<{
1437
+ kind: z.ZodLiteral<"idea">;
1438
+ action: z.ZodEnum<{
1439
+ archived: "archived";
1440
+ created: "created";
1441
+ deleted: "deleted";
1442
+ edited: "edited";
1443
+ promoted: "promoted";
1444
+ restored: "restored";
1445
+ unarchived: "unarchived";
1446
+ }>;
1447
+ text: z.ZodString;
1448
+ previous: z.ZodNullable<z.ZodString>;
1449
+ task: z.ZodNullable<z.ZodObject<{
1450
+ id: z.ZodString;
1451
+ key: z.ZodString;
1452
+ title: z.ZodString;
1453
+ deleted: z.ZodBoolean;
1454
+ }, z.core.$strip>>;
1455
+ }, z.core.$strip>, z.ZodObject<{
1456
+ kind: z.ZodLiteral<"member">;
1457
+ action: z.ZodEnum<{
1458
+ added: "added";
1459
+ created_space: "created_space";
1460
+ joined: "joined";
1461
+ left: "left";
1462
+ removed: "removed";
1463
+ role: "role";
1464
+ }>;
1465
+ person: z.ZodObject<{
1466
+ id: z.ZodNullable<z.ZodString>;
1467
+ name: z.ZodString;
1468
+ }, z.core.$strip>;
1469
+ role: z.ZodEnum<{
1470
+ member: "member";
1471
+ owner: "owner";
1472
+ }>;
1473
+ }, z.core.$strip>, z.ZodObject<{
1474
+ kind: z.ZodLiteral<"invitation">;
1475
+ action: z.ZodEnum<{
1476
+ declined: "declined";
1477
+ invited: "invited";
1478
+ revoked: "revoked";
1479
+ }>;
1480
+ person: z.ZodObject<{
1481
+ id: z.ZodNullable<z.ZodString>;
1482
+ name: z.ZodString;
1483
+ }, z.core.$strip>;
1484
+ }, z.core.$strip>, z.ZodObject<{
1485
+ kind: z.ZodLiteral<"note">;
1486
+ action: z.ZodEnum<{
1487
+ created: "created";
1488
+ deleted: "deleted";
1489
+ edited: "edited";
1490
+ renamed: "renamed";
1491
+ restored: "restored";
1492
+ }>;
1493
+ noteId: z.ZodString;
1494
+ title: z.ZodString;
1495
+ previous: z.ZodNullable<z.ZodString>;
1496
+ }, z.core.$strip>, z.ZodObject<{
1497
+ kind: z.ZodLiteral<"document">;
1498
+ action: z.ZodEnum<{
1499
+ added: "added";
1500
+ deleted: "deleted";
1501
+ described: "described";
1502
+ replaced: "replaced";
1503
+ restored: "restored";
1504
+ }>;
1505
+ filename: z.ZodString;
1506
+ }, z.core.$strip>], "kind">>;
1507
+ }, z.core.$strip>>;
1508
+ total: z.ZodNumber;
1509
+ nextBefore: z.ZodNullable<z.ZodNumber>;
1510
+ }, z.core.$strip>;
1511
+ export declare const SearchNotesDataSchema: z.ZodObject<{
1512
+ notes: z.ZodArray<z.ZodObject<{
1513
+ id: z.ZodString;
1514
+ title: z.ZodString;
1515
+ link: z.ZodString;
1516
+ authorName: z.ZodString;
1517
+ createdAt: z.ZodISODateTime;
1518
+ updatedAt: z.ZodISODateTime;
1519
+ }, z.core.$strip>>;
1520
+ total: z.ZodNumber;
1521
+ }, z.core.$strip>;
1522
+ export declare const ListDocumentsDataSchema: z.ZodObject<{
1523
+ documents: z.ZodArray<z.ZodObject<{
1524
+ id: z.ZodString;
1525
+ filename: z.ZodString;
1526
+ description: z.ZodString;
1527
+ format: z.ZodString;
1528
+ mime: z.ZodString;
1529
+ size: z.ZodNumber;
1530
+ version: z.ZodNumber;
1531
+ readable: z.ZodBoolean;
1532
+ uploadedBy: z.ZodString;
1533
+ updatedBy: z.ZodString;
1534
+ createdAt: z.ZodISODateTime;
1535
+ updatedAt: z.ZodISODateTime;
1536
+ }, z.core.$strip>>;
1537
+ }, z.core.$strip>;
1538
+ /** Partie lue d'un document ; `text` est null pour un document dont l'agent ne lit pas le contenu. */
1539
+ export declare const DocumentDetailDataSchema: z.ZodObject<{
1540
+ document: z.ZodObject<{
1541
+ id: z.ZodString;
1542
+ filename: z.ZodString;
1543
+ description: z.ZodString;
1544
+ format: z.ZodString;
1545
+ mime: z.ZodString;
1546
+ size: z.ZodNumber;
1547
+ version: z.ZodNumber;
1548
+ readable: z.ZodBoolean;
1549
+ uploadedBy: z.ZodString;
1550
+ updatedBy: z.ZodString;
1551
+ createdAt: z.ZodISODateTime;
1552
+ updatedAt: z.ZodISODateTime;
1553
+ }, z.core.$strip>;
1554
+ part: z.ZodNumber;
1555
+ partCount: z.ZodNumber;
1556
+ text: z.ZodNullable<z.ZodString>;
1557
+ }, z.core.$strip>;
1161
1558
  export declare const IdeaDataSchema: z.ZodObject<{
1162
1559
  idea: z.ZodObject<{
1163
1560
  id: z.ZodString;
@@ -1201,7 +1598,7 @@ export declare const PromoteIdeaDataSchema: z.ZodObject<{
1201
1598
  tags: z.ZodArray<z.ZodString>;
1202
1599
  }, z.core.$strip>;
1203
1600
  }, z.core.$strip>;
1204
- /** Vue du tableau de bord d'un membre ; filtres vides : toutes les valeurs ; `tags` : noms des tags filtrés. */
1601
+ /** Vue du tableau de bord d'un membre ; filtres vides : toutes les valeurs ; `tags` : noms des tags filtrés ; `types` : types de tâche gardés. */
1205
1602
  export declare const AgentViewSchema: z.ZodObject<{
1206
1603
  id: z.ZodString;
1207
1604
  name: z.ZodString;
@@ -1236,6 +1633,10 @@ export declare const AgentViewSchema: z.ZodObject<{
1236
1633
  assigneeIds: z.ZodArray<z.ZodString>;
1237
1634
  unassigned: z.ZodBoolean;
1238
1635
  tags: z.ZodArray<z.ZodString>;
1636
+ types: z.ZodArray<z.ZodEnum<{
1637
+ standard: "standard";
1638
+ test: "test";
1639
+ }>>;
1239
1640
  }, z.core.$strip>;
1240
1641
  export type AgentView = z.infer<typeof AgentViewSchema>;
1241
1642
  /** Vues de l'auteur de la demande, dans l'ordre de ses onglets. */
@@ -1279,6 +1680,10 @@ export declare const ViewsDataSchema: z.ZodObject<{
1279
1680
  assigneeIds: z.ZodArray<z.ZodString>;
1280
1681
  unassigned: z.ZodBoolean;
1281
1682
  tags: z.ZodArray<z.ZodString>;
1683
+ types: z.ZodArray<z.ZodEnum<{
1684
+ standard: "standard";
1685
+ test: "test";
1686
+ }>>;
1282
1687
  }, z.core.$strip>>;
1283
1688
  }, z.core.$strip>;
1284
1689
  export declare const ViewDataSchema: z.ZodObject<{
@@ -1321,8 +1726,123 @@ export declare const ViewDataSchema: z.ZodObject<{
1321
1726
  assigneeIds: z.ZodArray<z.ZodString>;
1322
1727
  unassigned: z.ZodBoolean;
1323
1728
  tags: z.ZodArray<z.ZodString>;
1729
+ types: z.ZodArray<z.ZodEnum<{
1730
+ standard: "standard";
1731
+ test: "test";
1732
+ }>>;
1324
1733
  }, z.core.$strip>;
1325
1734
  }, z.core.$strip>;
1735
+ /** Session de chrono d'un membre sur une tâche ; `countedMs` : temps compté (phases de travail seules pour un pomodoro). */
1736
+ export declare const AgentTimeSessionSchema: z.ZodObject<{
1737
+ id: z.ZodString;
1738
+ member: z.ZodString;
1739
+ memberId: z.ZodString;
1740
+ mode: z.ZodEnum<{
1741
+ free: "free";
1742
+ pomodoro: "pomodoro";
1743
+ }>;
1744
+ pomodoro: z.ZodNullable<z.ZodObject<{
1745
+ workMinutes: z.ZodNumber;
1746
+ shortBreakMinutes: z.ZodNumber;
1747
+ longBreakMinutes: z.ZodNumber;
1748
+ cycles: z.ZodNumber;
1749
+ }, z.core.$strip>>;
1750
+ state: z.ZodEnum<{
1751
+ paused: "paused";
1752
+ running: "running";
1753
+ stopped: "stopped";
1754
+ }>;
1755
+ startedAt: z.ZodISODateTime;
1756
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
1757
+ countedMs: z.ZodNumber;
1758
+ }, z.core.$strip>;
1759
+ export type AgentTimeSession = z.infer<typeof AgentTimeSessionSchema>;
1760
+ /** Temps passé sur une tâche : total, total par membre, sessions. */
1761
+ export declare const TaskTimeDataSchema: z.ZodObject<{
1762
+ task: z.ZodObject<{
1763
+ id: z.ZodString;
1764
+ key: z.ZodString;
1765
+ title: z.ZodString;
1766
+ }, z.core.$strip>;
1767
+ totalMs: z.ZodNumber;
1768
+ byMember: z.ZodArray<z.ZodObject<{
1769
+ memberId: z.ZodString;
1770
+ member: z.ZodString;
1771
+ countedMs: z.ZodNumber;
1772
+ }, z.core.$strip>>;
1773
+ sessions: z.ZodArray<z.ZodObject<{
1774
+ id: z.ZodString;
1775
+ member: z.ZodString;
1776
+ memberId: z.ZodString;
1777
+ mode: z.ZodEnum<{
1778
+ free: "free";
1779
+ pomodoro: "pomodoro";
1780
+ }>;
1781
+ pomodoro: z.ZodNullable<z.ZodObject<{
1782
+ workMinutes: z.ZodNumber;
1783
+ shortBreakMinutes: z.ZodNumber;
1784
+ longBreakMinutes: z.ZodNumber;
1785
+ cycles: z.ZodNumber;
1786
+ }, z.core.$strip>>;
1787
+ state: z.ZodEnum<{
1788
+ paused: "paused";
1789
+ running: "running";
1790
+ stopped: "stopped";
1791
+ }>;
1792
+ startedAt: z.ZodISODateTime;
1793
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
1794
+ countedMs: z.ZodNumber;
1795
+ }, z.core.$strip>>;
1796
+ }, z.core.$strip>;
1797
+ /** Chrono démarré ou arrêté, et chrono mis en pause pour le laisser tourner. */
1798
+ export declare const TimerDataSchema: z.ZodObject<{
1799
+ session: z.ZodObject<{
1800
+ id: z.ZodString;
1801
+ member: z.ZodString;
1802
+ memberId: z.ZodString;
1803
+ mode: z.ZodEnum<{
1804
+ free: "free";
1805
+ pomodoro: "pomodoro";
1806
+ }>;
1807
+ pomodoro: z.ZodNullable<z.ZodObject<{
1808
+ workMinutes: z.ZodNumber;
1809
+ shortBreakMinutes: z.ZodNumber;
1810
+ longBreakMinutes: z.ZodNumber;
1811
+ cycles: z.ZodNumber;
1812
+ }, z.core.$strip>>;
1813
+ state: z.ZodEnum<{
1814
+ paused: "paused";
1815
+ running: "running";
1816
+ stopped: "stopped";
1817
+ }>;
1818
+ startedAt: z.ZodISODateTime;
1819
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
1820
+ countedMs: z.ZodNumber;
1821
+ }, z.core.$strip>;
1822
+ paused: z.ZodNullable<z.ZodObject<{
1823
+ id: z.ZodString;
1824
+ member: z.ZodString;
1825
+ memberId: z.ZodString;
1826
+ mode: z.ZodEnum<{
1827
+ free: "free";
1828
+ pomodoro: "pomodoro";
1829
+ }>;
1830
+ pomodoro: z.ZodNullable<z.ZodObject<{
1831
+ workMinutes: z.ZodNumber;
1832
+ shortBreakMinutes: z.ZodNumber;
1833
+ longBreakMinutes: z.ZodNumber;
1834
+ cycles: z.ZodNumber;
1835
+ }, z.core.$strip>>;
1836
+ state: z.ZodEnum<{
1837
+ paused: "paused";
1838
+ running: "running";
1839
+ stopped: "stopped";
1840
+ }>;
1841
+ startedAt: z.ZodISODateTime;
1842
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
1843
+ countedMs: z.ZodNumber;
1844
+ }, z.core.$strip>>;
1845
+ }, z.core.$strip>;
1326
1846
  /** Présence d'un veilleur de notifications pour le jeton. */
1327
1847
  export declare const AgentWatcherSchema: z.ZodObject<{
1328
1848
  armed: z.ZodBoolean;