@vercel/board 0.29.0 → 0.31.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 (156) hide show
  1. package/README.md +8 -17
  2. package/dist/{a2-HUbQJ0RD.mjs → a2-DngWY2Eb.mjs} +741 -415
  3. package/dist/access-CY5xVMIK.mjs +242 -0
  4. package/dist/{access-CV96SYgr.d.mts → access-DPcrKIH_.d.mts} +6 -1
  5. package/dist/access.d.mts +4 -4
  6. package/dist/access.mjs +5 -4
  7. package/dist/{actors-DcJhFbwJ.mjs → actors-Bm-ojWWT.mjs} +2 -2
  8. package/dist/{auth-JO22iIwr.mjs → auth-CyO2aw5n.mjs} +126 -236
  9. package/dist/{auth-CU56Q2Xh.d.mts → auth-DLYSt_-A.d.mts} +32 -4
  10. package/dist/{backend-CPC_vyOo.d.mts → backend-Bob-5CM7.d.mts} +93 -42
  11. package/dist/backend-a2/blob-vercel.d.mts +1 -1
  12. package/dist/backend-a2/contract.d.mts +38 -98
  13. package/dist/backend-a2/contract.mjs +1 -1
  14. package/dist/backend-a2/scheduler-local.d.mts +1 -1
  15. package/dist/backend-a2/scheduler-local.mjs +1 -1
  16. package/dist/backend-a2/scheduler-qstash.d.mts +3 -3
  17. package/dist/backend-a2/scheduler-qstash.mjs +8 -8
  18. package/dist/backend-a2/scheduler-vercel.d.mts +3 -3
  19. package/dist/backend-a2/scheduler-vercel.mjs +6 -6
  20. package/dist/backend-a2/store-memory.d.mts +2 -2
  21. package/dist/backend-a2/store-memory.mjs +3 -3
  22. package/dist/backend-a2/store-postgres.d.mts +1 -1
  23. package/dist/backend-a2/store-postgres.mjs +34 -15
  24. package/dist/backend-a2/store-redis-http.d.mts +1 -1
  25. package/dist/backend-a2/store-redis-http.mjs +6 -6
  26. package/dist/backend-a2/store-redis.d.mts +2 -2
  27. package/dist/backend-a2/store-redis.mjs +5 -5
  28. package/dist/backend-a2/store-sqlite.d.mts +1 -1
  29. package/dist/backend-a2/store-sqlite.mjs +3 -3
  30. package/dist/backend-a2.d.mts +143 -242
  31. package/dist/backend-a2.mjs +2 -2
  32. package/dist/{backend-http-CqfKhrnn.d.mts → backend-http-BRrRbjRx.d.mts} +59 -45
  33. package/dist/{backend-http-CzIJMm58.mjs → backend-http-CvUKOn-m.mjs} +11 -10
  34. package/dist/{backend-http-Bmp0IgD3.mjs → backend-http-D8mUzuKQ.mjs} +2 -2
  35. package/dist/backend-http.d.mts +1 -1
  36. package/dist/backend-http.mjs +1 -1
  37. package/dist/backend-http.node.d.mts +1 -1
  38. package/dist/backend-http.node.mjs +1 -1
  39. package/dist/{backend-vercel-DQc_TaHp.mjs → backend-vercel-Ba8JDtqW.mjs} +3 -3
  40. package/dist/{backend-vercel-4tvcPKqX.d.mts → backend-vercel-BaSEUdwg.d.mts} +62 -47
  41. package/dist/{backend-vercel-BNauAs7w.mjs → backend-vercel-CmY9yZ9m.mjs} +279 -42
  42. package/dist/backend-vercel.d.mts +1 -1
  43. package/dist/backend-vercel.mjs +1 -1
  44. package/dist/backend-vercel.node.d.mts +1 -1
  45. package/dist/backend-vercel.node.mjs +1 -1
  46. package/dist/{blob-DmiQjrYy.d.mts → blob-Bx8QPWEd.d.mts} +2 -2
  47. package/dist/{blob-DdbpJqN1.mjs → blob-WbB2DJKn.mjs} +30 -11
  48. package/dist/{chat-provider-BWHbChcQ.d.mts → chat-provider-BChYrrA7.d.mts} +32 -28
  49. package/dist/{chat-provider-COtsU5jB.mjs → chat-provider-DkFp2hrh.mjs} +105 -60
  50. package/dist/cli-commands.d.mts +1 -1
  51. package/dist/cli-commands.mjs +1 -1
  52. package/dist/cli-embedded.d.mts +2 -2
  53. package/dist/cli-embedded.mjs +1 -1
  54. package/dist/cli.mjs +4 -4
  55. package/dist/{client-BqAjk0Q4.d.mts → client-COfYrgfV.d.mts} +240 -227
  56. package/dist/{commands-D6gvrOh3.d.mts → commands-DK4W3HCJ.d.mts} +47 -10
  57. package/dist/{commands-C3R1AWgm.mjs → commands-L1JSGz2Z.mjs} +212 -54
  58. package/dist/conformance-DK43HiHf.mjs +1000 -0
  59. package/dist/conformance.d.mts +8 -2
  60. package/dist/conformance.mjs +1 -1
  61. package/dist/{engine-DQxXk7dX.mjs → engine-DurYIRt8.mjs} +29 -210
  62. package/dist/{errors-DDktVeUa.d.mts → errors-2vGs49Db.d.mts} +1 -1
  63. package/dist/{client-D0Px7KzF.mjs → errors-CJXhhzvT.mjs} +132 -27
  64. package/dist/{provider-BaVmi4Hi.mjs → events-lujPA3gQ.mjs} +80 -17
  65. package/dist/{exports-BG-0Wyn-.mjs → exports-CWIdN0Ub.mjs} +195 -103
  66. package/dist/exports-FBOQWT7O.d.mts +5 -0
  67. package/dist/{folds-BDMSxBUf.mjs → folds-Cu9Q9zyQ.mjs} +3 -22
  68. package/dist/{folds-ZkHM4M-v.d.mts → folds-DLUzfibJ.d.mts} +15 -40
  69. package/dist/{index-D3VvNfh_.d.mts → index-Ho-ayyQL.d.mts} +2 -2
  70. package/dist/index.d.mts +7 -7
  71. package/dist/{index.default-rB8sJ9RX.mjs → index.default-BUcwDaAe.mjs} +1 -1
  72. package/dist/index.mjs +5 -6
  73. package/dist/index.node.d.mts +7 -7
  74. package/dist/index.node.mjs +3 -4
  75. package/dist/inspect/app.js +62 -61
  76. package/dist/inspect/engine.js +3 -3
  77. package/dist/{internal-CvsrprnU-CRY89I-b.mjs → internal-CvsrprnU-zZMpDiRY.mjs} +1 -1
  78. package/dist/{local-DhkrAqPP.mjs → local-C76Fy5ad.mjs} +1 -1
  79. package/dist/{main-CVBqe3VO.mjs → main-Dz-8komG.mjs} +251 -127
  80. package/dist/{middleware-CXjEeef4.mjs → middleware-BavYSDUa.mjs} +1 -1
  81. package/dist/{node-Zd_C-gxP.mjs → node-BgeGcwX0.mjs} +7 -3
  82. package/dist/{platform-B4TnJtWu-CwcTyKg2.mjs → platform-B4TnJtWu-Do3agKr5.mjs} +1 -1
  83. package/dist/{project-CBXlLftU.mjs → project-CQ4VUibA.mjs} +1 -1
  84. package/dist/{provider-DmSTp9lI.d.mts → provider-gynDUoyW.d.mts} +13 -43
  85. package/dist/{redis-tables-BJQVUspu.mjs → redis-tables-DHf85ixI.mjs} +40 -42
  86. package/dist/{reducer-CjmvZSAb-D_OSISmj.mjs → reducer-Bswr11ar-P324o9vn.mjs} +2 -2
  87. package/dist/{reducer-CYPHsSmd-BQIfozGi.d.mts → reducer-CYPHsSmd-BXjGiptm.d.mts} +1 -1
  88. package/dist/{reducers-DJzVpXwM.mjs → reducers-DcENwtwZ.mjs} +74 -77
  89. package/dist/{retryable-lazy-DZWmHpii-Bye-W8q7.mjs → retryable-lazy-DZWmHpii-DpTc5PIP.mjs} +1 -1
  90. package/dist/{scheduler-task-X1SToDjP-BVoWuInI.mjs → scheduler-task-X1SToDjP-D2Il2rln.mjs} +1 -1
  91. package/dist/{serve-G9RuaDSr.mjs → serve-CTmow-YH.mjs} +7 -7
  92. package/dist/{server-qgez0Xny-D5mLfqFQ.d.mts → server-B9gu0qi1-DI1WvcVK.d.mts} +10 -4
  93. package/dist/{server-BixV_byP.mjs → server-DG8D6VV0.mjs} +4 -4
  94. package/dist/{server-DtFrWxi3-Boa6gdWO.mjs → server-DX7mM6nm-D7N_7bug.mjs} +32 -23
  95. package/dist/{serving-B75Y4BF-.mjs → serving-DBFRo6U_.mjs} +1 -1
  96. package/dist/{session-clear-wHd5GCpZ-BnKSxReK.mjs → session-clear-XJYpmUpg-2q8l_FJR.mjs} +14 -2
  97. package/dist/{sql-D4Z_efJX.mjs → sql-CT5xVuGr.mjs} +2 -8
  98. package/dist/{sqlite-db-Bz2JkfCU.mjs → sqlite-db-0WeSOEZN.mjs} +1 -1
  99. package/dist/{store-D0MhBvg6-4Z2L0Kqd.d.mts → store-DEzcHZOA-B-5vhxef.d.mts} +12 -2
  100. package/dist/store-N8PXxDAS-DWWgv-Vz.mjs +5 -0
  101. package/dist/{store-codec-DwrWlgQx-CYxGW0aD.mjs → store-codec-pAG2oPgQ-SqDXlPBR.mjs} +4 -4
  102. package/dist/store-memory-4IBl0Ztu.mjs +2 -0
  103. package/dist/{store-memory-Bas9Uq5C.mjs → store-memory-B0PkVSuQ.mjs} +14 -7
  104. package/dist/{store-polling-BZt2Rf3D-BiEM6_HB.mjs → store-polling-BZt2Rf3D-Div-bJ_D.mjs} +2 -2
  105. package/dist/{store-presence-polling-JuAy2Ck2-CYpuK75X.mjs → store-presence-polling-JuAy2Ck2-Dh-g_KYM.mjs} +3 -3
  106. package/dist/{store-sqlite-CxxPCcCT.mjs → store-sqlite-D85t3tE7.mjs} +14 -7
  107. package/dist/store-sqlite-iBTYYKBj.mjs +2 -0
  108. package/dist/{stream-buffer-DrTyiIuo-BKy-vI14.mjs → stream-buffer-DrTyiIuo-Be10yOBR.mjs} +2 -2
  109. package/dist/{sync-kapso.d.mts → sync-chat-sdk.d.mts} +33 -37
  110. package/dist/sync-chat-sdk.mjs +44 -0
  111. package/dist/sync-github.d.mts +5 -18
  112. package/dist/sync-github.mjs +4 -70
  113. package/dist/sync-linear.d.mts +3 -3
  114. package/dist/sync-linear.mjs +6 -5
  115. package/dist/sync-slack.d.mts +7 -7
  116. package/dist/sync-slack.mjs +33 -54
  117. package/dist/sync.d.mts +3 -3
  118. package/dist/sync.mjs +2 -4
  119. package/dist/{tokens-CC3izSNr.mjs → tokens-Dnyd_y1n.mjs} +15 -6
  120. package/dist/{types-No0WdhE5.d.mts → types-CmrFjpml.d.mts} +2 -4
  121. package/dist/{watchers-hash-BDhLVkV5.mjs → watchers-hash-BjwlnGD9.mjs} +124 -115
  122. package/docs/01-board/01-mounting.md +2 -2
  123. package/docs/01-board/03-identity.md +5 -6
  124. package/docs/01-board/04-messages.md +96 -2
  125. package/docs/01-board/05-reading.md +2 -1
  126. package/docs/01-board/06-watchers.md +8 -6
  127. package/docs/01-board/08-middleware.md +6 -3
  128. package/docs/01-board/09-access.md +145 -14
  129. package/docs/02-sync/01-overview.md +19 -26
  130. package/docs/02-sync/02-functions.md +8 -9
  131. package/docs/02-sync/03-slack.md +5 -5
  132. package/docs/02-sync/04-github.md +2 -2
  133. package/docs/02-sync/06-providers.md +91 -62
  134. package/docs/03-guides/01-coding-agents.md +1 -1
  135. package/docs/03-guides/03-ci.md +7 -4
  136. package/docs/04-reference/01-cli.md +109 -51
  137. package/docs/04-reference/02-board.md +76 -28
  138. package/docs/04-reference/03-http.md +76 -38
  139. package/docs/04-reference/04-log.md +8 -11
  140. package/docs/04-reference/05-conformance.md +47 -7
  141. package/docs/index.md +2 -2
  142. package/package.json +7 -10
  143. package/sql/postgres/board.sql +1 -1
  144. package/sql/postgres/schema.sql +1 -1
  145. package/dist/conformance-DlnfuzEB.mjs +0 -556
  146. package/dist/errors-CusN4x2l.mjs +0 -88
  147. package/dist/events-qf5XG5VQ.mjs +0 -75
  148. package/dist/exports-mhAYiU4i.d.mts +0 -5
  149. package/dist/store-N8PXxDAS-BWBgzBHp.mjs +0 -5
  150. package/dist/store-memory-ZLiZbH3R.mjs +0 -2
  151. package/dist/store-sqlite-BmwL3pUR.mjs +0 -2
  152. package/dist/sync-kapso.mjs +0 -89
  153. package/dist/sync.chat.d.mts +0 -2
  154. package/dist/sync.chat.mjs +0 -2
  155. package/dist/users-yryHKFMo.mjs +0 -42
  156. package/docs/02-sync/05-whatsapp.md +0 -152
