@imenam/mcp-organizer 1.0.20 → 1.0.22

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 (119) hide show
  1. package/README.md +110 -32
  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 +20 -0
  5. package/dist/shared/logic/documents.js +33 -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 +648 -2
  15. package/dist/shared/schemas/agent-tools.schema.js +158 -8
  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 +47 -0
  19. package/dist/shared/schemas/documents-api.schema.js +36 -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/attachments.d.ts +2 -0
  39. package/dist/src/agent-api/attachments.js +96 -0
  40. package/dist/src/agent-api/documents.d.ts +3 -0
  41. package/dist/src/agent-api/documents.js +42 -0
  42. package/dist/src/agent-api/files.d.ts +35 -0
  43. package/dist/src/agent-api/files.js +86 -0
  44. package/dist/src/agent-api/history.d.ts +3 -0
  45. package/dist/src/agent-api/history.js +103 -0
  46. package/dist/src/agent-api/notes.d.ts +3 -0
  47. package/dist/src/agent-api/notes.js +39 -0
  48. package/dist/src/agent-api/requests.js +2 -1
  49. package/dist/src/agent-api/router.d.ts +2 -2
  50. package/dist/src/agent-api/router.js +9 -4
  51. package/dist/src/agent-api/tasks.js +13 -5
  52. package/dist/src/agent-api/timers.d.ts +2 -0
  53. package/dist/src/agent-api/timers.js +170 -0
  54. package/dist/src/agent-api/types.d.ts +7 -2
  55. package/dist/src/agent-api/views.js +15 -30
  56. package/dist/src/cli/backup.js +3 -3
  57. package/dist/src/core/accounts.d.ts +12 -5
  58. package/dist/src/core/accounts.js +28 -10
  59. package/dist/src/core/agent-files.d.ts +41 -0
  60. package/dist/src/core/agent-files.js +102 -0
  61. package/dist/src/core/agent.d.ts +29 -3
  62. package/dist/src/core/agent.js +129 -1
  63. package/dist/src/core/attachments.d.ts +6 -3
  64. package/dist/src/core/attachments.js +9 -4
  65. package/dist/src/core/board-views.js +4 -4
  66. package/dist/src/core/document-text.d.ts +18 -0
  67. package/dist/src/core/document-text.js +119 -0
  68. package/dist/src/core/documents.d.ts +22 -0
  69. package/dist/src/core/documents.js +167 -0
  70. package/dist/src/core/history-events.d.ts +34 -0
  71. package/dist/src/core/history-events.js +236 -0
  72. package/dist/src/core/history.d.ts +3 -1
  73. package/dist/src/core/history.js +59 -12
  74. package/dist/src/core/migrations.js +153 -0
  75. package/dist/src/core/notes.d.ts +23 -0
  76. package/dist/src/core/notes.js +78 -0
  77. package/dist/src/core/notifications.d.ts +48 -5
  78. package/dist/src/core/notifications.js +209 -33
  79. package/dist/src/core/password-reset.d.ts +37 -0
  80. package/dist/src/core/password-reset.js +56 -0
  81. package/dist/src/core/requests.d.ts +13 -7
  82. package/dist/src/core/requests.js +26 -14
  83. package/dist/src/core/snapshots.d.ts +3 -3
  84. package/dist/src/core/snapshots.js +5 -1
  85. package/dist/src/core/space-history.d.ts +18 -0
  86. package/dist/src/core/space-history.js +86 -0
  87. package/dist/src/core/spaces.d.ts +1 -1
  88. package/dist/src/core/spaces.js +4 -4
  89. package/dist/src/core/store.d.ts +154 -11
  90. package/dist/src/core/store.js +479 -52
  91. package/dist/src/core/task-history.d.ts +9 -5
  92. package/dist/src/core/task-history.js +17 -25
  93. package/dist/src/core/tasks.d.ts +2 -2
  94. package/dist/src/core/tasks.js +13 -2
  95. package/dist/src/core/timers.d.ts +33 -0
  96. package/dist/src/core/timers.js +101 -0
  97. package/dist/src/core/versions.d.ts +22 -0
  98. package/dist/src/core/versions.js +106 -0
  99. package/dist/src/gui-api.d.ts +4 -1
  100. package/dist/src/gui-api.js +87 -8
  101. package/dist/src/mcp/client.d.ts +7 -4
  102. package/dist/src/mcp/client.js +31 -4
  103. package/dist/src/mcp/start.d.ts +1 -1
  104. package/dist/src/mcp/start.js +14 -9
  105. package/dist/src/mcp/tools.d.ts +11 -0
  106. package/dist/src/mcp/tools.js +182 -5
  107. package/dist/src/mcp/upload.d.ts +22 -0
  108. package/dist/src/mcp/upload.js +79 -0
  109. package/dist/src/server/app.d.ts +4 -2
  110. package/dist/src/server/app.js +58 -8
  111. package/dist/src/server/login-limiter.d.ts +27 -1
  112. package/dist/src/server/login-limiter.js +31 -1
  113. package/dist/src/server/start.js +1 -0
  114. package/gui/dist/assets/index-C1f7hOcM.js +104 -0
  115. package/gui/dist/assets/index-CfMiwPSL.css +1 -0
  116. package/gui/dist/index.html +2 -2
  117. package/package.json +3 -1
  118. package/gui/dist/assets/index-9c9BlfUi.js +0 -99
  119. package/gui/dist/assets/index-DH23A5aa.css +0 -1
