@lix-js/sdk 0.12.3 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -10
- package/dist/binding-types.d.ts +37 -9
- package/dist/binding.browser.d.ts +2 -2
- package/dist/binding.browser.js +25 -10
- package/dist/binding.node-wasm.d.ts +2 -2
- package/dist/binding.node-wasm.js +8 -4
- package/dist/binding.node.d.ts +3 -3
- package/dist/binding.node.js +70 -13
- package/dist/browser-wasm-init.d.ts +14 -0
- package/dist/browser-wasm-init.js +16 -0
- package/dist/bundled-plugins/plugin_csv.lixplugin +0 -0
- package/dist/bundled-plugins/plugin_markdown.lixplugin +0 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/lix.d.ts +27 -5
- package/dist/lix.js +132 -6
- package/dist/open-lix.d.ts +4 -5
- package/dist/open-lix.js +173 -33
- package/dist/remote/client.d.ts +1 -2
- package/dist/remote/client.js +58 -1151
- package/dist/remote/server-protocol.d.ts +5 -6
- package/dist/remote/server-protocol.js +40 -6
- package/dist/result.d.ts +6 -13
- package/dist/result.js +9 -35
- package/dist/snapshot-restore.d.ts +6 -0
- package/dist/snapshot-restore.js +101 -0
- package/dist/storage-adapter.d.ts +175 -19
- package/dist/storage-adapter.js +21 -0
- package/dist/types.d.ts +101 -31
- package/dist/value.d.ts +1 -0
- package/dist/value.js +8 -0
- package/dist/wasm/lix_js_sdk.d.ts +119 -24
- package/dist/wasm/lix_js_sdk.js +599 -78
- package/dist/wasm/lix_js_sdk_bg.wasm +0 -0
- package/dist/wasm/lix_js_sdk_bg.wasm.d.ts +47 -6
- package/dist/worker/client.d.ts +27 -5
- package/dist/worker/client.js +458 -45
- package/dist/worker/factory.browser.d.ts +2 -2
- package/dist/worker/factory.node.d.ts +2 -2
- package/dist/worker/factory.node.js +3 -10
- package/dist/worker/host.d.ts +2 -1
- package/dist/worker/host.js +283 -37
- package/dist/worker/protocol.d.ts +80 -3
- package/package.json +6 -10
- package/dist/indexeddb-backend.d.ts +0 -19
- package/dist/indexeddb-backend.js +0 -121
- package/dist/remote/sse.d.ts +0 -12
- package/dist/remote/sse.js +0 -87
- package/dist/workerd.d.ts +0 -25
- package/dist/workerd.js +0 -35
package/dist/types.d.ts
CHANGED
|
@@ -1,36 +1,106 @@
|
|
|
1
|
-
export type IndexedDbStorageOptions = {
|
|
2
|
-
/**
|
|
3
|
-
* Identifies one persistent Lix database within the current origin.
|
|
4
|
-
* A database name can be opened by only one Lix handle at a time.
|
|
5
|
-
*/
|
|
6
|
-
name: string;
|
|
7
|
-
};
|
|
8
1
|
export type RemoteLixFetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
9
2
|
export type RemoteLixServerOptions = {
|
|
10
3
|
mode: "remote";
|
|
4
|
+
/** Stable HTTPS locator whose path is exactly `/lix/{uuid}`. HTTP is loopback-only. */
|
|
11
5
|
url: string | URL;
|
|
12
6
|
headers?: HeadersInit | (() => HeadersInit | Promise<HeadersInit>);
|
|
13
7
|
fetch?: RemoteLixFetch;
|
|
14
8
|
};
|
|
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;
|
|
22
|
+
};
|
|
23
|
+
export type LixTelemetrySpanLink = {
|
|
24
|
+
traceId: string;
|
|
25
|
+
spanId: string;
|
|
26
|
+
traceFlags: number;
|
|
27
|
+
traceState?: string;
|
|
28
|
+
};
|
|
29
|
+
/** W3C/OpenTelemetry context used as the remote parent of engine root spans. */
|
|
30
|
+
export type LixTelemetryParentContext = {
|
|
31
|
+
traceId: string;
|
|
32
|
+
spanId: string;
|
|
33
|
+
traceFlags: number;
|
|
34
|
+
traceState?: string;
|
|
35
|
+
};
|
|
15
36
|
export type LixTelemetrySpan = {
|
|
16
|
-
schemaVersion:
|
|
37
|
+
schemaVersion: 3;
|
|
17
38
|
name: string;
|
|
39
|
+
kind: "internal" | "server" | "client" | "producer" | "consumer";
|
|
40
|
+
traceId: string;
|
|
41
|
+
spanId: string;
|
|
42
|
+
traceFlags: number;
|
|
43
|
+
traceState?: string;
|
|
44
|
+
parentSpanId?: string;
|
|
45
|
+
links?: LixTelemetrySpanLink[];
|
|
18
46
|
startedAtUnixMs: number;
|
|
19
47
|
durationMs: number;
|
|
20
|
-
status:
|
|
48
|
+
status: {
|
|
49
|
+
code: "unset" | "error" | "ok";
|
|
50
|
+
description?: string;
|
|
51
|
+
};
|
|
21
52
|
attributes: Record<string, string | number | boolean>;
|
|
22
53
|
};
|
|
23
54
|
export type LixTelemetryOptions = {
|
|
24
55
|
onSpan(span: LixTelemetrySpan): void;
|
|
56
|
+
/** Read immediately before each serialized engine operation. */
|
|
57
|
+
parentContext?(): LixTelemetryParentContext | undefined;
|
|
58
|
+
};
|
|
59
|
+
/** Stable phases emitted while a local repository is opened. */
|
|
60
|
+
export type LixOpenPhase = "inspecting" | "migrating" | "validating" | "opening" | "complete";
|
|
61
|
+
/** One observational repository-open progress snapshot. */
|
|
62
|
+
export type LixOpenProgress = {
|
|
63
|
+
phase: LixOpenPhase;
|
|
64
|
+
fromFormat?: number;
|
|
65
|
+
toFormat: number;
|
|
66
|
+
completed?: number;
|
|
67
|
+
total?: number;
|
|
68
|
+
};
|
|
69
|
+
/** The automatic repository migration performed by an open, if any. */
|
|
70
|
+
export type LixOpenMigrationReport = {
|
|
71
|
+
fromFormat: number;
|
|
72
|
+
toFormat: number;
|
|
73
|
+
};
|
|
74
|
+
/** Immutable facts about how a local Lix handle was opened. */
|
|
75
|
+
export type LixOpenReport = {
|
|
76
|
+
format: number;
|
|
77
|
+
initialized: boolean;
|
|
78
|
+
migration?: LixOpenMigrationReport;
|
|
79
|
+
};
|
|
80
|
+
export type LixOpenProgressOptions = {
|
|
81
|
+
/** Observes local inspection, automatic migration, and opening. */
|
|
82
|
+
onProgress?(progress: LixOpenProgress): void;
|
|
25
83
|
};
|
|
26
84
|
export type OpenLixOptions = {
|
|
27
|
-
storage?: import("./storage-adapter.js").LixStorage
|
|
85
|
+
storage?: import("./storage-adapter.js").LixStorage;
|
|
28
86
|
server?: never;
|
|
29
87
|
telemetry?: LixTelemetryOptions;
|
|
30
|
-
} | {
|
|
88
|
+
} & LixOpenProgressOptions | {
|
|
31
89
|
storage?: never;
|
|
32
90
|
server: RemoteLixServerOptions;
|
|
33
91
|
telemetry?: never;
|
|
92
|
+
onProgress?: never;
|
|
93
|
+
} | {
|
|
94
|
+
storage: import("./storage-adapter.js").LixStorage;
|
|
95
|
+
server: SyncLixServerOptions;
|
|
96
|
+
telemetry?: LixTelemetryOptions;
|
|
97
|
+
} & LixOpenProgressOptions;
|
|
98
|
+
/** Selects the initial context for an additional independent session. */
|
|
99
|
+
export type OpenAnotherSessionOptions = {
|
|
100
|
+
/** Defaults to the current branch of the session opening it. */
|
|
101
|
+
branchId?: string;
|
|
102
|
+
/** Defaults to the current account. Remote sessions cannot override identity. */
|
|
103
|
+
accountId?: string;
|
|
34
104
|
};
|
|
35
105
|
export type LixValue = {
|
|
36
106
|
kind: "null";
|
|
@@ -50,6 +120,9 @@ export type LixValue = {
|
|
|
50
120
|
} | {
|
|
51
121
|
kind: "jsonb";
|
|
52
122
|
value: JsonValue;
|
|
123
|
+
} | {
|
|
124
|
+
kind: "row_ref";
|
|
125
|
+
value: string;
|
|
53
126
|
} | {
|
|
54
127
|
kind: "timestamptz";
|
|
55
128
|
value: string;
|
|
@@ -63,6 +136,8 @@ export type JsonValue = null | boolean | number | string | readonly JsonValue[]
|
|
|
63
136
|
export type SqlParam = JsonValue | Uint8Array | import("./value.js").Value;
|
|
64
137
|
export type ExecuteOptions = {
|
|
65
138
|
originKey?: string;
|
|
139
|
+
/** Returns positional arrays instead of plain objects. Defaults to "object". */
|
|
140
|
+
rowMode?: "object" | "array";
|
|
66
141
|
/**
|
|
67
142
|
* Stable identity for one logical remote SQL mutation. Supply the same key
|
|
68
143
|
* when retrying after a lost response; remote Lix generates one per call
|
|
@@ -77,14 +152,24 @@ export type LixBatchStatement = {
|
|
|
77
152
|
};
|
|
78
153
|
export type LixBatchOptions = {
|
|
79
154
|
originKey?: string;
|
|
155
|
+
/** Returns positional arrays instead of plain objects. Defaults to "object". */
|
|
156
|
+
rowMode?: "object" | "array";
|
|
80
157
|
/** See {@link ExecuteOptions.idempotencyKey}. */
|
|
81
158
|
idempotencyKey?: string;
|
|
82
159
|
};
|
|
83
|
-
export type
|
|
160
|
+
export type ResultColumnType = LixValue["kind"];
|
|
161
|
+
export type ResultColumn = {
|
|
162
|
+
name: string;
|
|
163
|
+
type: ResultColumnType;
|
|
164
|
+
};
|
|
165
|
+
export type ResultObjectRow = Record<string, unknown>;
|
|
166
|
+
export type ResultArrayRow = unknown[];
|
|
167
|
+
export type ResultRow = ResultObjectRow | ResultArrayRow;
|
|
168
|
+
export type ExecuteResult<TRow extends object = ResultObjectRow> = {
|
|
84
169
|
statementIndex?: number;
|
|
85
170
|
label?: string;
|
|
86
|
-
columns:
|
|
87
|
-
rows:
|
|
171
|
+
columns: ResultColumn[];
|
|
172
|
+
rows: TRow[];
|
|
88
173
|
rowsAffected: number;
|
|
89
174
|
notices: Array<{
|
|
90
175
|
code: string;
|
|
@@ -92,7 +177,7 @@ export type ExecuteResult = {
|
|
|
92
177
|
hint?: string;
|
|
93
178
|
}>;
|
|
94
179
|
};
|
|
95
|
-
export type ExecuteBatchResult = ExecuteResult & {
|
|
180
|
+
export type ExecuteBatchResult<TRow extends object = ResultObjectRow> = ExecuteResult<TRow> & {
|
|
96
181
|
statementIndex: number;
|
|
97
182
|
};
|
|
98
183
|
export type ObserveEvent = {
|
|
@@ -105,17 +190,6 @@ export type ObserveEvent = {
|
|
|
105
190
|
*/
|
|
106
191
|
result: ExecuteResult;
|
|
107
192
|
};
|
|
108
|
-
export type RowLike = {
|
|
109
|
-
get(column: string): unknown;
|
|
110
|
-
value(column: string): ValueLike;
|
|
111
|
-
toObject(): Record<string, unknown>;
|
|
112
|
-
toValueMap(): Record<string, ValueLike>;
|
|
113
|
-
};
|
|
114
|
-
export type ValueLike = {
|
|
115
|
-
readonly kind: LixValue["kind"];
|
|
116
|
-
toJS(): unknown;
|
|
117
|
-
asBytes(): Uint8Array | undefined;
|
|
118
|
-
};
|
|
119
193
|
export type CreateBranchOptions = {
|
|
120
194
|
id?: string;
|
|
121
195
|
name: string;
|
|
@@ -127,9 +201,6 @@ export type CreateBranchReceipt = {
|
|
|
127
201
|
hidden: boolean;
|
|
128
202
|
commitId: string;
|
|
129
203
|
};
|
|
130
|
-
export type CreateCheckpointReceipt = {
|
|
131
|
-
commitId: string;
|
|
132
|
-
};
|
|
133
204
|
export type UndoReceipt = {
|
|
134
205
|
branchId: string;
|
|
135
206
|
targetCommitId: string;
|
|
@@ -179,8 +250,7 @@ export type MergeChangeStats = {
|
|
|
179
250
|
};
|
|
180
251
|
export type MergeConflict = {
|
|
181
252
|
kind: "sameRowChanged";
|
|
182
|
-
|
|
183
|
-
rowPk: unknown;
|
|
253
|
+
rowRef: string;
|
|
184
254
|
fileId: string | null;
|
|
185
255
|
target: MergeConflictSide;
|
|
186
256
|
source: MergeConflictSide;
|
package/dist/value.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare class Value {
|
|
|
9
9
|
static real(value: number): Value;
|
|
10
10
|
static text(value: string): Value;
|
|
11
11
|
static jsonb(value: JsonValue): Value;
|
|
12
|
+
static rowRef(value: string): Value;
|
|
12
13
|
static timestamptz(value: string): Value;
|
|
13
14
|
static blob(value: Uint8Array): Value;
|
|
14
15
|
static from(value: SqlParam): Value;
|
package/dist/value.js
CHANGED
|
@@ -25,6 +25,9 @@ export class Value {
|
|
|
25
25
|
static jsonb(value) {
|
|
26
26
|
return new Value({ kind: "jsonb", value });
|
|
27
27
|
}
|
|
28
|
+
static rowRef(value) {
|
|
29
|
+
return new Value({ kind: "row_ref", value });
|
|
30
|
+
}
|
|
28
31
|
static timestamptz(value) {
|
|
29
32
|
return new Value({ kind: "timestamptz", value });
|
|
30
33
|
}
|
|
@@ -122,6 +125,7 @@ function unwrapValue(value) {
|
|
|
122
125
|
case "text":
|
|
123
126
|
case "timestamptz":
|
|
124
127
|
case "jsonb":
|
|
128
|
+
case "row_ref":
|
|
125
129
|
return cloneJsonValue(value.value);
|
|
126
130
|
case "blob":
|
|
127
131
|
return new Uint8Array(value.value);
|
|
@@ -204,6 +208,10 @@ function validateExplicitValue(value) {
|
|
|
204
208
|
case "jsonb":
|
|
205
209
|
assertJsonSerializable(value.value, new WeakSet(), 0);
|
|
206
210
|
return;
|
|
211
|
+
case "row_ref":
|
|
212
|
+
if (typeof value.value === "string" && isWellFormedString(value.value))
|
|
213
|
+
return;
|
|
214
|
+
break;
|
|
207
215
|
case "timestamptz":
|
|
208
216
|
if (typeof value.value === "string" && !Number.isNaN(Date.parse(value.value))) {
|
|
209
217
|
return;
|
|
@@ -10,15 +10,19 @@ export class WasmLix {
|
|
|
10
10
|
beginTransaction(): Promise<WasmLixTransaction>;
|
|
11
11
|
close(): Promise<void>;
|
|
12
12
|
createBranch(options: any): Promise<any>;
|
|
13
|
-
createCheckpoint(): Promise<any>;
|
|
14
13
|
execute(sql: string, params: any, options?: any | null): Promise<any>;
|
|
15
14
|
executeBatch(statements: any, options?: any | null): Promise<any>;
|
|
16
|
-
exportSnapshot():
|
|
15
|
+
exportSnapshot(): WasmSnapshotExport;
|
|
16
|
+
importFilesystemPaths(_paths: any): Promise<void>;
|
|
17
17
|
mergeBranch(options: any): Promise<any>;
|
|
18
18
|
mergeBranchPreview(options: any): Promise<any>;
|
|
19
19
|
observe(sql: string, params: any): Promise<WasmObserveEvents>;
|
|
20
|
+
openAnotherSession(options: any): Promise<WasmLix>;
|
|
21
|
+
openReport(): any;
|
|
20
22
|
redo(): Promise<any>;
|
|
23
|
+
setTelemetryParent(parent?: any | null): void;
|
|
21
24
|
switchBranch(options: any): Promise<any>;
|
|
25
|
+
syncDiskToLix(): Promise<void>;
|
|
22
26
|
undo(): Promise<any>;
|
|
23
27
|
}
|
|
24
28
|
|
|
@@ -37,15 +41,77 @@ export class WasmObserveEvents {
|
|
|
37
41
|
[Symbol.dispose](): void;
|
|
38
42
|
close(): void;
|
|
39
43
|
next(): Promise<any>;
|
|
44
|
+
setTelemetryParent(parent?: any | null): void;
|
|
40
45
|
}
|
|
41
46
|
|
|
42
|
-
export
|
|
47
|
+
export class WasmRemoteLix {
|
|
48
|
+
private constructor();
|
|
49
|
+
free(): void;
|
|
50
|
+
[Symbol.dispose](): void;
|
|
51
|
+
activeAccountId(): Promise<string>;
|
|
52
|
+
activeBranchId(): Promise<string>;
|
|
53
|
+
beginTransaction(): Promise<WasmRemoteLixTransaction>;
|
|
54
|
+
close(): Promise<void>;
|
|
55
|
+
createBranch(options: any): Promise<any>;
|
|
56
|
+
execute(sql: string, params: any, options?: any | null): Promise<any>;
|
|
57
|
+
executeBatch(statements: any, options?: any | null): Promise<any>;
|
|
58
|
+
importFilesystemPaths(_paths: any): Promise<void>;
|
|
59
|
+
mergeBranch(_options: any): Promise<any>;
|
|
60
|
+
mergeBranchPreview(_options: any): Promise<any>;
|
|
61
|
+
observe(sql: string, params: any): Promise<WasmRemoteObserveEvents>;
|
|
62
|
+
openAnotherSession(options: any): Promise<WasmRemoteLix>;
|
|
63
|
+
redo(): Promise<any>;
|
|
64
|
+
setTelemetryParent(_parent?: any | null): void;
|
|
65
|
+
switchBranch(options: any): Promise<any>;
|
|
66
|
+
syncDiskToLix(): Promise<void>;
|
|
67
|
+
undo(): Promise<any>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export class WasmRemoteLixTransaction {
|
|
71
|
+
private constructor();
|
|
72
|
+
free(): void;
|
|
73
|
+
[Symbol.dispose](): void;
|
|
74
|
+
commit(): Promise<void>;
|
|
75
|
+
execute(sql: string, params: any, options?: any | null): Promise<any>;
|
|
76
|
+
rollback(): Promise<void>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export class WasmRemoteObserveEvents {
|
|
80
|
+
private constructor();
|
|
81
|
+
free(): void;
|
|
82
|
+
[Symbol.dispose](): void;
|
|
83
|
+
close(): void;
|
|
84
|
+
next(): Promise<any>;
|
|
85
|
+
setTelemetryParent(_parent?: any | null): void;
|
|
86
|
+
}
|
|
43
87
|
|
|
44
|
-
export
|
|
88
|
+
export class WasmSnapshotExport {
|
|
89
|
+
private constructor();
|
|
90
|
+
free(): void;
|
|
91
|
+
[Symbol.dispose](): void;
|
|
92
|
+
cancel(): Promise<void>;
|
|
93
|
+
next(): Promise<Uint8Array | undefined>;
|
|
94
|
+
}
|
|
45
95
|
|
|
46
|
-
export
|
|
96
|
+
export class WasmSnapshotRestore {
|
|
97
|
+
private constructor();
|
|
98
|
+
free(): void;
|
|
99
|
+
[Symbol.dispose](): void;
|
|
100
|
+
cancel(): Promise<void>;
|
|
101
|
+
finish(): Promise<WasmLix>;
|
|
102
|
+
isComplete(): boolean;
|
|
103
|
+
write(chunk: Uint8Array): Promise<void>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function openJsStorage(provider: any, telemetry_dispatch?: Function | null, telemetry_parent?: any | null, server?: any | null, open_progress_dispatch?: Function | null): Promise<WasmLix>;
|
|
107
|
+
|
|
108
|
+
export function openJsStorageFromSnapshot(provider: any, telemetry_dispatch?: Function | null, telemetry_parent?: any | null, open_progress_dispatch?: Function | null): WasmSnapshotRestore;
|
|
47
109
|
|
|
48
|
-
export function
|
|
110
|
+
export function openMemory(telemetry_dispatch?: Function | null, telemetry_parent?: any | null, server?: any | null, open_progress_dispatch?: Function | null): Promise<WasmLix>;
|
|
111
|
+
|
|
112
|
+
export function openMemoryFromSnapshot(telemetry_dispatch?: Function | null, telemetry_parent?: any | null, open_progress_dispatch?: Function | null): WasmSnapshotRestore;
|
|
113
|
+
|
|
114
|
+
export function openRemote(url: string, fetch: Function, headers: any, initial_active_branch_id?: string | null): Promise<WasmRemoteLix>;
|
|
49
115
|
|
|
50
116
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
51
117
|
|
|
@@ -54,32 +120,73 @@ export interface InitOutput {
|
|
|
54
120
|
readonly __wbg_wasmlix_free: (a: number, b: number) => void;
|
|
55
121
|
readonly __wbg_wasmlixtransaction_free: (a: number, b: number) => void;
|
|
56
122
|
readonly __wbg_wasmobserveevents_free: (a: number, b: number) => void;
|
|
57
|
-
readonly
|
|
58
|
-
readonly
|
|
123
|
+
readonly __wbg_wasmremotelix_free: (a: number, b: number) => void;
|
|
124
|
+
readonly __wbg_wasmremotelixtransaction_free: (a: number, b: number) => void;
|
|
125
|
+
readonly __wbg_wasmremoteobserveevents_free: (a: number, b: number) => void;
|
|
126
|
+
readonly __wbg_wasmsnapshotexport_free: (a: number, b: number) => void;
|
|
127
|
+
readonly __wbg_wasmsnapshotrestore_free: (a: number, b: number) => void;
|
|
128
|
+
readonly openJsStorage: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
129
|
+
readonly openJsStorageFromSnapshot: (a: number, b: number, c: number, d: number) => number;
|
|
130
|
+
readonly openMemory: (a: number, b: number, c: number, d: number) => number;
|
|
59
131
|
readonly openMemoryFromSnapshot: (a: number, b: number, c: number) => number;
|
|
60
|
-
readonly
|
|
132
|
+
readonly openRemote: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
61
133
|
readonly wasmlix_activeAccountId: (a: number) => number;
|
|
62
134
|
readonly wasmlix_activeBranchId: (a: number) => number;
|
|
63
135
|
readonly wasmlix_beginTransaction: (a: number) => number;
|
|
64
136
|
readonly wasmlix_close: (a: number) => number;
|
|
65
137
|
readonly wasmlix_createBranch: (a: number, b: number) => number;
|
|
66
|
-
readonly wasmlix_createCheckpoint: (a: number) => number;
|
|
67
138
|
readonly wasmlix_execute: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
68
139
|
readonly wasmlix_executeBatch: (a: number, b: number, c: number) => number;
|
|
69
140
|
readonly wasmlix_exportSnapshot: (a: number) => number;
|
|
141
|
+
readonly wasmlix_importFilesystemPaths: (a: number, b: number) => number;
|
|
70
142
|
readonly wasmlix_mergeBranch: (a: number, b: number) => number;
|
|
71
143
|
readonly wasmlix_mergeBranchPreview: (a: number, b: number) => number;
|
|
72
144
|
readonly wasmlix_observe: (a: number, b: number, c: number, d: number) => number;
|
|
145
|
+
readonly wasmlix_openAnotherSession: (a: number, b: number) => number;
|
|
146
|
+
readonly wasmlix_openReport: (a: number, b: number) => void;
|
|
73
147
|
readonly wasmlix_redo: (a: number) => number;
|
|
148
|
+
readonly wasmlix_setTelemetryParent: (a: number, b: number, c: number) => void;
|
|
74
149
|
readonly wasmlix_switchBranch: (a: number, b: number) => number;
|
|
150
|
+
readonly wasmlix_syncDiskToLix: (a: number) => number;
|
|
75
151
|
readonly wasmlix_undo: (a: number) => number;
|
|
76
152
|
readonly wasmlixtransaction_commit: (a: number) => number;
|
|
77
153
|
readonly wasmlixtransaction_execute: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
78
154
|
readonly wasmlixtransaction_rollback: (a: number) => number;
|
|
79
155
|
readonly wasmobserveevents_close: (a: number) => void;
|
|
80
156
|
readonly wasmobserveevents_next: (a: number) => number;
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
157
|
+
readonly wasmobserveevents_setTelemetryParent: (a: number, b: number, c: number) => void;
|
|
158
|
+
readonly wasmremotelix_activeAccountId: (a: number) => number;
|
|
159
|
+
readonly wasmremotelix_activeBranchId: (a: number) => number;
|
|
160
|
+
readonly wasmremotelix_beginTransaction: (a: number) => number;
|
|
161
|
+
readonly wasmremotelix_close: (a: number) => number;
|
|
162
|
+
readonly wasmremotelix_createBranch: (a: number, b: number) => number;
|
|
163
|
+
readonly wasmremotelix_execute: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
164
|
+
readonly wasmremotelix_executeBatch: (a: number, b: number, c: number) => number;
|
|
165
|
+
readonly wasmremotelix_importFilesystemPaths: (a: number, b: number) => number;
|
|
166
|
+
readonly wasmremotelix_mergeBranch: (a: number, b: number) => number;
|
|
167
|
+
readonly wasmremotelix_mergeBranchPreview: (a: number, b: number) => number;
|
|
168
|
+
readonly wasmremotelix_observe: (a: number, b: number, c: number, d: number) => number;
|
|
169
|
+
readonly wasmremotelix_openAnotherSession: (a: number, b: number) => number;
|
|
170
|
+
readonly wasmremotelix_redo: (a: number) => number;
|
|
171
|
+
readonly wasmremotelix_setTelemetryParent: (a: number, b: number) => void;
|
|
172
|
+
readonly wasmremotelix_switchBranch: (a: number, b: number) => number;
|
|
173
|
+
readonly wasmremotelix_syncDiskToLix: (a: number) => number;
|
|
174
|
+
readonly wasmremotelix_undo: (a: number) => number;
|
|
175
|
+
readonly wasmremotelixtransaction_commit: (a: number) => number;
|
|
176
|
+
readonly wasmremotelixtransaction_execute: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
177
|
+
readonly wasmremotelixtransaction_rollback: (a: number) => number;
|
|
178
|
+
readonly wasmremoteobserveevents_close: (a: number) => void;
|
|
179
|
+
readonly wasmremoteobserveevents_next: (a: number) => number;
|
|
180
|
+
readonly wasmremoteobserveevents_setTelemetryParent: (a: number, b: number) => void;
|
|
181
|
+
readonly wasmsnapshotexport_cancel: (a: number) => number;
|
|
182
|
+
readonly wasmsnapshotexport_next: (a: number) => number;
|
|
183
|
+
readonly wasmsnapshotrestore_cancel: (a: number) => number;
|
|
184
|
+
readonly wasmsnapshotrestore_finish: (a: number) => number;
|
|
185
|
+
readonly wasmsnapshotrestore_isComplete: (a: number) => number;
|
|
186
|
+
readonly wasmsnapshotrestore_write: (a: number, b: number, c: number) => number;
|
|
187
|
+
readonly __wasm_bindgen_func_elem_92059: (a: number, b: number, c: number, d: number) => void;
|
|
188
|
+
readonly __wasm_bindgen_func_elem_92061: (a: number, b: number, c: number, d: number) => void;
|
|
189
|
+
readonly __wasm_bindgen_func_elem_16459: (a: number, b: number) => void;
|
|
83
190
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
84
191
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
85
192
|
readonly __wbindgen_export3: (a: number) => void;
|
|
@@ -88,18 +195,6 @@ export interface InitOutput {
|
|
|
88
195
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
89
196
|
}
|
|
90
197
|
|
|
91
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
95
|
-
* a precompiled `WebAssembly.Module`.
|
|
96
|
-
*
|
|
97
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
98
|
-
*
|
|
99
|
-
* @returns {InitOutput}
|
|
100
|
-
*/
|
|
101
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
102
|
-
|
|
103
198
|
/**
|
|
104
199
|
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
105
200
|
* for everything else, calls `WebAssembly.instantiate` directly.
|