@locusai/shared 0.4.6 → 0.4.9

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 (52) hide show
  1. package/dist/common.d.ts +200 -0
  2. package/dist/common.d.ts.map +1 -0
  3. package/dist/enums.d.ts +51 -0
  4. package/dist/enums.d.ts.map +1 -0
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +884 -3
  8. package/dist/models/activity.d.ts +947 -0
  9. package/dist/models/activity.d.ts.map +1 -0
  10. package/dist/models/agent.d.ts +21 -0
  11. package/dist/models/agent.d.ts.map +1 -0
  12. package/dist/models/auth.d.ts +374 -0
  13. package/dist/models/auth.d.ts.map +1 -0
  14. package/dist/models/ci.d.ts +76 -0
  15. package/dist/models/ci.d.ts.map +1 -0
  16. package/dist/models/doc-group.d.ts +144 -0
  17. package/dist/models/doc-group.d.ts.map +1 -0
  18. package/dist/models/doc.d.ts +251 -0
  19. package/dist/models/doc.d.ts.map +1 -0
  20. package/{src/models/index.ts → dist/models/index.d.ts} +1 -0
  21. package/dist/models/index.d.ts.map +1 -0
  22. package/dist/models/invitation.d.ts +257 -0
  23. package/dist/models/invitation.d.ts.map +1 -0
  24. package/dist/models/organization.d.ts +357 -0
  25. package/dist/models/organization.d.ts.map +1 -0
  26. package/dist/models/sprint.d.ts +218 -0
  27. package/dist/models/sprint.d.ts.map +1 -0
  28. package/dist/models/task.d.ts +1208 -0
  29. package/dist/models/task.d.ts.map +1 -0
  30. package/dist/models/user.d.ts +101 -0
  31. package/dist/models/user.d.ts.map +1 -0
  32. package/dist/models/workspace.d.ts +319 -0
  33. package/dist/models/workspace.d.ts.map +1 -0
  34. package/package.json +3 -20
  35. package/dist/schemas.d.ts +0 -297
  36. package/dist/schemas.d.ts.map +0 -1
  37. package/dist/schemas.js +0 -129
  38. package/src/common.ts +0 -106
  39. package/src/enums.ts +0 -56
  40. package/src/index.ts +0 -3
  41. package/src/models/activity.ts +0 -237
  42. package/src/models/agent.ts +0 -13
  43. package/src/models/auth.ts +0 -188
  44. package/src/models/ci.ts +0 -21
  45. package/src/models/doc-group.ts +0 -42
  46. package/src/models/doc.ts +0 -66
  47. package/src/models/invitation.ts +0 -83
  48. package/src/models/organization.ts +0 -105
  49. package/src/models/sprint.ts +0 -71
  50. package/src/models/task.ts +0 -110
  51. package/src/models/user.ts +0 -35
  52. package/src/models/workspace.ts +0 -99
