@graview/ship 0.1.2 → 0.1.4
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 +312 -13
- package/dist/browser.d.ts +4 -4
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/handler.d.ts +192 -26
- package/dist/handler.d.ts.map +1 -1
- package/dist/handler.js +383 -340
- package/dist/handler.js.map +1 -1
- package/dist/health.d.ts +12 -1
- package/dist/health.d.ts.map +1 -1
- package/dist/health.js +15 -4
- package/dist/health.js.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/live-protocol.d.ts +451 -0
- package/dist/live-protocol.d.ts.map +1 -0
- package/dist/live-protocol.js +957 -0
- package/dist/live-protocol.js.map +1 -0
- package/dist/live.d.ts +156 -9
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +31 -1
- package/dist/live.js.map +1 -1
- package/dist/remote.d.ts +180 -5
- package/dist/remote.d.ts.map +1 -1
- package/dist/remote.js +793 -76
- package/dist/remote.js.map +1 -1
- package/dist/runtime.d.ts +7 -5
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +3 -2
- package/dist/runtime.js.map +1 -1
- package/dist/seat-headers.d.ts +6 -0
- package/dist/seat-headers.d.ts.map +1 -1
- package/dist/seat-headers.js +6 -0
- package/dist/seat-headers.js.map +1 -1
- package/dist/serve.d.ts +5 -3
- package/dist/serve.d.ts.map +1 -1
- package/dist/serve.js +18 -4
- package/dist/serve.js.map +1 -1
- package/dist/websocket.d.ts +1 -1
- package/dist/websocket.d.ts.map +1 -1
- package/dist/websocket.js +10 -2
- package/dist/websocket.js.map +1 -1
- package/package.json +3 -3
package/dist/handler.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type AnySchema, type GraviewApp, type PersistenceAdapter, type Presence, type Principal, type Store } from "@graview/core";
|
|
2
|
-
import { type LiveConnection, type LiveSocket } from "./live.js";
|
|
1
|
+
import { type AnySchema, type GraviewApp, type Operation, type PersistenceAdapter, type PlannedChange, type Presence, type Principal, type Store, type MutationCall, type WireRefusal } from "@graview/core";
|
|
2
|
+
import { type Limit, type LimitAnswer, type LimitAsked, type LiveConnection, type LiveSocket } from "./live.js";
|
|
3
|
+
import { presenceSeenBy, type LiveProtocol, type LiveSocketState, type ServedSocket } from "./live-protocol.js";
|
|
3
4
|
import { type OpenedStore } from "./open-store.js";
|
|
4
5
|
import { SEAT_HEADERS } from "./seat-headers.js";
|
|
5
6
|
import type { GraphSnapshot } from "./snapshot.js";
|
|
@@ -40,7 +41,9 @@ import type { GraphSnapshot } from "./snapshot.js";
|
|
|
40
41
|
* Polling is the floor, on purpose: a poll is a thing a person can
|
|
41
42
|
* reproduce with `curl`, and a thing every runtime can answer. Beside it,
|
|
42
43
|
* `connect` serves the live wire (FR-05, `./live.ts`) to whatever socket a
|
|
43
|
-
* host hands it, and `GET /graview/live` names it on the wire.
|
|
44
|
+
* host hands it, and `GET /graview/live` names it on the wire. The live
|
|
45
|
+
* protocol itself is `liveProtocol` (`./live-protocol.ts`), over state a
|
|
46
|
+
* host may hold instead of this closure (FR-41).
|
|
44
47
|
*/
|
|
45
48
|
/**
|
|
46
49
|
* THE WIRE, AS A CONTRACT. Every route the handler answers, in one place a
|
|
@@ -57,7 +60,7 @@ export declare const WIRE: readonly [{
|
|
|
57
60
|
}, {
|
|
58
61
|
readonly method: "POST";
|
|
59
62
|
readonly path: "/graview/ops";
|
|
60
|
-
readonly says: "calls in, the ops they produced out — or `undo`, batches to take back; 409 with the policy's sentence when refused";
|
|
63
|
+
readonly says: "calls in, the ops they produced out — or `undo`, batches to take back; a `batch` the asking seat already landed is answered with the ops it made, and one that is somebody else's or not `batch:<tag>:<n>` is refused `invalid`; 409 with the policy's sentence and a `reason` when refused, 429 with `Retry-After` when the host is busy, 503 with the reason `unavailable` when it takes no changes for a while";
|
|
61
64
|
}, {
|
|
62
65
|
readonly method: "GET";
|
|
63
66
|
readonly path: "/graview/since";
|
|
@@ -73,7 +76,7 @@ export declare const WIRE: readonly [{
|
|
|
73
76
|
}, {
|
|
74
77
|
readonly method: "POST";
|
|
75
78
|
readonly path: "/graview/here";
|
|
76
|
-
readonly says: "say where you are; answers with who else is,
|
|
79
|
+
readonly says: "say where you are; answers with who else is, the ops since `seq`, and the `participant` key you are held under";
|
|
77
80
|
}, {
|
|
78
81
|
readonly method: "GET";
|
|
79
82
|
readonly path: "/graview/who";
|
|
@@ -81,20 +84,16 @@ export declare const WIRE: readonly [{
|
|
|
81
84
|
}, {
|
|
82
85
|
readonly method: "POST";
|
|
83
86
|
readonly path: "/graview/leave";
|
|
84
|
-
readonly says: "say you have gone";
|
|
87
|
+
readonly says: "say you have gone — only ever yourself";
|
|
85
88
|
}, {
|
|
86
89
|
readonly method: "GET";
|
|
87
90
|
readonly path: "/graview/live";
|
|
88
|
-
readonly says: "the live wire: a WebSocket of hello/welcome, call/undo/ack/refused/conflict, ops and presence; 426 to a plain request";
|
|
91
|
+
readonly says: "the live wire: a WebSocket of hello/welcome, call/undo/ack/refused/conflict/busy, ops and presence, declaration and reload; 426 to a plain request";
|
|
89
92
|
}];
|
|
90
|
-
export { SEAT_HEADERS };
|
|
91
|
-
|
|
93
|
+
export { presenceSeenBy, SEAT_HEADERS };
|
|
94
|
+
/** What every handler takes, whoever holds the store. */
|
|
95
|
+
interface HandlerOptions<S extends AnySchema> {
|
|
92
96
|
readonly app: GraviewApp<S>;
|
|
93
|
-
/** Where the graph lives: any `PersistenceAdapter` — a file, SQLite, Durable Object storage. */
|
|
94
|
-
readonly adapter: PersistenceAdapter<string>;
|
|
95
|
-
/** What to put in an empty store on first start. */
|
|
96
|
-
readonly seed?: GraphSnapshot;
|
|
97
|
-
readonly scope?: string;
|
|
98
97
|
/**
|
|
99
98
|
* Who a request is. The host's to say — from a session, a bearer token,
|
|
100
99
|
* whatever it authenticates with — and the store judges every call under
|
|
@@ -102,6 +101,16 @@ export interface StoreHandlerOptions<S extends AnySchema> {
|
|
|
102
101
|
* verifies a token with `crypto.subtle`.
|
|
103
102
|
*/
|
|
104
103
|
readonly seatOf?: (request: Request) => Principal | Promise<Principal>;
|
|
104
|
+
/**
|
|
105
|
+
* WHAT THE CALLS CAME THROUGH (FR-52): the host's word, recorded as `via`
|
|
106
|
+
* on every op a request or a socket makes — `web`, `api`, `mcp:Claude`.
|
|
107
|
+
* Handed the request (the upgrade, for a socket) and the seat `seatOf`
|
|
108
|
+
* said. A client's own `via` is never read: a browser could otherwise
|
|
109
|
+
* record its edit as Claude's. Absent, or answering nothing, a socket's
|
|
110
|
+
* calls are `web` and an HTTP request's `api` — unless the host trusts
|
|
111
|
+
* the seat headers, when `SEAT_HEADERS.via` says it as they say the seat.
|
|
112
|
+
*/
|
|
113
|
+
readonly viaOf?: (request: Request, seat: Principal) => string | undefined | Promise<string | undefined>;
|
|
105
114
|
/**
|
|
106
115
|
* BELIEVE THE SEAT HEADERS (`SEAT_HEADERS`) — off by default (FR-06).
|
|
107
116
|
*
|
|
@@ -116,6 +125,100 @@ export interface StoreHandlerOptions<S extends AnySchema> {
|
|
|
116
125
|
readonly where?: string;
|
|
117
126
|
/** How long a presence stands after its last word. Three heartbeats by default. */
|
|
118
127
|
readonly presenceTtlMs?: number;
|
|
128
|
+
/**
|
|
129
|
+
* AN AGENT THAT ACTS IS IN THE ROOM (FR-47). Every op an agent seat lands
|
|
130
|
+
* in the store — through `POST /graview/ops`, an MCP handler over the
|
|
131
|
+
* same store, the host's own loop — announces it to who is here, as the
|
|
132
|
+
* agent and for whom, standing over what it wrote, for this long after
|
|
133
|
+
* its last op: `VISITOR_PRESENCE_TTL_MS` when `true` or unsaid, the
|
|
134
|
+
* number of ms when one is given, never when `false`. An agent seat that
|
|
135
|
+
* holds a socket of its own is there already, and is not announced twice.
|
|
136
|
+
*/
|
|
137
|
+
readonly announceAgents?: boolean | number;
|
|
138
|
+
/**
|
|
139
|
+
* THE HOST'S LIMITS (FR-45, FR-46): asked of every change — a socket's
|
|
140
|
+
* `call` or `undo`, a `POST /graview/ops` — before it is judged.
|
|
141
|
+
* `{ retryAfter }` is BUSY: the socket says `busy`, HTTP answers 429 with
|
|
142
|
+
* `Retry-After`, and the client sends the change again after the wait.
|
|
143
|
+
* `{ refuse }` is a hard cap: refused with reason `limit` (413 over
|
|
144
|
+
* HTTP), and the client takes the change back. `{ unavailable }` is a
|
|
145
|
+
* spell with no known end: refused `unavailable` (503 over HTTP), and
|
|
146
|
+
* the client keeps the change and sends it again, backing off.
|
|
147
|
+
*/
|
|
148
|
+
readonly limit?: Limit;
|
|
149
|
+
/**
|
|
150
|
+
* THE HOST'S CAPS ON WHAT A CHANGE WOULD DO: `liveProtocol`'s `admit`,
|
|
151
|
+
* on the socket and `POST /graview/ops`. Asked after a change is
|
|
152
|
+
* compiled and before anything is kept, with `limit`'s `asked` and the
|
|
153
|
+
* store's own plan of it; answered as `limit` is answered.
|
|
154
|
+
*/
|
|
155
|
+
readonly admit?: (asked: LimitAsked, planned: PlannedChange) => LimitAnswer | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* THE HOST'S BUILD (FR-44), an opaque string said in every welcome. A
|
|
158
|
+
* client on another build keeps working and is told once, so a person
|
|
159
|
+
* can reload when it suits them.
|
|
160
|
+
*/
|
|
161
|
+
readonly build?: string | ((peer: ServedSocket) => string | undefined);
|
|
162
|
+
/**
|
|
163
|
+
* WHAT A CLIENT CLAIMS ITS CHANGE CAME THROUGH, JUDGED (FR-52):
|
|
164
|
+
* `liveProtocol`'s `viaOf`, for the socket and every post. `viaOf` above
|
|
165
|
+
* reads the request; this reads a call's own `via` claim — a guest
|
|
166
|
+
* view's `view:<name>` — and answers the via to record, or nothing to
|
|
167
|
+
* keep the host's. Absent, a claim is never read.
|
|
168
|
+
*/
|
|
169
|
+
readonly viaClaimed?: (peer: ServedSocket, claimed: string | undefined) => string | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* A SOCKET KEEPS A KEY, NOT ITS SEAT (FR-41): `seatKey` names the seat
|
|
172
|
+
* `seatOf` read as a host's key, which a socket's state keeps instead of
|
|
173
|
+
* the principal — small enough for a Durable Object's attachment — and
|
|
174
|
+
* `seatOfKey` (`liveProtocol`'s `seatOf`) resolves it on every message.
|
|
175
|
+
* `seatKey` is handed the seat without its session (`seatOfTab`), so
|
|
176
|
+
* every tab of one seat holds one key and `publish` makes one view of
|
|
177
|
+
* it; keep what `seatOfKey` reads where a wake does not empty it. A key
|
|
178
|
+
* it no longer resolves is told to open again, and is opened again.
|
|
179
|
+
*/
|
|
180
|
+
readonly seatKey?: (seat: Principal) => string | undefined;
|
|
181
|
+
readonly seatOfKey?: (key: string) => Principal | undefined;
|
|
182
|
+
/** A refusal in the host's words: `liveProtocol`'s `refusal`, on the socket and `POST /graview/ops`. */
|
|
183
|
+
readonly refusal?: (error: unknown, calls: readonly MutationCall[], peer: ServedSocket) => WireRefusal | undefined;
|
|
184
|
+
/** The key a withheld op's opaque batch is minted under: `liveProtocol`'s `withheldKey`, the same across wakes. */
|
|
185
|
+
readonly withheldKey?: string;
|
|
186
|
+
/**
|
|
187
|
+
* THE LOWEST LIVE PROTOCOL SERVED (FR-44). A socket whose hello says an
|
|
188
|
+
* older one is answered `reload`: its client keeps what it had not sent,
|
|
189
|
+
* reloads onto a build that speaks this one, and offers it again there.
|
|
190
|
+
* Absent, every protocol is served.
|
|
191
|
+
*/
|
|
192
|
+
readonly minProtocol?: number;
|
|
193
|
+
/**
|
|
194
|
+
* THE LOWEST HOST PROTOCOL SERVED (FR-44): the host's own number for its
|
|
195
|
+
* half of the wire, beside `WIRE_PROTOCOL`. A socket whose hello says an
|
|
196
|
+
* older `hostProtocol` (`openRemote({ hostProtocol })`; absent is 0) is
|
|
197
|
+
* answered `reload`, as below `minProtocol`.
|
|
198
|
+
*/
|
|
199
|
+
readonly minHostProtocol?: number;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* THE DECLARATION THE HOST NOW SERVES (FR-43), handed to
|
|
203
|
+
* `declarationChanged`. Over a store the host holds, `store` is the one it
|
|
204
|
+
* migrated to `app` (with `flush` and `migrated` as at the start); over an
|
|
205
|
+
* adapter, the handler opens it again itself with `openStore`, which
|
|
206
|
+
* migrates what is stored.
|
|
207
|
+
*/
|
|
208
|
+
export interface DeclarationChange {
|
|
209
|
+
readonly app: GraviewApp<AnySchema>;
|
|
210
|
+
readonly store?: Store<AnySchema>;
|
|
211
|
+
readonly flush?: (landed: readonly Operation[]) => Promise<void>;
|
|
212
|
+
readonly migrated?: readonly string[];
|
|
213
|
+
}
|
|
214
|
+
/** The handler opens its own store from an adapter: one declaration plus one adapter is a running deployment. */
|
|
215
|
+
export interface AdapterStoreHandlerOptions<S extends AnySchema> extends HandlerOptions<S> {
|
|
216
|
+
/** Where the graph lives: any `PersistenceAdapter` — a file, SQLite, Durable Object storage. */
|
|
217
|
+
readonly adapter: PersistenceAdapter<string>;
|
|
218
|
+
readonly store?: never;
|
|
219
|
+
/** What to put in an empty store on first start. */
|
|
220
|
+
readonly seed?: GraphSnapshot;
|
|
221
|
+
readonly scope?: string;
|
|
119
222
|
/**
|
|
120
223
|
* THE MODULES THIS WORKSPACE HAS ON (FR-12) — usually what it pays for.
|
|
121
224
|
* Handed to `openStore`, which records a change from what the store's
|
|
@@ -125,9 +228,31 @@ export interface StoreHandlerOptions<S extends AnySchema> {
|
|
|
125
228
|
*/
|
|
126
229
|
readonly enabledModules?: readonly string[];
|
|
127
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* THE HANDLER OVER A STORE THE HOST ALREADY HOLDS (FR-42). A host with its
|
|
233
|
+
* own durability — a ledger of snapshots in parts, epochs, quarantine and
|
|
234
|
+
* restore, its own meter — opens, migrates and heals its `Store` itself,
|
|
235
|
+
* and the wire is served from that instance. Closing the handler does not
|
|
236
|
+
* close the store: it is the host's.
|
|
237
|
+
*/
|
|
238
|
+
export interface HeldStoreHandlerOptions<S extends AnySchema> extends HandlerOptions<S> {
|
|
239
|
+
readonly store: Store<S>;
|
|
240
|
+
readonly adapter?: never;
|
|
241
|
+
/**
|
|
242
|
+
* Resolves once what landed is durable: a call's answer waits for it.
|
|
243
|
+
* Handed the ops not yet durable, in seq order (`liveProtocol`'s
|
|
244
|
+
* `flush`); one that rejects refuses the call `unavailable`, and the
|
|
245
|
+
* change is kept and sent again. Absent, the answer goes at once.
|
|
246
|
+
*/
|
|
247
|
+
readonly flush?: (landed: readonly Operation[]) => Promise<void>;
|
|
248
|
+
/** What opening the store migrated, in the migrations' own words: said in the state, as `openStore`'s would be. */
|
|
249
|
+
readonly migrated?: readonly string[];
|
|
250
|
+
}
|
|
251
|
+
export type StoreHandlerOptions<S extends AnySchema> = AdapterStoreHandlerOptions<S> | HeldStoreHandlerOptions<S>;
|
|
128
252
|
export interface StoreHandler<S extends AnySchema> {
|
|
129
253
|
readonly store: Store<S>;
|
|
130
|
-
|
|
254
|
+
/** The open `openStore` made, when the handler opened the store from an adapter; absent over a store the host holds. */
|
|
255
|
+
readonly opened?: OpenedStore<S>;
|
|
131
256
|
/** Every WIRE route: a `Request` in, a `Response` out. Bound, so it can be handed on as it is. */
|
|
132
257
|
readonly handle: (request: Request) => Promise<Response>;
|
|
133
258
|
/**
|
|
@@ -135,28 +260,69 @@ export interface StoreHandler<S extends AnySchema> {
|
|
|
135
260
|
* (the seat is read from it, as on every route) and a way to send text
|
|
136
261
|
* down the socket; it answers with the connection to hand each message
|
|
137
262
|
* the client sends and the close, or with the `Response` refusing it (a
|
|
138
|
-
* 401 when it cannot say who is asking). A Worker
|
|
139
|
-
*
|
|
140
|
-
*
|
|
263
|
+
* 401 when it cannot say who is asking). A Worker attaches a
|
|
264
|
+
* `WebSocketPair`'s server end here; `serveStore` attaches Node's
|
|
265
|
+
* upgrade. A host that hibernates holds each socket's state itself
|
|
266
|
+
* instead: `seatFor` and `protocol`.
|
|
141
267
|
*/
|
|
142
268
|
readonly connect: (request: Request, socket: LiveSocket) => Promise<LiveConnection | Response>;
|
|
143
|
-
/**
|
|
269
|
+
/**
|
|
270
|
+
* THE STATE A SOCKET STARTS WITH (FR-41): its seat, read by `seatOf`
|
|
271
|
+
* from the upgrade, and its channel, said by `viaOf` (FR-52) — or the
|
|
272
|
+
* `Response` refusing it. A hibernating host keeps it in the socket's
|
|
273
|
+
* attachment and hands it, with each message, to `protocol.receive`.
|
|
274
|
+
*/
|
|
275
|
+
readonly seatFor: (request: Request) => Promise<LiveSocketState | Response>;
|
|
276
|
+
/** The live protocol over this handler's store, for a host that holds its sockets' state itself (FR-41). Made again when the declaration changes. */
|
|
277
|
+
readonly protocol: LiveProtocol<S>;
|
|
278
|
+
/**
|
|
279
|
+
* THE DECLARATION CHANGED (FR-43). The handler serves `change.app` from
|
|
280
|
+
* now on, over the store migrated to it — the host's, or the one it opens
|
|
281
|
+
* again from its adapter — and every open socket is told
|
|
282
|
+
* `{ t: "declaration", version }`. A client of `openRemote` then opens on
|
|
283
|
+
* the new declaration without reloading the page. While the change is
|
|
284
|
+
* made, every request and message waits for it, so nothing lands on the
|
|
285
|
+
* store being let go. `store`, `opened` and `protocol` are the new ones
|
|
286
|
+
* afterwards.
|
|
287
|
+
*/
|
|
288
|
+
declarationChanged(change: DeclarationChange): Promise<void>;
|
|
289
|
+
/**
|
|
290
|
+
* SOMEBODY HERE WITHOUT A SOCKET (FR-47): an agent acting over MCP or an
|
|
291
|
+
* RPC, a polling tab. Told to every socket and every poll at once, as
|
|
292
|
+
* each seat may see them, and gone `ttlMs` after (30 s unsaid) unless
|
|
293
|
+
* announced again. The host builds the presence — `visitorPresence(seat)`
|
|
294
|
+
* — because it is the host who knows who the seat is.
|
|
295
|
+
*/
|
|
296
|
+
announce(presence: Presence, ttlMs?: number): void;
|
|
297
|
+
/**
|
|
298
|
+
* AN AGENT CALLED, AND IS HERE: the hook `createMcpHttpHandler`'s
|
|
299
|
+
* `onCall` takes (`@graview/tools`), so an agent seat is announced on
|
|
300
|
+
* every tool call — a read lands no op, and would otherwise leave it out
|
|
301
|
+
* of the room. Announced as an op of its would announce it: an agent
|
|
302
|
+
* seat only, for `announceAgents`' time and never when that is `false`,
|
|
303
|
+
* not when it holds a socket here, and for whom only to a seat that may
|
|
304
|
+
* see the person. Bound, so it can be handed on as it is.
|
|
305
|
+
*/
|
|
306
|
+
readonly onCall: (call: {
|
|
307
|
+
readonly principal: Principal;
|
|
308
|
+
}) => void;
|
|
309
|
+
/** Writes what is pending and lets the adapter go — or, over a store the host holds, writes what is pending and leaves the store open. */
|
|
144
310
|
close(): Promise<void>;
|
|
145
311
|
}
|
|
146
312
|
/** A seat read from a request's headers — only ever when the host trusts them. */
|
|
147
313
|
export declare function seatFromHeaders(request: Request): Principal;
|
|
148
|
-
/**
|
|
149
|
-
* WHO IS HERE, AS ONE SEAT MAY BE TOLD (FR-02). Somebody whose own record
|
|
150
|
-
* the seat may not see is not shown to it at all; anybody else is, without
|
|
151
|
-
* where they stand or what they hover when that names a record the seat
|
|
152
|
-
* may not see. A participant whose id is no record is shown as they are.
|
|
153
|
-
*/
|
|
154
|
-
export declare function presenceSeenBy(who: readonly Presence[], sees: (id: string) => boolean): Presence[];
|
|
155
314
|
/**
|
|
156
315
|
* Open the store and answer the wire for it. The migration runs HERE, once,
|
|
157
316
|
* against the stored graph — which is the whole reason a server is the
|
|
158
317
|
* honest place for it. A browser that migrates its own copy migrates it once
|
|
159
318
|
* per browser; a server that migrates the roster migrates the roster.
|
|
319
|
+
*
|
|
320
|
+
* Or answer the wire for a store the host opened itself (FR-42): the
|
|
321
|
+
* adapter form is that, over the store `openStore` hands back.
|
|
160
322
|
*/
|
|
323
|
+
export declare function createStoreHandler<S extends AnySchema>(options: AdapterStoreHandlerOptions<S>): Promise<StoreHandler<S> & {
|
|
324
|
+
readonly opened: OpenedStore<S>;
|
|
325
|
+
}>;
|
|
326
|
+
export declare function createStoreHandler<S extends AnySchema>(options: HeldStoreHandlerOptions<S>): Promise<StoreHandler<S>>;
|
|
161
327
|
export declare function createStoreHandler<S extends AnySchema>(options: StoreHandlerOptions<S>): Promise<StoreHandler<S>>;
|
|
162
328
|
//# sourceMappingURL=handler.d.ts.map
|
package/dist/handler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAa,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAC3H,OAAO,EAIL,cAAc,EAMd,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EAGlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUP,CAAC;AAEX,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC;AAExC,yDAAyD;AACzD,UAAU,cAAc,CAAC,CAAC,SAAS,SAAS;IAC1C,QAAQ,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