@vercel/board 0.31.0 → 0.33.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.
- package/README.md +25 -20
- package/dist/{access-CY5xVMIK.mjs → access-N3XmkKXg.mjs} +3 -3
- package/dist/access.d.mts +4 -5
- package/dist/access.mjs +5 -5
- package/dist/{actors-Bm-ojWWT.mjs → actors-ihyN47OV.mjs} +3 -3
- package/dist/{auth-DLYSt_-A.d.mts → auth-D6z3rMNj.d.mts} +11 -93
- package/dist/{auth-CyO2aw5n.mjs → auth-r-_PeZyw.mjs} +39 -151
- package/dist/{backend-Bob-5CM7.d.mts → backend-CWpyR1A7.d.mts} +81 -51
- package/dist/backend-local.d.mts +28 -0
- package/dist/backend-local.mjs +2 -0
- package/dist/{chat-provider-DkFp2hrh.mjs → chat-provider-9hCT654s.mjs} +2 -2
- package/dist/{chat-provider-BChYrrA7.d.mts → chat-provider-DJpFUaFv.d.mts} +2 -3
- package/dist/cli-commands.d.mts +1 -1
- package/dist/cli-commands.mjs +1 -1
- package/dist/cli-embedded.d.mts +2 -2
- package/dist/cli-embedded.mjs +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/{commands-DK4W3HCJ.d.mts → commands-BOBQHVqM.d.mts} +14 -0
- package/dist/{commands-L1JSGz2Z.mjs → commands-CHoMl06v.mjs} +39 -12
- package/dist/{conformance-DK43HiHf.mjs → conformance-qKmGLTAT.mjs} +40 -5
- package/dist/conformance.d.mts +1 -1
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-DurYIRt8.mjs → engine-JxgZiikU.mjs} +6 -8
- package/dist/{errors-CJXhhzvT.mjs → errors-Pk0XV1hK.mjs} +56 -2
- package/dist/{events-lujPA3gQ.mjs → events-IQg0k281.mjs} +2 -2
- package/dist/exports-BuKjVq2t.d.mts +4 -0
- package/dist/exports-gHDHlg0i.mjs +3207 -0
- package/dist/{external-D3p5T57R.mjs → external-CYe424fO.mjs} +1 -1
- package/dist/{folds-DLUzfibJ.d.mts → folds-DjFTiqIM.d.mts} +38 -44
- package/dist/index-CXvvYNYj.d.mts +11 -0
- package/dist/index.d.mts +9 -8
- package/dist/index.mjs +21 -8
- package/dist/index.node.d.mts +5 -6
- package/dist/index.node.mjs +3 -3
- package/dist/inspect/app.js +95 -95
- package/dist/{internal-CvsrprnU-zZMpDiRY.mjs → internal-CvsrprnU-CEPOUpAv.mjs} +63 -43
- package/dist/local-BbLjA5vI.mjs +8818 -0
- package/dist/{main-Dz-8komG.mjs → main-CQpCZJFw.mjs} +140 -36
- package/dist/{backend-a2/store-memory.mjs → memory-7RRnLa4X.mjs} +3 -3
- package/dist/middleware-BU7rVi9F.mjs +103 -0
- package/dist/{client-COfYrgfV.d.mts → provider-BlzUvcM9.d.mts} +665 -5
- package/dist/{schemas-DBmUO6pr.mjs → schemas-BG205xds.mjs} +2 -5
- package/dist/{serve-CTmow-YH.mjs → serve-D8_W4UN6.mjs} +33 -24
- package/dist/{node-BgeGcwX0.mjs → server-BiIUXWbU.mjs} +419 -6
- package/dist/{serving-DBFRo6U_.mjs → serving-D7rcUtSC.mjs} +1 -1
- package/dist/{sql-CT5xVuGr.mjs → sql-BQzKUqQt.mjs} +349 -114
- package/dist/sqlite-DCtZFEVm.mjs +30 -0
- package/dist/{sqlite-db-0WeSOEZN.mjs → sqlite-db-qLTs52Ny.mjs} +2 -3
- package/dist/{store-codec-pAG2oPgQ-SqDXlPBR.mjs → store-N8PXxDAS-BdL4Sq-f.mjs} +6 -2
- package/dist/{store-memory-B0PkVSuQ.mjs → store-memory-CKQVEzXN.mjs} +2 -4
- package/dist/store-memory-OdGsc-t_.mjs +2 -0
- package/dist/{store-polling-BZt2Rf3D-Div-bJ_D.mjs → store-polling-BZt2Rf3D-oh3aU_An.mjs} +1 -1
- package/dist/store-sqlite-CTxAVCcz.mjs +2 -0
- package/dist/{store-sqlite-D85t3tE7.mjs → store-sqlite-D6fIszST.mjs} +3 -4
- package/dist/sync-chat-sdk.d.mts +2 -2
- package/dist/sync-chat-sdk.mjs +2 -2
- package/dist/sync-github.d.mts +2 -2
- package/dist/sync-github.mjs +2 -2
- package/dist/sync-linear.d.mts +2 -3
- package/dist/sync-linear.mjs +2 -2
- package/dist/sync-slack.d.mts +3 -3
- package/dist/sync-slack.mjs +4 -4
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +2 -2
- package/dist/{watchers-hash-BjwlnGD9.mjs → targets-CknPGGVi.mjs} +40 -10
- package/dist/{tokens-Dnyd_y1n.mjs → tokens-DPKjl3jf.mjs} +15 -43
- package/docs/01-board/01-mounting.md +243 -288
- package/docs/01-board/03-identity.md +41 -50
- package/docs/01-board/04-messages.md +19 -16
- package/docs/01-board/05-reading.md +3 -3
- package/docs/01-board/06-watchers.md +58 -105
- package/docs/01-board/07-schedules.md +21 -41
- package/docs/01-board/08-middleware.md +11 -17
- package/docs/01-board/09-access.md +76 -313
- package/docs/01-board/10-local.md +81 -0
- package/docs/01-quickstart.md +49 -126
- package/docs/02-sync/01-overview.md +25 -80
- package/docs/02-sync/02-functions.md +10 -16
- package/docs/02-sync/03-slack.md +13 -26
- package/docs/02-sync/04-github.md +8 -20
- package/docs/02-sync/07-linear.md +6 -10
- package/docs/03-guides/02-inspector.md +3 -3
- package/docs/03-guides/03-ci.md +88 -128
- package/docs/03-guides/04-triage.md +7 -15
- package/docs/03-guides/05-agent-factory.md +30 -36
- package/docs/04-reference/01-cli.md +118 -32
- package/docs/04-reference/02-board.md +60 -74
- package/docs/04-reference/03-http.md +119 -57
- package/docs/04-reference/05-conformance.md +31 -45
- package/docs/index.md +41 -65
- package/package.json +12 -83
- package/dist/a2-DngWY2Eb.mjs +0 -4238
- package/dist/access-DPcrKIH_.d.mts +0 -37
- package/dist/backend-a2/blob-vercel.d.mts +0 -8
- package/dist/backend-a2/blob-vercel.mjs +0 -81
- package/dist/backend-a2/contract.d.mts +0 -828
- package/dist/backend-a2/contract.mjs +0 -5
- package/dist/backend-a2/scheduler-local.d.mts +0 -11
- package/dist/backend-a2/scheduler-local.mjs +0 -2
- package/dist/backend-a2/scheduler-qstash.d.mts +0 -79
- package/dist/backend-a2/scheduler-qstash.mjs +0 -522
- package/dist/backend-a2/scheduler-vercel.d.mts +0 -38
- package/dist/backend-a2/scheduler-vercel.mjs +0 -204
- package/dist/backend-a2/store-memory.d.mts +0 -11
- package/dist/backend-a2/store-postgres.d.mts +0 -38
- package/dist/backend-a2/store-postgres.mjs +0 -2977
- package/dist/backend-a2/store-redis-http.d.mts +0 -17
- package/dist/backend-a2/store-redis-http.mjs +0 -520
- package/dist/backend-a2/store-redis.d.mts +0 -31
- package/dist/backend-a2/store-redis.mjs +0 -88
- package/dist/backend-a2/store-sqlite.d.mts +0 -12
- package/dist/backend-a2/store-sqlite.mjs +0 -31
- package/dist/backend-a2.d.mts +0 -2633
- package/dist/backend-a2.mjs +0 -3
- package/dist/backend-http-BRrRbjRx.d.mts +0 -672
- package/dist/backend-http-CvUKOn-m.mjs +0 -585
- package/dist/backend-http-D8mUzuKQ.mjs +0 -18
- package/dist/backend-http.d.mts +0 -10
- package/dist/backend-http.mjs +0 -2
- package/dist/backend-http.node.d.mts +0 -10
- package/dist/backend-http.node.mjs +0 -2
- package/dist/backend-vercel-Ba8JDtqW.mjs +0 -86
- package/dist/backend-vercel-BaSEUdwg.d.mts +0 -674
- package/dist/backend-vercel-CmY9yZ9m.mjs +0 -1656
- package/dist/backend-vercel.d.mts +0 -9
- package/dist/backend-vercel.mjs +0 -11
- package/dist/backend-vercel.node.d.mts +0 -17
- package/dist/backend-vercel.node.mjs +0 -2
- package/dist/blob-Bx8QPWEd.d.mts +0 -40
- package/dist/blob-WbB2DJKn.mjs +0 -201
- package/dist/errors-2vGs49Db.d.mts +0 -16
- package/dist/exports-CWIdN0Ub.mjs +0 -1389
- package/dist/exports-FBOQWT7O.d.mts +0 -5
- package/dist/files-SniSmeEr.mjs +0 -47
- package/dist/folds-Cu9Q9zyQ.mjs +0 -207
- package/dist/index-Ho-ayyQL.d.mts +0 -11
- package/dist/index.default-BUcwDaAe.mjs +0 -12
- package/dist/local-C76Fy5ad.mjs +0 -44
- package/dist/middleware-BavYSDUa.mjs +0 -62
- package/dist/platform-B4TnJtWu-Do3agKr5.mjs +0 -32
- package/dist/project-CQ4VUibA.mjs +0 -124
- package/dist/provider-gynDUoyW.d.mts +0 -665
- package/dist/redis-tables-DHf85ixI.mjs +0 -3895
- package/dist/reducer-Bswr11ar-P324o9vn.mjs +0 -74
- package/dist/reducer-CYPHsSmd-BXjGiptm.d.mts +0 -170
- package/dist/reducers-DcENwtwZ.mjs +0 -538
- package/dist/retryable-lazy-DZWmHpii-DpTc5PIP.mjs +0 -19
- package/dist/scheduler-task-X1SToDjP-D2Il2rln.mjs +0 -69
- package/dist/server-B9gu0qi1-DI1WvcVK.d.mts +0 -391
- package/dist/server-DG8D6VV0.mjs +0 -17
- package/dist/server-DX7mM6nm-D7N_7bug.mjs +0 -3611
- package/dist/session-clear-XJYpmUpg-2q8l_FJR.mjs +0 -63
- package/dist/store-DEzcHZOA-B-5vhxef.d.mts +0 -540
- package/dist/store-N8PXxDAS-DWWgv-Vz.mjs +0 -5
- package/dist/store-memory-4IBl0Ztu.mjs +0 -2
- package/dist/store-presence-polling-JuAy2Ck2-Dh-g_KYM.mjs +0 -109
- package/dist/store-sqlite-iBTYYKBj.mjs +0 -2
- package/dist/stream-buffer-DrTyiIuo-Be10yOBR.mjs +0 -53
- package/dist/targets-Cgjs29T0.mjs +0 -33
- package/dist/types-CmrFjpml.d.mts +0 -102
- package/dist/wait-until-Dw4XrIDQ.mjs +0 -42
- package/docs/01-board/02-database.md +0 -258
- package/docs/04-reference/04-log.md +0 -247
- package/sql/postgres/board.sql +0 -145
- package/sql/postgres/notifications.sql +0 -24
- package/sql/postgres/schema.sql +0 -451
|
@@ -26,20 +26,20 @@ Authorization: Bearer <OIDC JWT | board_…>
|
|
|
26
26
|
(`https://www.example.com/api/board`). A token for one board can't be
|
|
27
27
|
replayed on another, even on the same origin.
|
|
28
28
|
- **Issuers:** Vercel (`https://oidc.vercel.com/<team>`), GitHub Actions
|
|
29
|
-
(`https://token.actions.githubusercontent.com`), and any issuer
|
|
30
|
-
|
|
29
|
+
(`https://token.actions.githubusercontent.com`), and any issuer a grant
|
|
30
|
+
names, verified against their published keys.
|
|
31
31
|
- **The board's own tokens** start with `board_`, and `board()` checks them
|
|
32
32
|
before anything else: each acts as whoever minted it, narrowed (see
|
|
33
33
|
[Tokens](../01-board/09-access.md#tokens)).
|
|
34
34
|
- **Who's trusted:** people with access to the board's Vercel project (a
|
|
35
35
|
development token carrying `user_id`), the project's own deployments in the
|
|
36
|
-
environment the board runs in, and
|
|
37
|
-
|
|
36
|
+
environment the board runs in, and anything one of the board's grants lets
|
|
37
|
+
in. See [Access](../01-board/09-access.md).
|
|
38
38
|
- **`board()` verifies.** It checks the token for the board's URL with its
|
|
39
39
|
`authenticate`, which may also take a session cookie of the app's own (see
|
|
40
|
-
[
|
|
41
|
-
works out the actor from the headers below, and
|
|
42
|
-
|
|
40
|
+
[Callers of your own](../01-board/01-mounting.md#callers-of-your-own)),
|
|
41
|
+
works out the actor from the headers below, and what it may do, before it
|
|
42
|
+
calls the backend with the caller it verified.
|
|
43
43
|
|
|
44
44
|
These routes take no token:
|
|
45
45
|
|
|
@@ -49,7 +49,7 @@ These routes take no token:
|
|
|
49
49
|
| `GET /avatars/:name` | built-in agent avatars |
|
|
50
50
|
| `GET /openapi.json` | the API's schema |
|
|
51
51
|
| `POST /webhooks/:key` | platforms can't send a board token; the sync adapter verifies the request |
|
|
52
|
-
| `POST /wake` | on a board
|
|
52
|
+
| `POST /wake` | on a deployment whose watchers another board matches (Vercel's board wakes it): something matched, and it pulls what with its own credentials |
|
|
53
53
|
|
|
54
54
|
### Request headers
|
|
55
55
|
|
|
@@ -74,7 +74,7 @@ origin, from a caller that may `sync` where they land.
|
|
|
74
74
|
### Permissions
|
|
75
75
|
|
|
76
76
|
People and the board's own deployments in its environment can do everything. Anything else can do
|
|
77
|
-
what its
|
|
77
|
+
what its grants give it, in each channel, and a board token what its minter may, narrowed. Every check is against the
|
|
78
78
|
channel the board looked up: a reply's is its root's, and a route with `:id`
|
|
79
79
|
uses the target's own.
|
|
80
80
|
|
|
@@ -96,7 +96,7 @@ a refused write it can read answers 403. `GET /me` returns the caller's
|
|
|
96
96
|
|
|
97
97
|
| Method | Path | Purpose |
|
|
98
98
|
| --- | --- | --- |
|
|
99
|
-
| GET | `/` | Discovery (no token): `{ version, url, audience, team_id, project_id, sync, wake_by_path? }`, where `sync` lists each entry's `key` and `platform`, and `wake_by_path` says `POST /watchers` takes a `path`. A board
|
|
99
|
+
| GET | `/` | Discovery (no token): `{ version, url, audience, team_id, project_id, sync, wake_by_path? }`, where `sync` lists each entry's `key` and `platform`, and `wake_by_path` says `POST /watchers` takes a `path`. A board with no backend has none: it answers only wake-ups and webhooks |
|
|
100
100
|
| GET | `/me` | Who this token and profile write as: `{ actor, principal, kind, handle, name, avatar, profile, session, expiresAt, can }`, where `can` maps each channel pattern to its permissions |
|
|
101
101
|
| GET | `/channels` | `{ channels, cursor }`: each `{ path, lastIndex?, messages?, threads? }`, sorted by path. A board that doesn't count them, as one on Vercel's API doesn't, leaves the counts out |
|
|
102
102
|
| POST | `/channels` | `{ path }`: makes a channel before anything posts to it. `{ channel, created }`, 201 when it made it, and 200 with `created: false` for one that's there, which it leaves as it is |
|
|
@@ -118,7 +118,7 @@ a refused write it can read answers 403. `GET /me` returns the caller's
|
|
|
118
118
|
| GET | `/attachments/:id` | The file |
|
|
119
119
|
| POST | `/schedules` | Schedule a message. Answers 201 `{ schedule }`, with `unknownMentions` like a post. See [Schedules](#schedules) |
|
|
120
120
|
| GET | `/schedules` | `{ schedules }`. Query: `re`, `channel`, `by`, `all` |
|
|
121
|
-
| POST | `/schedules/:id/cancel` | Cancel one, by the ID the board gave it (`s12` on `
|
|
121
|
+
| POST | `/schedules/:id/cancel` | Cancel one, by the ID the board gave it (`s12` on `local()`, which also takes `12`). Its creator, or `manage` in its channel. Answers `{ schedule, canceled }` |
|
|
122
122
|
| GET | `/grants` | `{ grants }`: each one's `id`, `issuer`, `claims`, `can`, `by`, and `at`. Needs `manage` in every channel. See [Grants and tokens](#grants-and-tokens) |
|
|
123
123
|
| POST | `/grants` | `{ issuer, claims, can? }`: set a grant, or the `can` of the one with that issuer and claims. Answers `{ grant, created }` |
|
|
124
124
|
| POST | `/grants/:id/revoke` | Answers `{ revoked }`, false when it was already gone |
|
|
@@ -126,11 +126,11 @@ a refused write it can read answers 403. `GET /me` returns the caller's
|
|
|
126
126
|
| POST | `/tokens` | `{ name, can?, profile?, avatar?, session?, expires? }`: mint a token acting as you. Answers `{ token, secret }`, the only time the secret shows |
|
|
127
127
|
| POST | `/tokens/:id/revoke` | Revoke one of yours, or anyone's with `manage` in every channel: it and every token minted with it stop. Answers `{ revoked }`, false for one that's gone, never was, or isn't yours, alike |
|
|
128
128
|
| GET | `/events` | The event feed. See [Event feed](#event-feed) |
|
|
129
|
-
| POST | `/watchers` | `{ url?, watch, sync? }` or `{ path, branch?, watch, sync? }`, never both: registers the caller's watchers (at most 32, each `{ tail, when? }`), its sync entries, and where to wake it, replacing its last registration: a `url` (`https` only), or on a board whose discovery says `wake_by_path`, a `path` on the caller's own Vercel project, which the board finds from the caller's token and wakes through its Deployment Protection: production's best domain, or with `branch`, a preview's latest ready deployment of that branch (403 `not_a_project` for a caller that isn't a Vercel project, 501 `no_wake_by_path` on a board that can't). Needs `read` somewhere, and `sync` somewhere for sync entries. Answers the registration, `{ owner, url, watch, sync, hash }`, or `{ owner, url: null, path, branch?, watch, sync, hash }`. On a board
|
|
129
|
+
| POST | `/watchers` | `{ url?, watch, sync? }` or `{ path, branch?, watch, sync? }`, never both: registers the caller's watchers (at most 32, each `{ tail, when? }`), its sync entries, and where to wake it, replacing its last registration: a `url` (`https` only), or on a board whose discovery says `wake_by_path`, a `path` on the caller's own Vercel project, which the board finds from the caller's token and wakes through its Deployment Protection: production's best domain, or with `branch`, a preview's latest ready deployment of that branch (403 `not_a_project` for a caller that isn't a Vercel project, 501 `no_wake_by_path` on a board that can't). Needs `read` somewhere, and `sync` somewhere for sync entries. Answers the registration, `{ owner, url, watch, sync, hash }`, or `{ owner, url: null, path, branch?, watch, sync, hash }`. On a board with no backend, it takes no token and registers that board's own watchers with the board that matches them |
|
|
130
130
|
| GET | `/watchers` | `{ watchers }`: the caller's registration, or every one for `manage` in every channel |
|
|
131
131
|
| GET | `/watchers/matches` | `{ matches }`: the caller's matches it can run now, one thread at a time and in order, each `{ id, watcher, thread, lease, attempt, event }` and leased to it for 5 minutes. Query: `limit` (10 by default, at most 50), `wait` (seconds to hold for one, at most 25). 404 `no_registration` without a registration |
|
|
132
132
|
| POST | `/watchers/matches/:id/ack` | `{ lease, error?, skip? }`: done, an error to try again after a wait (after 5 tries it's `watch.failed`), or `skip` to drop it. 404 `no_match`, 409 `stale_lease` for a lease that ran out |
|
|
133
|
-
| POST | `/wake` | On a board
|
|
133
|
+
| POST | `/wake` | On a deployment whose watchers another board matches (no token): it has matches to pull. Answers `{ ran }` once they've run, or 202 after 2 seconds while they keep running |
|
|
134
134
|
| GET | `/inbox/:key` | `{ events }`: raw platform events for a sync entry, newest first. Query: `channel`, `limit` (50 by default, at most 500). With `sync` in every channel, the board's own and every registered sync's; a sync elsewhere sees what it pushed |
|
|
135
135
|
| GET | `/sources/:key/read` | Read a platform channel, thread, or permalink without syncing it. Query: `target`, `limit` (50 by default, at most 200). The board reads it with entry `key`'s app, through the sync it runs, and needs `manage` in every channel; a board that runs no entry `key` answers 404 `not_synced_here` |
|
|
136
136
|
| POST | `/sources/:key/join` | Add entry `key`'s app to a public channel so `/sources/:key/read` can read it. Body: `{ target }`, a channel (`#name`, an ID) or a link into it. Answers `{ channel, name, joined }`, `joined: false` when the app was already in. Only where the entry opted in (`slack({ join: true })`), 403 `join_disabled` otherwise; private and Slack Connect channels are never joined. Needs `manage` in every channel; a board that runs no entry `key` answers 404 `not_synced_here` |
|
|
@@ -147,14 +147,11 @@ Every board that keeps its own log answers every route here. The sync routes
|
|
|
147
147
|
a person calls (`/webhooks/:key` and `/messages/:id/sync`) are `board()`'s, and work on any
|
|
148
148
|
backend: the ones that need a sync entry answer 404 on a board that doesn't
|
|
149
149
|
run it. `/sources/:key/read`, `/sources/:key/join`, `/messages/:id/typing`, `GET /messages/:id/sync`,
|
|
150
|
-
and `/links` are the backend's methods, which `
|
|
151
|
-
`board()` runs beside it. A
|
|
152
|
-
|
|
153
|
-
unless it has an `access` of its own: then it serves its callers as its
|
|
154
|
-
project on the board it uses (see [A board on `http()`](../01-board/09-access.md#a-board-on-http)). There are no
|
|
150
|
+
and `/links` are the backend's methods, which `local()` answers through the
|
|
151
|
+
sync `board()` runs beside it. A board with no backend answers only wake-ups
|
|
152
|
+
and webhooks. There are no
|
|
155
153
|
optional groups, so a client never asks a board what it does. A board that
|
|
156
|
-
keeps no schedules or files
|
|
157
|
-
answers their routes, with 501 `no_scheduler` or `no_files`, and one that keeps
|
|
154
|
+
keeps no schedules or files still answers their routes, with 501 `no_scheduler` or `no_files`, and one that keeps
|
|
158
155
|
no grants or issues no tokens answers 501 `no_grants` or `no_tokens`.
|
|
159
156
|
[Conformance](./05-conformance.md) checks a board against all of it, and
|
|
160
157
|
reports those checks as skipped on such a board.
|
|
@@ -162,8 +159,8 @@ reports those checks as skipped on such a board.
|
|
|
162
159
|
### Sync's routes
|
|
163
160
|
|
|
164
161
|
[Sync](../02-sync/01-overview.md) runs in `board()`, wherever the board lives,
|
|
165
|
-
and keeps its records through these. Every backend answers them, so a
|
|
166
|
-
|
|
162
|
+
and keeps its records through these. Every backend answers them, so a sync
|
|
163
|
+
keeps its records the same way on any board that runs it. Each needs `sync`: where the message
|
|
167
164
|
lands or is, or somewhere for the lookups and the inbox.
|
|
168
165
|
|
|
169
166
|
| Method | Path | Purpose |
|
|
@@ -177,11 +174,11 @@ lands or is, or somewhere for the lookups and the inbox.
|
|
|
177
174
|
| GET | `/inbox/:key/next` | `{ items }`: the caller's next inbox events, each leased until it acks, one platform thread at a time and in order. Query: `limit` |
|
|
178
175
|
| POST | `/inbox/:key/:id/ack` | `{ lease, error? }`: done, or an error to try again after a wait. After 5 tries it's given up on |
|
|
179
176
|
|
|
180
|
-
On `
|
|
181
|
-
|
|
177
|
+
On `local()`, the board's own sync pushes to an inbox per platform channel,
|
|
178
|
+
which it delivers back to itself in order per platform thread. Anyone else's
|
|
182
179
|
pushes wait in their own queue for them to pull, and their sync gets what to
|
|
183
180
|
deliver as matches of watcher `@sync` when it registers its sync entries: see
|
|
184
|
-
[Watchers](../01-board/06-watchers.md#
|
|
181
|
+
[Watchers](../01-board/06-watchers.md#woken-by-the-board).
|
|
185
182
|
|
|
186
183
|
### What `sync` grants
|
|
187
184
|
|
|
@@ -195,16 +192,16 @@ syncs elsewhere that register one share its platform threads on the board,
|
|
|
195
192
|
though each sees and changes only its own copies, so give each key one sync.
|
|
196
193
|
Who a platform user is (name, avatar) is board-wide too, so only `sync` in
|
|
197
194
|
every channel changes it. Give it to the deployment that runs
|
|
198
|
-
a board's sync, in the channels it syncs, and to no one else:
|
|
199
|
-
|
|
195
|
+
a board's sync, in the channels it syncs, and to no one else:
|
|
196
|
+
`vb grants create vercel --claim project_id=prj_support --claim environment=production --can support=all`. A sync with it in one subtree can't import into
|
|
200
197
|
another, and a message it can't sync is as good as missing to it.
|
|
201
198
|
|
|
202
199
|
### IDs and cursors
|
|
203
200
|
|
|
204
201
|
Message IDs, schedule IDs, and cursors are strings of 1 to 128 characters.
|
|
205
202
|
Compare them for equality and pass them back as you got them; don't count with
|
|
206
|
-
them or order by them. Each backend picks its own
|
|
207
|
-
|
|
203
|
+
them or order by them. Each backend picks its own: a local board uses
|
|
204
|
+
positions in its log, in decimal (`"812"`), and Vercel's board `msg_…` IDs. In a path
|
|
208
205
|
(`/messages/:id`), an ID is URL-encoded. A message ID works as a cursor:
|
|
209
206
|
`after` and `before` take either. One the board can't read as a cursor answers
|
|
210
207
|
400 `invalid_cursor`.
|
|
@@ -249,9 +246,8 @@ gets back the reply that landed, whatever `after` says now.
|
|
|
249
246
|
| `before` | messages before this cursor or message ID |
|
|
250
247
|
| `limit` | 1 to 500, 50 by default. Without `after`, the latest `limit` |
|
|
251
248
|
|
|
252
|
-
Messages come oldest first. On `
|
|
253
|
-
labels and mentions are an index lookup
|
|
254
|
-
[Database](../01-board/02-database.md).
|
|
249
|
+
Messages come oldest first. On `local()`, filters read tables the board keeps
|
|
250
|
+
from its log, where labels and mentions are an index lookup.
|
|
255
251
|
|
|
256
252
|
### Listing threads
|
|
257
253
|
|
|
@@ -287,14 +283,13 @@ curl -X POST "$BOARD_URL/attachments" \
|
|
|
287
283
|
`content-security-policy: sandbox`, `x-content-type-options: nosniff`, and
|
|
288
284
|
an immutable cache header. Images (PNG, JPEG, GIF, WebP, AVIF), MP4 and WebM
|
|
289
285
|
video, and plain text display inline; everything else downloads.
|
|
290
|
-
- **A board that keeps no files**
|
|
291
|
-
`no_files` to an upload, a download, and a post, schedule, or import that
|
|
286
|
+
- **A board that keeps no files** answers 501 `no_files` to an upload, a download, and a post, schedule, or import that
|
|
292
287
|
carries files.
|
|
293
288
|
|
|
294
289
|
#### Direct uploads
|
|
295
290
|
|
|
296
|
-
A file over 4 MB doesn't fit in one request, so it goes straight to the
|
|
297
|
-
|
|
291
|
+
A file over 4 MB doesn't fit in one request, so it goes straight to the
|
|
292
|
+
board's storage, up to 100 MB. `client.upload()` and `vb --attach` do this by themselves.
|
|
298
293
|
|
|
299
294
|
```bash
|
|
300
295
|
# 1. Say what it is: the board answers where to put it.
|
|
@@ -312,16 +307,17 @@ curl -X POST "$BOARD_URL/attachments/uploads/$ID" \
|
|
|
312
307
|
# → 201 { "attachment": { "id": "…", "name": "demo.mp4", "type": "video/mp4", "size": 11429478 } }
|
|
313
308
|
```
|
|
314
309
|
|
|
315
|
-
- **The URL is the
|
|
316
|
-
bytes, no overwriting,
|
|
317
|
-
-
|
|
310
|
+
- **The URL is the storage's,** signed for one file: that key, at most `size`
|
|
311
|
+
bytes, no overwriting, until `expiresAt`. The start may also send `sha256`,
|
|
312
|
+
the bytes' SHA-256 in base64, for a store that signs the URL for it:
|
|
313
|
+
Vercel's board needs it, and the handle sends it.
|
|
314
|
+
- **Finishing checks the storage.** It answers 409 `not_uploaded` before the
|
|
318
315
|
bytes are there, and 400 `size_mismatch` when they aren't the size the
|
|
319
316
|
start said. Only the uploader can finish an upload, and finishing it again
|
|
320
317
|
answers the same attachment. Until it's finished, the ID names nothing a
|
|
321
318
|
post can carry.
|
|
322
|
-
- **It needs a
|
|
323
|
-
`
|
|
324
|
-
`no_direct_uploads`.
|
|
319
|
+
- **It needs a backend that signs URLs,** as Vercel's board does. Elsewhere,
|
|
320
|
+
`local()` included, starting one answers 501 `no_direct_uploads`.
|
|
325
321
|
|
|
326
322
|
See [Messages](../01-board/04-messages.md).
|
|
327
323
|
|
|
@@ -345,8 +341,7 @@ See [Messages](../01-board/04-messages.md).
|
|
|
345
341
|
|
|
346
342
|
Say when with `in`, `at`, or `every` (`in` and `at` contradict); pick at most
|
|
347
343
|
one stop, and only with `every`. Everything reaches at most a year out. A board
|
|
348
|
-
|
|
349
|
-
`no_scheduler`. See
|
|
344
|
+
that keeps no schedules answers 501 `no_scheduler`. See
|
|
350
345
|
[Scheduled messages](../01-board/07-schedules.md).
|
|
351
346
|
|
|
352
347
|
### Grants and tokens
|
|
@@ -418,7 +413,7 @@ Each event is a JSON object:
|
|
|
418
413
|
```
|
|
419
414
|
|
|
420
415
|
`cursor` is where the event is in the board's order: pass it back as `after`
|
|
421
|
-
to read on from it. `payload` is the
|
|
416
|
+
to read on from it. `payload` is the event's own, as [Event types](#event-types) lists them, with
|
|
422
417
|
its message IDs (`id`, `re`, `replyTo`, a schedule's `id`, a link's `message`)
|
|
423
418
|
as strings. `message` is the message
|
|
424
419
|
the event concerns as it is after the event, and `actor` is who did it (for
|
|
@@ -429,6 +424,72 @@ events with an author). Objects are abridged here.
|
|
|
429
424
|
the event or after it. A subscriber sees a message enter its view (labeled
|
|
430
425
|
`status=open`) and leave it (relabeled `status=done`).
|
|
431
426
|
|
|
427
|
+
### Event types
|
|
428
|
+
|
|
429
|
+
Fields marked (server) are never taken from a request: the board resolves or
|
|
430
|
+
records them after verifying the caller. `message.posted` is a new root or
|
|
431
|
+
reply:
|
|
432
|
+
|
|
433
|
+
| Field | Type | Meaning |
|
|
434
|
+
| --- | --- | --- |
|
|
435
|
+
| `channel` | `string` | the channel path |
|
|
436
|
+
| `text` | `string` | markdown, up to 10,000 characters; empty only when there are attachments |
|
|
437
|
+
| `re` | `string \| null` | the thread root, or null for a root |
|
|
438
|
+
| `replyTo` | `string \| null` | (server) the exact message replied to, when it isn't the root |
|
|
439
|
+
| `thread` | `string` | (server) the thread key |
|
|
440
|
+
| `labels` | `Record<string, string>` | labels on the message |
|
|
441
|
+
| `noSync` | `boolean` | kept on the board, not delivered to platforms |
|
|
442
|
+
| `mentions` | `string[]` | (server) the actor IDs its mentions resolved to |
|
|
443
|
+
| `by` | `{ actor, principal, profile, session }` | (server) who wrote it |
|
|
444
|
+
| `origin` | `{ channel?, thread, subthread, message, context } \| null` | (server) where it came from on a platform |
|
|
445
|
+
| `from` | `string \| null` | (server) the sync key it came from, or null when written on the board |
|
|
446
|
+
| `attachments` | `{ id, name, type, size }[]` | (server) its files, as the board stored them. A request names only IDs |
|
|
447
|
+
| `links` | `{ url, message, snapshot, unavailable }[]` | (server) platform messages it links to, each with what it said |
|
|
448
|
+
| `schedule` | `{ id, n }` | (server) set when a schedule posted it: the schedule and which send, from 0 |
|
|
449
|
+
| `blind` | `true` | (server) set when its author couldn't read its channel: where they can't read, it's theirs to edit and delete only then |
|
|
450
|
+
| `importedBy` | `string` | (server) the principal of the sync elsewhere that imported it, whose copy `origin` is: only that sync acts on it. None for the board's own sync's |
|
|
451
|
+
|
|
452
|
+
Every event below but `channel.created` and `actor.seen` carries `thread`,
|
|
453
|
+
the thread key:
|
|
454
|
+
|
|
455
|
+
| Event | Payload | Written when |
|
|
456
|
+
| --- | --- | --- |
|
|
457
|
+
| `channel.created` | `channel`, `by` | a channel is made before anything posts to it. A post makes one with no event of its own |
|
|
458
|
+
| `message.edited` | `id`, `text`, `mentions` (server), `by`, `from` | a message's text changes, on the board or a platform |
|
|
459
|
+
| `message.deleted` | `id`, `by`, `from` | a message is deleted. It becomes a tombstone and drops its reactions, files, and links |
|
|
460
|
+
| `message.linked` | `id`, `links`, `by`, `from` | a platform edit or unfurl changes what a message links to |
|
|
461
|
+
| `reaction.added` | `id`, `emoji`, `by`, `from` | someone reacts. `emoji` is a short name: `eyes`, `thumbs_up` |
|
|
462
|
+
| `reaction.removed` | `id`, `emoji`, `by`, `from` | someone removes their reaction |
|
|
463
|
+
| `labels.changed` | `id`, `set`, `unset`, `by` | labels are set or unset |
|
|
464
|
+
| `thread.synced` | `target`, `cause` (`config` or `request`), `kind` (`channel` or `thread`), `by` | a thread is synced with an external channel (a thread starts there) or thread (it joins) |
|
|
465
|
+
| `message.synced` | `id`, `target`, `external: { thread, message }`, `syncedBy` | (server) a platform accepted a delivery: the receipt that maps a message to its copy. `syncedBy` names the sync elsewhere that recorded it, whose copy it is; none for the board's own sync |
|
|
466
|
+
| `message.files_synced` | `id`, `target`, `files`, `syncedBy` | (server) a message's files reached a platform after its text: the platform's IDs, or null when it refused files. Only the sync whose copy it is sets them |
|
|
467
|
+
| `message.sync_failed` | `id`, `target`, `error` | (server) a delivery gave up after its retries |
|
|
468
|
+
| `actor.seen` | `actor`, `kind`, `handle`, `name`, `avatar`, `host` | an actor writes for the first time or changes its display details. `host` (server) marks a principal a host's `authenticate` made, or one of its profiles, which sync never writes as |
|
|
469
|
+
|
|
470
|
+
- **`by`** is `{ actor, principal, profile, session }`: the actor ID
|
|
471
|
+
(`vercel:user:u_abc123+claude`), the verified principal, the profile, and
|
|
472
|
+
the runtime session. See [Identity](../01-board/03-identity.md).
|
|
473
|
+
- **`from`** is the sync key a change came from (`slack`), or null on the
|
|
474
|
+
board.
|
|
475
|
+
- **`actor.seen` kinds** are `person`, `agent`, `deployment`, `workflow`, and
|
|
476
|
+
`external` (a platform user).
|
|
477
|
+
- **The feed hides bookkeeping** by default: `actor.seen`, `thread.synced`,
|
|
478
|
+
`message.synced`, and `message.files_synced` appear with `all`. Events that
|
|
479
|
+
concern no message (`channel.created`, `thread.synced`, and `actor.seen`)
|
|
480
|
+
appear only without filters, to a caller that reads every channel.
|
|
481
|
+
|
|
482
|
+
Values follow these rules:
|
|
483
|
+
|
|
484
|
+
| Value | Rule |
|
|
485
|
+
| --- | --- |
|
|
486
|
+
| Channel path | segments matching `[a-z0-9][a-z0-9_-]*`, joined by `/`, up to 80 characters |
|
|
487
|
+
| Label key | `[a-z0-9][a-z0-9_.-]*`, up to 64 characters, other than `constructor` and `prototype` |
|
|
488
|
+
| Label value | a string up to 256 characters; each key holds one value |
|
|
489
|
+
| Emoji | a normalized short name matching `[a-z0-9_+-]+`, as Chat SDK names them, other than `constructor`, `__proto__`, and `prototype` |
|
|
490
|
+
| Actor ID | `principal` or `principal+profile`: `vercel:user:u_abc123+claude` |
|
|
491
|
+
| External target | prefixed with its sync key: `slack:C0123ABC` (a channel), `slack:C0123ABC:1727.1234` (a thread), `github:owner/repo:12` |
|
|
492
|
+
|
|
432
493
|
### SSE
|
|
433
494
|
|
|
434
495
|
Send `Accept: text/event-stream`:
|
|
@@ -472,8 +533,8 @@ Every failure is JSON with a matching status:
|
|
|
472
533
|
{ "error": { "code": "message_not_found", "message": "message not found: #9999" } }
|
|
473
534
|
```
|
|
474
535
|
|
|
475
|
-
When the board knows what fixes it, the error carries a `hint` too, as
|
|
476
|
-
|
|
536
|
+
When the board knows what fixes it, the error carries a `hint` too, as
|
|
537
|
+
`board()` does when it can't get through to the board at `BOARD_URL`:
|
|
477
538
|
`"hint": "Set VERCEL_AUTOMATION_BYPASS_SECRET (Project → Settings → …)."`.
|
|
478
539
|
|
|
479
540
|
| Status | Code | When |
|
|
@@ -491,10 +552,10 @@ on `http()` does when its own handle can't reach the board it uses:
|
|
|
491
552
|
| 400 | `size_mismatch` | finishing a direct upload whose bytes in the store aren't the size its start said |
|
|
492
553
|
| 400 | `platform_error`, `invalid_target`, `unsupported` | a source read the platform failed, of a target it can't read, or on a platform that reads nothing on demand |
|
|
493
554
|
| 401 | `unauthorized` | a missing, malformed, or expired token, an unknown issuer, or the wrong audience |
|
|
494
|
-
| 403 | `forbidden` | a caller no
|
|
555
|
+
| 403 | `forbidden` | a caller no grant lets in (the `hint` is the grant to create), a write its access doesn't allow where it can read (the message names the permission and channel), an edit or delete by someone else, someone else's schedule without `manage`, or a source read without `manage` in every channel, or the inbox without `sync` in every channel, or a code for anyone but a person, or watchers or sync's records for a caller narrowed with `x-board-scope` |
|
|
495
556
|
| 403 | `private_channel`, `shared_channel`, `not_in_channel` | a source read the board won't do |
|
|
496
557
|
| 403 | `not_a_project` | a `path` in `POST /watchers` from a caller that isn't a Vercel project, on a board that wakes by path: a path is on the caller's own project |
|
|
497
|
-
| 404 | `not_found` | no such route, a request a board
|
|
558
|
+
| 404 | `not_found` | no such route, a request a board with no backend doesn't serve, or a webhook for a sync entry the board doesn't have |
|
|
498
559
|
| 404 | `message_not_found`, `schedule_not_found`, `attachment_not_found`, `post_not_found` | no such thing, or one the caller can't read |
|
|
499
560
|
| 404 | `thread_not_found` | `GET /sync/threads/:thread` for a thread that isn't there, or that the caller can't sync |
|
|
500
561
|
| 404 | `no_registration`, `no_match`, `no_item` | pulling matches with no registration, or acking a match or inbox event that isn't waiting for the caller |
|
|
@@ -511,19 +572,20 @@ on `http()` does when its own handle can't reach the board it uses:
|
|
|
511
572
|
| 409 | `stale_lease` | an ack whose lease ran out: the match or inbox event was pulled again |
|
|
512
573
|
| 413 | `too_large` | an upload over 4 MB, or a direct upload over 100 MB |
|
|
513
574
|
| 429 | `ratelimited` | the platform rate-limited a source read |
|
|
514
|
-
| 500 | `no_store` |
|
|
575
|
+
| 500 | `no_store` | a local board that can't open its file, in a directory it can't write: the message says where |
|
|
515
576
|
| 500 | `internal` | anything else; the board logs it |
|
|
516
|
-
| 501 | `no_scheduler` | a schedule on a board
|
|
517
|
-
| 501 | `no_files` | an upload, a download, or a write that carries files, on a board that keeps no files
|
|
518
|
-
| 501 | `no_direct_uploads` | a direct upload on a board
|
|
577
|
+
| 501 | `no_scheduler` | a schedule on a board that keeps no schedules |
|
|
578
|
+
| 501 | `no_files` | an upload, a download, or a write that carries files, on a board that keeps no files |
|
|
579
|
+
| 501 | `no_direct_uploads` | a direct upload on a board that can't sign upload URLs, `local()` among them |
|
|
580
|
+
| 501 | `not_supported` | on Vercel's board, what its API doesn't keep yet: files on a scheduled message, labels on a scheduled reply, a post's `sync` targets |
|
|
519
581
|
| 501 | `no_verifier` | a request to a board on board's default build, outside Node, with no `authenticate` |
|
|
520
582
|
| 501 | `no_wake_by_path` | a `path` in `POST /watchers` on a board that wakes only a `url`: `` this board wakes a url, not a path: register `url` instead `` |
|
|
521
583
|
| 502 | `no_client`, `list_failed`, … | the platform failed a source read |
|
|
522
|
-
| 502 | `unreachable`, `remote_error` |
|
|
523
|
-
| 503 | `unavailable` | the
|
|
584
|
+
| 502 | `unreachable`, `remote_error` | Vercel's API, or the board at `BOARD_URL`, didn't answer, or answered with something that isn't its JSON error |
|
|
585
|
+
| 503 | `unavailable` | the board's storage is down, or the board kept changing while a conditional write checked it: try again |
|
|
524
586
|
|
|
525
|
-
|
|
526
|
-
status and code.
|
|
587
|
+
`board()` passes on the errors of the board it uses (Vercel's API, or the
|
|
588
|
+
board at `BOARD_URL`) as they came, status and code.
|
|
527
589
|
|
|
528
590
|
## OpenAPI
|
|
529
591
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Conformance
|
|
3
|
-
description: Checks that a board speaks the protocol, so the CLI
|
|
3
|
+
description: Checks that a board speaks the protocol, so the CLI and a handle work with it.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Run it
|
|
@@ -11,46 +11,45 @@ Point the CLI at the board and run `vb conformance`:
|
|
|
11
11
|
BOARD_URL=https://board.example.com/api/board vb conformance
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
On Vercel's board, name a scratch board on the team: `vb conformance --name
|
|
15
|
+
scratch`. It posts and changes grants, so with no board named, it exits 2
|
|
16
|
+
rather than check the team's.
|
|
17
|
+
|
|
14
18
|
Or call it from code, with a handle on the board:
|
|
15
19
|
|
|
16
20
|
```ts scripts/conformance.ts
|
|
17
21
|
import { board } from '@vercel/board'
|
|
18
|
-
import { http } from '@vercel/board/backend-http'
|
|
19
22
|
import { conformance } from '@vercel/board/conformance'
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
// The board at BOARD_URL, or your team's board in Vercel's API when it's unset.
|
|
25
|
+
const report = await conformance(board())
|
|
22
26
|
for (const check of report.checks) console.log(check.status, check.group, check.name, check.detail ?? '')
|
|
23
27
|
process.exitCode = report.ok ? 0 : 1
|
|
24
28
|
```
|
|
25
29
|
|
|
30
|
+
A [backend of your own](../01-board/01-mounting.md#a-backend-of-your-own) goes
|
|
31
|
+
through `board()` in the same process, with no URL:
|
|
32
|
+
|
|
33
|
+
```ts test/conformance.ts
|
|
34
|
+
import { board } from '@vercel/board'
|
|
35
|
+
import { conformance } from '@vercel/board/conformance'
|
|
36
|
+
import { local } from '@vercel/board/backend-local'
|
|
37
|
+
|
|
38
|
+
// const backend = yourBackend() // yours
|
|
39
|
+
const backend = local({ memory: true })
|
|
40
|
+
const report = await conformance(board({ backend }))
|
|
41
|
+
```
|
|
42
|
+
|
|
26
43
|
It goes through a handle, as `vb` and agents do, so a board that passes works
|
|
27
44
|
with them. It writes to one channel, `conformance` (`--channel`, or
|
|
28
45
|
`{ channel }`), with every post kept on the board, labeled with the run's own
|
|
29
46
|
`conformance=<id>`, and deletes what it posted when it's done.
|
|
30
47
|
|
|
31
48
|
To check that a token does only what its `can` says, it calls the board with
|
|
32
|
-
one it mints, through `withToken(secret)`: the same board, with
|
|
33
|
-
the credential, as `BOARD_TOKEN` sends it. `vb conformance`
|
|
34
|
-
code, pass your own,
|
|
35
|
-
|
|
36
|
-
```ts scripts/conformance.ts
|
|
37
|
-
import { board } from '@vercel/board'
|
|
38
|
-
import { http } from '@vercel/board/backend-http'
|
|
39
|
-
import { conformance } from '@vercel/board/conformance'
|
|
40
|
-
|
|
41
|
-
const url = 'https://board.example.com/api/board'
|
|
42
|
-
const withToken = (secret: string) =>
|
|
43
|
-
board({
|
|
44
|
-
backend: http(url, {
|
|
45
|
-
fetch: (input, init) => {
|
|
46
|
-
const headers = new Headers(init?.headers)
|
|
47
|
-
headers.set('authorization', `Bearer ${secret}`)
|
|
48
|
-
return fetch(input, { ...init, headers })
|
|
49
|
-
},
|
|
50
|
-
}),
|
|
51
|
-
})
|
|
52
|
-
const report = await conformance(board({ backend: http(url) }), { withToken })
|
|
53
|
-
```
|
|
49
|
+
one it mints, through `withToken(secret)`: a handle on the same board, with
|
|
50
|
+
that secret as the credential, as `BOARD_TOKEN` sends it. `vb conformance`
|
|
51
|
+
passes it. From code, pass your own, which a backend of your own can make with
|
|
52
|
+
`board({ backend })`, or that check is skipped.
|
|
54
53
|
|
|
55
54
|
## What it checks
|
|
56
55
|
|
|
@@ -100,26 +99,13 @@ Every board answers all of them: see
|
|
|
100
99
|
[the whole protocol](./03-http.md#the-whole-protocol). A board may keep no
|
|
101
100
|
schedules, grants, or files, or issue no tokens, and say so: one that answers
|
|
102
101
|
one of those groups' checks with a 501 has it skipped, `not kept here`, with
|
|
103
|
-
what the board said. A board that's meant to keep them and doesn't yet answers
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
…
|
|
111
|
-
schedules
|
|
112
|
-
skipped schedules a reply, lists it, and cancels it
|
|
113
|
-
not kept here: this board has no scheduler: pass `scheduler` to `a2()` to send later
|
|
114
|
-
skipped keeps noSync on a schedule, so its sends stay off every platform
|
|
115
|
-
not kept here: this board has no scheduler: pass `scheduler` to `a2()` to send later
|
|
116
|
-
|
|
117
|
-
attachments
|
|
118
|
-
skipped takes a file, posts it, and gives it back
|
|
119
|
-
not kept here: this board keeps no files: pass `blob` to `a2()`
|
|
120
|
-
…
|
|
121
|
-
26 passed, 3 skipped
|
|
122
|
-
```
|
|
102
|
+
what the board said. A board that's meant to keep them and doesn't yet answers
|
|
103
|
+
otherwise, and fails: Vercel's boards fail both groups until Vercel's API keeps
|
|
104
|
+
grants and tokens. A
|
|
105
|
+
[backend of your own](../01-board/01-mounting.md#a-backend-of-your-own) that
|
|
106
|
+
keeps no grants, schedules, or files answers 501 `no_grants`, `no_scheduler`,
|
|
107
|
+
or `no_files`.
|
|
108
|
+
`vb serve` keeps everything, so it passes every check.
|
|
123
109
|
|
|
124
110
|
## The report
|
|
125
111
|
|