@@ -7,6 +7,7 @@ const iso = (date) => typeof date === "string" ? date : date.toISOString();
7
7
  function foldMessages(state, event) {
8
8
  const changed = foldMessage(state, event);
9
9
  if (changed) changed.version = event.index;
10
+ if (changed && (event.type === "message.posted" || event.type === "message.edited" || event.type === "message.deleted")) changed.revision = event.index;
10
11
  return state;
11
12
  }
12
13
  /** Applies `event`, and returns the message it changed: none for an event that changes nothing. */
@@ -110,28 +111,8 @@ function foldMessage(state, event) {
110
111
  default: return;
111
112
  }
112
113
  }
113
- /** The principal an actor belongs to: its link, its own principal for a profile (`…+claude`), or itself. */
114
- function personOf(actors, actor) {
115
- const linked = own(actors.links, actor)?.to;
116
- if (linked) return linked;
117
- const plus = actor.indexOf("+");
118
- return plus === -1 ? actor : actor.slice(0, plus);
119
- }
120
- /** The platform actors linked to `principal`. */
121
- const linkedTo = (actors, principal) => Object.entries(actors.links).filter(([, link]) => link.to === principal).map(([actor]) => actor);
114
+ /** Who's who: `actor.seen`. */
122
115
  function foldActors(state, event) {
123
- if (event.type === "actor.linked") {
124
- setOwn(state.links, event.payload.actor, {
125
- to: event.payload.to,
126
- method: event.payload.method,
127
- at: iso(event.createdAt)
128
- });
129
- return state;
130
- }
131
- if (event.type === "actor.unlinked") {
132
- delete state.links[event.payload.actor];
133
- return state;
134
- }
135
116
  if (event.type !== "actor.seen") return state;
136
117
  const { actor, kind, handle, name, avatar, host } = event.payload;
137
118
  const previous = own(state.byId, actor);
@@ -223,4 +204,4 @@ function foldSync(state, event) {
223
204
  }
224
205
  }
