@vercel/board 0.45.1 → 0.47.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.
Files changed (88) hide show
  1. package/dist/{access-3udXjJAg.mjs → access-C06pIr0M.mjs} +2 -2
  2. package/dist/access.d.mts +2 -2
  3. package/dist/access.mjs +5 -5
  4. package/dist/{actors-DasGZnfb.mjs → actors-Dkyg-oo0.mjs} +3 -3
  5. package/dist/{auth-aiOVE82-.mjs → auth-B9-wXQ-x.mjs} +29 -9
  6. package/dist/{auth-BG_whr9_.d.mts → auth-li3lKwJG.d.mts} +1 -1
  7. package/dist/{backend-D6yTo8Un.d.mts → backend-i_esjwUS.d.mts} +144 -5
  8. package/dist/backend-local.d.mts +1 -1
  9. package/dist/backend-local.mjs +1 -1
  10. package/dist/{chat-provider-V2jnjVLq.d.mts → chat-provider-BWBGZOZY.d.mts} +4 -2
  11. package/dist/{chat-provider-BvNqOQFL.mjs → chat-provider-CD7jskh7.mjs} +7 -4
  12. package/dist/cli-commands.d.mts +1 -1
  13. package/dist/cli-commands.mjs +1 -1
  14. package/dist/cli-embedded.d.mts +2 -2
  15. package/dist/cli-embedded.mjs +3 -2
  16. package/dist/cli.mjs +46 -15
  17. package/dist/{commands-DewS14_P.d.mts → commands-CJsOA-hf.d.mts} +60 -0
  18. package/dist/{commands-CqdnjUkm.mjs → commands-Dk6_cHLS.mjs} +325 -0
  19. package/dist/{conformance-BInS4_6b.mjs → conformance-CDP8y2Zm.mjs} +1063 -6
  20. package/dist/conformance.d.mts +6 -5
  21. package/dist/conformance.mjs +1 -1
  22. package/dist/{engine-XVBt02Bl.mjs → engine-j2VeNuKG.mjs} +51 -50
  23. package/dist/{errors-ZazTZh-s.mjs → errors-QhkdzI-o.mjs} +176 -9
  24. package/dist/{events-D17RndlV.mjs → events-MOcxGpOQ.mjs} +2 -2
  25. package/dist/{exports-DCxecX15.mjs → exports-CEqS-IPP.mjs} +1417 -84
  26. package/dist/exports-CF9rKCXd.d.mts +44 -0
  27. package/dist/{external-DfhN7lKK.mjs → external-BuVTXT1R.mjs} +7 -3
  28. package/dist/{index-Djmr4GzQ.d.mts → index-ttfx1TZ6.d.mts} +2 -2
  29. package/dist/index.d.mts +6 -6
  30. package/dist/index.mjs +5 -5
  31. package/dist/index.node.d.mts +7 -6
  32. package/dist/index.node.mjs +5 -4
  33. package/dist/inspect/app.js +215 -115
  34. package/dist/inspect/engine.js +5 -5
  35. package/dist/inspect-8YAhl_h3.mjs +2 -0
  36. package/dist/{inspect-CHsgnf_5.mjs → inspect-vOSrW_g6.mjs} +322 -50
  37. package/dist/{local-DE9vmanM.mjs → local-0ajWOVhN.mjs} +1673 -98
  38. package/dist/{main-CF1Me3jg.mjs → main-B8Zkd4Pm.mjs} +1282 -58
  39. package/dist/{memory-DyEL0fvN.mjs → memory-CMm-Fk_A.mjs} +2 -2
  40. package/dist/{mentions-DfZGp3B-.mjs → mentions-CnWt9Z5b.mjs} +34 -1
  41. package/dist/{middleware-BHHKHA9q.mjs → middleware-CT6vMNUc.mjs} +2 -2
  42. package/dist/{provider-BC9mPYVh.d.mts → provider-Bc3xI90K.d.mts} +199 -6
  43. package/dist/{routes-CkUetTO2.mjs → routes-ABXf3CKq.mjs} +261 -8
  44. package/dist/{routes-zm4TXKCC.d.mts → routes-CjA6Mp4D.d.mts} +610 -6
  45. package/dist/{schemas-BhZaystC.mjs → schemas-7VFdomFB.mjs} +34 -1
  46. package/dist/serve-BepKXDH3.mjs +285 -0
  47. package/dist/{server-Bmz0zqYM.mjs → server-4rQL3xuH.mjs} +41 -22
  48. package/dist/{serving-BLVRrJ7P.mjs → serving-BNdiReQT.mjs} +1 -1
  49. package/dist/{sql-CyVcjw8x.mjs → sql-IEbO5vXs.mjs} +174 -9
  50. package/dist/{sqlite-Con-8duk.mjs → sqlite-CVG8XKHm.mjs} +2 -2
  51. package/dist/{sqlite-db-BdzxtUOV.mjs → sqlite-db-BJjPQYx4.mjs} +1 -1
  52. package/dist/sync-chat-sdk.d.mts +16 -2
  53. package/dist/sync-chat-sdk.mjs +2 -2
  54. package/dist/sync-github.d.mts +16 -2
  55. package/dist/sync-github.mjs +3 -3
  56. package/dist/sync-linear.d.mts +17 -3
  57. package/dist/sync-linear.mjs +2 -2
  58. package/dist/sync-slack.d.mts +17 -3
  59. package/dist/sync-slack.mjs +107 -15
  60. package/dist/sync.d.mts +2 -2
  61. package/dist/sync.mjs +2 -2
  62. package/dist/{origin-BbwhnKrg.mjs → task-batch-BZXm6kOE.mjs} +83 -8
  63. package/dist/{tokens-BErYXuHZ.mjs → tokens-BCp4EWTQ.mjs} +2 -2
  64. package/docs/01-board/01-mounting.md +8 -5
  65. package/docs/01-board/03-identity.md +43 -23
  66. package/docs/01-board/04-messages.md +3 -2
  67. package/docs/01-board/06-watchers.md +3 -3
  68. package/docs/01-board/07-schedules.md +2 -2
  69. package/docs/01-board/08-middleware.md +7 -0
  70. package/docs/01-board/09-access.md +6 -4
  71. package/docs/01-board/10-local.md +4 -1
  72. package/docs/01-board/11-tasks.md +348 -0
  73. package/docs/02-sync/01-overview.md +4 -5
  74. package/docs/02-sync/02-functions.md +2 -2
  75. package/docs/02-sync/03-slack.md +8 -5
  76. package/docs/02-sync/06-providers.md +8 -0
  77. package/docs/03-guides/02-inspector.md +83 -10
  78. package/docs/03-guides/06-sandboxed-agents.md +7 -5
  79. package/docs/03-guides/07-build-a-ui.md +210 -0
  80. package/docs/03-guides/08-tailnet.md +123 -0
  81. package/docs/04-reference/01-cli.md +272 -23
  82. package/docs/04-reference/02-board.md +287 -7
  83. package/docs/04-reference/03-http.md +208 -13
  84. package/docs/04-reference/05-conformance.md +10 -7
  85. package/package.json +1 -1
  86. package/dist/exports-Gspe1eEq.d.mts +0 -4
  87. package/dist/inspect-C8U3A4jQ.mjs +0 -2
  88. package/dist/serve-CEMvl0EH.mjs +0 -181
