@imenam/mcp-organizer 0.0.0-stage → 1.0.1

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 (155) hide show
  1. package/README.md +529 -2
  2. package/dist/shared/logic/first-account.d.ts +13 -0
  3. package/dist/shared/logic/first-account.js +15 -0
  4. package/dist/shared/logic/labels.d.ts +5 -0
  5. package/dist/shared/logic/labels.js +17 -0
  6. package/dist/shared/logic/positions.d.ts +9 -0
  7. package/dist/shared/logic/positions.js +19 -0
  8. package/dist/shared/logic/spaces.d.ts +13 -0
  9. package/dist/shared/logic/spaces.js +48 -0
  10. package/dist/shared/logic/test-summary.d.ts +28 -0
  11. package/dist/shared/logic/test-summary.js +35 -0
  12. package/dist/shared/schemas/agent-api.schema.d.ts +268 -0
  13. package/dist/shared/schemas/agent-api.schema.js +94 -0
  14. package/dist/shared/schemas/agent-tools.schema.d.ts +724 -0
  15. package/dist/shared/schemas/agent-tools.schema.js +165 -0
  16. package/dist/shared/schemas/api.schema.d.ts +249 -0
  17. package/dist/shared/schemas/api.schema.js +116 -0
  18. package/dist/shared/schemas/entities.schema.d.ts +472 -0
  19. package/dist/shared/schemas/entities.schema.js +262 -0
  20. package/dist/shared/schemas/enums.schema.d.ts +135 -0
  21. package/dist/shared/schemas/enums.schema.js +58 -0
  22. package/dist/shared/schemas/gui-api.schema.d.ts +53 -0
  23. package/dist/shared/schemas/gui-api.schema.js +20 -0
  24. package/dist/shared/schemas/ideas-api.schema.d.ts +81 -0
  25. package/dist/shared/schemas/ideas-api.schema.js +40 -0
  26. package/dist/shared/schemas/notifications-api.schema.d.ts +87 -0
  27. package/dist/shared/schemas/notifications-api.schema.js +58 -0
  28. package/dist/shared/schemas/tasks-api.schema.d.ts +675 -0
  29. package/dist/shared/schemas/tasks-api.schema.js +225 -0
  30. package/dist/shared/schemas/tokens-api.schema.d.ts +106 -0
  31. package/dist/shared/schemas/tokens-api.schema.js +42 -0
  32. package/dist/shared/schemas/transcription-api.schema.d.ts +15 -0
  33. package/dist/shared/schemas/transcription-api.schema.js +12 -0
  34. package/dist/src/agent-api/checklist.d.ts +3 -0
  35. package/dist/src/agent-api/checklist.js +127 -0
  36. package/dist/src/agent-api/ideas.d.ts +3 -0
  37. package/dist/src/agent-api/ideas.js +93 -0
  38. package/dist/src/agent-api/requests.d.ts +3 -0
  39. package/dist/src/agent-api/requests.js +60 -0
  40. package/dist/src/agent-api/router.d.ts +3 -0
  41. package/dist/src/agent-api/router.js +40 -0
  42. package/dist/src/agent-api/tasks.d.ts +2 -0
  43. package/dist/src/agent-api/tasks.js +290 -0
  44. package/dist/src/agent-api/types.d.ts +41 -0
  45. package/dist/src/agent-api/types.js +14 -0
  46. package/dist/src/cli/backup.d.ts +12 -0
  47. package/dist/src/cli/backup.js +126 -0
  48. package/dist/src/cli/prompt.d.ts +7 -0
  49. package/dist/src/cli/prompt.js +40 -0
  50. package/dist/src/cli/set-user.d.ts +2 -0
  51. package/dist/src/cli/set-user.js +114 -0
  52. package/dist/src/cli/setup-mcp.d.ts +10 -0
  53. package/dist/src/cli/setup-mcp.js +110 -0
  54. package/dist/src/cli/setup.d.ts +39 -0
  55. package/dist/src/cli/setup.js +626 -0
  56. package/dist/src/core/accounts.d.ts +129 -0
  57. package/dist/src/core/accounts.js +284 -0
  58. package/dist/src/core/agent-tokens.d.ts +31 -0
  59. package/dist/src/core/agent-tokens.js +120 -0
  60. package/dist/src/core/agent.d.ts +71 -0
  61. package/dist/src/core/agent.js +358 -0
  62. package/dist/src/core/attachments.d.ts +21 -0
  63. package/dist/src/core/attachments.js +44 -0
  64. package/dist/src/core/data-dir.d.ts +5 -0
  65. package/dist/src/core/data-dir.js +11 -0
  66. package/dist/src/core/db.d.ts +13 -0
  67. package/dist/src/core/db.js +38 -0
  68. package/dist/src/core/env-file.d.ts +11 -0
  69. package/dist/src/core/env-file.js +36 -0
  70. package/dist/src/core/errors.d.ts +24 -0
  71. package/dist/src/core/errors.js +42 -0
  72. package/dist/src/core/history.d.ts +34 -0
  73. package/dist/src/core/history.js +279 -0
  74. package/dist/src/core/ideas.d.ts +16 -0
  75. package/dist/src/core/ideas.js +100 -0
  76. package/dist/src/core/ids.d.ts +2 -0
  77. package/dist/src/core/ids.js +5 -0
  78. package/dist/src/core/log-dir.d.ts +2 -0
  79. package/dist/src/core/log-dir.js +9 -0
  80. package/dist/src/core/logger.d.ts +14 -0
  81. package/dist/src/core/logger.js +37 -0
  82. package/dist/src/core/mail.d.ts +43 -0
  83. package/dist/src/core/mail.js +44 -0
  84. package/dist/src/core/mcp-entry.d.ts +20 -0
  85. package/dist/src/core/mcp-entry.js +15 -0
  86. package/dist/src/core/migrations.d.ts +18 -0
  87. package/dist/src/core/migrations.js +404 -0
  88. package/dist/src/core/native-sqlite.d.ts +2 -0
  89. package/dist/src/core/native-sqlite.js +23 -0
  90. package/dist/src/core/notifications.d.ts +46 -0
  91. package/dist/src/core/notifications.js +173 -0
  92. package/dist/src/core/project-root.d.ts +2 -0
  93. package/dist/src/core/project-root.js +13 -0
  94. package/dist/src/core/requests.d.ts +49 -0
  95. package/dist/src/core/requests.js +239 -0
  96. package/dist/src/core/snapshots.d.ts +32 -0
  97. package/dist/src/core/snapshots.js +35 -0
  98. package/dist/src/core/spaces.d.ts +66 -0
  99. package/dist/src/core/spaces.js +252 -0
  100. package/dist/src/core/store.d.ts +565 -0
  101. package/dist/src/core/store.js +2093 -0
  102. package/dist/src/core/task-history.d.ts +7 -0
  103. package/dist/src/core/task-history.js +41 -0
  104. package/dist/src/core/tasks.d.ts +58 -0
  105. package/dist/src/core/tasks.js +389 -0
  106. package/dist/src/core/test-tasks.d.ts +19 -0
  107. package/dist/src/core/test-tasks.js +135 -0
  108. package/dist/src/core/transcription.d.ts +45 -0
  109. package/dist/src/core/transcription.js +92 -0
  110. package/dist/src/deploy/env-render.d.ts +26 -0
  111. package/dist/src/deploy/env-render.js +98 -0
  112. package/dist/src/deploy/templates.d.ts +38 -0
  113. package/dist/src/deploy/templates.js +130 -0
  114. package/dist/src/gui-api.d.ts +37 -0
  115. package/dist/src/gui-api.js +383 -0
  116. package/dist/src/index.d.ts +2 -0
  117. package/dist/src/index.js +100 -0
  118. package/dist/src/mcp/client.d.ts +23 -0
  119. package/dist/src/mcp/client.js +81 -0
  120. package/dist/src/mcp/start.d.ts +14 -0
  121. package/dist/src/mcp/start.js +104 -0
  122. package/dist/src/mcp/tools.d.ts +46 -0
  123. package/dist/src/mcp/tools.js +348 -0
  124. package/dist/src/server/app.d.ts +25 -0
  125. package/dist/src/server/app.js +290 -0
  126. package/dist/src/server/config.d.ts +23 -0
  127. package/dist/src/server/config.js +75 -0
  128. package/dist/src/server/limits.d.ts +2 -0
  129. package/dist/src/server/limits.js +4 -0
  130. package/dist/src/server/login-limiter.d.ts +36 -0
  131. package/dist/src/server/login-limiter.js +81 -0
  132. package/dist/src/server/start.d.ts +5 -0
  133. package/dist/src/server/start.js +88 -0
  134. package/dist/src/version.d.ts +1 -0
  135. package/dist/src/version.js +16 -0
  136. package/gui/dist/assets/index-DwkXx4Q2.js +70 -0
  137. package/gui/dist/assets/index-lnvnkDdg.css +1 -0
  138. package/gui/dist/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  139. package/gui/dist/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  140. package/gui/dist/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  141. package/gui/dist/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  142. package/gui/dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  143. package/gui/dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  144. package/gui/dist/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  145. package/gui/dist/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
  146. package/gui/dist/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
  147. package/gui/dist/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
  148. package/gui/dist/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
  149. package/gui/dist/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  150. package/gui/dist/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  151. package/gui/dist/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  152. package/gui/dist/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
  153. package/gui/dist/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
  154. package/gui/dist/index.html +13 -0
  155. package/package.json +66 -4