225
206
  //#endregion
226
- export { linkedTo as a, iso as i, foldMessages as n, personOf as o, foldSync as r, foldActors as t };
207
+ export { iso as i, foldMessages as n, foldSync as r, foldActors as t };
@@ -101,6 +101,19 @@ declare const boardEvents: {
101
101
  blind: z.ZodOptional<z.ZodLiteral<true>>;
102
102
  importedBy: z.ZodOptional<z.ZodString>;
103
103
  }, z.core.$strip>;
104
+ /**
105
+ * A channel made before anything posted to it. A post makes one too, with no event of its own:
106
+ * this is only for one that's empty. It names no message, so it carries no `id`.
107
+ */
108
+ 'channel.created': z.ZodObject<{
109
+ channel: z.ZodString;
110
+ by: z.ZodObject<{
111
+ actor: z.ZodString;
112
+ principal: z.ZodString;
113
+ profile: z.ZodNullable<z.ZodString>;
114
+ session: z.ZodNullable<z.ZodString>;
115
+ }, z.core.$strip>;
116
+ }, z.core.$strip>;
104
117
  /** A message's links changed: an edit linked something new, or the platform sent what a link says. */
105
118
  'message.linked': z.ZodObject<{
106
119
  id: z.ZodNumber;
@@ -214,7 +227,6 @@ declare const boardEvents: {
214
227
  external: z.ZodObject<{
215
228
  thread: z.ZodString;
216
229
  message: z.ZodString;
217
- asUser: z.ZodOptional<z.ZodLiteral<true>>;
218
230
  }, z.core.$strip>;
219
231
  syncedBy: z.ZodOptional<z.ZodString>;
220
232
  }, z.core.$strip>;
@@ -251,35 +263,6 @@ declare const boardEvents: {
251
263
  avatar: z.ZodNullable<z.ZodString>;
252
264
  host: z.ZodOptional<z.ZodLiteral<true>>;
253
265
  }, z.core.$strip>;
254
- /**
255
- * A platform actor (`slack:user:U0456`) is the same person as a principal
256
- * (`vercel:user:…`): for display, `--by`, and mentions, never for permissions.
257
- * `method` says how it was proved: a one-time code posted from that account,
258
- * or the account's own sign-in (`consent`).
259
- */
260
- 'actor.linked': z.ZodObject<{
261
- actor: z.ZodString;
262
- to: z.ZodString;
263
- method: z.ZodEnum<{
264
- code: "code";
265
- consent: "consent";
266
- }>;
267
- by: z.ZodObject<{
268
- actor: z.ZodString;
269
- principal: z.ZodString;
270
- profile: z.ZodNullable<z.ZodString>;
271
- session: z.ZodNullable<z.ZodString>;
272
- }, z.core.$strip>;
273
- }, z.core.$strip>;
274
- 'actor.unlinked': z.ZodObject<{
275
- actor: z.ZodString;
276
- by: z.ZodObject<{
277
- actor: z.ZodString;
278
- principal: z.ZodString;
279
- profile: z.ZodNullable<z.ZodString>;
280
- session: z.ZodNullable<z.ZodString>;
281
- }, z.core.$strip>;
282
- }, z.core.$strip>;
283
266
  };