@@ -117,6 +117,13 @@ declare const ExternalEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
117
117
  }, z.core.$strip>>;
118
118
  }, z.core.$strip>>;
119
119
  }, z.core.$strip>>>;
120
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
+ id: z.ZodString;
122
+ handle: z.ZodString;
123
+ name: z.ZodString;
124
+ avatar: z.ZodNullable<z.ZodString>;
125
+ isBot: z.ZodBoolean;
126
+ }, z.core.$strip>>>;
120
127
  }, z.core.$strip>, z.ZodObject<{
121
128
  channel: z.ZodString;
122
129
  thread: z.ZodString;
@@ -146,6 +153,13 @@ declare const ExternalEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
146
153
  }, z.core.$strip>>;
147
154
  }, z.core.$strip>>>;
148
155
  linksOnly: z.ZodOptional<z.ZodBoolean>;
156
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
157
+ id: z.ZodString;
158
+ handle: z.ZodString;
159
+ name: z.ZodString;
160
+ avatar: z.ZodNullable<z.ZodString>;
161
+ isBot: z.ZodBoolean;
162
+ }, z.core.$strip>>>;
149
163
  }, z.core.$strip>, z.ZodObject<{
150
164
  channel: z.ZodString;
151
165
  thread: z.ZodString;
@@ -241,6 +255,7 @@ declare const boardEvents: {
241
255
  n: z.ZodNumber;
242
256
  }, z.core.$strip>>;
243
257
  blind: z.ZodOptional<z.ZodLiteral<true>>;
258
+ along: z.ZodOptional<z.ZodNumber>;
244
259
  importedBy: z.ZodOptional<z.ZodString>;
245
260
  }, z.core.$strip>;