@@ -0,0 +1,1208 @@
1
+ import { z } from "zod";
2
+ import { AssigneeRole, TaskPriority, TaskStatus } from "../enums";
3
+ export declare const AcceptanceItemSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ text: z.ZodString;
6
+ done: z.ZodBoolean;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ text: string;
10
+ done: boolean;
11
+ }, {
12
+ id: string;
13
+ text: string;
14
+ done: boolean;
15
+ }>;
16
+ export type AcceptanceItem = z.infer<typeof AcceptanceItemSchema>;
17
+ export declare const TaskSchema: z.ZodObject<{
18
+ id: z.ZodString;
19
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
20
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
21
+ } & {
22
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ title: z.ZodString;
24
+ description: z.ZodDefault<z.ZodString>;
25
+ status: z.ZodDefault<z.ZodNativeEnum<typeof TaskStatus>>;
26
+ priority: z.ZodDefault<z.ZodNativeEnum<typeof TaskPriority>>;
27
+ labels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
28
+ assigneeRole: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof AssigneeRole>>>;
29
+ /** Agent ID or user identifier - not necessarily a UUID */
30
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ sprintId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
34
+ acceptanceChecklist: z.ZodDefault<z.ZodArray<z.ZodObject<{
35
+ id: z.ZodString;
36
+ text: z.ZodString;
37
+ done: z.ZodBoolean;
38
+ }, "strip", z.ZodTypeAny, {
39
+ id: string;
40
+ text: string;
41
+ done: boolean;
42
+ }, {
43
+ id: string;
44
+ text: string;
45
+ done: boolean;
46
+ }>, "many">>;
47
+ comments: z.ZodDefault<z.ZodArray<z.ZodObject<{
48
+ id: z.ZodString;
49
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
50
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
51
+ } & {
52
+ taskId: z.ZodString;
53
+ author: z.ZodString;
54
+ text: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ id: string;
57
+ createdAt: number | Date;
58
+ updatedAt: number | Date;
59
+ taskId: string;
60
+ author: string;
61
+ text: string;
62
+ }, {
63
+ id: string;
64
+ createdAt: number | Date;
65
+ updatedAt: number | Date;
66
+ taskId: string;
67
+ author: string;
68
+ text: string;
69
+ }>, "many">>;
70
+ activityLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
71
+ id: z.ZodString;
72
+ workspaceId: z.ZodString;
73
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
74
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
75
+ type: z.ZodNativeEnum<typeof import("../enums").EventType>;
76
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
77
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ id: string;
80
+ createdAt: number | Date;
81
+ type: import("../enums").EventType;
82
+ payload: Record<string, unknown>;
83
+ workspaceId: string;
84
+ taskId?: string | null | undefined;
85
+ userId?: string | null | undefined;
86
+ }, {
87
+ id: string;
88
+ createdAt: number | Date;
89
+ type: import("../enums").EventType;
90
+ payload: Record<string, unknown>;
91
+ workspaceId: string;
92
+ taskId?: string | null | undefined;
93
+ userId?: string | null | undefined;
94
+ }>, "many">>;
95
+ docs: z.ZodDefault<z.ZodArray<z.ZodObject<{
96
+ id: z.ZodString;
97
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
98
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
99
+ } & {
100
+ workspaceId: z.ZodString;
101
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ title: z.ZodString;
103
+ content: z.ZodDefault<z.ZodString>;
104
+ group: z.ZodOptional<z.ZodNullable<z.ZodObject<{
105
+ id: z.ZodString;
106
+ name: z.ZodString;
107
+ }, "strip", z.ZodTypeAny, {
108
+ id: string;
109
+ name: string;
110
+ }, {
111
+ id: string;
112
+ name: string;
113
+ }>>>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ id: string;
116
+ createdAt: number | Date;
117
+ updatedAt: number | Date;
118
+ title: string;
119
+ workspaceId: string;
120
+ content: string;
121
+ groupId?: string | null | undefined;
122
+ group?: {
123
+ id: string;
124
+ name: string;
125
+ } | null | undefined;
126
+ }, {
127
+ id: string;
128
+ createdAt: number | Date;
129
+ updatedAt: number | Date;
130
+ title: string;
131
+ workspaceId: string;
132
+ groupId?: string | null | undefined;
133
+ content?: string | undefined;
134
+ group?: {
135
+ id: string;
136
+ name: string;
137
+ } | null | undefined;
138
+ }>, "many">>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ id: string;
141
+ createdAt: number | Date;
142
+ status: TaskStatus;
143
+ updatedAt: number | Date;
144
+ title: string;
145
+ docs: {
146
+ id: string;
147
+ createdAt: number | Date;
148
+ updatedAt: number | Date;
149
+ title: string;
150
+ workspaceId: string;
151
+ content: string;
152
+ groupId?: string | null | undefined;
153
+ group?: {
154
+ id: string;
155
+ name: string;
156
+ } | null | undefined;
157
+ }[];
158
+ description: string;
159
+ priority: TaskPriority;
160
+ labels: string[];
161
+ acceptanceChecklist: {
162
+ id: string;
163
+ text: string;
164
+ done: boolean;
165
+ }[];
166
+ comments: {
167
+ id: string;
168
+ createdAt: number | Date;
169
+ updatedAt: number | Date;
170
+ taskId: string;
171
+ author: string;
172
+ text: string;
173
+ }[];
174
+ activityLog: {
175
+ id: string;
176
+ createdAt: number | Date;
177
+ type: import("../enums").EventType;
178
+ payload: Record<string, unknown>;
179
+ workspaceId: string;
180
+ taskId?: string | null | undefined;
181
+ userId?: string | null | undefined;
182
+ }[];
183
+ sprintId?: string | null | undefined;
184
+ workspaceId?: string | null | undefined;
185
+ assigneeRole?: AssigneeRole | null | undefined;
186
+ assignedTo?: string | null | undefined;
187
+ parentId?: string | null | undefined;
188
+ dueDate?: number | Date | null | undefined;
189
+ }, {
190
+ id: string;
191
+ createdAt: number | Date;
192
+ updatedAt: number | Date;
193
+ title: string;
194
+ status?: TaskStatus | undefined;
195
+ sprintId?: string | null | undefined;
196
+ workspaceId?: string | null | undefined;
197
+ docs?: {
198
+ id: string;
199
+ createdAt: number | Date;
200
+ updatedAt: number | Date;
201
+ title: string;
202
+ workspaceId: string;
203
+ groupId?: string | null | undefined;
204
+ content?: string | undefined;
205
+ group?: {
206
+ id: string;
207
+ name: string;
208
+ } | null | undefined;
209
+ }[] | undefined;
210
+ description?: string | undefined;
211
+ priority?: TaskPriority | undefined;
212
+ labels?: string[] | undefined;
213
+ assigneeRole?: AssigneeRole | null | undefined;
214
+ assignedTo?: string | null | undefined;
215
+ parentId?: string | null | undefined;
216
+ dueDate?: number | Date | null | undefined;
217
+ acceptanceChecklist?: {
218
+ id: string;
219
+ text: string;
220
+ done: boolean;
221
+ }[] | undefined;
222
+ comments?: {
223
+ id: string;
224
+ createdAt: number | Date;
225
+ updatedAt: number | Date;
226
+ taskId: string;
227
+ author: string;
228
+ text: string;
229
+ }[] | undefined;
230
+ activityLog?: {
231
+ id: string;
232
+ createdAt: number | Date;
233
+ type: import("../enums").EventType;
234
+ payload: Record<string, unknown>;
235
+ workspaceId: string;
236
+ taskId?: string | null | undefined;
237
+ userId?: string | null | undefined;
238
+ }[] | undefined;
239
+ }>;
240
+ export type Task = z.infer<typeof TaskSchema>;
241
+ export declare const CreateTaskSchema: z.ZodObject<{
242
+ title: z.ZodString;
243
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
244
+ status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof TaskStatus>>>;
245
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof TaskPriority>>>;
246
+ labels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
247
+ assigneeRole: z.ZodOptional<z.ZodNativeEnum<typeof AssigneeRole>>;
248
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
250
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
+ sprintId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
+ acceptanceChecklist: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
+ id: z.ZodString;
254
+ text: z.ZodString;
255
+ done: z.ZodBoolean;
256
+ }, "strip", z.ZodTypeAny, {
257
+ id: string;
258
+ text: string;
259
+ done: boolean;
260
+ }, {
261
+ id: string;
262
+ text: string;
263
+ done: boolean;
264
+ }>, "many">>;
265
+ docIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ status: TaskStatus;
268
+ title: string;
269
+ description: string;
270
+ priority: TaskPriority;
271
+ labels: string[];
272
+ sprintId?: string | null | undefined;
273
+ assigneeRole?: AssigneeRole | undefined;
274
+ assignedTo?: string | null | undefined;
275
+ parentId?: string | null | undefined;
276
+ dueDate?: number | Date | null | undefined;
277
+ acceptanceChecklist?: {
278
+ id: string;
279
+ text: string;
280
+ done: boolean;
281
+ }[] | undefined;
282
+ docIds?: string[] | undefined;
283
+ }, {
284
+ title: string;
285
+ status?: TaskStatus | undefined;
286
+ sprintId?: string | null | undefined;
287
+ description?: string | undefined;
288
+ priority?: TaskPriority | undefined;
289
+ labels?: string[] | undefined;
290
+ assigneeRole?: AssigneeRole | undefined;
291
+ assignedTo?: string | null | undefined;
292
+ parentId?: string | null | undefined;
293
+ dueDate?: number | Date | null | undefined;
294
+ acceptanceChecklist?: {
295
+ id: string;
296
+ text: string;
297
+ done: boolean;
298
+ }[] | undefined;
299
+ docIds?: string[] | undefined;
300
+ }>;
301
+ export type CreateTask = z.infer<typeof CreateTaskSchema>;
302
+ export declare const UpdateTaskSchema: z.ZodObject<{
303
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof TaskStatus>>>;
304
+ sprintId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
305
+ docs: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
306
+ id: z.ZodString;
307
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
308
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
309
+ } & {
310
+ workspaceId: z.ZodString;
311
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
+ title: z.ZodString;
313
+ content: z.ZodDefault<z.ZodString>;
314
+ group: z.ZodOptional<z.ZodNullable<z.ZodObject<{
315
+ id: z.ZodString;
316
+ name: z.ZodString;
317
+ }, "strip", z.ZodTypeAny, {
318
+ id: string;
319
+ name: string;
320
+ }, {
321
+ id: string;
322
+ name: string;
323
+ }>>>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ id: string;
326
+ createdAt: number | Date;
327
+ updatedAt: number | Date;
328
+ title: string;
329
+ workspaceId: string;
330
+ content: string;
331
+ groupId?: string | null | undefined;
332
+ group?: {
333
+ id: string;
334
+ name: string;
335
+ } | null | undefined;
336
+ }, {
337
+ id: string;
338
+ createdAt: number | Date;
339
+ updatedAt: number | Date;
340
+ title: string;
341
+ workspaceId: string;
342
+ groupId?: string | null | undefined;
343
+ content?: string | undefined;
344
+ group?: {
345
+ id: string;
346
+ name: string;
347
+ } | null | undefined;
348
+ }>, "many">>>;
349
+ description: z.ZodOptional<z.ZodDefault<z.ZodString>>;
350
+ priority: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof TaskPriority>>>;
351
+ labels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
352
+ assigneeRole: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof AssigneeRole>>>>;
353
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
354
+ parentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
355
+ dueDate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>>;
356
+ comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
357
+ id: z.ZodString;
358
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
359
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
360
+ } & {
361
+ taskId: z.ZodString;
362
+ author: z.ZodString;
363
+ text: z.ZodString;
364
+ }, "strip", z.ZodTypeAny, {
365
+ id: string;
366
+ createdAt: number | Date;
367
+ updatedAt: number | Date;
368
+ taskId: string;
369
+ author: string;
370
+ text: string;
371
+ }, {
372
+ id: string;
373
+ createdAt: number | Date;
374
+ updatedAt: number | Date;
375
+ taskId: string;
376
+ author: string;
377
+ text: string;
378
+ }>, "many">>>;
379
+ activityLog: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
380
+ id: z.ZodString;
381
+ workspaceId: z.ZodString;
382
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
383
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
384
+ type: z.ZodNativeEnum<typeof import("../enums").EventType>;
385
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
386
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ id: string;
389
+ createdAt: number | Date;
390
+ type: import("../enums").EventType;
391
+ payload: Record<string, unknown>;
392
+ workspaceId: string;
393
+ taskId?: string | null | undefined;
394
+ userId?: string | null | undefined;
395
+ }, {
396
+ id: string;
397
+ createdAt: number | Date;
398
+ type: import("../enums").EventType;
399
+ payload: Record<string, unknown>;
400
+ workspaceId: string;
401
+ taskId?: string | null | undefined;
402
+ userId?: string | null | undefined;
403
+ }>, "many">>>;
404
+ } & {
405
+ title: z.ZodOptional<z.ZodString>;
406
+ acceptanceChecklist: z.ZodOptional<z.ZodArray<z.ZodObject<{
407
+ id: z.ZodString;
408
+ text: z.ZodString;
409
+ done: z.ZodBoolean;
410
+ }, "strip", z.ZodTypeAny, {
411
+ id: string;
412
+ text: string;
413
+ done: boolean;
414
+ }, {
415
+ id: string;
416
+ text: string;
417
+ done: boolean;
418
+ }>, "many">>;
419
+ docIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ status?: TaskStatus | undefined;
422
+ title?: string | undefined;
423
+ sprintId?: string | null | undefined;
424
+ docs?: {
425
+ id: string;
426
+ createdAt: number | Date;
427
+ updatedAt: number | Date;
428
+ title: string;
429
+ workspaceId: string;
430
+ content: string;
431
+ groupId?: string | null | undefined;
432
+ group?: {
433
+ id: string;
434
+ name: string;
435
+ } | null | undefined;
436
+ }[] | undefined;
437
+ description?: string | undefined;
438
+ priority?: TaskPriority | undefined;
439
+ labels?: string[] | undefined;
440
+ assigneeRole?: AssigneeRole | null | undefined;
441
+ assignedTo?: string | null | undefined;
442
+ parentId?: string | null | undefined;
443
+ dueDate?: number | Date | null | undefined;
444
+ acceptanceChecklist?: {
445
+ id: string;
446
+ text: string;
447
+ done: boolean;
448
+ }[] | undefined;
449
+ comments?: {
450
+ id: string;
451
+ createdAt: number | Date;
452
+ updatedAt: number | Date;
453
+ taskId: string;
454
+ author: string;
455
+ text: string;
456
+ }[] | undefined;
457
+ activityLog?: {
458
+ id: string;
459
+ createdAt: number | Date;
460
+ type: import("../enums").EventType;
461
+ payload: Record<string, unknown>;
462
+ workspaceId: string;
463
+ taskId?: string | null | undefined;
464
+ userId?: string | null | undefined;
465
+ }[] | undefined;
466
+ docIds?: string[] | undefined;
467
+ }, {
468
+ status?: TaskStatus | undefined;
469
+ title?: string | undefined;
470
+ sprintId?: string | null | undefined;
471
+ docs?: {
472
+ id: string;
473
+ createdAt: number | Date;
474
+ updatedAt: number | Date;
475
+ title: string;
476
+ workspaceId: string;
477
+ groupId?: string | null | undefined;
478
+ content?: string | undefined;
479
+ group?: {
480
+ id: string;
481
+ name: string;
482
+ } | null | undefined;
483
+ }[] | undefined;
484
+ description?: string | undefined;
485
+ priority?: TaskPriority | undefined;
486
+ labels?: string[] | undefined;
487
+ assigneeRole?: AssigneeRole | null | undefined;
488
+ assignedTo?: string | null | undefined;
489
+ parentId?: string | null | undefined;
490
+ dueDate?: number | Date | null | undefined;
491
+ acceptanceChecklist?: {
492
+ id: string;
493
+ text: string;
494
+ done: boolean;
495
+ }[] | undefined;
496
+ comments?: {
497
+ id: string;
498
+ createdAt: number | Date;
499
+ updatedAt: number | Date;
500
+ taskId: string;
501
+ author: string;
502
+ text: string;
503
+ }[] | undefined;
504
+ activityLog?: {
505
+ id: string;
506
+ createdAt: number | Date;
507
+ type: import("../enums").EventType;
508
+ payload: Record<string, unknown>;
509
+ workspaceId: string;
510
+ taskId?: string | null | undefined;
511
+ userId?: string | null | undefined;
512
+ }[] | undefined;
513
+ docIds?: string[] | undefined;
514
+ }>;
515
+ export type UpdateTask = z.infer<typeof UpdateTaskSchema>;
516
+ export declare const AddCommentSchema: z.ZodObject<{
517
+ author: z.ZodString;
518
+ text: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ author: string;
521
+ text: string;
522
+ }, {
523
+ author: string;
524
+ text: string;
525
+ }>;
526
+ export type AddComment = z.infer<typeof AddCommentSchema>;
527
+ export declare const DispatchTaskSchema: z.ZodObject<{
528
+ workerId: z.ZodOptional<z.ZodString>;
529
+ sprintId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ sprintId?: string | null | undefined;
532
+ workerId?: string | undefined;
533
+ }, {
534
+ sprintId?: string | null | undefined;
535
+ workerId?: string | undefined;
536
+ }>;
537
+ export type DispatchTask = z.infer<typeof DispatchTaskSchema>;
538
+ export declare const TaskIdParamSchema: z.ZodObject<{
539
+ id: z.ZodString;
540
+ }, "strip", z.ZodTypeAny, {
541
+ id: string;
542
+ }, {
543
+ id: string;
544
+ }>;
545
+ export type TaskIdParam = z.infer<typeof TaskIdParamSchema>;
546
+ export declare const TaskQuerySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
547
+ export type TaskQuery = z.infer<typeof TaskQuerySchema>;
548
+ export declare const TaskResponseSchema: z.ZodObject<{
549
+ task: z.ZodObject<{
550
+ id: z.ZodString;
551
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
552
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
553
+ } & {
554
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
+ title: z.ZodString;
556
+ description: z.ZodDefault<z.ZodString>;
557
+ status: z.ZodDefault<z.ZodNativeEnum<typeof TaskStatus>>;
558
+ priority: z.ZodDefault<z.ZodNativeEnum<typeof TaskPriority>>;
559
+ labels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
560
+ assigneeRole: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof AssigneeRole>>>;
561
+ /** Agent ID or user identifier - not necessarily a UUID */
562
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
+ sprintId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
565
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
566
+ acceptanceChecklist: z.ZodDefault<z.ZodArray<z.ZodObject<{
567
+ id: z.ZodString;
568
+ text: z.ZodString;
569
+ done: z.ZodBoolean;
570
+ }, "strip", z.ZodTypeAny, {
571
+ id: string;
572
+ text: string;
573
+ done: boolean;
574
+ }, {
575
+ id: string;
576
+ text: string;
577
+ done: boolean;
578
+ }>, "many">>;
579
+ comments: z.ZodDefault<z.ZodArray<z.ZodObject<{
580
+ id: z.ZodString;
581
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
582
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
583
+ } & {
584
+ taskId: z.ZodString;
585
+ author: z.ZodString;
586
+ text: z.ZodString;
587
+ }, "strip", z.ZodTypeAny, {
588
+ id: string;
589
+ createdAt: number | Date;
590
+ updatedAt: number | Date;
591
+ taskId: string;
592
+ author: string;
593
+ text: string;
594
+ }, {
595
+ id: string;
596
+ createdAt: number | Date;
597
+ updatedAt: number | Date;
598
+ taskId: string;
599
+ author: string;
600
+ text: string;
601
+ }>, "many">>;
602
+ activityLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
603
+ id: z.ZodString;
604
+ workspaceId: z.ZodString;
605
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
606
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
607
+ type: z.ZodNativeEnum<typeof import("../enums").EventType>;
608
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
609
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
610
+ }, "strip", z.ZodTypeAny, {
611
+ id: string;
612
+ createdAt: number | Date;
613
+ type: import("../enums").EventType;
614
+ payload: Record<string, unknown>;
615
+ workspaceId: string;
616
+ taskId?: string | null | undefined;
617
+ userId?: string | null | undefined;
618
+ }, {
619
+ id: string;
620
+ createdAt: number | Date;
621
+ type: import("../enums").EventType;
622
+ payload: Record<string, unknown>;
623
+ workspaceId: string;
624
+ taskId?: string | null | undefined;
625
+ userId?: string | null | undefined;
626
+ }>, "many">>;
627
+ docs: z.ZodDefault<z.ZodArray<z.ZodObject<{
628
+ id: z.ZodString;
629
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
630
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
631
+ } & {
632
+ workspaceId: z.ZodString;
633
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
634
+ title: z.ZodString;
635
+ content: z.ZodDefault<z.ZodString>;
636
+ group: z.ZodOptional<z.ZodNullable<z.ZodObject<{
637
+ id: z.ZodString;
638
+ name: z.ZodString;
639
+ }, "strip", z.ZodTypeAny, {
640
+ id: string;
641
+ name: string;
642
+ }, {
643
+ id: string;
644
+ name: string;
645
+ }>>>;
646
+ }, "strip", z.ZodTypeAny, {
647
+ id: string;
648
+ createdAt: number | Date;
649
+ updatedAt: number | Date;
650
+ title: string;
651
+ workspaceId: string;
652
+ content: string;
653
+ groupId?: string | null | undefined;
654
+ group?: {
655
+ id: string;
656
+ name: string;
657
+ } | null | undefined;
658
+ }, {
659
+ id: string;
660
+ createdAt: number | Date;
661
+ updatedAt: number | Date;
662
+ title: string;
663
+ workspaceId: string;
664
+ groupId?: string | null | undefined;
665
+ content?: string | undefined;
666
+ group?: {
667
+ id: string;
668
+ name: string;
669
+ } | null | undefined;
670
+ }>, "many">>;
671
+ }, "strip", z.ZodTypeAny, {
672
+ id: string;
673
+ createdAt: number | Date;
674
+ status: TaskStatus;
675
+ updatedAt: number | Date;
676
+ title: string;
677
+ docs: {
678
+ id: string;
679
+ createdAt: number | Date;
680
+ updatedAt: number | Date;
681
+ title: string;
682
+ workspaceId: string;
683
+ content: string;
684
+ groupId?: string | null | undefined;
685
+ group?: {
686
+ id: string;
687
+ name: string;
688
+ } | null | undefined;
689
+ }[];
690
+ description: string;
691
+ priority: TaskPriority;
692
+ labels: string[];
693
+ acceptanceChecklist: {
694
+ id: string;
695
+ text: string;
696
+ done: boolean;
697
+ }[];
698
+ comments: {
699
+ id: string;
700
+ createdAt: number | Date;
701
+ updatedAt: number | Date;
702
+ taskId: string;
703
+ author: string;
704
+ text: string;
705
+ }[];
706
+ activityLog: {
707
+ id: string;
708
+ createdAt: number | Date;
709
+ type: import("../enums").EventType;
710
+ payload: Record<string, unknown>;
711
+ workspaceId: string;
712
+ taskId?: string | null | undefined;
713
+ userId?: string | null | undefined;
714
+ }[];
715
+ sprintId?: string | null | undefined;
716
+ workspaceId?: string | null | undefined;
717
+ assigneeRole?: AssigneeRole | null | undefined;
718
+ assignedTo?: string | null | undefined;
719
+ parentId?: string | null | undefined;
720
+ dueDate?: number | Date | null | undefined;
721
+ }, {
722
+ id: string;
723
+ createdAt: number | Date;
724
+ updatedAt: number | Date;
725
+ title: string;
726
+ status?: TaskStatus | undefined;
727
+ sprintId?: string | null | undefined;
728
+ workspaceId?: string | null | undefined;
729
+ docs?: {
730
+ id: string;
731
+ createdAt: number | Date;
732
+ updatedAt: number | Date;
733
+ title: string;
734
+ workspaceId: string;
735
+ groupId?: string | null | undefined;
736
+ content?: string | undefined;
737
+ group?: {
738
+ id: string;
739
+ name: string;
740
+ } | null | undefined;
741
+ }[] | undefined;
742
+ description?: string | undefined;
743
+ priority?: TaskPriority | undefined;
744
+ labels?: string[] | undefined;
745
+ assigneeRole?: AssigneeRole | null | undefined;
746
+ assignedTo?: string | null | undefined;
747
+ parentId?: string | null | undefined;
748
+ dueDate?: number | Date | null | undefined;
749
+ acceptanceChecklist?: {
750
+ id: string;
751
+ text: string;
752
+ done: boolean;
753
+ }[] | undefined;
754
+ comments?: {
755
+ id: string;
756
+ createdAt: number | Date;
757
+ updatedAt: number | Date;
758
+ taskId: string;
759
+ author: string;
760
+ text: string;
761
+ }[] | undefined;
762
+ activityLog?: {
763
+ id: string;
764
+ createdAt: number | Date;
765
+ type: import("../enums").EventType;
766
+ payload: Record<string, unknown>;
767
+ workspaceId: string;
768
+ taskId?: string | null | undefined;
769
+ userId?: string | null | undefined;
770
+ }[] | undefined;
771
+ }>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ task: {
774
+ id: string;
775
+ createdAt: number | Date;
776
+ status: TaskStatus;
777
+ updatedAt: number | Date;
778
+ title: string;
779
+ docs: {
780
+ id: string;
781
+ createdAt: number | Date;
782
+ updatedAt: number | Date;
783
+ title: string;
784
+ workspaceId: string;
785
+ content: string;
786
+ groupId?: string | null | undefined;
787
+ group?: {
788
+ id: string;
789
+ name: string;
790
+ } | null | undefined;
791
+ }[];
792
+ description: string;
793
+ priority: TaskPriority;
794
+ labels: string[];
795
+ acceptanceChecklist: {
796
+ id: string;
797
+ text: string;
798
+ done: boolean;
799
+ }[];
800
+ comments: {
801
+ id: string;
802
+ createdAt: number | Date;
803
+ updatedAt: number | Date;
804
+ taskId: string;
805
+ author: string;
806
+ text: string;
807
+ }[];
808
+ activityLog: {
809
+ id: string;
810
+ createdAt: number | Date;
811
+ type: import("../enums").EventType;
812
+ payload: Record<string, unknown>;
813
+ workspaceId: string;
814
+ taskId?: string | null | undefined;
815
+ userId?: string | null | undefined;
816
+ }[];
817
+ sprintId?: string | null | undefined;
818
+ workspaceId?: string | null | undefined;
819
+ assigneeRole?: AssigneeRole | null | undefined;
820
+ assignedTo?: string | null | undefined;
821
+ parentId?: string | null | undefined;
822
+ dueDate?: number | Date | null | undefined;
823
+ };
824
+ }, {
825
+ task: {
826
+ id: string;
827
+ createdAt: number | Date;
828
+ updatedAt: number | Date;
829
+ title: string;
830
+ status?: TaskStatus | undefined;
831
+ sprintId?: string | null | undefined;
832
+ workspaceId?: string | null | undefined;
833
+ docs?: {
834
+ id: string;
835
+ createdAt: number | Date;
836
+ updatedAt: number | Date;
837
+ title: string;
838
+ workspaceId: string;
839
+ groupId?: string | null | undefined;
840
+ content?: string | undefined;
841
+ group?: {
842
+ id: string;
843
+ name: string;
844
+ } | null | undefined;
845
+ }[] | undefined;
846
+ description?: string | undefined;
847
+ priority?: TaskPriority | undefined;
848
+ labels?: string[] | undefined;
849
+ assigneeRole?: AssigneeRole | null | undefined;
850
+ assignedTo?: string | null | undefined;
851
+ parentId?: string | null | undefined;
852
+ dueDate?: number | Date | null | undefined;
853
+ acceptanceChecklist?: {
854
+ id: string;
855
+ text: string;
856
+ done: boolean;
857
+ }[] | undefined;
858
+ comments?: {
859
+ id: string;
860
+ createdAt: number | Date;
861
+ updatedAt: number | Date;
862
+ taskId: string;
863
+ author: string;
864
+ text: string;
865
+ }[] | undefined;
866
+ activityLog?: {
867
+ id: string;
868
+ createdAt: number | Date;
869
+ type: import("../enums").EventType;
870
+ payload: Record<string, unknown>;
871
+ workspaceId: string;
872
+ taskId?: string | null | undefined;
873
+ userId?: string | null | undefined;
874
+ }[] | undefined;
875
+ };
876
+ }>;
877
+ export type TaskResponse = z.infer<typeof TaskResponseSchema>;
878
+ export declare const TasksResponseSchema: z.ZodObject<{
879
+ tasks: z.ZodArray<z.ZodObject<{
880
+ id: z.ZodString;
881
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
882
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
883
+ } & {
884
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
885
+ title: z.ZodString;
886
+ description: z.ZodDefault<z.ZodString>;
887
+ status: z.ZodDefault<z.ZodNativeEnum<typeof TaskStatus>>;
888
+ priority: z.ZodDefault<z.ZodNativeEnum<typeof TaskPriority>>;
889
+ labels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
890
+ assigneeRole: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof AssigneeRole>>>;
891
+ /** Agent ID or user identifier - not necessarily a UUID */
892
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
893
+ sprintId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
894
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
895
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>;
896
+ acceptanceChecklist: z.ZodDefault<z.ZodArray<z.ZodObject<{
897
+ id: z.ZodString;
898
+ text: z.ZodString;
899
+ done: z.ZodBoolean;
900
+ }, "strip", z.ZodTypeAny, {
901
+ id: string;
902
+ text: string;
903
+ done: boolean;
904
+ }, {
905
+ id: string;
906
+ text: string;
907
+ done: boolean;
908
+ }>, "many">>;
909
+ comments: z.ZodDefault<z.ZodArray<z.ZodObject<{
910
+ id: z.ZodString;
911
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
912
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
913
+ } & {
914
+ taskId: z.ZodString;
915
+ author: z.ZodString;
916
+ text: z.ZodString;
917
+ }, "strip", z.ZodTypeAny, {
918
+ id: string;
919
+ createdAt: number | Date;
920
+ updatedAt: number | Date;
921
+ taskId: string;
922
+ author: string;
923
+ text: string;
924
+ }, {
925
+ id: string;
926
+ createdAt: number | Date;
927
+ updatedAt: number | Date;
928
+ taskId: string;
929
+ author: string;
930
+ text: string;
931
+ }>, "many">>;
932
+ activityLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
933
+ id: z.ZodString;
934
+ workspaceId: z.ZodString;
935
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
936
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
937
+ type: z.ZodNativeEnum<typeof import("../enums").EventType>;
938
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
939
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ id: string;
942
+ createdAt: number | Date;
943
+ type: import("../enums").EventType;
944
+ payload: Record<string, unknown>;
945
+ workspaceId: string;
946
+ taskId?: string | null | undefined;
947
+ userId?: string | null | undefined;
948
+ }, {
949
+ id: string;
950
+ createdAt: number | Date;
951
+ type: import("../enums").EventType;
952
+ payload: Record<string, unknown>;
953
+ workspaceId: string;
954
+ taskId?: string | null | undefined;
955
+ userId?: string | null | undefined;
956
+ }>, "many">>;
957
+ docs: z.ZodDefault<z.ZodArray<z.ZodObject<{
958
+ id: z.ZodString;
959
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
960
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
961
+ } & {
962
+ workspaceId: z.ZodString;
963
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
964
+ title: z.ZodString;
965
+ content: z.ZodDefault<z.ZodString>;
966
+ group: z.ZodOptional<z.ZodNullable<z.ZodObject<{
967
+ id: z.ZodString;
968
+ name: z.ZodString;
969
+ }, "strip", z.ZodTypeAny, {
970
+ id: string;
971
+ name: string;
972
+ }, {
973
+ id: string;
974
+ name: string;
975
+ }>>>;
976
+ }, "strip", z.ZodTypeAny, {
977
+ id: string;
978
+ createdAt: number | Date;
979
+ updatedAt: number | Date;
980
+ title: string;
981
+ workspaceId: string;
982
+ content: string;
983
+ groupId?: string | null | undefined;
984
+ group?: {
985
+ id: string;
986
+ name: string;
987
+ } | null | undefined;
988
+ }, {
989
+ id: string;
990
+ createdAt: number | Date;
991
+ updatedAt: number | Date;
992
+ title: string;
993
+ workspaceId: string;
994
+ groupId?: string | null | undefined;
995
+ content?: string | undefined;
996
+ group?: {
997
+ id: string;
998
+ name: string;
999
+ } | null | undefined;
1000
+ }>, "many">>;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ id: string;
1003
+ createdAt: number | Date;
1004
+ status: TaskStatus;
1005
+ updatedAt: number | Date;
1006
+ title: string;
1007
+ docs: {
1008
+ id: string;
1009
+ createdAt: number | Date;
1010
+ updatedAt: number | Date;
1011
+ title: string;
1012
+ workspaceId: string;
1013
+ content: string;
1014
+ groupId?: string | null | undefined;
1015
+ group?: {
1016
+ id: string;
1017
+ name: string;
1018
+ } | null | undefined;
1019
+ }[];
1020
+ description: string;
1021
+ priority: TaskPriority;
1022
+ labels: string[];
1023
+ acceptanceChecklist: {
1024
+ id: string;
1025
+ text: string;
1026
+ done: boolean;
1027
+ }[];
1028
+ comments: {
1029
+ id: string;
1030
+ createdAt: number | Date;
1031
+ updatedAt: number | Date;
1032
+ taskId: string;
1033
+ author: string;
1034
+ text: string;
1035
+ }[];
1036
+ activityLog: {
1037
+ id: string;
1038
+ createdAt: number | Date;
1039
+ type: import("../enums").EventType;
1040
+ payload: Record<string, unknown>;
1041
+ workspaceId: string;
1042
+ taskId?: string | null | undefined;
1043
+ userId?: string | null | undefined;
1044
+ }[];
1045
+ sprintId?: string | null | undefined;
1046
+ workspaceId?: string | null | undefined;
1047
+ assigneeRole?: AssigneeRole | null | undefined;
1048
+ assignedTo?: string | null | undefined;
1049
+ parentId?: string | null | undefined;
1050
+ dueDate?: number | Date | null | undefined;
1051
+ }, {
1052
+ id: string;
1053
+ createdAt: number | Date;
1054
+ updatedAt: number | Date;
1055
+ title: string;
1056
+ status?: TaskStatus | undefined;
1057
+ sprintId?: string | null | undefined;
1058
+ workspaceId?: string | null | undefined;
1059
+ docs?: {
1060
+ id: string;
1061
+ createdAt: number | Date;
1062
+ updatedAt: number | Date;
1063
+ title: string;
1064
+ workspaceId: string;
1065
+ groupId?: string | null | undefined;
1066
+ content?: string | undefined;
1067
+ group?: {
1068
+ id: string;
1069
+ name: string;
1070
+ } | null | undefined;
1071
+ }[] | undefined;
1072
+ description?: string | undefined;
1073
+ priority?: TaskPriority | undefined;
1074
+ labels?: string[] | undefined;
1075
+ assigneeRole?: AssigneeRole | null | undefined;
1076
+ assignedTo?: string | null | undefined;
1077
+ parentId?: string | null | undefined;
1078
+ dueDate?: number | Date | null | undefined;
1079
+ acceptanceChecklist?: {
1080
+ id: string;
1081
+ text: string;
1082
+ done: boolean;
1083
+ }[] | undefined;
1084
+ comments?: {
1085
+ id: string;
1086
+ createdAt: number | Date;
1087
+ updatedAt: number | Date;
1088
+ taskId: string;
1089
+ author: string;
1090
+ text: string;
1091
+ }[] | undefined;
1092
+ activityLog?: {
1093
+ id: string;
1094
+ createdAt: number | Date;
1095
+ type: import("../enums").EventType;
1096
+ payload: Record<string, unknown>;
1097
+ workspaceId: string;
1098
+ taskId?: string | null | undefined;
1099
+ userId?: string | null | undefined;
1100
+ }[] | undefined;
1101
+ }>, "many">;
1102
+ }, "strip", z.ZodTypeAny, {
1103
+ tasks: {
1104
+ id: string;
1105
+ createdAt: number | Date;
1106
+ status: TaskStatus;
1107
+ updatedAt: number | Date;
1108
+ title: string;
1109
+ docs: {
1110
+ id: string;
1111
+ createdAt: number | Date;
1112
+ updatedAt: number | Date;
1113
+ title: string;
1114
+ workspaceId: string;
1115
+ content: string;
1116
+ groupId?: string | null | undefined;
1117
+ group?: {
1118
+ id: string;
1119
+ name: string;
1120
+ } | null | undefined;
1121
+ }[];
1122
+ description: string;
1123
+ priority: TaskPriority;
1124
+ labels: string[];
1125
+ acceptanceChecklist: {
1126
+ id: string;
1127
+ text: string;
1128
+ done: boolean;
1129
+ }[];
1130
+ comments: {
1131
+ id: string;
1132
+ createdAt: number | Date;
1133
+ updatedAt: number | Date;
1134
+ taskId: string;
1135
+ author: string;
1136
+ text: string;
1137
+ }[];
1138
+ activityLog: {
1139
+ id: string;
1140
+ createdAt: number | Date;
1141
+ type: import("../enums").EventType;
1142
+ payload: Record<string, unknown>;
1143
+ workspaceId: string;
1144
+ taskId?: string | null | undefined;
1145
+ userId?: string | null | undefined;
1146
+ }[];
1147
+ sprintId?: string | null | undefined;
1148
+ workspaceId?: string | null | undefined;
1149
+ assigneeRole?: AssigneeRole | null | undefined;
1150
+ assignedTo?: string | null | undefined;
1151
+ parentId?: string | null | undefined;
1152
+ dueDate?: number | Date | null | undefined;
1153
+ }[];
1154
+ }, {
1155
+ tasks: {
1156
+ id: string;
1157
+ createdAt: number | Date;
1158
+ updatedAt: number | Date;
1159
+ title: string;
1160
+ status?: TaskStatus | undefined;
1161
+ sprintId?: string | null | undefined;
1162
+ workspaceId?: string | null | undefined;
1163
+ docs?: {
1164
+ id: string;
1165
+ createdAt: number | Date;
1166
+ updatedAt: number | Date;
1167
+ title: string;
1168
+ workspaceId: string;
1169
+ groupId?: string | null | undefined;
1170
+ content?: string | undefined;
1171
+ group?: {
1172
+ id: string;
1173
+ name: string;
1174
+ } | null | undefined;
1175
+ }[] | undefined;
1176
+ description?: string | undefined;
1177
+ priority?: TaskPriority | undefined;
1178
+ labels?: string[] | undefined;
1179
+ assigneeRole?: AssigneeRole | null | undefined;
1180
+ assignedTo?: string | null | undefined;
1181
+ parentId?: string | null | undefined;
1182
+ dueDate?: number | Date | null | undefined;
1183
+ acceptanceChecklist?: {
1184
+ id: string;
1185
+ text: string;
1186
+ done: boolean;
1187
+ }[] | undefined;
1188
+ comments?: {
1189
+ id: string;
1190
+ createdAt: number | Date;
1191
+ updatedAt: number | Date;
1192
+ taskId: string;
1193
+ author: string;
1194
+ text: string;
1195
+ }[] | undefined;
1196
+ activityLog?: {
1197
+ id: string;
1198
+ createdAt: number | Date;
1199
+ type: import("../enums").EventType;
1200
+ payload: Record<string, unknown>;
1201
+ workspaceId: string;
1202
+ taskId?: string | null | undefined;
1203
+ userId?: string | null | undefined;
1204
+ }[] | undefined;
1205
+ }[];
1206
+ }>;
1207
+ export type TasksResponse = z.infer<typeof TasksResponseSchema>;
1208
+ //# sourceMappingURL=task.d.ts.map