@@ -0,0 +1,961 @@
1
+ import { z } from "zod";
2
+ /** Historique des événements : celui d'une tâche (modale du détail) et celui d'un espace (page Historique). */
3
+ /** Catégories d'événements, filtre « Type d'événement » de l'historique de l'espace. */
4
+ export declare const HISTORY_CATEGORIES: readonly ["task", "idea", "member", "note", "document"];
5
+ export declare const HistoryCategorySchema: z.ZodEnum<{
6
+ document: "document";
7
+ idea: "idea";
8
+ member: "member";
9
+ note: "note";
10
+ task: "task";
11
+ }>;
12
+ export type HistoryCategory = z.infer<typeof HistoryCategorySchema>;
13
+ export declare const MAX_HISTORY_PAGE = 100;
14
+ export declare const DEFAULT_HISTORY_PAGE = 50;
15
+ /** Personne nommée par un événement ; `id` est null pour une adresse invitée sans compte connu. */
16
+ export declare const HistoryPersonSchema: z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodString>;
18
+ name: z.ZodString;
19
+ }, z.core.$strip>;
20
+ export type HistoryPerson = z.infer<typeof HistoryPersonSchema>;
21
+ /** Tâche nommée par un événement : sa clé et son titre, existante ou supprimée. */
22
+ export declare const HistoryTaskRefSchema: z.ZodObject<{
23
+ id: z.ZodString;
24
+ key: z.ZodString;
25
+ title: z.ZodString;
26
+ deleted: z.ZodBoolean;
27
+ }, z.core.$strip>;
28
+ export type HistoryTaskRef = z.infer<typeof HistoryTaskRefSchema>;
29
+ /** Ligne d'un diff de texte : inchangée, ajoutée ou retirée. */
30
+ export declare const DiffLineSchema: z.ZodObject<{
31
+ kind: z.ZodEnum<{
32
+ add: "add";
33
+ del: "del";
34
+ same: "same";
35
+ }>;
36
+ text: z.ZodString;
37
+ }, z.core.$strip>;
38
+ export type DiffLine = z.infer<typeof DiffLineSchema>;
39
+ /** Changement élémentaire d'un événement, que la GUI met en phrase. */
40
+ export declare const HistoryChangeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
41
+ kind: z.ZodLiteral<"created">;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ kind: z.ZodLiteral<"deleted">;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ kind: z.ZodLiteral<"restored">;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ kind: z.ZodLiteral<"title">;
48
+ from: z.ZodString;
49
+ to: z.ZodString;
50
+ }, z.core.$strip>, z.ZodObject<{
51
+ kind: z.ZodLiteral<"status">;
52
+ from: z.ZodEnum<{
53
+ doing: "doing";
54
+ done: "done";
55
+ review: "review";
56
+ todo: "todo";
57
+ }>;
58
+ to: z.ZodEnum<{
59
+ doing: "doing";
60
+ done: "done";
61
+ review: "review";
62
+ todo: "todo";
63
+ }>;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ kind: z.ZodLiteral<"priority">;
66
+ from: z.ZodEnum<{
67
+ critical: "critical";
68
+ high: "high";
69
+ low: "low";
70
+ medium: "medium";
71
+ }>;
72
+ to: z.ZodEnum<{
73
+ critical: "critical";
74
+ high: "high";
75
+ low: "low";
76
+ medium: "medium";
77
+ }>;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ kind: z.ZodLiteral<"type">;
80
+ from: z.ZodEnum<{
81
+ standard: "standard";
82
+ test: "test";
83
+ }>;
84
+ to: z.ZodEnum<{
85
+ standard: "standard";
86
+ test: "test";
87
+ }>;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ kind: z.ZodLiteral<"description">;
90
+ added: z.ZodNumber;
91
+ removed: z.ZodNumber;
92
+ lines: z.ZodNullable<z.ZodArray<z.ZodObject<{
93
+ kind: z.ZodEnum<{
94
+ add: "add";
95
+ del: "del";
96
+ same: "same";
97
+ }>;
98
+ text: z.ZodString;
99
+ }, z.core.$strip>>>;
100
+ }, z.core.$strip>, z.ZodObject<{
101
+ kind: z.ZodLiteral<"assignees">;
102
+ added: z.ZodArray<z.ZodObject<{
103
+ id: z.ZodNullable<z.ZodString>;
104
+ name: z.ZodString;
105
+ }, z.core.$strip>>;
106
+ removed: z.ZodArray<z.ZodObject<{
107
+ id: z.ZodNullable<z.ZodString>;
108
+ name: z.ZodString;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ kind: z.ZodLiteral<"tags">;
112
+ added: z.ZodArray<z.ZodString>;
113
+ removed: z.ZodArray<z.ZodString>;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ kind: z.ZodLiteral<"parent">;
116
+ from: z.ZodNullable<z.ZodObject<{
117
+ id: z.ZodString;
118
+ key: z.ZodString;
119
+ title: z.ZodString;
120
+ deleted: z.ZodBoolean;
121
+ }, z.core.$strip>>;
122
+ to: z.ZodNullable<z.ZodObject<{
123
+ id: z.ZodString;
124
+ key: z.ZodString;
125
+ title: z.ZodString;
126
+ deleted: z.ZodBoolean;
127
+ }, z.core.$strip>>;
128
+ }, z.core.$strip>, z.ZodObject<{
129
+ kind: z.ZodLiteral<"tested">;
130
+ from: z.ZodNullable<z.ZodObject<{
131
+ id: z.ZodString;
132
+ key: z.ZodString;
133
+ title: z.ZodString;
134
+ deleted: z.ZodBoolean;
135
+ }, z.core.$strip>>;
136
+ to: z.ZodNullable<z.ZodObject<{
137
+ id: z.ZodString;
138
+ key: z.ZodString;
139
+ title: z.ZodString;
140
+ deleted: z.ZodBoolean;
141
+ }, z.core.$strip>>;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ kind: z.ZodLiteral<"checklist">;
144
+ action: z.ZodEnum<{
145
+ added: "added";
146
+ checked: "checked";
147
+ edited: "edited";
148
+ removed: "removed";
149
+ unchecked: "unchecked";
150
+ }>;
151
+ text: z.ZodString;
152
+ previous: z.ZodNullable<z.ZodString>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ kind: z.ZodLiteral<"checkpoint">;
155
+ action: z.ZodEnum<{
156
+ added: "added";
157
+ edited: "edited";
158
+ removed: "removed";
159
+ }>;
160
+ text: z.ZodString;
161
+ previous: z.ZodNullable<z.ZodString>;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ kind: z.ZodLiteral<"idea">;
164
+ action: z.ZodEnum<{
165
+ archived: "archived";
166
+ created: "created";
167
+ deleted: "deleted";
168
+ edited: "edited";
169
+ promoted: "promoted";
170
+ restored: "restored";
171
+ unarchived: "unarchived";
172
+ }>;
173
+ text: z.ZodString;
174
+ previous: z.ZodNullable<z.ZodString>;
175
+ task: z.ZodNullable<z.ZodObject<{
176
+ id: z.ZodString;
177
+ key: z.ZodString;
178
+ title: z.ZodString;
179
+ deleted: z.ZodBoolean;
180
+ }, z.core.$strip>>;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ kind: z.ZodLiteral<"member">;
183
+ action: z.ZodEnum<{
184
+ added: "added";
185
+ created_space: "created_space";
186
+ joined: "joined";
187
+ left: "left";
188
+ removed: "removed";
189
+ role: "role";
190
+ }>;
191
+ person: z.ZodObject<{
192
+ id: z.ZodNullable<z.ZodString>;
193
+ name: z.ZodString;
194
+ }, z.core.$strip>;
195
+ role: z.ZodEnum<{
196
+ member: "member";
197
+ owner: "owner";
198
+ }>;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ kind: z.ZodLiteral<"invitation">;
201
+ action: z.ZodEnum<{
202
+ declined: "declined";
203
+ invited: "invited";
204
+ revoked: "revoked";
205
+ }>;
206
+ person: z.ZodObject<{
207
+ id: z.ZodNullable<z.ZodString>;
208
+ name: z.ZodString;
209
+ }, z.core.$strip>;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ kind: z.ZodLiteral<"note">;
212
+ action: z.ZodEnum<{
213
+ created: "created";
214
+ deleted: "deleted";
215
+ edited: "edited";
216
+ renamed: "renamed";
217
+ restored: "restored";
218
+ }>;
219
+ noteId: z.ZodString;
220
+ title: z.ZodString;
221
+ previous: z.ZodNullable<z.ZodString>;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ kind: z.ZodLiteral<"document">;
224
+ action: z.ZodEnum<{
225
+ added: "added";
226
+ deleted: "deleted";
227
+ described: "described";
228
+ replaced: "replaced";
229
+ restored: "restored";
230
+ }>;
231
+ filename: z.ZodString;
232
+ }, z.core.$strip>], "kind">;
233
+ export type HistoryChange = z.infer<typeof HistoryChangeSchema>;
234
+ /**
235
+ * Événement de l'historique : une version d'une entité, faite par une
236
+ * mutation. Pour l'agent, `actor` nomme le membre pour qui il agit (l'auteur
237
+ * de la demande) et `request` la demande traitée. `task` est la tâche
238
+ * concernée, `version` le numéro de version de la tâche que l'événement a
239
+ * produite (cible de « Restaurer »), `restorable` vrai pour la suppression
240
+ * d'une tâche toujours supprimée.
241
+ */
242
+ export declare const HistoryEventSchema: z.ZodObject<{
243
+ id: z.ZodString;
244
+ seq: z.ZodNumber;
245
+ at: z.ZodISODateTime;
246
+ category: z.ZodEnum<{
247
+ document: "document";
248
+ idea: "idea";
249
+ member: "member";
250
+ note: "note";
251
+ task: "task";
252
+ }>;
253
+ actor: z.ZodObject<{
254
+ type: z.ZodEnum<{
255
+ agent: "agent";
256
+ user: "user";
257
+ }>;
258
+ id: z.ZodNullable<z.ZodString>;
259
+ name: z.ZodString;
260
+ }, z.core.$strip>;
261
+ request: z.ZodNullable<z.ZodObject<{
262
+ id: z.ZodString;
263
+ text: z.ZodString;
264
+ }, z.core.$strip>>;
265
+ task: z.ZodNullable<z.ZodObject<{
266
+ id: z.ZodString;
267
+ key: z.ZodString;
268
+ title: z.ZodString;
269
+ deleted: z.ZodBoolean;
270
+ }, z.core.$strip>>;
271
+ version: z.ZodNullable<z.ZodNumber>;
272
+ restorable: z.ZodBoolean;
273
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
274
+ kind: z.ZodLiteral<"created">;
275
+ }, z.core.$strip>, z.ZodObject<{
276
+ kind: z.ZodLiteral<"deleted">;
277
+ }, z.core.$strip>, z.ZodObject<{
278
+ kind: z.ZodLiteral<"restored">;
279
+ }, z.core.$strip>, z.ZodObject<{
280
+ kind: z.ZodLiteral<"title">;
281
+ from: z.ZodString;
282
+ to: z.ZodString;
283
+ }, z.core.$strip>, z.ZodObject<{
284
+ kind: z.ZodLiteral<"status">;
285
+ from: z.ZodEnum<{
286
+ doing: "doing";
287
+ done: "done";
288
+ review: "review";
289
+ todo: "todo";
290
+ }>;
291
+ to: z.ZodEnum<{
292
+ doing: "doing";
293
+ done: "done";
294
+ review: "review";
295
+ todo: "todo";
296
+ }>;
297
+ }, z.core.$strip>, z.ZodObject<{
298
+ kind: z.ZodLiteral<"priority">;
299
+ from: z.ZodEnum<{
300
+ critical: "critical";
301
+ high: "high";
302
+ low: "low";
303
+ medium: "medium";
304
+ }>;
305
+ to: z.ZodEnum<{
306
+ critical: "critical";
307
+ high: "high";
308
+ low: "low";
309
+ medium: "medium";
310
+ }>;
311
+ }, z.core.$strip>, z.ZodObject<{
312
+ kind: z.ZodLiteral<"type">;
313
+ from: z.ZodEnum<{
314
+ standard: "standard";
315
+ test: "test";
316
+ }>;
317
+ to: z.ZodEnum<{
318
+ standard: "standard";
319
+ test: "test";
320
+ }>;
321
+ }, z.core.$strip>, z.ZodObject<{
322
+ kind: z.ZodLiteral<"description">;
323
+ added: z.ZodNumber;
324
+ removed: z.ZodNumber;
325
+ lines: z.ZodNullable<z.ZodArray<z.ZodObject<{
326
+ kind: z.ZodEnum<{
327
+ add: "add";
328
+ del: "del";
329
+ same: "same";
330
+ }>;
331
+ text: z.ZodString;
332
+ }, z.core.$strip>>>;
333
+ }, z.core.$strip>, z.ZodObject<{
334
+ kind: z.ZodLiteral<"assignees">;
335
+ added: z.ZodArray<z.ZodObject<{
336
+ id: z.ZodNullable<z.ZodString>;
337
+ name: z.ZodString;
338
+ }, z.core.$strip>>;
339
+ removed: z.ZodArray<z.ZodObject<{
340
+ id: z.ZodNullable<z.ZodString>;
341
+ name: z.ZodString;
342
+ }, z.core.$strip>>;
343
+ }, z.core.$strip>, z.ZodObject<{
344
+ kind: z.ZodLiteral<"tags">;
345
+ added: z.ZodArray<z.ZodString>;
346
+ removed: z.ZodArray<z.ZodString>;
347
+ }, z.core.$strip>, z.ZodObject<{
348
+ kind: z.ZodLiteral<"parent">;
349
+ from: z.ZodNullable<z.ZodObject<{
350
+ id: z.ZodString;
351
+ key: z.ZodString;
352
+ title: z.ZodString;
353
+ deleted: z.ZodBoolean;
354
+ }, z.core.$strip>>;
355
+ to: z.ZodNullable<z.ZodObject<{
356
+ id: z.ZodString;
357
+ key: z.ZodString;
358
+ title: z.ZodString;
359
+ deleted: z.ZodBoolean;
360
+ }, z.core.$strip>>;
361
+ }, z.core.$strip>, z.ZodObject<{
362
+ kind: z.ZodLiteral<"tested">;
363
+ from: z.ZodNullable<z.ZodObject<{
364
+ id: z.ZodString;
365
+ key: z.ZodString;
366
+ title: z.ZodString;
367
+ deleted: z.ZodBoolean;
368
+ }, z.core.$strip>>;
369
+ to: z.ZodNullable<z.ZodObject<{
370
+ id: z.ZodString;
371
+ key: z.ZodString;
372
+ title: z.ZodString;
373
+ deleted: z.ZodBoolean;
374
+ }, z.core.$strip>>;
375
+ }, z.core.$strip>, z.ZodObject<{
376
+ kind: z.ZodLiteral<"checklist">;
377
+ action: z.ZodEnum<{
378
+ added: "added";
379
+ checked: "checked";
380
+ edited: "edited";
381
+ removed: "removed";
382
+ unchecked: "unchecked";
383
+ }>;
384
+ text: z.ZodString;
385
+ previous: z.ZodNullable<z.ZodString>;
386
+ }, z.core.$strip>, z.ZodObject<{
387
+ kind: z.ZodLiteral<"checkpoint">;
388
+ action: z.ZodEnum<{
389
+ added: "added";
390
+ edited: "edited";
391
+ removed: "removed";
392
+ }>;
393
+ text: z.ZodString;
394
+ previous: z.ZodNullable<z.ZodString>;
395
+ }, z.core.$strip>, z.ZodObject<{
396
+ kind: z.ZodLiteral<"idea">;
397
+ action: z.ZodEnum<{
398
+ archived: "archived";
399
+ created: "created";
400
+ deleted: "deleted";
401
+ edited: "edited";
402
+ promoted: "promoted";
403
+ restored: "restored";
404
+ unarchived: "unarchived";
405
+ }>;
406
+ text: z.ZodString;
407
+ previous: z.ZodNullable<z.ZodString>;
408
+ task: z.ZodNullable<z.ZodObject<{
409
+ id: z.ZodString;
410
+ key: z.ZodString;
411
+ title: z.ZodString;
412
+ deleted: z.ZodBoolean;
413
+ }, z.core.$strip>>;
414
+ }, z.core.$strip>, z.ZodObject<{
415
+ kind: z.ZodLiteral<"member">;
416
+ action: z.ZodEnum<{
417
+ added: "added";
418
+ created_space: "created_space";
419
+ joined: "joined";
420
+ left: "left";
421
+ removed: "removed";
422
+ role: "role";
423
+ }>;
424
+ person: z.ZodObject<{
425
+ id: z.ZodNullable<z.ZodString>;
426
+ name: z.ZodString;
427
+ }, z.core.$strip>;
428
+ role: z.ZodEnum<{
429
+ member: "member";
430
+ owner: "owner";
431
+ }>;
432
+ }, z.core.$strip>, z.ZodObject<{
433
+ kind: z.ZodLiteral<"invitation">;
434
+ action: z.ZodEnum<{
435
+ declined: "declined";
436
+ invited: "invited";
437
+ revoked: "revoked";
438
+ }>;
439
+ person: z.ZodObject<{
440
+ id: z.ZodNullable<z.ZodString>;
441
+ name: z.ZodString;
442
+ }, z.core.$strip>;
443
+ }, z.core.$strip>, z.ZodObject<{
444
+ kind: z.ZodLiteral<"note">;
445
+ action: z.ZodEnum<{
446
+ created: "created";
447
+ deleted: "deleted";
448
+ edited: "edited";
449
+ renamed: "renamed";
450
+ restored: "restored";
451
+ }>;
452
+ noteId: z.ZodString;
453
+ title: z.ZodString;
454
+ previous: z.ZodNullable<z.ZodString>;
455
+ }, z.core.$strip>, z.ZodObject<{
456
+ kind: z.ZodLiteral<"document">;
457
+ action: z.ZodEnum<{
458
+ added: "added";
459
+ deleted: "deleted";
460
+ described: "described";
461
+ replaced: "replaced";
462
+ restored: "restored";
463
+ }>;
464
+ filename: z.ZodString;
465
+ }, z.core.$strip>], "kind">>;
466
+ }, z.core.$strip>;
467
+ export type HistoryEvent = z.infer<typeof HistoryEventSchema>;
468
+ /** Historique d'une tâche, du plus récent au plus ancien ; `currentVersion` est la version de son état actuel. */
469
+ export declare const TaskHistoryResponseSchema: z.ZodObject<{
470
+ task: z.ZodObject<{
471
+ id: z.ZodString;
472
+ key: z.ZodString;
473
+ title: z.ZodString;
474
+ deleted: z.ZodBoolean;
475
+ }, z.core.$strip>;
476
+ currentVersion: z.ZodNumber;
477
+ events: z.ZodArray<z.ZodObject<{
478
+ id: z.ZodString;
479
+ seq: z.ZodNumber;
480
+ at: z.ZodISODateTime;
481
+ category: z.ZodEnum<{
482
+ document: "document";
483
+ idea: "idea";
484
+ member: "member";
485
+ note: "note";
486
+ task: "task";
487
+ }>;
488
+ actor: z.ZodObject<{
489
+ type: z.ZodEnum<{
490
+ agent: "agent";
491
+ user: "user";
492
+ }>;
493
+ id: z.ZodNullable<z.ZodString>;
494
+ name: z.ZodString;
495
+ }, z.core.$strip>;
496
+ request: z.ZodNullable<z.ZodObject<{
497
+ id: z.ZodString;
498
+ text: z.ZodString;
499
+ }, z.core.$strip>>;
500
+ task: z.ZodNullable<z.ZodObject<{
501
+ id: z.ZodString;
502
+ key: z.ZodString;
503
+ title: z.ZodString;
504
+ deleted: z.ZodBoolean;
505
+ }, z.core.$strip>>;
506
+ version: z.ZodNullable<z.ZodNumber>;
507
+ restorable: z.ZodBoolean;
508
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
509
+ kind: z.ZodLiteral<"created">;
510
+ }, z.core.$strip>, z.ZodObject<{
511
+ kind: z.ZodLiteral<"deleted">;
512
+ }, z.core.$strip>, z.ZodObject<{
513
+ kind: z.ZodLiteral<"restored">;
514
+ }, z.core.$strip>, z.ZodObject<{
515
+ kind: z.ZodLiteral<"title">;
516
+ from: z.ZodString;
517
+ to: z.ZodString;
518
+ }, z.core.$strip>, z.ZodObject<{
519
+ kind: z.ZodLiteral<"status">;
520
+ from: z.ZodEnum<{
521
+ doing: "doing";
522
+ done: "done";
523
+ review: "review";
524
+ todo: "todo";
525
+ }>;
526
+ to: z.ZodEnum<{
527
+ doing: "doing";
528
+ done: "done";
529
+ review: "review";
530
+ todo: "todo";
531
+ }>;
532
+ }, z.core.$strip>, z.ZodObject<{
533
+ kind: z.ZodLiteral<"priority">;
534
+ from: z.ZodEnum<{
535
+ critical: "critical";
536
+ high: "high";
537
+ low: "low";
538
+ medium: "medium";
539
+ }>;
540
+ to: z.ZodEnum<{
541
+ critical: "critical";
542
+ high: "high";
543
+ low: "low";
544
+ medium: "medium";
545
+ }>;
546
+ }, z.core.$strip>, z.ZodObject<{
547
+ kind: z.ZodLiteral<"type">;
548
+ from: z.ZodEnum<{
549
+ standard: "standard";
550
+ test: "test";
551
+ }>;
552
+ to: z.ZodEnum<{
553
+ standard: "standard";
554
+ test: "test";
555
+ }>;
556
+ }, z.core.$strip>, z.ZodObject<{
557
+ kind: z.ZodLiteral<"description">;
558
+ added: z.ZodNumber;
559
+ removed: z.ZodNumber;
560
+ lines: z.ZodNullable<z.ZodArray<z.ZodObject<{
561
+ kind: z.ZodEnum<{
562
+ add: "add";
563
+ del: "del";
564
+ same: "same";
565
+ }>;
566
+ text: z.ZodString;
567
+ }, z.core.$strip>>>;
568
+ }, z.core.$strip>, z.ZodObject<{
569
+ kind: z.ZodLiteral<"assignees">;
570
+ added: z.ZodArray<z.ZodObject<{
571
+ id: z.ZodNullable<z.ZodString>;
572
+ name: z.ZodString;
573
+ }, z.core.$strip>>;
574
+ removed: z.ZodArray<z.ZodObject<{
575
+ id: z.ZodNullable<z.ZodString>;
576
+ name: z.ZodString;
577
+ }, z.core.$strip>>;
578
+ }, z.core.$strip>, z.ZodObject<{
579
+ kind: z.ZodLiteral<"tags">;
580
+ added: z.ZodArray<z.ZodString>;
581
+ removed: z.ZodArray<z.ZodString>;
582
+ }, z.core.$strip>, z.ZodObject<{
583
+ kind: z.ZodLiteral<"parent">;
584
+ from: z.ZodNullable<z.ZodObject<{
585
+ id: z.ZodString;
586
+ key: z.ZodString;
587
+ title: z.ZodString;
588
+ deleted: z.ZodBoolean;
589
+ }, z.core.$strip>>;
590
+ to: z.ZodNullable<z.ZodObject<{
591
+ id: z.ZodString;
592
+ key: z.ZodString;
593
+ title: z.ZodString;
594
+ deleted: z.ZodBoolean;
595
+ }, z.core.$strip>>;
596
+ }, z.core.$strip>, z.ZodObject<{
597
+ kind: z.ZodLiteral<"tested">;
598
+ from: z.ZodNullable<z.ZodObject<{
599
+ id: z.ZodString;
600
+ key: z.ZodString;
601
+ title: z.ZodString;
602
+ deleted: z.ZodBoolean;
603
+ }, z.core.$strip>>;
604
+ to: z.ZodNullable<z.ZodObject<{
605
+ id: z.ZodString;
606
+ key: z.ZodString;
607
+ title: z.ZodString;
608
+ deleted: z.ZodBoolean;
609
+ }, z.core.$strip>>;
610
+ }, z.core.$strip>, z.ZodObject<{
611
+ kind: z.ZodLiteral<"checklist">;
612
+ action: z.ZodEnum<{
613
+ added: "added";
614
+ checked: "checked";
615
+ edited: "edited";
616
+ removed: "removed";
617
+ unchecked: "unchecked";
618
+ }>;
619
+ text: z.ZodString;
620
+ previous: z.ZodNullable<z.ZodString>;
621
+ }, z.core.$strip>, z.ZodObject<{
622
+ kind: z.ZodLiteral<"checkpoint">;
623
+ action: z.ZodEnum<{
624
+ added: "added";
625
+ edited: "edited";
626
+ removed: "removed";
627
+ }>;
628
+ text: z.ZodString;
629
+ previous: z.ZodNullable<z.ZodString>;
630
+ }, z.core.$strip>, z.ZodObject<{
631
+ kind: z.ZodLiteral<"idea">;
632
+ action: z.ZodEnum<{
633
+ archived: "archived";
634
+ created: "created";
635
+ deleted: "deleted";
636
+ edited: "edited";
637
+ promoted: "promoted";
638
+ restored: "restored";
639
+ unarchived: "unarchived";
640
+ }>;
641
+ text: z.ZodString;
642
+ previous: z.ZodNullable<z.ZodString>;
643
+ task: z.ZodNullable<z.ZodObject<{
644
+ id: z.ZodString;
645
+ key: z.ZodString;
646
+ title: z.ZodString;
647
+ deleted: z.ZodBoolean;
648
+ }, z.core.$strip>>;
649
+ }, z.core.$strip>, z.ZodObject<{
650
+ kind: z.ZodLiteral<"member">;
651
+ action: z.ZodEnum<{
652
+ added: "added";
653
+ created_space: "created_space";
654
+ joined: "joined";
655
+ left: "left";
656
+ removed: "removed";
657
+ role: "role";
658
+ }>;
659
+ person: z.ZodObject<{
660
+ id: z.ZodNullable<z.ZodString>;
661
+ name: z.ZodString;
662
+ }, z.core.$strip>;
663
+ role: z.ZodEnum<{
664
+ member: "member";
665
+ owner: "owner";
666
+ }>;
667
+ }, z.core.$strip>, z.ZodObject<{
668
+ kind: z.ZodLiteral<"invitation">;
669
+ action: z.ZodEnum<{
670
+ declined: "declined";
671
+ invited: "invited";
672
+ revoked: "revoked";
673
+ }>;
674
+ person: z.ZodObject<{
675
+ id: z.ZodNullable<z.ZodString>;
676
+ name: z.ZodString;
677
+ }, z.core.$strip>;
678
+ }, z.core.$strip>, z.ZodObject<{
679
+ kind: z.ZodLiteral<"note">;
680
+ action: z.ZodEnum<{
681
+ created: "created";
682
+ deleted: "deleted";
683
+ edited: "edited";
684
+ renamed: "renamed";
685
+ restored: "restored";
686
+ }>;
687
+ noteId: z.ZodString;
688
+ title: z.ZodString;
689
+ previous: z.ZodNullable<z.ZodString>;
690
+ }, z.core.$strip>, z.ZodObject<{
691
+ kind: z.ZodLiteral<"document">;
692
+ action: z.ZodEnum<{
693
+ added: "added";
694
+ deleted: "deleted";
695
+ described: "described";
696
+ replaced: "replaced";
697
+ restored: "restored";
698
+ }>;
699
+ filename: z.ZodString;
700
+ }, z.core.$strip>], "kind">>;
701
+ }, z.core.$strip>>;
702
+ }, z.core.$strip>;
703
+ export type TaskHistoryResponse = z.infer<typeof TaskHistoryResponseSchema>;
704
+ /** Requête de l'historique d'un espace : auteur (`agent` ou un identifiant de membre), catégories, date de début, curseur. */
705
+ export declare const SpaceHistoryQuerySchema: z.ZodObject<{
706
+ actor: z.ZodOptional<z.ZodString>;
707
+ categories: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<("document" | "idea" | "member" | "note" | "task")[] | undefined, string | undefined>>;
708
+ since: z.ZodOptional<z.ZodISODateTime>;
709
+ before: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
710
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
711
+ }, z.core.$strict>;
712
+ export type SpaceHistoryQuery = z.infer<typeof SpaceHistoryQuerySchema>;
713
+ /**
714
+ * Page de l'historique d'un espace : événements du plus récent au plus
715
+ * ancien, nombre total de ceux qui passent les filtres, curseur de la page
716
+ * suivante (null à la fin) et auteurs proposés par le filtre.
717
+ */
718
+ export declare const SpaceHistoryResponseSchema: z.ZodObject<{
719
+ events: z.ZodArray<z.ZodObject<{
720
+ id: z.ZodString;
721
+ seq: z.ZodNumber;
722
+ at: z.ZodISODateTime;
723
+ category: z.ZodEnum<{
724
+ document: "document";
725
+ idea: "idea";
726
+ member: "member";
727
+ note: "note";
728
+ task: "task";
729
+ }>;
730
+ actor: z.ZodObject<{
731
+ type: z.ZodEnum<{
732
+ agent: "agent";
733
+ user: "user";
734
+ }>;
735
+ id: z.ZodNullable<z.ZodString>;
736
+ name: z.ZodString;
737
+ }, z.core.$strip>;
738
+ request: z.ZodNullable<z.ZodObject<{
739
+ id: z.ZodString;
740
+ text: z.ZodString;
741
+ }, z.core.$strip>>;
742
+ task: z.ZodNullable<z.ZodObject<{
743
+ id: z.ZodString;
744
+ key: z.ZodString;
745
+ title: z.ZodString;
746
+ deleted: z.ZodBoolean;
747
+ }, z.core.$strip>>;
748
+ version: z.ZodNullable<z.ZodNumber>;
749
+ restorable: z.ZodBoolean;
750
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
751
+ kind: z.ZodLiteral<"created">;
752
+ }, z.core.$strip>, z.ZodObject<{
753
+ kind: z.ZodLiteral<"deleted">;
754
+ }, z.core.$strip>, z.ZodObject<{
755
+ kind: z.ZodLiteral<"restored">;
756
+ }, z.core.$strip>, z.ZodObject<{
757
+ kind: z.ZodLiteral<"title">;
758
+ from: z.ZodString;
759
+ to: z.ZodString;
760
+ }, z.core.$strip>, z.ZodObject<{
761
+ kind: z.ZodLiteral<"status">;
762
+ from: z.ZodEnum<{
763
+ doing: "doing";
764
+ done: "done";
765
+ review: "review";
766
+ todo: "todo";
767
+ }>;
768
+ to: z.ZodEnum<{
769
+ doing: "doing";
770
+ done: "done";
771
+ review: "review";
772
+ todo: "todo";
773
+ }>;
774
+ }, z.core.$strip>, z.ZodObject<{
775
+ kind: z.ZodLiteral<"priority">;
776
+ from: z.ZodEnum<{
777
+ critical: "critical";
778
+ high: "high";
779
+ low: "low";
780
+ medium: "medium";
781
+ }>;
782
+ to: z.ZodEnum<{
783
+ critical: "critical";
784
+ high: "high";
785
+ low: "low";
786
+ medium: "medium";
787
+ }>;
788
+ }, z.core.$strip>, z.ZodObject<{
789
+ kind: z.ZodLiteral<"type">;
790
+ from: z.ZodEnum<{
791
+ standard: "standard";
792
+ test: "test";
793
+ }>;
794
+ to: z.ZodEnum<{
795
+ standard: "standard";
796
+ test: "test";
797
+ }>;
798
+ }, z.core.$strip>, z.ZodObject<{
799
+ kind: z.ZodLiteral<"description">;
800
+ added: z.ZodNumber;
801
+ removed: z.ZodNumber;
802
+ lines: z.ZodNullable<z.ZodArray<z.ZodObject<{
803
+ kind: z.ZodEnum<{
804
+ add: "add";
805
+ del: "del";
806
+ same: "same";
807
+ }>;
808
+ text: z.ZodString;
809
+ }, z.core.$strip>>>;
810
+ }, z.core.$strip>, z.ZodObject<{
811
+ kind: z.ZodLiteral<"assignees">;
812
+ added: z.ZodArray<z.ZodObject<{
813
+ id: z.ZodNullable<z.ZodString>;
814
+ name: z.ZodString;
815
+ }, z.core.$strip>>;
816
+ removed: z.ZodArray<z.ZodObject<{
817
+ id: z.ZodNullable<z.ZodString>;
818
+ name: z.ZodString;
819
+ }, z.core.$strip>>;
820
+ }, z.core.$strip>, z.ZodObject<{
821
+ kind: z.ZodLiteral<"tags">;
822
+ added: z.ZodArray<z.ZodString>;
823
+ removed: z.ZodArray<z.ZodString>;
824
+ }, z.core.$strip>, z.ZodObject<{
825
+ kind: z.ZodLiteral<"parent">;
826
+ from: z.ZodNullable<z.ZodObject<{
827
+ id: z.ZodString;
828
+ key: z.ZodString;
829
+ title: z.ZodString;
830
+ deleted: z.ZodBoolean;
831
+ }, z.core.$strip>>;
832
+ to: z.ZodNullable<z.ZodObject<{
833
+ id: z.ZodString;
834
+ key: z.ZodString;
835
+ title: z.ZodString;
836
+ deleted: z.ZodBoolean;
837
+ }, z.core.$strip>>;
838
+ }, z.core.$strip>, z.ZodObject<{
839
+ kind: z.ZodLiteral<"tested">;
840
+ from: z.ZodNullable<z.ZodObject<{
841
+ id: z.ZodString;
842
+ key: z.ZodString;
843
+ title: z.ZodString;
844
+ deleted: z.ZodBoolean;
845
+ }, z.core.$strip>>;
846
+ to: z.ZodNullable<z.ZodObject<{
847
+ id: z.ZodString;
848
+ key: z.ZodString;
849
+ title: z.ZodString;
850
+ deleted: z.ZodBoolean;
851
+ }, z.core.$strip>>;
852
+ }, z.core.$strip>, z.ZodObject<{
853
+ kind: z.ZodLiteral<"checklist">;
854
+ action: z.ZodEnum<{
855
+ added: "added";
856
+ checked: "checked";
857
+ edited: "edited";
858
+ removed: "removed";
859
+ unchecked: "unchecked";
860
+ }>;
861
+ text: z.ZodString;
862
+ previous: z.ZodNullable<z.ZodString>;
863
+ }, z.core.$strip>, z.ZodObject<{
864
+ kind: z.ZodLiteral<"checkpoint">;
865
+ action: z.ZodEnum<{
866
+ added: "added";
867
+ edited: "edited";
868
+ removed: "removed";
869
+ }>;
870
+ text: z.ZodString;
871
+ previous: z.ZodNullable<z.ZodString>;
872
+ }, z.core.$strip>, z.ZodObject<{
873
+ kind: z.ZodLiteral<"idea">;
874
+ action: z.ZodEnum<{
875
+ archived: "archived";
876
+ created: "created";
877
+ deleted: "deleted";
878
+ edited: "edited";
879
+ promoted: "promoted";
880
+ restored: "restored";
881
+ unarchived: "unarchived";
882
+ }>;
883
+ text: z.ZodString;
884
+ previous: z.ZodNullable<z.ZodString>;
885
+ task: z.ZodNullable<z.ZodObject<{
886
+ id: z.ZodString;
887
+ key: z.ZodString;
888
+ title: z.ZodString;
889
+ deleted: z.ZodBoolean;
890
+ }, z.core.$strip>>;
891
+ }, z.core.$strip>, z.ZodObject<{
892
+ kind: z.ZodLiteral<"member">;
893
+ action: z.ZodEnum<{
894
+ added: "added";
895
+ created_space: "created_space";
896
+ joined: "joined";
897
+ left: "left";
898
+ removed: "removed";
899
+ role: "role";
900
+ }>;
901
+ person: z.ZodObject<{
902
+ id: z.ZodNullable<z.ZodString>;
903
+ name: z.ZodString;
904
+ }, z.core.$strip>;
905
+ role: z.ZodEnum<{
906
+ member: "member";
907
+ owner: "owner";
908
+ }>;
909
+ }, z.core.$strip>, z.ZodObject<{
910
+ kind: z.ZodLiteral<"invitation">;
911
+ action: z.ZodEnum<{
912
+ declined: "declined";
913
+ invited: "invited";
914
+ revoked: "revoked";
915
+ }>;
916
+ person: z.ZodObject<{
917
+ id: z.ZodNullable<z.ZodString>;
918
+ name: z.ZodString;
919
+ }, z.core.$strip>;
920
+ }, z.core.$strip>, z.ZodObject<{
921
+ kind: z.ZodLiteral<"note">;
922
+ action: z.ZodEnum<{
923
+ created: "created";
924
+ deleted: "deleted";
925
+ edited: "edited";
926
+ renamed: "renamed";
927
+ restored: "restored";
928
+ }>;
929
+ noteId: z.ZodString;
930
+ title: z.ZodString;
931
+ previous: z.ZodNullable<z.ZodString>;
932
+ }, z.core.$strip>, z.ZodObject<{
933
+ kind: z.ZodLiteral<"document">;
934
+ action: z.ZodEnum<{
935
+ added: "added";
936
+ deleted: "deleted";
937
+ described: "described";
938
+ replaced: "replaced";
939
+ restored: "restored";
940
+ }>;
941
+ filename: z.ZodString;
942
+ }, z.core.$strip>], "kind">>;
943
+ }, z.core.$strip>>;
944
+ total: z.ZodNumber;
945
+ nextBefore: z.ZodNullable<z.ZodNumber>;
946
+ authors: z.ZodArray<z.ZodObject<{
947
+ name: z.ZodString;
948
+ id: z.ZodString;
949
+ }, z.core.$strip>>;
950
+ }, z.core.$strip>;
951
+ export type SpaceHistoryResponse = z.infer<typeof SpaceHistoryResponseSchema>;
952
+ /** Réponse de la restauration d'une tâche supprimée. */
953
+ export declare const RestoreTaskResponseSchema: z.ZodObject<{
954
+ task: z.ZodObject<{
955
+ id: z.ZodString;
956
+ key: z.ZodString;
957
+ title: z.ZodString;
958
+ deleted: z.ZodBoolean;
959
+ }, z.core.$strip>;
960
+ }, z.core.$strip>;
961
+ export type RestoreTaskResponse = z.infer<typeof RestoreTaskResponseSchema>;