@vercel/board 0.32.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-K8dY1nBY.d.mts → auth-D6z3rMNj.d.mts} +7 -93
- package/dist/{auth-8pRZnF1M.mjs → auth-r-_PeZyw.mjs} +32 -148
- package/dist/{backend-DxE9wGKm.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 +1 -1
- package/dist/cli.mjs +6 -6
- package/dist/{commands-CpyPV_tk.d.mts → commands-BOBQHVqM.d.mts} +9 -0
- package/dist/{commands-DsnQKTdB.mjs → commands-CHoMl06v.mjs} +12 -1
- package/dist/{conformance-3RBKxwbp.mjs → conformance-qKmGLTAT.mjs} +5 -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-CcYDo9Hb.mjs → main-CQpCZJFw.mjs} +91 -23
- 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-Bplieh0C.mjs → serve-D8_W4UN6.mjs} +33 -24
- package/dist/{node-BgeGcwX0.mjs → server-BiIUXWbU.mjs} +419 -6
- package/dist/{serving-Y7s7VDjB.mjs → serving-D7rcUtSC.mjs} +1 -1
- package/dist/{sql-E1K5g_ih.mjs → sql-BQzKUqQt.mjs} +349 -114
- package/dist/sqlite-DCtZFEVm.mjs +30 -0
- package/dist/{sqlite-db-CzcD_FW8.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-CurCzwhe.mjs → targets-CknPGGVi.mjs} +40 -10
- package/dist/{tokens-C7kYyrAG.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 +15 -14
- 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 +104 -22
- 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-DiDc77Uf.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-CaN06CaD.d.mts +0 -672
- package/dist/backend-http-CoaCghuJ.mjs +0 -18
- package/dist/backend-http-l5A8UmL-.mjs +0 -585
- 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-BE65okBC.mjs +0 -86
- package/dist/backend-vercel-CVxoTNF2.mjs +0 -1744
- package/dist/backend-vercel-jg-6PAgD.d.mts +0 -674
- 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-BnUZuRm9.mjs +0 -1389
- package/dist/exports-u5mApVvn.d.mts +0 -5
- package/dist/files-SniSmeEr.mjs +0 -47
- package/dist/folds-DsWfIftc.mjs +0 -208
- package/dist/index-UXpTPWNc.d.mts +0 -11
- package/dist/index.default-Dp8gexln.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-4Vl7_uy5.mjs +0 -124
- package/dist/provider-gynDUoyW.d.mts +0 -665
- package/dist/redis-tables-BFRj_SEJ.mjs +0 -3895
- package/dist/reducer-Bswr11ar-P324o9vn.mjs +0 -74
- package/dist/reducer-CYPHsSmd-BXjGiptm.d.mts +0 -170
- package/dist/reducers-DQVSP3kk.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-DX7mM6nm-D7N_7bug.mjs +0 -3611
- package/dist/server-wIpAEjpX.mjs +0 -17
- 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
package/dist/backend-a2.mjs
DELETED
|
@@ -1,672 +0,0 @@
|
|
|
1
|
-
import { t as Actor, x as Attachment } from "./folds-DLUzfibJ.mjs";
|
|
2
|
-
import { At as ThreadsPage, B as MatchView, C as EventsPage, Dt as SyncedView, Et as SyncThreadView, Ft as TokenView, H as Me, M as InboxItem, U as MessageView, W as MessagesPage, dt as SourceJoin, j as InboxEntry, k as GrantView, kt as ThreadView, mt as SourceRead, o as ProfileOption, st as ScheduleView, tt as RegistrationView, v as ChannelView, vt as SyncCopiesView, x as Discovery, xt as SyncFindView, zt as UploadTicket } from "./client-COfYrgfV.mjs";
|
|
3
|
-
import { i as Caller, n as BackendRoute, r as BoardBinding } from "./backend-DxE9wGKm.mjs";
|
|
4
|
-
//#region src/server/backend-http.d.ts
|
|
5
|
-
type HttpOptions = {
|
|
6
|
-
/**
|
|
7
|
-
* How requests reach the board, with the credentials it recognizes. In Node it defaults to what
|
|
8
|
-
* `vb` uses: a token from `BOARD_TOKEN`, `vb serve`'s, GitHub Actions, Vercel, or `vercel login`,
|
|
9
|
-
* through Deployment Protection. In a browser, `fetch`, sending the page's own session (a cookie,
|
|
10
|
-
* say), which the board's `authenticate` recognizes.
|
|
11
|
-
*/
|
|
12
|
-
fetch?: typeof fetch;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* What finds a board and reaches it, in the Node build: the environment, its files, and
|
|
16
|
-
* `vercel login`. A browser has none.
|
|
17
|
-
*/
|
|
18
|
-
type Environment = {
|
|
19
|
-
/** The board the environment points at. Throws `no_board` when it points at none. */
|
|
20
|
-
url(): string;
|
|
21
|
-
/** The fetch for the board at `url` when none is given: the credentials `vb` uses, through Deployment Protection. */
|
|
22
|
-
fetch(url: string): typeof fetch;
|
|
23
|
-
/** The profile the environment picks (`BOARD_AS`, or the coding agent it runs in), and that agent's session. */
|
|
24
|
-
profile(): {
|
|
25
|
-
profile: ProfileOption;
|
|
26
|
-
session: string | null;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Another board that speaks the protocol, at `url` (in Node, the one the environment points at
|
|
31
|
-
* by default): this board keeps nothing, and this deployment reads and writes that one as itself.
|
|
32
|
-
* Its watchers' tails are registered there. The remote wakes it when one matches, with nothing in
|
|
33
|
-
* the wake-up but a hash, and it pulls what matched with its own credentials, runs it, and acks
|
|
34
|
-
* it. When it can't be woken (no https URL of its own: a dev server, say), it pulls on its own.
|
|
35
|
-
*/
|
|
36
|
-
declare function createHttp(url: string | undefined, options: HttpOptions, environment: Environment | null): {
|
|
37
|
-
discovery: (caller: Caller, input: {
|
|
38
|
-
[x: string]: never;
|
|
39
|
-
}, signal: AbortSignal) => Promise<Discovery>;
|
|
40
|
-
me: (caller: Caller, input: {
|
|
41
|
-
[x: string]: never;
|
|
42
|
-
}, signal: AbortSignal) => Promise<Me>;
|
|
43
|
-
channels: (caller: Caller, input: {
|
|
44
|
-
[x: string]: never;
|
|
45
|
-
}, signal: AbortSignal) => Promise<{
|
|
46
|
-
channels: ChannelView[];
|
|
47
|
-
cursor: string;
|
|
48
|
-
}>;
|
|
49
|
-
createChannel: (caller: Caller, input: {
|
|
50
|
-
path: string;
|
|
51
|
-
}, signal: AbortSignal) => Promise<{
|
|
52
|
-
channel: ChannelView;
|
|
53
|
-
created: boolean;
|
|
54
|
-
}>;
|
|
55
|
-
actors: (caller: Caller, input: {
|
|
56
|
-
[x: string]: never;
|
|
57
|
-
}, signal: AbortSignal) => Promise<{
|
|
58
|
-
actors: Actor[];
|
|
59
|
-
cursor: string;
|
|
60
|
-
}>;
|
|
61
|
-
messages: (caller: Caller, input: {
|
|
62
|
-
channel?: string | undefined;
|
|
63
|
-
re?: string | undefined;
|
|
64
|
-
by?: string | undefined;
|
|
65
|
-
mentions?: string | undefined;
|
|
66
|
-
label?: (readonly [string, null] | readonly [string, string[]])[] | undefined;
|
|
67
|
-
from?: string | undefined;
|
|
68
|
-
text?: string | undefined;
|
|
69
|
-
after?: string | undefined;
|
|
70
|
-
before?: string | undefined;
|
|
71
|
-
limit?: number | undefined;
|
|
72
|
-
}, signal: AbortSignal) => Promise<MessagesPage>;
|
|
73
|
-
threads: (caller: Caller, input: {
|
|
74
|
-
channel?: string | undefined;
|
|
75
|
-
re?: string | undefined;
|
|
76
|
-
by?: string | undefined;
|
|
77
|
-
mentions?: string | undefined;
|
|
78
|
-
label?: (readonly [string, null] | readonly [string, string[]])[] | undefined;
|
|
79
|
-
from?: string | undefined;
|
|
80
|
-
text?: string | undefined;
|
|
81
|
-
after?: string | undefined;
|
|
82
|
-
limit?: number | undefined;
|
|
83
|
-
}, signal: AbortSignal) => Promise<ThreadsPage>;
|
|
84
|
-
message: (caller: Caller, input: {
|
|
85
|
-
id: string;
|
|
86
|
-
}, signal: AbortSignal) => Promise<ThreadView>;
|
|
87
|
-
post: (caller: Caller, input: {
|
|
88
|
-
channel?: string | undefined;
|
|
89
|
-
re?: string | undefined;
|
|
90
|
-
text: string;
|
|
91
|
-
labels?: Record<string, string> | undefined;
|
|
92
|
-
noSync?: boolean | undefined;
|
|
93
|
-
sync?: (string | {
|
|
94
|
-
target: string;
|
|
95
|
-
kind: "channel" | "thread";
|
|
96
|
-
})[] | undefined;
|
|
97
|
-
id?: string | undefined;
|
|
98
|
-
attachments?: string[] | undefined;
|
|
99
|
-
after?: string | undefined;
|
|
100
|
-
}, signal: AbortSignal) => Promise<{
|
|
101
|
-
message: MessageView;
|
|
102
|
-
unknownMentions?: string[];
|
|
103
|
-
}>;
|
|
104
|
-
posted: (caller: Caller, input: {
|
|
105
|
-
id: string;
|
|
106
|
-
}, signal: AbortSignal) => Promise<{
|
|
107
|
-
message: MessageView;
|
|
108
|
-
}>;
|
|
109
|
-
edit: (caller: Caller, input: {
|
|
110
|
-
id: string;
|
|
111
|
-
} & {
|
|
112
|
-
text: string;
|
|
113
|
-
revision?: number | undefined;
|
|
114
|
-
}, signal: AbortSignal) => Promise<{
|
|
115
|
-
ok: true;
|
|
116
|
-
unknownMentions?: string[];
|
|
117
|
-
}>;
|
|
118
|
-
delete: (caller: Caller, input: {
|
|
119
|
-
id: string;
|
|
120
|
-
} & {
|
|
121
|
-
revision?: number | undefined;
|
|
122
|
-
}, signal: AbortSignal) => Promise<{
|
|
123
|
-
ok: true;
|
|
124
|
-
}>;
|
|
125
|
-
react: (caller: Caller, input: {
|
|
126
|
-
id: string;
|
|
127
|
-
} & {
|
|
128
|
-
emoji: string;
|
|
129
|
-
remove?: boolean | undefined;
|
|
130
|
-
}, signal: AbortSignal) => Promise<{
|
|
131
|
-
ok: true;
|
|
132
|
-
}>;
|
|
133
|
-
label: (caller: Caller, input: {
|
|
134
|
-
id: string;
|
|
135
|
-
} & {
|
|
136
|
-
set?: Record<string, string> | undefined;
|
|
137
|
-
unset?: string[] | undefined;
|
|
138
|
-
if?: Record<string, string | null> | undefined;
|
|
139
|
-
}, signal: AbortSignal) => Promise<{
|
|
140
|
-
ok: true;
|
|
141
|
-
}>;
|
|
142
|
-
schedule: (caller: Caller, input: {
|
|
143
|
-
channel?: string | undefined;
|
|
144
|
-
re?: string | undefined;
|
|
145
|
-
text: string;
|
|
146
|
-
labels?: Record<string, string> | undefined;
|
|
147
|
-
noSync?: boolean | undefined;
|
|
148
|
-
attachments?: string[] | undefined;
|
|
149
|
-
in?: string | undefined;
|
|
150
|
-
at?: string | undefined;
|
|
151
|
-
every?: string | undefined;
|
|
152
|
-
until?: string | undefined;
|
|
153
|
-
for?: string | undefined;
|
|
154
|
-
times?: number | undefined;
|
|
155
|
-
}, signal: AbortSignal) => Promise<{
|
|
156
|
-
schedule: ScheduleView;
|
|
157
|
-
unknownMentions?: string[];
|
|
158
|
-
}>;
|
|
159
|
-
schedules: (caller: Caller, input: {
|
|
160
|
-
re?: string | undefined;
|
|
161
|
-
channel?: string | undefined;
|
|
162
|
-
by?: string | undefined;
|
|
163
|
-
all?: boolean | undefined;
|
|
164
|
-
}, signal: AbortSignal) => Promise<{
|
|
165
|
-
schedules: ScheduleView[];
|
|
166
|
-
}>;
|
|
167
|
-
cancelSchedule: (caller: Caller, input: {
|
|
168
|
-
id: string;
|
|
169
|
-
}, signal: AbortSignal) => Promise<{
|
|
170
|
-
schedule: ScheduleView;
|
|
171
|
-
canceled: boolean;
|
|
172
|
-
}>;
|
|
173
|
-
grants: (caller: Caller, input: {
|
|
174
|
-
[x: string]: never;
|
|
175
|
-
}, signal: AbortSignal) => Promise<{
|
|
176
|
-
grants: GrantView[];
|
|
177
|
-
}>;
|
|
178
|
-
createGrant: (caller: Caller, input: {
|
|
179
|
-
issuer: string;
|
|
180
|
-
claims: Record<string, string | string[]>;
|
|
181
|
-
can?: "all" | string[] | Record<string, "all" | string[]> | undefined;
|
|
182
|
-
}, signal: AbortSignal) => Promise<{
|
|
183
|
-
grant: GrantView;
|
|
184
|
-
created: boolean;
|
|
185
|
-
}>;
|
|
186
|
-
revokeGrant: (caller: Caller, input: {
|
|
187
|
-
id: string;
|
|
188
|
-
}, signal: AbortSignal) => Promise<{
|
|
189
|
-
revoked: boolean;
|
|
190
|
-
}>;
|
|
191
|
-
tokens: (caller: Caller, input: {
|
|
192
|
-
[x: string]: never;
|
|
193
|
-
}, signal: AbortSignal) => Promise<{
|
|
194
|
-
tokens: TokenView[];
|
|
195
|
-
}>;
|
|
196
|
-
createToken: (caller: Caller, input: {
|
|
197
|
-
name: string;
|
|
198
|
-
can?: "all" | string[] | Record<string, "all" | string[]> | undefined;
|
|
199
|
-
profile?: string | undefined;
|
|
200
|
-
avatar?: string | undefined;
|
|
201
|
-
session?: string | undefined;
|
|
202
|
-
expires?: string | undefined;
|
|
203
|
-
}, signal: AbortSignal) => Promise<{
|
|
204
|
-
token: TokenView;
|
|
205
|
-
secret: string;
|
|
206
|
-
}>;
|
|
207
|
-
revokeToken: (caller: Caller, input: {
|
|
208
|
-
id: string;
|
|
209
|
-
}, signal: AbortSignal) => Promise<{
|
|
210
|
-
revoked: boolean;
|
|
211
|
-
}>;
|
|
212
|
-
upload: (caller: Caller, input: {
|
|
213
|
-
data: Uint8Array;
|
|
214
|
-
name: string | null;
|
|
215
|
-
type: string | null;
|
|
216
|
-
}, signal: AbortSignal) => Promise<{
|
|
217
|
-
attachment: Attachment;
|
|
218
|
-
}>;
|
|
219
|
-
attachment: (caller: Caller, input: {
|
|
220
|
-
id: string;
|
|
221
|
-
}, signal: AbortSignal) => Promise<{
|
|
222
|
-
attachment: Attachment;
|
|
223
|
-
data: Uint8Array | ReadableStream<Uint8Array>;
|
|
224
|
-
}>;
|
|
225
|
-
uploadStart: (caller: Caller, input: {
|
|
226
|
-
name?: string | null | undefined;
|
|
227
|
-
type?: string | null | undefined;
|
|
228
|
-
size: number;
|
|
229
|
-
sha256?: string | undefined;
|
|
230
|
-
}, signal: AbortSignal) => Promise<UploadTicket>;
|
|
231
|
-
uploadFinish: (caller: Caller, input: {
|
|
232
|
-
id: string;
|
|
233
|
-
}, signal: AbortSignal) => Promise<{
|
|
234
|
-
attachment: Attachment;
|
|
235
|
-
}>;
|
|
236
|
-
watchers: (caller: Caller, input: {
|
|
237
|
-
[x: string]: never;
|
|
238
|
-
}, signal: AbortSignal) => Promise<{
|
|
239
|
-
watchers: RegistrationView[];
|
|
240
|
-
}>;
|
|
241
|
-
register: (caller: Caller, input: {
|
|
242
|
-
watch: Record<string, {
|
|
243
|
-
tail: string;
|
|
244
|
-
when: "enters" | "matches";
|
|
245
|
-
}>;
|
|
246
|
-
sync?: {
|
|
247
|
-
key: string;
|
|
248
|
-
platform: string;
|
|
249
|
-
}[] | undefined;
|
|
250
|
-
url?: string | null | undefined;
|
|
251
|
-
path?: null | undefined;
|
|
252
|
-
branch?: null | undefined;
|
|
253
|
-
} | {
|
|
254
|
-
watch: Record<string, {
|
|
255
|
-
tail: string;
|
|
256
|
-
when: "enters" | "matches";
|
|
257
|
-
}>;
|
|
258
|
-
sync?: {
|
|
259
|
-
key: string;
|
|
260
|
-
platform: string;
|
|
261
|
-
}[] | undefined;
|
|
262
|
-
url?: null | undefined;
|
|
263
|
-
path: string;
|
|
264
|
-
branch?: string | null | undefined;
|
|
265
|
-
}, signal: AbortSignal) => Promise<RegistrationView>;
|
|
266
|
-
matches: (caller: Caller, input: {
|
|
267
|
-
limit?: number | undefined;
|
|
268
|
-
wait?: number | undefined;
|
|
269
|
-
}, signal: AbortSignal) => Promise<{
|
|
270
|
-
matches: MatchView[];
|
|
271
|
-
}>;
|
|
272
|
-
ack: (caller: Caller, input: {
|
|
273
|
-
id: string;
|
|
274
|
-
} & {
|
|
275
|
-
lease: string;
|
|
276
|
-
error?: string | undefined;
|
|
277
|
-
skip?: boolean | undefined;
|
|
278
|
-
}, signal: AbortSignal) => Promise<{
|
|
279
|
-
ok: true;
|
|
280
|
-
}>;
|
|
281
|
-
events: (caller: Caller, input: {
|
|
282
|
-
channel?: string | undefined;
|
|
283
|
-
re?: string | undefined;
|
|
284
|
-
by?: string | undefined;
|
|
285
|
-
mentions?: string | undefined;
|
|
286
|
-
label?: (readonly [string, null] | readonly [string, string[]])[] | undefined;
|
|
287
|
-
from?: string | undefined;
|
|
288
|
-
text?: string | undefined;
|
|
289
|
-
after?: string | undefined;
|
|
290
|
-
wait?: number | undefined;
|
|
291
|
-
all?: boolean | undefined;
|
|
292
|
-
}, signal: AbortSignal) => Promise<EventsPage>;
|
|
293
|
-
typing: (caller: Caller, input: {
|
|
294
|
-
id: string;
|
|
295
|
-
} & {
|
|
296
|
-
status?: string | undefined;
|
|
297
|
-
}, signal: AbortSignal) => Promise<{
|
|
298
|
-
targets: string[];
|
|
299
|
-
}>;
|
|
300
|
-
readSource: (caller: Caller, input: {
|
|
301
|
-
key: string;
|
|
302
|
-
} & {
|
|
303
|
-
target: string;
|
|
304
|
-
limit?: number | undefined;
|
|
305
|
-
after?: string | undefined;
|
|
306
|
-
}, signal: AbortSignal) => Promise<SourceRead>;
|
|
307
|
-
joinSource: (caller: Caller, input: {
|
|
308
|
-
key: string;
|
|
309
|
-
} & {
|
|
310
|
-
target: string;
|
|
311
|
-
}, signal: AbortSignal) => Promise<SourceJoin>;
|
|
312
|
-
synced: (caller: Caller, input: {
|
|
313
|
-
id: string;
|
|
314
|
-
}, signal: AbortSignal) => Promise<SyncedView>;
|
|
315
|
-
linked: (caller: Caller, input: {
|
|
316
|
-
url: string;
|
|
317
|
-
}, signal: AbortSignal) => Promise<ThreadView>;
|
|
318
|
-
syncImport: (caller: Caller, input: {
|
|
319
|
-
author: {
|
|
320
|
-
id: string;
|
|
321
|
-
handle: string;
|
|
322
|
-
name: string;
|
|
323
|
-
isBot: boolean;
|
|
324
|
-
avatar: string | null;
|
|
325
|
-
};
|
|
326
|
-
from: string | null;
|
|
327
|
-
op: "post";
|
|
328
|
-
origin: {
|
|
329
|
-
channel?: string | undefined;
|
|
330
|
-
thread: string;
|
|
331
|
-
subthread: string | null;
|
|
332
|
-
message: string;
|
|
333
|
-
context: string | null;
|
|
334
|
-
} | null;
|
|
335
|
-
source?: {
|
|
336
|
-
key: string;
|
|
337
|
-
channel: string;
|
|
338
|
-
thread: string;
|
|
339
|
-
} | undefined;
|
|
340
|
-
channel?: string | undefined;
|
|
341
|
-
re?: string | undefined;
|
|
342
|
-
text: string;
|
|
343
|
-
labels?: Record<string, string> | undefined;
|
|
344
|
-
noSync?: boolean | undefined;
|
|
345
|
-
attachments?: string[] | undefined;
|
|
346
|
-
links?: {
|
|
347
|
-
url: string;
|
|
348
|
-
snapshot: {
|
|
349
|
-
author: string;
|
|
350
|
-
text: string;
|
|
351
|
-
createdAt: string | null;
|
|
352
|
-
files: {
|
|
353
|
-
name: string;
|
|
354
|
-
url: string | null;
|
|
355
|
-
}[];
|
|
356
|
-
} | null;
|
|
357
|
-
unavailable: string | null;
|
|
358
|
-
message: string | null;
|
|
359
|
-
}[] | undefined;
|
|
360
|
-
id?: string | undefined;
|
|
361
|
-
after?: string | undefined;
|
|
362
|
-
} | {
|
|
363
|
-
author: {
|
|
364
|
-
id: string;
|
|
365
|
-
handle: string;
|
|
366
|
-
name: string;
|
|
367
|
-
isBot: boolean;
|
|
368
|
-
avatar: string | null;
|
|
369
|
-
};
|
|
370
|
-
from: string | null;
|
|
371
|
-
origin?: {
|
|
372
|
-
thread: string;
|
|
373
|
-
message?: string | undefined;
|
|
374
|
-
} | undefined;
|
|
375
|
-
message?: string | undefined;
|
|
376
|
-
op: "edit";
|
|
377
|
-
text: string;
|
|
378
|
-
source?: {
|
|
379
|
-
key: string;
|
|
380
|
-
channel: string;
|
|
381
|
-
thread: string;
|
|
382
|
-
} | undefined;
|
|
383
|
-
revision?: number | undefined;
|
|
384
|
-
} | {
|
|
385
|
-
author: {
|
|
386
|
-
id: string;
|
|
387
|
-
handle: string;
|
|
388
|
-
name: string;
|
|
389
|
-
isBot: boolean;
|
|
390
|
-
avatar: string | null;
|
|
391
|
-
};
|
|
392
|
-
from: string | null;
|
|
393
|
-
origin?: {
|
|
394
|
-
thread: string;
|
|
395
|
-
message?: string | undefined;
|
|
396
|
-
} | undefined;
|
|
397
|
-
message?: string | undefined;
|
|
398
|
-
op: "delete";
|
|
399
|
-
revision?: number | undefined;
|
|
400
|
-
} | {
|
|
401
|
-
author: {
|
|
402
|
-
id: string;
|
|
403
|
-
handle: string;
|
|
404
|
-
name: string;
|
|
405
|
-
isBot: boolean;
|
|
406
|
-
avatar: string | null;
|
|
407
|
-
};
|
|
408
|
-
from: string | null;
|
|
409
|
-
origin?: {
|
|
410
|
-
thread: string;
|
|
411
|
-
message?: string | undefined;
|
|
412
|
-
} | undefined;
|
|
413
|
-
message?: string | undefined;
|
|
414
|
-
op: "react";
|
|
415
|
-
emoji: string;
|
|
416
|
-
remove?: boolean | undefined;
|
|
417
|
-
} | {
|
|
418
|
-
author: {
|
|
419
|
-
id: string;
|
|
420
|
-
handle: string;
|
|
421
|
-
name: string;
|
|
422
|
-
isBot: boolean;
|
|
423
|
-
avatar: string | null;
|
|
424
|
-
};
|
|
425
|
-
from: string | null;
|
|
426
|
-
origin?: {
|
|
427
|
-
thread: string;
|
|
428
|
-
message?: string | undefined;
|
|
429
|
-
} | undefined;
|
|
430
|
-
message?: string | undefined;
|
|
431
|
-
op: "labels";
|
|
432
|
-
set?: Record<string, string> | undefined;
|
|
433
|
-
unset?: string[] | undefined;
|
|
434
|
-
if?: Record<string, string | null> | undefined;
|
|
435
|
-
} | {
|
|
436
|
-
author: {
|
|
437
|
-
id: string;
|
|
438
|
-
handle: string;
|
|
439
|
-
name: string;
|
|
440
|
-
isBot: boolean;
|
|
441
|
-
avatar: string | null;
|
|
442
|
-
};
|
|
443
|
-
from: string | null;
|
|
444
|
-
origin?: {
|
|
445
|
-
thread: string;
|
|
446
|
-
message?: string | undefined;
|
|
447
|
-
} | undefined;
|
|
448
|
-
message?: string | undefined;
|
|
449
|
-
op: "links";
|
|
450
|
-
links: {
|
|
451
|
-
url: string;
|
|
452
|
-
snapshot: {
|
|
453
|
-
author: string;
|
|
454
|
-
text: string;
|
|
455
|
-
createdAt: string | null;
|
|
456
|
-
files: {
|
|
457
|
-
name: string;
|
|
458
|
-
url: string | null;
|
|
459
|
-
}[];
|
|
460
|
-
} | null;
|
|
461
|
-
unavailable: string | null;
|
|
462
|
-
message: string | null;
|
|
463
|
-
}[];
|
|
464
|
-
} | {
|
|
465
|
-
op: "seen";
|
|
466
|
-
author: {
|
|
467
|
-
id: string;
|
|
468
|
-
handle: string;
|
|
469
|
-
name: string;
|
|
470
|
-
isBot: boolean;
|
|
471
|
-
avatar: string | null;
|
|
472
|
-
};
|
|
473
|
-
}, signal: AbortSignal) => Promise<{
|
|
474
|
-
message: string | null;
|
|
475
|
-
dropped?: string[];
|
|
476
|
-
}>;
|
|
477
|
-
syncReceipt: (caller: Caller, input: {
|
|
478
|
-
kind: "message";
|
|
479
|
-
message: string;
|
|
480
|
-
target: string;
|
|
481
|
-
external: {
|
|
482
|
-
thread: string;
|
|
483
|
-
message: string;
|
|
484
|
-
};
|
|
485
|
-
files?: string[] | null | undefined;
|
|
486
|
-
} | {
|
|
487
|
-
kind: "files";
|
|
488
|
-
message: string;
|
|
489
|
-
target: string;
|
|
490
|
-
files: string[] | null;
|
|
491
|
-
} | {
|
|
492
|
-
kind: "failed";
|
|
493
|
-
message: string;
|
|
494
|
-
target: string;
|
|
495
|
-
error: string;
|
|
496
|
-
} | {
|
|
497
|
-
kind: "thread";
|
|
498
|
-
message: string;
|
|
499
|
-
target: string;
|
|
500
|
-
targetKind: "channel" | "thread";
|
|
501
|
-
cause: "config" | "request";
|
|
502
|
-
}, signal: AbortSignal) => Promise<{
|
|
503
|
-
ok: true;
|
|
504
|
-
attached?: boolean;
|
|
505
|
-
}>;
|
|
506
|
-
syncThread: (caller: Caller, input: {
|
|
507
|
-
thread: string;
|
|
508
|
-
}, signal: AbortSignal) => Promise<SyncThreadView>;
|
|
509
|
-
syncFind: (caller: Caller, input: {
|
|
510
|
-
post?: string | undefined;
|
|
511
|
-
thread?: string | undefined;
|
|
512
|
-
message?: string | undefined;
|
|
513
|
-
}, signal: AbortSignal) => Promise<SyncFindView>;
|
|
514
|
-
syncCopies: (caller: Caller, input: {
|
|
515
|
-
message: string[];
|
|
516
|
-
}, signal: AbortSignal) => Promise<SyncCopiesView>;
|
|
517
|
-
inboxPush: (caller: Caller, input: {
|
|
518
|
-
key: string;
|
|
519
|
-
} & {
|
|
520
|
-
events: {
|
|
521
|
-
id: string;
|
|
522
|
-
event: {
|
|
523
|
-
channel: string;
|
|
524
|
-
thread: string;
|
|
525
|
-
subthread: string | null;
|
|
526
|
-
kind: "message";
|
|
527
|
-
message: string;
|
|
528
|
-
isRoot: boolean;
|
|
529
|
-
text: string;
|
|
530
|
-
context: string | null;
|
|
531
|
-
author: {
|
|
532
|
-
id: string;
|
|
533
|
-
handle: string;
|
|
534
|
-
name: string;
|
|
535
|
-
avatar: string | null;
|
|
536
|
-
isBot: boolean;
|
|
537
|
-
};
|
|
538
|
-
files?: {
|
|
539
|
-
type: "audio" | "file" | "image" | "video";
|
|
540
|
-
name?: string | undefined;
|
|
541
|
-
mimeType?: string | undefined;
|
|
542
|
-
size?: number | undefined;
|
|
543
|
-
url?: string | undefined;
|
|
544
|
-
fetchMetadata?: Record<string, string> | undefined;
|
|
545
|
-
}[] | undefined;
|
|
546
|
-
links?: {
|
|
547
|
-
url: string;
|
|
548
|
-
thread: string;
|
|
549
|
-
message: string;
|
|
550
|
-
snapshot: {
|
|
551
|
-
author: string;
|
|
552
|
-
text: string;
|
|
553
|
-
createdAt: string | null;
|
|
554
|
-
files: {
|
|
555
|
-
name: string;
|
|
556
|
-
url: string | null;
|
|
557
|
-
}[];
|
|
558
|
-
} | null;
|
|
559
|
-
}[] | undefined;
|
|
560
|
-
} | {
|
|
561
|
-
channel: string;
|
|
562
|
-
thread: string;
|
|
563
|
-
subthread: string | null;
|
|
564
|
-
kind: "edited";
|
|
565
|
-
message: string;
|
|
566
|
-
text: string;
|
|
567
|
-
author: {
|
|
568
|
-
id: string;
|
|
569
|
-
handle: string;
|
|
570
|
-
name: string;
|
|
571
|
-
avatar: string | null;
|
|
572
|
-
isBot: boolean;
|
|
573
|
-
};
|
|
574
|
-
links?: {
|
|
575
|
-
url: string;
|
|
576
|
-
thread: string;
|
|
577
|
-
message: string;
|
|
578
|
-
snapshot: {
|
|
579
|
-
author: string;
|
|
580
|
-
text: string;
|
|
581
|
-
createdAt: string | null;
|
|
582
|
-
files: {
|
|
583
|
-
name: string;
|
|
584
|
-
url: string | null;
|
|
585
|
-
}[];
|
|
586
|
-
} | null;
|
|
587
|
-
}[] | undefined;
|
|
588
|
-
linksOnly?: boolean | undefined;
|
|
589
|
-
} | {
|
|
590
|
-
channel: string;
|
|
591
|
-
thread: string;
|
|
592
|
-
subthread: string | null;
|
|
593
|
-
kind: "deleted";
|
|
594
|
-
message: string;
|
|
595
|
-
} | {
|
|
596
|
-
channel: string;
|
|
597
|
-
thread: string;
|
|
598
|
-
subthread: string | null;
|
|
599
|
-
kind: "reaction";
|
|
600
|
-
message: string;
|
|
601
|
-
emoji: string;
|
|
602
|
-
added: boolean;
|
|
603
|
-
author: {
|
|
604
|
-
id: string;
|
|
605
|
-
handle: string;
|
|
606
|
-
name: string;
|
|
607
|
-
avatar: string | null;
|
|
608
|
-
isBot: boolean;
|
|
609
|
-
};
|
|
610
|
-
} | {
|
|
611
|
-
channel: string;
|
|
612
|
-
thread: string;
|
|
613
|
-
kind: "lifecycle";
|
|
614
|
-
type: string;
|
|
615
|
-
title: string;
|
|
616
|
-
url: string | null;
|
|
617
|
-
body?: string | null | undefined;
|
|
618
|
-
labels: Record<string, string>;
|
|
619
|
-
unset: string[];
|
|
620
|
-
owns?: string[] | undefined;
|
|
621
|
-
reply: string | null;
|
|
622
|
-
createRoot: boolean;
|
|
623
|
-
retitled?: boolean | undefined;
|
|
624
|
-
author: {
|
|
625
|
-
id: string;
|
|
626
|
-
handle: string;
|
|
627
|
-
name: string;
|
|
628
|
-
avatar: string | null;
|
|
629
|
-
isBot: boolean;
|
|
630
|
-
};
|
|
631
|
-
};
|
|
632
|
-
raw: unknown;
|
|
633
|
-
}[];
|
|
634
|
-
}, signal: AbortSignal) => Promise<{
|
|
635
|
-
ok: true;
|
|
636
|
-
}>;
|
|
637
|
-
inboxNext: (caller: Caller, input: {
|
|
638
|
-
key: string;
|
|
639
|
-
} & {
|
|
640
|
-
limit?: number | undefined;
|
|
641
|
-
}, signal: AbortSignal) => Promise<{
|
|
642
|
-
items: InboxItem[];
|
|
643
|
-
}>;
|
|
644
|
-
inboxAck: (caller: Caller, input: {
|
|
645
|
-
key: string;
|
|
646
|
-
} & {
|
|
647
|
-
id: string;
|
|
648
|
-
} & {
|
|
649
|
-
lease: string;
|
|
650
|
-
error?: string | undefined;
|
|
651
|
-
}, signal: AbortSignal) => Promise<{
|
|
652
|
-
ok: true;
|
|
653
|
-
}>;
|
|
654
|
-
inbox: (caller: Caller, input: {
|
|
655
|
-
key: string;
|
|
656
|
-
} & {
|
|
657
|
-
channel?: string | undefined;
|
|
658
|
-
limit?: number | undefined;
|
|
659
|
-
}, signal: AbortSignal) => Promise<{
|
|
660
|
-
events: InboxEntry[];
|
|
661
|
-
}>;
|
|
662
|
-
routes: BackendRoute[];
|
|
663
|
-
keeps: boolean;
|
|
664
|
-
bind(next: BoardBinding): void;
|
|
665
|
-
/** Registers this board's watchers with the board it uses now, as `POST /watchers` does. */
|
|
666
|
-
registerWatchers: () => Promise<RegistrationView>;
|
|
667
|
-
/** Stops pulling, for a board that pulls on its own. */
|
|
668
|
-
close: () => void;
|
|
669
|
-
};
|
|
670
|
-
type HttpBackend = ReturnType<typeof createHttp>;
|
|
671
|
-
//#endregion
|
|
672
|
-
export { HttpOptions as n, HttpBackend as t };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as createHttp } from "./backend-http-l5A8UmL-.mjs";
|
|
2
|
-
import { i as environmentProfile, n as boardUrl, r as connect } from "./node-BgeGcwX0.mjs";
|
|
3
|
-
//#region src/backend-http/index.ts
|
|
4
|
-
const environment = {
|
|
5
|
-
url: boardUrl,
|
|
6
|
-
fetch: (url) => connect(url).fetch,
|
|
7
|
-
profile: environmentProfile
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* The board at `url`, which keeps the log: this board uses it as this deployment. Without a
|
|
11
|
-
* `url`, the one the environment points at: `BOARD_URL`.
|
|
12
|
-
* Without a `fetch`, it sends the credentials `vb` would.
|
|
13
|
-
*/
|
|
14
|
-
function http(url, options = {}) {
|
|
15
|
-
return createHttp(url, options, environment);
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { http as t };
|