@vercel/board 0.58.0 → 0.59.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 (47) hide show
  1. package/dist/{backend-9H57DlQt.d.mts → backend-BtQfimL9.d.mts} +33 -15
  2. package/dist/backend-local.d.mts +1 -1
  3. package/dist/backend-local.mjs +1 -1
  4. package/dist/backend-postgres.d.mts +1 -1
  5. package/dist/backend-postgres.mjs +2 -2
  6. package/dist/{chat-provider-BiJ8G6KY.d.mts → chat-provider-CW-YpGWe.d.mts} +4 -3
  7. package/dist/{chat-provider-Br2RXgLV.mjs → chat-provider-eRYSL4XG.mjs} +4 -4
  8. package/dist/cli-commands.mjs +1 -1
  9. package/dist/cli-embedded.d.mts +2 -2
  10. package/dist/cli-embedded.mjs +2 -2
  11. package/dist/cli.mjs +6 -6
  12. package/dist/{commands-totPnoCC.mjs → commands-CkRYuvpd.mjs} +1 -0
  13. package/dist/conformance.d.mts +1 -1
  14. package/dist/{exports-WtqjdQwb.mjs → exports-CVn4-cJw.mjs} +9 -3
  15. package/dist/{exports-Bh09j6Bd.d.mts → exports-D87KpsSi.d.mts} +27 -2
  16. package/dist/index-CEhxdS5w.d.mts +19 -0
  17. package/dist/index.d.mts +9 -3
  18. package/dist/index.mjs +16 -4
  19. package/dist/index.node.d.mts +4 -4
  20. package/dist/index.node.mjs +3 -3
  21. package/dist/inspect/app.js +27 -27
  22. package/dist/inspect-Dpo80DCM.mjs +2 -0
  23. package/dist/{inspect-CtPZz0WG.mjs → inspect-FiqR2gH8.mjs} +2 -2
  24. package/dist/inspect.mjs +1 -1
  25. package/dist/{local-B7Yp-B2z.mjs → local-BEBMGqdU.mjs} +2 -2
  26. package/dist/{local-BPiDCkA4.mjs → local-PquD719G.mjs} +2 -2
  27. package/dist/{main-BvkLqpUX.mjs → main-CKjm9hso.mjs} +14 -8
  28. package/dist/{serve-ChlJ955x.mjs → serve-DwpXzLhp.mjs} +3 -3
  29. package/dist/{server-CRdVLqny.mjs → server-CKCAEME6.mjs} +18 -5
  30. package/dist/{shell-hTUuAc6A.mjs → shell-953VaBzO.mjs} +1 -1
  31. package/dist/sync-chat-sdk.d.mts +1 -1
  32. package/dist/sync-chat-sdk.mjs +1 -1
  33. package/dist/sync-github.d.mts +1 -1
  34. package/dist/sync-github.mjs +1 -1
  35. package/dist/sync-linear.d.mts +1 -1
  36. package/dist/sync-linear.mjs +1 -1
  37. package/dist/sync-slack.d.mts +21 -4
  38. package/dist/sync-slack.mjs +33 -2
  39. package/dist/{task-batch-CnRhVsh6.mjs → task-batch-BfE8TCBM.mjs} +2 -2
  40. package/dist/{version-rlZkE9nc.mjs → version-yDZzeoWl.mjs} +1 -1
  41. package/docs/01-board/01-mounting.md +16 -0
  42. package/docs/02-sync/03-slack.md +5 -0
  43. package/docs/02-sync/05-managed.md +2 -2
  44. package/docs/04-reference/01-cli.md +4 -4
  45. package/package.json +1 -1
  46. package/dist/index-mgNwCwJ4.d.mts +0 -11
  47. package/dist/inspect-wkA_8iyU.mjs +0 -2
