@vercel/board 0.29.0 → 0.31.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 +8 -17
- package/dist/{a2-HUbQJ0RD.mjs → a2-DngWY2Eb.mjs} +741 -415
- package/dist/access-CY5xVMIK.mjs +242 -0
- package/dist/{access-CV96SYgr.d.mts → access-DPcrKIH_.d.mts} +6 -1
- package/dist/access.d.mts +4 -4
- package/dist/access.mjs +5 -4
- package/dist/{actors-DcJhFbwJ.mjs → actors-Bm-ojWWT.mjs} +2 -2
- package/dist/{auth-JO22iIwr.mjs → auth-CyO2aw5n.mjs} +126 -236
- package/dist/{auth-CU56Q2Xh.d.mts → auth-DLYSt_-A.d.mts} +32 -4
- package/dist/{backend-CPC_vyOo.d.mts → backend-Bob-5CM7.d.mts} +93 -42
- package/dist/backend-a2/blob-vercel.d.mts +1 -1
- package/dist/backend-a2/contract.d.mts +38 -98
- package/dist/backend-a2/contract.mjs +1 -1
- package/dist/backend-a2/scheduler-local.d.mts +1 -1
- package/dist/backend-a2/scheduler-local.mjs +1 -1
- package/dist/backend-a2/scheduler-qstash.d.mts +3 -3
- package/dist/backend-a2/scheduler-qstash.mjs +8 -8
- package/dist/backend-a2/scheduler-vercel.d.mts +3 -3
- package/dist/backend-a2/scheduler-vercel.mjs +6 -6
- package/dist/backend-a2/store-memory.d.mts +2 -2
- package/dist/backend-a2/store-memory.mjs +3 -3
- package/dist/backend-a2/store-postgres.d.mts +1 -1
- package/dist/backend-a2/store-postgres.mjs +34 -15
- package/dist/backend-a2/store-redis-http.d.mts +1 -1
- package/dist/backend-a2/store-redis-http.mjs +6 -6
- package/dist/backend-a2/store-redis.d.mts +2 -2
- package/dist/backend-a2/store-redis.mjs +5 -5
- package/dist/backend-a2/store-sqlite.d.mts +1 -1
- package/dist/backend-a2/store-sqlite.mjs +3 -3
- package/dist/backend-a2.d.mts +143 -242
- package/dist/backend-a2.mjs +2 -2
- package/dist/{backend-http-CqfKhrnn.d.mts → backend-http-BRrRbjRx.d.mts} +59 -45
- package/dist/{backend-http-CzIJMm58.mjs → backend-http-CvUKOn-m.mjs} +11 -10
- package/dist/{backend-http-Bmp0IgD3.mjs → backend-http-D8mUzuKQ.mjs} +2 -2
- package/dist/backend-http.d.mts +1 -1
- package/dist/backend-http.mjs +1 -1
- package/dist/backend-http.node.d.mts +1 -1
- package/dist/backend-http.node.mjs +1 -1
- package/dist/{backend-vercel-DQc_TaHp.mjs → backend-vercel-Ba8JDtqW.mjs} +3 -3
- package/dist/{backend-vercel-4tvcPKqX.d.mts → backend-vercel-BaSEUdwg.d.mts} +62 -47
- package/dist/{backend-vercel-BNauAs7w.mjs → backend-vercel-CmY9yZ9m.mjs} +279 -42
- package/dist/backend-vercel.d.mts +1 -1
- package/dist/backend-vercel.mjs +1 -1
- package/dist/backend-vercel.node.d.mts +1 -1
- package/dist/backend-vercel.node.mjs +1 -1
- package/dist/{blob-DmiQjrYy.d.mts → blob-Bx8QPWEd.d.mts} +2 -2
- package/dist/{blob-DdbpJqN1.mjs → blob-WbB2DJKn.mjs} +30 -11
- package/dist/{chat-provider-BWHbChcQ.d.mts → chat-provider-BChYrrA7.d.mts} +32 -28
- package/dist/{chat-provider-COtsU5jB.mjs → chat-provider-DkFp2hrh.mjs} +105 -60
- 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 +4 -4
- package/dist/{client-BqAjk0Q4.d.mts → client-COfYrgfV.d.mts} +240 -227
- package/dist/{commands-D6gvrOh3.d.mts → commands-DK4W3HCJ.d.mts} +47 -10
- package/dist/{commands-C3R1AWgm.mjs → commands-L1JSGz2Z.mjs} +212 -54
- package/dist/conformance-DK43HiHf.mjs +1000 -0
- package/dist/conformance.d.mts +8 -2
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-DQxXk7dX.mjs → engine-DurYIRt8.mjs} +29 -210
- package/dist/{errors-DDktVeUa.d.mts → errors-2vGs49Db.d.mts} +1 -1
- package/dist/{client-D0Px7KzF.mjs → errors-CJXhhzvT.mjs} +132 -27
- package/dist/{provider-BaVmi4Hi.mjs → events-lujPA3gQ.mjs} +80 -17
- package/dist/{exports-BG-0Wyn-.mjs → exports-CWIdN0Ub.mjs} +195 -103
- package/dist/exports-FBOQWT7O.d.mts +5 -0
- package/dist/{folds-BDMSxBUf.mjs → folds-Cu9Q9zyQ.mjs} +3 -22
- package/dist/{folds-ZkHM4M-v.d.mts → folds-DLUzfibJ.d.mts} +15 -40
- package/dist/{index-D3VvNfh_.d.mts → index-Ho-ayyQL.d.mts} +2 -2
- package/dist/index.d.mts +7 -7
- package/dist/{index.default-rB8sJ9RX.mjs → index.default-BUcwDaAe.mjs} +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.node.d.mts +7 -7
- package/dist/index.node.mjs +3 -4
- package/dist/inspect/app.js +62 -61
- package/dist/inspect/engine.js +3 -3
- package/dist/{internal-CvsrprnU-CRY89I-b.mjs → internal-CvsrprnU-zZMpDiRY.mjs} +1 -1
- package/dist/{local-DhkrAqPP.mjs → local-C76Fy5ad.mjs} +1 -1
- package/dist/{main-CVBqe3VO.mjs → main-Dz-8komG.mjs} +251 -127
- package/dist/{middleware-CXjEeef4.mjs → middleware-BavYSDUa.mjs} +1 -1
- package/dist/{node-Zd_C-gxP.mjs → node-BgeGcwX0.mjs} +7 -3
- package/dist/{platform-B4TnJtWu-CwcTyKg2.mjs → platform-B4TnJtWu-Do3agKr5.mjs} +1 -1
- package/dist/{project-CBXlLftU.mjs → project-CQ4VUibA.mjs} +1 -1
- package/dist/{provider-DmSTp9lI.d.mts → provider-gynDUoyW.d.mts} +13 -43
- package/dist/{redis-tables-BJQVUspu.mjs → redis-tables-DHf85ixI.mjs} +40 -42
- package/dist/{reducer-CjmvZSAb-D_OSISmj.mjs → reducer-Bswr11ar-P324o9vn.mjs} +2 -2
- package/dist/{reducer-CYPHsSmd-BQIfozGi.d.mts → reducer-CYPHsSmd-BXjGiptm.d.mts} +1 -1
- package/dist/{reducers-DJzVpXwM.mjs → reducers-DcENwtwZ.mjs} +74 -77
- package/dist/{retryable-lazy-DZWmHpii-Bye-W8q7.mjs → retryable-lazy-DZWmHpii-DpTc5PIP.mjs} +1 -1
- package/dist/{scheduler-task-X1SToDjP-BVoWuInI.mjs → scheduler-task-X1SToDjP-D2Il2rln.mjs} +1 -1
- package/dist/{serve-G9RuaDSr.mjs → serve-CTmow-YH.mjs} +7 -7
- package/dist/{server-qgez0Xny-D5mLfqFQ.d.mts → server-B9gu0qi1-DI1WvcVK.d.mts} +10 -4
- package/dist/{server-BixV_byP.mjs → server-DG8D6VV0.mjs} +4 -4
- package/dist/{server-DtFrWxi3-Boa6gdWO.mjs → server-DX7mM6nm-D7N_7bug.mjs} +32 -23
- package/dist/{serving-B75Y4BF-.mjs → serving-DBFRo6U_.mjs} +1 -1
- package/dist/{session-clear-wHd5GCpZ-BnKSxReK.mjs → session-clear-XJYpmUpg-2q8l_FJR.mjs} +14 -2
- package/dist/{sql-D4Z_efJX.mjs → sql-CT5xVuGr.mjs} +2 -8
- package/dist/{sqlite-db-Bz2JkfCU.mjs → sqlite-db-0WeSOEZN.mjs} +1 -1
- package/dist/{store-D0MhBvg6-4Z2L0Kqd.d.mts → store-DEzcHZOA-B-5vhxef.d.mts} +12 -2
- package/dist/store-N8PXxDAS-DWWgv-Vz.mjs +5 -0
- package/dist/{store-codec-DwrWlgQx-CYxGW0aD.mjs → store-codec-pAG2oPgQ-SqDXlPBR.mjs} +4 -4
- package/dist/store-memory-4IBl0Ztu.mjs +2 -0
- package/dist/{store-memory-Bas9Uq5C.mjs → store-memory-B0PkVSuQ.mjs} +14 -7
- package/dist/{store-polling-BZt2Rf3D-BiEM6_HB.mjs → store-polling-BZt2Rf3D-Div-bJ_D.mjs} +2 -2
- package/dist/{store-presence-polling-JuAy2Ck2-CYpuK75X.mjs → store-presence-polling-JuAy2Ck2-Dh-g_KYM.mjs} +3 -3
- package/dist/{store-sqlite-CxxPCcCT.mjs → store-sqlite-D85t3tE7.mjs} +14 -7
- package/dist/store-sqlite-iBTYYKBj.mjs +2 -0
- package/dist/{stream-buffer-DrTyiIuo-BKy-vI14.mjs → stream-buffer-DrTyiIuo-Be10yOBR.mjs} +2 -2
- package/dist/{sync-kapso.d.mts → sync-chat-sdk.d.mts} +33 -37
- package/dist/sync-chat-sdk.mjs +44 -0
- package/dist/sync-github.d.mts +5 -18
- package/dist/sync-github.mjs +4 -70
- package/dist/sync-linear.d.mts +3 -3
- package/dist/sync-linear.mjs +6 -5
- package/dist/sync-slack.d.mts +7 -7
- package/dist/sync-slack.mjs +33 -54
- package/dist/sync.d.mts +3 -3
- package/dist/sync.mjs +2 -4
- package/dist/{tokens-CC3izSNr.mjs → tokens-Dnyd_y1n.mjs} +15 -6
- package/dist/{types-No0WdhE5.d.mts → types-CmrFjpml.d.mts} +2 -4
- package/dist/{watchers-hash-BDhLVkV5.mjs → watchers-hash-BjwlnGD9.mjs} +124 -115
- package/docs/01-board/01-mounting.md +2 -2
- package/docs/01-board/03-identity.md +5 -6
- package/docs/01-board/04-messages.md +96 -2
- package/docs/01-board/05-reading.md +2 -1
- package/docs/01-board/06-watchers.md +8 -6
- package/docs/01-board/08-middleware.md +6 -3
- package/docs/01-board/09-access.md +145 -14
- package/docs/02-sync/01-overview.md +19 -26
- package/docs/02-sync/02-functions.md +8 -9
- package/docs/02-sync/03-slack.md +5 -5
- package/docs/02-sync/04-github.md +2 -2
- package/docs/02-sync/06-providers.md +91 -62
- package/docs/03-guides/01-coding-agents.md +1 -1
- package/docs/03-guides/03-ci.md +7 -4
- package/docs/04-reference/01-cli.md +109 -51
- package/docs/04-reference/02-board.md +76 -28
- package/docs/04-reference/03-http.md +76 -38
- package/docs/04-reference/04-log.md +8 -11
- package/docs/04-reference/05-conformance.md +47 -7
- package/docs/index.md +2 -2
- package/package.json +7 -10
- package/sql/postgres/board.sql +1 -1
- package/sql/postgres/schema.sql +1 -1
- package/dist/conformance-DlnfuzEB.mjs +0 -556
- package/dist/errors-CusN4x2l.mjs +0 -88
- package/dist/events-qf5XG5VQ.mjs +0 -75
- package/dist/exports-mhAYiU4i.d.mts +0 -5
- package/dist/store-N8PXxDAS-BWBgzBHp.mjs +0 -5
- package/dist/store-memory-ZLiZbH3R.mjs +0 -2
- package/dist/store-sqlite-BmwL3pUR.mjs +0 -2
- package/dist/sync-kapso.mjs +0 -89
- package/dist/sync.chat.d.mts +0 -2
- package/dist/sync.chat.mjs +0 -2
- package/dist/users-yryHKFMo.mjs +0 -42
- package/docs/02-sync/05-whatsapp.md +0 -152
|
@@ -7,6 +7,7 @@ const iso = (date) => typeof date === "string" ? date : date.toISOString();
|
|
|
7
7
|
function foldMessages(state, event) {
|
|
8
8
|
const changed = foldMessage(state, event);
|
|
9
9
|
if (changed) changed.version = event.index;
|
|
10
|
+
if (changed && (event.type === "message.posted" || event.type === "message.edited" || event.type === "message.deleted")) changed.revision = event.index;
|
|
10
11
|
return state;
|
|
11
12
|
}
|
|
12
13
|
/** Applies `event`, and returns the message it changed: none for an event that changes nothing. */
|
|
@@ -110,28 +111,8 @@ function foldMessage(state, event) {
|
|
|
110
111
|
default: return;
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
|
-
/**
|
|
114
|
-
function personOf(actors, actor) {
|
|
115
|
-
const linked = own(actors.links, actor)?.to;
|
|
116
|
-
if (linked) return linked;
|
|
117
|
-
const plus = actor.indexOf("+");
|
|
118
|
-
return plus === -1 ? actor : actor.slice(0, plus);
|
|
119
|
-
}
|
|
120
|
-
/** The platform actors linked to `principal`. */
|
|
121
|
-
const linkedTo = (actors, principal) => Object.entries(actors.links).filter(([, link]) => link.to === principal).map(([actor]) => actor);
|
|
114
|
+
/** Who's who: `actor.seen`. */
|
|
122
115
|
function foldActors(state, event) {
|
|
123
|
-
if (event.type === "actor.linked") {
|
|
124
|
-
setOwn(state.links, event.payload.actor, {
|
|
125
|
-
to: event.payload.to,
|
|
126
|
-
method: event.payload.method,
|
|
127
|
-
at: iso(event.createdAt)
|
|
128
|
-
});
|
|
129
|
-
return state;
|
|
130
|
-
}
|
|
131
|
-
if (event.type === "actor.unlinked") {
|
|
132
|
-
delete state.links[event.payload.actor];
|
|
133
|
-
return state;
|
|
134
|
-
}
|
|
135
116
|
if (event.type !== "actor.seen") return state;
|
|
136
117
|
const { actor, kind, handle, name, avatar, host } = event.payload;
|
|
137
118
|
const previous = own(state.byId, actor);
|
|
@@ -223,4 +204,4 @@ function foldSync(state, event) {
|
|
|
223
204
|
}
|
|
224
205
|
}
|
|
225
206
|
//#endregion
|
|
226
|
-
export {
|
|
207
|
+
export { iso as i, foldMessages as n, foldSync as r, foldActors as t };
|
|
@@ -101,6 +101,19 @@ declare const boardEvents: {
|
|
|
101
101
|
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
102
102
|
importedBy: z.ZodOptional<z.ZodString>;
|
|
103
103
|
}, z.core.$strip>;
|
|
104
|
+
/**
|
|
105
|
+
* A channel made before anything posted to it. A post makes one too, with no event of its own:
|
|
106
|
+
* this is only for one that's empty. It names no message, so it carries no `id`.
|
|
107
|
+
*/
|
|
108
|
+
'channel.created': z.ZodObject<{
|
|
109
|
+
channel: z.ZodString;
|
|
110
|
+
by: z.ZodObject<{
|
|
111
|
+
actor: z.ZodString;
|
|
112
|
+
principal: z.ZodString;
|
|
113
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
114
|
+
session: z.ZodNullable<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
}, z.core.$strip>;
|
|
104
117
|
/** A message's links changed: an edit linked something new, or the platform sent what a link says. */
|
|
105
118
|
'message.linked': z.ZodObject<{
|
|
106
119
|
id: z.ZodNumber;
|
|
@@ -214,7 +227,6 @@ declare const boardEvents: {
|
|
|
214
227
|
external: z.ZodObject<{
|
|
215
228
|
thread: z.ZodString;
|
|
216
229
|
message: z.ZodString;
|
|
217
|
-
asUser: z.ZodOptional<z.ZodLiteral<true>>;
|
|
218
230
|
}, z.core.$strip>;
|
|
219
231
|
syncedBy: z.ZodOptional<z.ZodString>;
|
|
220
232
|
}, z.core.$strip>;
|
|
@@ -251,35 +263,6 @@ declare const boardEvents: {
|
|
|
251
263
|
avatar: z.ZodNullable<z.ZodString>;
|
|
252
264
|
host: z.ZodOptional<z.ZodLiteral<true>>;
|
|
253
265
|
}, z.core.$strip>;
|
|
254
|
-
/**
|
|
255
|
-
* A platform actor (`slack:user:U0456`) is the same person as a principal
|
|
256
|
-
* (`vercel:user:…`): for display, `--by`, and mentions, never for permissions.
|
|
257
|
-
* `method` says how it was proved: a one-time code posted from that account,
|
|
258
|
-
* or the account's own sign-in (`consent`).
|
|
259
|
-
*/
|
|
260
|
-
'actor.linked': z.ZodObject<{
|
|
261
|
-
actor: z.ZodString;
|
|
262
|
-
to: z.ZodString;
|
|
263
|
-
method: z.ZodEnum<{
|
|
264
|
-
code: "code";
|
|
265
|
-
consent: "consent";
|
|
266
|
-
}>;
|
|
267
|
-
by: z.ZodObject<{
|
|
268
|
-
actor: z.ZodString;
|
|
269
|
-
principal: z.ZodString;
|
|
270
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
271
|
-
session: z.ZodNullable<z.ZodString>;
|
|
272
|
-
}, z.core.$strip>;
|
|
273
|
-
}, z.core.$strip>;
|
|
274
|
-
'actor.unlinked': z.ZodObject<{
|
|
275
|
-
actor: z.ZodString;
|
|
276
|
-
by: z.ZodObject<{
|
|
277
|
-
actor: z.ZodString;
|
|
278
|
-
principal: z.ZodString;
|
|
279
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
280
|
-
session: z.ZodNullable<z.ZodString>;
|
|
281
|
-
}, z.core.$strip>;
|
|
282
|
-
}, z.core.$strip>;
|
|
283
266
|
};
|
|
284
267
|
declare const BOARD_SESSION = "board";
|
|
285
268
|
type BoardEvents = typeof boardEvents;
|
|
@@ -524,6 +507,8 @@ type Message = {
|
|
|
524
507
|
blind?: true;
|
|
525
508
|
/** The index of the last event that changed it. Folds from before it existed leave it out. */
|
|
526
509
|
version?: number;
|
|
510
|
+
/** The index of its post, or of its last edit or delete. Folds from before it existed leave it out. */
|
|
511
|
+
revision?: number;
|
|
527
512
|
};
|
|
528
513
|
type MessagesState = {
|
|
529
514
|
byId: Record<string, Message>;
|
|
@@ -546,28 +531,18 @@ type Actor = {
|
|
|
546
531
|
/** A host's principal, or one of its profiles: once it's seen as one, it stays one. Views leave it out. */
|
|
547
532
|
host?: true;
|
|
548
533
|
};
|
|
549
|
-
/** A platform actor proved to be a principal (`actor.linked`). */
|
|
550
|
-
type ActorLink = {
|
|
551
|
-
to: string;
|
|
552
|
-
method: 'code' | 'consent';
|
|
553
|
-
at: string;
|
|
554
|
-
};
|
|
555
534
|
type ActorsState = {
|
|
556
535
|
byId: Record<string, Actor>;
|
|
557
536
|
/** Lowercased handle → actor IDs. Handles aren't reserved, so several can share one. */
|
|
558
537
|
byHandle: Record<string, string[]>;
|
|
559
|
-
/** Platform actor → the principal it's linked to. Display and filtering only, never permissions. */
|
|
560
|
-
links: Record<string, ActorLink>;
|
|
561
538
|
};
|
|
562
539
|
/** A copy of a board message on a platform. */
|
|
563
540
|
/** `files`: the platform's IDs for the message's files, or null when it refused them; unset until they're sent. */
|
|
564
|
-
/** `asUser`: posted with its author's own token, so editing or deleting it needs that token too. */
|
|
565
541
|
/** `by`: the principal of the sync elsewhere that recorded it, whose copy it is to change; none for the board's own sync's. */
|
|
566
542
|
type ExternalCopy = {
|
|
567
543
|
thread: string;
|
|
568
544
|
message: string;
|
|
569
545
|
files?: string[] | null;
|
|
570
|
-
asUser?: true;
|
|
571
546
|
by?: string;
|
|
572
547
|
};
|
|
573
548
|
type SyncedThread = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./exports-
|
|
1
|
+
import { f as Board, p as BoardOptions } from "./backend-Bob-5CM7.mjs";
|
|
2
|
+
import "./exports-FBOQWT7O.mjs";
|
|
3
3
|
//#region src/server/index.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The handle on a board. With a `backend`, the board lives there: `a2()` keeps it in this
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as CallerRequest, o as Claims } from "./auth-
|
|
2
|
-
import { x as Attachment } from "./folds-
|
|
3
|
-
import { $ as
|
|
4
|
-
import {
|
|
5
|
-
import { t as HttpError } from "./errors-
|
|
6
|
-
import "./exports-
|
|
1
|
+
import { a as CallerRequest, o as Claims } from "./auth-DLYSt_-A.mjs";
|
|
2
|
+
import { x as Attachment } from "./folds-DLUzfibJ.mjs";
|
|
3
|
+
import { $ as RegisterBody, A as InboxAckBody, At as ThreadsPage, B as MatchView, Bt as routes, C as EventsPage, Ct as SyncImportInput, D as GrantBody, Dt as SyncedView, E as FiltersInput, Et as SyncThreadView, F as InboxQuery, Ft as TokenView, G as MessagesQuery, H as Me, I as LABEL_CONDITIONS_MAX, It as TypingBody, J as PostBody, K as MessagesQueryInput, L as LabelBody, Lt as TypingResult, M as InboxItem, Mt as ThreadsQueryInput, N as InboxNextQuery, Nt as TokenBody, O as GrantInput, Ot as ThreadSummaryView, P as InboxPushBody, Pt as TokenInput, Q as Ref, R as LinkView, Rt as UploadStartBody, S as EditBody, St as SyncImportBody, T as EventsQueryInput, Tt as SyncReceiptInput, U as MessageView, V as MatchesQuery, W as MessagesPage, X as REGISTERED_WATCHERS_MAX, Y as PostInput, Z as ReactBody, _ as BoardEventView, _t as SyncCopiesQuery, a as PostOptions, at as ScheduleBodyOutput, b as DeleteBody, bt as SyncFindQuery, c as ScheduleOptions, ct as SchedulesQuery, d as WaitOptions, dt as SourceJoin, et as RegisterInput, f as Written, ft as SourceJoinBody, g as ApiError, gt as SyncBody, h as ActorView, ht as SourceReadQuery, i as Filters, it as ScheduleBody, j as InboxEntry, jt as ThreadsQuery, k as GrantView, kt as ThreadView, l as ScheduleTiming, lt as SchedulesQueryInput, m as AckBody, mt as SourceRead, n as BoardError, nt as ResolvedSyncTarget, o as ProfileOption, ot as ScheduleInput, p as duration, pt as SourceMessage, q as ParsedFilters, rt as RouteName, s as ReplyOptions, st as ScheduleView, tt as RegistrationView, u as UploadInput, ut as SchedulesQueryOutput, v as ChannelView, vt as SyncCopiesView, w as EventsQuery, wt as SyncReceiptBody, x as Discovery, xt as SyncFindView, y as CreateChannelBody, yt as SyncFindInput, z as LinkedQuery, zt as UploadTicket } from "./client-COfYrgfV.mjs";
|
|
4
|
+
import { C as Protocol, S as Method, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as VerifiedCaller, f as Board, g as DroppedError, h as WatcherContext, i as Caller, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as Subscription, v as MiddlewareContext, x as WriteSource, y as Write } from "./backend-Bob-5CM7.mjs";
|
|
5
|
+
import { t as HttpError } from "./errors-2vGs49Db.mjs";
|
|
6
|
+
import "./exports-FBOQWT7O.mjs";
|
|
7
7
|
//#region src/server/index.default.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* The handle on a board. Outside Node there's no environment to find one in, so pass its
|
|
@@ -11,4 +11,4 @@ import "./exports-mhAYiU4i.mjs";
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function board(options?: BoardOptions): Board;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { type AckBody, type ActorView, type ApiError, type Attachment, type Backend, type BackendRoute, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type Caller, type CallerRequest, type ChannelView, type Claims, type DeleteBody, type Discovery, DroppedError, type EditBody, type EventsPage, type EventsQuery, type EventsQueryInput, type Filters, type FiltersInput,
|
|
14
|
+
export { type AckBody, type ActorView, type ApiError, type Attachment, type Backend, type BackendRoute, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type Caller, type CallerRequest, type ChannelView, type Claims, type CreateChannelBody, type DeleteBody, type Discovery, DroppedError, type EditBody, type EventsPage, type EventsQuery, type EventsQueryInput, type Filters, type FiltersInput, type GrantBody, type GrantInput, type GrantView, HttpError, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LabelBody, type LinkView, type LinkedQuery, type MatchView, type MatchesQuery, type Me, type MessageView, type MessagesPage, type MessagesQuery, type MessagesQueryInput, type Method, type Middleware, type MiddlewareContext, type ParsedFilters, type PostBody, type PostInput, type PostOptions, type ProfileOption, type Protocol, type ProtocolMethods, type REGISTERED_WATCHERS_MAX, type ReactBody, type Ref, type RegisterBody, type RegisterInput, type RegistrationView, type ReplyOptions, type ResolvedSyncTarget, type RouteName, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SelfCaller, type SourceJoin, type SourceJoinBody, type SourceMessage, type SourceRead, type SourceReadQuery, type Subscription, type SyncBody, type SyncCopiesQuery, type SyncCopiesView, type SyncFindInput, type SyncFindQuery, type SyncFindView, type SyncImportBody, type SyncImportInput, type SyncReceiptBody, type SyncReceiptInput, type SyncThreadView, type SyncedView, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, type TokenBody, type TokenInput, type TokenView, type TypingBody, type TypingResult, type UploadInput, type UploadStartBody, type UploadTicket, type VerifiedCaller, type WaitOptions, type Watcher, type WatcherContext, type Write, type WritePatch, type WriteSource, type Written, duration, type routes };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as createHttp } from "./backend-http-
|
|
1
|
+
import { r as createHttp } from "./backend-http-CvUKOn-m.mjs";
|
|
2
2
|
//#region src/backend-http/index.default.ts
|
|
3
3
|
/**
|
|
4
4
|
* The board at `url`, which keeps the log. Outside Node there's no environment to find it or a
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as DroppedError } from "./middleware-CXjEeef4.mjs";
|
|
1
|
+
import { f as duration, t as HttpError, u as BoardError } from "./errors-CJXhhzvT.mjs";
|
|
2
|
+
import { t as http } from "./index.default-BUcwDaAe.mjs";
|
|
3
|
+
import { t as createBoard } from "./exports-CWIdN0Ub.mjs";
|
|
4
|
+
import { t as DroppedError } from "./middleware-BavYSDUa.mjs";
|
|
6
5
|
//#region src/server/index.default.ts
|
|
7
6
|
/**
|
|
8
7
|
* The handle on a board. Outside Node there's no environment to find one in, so pass its
|
|
@@ -11,7 +10,7 @@ import { t as DroppedError } from "./middleware-CXjEeef4.mjs";
|
|
|
11
10
|
function board(options = {}) {
|
|
12
11
|
return createBoard(options, {
|
|
13
12
|
http: () => http(),
|
|
14
|
-
sync: () => import("./engine-
|
|
13
|
+
sync: () => import("./engine-DurYIRt8.mjs"),
|
|
15
14
|
serving: null
|
|
16
15
|
});
|
|
17
16
|
}
|
package/dist/index.node.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as CallerRequest, o as Claims } from "./auth-
|
|
2
|
-
import { x as Attachment } from "./folds-
|
|
3
|
-
import { $ as
|
|
4
|
-
import {
|
|
5
|
-
import { t as HttpError } from "./errors-
|
|
6
|
-
import { t as board } from "./index-
|
|
7
|
-
export { type AckBody, type ActorView, type ApiError, type Attachment, type Backend, type BackendRoute, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type Caller, type CallerRequest, type ChannelView, type Claims, type DeleteBody, type Discovery, DroppedError, type EditBody, type EventsPage, type EventsQuery, type EventsQueryInput, type Filters, type FiltersInput,
|
|
1
|
+
import { a as CallerRequest, o as Claims } from "./auth-DLYSt_-A.mjs";
|
|
2
|
+
import { x as Attachment } from "./folds-DLUzfibJ.mjs";
|
|
3
|
+
import { $ as RegisterBody, A as InboxAckBody, At as ThreadsPage, B as MatchView, Bt as routes, C as EventsPage, Ct as SyncImportInput, D as GrantBody, Dt as SyncedView, E as FiltersInput, Et as SyncThreadView, F as InboxQuery, Ft as TokenView, G as MessagesQuery, H as Me, I as LABEL_CONDITIONS_MAX, It as TypingBody, J as PostBody, K as MessagesQueryInput, L as LabelBody, Lt as TypingResult, M as InboxItem, Mt as ThreadsQueryInput, N as InboxNextQuery, Nt as TokenBody, O as GrantInput, Ot as ThreadSummaryView, P as InboxPushBody, Pt as TokenInput, Q as Ref, R as LinkView, Rt as UploadStartBody, S as EditBody, St as SyncImportBody, T as EventsQueryInput, Tt as SyncReceiptInput, U as MessageView, V as MatchesQuery, W as MessagesPage, X as REGISTERED_WATCHERS_MAX, Y as PostInput, Z as ReactBody, _ as BoardEventView, _t as SyncCopiesQuery, a as PostOptions, at as ScheduleBodyOutput, b as DeleteBody, bt as SyncFindQuery, c as ScheduleOptions, ct as SchedulesQuery, d as WaitOptions, dt as SourceJoin, et as RegisterInput, f as Written, ft as SourceJoinBody, g as ApiError, gt as SyncBody, h as ActorView, ht as SourceReadQuery, i as Filters, it as ScheduleBody, j as InboxEntry, jt as ThreadsQuery, k as GrantView, kt as ThreadView, l as ScheduleTiming, lt as SchedulesQueryInput, m as AckBody, mt as SourceRead, n as BoardError, nt as ResolvedSyncTarget, o as ProfileOption, ot as ScheduleInput, p as duration, pt as SourceMessage, q as ParsedFilters, rt as RouteName, s as ReplyOptions, st as ScheduleView, tt as RegistrationView, u as UploadInput, ut as SchedulesQueryOutput, v as ChannelView, vt as SyncCopiesView, w as EventsQuery, wt as SyncReceiptBody, x as Discovery, xt as SyncFindView, y as CreateChannelBody, yt as SyncFindInput, z as LinkedQuery, zt as UploadTicket } from "./client-COfYrgfV.mjs";
|
|
4
|
+
import { C as Protocol, S as Method, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as VerifiedCaller, f as Board, g as DroppedError, h as WatcherContext, i as Caller, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as Subscription, v as MiddlewareContext, x as WriteSource, y as Write } from "./backend-Bob-5CM7.mjs";
|
|
5
|
+
import { t as HttpError } from "./errors-2vGs49Db.mjs";
|
|
6
|
+
import { t as board } from "./index-Ho-ayyQL.mjs";
|
|
7
|
+
export { type AckBody, type ActorView, type ApiError, type Attachment, type Backend, type BackendRoute, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type Caller, type CallerRequest, type ChannelView, type Claims, type CreateChannelBody, type DeleteBody, type Discovery, DroppedError, type EditBody, type EventsPage, type EventsQuery, type EventsQueryInput, type Filters, type FiltersInput, type GrantBody, type GrantInput, type GrantView, HttpError, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LabelBody, type LinkView, type LinkedQuery, type MatchView, type MatchesQuery, type Me, type MessageView, type MessagesPage, type MessagesQuery, type MessagesQueryInput, type Method, type Middleware, type MiddlewareContext, type ParsedFilters, type PostBody, type PostInput, type PostOptions, type ProfileOption, type Protocol, type ProtocolMethods, type REGISTERED_WATCHERS_MAX, type ReactBody, type Ref, type RegisterBody, type RegisterInput, type RegistrationView, type ReplyOptions, type ResolvedSyncTarget, type RouteName, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SelfCaller, type SourceJoin, type SourceJoinBody, type SourceMessage, type SourceRead, type SourceReadQuery, type Subscription, type SyncBody, type SyncCopiesQuery, type SyncCopiesView, type SyncFindInput, type SyncFindQuery, type SyncFindView, type SyncImportBody, type SyncImportInput, type SyncReceiptBody, type SyncReceiptInput, type SyncThreadView, type SyncedView, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, type TokenBody, type TokenInput, type TokenView, type TypingBody, type TypingResult, type UploadInput, type UploadStartBody, type UploadTicket, type VerifiedCaller, type WaitOptions, type Watcher, type WatcherContext, type Write, type WritePatch, type WriteSource, type Written, board, duration, type routes };
|
package/dist/index.node.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as board } from "./server-BixV_byP.mjs";
|
|
1
|
+
import { f as duration, t as HttpError, u as BoardError } from "./errors-CJXhhzvT.mjs";
|
|
2
|
+
import { t as DroppedError } from "./middleware-BavYSDUa.mjs";
|
|
3
|
+
import { t as board } from "./server-DG8D6VV0.mjs";
|
|
5
4
|
export { BoardError, DroppedError, HttpError, board, duration };
|