@lix-js/sdk 0.15.1 → 0.16.1

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/dist/types.d.ts CHANGED
@@ -1,24 +1,22 @@
1
1
  export type RemoteLixFetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
2
- export type RemoteLixServerOptions = {
3
- mode: "remote";
4
- /** Stable HTTPS locator whose path is exactly `/lix/{uuid}`. HTTP is loopback-only. */
2
+ /** A Lix protocol endpoint. Host URL for creation; repository URL for opening/deletion. */
3
+ export type LixServerOptions = {
5
4
  url: string | URL;
6
5
  headers?: HeadersInit | (() => HeadersInit | Promise<HeadersInit>);
7
6
  fetch?: RemoteLixFetch;
8
7
  };
9
- /**
10
- * Opens a local native replica that synchronizes with the server in the
11
- * background. Sync mode keeps the normal local storage/read path and works
12
- * with browser storage such as OPFS as well as native storage.
13
- */
14
- export type SyncLixServerOptions = {
15
- mode: "sync";
16
- /** Stable HTTPS locator whose path is exactly `/lix/{uuid}`. HTTP is loopback-only. */
17
- url: string | URL;
18
- /** Resolved for every browser sync request, including reconnect handshakes. */
19
- headers?: HeadersInit | (() => HeadersInit | Promise<HeadersInit>);
20
- /** Browser fetch override. Functions cross the worker boundary through RPC. */
21
- fetch?: RemoteLixFetch;
8
+ export type HostedLix = {
9
+ id: string;
10
+ url: string;
11
+ };
12
+ export type CreateLixOptions = {
13
+ /** Reuse this key when retrying a creation whose outcome was uncertain. */
14
+ idempotencyKey?: string;
15
+ server: Pick<LixServerOptions, "url" | "headers">;
16
+ from?: import("./lix.js").Lix;
17
+ };
18
+ export type DeleteLixOptions = {
19
+ server: Pick<LixServerOptions, "url" | "headers">;
22
20
  };
23
21
  export type LixTelemetrySpanLink = {
24
22
  traceId: string;
@@ -77,24 +75,80 @@ export type LixOpenReport = {
77
75
  initialized: boolean;
78
76
  migration?: LixOpenMigrationReport;
79
77
  };
78
+ /** A retained local generation. Presence does not mean recovery is complete. */
79
+ export type ReplicaRecoverySource = {
80
+ id: string;
81
+ sourceFormat: number;
82
+ repositoryId: string;
83
+ accountId: string;
84
+ recoveryRequired: boolean;
85
+ };
86
+ export type ReplicaRecoveryRow = {
87
+ rowPk: JsonValue;
88
+ schemaKey: string;
89
+ fileId: string | null;
90
+ snapshot: JsonValue;
91
+ metadata: JsonValue;
92
+ deleted: boolean;
93
+ untracked: boolean;
94
+ global: boolean;
95
+ changeId: string | null;
96
+ commitId: string | null;
97
+ };
98
+ export type ReplicaRecoveryBranch = {
99
+ branchId: string;
100
+ headCommitId: string;
101
+ checkpointCommitId: string | null;
102
+ rows: ReplicaRecoveryRow[];
103
+ };
104
+ export type ReplicaRecoveryBlob = {
105
+ id: string;
106
+ contentBase64: string;
107
+ };
108
+ export type ReplicaRecoveryFile = {
109
+ branchId: string;
110
+ id: string;
111
+ path: string;
112
+ untracked: boolean;
113
+ blobId: string | null;
114
+ };
115
+ /** Portable recovery data; unresolved entries identify data not reconstructed. */
116
+ export type ReplicaRecoveryExport = {
117
+ version: number;
118
+ source: ReplicaRecoverySource;
119
+ branches: ReplicaRecoveryBranch[];
120
+ commits: JsonValue[];
121
+ uploads: JsonValue[];
122
+ blobs: ReplicaRecoveryBlob[];
123
+ files: ReplicaRecoveryFile[];
124
+ unresolved: string[];
125
+ };
126
+ /** Local recovery result. This does not acknowledge durable server storage. */
127
+ export type ReplicaRecoveryReceipt = {
128
+ branchIds: string[];
129
+ restoredFiles: number;
130
+ restoredRows: number;
131
+ unresolved: string[];
132
+ };
80
133
  export type LixOpenProgressOptions = {
81
134
  /** Observes local inspection, automatic migration, and opening. */
82
135
  onProgress?(progress: LixOpenProgress): void;
83
136
  };
84
- export type OpenLixOptions = {
137
+ /** No options: memory. Storage: local. Server: remote. Storage + server: sync. */
138
+ export type OpenLixOptions = ({
85
139
  storage?: import("./storage-adapter.js").LixStorage;
86
140
  server?: never;
87
141
  telemetry?: LixTelemetryOptions;
88
- } & LixOpenProgressOptions | {
142
+ } & LixOpenProgressOptions) | {
89
143
  storage?: never;
90
- server: RemoteLixServerOptions;
144
+ server: LixServerOptions;
91
145
  telemetry?: never;
92
146
  onProgress?: never;
93
- } | {
147
+ } | ({
94
148
  storage: import("./storage-adapter.js").LixStorage;
95
- server: SyncLixServerOptions;
149
+ server: LixServerOptions;
96
150
  telemetry?: LixTelemetryOptions;
97
- } & LixOpenProgressOptions;
151
+ } & LixOpenProgressOptions);
98
152
  /** Selects the initial context for an additional independent session. */
99
153
  export type OpenAnotherSessionOptions = {
100
154
  /** Defaults to the current branch of the session opening it. */
@@ -165,6 +219,18 @@ export type ResultColumn = {
165
219
  export type ResultObjectRow = Record<string, unknown>;
166
220
  export type ResultArrayRow = unknown[];
167
221
  export type ResultRow = ResultObjectRow | ResultArrayRow;
222
+ /**
223
+ * The active-branch commits a write moved between.
224
+ *
225
+ * `before` is the active branch's head before the write and `after` the head
226
+ * it published, so `lix_diff('lix_file', before, after)` is exactly what the
227
+ * write changed. A write that published no commit on the active branch
228
+ * reports both ids equal; a restore reports the commit it moved the head to.
229
+ */
230
+ export type CommitSpan = {
231
+ before: string;
232
+ after: string;
233
+ };
168
234
  export type ExecuteResult<TRow extends object = ResultObjectRow> = {
169
235
  statementIndex?: number;
170
236
  label?: string;
@@ -176,6 +242,15 @@ export type ExecuteResult<TRow extends object = ResultObjectRow> = {
176
242
  message: string;
177
243
  hint?: string;
178
244
  }>;
245
+ /**
246
+ * Present on every auto-committed write statement, including `RETURNING`
247
+ * writes, and on every statement of a written batch (all carry the
248
+ * batch's one span, read statements included). Absent for read
249
+ * statements outside a written batch, read-only batches, statements
250
+ * inside an explicit transaction (whose commit is the write), and the
251
+ * first commit on a branch that had no head yet.
252
+ */
253
+ commit?: CommitSpan;
179
254
  };
180
255
  export type ExecuteBatchResult<TRow extends object = ResultObjectRow> = ExecuteResult<TRow> & {
181
256
  statementIndex: number;
@@ -10,8 +10,10 @@ export class WasmLix {
10
10
  beginTransaction(): Promise<WasmLixTransaction>;
11
11
  close(): Promise<void>;
12
12
  createBranch(options: any): Promise<any>;
13
+ createHosted(server: any): Promise<any>;
13
14
  execute(sql: string, params: any, options?: any | null): Promise<any>;
14
15
  executeBatch(statements: any, options?: any | null): Promise<any>;
16
+ exportReplicaRecovery(id: string): Promise<any>;
15
17
  exportSnapshot(): WasmSnapshotExport;
16
18
  importFilesystemPaths(_paths: any): Promise<void>;
17
19
  mergeBranch(options: any): Promise<any>;
@@ -19,7 +21,9 @@ export class WasmLix {
19
21
  observe(sql: string, params: any): Promise<WasmObserveEvents>;
20
22
  openAnotherSession(options: any): Promise<WasmLix>;
21
23
  openReport(): any;
24
+ recoverReplica(id: string): Promise<any>;
22
25
  redo(): Promise<any>;
26
+ replicaRecoverySources(): Promise<any>;
23
27
  setTelemetryParent(parent?: any | null): void;
24
28
  switchBranch(options: any): Promise<any>;
25
29
  syncDiskToLix(): Promise<void>;
@@ -55,13 +59,16 @@ export class WasmRemoteLix {
55
59
  createBranch(options: any): Promise<any>;
56
60
  execute(sql: string, params: any, options?: any | null): Promise<any>;
57
61
  executeBatch(statements: any, options?: any | null): Promise<any>;
62
+ exportReplicaRecovery(_id: string): Promise<any>;
58
63
  exportSnapshot(): WasmSnapshotExport;
59
64
  importFilesystemPaths(_paths: any): Promise<void>;
60
65
  mergeBranch(options: any): Promise<any>;
61
66
  mergeBranchPreview(options: any): Promise<any>;
62
67
  observe(sql: string, params: any): Promise<WasmRemoteObserveEvents>;
63
68
  openAnotherSession(options: any): Promise<WasmRemoteLix>;
69
+ recoverReplica(_id: string): Promise<any>;
64
70
  redo(): Promise<any>;
71
+ replicaRecoverySources(): Promise<any>;
65
72
  setTelemetryParent(_parent?: any | null): void;
66
73
  switchBranch(options: any): Promise<any>;
67
74
  syncDiskToLix(): Promise<void>;
@@ -104,6 +111,10 @@ export class WasmSnapshotRestore {
104
111
  write(chunk: Uint8Array): Promise<void>;
105
112
  }
106
113
 
114
+ export function createHosted(server: any): Promise<any>;
115
+
116
+ export function deleteHosted(server: any): Promise<void>;
117
+
107
118
  export function openJsStorage(provider: any, telemetry_dispatch?: Function | null, telemetry_parent?: any | null, server?: any | null, open_progress_dispatch?: Function | null): Promise<WasmLix>;
108
119
 
109
120
  export function openJsStorageFromSnapshot(provider: any, telemetry_dispatch?: Function | null, telemetry_parent?: any | null, open_progress_dispatch?: Function | null): WasmSnapshotRestore;
@@ -126,6 +137,8 @@ export interface InitOutput {
126
137
  readonly __wbg_wasmremoteobserveevents_free: (a: number, b: number) => void;
127
138
  readonly __wbg_wasmsnapshotexport_free: (a: number, b: number) => void;
128
139
  readonly __wbg_wasmsnapshotrestore_free: (a: number, b: number) => void;
140
+ readonly createHosted: (a: number) => number;
141
+ readonly deleteHosted: (a: number) => number;
129
142
  readonly openJsStorage: (a: number, b: number, c: number, d: number, e: number) => number;
130
143
  readonly openJsStorageFromSnapshot: (a: number, b: number, c: number, d: number) => number;
131
144
  readonly openMemory: (a: number, b: number, c: number, d: number) => number;
@@ -136,8 +149,10 @@ export interface InitOutput {
136
149
  readonly wasmlix_beginTransaction: (a: number) => number;
137
150
  readonly wasmlix_close: (a: number) => number;
138
151
  readonly wasmlix_createBranch: (a: number, b: number) => number;
152
+ readonly wasmlix_createHosted: (a: number, b: number) => number;
139
153
  readonly wasmlix_execute: (a: number, b: number, c: number, d: number, e: number) => number;
140
154
  readonly wasmlix_executeBatch: (a: number, b: number, c: number) => number;
155
+ readonly wasmlix_exportReplicaRecovery: (a: number, b: number, c: number) => number;
141
156
  readonly wasmlix_exportSnapshot: (a: number) => number;
142
157
  readonly wasmlix_importFilesystemPaths: (a: number, b: number) => number;
143
158
  readonly wasmlix_mergeBranch: (a: number, b: number) => number;
@@ -145,7 +160,9 @@ export interface InitOutput {
145
160
  readonly wasmlix_observe: (a: number, b: number, c: number, d: number) => number;
146
161
  readonly wasmlix_openAnotherSession: (a: number, b: number) => number;
147
162
  readonly wasmlix_openReport: (a: number, b: number) => void;
163
+ readonly wasmlix_recoverReplica: (a: number, b: number, c: number) => number;
148
164
  readonly wasmlix_redo: (a: number) => number;
165
+ readonly wasmlix_replicaRecoverySources: (a: number) => number;
149
166
  readonly wasmlix_setTelemetryParent: (a: number, b: number, c: number) => void;
150
167
  readonly wasmlix_switchBranch: (a: number, b: number) => number;
151
168
  readonly wasmlix_syncDiskToLix: (a: number) => number;
@@ -163,13 +180,16 @@ export interface InitOutput {
163
180
  readonly wasmremotelix_createBranch: (a: number, b: number) => number;
164
181
  readonly wasmremotelix_execute: (a: number, b: number, c: number, d: number, e: number) => number;
165
182
  readonly wasmremotelix_executeBatch: (a: number, b: number, c: number) => number;
183
+ readonly wasmremotelix_exportReplicaRecovery: (a: number, b: number, c: number) => number;
166
184
  readonly wasmremotelix_exportSnapshot: (a: number) => number;
167
185
  readonly wasmremotelix_importFilesystemPaths: (a: number, b: number) => number;
168
186
  readonly wasmremotelix_mergeBranch: (a: number, b: number) => number;
169
187
  readonly wasmremotelix_mergeBranchPreview: (a: number, b: number) => number;
170
188
  readonly wasmremotelix_observe: (a: number, b: number, c: number, d: number) => number;
171
189
  readonly wasmremotelix_openAnotherSession: (a: number, b: number) => number;
190
+ readonly wasmremotelix_recoverReplica: (a: number, b: number, c: number) => number;
172
191
  readonly wasmremotelix_redo: (a: number) => number;
192
+ readonly wasmremotelix_replicaRecoverySources: (a: number) => number;
173
193
  readonly wasmremotelix_setTelemetryParent: (a: number, b: number) => void;
174
194
  readonly wasmremotelix_switchBranch: (a: number, b: number) => number;
175
195
  readonly wasmremotelix_syncDiskToLix: (a: number) => number;
@@ -186,9 +206,10 @@ export interface InitOutput {
186
206
  readonly wasmsnapshotrestore_finish: (a: number) => number;
187
207
  readonly wasmsnapshotrestore_isComplete: (a: number) => number;
188
208
  readonly wasmsnapshotrestore_write: (a: number, b: number, c: number) => number;
189
- readonly __wasm_bindgen_func_elem_92636: (a: number, b: number, c: number, d: number) => void;
190
- readonly __wasm_bindgen_func_elem_92638: (a: number, b: number, c: number, d: number) => void;
191
- readonly __wasm_bindgen_func_elem_16813: (a: number, b: number) => void;
209
+ readonly __wasm_bindgen_func_elem_95812: (a: number, b: number, c: number, d: number) => void;
210
+ readonly __wasm_bindgen_func_elem_95814: (a: number, b: number, c: number, d: number) => void;
211
+ readonly __wasm_bindgen_func_elem_17860: (a: number, b: number, c: number) => number;
212
+ readonly __wasm_bindgen_func_elem_17859: (a: number, b: number) => void;
192
213
  readonly __wbindgen_export: (a: number, b: number) => number;
193
214
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
194
215
  readonly __wbindgen_export3: (a: number) => void;
@@ -53,6 +53,14 @@ export class WasmLix {
53
53
  const ret = wasm.wasmlix_createBranch(this.__wbg_ptr, addHeapObject(options));
54
54
  return takeObject(ret);
55
55
  }
56
+ /**
57
+ * @param {any} server
58
+ * @returns {Promise<any>}
59
+ */
60
+ createHosted(server) {
61
+ const ret = wasm.wasmlix_createHosted(this.__wbg_ptr, addHeapObject(server));
62
+ return takeObject(ret);
63
+ }
56
64
  /**
57
65
  * @param {string} sql
58
66
  * @param {any} params
@@ -74,6 +82,16 @@ export class WasmLix {
74
82
  const ret = wasm.wasmlix_executeBatch(this.__wbg_ptr, addHeapObject(statements), isLikeNone(options) ? 0 : addHeapObject(options));
75
83
  return takeObject(ret);
76
84
  }
85
+ /**
86
+ * @param {string} id
87
+ * @returns {Promise<any>}
88
+ */
89
+ exportReplicaRecovery(id) {
90
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
91
+ const len0 = WASM_VECTOR_LEN;
92
+ const ret = wasm.wasmlix_exportReplicaRecovery(this.__wbg_ptr, ptr0, len0);
93
+ return takeObject(ret);
94
+ }
77
95
  /**
78
96
  * @returns {WasmSnapshotExport}
79
97
  */
@@ -142,6 +160,16 @@ export class WasmLix {
142
160
  wasm.__wbindgen_add_to_stack_pointer(16);
143
161
  }
144
162
  }
163
+ /**
164
+ * @param {string} id
165
+ * @returns {Promise<any>}
166
+ */
167
+ recoverReplica(id) {
168
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
169
+ const len0 = WASM_VECTOR_LEN;
170
+ const ret = wasm.wasmlix_recoverReplica(this.__wbg_ptr, ptr0, len0);
171
+ return takeObject(ret);
172
+ }
145
173
  /**
146
174
  * @returns {Promise<any>}
147
175
  */
@@ -149,6 +177,13 @@ export class WasmLix {
149
177
  const ret = wasm.wasmlix_redo(this.__wbg_ptr);
150
178
  return takeObject(ret);
151
179
  }
180
+ /**
181
+ * @returns {Promise<any>}
182
+ */
183
+ replicaRecoverySources() {
184
+ const ret = wasm.wasmlix_replicaRecoverySources(this.__wbg_ptr);
185
+ return takeObject(ret);
186
+ }
152
187
  /**
153
188
  * @param {any | null} [parent]
154
189
  */
@@ -356,6 +391,16 @@ export class WasmRemoteLix {
356
391
  const ret = wasm.wasmremotelix_executeBatch(this.__wbg_ptr, addHeapObject(statements), isLikeNone(options) ? 0 : addHeapObject(options));
357
392
  return takeObject(ret);
358
393
  }
394
+ /**
395
+ * @param {string} _id
396
+ * @returns {Promise<any>}
397
+ */
398
+ exportReplicaRecovery(_id) {
399
+ const ptr0 = passStringToWasm0(_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
400
+ const len0 = WASM_VECTOR_LEN;
401
+ const ret = wasm.wasmremotelix_exportReplicaRecovery(this.__wbg_ptr, ptr0, len0);
402
+ return takeObject(ret);
403
+ }
359
404
  /**
360
405
  * @returns {WasmSnapshotExport}
361
406
  */
@@ -406,6 +451,16 @@ export class WasmRemoteLix {
406
451
  const ret = wasm.wasmremotelix_openAnotherSession(this.__wbg_ptr, addHeapObject(options));
407
452
  return takeObject(ret);
408
453
  }
454
+ /**
455
+ * @param {string} _id
456
+ * @returns {Promise<any>}
457
+ */
458
+ recoverReplica(_id) {
459
+ const ptr0 = passStringToWasm0(_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
460
+ const len0 = WASM_VECTOR_LEN;
461
+ const ret = wasm.wasmremotelix_recoverReplica(this.__wbg_ptr, ptr0, len0);
462
+ return takeObject(ret);
463
+ }
409
464
  /**
410
465
  * @returns {Promise<any>}
411
466
  */
@@ -413,6 +468,13 @@ export class WasmRemoteLix {
413
468
  const ret = wasm.wasmremotelix_redo(this.__wbg_ptr);
414
469
  return takeObject(ret);
415
470
  }
471
+ /**
472
+ * @returns {Promise<any>}
473
+ */
474
+ replicaRecoverySources() {
475
+ const ret = wasm.wasmremotelix_replicaRecoverySources(this.__wbg_ptr);
476
+ return takeObject(ret);
477
+ }
416
478
  /**
417
479
  * @param {any | null} [_parent]
418
480
  */
@@ -611,6 +673,24 @@ export class WasmSnapshotRestore {
611
673
  }
612
674
  if (Symbol.dispose) WasmSnapshotRestore.prototype[Symbol.dispose] = WasmSnapshotRestore.prototype.free;
613
675
 
676
+ /**
677
+ * @param {any} server
678
+ * @returns {Promise<any>}
679
+ */
680
+ export function createHosted(server) {
681
+ const ret = wasm.createHosted(addHeapObject(server));
682
+ return takeObject(ret);
683
+ }
684
+
685
+ /**
686
+ * @param {any} server
687
+ * @returns {Promise<void>}
688
+ */
689
+ export function deleteHosted(server) {
690
+ const ret = wasm.deleteHosted(addHeapObject(server));
691
+ return takeObject(ret);
692
+ }
693
+
614
694
  /**
615
695
  * @param {any} provider
616
696
  * @param {Function | null} [telemetry_dispatch]
@@ -767,19 +847,19 @@ function __wbg_get_imports() {
767
847
  __wbg__wbg_cb_unref_61db23ac97f16c31: function(arg0) {
768
848
  getObject(arg0)._wbg_cb_unref();
769
849
  },
770
- __wbg_acquireSession_4217826058465f0a: function(arg0) {
850
+ __wbg_acquireSession_23e79c33392e697b: function(arg0) {
771
851
  const ret = getObject(arg0).acquireSession();
772
852
  return addHeapObject(ret);
773
853
  },
774
- __wbg_beginRead_94ff94b93b664ae5: function(arg0, arg1) {
854
+ __wbg_beginRead_a07540d6b7276aa8: function(arg0, arg1) {
775
855
  const ret = getObject(arg0).beginRead(takeObject(arg1));
776
856
  return addHeapObject(ret);
777
857
  },
778
- __wbg_beginScan_51d1ffb7b76bed05: function(arg0, arg1, arg2, arg3) {
858
+ __wbg_beginScan_fe1d6b306d24f1d8: function(arg0, arg1, arg2, arg3) {
779
859
  const ret = getObject(arg0).beginScan(takeObject(arg1), takeObject(arg2), takeObject(arg3));
780
860
  return addHeapObject(ret);
781
861
  },
782
- __wbg_beginWrite_57e757a92c7a162f: function(arg0, arg1) {
862
+ __wbg_beginWrite_accabb884da53d0d: function(arg0, arg1) {
783
863
  const ret = getObject(arg0).beginWrite(takeObject(arg1));
784
864
  return addHeapObject(ret);
785
865
  },
@@ -795,18 +875,18 @@ function __wbg_get_imports() {
795
875
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
796
876
  return addHeapObject(ret);
797
877
  }, arguments); },
798
- __wbg_changed_58ce3f6384cfabf1: function(arg0) {
878
+ __wbg_changed_611eb1bd688d481b: function(arg0) {
799
879
  const ret = getObject(arg0).changed();
800
880
  return addHeapObject(ret);
801
881
  },
802
- __wbg_close_48f18a70bd365447: function(arg0) {
882
+ __wbg_close_312ad1c70f8567ec: function(arg0) {
803
883
  getObject(arg0).close();
804
884
  },
805
- __wbg_close_c5652a29ac52dc7a: function(arg0) {
885
+ __wbg_close_60c048095d05207d: function(arg0) {
806
886
  const ret = getObject(arg0).close();
807
887
  return addHeapObject(ret);
808
888
  },
809
- __wbg_commit_abef9a20db94a24b: function(arg0) {
889
+ __wbg_commit_786079320b8e0b9b: function(arg0) {
810
890
  const ret = getObject(arg0).commit();
811
891
  return addHeapObject(ret);
812
892
  },
@@ -814,11 +894,11 @@ function __wbg_get_imports() {
814
894
  const ret = Reflect.construct(getObject(arg0), getObject(arg1));
815
895
  return addHeapObject(ret);
816
896
  }, arguments); },
817
- __wbg_deleteMany_fba03247e38ecd66: function(arg0, arg1, arg2) {
897
+ __wbg_deleteMany_556f48be1c237ec7: function(arg0, arg1, arg2) {
818
898
  const ret = getObject(arg0).deleteMany(takeObject(arg1), takeObject(arg2));
819
899
  return addHeapObject(ret);
820
900
  },
821
- __wbg_deleteRange_d3f785b237515ef2: function(arg0, arg1, arg2) {
901
+ __wbg_deleteRange_7fdc05ce4261d0da: function(arg0, arg1, arg2) {
822
902
  const ret = getObject(arg0).deleteRange(takeObject(arg1), takeObject(arg2));
823
903
  return addHeapObject(ret);
824
904
  },
@@ -845,7 +925,7 @@ function __wbg_get_imports() {
845
925
  const ret = Array.from(getObject(arg0));
846
926
  return addHeapObject(ret);
847
927
  },
848
- __wbg_getMany_274d167fafd6553d: function(arg0, arg1) {
928
+ __wbg_getMany_235250e3424e09ca: function(arg0, arg1) {
849
929
  const ret = getObject(arg0).getMany(takeObject(arg1));
850
930
  return addHeapObject(ret);
851
931
  },
@@ -970,7 +1050,7 @@ function __wbg_get_imports() {
970
1050
  const a = state0.a;
971
1051
  state0.a = 0;
972
1052
  try {
973
- return __wasm_bindgen_func_elem_92638(a, state0.b, arg0, arg1);
1053
+ return __wasm_bindgen_func_elem_95814(a, state0.b, arg0, arg1);
974
1054
  } finally {
975
1055
  state0.a = a;
976
1056
  }
@@ -1000,7 +1080,7 @@ function __wbg_get_imports() {
1000
1080
  const a = state0.a;
1001
1081
  state0.a = 0;
1002
1082
  try {
1003
- return __wasm_bindgen_func_elem_92638(a, state0.b, arg0, arg1);
1083
+ return __wasm_bindgen_func_elem_95814(a, state0.b, arg0, arg1);
1004
1084
  } finally {
1005
1085
  state0.a = a;
1006
1086
  }
@@ -1011,7 +1091,7 @@ function __wbg_get_imports() {
1011
1091
  state0.a = 0;
1012
1092
  }
1013
1093
  },
1014
- __wbg_nextPage_2c82fda0921c8144: function(arg0, arg1) {
1094
+ __wbg_nextPage_13fba4fc5bb93a4e: function(arg0, arg1) {
1015
1095
  const ret = getObject(arg0).nextPage(arg1 >>> 0);
1016
1096
  return addHeapObject(ret);
1017
1097
  },
@@ -1050,7 +1130,7 @@ function __wbg_get_imports() {
1050
1130
  const ret = getObject(arg0).push(getObject(arg1));
1051
1131
  return ret;
1052
1132
  },
1053
- __wbg_putMany_232f0878d2013b1a: function(arg0, arg1, arg2) {
1133
+ __wbg_putMany_899cb0bea0c14903: function(arg0, arg1, arg2) {
1054
1134
  const ret = getObject(arg0).putMany(takeObject(arg1), takeObject(arg2));
1055
1135
  return addHeapObject(ret);
1056
1136
  },
@@ -1061,7 +1141,7 @@ function __wbg_get_imports() {
1061
1141
  const ret = getObject(arg0).queueMicrotask;
1062
1142
  return addHeapObject(ret);
1063
1143
  },
1064
- __wbg_replaceMany_79fe2cff87eae447: function(arg0, arg1, arg2) {
1144
+ __wbg_replaceMany_cc9b2f5513501e0c: function(arg0, arg1, arg2) {
1065
1145
  const ret = getObject(arg0).replaceMany(takeObject(arg1), takeObject(arg2));
1066
1146
  return addHeapObject(ret);
1067
1147
  },
@@ -1069,7 +1149,7 @@ function __wbg_get_imports() {
1069
1149
  const ret = Promise.resolve(getObject(arg0));
1070
1150
  return addHeapObject(ret);
1071
1151
  },
1072
- __wbg_rollback_ff9a2e1df7d86a27: function(arg0) {
1152
+ __wbg_rollback_32c62a16e328ea97: function(arg0) {
1073
1153
  const ret = getObject(arg0).rollback();
1074
1154
  return addHeapObject(ret);
1075
1155
  },
@@ -1153,46 +1233,51 @@ function __wbg_get_imports() {
1153
1233
  const ret = WasmRemoteObserveEvents.__wrap(arg0);
1154
1234
  return addHeapObject(ret);
1155
1235
  },
1156
- __wbg_watchForChanges_6e168a3d435984ae: function(arg0) {
1236
+ __wbg_watchForChanges_1a153bdf7830e63a: function(arg0) {
1157
1237
  const ret = getObject(arg0).watchForChanges();
1158
1238
  return addHeapObject(ret);
1159
1239
  },
1160
1240
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1161
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21338, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1162
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_92636);
1241
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1312, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
1242
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_17860);
1163
1243
  return addHeapObject(ret);
1164
1244
  },
1165
1245
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1166
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1647, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1167
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_16813);
1246
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21212, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1247
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_95812);
1248
+ return addHeapObject(ret);
1249
+ },
1250
+ __wbindgen_cast_0000000000000003: function(arg0, arg1) {
1251
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1311, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1252
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_17859);
1168
1253
  return addHeapObject(ret);
1169
1254
  },
1170
- __wbindgen_cast_0000000000000003: function(arg0) {
1255
+ __wbindgen_cast_0000000000000004: function(arg0) {
1171
1256
  // Cast intrinsic for `F64 -> Externref`.
1172
1257
  const ret = arg0;
1173
1258
  return addHeapObject(ret);
1174
1259
  },
1175
- __wbindgen_cast_0000000000000004: function(arg0) {
1260
+ __wbindgen_cast_0000000000000005: function(arg0) {
1176
1261
  // Cast intrinsic for `I64 -> Externref`.
1177
1262
  const ret = arg0;
1178
1263
  return addHeapObject(ret);
1179
1264
  },
1180
- __wbindgen_cast_0000000000000005: function(arg0, arg1) {
1265
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
1181
1266
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1182
1267
  const ret = getArrayU8FromWasm0(arg0, arg1);
1183
1268
  return addHeapObject(ret);
1184
1269
  },
1185
- __wbindgen_cast_0000000000000006: function(arg0, arg1) {
1270
+ __wbindgen_cast_0000000000000007: function(arg0, arg1) {
1186
1271
  // Cast intrinsic for `Ref(String) -> Externref`.
1187
1272
  const ret = getStringFromWasm0(arg0, arg1);
1188
1273
  return addHeapObject(ret);
1189
1274
  },
1190
- __wbindgen_cast_0000000000000007: function(arg0) {
1275
+ __wbindgen_cast_0000000000000008: function(arg0) {
1191
1276
  // Cast intrinsic for `U64 -> Externref`.
1192
1277
  const ret = BigInt.asUintN(64, arg0);
1193
1278
  return addHeapObject(ret);
1194
1279
  },
1195
- __wbindgen_cast_0000000000000008: function(arg0, arg1) {
1280
+ __wbindgen_cast_0000000000000009: function(arg0, arg1) {
1196
1281
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
1197
1282
  wasm.__wbindgen_export4(arg0, arg1 * 1, 1);
1198
1283
  // Cast intrinsic for `Vector(U8) -> Externref`.
@@ -1213,14 +1298,19 @@ function __wbg_get_imports() {
1213
1298
  };
1214
1299
  }
1215
1300
 
1216
- function __wasm_bindgen_func_elem_16813(arg0, arg1) {
1217
- wasm.__wasm_bindgen_func_elem_16813(arg0, arg1);
1301
+ function __wasm_bindgen_func_elem_17859(arg0, arg1) {
1302
+ wasm.__wasm_bindgen_func_elem_17859(arg0, arg1);
1303
+ }
1304
+
1305
+ function __wasm_bindgen_func_elem_17860(arg0, arg1, arg2) {
1306
+ const ret = wasm.__wasm_bindgen_func_elem_17860(arg0, arg1, addHeapObject(arg2));
1307
+ return takeObject(ret);
1218
1308
  }
1219
1309
 
1220
- function __wasm_bindgen_func_elem_92636(arg0, arg1, arg2) {
1310
+ function __wasm_bindgen_func_elem_95812(arg0, arg1, arg2) {
1221
1311
  try {
1222
1312
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1223
- wasm.__wasm_bindgen_func_elem_92636(retptr, arg0, arg1, addHeapObject(arg2));
1313
+ wasm.__wasm_bindgen_func_elem_95812(retptr, arg0, arg1, addHeapObject(arg2));
1224
1314
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1225
1315
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1226
1316
  if (r1) {
@@ -1231,8 +1321,8 @@ function __wasm_bindgen_func_elem_92636(arg0, arg1, arg2) {
1231
1321
  }
1232
1322
  }
1233
1323
 
1234
- function __wasm_bindgen_func_elem_92638(arg0, arg1, arg2, arg3) {
1235
- wasm.__wasm_bindgen_func_elem_92638(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1324
+ function __wasm_bindgen_func_elem_95814(arg0, arg1, arg2, arg3) {
1325
+ wasm.__wasm_bindgen_func_elem_95814(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1236
1326
  }
1237
1327
 
1238
1328
  const WasmLixFinalization = (typeof FinalizationRegistry === 'undefined')
Binary file