@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,724 @@
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
+ /** `POST requests/:id/claim` : sans corps. */
29
+ export declare const ClaimRequestBodySchema: z.ZodObject<{}, z.core.$strict>;
30
+ export declare const CompleteRequestBodySchema: z.ZodObject<{
31
+ reply: z.ZodString;
32
+ }, z.core.$strict>;
33
+ export declare const FailRequestBodySchema: z.ZodObject<{
34
+ reason: z.ZodString;
35
+ }, z.core.$strict>;
36
+ /** `GET tasks` : recherche par mots et filtres. */
37
+ export declare const SearchTasksQuerySchema: z.ZodObject<{
38
+ query: z.ZodOptional<z.ZodString>;
39
+ status: z.ZodOptional<z.ZodEnum<{
40
+ doing: "doing";
41
+ done: "done";
42
+ review: "review";
43
+ todo: "todo";
44
+ }>>;
45
+ priority: z.ZodOptional<z.ZodEnum<{
46
+ critical: "critical";
47
+ high: "high";
48
+ low: "low";
49
+ medium: "medium";
50
+ }>>;
51
+ type: z.ZodOptional<z.ZodEnum<{
52
+ standard: "standard";
53
+ test: "test";
54
+ }>>;
55
+ assignee: z.ZodOptional<z.ZodString>;
56
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
57
+ }, z.core.$strict>;
58
+ /** `GET tasks/:ref` et `GET context` : sans paramètre. */
59
+ export declare const NoQuerySchema: z.ZodObject<{}, z.core.$strict>;
60
+ export declare const CreateTaskBodySchema: z.ZodObject<{
61
+ request_id: z.ZodString;
62
+ title: z.ZodString;
63
+ description: z.ZodOptional<z.ZodString>;
64
+ type: z.ZodOptional<z.ZodEnum<{
65
+ standard: "standard";
66
+ test: "test";
67
+ }>>;
68
+ priority: z.ZodOptional<z.ZodEnum<{
69
+ critical: "critical";
70
+ high: "high";
71
+ low: "low";
72
+ medium: "medium";
73
+ }>>;
74
+ status: z.ZodOptional<z.ZodEnum<{
75
+ doing: "doing";
76
+ done: "done";
77
+ review: "review";
78
+ todo: "todo";
79
+ }>>;
80
+ parent: z.ZodOptional<z.ZodString>;
81
+ }, z.core.$strict>;
82
+ export declare const UpdateTaskBodySchema: z.ZodObject<{
83
+ request_id: z.ZodString;
84
+ title: z.ZodOptional<z.ZodString>;
85
+ description: z.ZodOptional<z.ZodString>;
86
+ status: z.ZodOptional<z.ZodEnum<{
87
+ doing: "doing";
88
+ done: "done";
89
+ review: "review";
90
+ todo: "todo";
91
+ }>>;
92
+ priority: z.ZodOptional<z.ZodEnum<{
93
+ critical: "critical";
94
+ high: "high";
95
+ low: "low";
96
+ medium: "medium";
97
+ }>>;
98
+ type: z.ZodOptional<z.ZodEnum<{
99
+ standard: "standard";
100
+ test: "test";
101
+ }>>;
102
+ parent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ after_task: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ tested_task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ }, z.core.$strict>;
106
+ export declare const SetAssigneesBodySchema: z.ZodObject<{
107
+ request_id: z.ZodString;
108
+ assignees: z.ZodArray<z.ZodString>;
109
+ }, z.core.$strict>;
110
+ export declare const SetTagsBodySchema: z.ZodObject<{
111
+ request_id: z.ZodString;
112
+ tags: z.ZodArray<z.ZodString>;
113
+ }, z.core.$strict>;
114
+ export declare const ChecklistOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
+ action: z.ZodLiteral<"add">;
116
+ text: z.ZodString;
117
+ }, z.core.$strict>, z.ZodObject<{
118
+ action: z.ZodLiteral<"update">;
119
+ item_id: z.ZodString;
120
+ text: z.ZodOptional<z.ZodString>;
121
+ done: z.ZodOptional<z.ZodBoolean>;
122
+ }, z.core.$strict>, z.ZodObject<{
123
+ action: z.ZodLiteral<"delete">;
124
+ item_id: z.ZodString;
125
+ }, z.core.$strict>], "action">;
126
+ export type ChecklistOperation = z.infer<typeof ChecklistOperationSchema>;
127
+ export declare const EditChecklistBodySchema: z.ZodObject<{
128
+ request_id: z.ZodString;
129
+ operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
130
+ action: z.ZodLiteral<"add">;
131
+ text: z.ZodString;
132
+ }, z.core.$strict>, z.ZodObject<{
133
+ action: z.ZodLiteral<"update">;
134
+ item_id: z.ZodString;
135
+ text: z.ZodOptional<z.ZodString>;
136
+ done: z.ZodOptional<z.ZodBoolean>;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ action: z.ZodLiteral<"delete">;
139
+ item_id: z.ZodString;
140
+ }, z.core.$strict>], "action">>;
141
+ }, z.core.$strict>;
142
+ export declare const AddCommentBodySchema: z.ZodObject<{
143
+ request_id: z.ZodString;
144
+ body: z.ZodString;
145
+ }, z.core.$strict>;
146
+ export declare const CreateIdeaBodySchema: z.ZodObject<{
147
+ request_id: z.ZodString;
148
+ text: z.ZodString;
149
+ }, z.core.$strict>;
150
+ export declare const UpdateIdeaBodySchema: z.ZodObject<{
151
+ request_id: z.ZodString;
152
+ text: z.ZodOptional<z.ZodString>;
153
+ archived: z.ZodOptional<z.ZodBoolean>;
154
+ }, z.core.$strict>;
155
+ export declare const PromoteIdeaBodySchema: z.ZodObject<{
156
+ request_id: z.ZodString;
157
+ title: z.ZodString;
158
+ description: z.ZodOptional<z.ZodString>;
159
+ type: z.ZodOptional<z.ZodEnum<{
160
+ standard: "standard";
161
+ test: "test";
162
+ }>>;
163
+ priority: z.ZodOptional<z.ZodEnum<{
164
+ critical: "critical";
165
+ high: "high";
166
+ low: "low";
167
+ medium: "medium";
168
+ }>>;
169
+ parent: z.ZodOptional<z.ZodString>;
170
+ }, z.core.$strict>;
171
+ /** Enveloppe de toute réponse réussie : texte pour l'agent et données structurées. */
172
+ export declare const AgentEnvelopeSchema: z.ZodObject<{
173
+ text: z.ZodString;
174
+ data: z.ZodUnknown;
175
+ }, z.core.$strip>;
176
+ export type AgentEnvelope = z.infer<typeof AgentEnvelopeSchema>;
177
+ /** Réponse d'erreur : le message dit à l'agent quoi faire. */
178
+ export declare const AgentErrorSchema: z.ZodObject<{
179
+ error: z.ZodString;
180
+ }, z.core.$strip>;
181
+ export declare const AgentSpaceSchema: z.ZodObject<{
182
+ id: z.ZodString;
183
+ name: z.ZodString;
184
+ kind: z.ZodEnum<{
185
+ personal: "personal";
186
+ shared: "shared";
187
+ }>;
188
+ keyPrefix: z.ZodString;
189
+ }, z.core.$strip>;
190
+ export type AgentSpace = z.infer<typeof AgentSpaceSchema>;
191
+ export declare const AgentMemberSchema: z.ZodObject<{
192
+ id: z.ZodString;
193
+ name: z.ZodString;
194
+ email: z.ZodString;
195
+ role: z.ZodEnum<{
196
+ member: "member";
197
+ owner: "owner";
198
+ }>;
199
+ }, z.core.$strip>;
200
+ export type AgentMember = z.infer<typeof AgentMemberSchema>;
201
+ export declare const AgentTaskSummarySchema: z.ZodObject<{
202
+ id: z.ZodString;
203
+ key: z.ZodString;
204
+ title: z.ZodString;
205
+ type: z.ZodEnum<{
206
+ standard: "standard";
207
+ test: "test";
208
+ }>;
209
+ status: z.ZodEnum<{
210
+ doing: "doing";
211
+ done: "done";
212
+ review: "review";
213
+ todo: "todo";
214
+ }>;
215
+ priority: z.ZodEnum<{
216
+ critical: "critical";
217
+ high: "high";
218
+ low: "low";
219
+ medium: "medium";
220
+ }>;
221
+ depth: z.ZodNumber;
222
+ parentKey: z.ZodNullable<z.ZodString>;
223
+ assigneeIds: z.ZodArray<z.ZodString>;
224
+ tags: z.ZodArray<z.ZodString>;
225
+ }, z.core.$strip>;
226
+ export type AgentTaskSummary = z.infer<typeof AgentTaskSummarySchema>;
227
+ export declare const AgentRequestSummarySchema: z.ZodObject<{
228
+ id: z.ZodString;
229
+ kind: z.ZodEnum<{
230
+ idea: "idea";
231
+ idea_promotion: "idea_promotion";
232
+ message: "message";
233
+ remark: "remark";
234
+ test_review: "test_review";
235
+ }>;
236
+ status: z.ZodEnum<{
237
+ cancelled: "cancelled";
238
+ done: "done";
239
+ failed: "failed";
240
+ pending: "pending";
241
+ processing: "processing";
242
+ }>;
243
+ text: z.ZodString;
244
+ author: z.ZodObject<{
245
+ id: z.ZodString;
246
+ name: z.ZodString;
247
+ email: z.ZodString;
248
+ }, z.core.$strip>;
249
+ contextTask: z.ZodNullable<z.ZodObject<{
250
+ id: z.ZodString;
251
+ key: z.ZodString;
252
+ title: z.ZodString;
253
+ }, z.core.$strip>>;
254
+ contextIdeaId: z.ZodNullable<z.ZodString>;
255
+ createdAt: z.ZodISODateTime;
256
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
257
+ claimedByThisToken: z.ZodBoolean;
258
+ reply: z.ZodNullable<z.ZodString>;
259
+ failureReason: z.ZodNullable<z.ZodString>;
260
+ }, z.core.$strip>;
261
+ export type AgentRequestSummary = z.infer<typeof AgentRequestSummarySchema>;
262
+ export declare const AgentIdeaSchema: z.ZodObject<{
263
+ id: z.ZodString;
264
+ text: z.ZodString;
265
+ archived: z.ZodBoolean;
266
+ promotedTaskKey: z.ZodNullable<z.ZodString>;
267
+ createdAt: z.ZodISODateTime;
268
+ }, z.core.$strip>;
269
+ export type AgentIdea = z.infer<typeof AgentIdeaSchema>;
270
+ export declare const ListRequestsDataSchema: z.ZodObject<{
271
+ space: z.ZodObject<{
272
+ id: z.ZodString;
273
+ name: z.ZodString;
274
+ kind: z.ZodEnum<{
275
+ personal: "personal";
276
+ shared: "shared";
277
+ }>;
278
+ keyPrefix: z.ZodString;
279
+ }, z.core.$strip>;
280
+ requests: z.ZodArray<z.ZodObject<{
281
+ id: z.ZodString;
282
+ kind: z.ZodEnum<{
283
+ idea: "idea";
284
+ idea_promotion: "idea_promotion";
285
+ message: "message";
286
+ remark: "remark";
287
+ test_review: "test_review";
288
+ }>;
289
+ status: z.ZodEnum<{
290
+ cancelled: "cancelled";
291
+ done: "done";
292
+ failed: "failed";
293
+ pending: "pending";
294
+ processing: "processing";
295
+ }>;
296
+ text: z.ZodString;
297
+ author: z.ZodObject<{
298
+ id: z.ZodString;
299
+ name: z.ZodString;
300
+ email: z.ZodString;
301
+ }, z.core.$strip>;
302
+ contextTask: z.ZodNullable<z.ZodObject<{
303
+ id: z.ZodString;
304
+ key: z.ZodString;
305
+ title: z.ZodString;
306
+ }, z.core.$strip>>;
307
+ contextIdeaId: z.ZodNullable<z.ZodString>;
308
+ createdAt: z.ZodISODateTime;
309
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
310
+ claimedByThisToken: z.ZodBoolean;
311
+ reply: z.ZodNullable<z.ZodString>;
312
+ failureReason: z.ZodNullable<z.ZodString>;
313
+ }, z.core.$strip>>;
314
+ }, z.core.$strip>;
315
+ export declare const ClaimRequestDataSchema: z.ZodObject<{
316
+ request: z.ZodObject<{
317
+ id: z.ZodString;
318
+ kind: z.ZodEnum<{
319
+ idea: "idea";
320
+ idea_promotion: "idea_promotion";
321
+ message: "message";
322
+ remark: "remark";
323
+ test_review: "test_review";
324
+ }>;
325
+ status: z.ZodEnum<{
326
+ cancelled: "cancelled";
327
+ done: "done";
328
+ failed: "failed";
329
+ pending: "pending";
330
+ processing: "processing";
331
+ }>;
332
+ text: z.ZodString;
333
+ author: z.ZodObject<{
334
+ id: z.ZodString;
335
+ name: z.ZodString;
336
+ email: z.ZodString;
337
+ }, z.core.$strip>;
338
+ contextTask: z.ZodNullable<z.ZodObject<{
339
+ id: z.ZodString;
340
+ key: z.ZodString;
341
+ title: z.ZodString;
342
+ }, z.core.$strip>>;
343
+ contextIdeaId: z.ZodNullable<z.ZodString>;
344
+ createdAt: z.ZodISODateTime;
345
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
346
+ claimedByThisToken: z.ZodBoolean;
347
+ reply: z.ZodNullable<z.ZodString>;
348
+ failureReason: z.ZodNullable<z.ZodString>;
349
+ }, z.core.$strip>;
350
+ space: z.ZodObject<{
351
+ id: z.ZodString;
352
+ name: z.ZodString;
353
+ kind: z.ZodEnum<{
354
+ personal: "personal";
355
+ shared: "shared";
356
+ }>;
357
+ keyPrefix: z.ZodString;
358
+ }, z.core.$strip>;
359
+ members: z.ZodArray<z.ZodObject<{
360
+ id: z.ZodString;
361
+ name: z.ZodString;
362
+ email: z.ZodString;
363
+ role: z.ZodEnum<{
364
+ member: "member";
365
+ owner: "owner";
366
+ }>;
367
+ }, z.core.$strip>>;
368
+ tasks: z.ZodArray<z.ZodObject<{
369
+ id: z.ZodString;
370
+ key: z.ZodString;
371
+ title: z.ZodString;
372
+ type: z.ZodEnum<{
373
+ standard: "standard";
374
+ test: "test";
375
+ }>;
376
+ status: z.ZodEnum<{
377
+ doing: "doing";
378
+ done: "done";
379
+ review: "review";
380
+ todo: "todo";
381
+ }>;
382
+ priority: z.ZodEnum<{
383
+ critical: "critical";
384
+ high: "high";
385
+ low: "low";
386
+ medium: "medium";
387
+ }>;
388
+ depth: z.ZodNumber;
389
+ parentKey: z.ZodNullable<z.ZodString>;
390
+ assigneeIds: z.ZodArray<z.ZodString>;
391
+ tags: z.ZodArray<z.ZodString>;
392
+ }, z.core.$strip>>;
393
+ ideas: z.ZodArray<z.ZodObject<{
394
+ id: z.ZodString;
395
+ text: z.ZodString;
396
+ archived: z.ZodBoolean;
397
+ promotedTaskKey: z.ZodNullable<z.ZodString>;
398
+ createdAt: z.ZodISODateTime;
399
+ }, z.core.$strip>>;
400
+ }, z.core.$strip>;
401
+ export declare const FinishRequestDataSchema: z.ZodObject<{
402
+ request: z.ZodObject<{
403
+ id: z.ZodString;
404
+ kind: z.ZodEnum<{
405
+ idea: "idea";
406
+ idea_promotion: "idea_promotion";
407
+ message: "message";
408
+ remark: "remark";
409
+ test_review: "test_review";
410
+ }>;
411
+ status: z.ZodEnum<{
412
+ cancelled: "cancelled";
413
+ done: "done";
414
+ failed: "failed";
415
+ pending: "pending";
416
+ processing: "processing";
417
+ }>;
418
+ text: z.ZodString;
419
+ author: z.ZodObject<{
420
+ id: z.ZodString;
421
+ name: z.ZodString;
422
+ email: z.ZodString;
423
+ }, z.core.$strip>;
424
+ contextTask: z.ZodNullable<z.ZodObject<{
425
+ id: z.ZodString;
426
+ key: z.ZodString;
427
+ title: z.ZodString;
428
+ }, z.core.$strip>>;
429
+ contextIdeaId: z.ZodNullable<z.ZodString>;
430
+ createdAt: z.ZodISODateTime;
431
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
432
+ claimedByThisToken: z.ZodBoolean;
433
+ reply: z.ZodNullable<z.ZodString>;
434
+ failureReason: z.ZodNullable<z.ZodString>;
435
+ }, z.core.$strip>;
436
+ actionCount: z.ZodNumber;
437
+ }, z.core.$strip>;
438
+ export declare const ContextDataSchema: z.ZodObject<{
439
+ space: z.ZodObject<{
440
+ id: z.ZodString;
441
+ name: z.ZodString;
442
+ kind: z.ZodEnum<{
443
+ personal: "personal";
444
+ shared: "shared";
445
+ }>;
446
+ keyPrefix: z.ZodString;
447
+ }, z.core.$strip>;
448
+ members: z.ZodArray<z.ZodObject<{
449
+ id: z.ZodString;
450
+ name: z.ZodString;
451
+ email: z.ZodString;
452
+ role: z.ZodEnum<{
453
+ member: "member";
454
+ owner: "owner";
455
+ }>;
456
+ }, z.core.$strip>>;
457
+ tasks: z.ZodArray<z.ZodObject<{
458
+ id: z.ZodString;
459
+ key: z.ZodString;
460
+ title: z.ZodString;
461
+ type: z.ZodEnum<{
462
+ standard: "standard";
463
+ test: "test";
464
+ }>;
465
+ status: z.ZodEnum<{
466
+ doing: "doing";
467
+ done: "done";
468
+ review: "review";
469
+ todo: "todo";
470
+ }>;
471
+ priority: z.ZodEnum<{
472
+ critical: "critical";
473
+ high: "high";
474
+ low: "low";
475
+ medium: "medium";
476
+ }>;
477
+ depth: z.ZodNumber;
478
+ parentKey: z.ZodNullable<z.ZodString>;
479
+ assigneeIds: z.ZodArray<z.ZodString>;
480
+ tags: z.ZodArray<z.ZodString>;
481
+ }, z.core.$strip>>;
482
+ ideas: z.ZodArray<z.ZodObject<{
483
+ id: z.ZodString;
484
+ text: z.ZodString;
485
+ archived: z.ZodBoolean;
486
+ promotedTaskKey: z.ZodNullable<z.ZodString>;
487
+ createdAt: z.ZodISODateTime;
488
+ }, z.core.$strip>>;
489
+ }, z.core.$strip>;
490
+ export declare const TaskDataSchema: z.ZodObject<{
491
+ task: z.ZodObject<{
492
+ id: z.ZodString;
493
+ key: z.ZodString;
494
+ title: z.ZodString;
495
+ type: z.ZodEnum<{
496
+ standard: "standard";
497
+ test: "test";
498
+ }>;
499
+ status: z.ZodEnum<{
500
+ doing: "doing";
501
+ done: "done";
502
+ review: "review";
503
+ todo: "todo";
504
+ }>;
505
+ priority: z.ZodEnum<{
506
+ critical: "critical";
507
+ high: "high";
508
+ low: "low";
509
+ medium: "medium";
510
+ }>;
511
+ depth: z.ZodNumber;
512
+ parentKey: z.ZodNullable<z.ZodString>;
513
+ assigneeIds: z.ZodArray<z.ZodString>;
514
+ tags: z.ZodArray<z.ZodString>;
515
+ }, z.core.$strip>;
516
+ }, z.core.$strip>;
517
+ export declare const TaskDetailDataSchema: z.ZodObject<{
518
+ task: z.ZodObject<{
519
+ id: z.ZodString;
520
+ key: z.ZodString;
521
+ title: z.ZodString;
522
+ type: z.ZodEnum<{
523
+ standard: "standard";
524
+ test: "test";
525
+ }>;
526
+ status: z.ZodEnum<{
527
+ doing: "doing";
528
+ done: "done";
529
+ review: "review";
530
+ todo: "todo";
531
+ }>;
532
+ priority: z.ZodEnum<{
533
+ critical: "critical";
534
+ high: "high";
535
+ low: "low";
536
+ medium: "medium";
537
+ }>;
538
+ depth: z.ZodNumber;
539
+ parentKey: z.ZodNullable<z.ZodString>;
540
+ assigneeIds: z.ZodArray<z.ZodString>;
541
+ tags: z.ZodArray<z.ZodString>;
542
+ }, z.core.$strip>;
543
+ description: z.ZodString;
544
+ testedTaskKey: z.ZodNullable<z.ZodString>;
545
+ checklist: z.ZodArray<z.ZodObject<{
546
+ id: z.ZodString;
547
+ text: z.ZodString;
548
+ done: z.ZodBoolean;
549
+ }, z.core.$strip>>;
550
+ checkpoints: z.ZodArray<z.ZodObject<{
551
+ id: z.ZodString;
552
+ text: z.ZodString;
553
+ result: z.ZodEnum<{
554
+ blocked: "blocked";
555
+ ko: "ko";
556
+ ok: "ok";
557
+ untested: "untested";
558
+ }>;
559
+ }, z.core.$strip>>;
560
+ children: z.ZodArray<z.ZodObject<{
561
+ id: z.ZodString;
562
+ key: z.ZodString;
563
+ title: z.ZodString;
564
+ type: z.ZodEnum<{
565
+ standard: "standard";
566
+ test: "test";
567
+ }>;
568
+ status: z.ZodEnum<{
569
+ doing: "doing";
570
+ done: "done";
571
+ review: "review";
572
+ todo: "todo";
573
+ }>;
574
+ priority: z.ZodEnum<{
575
+ critical: "critical";
576
+ high: "high";
577
+ low: "low";
578
+ medium: "medium";
579
+ }>;
580
+ depth: z.ZodNumber;
581
+ parentKey: z.ZodNullable<z.ZodString>;
582
+ assigneeIds: z.ZodArray<z.ZodString>;
583
+ tags: z.ZodArray<z.ZodString>;
584
+ }, z.core.$strip>>;
585
+ comments: z.ZodArray<z.ZodObject<{
586
+ id: z.ZodString;
587
+ authorName: z.ZodString;
588
+ byAgent: z.ZodBoolean;
589
+ body: z.ZodString;
590
+ createdAt: z.ZodISODateTime;
591
+ }, z.core.$strip>>;
592
+ attachments: z.ZodArray<z.ZodString>;
593
+ }, z.core.$strip>;
594
+ export declare const SearchTasksDataSchema: z.ZodObject<{
595
+ tasks: z.ZodArray<z.ZodObject<{
596
+ id: z.ZodString;
597
+ key: z.ZodString;
598
+ title: z.ZodString;
599
+ type: z.ZodEnum<{
600
+ standard: "standard";
601
+ test: "test";
602
+ }>;
603
+ status: z.ZodEnum<{
604
+ doing: "doing";
605
+ done: "done";
606
+ review: "review";
607
+ todo: "todo";
608
+ }>;
609
+ priority: z.ZodEnum<{
610
+ critical: "critical";
611
+ high: "high";
612
+ low: "low";
613
+ medium: "medium";
614
+ }>;
615
+ depth: z.ZodNumber;
616
+ parentKey: z.ZodNullable<z.ZodString>;
617
+ assigneeIds: z.ZodArray<z.ZodString>;
618
+ tags: z.ZodArray<z.ZodString>;
619
+ }, z.core.$strip>>;
620
+ total: z.ZodNumber;
621
+ }, z.core.$strip>;
622
+ export declare const ChecklistDataSchema: z.ZodObject<{
623
+ task: z.ZodObject<{
624
+ id: z.ZodString;
625
+ key: z.ZodString;
626
+ title: z.ZodString;
627
+ type: z.ZodEnum<{
628
+ standard: "standard";
629
+ test: "test";
630
+ }>;
631
+ status: z.ZodEnum<{
632
+ doing: "doing";
633
+ done: "done";
634
+ review: "review";
635
+ todo: "todo";
636
+ }>;
637
+ priority: z.ZodEnum<{
638
+ critical: "critical";
639
+ high: "high";
640
+ low: "low";
641
+ medium: "medium";
642
+ }>;
643
+ depth: z.ZodNumber;
644
+ parentKey: z.ZodNullable<z.ZodString>;
645
+ assigneeIds: z.ZodArray<z.ZodString>;
646
+ tags: z.ZodArray<z.ZodString>;
647
+ }, z.core.$strip>;
648
+ items: z.ZodArray<z.ZodObject<{
649
+ id: z.ZodString;
650
+ text: z.ZodString;
651
+ done: z.ZodNullable<z.ZodBoolean>;
652
+ }, z.core.$strip>>;
653
+ }, z.core.$strip>;
654
+ export declare const CommentDataSchema: z.ZodObject<{
655
+ task: z.ZodObject<{
656
+ id: z.ZodString;
657
+ key: z.ZodString;
658
+ title: z.ZodString;
659
+ type: z.ZodEnum<{
660
+ standard: "standard";
661
+ test: "test";
662
+ }>;
663
+ status: z.ZodEnum<{
664
+ doing: "doing";
665
+ done: "done";
666
+ review: "review";
667
+ todo: "todo";
668
+ }>;
669
+ priority: z.ZodEnum<{
670
+ critical: "critical";
671
+ high: "high";
672
+ low: "low";
673
+ medium: "medium";
674
+ }>;
675
+ depth: z.ZodNumber;
676
+ parentKey: z.ZodNullable<z.ZodString>;
677
+ assigneeIds: z.ZodArray<z.ZodString>;
678
+ tags: z.ZodArray<z.ZodString>;
679
+ }, z.core.$strip>;
680
+ commentId: z.ZodString;
681
+ }, z.core.$strip>;
682
+ export declare const IdeaDataSchema: z.ZodObject<{
683
+ idea: z.ZodObject<{
684
+ id: z.ZodString;
685
+ text: z.ZodString;
686
+ archived: z.ZodBoolean;
687
+ promotedTaskKey: z.ZodNullable<z.ZodString>;
688
+ createdAt: z.ZodISODateTime;
689
+ }, z.core.$strip>;
690
+ }, z.core.$strip>;
691
+ export declare const PromoteIdeaDataSchema: z.ZodObject<{
692
+ idea: z.ZodObject<{
693
+ id: z.ZodString;
694
+ text: z.ZodString;
695
+ archived: z.ZodBoolean;
696
+ promotedTaskKey: z.ZodNullable<z.ZodString>;
697
+ createdAt: z.ZodISODateTime;
698
+ }, z.core.$strip>;
699
+ task: z.ZodObject<{
700
+ id: z.ZodString;
701
+ key: z.ZodString;
702
+ title: z.ZodString;
703
+ type: z.ZodEnum<{
704
+ standard: "standard";
705
+ test: "test";
706
+ }>;
707
+ status: z.ZodEnum<{
708
+ doing: "doing";
709
+ done: "done";
710
+ review: "review";
711
+ todo: "todo";
712
+ }>;
713
+ priority: z.ZodEnum<{
714
+ critical: "critical";
715
+ high: "high";
716
+ low: "low";
717
+ medium: "medium";
718
+ }>;
719
+ depth: z.ZodNumber;
720
+ parentKey: z.ZodNullable<z.ZodString>;
721
+ assigneeIds: z.ZodArray<z.ZodString>;
722
+ tags: z.ZodArray<z.ZodString>;
723
+ }, z.core.$strip>;
724
+ }, z.core.$strip>;