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