@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
@@ -1,6 +1,6 @@
1
- import { r as sqlTables } from "./sql-CyVcjw8x.mjs";
1
+ import { r as sqlTables } from "./sql-IEbO5vXs.mjs";
2
2
  import { t as memory$1 } from "./store-memory-CKQVEzXN.mjs";
3
- import { t as sqliteDb } from "./sqlite-db-BdzxtUOV.mjs";
3
+ import { t as sqliteDb } from "./sqlite-db-BJjPQYx4.mjs";
4
4
  //#region src/store/memory.ts
5
5
  /**
6
6
  * A board that lives in memory, for tests: its log in A2's memory store, its
@@ -82,5 +82,38 @@ function replaceMentions(text, replace) {
82
82
  }
83
83
  return out + text.slice(at);
84
84
  }
85
+ /** An actor ID as `@[…]` can hold it: no space and no `]`. */
86
+ const HOLDABLE = /^[^\]\s]+$/;
87
+ /**
88
+ * Settles the `@handle`s in a text among `actors`, whoever its writer can see: each becomes
89
+ * `@[actor-id]` when exactly one of them has that handle, in full, and stays as typed otherwise.
90
+ * Of several who have it, `prefer` may pick one: board passes the one who wrote in the thread. A
91
+ * handle no one has in full names no one, even when someone has it under a name: `@malte` isn't
92
+ * `support/malte`, whom a project could import to take the name, so they're only a candidate.
93
+ * `@[…]` is exact already, and is left alone.
94
+ */
95
+ function settleMentions(text, actors, prefer = () => null) {
96
+ const found = /* @__PURE__ */ new Map();
97
+ return {
98
+ text: replaceMentions(text, (token, written) => {
99
+ if (token.kind !== "handle") return null;
100
+ let mention = found.get(token.handle);
101
+ if (!mention) {
102
+ const named = (of) => actors.filter((actor) => of(actor.handle.toLowerCase()) === token.handle && HOLDABLE.test(actor.id));
103
+ const full = named((handle) => handle);
104
+ const actor = full.length === 1 ? full[0] : full.length > 1 ? prefer(full) : null;
105
+ const under = full.length > 0 || token.handle.includes("/") ? full : named((handle) => handle.slice(handle.indexOf("/") + 1));
106
+ mention = {
107
+ written,
108
+ actor,
109
+ candidates: actor ? [] : under
110
+ };
111
+ found.set(token.handle, mention);
112
+ }
113
+ return mention.actor ? `@[${mention.actor.id}]` : null;
114
+ }),
115
+ mentions: [...found.values()]
116
+ };
117
+ }
85
118
  //#endregion
86
- export { replaceMentions as a, mentionTerms as i, isEmail as n, mentionTerm as r, extractMentions as t };
119
+ export { replaceMentions as a, mentionTerms as i, isEmail as n, settleMentions as o, mentionTerm as r, extractMentions as t };
@@ -1,5 +1,5 @@
1
- import { t as HttpError } from "./errors-ZazTZh-s.mjs";
2
- import { f as Labels, p as MESSAGE_TEXT_MAX } from "./schemas-BhZaystC.mjs";
1
+ import { t as HttpError } from "./errors-QhkdzI-o.mjs";
2
+ import { m as MESSAGE_TEXT_MAX, p as Labels } from "./schemas-7VFdomFB.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/client/ids.ts
5
5
  const hex = (bytes) => Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -1,5 +1,24 @@
1
- import { At as ThreadsQueryInput, Ct as SyncReceiptInput, Dt as ThreadView, F as Me, I as MessageView, L as MessagesPage, N as MatchView, Ot as ThreadsPage, Pt as UpdateGrantInput, T as InboxItem, Tt as SyncedView, X as RegistrationView, Y as RegisterInput, _ as FiltersInput, _t as SyncFindInput, a as BoardEventView, b as GrantInput, cn as ExternalAuthor, ct as SchemaView, dn as ExternalLink, f as EventsPage, fn as Link, ft as SourceRead, g as Explanation, in as Attachment, it as SchedulesQueryInput, ln as ExternalEvent, lt as SourceJoin, n as ActorView, nn as Actor, nt as ScheduleView, rn as ExternalCopy, s as ChannelView, st as SchemaInput, u as Discovery, un as ExternalFile, w as InboxEntry, wt as SyncThreadView, x as GrantView, xt as SyncImportInput, yt as SyncFindView, z as MessagesQueryInput } from "./routes-zm4TXKCC.mjs";
1
+ import { $ as MessagesQueryInput, A as FiltersInput, An as ExternalAuthor, Bt as SyncThreadView, Ct as SchemaInput, En as Attachment, Ft as SyncFindView, Gt as TasksPage, Ht as TaskClaim, L as InboxEntry, Lt as SyncImportInput, Mn as ExternalFile, N as GrantInput, Nn as ExternalLink, Nt as SyncFindInput, O as Explanation, Ot as SourceRead, P as GrantView, Pn as Link, Qt as ThreadsQueryInput, R as InboxItem, S as Discovery, Tn as ExternalCopy, Tt as SourceJoin, Vt as SyncedView, X as MessageView, Xt as ThreadsPage, Y as Me, Yt as ThreadView, Z as MessagesPage, bt as SchedulesQueryInput, jn as ExternalEvent, lt as RegisterInput, n as ActorView, nn as UpdateGrantInput, q as MatchView, qt as TasksQueryInput, s as BoardEventView, u as ChannelView, ut as RegistrationView, vt as ScheduleView, w as EventsPage, wn as Actor, wt as SchemaView, zt as SyncReceiptInput } from "./routes-CjA6Mp4D.mjs";
2
2
  import { z } from "zod";