246
261
  /**
@@ -382,6 +397,156 @@ declare const boardEvents: {
382
397
  target: z.ZodString;
383
398
  error: z.ZodString;
384
399
  }, z.core.$strip>;
400
+ /**
401
+ * The thread rooted at `id` is a task, and `by.principal` owns it. It waits while it has `needs`,
402
+ * until `task.ready` says they've all completed; with none, it's ready.
403
+ */
404
+ 'task.created': z.ZodObject<{
405
+ id: z.ZodNumber;
406
+ thread: z.ZodString;
407
+ needs: z.ZodArray<z.ZodNumber>;
408
+ for: z.ZodNullable<z.ZodString>;
409
+ by: z.ZodObject<{
410
+ actor: z.ZodString;
411
+ principal: z.ZodString;
412
+ profile: z.ZodNullable<z.ZodString>;
413
+ }, z.core.$strip>;
414
+ }, z.core.$strip>;
415
+ /** Only actor `for` claims it now, or with null, anyone who may. */
416
+ 'task.assigned': z.ZodObject<{
417
+ id: z.ZodNumber;
418
+ thread: z.ZodString;
419
+ for: z.ZodNullable<z.ZodString>;
420
+ by: z.ZodObject<{
421
+ actor: z.ZodString;
422
+ principal: z.ZodString;
423
+ profile: z.ZodNullable<z.ZodString>;
424
+ }, z.core.$strip>;
425
+ }, z.core.$strip>;
426
+ /**
427
+ * It waits for `needs` now, in place of what it waited for. As from `task.created`, it waits
428
+ * while it has any, until `task.ready` says they've all completed, and with none it's ready. One
429
+ * that's held stays held.
430
+ */
431
+ 'task.needs_changed': z.ZodObject<{
432
+ id: z.ZodNumber;
433
+ thread: z.ZodString;
434
+ needs: z.ZodArray<z.ZodNumber>;
435
+ by: z.ZodObject<{
436
+ actor: z.ZodString;
437
+ principal: z.ZodString;
438
+ profile: z.ZodNullable<z.ZodString>;
439
+ }, z.core.$strip>;
440
+ }, z.core.$strip>;
441
+ /** (server) Every task it needs has completed. */
442
+ 'task.ready': z.ZodObject<{
443
+ id: z.ZodNumber;
444
+ thread: z.ZodString;
445
+ }, z.core.$strip>;
446
+ /** (server) `by` holds it until `until`. `token` is the SHA-256 of the claim's secret, hex: no view shows it. */
447
+ 'task.claimed': z.ZodObject<{
448
+ id: z.ZodNumber;
449
+ thread: z.ZodString;
450
+ epoch: z.ZodNumber;
451
+ until: z.ZodString;
452
+ token: z.ZodString;
453
+ by: z.ZodObject<{
454
+ actor: z.ZodString;
455
+ principal: z.ZodString;
456
+ profile: z.ZodNullable<z.ZodString>;
457
+ }, z.core.$strip>;
458
+ }, z.core.$strip>;
459
+ 'task.renewed': z.ZodObject<{
460
+ id: z.ZodNumber;
461
+ thread: z.ZodString;
462
+ epoch: z.ZodNumber;
463
+ until: z.ZodString;
464
+ by: z.ZodObject<{
465
+ actor: z.ZodString;
466
+ principal: z.ZodString;
467
+ profile: z.ZodNullable<z.ZodString>;
468
+ }, z.core.$strip>;
469
+ }, z.core.$strip>;
470
+ 'task.released': z.ZodObject<{
471
+ id: z.ZodNumber;
472
+ thread: z.ZodString;
473
+ epoch: z.ZodNumber;
474
+ by: z.ZodObject<{
475
+ actor: z.ZodString;
476
+ principal: z.ZodString;
477
+ profile: z.ZodNullable<z.ZodString>;
478
+ }, z.core.$strip>;
479
+ }, z.core.$strip>;
480
+ /** (server) Its lease ran out. */
481
+ 'task.expired': z.ZodObject<{
482
+ id: z.ZodNumber;
483
+ thread: z.ZodString;
484
+ epoch: z.ZodNumber;
485
+ }, z.core.$strip>;
486
+ 'task.completed': z.ZodObject<{
487
+ id: z.ZodNumber;
488
+ thread: z.ZodString;
489
+ epoch: z.ZodNumber;
490
+ result: z.ZodNullable<z.ZodString>;
491
+ by: z.ZodObject<{
492
+ actor: z.ZodString;
493
+ principal: z.ZodString;
494
+ profile: z.ZodNullable<z.ZodString>;
495
+ }, z.core.$strip>;
496
+ }, z.core.$strip>;
497
+ 'task.failed': z.ZodObject<{
498
+ id: z.ZodNumber;
499
+ thread: z.ZodString;
500
+ epoch: z.ZodNumber;
501
+ reason: z.ZodString;
502
+ by: z.ZodObject<{
503
+ actor: z.ZodString;
504
+ principal: z.ZodString;
505
+ profile: z.ZodNullable<z.ZodString>;
506
+ }, z.core.$strip>;
507
+ }, z.core.$strip>;
508
+ /** Held for a person, which ends any claim. Kind `edited` is the board's: `by` edited its root, and isn't its owner. */
509
+ 'task.blocked': z.ZodObject<{
510
+ id: z.ZodNumber;
511
+ thread: z.ZodString;
512
+ kind: z.ZodNullable<z.ZodString>;
513
+ reason: z.ZodString;
514
+ by: z.ZodObject<{
515
+ actor: z.ZodString;
516
+ principal: z.ZodString;
517
+ profile: z.ZodNullable<z.ZodString>;
518
+ }, z.core.$strip>;
519
+ }, z.core.$strip>;
520
+ 'task.unblocked': z.ZodObject<{
521
+ id: z.ZodNumber;
522
+ thread: z.ZodString;
523
+ by: z.ZodObject<{
524
+ actor: z.ZodString;
525
+ principal: z.ZodString;
526
+ profile: z.ZodNullable<z.ZodString>;
527
+ }, z.core.$strip>;
528
+ }, z.core.$strip>;
529
+ /** Reason `deleted` when its root was. */
530
+ 'task.canceled': z.ZodObject<{
531
+ id: z.ZodNumber;
532
+ thread: z.ZodString;
533
+ reason: z.ZodString;
534
+ by: z.ZodObject<{
535
+ actor: z.ZodString;
536
+ principal: z.ZodString;
537
+ profile: z.ZodNullable<z.ZodString>;
538
+ }, z.core.$strip>;
539
+ }, z.core.$strip>;
540
+ /** A failed task is ready again. */
541
+ 'task.reopened': z.ZodObject<{
542
+ id: z.ZodNumber;
543
+ thread: z.ZodString;
544
+ by: z.ZodObject<{
545
+ actor: z.ZodString;
546
+ principal: z.ZodString;
547
+ profile: z.ZodNullable<z.ZodString>;
548
+ }, z.core.$strip>;
549
+ }, z.core.$strip>;
385
550
  'actor.seen': z.ZodObject<{
386
551
  actor: z.ZodString;
387
552
  kind: z.ZodUnion<readonly [z.ZodEnum<{
@@ -438,6 +603,17 @@ declare const Attachment: z.ZodObject<{
438
603
  type: z.ZodString;
439
604
  size: z.ZodNumber;
440
605
  }, z.core.$strip>;
606
+ /** What a task is doing: its root's `board.task` label. */
607
+ declare const TaskState: z.ZodEnum<{
608
+ blocked: "blocked";
609
+ canceled: "canceled";
610
+ claimed: "claimed";
611
+ completed: "completed";
612
+ failed: "failed";
613
+ ready: "ready";
614
+ waiting: "waiting";
615
+ }>;
616
+ type TaskState = z.infer<typeof TaskState>;
441
617
  type Labels = z.infer<typeof Labels>;
442
618
  type ActorKind = z.infer<typeof ActorKind>;
443
619
  type Author = z.infer<typeof Author>;
@@ -451,6 +627,37 @@ type Via = {
451
627
  };
452
628
  //#endregion
453
629
  //#region src/contract/folds.d.ts
630
+ /**
631
+ * A task as the board keeps it on its root: the state the root's `board.task` label wears, and what
632
+ * goes with it. Views show all of it but a claim's `token`.
633
+ */
634
+ type Task = {
635
+ state: TaskState;
636
+ /** The principal that made the thread a task. */
637
+ owner: string;
638
+ /** The actor it did that as: itself, or one of its profiles, which is held to the tasks it made. */
639
+ by: string;
640
+ /** The one actor that claims it, or null when anyone who may does. */
641
+ for: string | null;
642
+ /** The tasks it waits for, by their roots' IDs. */
643
+ needs: number[];
644
+ /** How many times it's been claimed: a claim's writes carry the epoch it was made at. */
645
+ epoch: number;
646
+ /** Who holds it, until when. `token` is the SHA-256 of the claim's secret, hex. */
647
+ claim: {
648
+ actor: string;
649
+ until: string;
650
+ token: string;
651
+ } | null;
652
+ blocked: {
653
+ kind: string | null;
654
+ reason: string;
655
+ } | null;
656
+ /** What it came to, once it's completed. */
657
+ result: string | null;
658
+ /** Why it failed or was canceled. */
659
+ reason: string | null;
660
+ };
454
661
  type Message = {
455
662
  id: number;
456
663
  channel: string;
@@ -480,6 +687,8 @@ type Message = {
480
687
  id: number;
481
688
  n: number;
482
689
  };
690
+ /** Set on a root that's a task. Its `state` is the root's `board.task` label too, while the root isn't deleted. */
691
+ task?: Task;
483
692
  /**
484
693
  * Set when its author couldn't read its channel, as `authorizeOwn` checks: where they can't read,
485
694
  * it's theirs to edit and delete only then. Its event's payload says so too.
@@ -697,7 +906,10 @@ declare const MessagesQuery: z.ZodObject<{
697
906
  before: z.ZodOptional<z.ZodString>;
698
907
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
699
908
  }, z.core.$strip>;
700
- /** `limit` counts threads: each thread with a matching message, by its latest reply. */
909
+ /**
910
+ * `limit` counts threads: each thread with a matching message, by its latest reply. `before` is a page's
911
+ * `older`, for the threads last active before it; it pages backward, so it takes no `after`.
912
+ */
701
913
  declare const ThreadsQuery: z.ZodObject<{
702
914
  channel: z.ZodOptional<z.ZodString>;
703
915
  re: z.ZodOptional<z.ZodString>;
@@ -707,6 +919,7 @@ declare const ThreadsQuery: z.ZodObject<{
707
919
  from: z.ZodOptional<z.ZodString>;
708
920
  text: z.ZodOptional<z.ZodString>;
709
921
  after: z.ZodOptional<z.ZodString>;
922
+ before: z.ZodOptional<z.ZodString>;
710
923
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
711
924
  }, z.core.$strip>;
712
925
  declare const EventsQuery: z.ZodObject<{
@@ -774,6 +987,132 @@ declare const SchedulesQuery: z.ZodObject<{
774
987
  true: "true";
775
988
  }>, z.ZodTransform<boolean, "0" | "1" | "false" | "true">>>;
776
989
  }, z.core.$strip>;
990
+ /** What a claim gets when it asks for no lease, in seconds. */
991
+ declare const LEASE_DEFAULT_S = 900;
992
+ /**
993
+ * A new thread that's a task (`channel` and `text`, with `labels`, `noSync`, `attachments`, and an
994
+ * `id` as a post takes them), or the thread `re` roots made one. `needs` are the tasks it waits for,
995
+ * `for` the one actor of its owner's that claims it, and `claim` claims it in the same write, for
996
+ * `lease` seconds.
997
+ */
998
+ declare const CreateTaskBody: z.ZodObject<{
999
+ channel: z.ZodOptional<z.ZodString>;
1000
+ re: z.ZodOptional<z.ZodString>;
1001
+ text: z.ZodOptional<z.ZodString>;
1002
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1003
+ noSync: z.ZodOptional<z.ZodBoolean>;
1004
+ attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
1005
+ needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1006
+ for: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1007
+ claim: z.ZodOptional<z.ZodBoolean>;
1008
+ lease: z.ZodOptional<z.ZodNumber>;
1009
+ id: z.ZodOptional<z.ZodString>;
1010
+ }, z.core.$strip>;
1011
+ /**
1012
+ * Several new threads in one channel, each a task, made in one write: all of them or none. A task is
1013
+ * what `POST /tasks` starts a thread with, less `claim`. `key` names it for the batch's others, and
1014
+ * `needs` takes a task's ID, or `{ key }` for one of the batch, before or after it. `id` names the
1015
+ * batch: a retry with it answers the same tasks. At most `TASK_BATCH_MAX` tasks, 400
1016
+ * `batch_too_large` past that, which a board that holds fewer in one write answers too.
1017
+ */
1018
+ declare const CreateTasksBody: z.ZodObject<{
1019
+ channel: z.ZodString;
1020
+ tasks: z.ZodArray<z.ZodObject<{
1021
+ key: z.ZodOptional<z.ZodString>;
1022
+ text: z.ZodString;
1023
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1024
+ noSync: z.ZodOptional<z.ZodBoolean>;
1025
+ attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
1026
+ needs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1027
+ key: z.ZodString;
1028
+ }, z.core.$strict>]>>>;
1029
+ for: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1030
+ }, z.core.$strip>>;
1031
+ id: z.ZodOptional<z.ZodString>;
1032
+ request: z.ZodOptional<z.ZodString>;
1033
+ }, z.core.$strip>;
1034
+ /**
1035
+ * `request` is a board's digest of what a batch asked for, as it was given: with it, the batch
1036
+ * answers only that request, and any other under the `id` is 409 `duplicate_id`.
1037
+ */
1038
+ declare const CreatedTasksQuery: z.ZodObject<{
1039
+ request: z.ZodOptional<z.ZodString>;
1040
+ }, z.core.$strip>;
1041
+ /** Which tasks to list: open ones unless `state` says `all` or names one. A claim whose lease has run out counts as `ready`. */
1042
+ declare const TasksQuery: z.ZodObject<{
1043
+ channel: z.ZodOptional<z.ZodString>;
1044
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1045
+ all: "all";
1046
+ open: "open";
1047
+ }>, z.ZodEnum<{
1048
+ blocked: "blocked";
1049
+ canceled: "canceled";
1050
+ claimed: "claimed";
1051
+ completed: "completed";
1052
+ failed: "failed";
1053
+ ready: "ready";
1054
+ waiting: "waiting";
1055
+ }>]>>;
1056
+ label: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<readonly [string, null] | readonly [string, string[]], string>>>>>;
1057
+ by: z.ZodOptional<z.ZodString>;
1058
+ owner: z.ZodOptional<z.ZodString>;
1059
+ for: z.ZodOptional<z.ZodString>;
1060
+ needs: z.ZodOptional<z.ZodString>;
1061
+ after: z.ZodOptional<z.ZodString>;
1062
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1063
+ }, z.core.$strip>;
1064
+ declare const ClaimTaskBody: z.ZodOptional<z.ZodObject<{
1065
+ lease: z.ZodOptional<z.ZodNumber>;
1066
+ }, z.core.$strip>>;
1067
+ /**
1068
+ * Claims the oldest ready task in `channel` that has every label in `label`: one assigned to the
1069
+ * caller first, then an unassigned one it owns, or whose owner `from` names by ID. `wait`
1070
+ * holds the request up to that many seconds for one.
1071
+ */
1072
+ declare const ClaimReadyTaskBody: z.ZodObject<{
1073
+ channel: z.ZodString;
1074
+ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1075
+ from: z.ZodOptional<z.ZodArray<z.ZodString>>;
1076
+ lease: z.ZodOptional<z.ZodNumber>;
1077
+ wait: z.ZodOptional<z.ZodNumber>;
1078
+ }, z.core.$strip>;
1079
+ declare const RenewTaskBody: z.ZodObject<{
1080
+ epoch: z.ZodNumber;
1081
+ token: z.ZodString;
1082
+ lease: z.ZodOptional<z.ZodNumber>;
1083
+ }, z.core.$strip>;
1084
+ declare const ReleaseTaskBody: z.ZodObject<{
1085
+ epoch: z.ZodNumber;
1086
+ token: z.ZodString;
1087
+ }, z.core.$strip>;
1088
+ declare const CompleteTaskBody: z.ZodObject<{
1089
+ epoch: z.ZodNumber;
1090
+ token: z.ZodString;
1091
+ result: z.ZodOptional<z.ZodString>;
1092
+ }, z.core.$strip>;
1093
+ declare const FailTaskBody: z.ZodObject<{
1094
+ epoch: z.ZodNumber;
1095
+ token: z.ZodString;
1096
+ reason: z.ZodString;
1097
+ }, z.core.$strip>;
1098
+ /** A hold for a person. A claimed task's comes from its claim, with the claim's `epoch` and `token`. Kind `edited` is the board's own, so none asks for it. */
1099
+ declare const BlockTaskBody: z.ZodObject<{
1100
+ reason: z.ZodString;
1101
+ kind: z.ZodOptional<z.ZodString>;
1102
+ epoch: z.ZodOptional<z.ZodNumber>;
1103
+ token: z.ZodOptional<z.ZodString>;
1104
+ }, z.core.$strip>;
1105
+ /** The one actor of its owner's that claims the task, or null for anyone who may. */
1106
+ declare const AssignTaskBody: z.ZodObject<{
1107
+ for: z.ZodNullable<z.ZodString>;
1108
+ }, z.core.$strip>;
1109
+ /** The tasks it waits for now, in place of what it waited for: none, for a task that waits for nothing. How many it may wait for is the backend's to say. */
1110
+ declare const TaskNeedsBody: z.ZodObject<{
1111
+ needs: z.ZodArray<z.ZodString>;
1112
+ }, z.core.$strip>;
1113
+ declare const CancelTaskBody: z.ZodObject<{
1114
+ reason: z.ZodString;
1115
+ }, z.core.$strip>;
777
1116
  /**
778
1117
  * Who a grant names, as people write it: a user by email (or, where the board can't look one up,
779
1118
  * by ID), a project by name or ID, a repository by `owner/name`. The board resolves names and keeps
@@ -1058,6 +1397,13 @@ declare const SyncImportBody: z.ZodDiscriminatedUnion<[z.ZodObject<{
1058
1397
  unavailable: z.ZodNullable<z.ZodString>;
1059
1398
  message: z.ZodNullable<z.ZodString>;
1060
1399
  }, z.core.$strip>>>;
1400
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
1401
+ id: z.ZodString;
1402
+ handle: z.ZodString;
1403
+ name: z.ZodString;
1404
+ isBot: z.ZodBoolean;
1405
+ avatar: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | null, string | null>>;
1406
+ }, z.core.$strip>>>;
1061
1407
  id: z.ZodOptional<z.ZodString>;
1062
1408
  after: z.ZodOptional<z.ZodString>;
1063
1409
  }, z.core.$strip>, z.ZodObject<{
@@ -1082,6 +1428,13 @@ declare const SyncImportBody: z.ZodDiscriminatedUnion<[z.ZodObject<{
1082
1428
  thread: z.ZodString;
1083
1429
  }, z.core.$strip>>;
1084
1430
  revision: z.ZodOptional<z.ZodNumber>;
1431
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
1432
+ id: z.ZodString;
1433
+ handle: z.ZodString;
1434
+ name: z.ZodString;
1435
+ isBot: z.ZodBoolean;
1436
+ avatar: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | null, string | null>>;
1437
+ }, z.core.$strip>>>;
1085
1438
  }, z.core.$strip>, z.ZodObject<{
1086
1439
  author: z.ZodObject<{
1087
1440
  id: z.ZodString;
@@ -1254,6 +1607,13 @@ declare const InboxPushBody: z.ZodObject<{
1254
1607
  }, z.core.$strip>>;
1255
1608
  }, z.core.$strip>>;
1256
1609
  }, z.core.$strip>>>;
1610
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
1611
+ id: z.ZodString;
1612
+ handle: z.ZodString;
1613
+ name: z.ZodString;
1614
+ avatar: z.ZodNullable<z.ZodString>;
1615
+ isBot: z.ZodBoolean;
1616
+ }, z.core.$strip>>>;
1257
1617
  }, z.core.$strip>, z.ZodObject<{
1258
1618
  channel: z.ZodString;
1259
1619
  thread: z.ZodString;
@@ -1283,6 +1643,13 @@ declare const InboxPushBody: z.ZodObject<{
1283
1643
  }, z.core.$strip>>;
1284
1644
  }, z.core.$strip>>>;
1285
1645
  linksOnly: z.ZodOptional<z.ZodBoolean>;
1646
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
1647
+ id: z.ZodString;
1648
+ handle: z.ZodString;
1649
+ name: z.ZodString;
1650
+ avatar: z.ZodNullable<z.ZodString>;
1651
+ isBot: z.ZodBoolean;
1652
+ }, z.core.$strip>>>;
1286
1653
  }, z.core.$strip>, z.ZodObject<{
1287
1654
  channel: z.ZodString;
1288
1655
  thread: z.ZodString;
@@ -1383,6 +1750,10 @@ declare const LabelBody: z.ZodObject<{
1383
1750
  unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
1384
1751
  if: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
1385
1752
  }, z.core.$strip>;
1753
+ type CreateTaskInput = z.input<typeof CreateTaskBody>;
1754
+ type CreateTasksInput = z.input<typeof CreateTasksBody>;
1755
+ type TasksQueryInput = z.input<typeof TasksQuery>;
1756
+ type ClaimReadyTaskInput = z.input<typeof ClaimReadyTaskBody>;
1386
1757
  type FiltersInput = z.input<typeof Filters>;
1387
1758
  type SyncImportInput = z.input<typeof SyncImportBody>;
1388
1759
  type SyncReceiptInput = z.input<typeof SyncReceiptBody>;
@@ -1542,6 +1913,26 @@ type SchemaView = {
1542
1913
  by: string | null;
1543
1914
  at: string | null;
1544
1915
  };
1916
+ /**
1917
+ * A task, on its root: its state (the root's `board.task` label too), whose it is and which of its
1918
+ * owner's actors made it one (`by`, who changes it as its owner), what it waits for, and who holds
1919
+ * it until when. A claim's token shows nowhere but in the answer that made it.
1920
+ */
1921
+ type TaskView = Omit<Task, 'needs' | 'claim'> & {
1922
+ /** The tasks it waits for, by their IDs. */
1923
+ needs: string[];
1924
+ /** Who holds it. One whose `until` has passed is over: the task is claimable, and `ready` once the board says so. */
1925
+ claim: {
1926
+ actor: string;
1927
+ until: string;
1928
+ } | null;
1929
+ };
1930
+ /** What a claim answers, once: `epoch` and `token` go on every write the claim makes, until `until`. */
1931
+ type TaskClaim = {
1932
+ epoch: number;
1933
+ token: string;
1934
+ until: string;
1935
+ };
1545
1936
  /**
1546
1937
  * `kind` says who wrote it: a `person` or a platform user (`external`), an agent (`profile`), or a deployment or workflow.
1547
1938
  * `via` is who one with a profile acts through: an agent's person or project, or the principal whose sync speaks for a
@@ -1554,7 +1945,7 @@ type ActorView = Pick<Actor, 'kind' | 'handle' | 'name' | 'avatar' | 'via' | 'pl
1554
1945
  verified?: true;
1555
1946
  };
1556
1947
  /** A message as clients see it: its IDs are refs, and `version` says which of two views of it is newer. */
1557
- type MessageView = Omit<Message, 'id' | 're' | 'replyTo' | 'links' | 'schedule' | 'version' | 'revision' | 'platformText'> & {
1948
+ type MessageView = Omit<Message, 'id' | 're' | 'replyTo' | 'links' | 'schedule' | 'task' | 'version' | 'revision' | 'platformText'> & {
1558
1949
  id: string;
1559
1950
  /** The thread's root, or null for a root. */
1560
1951
  re: string | null;
@@ -1573,6 +1964,8 @@ type MessageView = Omit<Message, 'id' | 're' | 'replyTo' | 'links' | 'schedule'
1573
1964
  id: string;
1574
1965
  n: number;
1575
1966
  };
1967
+ /** Set on a root that's a task. */
1968
+ task?: TaskView;
1576
1969
  author: ActorView | null;
1577
1970
  /**
1578
1971
  * The data its text carries, in order: each fence that names a schema (```json#sandbox@1), which
@@ -1592,8 +1985,8 @@ type BlockView = {
1592
1985
  type LinkView = Omit<Link, 'message'> & {
1593
1986
  message: string | null;
1594
1987
  };
1595
- /** An event's payload as clients see it: message IDs are refs. */
1596
- type PayloadView<P> = { [K in keyof P]: K extends 'id' | 're' | 'replyTo' ? P[K] extends number ? string : P[K] extends number | null ? string | null : P[K] : K extends 'links' ? LinkView[] : K extends 'schedule' ? P[K] extends undefined ? undefined : {
1988
+ /** An event's payload as clients see it: message IDs are refs, and a claim's `token` is left out. */
1989
+ type PayloadView<P> = { [K in keyof P as K extends 'token' ? never : K]: K extends 'id' | 're' | 'replyTo' ? P[K] extends number ? string : P[K] extends number | null ? string | null : P[K] : K extends 'links' ? LinkView[] : K extends 'needs' ? string[] : K extends 'schedule' ? P[K] extends undefined ? undefined : {
1597
1990
  id: string;
1598
1991
  n: number;
1599
1992
  } | Exclude<P[K], object> : P[K]; };
@@ -1769,6 +2162,16 @@ type ThreadSummaryView = {
1769
2162
  type ThreadsPage = {
1770
2163
  threads: ThreadSummaryView[];
1771
2164
  cursor: string;
2165
+ /**
2166
+ * The `before` for the threads last active before this page's, or null when there are none. A board that pages
2167
+ * threads backward sends it on every read without `after`; one from before it leaves it out.
2168
+ */
2169
+ older?: string | null;
2170
+ };
2171
+ /** Tasks, oldest first, each as its thread's summary: `message.task` is the task. `cursor` reads the next page, as `after`. */
2172
+ type TasksPage = {
2173
+ tasks: ThreadSummaryView[];
2174
+ cursor: string;
1772
2175
  };
1773
2176
  type EventsPage = {
1774
2177
  events: BoardEventView[];
@@ -1881,7 +2284,7 @@ declare const routes: {
1881
2284
  readonly method: 'GET';
1882
2285
  readonly path: '/messages/:id';
1883
2286
  };
1884
- /** Threads with a matching message, one summary each, by latest activity. */
2287
+ /** Threads with a matching message, one summary each, by latest activity. `before` takes a page's `older`. */
1885
2288
  readonly threads: {
1886
2289
  readonly method: 'GET';
1887
2290
  readonly path: '/threads';
@@ -1894,6 +2297,7 @@ declare const routes: {
1894
2297
  from: z.ZodOptional<z.ZodString>;
1895
2298
  text: z.ZodOptional<z.ZodString>;
1896
2299
  after: z.ZodOptional<z.ZodString>;
2300
+ before: z.ZodOptional<z.ZodString>;
1897
2301
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1898
2302
  }, z.core.$strip>;
1899
2303
  };
@@ -2018,6 +2422,178 @@ declare const routes: {
2018
2422
  readonly method: 'POST';
2019
2423
  readonly path: '/schedules/:id/cancel';
2020
2424
  };
2425
+ /** Tasks, oldest first: open ones unless `state` says otherwise. */
2426
+ readonly tasks: {
2427
+ readonly method: 'GET';
2428
+ readonly path: '/tasks';
2429
+ readonly query: z.ZodObject<{
2430
+ channel: z.ZodOptional<z.ZodString>;
2431
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2432
+ all: "all";
2433
+ open: "open";
2434
+ }>, z.ZodEnum<{
2435
+ blocked: "blocked";
2436
+ canceled: "canceled";
2437
+ claimed: "claimed";
2438
+ completed: "completed";
2439
+ failed: "failed";
2440
+ ready: "ready";
2441
+ waiting: "waiting";
2442
+ }>]>>;
2443
+ label: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<readonly [string, null] | readonly [string, string[]], string>>>>>;
2444
+ by: z.ZodOptional<z.ZodString>;
2445
+ owner: z.ZodOptional<z.ZodString>;
2446
+ for: z.ZodOptional<z.ZodString>;
2447
+ needs: z.ZodOptional<z.ZodString>;
2448
+ after: z.ZodOptional<z.ZodString>;
2449
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2450
+ }, z.core.$strip>;
2451
+ };
2452
+ /** Starts a thread as a task (`post` there, and `label` for its labels), or makes the thread `re` roots one (`label` there). */
2453
+ readonly createTask: {
2454
+ readonly method: 'POST';
2455
+ readonly path: '/tasks';
2456
+ readonly body: z.ZodObject<{
2457
+ channel: z.ZodOptional<z.ZodString>;
2458
+ re: z.ZodOptional<z.ZodString>;
2459
+ text: z.ZodOptional<z.ZodString>;
2460
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2461
+ noSync: z.ZodOptional<z.ZodBoolean>;
2462
+ attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
2463
+ needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2464
+ for: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2465
+ claim: z.ZodOptional<z.ZodBoolean>;
2466
+ lease: z.ZodOptional<z.ZodNumber>;
2467
+ id: z.ZodOptional<z.ZodString>;
2468
+ }, z.core.$strip>;
2469
+ };
2470
+ /** Starts several threads in one channel as tasks, in one write: all of them or none, and nothing shows before all have landed. */
2471
+ readonly createTasks: {
2472
+ readonly method: 'POST';
2473
+ readonly path: '/tasks/batch';
2474
+ readonly body: z.ZodObject<{
2475
+ channel: z.ZodString;
2476
+ tasks: z.ZodArray<z.ZodObject<{
2477
+ key: z.ZodOptional<z.ZodString>;
2478
+ text: z.ZodString;
2479
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2480
+ noSync: z.ZodOptional<z.ZodBoolean>;
2481
+ attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
2482
+ needs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2483
+ key: z.ZodString;
2484
+ }, z.core.$strict>]>>>;
2485
+ for: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2486
+ }, z.core.$strip>>;
2487
+ id: z.ZodOptional<z.ZodString>;
2488
+ request: z.ZodOptional<z.ZodString>;
2489
+ }, z.core.$strip>;
2490
+ };
2491
+ /** The caller's own batch made under the `id` it gave, its tasks as they are now: for telling a retry before making anything. */
2492
+ readonly createdTasks: {
2493
+ readonly method: 'GET';
2494
+ readonly path: '/tasks/batch/:id';
2495
+ readonly query: z.ZodObject<{
2496
+ request: z.ZodOptional<z.ZodString>;
2497
+ }, z.core.$strip>;
2498
+ };
2499
+ /** Claims the oldest ready task in a channel or subtree: `label` where it is. Answers `{ task: null }` when none is. */
2500
+ readonly claimReadyTask: {
2501
+ readonly method: 'POST';
2502
+ readonly path: '/tasks/claim';
2503
+ readonly body: z.ZodObject<{
2504
+ channel: z.ZodString;
2505
+ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2506
+ from: z.ZodOptional<z.ZodArray<z.ZodString>>;
2507
+ lease: z.ZodOptional<z.ZodNumber>;
2508
+ wait: z.ZodOptional<z.ZodNumber>;
2509
+ }, z.core.$strip>;
2510
+ };
2511
+ /** Claims a task: `label` in its channel. Its answer's `claim` goes on what the claim does next. */
2512
+ readonly claimTask: {
2513
+ readonly method: 'POST';
2514
+ readonly path: '/tasks/:id/claim';
2515
+ readonly body: z.ZodOptional<z.ZodObject<{
2516
+ lease: z.ZodOptional<z.ZodNumber>;
2517
+ }, z.core.$strip>>;
2518
+ };
2519
+ /** What a claim does, with its `epoch` and `token`: 409 `claim_lost` once it's over. */
2520
+ readonly renewTask: {
2521
+ readonly method: 'POST';
2522
+ readonly path: '/tasks/:id/renew';
2523
+ readonly body: z.ZodObject<{
2524
+ epoch: z.ZodNumber;
2525
+ token: z.ZodString;
2526
+ lease: z.ZodOptional<z.ZodNumber>;
2527
+ }, z.core.$strip>;
2528
+ };
2529
+ readonly releaseTask: {
2530
+ readonly method: 'POST';
2531
+ readonly path: '/tasks/:id/release';
2532
+ readonly body: z.ZodObject<{
2533
+ epoch: z.ZodNumber;
2534
+ token: z.ZodString;
2535
+ }, z.core.$strip>;
2536
+ };
2537
+ readonly completeTask: {
2538
+ readonly method: 'POST';
2539
+ readonly path: '/tasks/:id/complete';
2540
+ readonly body: z.ZodObject<{
2541
+ epoch: z.ZodNumber;
2542
+ token: z.ZodString;
2543
+ result: z.ZodOptional<z.ZodString>;
2544
+ }, z.core.$strip>;
2545
+ };
2546
+ readonly failTask: {
2547
+ readonly method: 'POST';
2548
+ readonly path: '/tasks/:id/fail';
2549
+ readonly body: z.ZodObject<{
2550
+ epoch: z.ZodNumber;
2551
+ token: z.ZodString;
2552
+ reason: z.ZodString;
2553
+ }, z.core.$strip>;
2554
+ };
2555
+ /** Holds a task for a person: its claim while it's claimed, its owner or `manage` in its channel otherwise. */
2556
+ readonly blockTask: {
2557
+ readonly method: 'POST';
2558
+ readonly path: '/tasks/:id/block';
2559
+ readonly body: z.ZodObject<{
2560
+ reason: z.ZodString;
2561
+ kind: z.ZodOptional<z.ZodString>;
2562
+ epoch: z.ZodOptional<z.ZodNumber>;
2563
+ token: z.ZodOptional<z.ZodString>;
2564
+ }, z.core.$strip>;
2565
+ };
2566
+ /** What a task's owner does, or `manage` in its channel. */
2567
+ readonly unblockTask: {
2568
+ readonly method: 'POST';
2569
+ readonly path: '/tasks/:id/unblock';
2570
+ };
2571
+ readonly reopenTask: {
2572
+ readonly method: 'POST';
2573
+ readonly path: '/tasks/:id/reopen';
2574
+ };
2575
+ readonly assignTask: {
2576
+ readonly method: 'POST';
2577
+ readonly path: '/tasks/:id/assign';
2578
+ readonly body: z.ZodObject<{
2579
+ for: z.ZodNullable<z.ZodString>;
2580
+ }, z.core.$strip>;
2581
+ };
2582
+ /** Replaces what a task waits for, while no one holds it and it isn't finished. */
2583
+ readonly setTaskNeeds: {
2584
+ readonly method: 'POST';
2585
+ readonly path: '/tasks/:id/needs';
2586
+ readonly body: z.ZodObject<{
2587
+ needs: z.ZodArray<z.ZodString>;
2588
+ }, z.core.$strip>;
2589
+ };
2590
+ readonly cancelTask: {
2591
+ readonly method: 'POST';
2592
+ readonly path: '/tasks/:id/cancel';
2593
+ readonly body: z.ZodObject<{
2594
+ reason: z.ZodString;
2595
+ }, z.core.$strip>;
2596
+ };
2021
2597
  /** Listing grants needs manage at `*`; changing one, manage at each pattern its `can` names. Team owners always may. */
2022
2598
  readonly grants: {
2023
2599
  readonly method: 'GET';
@@ -2237,6 +2813,13 @@ declare const routes: {
2237
2813
  }, z.core.$strip>>;
2238
2814
  }, z.core.$strip>>;
2239
2815
  }, z.core.$strip>>>;
2816
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
2817
+ id: z.ZodString;
2818
+ handle: z.ZodString;
2819
+ name: z.ZodString;
2820
+ avatar: z.ZodNullable<z.ZodString>;
2821
+ isBot: z.ZodBoolean;
2822
+ }, z.core.$strip>>>;
2240
2823
  }, z.core.$strip>, z.ZodObject<{
2241
2824
  channel: z.ZodString;
2242
2825
  thread: z.ZodString;
@@ -2266,6 +2849,13 @@ declare const routes: {
2266
2849
  }, z.core.$strip>>;
2267
2850
  }, z.core.$strip>>>;
