@vercel/board 0.25.0 → 0.25.1

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 (72) hide show
  1. package/dist/{a2-CQ3WcqMv.mjs → a2-A830f5NS.mjs} +6 -6
  2. package/dist/access.d.mts +1 -2
  3. package/dist/access.mjs +3 -3
  4. package/dist/{actors-CDDhhFNY.mjs → actors-BLXVp4oZ.mjs} +2 -2
  5. package/dist/{auth-BwWH3Twu.mjs → auth-lTkOgvcE.mjs} +1 -1
  6. package/dist/{backend-DmXjVnil.d.mts → backend-ZKYTe3xa.d.mts} +5 -15
  7. package/dist/backend-a2/blob-vercel.d.mts +1 -1
  8. package/dist/backend-a2/contract.d.mts +1 -2
  9. package/dist/backend-a2/store-memory.d.mts +1 -1
  10. package/dist/backend-a2/store-postgres.d.mts +1 -1
  11. package/dist/backend-a2/store-redis-http.d.mts +1 -1
  12. package/dist/backend-a2/store-redis.d.mts +1 -1
  13. package/dist/backend-a2/store-sqlite.d.mts +1 -1
  14. package/dist/backend-a2.d.mts +5 -6
  15. package/dist/backend-a2.mjs +1 -1
  16. package/dist/{backend-http-Cs-UKpYp.mjs → backend-http-CJd4Fu0U.mjs} +2 -2
  17. package/dist/{backend-http-BJ7AdK0c.mjs → backend-http-CYtfwqAW.mjs} +8 -5
  18. package/dist/{backend-http-BsP0Xq9e.d.mts → backend-http-E7YU0qhn.d.mts} +3 -4
  19. package/dist/backend-http.d.mts +1 -1
  20. package/dist/backend-http.mjs +1 -1
  21. package/dist/backend-http.node.d.mts +1 -1
  22. package/dist/backend-http.node.mjs +1 -1
  23. package/dist/{backend-vercel-CG2SYa03.mjs → backend-vercel-BhwPExmE.mjs} +3 -3
  24. package/dist/{backend-vercel-B0Q0K0O5.mjs → backend-vercel-Bqg2QfTd.mjs} +7 -4
  25. package/dist/{backend-vercel-CED673bx.d.mts → backend-vercel-CIRObA0t.d.mts} +3 -4
  26. package/dist/backend-vercel.d.mts +1 -1
  27. package/dist/backend-vercel.mjs +1 -1
  28. package/dist/backend-vercel.node.d.mts +1 -1
  29. package/dist/backend-vercel.node.mjs +1 -1
  30. package/dist/{blob-C0J3wbGv.d.mts → blob-B-9AvYis.d.mts} +2 -1
  31. package/dist/{chat-provider-6eYkL2ef.d.mts → chat-provider-DsNEBQiA.d.mts} +3 -2
  32. package/dist/cli-embedded.d.mts +2 -2
  33. package/dist/cli-embedded.mjs +1 -1
  34. package/dist/cli.mjs +3 -3
  35. package/dist/{client-BY-BCggB.mjs → client-D0Px7KzF.mjs} +16 -4
  36. package/dist/{provider-C_sj4-GL.d.mts → client-xLxeDz0f.d.mts} +13 -689
  37. package/dist/{conformance-BZ53bxrG.mjs → conformance-DlnfuzEB.mjs} +1 -1
  38. package/dist/conformance.d.mts +1 -1
  39. package/dist/conformance.mjs +1 -1
  40. package/dist/{engine-SeaJ_CIY.mjs → engine-ROa7-IQY.mjs} +2 -2
  41. package/dist/errors-CB4tnZGz.d.mts +16 -0
  42. package/dist/{errors-Bven0k29.mjs → errors-CusN4x2l.mjs} +14 -6
  43. package/dist/exports-D22M68rk.d.mts +5 -0
  44. package/dist/{exports-ByvYtxFT.mjs → exports-DCqgO_mr.mjs} +6 -6
  45. package/dist/{folds-CRYY14kc.d.mts → folds-jS9wlh9_.d.mts} +49 -2
  46. package/dist/{index-k2LfZxl-.d.mts → index-C05it0mC.d.mts} +2 -2
  47. package/dist/index.d.mts +5 -4
  48. package/dist/{index.default-DmfhBZZi.mjs → index.default-BejExznB.mjs} +1 -1
  49. package/dist/index.mjs +6 -6
  50. package/dist/index.node.d.mts +5 -4
  51. package/dist/index.node.mjs +4 -4
  52. package/dist/inspect/app.js +108 -108
  53. package/dist/{main-BNkywL2P.mjs → main-DOhNCWMd.mjs} +70 -65
  54. package/dist/{middleware-B0J7QBq7.mjs → middleware-ChKM1zuu.mjs} +1 -1
  55. package/dist/{node-C51_xzCb.mjs → node-Bkd1x0QI.mjs} +37 -9
  56. package/dist/provider-Cdg1qadh.d.mts +688 -0
  57. package/dist/{serve-DYQ64Q5R.mjs → serve-D2O0C6Kk.mjs} +5 -5
  58. package/dist/{server-BgK1sgj7.mjs → server-BF4WJ7qi.mjs} +4 -4
  59. package/dist/{serving-rXQcEgTO.mjs → serving-CvOWEym2.mjs} +1 -1
  60. package/dist/sync-github.d.mts +2 -2
  61. package/dist/sync-kapso.d.mts +2 -2
  62. package/dist/sync-linear.d.mts +2 -2
  63. package/dist/sync-slack.d.mts +3 -3
  64. package/dist/sync.chat.d.mts +1 -1
  65. package/dist/sync.d.mts +2 -2
  66. package/dist/{tokens-U-XRlEfq.mjs → tokens-BuCU-61R.mjs} +2 -2
  67. package/dist/{types-8yq2VnKI.d.mts → types-aCAf6lGU.d.mts} +1 -1
  68. package/dist/{watchers-hash-C4CJg7K1.mjs → watchers-hash-BHNXy_N7.mjs} +2 -2
  69. package/docs/04-reference/02-board.md +6 -2
  70. package/package.json +1 -1
  71. package/dist/exports-CPrIkpz3.d.mts +0 -4
  72. package/dist/schemas-CWxs3ECJ.d.mts +0 -50
