@imenam/mcp-organizer 0.0.0-stage → 1.0.2

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 (165) hide show
  1. package/README.md +548 -3
  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 +269 -0
  13. package/dist/shared/schemas/agent-api.schema.js +97 -0
  14. package/dist/shared/schemas/agent-tools.schema.d.ts +818 -0
  15. package/dist/shared/schemas/agent-tools.schema.js +198 -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/notifications.d.ts +16 -0
  39. package/dist/src/agent-api/notifications.js +91 -0
  40. package/dist/src/agent-api/requests.d.ts +3 -0
  41. package/dist/src/agent-api/requests.js +60 -0
  42. package/dist/src/agent-api/router.d.ts +3 -0
  43. package/dist/src/agent-api/router.js +41 -0
  44. package/dist/src/agent-api/tasks.d.ts +2 -0
  45. package/dist/src/agent-api/tasks.js +290 -0
  46. package/dist/src/agent-api/types.d.ts +41 -0
  47. package/dist/src/agent-api/types.js +14 -0
  48. package/dist/src/cli/backup.d.ts +12 -0
  49. package/dist/src/cli/backup.js +126 -0
  50. package/dist/src/cli/prompt.d.ts +7 -0
  51. package/dist/src/cli/prompt.js +40 -0
  52. package/dist/src/cli/set-user.d.ts +2 -0
  53. package/dist/src/cli/set-user.js +114 -0
  54. package/dist/src/cli/setup-mcp.d.ts +10 -0
  55. package/dist/src/cli/setup-mcp.js +110 -0
  56. package/dist/src/cli/setup.d.ts +39 -0
  57. package/dist/src/cli/setup.js +626 -0
  58. package/dist/src/cli/watch.d.ts +4 -0
  59. package/dist/src/cli/watch.js +62 -0
  60. package/dist/src/core/accounts.d.ts +129 -0
  61. package/dist/src/core/accounts.js +284 -0
  62. package/dist/src/core/agent-tokens.d.ts +31 -0
  63. package/dist/src/core/agent-tokens.js +120 -0
  64. package/dist/src/core/agent.d.ts +71 -0
  65. package/dist/src/core/agent.js +358 -0
  66. package/dist/src/core/attachments.d.ts +21 -0
  67. package/dist/src/core/attachments.js +44 -0
  68. package/dist/src/core/data-dir.d.ts +5 -0
  69. package/dist/src/core/data-dir.js +11 -0
  70. package/dist/src/core/db.d.ts +13 -0
  71. package/dist/src/core/db.js +38 -0
  72. package/dist/src/core/env-file.d.ts +11 -0
  73. package/dist/src/core/env-file.js +36 -0
  74. package/dist/src/core/errors.d.ts +24 -0
  75. package/dist/src/core/errors.js +42 -0
  76. package/dist/src/core/history.d.ts +34 -0
  77. package/dist/src/core/history.js +279 -0
  78. package/dist/src/core/ideas.d.ts +16 -0
  79. package/dist/src/core/ideas.js +100 -0
  80. package/dist/src/core/ids.d.ts +2 -0
  81. package/dist/src/core/ids.js +5 -0
  82. package/dist/src/core/log-dir.d.ts +2 -0
  83. package/dist/src/core/log-dir.js +9 -0
  84. package/dist/src/core/logger.d.ts +14 -0
  85. package/dist/src/core/logger.js +37 -0
  86. package/dist/src/core/mail.d.ts +43 -0
  87. package/dist/src/core/mail.js +44 -0
  88. package/dist/src/core/mcp-entry.d.ts +20 -0
  89. package/dist/src/core/mcp-entry.js +15 -0
  90. package/dist/src/core/migrations.d.ts +18 -0
  91. package/dist/src/core/migrations.js +404 -0
  92. package/dist/src/core/native-sqlite.d.ts +2 -0
  93. package/dist/src/core/native-sqlite.js +23 -0
  94. package/dist/src/core/notifications.d.ts +46 -0
  95. package/dist/src/core/notifications.js +173 -0
  96. package/dist/src/core/project-root.d.ts +2 -0
  97. package/dist/src/core/project-root.js +13 -0
  98. package/dist/src/core/requests.d.ts +50 -0
  99. package/dist/src/core/requests.js +240 -0
  100. package/dist/src/core/snapshots.d.ts +32 -0
  101. package/dist/src/core/snapshots.js +35 -0
  102. package/dist/src/core/spaces.d.ts +66 -0
  103. package/dist/src/core/spaces.js +252 -0
  104. package/dist/src/core/store.d.ts +577 -0
  105. package/dist/src/core/store.js +2119 -0
  106. package/dist/src/core/task-history.d.ts +7 -0
  107. package/dist/src/core/task-history.js +41 -0
  108. package/dist/src/core/tasks.d.ts +58 -0
  109. package/dist/src/core/tasks.js +389 -0
  110. package/dist/src/core/test-tasks.d.ts +19 -0
  111. package/dist/src/core/test-tasks.js +135 -0
  112. package/dist/src/core/transcription.d.ts +45 -0
  113. package/dist/src/core/transcription.js +92 -0
  114. package/dist/src/core/watchers.d.ts +30 -0
  115. package/dist/src/core/watchers.js +50 -0
  116. package/dist/src/deploy/env-render.d.ts +26 -0
  117. package/dist/src/deploy/env-render.js +98 -0
  118. package/dist/src/deploy/templates.d.ts +38 -0
  119. package/dist/src/deploy/templates.js +130 -0
  120. package/dist/src/gui-api.d.ts +37 -0
  121. package/dist/src/gui-api.js +383 -0
  122. package/dist/src/index.d.ts +2 -0
  123. package/dist/src/index.js +110 -0
  124. package/dist/src/mcp/client.d.ts +38 -0
  125. package/dist/src/mcp/client.js +106 -0
  126. package/dist/src/mcp/notifications.d.ts +13 -0
  127. package/dist/src/mcp/notifications.js +54 -0
  128. package/dist/src/mcp/start.d.ts +14 -0
  129. package/dist/src/mcp/start.js +123 -0
  130. package/dist/src/mcp/tools.d.ts +46 -0
  131. package/dist/src/mcp/tools.js +348 -0
  132. package/dist/src/mcp/watch-handoff.d.ts +35 -0
  133. package/dist/src/mcp/watch-handoff.js +91 -0
  134. package/dist/src/server/app.d.ts +25 -0
  135. package/dist/src/server/app.js +305 -0
  136. package/dist/src/server/config.d.ts +23 -0
  137. package/dist/src/server/config.js +75 -0
  138. package/dist/src/server/limits.d.ts +2 -0
  139. package/dist/src/server/limits.js +4 -0
  140. package/dist/src/server/login-limiter.d.ts +36 -0
  141. package/dist/src/server/login-limiter.js +81 -0
  142. package/dist/src/server/start.d.ts +5 -0
  143. package/dist/src/server/start.js +88 -0
  144. package/dist/src/version.d.ts +1 -0
  145. package/dist/src/version.js +16 -0
  146. package/gui/dist/assets/index-BVN0agCc.css +1 -0
  147. package/gui/dist/assets/index-DI1_kr81.js +70 -0
  148. package/gui/dist/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  149. package/gui/dist/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  150. package/gui/dist/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  151. package/gui/dist/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  152. package/gui/dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  153. package/gui/dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  154. package/gui/dist/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  155. package/gui/dist/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
  156. package/gui/dist/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
  157. package/gui/dist/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
  158. package/gui/dist/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
  159. package/gui/dist/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  160. package/gui/dist/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  161. package/gui/dist/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  162. package/gui/dist/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
  163. package/gui/dist/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
  164. package/gui/dist/index.html +13 -0
  165. package/package.json +66 -4
