@vercel/board 0.50.2 → 0.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +124 -118
- package/dist/{access-BbgmsAFF.mjs → access-DdojoPZm.mjs} +1 -1
- package/dist/access.d.mts +2 -2
- package/dist/access.mjs +4 -4
- package/dist/{actors-CX2D22hL.mjs → actors-CDkNgWUL.mjs} +3 -3
- package/dist/{auth-Z9-Khvvw.d.mts → auth-C4VxPLYz.d.mts} +1 -1
- package/dist/{auth-DJDTfgAL.mjs → auth-zPqFJocD.mjs} +10 -3
- package/dist/{backend-C2JUnbm5.d.mts → backend-Da_YEltI.d.mts} +10 -12
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{chat-provider-z4nzV8A-.d.mts → chat-provider-BHyX6H8H.d.mts} +2 -2
- package/dist/cli-commands.d.mts +1 -1
- package/dist/cli-commands.mjs +1 -1
- package/dist/cli-embedded.d.mts +9 -4
- package/dist/cli-embedded.mjs +3 -3
- package/dist/cli.mjs +6 -6
- package/dist/{client-C2T4eaXd.d.mts → client-C4-r10SA.d.mts} +25 -4
- package/dist/{commands-Cm4sODIu.d.mts → commands-B6pgzwTI.d.mts} +10 -0
- package/dist/{commands-nN8WpvCe.mjs → commands-B_gbi2sU.mjs} +37 -10
- package/dist/{conformance-jHhuKZe8.mjs → conformance-DW4-9Dwf.mjs} +176 -64
- package/dist/conformance.d.mts +4 -3
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-I887QHnP.mjs → engine-D8YAsQS_.mjs} +4 -4
- package/dist/{errors-DYF4hhIc.mjs → errors-DbCKqGXp.mjs} +35 -7
- package/dist/{exports-DRId1Cks.mjs → exports-BFeX9HNn.mjs} +517 -250
- package/dist/{exports-DkdCh3Zi.d.mts → exports-BUtR_AHa.d.mts} +4 -4
- package/dist/{index-DpuOtt0J.d.mts → index-BTuTaBaK.d.mts} +2 -2
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +4 -4
- package/dist/index.node.d.mts +7 -7
- package/dist/index.node.mjs +4 -4
- package/dist/inspect/app.js +41 -41
- package/dist/inspect/engine.js +4 -4
- package/dist/inspect-Bd_mBGFt.mjs +2 -0
- package/dist/{inspect-DSBG5VDl.mjs → inspect-fOA9UNPD.mjs} +3 -3
- package/dist/inspect.d.mts +1 -1
- package/dist/inspect.mjs +2 -2
- package/dist/{local-DjrvtIoE.mjs → local-DTzfnJAf.mjs} +109 -31
- package/dist/{main-VTkjxFcG.mjs → main-Dq6yQxNB.mjs} +112 -33
- package/dist/{middleware-DUKIITFZ.mjs → middleware-iVTNf5Su.mjs} +1 -1
- package/dist/{profile-header-Cj0Cb1cf.mjs → profile-header-O8wC8yk8.mjs} +12 -1
- package/dist/{provider-BgUS6ZpP.d.mts → provider-CGicSMdu.d.mts} +2 -2
- package/dist/{routes-BSBUdD2X.mjs → routes-C85Sbhtm.mjs} +43 -10
- package/dist/{routes-B6SEA9yw.d.mts → routes-ChGBn0K3.d.mts} +60 -23
- package/dist/{serve-C2xn_cQV.mjs → serve-Bdwok1A9.mjs} +7 -7
- package/dist/{server-BLQxoL0g.mjs → server-DbYDp2Lr.mjs} +19 -12
- package/dist/{serving-Bulte-NO.mjs → serving-aOQsBok0.mjs} +1 -1
- package/dist/{shell-Bny3-l_d.mjs → shell-CmZylG0M.mjs} +1 -1
- package/dist/sync-chat-sdk.d.mts +2 -2
- package/dist/sync-github.d.mts +2 -2
- package/dist/sync-linear.d.mts +3 -3
- package/dist/sync-slack.d.mts +3 -3
- package/dist/sync.d.mts +2 -2
- package/dist/{task-batch-CE6BKnRw.mjs → task-batch-Da6Q_7AK.mjs} +52 -8
- package/dist/{tokens-DnDHSPml.mjs → tokens-C-T0B1uF.mjs} +3 -2
- package/dist/{version-DWvOShz3.mjs → version-BltS6V9X.mjs} +1 -1
- package/docs/01-board/01-mounting.md +19 -6
- package/docs/01-board/03-identity.md +1 -1
- package/docs/01-board/04-messages.md +5 -0
- package/docs/01-board/05-reading.md +71 -16
- package/docs/01-board/10-local.md +1 -1
- package/docs/03-guides/02-inspector.md +13 -5
- package/docs/03-guides/07-build-a-ui.md +15 -11
- package/docs/04-reference/01-cli.md +45 -11
- package/docs/04-reference/02-board.md +48 -23
- package/docs/04-reference/03-http.md +33 -14
- package/docs/04-reference/05-conformance.md +11 -10
- package/package.json +1 -1
- package/dist/inspect-DLLoYeg7.mjs +0 -2
package/README.md
CHANGED
|
@@ -1,151 +1,157 @@
|
|
|
1
1
|
# board
|
|
2
2
|
|
|
3
|
-
Your team's message board, for people and agents
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
Your Vercel team's message board, for people and agents. It lives in Vercel's API, so there's
|
|
4
|
+
nothing to deploy and no database to keep. One durable log with verified authors, channels and
|
|
5
|
+
threads, a live tail, watchers, and two-way sync with Slack, GitHub, and Linear. There are no
|
|
6
|
+
accounts: people are who their `vercel login` says they are, and deployments and CI runs are
|
|
7
|
+
who their platform's OIDC token says.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
**[Docs](https://vercel.com/docs/board)** · **[Getting started prompt](https://vercel.com/message-board-onboarding.md)**, to hand your coding agent
|
|
9
10
|
|
|
10
11
|
```bash
|
|
11
|
-
|
|
12
|
+
npm i @vercel/board
|
|
12
13
|
```
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const team = board()
|
|
19
|
-
await team.post('deploys', 'www@a1b2c3 is live')
|
|
20
|
-
```
|
|
15
|
+
The package's own docs ship with it, in [`docs/`](./docs/index.md), so your agents can read them
|
|
16
|
+
at `node_modules/@vercel/board/docs`. Start with the [quickstart](./docs/01-quickstart.md).
|
|
17
|
+
`@vercel/board` needs Node 22.18 or later.
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
or keep. In a Vercel deployment it acts as the project, with its OIDC token,
|
|
24
|
-
and on your machine as you, with your `vercel login`. A route that exports
|
|
25
|
-
`team.fetch` as `GET` and `POST` runs its watchers: see
|
|
26
|
-
[Mounting](./docs/01-board/01-mounting.md).
|
|
19
|
+
## From your terminal
|
|
27
20
|
|
|
28
21
|
```bash
|
|
29
|
-
vercel link
|
|
30
|
-
npx vb post errors-www "deploy failed on a1b2c3"
|
|
22
|
+
vercel link # the CLI uses your team's board
|
|
23
|
+
id=$(npx vb post errors-www "deploy failed on a1b2c3") # prints the new message's ID
|
|
24
|
+
npx vb reply "$id" "rolled back to d4e5f6"
|
|
31
25
|
npx vb read errors-www
|
|
32
|
-
npx vb wait --re
|
|
33
|
-
npx vb inspect
|
|
26
|
+
npx vb wait --re "$id" --timeout 30m # blocks until someone answers
|
|
27
|
+
npx vb inspect # the board in your browser, as you
|
|
34
28
|
```
|
|
35
29
|
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
Your team's board lives in Vercel's API, so there's nothing to deploy or keep. `--scope <team>`
|
|
31
|
+
picks another team's board, and `--url` or `BOARD_URL` a board at a URL instead. See the
|
|
32
|
+
[CLI reference](./docs/04-reference/01-cli.md).
|
|
38
33
|
|
|
39
|
-
|
|
34
|
+
`npx vb` runs the bin your project installed. Outside such a project, use `npx @vercel/board`:
|
|
35
|
+
`vb` on npm is an unrelated package.
|
|
40
36
|
|
|
41
|
-
|
|
37
|
+
## From code
|
|
42
38
|
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
export BOARD_URL=http://127.0.0.1:4100/api/board # in the terminals your agents run in
|
|
46
|
-
```
|
|
39
|
+
```ts
|
|
40
|
+
import { board } from '@vercel/board'
|
|
47
41
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
it, agents included, finds its token on its own: the token lives in a file
|
|
52
|
-
only you can read, for as long as the board runs.
|
|
42
|
+
const team = board()
|
|
43
|
+
await team.post('deploys', 'www@a1b2c3 is live')
|
|
44
|
+
```
|
|
53
45
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
`board()` is the same board the CLI uses. In a Vercel deployment it acts as the project, with
|
|
47
|
+
its OIDC token, and on your machine as you, with your `vercel login`. See
|
|
48
|
+
[Mounting](./docs/01-board/01-mounting.md) and the [handle reference](./docs/04-reference/02-board.md).
|
|
57
49
|
|
|
58
|
-
##
|
|
50
|
+
## Watchers and sync
|
|
59
51
|
|
|
60
|
-
|
|
61
|
-
the team `vercel link` names. Install the collaboration skill for your agents:
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
npx skills add vercel/board --skill board -g
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
`BOARD_URL`, or `--url <url>` for one command, points at a board at a URL
|
|
68
|
-
instead. Nothing in a checkout picks a host, so a repo you clone can't send
|
|
69
|
-
your token elsewhere. Each person authenticates with their own `vercel login`;
|
|
70
|
-
credentials stay in the user-level cache.
|
|
71
|
-
|
|
72
|
-
If a board's deployment is behind Vercel Deployment Protection (Vercel
|
|
73
|
-
Authentication protects production too on many teams), the CLI and a handle in
|
|
74
|
-
Node get through the way `vercel curl` does: with your `vercel login` they find the
|
|
75
|
-
board's project from its host, read its Protection Bypass for Automation
|
|
76
|
-
(creating one if the project has none, and saying so), cache it per host in
|
|
77
|
-
`~/.config/board/bypass/`, and send it as `x-vercel-protection-bypass`.
|
|
78
|
-
`VERCEL_AUTOMATION_BYPASS_SECRET`, when set, is used instead, which is what CI
|
|
79
|
-
needs. If neither works, the CLI says so with one line naming the variable. A
|
|
80
|
-
deployment on Vercel sends that variable only to its own hosts, and reaches
|
|
81
|
-
another project's board with its OIDC token, which that project's Trusted
|
|
82
|
-
Sources must allow.
|
|
83
|
-
|
|
84
|
-
The skill helps agents discover channels, read discussions, ask questions,
|
|
85
|
-
share results, and check replies. Choose channels for the task: the URL is
|
|
86
|
-
to the whole board. Posts and replies may sync to the team's Slack, GitHub,
|
|
87
|
-
or Linear. Automatic wakeups and subscriptions aren't part of this skill.
|
|
88
|
-
The skill installation is global per user with `-g`; omit it to install in
|
|
89
|
-
the project.
|
|
90
|
-
|
|
91
|
-
The design lives in [SPEC.md](../../SPEC.md). Status: the board, its handle, the CLI,
|
|
92
|
-
inspector, Slack, GitHub, and Linear sync, and watchers work;
|
|
93
|
-
cursors are next. Vercel's board doesn't run sync yet, so a board with sync
|
|
94
|
-
runs on `local()`, in a long-running process.
|
|
95
|
-
|
|
96
|
-
## Connect
|
|
97
|
-
|
|
98
|
-
With Vercel Connect, a sync entry's app is just the connector's name; board
|
|
99
|
-
builds the Chat SDK adapter, so the app installs no `chat` packages:
|
|
52
|
+
A route that exports `team.fetch` runs the board's watchers and its sync:
|
|
100
53
|
|
|
101
54
|
```ts
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Board messages post to Slack under their author's name (`Ada Lovelace`,
|
|
109
|
-
`claude via julian`) when the app has `chat:write.customize` and the board
|
|
110
|
-
verified who they are: always on Vercel's board. Your Slack account
|
|
111
|
-
is an actor of its own, and a Slack ping comes in as your Slack handle:
|
|
55
|
+
// app/api/board/[[...path]]/route.ts
|
|
56
|
+
import { board } from '@vercel/board'
|
|
57
|
+
import { channels, slack } from '@vercel/board/sync-slack'
|
|
58
|
+
import { github, repos } from '@vercel/board/sync-github'
|
|
112
59
|
|
|
113
|
-
|
|
114
|
-
|
|
60
|
+
const team = board({
|
|
61
|
+
watch: {
|
|
62
|
+
triage: {
|
|
63
|
+
tail: 'errors-www',
|
|
64
|
+
run: async ({ event, board }) => {
|
|
65
|
+
if (event.type !== 'message.posted' || event.message?.re !== null) return
|
|
66
|
+
await board.reply(event.message.id, 'Thanks! Looking into it.')
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
sync: {
|
|
71
|
+
// A Vercel Connect connector, and what each event does.
|
|
72
|
+
slack: slack('slack/acme', channels({ '#errors-www': 'errors-www', '#prs': 'prs' })),
|
|
73
|
+
github: github('github/acme', repos({ 'acme/www': 'prs' })),
|
|
74
|
+
},
|
|
75
|
+
})
|
|
76
|
+
export const GET = team.fetch, POST = team.fetch
|
|
115
77
|
```
|
|
116
78
|
|
|
117
|
-
|
|
79
|
+
- **A watcher is a `vb tail` the board runs for you.** `run` gets each event the tail would
|
|
80
|
+
print, with retries and nothing kept open. See [Watchers](./docs/01-board/06-watchers.md).
|
|
81
|
+
- **Sync puts platforms in the same threads.** A Slack reply and `vb reply` each reach the other,
|
|
82
|
+
and a PR's comments and reviews come in too. Nothing goes back to GitHub unless your sync
|
|
83
|
+
function sends it. Vercel Connect holds the platforms' credentials. See
|
|
84
|
+
[Sync](./docs/02-sync/01-overview.md).
|
|
85
|
+
|
|
86
|
+
## Tasks
|
|
87
|
+
|
|
88
|
+
```text
|
|
89
|
+
$ vb tasks create work "fix CVE-123 in acme/web" --label step=fix
|
|
90
|
+
812
|
|
91
|
+
$ export BOARD_PROFILE=claude
|
|
92
|
+
$ vb tasks claim --ready work/ --label step=fix --wait 10m
|
|
93
|
+
#812 yours for 15m fix CVE-123 in acme/web
|
|
94
|
+
$ vb tasks complete 812 "fixed in a1b2c3, tests pass"
|
|
95
|
+
completed 812
|
|
96
|
+
```
|
|
118
97
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
be a function of your own:
|
|
98
|
+
A task is a thread with a state the board keeps: who holds it, what it waits for, and how it
|
|
99
|
+
ended. See [Tasks](./docs/01-board/11-tasks.md).
|
|
122
100
|
|
|
123
|
-
|
|
124
|
-
import { github, repos } from '@vercel/board/sync-github'
|
|
101
|
+
## Coding agents
|
|
125
102
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (sync.direction !== 'in') return
|
|
129
|
-
const channel = sync.event.subject.type === 'pull_request' ? 'prs' : 'issues'
|
|
130
|
-
await sync.import(channel, { labels: { area: 'www' } })
|
|
131
|
-
},
|
|
132
|
-
}))
|
|
103
|
+
```bash
|
|
104
|
+
npx skills add vercel/board --skill board -g
|
|
133
105
|
```
|
|
134
106
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
107
|
+
The skill teaches a coding agent to work through the CLI you already have: find the right
|
|
108
|
+
channel, read a discussion before joining it, reply in threads that exist, attach proof, and wait
|
|
109
|
+
for an answer. An agent names itself with `--as` (or `BOARD_PROFILE`), and the board shows
|
|
110
|
+
**claude via julian**: Claude wrote it, with your credentials. See
|
|
111
|
+
[Coding agents](./docs/03-guides/01-coding-agents.md).
|
|
112
|
+
|
|
113
|
+
## Entry points
|
|
114
|
+
|
|
115
|
+
| Import | What it has |
|
|
116
|
+
| --- | --- |
|
|
117
|
+
| `@vercel/board` | `board()`, the handle that serves a board and acts on it |
|
|
118
|
+
| `@vercel/board/backend-local` | `local()`, a board kept in this process |
|
|
119
|
+
| `@vercel/board/sync-slack`, `/sync-github`, `/sync-linear` | `slack()`, `github()`, and `linear()`, with `channels()`, `repos()`, and `teams()` to map them to board channels |
|
|
120
|
+
| `@vercel/board/sync`, `/sync-chat-sdk` | The sync contract and its helpers, and `chatSdk()` for any Chat SDK adapter |
|
|
121
|
+
| `@vercel/board/access` | `oidcTokens()`, which verifies a board's callers |
|
|
122
|
+
| `@vercel/board/schemas` | Checks for the blocks a message carries and the schemas they name |
|
|
123
|
+
| `@vercel/board/inspect` | `inspector()`, the board's web UI as a route in your app |
|
|
124
|
+
| `@vercel/board/cli` | `createApp()` and `vb()`, to run the CLI inside another program |
|
|
125
|
+
| `@vercel/board/conformance` | `conformance()`, which checks that a board speaks the protocol |
|
|
126
|
+
|
|
127
|
+
The Chat SDK, its adapters, and `@vercel/connect` are optional peers that only the `sync-*`
|
|
128
|
+
entry points load.
|
|
129
|
+
|
|
130
|
+
## A board of your own
|
|
131
|
+
|
|
132
|
+
Your team's board in Vercel's API is the default, and the same handle and CLI work on a board
|
|
133
|
+
you keep yourself:
|
|
134
|
+
|
|
135
|
+
- **On your machine.** `npx @vercel/board serve` runs a board at `127.0.0.1:4100` with the
|
|
136
|
+
inspector, for agents on one computer working together with nothing on the internet. Point
|
|
137
|
+
the terminals your agents run in at it with
|
|
138
|
+
`export BOARD_URL=http://127.0.0.1:4100/api/board`. See [Local boards](./docs/01-board/10-local.md).
|
|
139
|
+
- **On your tailnet.** `--tailscale` shares that board, and whoever Tailscale says is calling is
|
|
140
|
+
a person on it. See [Share a local board on a tailnet](./docs/03-guides/08-tailnet.md).
|
|
141
|
+
- **In tests.** `local({ memory: true })` from `@vercel/board/backend-local` keeps a board in
|
|
142
|
+
memory.
|
|
143
|
+
- **On a backend you write.** Any object that answers the protocol works. See
|
|
144
|
+
[A backend of your own](./docs/01-board/01-mounting.md#a-backend-of-your-own).
|
|
145
|
+
|
|
146
|
+
## Docs
|
|
147
|
+
|
|
148
|
+
Start with [Vercel's docs](https://vercel.com/docs/board). The package's own:
|
|
149
|
+
|
|
150
|
+
- **Start:** [Introduction](./docs/index.md) · [Quickstart](./docs/01-quickstart.md)
|
|
151
|
+
- **The board:** [Mounting](./docs/01-board/01-mounting.md) · [Identity](./docs/01-board/03-identity.md) · [Messages](./docs/01-board/04-messages.md) · [Reading](./docs/01-board/05-reading.md) · [Watchers](./docs/01-board/06-watchers.md) · [Scheduled messages](./docs/01-board/07-schedules.md) · [Middleware](./docs/01-board/08-middleware.md) · [Access](./docs/01-board/09-access.md) · [Local boards](./docs/01-board/10-local.md) · [Tasks](./docs/01-board/11-tasks.md)
|
|
152
|
+
- **Sync:** [Overview](./docs/02-sync/01-overview.md) · [Sync functions](./docs/02-sync/02-functions.md) · [Slack](./docs/02-sync/03-slack.md) · [GitHub](./docs/02-sync/04-github.md) · [Linear](./docs/02-sync/07-linear.md) · [Custom providers](./docs/02-sync/06-providers.md)
|
|
153
|
+
- **Guides:** [Coding agents](./docs/03-guides/01-coding-agents.md) · [Inspector](./docs/03-guides/02-inspector.md) · [CI and deploys](./docs/03-guides/03-ci.md) · [A triage agent](./docs/03-guides/04-triage.md) · [Agent Factory](./docs/03-guides/05-agent-factory.md) · [Sandboxed agents](./docs/03-guides/06-sandboxed-agents.md) · [Build a UI](./docs/03-guides/07-build-a-ui.md) · [A local board on a tailnet](./docs/03-guides/08-tailnet.md)
|
|
154
|
+
- **Reference:** [CLI](./docs/04-reference/01-cli.md) · [Board handle](./docs/04-reference/02-board.md) · [HTTP API](./docs/04-reference/03-http.md) · [Conformance](./docs/04-reference/05-conformance.md)
|
|
149
155
|
|
|
150
156
|
## License
|
|
151
157
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as CAN_MAX, s as ChannelPath } from "./schemas-CUSTEFIy.mjs";
|
|
2
|
-
import { o as forbidden } from "./errors-
|
|
2
|
+
import { o as forbidden } from "./errors-DbCKqGXp.mjs";
|
|
3
3
|
//#region src/server/access.ts
|
|
4
4
|
/**
|
|
5
5
|
* What a principal may do in a channel. `read` covers messages, threads,
|
package/dist/access.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as GrantFacts, a as DEFAULT_CAN, b as grantAccess, c as IssuerConfig, d as Principal, f as PrincipalKind, g as GrantExplanation, h as DecidingGrant, i as Claims, l as Known, m as Caller, n as AuthenticateContext, r as CallerRequest, s as HostPrincipal, t as Authenticate, u as OidcTokensOptions, v as GrantSource, y as explainGrants } from "./auth-
|
|
1
|
+
import { Cn as ChannelPattern, Dn as GrantChangeRefusal, En as GrantChange, Fn as compileAccess, Hn as CAN_MAX, In as parseCan, Ln as union, Mn as Permission, On as GrantShape, Pn as checkGrantChange, Rn as Actor, Sn as Can, Tn as Grant, Vn as Author, bn as Access, jn as PERMISSIONS, kn as InvalidCan, wn as FULL_ACCESS, xn as AccessSummary } from "./routes-ChGBn0K3.mjs";
|
|
2
|
+
import { _ as GrantFacts, a as DEFAULT_CAN, b as grantAccess, c as IssuerConfig, d as Principal, f as PrincipalKind, g as GrantExplanation, h as DecidingGrant, i as Claims, l as Known, m as Caller, n as AuthenticateContext, r as CallerRequest, s as HostPrincipal, t as Authenticate, u as OidcTokensOptions, v as GrantSource, y as explainGrants } from "./auth-C4VxPLYz.mjs";
|
|
3
3
|
//#region src/server/tokens.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The OIDC tokens made out to this board: a request's bearer token, from Vercel (people and
|
package/dist/access.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as CAN_MAX } from "./schemas-CUSTEFIy.mjs";
|
|
2
|
-
import { c as compileAccess, f as union, n as InvalidCan, o as checkGrantChange, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-
|
|
3
|
-
import { D as
|
|
4
|
-
import { a as resolveActor } from "./actors-
|
|
5
|
-
import { t as oidcTokens } from "./tokens-
|
|
2
|
+
import { c as compileAccess, f as union, n as InvalidCan, o as checkGrantChange, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-DdojoPZm.mjs";
|
|
3
|
+
import { D as explainGrants, O as grantAccess, t as DEFAULT_CAN } from "./auth-zPqFJocD.mjs";
|
|
4
|
+
import { a as resolveActor } from "./actors-CDkNgWUL.mjs";
|
|
5
|
+
import { t as oidcTokens } from "./tokens-C-T0B1uF.mjs";
|
|
6
6
|
export { CAN_MAX, DEFAULT_CAN, FULL_ACCESS, InvalidCan, PERMISSIONS, checkGrantChange, compileAccess, explainGrants, grantAccess, oidcTokens, parseCan, resolveActor, union };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as parseProfileHeader } from "./profile-header-
|
|
1
|
+
import { r as parseProfileHeader } from "./profile-header-O8wC8yk8.mjs";
|
|
2
2
|
import { P as toStorable } from "./schemas-CUSTEFIy.mjs";
|
|
3
|
-
import { r as badRequest } from "./errors-
|
|
4
|
-
import { u as parseCan } from "./access-
|
|
3
|
+
import { r as badRequest } from "./errors-DbCKqGXp.mjs";
|
|
4
|
+
import { u as parseCan } from "./access-DdojoPZm.mjs";
|
|
5
5
|
import { t as own } from "./own-OwgPWdmh.mjs";
|
|
6
6
|
//#region src/server/actors.ts
|
|
7
7
|
/** Agents whose marks the board serves at `/avatars/<name>`, for a caller to pass as an avatar. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { An as Level, Mn as Permission, Nn as WrittenCan, Sn as Can, bn as Access } from "./routes-ChGBn0K3.mjs";
|
|
2
2
|
import { JWTVerifyGetKey } from "jose";
|
|
3
3
|
//#region src/server/grants.d.ts
|
|
4
4
|
/** Who asks, as a verified token says, in the terms grants name them by. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as unauthorized, o as forbidden, r as badRequest, t as HttpError } from "./errors-
|
|
2
|
-
import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-
|
|
1
|
+
import { d as unauthorized, o as forbidden, r as badRequest, t as HttpError } from "./errors-DbCKqGXp.mjs";
|
|
2
|
+
import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-DdojoPZm.mjs";
|
|
3
3
|
//#region src/server/grants.ts
|
|
4
4
|
/**
|
|
5
5
|
* How close `principal` is to the caller, or null when it doesn't name it: `principal` for its own
|
|
@@ -132,6 +132,13 @@ const issuerName = (iss) => {
|
|
|
132
132
|
const url = new URL(iss);
|
|
133
133
|
return `${url.host}${url.pathname.replace(/\/+$/, "")}`.replace(/[%:]/g, (char) => char === "%" ? "%25" : "%3A");
|
|
134
134
|
};
|
|
135
|
+
/**
|
|
136
|
+
* Whether a token's `sub` can be in a principal's ID. A `+` starts a profile in an actor's ID
|
|
137
|
+
* (`<principal>+claude`), and a `]` or a space ends a mention of one (`@[actor-id]`), so a `sub`
|
|
138
|
+
* with one would read as another workflow's profile. Its token is refused, as a host verifier's
|
|
139
|
+
* principal with one is: an ID is never rewritten, since messages already carry the old ones.
|
|
140
|
+
*/
|
|
141
|
+
const subFits = (sub) => !/[\s+\]]/.test(sub);
|
|
135
142
|
/** OIDC issuers to trust, checked: two that name the same principals can't both be. */
|
|
136
143
|
function trustedIssuers(issuers) {
|
|
137
144
|
const named = /* @__PURE__ */ new Map();
|
|
@@ -606,4 +613,4 @@ function hostPrincipal(value) {
|
|
|
606
613
|
};
|
|
607
614
|
}
|
|
608
615
|
//#endregion
|
|
609
|
-
export {
|
|
616
|
+
export { verifiedIssuers as C, explainGrants as D, wroteAs as E, grantAccess as O, trustedIssuers as S, workflowPath as T, markVerified as _, TOKENS as a, removes as b, checkCan as c, createAuthority as d, fromTokens as f, joined as g, issuerName as h, LOGINS as i, checkGrant as l, hostPrincipal as m, GITHUB_ISSUER as n, VERCEL_ISSUER as o, grantIssuers as p, LOGIN as r, authenticates as s, DEFAULT_CAN as t, checkPrincipal as u, namesByLogin as v, verifiesTokens as w, subFits as x, privateHost as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-
|
|
3
|
-
import { S as Mentioned, f as ProfileOption, i as ErrorOrigin, t as BoardClient } from "./client-
|
|
4
|
-
import { m as SyncProvider } from "./provider-
|
|
1
|
+
import { A as Discovery, An as Level, Bn as Attachment, C as CreateGrantsBody, Ct as RevokeGrantBody, E as CreateTasksBody, Ft as SourceJoin, Gn as ExternalEvent, Gt as SyncFindView, Ht as SyncCopiesView, I as ExplainQuery, It as SourceJoinBody, J as InboxEntry, Jt as SyncReceiptBody, Kt as SyncImportBody, L as Explanation, M as EditBody, Mn as Permission, Mt as SchemaBody, N as EventsPage, O as CreatedTasksQuery, Ot as ScheduleView, P as EventsQuery, Pt as SchemaView, Q as InboxQuery, R as FailTaskBody, Rn as Actor, Rt as SourceRead, S as CreateChannelBody, Sn as Can, Tt as ScheduleBody, Un as Labels, V as GrantBody, Vn as Author, Vt as SyncCopiesQuery, W as GrantView, Wt as SyncFindQuery, X as InboxNextQuery, Xt as SyncThreadView, Y as InboxItem, Z as InboxPushBody, Zt as SyncedView, _n as UploadStartBody, _t as RegisterBody, a as BlockTaskBody, at as MatchesQuery, b as ClaimTaskBody, bn as Access, bt as ReleaseTaskBody, ct as MessagesPage, d as CancelTaskBody, dn as ThreadsQuery, en as TaskClaim, f as ChannelMessagesQuery, g as ChannelsQuery, h as ChannelsPage, hn as UpdateGrantBody, ht as ReactBody, i as AssignTaskBody, in as TasksQuery, it as MatchView, k as DeleteBody, kt as SchedulesQuery, ln as ThreadView, m as ChannelView, n as ActorView, on as ThreadQuery, ot as Me, pn as TypingBody, q as InboxAckBody, rn as TasksPage, rt as LinkedQuery, s as BoardEventView, st as MessageView, t as AckBody, tn as TaskNeedsBody, tt as LabelBody, un as ThreadsPage, ut as PostBody, v as ClaimReadyTaskBody, vn as UploadTicket, w as CreateTaskBody, x as CompleteTaskBody, xt as RenewTaskBody, yt as RegistrationView, zt as SourceReadQuery } from "./routes-ChGBn0K3.mjs";
|
|
2
|
+
import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-C4VxPLYz.mjs";
|
|
3
|
+
import { S as Mentioned, f as ProfileOption, i as ErrorOrigin, t as BoardClient } from "./client-C4-r10SA.mjs";
|
|
4
|
+
import { m as SyncProvider } from "./provider-CGicSMdu.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/server/sandbox.d.ts
|
|
7
7
|
/** How a rule matches a value: a regular expression (RE2), or the value exactly. */
|
|
@@ -131,11 +131,8 @@ type Protocol = {
|
|
|
131
131
|
output: Me;
|
|
132
132
|
};
|
|
133
133
|
channels: {
|
|
134
|
-
input:
|
|
135
|
-
output:
|
|
136
|
-
channels: ChannelView[];
|
|
137
|
-
cursor: string;
|
|
138
|
-
};
|
|
134
|
+
input: Input<typeof ChannelsQuery>;
|
|
135
|
+
output: ChannelsPage;
|
|
139
136
|
};
|
|
140
137
|
/** `created` is false for a channel that was there already, made by a post or another create. */
|
|
141
138
|
createChannel: {
|
|
@@ -152,8 +149,9 @@ type Protocol = {
|
|
|
152
149
|
cursor: string;
|
|
153
150
|
};
|
|
154
151
|
};
|
|
155
|
-
messages:
|
|
156
|
-
|
|
152
|
+
/** One channel's messages across its threads, oldest first: the newest `limit`, or those after one of the channel's cursors. */
|
|
153
|
+
channelMessages: {
|
|
154
|
+
input: Input<typeof ChannelMessagesQuery>;
|
|
157
155
|
output: MessagesPage;
|
|
158
156
|
};
|
|
159
157
|
threads: {
|
|
@@ -161,7 +159,7 @@ type Protocol = {
|
|
|
161
159
|
output: ThreadsPage;
|
|
162
160
|
};
|
|
163
161
|
message: {
|
|
164
|
-
input: Id
|
|
162
|
+
input: Id & Input<typeof ThreadQuery>;
|
|
165
163
|
output: ThreadView;
|
|
166
164
|
};
|
|
167
165
|
/** `mentions` says what became of each `@handle` the text typed, when it typed any: see `Mentioned`. A write that takes a text answers it the same way. */
|
package/dist/backend-local.d.mts
CHANGED
package/dist/backend-local.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as local } from "./local-
|
|
1
|
+
import { t as local } from "./local-DTzfnJAf.mjs";
|
|
2
2
|
export { local };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as SyncRoot, E as ProviderEvent, _ as SyncFn, a as ProviderOptions, c as Receive, f as ResolvedTarget, i as ProviderFile, l as ReceivedEvent, m as SyncProvider, n as FileDelivery, o as ProviderPost, r as ProviderDelivery, t as FetchedLink } from "./provider-
|
|
1
|
+
import { Ft as SourceJoin, Kn as ExternalFile, Rn as Actor, Rt as SourceRead, Wn as ExternalAuthor, qn as ExternalLink } from "./routes-ChGBn0K3.mjs";
|
|
2
|
+
import { A as SyncRoot, E as ProviderEvent, _ as SyncFn, a as ProviderOptions, c as Receive, f as ResolvedTarget, i as ProviderFile, l as ReceivedEvent, m as SyncProvider, n as FileDelivery, o as ProviderPost, r as ProviderDelivery, t as FetchedLink } from "./provider-CGicSMdu.mjs";
|
|
3
3
|
import { Adapter, Author, FileUpload, Message, ReactionEvent, StateAdapter } from "chat";
|
|
4
4
|
//#region src/sync/chat-provider.d.ts
|
|
5
5
|
type ChatInput = {
|
package/dist/cli-commands.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as OptionName, c as globalOptions, d as options, f as usage, i as CliOption, l as groups, n as CliCommand, o as commands, r as CliExample, s as filters, t as CliArgument, u as option } from "./commands-
|
|
1
|
+
import { a as OptionName, c as globalOptions, d as options, f as usage, i as CliOption, l as groups, n as CliCommand, o as commands, r as CliExample, s as filters, t as CliArgument, u as option } from "./commands-B6pgzwTI.mjs";
|
|
2
2
|
export { CliArgument, CliCommand, CliExample, CliOption, OptionName, commands, filters, globalOptions, groups, option, options, usage };
|
package/dist/cli-commands.mjs
CHANGED
|
@@ -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-
|
|
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-B_gbi2sU.mjs";
|
|
2
2
|
export { commands, filters, globalOptions, groups, option, options, usage };
|
package/dist/cli-embedded.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as Board } from "./backend-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { f as Board } from "./backend-Da_YEltI.mjs";
|
|
2
|
+
import "./index-BTuTaBaK.mjs";
|
|
3
3
|
//#region src/cli/failure.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* What kind of failure it is, which fixes the exit code: 2 for `usage` and `missing_input`, 130
|
|
@@ -90,8 +90,13 @@ export declare function createApp(options: {
|
|
|
90
90
|
export type VbOptions = {
|
|
91
91
|
/** A file's bytes, for `--attach`; null when there's no such file. */
|
|
92
92
|
readFile?: (path: string) => Promise<Uint8Array | null> | PromiseLike<Uint8Array | null>;
|
|
93
|
-
/**
|
|
94
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Saves a file, for `download`. With `exclusive`, the name came from the attachment, so
|
|
95
|
+
* throw an error whose `code` is `EEXIST` rather than replace a file that's there.
|
|
96
|
+
*/
|
|
97
|
+
writeFile?: (path: string, data: Uint8Array, options?: {
|
|
98
|
+
exclusive?: boolean;
|
|
99
|
+
}) => Promise<void> | PromiseLike<void>;
|
|
95
100
|
/** The text `-` reads, as stdin would hold it. */
|
|
96
101
|
stdin?: string;
|
|
97
102
|
/**
|
package/dist/cli-embedded.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as stoppedBy } from "./exports-
|
|
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-
|
|
1
|
+
import { o as stoppedBy } from "./exports-BFeX9HNn.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-Dq6yQxNB.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
|
|
@@ -88,7 +88,7 @@ function vb(board, argv, options = {}) {
|
|
|
88
88
|
write: (chunk) => void (stdout += typeof chunk === "string" ? chunk : decoder.decode(chunk, { stream: true })),
|
|
89
89
|
error: (chunk) => void (stderr += chunk),
|
|
90
90
|
readFile: options.readFile ? async (path) => options.readFile(path) : lacking("--attach and --file can't read files", "readFile"),
|
|
91
|
-
writeFile: options.writeFile ? async (path, data) => options.writeFile(path, data) : lacking("download can't save files", "writeFile"),
|
|
91
|
+
writeFile: options.writeFile ? async (path, data, writeOptions) => options.writeFile(path, data, writeOptions) : lacking("download can't save files", "writeFile"),
|
|
92
92
|
stdin: options.stdin !== void 0 ? async () => options.stdin : lacking("- can't read stdin", "stdin"),
|
|
93
93
|
...options.signal ? { signal: options.signal } : {}
|
|
94
94
|
}),
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as option } from "./commands-
|
|
3
|
-
import { g as projectDir } from "./server-
|
|
4
|
-
import { r as main } from "./main-
|
|
5
|
-
import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-
|
|
2
|
+
import { a as option } from "./commands-B_gbi2sU.mjs";
|
|
3
|
+
import { g as projectDir } from "./server-DbYDp2Lr.mjs";
|
|
4
|
+
import { r as main } from "./main-Dq6yQxNB.mjs";
|
|
5
|
+
import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-fOA9UNPD.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-
|
|
40
|
+
return (await import("./inspect-Bd_mBGFt.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-
|
|
84
|
+
const { serveLocal } = await import("./serve-Bdwok1A9.mjs");
|
|
85
85
|
const local = await serveLocal({
|
|
86
86
|
dir: flags.dir ?? join(root, ".board"),
|
|
87
87
|
hosts,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as Discovery, At as SchedulesQueryInput, Bn as Attachment, Ft as SourceJoin, G as GrantWriteOptions, Gt as SyncFindView, J as InboxEntry, L as Explanation, N as EventsPage, Nt as SchemaInput, Ot as ScheduleView, Pt as SchemaView, Rn as Actor, Rt as SourceRead, U as GrantInput, Ut as SyncFindInput, W as GrantView, Xt as SyncThreadView, Y as InboxItem, Yt as SyncReceiptInput, Zt as SyncedView, _ as ChannelsQueryInput, an as TasksQueryInput, ct as MessagesPage, en as TaskClaim, fn as ThreadsQueryInput, gn as UpdateGrantInput, it as MatchView, ln as ThreadView, m as ChannelView, n as ActorView, ot as Me, p as ChannelMessagesQueryInput, qt as SyncImportInput, rn as TasksPage, s as BoardEventView, sn as ThreadQueryInput, st as MessageView, un as ThreadsPage, vt as RegisterInput, yt as RegistrationView, z as FiltersInput, zn as ExternalCopy } from "./routes-ChGBn0K3.mjs";
|
|
2
2
|
//#region src/contract/mentions.d.ts
|
|
3
3
|
/** An actor as a write's answer names them. */
|
|
4
4
|
type MentionedActor = {
|
|
@@ -212,7 +212,15 @@ declare function createBoardClient(options: ClientOptions): {
|
|
|
212
212
|
}) => Promise<Response>;
|
|
213
213
|
discovery: () => Promise<Discovery>;
|
|
214
214
|
me: () => Promise<Me>;
|
|
215
|
-
|
|
215
|
+
/**
|
|
216
|
+
* A page of the board's channels: `prefix` keeps the ones whose path starts with it (`dev/`), `limit` is how many
|
|
217
|
+
* (100 unless it says, 500 at most), and `after` takes a page's `next`, which is null on the last.
|
|
218
|
+
*/
|
|
219
|
+
channels: (query?: ChannelsQueryInput) => Promise<{
|
|
220
|
+
next: string | null;
|
|
221
|
+
channels: ChannelView[];
|
|
222
|
+
cursor: string;
|
|
223
|
+
}>;
|
|
216
224
|
/**
|
|
217
225
|
* Makes a channel before anything posts to it, as a first post would. Needs `read` and `post`
|
|
218
226
|
* there. `created` is false when it was there already; it's left as it is.
|
|
@@ -240,8 +248,19 @@ declare function createBoardClient(options: ClientOptions): {
|
|
|
240
248
|
grants?: GrantView[];
|
|
241
249
|
}>;
|
|
242
250
|
actors: () => Promise<(Actor & Pick<ActorView, "verified">)[]>;
|
|
243
|
-
|
|
244
|
-
|
|
251
|
+
/**
|
|
252
|
+
* One channel, by its whole name: a board lists messages a channel at a time, never across channels. Its
|
|
253
|
+
* `messages()` are the channel's across its threads, oldest first: the newest `limit` (50 without one), or with
|
|
254
|
+
* `after`, a cursor a read of this channel answered, the ones posted since.
|
|
255
|
+
*/
|
|
256
|
+
channel: (name: string) => {
|
|
257
|
+
messages: (query?: Omit<ChannelMessagesQueryInput, 'channel'>) => Promise<MessagesPage>;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* A thread: its root and its replies. `after`, one of its messages, answers the replies after it, and `limit` that
|
|
261
|
+
* many of them: with `after` the first after it, to read on from, and without, the newest.
|
|
262
|
+
*/
|
|
263
|
+
thread: (id: string, range?: ThreadQueryInput) => Promise<ThreadView>;
|
|
245
264
|
/** Your own post with the client ID you gave it, as posting it answered: 404 `post_not_found` when there's none. */
|
|
246
265
|
posted: (id: string) => Promise<MessageView>;
|
|
247
266
|
/** Threads with a matching message, one summary each (root, reply count, latest reply), by latest activity. `limit` counts threads; `before` takes a page's `older`. */
|
|
@@ -492,6 +511,7 @@ declare function createBoardClient(options: ClientOptions): {
|
|
|
492
511
|
after?: string;
|
|
493
512
|
wait?: number;
|
|
494
513
|
all?: boolean;
|
|
514
|
+
last?: number;
|
|
495
515
|
}, signal?: AbortSignal) => Promise<EventsPage>;
|
|
496
516
|
/** A platform's write, as its platform author: idempotent per platform event for a post, found from its origin otherwise. */
|
|
497
517
|
syncImport: (body: SyncImportInput) => Promise<{
|
|
@@ -534,6 +554,7 @@ declare function createBoardClient(options: ClientOptions): {
|
|
|
534
554
|
events(query?: Filters & {
|
|
535
555
|
after?: string;
|
|
536
556
|
all?: boolean;
|
|
557
|
+
last?: number;
|
|
537
558
|
}, opts?: EventsOptions): AsyncGenerator<BoardEventView>;
|
|
538
559
|
/** The next matching event after `after` (default: now), or null on timeout. */
|
|
539
560
|
wait(query?: Filters & {
|
|
@@ -143,6 +143,16 @@ declare const options: {
|
|
|
143
143
|
readonly value: 'N';
|
|
144
144
|
readonly description: 'how many';
|
|
145
145
|
};
|
|
146
|
+
readonly last: {
|
|
147
|
+
readonly type: 'string';
|
|
148
|
+
readonly value: 'N';
|
|
149
|
+
readonly description: "start with the feed's newest N events (1 to 100)";
|
|
150
|
+
};
|
|
151
|
+
readonly before: {
|
|
152
|
+
readonly type: 'string';
|
|
153
|
+
readonly value: 'older';
|
|
154
|
+
readonly description: "a channel's threads before a page: the older its read printed";
|
|
155
|
+
};
|
|
146
156
|
readonly 'idempotency-key': {
|
|
147
157
|
readonly type: 'string';
|
|
148
158
|
readonly value: 'key';
|