jazz-wasm 2.0.0-alpha.4 → 2.0.0-alpha.41

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Garden Computing, Inc. and contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jazz-wasm",
3
- "version": "2.0.0-alpha.4",
3
+ "version": "2.0.0-alpha.41",
4
4
  "description": "WebAssembly bindings for the Jazz database engine",
5
5
  "keywords": [
6
6
  "crdt",
@@ -18,12 +18,14 @@
18
18
  "pkg/jazz_wasm.js",
19
19
  "pkg/jazz_wasm.d.ts"
20
20
  ],
21
+ "type": "module",
21
22
  "main": "pkg/jazz_wasm.js",
22
23
  "types": "pkg/jazz_wasm.d.ts",
24
+ "publishConfig": {
25
+ "access": "public",
26
+ "tag": "alpha"
27
+ },
23
28
  "scripts": {
24
29
  "build": "wasm-pack build --target web --profiling"
25
- },
26
- "devDependencies": {
27
- "wasm-pack": "^0.14.0"
28
30
  }
29
- }
31
+ }
@@ -1,57 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export interface WasmColumnDescriptor {
4
- name: string;
5
- column_type: WasmColumnType;
6
- nullable: boolean;
7
- references?: string;
8
- }
9
-
10
- export interface WasmOperationPolicy {
11
- using?: WasmPolicyExpr;
12
- with_check?: WasmPolicyExpr;
13
- }
14
-
15
- export interface WasmRow {
16
- id: string;
17
- values: WasmValue[];
18
- }
19
-
20
- export interface WasmRowDelta {
21
- added: WasmRow[];
22
- removed: WasmRow[];
23
- updated: [WasmRow, WasmRow][];
24
- pending: boolean;
25
- }
26
-
27
- export interface WasmSchema {
28
- tables: Record<string, WasmTableSchema>;
29
- }
30
-
31
- export interface WasmTablePolicies {
32
- select?: WasmOperationPolicy;
33
- insert?: WasmOperationPolicy;
34
- update?: WasmOperationPolicy;
35
- delete?: WasmOperationPolicy;
36
- }
37
-
38
- export interface WasmTableSchema {
39
- columns: WasmColumnDescriptor[];
40
- policies?: WasmTablePolicies;
41
- }
42
-
43
- export type WasmCmpOp = "Eq" | "Ne" | "Lt" | "Le" | "Gt" | "Ge";
44
-
45
- export type WasmColumnType = { type: "Integer" } | { type: "BigInt" } | { type: "Boolean" } | { type: "Text" } | { type: "Enum"; variants: string[] } | { type: "Timestamp" } | { type: "Uuid" } | { type: "Array"; element: WasmColumnType } | { type: "Row"; columns: WasmColumnDescriptor[] };
46
-
47
- export type WasmPolicyExpr = { type: "Cmp"; column: string; op: WasmCmpOp; value: WasmPolicyValue } | { type: "IsNull"; column: string } | { type: "IsNotNull"; column: string } | { type: "In"; column: string; session_path: string[] } | { type: "Exists"; table: string; condition: WasmPolicyExpr } | { type: "ExistsRel"; rel: any } | { type: "Inherits"; operation: WasmPolicyOperation; via_column: string; max_depth?: number } | { type: "And"; exprs: WasmPolicyExpr[] } | { type: "Or"; exprs: WasmPolicyExpr[] } | { type: "Not"; expr: WasmPolicyExpr } | { type: "True" } | { type: "False" };
48
-
49
- export type WasmPolicyOperation = "Select" | "Insert" | "Update" | "Delete";
50
-
51
- export type WasmPolicyValue = { type: "Literal"; value: WasmValue } | { type: "SessionRef"; path: string[] };
52
-
53
- export type WasmValue = { type: "Integer"; value: number } | { type: "BigInt"; value: number } | { type: "Boolean"; value: boolean } | { type: "Text"; value: string } | { type: "Timestamp"; value: number } | { type: "Uuid"; value: string } | { type: "Array"; value: WasmValue[] } | { type: "Row"; value: WasmValue[] } | { type: "Null" };
54
-
55
3
 