@@ -0,0 +1,818 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * API des agents (`/api/agent/*`), partagée par le site et le mode MCP :
4
+ * paramètres et corps des requêtes (noms des arguments des outils), et
5
+ * réponses. Chaque réponse porte `text`, le résultat rédigé pour l'agent, et
6
+ * `data`, les mêmes informations structurées. Une erreur est `{ error }`.
7
+ */
8
+ export declare const MAX_REQUEST_LIST_LIMIT = 100;
9
+ export declare const MAX_SEARCH_LIMIT = 100;
10
+ export declare const MAX_REPLY_LENGTH = 5000;
11
+ export declare const MAX_REASON_LENGTH = 2000;
12
+ export declare const MAX_COMMENT_LENGTH = 10000;
13
+ export declare const MAX_IDEA_LENGTH = 5000;
14
+ export declare const MAX_CHECKLIST_ITEM_LENGTH = 500;
15
+ export declare const MAX_CHECKLIST_OPERATIONS = 50;
16
+ /** `GET requests` : statut à lister (`all` : tous) et nombre maximal. */
17
+ export declare const ListRequestsQuerySchema: z.ZodObject<{
18
+ status: z.ZodDefault<z.ZodEnum<{
19
+ all: "all";
20
+ cancelled: "cancelled";
21
+ done: "done";
22
+ failed: "failed";
23
+ pending: "pending";
24
+ processing: "processing";
25
+ }>>;
26
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
27
+ }, z.core.$strict>;
28
+ /** Durée maximale d'une attente longue de `GET requests/wait`, en secondes. */
29
+ export declare const MAX_WAIT_SECONDS = 50;
30
+ /**
31
+ * `GET requests/wait` : durée de l'attente ; `since`, curseur rendu par
32
+ * l'attente précédente (les demandes passées en attente depuis sont rendues
33
+ * aussitôt) ; `watcher=true` pour un veilleur de notifications.
34
+ */
35
+ export declare const WaitRequestsQuerySchema: z.ZodObject<{
36
+ timeout_seconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
37
+ since: z.ZodOptional<z.ZodISODateTime>;
38
+ watcher: z.ZodOptional<z.ZodEnum<{
39
+ true: "true";
40
+ }>>;
41
+ }, z.core.$strict>;
42
+ /** `POST requests/:id/claim` : sans corps. */
43
+ export declare const ClaimRequestBodySchema: z.ZodObject<{}, z.core.$strict>;
44
+ export declare const CompleteRequestBodySchema: z.ZodObject<{
45
+ reply: z.ZodString;
46
+ }, z.core.$strict>;
47
+ export declare const FailRequestBodySchema: z.ZodObject<{
48
+ reason: z.ZodString;
49
+ }, z.core.$strict>;
50
+ /** `GET tasks` : recherche par mots et filtres. */
51
+ export declare const SearchTasksQuerySchema: z.ZodObject<{
52
+ query: z.ZodOptional<z.ZodString>;
53
+ status: z.ZodOptional<z.ZodEnum<{
54
+ doing: "doing";
55
+ done: "done";
56
+ review: "review";
57
+ todo: "todo";
58
+ }>>;
59
+ priority: z.ZodOptional<z.ZodEnum<{
60
+ critical: "critical";
61
+ high: "high";
62
+ low: "low";
63
+ medium: "medium";
64
+ }>>;
65
+ type: z.ZodOptional<z.ZodEnum<{
66
+ standard: "standard";
67
+ test: "test";
68
+ }>>;
69
+ assignee: z.ZodOptional<z.ZodString>;
70
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
71
+ }, z.core.$strict>;
72
+ /** `GET tasks/:ref` et `GET context` : sans paramètre. */
73
+ export declare const NoQuerySchema: z.ZodObject<{}, z.core.$strict>;
74
+ export declare const CreateTaskBodySchema: z.ZodObject<{
75
+ request_id: z.ZodString;
76
+ title: z.ZodString;
77
+ description: z.ZodOptional<z.ZodString>;
78
+ type: z.ZodOptional<z.ZodEnum<{
79
+ standard: "standard";
80
+ test: "test";
81
+ }>>;
82
+ priority: z.ZodOptional<z.ZodEnum<{
83
+ critical: "critical";
84
+ high: "high";
85
+ low: "low";
86
+ medium: "medium";
87
+ }>>;
88
+ status: z.ZodOptional<z.ZodEnum<{
89
+ doing: "doing";
90
+ done: "done";
91
+ review: "review";
92
+ todo: "todo";
93
+ }>>;
94
+ parent: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strict>;
96
+ export declare const UpdateTaskBodySchema: z.ZodObject<{
97
+ request_id: z.ZodString;
98
+ title: z.ZodOptional<z.ZodString>;
99
+ description: z.ZodOptional<z.ZodString>;
100
+ status: z.ZodOptional<z.ZodEnum<{
101
+ doing: "doing";
102
+ done: "done";
103
+ review: "review";
104
+ todo: "todo";
105
+ }>>;
106
+ priority: z.ZodOptional<z.ZodEnum<{
107
+ critical: "critical";
108
+ high: "high";
109
+ low: "low";
110
+ medium: "medium";
111
+ }>>;
112
+ type: z.ZodOptional<z.ZodEnum<{
113
+ standard: "standard";
114
+ test: "test";
115
+ }>>;
116
+ parent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ after_task: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ tested_task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ }, z.core.$strict>;
120
+ export declare const SetAssigneesBodySchema: z.ZodObject<{
121
+ request_id: z.ZodString;
122
+ assignees: z.ZodArray<z.ZodString>;
123
+ }, z.core.$strict>;
124
+ export declare const SetTagsBodySchema: z.ZodObject<{
125
+ request_id: z.ZodString;
126
+ tags: z.ZodArray<z.ZodString>;
127
+ }, z.core.$strict>;
128
+ export declare const ChecklistOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
129
+ action: z.ZodLiteral<"add">;
130
+ text: z.ZodString;
131
+ }, z.core.$strict>, z.ZodObject<{
132
+ action: z.ZodLiteral<"update">;
133
+ item_id: z.ZodString;
134
+ text: z.ZodOptional<z.ZodString>;
135
+ done: z.ZodOptional<z.ZodBoolean>;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ action: z.ZodLiteral<"delete">;
138
+ item_id: z.ZodString;
139
+ }, z.core.$strict>], "action">;
140
+ export type ChecklistOperation = z.infer<typeof ChecklistOperationSchema>;
141
+ export declare const EditChecklistBodySchema: z.ZodObject<{
142
+ request_id: z.ZodString;
143
+ operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
144
+ action: z.ZodLiteral<"add">;
145
+ text: z.ZodString;
146
+ }, z.core.$strict>, z.ZodObject<{
147
+ action: z.ZodLiteral<"update">;
148
+ item_id: z.ZodString;
149
+ text: z.ZodOptional<z.ZodString>;
150
+ done: z.ZodOptional<z.ZodBoolean>;
151
+ }, z.core.$strict>, z.ZodObject<{
152
+ action: z.ZodLiteral<"delete">;
153
+ item_id: z.ZodString;
154
+ }, z.core.$strict>], "action">>;
155
+ }, z.core.$strict>;
156
+ export declare const AddCommentBodySchema: z.ZodObject<{
157
+ request_id: z.ZodString;
158
+ body: z.ZodString;
159
+ }, z.core.$strict>;
160
+ export declare const CreateIdeaBodySchema: z.ZodObject<{
161
+ request_id: z.ZodString;
162
+ text: z.ZodString;
163
+ }, z.core.$strict>;
164
+ export declare const UpdateIdeaBodySchema: z.ZodObject<{
165
+ request_id: z.ZodString;
166
+ text: z.ZodOptional<z.ZodString>;
167
+ archived: z.ZodOptional<z.ZodBoolean>;
168
+ }, z.core.$strict>;
169
+ export declare const PromoteIdeaBodySchema: z.ZodObject<{
170
+ request_id: z.ZodString;
171
+ title: z.ZodString;
172
+ description: z.ZodOptional<z.ZodString>;
173
+ type: z.ZodOptional<z.ZodEnum<{
174
+ standard: "standard";
175
+ test: "test";
176
+ }>>;
177
+ priority: z.ZodOptional<z.ZodEnum<{
178
+ critical: "critical";
179
+ high: "high";
180
+ low: "low";
181
+ medium: "medium";
182
+ }>>;
183
+ parent: z.ZodOptional<z.ZodString>;
184
+ }, z.core.$strict>;
185
+ /** Enveloppe de toute réponse réussie : texte pour l'agent et données structurées. */
186
+ export declare const AgentEnvelopeSchema: z.ZodObject<{
187
+ text: z.ZodString;
188
+ data: z.ZodUnknown;
189
+ }, z.core.$strip>;
190
+ export type AgentEnvelope = z.infer<typeof AgentEnvelopeSchema>;
191
+ /** Réponse d'erreur : le message dit à l'agent quoi faire. */
192
+ export declare const AgentErrorSchema: z.ZodObject<{
193
+ error: z.ZodString;
194
+ }, z.core.$strip>;
195
+ export declare const AgentSpaceSchema: z.ZodObject<{
196
+ id: z.ZodString;
197
+ name: z.ZodString;
198
+ kind: z.ZodEnum<{
199
+ personal: "personal";
200
+ shared: "shared";
201
+ }>;
202
+ keyPrefix: z.ZodString;
203
+ }, z.core.$strip>;
204
+ export type AgentSpace = z.infer<typeof AgentSpaceSchema>;
205
+ export declare const AgentMemberSchema: z.ZodObject<{
206
+ id: z.ZodString;
207
+ name: z.ZodString;
208
+ email: z.ZodString;
209
+ role: z.ZodEnum<{
210
+ member: "member";
211
+ owner: "owner";
212
+ }>;
213
+ }, z.core.$strip>;
214
+ export type AgentMember = z.infer<typeof AgentMemberSchema>;
215
+ export declare const AgentTaskSummarySchema: z.ZodObject<{
216
+ id: z.ZodString;
217
+ key: z.ZodString;
218
+ title: z.ZodString;
219
+ type: z.ZodEnum<{
220
+ standard: "standard";
221
+ test: "test";
222
+ }>;
223
+ status: z.ZodEnum<{
224
+ doing: "doing";
225
+ done: "done";
226
+ review: "review";
227
+ todo: "todo";
228
+ }>;
229
+ priority: z.ZodEnum<{
230
+ critical: "critical";
231
+ high: "high";
232
+ low: "low";
233
+ medium: "medium";
234
+ }>;
235
+ depth: z.ZodNumber;
236
+ parentKey: z.ZodNullable<z.ZodString>;
237
+ assigneeIds: z.ZodArray<z.ZodString>;
238
+ tags: z.ZodArray<z.ZodString>;
239
+ }, z.core.$strip>;
240
+ export type AgentTaskSummary = z.infer<typeof AgentTaskSummarySchema>;
241
+ export declare const AgentRequestSummarySchema: z.ZodObject<{
242
+ id: z.ZodString;
243
+ kind: z.ZodEnum<{
244
+ idea: "idea";
245
+ idea_promotion: "idea_promotion";
246
+ message: "message";
247
+ remark: "remark";
248
+ test_review: "test_review";
249
+ }>;
250
+ status: z.ZodEnum<{
251
+ cancelled: "cancelled";
252
+ done: "done";
253
+ failed: "failed";
254
+ pending: "pending";
255
+ processing: "processing";
256
+ }>;
257
+ text: z.ZodString;
258
+ author: z.ZodObject<{
259
+ id: z.ZodString;
260
+ name: z.ZodString;
261
+ email: z.ZodString;
262
+ }, z.core.$strip>;
263
+ contextTask: z.ZodNullable<z.ZodObject<{
264
+ id: z.ZodString;
265
+ key: z.ZodString;
266
+ title: z.ZodString;
267
+ }, z.core.$strip>>;
268
+ contextIdeaId: z.ZodNullable<z.ZodString>;
269
+ createdAt: z.ZodISODateTime;
270
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
271
+ claimedByThisToken: z.ZodBoolean;
272
+ reply: z.ZodNullable<z.ZodString>;
273
+ failureReason: z.ZodNullable<z.ZodString>;
274
+ }, z.core.$strip>;
275
+ export type AgentRequestSummary = z.infer<typeof AgentRequestSummarySchema>;
276
+ export declare const AgentIdeaSchema: z.ZodObject<{
277
+ id: z.ZodString;
278
+ text: z.ZodString;
279
+ archived: z.ZodBoolean;
280
+ promotedTaskKey: z.ZodNullable<z.ZodString>;
281
+ createdAt: z.ZodISODateTime;
282
+ }, z.core.$strip>;
283
+ export type AgentIdea = z.infer<typeof AgentIdeaSchema>;
284
+ export declare const ListRequestsDataSchema: z.ZodObject<{
285
+ space: z.ZodObject<{
286
+ id: z.ZodString;
287
+ name: z.ZodString;
288
+ kind: z.ZodEnum<{
289
+ personal: "personal";
290
+ shared: "shared";
291
+ }>;
292
+ keyPrefix: z.ZodString;
293
+ }, z.core.$strip>;
294
+ requests: z.ZodArray<z.ZodObject<{
295
+ id: z.ZodString;
296
+ kind: z.ZodEnum<{
297
+ idea: "idea";
298
+ idea_promotion: "idea_promotion";
299
+ message: "message";
300
+ remark: "remark";
301
+ test_review: "test_review";
302
+ }>;
303
+ status: z.ZodEnum<{
304
+ cancelled: "cancelled";
305
+ done: "done";
306
+ failed: "failed";
307
+ pending: "pending";
308
+ processing: "processing";
309
+ }>;
310
+ text: z.ZodString;
311
+ author: z.ZodObject<{
312
+ id: z.ZodString;
313
+ name: z.ZodString;
314
+ email: z.ZodString;
315
+ }, z.core.$strip>;
316
+ contextTask: z.ZodNullable<z.ZodObject<{
317
+ id: z.ZodString;
318
+ key: z.ZodString;
319
+ title: z.ZodString;
320
+ }, z.core.$strip>>;
321
+ contextIdeaId: z.ZodNullable<z.ZodString>;
322
+ createdAt: z.ZodISODateTime;
323
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
324
+ claimedByThisToken: z.ZodBoolean;
325
+ reply: z.ZodNullable<z.ZodString>;
326
+ failureReason: z.ZodNullable<z.ZodString>;
327
+ }, z.core.$strip>>;
328
+ }, z.core.$strip>;
329
+ export declare const ClaimRequestDataSchema: z.ZodObject<{
330
+ request: z.ZodObject<{
331
+ id: z.ZodString;
332
+ kind: z.ZodEnum<{
333
+ idea: "idea";
334
+ idea_promotion: "idea_promotion";
335
+ message: "message";
336
+ remark: "remark";
337
+ test_review: "test_review";
338
+ }>;
339
+ status: z.ZodEnum<{
340
+ cancelled: "cancelled";
341
+ done: "done";
342
+ failed: "failed";
343
+ pending: "pending";
344
+ processing: "processing";
345
+ }>;
346
+ text: z.ZodString;
347
+ author: z.ZodObject<{
348
+ id: z.ZodString;
349
+ name: z.ZodString;
350
+ email: z.ZodString;
351
+ }, z.core.$strip>;
352
+ contextTask: z.ZodNullable<z.ZodObject<{
353
+ id: z.ZodString;
354
+ key: z.ZodString;
355
+ title: z.ZodString;
356
+ }, z.core.$strip>>;
357
+ contextIdeaId: z.ZodNullable<z.ZodString>;
358
+ createdAt: z.ZodISODateTime;
359
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
360
+ claimedByThisToken: z.ZodBoolean;
361
+ reply: z.ZodNullable<z.ZodString>;
362
+ failureReason: z.ZodNullable<z.ZodString>;
363
+ }, z.core.$strip>;
364
+ space: z.ZodObject<{
365
+ id: z.ZodString;
366
+ name: z.ZodString;
367
+ kind: z.ZodEnum<{
368
+ personal: "personal";
369
+ shared: "shared";
370
+ }>;
371
+ keyPrefix: z.ZodString;
372
+ }, z.core.$strip>;
373
+ members: z.ZodArray<z.ZodObject<{
374
+ id: z.ZodString;
375
+ name: z.ZodString;
376
+ email: z.ZodString;
377
+ role: z.ZodEnum<{
378
+ member: "member";
379
+ owner: "owner";
380
+ }>;
381
+ }, z.core.$strip>>;
382
+ tasks: z.ZodArray<z.ZodObject<{
383
+ id: z.ZodString;
384
+ key: z.ZodString;
385
+ title: z.ZodString;
386
+ type: z.ZodEnum<{
387
+ standard: "standard";
388
+ test: "test";
389
+ }>;
390
+ status: z.ZodEnum<{
391
+ doing: "doing";
392
+ done: "done";
393
+ review: "review";
394
+ todo: "todo";
395
+ }>;
396
+ priority: z.ZodEnum<{
397
+ critical: "critical";
398
+ high: "high";
399
+ low: "low";
400
+ medium: "medium";
401
+ }>;
402
+ depth: z.ZodNumber;
403
+ parentKey: z.ZodNullable<z.ZodString>;
404
+ assigneeIds: z.ZodArray<z.ZodString>;
405
+ tags: z.ZodArray<z.ZodString>;
406
+ }, z.core.$strip>>;
407
+ ideas: z.ZodArray<z.ZodObject<{
408
+ id: z.ZodString;
409
+ text: z.ZodString;
410
+ archived: z.ZodBoolean;
411
+ promotedTaskKey: z.ZodNullable<z.ZodString>;
412
+ createdAt: z.ZodISODateTime;
413
+ }, z.core.$strip>>;
414
+ }, z.core.$strip>;
415
+ export declare const FinishRequestDataSchema: z.ZodObject<{
416
+ request: z.ZodObject<{
417
+ id: z.ZodString;
418
+ kind: z.ZodEnum<{
419
+ idea: "idea";
420
+ idea_promotion: "idea_promotion";
421
+ message: "message";
422
+ remark: "remark";
423
+ test_review: "test_review";
424
+ }>;
425
+ status: z.ZodEnum<{
426
+ cancelled: "cancelled";
427
+ done: "done";
428
+ failed: "failed";
429
+ pending: "pending";
430
+ processing: "processing";
431
+ }>;
432
+ text: z.ZodString;
433
+ author: z.ZodObject<{
434
+ id: z.ZodString;
435
+ name: z.ZodString;
436
+ email: z.ZodString;
437
+ }, z.core.$strip>;
438
+ contextTask: z.ZodNullable<z.ZodObject<{
439
+ id: z.ZodString;
440
+ key: z.ZodString;
441
+ title: z.ZodString;
442
+ }, z.core.$strip>>;
443
+ contextIdeaId: z.ZodNullable<z.ZodString>;
444
+ createdAt: z.ZodISODateTime;
445
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
446
+ claimedByThisToken: z.ZodBoolean;
447
+ reply: z.ZodNullable<z.ZodString>;
448
+ failureReason: z.ZodNullable<z.ZodString>;
449
+ }, z.core.$strip>;
450
+ actionCount: z.ZodNumber;
451
+ }, z.core.$strip>;
452
+ export declare const ContextDataSchema: z.ZodObject<{
453
+ space: z.ZodObject<{
454
+ id: z.ZodString;
455
+ name: z.ZodString;
456
+ kind: z.ZodEnum<{
457
+ personal: "personal";
458
+ shared: "shared";
459
+ }>;
460
+ keyPrefix: z.ZodString;
461
+ }, z.core.$strip>;
462
+ members: z.ZodArray<z.ZodObject<{
463
+ id: z.ZodString;
464
+ name: z.ZodString;
465
+ email: z.ZodString;
466
+ role: z.ZodEnum<{
467
+ member: "member";
468
+ owner: "owner";
469
+ }>;
470
+ }, z.core.$strip>>;
471
+ tasks: z.ZodArray<z.ZodObject<{
472
+ id: z.ZodString;
473
+ key: z.ZodString;
474
+ title: z.ZodString;
475
+ type: z.ZodEnum<{
476
+ standard: "standard";
477
+ test: "test";
478
+ }>;
479
+ status: z.ZodEnum<{
480
+ doing: "doing";
481
+ done: "done";
482
+ review: "review";
483
+ todo: "todo";
484
+ }>;
485
+ priority: z.ZodEnum<{
486
+ critical: "critical";
487
+ high: "high";
488
+ low: "low";
489
+ medium: "medium";
490
+ }>;
491
+ depth: z.ZodNumber;
492
+ parentKey: z.ZodNullable<z.ZodString>;
493
+ assigneeIds: z.ZodArray<z.ZodString>;
494
+ tags: z.ZodArray<z.ZodString>;
495
+ }, z.core.$strip>>;
496
+ ideas: z.ZodArray<z.ZodObject<{
497
+ id: z.ZodString;
498
+ text: z.ZodString;
499
+ archived: z.ZodBoolean;
500
+ promotedTaskKey: z.ZodNullable<z.ZodString>;
501
+ createdAt: z.ZodISODateTime;
502
+ }, z.core.$strip>>;
503
+ }, z.core.$strip>;
504
+ export declare const TaskDataSchema: z.ZodObject<{
505
+ task: z.ZodObject<{
506
+ id: z.ZodString;
507
+ key: z.ZodString;
508
+ title: z.ZodString;
509
+ type: z.ZodEnum<{
510
+ standard: "standard";
511
+ test: "test";
512
+ }>;
513
+ status: z.ZodEnum<{
514
+ doing: "doing";
515
+ done: "done";
516
+ review: "review";
517
+ todo: "todo";
518
+ }>;
519
+ priority: z.ZodEnum<{
520
+ critical: "critical";
521
+ high: "high";
522
+ low: "low";
523
+ medium: "medium";
524
+ }>;
525
+ depth: z.ZodNumber;
526
+ parentKey: z.ZodNullable<z.ZodString>;
527
+ assigneeIds: z.ZodArray<z.ZodString>;
528
+ tags: z.ZodArray<z.ZodString>;
529
+ }, z.core.$strip>;
530
+ }, z.core.$strip>;
531
+ export declare const TaskDetailDataSchema: z.ZodObject<{
532
+ task: z.ZodObject<{
533
+ id: z.ZodString;
534
+ key: z.ZodString;
535
+ title: z.ZodString;
536
+ type: z.ZodEnum<{
537
+ standard: "standard";
538
+ test: "test";
539
+ }>;
540
+ status: z.ZodEnum<{
541
+ doing: "doing";
542
+ done: "done";
543
+ review: "review";
544
+ todo: "todo";
545
+ }>;
546
+ priority: z.ZodEnum<{
547
+ critical: "critical";
548
+ high: "high";
549
+ low: "low";
550
+ medium: "medium";
551
+ }>;
552
+ depth: z.ZodNumber;
553
+ parentKey: z.ZodNullable<z.ZodString>;
554
+ assigneeIds: z.ZodArray<z.ZodString>;
555
+ tags: z.ZodArray<z.ZodString>;
556
+ }, z.core.$strip>;
557
+ description: z.ZodString;
558
+ testedTaskKey: z.ZodNullable<z.ZodString>;
559
+ checklist: z.ZodArray<z.ZodObject<{
560
+ id: z.ZodString;
561
+ text: z.ZodString;
562
+ done: z.ZodBoolean;
563
+ }, z.core.$strip>>;
564
+ checkpoints: z.ZodArray<z.ZodObject<{
565
+ id: z.ZodString;
566
+ text: z.ZodString;
567
+ result: z.ZodEnum<{
568
+ blocked: "blocked";
569
+ ko: "ko";
570
+ ok: "ok";
571
+ untested: "untested";
572
+ }>;
573
+ }, z.core.$strip>>;
574
+ children: z.ZodArray<z.ZodObject<{
575
+ id: z.ZodString;
576
+ key: z.ZodString;
577
+ title: z.ZodString;
578
+ type: z.ZodEnum<{
579
+ standard: "standard";
580
+ test: "test";
581
+ }>;
582
+ status: z.ZodEnum<{
583
+ doing: "doing";
584
+ done: "done";
585
+ review: "review";
586
+ todo: "todo";
587
+ }>;
588
+ priority: z.ZodEnum<{
589
+ critical: "critical";
590
+ high: "high";
591
+ low: "low";
592
+ medium: "medium";
593
+ }>;
594
+ depth: z.ZodNumber;
595
+ parentKey: z.ZodNullable<z.ZodString>;
596
+ assigneeIds: z.ZodArray<z.ZodString>;
597
+ tags: z.ZodArray<z.ZodString>;
598
+ }, z.core.$strip>>;
599
+ comments: z.ZodArray<z.ZodObject<{
600
+ id: z.ZodString;
601
+ authorName: z.ZodString;
602
+ byAgent: z.ZodBoolean;
603
+ body: z.ZodString;
604
+ createdAt: z.ZodISODateTime;
605
+ }, z.core.$strip>>;
606
+ attachments: z.ZodArray<z.ZodString>;
607
+ }, z.core.$strip>;
608
+ export declare const SearchTasksDataSchema: z.ZodObject<{
609
+ tasks: z.ZodArray<z.ZodObject<{
610
+ id: z.ZodString;
611
+ key: z.ZodString;
612
+ title: z.ZodString;
613
+ type: z.ZodEnum<{
614
+ standard: "standard";
615
+ test: "test";
616
+ }>;
617
+ status: z.ZodEnum<{
618
+ doing: "doing";
619
+ done: "done";
620
+ review: "review";
621
+ todo: "todo";
622
+ }>;
623
+ priority: z.ZodEnum<{
624
+ critical: "critical";
625
+ high: "high";
626
+ low: "low";
627
+ medium: "medium";
628
+ }>;
629
+ depth: z.ZodNumber;
630
+ parentKey: z.ZodNullable<z.ZodString>;
631
+ assigneeIds: z.ZodArray<z.ZodString>;
632
+ tags: z.ZodArray<z.ZodString>;
633
+ }, z.core.$strip>>;
634
+ total: z.ZodNumber;
635
+ }, z.core.$strip>;
636
+ export declare const ChecklistDataSchema: z.ZodObject<{
637
+ task: z.ZodObject<{
638
+ id: z.ZodString;
639
+ key: z.ZodString;
640
+ title: z.ZodString;
641
+ type: z.ZodEnum<{
642
+ standard: "standard";
643
+ test: "test";
644
+ }>;
645
+ status: z.ZodEnum<{
646
+ doing: "doing";
647
+ done: "done";
648
+ review: "review";
649
+ todo: "todo";
650
+ }>;
651
+ priority: z.ZodEnum<{
652
+ critical: "critical";
653
+ high: "high";
654
+ low: "low";
655
+ medium: "medium";
656
+ }>;
657
+ depth: z.ZodNumber;
658
+ parentKey: z.ZodNullable<z.ZodString>;
659
+ assigneeIds: z.ZodArray<z.ZodString>;
660
+ tags: z.ZodArray<z.ZodString>;
661
+ }, z.core.$strip>;
662
+ items: z.ZodArray<z.ZodObject<{
663
+ id: z.ZodString;
664
+ text: z.ZodString;
665
+ done: z.ZodNullable<z.ZodBoolean>;
666
+ }, z.core.$strip>>;
667
+ }, z.core.$strip>;
668
+ export declare const CommentDataSchema: z.ZodObject<{
669
+ task: z.ZodObject<{
670
+ id: z.ZodString;
671
+ key: z.ZodString;
672
+ title: z.ZodString;
673
+ type: z.ZodEnum<{
674
+ standard: "standard";
675
+ test: "test";
676
+ }>;
677
+ status: z.ZodEnum<{
678
+ doing: "doing";
679
+ done: "done";
680
+ review: "review";
681
+ todo: "todo";
682
+ }>;
683
+ priority: z.ZodEnum<{
684
+ critical: "critical";
685
+ high: "high";
686
+ low: "low";
687
+ medium: "medium";
688
+ }>;
689
+ depth: z.ZodNumber;
690
+ parentKey: z.ZodNullable<z.ZodString>;
691
+ assigneeIds: z.ZodArray<z.ZodString>;
692
+ tags: z.ZodArray<z.ZodString>;
693
+ }, z.core.$strip>;
694
+ commentId: z.ZodString;
695
+ }, z.core.$strip>;
696
+ export declare const IdeaDataSchema: z.ZodObject<{
697
+ idea: z.ZodObject<{
698
+ id: z.ZodString;
699
+ text: z.ZodString;
700
+ archived: z.ZodBoolean;
701
+ promotedTaskKey: z.ZodNullable<z.ZodString>;
702
+ createdAt: z.ZodISODateTime;
703
+ }, z.core.$strip>;
704
+ }, z.core.$strip>;
705
+ export declare const PromoteIdeaDataSchema: z.ZodObject<{
706
+ idea: z.ZodObject<{
707
+ id: z.ZodString;
708
+ text: z.ZodString;
709
+ archived: z.ZodBoolean;
710
+ promotedTaskKey: z.ZodNullable<z.ZodString>;
711
+ createdAt: z.ZodISODateTime;
712
+ }, z.core.$strip>;
713
+ task: z.ZodObject<{
714
+ id: z.ZodString;
715
+ key: z.ZodString;
716
+ title: z.ZodString;
717
+ type: z.ZodEnum<{
718
+ standard: "standard";
719
+ test: "test";
720
+ }>;
721
+ status: z.ZodEnum<{
722
+ doing: "doing";
723
+ done: "done";
724
+ review: "review";
725
+ todo: "todo";
726
+ }>;
727
+ priority: z.ZodEnum<{
728
+ critical: "critical";
729
+ high: "high";
730
+ low: "low";
731
+ medium: "medium";
732
+ }>;
733
+ depth: z.ZodNumber;
734
+ parentKey: z.ZodNullable<z.ZodString>;
735
+ assigneeIds: z.ZodArray<z.ZodString>;
736
+ tags: z.ZodArray<z.ZodString>;
737
+ }, z.core.$strip>;
738
+ }, z.core.$strip>;
739
+ /** Présence d'un veilleur de notifications pour le jeton. */
740
+ export declare const AgentWatcherSchema: z.ZodObject<{
741
+ armed: z.ZodBoolean;
742
+ since: z.ZodNullable<z.ZodISODateTime>;
743
+ lastSeen: z.ZodNullable<z.ZodISODateTime>;
744
+ }, z.core.$strip>;
745
+ /** `GET notifications` : jeton et espace de l'agent, demandes en attente et veilleur du jeton. */
746
+ export declare const NotificationsDataSchema: z.ZodObject<{
747
+ token: z.ZodObject<{
748
+ id: z.ZodString;
749
+ name: z.ZodString;
750
+ }, z.core.$strip>;
751
+ space: z.ZodObject<{
752
+ id: z.ZodString;
753
+ name: z.ZodString;
754
+ kind: z.ZodEnum<{
755
+ personal: "personal";
756
+ shared: "shared";
757
+ }>;
758
+ keyPrefix: z.ZodString;
759
+ }, z.core.$strip>;
760
+ pendingCount: z.ZodNumber;
761
+ watcher: z.ZodObject<{
762
+ armed: z.ZodBoolean;
763
+ since: z.ZodNullable<z.ZodISODateTime>;
764
+ lastSeen: z.ZodNullable<z.ZodISODateTime>;
765
+ }, z.core.$strip>;
766
+ }, z.core.$strip>;
767
+ /**
768
+ * `GET requests/wait` : demandes passées en attente (vide à l'expiration) et
769
+ * curseur à repasser en `since` à l'attente suivante.
770
+ */
771
+ export declare const WaitRequestsDataSchema: z.ZodObject<{
772
+ space: z.ZodObject<{
773
+ id: z.ZodString;
774
+ name: z.ZodString;
775
+ kind: z.ZodEnum<{
776
+ personal: "personal";
777
+ shared: "shared";
778
+ }>;
779
+ keyPrefix: z.ZodString;
780
+ }, z.core.$strip>;
781
+ requests: z.ZodArray<z.ZodObject<{
782
+ id: z.ZodString;
783
+ kind: z.ZodEnum<{
784
+ idea: "idea";
785
+ idea_promotion: "idea_promotion";
786
+ message: "message";
787
+ remark: "remark";
788
+ test_review: "test_review";
789
+ }>;
790
+ status: z.ZodEnum<{
791
+ cancelled: "cancelled";
792
+ done: "done";
793
+ failed: "failed";
794
+ pending: "pending";
795
+ processing: "processing";
796
+ }>;
797
+ text: z.ZodString;
798
+ author: z.ZodObject<{
799
+ id: z.ZodString;
800
+ name: z.ZodString;
801
+ email: z.ZodString;
802
+ }, z.core.$strip>;
803
+ contextTask: z.ZodNullable<z.ZodObject<{
804
+ id: z.ZodString;
805
+ key: z.ZodString;
806
+ title: z.ZodString;
807
+ }, z.core.$strip>>;
808
+ contextIdeaId: z.ZodNullable<z.ZodString>;
809
+ createdAt: z.ZodISODateTime;
810
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
811
+ claimedByThisToken: z.ZodBoolean;
812
+ reply: z.ZodNullable<z.ZodString>;
813
+ failureReason: z.ZodNullable<z.ZodString>;
814
+ }, z.core.$strip>>;
815
+ cursor: z.ZodISODateTime;
816
+ timedOut: z.ZodBoolean;
817
+ }, z.core.$strip>;
818
+ export type WaitRequestsData = z.infer<typeof WaitRequestsDataSchema>;