284
267
  declare const BOARD_SESSION = "board";
285
268
  type BoardEvents = typeof boardEvents;
@@ -524,6 +507,8 @@ type Message = {
524
507
  blind?: true;
525
508
  /** The index of the last event that changed it. Folds from before it existed leave it out. */
526
509
  version?: number;
510
+ /** The index of its post, or of its last edit or delete. Folds from before it existed leave it out. */
511
+ revision?: number;
527
512
  };
528
513
  type MessagesState = {
529
514
  byId: Record<string, Message>;
@@ -546,28 +531,18 @@ type Actor = {
546
531
  /** A host's principal, or one of its profiles: once it's seen as one, it stays one. Views leave it out. */
547
532
  host?: true;
548
533
  };
549
- /** A platform actor proved to be a principal (`actor.linked`). */
550
- type ActorLink = {
551
- to: string;
552
- method: 'code' | 'consent';
553
- at: string;
554
- };
555
534
  type ActorsState = {
556
535
  byId: Record<string, Actor>;
557
536
  /** Lowercased handle → actor IDs. Handles aren't reserved, so several can share one. */
558
537
  byHandle: Record<string, string[]>;
559
- /** Platform actor → the principal it's linked to. Display and filtering only, never permissions. */
560
- links: Record<string, ActorLink>;
561
538
  };
562
539
  /** A copy of a board message on a platform. */
563
540
  /** `files`: the platform's IDs for the message's files, or null when it refused them; unset until they're sent. */
564
- /** `asUser`: posted with its author's own token, so editing or deleting it needs that token too. */
565
541
  /** `by`: the principal of the sync elsewhere that recorded it, whose copy it is to change; none for the board's own sync's. */
566
542
  type ExternalCopy = {
567
543
  thread: string;
568
544
  message: string;
569
545
  files?: string[] | null;
570
- asUser?: true;
571
546
  by?: string;
572
547
  };
573
548
  type SyncedThread = {
@@ -1,5 +1,5 @@
1
- import { d as Board, f as BoardOptions } from "./backend-CPC_vyOo.mjs";
2
- import "./exports-mhAYiU4i.mjs";
1
+ import { f as Board, p as BoardOptions } from "./backend-Bob-5CM7.mjs";
2
+ import "./exports-FBOQWT7O.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,9 +1,9 @@
1
- import { a as CallerRequest, o as Claims } from "./auth-CU56Q2Xh.mjs";
2
- import { x as Attachment } from "./folds-ZkHM4M-v.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-BqAjk0Q4.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-CPC_vyOo.mjs";
5
- import { t as HttpError } from "./errors-DDktVeUa.mjs";
6
- import "./exports-mhAYiU4i.mjs";
1
+ import { a as CallerRequest, o as Claims } from "./auth-DLYSt_-A.mjs";
2
+ import { x as Attachment } from "./folds-DLUzfibJ.mjs";
3
+ import { $ as RegisterBody, A as InboxAckBody, At as ThreadsPage, B as MatchView, Bt as routes, C as EventsPage, Ct as SyncImportInput, D as GrantBody, Dt as SyncedView, E as FiltersInput, Et as SyncThreadView, F as InboxQuery, Ft as TokenView, G as MessagesQuery, H as Me, I as LABEL_CONDITIONS_MAX, It as TypingBody, J as PostBody, K as MessagesQueryInput, L as LabelBody, Lt as TypingResult, M as InboxItem, Mt as ThreadsQueryInput, N as InboxNextQuery, Nt as TokenBody, O as GrantInput, Ot as ThreadSummaryView, P as InboxPushBody, Pt as TokenInput, Q as Ref, R as LinkView, Rt as UploadStartBody, S as EditBody, St as SyncImportBody, T as EventsQueryInput, Tt as SyncReceiptInput, U as MessageView, V as MatchesQuery, W as MessagesPage, X as REGISTERED_WATCHERS_MAX, Y as PostInput, Z as ReactBody, _ as BoardEventView, _t as SyncCopiesQuery, a as PostOptions, at as ScheduleBodyOutput, b as DeleteBody, bt as SyncFindQuery, c as ScheduleOptions, ct as SchedulesQuery, d as WaitOptions, dt as SourceJoin, et as RegisterInput, f as Written, ft as SourceJoinBody, g as ApiError, gt as SyncBody, h as ActorView, ht as SourceReadQuery, i as Filters, it as ScheduleBody, j as InboxEntry, jt as ThreadsQuery, k as GrantView, kt as ThreadView, l as ScheduleTiming, lt as SchedulesQueryInput, m as AckBody, mt as SourceRead, n as BoardError, nt as ResolvedSyncTarget, o as ProfileOption, ot as ScheduleInput, p as duration, pt as SourceMessage, q as ParsedFilters, rt as RouteName, s as ReplyOptions, st as ScheduleView, tt as RegistrationView, u as UploadInput, ut as SchedulesQueryOutput, v as ChannelView, vt as SyncCopiesView, w as EventsQuery, wt as SyncReceiptBody, x as Discovery, xt as SyncFindView, y as CreateChannelBody, yt as SyncFindInput, z as LinkedQuery, zt as UploadTicket } from "./client-COfYrgfV.mjs";
4
+ import { C as Protocol, S as Method, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as VerifiedCaller, f as Board, g as DroppedError, h as WatcherContext, i as Caller, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as Subscription, v as MiddlewareContext, x as WriteSource, y as Write } from "./backend-Bob-5CM7.mjs";
5
+ import { t as HttpError } from "./errors-2vGs49Db.mjs";
6
+ import "./exports-FBOQWT7O.mjs";
7
7
  //#region src/server/index.default.d.ts
8
8
  /**
9
9
  * The handle on a board. Outside Node there's no environment to find one in, so pass its
@@ -11,4 +11,4 @@ import "./exports-mhAYiU4i.mjs";
11
11
  */
12
12
  export declare function board(options?: BoardOptions): Board;
13
13
  //#endregion
14
- 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, duration, type routes };
14
+ 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 CreateChannelBody, type DeleteBody, type Discovery, DroppedError, type EditBody, type EventsPage, type EventsQuery, type EventsQueryInput, type Filters, type FiltersInput, type GrantBody, type GrantInput, type GrantView, HttpError, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LabelBody, type LinkView, 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 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 SourceJoin, type SourceJoinBody, type SourceMessage, type SourceRead, type SourceReadQuery, type Subscription, type SyncBody, type SyncCopiesQuery, type SyncCopiesView, type SyncFindInput, type SyncFindQuery, type SyncFindView, type SyncImportBody, type SyncImportInput, type SyncReceiptBody, type SyncReceiptInput, type SyncThreadView, type SyncedView, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, type TokenBody, type TokenInput, type TokenView, 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, duration, type routes };
@@ -1,4 +1,4 @@
1
- import { r as createHttp } from "./backend-http-CzIJMm58.mjs";
1
+ import { r as createHttp } from "./backend-http-CvUKOn-m.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,7 @@
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-rB8sJ9RX.mjs";
4
- import { t as createBoard } from "./exports-BG-0Wyn-.mjs";
5
- import { t as DroppedError } from "./middleware-CXjEeef4.mjs";
1
+ import { f as duration, t as HttpError, u as BoardError } from "./errors-CJXhhzvT.mjs";
2
+ import { t as http } from "./index.default-BUcwDaAe.mjs";
3
+ import { t as createBoard } from "./exports-CWIdN0Ub.mjs";
4
+ import { t as DroppedError } from "./middleware-BavYSDUa.mjs";
6
5
  //#region src/server/index.default.ts