@@ -1,4 +1,4 @@
1
- import { t as BoardError } from "./client-BY-BCggB.mjs";
1
+ import { t as BoardError } from "./client-D0Px7KzF.mjs";
2
2
  //#region src/conformance/index.ts
3
3
  var Mismatch = class extends Error {};
4
4
  const show = (value) => JSON.stringify(value) ?? String(value);
@@ -1,4 +1,4 @@
1
- import { d as Board } from "./backend-DmXjVnil.mjs";
1
+ import { d as Board } from "./backend-ZKYTe3xa.mjs";
2
2
  //#region src/conformance/index.d.ts
3
3
  /**
4
4
  * Checks that a board speaks the protocol, through a handle on it (`conformance(board())`), as
@@ -1,2 +1,2 @@
1
- import { t as conformance } from "./conformance-BZ53bxrG.mjs";
1
+ import { t as conformance } from "./conformance-DlnfuzEB.mjs";
2
2
  export { conformance };
@@ -3,9 +3,9 @@ import { C as toStorable, c as ChannelPath, m as MESSAGE_TEXT_MAX } from "./sche
3
3
  import { c as externalMessageKey, l as isThreadTarget, s as channelOf } from "./external-BV_cUncs.mjs";
4
4
  import { t as canonicalEmoji } from "./emoji-CTLpvH-A.mjs";
5
5
  import { n as derivedId } from "./ids-C6AYo1bu.mjs";
6
- import { r as badRequest, s as notFound, t as HttpError } from "./errors-Bven0k29.mjs";
6
+ import { r as badRequest, s as notFound, t as HttpError } from "./errors-CusN4x2l.mjs";
7
7
  import { n as replaceMentions } from "./mentions-CB6ShY4R.mjs";
8
- import { t as DroppedError } from "./middleware-B0J7QBq7.mjs";
8
+ import { t as DroppedError } from "./middleware-ChKM1zuu.mjs";
9
9
  import { n as waitUntil, t as afterRetry } from "./attempts-CLG840Oj.mjs";
10
10
  import { a as channelMissing, i as UnreadableError, n as ResolvedTarget, o as routesFor, t as ReceivedEvent } from "./provider-poIkXapd.mjs";
11
11
  import { a as immutable, n as SyncOverrides } from "./events-CewD4kw7.mjs";
@@ -0,0 +1,16 @@
1
+ import { r as ErrorOrigin } from "./client-xLxeDz0f.mjs";
2
+ //#region src/server/errors.d.ts
3
+ declare class HttpError extends Error {
4
+ readonly status: number;
5
+ readonly code: string;
6
+ /** What fixes it, when there's one (`BoardError`'s `hint`). */
7
+ readonly hint: string | undefined;
8
+ /** `handle` for a handle's own error on its way through: everything else is the board's. */
9
+ readonly origin: ErrorOrigin;
10
+ constructor(status: number, code: string, message: string, options?: {
11
+ hint?: string;
12
+ origin?: ErrorOrigin;
13
+ });
14
+ }
15
+ //#endregion
16
+ export { HttpError as t };
@@ -1,15 +1,19 @@
1
+ import { i as handleErrors } from "./client-D0Px7KzF.mjs";
1
2
  import { ZodError } from "zod";
