@pxlabz/tasq-sdk 0.1.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,2152 @@
1
+ /**
2
+ * Response shapes for the read routes the client wraps.
3
+ *
4
+ * These are hand-declared rather than re-exported from `AppType`. Deriving
5
+ * them with `InferResponseType` typechecks, but neither tsup's `dts.resolve`
6
+ * nor `tsc --declaration` expands a type alias on emit: the published
7
+ * `.d.ts` kept a live `hono/client` import and a dangling `AppType`
8
+ * reference that no consumer can resolve, and some inferred members (the
9
+ * cycle `status` field) print as an absolute path into `apps/api`.
10
+ *
11
+ * So the shapes live here, and `types.equality.ts` asserts each one is
12
+ * structurally identical to what the route actually returns. A handler
13
+ * change breaks `bun run typecheck`, which is the drift guard the derived
14
+ * version was there to provide.
15
+ *
16
+ * All timestamps are ISO-8601 strings: this is the JSON-serialised form.
17
+ */
18
+ type WorkspaceRole = "owner" | "admin" | "member";
19
+ type WorkspaceSummary = {
20
+ id: string;
21
+ name: string;
22
+ slug: string;
23
+ role: WorkspaceRole;
24
+ joinedAt: string;
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ };
28
+ type WorkspaceDetail = {
29
+ id: string;
30
+ name: string;
31
+ slug: string;
32
+ role: WorkspaceRole;
33
+ createdAt: string;
34
+ updatedAt: string;
35
+ };
36
+ type MemberRef = {
37
+ memberId: string;
38
+ name: string | null;
39
+ email: string | null;
40
+ };
41
+ type PersonRef = {
42
+ id: string;
43
+ name: string | null;
44
+ email: string | null;
45
+ };
46
+ type TaskStatusRef = {
47
+ id: string;
48
+ name: string;
49
+ color: string;
50
+ category: string;
51
+ position: number;
52
+ };
53
+ type TaskLabelRef = {
54
+ id: string;
55
+ name: string;
56
+ color: string;
57
+ };
58
+ type TaskListItem = {
59
+ id: string;
60
+ identifier: string;
61
+ number: number;
62
+ title: string;
63
+ priority: string;
64
+ estimateValue: number | null;
65
+ estimateSettingsRevisionId: string | null;
66
+ sortOrder: number;
67
+ archivedAt: string | null;
68
+ createdAt: string;
69
+ updatedAt: string;
70
+ teamId: string;
71
+ teamIdentifier: string;
72
+ projectId: string | null;
73
+ milestoneId: string | null;
74
+ cycleId: string | null;
75
+ status: TaskStatusRef;
76
+ assignee: MemberRef | null;
77
+ labels: TaskLabelRef[];
78
+ };
79
+ type NamedRef = {
80
+ id: string;
81
+ name: string;
82
+ };
83
+ type TaskComment = {
84
+ id: string;
85
+ body: string;
86
+ createdAt: string;
87
+ updatedAt: string;
88
+ author: MemberRef | null;
89
+ };
90
+ type TaskActivityEntry = {
91
+ id: string;
92
+ action: string;
93
+ fieldChanged: string | null;
94
+ oldValue: string | null;
95
+ newValue: string | null;
96
+ createdAt: string;
97
+ actorType: "user" | "agent" | "system";
98
+ actor: MemberRef | null;
99
+ };
100
+ type EstimateScale = "fibonacci" | "linear";
101
+ type TaskEstimateEditing = {
102
+ enabled: true;
103
+ scale: EstimateScale;
104
+ values: number[];
105
+ revisionId: string;
106
+ epoch: string;
107
+ } | {
108
+ enabled: false;
109
+ };
110
+ /** A TipTap JSON document. Kept opaque so no editor types reach consumers. */
111
+ /** A JSON value carried by a description node attribute. */
112
+ type DescriptionAttrValue = string | number | boolean | null | DescriptionAttrValue[] | {
113
+ [key: string]: DescriptionAttrValue;
114
+ };
115
+ type DescriptionAttrs = {
116
+ [key: string]: DescriptionAttrValue;
117
+ };
118
+ type DescriptionMark = {
119
+ type: string;
120
+ attrs?: DescriptionAttrs;
121
+ };
122
+ type DescriptionNode = {
123
+ type?: string;
124
+ text?: string;
125
+ attrs?: DescriptionAttrs;
126
+ marks?: DescriptionMark[];
127
+ content?: DescriptionNode[];
128
+ };
129
+ type DescriptionDocumentJson = {
130
+ version: 1;
131
+ content: DescriptionNode;
132
+ };
133
+ type TaskDetail = TaskListItem & {
134
+ description: string | null;
135
+ descriptionDocument: DescriptionDocumentJson | null;
136
+ descriptionMarkdown: string | null;
137
+ estimateEditing: TaskEstimateEditing;
138
+ project: NamedRef | null;
139
+ milestone: NamedRef | null;
140
+ cycle: NamedRef | null;
141
+ comments: TaskComment[];
142
+ activityLog: TaskActivityEntry[];
143
+ };
144
+ type TaskCounts = {
145
+ backlog: number;
146
+ unstarted: number;
147
+ started: number;
148
+ completed: number;
149
+ cancelled: number;
150
+ total: number;
151
+ };
152
+ type EffortByTeam = {
153
+ teamId: string;
154
+ teamIdentifier: string;
155
+ mode: "count" | "effort";
156
+ scale: EstimateScale | null;
157
+ points: number;
158
+ unestimatedTasks: number;
159
+ };
160
+ type TeamRef = {
161
+ id: string;
162
+ name: string;
163
+ identifier: string;
164
+ };
165
+ type ProjectStatus = "backlog" | "planned" | "in_progress" | "completed" | "cancelled";
166
+ type ProjectListItem = {
167
+ id: string;
168
+ workspaceId: string;
169
+ name: string;
170
+ description: string | null;
171
+ status: ProjectStatus;
172
+ startDate: string | null;
173
+ targetDate: string | null;
174
+ leadId: string | null;
175
+ archivedAt: string | null;
176
+ createdAt: string;
177
+ updatedAt: string;
178
+ taskCounts: TaskCounts;
179
+ completionPercentage: number;
180
+ effortByTeam: EffortByTeam[];
181
+ teams: TeamRef[];
182
+ lead: PersonRef | null;
183
+ members: PersonRef[];
184
+ };
185
+ type ProjectMilestone = {
186
+ id: string;
187
+ name: string;
188
+ description: string | null;
189
+ targetDate: string | null;
190
+ position: number;
191
+ taskCounts: TaskCounts;
192
+ completionPercentage: number;
193
+ isCurrent: boolean;
194
+ effortByTeam: EffortByTeam[];
195
+ };
196
+ type ProjectDetail = ProjectListItem & {
197
+ milestones: ProjectMilestone[];
198
+ tasks: TaskListItem[];
199
+ };
200
+ type CycleState = "upcoming" | "active" | "completed";
201
+ type CycleListItem = {
202
+ id: string;
203
+ teamId: string;
204
+ teamIdentifier: string;
205
+ teamName: string;
206
+ name: string;
207
+ description: string | null;
208
+ startDate: string;
209
+ endDate: string;
210
+ dateConvention: "legacy" | "exclusive";
211
+ source: "legacy" | "generated" | "override";
212
+ cadenceRevisionId: string | null;
213
+ cadenceSequence: number | null;
214
+ cadenceTimezone: string | null;
215
+ status: CycleState;
216
+ state: CycleState;
217
+ legacyStatus: "upcoming" | "active" | "completed";
218
+ stateSource: "transition_markers" | "planned_dates";
219
+ startedAt: string | null;
220
+ contractFrozenAt: string | null;
221
+ closedAt: string | null;
222
+ reportMode: "count" | "effort";
223
+ reportEffectiveStartedAt: string;
224
+ reportingContractState: "frozen" | "derived" | "provisional";
225
+ estimateSettingsRevisionId: string | null;
226
+ estimateScale: EstimateScale | null;
227
+ estimateEpoch: string | null;
228
+ historyObservedSince: string;
229
+ historyComplete: boolean;
230
+ historyCoverage: {
231
+ level: "partial" | "complete";
232
+ observedSince: string;
233
+ };
234
+ taskCounts: TaskCounts;
235
+ completionPercentage: number;
236
+ effort?: {
237
+ readonly points: number;
238
+ readonly unestimatedTasks: number;
239
+ };
240
+ createdAt: string;
241
+ updatedAt: string;
242
+ };
243
+ type TeamListItem = {
244
+ id: string;
245
+ workspaceId: string;
246
+ name: string;
247
+ identifier: string;
248
+ memberCount: number;
249
+ createdAt: string;
250
+ updatedAt: string;
251
+ };
252
+ type StatusCategory = "backlog" | "unstarted" | "started" | "completed" | "cancelled";
253
+ type TeamStatus = {
254
+ id: string;
255
+ name: string;
256
+ color: string;
257
+ position: number;
258
+ category: StatusCategory;
259
+ };
260
+ /** `GET /workspaces/:slug/teams/:identifier` — the only read with statuses. */
261
+ type TeamDetail = {
262
+ id: string;
263
+ workspaceId: string;
264
+ name: string;
265
+ identifier: string;
266
+ createdAt: string;
267
+ updatedAt: string;
268
+ statuses: TeamStatus[];
269
+ };
270
+ type LabelListItem = {
271
+ id: string;
272
+ workspaceId: string;
273
+ name: string;
274
+ color: string;
275
+ createdAt: string;
276
+ updatedAt: string;
277
+ };
278
+ type AgentPolicyPresetName = "read_only" | "triage" | "full" | "custom";
279
+ type AgentPolicyDetail = {
280
+ policy: {
281
+ id: string;
282
+ version: number;
283
+ preset: AgentPolicyPresetName;
284
+ allowedActions: string[];
285
+ };
286
+ allowable: string[];
287
+ history: {
288
+ version: number;
289
+ preset: AgentPolicyPresetName;
290
+ createdAt: string;
291
+ createdByName: string | null;
292
+ }[];
293
+ };
294
+ type CurrentUser = {
295
+ id: string;
296
+ email: string;
297
+ name: string | null;
298
+ avatarUrl: string | null;
299
+ createdAt: string;
300
+ };
301
+ /** Filters accepted by `GET /workspaces/:slug/tasks`. */
302
+ type TaskListFilters = {
303
+ team?: string;
304
+ status?: string;
305
+ assignee?: string;
306
+ priority?: string;
307
+ project?: string;
308
+ cycle?: string;
309
+ q?: string;
310
+ includeArchived?: boolean;
311
+ };
312
+ /** Filters accepted by `GET /workspaces/:slug/cycles`. */
313
+ type CycleListFilters = {
314
+ team?: string;
315
+ };
316
+ /** `POST /auth/cli/verify-code` response. */
317
+ type CliTokenIssued = {
318
+ token: string;
319
+ expiresAt: string;
320
+ user: {
321
+ id: string;
322
+ email: string;
323
+ name: string | null;
324
+ };
325
+ };
326
+
327
+ /**
328
+ * GENERATED by `bun run generate:contracts` — do not edit by hand.
329
+ *
330
+ * The resolved public surface of `@tasq/contracts`. It is inlined here
331
+ * because contracts is private and cannot be published, and because following
332
+ * its types through `ACTION_SCHEMAS` would pull zod and TipTap into the
333
+ * bundle. `src/contracts.equality.ts` asserts these still match contracts.
334
+ */
335
+
336
+ /**
337
+ * Contracts keeps this helper unexported, so the printed `ActionInputMap`
338
+ * still refers to it by name. It is reproduced verbatim here.
339
+ */
340
+ type DatesAsInput<T> = {
341
+ [K in keyof T]: T[K] extends Date ? Date | string : T[K] extends Date | null ? Date | string | null : T[K] extends Date | null | undefined ? Date | string | null | undefined : T[K];
342
+ };
343
+ /** `POST /workspaces/:slug/actions` response for a given action. */
344
+ type DispatchResponse<TName extends ActionName> = {
345
+ result: ActionWireOutputMap[TName];
346
+ invalidates: Array<Array<string>>;
347
+ };
348
+ type ActionName = "task.create" | "task.assign" | "task.bulkSetCycle" | "task.move" | "task.setPriority" | "task.setEstimate" | "task.update" | "task.setProject" | "task.setCycle" | "task.setMilestone" | "task.addLabel" | "task.removeLabel" | "task.archive" | "task.unarchive" | "comment.add" | "project.create" | "project.update" | "project.archive" | "project.unarchive" | "project.addTeam" | "project.removeTeam" | "project.addMember" | "project.removeMember" | "project.setLead" | "milestone.create" | "milestone.update" | "milestone.delete" | "milestone.reorder" | "milestone.promote" | "cycle.create" | "cycle.update" | "status.create" | "status.update" | "status.reorder" | "status.delete" | "label.create" | "label.update" | "label.delete" | "team.cycleCadence.save" | "team.estimateSettings.save" | "team.cycleLifecycle.apply" | "agent.create" | "agent.setPolicy" | "agent.issueKey" | "agent.revokeKey" | "agent.pause" | "agent.resume" | "agent.remove";
349
+ type ActionInputMap = Omit<ActionParsedInputMap, "project.create" | "project.update" | "milestone.create" | "milestone.update" | "cycle.create" | "cycle.update"> & {
350
+ "project.create": DatesAsInput<{
351
+ name: string;
352
+ teamIds: string[];
353
+ description?: string | null | undefined;
354
+ status?: "backlog" | "planned" | "in_progress" | "completed" | "cancelled" | undefined;
355
+ startDate?: Date | null | undefined;
356
+ targetDate?: Date | null | undefined;
357
+ leadId?: string | null | undefined;
358
+ }>;
359
+ "project.update": DatesAsInput<{
360
+ projectId: string;
361
+ name?: string | undefined;
362
+ description?: string | null | undefined;
363
+ status?: "backlog" | "planned" | "in_progress" | "completed" | "cancelled" | undefined;
364
+ startDate?: Date | null | undefined;
365
+ targetDate?: Date | null | undefined;
366
+ leadId?: string | null | undefined;
367
+ }>;
368
+ "milestone.create": DatesAsInput<{
369
+ projectId: string;
370
+ name: string;
371
+ description?: string | null | undefined;
372
+ targetDate?: Date | null | undefined;
373
+ }>;
374
+ "milestone.update": DatesAsInput<{
375
+ milestoneId: string;
376
+ name?: string | undefined;
377
+ description?: string | null | undefined;
378
+ targetDate?: Date | null | undefined;
379
+ }>;
380
+ "cycle.create": DatesAsInput<{
381
+ teamIdentifier: string;
382
+ name: string;
383
+ startDate: Date;
384
+ endDate: Date;
385
+ description?: string | null | undefined;
386
+ }>;
387
+ "cycle.update": DatesAsInput<{
388
+ cycleId: string;
389
+ name?: string | undefined;
390
+ description?: string | null | undefined;
391
+ startDate?: Date | undefined;
392
+ endDate?: Date | undefined;
393
+ status?: "completed" | "upcoming" | "active" | undefined;
394
+ }>;
395
+ };
396
+ type ActionParsedInputMap = {
397
+ "task.create": {
398
+ teamIdentifier: string;
399
+ title: string;
400
+ description?: string | undefined;
401
+ descriptionDocument?: DescriptionDocumentJson | null | undefined;
402
+ descriptionMarkdown?: string | undefined;
403
+ priority?: "urgent" | "high" | "medium" | "low" | "none" | undefined;
404
+ estimateValue?: number | null | undefined;
405
+ assigneeId?: string | null | undefined;
406
+ projectId?: string | null | undefined;
407
+ cycleId?: string | null | undefined;
408
+ milestoneId?: string | null | undefined;
409
+ };
410
+ "task.assign": {
411
+ taskId: string;
412
+ assigneeId: string | null;
413
+ };
414
+ "task.bulkSetCycle": {
415
+ taskIds: string[];
416
+ cycleId: string | null;
417
+ };
418
+ "task.move": {
419
+ taskId: string;
420
+ statusId: string;
421
+ sortOrder?: number | undefined;
422
+ };
423
+ "task.setPriority": {
424
+ taskId: string;
425
+ priority: "urgent" | "high" | "medium" | "low" | "none";
426
+ };
427
+ "task.setEstimate": {
428
+ taskId: string;
429
+ estimateValue: number | null;
430
+ };
431
+ "task.update": {
432
+ taskId: string;
433
+ title?: string | undefined;
434
+ description?: string | null | undefined;
435
+ descriptionDocument?: DescriptionDocumentJson | null | undefined;
436
+ descriptionMarkdown?: string | undefined;
437
+ };
438
+ "task.setProject": {
439
+ taskId: string;
440
+ projectId: string | null;
441
+ };
442
+ "task.setCycle": {
443
+ taskId: string;
444
+ cycleId: string | null;
445
+ };
446
+ "task.setMilestone": {
447
+ taskId: string;
448
+ milestoneId: string | null;
449
+ };
450
+ "task.addLabel": {
451
+ taskId: string;
452
+ labelId: string;
453
+ };
454
+ "task.removeLabel": {
455
+ taskId: string;
456
+ labelId: string;
457
+ };
458
+ "task.archive": {
459
+ taskId: string;
460
+ };
461
+ "task.unarchive": {
462
+ taskId: string;
463
+ };
464
+ "comment.add": {
465
+ taskId: string;
466
+ body: string;
467
+ };
468
+ "project.create": {
469
+ name: string;
470
+ teamIds: string[];
471
+ description?: string | null | undefined;
472
+ status?: "backlog" | "planned" | "in_progress" | "completed" | "cancelled" | undefined;
473
+ startDate?: Date | null | undefined;
474
+ targetDate?: Date | null | undefined;
475
+ leadId?: string | null | undefined;
476
+ };
477
+ "project.update": {
478
+ projectId: string;
479
+ name?: string | undefined;
480
+ description?: string | null | undefined;
481
+ status?: "backlog" | "planned" | "in_progress" | "completed" | "cancelled" | undefined;
482
+ startDate?: Date | null | undefined;
483
+ targetDate?: Date | null | undefined;
484
+ leadId?: string | null | undefined;
485
+ };
486
+ "project.archive": {
487
+ projectId: string;
488
+ };
489
+ "project.unarchive": {
490
+ projectId: string;
491
+ };
492
+ "project.addTeam": {
493
+ projectId: string;
494
+ teamId: string;
495
+ };
496
+ "project.removeTeam": {
497
+ projectId: string;
498
+ teamId: string;
499
+ };
500
+ "project.addMember": {
501
+ projectId: string;
502
+ memberId: string;
503
+ };
504
+ "project.removeMember": {
505
+ projectId: string;
506
+ memberId: string;
507
+ };
508
+ "project.setLead": {
509
+ projectId: string;
510
+ leadId: string | null;
511
+ };
512
+ "milestone.create": {
513
+ projectId: string;
514
+ name: string;
515
+ description?: string | null | undefined;
516
+ targetDate?: Date | null | undefined;
517
+ };
518
+ "milestone.update": {
519
+ milestoneId: string;
520
+ name?: string | undefined;
521
+ description?: string | null | undefined;
522
+ targetDate?: Date | null | undefined;
523
+ };
524
+ "milestone.delete": {
525
+ milestoneId: string;
526
+ };
527
+ "milestone.reorder": {
528
+ projectId: string;
529
+ orderedIds: string[];
530
+ };
531
+ "milestone.promote": {
532
+ milestoneId: string;
533
+ };
534
+ "cycle.create": {
535
+ teamIdentifier: string;
536
+ name: string;
537
+ startDate: Date;
538
+ endDate: Date;
539
+ description?: string | null | undefined;
540
+ };
541
+ "cycle.update": {
542
+ cycleId: string;
543
+ name?: string | undefined;
544
+ description?: string | null | undefined;
545
+ startDate?: Date | undefined;
546
+ endDate?: Date | undefined;
547
+ status?: "completed" | "upcoming" | "active" | undefined;
548
+ };
549
+ "status.create": {
550
+ teamIdentifier: string;
551
+ name: string;
552
+ color: string;
553
+ category: "backlog" | "completed" | "cancelled" | "unstarted" | "started";
554
+ };
555
+ "status.update": {
556
+ statusId: string;
557
+ name?: string | undefined;
558
+ color?: string | undefined;
559
+ category?: "backlog" | "completed" | "cancelled" | "unstarted" | "started" | undefined;
560
+ };
561
+ "status.reorder": {
562
+ teamIdentifier: string;
563
+ orderedIds: string[];
564
+ };
565
+ "status.delete": {
566
+ statusId: string;
567
+ reassignToStatusId: string;
568
+ };
569
+ "label.create": {
570
+ name: string;
571
+ color: string;
572
+ };
573
+ "label.update": {
574
+ labelId: string;
575
+ name?: string | undefined;
576
+ color?: string | undefined;
577
+ };
578
+ "label.delete": {
579
+ labelId: string;
580
+ };
581
+ "team.cycleCadence.save": {
582
+ teamIdentifier: string;
583
+ } & {
584
+ timezone: string;
585
+ anchorDate: string;
586
+ startWeekday: number;
587
+ durationWeeks: number;
588
+ cooldownWeeks: number;
589
+ horizonCycles: number;
590
+ autoAssignStarted: boolean;
591
+ autoAssignCompleted: boolean;
592
+ };
593
+ "team.estimateSettings.save": {
594
+ teamIdentifier: string;
595
+ enabled: boolean;
596
+ scale: "fibonacci" | "linear";
597
+ };
598
+ "team.cycleLifecycle.apply": {
599
+ teamIdentifier: string;
600
+ operation: "activate" | "start_next" | "end_current" | "disable" | "reenable";
601
+ previewToken: string;
602
+ };
603
+ "agent.create": {
604
+ preset: "custom" | "read_only" | "triage" | "full";
605
+ name: string;
606
+ allowedActions?: string[] | undefined;
607
+ ownerMemberId?: string | undefined;
608
+ };
609
+ "agent.setPolicy": {
610
+ preset: "custom" | "read_only" | "triage" | "full";
611
+ agentId: string;
612
+ allowedActions?: string[] | undefined;
613
+ };
614
+ "agent.issueKey": {
615
+ agentId: string;
616
+ };
617
+ "agent.revokeKey": {
618
+ keyId: string;
619
+ };
620
+ "agent.pause": {
621
+ agentId: string;
622
+ };
623
+ "agent.resume": {
624
+ agentId: string;
625
+ };
626
+ "agent.remove": {
627
+ agentId: string;
628
+ };
629
+ };
630
+ type ActionWireOutputMap = {
631
+ "task.create": {
632
+ task: {
633
+ id: string;
634
+ teamId: string;
635
+ number: number;
636
+ title: string;
637
+ description: string | null;
638
+ descriptionDocument: {
639
+ version: 1;
640
+ content: {
641
+ [x: string]: any;
642
+ type?: string | undefined;
643
+ attrs?: {
644
+ [x: string]: any;
645
+ } | undefined;
646
+ content?: any[] | undefined;
647
+ marks?: {
648
+ [x: string]: any;
649
+ type: string;
650
+ attrs?: {
651
+ [x: string]: any;
652
+ } | undefined;
653
+ }[] | undefined;
654
+ text?: string | undefined;
655
+ };
656
+ } | null;
657
+ statusId: string;
658
+ priority: PriorityValue;
659
+ estimateValue: number | null;
660
+ estimateSettingsRevisionId: string | null;
661
+ assigneeId: string | null;
662
+ creatorId: string | null;
663
+ projectId: string | null;
664
+ cycleId: string | null;
665
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
666
+ milestoneId: string | null;
667
+ sortOrder: number;
668
+ archivedAt: string | null;
669
+ createdAt: string;
670
+ updatedAt: string;
671
+ };
672
+ effectiveAt: string;
673
+ identifier: string;
674
+ teamIdentifier: string;
675
+ statusCategory: StatusCategoryValue;
676
+ };
677
+ "task.assign": {
678
+ task: {
679
+ id: string;
680
+ teamId: string;
681
+ number: number;
682
+ title: string;
683
+ description: string | null;
684
+ descriptionDocument: {
685
+ version: 1;
686
+ content: {
687
+ [x: string]: any;
688
+ type?: string | undefined;
689
+ attrs?: {
690
+ [x: string]: any;
691
+ } | undefined;
692
+ content?: any[] | undefined;
693
+ marks?: {
694
+ [x: string]: any;
695
+ type: string;
696
+ attrs?: {
697
+ [x: string]: any;
698
+ } | undefined;
699
+ }[] | undefined;
700
+ text?: string | undefined;
701
+ };
702
+ } | null;
703
+ statusId: string;
704
+ priority: PriorityValue;
705
+ estimateValue: number | null;
706
+ estimateSettingsRevisionId: string | null;
707
+ assigneeId: string | null;
708
+ creatorId: string | null;
709
+ projectId: string | null;
710
+ cycleId: string | null;
711
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
712
+ milestoneId: string | null;
713
+ sortOrder: number;
714
+ archivedAt: string | null;
715
+ createdAt: string;
716
+ updatedAt: string;
717
+ };
718
+ previousAssigneeId: string | null;
719
+ };
720
+ "task.bulkSetCycle": {
721
+ placements: {
722
+ task: {
723
+ id: string;
724
+ teamId: string;
725
+ number: number;
726
+ title: string;
727
+ description: string | null;
728
+ descriptionDocument: {
729
+ version: 1;
730
+ content: {
731
+ [x: string]: any;
732
+ type?: string | undefined;
733
+ attrs?: {
734
+ [x: string]: any;
735
+ } | undefined;
736
+ content?: any[] | undefined;
737
+ marks?: {
738
+ [x: string]: any;
739
+ type: string;
740
+ attrs?: {
741
+ [x: string]: any;
742
+ } | undefined;
743
+ }[] | undefined;
744
+ text?: string | undefined;
745
+ };
746
+ } | null;
747
+ statusId: string;
748
+ priority: PriorityValue;
749
+ estimateValue: number | null;
750
+ estimateSettingsRevisionId: string | null;
751
+ assigneeId: string | null;
752
+ creatorId: string | null;
753
+ projectId: string | null;
754
+ cycleId: string | null;
755
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
756
+ milestoneId: string | null;
757
+ sortOrder: number;
758
+ archivedAt: string | null;
759
+ createdAt: string;
760
+ updatedAt: string;
761
+ };
762
+ effectiveAt: string;
763
+ previousCycleId: string | null;
764
+ previousCycleIdForHistory: string | null;
765
+ taskState: {
766
+ identifier: string;
767
+ statusCategory: StatusCategoryValue;
768
+ };
769
+ }[];
770
+ projectIds: string[];
771
+ };
772
+ "task.move": {
773
+ task: {
774
+ id: string;
775
+ teamId: string;
776
+ number: number;
777
+ title: string;
778
+ description: string | null;
779
+ descriptionDocument: {
780
+ version: 1;
781
+ content: {
782
+ [x: string]: any;
783
+ type?: string | undefined;
784
+ attrs?: {
785
+ [x: string]: any;
786
+ } | undefined;
787
+ content?: any[] | undefined;
788
+ marks?: {
789
+ [x: string]: any;
790
+ type: string;
791
+ attrs?: {
792
+ [x: string]: any;
793
+ } | undefined;
794
+ }[] | undefined;
795
+ text?: string | undefined;
796
+ };
797
+ } | null;
798
+ statusId: string;
799
+ priority: PriorityValue;
800
+ estimateValue: number | null;
801
+ estimateSettingsRevisionId: string | null;
802
+ assigneeId: string | null;
803
+ creatorId: string | null;
804
+ projectId: string | null;
805
+ cycleId: string | null;
806
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
807
+ milestoneId: string | null;
808
+ sortOrder: number;
809
+ archivedAt: string | null;
810
+ createdAt: string;
811
+ updatedAt: string;
812
+ };
813
+ effectiveAt: string;
814
+ previousStatusId: string;
815
+ previousStatusCategory: StatusCategoryValue;
816
+ statusCategory: StatusCategoryValue;
817
+ };
818
+ "task.setPriority": {
819
+ task: {
820
+ id: string;
821
+ teamId: string;
822
+ number: number;
823
+ title: string;
824
+ description: string | null;
825
+ descriptionDocument: {
826
+ version: 1;
827
+ content: {
828
+ [x: string]: any;
829
+ type?: string | undefined;
830
+ attrs?: {
831
+ [x: string]: any;
832
+ } | undefined;
833
+ content?: any[] | undefined;
834
+ marks?: {
835
+ [x: string]: any;
836
+ type: string;
837
+ attrs?: {
838
+ [x: string]: any;
839
+ } | undefined;
840
+ }[] | undefined;
841
+ text?: string | undefined;
842
+ };
843
+ } | null;
844
+ statusId: string;
845
+ priority: PriorityValue;
846
+ estimateValue: number | null;
847
+ estimateSettingsRevisionId: string | null;
848
+ assigneeId: string | null;
849
+ creatorId: string | null;
850
+ projectId: string | null;
851
+ cycleId: string | null;
852
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
853
+ milestoneId: string | null;
854
+ sortOrder: number;
855
+ archivedAt: string | null;
856
+ createdAt: string;
857
+ updatedAt: string;
858
+ };
859
+ previousPriority: PriorityValue;
860
+ };
861
+ "task.setEstimate": {
862
+ task: {
863
+ id: string;
864
+ teamId: string;
865
+ number: number;
866
+ title: string;
867
+ description: string | null;
868
+ descriptionDocument: {
869
+ version: 1;
870
+ content: {
871
+ [x: string]: any;
872
+ type?: string | undefined;
873
+ attrs?: {
874
+ [x: string]: any;
875
+ } | undefined;
876
+ content?: any[] | undefined;
877
+ marks?: {
878
+ [x: string]: any;
879
+ type: string;
880
+ attrs?: {
881
+ [x: string]: any;
882
+ } | undefined;
883
+ }[] | undefined;
884
+ text?: string | undefined;
885
+ };
886
+ } | null;
887
+ statusId: string;
888
+ priority: PriorityValue;
889
+ estimateValue: number | null;
890
+ estimateSettingsRevisionId: string | null;
891
+ assigneeId: string | null;
892
+ creatorId: string | null;
893
+ projectId: string | null;
894
+ cycleId: string | null;
895
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
896
+ milestoneId: string | null;
897
+ sortOrder: number;
898
+ archivedAt: string | null;
899
+ createdAt: string;
900
+ updatedAt: string;
901
+ };
902
+ previousEstimateValue: number | null;
903
+ effectiveAt: string;
904
+ };
905
+ "task.update": {
906
+ task: {
907
+ id: string;
908
+ teamId: string;
909
+ number: number;
910
+ title: string;
911
+ description: string | null;
912
+ descriptionDocument: {
913
+ version: 1;
914
+ content: {
915
+ [x: string]: any;
916
+ type?: string | undefined;
917
+ attrs?: {
918
+ [x: string]: any;
919
+ } | undefined;
920
+ content?: any[] | undefined;
921
+ marks?: {
922
+ [x: string]: any;
923
+ type: string;
924
+ attrs?: {
925
+ [x: string]: any;
926
+ } | undefined;
927
+ }[] | undefined;
928
+ text?: string | undefined;
929
+ };
930
+ } | null;
931
+ statusId: string;
932
+ priority: PriorityValue;
933
+ estimateValue: number | null;
934
+ estimateSettingsRevisionId: string | null;
935
+ assigneeId: string | null;
936
+ creatorId: string | null;
937
+ projectId: string | null;
938
+ cycleId: string | null;
939
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
940
+ milestoneId: string | null;
941
+ sortOrder: number;
942
+ archivedAt: string | null;
943
+ createdAt: string;
944
+ updatedAt: string;
945
+ };
946
+ previousTitle: string;
947
+ previousDescription: string | null;
948
+ previousDescriptionDocumentJson: {
949
+ version: 1;
950
+ content: {
951
+ [x: string]: any;
952
+ type?: string | undefined;
953
+ attrs?: {
954
+ [x: string]: any;
955
+ } | undefined;
956
+ content?: any[] | undefined;
957
+ marks?: {
958
+ [x: string]: any;
959
+ type: string;
960
+ attrs?: {
961
+ [x: string]: any;
962
+ } | undefined;
963
+ }[] | undefined;
964
+ text?: string | undefined;
965
+ };
966
+ } | null;
967
+ };
968
+ "task.setProject": {
969
+ task: {
970
+ id: string;
971
+ teamId: string;
972
+ number: number;
973
+ title: string;
974
+ description: string | null;
975
+ descriptionDocument: {
976
+ version: 1;
977
+ content: {
978
+ [x: string]: any;
979
+ type?: string | undefined;
980
+ attrs?: {
981
+ [x: string]: any;
982
+ } | undefined;
983
+ content?: any[] | undefined;
984
+ marks?: {
985
+ [x: string]: any;
986
+ type: string;
987
+ attrs?: {
988
+ [x: string]: any;
989
+ } | undefined;
990
+ }[] | undefined;
991
+ text?: string | undefined;
992
+ };
993
+ } | null;
994
+ statusId: string;
995
+ priority: PriorityValue;
996
+ estimateValue: number | null;
997
+ estimateSettingsRevisionId: string | null;
998
+ assigneeId: string | null;
999
+ creatorId: string | null;
1000
+ projectId: string | null;
1001
+ cycleId: string | null;
1002
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
1003
+ milestoneId: string | null;
1004
+ sortOrder: number;
1005
+ archivedAt: string | null;
1006
+ createdAt: string;
1007
+ updatedAt: string;
1008
+ };
1009
+ previousProjectId: string | null;
1010
+ previousMilestoneId: string | null;
1011
+ effectiveAt: string;
1012
+ };
1013
+ "task.setCycle": {
1014
+ task: {
1015
+ id: string;
1016
+ teamId: string;
1017
+ number: number;
1018
+ title: string;
1019
+ description: string | null;
1020
+ descriptionDocument: {
1021
+ version: 1;
1022
+ content: {
1023
+ [x: string]: any;
1024
+ type?: string | undefined;
1025
+ attrs?: {
1026
+ [x: string]: any;
1027
+ } | undefined;
1028
+ content?: any[] | undefined;
1029
+ marks?: {
1030
+ [x: string]: any;
1031
+ type: string;
1032
+ attrs?: {
1033
+ [x: string]: any;
1034
+ } | undefined;
1035
+ }[] | undefined;
1036
+ text?: string | undefined;
1037
+ };
1038
+ } | null;
1039
+ statusId: string;
1040
+ priority: PriorityValue;
1041
+ estimateValue: number | null;
1042
+ estimateSettingsRevisionId: string | null;
1043
+ assigneeId: string | null;
1044
+ creatorId: string | null;
1045
+ projectId: string | null;
1046
+ cycleId: string | null;
1047
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
1048
+ milestoneId: string | null;
1049
+ sortOrder: number;
1050
+ archivedAt: string | null;
1051
+ createdAt: string;
1052
+ updatedAt: string;
1053
+ };
1054
+ effectiveAt: string;
1055
+ previousCycleId: string | null;
1056
+ previousCycleIdForHistory: string | null;
1057
+ taskState: {
1058
+ identifier: string;
1059
+ statusCategory: StatusCategoryValue;
1060
+ };
1061
+ };
1062
+ "task.setMilestone": {
1063
+ task: {
1064
+ id: string;
1065
+ teamId: string;
1066
+ number: number;
1067
+ title: string;
1068
+ description: string | null;
1069
+ descriptionDocument: {
1070
+ version: 1;
1071
+ content: {
1072
+ [x: string]: any;
1073
+ type?: string | undefined;
1074
+ attrs?: {
1075
+ [x: string]: any;
1076
+ } | undefined;
1077
+ content?: any[] | undefined;
1078
+ marks?: {
1079
+ [x: string]: any;
1080
+ type: string;
1081
+ attrs?: {
1082
+ [x: string]: any;
1083
+ } | undefined;
1084
+ }[] | undefined;
1085
+ text?: string | undefined;
1086
+ };
1087
+ } | null;
1088
+ statusId: string;
1089
+ priority: PriorityValue;
1090
+ estimateValue: number | null;
1091
+ estimateSettingsRevisionId: string | null;
1092
+ assigneeId: string | null;
1093
+ creatorId: string | null;
1094
+ projectId: string | null;
1095
+ cycleId: string | null;
1096
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
1097
+ milestoneId: string | null;
1098
+ sortOrder: number;
1099
+ archivedAt: string | null;
1100
+ createdAt: string;
1101
+ updatedAt: string;
1102
+ };
1103
+ previousMilestoneId: string | null;
1104
+ effectiveAt: string;
1105
+ };
1106
+ "task.addLabel": {
1107
+ taskId: string;
1108
+ labelId: string;
1109
+ added: boolean;
1110
+ };
1111
+ "task.removeLabel": {
1112
+ taskId: string;
1113
+ labelId: string;
1114
+ removed: boolean;
1115
+ };
1116
+ "task.archive": {
1117
+ task: {
1118
+ id: string;
1119
+ teamId: string;
1120
+ number: number;
1121
+ title: string;
1122
+ description: string | null;
1123
+ descriptionDocument: {
1124
+ version: 1;
1125
+ content: {
1126
+ [x: string]: any;
1127
+ type?: string | undefined;
1128
+ attrs?: {
1129
+ [x: string]: any;
1130
+ } | undefined;
1131
+ content?: any[] | undefined;
1132
+ marks?: {
1133
+ [x: string]: any;
1134
+ type: string;
1135
+ attrs?: {
1136
+ [x: string]: any;
1137
+ } | undefined;
1138
+ }[] | undefined;
1139
+ text?: string | undefined;
1140
+ };
1141
+ } | null;
1142
+ statusId: string;
1143
+ priority: PriorityValue;
1144
+ estimateValue: number | null;
1145
+ estimateSettingsRevisionId: string | null;
1146
+ assigneeId: string | null;
1147
+ creatorId: string | null;
1148
+ projectId: string | null;
1149
+ cycleId: string | null;
1150
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
1151
+ milestoneId: string | null;
1152
+ sortOrder: number;
1153
+ archivedAt: string | null;
1154
+ createdAt: string;
1155
+ updatedAt: string;
1156
+ };
1157
+ previousArchivedAt: string | null;
1158
+ effectiveAt: string;
1159
+ };
1160
+ "task.unarchive": {
1161
+ task: {
1162
+ id: string;
1163
+ teamId: string;
1164
+ number: number;
1165
+ title: string;
1166
+ description: string | null;
1167
+ descriptionDocument: {
1168
+ version: 1;
1169
+ content: {
1170
+ [x: string]: any;
1171
+ type?: string | undefined;
1172
+ attrs?: {
1173
+ [x: string]: any;
1174
+ } | undefined;
1175
+ content?: any[] | undefined;
1176
+ marks?: {
1177
+ [x: string]: any;
1178
+ type: string;
1179
+ attrs?: {
1180
+ [x: string]: any;
1181
+ } | undefined;
1182
+ }[] | undefined;
1183
+ text?: string | undefined;
1184
+ };
1185
+ } | null;
1186
+ statusId: string;
1187
+ priority: PriorityValue;
1188
+ estimateValue: number | null;
1189
+ estimateSettingsRevisionId: string | null;
1190
+ assigneeId: string | null;
1191
+ creatorId: string | null;
1192
+ projectId: string | null;
1193
+ cycleId: string | null;
1194
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
1195
+ milestoneId: string | null;
1196
+ sortOrder: number;
1197
+ archivedAt: string | null;
1198
+ createdAt: string;
1199
+ updatedAt: string;
1200
+ };
1201
+ previousArchivedAt: string | null;
1202
+ effectiveAt: string;
1203
+ };
1204
+ "comment.add": {
1205
+ comment: {
1206
+ id: string;
1207
+ taskId: string;
1208
+ authorId: string | null;
1209
+ body: string;
1210
+ createdAt: string;
1211
+ updatedAt: string;
1212
+ };
1213
+ };
1214
+ "project.create": {
1215
+ project: {
1216
+ id: string;
1217
+ workspaceId: string;
1218
+ name: string;
1219
+ description: string | null;
1220
+ status: ProjectStatusValue;
1221
+ startDate: string | null;
1222
+ targetDate: string | null;
1223
+ leadId: string | null;
1224
+ archivedAt: string | null;
1225
+ createdAt: string;
1226
+ updatedAt: string;
1227
+ };
1228
+ };
1229
+ "project.update": {
1230
+ project: {
1231
+ id: string;
1232
+ workspaceId: string;
1233
+ name: string;
1234
+ description: string | null;
1235
+ status: ProjectStatusValue;
1236
+ startDate: string | null;
1237
+ targetDate: string | null;
1238
+ leadId: string | null;
1239
+ archivedAt: string | null;
1240
+ createdAt: string;
1241
+ updatedAt: string;
1242
+ };
1243
+ };
1244
+ "project.archive": {
1245
+ project: {
1246
+ id: string;
1247
+ workspaceId: string;
1248
+ name: string;
1249
+ description: string | null;
1250
+ status: ProjectStatusValue;
1251
+ startDate: string | null;
1252
+ targetDate: string | null;
1253
+ leadId: string | null;
1254
+ archivedAt: string | null;
1255
+ createdAt: string;
1256
+ updatedAt: string;
1257
+ };
1258
+ };
1259
+ "project.unarchive": {
1260
+ project: {
1261
+ id: string;
1262
+ workspaceId: string;
1263
+ name: string;
1264
+ description: string | null;
1265
+ status: ProjectStatusValue;
1266
+ startDate: string | null;
1267
+ targetDate: string | null;
1268
+ leadId: string | null;
1269
+ archivedAt: string | null;
1270
+ createdAt: string;
1271
+ updatedAt: string;
1272
+ };
1273
+ };
1274
+ "project.addTeam": {
1275
+ project: {
1276
+ id: string;
1277
+ workspaceId: string;
1278
+ name: string;
1279
+ description: string | null;
1280
+ status: ProjectStatusValue;
1281
+ startDate: string | null;
1282
+ targetDate: string | null;
1283
+ leadId: string | null;
1284
+ archivedAt: string | null;
1285
+ createdAt: string;
1286
+ updatedAt: string;
1287
+ };
1288
+ team: {
1289
+ id: string;
1290
+ workspaceId: string;
1291
+ name: string;
1292
+ identifier: string;
1293
+ taskCounter: number;
1294
+ createdAt: string;
1295
+ updatedAt: string;
1296
+ };
1297
+ };
1298
+ "project.removeTeam": {
1299
+ project: {
1300
+ id: string;
1301
+ workspaceId: string;
1302
+ name: string;
1303
+ description: string | null;
1304
+ status: ProjectStatusValue;
1305
+ startDate: string | null;
1306
+ targetDate: string | null;
1307
+ leadId: string | null;
1308
+ archivedAt: string | null;
1309
+ createdAt: string;
1310
+ updatedAt: string;
1311
+ };
1312
+ };
1313
+ "project.addMember": {
1314
+ project: {
1315
+ id: string;
1316
+ workspaceId: string;
1317
+ name: string;
1318
+ description: string | null;
1319
+ status: ProjectStatusValue;
1320
+ startDate: string | null;
1321
+ targetDate: string | null;
1322
+ leadId: string | null;
1323
+ archivedAt: string | null;
1324
+ createdAt: string;
1325
+ updatedAt: string;
1326
+ };
1327
+ member: {
1328
+ id: string;
1329
+ userId: string | null;
1330
+ agentId: string | null;
1331
+ workspaceId: string;
1332
+ role: "member" | "owner" | "admin";
1333
+ joinedAt: string;
1334
+ updatedAt: string;
1335
+ };
1336
+ };
1337
+ "project.removeMember": {
1338
+ project: {
1339
+ id: string;
1340
+ workspaceId: string;
1341
+ name: string;
1342
+ description: string | null;
1343
+ status: ProjectStatusValue;
1344
+ startDate: string | null;
1345
+ targetDate: string | null;
1346
+ leadId: string | null;
1347
+ archivedAt: string | null;
1348
+ createdAt: string;
1349
+ updatedAt: string;
1350
+ };
1351
+ };
1352
+ "project.setLead": {
1353
+ project: {
1354
+ id: string;
1355
+ workspaceId: string;
1356
+ name: string;
1357
+ description: string | null;
1358
+ status: ProjectStatusValue;
1359
+ startDate: string | null;
1360
+ targetDate: string | null;
1361
+ leadId: string | null;
1362
+ archivedAt: string | null;
1363
+ createdAt: string;
1364
+ updatedAt: string;
1365
+ };
1366
+ };
1367
+ "milestone.create": {
1368
+ milestone: {
1369
+ id: string;
1370
+ projectId: string;
1371
+ name: string;
1372
+ description: string | null;
1373
+ targetDate: string | null;
1374
+ position: number;
1375
+ createdAt: string;
1376
+ updatedAt: string;
1377
+ };
1378
+ };
1379
+ "milestone.update": {
1380
+ milestone: {
1381
+ id: string;
1382
+ projectId: string;
1383
+ name: string;
1384
+ description: string | null;
1385
+ targetDate: string | null;
1386
+ position: number;
1387
+ createdAt: string;
1388
+ updatedAt: string;
1389
+ };
1390
+ };
1391
+ "milestone.delete": {
1392
+ deletedMilestoneId: string;
1393
+ projectId: string;
1394
+ cycleTasks: {
1395
+ id: string;
1396
+ cycleId: string;
1397
+ title: string;
1398
+ }[];
1399
+ effectiveAt: string;
1400
+ };
1401
+ "milestone.reorder": {
1402
+ milestones: {
1403
+ id: string;
1404
+ projectId: string;
1405
+ name: string;
1406
+ description: string | null;
1407
+ targetDate: string | null;
1408
+ position: number;
1409
+ createdAt: string;
1410
+ updatedAt: string;
1411
+ }[];
1412
+ };
1413
+ "milestone.promote": {
1414
+ project: {
1415
+ id: string;
1416
+ workspaceId: string;
1417
+ name: string;
1418
+ description: string | null;
1419
+ status: ProjectStatusValue;
1420
+ startDate: string | null;
1421
+ targetDate: string | null;
1422
+ leadId: string | null;
1423
+ archivedAt: string | null;
1424
+ createdAt: string;
1425
+ updatedAt: string;
1426
+ };
1427
+ movedTaskCount: number;
1428
+ parentProjectId: string;
1429
+ cycleTasks: {
1430
+ id: string;
1431
+ cycleId: string;
1432
+ title: string;
1433
+ }[];
1434
+ previousMilestoneId: string;
1435
+ effectiveAt: string;
1436
+ };
1437
+ "cycle.create": {
1438
+ cycle: {
1439
+ id: string;
1440
+ teamId: string;
1441
+ name: string;
1442
+ description: string | null;
1443
+ startDate: string;
1444
+ endDate: string;
1445
+ dateConvention: "legacy" | "exclusive";
1446
+ source: "legacy" | "generated" | "override";
1447
+ cadenceRevisionId: string | null;
1448
+ cadenceSequence: number | null;
1449
+ status: "completed" | "upcoming" | "active";
1450
+ startedAt: string | null;
1451
+ reportMode: "count" | "effort" | null;
1452
+ estimateSettingsRevisionId: string | null;
1453
+ reportEffectiveStartedAt: string | null;
1454
+ contractFrozenAt: string | null;
1455
+ closedAt: string | null;
1456
+ suppressedAt: string | null;
1457
+ suppressionReason: string | null;
1458
+ missedAt: string | null;
1459
+ correctionCutoffAt: string | null;
1460
+ historyObservedSince: string;
1461
+ historyComplete: boolean;
1462
+ timelineBaselineAt: string | null;
1463
+ closureReason: "normal" | "automation_disabled" | null;
1464
+ createdAt: string;
1465
+ updatedAt: string;
1466
+ };
1467
+ teamIdentifier: string;
1468
+ effectiveAt: string;
1469
+ };
1470
+ "cycle.update": {
1471
+ cycle: {
1472
+ id: string;
1473
+ teamId: string;
1474
+ name: string;
1475
+ description: string | null;
1476
+ startDate: string;
1477
+ endDate: string;
1478
+ dateConvention: "legacy" | "exclusive";
1479
+ source: "legacy" | "generated" | "override";
1480
+ cadenceRevisionId: string | null;
1481
+ cadenceSequence: number | null;
1482
+ status: "completed" | "upcoming" | "active";
1483
+ startedAt: string | null;
1484
+ reportMode: "count" | "effort" | null;
1485
+ estimateSettingsRevisionId: string | null;
1486
+ reportEffectiveStartedAt: string | null;
1487
+ contractFrozenAt: string | null;
1488
+ closedAt: string | null;
1489
+ suppressedAt: string | null;
1490
+ suppressionReason: string | null;
1491
+ missedAt: string | null;
1492
+ correctionCutoffAt: string | null;
1493
+ historyObservedSince: string;
1494
+ historyComplete: boolean;
1495
+ timelineBaselineAt: string | null;
1496
+ closureReason: "normal" | "automation_disabled" | null;
1497
+ createdAt: string;
1498
+ updatedAt: string;
1499
+ };
1500
+ previousCycle: {
1501
+ id: string;
1502
+ teamId: string;
1503
+ name: string;
1504
+ description: string | null;
1505
+ startDate: string;
1506
+ endDate: string;
1507
+ dateConvention: "legacy" | "exclusive";
1508
+ source: "legacy" | "generated" | "override";
1509
+ cadenceRevisionId: string | null;
1510
+ cadenceSequence: number | null;
1511
+ status: "completed" | "upcoming" | "active";
1512
+ startedAt: string | null;
1513
+ reportMode: "count" | "effort" | null;
1514
+ estimateSettingsRevisionId: string | null;
1515
+ reportEffectiveStartedAt: string | null;
1516
+ contractFrozenAt: string | null;
1517
+ closedAt: string | null;
1518
+ suppressedAt: string | null;
1519
+ suppressionReason: string | null;
1520
+ missedAt: string | null;
1521
+ correctionCutoffAt: string | null;
1522
+ historyObservedSince: string;
1523
+ historyComplete: boolean;
1524
+ timelineBaselineAt: string | null;
1525
+ closureReason: "normal" | "automation_disabled" | null;
1526
+ createdAt: string;
1527
+ updatedAt: string;
1528
+ };
1529
+ effectiveAt: string;
1530
+ };
1531
+ "status.create": {
1532
+ status: {
1533
+ id: string;
1534
+ teamId: string;
1535
+ name: string;
1536
+ color: string;
1537
+ position: number;
1538
+ category: StatusCategoryValue;
1539
+ createdAt: string;
1540
+ updatedAt: string;
1541
+ };
1542
+ teamIdentifier: string;
1543
+ };
1544
+ "status.update": {
1545
+ status: {
1546
+ id: string;
1547
+ teamId: string;
1548
+ name: string;
1549
+ color: string;
1550
+ position: number;
1551
+ category: StatusCategoryValue;
1552
+ createdAt: string;
1553
+ updatedAt: string;
1554
+ };
1555
+ previousStatus: {
1556
+ id: string;
1557
+ teamId: string;
1558
+ name: string;
1559
+ color: string;
1560
+ position: number;
1561
+ category: StatusCategoryValue;
1562
+ createdAt: string;
1563
+ updatedAt: string;
1564
+ };
1565
+ cycleTasks: {
1566
+ id: string;
1567
+ cycleId: string;
1568
+ title: string;
1569
+ }[];
1570
+ effectiveAt: string;
1571
+ };
1572
+ "status.reorder": {
1573
+ statuses: {
1574
+ id: string;
1575
+ teamId: string;
1576
+ name: string;
1577
+ color: string;
1578
+ position: number;
1579
+ category: StatusCategoryValue;
1580
+ createdAt: string;
1581
+ updatedAt: string;
1582
+ }[];
1583
+ };
1584
+ "status.delete": {
1585
+ deletedStatusId: string;
1586
+ reassignToStatusId: string;
1587
+ reassignedTaskIds: string[];
1588
+ deletedStatus: {
1589
+ id: string;
1590
+ teamId: string;
1591
+ name: string;
1592
+ color: string;
1593
+ position: number;
1594
+ category: StatusCategoryValue;
1595
+ createdAt: string;
1596
+ updatedAt: string;
1597
+ };
1598
+ targetStatus: {
1599
+ id: string;
1600
+ teamId: string;
1601
+ name: string;
1602
+ color: string;
1603
+ position: number;
1604
+ category: StatusCategoryValue;
1605
+ createdAt: string;
1606
+ updatedAt: string;
1607
+ };
1608
+ cycleTasks: {
1609
+ id: string;
1610
+ cycleId: string;
1611
+ title: string;
1612
+ }[];
1613
+ effectiveAt: string;
1614
+ };
1615
+ "label.create": {
1616
+ label: {
1617
+ id: string;
1618
+ workspaceId: string;
1619
+ name: string;
1620
+ color: string;
1621
+ createdAt: string;
1622
+ updatedAt: string;
1623
+ };
1624
+ };
1625
+ "label.update": {
1626
+ label: {
1627
+ id: string;
1628
+ workspaceId: string;
1629
+ name: string;
1630
+ color: string;
1631
+ createdAt: string;
1632
+ updatedAt: string;
1633
+ };
1634
+ };
1635
+ "label.delete": {
1636
+ labelId: string;
1637
+ };
1638
+ "team.cycleCadence.save": {
1639
+ cadence: {
1640
+ teamId: string;
1641
+ currentRevisionId: string;
1642
+ revision: number;
1643
+ timezone: string;
1644
+ anchorDate: string;
1645
+ startWeekday: number;
1646
+ durationWeeks: number;
1647
+ cooldownWeeks: number;
1648
+ horizonCycles: number;
1649
+ autoAssignStarted: boolean;
1650
+ autoAssignCompleted: boolean;
1651
+ automationActive: boolean;
1652
+ resumeFloor: string | null;
1653
+ disabledAt: string | null;
1654
+ createdAt: string;
1655
+ updatedAt: string;
1656
+ };
1657
+ };
1658
+ "team.estimateSettings.save": {
1659
+ settings: {
1660
+ teamId: string;
1661
+ currentRevisionId: string;
1662
+ revision: number;
1663
+ epoch: string;
1664
+ enabled: boolean;
1665
+ scale: "fibonacci" | "linear";
1666
+ effectiveAt: string;
1667
+ createdAt: string;
1668
+ updatedAt: string;
1669
+ };
1670
+ };
1671
+ "team.cycleLifecycle.apply": {
1672
+ runtime: {
1673
+ teamId: string;
1674
+ now: string;
1675
+ cadence: {
1676
+ teamId: string;
1677
+ currentRevisionId: string;
1678
+ revision: number;
1679
+ timezone: string;
1680
+ anchorDate: string;
1681
+ startWeekday: number;
1682
+ durationWeeks: number;
1683
+ cooldownWeeks: number;
1684
+ horizonCycles: number;
1685
+ autoAssignStarted: boolean;
1686
+ autoAssignCompleted: boolean;
1687
+ automationActive: boolean;
1688
+ resumeFloor: string | null;
1689
+ disabledAt: string | null;
1690
+ createdAt: string;
1691
+ updatedAt: string;
1692
+ } | null;
1693
+ current: {
1694
+ id: string;
1695
+ teamId: string;
1696
+ name: string;
1697
+ description: string | null;
1698
+ startDate: string;
1699
+ endDate: string;
1700
+ dateConvention: "legacy" | "exclusive";
1701
+ source: "legacy" | "generated" | "override";
1702
+ cadenceRevisionId: string | null;
1703
+ cadenceSequence: number | null;
1704
+ status: "completed" | "upcoming" | "active";
1705
+ startedAt: string | null;
1706
+ reportMode: "count" | "effort" | null;
1707
+ estimateSettingsRevisionId: string | null;
1708
+ reportEffectiveStartedAt: string | null;
1709
+ contractFrozenAt: string | null;
1710
+ closedAt: string | null;
1711
+ suppressedAt: string | null;
1712
+ suppressionReason: string | null;
1713
+ missedAt: string | null;
1714
+ correctionCutoffAt: string | null;
1715
+ historyObservedSince: string;
1716
+ historyComplete: boolean;
1717
+ timelineBaselineAt: string | null;
1718
+ closureReason: "normal" | "automation_disabled" | null;
1719
+ createdAt: string;
1720
+ updatedAt: string;
1721
+ } | null;
1722
+ previous: {
1723
+ id: string;
1724
+ teamId: string;
1725
+ name: string;
1726
+ description: string | null;
1727
+ startDate: string;
1728
+ endDate: string;
1729
+ dateConvention: "legacy" | "exclusive";
1730
+ source: "legacy" | "generated" | "override";
1731
+ cadenceRevisionId: string | null;
1732
+ cadenceSequence: number | null;
1733
+ status: "completed" | "upcoming" | "active";
1734
+ startedAt: string | null;
1735
+ reportMode: "count" | "effort" | null;
1736
+ estimateSettingsRevisionId: string | null;
1737
+ reportEffectiveStartedAt: string | null;
1738
+ contractFrozenAt: string | null;
1739
+ closedAt: string | null;
1740
+ suppressedAt: string | null;
1741
+ suppressionReason: string | null;
1742
+ missedAt: string | null;
1743
+ correctionCutoffAt: string | null;
1744
+ historyObservedSince: string;
1745
+ historyComplete: boolean;
1746
+ timelineBaselineAt: string | null;
1747
+ closureReason: "normal" | "automation_disabled" | null;
1748
+ createdAt: string;
1749
+ updatedAt: string;
1750
+ } | null;
1751
+ next: {
1752
+ id: string;
1753
+ teamId: string;
1754
+ name: string;
1755
+ description: string | null;
1756
+ startDate: string;
1757
+ endDate: string;
1758
+ dateConvention: "legacy" | "exclusive";
1759
+ source: "legacy" | "generated" | "override";
1760
+ cadenceRevisionId: string | null;
1761
+ cadenceSequence: number | null;
1762
+ status: "completed" | "upcoming" | "active";
1763
+ startedAt: string | null;
1764
+ reportMode: "count" | "effort" | null;
1765
+ estimateSettingsRevisionId: string | null;
1766
+ reportEffectiveStartedAt: string | null;
1767
+ contractFrozenAt: string | null;
1768
+ closedAt: string | null;
1769
+ suppressedAt: string | null;
1770
+ suppressionReason: string | null;
1771
+ missedAt: string | null;
1772
+ correctionCutoffAt: string | null;
1773
+ historyObservedSince: string;
1774
+ historyComplete: boolean;
1775
+ timelineBaselineAt: string | null;
1776
+ closureReason: "normal" | "automation_disabled" | null;
1777
+ createdAt: string;
1778
+ updatedAt: string;
1779
+ } | null;
1780
+ cooldown: boolean;
1781
+ generatedCycles: number;
1782
+ transitionedCycles: number;
1783
+ };
1784
+ };
1785
+ "agent.create": {
1786
+ agent: {
1787
+ id: string;
1788
+ workspaceId: string;
1789
+ name: string;
1790
+ ownerMemberId: string | null;
1791
+ policyId: string | null;
1792
+ pausedAt: string | null;
1793
+ removedAt: string | null;
1794
+ createdAt: string;
1795
+ updatedAt: string;
1796
+ };
1797
+ member: {
1798
+ id: string;
1799
+ userId: string | null;
1800
+ agentId: string | null;
1801
+ workspaceId: string;
1802
+ role: "member" | "owner" | "admin";
1803
+ joinedAt: string;
1804
+ updatedAt: string;
1805
+ };
1806
+ policy: {
1807
+ id: string;
1808
+ agentId: string;
1809
+ version: number;
1810
+ preset: "custom" | "read_only" | "triage" | "full";
1811
+ allowedActions: string[];
1812
+ createdByMemberId: string | null;
1813
+ createdAt: string;
1814
+ };
1815
+ key: {
1816
+ id: string;
1817
+ plaintext: string;
1818
+ last4: string;
1819
+ createdAt: string;
1820
+ };
1821
+ };
1822
+ "agent.setPolicy": {
1823
+ agent: {
1824
+ id: string;
1825
+ workspaceId: string;
1826
+ name: string;
1827
+ ownerMemberId: string | null;
1828
+ policyId: string | null;
1829
+ pausedAt: string | null;
1830
+ removedAt: string | null;
1831
+ createdAt: string;
1832
+ updatedAt: string;
1833
+ };
1834
+ policy: {
1835
+ id: string;
1836
+ agentId: string;
1837
+ version: number;
1838
+ preset: "custom" | "read_only" | "triage" | "full";
1839
+ allowedActions: string[];
1840
+ createdByMemberId: string | null;
1841
+ createdAt: string;
1842
+ };
1843
+ };
1844
+ "agent.issueKey": {
1845
+ agent: {
1846
+ id: string;
1847
+ workspaceId: string;
1848
+ name: string;
1849
+ ownerMemberId: string | null;
1850
+ policyId: string | null;
1851
+ pausedAt: string | null;
1852
+ removedAt: string | null;
1853
+ createdAt: string;
1854
+ updatedAt: string;
1855
+ };
1856
+ key: {
1857
+ id: string;
1858
+ plaintext: string;
1859
+ last4: string;
1860
+ createdAt: string;
1861
+ };
1862
+ };
1863
+ "agent.revokeKey": {
1864
+ agent: {
1865
+ id: string;
1866
+ workspaceId: string;
1867
+ name: string;
1868
+ ownerMemberId: string | null;
1869
+ policyId: string | null;
1870
+ pausedAt: string | null;
1871
+ removedAt: string | null;
1872
+ createdAt: string;
1873
+ updatedAt: string;
1874
+ };
1875
+ keyId: string;
1876
+ };
1877
+ "agent.pause": {
1878
+ agent: {
1879
+ id: string;
1880
+ workspaceId: string;
1881
+ name: string;
1882
+ ownerMemberId: string | null;
1883
+ policyId: string | null;
1884
+ pausedAt: string | null;
1885
+ removedAt: string | null;
1886
+ createdAt: string;
1887
+ updatedAt: string;
1888
+ };
1889
+ };
1890
+ "agent.resume": {
1891
+ agent: {
1892
+ id: string;
1893
+ workspaceId: string;
1894
+ name: string;
1895
+ ownerMemberId: string | null;
1896
+ policyId: string | null;
1897
+ pausedAt: string | null;
1898
+ removedAt: string | null;
1899
+ createdAt: string;
1900
+ updatedAt: string;
1901
+ };
1902
+ };
1903
+ "agent.remove": {
1904
+ agent: {
1905
+ id: string;
1906
+ workspaceId: string;
1907
+ name: string;
1908
+ ownerMemberId: string | null;
1909
+ policyId: string | null;
1910
+ pausedAt: string | null;
1911
+ removedAt: string | null;
1912
+ createdAt: string;
1913
+ updatedAt: string;
1914
+ };
1915
+ removedMemberId: string;
1916
+ };
1917
+ };
1918
+ type ProjectStatusValue = "backlog" | "planned" | "in_progress" | "completed" | "cancelled";
1919
+ type TaskRecord = {
1920
+ id: string;
1921
+ teamId: string;
1922
+ number: number;
1923
+ title: string;
1924
+ description: string | null;
1925
+ descriptionDocument: DescriptionDocumentJson | null;
1926
+ statusId: string;
1927
+ priority: PriorityValue;
1928
+ estimateValue: number | null;
1929
+ estimateSettingsRevisionId: string | null;
1930
+ assigneeId: string | null;
1931
+ creatorId: string | null;
1932
+ projectId: string | null;
1933
+ cycleId: string | null;
1934
+ cycleAssignmentSource: "manual" | "automatic" | "carryover";
1935
+ milestoneId: string | null;
1936
+ sortOrder: number;
1937
+ archivedAt: Date | null;
1938
+ createdAt: Date;
1939
+ updatedAt: Date;
1940
+ };
1941
+ type ProjectRecord = {
1942
+ id: string;
1943
+ workspaceId: string;
1944
+ name: string;
1945
+ description: string | null;
1946
+ status: ProjectStatusValue;
1947
+ startDate: Date | null;
1948
+ targetDate: Date | null;
1949
+ leadId: string | null;
1950
+ archivedAt: Date | null;
1951
+ createdAt: Date;
1952
+ updatedAt: Date;
1953
+ };
1954
+ type CycleRecord = {
1955
+ id: string;
1956
+ teamId: string;
1957
+ name: string;
1958
+ description: string | null;
1959
+ startDate: Date;
1960
+ endDate: Date;
1961
+ dateConvention: "legacy" | "exclusive";
1962
+ source: "legacy" | "generated" | "override";
1963
+ cadenceRevisionId: string | null;
1964
+ cadenceSequence: number | null;
1965
+ status: "completed" | "upcoming" | "active";
1966
+ startedAt: Date | null;
1967
+ reportMode: "count" | "effort" | null;
1968
+ estimateSettingsRevisionId: string | null;
1969
+ reportEffectiveStartedAt: Date | null;
1970
+ contractFrozenAt: Date | null;
1971
+ closedAt: Date | null;
1972
+ suppressedAt: Date | null;
1973
+ suppressionReason: string | null;
1974
+ missedAt: Date | null;
1975
+ correctionCutoffAt: Date | null;
1976
+ historyObservedSince: Date;
1977
+ historyComplete: boolean;
1978
+ timelineBaselineAt: Date | null;
1979
+ closureReason: "normal" | "automation_disabled" | null;
1980
+ createdAt: Date;
1981
+ updatedAt: Date;
1982
+ };
1983
+ type TeamRecord = {
1984
+ id: string;
1985
+ workspaceId: string;
1986
+ name: string;
1987
+ identifier: string;
1988
+ taskCounter: number;
1989
+ createdAt: Date;
1990
+ updatedAt: Date;
1991
+ };
1992
+ type LabelRecord = {
1993
+ id: string;
1994
+ workspaceId: string;
1995
+ name: string;
1996
+ color: string;
1997
+ createdAt: Date;
1998
+ updatedAt: Date;
1999
+ };
2000
+ type CommentRecord = {
2001
+ id: string;
2002
+ taskId: string;
2003
+ authorId: string | null;
2004
+ body: string;
2005
+ createdAt: Date;
2006
+ updatedAt: Date;
2007
+ };
2008
+ type AgentRecord = {
2009
+ id: string;
2010
+ workspaceId: string;
2011
+ name: string;
2012
+ ownerMemberId: string | null;
2013
+ policyId: string | null;
2014
+ pausedAt: Date | null;
2015
+ removedAt: Date | null;
2016
+ createdAt: Date;
2017
+ updatedAt: Date;
2018
+ };
2019
+ type AgentPolicyRecord = {
2020
+ id: string;
2021
+ agentId: string;
2022
+ version: number;
2023
+ preset: "custom" | "read_only" | "triage" | "full";
2024
+ allowedActions: string[];
2025
+ createdByMemberId: string | null;
2026
+ createdAt: Date;
2027
+ };
2028
+ type PriorityValue = "urgent" | "high" | "medium" | "low" | "none";
2029
+ type StatusCategoryValue = "backlog" | "completed" | "cancelled" | "unstarted" | "started";
2030
+
2031
+ /**
2032
+ * Token prefixes, duplicated from `@tasq/contracts/agents`.
2033
+ *
2034
+ * They are re-declared here rather than re-exported because contracts is
2035
+ * private: tsup's dts bundler leaves a `@tasq/contracts/agents` import in the
2036
+ * emitted `.d.ts`, which a published consumer cannot resolve.
2037
+ * `src/prefixes.equality.ts` asserts these stay in step with contracts.
2038
+ */
2039
+ /** Plaintext prefix of an agent API key. */
2040
+ declare const AGENT_KEY_PREFIX = "tq_ag_";
2041
+ /** Plaintext prefix of a user (CLI) token. */
2042
+ declare const USER_TOKEN_PREFIX = "tq_us_";
2043
+
2044
+ /** Either an agent key (`tq_ag_…`) or a user token (`tq_us_…`). */
2045
+ type TasqAuth = {
2046
+ agentKey: string;
2047
+ } | {
2048
+ userToken: string;
2049
+ };
2050
+ type TasqClientOptions = {
2051
+ /** Origin of the API, with or without a trailing slash. `/api` is appended. */
2052
+ baseUrl: string;
2053
+ /**
2054
+ * Omit to build an anonymous client. Only `auth.requestMagicLink` and
2055
+ * `auth.verifyCliCode` work without one; everything else throws
2056
+ * `NO_CREDENTIAL` before reaching the network.
2057
+ */
2058
+ auth?: TasqAuth;
2059
+ /** Injectable for tests and for runtimes with a non-global `fetch`. */
2060
+ fetch?: typeof fetch;
2061
+ };
2062
+ declare class TasqClient {
2063
+ #private;
2064
+ /** A client with no credential, for the two anonymous auth calls. */
2065
+ static anonymous(baseUrl: string, fetchImpl?: typeof fetch): TasqClient;
2066
+ constructor(options: TasqClientOptions);
2067
+ readonly workspaces: {
2068
+ list: () => Promise<WorkspaceSummary[]>;
2069
+ get: (slug: string) => Promise<WorkspaceDetail>;
2070
+ };
2071
+ readonly tasks: {
2072
+ list: (slug: string, filters?: TaskListFilters) => Promise<TaskListItem[]>;
2073
+ get: (slug: string, taskId: string) => Promise<TaskDetail>;
2074
+ };
2075
+ readonly projects: {
2076
+ list: (slug: string) => Promise<ProjectListItem[]>;
2077
+ get: (slug: string, projectId: string) => Promise<ProjectDetail>;
2078
+ };
2079
+ readonly cycles: {
2080
+ list: (slug: string, filters?: CycleListFilters) => Promise<CycleListItem[]>;
2081
+ };
2082
+ readonly teams: {
2083
+ list: (slug: string) => Promise<TeamListItem[]>;
2084
+ /** The only read that carries a team's statuses. */
2085
+ get: (slug: string, identifier: string) => Promise<TeamDetail>;
2086
+ };
2087
+ readonly labels: {
2088
+ list: (slug: string) => Promise<LabelListItem[]>;
2089
+ };
2090
+ readonly agents: {
2091
+ policy: (slug: string, agentId: string) => Promise<AgentPolicyDetail>;
2092
+ };
2093
+ readonly auth: {
2094
+ /** The principal behind the current credential. */
2095
+ me: () => Promise<CurrentUser>;
2096
+ /** Step one of CLI login: mail a sign-in code. Needs no credential. */
2097
+ requestMagicLink: (input: {
2098
+ email: string;
2099
+ }) => Promise<void>;
2100
+ /** Step two: exchange the code for a `tq_us_…` token. Needs no credential. */
2101
+ verifyCliCode: (input: {
2102
+ email: string;
2103
+ code: string;
2104
+ label: string;
2105
+ }) => Promise<CliTokenIssued>;
2106
+ /** Revoke the user token this client authenticates with. */
2107
+ revokeUserToken: () => Promise<void>;
2108
+ };
2109
+ /** Run a write action. The API validates `input`; the SDK does not. */
2110
+ dispatch<TName extends ActionName>(action: TName, slug: string, input: ActionInputMap[TName]): Promise<DispatchResponse<TName>>;
2111
+ }
2112
+
2113
+ /** Shape of the API's error envelope: `{ error: { code, message, details? } }`. */
2114
+ type ErrorBody = {
2115
+ code: string;
2116
+ message: string;
2117
+ details?: unknown;
2118
+ };
2119
+ /** Every failure the client raises for a non-2xx response. */
2120
+ declare class TasqApiError extends Error {
2121
+ readonly code: string;
2122
+ readonly status: number;
2123
+ readonly details: unknown;
2124
+ constructor(status: number, body: ErrorBody);
2125
+ }
2126
+ /** A `429 RATE_LIMITED`. `retryAfterSeconds` is never negative. */
2127
+ declare class TasqRateLimitError extends TasqApiError {
2128
+ readonly retryAfterSeconds: number;
2129
+ readonly resetAt: Date | undefined;
2130
+ readonly limit: number | undefined;
2131
+ readonly remaining: number | undefined;
2132
+ constructor(status: number, body: ErrorBody, retryAfterHeader: string | null);
2133
+ }
2134
+ type TasqValidationIssue = {
2135
+ path: (string | number)[];
2136
+ message: string;
2137
+ };
2138
+ /** A `400 VALIDATION_ERROR`. `issues` mirrors the API's Zod issue list. */
2139
+ declare class TasqValidationError extends TasqApiError {
2140
+ readonly issues: TasqValidationIssue[];
2141
+ constructor(status: number, body: ErrorBody);
2142
+ }
2143
+ /** A `403 AGENT_ACTION_DENIED`: the agent's policy does not allow the action. */
2144
+ declare class TasqPolicyDeniedError extends TasqApiError {
2145
+ /** The rejected action name, when the API reported one. */
2146
+ readonly action: string | undefined;
2147
+ /** The policy version quoted in the message, when the API quoted one. */
2148
+ readonly policyVersion: number | undefined;
2149
+ constructor(status: number, body: ErrorBody);
2150
+ }
2151
+
2152
+ export { AGENT_KEY_PREFIX, type ActionInputMap, type ActionName, type ActionWireOutputMap, type AgentPolicyDetail, type AgentPolicyRecord, type AgentRecord, type CliTokenIssued, type CommentRecord, type CurrentUser, type CycleListFilters, type CycleListItem, type CycleRecord, type DispatchResponse, type LabelListItem, type LabelRecord, type PriorityValue, type ProjectDetail, type ProjectListItem, type ProjectRecord, type StatusCategory, type StatusCategoryValue, type TaskDetail, type TaskListFilters, type TaskListItem, type TaskRecord, TasqApiError, type TasqAuth, TasqClient, type TasqClientOptions, TasqPolicyDeniedError, TasqRateLimitError, TasqValidationError, type TasqValidationIssue, type TeamDetail, type TeamListItem, type TeamRecord, type TeamStatus, USER_TOKEN_PREFIX, type WorkspaceDetail, type WorkspaceSummary };