@vercel/board 0.37.0 → 0.38.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 (74) hide show
  1. package/dist/{access-BsP0hvcC.mjs → access-CVkjSfxj.mjs} +12 -12
  2. package/dist/access.d.mts +3 -3
  3. package/dist/access.mjs +6 -5
  4. package/dist/{actors-uoD62kiN.mjs → actors-kfMejhaw.mjs} +5 -4
  5. package/dist/{auth-CrjXLgOb.mjs → auth-B3bBYOqf.mjs} +2 -2
  6. package/dist/{auth-BHXgi696.d.mts → auth-BXLCkeB0.d.mts} +3 -3
  7. package/dist/{backend-BIvl2z1z.d.mts → backend-BkQlF1LQ.d.mts} +3 -3
  8. package/dist/backend-local.d.mts +1 -1
  9. package/dist/backend-local.mjs +1 -1
  10. package/dist/{chat-provider-C0WUS3-G.mjs → chat-provider-1WKsLEnM.mjs} +2 -2
  11. package/dist/{chat-provider-DFYEReZL.d.mts → chat-provider-DyNy5xdC.d.mts} +2 -2
  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 -3
  16. package/dist/cli.mjs +5 -5
  17. package/dist/{commands-DGID-4Z2.d.mts → commands-B5d-lmNN.d.mts} +1 -1
  18. package/dist/{commands-D2pFCMSh.mjs → commands-BLS7erNu.mjs} +1 -1
  19. package/dist/{conformance-rCrc_mwi.mjs → conformance-qJF96jZI.mjs} +162 -20
  20. package/dist/conformance.d.mts +10 -2
  21. package/dist/conformance.mjs +1 -1
  22. package/dist/digest-DAxy9Ula.mjs +4 -0
  23. package/dist/{engine-COa73McY.mjs → engine-eUgO5jTM.mjs} +4 -4
  24. package/dist/{events-v8f7pF9f.mjs → events-C6HwB046.mjs} +2 -2
  25. package/dist/exports-BJ3wmEMY.d.mts +4 -0
  26. package/dist/{exports-DTezg4xR.mjs → exports-BsfcChdp.mjs} +80 -25
  27. package/dist/{external-BA2aCC_3.mjs → external-CHDxWIVf.mjs} +1 -1
  28. package/dist/{index-B1TZrMMu.d.mts → index-DpVyZa9b.d.mts} +2 -2
  29. package/dist/index.d.mts +5 -5
  30. package/dist/index.mjs +3 -3
  31. package/dist/index.node.d.mts +5 -5
  32. package/dist/index.node.mjs +2 -2
  33. package/dist/inspect/app.js +21 -21
  34. package/dist/inspect-5mkjJYMS.mjs +2 -0
  35. package/dist/{inspect-CoFk2Xj7.mjs → inspect-DtCbBtOW.mjs} +4 -4
  36. package/dist/{local-Cm7a7_Q0.mjs → local-Bo3XzEKB.mjs} +22 -22
  37. package/dist/{main-DoZ8IFPb.mjs → main-0nvLgajF.mjs} +42 -36
  38. package/dist/{memory-DqwXlyK4.mjs → memory-DkoqhxIH.mjs} +2 -2
  39. package/dist/{middleware-k_XKQ6f7.mjs → middleware-CPqAuRtp.mjs} +1 -1
  40. package/dist/page-R0RoE_gM.mjs +2 -0
  41. package/dist/{page-LysMGAl3.mjs → page-UsfvSIWc.mjs} +2 -2
  42. package/dist/{provider-7pOnK8Jw.d.mts → provider-D5yVFisj.d.mts} +1 -1
  43. package/dist/{routes-BtsZzal-.d.mts → routes-BffuaoTX.d.mts} +11 -1
  44. package/dist/{schemas-BG205xds.mjs → schemas-AZkxk06N.mjs} +3 -3
  45. package/dist/{serve-2U_JPJtS.mjs → serve-D7I3KisQ.mjs} +3 -3
  46. package/dist/{server-Drul_uwj.mjs → server-Cc3nYq3H.mjs} +9 -7
  47. package/dist/{serving-6_bhBNAW.mjs → serving-DJMcG0dT.mjs} +1 -1
  48. package/dist/{sql-aetuEBZC.mjs → sql-l3ysn4O5.mjs} +2 -2
  49. package/dist/{sqlite-DvsB8ENQ.mjs → sqlite-CAwNHbQD.mjs} +2 -2
  50. package/dist/{sqlite-db-BPwRoDI7.mjs → sqlite-db-cm5yhrD-.mjs} +1 -1
  51. package/dist/sync-chat-sdk.d.mts +2 -2
  52. package/dist/sync-chat-sdk.mjs +2 -2
  53. package/dist/sync-github.d.mts +2 -2
  54. package/dist/sync-github.mjs +2 -2
  55. package/dist/sync-linear.d.mts +3 -3
  56. package/dist/sync-linear.mjs +2 -2
  57. package/dist/sync-slack.d.mts +3 -3
  58. package/dist/sync-slack.mjs +4 -4
  59. package/dist/sync.d.mts +2 -2
  60. package/dist/sync.mjs +2 -2
  61. package/dist/{targets-B0D4tJDY.mjs → targets-B4Uikw0J.mjs} +6 -6
  62. package/dist/{tokens-Dn4cPZIr.mjs → tokens-DA9ipsZ-.mjs} +1 -1
  63. package/docs/01-board/01-mounting.md +1 -1
  64. package/docs/01-board/09-access.md +10 -5
  65. package/docs/03-guides/03-ci.md +10 -4
  66. package/docs/04-reference/01-cli.md +23 -9
  67. package/docs/04-reference/02-board.md +2 -1
  68. package/docs/04-reference/03-http.md +3 -3
  69. package/docs/04-reference/05-conformance.md +9 -2
  70. package/package.json +1 -1
  71. package/dist/digest-CLGw7653.mjs +0 -4
  72. package/dist/exports-Bb0m03fT.d.mts +0 -4
  73. package/dist/inspect-B8c0Wh5Z.mjs +0 -2
  74. package/dist/page-BAQpb-s-.mjs +0 -2