@@ -0,0 +1,675 @@
1
+ import { z } from "zod";
2
+ /** Corps des requêtes et des réponses de l'API des tâches de la GUI. */
3
+ /** Taille maximale d'une pièce jointe : 20 Mo. */
4
+ export declare const MAX_ATTACHMENT_BYTES: number;
5
+ export declare const MAX_TASK_TITLE_LENGTH = 200;
6
+ export declare const MAX_TAG_LENGTH = 40;
7
+ export declare const TaskTitleSchema: z.ZodString;
8
+ export declare const TagNameSchema: z.ZodString;
9
+ /** Membre d'un espace tel que l'affichent les avatars et les menus. */
10
+ export declare const MemberRefSchema: z.ZodObject<{
11
+ userId: z.ZodString;
12
+ displayName: z.ZodNullable<z.ZodString>;
13
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
14
+ }, z.core.$strip>;
15
+ export type MemberRef = z.infer<typeof MemberRefSchema>;
16
+ export declare const TagViewSchema: z.ZodObject<{
17
+ id: z.ZodString;
18
+ name: z.ZodString;
19
+ }, z.core.$strip>;
20
+ export type TagView = z.infer<typeof TagViewSchema>;
21
+ /** Avancement des sous-tâches directes : terminées / total. */
22
+ export declare const ProgressSchema: z.ZodObject<{
23
+ done: z.ZodNumber;
24
+ total: z.ZodNumber;
25
+ }, z.core.$strip>;
26
+ export type Progress = z.infer<typeof ProgressSchema>;
27
+ /** Bilan d'une tâche de test : points par résultat combiné de ses testeurs (voir `shared/logic/test-summary.ts`). */
28
+ export declare const TestSummarySchema: z.ZodObject<{
29
+ total: z.ZodNumber;
30
+ verified: z.ZodNumber;
31
+ ok: z.ZodNumber;
32
+ ko: z.ZodNumber;
33
+ blocked: z.ZodNumber;
34
+ untested: z.ZodNumber;
35
+ }, z.core.$strip>;
36
+ /** Tâche d'un arbre (Kanban, liste, sous-tâches), avec ses sous-tâches. */
37
+ export declare const TaskNodeSchema: z.ZodObject<{
38
+ id: z.ZodString;
39
+ key: z.ZodString;
40
+ parentId: z.ZodNullable<z.ZodString>;
41
+ depth: z.ZodNumber;
42
+ type: z.ZodEnum<{
43
+ standard: "standard";
44
+ test: "test";
45
+ }>;
46
+ title: z.ZodString;
47
+ status: z.ZodEnum<{
48
+ doing: "doing";
49
+ done: "done";
50
+ review: "review";
51
+ todo: "todo";
52
+ }>;
53
+ priority: z.ZodEnum<{
54
+ critical: "critical";
55
+ high: "high";
56
+ low: "low";
57
+ medium: "medium";
58
+ }>;
59
+ position: z.ZodNumber;
60
+ assigneeIds: z.ZodArray<z.ZodString>;
61
+ tagIds: z.ZodArray<z.ZodString>;
62
+ subtasks: z.ZodObject<{
63
+ done: z.ZodNumber;
64
+ total: z.ZodNumber;
65
+ }, z.core.$strip>;
66
+ test: z.ZodNullable<z.ZodObject<{
67
+ total: z.ZodNumber;
68
+ verified: z.ZodNumber;
69
+ ok: z.ZodNumber;
70
+ ko: z.ZodNumber;
71
+ blocked: z.ZodNumber;
72
+ untested: z.ZodNumber;
73
+ }, z.core.$strip>>;
74
+ children: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>;
75
+ }, z.core.$strip>;
76
+ export type TaskNode = z.infer<typeof TaskNodeSchema>;
77
+ /** Filtres de l'arbre d'un espace ; une tâche est gardée si elle ou l'une de ses sous-tâches y répond. */
78
+ export declare const TaskFiltersSchema: z.ZodObject<{
79
+ type: z.ZodOptional<z.ZodEnum<{
80
+ standard: "standard";
81
+ test: "test";
82
+ }>>;
83
+ priority: z.ZodOptional<z.ZodEnum<{
84
+ critical: "critical";
85
+ high: "high";
86
+ low: "low";
87
+ medium: "medium";
88
+ }>>;
89
+ assignee: z.ZodOptional<z.ZodString>;
90
+ tag: z.ZodOptional<z.ZodString>;
91
+ }, z.core.$strip>;
92
+ export type TaskFilters = z.infer<typeof TaskFiltersSchema>;
93
+ export declare const BoardResponseSchema: z.ZodObject<{
94
+ spaceId: z.ZodString;
95
+ members: z.ZodArray<z.ZodObject<{
96
+ userId: z.ZodString;
97
+ displayName: z.ZodNullable<z.ZodString>;
98
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
99
+ }, z.core.$strip>>;
100
+ tags: z.ZodArray<z.ZodObject<{
101
+ id: z.ZodString;
102
+ name: z.ZodString;
103
+ }, z.core.$strip>>;
104
+ tasks: z.ZodArray<z.ZodObject<{
105
+ id: z.ZodString;
106
+ key: z.ZodString;
107
+ parentId: z.ZodNullable<z.ZodString>;
108
+ depth: z.ZodNumber;
109
+ type: z.ZodEnum<{
110
+ standard: "standard";
111
+ test: "test";
112
+ }>;
113
+ title: z.ZodString;
114
+ status: z.ZodEnum<{
115
+ doing: "doing";
116
+ done: "done";
117
+ review: "review";
118
+ todo: "todo";
119
+ }>;
120
+ priority: z.ZodEnum<{
121
+ critical: "critical";
122
+ high: "high";
123
+ low: "low";
124
+ medium: "medium";
125
+ }>;
126
+ position: z.ZodNumber;
127
+ assigneeIds: z.ZodArray<z.ZodString>;
128
+ tagIds: z.ZodArray<z.ZodString>;
129
+ subtasks: z.ZodObject<{
130
+ done: z.ZodNumber;
131
+ total: z.ZodNumber;
132
+ }, z.core.$strip>;
133
+ test: z.ZodNullable<z.ZodObject<{
134
+ total: z.ZodNumber;
135
+ verified: z.ZodNumber;
136
+ ok: z.ZodNumber;
137
+ ko: z.ZodNumber;
138
+ blocked: z.ZodNumber;
139
+ untested: z.ZodNumber;
140
+ }, z.core.$strip>>;
141
+ children: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>;
142
+ }, z.core.$strip>>;
143
+ }, z.core.$strip>;
144
+ export type BoardResponse = z.infer<typeof BoardResponseSchema>;
145
+ export declare const TaskViewSchema: z.ZodObject<{
146
+ id: z.ZodString;
147
+ key: z.ZodString;
148
+ spaceId: z.ZodString;
149
+ parentId: z.ZodNullable<z.ZodString>;
150
+ depth: z.ZodNumber;
151
+ type: z.ZodEnum<{
152
+ standard: "standard";
153
+ test: "test";
154
+ }>;
155
+ title: z.ZodString;
156
+ description: z.ZodString;
157
+ status: z.ZodEnum<{
158
+ doing: "doing";
159
+ done: "done";
160
+ review: "review";
161
+ todo: "todo";
162
+ }>;
163
+ priority: z.ZodEnum<{
164
+ critical: "critical";
165
+ high: "high";
166
+ low: "low";
167
+ medium: "medium";
168
+ }>;
169
+ assigneeIds: z.ZodArray<z.ZodString>;
170
+ tagIds: z.ZodArray<z.ZodString>;
171
+ testedTaskId: z.ZodNullable<z.ZodString>;
172
+ createdBy: z.ZodString;
173
+ createdAt: z.ZodISODateTime;
174
+ updatedAt: z.ZodISODateTime;
175
+ version: z.ZodNumber;
176
+ }, z.core.$strip>;
177
+ export type TaskView = z.infer<typeof TaskViewSchema>;
178
+ export declare const TaskRefSchema: z.ZodObject<{
179
+ id: z.ZodString;
180
+ key: z.ZodString;
181
+ title: z.ZodString;
182
+ }, z.core.$strip>;
183
+ export type TaskRef = z.infer<typeof TaskRefSchema>;
184
+ export declare const ChecklistItemViewSchema: z.ZodObject<{
185
+ id: z.ZodString;
186
+ text: z.ZodString;
187
+ done: z.ZodBoolean;
188
+ position: z.ZodNumber;
189
+ }, z.core.$strip>;
190
+ export type ChecklistItemView = z.infer<typeof ChecklistItemViewSchema>;
191
+ export declare const CommentViewSchema: z.ZodObject<{
192
+ id: z.ZodString;
193
+ authorId: z.ZodString;
194
+ authorName: z.ZodString;
195
+ body: z.ZodString;
196
+ createdAt: z.ZodISODateTime;
197
+ editedAt: z.ZodNullable<z.ZodISODateTime>;
198
+ byAgent: z.ZodBoolean;
199
+ }, z.core.$strip>;
200
+ export type CommentView = z.infer<typeof CommentViewSchema>;
201
+ export declare const AttachmentViewSchema: z.ZodObject<{
202
+ id: z.ZodString;
203
+ filename: z.ZodString;
204
+ mime: z.ZodString;
205
+ size: z.ZodNumber;
206
+ uploaderId: z.ZodString;
207
+ createdAt: z.ZodISODateTime;
208
+ }, z.core.$strip>;
209
+ export type AttachmentView = z.infer<typeof AttachmentViewSchema>;
210
+ export declare const CheckpointViewSchema: z.ZodObject<{
211
+ id: z.ZodString;
212
+ text: z.ZodString;
213
+ position: z.ZodNumber;
214
+ }, z.core.$strip>;
215
+ export type CheckpointView = z.infer<typeof CheckpointViewSchema>;
216
+ export declare const TestResultViewSchema: z.ZodObject<{
217
+ checkpointId: z.ZodString;
218
+ result: z.ZodEnum<{
219
+ blocked: "blocked";
220
+ ko: "ko";
221
+ ok: "ok";
222
+ untested: "untested";
223
+ }>;
224
+ comment: z.ZodString;
225
+ updatedAt: z.ZodISODateTime;
226
+ }, z.core.$strip>;
227
+ export type TestResultView = z.infer<typeof TestResultViewSchema>;
228
+ /** Review soumise, avec l'état de la demande `test_review` qu'elle a créée (null si la demande n'existe plus). */
229
+ export declare const SubmittedReviewViewSchema: z.ZodObject<{
230
+ id: z.ZodString;
231
+ testerId: z.ZodString;
232
+ testerName: z.ZodString;
233
+ text: z.ZodString;
234
+ submittedAt: z.ZodISODateTime;
235
+ requestId: z.ZodNullable<z.ZodString>;
236
+ requestStatus: z.ZodNullable<z.ZodEnum<{
237
+ cancelled: "cancelled";
238
+ done: "done";
239
+ failed: "failed";
240
+ pending: "pending";
241
+ processing: "processing";
242
+ }>>;
243
+ }, z.core.$strip>;
244
+ export type SubmittedReviewView = z.infer<typeof SubmittedReviewViewSchema>;
245
+ /** Testeur d'une tâche de test : ses résultats saisis et son brouillon de review. */
246
+ export declare const TesterViewSchema: z.ZodObject<{
247
+ userId: z.ZodString;
248
+ results: z.ZodArray<z.ZodObject<{
249
+ checkpointId: z.ZodString;
250
+ result: z.ZodEnum<{
251
+ blocked: "blocked";
252
+ ko: "ko";
253
+ ok: "ok";
254
+ untested: "untested";
255
+ }>;
256
+ comment: z.ZodString;
257
+ updatedAt: z.ZodISODateTime;
258
+ }, z.core.$strip>>;
259
+ draft: z.ZodString;
260
+ }, z.core.$strip>;
261
+ export type TesterView = z.infer<typeof TesterViewSchema>;
262
+ /** Ancien testeur (désassigné, ou qui a quitté l'espace) : ses résultats, en lecture seule. */
263
+ export declare const PastTesterViewSchema: z.ZodObject<{
264
+ userId: z.ZodString;
265
+ name: z.ZodString;
266
+ results: z.ZodArray<z.ZodObject<{
267
+ checkpointId: z.ZodString;
268
+ result: z.ZodEnum<{
269
+ blocked: "blocked";
270
+ ko: "ko";
271
+ ok: "ok";
272
+ untested: "untested";
273
+ }>;
274
+ comment: z.ZodString;
275
+ updatedAt: z.ZodISODateTime;
276
+ }, z.core.$strip>>;
277
+ }, z.core.$strip>;
278
+ export type PastTesterView = z.infer<typeof PastTesterViewSchema>;
279
+ /** Partie propre à une tâche de test du détail. */
280
+ export declare const TestDetailSchema: z.ZodObject<{
281
+ checkpoints: z.ZodArray<z.ZodObject<{
282
+ id: z.ZodString;
283
+ text: z.ZodString;
284
+ position: z.ZodNumber;
285
+ }, z.core.$strip>>;
286
+ summary: z.ZodObject<{
287
+ total: z.ZodNumber;
288
+ verified: z.ZodNumber;
289
+ ok: z.ZodNumber;
290
+ ko: z.ZodNumber;
291
+ blocked: z.ZodNumber;
292
+ untested: z.ZodNumber;
293
+ }, z.core.$strip>;
294
+ testers: z.ZodArray<z.ZodObject<{
295
+ userId: z.ZodString;
296
+ results: z.ZodArray<z.ZodObject<{
297
+ checkpointId: z.ZodString;
298
+ result: z.ZodEnum<{
299
+ blocked: "blocked";
300
+ ko: "ko";
301
+ ok: "ok";
302
+ untested: "untested";
303
+ }>;
304
+ comment: z.ZodString;
305
+ updatedAt: z.ZodISODateTime;
306
+ }, z.core.$strip>>;
307
+ draft: z.ZodString;
308
+ }, z.core.$strip>>;
309
+ pastTesters: z.ZodArray<z.ZodObject<{
310
+ userId: z.ZodString;
311
+ name: z.ZodString;
312
+ results: z.ZodArray<z.ZodObject<{
313
+ checkpointId: z.ZodString;
314
+ result: z.ZodEnum<{
315
+ blocked: "blocked";
316
+ ko: "ko";
317
+ ok: "ok";
318
+ untested: "untested";
319
+ }>;
320
+ comment: z.ZodString;
321
+ updatedAt: z.ZodISODateTime;
322
+ }, z.core.$strip>>;
323
+ }, z.core.$strip>>;
324
+ reviews: z.ZodArray<z.ZodObject<{
325
+ id: z.ZodString;
326
+ testerId: z.ZodString;
327
+ testerName: z.ZodString;
328
+ text: z.ZodString;
329
+ submittedAt: z.ZodISODateTime;
330
+ requestId: z.ZodNullable<z.ZodString>;
331
+ requestStatus: z.ZodNullable<z.ZodEnum<{
332
+ cancelled: "cancelled";
333
+ done: "done";
334
+ failed: "failed";
335
+ pending: "pending";
336
+ processing: "processing";
337
+ }>>;
338
+ }, z.core.$strip>>;
339
+ }, z.core.$strip>;
340
+ export type TestDetail = z.infer<typeof TestDetailSchema>;
341
+ export declare const TaskDetailResponseSchema: z.ZodObject<{
342
+ task: z.ZodObject<{
343
+ id: z.ZodString;
344
+ key: z.ZodString;
345
+ spaceId: z.ZodString;
346
+ parentId: z.ZodNullable<z.ZodString>;
347
+ depth: z.ZodNumber;
348
+ type: z.ZodEnum<{
349
+ standard: "standard";
350
+ test: "test";
351
+ }>;
352
+ title: z.ZodString;
353
+ description: z.ZodString;
354
+ status: z.ZodEnum<{
355
+ doing: "doing";
356
+ done: "done";
357
+ review: "review";
358
+ todo: "todo";
359
+ }>;
360
+ priority: z.ZodEnum<{
361
+ critical: "critical";
362
+ high: "high";
363
+ low: "low";
364
+ medium: "medium";
365
+ }>;
366
+ assigneeIds: z.ZodArray<z.ZodString>;
367
+ tagIds: z.ZodArray<z.ZodString>;
368
+ testedTaskId: z.ZodNullable<z.ZodString>;
369
+ createdBy: z.ZodString;
370
+ createdAt: z.ZodISODateTime;
371
+ updatedAt: z.ZodISODateTime;
372
+ version: z.ZodNumber;
373
+ }, z.core.$strip>;
374
+ ancestors: z.ZodArray<z.ZodObject<{
375
+ id: z.ZodString;
376
+ key: z.ZodString;
377
+ title: z.ZodString;
378
+ }, z.core.$strip>>;
379
+ testedTask: z.ZodNullable<z.ZodObject<{
380
+ id: z.ZodString;
381
+ key: z.ZodString;
382
+ title: z.ZodString;
383
+ }, z.core.$strip>>;
384
+ children: z.ZodArray<z.ZodObject<{
385
+ id: z.ZodString;
386
+ key: z.ZodString;
387
+ parentId: z.ZodNullable<z.ZodString>;
388
+ depth: z.ZodNumber;
389
+ type: z.ZodEnum<{
390
+ standard: "standard";
391
+ test: "test";
392
+ }>;
393
+ title: z.ZodString;
394
+ status: z.ZodEnum<{
395
+ doing: "doing";
396
+ done: "done";
397
+ review: "review";
398
+ todo: "todo";
399
+ }>;
400
+ priority: z.ZodEnum<{
401
+ critical: "critical";
402
+ high: "high";
403
+ low: "low";
404
+ medium: "medium";
405
+ }>;
406
+ position: z.ZodNumber;
407
+ assigneeIds: z.ZodArray<z.ZodString>;
408
+ tagIds: z.ZodArray<z.ZodString>;
409
+ subtasks: z.ZodObject<{
410
+ done: z.ZodNumber;
411
+ total: z.ZodNumber;
412
+ }, z.core.$strip>;
413
+ test: z.ZodNullable<z.ZodObject<{
414
+ total: z.ZodNumber;
415
+ verified: z.ZodNumber;
416
+ ok: z.ZodNumber;
417
+ ko: z.ZodNumber;
418
+ blocked: z.ZodNumber;
419
+ untested: z.ZodNumber;
420
+ }, z.core.$strip>>;
421
+ children: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>;
422
+ }, z.core.$strip>>;
423
+ checklist: z.ZodArray<z.ZodObject<{
424
+ id: z.ZodString;
425
+ text: z.ZodString;
426
+ done: z.ZodBoolean;
427
+ position: z.ZodNumber;
428
+ }, z.core.$strip>>;
429
+ test: z.ZodNullable<z.ZodObject<{
430
+ checkpoints: z.ZodArray<z.ZodObject<{
431
+ id: z.ZodString;
432
+ text: z.ZodString;
433
+ position: z.ZodNumber;
434
+ }, z.core.$strip>>;
435
+ summary: z.ZodObject<{
436
+ total: z.ZodNumber;
437
+ verified: z.ZodNumber;
438
+ ok: z.ZodNumber;
439
+ ko: z.ZodNumber;
440
+ blocked: z.ZodNumber;
441
+ untested: z.ZodNumber;
442
+ }, z.core.$strip>;
443
+ testers: z.ZodArray<z.ZodObject<{
444
+ userId: z.ZodString;
445
+ results: z.ZodArray<z.ZodObject<{
446
+ checkpointId: z.ZodString;
447
+ result: z.ZodEnum<{
448
+ blocked: "blocked";
449
+ ko: "ko";
450
+ ok: "ok";
451
+ untested: "untested";
452
+ }>;
453
+ comment: z.ZodString;
454
+ updatedAt: z.ZodISODateTime;
455
+ }, z.core.$strip>>;
456
+ draft: z.ZodString;
457
+ }, z.core.$strip>>;
458
+ pastTesters: z.ZodArray<z.ZodObject<{
459
+ userId: z.ZodString;
460
+ name: z.ZodString;
461
+ results: z.ZodArray<z.ZodObject<{
462
+ checkpointId: z.ZodString;
463
+ result: z.ZodEnum<{
464
+ blocked: "blocked";
465
+ ko: "ko";
466
+ ok: "ok";
467
+ untested: "untested";
468
+ }>;
469
+ comment: z.ZodString;
470
+ updatedAt: z.ZodISODateTime;
471
+ }, z.core.$strip>>;
472
+ }, z.core.$strip>>;
473
+ reviews: z.ZodArray<z.ZodObject<{
474
+ id: z.ZodString;
475
+ testerId: z.ZodString;
476
+ testerName: z.ZodString;
477
+ text: z.ZodString;
478
+ submittedAt: z.ZodISODateTime;
479
+ requestId: z.ZodNullable<z.ZodString>;
480
+ requestStatus: z.ZodNullable<z.ZodEnum<{
481
+ cancelled: "cancelled";
482
+ done: "done";
483
+ failed: "failed";
484
+ pending: "pending";
485
+ processing: "processing";
486
+ }>>;
487
+ }, z.core.$strip>>;
488
+ }, z.core.$strip>>;
489
+ comments: z.ZodArray<z.ZodObject<{
490
+ id: z.ZodString;
491
+ authorId: z.ZodString;
492
+ authorName: z.ZodString;
493
+ body: z.ZodString;
494
+ createdAt: z.ZodISODateTime;
495
+ editedAt: z.ZodNullable<z.ZodISODateTime>;
496
+ byAgent: z.ZodBoolean;
497
+ }, z.core.$strip>>;
498
+ attachments: z.ZodArray<z.ZodObject<{
499
+ id: z.ZodString;
500
+ filename: z.ZodString;
501
+ mime: z.ZodString;
502
+ size: z.ZodNumber;
503
+ uploaderId: z.ZodString;
504
+ createdAt: z.ZodISODateTime;
505
+ }, z.core.$strip>>;
506
+ members: z.ZodArray<z.ZodObject<{
507
+ userId: z.ZodString;
508
+ displayName: z.ZodNullable<z.ZodString>;
509
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
510
+ }, z.core.$strip>>;
511
+ tags: z.ZodArray<z.ZodObject<{
512
+ id: z.ZodString;
513
+ name: z.ZodString;
514
+ }, z.core.$strip>>;
515
+ agentEdit: z.ZodNullable<z.ZodObject<{
516
+ actionId: z.ZodString;
517
+ at: z.ZodISODateTime;
518
+ }, z.core.$strip>>;
519
+ }, z.core.$strip>;
520
+ export type TaskDetailResponse = z.infer<typeof TaskDetailResponseSchema>;
521
+ export declare const CreateTaskRequestSchema: z.ZodObject<{
522
+ title: z.ZodString;
523
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
524
+ status: z.ZodOptional<z.ZodEnum<{
525
+ doing: "doing";
526
+ done: "done";
527
+ review: "review";
528
+ todo: "todo";
529
+ }>>;
530
+ type: z.ZodOptional<z.ZodEnum<{
531
+ standard: "standard";
532
+ test: "test";
533
+ }>>;
534
+ priority: z.ZodOptional<z.ZodEnum<{
535
+ critical: "critical";
536
+ high: "high";
537
+ low: "low";
538
+ medium: "medium";
539
+ }>>;
540
+ description: z.ZodOptional<z.ZodString>;
541
+ }, z.core.$strip>;
542
+ export type CreateTaskRequest = z.infer<typeof CreateTaskRequestSchema>;
543
+ export declare const UpdateTaskRequestSchema: z.ZodObject<{
544
+ title: z.ZodOptional<z.ZodString>;
545
+ description: z.ZodOptional<z.ZodString>;
546
+ status: z.ZodOptional<z.ZodEnum<{
547
+ doing: "doing";
548
+ done: "done";
549
+ review: "review";
550
+ todo: "todo";
551
+ }>>;
552
+ priority: z.ZodOptional<z.ZodEnum<{
553
+ critical: "critical";
554
+ high: "high";
555
+ low: "low";
556
+ medium: "medium";
557
+ }>>;
558
+ type: z.ZodOptional<z.ZodEnum<{
559
+ standard: "standard";
560
+ test: "test";
561
+ }>>;
562
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
+ testedTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
+ }, z.core.$strip>;
565
+ export type UpdateTaskRequest = z.infer<typeof UpdateTaskRequestSchema>;
566
+ /** Déplacement Kanban : colonne cible, et tâche après laquelle se placer (null : en tête de colonne). */
567
+ export declare const MoveTaskRequestSchema: z.ZodObject<{
568
+ status: z.ZodEnum<{
569
+ doing: "doing";
570
+ done: "done";
571
+ review: "review";
572
+ todo: "todo";
573
+ }>;
574
+ afterId: z.ZodNullable<z.ZodString>;
575
+ }, z.core.$strip>;
576
+ export type MoveTaskRequest = z.infer<typeof MoveTaskRequestSchema>;
577
+ export declare const SetAssigneesRequestSchema: z.ZodObject<{
578
+ userIds: z.ZodArray<z.ZodString>;
579
+ }, z.core.$strip>;
580
+ export type SetAssigneesRequest = z.infer<typeof SetAssigneesRequestSchema>;
581
+ export declare const SetTagsRequestSchema: z.ZodObject<{
582
+ names: z.ZodArray<z.ZodString>;
583
+ }, z.core.$strip>;
584
+ export type SetTagsRequest = z.infer<typeof SetTagsRequestSchema>;
585
+ export declare const ChecklistTextSchema: z.ZodString;
586
+ export declare const AddChecklistItemRequestSchema: z.ZodObject<{
587
+ text: z.ZodString;
588
+ }, z.core.$strip>;
589
+ export type AddChecklistItemRequest = z.infer<typeof AddChecklistItemRequestSchema>;
590
+ export declare const UpdateChecklistItemRequestSchema: z.ZodObject<{
591
+ text: z.ZodOptional<z.ZodString>;
592
+ done: z.ZodOptional<z.ZodBoolean>;
593
+ }, z.core.$strip>;
594
+ export type UpdateChecklistItemRequest = z.infer<typeof UpdateChecklistItemRequestSchema>;
595
+ /** Réordonnancement : élément après lequel se placer (null : en tête). */
596
+ export declare const MoveAfterRequestSchema: z.ZodObject<{
597
+ afterId: z.ZodNullable<z.ZodString>;
598
+ }, z.core.$strip>;
599
+ export type MoveAfterRequest = z.infer<typeof MoveAfterRequestSchema>;
600
+ export declare const CheckpointTextSchema: z.ZodString;
601
+ export declare const CheckpointTextRequestSchema: z.ZodObject<{
602
+ text: z.ZodString;
603
+ }, z.core.$strip>;
604
+ export type CheckpointTextRequest = z.infer<typeof CheckpointTextRequestSchema>;
605
+ export declare const MAX_TEST_COMMENT_LENGTH = 2000;
606
+ /** Résultat de l'utilisateur sur un point : valeur, commentaire, ou les deux. */
607
+ export declare const SetTestResultRequestSchema: z.ZodObject<{
608
+ result: z.ZodOptional<z.ZodEnum<{
609
+ blocked: "blocked";
610
+ ko: "ko";
611
+ ok: "ok";
612
+ untested: "untested";
613
+ }>>;
614
+ comment: z.ZodOptional<z.ZodString>;
615
+ }, z.core.$strip>;
616
+ export type SetTestResultRequest = z.infer<typeof SetTestResultRequestSchema>;
617
+ export declare const MAX_REVIEW_LENGTH = 10000;
618
+ export declare const ReviewDraftRequestSchema: z.ZodObject<{
619
+ text: z.ZodString;
620
+ }, z.core.$strip>;
621
+ export type ReviewDraftRequest = z.infer<typeof ReviewDraftRequestSchema>;
622
+ export declare const ReviewDraftResponseSchema: z.ZodObject<{
623
+ draft: z.ZodString;
624
+ }, z.core.$strip>;
625
+ export type ReviewDraftResponse = z.infer<typeof ReviewDraftResponseSchema>;
626
+ export declare const SubmitReviewRequestSchema: z.ZodObject<{
627
+ text: z.ZodString;
628
+ }, z.core.$strip>;
629
+ export type SubmitReviewRequest = z.infer<typeof SubmitReviewRequestSchema>;
630
+ export declare const CommentRequestSchema: z.ZodObject<{
631
+ body: z.ZodString;
632
+ }, z.core.$strip>;
633
+ export type CommentRequest = z.infer<typeof CommentRequestSchema>;
634
+ /** Type MIME `type/sous-type`, sans paramètres. */
635
+ export declare const MimeTypeSchema: z.ZodString;
636
+ /** Pièce jointe transmise par le serveur web, qui lit le formulaire multipart du navigateur. */
637
+ export declare const UploadAttachmentRequestSchema: z.ZodObject<{
638
+ filename: z.ZodString;
639
+ mime: z.ZodString;
640
+ contentBase64: z.ZodString;
641
+ }, z.core.$strip>;
642
+ export type UploadAttachmentRequest = z.infer<typeof UploadAttachmentRequestSchema>;
643
+ /** Changements des espaces de l'utilisateur et numéro du dernier changement transmis. */
644
+ export declare const ChangesResponseSchema: z.ZodObject<{
645
+ seq: z.ZodNumber;
646
+ changes: z.ZodArray<z.ZodObject<{
647
+ seq: z.ZodNumber;
648
+ spaceId: z.ZodNullable<z.ZodString>;
649
+ userId: z.ZodNullable<z.ZodString>;
650
+ entityType: z.ZodEnum<{
651
+ agent_action: "agent_action";
652
+ agent_request: "agent_request";
653
+ agent_token: "agent_token";
654
+ attachment: "attachment";
655
+ checklist_item: "checklist_item";
656
+ comment: "comment";
657
+ idea: "idea";
658
+ invitation: "invitation";
659
+ membership: "membership";
660
+ notification: "notification";
661
+ space: "space";
662
+ tag: "tag";
663
+ task: "task";
664
+ test_checkpoint: "test_checkpoint";
665
+ test_result: "test_result";
666
+ test_review: "test_review";
667
+ user: "user";
668
+ user_settings: "user_settings";
669
+ }>;
670
+ entityId: z.ZodString;
671
+ taskId: z.ZodNullable<z.ZodString>;
672
+ at: z.ZodISODateTime;
673
+ }, z.core.$strip>>;
674
+ }, z.core.$strip>;
675
+ export type ChangesResponse = z.infer<typeof ChangesResponseSchema>;