3
+ //#region src/contract/mentions.d.ts
4
+ /** An actor as a write's answer names them. */
5
+ type MentionedActor = {
6
+ id: string;
7
+ handle: string;
8
+ name: string;
9
+ };
10
+ /**
11
+ * What became of an `@handle` a write typed. With `actor`, it named that one actor and the text now
12
+ * has `@[actor-id]` in its place. With `actor: null`, it's still in the text as typed, a mention of
13
+ * no one: `candidates` is who it could have meant, the several who have that handle, or for a handle
14
+ * with no `/`, whoever has it under a name (`support/malte` for `@malte`).
15
+ */
16
+ type Mentioned = {
17
+ written: string;
18
+ actor: MentionedActor | null;
19
+ candidates: MentionedActor[];
20
+ };
21
+ //#endregion
3
22
  //#region src/client/client.d.ts
4
23
  /**
5
24
  * Where an error came from: `handle`, raised by the handle on this machine (no Vercel login,
@@ -43,6 +62,13 @@ type ClientOptions = {
43
62
  */
44
63
  storeFetch?: typeof fetch;
45
64
  };
65
+ /**
66
+ * What a write that took a text answers: what it made, and under `mentions`, what became of each
67
+ * `@handle` the text typed, when it typed any.
68
+ */
69
+ type Written<T> = T & {
70
+ mentions?: Mentioned[];
71
+ };
46
72
  type PostOptions = {
47
73
  text: string;
48
74
  labels?: Record<string, string>;
@@ -77,6 +103,54 @@ type ScheduleTiming = {
77
103
  times?: number;
78
104
  };
79
105
  type ScheduleOptions = Omit<PostOptions, 'sync' | 'id'> & ScheduleTiming;
106
+ /**
107
+ * What makes a thread a task: the tasks it waits for (`needs`, by their IDs), the one actor of
108
+ * yours that claims it (`for`, `<your principal>+<profile>`), and `claim`, which claims it in the
109
+ * same write, for `lease` seconds.
110
+ */
111
+ type TaskOptions = {
112
+ needs?: string[];
113
+ for?: string | null;
114
+ claim?: boolean;
115
+ lease?: number;
116
+ };
117
+ /** A new thread that's a task: its root's text, labels, `noSync`, `attachments`, and `id`, as a post takes them, and what makes it a task. */
118
+ type NewTaskOptions = TaskOptions & Pick<PostOptions, 'text' | 'labels' | 'noSync' | 'attachments' | 'id'>;
119
+ /**
120
+ * One task of several made together: its root's text, labels, `noSync`, and `attachments`, as a
121
+ * post takes them. `key` is a name for it among the others, and `needs` takes a task's ID, or
122
+ * `{ key }` for one made with it, before or after it. `for` is the one actor of yours that claims it.
123
+ */
124
+ type TaskInBatch = Required<Pick<PostOptions, 'text'>> & Pick<PostOptions, 'labels' | 'noSync' | 'attachments'> & {
125
+ key?: string;
126
+ needs?: (string | {
127
+ key: string;
128
+ })[];
129
+ for?: string | null;
130
+ };
131
+ /**
132
+ * What a claim does, each fenced by the claim: once it's over (released, settled, held, taken over,
133
+ * or past its lease), they throw a 409 `claim_lost` and change nothing.
134
+ */
135
+ type HeldTask = {
136
+ /** Extends the lease from now, by `lease` seconds (the board's default without one). Answers the claim with its new `until`. */
137
+ renew(lease?: number): Promise<ClaimedTask>;
138
+ /** Gives the task back: it's ready again. */
139
+ release(): Promise<MessageView>;
140
+ complete(result?: string): Promise<MessageView>;
141
+ fail(reason: string): Promise<MessageView>;
142
+ /** Holds the task for a person, which ends the claim: `kind` says what for (`needs_input`, `awaiting_approval`). */
143
+ block(reason: string, opts?: {
144
+ kind?: string;
145
+ }): Promise<MessageView>;
146
+ };
147
+ /**
148
+ * A task you hold until `until`: its root as the claim left it, and the claim's `epoch` and
149
+ * `token`, which `held` takes to act on it from another process.
150
+ */
151
+ type ClaimedTask = HeldTask & TaskClaim & {
152
+ task: MessageView;
153
+ };
80
154
  /** What `upload` takes: the bytes, and what to call them. */
81
155
  type UploadInput = {
82
156
  data: Blob | Uint8Array<ArrayBuffer>;
@@ -168,10 +242,16 @@ declare function createBoardClient(options: ClientOptions): {
168
242
  thread: (id: string) => Promise<ThreadView>;
169
243
  /** Your own post with the client ID you gave it, as posting it answered: 404 `post_not_found` when there's none. */
170
244
  posted: (id: string) => Promise<MessageView>;
171
- /** Threads with a matching message, one summary each (root, reply count, latest reply), by latest activity. `limit` counts threads. */
245
+ /** Threads with a matching message, one summary each (root, reply count, latest reply), by latest activity. `limit` counts threads; `before` takes a page's `older`. */
172
246
  threads: (query?: Filters & Omit<ThreadsQueryInput, keyof FiltersInput>) => Promise<ThreadsPage>;
173
- post(channel: string, input: string | PostOptions): Promise<MessageView>;
174
- reply(id: string, input: string | ReplyOptions): Promise<MessageView>;
247
+ /**
248
+ * Starts a thread. An `@handle` in the text that names exactly one actor you can see is stored as
249
+ * `@[actor-id]`, a mention of them; one that names none or several stays as typed, a mention of
250
+ * no one. `mentions` on what comes back says what became of each, when the text typed any.
251
+ */
252
+ post(channel: string, input: string | PostOptions): Promise<Written<MessageView>>;
253
+ /** Replies in a thread. Its `@handle`s are settled as `post`'s are: of several who share one, it's the one who wrote in the thread. */
254
+ reply(id: string, input: string | ReplyOptions): Promise<Written<MessageView>>;
175
255
  /**
176
256
  * Posts later, as you: a new thread when `target` is a channel, a reply when it's
177
257
  * `{ re }`, any message's ID in the thread. Each message it posts carries
@@ -179,7 +259,7 @@ declare function createBoardClient(options: ClientOptions): {
179
259
  */
180
260
  schedule(target: string | {
181
261
  re: string;
182
- }, input: ScheduleOptions): Promise<ScheduleView>;
262
+ }, input: ScheduleOptions): Promise<Written<ScheduleView>>;
183
263
  /** Pending schedules (`all` for done and canceled too), oldest first. `re` is any message in a thread. */
184
264
  schedules: (query?: Omit<SchedulesQueryInput, 'all'> & {
185
265
  all?: boolean;
@@ -189,6 +269,76 @@ declare function createBoardClient(options: ClientOptions): {
189
269
  schedule: ScheduleView;
190
270
  canceled: boolean;
191
271
  }>;
272
+ /**
273
+ * Tasks: threads someone's agents are to do, with a state the board keeps. A task's ID is its
274
+ * root's, and its root's `task` says its state, whose it is, what it waits for, and who holds
275
+ * it. A board that keeps no tasks fails each of these with 501 `no_tasks`.
276
+ */
277
+ tasks: {
278
+ /**
279
+ * Tasks, oldest first, each as its thread's summary: open ones (`waiting`, `ready`, `claimed`,
280
+ * `blocked`) unless `state` says `all` or names one. `owner` and `for` take a handle or an ID,
281
+ * `needs` a task's ID, for the tasks that wait for it. `cursor`, as `after`, reads the next page.
282
+ */
283
+ list: (query?: Omit<TasksQueryInput, 'label'> & {
284
+ label?: Record<string, string> | string[];
285
+ }) => Promise<TasksPage>;
286
+ create: {
287
+ (target: string, input: string | NewTaskOptions): Promise<{
288
+ task: MessageView;
289
+ claim?: ClaimedTask;
290
+ mentions?: Mentioned[];
291
+ }>;
292
+ (target: {
293
+ re: string;
294
+ }, input?: TaskOptions): Promise<{
295
+ task: MessageView;
296
+ claim?: ClaimedTask;
297
+ mentions?: Mentioned[];
298
+ }>;
299
+ };
300
+ createMany: (channel: string, tasks: TaskInBatch[], opts?: {
301
+ id?: string;
302
+ }) => Promise<MessageView[]>;
303
+ claim: {
304
+ (target: string, opts?: {
305
+ lease?: number;
306
+ signal?: AbortSignal;
307
+ }): Promise<ClaimedTask>;
308
+ (target: {
309
+ channel: string;
310
+ label?: Record<string, string>;
311
+ from?: string[];
312
+ wait?: number;
313
+ lease?: number;
314
+ }, opts?: {
315
+ signal?: AbortSignal;
316
+ }): Promise<ClaimedTask | null>;
317
+ };
318
+ /** What a claim you hold does, from the `epoch` and `token` it answered: for a process that kept them, as `vb` does between commands. */
319
+ held: (id: string, proof: {
320
+ epoch: number;
321
+ token: string;
322
+ }) => HeldTask;
323
+ /** Holds a task no one has claimed for a person: yours, or any with manage in its channel. A claimed one's hold is its claim's (`claim.block`). */
324
+ block: (id: string, reason: string, opts?: {
325
+ kind?: string;
326
+ }) => Promise<MessageView>;
327
+ /** Lifts a hold: the task is ready again, or waiting while a task it needs hasn't completed. */
328
+ unblock: (id: string) => Promise<MessageView>;
329
+ /** Makes a failed task ready again, in place: what waits for it still does. */
330
+ reopen: (id: string) => Promise<MessageView>;
331
+ /** Assigns a task to one of its owner's actors (`<owner>+<profile>`), the only one that claims it then, or with null to anyone who may. */
332
+ assign: (id: string, actor: string | null) => Promise<MessageView>;
333
+ /**
334
+ * Replaces what a task waits for, by their IDs: it waits for those now, and is ready once they've all completed, or
335
+ * at once with none. For its owner, while no one holds it and it isn't finished. One that would make it wait for
336
+ * itself, through however many tasks, throws a 400 `invalid_needs`.
337
+ */
338
+ needs: (id: string, needs: string[]) => Promise<MessageView>;
339
+ /** Cancels a task that hasn't completed, ending any claim. What waits for it keeps waiting. */
340
+ cancel: (id: string, reason: string) => Promise<MessageView>;
341
+ };
192
342
  /**
193
343
  * A new grant: `principals` may do what `can` says, a map from channel pattern to permissions
194
344
  * (`[]` for none). The same principals again are another grant. At each channel, the most
@@ -245,6 +395,7 @@ declare function createBoardClient(options: ClientOptions): {
245
395
  revision?: number;
246
396
  }) => Promise<{
247
397
  ok: true;
398
+ mentions?: Mentioned[];
248
399
  }>;
249
400
  delete: (id: string, opts?: {
250
401
  revision?: number;
@@ -449,6 +600,13 @@ declare function envelope(platform: string, key: string, event: ExternalEvent, r
449
600
  }[];
450
601
  } | null;
451
602
  }[] | undefined;
603
+ mentioned?: {
604
+ id: string;
605
+ handle: string;
606
+ name: string;
607
+ avatar: string | null;
608
+ isBot: boolean;
609
+ }[] | undefined;
452
610
  id: string;
453
611
  platform: string;
454
612
  key: string;
@@ -483,6 +641,13 @@ declare function envelope(platform: string, key: string, event: ExternalEvent, r
483
641
  } | null;
484
642
  }[] | undefined;
485
643
  linksOnly?: boolean | undefined;
644
+ mentioned?: {
645
+ id: string;
646
+ handle: string;
647
+ name: string;
648
+ avatar: string | null;
649
+ isBot: boolean;
650
+ }[] | undefined;
486
651
  id: string;
487
652
  platform: string;
488
653
  key: string;
@@ -589,6 +754,13 @@ declare function eventSchema<P extends string, M extends string>(platform: P, me
589
754
  }, z.core.$strip>>;
590
755
  }, z.core.$strip>>;
591
756
  }, z.core.$strip>>>;
757
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
758
+ id: z.ZodString;
759
+ handle: z.ZodString;
760
+ name: z.ZodString;
761
+ avatar: z.ZodNullable<z.ZodString>;
762
+ isBot: z.ZodBoolean;
763
+ }, z.core.$strip>>>;
592
764
  id: z.ZodString;
593
765
  key: z.ZodString;
594
766
  raw: z.ZodUnknown;
@@ -623,6 +795,13 @@ declare function eventSchema<P extends string, M extends string>(platform: P, me
623
795
  }, z.core.$strip>>;
624
796
  }, z.core.$strip>>>;
625
797
  linksOnly: z.ZodOptional<z.ZodBoolean>;
798
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
799
+ id: z.ZodString;
800
+ handle: z.ZodString;
801
+ name: z.ZodString;
802
+ avatar: z.ZodNullable<z.ZodString>;
803
+ isBot: z.ZodBoolean;
804
+ }, z.core.$strip>>>;
626
805
  id: z.ZodString;
627
806
  key: z.ZodString;
628
807
  raw: z.ZodUnknown;
@@ -921,6 +1100,13 @@ declare const ReceivedEvent: z.ZodObject<{
921
1100
  }, z.core.$strip>>;
922
1101
  }, z.core.$strip>>;
923
1102
  }, z.core.$strip>>>;
1103
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
1104
+ id: z.ZodString;
1105
+ handle: z.ZodString;
1106
+ name: z.ZodString;
1107
+ avatar: z.ZodNullable<z.ZodString>;
1108
+ isBot: z.ZodBoolean;
1109
+ }, z.core.$strip>>>;
924
1110
  }, z.core.$strip>, z.ZodObject<{
925
1111
  channel: z.ZodString;
926
1112
  thread: z.ZodString;
@@ -950,6 +1136,13 @@ declare const ReceivedEvent: z.ZodObject<{
950
1136
  }, z.core.$strip>>;
951
1137
  }, z.core.$strip>>>;
952
1138
  linksOnly: z.ZodOptional<z.ZodBoolean>;
1139
+ mentioned: z.ZodOptional<z.ZodArray<z.ZodObject<{
1140
+ id: z.ZodString;
1141
+ handle: z.ZodString;
1142
+ name: z.ZodString;
1143
+ avatar: z.ZodNullable<z.ZodString>;
1144
+ isBot: z.ZodBoolean;
1145
+ }, z.core.$strip>>>;
953
1146
  }, z.core.$strip>, z.ZodObject<{
954
1147
  channel: z.ZodString;
955
1148
  thread: z.ZodString;
@@ -1067,4 +1260,4 @@ declare abstract class SyncProvider<E extends ProviderEvent = ProviderEvent> {
1067
1260
  render(input: RenderInput): string;
1068
1261
  }
1069
1262
  //#endregion
1070
- export { SyncRoot as A, Filters as B, mirror as C, RootOverride as D, ProviderEvent as E, BoardError as F, ScheduleTiming as G, ProfileOption as H, ErrorOrigin as I, duration as J, UploadInput as K, EventsOptions as L, eventSchema as M, VercelDeployment as N, SyncOverrides as O, BoardClient as P, EventsState as R, into as S, EventBase as T, ReplyOptions as U, PostOptions as V, ScheduleOptions as W, SyncFn as _, ProviderOptions as a, SyncUnit as b, Receive as c, Renderer as d, ResolvedTarget as f, Sync as g, UnreadableError as h, ProviderFile as i, envelope as j, SyncResult as k, ReceivedEvent as l, SyncProvider as m, FileDelivery as n, ProviderPost as o, SyncContext as p, WaitOptions as q, ProviderDelivery as r, ProviderSender as s, FetchedLink as t, RenderInput as u, SyncIn as v, render as w, channels as x, SyncOut as y, ExplainPrincipal as z };
1263
+ export { Written as $, SyncRoot as A, ExplainPrincipal as B, mirror as C, RootOverride as D, ProviderEvent as E, BoardError as F, ProfileOption as G, HeldTask as H, ClaimedTask as I, ScheduleTiming as J, ReplyOptions as K, ErrorOrigin as L, eventSchema as M, VercelDeployment as N, SyncOverrides as O, BoardClient as P, WaitOptions as Q, EventsOptions as R, into as S, EventBase as T, NewTaskOptions as U, Filters as V, PostOptions as W, TaskOptions as X, TaskInBatch as Y, UploadInput as Z, SyncFn as _, ProviderOptions as a, SyncUnit as b, Receive as c, Renderer as d, duration as et, ResolvedTarget as f, Sync as g, UnreadableError as h, ProviderFile as i, envelope as j, SyncResult as k, ReceivedEvent as l, SyncProvider as m, FileDelivery as n, MentionedActor as nt, ProviderPost as o, SyncContext as p, ScheduleOptions as q, ProviderDelivery as r, ProviderSender as s, FetchedLink as t, Mentioned as tt, RenderInput as u, SyncIn as v, render as w, channels as x, SyncOut as y, EventsState as z };