56
4
  /**
57
5
  * WASM-exposed QueryBuilder with camelCase methods.
@@ -155,6 +103,15 @@ export class WasmQueryBuilder {
155
103
  export class WasmRuntime {
156
104
  free(): void;
157
105
  [Symbol.dispose](): void;
106
+ /**
107
+ * Debug helper: expose schema/lens state currently loaded in SchemaManager.
108
+ */
109
+ __debugSchemaState(): any;
110
+ /**
111
+ * Debug helper: seed a historical schema and persist schema/lens catalogue objects.
112
+ */
113
+ __debugSeedLiveSchema(schema_json: string): void;
114
+ acknowledgeRejectedBatch(batch_id: string): boolean;
158
115
  /**
159
116
  * Add a client connection (for server-side use in tests).
160
117
  */
@@ -166,15 +123,60 @@ export class WasmRuntime {
166
123
  * catalogue sync messages (from queue_full_sync_to_server) are sent
167
124
  * before the call returns, rather than being deferred to a microtask.
168
125
  */
169
- addServer(): void;
126
+ addServer(server_catalogue_state_hash?: string | null, next_sync_seq?: number | null): void;
127
+ /**
128
+ * Connect to a Jazz server over WebSocket.
129
+ *
130
+ * Parses `auth_json` into `AuthConfig`, wires a `TransportManager` into
131
+ * `RuntimeCore`, and spawns the manager loop via `spawn_local`.
132
+ */
133
+ connect(url: string, auth_json: string): void;
134
+ /**
135
+ * Phase 1 of 2-phase subscribe: allocate a handle and store query params.
136
+ * No compilation, no sync, no tick — just bookkeeping.
137
+ */
138
+ createSubscription(query_json: string, session_json?: string | null, settled_tier?: string | null, options_json?: string | null): number;
170
139
  /**
171
140
  * Delete a row by ObjectId.
172
141
  */
173
- delete(object_id: string): void;
142
+ delete(object_id: string): any;
174
143
  /**
175
144
  * Delete a row and return a Promise that resolves when the tier acks.
176
145
  */
177
- deleteWithAck(object_id: string, tier: string): Promise<any>;
146
+ deleteDurable(object_id: string, tier: string): Promise<any>;
147
+ /**
148
+ * Delete a row and return a Promise that resolves when the tier acks,
149
+ * scoped to an explicit session principal.
150
+ */
151
+ deleteDurableWithSession(object_id: string, write_context_json: string | null | undefined, tier: string): Promise<any>;
152
+ /**
153
+ * Delete a row immediately, returning the logical batch id that tracks
154
+ * replayable persisted fate for this write.
155
+ */
156
+ deletePersisted(object_id: string, tier: string): any;
157
+ /**
158
+ * Delete a row immediately, returning the logical batch id that tracks
159
+ * replayable persisted fate for this write, scoped to an explicit session
160
+ * principal or transactional write context.
161
+ */
162
+ deletePersistedWithSession(object_id: string, write_context_json: string | null | undefined, tier: string): any;
163
+ /**
164
+ * Delete a row by ObjectId as an explicit session principal.
165
+ */
166
+ deleteWithSession(object_id: string, write_context_json?: string | null): any;
167
+ static deriveUserId(seed_b64: string): string;
168
+ /**
169
+ * Disconnect from the Jazz server and drop the transport handle.
170
+ */
171
+ disconnect(): void;
172
+ drainRejectedBatchIds(): any;
173
+ /**
174
+ * Phase 2 of 2-phase subscribe: compile graph, register subscription,
175
+ * sync to servers, attach callback, and deliver the first delta.
176
+ *
177
+ * No-ops silently if the handle was already unsubscribed.
178
+ */
179
+ executeSubscription(handle: number, on_update: Function): void;
178
180
  /**
179
181
  * Flush all data to persistent storage (snapshot).
180
182
  */
@@ -183,6 +185,7 @@ export class WasmRuntime {
183
185
  * Flush only the WAL buffer to OPFS (not the snapshot).
184
186
  */
185
187
  flushWal(): void;
188
+ static getPublicKeyBase64url(seed_b64: string): string;
186
189
  /**
187
190
  * Get the current schema as JSON.
188
191
  */
@@ -195,15 +198,38 @@ export class WasmRuntime {
195
198
  * Insert a row into a table.
196
199
  *
197
200
  * # Returns
198
- * The new row's ObjectId as a UUID string.
201
+ * The inserted row as `{ id, values, batchId }`.
199
202
  */
200
- insert(table: string, values: any): string;
203
+ insert(table: string, values: any, object_id?: string | null): any;
201
204
  /**
202
205
  * Insert a row and return a Promise that resolves when the tier acks.
203
206
  *
204
- * `tier` must be one of: "worker", "edge", "core".
207
+ * `tier` must be one of: "local", "edge", "global".
208
+ */
209
+ insertDurable(table: string, values: any, tier: string, object_id?: string | null): Promise<any>;
210
+ /**
211
+ * Insert a row and return a Promise that resolves when the tier acks,
212
+ * scoped to an explicit session principal.
213
+ */
214
+ insertDurableWithSession(table: string, values: any, write_context_json: string | null | undefined, tier: string, object_id?: string | null): Promise<any>;
215
+ /**
216
+ * Insert a row immediately, returning the logical batch id that tracks
217
+ * replayable persisted fate for this write.
205
218
  */
206
- insertWithAck(table: string, values: any, tier: string): Promise<any>;
219
+ insertPersisted(table: string, values: any, tier: string): any;
220
+ /**
221
+ * Insert a row immediately, returning the logical batch id that tracks
222
+ * replayable persisted fate for this write, scoped to an explicit session
223
+ * principal or transactional write context.
224
+ */
225
+ insertPersistedWithSession(table: string, values: any, write_context_json: string | null | undefined, tier: string): any;
226
+ /**
227
+ * Insert a row into a table as an explicit session principal.
228
+ */
229
+ insertWithSession(table: string, values: any, write_context_json?: string | null, object_id?: string | null): any;
230
+ loadLocalBatchRecord(batch_id: string): any;
231
+ loadLocalBatchRecords(): any;
232
+ static mintJazzSelfSignedToken(seed_b64: string, issuer: string, audience: string, ttl_seconds: bigint, now_seconds: bigint): string;
207
233
  /**
208
234
  * Create a new WasmRuntime.
209
235
  *
@@ -214,46 +240,64 @@ export class WasmRuntime {
214
240
  * * `app_id` - Application identifier
215
241
  * * `env` - Environment (e.g., "dev", "prod")
216
242
  * * `user_branch` - User's branch name (e.g., "main")
217
- * * `tier` - Optional persistence tier ("worker", "edge", "core").
243
+ * * `tier` - Optional node durability tier ("local", "edge", "global").
218
244
  * Set for server nodes to enable ack emission.
245
+ * * `use_binary_encoding` - Optional outgoing sync payload encoding mode.
246
+ * `Some(true)` emits postcard bytes (`Uint8Array`), otherwise JSON strings.
247
+ */
248
+ constructor(schema_json: string, app_id: string, env: string, user_branch: string, tier?: string | null, use_binary_encoding?: boolean | null);
249
+ /**
250
+ * Register a JS callback that fires when the Rust transport receives an
251
+ * auth failure (Unauthorized) from the server during the WS handshake.
252
+ *
253
+ * The callback receives a single string argument: a human-readable reason.
219
254
  */
220
- constructor(schema_json: string, app_id: string, env: string, user_branch: string, tier?: string | null);
255
+ onAuthFailure(callback: Function): void;
221
256
  /**
222
257
  * Called by JS when a sync message arrives from the server.
223
258
  *
224
259
  * # Arguments
225
- * * `message_json` - JSON-encoded SyncPayload
260
+ * * `payload` - Either postcard-encoded SyncPayload bytes (`Uint8Array`)
261
+ * or JSON-encoded SyncPayload (`string`)
226
262
  */
227
- onSyncMessageReceived(message_json: string): void;
263
+ onSyncMessageReceived(payload: any, sequence?: number | null): void;
228
264
  /**
229
265
  * Called by JS when a sync message arrives from a client (not a server).
230
266
  *
231
267
  * # Arguments
232
268
  * * `client_id` - UUID string of the sending client
233
- * * `message_json` - JSON-encoded SyncPayload
269
+ * * `payload` - Postcard-encoded SyncPayload bytes
234
270
  */
235
- onSyncMessageReceivedFromClient(client_id: string, message_json: string): void;
271
+ onSyncMessageReceivedFromClient(client_id: string, payload: any): void;
236
272
  /**
237
273
  * Register a callback for outgoing sync messages.
238
274
  */
239
275
  onSyncMessageToSend(callback: Function): void;
276
+ /**
277
+ * Create an ephemeral WasmRuntime backed by in-memory storage.
278
+ *
279
+ * Data is not persisted across page loads. Used as a fallback when OPFS
280
+ * is unavailable (e.g. Firefox private browsing mode).
281
+ */
282
+ static openEphemeral(schema_json: string, app_id: string, env: string, user_branch: string, db_name: string, tier: string | null | undefined, use_binary_encoding: boolean): WasmRuntime;
240
283
  /**
241
284
  * Create a persistent WasmRuntime backed by OPFS.
242
285
  *
243
286
  * Opens a single OPFS file namespace and restores state from the latest
244
287
  * durable checkpoint.
245
288
  */
246
- static openPersistent(schema_json: string, app_id: string, env: string, user_branch: string, db_name: string, tier?: string | null): Promise<WasmRuntime>;
289
+ static openPersistent(schema_json: string, app_id: string, env: string, user_branch: string, db_name: string, tier: string | null | undefined, use_binary_encoding: boolean): Promise<WasmRuntime>;
247
290
  /**
248
291
  * Execute a query and return results as a Promise.
249
292
  *
250
- * Optional `settled_tier` holds delivery until the tier confirms.
293
+ * Optional durability tier controls remote settlement behavior.
251
294
  */
252
- query(query_json: string, session_json?: string | null, settled_tier?: string | null): Promise<any>;
295
+ query(query_json: string, session_json?: string | null, settled_tier?: string | null, options_json?: string | null): Promise<any>;
253
296
  /**
254
297
  * Remove the current upstream server connection.
255
298
  */
256
299
  removeServer(): void;
300
+ sealBatch(batch_id: string): void;
257
301
  /**
258
302
  * Set a client's role.
259
303
  *
@@ -269,12 +313,12 @@ export class WasmRuntime {
269
313
  * - with upstream server: first callback waits for protocol QuerySettled convergence
270
314
  * - without upstream server: first callback is local-immediate
271
315
  *
272
- * Pass `settled_tier` to override this default.
316
+ * Pass durability options to override this default.
273
317
  *
274
318
  * # Returns
275
319
  * Subscription handle (f64) for later unsubscription.
276
320
  */
277
- subscribe(query_json: string, on_update: Function, session_json?: string | null, settled_tier?: string | null): number;
321
+ subscribe(query_json: string, on_update: Function, session_json?: string | null, settled_tier?: string | null, options_json?: string | null): number;
278
322
  /**
279
323
  * Unsubscribe from a query.
280
324
  */
@@ -282,11 +326,40 @@ export class WasmRuntime {
282
326
  /**
283
327
  * Update a row by ObjectId.
284
328
  */
285
- update(object_id: string, values: any): void;
329
+ update(object_id: string, values: any): any;
330
+ /**
331
+ * Push updated auth credentials into the live transport.
332
+ */
333
+ updateAuth(auth_json: string): void;
286
334
  /**
287
335
  * Update a row and return a Promise that resolves when the tier acks.
288
336
  */
289
- updateWithAck(object_id: string, values: any, tier: string): Promise<any>;
337
+ updateDurable(object_id: string, values: any, tier: string): Promise<any>;
338
+ /**
339
+ * Update a row and return a Promise that resolves when the tier acks,
340
+ * scoped to an explicit session principal.
341
+ */
342
+ updateDurableWithSession(object_id: string, values: any, write_context_json: string | null | undefined, tier: string): Promise<any>;
343
+ /**
344
+ * Update a row immediately, returning the logical batch id that tracks
345
+ * replayable persisted fate for this write.
346
+ */
347
+ updatePersisted(object_id: string, values: any, tier: string): any;
348
+ /**
349
+ * Update a row immediately, returning the logical batch id that tracks
350
+ * replayable persisted fate for this write, scoped to an explicit session
351
+ * principal or transactional write context.
352
+ */
353
+ updatePersistedWithSession(object_id: string, values: any, write_context_json: string | null | undefined, tier: string): any;
354
+ /**
355
+ * Update a row by ObjectId as an explicit session principal.
356
+ *
357
+ * # Arguments
358
+ * * `object_id` - UUID string of target object
359
+ * * `values` - Partial update map (`{ columnName: Value }`)
360
+ * * `session_json` - Optional JSON-encoded Session used for policy checks
361
+ */
362
+ updateWithSession(object_id: string, values: any, write_context_json?: string | null): any;
290
363
  }
291
364
 
292
365
  export function bench_get_cache_bytes(): number;
@@ -343,7 +416,7 @@ export function currentTimestamp(): bigint;
343
416
  /**
344
417
  * Generate a new UUID v7 (time-ordered).
345
418
  *
346
- * Useful for generating row IDs on the client side.
419
+ * Useful when a caller wants the default generated row-id shape.
347
420
  */
348
421
  export function generateId(): string;
349
422
 
@@ -365,10 +438,63 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
365
438
 
366
439
  export interface InitOutput {
367
440
  readonly memory: WebAssembly.Memory;
368
- readonly __wbg_wasmquerybuilder_free: (a: number, b: number) => void;
369
441
  readonly currentTimestamp: () => bigint;
370
442
  readonly generateId: () => [number, number];
371
443
  readonly parseSchema: (a: number, b: number) => [number, number, number];
444
+ readonly init: () => void;
445
+ readonly __wbg_wasmruntime_free: (a: number, b: number) => void;
446
+ readonly wasmruntime___debugSchemaState: (a: number) => [number, number, number];
447
+ readonly wasmruntime___debugSeedLiveSchema: (a: number, b: number, c: number) => [number, number];
448
+ readonly wasmruntime_acknowledgeRejectedBatch: (a: number, b: number, c: number) => [number, number, number];
449
+ readonly wasmruntime_addClient: (a: number) => [number, number];
450
+ readonly wasmruntime_addServer: (a: number, b: number, c: number, d: number, e: number) => [number, number];
451
+ readonly wasmruntime_connect: (a: number, b: number, c: number, d: number, e: number) => [number, number];
452
+ readonly wasmruntime_createSubscription: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
453
+ readonly wasmruntime_delete: (a: number, b: number, c: number) => [number, number, number];
454
+ readonly wasmruntime_deleteDurable: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
455
+ readonly wasmruntime_deleteDurableWithSession: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
456
+ readonly wasmruntime_deletePersisted: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
457
+ readonly wasmruntime_deletePersistedWithSession: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
458
+ readonly wasmruntime_deleteWithSession: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
459
+ readonly wasmruntime_deriveUserId: (a: number, b: number) => [number, number, number, number];
460
+ readonly wasmruntime_disconnect: (a: number) => void;
461
+ readonly wasmruntime_drainRejectedBatchIds: (a: number) => [number, number, number];
462
+ readonly wasmruntime_executeSubscription: (a: number, b: number, c: any) => [number, number];
463
+ readonly wasmruntime_flush: (a: number) => void;
464
+ readonly wasmruntime_flushWal: (a: number) => void;
465
+ readonly wasmruntime_getPublicKeyBase64url: (a: number, b: number) => [number, number, number, number];
466
+ readonly wasmruntime_getSchema: (a: number) => [number, number, number];
467
+ readonly wasmruntime_getSchemaHash: (a: number) => [number, number];
468
+ readonly wasmruntime_insert: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
469
+ readonly wasmruntime_insertDurable: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
470
+ readonly wasmruntime_insertDurableWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
471
+ readonly wasmruntime_insertPersisted: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
472
+ readonly wasmruntime_insertPersistedWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
473
+ readonly wasmruntime_insertWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
474
+ readonly wasmruntime_loadLocalBatchRecord: (a: number, b: number, c: number) => [number, number, number];
475
+ readonly wasmruntime_loadLocalBatchRecords: (a: number) => [number, number, number];
476
+ readonly wasmruntime_mintJazzSelfSignedToken: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: bigint) => [number, number, number, number];
477
+ readonly wasmruntime_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => [number, number, number];
478
+ readonly wasmruntime_onAuthFailure: (a: number, b: any) => void;
479
+ readonly wasmruntime_onSyncMessageReceived: (a: number, b: any, c: number, d: number) => [number, number];
480
+ readonly wasmruntime_onSyncMessageReceivedFromClient: (a: number, b: number, c: number, d: any) => [number, number];
481
+ readonly wasmruntime_onSyncMessageToSend: (a: number, b: any) => void;
482
+ readonly wasmruntime_openEphemeral: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => [number, number, number];
483
+ readonly wasmruntime_openPersistent: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => any;
484
+ readonly wasmruntime_query: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
485
+ readonly wasmruntime_removeServer: (a: number) => void;
486
+ readonly wasmruntime_sealBatch: (a: number, b: number, c: number) => [number, number];
487
+ readonly wasmruntime_setClientRole: (a: number, b: number, c: number, d: number, e: number) => [number, number];
488
+ readonly wasmruntime_subscribe: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
489
+ readonly wasmruntime_unsubscribe: (a: number, b: number) => void;
490
+ readonly wasmruntime_update: (a: number, b: number, c: number, d: any) => [number, number, number];
491
+ readonly wasmruntime_updateAuth: (a: number, b: number, c: number) => [number, number];
492
+ readonly wasmruntime_updateDurable: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
493
+ readonly wasmruntime_updateDurableWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
494
+ readonly wasmruntime_updatePersisted: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
495
+ readonly wasmruntime_updatePersistedWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
496
+ readonly wasmruntime_updateWithSession: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
497
+ readonly __wbg_wasmquerybuilder_free: (a: number, b: number) => void;
372
498
  readonly wasmquerybuilder_alias: (a: number, b: number, c: number) => number;
373
499
  readonly wasmquerybuilder_branch: (a: number, b: number, c: number) => number;
374
500
  readonly wasmquerybuilder_branches: (a: number, b: number, c: number) => number;
@@ -390,30 +516,6 @@ export interface InitOutput {
390
516
  readonly wasmquerybuilder_orderBy: (a: number, b: number, c: number) => number;
391
517
  readonly wasmquerybuilder_orderByDesc: (a: number, b: number, c: number) => number;
392
518
  readonly wasmquerybuilder_select: (a: number, b: number, c: number) => number;
393
- readonly init: () => void;
394
- readonly __wbg_wasmruntime_free: (a: number, b: number) => void;
395
- readonly wasmruntime_addClient: (a: number) => [number, number];
396
- readonly wasmruntime_addServer: (a: number) => void;
397
- readonly wasmruntime_delete: (a: number, b: number, c: number) => [number, number];
398
- readonly wasmruntime_deleteWithAck: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
399
- readonly wasmruntime_flush: (a: number) => void;
400
- readonly wasmruntime_flushWal: (a: number) => void;
401
- readonly wasmruntime_getSchema: (a: number) => [number, number, number];
402
- readonly wasmruntime_getSchemaHash: (a: number) => [number, number];
403
- readonly wasmruntime_insert: (a: number, b: number, c: number, d: any) => [number, number, number, number];
404
- readonly wasmruntime_insertWithAck: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
405
- readonly wasmruntime_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
406
- readonly wasmruntime_onSyncMessageReceived: (a: number, b: number, c: number) => [number, number];
407
- readonly wasmruntime_onSyncMessageReceivedFromClient: (a: number, b: number, c: number, d: number, e: number) => [number, number];
408
- readonly wasmruntime_onSyncMessageToSend: (a: number, b: any) => void;
409
- readonly wasmruntime_openPersistent: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
410
- readonly wasmruntime_query: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
411
- readonly wasmruntime_removeServer: (a: number) => void;
412
- readonly wasmruntime_setClientRole: (a: number, b: number, c: number, d: number, e: number) => [number, number];
413
- readonly wasmruntime_subscribe: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
414
- readonly wasmruntime_unsubscribe: (a: number, b: number) => void;
415
- readonly wasmruntime_update: (a: number, b: number, c: number, d: any) => [number, number];
416
- readonly wasmruntime_updateWithAck: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
417
519
  readonly bench_get_pin_internal_pages: () => number;
418
520
  readonly bench_opfs_cold_random_read: (a: number, b: number) => any;
419
521
  readonly bench_opfs_cold_sequential_read: (a: number, b: number) => any;
@@ -437,15 +539,18 @@ export interface InitOutput {
437
539
  readonly bench_reset_overflow_threshold_bytes: () => void;
438
540
  readonly bench_reset_pin_internal_pages: () => void;
439
541
  readonly bench_reset_read_coalesce_pages: () => void;
440
- readonly wasm_bindgen__closure__destroy__hf4559643960778aa: (a: number, b: number) => void;
441
- readonly wasm_bindgen__convert__closures_____invoke__h80f2dc13026cb48e: (a: number, b: number, c: any, d: any) => void;
442
- readonly wasm_bindgen__convert__closures_____invoke__hb8186e1d67b17c41: (a: number, b: number, c: any) => void;
542
+ readonly wasm_bindgen__convert__closures_____invoke__h656199c36535c3e6: (a: number, b: number, c: any) => [number, number];
543
+ readonly wasm_bindgen__convert__closures_____invoke__h250bbd6a67e0e1e6: (a: number, b: number, c: any, d: any) => void;
544
+ readonly wasm_bindgen__convert__closures_____invoke__hf7ddf3622752ec36: (a: number, b: number, c: any) => void;
545
+ readonly wasm_bindgen__convert__closures_____invoke__hc18e08680cddc2e5: (a: number, b: number, c: any) => void;
546
+ readonly wasm_bindgen__convert__closures_____invoke__h03757a48b3eba690: (a: number, b: number) => void;
443
547
  readonly __wbindgen_malloc: (a: number, b: number) => number;
444
548
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
445
549
  readonly __wbindgen_exn_store: (a: number) => void;
446
550
  readonly __externref_table_alloc: () => number;
447
551
  readonly __wbindgen_externrefs: WebAssembly.Table;
448
552
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
553
+ readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
449
554
  readonly __externref_table_dealloc: (a: number) => void;
450
555
  readonly __wbindgen_start: () => void;
451
556
  }