7
6
  /**
8
7
  * The handle on a board. Outside Node there's no environment to find one in, so pass its
@@ -11,7 +10,7 @@ import { t as DroppedError } from "./middleware-CXjEeef4.mjs";
11
10
  function board(options = {}) {
12
11
  return createBoard(options, {
13
12
  http: () => http(),
14
- sync: () => import("./engine-DQxXk7dX.mjs"),
13
+ sync: () => import("./engine-DurYIRt8.mjs"),
15
14
  serving: null
16
15
  });
17
16
  }
@@ -1,7 +1,7 @@
1
- import { a as CallerRequest, o as Claims } from "./auth-CU56Q2Xh.mjs";
2
- import { x as Attachment } from "./folds-ZkHM4M-v.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-BqAjk0Q4.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-CPC_vyOo.mjs";
5
- import { t as HttpError } from "./errors-DDktVeUa.mjs";
6
- import { t as board } from "./index-D3VvNfh_.mjs";
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
+ import { a as CallerRequest, o as Claims } from "./auth-DLYSt_-A.mjs";
2
+ import { x as Attachment } from "./folds-DLUzfibJ.mjs";
3
+ import { $ as RegisterBody, A as InboxAckBody, At as ThreadsPage, B as MatchView, Bt as routes, C as EventsPage, Ct as SyncImportInput, D as GrantBody, Dt as SyncedView, E as FiltersInput, Et as SyncThreadView, F as InboxQuery, Ft as TokenView, G as MessagesQuery, H as Me, I as LABEL_CONDITIONS_MAX, It as TypingBody, J as PostBody, K as MessagesQueryInput, L as LabelBody, Lt as TypingResult, M as InboxItem, Mt as ThreadsQueryInput, N as InboxNextQuery, Nt as TokenBody, O as GrantInput, Ot as ThreadSummaryView, P as InboxPushBody, Pt as TokenInput, Q as Ref, R as LinkView, Rt as UploadStartBody, S as EditBody, St as SyncImportBody, T as EventsQueryInput, Tt as SyncReceiptInput, U as MessageView, V as MatchesQuery, W as MessagesPage, X as REGISTERED_WATCHERS_MAX, Y as PostInput, Z as ReactBody, _ as BoardEventView, _t as SyncCopiesQuery, a as PostOptions, at as ScheduleBodyOutput, b as DeleteBody, bt as SyncFindQuery, c as ScheduleOptions, ct as SchedulesQuery, d as WaitOptions, dt as SourceJoin, et as RegisterInput, f as Written, ft as SourceJoinBody, g as ApiError, gt as SyncBody, h as ActorView, ht as SourceReadQuery, i as Filters, it as ScheduleBody, j as InboxEntry, jt as ThreadsQuery, k as GrantView, kt as ThreadView, l as ScheduleTiming, lt as SchedulesQueryInput, m as AckBody, mt as SourceRead, n as BoardError, nt as ResolvedSyncTarget, o as ProfileOption, ot as ScheduleInput, p as duration, pt as SourceMessage, q as ParsedFilters, rt as RouteName, s as ReplyOptions, st as ScheduleView, tt as RegistrationView, u as UploadInput, ut as SchedulesQueryOutput, v as ChannelView, vt as SyncCopiesView, w as EventsQuery, wt as SyncReceiptBody, x as Discovery, xt as SyncFindView, y as CreateChannelBody, yt as SyncFindInput, z as LinkedQuery, zt as UploadTicket } from "./client-COfYrgfV.mjs";
4
+ import { C as Protocol, S as Method, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as VerifiedCaller, f as Board, g as DroppedError, h as WatcherContext, i as Caller, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as Subscription, v as MiddlewareContext, x as WriteSource, y as Write } from "./backend-Bob-5CM7.mjs";
5
+ import { t as HttpError } from "./errors-2vGs49Db.mjs";
6
+ import { t as board } from "./index-Ho-ayyQL.mjs";
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 CreateChannelBody, type DeleteBody, type Discovery, DroppedError, type EditBody, type EventsPage, type EventsQuery, type EventsQueryInput, type Filters, type FiltersInput, type GrantBody, type GrantInput, type GrantView, HttpError, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LabelBody, type LinkView, 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 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 SourceJoin, type SourceJoinBody, type SourceMessage, type SourceRead, type SourceReadQuery, type Subscription, type SyncBody, type SyncCopiesQuery, type SyncCopiesView, type SyncFindInput, type SyncFindQuery, type SyncFindView, type SyncImportBody, type SyncImportInput, type SyncReceiptBody, type SyncReceiptInput, type SyncThreadView, type SyncedView, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, type TokenBody, type TokenInput, type TokenView, 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,4 @@
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-CXjEeef4.mjs";
4
- import { t as board } from "./server-BixV_byP.mjs";
1
+ import { f as duration, t as HttpError, u as BoardError } from "./errors-CJXhhzvT.mjs";
2
+ import { t as DroppedError } from "./middleware-BavYSDUa.mjs";
3
+ import { t as board } from "./server-DG8D6VV0.mjs";
5
4
  export { BoardError, DroppedError, HttpError, board, duration };