@@ -1,10 +1,10 @@
1
1
  import { a as forbidden, c as toErrorResponse, d as createBoardClient, f as duration, g as fileName, h as IMPORT_BYTES_MAX, l as unauthorized, n as RejectedError, o as json, p as ATTACHMENT_BYTES_MAX, r as badRequest, s as notFound, t as HttpError, u as BoardError, v as mediaType } from "./errors-rYDxZEuN.mjs";
2
- import { m as RemoteWatcherId } from "./schemas-BG205xds.mjs";
3
- import { A as MatchesQuery, B as SyncBody, C as GrantBody, D as InboxQuery, E as InboxPushBody, F as RegisterBody, G as ThreadsQuery, H as SyncFindQuery, I as ScheduleBody, J as UpdateGrantBody, K as TokenBody, L as SchedulesQuery, M as PostBody, N as ReactBody, O as LabelBody, P as Ref, R as SourceJoinBody, S as ExplainQuery, T as InboxNextQuery, U as SyncImportBody, V as SyncCopiesQuery, W as SyncReceiptBody, Y as UploadStartBody, _ as AckBody, a as runMatch, b as EditBody, d as openapi, f as queryObject, g as VERSION, h as SYNC, i as canonicalWatchers, j as MessagesQuery, k as LinkedQuery, l as METHODS, m as readJson, n as syncTarget, o as compileWatcher, p as readCapped, q as TypingBody, r as withEmailMentions, t as mentionsEmails, u as createRouter, v as CreateChannelBody, w as InboxAckBody, x as EventsQuery, y as DeleteBody, z as SourceReadQuery } from "./targets-B0D4tJDY.mjs";
4
- import { a as waitUntil, r as runMiddleware, s as derivedId, t as DroppedError, u as sha256 } from "./middleware-k_XKQ6f7.mjs";
5
- import { d as scopeOf, l as parsePattern, r as PERMISSIONS, s as compileAccess, u as parseScope } from "./access-BsP0hvcC.mjs";
6
- import { S as verifiesTokens, T as explainGrants, a as VERCEL_ISSUER, d as fromTokens, f as grantIssuers, p as hostPrincipal, u as createAuthority, x as verifiedIssuers, y as tokenHash } from "./auth-CrjXLgOb.mjs";
7
- import { i as resolveActor, r as claimsOf, t as KNOWN_AGENTS } from "./actors-uoD62kiN.mjs";
2
+ import { h as RemoteWatcherId } from "./schemas-AZkxk06N.mjs";
3
+ import { A as MatchesQuery, B as SyncBody, C as GrantBody, D as InboxQuery, E as InboxPushBody, F as RegisterBody, G as ThreadsQuery, H as SyncFindQuery, I as ScheduleBody, J as UpdateGrantBody, K as TokenBody, L as SchedulesQuery, M as PostBody, N as ReactBody, O as LabelBody, P as Ref, R as SourceJoinBody, S as ExplainQuery, T as InboxNextQuery, U as SyncImportBody, V as SyncCopiesQuery, W as SyncReceiptBody, Y as UploadStartBody, _ as AckBody, a as runMatch, b as EditBody, d as openapi, f as queryObject, g as VERSION, h as SYNC, i as canonicalWatchers, j as MessagesQuery, k as LinkedQuery, l as METHODS, m as readJson, n as syncTarget, o as compileWatcher, p as readCapped, q as TypingBody, r as withEmailMentions, t as mentionsEmails, u as createRouter, v as CreateChannelBody, w as InboxAckBody, x as EventsQuery, y as DeleteBody, z as SourceReadQuery } from "./targets-B4Uikw0J.mjs";
4
+ import { a as waitUntil, r as runMiddleware, s as derivedId, t as DroppedError, u as sha256 } from "./middleware-CPqAuRtp.mjs";
5
+ import { a as canText, c as compileAccess, d as parsePattern, r as PERMISSIONS, u as parseCan } from "./access-CVkjSfxj.mjs";
6
+ import { S as verifiesTokens, T as explainGrants, a as VERCEL_ISSUER, d as fromTokens, f as grantIssuers, p as hostPrincipal, u as createAuthority, x as verifiedIssuers, y as tokenHash } from "./auth-B3bBYOqf.mjs";
7
+ import { i as resolveActor, r as claimsOf, t as KNOWN_AGENTS } from "./actors-kfMejhaw.mjs";
8
8
  //#region src/server/registrant.ts
