@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.
- package/README.md +529 -2
- package/dist/shared/logic/first-account.d.ts +13 -0
- package/dist/shared/logic/first-account.js +15 -0
- package/dist/shared/logic/labels.d.ts +5 -0
- package/dist/shared/logic/labels.js +17 -0
- package/dist/shared/logic/positions.d.ts +9 -0
- package/dist/shared/logic/positions.js +19 -0
- package/dist/shared/logic/spaces.d.ts +13 -0
- package/dist/shared/logic/spaces.js +48 -0
- package/dist/shared/logic/test-summary.d.ts +28 -0
- package/dist/shared/logic/test-summary.js +35 -0
- package/dist/shared/schemas/agent-api.schema.d.ts +268 -0
- package/dist/shared/schemas/agent-api.schema.js +94 -0
- package/dist/shared/schemas/agent-tools.schema.d.ts +724 -0
- package/dist/shared/schemas/agent-tools.schema.js +165 -0
- package/dist/shared/schemas/api.schema.d.ts +249 -0
- package/dist/shared/schemas/api.schema.js +116 -0
- package/dist/shared/schemas/entities.schema.d.ts +472 -0
- package/dist/shared/schemas/entities.schema.js +262 -0
- package/dist/shared/schemas/enums.schema.d.ts +135 -0
- package/dist/shared/schemas/enums.schema.js +58 -0
- package/dist/shared/schemas/gui-api.schema.d.ts +53 -0
- package/dist/shared/schemas/gui-api.schema.js +20 -0
- package/dist/shared/schemas/ideas-api.schema.d.ts +81 -0
- package/dist/shared/schemas/ideas-api.schema.js +40 -0
- package/dist/shared/schemas/notifications-api.schema.d.ts +87 -0
- package/dist/shared/schemas/notifications-api.schema.js +58 -0
- package/dist/shared/schemas/tasks-api.schema.d.ts +675 -0
- package/dist/shared/schemas/tasks-api.schema.js +225 -0
- package/dist/shared/schemas/tokens-api.schema.d.ts +106 -0
- package/dist/shared/schemas/tokens-api.schema.js +42 -0
- package/dist/shared/schemas/transcription-api.schema.d.ts +15 -0
- package/dist/shared/schemas/transcription-api.schema.js +12 -0
- package/dist/src/agent-api/checklist.d.ts +3 -0
- package/dist/src/agent-api/checklist.js +127 -0
- package/dist/src/agent-api/ideas.d.ts +3 -0
- package/dist/src/agent-api/ideas.js +93 -0
- package/dist/src/agent-api/requests.d.ts +3 -0
- package/dist/src/agent-api/requests.js +60 -0
- package/dist/src/agent-api/router.d.ts +3 -0
- package/dist/src/agent-api/router.js +40 -0
- package/dist/src/agent-api/tasks.d.ts +2 -0
- package/dist/src/agent-api/tasks.js +290 -0
- package/dist/src/agent-api/types.d.ts +41 -0
- package/dist/src/agent-api/types.js +14 -0
- package/dist/src/cli/backup.d.ts +12 -0
- package/dist/src/cli/backup.js +126 -0
- package/dist/src/cli/prompt.d.ts +7 -0
- package/dist/src/cli/prompt.js +40 -0
- package/dist/src/cli/set-user.d.ts +2 -0
- package/dist/src/cli/set-user.js +114 -0
- package/dist/src/cli/setup-mcp.d.ts +10 -0
- package/dist/src/cli/setup-mcp.js +110 -0
- package/dist/src/cli/setup.d.ts +39 -0
- package/dist/src/cli/setup.js +626 -0
- package/dist/src/core/accounts.d.ts +129 -0
- package/dist/src/core/accounts.js +284 -0
- package/dist/src/core/agent-tokens.d.ts +31 -0
- package/dist/src/core/agent-tokens.js +120 -0
- package/dist/src/core/agent.d.ts +71 -0
- package/dist/src/core/agent.js +358 -0
- package/dist/src/core/attachments.d.ts +21 -0
- package/dist/src/core/attachments.js +44 -0
- package/dist/src/core/data-dir.d.ts +5 -0
- package/dist/src/core/data-dir.js +11 -0
- package/dist/src/core/db.d.ts +13 -0
- package/dist/src/core/db.js +38 -0
- package/dist/src/core/env-file.d.ts +11 -0
- package/dist/src/core/env-file.js +36 -0
- package/dist/src/core/errors.d.ts +24 -0
- package/dist/src/core/errors.js +42 -0
- package/dist/src/core/history.d.ts +34 -0
- package/dist/src/core/history.js +279 -0
- package/dist/src/core/ideas.d.ts +16 -0
- package/dist/src/core/ideas.js +100 -0
- package/dist/src/core/ids.d.ts +2 -0
- package/dist/src/core/ids.js +5 -0
- package/dist/src/core/log-dir.d.ts +2 -0
- package/dist/src/core/log-dir.js +9 -0
- package/dist/src/core/logger.d.ts +14 -0
- package/dist/src/core/logger.js +37 -0
- package/dist/src/core/mail.d.ts +43 -0
- package/dist/src/core/mail.js +44 -0
- package/dist/src/core/mcp-entry.d.ts +20 -0
- package/dist/src/core/mcp-entry.js +15 -0
- package/dist/src/core/migrations.d.ts +18 -0
- package/dist/src/core/migrations.js +404 -0
- package/dist/src/core/native-sqlite.d.ts +2 -0
- package/dist/src/core/native-sqlite.js +23 -0
- package/dist/src/core/notifications.d.ts +46 -0
- package/dist/src/core/notifications.js +173 -0
- package/dist/src/core/project-root.d.ts +2 -0
- package/dist/src/core/project-root.js +13 -0
- package/dist/src/core/requests.d.ts +49 -0
- package/dist/src/core/requests.js +239 -0
- package/dist/src/core/snapshots.d.ts +32 -0
- package/dist/src/core/snapshots.js +35 -0
- package/dist/src/core/spaces.d.ts +66 -0
- package/dist/src/core/spaces.js +252 -0
- package/dist/src/core/store.d.ts +565 -0
- package/dist/src/core/store.js +2093 -0
- package/dist/src/core/task-history.d.ts +7 -0
- package/dist/src/core/task-history.js +41 -0
- package/dist/src/core/tasks.d.ts +58 -0
- package/dist/src/core/tasks.js +389 -0
- package/dist/src/core/test-tasks.d.ts +19 -0
- package/dist/src/core/test-tasks.js +135 -0
- package/dist/src/core/transcription.d.ts +45 -0
- package/dist/src/core/transcription.js +92 -0
- package/dist/src/deploy/env-render.d.ts +26 -0
- package/dist/src/deploy/env-render.js +98 -0
- package/dist/src/deploy/templates.d.ts +38 -0
- package/dist/src/deploy/templates.js +130 -0
- package/dist/src/gui-api.d.ts +37 -0
- package/dist/src/gui-api.js +383 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +100 -0
- package/dist/src/mcp/client.d.ts +23 -0
- package/dist/src/mcp/client.js +81 -0
- package/dist/src/mcp/start.d.ts +14 -0
- package/dist/src/mcp/start.js +104 -0
- package/dist/src/mcp/tools.d.ts +46 -0
- package/dist/src/mcp/tools.js +348 -0
- package/dist/src/server/app.d.ts +25 -0
- package/dist/src/server/app.js +290 -0
- package/dist/src/server/config.d.ts +23 -0
- package/dist/src/server/config.js +75 -0
- package/dist/src/server/limits.d.ts +2 -0
- package/dist/src/server/limits.js +4 -0
- package/dist/src/server/login-limiter.d.ts +36 -0
- package/dist/src/server/login-limiter.js +81 -0
- package/dist/src/server/start.d.ts +5 -0
- package/dist/src/server/start.js +88 -0
- package/dist/src/version.d.ts +1 -0
- package/dist/src/version.js +16 -0
- package/gui/dist/assets/index-DwkXx4Q2.js +70 -0
- package/gui/dist/assets/index-lnvnkDdg.css +1 -0
- package/gui/dist/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/gui/dist/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/gui/dist/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/gui/dist/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/gui/dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/gui/dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/gui/dist/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/gui/dist/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
- package/gui/dist/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
- package/gui/dist/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
- package/gui/dist/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
- package/gui/dist/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- package/gui/dist/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/gui/dist/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- package/gui/dist/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
- package/gui/dist/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
- package/gui/dist/index.html +13 -0
- package/package.json +66 -4
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Entités du modèle de données, telles que lues et écrites par le store. */
|
|
3
|
+
export declare const IdSchema: z.ZodString;
|
|
4
|
+
export declare const TimestampSchema: z.ZodISODateTime;
|
|
5
|
+
/** Adresse e-mail normalisée : rognée et en minuscules. */
|
|
6
|
+
export declare const EmailSchema: z.ZodPipe<z.ZodString, z.ZodEmail>;
|
|
7
|
+
/** Préfixe des numéros de tâche d'un espace (`ORG` dans `ORG-41`). */
|
|
8
|
+
export declare const KeyPrefixSchema: z.ZodString;
|
|
9
|
+
/** Rang fractionnaire d'un élément dans sa liste ou sa colonne. */
|
|
10
|
+
export declare const PositionSchema: z.ZodNumber;
|
|
11
|
+
export declare const UserSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
|
|
14
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
15
|
+
passwordHash: z.ZodNullable<z.ZodString>;
|
|
16
|
+
status: z.ZodEnum<{
|
|
17
|
+
active: "active";
|
|
18
|
+
disabled: "disabled";
|
|
19
|
+
invited: "invited";
|
|
20
|
+
}>;
|
|
21
|
+
createdAt: z.ZodISODateTime;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type User = z.infer<typeof UserSchema>;
|
|
24
|
+
export declare const AccessLinkSchema: z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
userId: z.ZodString;
|
|
27
|
+
purpose: z.ZodEnum<{
|
|
28
|
+
invite: "invite";
|
|
29
|
+
reset: "reset";
|
|
30
|
+
}>;
|
|
31
|
+
invitationId: z.ZodNullable<z.ZodString>;
|
|
32
|
+
tokenHash: z.ZodString;
|
|
33
|
+
expiresAt: z.ZodISODateTime;
|
|
34
|
+
usedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
35
|
+
createdAt: z.ZodISODateTime;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type AccessLink = z.infer<typeof AccessLinkSchema>;
|
|
38
|
+
export declare const SessionSchema: z.ZodObject<{
|
|
39
|
+
idHash: z.ZodString;
|
|
40
|
+
userId: z.ZodString;
|
|
41
|
+
createdAt: z.ZodISODateTime;
|
|
42
|
+
expiresAt: z.ZodISODateTime;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type Session = z.infer<typeof SessionSchema>;
|
|
45
|
+
/**
|
|
46
|
+
* Jeton d'agent : il couvre un espace dont son propriétaire est membre.
|
|
47
|
+
* `tokenHash` est le sha256 du jeton, qui n'est jamais stocké en clair ;
|
|
48
|
+
* `prefix` en garde le début, pour le reconnaître dans la liste.
|
|
49
|
+
*/
|
|
50
|
+
export declare const AgentTokenSchema: z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
userId: z.ZodString;
|
|
53
|
+
spaceId: z.ZodString;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
prefix: z.ZodString;
|
|
56
|
+
tokenHash: z.ZodString;
|
|
57
|
+
createdAt: z.ZodISODateTime;
|
|
58
|
+
lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
59
|
+
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
60
|
+
revokedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export type AgentToken = z.infer<typeof AgentTokenSchema>;
|
|
63
|
+
export declare const UserSettingsSchema: z.ZodObject<{
|
|
64
|
+
userId: z.ZodString;
|
|
65
|
+
notifyAssignApp: z.ZodBoolean;
|
|
66
|
+
notifyAssignEmail: z.ZodBoolean;
|
|
67
|
+
notifyCommentApp: z.ZodBoolean;
|
|
68
|
+
notifyCommentEmail: z.ZodBoolean;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type UserSettings = z.infer<typeof UserSettingsSchema>;
|
|
71
|
+
export declare const SpaceSchema: z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
kind: z.ZodEnum<{
|
|
75
|
+
personal: "personal";
|
|
76
|
+
shared: "shared";
|
|
77
|
+
}>;
|
|
78
|
+
ownerId: z.ZodString;
|
|
79
|
+
keyPrefix: z.ZodString;
|
|
80
|
+
nextTaskNumber: z.ZodNumber;
|
|
81
|
+
createdAt: z.ZodISODateTime;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export type Space = z.infer<typeof SpaceSchema>;
|
|
84
|
+
export declare const MembershipSchema: z.ZodObject<{
|
|
85
|
+
spaceId: z.ZodString;
|
|
86
|
+
userId: z.ZodString;
|
|
87
|
+
role: z.ZodEnum<{
|
|
88
|
+
member: "member";
|
|
89
|
+
owner: "owner";
|
|
90
|
+
}>;
|
|
91
|
+
joinedAt: z.ZodISODateTime;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export type Membership = z.infer<typeof MembershipSchema>;
|
|
94
|
+
export declare const InvitationSchema: z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
spaceId: z.ZodString;
|
|
97
|
+
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
|
|
98
|
+
invitedBy: z.ZodString;
|
|
99
|
+
createdAt: z.ZodISODateTime;
|
|
100
|
+
expiresAt: z.ZodISODateTime;
|
|
101
|
+
acceptedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
102
|
+
revokedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
103
|
+
declinedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type Invitation = z.infer<typeof InvitationSchema>;
|
|
106
|
+
export declare const TaskSchema: z.ZodObject<{
|
|
107
|
+
id: z.ZodString;
|
|
108
|
+
spaceId: z.ZodString;
|
|
109
|
+
number: z.ZodNumber;
|
|
110
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
111
|
+
depth: z.ZodNumber;
|
|
112
|
+
type: z.ZodEnum<{
|
|
113
|
+
standard: "standard";
|
|
114
|
+
test: "test";
|
|
115
|
+
}>;
|
|
116
|
+
title: z.ZodString;
|
|
117
|
+
description: z.ZodString;
|
|
118
|
+
status: z.ZodEnum<{
|
|
119
|
+
doing: "doing";
|
|
120
|
+
done: "done";
|
|
121
|
+
review: "review";
|
|
122
|
+
todo: "todo";
|
|
123
|
+
}>;
|
|
124
|
+
priority: z.ZodEnum<{
|
|
125
|
+
critical: "critical";
|
|
126
|
+
high: "high";
|
|
127
|
+
low: "low";
|
|
128
|
+
medium: "medium";
|
|
129
|
+
}>;
|
|
130
|
+
position: z.ZodNumber;
|
|
131
|
+
testedTaskId: z.ZodNullable<z.ZodString>;
|
|
132
|
+
createdBy: z.ZodString;
|
|
133
|
+
createdAt: z.ZodISODateTime;
|
|
134
|
+
updatedAt: z.ZodISODateTime;
|
|
135
|
+
version: z.ZodNumber;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
export type Task = z.infer<typeof TaskSchema>;
|
|
138
|
+
export declare const TaskAssigneeSchema: z.ZodObject<{
|
|
139
|
+
taskId: z.ZodString;
|
|
140
|
+
userId: z.ZodString;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
export type TaskAssignee = z.infer<typeof TaskAssigneeSchema>;
|
|
143
|
+
export declare const TagSchema: z.ZodObject<{
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
spaceId: z.ZodString;
|
|
146
|
+
name: z.ZodString;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
export type Tag = z.infer<typeof TagSchema>;
|
|
149
|
+
export declare const TaskTagSchema: z.ZodObject<{
|
|
150
|
+
taskId: z.ZodString;
|
|
151
|
+
tagId: z.ZodString;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
export type TaskTag = z.infer<typeof TaskTagSchema>;
|
|
154
|
+
export declare const ChecklistItemSchema: z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
taskId: z.ZodString;
|
|
157
|
+
text: z.ZodString;
|
|
158
|
+
done: z.ZodBoolean;
|
|
159
|
+
position: z.ZodNumber;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
export type ChecklistItem = z.infer<typeof ChecklistItemSchema>;
|
|
162
|
+
export declare const TestCheckpointSchema: z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
taskId: z.ZodString;
|
|
165
|
+
text: z.ZodString;
|
|
166
|
+
position: z.ZodNumber;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
export type TestCheckpoint = z.infer<typeof TestCheckpointSchema>;
|
|
169
|
+
export declare const TestResultSchema: z.ZodObject<{
|
|
170
|
+
checkpointId: z.ZodString;
|
|
171
|
+
testerId: z.ZodString;
|
|
172
|
+
result: z.ZodEnum<{
|
|
173
|
+
blocked: "blocked";
|
|
174
|
+
ko: "ko";
|
|
175
|
+
ok: "ok";
|
|
176
|
+
untested: "untested";
|
|
177
|
+
}>;
|
|
178
|
+
comment: z.ZodString;
|
|
179
|
+
updatedAt: z.ZodISODateTime;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
export type TestResult = z.infer<typeof TestResultSchema>;
|
|
182
|
+
export declare const TestReviewSchema: z.ZodObject<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
taskId: z.ZodString;
|
|
185
|
+
testerId: z.ZodString;
|
|
186
|
+
text: z.ZodString;
|
|
187
|
+
submittedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
188
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
export type TestReview = z.infer<typeof TestReviewSchema>;
|
|
191
|
+
export declare const CommentSchema: z.ZodObject<{
|
|
192
|
+
id: z.ZodString;
|
|
193
|
+
taskId: z.ZodString;
|
|
194
|
+
authorId: z.ZodString;
|
|
195
|
+
body: z.ZodString;
|
|
196
|
+
createdAt: z.ZodISODateTime;
|
|
197
|
+
editedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
198
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
export type Comment = z.infer<typeof CommentSchema>;
|
|
201
|
+
export declare const AttachmentSchema: z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
taskId: z.ZodString;
|
|
204
|
+
uploaderId: z.ZodString;
|
|
205
|
+
filename: z.ZodString;
|
|
206
|
+
mime: z.ZodString;
|
|
207
|
+
size: z.ZodNumber;
|
|
208
|
+
storagePath: z.ZodString;
|
|
209
|
+
createdAt: z.ZodISODateTime;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
export type Attachment = z.infer<typeof AttachmentSchema>;
|
|
212
|
+
export declare const IdeaSchema: z.ZodObject<{
|
|
213
|
+
id: z.ZodString;
|
|
214
|
+
spaceId: z.ZodString;
|
|
215
|
+
authorId: z.ZodString;
|
|
216
|
+
text: z.ZodString;
|
|
217
|
+
origin: z.ZodEnum<{
|
|
218
|
+
agent: "agent";
|
|
219
|
+
manual: "manual";
|
|
220
|
+
}>;
|
|
221
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
222
|
+
promotedTaskId: z.ZodNullable<z.ZodString>;
|
|
223
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
224
|
+
createdAt: z.ZodISODateTime;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
export type Idea = z.infer<typeof IdeaSchema>;
|
|
227
|
+
export declare const AgentRequestSchema: z.ZodObject<{
|
|
228
|
+
id: z.ZodString;
|
|
229
|
+
authorId: z.ZodString;
|
|
230
|
+
targetSpaceId: z.ZodString;
|
|
231
|
+
kind: z.ZodEnum<{
|
|
232
|
+
idea: "idea";
|
|
233
|
+
idea_promotion: "idea_promotion";
|
|
234
|
+
message: "message";
|
|
235
|
+
remark: "remark";
|
|
236
|
+
test_review: "test_review";
|
|
237
|
+
}>;
|
|
238
|
+
contextTaskId: z.ZodNullable<z.ZodString>;
|
|
239
|
+
contextIdeaId: z.ZodNullable<z.ZodString>;
|
|
240
|
+
text: z.ZodString;
|
|
241
|
+
status: z.ZodEnum<{
|
|
242
|
+
cancelled: "cancelled";
|
|
243
|
+
done: "done";
|
|
244
|
+
failed: "failed";
|
|
245
|
+
pending: "pending";
|
|
246
|
+
processing: "processing";
|
|
247
|
+
}>;
|
|
248
|
+
reply: z.ZodNullable<z.ZodString>;
|
|
249
|
+
failureReason: z.ZodNullable<z.ZodString>;
|
|
250
|
+
createdAt: z.ZodISODateTime;
|
|
251
|
+
updatedAt: z.ZodISODateTime;
|
|
252
|
+
claimedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
253
|
+
claimedByTokenId: z.ZodNullable<z.ZodString>;
|
|
254
|
+
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
255
|
+
cancelledBy: z.ZodNullable<z.ZodString>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
export type AgentRequest = z.infer<typeof AgentRequestSchema>;
|
|
258
|
+
export declare const AgentActionSchema: z.ZodObject<{
|
|
259
|
+
id: z.ZodString;
|
|
260
|
+
requestId: z.ZodString;
|
|
261
|
+
seq: z.ZodNumber;
|
|
262
|
+
entityType: z.ZodEnum<{
|
|
263
|
+
agent_action: "agent_action";
|
|
264
|
+
agent_request: "agent_request";
|
|
265
|
+
agent_token: "agent_token";
|
|
266
|
+
attachment: "attachment";
|
|
267
|
+
checklist_item: "checklist_item";
|
|
268
|
+
comment: "comment";
|
|
269
|
+
idea: "idea";
|
|
270
|
+
invitation: "invitation";
|
|
271
|
+
membership: "membership";
|
|
272
|
+
notification: "notification";
|
|
273
|
+
space: "space";
|
|
274
|
+
tag: "tag";
|
|
275
|
+
task: "task";
|
|
276
|
+
test_checkpoint: "test_checkpoint";
|
|
277
|
+
test_result: "test_result";
|
|
278
|
+
test_review: "test_review";
|
|
279
|
+
user: "user";
|
|
280
|
+
user_settings: "user_settings";
|
|
281
|
+
}>;
|
|
282
|
+
entityId: z.ZodString;
|
|
283
|
+
operation: z.ZodEnum<{
|
|
284
|
+
assign: "assign";
|
|
285
|
+
create: "create";
|
|
286
|
+
delete: "delete";
|
|
287
|
+
move: "move";
|
|
288
|
+
update: "update";
|
|
289
|
+
}>;
|
|
290
|
+
before: z.ZodNullable<z.ZodUnknown>;
|
|
291
|
+
after: z.ZodNullable<z.ZodUnknown>;
|
|
292
|
+
summary: z.ZodString;
|
|
293
|
+
createdAt: z.ZodISODateTime;
|
|
294
|
+
undoneAt: z.ZodNullable<z.ZodISODateTime>;
|
|
295
|
+
undoneBy: z.ZodNullable<z.ZodString>;
|
|
296
|
+
tokenId: z.ZodNullable<z.ZodString>;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
export type AgentAction = z.infer<typeof AgentActionSchema>;
|
|
299
|
+
/** Instantané d'une tâche : ses champs, ses assignés et ses tags. */
|
|
300
|
+
export declare const TaskSnapshotSchema: z.ZodObject<{
|
|
301
|
+
id: z.ZodString;
|
|
302
|
+
spaceId: z.ZodString;
|
|
303
|
+
number: z.ZodNumber;
|
|
304
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
305
|
+
depth: z.ZodNumber;
|
|
306
|
+
type: z.ZodEnum<{
|
|
307
|
+
standard: "standard";
|
|
308
|
+
test: "test";
|
|
309
|
+
}>;
|
|
310
|
+
title: z.ZodString;
|
|
311
|
+
description: z.ZodString;
|
|
312
|
+
status: z.ZodEnum<{
|
|
313
|
+
doing: "doing";
|
|
314
|
+
done: "done";
|
|
315
|
+
review: "review";
|
|
316
|
+
todo: "todo";
|
|
317
|
+
}>;
|
|
318
|
+
priority: z.ZodEnum<{
|
|
319
|
+
critical: "critical";
|
|
320
|
+
high: "high";
|
|
321
|
+
low: "low";
|
|
322
|
+
medium: "medium";
|
|
323
|
+
}>;
|
|
324
|
+
position: z.ZodNumber;
|
|
325
|
+
testedTaskId: z.ZodNullable<z.ZodString>;
|
|
326
|
+
createdBy: z.ZodString;
|
|
327
|
+
createdAt: z.ZodISODateTime;
|
|
328
|
+
updatedAt: z.ZodISODateTime;
|
|
329
|
+
version: z.ZodNumber;
|
|
330
|
+
assigneeIds: z.ZodArray<z.ZodString>;
|
|
331
|
+
tagIds: z.ZodArray<z.ZodString>;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
export type TaskSnapshot = z.infer<typeof TaskSnapshotSchema>;
|
|
334
|
+
/** Champs d'une tâche que l'historique compare et restaure (assignés et tags compris). */
|
|
335
|
+
export declare const TASK_RESTORABLE_FIELDS: readonly ["title", "description", "status", "priority", "type", "parentId", "testedTaskId", "assigneeIds", "tagIds"];
|
|
336
|
+
export type TaskRestorableField = (typeof TASK_RESTORABLE_FIELDS)[number];
|
|
337
|
+
/** Instantané d'une idée. */
|
|
338
|
+
export declare const IdeaSnapshotSchema: z.ZodObject<{
|
|
339
|
+
id: z.ZodString;
|
|
340
|
+
spaceId: z.ZodString;
|
|
341
|
+
authorId: z.ZodString;
|
|
342
|
+
text: z.ZodString;
|
|
343
|
+
origin: z.ZodEnum<{
|
|
344
|
+
agent: "agent";
|
|
345
|
+
manual: "manual";
|
|
346
|
+
}>;
|
|
347
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
348
|
+
promotedTaskId: z.ZodNullable<z.ZodString>;
|
|
349
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
350
|
+
createdAt: z.ZodISODateTime;
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
export type IdeaSnapshot = z.infer<typeof IdeaSnapshotSchema>;
|
|
353
|
+
/**
|
|
354
|
+
* Version d'une entité versionnée. `snapshot` vaut null pour la version qui
|
|
355
|
+
* enregistre la suppression. Pour une action de l'agent, `actorId` est le
|
|
356
|
+
* propriétaire du jeton, au nom de qui l'agent agit, et `tokenId` ce jeton.
|
|
357
|
+
*/
|
|
358
|
+
export declare const EntityVersionSchema: z.ZodObject<{
|
|
359
|
+
entityType: z.ZodEnum<{
|
|
360
|
+
idea: "idea";
|
|
361
|
+
task: "task";
|
|
362
|
+
}>;
|
|
363
|
+
entityId: z.ZodString;
|
|
364
|
+
version: z.ZodNumber;
|
|
365
|
+
snapshot: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
366
|
+
id: z.ZodString;
|
|
367
|
+
spaceId: z.ZodString;
|
|
368
|
+
number: z.ZodNumber;
|
|
369
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
370
|
+
depth: z.ZodNumber;
|
|
371
|
+
type: z.ZodEnum<{
|
|
372
|
+
standard: "standard";
|
|
373
|
+
test: "test";
|
|
374
|
+
}>;
|
|
375
|
+
title: z.ZodString;
|
|
376
|
+
description: z.ZodString;
|
|
377
|
+
status: z.ZodEnum<{
|
|
378
|
+
doing: "doing";
|
|
379
|
+
done: "done";
|
|
380
|
+
review: "review";
|
|
381
|
+
todo: "todo";
|
|
382
|
+
}>;
|
|
383
|
+
priority: z.ZodEnum<{
|
|
384
|
+
critical: "critical";
|
|
385
|
+
high: "high";
|
|
386
|
+
low: "low";
|
|
387
|
+
medium: "medium";
|
|
388
|
+
}>;
|
|
389
|
+
position: z.ZodNumber;
|
|
390
|
+
testedTaskId: z.ZodNullable<z.ZodString>;
|
|
391
|
+
createdBy: z.ZodString;
|
|
392
|
+
createdAt: z.ZodISODateTime;
|
|
393
|
+
updatedAt: z.ZodISODateTime;
|
|
394
|
+
version: z.ZodNumber;
|
|
395
|
+
assigneeIds: z.ZodArray<z.ZodString>;
|
|
396
|
+
tagIds: z.ZodArray<z.ZodString>;
|
|
397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
398
|
+
id: z.ZodString;
|
|
399
|
+
spaceId: z.ZodString;
|
|
400
|
+
authorId: z.ZodString;
|
|
401
|
+
text: z.ZodString;
|
|
402
|
+
origin: z.ZodEnum<{
|
|
403
|
+
agent: "agent";
|
|
404
|
+
manual: "manual";
|
|
405
|
+
}>;
|
|
406
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
407
|
+
promotedTaskId: z.ZodNullable<z.ZodString>;
|
|
408
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
409
|
+
createdAt: z.ZodISODateTime;
|
|
410
|
+
}, z.core.$strip>]>>;
|
|
411
|
+
actorType: z.ZodEnum<{
|
|
412
|
+
agent: "agent";
|
|
413
|
+
user: "user";
|
|
414
|
+
}>;
|
|
415
|
+
actorId: z.ZodString;
|
|
416
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
417
|
+
tokenId: z.ZodNullable<z.ZodString>;
|
|
418
|
+
createdAt: z.ZodISODateTime;
|
|
419
|
+
}, z.core.$strip>;
|
|
420
|
+
export type EntityVersion = z.infer<typeof EntityVersionSchema>;
|
|
421
|
+
export declare const NotificationSchema: z.ZodObject<{
|
|
422
|
+
id: z.ZodString;
|
|
423
|
+
userId: z.ZodString;
|
|
424
|
+
type: z.ZodEnum<{
|
|
425
|
+
assigned: "assigned";
|
|
426
|
+
comment: "comment";
|
|
427
|
+
}>;
|
|
428
|
+
taskId: z.ZodString;
|
|
429
|
+
actorType: z.ZodEnum<{
|
|
430
|
+
agent: "agent";
|
|
431
|
+
user: "user";
|
|
432
|
+
}>;
|
|
433
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
434
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
435
|
+
commentId: z.ZodNullable<z.ZodString>;
|
|
436
|
+
inApp: z.ZodBoolean;
|
|
437
|
+
createdAt: z.ZodISODateTime;
|
|
438
|
+
readAt: z.ZodNullable<z.ZodISODateTime>;
|
|
439
|
+
emailedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
440
|
+
emailError: z.ZodNullable<z.ZodString>;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
export type Notification = z.infer<typeof NotificationSchema>;
|
|
443
|
+
/** Ligne du journal des changements, lu par le polling de la GUI. */
|
|
444
|
+
export declare const ChangeSchema: z.ZodObject<{
|
|
445
|
+
seq: z.ZodNumber;
|
|
446
|
+
spaceId: z.ZodNullable<z.ZodString>;
|
|
447
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
448
|
+
entityType: z.ZodEnum<{
|
|
449
|
+
agent_action: "agent_action";
|
|
450
|
+
agent_request: "agent_request";
|
|
451
|
+
agent_token: "agent_token";
|
|
452
|
+
attachment: "attachment";
|
|
453
|
+
checklist_item: "checklist_item";
|
|
454
|
+
comment: "comment";
|
|
455
|
+
idea: "idea";
|
|
456
|
+
invitation: "invitation";
|
|
457
|
+
membership: "membership";
|
|
458
|
+
notification: "notification";
|
|
459
|
+
space: "space";
|
|
460
|
+
tag: "tag";
|
|
461
|
+
task: "task";
|
|
462
|
+
test_checkpoint: "test_checkpoint";
|
|
463
|
+
test_result: "test_result";
|
|
464
|
+
test_review: "test_review";
|
|
465
|
+
user: "user";
|
|
466
|
+
user_settings: "user_settings";
|
|
467
|
+
}>;
|
|
468
|
+
entityId: z.ZodString;
|
|
469
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
470
|
+
at: z.ZodISODateTime;
|
|
471
|
+
}, z.core.$strip>;
|
|
472
|
+
export type Change = z.infer<typeof ChangeSchema>;
|