@@ -728,21 +728,7 @@ type Watcher = {
728
728
  * `board()`'s options: where the board lives, who may use it and what its writes go through, and
729
729
  * what runs here. The backend keeps or reaches the log; the policy is the board's.
730
730
  */
731
- type BoardOptions = PolicyOptions & (BackendOptions | DefaultOptions) & {
732
- /**
733
- * Which of the team's boards this is, by its name: `security` is the team's board named
734
- * security. Without one, the team's default board. A name is 1 to 64 characters with no `/`, and
735
- * matches whatever its case. The backend reads it when board() binds it: `vercel()` finds that
736
- * board, a board on `http()` is the one at its URL, whatever its name.
737
- */
738
- name?: string;
739
- /**
740
- * With `name`: whether to make that board when the team has none by that name, whoever calls (a
741
- * deployment, or a person: `next dev` with a login, a script). It does by default; `ensure: false`
742
- * only finds one, and a name the team has none for fails with 404 `no_board`. `vb` passes false
743
- * unless `--ensure` is given, so a typo at a terminal makes no board.
744
- */
745
- ensure?: boolean;
731
+ type BoardOptions = PolicyOptions & (BackendOptions | DefaultOptions) & (ByName | ById) & {
746
732
  /**
747
733
  * Whose board this is: another team's, by its ID (`team_…`) or its slug, with `name` or without
748
734
  * it for that team's default board. Without one, the team the environment finds: in Node, the
@@ -817,6 +803,36 @@ type AsOptions = {
817
803
  */
818
804
  can?: Can | string;
819
805
  };
806
+ /** A team's board by its name, or its default board. */
807
+ type ByName = {
808
+ /**
809
+ * Which of the team's boards this is, by its name: `security` is the team's board named
810
+ * security. Without one, the team's default board. A name is 1 to 64 characters with no `/`, and
811
+ * matches whatever its case. The backend reads it when board() binds it: `vercel()` finds that
812
+ * board, a board on `http()` is the one at its URL, whatever its name.
813
+ */
814
+ name?: string;
815
+ /**
816
+ * With `name`: whether to make that board when the team has none by that name, whoever calls (a
817
+ * deployment, or a person: `next dev` with a login, a script). It does by default; `ensure: false`
818
+ * only finds one, and a name the team has none for fails with 404 `no_board`. `vb` passes false
819
+ * unless `--ensure` is given, so a typo at a terminal makes no board.
820
+ */
821
+ ensure?: boolean;
822
+ id?: never;
823
+ };
824
+ /** A team's board by its ID, on Vercel's: one that keeps its ID whatever it's named. */
825
+ type ById = {
826
+ /**
827
+ * Which of the team's boards this is, by its ID (`brd_…`), as `vb list` shows
828
+ * it: in place of `name`, never with it. Each request names the board by it, so a rename leaves
829
+ * it. Only on Vercel's board, the one board() picks without a `backend`: with `BOARD_URL` set, the
830
+ * board is the one at that URL, whatever the ID.
831
+ */
832
+ id: string;
833
+ name?: never;
834
+ ensure?: never;
835
+ };
820
836
  /** A board on a backend you pass, which says how it reaches the board itself. */
821
837
  type BackendOptions = {
822
838
  /**
@@ -826,6 +842,8 @@ type BackendOptions = {
826
842
  */
827
843
  backend: Backend;
828
844
  fetch?: never;
845
+ /** A backend you pass says which board it is. */
846
+ id?: never;
829
847
  };
830
848
  /** A board on the backend board() picks: Vercel's, or with `BOARD_URL` set, the board at that URL. */
831
849
  type DefaultOptions = {
@@ -1,4 +1,4 @@
1
- import { t as Backend } from "./backend-9H57DlQt.mjs";
1
+ import { t as Backend } from "./backend-BtQfimL9.mjs";
2
2
  //#region src/server/local.d.ts
3
3
  type LocalOptions = {
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { t as local } from "./local-BPiDCkA4.mjs";
1
+ import { t as local } from "./local-PquD719G.mjs";
2
2
  export { local };
@@ -1,5 +1,5 @@
1
1
  import "./routes-D5FtKOP_.mjs";
2
- import { t as Backend } from "./backend-9H57DlQt.mjs";
2
+ import { t as Backend } from "./backend-BtQfimL9.mjs";
3
3
  import { t as BlobStore } from "./blob-CdLCZEPM.mjs";
4
4
  import { t as Scheduler } from "./vercel-B5FM4uS8.mjs";
5
5
  //#region src/store/postgres-db.d.ts
@@ -1,8 +1,8 @@
1
1
  import { t as HttpError } from "./errors-Ce_-E3_C.mjs";
2
- import { u as METHODS } from "./task-batch-CnRhVsh6.mjs";
2
+ import { u as METHODS } from "./task-batch-BfE8TCBM.mjs";
3
3
  import { C as duplicateBatchError, D as supersededAttemptError, E as sessionClearedError, T as lastIndexMismatchError, b as CLEAR_EVENT_TYPE, m as nullProtoRecord, n as NOTIFY_TIMINGS, r as POLL_TIMINGS, y as A2Error } from "./internal-CvsrprnU-DhZF6sZK.mjs";
4
4
  import { a as retryableLazy, o as platformWaitUntil } from "./server-DX7mM6nm-Cq1xPyqJ.mjs";
5
- import { n as a2, t as localScheduler } from "./local-B7Yp-B2z.mjs";
5
+ import { n as a2, t as localScheduler } from "./local-BEBMGqdU.mjs";
6
6
  import { n as defaultSleep, r as pollingStream } from "./store-polling-BZt2Rf3D-nlZUQLz2.mjs";
7
7
  import { r as sqlTables } from "./sql-CvBbb5Ui.mjs";
8
8
  import { n as SYSTEM_CLOCK, t as RANDOM_IDS } from "./store-N8PXxDAS-DWWgv-Vz.mjs";
@@ -27,7 +27,8 @@ type ChatTransport = Omit<ProviderOptions, 'uploadsFiles'> & {
27
27
  mentionById?(id: string): string | null;
28
28
  /** The platform's users a message's text mentions as `@[<their id>]`, which `markdown` wrote there. */
29
29
  mentioned?(text: string): Promise<ExternalAuthor[]>;
30
- author?(author: Author, raw: unknown): ExternalAuthor;
30
+ /** Who wrote a message or reacted, where the platform knows them better than the adapter's record does. Nothing keeps the adapter's. */
31
+ author?(author: Author, raw: unknown): ExternalAuthor | null | Promise<ExternalAuthor | null>;
31
32
  /** A channel's name as its native ID. Without it, a name is the ID. */
32
33
  resolveChannel?(key: string): Promise<string>;
33
34
  /**
@@ -95,13 +96,13 @@ declare abstract class ChatSyncProvider<E extends ProviderEvent = ProviderEvent>
95
96
  };
96
97
  inboxChannel(key: string, thread: string): string;
97
98
  eventId(key: string, input: ChatInput): string;
98
- protected author(author: Author, raw: unknown): {
99
+ protected author(author: Author, raw: unknown): Promise<{
99
100
  id: string;
100
101
  handle: string;
101
102
  name: string;
102
103
  avatar: string | null;
103
104
  isBot: boolean;
104
- };
105
+ }>;
105
106
  protected authorOf(message: Message): Promise<{
106
107
  id: string;
107
108
  handle: string;
@@ -203,11 +203,11 @@ var ChatSyncProvider = class extends SyncProvider {
203
203
  const at = message.metadata?.editedAt ? new Date(message.metadata.editedAt).getTime() : NaN;
204
204
  return `edited:${location}|${createHash("sha256").update(message.text).digest("base64url")}${Number.isFinite(at) ? `|${at}` : ""}`;
205
205
  }
206
- author(author, raw) {
207
- return this.transport.author?.(author, raw) ?? externalAuthor(this.platform, author);
206
+ async author(author, raw) {
207
+ return await this.transport.author?.(author, raw) ?? externalAuthor(this.platform, author);
208
208
  }
209
209
  async authorOf(message) {
210
- const author = this.author(message.author, message.raw);
210
+ const author = await this.author(message.author, message.raw);
211
211
  const avatar = await this.transport.avatar?.(message).catch(() => null);
212
212
  return avatar ? {
213
213
  ...author,
@@ -237,7 +237,7 @@ var ChatSyncProvider = class extends SyncProvider {
237
237
  message: event.messageId,
238
238
  emoji,
239
239
  added: event.added,
240
- author: this.author(event.user, event.raw)
240
+ author: await this.author(event.user, event.raw)
241
241
  }
242
242
  };
243
243
  }
@@ -1,2 +1,2 @@
1
- import { a as option, i as groups, n as filters, o as options, r as globalOptions, s as usage, t as commands } from "./commands-totPnoCC.mjs";
1
+ import { a as option, i as groups, n as filters, o as options, r as globalOptions, s as usage, t as commands } from "./commands-CkRYuvpd.mjs";
2
2
  export { commands, filters, globalOptions, groups, option, options, usage };
@@ -1,5 +1,5 @@
1
- import { f as Board } from "./backend-9H57DlQt.mjs";
2
- import "./index-mgNwCwJ4.mjs";
1
+ import { f as Board } from "./backend-BtQfimL9.mjs";
2
+ import "./index-CEhxdS5w.mjs";
3
3
  //#region src/cli/claims.d.ts
4
4
  /** A claim as the CLI keeps it: what its writes carry, and when its lease ends. */
5
5
  type HeldClaim = {
@@ -1,5 +1,5 @@
1
- import { o as stoppedBy } from "./exports-WtqjdQwb.mjs";
2
- import { a as commandLine, c as failureLines, i as mainWith, l as formatFailure, n as commandWord, o as exitCode, r as main, s as failureDocument, t as Failed } from "./main-BvkLqpUX.mjs";
1
+ import { o as stoppedBy } from "./exports-CVn4-cJw.mjs";
2
+ import { a as commandLine, c as failureLines, i as mainWith, l as formatFailure, n as commandWord, o as exitCode, r as main, s as failureDocument, t as Failed } from "./main-CKjm9hso.mjs";
3
3
  //#region src/cli/embedded.ts
4
4
  /**
5
5
  * Board's CLI as `appName` names it in help, usage, and errors (`vercel board`). With no board
package/dist/cli.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { a as option } from "./commands-totPnoCC.mjs";
3
- import { _ as projectDir } from "./server-CRdVLqny.mjs";
4
- import { r as main } from "./main-BvkLqpUX.mjs";
5
- import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-CtPZz0WG.mjs";
2
+ import { a as option } from "./commands-CkRYuvpd.mjs";
3
+ import { v as projectDir } from "./server-CKCAEME6.mjs";
4
+ import { r as main } from "./main-CKjm9hso.mjs";
5
+ import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-FiqR2gH8.mjs";
6
6
  import { appendFile, readFile } from "node:fs/promises";
7
7
  import { join } from "node:path";
8
8
  //#region src/cli/local.ts
@@ -37,7 +37,7 @@ const local = {
37
37
  },
38
38
  async run(args, context) {
39
39
  if (args.length > 0) throw context.usage("inspect takes no arguments: pass its port with --port.");
40
- return (await import("./inspect-wkA_8iyU.mjs")).inspect(context);
40
+ return (await import("./inspect-Dpo80DCM.mjs")).inspect(context);
41
41
  }
42
42
  },
43
43
  serve: {
@@ -81,7 +81,7 @@ const local = {
81
81
  }, "tailscale");
82
82
  if (tailscale.length > 0 && hosts.length > 0) throw usage("--tailscale takes Tailscale's word for who's calling, which another proxy in front could forge: it doesn't go with --allow-host.");
83
83
  const root = projectDir();
84
- const { serveLocal } = await import("./serve-ChlJ955x.mjs");
84
+ const { serveLocal } = await import("./serve-DwpXzLhp.mjs");
85
85
  const local = await serveLocal({
86
86
  dir: flags.dir ?? join(root, ".board"),
87
87
  hosts,
@@ -1167,6 +1167,7 @@ const commands = [
1167
1167
  runsWithoutSubcommand: true,
1168
1168
  subcommands: [{
1169
1169
  name: "remove",
1170
+ aliases: ["rm"],
1170
1171
  description: "stop a sync the board runs (with sync where its events land): what it brought in stays",
1171
1172
  arguments: [{
1172
1173
  name: "sync",
@@ -1,4 +1,4 @@
1
- import { f as Board } from "./backend-9H57DlQt.mjs";
1
+ import { f as Board } from "./backend-BtQfimL9.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
@@ -4,9 +4,9 @@ import { $ as PostBody, A as ClaimTaskBody, B as ExplainQuery, C as ActorsQuery,
4
4
  import { n as blocksIn, r as findBlocks } from "./blocks-CVoBC7ur.mjs";
5
5
  import { a as mentionTerms, c as settleMentions, i as mentionTerm, r as meTerms, s as replaceMentions, t as extractMentions } from "./mentions-DBGmqkr2.mjs";
6
6
  import { a as waitUntil, c as platformProfile, d as userIdOf, o as actorParts, r as runMiddleware, s as importedHandle, t as DroppedError, u as underPrincipal } from "./middleware-DVBOEd8G.mjs";
7
- import { t as VERSION } from "./version-rlZkE9nc.mjs";
7
+ import { t as VERSION } from "./version-yDZzeoWl.mjs";
8
8
  import { a as canText, c as compileAccess, d as parsePattern, n as InvalidCan, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-D1AHzFSP.mjs";
9
- import { _ as uploadName, a as runMatch, d as createRouter, f as openapi, g as carried, h as readJson, i as canonicalWatchers, m as readCapped, n as SYNC_ACTOR, o as compileWatcher, p as queryObject, r as syncTarget, t as batchPlan, u as METHODS, v as SYNC } from "./task-batch-CnRhVsh6.mjs";
9
+ import { _ as uploadName, a as runMatch, d as createRouter, f as openapi, g as carried, h as readJson, i as canonicalWatchers, m as readCapped, n as SYNC_ACTOR, o as compileWatcher, p as queryObject, r as syncTarget, t as batchPlan, u as METHODS, v as SYNC } from "./task-batch-BfE8TCBM.mjs";
10
10
  import { C as verifiedIssuers, D as explainGrants, d as createAuthority, f as fromTokens, m as hostPrincipal, o as VERCEL_ISSUER, p as grantIssuers, t as DEFAULT_CAN$1, v as namesByLogin, w as verifiesTokens } from "./auth-Cc5_pdi7.mjs";
11
11
  import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-CCth21rU.mjs";
12
12
  import { t as checkValue } from "./data-values-CoTP0SQG.mjs";
@@ -6667,6 +6667,7 @@ const avatarUrl = (value) => {
6667
6667
  const BOARD_NAME = /^[^/]{1,64}$/;
6668
6668
  /** A team, by its ID or its slug. */
6669
6669
  const TEAM = /^[^\s/]+$/;
6670
+ const BOARD_ID = /^brd_[^\s/]+$/;
6670
6671
  /** Whether `name` is a board's name, such as `security`, counted as Vercel's API counts it: trimmed and NFC-normalized. */
6671
6672
  const isBoardName = (name) => BOARD_NAME.test(name.trim().normalize("NFC"));
6672
6673
  /**
@@ -6678,8 +6679,13 @@ const isBoardName = (name) => BOARD_NAME.test(name.trim().normalize("NFC"));
6678
6679
  function createBoard(options, runtime) {
6679
6680
  if (options.name !== void 0 && !isBoardName(options.name)) throw new Error(`board: ${JSON.stringify(options.name)} isn't a board's name: one is 1 to 64 characters with no /, and another team's board takes its team apart, board({ team, name })`);
6680
6681
  if (options.team !== void 0 && !TEAM.test(options.team)) throw new Error(`board: ${JSON.stringify(options.team)} isn't a team: pass its ID (team_…) or its slug`);
6682
+ if (options.id !== void 0) {
6683
+ if (options.name !== void 0) throw new Error("board: id and name each pick the board: pass one of them");
6684
+ if (options.backend) throw new Error("board: id picks one of a team's boards on Vercel's, and a backend you pass says which board it is: leave id out");
6685
+ if (!BOARD_ID.test(options.id)) throw new Error(`board: ${JSON.stringify(options.id)} isn't a board's ID: one starts with brd_, as vb list shows it`);
6686
+ }
6681
6687
  if (options.ensure && options.name === void 0) throw new Error("board: ensure makes the board `name` names: pass name too");
6682
- const backend = options.backend ?? runtime.backend(options.fetch);
6688
+ const backend = options.backend ?? runtime.backend(options.fetch, options.id ?? null);
6683
6689
  const policy = createPolicy(options, backend.keeps, runtime.serving, backend.trust ?? null);
6684
6690
  const watch = options.watch ?? {};
6685
6691
  const entries = options.sync ?? {};
@@ -1,8 +1,17 @@
1
1
  import { gt as MessageView } from "./routes-D5FtKOP_.mjs";
2
2
  import "./auth-DcWTzrHz.mjs";
3
- import "./backend-9H57DlQt.mjs";
3
+ import "./backend-BtQfimL9.mjs";
4
4
  import { g as TaskInBatch, n as BoardError } from "./client-BUPyzzFt.mjs";
5
5
  import "./errors-CwObkpSn.mjs";
6
+ //#region src/server/backend-vercel.d.ts
7
+ /** A board as Vercel's API lists a team's: `private` is one only its members see, `team` one the whole team does. */
8
+ type VercelBoardListed = {
9
+ id: string;
10
+ name: string;
11
+ teamId?: string;
12
+ visibility?: 'team' | 'private';
13
+ };
14
+ //#endregion
6
15
  //#region src/client/chunks.d.ts
7
16
  /** What `createTasksInChunks` makes tasks with: a handle, or anything with its `tasks.createMany`. */
8
17
  type TaskBatches = {
@@ -42,4 +51,20 @@ declare function createTasksInChunks(board: TaskBatches, channel: string, tasks:
42
51
  id?: string;
43
52
  }): Promise<MessageView[]>;
44
53
  //#endregion
45
- export { TasksInChunksError as n, createTasksInChunks as r, TaskBatches as t };
54
+ //#region src/server/exports.d.ts
55
+ /** What `listBoards()` takes: whose boards, and in tests or outside Node, how requests reach Vercel's API. */
56
+ type ListBoardsOptions = {
57
+ /** The team: its ID (`team_…`) or its slug. By default the one the environment finds: in Node, the deployment's, `VERCEL_ORG_ID`, or the linked project's. */
58
+ team?: string;
59
+ /** Vercel's API, `https://api.vercel.com` by default. */
60
+ api?: string;
61
+ /** How requests reach the API, with credentials it takes. In Node, by default, the ones `board()` finds. */
62
+ fetch?: typeof fetch;
63
+ };
64
+ /** The team's boards you may use, and the ID of its default board when you may use it, else null. */
65
+ type ListedBoards = {
66
+ boards: VercelBoardListed[];
67
+ defaultBoardId: string | null;
68
+ };
69
+ //#endregion
70
+ export { createTasksInChunks as a, TasksInChunksError as i, ListedBoards as n, VercelBoardListed as o, TaskBatches as r, ListBoardsOptions as t };
@@ -0,0 +1,19 @@
1
+ import { f as Board, p as BoardOptions } from "./backend-BtQfimL9.mjs";
2
+ import { n as ListedBoards, t as ListBoardsOptions } from "./exports-D87KpsSi.mjs";
3
+ //#region src/server/index.d.ts
4
+ /**
5
+ * The handle on a board. Without a `backend`, it's Vercel's board for your team, the one `name`
6
+ * names, reached with the credentials the Vercel CLI or the deployment has (or `fetch`'s). With
7
+ * `BOARD_URL` set, it's the board at that URL instead: `vb serve`'s, say.
8
+ */
9
+ declare function board(options?: BoardOptions): Board;
10
+ /**
11
+ * The team's boards in Vercel's API that your credentials may use, every page of them, and the ID
12
+ * of its default board when you may use it: what `vb list` lists. `team` is a team's ID (`team_…`)
13
+ * or slug, by default the one the environment finds, and the credentials are the ones `board()`
14
+ * finds. Pass a board's `name` to `board()` to use one. `BOARD_URL` names a board of its own, with
15
+ * no team's boards to list, so it doesn't change what this lists.
16
+ */
17
+ declare function listBoards(options?: ListBoardsOptions): Promise<ListedBoards>;
18
+ //#endregion
19
+ export { listBoards as n, board as t };
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $ as InboxNextQuery, $t as SyncFindQuery, A as CreateTasksInput, At as RenewTaskBody, B as Explanation, Bt as SchedulesQueryOutput, C as ClaimTaskBody, Cn as TypingResult, Ct as REGISTERED_WATCHERS_MAX, D as CreateTaskBody, Dn as UploadTicket, Dt as RegisterInput, E as CreateGrantsBody, En as UploadStartBody, Et as RegisterBody, F as EditBody, Ft as ScheduleBodyOutput, G as GrantCan, Gt as SourceJoinBody, H as FiltersInput, Ht as SchemaInput, I as EventsPage, It as ScheduleInput, J as GrantWriteOptions, Jt as SourceReadQuery, K as GrantInput, Kt as SourceMessage, L as EventsQuery, Lt as ScheduleView, M as DeleteBody, Mt as RevokeGrantBody, N as Discovery, Nt as RouteName, O as CreateTaskInput, On as routes, Ot as RegistrationView, P as EVENTS_LAST_MAX, Pt as ScheduleBody, Q as InboxItem, Qt as SyncFindInput, R as EventsQueryInput, Rt as SchedulesQuery, S as ClaimReadyTaskInput, Sn as TypingBody, St as PrincipalView, T as CreateChannelBody, Tn as UpdateGrantInput, Tt as Ref, U as GRANT_BATCH_MAX, Ut as SchemaView, V as FailTaskBody, Vt as SchemaBody, W as GrantBody, Wt as SourceJoin, X as InboxAckBody, Xt as SyncCopiesQuery, Y as INBOX_EVENT_ID_MAX, Yn as Attachment, Yt as SyncBody, Z as InboxEntry, Zt as SyncCopiesView, _ as ChannelView, _n as ThreadSummaryView, _t as MessagesPage, a as ActorsQueryInput, an as SyncThreadView, at as LinkView, b as ChannelsQueryInput, bn as ThreadsQuery, bt as PostInput, c as BlockTaskBody, cn as THREADS_LIMIT_MAX, ct as ManagedSyncBody, d as CHANNELS_LIMIT_DEFAULT, dn as TaskView, dt as ManagedSyncsQuery, en as SyncFindView, et as InboxPushBody, f as CHANNELS_LIMIT_MAX, fn as TasksPage, ft as ManagedSyncsQueryInput, g as ChannelMessagesQueryInput, gn as ThreadQueryInput, gt as MessageView, h as ChannelMessagesQuery, hn as ThreadQuery, ht as Me, i as ActorsQuery, in as SyncReceiptInput, it as LabelBody, j as CreatedTasksQuery, jt as ResolvedSyncTarget, k as CreateTasksBody, kt as ReleaseTaskBody, l as BlockView, ln as TaskClaim, lt as ManagedSyncInput, m as CancelTaskBody, mn as TasksQueryInput, mt as MatchesQuery, n as AckBody, nn as SyncImportInput, nt as LABEL_CONDITIONS_MAX, o as ApiError, on as SyncedView, ot as LinkedQuery, p as CanAt, pn as TasksQuery, pt as MatchView, q as GrantView, qt as SourceRead, r as ActorView, rn as SyncReceiptBody, rt as LEASE_DEFAULT_S, s as AssignTaskBody, sn as THREADS_LIMIT_DEFAULT, st as MANAGED_SYNC_SOURCES, t as ACTORS_BY_ID_MAX, tn as SyncImportBody, tt as InboxQuery, u as BoardEventView, un as TaskNeedsBody, ut as ManagedSyncView, v as ChannelsPage, vn as ThreadView, vt as ParsedFilters, w as CompleteTaskBody, wn as UpdateGrantBody, wt as ReactBody, x as ClaimReadyTaskBody, xn as ThreadsQueryInput, xt as PrincipalInput, y as ChannelsQuery, yn as ThreadsPage, yt as PostBody, z as ExplainQuery, zt as SchedulesQueryInput } from "./routes-D5FtKOP_.mjs";
2
2
  import { i as Claims, r as CallerRequest } from "./auth-DcWTzrHz.mjs";
3
- import { C as Protocol, D as SandboxPolicyOptions, E as SandboxPolicy, O as SandboxRule, S as Method, T as SandboxMatcher, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as AsOptions, f as Board, g as DroppedError, h as WatcherContext, i as Caller, l as Subscription, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as MiddlewareContext, w as SandboxMatch, x as WriteSource, y as Write } from "./backend-9H57DlQt.mjs";
3
+ import { C as Protocol, D as SandboxPolicyOptions, E as SandboxPolicy, O as SandboxRule, S as Method, T as SandboxMatcher, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as AsOptions, f as Board, g as DroppedError, h as WatcherContext, i as Caller, l as Subscription, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as MiddlewareContext, w as SandboxMatch, x as WriteSource, y as Write } from "./backend-BtQfimL9.mjs";
4
4
  import { C as MentionedActor, S as Mentioned, _ as TaskOptions, a as EventsOptions, b as Written, c as Filters, d as PostOptions, f as ProfileOption, g as TaskInBatch, h as ScheduleTiming, l as HeldTask, m as ScheduleOptions, n as BoardError, o as EventsState, p as ReplyOptions, r as ClaimedTask, s as ExplainPrincipal, u as NewTaskOptions, v as UploadInput, x as duration, y as WaitOptions } from "./client-BUPyzzFt.mjs";
5
5
  import { t as HttpError } from "./errors-CwObkpSn.mjs";
6
- import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-Bh09j6Bd.mjs";
6
+ import { a as createTasksInChunks, i as TasksInChunksError, n as ListedBoards, o as VercelBoardListed, r as TaskBatches, t as ListBoardsOptions } from "./exports-D87KpsSi.mjs";
7
7
  import { n as block } from "./blocks-DGvh2alZ.mjs";
8
8
  //#region src/server/index.default.d.ts
9
9
  /**
@@ -13,5 +13,11 @@ import { n as block } from "./blocks-DGvh2alZ.mjs";
13
13
  * session.
14
14
  */
15
15
  export declare function board(options?: BoardOptions): Board;
16
+ /**
17
+ * The team's boards in Vercel's API that your credentials may use, and the ID of its default board
18
+ * when you may use it. Outside Node there's no environment to find them in: pass `team`, and a
19
+ * `fetch` that sends a token Vercel's API takes.
20
+ */
21
+ export declare function listBoards(options?: ListBoardsOptions): Promise<ListedBoards>;
16
22
  //#endregion
17
- export { type ACTORS_BY_ID_MAX, type AckBody, type ActorView, type ActorsQuery, type ActorsQueryInput, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type CHANNELS_LIMIT_DEFAULT, type CHANNELS_LIMIT_MAX, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelMessagesQuery, type ChannelMessagesQueryInput, type ChannelView, type ChannelsPage, type ChannelsQuery, type ChannelsQueryInput, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, type CreateGrantsBody, type CreateTaskBody, type CreateTaskInput, type CreateTasksBody, type CreateTasksInput, type CreatedTasksQuery, type DeleteBody, type Discovery, DroppedError, type EVENTS_LAST_MAX, type EditBody, type EventsOptions, type EventsPage, type EventsQuery, type EventsQueryInput, type EventsState, type ExplainPrincipal, type ExplainQuery, type Explanation, type FailTaskBody, type Filters, type FiltersInput, type GRANT_BATCH_MAX, type GrantBody, type GrantCan, type GrantInput, type GrantView, type GrantWriteOptions, type HeldTask, HttpError, type INBOX_EVENT_ID_MAX, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LEASE_DEFAULT_S, type LabelBody, type LinkView, type LinkedQuery, type MANAGED_SYNC_SOURCES, type ManagedSyncBody, type ManagedSyncInput, type ManagedSyncView, type ManagedSyncsQuery, type ManagedSyncsQueryInput, type MatchView, type MatchesQuery, type Me, type Mentioned, type MentionedActor, type MessageView, type MessagesPage, type Method, type Middleware, type MiddlewareContext, type NewTaskOptions, 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 ReleaseTaskBody, type RenewTaskBody, type ReplyOptions, type ResolvedSyncTarget, type RevokeGrantBody, type RouteName, type SandboxMatch, type SandboxMatcher, type SandboxPolicy, type SandboxPolicyOptions, type SandboxRule, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SchemaBody, type SchemaInput, type SchemaView, 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 THREADS_LIMIT_DEFAULT, type THREADS_LIMIT_MAX, type TaskBatches, type TaskClaim, type TaskInBatch, type TaskNeedsBody, type TaskOptions, type TaskView, TasksInChunksError, type TasksPage, type TasksQuery, type TasksQueryInput, type ThreadQuery, type ThreadQueryInput, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, 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, block, createTasksInChunks, duration, type routes };
23
+ export { type ACTORS_BY_ID_MAX, type AckBody, type ActorView, type ActorsQuery, type ActorsQueryInput, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type CHANNELS_LIMIT_DEFAULT, type CHANNELS_LIMIT_MAX, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelMessagesQuery, type ChannelMessagesQueryInput, type ChannelView, type ChannelsPage, type ChannelsQuery, type ChannelsQueryInput, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, type CreateGrantsBody, type CreateTaskBody, type CreateTaskInput, type CreateTasksBody, type CreateTasksInput, type CreatedTasksQuery, type DeleteBody, type Discovery, DroppedError, type EVENTS_LAST_MAX, type EditBody, type EventsOptions, type EventsPage, type EventsQuery, type EventsQueryInput, type EventsState, type ExplainPrincipal, type ExplainQuery, type Explanation, type FailTaskBody, type Filters, type FiltersInput, type GRANT_BATCH_MAX, type GrantBody, type GrantCan, type GrantInput, type GrantView, type GrantWriteOptions, type HeldTask, HttpError, type INBOX_EVENT_ID_MAX, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LEASE_DEFAULT_S, type LabelBody, type LinkView, type LinkedQuery, ListBoardsOptions, type VercelBoardListed as ListedBoard, ListedBoards, type MANAGED_SYNC_SOURCES, type ManagedSyncBody, type ManagedSyncInput, type ManagedSyncView, type ManagedSyncsQuery, type ManagedSyncsQueryInput, type MatchView, type MatchesQuery, type Me, type Mentioned, type MentionedActor, type MessageView, type MessagesPage, type Method, type Middleware, type MiddlewareContext, type NewTaskOptions, 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 ReleaseTaskBody, type RenewTaskBody, type ReplyOptions, type ResolvedSyncTarget, type RevokeGrantBody, type RouteName, type SandboxMatch, type SandboxMatcher, type SandboxPolicy, type SandboxPolicyOptions, type SandboxRule, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SchemaBody, type SchemaInput, type SchemaView, 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 THREADS_LIMIT_DEFAULT, type THREADS_LIMIT_MAX, type TaskBatches, type TaskClaim, type TaskInBatch, type TaskNeedsBody, type TaskOptions, type TaskView, TasksInChunksError, type TasksPage, type TasksQuery, type TasksQueryInput, type ThreadQuery, type ThreadQueryInput, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, 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, block, createTasksInChunks, duration, type routes };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { f as BoardError, m as duration, t as HttpError } from "./errors-Ce_-E3_C.mjs";
2
2
  import { t as block } from "./blocks-CVoBC7ur.mjs";
3
3
  import { t as DroppedError } from "./middleware-DVBOEd8G.mjs";
4
- import { c as createVercel, n as createTasksInChunks, r as createBoard, t as TasksInChunksError } from "./exports-WtqjdQwb.mjs";
4
+ import { c as createVercel, n as createTasksInChunks, r as createBoard, t as TasksInChunksError } from "./exports-CVn4-cJw.mjs";
5
5
  //#region src/backend-vercel/index.default.ts
6
6
  /**
7
7
  * Your team's board, in Vercel's API. Outside Node there's no environment to find credentials or
@@ -20,14 +20,26 @@ function vercel(options = {}) {
20
20
  */
21
21
  function board(options = {}) {
22
22
  return createBoard(options, {
23
- backend: (fetch) => {
23
+ backend: (fetch, id) => {
24
24
  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");
25
- return vercel({ fetch });
25
+ return vercel({
26
+ fetch,
27
+ ...id ? { board: id } : {}
28
+ });
26
29
  },
27
30
  sync: () => import("./engine-DVWbcEIB.mjs"),
28
31
  serving: null,
29
32
  sandbox: null
30
33
  });
31
34
  }
35
+ /**
36
+ * The team's boards in Vercel's API that your credentials may use, and the ID of its default board
37
+ * when you may use it. Outside Node there's no environment to find them in: pass `team`, and a
38
+ * `fetch` that sends a token Vercel's API takes.
39
+ */
40
+ function listBoards(options = {}) {
41
+ if (!options.fetch) return Promise.reject(/* @__PURE__ */ new Error("listBoards: pass a fetch that sends credentials Vercel's API takes: outside Node there's no environment to find them in"));
42
+ return vercel(options).boards();
43
+ }
32
44
  //#endregion
33
- export { BoardError, DroppedError, HttpError, TasksInChunksError, block, board, createTasksInChunks, duration };
45
+ export { BoardError, DroppedError, HttpError, TasksInChunksError, block, board, createTasksInChunks, duration, listBoards };
@@ -1,9 +1,9 @@
1
1
  import { $ as InboxNextQuery, $t as SyncFindQuery, A as CreateTasksInput, At as RenewTaskBody, B as Explanation, Bt as SchedulesQueryOutput, C as ClaimTaskBody, Cn as TypingResult, Ct as REGISTERED_WATCHERS_MAX, D as CreateTaskBody, Dn as UploadTicket, Dt as RegisterInput, E as CreateGrantsBody, En as UploadStartBody, Et as RegisterBody, F as EditBody, Ft as ScheduleBodyOutput, G as GrantCan, Gt as SourceJoinBody, H as FiltersInput, Ht as SchemaInput, I as EventsPage, It as ScheduleInput, J as GrantWriteOptions, Jt as SourceReadQuery, K as GrantInput, Kt as SourceMessage, L as EventsQuery, Lt as ScheduleView, M as DeleteBody, Mt as RevokeGrantBody, N as Discovery, Nt as RouteName, O as CreateTaskInput, On as routes, Ot as RegistrationView, P as EVENTS_LAST_MAX, Pt as ScheduleBody, Q as InboxItem, Qt as SyncFindInput, R as EventsQueryInput, Rt as SchedulesQuery, S as ClaimReadyTaskInput, Sn as TypingBody, St as PrincipalView, T as CreateChannelBody, Tn as UpdateGrantInput, Tt as Ref, U as GRANT_BATCH_MAX, Ut as SchemaView, V as FailTaskBody, Vt as SchemaBody, W as GrantBody, Wt as SourceJoin, X as InboxAckBody, Xt as SyncCopiesQuery, Y as INBOX_EVENT_ID_MAX, Yn as Attachment, Yt as SyncBody, Z as InboxEntry, Zt as SyncCopiesView, _ as ChannelView, _n as ThreadSummaryView, _t as MessagesPage, a as ActorsQueryInput, an as SyncThreadView, at as LinkView, b as ChannelsQueryInput, bn as ThreadsQuery, bt as PostInput, c as BlockTaskBody, cn as THREADS_LIMIT_MAX, ct as ManagedSyncBody, d as CHANNELS_LIMIT_DEFAULT, dn as TaskView, dt as ManagedSyncsQuery, en as SyncFindView, et as InboxPushBody, f as CHANNELS_LIMIT_MAX, fn as TasksPage, ft as ManagedSyncsQueryInput, g as ChannelMessagesQueryInput, gn as ThreadQueryInput, gt as MessageView, h as ChannelMessagesQuery, hn as ThreadQuery, ht as Me, i as ActorsQuery, in as SyncReceiptInput, it as LabelBody, j as CreatedTasksQuery, jt as ResolvedSyncTarget, k as CreateTasksBody, kt as ReleaseTaskBody, l as BlockView, ln as TaskClaim, lt as ManagedSyncInput, m as CancelTaskBody, mn as TasksQueryInput, mt as MatchesQuery, n as AckBody, nn as SyncImportInput, nt as LABEL_CONDITIONS_MAX, o as ApiError, on as SyncedView, ot as LinkedQuery, p as CanAt, pn as TasksQuery, pt as MatchView, q as GrantView, qt as SourceRead, r as ActorView, rn as SyncReceiptBody, rt as LEASE_DEFAULT_S, s as AssignTaskBody, sn as THREADS_LIMIT_DEFAULT, st as MANAGED_SYNC_SOURCES, t as ACTORS_BY_ID_MAX, tn as SyncImportBody, tt as InboxQuery, u as BoardEventView, un as TaskNeedsBody, ut as ManagedSyncView, v as ChannelsPage, vn as ThreadView, vt as ParsedFilters, w as CompleteTaskBody, wn as UpdateGrantBody, wt as ReactBody, x as ClaimReadyTaskBody, xn as ThreadsQueryInput, xt as PrincipalInput, y as ChannelsQuery, yn as ThreadsPage, yt as PostBody, z as ExplainQuery, zt as SchedulesQueryInput } from "./routes-D5FtKOP_.mjs";
2
2
  import { i as Claims, r as CallerRequest } from "./auth-DcWTzrHz.mjs";
3
- import { C as Protocol, D as SandboxPolicyOptions, E as SandboxPolicy, O as SandboxRule, S as Method, T as SandboxMatcher, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as AsOptions, f as Board, g as DroppedError, h as WatcherContext, i as Caller, l as Subscription, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as MiddlewareContext, w as SandboxMatch, x as WriteSource, y as Write } from "./backend-9H57DlQt.mjs";
3
+ import { C as Protocol, D as SandboxPolicyOptions, E as SandboxPolicy, O as SandboxRule, S as Method, T as SandboxMatcher, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as AsOptions, f as Board, g as DroppedError, h as WatcherContext, i as Caller, l as Subscription, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as MiddlewareContext, w as SandboxMatch, x as WriteSource, y as Write } from "./backend-BtQfimL9.mjs";
4
4
  import { C as MentionedActor, S as Mentioned, _ as TaskOptions, a as EventsOptions, b as Written, c as Filters, d as PostOptions, f as ProfileOption, g as TaskInBatch, h as ScheduleTiming, l as HeldTask, m as ScheduleOptions, n as BoardError, o as EventsState, p as ReplyOptions, r as ClaimedTask, s as ExplainPrincipal, u as NewTaskOptions, v as UploadInput, x as duration, y as WaitOptions } from "./client-BUPyzzFt.mjs";
5
5
  import { t as HttpError } from "./errors-CwObkpSn.mjs";
6
- import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-Bh09j6Bd.mjs";
6
+ import { a as createTasksInChunks, i as TasksInChunksError, n as ListedBoards, o as VercelBoardListed, r as TaskBatches, t as ListBoardsOptions } from "./exports-D87KpsSi.mjs";
7
7
  import { n as block } from "./blocks-DGvh2alZ.mjs";
8
- import { t as board } from "./index-mgNwCwJ4.mjs";
9
- export { type ACTORS_BY_ID_MAX, type AckBody, type ActorView, type ActorsQuery, type ActorsQueryInput, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type CHANNELS_LIMIT_DEFAULT, type CHANNELS_LIMIT_MAX, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelMessagesQuery, type ChannelMessagesQueryInput, type ChannelView, type ChannelsPage, type ChannelsQuery, type ChannelsQueryInput, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, type CreateGrantsBody, type CreateTaskBody, type CreateTaskInput, type CreateTasksBody, type CreateTasksInput, type CreatedTasksQuery, type DeleteBody, type Discovery, DroppedError, type EVENTS_LAST_MAX, type EditBody, type EventsOptions, type EventsPage, type EventsQuery, type EventsQueryInput, type EventsState, type ExplainPrincipal, type ExplainQuery, type Explanation, type FailTaskBody, type Filters, type FiltersInput, type GRANT_BATCH_MAX, type GrantBody, type GrantCan, type GrantInput, type GrantView, type GrantWriteOptions, type HeldTask, HttpError, type INBOX_EVENT_ID_MAX, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LEASE_DEFAULT_S, type LabelBody, type LinkView, type LinkedQuery, type MANAGED_SYNC_SOURCES, type ManagedSyncBody, type ManagedSyncInput, type ManagedSyncView, type ManagedSyncsQuery, type ManagedSyncsQueryInput, type MatchView, type MatchesQuery, type Me, type Mentioned, type MentionedActor, type MessageView, type MessagesPage, type Method, type Middleware, type MiddlewareContext, type NewTaskOptions, 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 ReleaseTaskBody, type RenewTaskBody, type ReplyOptions, type ResolvedSyncTarget, type RevokeGrantBody, type RouteName, type SandboxMatch, type SandboxMatcher, type SandboxPolicy, type SandboxPolicyOptions, type SandboxRule, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SchemaBody, type SchemaInput, type SchemaView, 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 THREADS_LIMIT_DEFAULT, type THREADS_LIMIT_MAX, type TaskBatches, type TaskClaim, type TaskInBatch, type TaskNeedsBody, type TaskOptions, type TaskView, TasksInChunksError, type TasksPage, type TasksQuery, type TasksQueryInput, type ThreadQuery, type ThreadQueryInput, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, 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, block, board, createTasksInChunks, duration, type routes };
8
+ import { n as listBoards, t as board } from "./index-CEhxdS5w.mjs";
9
+ export { type ACTORS_BY_ID_MAX, type AckBody, type ActorView, type ActorsQuery, type ActorsQueryInput, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type CHANNELS_LIMIT_DEFAULT, type CHANNELS_LIMIT_MAX, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelMessagesQuery, type ChannelMessagesQueryInput, type ChannelView, type ChannelsPage, type ChannelsQuery, type ChannelsQueryInput, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, type CreateGrantsBody, type CreateTaskBody, type CreateTaskInput, type CreateTasksBody, type CreateTasksInput, type CreatedTasksQuery, type DeleteBody, type Discovery, DroppedError, type EVENTS_LAST_MAX, type EditBody, type EventsOptions, type EventsPage, type EventsQuery, type EventsQueryInput, type EventsState, type ExplainPrincipal, type ExplainQuery, type Explanation, type FailTaskBody, type Filters, type FiltersInput, type GRANT_BATCH_MAX, type GrantBody, type GrantCan, type GrantInput, type GrantView, type GrantWriteOptions, type HeldTask, HttpError, type INBOX_EVENT_ID_MAX, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LEASE_DEFAULT_S, type LabelBody, type LinkView, type LinkedQuery, ListBoardsOptions, type VercelBoardListed as ListedBoard, ListedBoards, type MANAGED_SYNC_SOURCES, type ManagedSyncBody, type ManagedSyncInput, type ManagedSyncView, type ManagedSyncsQuery, type ManagedSyncsQueryInput, type MatchView, type MatchesQuery, type Me, type Mentioned, type MentionedActor, type MessageView, type MessagesPage, type Method, type Middleware, type MiddlewareContext, type NewTaskOptions, 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 ReleaseTaskBody, type RenewTaskBody, type ReplyOptions, type ResolvedSyncTarget, type RevokeGrantBody, type RouteName, type SandboxMatch, type SandboxMatcher, type SandboxPolicy, type SandboxPolicyOptions, type SandboxRule, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SchemaBody, type SchemaInput, type SchemaView, 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 THREADS_LIMIT_DEFAULT, type THREADS_LIMIT_MAX, type TaskBatches, type TaskClaim, type TaskInBatch, type TaskNeedsBody, type TaskOptions, type TaskView, TasksInChunksError, type TasksPage, type TasksQuery, type TasksQueryInput, type ThreadQuery, type ThreadQueryInput, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, 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, block, board, createTasksInChunks, duration, listBoards, type routes };
@@ -1,6 +1,6 @@
1
1
  import { f as BoardError, m as duration, t as HttpError } from "./errors-Ce_-E3_C.mjs";
2
2
  import { t as block } from "./blocks-CVoBC7ur.mjs";
3
3
  import { t as DroppedError } from "./middleware-DVBOEd8G.mjs";
4
- import { n as createTasksInChunks, t as TasksInChunksError } from "./exports-WtqjdQwb.mjs";
5
- import { t as board } from "./server-CRdVLqny.mjs";
6
- export { BoardError, DroppedError, HttpError, TasksInChunksError, block, board, createTasksInChunks, duration };
4
+ import { n as createTasksInChunks, t as TasksInChunksError } from "./exports-CVn4-cJw.mjs";
5
+ import { n as listBoards, t as board } from "./server-CKCAEME6.mjs";
6
+ export { BoardError, DroppedError, HttpError, TasksInChunksError, block, board, createTasksInChunks, duration, listBoards };