9
9
  /** Registering again this soon after the same registration only repeats it. */
10
10
  const REGISTER_EVERY_MS = 1e4;
@@ -656,6 +656,8 @@ function createVercel(options, environment) {
656
656
  if (found) named.set(name, found);
657
657
  return found ?? null;
658
658
  }
659
+ /** Channels' names by ID, as posts without a client ID named them: a post's own channel, which it may not be able to list. */
660
+ const posted = /* @__PURE__ */ new Map();
659
661
  async function channelById(who, id) {
660
662
  const found = (await loadChannels(who)).find((channel) => channel.id === id) ?? (await loadChannels(who, true)).find((channel) => channel.id === id);
661
663
  if (!found) throw new HttpError(502, "remote_error", `Vercel's API names a channel it doesn't list: ${id}`);
@@ -833,6 +835,31 @@ function createVercel(options, environment) {
833
835
  } } : {}
834
836
  };
835
837
  }
838
+ /**
839
+ * The message a post made, from what it sent, when the API answers with its IDs only: the caller
840
+ * may post there but not read it back. It's by the caller, as its credentials and profile name it.
841
+ */
842
+ async function sent(who, ids, input) {
843
+ const { actor } = await self(who);
844
+ const by = {
845
+ id: await actorOf(who),
846
+ principal: actor.principal,
847
+ ...who.profile ? { profile: who.profile } : {},
848
+ ...who.session ? { session: who.session } : {}
849
+ };
850
+ const attachments = (await Promise.all((input.attachments ?? []).map(async (id) => api(who, "GET", await onBoard(who, `/attachments/${encodeURIComponent(id)}`)).then(({ attachment }) => fileOf(attachment), () => null)))).filter((file) => file !== null);
851
+ return {
852
+ ...ids,
853
+ text: input.text,
854
+ version: 1,
855
+ revision: 1,
856
+ createdAt: Date.now(),
857
+ createdBy: by,
858
+ ...input.labels && Object.keys(input.labels).length ? { labels: { ...input.labels } } : {},
859
+ ...input.noSync ? { noSync: true } : {},
860
+ ...attachments.length ? { attachments } : {}
861
+ };
862
+ }
836
863
  async function scheduleView(who, schedule) {
837
864
  const { canceled } = schedule;
838
865
  return {
@@ -1787,6 +1814,30 @@ function createVercel(options, environment) {
1787
1814
  }
1788
1815
  /** A sync key's inbox, under the board. */
1789
1816
  const inboxPath = (who, key, rest = "") => onBoard(who, `/sync/inbox/${encodeURIComponent(key)}${rest}`);
1817
+ /** A grant Vercel's API won't keep: one naming a GitHub run or an OIDC issuer, which an app stands in for. */
1818
+ const grantRefused = (error) => {
1819
+ if (error instanceof HttpError && error.code === "unsupported_principal") throw new HttpError(400, "unsupported_principal", "Vercel's board takes no GitHub or OIDC principals in a grant.", {
1820
+ hint: "Grant an app that an OIDC exchange policy issues tokens for: --app <slug>.",
1821
+ origin: "handle"
1822
+ });
1823
+ throw error;
1824
+ };
1825
+ /** An explain Vercel's API won't answer: for a GitHub run or an OIDC issuer, which no grant there names. */
1826
+ const explainRefused = (error) => {
1827
+ if (error instanceof HttpError && error.code === "unsupported_principal") throw new HttpError(400, "unsupported_principal", "Vercel's board explains no GitHub or OIDC caller: no grant names one.", {
1828
+ hint: "Explain the app an OIDC exchange policy issues tokens for: --app <slug>.",
1829
+ origin: "handle"
1830
+ });
1831
+ throw error;
1832
+ };
1833
+ /** A mint Vercel's API won't make: only a deployment mints board tokens there, and a board token mints from itself. */
1834
+ const mintRefused = (error) => {
1835
+ if (error instanceof HttpError && error.code === "unsupported_principal") throw new HttpError(403, "unsupported_principal", "Vercel's board mints board tokens only for a deployment.", {
1836
+ hint: "Mint it from a deployment, with its OIDC token, or from a board token.",
1837
+ origin: "handle"
1838
+ });
1839
+ throw error;
1840
+ };
1790
1841
  const methods = {
1791
1842
  ...Object.fromEntries(METHODS.map((method) => [method, async () => {
1792
1843
  throw notSupported(method === "register" || method === "watchers" || method === "matches" || method === "ack" ? "watchers" : method);
@@ -2040,12 +2091,13 @@ function createVercel(options, environment) {
2040
2091
  const who = whoOf(caller);
2041
2092
  const clientId = input.id !== void 0 ? await clientIdOf(input.id) : void 0;
2042
2093
  let made;
2094
+ let channelName;
2043
2095
  if (input.channel !== void 0) {
2044
- const channel = await channelToPost(who, input.channel);
2096
+ channelName = input.channel;
2045
2097
  made = await api(who, "POST", await onBoard(who, "/threads"), {
2046
2098
  body: {
2047
2099
  operationId: operationId(),
2048
- channelId: channel.id,
2100
+ channel: input.channel,
2049
2101
  text: input.text,
2050
2102
  ...input.labels && Object.keys(input.labels).length ? { labels: input.labels } : {},
2051
2103
  ...clientId ? { clientId } : {},
@@ -2056,13 +2108,14 @@ function createVercel(options, environment) {
2056
2108
  });
2057
2109
  } else {
2058
2110
  const { thread, message: to, channel } = await messageIn(who, input.re, signal);
2111
+ channelName = channel.name;
2059
2112
  const after = input.after === void 0 ? void 0 : locate(input.after);
2060
2113
  if (after !== void 0 && after?.threadId !== thread.id) {
2061
2114
  const landed = clientId ? await api(who, "GET", await onBoard(who, `/posts/${encodeURIComponent(clientId)}`), { signal }).catch(() => null) : null;
2062
2115
  if (landed?.thread.id === thread.id) return { message: await view(who, landed.message, channel.name) };
2063
2116
  throw badRequest(`after: ${input.after} isn't in ${input.re}'s thread`, "invalid_after");
2064
2117
  }
2065
- made = await api(who, "POST", await onBoard(who, `/threads/${encodeURIComponent(thread.id)}/messages`), {
2118
+ const reply = await api(who, "POST", await onBoard(who, `/threads/${encodeURIComponent(thread.id)}/messages`), {
2066
2119
  body: {
2067
2120
  operationId: operationId(),
2068
2121
  text: input.text,
@@ -2078,25 +2131,27 @@ function createVercel(options, environment) {
2078
2131
  throw error;
2079
2132
  });
2080
2133
  if (input.labels && Object.keys(input.labels).length) {
2081
- const labeled = await api(who, "POST", await onBoard(who, `/threads/${encodeURIComponent(thread.id)}/messages/${made.message.sequence}/labels`), {
2134
+ const labeled = await api(who, "POST", await onBoard(who, `/threads/${encodeURIComponent(thread.id)}/messages/${reply.message.sequence}/labels`), {
2082
2135
  body: {
2083
2136
  operationId: operationId(),
2084
2137
  set: input.labels
2085
2138
  },
2086
2139
  signal
2087
2140
  });
2088
- made = {
2089
- ...made,
2090
- message: {
2091
- ...made.message,
2092
- ...labeled.meta.labels ? { labels: labeled.meta.labels } : {},
2093
- version: labeled.meta.version
2094
- }
2141
+ reply.message = {
2142
+ ...reply.message,
2143
+ ...labeled.meta.labels ? { labels: labeled.meta.labels } : {},
2144
+ version: labeled.meta.version
2095
2145
  };
2096
2146
  }
2147
+ made = reply;
2148
+ }
2149
+ const channelId = made.thread.channelId;
2150
+ if (channelId !== void 0) {
2151
+ if (clientId !== void 0 && posted.get(channelId) !== channelName) channelName = await channelById(who, channelId).then((channel) => (posted.set(channelId, channel.name), channel.name), () => channelName);
2152
+ else posted.set(channelId, channelName);
2097
2153
  }
2098
- const channel = await channelById(who, made.thread.channelId);
2099
- return { message: await view(who, made.message, channel.name) };
2154
+ return { message: await view(who, "text" in made.message ? made.message : await sent(who, made.message, input), channelName) };
2100
2155
  },
2101
2156
  async posted(caller, { id }, signal) {
2102
2157
  const who = whoOf(caller);
@@ -2173,7 +2228,7 @@ function createVercel(options, environment) {
2173
2228
  ...input
2174
2229
  },
2175
2230
  ...signal ? { signal } : {}
2176
- });
2231
+ }).catch(grantRefused);
2177
2232
  return { grant: grantFrom(grant) };
2178
2233
  },
2179
2234
  async updateGrant(caller, { id, ...change }, signal) {
@@ -2184,7 +2239,7 @@ function createVercel(options, environment) {
2184
2239
  ...change
2185
2240
  },
2186
2241
  ...signal ? { signal } : {}
2187
- });
2242
+ }).catch(grantRefused);
2188
2243
  return { grant: grantFrom(grant) };
2189
2244
  },
2190
2245
  async explain(caller, { claim, ...query }, signal) {
@@ -2192,7 +2247,7 @@ function createVercel(options, environment) {
2192
2247
  const params = new URLSearchParams();
2193
2248
  for (const [name, value] of Object.entries(query)) if (value !== void 0) params.set(name, value);
2194
2249
  for (const pair of claim ?? []) params.append("claim", pair);
2195
- const explained = await api(who, "GET", await onBoard(who, `/grants/explain?${params}`), signal ? { signal } : {});
2250
+ const explained = await api(who, "GET", await onBoard(who, `/grants/explain?${params}`), signal ? { signal } : {}).catch(explainRefused);
2196
2251
  return {
2197
2252
  ...explained,
2198
2253
  grants: explained.grants.map(grantFrom)
@@ -2218,7 +2273,7 @@ function createVercel(options, environment) {
2218
2273
  ...input
2219
2274
  },
2220
2275
  ...signal ? { signal } : {}
2221
- });
2276
+ }).catch(mintRefused);
2222
2277
  return {
2223
2278
  ...created,
2224
2279
  token: tokenFrom(created.token)
@@ -2631,7 +2686,7 @@ function createPolicy(options, keeps, serving, trust = null) {
2631
2686
  };
2632
2687
  throw error;
2633
2688
  }
2634
- const scope = principal.scope === void 0 ? null : compileAccess(parseScope(principal.scope));
2689
+ const scope = principal.scope === void 0 ? null : compileAccess(parseCan(principal.scope));
2635
2690
  const allowed = (permissions) => scope ? permissions.filter((permission) => scope.can(permission, channel)) : [...permissions];
2636
2691
  if ("fixed" in resolved) return {
2637
2692
  pattern: null,
@@ -2662,7 +2717,7 @@ function createPolicy(options, keeps, serving, trust = null) {
2662
2717
  async identify(request) {
2663
2718
  const found = await principalOf(request);
2664
2719
  const claims = found.pinned ? pinnedClaims(found.pinned, request.claims) : request.claims;
2665
- const scope = found.scope === void 0 ? claims.scope ?? void 0 : claims.scope === null ? found.scope : scopeOf(compileAccess(parseScope(found.scope)).narrow(parseScope(claims.scope)));
2720
+ const scope = found.scope === void 0 ? claims.scope ?? void 0 : claims.scope === null ? found.scope : canText(compileAccess(parseCan(found.scope)).narrow(parseCan(claims.scope)));
2666
2721
  const principal = scope === void 0 ? found : {
2667
2722
  ...found,
2668
2723
  scope
@@ -1,4 +1,4 @@
1
- import { d as MESSAGE_TEXT_MAX, f as MessageId } from "./schemas-BG205xds.mjs";
1
+ import { f as MESSAGE_TEXT_MAX, p as MessageId } from "./schemas-AZkxk06N.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/contract/external.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { d as Board, f as BoardOptions } from "./backend-BIvl2z1z.mjs";
2
- import "./exports-Bb0m03fT.mjs";
1
+ import { d as Board, f as BoardOptions } from "./backend-BkQlF1LQ.mjs";
2
+ import "./exports-BJ3wmEMY.mjs";
3
3
  //#region src/server/index.d.ts
4
4
  /**
5
5
  * The handle on a board. Without a `backend`, it's Vercel's board for your team, the one `name`
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { $ as ScheduleInput, A as LinkedQuery, At as TypingResult, B as PostInput, C as InboxItem, Ct as ThreadsPage, D as LABEL_CONDITIONS_MAX, Dt as TokenInput, E as InboxQuery, Et as TokenBody, F as MessagesPage, Ft as routes, G as Ref, H as PrincipalView, I as MessagesQuery, J as RegistrationView, K as RegisterBody, L as MessagesQueryInput, M as MatchesQuery, Mt as UpdateGrantInput, N as Me, Nt as UploadStartBody, O as LabelBody, Ot as TokenView, P as MessageView, Pt as UploadTicket, Q as ScheduleBodyOutput, R as ParsedFilters, S as InboxEntry, St as ThreadView, T as InboxPushBody, Tt as ThreadsQueryInput, U as REGISTERED_WATCHERS_MAX, V as PrincipalInput, W as ReactBody, X as RouteName, Y as ResolvedSyncTarget, Z as ScheduleBody, _ as GrantBody, _t as SyncReceiptBody, a as CanAt, at as SourceJoinBody, b as GrantView, bt as SyncedView, c as DeleteBody, ct as SourceReadQuery, d as EventsPage, dt as SyncCopiesView, en as Attachment, et as ScheduleView, f as EventsQuery, ft as SyncFindInput, g as FiltersInput, gt as SyncImportInput, h as Explanation, ht as SyncImportBody, i as BoardEventView, it as SourceJoin, j as MatchView, jt as UpdateGrantBody, k as LinkView, kt as TypingBody, l as Discovery, lt as SyncBody, m as ExplainQuery, mt as SyncFindView, n as ActorView, nt as SchedulesQueryInput, o as ChannelView, ot as SourceMessage, p as EventsQueryInput, pt as SyncFindQuery, q as RegisterInput, r as ApiError, rt as SchedulesQueryOutput, s as CreateChannelBody, st as SourceRead, t as AckBody, tt as SchedulesQuery, u as EditBody, ut as SyncCopiesQuery, v as GrantCan, vt as SyncReceiptInput, w as InboxNextQuery, wt as ThreadsQuery, x as InboxAckBody, xt as ThreadSummaryView, y as GrantInput, yt as SyncThreadView, z as PostBody } from "./routes-BtsZzal-.mjs";
2
- import { i as Claims, r as CallerRequest } from "./auth-BHXgi696.mjs";
3
- 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-BIvl2z1z.mjs";
4
- import { B as ScheduleTiming, F as Filters, H as WaitOptions, I as PostOptions, L as ProfileOption, N as BoardError, R as ReplyOptions, U as Written, V as UploadInput, W as duration, z as ScheduleOptions } from "./provider-7pOnK8Jw.mjs";
5
- import "./exports-Bb0m03fT.mjs";
1
+ import { $ as ScheduleInput, A as LinkedQuery, At as TypingResult, B as PostInput, C as InboxItem, Ct as ThreadsPage, D as LABEL_CONDITIONS_MAX, Dt as TokenInput, E as InboxQuery, Et as TokenBody, F as MessagesPage, Ft as routes, G as Ref, H as PrincipalView, I as MessagesQuery, J as RegistrationView, K as RegisterBody, L as MessagesQueryInput, M as MatchesQuery, Mt as UpdateGrantInput, N as Me, Nt as UploadStartBody, O as LabelBody, Ot as TokenView, P as MessageView, Pt as UploadTicket, Q as ScheduleBodyOutput, R as ParsedFilters, S as InboxEntry, St as ThreadView, T as InboxPushBody, Tt as ThreadsQueryInput, U as REGISTERED_WATCHERS_MAX, V as PrincipalInput, W as ReactBody, X as RouteName, Y as ResolvedSyncTarget, Z as ScheduleBody, _ as GrantBody, _t as SyncReceiptBody, a as CanAt, at as SourceJoinBody, b as GrantView, bt as SyncedView, c as DeleteBody, ct as SourceReadQuery, d as EventsPage, dt as SyncCopiesView, et as ScheduleView, f as EventsQuery, ft as SyncFindInput, g as FiltersInput, gt as SyncImportInput, h as Explanation, ht as SyncImportBody, i as BoardEventView, it as SourceJoin, j as MatchView, jt as UpdateGrantBody, k as LinkView, kt as TypingBody, l as Discovery, lt as SyncBody, m as ExplainQuery, mt as SyncFindView, n as ActorView, nt as SchedulesQueryInput, o as ChannelView, ot as SourceMessage, p as EventsQueryInput, pt as SyncFindQuery, q as RegisterInput, r as ApiError, rt as SchedulesQueryOutput, s as CreateChannelBody, st as SourceRead, t as AckBody, tn as Attachment, tt as SchedulesQuery, u as EditBody, ut as SyncCopiesQuery, v as GrantCan, vt as SyncReceiptInput, w as InboxNextQuery, wt as ThreadsQuery, x as InboxAckBody, xt as ThreadSummaryView, y as GrantInput, yt as SyncThreadView, z as PostBody } from "./routes-BffuaoTX.mjs";
2
+ import { i as Claims, r as CallerRequest } from "./auth-BXLCkeB0.mjs";
3
+ 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-BkQlF1LQ.mjs";
4
+ import { B as ScheduleTiming, F as Filters, H as WaitOptions, I as PostOptions, L as ProfileOption, N as BoardError, R as ReplyOptions, U as Written, V as UploadInput, W as duration, z as ScheduleOptions } from "./provider-D5yVFisj.mjs";
5
+ import "./exports-BJ3wmEMY.mjs";
6
6
  //#region src/server/index.default.d.ts
7
7
  /**
8
8
  * The handle on a board. Without a `backend`, it's Vercel's board for the team, the one `name`
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { f as duration, t as HttpError, u as BoardError } from "./errors-rYDxZEuN.mjs";
2
- import { t as DroppedError } from "./middleware-k_XKQ6f7.mjs";
3
- import { r as createVercel, t as createBoard } from "./exports-DTezg4xR.mjs";
2
+ import { t as DroppedError } from "./middleware-CPqAuRtp.mjs";
3
+ import { r as createVercel, t as createBoard } from "./exports-BsfcChdp.mjs";
4
4
  //#region src/backend-vercel/index.default.ts
5
5
  /**
6
6
  * Your team's board, in Vercel's API. Outside Node there's no environment to find credentials or
@@ -23,7 +23,7 @@ function board(options = {}) {
23
23
  if (!fetch) throw new Error("board: pass a fetch that sends credentials Vercel's API takes, or a backend: outside Node there's no environment to find them in");
24
24
  return vercel({ fetch });
25
25
  },
26
- sync: () => import("./engine-COa73McY.mjs"),
26
+ sync: () => import("./engine-eUgO5jTM.mjs"),
27
27
  serving: null
28
28
  });
29
29
  }
@@ -1,6 +1,6 @@
1
- import { $ as ScheduleInput, A as LinkedQuery, At as TypingResult, B as PostInput, C as InboxItem, Ct as ThreadsPage, D as LABEL_CONDITIONS_MAX, Dt as TokenInput, E as InboxQuery, Et as TokenBody, F as MessagesPage, Ft as routes, G as Ref, H as PrincipalView, I as MessagesQuery, J as RegistrationView, K as RegisterBody, L as MessagesQueryInput, M as MatchesQuery, Mt as UpdateGrantInput, N as Me, Nt as UploadStartBody, O as LabelBody, Ot as TokenView, P as MessageView, Pt as UploadTicket, Q as ScheduleBodyOutput, R as ParsedFilters, S as InboxEntry, St as ThreadView, T as InboxPushBody, Tt as ThreadsQueryInput, U as REGISTERED_WATCHERS_MAX, V as PrincipalInput, W as ReactBody, X as RouteName, Y as ResolvedSyncTarget, Z as ScheduleBody, _ as GrantBody, _t as SyncReceiptBody, a as CanAt, at as SourceJoinBody, b as GrantView, bt as SyncedView, c as DeleteBody, ct as SourceReadQuery, d as EventsPage, dt as SyncCopiesView, en as Attachment, et as ScheduleView, f as EventsQuery, ft as SyncFindInput, g as FiltersInput, gt as SyncImportInput, h as Explanation, ht as SyncImportBody, i as BoardEventView, it as SourceJoin, j as MatchView, jt as UpdateGrantBody, k as LinkView, kt as TypingBody, l as Discovery, lt as SyncBody, m as ExplainQuery, mt as SyncFindView, n as ActorView, nt as SchedulesQueryInput, o as ChannelView, ot as SourceMessage, p as EventsQueryInput, pt as SyncFindQuery, q as RegisterInput, r as ApiError, rt as SchedulesQueryOutput, s as CreateChannelBody, st as SourceRead, t as AckBody, tt as SchedulesQuery, u as EditBody, ut as SyncCopiesQuery, v as GrantCan, vt as SyncReceiptInput, w as InboxNextQuery, wt as ThreadsQuery, x as InboxAckBody, xt as ThreadSummaryView, y as GrantInput, yt as SyncThreadView, z as PostBody } from "./routes-BtsZzal-.mjs";
2
- import { i as Claims, r as CallerRequest } from "./auth-BHXgi696.mjs";
3
- 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-BIvl2z1z.mjs";
4
- import { B as ScheduleTiming, F as Filters, H as WaitOptions, I as PostOptions, L as ProfileOption, N as BoardError, R as ReplyOptions, U as Written, V as UploadInput, W as duration, z as ScheduleOptions } from "./provider-7pOnK8Jw.mjs";
5
- import { t as board } from "./index-B1TZrMMu.mjs";
1
+ import { $ as ScheduleInput, A as LinkedQuery, At as TypingResult, B as PostInput, C as InboxItem, Ct as ThreadsPage, D as LABEL_CONDITIONS_MAX, Dt as TokenInput, E as InboxQuery, Et as TokenBody, F as MessagesPage, Ft as routes, G as Ref, H as PrincipalView, I as MessagesQuery, J as RegistrationView, K as RegisterBody, L as MessagesQueryInput, M as MatchesQuery, Mt as UpdateGrantInput, N as Me, Nt as UploadStartBody, O as LabelBody, Ot as TokenView, P as MessageView, Pt as UploadTicket, Q as ScheduleBodyOutput, R as ParsedFilters, S as InboxEntry, St as ThreadView, T as InboxPushBody, Tt as ThreadsQueryInput, U as REGISTERED_WATCHERS_MAX, V as PrincipalInput, W as ReactBody, X as RouteName, Y as ResolvedSyncTarget, Z as ScheduleBody, _ as GrantBody, _t as SyncReceiptBody, a as CanAt, at as SourceJoinBody, b as GrantView, bt as SyncedView, c as DeleteBody, ct as SourceReadQuery, d as EventsPage, dt as SyncCopiesView, et as ScheduleView, f as EventsQuery, ft as SyncFindInput, g as FiltersInput, gt as SyncImportInput, h as Explanation, ht as SyncImportBody, i as BoardEventView, it as SourceJoin, j as MatchView, jt as UpdateGrantBody, k as LinkView, kt as TypingBody, l as Discovery, lt as SyncBody, m as ExplainQuery, mt as SyncFindView, n as ActorView, nt as SchedulesQueryInput, o as ChannelView, ot as SourceMessage, p as EventsQueryInput, pt as SyncFindQuery, q as RegisterInput, r as ApiError, rt as SchedulesQueryOutput, s as CreateChannelBody, st as SourceRead, t as AckBody, tn as Attachment, tt as SchedulesQuery, u as EditBody, ut as SyncCopiesQuery, v as GrantCan, vt as SyncReceiptInput, w as InboxNextQuery, wt as ThreadsQuery, x as InboxAckBody, xt as ThreadSummaryView, y as GrantInput, yt as SyncThreadView, z as PostBody } from "./routes-BffuaoTX.mjs";
2
+ import { i as Claims, r as CallerRequest } from "./auth-BXLCkeB0.mjs";
3
+ 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-BkQlF1LQ.mjs";
4
+ import { B as ScheduleTiming, F as Filters, H as WaitOptions, I as PostOptions, L as ProfileOption, N as BoardError, R as ReplyOptions, U as Written, V as UploadInput, W as duration, z as ScheduleOptions } from "./provider-D5yVFisj.mjs";
5
+ import { t as board } from "./index-DpVyZa9b.mjs";
6
6
  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 CanAt, type ChannelView, type Claims, type CreateChannelBody, type DeleteBody, type Discovery, DroppedError, type EditBody, type EventsPage, type EventsQuery, type EventsQueryInput, type ExplainQuery, type Explanation, type Filters, type FiltersInput, type GrantBody, type GrantCan, 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 PrincipalInput, type PrincipalView, 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 UpdateGrantBody, type UpdateGrantInput, 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,4 +1,4 @@
1
1
  import { f as duration, t as HttpError, u as BoardError } from "./errors-rYDxZEuN.mjs";
2
- import { t as DroppedError } from "./middleware-k_XKQ6f7.mjs";
3
- import { t as board } from "./server-Drul_uwj.mjs";
2
+ import { t as DroppedError } from "./middleware-CPqAuRtp.mjs";
3
+ import { t as board } from "./server-Cc3nYq3H.mjs";
4
4
  export { BoardError, DroppedError, HttpError, board, duration };