jazz-wasm 2.0.0-alpha.3 → 2.0.0-alpha.31
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/package.json +7 -5
- package/pkg/jazz_wasm.d.ts +183 -88
- package/pkg/jazz_wasm.js +888 -177
- package/pkg/jazz_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jazz-wasm",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.31",
|
|
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
|
+
}
|
package/pkg/jazz_wasm.d.ts
CHANGED
|
@@ -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,7 +123,19 @@ 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
|
*/
|
|
@@ -174,7 +143,39 @@ export class WasmRuntime {
|
|
|
174
143
|
/**
|
|
175
144
|
* Delete a row and return a Promise that resolves when the tier acks.
|
|
176
145
|
*/
|
|
177
|
-
|
|
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): void;
|
|
167
|
+
static deriveUserId(seed_b64: string): string;
|
|
168
|
+
/**
|
|
169
|
+
* Disconnect from the Jazz server and drop the transport handle.
|
|
170
|
+
*/
|
|
171
|
+
disconnect(): void;
|
|
172
|
+
/**
|
|
173
|
+
* Phase 2 of 2-phase subscribe: compile graph, register subscription,
|
|
174
|
+
* sync to servers, attach callback, and deliver the first delta.
|
|
175
|
+
*
|
|
176
|
+
* No-ops silently if the handle was already unsubscribed.
|
|
177
|
+
*/
|
|
178
|
+
executeSubscription(handle: number, on_update: Function): void;
|
|
178
179
|
/**
|
|
179
180
|
* Flush all data to persistent storage (snapshot).
|
|
180
181
|
*/
|
|
@@ -183,6 +184,7 @@ export class WasmRuntime {
|
|
|
183
184
|
* Flush only the WAL buffer to OPFS (not the snapshot).
|
|
184
185
|
*/
|
|
185
186
|
flushWal(): void;
|
|
187
|
+
static getPublicKeyBase64url(seed_b64: string): string;
|
|
186
188
|
/**
|
|
187
189
|
* Get the current schema as JSON.
|
|
188
190
|
*/
|
|
@@ -195,15 +197,38 @@ export class WasmRuntime {
|
|
|
195
197
|
* Insert a row into a table.
|
|
196
198
|
*
|
|
197
199
|
* # Returns
|
|
198
|
-
* The
|
|
200
|
+
* The inserted row as `{ id, values }`.
|
|
199
201
|
*/
|
|
200
|
-
insert(table: string, values: any):
|
|
202
|
+
insert(table: string, values: any, object_id?: string | null): any;
|
|
201
203
|
/**
|
|
202
204
|
* Insert a row and return a Promise that resolves when the tier acks.
|
|
203
205
|
*
|
|
204
|
-
* `tier` must be one of: "worker", "edge", "
|
|
206
|
+
* `tier` must be one of: "worker", "edge", "global".
|
|
207
|
+
*/
|
|
208
|
+
insertDurable(table: string, values: any, tier: string, object_id?: string | null): Promise<any>;
|
|
209
|
+
/**
|
|
210
|
+
* Insert a row and return a Promise that resolves when the tier acks,
|
|
211
|
+
* scoped to an explicit session principal.
|
|
212
|
+
*/
|
|
213
|
+
insertDurableWithSession(table: string, values: any, write_context_json: string | null | undefined, tier: string, object_id?: string | null): Promise<any>;
|
|
214
|
+
/**
|
|
215
|
+
* Insert a row immediately, returning the logical batch id that tracks
|
|
216
|
+
* replayable persisted fate for this write.
|
|
205
217
|
*/
|
|
206
|
-
|
|
218
|
+
insertPersisted(table: string, values: any, tier: string): any;
|
|
219
|
+
/**
|
|
220
|
+
* Insert a row immediately, returning the logical batch id that tracks
|
|
221
|
+
* replayable persisted fate for this write, scoped to an explicit session
|
|
222
|
+
* principal or transactional write context.
|
|
223
|
+
*/
|
|
224
|
+
insertPersistedWithSession(table: string, values: any, write_context_json: string | null | undefined, tier: string): any;
|
|
225
|
+
/**
|
|
226
|
+
* Insert a row into a table as an explicit session principal.
|
|
227
|
+
*/
|
|
228
|
+
insertWithSession(table: string, values: any, write_context_json?: string | null, object_id?: string | null): any;
|
|
229
|
+
loadLocalBatchRecord(batch_id: string): any;
|
|
230
|
+
loadLocalBatchRecords(): any;
|
|
231
|
+
static mintLocalFirstToken(seed_b64: string, audience: string, ttl_seconds: bigint, now_seconds: bigint): string;
|
|
207
232
|
/**
|
|
208
233
|
* Create a new WasmRuntime.
|
|
209
234
|
*
|
|
@@ -214,25 +239,35 @@ export class WasmRuntime {
|
|
|
214
239
|
* * `app_id` - Application identifier
|
|
215
240
|
* * `env` - Environment (e.g., "dev", "prod")
|
|
216
241
|
* * `user_branch` - User's branch name (e.g., "main")
|
|
217
|
-
* * `tier` - Optional
|
|
242
|
+
* * `tier` - Optional node durability tier ("worker", "edge", "global").
|
|
218
243
|
* Set for server nodes to enable ack emission.
|
|
244
|
+
* * `use_binary_encoding` - Optional outgoing sync payload encoding mode.
|
|
245
|
+
* `Some(true)` emits postcard bytes (`Uint8Array`), otherwise JSON strings.
|
|
219
246
|
*/
|
|
220
|
-
constructor(schema_json: string, app_id: string, env: string, user_branch: string, tier?: string | null);
|
|
247
|
+
constructor(schema_json: string, app_id: string, env: string, user_branch: string, tier?: string | null, use_binary_encoding?: boolean | null);
|
|
248
|
+
/**
|
|
249
|
+
* Register a JS callback that fires when the Rust transport receives an
|
|
250
|
+
* auth failure (Unauthorized) from the server during the WS handshake.
|
|
251
|
+
*
|
|
252
|
+
* The callback receives a single string argument: a human-readable reason.
|
|
253
|
+
*/
|
|
254
|
+
onAuthFailure(callback: Function): void;
|
|
221
255
|
/**
|
|
222
256
|
* Called by JS when a sync message arrives from the server.
|
|
223
257
|
*
|
|
224
258
|
* # Arguments
|
|
225
|
-
* * `
|
|
259
|
+
* * `payload` - Either postcard-encoded SyncPayload bytes (`Uint8Array`)
|
|
260
|
+
* or JSON-encoded SyncPayload (`string`)
|
|
226
261
|
*/
|
|
227
|
-
onSyncMessageReceived(
|
|
262
|
+
onSyncMessageReceived(payload: any, sequence?: number | null): void;
|
|
228
263
|
/**
|
|
229
264
|
* Called by JS when a sync message arrives from a client (not a server).
|
|
230
265
|
*
|
|
231
266
|
* # Arguments
|
|
232
267
|
* * `client_id` - UUID string of the sending client
|
|
233
|
-
* * `
|
|
268
|
+
* * `payload` - Postcard-encoded SyncPayload bytes
|
|
234
269
|
*/
|
|
235
|
-
onSyncMessageReceivedFromClient(client_id: string,
|
|
270
|
+
onSyncMessageReceivedFromClient(client_id: string, payload: any): void;
|
|
236
271
|
/**
|
|
237
272
|
* Register a callback for outgoing sync messages.
|
|
238
273
|
*/
|
|
@@ -243,17 +278,18 @@ export class WasmRuntime {
|
|
|
243
278
|
* Opens a single OPFS file namespace and restores state from the latest
|
|
244
279
|
* durable checkpoint.
|
|
245
280
|
*/
|
|
246
|
-
static openPersistent(schema_json: string, app_id: string, env: string, user_branch: string, db_name: string, tier
|
|
281
|
+
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
282
|
/**
|
|
248
283
|
* Execute a query and return results as a Promise.
|
|
249
284
|
*
|
|
250
|
-
* Optional
|
|
285
|
+
* Optional durability tier controls remote settlement behavior.
|
|
251
286
|
*/
|
|
252
|
-
query(query_json: string, session_json?: string | null, settled_tier?: string | null): Promise<any>;
|
|
287
|
+
query(query_json: string, session_json?: string | null, settled_tier?: string | null, options_json?: string | null): Promise<any>;
|
|
253
288
|
/**
|
|
254
289
|
* Remove the current upstream server connection.
|
|
255
290
|
*/
|
|
256
291
|
removeServer(): void;
|
|
292
|
+
sealBatch(batch_id: string): void;
|
|
257
293
|
/**
|
|
258
294
|
* Set a client's role.
|
|
259
295
|
*
|
|
@@ -269,12 +305,12 @@ export class WasmRuntime {
|
|
|
269
305
|
* - with upstream server: first callback waits for protocol QuerySettled convergence
|
|
270
306
|
* - without upstream server: first callback is local-immediate
|
|
271
307
|
*
|
|
272
|
-
* Pass
|
|
308
|
+
* Pass durability options to override this default.
|
|
273
309
|
*
|
|
274
310
|
* # Returns
|
|
275
311
|
* Subscription handle (f64) for later unsubscription.
|
|
276
312
|
*/
|
|
277
|
-
subscribe(query_json: string, on_update: Function, session_json?: string | null, settled_tier?: string | null): number;
|
|
313
|
+
subscribe(query_json: string, on_update: Function, session_json?: string | null, settled_tier?: string | null, options_json?: string | null): number;
|
|
278
314
|
/**
|
|
279
315
|
* Unsubscribe from a query.
|
|
280
316
|
*/
|
|
@@ -283,10 +319,39 @@ export class WasmRuntime {
|
|
|
283
319
|
* Update a row by ObjectId.
|
|
284
320
|
*/
|
|
285
321
|
update(object_id: string, values: any): void;
|
|
322
|
+
/**
|
|
323
|
+
* Push updated auth credentials into the live transport.
|
|
324
|
+
*/
|
|
325
|
+
updateAuth(auth_json: string): void;
|
|
286
326
|
/**
|
|
287
327
|
* Update a row and return a Promise that resolves when the tier acks.
|
|
288
328
|
*/
|
|
289
|
-
|
|
329
|
+
updateDurable(object_id: string, values: any, tier: string): Promise<any>;
|
|
330
|
+
/**
|
|
331
|
+
* Update a row and return a Promise that resolves when the tier acks,
|
|
332
|
+
* scoped to an explicit session principal.
|
|
333
|
+
*/
|
|
334
|
+
updateDurableWithSession(object_id: string, values: any, write_context_json: string | null | undefined, tier: string): Promise<any>;
|
|
335
|
+
/**
|
|
336
|
+
* Update a row immediately, returning the logical batch id that tracks
|
|
337
|
+
* replayable persisted fate for this write.
|
|
338
|
+
*/
|
|
339
|
+
updatePersisted(object_id: string, values: any, tier: string): any;
|
|
340
|
+
/**
|
|
341
|
+
* Update a row immediately, returning the logical batch id that tracks
|
|
342
|
+
* replayable persisted fate for this write, scoped to an explicit session
|
|
343
|
+
* principal or transactional write context.
|
|
344
|
+
*/
|
|
345
|
+
updatePersistedWithSession(object_id: string, values: any, write_context_json: string | null | undefined, tier: string): any;
|
|
346
|
+
/**
|
|
347
|
+
* Update a row by ObjectId as an explicit session principal.
|
|
348
|
+
*
|
|
349
|
+
* # Arguments
|
|
350
|
+
* * `object_id` - UUID string of target object
|
|
351
|
+
* * `values` - Partial update map (`{ columnName: Value }`)
|
|
352
|
+
* * `session_json` - Optional JSON-encoded Session used for policy checks
|
|
353
|
+
*/
|
|
354
|
+
updateWithSession(object_id: string, values: any, write_context_json?: string | null): void;
|
|
290
355
|
}
|
|
291
356
|
|
|
292
357
|
export function bench_get_cache_bytes(): number;
|
|
@@ -366,9 +431,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
366
431
|
export interface InitOutput {
|
|
367
432
|
readonly memory: WebAssembly.Memory;
|
|
368
433
|
readonly __wbg_wasmquerybuilder_free: (a: number, b: number) => void;
|
|
369
|
-
readonly currentTimestamp: () => bigint;
|
|
370
|
-
readonly generateId: () => [number, number];
|
|
371
|
-
readonly parseSchema: (a: number, b: number) => [number, number, number];
|
|
372
434
|
readonly wasmquerybuilder_alias: (a: number, b: number, c: number) => number;
|
|
373
435
|
readonly wasmquerybuilder_branch: (a: number, b: number, c: number) => number;
|
|
374
436
|
readonly wasmquerybuilder_branches: (a: number, b: number, c: number) => number;
|
|
@@ -390,30 +452,60 @@ export interface InitOutput {
|
|
|
390
452
|
readonly wasmquerybuilder_orderBy: (a: number, b: number, c: number) => number;
|
|
391
453
|
readonly wasmquerybuilder_orderByDesc: (a: number, b: number, c: number) => number;
|
|
392
454
|
readonly wasmquerybuilder_select: (a: number, b: number, c: number) => number;
|
|
393
|
-
readonly init: () => void;
|
|
394
455
|
readonly __wbg_wasmruntime_free: (a: number, b: number) => void;
|
|
456
|
+
readonly currentTimestamp: () => bigint;
|
|
457
|
+
readonly generateId: () => [number, number];
|
|
458
|
+
readonly parseSchema: (a: number, b: number) => [number, number, number];
|
|
459
|
+
readonly wasmruntime___debugSchemaState: (a: number) => [number, number, number];
|
|
460
|
+
readonly wasmruntime___debugSeedLiveSchema: (a: number, b: number, c: number) => [number, number];
|
|
461
|
+
readonly wasmruntime_acknowledgeRejectedBatch: (a: number, b: number, c: number) => [number, number, number];
|
|
395
462
|
readonly wasmruntime_addClient: (a: number) => [number, number];
|
|
396
|
-
readonly wasmruntime_addServer: (a: number) =>
|
|
463
|
+
readonly wasmruntime_addServer: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
464
|
+
readonly wasmruntime_connect: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
465
|
+
readonly wasmruntime_createSubscription: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
397
466
|
readonly wasmruntime_delete: (a: number, b: number, c: number) => [number, number];
|
|
398
|
-
readonly
|
|
467
|
+
readonly wasmruntime_deleteDurable: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
468
|
+
readonly wasmruntime_deleteDurableWithSession: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
469
|
+
readonly wasmruntime_deletePersisted: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
470
|
+
readonly wasmruntime_deletePersistedWithSession: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
471
|
+
readonly wasmruntime_deleteWithSession: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
472
|
+
readonly wasmruntime_deriveUserId: (a: number, b: number) => [number, number, number, number];
|
|
473
|
+
readonly wasmruntime_disconnect: (a: number) => void;
|
|
474
|
+
readonly wasmruntime_executeSubscription: (a: number, b: number, c: any) => [number, number];
|
|
399
475
|
readonly wasmruntime_flush: (a: number) => void;
|
|
400
476
|
readonly wasmruntime_flushWal: (a: number) => void;
|
|
477
|
+
readonly wasmruntime_getPublicKeyBase64url: (a: number, b: number) => [number, number, number, number];
|
|
401
478
|
readonly wasmruntime_getSchema: (a: number) => [number, number, number];
|
|
402
479
|
readonly wasmruntime_getSchemaHash: (a: number) => [number, number];
|
|
403
|
-
readonly wasmruntime_insert: (a: number, b: number, c: number, d: any) => [number, number, number
|
|
404
|
-
readonly
|
|
405
|
-
readonly
|
|
406
|
-
readonly
|
|
407
|
-
readonly
|
|
480
|
+
readonly wasmruntime_insert: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
|
|
481
|
+
readonly wasmruntime_insertDurable: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
482
|
+
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];
|
|
483
|
+
readonly wasmruntime_insertPersisted: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
|
|
484
|
+
readonly wasmruntime_insertPersistedWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
485
|
+
readonly wasmruntime_insertWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
486
|
+
readonly wasmruntime_loadLocalBatchRecord: (a: number, b: number, c: number) => [number, number, number];
|
|
487
|
+
readonly wasmruntime_loadLocalBatchRecords: (a: number) => [number, number, number];
|
|
488
|
+
readonly wasmruntime_mintLocalFirstToken: (a: number, b: number, c: number, d: number, e: bigint, f: bigint) => [number, number, number, number];
|
|
489
|
+
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];
|
|
490
|
+
readonly wasmruntime_onAuthFailure: (a: number, b: any) => void;
|
|
491
|
+
readonly wasmruntime_onSyncMessageReceived: (a: number, b: any, c: number, d: number) => [number, number];
|
|
492
|
+
readonly wasmruntime_onSyncMessageReceivedFromClient: (a: number, b: number, c: number, d: any) => [number, number];
|
|
408
493
|
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];
|
|
494
|
+
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;
|
|
495
|
+
readonly wasmruntime_query: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
411
496
|
readonly wasmruntime_removeServer: (a: number) => void;
|
|
497
|
+
readonly wasmruntime_sealBatch: (a: number, b: number, c: number) => [number, number];
|
|
412
498
|
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];
|
|
499
|
+
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];
|
|
414
500
|
readonly wasmruntime_unsubscribe: (a: number, b: number) => void;
|
|
415
501
|
readonly wasmruntime_update: (a: number, b: number, c: number, d: any) => [number, number];
|
|
416
|
-
readonly
|
|
502
|
+
readonly wasmruntime_updateAuth: (a: number, b: number, c: number) => [number, number];
|
|
503
|
+
readonly wasmruntime_updateDurable: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
|
|
504
|
+
readonly wasmruntime_updateDurableWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
505
|
+
readonly wasmruntime_updatePersisted: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
|
|
506
|
+
readonly wasmruntime_updatePersistedWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
507
|
+
readonly wasmruntime_updateWithSession: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number];
|
|
508
|
+
readonly init: () => void;
|
|
417
509
|
readonly bench_get_pin_internal_pages: () => number;
|
|
418
510
|
readonly bench_opfs_cold_random_read: (a: number, b: number) => any;
|
|
419
511
|
readonly bench_opfs_cold_sequential_read: (a: number, b: number) => any;
|
|
@@ -437,15 +529,18 @@ export interface InitOutput {
|
|
|
437
529
|
readonly bench_reset_overflow_threshold_bytes: () => void;
|
|
438
530
|
readonly bench_reset_pin_internal_pages: () => void;
|
|
439
531
|
readonly bench_reset_read_coalesce_pages: () => void;
|
|
440
|
-
readonly
|
|
441
|
-
readonly
|
|
442
|
-
readonly
|
|
532
|
+
readonly wasm_bindgen__convert__closures_____invoke__h656199c36535c3e6: (a: number, b: number, c: any) => [number, number];
|
|
533
|
+
readonly wasm_bindgen__convert__closures_____invoke__h250bbd6a67e0e1e6: (a: number, b: number, c: any, d: any) => void;
|
|
534
|
+
readonly wasm_bindgen__convert__closures_____invoke__hf7ddf3622752ec36: (a: number, b: number, c: any) => void;
|
|
535
|
+
readonly wasm_bindgen__convert__closures_____invoke__hc18e08680cddc2e5: (a: number, b: number, c: any) => void;
|
|
536
|
+
readonly wasm_bindgen__convert__closures_____invoke__h03757a48b3eba690: (a: number, b: number) => void;
|
|
443
537
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
444
538
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
445
539
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
446
540
|
readonly __externref_table_alloc: () => number;
|
|
447
541
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
448
542
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
543
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
449
544
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
450
545
|
readonly __wbindgen_start: () => void;
|
|
451
546
|
}
|