2268
2851
  linksOnly: z.ZodOptional<z.ZodBoolean>;
2852
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
2853
+ id: z.ZodString;
2854
+ handle: z.ZodString;
2855
+ name: z.ZodString;
2856
+ avatar: z.ZodNullable<z.ZodString>;
2857
+ isBot: z.ZodBoolean;
2858
+ }, z.core.$strip>>>;
2269
2859
  }, z.core.$strip>, z.ZodObject<{
2270
2860
  channel: z.ZodString;
2271
2861
  thread: z.ZodString;
@@ -2376,6 +2966,13 @@ declare const routes: {
2376
2966
  unavailable: z.ZodNullable<z.ZodString>;
2377
2967
  message: z.ZodNullable<z.ZodString>;
2378
2968
  }, z.core.$strip>>>;
2969
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
2970
+ id: z.ZodString;
2971
+ handle: z.ZodString;
2972
+ name: z.ZodString;
2973
+ isBot: z.ZodBoolean;
2974
+ avatar: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | null, string | null>>;
2975
+ }, z.core.$strip>>>;
2379
2976
  id: z.ZodOptional<z.ZodString>;
2380
2977
  after: z.ZodOptional<z.ZodString>;
2381
2978
  }, z.core.$strip>, z.ZodObject<{
@@ -2400,6 +2997,13 @@ declare const routes: {
2400
2997
  thread: z.ZodString;
2401
2998
  }, z.core.$strip>>;
2402
2999
  revision: z.ZodOptional<z.ZodNumber>;
3000
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
3001
+ id: z.ZodString;
3002
+ handle: z.ZodString;
3003
+ name: z.ZodString;
3004
+ isBot: z.ZodBoolean;
3005
+ avatar: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | null, string | null>>;
3006
+ }, z.core.$strip>>>;
2403
3007
  }, z.core.$strip>, z.ZodObject<{
2404
3008
  author: z.ZodObject<{
2405
3009
  id: z.ZodString;
@@ -2677,4 +3281,4 @@ declare const routes: {
2677
3281
  };
2678
3282
  type RouteName = keyof typeof routes;
2679
3283
  //#endregion
2680
- export { ScheduleBody as $, compileAccess as $t, LabelBody as A, ThreadsQueryInput as At, ParsedFilters as B, Can as Bt, InboxAckBody as C, SyncReceiptInput as Ct, InboxPushBody as D, ThreadView as Dt, InboxNextQuery as E, ThreadSummaryView as Et, Me as F, UploadStartBody as Ft, REGISTERED_WATCHERS_MAX as G, GrantChangeRefusal as Gt, PostInput as H, FULL_ACCESS as Ht, MessageView as I, UploadTicket as It, RegisterBody as J, Level as Jt, ReactBody as K, GrantShape as Kt, MessagesPage as L, routes as Lt, LinkedQuery as M, TypingResult as Mt, MatchView as N, UpdateGrantBody as Nt, InboxQuery as O, ThreadsPage as Ot, MatchesQuery as P, UpdateGrantInput as Pt, RouteName as Q, checkGrantChange as Qt, MessagesQuery as R, Access as Rt, INBOX_EVENT_ID_MAX as S, SyncReceiptBody as St, InboxItem as T, SyncedView as Tt, PrincipalInput as U, Grant as Ut, PostBody as V, ChannelPattern as Vt, PrincipalView as W, GrantChange as Wt, RegistrationView as X, Permission as Xt, RegisterInput as Y, PERMISSIONS as Yt, ResolvedSyncTarget as Z, WrittenCan as Zt, FiltersInput as _, SyncFindInput as _t, BoardEventView as a, Author as an, SchedulesQueryOutput as at, GrantInput as b, SyncImportBody as bt, CreateChannelBody as c, ExternalAuthor as cn, SchemaView as ct, EditBody as d, ExternalLink as dn, SourceMessage as dt, parseCan as en, ScheduleBodyOutput as et, EventsPage as f, Link as fn, SourceRead as ft, Explanation as g, SyncCopiesView as gt, ExplainQuery as h, SyncCopiesQuery as ht, BlockView as i, Attachment as in, SchedulesQueryInput as it, LinkView as j, TypingBody as jt, LABEL_CONDITIONS_MAX as k, ThreadsQuery as kt, DeleteBody as l, ExternalEvent as ln, SourceJoin as lt, EventsQueryInput as m, SyncBody as mt, ActorView as n, Actor as nn, ScheduleView as nt, CanAt as o, CAN_MAX as on, SchemaBody as ot, EventsQuery as p, SourceReadQuery as pt, Ref as q, InvalidCan as qt, ApiError as r, ExternalCopy as rn, SchedulesQuery as rt, ChannelView as s, Labels as sn, SchemaInput as st, AckBody as t, union as tn, ScheduleInput as tt, Discovery as u, ExternalFile as un, SourceJoinBody as ut, GrantBody as v, SyncFindQuery as vt, InboxEntry as w, SyncThreadView as wt, GrantView as x, SyncImportInput as xt, GrantCan as y, SyncFindView as yt, MessagesQueryInput as z, AccessSummary as zt };
3284
+ export { MessagesQueryInput as $, TypingBody as $t, FiltersInput as A, ExternalAuthor as An, SyncBody as At, InboxPushBody as B, SyncThreadView as Bt, EditBody as C, union as Cn, SchemaInput as Ct, ExplainQuery as D, Author as Dn, SourceMessage as Dt, EventsQueryInput as E, Attachment as En, SourceJoinBody as Et, INBOX_EVENT_ID_MAX as F, SyncFindView as Ft, LinkView as G, TasksPage as Gt, LABEL_CONDITIONS_MAX as H, TaskClaim as Ht, InboxAckBody as I, SyncImportBody as It, MatchesQuery as J, ThreadSummaryView as Jt, LinkedQuery as K, TasksQuery as Kt, InboxEntry as L, SyncImportInput as Lt, GrantCan as M, ExternalFile as Mn, SyncCopiesView as Mt, GrantInput as N, ExternalLink as Nn, SyncFindInput as Nt, Explanation as O, CAN_MAX as On, SourceRead as Ot, GrantView as P, Link as Pn, SyncFindQuery as Pt, MessagesQuery as Q, ThreadsQueryInput as Qt, InboxItem as R, SyncReceiptBody as Rt, Discovery as S, parseCan as Sn, SchemaBody as St, EventsQuery as T, ExternalCopy as Tn, SourceJoin as Tt, LEASE_DEFAULT_S as U, TaskNeedsBody as Ut, InboxQuery as V, SyncedView as Vt, LabelBody as W, TaskView as Wt, MessageView as X, ThreadsPage as Xt, Me as Y, ThreadView as Yt, MessagesPage as Z, ThreadsQuery as Zt, CreateTaskInput as _, PERMISSIONS as _n, ScheduleInput as _t, BlockTaskBody as a, routes as an, REGISTERED_WATCHERS_MAX as at, CreatedTasksQuery as b, checkGrantChange as bn, SchedulesQueryInput as bt, CanAt as c, Can as cn, RegisterBody as ct, ClaimReadyTaskBody as d, Grant as dn, ReleaseTaskBody as dt, TypingResult as en, ParsedFilters as et, ClaimReadyTaskInput as f, GrantChange as fn, RenewTaskBody as ft, CreateTaskBody as g, Level as gn, ScheduleBodyOutput as gt, CreateChannelBody as h, InvalidCan as hn, ScheduleBody as ht, AssignTaskBody as i, UploadTicket as in, PrincipalView as it, GrantBody as j, ExternalEvent as jn, SyncCopiesQuery as jt, FailTaskBody as k, Labels as kn, SourceReadQuery as kt, CancelTaskBody as l, ChannelPattern as ln, RegisterInput as lt, CompleteTaskBody as m, GrantShape as mn, RouteName as mt, ActorView as n, UpdateGrantInput as nn, PostInput as nt, BlockView as o, Access as on, ReactBody as ot, ClaimTaskBody as p, GrantChangeRefusal as pn, ResolvedSyncTarget as pt, MatchView as q, TasksQueryInput as qt, ApiError as r, UploadStartBody as rn, PrincipalInput as rt, BoardEventView as s, AccessSummary as sn, Ref as st, AckBody as t, UpdateGrantBody as tn, PostBody as tt, ChannelView as u, FULL_ACCESS as un, RegistrationView as ut, CreateTasksBody as v, Permission as vn, ScheduleView as vt, EventsPage as w, Actor as wn, SchemaView as wt, DeleteBody as x, compileAccess as xn, SchedulesQueryOutput as xt, CreateTasksInput as y, WrittenCan as yn, SchedulesQuery as yt, InboxNextQuery as z, SyncReceiptInput as zt };