@critical-path/core 0.23.0 → 0.24.0

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.
@@ -0,0 +1,1941 @@
1
+ /**
2
+ * Request payload schemas for Critical Path resources.
3
+ *
4
+ * Exposed from `@critical-path/core/schemas` (not the package root) so browser bundles of core do
5
+ * not pull in zod. Create schemas omit server-assigned fields (`id`, `createdAt`, `updatedAt`, task
6
+ * `key`); update schemas additionally make every field optional and omit the owning `projectId`.
7
+ * Unknown keys are stripped rather than rejected, so older clients that send whole objects keep
8
+ * working while protected fields are never written.
9
+ */
10
+ import { z } from 'zod';
11
+ /**
12
+ * Parses `data` with `schema`, returning the cleaned value (unknown keys stripped, defaults
13
+ * applied) or throwing a `ValidationError` whose `issues` list every problem.
14
+ */
15
+ export declare function parsePayload<S extends z.ZodTypeAny>(schema: S, data: unknown): z.output<S>;
16
+ export declare const SemanticStatusSchema: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
17
+ export declare const AuthorTypeSchema: z.ZodEnum<["user", "agent", "system"]>;
18
+ export declare const StatusDefinitionSchema: z.ZodObject<{
19
+ key: z.ZodString;
20
+ label: z.ZodString;
21
+ category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ key: string;
24
+ category: "in_progress" | "canceled" | "not_started" | "completed";
25
+ label: string;
26
+ }, {
27
+ key: string;
28
+ category: "in_progress" | "canceled" | "not_started" | "completed";
29
+ label: string;
30
+ }>;
31
+ export declare const WorkScheduleSchema: z.ZodObject<{
32
+ id: z.ZodOptional<z.ZodString>;
33
+ name: z.ZodOptional<z.ZodString>;
34
+ timezone: z.ZodOptional<z.ZodString>;
35
+ defaultHoursPerDay: z.ZodOptional<z.ZodNumber>;
36
+ days: z.ZodArray<z.ZodObject<{
37
+ dayOfWeek: z.ZodNumber;
38
+ isWorkingDay: z.ZodBoolean;
39
+ hours: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
+ start: z.ZodString;
41
+ end: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ start: string;
44
+ end: string;
45
+ }, {
46
+ start: string;
47
+ end: string;
48
+ }>, "many">>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ isWorkingDay: boolean;
51
+ dayOfWeek: number;
52
+ hours?: {
53
+ start: string;
54
+ end: string;
55
+ }[] | undefined;
56
+ }, {
57
+ isWorkingDay: boolean;
58
+ dayOfWeek: number;
59
+ hours?: {
60
+ start: string;
61
+ end: string;
62
+ }[] | undefined;
63
+ }>, "many">;
64
+ holidays: z.ZodOptional<z.ZodArray<z.ZodObject<{
65
+ date: z.ZodString;
66
+ name: z.ZodOptional<z.ZodString>;
67
+ halfDay: z.ZodOptional<z.ZodBoolean>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ date: string;
70
+ name?: string | undefined;
71
+ halfDay?: boolean | undefined;
72
+ }, {
73
+ date: string;
74
+ name?: string | undefined;
75
+ halfDay?: boolean | undefined;
76
+ }>, "many">>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ days: {
79
+ isWorkingDay: boolean;
80
+ dayOfWeek: number;
81
+ hours?: {
82
+ start: string;
83
+ end: string;
84
+ }[] | undefined;
85
+ }[];
86
+ id?: string | undefined;
87
+ name?: string | undefined;
88
+ defaultHoursPerDay?: number | undefined;
89
+ timezone?: string | undefined;
90
+ holidays?: {
91
+ date: string;
92
+ name?: string | undefined;
93
+ halfDay?: boolean | undefined;
94
+ }[] | undefined;
95
+ }, {
96
+ days: {
97
+ isWorkingDay: boolean;
98
+ dayOfWeek: number;
99
+ hours?: {
100
+ start: string;
101
+ end: string;
102
+ }[] | undefined;
103
+ }[];
104
+ id?: string | undefined;
105
+ name?: string | undefined;
106
+ defaultHoursPerDay?: number | undefined;
107
+ timezone?: string | undefined;
108
+ holidays?: {
109
+ date: string;
110
+ name?: string | undefined;
111
+ halfDay?: boolean | undefined;
112
+ }[] | undefined;
113
+ }>;
114
+ export declare const CustomFieldDefinitionSchema: z.ZodObject<{
115
+ id: z.ZodString;
116
+ key: z.ZodString;
117
+ label: z.ZodString;
118
+ type: z.ZodEnum<["text", "number", "date", "boolean", "single_select", "multi_select", "user"]>;
119
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
120
+ required: z.ZodOptional<z.ZodBoolean>;
121
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ id: string;
124
+ key: string;
125
+ type: "number" | "boolean" | "text" | "date" | "single_select" | "multi_select" | "user";
126
+ label: string;
127
+ options?: string[] | undefined;
128
+ required?: boolean | undefined;
129
+ defaultValue?: unknown;
130
+ }, {
131
+ id: string;
132
+ key: string;
133
+ type: "number" | "boolean" | "text" | "date" | "single_select" | "multi_select" | "user";
134
+ label: string;
135
+ options?: string[] | undefined;
136
+ required?: boolean | undefined;
137
+ defaultValue?: unknown;
138
+ }>;
139
+ export declare const TaskTypeDefinitionSchema: z.ZodObject<{
140
+ key: z.ZodString;
141
+ label: z.ZodString;
142
+ description: z.ZodOptional<z.ZodString>;
143
+ icon: z.ZodOptional<z.ZodString>;
144
+ defaultStatusKey: z.ZodOptional<z.ZodString>;
145
+ workflowId: z.ZodOptional<z.ZodString>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ key: string;
148
+ label: string;
149
+ description?: string | undefined;
150
+ workflowId?: string | undefined;
151
+ defaultStatusKey?: string | undefined;
152
+ icon?: string | undefined;
153
+ }, {
154
+ key: string;
155
+ label: string;
156
+ description?: string | undefined;
157
+ workflowId?: string | undefined;
158
+ defaultStatusKey?: string | undefined;
159
+ icon?: string | undefined;
160
+ }>;
161
+ export declare const CreateWorkflowSchema: z.ZodObject<{
162
+ name: z.ZodString;
163
+ description: z.ZodOptional<z.ZodString>;
164
+ statuses: z.ZodArray<z.ZodObject<{
165
+ key: z.ZodString;
166
+ label: z.ZodString;
167
+ category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ key: string;
170
+ category: "in_progress" | "canceled" | "not_started" | "completed";
171
+ label: string;
172
+ }, {
173
+ key: string;
174
+ category: "in_progress" | "canceled" | "not_started" | "completed";
175
+ label: string;
176
+ }>, "many">;
177
+ transitions: z.ZodDefault<z.ZodArray<z.ZodObject<{
178
+ id: z.ZodOptional<z.ZodString>;
179
+ name: z.ZodOptional<z.ZodString>;
180
+ fromStatusKey: z.ZodString;
181
+ toStatusKey: z.ZodString;
182
+ }, "strip", z.ZodTypeAny, {
183
+ fromStatusKey: string;
184
+ toStatusKey: string;
185
+ id?: string | undefined;
186
+ name?: string | undefined;
187
+ }, {
188
+ fromStatusKey: string;
189
+ toStatusKey: string;
190
+ id?: string | undefined;
191
+ name?: string | undefined;
192
+ }>, "many">>;
193
+ taskTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
194
+ key: z.ZodString;
195
+ label: z.ZodString;
196
+ description: z.ZodOptional<z.ZodString>;
197
+ icon: z.ZodOptional<z.ZodString>;
198
+ defaultStatusKey: z.ZodOptional<z.ZodString>;
199
+ workflowId: z.ZodOptional<z.ZodString>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ key: string;
202
+ label: string;
203
+ description?: string | undefined;
204
+ workflowId?: string | undefined;
205
+ defaultStatusKey?: string | undefined;
206
+ icon?: string | undefined;
207
+ }, {
208
+ key: string;
209
+ label: string;
210
+ description?: string | undefined;
211
+ workflowId?: string | undefined;
212
+ defaultStatusKey?: string | undefined;
213
+ icon?: string | undefined;
214
+ }>, "many">>;
215
+ defaultStatusKey: z.ZodOptional<z.ZodString>;
216
+ isDefault: z.ZodOptional<z.ZodBoolean>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ name: string;
219
+ transitions: {
220
+ fromStatusKey: string;
221
+ toStatusKey: string;
222
+ id?: string | undefined;
223
+ name?: string | undefined;
224
+ }[];
225
+ statuses: {
226
+ key: string;
227
+ category: "in_progress" | "canceled" | "not_started" | "completed";
228
+ label: string;
229
+ }[];
230
+ description?: string | undefined;
231
+ taskTypes?: {
232
+ key: string;
233
+ label: string;
234
+ description?: string | undefined;
235
+ workflowId?: string | undefined;
236
+ defaultStatusKey?: string | undefined;
237
+ icon?: string | undefined;
238
+ }[] | undefined;
239
+ defaultStatusKey?: string | undefined;
240
+ isDefault?: boolean | undefined;
241
+ }, {
242
+ name: string;
243
+ statuses: {
244
+ key: string;
245
+ category: "in_progress" | "canceled" | "not_started" | "completed";
246
+ label: string;
247
+ }[];
248
+ description?: string | undefined;
249
+ taskTypes?: {
250
+ key: string;
251
+ label: string;
252
+ description?: string | undefined;
253
+ workflowId?: string | undefined;
254
+ defaultStatusKey?: string | undefined;
255
+ icon?: string | undefined;
256
+ }[] | undefined;
257
+ transitions?: {
258
+ fromStatusKey: string;
259
+ toStatusKey: string;
260
+ id?: string | undefined;
261
+ name?: string | undefined;
262
+ }[] | undefined;
263
+ defaultStatusKey?: string | undefined;
264
+ isDefault?: boolean | undefined;
265
+ }>;
266
+ export declare const UpdateWorkflowSchema: z.ZodObject<{
267
+ name: z.ZodOptional<z.ZodString>;
268
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
269
+ statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
+ key: z.ZodString;
271
+ label: z.ZodString;
272
+ category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ key: string;
275
+ category: "in_progress" | "canceled" | "not_started" | "completed";
276
+ label: string;
277
+ }, {
278
+ key: string;
279
+ category: "in_progress" | "canceled" | "not_started" | "completed";
280
+ label: string;
281
+ }>, "many">>;
282
+ transitions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
283
+ id: z.ZodOptional<z.ZodString>;
284
+ name: z.ZodOptional<z.ZodString>;
285
+ fromStatusKey: z.ZodString;
286
+ toStatusKey: z.ZodString;
287
+ }, "strip", z.ZodTypeAny, {
288
+ fromStatusKey: string;
289
+ toStatusKey: string;
290
+ id?: string | undefined;
291
+ name?: string | undefined;
292
+ }, {
293
+ fromStatusKey: string;
294
+ toStatusKey: string;
295
+ id?: string | undefined;
296
+ name?: string | undefined;
297
+ }>, "many">>>;
298
+ taskTypes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
299
+ key: z.ZodString;
300
+ label: z.ZodString;
301
+ description: z.ZodOptional<z.ZodString>;
302
+ icon: z.ZodOptional<z.ZodString>;
303
+ defaultStatusKey: z.ZodOptional<z.ZodString>;
304
+ workflowId: z.ZodOptional<z.ZodString>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ key: string;
307
+ label: string;
308
+ description?: string | undefined;
309
+ workflowId?: string | undefined;
310
+ defaultStatusKey?: string | undefined;
311
+ icon?: string | undefined;
312
+ }, {
313
+ key: string;
314
+ label: string;
315
+ description?: string | undefined;
316
+ workflowId?: string | undefined;
317
+ defaultStatusKey?: string | undefined;
318
+ icon?: string | undefined;
319
+ }>, "many">>>;
320
+ defaultStatusKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
321
+ isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ description?: string | undefined;
324
+ name?: string | undefined;
325
+ taskTypes?: {
326
+ key: string;
327
+ label: string;
328
+ description?: string | undefined;
329
+ workflowId?: string | undefined;
330
+ defaultStatusKey?: string | undefined;
331
+ icon?: string | undefined;
332
+ }[] | undefined;
333
+ transitions?: {
334
+ fromStatusKey: string;
335
+ toStatusKey: string;
336
+ id?: string | undefined;
337
+ name?: string | undefined;
338
+ }[] | undefined;
339
+ statuses?: {
340
+ key: string;
341
+ category: "in_progress" | "canceled" | "not_started" | "completed";
342
+ label: string;
343
+ }[] | undefined;
344
+ defaultStatusKey?: string | undefined;
345
+ isDefault?: boolean | undefined;
346
+ }, {
347
+ description?: string | undefined;
348
+ name?: string | undefined;
349
+ taskTypes?: {
350
+ key: string;
351
+ label: string;
352
+ description?: string | undefined;
353
+ workflowId?: string | undefined;
354
+ defaultStatusKey?: string | undefined;
355
+ icon?: string | undefined;
356
+ }[] | undefined;
357
+ transitions?: {
358
+ fromStatusKey: string;
359
+ toStatusKey: string;
360
+ id?: string | undefined;
361
+ name?: string | undefined;
362
+ }[] | undefined;
363
+ statuses?: {
364
+ key: string;
365
+ category: "in_progress" | "canceled" | "not_started" | "completed";
366
+ label: string;
367
+ }[] | undefined;
368
+ defaultStatusKey?: string | undefined;
369
+ isDefault?: boolean | undefined;
370
+ }>;
371
+ export declare const CreateProjectSchema: z.ZodObject<{
372
+ key: z.ZodOptional<z.ZodString>;
373
+ name: z.ZodString;
374
+ description: z.ZodOptional<z.ZodString>;
375
+ ownerId: z.ZodOptional<z.ZodString>;
376
+ members: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
377
+ teamIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
378
+ workflowId: z.ZodOptional<z.ZodString>;
379
+ taskTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
380
+ key: z.ZodString;
381
+ label: z.ZodString;
382
+ description: z.ZodOptional<z.ZodString>;
383
+ icon: z.ZodOptional<z.ZodString>;
384
+ defaultStatusKey: z.ZodOptional<z.ZodString>;
385
+ workflowId: z.ZodOptional<z.ZodString>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ key: string;
388
+ label: string;
389
+ description?: string | undefined;
390
+ workflowId?: string | undefined;
391
+ defaultStatusKey?: string | undefined;
392
+ icon?: string | undefined;
393
+ }, {
394
+ key: string;
395
+ label: string;
396
+ description?: string | undefined;
397
+ workflowId?: string | undefined;
398
+ defaultStatusKey?: string | undefined;
399
+ icon?: string | undefined;
400
+ }>, "many">>;
401
+ statusDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
402
+ key: z.ZodString;
403
+ label: z.ZodString;
404
+ category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ key: string;
407
+ category: "in_progress" | "canceled" | "not_started" | "completed";
408
+ label: string;
409
+ }, {
410
+ key: string;
411
+ category: "in_progress" | "canceled" | "not_started" | "completed";
412
+ label: string;
413
+ }>, "many">>;
414
+ priorityDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
415
+ key: z.ZodString;
416
+ label: z.ZodString;
417
+ level: z.ZodOptional<z.ZodNumber>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ key: string;
420
+ label: string;
421
+ level?: number | undefined;
422
+ }, {
423
+ key: string;
424
+ label: string;
425
+ level?: number | undefined;
426
+ }>, "many">>;
427
+ customFieldDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
428
+ id: z.ZodString;
429
+ key: z.ZodString;
430
+ label: z.ZodString;
431
+ type: z.ZodEnum<["text", "number", "date", "boolean", "single_select", "multi_select", "user"]>;
432
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
433
+ required: z.ZodOptional<z.ZodBoolean>;
434
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ id: string;
437
+ key: string;
438
+ type: "number" | "boolean" | "text" | "date" | "single_select" | "multi_select" | "user";
439
+ label: string;
440
+ options?: string[] | undefined;
441
+ required?: boolean | undefined;
442
+ defaultValue?: unknown;
443
+ }, {
444
+ id: string;
445
+ key: string;
446
+ type: "number" | "boolean" | "text" | "date" | "single_select" | "multi_select" | "user";
447
+ label: string;
448
+ options?: string[] | undefined;
449
+ required?: boolean | undefined;
450
+ defaultValue?: unknown;
451
+ }>, "many">>;
452
+ schedule: z.ZodOptional<z.ZodObject<{
453
+ id: z.ZodOptional<z.ZodString>;
454
+ name: z.ZodOptional<z.ZodString>;
455
+ timezone: z.ZodOptional<z.ZodString>;
456
+ defaultHoursPerDay: z.ZodOptional<z.ZodNumber>;
457
+ days: z.ZodArray<z.ZodObject<{
458
+ dayOfWeek: z.ZodNumber;
459
+ isWorkingDay: z.ZodBoolean;
460
+ hours: z.ZodOptional<z.ZodArray<z.ZodObject<{
461
+ start: z.ZodString;
462
+ end: z.ZodString;
463
+ }, "strip", z.ZodTypeAny, {
464
+ start: string;
465
+ end: string;
466
+ }, {
467
+ start: string;
468
+ end: string;
469
+ }>, "many">>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ isWorkingDay: boolean;
472
+ dayOfWeek: number;
473
+ hours?: {
474
+ start: string;
475
+ end: string;
476
+ }[] | undefined;
477
+ }, {
478
+ isWorkingDay: boolean;
479
+ dayOfWeek: number;
480
+ hours?: {
481
+ start: string;
482
+ end: string;
483
+ }[] | undefined;
484
+ }>, "many">;
485
+ holidays: z.ZodOptional<z.ZodArray<z.ZodObject<{
486
+ date: z.ZodString;
487
+ name: z.ZodOptional<z.ZodString>;
488
+ halfDay: z.ZodOptional<z.ZodBoolean>;
489
+ }, "strip", z.ZodTypeAny, {
490
+ date: string;
491
+ name?: string | undefined;
492
+ halfDay?: boolean | undefined;
493
+ }, {
494
+ date: string;
495
+ name?: string | undefined;
496
+ halfDay?: boolean | undefined;
497
+ }>, "many">>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ days: {
500
+ isWorkingDay: boolean;
501
+ dayOfWeek: number;
502
+ hours?: {
503
+ start: string;
504
+ end: string;
505
+ }[] | undefined;
506
+ }[];
507
+ id?: string | undefined;
508
+ name?: string | undefined;
509
+ defaultHoursPerDay?: number | undefined;
510
+ timezone?: string | undefined;
511
+ holidays?: {
512
+ date: string;
513
+ name?: string | undefined;
514
+ halfDay?: boolean | undefined;
515
+ }[] | undefined;
516
+ }, {
517
+ days: {
518
+ isWorkingDay: boolean;
519
+ dayOfWeek: number;
520
+ hours?: {
521
+ start: string;
522
+ end: string;
523
+ }[] | undefined;
524
+ }[];
525
+ id?: string | undefined;
526
+ name?: string | undefined;
527
+ defaultHoursPerDay?: number | undefined;
528
+ timezone?: string | undefined;
529
+ holidays?: {
530
+ date: string;
531
+ name?: string | undefined;
532
+ halfDay?: boolean | undefined;
533
+ }[] | undefined;
534
+ }>>;
535
+ startDate: z.ZodOptional<z.ZodString>;
536
+ targetEndDate: z.ZodOptional<z.ZodString>;
537
+ }, "strip", z.ZodTypeAny, {
538
+ name: string;
539
+ key?: string | undefined;
540
+ description?: string | undefined;
541
+ ownerId?: string | undefined;
542
+ members?: string[] | undefined;
543
+ teamIds?: string[] | undefined;
544
+ workflowId?: string | undefined;
545
+ taskTypes?: {
546
+ key: string;
547
+ label: string;
548
+ description?: string | undefined;
549
+ workflowId?: string | undefined;
550
+ defaultStatusKey?: string | undefined;
551
+ icon?: string | undefined;
552
+ }[] | undefined;
553
+ statusDefinitions?: {
554
+ key: string;
555
+ category: "in_progress" | "canceled" | "not_started" | "completed";
556
+ label: string;
557
+ }[] | undefined;
558
+ priorityDefinitions?: {
559
+ key: string;
560
+ label: string;
561
+ level?: number | undefined;
562
+ }[] | undefined;
563
+ customFieldDefinitions?: {
564
+ id: string;
565
+ key: string;
566
+ type: "number" | "boolean" | "text" | "date" | "single_select" | "multi_select" | "user";
567
+ label: string;
568
+ options?: string[] | undefined;
569
+ required?: boolean | undefined;
570
+ defaultValue?: unknown;
571
+ }[] | undefined;
572
+ schedule?: {
573
+ days: {
574
+ isWorkingDay: boolean;
575
+ dayOfWeek: number;
576
+ hours?: {
577
+ start: string;
578
+ end: string;
579
+ }[] | undefined;
580
+ }[];
581
+ id?: string | undefined;
582
+ name?: string | undefined;
583
+ defaultHoursPerDay?: number | undefined;
584
+ timezone?: string | undefined;
585
+ holidays?: {
586
+ date: string;
587
+ name?: string | undefined;
588
+ halfDay?: boolean | undefined;
589
+ }[] | undefined;
590
+ } | undefined;
591
+ startDate?: string | undefined;
592
+ targetEndDate?: string | undefined;
593
+ }, {
594
+ name: string;
595
+ key?: string | undefined;
596
+ description?: string | undefined;
597
+ ownerId?: string | undefined;
598
+ members?: string[] | undefined;
599
+ teamIds?: string[] | undefined;
600
+ workflowId?: string | undefined;
601
+ taskTypes?: {
602
+ key: string;
603
+ label: string;
604
+ description?: string | undefined;
605
+ workflowId?: string | undefined;
606
+ defaultStatusKey?: string | undefined;
607
+ icon?: string | undefined;
608
+ }[] | undefined;
609
+ statusDefinitions?: {
610
+ key: string;
611
+ category: "in_progress" | "canceled" | "not_started" | "completed";
612
+ label: string;
613
+ }[] | undefined;
614
+ priorityDefinitions?: {
615
+ key: string;
616
+ label: string;
617
+ level?: number | undefined;
618
+ }[] | undefined;
619
+ customFieldDefinitions?: {
620
+ id: string;
621
+ key: string;
622
+ type: "number" | "boolean" | "text" | "date" | "single_select" | "multi_select" | "user";
623
+ label: string;
624
+ options?: string[] | undefined;
625
+ required?: boolean | undefined;
626
+ defaultValue?: unknown;
627
+ }[] | undefined;
628
+ schedule?: {
629
+ days: {
630
+ isWorkingDay: boolean;
631
+ dayOfWeek: number;
632
+ hours?: {
633
+ start: string;
634
+ end: string;
635
+ }[] | undefined;
636
+ }[];
637
+ id?: string | undefined;
638
+ name?: string | undefined;
639
+ defaultHoursPerDay?: number | undefined;
640
+ timezone?: string | undefined;
641
+ holidays?: {
642
+ date: string;
643
+ name?: string | undefined;
644
+ halfDay?: boolean | undefined;
645
+ }[] | undefined;
646
+ } | undefined;
647
+ startDate?: string | undefined;
648
+ targetEndDate?: string | undefined;
649
+ }>;
650
+ export declare const UpdateProjectSchema: z.ZodObject<{
651
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
652
+ name: z.ZodOptional<z.ZodString>;
653
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
654
+ ownerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
655
+ members: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
656
+ teamIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
657
+ workflowId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
658
+ taskTypes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
659
+ key: z.ZodString;
660
+ label: z.ZodString;
661
+ description: z.ZodOptional<z.ZodString>;
662
+ icon: z.ZodOptional<z.ZodString>;
663
+ defaultStatusKey: z.ZodOptional<z.ZodString>;
664
+ workflowId: z.ZodOptional<z.ZodString>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ key: string;
667
+ label: string;
668
+ description?: string | undefined;
669
+ workflowId?: string | undefined;
670
+ defaultStatusKey?: string | undefined;
671
+ icon?: string | undefined;
672
+ }, {
673
+ key: string;
674
+ label: string;
675
+ description?: string | undefined;
676
+ workflowId?: string | undefined;
677
+ defaultStatusKey?: string | undefined;
678
+ icon?: string | undefined;
679
+ }>, "many">>>;
680
+ statusDefinitions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
681
+ key: z.ZodString;
682
+ label: z.ZodString;
683
+ category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
684
+ }, "strip", z.ZodTypeAny, {
685
+ key: string;
686
+ category: "in_progress" | "canceled" | "not_started" | "completed";
687
+ label: string;
688
+ }, {
689
+ key: string;
690
+ category: "in_progress" | "canceled" | "not_started" | "completed";
691
+ label: string;
692
+ }>, "many">>>;
693
+ priorityDefinitions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
694
+ key: z.ZodString;
695
+ label: z.ZodString;
696
+ level: z.ZodOptional<z.ZodNumber>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ key: string;
699
+ label: string;
700
+ level?: number | undefined;
701
+ }, {
702
+ key: string;
703
+ label: string;
704
+ level?: number | undefined;
705
+ }>, "many">>>;
706
+ customFieldDefinitions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
707
+ id: z.ZodString;
708
+ key: z.ZodString;
709
+ label: z.ZodString;
710
+ type: z.ZodEnum<["text", "number", "date", "boolean", "single_select", "multi_select", "user"]>;
711
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
712
+ required: z.ZodOptional<z.ZodBoolean>;
713
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ id: string;
716
+ key: string;
717
+ type: "number" | "boolean" | "text" | "date" | "single_select" | "multi_select" | "user";
718
+ label: string;
719
+ options?: string[] | undefined;
720
+ required?: boolean | undefined;
721
+ defaultValue?: unknown;
722
+ }, {
723
+ id: string;
724
+ key: string;
725
+ type: "number" | "boolean" | "text" | "date" | "single_select" | "multi_select" | "user";
726
+ label: string;
727
+ options?: string[] | undefined;
728
+ required?: boolean | undefined;
729
+ defaultValue?: unknown;
730
+ }>, "many">>>;
731
+ schedule: z.ZodOptional<z.ZodOptional<z.ZodObject<{
732
+ id: z.ZodOptional<z.ZodString>;
733
+ name: z.ZodOptional<z.ZodString>;
734
+ timezone: z.ZodOptional<z.ZodString>;
735
+ defaultHoursPerDay: z.ZodOptional<z.ZodNumber>;
736
+ days: z.ZodArray<z.ZodObject<{
737
+ dayOfWeek: z.ZodNumber;
738
+ isWorkingDay: z.ZodBoolean;
739
+ hours: z.ZodOptional<z.ZodArray<z.ZodObject<{
740
+ start: z.ZodString;
741
+ end: z.ZodString;
742
+ }, "strip", z.ZodTypeAny, {
743
+ start: string;
744
+ end: string;
745
+ }, {
746
+ start: string;
747
+ end: string;
748
+ }>, "many">>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ isWorkingDay: boolean;
751
+ dayOfWeek: number;
752
+ hours?: {
753
+ start: string;
754
+ end: string;
755
+ }[] | undefined;
756
+ }, {
757
+ isWorkingDay: boolean;
758
+ dayOfWeek: number;
759
+ hours?: {
760
+ start: string;
761
+ end: string;
762
+ }[] | undefined;
763
+ }>, "many">;
764
+ holidays: z.ZodOptional<z.ZodArray<z.ZodObject<{
765
+ date: z.ZodString;
766
+ name: z.ZodOptional<z.ZodString>;
767
+ halfDay: z.ZodOptional<z.ZodBoolean>;
768
+ }, "strip", z.ZodTypeAny, {
769
+ date: string;
770
+ name?: string | undefined;
771
+ halfDay?: boolean | undefined;
772
+ }, {
773
+ date: string;
774
+ name?: string | undefined;
775
+ halfDay?: boolean | undefined;
776
+ }>, "many">>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ days: {
779
+ isWorkingDay: boolean;
780
+ dayOfWeek: number;
781
+ hours?: {
782
+ start: string;
783
+ end: string;
784
+ }[] | undefined;
785
+ }[];
786
+ id?: string | undefined;
787
+ name?: string | undefined;
788
+ defaultHoursPerDay?: number | undefined;
789
+ timezone?: string | undefined;
790
+ holidays?: {
791
+ date: string;
792
+ name?: string | undefined;
793
+ halfDay?: boolean | undefined;
794
+ }[] | undefined;
795
+ }, {
796
+ days: {
797
+ isWorkingDay: boolean;
798
+ dayOfWeek: number;
799
+ hours?: {
800
+ start: string;
801
+ end: string;
802
+ }[] | undefined;
803
+ }[];
804
+ id?: string | undefined;
805
+ name?: string | undefined;
806
+ defaultHoursPerDay?: number | undefined;
807
+ timezone?: string | undefined;
808
+ holidays?: {
809
+ date: string;
810
+ name?: string | undefined;
811
+ halfDay?: boolean | undefined;
812
+ }[] | undefined;
813
+ }>>>;
814
+ startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
815
+ targetEndDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
816
+ }, "strip", z.ZodTypeAny, {
817
+ key?: string | undefined;
818
+ description?: string | undefined;
819
+ name?: string | undefined;
820
+ ownerId?: string | undefined;
821
+ members?: string[] | undefined;
822
+ teamIds?: string[] | undefined;
823
+ workflowId?: string | undefined;
824
+ taskTypes?: {
825
+ key: string;
826
+ label: string;
827
+ description?: string | undefined;
828
+ workflowId?: string | undefined;
829
+ defaultStatusKey?: string | undefined;
830
+ icon?: string | undefined;
831
+ }[] | undefined;
832
+ statusDefinitions?: {
833
+ key: string;
834
+ category: "in_progress" | "canceled" | "not_started" | "completed";
835
+ label: string;
836
+ }[] | undefined;
837
+ priorityDefinitions?: {
838
+ key: string;
839
+ label: string;
840
+ level?: number | undefined;
841
+ }[] | undefined;
842
+ customFieldDefinitions?: {
843
+ id: string;
844
+ key: string;
845
+ type: "number" | "boolean" | "text" | "date" | "single_select" | "multi_select" | "user";
846
+ label: string;
847
+ options?: string[] | undefined;
848
+ required?: boolean | undefined;
849
+ defaultValue?: unknown;
850
+ }[] | undefined;
851
+ schedule?: {
852
+ days: {
853
+ isWorkingDay: boolean;
854
+ dayOfWeek: number;
855
+ hours?: {
856
+ start: string;
857
+ end: string;
858
+ }[] | undefined;
859
+ }[];
860
+ id?: string | undefined;
861
+ name?: string | undefined;
862
+ defaultHoursPerDay?: number | undefined;
863
+ timezone?: string | undefined;
864
+ holidays?: {
865
+ date: string;
866
+ name?: string | undefined;
867
+ halfDay?: boolean | undefined;
868
+ }[] | undefined;
869
+ } | undefined;
870
+ startDate?: string | undefined;
871
+ targetEndDate?: string | undefined;
872
+ }, {
873
+ key?: string | undefined;
874
+ description?: string | undefined;
875
+ name?: string | undefined;
876
+ ownerId?: string | undefined;
877
+ members?: string[] | undefined;
878
+ teamIds?: string[] | undefined;
879
+ workflowId?: string | undefined;
880
+ taskTypes?: {
881
+ key: string;
882
+ label: string;
883
+ description?: string | undefined;
884
+ workflowId?: string | undefined;
885
+ defaultStatusKey?: string | undefined;
886
+ icon?: string | undefined;
887
+ }[] | undefined;
888
+ statusDefinitions?: {
889
+ key: string;
890
+ category: "in_progress" | "canceled" | "not_started" | "completed";
891
+ label: string;
892
+ }[] | undefined;
893
+ priorityDefinitions?: {
894
+ key: string;
895
+ label: string;
896
+ level?: number | undefined;
897
+ }[] | undefined;
898
+ customFieldDefinitions?: {
899
+ id: string;
900
+ key: string;
901
+ type: "number" | "boolean" | "text" | "date" | "single_select" | "multi_select" | "user";
902
+ label: string;
903
+ options?: string[] | undefined;
904
+ required?: boolean | undefined;
905
+ defaultValue?: unknown;
906
+ }[] | undefined;
907
+ schedule?: {
908
+ days: {
909
+ isWorkingDay: boolean;
910
+ dayOfWeek: number;
911
+ hours?: {
912
+ start: string;
913
+ end: string;
914
+ }[] | undefined;
915
+ }[];
916
+ id?: string | undefined;
917
+ name?: string | undefined;
918
+ defaultHoursPerDay?: number | undefined;
919
+ timezone?: string | undefined;
920
+ holidays?: {
921
+ date: string;
922
+ name?: string | undefined;
923
+ halfDay?: boolean | undefined;
924
+ }[] | undefined;
925
+ } | undefined;
926
+ startDate?: string | undefined;
927
+ targetEndDate?: string | undefined;
928
+ }>;
929
+ export declare const CreateTaskSchema: z.ZodObject<{
930
+ title: z.ZodString;
931
+ description: z.ZodOptional<z.ZodString>;
932
+ status: z.ZodOptional<z.ZodString>;
933
+ semanticStatus: z.ZodOptional<z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>>;
934
+ priority: z.ZodOptional<z.ZodString>;
935
+ taskType: z.ZodOptional<z.ZodString>;
936
+ assigneeId: z.ZodOptional<z.ZodString>;
937
+ assignees: z.ZodOptional<z.ZodArray<z.ZodObject<{
938
+ id: z.ZodString;
939
+ name: z.ZodOptional<z.ZodString>;
940
+ role: z.ZodOptional<z.ZodString>;
941
+ type: z.ZodOptional<z.ZodEnum<["user", "agent", "team"]>>;
942
+ avatarUrl: z.ZodOptional<z.ZodString>;
943
+ }, "strip", z.ZodTypeAny, {
944
+ id: string;
945
+ name?: string | undefined;
946
+ type?: "user" | "agent" | "team" | undefined;
947
+ role?: string | undefined;
948
+ avatarUrl?: string | undefined;
949
+ }, {
950
+ id: string;
951
+ name?: string | undefined;
952
+ type?: "user" | "agent" | "team" | undefined;
953
+ role?: string | undefined;
954
+ avatarUrl?: string | undefined;
955
+ }>, "many">>;
956
+ reporterId: z.ZodOptional<z.ZodString>;
957
+ reviewerId: z.ZodOptional<z.ZodString>;
958
+ iterationId: z.ZodOptional<z.ZodString>;
959
+ teamId: z.ZodOptional<z.ZodString>;
960
+ containerId: z.ZodOptional<z.ZodString>;
961
+ deliverableId: z.ZodOptional<z.ZodString>;
962
+ plannedStartDate: z.ZodOptional<z.ZodString>;
963
+ actualStartDate: z.ZodOptional<z.ZodString>;
964
+ actualEndDate: z.ZodOptional<z.ZodString>;
965
+ completedAt: z.ZodOptional<z.ZodString>;
966
+ dueDate: z.ZodOptional<z.ZodString>;
967
+ estimatedHours: z.ZodOptional<z.ZodNumber>;
968
+ loggedHours: z.ZodOptional<z.ZodNumber>;
969
+ actualHours: z.ZodOptional<z.ZodNumber>;
970
+ billableHours: z.ZodOptional<z.ZodNumber>;
971
+ estimatedDurationMinutes: z.ZodOptional<z.ZodNumber>;
972
+ actualDurationMinutes: z.ZodOptional<z.ZodNumber>;
973
+ billableDurationMinutes: z.ZodOptional<z.ZodNumber>;
974
+ actualDurationSeconds: z.ZodOptional<z.ZodNumber>;
975
+ inProgressSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
976
+ blockedDurationSeconds: z.ZodOptional<z.ZodNumber>;
977
+ blockedSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
978
+ progress: z.ZodOptional<z.ZodNumber>;
979
+ isBlocked: z.ZodOptional<z.ZodBoolean>;
980
+ blockedReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
981
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
982
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
983
+ id: z.ZodString;
984
+ title: z.ZodString;
985
+ completed: z.ZodBoolean;
986
+ createdAt: z.ZodOptional<z.ZodString>;
987
+ completedAt: z.ZodOptional<z.ZodString>;
988
+ }, "strip", z.ZodTypeAny, {
989
+ completed: boolean;
990
+ id: string;
991
+ title: string;
992
+ createdAt?: string | undefined;
993
+ completedAt?: string | undefined;
994
+ }, {
995
+ completed: boolean;
996
+ id: string;
997
+ title: string;
998
+ createdAt?: string | undefined;
999
+ completedAt?: string | undefined;
1000
+ }>, "many">>;
1001
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1002
+ parentId: z.ZodOptional<z.ZodString>;
1003
+ projectId: z.ZodString;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ projectId: string;
1006
+ title: string;
1007
+ status?: string | undefined;
1008
+ priority?: string | undefined;
1009
+ description?: string | undefined;
1010
+ semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
1011
+ taskType?: string | undefined;
1012
+ assigneeId?: string | undefined;
1013
+ assignees?: {
1014
+ id: string;
1015
+ name?: string | undefined;
1016
+ type?: "user" | "agent" | "team" | undefined;
1017
+ role?: string | undefined;
1018
+ avatarUrl?: string | undefined;
1019
+ }[] | undefined;
1020
+ reporterId?: string | undefined;
1021
+ reviewerId?: string | undefined;
1022
+ iterationId?: string | undefined;
1023
+ teamId?: string | undefined;
1024
+ containerId?: string | undefined;
1025
+ deliverableId?: string | undefined;
1026
+ plannedStartDate?: string | undefined;
1027
+ actualStartDate?: string | undefined;
1028
+ actualEndDate?: string | undefined;
1029
+ completedAt?: string | undefined;
1030
+ dueDate?: string | undefined;
1031
+ estimatedHours?: number | undefined;
1032
+ loggedHours?: number | undefined;
1033
+ actualHours?: number | undefined;
1034
+ billableHours?: number | undefined;
1035
+ estimatedDurationMinutes?: number | undefined;
1036
+ actualDurationMinutes?: number | undefined;
1037
+ billableDurationMinutes?: number | undefined;
1038
+ actualDurationSeconds?: number | undefined;
1039
+ inProgressSince?: string | null | undefined;
1040
+ blockedDurationSeconds?: number | undefined;
1041
+ blockedSince?: string | null | undefined;
1042
+ progress?: number | undefined;
1043
+ isBlocked?: boolean | undefined;
1044
+ blockedReason?: string | null | undefined;
1045
+ tags?: string[] | undefined;
1046
+ todos?: {
1047
+ completed: boolean;
1048
+ id: string;
1049
+ title: string;
1050
+ createdAt?: string | undefined;
1051
+ completedAt?: string | undefined;
1052
+ }[] | undefined;
1053
+ customFields?: Record<string, unknown> | undefined;
1054
+ parentId?: string | undefined;
1055
+ }, {
1056
+ projectId: string;
1057
+ title: string;
1058
+ status?: string | undefined;
1059
+ priority?: string | undefined;
1060
+ description?: string | undefined;
1061
+ semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
1062
+ taskType?: string | undefined;
1063
+ assigneeId?: string | undefined;
1064
+ assignees?: {
1065
+ id: string;
1066
+ name?: string | undefined;
1067
+ type?: "user" | "agent" | "team" | undefined;
1068
+ role?: string | undefined;
1069
+ avatarUrl?: string | undefined;
1070
+ }[] | undefined;
1071
+ reporterId?: string | undefined;
1072
+ reviewerId?: string | undefined;
1073
+ iterationId?: string | undefined;
1074
+ teamId?: string | undefined;
1075
+ containerId?: string | undefined;
1076
+ deliverableId?: string | undefined;
1077
+ plannedStartDate?: string | undefined;
1078
+ actualStartDate?: string | undefined;
1079
+ actualEndDate?: string | undefined;
1080
+ completedAt?: string | undefined;
1081
+ dueDate?: string | undefined;
1082
+ estimatedHours?: number | undefined;
1083
+ loggedHours?: number | undefined;
1084
+ actualHours?: number | undefined;
1085
+ billableHours?: number | undefined;
1086
+ estimatedDurationMinutes?: number | undefined;
1087
+ actualDurationMinutes?: number | undefined;
1088
+ billableDurationMinutes?: number | undefined;
1089
+ actualDurationSeconds?: number | undefined;
1090
+ inProgressSince?: string | null | undefined;
1091
+ blockedDurationSeconds?: number | undefined;
1092
+ blockedSince?: string | null | undefined;
1093
+ progress?: number | undefined;
1094
+ isBlocked?: boolean | undefined;
1095
+ blockedReason?: string | null | undefined;
1096
+ tags?: string[] | undefined;
1097
+ todos?: {
1098
+ completed: boolean;
1099
+ id: string;
1100
+ title: string;
1101
+ createdAt?: string | undefined;
1102
+ completedAt?: string | undefined;
1103
+ }[] | undefined;
1104
+ customFields?: Record<string, unknown> | undefined;
1105
+ parentId?: string | undefined;
1106
+ }>;
1107
+ export declare const UpdateTaskSchema: z.ZodObject<{
1108
+ title: z.ZodOptional<z.ZodString>;
1109
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1110
+ status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1111
+ semanticStatus: z.ZodOptional<z.ZodOptional<z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>>>;
1112
+ priority: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1113
+ taskType: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1114
+ assigneeId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1115
+ assignees: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1116
+ id: z.ZodString;
1117
+ name: z.ZodOptional<z.ZodString>;
1118
+ role: z.ZodOptional<z.ZodString>;
1119
+ type: z.ZodOptional<z.ZodEnum<["user", "agent", "team"]>>;
1120
+ avatarUrl: z.ZodOptional<z.ZodString>;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ id: string;
1123
+ name?: string | undefined;
1124
+ type?: "user" | "agent" | "team" | undefined;
1125
+ role?: string | undefined;
1126
+ avatarUrl?: string | undefined;
1127
+ }, {
1128
+ id: string;
1129
+ name?: string | undefined;
1130
+ type?: "user" | "agent" | "team" | undefined;
1131
+ role?: string | undefined;
1132
+ avatarUrl?: string | undefined;
1133
+ }>, "many">>>;
1134
+ reporterId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1135
+ reviewerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1136
+ iterationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1137
+ teamId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1138
+ containerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1139
+ deliverableId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1140
+ plannedStartDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1141
+ actualStartDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1142
+ actualEndDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1143
+ completedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1144
+ dueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1145
+ estimatedHours: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1146
+ loggedHours: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1147
+ actualHours: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1148
+ billableHours: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1149
+ estimatedDurationMinutes: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1150
+ actualDurationMinutes: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1151
+ billableDurationMinutes: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1152
+ actualDurationSeconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1153
+ inProgressSince: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1154
+ blockedDurationSeconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1155
+ blockedSince: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1156
+ progress: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1157
+ isBlocked: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1158
+ blockedReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1159
+ tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1160
+ todos: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1161
+ id: z.ZodString;
1162
+ title: z.ZodString;
1163
+ completed: z.ZodBoolean;
1164
+ createdAt: z.ZodOptional<z.ZodString>;
1165
+ completedAt: z.ZodOptional<z.ZodString>;
1166
+ }, "strip", z.ZodTypeAny, {
1167
+ completed: boolean;
1168
+ id: string;
1169
+ title: string;
1170
+ createdAt?: string | undefined;
1171
+ completedAt?: string | undefined;
1172
+ }, {
1173
+ completed: boolean;
1174
+ id: string;
1175
+ title: string;
1176
+ createdAt?: string | undefined;
1177
+ completedAt?: string | undefined;
1178
+ }>, "many">>>;
1179
+ customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1180
+ parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1181
+ } & {
1182
+ actorId: z.ZodOptional<z.ZodString>;
1183
+ actorName: z.ZodOptional<z.ZodString>;
1184
+ actorType: z.ZodOptional<z.ZodString>;
1185
+ actor: z.ZodOptional<z.ZodObject<{
1186
+ userId: z.ZodString;
1187
+ username: z.ZodOptional<z.ZodString>;
1188
+ actorType: z.ZodOptional<z.ZodString>;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ userId: string;
1191
+ username?: string | undefined;
1192
+ actorType?: string | undefined;
1193
+ }, {
1194
+ userId: string;
1195
+ username?: string | undefined;
1196
+ actorType?: string | undefined;
1197
+ }>>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ status?: string | undefined;
1200
+ priority?: string | undefined;
1201
+ title?: string | undefined;
1202
+ description?: string | undefined;
1203
+ semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
1204
+ taskType?: string | undefined;
1205
+ assigneeId?: string | undefined;
1206
+ assignees?: {
1207
+ id: string;
1208
+ name?: string | undefined;
1209
+ type?: "user" | "agent" | "team" | undefined;
1210
+ role?: string | undefined;
1211
+ avatarUrl?: string | undefined;
1212
+ }[] | undefined;
1213
+ reporterId?: string | undefined;
1214
+ reviewerId?: string | undefined;
1215
+ iterationId?: string | undefined;
1216
+ teamId?: string | undefined;
1217
+ containerId?: string | undefined;
1218
+ deliverableId?: string | undefined;
1219
+ plannedStartDate?: string | undefined;
1220
+ actualStartDate?: string | undefined;
1221
+ actualEndDate?: string | undefined;
1222
+ completedAt?: string | undefined;
1223
+ dueDate?: string | undefined;
1224
+ estimatedHours?: number | undefined;
1225
+ loggedHours?: number | undefined;
1226
+ actualHours?: number | undefined;
1227
+ billableHours?: number | undefined;
1228
+ estimatedDurationMinutes?: number | undefined;
1229
+ actualDurationMinutes?: number | undefined;
1230
+ billableDurationMinutes?: number | undefined;
1231
+ actualDurationSeconds?: number | undefined;
1232
+ inProgressSince?: string | null | undefined;
1233
+ blockedDurationSeconds?: number | undefined;
1234
+ blockedSince?: string | null | undefined;
1235
+ progress?: number | undefined;
1236
+ isBlocked?: boolean | undefined;
1237
+ blockedReason?: string | null | undefined;
1238
+ tags?: string[] | undefined;
1239
+ todos?: {
1240
+ completed: boolean;
1241
+ id: string;
1242
+ title: string;
1243
+ createdAt?: string | undefined;
1244
+ completedAt?: string | undefined;
1245
+ }[] | undefined;
1246
+ customFields?: Record<string, unknown> | undefined;
1247
+ parentId?: string | undefined;
1248
+ actorId?: string | undefined;
1249
+ actorName?: string | undefined;
1250
+ actor?: {
1251
+ userId: string;
1252
+ username?: string | undefined;
1253
+ actorType?: string | undefined;
1254
+ } | undefined;
1255
+ actorType?: string | undefined;
1256
+ }, {
1257
+ status?: string | undefined;
1258
+ priority?: string | undefined;
1259
+ title?: string | undefined;
1260
+ description?: string | undefined;
1261
+ semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
1262
+ taskType?: string | undefined;
1263
+ assigneeId?: string | undefined;
1264
+ assignees?: {
1265
+ id: string;
1266
+ name?: string | undefined;
1267
+ type?: "user" | "agent" | "team" | undefined;
1268
+ role?: string | undefined;
1269
+ avatarUrl?: string | undefined;
1270
+ }[] | undefined;
1271
+ reporterId?: string | undefined;
1272
+ reviewerId?: string | undefined;
1273
+ iterationId?: string | undefined;
1274
+ teamId?: string | undefined;
1275
+ containerId?: string | undefined;
1276
+ deliverableId?: string | undefined;
1277
+ plannedStartDate?: string | undefined;
1278
+ actualStartDate?: string | undefined;
1279
+ actualEndDate?: string | undefined;
1280
+ completedAt?: string | undefined;
1281
+ dueDate?: string | undefined;
1282
+ estimatedHours?: number | undefined;
1283
+ loggedHours?: number | undefined;
1284
+ actualHours?: number | undefined;
1285
+ billableHours?: number | undefined;
1286
+ estimatedDurationMinutes?: number | undefined;
1287
+ actualDurationMinutes?: number | undefined;
1288
+ billableDurationMinutes?: number | undefined;
1289
+ actualDurationSeconds?: number | undefined;
1290
+ inProgressSince?: string | null | undefined;
1291
+ blockedDurationSeconds?: number | undefined;
1292
+ blockedSince?: string | null | undefined;
1293
+ progress?: number | undefined;
1294
+ isBlocked?: boolean | undefined;
1295
+ blockedReason?: string | null | undefined;
1296
+ tags?: string[] | undefined;
1297
+ todos?: {
1298
+ completed: boolean;
1299
+ id: string;
1300
+ title: string;
1301
+ createdAt?: string | undefined;
1302
+ completedAt?: string | undefined;
1303
+ }[] | undefined;
1304
+ customFields?: Record<string, unknown> | undefined;
1305
+ parentId?: string | undefined;
1306
+ actorId?: string | undefined;
1307
+ actorName?: string | undefined;
1308
+ actor?: {
1309
+ userId: string;
1310
+ username?: string | undefined;
1311
+ actorType?: string | undefined;
1312
+ } | undefined;
1313
+ actorType?: string | undefined;
1314
+ }>;
1315
+ export declare const CreateDependencySchema: z.ZodObject<{
1316
+ dependsOnTaskId: z.ZodString;
1317
+ type: z.ZodDefault<z.ZodEnum<["blocking", "blocked_by", "relates_to"]>>;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ type: "blocking" | "blocked_by" | "relates_to";
1320
+ dependsOnTaskId: string;
1321
+ }, {
1322
+ dependsOnTaskId: string;
1323
+ type?: "blocking" | "blocked_by" | "relates_to" | undefined;
1324
+ }>;
1325
+ export declare const CreateDeliverableSchema: z.ZodObject<{
1326
+ title: z.ZodString;
1327
+ description: z.ZodOptional<z.ZodString>;
1328
+ status: z.ZodOptional<z.ZodString>;
1329
+ format: z.ZodOptional<z.ZodString>;
1330
+ specs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1331
+ leadId: z.ZodOptional<z.ZodString>;
1332
+ reviewerId: z.ZodOptional<z.ZodString>;
1333
+ dueDate: z.ZodOptional<z.ZodString>;
1334
+ deliveredAt: z.ZodOptional<z.ZodString>;
1335
+ outputUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1336
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1337
+ projectId: z.ZodString;
1338
+ }, "strip", z.ZodTypeAny, {
1339
+ projectId: string;
1340
+ title: string;
1341
+ status?: string | undefined;
1342
+ description?: string | undefined;
1343
+ reviewerId?: string | undefined;
1344
+ dueDate?: string | undefined;
1345
+ customFields?: Record<string, unknown> | undefined;
1346
+ format?: string | undefined;
1347
+ specs?: Record<string, unknown> | undefined;
1348
+ leadId?: string | undefined;
1349
+ deliveredAt?: string | undefined;
1350
+ outputUrls?: string[] | undefined;
1351
+ }, {
1352
+ projectId: string;
1353
+ title: string;
1354
+ status?: string | undefined;
1355
+ description?: string | undefined;
1356
+ reviewerId?: string | undefined;
1357
+ dueDate?: string | undefined;
1358
+ customFields?: Record<string, unknown> | undefined;
1359
+ format?: string | undefined;
1360
+ specs?: Record<string, unknown> | undefined;
1361
+ leadId?: string | undefined;
1362
+ deliveredAt?: string | undefined;
1363
+ outputUrls?: string[] | undefined;
1364
+ }>;
1365
+ export declare const UpdateDeliverableSchema: z.ZodObject<{
1366
+ title: z.ZodOptional<z.ZodString>;
1367
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1368
+ status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1369
+ format: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1370
+ specs: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1371
+ leadId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1372
+ reviewerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1373
+ dueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1374
+ deliveredAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1375
+ outputUrls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1376
+ customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1377
+ }, "strip", z.ZodTypeAny, {
1378
+ status?: string | undefined;
1379
+ title?: string | undefined;
1380
+ description?: string | undefined;
1381
+ reviewerId?: string | undefined;
1382
+ dueDate?: string | undefined;
1383
+ customFields?: Record<string, unknown> | undefined;
1384
+ format?: string | undefined;
1385
+ specs?: Record<string, unknown> | undefined;
1386
+ leadId?: string | undefined;
1387
+ deliveredAt?: string | undefined;
1388
+ outputUrls?: string[] | undefined;
1389
+ }, {
1390
+ status?: string | undefined;
1391
+ title?: string | undefined;
1392
+ description?: string | undefined;
1393
+ reviewerId?: string | undefined;
1394
+ dueDate?: string | undefined;
1395
+ customFields?: Record<string, unknown> | undefined;
1396
+ format?: string | undefined;
1397
+ specs?: Record<string, unknown> | undefined;
1398
+ leadId?: string | undefined;
1399
+ deliveredAt?: string | undefined;
1400
+ outputUrls?: string[] | undefined;
1401
+ }>;
1402
+ export declare const CreateTeamSchema: z.ZodObject<{
1403
+ name: z.ZodString;
1404
+ description: z.ZodOptional<z.ZodString>;
1405
+ leaderId: z.ZodOptional<z.ZodString>;
1406
+ memberIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1407
+ weeklyCapacityHours: z.ZodOptional<z.ZodNumber>;
1408
+ schedule: z.ZodOptional<z.ZodObject<{
1409
+ id: z.ZodOptional<z.ZodString>;
1410
+ name: z.ZodOptional<z.ZodString>;
1411
+ timezone: z.ZodOptional<z.ZodString>;
1412
+ defaultHoursPerDay: z.ZodOptional<z.ZodNumber>;
1413
+ days: z.ZodArray<z.ZodObject<{
1414
+ dayOfWeek: z.ZodNumber;
1415
+ isWorkingDay: z.ZodBoolean;
1416
+ hours: z.ZodOptional<z.ZodArray<z.ZodObject<{
1417
+ start: z.ZodString;
1418
+ end: z.ZodString;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ start: string;
1421
+ end: string;
1422
+ }, {
1423
+ start: string;
1424
+ end: string;
1425
+ }>, "many">>;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ isWorkingDay: boolean;
1428
+ dayOfWeek: number;
1429
+ hours?: {
1430
+ start: string;
1431
+ end: string;
1432
+ }[] | undefined;
1433
+ }, {
1434
+ isWorkingDay: boolean;
1435
+ dayOfWeek: number;
1436
+ hours?: {
1437
+ start: string;
1438
+ end: string;
1439
+ }[] | undefined;
1440
+ }>, "many">;
1441
+ holidays: z.ZodOptional<z.ZodArray<z.ZodObject<{
1442
+ date: z.ZodString;
1443
+ name: z.ZodOptional<z.ZodString>;
1444
+ halfDay: z.ZodOptional<z.ZodBoolean>;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ date: string;
1447
+ name?: string | undefined;
1448
+ halfDay?: boolean | undefined;
1449
+ }, {
1450
+ date: string;
1451
+ name?: string | undefined;
1452
+ halfDay?: boolean | undefined;
1453
+ }>, "many">>;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ days: {
1456
+ isWorkingDay: boolean;
1457
+ dayOfWeek: number;
1458
+ hours?: {
1459
+ start: string;
1460
+ end: string;
1461
+ }[] | undefined;
1462
+ }[];
1463
+ id?: string | undefined;
1464
+ name?: string | undefined;
1465
+ defaultHoursPerDay?: number | undefined;
1466
+ timezone?: string | undefined;
1467
+ holidays?: {
1468
+ date: string;
1469
+ name?: string | undefined;
1470
+ halfDay?: boolean | undefined;
1471
+ }[] | undefined;
1472
+ }, {
1473
+ days: {
1474
+ isWorkingDay: boolean;
1475
+ dayOfWeek: number;
1476
+ hours?: {
1477
+ start: string;
1478
+ end: string;
1479
+ }[] | undefined;
1480
+ }[];
1481
+ id?: string | undefined;
1482
+ name?: string | undefined;
1483
+ defaultHoursPerDay?: number | undefined;
1484
+ timezone?: string | undefined;
1485
+ holidays?: {
1486
+ date: string;
1487
+ name?: string | undefined;
1488
+ halfDay?: boolean | undefined;
1489
+ }[] | undefined;
1490
+ }>>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ name: string;
1493
+ memberIds: string[];
1494
+ description?: string | undefined;
1495
+ schedule?: {
1496
+ days: {
1497
+ isWorkingDay: boolean;
1498
+ dayOfWeek: number;
1499
+ hours?: {
1500
+ start: string;
1501
+ end: string;
1502
+ }[] | undefined;
1503
+ }[];
1504
+ id?: string | undefined;
1505
+ name?: string | undefined;
1506
+ defaultHoursPerDay?: number | undefined;
1507
+ timezone?: string | undefined;
1508
+ holidays?: {
1509
+ date: string;
1510
+ name?: string | undefined;
1511
+ halfDay?: boolean | undefined;
1512
+ }[] | undefined;
1513
+ } | undefined;
1514
+ leaderId?: string | undefined;
1515
+ weeklyCapacityHours?: number | undefined;
1516
+ }, {
1517
+ name: string;
1518
+ description?: string | undefined;
1519
+ schedule?: {
1520
+ days: {
1521
+ isWorkingDay: boolean;
1522
+ dayOfWeek: number;
1523
+ hours?: {
1524
+ start: string;
1525
+ end: string;
1526
+ }[] | undefined;
1527
+ }[];
1528
+ id?: string | undefined;
1529
+ name?: string | undefined;
1530
+ defaultHoursPerDay?: number | undefined;
1531
+ timezone?: string | undefined;
1532
+ holidays?: {
1533
+ date: string;
1534
+ name?: string | undefined;
1535
+ halfDay?: boolean | undefined;
1536
+ }[] | undefined;
1537
+ } | undefined;
1538
+ leaderId?: string | undefined;
1539
+ memberIds?: string[] | undefined;
1540
+ weeklyCapacityHours?: number | undefined;
1541
+ }>;
1542
+ export declare const UpdateTeamSchema: z.ZodObject<{
1543
+ name: z.ZodOptional<z.ZodString>;
1544
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1545
+ leaderId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1546
+ memberIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1547
+ weeklyCapacityHours: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1548
+ schedule: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1549
+ id: z.ZodOptional<z.ZodString>;
1550
+ name: z.ZodOptional<z.ZodString>;
1551
+ timezone: z.ZodOptional<z.ZodString>;
1552
+ defaultHoursPerDay: z.ZodOptional<z.ZodNumber>;
1553
+ days: z.ZodArray<z.ZodObject<{
1554
+ dayOfWeek: z.ZodNumber;
1555
+ isWorkingDay: z.ZodBoolean;
1556
+ hours: z.ZodOptional<z.ZodArray<z.ZodObject<{
1557
+ start: z.ZodString;
1558
+ end: z.ZodString;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ start: string;
1561
+ end: string;
1562
+ }, {
1563
+ start: string;
1564
+ end: string;
1565
+ }>, "many">>;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ isWorkingDay: boolean;
1568
+ dayOfWeek: number;
1569
+ hours?: {
1570
+ start: string;
1571
+ end: string;
1572
+ }[] | undefined;
1573
+ }, {
1574
+ isWorkingDay: boolean;
1575
+ dayOfWeek: number;
1576
+ hours?: {
1577
+ start: string;
1578
+ end: string;
1579
+ }[] | undefined;
1580
+ }>, "many">;
1581
+ holidays: z.ZodOptional<z.ZodArray<z.ZodObject<{
1582
+ date: z.ZodString;
1583
+ name: z.ZodOptional<z.ZodString>;
1584
+ halfDay: z.ZodOptional<z.ZodBoolean>;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ date: string;
1587
+ name?: string | undefined;
1588
+ halfDay?: boolean | undefined;
1589
+ }, {
1590
+ date: string;
1591
+ name?: string | undefined;
1592
+ halfDay?: boolean | undefined;
1593
+ }>, "many">>;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ days: {
1596
+ isWorkingDay: boolean;
1597
+ dayOfWeek: number;
1598
+ hours?: {
1599
+ start: string;
1600
+ end: string;
1601
+ }[] | undefined;
1602
+ }[];
1603
+ id?: string | undefined;
1604
+ name?: string | undefined;
1605
+ defaultHoursPerDay?: number | undefined;
1606
+ timezone?: string | undefined;
1607
+ holidays?: {
1608
+ date: string;
1609
+ name?: string | undefined;
1610
+ halfDay?: boolean | undefined;
1611
+ }[] | undefined;
1612
+ }, {
1613
+ days: {
1614
+ isWorkingDay: boolean;
1615
+ dayOfWeek: number;
1616
+ hours?: {
1617
+ start: string;
1618
+ end: string;
1619
+ }[] | undefined;
1620
+ }[];
1621
+ id?: string | undefined;
1622
+ name?: string | undefined;
1623
+ defaultHoursPerDay?: number | undefined;
1624
+ timezone?: string | undefined;
1625
+ holidays?: {
1626
+ date: string;
1627
+ name?: string | undefined;
1628
+ halfDay?: boolean | undefined;
1629
+ }[] | undefined;
1630
+ }>>>;
1631
+ }, "strip", z.ZodTypeAny, {
1632
+ description?: string | undefined;
1633
+ name?: string | undefined;
1634
+ schedule?: {
1635
+ days: {
1636
+ isWorkingDay: boolean;
1637
+ dayOfWeek: number;
1638
+ hours?: {
1639
+ start: string;
1640
+ end: string;
1641
+ }[] | undefined;
1642
+ }[];
1643
+ id?: string | undefined;
1644
+ name?: string | undefined;
1645
+ defaultHoursPerDay?: number | undefined;
1646
+ timezone?: string | undefined;
1647
+ holidays?: {
1648
+ date: string;
1649
+ name?: string | undefined;
1650
+ halfDay?: boolean | undefined;
1651
+ }[] | undefined;
1652
+ } | undefined;
1653
+ leaderId?: string | undefined;
1654
+ memberIds?: string[] | undefined;
1655
+ weeklyCapacityHours?: number | undefined;
1656
+ }, {
1657
+ description?: string | undefined;
1658
+ name?: string | undefined;
1659
+ schedule?: {
1660
+ days: {
1661
+ isWorkingDay: boolean;
1662
+ dayOfWeek: number;
1663
+ hours?: {
1664
+ start: string;
1665
+ end: string;
1666
+ }[] | undefined;
1667
+ }[];
1668
+ id?: string | undefined;
1669
+ name?: string | undefined;
1670
+ defaultHoursPerDay?: number | undefined;
1671
+ timezone?: string | undefined;
1672
+ holidays?: {
1673
+ date: string;
1674
+ name?: string | undefined;
1675
+ halfDay?: boolean | undefined;
1676
+ }[] | undefined;
1677
+ } | undefined;
1678
+ leaderId?: string | undefined;
1679
+ memberIds?: string[] | undefined;
1680
+ weeklyCapacityHours?: number | undefined;
1681
+ }>;
1682
+ export declare const CreateContainerSchema: z.ZodObject<{
1683
+ name: z.ZodString;
1684
+ description: z.ZodOptional<z.ZodString>;
1685
+ parentId: z.ZodOptional<z.ZodString>;
1686
+ type: z.ZodOptional<z.ZodString>;
1687
+ color: z.ZodOptional<z.ZodString>;
1688
+ projectId: z.ZodString;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ projectId: string;
1691
+ name: string;
1692
+ description?: string | undefined;
1693
+ parentId?: string | undefined;
1694
+ type?: string | undefined;
1695
+ color?: string | undefined;
1696
+ }, {
1697
+ projectId: string;
1698
+ name: string;
1699
+ description?: string | undefined;
1700
+ parentId?: string | undefined;
1701
+ type?: string | undefined;
1702
+ color?: string | undefined;
1703
+ }>;
1704
+ export declare const UpdateContainerSchema: z.ZodObject<{
1705
+ name: z.ZodOptional<z.ZodString>;
1706
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1707
+ parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1708
+ type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1709
+ color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1710
+ }, "strip", z.ZodTypeAny, {
1711
+ description?: string | undefined;
1712
+ parentId?: string | undefined;
1713
+ name?: string | undefined;
1714
+ type?: string | undefined;
1715
+ color?: string | undefined;
1716
+ }, {
1717
+ description?: string | undefined;
1718
+ parentId?: string | undefined;
1719
+ name?: string | undefined;
1720
+ type?: string | undefined;
1721
+ color?: string | undefined;
1722
+ }>;
1723
+ export declare const CreateIterationSchema: z.ZodObject<{
1724
+ name: z.ZodString;
1725
+ goal: z.ZodOptional<z.ZodString>;
1726
+ type: z.ZodOptional<z.ZodString>;
1727
+ startDate: z.ZodOptional<z.ZodString>;
1728
+ endDate: z.ZodOptional<z.ZodString>;
1729
+ status: z.ZodDefault<z.ZodEnum<["planning", "active", "completed"]>>;
1730
+ projectId: z.ZodString;
1731
+ }, "strip", z.ZodTypeAny, {
1732
+ status: "completed" | "planning" | "active";
1733
+ projectId: string;
1734
+ name: string;
1735
+ startDate?: string | undefined;
1736
+ type?: string | undefined;
1737
+ goal?: string | undefined;
1738
+ endDate?: string | undefined;
1739
+ }, {
1740
+ projectId: string;
1741
+ name: string;
1742
+ status?: "completed" | "planning" | "active" | undefined;
1743
+ startDate?: string | undefined;
1744
+ type?: string | undefined;
1745
+ goal?: string | undefined;
1746
+ endDate?: string | undefined;
1747
+ }>;
1748
+ export declare const UpdateIterationSchema: z.ZodObject<{
1749
+ status: z.ZodOptional<z.ZodEnum<["planning", "active", "completed"]>>;
1750
+ name: z.ZodOptional<z.ZodString>;
1751
+ goal: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1752
+ type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1753
+ startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1754
+ endDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1755
+ }, "strip", z.ZodTypeAny, {
1756
+ status?: "completed" | "planning" | "active" | undefined;
1757
+ name?: string | undefined;
1758
+ startDate?: string | undefined;
1759
+ type?: string | undefined;
1760
+ goal?: string | undefined;
1761
+ endDate?: string | undefined;
1762
+ }, {
1763
+ status?: "completed" | "planning" | "active" | undefined;
1764
+ name?: string | undefined;
1765
+ startDate?: string | undefined;
1766
+ type?: string | undefined;
1767
+ goal?: string | undefined;
1768
+ endDate?: string | undefined;
1769
+ }>;
1770
+ export declare const CreateCommentSchema: z.ZodObject<{
1771
+ taskId: z.ZodString;
1772
+ /** Required unless the server resolves the caller, in which case it is replaced. */
1773
+ authorId: z.ZodOptional<z.ZodString>;
1774
+ authorType: z.ZodOptional<z.ZodEnum<["user", "agent", "system"]>>;
1775
+ parentId: z.ZodOptional<z.ZodString>;
1776
+ content: z.ZodString;
1777
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1778
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1779
+ }, "strip", z.ZodTypeAny, {
1780
+ taskId: string;
1781
+ content: string;
1782
+ parentId?: string | undefined;
1783
+ metadata?: Record<string, unknown> | undefined;
1784
+ authorId?: string | undefined;
1785
+ authorType?: "user" | "agent" | "system" | undefined;
1786
+ mentions?: string[] | undefined;
1787
+ }, {
1788
+ taskId: string;
1789
+ content: string;
1790
+ parentId?: string | undefined;
1791
+ metadata?: Record<string, unknown> | undefined;
1792
+ authorId?: string | undefined;
1793
+ authorType?: "user" | "agent" | "system" | undefined;
1794
+ mentions?: string[] | undefined;
1795
+ }>;
1796
+ export declare const UpdateCommentSchema: z.ZodObject<{
1797
+ content: z.ZodOptional<z.ZodString>;
1798
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1799
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1800
+ }, "strip", z.ZodTypeAny, {
1801
+ metadata?: Record<string, unknown> | undefined;
1802
+ content?: string | undefined;
1803
+ mentions?: string[] | undefined;
1804
+ }, {
1805
+ metadata?: Record<string, unknown> | undefined;
1806
+ content?: string | undefined;
1807
+ mentions?: string[] | undefined;
1808
+ }>;
1809
+ export declare const CommentReactionSchema: z.ZodObject<{
1810
+ emoji: z.ZodString;
1811
+ /** Required unless the server resolves the caller, in which case it is replaced. */
1812
+ userId: z.ZodOptional<z.ZodString>;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ emoji: string;
1815
+ userId?: string | undefined;
1816
+ }, {
1817
+ emoji: string;
1818
+ userId?: string | undefined;
1819
+ }>;
1820
+ export declare const CreateAttachmentSchema: z.ZodObject<{
1821
+ filename: z.ZodString;
1822
+ mimeType: z.ZodDefault<z.ZodString>;
1823
+ sizeBytes: z.ZodDefault<z.ZodNumber>;
1824
+ url: z.ZodString;
1825
+ storageKey: z.ZodOptional<z.ZodString>;
1826
+ taskId: z.ZodOptional<z.ZodString>;
1827
+ projectId: z.ZodOptional<z.ZodString>;
1828
+ commentId: z.ZodOptional<z.ZodString>;
1829
+ /** Required unless the server resolves the caller, in which case it is replaced. */
1830
+ uploaderId: z.ZodOptional<z.ZodString>;
1831
+ uploaderType: z.ZodOptional<z.ZodEnum<["user", "agent", "system"]>>;
1832
+ artifactType: z.ZodOptional<z.ZodEnum<["plan", "spec", "deliverable", "review", "general"]>>;
1833
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ filename: string;
1836
+ mimeType: string;
1837
+ sizeBytes: number;
1838
+ url: string;
1839
+ projectId?: string | undefined;
1840
+ taskId?: string | undefined;
1841
+ commentId?: string | undefined;
1842
+ uploaderId?: string | undefined;
1843
+ uploaderType?: "user" | "agent" | "system" | undefined;
1844
+ storageKey?: string | undefined;
1845
+ artifactType?: "plan" | "spec" | "deliverable" | "review" | "general" | undefined;
1846
+ metadata?: Record<string, unknown> | undefined;
1847
+ }, {
1848
+ filename: string;
1849
+ url: string;
1850
+ projectId?: string | undefined;
1851
+ taskId?: string | undefined;
1852
+ commentId?: string | undefined;
1853
+ uploaderId?: string | undefined;
1854
+ uploaderType?: "user" | "agent" | "system" | undefined;
1855
+ mimeType?: string | undefined;
1856
+ sizeBytes?: number | undefined;
1857
+ storageKey?: string | undefined;
1858
+ artifactType?: "plan" | "spec" | "deliverable" | "review" | "general" | undefined;
1859
+ metadata?: Record<string, unknown> | undefined;
1860
+ }>;
1861
+ export declare const UploadAttachmentSchema: z.ZodObject<{
1862
+ filename: z.ZodString;
1863
+ data: z.ZodString;
1864
+ mimeType: z.ZodOptional<z.ZodString>;
1865
+ pathPrefix: z.ZodOptional<z.ZodString>;
1866
+ encoding: z.ZodOptional<z.ZodEnum<["base64", "utf-8", "binary"]>>;
1867
+ taskId: z.ZodOptional<z.ZodString>;
1868
+ projectId: z.ZodOptional<z.ZodString>;
1869
+ commentId: z.ZodOptional<z.ZodString>;
1870
+ /** Required unless the server resolves the caller, in which case it is replaced. */
1871
+ uploaderId: z.ZodOptional<z.ZodString>;
1872
+ uploaderType: z.ZodOptional<z.ZodEnum<["user", "agent", "system"]>>;
1873
+ artifactType: z.ZodOptional<z.ZodEnum<["plan", "spec", "deliverable", "review", "general"]>>;
1874
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ filename: string;
1877
+ data: string;
1878
+ projectId?: string | undefined;
1879
+ taskId?: string | undefined;
1880
+ commentId?: string | undefined;
1881
+ uploaderId?: string | undefined;
1882
+ uploaderType?: "user" | "agent" | "system" | undefined;
1883
+ mimeType?: string | undefined;
1884
+ artifactType?: "plan" | "spec" | "deliverable" | "review" | "general" | undefined;
1885
+ metadata?: Record<string, unknown> | undefined;
1886
+ pathPrefix?: string | undefined;
1887
+ encoding?: "base64" | "utf-8" | "binary" | undefined;
1888
+ }, {
1889
+ filename: string;
1890
+ data: string;
1891
+ projectId?: string | undefined;
1892
+ taskId?: string | undefined;
1893
+ commentId?: string | undefined;
1894
+ uploaderId?: string | undefined;
1895
+ uploaderType?: "user" | "agent" | "system" | undefined;
1896
+ mimeType?: string | undefined;
1897
+ artifactType?: "plan" | "spec" | "deliverable" | "review" | "general" | undefined;
1898
+ metadata?: Record<string, unknown> | undefined;
1899
+ pathPrefix?: string | undefined;
1900
+ encoding?: "base64" | "utf-8" | "binary" | undefined;
1901
+ }>;
1902
+ export declare const PresignAttachmentSchema: z.ZodObject<{
1903
+ storageKey: z.ZodString;
1904
+ expiresInSeconds: z.ZodOptional<z.ZodNumber>;
1905
+ contentType: z.ZodOptional<z.ZodString>;
1906
+ }, "strip", z.ZodTypeAny, {
1907
+ storageKey: string;
1908
+ contentType?: string | undefined;
1909
+ expiresInSeconds?: number | undefined;
1910
+ }, {
1911
+ storageKey: string;
1912
+ contentType?: string | undefined;
1913
+ expiresInSeconds?: number | undefined;
1914
+ }>;
1915
+ export declare const LogTimeSchema: z.ZodObject<{
1916
+ taskId: z.ZodString;
1917
+ hours: z.ZodNumber;
1918
+ isBillable: z.ZodOptional<z.ZodBoolean>;
1919
+ description: z.ZodOptional<z.ZodString>;
1920
+ userId: z.ZodOptional<z.ZodString>;
1921
+ loggedAt: z.ZodOptional<z.ZodString>;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ taskId: string;
1924
+ hours: number;
1925
+ description?: string | undefined;
1926
+ loggedAt?: string | undefined;
1927
+ userId?: string | undefined;
1928
+ isBillable?: boolean | undefined;
1929
+ }, {
1930
+ taskId: string;
1931
+ hours: number;
1932
+ description?: string | undefined;
1933
+ loggedAt?: string | undefined;
1934
+ userId?: string | undefined;
1935
+ isBillable?: boolean | undefined;
1936
+ }>;
1937
+ export type CreateTaskPayload = z.infer<typeof CreateTaskSchema>;
1938
+ export type UpdateTaskPayload = z.infer<typeof UpdateTaskSchema>;
1939
+ export type CreateProjectPayload = z.infer<typeof CreateProjectSchema>;
1940
+ export type UpdateProjectPayload = z.infer<typeof UpdateProjectSchema>;
1941
+ //# sourceMappingURL=index.d.ts.map