@rivetkit/rivetkit-wasm 0.0.0-sqlite-profiling-compat.4a9a623 → 0.0.0-sqlite-sync-3x-release.a00b07f
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/index.d.ts +2 -175
- package/package.json +3 -3
- package/pkg/package.json +19 -0
- package/pkg/rivetkit_wasm.d.ts +387 -0
- package/pkg/rivetkit_wasm.js +2324 -0
- package/pkg/rivetkit_wasm_bg.wasm +0 -0
- package/pkg/rivetkit_wasm_bg.wasm.d.ts +148 -0
package/index.d.ts
CHANGED
|
@@ -1,175 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
4
|
-
export function bridgeRivetErrorPrefix(): string;
|
|
5
|
-
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
6
|
-
|
|
7
|
-
export class ActorContext {
|
|
8
|
-
free(): void;
|
|
9
|
-
keepAwake(promise: Promise<any>): void;
|
|
10
|
-
saveState(payload: any): Promise<void>;
|
|
11
|
-
waitUntil(promise: Promise<any>): void;
|
|
12
|
-
abortSignal(): any;
|
|
13
|
-
connectConn(params: Uint8Array, request: any): Promise<ConnHandle>;
|
|
14
|
-
requestSave(opts: any): void;
|
|
15
|
-
registerTask(promise: Promise<any>): void;
|
|
16
|
-
runtimeState(): any;
|
|
17
|
-
endKeepAwake(region_id: number): void;
|
|
18
|
-
beginKeepAwake(): number;
|
|
19
|
-
inspectorSnapshot(): object;
|
|
20
|
-
endOnStateChange(): void;
|
|
21
|
-
restartRunHandler(): void;
|
|
22
|
-
beginOnStateChange(): void;
|
|
23
|
-
requestSaveAndWait(opts: any): Promise<void>;
|
|
24
|
-
verifyInspectorAuth(bearer_token?: string | null): Promise<void>;
|
|
25
|
-
endWebsocketCallback(region_id: number): void;
|
|
26
|
-
beginWebsocketCallback(): number;
|
|
27
|
-
dirtyHibernatableConns(): Array<any>;
|
|
28
|
-
kv(): Kv;
|
|
29
|
-
waitForTrackedShutdownWork(): Promise<boolean>;
|
|
30
|
-
takePendingHibernationChanges(): Array<any>;
|
|
31
|
-
key(): any;
|
|
32
|
-
constructor();
|
|
33
|
-
sql(): SqliteDb;
|
|
34
|
-
name(): string;
|
|
35
|
-
conns(): Array<any>;
|
|
36
|
-
queue(): Queue;
|
|
37
|
-
sleep(): void;
|
|
38
|
-
state(): Uint8Array;
|
|
39
|
-
region(): string;
|
|
40
|
-
destroy(): void;
|
|
41
|
-
actorId(): string;
|
|
42
|
-
schedule(): Schedule;
|
|
43
|
-
broadcast(name: string, args: Uint8Array): void;
|
|
44
|
-
setAlarm(timestamp_ms?: number | null): void;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export class ActorFactory {
|
|
48
|
-
free(): void;
|
|
49
|
-
constructor(callbacks: any, config: any);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export class CancellationToken {
|
|
53
|
-
free(): void;
|
|
54
|
-
onCancelled(callback: Function): void;
|
|
55
|
-
constructor();
|
|
56
|
-
cancel(): void;
|
|
57
|
-
aborted(): boolean;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export class ConnHandle {
|
|
61
|
-
private constructor();
|
|
62
|
-
free(): void;
|
|
63
|
-
disconnect(reason?: string | null): Promise<void>;
|
|
64
|
-
isHibernatable(): boolean;
|
|
65
|
-
id(): string;
|
|
66
|
-
send(name: string, args: Uint8Array): void;
|
|
67
|
-
state(): Uint8Array;
|
|
68
|
-
params(): Uint8Array;
|
|
69
|
-
setState(state: Uint8Array): void;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export class CoreRegistry {
|
|
73
|
-
free(): void;
|
|
74
|
-
handleServerlessRequest(
|
|
75
|
-
req: any,
|
|
76
|
-
on_stream_event: Function,
|
|
77
|
-
cancel_token: CancellationToken,
|
|
78
|
-
config: any,
|
|
79
|
-
): Promise<any>;
|
|
80
|
-
constructor();
|
|
81
|
-
serve(config: any): Promise<void>;
|
|
82
|
-
register(name: string, factory: ActorFactory): void;
|
|
83
|
-
shutdown(): Promise<void>;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export class Kv {
|
|
87
|
-
private constructor();
|
|
88
|
-
free(): void;
|
|
89
|
-
delete(key: Uint8Array): Promise<void>;
|
|
90
|
-
listRange(start: Uint8Array, end: Uint8Array, options: any): Promise<any>;
|
|
91
|
-
listPrefix(prefix: Uint8Array, options: any): Promise<any>;
|
|
92
|
-
batchDelete(keys: Array<any>): Promise<void>;
|
|
93
|
-
deleteRange(start: Uint8Array, end: Uint8Array): Promise<void>;
|
|
94
|
-
get(key: Uint8Array): Promise<any>;
|
|
95
|
-
put(key: Uint8Array, value: Uint8Array): Promise<void>;
|
|
96
|
-
batchGet(keys: Array<any>): Promise<any>;
|
|
97
|
-
batchPut(entries: Array<any>): Promise<void>;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export class Queue {
|
|
101
|
-
private constructor();
|
|
102
|
-
free(): void;
|
|
103
|
-
nextBatch(
|
|
104
|
-
options: any,
|
|
105
|
-
signal?: CancellationToken | null,
|
|
106
|
-
): Promise<Array<any>>;
|
|
107
|
-
tryNextBatch(options: any): Array<any>;
|
|
108
|
-
waitForNames(
|
|
109
|
-
names: any,
|
|
110
|
-
options: any,
|
|
111
|
-
signal?: CancellationToken | null,
|
|
112
|
-
): Promise<QueueMessage>;
|
|
113
|
-
enqueueAndWait(
|
|
114
|
-
name: string,
|
|
115
|
-
body: Uint8Array,
|
|
116
|
-
options: any,
|
|
117
|
-
signal?: CancellationToken | null,
|
|
118
|
-
): Promise<Uint8Array | undefined>;
|
|
119
|
-
inspectMessages(): Promise<Array<any>>;
|
|
120
|
-
waitForNamesAvailable(names: any, options: any): Promise<void>;
|
|
121
|
-
send(name: string, body: Uint8Array): Promise<QueueMessage>;
|
|
122
|
-
maxSize(): number;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export class QueueMessage {
|
|
126
|
-
private constructor();
|
|
127
|
-
free(): void;
|
|
128
|
-
createdAt(): number;
|
|
129
|
-
isCompletable(): boolean;
|
|
130
|
-
id(): bigint;
|
|
131
|
-
body(): Uint8Array;
|
|
132
|
-
name(): string;
|
|
133
|
-
complete(response: any): Promise<void>;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export class Schedule {
|
|
137
|
-
private constructor();
|
|
138
|
-
free(): void;
|
|
139
|
-
at(timestamp_ms: number, action_name: string, args: Uint8Array): void;
|
|
140
|
-
after(duration_ms: number, action_name: string, args: Uint8Array): void;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export class SqliteDb {
|
|
144
|
-
private constructor();
|
|
145
|
-
free(): void;
|
|
146
|
-
run(sql: string, params: any): Promise<any>;
|
|
147
|
-
exec(sql: string): Promise<any>;
|
|
148
|
-
close(): Promise<void>;
|
|
149
|
-
query(sql: string, params: any): Promise<any>;
|
|
150
|
-
execute(sql: string, params: any): Promise<any>;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export class WebSocketHandle {
|
|
154
|
-
private constructor();
|
|
155
|
-
free(): void;
|
|
156
|
-
setEventCallback(callback: Function): void;
|
|
157
|
-
send(data: Uint8Array, binary: boolean): void;
|
|
158
|
-
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export type InitInput =
|
|
162
|
-
| RequestInfo
|
|
163
|
-
| URL
|
|
164
|
-
| Response
|
|
165
|
-
| BufferSource
|
|
166
|
-
| WebAssembly.Module;
|
|
167
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
168
|
-
export interface InitOutput {
|
|
169
|
-
readonly memory: WebAssembly.Memory;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare function init(
|
|
173
|
-
module_or_path?: InitInput | Promise<InitInput>,
|
|
174
|
-
): Promise<InitOutput>;
|
|
175
|
-
export default init;
|
|
1
|
+
export * from "./pkg/rivetkit_wasm.js";
|
|
2
|
+
export { default } from "./pkg/rivetkit_wasm.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-wasm",
|
|
3
|
-
"version": "0.0.0-sqlite-
|
|
3
|
+
"version": "0.0.0-sqlite-sync-3x-release.a00b07f",
|
|
4
4
|
"description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build:cloudflare": "node scripts/build.mjs --target bundler --out-dir pkg-cloudflare",
|
|
33
33
|
"build:deno": "node scripts/build.mjs --target web --out-dir pkg-deno",
|
|
34
34
|
"check:package": "node scripts/check-package.mjs",
|
|
35
|
-
"check-types": "tsc --noEmit",
|
|
35
|
+
"check-types": "pnpm run build && tsc --noEmit",
|
|
36
36
|
"check:wasm": "cargo check -p rivetkit-wasm --target wasm32-unknown-unknown",
|
|
37
37
|
"prepack": "node scripts/build.mjs"
|
|
38
38
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|
|
45
|
-
"url": "https://github.com/rivet-dev/
|
|
45
|
+
"url": "https://github.com/rivet-dev/rivet.git",
|
|
46
46
|
"directory": "rivetkit-typescript/packages/rivetkit-wasm"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/pkg/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rivetkit-wasm",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"collaborators": [
|
|
5
|
+
"Rivet Gaming, LLC <developer@rivet.dev>"
|
|
6
|
+
],
|
|
7
|
+
"version": "3.0.0-preview.3",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"files": [
|
|
10
|
+
"rivetkit_wasm_bg.wasm",
|
|
11
|
+
"rivetkit_wasm.js",
|
|
12
|
+
"rivetkit_wasm.d.ts"
|
|
13
|
+
],
|
|
14
|
+
"main": "rivetkit_wasm.js",
|
|
15
|
+
"types": "rivetkit_wasm.d.ts",
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"./snippets/*"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
export class ActorContext {
|
|
5
|
+
free(): void;
|
|
6
|
+
[Symbol.dispose](): void;
|
|
7
|
+
abortSignal(): any;
|
|
8
|
+
actorId(): string;
|
|
9
|
+
beginKeepAwake(): number;
|
|
10
|
+
beginOnStateChange(): void;
|
|
11
|
+
beginStateTransaction(timeout_ms?: number | null): Promise<ActorStateTransaction>;
|
|
12
|
+
beginWebsocketCallback(): number;
|
|
13
|
+
broadcast(name: string, args: Uint8Array): void;
|
|
14
|
+
connectConn(params: Uint8Array, request: any): Promise<ConnHandle>;
|
|
15
|
+
conns(): Array<any>;
|
|
16
|
+
destroy(): void;
|
|
17
|
+
dirtyHibernatableConns(): Array<any>;
|
|
18
|
+
endKeepAwake(region_id: number): void;
|
|
19
|
+
endOnStateChange(): void;
|
|
20
|
+
endWebsocketCallback(region_id: number): void;
|
|
21
|
+
inspectorSnapshot(): object;
|
|
22
|
+
keepAwake(promise: Promise<any>): void;
|
|
23
|
+
key(): any;
|
|
24
|
+
kv(): Kv;
|
|
25
|
+
name(): string;
|
|
26
|
+
constructor();
|
|
27
|
+
queue(): Queue;
|
|
28
|
+
region(): string;
|
|
29
|
+
registerTask(promise: Promise<any>): void;
|
|
30
|
+
requestSaveAndWait(opts: any): Promise<void>;
|
|
31
|
+
requestSave(opts: any): void;
|
|
32
|
+
restartRunHandler(): void;
|
|
33
|
+
runtimeState(): any;
|
|
34
|
+
saveStateAndWorkflowBatch(writes: any): Promise<void>;
|
|
35
|
+
saveState(payload: any): Promise<void>;
|
|
36
|
+
schedule(): Schedule;
|
|
37
|
+
setAlarm(timestamp_ms?: number | null): void;
|
|
38
|
+
setRunWakeAt(timestamp_ms?: number | null): Promise<void>;
|
|
39
|
+
sleep(): void;
|
|
40
|
+
sql(): SqliteDb;
|
|
41
|
+
state(): Uint8Array;
|
|
42
|
+
takePendingHibernationChanges(): Array<any>;
|
|
43
|
+
verifyInspectorAuth(bearer_token?: string | null): Promise<void>;
|
|
44
|
+
waitForTrackedShutdownWorkUnbounded(): Promise<void>;
|
|
45
|
+
waitForTrackedShutdownWork(): Promise<boolean>;
|
|
46
|
+
waitUntil(promise: Promise<any>): void;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class ActorFactory {
|
|
50
|
+
free(): void;
|
|
51
|
+
[Symbol.dispose](): void;
|
|
52
|
+
constructor(callbacks: any, config: any);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class ActorStateTransaction {
|
|
56
|
+
private constructor();
|
|
57
|
+
free(): void;
|
|
58
|
+
[Symbol.dispose](): void;
|
|
59
|
+
commit(payload: any): Promise<void>;
|
|
60
|
+
execute(sql: string, params: any): Promise<any>;
|
|
61
|
+
rollback(): Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Registration returned by `CancellationToken.onCancelled`.
|
|
66
|
+
*/
|
|
67
|
+
export class CancellationListener {
|
|
68
|
+
private constructor();
|
|
69
|
+
free(): void;
|
|
70
|
+
[Symbol.dispose](): void;
|
|
71
|
+
/**
|
|
72
|
+
* Stops waiting for cancellation without calling the callback.
|
|
73
|
+
*/
|
|
74
|
+
release(): void;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export class CancellationToken {
|
|
78
|
+
free(): void;
|
|
79
|
+
[Symbol.dispose](): void;
|
|
80
|
+
aborted(): boolean;
|
|
81
|
+
cancel(): void;
|
|
82
|
+
constructor();
|
|
83
|
+
/**
|
|
84
|
+
* Calls `callback` once when the token is cancelled. Release the returned
|
|
85
|
+
* listener when cancellation no longer matters; otherwise the waiting task
|
|
86
|
+
* and the callback stay alive until the token is cancelled.
|
|
87
|
+
*/
|
|
88
|
+
onCancelled(callback: Function): CancellationListener;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export class ConnHandle {
|
|
92
|
+
private constructor();
|
|
93
|
+
free(): void;
|
|
94
|
+
[Symbol.dispose](): void;
|
|
95
|
+
disconnect(reason?: string | null): Promise<void>;
|
|
96
|
+
id(): string;
|
|
97
|
+
isHibernatable(): boolean;
|
|
98
|
+
params(): Uint8Array;
|
|
99
|
+
send(name: string, args: Uint8Array): void;
|
|
100
|
+
setState(state: Uint8Array): void;
|
|
101
|
+
state(): Uint8Array;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export class CoreRegistry {
|
|
105
|
+
free(): void;
|
|
106
|
+
[Symbol.dispose](): void;
|
|
107
|
+
handleServerlessRequest(req: any, on_stream_event: Function, cancel_token: CancellationToken, config: any): Promise<any>;
|
|
108
|
+
constructor();
|
|
109
|
+
register(name: string, factory: ActorFactory): void;
|
|
110
|
+
serve(config: any): Promise<void>;
|
|
111
|
+
shutdown(): Promise<void>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export class Kv {
|
|
115
|
+
private constructor();
|
|
116
|
+
free(): void;
|
|
117
|
+
[Symbol.dispose](): void;
|
|
118
|
+
batchDelete(keys: Array<any>): Promise<void>;
|
|
119
|
+
batchGet(keys: Array<any>): Promise<any>;
|
|
120
|
+
batchPut(entries: Array<any>): Promise<void>;
|
|
121
|
+
deleteRange(start: Uint8Array, end: Uint8Array): Promise<void>;
|
|
122
|
+
delete(key: Uint8Array): Promise<void>;
|
|
123
|
+
get(key: Uint8Array): Promise<any>;
|
|
124
|
+
listPrefix(prefix: Uint8Array, options: any): Promise<any>;
|
|
125
|
+
listRange(start: Uint8Array, end: Uint8Array, options: any): Promise<any>;
|
|
126
|
+
put(key: Uint8Array, value: Uint8Array): Promise<void>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export class Queue {
|
|
130
|
+
private constructor();
|
|
131
|
+
free(): void;
|
|
132
|
+
[Symbol.dispose](): void;
|
|
133
|
+
completePersisted(message_id: bigint, expected_name: string, response?: Uint8Array | null): Promise<boolean>;
|
|
134
|
+
enqueueAndWait(name: string, body: Uint8Array, options: any, signal?: CancellationToken | null): Promise<Uint8Array | undefined>;
|
|
135
|
+
inspectMessages(): Promise<Array<any>>;
|
|
136
|
+
maxSize(): number;
|
|
137
|
+
nextBatch(options: any, signal?: CancellationToken | null): Promise<Array<any>>;
|
|
138
|
+
reset(): Promise<void>;
|
|
139
|
+
send(name: string, body: Uint8Array): Promise<QueueMessage>;
|
|
140
|
+
tryNextBatch(options: any): Array<any>;
|
|
141
|
+
waitForNamesAvailable(names: any, options: any): Promise<void>;
|
|
142
|
+
waitForNames(names: any, options: any, signal?: CancellationToken | null): Promise<QueueMessage>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export class QueueMessage {
|
|
146
|
+
private constructor();
|
|
147
|
+
free(): void;
|
|
148
|
+
[Symbol.dispose](): void;
|
|
149
|
+
body(): Uint8Array;
|
|
150
|
+
complete(response: any): Promise<void>;
|
|
151
|
+
createdAt(): number;
|
|
152
|
+
id(): bigint;
|
|
153
|
+
isCompletable(): boolean;
|
|
154
|
+
name(): string;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export class Schedule {
|
|
158
|
+
private constructor();
|
|
159
|
+
free(): void;
|
|
160
|
+
[Symbol.dispose](): void;
|
|
161
|
+
after(duration_ms: number, action_name: string, args: Uint8Array): Promise<string>;
|
|
162
|
+
at(timestamp_ms: number, action_name: string, args: Uint8Array): Promise<string>;
|
|
163
|
+
cancel(id: string): Promise<boolean>;
|
|
164
|
+
cronDelete(name: string): Promise<boolean>;
|
|
165
|
+
cronEvery(name: string, interval_ms: number, action_name: string, args: Uint8Array, max_history?: number | null): Promise<void>;
|
|
166
|
+
cronGet(name: string): Promise<any>;
|
|
167
|
+
cronHistory(name: string, limit?: number | null): Promise<any>;
|
|
168
|
+
cronList(): Promise<any>;
|
|
169
|
+
cronSet(name: string, expression: string, timezone: string | null | undefined, action_name: string, args: Uint8Array, max_history?: number | null): Promise<void>;
|
|
170
|
+
get(id: string): Promise<any>;
|
|
171
|
+
list(): Promise<any>;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export class SqliteDb {
|
|
175
|
+
private constructor();
|
|
176
|
+
free(): void;
|
|
177
|
+
[Symbol.dispose](): void;
|
|
178
|
+
beginTransaction(timeout_ms?: number | null, name?: string | null): Promise<SqliteTransaction>;
|
|
179
|
+
close(): Promise<void>;
|
|
180
|
+
exec(sql: string): Promise<any>;
|
|
181
|
+
executeBatch(statements: any): Promise<any>;
|
|
182
|
+
execute(sql: string, params: any): Promise<any>;
|
|
183
|
+
query(sql: string, params: any): Promise<any>;
|
|
184
|
+
run(sql: string, params: any): Promise<any>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export class SqliteTransaction {
|
|
188
|
+
private constructor();
|
|
189
|
+
free(): void;
|
|
190
|
+
[Symbol.dispose](): void;
|
|
191
|
+
commit(): Promise<void>;
|
|
192
|
+
exec(sql: string): Promise<any>;
|
|
193
|
+
execute(sql: string, params: any): Promise<any>;
|
|
194
|
+
rollback(): Promise<void>;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export class WebSocketHandle {
|
|
198
|
+
private constructor();
|
|
199
|
+
free(): void;
|
|
200
|
+
[Symbol.dispose](): void;
|
|
201
|
+
close(code?: number | null, reason?: string | null): Promise<void>;
|
|
202
|
+
send(data: Uint8Array, binary: boolean): void;
|
|
203
|
+
setEventCallback(callback: Function): void;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function awaitPromise(promise: Promise<any>): Promise<any>;
|
|
207
|
+
|
|
208
|
+
export function bridgeRivetErrorPrefix(): string;
|
|
209
|
+
|
|
210
|
+
export function roundTripBytes(bytes: Uint8Array): Uint8Array;
|
|
211
|
+
|
|
212
|
+
export function start(): void;
|
|
213
|
+
|
|
214
|
+
export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
|
|
215
|
+
|
|
216
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
217
|
+
|
|
218
|
+
export interface InitOutput {
|
|
219
|
+
readonly memory: WebAssembly.Memory;
|
|
220
|
+
readonly __wbg_actorcontext_free: (a: number, b: number) => void;
|
|
221
|
+
readonly __wbg_actorfactory_free: (a: number, b: number) => void;
|
|
222
|
+
readonly __wbg_actorstatetransaction_free: (a: number, b: number) => void;
|
|
223
|
+
readonly __wbg_cancellationlistener_free: (a: number, b: number) => void;
|
|
224
|
+
readonly __wbg_cancellationtoken_free: (a: number, b: number) => void;
|
|
225
|
+
readonly __wbg_connhandle_free: (a: number, b: number) => void;
|
|
226
|
+
readonly __wbg_coreregistry_free: (a: number, b: number) => void;
|
|
227
|
+
readonly __wbg_kv_free: (a: number, b: number) => void;
|
|
228
|
+
readonly __wbg_queue_free: (a: number, b: number) => void;
|
|
229
|
+
readonly __wbg_queuemessage_free: (a: number, b: number) => void;
|
|
230
|
+
readonly __wbg_schedule_free: (a: number, b: number) => void;
|
|
231
|
+
readonly __wbg_sqlitedb_free: (a: number, b: number) => void;
|
|
232
|
+
readonly __wbg_sqlitetransaction_free: (a: number, b: number) => void;
|
|
233
|
+
readonly __wbg_websockethandle_free: (a: number, b: number) => void;
|
|
234
|
+
readonly actorcontext_abortSignal: (a: number) => [number, number, number];
|
|
235
|
+
readonly actorcontext_actorId: (a: number) => [number, number];
|
|
236
|
+
readonly actorcontext_beginKeepAwake: (a: number) => number;
|
|
237
|
+
readonly actorcontext_beginOnStateChange: (a: number) => void;
|
|
238
|
+
readonly actorcontext_beginStateTransaction: (a: number, b: number, c: number) => any;
|
|
239
|
+
readonly actorcontext_beginWebsocketCallback: (a: number) => number;
|
|
240
|
+
readonly actorcontext_broadcast: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
241
|
+
readonly actorcontext_connectConn: (a: number, b: number, c: number, d: any) => any;
|
|
242
|
+
readonly actorcontext_conns: (a: number) => any;
|
|
243
|
+
readonly actorcontext_destroy: (a: number) => [number, number];
|
|
244
|
+
readonly actorcontext_dirtyHibernatableConns: (a: number) => any;
|
|
245
|
+
readonly actorcontext_endKeepAwake: (a: number, b: number) => void;
|
|
246
|
+
readonly actorcontext_endOnStateChange: (a: number) => void;
|
|
247
|
+
readonly actorcontext_endWebsocketCallback: (a: number, b: number) => void;
|
|
248
|
+
readonly actorcontext_inspectorSnapshot: (a: number) => [number, number, number];
|
|
249
|
+
readonly actorcontext_keepAwake: (a: number, b: any) => void;
|
|
250
|
+
readonly actorcontext_key: (a: number) => [number, number, number];
|
|
251
|
+
readonly actorcontext_kv: (a: number) => number;
|
|
252
|
+
readonly actorcontext_name: (a: number) => [number, number];
|
|
253
|
+
readonly actorcontext_new: () => [number, number, number];
|
|
254
|
+
readonly actorcontext_queue: (a: number) => number;
|
|
255
|
+
readonly actorcontext_region: (a: number) => [number, number];
|
|
256
|
+
readonly actorcontext_registerTask: (a: number, b: any) => void;
|
|
257
|
+
readonly actorcontext_requestSave: (a: number, b: any) => void;
|
|
258
|
+
readonly actorcontext_requestSaveAndWait: (a: number, b: any) => any;
|
|
259
|
+
readonly actorcontext_restartRunHandler: (a: number) => [number, number];
|
|
260
|
+
readonly actorcontext_runtimeState: (a: number) => any;
|
|
261
|
+
readonly actorcontext_saveState: (a: number, b: any) => any;
|
|
262
|
+
readonly actorcontext_saveStateAndWorkflowBatch: (a: number, b: any) => any;
|
|
263
|
+
readonly actorcontext_schedule: (a: number) => number;
|
|
264
|
+
readonly actorcontext_setAlarm: (a: number, b: number, c: number) => [number, number];
|
|
265
|
+
readonly actorcontext_setRunWakeAt: (a: number, b: number, c: number) => any;
|
|
266
|
+
readonly actorcontext_sleep: (a: number) => [number, number];
|
|
267
|
+
readonly actorcontext_sql: (a: number) => number;
|
|
268
|
+
readonly actorcontext_state: (a: number) => [number, number];
|
|
269
|
+
readonly actorcontext_takePendingHibernationChanges: (a: number) => any;
|
|
270
|
+
readonly actorcontext_verifyInspectorAuth: (a: number, b: number, c: number) => any;
|
|
271
|
+
readonly actorcontext_waitForTrackedShutdownWork: (a: number) => any;
|
|
272
|
+
readonly actorcontext_waitForTrackedShutdownWorkUnbounded: (a: number) => any;
|
|
273
|
+
readonly actorcontext_waitUntil: (a: number, b: any) => void;
|
|
274
|
+
readonly actorfactory_new: (a: any, b: any) => [number, number, number];
|
|
275
|
+
readonly actorstatetransaction_commit: (a: number, b: any) => any;
|
|
276
|
+
readonly actorstatetransaction_execute: (a: number, b: number, c: number, d: any) => any;
|
|
277
|
+
readonly actorstatetransaction_rollback: (a: number) => any;
|
|
278
|
+
readonly awaitPromise: (a: any) => any;
|
|
279
|
+
readonly bridgeRivetErrorPrefix: () => [number, number];
|
|
280
|
+
readonly cancellationlistener_release: (a: number) => void;
|
|
281
|
+
readonly cancellationtoken_aborted: (a: number) => number;
|
|
282
|
+
readonly cancellationtoken_cancel: (a: number) => void;
|
|
283
|
+
readonly cancellationtoken_new: () => number;
|
|
284
|
+
readonly cancellationtoken_onCancelled: (a: number, b: any) => number;
|
|
285
|
+
readonly connhandle_disconnect: (a: number, b: number, c: number) => any;
|
|
286
|
+
readonly connhandle_id: (a: number) => [number, number];
|
|
287
|
+
readonly connhandle_isHibernatable: (a: number) => number;
|
|
288
|
+
readonly connhandle_params: (a: number) => [number, number];
|
|
289
|
+
readonly connhandle_send: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
290
|
+
readonly connhandle_setState: (a: number, b: number, c: number) => void;
|
|
291
|
+
readonly connhandle_state: (a: number) => [number, number];
|
|
292
|
+
readonly coreregistry_handleServerlessRequest: (a: number, b: any, c: any, d: number, e: any) => any;
|
|
293
|
+
readonly coreregistry_new: () => number;
|
|
294
|
+
readonly coreregistry_register: (a: number, b: number, c: number, d: number) => [number, number];
|
|
295
|
+
readonly coreregistry_serve: (a: number, b: any) => any;
|
|
296
|
+
readonly coreregistry_shutdown: (a: number) => any;
|
|
297
|
+
readonly kv_batchDelete: (a: number, b: any) => any;
|
|
298
|
+
readonly kv_batchGet: (a: number, b: any) => any;
|
|
299
|
+
readonly kv_batchPut: (a: number, b: any) => any;
|
|
300
|
+
readonly kv_delete: (a: number, b: number, c: number) => any;
|
|
301
|
+
readonly kv_deleteRange: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
302
|
+
readonly kv_get: (a: number, b: number, c: number) => any;
|
|
303
|
+
readonly kv_listPrefix: (a: number, b: number, c: number, d: any) => any;
|
|
304
|
+
readonly kv_listRange: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
305
|
+
readonly kv_put: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
306
|
+
readonly queue_completePersisted: (a: number, b: bigint, c: number, d: number, e: number, f: number) => any;
|
|
307
|
+
readonly queue_enqueueAndWait: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
308
|
+
readonly queue_inspectMessages: (a: number) => any;
|
|
309
|
+
readonly queue_maxSize: (a: number) => number;
|
|
310
|
+
readonly queue_nextBatch: (a: number, b: any, c: number) => any;
|
|
311
|
+
readonly queue_reset: (a: number) => any;
|
|
312
|
+
readonly queue_send: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
313
|
+
readonly queue_tryNextBatch: (a: number, b: any) => [number, number, number];
|
|
314
|
+
readonly queue_waitForNames: (a: number, b: any, c: any, d: number) => any;
|
|
315
|
+
readonly queue_waitForNamesAvailable: (a: number, b: any, c: any) => any;
|
|
316
|
+
readonly queuemessage_body: (a: number) => [number, number];
|
|
317
|
+
readonly queuemessage_complete: (a: number, b: any) => any;
|
|
318
|
+
readonly queuemessage_createdAt: (a: number) => number;
|
|
319
|
+
readonly queuemessage_id: (a: number) => bigint;
|
|
320
|
+
readonly queuemessage_isCompletable: (a: number) => number;
|
|
321
|
+
readonly queuemessage_name: (a: number) => [number, number];
|
|
322
|
+
readonly roundTripBytes: (a: number, b: number) => [number, number];
|
|
323
|
+
readonly schedule_after: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
324
|
+
readonly schedule_at: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
325
|
+
readonly schedule_cancel: (a: number, b: number, c: number) => any;
|
|
326
|
+
readonly schedule_cronDelete: (a: number, b: number, c: number) => any;
|
|
327
|
+
readonly schedule_cronEvery: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => any;
|
|
328
|
+
readonly schedule_cronGet: (a: number, b: number, c: number) => any;
|
|
329
|
+
readonly schedule_cronHistory: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
330
|
+
readonly schedule_cronList: (a: number) => any;
|
|
331
|
+
readonly schedule_cronSet: (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;
|
|
332
|
+
readonly schedule_get: (a: number, b: number, c: number) => any;
|
|
333
|
+
readonly schedule_list: (a: number) => any;
|
|
334
|
+
readonly sqlitedb_beginTransaction: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
335
|
+
readonly sqlitedb_close: (a: number) => any;
|
|
336
|
+
readonly sqlitedb_exec: (a: number, b: number, c: number) => any;
|
|
337
|
+
readonly sqlitedb_execute: (a: number, b: number, c: number, d: any) => any;
|
|
338
|
+
readonly sqlitedb_executeBatch: (a: number, b: any) => any;
|
|
339
|
+
readonly sqlitedb_query: (a: number, b: number, c: number, d: any) => any;
|
|
340
|
+
readonly sqlitedb_run: (a: number, b: number, c: number, d: any) => any;
|
|
341
|
+
readonly sqlitetransaction_commit: (a: number) => any;
|
|
342
|
+
readonly sqlitetransaction_exec: (a: number, b: number, c: number) => any;
|
|
343
|
+
readonly sqlitetransaction_execute: (a: number, b: number, c: number, d: any) => any;
|
|
344
|
+
readonly sqlitetransaction_rollback: (a: number) => any;
|
|
345
|
+
readonly start: () => void;
|
|
346
|
+
readonly uint8ArrayFromBytes: (a: number, b: number) => any;
|
|
347
|
+
readonly websockethandle_close: (a: number, b: number, c: number, d: number) => any;
|
|
348
|
+
readonly websockethandle_send: (a: number, b: number, c: number, d: number) => [number, number];
|
|
349
|
+
readonly websockethandle_setEventCallback: (a: number, b: any) => void;
|
|
350
|
+
readonly wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___js_sys_5398293dff02b043___Function_fn_wasm_bindgen_13e07d6143bb6034___JsValue_____wasm_bindgen_13e07d6143bb6034___sys__Undefined___js_sys_5398293dff02b043___Function_fn_wasm_bindgen_13e07d6143bb6034___JsValue_____wasm_bindgen_13e07d6143bb6034___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
351
|
+
readonly wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___wasm_bindgen_13e07d6143bb6034___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_13e07d6143bb6034___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
352
|
+
readonly wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true_: (a: number, b: number, c: any) => void;
|
|
353
|
+
readonly wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__119: (a: number, b: number, c: any) => void;
|
|
354
|
+
readonly wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__120: (a: number, b: number, c: any) => void;
|
|
355
|
+
readonly wasm_bindgen_13e07d6143bb6034___convert__closures_____invoke___web_sys_dc46127b9b0284ed___features__gen_CloseEvent__CloseEvent______true__121: (a: number, b: number, c: any) => void;
|
|
356
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
357
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
358
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
359
|
+
readonly __externref_table_alloc: () => number;
|
|
360
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
361
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
362
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
363
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
364
|
+
readonly __wbindgen_start: () => void;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
371
|
+
* a precompiled `WebAssembly.Module`.
|
|
372
|
+
*
|
|
373
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
374
|
+
*
|
|
375
|
+
* @returns {InitOutput}
|
|
376
|
+
*/
|
|
377
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
381
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
382
|
+
*
|
|
383
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
384
|
+
*
|
|
385
|
+
* @returns {Promise<InitOutput>}
|
|
386
|
+
*/
|
|
387
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|