2
3
  //#region src/server/errors.ts
3
4
  var HttpError = class extends Error {
4
5
  status;
5
6
  code;
6
- /** What fixes it, when the handle that raised it knows (`BoardError`'s `hint`). */
7
+ /** What fixes it, when there's one (`BoardError`'s `hint`). */
7
8
  hint;
9
+ /** `handle` for a handle's own error on its way through: everything else is the board's. */
10
+ origin;
8
11
  constructor(status, code, message, options = {}) {
9
12
  super(message);
10
13
  this.status = status;
11
14
  this.code = code;
12
15
  this.hint = options.hint;
16
+ this.origin = options.origin ?? "board";
13
17
  }
14
18
  };
15
19
  /** A request a host's own verifier rejected with `response`, which the board answers with as it is. */
@@ -47,11 +51,15 @@ function reported(issue) {
47
51
  /** Every failure becomes `{ error: { code, message, hint? } }` with a matching status. */
48
52
  function toErrorResponse(error) {
49
53
  if (error instanceof RejectedError) return error.response;
50
- if (error instanceof HttpError) return json({ error: {
51
- code: error.code,
52
- message: error.message,
53
- ...error.hint !== void 0 ? { hint: error.hint } : {}
54
- } }, error.status);
54
+ if (error instanceof HttpError) {
55
+ const response = json({ error: {
56
+ code: error.code,
57
+ message: error.message,
58
+ ...error.hint !== void 0 ? { hint: error.hint } : {}
59
+ } }, error.status);
60
+ if (error.origin === "handle") handleErrors.add(response);
61
+ return response;
62
+ }
55
63
  if (error instanceof ZodError) {
56
64
  const issue = error.issues[0] && reported(error.issues[0]);
57
65
  const path = issue?.path.length ? `${issue.path.join(".")}: ` : "";
@@ -0,0 +1,5 @@
1
+ import "./auth-CU56Q2Xh.mjs";
2
+ import "./folds-jS9wlh9_.mjs";
3
+ import "./client-xLxeDz0f.mjs";
4
+ import "./backend-ZKYTe3xa.mjs";
5
+ import "./errors-CB4tnZGz.mjs";
@@ -1,12 +1,12 @@
1
1
  import { t as ATTACHMENT_BYTES_MAX } from "./files-SniSmeEr.mjs";
2
2
  import "./schemas-Be08nyfW.mjs";
3
- import { A as SchedulesQuery, B as SyncReceiptBody, C as MatchesQuery, D as Ref, E as ReactBody, F as SyncBody, G as UploadStartBody, H as SyncUnlinkBody, I as SyncCodeBody, L as SyncCopiesQuery, M as SourceJoinBody, N as SourceReadQuery, O as RegisterBody, P as SyncAccountBody, R as SyncFindQuery, S as LinkedQuery, T as PostBody, U as ThreadsQuery, V as SyncRootsQuery, W as TypingBody, _ as InboxAckBody, a as METHODS, b as InboxQuery, c as queryObject, d as VERSION, f as SYNC, g as IdentityUnlinkBody, h as EventsQuery, j as SignInQuery, k as ScheduleBody, l as readCapped, m as EditBody, o as createRouter, p as AckBody, s as openapi, u as readJson, v as InboxNextQuery, w as MessagesQuery, x as LabelBody, y as InboxPushBody, z as SyncImportBody } from "./watchers-hash-C4CJg7K1.mjs";
4
- import { n as createBoardClient, t as BoardError } from "./client-BY-BCggB.mjs";
3
+ import { A as SchedulesQuery, B as SyncReceiptBody, C as MatchesQuery, D as Ref, E as ReactBody, F as SyncBody, G as UploadStartBody, H as SyncUnlinkBody, I as SyncCodeBody, L as SyncCopiesQuery, M as SourceJoinBody, N as SourceReadQuery, O as RegisterBody, P as SyncAccountBody, R as SyncFindQuery, S as LinkedQuery, T as PostBody, U as ThreadsQuery, V as SyncRootsQuery, W as TypingBody, _ as InboxAckBody, a as METHODS, b as InboxQuery, c as queryObject, d as VERSION, f as SYNC, g as IdentityUnlinkBody, h as EventsQuery, j as SignInQuery, k as ScheduleBody, l as readCapped, m as EditBody, o as createRouter, p as AckBody, s as openapi, u as readJson, v as InboxNextQuery, w as MessagesQuery, x as LabelBody, y as InboxPushBody, z as SyncImportBody } from "./watchers-hash-BHNXy_N7.mjs";
4
+ import { n as createBoardClient, t as BoardError } from "./client-D0Px7KzF.mjs";
5
5
  import { n as derivedId } from "./ids-C6AYo1bu.mjs";
6
- import { a as forbidden, c as toErrorResponse, l as unauthorized, n as RejectedError, o as json, r as badRequest, s as notFound, t as HttpError } from "./errors-Bven0k29.mjs";
7
- import { d as issuersOf, g as verifiesTokens, l as hostPrincipal, o as createAuthority, s as fromTokens } from "./auth-BwWH3Twu.mjs";
8
- import { i as resolveActor, r as claimsOf, t as KNOWN_AGENTS } from "./actors-CDDhhFNY.mjs";
9
- import { r as runMiddleware, t as DroppedError } from "./middleware-B0J7QBq7.mjs";
6
+ import { a as forbidden, c as toErrorResponse, l as unauthorized, n as RejectedError, o as json, r as badRequest, s as notFound, t as HttpError } from "./errors-CusN4x2l.mjs";
7
+ import { d as issuersOf, g as verifiesTokens, l as hostPrincipal, o as createAuthority, s as fromTokens } from "./auth-lTkOgvcE.mjs";
8
+ import { i as resolveActor, r as claimsOf, t as KNOWN_AGENTS } from "./actors-BLXVp4oZ.mjs";
9
+ import { r as runMiddleware, t as DroppedError } from "./middleware-ChKM1zuu.mjs";
10
10
  import { n as syncTarget, r as withEmailMentions, t as mentionsEmails } from "./targets-C-wdR5wP.mjs";
11
11
  //#region src/server/policy.ts
12
12
  /**
@@ -1,5 +1,52 @@
1
- import { i as Attachment, o as Author, p as Labels, r as ActorKind } from "./schemas-CWxs3ECJ.mjs";
2
1
  import { z } from "zod";
2
+ //#region src/contract/schemas.d.ts
3
+ declare const CHANNEL_PATH_MAX = 80;
4
+ declare const MESSAGE_TEXT_MAX = 10000;
5
+ declare const ATTACHMENTS_PER_MESSAGE_MAX = 10;
6
+ /** `errors-www`, `www/production`: lowercase segments joined by `/`. */
7
+ declare const ChannelPath: z.ZodString;
8
+ declare const MessageText: z.ZodString;
9
+ /** A message is named by the log index of its `message.posted` event. */
10
+ declare const MessageId: z.ZodNumber;
11
+ declare const LabelKey: z.ZodString;
12
+ declare const LabelValue: z.ZodString;
13
+ declare const Labels: z.ZodRecord<z.ZodString, z.ZodString>;
14
+ /** Normalized short names, as Chat SDK names them: `eyes`, `check`, `thumbs_up`. */
15
+ declare const Emoji: z.ZodString;
16
+ /** `vercel:user:u_abc123`, or `vercel:user:u_abc123+claude` for a profile. */
17
+ declare const ActorId: z.ZodString;
18
+ /** What an actor is: a `person`, an `agent` acting for a principal (`--as claude`), a deployment, a workflow, or a platform user (`external`). */
19
+ declare const ActorKind: z.ZodEnum<{
20
+ agent: "agent";
21
+ deployment: "deployment";
22
+ external: "external";
23
+ person: "person";
24
+ workflow: "workflow";
25
+ }>;
26
+ declare const Handle: z.ZodString;
27
+ declare const Author: z.ZodObject<{
28
+ actor: z.ZodString;
29
+ principal: z.ZodString;
30
+ profile: z.ZodNullable<z.ZodString>;
31
+ session: z.ZodNullable<z.ZodString>;
32
+ }, z.core.$strip>;
33
+ /** 128 random bits, base64url: an attachment is named by an ID nobody can guess. */
34
+ declare const AttachmentId: z.ZodString;
35
+ /** A file on a message. The board records `type` and `size` from what it stored, never from the request. */
36
+ declare const Attachment: z.ZodObject<{
37
+ id: z.ZodString;
38
+ name: z.ZodString;
39
+ type: z.ZodString;
40
+ size: z.ZodNumber;
41
+ }, z.core.$strip>;
42
+ type ChannelPath = z.infer<typeof ChannelPath>;
43
+ type MessageId = z.infer<typeof MessageId>;
44
+ type Labels = z.infer<typeof Labels>;
45
+ type ActorId = z.infer<typeof ActorId>;
46
+ type ActorKind = z.infer<typeof ActorKind>;
47
+ type Author = z.infer<typeof Author>;
48
+ type Attachment = z.infer<typeof Attachment>;
49
+ //#endregion
3
50
  //#region src/contract/events.d.ts
4
51
  /** The board's one log. Every board fact is an event in session `board`. */
5
52
  declare const boardEvents: {
@@ -531,4 +578,4 @@ type SyncedThread = {
531
578
  external: Record<string, string>;
532
579
  };
533
580
  //#endregion
534
- export { BoardEvents as _, ExternalCopy as a, SyncedThread as c, ExternalFile as d, ExternalLink as f, BoardEvent as g, BOARD_SESSION as h, ChannelsState as i, ExternalAuthor as l, Origin as m, ActorsState as n, Message as o, Link as p, Channel as r, MessagesState as s, Actor as t, ExternalEvent as u };
581
+ export { Labels as A, Author as C, Handle as D, Emoji as E, MessageId as M, MessageText as N, LabelKey as O, AttachmentId as S, ChannelPath as T, BoardEvents as _, ExternalCopy as a, ActorKind as b, SyncedThread as c, ExternalFile as d, ExternalLink as f, BoardEvent as g, BOARD_SESSION as h, ChannelsState as i, MESSAGE_TEXT_MAX as j, LabelValue as k, ExternalAuthor as l, Origin as m, ActorsState as n, Message as o, Link as p, Channel as r, MessagesState as s, Actor as t, ExternalEvent as u, ATTACHMENTS_PER_MESSAGE_MAX as v, CHANNEL_PATH_MAX as w, Attachment as x, ActorId as y };
@@ -1,5 +1,5 @@
1
- import { d as Board, f as BoardOptions } from "./backend-DmXjVnil.mjs";
2
- import "./exports-CPrIkpz3.mjs";
1
+ import { d as Board, f as BoardOptions } from "./backend-ZKYTe3xa.mjs";
2
+ import "./exports-D22M68rk.mjs";
3
3
  //#region src/server/index.d.ts
4
4
  /**
5
5
  * The handle on a board. With a `backend`, the board lives there: `a2()` keeps it in this
package/dist/index.d.mts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { a as CallerRequest, o as Claims } from "./auth-CU56Q2Xh.mjs";
2
- import { i as Attachment } from "./schemas-CWxs3ECJ.mjs";
3
- import { $ as Discovery, $t as SyncCodeView, At as Ref, B as ReplyOptions, Bt as SchedulesQuery, Ct as MessagesQueryInput, Dt as PostInput, Et as PostBody, Ft as RouteName, G as Written, Gt as SourceJoinBody, H as ScheduleTiming, Ht as SchedulesQueryOutput, I as BoardError, It as ScheduleBody, J as ActorView, Jt as SourceReadQuery, K as duration, Kt as SourceMessage, L as Filters, Lt as ScheduleBodyOutput, Mt as RegisterInput, Nt as RegistrationView, Ot as REGISTERED_WATCHERS_MAX, Pt as ResolvedSyncTarget, Q as DeleteBody, Qt as SyncCodeBody, R as PostOptions, Rt as ScheduleInput, Sn as routes, St as MessagesQuery, Tt as PersonView, U as UploadInput, Ut as SignInQuery, V as ScheduleOptions, Vt as SchedulesQueryInput, W as WaitOptions, Wt as SourceJoin, X as BoardEventView, Xt as SyncAccountInput, Y as ApiError, Yt as SyncAccountBody, Z as ChannelView, Zt as SyncBody, _n as ThreadsQueryInput, _t as MatchView, an as SyncImportBody, at as IdentityUnlinkBody, bn as UploadStartBody, bt as MessageView, cn as SyncReceiptInput, ct as InboxEntry, dn as SyncUnlinkBody, dt as InboxPushBody, en as SyncCopiesQuery, et as EditBody, fn as SyncedView, ft as InboxQuery, gn as ThreadsQuery, gt as LinkedQuery, hn as ThreadsPage, ht as LinkedAccount, in as SyncFindView, it as FiltersInput, jt as RegisterBody, kt as ReactBody, ln as SyncRootsQuery, lt as InboxItem, mn as ThreadView, mt as LinkView, nn as SyncFindInput, nt as EventsQuery, on as SyncImportInput, ot as IdentityView, pn as ThreadSummaryView, pt as LabelBody, q as AckBody, qt as SourceRead, rn as SyncFindQuery, rt as EventsQueryInput, sn as SyncReceiptBody, st as InboxAckBody, tn as SyncCopiesView, tt as EventsPage, un as SyncThreadView, ut as InboxNextQuery, vn as TypingBody, vt as MatchesQuery, wt as ParsedFilters, xn as UploadTicket, xt as MessagesPage, yn as TypingResult, yt as Me, z as ProfileOption, zt as ScheduleView } from "./provider-C_sj4-GL.mjs";
4
- import { C as Protocol, S as Method, _ as MiddlewareContext, a as Identity, b as WriteSource, c as SelfCaller, d as Board, f as BoardOptions, g as Middleware, h as DroppedError, i as Caller, l as Subscription, m as WatcherContext, n as BackendRoute, o as InboxDelivery, p as Watcher, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as Write, x as HttpError, y as WritePatch } from "./backend-DmXjVnil.mjs";
5
- import "./exports-CPrIkpz3.mjs";
2
+ import { x as Attachment } from "./folds-jS9wlh9_.mjs";
3
+ import { $ as RegisterInput, A as InboxItem, At as SyncRootsQuery, B as Me, Bt as TypingResult, C as EventsQuery, Ct as SyncFindInput, D as IdentityView, Dt as SyncImportInput, E as IdentityUnlinkBody, Et as SyncImportBody, F as LinkView, Ft as ThreadView, G as ParsedFilters, H as MessagesPage, Ht as UploadTicket, I as LinkedAccount, It as ThreadsPage, J as PostInput, K as PersonView, L as LinkedQuery, Lt as ThreadsQuery, M as InboxPushBody, Mt as SyncUnlinkBody, N as InboxQuery, Nt as SyncedView, O as InboxAckBody, Ot as SyncReceiptBody, P as LabelBody, Pt as ThreadSummaryView, Q as RegisterBody, R as MatchView, Rt as ThreadsQueryInput, S as EventsPage, St as SyncCopiesView, T as FiltersInput, Tt as SyncFindView, U as MessagesQuery, Ut as routes, V as MessageView, Vt as UploadStartBody, W as MessagesQueryInput, X as ReactBody, Y as REGISTERED_WATCHERS_MAX, Z as Ref, _ as BoardEventView, _t as SyncAccountInput, a as PostOptions, at as ScheduleInput, b as Discovery, bt as SyncCodeView, c as ScheduleOptions, ct as SchedulesQueryInput, d as WaitOptions, dt as SourceJoin, et as RegistrationView, f as Written, ft as SourceJoinBody, g as ApiError, gt as SyncAccountBody, h as ActorView, ht as SourceReadQuery, i as Filters, it as ScheduleBodyOutput, j as InboxNextQuery, jt as SyncThreadView, k as InboxEntry, kt as SyncReceiptInput, l as ScheduleTiming, lt as SchedulesQueryOutput, m as AckBody, mt as SourceRead, n as BoardError, nt as RouteName, o as ProfileOption, ot as ScheduleView, p as duration, pt as SourceMessage, q as PostBody, rt as ScheduleBody, s as ReplyOptions, st as SchedulesQuery, tt as ResolvedSyncTarget, u as UploadInput, ut as SignInQuery, v as ChannelView, vt as SyncBody, w as EventsQueryInput, wt as SyncFindQuery, x as EditBody, xt as SyncCopiesQuery, y as DeleteBody, yt as SyncCodeBody, z as MatchesQuery, zt as TypingBody } from "./client-xLxeDz0f.mjs";
4
+ import { S as Protocol, _ as MiddlewareContext, a as Identity, b as WriteSource, c as SelfCaller, d as Board, f as BoardOptions, g as Middleware, h as DroppedError, i as Caller, l as Subscription, m as WatcherContext, n as BackendRoute, o as InboxDelivery, p as Watcher, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as Write, x as Method, y as WritePatch } from "./backend-ZKYTe3xa.mjs";
5
+ import { t as HttpError } from "./errors-CB4tnZGz.mjs";
6
+ import "./exports-D22M68rk.mjs";
6
7
  //#region src/server/index.default.d.ts
7
8
  /**
8
9
  * The handle on a board. Outside Node there's no environment to find one in, so pass its
@@ -1,4 +1,4 @@
1
- import { r as createHttp } from "./backend-http-BJ7AdK0c.mjs";
1
+ import { r as createHttp } from "./backend-http-CYtfwqAW.mjs";
2
2
  //#region src/backend-http/index.default.ts
3
3
  /**
4
4
  * The board at `url`, which keeps the log. Outside Node there's no environment to find it or a
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { r as duration, t as BoardError } from "./client-BY-BCggB.mjs";
2
- import { t as HttpError } from "./errors-Bven0k29.mjs";
3
- import { t as http } from "./index.default-DmfhBZZi.mjs";
4
- import { t as createBoard } from "./exports-ByvYtxFT.mjs";
5
- import { t as DroppedError } from "./middleware-B0J7QBq7.mjs";
1
+ import { r as duration, t as BoardError } from "./client-D0Px7KzF.mjs";
2
+ import { t as HttpError } from "./errors-CusN4x2l.mjs";
3
+ import { t as http } from "./index.default-BejExznB.mjs";
4
+ import { t as createBoard } from "./exports-DCqgO_mr.mjs";
5
+ import { t as DroppedError } from "./middleware-ChKM1zuu.mjs";
6
6
  //#region src/server/index.default.ts
7
7
  /**
8
8
  * The handle on a board. Outside Node there's no environment to find one in, so pass its
@@ -11,7 +11,7 @@ import { t as DroppedError } from "./middleware-B0J7QBq7.mjs";
11
11
  function board(options = {}) {
12
12
  return createBoard(options, {
13
13
  http: () => http(),
14
- sync: () => import("./engine-SeaJ_CIY.mjs"),
14
+ sync: () => import("./engine-ROa7-IQY.mjs"),
15
15
  serving: null
16
16
  });
17
17
  }
@@ -1,6 +1,7 @@
1
1
  import { a as CallerRequest, o as Claims } from "./auth-CU56Q2Xh.mjs";
2
- import { i as Attachment } from "./schemas-CWxs3ECJ.mjs";
3
- import { $ as Discovery, $t as SyncCodeView, At as Ref, B as ReplyOptions, Bt as SchedulesQuery, Ct as MessagesQueryInput, Dt as PostInput, Et as PostBody, Ft as RouteName, G as Written, Gt as SourceJoinBody, H as ScheduleTiming, Ht as SchedulesQueryOutput, I as BoardError, It as ScheduleBody, J as ActorView, Jt as SourceReadQuery, K as duration, Kt as SourceMessage, L as Filters, Lt as ScheduleBodyOutput, Mt as RegisterInput, Nt as RegistrationView, Ot as REGISTERED_WATCHERS_MAX, Pt as ResolvedSyncTarget, Q as DeleteBody, Qt as SyncCodeBody, R as PostOptions, Rt as ScheduleInput, Sn as routes, St as MessagesQuery, Tt as PersonView, U as UploadInput, Ut as SignInQuery, V as ScheduleOptions, Vt as SchedulesQueryInput, W as WaitOptions, Wt as SourceJoin, X as BoardEventView, Xt as SyncAccountInput, Y as ApiError, Yt as SyncAccountBody, Z as ChannelView, Zt as SyncBody, _n as ThreadsQueryInput, _t as MatchView, an as SyncImportBody, at as IdentityUnlinkBody, bn as UploadStartBody, bt as MessageView, cn as SyncReceiptInput, ct as InboxEntry, dn as SyncUnlinkBody, dt as InboxPushBody, en as SyncCopiesQuery, et as EditBody, fn as SyncedView, ft as InboxQuery, gn as ThreadsQuery, gt as LinkedQuery, hn as ThreadsPage, ht as LinkedAccount, in as SyncFindView, it as FiltersInput, jt as RegisterBody, kt as ReactBody, ln as SyncRootsQuery, lt as InboxItem, mn as ThreadView, mt as LinkView, nn as SyncFindInput, nt as EventsQuery, on as SyncImportInput, ot as IdentityView, pn as ThreadSummaryView, pt as LabelBody, q as AckBody, qt as SourceRead, rn as SyncFindQuery, rt as EventsQueryInput, sn as SyncReceiptBody, st as InboxAckBody, tn as SyncCopiesView, tt as EventsPage, un as SyncThreadView, ut as InboxNextQuery, vn as TypingBody, vt as MatchesQuery, wt as ParsedFilters, xn as UploadTicket, xt as MessagesPage, yn as TypingResult, yt as Me, z as ProfileOption, zt as ScheduleView } from "./provider-C_sj4-GL.mjs";
4
- import { C as Protocol, S as Method, _ as MiddlewareContext, a as Identity, b as WriteSource, c as SelfCaller, d as Board, f as BoardOptions, g as Middleware, h as DroppedError, i as Caller, l as Subscription, m as WatcherContext, n as BackendRoute, o as InboxDelivery, p as Watcher, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as Write, x as HttpError, y as WritePatch } from "./backend-DmXjVnil.mjs";
5
- import { t as board } from "./index-k2LfZxl-.mjs";
2
+ import { x as Attachment } from "./folds-jS9wlh9_.mjs";
3
+ import { $ as RegisterInput, A as InboxItem, At as SyncRootsQuery, B as Me, Bt as TypingResult, C as EventsQuery, Ct as SyncFindInput, D as IdentityView, Dt as SyncImportInput, E as IdentityUnlinkBody, Et as SyncImportBody, F as LinkView, Ft as ThreadView, G as ParsedFilters, H as MessagesPage, Ht as UploadTicket, I as LinkedAccount, It as ThreadsPage, J as PostInput, K as PersonView, L as LinkedQuery, Lt as ThreadsQuery, M as InboxPushBody, Mt as SyncUnlinkBody, N as InboxQuery, Nt as SyncedView, O as InboxAckBody, Ot as SyncReceiptBody, P as LabelBody, Pt as ThreadSummaryView, Q as RegisterBody, R as MatchView, Rt as ThreadsQueryInput, S as EventsPage, St as SyncCopiesView, T as FiltersInput, Tt as SyncFindView, U as MessagesQuery, Ut as routes, V as MessageView, Vt as UploadStartBody, W as MessagesQueryInput, X as ReactBody, Y as REGISTERED_WATCHERS_MAX, Z as Ref, _ as BoardEventView, _t as SyncAccountInput, a as PostOptions, at as ScheduleInput, b as Discovery, bt as SyncCodeView, c as ScheduleOptions, ct as SchedulesQueryInput, d as WaitOptions, dt as SourceJoin, et as RegistrationView, f as Written, ft as SourceJoinBody, g as ApiError, gt as SyncAccountBody, h as ActorView, ht as SourceReadQuery, i as Filters, it as ScheduleBodyOutput, j as InboxNextQuery, jt as SyncThreadView, k as InboxEntry, kt as SyncReceiptInput, l as ScheduleTiming, lt as SchedulesQueryOutput, m as AckBody, mt as SourceRead, n as BoardError, nt as RouteName, o as ProfileOption, ot as ScheduleView, p as duration, pt as SourceMessage, q as PostBody, rt as ScheduleBody, s as ReplyOptions, st as SchedulesQuery, tt as ResolvedSyncTarget, u as UploadInput, ut as SignInQuery, v as ChannelView, vt as SyncBody, w as EventsQueryInput, wt as SyncFindQuery, x as EditBody, xt as SyncCopiesQuery, y as DeleteBody, yt as SyncCodeBody, z as MatchesQuery, zt as TypingBody } from "./client-xLxeDz0f.mjs";
4
+ import { S as Protocol, _ as MiddlewareContext, a as Identity, b as WriteSource, c as SelfCaller, d as Board, f as BoardOptions, g as Middleware, h as DroppedError, i as Caller, l as Subscription, m as WatcherContext, n as BackendRoute, o as InboxDelivery, p as Watcher, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as Write, x as Method, y as WritePatch } from "./backend-ZKYTe3xa.mjs";
5
+ import { t as HttpError } from "./errors-CB4tnZGz.mjs";
6
+ import { t as board } from "./index-C05it0mC.mjs";
6
7
  export { type AckBody, type ActorView, type ApiError, type Attachment, type Backend, type BackendRoute, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type Caller, type CallerRequest, type ChannelView, type Claims, type DeleteBody, type Discovery, DroppedError, type EditBody, type EventsPage, type EventsQuery, type EventsQueryInput, type Filters, type FiltersInput, HttpError, type Identity, type IdentityUnlinkBody, type IdentityView, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LabelBody, type LinkView, type LinkedAccount, type LinkedQuery, type MatchView, type MatchesQuery, type Me, type MessageView, type MessagesPage, type MessagesQuery, type MessagesQueryInput, type Method, type Middleware, type MiddlewareContext, type ParsedFilters, type PersonView, type PostBody, type PostInput, type PostOptions, type ProfileOption, type Protocol, type ProtocolMethods, type REGISTERED_WATCHERS_MAX, type ReactBody, type Ref, type RegisterBody, type RegisterInput, type RegistrationView, type ReplyOptions, type ResolvedSyncTarget, type RouteName, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SelfCaller, type SignInQuery, type SourceJoin, type SourceJoinBody, type SourceMessage, type SourceRead, type SourceReadQuery, type Subscription, type SyncAccountBody, type SyncAccountInput, type SyncBody, type SyncCodeBody, type SyncCodeView, type SyncCopiesQuery, type SyncCopiesView, type SyncFindInput, type SyncFindQuery, type SyncFindView, type SyncImportBody, type SyncImportInput, type SyncReceiptBody, type SyncReceiptInput, type SyncRootsQuery, type SyncThreadView, type SyncUnlinkBody, type SyncedView, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, type TypingBody, type TypingResult, type UploadInput, type UploadStartBody, type UploadTicket, type VerifiedCaller, type WaitOptions, type Watcher, type WatcherContext, type Write, type WritePatch, type WriteSource, type Written, board, duration, type routes };
@@ -1,5 +1,5 @@
1
- import { r as duration, t as BoardError } from "./client-BY-BCggB.mjs";
2
- import { t as HttpError } from "./errors-Bven0k29.mjs";
3
- import { t as DroppedError } from "./middleware-B0J7QBq7.mjs";
4
- import { t as board } from "./server-BgK1sgj7.mjs";
1
+ import { r as duration, t as BoardError } from "./client-D0Px7KzF.mjs";
2
+ import { t as HttpError } from "./errors-CusN4x2l.mjs";
3
+ import { t as DroppedError } from "./middleware-ChKM1zuu.mjs";
4
+ import { t as board } from "./server-BF4WJ7qi.mjs";
5
5
  export { BoardError, DroppedError, HttpError, board, duration };